PageSourceSearch

https://www.cm-benavente.pt/wp-content/litespeed/js/15f5da03ffbdd8b132ecf527d1886b9a.js?ver=af446

js cm-benavente.pt collected 2026-09-24 21:26:04 UTC 2,290,543 bytes, 1,794 lines download raw bytes

1var elementskit={resturl:'https://www.cm-benavente.pt/index.php/wp-json/elementskit/v1/',}
2;/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
3"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}
3,"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={}
3,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});
4;var FB3D_CLIENT_LOCALE={"ajaxurl":"https://www.cm-benavente.pt/wp-admin/admin-ajax.php","dictionary":{"Table of contents":"Table of contents","Close":"Close","Bookmarks":"Bookmarks","Thumbnails":"Thumbn
4ails","Search":"Search","Share":"Share","Facebook":"Facebook","Twitter":"Twitter","Email":"Email","Play":"Play","Previous page":"Previous page","Next page":"Next page","Zoom in":"Zoom in","Zoom out":"Zoom out","Fit view":"Fit view","Auto play":"Auto play","Full screen":"Full screen","More":"More","Smart pan":"Smart pan","Single page":"Single page","Sounds":"Sounds","Stats":"Stats","Print":"Print","Download":"Download","Goto first page":"Goto first page","Goto last page":"Goto last page"},"images":"https://www.cm-benavente.pt/wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/assets/images/","jsData":{"urls":[],"posts":{"ids_mis":[],"ids":[]},"pages":[],"firstPages":[],"bookCtrlProps":[],"bookTemplates":[]},"key":"3d-flip-book","pdfJS":{"pdfJsLib":"https://www.cm-benavente.pt/wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/assets/js/pdf.min.js?ver=4.3.136","pdfJsWorker":"https://www.cm-benavente.pt/wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/assets/js/pdf.worker.js?ver=4.3.136","stablePdfJsLib":"https://www.cm-benavente.pt/wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/assets/js/stable/pdf.min.js?ver=2.5.207","stablePdfJsWorker":"https://www.cm-benavente.pt/wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/assets/js/stable/pdf.worker.js?ver=2.5.207","pdfJsCMapUrl":"https://www.cm-benavente.pt/wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/assets/cmaps/"},"cacheurl":"https://www.cm-benavente.pt/wp-content/uploads/3d-flip-book/cache/","pluginsurl":"https://www.cm-benavente.pt/wp-content/plugins/","pluginurl":"https://www.cm-benavente.pt/wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/","thumbnailSize":{"width":"150","height":"150"},"version":"1.16.22"}
5;function fb3dClientLocaleLoader(){if(window.jQuery&&typeof jQuery.ajax==='function'){function fb3dNormalizeUrl(url){return url.replace(/https{0,1}:/,location.protocol)}
6function fb3dFetch(url){return new Promise(function(resolve,reject){jQuery.ajax({url:fb3dNormalizeUrl(url),dataType:'text'}).done(resolve).fail(reject)})}
7FB3D_CLIENT_LOCALE.render=function(){delete FB3D_CLIENT_LOCALE.render;var isStable=!Promise.withResolvers||/^((?!chrome|android).)*safari/i.test(navigator.userAgent),pdfJs=FB3D_CLIENT_LOCALE.pdfJS,assetsJs=FB3D_CLIENT_LOCALE.pluginurl+'assets/js/';window.FB3D_LOCALE={dictionary:FB3D_CLIENT_LOCALE.dictionary};window.PDFJS_LOCALE={pdfJsCMapUrl:fb3dNormalizeUrl(pdfJs.pdfJsCMapUrl),pdfJsWorker:fb3dNormalizeUrl(isStable?pdfJs.stablePdfJsWorker:pdfJs.pdfJsWorker)};Promise.all([fb3dFetch(FB3D_CLIENT_LOCALE.pluginurl+'assets/css/client.css?ver='+FB3D_CLIENT_LOCALE.version),fb3dFetch(FB3D_CLIENT_LOCALE.pluginurl+'assets/templates/iframe-init.html?ver='+FB3D_CLIENT_LOCALE.version),fb3dFetch(FB3D_CLIENT_LOCALE.cacheurl+'skins.js?ver='+FB3D_CLIENT_LOCALE.version),fb3dFetch(isStable?pdfJs.stablePdfJsLib:pdfJs.pdfJsLib),fb3dFetch(assetsJs+'three.min.js?ver=125'),fb3dFetch(assetsJs+'html2canvas.min.js?ver=0.5'),fb3dFetch(assetsJs+'client.min.js?ver='+FB3D_CLIENT_LOCALE.version),]).then(function(fs){jQuery('head').append(['<style type="text/css">',fs[0].replace(/url\('..\//gi,'url(\''+fb3dNormalizeUrl(FB3D_CLIENT_LOCALE.pluginurl+'assets/')),'</style>'].join(''));for(var i=2;i<fs.length;++i){eval(fs[i])}})};if(jQuery('._'+FB3D_CLIENT_LOCALE.key).length){FB3D_CLIENT_LOCALE.render()}}else{setTimeout(fb3dClientLocaleLoader,100)}}
8fb3dClientLocaleLoader()
9;var to_top_options={"scroll_offset":"100","icon_opacity":"50","style":"icon","icon_type":"dashicons-arrow-up-alt2","icon_color":"#ffffff","icon_bg_color":"#000000","icon_size":"32","border_radius":"5","image":"https://www.cm-benavente.pt/wp-content/plugins/to-top/admin/images/default.png","image_width":"65","image_alt":"","location":"bottom-right","margin_x":"20","margin_y":"20","show_on_admin":"","enable_autohide":"0","autohide_time":"2","enable_hide_small_device":"0","small_device_max_width":"640","reset":"0"}
10;(function($){"use strict";$(function(){var container=$("#to_top_scrollup").css({'opacity':0});var data=to_top_options;var mouse_over=!1;var hideEventID=0;var fnHide=function(){clearTimeout(hideEventID);if(container.is(":visible")){container.stop().fadeTo(200,0,function(){container.hide();mouse_over=!1})}};var fnHideEvent=function(){if(!mouse_over&&data.enable_autohide==1){clearTimeout(hideEventID);hideEventID=setTimeout(function(){fnHide()}
10,data.autohide_time*1000)}};var scrollHandled=!1;var fnScroll=function(){if(scrollHandled)
11return;scrollHandled=!0;if($(window).scrollTop()>data.scroll_offset){container.stop().css("opacity",mouse_over?1:parseFloat(data.icon_opacity/100)).show();fnHideEvent()}else{fnHide()}
12scrollHandled=!1};if("undefined"!=typeof to_top_options.enable_hide_small_device&&"1"==to_top_options.enable_hide_small_device){if($(window).width()>to_top_options.small_device_max_width){$(window).on("scroll",fnScroll);$(document).on("scroll",fnScroll)}}else{$(window).on("scroll",fnScroll);$(document).on("scroll",fnScroll)}
13container.on("hover",function(){clearTimeout(hideEventID);mouse_over=!0;$(this).css("opacity",1)},function(){$(this).css("opacity",parseFloat(data.icon_opacity/100));mouse_over=!1;fnHideEvent()}).on("click",function(){$("html, body").animate({scrollTop:0},400);return!1})})})(jQuery)
14;var VPData={"version":"3.8.2","pro":!1,"__":{"couldnt_retrieve_vp":"Couldn't retrieve Visual Portfolio ID.","loop_items_updated":"Gallery items updated.","pswp_close":"Close (Esc)","pswp_share":"Share","pswp_fs":"Toggle fullscreen","pswp_zoom":"Zoom in\/out","pswp_prev":"Previous (arrow left)","pswp_next":"Next (arrow right)","pswp_share_fb":"Share on Facebook","pswp_share_x":"X","pswp_share_li":"LinkedIn","pswp_share_pin":"Pin it","pswp_download":"Download","fancybox_close":"Close","fancybox_next":"Next","fancybox_prev":"Previous","fancybox_error":"The requested content cannot be loaded. <br \/> Please try again later.","fancybox_play_start":"Start slideshow","fancybox_play_stop":"Pause slideshow","fancybox_full_screen":"Full screen","fancybox_thumbs":"Thumbnails","fancybox_download":"Download","fancybox_share":"Share","fancybox_zoom":"Zoom"},"settingsPopupGallery":{"enable_on_wordpress_images":!1,"vendor":"fancybox","deep_linking":!1,"deep_linking_url_to_share_images":!1,"show_arrows":!0,"show_counter":!0,"show_zoom_button":!0,"show_fullscreen_button":!0,"show_share_button":!0,"show_close_button":!0,"show_thumbs":!0,"show_download_button":!1,"show_slideshow":!1,"click_to_zoom":!0,"restore_focus":!0,"loop":!0,"load_next_pages":!0},"screenSizes":[320,576,768,992,1200]}
15;document.documentElement.classList.add('vp-lazyload-enabled')
16;(function($){if(!$){return}
17function addDataAttribute($items){$items.find('.vp-portfolio__item a:not([data-elementor-open-lightbox])').each(function(){if(/\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i.test(this.href)){this.dataset.elementorOpenLightbox='no'}})}
18$(document).on('init.vpf',function(event,vpObject){if('vpf'!==event.namespace){return}
19addDataAttribute(vpObject.$item)});$(document).on('addItems.vpf',function(event,vpObject,$items){if('vpf'!==event.namespace){return}
20addDataAttribute($items)})})(window.jQuery)
21;(function(){if(!window.mecRelayBeacon||!document.currentScript)return;var s=document.currentScript;window.mecRelayBeacon("mec_calendar_view_rendered",{calendar_url:location.origin+location.pathname,view_type:s.dataset.view,skin:s.dataset.skin,shortcode_id_hash:s.dataset.sh,events_shown_bucket:s.dataset.count},"mec_vr_"+s.dataset.skin+"_"+s.dataset.sh)})()
22;(()=>{const lazyloadRunObserver=()=>{const lazyloadBackgrounds=document.querySelectorAll(`.e-con.e-parent:not(.e-lazyloaded)`);const lazyloadBackgroundObserver=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.isIntersecting){let lazyloadBackground=entry.target;if(lazyloadBackground){lazyloadBackground.classList.add('e-lazyloaded')}
23lazyloadBackgroundObserver.unobserve(entry.target)}})},{rootMargin:'200px 0px 200px 0px'});lazyloadBackgrounds.forEach((lazyloadBackground)=>{lazyloadBackgroundObserver.observe(lazyloadBackground)})};const events=['DOMContentLoaded','elementor/lazyload/observe',];events.forEach((event)=>{document.addEventListener(event,lazyloadRunObserver)})})()
24;var data = 'ewogICJhZHZhbmNlZC1nb29nbGUtbWFwIiA6IFsKICAgICJpc19vcGVuX3BvcHVwIiwKICAgICJ1c2VfY3VzdG9tX2ljb24iLAogICAgIm1hcF9jdXN0b21fc3R5bGUiCiAgXSwKICAiYWR2YW5jZWQtcG9zdHMiIDogWwogICAgInBhZ2luYXRpb24iLAogICAgInRheG9ub21pZXMiLAogICAgInRlcm1zX3JlbGF0aW9uIiwKICAgICJhbmltYXRlX29uX3
vendor: 9,251 bytes, lines 24-25
24Njcm9sbCIsCiAgICAibGlzdF9jaGVja2VyYm9hcmQiLAogICAgImdyaWRfY2hlY2tlcmJvYXJkIiwKCiAgICAicGFnaW5hdGlvbl9zdHlsZSIsCiAgICAiYXV0b3BsYXkiLAogICAgImxvb3AiCiAgXSwKICAiYWR2YW5jZWQtc2xpZGVyIiA6IFsKICAgICJibG9ja19ob3Jpem9udGFsX2FsaWdubWVudCIsCiAgICAiYmxvY2tfdmVydGljYWxfYWxpZ25tZW50IiwKICAgICJjdXN0b21fYWxpZ25tZW50IiwKCiAgICAicGFnaW5hdGlvbl9zdHlsZSIsCiAgICAiYXV0b3BsYXkiLAogICAgImxvb3AiCiAgXSwKICAidGVzdGltb25pYWwtY2Fyb3VzZWwiIDogWwogICAgInBhZ2luYXRpb25fc3R5bGUiLAogICAgImF1dG9wbGF5IiwKICAgICJsb29wIgogIF0sCiAgImZsaXAtYm94IiA6IFsKICAgICJzaG93X2J1dHRvbiIKICBdLAogICJhZHZhbmNlZC1hY2NvcmRpb24iIDogWwogICAgImNvbnRlbnRfdHlwZSIKICBdLAogICJhZHZhbmNlZC10YWJzIiA6IFsKICAgICJjb250ZW50X3R5cGUiCiAgXSwKICAiaW1hZ2UtYWNjb3JkaW9uIiA6IFsKICAgICJzaG93X2J1dHRvbiIsCiAgICAiYnV0dG9uX3N0eWxlX3NlY3Rpb24iCiAgXSwKICAiaW1hZ2UtaG90c3BvdCIgOiBbCiAgICAib3Blbl9ieV9kZWZhdWx0IgogIF0sCiAgImxvdHRpZS1hbmltYXRpb25zIiA6IFsKICAgICJhbmltYXRlX29uX3Njcm9sbCIsCiAgICAibG90dGllX2xvb3AiCiAgXSwKICAiY291bnRkb3duIiA6IFsKICAgICJzdHJhdHVtX2V4cGlyZV9hY3Rpb25zIgogIF0sCiAgImhvcml6b250YWwtdGltZWxpbmUiIDogWwogICAgImNvbHVtbnMiLAogICAgIml0ZW1fbGluayIKICBdLAogICJ2ZXJ0aWNhbC10aW1lbGluZSIgOiBbCiAgICAicG9pbnRfbm9ybWFsX2JhY2tncm91bmRfY29sb3IiLAogICAgInBvaW50X2hvdmVyX2JhY2tncm91bmRfY29sb3IiLAogICAgInBvaW50X2FjdGl2ZV9iYWNrZ3JvdW5kX2NvbG9yIiwKCSAgInByb2dyZXNzX2JhY2tncm91bmRfY29sb3IiLAoJICAiaXRlbV9saW5rIgogIF0sCiAgInRhYmxlIiA6IFsKCSAgInRhYmxlX2NvbF9jb250ZW50X3R5cGUiCiAgXSwKICAiY29udGVudC1zd2l0Y2hlciIgOiBbCiAgICAiY29udGVudF9pdGVtcyIKICBdLAogICJpbnN0YWdyYW0iIDogWwogICAgIml0ZW1zIiwKICAgICJjb2x1bW5zIgogIF0KfQ==';
25!function(){"use strict";var n=Object.prototype.hasOwnProperty;function r(t,e){return null!=t&&n.call(t,e)}var c=Array.isArray;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var a="object"==o(t)&&t&&t.Object===Object&&t,i="object"==("undefined"==typeof self?"undefined":o(self))&&self&&self.Object===Object&&self,u=a||i||Function("return this")(),l=u.Symbol,s=Object.prototype,f=s.hasOwnProperty,p=s.toString,d=l?l.toStringTag:void 0;var h=function(t){var e=f.call(t,d),n=t[d];try{var r=!(t[d]=void 0)}catch(t){}var o=p.call(t);return r&&(e?t[d]=n:delete t[d]),o},y=Object.prototype.toString;var v=function(t){return y.call(t)},b=l?l.toStringTag:void 0;var _=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(b&&b in Object(t)?h:v)(t)};var m=function(t){return null!=t&&"object"==o(t)};var j=function(t){return"symbol"==o(t)||m(t)&&"[object Symbol]"==_(t)},g=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O=/^\w*$/;var w=function(t,e){if(c(t))return!1;var n=o(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!j(t))||(O.test(t)||!g.test(t)||null!=e&&t in Object(e))};var S=function(t){var e=o(t);return null!=t&&("object"==e||"function"==e)};var A,x=function(t){if(!S(t))return!1;var e=_(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},C=u["__core-js_shared__"],T=(A=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"";var P=function(t){return!!T&&T in t},k=Function.prototype.toString;var z=function(t){if(null!=t){try{return k.call(t)}catch(t){}try{return t+""}catch(t){}}return""},R=/^\[object .+?Constructor\]$/,D=Function.prototype,F=Object.prototype,E=D.toString,M=F.hasOwnProperty,B=RegExp("^"+E.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var I=function(t){return!(!S(t)||P(t))&&(x(t)?B:R).test(z(t))};var U=function(t,e){return null==t?void 0:t[e]};var V=function(t,e){var n=U(t,e);return I(n)?n:void 0},q=V(Object,"create");function N(){this.__data__=q?q(null):{},this.size=0}function W(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var L=Object.prototype.hasOwnProperty;function Q(t){var e=this.__data__;if(q){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return L.call(e,t)?e[t]:void 0}var G=Object.prototype.hasOwnProperty;function J(t){var e=this.__data__;return q?void 0!==e[t]:G.call(e,t)}function H(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=q&&void 0===e?"__lodash_hash_undefined__":e,this}function K(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}K.prototype.clear=N,K.prototype.delete=W,K.prototype.get=Q,K.prototype.has=J,K.prototype.set=H;var X=K;function Y(){this.__data__=[],this.size=0}var Z=function(t,e){return t===e||t!=t&&e!=e};var tt=function(t,e){for(var n=t.length;n--;)if(Z(t[n][0],e))return n;return-1},et=Array.prototype.splice;function nt(t){var e=this.__data__,n=tt(e,t);return!(n<0)&&(n==e.length-1?e.pop():et.call(e,n,1),--this.size,!0)}function rt(t){var e=this.__data__,n=tt(e,t);return n<0?void 0:e[n][1]}function ot(t){return-1<tt(this.__data__,t)}function it(t,e){var n=this.__data__,r=tt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function at(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}at.prototype.clear=Y,at.prototype.delete=nt,at.prototype.get=rt,at.prototype.has=ot,at.prototype.set=it;var ct=at,ut=V(u,"Map");var lt=function(t){var e=o(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var st=function(t,e){var n=t.__data__;return lt(e)?n["string"==typeof e?"string":"hash"]:n.map};function ft(t){var e=st(this,t).delete(t);return this.size-=e?1:0,e}function pt(t){return st(this,t).get(t)}function dt(t){return st(this,t).has(t)}function ht(t,e){var n=st(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function yt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}yt.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(ut||ct),string:new X}},yt.prototype.delete=ft,yt.prototype.get=pt,yt.prototype.has=dt,yt.prototype.set=ht;var vt=yt,bt="Expected a function";function _t(o,i){if("function"!=typeof o||null!=i&&"function"!=typeof i)throw new TypeError(bt);function a(){var t=arguments,e=i?i.apply(this,t):t[0],n=a.cache;if(n.has(e))return n.get(e);var r=o.apply(this,t);return a.cache=n.set(e,r)||n,r}return a.cache=new(_t.Cache||vt),a}_t.Cache=vt;var mt=_t;var jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gt=/\\(\\)?/g,Ot=function(t){var e=mt(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(jt,function(t,e,n,r){o.push(n?r.replace(gt,"$1"):e||t)}),o});var wt=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},St=1/0,At=l?l.prototype:void 0,$t=At?At.toString:void 0;var xt=function t(e){if("string"==typeof e)return e;if(c(e))return wt(e,t)+"";if(j(e))return $t?$t.call(e):"";var n=e+"";return"0"==n&&1/e==-St?"-0":n};var Ct=function(t){return null==t?"":xt(t)};var Tt=function(t,e){return c(t)?t:w(t,e)?[t]:Ot(Ct(t))};var Pt=function(t){return m(t)&&"[object Arguments]"==_(t)},kt=Object.prototype,zt=kt.hasOwnProperty,Rt=kt.propertyIsEnumerable,Dt=Pt(function(){return arguments}())?Pt:function(t){return m(t)&&zt.call(t,"callee")&&!Rt.call(t,"callee")},Ft=/^(?:0|[1-9]\d*)$/;var Et=function(t,e){var n=o(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ft.test(t))&&-1<t&&t%1==0&&t<e};var Mt=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991};var Bt=function(t){if("string"==typeof t||j(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};var It=function(t,e,n){for(var r=-1,o=(e=Tt(e,t)).length,i=!1;++r<o;){var a=Bt(e[r]);if(!(i=null!=t&&n(t,a)))break;t=t[a]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&Mt(o)&&Et(a,o)&&(c(t)||Dt(t))};var Ut=function(t,e){return null!=t&&It(t,e,r)},Vt=Object.prototype;var qt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Vt)};var Nt=function(e,n){return function(t){return e(n(t))}}(Object.keys,Object),Wt=Object.prototype.hasOwnProperty;var Lt=function(t){if(!qt(t))return Nt(t);var e=[];for(var n in Object(t))Wt.call(t,n)&&"constructor"!=n&&e.push(n);return e},Qt=V(u,"DataView"),Gt=V(u,"Promise"),Jt=V(u,"Set"),Ht=V(u,"WeakMap"),Kt="[object Map]",Xt="[object Promise]",Yt="[object Set]",Zt="[object WeakMap]",te="[object DataView]",ee=z(Qt),ne=z(ut),re=z(Gt),oe=z(Jt),ie=z(Ht),ae=_;(Qt&&ae(new Qt(new ArrayBuffer(1)))!=te||ut&&ae(new ut)!=Kt||Gt&&ae(Gt.resolve())!=Xt||Jt&&ae(new Jt)!=Yt||Ht&&ae(new Ht)!=Zt)&&(ae=function(t){var e=_(t),n="[object Object]"==e?t.constructor:void 0,r=n?z(n):"";if(r)switch(r){case ee:return te;case ne:return Kt;case re:return Xt;case oe:return Yt;case ie:return Zt}return e});var ce=ae;var ue=function(t){return null!=t&&Mt(t.length)&&!x(t)};function le(){return!1}var se=e(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?u.Buffer:void 0,i=(o?o.isBuffer:void 0)||le;t.exports=i}),fe={};
25fe["[object Float32Array]"]=fe["[object Float64Array]"]=fe["[object Int8Array]"]=fe["[object Int16Array]"]=fe["[object Int32Array]"]=fe["[object Uint8Array]"]=fe["[object Uint8ClampedArray]"]=fe["[object Uint16Array]"]=fe["[object Uint32Array]"]=!0,fe["[object Arguments]"]=fe["[object Array]"]=fe["[object ArrayBuffer]"]=fe["[object Boolean]"]=fe["[object DataView]"]=fe["[object Date]"]=fe["[object Error]"]=fe["[object Function]"]=fe["[object Map]"]=fe["[object Number]"]=fe["[object Object]"]=fe["[object RegExp]"]=fe["[object Set]"]=fe["[object String]"]=fe["[object WeakMap]"]=!1;function pe(t){return m(t)&&Mt(t.length)&&!!fe[_(t)]}var de=function(e){return function(t){return e(t)}},he=e(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n&&a.process,i=function(){try{var t=r&&r.require&&r.require("util").types;return t?t:o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}),ye=he&&he.isTypedArray,ve=ye?de(ye):pe,be=Object.prototype.hasOwnProperty;var _e=function(t){if(null==t)return!0;if(ue(t)&&(c(t)||"string"==typeof t||"function"==typeof t.splice||se(t)||ve(t)||Dt(t)))return!t.length;var e=ce(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(qt(t))return!Lt(t).length;for(var n in t)if(be.call(t,n))return!1;return!0};$=jQuery,$(window).on("elementor/frontend/init",function(){function c(n,t){$.each(o[t],function(t,e){n.$el.find(".elementor-control-".concat(e)).addClass("stratum-disable-control"),n.$el.find(".elementor-control-".concat(e)).is(".elementor-control-type-repeater")||n.$el.find(".elementor-control-".concat(e)).find("input, select").prop("disabled",!0),n.$el.find(".elementor-control-".concat(e)).off()})}var o="undefined"!=typeof data?JSON.parse(atob(data)):{};window.elementor&&(elementor.on("document:loaded",function(t){var e=elementor.modules.controls.Select2.extend({optionsReceived:!1,addControlSpinner:function(){this.ui.select.prop("disabled",!0),this.$el.find(".elementor-control-title").after('<span class="elementor-control-spinner">&nbsp;<i class="eicon-spinner eicon-animation-spin"></i>&nbsp;</span>')},getSelect2OptionsAjax:function(t){var e=0<arguments.length&&void 0!==t&&t,n=this,r=n.cid;e&&(r+="_"+(new Date).getTime());elementorCommon.ajax.load({action:n.model.get("ajax_route"),unique_id:r,data:{nonce:stratum.nonces.get_elementor_templates},before:function(){n.addControlSpinner()},success:function(t){n.isRendered&&!n.isDestroyed&&(n.model.set("options",t),n.render())}})},getSelect2Placeholder:function(){return this.ui.select.children('option:first[value=""]').text()},getSelect2DefaultOptions:function(){return{allowClear:!0,placeholder:this.getSelect2Placeholder(),dir:elementorCommon.config.isRTL?"rtl":"ltr"}},getSelect2Options:function(){return jQuery.extend(this.getSelect2DefaultOptions(),{data:[]})},onChange:function(){this.getControlValue()},onReady:function(){this.ui.select.select2(this.getSelect2Options()),this.on("input:change",this.onChange),this.optionsReceived||(this.optionsReceived=!0,this.getSelect2OptionsAjax())},onBeforeDestroy:function(){this.ui.select.select2("destroy"),this.$el.remove()},onAfterExternalChange:function(){this.ui.select.select2("destroy"),this.onReady()}});elementor.addControlView("stratum_ajax_control",e),elementor.channels.editor.on("stratum:OpenTemplatesLibrary",function(t){elementorCommon.api.route("library/templates/my-templates")})}),elementor.channels.data.on("all",function(t){}),elementor.hooks.addAction("panel/open_editor/widget",function(t,e,n){if(e.get("settings").on("all",function(t){}),!_e(o)){var r=e.attributes.widgetType.replace("stratum-","");Ut(o,r)&&(c(t,r),function e(n,r,t,o){t&&n.$el.find(".elementor-control-type-section, .elementor-panel-navigation-tab").off("click",t),o&&n.$el.find(".elementor-repeater-tool-duplicate").off("click",t);function i(){c(n,r),e(n,r,i,a)}var a=function t(){setTimeout(function(){c(n,r),e(n,r,i,t)},0)};n.$el.find(".elementor-control-type-section, .elementor-panel-navigation-tab").on("click",i),n.$el.find(".elementor-repeater-tool-duplicate").on("click",a)}(t,r,!1,!1))}}),elementor.hooks.addAction("panel/open_editor/section",function(t,e,n){}))})}();
26;/*! jQuery UI - v1.13.3 - 2024-04-26
27* https://jqueryui.com
28* 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
29* Copyright jQuery Foundation and other contributors; Licensed MIT */
30!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",
31/*!
32 * jQuery UI :data 1.13.3
33 * https://jqueryui.com
34 *
35 * Copyright OpenJS Foundation and other contributors
36 * Released under the MIT license.
37 * https://jquery.org/license
38 */
39x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}
vendor: 4,702 bytes, lines 39-105
39):function(t,e,i){return!!x.data(t,i[3])}}),
40/*!
41 * jQuery UI Disable Selection 1.13.3
42 * https://jqueryui.com
43 *
44 * Copyright OpenJS Foundation and other contributors
45 * Released under the MIT license.
46 * https://jquery.org/license
47 */
48x.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")}}),
49/*!
50 * jQuery UI Focusable 1.13.3
51 * https://jqueryui.com
52 *
53 * Copyright OpenJS Foundation and other contributors
54 * Released under the MIT license.
55 * https://jquery.org/license
56 */
57x.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)},
58/*!
59 * jQuery UI Form Reset Mixin 1.13.3
60 * https://jqueryui.com
61 *
62 * Copyright OpenJS Foundation and other contributors
63 * Released under the MIT license.
64 * https://jquery.org/license
65 */
66x.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()),
67/*!
68 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3
69 * https://jqueryui.com
70 *
71 * Copyright OpenJS Foundation and other contributors
72 * Released under the MIT license.
73 * https://jquery.org/license
74 *
75 */
76x.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})}}),
77/*!
78 * jQuery UI Keycode 1.13.3
79 * https://jqueryui.com
80 *
81 * Copyright OpenJS Foundation and other contributors
82 * Released under the MIT license.
83 * https://jquery.org/license
84 */
85x.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},
86/*!
87 * jQuery UI Labels 1.13.3
88 * https://jqueryui.com
89 *
90 * Copyright OpenJS Foundation and other contributors
91 * Released under the MIT license.
92 * https://jquery.org/license
93 */
94x.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)}},
95/*!
96 * jQuery UI Position 1.13.3
97 * https://jqueryui.com
98 *
99 * Copyright OpenJS Foundation and other contributors
100 * Released under the MIT license.
101 * https://jquery.org/license
102 *
103 * https://api.jqueryui.com/position/
104 */
105W=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;
105width: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;n<e.collisionWidth?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;o<e.collisionHeight?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"
vendor: 8,472 bytes, lines 105-141
105===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")},
106/*!
107 * jQuery UI Scroll Parent 1.13.3
108 * https://jqueryui.com
109 *
110 * Copyright OpenJS Foundation and other contributors
111 * Released under the MIT license.
112 * https://jquery.org/license
113 */
114x.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)},
115/*!
116 * jQuery UI Tabbable 1.13.3
117 * https://jqueryui.com
118 *
119 * Copyright OpenJS Foundation and other contributors
120 * Released under the MIT license.
121 * https://jquery.org/license
122 */
123x.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)}}),
124/*!
125 * jQuery UI Unique ID 1.13.3
126 * https://jqueryui.com
127 *
128 * Copyright OpenJS Foundation and other contributors
129 * Released under the MIT license.
130 * https://jquery.org/license
131 */
132x.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")})}});
133/*!
134 * jQuery UI Widget 1.13.3
135 * https://jqueryui.com
136 *
137 * Copyright OpenJS Foundation and other contributors
138 * Released under the MIT license.
139 * https://jquery.org/license
140 */
141var 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)}
vendor: 6,016 bytes, lines 141-150
141,_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()})}})});
142;/*!
143 * jQuery UI Datepicker 1.13.3
144 * https://jqueryui.com
145 *
146 * Copyright OpenJS Foundation and other contributors
147 * Released under the MIT license.
148 * https://jquery.org/license
149 */
150!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode"],e):e(jQuery)}(function(V){"use strict";var n;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=a(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,d)}function d(){V.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function c(e,t){for(var a in V.extend(e,t),t)null==t[a]&&(e[a]=t[a])}return V.extend(V.ui,{datepicker:{version:"1.13.3"}}),V.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i=e.nodeName.toLowerCase(),s="div"===i||"span"===i;
vendor: 32,551 bytes, line 150
150e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(V(e),s)).settings=V.extend({},t||{}),"input"===i?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var a=V(e);t.append=V([]),t.trigger=V([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),V.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=V("<span>").addClass(this._appendClass).text(i),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(t,"buttonText"),a=this._get(t,"buttonImage"),this._get(t,"buttonImageOnly")?t.trigger=V("<img>").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(t.trigger=V("<button type='button'>").addClass(this._triggerClass),a?t.trigger.html(V("<img>").attr({src:a,alt:i,title:i})):t.trigger.text(i)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===e[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==e[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){var t,a,i,s,r,n;this._get(e,"autoSize")&&!e.inline&&(r=new Date(2009,11,20),(n=this._get(e,"dateFormat")).match(/[DM]/)&&(r.setMonth((t=function(e){for(s=i=a=0;s<e.length;s++)e[s].length>a&&(a=e[s].length,i=s);return i})(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length))},_inlineDatepicker:function(e,t){var a=V(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(t.dpDiv),V.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,a,i,s){var r,n=this._dialogInst;return n||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(n=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",n)),c(n.settings,i||{}),t=t&&t.constructor===Date?this._formatDate(n,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight,t=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+t,i/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",n),this},_destroyDatepicker:function(e){var t,a=V(e),i=V.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),V.removeData(e,"datepicker"),"input"===t?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||a.removeClass(this.markerClassName).empty(),n===i)&&(n=null,this._curInst=null)},_enableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(e)for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return V.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,a){var i,s,r=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?V.extend({},V.datepicker._defaults):r?"all"===t?V.extend({},r.settings):this._get(r,t):null;i=t||{},"string"==typeof t&&((i={})[t]=a),r&&(this._curInst===r&&this._hideDatepicker(),t=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(r,"min"),s=this._getMinMaxDate(r,"max"),c(r.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(r.settings.minDate=this._formatDate(r,a)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(r.settings.maxDate=this._formatDate(r,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(V(e),r),this._autoSize(r),this._setDate(r,t),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,a){this._optionDatepicker(e,t,a)},_refreshDatepicker:function(e){e=this._getInst(e);e&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){e=this._getInst(e);e&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){e=this._getInst(e);return e&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(e){var t,a,i=V.datepicker._getInst(e.target),s=!0,r=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,V.datepicker._datepickerShowing)switch(e.keyCode){case 9:V.datepicker._hideDatepicker(),s=!1;break;case 13:return(a=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",i.dpDiv))[0]&&V.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,a[0]),(a=V.datepicker._get(i,"onSelect"))?(t=V.datepicker._formatDate(i),a.apply(i.input?i.input[0]:null,[t,i])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&V.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&V.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?1:-1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,-7,"D"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?-1:1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,7,"D"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?V.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,a=V.datepicker._getInst(e.target);if(V.datepicker._get(a,"constrainInput"))return a=V.datepicker._possibleChars(V.datepicker._get(a,"dateFormat")),t=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||t<" "||!a||-1<a.indexOf(t)},_doKeyUp:function(e){e=V.datepicker._getInst(e.target);if(e.input.val()!==e.lastVal)try{V.datepicker.parseDate(V.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,V.datepicker._getFormatConfig(e))&&(V.datepicker._setDateFromField(e),V.datepicker._updateAlternate(e),V.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var t,a,i,s;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=V("input",e.parentNode)[0]),V.datepicker._isDisabledDatepicker(e)||V.datepicker._lastInput===e||(s=V.datepicker._getInst(e),V.datepicker._curInst&&V.datepicker._curInst!==s&&(V.datepicker._curInst.dpDiv.stop(!0,!0),s)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1===(a=(a=V.datepicker._get(s,"beforeShow"))?a.apply(e,[e,s]):{}))||(c(s.settings,a),s.lastVal=null,V.datepicker._lastInput=e,V.datepicker._setDateFromField(s),V.datepicker._inDialog&&(e.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(e),V.datepicker._pos[1]+=e.offsetHeight),t=!1,V(e).parents().each(function(){return!(t|="fixed"===V(this).css("position"))}),a={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(s),a=V.datepicker._checkOffset(s,a,t),s.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":t?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline)||(a=V.datepicker._get(s,"showAnim"),i=V.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(e){for(var t;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(e.css("zIndex"),10),!isNaN(t))&&0!==t)return t;e=e.parent()}return 0}(V(e))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[a]?s.dpDiv.show(a,V.datepicker._get(s,"showOptions"),i):s.dpDiv[a||"show"](a?i:null),V.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),V.datepicker._curInst=s)},_updateDatepicker:function(e){this.maxRows=4,(n=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,a=this._getNumberOfMonths(e),i=a[1],s=e.dpDiv.find("."+this._dayOverClass+" a"),r=V.datepicker._get(e,"onUpdateDatepicker");0<s.length&&d.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),t=e.yearshtml=null},0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,a){var i=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,d=document.documentElement.clientWidth+(a?0:V(document).scrollLeft()),c=document.documentElement.clientHeight+(a?0:V(document).scrollTop());return t.left-=this._get(e,"isRTL")?i-r:0,t.left-=a&&t.left===e.input.offset().left?V(document).scrollLeft():0,t.top-=a&&t.top===e.input.offset().top+n?V(document).scrollTop():0,t.left-=Math.min(t.left,d<t.left+i&&i<d?Math.abs(t.left+i-d):0),t.top-=Math.min(t.top,c<t.top+s&&s<c?Math.abs(s+n):0),t},_findPos:function(e){for(var t=this._getInst(e),a=this._get(t,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||V.expr.pseudos.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return[(t=V(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,a,i=this._curInst;!i||e&&i!==V.data(e,"datepicker")||this._datepickerShowing&&(e=this._get(i,"showAnim"),a=this._get(i,"duration"),t=function(){V.datepicker._tidyDialog(i)},V.effects&&(V.effects.effect[e]||V.effects[e])?i.dpDiv.hide(e,V.datepicker._get(i,"showOptions"),a,t):i.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?a:null,t),e||t(),this._datepickerShowing=!1,(a=this._get(i,"onClose"))&&a.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var t;V.datepicker._curInst&&(e=V(e.target),t=V.datepicker._getInst(e[0]),!(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||e.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==t)&&V.datepicker._hideDatepicker()},_adjustDate:function(e,t,a){var e=V(e),i=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(i,t,a),this._updateDatepicker(i))},_gotoToday:function(e){var t,e=V(e),a=this._getInst(e[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(t=new Date,a.selectedDay=t.getDate(),a.drawMonth=a.selectedMonth=t.getMonth(),a.drawYear=a.selectedYear=t.getFullYear()),this._notifyChange(a),this._adjustDate(e)},_selectMonthYear:function(e,t,a){var e=V(e),i=this._getInst(e[0]);i["selected"+("M"===a?"Month":"Year")]=i["draw"+("M"===a?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(e)},_selectDay:function(e,t,a,i){var s=V(e);V(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt(V("a",i).attr("data-date")),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=a,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){e=V(e);this._selectDate(e,"")},_selectDate:function(e,t){var a,e=V(e),e=this._getInst(e[0]);t=null!=t?t:this._formatDate(e),e.input&&e.input.val(t),this._updateAlternate(e),(a=this._get(e,"onSelect"))?a.apply(e.input?e.input[0]:null,[t,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,a,i=this._get(e,"altField");i&&(a=this._get(e,"altFormat")||this._get(e,"dateFormat"),t=this._getDate(e),a=this.formatDate(a,t,this._getFormatConfig(e)),V(document).find(i).val(a))},noWeekends:function(e){e=e.getDay();return[0<e&&e<6,""]},iso8601Week:function(e){var t,e=new Date(e.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(t,s,e){if(null==t||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var a,i,r=0,n=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10),d=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,c=(e?e.dayNames:null)||this._defaults.dayNames,o=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,l=(e?e.monthNames:null)||this._defaults.monthNames,h=-1,u=-1,p=-1,g=-1,_=!1,f=function(e){e=y+1<t.length&&t.charAt(y+1)===e;return e&&y++,e},k=function(e){var t=f(e),t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,e=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}"),t=s.substring(r).match(e);if(t)return r+=t[0].length,parseInt(t[0],10);throw"Missing number at position "+r},D=function(e,t,a){var i=-1,e=V.map(f(e)?a:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(V.each(e,function(e,t){var a=t[1];if(s.substr(r,a.length).toLowerCase()===a.toLowerCase())return i=t[0],r+=a.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+r},m=function(){if(s.charAt(r)!==t.charAt(y))throw"Unexpected literal at position "+r;r++},y=0;y<t.length;y++)if(_)"'"!==t.charAt(y)||f("'")?m():_=!1;else switch(t.charAt(y)){case"d":p=k("d");break;case"D":D("D",d,c);break;case"o":g=k("o");break;case"m":u=k("m");break;case"M":u=D("M",o,l);break;case"y":h=k("y");break;case"@":h=(i=new Date(k("@"))).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"!":h=(i=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"'":f("'")?m():_=!0;break;default:m()}if(r<s.length&&(e=s.substr(r),!/^\s+/.test(e)))throw"Extra/unparsed characters found in date: "+e;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=n?0:-100)),-1<g)for(u=1,p=g;;){if(p<=(a=this._getDaysInMonth(h,u-1)))break;u++,p-=a}if((i=this._daylightSavingAdjust(new Date(h,u-1,p))).getFullYear()!==h||i.getMonth()+1!==u||i.getDate()!==p)throw"Invalid date";return i},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,a){if(!e)return"";function i(e,t,a){var i=""+t;if(l(e))for(;i.length<a;)i="0"+i;return i}function s(e,t,a,i){return(l(e)?i:a)[t]}var r,n=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,d=(a?a.dayNames:null)||this._defaults.dayNames,c=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,o=(a?a.monthNames:null)||this._defaults.monthNames,l=function(e){e=r+1<t.length&&t.charAt(r+1)===e;return e&&r++,e},h="",u=!1;if(e)for(r=0;r<t.length;r++)if(u)"'"!==t.charAt(r)||l("'")?h+=t.charAt(r):u=!1;else switch(t.charAt(r)){case"d":h+=i("d",e.getDate(),2);break;case"D":h+=s("D",e.getDay(),n,d);break;case"o":h+=i("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",e.getMonth()+1,2);break;case"M":h+=s("M",e.getMonth(),c,o);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(r)}return h},_possibleChars:function(t){for(var e="",a=!1,i=function(e){e=s+1<t.length&&t.charAt(s+1)===e;return e&&s++,e},s=0;s<t.length;s++)if(a)"'"!==t.charAt(s)||i("'")?e+=t.charAt(s):a=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":i("'")?e+="'":a=!0;break;default:e+=t.charAt(s)}return e},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,n=this._getFormatConfig(e);try{r=this.parseDate(a,i,n)||s}catch(e){i=t?"":i}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=i?r.getDate():0,e.currentMonth=i?r.getMonth():0,e.currentYear=i?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(d,e,t){var a,i=null==e||""===e?t:"string"==typeof e?function(e){try{return V.datepicker.parseDate(V.datepicker._get(d,"dateFormat"),e,V.datepicker._getFormatConfig(d))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?V.datepicker._getDate(d):null)||new Date,a=t.getFullYear(),i=t.getMonth(),s=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,n=r.exec(e);n;){switch(n[2]||"d"){case"d":case"D":s+=parseInt(n[1],10);break;case"w":case"W":s+=7*parseInt(n[1],10);break;case"m":case"M":i+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i));break;case"y":case"Y":a+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i))}n=r.exec(e)}return new Date(a,i,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(a=new Date).setDate(a.getDate()+i),a):new Date(e.getTime());return(i=i&&"Invalid Date"===i.toString()?t:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,a){var i=!t,s=e.selectedMonth,r=e.selectedYear,t=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){V.datepicker._adjustDate(a,-t,"M")},next:function(){V.datepicker._adjustDate(a,+t,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(a)},selectDay:function(){return V.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(a,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,a,i,s,r,O,L,R,H,n,d,W,c,o,l,h,u,p,g,_,f,k,E,D,m,U,y,P,z,v,M,b,w=new Date,B=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate())),C=this._get(e,"isRTL"),w=this._get(e,"showButtonPanel"),I=this._get(e,"hideIfNoPrevNext"),x=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),S=this._get(e,"showCurrentAtPos"),F=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],N=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),T=this._getMinMaxDate(e,"min"),A=this._getMinMaxDate(e,"max"),K=e.drawMonth-S,j=e.drawYear;if(K<0&&(K+=12,j--),A)for(t=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth()-Y[0]*Y[1]+1,A.getDate())),t=T&&t<T?T:t;this._daylightSavingAdjust(new Date(j,K,1))>t;)--K<0&&(K=11,j--);for(e.drawMonth=K,e.drawYear=j,S=this._get(e,"prevText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K-F,1)),this._getFormatConfig(e)):S,a=this._canAdjustMonth(e,-1,j,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML,S=this._get(e,"nextText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K+F,1)),this._getFormatConfig(e)):S,i=this._canAdjustMonth(e,1,j,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:S}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML,F=this._get(e,"currentText"),I=this._get(e,"gotoCurrent")&&e.currentDay?N:B,F=x?this.formatDate(F,I,this._getFormatConfig(e)):F,S="",e.inline||(S=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),x="",w&&(x=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(C?S:"").append(this._isInRange(e,I)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(F):"").append(C?"":S)[0].outerHTML),s=parseInt(this._get(e,"firstDay"),10),s=isNaN(s)?0:s,r=this._get(e,"showWeek"),O=this._get(e,"dayNames"),L=this._get(e,"dayNamesMin"),R=this._get(e,"monthNames"),H=this._get(e,"monthNamesShort"),n=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),W=this._get(e,"selectOtherMonths"),c=this._getDefaultDate(e),o="",h=0;h<Y[0];h++){for(u="",this.maxRows=4,p=0;p<Y[1];p++){if(g=this._daylightSavingAdjust(new Date(j,K,e.selectedDay)),_=" ui-corner-all",f="",J){if(f+="<div class='ui-datepicker-group",1<Y[1])switch(p){case 0:f+=" ui-datepicker-group-first",_=" ui-corner-"+(C?"right":"left");break;case Y[1]-1:f+=" ui-datepicker-group-last",_=" ui-corner-"+(C?"left":"right");break;default:f+=" ui-datepicker-group-middle",_=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===h?C?i:a:"")+(/all|right/.test(_)&&0===h?C?a:i:"")+this._generateMonthYearHeader(e,K,j,T,A,0<h||0<p,R,H)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",l=0;l<7;l++)k+="<th scope='col'"+(5<=(l+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+O[E=(l+s)%7]+"'>"+L[E]+"</span></th>";for(f+=k+"</tr></thead><tbody>",m=this._getDaysInMonth(j,K),j===e.selectedYear&&K===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,m)),D=(this._getFirstDayOfMonth(j,K)-s+7)%7,m=Math.ceil((D+m)/7),U=J&&this.maxRows>m?this.maxRows:m,this.maxRows=U,y=this._daylightSavingAdjust(new Date(j,K,1-D)),P=0;P<U;P++){for(f+="<tr>",z=r?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(y)+"</td>":"",l=0;l<7;l++)v=n?n.apply(e.input?e.input[0]:null,[y]):[!0,""],b=(M=y.getMonth()!==K)&&!W||!v[0]||T&&y<T||A&&A<y,z+="<td class='"+(5<=(l+s+6)%7?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(y.getTime()===g.getTime()&&K===e.selectedMonth&&e._keyEvent||c.getTime()===y.getTime()&&c.getTime()===g.getTime()?" "+this._dayOverClass:"")+(b?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!d?"":" "+v[1]+(y.getTime()===N.getTime()?" "+this._currentClass:"")+(y.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(M&&!d||!v[2]?"":" title='"+v[2].replace(/'/g,"&#39;")+"'")+(b?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(M&&!d?"&#xa0;":b?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===B.getTime()?" ui-state-highlight":"")+(y.getTime()===N.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#' aria-current='"+(y.getTime()===N.getTime()?"true":"false")+"' data-date='"+y.getDate()+"'>"+y.getDate()+"</a>")+"</td>",y.setDate(y.getDate()+1),y=this._daylightSavingAdjust(y);f+=z+"</tr>"}11<++K&&(K=0,j++),u+=f+="</tbody></table>"+(J?"</div>"+(0<Y[0]&&p===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}o+=u}return o+=x,e._keyEvent=!1,o},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),f=this._get(e,"showMonthAfterYear"),k=this._get(e,"selectMonthLabel"),D=this._get(e,"selectYearLabel"),m="<div class='ui-datepicker-title'>",y="";if(r||!g)y+="<span class='ui-datepicker-month'>"+n[t]+"</span>";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+="<select class='ui-datepicker-month' aria-label='"+k+"' data-handler='selectMonth' data-event='change'>",l=0;l<12;l++)(!c||l>=i.getMonth())&&(!o||l<=s.getMonth())&&(y+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+d[l]+"</option>");y+="</select>"}if(f||(m+=y+(!r&&g&&_?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!_)m+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(n=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),u=(k=function(e){e=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(e)?h:e})(n[0]),p=Math.max(u,k(n[1]||"")),u=i?Math.max(u,i.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+D+"' data-handler='selectYear' data-event='change'>";u<=p;u++)e.yearshtml+="<option value='"+u+"'"+(u===a?" selected='selected'":"")+">"+u+"</option>";e.yearshtml+="</select>",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),f&&(m+=(!r&&g&&_?"":"&#xa0;")+y),m+="</div>"},_adjustInstDate:function(e,t,a){var i=e.selectedYear+("Y"===a?t:0),s=e.selectedMonth+("M"===a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),i=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,t)));e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),a=a&&t<a?a:t;return e&&e<a?e:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){e=this._get(e,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(a,i+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var a,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,n=null,e=this._get(e,"yearRange");return e&&(e=e.split(":"),a=(new Date).getFullYear(),r=parseInt(e[0],10),n=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=a),e[1].match(/[+\-].*/))&&(n+=a),(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!n||t.getFullYear()<=n)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),V.fn.datepicker=function(e){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);
150var t=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this].concat(t)):V.datepicker._attachDatepicker(this,e)})},V.datepicker=new e,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.3",V.datepicker});
151;jQuery(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Fechar","currentText":"Hoje","monthNames":["Janeiro","Fevereiro","Mar\u00e7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],"monthNamesShort":["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],"nextText":"Seguinte","prevText":"Anterior","dayNames":["Domingo","Segunda-feira","Ter\u00e7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\u00e1bado"],"dayNamesShort":["Dom","Seg","Ter","Qua","Qui","Sex","S\u00e1b"],"dayNamesMin":["D","S","T","Q","Q","S","S"],"dateFormat":"d \\dd\\e MM, yy","firstDay":1,"isRTL":!1})})
152;!function(root,factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports==='object'){factory(require('jquery'))}else{factory(root.jQuery)}}(this,function($){'use strict';$.fn.typeWatch=function(o){var _supportedInputTypes=['TEXT','TEXTAREA','PASSWORD','TEL','SEARCH','URL','EMAIL','DATETIME','DATE','MONTH','WEEK','TIME','DATETIME-LOCAL','NUMBER','RANGE','DIV'];var options=$.extend({wait:750,callback:function(){},highlight:!0,captureLength:2,allowSubmit:!1,inputTypes:_supportedInputTypes},o);function checkElement(timer,override){var value=timer.type==='DIV'?jQuery(timer.el).html():jQuery(timer.el).val();if((value.length>=options.captureLength&&value!=timer.text)||(override&&(value.length>=options.captureLength||options.allowSubmit))||(value.length==0&&timer.text)){timer.text=value;timer.cb.call(timer.el,value)}};function watchElement(elem){var elementType=(elem.type||elem.nodeName).toUpperCase();if(jQuery.inArray(elementType,options.inputTypes)>=0){var timer={timer:null,text:(elementType==='DIV')?jQuery(elem).html():jQuery(elem).val(),cb:options.callback,el:elem,type:elementType,wait:options.wait};if(options.highlight&&elementType!=='DIV')
153jQuery(elem).focus(function(){this.select()});var startWatch=function(evt){var timerWait=timer.wait;var overrideBool=!1;var evtElementType=elementType;if(typeof evt.keyCode!='undefined'&&evt.keyCode==13&&evtElementType!=='TEXTAREA'&&elementType!=='DIV'){timerWait=1;overrideBool=!0}
154var timerCallbackFx=function(){checkElement(timer,overrideBool)}
155clearTimeout(timer.timer);timer.timer=setTimeout(timerCallbackFx,timerWait)};jQuery(elem).on('keydown paste cut input',startWatch)}};return this.each(function(){watchElement(this)})}})
156;(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof module==='object'&&module.exports){module.exports=function(root,jQuery){if(jQuery===undefined){if(typeof window!=='undefined'){jQuery=require('jquery')}else{jQuery=require('jquery')(root)}}
157factory(jQuery);return jQuery}}else{factory(jQuery)}})(function($){"use strict";if('undefined'===typeof $){if('console' in window){window.console.info('Too much lightness, Featherlight needs jQuery.')}
158return}
159if($.fn.jquery.match(/-ajax/)){if('console' in window){window.console.info('Featherlight needs regular jQuery, not the slim version.')}
160return}
161function Featherlight($content,config){if(this instanceof Featherlight){this.id=Featherlight.id++;this.setup($content,config);this.chainCallbacks(Featherlight._callbackChain)}else{var fl=new Featherlight($content,config);fl.open();return fl}}
162var opened=[],pruneOpened=function(remove){opened=$.grep(opened,function(fl){return fl!==remove&&fl.$instance.closest('body').length>0});return opened};function slice(obj,set){var r={};for(var key in obj){if(key in set){r[key]=obj[key];delete obj[key]}}
163return r}
164var iFrameAttributeSet={allow:1,allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,mozallowfullscreen:1,name:1,referrerpolicy:1,sandbox:1,scrolling:1,src:1,srcdoc:1,style:1,webkitallowfullscreen:1,width:1};function parseAttrs(obj,prefix){var attrs={},regex=new RegExp('^'+prefix+'([A-Z])(.*)');for(var key in obj){var match=key.match(regex);if(match){var dasherized=(match[1]+match[2].replace(/([A-Z])/g,'-$1')).toLowerCase();attrs[dasherized]=obj[key]}}
165return attrs}
166var eventMap={keyup:'onKeyUp',resize:'onResize'};var globalEventHandler=function(event){$.each(Featherlight.opened().reverse(),function(){if(!event.isDefaultPrevented()){if
166(!1===this[eventMap[event.type]](event)){event.preventDefault();event.stopPropagation();return!1}}})};var toggleGlobalEvents=function(set){if(set!==Featherlight._globalHandlerInstalled){Featherlight._globalHandlerInstalled=set;var events=$.map(eventMap,function(_,name){return name+'.'+Featherlight.prototype.namespace}).join(' ');$(window)[set?'on':'off'](events,globalEventHandler)}};Featherlight.prototype={constructor:Featherlight,namespace:'featherlight',targetAttr:'data-featherlight',variant:null,resetCss:!1,background:null,openTrigger:'click',closeTrigger:'click',filter:null,root:'body',openSpeed:250,closeSpeed:250,closeOnClick:'background',closeOnEsc:!0,closeIcon:'&#10005;',loading:'',persist:!1,otherClose:null,beforeOpen:$.noop,beforeContent:$.noop,beforeClose:$.noop,afterOpen:$.noop,afterContent:$.noop,afterClose:$.noop,onKeyUp:$.noop,onResize:$.noop,type:null,contentFilters:['jquery','image','html','ajax','iframe','text'],setup:function(target,config){if(typeof target==='object'&&target instanceof $===!1&&!config){config=target;target=undefined}
167var self=$.extend(this,config,{target:target}),css=!self.resetCss?self.namespace:self.namespace+'-reset',$background=$(self.background||['<div class="'+css+'-loading '+css+'">','<div class="'+css+'-content">','<button class="'+css+'-close-icon '+self.namespace+'-close" aria-label="Close">',self.closeIcon,'</button>','<div class="'+self.namespace+'-inner">'+self.loading+'</div>','</div>','</div>'].join('')),closeButtonSelector='.'+self.namespace+'-close'+(self.otherClose?','+self.otherClose:'');self.$instance=$background.clone().addClass(self.variant);self.$instance.on(self.closeTrigger+'.'+self.namespace,function(event){if(event.isDefaultPrevented()){return}
168var $target=$(event.target);if(('background'===self.closeOnClick&&$target.is('.'+self.namespace))||'anywhere'===self.closeOnClick||$target.closest(closeButtonSelector).length){self.close(event);event.preventDefault()}});return this},getContent:function(){if(this.persist!==!1&&this.$content){return this.$content}
169var self=this,filters=this.constructor.contentFilters,readTargetAttr=function(name){return self.$currentTarget&&self.$currentTarget.attr(name)},targetValue=readTargetAttr(self.targetAttr),data=self.target||targetValue||'';var filter=filters[self.type];if(!filter&&data in filters){filter=filters[data];data=self.target&&targetValue}
170data=data||readTargetAttr('href')||'';if(!filter){for(var filterName in filters){if(self[filterName]){filter=filters[filterName];data=self[filterName]}}}
171if(!filter){var target=data;data=null;$.each(self.contentFilters,function(){filter=filters[this];if(filter.test){data=filter.test(target)}
172if(!data&&filter.regex&&target.match&&target.match(filter.regex)){data=target}
173return!data});if(!data){if('console' in window){window.console.error('Featherlight: no content filter found '+(target?' for "'+target+'"':' (no target specified)'))}
174return!1}}
175return filter.process.call(self,data)},setContent:function($content){this.$instance.removeClass(this.namespace+'-loading');this.$instance.toggleClass(this.namespace+'-iframe',$content.is('iframe'));this.$instance.find('.'+this.namespace+'-inner').not($content).slice(1).remove().end().replaceWith($.contains(this.$instance[0],$content[0])?'':$content);this.$content=$content.addClass(this.namespace+'-inner');return this},open:function(event){var self=this;self.$instance.hide().appendTo(self.root);if((!event||!event.isDefaultPrevented())&&self.beforeOpen(event)!==!1){if(event){event.preventDefault()}
176var $content=self.getContent();if($content){opened.push(self);toggleGlobalEvents(!0);self.$instance.fadeIn(self.openSpeed);self.beforeContent(event);return $.when($content).always(function($openendContent){if($openendContent){self.setContent($openendContent);self.afterContent(event)}}).then(self.$instance.promise()).done(function(){self.afterOpen(event)})}}
177self.$instance.detach();return $.Deferred().reject().promise()},close:function(event){var self=this,deferred=$.Deferred();if(self.beforeClose(event)===!1){deferred.reject()}else{if(0===pruneOpened(self).length){toggleGlobalEvents(!1)}
178self.$instance.fadeOut(self.closeSpeed,function(){self.$instance.detach();self.afterClose(event);deferred.resolve()})}
179return deferred.promise()},resize:function(w,h){if(w&&h){this.$content.css('width','').css('height','');var ratio=Math.max(w/(this.$content.parent().width()-1),h/(this.$content.parent().height()-1));if(ratio>1){ratio=h/Math.floor(h/ratio);this.$content.css('width',''+w/ratio+'px').css('height',''+h/ratio+'px')}}}
179,chainCallbacks:function(chain){for(var name in chain){this[name]=$.proxy(chain[name],this,$.proxy(this[name],this))}}};$.extend(Featherlight,{id:0,autoBind:'[data-featherlight]',defaults:Featherlight.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(elem){return elem instanceof $&&elem},process:function(elem){return this.persist!==!1?$(elem):$(elem).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff?|bmp|svg)(\?\S*)?$/i,process:function(url){var self=this,deferred=$.Deferred(),img=new Image(),$img=$('<img src="'+url+'" alt="" class="'+self.namespace+'-image" />');img.onload=function(){$img.naturalWidth=img.width;$img.naturalHeight=img.height;deferred.resolve($img)};img.onerror=function(){deferred.reject($img)};img.src=url;return deferred.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(html){return $(html)}},ajax:{regex:/./,process:function(url){var self=this,deferred=$.Deferred();var $container=$('<div></div>').load(url,function(response,status){if(status!=="error"){deferred.resolve($container.contents())}
180deferred.reject()});return deferred.promise()}},iframe:{process:function(url){var deferred=new $.Deferred();var $content=$('<iframe/>');var css=parseAttrs(this,'iframe');var attrs=slice(css,iFrameAttributeSet);$content.hide().attr('src',url).attr(attrs).css(css).on('load',function(){deferred.resolve($content.show())}).appendTo(this.$instance.find('.'+this.namespace+'-content'));return deferred.promise()}},text:{process:function(text){return $('<div>',{text:text})}}},functionAttributes:['beforeOpen','afterOpen','beforeContent','afterContent','beforeClose','afterClose'],readElementConfig:function(element,namespace){var Klass=this,regexp=new RegExp('^data-'+namespace+'-(.*)'),config={};if(element&&element.attributes){$.each(element.attributes,function(){var match=this.name.match(regexp);if(match){var val=this.value,name=$.camelCase(match[1]);if($.inArray(name,Klass.functionAttributes)>=0){val=new Function(val)}else{try{val=JSON.parse(val)}catch(e){}}
181config[name]=val}})}
182return config},extend:function(child,defaults){var Ctor=function(){this.constructor=child};Ctor.prototype=this.prototype;child.prototype=new Ctor();child.__super__=this.prototype;$.extend(child,this,defaults);child.defaults=child.prototype;return child},attach:function($source,$content,config){var Klass=this;if(typeof $content==='object'&&$content instanceof $===!1&&!config){config=$content;$content=undefined}
183config=$.extend({},config);var namespace=config.namespace||Klass.defaults.namespace,tempConfig=$.extend({},Klass.defaults,Klass.readElementConfig($source[0],namespace),config),sharedPersist;var handler=function(event){var $target=$(event.currentTarget);var elemConfig=$.extend({$source:$source,$currentTarget:$target},Klass.readElementConfig($source[0],tempConfig.namespace),Klass.readElementConfig(event.currentTarget,tempConfig.namespace),config);var fl=sharedPersist||$target.data('featherlight-persisted')||new Klass($content,elemConfig);if(fl.persist==='shared'){sharedPersist=fl}else if(fl.persist!==!1){$target.data('featherlight-persisted',fl)}
184if(elemConfig.$currentTarget.blur){elemConfig.$currentTarget.blur()}
185fl.open(event)};$source.on(tempConfig.openTrigger+'.'+tempConfig.namespace,tempConfig.filter,handler);return{filter:tempConfig.filter,handler:handler}},current:function(){var all=this.opened();return all[all.length-1]||null},opened:function(){var klass=this;pruneOpened();return $.grep(opened,function(fl){return fl instanceof klass})},close:function(event){var cur=this.current();if(cur){return cur.close(event)}},_onReady:function(){var Klass=this;if(Klass.autoBind){var $autobound=$(Klass.autoBind);$autobound.each(function(){Klass.attach($(this))});$(document).on('click',Klass.autoBind,function(evt){if(evt.isDefaultPrevented()){return}
186var $cur=$(evt.currentTarget);var len=$autobound.length;$autobound=$autobound.add($cur);if(len===$autobound.length){return}
187var data=Klass.attach($cur);if(!data.filter||$(evt.target).parentsUntil($cur,data.filter).length>0){data.handler(evt)}})}},_callbackChain:{onKeyUp:function(_super,event){if(27===event.keyCode){if(this.closeOnEsc){$.featherlight.close(event)}
188return!1}else{return _super(event)}},beforeOpen:function(_super,event){$(document.documentElement).addClass('with-featherlight');this._previouslyActive=document.activeElement;this._$previouslyTabbable=$("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]").not('[tabindex]').not(this.$instance.find('button'));this._$previouslyWithTabIndex=$('[tabindex]').not('[tabindex="-1"]');this._previousWithTabIndices=this._$previouslyWithTabIndex.map(function(_i,elem){return $(elem).attr('tabindex')});this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr('tabindex',-1);if(document.activeElement.blur){document.activeElement.blur()}
189return _super(event)},afterClose:function(_super,event){var r=_super(event);var self=this;this._$previouslyTabbable.removeAttr('tabindex');this._$previouslyWithTabIndex.each(function(i,elem){$(elem).attr('tabindex',self._previousWithTabIndices[i])});this._previouslyActive.focus();if(Featherlight.opened().length===0){$(document.documentElement).removeClass('with-featherlight')}
190return r},onResize:function(_super,event){this.resize(this.$content.naturalWi
190dth,this.$content.naturalHeight);return _super(event)},afterContent:function(_super,event){var r=_super(event);this.$instance.find('[autofocus]:not([disabled])').focus();this.onResize(event);return r}}});$.featherlight=Featherlight;$.fn.featherlight=function($content,config){Featherlight.attach(this,$content,config);return this};$(document).ready(function(){Featherlight._onReady()})})
191;/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
192!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(t){(u=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:u)&&u.requirejs||(u?e=u:u={},g={},m={},y={},v={},n=Object.prototype.hasOwnProperty,s=[].slice,_=/\.js$/,h=function(e,t){var n,s,i=c(e),o=i[0],t=t[1];return e=i[1],o&&(n=x(o=l(o,t))),o?e=n&&n.normalize?n.normalize(e,(s=t,function(e){return l(e,s)}
vendor: 14,061 bytes, line 192
192)):l(e,t):(o=(i=c(e=l(e,t)))[0],e=i[1],o&&(n=x(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},f={require:function(e){return w(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},o=function(e,t,n,s){var i,o,r,a,l,c=[],u=typeof n,d=A(s=s||e);if("undefined"==u||"function"==u){for(t=!t.length&&n.length?["require","exports","module"]:t,a=0;a<t.length;a+=1)if("require"===(o=(r=h(t[a],d)).f))c[a]=f.require(e);else if("exports"===o)c[a]=f.exports(e),l=!0;else if("module"===o)i=c[a]=f.module(e);else if(b(g,o)||b(m,o)||b(v,o))c[a]=x(o);else{if(!r.p)throw new Error(e+" missing "+o);r.p.load(r.n,w(s,!0),function(t){return function(e){g[t]=e}}(o),{}),c[a]=g[o]}u=n?n.apply(g[e],c):void 0,e&&(i&&i.exports!==p&&i.exports!==g[e]?g[e]=i.exports:u===p&&l||(g[e]=u))}else e&&(g[e]=n)},i=e=r=function(e,t,n,s,i){if("string"==typeof e)return f[e]?f[e](t):x(h(e,A(t)).f);if(!e.splice){if((y=e).deps&&r(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=s,s=i),s?o(p,e,t,n):setTimeout(function(){o(p,e,t,n)},4),r},r.config=function(e){return r(e)},i._defined=g,(a=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),b(g,e)||b(m,e)||(m[e]=[e,t,n])}).amd={jQuery:!0},u.requirejs=i,u.require=e,u.define=a),u.define("almond",function(){}),u.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),u.define("select2/utils",["jquery"],function(o){var s={};function c(e){var t,n=e.prototype,s=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&s.push(t);return s}s.Extend=function(e,t){var n,s={}.hasOwnProperty;function i(){this.constructor=e}for(n in t)s.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},s.Decorate=function(s,i){var e=c(i),t=c(s);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=s.prototype.constructor;0<t&&(e.call(arguments,s.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=s.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var r=t[n];o.prototype[r]=s.prototype[r]}for(var a=0;a<e.length;a++){var l=e[a];o.prototype[l]=function(e){var t=function(){},n=(e in o.prototype&&(t=o.prototype[e]),i.prototype[e]);return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}(l)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},0===(n=null==n?[]:n).length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,s=e.length;n<s;n++)e[n].apply(this,t)},s.Observable=e,s.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},s.bind=function(e,t){return function(){e.apply(t,arguments)}},s._convertData=function(e){for(var t in e){var n=t.split("-"),s=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in s||(s[o]={}),i==n.length-1&&(s[o]=e[t]),s=s[o]}delete e[t]}}return e},s.hasScroll=function(e,t){var n=o(t),s=t.style.overflowX,i=t.style.overflowY;return(s!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===s||"scroll"===i||n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth)},s.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},s.__cache={};var n=0;return s.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+s.generateChars(4),e.setAttribute("data-select2-id",t)),t},s.StoreData=function(e,t,n){e=s.GetUniqueElementId(e);s.__cache[e]||(s.__cache[e]={}),s.__cache[e][t]=n},s.GetData=function(e,t){var n=s.GetUniqueElementId(e);return t?s.__cache[n]&&null!=s.__cache[n][t]?s.__cache[n][t]:o(e).data(t):s.__cache[n]},s.RemoveData=function(e){var t=s.GetUniqueElementId(e);null!=s.__cache[t]&&delete s.__cache[t],e.removeAttribute("data-select2-id")},s.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0===e.indexOf("select2-")}),t=(t=t.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0!==e.indexOf("select2-")}),n=n.concat(t);e.setAttribute("class",n.join(" "))},s}),u.define("select2/results",["jquery","./utils"],function(u,d){function s(e,t,n){this.$element=e,this.data=n,this.options=t,s.__super__.constructor.call(this)}return d.Extend(s,d.Observable),s.prototype.render=function(){var e=u('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup"),n=(this.clear(),this.hideLoading(),u('<li role="alert" aria-live="assertive" class="select2-results__option"></li>')),s=this.options.get("translations").get(e.message);n.append(t(s(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},s.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},s.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"});else{e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var s=e.results[n],s=this.option(s);t.push(s)}this.$results.append(t)}},s.prototype.position=function(e,t){t.find(".select2-results").append(e)},s.prototype.sort=function(e){return this.options.get("sorter")(e)},s.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},s.prototype.setClasses=function(){var t=this;this.data.current(function(e){var s=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=u(this),t=d.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<s.indexOf(n)?(this.classList.add("select2-results__option--selected"),e.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e.attr("aria-selected","false"))})})},s.prototype.showLoading=function(e){this.hideLoading();e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},e=this.option(e);e.className+=" loading-results",this.$results.prepend(e)},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},s.prototype.option=function(e){var t,n=document.createElement("li"),s=(n.classList.add("select2-results__option"),n.classList.add("select2-results__option--selectable"),{role:"option"}),i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(t in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(s["aria-disabled"]="true",n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--disabled")),null==e.id&&n.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(s.role="group",s["aria-label"]=e.text,n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--group")),s)n.setAttribute(t,s[t]);if(e.children){for(var i=u(n),o=document.createElement("strong"),r=(o.className="select2-results__group",this.template(e,o),[]),a=0;a<e.children.length;a++){var l=e.children[a],l=this.option(l);r.push(l)}var c=u("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});c.append(r),i.append(o),i.append(c)}else this.template(e,n);return d.StoreData(n,"data",e),n},s.prototype.bind=function(t,e){var i=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on("query",function(e){i.hideMessages(),i.showLoading(e)}),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect"))&&i.highlightFirstItem()}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect"))&&i.highlightFirstItem()}),t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=i.getHighlightedResults();0!==t.length&&(e=d.GetData(t[0],"data"),t.hasClass("select2-results__option--selected")?i.trigger("close",{}):i.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=i.getHighlightedResults(),n=i.$results.find(".select2-results__option--selectable"),s=n.index(t);s<=0||(s=s-1,0===t.length&&(s=0),(t=n.eq(s)).trigger("mouseenter"),n=i.$results.offset().top,t=t.offset().top,e=i.$results.scrollTop()+(t-n),0===s?i.$results.scrollTop(0):t-n<0&&i.$results.scrollTop(e))}),t.on("results:next",function(){var e,t,n=i.getHighlightedResults(),s=i.$results.find(".select2-results__option--selectable"),n=s.index(n)+1;n>=s.length||((s=s.eq(n)).trigger("mouseenter"),e=i.$results.offset().top+i.$results.outerHeight(!1),s=s.offset().top+s.outerHeight(!1),t=i.$results.scrollTop()+s-e,0===n?i.$results.scrollTop(0):e<s&&i.$results.scrollTop(t))}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){i.displayMessage(e)}),u.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=i.$results.height();t?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=u(this),n=d.GetData(this,"data");t.hasClass("select2-results__option--selected")?i.options.get("multiple")?i.trigger("unselect",{originalEvent:e,data:n}):i.trigger("close",{originalEvent:e,data:n}):i.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=d.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),i.trigger("results:focus",{data:t,element:u(this)})})},s.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},s.prototype.destroy=function(){this.$results.remove()},s.prototype.ensureHighlightVisible=function(){var e,t,n,s,i=this.getHighlightedResults();0!==i.length&&(e=this.$results.find(".select2-results__option--selectable").index(i),t=this.$results.offset().top,s=i.offset().top,n=this.$results.scrollTop()+(s-t),s=s-t,n-=2*i.outerHeight(!1),e<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(n))},s.prototype.template=function(e,t){var n=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),n=n(e,t);null==n?t.style.display="none":"string"==typeof n?t.innerHTML=s(n):u(t).append(n)},s}),u.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),u.define("select2/selection/base",["jquery","../utils","../keys"],function(n,s,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return s.Extend(o,s.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=s.GetData(this.$element[0],"old-tabindex")?this._tabindex=s.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,s=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",s),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","fal
192se"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&s.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),u.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,s){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this,s=(i.__super__.bind.apply(this,arguments),t.id+"-container");this.$selection.find(".select2-selection__rendered").attr("id",s).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",s),this.$selection.attr("aria-controls",s),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){var t,n;0===e.length?this.clear():(e=e[0],t=this.$selection.find(".select2-selection__rendered"),n=this.display(e,t),t.empty().append(n),(n=e.title||e.text)?t.attr("title",n):t.removeAttr("title"))},i}),u.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,c){function o(e,t){o.__super__.constructor.apply(this,arguments)}return c.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(e,t){var n=this,s=(o.__super__.bind.apply(this,arguments),e.id+"-container");this.$selection.find(".select2-selection__rendered").attr("id",s),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.isDisabled()||(t=i(this).parent(),t=c.GetData(t[0],"data"),n.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){n.isDisabled()||e.stopPropagation()})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",s=0;s<e.length;s++){var i=e[s],o=this.selectionContainer(),r=this.display(i,o),a=n+c.generateChars(4)+"-",r=(i.id?a+=i.id:a+=c.generateChars(4),o.find(".select2-selection__choice__display").append(r).attr("id",a),i.title||i.text),r=(r&&o.attr("title",r),this.options.get("translations").get("removeItem")),l=o.find(".select2-selection__choice__remove");l.attr("title",r()),l.attr("aria-label",r()),l.attr("aria-describedby",a),c.StoreData(o[0],"data",i),t.push(o)}this.$selection.find(".select2-selection__rendered").append(t)}},o}),u.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer(),t=(n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),t.title||t.text||n.text());return this.$selection.find(".select2-selection__rendered").attr("title",t),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},e}
vendor: 9,981 bytes, line 192
192),u.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,s,a){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){s._handleClear(e)}),t.on("keypress",function(e){s._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var s=a.GetData(n[0],"data"),i=this.$element.val(),o=(this.$element.val(this.placeholder.id),{data:s});if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var r=0;r<s.length;r++)if(o={data:s[r]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=s.DELETE&&t.which!=s.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){var n,s;e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||(e=this.$selection.find(".select2-selection__rendered").attr("id"),n=this.options.get("translations").get("removeAllItems"),(s=i('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>')).attr("title",n()),s.attr("aria-label",n()),s.attr("aria-describedby",e),a.StoreData(s[0],"data",t),this.$selection.prepend(s),this.$selection[0].classList.add("select2-selection--clearable"))},e}),u.define("select2/selection/search",["jquery","../utils","../keys"],function(s,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=this.options.get("translations").get("search"),n=s('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>'),n=(this.$searchContainer=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",t()),e.call(this));return this._transferTabIndex(),n.append(this.$searchContainer),n},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results",o=t.id+"-container",e=(e.call(this,t,n),s.$search.attr("aria-describedby",o),t.on("open",function(){s.$search.attr("aria-controls",i),s.$search.trigger("focus")}),t.on("close",function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),t.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),t.on("disable",function(){s.$search.prop("disabled",!0)}),t.on("focus",function(e){s.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===s.$search.val()&&0<(t=s.$selection.find(".select2-selection__choice").last()).length&&(t=a.GetData(t[0],"data"),s.searchRemoveChoice(t),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){s.$search.val()&&e.stopPropagation()}),document.documentMode),r=e&&e<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){r?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;r&&"input"===e.type?s.$selection.off("input.search input.searchcheck"):(t=e.which)!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&s.handleSearch(e)})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},e}),u.define("select2/selection/selectionCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("selectionCssClass")||"";return-1!==t.indexOf(":all:")&&(t=t.replace(":all:",""),n.copyNonInternalCssClasses(e[0],this.$element[0])),e.addClass(t),e},e}),u.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var s=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==i.indexOf(e)&&(n=r.Event("select2:"+e,{params:t=t||{}}),s.$element.trigger(n),-1!==o.indexOf(e))&&(t.prevented=n.isDefaultPrevented())})},e}),u.define("select2/translation",["jquery","require"],function(t,n){function s(e){this.dict=e||{}}return s.prototype.all=function(){return this.dict},s.prototype.get=function(e){return this.dict[e]},s.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},s._cache={},s.loadPath=function(e){var t;return e in s._cache||(t=n(e),s._cache[e]=t),new s(s._cache[e])},s}),u.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"
192V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),u.define("select2/data/base",["../utils"],function(n){function s(e,t){s.__super__.constructor.call(this)}return n.Extend(s,n.Observable),s.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},s.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},s.prototype.bind=function(e,t){},s.prototype.destroy=function(){},s.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=n.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+n.generateChars(4),e},s}),u.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(l(e))}))},n.prototype.select=function(i){var e,o=this;i.selected=!0,null!=i.element&&"option"===i.element.tagName.toLowerCase()?(i.element.selected=!0,this.$element.trigger("input").trigger("change")):this.$element.prop("multiple")?this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var s=i[n].id;-1===t.indexOf(s)&&t.push(s)}o.$element.val(t),o.$element.trigger("input").trigger("change")}):(e=i.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(i){var o=this;this.$element.prop("multiple")&&(i.selected=!1,null!=i.element&&"option"===i.element.tagName.toLowerCase()?(i.element.selected=!1,this.$element.trigger("input").trigger("change")):this.current(function(e){for(var t=[],n=0;n<e.length;n++){var s=e[n].id;s!==i.id&&-1===t.indexOf(s)&&t.push(s)}o.$element.val(t),o.$element.trigger("input").trigger("change")}))},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(t,e){var n=[],s=this;this.$element.children().each(function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=l(this),e=s.item(e),null!==(e=s.matches(t,e))&&n.push(e))}),e({results:n})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var t,e=this._normalizeItem(e);return e.element=t,a.StoreData(t,"data",e),l(t)},n.prototype.item=function(e){var t={};if(null==(t=a.GetData(e[0],"data"))){var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===n.tagName.toLowerCase()){for(var t={text:e.prop("label"),children:[],title:e.prop("title")},s=e.children("option"),i=[],o=0;o<s.length;o++){var r=l(s[o]),r=this.item(r);i.push(r)}t.children=i}(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t)}return t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),u.define("select2/data/array",["./select","../utils","jquery"],function(e,t,c){function s(e,t){this._dataToConvert=t.get("data")||[],s.__super__.constructor.call(this,e,t)}return t.Extend(s,e),s.prototype.bind=function(e,t){s.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},s.prototype.select=function(n){var e;0===this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()}).length&&(e=this.option(n),this.addOptions(e)),s.__super__.select.call(this,n)},s.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),s=n.map(function(){return t.item(c(this)).id}).get(),i=[];for(var o=0;o<e.length;o++){var r,a,l=this._normalizeItem(e[o]);0<=s.indexOf(l.id)?(r=n.filter(function(e){return function(){return c(this).val()==e.id}}(l)),a=this.item(r),a=c.extend(!0,{},l,a),a=this.option(a),r.replaceWith(a)):(r=this.option(l),l.children&&(a=this.convertToOptions(l.children),r.append(a)),i.push(r))}return i},s}),u.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){return o.extend({},{data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){e=o.ajax(e);return e.then(t),e.fail(n),e}},e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(t,n){var s=this,i=(null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null),o.extend({type:"GET"},this.ajaxOptions));function e(){var e=i.transport(i,function(e){e=s.processResults(e,t);s.options.get("debug")&&window.console&&console.error&&(e&&e.results&&Array.isArray(e.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),n(e)},function(){e&&"status"in e&&(0===e.status||"0"===e.status)||s.trigger("results:message",{message:"errorLoading"})});s._request=e}"function"==typeof i.url&&(i.url=i.url.call(this.$element,t)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),u.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var s=n.get("tags"),i=n.get("createTag"),i=(void 0!==i&&(this.createTag=i),n.get("insertTag"));if(void 0!==i&&(this.insertTag=i),e.call(this,t,n),Array.isArray(s))for(var o=0;o<s.length;o++){var r=s[o],r=this._normalizeItem(r),r=this.option(r);this.$element.append(r)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null==c.term||null!=c.page?e.call(this,c,u):e.call(this,c,function e(t,n){for(var s=t.results,i=0;i<s.length;i++){var o=s[i],r=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||r)return!n&&(t.data=s,void u(t))}if(n)return!0;var a,l=d.createTag(c);null!=l&&((a=d.option(l)).attr("data-select2-tag","true"),d.addOptions([a]),d.insertTag(s,l)),t.results=s,u(t)})},e.prototype.createTag=function(e,t){return null==t.term||""===(t=t.term.trim())?null:{
vendor: 8,518 bytes, line 192
192id:t,text:t}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),u.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,n){var s=n.get("tokenizer");void 0!==s&&(this.tokenizer=s),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var s=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t=s._normalizeItem(e);s.$element.find("option").filter(function(){return c(this).val()===t.id}).length||((e=s.option(t)).attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([e])),s.trigger("select",{data:t})});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,s){for(var i=n.get("tokenSeparators")||[],o=t.term,r=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};r<o.length;){var l=o[r];-1===i.indexOf(l)?r++:(l=o.substr(0,r),null==(l=a(c.extend({},t,{term:l})))?r++:(s(l),o=o.substr(r+1)||"",r=0))}return{term:o}},e}),u.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),u.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),u.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(){s._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var s=this;this._checkIfMaximumSelected(function(){e.call(s,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){e=null!=e?e.length:0;0<n.maximumSelectionLength&&e>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},e}),u.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),u.define("select2/dropdown/search",["jquery"],function(o){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("translations").get("search"),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",t()),e.prepend(n),e},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){s.handleSearch(e)}),t.on("open",function(){s.$search.attr("tabindex",0),s.$search.attr("aria-controls",i),s.$search.trigger("focus"),window.setTimeout(function(){s.$search.trigger("focus")},0)}),t.on("close",function(){s.$search.attr("tabindex",-1),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.val(""),s.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||s.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer[0].classList.remove("select2-search--hide"):s.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")})},e.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),u.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,s){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,s)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),s=t.length-1;0<=s;s--){var i=t[s];this.placeholder.id===i.id&&n.splice(s,1)}return n},e}),u.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,s){this.lastParams={},e.call(this,t,n,s),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("query",function(e){s.lastParams=e,s.loading=!0}),t.on("query:append",function(e){s.lastParams=e,s.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50)&&this.loadMore()},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),u.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,r){function e(e,t,n){this.$dropdownParent=u(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("open",function(){s._showDropdown(),s._attachPositioningHandler(t),s._bindContainerResultHandlers(t)}),t.on("close",function(){s._hideDropdown(),s._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=u("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(n=this,t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0)},e.prototype._attachPositioningHandler=function(e,t){var n=this,s="scroll.
192select2."+t.id,i="resize.select2."+t.id,t="orientationchange.select2."+t.id,o=this.$container.parents().filter(r.hasScroll);o.each(function(){r.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),o.on(s,function(e){var t=r.GetData(this,"select2-scroll-position");u(this).scrollTop(t.y)}),u(window).on(s+" "+i+" "+t,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,s="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(r.hasScroll).off(n),u(window).off(n+" "+s+" "+t)},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),s=null,i=this.$container.offset(),o=(i.bottom=i.top+this.$container.outerHeight(!1),{height:this.$container.outerHeight(!1)});o.top=i.top,o.bottom=i.top+o.height;var r=this.$dropdown.outerHeight(!1),a=e.scrollTop(),e=e.scrollTop()+e.height(),a=a<i.top-r,e=e>i.bottom+r,i={left:i.left,top:o.bottom},l=this.$dropdownParent,c=("static"===l.css("position")&&(l=l.offsetParent()),{top:0,left:0});(u.contains(document.body,l[0])||l[0].isConnected)&&(c=l.offset()),i.top-=c.top,i.left-=c.left,t||n||(s="below"),e||!a||t?!a&&e&&t&&(s="below"):s="above",("above"==s||t&&"below"!==s)&&(i.top=o.top-c.top-r),null!=s&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+s),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+s)),this.$dropdownContainer.css(i)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),u.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,s){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,s)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,s=0;s<t.length;s++){var i=t[s];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),u.define("select2/dropdown/selectOnClose",["../utils"],function(n){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("close",function(e){s._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){t=t.originalSelect2Event;if("select"===t._type||"unselect"===t._type)return}var t=this.getHighlightedResults();t.length<1||null!=(t=n.GetData(t[0],"data")).element&&t.element.selected||null==t.element&&t.selected||this.trigger("select",{data:t})},e}),u.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(e){s._selectTriggered(e)}),t.on("unselect",function(e){s._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),u.define("select2/dropdown/dropdownCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("dropdownCssClass")||"";return-1!==t.indexOf(":all:")&&(t=t.replace(":all:",""),n.copyNonInternalCssClasses(e[0],this.$element[0])),e.addClass(t),e},e}),u.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(s){function e(){}return e.prototype.highlightFirstItem=function(e){var t=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(0<t.length){var t=t.first(),n=s.GetData(t[0],"data").element;if(n&&n.getAttribute&&"true"===n.getAttribute("data-select2-tag"))return void t.trigger("mouseenter")}e.call(this)},e}),u.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var e=e.input.length-e.maximum,t="Please delete "+e+" character";return 1!=e&&(t+="s"),t},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),u.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(l,o,r,a,c,u,d,p,h,f,g,t,m,y,v,_,b,w,$,x,A,D,S,O,L,E,C,T,q,I,e){function n(){this.reset()}return n.prototype.apply=function(e){null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=v:null!=e.data?e.dataAdapter=y:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,_)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,b))),null==e.resultsAdapter&&(e.resultsAdapter=o,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,O)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,C)),e.tags)&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,I)),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=A:(t=f.Decorate(A,D),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,E)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,L)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=a:e.selectionAdapter=r,
vendor: 15,516 bytes, line 192
192null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var t,n=[],s=0;s<e.language.length;s++){var i=e.language[s];-1===n.indexOf(i)&&n.push(i)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var s=l.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&s.children.splice(i,1);return 0<s.children.length?s:e(t,s)}var o=a(n.text).toUpperCase(),r=a(t.term).toUpperCase();return-1<o.indexOf(r)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,s=this.defaults.language,i=t.prop("lang"),t=t.closest("[lang]").prop("lang"),i=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(s),this._resolveLanguage(t));return e.language=i,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];for(var t,n=Array.isArray(e)?e:[e],s=[],i=0;i<n.length;i++)s.push(n[i]),"string"==typeof n[i]&&0<n[i].indexOf("-")&&(t=n[i].split("-")[0],s.push(t));return s},n.prototype._processTranslations=function(e,t){for(var n=new g,s=0;s<e.length;s++){var i=new g,o=e[s];if("string"==typeof o)try{i=g.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=g.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=l.isPlainObject(o)?new g(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={},e=(n[l.camelCase(e)]=t,f._convertData(n));l.extend(!0,this.defaults,e)},new n}),u.define("select2/options",["jquery","./defaults","./utils"],function(c,n,u){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t=["select2"],n=(null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),u.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),u.StoreData(e[0],"data",u.GetData(e[0],"select2Tags")),u.StoreData(e[0],"tags",!0)),u.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",u.GetData(e[0],"ajaxUrl")),u.StoreData(e[0],"ajax-Url",u.GetData(e[0],"ajaxUrl"))),{});function s(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,r="data-";o.substr(0,r.length)==r&&(o=o.substring(r.length),r=u.GetData(e[0],o),n[o.replace(/-([a-z])/g,s)]=r)}c.fn.jquery&&"1."==c.fn.jquery.substr(0,2)&&e[0].dataset&&(n=c.extend(!0,{},e[0].dataset,n));var a,l=c.extend(!0,{},u.GetData(e[0]),n);for(a in l=u._convertData(l))-1<t.indexOf(a)||(c.isPlainObject(this.options[a])?c.extend(this.options[a],l[a]):this.options[a]=l[a]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),u.define("select2/core",["jquery","./options","./utils","./keys"],function(t,i,o,s){function r(e,t){null!=o.GetData(e[0],"select2")&&o.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),this.options=new i(t=t||{},e),r.__super__.constructor.call(this);var t=e.attr("tabindex")||0,t=(o.StoreData(e[0],"old-tabindex",t),e.attr("tabindex","-1"),this.options.get("dataAdapter")),t=(this.dataAdapter=new t(e,this.options),this.render()),n=(this._placeContainer(t),this.options.get("selectionAdapter")),n=(this.selection=new n(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,t),this.options.get("dropdownAdapter")),n=(this.dropdown=new n(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,t),this.options.get("resultsAdapter")),s=(this.results=new n(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown),this);this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){s.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),o.StoreData(e[0],"select2",this),e.data("select2",this)}return o.Extend(r,o.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+o.generateChars(2):o.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t)return null!=(s=this._resolveWidth(e,"style"))?s:this._resolveWidth(e,"element");if("element"==t)return(s=e.outerWidth(!1))<=0?"auto":s+"px";if("style"!=t)return"computedstyle"==t?window.getComputedStyle(e[0]).width:t;var s=e.attr("style");if("string"==typeof s)for(var i=s.split(";"),o=0,r=i.length;o<r;o+=1){var a=i[o].replace(/\s/g,"").match(n);if(null!==a&&1<=a.length)return a[1]}return null},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=o.bind(this._syncAttributes,this),this._syncS=o.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerSelectionEvents=function(){var n=this,s=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===s.indexOf(e)&&n.trigger(e,t)})},r.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===s.ESC||t===s.UP&&e.altKey?(n.close(e),e.preventDefault()):t===s.ENTER||t===s.TAB?(n.trigger("results:select",{}),e.preventDefault()):t===s.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===s.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===s.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===s.ENTER||t===s.SPACE||t===s.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},r.prototype._syncSubtree=function(e){var e=this._isChangeMutation(e),t=this;e&&this.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,s={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in s){var i={prevented:!1,name:e,args:t};if(n.call(this,s[e],i),i.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');e=!(e=null!=e&&0!==e.length?e:[!0])[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();e=e[0];Array.isArray(e)&&(e=e.map(function(e){return e.toString()})),this.$element.val(e).trigger("input").trigger("change")},r.prototype.destroy=function(){o.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",o.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),o.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),o.StoreData(e[0],"element",this.$element),e},r}),u.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t[0].classList.add("select2-dropdown--below"),n[0].classList.add("select2-container--below")},e}),u.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),u.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),i=function(c){var u,d,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],p=Array.prototype.slice;if(c.event.fixHooks)for(var n=e.length;n;)c.event.fixHooks[e[--n]]=c.event.mouseHooks;var h=c.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],s,!1);else this.onmousewheel=s;c.data(this,"mousewheel-line-height",h.getLineHeight(this)),c.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],s,!1);else this.onmousewheel=null;c.removeData(this,"mousewheel-line-height"),c.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var e=c(e),t=e["offsetParent"in c.fn?"offsetParent":"parent"]();return t.length||(t=c("body")),parseInt(t.css("fontSize"),10)||parseInt(e.css("fontSize"),10)||16},getPageHeight:function(e){return c(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};
192function s(e){var t,n=e||window.event,s=p.call(arguments,1),i=0,o=0,r=0,a=0,l=0;if((e=c.event.fix(n)).type="mousewheel","detail"in n&&(r=-1*n.detail),"wheelDelta"in n&&(r=n.wheelDelta),"wheelDeltaY"in n&&(r=n.wheelDeltaY),"wheelDeltaX"in n&&(o=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(o=-1*r,r=0),i=0===r?o:r,"deltaY"in n&&(i=r=-1*n.deltaY),"deltaX"in n&&(o=n.deltaX,0===r)&&(i=-1*o),0!==r||0!==o)return 1===n.deltaMode?(i*=t=c.data(this,"mousewheel-line-height"),r*=t,o*=t):2===n.deltaMode&&(i*=t=c.data(this,"mousewheel-page-height"),r*=t,o*=t),t=Math.max(Math.abs(r),Math.abs(o)),(!d||t<d)&&g(n,d=t)&&(d/=40),g(n,t)&&(i/=40,o/=40,r/=40),i=Math[1<=i?"floor":"ceil"](i/d),o=Math[1<=o?"floor":"ceil"](o/d),r=Math[1<=r?"floor":"ceil"](r/d),h.settings.normalizeOffset&&this.getBoundingClientRect&&(n=this.getBoundingClientRect(),a=e.clientX-n.left,l=e.clientY-n.top),e.deltaX=o,e.deltaY=r,e.deltaFactor=d,e.offsetX=a,e.offsetY=l,e.deltaMode=0,s.unshift(e,i,o,r),u&&clearTimeout(u),u=setTimeout(f,200),(c.event.dispatch||c.event.handle).apply(this,s)}function f(){d=null}function g(e,t){return h.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}c.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof u.define&&u.define.amd?u.define("jquery-mousewheel",["jquery"],i):"object"==typeof exports?module.exports=i:i(t),u.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,r){var a;return null==i.fn.select2&&(a=["open","close","destroy"],i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;var n,s;if("string"==typeof t)return s=Array.prototype.slice.call(arguments,1),this.each(function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,s)}),-1<a.indexOf(t)?this:n;throw new Error("Invalid arguments for Select2: "+t)}),null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o});var e,p,o,r,h,f,g,m,y,v,n,s,_,i,a={define:u.define,require:u.require};function b(e,t){return n.call(e,t)}function l(e,t){var n,s,i,o,r,a,l,c,u,d,p=t&&t.split("/"),h=y.map,f=h&&h["*"]||{};if(e){for(t=(e=e.split("/")).length-1,y.nodeIdCompat&&_.test(e[t])&&(e[t]=e[t].replace(_,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),c=0;c<e.length;c++)"."===(d=e[c])?(e.splice(c,1),--c):".."!==d||0===c||1===c&&".."===e[2]||".."===e[c-1]||0<c&&(e.splice(c-1,2),c-=2);e=e.join("/")}if((p||f)&&h){for(c=(n=e.split("/")).length;0<c;--c){if(s=n.slice(0,c).join("/"),p)for(u=p.length;0<u;--u)if(i=(i=h[p.slice(0,u).join("/")])&&i[s]){o=i,r=c;break}if(o)break;!a&&f&&f[s]&&(a=f[s],l=c)}!o&&a&&(o=a,r=l),o&&(n.splice(0,r,o),e=n.join("/"))}return e}function w(t,n){return function(){var e=s.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),r.apply(p,e.concat([t,n]))}}function x(e){var t;if(b(m,e)&&(t=m[e],delete m[e],v[e]=!0,o.apply(p,t)),b(g,e)||b(v,e))return g[e];throw new Error("No "+e)}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function A(e){return e?c(e):[]}var u=a.require("jquery.select2");return t.fn.select2.amd=a,u});
193;/*!
194FullCalendar Standard Bundle v6.1.9
195Docs & License: https://fullcalendar.io/docs/initialize-globals
196(c) 2023 Adam Shaw
197*/
198var FullCalendar=function(e){"use strict";var t,n,r,i,s,o,a,l,c,d={},u=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function p(e,n,r){var i,s,o,a={};for(o in n)"key"==o?i=n[o]:"ref"==o?s=n[o]:a[o]=n[o];if(arguments.length>2&&(a.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return m(e,a,i,s,null)}function m(e,t,i,s,o){var a={type:e,props:t,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++r:o};return null==o&&null!=n.vnode&&n.vnode(a),a}function v(){return{current:null}}function y(e){return e.children}function b(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function E(e,t,n,r,i){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||b(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||b(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?A:S,s):e.removeEventListener(t,s?A:S,s);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function S(e){s=!0;try{return this.l[e.type+!1](n.event?n.event(e):e)}finally{s=!1}}function A(e){s=!0;try{return this.l[e.type+!0](n.event?n.event(e):e)}finally{s=!1}}function D(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function C(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return C(e)}}function R(e){s?setTimeout(e):l(e)}function x(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!_.__r++||a!==n.debounceRendering)&&((a=n.debounceRendering)||R)(_)}function _(){var e,t,n,r,i,s,a,l;for(o.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=o.shift();)e.__d&&(t=o.length,r=void 0,i=void 0,a=(s=(n=e).__v).__e,(l=n.__P)&&(r=[],(i=f({},s)).__v=s.__v+1,N(l,s,i,n.__n,void 0!==l.ownerSVGElement,null!=s.__h?[a]:null,r,null==a?w(s):a,s.__h),P(r,s),s.__e!=a&&C(s)),o.length>t&&o.sort((function(e,t){return e.__v.__b-t.__v.__b})));_.__r=0}function T(e,t,n,r,i,s,o,a,l,c){var h,f,g,p,v,b,E,S=r&&r.__k||u,A=S.length;
vendor: 8,256 bytes, line 198
198for(n.__k=[],h=0;h<t.length;h++)if(null!=(p=n.__k[h]=null==(p=t[h])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?m(null,p,null,null,p):Array.isArray(p)?m(y,{children:p},null,null,null):p.__b>0?m(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(g=S[h])||g&&p.key==g.key&&p.type===g.type)S[h]=void 0;else for(f=0;f<A;f++){if((g=S[f])&&p.key==g.key&&p.type===g.type){S[f]=void 0;break}g=null}N(e,p,g=g||d,i,s,o,a,l,c),v=p.__e,(f=p.ref)&&g.ref!=f&&(E||(E=[]),g.ref&&E.push(g.ref,null,p),E.push(f,p.__c||v,p)),null!=v?(null==b&&(b=v),"function"==typeof p.type&&p.__k===g.__k?p.__d=l=k(p,l,e):l=I(e,p,g,S,v,l),"function"==typeof n.type&&(n.__d=l)):l&&g.__e==l&&l.parentNode!=e&&(l=w(g))}for(n.__e=b,h=A;h--;)null!=S[h]&&("function"==typeof n.type&&null!=S[h].__e&&S[h].__e==n.__d&&(n.__d=O(r).nextSibling),j(S[h],S[h]));if(E)for(h=0;h<E.length;h++)B(E[h],E[++h],E[++h])}function k(e,t,n){for(var r,i=e.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=e,t="function"==typeof r.type?k(r,t,n):I(n,r,r,i,r.__e,t));return t}function M(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){M(e,t)})):t.push(e)),t}function I(e,t,n,r,i,s){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||i!=s||null==i.parentNode)e:if(null==s||s.parentNode!==e)e.appendChild(i),o=null;else{for(a=s,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==i)break e;e.insertBefore(i,s),o=s}return void 0!==o?o:i.nextSibling}function O(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=O(n)))return r;return null}function N(e,t,r,i,s,o,a,l,c){var d,u,h,g,p,m,v,b,E,S,A,w,C,R,x,_=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(c=r.__h,l=t.__e=r.__e,t.__h=null,o=[l]),(d=n.__b)&&d(t);try{e:if("function"==typeof _){if(b=t.props,E=(d=_.contextType)&&i[d.__c],S=d?E?E.props.value:d.__:i,r.__c?v=(u=t.__c=r.__c).__=u.__E:("prototype"in _&&_.prototype.render?t.__c=u=new _(b,S):(t.__c=u=new D(b,S),u.constructor=_,u.render=z),E&&E.sub(u),u.props=b,u.state||(u.state={}),u.context=S,u.__n=i,h=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=_.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=f({},u.__s)),f(u.__s,_.getDerivedStateFromProps(b,u.__s))),g=u.props,p=u.state,u.__v=t,h)null==_.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==_.getDerivedStateFromProps&&b!==g&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(b,S),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(b,u.__s,S)||t.__v===r.__v){for(t.__v!==r.__v&&(u.props=b,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<u._sb.length;A++)u.__h.push(u._sb[A]);u._sb=[],u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(b,u.__s,S),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(g,p,m)}))}if(u.context=S,u.props=b,u.__P=e,w=n.__r,C=0,"prototype"in _&&_.prototype.render){for(u.state=u.__s,u.__d=!1,w&&w(t),d=u.render(u.props,u.state,u.context),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[]}else do{u.__d=!1,w&&w(t),d=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++C<25);u.state=u.__s,null!=u.getChildContext&&(i=f(f({},i),u.getChildContext())),h||null==u.getSnapshotBeforeUpdate||(m=u.getSnapshotBeforeUpdate(g,p)),x=null!=d&&d.type===y&&null==d.key?d.props.children:d,T(e,Array.isArray(x)?x:[x],t,r,i,s,o,a,l,c),u.base=t.__e,t.__h=null,u.__h.length&&a.push(u),v&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=H(r.__e,t,r,i,s,o,a,c);(d=n.diffed)&&d(t)}catch(e){t.__v=null,(c||null!=o)&&(t.__e=l,t.__h=!!c,o[o.indexOf(l)]=null),n.__e(e,t,r)}}function P(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function H(e,n,r,i,s,o,a,l){var c,u,h,f=r.props,p=n.props,m=n.type,v=0;if("svg"===m&&(s=!0),null!=o)for(;v<o.length;v++)if((c=o[v])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){e=c,o[v]=null;break}if(null==e){if(null===m)return document.createTextNode(p);e=s?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,p.is&&p),o=null,l=!1}if(null===m)f===p||l&&e.data===p||(e.data=p);else{if(o=o&&t.call(e.childNodes),u=(f=r.props||d).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!l){if(null!=o)for(f={},v=0;v<e.attributes.length;v++)f[e.attributes[v].name]=e.attributes[v].value;(h||u)&&(h&&(u&&h.__html==u.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(function(e,t,n,r,i){var s;for(s in n)"children"===s||"key"===s||s in t||E(e,s,null,n[s],r);for(s in t)i&&"function"!=typeof t[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===t[s]||E(e,s,t[s],n[s],r)}(e,p,f,s,l),h)n.__k=[];else if(v=n.props.children,T(e,Array.isArray(v)?v:[v],n,r,i,s&&"foreignObject"!==m,o,a,o?o[0]:r.__k&&w(r,0),l),null!=o)for(v=o.length;v--;)null!=o[v]&&g(o[v]);l||("value"in p&&void 0!==(v=p.value)&&(v!==e.value||"progress"===m&&!v||"option"===m&&v!==f.value)&&E(e,"value",v,f.value,!1),"checked"in p&&void 0!==(v=p.checked)&&v!==e.checked&&E(e,"checked",v,f.checked,!1))}return e}function B(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,r)}}function j(e,t,r){var i,s;if(n.unmount&&n.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||B(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){n.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&j(i[s],t,r||"function"!=typeof e.type);r||null==e.__e||g(e.__e),e.__=e.__e=e.__d=void 0}function z(e,t,n){return this.constructor(e,n)}function U(e,r,i){var s,o,a;n.__&&n.__(e,r),o=(s="function"==typeof i)?null:i&&i.__k||r.__k,a=[],N(r,e=(!s&&i||r).__k=p(y,null,[e]),o||d,d,void 0!==r.ownerSVGElement,!s&&i?[i]:o?null:r.firstChild?t.call(r.childNodes):null,a,!s&&i?i:o?o.__e:r.firstChild,s),P(a,e)}t=u.slice,n={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},r=0,i=function(e){return null!=e&&void 0===e.constructor},s=!1,D.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),x(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},D.prototype.render=y,o=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_.__r=0,c=0;var W,L,F,V=[],G=[],Q=n.__b,q=n.__r,Y=n.diffed,Z=n.__c,X=n.unmount;function $(){for(var e;e=V.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ee),e.__H.__h.forEach(te),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}}n.__b=function(e){W=null,Q&&Q(e)},n.__r=function(e){q&&q(e);var t=(W=e.__c).__H;t&&(L===W?(t.__h=[],W.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=G,e.__N=e.i=void 0}))):(t.__h.forEach(ee),t.__h.forEach(te),t.__h=[])),L=W},n.diffed=function(e){Y&&Y(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==V.push(t)&&F===n.requestAnimationFrame||((F=n.requestAnimationFrame)||K)($)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==G&&(e.__=e.__V),e.i=void 0,e.__V=G}))),L=W=null},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ee),e.__h=e.__h.filter((function(e){return!e.__||te(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(r,e.__v)}})),Z&&Z(e,t)},n.unmount=function(e){X&&X(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{ee(e)}catch(e){t=e}})),r.__H=void 0,t&&n.__e(t,r.__v))};var J="function"==typeof requestAnimationFrame;function K(e){var t,n=function(){clearTimeout(r),J&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);J&&(t=requestAnimationFrame(n))}function ee(e){var t=W,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),W=t}function te(e){var t=W;e.__c=e.__(),W
vendor: 13,832 bytes, line 198
198=t}function ne(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function re(e){this.props=e}(re.prototype=new D).isPureReactComponent=!0,re.prototype.shouldComponentUpdate=function(e,t){return ne(this.props,e)||ne(this.state,t)};var ie=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ie&&ie(e)};var se=n.__e;n.__e=function(e,t,n,r){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);se(e,t,n,r)};var oe=n.unmount;function ae(){this.__u=0,this.t=null,this.__b=null}function le(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ce(){this.u=null,this.o=null}n.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),oe&&oe(e)},(ae.prototype=new D).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=le(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},ae.prototype.componentWillUnmount=function(){this.t=[]},ae.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&p(y,null,e.fallback);return i&&(i.__h=null),[p(y,null,t.__a?null:e.children),i]};var de=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ue(e){return this.getChildContext=function(){return e.context},e.children}function he(e){var t=this,n=e.i;t.componentWillUnmount=function(){U(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),U(p(ue,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function fe(e,t){var n=p(he,{__v:e,i:t});return n.containerInfo=t,n}(ce.prototype=new D).__a=function(e){var t=this,n=le(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),de(t,e,r)):i()};n?n(s):s()}},ce.prototype.render=function(e){this.u=null,this.o=new Map;var t=M(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ce.prototype.componentDidUpdate=ce.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){de(e,n,t)}))};var ge="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,pe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,me="undefined"!=typeof document,ve=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};D.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(D.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ye=n.event;function be(){}function Ee(){return this.cancelBubble}function Se(){return this.defaultPrevented}n.event=function(e){return ye&&(e=ye(e)),e.persist=be,e.isPropagationStopped=Ee,e.isDefaultPrevented=Se,e.nativeEvent=e};var Ae={configurable:!0,get:function(){return this.class}},De=n.vnode;n.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var s in r={},n){var o=n[s];me&&"children"===s&&"noscript"===t||"value"===s&&"defaultValue"in n&&null==o||("defaultValue"===s&&"value"in n&&null==n.value?s="value":"download"===s&&!0===o?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+t)&&!ve(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&pe.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===o&&(o=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=o)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=M(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=M(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Ae.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Ae))}e.$$typeof=ge,De&&De(e)};var we=n.__r;n.__r=function(e){we&&we(e),e.__c};const Ce=[],Re=new Map;function xe(e){Ce.push(e),Re.forEach(t=>{Te(t,e)})}function _e(e){let t=Re.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=function(){void 0===ke&&(ke=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");if(t)return t.nonce||"";return""}());return ke}();n&&(t.nonce=n);const r=e===document?document.head:e,i=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,i)}Re.set(e,t),function(e){for(const t of Ce)Te(e,t)}(t)}}function Te(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach((e,t)=>{(e=e.trim())&&n.insertRule(e+"}",r+t)})}let ke;"undefined"!=typeof document&&_e(document);xe(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}
vendor: 7,157 bytes, line 198
198.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}'
vendor: 72,030 bytes, line 198
198);class Me{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;if(e in n){if(t)delete n[e];else{n[e]-=1,n[e]<=0&&delete n[e]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function Ie(e){e.parentNode&&e.parentNode.removeChild(e)}function Oe(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(Ne(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Ne(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function Pe(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let i=n[e].querySelectorAll(t);for(let e=0;e<i.length;e+=1)r.push(i[e])}return r}const He=/(top|left|right|bottom|width|height)$/i;function Be(e,t){for(let n in t)je(e,n,t[n])}function je(e,t,n){null==n?e.style[t]="":"number"==typeof n&&He.test(t)?e.style[t]=n+"px":e.style[t]=n}function ze(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}let Ue=0;function We(){return Ue+=1,"fc-dom-"+Ue}function Le(e){e.preventDefault()}function Fe(e,t,n,r){let i=function(e,t){return n=>{let r=Oe(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}const Ve=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ge(e,t){let n=r=>{t(r),Ve.forEach(t=>{e.removeEventListener(t,n)})};Ve.forEach(t=>{e.addEventListener(t,n)})}function Qe(e){return Object.assign({onClick:e},qe(e))}function qe(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let Ye=0;function Ze(){return Ye+=1,String(Ye)}function Xe(){document.body.classList.add("fc-not-allowed")}function $e(){document.body.classList.remove("fc-not-allowed")}function Je(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",Le)}function Ke(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",Le)}function et(e){e.addEventListener("contextmenu",Le)}function tt(e){e.removeEventListener("contextmenu",Le)}function nt(e){let t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t+=1)n=i[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function rt(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=it(e,t,n[r]),i)return i;return 0}function it(e,t,n){return n.func?n.func(e,t):st(e[n.field],t[n.field])*(n.order||1)}function st(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function ot(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function at(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce((e,t,n)=>e.replace("$"+n,t||""),e):n}function lt(e,t){return e-t}function ct(e){return e%1==0}function dt(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const ut=["years","months","days","milliseconds"],ht=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ft(e,t){return"string"==typeof e?function(e){let t=ht.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?gt(e):"number"==typeof e?gt({[t||"milliseconds"]:e}):null}function gt(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function pt(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function mt(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function vt(e){return yt(e)/864e5}function yt(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function bt(e,t){let n=null;for(let r=0;r<ut.length;r+=1){let i=ut[r];if(t[i]){let r=e[i]/t[i];if(!ct(r)||null!==n&&n!==r)return null;n=r}else if(e[i])return null}return n}function Et(e){let t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function St(e,t,n){if(e===t)return!0;let r,i=e.length;if(i!==t.length)return!1;for(r=0;r<i;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}const At=["sun","mon","tue","wed","thu","fri","sat"];function Dt(e,t){let n=Ht(e);return n[2]+=7*t,Bt(n)}function wt(e,t){let n=Ht(e);return n[2]+=t,Bt(n)}function Ct(e,t){let n=Ht(e);return n[6]+=t,Bt(n)}function Rt(e,t){return xt(e,t)/7}function xt(e,t){return(t.valueOf()-e.valueOf())/864e5}function _t(e,t){let n=Mt(e),r=Mt(t);return{years:0,months:0,days:Math.round(xt(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function Tt(e,t){let n=kt(e,t);return null!==n&&n%7==0?n/7:null}function kt(e,t){return zt(e)===zt(t)?Math.round(xt(e,t)):null}function Mt(e){return Bt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function It(e,t,n,r){let i=Bt([t,0,1+Ot(t,n,r)]),s=Mt(e),o=Math.round(xt(i,s));return Math.floor(o/7)+1}function Ot(e,t,n){let r=7+t-n;return-((7+Bt([e,0,r]).getUTCDay()-t)%7)+r-1}function Nt(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Pt(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Ht(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Bt(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function jt(e){return!isNaN(e.valueOf())}function zt(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function Ut(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Vt(t,!0)))),r}function Wt(e){return e.toISOString().replace(/T.*$/,"")}function Lt(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function Ft(e){return ot(e.getUTCHours(),2)+":"+ot(e.getUTCMinutes(),2)+":"+ot(e.getUTCSeconds(),2)}function Vt(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);return t?`${n+ot(i,2)}:${ot(s,2)}`:`GMT${n}${i}${s?":"+ot(s,2):""}`}function Gt(e,t,n){let r,i;return function(...s){if(r){if(!St(r,s)){n&&n(i);let r=e.apply(this,s);t&&t(r,i)||(i=r)}}else i=e.apply(this,s);return r=s,i}}function Qt(e,t,n){let r,i;return s=>{if(r){if(!Cn(r,s)){n&&n(i);let r=e.call(this,s);t&&t(r,i)||(i=r)}}else i=e.call(this,s);return r=s,i}}const qt={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Yt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Zt=/\s*([ap])\.?m\.?/i,Xt=/,/g,$t=/\s+/g,Jt=/\u200e/g,Kt=/UTC|GMT/;class en{constructor(e){let t={},n={},r=0;for(let i in e)i in qt?(n[i]=e[i],r=Math.max(qt[i],r)):(t[i]=e[i],i in Yt&&(r=Math.max(Yt[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Gt(tn)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:s}=this,o=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(zt(e)!==zt(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);let a=o;!(a>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(a=1);let l=this.format(e,n),c=this.format(t,n);if(l===c)return l;let d=tn(function(e,t){let n={};for(let r in e)(!(r in Yt)||Yt[r]<=t)&&(n[r]=e[r]);return n}(i,a),s,n),u=d(e),h=d(t),f=function(e,t,n,r){let i=0;for(;i<e.length;){let s=e.indexOf(t,i);if(-1===s)break;let o=e.substr(0,s);i=s+t.length;let a=e.substr(i),l=0;for(;l<n.length;){let e=n.indexOf(r,l);if(-1===e)break;let t=n.substr(0,e);l=e+r.length;let i=n.substr(l);if(o===t&&a===i)return{before:o,after:a}}}return null}(l,u,c,h),g=s.separator||r||n.defaultSeparator||"";return f?f.before+u+g+h+f.after:l+g+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function tn(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>Vt(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,i){let s=[];"long"===i?s.push(n):"short"!==i&&"narrow"!==i||s.push(t);"long"!==i&&"short"!==i||s.push(" ");s.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&s.reverse();return s.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):function(e,t,n){e=Object.assign({},e),t=Object.assign({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";let r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return s=>{let o,{marker:a}=s;return o=r&&!a.getUTCMinutes()?r:i,function(e,t,n,r,i){e=e.replace(Jt,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;e=e.replace(Kt,()=>(n=!0,t)),n||(e+=" "+t);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":Vt(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Xt,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(Zt,"").trim():"narrow"===r.meridiem?e=e.replace(Zt,(e,t)=>t.toLocaleLowerCase()):"short"===r.meridiem?e=e.replace(Zt,(e,t)=>t.toLocaleLowerCase()+"m"):"lowercase"===r.meridiem&&(e=e.replace(Zt,e=>e.toLocaleLowerCase()));return e=(e=e.replace($t," ")).trim()}(o.format(a),s,e,t,n)}}(e,t,n)}function nn(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function rn(e,t,n,r){let i=nn(e,n.calendarSystem);return{date:i,start:i,end:t?nn(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class sn{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,rn(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,rn(e,t,n,r))}}class on{constructor(e){this.func=e}format(e,t,n){return this.func(rn(e,null,t,n))}formatRange(e,t,n,r){return this.func(rn(e,t,n,r))}}function an(e){return"object"==typeof e&&e?new en(e):"string"==typeof e?new sn(e):"function"==typeof e?new on(e):null}const ln={navLinkDayClick:yn,navLinkWeekClick:yn,duration:ft,bootstrapFontAwesome:yn,buttonIcons:yn,customButtons:yn,defaultAllDayEventDuration:ft,defaultTimedEventDuration:ft,nextDayThreshold:ft,scrollTime:ft,scrollTimeReset:Boolean,slotMinTime:ft,slotMaxTime:ft,dayPopoverFormat:an,slotDuration:ft,snapDuration:ft,headerToolbar:yn,footerToolbar:yn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:an,dayHeaderClassNames:yn,dayHeaderContent:yn,dayHeaderDidMount:yn,dayHeaderWillUnmount:yn,dayCellClassNames:yn,dayCellContent:yn,dayCellDidMount:yn,dayCellWillUnmount:yn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:yn,weekNumbers:Boolean,weekNumberClassNames:yn,weekNumberContent:yn,weekNumberDidMount:yn,weekNumberWillUnmount:yn,editable:Boolean,viewClassNames:yn,viewDidMount:yn,viewWillUnmount:yn,nowIndicator:Boolean,nowIndicatorClassNames:yn,nowIndicatorContent:yn,nowIndicatorDidMount:yn,nowIndicatorWillUnmount:yn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:yn,locale:yn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:yn,eventOrder:nt,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:yn,contentHeight:yn,direction:String,weekNumberFormat:an,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:yn,initialDate:yn,now:yn,eventDataTransform:yn,stickyHeaderDates:yn,stickyFooterScrollbar:yn,viewHeight:yn,defaultAllDay:Boolean,eventSourceFailure:yn,eventSourceSuccess:yn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:yn,eventConstraint:yn,eventAllow:yn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:yn,eventContent:yn,eventDidMount:yn,eventWillUnmount:yn,selectConstraint:yn,selectOverlap:yn,selectAllow:yn,droppable:Boolean,unselectCancel:String,slotLabelFormat:yn,slotLaneClassNames:yn,slotLaneContent:yn,slotLaneDidMount:yn,slotLaneWillUnmount:yn,slotLabelClassNames:yn,slotLabelContent:yn,slotLabelDidMount:yn,slotLabelWillUnmount:yn,dayMaxEvents:yn,dayMaxEventRows:yn,dayMinWidth:Number,slotLabelInterval:ft,allDayText:String,allDayClassNames:yn,allDayContent:yn,allDayDidMount:yn,allDayWillUnmount:yn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:an,rerenderDelay:Number,moreLinkText:yn,moreLinkHint:yn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:yn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:ft,hiddenDays:yn,fixedWeekCount:Boolean,validRange:yn,visibleRange:yn,titleFormat:yn,eventInteractive:Boolean,noEventsText:String,viewHint:yn,navLinkHint:yn,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:yn,moreLinkClassNames:yn,moreLinkContent:yn,moreLinkDidMount:yn,moreLinkWillUnmount:yn,monthStartFormat:an,handleCustomRendering:yn,customRenderingMetaMap:yn},cn={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},dn={datesSet:yn,eventsSet:yn,eventAdd:yn,eventChange:yn,eventRemove:yn,windowResize:yn,eventClick:yn,eventMouseEnter:yn,eventMouseLeave:yn,select:yn,unselect:yn,loading:yn,_unmount:yn,_beforeprint:yn,_afterprint:yn,_noEventDrop:yn,_noEventResize:yn,_resize:yn,_scrollRequest:yn},un={buttonText:yn,buttonHints:yn,views:yn,plugins:yn,initialEvents:yn,events:yn,eventSources:yn},hn={headerToolbar:fn,footerToolbar:fn,buttonText:fn,buttonHints:fn,buttonIcons:fn,dateIncrement:fn,plugins:gn,events:gn,eventSources:gn,resources:gn};function fn(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?Cn(e,t):e===t}function gn(e,t){return Array.isArray(e)&&Array.isArray(t)?St(e,t):e===t}const pn={type:String,component:yn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:yn,usesMinMaxTime:Boolean,classNames:yn,content:yn,didMount:yn,willUnmount:yn};function mn(e){return En(e,hn)}function vn(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function yn(e){return e}const{hasOwnProperty:bn}=Object.prototype;function En(e,t){let n={};if(t)for(let r in t)if(t[r]===fn){let t=[];for(let i=e.length-1;i>=0;i-=1){let s=e[i][r];if("object"==typeof s&&s)t.unshift(s);else if(void 0!==s){n[r]=s;break}}t.length&&(n[r]=En(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function Sn(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function An(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function Dn(e){let t={};for(let n of e)t[n]=!0;return t}function wn(e){let t=[];for(let n in e)t.push(e[n]);return t}function Cn(e,t){if(e===t)return!0;for(let n in e)if(bn.call(e,n)&&!(n in t))return!1;for(let n in t)if(bn.call(t,n)&&e[n]!==t[n])return!1;return!0}const Rn=/^on[A-Z]/;function xn(e,t){let n=[];for(let r in e)bn.call(e,r)&&(r in t||n.push(r));for(let r in t)bn.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function _n(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!Tn(e[r],t[r],n[r]))return!1;for(let n in e)if(!(n in t))return!1;return!0}function Tn(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function kn(e,t=0,n,r=1){let i=[];null==n&&(n=Object.keys(e).length);for(let s=t;s<n;s+=r){let t=e[s];void 0!==t&&i.push(t)}return i}let Mn={};var In,On;In="gregory",On=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Bt(e)}markerToArray(e){return Ht(e)}},Mn[In]=On;const Nn=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Pn(e){let t=Nn.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(jt(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}class Hn{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new Mn[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Bt(Nt(new Date))}createMarkerMeta(e){if("string"==typeof e)return this.parse(e);let t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=Bt(e)),null!==t&&jt(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=Pn(e);if(null===t)return null;let{marker:n}=t,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return zt(e)===zt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return zt(e)===zt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=Tt(e,t),null!==n?{unit:"week",value:n}:(n=kt(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),ct(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),ct(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),ct(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/(vt(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return vt(e)/30}(n):n.days&&(r=kt(e,t),null!==r)?r/vt(n):(t.valueOf()-e.valueOf())/yt(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?Mt(e):"hour"===t?function(e){return Bt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return Bt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return Bt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){let r=e.getUTCFullYear(),i=It(e,r,t,n);if(i<1)return It(e,r-1,t,n);let s=It(e,r+1,t,n);return s>=1?Math.min(i,s):i}(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=Ct(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Ut(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?Bt(Nt(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Bt(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-Pt(Ht(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Ht(e)):null}toDate(e,t){return"local"===this.timeZone?Pt(Ht(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Ht(e))*60):new Date(e.valueOf()-(t||0))}}class Bn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}function jn(e){e();let t=n.debounceRendering,r=[];for(n.debounceRendering=function(e){r.push(e)},U(p(zn,{}),document.createElement("div"));r.length;)r.shift()();n.debounceRendering=t}Bn.prototype.classes={},Bn.prototype.iconClasses={},Bn.prototype.baseIconClass="",Bn.prototype.iconOverridePrefix="";class zn extends D{render(){return p("div",{})}componentDidMount(){this.setState({})}}function Un(e){let t=function(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,x(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach(e=>{e.context=t.value,e.forceUpdate()})},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class Wn{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Ln=Un({});function Fn(e,t,n,r,i,s,o,a,l,c,d,u,h){return{dateEnv:i,options:n,pluginHooks:o,emitter:c,dispatch:a,getCurrentData:l,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:s,isRtl:"rtl"===n.direction,addResizeHandler(e){c.on("_resize",e)},removeResizeHandler(e){c.off("_resize",e)},createScrollResponder:e=>new Wn(e,c,ft(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:u,unregisterInteractiveComponent:h}}class Vn extends D{shouldComponentUpdate(e,t){return this.debug&&console.log(xn(e,this.props),xn(t,this.state)),!_n(this.props,e,this.propEquality)||!_n(this.state,t,this.stateEquality)}safeSetState(e){_n(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Vn.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},Vn.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},Vn.contextType=Ln,Vn.prototype.propEquality={},Vn.prototype.stateEquality={};class Gn extends Vn{}function Qn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Gn.contextType=Ln;class qn extends Gn{constructor(){super(...arguments),this.id=Ze(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{Yn(this.props.generatorName,this.context.options)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&Qn(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:s,renderProps:o}=e,a=Zn(e,[],this.handleEl);let l,c,d=!1,u=[];if(null!=r){const e="function"==typeof r?r(o,p):r;if(!0===e)d=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?a.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?u=Array.prototype.slice.call(e.domNodes):(t?i(e):"function"!=typeof e)?l=e:c=e}}else d=!Yn(e.generatorName,n);return d&&s&&(l=s(o)),this.queuedDomNodes=u,this.currentGeneratorMeta=c,p(e.elTag,a,l)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:i,customRenderingMetaMap:s}=r.options;if(i){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==s?void 0:s[n.generatorName];r&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n),{elClasses:(n.elClasses||[]).filter(Xn)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!St(e,t)){t.forEach(Ie);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function Yn(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function Zn(e,t,n){const r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function Xn(e){return Boolean(e)}qn.addPropsEquality({elClasses:St,elStyle:Cn,elAttrs:function(e,t){const n=xn(e,t);for(let e of n)if(!Rn.test(e))return!1;return!0},renderProps:Cn});const $n=Un(0);class Jn extends D{constructor(){super(...arguments),this.InnerContent=Kn.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&Qn(this.props.elRef,e)}}render(){const{props:e}=this,t=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(e.children){const n=Zn(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?p(e.elTag,n,r):r}return p(qn,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function Kn(e,t){const n=e.props;return p(qn,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}Jn.contextType=$n;class er extends Gn{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return p(Jn,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...tr(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}}function tr(e){return[`fc-${e.type}-view`,"fc-view"]}function nr(e,t){let n,r,i=[],{start:s}=t;for(e.sort(rr),n=0;n<e.length;n+=1)r=e[n],r.start>s&&i.push({start:s,end:r.start}),r.end>s&&(s=r.end);return s<t.end&&i.push({start:s,end:t.end}),i}function rr(e,t){return e.start.valueOf()-t.start.valueOf()}function ir(e,t){let{start:n,end:r}=e,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function sr(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function or(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function ar(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function lr(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function cr(e){let t=Math.floor(xt(e.start,e.end))||1,n=Mt(e.start);return{start:n,end:wt(n,t)}}function dr(e,t=ft(0)){let n=null,r=null;if(e.end){r=Mt(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=yt(t)&&(r=wt(r,1))}return e.start&&(n=Mt(e.start),r&&r<=n&&(r=wt(n,1))),{start:n,end:r}}function ur(e){let t=dr(e);return xt(t.start,t.end)>1}function hr(e,t,n,r){return"year"===r?ft(n.diffWholeYears(e,t),"year"):"month"===r?ft(n.diffWholeMonths(e,t),"month"):_t(e,t)}function fr(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class gr{constructor(e){this.props=e,this.nowDate=fr(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let r,i,s,o,a,l,{props:c}=this;var d,u;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(d=e,e=null!=(u=r).start&&d<u.start?u.start:null!=u.end&&d>=u.end?new Date(u.end.valueOf()-1):d),i=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(i.unit),o=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,s),o=this.trimHiddenDays(o),a=o,c.showNonCurrentDates||(a=ir(a,i.range)),a=this.adjustActiveRange(a),a=ir(a,r),l=or(i.range,r),lr(o,e)||(e=o.start),{currentDate:e,validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:s,activeRange:a,renderRange:o,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(i.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,i=null,s=null,o=null;return r.duration?(i=r.duration,s=r.durationUnit,o=this.buildRangeFromDuration(e,t,i,s)):(n=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),s=Et(i).unit,o=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return ft({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:s,end:o}=e;return n&&(vt(r)<0&&(s=Mt(s),s=t.add(s,r)),vt(i)>1&&(o=Mt(o),o=wt(o,-1),o=t.add(o,i))),{start:s,end:o}}buildRangeFromDuration(e,t,n,r){let i,s,o,{dateEnv:a,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&yt(e)<yt(n)?Et(e).unit:r}function c(){i=a.startOf(e,l),s=a.add(i,n),o={start:i,end:s}}return vt(n)<=1&&this.isHiddenDay(i)&&(i=this.skipHiddenDays(i,t),i=Mt(i)),c(),this.trimHiddenDays(o)||(e=this.skipHiddenDays(e,t),c()),o}buildRangeFromDayCount(e,t,n){let r,{dateEnv:i,dateAlignment:s}=this.props,o=0,a=e;s&&(a=i.startOf(a,s)),a=Mt(a),a=this.skipHiddenDays(a,t),r=a;do{r=wt(r,1),this.isHiddenDay(r)||(o+=1)}while(o<n);return{start:a,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?ft(1,t):e||ft({days:1}))}refineRange(e){if(e){let t=function(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}(e,this.props.dateEnv);return t&&(t=dr(t)),t}return null}initHiddenDays(){let e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=wt(e,t);return e}}function pr(e,t,n,r){return{instanceId:Ze(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function mr(e,t,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:a}=e;a=Sn(a,e=>!o[e.defId].recurringDef);for(let e in o){let n=o[e];if(n.recurringDef){let{duration:o}=n.recurringDef;o||(o=n.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let l=vr(n,o,t,r,i.recurringTypes);for(let t of l){let n=pr(e,{start:t,end:r.add(t,o)});a[n.instanceId]=n}}}return{defs:o,instances:a}}function vr(e,t,n,r,i){let s=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(s=s.map(Mt)),s}const yr={id:String,groupId:String,title:String,url:String,interactive:Boolean},br={start:yn,end:yn,date:yn,allDay:Boolean},Er=Object.assign(Object.assign(Object.assign({},yr),br),{extendedProps:yn});function Sr(e,t,n,r,i=Dr(n),s,o){let{refined:a,extra:l}=Ar(e,n,i),c=function(e,t){let n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),d=function(e,t,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(e,n);if(s){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=s.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let e=wr(a,l,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,s);return e.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:e,instance:null}}let u=function(e,t,n,r){let i,s,{allDay:o}=e,a=null,l=!1,c=null,d=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(d),i)a=i.marker;else if(!r)return null;null!=e.end&&(s=n.dateEnv.createMarkerMeta(e.end));null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!s||s.isTimeUnspecified));o&&a&&(a=Mt(a));s&&(c=s.marker,o&&(c=Mt(c)),a&&c<=a&&(c=null));c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:o,hasEnd:l,range:{start:a,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(a,c,n,r);if(u){let e=wr(a,l,t?t.sourceId:"",u.allDay,u.hasEnd,n,s),r=pr(e.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return o&&e.publicId&&o[e.publicId]&&(r.instanceId=o[e.publicId]),{def:e,instance:r}}return null}function Ar(e,t,n=Dr(t)){return vn(e,n)}function Dr(e){return Object.assign(Object.assign(Object.assign({},Ir),Er),e.pluginHooks.eventRefiners)}function wr(e,t,n,r,i,s,o){let a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(o&&e.id?o[e.id]:"")||Ze(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:Nr(e,s),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of s.pluginHooks.eventDefMemberAdders)Object.assign(a,t(e));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Cr(e,t,n,r,i,s){let o={defs:{},instances:{}},a=Dr(n);for(let l of e){let e=Sr(l,t,n,r,a,i,s);e&&Rr(e,o)}return o}function Rr(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function xr(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=kr(e,e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r});return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}function _r(){return{defs:{},instances:{}}}function Tr(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function kr(e,t){let n=Sn(e.defs,t),r=Sn(e.instances,e=>n[e.defId]);return{defs:n,instances:r}}function Mr(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}const Ir={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:yn,overlap:yn,allow:yn,className:Mr,classNames:Mr,color:String,backgroundColor:String,borderColor:String,textColor:String},Or={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Nr(e,t){let n=function(e,t){return Array.isArray(e)?Cr(e,null,t,!0):"object"==typeof e&&e?Cr([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Pr(e){return e.reduce(Hr,Or)}function Hr(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const Br={id:String,defaultAllDay:Boolean,url:String,format:String,events:yn,eventDataTransform:yn,success:yn,failure:yn};function jr(e,t,n=zr(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:i,extra:s}=vn(r,n),o=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(i,t);if(o)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Ze(),sourceDefId:o.sourceDefId,meta:o.meta,ui:Nr(i,t),extendedProps:s}}return null}function zr(e){return Object.assign(Object.assign(Object.assign({},Ir),Br),e.pluginHooks.eventSourceRefiners)}function Ur(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,s){if(t&&n===t.latestFetchId){let n=Cr(Wr(i,t,s),t,s);return r&&(n=mr(n,r,s)),Tr(Vr(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return function(e,t,n,r,i){const{defIdMap:s,instanceIdMap:o}=function(e){const{defs:t,instances:n}=e,r={},i={};for(let e in t){const n=t[e],{publicId:i}=n;i&&(r[i]=e)}for(let e in n){const r=n[e],s=t[r.defId],{publicId:o}=s;o&&(i[o]=e)}return{defIdMap:r,instanceIdMap:i}}(e);return mr(Cr(Wr(n,t,i),t,i,!1,s,o),r,i)}(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=mr(t,n,r));return Tr(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Tr(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?mr(e,r.activeRange,i):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,i={},s={};for(let e in n)t.defs[e]||(i[e]=n[e]);for(let e in r)!t.instances[e]&&i[r[e].defId]&&(s[e]=r[e]);return{defs:i,instances:s}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Vr(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return kr(e,e=>!e.sourceId);case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Wr(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=Lr(e,i)),r&&(e=Lr(e,r)),e}function Lr(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function Fr(e,t,n){let{defs:r}=e,i=An(e.instances,e=>r[e.defId].allDay?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo}));return{defs:r,instances:i}}function Vr(e,t){return kr(e,e=>e.sourceId!==t)}class Gr{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter(e=>e!==n)):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n);for(let e of i)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const Qr={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function qr(e,t){return Cr(function(e){let t;t=!0===e?[{}]:Array.isArray(e)?e.filter(e=>e.daysOfWeek):"object"==typeof e&&e?[e]:[];return t=t.map(e=>Object.assign(Object.assign({},Qr),e)),t}(e),null,t)}function Yr(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},Zr(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Zr(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,i=t.dateEnv,Object.assign(Object.assign({},wi(r.range,i,r.allDay)),{allDay:r.allDay}))),n}function Xr(e,t,n){let{dateEnv:r,options:i}=n,s=t;return e?(s=Mt(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function $r(e,t,n,r){let i=li(e.defs,t),s={defs:{},instances:{}};for(let t in e.defs){let o=e.defs[t];s.defs[t]=Jr(o,i[t],n,r)}for(let t in e.instances){let o=e.instances[t],a=s.defs[o.defId];s.instances[t]=Kr(o,a,i[o.defId],n,r)}return s}function Jr(e,t,n,r){let i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Kr(e,t,n,r,i){let{dateEnv:s}=i,o=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return o&&(l.range=cr(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:s.add(l.range.start,r.datesDelta),end:s.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:s.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:s.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:Xr(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Mt(l.range.start),end:Mt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=Xr(t.allDay,l.range.start,i)),l}class ei{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class ti{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in br)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=yr[e](t),this.mutate({standardProps:{publicId:t}});else if(e in yr)t=yr[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Ir){let n=Ir[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=hr(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=hr(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:i}=this._context,s={allDay:n.allDay},o=i.createMarker(e);var a,l;if(o&&((null==t||(r=i.createMarker(t),r))&&this._instance)){let e=this._instance.range;!0===n.allDay&&(e=cr(e));let t=hr(e.start,o,i,n.granularity);if(r){let o=hr(e.end,r,i,n.granularity);l=o,(a=t).years===l.years&&a.months===l.months&&a.days===l.days&&a.milliseconds===l.milliseconds?this.mutate({datesDelta:t,standardProps:s}):this.mutate({startDelta:t,endDelta:o,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:t,standardProps:s})}}moveStart(e){let t=ft(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=ft(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=ft(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=an(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:i}=r.getCurrentData(),s=xr(i,t.instanceId);s=$r(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let o=new ti(r,n,t);this._def=s.defs[n.defId],this._instance=s.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:s}),r.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:ri(s,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=ni(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new ei(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:i}=this,s={allDay:t.allDay};return t.title&&(s.title=t.title),r&&(s.start=r),i&&(s.end=i),t.publicId&&(s.id=t.publicId),t.groupId&&(s.groupId=t.groupId),t.url&&(s.url=t.url),n.display&&"auto"!==n.display&&(s.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?s.color=n.backgroundColor:(n.backgroundColor&&(s.backgroundColor=n.backgroundColor),n.borderColor&&(s.borderColor=n.borderColor)),n.textColor&&(s.textColor=n.textColor),n.classNames.length&&(s.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(s,t.extendedProps):s.extendedProps=t.extendedProps),s}toJSON(){return this.toPlainObject()}}function ni(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function ri(e,t,n){let{defs:r,instances:i}=e,s=[],o=n?n.instanceId:"";for(let e in i){let n=i[e],a=r[n.defId];n.instanceId!==o&&s.push(new ti(t,a,n))}return s}function ii(e,t,n,r){let i={},s={},o={},a=[],l=[],c=li(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===c[n.defId].display&&(n.groupId?(i[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):s[t]=[])}for(let t in e.instances){let o=e.instances[t],d=e.defs[o.defId],u=c[d.defId],h=o.range,f=!d.allDay&&r?dr(h,r):h,g=ir(f,n);g&&("inverse-background"===u.display?d.groupId?i[d.groupId].push(g):s[o.defId].push(g):"none"!==u.display&&("background"===u.display?a:l).push({def:d,ui:u,instance:o,range:g,isStart:f.start&&f.start.valueOf()===g.start.valueOf(),isEnd:f.end&&f.end.valueOf()===g.end.valueOf()}))}for(let e in i){let t=nr(i[e],n);for(let n of t){let t=o[e],r=c[t.defId];a.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in s){let r=nr(s[t],n);for(let n of r)a.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function si(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function oi(e,t){e.fcSeg=t}function ai(e){return e.fcSeg||e.parentNode.fcSeg||null}function li(e,t){return An(e,e=>ci(e,t))}function ci(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Pr(n)}function di(e,t){let n=e.map(ui);return n.sort((e,n)=>rt(e,n,t)),n.map(e=>e._seg)}function ui(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:e})}function hi(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:s}=e.eventRange,o=s.startEditable;for(let e of r)o=e(o,i,s,t);return o}function fi(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function gi(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function pi(e,t,n,r,i,s,o){let{dateEnv:a,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,u=e.eventRange.def,h=e.eventRange.instance;null==c&&(c=!1!==r),null==d&&(d=!1!==i);let f=h.range.start,g=h.range.end,p=s||e.start||e.eventRange.range.start,m=o||e.end||e.eventRange.range.end,v=Mt(f).valueOf()===Mt(p).valueOf(),y=Mt(Ct(g,-1)).valueOf()===Mt(Ct(m,-1)).valueOf();return c&&!u.allDay&&(v||y)?(p=v?f:p,m=y?g:m,d&&u.hasEnd?a.formatRange(p,m,t,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:o?null:h.forcedEndTzo}):a.format(p,t,{forcedTzo:s?null:h.forcedStartTzo})):""}function mi(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&lr(t,r.start)}}function vi(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function yi(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function bi(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:o}=t,{eventInteractive:a}=o;return null==a&&(a=n.interactive,null==a&&(a=Boolean(s.hasHandlers("eventClick")))),a?qe(e=>{s.trigger("eventClick",{el:e.target,event:new ti(t,n,r),jsEvent:e,view:t.viewApi})}):{}}const Ei={start:yn,end:yn,allDay:Boolean};function Si(e,t,n){let r=function(e,t){let{refined:n,extra:r}=vn(e,Ei),i=n.start?t.createMarkerMeta(n.start):null,s=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;null==o&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified));return Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function Ai(e,t){return sr(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(let n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}(e,t)}function Di(e,t,n){return Object.assign(Object.assign({},wi(e,t,n)),{timeZone:t.timeZone})}function wi(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function Ci(e,t,n){let r=!1,i=function(e){r||(r=!0,t(e))},s=function(e){r||(r=!0,n(e))},o=e(i,s);o&&"function"==typeof o.then&&o.then(i,s)}class Ri extends Error{constructor(e,t){super(e),this.response=t}}function xi(e,t,n){const r={method:e=e.toUpperCase()};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then(e=>{if(e.ok)return e.json().then(t=>[t,e],()=>{throw new Ri("Failure parsing JSON",e)});throw new Ri("Request failed",e)})}let _i;function Ti(){return null==_i&&(_i=function(){if("undefined"==typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),_i}class ki extends Gn{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,i=r||null==t.height?"":t.height,s=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return Ti()||s.push("fc-liquid-hack"),e.children(s,i,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class Mi{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Ii(e){return{[e.component.uid]:e}}const Oi={};class Ni{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:i}=this.getCurrentData(),s=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(let e in r)s.push(e);for(t=0;t<s.length;t+=1)if(n=r[s[t]],n&&n.singleUnit===e)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:fr(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=ft(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),an(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),an(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),i=Si(n,r.dateEnv,ft({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Yr(i,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))}addEvent(e,t){if(e instanceof ti){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Rr({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof ei)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=wn(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let i=Sr(e,n,r,!1);if(i){let e=new ti(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Rr(i)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:ni(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let i in n){let s=n[i];if(s.publicId===e){if(s.recurringDef)return new ti(t,s,null);for(let e in r){let n=r[e];if(n.defId===s.defId)return new ti(t,s,n)}}}return null}getEvents(){let e=this.getCurrentData();return ri(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new ei(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new ei(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof ei)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=jr(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new ei(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=ft(e);t&&this.trigger("_scrollRequest",{time:t})}}function Pi(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Hi(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function Bi(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function ji(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function zi(e,t){return{left:e.left-t.left,top:e.top-t.top}}const Ui={defs:{},instances:{}};class Wi{constructor(){this.getKeysForEventDefs=Gt(this._getKeysForEventDefs),this.splitDateSelection=Gt(this._splitDateSpan),this.splitEventStore=Gt(this._splitEventStore),this.splitIndividualUi=Gt(this._splitIndividualUi),this.splitEventDrag=Gt(this._splitInteraction),this.splitEventResize=Gt(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,n),s=this.splitEventStore(e.eventStore,n),o=this.splitEventDrag(e.eventDrag),a=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=An(t,(e,t)=>this.eventUiBuilders[t]||Gt(Li));for(let n in t){let c=t[n],d=s[n]||Ui,u=this.eventUiBuilders[n];l[n]={businessHours:c.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:d,eventUiBases:u(e.eventUiBases[""],c.ui,i[n]),eventSelection:d.instances[e.eventSelection]?e.eventSelection:"",eventDrag:o[n]||null,eventResize:a[n]||null}}return l}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return An(e.defs,e=>this.getKeysForEventDef(e))}_splitEventStore(e,t){let{defs:n,instances:r}=e,i={};for(let e in n)for(let r of t[e])i[r]||(i[r]={defs:{},instances:{}}),i[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])i[r]&&(i[r].instances[e]=n)}return i}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let i of t[r])n[i]||(n[i]={}),n[i][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),s=r=>{t[r]||(t[r]={affectedEvents:n[r]||Ui,mutatedEvents:i[r]||Ui,isEvent:e.isEvent})};for(let e in n)s(e);for(let e in i)s(e)}return t}}function Li(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":Pr(r)};return n&&Object.assign(i,n),i}function Fi(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!lr(r.activeRange,e)),isOther:Boolean(r&&!lr(r.currentRange,e)),isToday:Boolean(t&&lr(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Vi(e,t){let n=["fc-day","fc-day-"+At[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const Gi=an({year:"numeric",month:"long",day:"numeric"}),Qi=an({week:"long"});function qi(e,t,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:o}=e;let a=i.format(t,"week"===n?Qi:Gi);if(s.navLinks){let e=i.toDate(t);const l=e=>{let r="day"===n?s.navLinkDayClick:"week"===n?s.navLinkWeekClick:null;"function"==typeof r?r.call(o,i.toDate(t),e):("string"==typeof r&&(n=r),o.zoomTo(t,n))};return Object.assign({title:at(s.navLinkHint,[a,e],a),"data-navlink":""},r?Qe(l):{onClick:l})}return{"aria-label":a}}let Yi,Zi=null;function Xi(){return null===Zi&&(Zi=function(){let e=document.createElement("div");Be(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);let t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return Ie(e),t}()),Zi}function $i(){return Yi||(Yi=function(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=Ji(e);return document.body.removeChild(e),t}()),Yi}function Ji(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function Ki(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,a=Ji(e),l=a.y-r-i,c={borderLeft:r,borderRight:i,borderTop:s,borderBottom:o,scrollbarBottom:a.x-s-o,scrollbarLeft:0,scrollbarRight:0};return Xi()&&"rtl"===n.direction?c.scrollbarLeft=l:c.scrollbarRight=l,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function es(e,t=!1,n){let r=n?e.getBoundingClientRect():ts(e),i=Ki(e,t),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function ts(e){let t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function ns(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);
198if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}class rs{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return is(this.tops||[],e.tops||[])&&is(this.bottoms||[],e.bottoms||[])&&is(this.lefts||[],e.lefts||[])&&is(this.rights||[],e.rights||[])}}function is(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class ss{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class os extends ss{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class as extends ss{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class ls extends Gn{constructor(){super(...arguments),this.uid=Ze()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Oe(e,".fc-event-mirror")}isValidDateDownEl(e){return!(Oe(e,".fc-event:not(.fc-bg-event)")||Oe(e,".fc-more-link")||Oe(e,"a[data-navlink]")||Oe(e,".fc-popover"))}}class cs{constructor(e=(e=>e.thickness)){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)}splitEntry(e,t,n){let r=0,i=[],s=e.span,o=t.span;return s.start<o.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.start,end:o.start}},i)),s.end>o.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:s.end}},i)),r?(n.push({index:e.index,thickness:e.thickness,span:fs(o,s)},...i),r):(n.push(e),0)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(gs(r,t.level,t.levelCoord),gs(n,t.level,[e])):gs(n[t.level],t.lateral,e),this.stackCnts[us(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:i}=this,s=t.length,o=0,a=-1,l=-1,c=null,d=0;for(let u=0;u<s;u+=1){let s=t[u];
vendor: 102,269 bytes, line 198
198if(!r&&s>=o+this.getEntryThickness(e))break;let h,f=n[u],g=ps(f,e.span.start,ds),p=g[0]+g[1];for(;(h=f[p])&&h.span.start<e.span.end;){let e=s+this.getEntryThickness(h);e>o&&(o=e,c=h,a=u,l=p),e===o&&(d=Math.max(d,i[us(h)]+1)),p+=1}}let u=0;if(c)for(u=a+1;u<s&&t[u]<o;)u+=1;let h=-1;return u<s&&t[u]===o&&(h=ps(n[u],e.span.end,ds)[0]),{touchingLevel:a,touchingLateral:l,touchingEntry:c,stackCnt:d,levelCoord:o,level:u,lateral:h}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let i=0;i<n;i+=1){let n=e[i],s=t[i];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:s}))}return r}}function ds(e){return e.span.end}function us(e){return e.index+":"+e.span.start}function hs(e){let t=[];for(let i of e){let e=[],s={span:i.span,entries:[i]};for(let i of t)fs(i.span,s.span)?s={entries:i.entries.concat(s.entries),span:(n=i.span,r=s.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:e.push(i);e.push(s),t=e}var n,r;return t}function fs(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function gs(e,t,n){e.splice(t,0,n)}function ps(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),o=n(e[s]);if(t<o)i=s;else{if(!(t>o))return[s,1];r=s+1}}return[r,0]}class ms{constructor(e,t){this.emitter=new Gr}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const vs={},ys={startTime:ft,duration:ft,create:Boolean,sourceId:String};function bs(e){let{refined:t,extra:n}=vn(e,ys);return{startTime:t.startTime||null,duration:t.duration||null,create:null==t.create||t.create,sourceId:t.sourceId,leftoverProps:n}}function Es(e,t){return an(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}const Ss="fc-col-header-cell";function As(e){return e.text}class Ds extends Gn{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:i}=this,{date:s,dateProfile:o}=i,a=Fi(s,i.todayRange,null,o),l=[Ss].concat(Vi(a,n)),c=e.format(s,i.dayHeaderFormat),d=!a.isDisabled&&i.colCnt>1?qi(this.context,s):{},u=Object.assign(Object.assign(Object.assign({date:e.toDate(s),view:r},i.extraRenderProps),{text:c}),a);return p(Jn,{elTag:"th",elClasses:l,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":a.isDisabled?void 0:Wt(s)},i.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:As,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},e=>p("div",{className:"fc-scrollgrid-sync-inner"},!a.isDisabled&&p(e,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]})))}}const ws=an({weekday:"long"});class Cs extends Gn{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:i}=this.context,s=wt(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},a=t.format(s,e.dayHeaderFormat),l=Object.assign(Object.assign(Object.assign(Object.assign({date:s},o),{view:r}),e.extraRenderProps),{text:a});return p(Jn,{elTag:"th",elClasses:[Ss,...Vi(o,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:l,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:As,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},n=>p("div",{className:"fc-scrollgrid-sync-inner"},p(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(s,ws)}})))}}class Rs extends D{constructor(e,t){super(e,t),this.initialNowDate=fr(t.options.now,t.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,n=Ct(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,ft(1,e.unit)),s=i.valueOf()-n.valueOf();return s=Math.min(864e5,s),{currentState:{nowDate:r,todayRange:xs(r)},nextState:{nowDate:i,todayRange:xs(i)},waitMs:s}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function xs(e){let t=Mt(e);return{start:t,end:wt(t,1)}}Rs.contextType=Ln;class _s extends Gn{constructor(){super(...arguments),this.createDayHeaderFormatter=Gt(Ts)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:i}=this.props,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return p(Rs,{unit:"day"},(e,o)=>p("tr",{role:"row"},i&&i("day"),t.map(e=>r?p(Ds,{key:e.toISOString(),date:e,dateProfile:n,todayRange:o,colCnt:t.length,dayHeaderFormat:s}):p(Cs,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s}))))}}function Ts(e,t,n){return e||Es(t,n)}class ks{constructor(e,t){let n=e.start,{end:r}=e,i=[],s=[],o=-1;for(;n<r;)t.isHiddenDay(n)?i.push(o+.5):(o+=1,i.push(o),s.push(n)),n=wt(n,1);this.dates=s,this.indices=i,this.cnt=s.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(wt(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return r=Math.ceil(r),i=Math.floor(i),r<=i?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(xt(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class Ms{constructor(e,t){let n,r,i,{dates:s}=e;if(t){for(r=s[0].getUTCDay(),n=1;n<s.length&&s[n].getUTCDay()!==r;n+=1);i=Math.ceil(s.length/n)}else i=1,n=s.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:e,lastIndex:i}=n,s=e;for(;s<=i;){let o=Math.floor(s/t),a=Math.min((o+1)*t,i+1);r.push({row:o,firstCol:s%t,lastCol:(a-1)%t,isStart:n.isStart&&s===e,isEnd:n.isEnd&&a-1===i}),s=a}}return r}}class Is{constructor(){this.sliceBusinessHours=Gt(this._sliceBusinessHours),this.sliceDateSelection=Gt(this._sliceDateSpan),this.sliceEventStore=Gt(this._sliceEventStore),this.sliceEventDrag=Gt(this._sliceInteraction),this.sliceEventResize=Gt(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...i){let{eventUiBases:s}=e,o=this.sliceEventStore(e.eventStore,s,t,n,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,s,r,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...i),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,s,t,n,...i),eventResize:this.sliceEventResize(e.eventResize,s,t,n,...i),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...i){return this._sliceDateSpan({range:{start:e,end:Ct(e,1)},allDay:!1},t,n,{},r,...i)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore(mr(e,Os(t,Boolean(n)),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let s=ii(e,t,Os(n,Boolean(r)),r);return{bg:this.sliceEventRanges(s.bg,i),fg:this.sliceEventRanges(s.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...i){if(!e)return null;let s=ii(e.mutatedEvents,t,Os(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,i,...s){if(!e)return[];let o=Os(t,Boolean(n)),a=ir(e.range,o);if(a){let t=function(e,t,n){let r=Ar({editable:!1},n),i=wr(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:ci(i,t),instance:pr(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:a}),r,i),n=this.sliceRange(e.range,...s);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:wt(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}function Os(e,t){let n=e.activeRange;return t?n:{start:Ct(n.start,e.slotMinTime.milliseconds),end:Ct(n.end,e.slotMaxTime.milliseconds-864e5)}}function Ns(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!ar(t.validRange,r[e].range))return!1;return Hs({eventDrag:e},n)}function Ps(e,t,n){return!!ar(t.validRange,e.range)&&Hs({dateSelection:e},n)}function Hs(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||Bs)(r,t)}function Bs(e,t,n={},r){return!(e.eventDrag&&!function(e,t,n,r){let i=t.getCurrentData(),s=e.eventDrag,o=s.mutatedEvents,a=o.defs,l=o.instances,c=li(a,s.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(c=An(c,r));let d=(g=e.eventStore,p=s.affectedEvents.instances,{defs:g.defs,instances:Sn(g.instances,e=>!p[e.instanceId])}),u=d.defs,h=d.instances,f=li(u,e.eventUiBases);var g,p;for(let r in l){let o=l[r],g=o.range,p=c[o.defId],m=a[o.defId];if(!js(p.constraints,g,d,e.businessHours,t))return!1;let{eventOverlap:v}=t.options,y="function"==typeof v?v:null;for(let e in h){let n=h[e];if(or(g,n.range)){if(!1===f[n.defId].overlap&&s.isEvent)return!1;if(!1===p.overlap)return!1;if(y&&!y(new ti(t,u[n.defId],n),new ti(t,m,o)))return!1}}let b=i.eventStore;for(let e of p.allows){let i,s=Object.assign(Object.assign({},n),{range:o.range,allDay:m.allDay}),a=b.defs[m.defId],l=b.instances[r];if(i=a?new ti(t,a,l):new ti(t,m),!e(Zr(s,t),i))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){let i=e.eventStore,s=i.defs,o=i.instances,a=e.dateSelection,l=a.range,{selectionConfig:c}=t.getCurrentData();r&&(c=r(c));if(!js(c.constraints,l,i,e.businessHours,t))return!1;let{selectOverlap:d}=t.options,u="function"==typeof d?d:null;for(let e in o){let n=o[e];if(or(l,n.range)){if(!1===c.overlap)return!1;if(u&&!u(new ti(t,s[n.defId],n),null))return!1}}for(let e of c.allows){let r=Object.assign(Object.assign({},n),a);if(!e(Zr(r,t),null))return!1}return!0}(e,t,n,r))}function js(e,t,n,r,i){for(let s of e)if(!Ws(zs(s,t,n,r,i),t))return!1;return!0}function zs(e,t,n,r,i){return"businessHours"===e?Us(mr(r,t,i)):"string"==typeof e?Us(kr(n,t=>t.groupId===e)):"object"==typeof e&&e?Us(mr(e,t,i)):[]}function Us(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function Ws(e,t){for(let n of e)if(ar(n,t))return!0;return!1}const Ls=/^(visible|hidden)$/;class Fs extends Gn{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,Qn(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,i=["fc-scroller"];return t&&(n?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),p("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Ls.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().width>t)return!0}return!1}needsYScrolling(){if(Ls.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().height>t)return!0}return!1}getXScrollbarWidth(){return Ls.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Ls.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Vs{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,i=!1,s=!1;null!==e?(i=t in r,r[t]=e,n[t]=(n[t]||0)+1,s=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],i=!0)),this.masterCallback&&(i&&this.masterCallback(null,String(t)),s&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return kn(this.currentMap,e,t,n)}getAll(){return wn(this.currentMap)}}function Gs(e){let t=Pe(e,".fc-scrollgrid-shrink"),n=0;for(let e of t)n=Math.max(n,dt(e));return Math.ceil(n)}function Qs(e,t){return e.liquid&&t.liquid}function qs(e,t){return null!=t.maxHeight||Qs(e,t)}function Ys(e,t,n,r){let{expandRows:i}=n;return"function"==typeof t.content?t.content(n):p("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,p(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function Zs(e,t){return St(e,t,Cn)}function Xs(e,t){let n=[];for(let r of e){let e=r.span||1;for(let i=0;i<e;i+=1)n.push(p("col",{style:{width:"shrink"===r.width?$s(t):r.width||"",minWidth:r.minWidth||""}}))}return p("colgroup",{},...n)}function $s(e){return null==e?4:e}function Js(e){for(let t of e)if("shrink"===t.width)return!0;return!1}function Ks(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function eo(e,t){let n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function to(e){return p("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function no(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function ro(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}class io extends Gn{constructor(){super(...arguments),this.processCols=Gt(e=>e,Zs),this.renderMicroColGroup=Gt(Xs),this.scrollerRefs=new Vs,this.scrollerElRefs=new Vs(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],i=this.processCols(e.cols),s=this.renderMicroColGroup(i,t.shrinkWidth),o=Ks(e.liquid,n);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let a,l=r.length,c=0,d=[],u=[],h=[];for(;c<l&&"header"===(a=r[c]).type;)d.push(this.renderSection(a,s,!0)),c+=1;for(;c<l&&"body"===(a=r[c]).type;)u.push(this.renderSection(a,s,!1)),c+=1;for(;c<l&&"footer"===(a=r[c]).type;)h.push(this.renderSection(a,s,!0)),c+=1;let f=!Ti();const g={role:"rowgroup"};return p("table",{role:"grid",className:o.join(" "),style:{height:e.height}},Boolean(!f&&d.length)&&p("thead",g,...d),Boolean(!f&&u.length)&&p("tbody",g,...u),Boolean(!f&&h.length)&&p("tfoot",g,...h),f&&p("tbody",g,...d,...u,...h))}renderSection(e,t,n){return"outerContent"in e?p(y,{key:e.key},e.outerContent):p("tr",{key:e.key,role:"presentation",className:eo(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if("outerContent"in n)return n.outerContent;let{props:i}=this,{forceYScrollbars:s,scrollerClientWidths:o,scrollerClientHeights:a}=this.state,l=qs(i,e),c=Qs(i,e),d=i.liquid?s?"scroll":l?"auto":"hidden":"visible",u=e.key,h=Ys(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:i.collapsibleWidth||void 0===o[u]?null:o[u],clientHeight:void 0!==a[u]?a[u]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return p(r?"th":"td",{ref:n.elRef,role:"presentation"},p("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},p(Fs,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:d,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,t){let n=function(e,t){for(let n of e)if(n.key===t)return n;return null}(this.props.sections,t);n&&Qn(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Js(this.props.cols)?Gs(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=$i(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,i={},s={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let o=t.key,a=n.currentMap[o];if(a){let t=a.parentNode;i[o]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),s[o]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:s}}}io.addStateEquality({scrollerClientWidths:Cn,scrollerClientHeights:Cn});class so extends Gn{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&oi(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:i}=r,{ui:s}=i,o={event:new ti(t,i.def,i.instance),view:t.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&hi(r,t),isStartResizable:!e.disableResizing&&fi(r,t),isEndResizable:!e.disableResizing&&gi(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return p(Jn,Object.assign({},e,{elRef:this.handleEl,elClasses:[...vi(o),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:o,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&oi(this.el,this.props.seg)}}class oo extends Gn{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:i}=r.eventRange,s=pi(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return p(so,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:bi(r,t),defaultGenerator:ao,timeText:s}),(e,t)=>p(y,null,p(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&p("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&p("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function ao(e){return p("div",{className:"fc-event-main-frame"},e.timeText&&p("div",{className:"fc-event-time"},e.timeText),p("div",{className:"fc-event-title-container"},p("div",{className:"fc-event-title fc-sticky"},e.event.title||p(y,null," "))))}const lo=e=>p(Ln.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return p(Jn,Object.assign({},e,{elTag:e.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),co=an({day:"numeric"});class uo extends Gn{constructor(){super(...arguments),this.refineRenderProps=Qt(fo)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return p(Jn,Object.assign({},e,{elClasses:[...Vi(r,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":Wt(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function ho(e){return Boolean(e.dayCellContent||Yn("dayCellContent",e))}function fo(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,s=Fi(t,e.todayRange,null,r),o=e.showDayNumber?n.format(t,i?e.monthStartFormat:co):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},s),{isMonthStart:i,dayNumberText:o}),e.extraRenderProps)}class go extends Gn{render(){let{props:e}=this,{seg:t}=e;return p(so,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:po,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function po(e){let{title:t}=e.event;return t&&p("div",{className:"fc-event-title"},e.event.title)}function mo(e){return p("div",{className:"fc-"+e})}const vo=e=>p(Ln.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:i}=e,s=r.weekNumberFormat||e.defaultFormat,o={num:n.computeWeekNumber(i),text:n.format(i,s),date:i};return p(Jn,Object.assign({},e,{renderProps:o,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:yo,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function yo(e){return e.text}class bo extends Gn{constructor(){super(...arguments),this.state={titleId:We()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&Qn(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=ze(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,i=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return fe(p("div",Object.assign({},n.extraAttrs,{id:n.id,className:i.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),p("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},p("span",{className:"fc-popover-title",id:r.titleId},n.title),p("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),p("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,i=function(e){let t=ns(e),n=e.getBoundingClientRect();for(let e of t){let t=Hi(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(i){let s=r.getBoundingClientRect(),o=n?Oe(t,".fc-scrollgrid").getBoundingClientRect().top:i.top,a=e?i.right-s.width:i.left;o=Math.max(o,10),a=Math.min(a,document.documentElement.clientWidth-10-s.width),a=Math.max(a,10);let l=r.offsetParent.getBoundingClientRect();Be(r,{top:o-l.top,left:a-l.left})}}}class Eo extends ls{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:i,dateProfile:s}=n,o=t.format(r,e.dayPopoverFormat);return p(uo,{elRef:this.handleRootEl,date:r,dateProfile:s,todayRange:i},(t,r,i)=>p(bo,{elRef:i.ref,id:n.id,title:o,extraClassNames:["fc-more-popover"].concat(i.className||[]),extraAttrs:i,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},ho(e)&&p(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children))}queryHit(e,t,n,r){let{rootEl:i,props:s}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class So extends Gn{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:We()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&Qn(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=Do(t).start;function s(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new ti(n,t,r),start:n.dateEnv.toDate(i.start),end:n.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:i,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(s),hiddenSegs:t.hiddenSegs.map(s),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(i,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return p(Ln.Consumer,null,n=>{let{viewApi:r,options:i,calendarApi:s}=n,{moreLinkText:o}=i,{moreCnt:a}=e,l=Do(e),c="function"==typeof o?o.call(s,a):`+${a} ${o}`,d=at(i.moreLinkHint,[a],c),u={num:a,shortText:"+"+a,text:c,view:r};return p(y,null,Boolean(e.moreCnt)&&p(Jn,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Qe(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||Ao,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),t.isPopoverOpen&&p(Eo,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Oe(this.linkEl,".fc-view-harness"))}}function Ao(e){return e.text}function Do(e){if(e.allDayDate)return{start:e.allDayDate,end:wt(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:wo(t),end:(n=t,n.reduce(Ro).eventRange.range.end)};var n}function wo(e){return e.reduce(Co).eventRange.range.start}function Co(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Ro(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}var xo={__proto__:null,BASE_OPTION_DEFAULTS:cn,BaseComponent:Gn,BgEvent:go,CalendarImpl:Ni,CalendarRoot:ki,ContentContainer:Jn,CustomRenderingStore:class extends class{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}},DateComponent:ls,DateEnv:Hn,DateProfileGenerator:gr,DayCellContainer:uo,DayHeader:_s,DaySeriesModel:ks,DayTableModel:Ms,DelayedRunner:Me,ElementDragging:ms,ElementScrollController:os,Emitter:Gr,EventContainer:so,EventImpl:ti,Interaction:Mi,MoreLinkContainer:So,NamedTimeZoneImpl:class{constructor(e){this.timeZoneName=e}},NowIndicatorContainer:lo,NowTimer:Rs,PositionCache:rs,RefMap:Vs,ScrollController:ss,ScrollResponder:Wn,Scroller:Fs,SegHierarchy:cs,SimpleScrollGrid:io,Slicer:Is,Splitter:Wi,StandardEvent:oo,TableDateCell:Ds,TableDowCell:Cs,Theme:Bn,ViewContainer:er,ViewContextType:Ln,WeekNumberContainer:vo,WindowScrollController:as,addDays:wt,addDurations:pt,addMs:Ct,addWeeks:Dt,allowContextMenu:tt,allowSelection:Ke,applyMutationToEventStore:$r,applyStyle:Be,asCleanDays:function(e){return e.years||e.months||e.milliseconds?0:e.days},asRoughMinutes:function(e){return yt(e)/6e4},asRoughMs:yt,asRoughSeconds:function(e){return yt(e)/1e3},binarySearch:ps,buildElAttrs:Zn,buildEntryKey:us,buildEventApis:ri,buildEventRangeKey:yi,buildIsoString:Ut,buildNavLinkAttrs:qi,buildSegTimeText:pi,collectFromHash:kn,combineEventUis:Pr,compareByFieldSpecs:rt,compareNumbers:lt,compareObjs:_n,computeEarliestSegStart:wo,computeEdges:Ki,computeFallbackHeaderFormat:Es,computeInnerRect:es,computeRect:ts,computeShrinkWidth:Gs,computeVisibleDayRange:dr,config:vs,constrainPoint:Bi,createDuration:ft,createEmptyEventStore:_r,createEventInstance:pr,createEventUi:Nr,createFormatter:an,diffDates:hr,diffDayAndTime:_t,diffDays:xt,diffPoints:zi,diffWeeks:Rt,diffWholeDays:kt,diffWholeWeeks:Tt,disableCursor:Xe,elementClosest:Oe,elementMatches:Ne,enableCursor:$e,eventTupleToStore:Rr,filterHash:Sn,findDirectChildren:function(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let i=n[e].children;for(let e=0;e<i.length;e+=1){let n=i[e];t&&!Ne(n,t)||r.push(n)}}return r},findElements:Pe,flexibleCompare:st,formatDayString:Wt,formatIsoMonthStr:Lt,formatIsoTimeString:Ft,getAllowYScrolling:qs,getCanVGrowWithinCell:Ti,getClippingParents:ns,getDateMeta:Fi,getDayClassNames:Vi,getDefaultEventEnd:Xr,getElSeg:ai,getEntrySpanEnd:ds,getEventTargetViaRoot:ze,getIsRtlScrollbarOnLeft:Xi,getRectCenter:ji,getRelevantEvents:xr,getScrollGridClassNames:Ks,getScrollbarWidths:$i,getSectionClassNames:eo,getSectionHasLiquidHeight:Qs,getSegAnchorAttrs:bi,getSegMeta:mi,getSlotClassNames:function(e,t){let n=["fc-slot","fc-slot-"+At[e.dow]];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n},getStickyFooterScrollbar:ro,getStickyHeaderDates:no,getUniqueDomId:We,greatestDurationDenominator:Et,groupIntersectingEntries:hs,guid:Ze,hasBgRendering:si,hasCustomDayCellContent:ho,hasShrinkWidth:Js,identity:yn,injectStyles:xe,interactionSettingsStore:Oi,interactionSettingsToStore:Ii,intersectRanges:ir,intersectRects:Hi,intersectSpans:fs,isArraysEqual:St,isColPropsEqual:Zs,isDateSelectionValid:Ps,isDateSpansEqual:Ai,isInt:ct,isInteractionValid:Ns,isMultiDayRange:ur,isPropsEqual:Cn,isPropsValid:Bs,isValidDate:jt,mapHash:An,memoize:Gt,memoizeArraylike:function(e,t,n){let r=[],i=[];return s=>{let o=r.length,a=s.length,l=0;for(;l<o;l+=1)if(s[l]){if(!St(r[l],s[l])){n&&n(i[l]);let r=e.apply(this,s[l]);t&&t(r,i[l])||(i[l]=r)}}else n&&n(i[l]);for(;l<a;l+=1)i[l]=e.apply(this,s[l]);return r=s,i.splice(a),i}},memoizeHashlike:function(e,t,n){let r={},i={};return s=>{let o={};for(let a in s)if(i[a])if(St(r[a],s[a]))o[a]=i[a];else{n&&n(i[a]);let r=e.apply(this,s[a]);o[a]=t&&t(r,i[a])?i[a]:r}else o[a]=e.apply(this,s[a]);return r=s,i=o,o}},memoizeObjArg:Qt,mergeEventStores:Tr,multiplyDuration:mt,padStart:ot,parseBusinessHours:qr,parseClassNames:Mr,parseDragMeta:bs,parseEventDef:wr,parseFieldSpecs:nt,parseMarker:Pn,pointInsideRect:Pi,preventContextMenu:et,preventDefault:Le,preventSelection:Je,rangeContainsMarker:lr,rangeContainsRange:ar,rangesEqual:sr,rangesIntersect:or,refineEventDef:Ar,refineProps:vn,removeElement:Ie,removeExact:function(e,t){let n=0,r=0;for(;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1;return n},renderChunkContent:Ys,renderFill:mo,renderMicroColGroup:Xs,renderScrollShim:to,requestJson:xi,sanitizeShrinkWidth:$s,setRef:Qn,sliceEventStore:ii,sortEventSegs:di,startOfDay:Mt,translateRect:function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},triggerDateSelect:Yr,unpromisify:Ci,whenTransitionDone:Ge,wholeDivideDurations:bt},_o={__proto__:null,createPortal:fe,createContext:Un,flushSync:jn,Component:D,Fragment:y,cloneElement:function(e,n,r){var i,s,o,a=f({},e.props);for(o in n)"key"==o?i=n[o]:"ref"==o?s=n[o]:a[o]=n[o];return arguments.length>2&&(a.children=arguments.length>3?t.call(arguments,2):r),m(e.type,a,i||e.key,s||e.ref,null)},createElement:p,createRef:v,h:p,hydrate:function e(t,n){U(t,n,e)},get isValidElement(){return i},get options(){return n},render:U,toChildArray:M};const To=[],ko={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Mo=Object.assign(Object.assign({},ko),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":"This "+e},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function Io(e){let t=e.length>0?e[0].code:"en",n=To.concat(e),r={en:Mo};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function Oo(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||Mo;return No(e,n,r)}(e,t):No(e.code,[e.code],e)}function No(e,t,n){let r=En([ko,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Po(e){return{id:Ze(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Ho(){let e,t=[],n=[];return(r,i)=>(e&&St(r,t)&&St(i,n)||(e=function(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let o of e){const e=o.name,a=n[e];void 0===a?(n[e]=o.id,i(o.deps),s=o,r={premiumReleaseDate:Bo((t=r).premiumReleaseDate,s.premiumReleaseDate),reducers:t.reducers.concat(s.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(s.isLoadingFuncs),contextInit:t.contextInit.concat(s.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),s.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(s.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),s.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(s.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(s.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(s.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(s.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(s.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(s.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),s.views),viewPropsTransformers:t.viewPropsTransformers.concat(s.viewPropsTransformers),isPropsValid:s.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(s.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(s.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(s.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(s.calendarInteractions),componentInteractions:t.componentInteractions.concat(s.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),s.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(s.eventSourceDefs),cmdFormatter:s.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(s.recurringTypes),namedTimeZonedImpl:s.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||s.initialView,elementDraggingImpl:t.elementDraggingImpl||s.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),s.optionChangeHandlers),scrollGridImpl:s.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),s.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),s.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),s.propSetHandlers)}):a!==o.id&&console.warn(`Duplicate plugin '${e}'`)}var t,s}return e&&i(e),i(t),r}(r,i)),t=r,n=i,e)}function Bo(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class jo extends Bn{}function zo(e,t,n,r){if(t[e])return t[e];let i=function(e,t,n,r){let i=n[e],s=r[e],o=e=>i&&null!==i[e]?i[e]:s&&null!==s[e]?s[e]:null,a=o("component"),l=o("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=zo(l,t,n,r)}!a&&c&&(a=c.component);if(!a)return null;return{type:e,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}}(e,t,n,r);return i&&(t[e]=i),i}function Uo(e){return An(e,Wo)}function Wo(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=Lo(t):!n||n.prototype instanceof Gn||(n=Lo(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function Lo(e){return t=>p(Ln.Consumer,null,n=>p(Jn,{elTag:"div",elClasses:tr(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function Fo(e,t,n,r){let i=Uo(e),s=Uo(t.views);return An(function(e,t){let n,r={};for(n in e)zo(n,r,e,t);for(n in t)zo(n,r,e,t);return r}(i,s),e=>function(e,t,n,r,i){let s=e.overrides.duration||e.defaults.duration||r.duration||n.duration,o=null,a="",l="",c={};if(s&&(o=function(e){let t=JSON.stringify(e),n=Vo[t];void 0===n&&(n=ft(e),Vo[t]=n);return n}(s),o)){let e=Et(o);a=e.unit,1===e.value&&(l=a,c=t[a]?t[a].rawOptions:{})}let d=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},u=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:o,durationUnit:a,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(cn)||e.type,buttonTitleOverride:u(r)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(i)||e.defaults.buttonHint||u(cn)}}(e,s,t,n,r))}jo.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},jo.prototype.baseIconClass="fc-icon",jo.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},jo.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},jo.prototype.iconOverrideOption="buttonIcons",jo.prototype.iconOverrideCustomButtonOption="icon",jo.prototype.iconOverridePrefix="fc-icon-";let Vo={};function Go(e,t,n){let r=t?t.activeRange:null;return Yo({},function(e,t){let n=zr(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(let e of r){let r=jr(e,t,n);r&&i.push(r)}return i}(e,n),r,n)}function Qo(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Yo(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return s=e,o=t.sourceId,Sn(s,e=>e.sourceId!==o);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Zo(e,i,r):e;case"FETCH_EVENT_SOURCES":return Xo(e,t.sourceIds?Dn(t.sourceIds):Jo(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let i=e[t];if(i&&n===i.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var s,o}function qo(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function Yo(e,t,n,r){let i={};for(let e of t)i[e.sourceId]=e;return n&&(i=Zo(i,n,r)),Object.assign(Object.assign({},e),i)}function Zo(e,t,n){return Xo(e,Sn(e,e=>function(e,t,n){if(!Ko(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)),t,!1,n)}function Xo(e,t,n,r,i){let s={};for(let o in e){let a=e[o];t[o]?s[o]=$o(a,n,r,i):s[o]=a}return s}function $o(e,t,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],a=Ze();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},n=>{let{rawEvents:o}=n;i.eventSourceSuccess&&(o=i.eventSourceSuccess.call(s,o,n.response)||o),e.success&&(o=e.success.call(s,o,n.response)||o),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:a,fetchRange:t,rawEvents:o})},n=>{let o=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,n),o=!0),e.failure&&(e.failure(n),o=!0),o||console.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:a,fetchRange:t,error:n})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:a})}function Jo(e,t){return Sn(e,e=>Ko(e,t))}function Ko(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function ea(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function ta(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function na(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ra(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ia(e,t,n,r,i){return{header:e.headerToolbar?sa(e.headerToolbar,e,t,n,r,i):null,footer:e.footerToolbar?sa(e.footerToolbar,e,t,n,r,i):null}}function sa(e,t,n,r,i,s){let o={},a=[],l=!1;for(let c in e){let d=oa(e[c],t,n,r,i,s);o[c]=d.widgets,a.push(...d.viewsWithButtons),l=l||d.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:l}}function oa(e,t,n,r,i,s){let o="rtl"===t.direction,a=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},d=n.buttonHints||{},u=t.buttonHints||{},h=e?e.split(" "):[],f=[],g=!1;return{widgets:h.map(e=>e.split(",").map(e=>{if("title"===e)return g=!0,{buttonName:e};let n,h,p,m,v,y;if(n=a[e])p=e=>{n.click&&n.click.call(e.target,e,e.target)},(m=r.getCustomButtonIconClass(n))||(m=r.getIconClass(e,o))||(v=n.text),y=n.hint||n.text;else if(h=i[e]){f.push(e),p=()=>{s.changeView(e)},(v=h.buttonTextOverride)||(m=r.getIconClass(e,o))||(v=h.buttonTextDefault);let n=h.buttonTextOverride||h.buttonTextDefault;y=at(h.buttonTitleOverride||h.buttonTitleDefault||t.viewHint,[n,e],n)}else if(s[e])if(p=()=>{s[e]()},(v=l[e])||(m=r.getIconClass(e,o))||(v=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=at(d[t]||u[t],[c.year||"year","year"],c[e])}else y=t=>at(d[e]||u[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:p,buttonIcon:m,buttonText:v,buttonHint:y}})),viewsWithButtons:f,hasTitle:g}}class aa{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}function la(e,t){let n=wn(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const ca=[Po({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),Po({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;Ci(e.eventSource.meta.bind(null,Di(e.range,r)),e=>t({rawEvents:e}),n)}}]}),Po({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:yn,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam},fetch(e,t,n){const{meta:r}=e.eventSource,i=function(e,t,n){let r,i,s,o,{dateEnv:a,options:l}=n,c={};r=e.startParam,null==r&&(r=l.startParam);i=e.endParam,null==i&&(i=l.endParam);s=e.timeZoneParam,null==s&&(s=l.timeZoneParam);o="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Object.assign(c,o),c[r]=a.formatIso(t.start),c[i]=a.formatIso(t.end),"local"!==a.timeZone&&(c[s]=a.timeZone);return c}(r,e.range,e.context);xi(r.method,r.url,i).then(([e,n])=>{t({rawEvents:e,response:n})},n)}}]}),Po({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let i,s={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null};return e.duration&&(i=e.duration),!i&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,i={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:i,typeData:s}}var n,r;return null},expand(e,t,n){let r=ir(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){let i=e?Dn(e):null,s=Mt(n.start),o=n.end,a=[];for(;s<o;){let e;i&&!i[s.getUTCDay()]||(e=t?r.add(s,t):s,a.push(e)),s=wt(s,1)}return a}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:yn,startTime:ft,endTime:ft,duration:ft,startRecur:yn,endRecur:yn}}),Po({name:"change-handler",optionChangeHandlers:{events(e,t){la([e],t)},eventSources:la}}),Po({name:"misc",isLoadingFuncs:[e=>qo(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Di(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",ri(e,t))}}})];class da{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Me(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function ua(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,an(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=kt(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class ha{constructor(e){this.computeCurrentViewData=Gt(this._computeCurrentViewData),this.organizeRawLocales=Gt(Io),this.buildLocale=Gt(Oo),this.buildPluginHooks=Ho(),this.buildDateEnv=Gt(fa),this.buildTheme=Gt(ga),this.parseToolbars=Gt(ia),this.buildViewSpecs=Gt(Fo),this.buildDateProfileGenerator=Qt(pa),this.buildViewApi=Gt(ma),this.buildViewUiProps=Qt(ba),this.buildEventUiBySource=Gt(va,Cn),this.buildEventUiBases=Gt(ya),this.parseContextBusinessHours=Qt(Sa),this.buildTitle=Gt(ua),this.emitter=new Gr,this.actionRunner=new da(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,i=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let s=function(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):fr(e.now,t)}(n.calendarOptions,n.dateEnv),o=i.dateProfileGenerator.build(s);lr(o.activeRange,s)||(s=o.currentRange.start);let a={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let e of n.pluginHooks.contextInit)e(a);let l=Go(n.calendarOptions,o,a),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:s,dateProfile:o,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},d=Object.assign(Object.assign({},a),c);for(let e of n.pluginHooks.reducers)Object.assign(c,e(null,null,d));Ea(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,i=function(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),o=function(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}(n.currentViewType,e),a=this.computeCurrentViewData(o,s,t.optionOverrides,i);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(a.options);let l={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:d}=n;this.data&&this.data.dateProfileGenerator!==a.dateProfileGenerator&&(d=a.dateProfileGenerator.build(c)),c=function(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}(c,e),d=function(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i}return e}(d,e,c,a.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&lr(d.currentRange,c)||(c=d.currentRange.start);let u=Qo(n.eventSources,e,d,l),h=Ur(n.eventStore,e,u,d,l),f=qo(u)&&!a.options.progressiveEventRendering&&n.renderableEventStore||h,{eventUiSingleBase:g,selectionConfig:p}=this.buildViewUiProps(l),m=this.buildEventUiBySource(u),v={dynamicOptionOverrides:i,currentViewType:o,currentDate:c,dateProfile:d,eventSources:u,eventStore:h,renderableEventStore:f,selectionConfig:p,eventUiBases:this.buildEventUiBases(f.defs,g,m),businessHours:this.parseContextBusinessHours(l),dateSelection:ea(n.dateSelection,e),eventSelection:ta(n.eventSelection,e),eventDrag:na(n.eventDrag,e),eventResize:ra(n.eventResize,e)},y=Object.assign(Object.assign({},l),v);for(let t of s.pluginHooks.reducers)Object.assign(v,t(n,e,y));let b=Ea(n,l),E=Ea(v,l);!b&&E?r.trigger("loading",!0):b&&!E&&r.trigger("loading",!1),this.state=v,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,i.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),i),t),o=r.pluginHooks.optionChangeHandlers,a=n&&n.calendarOptions,l=r.calendarOptions;if(a&&a!==l){a.timeZone!==l.timeZone&&(t.eventSources=s.eventSources=function(e,t,n){let r=t?t.activeRange:null;return Xo(e,Jo(e,n),r,!0,n)}(s.eventSources,t.dateProfile,s),t.eventStore=s.eventStore=Fr(s.eventStore,n.dateEnv,s.dateEnv),t.renderableEventStore=s.renderableEventStore=Fr(s.renderableEventStore,n.dateEnv,s.dateEnv));for(let e in o)-1===this.optionsForHandling.indexOf(e)&&a[e]===l[e]||o[e](l[e],s)}this.optionsForHandling=[],e.onData&&e.onData(s)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:s,availableLocaleData:o,extra:a}=this.processRawCalendarOptions(e,t);Aa(a);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,o,r.defaultRangeSeparator),c=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),d=this.buildTheme(r,i),u=this.parseToolbars(r,this.stableOptionOverrides,d,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:l,viewSpecs:c,theme:d,toolbarConfig:u,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=mn([cn,e,t]),i=this.organizeRawLocales(n),s=i.map,o=this.buildLocale(r||i.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],ca),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ln),dn),un),a.listenerRefiners),a.optionRefiners),c={},d=mn([cn,o,e,t]),u={},h=this.currentCalendarOptionsInput,f=this.currentCalendarOptionsRefined,g=!1;for(let e in d)-1===this.optionsForRefining.indexOf(e)&&(d[e]===h[e]||hn[e]&&e in h&&hn[e](h[e],d[e]))?u[e]=f[e]:l[e]?(u[e]=l[e](d[e]),g=!0):c[e]=h[e];return g&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=u,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:i,localeDefaults:o,extra:c}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:o}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);return Aa(o),{viewSpec:i,options:s,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,i){let s=mn([cn,e.optionDefaults,n,r,e.optionOverrides,i]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ln),dn),un),pn),t.listenerRefiners),t.optionRefiners),a={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,u={};for(let e in s)s[e]===l[e]||hn[e]&&hn[e](s[e],l[e])?a[e]=c[e]:(s[e]===this.currentCalendarOptionsInput[e]||hn[e]&&hn[e](s[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(a[e]=this.currentCalendarOptionsRefined[e]):o[e]?a[e]=o[e](s[e]):u[e]=s[e],d=!0);return d&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function fa(e,t,n,r,i,s,o,a){let l=Oo(t||o.defaultCode,o.map);return new Hn({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function ga(e,t){return new(t.themeClasses[e.themeSystem]||jo)(e)}function pa(e){return new(e.dateProfileGeneratorClass||gr)(e)}function ma(e,t,n){return new aa(e,t,n)}function va(e){return An(e,e=>e.ui)}function ya(e,t,n){let r={"":t};for(let t in e){let i=e[t];i.sourceId&&n[i.sourceId]&&(r[t]=n[i.sourceId])}return r}function ba(e){let{options:t}=e;return{eventUiSingleBase:Nr({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:Nr({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Ea(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function Sa(e){return qr(e.options.businessHours,e)}function Aa(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class Da extends Gn{render(){return p("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map(e=>this.renderWidgetGroup(e)))}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],i=!0;for(let s of e){let{buttonName:e,buttonClick:o,buttonText:a,buttonIcon:l,buttonHint:c}=s;if("title"===e)i=!1,r.push(p("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let i=e===t.activeButton,s=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,d=[`fc-${e}-button`,n.getClass("button")];i&&d.push(n.getClass("buttonActive")),r.push(p("button",{type:"button",title:"function"==typeof c?c(t.navUnit):c,disabled:s,"aria-pressed":i,className:d.join(" "),onClick:o},a||(l?p("span",{className:l}):"")))}}if(r.length>1){return p("div",{className:i&&n.getClass("buttonGroup")||""},...r)}return r[0]}}class wa extends Gn{render(){let e,t,{model:n,extraClassName:r}=this.props,i=!1,s=n.sectionWidgets,o=s.center;return s.left?(i=!0,e=s.left):e=s.start,s.right?(i=!0,t=s.right):t=s.end,p("div",{className:[r||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",o||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return p(Da,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class Ca extends Gn{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,Qn(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",s="";return n?null!==t.availableWidth?i=t.availableWidth/n:s=1/n*100+"%":i=e.height||"",p("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:i,paddingBottom:s}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Ra extends Mi{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=ai(t);if(i&&n.isValidSegDownEl(e.target)){let s=Oe(e.target,".fc-event-forced-url"),o=s?s.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new ti(n.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:r.viewApi}),o&&!e.defaultPrevented&&(window.location.href=o)}},this.destroy=Fe(e.el,"click",".fc-event",this.handleSegClick)}}class xa extends Mi{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{ai(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=function(e,t,n,r){let i;return Fe(e,"mouseover",t,(e,t)=>{if(t!==i){i=t,n(e,t);let s=e=>{i=null,r(e,t),t.removeEventListener("mouseleave",s)};t.addEventListener("mouseleave",s)}})}(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:i}=r,s=ai(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new ti(i,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:i.viewApi})}}class _a extends Vn{constructor(){super(...arguments),this.buildViewContext=Gt(Fn),this.buildViewPropTransformers=Gt(ka),this.buildToolbarProps=Gt(Ta),this.headerRef={current:null},this.footerRef={current:null},this.interactionsStore={},this.state={viewLabelId:We()},this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[Ra,xa].concat(this.props.pluginHooks.componentInteractions).map(e=>new e(n));this.interactionsStore[e.uid]=r,Oi[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete Oi[e.uid]},this.resizeRunner=new Me(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,fr(t.options.now,t.dateEnv),t.viewTitle),s=!1,o="";t.isHeightAuto||t.forPrint?o="":null!=r.height?s=!0:null!=r.contentHeight?o=r.contentHeight:e=Math.max(r.aspectRatio,.5);let a=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return p(Ln.Provider,{value:a},n.header&&p(wa,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},i)),p(Ca,{liquid:s,height:o,aspectRatio:e,labeledById:l},this.renderView(t),this.buildAppendContent()),n.footer&&p(wa,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return p(y,{},...e.pluginHooks.viewContainerAppends.map(t=>t(e)))}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of i)Object.assign(r,t.transform(r,e));return p(n.component,Object.assign({},r))}}function Ta(e,t,n,r,i,s){let o=n.build(i,void 0,!1),a=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:s,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!lr(t.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function ka(e){return e.map(e=>new e)}function Ma(e){let t=Oo(e.locale||"en",Io([]).map);return new Hn(Object.assign(Object.assign({timeZone:cn.timeZone,calendarSystem:"gregory"},e),{locale:t}))}vs.touchMouseIgnoreWait=500;let Ia=0,Oa=0,Na=!1;class Pa{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener("touchmove",this.handleTouchMove),n.addEventListener("touchend",this.handleTouchEnd),n.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,Ia+=1,setTimeout(()=>{Ia-=1},vs.touchMouseIgnoreWait)}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.pageXOffset-this.prevScrollX+this.prevPageX,n=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=e,this.emitter=new Gr,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Oa+=1,1===Oa&&window.addEventListener("touchmove",Ha,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Oa-=1,Oa||window.removeEventListener("touchmove",Ha,{passive:!1})}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!Oe(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){Na=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Oe(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Ia||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Na=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n,r,i=e.touches,s=0,o=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(s=n-this.origPageX,o=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:s,deltaY:o}}}function Ha(e){Na&&e.preventDefault()}class Ba{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",Be(n,{left:r.left,top:r.top}),Ge(n,()=>{n.style.transition="",e()})}cleanup(){this.mirrorEl&&(Ie(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Be(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.style.webkitUserSelect="none",t.classList.add("fc-event-dragging"),Be(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}}class ja extends ss{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class za extends ja{constructor(e,t){super(new os(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return es(this.scrollController.el)}}class Ua extends ja{constructor(e){super(new as,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Wa="function"==typeof performance?performance.now:Date.now;class La{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let t=Wa();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.pageXOffset,r=t-window.pageYOffset,i=null===this.pointerScreenY?0:r-this.pointerScreenY,s=null===this.pointerScreenX?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),s<0?this.everMovedLeft=!0:s>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Wa()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:r}=this,i=r-e.distance,s=i*i/(r*r)*this.maxVelocity*t,o=1;switch(e.name){case"left":o=-1;case"right":n.setScrollLeft(n.getScrollLeft()+s*o);break;case"top":o=-1;case"bottom":n.setScrollTop(n.getScrollTop()+s*o)}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,i=this.scrollCaches||[];for(let s of i){let i=s.clientRect,o=e-i.left,a=i.right-e,l=t-i.top,c=i.bottom-t;o>=0&&a>=0&&l>=0&&c>=0&&(l<=n&&this.everMovedUp&&s.canScrollUp()&&(!r||r.distance>l)&&(r={scrollCache:s,name:"top",distance:l}),c<=n&&this.everMovedDown&&s.canScrollDown()&&(!r||r.distance>c)&&(r={scrollCache:s,name:"bottom",distance:c}),o<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!r||r.distance>o)&&(r={scrollCache:s,name:"left",distance:o}),a<=n&&this.everMovedRight&&s.canScrollRight()&&(!r||r.distance>a)&&(r={scrollCache:s,name:"right",distance:a}))}return r}buildCaches(e){return this.queryScrollEls(e).map(e=>e===window?new Ua(!1):new za(e,!1))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)"object"==typeof n?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}}class Fa extends ms{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=e=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Je(document.body),et(document.body),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger("pointerdown",e),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",e),!this.isDistanceSurpassed){let t,n=this.minDistance,{deltaX:r,deltaY:i}=e;t=r*r+i*i,t>=n*n&&this.handleDistanceSurpassed(e)}this.isDragging&&("scroll"!==e.origEvent.type&&(this.mirror.handleMove(e.pageX,e.pageY),this.autoScroller.handleMove(e.pageX,e.pageY)),this.emitter.trigger("dragmove",e))}},this.onPointerUp=e=>{this.isInteracting&&(this.isInteracting=!1,Ke(document.body),tt(document.body),this.emitter.trigger("pointerup",e),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(e)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new Pa(e);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t&&(n.selector=t),this.mirror=new Ba,this.autoScroller=new La}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){"number"==typeof this.delay?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Va{constructor(e){this.origRect=ts(e),this.scrollCaches=ns(e).map(e=>new za(e,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let e of this.scrollCaches)if(!Ga(e.getEventTarget())&&!Pi(n,e.clientRect))return!1;return!0}}function Ga(e){let t=e.tagName;return"HTML"===t||"BODY"===t}class Qa{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?(t.setIgnoreMove(!1),this.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=e=>{this.emitter.trigger("dragstart",e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger("dragmove",e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger("pointerup",e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Gr}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl;i instanceof HTMLElement&&(t=ts(i),r=Bi(r,t));let s=this.initialHit=this.queryHitForOffset(r.left,r.top);if(s){if(this.useSubjectCenter&&t){let e=Hi(t,s.rect);e&&(r=ji(e))}this.coordAdjust=zi(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&qa(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=An(this.droppableStore,e=>(e.component.prepareHits(),new Va(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,i=null;for(let s in n){let o=n[s].component,a=r[s];if(a&&a.isWithinClipping(e,t)){let n=a.computeLeft(),r=a.computeTop(),l=e-n,c=t-r,{origRect:d}=a,u=d.right-d.left,h=d.bottom-d.top;if(l>=0&&l<u&&c>=0&&c<h){let e=o.queryHit(l,c,u,h);e&&ar(e.dateProfile.activeRange,e.dateSpan.range)&&(!i||e.layer>i.layer)&&(e.componentId=s,e.context=o.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,i=e)}}}return i}}function qa(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&Ai(e.dateSpan,t.dateSpan)}function Ya(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,{date:(i=t.dateEnv).toDate(r.range.start),dateStr:i.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay})),n}class Za extends Mi{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:i}=r,{options:s}=n.context,o=n.context;this.subjectEl=e.subjectEl;let a=this.subjectSeg=ai(e.subjectEl),l=(this.eventRange=a.eventRange).instance.instanceId;this.relevantEvents=xr(o.getCurrentData().eventStore,l),r.minDistance=e.isTouch?0:s.eventDragMinDistance,r.delay=e.isTouch&&l!==n.props.eventSelection?function(e){let{options:t}=e.context,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(n):null,s.fixedMirrorParent?i.parentNode=s.fixedMirrorParent:i.parentNode=Oe(t,".fc"),i.revertDuration=s.dragRevertDuration;let c=n.isValidSegDownEl(t)&&!Oe(t,".fc-event-resizer");r.setIgnoreMove(!c),this.isDragging=c&&e.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new ti(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,r=this.hitDragging.initialHit,i=this.component.context,s=null,o=null,a=null,l=!1,c={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){s=e.context;let t=s.options;i===s||t.editable&&t.droppable?(o=function(e,t,n){let r=e.dateSpan,i=t.dateSpan,s=r.range.start,o=i.range.start,a={};r.allDay!==i.allDay&&(a.allDay=i.allDay,a.hasEnd=t.context.options.allDayMaintainDuration,i.allDay&&(s=Mt(s)));let l=hr(s,o,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);l.milliseconds&&(a.allDay=!1);let c={datesDelta:l,standardProps:a};for(let r of n)r(c,e,t);return c}(r,e,s.getCurrentData().pluginHooks.eventDragMutationMassagers),o&&(a=$r(n,s.getCurrentData().eventUiBases,o,s),c.mutatedEvents=a,Ns(c,e.dateProfile,s)||(l=!0,o=null,a=null,c.mutatedEvents={defs:{},instances:{}}))):s=null}this.displayDrag(s,c),l?Xe():$e(),t||(i===s&&qa(r,e)&&(o=null),this.dragging.setMirrorNeedsRevert(!o),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=s,this.validMutation=o,this.mutatedRelevantEvents=a)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:r,validMutation:i}=this,s=this.eventRange.def,o=this.eventRange.instance,a=new ti(t,s,o),l=this.relevantEvents,c=this.mutatedRelevantEvents,{finalHit:d}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:a,jsEvent:e.origEvent,view:n}),i){if(r===t){let r=new ti(t,c.defs[s.defId],o?c.instances[o.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:c});let d={oldEvent:a,event:r,relatedEvents:ri(c,t,o),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}},u={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(u,e(i,t));t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},d),u),{el:e.subjectEl,delta:i.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",d)}else if(r){let i={event:a,relatedEvents:ri(l,t,o),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},i),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:l}),t.emitter.trigger("eventRemove",i);let u=c.defs[s.defId],h=c.instances[o.instanceId],f=new ti(r,u,h);r.dispatch({type:"MERGE_EVENTS",eventStore:c});let g={event:f,relatedEvents:ri(c,r,h),revert(){r.dispatch({type:"REMOVE_EVENTS",eventStore:c})}};r.emitter.trigger("eventAdd",g),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:o.instanceId}),r.emitter.trigger("drop",Object.assign(Object.assign({},Ya(d.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:d.context.viewApi})),r.emitter.trigger("eventReceive",Object.assign(Object.assign({},g),{draggedEl:e.subjectEl,view:d.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,r=this.dragging=new Fa(e.el);r.pointer.selector=Za.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new Qa(this.dragging,Oi);i.useSubjectCenter=e.useEventCenter,i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}Za.SELECTOR=".fc-event-draggable, .fc-event-resizable";const Xa={fixedMirrorParent:yn},$a={dateClick:yn,eventDragStart:yn,eventDragStop:yn,eventDrop:yn,eventResizeStart:yn,eventResizeStop:yn,eventResize:yn,drop:yn,eventReceive:yn,eventLeave:yn};class Ja{constructor(e,t){this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=e=>{this.dragMeta=this.buildDragMeta(e.subjectEl)},this.handleHitUpdate=(e,t,n)=>{let{dragging:r}=this.hitDragging,i=null,s=null,o=!1,a={affectedEvents:{defs:{},instances:{}},mutatedEvents:{defs:{},instances:{}},isEvent:this.dragMeta.create};e&&(i=e.context,this.canDropElOnCalendar(n.subjectEl,i)&&(s=function(e,t,n){let r=Object.assign({},t.leftoverProps);for(let i of n.pluginHooks.externalDefTransforms)Object.assign(r,i(e,t));let{refined:i,extra:s}=Ar(r,n),o=wr(i,s,t.sourceId,e.allDay,n.options.forceEventDuration||Boolean(t.duration),n),a=e.range.start;e.allDay&&t.startTime&&(a=n.dateEnv.add(a,t.startTime));let l=t.duration?n.dateEnv.add(a,t.duration):Xr(e.allDay,a,n),c=pr(o.defId,{start:a,end:l});return{def:o,instance:c}}(e.dateSpan,this.dragMeta,i),a.mutatedEvents=Rr(s),o=!Ns(a,e.dateProfile,i),o&&(a.mutatedEvents={defs:{},instances:{}},s=null))),this.displayDrag(i,a),r.setMirrorIsVisible(t||!s||!document.querySelector(".fc-event-mirror")),o?Xe():$e(),t||(r.setMirrorNeedsRevert(!s),this.receivingContext=i,this.droppableEvent=s)},this.handleDragEnd=e=>{let{receivingContext:t,droppableEvent:n}=this;if(this.clearDrag(),t&&n){let r=this.hitDragging.finalHit,i=r.context.viewApi,s=this.dragMeta;if(t.emitter.trigger("drop",Object.assign(Object.assign({},Ya(r.dateSpan,t)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:i})),s.create){let r=Rr(n);t.dispatch({type:"MERGE_EVENTS",eventStore:r}),e.isTouch&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:n.instance.instanceId}),t.emitter.trigger("eventReceive",{event:new ti(t,n.def,n.instance),relatedEvents:[],revert(){t.dispatch({type:"REMOVE_EVENTS",eventStore:r})},draggedEl:e.subjectEl,view:i})}}this.receivingContext=null,this.droppableEvent=null};let n=this.hitDragging=new Qa(e,Oi);n.requireInitial=!1,n.emitter.on("dragstart",this.handleDragStart),n.emitter.on("hitupdate",this.handleHitUpdate),n.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}buildDragMeta(e){return"object"==typeof this.suppliedDragMeta?bs(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?bs(this.suppliedDragMeta(e)):function(e){let t=function(e,t){let n=vs.dataAttrPrefix,r=(n?n+"-":"")+t;return e.getAttribute("data-"+r)||""}(e,"event");return bs(t?JSON.parse(t):{create:!1})}(e)}displayDrag(e,t){let n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})}canDropElOnCalendar(e,t){let n=t.options.dropAccept;return"function"==typeof n?n.call(t.calendarApi,e):"string"!=typeof n||!n||Boolean(Ne(e,n))}}vs.dataAttrPrefix="";class Ka extends ms{constructor(e){super(e),this.shouldIgnoreMove=!1,this.mirrorSelector="",this.currentMirrorEl=null,this.handlePointerDown=e=>{this.emitter.trigger("pointerdown",e),this.shouldIgnoreMove||this.emitter.trigger("dragstart",e)},this.handlePointerMove=e=>{this.shouldIgnoreMove||this.emitter.trigger("dragmove",e)},this.handlePointerUp=e=>{this.emitter.trigger("pointerup",e),this.shouldIgnoreMove||this.emitter.trigger("dragend",e)};let t=this.pointer=new Pa(e);t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("pointermove",this.handlePointerMove),t.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.pointer.destroy()}setIgnoreMove(e){this.shouldIgnoreMove=e}setMirrorIsVisible(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{let e=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;e&&(this.currentMirrorEl=e,e.style.visibility="hidden")}}}var el=Po({name:"@fullcalendar/interaction",componentInteractions:[class extends Mi{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&qa(n,r)){let{context:r}=t,i=Object.assign(Object.assign({},Ya(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",i)}}},this.dragging=new Fa(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new Qa(this.dragging,Ii(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},class extends Mi{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,i=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!i),n.delay=e.isTouch?function(e){let{options:t}=e.context,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(t):null},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>{let{context:n}=this.component,r=null,i=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=function(e,t,n){let r=e.dateSpan,i=t.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(lt);let o={};for(let r of n){let n=r(e,t);if(!1===n)return null;n&&Object.assign(o,n)}return o.range={start:s[0],end:s[3]},o.allDay=r.allDay,o}(t,e,n.pluginHooks.dateSelectionTransformers)),r&&Ps(r,e.dateProfile,n)||(i=!0,r=null)}r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),i?Xe():$e(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&(Yr(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new Fa(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new Qa(this.dragging,Ii(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}},Za,class extends Mi{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=ai(this.querySegEl(e)),r=this.eventRange=n.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=xr(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingSeg=ai(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new ti(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,i=this.relevantEvents,s=this.hitDragging.initialHit,o=this.eventRange.instance,a=null,l=null,c=!1,d={affectedEvents:i,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){e.componentId===s.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(s,e)||(a=function(e,t,n,r){let i=e.context.dateEnv,s=e.dateSpan.range.start,o=t.dateSpan.range.start,a=hr(s,o,i,e.largeUnit);if(n){if(i.add(r.start,a)<r.end)return{startDelta:a}}else if(i.add(r.end,a)>r.start)return{endDelta:a};return null}(s,e,n.subjectEl.classList.contains("fc-event-resizer-start"),o.range))}a&&(l=$r(i,r.getCurrentData().eventUiBases,a,r),d.mutatedEvents=l,Ns(d,e.dateProfile,r)||(c=!0,a=null,l=null,d.mutatedEvents=null)),l?r.dispatch({type:"SET_EVENT_RESIZE",state:d}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),c?Xe():$e(),t||(a&&qa(s,e)&&(a=null),this.validMutation=a,this.mutatedRelevantEvents=l)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,i=new ti(t,n,r),s=this.relevantEvents,o=this.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:i,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let a=new ti(t,o.defs[n.defId],r?o.instances[r.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:o});let l={oldEvent:i,event:a,relatedEvents:ri(o,t,r),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:s})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},l),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||ft(0),endDelta:this.validMutation.endDelta||ft(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",l)}else t.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new Fa(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new Qa(this.dragging,Ii(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return Oe(e.subjectEl,".fc-event")}}],calendarInteractions:[class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=e=>{e.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel,n=ze(e.origEvent);this.matchesCancel=!!Oe(n,t),this.matchesEvent=!!Oe(n,Za.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,r=t.getCurrentData();if(!n.wasTouchScroll){if(r.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;!n||n&&this.matchesCancel||t.calendarApi.unselect(e)}r.eventSelection&&!this.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new Pa(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}],elementDraggingImpl:Fa,optionRefiners:Xa,listenerRefiners:$a});function tl(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.row].push(t);return n}function nl(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.firstCol].push(t);return n}function rl(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}xe(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygri
198d-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}
198.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');const il=an({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function sl(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class ol extends Gn{render(){let{props:e}=this;return p(oo,Object.assign({}
vendor: 2,539 bytes, line 198
198,e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:il,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class al extends Gn{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,i=pi(r,n.eventTimeFormat||il,t,!0,e.defaultDisplayEventEnd);return p(so,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:bi(e.seg,t),defaultGenerator:ll,timeText:i,isResizing:!1,isDateSelecting:!1}))}}function ll(e){return p(y,null,p("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&p("div",{className:"fc-event-time"},e.timeText),p("div",{className:"fc-event-title"},e.event.title||p(y,null," ")))}class cl extends Gn{constructor(){super(...arguments),this.compileSegs=Gt(dl)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return p(So,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return p(y,null,t.map(t=>{let r=t.eventRange.instance.instanceId;return p("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:n[r]?"hidden":""}},sl(t)?p(al,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},mi(t,e.todayRange))):p(ol,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},mi(t,e.todayRange))))}))}})}}function dl(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const ul=an({week:"narrow"});class hl extends ls{constructor(){super(...arguments),this.rootElRef={current:null},this.state={dayNumberId:We()},this.handleRootEl=e=>{Qn(this.rootElRef,e),Qn(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:i,dateEnv:s}=e,{date:o,dateProfile:a}=t;const l=t.showDayNumber&&function(e,t,n){const{start:r,end:i}=t,s=Ct(i,-1),o=n.getYear(r),a=n.getMonth(r),l=n.getYear(s),c=n.getMonth(s);return!(o===l&&a===c)&&Boolean(e.valueOf()===r.valueOf()||1===n.getDay(e)&&e.valueOf()<i.valueOf())}(o,a.currentRange,s);return p(uo,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
198d-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:fl,date:o,dateProfile:a,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:l,extraRenderProps:t.extraRenderProps},(s,a)=>p("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&p(vo,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:qi(e,o,"week"),date:o,defaultFormat:ul}),!a.isDisabled&&(t.showDayNumber||ho(i)||t.forceDayTop)?p("div",{className:"fc-daygrid-day-top"},p(s,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},qi(e,o)),{id:n.dayNumberId})})):t.showDayNumber?p("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},p("a",{className:"fc-daygrid-day-number"}," ")):void 0,p("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,p("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},p(cl,{allDayDate:o,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),p("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}}function fl(e){return e.dayNumberText||p(y,null," ")}function gl(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function pl(e){return gl(e)+":"+e.lastCol}function ml(e,t,n,r,i,s,o){let a=new yl(t=>{let n=e[t.index].eventRange.instance.instanceId+":"+t.span.start+":"+(t.span.end-1);return i[n]});a.allowReslicing=!0,a.strictOrder=r,!0===t||!0===n?(a.maxCoord=s,a.hiddenConsumes=!0):"number"==typeof t?a.maxStackCnt=t:"number"==typeof n&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let l=[],c=[];for(let t=0;t<e.length;t+=1){let n=e[t],r=pl(n);null!=i[r]?l.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}}):c.push(n)}let d=a.addSegs(l),u=a.toRects(),{singleColPlacements:h,multiColPlacements:f,leftoverMargins:g}=function(e,t,n){let r=function(e,t){let n=[];for(let e=0;e<t;e+=1)n.push([]);for(let t of e)for(let e=t.span.start;e<t.span.end;e+=1)n[e].push(t);return n}(e,n.length),i=[],s=[],o=[];for(let e=0;e<n.length;e+=1){let a=r[e],l=[],c=0,d=0;for(let r of a){let i=t[r.index];l.push({seg:vl(i,e,e+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:r.levelCoord-c}),c=r.levelCoord+r.thickness}let u=[];c=0,d=0;for(let r of a){let i=t[r.index],s=r.span.end-r.span.start>1,o=r.span.start===e;d+=r.levelCoord-c,c=r.levelCoord+r.thickness,s?(d+=r.thickness,o&&u.push({seg:vl(i,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):o&&(u.push({seg:vl(i,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:d}),d=0)}i.push(l),s.push(u),o.push(d)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:o}}(u,e,o),p=[],m=[];for(let e of c){f[e.firstCol].push({seg:e,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1)h[t].push({seg:vl(e,t,t+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<o.length;e+=1)p.push(0);for(let t of d){let n=e[t.index],r=t.span;f[r.start].push({seg:vl(n,r.start,r.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=r.start;e<r.end;e+=1)p[e]+=1,h[e].push({seg:vl(n,e,e+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<o.length;e+=1)m.push(g[e]);return{singleColPlacements:h,multiColPlacements:f,moreCnts:p,moreMarginTops:m}}function vl(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,s=i.range,o=ir(s,{start:r[t].date,end:wt(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:e.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===s.end.valueOf()})}class yl extends cs{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:n}=this,r=e=>!this.forceHidden[us(e)];for(let e=0;e<n.length;e+=1)n[e]=n[e].filter(r);return t}handleInvalidInsertion(e,t,n){const{entriesByLevel:r,forceHidden:i}=this,{touchingEntry:s,touchingLevel:o,touchingLateral:a}=e;if(this.hiddenConsumes&&s){const e=us(s);if(!i[e])if(this.allowReslicing){const e=Object.assign(Object.assign({},s),{span:fs(s.span,t.span)});i[us(e)]=!0,r[o][a]=e,this.splitEntry(s,t,n)}else i[e]=!0,n.push(s)}return super.handleInvalidInsertion(e,t,n)}}class bl extends ls{constructor(){super(...arguments),this.cellElRefs=new Vs,this.frameElRefs=new Vs,this.fgElRefs=new Vs,this.segHarnessRefs=new Vs,this.rootElRef={current:null},this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=e.cells.length,s=nl(e.businessHourSegs,i),o=nl(e.bgEventSegs,i),a=nl(this.getHighlightSegs(),i),l=nl(this.getMirrorSegs(),i),{singleColPlacements:c,multiColPlacements:d,moreCnts:u,moreMarginTops:h}=ml(di(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),f=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return p("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?c[n]:d[n],e.todayRange,f),i=this.renderFgSegs(n,function(e,t){if(!e.length)return[];let n=function(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}(t);return e.map(e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}))}(l[n],d),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1);return p(hl,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:u[n],moreMarginTop:h[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:p(y,null,p(y,null,r),p(y,null,i)),bgContent:p(y,null,this.renderFillSegs(a[n],"highlight"),this.renderFillSegs(s[n],"non-business"),this.renderFillSegs(o[n],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Cn(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,i,s,o){let{context:a}=this,{eventSelection:l}=this.props,{framePositions:c}=this.state,d=1===this.props.cells.length,u=i||s||o,h=[];if(c)for(let e of t){let{seg:t}=e,{instanceId:f}=t.eventRange.instance,g=e.isVisible&&!r[f],m=e.isAbsolute,v="",y="";
vendor: 56,986 bytes, lines 198-199
198m&&(a.isRtl?(y=0,v=c.lefts[t.lastCol]-c.lefts[t.firstCol]):(v=0,y=c.rights[t.firstCol]-c.rights[t.lastCol])),h.push(p("div",{className:"fc-daygrid-event-harness"+(m?" fc-daygrid-event-harness-abs":""),key:gl(t),ref:u?null:this.segHarnessRefs.createRef(pl(t)),style:{visibility:g?"":"hidden",marginTop:m?"":e.marginTop,top:m?e.absoluteTop:"",left:v,right:y}},sl(t)?p(al,Object.assign({seg:t,isDragging:i,isSelected:f===l,defaultDisplayEventEnd:d},mi(t,n))):p(ol,Object.assign({seg:t,isDragging:i,isResizing:s,isDateSelecting:o,isSelected:f===l,defaultDisplayEventEnd:d},mi(t,n)))))}return h}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:i}=this.state,s=[];if(i)for(let o of e){let e=n?{right:0,left:i.lefts[o.lastCol]-i.lefts[o.firstCol]}:{left:0,right:i.rights[o.firstCol]-i.rights[o.lastCol]};s.push(p("div",{key:yi(o.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?p(go,Object.assign({seg:o},mi(o,r))):mo(t)))}return p(y,{},...s)}updateSizing(e){let{props:t,state:n,frameElRefs:r}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map(e=>r.currentMap[e.key]);if(e.length){let t=this.rootElRef.current,r=new rs(t,e,!0,!1);n.framePositions&&n.framePositions.similarTo(r)||this.setState({framePositions:new rs(t,e,!0,!1)})}}const i=this.state.segHeights,s=this.querySegHeights(),o=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},i),s),maxContentHeight:o?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(t=>e[t.key])}}bl.addStateEquality({segHeights:Cn});class El extends ls{constructor(){super(...arguments),this.splitBusinessHourSegs=Gt(tl),this.splitBgEventSegs=Gt(tl),this.splitFgEventSegs=Gt(tl),this.splitDateSelectionSegs=Gt(tl),this.splitEventDrag=Gt(rl),this.splitEventResize=Gt(rl),this.rowRefs=new Vs}render(){let{props:e,context:t}=this,n=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,n),i=this.splitBgEventSegs(e.bgEventSegs,n),s=this.splitFgEventSegs(e.fgEventSegs,n),o=this.splitDateSelectionSegs(e.dateSelectionSegs,n),a=this.splitEventDrag(e.eventDrag,n),l=this.splitEventResize(e.eventResize,n),c=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return p(Rs,{unit:"day"},(t,d)=>p(y,null,e.cells.map((t,u)=>p(bl,{ref:this.rowRefs.createRef(u),key:t.length?t[0].date.toISOString():u,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:d,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:r[u],eventSelection:e.eventSelection,bgEventSegs:i[u].filter(Sl),fgEventSegs:s[u],dateSelectionSegs:o[u],eventDrag:a[u],eventResize:l[u],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new rs(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new rs(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,i=n.leftToIndex(e),s=r.topToIndex(t);if(null!=s&&null!=i){let e=this.props.cells[s][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,i),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(s,i),rect:{left:n.lefts[i],right:n.rights[i],top:r.tops[s],bottom:r.bottoms[s]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date;return{start:n,end:wt(n,1)}}}function Sl(e){return e.eventRange.def.allDay}class Al extends ls{constructor(){super(...arguments),this.elRef={current:null},this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:r}=e,i=!0===n||!0===t;i&&!r&&(i=!1,t=null,n=null);let s=["fc-daygrid-body",i?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return p("div",{ref:this.elRef,className:s.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,p("tbody",{role:"presentation"},p(El,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=function(e,t){let n;t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${Lt(t.currentDate)}-01"]`));n||(n=e.querySelector(`[data-date="${Wt(t.currentDate)}"]`));return n}(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body"),n=t.closest(".fc-scroller"),r=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}class Dl extends Is{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class wl extends ls{constructor(){super(...arguments),this.slicer=new Dl,this.tableRef={current:null}}render(){let{props:e,context:t}=this;return p(Al,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class Cl extends gr{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:i}=this;return Rl({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}}function Rl(e){let t,{dateEnv:n,currentRange:r}=e,{start:i,end:s}=r;if(e.snapToWeek&&(i=n.startOfWeek(i),t=n.startOfWeek(s),t.valueOf()!==s.valueOf()&&(s=Dt(t,1))),e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth(wt(r.end,-1)));s=Dt(s,6-Math.ceil(Rt(e,s)))}return{start:i,end:s}}class xl extends ls{constructor(){super(...arguments),this.headerElRef={current:null}}renderSimpleLayout(e,t){let{props:n,context:r}=this,i=[],s=no(r.options);return e&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),p(er,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},p(io,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,t,n,r){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{props:s,context:o}=this,a=!s.forPrint&&no(o.options),l=!s.forPrint&&ro(o.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:a,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:to}]}),p(er,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},p(i,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}}function _l(e,t){let n=new ks(e.renderRange,t);return new Ms(n,/year|month|week/.test(e.currentRangeUnit))}var Tl=Po({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class extends xl{constructor(){super(...arguments),this.buildDayTableModel=Gt(_l),this.headerRef={current:null},this.tableRef={current:null}}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),i=e.dayHeaders&&p(_s,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt}),s=t=>p(wl,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,s,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,s)}},dateProfileGeneratorClass:Cl},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});xe('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');class kl extends Wi{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?si(e)?["timed","allDay"]:["allDay"]:["timed"]}}const Ml=an({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Il(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return p(Ln.Consumer,null,n=>{if(!e.isLabeled)return p("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,o=null==i.slotLabelFormat?Ml:Array.isArray(i.slotLabelFormat)?an(i.slotLabelFormat[0]):an(i.slotLabelFormat),a={level:0,time:e.time,date:r.toDate(e.date),view:s,text:r.format(e.date,o)};return p(Jn,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:Ol,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},e=>p("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},p(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function Ol(e){return e.text}class Nl extends Gn{render(){return this.props.slatMetas.map(e=>p("tr",{key:e.key},p(Il,Object.assign({},e))))}}const Pl=an({week:"short"});class Hl extends ls{constructor(){super(...arguments),this.allDaySplitter=new kl,this.headerElRef={current:null},this.rootElRef={current:null},this.scrollerElRef={current:null},this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context,{dateProfile:r}=this.props,i=r.renderRange,s=1===xt(i.start,i.end)?qi(this.context,i.start,"week"):{};return n.weekNumbers&&"day"===e?p(vo,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:i.start,defaultFormat:Pl},e=>p("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},p(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))):p("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},p("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return p(Jn,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:Bl,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},t=>p("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==e?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},p(t,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:r,props:i}=this,s=[],o=no(r.options);return e&&s.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(s.push({type:"body",key:"all-day",chunk:{content:t}}),s.push({type:"body",key:"all-day-divider",outerContent:p("tr",{role:"presentation",className:"fc-scrollgrid-section"},p("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),s.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),p(er,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},p(io,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:s}))}renderHScrollLayout(e,t,n,r,i,s,o){let a=this.context.pluginHooks.scrollGridImpl;if(!a)throw new Error("No ScrollGrid implementation");let{context:l,props:c}=this,d=!c.forPrint&&no(l.options),u=!c.forPrint&&ro(l.options),h=[];e&&h.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>p("tr",{role:"presentation"},this.renderHeadAxis("day",e.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>p("tr",{role:"presentation"},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:"cols",content:t}]}),h.push({key:"all-day-divider",type:"body",outerContent:p("tr",{role:"presentation",className:"fc-scrollgrid-section"},p("td",{colSpan:2,className:"fc-timegrid-divider "+l.theme.getClass("tableCellShaded")}))}));let f=l.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(l.options.expandRows),chunks:[{key:"axis",content:e=>p("div",{className:"fc-timegrid-axis-chunk"},p("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,p("tbody",null,p(Nl,{slatMetas:s}))),p("div",{className:"fc-timegrid-now-indicator-container"},p(Rs,{unit:f?"minute":"day"},e=>{let t=f&&o&&o.safeComputeTop(e);return"number"==typeof t?p(lo,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:!0,date:e}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),u&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:to},{key:"cols",content:to}]}),p(er,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:l.viewSpec},p(a,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:i}]}],sections:h}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return!0!==e&&!0!==t||(e=void 0,t=5),{dayMaxEvents:e,dayMaxEventRows:t}}}function Bl(e){return e.text}class jl{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(lr(t.currentRange,e)){let n=Mt(e),r=e.valueOf()-n.valueOf();if(r>=yt(t.slotMinTime)&&r<yt(t.slotMaxTime))return this.computeTimeTop(ft(r))}return null}computeDateTop(e,t){return t||(t=Mt(e)),this.computeTimeTop(ft(e.valueOf()-t.valueOf()))}computeTimeTop(e){let t,n,{positions:r,dateProfile:i}=this,s=r.els.length,o=(e.milliseconds-yt(i.slotMinTime))/yt(this.slotDuration);return o=Math.max(0,o),o=Math.min(s,o),t=Math.floor(o),t=Math.min(t,s-1),n=o-t,r.tops[t]+r.getHeight(t)*n}}class zl extends Gn{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:r}=e;return p("tbody",null,e.slatMetas.map((i,s)=>{let o={time:i.time,date:t.dateEnv.toDate(i.date),view:t.viewApi};return p("tr",{key:i.key,ref:r.createRef(i.key)},e.axis&&p(Il,Object.assign({},i)),p(Jn,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!i.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":i.isoTimeStr},renderProps:o,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))}))}}class Ul extends Gn{constructor(){super(...arguments),this.rootElRef={current:null},this.slatElRefs=new Vs}render(){let{props:e,context:t}=this;return p("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},p("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,p(zl,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;if(t.onCoords&&null!==t.clientWidth){this.rootElRef.current.offsetHeight&&t.onCoords(new jl(new rs(this.rootElRef.current,(n=this.slatElRefs.currentMap,t.slatMetas.map(e=>n[e.key])),!1,!0),this.props.dateProfile,e.options.slotDuration))}var n}}function Wl(e,t){let n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function Ll(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}class Fl extends Gn{render(){let{props:e}=this;return p(So,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>ec(e.hiddenSegs,e),defaultGenerator:Vl,forceTimed:!0},e=>p(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Vl(e){return e.shortText}function Gl(e,t,n){let r=new cs;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);let i=hs(r.addSegs(e)),s=function(e){const{entriesByLevel:t}=e,n=Zl((e,t)=>e+":"+t,(r,i)=>{let s=Ql(function(e,t,n){let{levelCoords:r,entriesByLevel:i}=e,s=i[t][n],o=r[t]+s.thickness,a=r.length,l=t;for(;l<a&&r[l]<o;l+=1);for(;l<a;l+=1){let e,t=i[l],n=ps(t,s.span.start,ds),r=n[0]+n[1],o=r;for(;(e=t[o])&&e.span.start<s.span.end;)o+=1;if(r<o)return{level:l,lateralStart:r,lateralEnd:o}}return null}(e,r,i),n),o=t[r][i];return[Object.assign(Object.assign({},o),{nextLevelNodes:s[0]}),o.thickness+s[1]]});return Ql(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(r);return s=function(e,t){const n=Zl((e,t,n)=>us(e),(e,r,i)=>{let s,{nextLevelNodes:o,thickness:a}=e,l=a+i,c=a/l,d=[];if(o.length)for(let e of o)if(void 0===s){let t=n(e,r,l);s=t[0],d.push(t[1])}else{let t=n(e,s,0);d.push(t[1])}else s=t;let u=(s-r)*c;return[s-u,Object.assign(Object.assign({},e),{thickness:u,nextLevelNodes:d})]});return e.map(e=>n(e,0,0)[1])}(s,1),{segRects:function(e){let t=[];const n=Zl((e,t,n)=>us(e),(e,n,i)=>{let s=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:i,stackForward:0});return t.push(s),s.stackForward=r(e.nextLevelNodes,n+e.thickness,i+1)+1});function r(e,t,r){let i=0;for(let s of e)i=Math.max(n(s,t,r),i);return i}return r(e,0,0),t}(s),hiddenGroups:i}}function Ql(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,s=r,o=[];for(;s<i;)o.push(t(n,s)),s+=1;return o.sort(ql),[o.map(Yl),o[0][1]]}function ql(e,t){return t[1]-e[1]}function Yl(e){return e[0]}function Zl(e,t){const n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function Xl(e,t,n=null,r=0){let i=[];if(n)for(let s=0;s<e.length;s+=1){let o=e[s],a=n.computeDateTop(o.start,t),l=Math.max(a+(r||0),n.computeDateTop(o.end,t));i.push({start:Math.round(a),end:Math.round(l)})}return i}const $l=an({hour:"numeric",minute:"2-digit",meridiem:!1});class Jl extends Gn{render(){return p(oo,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:$l}))}}class Kl extends Gn{constructor(){super(...arguments),this.sortEventSegs=Gt(di)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],s=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},o=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return p(uo,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},t=>p("div",{className:"fc-timegrid-col-frame"},p("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),p("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,s,!1,!1,!1)),p("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(i,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(r),"mirror")),p("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),ho(n)&&p(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,t,n,r,i,s){let{props:o}=this;return o.forPrint?ec(e,o):this.renderPositionedFgSegs(e,t,n,r,i,s)}renderPositionedFgSegs(e,t,n,r,i,s){let{eventMaxStack:o,eventShortHeight:a,eventOrderStrict:l,eventMinHeight:c}=this.context.options,{date:d,slatCoords:u,eventSelection:h,todayRange:f,nowDate:g}=this.props,m=n||r||i,v=Xl(e,d,u,c),{segPlacements:b,hiddenGroups:E}=function(e,t,n,r){let i=[],s=[];for(let n=0;n<e.length;n+=1){let r=t[n];r?i.push({index:n,thickness:1,span:r}):s.push(e[n])}let{segRects:o,hiddenGroups:a}=Gl(i,n,r),l=[];for(let t of o)l.push({seg:e[t.index],rect:t});for(let e of s)l.push({seg:e,rect:null});return{segPlacements:l,hiddenGroups:a}}(e,v,l,o);return p(y,null,this.renderHiddenGroups(E,e),b.map(e=>{let{seg:o,rect:l}=e,c=o.eventRange.instance.instanceId,d=m||Boolean(!t[c]&&l),u=tc(l&&l.span),v=!m&&l?this.computeSegHStyle(l):{left:0,right:0},y=Boolean(l)&&l.stackForward>0,b=Boolean(l)&&l.span.end-l.span.start<a;return p("div",{className:"fc-timegrid-event-harness"+(y?" fc-timegrid-event-harness-inset":""),key:s||c,style:Object.assign(Object.assign({visibility:d?"":"hidden"},u),v)},p(Jl,Object.assign({seg:o,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:c===h,isShort:b},mi(o,f,g))))}))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:s,eventSelection:o,eventDrag:a,eventResize:l}=this.props;return p(y,null,e.map(e=>{let c=tc(e.span),d=(u=e.entries,h=t,u.map(e=>h[e.index]));var u,h;return p(Fl,{key:Ut(wo(d)),hiddenSegs:d,top:c.top,bottom:c.bottom,extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:s,eventSelection:o,eventDrag:a,eventResize:l})}))}renderFillSegs(e,t){let{props:n,context:r}=this,i=Xl(e,n.date,n.slatCoords,r.options.eventMinHeight).map((r,i)=>{let s=e[i];return p("div",{key:yi(s.eventRange),className:"fc-timegrid-bg-harness",style:tc(r)},"bg-event"===t?p(go,Object.assign({seg:s},mi(s,n.todayRange,n.nowDate))):mo(t))});return p(y,null,i)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map((e,r)=>p(lo,{key:r,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:!1,date:n})):null}computeSegHStyle(e){let t,n,{isRtl:r,options:i}=this.context,s=i.slotEventOverlap,o=e.levelCoord,a=e.levelCoord+e.thickness;s&&(a=Math.min(1,o+2*(a-o))),r?(t=1-a,n=o):(t=o,n=1-a);let l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return s&&!e.stackForward&&(l[r?"marginLeft":"marginRight"]=20),l}}function ec(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let o=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return p(y,null,e.map(e=>{let i=e.eventRange.instance.instanceId;return p("div",{key:i,style:{visibility:o[i]?"hidden":""}},p(Jl,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===r,isShort:!1},mi(e,t,n))))}))}function tc(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}class nc extends Gn{constructor(){super(...arguments),this.splitFgEventSegs=Gt(Wl),this.splitBgEventSegs=Gt(Wl),this.splitBusinessHourSegs=Gt(Wl),this.splitNowIndicatorSegs=Gt(Wl),this.splitDateSelectionSegs=Gt(Wl),this.splitEventDrag=Gt(Ll),this.splitEventResize=Gt(Ll),this.rootElRef={current:null},this.cellElRefs=new Vs}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,i=this.splitFgEventSegs(e.fgEventSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),o=this.splitBusinessHourSegs(e.businessHourSegs,r),a=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),l=this.splitDateSelectionSegs(e.dateSelectionSegs,r),c=this.splitEventDrag(e.eventDrag,r),d=this.splitEventResize(e.eventResize,r);return p("div",{className:"fc-timegrid-cols",ref:this.rootElRef},p("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,p("tbody",{role:"presentation"},p("tr",{role:"row"},e.axis&&p("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},p("div",{className:"fc-timegrid-col-frame"},p("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&p(lo,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map((t,n)=>p(Kl,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:i[n],bgEventSegs:s[n],businessHourSegs:o[n],nowIndicatorSegs:a[n],dateSelectionSegs:l[n],eventDrag:c[n],eventResize:d[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;var t;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new rs(this.rootElRef.current,(t=this.cellElRefs.currentMap,e.cells.map(e=>t[e.key])),!0,!1))}}class rc extends ls{constructor(){super(...arguments),this.processSlotOptions=Gt(ic),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let r=n.computeTimeTop(e.time);r=Math.ceil(r),r&&(r+=1),t(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return p("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p(Ul,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),p(nc,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:r}=this.context,{colCoords:i}=this,{dateProfile:s}=this.props,{slatCoords:o}=this.state,{snapDuration:a,snapsPerSlot:l}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),c=i.leftToIndex(e),d=o.positions.topToIndex(t);if(null!=c&&null!=d){let e=this.props.cells[c],r=o.positions.tops[d],u=o.positions.getHeight(d),h=(t-r)/u,f=d*l+Math.floor(h*l),g=this.props.cells[c].date,p=pt(s.slotMinTime,mt(a,f)),m=n.add(g,p),v=n.add(m,a);return{dateProfile:s,dateSpan:Object.assign({range:{start:m,end:v},allDay:!1},e.extraDateSpan),dayEl:i.els[c],rect:{left:i.lefts[c],right:i.rights[c],top:r,bottom:r+u},layer:0}}return null}}function ic(e,t){let n=t||e,r=bt(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class sc extends Is{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let i=ir(e,t[r]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n}}class oc extends ls{constructor(){super(...arguments),this.buildDayRanges=Gt(ac),this.slicer=new sc,this.timeColsRef={current:null}}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:r}=e,{nowIndicator:i,nextDayThreshold:s}=t.options,o=this.buildDayRanges(r,n,t.dateEnv);return p(Rs,{unit:i?"minute":"day"},(a,l)=>p(rc,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,o),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:a,nowIndicatorSegs:i&&this.slicer.sliceNowDate(a,n,s,t,o),todayRange:l,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function ac(e,t,n){let r=[];for(let i of e.headerDates)r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)});return r}const lc=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function cc(e,t,n,r,i){let s=new Date(0),o=e,a=ft(0),l=n||function(e){let t,n,r;for(t=lc.length-1;t>=0;t-=1)if(n=ft(lc[t]),r=bt(n,e),null!==r&&r>1)return n;return e}(r),c=[];for(;yt(o)<yt(t);){let e=i.add(s,o),t=null!==bt(a,l);c.push({date:e,time:o,key:e.toISOString(),isoTimeStr:Ft(e),isLabeled:t}),o=pt(o,r),a=pt(a,r)}return c}function dc(e,t){let n=new ks(e.renderRange,t);return new Ms(n,!1)}var uc=Po({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class extends Hl{constructor(){super(...arguments),this.buildTimeColsModel=Gt(dc),this.buildSlatMetas=Gt(cc)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:r}=this,{dateProfile:i}=r,s=this.buildTimeColsModel(i,n),o=this.allDaySplitter.splitProps(r),a=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:l}=e,c=!l,d=l,u=e.dayHeaders&&p(_s,{dates:s.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),h=!1!==e.allDaySlot&&(t=>p(wl,Object.assign({},o.allDay,{dateProfile:i,dayTableModel:s,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),f=t=>p(oc,Object.assign({},o.timed,{dayTableModel:s,dateProfile:i,axis:c,slotDuration:e.slotDuration,slatMetas:a,forPrint:r.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return d?this.renderHScrollLayout(u,h,f,s.colCnt,l,a,this.state.slatCoords):this.renderSimpleLayout(u,h,f)}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});class hc extends Gn{constructor(){super(...arguments),this.state={textId:We()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:r}=this.context,{cellId:i,dayDate:s,todayRange:o}=this.props,{textId:a}=this.state,l=Fi(s,o),c=n.listDayFormat?t.format(s,n.listDayFormat):"",d=n.listDaySideFormat?t.format(s,n.listDaySideFormat):"",u=Object.assign({date:t.toDate(s),view:r,textId:a,text:c,sideText:d,navLinkAttrs:qi(this.context,s),sideNavLinkAttrs:qi(this.context,s,"day",!1)},l);return p(Jn,{elTag:"tr",elClasses:["fc-list-day",...Vi(l,e)],elAttrs:{"data-date":Wt(s)},renderProps:u,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:fc,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},t=>p("th",{scope:"colgroup",colSpan:3,id:i,"aria-labelledby":a},p(t,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function fc(e){return p(y,null,e.text&&p("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&p("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const gc=an({hour:"numeric",minute:"2-digit",meridiem:"short"});class pc extends Gn{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r,timeHeaderId:i,eventHeaderId:s,dateHeaderId:o}=e,a=n.eventTimeFormat||gc;return p(so,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>function(e,t){let n=bi(e,t);return p("a",Object.assign({},n),e.eventRange.def.title)}(r,t),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),(e,n)=>p(y,null,function(e,t,n,r,i){let{options:s}=n;if(!1!==s.displayEventTime){let o,a=e.eventRange.def,l=e.eventRange.instance,c=!1;if(a.allDay?c=!0:ur(e.eventRange.range)?e.isStart?o=pi(e,t,n,null,null,l.range.start,e.end):e.isEnd?o=pi(e,t,n,null,null,e.start,l.range.end):c=!0:o=pi(e,t,n),c){let e={text:n.options.allDayText,view:n.viewApi};return p(Jn,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:e,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:mc,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return p("td",{className:"fc-list-event-time"},o)}return null}(r,a,t,i,o),p("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},p("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),p(e,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${s} ${o}`}})))}}function mc(e){return e.text}function vc(e){return e.text}function yc(e){let t=Mt(e.renderRange.start),n=e.renderRange.end,r=[],i=[];for(;t<n;)r.push(t),i.push({start:t,end:wt(t,1)}),t=wt(t,1);return{dayDates:r,dayRanges:i}}xe(':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}');function bc(e){return!1===e?null:an(e)}var Ec=Po({name:"@fullcalendar/list",optionRefiners:{listDayFormat:bc,listDaySideFormat:bc,noEventsClassNames:yn,noEventsContent:yn,noEventsDidMount:yn,noEventsWillUnmount:yn},views:{list:{component:class extends ls{constructor(){super(...arguments),this.computeDateVars=Gt(yc),this.eventStoreToSegs=Gt(this._eventStoreToSegs),this.state={timeHeaderId:We(),eventHeaderId:We(),dateHeaderIdRoot:We()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:n,dayRanges:r}=this.computeDateVars(e.dateProfile),i=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return p(er,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),!1!==t.options.stickyHeaderDates?"fc-list-sticky":""],viewSpec:t.viewSpec},p(Fs,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},i.length>0?this.renderSegList(i,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return p(Jn,{elTag:"div",elClasses:["fc-list-empty"],renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:vc,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},e=>p(e,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,t){let{theme:n,options:r}=this.context,{timeHeaderId:i,eventHeaderId:s,dateHeaderIdRoot:o}=this.state,a=function(e){let t,n,r=[];for(t=0;t<e.length;t+=1)n=e[t],(r[n.dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return p(Rs,{unit:"day"},(e,l)=>{let c=[];for(let n=0;n<a.length;n+=1){let d=a[n];if(d){let a=Wt(t[n]),u=o+"-"+a;c.push(p(hc,{key:a,cellId:u,dayDate:t[n],todayRange:l})),d=di(d,r.eventOrder);for(let t of d)c.push(p(pc,Object.assign({key:a+":"+t.eventRange.instance.instanceId,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:i,eventHeaderId:s,dateHeaderId:u},mi(t,l,e))))}}return p("table",{className:"fc-list-table "+n.getClass("table")},p("thead",null,p("tr",null,p("th",{scope:"col",id:i},r.timeHint),p("th",{scope:"col","aria-hidden":!0}),p("th",{scope:"col",id:s},r.eventHint))),p("tbody",null,c))})}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(ii(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let n,r,i,{dateEnv:s}=this.context,{nextDayThreshold:o}=this.context.options,a=e.range,l=e.def.allDay,c=[];for(n=0;n<t.length;n+=1)if(r=ir(a,t[n]),r&&(i={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===a.end.valueOf(),dayIndex:n},c.push(i),!i.isEnd&&!l&&n+1<t.length&&a.end<s.add(t[n+1].start,o))){i.end=a.end,i.isEnd=!0;break}return c}},buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});class Sc extends ls{constructor(){super(...arguments),this.buildDayTableModel=Gt(_l),this.slicer=new Dl,this.state={labelId:We()}}render(){const{props:e,state:t,context:n}=this,{dateProfile:r,forPrint:i}=e,{options:s}=n,o=this.buildDayTableModel(r,n.dateProfileGenerator),a=this.slicer.sliceProps(e,r,s.nextDayThreshold,n,o),l=null!=e.tableWidth?e.tableWidth/s.aspectRatio:null,c=o.cells.length,d=null!=l?l/c:null;return p("div",{ref:e.elRef,"data-date":e.isoDateStr,className:"fc-multimonth-month",style:{width:e.width},role:"grid","aria-labelledby":t.labelId},p("div",{className:"fc-multimonth-header",style:{marginBottom:d},role:"presentation"},p("div",{className:"fc-multimonth-title",id:t.labelId},n.dateEnv.format(e.dateProfile.currentRange.start,e.titleFormat)),p("table",{className:["fc-multimonth-header-table",n.theme.getClass("table")].join(" "),role:"presentation"},p("thead",{role:"rowgroup"},p(_s,{dateProfile:e.dateProfile,dates:o.headerDates,datesRepDistinctDays:!1})))),p("div",{className:["fc-multimonth-daygrid","fc-daygrid","fc-daygrid-body",!i&&"fc-daygrid-body-balanced",i&&"fc-daygrid-body-unbalanced",i&&"fc-daygrid-body-natural"].join(" "),style:{marginTop:-d}},p("table",{className:["fc-multimonth-daygrid-table",n.theme.getClass("table")].join(" "),style:{height:i?"":l},role:"presentation"},p("tbody",{role:"rowgroup"},p(El,Object.assign({},a,{dateProfile:r,cells:o.cells,eventSelection:e.eventSelection,dayMaxEvents:!i,dayMaxEventRows:!i,showWeekNumbers:s.weekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:i}))))))}}const Ac=ft(1,"month");function Dc(e,t,n,r,i){const{start:s,end:o}=t.currentRange;let a=s;const l=[];for(;a.valueOf()<o.valueOf();){const s=n.add(a,Ac),o={start:e.skipHiddenDays(a),end:e.skipHiddenDays(s,-1,!0)};let c=Rl({currentRange:o,snapToWeek:!0,fixedWeekCount:r,dateEnv:n});c={start:e.skipHiddenDays(c.start),end:e.skipHiddenDays(c.end,-1,!0)};const d=t.activeRange?ir(t.activeRange,i?c:o):null;l.push({currentDate:t.currentDate,isValid:t.isValid,validRange:t.validRange,renderRange:c,activeRange:d,currentRange:o,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:t.dateIncrement,slotMinTime:t.slotMaxTime,slotMaxTime:t.slotMinTime}),a=s}return l}const wc=an({year:"numeric",month:"long"}),Cc=an({month:"long"});function Rc(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?wc:Cc)}const xc={multiMonthTitleFormat:an,multiMonthMaxColumns:Number,multiMonthMinWidth:Number};xe(".fc .fc-multimonth{border:1px solid var(--fc-border-color);display:flex;flex-wrap:wrap;overflow-x:hidden;overflow-y:auto}.fc .fc-multimonth-title{font-size:1.2em;font-weight:700;padding:1em 0;text-align:center}.fc .fc-multimonth-daygrid{background:var(--fc-page-bg-color)}.fc .fc-multimonth-daygrid-table,.fc .fc-multimonth-header-table{table-layout:fixed;width:100%}.fc .fc-multimonth-daygrid-table{border-top-style:hidden!important}.fc .fc-multimonth-singlecol .fc-multimonth{position:relative}.fc .fc-multimonth-singlecol .fc-multimonth-header{background:var(--fc-page-bg-color);position:relative;top:0;z-index:2}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid{position:relative;z-index:1}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid-table,.fc .fc-multimonth-singlecol .fc-multimonth-header-table{border-left-style:hidden;border-right-style:hidden}.fc .fc-multimonth-singlecol .fc-multimonth-month:last-child .fc-multimonth-daygrid-table{border-bottom-style:hidden}.fc .fc-multimonth-multicol{line-height:1}.fc .fc-multimonth-multicol .fc-multimonth-month{padding:0 1.2em 1.2em}.fc .fc-multimonth-multicol .fc-daygrid-more-link{border:1px solid var(--fc-event-border-color);display:block;float:none;padding:1px}.fc .fc-multimonth-compact{line-height:1}.fc .fc-multimonth-compact .fc-multimonth-daygrid-table,.fc .fc-multimonth-compact .fc-multimonth-header-table{font-size:.9em}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-header{position:sticky}.fc-media-print .fc-multimonth{overflow:visible}");var _c=Po({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:xc,views:{multiMonth:{component:class extends ls{constructor(){super(...arguments),this.splitDateProfileByMonth=Gt(Dc),this.buildMonthFormat=Gt(Rc),this.scrollElRef={current:null},this.firstMonthElRef={current:null},this.needsScrollReset=!1,this.handleSizing=e=>{e&&this.updateSize()}}render(){const{context:e,props:t,state:n}=this,{options:r}=e,{clientWidth:i,clientHeight:s}=n,o=n.monthHPadding||0,a=Math.min(null!=i?Math.floor(i/(r.multiMonthMinWidth+o)):1,r.multiMonthMaxColumns)||1,l=100/a+"%",c=null==i?null:i/a-o,d=null!=i&&1===a,u=this.splitDateProfileByMonth(e.dateProfileGenerator,t.dateProfile,e.dateEnv,!d&&r.fixedWeekCount,r.showNonCurrentDates),h=this.buildMonthFormat(r.multiMonthTitleFormat,u),f=["fc-multimonth",d?"fc-multimonth-singlecol":"fc-multimonth-multicol",null!=c&&c<400?"fc-multimonth-compact":""];return p(er,{elRef:this.scrollElRef,elClasses:f,viewSpec:e.viewSpec},u.map((e,n)=>{const r=Lt(e.currentRange.start);return p(Sc,Object.assign({},t,{key:r,isoDateStr:r,elRef:0===n?this.firstMonthElRef:void 0,titleFormat:h,dateProfile:e,width:l,tableWidth:c,clientWidth:i,clientHeight:s}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(e){Cn(e,this.props)||this.handleSizing(!1),e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){const e=this.scrollElRef.current,t=this.firstMonthElRef.current;e&&this.setState({clientWidth:e.clientWidth,clientHeight:e.clientHeight}),t&&e&&null==this.state.monthHPadding&&this.setState({monthHPadding:e.clientWidth-t.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&null!=this.state.monthHPadding){const{currentDate:e}=this.props.dateProfile,t=this.scrollElRef.current,n=t.querySelector(`[data-date="${Lt(e)}"]`);t.scrollTop=n.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}},dateProfileGeneratorClass:Cl,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}});return ca.push(el,Tl,uc,Ec,_c),e.Calendar=class extends Ni{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;jn(()=>{U(p(ki,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(t,n,r,i)=>(this.setClassNames(t),this.setHeight(n),p($n.Provider,{value:this.customContentRenderId},p(_a,Object.assign({isHeightAuto:r,forPrint:i},e))))),this.el)})}else this.isRendered&&(this.isRendered=!1,U(null,this.el),this.setClassNames([]),this.setHeight(""))},function(e){e.isConnected&&_e(e.getRootNode())}(e),this.el=e,this.renderRunner=new Me(this.handleRenderRequest),new ha({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){jn(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!St(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){je(this.el,"height",e)}},e.Draggable=class{constructor(e,t={}){this.handlePointerDown=e=>{let{dragging:t}=this,{minDistance:n,longPressDelay:r}=this.settings;t.minDistance=null!=n?n:e.isTouch?0:cn.eventDragMinDistance,t.delay=e.isTouch?null!=r?r:cn.longPressDelay:0},this.handleDragStart=e=>{e.isTouch&&this.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&this.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=t;let n=this.dragging=new Fa(e);n.touchScrollAllowed=!1,null!=t.itemSelector&&(n.pointer.selector=t.itemSelector),null!=t.appendTo&&(n.mirror.parentNode=t.appendTo),n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragstart",this.handleDragStart),new Ja(n,t.eventData)}destroy(){this.dragging.destroy()}},e.Internal=xo,e.JsonRequestError=Ri,e.Preact=_o,e.ThirdPartyDraggable=class{constructor(e,t){let n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};let r=this.dragging=new Ka(n);"string"==typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new Ja(r,t.eventData)}destroy(){this.dragging.destroy()}},e.createPlugin=Po,e.formatDate=function(e,t={}){let n=Ma(t),r=an(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""},e.formatRange=function(e,t,n){let r=Ma("object"==typeof n&&n?n:{}),i=an(n),s=r.createMarkerMeta(e),o=r.createMarkerMeta(t);return s&&o?r.formatRange(s.marker,o.marker,i,{forcedStartTzo:s.forcedTzo,forcedEndTzo:o.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:cn.defaultRangeSeparator}):""},e.globalLocales=To,e.globalPlugins=ca,e.sliceEvents=function(e,t){return ii(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg},e.version="6.1.9",Object.defineProperty(e,"__esModule",{value:!0}),e}({})
199;
vendor: 30,559 bytes, line 199
199/*! tooltipster v4.2.8 */!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){function b(a){this.$container,this.constraints=null,this.__$tooltip,this.__init(a)}function c(b,c){var d=!0;return a.each(b,function(a,e){return void 0===c[a]||b[a]!==c[a]?(d=!1,!1):void 0}),d}function d(b){var c=b.attr("id"),d=c?h.window.document.getElementById(c):null;return d?d===b[0]:a.contains(h.window.document.body,b[0])}function e(){if(!g)return!1;var a=g.document.body||g.document.documentElement,b=a.style,c="transition",d=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof b[c])return!0;c=c.charAt(0).toUpperCase()+c.substr(1);for(var e=0;e<d.length;e++)if("string"==typeof b[d[e]+c])return!0;return!1}var f={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},g="undefined"!=typeof window?window:null,h={hasTouchCapability:!(!g||!("ontouchstart"in g||g.DocumentTouch&&g.document instanceof g.DocumentTouch||g.navigator.maxTouchPoints)),hasTransitions:e(),IE:!1,semVer:"4.2.8",window:g},i=function(){this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__instancesLatestArr=[],this.__plugins={},this._env=h};i.prototype={__bridge:function(b,c,d){if(!c[d]){var e=function(){};e.prototype=b;var g=new e;g.__init&&g.__init(c),a.each(b,function(a,b){0!=a.indexOf("__")&&(c[a]?f.debug&&console.log("The "+a+" method of the "+d+" plugin conflicts with another plugin or native methods"):(c[a]=function(){return g[a].apply(g,Array.prototype.slice.apply(arguments))},c[a].bridged=g))}),c[d]=g}return this},__setWindow:function(a){return h.window=a,this},_getRuler:function(a){return new b(a)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(b){var c=this;if("string"==typeof b){var d=b,e=null;return d.indexOf(".")>0?e=c.__plugins[d]:a.each(c.__plugins,function(a,b){return b.name.substring(b.name.length-d.length-1)=="."+d?(e=b,!1):void 0}),e}if(b.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return c.__plugins[b.name]=b,b.core&&c.__bridge(b.core,c,b.name),this},_trigger:function(){var a=Array.prototype.slice.apply(arguments);return"string"==typeof a[0]&&(a[0]={type:a[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,a),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,a),this},instances:function(b){var c=[],d=b||".tooltipstered";return a(d).each(function(){var b=a(this),d=b.data("tooltipster-ns");d&&a.each(d,function(a,d){c.push(b.data(d))})}),c},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(b){var c=b?b+" ":"";return a(c+".tooltipstered").toArray()},setDefaults:function(b){return a.extend(f,b),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.tooltipster=new i,a.Tooltipster=function(b,c){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(b,c)},a.Tooltipster.prototype={__init:function(b,c){var d=this;if(d._$origin=a(b),d.__options=a.extend(!0,{},f,c),d.__optionsFormat(),!h.IE||h.IE>=d.__options.IEmin){var e=null;if(void 0===d._$origin.data("tooltipster-initialTitle")&&(e=d._$origin.attr("title"),void 0===e&&(e=null),d._$origin.data("tooltipster-initialTitle",e)),null!==d.__options.content)d.__contentSet(d.__options.content);else{var g,i=d._$origin.attr("data-tooltip-content");i&&(g=a(i)),g&&g[0]?d.__contentSet(g.first()):d.__contentSet(e)}d._$origin.removeAttr("title").addClass("tooltipstered"),d.__prepareOrigin(),d.__prepareGC(),a.each(d.__options.plugins,function(a,b){d._plug(b)}),h.hasTouchCapability&&a(h.window.document.body).on("touchmove."+d.__namespace+"-triggerOpen",function(a){d._touchRecordEvent(a)}),d._on("created",function(){d.__prepareTooltip()})._on("repositioned",function(a){d.__lastPosition=a.position})}else d.__options.disabled=!0},__contentInsert:function(){var a=this,b=a._$tooltip.find(".tooltipster-content"),c=a.__Content,d=function(a){c=a};return a._trigger({type:"format",content:a.__Content,format:d}),a.__options.functionFormat&&(c=a.__options.functionFormat.call(a,a,{origin:a._$origin[0]},a.__Content)),"string"!=typeof c||a.__options.contentAsHTML?b.empty().append(c):b.text(c),a},__contentSet:function(b){return b instanceof a&&this.__options.contentCloning&&(b=b.clone(!0)),this.__Content=b,this._trigger({type:"updated",content:b}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var b=this,c=b._$origin,d=b._$origin.is("area");if(d){var e=b._$origin.parent().attr("name");c=a('img[usemap="#'+e+'"]')}var f=c[0].getBoundingClientRect(),g=a(h.window.document),i=a(h.window),j=c,k={available:{document:null,window:null},document:{size:{height:g.height(),width:g.width()}},window:{scroll:{left:h.window.scrollX||h.window.document.documentElement.scrollLeft,top:h.window.scrollY||h.window.document.documentElement.scrollTop},size:{height:i.height(),width:i.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:d?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(d){var l=b._$origin.attr("shape"),m=b._$origin.attr("coords");if(m&&(m=m.split(","),a.map(m,function(a,b){m[b]=parseInt(a)})),"default"!=l)switch(l){case"circle":var n=m[0],o=m[1],p=m[2],q=o-p,r=n-p;k.origin.size.height=2*p,k.origin.size.width=k.origin.size.height,k.origin.windowOffset.left+=r,k.origin.windowOffset.top+=q;break;case"rect":var s=m[0],t=m[1],u=m[2],v=m[3];k.origin.size.height=v-t,k.origin.size.width=u-s,k.origin.windowOffset.left+=s,k.origin.windowOffset.top+=t;break;case"poly":for(var w=0,x=0,y=0,z=0,A="even",B=0;B<m.length;B++){var C=m[B];"even"==A?(C>y&&(y=C,0===B&&(w=y)),w>C&&(w=C),A="odd"):(C>z&&(z=C,1==B&&(x=z)),x>C&&(x=C),A="even")}k.origin.size.height=z-x,k.origin.size.width=y-w,k.origin.windowOffset.left+=w,k.origin.windowOffset.top+=x}}var D=function(a){k.origin.size.height=a.height,k.origin.windowOffset.left=a.left,k.origin.windowOffset.top=a.top,k.origin.size.width=a.width};for(b._trigger({type:"geometry",edit:D,geometry:{height:k.origin.size.height,left:k.origin.windowOffset.left,top:k.origin.windowOffset.top,width:k.origin.size.width}}),k.origin.windowOffset.right=k.origin.windowOffset.left+k.origin.size.width,k.origin.windowOffset.bottom=k.origin.windowOffset.top+k.origin.size.height,k.origin.offset.left=k.origin.windowOffset.left+k.window.scroll.left,k.origin.offset.top=k.origin.windowOffset.top+k.window.scroll.top,k.origin.offset.bottom=k.origin.offset.top+k.origin.size.height,k.origin.offset.right=k.origin.offset.left+k.origin.size.width,k.available.document={bottom:{height:k.document.size.height-k.origin.offset.bottom,width:k.document.size.width},left:{height:k.document.size.height,width:k.origin.offset.left},right:{height:k.document.size.height,width:k.document.size.width-k.origin.offset.right},top:{height:k.origin.offset.top,width:k.document.size.width}},k.available.window={bottom:{height:Math.max(k.window.size.height-Math.max(k.origin.windowOffset.bottom,0),0),width:k.window.size.width},left:{height:k.window.size.height,width:Math.max(k.origin.windowOffset.left,0)},right:{height:k.window.size.height,width:Math.max(k.window.size.width-Math.max(k.origin.windowOffset.right,0),0)},top:{height:Math.max(k.origin.windowOffset.top,0),width:k.window.size.width}};"html"!=j[0].tagName.toLowerCase();){if("fixed"==j.css("position")){k.origin.fixedLineage=!0;break}j=j.parent()}return k},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=a(h.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=a(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var b=this;return b.__options.selfDestruction?b.__garbageCollector=setInterval(function(){var c=(new Date).getTime();b.__touchEvents=a.grep(b.__touchEvents,function(a,b){return c-a.time>6e4}),d(b._$origin)||b.close(function(){b.destroy()})},2e4):clearInterval(b.__garbageCollector),b},__prepareOrigin:function(){var a=this;if(a._$origin.off("."+a.__namespace+"-triggerOpen"),h.hasTouchCapability&&a._$origin.on("touchstart."+a.__namespace+"-triggerOpen touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen",function(b){a._touchRecordEvent(b)}),a.__options.triggerOpen.click||a.__options.triggerOpen.tap&&h.hasTouchCapability){var b="";a.__options.triggerOpen.click&&(b+="click."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.tap&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&a._open(b)})}if(a.__options.triggerOpen.mouseenter||a.__options.triggerOpen.touchstart&&h.hasTouchCapability){var b="";a.__options.triggerOpen.mouseenter&&(b+="mouseenter."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.touchstart&&h.hasTouchCapability&&(b+="touchstart."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){!a._touchIsTouchEvent(b)&&a._touchIsEmulatedEvent(b)||(a.__pointerIsOverOrigin=!0,a._openShortly(b))})}if(a.__options.triggerClose.mouseleave||a.__options.triggerClose.touchleave&&h.hasTouchCapability){var b="";a.__options.triggerClose.mouseleave&&(b+="mouseleave."+a.__namespace+"-triggerOpen "),a.__options.triggerClose.touchleave&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&(a.__pointerIsOverOrigin=!1)})}return a},__prepareTooltip:function(){var b=this,c=b.__options.interactive?"auto":"";return b._$tooltip.attr("id",b.__namespace).css({"pointer-events":c,zIndex:b.__options.zIndex}),a.each(b.__previousThemes,function(a,c){b._$tooltip.removeClass(c)}),a.each(b.__options.theme,function(a,c){b._$tooltip.addClass(c)}),b.__previousThemes=a.merge([],b.__options.theme),b},__scrollHandler:function(b){var c=this;if(c.__options.triggerClose.scroll)c._close(b);else if(d(c._$origin)&&d(c._$tooltip)){var e=null;if(b.target===h.window.document)c.__Geometry.origin.fixedLineage||c.__options.repositionOnScroll&&c.reposition(b);else{e=c.__geometry();var f=!1;if("fixed"!=c._$origin.css("position")&&c.__$originParents.each(function(b,c){var d=a(c),g=d.css("overflow-x"),h=d.css("overflow-y");if("visible"!=g||"visible"!=h){var i=c.getBoundingClientRect();if("visible"!=g&&(e.origin.windowOffset.left<i.left||e.origin.windowOffset.right>i.right))return f=!0,!1;if("visible"!=h&&(e.origin.windowOffset.top<i.top||e.origin.windowOffset.bottom>i.bottom))return f=!0,!1}return"fixed"==d.css("position")?!1:void 0}),f)c._$tooltip.css("visibility","hidden");else if(c._$tooltip.css("visibility","visible"),c.__options.repositionOnScroll)c.reposition(b);else{var g=e.origin.offset.left-c.__Geometry.origin.offset.left,i=e.origin.offset.top-c.__Geometry.origin.offset.top;c._$tooltip.css({left:c.__lastPosition.coord.left+g,top:c.__lastPosition.coord.top+i})}}c._trigger({type:"scroll",event:b,geo:e})}return c},__stateSet:function(a){return this.__state=a,this._trigger({type:"state",state:a}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,a.each(this.__timeouts.close,function(a,b){clearTimeout(b)}),this.__timeouts.close=[],this},__trackerStart:function(){var a=this,b=a._$tooltip.find(".tooltipster-content");return a.__options.trackTooltip&&(a.__contentBcr=b[0].getBoundingClientRect()),a.__tracker=setInterval(function(){if(d(a._$origin)&&d(a._$tooltip)){if(a.__options.trackOrigin){var e=a.__geometry(),f=!1;c(e.origin.size,a.__Geometry.origin.size)&&(a.__Geometry.origin.fixedLineage?c(e.origin.windowOffset,a.__Geometry.origin.windowOffset)&&(f=!0):c(e.origin.offset,a.__Geometry.origin.offset)&&(f=!0)),f||(a.__options.triggerClose.mouseleave?a._close():a.reposition())}if(a.__options.trackTooltip){var g=b[0].getBoundingClientRect();g.height===a.__contentBcr.height&&g.width===a.__contentBcr.width||(a.reposition(),a.__contentBcr=g)}}else a._close()},a.__options.trackerInterval),a},_close:function(b,c,d){var e=this,f=!0;if(e._trigger({type:"close",event:b,stop:function(){f=!1}}),f||d){c&&e.__callbacks.close.push(c),e.__callbacks.open=[],e.__timeoutsClear();var g=function(){a.each(e.__callbacks.close,function(a,c){c.call(e,e,{event:b,origin:e._$origin[0]})}),e.__callbacks.close=[]};if("closed"!=e.__state){var i=!0,j=new Date,k=j.getTime(),l=k+e.__options.animationDuration[1];if("disappearing"==e.__state&&l>e.__closingTime&&e.__options.animationDuration[1]>0&&(i=!1),i){e.__closingTime=l,"disappearing"!=e.__state&&e.__stateSet("disappearing");var m=function(){clearInterval(e.__tracker),e._trigger({type:"closing",event:b}),e._$tooltip.off("."+e.__namespace+"-triggerClose").removeClass("tooltipster-dying"),a(h.window).off("."+e.__namespace+"-triggerClose"),e.__$originParents.each(function(b,c){a(c).off("scroll."+e.__namespace+"-triggerClose")}),e.__$originParents=null,a(h.window.document.body).off("."+e.__namespace+"-triggerClose"),e._$origin.off("."+e.__namespace+"-triggerClose"),e._off("dismissable"),e.__stateSet("closed"),e._trigger({type:"after",event:b}),e.__options.functionAfter&&e.__options.functionAfter.call(e,e,{event:b,origin:e._$origin[0]}),g()};h.hasTransitions?(e._$tooltip.css({"-moz-animation-duration":e.__options.animationDuration[1]+"ms","-ms-animation-duration":e.__options.animationDuration[1]+"ms","-o-animation-duration":e.__options.animationDuration[1]+"ms","-webkit-animation-duration":e.__options.animationDuration[1]+"ms","animation-duration":e.__options.animationDuration[1]+"ms","transition-duration":e.__options.animationDuration[1]+"ms"}),e._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),e.__options.animationDuration[1]>0&&e._$tooltip.delay(e.__options.animationDuration[1]),e._$tooltip.queue(m)):e._$tooltip.stop().fadeOut(e.__options.animationDuration[1],m)}}else g()}return e},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(b,c){var e=this;if(!e.__destroying&&d(e._$origin)&&e.__enabled){var f=!0;if("closed"==e.__state&&(e._trigger({type:"before",event:b,stop:function(){f=!1}}),f&&e.__options.functionBefore&&(f=e.__options.functionBefore.call(e,e,{event:b,origin:e._$origin[0]}))),f!==!1&&null!==e.__Content){c&&e.__callbacks.open.push(c),e.__callbacks.close=[],e.__timeoutsClear();var g,i=function(){"stable"!=e.__state&&e.__stateSet("stable"),a.each(e.__callbacks.open,function(a,b){b.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}),e.__callbacks.open=[]};if("closed"!==e.__state)g=0,"disappearing"===e.__state?(e.__stateSet("appearing"),h.hasTransitions?(e._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i)):e._$tooltip.stop().fadeIn(i)):"stable"==e.__state&&i();else{if(e.__stateSet("appearing"),g=e.__options.animationDuration[0],e.__contentInsert(),e.reposition(b,!0),h.hasTransitions?(e._$tooltip.addClass("tooltipster-"+e.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":e.__options.animationDuration[0]+"ms","-ms-animation-duration":e.__options.animationDuration[0]+"ms","-o-animation-duration":e.__options.animationDuration[0]+"ms","-webkit-animation-duration":e.__options.animationDuration[0]+"ms","animation-duration":e.__options.animationDuration[0]+"ms","transition-duration":e.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=e.__state&&(e._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i))},0)):e._$tooltip.css("display","none").fadeIn(e.__options.animationDuration[0],i),e.__trackerStart(),a(h.window).on("resize."+e.__namespace+"-triggerClose",function(b){var c=a(document.activeElement);(c.is("input")||c.is("textarea"))&&a.contains(e._$tooltip[0],c[0])||e.reposition(b)}).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)}),e.__$originParents=e._$origin.parents(),e.__$originParents.each(function(b,c){a(c).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)})}),e.__options.triggerClose.mouseleave||e.__options.triggerClose.touchleave&&h.hasTouchCapability){e._on("dismissable",function(a){a.dismissable?a.delay?(m=setTimeout(function(){e._close(a.event)},a.delay),e.__timeouts.close.push(m)):e._close(a):clearTimeout(m)});var j=e._$origin,k="",l="",m=null;e.__options.interactive&&(j=j.add(e._$tooltip)),e.__options.triggerClose.mouseleave&&(k+="mouseenter."+e.__namespace+"-triggerClose ",l+="mouseleave."+e.__namespace+"-triggerClose "),e.__options.triggerClose.touchleave&&h.hasTouchCapability&&(k+="touchstart."+e.__namespace+"-triggerClose",l+="touchend."+e.__namespace+"-triggerClose touchcancel."+e.__namespace+"-triggerClose"),j.on(l,function(a){if(e._touchIsTouchEvent(a)||!e._touchIsEmulatedEvent(a)){var b="mouseleave"==a.type?e.__options.delay:e.__options.delayTouch;e._trigger({delay:b[1],dismissable:!0,event:a,type:"dismissable"})}}).on(k,function(a){!e._touchIsTouchEvent(a)&&e._touchIsEmulatedEvent(a)||e._trigger({dismissable:!1,event:a,type:"dismissable"})})}e.__options.triggerClose.originClick&&e._$origin.on("click."+e.__namespace+"-triggerClose",function(a){e._touchIsTouchEvent(a)||e._touchIsEmulatedEvent(a)||e._close(a)}),(e.__options.triggerClose.click||e.__options.triggerClose.tap&&h.hasTouchCapability)&&setTimeout(function(){if("closed"!=e.__state){var b="",c=a(h.window.document.body);e.__options.triggerClose.click&&(b+="click."+e.__namespace+"-triggerClose "),e.__options.triggerClose.tap&&h.hasTouchCapability&&(b+="touchend."+e.__namespace+"-triggerClose"),c.on(b,function(b){e._touchIsMeaningfulEvent(b)&&(e._touchRecordEvent(b),e.__options.interactive&&a.contains(e._$tooltip[0],b.target)||e._close(b))}),e.__options.triggerClose.tap&&h.hasTouchCapability&&c.on("touchstart."+e.__namespace+"-triggerClose",function(a){e._touchRecordEvent(a)})}},0),e._trigger("ready"),e.__options.functionReady&&e.__options.functionReady.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}if(e.__options.timer>0){var m=setTimeout(function(){e._close()},e.__options.timer+g);e.__timeouts.close.push(m)}}}return e},_openShortly:function(a){var b=this,c=!0;if("stable"!=b.__state&&"appearing"!=b.__state&&!b.__timeouts.open&&(b._trigger({type:"start",event:a,stop:function(){c=!1}}),c)){var d=0==a.type.indexOf("touch")?b.__options.delayTouch:b.__options.delay;d[0]?b.__timeouts.open=setTimeout(function(){b.__timeouts.open=null,b.__pointerIsOverOrigin&&b._touchIsMeaningfulEvent(a)?(b._trigger("startend"),b._open(a)):b._trigger("startcancel")},d[0]):(b._trigger("startend"),b._open(a))}return b},_optionsExtract:function(b,c){var d=this,e=a.extend(!0,{},c),f=d.__options[b];return f||(f={},a.each(c,function(a,b){var c=d.__options[a];void 0!==c&&(f[a]=c)})),a.each(e,function(b,c){void 0!==f[b]&&("object"!=typeof c||c instanceof Array||null==c||"object"!=typeof f[b]||f[b]instanceof Array||null==f[b]?e[b]=f[b]:a.extend(e[b],f[b]))}),e},_plug:function(b){var c=a.tooltipster._plugin(b);if(!c)throw new Error('The "'+b+'" plugin is not defined');return c.instance&&a.tooltipster.__bridge(c.instance,this,c.name),this},_touchIsEmulatedEvent:function(a){for(var b=!1,c=(new Date).getTime(),d=this.__touchEvents.length-1;d>=0;d--){var e=this.__touchEvents[d];if(!(c-e.time<500))break;e.target===a.target&&(b=!0)}return b},_touchIsMeaningfulEvent:function(a){return this._touchIsTouchEvent(a)&&!this._touchSwiped(a.target)||!this._touchIsTouchEvent(a)&&!this._touchIsEmulatedEvent(a)},_touchIsTouchEvent:function(a){return 0==a.type.indexOf("touch")},_touchRecordEvent:function(a){return this._touchIsTouchEvent(a)&&(a.time=(new Date).getTime(),this.__touchEvents.push(a)),this},_touchSwiped:function(a){for(var b=!1,c=this.__touchEvents.length-1;c>=0;c--){var d=this.__touchEvents[c];if("touchmove"==d.type){b=!0;break}if("touchstart"==d.type&&a===d.target)break}return b},_trigger:function(){var b=Array.prototype.slice.apply(arguments);return"string"==typeof b[0]&&(b[0]={type:b[0]}),b[0].instance=this,b[0].origin=this._$origin?this._$origin[0]:null,b[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,b),a.tooltipster._trigger.apply(a.tooltipster,b),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,b),this},_unplug:function(b){var c=this;if(c[b]){var d=a.tooltipster._plugin(b);d.instance&&a.each(d.instance,function(a,d){c[a]&&c[a].bridged===c[b]&&delete c[a]}),c[b].__destroy&&c[b].__destroy(),delete c[b]}return c},close:function(a){return this.__destroyed?this.__destroyError():this._close(null,a),this},content:function(a){var b=this;if(void 0===a)return b.__Content;if(b.__destroyed)b.__destroyError();else if(b.__contentSet(a),null!==b.__Content){if("closed"!==b.__state&&(b.__contentInsert(),b.reposition(),b.__options.updateAnimation))if(h.hasTransitions){var c=b.__options.updateAnimation;b._$tooltip.addClass("tooltipster-update-"+c),setTimeout(function(){"closed"!=b.__state&&b._$tooltip.removeClass("tooltipster-update-"+c)},1e3)}else b._$tooltip.fadeTo(200,.5,function(){"closed"!=b.__state&&b._$tooltip.fadeTo(200,1)})}else b._close();return b},destroy:function(){var b=this;if(b.__destroyed)b.__destroyError();else{"closed"!=b.__state?b.option("animationDuration",0)._close(null,null,!0):b.__timeoutsClear(),b._trigger("destroy"),b.__destroyed=!0,b._$origin.removeData(b.__namespace).off("."+b.__namespace+"-triggerOpen"),a(h.window.document.body).off("."+b.__namespace+"-triggerOpen");var c=b._$origin.data("tooltipster-ns");if(c)if(1===c.length){var d=null;"previous"==b.__options.restoration?d=b._$origin.data("tooltipster-initialTitle"):"current"==b.__options.restoration&&(d="string"==typeof b.__Content?b.__Content:a("<div></div>").append(b.__Content).html()),d&&b._$origin.attr("title",d),b._$origin.removeClass("tooltipstered"),b._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else c=a.grep(c,function(a,c){return a!==b.__namespace}),b._$origin.data("tooltipster-ns",c);b._trigger("destroyed"),b._off(),b.off(),b.__Content=null,b.__$emitterPrivate=null,b.__$emitterPublic=null,b.__options.parent=null,b._$origin=null,b._$tooltip=null,a.tooltipster.__instancesLatestArr=a.grep(a.tooltipster.__instancesLatestArr,function(a,c){return b!==a}),clearInterval(b.__garbageCollector)}return b},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(a){return this.close(a)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(a){return this.__destroyed?this.__destroyError():this._open(null,a),this},option:function(b,c){return void 0===c?this.__options[b]:(this.__destroyed?this.__destroyError():(this.__options[b]=c,this.__optionsFormat(),a.inArray(b,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===b&&this.__prepareGC()),this)},reposition:function(a,b){var c=this;return c.__destroyed?c.__destroyError():"closed"!=c.__state&&d(c._$origin)&&(b||d(c._$tooltip))&&(b||c._$tooltip.detach(),c.__Geometry=c.__geometry(),c._trigger({type:"reposition",event:a,helper:{geo:c.__Geometry}})),c},show:function(a){return this.open(a)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.fn.tooltipster=function(){var b=Array.prototype.slice.apply(arguments),c="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof b[0]){var d="#*$~&";return this.each(function(){var e=a(this).data("tooltipster-ns"),f=e?a(this).data(e[0]):null;if(!f)throw new Error("You called Tooltipster's \""+b[0]+'" method on an uninitialized element');if("function"!=typeof f[b[0]])throw new Error('Unknown method "'+b[0]+'"');this.length>1&&"content"==b[0]&&(b[1]instanceof a||"object"==typeof b[1]&&null!=b[1]&&b[1].tagName)&&!f.__options.contentCloning&&f.__options.debug&&console.log(c);var g=f[b[0]](b[1],b[2]);return g!==f||"instance"===b[0]?(d=g,!1):void 0}),"#*$~&"!==d?d:this}a.tooltipster.__instancesLatestArr=[];var e=b[0]&&void 0!==b[0].multiple,g=e&&b[0].multiple||!e&&f.multiple,h=b[0]&&void 0!==b[0].content,i=h&&b[0].content||!h&&f.content,j=b[0]&&void 0!==b[0].contentCloning,k=j&&b[0].contentCloning||!j&&f.contentCloning,l=b[0]&&void 0!==b[0].debug,m=l&&b[0].debug||!l&&f.debug;return this.length>1&&(i instanceof a||"object"==typeof i&&null!=i&&i.tagName)&&!k&&m&&console.log(c),this.each(function(){var c=!1,d=a(this),e=d.data("tooltipster-ns"),f=null;e?g?c=!0:m&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):c=!0,c&&(f=new a.Tooltipster(this,b[0]),e||(e=[]),e.push(f.__namespace),d.data("tooltipster-ns",e),d.data(f.__namespace,f),f.__options.functionInit&&f.__options.functionInit.call(f,f,{origin:this}),f._trigger("init")),a.tooltipster.__instancesLatestArr.push(f)}),this},b.prototype={__init:function(b){this.__$tooltip=b,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=a('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(h.window.document.body)},__forceRedraw:function(){var a=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(a)},constrain:function(a,b){return this.constraints={width:a,height:b},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:a}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var a=this.__$tooltip[0].getBoundingClientRect(),b={size:{height:a.height||a.bottom-a.top,width:a.width||a.right-a.left}};if(this.constraints){var c=this.__$tooltip.find(".tooltipster-content"),d=this.__$tooltip.outerHeight(),e=c[0].getBoundingClientRect(),f={height:d<=this.constraints.height,width:a.width<=this.constraints.width&&e.width>=c[0].scrollWidth-1};b.fits=f.height&&f.width}return h.IE&&h.IE<=11&&b.size.width!==h.window.document.documentElement.clientWidth&&(b.size.width=Math.ceil(b.size.width)+1),b}};var j=navigator.userAgent.toLowerCase();-1!=j.indexOf("msie")?h.IE=parseInt(j.split("msie")[1]):-1!==j.toLowerCase().indexOf("trident")&&-1!==j.indexOf(" rv:11")?h.IE=11:-1!=j.toLowerCase().indexOf("edge/")&&(h.IE=parseInt(j.toLowerCase().split("edge/")[1]))
vendor: 3,977 bytes, line 199
199;var k="tooltipster.sideTip";return a.tooltipster._plugin({name:k,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(a){var b=this;b.__instance=a,b.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),b.__previousState="closed",b.__options,b.__optionsFormat(),b.__instance._on("state."+b.__namespace,function(a){"closed"==a.state?b.__close():"appearing"==a.state&&"closed"==b.__previousState&&b.__create(),b.__previousState=a.state}),b.__instance._on("options."+b.__namespace,function(){b.__optionsFormat()}),b.__instance._on("reposition."+b.__namespace,function(a){b.__reposition(a.event,a.helper)})},__close:function(){this.__instance.content()instanceof a&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var b=a('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||b.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&b.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&b.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=b,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var b=this;if(b.__options=b.__instance._optionsExtract(k,b.__defaults()),b.__options.position&&(b.__options.side=b.__options.position),"object"!=typeof b.__options.distance&&(b.__options.distance=[b.__options.distance]),b.__options.distance.length<4&&(void 0===b.__options.distance[1]&&(b.__options.distance[1]=b.__options.distance[0]),void 0===b.__options.distance[2]&&(b.__options.distance[2]=b.__options.distance[0]),void 0===b.__options.distance[3]&&(b.__options.distance[3]=b.__options.distance[1])),b.__options.distance={top:b.__options.distance[0],right:b.__options.distance[1],bottom:b.__options.distance[2],left:b.__options.distance[3]},"string"==typeof b.__options.side){var c={top:"bottom",right:"left",bottom:"top",left:"right"};b.__options.side=[b.__options.side,c[b.__options.side]],"left"==b.__options.side[0]||"right"==b.__options.side[0]?b.__options.side.push("top","bottom"):b.__options.side.push("right","left")}6===a.tooltipster._env.IE&&b.__options.arrow!==!0&&(b.__options.arrow=!1)},__reposition:function(b,c){var d,e=this,f=e.__targetFind(c),g=[];e.__instance._$tooltip.detach();var h=e.__instance._$tooltip.clone(),i=a.tooltipster._getRuler(h),j=!1,k=e.__instance.option("animation");switch(k&&h.removeClass("tooltipster-"+k),a.each(["window","document"],function(d,k){var l=null;if(e.__instance._trigger({container:k,helper:c,satisfied:j,takeTest:function(a){l=a},results:g,type:"positionTest"}),1==l||0!=l&&0==j&&("window"!=k||e.__options.viewportAware))for(var d=0;d<e.__options.side.length;d++){var m={horizontal:0,vertical:0},n=e.__options.side[d];"top"==n||"bottom"==n?m.vertical=e.__options.distance[n]:m.horizontal=e.__options.distance[n],e.__sideChange(h,n),a.each(["natural","constrained"],function(a,d){if(l=null,e.__instance._trigger({container:k,event:b,helper:c,mode:d,results:g,satisfied:j,side:n,takeTest:function(a){l=a},type:"positionTest"}),1==l||0!=l&&0==j){var h={container:k,distance:m,fits:null,mode:d,outerSize:null,side:n,size:null,target:f[n],whole:null},o="natural"==d?i.free():i.constrain(c.geo.available[k][n].width-m.horizontal,c.geo.available[k][n].height-m.vertical),p=o.measure();if(h.size=p.size,h.outerSize={height:p.size.height+m.vertical,width:p.size.width+m.horizontal},"natural"==d?c.geo.available[k][n].width>=h.outerSize.width&&c.geo.available[k][n].height>
199=h.outerSize.height?h.fits=!0:h.fits=!1:h.fits=p.fits,"window"==k&&(h.fits?"top"==n||"bottom"==n?h.whole=c.geo.origin.windowOffset.right>=e.__options.minIntersection&&c.geo.window.size.width-c.geo.origin.windowOffset.left>=e.__options.minIntersection:h.whole=c.geo.origin.windowOffset.bottom>=e.__options.minIntersection&&c.geo.window.size.height-c.geo.origin.windowOffset.top>=e.__options.minIntersection:h.whole=!1),g.push(h),h.whole)j=!0;else if("natural"==h.mode&&(h.fits||h.size.width<=c.geo.available[k][n].width))return!1}})}}),e.__instance._trigger({edit:function(a){g=a},event:b,helper:c,results:g,type:"positionTested"}),g.sort(function(a,b){if(a.whole&&!b.whole)return-1;if(!a.whole&&b.whole)return 1;if(a.whole&&b.whole){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}if(a.fits&&!b.fits)return-1;if(!a.fits&&b.fits)return 1;if(a.fits&&b.fits){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}return"document"==a.container&&"bottom"==a.side&&"natural"==a.mode?-1:1}),d=g[0],d.coord={},d.side){case"left":case"right":d.coord.top=Math.floor(d.target-d.size.height/2);break;case"bottom":case"top":d.coord.left=Math.floor(d.target-d.size.width/2)}switch(d.side){case"left":d.coord.left=c.geo.origin.windowOffset.left-d.outerSize.width;break;case"right":d.coord.left=c.geo.origin.windowOffset.right+d.distance.horizontal;break;case"top":d.coord.top=c.geo.origin.windowOffset.top-d.outerSize.height;break;case"bottom":d.coord.top=c.geo.origin.windowOffset.bottom+d.distance.vertical}"window"==d.container?"top"==d.side||"bottom"==d.side?d.coord.left<0?c.geo.origin.windowOffset.right-this.__options.minIntersection>=0?d.coord.left=0:d.coord.left=c.geo.origin.windowOffset.right-this.__options.minIntersection-1:d.coord.left>c.geo.window.size.width-d.size.width&&(c.geo.origin.windowOffset.left+this.__options.minIntersection<=c.geo.window.size.width?d.coord.left=c.geo.window.size.width-d.size.width:d.coord.left=c.geo.origin.windowOffset.left+this.__options.minIntersection+1-d.size.width):d.coord.top<0?c.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?d.coord.top=0:d.coord.top=c.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:d.coord.top>c.geo.window.size.height-d.size.height&&(c.geo.origin.windowOffset.top+this.__options.minIntersection<=c.geo.window.size.height?d.coord.top=c.geo.window.size.height-d.size.height:d.coord.top=c.geo.origin.windowOffset.top+this.__options.minIntersection+1-d.size.height):(d.coord.left>c.geo.window.size.width-d.size.width&&(d.coord.left=c.geo.window.size.width-d.size.width),d.coord.left<0&&(d.coord.left=0)),e.__sideChange(h,d.side),c.tooltipClone=h[0],c.tooltipParent=e.__instance.option("parent").parent[0],c.mode=d.mode,c.whole=d.whole,c.origin=e.__instance._$origin[0],c.tooltip=e.__instance._$tooltip[0],delete d.container,delete d.fits,delete d.mode,delete d.outerSize,delete d.whole,d.distance=d.distance.horizontal||d.distance.vertical;var l=a.extend(!0,{},d);if(e.__instance._trigger({edit:function(a){d=a},event:b,helper:c,position:l,type:"position"}),e.__options.functionPosition){var m=e.__options.functionPosition.call(e,e.__instance,c,l);m&&(d=m)}i.destroy();var n,o;"top"==d.side||"bottom"==d.side?(n={prop:"left",val:d.target-d.coord.left},o=d.size.width-this.__options.minIntersection):(n={prop:"top",val:d.target-d.coord.top},o=d.size.height-this.__options.minIntersection),n.val<this.__options.minIntersection?n.val=this.__options.minIntersection:n.val>o&&(n.val=o);var p;p=c.geo.origin.fixedLineage?c.geo.origin.windowOffset:{left:c.geo.origin.windowOffset.left+c.geo.window.scroll.left,top:c.geo.origin.windowOffset.top+c.geo.window.scroll.top},d.coord={left:p.left+(d.coord.left-c.geo.origin.windowOffset.left),top:p.top+(d.coord.top-c.geo.origin.windowOffset.top)},e.__sideChange(e.__instance._$tooltip,d.side),c.geo.origin.fixedLineage?e.__instance._$tooltip.css("position","fixed"):e.__instance._$tooltip.css("position",""),e.__instance._$tooltip.css({left:d.coord.left,top:d.coord.top,height:d.size.height,width:d.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(n.prop,n.val),e.__instance._$tooltip.appendTo(e.__instance.option("parent")),e.__instance._trigger({type:"repositioned",event:b,position:d})},__sideChange:function(a,b){a.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+b)},__targetFind:function(a){var b={},c=this.__instance._$origin[0].getClientRects();if(c.length>1){var d=this.__instance._$origin.css("opacity");1==d&&(this.__instance._$origin.css("opacity",.99),c=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))}if(c.length<2)b.top=Math.floor(a.geo.origin.windowOffset.left+a.geo.origin.size.width/2),b.bottom=b.top,b.left=Math.floor(a.geo.origin.windowOffset.top+a.geo.origin.size.height/2),b.right=b.left;else{var e=c[0];b.top=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil(c.length/2)-1]:c[0],b.right=Math.floor(e.top+(e.bottom-e.top)/2),e=c[c.length-1],b.bottom=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil((c.length+1)/2)-1]:c[c.length-1],b.left=Math.floor(e.top+(e.bottom-e.top)/2)}return b}}}),a})
200;var mecdata={"day":"day","days":"days","hour":"hour","hours":"hours","minute":"minute","minutes":"minutes","second":"second","seconds":"seconds","next":"Next","prev":"Prev","elementor_edit_mode":"no","recapcha_key":"","ajax_url":"https://www.cm-benavente.pt/wp-admin/admin-ajax.php","fes_nonce":"db15abfecb","fes_thankyou_page_time":"2000","fes_upload_nonce":"fe4d7777e6","current_year":"2026","current_month":"09","datepicker_format":"dd-mm-yy&d-m-Y","sf_update_url":"0","a11y_search_results":"Search updated. %1$s events found%2$s.","a11y_search_result":"Search updated. %1$s event found%2$s.","a11y_search_query":" for \"%s\"","a11y_search_address":" near \"%s\"","a11y_calendar_dialog":"Calendar date picker"};var mecdata={"day":"day","days":"days","hour":"hour","hours":"hours","minute":"minute","minutes":"minutes","second":"second","seconds":"seconds","next":"Next","prev":"Prev","elementor_edit_mode":"no","recapcha_key":"","ajax_url":"https://www.cm-benavente.pt/wp-admin/admin-ajax.php","fes_nonce":"db15abfecb","fes_thankyou_page_time":"2000","fes_upload_nonce":"fe4d7777e6","current_year":"2026","current_month":"09","datepicker_format":"dd-mm-yy&d-m-Y","sf_update_url":"0","a11y_search_results":"Search updated. %1$s events found%2$s.","a11y_search_result":"Search updated. %1$s event found%2$s.","a11y_search_query":" for \"%s\"","a11y_search_address":" near \"%s\"","a11y_calendar_dialog":"Calendar date picker","interval_units":{"daily":"days","weekly":"weeks","monthly":"months","yearly":"years"}}
201;var mecSingleEventDisplayer={getSinglePage:function(id,occurrence,time,ajaxurl,layout,image_popup){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-modal-preloader');jQuery.ajax({url:ajaxurl,data:"action=mec_load_single_page&id="+id+(occurrence!=null?"&occurrence="+occurrence:"")+(time!=null?"&time="+time:"")+"&layout="+layout,type:"get",success:function(response){jQuery('.mec-modal-result').removeClass("mec-modal-preloader");jQuery.featherlight(response);setTimeout(function(){if(typeof grecaptcha!=='undefined'&&jQuery('#g-recaptcha').length>0){grecaptcha.render("g-recaptcha",{sitekey:mecdata.recapcha_key})}
202mec_init_event_gallery();mec_init_number_spinner()},1000);if(image_popup!=0){if(jQuery('.featherlight-content .mec-events-content a img').length>0){jQuery('.featherlight-content .mec-events-content a img').each(function(){if(jQuery(this).attr('src')===jQuery(this).closest('a').attr('href')){jQuery(this).closest('a').attr('data-featherlight','image')}})}}
203if(typeof mecdata.enableSingleFluent!='undefined'&&mecdata.enableSingleFluent)mecFluentSinglePage();},error:function(){}})}};var mec_search_callbacks=[];function mecApplySelect2Accessibility($select){if(!$select||!$select.length)return;var ariaLabel=$select.attr('aria-label')||$select.attr('title')||'';if(!ariaLabel||!$select.attr('id'))return;var $selection=jQuery('#select2-'+$select.attr('id')+'-container').closest('.select2-selection');if(!$selection.length)return;$selection.attr('aria-label',ariaLabel)}
204function mecFormatA11yString(template,replacements){var output=String(template||'');jQuery.each(replacements||[],function(index,value){output=output.replace('%'+(index+1)+'$s',value)});return output}(function($){$.fn.mecSearchForm=function(options){var settings=$.extend({id:0,refine:0,ajax_url:'',search_form_element:'',atts:'',start_date:'',callback:function(){}},options);if(typeof mec_search_callbacks[settings.id]==='undefined')mec_search_callbacks[settings.id]=[];mec_search_callbacks[settings.id].push(settings.callback);$('#mec_search_form_'+settings.id).on('submit',(e)=>{e.preventDefault()});
204var $event_cost_min=$("#mec_sf_event_cost_min_"+settings.id);var $event_cost_max=$("#mec_sf_event_cost_max_"+settings.id);var $time_start=$("#mec_sf_timepicker_start_"+settings.id);var $time_end=$("#mec_sf_timepicker_end_"+settings.id);var $s=$("#mec_sf_s_"+settings.id);var $address=$("#mec_sf_address_s_"+settings.id);var $address_radius=$("#mec_sf_address_radius_"+settings.id);var $date_start=$('#mec_sf_date_start_'+settings.id);var $date_end=$('#mec_sf_date_end_'+settings.id);var $event_type=$('#mec_sf_event_type_'+settings.id);var $event_type_2=$('#mec_sf_event_type_2_'+settings.id);var $attribute=$('#mec_sf_attribute_'+settings.id);const $wrapper=$("#mec_search_form_"+settings.id);var $custom_fields=$wrapper.find('.mec-custom-event-field');const $status=$("#mec_search_form_"+settings.id+"_status");var $reset=$("#mec_search_form_"+settings.id+'_reset');var $event_status=$(".mec_sf_event_status_"+settings.id);var last_field;var updateUrl=(typeof mecdata!=='undefined'&&parseInt(mecdata.sf_update_url)===1);var isApplyingFromURL=!1;var originalURL=window.location.href;trigger();$(document).off('mec_search_init.mecSearchA11y'+settings.id).on('mec_search_init.mecSearchA11y'+settings.id,function(event,view,viewSettings,response){if(!viewSettings||String(viewSettings.id)!==String(settings.id))return;announceSearchResults(response)});$custom_fields.off('change.mecSf'+settings.id).on('change.mecSf'+settings.id,function(e){last_field=$(this).data('field-id');search()});$s.off('change').on('change',function(e){last_field='s';search()});$address.off('change').on('change',function(e){last_field='address';search()});$address_radius.off('change').on('change',function(e){last_field='address_radius';search()});$event_cost_min.off('change').on('change',function(e){last_field='cost-min';$event_cost_max.attr('min',$(this).val());search()});$event_cost_max.off('change').on('change',function(e){last_field='cost-max';$event_cost_min.attr('max',$(this).val());search()});if($time_start.length){var format=(($time_start.data('format')===12)?'hh:mm p':'HH:mm');$time_start.timepicker({timeFormat:format,minTime:new Date(0,0,0,0,0,0),maxTime:new Date(0,0,0,23,55,0),interval:5,dropdown:!1,change:function(){last_field='time-start';search()}});$time_end.timepicker({timeFormat:format,minTime:new Date(0,0,0,0,0,0),maxTime:new Date(0,0,0,23,55,0),interval:5,dropdown:!1,change:function(){last_field='time-end';search()}})}
205var $month=$("#mec_sf_month_"+settings.id);var $year=$("#mec_sf_year_"+settings.id);var $month_or_year=$("#mec_sf_month_"+settings.id+', '+"#mec_sf_year_"+settings.id);$month_or_year.on('change',function(e){last_field='date-dropdown';var mec_month_val=$month.val();var mec_year_val=$year.val();if((mec_month_val!=='none'&&mec_year_val!=='none')||((mec_month_val==='none'&&mec_year_val==='none')))search();});$date_start.off('change').on('change',function(){last_field='date-start';search()});$date_end.off('change').on('change',function(){last_field='date-end';search()});$event_type.off('change').on('change',function(e){last_field='event-type';search()});$event_type_2.off('change').on('change',function(e){last_field='event-type-2';search()});$attribute.off('change').on('change',function(e){last_field='attribute';search()});if($event_status.length>0){$event_status.off('change').on('change',function(e){last_field='event_status';search()})}
206if(settings.fields&&settings.fields.length>0){for(var k in settings.fields){$("#mec_sf_"+settings.fields[k]+'_'+settings.id).off('change').on('change',function(e){search()})}}
207if($reset.length){$reset.off('click').on('click',function(e){reset()})}
208function get_fields(){return['state','city','region','region','street','postal_code',]}
209function getSearchResultCount(response){if(response&&typeof response.count!=='undefined'&&!isNaN(parseInt(response.count,10))){return Math.max(parseInt(response.count,10),0)}
210var $noEvents=$("#mec_skin_no_events_"+settings.id);if($noEvents.length&&!$noEvents.hasClass("mec-util-hidden"))return 0;return $("#mec_skin_events_"+settings.id).find(".mec-event-article").length}
211function getSearchContextSuffix(){var query=$s.length?$.trim($s.val()):'';if(query){return mecFormatA11yString(mecdata.a11y_search_query||' for "%s"',[query]).replace('%s',query)}
212var addressQuery=$address.length?$.trim($address.val()):'';if(addressQuery){return mecFormatA11yString(mecdata.a11y_search_address||' near "%s"',[addressQuery]).replace('%s',addressQuery)}
213return''}
214function announceSearchResults(response){if(!$status.length)return;var count=getSearchResultCount(response);var suffix=getSearchContextSuffix();var template=count===1?(mecdata.a11y_search_result||'Search updated. %1$s event found%2$s.'):(mecdata.a11y_search_results||'
214Search updated. %1$s events found%2$s.');window.setTimeout(function(){$status.text(mecFormatA11yString(template,[count,suffix]))},0)}
215function trigger(){if($wrapper.hasClass('mec-dropdown-enhanced')){$wrapper.find($('select')).each(function(){$(this).select2();mecApplySelect2Accessibility($(this))})}
216$("#mec_sf_category_"+settings.id).on('change',function(e){last_field='category';search()});$("#mec_sf_location_"+settings.id).on('change',function(e){last_field='location';search()});$("#mec_sf_organizer_"+settings.id).on('change',function(e){last_field='organizer';search()});$("#mec_sf_speaker_"+settings.id).on('change',function(e){last_field='speaker';search()});$("#mec_sf_tag_"+settings.id).on('change',function(e){last_field='tag';search()});$("#mec_sf_label_"+settings.id).on('change',function(e){last_field='label';search()});var fields=get_fields();$.each(fields,function(i,field){$("#mec_sf_"+field+"_"+settings.id).on('change',function(e){last_field=field;search()})})}
217function getRawNonSfQuery(){var search=window.location.search;if(search.indexOf('?')===0)search=search.substring(1);if(!search)return'';var parts=search.split('&');var kept=[];for(var i=0;i<parts.length;i++){var p=parts[i];if(!p)continue;var key=p.split('=')[0]||'';if(key.indexOf('sf[')===0||key.indexOf('sf%5B')===0)continue;kept.push(p)}
218return kept.join('&')}
219function encodeSfQuery(sfQS){if(!sfQS)return'';var out=[];var parts=sfQS.split('&');for(var i=0;i<parts.length;i++){var p=parts[i];if(!p)continue;var eq=p.indexOf('=');var key=eq>-1?p.substring(0,eq):p;var val=eq>-1?p.substring(eq+1):'';if(val==='')continue;out.push(key+'='+encodeURIComponent(val))}
220return out.join('&')}
221function pushFiltersToUrl(sfQS){if(!updateUrl)return;try{var base=window.location.origin+window.location.pathname;var preserved=getRawNonSfQuery();var sfRaw=encodeSfQuery(sfQS);var qs='';if(preserved)qs=preserved;if(sfRaw)qs=qs?(qs+'&'+sfRaw):sfRaw;var finalUrl=qs?(base+'?'+qs+window.location.hash):(base+window.location.hash);window.history.pushState({mec_sf:!0,id:settings.id},'',finalUrl)}catch(e){}}
222function extractSfFromRawSearch(){var res={};try{var raw=window.location.search;if(raw.indexOf('?')===0)raw=raw.substring(1);var regex=/(?:^|&)sf(?:%5B|\[)([^\]=%]+)(?:%5D|\])=([^&]*)/g;var m;while((m=regex.exec(raw))!==null){var k=m[1];var v=decodeURIComponent(m[2]||'');res[k]=v}}catch(e){}
223return res}
224function applyURLToFormAndSearch(){if(!updateUrl)return;try{var sfObj=extractSfFromRawSearch();if(Object.keys(sfObj).length===0)return;isApplyingFromURL=!0;if(typeof sfObj.s!=='undefined'&&$s.length)$s.val(sfObj.s);if(typeof sfObj.address!=='undefined'&&$address.length)$address.val(sfObj.address);if(typeof sfObj.address_radius!=='undefined'&&$address_radius.length)$address_radius.val(sfObj.address_radius);if(typeof sfObj['cost-min']!=='undefined'&&$event_cost_min.length)$event_cost_min.val(sfObj['cost-min']);if(typeof sfObj['cost-max']!=='undefined'&&$event_cost_max.length)$event_cost_max.val(sfObj['cost-max']);if(typeof sfObj['time-start']!=='undefined'&&$time_start.length)$time_start.val(sfObj['time-start']);if(typeof sfObj['time-end']!=='undefined'&&$time_end.length)$time_end.val(sfObj['time-end']);if(typeof sfObj.month!=='undefined'&&$month.length)$month.val(sfObj.month);if(typeof sfObj.year!=='undefined'&&$year.length)$year.val(sfObj.year);if(typeof sfObj.start!=='undefined'&&$date_start.length)$date_start.val(sfObj.start);if(typeof sfObj.end!=='undefined'&&$date_end.length)$date_end.val(sfObj.end);if(typeof sfObj.date_start!=='undefined'&&$date_start.length)$date_start.val(sfObj.date_start);if(typeof sfObj.date_end!=='undefined'&&$date_end.length)$date_end.val(sfObj.date_end);if(typeof sfObj.event_type!=='undefined'&&$event_type.length)$event_type.val(sfObj.event_type);if(typeof sfObj.event_type_2!=='undefined'&&$event_type_2.length)$event_type_2.val(sfObj.event_type_2);if(typeof sfObj.attribute!=='undefined'&&$attribute.length)$attribute.val(sfObj.attribute);if(typeof sfObj.event_status!=='undefined'&&$event_status.length){$event_status.prop('checked',!1);$event_status.filter('[value="'+sfObj.event_status+'"]').prop('checked',!0)}
225function applyTaxonomy($el,csv){if(!$el.length)return;var vals=(csv||'').split(',').filter(function(x){return x!==''});var tag=($el.prop('tagName')||'').toLowerCase();if(tag==='select'){$el.val(vals.length>1?vals:(vals[0]||''));if($wrapper.hasClass('mec-dropdown-enhanced')&&jQuery().select2){$el.trigger('change.select2')}else if(jQuery().niceSelect){$el.niceSelect('update')}}else if(tag==='ul'){var set=new Set(vals);$el.find('input[type=checkbox]').each(function(){var v=jQuery(this).val();jQuery(this).prop('checked',set.has(v))})}}
226applyTaxonomy($("#mec_sf_category_"+settings.id),sfObj.category);applyTaxonomy($("#mec_sf_location_"+settings.id),sfObj.location);applyTaxonomy($("#mec_sf_organizer_"+settings.id),sfObj.organizer);applyTaxonomy($("#mec_sf_speaker_"+settings.id),sfObj.speaker);applyTaxonomy($("#mec_sf_tag_"+settings.id),sfObj.tag);applyTaxonomy($("#mec_sf_label_"+settings.id),sfObj.label);function updateSelectUI($sel){if(!$sel||!$sel.length)return;if($wrapper.hasClass('mec-dropdown-enhanced')&&jQuery().select2){$sel.trigger('change.select2')}else if(jQuery().niceSelect){$sel.niceSelect('update')}}
227updateSelectUI($month);updateSelectUI($year);updateSelectUI($event_type);updateSelectUI($event_type_2);updateSelectUI($attribute);setTimeout(function(){isApplyingFromURL=!1;var skipOnce=$wrapper.data('mec-skip-initial-search');if(skipOnce){$wrapper.removeAttr('data-mec-skip-initial-search')}else{search()}},50)}catch(e){}}
228if(updateUrl&&!$wrapper.data('mec-popstate-bound')){jQuery(window).on('popstate',function(){applyURLToFormAndSearch()});$wrapper.data('mec-popstate-bound',!0)}
229applyURLToFormAndSearch();function search(){var $category=$("#mec_sf_category_"+settings.id);var $location=$("#mec_sf_location_"+settings.id);var $organizer=$("#mec_sf_organizer_"+settings.id);var $speaker=$("#mec_sf_speaker_"+settings.id);var $tag=$("#mec_sf_tag_"+settings.id);var $label=$("#mec_sf_label_"+settings.id);var s=$s.length?$s.val():'';var address=$address.length?$address.val():'';var address_radius=$address_radius.length?$address_radius.val():'';var tag=$tag.length?$tag.val():'';var month=$month.length?$month.val():'';var year=$year.length?$year.val():'';var event_type=$event_type.length?$event_type.val():'';var event_type_2=$event_type_2.length?$event_type_2.val():'';var attribute=$attribute.length?$attribute.val():'';var event_status=$event_status.filter(':checked').length?$event_status.filter(':checked').val():'all';if(month===null)month='';var start=$date_start.length?$date_start.val():'';var end=$date_end.length?$date_end.val():'';
229var cost_min=$event_cost_min.length?$event_cost_min.val():'';var cost_max=$event_cost_max.length?$event_cost_max.val():'';var time_start=$time_start.length?$time_start.val():'';var time_end=$time_end.length?$time_end.val():'';var category;if($category.prop('tagName')&&$category.prop('tagName').toLowerCase()==='div'){category=[];$category.find($('select')).each(function(){category.push($(this).val())});category=category.join(',')}else if($category.prop('tagName')&&$category.prop('tagName').toLowerCase()==='ul'){category=[];$category.find($('input[type=checkbox]:checked')).each(function(){category.push($(this).val())});category=category.join(',')}else category=$category.length?$category.val():'';var location;if($location.prop('tagName')&&$location.prop('tagName').toLowerCase()==='ul'){location=[];$location.find($('input[type=checkbox]:checked')).each(function(){location.push($(this).val())});location=location.join(',')}else location=$location.length?$location.val():'';var organizer;if($organizer.prop('tagName')&&$organizer.prop('tagName').toLowerCase()==='ul'){organizer=[];$organizer.find($('input[type=checkbox]:checked')).each(function(){organizer.push($(this).val())});organizer=organizer.join(',')}else organizer=$organizer.length?$organizer.val():'';var speaker;if($speaker.prop('tagName')&&$speaker.prop('tagName').toLowerCase()==='ul'){speaker=[];$speaker.find($('input[type=checkbox]:checked')).each(function(){speaker.push($(this).val())});speaker=speaker.join(',')}else speaker=$speaker.length?$speaker.val():'';var label;if($label.prop('tagName')&&$label.prop('tagName').toLowerCase()==='ul'){label=[];$label.find($('input[type=checkbox]:checked')).each(function(){label.push($(this).val())});label=label.join(',')}else label=$label.length?$label.val():'';if(year==='none'&&month==='none'){year='';month=''}
230if(!year)year='';var addation_attr='';if(settings.fields&&settings.fields.length>0){for(var k in settings.fields){var field='#mec_sf_'+settings.fields[k]+'_'+settings.id;var val=$(field).length?$(field).val():'';addation_attr+='&sf['+settings.fields[k]+']='+val}}
231var sf='sf[s]='+s+'&sf[address]='+address+'&sf[address_radius]='+address_radius+'&sf[cost-min]='+cost_min+'&sf[cost-max]='+cost_max+'&sf[time-start]='+time_start+'&sf[time-end]='+time_end+'&sf[month]='+month+'&sf[year]='+year+'&sf[start]='+start+'&sf[end]='+end+'&sf[event_type]='+event_type+'&sf[event_type_2]='+event_type_2+'&sf[event_status]='+event_status+'&sf[attribute]='+attribute+addation_attr;if($category.length)sf+='&sf[category]='+category;if($location.length)sf+='&sf[location]='+location;if($organizer.length)sf+='&sf[organizer]='+organizer;if($speaker.length)sf+='&sf[speaker]='+speaker;if($tag.length)sf+='&sf[tag]='+tag;if($label.length)sf+='&sf[label]='+label;$custom_fields.each(function(){var custom_field_id=$(this).data('field-id');var custom_request_key=$(this).data('request-key');var custom_field_value=$(this).val();if(custom_request_key)sf+='&sf[fields]['+custom_field_id+']['+custom_request_key+']='+custom_field_value;else sf+='&sf[fields]['+custom_field_id+']='+custom_field_value});var fields=get_fields();$.each(fields,function(i,field){if($("#mec_sf_"+field+"_"+settings.id).length){v=$("#mec_sf_"+field+"_"+settings.id).val();sf+='&sf['+field+']='+v}});if(settings.refine)refine(sf);var atts=settings.atts+'&'+sf;if(typeof mec_search_callbacks[settings.id]!=='undefined'){for(const cb of mec_search_callbacks[settings.id])cb(atts)}
232if(updateUrl&&!isApplyingFromURL){pushFiltersToUrl(sf)}}
233function reset(){var $category=$("#mec_sf_category_"+settings.id);var $location=$("#mec_sf_location_"+settings.id);var $organizer=$("#mec_sf_organizer_"+settings.id);var $speaker=$("#mec_sf_speaker_"+settings.id);var $tag=$("#mec_sf_tag_"+settings.id);var $label=$("#mec_sf_label_"+settings.id);var isEnhanced=$wrapper.hasClass('mec-dropdown-enhanced');if($category.length&&$category.prop('tagName')&&$category.prop('tagName').toLowerCase()==='div'){$category.find('select').each(function(){$(this).val(null).trigger('change')});if(isEnhanced&&jQuery().select2){$category.find('select').select2();$category.find('select').each(function(){mecApplySelect2Accessibility($(this))})}else if(jQuery().niceSelect)$category.find('select').niceSelect('update');}else if($category.length&&$category.prop('tagName')&&$category.prop('tagName').toLowerCase()==='ul'){$category.find($('input[type=checkbox]:checked')).each(function(){$(this).prop('checked',!1)})}else if($category.length){$category.val(null);if($category.prop('tagName')&&$category.prop('tagName').toLowerCase()==='select'){if(isEnhanced&&jQuery().select2){$category.select2();mecApplySelect2Accessibility($category)}else if(jQuery().niceSelect)$category.niceSelect('update');}}
234if($location.length&&$location.prop('tagName')&&$location.prop('tagName').toLowerCase()==='ul'){$location.find($('input[type=checkbox]:checked')).each(function(){$(this).prop('checked',!1)})}else if($location.length){$location.val(null);if($location.prop('tagName')&&$location.prop('tagName').toLowerCase()==='select'){if(isEnhanced&&jQuery().select2){$location.select2();mecApplySelect2Accessibility($location)}else if(jQuery().niceSelect)$location.niceSelect('update');}}
235if($organizer.length&&$organizer.prop('tagName')&&$organizer.prop('tagName').toLowerCase()==='ul'){$organizer.find($('input[type=checkbox]:checked')).each(function(){$(this).prop('checked',!1)})}else if($organizer.length){$organizer.val(null);if($organizer.prop('tagName')&&$organizer.prop('tagName').toLowerCase()==='select'){if(isEnhanced&&jQuery().select2){$organizer.select2();mecApplySelect2Accessibility($organizer)}else if(jQuery().niceSelect)$organizer.niceSelect('update');}}
236if($speaker.length&&$speaker.prop('tagName')&&$speaker.prop('tagName').toLowerCase()==='ul'){$speaker.find($('input[type=checkbox]:checked')).each(function(){$(this).prop('checked',!1)})}else if($speaker.length){$speaker.val(null);if($speaker.prop('tagName')&&$speaker.prop('tagName').toLowerCase()==='select'){if(isEnhanced&&jQuery().select2){$speaker.select2();mecApplySelect2Accessibility($speaker)}else if(jQuery().niceSelect)$speaker.niceSelect('update');}}
237if($label.length&&$label.prop('tagName')&&$label.prop('tagName').toLowerCase()==='ul'){$label.find($('input[type=checkbox]:checked')).each(function(){$(this).prop('checked',!1)})}else if($label.length){$label.val(null);if($label.prop('tagName')&&$label.prop('tagName').toLowerCase()==='select'){if(isEnhanced&&jQuery().select2){$label.select2();mecApplySelect2Accessibility($label)}else if(jQuery().niceSelect)$label.niceSelect('update');}}
238if($tag.length)$tag.val(null);if($s.length)$s.val(null);if($address.length)$address.val(null);if($address_radius.length)$address_radius.val(null);if($month.length)$month.val(null);if($year.length)$year.val(null);if($event_cost_min.length)$event_cost_min.val(null);if($event_cost_max.length)$event_cost_max.val(null);if($date_start.length)$date_start.val(null);if($date_end.length)$date_end.val(null);if($time_start.length)$time_start.val(null);if($time_end.length)$time_end.val(null);if($event_status.length){$event_status.prop('checked',!1);$event_status.filter('[value="all"]').prop('checked',!0)}
239var mapFields=['state','city','region','street','postal_code'];$.each(mapFields,function(i,field){var $mapField=$("#mec_sf_"+field+"_"+settings.id);if($mapField.length){$mapField.val(null);if($mapField.is('select')){if(isEnhanced&&jQuery().select2){$mapField.select2();mecApplySelect2Accessibility($mapField)}else if(jQuery().niceSelect)jQuery("#mec_sf_"+field+"_"+settings.id).niceSelect('update');}}});var fields=get_fields();$.each(fields,function(i,field){const $f=$("#mec_sf_"+field+"_"+settings.id);if($f.length){$f.val(null);if($f.is('select')&&jQuery().niceSelect){jQuery("#mec_sf_"+field+"_"+settings.id).niceSelect('update')}}});if(jQuery().niceSelect){jQuery('.mec-fluent-wrap').find('.mec-filter-content').find('select:not([multiple])').niceSelect('update')}
240if(updateUrl){try{var url=new URL(window.location.href);url=removeSfParamsFromUrl(url);window.history.pushState({mec_sf:!0,id:settings.id},'',url.toString())}catch(e){}}
241setTimeout(function(){search()},200)}
242function refine(sf){var $category=$("#mec_sf_category_"+settings.id);var $location=$("#mec_sf_location_"+settings.id);var $organizer=$("#mec_sf_organizer_"+settings.id);var $speaker=$("#mec_sf_speaker_"+settings.id);var $tag=$("#mec_sf_tag_"+settings.id);var $label=$("#mec_sf_label_"+settings.id);var category_type;if($category.length&&$category.prop('tagName')&&$category.prop('tagName').toLowerCase()==='div')category_type='checkboxes';else if($category.length&&$category.prop('tagName')&&$category.prop('tagName').toLowerCase()==='ul')category_type='simple-checkboxes';else if($category.length)category_type='dropdown';var location_type;if($location.length&&$location.prop('tagName')&&$location.prop('tagName').toLowerCase()==='ul')location_type='simple-checkboxes';else if($location.length)location_type='dropdown';var organizer_type;if($organizer.length&&$organizer.prop('tagName')&&$organizer.prop('tagName').toLowerCase()==='ul')organizer_type='simple-checkboxes';else if($organizer.length)organizer_type='dropdown';var speaker_type;if($speaker.length&&$speaker.prop('tagName')&&$speaker.prop('tagName').toLowerCase()==='ul')speaker_type='simple-checkboxes';else if($organizer.length)speaker_type='dropdown';var label_type;if($label.length&&$label.prop('tagName')&&$label.prop('tagName').toLowerCase()==='ul')label_type='simple-checkboxes';else if($label.length)label_type='dropdown';$.ajax({url:settings.ajax_url,data:"action=mec_refine_search_items&mec_start_date="+sett
242ings.start_date+"&"+sf+'&last_field='+last_field+'&category_type='+category_type+'&location_type='+location_type+'&organizer_type='+organizer_type+'&speaker_type='+speaker_type+'&label_type='+label_type+'&id='+settings.id,dataType:"json",type:"post",success:function(response){if(typeof response.categories!=='undefined'&&response.categories!==''){if($category.length&&category_type==='checkboxes'){$category.html(response.categories)}else if($category.length&&category_type==='simple-checkboxes'){$category.html(response.categories)}else if($category.length){$category.replaceWith(response.categories)}
243if(jQuery(".mec-searchbar-category-wrap select").length>0&&jQuery().niceSelect)jQuery(".mec-searchbar-category-wrap select").niceSelect();}
244if(typeof response.locations!=='undefined'&&response.locations!==''){if($location.length&&location_type==='simple-checkboxes'){$location.html(response.locations)}else if($location.length){$location.replaceWith(response.locations)}}
245if(typeof response.organizers!=='undefined'&&response.organizers!==''){if($organizer.length&&organizer_type==='simple-checkboxes'){$organizer.html(response.organizers)}else if($organizer.length){$organizer.replaceWith(response.organizers)}}
246if(typeof response.speakers!=='undefined'&&response.speakers!==''){if($speaker.length&&speaker_type==='simple-checkboxes'){$speaker.html(response.speakers)}else if($speaker.length){$speaker.replaceWith(response.speakers)}}
247if(typeof response.labels!=='undefined'&&response.labels!==''){if($label.length&&label_type==='simple-checkboxes'){$label.html(response.labels)}else if($label.length){$label.replaceWith(response.labels)}}
248if(typeof response.tags!=='undefined'&&response.tags!==''){$tag.replaceWith(response.tags)}
249trigger()},error:function(){}})}}}(jQuery));jQuery(document).ready(function($){if(jQuery(".mec-fes-form-cntt #mec-location select").length>0){jQuery(".mec-fes-form-cntt #mec-location select").select2();jQuery(".mec-fes-form-cntt #mec-location select").each(function(){mecApplySelect2Accessibility(jQuery(this))})}
250if(jQuery(".mec-fes-form-cntt #mec-organizer select").length>0){jQuery(".mec-fes-form-cntt #mec-organizer select").select2();jQuery(".mec-fes-form-cntt #mec-organizer select").each(function(){mecApplySelect2Accessibility(jQuery(this))})}
251if(jQuery("#mec_location_id").length>0){jQuery("#mec_location_id").select2();mecApplySelect2Accessibility(jQuery("#mec_location_id"))}
252if(jQuery("#mec_organizer_id").length>0){jQuery("#mec_organizer_id").select2();mecApplySelect2Accessibility(jQuery("#mec_organizer_id"))}
253if(jQuery(".mec-searchbar-category-wrap select").length>0){jQuery(".mec-searchbar-category-wrap select").select2();jQuery(".mec-searchbar-category-wrap select").each(function(){mecApplySelect2Accessibility(jQuery(this))})}
254jQuery(".mec-search-form.mec-totalcal-box").find(".mec-search-reset-button").parents().eq(2).addClass("mec-there-reset-button");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-minmax-event-cost").parent().find(".mec-text-address-search").addClass("with-mec-cost");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-text-address-search").parent().find(".mec-minmax-event-cost").addClass("with-mec-address");
254jQuery(".mec-full-calendar-search-ends").find(".mec-text-input-search").parent().find(".mec-tab-loader").removeClass("col-md-12").addClass("col-md-6");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-text-input-search").parent().find(".mec-date-search").parent().find(".mec-text-input-search").addClass("col-md-6");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-text-input-search").parent().find(".mec-time-picker-search").parent().find(".mec-text-input-search").addClass("col-md-6");jQuery(".mec-full-calendar-search-ends").find(".mec-text-input-search").addClass("col-md-12").parent().find(".mec-time-picker-search").addClass("col-md-6");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-date-search").parent().find(".mec-time-picker-search").addClass("with-mec-date-search");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-time-picker-search").parent().find(".mec-date-search").addClass("with-mec-time-picker");jQuery('#mec-gCalendar-wrap .openMonthFilter').on('click',function(e){jQuery(this).toggleClass('open')});jQuery('body').on('click',function(e){jQuery('#mec-gCalendar-wrap .openMonthFilter').removeClass('open')});mec_init_number_spinner()});function mec_init_number_spinner(){jQuery('.mec-booking .mec-event-tickets-list .mec-ticket-style-row div a').off('click').on('click',function(){var $input=jQuery(this).parents('.mec-ticket-style-row div').find(jQuery('input.in-num'));var count=parseFloat($input.val());if(jQuery(this).hasClass('minus')){count=count-1;count=count<1?0:count;if(count<1){jQuery(this).addClass('dis')}else{jQuery(this).removeClass('dis')}
255$input.val(count)}else{count=count+1;$input.val(count);if(count>1){jQuery(this).parents('.mec-ticket-style-row div').find(('.minus')).removeClass('dis')}}
256$input.change();return!1})}
257jQuery(window).on('load',function(){jQuery(".single-mec-events").find(".mejs-controls button").addClass("mejs")});(function($){$.fn.mecFullCalendar=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},skin:'',},options);setListeners();$(document).trigger('mec_full_calendar_before_init',$("#mec_full_calendar_container_"+settings.id));mecFluentCurrentTimePosition();mecFluentCustomScrollbar();var sf;function setListeners(){if(settings.sf.container!==''&&!1==$(settings.sf.container).hasClass('mec-skin-search-init')){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;if(!1==$("#mec_skin_"+settings.id).hasClass('mec-fluent-wrap')&&!1==$("#mec_skin_"+settings.id).hasClass('mec-liquid-wrap')){search()}}});$(settings.sf.container).addClass('mec-skin-search-init')}
258$('.mec-subscribe-to-calendar-btn').off('click').on('click',function(){$(this).parent().find('>.mec-subscribe-to-calendar-items').toggle()});$("#mec_skin_"+settings.id+" .mec-totalcal-box .mec-totalcal-view span:not(.mec-fluent-more-views-icon):not(.mec-fluent-more-views-content)").on('click',function(e){e.preventDefault();var skin=$(this).data('skin');var mec_month_select=$('#mec_sf_month_'+settings.id);var mec_year_select=$('#mec_sf_year_'+settings.id);if(mec_year_select.val()=='none'){mec_year_select.find('option').each(function(){var option_val=$(this).val();if(option_val==mecdata.current_year)mec_year_select.val(option_val);})}
259if(mec_month_select.val()=='none'){mec_month_select.find('option').each(function(){var option_val=$(this).val();if(option_val==mecdata.current_month)mec_month_select.val(option_val);})}
260if(skin=='list'||skin=='grid'||skin=='agenda'){var mec_filter_none='<option class="mec-none-item" value="none">'+$('#mec-filter-none').val()+'</option>';if(mec_month_select.find('.mec-none-item').length==0)mec_month_select.prepend(mec_filter_none);if(mec_year_select.find('.mec-none-item').length==0)mec_year_select.prepend(mec_filter_none);}else{if(mec_month_select.find('.mec-none-item').length!=0)mec_month_select.find('.mec-none-item').remove();if(mec_year_select.find('.mec-none-item').length!=0)mec_year_select.find('.mec-none-item').remove();}
261$("#mec_skin_"+settings.id+" .mec-totalcal-box .mec-totalcal-view span").removeClass('mec-totalcalview-selected')
262$(this).addClass('mec-totalcalview-selected');if($(this).closest('.mec-fluent-more-views-content').length>0){$('.mec-fluent-more-views-icon').addClass('active');$('.mec-fluent-more-views-content').removeClass('active')}else{$('.mec-fluent-more-views-icon').removeClass('active')}
263loadSkin(skin)})}
264function loadSkin(skin){settings.skin=skin;if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');var $month_picker=$("#mec_sf_month_"+settings.id);var $year_picker=$("#mec_sf_year_"+settings.id);if(settings.atts.indexOf('sf[month]')<=-1&&$month_picker.length&&$year_picker.length){settings.atts+='&sf[month]='+$month_picker.val()+'&sf[year]='+$year_picker.val()}
265$.ajax({url:settings.ajax_url,data:"action=mec_full_calendar_switch_skin&skin="+skin+"&"+settings.atts+"&apply_sf_date=1&sed="+settings.sed_method,type:"post",success:function(response){jQuery(document).trigger('mec_before_load_skin_success',[$("#mec_full_calendar_container_"+settings.id),settings.id]);$("#mec_full_calendar_container_"+settings.id).html(response);$('.mec-modal-result').removeClass("mec-month-navigator-loading");mecFocusDay(settings);mecFluentCurrentTimePosition();mecFluentCustomScrollbar();jQuery(document).trigger('mec_load_skin_success',$("#mec_full_calendar_container_"+settings.id))},error:function(){}})}
266function search(){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_full_calendar_switch_skin&skin="+settings.skin+"&"+settings.atts+"&apply_sf_date=1",type:"post",success:function(response){$("#mec_full_calendar_container_"+settings.id).html(response);$('.mec-modal-result').removeClass("mec-month-navigator-loading");mecFocusDay(settings);
266mec_focus_week(settings.id);mecFluentCurrentTimePosition();mecFluentCustomScrollbar();jQuery(document).trigger('mec_search_success',$("#mec_full_calendar_container_"+settings.id))},error:function(){}})}}}(jQuery));(function($){$.fn.mecYearlyView=function(options){var active_year;var settings=$.extend({today:null,id:0,events_label:'Events',event_label:'Event',year_navigator:0,atts:'',next_year:{},sf:{},ajax_url:'',},options);mecFluentYearlyUI(settings.id,settings.year_id);if(settings.year_navigator)initYearNavigator();setListeners();$(document).on("click","#mec_skin_events_"+settings.id+" .mec-load-more-button",function(){var year=$(this).parent().parent().parent().data('year-id');loadMoreButton(year)});if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;active_year=$('.mec-yearly-view-wrap .mec-year-navigator').filter(function(){return $(this).css('display')=="block"});active_year=parseInt(active_year.find('h2').text());search(active_year)}});$(settings.sf.container).addClass('mec-skin-search-init')}
267function initYearNavigator(){$("#mec_skin_"+settings.id+" .mec-load-year").off("click").on("click",function(){var year=$(this).data("mec-year");setYear(year)})}
268function search(year){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_yearly_view_load_year&mec_year="+year+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){active_year=response.current_year.year;$("#mec_skin_events_"+settings.id).html('<div class="mec-year-container" id="mec_yearly_view_year_'+settings.id+'_'+response.current_year.id+'" data-year-id="'+response.current_year.id+'">'+response.year+'</div>');$("#mec_skin_"+settings.id+" .mec-yearly-title-sec").append('<div class="mec-year-navigator" id="mec_year_navigator_'+settings.id+'_'+response.current_year.id+'">'+response.navigator+'</div>');initYearNavigator();setListeners();toggleYear(response.current_year.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");mecFluentYearlyUI(settings.id,active_year);mecFluentCustomScrollbar();$(document).trigger('mec_search_init',['yearly_view',settings,response])},error:function(){}})}
269function setYear(year,do_in_background){if(typeof do_in_background==="undefined")do_in_background=!1;var year_id=year;active_year=year;if($("#mec_yearly_view_year_"+settings.id+"_"+year_id).length){toggleYear(year_id);mecFluentCustomScrollbar()}else{if(!do_in_background){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading')}
270$.ajax({url:settings.ajax_url,data:"action=mec_yearly_view_load_year&mec_year="+year+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){$("#mec_skin_events_"+settings.id).append('<div class="mec-year-container" id="mec_yearly_view_year_'+settings.id+'_'+response.current_year.id+'" data-year-id="'+response.current_year.id+'">'+response.year+'</div>');$("#mec_skin_"+settings.id+" .mec-yearly-title-sec").append('<div class="mec-year-navigator" id="mec_year_navigator_'+settings.id+'_'+response.current_year.id+'">'+response.navigator+'</div>');initYearNavigator();setListeners();if(!do_in_background){toggleYear(response.current_year.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_sf_year_"+settings.id).val(year)}else{$("#mec_yearly_view_year_"+settings.id+"_"+response.current_year.id).hide();$("#mec_year_navigator_"+settings.id+"_"+response.current_year.id).hide()}
271mecFluentYearlyUI(settings.id,year);if(!do_in_background){mecFluentCustomScrollbar()}},error:function(){}})}}
272function toggleYear(year_id){$("#mec_skin_"+settings.id+" .mec-year-navigator").hide();$("#mec_year_navigator_"+settings.id+"_"+year_id).show();$("#mec_skin_"+settings.id+" .mec-year-container").hide();$("#mec_yearly_view_year_"+settings.id+"_"+year_id).show()}
273var sf;function setListeners(){if(settings.sed_method!='0'){sed()}
274$('.mec-subscribe-to-calendar-btn').off('click').on('click',function(){$(this).parent().find('>.mec-subscribe-to-calendar-items').toggle()});$("#mec_skin_"+settings.id+" .mec-has-event a").on('click',function(e){e.preventDefault();var des=$(this).attr('href');var visible=$(des).is(':visible');if(!visible){var year=$(des).parents('.mec-year-container').data('year-id');if(year){while(!visible){loadMoreButton(year);visible=$(des).is(':visible')}}}
275$('.mec-events-agenda').removeClass('mec-selected');$(des).closest('.mec-events-agenda').addClass('mec-selected');var scrollTopVal=$(des).closest('.mec-events-agenda').offset().top-35;if($(this).closest('.mec-fluent-wrap').length>0){var parent=jQuery(this).closest('.mec-fluent-wrap').find('.mec-yearly-agenda-sec');scrollTopVal=parent.scrollTop()+($(des).closest('.mec-events-agenda').offset().top-parent.offset().top);jQuery(this).closest('.mec-fluent-wrap').find('.mec-yearly-agenda-sec').getNiceScroll(0).doScrollTop(scrollTopVal-15,120)}else{$('html, body').animate({scrollTop:scrollTopVal},300)}})}
276function sed(){$("#mec_skin_"+settings.id+" .mec-agenda-event-title a").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return}
277e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
278mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}
279function loadMoreButton(year){var $max_count,$current_count=0;$max_count=$("#mec_yearly_view_year_"+settings.id+"_"+year+" .mec-yearly-max").data('count');$current_count=$("#mec_yearly_view_year_"+settings.id+"_"+year+" .mec-util-hidden").length;if($current_count>10){for(var i=0;i<10;i++){$("#mec_yearly_view_year_"+settings.id+"_"+year+" .mec-util-hidden").slice(0,2).each(function(){$(this).removeClass('mec-util-hidden')})}}
280if($current_count<10&&$current_count!=0){for(var j=0;j<$current_count;j++){$("#mec_yearly_view_year_"+settings.id+"_"+year+" .mec-util-hidden").slice(0,2).each(function(){$(this).removeClass('mec-util-hidden');$("#mec_yearly_view_year_"+settings.id+"_"+year+" .mec-load-more-wrap").css('display','none')})}}}}}(jQuery));(function($){$.fn.mecGeneralCalendarView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},},options);setListeners();function setListeners(){if(settings.sed_method!='0'){sed()}}
281function sed(){$("#mec_skin_"+settings.id+" .fc-daygrid-event").off('click').on('click',function(e){e.preventDefault();var sed_method=$(this).attr('target');if('_blank'===sed_method||'_self'===sed_method||'no'===sed_method){return}
282e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
283mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}}}(jQuery));(function($){$.fn.mecMonthlyView=function(options){var active_month;var active_year;var settings=$.extend({today:null,id:0,events_label:'Events',event_label:'Event',month_navigator:0,atts:'',active_month:{},next_month:{},sf:{},ajax_url:'',},options);if(settings.month_navigator)initMonthNavigator();active_month=settings.active_month.month;active_year=settings.active_month.year;setListeners();if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month)}});$(settings.sf.container).addClass('mec-skin-search-init')}
284function initMonthNavigator(){$("#mec_skin_"+settings.id+" .mec-load-month").off("click");$("#mec_skin_"+settings.id+" .mec-load-month").on("click",function(){var year=$(this).data("mec-year");var month=$(this).data("mec-month");setMonth(year,month,!1,!0)})}
285function search(year,month){var $modal=jQuery('.mec-modal-result');if($modal.length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');$modal.addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_monthly_view_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_monthly_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-monthly-view-month-navigator-container").html('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');$("#mec_skin_"+settings.id+" .mec-calendar-events-side").html('<div class="mec-month-side" id="mec_month_side_'+settings.id+'_'+response.current_month.id+'">'+response.events_side+'</div>');initMonthNavigator();setListeners();toggleMonth(response.current_month.id);jQuery(document).trigger('load_calendar_data');$('.mec-modal-result').removeClass("mec-month-navigator-loading");$(document).trigger('mec_search_init',['monthly_view',settings,response])},error:function(){}})}
286function setMonth(year,month,do_in_background,navigator_click){if(typeof do_in_background==="undefined")do_in_background=!1;navigator_click=navigator_click||!1;var month_id=year+""+month;if(!do_in_background){active_month=month;active_year=year}
287if($("#mec_monthly_view_month_"+settings.id+"_"+month_id).length){$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);toggleMonth(month_id)}else{if(!do_in_background){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading')}
288$.ajax({url:settings.ajax_url,data:"action=mec_monthly_view_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigator_click,dataType:"json",type:"post",success:function(response){$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_monthly_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-monthly-view-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');$("#mec_skin_"+settings.id+" .mec-calendar-events-side").append('<div class="mec-month-side" id="mec_month_side_'+settings.id+'_'+response.current_month.id+'">'+response.events_side+'</div>');initMonthNavigator();setListeners();if(!do_in_background){toggleMonth(response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year)}else{$("#mec_monthly_view_month_"+settings.id+"_"+response.current_month.id).hide();$("#mec_month_navigator_"+settings.id+"_"+response.current_month.id).hide();$("#mec_month_side_"+settings.id+"_"+response.current_month.id).hide()}
289if(typeof custom_month!==undefined)var custom_month;if(typeof custom_month!=undefined){if(custom_month=='true'){$(".mec-month-container .mec-calendar-day").removeClass('mec-has-event');$(".mec-month-container .mec-calendar-day").removeClass('mec-selected-day');$('.mec-calendar-day').off('click')}}
290jQuery(document).trigger('load_calendar_data')},error:function(){}})}}
291function toggleMonth(month_id){var active_month=$("#mec_skin_"+settings.id+" .mec-month-container-selected").data("month-id");var active_day=$("#mec_monthly_view_month_"+settings.id+"_"+active_month+" .mec-selected-day").data("day");if(active_day<=9)active_day="0"+active_day;$("#mec_skin_"+settings.id+" .mec-month-navigator").hide();$("#mec_month_navigator_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").hide();$("#mec_monthly_view_month_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").removeClass("mec-month-container-selected");$("#mec_monthly_view_month_"+settings.id+"_"+month_id).addClass("mec-month-container-selected");$("#mec_skin_"+settings.id+" .mec-month-side").hide();$("#mec_month_side_"+settings.id+"_"+month_id).show();
291jQuery(document).trigger('mec_toggle_month',[settings,month_id])}
292var sf;function setListeners(){$("#mec_skin_"+settings.id+" .mec-has-event").off("click");$("#mec_skin_"+settings.id+" .mec-has-event").on('click',function(e){var $this=$(this),data_mec_cell=$this.data('mec-cell'),month_id=$this.data('month');if(settings.display_all==0){e.preventDefault();$("#mec_monthly_view_month_"+settings.id+"_"+month_id+" .mec-calendar-day").removeClass('mec-selected-day');$this.addClass('mec-selected-day');$('#mec_month_side_'+settings.id+'_'+month_id+' .mec-calendar-events-sec:not([data-mec-cell='+data_mec_cell+'])').slideUp();$('#mec_month_side_'+settings.id+'_'+month_id+' .mec-calendar-events-sec[data-mec-cell='+data_mec_cell+']').slideDown();$('#mec_monthly_view_month_'+settings.id+'_'+month_id+' .mec-calendar-events-sec:not([data-mec-cell='+data_mec_cell+'])').slideUp();$('#mec_monthly_view_month_'+settings.id+'_'+month_id+' .mec-calendar-events-sec[data-mec-cell='+data_mec_cell+']').slideDown()}else{$("#mec_monthly_view_month_"+settings.id+"_"+month_id+" .mec-calendar-day").removeClass('mec-selected-day');$this.addClass('mec-selected-day')}});$('.mec-subscribe-to-calendar-btn').off('click').on('click',function(){$(this).parent().find('>.mec-subscribe-to-calendar-items').toggle()});mec_tooltip();if(settings.sed_method!='0'){sed()}
293if(settings.style=='novel'){if($('.mec-single-event-novel').length>0){$('.mec-single-event-novel').colourBrightness();$('.mec-single-event-novel').each(function(){$(this).colourBrightness()})}}}
294function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a,#mec_skin_"+settings.id+" .event-single-link-novel,#mec_skin_"+settings.id+" .mec-monthly-tooltip").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return}
295e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
296mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}
297function mec_tooltip(){if($('.mec-monthly-tooltip').length>=1){if(Math.max(document.documentElement.clientWidth,window.innerWidth||0)>768){$('.mec-monthly-tooltip').tooltipster({theme:'tooltipster-shadow',interactive:!0,delay:100,minWidth:350,maxWidth:350});if(settings.sed_method!='0'){sed()}}else{var touchtime=0;$(".mec-monthly-tooltip").on("click",function(event){event.preventDefault();if(touchtime==0){$('.mec-monthly-tooltip').tooltipster({theme:'tooltipster-shadow',interactive:!0,delay:100,minWidth:350,maxWidth:350,trigger:"custom",triggerOpen:{click:!0,tap:!0},triggerClose:{click:!0,tap:!0}});touchtime=new Date().getTime()}else{if(((new Date().getTime())-touchtime)<200){var el=$(this);var link=el.attr("href");window.location=link;touchtime=0}else{touchtime=new Date().getTime()}}})}}}}}(jQuery));(function($){$.fn.mecWeeklyView=function(options){var active_year;var active_month;var active_week;var active_week_number;var settings=$.extend({today:null,week:1,id:0,current_year:null,current_month:null,changeWeekElement:'.mec-load-week',month_navigator:0,atts:'',ajax_url:'',sf:{}},options);active_year=settings.current_year;active_month=settings.current_month;if(settings.sf.container!==''){$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month,active_week)}});$(settings.sf.container).addClass('mec-skin-search-init')}
298setThisWeek(settings.month_id+settings.week);setListeners();if(settings.month_navigator)initMonthNavigator(settings.month_id);function setListeners(){$(settings.changeWeekElement).off('click').on('click',function(e){var week=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('week-id');var max_weeks=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('max-weeks');var new_week_number=active_week_number;if($(this).hasClass('mec-previous-month')){week=parseInt(week)-1;new_week_number--}else{week=parseInt(week)+1;new_week_number++}
299if(new_week_number<=1||new_week_number>=max_weeks){$(this).css({'opacity':.6,'cursor':'default'});$(this).find('i').css({'opacity':.6,'cursor':'default'})}else{$('#mec_skin_'+settings.id+' .mec-load-week, #mec_skin_'+settings.id+' .mec-load-week i').css({'opacity':1,'curs
299or':'pointer'})}
300if(new_week_number===0||new_week_number>max_weeks){}else{setThisWeek(week)}});$('.mec-subscribe-to-calendar-btn').off('click').on('click',function(){$(this).parent().find('>.mec-subscribe-to-calendar-items').toggle()});if(settings.sed_method!='0'){sed()}}
301function setThisWeek(week,auto_focus){if(typeof auto_focus==='undefined')auto_focus=!1;if(!$('#mec_weekly_view_week_'+settings.id+'_'+week).length){return setThisWeek((parseInt(week)-1))}
302$('#mec_skin_'+settings.id+' .mec-weekly-view-week').removeClass('mec-weekly-view-week-active');$('#mec_weekly_view_week_'+settings.id+'_'+week).addClass('mec-weekly-view-week-active');$('#mec_weekly_view_top_week_'+settings.id+'_'+week).addClass('mec-weekly-view-week-active');$('#mec_skin_'+settings.id+' .mec-weekly-view-date-events').addClass('mec-util-hidden');$('.mec-weekly-view-week-'+settings.id+'-'+week).removeClass('mec-util-hidden');$('#mec_skin_'+settings.id+' .mec-calendar-row').addClass('mec-util-hidden');$('#mec_skin_'+settings.id+' .mec-calendar-row[data-week='+week%10+']').removeClass('mec-util-hidden');active_week=week;active_week_number=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('week-number');$('#mec_skin_'+settings.id+' .mec-calendar-d-top').find('.mec-current-week').find('span').remove();$('#mec_skin_'+settings.id+' .mec-calendar-d-top').find('.mec-current-week').append('<span>'+active_week_number+'</span>');if(active_week_number===1){$('#mec_skin_'+settings.id+' .mec-previous-month.mec-load-week').css({'opacity':.6,'cursor':'default'});$('#mec_skin_'+settings.id+' .mec-previous-month.mec-load-week').find('i').css({'opacity':.6,'cursor':'default'})}
303if(auto_focus)mec_focus_week(settings.id);mecFluentCustomScrollbar()}
304function initMonthNavigator(month_id){$('#mec_month_navigator'+settings.id+'_'+month_id+' .mec-load-month').off('click').on('click',function(){var year=$(this).data('mec-year');var month=$(this).data('mec-month');setMonth(year,month,active_week,!0)})}
305function search(year,month,week,navigation_click){var week_number=(String(week).slice(-1));if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_weekly_view_load_month&mec_year="+year+"&mec_month="+month+"&mec_week="+week_number+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_weekly_view_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-weekly-view-month-navigator-container").html('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();toggleMonth(response.current_month.id);setThisWeek(response.week_id,!0);mecFluentCustomScrollbar();$(document).trigger('mec_search_init',['weekly_view',settings,response])},error:function(){}})}
306function setMonth(year,month,week,navigation_click){var month_id=''+year+month;var week_number=(String(week).slice(-1));active_month=month;active_year=year;navigation_click=navigation_click||!1;if($("#mec_weekly_view_month_"+settings.id+"_"+month_id).length){$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);toggleMonth(month_id);setThisWeek(''+month_id+week_number,!0);mecFluentCustomScrollbar()}else{if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_weekly_view_load_month&mec_year="+year+"&mec_month="+month+"&mec_week="+week_number+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigation_click,dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$('#mec_skin_'+settings.id+' .mec-calendar-d-top h3').after(response.topWeeks);$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_weekly_view_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-weekly-view-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();toggleMonth(response.current_month.id);setThisWeek(response.week_id,!0);$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);mecFluentCustomScrollbar()},error:function(){}})}}
307function toggleMonth(month_id){$('#mec_skin_'+settings.id+' .mec-month-container').addClass('mec-util-hidden');$('#mec_weekly_view_month_'+settings.id+'_'+month_id).removeClass('mec-util-hidden');$('#mec_skin_'+settings.id+' .mec-month-navigator').addClass('mec-util-hidden');$('#mec_month_navigator'+settings.id+'_'+month_id).removeClass('mec-util-hidden');if(settings.month_navigator)initMonthNavigator(month_id);
307jQuery(document).trigger('mec_toggle_month',[settings,month_id])}
308function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return}
309e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
310mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}}}(jQuery));(function($){$.fn.mecDailyView=function(options){var active_month;var active_year;var active_day;var settings=$.extend({today:null,id:0,changeDayElement:'.mec-daily-view-day',events_label:'Events',event_label:'Event',month_navigator:0,atts:'',ajax_url:'',sf:{},},options);active_month=settings.month;active_year=settings.year;active_day=settings.day;mecFluentCustomScrollbar();setToday(settings.today);setListeners();if(settings.month_navigator)initMonthNavigator(settings.month_id);initDaysSlider(settings.month_id);mecFocusDay(settings);if(settings.sf.container!==''){$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month,active_day)}});$(settings.sf.container).addClass('mec-skin-search-init')}
311function setListeners(){$(settings.changeDayElement).on('click',function(){var today=$(this).data('day-id');setToday(today);mecFluentCustomScrollbar()});$('.mec-subscribe-to-calendar-btn').off('click').on('click',function(){$(this).parent().find('>.mec-subscribe-to-calendar-items').toggle()});if(settings.sed_method!='0'){sed()}}
312var current_monthday;function setToday(today){if(!$('#mec_daily_view_day'+settings.id+'_'+today).length){setToday(parseInt(today)-1);return!1}
313$('.mec-daily-view-day').removeClass('mec-daily-view-day-active mec-color');$('#mec_daily_view_day'+settings.id+'_'+today).addClass('mec-daily-view-day-active mec-color');$('.mec-daily-view-date-events').addClass('mec-util-hidden');$('#mec_daily_view_date_events'+settings.id+'_'+today).removeClass('mec-util-hidden');$('.mec-daily-view-events').addClass('mec-util-hidden');$('#mec-daily-view-events'+settings.id+'_'+today).removeClass('mec-util-hidden');var weekday=$('#mec_daily_view_day'+settings.id+'_'+today).data('day-weekday');var monthday=$('#mec_daily_view_day'+settings.id+'_'+today).data('day-monthday');var count=$('#mec_daily_view_day'+settings.id+'_'+today).data('events-count');var month_id=$('#mec_daily_view_day'+settings.id+'_'+today).data('month-id');$('#mec_today_container'+settings.id+'_'+month_id).html('<h2>'+monthday+'</h2><h3>'+weekday+'</h3><div class="mec-today-count">'+count+' '+(count>1?settings.events_label:settings.event_label)+'</div>');if(monthday<=9)current_monthday='0'+monthday;else current_monthday=monthday}
314function initMonthNavigator(month_id){$('#mec_month_navigator'+settings.id+'_'+month_id+' .mec-load-month').off('click');$('#mec_month_navigator'+settings.id+'_'+month_id+' .mec-load-month').on('click',function(){var year=$(this).data('mec-year');var month=$(this).data('mec-month');setMonth(year,month,current_monthday,!0)})}
315function initDaysSlider(month_id,day_id){mec_g_month_id=month_id;var owl_rtl=$('body').hasClass('rtl')?!0:!1;var owl=$("#mec-owl-calendar-d-table-"+settings.id+"-"+month_id);if(owl.hasClass('owl-loaded')){owl.trigger('destroy.owl.carousel');owl.removeClass('owl-loaded');owl.find('.owl-stage-outer').children().unwrap()}
316var parentWidth=owl.parent().width();var isNarrowContainer=parentWidth<500;var responsiveConfig={0:{items:owl.closest('.mec-fluent-wrap,.mec-liquid-wrap').length>0?3:2,},479:{items:isNarrowContainer?3:4,},767:{items:isNarrowContainer?4:7,},960:{items:isNarrowContainer?5:14,},1000:{items:isNarrowContainer?6:19,},1200:{items:isNarrowContainer?7:22,}};owl.owlCarousel({responsiveClass:!0,responsive:responsiveConfig,dots:!1,loop:!1,rtl:owl_rtl,navElement:'button type="button" role="button"',});$(document).trigger('mec_daily_slider_init',[owl,owl_rtl]);$("#mec_daily_view_month_"+settings.id+"_"+month_id+" .mec-table-d-next").click(function(e){e.preventDefault();owl.trigger('next.owl.carousel')});$("#mec_daily_view_month_"+settings.id+"_"+month_id+" .mec-table-d-prev").click(function(e){e.preventDefault();owl.trigger('prev.owl.carousel')});if(typeof day_id==='undefined')day_id=$('.mec-daily-view-day-active').data('day-id');var today_str=day_id.toString().substring(6,8);var today_int=parseInt(today_str);owl.trigger('owl.goTo',[today_int]);owl.removeClass('owl-hidden')}
317function search(year,month,day){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_daily_view_load_month&mec_year="+year+"&mec_month="+month+"&mec_day="+day+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_daily_view_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-calendar-a-month.mec-clear").html('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();active_year=response.current_month.year;active_month=response.current_month.month;toggleMonth(response.current_month.id,''+active_year+active_month+active_day);setToday(''+active_year+active_month+active_day);mecFocusDay(settings);mecFluentCustomScrollbar();$(document).trigger('mec_search_init',['daily_view',settings,response])},error:function(){}})}
318function setMonth(year,month,day,navigation_click){var month_id=''+year+month;active_month=month;active_year=year;active_day=day;navigation_click=navigation_click||!1;if($("#mec_daily_view_month_"+settings.id+"_"+month_id).length){$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);toggleMonth(month_id);setToday(''+month_id+day)}else{if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_daily_view_load_month&mec_year="+year+"&mec_month="+month+"&mec_day="+day+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigation_click,dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_daily_view_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-calendar-a-month.mec-clear").append('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();toggleMonth(response.current_month.id,''+year+month+'01');setToday(''+year+month+'01');$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);mecFluentCustomScrollbar()},error:function(){}})}}
319function toggleMonth(month_id,day_id){$('#mec_skin_'+settings.id+' .mec-month-container').addClass('mec-util-hidden');$('#mec_daily_view_month_'+settings.id+'_'+month_id).removeClass('mec-util-hidden');$('#mec_skin_'+settings.id+' .mec-month-navigator').addClass('mec-util-hidden');$('#mec_month_navigator'+settings.id+'_'+month_id).removeClass('mec-util-hidden');if(settings.month_navigator)initMonthNavigator(month_id);initDaysSlider(month_id,day_id);mecFocusDay(settings);
319jQuery(document).trigger('mec_toggle_month',[settings,month_id])}
320function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return}
321e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
322mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}}}(jQuery));(function($){$.fn.mecTimeTable=function(options){var active_year;var active_month;var active_week;var active_week_number;var active_day;var settings=$.extend({today:null,week:1,active_day:1,id:0,changeWeekElement:'.mec-load-week',month_navigator:0,atts:'',ajax_url:'',sf:{}},options);if(settings.sf.container!==''){$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month,active_week,active_day)}});$(settings.sf.container).addClass('mec-skin-search-init')}
323setThisWeek(settings.month_id+settings.week,settings.active_day);setListeners();if(settings.month_navigator)initMonthNavigator(settings.month_id);function setListeners(){$(settings.changeWeekElement).off('click').on('click',function(){var week=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('week-id');var max_weeks=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('max-weeks');var new_week_number=active_week_number;if($(this).hasClass('mec-previous-month')){week=parseInt(week)-1;new_week_number--}else{week=parseInt(week)+1;new_week_number++}
324if(new_week_number<=1||new_week_number>=max_weeks){$(this).css({'opacity':.6,'cursor':'default'});$(this).find('i').css({'opacity':.6,'cursor':'default'})}else{$('#mec_skin_'+settings.id+' .mec-load-week, #mec_skin_'+settings.id+' .mec-load-week i').css({'opacity':1,'cursor':'pointer'})}
325if(new_week_number===0||new_week_number>max_weeks){}else{setThisWeek(week)}});$('#mec_skin_'+settings.id+' .mec-weekly-view-week dt').not('.mec-timetable-has-no-event').off('click').on('click',function(){var day=$(this).data('date-id');setDay(day)});if(settings.sed_method!='0'){sed()}}
326function setThisWeek(week,day){if(!$('#mec_weekly_view_week_'+settings.id+'_'+week).length){return setThisWeek((parseInt(week)-1),day)}
327$('#mec_skin_'+settings.id+' .mec-weekly-view-week').removeClass('mec-weekly-view-week-active');$('#mec_weekly_view_week_'+settings.id+'_'+week).addClass('mec-weekly-view-week-active');setDay(day);active_week=week;active_week_number=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('week-number');$('#mec_skin_'+settings.id+' .mec-calendar-d-top').find('.mec-current-week').find('span').remove();$('#mec_skin_'+settings.id+' .mec-calendar-d-top').find('.mec-current-week').append('<span>'+active_week_number+'</span>');if(active_week_number===1){$('#mec_skin_'+settings.id+' .mec-previous-month.mec-load-week').css({'opacity':.6,'cursor':'default'});$('#mec_skin_'+settings.id+' .mec-previous-month.mec-load-week').find('i').css({'opacity':.6,'cursor':'default'})}}
328function setDay(day){if(typeof day==='undefined'){day=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active dt').not('.mec-timetable-has-no-event').first().data('date-id')}
329$('#mec_skin_'+settings.id+' dt').removeClass('mec-timetable-day-active');$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active dt[data-date-id="'+day+'"]').addClass('mec-timetable-day-active');$('#mec_skin_'+settings.id+' .mec-weekly-view-date-events').addClass('mec-util-hidden');$('.mec_weekly_view_date_events'+settings.id+'_'+day).removeClass('mec-util-hidden').show()}
330function initMonthNavigator(month_id){$('#mec_month_navigator'+settings.id+'_'+month_id+' .mec-load-month').off('click').on('click',function(){var year=$(this).data('mec-year');var month=$(this).data('mec-month');setMonth(year,month,active_week)})}
331function search(year,month,week){var week_number=(String(week).slice(-1));if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');year=typeof year=='undefined'?'':year;month=typeof month=='undefined'?'':month;$('body').data('currentweek',$("#mec_skin_events_"+settings.id).find('.mec-current-week > span').html());$.ajax({url:settings.ajax_url,data:"action=mec_timetable_load_month&mec_year="+year+"&mec_month="+month+"&mec_week="+week_number+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_timetable_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-weekly-view-month-navigator-container").html('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();toggleMonth(response.current_month.id);setThisWeek(response.week_id);
331mec_focus_week(settings.id,'timetable');mecFluentCustomScrollbar();$(document).trigger('mec_search_init',['timetable',settings,response])},error:function(){}})}
332function setMonth(year,month,week){var month_id=''+year+month;var week_number=(String(week).slice(-1));active_month=month;active_year=year;if($("#mec_timetable_month_"+settings.id+"_"+month_id).length){toggleMonth(month_id);setThisWeek(''+month_id+week_number)}else{if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_timetable_load_month&mec_year="+year+"&mec_month="+month+"&mec_week="+week_number+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_timetable_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-weekly-view-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();toggleMonth(response.current_month.id);setThisWeek(response.week_id);$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year)},error:function(){}})}}
333function toggleMonth(month_id){$('#mec_skin_'+settings.id+' .mec-month-container').addClass('mec-util-hidden');$('#mec_timetable_month_'+settings.id+'_'+month_id).removeClass('mec-util-hidden');$('#mec_skin_'+settings.id+' .mec-month-navigator').addClass('mec-util-hidden');$('#mec_month_navigator'+settings.id+'_'+month_id).removeClass('mec-util-hidden');if(settings.month_navigator)initMonthNavigator(month_id);jQuery(document).trigger('mec_toggle_month',[settings,month_id])}
334function sed(){$("#mec_skin_"+settings.id+" .mec-timetable-event-title a").off('click').on('click',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
335mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}}}(jQuery));(function($){$.fn.mecWeeklyProgram=function(options){var settings=$.extend({id:0,atts:'',sf:{}},options);if(settings.sf.container!==''){$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search()}});$(settings.sf.container).addClass('mec-skin-search-init')}
336setListeners();function setListeners(){if(settings.sed_method!='0'){sed()}}
337function search(){var $modal=$('.mec-modal-result');if($modal.length===0)$('.mec-wrap').append('<div class="mec-modal-result"></div>');$modal.addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_weeklyprogram_load&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){$modal.removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).html(response.date_events);setListeners();$(document).trigger('mec_search_init',['weeklyprogram',settings,response])},error:function(){}})}
338function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return}
339e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
340mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}}}(jQuery));(function($){$.fn.mecMasonryView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},end_date:'',offset:0,start_date:'',pagination:'0',infinite_locked:!1,},options);let history=[];const $next=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-next-button');const $prev=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-prev-button');setListeners();initMasonry();if(typeof custom_dev!==undefined)var custom_dev;if(custom_dev=='yes'){$(".mec-wrap").css("height","1550");if(Math.max(document.documentElement.clientWidth,window.innerWidth||0)<768){$(".mec-wrap").css("height","5500")}
341if(Math.max(document.documentElement.clientWidth,window.innerWidth||0)<480){$(".mec-wrap").css("height","5000")}
342$(".mec-event-masonry .mec-masonry-item-wrap:nth-child(n+20)").css("display","none");$(".mec-load-more-button").on("click",function(){$(".mec-event-masonry .mec-masonry-item-wrap:nth-child(n+20)").css("display","block");$(".mec-wrap").css("height","auto");initMasonry();$(".mec-load-more-button").hide()})
343$(".mec-events-masonry-cats a:first-child").on("click",function(){$(".mec-wrap").css("height","auto");$(".mec-event-masonry .mec-masonry-item-wrap:nth-child(n+20)").css("display","block");$(".mec-load-more-button").hide();initMasonry()})
344$(".mec-events-masonry-cats a:not(:first-child)").on("click",function(){$(".mec-load-more-button").hide();$(".mec-wrap").css("height","auto");$(".mec-wrap").css("min-height","400");$(".mec-event-masonry .mec-masonry-item-wrap").css("display","block");var element=document.querySelector("#mec_skin_"+settings.id+" .mec-event-masonry");var selector=$(this).attr('data-group');var CustomShuffle=new Shuffle(element,{itemSelector:'.mec-masonry-item-wrap',});CustomShuffle.sort({by:element.getAttribute('data-created'),});CustomShuffle.filter(selector!='*'?selector:Shuffle.ALL_ITEMS);$(".mec-event-masonry .mec-masonry-item-wrap").css("visibility","visible")})}
345if(mecdata.elementor_edit_mode!='no')elementorFrontend.hooks.addAction('frontend/element_ready/global',initMasonry());function initMasonry(){var $container=$("#mec_skin_"+settings.id+" .mec-event-masonry");var data_sortAscending=$("#mec_skin_"+settings.id).data('sortascending');$container.imagesLoaded(function(){var $grid=$container.isotope({filter:'*',itemSelector:'.mec-masonry-item-wrap',getSortData:{date:'[data-sort-masonry]',},sortBy:'date',sortAscending:data_sortAscending,animationOptions:{duration:750,easing:'linear',queue:!1},});
345if(settings.fit_to_row==1)$grid.isotope({layoutMode:'fitRows',sortAscending:data_sortAscending,});$('.elementor-tabs').find('.elementor-tab-title').click(function(){$grid.isotope({sortBy:'date',sortAscending:data_sortAscending,})})})
346$("#mec_skin_"+settings.id+" .mec-events-masonry-cats a").click(function(){var selector=$(this).attr('data-filter');var $grid_cat=$container.isotope({filter:selector,itemSelector:'.mec-masonry-item-wrap',getSortData:{date:'[data-sort-masonry]',},sortBy:'date',sortAscending:data_sortAscending,animationOptions:{duration:750,easing:'linear',queue:!1},});if(settings.masonry_like_grid==1)$grid_cat.isotope({sortBy:'date',sortAscending:data_sortAscending,});return!1});var $optionSets=$("#mec_skin_"+settings.id+" .mec-events-masonry-cats"),$optionLinks=$optionSets.find('a');$optionLinks.click(function(){var $this=$(this);if($this.hasClass('selected'))return!1;var $optionSet=$this.parents('.mec-events-masonry-cats');$optionSet.find('.mec-masonry-cat-selected').removeClass('mec-masonry-cat-selected');$this.addClass('mec-masonry-cat-selected')})}
347function setListeners(){$("#mec_skin_"+settings.id+" .mec-events-masonry-cats > a").click(function(){var mec_load_more_btn=$("#mec_skin_"+settings.id+" .mec-load-more-button");var mec_filter_value=$(this).data('filter').replace('.mec-t','');if(mec_load_more_btn.hasClass('mec-load-more-loading'))mec_load_more_btn.removeClass('mec-load-more-loading');if(mec_load_more_btn.hasClass("mec-hidden-"+mec_filter_value))mec_load_more_btn.addClass("mec-util-hidden");else mec_load_more_btn.removeClass("mec-util-hidden")});$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore()});if(settings.pagination==='scroll'){$(window).on("scroll",function(event){var $target=$("#mec_skin_"+settings.id+" .mec-load-more-wrap");var finished=$target.data('page-finished');if(finished)return;var hT=$target.offset().top,hH=$target.outerHeight(),wH=$(window).height(),wS=$(this).scrollTop();if(wS+100>hT+hH-wH&&!settings.infinite_locked){settings.infinite_locked=!0;$target.addClass('mec-load-more-scroll-loading');loadMore()}})}
348if(settings.pagination==='nextprev'){const $EW=$("#mec_skin_"+settings.id+" .mec-event-masonry");let next_disabled=!1;$prev.on('click',function(){if(history.length){let page=history.pop();var oldItems=$EW.find('.mec-masonry-item-wrap');$EW.isotope('remove',oldItems);var newItems=$('<div>'+page.html+'</div>').find('.mec-masonry-item-wrap');newItems.each(function(index){$EW.isotope().append(newItems[index]).isotope('appended',newItems[index])});settings.end_date=page.end_date;settings.offset=page.offset;settings.current_month_divider=page.current_month_divider;$next.removeClass('mec-util-hidden')}
349if(!history.length)$prev.addClass('mec-util-hidden');});$next.on('click',function(e){e.preventDefault();if(next_disabled)return;next_disabled=!0;$EW.addClass('mec-loading-events');history.push({end_date:settings.end_date,offset:settings.offset,current_month_divider:settings.current_month_divider,html:$EW.html()});loadMore(function(response){if(response.count){var oldItems=$EW.find('.mec-masonry-item-wrap');$EW.isotope('remove',oldItems);var newItems=$(response.html).find('.mec-masonry-item-wrap');newItems.each(function(index){$EW.isotope().append(newItems[index]).isotope('appended',newItems[index])})}else history.pop();next_disabled=!1;$EW.removeClass('mec-loading-events');if(history.length)$prev.removeClass('mec-util-hidden');if(response.count===0||(typeof response.has_more_event!=='undefined'&&!response.has_more_event))$next.addClass('mec-util-hidden');})})}
350if(settings.sed_method!='0'){sed()}}
351function sed(){$("#mec_skin_"+settings.id+" .mec-masonry-img a, #mec_skin_"+settings.id+" .mec-event-title a, #mec_skin_"+settings.id+" .mec-booking-button").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return}
352e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
353mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}
354function loadMore(callback){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");var mec_cat_elem=$('#mec_skin_'+settings.id).find('.mec-masonry-cat-selected');var mec_filter_value=(mec_cat_elem&&mec_cat_elem.data('filter')!=undefined)?mec_cat_elem.data('filter').replace('.mec-t',''):'';var mec_filter_by=$('#mec_skin_'+settings.id).data('filterby');$.ajax({url:settings.ajax_url,data:"action=mec_masonry_load_more&mec_filter_by="+mec_filter_by+"&mec_filter_value="+mec_filter_value+"&mec_start_date="+sett
354ings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count===0){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading").addClass("mec-util-hidden mec-hidden-"+mec_filter_value);settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").data('page-finished',!0).removeClass('mec-load-more-scroll-loading');if(typeof callback==='function')callback(response);}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");if(typeof callback==='function')callback(response);else{var node=$("#mec_skin_"+settings.id+" .mec-event-masonry");var newItems=$(response.html).find('.mec-masonry-item-wrap');newItems.each(function(index){node.isotope().append(newItems[index]).isotope('appended',newItems[index])})}
355$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed()}
356settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").removeClass('mec-load-more-scroll-loading');$(document).trigger('mec_load_more_init',['masonry',settings])}},error:function(){}})}}}(jQuery));(function($){$.fn.mecListView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},current_month_divider:'',end_date:'',offset:0,limit:0,pagination:'0',infinite_locked:!1,},options);var sf;let history=[];const $next=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-next-button');const $prev=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-prev-button');setListeners();function setListeners(){if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search()}});$(settings.sf.container).addClass('mec-skin-search-init')}
357$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore()});if(settings.pagination==='scroll'){$(window).on("scroll",function(event){var $target=$("#mec_skin_"+settings.id+" .mec-load-more-wrap");if($target.length===0)return;var finished=$target.data('page-finished');if(finished)return;var hT=$target.offset().top,hH=$target.outerHeight(),wH=$(window).height(),wS=$(this).scrollTop();if(wS+100>hT+hH-wH&&!settings.infinite_locked){settings.infinite_locked=!0;$target.addClass('mec-load-more-scroll-loading');loadMore()}})}
358if(settings.pagination==='nextprev'){const $EW=$("#mec_skin_events_"+settings.id);let next_disabled=!1;$prev.on('click',function(){if(history.length){let page=history.pop();$EW.html(page.html);settings.end_date=page.end_date;settings.offset=page.offset;settings.current_month_divider=page.current_month_divider;$next.removeClass('mec-util-hidden')}
359if(!history.length)$prev.addClass('mec-util-hidden');});$next.on('click',function(e){e.preventDefault();if(next_disabled)return;next_disabled=!0;$EW.addClass('mec-loading-events');history.push({end_date:settings.end_date,offset:settings.offset,current_month_divider:settings.current_month_divider,html:$EW.html()});loadMore(function(response){if(response.count)$EW.html(response.html);else history.pop();next_disabled=!1;$EW.removeClass('mec-loading-events');if(history.length)$prev.removeClass('mec-util-hidden');if(response.count===0||(typeof response.has_more_event!=='undefined'&&!response.has_more_event))$next.addClass('mec-util-hidden');})})}
360if(settings.style==='accordion'){if(settings.toggle_month_divider){$('#mec_skin_'+settings.id+' .mec-month-divider:first-of-type').addClass('active');$('#mec_skin_'+settings.id+' .mec-month-divider:first-of-type').find('i').removeClass('mec-sl-arrow-down').addClass('mec-sl-arrow-up');toggle()}
361accordion()}
362if(settings.sed_method!='0'){sed()}}
363function toggle(){$('#mec_skin_'+settings.id+' .mec-month-divider').off("click").on("click",function(event){event.preventDefault();var status=$(this).hasClass('active');$('#mec_skin_'+settings.id+' .mec-month-divider').removeClass('active');$('#mec_skin_'+settings.id+' .mec-divider-toggle').slideUp('fast');if(status){$(this).removeClass('active');$('.mec-month-divider').find('i').removeClass('mec-sl-arrow-up').addClass('mec-sl-arrow-down')}else{$(this).addClass('active');$('.mec-month-divider').find('i').removeClass('mec-sl-arrow-up').addClass('mec-sl-arrow-down')
364$(this).find('i').removeClass('mec-sl-arrow-down').addClass('mec-sl-arrow-up');var month=$(this).data('toggle-divider');$('#mec_skin_'+settings.id+' .'+month).slideDown('fast')}})}
365function toggleLoadmore(){$('#mec_skin_'+settings.id+' .mec-month-divider:not(:last)').each(function(){if($(this).hasClass('active'))$(this).removeClass('active');var month=$(this).data('toggle-divider');$('#mec_skin_'+settings.id+' .'+month).slideUp('fast')});$('#mec_skin_'+settings.id+' .mec-month-divider:last').addClass('active');toggle()}
366function accordion(){$("#mec_skin_"+settings.id+" .mec-toggle-item-inner").off("click").on("click",function(event){event.preventDefault();var $this=$(this);$(this).parent().find(".mec-content-toggle").slideToggle("fast",function(){$this.children("i").toggleClass("mec-sl-arrow-down mec-sl-arrow-up")});var unique_id=$(this).parent().find(".mec-modal-wrap").data('unique-id');if(typeof window['mec_init_gmap'+unique_id]==='function')window['mec_init_gmap'+unique_id]();});$(document).trigger('mec_skin_accordion_init',settings)}
367function sed(){$("#mec_skin_"+settings.id+" .mec-event-title > a, #mec_skin_"+settings.id+" .mec-booking-button, #mec_skin_"+settings.id+" .mec-detail-button").off('click').on('click',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
368mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)});$("#mec_skin_"+settings.id+" .mec-event-image a img").off('click').on('click',function(e){e.preventDefault();var href=$(this).parent().attr('href');var id=$(this).parent().data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
369mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}
370function loadMore(callback){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_list_load_more&mec_start_date="+settings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&current_month_divider="+settings.current_month_divider+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count===0){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").removeClass('mec-load-more-scroll-loading');mec_toggle_shortcode_pagination(settings.id,'hide');if(typeof callback==='function')callback(response);}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))mec_toggle_shortcode_pagination(settings.id,'show');else mec_toggle_shortcode_pagination(settings.id,'hide');if(typeof callback==='function')callback(response);else $("#mec_skin_events_"+settings.id).append(response.html);$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;settings.current_month_divider=response.current_month_divider;if(settings.sed_method!='0'){sed()}
371if(settings.style==='accordion'){if(settings.toggle_month_divider)toggleLoadmore();accordion()}
372settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").removeClass('mec-load-more-scroll-loading')}
373$(document).trigger('mec_load_more_init',['list',settings])},error:function(){}})}
374function search(){$("#mec_skin_no_events_"+settings.id).addClass("mec-util-hidden");var $skinRoot=jQuery("#mec_skin_"+settings.id);var $loading_element=$skinRoot.find('.mec-modal-result');if($loading_element.length===0){$skinRoot.append('<div class="mec-modal-result"></div>');$loading_element=$skinRoot.find('.mec-modal-result')}
375$loading_element.addClass('mec-month-navigator-loading');jQuery("#gmap-data-"+settings.id).val("");history=[];$prev.addClass('mec-util-hidden');$.ajax({url:settings.ajax_url,data:"action=mec_list_load_more&mec_start_date="+sett
375ings.start_date+"&"+settings.atts+"&current_month_divider=0&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(response.count===0){$("#mec_skin_events_"+settings.id).html('');$loading_element.removeClass("mec-month-navigator-loading");$skinRoot.find('.mec-skin-map-container').addClass("mec-util-hidden");mec_toggle_shortcode_pagination(settings.id,'hide');$("#mec_skin_no_events_"+settings.id).removeClass("mec-util-hidden")}else{$("#mec_skin_events_"+settings.id).html(response.html);$loading_element.removeClass("mec-month-navigator-loading");$skinRoot.find('.mec-skin-map-container').removeClass("mec-util-hidden");if(response.count>=settings.limit)mec_toggle_shortcode_pagination(settings.id,'show');else mec_toggle_shortcode_pagination(settings.id,'hide');settings.end_date=response.end_date;settings.offset=response.offset;settings.current_month_divider=response.current_month_divider;if(settings.sed_method!='0'){sed()}
376if(settings.style==='accordion'){if(settings.toggle_month_divider)toggle();accordion()}}
377$(document).trigger('mec_search_init',['list',settings,response])},error:function(){}})}}}(jQuery));(function($){$.fn.mecGridView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},end_date:'',offset:0,start_date:'',pagination:'0',infinite_locked:!1,},options);var sf;let history=[];const $next=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-next-button');const $prev=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-prev-button');setListeners();function setListeners(){if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search()}});$(settings.sf.container).addClass('mec-skin-search-init')}
378$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore()});if(settings.pagination==='scroll'){$(window).on("scroll",function(event){var $target=$("#mec_skin_"+settings.id+" .mec-load-more-wrap");var finished=$target.data('page-finished');if(finished)return;var hT=$target.offset().top,hH=$target.outerHeight(),wH=$(window).height(),wS=$(this).scrollTop();if(wS+100>hT+hH-wH&&!settings.infinite_locked){settings.infinite_locked=!0;$target.addClass('mec-load-more-scroll-loading');loadMore()}})}
379if(settings.pagination==='nextprev'){const $EW=$("#mec_skin_events_"+settings.id);let next_disabled=!1;$prev.on('click',function(){if(history.length){let page=history.pop();$EW.html(page.html);settings.end_date=page.end_date;settings.offset=page.offset;settings.current_month_divider=page.current_month_divider;$next.removeClass('mec-util-hidden')}
380if(!history.length)$prev.addClass('mec-util-hidden');});$next.on('click',function(e){e.preventDefault();if(next_disabled)return;next_disabled=!0;$EW.addClass('mec-loading-events');history.push({end_date:settings.end_date,offset:settings.offset,current_month_divider:settings.current_month_divider,html:$EW.html()});loadMore(function(response){if(response.count)$EW.html(response.html);else history.pop();next_disabled=!1;$EW.removeClass('mec-loading-events');if(history.length)$prev.removeClass('mec-util-hidden');if(response.count===0||(typeof response.has_more_event!=='undefined'&&!response.has_more_event))$next.addClass('mec-util-hidden');})})}
381if(settings.sed_method!='0'){sed()}}
382function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a, #mec_skin_"+settings.id+" .mec-booking-button").off('click').on('click',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
383mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)});$("#mec_skin_"+settings.id+" .mec-event-image a img").off('click').on('click',function(e){e.preventDefault();var href=$(this).parent().attr('href');var id=$(this).parent().data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
384mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}
385function loadMore(callback){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_grid_load_more&mec_start_date="+sett
385ings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count===0){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading").addClass("mec-util-hidden");settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").data('page-finished',!0).removeClass('mec-load-more-scroll-loading');if(typeof callback==='function')callback(response);}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");if(typeof callback==='function')callback(response);else $("#mec_skin_events_"+settings.id).append(response.html);$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed()}
386settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").removeClass('mec-load-more-scroll-loading')}
387$(document).trigger('mec_load_more_init',['grid',settings])},error:function(){}})}
388function search(){$("#mec_skin_no_events_"+settings.id).addClass("mec-util-hidden");var $skinRoot=jQuery("#mec_skin_"+settings.id);var $loading_element=$skinRoot.find('.mec-modal-result');if($loading_element.length===0){$skinRoot.append('<div class="mec-modal-result"></div>');$loading_element=$skinRoot.find('.mec-modal-result')}
389$loading_element.addClass('mec-month-navigator-loading');jQuery("#gmap-data-"+settings.id).val("");$.ajax({url:settings.ajax_url,data:"action=mec_grid_load_more&mec_start_date="+settings.start_date+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(response.count===0){$("#mec_skin_events_"+settings.id).html('');$loading_element.removeClass("mec-month-navigator-loading");$skinRoot.find('.mec-skin-map-container').addClass("mec-util-hidden");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_no_events_"+settings.id).removeClass("mec-util-hidden")}else{$("#mec_skin_events_"+settings.id).html(response.html);$loading_element.removeClass("mec-month-navigator-loading");$skinRoot.find('.mec-skin-map-container').removeClass("mec-util-hidden");if(response.count>=settings.limit)$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed()}}
390$(document).trigger('mec_search_init',['grid',settings,response])},error:function(){}})}}}(jQuery));(function($){$.fn.mecCustomView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},end_date:'',offset:0,start_date:'',pagination:'0',infinite_locked:!1,},options);setListeners();var sf;function setListeners(){if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search()}});$(settings.sf.container).addClass('mec-skin-search-init')}
391$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore()});if(settings.pagination==='scroll'){$(window).on("scroll",function(event){var $target=$("#mec_skin_"+settings.id+" .mec-load-more-wrap");var finished=$target.data('page-finished');if(finished)return;var hT=$target.offset().top,hH=$target.outerHeight(),wH=$(window).height(),wS=$(this).scrollTop();if(wS+100>hT+hH-wH&&!settings.infinite_locked){settings.infinite_locked=!0;$target.addClass('mec-load-more-scroll-loading');loadMore()}})}
392if(settings.sed_method!='0'){sed()}}
393function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a, #mec_skin_"+settings.id+" .mec-booking-button").off('click').on('click',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
394mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)});$("#mec_skin_"+settings.id+" .mec-event-image a img").off('click').on('click',function(e){e.preventDefault();var href=$(this).parent().attr('href');var id=$(this).parent().data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
395mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}
396function loadMore(){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_custom_load_more&mec_start_date="+sett
396ings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count===0){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading").addClass("mec-util-hidden");settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").data('page-finished',!0).removeClass('mec-load-more-scroll-loading')}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");var html=$(response.html);if($('.mec-month-divider',html).length){var df=$('.mec-month-divider:first',html).data('toggle-divider');var dl=$("#mec_skin_events_"+settings.id+" .mec-month-divider:last").data('toggle-divider');if(df==dl){$(html).find('.mec-month-divider:first').remove();response.html=html}}
397$("#mec_skin_events_"+settings.id).append(response.html);$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;if($('.mec-event-sd-countdown').length>0){$('.mec-event-sd-countdown').each(function(event){var dc=$(this).attr('data-date-custom');$(this).mecCountDown({date:dc,format:"off"},function(){})})}
398if(settings.sed_method!='0'){sed()}
399settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").removeClass('mec-load-more-scroll-loading')}
400$(document).trigger('mec_load_more_init',['custom',settings])},error:function(){}})}
401function search(){$("#mec_skin_no_events_"+settings.id).addClass("mec-util-hidden");var $skinRoot=jQuery("#mec_skin_"+settings.id);var $loading_element=$skinRoot.find('.mec-modal-result');if($loading_element.length===0){$skinRoot.append('<div class="mec-modal-result"></div>');$loading_element=$skinRoot.find('.mec-modal-result')}
402$loading_element.addClass('mec-month-navigator-loading');jQuery("#gmap-data-"+settings.id).val("");$.ajax({url:settings.ajax_url,data:"action=mec_custom_load_more&mec_start_date="+settings.start_date+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(response.count===0){$("#mec_skin_events_"+settings.id).html('');$loading_element.removeClass("mec-month-navigator-loading");$skinRoot.find('.mec-skin-map-container').addClass("mec-util-hidden");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_no_events_"+settings.id).removeClass("mec-util-hidden")}else{$("#mec_skin_events_"+settings.id).html(response.html);$loading_element.removeClass("mec-month-navigator-loading");$skinRoot.find('.mec-skin-map-container').removeClass("mec-util-hidden");if(response.count>=settings.limit)$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed()}}
403$(document).trigger('mec_search_init',['custom',settings,response])},error:function(){}})}}}(jQuery));(function($){$.fn.mecTimelineView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},end_date:'',offset:0,start_date:'',pagination:'0',infinite_locked:!1,},options);var sf;let history=[];const $next=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-next-button');const $prev=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-prev-button');setListeners();function setListeners(){if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search()}});$(settings.sf.container).addClass('mec-skin-search-init')}
404$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore()});if(settings.pagination==='scroll'){$(window).on("scroll",function(event){var $target=$("#mec_skin_"+settings.id+" .mec-load-more-wrap");var finished=$target.data('page-finished');if(finished)return;var hT=$target.offset().top,hH=$target.outerHeight(),wH=$(window).height(),wS=$(this).scrollTop();if(wS+100>hT+hH-wH&&!settings.infinite_locked){settings.infinite_locked=!0;$target.addClass('mec-load-more-scroll-loading');loadMore()}})}
405if(settings.pagination==='nextprev'){const $EW=$("#mec_skin_events_"+settings.id);let next_disabled=!1;$prev.on('click',function(){if(history.length){let page=history.pop();$EW.html(page.html);settings.end_date=page.end_date;settings.offset=page.offset;settings.current_month_divider=page.current_month_divider;$next.removeClass('mec-util-hidden')}
406if(!history.length)$prev.addClass('mec-util-hidden');});$next.on('click',function(e){e.preventDefault();if(next_disabled)return;next_disabled=!0;$EW.addClass('mec-loading-events');history.push({end_date:settings.end_date,offset:settings.offset,current_month_divider:settings.current_month_divider,html:$EW.html()});loadMore(function(response){if(response.count)$EW.html(response.html);else history.pop();next_disabled=!1;$EW.removeClass('mec-loading-events');if(history.length)$prev.removeClass('mec-util-hidden');if(response.count===0||(typeof response.has_more_event!=='undefined'&&!response.has_more_event))$next.addClass('mec-util-hidden');})})}
407if(settings.sed_method!='0'){sed()}}
408function sed(){$("#mec_skin_"+settings.id+" .mec-timeline-event-image a, #mec_skin_"+settings.id+" .mec-event-title a, #mec_skin_"+settings.id+" .mec-booking-button").off('click').on('click',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
409mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)});$("#mec_skin_"+settings.id+" .mec-event-image a img").off('click').on('click',function(e){e.preventDefault();var href=$(this).parent().attr('href');var id=$(this).parent().data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
410mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}
411function loadMore(callback){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_timeline_load_more&mec_start_date="+settings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count===0){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading").addClass("mec-util-hidden");settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").data('page-finished',!0).removeClass('mec-load-more-scroll-loading');if(typeof callback==='function')callback(response);}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");if(typeof callback==='function')callback(response);else $("#mec_skin_events_"+settings.id).append(response.html);$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed()}
412settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").removeClass('mec-load-more-scroll-loading')}
413$(document).trigger('mec_load_more_init',['timeline',settings])},error:function(){}})}
414function search(){$("#mec_skin_no_events_"+settings.id).addClass("mec-util-hidden");var $skinRoot=jQuery("#mec_skin_"+settings.id);var $loading_element=$skinRoot.find('.mec-modal-result');if($loading_element.length===0){$skinRoot.append('<div class="mec-modal-result"></div>');$loading_element=$skinRoot.find('.mec-modal-result')}
415$loading_element.addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_timeline_load_more&mec_start_date="+settings.start_date+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(response.count===0){$("#mec_skin_events_"+settings.id).html('');$loading_element.removeClass("mec-month-navigator-loading");$skinRoot.find('.mec-skin-map-container').addClass("mec-util-hidden");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_no_events_"+settings.id).removeClass("mec-util-hidden")}else{$("#mec_skin_events_"+settings.id).html(response.html);$loading_element.removeClass("mec-month-navigator-loading");$skinRoot.find('.mec-skin-map-container').removeClass("mec-util-hidden");if(response.count>=settings.limit)$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed()}}
416$(document).trigger('mec_search_init',['timeline',settings,response])},error:function(){}})}}}(jQuery));(function($){$.fn.mecAgendaView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},current_month_divider:'',end_date:'',offset:0,pagination:'0',infinite_locked:!1,},options);var sf;let history=[];const $next=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-next-button');const $prev=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-prev-button');setListeners();function setListeners(){if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search()}});$(settings.sf.container).addClass('mec-skin-search-init')}
417$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore()});if(settings.pagination==='scroll'){$(window).on("scroll",function(event){var $target=$("#mec_skin_"+settings.id+" .mec-load-more-wrap");var finished=$target.data('page-finished');if(finished)return;var hT=$target.offset().top,hH=$target.outerHeight(),wH=$(window).height(),wS=$(this).scrollTop();if(wS+100>hT+hH-wH&&!settings.infinite_locked){settings.infinite_locked=!0;$target.addClass('mec-load-more-scroll-loading');loadMore()}})}
418if(settings.pagination==='nextprev'){const $EW=$("#mec_skin_events_"+settings.id+" .mec-events-agenda-container");let next_disabled=!1;$prev.on('click',function(){if(history.length){let page=history.pop();$EW.html(page.html);settings.end_date=page.end_date;settings.offset=page.offset;settings.current_month_divider=page.current_month_divider;$next.removeClass('mec-util-hidden')}
419if(!history.length)$prev.addClass('mec-util-hidden');});$next.on('click',function(e){e.preventDefault();if(next_disabled)return;next_disabled=!0;$EW.addClass('mec-loading-events');history.push({end_date:settings.end_date,offset:settings.offset,current_month_divider:settings.current_month_divider,html:$EW.html()});loadMore(function(response){if(response.count)$EW.html(response.html);else history.pop();next_disabled=!1;$EW.removeClass('mec-loading-events');if(history.length)$prev.removeClass('mec-util-hidden');if(response.count===0||(typeof response.has_more_event!=='undefined'&&!response.has_more_event))$next.addClass('mec-util-hidden');})})}
420if(settings.sed_method!='0'){sed()}}
421function sed(){$("#mec_skin_"+settings.id+" .mec-agenda-event-title a").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return}
422e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
423mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}
424function loadMore(callback){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_agenda_load_more&mec_start_date="+settings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&current_month_divider="+settings.current_month_divider+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count===0){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading").addClass("mec-util-hidden");settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").data('page-finished',!0).removeClass('mec-load-more-scroll-loading');if(typeof callback==='function')callback(response);}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");if(typeof callback==='function')callback(response);else $("#mec_skin_events_"+settings.id+" .mec-events-agenda-container").append(response.html);$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;settings.current_month_divider=response.current_month_divider;if(settings.sed_method!='0'){sed()}
425mecFluentCustomScrollbar();settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").removeClass('mec-load-more-scroll-loading')}
426$(document).trigger('mec_load_more_init',['agenda',settings])},error:function(){}})}
427function search(){$("#mec_skin_no_events_"+settings.id).addClass("mec-util-hidden");if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');mecFluentCustomScrollbar();$.ajax({url:settings.ajax_url,data:"action=mec_agenda_load_more&mec_start_date="+settings.start_date+"&"+settings.atts+"&current_month_divider=0&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(response.count===0){$("#mec_skin_events_"+settings.id+" .mec-events-agenda-container").html('');$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_no_events_"+settings.id).removeClass("mec-util-hidden")}else{$("#mec_skin_events_"+settings.id+" .mec-events-agenda-container").html(response.html);$('.mec-modal-result').removeClass("mec-month-navigator-loading");if(response.count>=settings.limit)$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");settings.end_date=response.end_date;settings.offset=response.offset;settings.current_month_divider=response.current_month_divider;if(settings.sed_method!='0'){sed()}}
428mecFluentCustomScrollbar();$(document).trigger('mec_search_init',['agenda',settings,response])},error:function(){}})}}}(jQuery));
428(function($){$.fn.mecCarouselView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},items:3,items_mobile:1,items_tablet:2,loop:!0,autoplay_status:!0,autoplay:'',style:'type1',start_date:''},options);initSlider(settings);if(settings.sed_method!='0'){sed(settings)}
429function initSlider(settings){if($('body').hasClass('rtl')){var owl_rtl=!0}else{var owl_rtl=!1}
430if(settings.style==='type1'){var owl=$("#mec_skin_"+settings.id+" .mec-event-carousel-type1 .mec-owl-carousel");owl.owlCarousel({autoplay:settings.autoplay_status,autoplayTimeout:settings.autoplay,loop:settings.loop,items:settings.items,dots:!0,nav:!1,autoplayHoverPause:settings.autoplay_status,rtl:owl_rtl,navElement:'button type="button" role="button"',responsiveClass:!0,responsive:{0:{items:settings.items_mobile,},768:{items:settings.items_tablet,},1199:{items:settings.items,}},});if(settings.autoplay_status){owl.on("mouseleave",function(event){$("#mec_skin_"+settings.id+" .mec-owl-carousel").trigger('play.owl.autoplay')})}}else if(settings.style==='type4'){$("#mec_skin_"+settings.id+" .mec-owl-carousel").owlCarousel({autoplay:settings.autoplay_status,loop:settings.loop,autoplayTimeout:settings.autoplay,items:settings.items,dots:!1,nav:!0,autoplayHoverPause:settings.autoplay_status,navText:["<i class='mec-sl-arrow-left' aria-label='Previous'></i>"," <i class='mec-sl-arrow-right' aria-label='Next'></i>"],navElement:'button type="button" role="button"',rtl:owl_rtl,responsiveClass:!0,responsive:{0:{items:settings.items_mobile,},768:{items:settings.items_tablet,},1199:{items:settings.items,}},});if(settings.autoplay_status){$("#mec_skin_"+settings.id+" .mec-owl-carousel").on("mouseleave",function(event){$("#mec_skin_"+settings.id+" .mec-owl-carousel").trigger('play.owl.autoplay')})}}else{$("#mec_skin_"+settings.id+" .mec-owl-carousel").owlCarousel({autoplay:settings.autoplay_status,loop:settings.loop,autoplayTimeout:settings.autoplay,items:settings.items,dots:typeof settings.dots_navigation!='undefined'?settings.dots_navigation:!1,nav:typeof settings.navigation!='undefined'?settings.navigation:!0,autoplayHoverPause:settings.autoplay_status,navText:typeof settings.navText!='undefined'?settings.navText:["<i class='mec-sl-arrow-left' aria-label='Previous'></i>"," <i class='mec-sl-arrow-right' aria-label='Next'></i>"],navElement:'button type="button" role="button"',rtl:owl_rtl,responsiveClass:!0,responsive:{0:{items:settings.items_mobile,},768:{items:settings.items_tablet,},1199:{items:settings.items,}},});if(settings.autoplay_status){$("#mec_skin_"+settings.id+" .mec-owl-carousel").on("mouseleave",function(event){$("#mec_skin_"+settings.id+" .mec-owl-carousel").trigger('play.owl.autoplay')})}}}};function sed(settings){$("#mec_skin_"+settings.id+" .mec-event-carousel-title a, #mec_skin_"+settings.id+" .mec-event-image a, #mec_skin_"+settings.id+" .mec-booking-button, #mec_skin_"+settings.id+" .mec-event-button").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return}
431e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
432mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}}(jQuery));(function($){$.fn.mecSliderView=function(options){var settings=$.extend({id:0,atts:'',transition_time:250,autoplay:!1,ajax_url:'',sf:{},start_date:''},options);var rtl=!1;initSlider();function initSlider(){if($('body').hasClass('rtl'))rtl=!0;$("#mec_skin_"+settings.id+" .mec-owl-carousel").owlCarousel({autoplay:!0,smartSpeed:settings.transition_time,autoplayTimeout:settings.autoplay,loop:!0,items:1,responsiveClass:!0,responsive:{0:{items:1,},960:{items:1,},1200:{items:1,}},dots:!1,nav:!0,autoplayHoverPause:!0,navText:typeof settings.navText!='undefined'?settings.navText:["<i class='mec-sl-arrow-left' aria-label='Previous'></i>"," <i class='mec-sl-arrow-right' aria-label='Next'></i>"],navElement:'button type="button" role="button"',rtl:rtl,})}}}(jQuery));(function($){$.fn.mecCountDown=function(options,callBack){var settings=$.extend({date:null,format:null},options);var callback=callBack;var selector=$(this);startCountdown();var interval=setInterval(startCountdown,1000);function startCountdown(){var eventDate=Date.parse(settings.date)/1000;
432var currentDate=Math.floor($.now()/1000);if(eventDate<=currentDate){selector.find(".mec-days").text("00");selector.find(".mec-hours").text("00");selector.find(".mec-minutes").text("00");selector.find(".mec-seconds").text("00");callback.call(this);clearInterval(interval);return}
433var seconds=eventDate-currentDate;var days=Math.floor(seconds/(60*60*24));seconds-=days*60*60*24;var hours=Math.floor(seconds/(60*60));seconds-=hours*60*60;var minutes=Math.floor(seconds/60);seconds-=minutes*60;if(days==1)selector.find(".mec-timeRefDays").text(mecdata.day);else selector.find(".mec-timeRefDays").text(mecdata.days);if(hours==1)selector.find(".mec-timeRefHours").text(mecdata.hour);else selector.find(".mec-timeRefHours").text(mecdata.hours);if(minutes==1)selector.find(".mec-timeRefMinutes").text(mecdata.minute);else selector.find(".mec-timeRefMinutes").text(mecdata.minutes);if(seconds==1)selector.find(".mec-timeRefSeconds").text(mecdata.second);else selector.find(".mec-timeRefSeconds").text(mecdata.seconds);if(settings.format==="on"){days=(String(days).length>=2)?days:"0"+days;hours=(String(hours).length>=2)?hours:"0"+hours;minutes=(String(minutes).length>=2)?minutes:"0"+minutes;seconds=(String(seconds).length>=2)?seconds:"0"+seconds}
434if(!isNaN(eventDate)){selector.find(".mec-days").text(days);selector.find(".mec-hours").text(hours);selector.find(".mec-minutes").text(minutes);selector.find(".mec-seconds").text(seconds)}else{clearInterval(interval)}}}}(jQuery));(function($){$.fn.mecTileView=function(options){var active_month;var active_year;var settings=$.extend({today:null,id:0,events_label:'Events',event_label:'Event',month_navigator:0,atts:'',active_month:{},next_month:{},sf:{},ajax_url:'',pagination:'0',infinite_locked:!1,},options);if(settings.month_navigator)initMonthNavigator();if(settings.load_method==='month')setMonth(settings.next_month.year,settings.next_month.month,!0);active_month=settings.active_month.month;active_year=settings.active_month.year;let history=[];const $next=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-next-button');const $prev=$('#mec-nextprev-wrap-'+settings.id+' .mec-nextprev-prev-button');setListeners();if(settings.sf.container!==''){$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month)}});$(settings.sf.container).addClass('mec-skin-search-init')}
435function initMonthNavigator(){$("#mec_skin_"+settings.id+" .mec-load-month").off("click").on("click",function(){var year=$(this).data("mec-year");var month=$(this).data("mec-month");setMonth(year,month,!1,!0)})}
436function search(year,month){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_tile_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(settings.load_method==='month'){active_month=response.current_month.month;active_year=response.current_month.year;$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_tile_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-tile-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();setListeners();toggleMonth(response.current_month.id)}else{$("#mec_skin_events_"+settings.id).html(response.html);if(response.count>=settings.limit)$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");settings.end_date=response.end_date;settings.offset=response.offset;setListeners()}
437$('.mec-modal-result').removeClass("mec-month-navigator-loading");$(document).trigger('mec_search_init',['tile',settings,response])},error:function(){}})}
438function setMonth(year,month,do_in_background,navigator_click){if(typeof do_in_background==="undefined")do_in_background=!1;navigator_click=navigator_click||!1;
438var month_id=year+""+month;if(!do_in_background){active_month=month;active_year=year}
439if($("#mec_tile_month_"+settings.id+"_"+month_id).length){toggleMonth(month_id)}else{if(!do_in_background){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading')}
440$.ajax({url:settings.ajax_url,data:"action=mec_tile_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigator_click,dataType:"json",type:"post",success:function(response){$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_tile_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-tile-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();setListeners();if(!do_in_background){toggleMonth(response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year)}else{$("#mec_tile_month_"+settings.id+"_"+response.current_month.id).hide();$("#mec_month_navigator_"+settings.id+"_"+response.current_month.id).hide()}},error:function(){}})}}
441function toggleMonth(month_id){var active_month=$("#mec_skin_"+settings.id+" .mec-month-container-selected").data("month-id");var active_day=$("#mec_tile_month_"+settings.id+"_"+active_month+" .mec-selected-day").data("day");if(active_day<=9)active_day="0"+active_day;$("#mec_skin_"+settings.id+" .mec-month-navigator").hide();$("#mec_month_navigator_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").hide().removeClass("mec-month-container-selected");$("#mec_tile_month_"+settings.id+"_"+month_id).show().addClass("mec-month-container-selected");jQuery(document).trigger('mec_toggle_month',[settings,month_id])}
442var sf;function setListeners(){$("#mec_skin_"+settings.id+" .mec-load-more-button").off("click").on("click",function(){loadMore()});if(settings.pagination==='scroll'){$(window).on("scroll",function(event){var $target=$("#mec_skin_"+settings.id+" .mec-load-more-wrap");var finished=$target.data('page-finished');if(finished)return;var hT=$target.offset().top,hH=$target.outerHeight(),wH=$(window).height(),wS=$(this).scrollTop();if(wS+100>hT+hH-wH&&!settings.infinite_locked){settings.infinite_locked=!0;$target.addClass('mec-load-more-scroll-loading');loadMore()}})}
443if(settings.pagination==='nextprev'){const $EW=$("#mec_skin_events_"+settings.id);let next_disabled=!1;$prev.on('click',function(){if(history.length){let page=history.pop();$EW.html(page.html);settings.end_date=page.end_date;settings.offset=page.offset;settings.current_month_divider=page.current_month_divider;$next.removeClass('mec-util-hidden')}
444if(!history.length)$prev.addClass('mec-util-hidden');});$next.on('click',function(e){e.preventDefault();if(next_disabled)return;next_disabled=!0;$EW.addClass('mec-loading-events');history.push({end_date:settings.end_date,offset:settings.offset,current_month_divider:settings.current_month_divider,html:$EW.html()});loadMore(function(response){if(response.count)$EW.html(response.html);else history.pop();next_disabled=!1;$EW.removeClass('mec-loading-events');if(history.length)$prev.removeClass('mec-util-hidden');if(response.count===0||(typeof response.has_more_event!=='undefined'&&!response.has_more_event))$next.addClass('mec-util-hidden');})})}
445$("#mec_skin_"+settings.id+" article").off("click").on("click",function(e){if(e.target.nodeName.toLowerCase()==='a')return;var href=$(this).data('href');if(!href)return;var target=$(this).data('target');if(target==='blank')window.open(href,'_blank');else if(target!=='m1')document.location.href=href});$("#mec_skin_"+settings.id+" .mec-has-event").off("click").on('click',function(e){e.preventDefault();
445var $this=$(this),data_mec_cell=$this.data('mec-cell'),month_id=$this.data('month');$("#mec_monthly_view_month_"+settings.id+"_"+month_id+" .mec-calendar-day").removeClass('mec-selected-day');$this.addClass('mec-selected-day');$('#mec_month_side_'+settings.id+'_'+month_id+' .mec-calendar-events-sec:not([data-mec-cell='+data_mec_cell+'])').slideUp();$('#mec_month_side_'+settings.id+'_'+month_id+' .mec-calendar-events-sec[data-mec-cell='+data_mec_cell+']').slideDown();$('#mec_monthly_view_month_'+settings.id+'_'+month_id+' .mec-calendar-events-sec:not([data-mec-cell='+data_mec_cell+'])').slideUp();$('#mec_monthly_view_month_'+settings.id+'_'+month_id+' .mec-calendar-events-sec[data-mec-cell='+data_mec_cell+']').slideDown()});if(settings.sed_method!='0'){sed()}}
446function sed(){$("#mec_skin_"+settings.id+" .mec-event-content .mec-tile-into-content-link,#mec_skin_"+settings.id+" .mec-event-content .mec-event-title a").off('click').on('click',function(e){var sed_method=$(this).closest('.mec-event-article.mec-tile-item').data('target');if('_blank'===sed_method){return}
447e.preventDefault();var href=$(this).closest('.mec-event-article.mec-tile-item').data('href');var id=$(this).closest('.mec-event-article.mec-tile-item').find('.mec-event-title a').data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
448mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}
449function loadMore(callback){var $load_more_button=$("#mec_skin_"+settings.id+" .mec-load-more-button");$load_more_button.addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_tile_load_more&mec_start_date="+settings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&current_month_divider="+settings.current_month_divider+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count=='0'){$load_more_button.removeClass("mec-load-more-loading");$load_more_button.addClass("mec-util-hidden");settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").data('page-finished',!0).removeClass('mec-load-more-scroll-loading');if(typeof callback==='function')callback(response);}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$load_more_button.removeClass("mec-util-hidden");else $load_more_button.addClass("mec-util-hidden");if(typeof callback==='function')callback(response);else $("#mec_skin_events_"+settings.id).append(response.html);$load_more_button.removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;settings.current_month_divider=response.current_month_divider;if(settings.sed_method!='0'){sed()}
450settings.infinite_locked=!1;$("#mec_skin_"+settings.id+" .mec-load-more-wrap").removeClass('mec-load-more-scroll-loading')}
451$(document).trigger('mec_load_more_init',['tile',settings])},error:function(){}})}}}(jQuery));function mec_gateway_selected(gateway_id){jQuery('.mec-book-form-gateway-checkout').addClass('mec-util-hidden');jQuery('#mec_book_form_gateway_checkout'+gateway_id).removeClass('mec-util-hidden')}
452function mec_wrap_resize(){var $mec_wrap=jQuery('.mec-wrap'),mec_width=$mec_wrap.width();if(mec_width<959){$mec_wrap.addClass('mec-sm959')}else{$mec_wrap.removeClass('mec-sm959')}}
453function get_parameter_by_name(name,url){if(!url){url=window.location.href}
454name=name.replace(/[\[\]]/g,"\\$&");var regex=new RegExp("[?&]"+name+"(=([^&#]*)|&|#|$)"),results=regex.exec(url);if(!results)return null;if(!results[2])return'';return decodeURIComponent(results[2].replace(/\+/g," "))}
455var mec_g_month_id=null;function mecFocusDay(settings){if(mec_g_month_id!=null){setTimeout(function(){var id=settings.id,date=new Date(),mec_owl_year=mec_g_month_id.substr(0,4),mec_current_year=date.getFullYear(),mec_owl_month=mec_g_month_id.substr(4,6),mec_current_month=date.getMonth()+1,mec_current_day=date.getDate(),mec_owl_go=jQuery("#mec-owl-calendar-d-table-"+id+"-"+mec_g_month_id),mec_day_exist=!1;mec_owl_go.find('.owl-stage > div').each(function(index){if(parseInt(jQuery(this).children('div').data("events-count"))>0){if((((mec_owl_year!=mec_current_year)&&(mec_owl_month!=mec_current_month))||(mec_owl_year==mec_current_year)&&(mec_owl_month!=mec_current_month))||parseInt(jQuery(this).children('div').text())>mec_current_day){var index_plus=index+1;jQuery('#mec_daily_view_day'+id+'_'+mec_g_month_id+(index<10?'0'+index_plus:index_plus)).trigger('click');mec_owl_go.trigger('to.owl.carousel',index_plus);mec_day_exist=!0;return!1}else{jQuery('#mec_daily_view_day'+id+'_'+mec_g_month_id+mec_current_day).trigger('click');mec_owl_go.trigger('to.owl.carousel',mec_current_day);mec_day_exist=!0;return!1}}});if(!mec_day_exist&&((mec_owl_year==mec_current_year)&&(mec_owl_month==mec_current_month))){
455jQuery('#mec_daily_view_day'+id+'_'+mec_g_month_id+mec_current_day).trigger('click');mec_owl_go.trigger('to.owl.carousel',mec_current_day)}},1000)}}
456function mec_focus_week(id,skin){skin=skin||'weekly';var wrap_elem=jQuery('.mec-weeks-container .mec-weekly-view-week-active').parent();var days=wrap_elem.find('dt');var week=wrap_elem.find('dl').length;var focus_week=!1;var i=j=1;for(i=1;i<week;i++){setTimeout(function(){var event=new Event('click');jQuery('#mec_skin_'+id+' .mec-previous-month.mec-load-week')[0].dispatchEvent(event)},33)}
457days.each(function(i){if(jQuery(this).data('events-count')>0){if(focus_week===!1){focus_week=parseInt(jQuery(this).parent().data('week-number'))}
458if(skin=='timetable'){if(parseInt(jQuery(this).parent().data('week-number'))==parseInt(jQuery('body').data('currentweek'))){focus_week=parseInt(jQuery(this).parent().data('week-number'));return!1}}else{return!1}}});if(focus_week!==!1){for(j=1;j<focus_week;j++){setTimeout(function(){var event=new Event('click');jQuery('#mec_skin_'+id+' .mec-next-month.mec-load-week')[0].dispatchEvent(event)},33)}}}(function($){$(document).ready(function(){if($('body').hasClass('rtl')){var owl_rtl=!0}else{var owl_rtl=!1}
459$(".mec-widget .mec-event-grid-classic").each(function(){var loop_status=$(this).data('widget-loop');if(typeof loop_status==='undefined')loop_status=1;var autoplay_status=$(this).data('widget-autoplay');if(typeof autoplay_status==='undefined')autoplay_status=1;var autoplay_time=$(this).data('widget-autoplay-time');if(typeof autoplay_time==='undefined')autoplay_time=3000;$(this).addClass('mec-owl-carousel mec-owl-theme');$(this).owlCarousel({autoplay:(autoplay_status?!0:!1),autoplayTimeout:autoplay_time,autoplayHoverPause:(autoplay_status?!0:!1),loop:(loop_status?!0:!1),dots:!1,nav:!0,navText:["<i class='mec-sl-arrow-left' aria-label='Previous'></i>"," <i class='mec-sl-arrow-right' aria-label='Next'></i>"],navElement:'button type="button" role="button"',items:1,autoHeight:!0,responsiveClass:!0,rtl:owl_rtl,})});mec_wrap_resize();jQuery(window).on('resize',function(){mec_wrap_resize()});$('.mec-event-sharing-wrap').hover(function(){$(this).find('.mec-event-sharing').show(0)},function(){$(this).find('.mec-event-sharing').hide(0)});$('a.simple-booking[href^="#mec-events-meta-group-booking"]').click(function(){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var target=$(this.hash);target=target.length?target:$('[name='+this.hash.slice(1)+']');if(target.length){var scrollTopVal=target.offset().top-30;if($('body[class^="mec-events-template"]').length>0){$('html, body').animate({scrollTop:scrollTopVal},600);return!1}else{return!0}}}});if($('.single-mec-events .mec-single-event:not(.mec-single-modern)').length>0){if($('.single-mec-events .mec-event-info-desktop.mec-event-meta.mec-color-before.mec-frontbox').length>0){var html=$('.single-mec-events .mec-event-info-desktop.mec-event-meta.mec-color-before.mec-frontbox')[0].outerHTML;if(Math.max(document.documentElement.clientWidth,window.innerWidth||0)<960){$('.single-mec-events .col-md-4 .mec-event-info-desktop.mec-event-meta.mec-color-before.mec-frontbox').remove();$('.single-mec-events .mec-event-info-mobile').html(html)}}}
460$(document).on('click','.mec-faq-toggle-icon',function(){$(this).parent().toggleClass('close')})})})(jQuery);(function($){function convertToC(value){return Math.round(((parseFloat(value)-32)*5/9))}
461function convertToF(value){return Math.round(((1.8*parseFloat(value))+32))}
462function MPHToKPH(value){return Math.round(1.609344*parseFloat(value))}
463function KPHToMPH(value){return Math.round((0.6214*parseFloat(value)))}
464$(document).ready(function($){var degree=$('.mec-weather-summary-temp');var weather_extra=$('.mec-weather-extras');var wind=weather_extra.children('.mec-weather-wind');var visibility=weather_extra.children('.mec-weather-visibility');var feelslike=weather_extra.children('.mec-weather-feels-like');$('.degrees-mode').on('click',function(){var degree_mode=degree.children('var').text().trim();var wind_text=wind.text().substring(5);var visibility_text=visibility.text().substring(11);var feelslike_text=feelslike.text().substring(12);if(degree_mode==degree.data('c').trim()){degree.html(convertToF(parseInt(degree.text()))+' <var>'+degree.data('f')+'</var>');feelslike.html('<span>Feels Like:</span> '+convertToF(parseInt(feelslike_text))+' <var>'+feelslike.data('f')+'</var>');
464wind.html('<span>Wind:</span> '+KPHToMPH(parseInt(wind_text))+'<var>'+wind.data('mph')+'</var>');visibility.html('<span>Visibility:</span> '+KPHToMPH(parseInt(visibility_text))+'<var>'+visibility.data('mph')+'</var>');$(this).text($(this).data('metric'))}else if(degree_mode==degree.data('f').trim()){degree.html(convertToC(parseInt(degree.text()))+' <var>'+degree.data('c')+'</var>');feelslike.html('<span>Feels Like:</span> '+convertToC(parseInt(feelslike_text))+' <var>'+feelslike.data('c')+'</var>');wind.html('<span>Wind:</span> '+MPHToKPH(parseInt(wind_text))+'<var>'+wind.data('kph')+'</var>');visibility.html('<span>Visibility:</span> '+MPHToKPH(parseInt(visibility_text))+'<var>'+visibility.data('kph')+'</var>');$(this).text($(this).data('imperial'))}});$('a').on('click',function(){});$('#mec_add_speaker_button').on('click',function(){const $this=this;const content=$($this).parent().find('input');const list=$('#mec-fes-speakers-list');const key=list.find('.mec-error').length;$($this).prop("disabled",!0).css('cursor','wait');$.post(ajaxurl,{action:"mec_speaker_adding",content:content.val(),fes_nonce:mecdata.fes_nonce,key:key}).done(function(data){if($(data).hasClass('mec-error')){list.prepend(data);setTimeout(function(){$('#mec-speaker-error-${key}').remove()},1500)}else{list.html(data);content.val('')}
465$($this).prop("disabled",!1).css('cursor','pointer')})});$('#mec_add_full_speaker_button').on('click',function(){const $this=this;const list=$('#mec-fes-speakers-list');const name=$('#mec_speaker_full_info_name');const type=$('#mec_speaker_full_info_type');const job_title=$('#mec_speaker_full_info_job_title');const tel=$('#mec_speaker_full_info_tel');const email=$('#mec_speaker_full_info_email');const website=$('#mec_speaker_full_info_website');const facebook=$('#mec_speaker_full_info_facebook');const instagram=$('#mec_speaker_full_info_instagram');const linkedin=$('#mec_speaker_full_info_linkedin');const twitter=$('#mec_speaker_full_info_twitter');const image=$('#mec_fes_speaker_thumbnail');const key=list.find('.mec-error').length;$($this).prop("disabled",!0).css('cursor','wait');$.post(ajaxurl,{action:"mec_speaker_adding",name:name.val(),type:type.val(),job_title:job_title.val(),tel:tel.val(),email:email.val(),website:website.val(),facebook:facebook.val(),instagram:instagram.val(),linkedin:linkedin.val(),twitter:twitter.val(),image:image.val(),fes_nonce:mecdata.fes_nonce,key:key}).done(function(data){if($(data).hasClass('mec-error')){list.prepend(data);setTimeout(function(){$('#mec-speaker-error-${key}').remove()},1500)}else{list.html(data);name.val('');type.val('');job_title.val('');tel.val('');email.val('');website.val('');facebook.val('');instagram.val('');linkedin.val('');twitter.val('');$('#mec_fes_speaker_remove_image_button').trigger('click')}
466$($this).prop("disabled",!1).css('cursor','pointer')})});$('#mec_add_sponsor_button').on('click',function(){const $this=this;const content=$($this).parent().find('input');const list=$('#mec-fes-sponsors-list');const key=list.find('.mec-error').length;$($this).prop("disabled",!0).css('cursor','wait');$.post(ajaxurl,{action:"mec_sponsor_adding",content:content.val(),fes_nonce:mecdata.fes_nonce,key:key}).done(function(data){if($(data).hasClass('mec-error')){list.prepend(data);setTimeout(function(){$('#mec-sponsor-error-${key}').remove()},1500)}else{list.html(data);content.val('')}
467$($this).prop("disabled",!1).css('cursor','pointer')})});$('#mec_add_full_sponsor_button').on('click',function(){const $this=this;const list=$('#mec-fes-sponsors-list');const name=$('#mec_sponsor_full_info_name');const url=$('#mec_sponsor_full_info_url');const image=$('#mec_fes_sponsor_thumbnail');const key=list.find('.mec-error').length;$($this).prop("disabled",!0).css('cursor','wait');$.post(ajaxurl,{action:"mec_sponsor_adding",name:name.val(),url:url.val(),image:image.val(),fes_nonce:mecdata.fes_nonce,key:key}).done(function(data){if($(data).hasClass('mec-error')){list.prepend(data);setTimeout(function(){$('#mec-sponsor-error-${key}').remove()},1500)}else{list.html(data);name.val('');url.val('');$('#mec_fes_sponsor_remove_image_button').trigger('click')}
468$($this).prop("disabled",!1).css('cursor','pointer')})});var owl_rtl=$('body').hasClass('rtl')?!0:!1;$(document).on('click','.mec-export-list-wrapper .mec-export-list-item',function(){$('.mec-export-list-item').removeClass('fes-export-date-active');$(this).addClass('fes-export-date-active')});var mec_bd_attendees_modules=$('.mec-attendees-list-details > ul > li');mec_bd_attendees_modules.click(function(){$(this).find('.mec-attendees-toggle').toggle()});$(document).on('click','.mec-event-export-csv, .mec-event-export-excel',function(){var mec_event_id=$(this).parent().parent().data('event-id');var time=$(this).parent().parent().find($('.fes-export-date-active')).data('time');if(typeof time==='undefined')time=0;var type=$(this).hasClass('mec-event-export-excel')?'ms-excel':'csv';var url=mecdata.ajax_url+"?action=mec_fes_csv_export&fes_nonce="+mecdata.fes_nonce+"&mec_event_id="+mec_event_id+"&timestamp="+time+"&type="+type;window.location=url})})})(jQuery);function mec_book_form_submit(event,unique_id){event.preventDefault();window["mec_book_form_submit"+unique_id]()}
469function mec_book_form_back_btn_cache(context,unique_id){var id=jQuery(context).attr('id');var mec_form_data=jQuery('#mec_book_form'+unique_id).serializeArray();if(id=="mec-book-form-btn-step-1")jQuery('body').data('mec-book-form-step-1',jQuery('#mec_booking'+unique_id).html()).data('unique-id',unique_id).data('mec-book-form-data-step-1',mec_form_data);else if(id=="mec-book-form-btn-step-2")jQuery('body').data('mec-book-form-step-2',jQuery('#mec_booking'+unique_id).html()).data('mec-book-form-data-step-2',mec_form_data);}
470function mec_agreement_change(context){var status=jQuery(context).is(":checked");if(status)jQuery(context).prop("checked","checked");else jQuery(context).removeProp("checked")}
471function mec_book_form_back_btn_click(context,unique_id){var id=jQuery(context).attr('id');unique_id=jQuery('body').data('unique-id');jQuery('#mec_booking_message'+unique_id).hide();if(id=="mec-book-form-back-btn-step-2"){var mec_form_data_step_1=jQuery('body').data('mec-book-form-data-step-1');jQuery('#mec_booking'+unique_id).html(jQuery('body').data('mec-book-form-step-1'));jQuery.each(mec_form_data_step_1,function(index,object_item){if(object_item.name==='book[date][]'){jQuery('[value="'+object_item.value+'"]').prop('checked',!0)}else jQuery('[name="'+object_item.name+'"]').val(object_item.value)});var recaptcha_check=jQuery('#mec_booking'+unique_id).find('#g-recaptcha').length;if(recaptcha_check!=0){jQuery('#g-recaptcha').html('');grecaptcha.render("g-recaptcha",{sitekey:mecdata.recapcha_key})}
472mec_init_number_spinner();var event_id=jQuery('input[name="event_id"]').val();var date=jQuery('#mec_book_form_date'+unique_id).val();window['mec_get_tickets_availability'+unique_id](event_id,date)}else if(id=="mec-book-form-back-btn-step-3"){var mec_form_data_step_2=jQuery('body').data('mec-book-form-data-step-2');jQuery('#mec_booking'+unique_id).html(jQuery('body').data('mec-book-form-step-2'));jQuery.each(mec_form_data_step_2,function(index,object_item){var mec_elem=jQuery('[name="'+object_item.name+'"]');var mec_type=mec_elem.attr('type');if((mec_type=='checkbox'||mec_type=='radio')){var mec_elem_len=jQuery('[name="'+object_item.name+'"]').length;if(mec_elem_len>1){var id='#'+mec_elem.attr('id').match(/mec_book_reg_field_reg.*_/g)+object_item.value.toLowerCase();jQuery(id).prop('checked',!0)}else{mec_elem.prop('checked',!0)}}
473mec_elem.val(object_item.value)})}}
474function gmapSkin(NewJson,id){var gmap_temp=jQuery("#gmap-data-"+id);var beforeJson=gmap_temp.val();if(typeof beforeJson==='undefined')beforeJson='';var newJson=NewJson;let jsonPush=(typeof beforeJson!='undefined'&&beforeJson.trim()=="")?[]:JSON.parse(beforeJson);var pushState=jsonPush.length<1?!1:!0;
474for(var key in newJson){if(pushState){jsonPush.forEach(function(Item,Index){var render_location=jsonPush[Index].latitude+","+jsonPush[Index].longitude;if(key.trim()==render_location.trim()){newJson[key].count=newJson[key].count+jsonPush[Index].count;newJson[key].event_ids=newJson[key].event_ids.concat(jsonPush[Index].event_ids);var dom=jQuery(newJson[key].lightbox).find("div:nth-child(2)");var main_items=dom.html();var new_items=jQuery(jsonPush[Index].lightbox).find("div:nth-child(2)").html();var render_items=dom.html(main_items+new_items).html();var new_info_lightbox='<div><div class="mec-event-detail mec-map-view-event-detail"><i class="mec-sl-map-marker"></i> '+newJson[key].name+'</div><div>'+render_items+'</div></div>';newJson[key].lightbox=new_info_lightbox;var new_info_window='<div class="mec-marker-infowindow-wp"><div class="mec-marker-infowindow-count">'+newJson[key].count+'</div><div class="mec-marker-infowindow-content"><span>Event at this location</span><span>'+newJson[key].name+'</span></div></div>';newJson[key].infowindow=new_info_window;jsonPush.splice(Index,1)}})}
475jsonPush.push(newJson[key])}
476gmap_temp.val(JSON.stringify(jsonPush));return jsonPush}
477jQuery(document).ready(function(){if(jQuery('.mec-fluent-wrap').length<0){return}
478jQuery(window).on('resize',mecFluentToggoleDisplayValueFilterContent);jQuery(document).on('click','.mec-fluent-wrap .mec-filter-icon',mecFluentToggleFilterContent);jQuery(document).on('click','.mec-fluent-wrap .mec-more-events-icon',mecFluentToggleMoreEvents);jQuery(document).on('click','.mec-fluent-wrap .mec-yearly-calendar',mecFluentYearlyCalendar);jQuery(document).on('click',mecFluentOutsideEvent);jQuery(document).on('click','.mec-fluent-more-views-icon',mecFluentMoreViewsContent);jQuery(document).on('change','.mec-fluent-wrap .mec-filter-content select, .mec-fluent-wrap .mec-filter-content input',mecFluentSmartFilterIcon);mecFluentTimeTableUI();mecFluentUI();mecFluentNiceSelect();mecFluentWrapperFullScreenWidth();jQuery(window).on('load',mecFluentWrapperFullScreenWidth);jQuery(window).on('load',mecFluentCurrentTimePosition);jQuery(window).on('resize',mecFluentWrapperFullScreenWidth);jQuery(window).on('resize',mecFluentTimeTableUI);mecFluentSliderUI();mecFluentFullCalendar();jQuery(window).on('resize',mecFluentFullCalendar);mecFluentCustomScrollbar()});function mecFluentSinglePage(){if(jQuery().niceScroll){jQuery('.mec-single-fluent-body .featherlight .mec-single-fluent-wrap').niceScroll({horizrailenabled:!1,cursorcolor:'#C1C5C9',cursorwidth:'4px',cursorborderradius:'4px',cursorborder:'none',railoffset:{left:10,}})}}
479function mecFluentFullCalendar(){if(jQuery('.mec-fluent-wrap.mec-skin-full-calendar-container').length>0){var widowWidth=jQuery(window).innerWidth();if(widowWidth<=767){jQuery('.mec-fluent-wrap.mec-skin-full-calendar-container .mec-skin-monthly-view-month-navigator-container, .mec-fluent-wrap.mec-skin-full-calendar-container .mec-calendar-a-month, .mec-fluent-wrap.mec-skin-full-calendar-container .mec-yearly-title-sec').css({paddingTop:jQuery('.mec-fluent-wrap.mec-skin-full-calendar-container').children('.mec-totalcal-box').height()+40,})}else{jQuery('.mec-fluent-wrap.mec-skin-full-calendar-container .mec-skin-monthly-view-month-navigator-container, .mec-fluent-wrap.mec-skin-full-calendar-container .mec-calendar-a-month, .mec-fluent-wrap.mec-skin-full-calendar-container .mec-yearly-title-sec').css({paddingTop:32,})}}}
480function mecFluentSmartFilterIcon(){var filterContent=jQuery(this).closest('.mec-filter-content');var hasValue=!1;if(jQuery(this).closest('.mec-date-search').length>0){var yearValue=jQuery(this).closest('.mec-date-search').find('select[id*="mec_sf_year"]').val();var monthValue=jQuery(this).closest('.mec-date-search').find('select[id*="mec_sf_month"]').val();if((yearValue=='none'&&monthValue=='none')||(yearValue!='none'&&monthValue!='none')){filterContent.hide();if((yearValue!='none'&&monthValue!='none')){hasValue=!0}else{hasValue=!1}}else{return!1}}else{filterContent.hide()}
481if(!hasValue){filterContent.find(':not(.mec-date-search)').find('select, input:not([type="hidden"])').each(function(){if(jQuery(this).val()){hasValue=!0;return!1}})}
482if(hasValue){jQuery(this).closest('.mec-search-form').find('.mec-filter-icon').addClass('active')}else{jQuery(this).closest('.mec-search-form').find('.mec-filter-icon').removeClass('active')}}
483function mecFluentMoreViewsContent(){jQuery(this).find('.mec-fluent-more-views-content').toggleClass('active')}
484function mecFluentWrapperFullScreenWidth(){if(jQuery('.mec-fluent-bg-wrap').length>0){jQuery('.mec-fluent-bg-wrap').css({maxWidth:jQuery('body').width()+8,})}}
485function mecFluentUI(){if(typeof mecdata!='undefined'&&typeof mecdata.enableSingleFluent!='undefined'&&mecdata.enableSingleFluent){jQuery('body').addClass('mec-single-fluent-body')}
486jQuery(window).on('load resize',function(){if(jQuery('.mec-filter-content').length>0){jQuery('.mec-filter-content').css({right:-(jQuery('.mec-calendar').width()-jQuery('.mec-search-form.mec-totalcal-box').position().left-jQuery('.mec-search-form.mec-totalcal-box').width()+40),left
486:-jQuery('.mec-search-form.mec-totalcal-box').position().left+40,})}
487if(jQuery('.mec-filter-icon').is(':visible')){var filterIconLeftPosition=parseInt(jQuery('.mec-search-form.mec-totalcal-box').position().left)+parseInt(jQuery('.mec-filter-icon').position().left)-25;jQuery('head').find('style[title="mecFluentFilterContentStyle"]').remove().end().append('<style title="mecFluentFilterContentStyle">.mec-fluent-wrap .mec-filter-content:before{left: '+filterIconLeftPosition+'px;}.mec-fluent-wrap .mec-filter-content:after{left: '+(filterIconLeftPosition+1)+'px;}</style>')}});if(jQuery('.mec-filter-content').is(':empty')){jQuery('.mec-filter-icon').hide()}
488jQuery(document).on('click keydown','.mec-event-share-icon',function(e){if(e.type==='keydown'&&e.key!=='Enter'&&e.key!==' ')return;e.preventDefault();var $wrap=jQuery(this).closest('.mec-event-sharing-wrap');var isOpen=$wrap.hasClass('active');jQuery('.mec-event-sharing-wrap.active').not($wrap).removeClass('active').find('.mec-event-share-icon').attr('aria-expanded','false');$wrap.toggleClass('active');jQuery(this).attr('aria-expanded',!isOpen)});jQuery(document).on('keydown','.mec-event-sharing-wrap.active .mec-event-share-icon',function(e){if(e.key==='Escape'){var $wrap=jQuery(this).closest('.mec-event-sharing-wrap');$wrap.removeClass('active');jQuery(this).attr('aria-expanded','false').focus()}});jQuery(document).on('click',function(e){if(!jQuery(e.target).closest('.mec-event-sharing-wrap').length){jQuery('.mec-event-sharing-wrap.active').removeClass('active').find('.mec-event-share-icon').attr('aria-expanded','false')}})}
489function mecFluentCurrentTimePosition(){if(jQuery('.mec-fluent-wrap').length>0){jQuery('.mec-fluent-current-time').each(function(){var currentTimeMinutes=jQuery(this).data('time');var height=jQuery(this).closest('.mec-fluent-current-time-cell').height();jQuery(this).css({top:(currentTimeMinutes/60)*height,})})}}
490function mecFluentNiceSelect(){if(jQuery('.mec-fluent-wrap').length<0){return}
491if(jQuery().niceSelect){jQuery('.mec-fluent-wrap').find('.mec-filter-content').find('select').niceSelect()}}
492function mecFluentCustomScrollbar(y){jQuery(document).trigger('mec_custom_scrollbar_init',[y]);if(jQuery('.mec-fluent-wrap').length<0){return}
493if(jQuery().niceScroll){jQuery('.mec-custom-scrollbar').niceScroll({cursorcolor:'#C7EBFB',cursorwidth:'4px',cursorborderradius:'4px',cursorborder:'none',railoffset:{left:-2,}});jQuery('.mec-custom-scrollbar').getNiceScroll().resize();jQuery('.mec-custom-scrollbar').each(function(){if(jQuery(this).find('.mec-fluent-current-time-cell').length>0){var parentTopOffset=jQuery(this).offset().top;var currentTimeCellOffset=jQuery(this).find('.mec-fluent-current-time-cell').offset().top;jQuery(this).getNiceScroll(0).doScrollTop(currentTimeCellOffset-parentTopOffset-16,120);jQuery(this).on('scroll',function(){if(jQuery(this).getNiceScroll(0).scroll.y!=0){jQuery(this).addClass('mec-scrolling')}else{jQuery(this).removeClass('mec-scrolling')}})}
494if(typeof y!='undefined'){if(jQuery(this).closest('.mec-skin-list-wrap').length>0||jQuery(this).closest('.mec-skin-grid-wrap').length>0){jQuery(this).getNiceScroll(0).doScrollTop(0,120)}}})}}
495function mecFluentTimeTableUI(){jQuery('.mec-fluent-wrap.mec-timetable-wrap .mec-cell').css('min-height',0);var maxHeight=Math.max.apply(null,jQuery('.mec-fluent-wrap.mec-timetable-wrap .mec-cell').map(function(){return jQuery(this).height()}).get());maxHeight=maxHeight>87?maxHeight:87;jQuery('.mec-fluent-wrap.mec-timetable-wrap .mec-cell').css('min-height',maxHeight+2)}
496function mecFluentSliderUI(){jQuery(window).on('load',function(){if(typeof mecdata==='undefined')return;jQuery('.mec-fluent-wrap.mec-skin-slider-container .owl-next').prepend('<span>'+mecdata.next+'</span>');jQuery('.mec-fluent-wrap.mec-skin-slider-container .owl-prev').append('<span>'+mecdata.prev+'</span>')})}
497function mecFluentToggleFilterContent(e){e.preventDefault();if(jQuery('.mec-filter-content').is(':visible')){jQuery('.mec-filter-content').css({display:'none',})}else{const displayValue=jQuery(window).width()<=790?'block':'flex';jQuery('.mec-filter-content').css({display:displayValue,})}}
498function mecFluentToggoleDisplayValueFilterContent(){const displayValue=jQuery(window).width()<=767?'block':'flex';if(jQuery('.mec-filter-content').is(':visible')){jQuery('.mec-filter-content').css({display:displayValue,})}}
499function mecFluentToggleMoreEvents(e){e.preventDefault();
499const moreEventsWrap=jQuery(this).siblings('.mec-more-events-wrap');const moreEvents=moreEventsWrap.children('.mec-more-events');jQuery('.mec-more-events-wrap').removeClass('active');moreEventsWrap.addClass('active');jQuery('.mec-more-events-wrap:not(.active)').hide();if(moreEventsWrap.is(':visible')){moreEventsWrap.hide()}else{topElement=moreEventsWrap.closest('.mec-more-events-inner-controller').length>0?moreEventsWrap.closest('.mec-more-events-inner-controller'):moreEventsWrap.closest('.mec-more-events-controller');moreEventsWrap.show().css({top:topElement.offset().top-window.scrollY,left:moreEventsWrap.closest('.mec-more-events-controller').offset().left,width:moreEventsWrap.closest('.mec-more-events-controller').width(),});if(moreEventsWrap.width()>400){moreEvents.css({left:(moreEventsWrap.width()/2)-(moreEvents.width()/2),width:400,})}else{moreEvents.css({width:moreEventsWrap.width(),left:0,})}}}
500function mecFluentOutsideEvent(e){if(!jQuery(e.target).is('.mec-more-events-icon')&&!jQuery(e.target).closest('.mec-more-events-wrap').length){jQuery('.mec-more-events-wrap').hide()}
501if(!jQuery(e.target).is('.mec-filter-icon')&&!jQuery(e.target).closest('.mec-filter-content').length){jQuery('.mec-filter-content').hide()}
502if(!jQuery(e.target).is('.mec-fluent-more-views-icon')&&!jQuery(e.target).closest('.mec-fluent-more-views-content').length){jQuery('.mec-fluent-more-views-content').removeClass('active')}}
503function mecFluentYearlyCalendar(){const monthNum=jQuery(this).data('month');const monthName=jQuery(this).find('.mec-calendar-table-title').text();jQuery('.mec-fluent-wrap').find('.mec-yearly-calendar').removeClass('active');jQuery(this).addClass('active').closest('.mec-year-container').find('.mec-yearly-agenda-sec-title span').text(monthName).end().find('.mec-events-agenda').addClass('mec-util-hidden').end().find('.mec-events-agenda[data-month='+monthNum+']').removeClass('mec-util-hidden');mecFluentCustomScrollbar()}
504function mecFluentYearlyUI(eventID,yearID){var fluentWrap=jQuery('#mec_skin_'+eventID+'.mec-fluent-wrap');if(fluentWrap.length<0){return}
505var monthNum=fluentWrap.find('.mec-year-container[data-year-id='+yearID+']').find('.mec-events-agenda:not(.mec-util-hidden)').data('month');var activeMonth=fluentWrap.find('.mec-year-container[data-year-id='+yearID+']').find('.mec-yearly-calendar[data-month='+monthNum+']');var activeMonthName=activeMonth.find('.mec-calendar-table-title').text();activeMonth.addClass('active')}(function($){$.fn.mecListViewFluent=function(options){var active_month;var active_year;var settings=$.extend({today:null,id:0,events_label:'Events',event_label:'Event',month_navigator:0,atts:'',active_month:{},next_month:{},sf:{},ajax_url:'',},options);mecFluentCustomScrollbar();initLoadMore('#mec_list_view_month_'+settings.id+'_'+settings.month_id);function initLoadMore(monthID){$(monthID).off().on('click','.mec-load-more-button',function(){loadMore(this)})}
506function loadMore(This){var currentLoadMore=$(This);currentLoadMore.addClass("mec-load-more-loading");var endDate=currentLoadMore.data('end-date');var maximumDate=currentLoadMore.data('maximum-date');var nextOffset=currentLoadMore.data('next-offset');var year=currentLoadMore.data('year');var month=currentLoadMore.data('month');$.ajax({url:settings.ajax_url,data:"action=mec_list_load_more&mec_year="+year+"&mec_month="+month+"&mec_maximum_date="+maximumDate+"&mec_start_date="+endDate+"&mec_offset="+nextOffset+"&"+settings.atts+"&current_month_divider=0&apply_sf_date=0",dataType:"json",type:"post",success:function(response){currentLoadMore.parent().remove();if(response.count!='0'){$('#mec_list_view_month_'+settings.id+'_'+response.current_month.id).append(response.month);if(settings.sed_method!='0'){sed()}
507mecFluentCustomScrollbar();initLoadMore('#mec_list_view_month_'+settings.id+'_'+response.current_month.id)}
508$(document).trigger('mec_load_more_init',['list',settings])},error:function(){}})}
509if(settings.month_navigator)initMonthNavigator();setMonth(settings.next_month.year,settings.next_month.month,!0);var initMonth;var initYear;active_month=initMonth=settings.active_month.month;active_year=initYear=settings.active_month.year;if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month)}});$(settings.sf.container).addClass('mec-skin-search-init')}
510if(settings.sed_method!='0'){sed()}
511function initMonthNavigator(){$("#mec_skin_"+settings.id+" .mec-load-month").off().on("click",function(){var year=$(this).data("mec-year");var month=$(this).data("mec-month");setMonth(year,month,!1,!0)})}
512function parseQuery(queryString){var query={};var pairs=(queryString[0]==='?'?queryString.substr(1):queryString).split('&');for(var i=0;i<pairs.length;i++){var pair=pairs[i].split('=');query[decodeURIComponent(pair[0])]=decodeURIComponent(pair[1]||'')}
513return query}
514function updateQueryStringParameter(uri,key,val){return uri.replace(RegExp("([?&]"+key+"(?=[=&#]|$)[^#&]*|(?=#|$))"),"&"+key+"="+encodeURIComponent(val))}
515function search(year,month){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');var ObjAtts=parseQuery(settings.atts);if(!(ObjAtts['sf[month']||ObjAtts['sf[year]'])){settings.atts=updateQueryStringParameter(settings.atts.trim(),'sf[year]',initYear);settings.atts=updateQueryStringParameter(settings.atts.trim(),'sf[month]',initMonth)}
516$.ajax({url:settings.ajax_url,data:"action=mec_list_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){active_month=response.current_month.month;active_year=response.current_month.year;$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_list_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-list-view-month-navigator-container").html('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();toggleMonth(response.current_month.id);initLoadMore('#mec_list_view_month_'+settings.id+'_'+response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");mecFluentCustomScrollbar();$(document).trigger('mec_search_process_end',{r:response,settings_id:settings.id});$(document).trigger('mec_search_init',['list',settings,response])},error:function(){}})}
517function setMonth(year,month,do_in_background,navigator_click){if(typeof do_in_background==="undefined")do_in_background=!1;navigator_click=navigator_click||!1;var month_id=year+""+month;if(!do_in_background){active_month=month;active_year=year}
518if($("#mec_list_view_month_"+settings.id+"_"+month_id).length){toggleMonth(month_id);mecFluentCustomScrollbar(0)}else{if(!do_in_background){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading')}
519$.ajax({url:settings.ajax_url,data:"action=mec_list_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigator_click,dataType:"json",type:"post",success:function(response){$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_list_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-list-view-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();initLoadMore('#mec_list_view_month_'+settings.id+'_'+response.current_month.id);if(!do_in_background){toggleMonth(response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year)}else{$("#mec_list_view_month_"+settings.id+"_"+response.current_month.id).hide();$("#mec_month_navigator_"+settings.id+"_"+response.current_month.id).hide()}
520if(typeof custom_month!==undefined)var custom_month;if(typeof custom_month!=undefined){if(custom_month=='true'){$(".mec-month-container .mec-calendar-day").removeClass('mec-has-event');$(".mec-month-container .mec-calendar-day").removeClass('mec-selected-day');$('.mec-calendar-day').off('click')}}
521if(!do_in_background){mecFluentCustomScrollbar(0)}
522if(jQuery().niceSelect)jQuery('.mec-fluent-wrap').find('.mec-filter-content').find('select').niceSelect();$(document).trigger('mec_set_month_process_end',{r:response,settings_id:settings.id})},error:function(){}})}}
523function toggleMonth(month_id){var active_month=$("#mec_skin_"+settings.id+" .mec-month-container-selected").data("month-id");var active_day=$("#mec_list_view_month_"+settings.id+"_"+active_month+" .mec-selected-day").data("day");if(active_day<=9)active_day="0"+active_day;$("#mec_skin_"+settings.id+" .mec-month-navigator").hide();$("#mec_month_navigator_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").hide();$("#mec_list_view_month_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").removeClass("mec-month-container-selected");$("#mec_list_view_month_"+settings.id+"_"+month_id).addClass("mec-month-container-selected");
523jQuery(document).trigger('mec_toggle_month',[settings,month_id])}
524var sf;function sed(){$(".mec-skin-list-wrap#mec_skin_"+settings.id).off('click').on('click','[data-event-id]',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
525mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}}}(jQuery));(function($){$.fn.mecGridViewFluent=function(options){var active_month;var active_year;var settings=$.extend({today:null,id:0,events_label:'Events',event_label:'Event',month_navigator:0,atts:'',active_month:{},next_month:{},sf:{},ajax_url:'',},options);initLoadMore('#mec_grid_view_month_'+settings.id+'_'+settings.month_id);function initLoadMore(monthID){$(monthID).off().on('click','.mec-load-more-button',function(){loadMore(this)})}
526function loadMore(This){var currentLoadMore=$(This);currentLoadMore.addClass("mec-load-more-loading");var endDate=currentLoadMore.data('end-date');var maximumDate=currentLoadMore.data('maximum-date');var nextOffset=currentLoadMore.data('next-offset');var year=currentLoadMore.data('year');var month=currentLoadMore.data('month');$.ajax({url:settings.ajax_url,data:"action=mec_grid_load_more&mec_year="+year+"&mec_month="+month+"&mec_maximum_date="+maximumDate+"&mec_start_date="+endDate+"&mec_offset="+nextOffset+"&"+settings.atts+"&current_month_divider=0&apply_sf_date=0",dataType:"json",type:"post",success:function(response){currentLoadMore.parent().remove();if(response.count!='0'){$('#mec_grid_view_month_'+settings.id+'_'+response.current_month.id).append(response.month);if(settings.sed_method!='0'){sed()}
527mecFluentCustomScrollbar();initLoadMore('#mec_grid_view_month_'+settings.id+'_'+response.current_month.id)}
528$(document).trigger('mec_load_more_init',['grid',settings])},error:function(){}})}
529if(settings.month_navigator)initMonthNavigator();setMonth(settings.next_month.year,settings.next_month.month,!0);var initMonth;var initYear;active_month=initMonth=settings.active_month.month;active_year=initYear=settings.active_month.year;if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,start_date:settings.start_date,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month)}});$(settings.sf.container).addClass('mec-skin-search-init')}
530if(settings.sed_method!='0'){sed()}
531function initMonthNavigator(){$("#mec_skin_"+settings.id+" .mec-load-month").off().on("click",function(){var year=$(this).data("mec-year");var month=$(this).data("mec-month");setMonth(year,month,!1,!0)})}
532function parseQuery(queryString){var query={};var pairs=(queryString[0]==='?'?queryString.substr(1):queryString).split('&');for(var i=0;i<pairs.length;i++){var pair=pairs[i].split('=');query[decodeURIComponent(pair[0])]=decodeURIComponent(pair[1]||'')}
533return query}
534function updateQueryStringParameter(uri,key,val){return uri.replace(RegExp("([?&]"+key+"(?=[=&#]|$)[^#&]*|(?=#|$))"),"&"+key+"="+encodeURIComponent(val))}
535function search(year,month){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');var ObjAtts=parseQuery(settings.atts);if(!(ObjAtts['sf[month']||ObjAtts['sf[year]'])){settings.atts=updateQueryStringParameter(settings.atts.trim(),'sf[year]',initYear);settings.atts=updateQueryStringParameter(settings.atts.trim(),'sf[month]',initMonth)}
536$.ajax({url:settings.ajax_url,data:"action=mec_grid_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){active_month=response.current_month.month;active_year=response.current_month.year;$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_grid_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-grid-view-month-navigator-container").html('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();toggleMonth(response.current_month.id);initLoadMore('#mec_grid_view_month_'+settings.id+'_'+response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");mecFluentCustomScrollbar();$(document).trigger('mec_search_init',['grid',settings,response])},error:function(){}})}
537function setMonth(year,month,do_in_background,navigator_click){if(typeof do_in_background==="undefined")do_in_background=!1;navigator_click=navigator_click||!1;
537var month_id=year+""+month;if(!do_in_background){active_month=month;active_year=year}
538if($("#mec_grid_view_month_"+settings.id+"_"+month_id).length){toggleMonth(month_id);mecFluentCustomScrollbar()}else{if(!do_in_background){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading')}
539$.ajax({url:settings.ajax_url,data:"action=mec_grid_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigator_click,dataType:"json",type:"post",success:function(response){$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_grid_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-grid-view-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();initLoadMore('#mec_grid_view_month_'+settings.id+'_'+response.current_month.id);if(!do_in_background){toggleMonth(response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year)}else{$("#mec_grid_view_month_"+settings.id+"_"+response.current_month.id).hide();$("#mec_month_navigator_"+settings.id+"_"+response.current_month.id).hide()}
540if(typeof custom_month!==undefined)var custom_month;if(typeof custom_month!=undefined){if(custom_month=='true'){$(".mec-month-container .mec-calendar-day").removeClass('mec-has-event');$(".mec-month-container .mec-calendar-day").removeClass('mec-selected-day');$('.mec-calendar-day').off('click')}}
541if(!do_in_background){mecFluentCustomScrollbar()}},error:function(){}})}}
542function toggleMonth(month_id){var active_month=$("#mec_skin_"+settings.id+" .mec-month-container-selected").data("month-id");var active_day=$("#mec_grid_view_month_"+settings.id+"_"+active_month+" .mec-selected-day").data("day");if(active_day<=9)active_day="0"+active_day;$("#mec_skin_"+settings.id+" .mec-month-navigator").hide();$("#mec_month_navigator_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").hide();$("#mec_grid_view_month_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").removeClass("mec-month-container-selected");$("#mec_grid_view_month_"+settings.id+"_"+month_id).addClass("mec-month-container-selected");jQuery(document).trigger('mec_toggle_month',[settings,month_id])}
543var sf;function sed(){$(".mec-skin-grid-wrap#mec_skin_"+settings.id).off('click').on('click','[data-event-id]',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);if('undefined'==typeof id){return}
544mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup)})}}}(jQuery));
544(function($){$.fn.mecBookingCalendar=function(options){var active_month;var active_year;var settings=$.extend({active_month:{},next_month:{},ajax_url:'',event_id:'',selected_datetime:'',},options);initMonthNavigator();active_month=settings.active_month.month;active_year=settings.active_month.year;setListeners();function initMonthNavigator(){$("#mec_booking_calendar_"+settings.id+" .mec-load-month").off('click').on('click',function(){var year=$(this).data('mec-year');var month=$(this).data('mec-month');setMonth(year,month)})}
545function setMonth(year,month){active_month=month;active_year=year;var $modal=$('.mec-modal-result');if($modal.length===0)$('.mec-wrap').append('<div class="mec-modal-result"></div>');$modal.addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_booking_calendar_load_month&event_id="+settings.event_id+"&uniqueid="+settings.id+"&year="+year+"&month="+month,dataType:"json",type:"post",success:function(response){const $month_wrapper=$('#mec_booking_calendar_wrapper'+settings.id+' .mec-select-date-calendar-container');$month_wrapper.html(response.html);$('#mec_book_form'+settings.id+' .mec-ticket-unavailable-spots').addClass('mec-util-hidden');$('#mec_book_form_date'+settings.id).val('').trigger('change');$modal.removeClass("mec-month-navigator-loading");setTimeout(function(){$month_wrapper.find($('.mec-booking-calendar-date')).first().trigger('click')},200)},error:function(){$modal.removeClass("mec-month-navigator-loading")}})}
546function setListeners(){$("#mec_booking_calendar_"+settings.id).off('click','.mec-booking-calendar-date').on('click','.mec-booking-calendar-date',function(e){e.preventDefault();$("#mec_booking_calendar_"+settings.id+" .mec-booking-calendar-date").removeClass('mec-active');$("#mec_booking_calendar_"+settings.id+" .mec-calendar-day").removeClass('mec-wrap-active');$(this).addClass('mec-active');$(this).parents('.mec-calendar-day').addClass('mec-wrap-active');var timestamp=$(this).data('timestamp');$('#mec_book_form_date'+settings.id).val(timestamp).trigger('change');var formatted_date=$(this).data('formatted-date');$("#mec_booking_calendar_wrapper"+settings.id+" .mec-select-date-calendar-formatted-date").html(formatted_date);var $chosenMsg=$(this).closest(".mec-booking-calendar-container").find(".mec-choosen-time-message");$chosenMsg.removeClass("disable");$chosenMsg.find(".mec-choosen-time").empty().append($(this).data('formatted-date'))});$("#mec_booking_calendar_"+settings.id+" .mec-has-one-repeat-in-day").off('click').on('click',function(e){e.preventDefault();var mec_date_value=$(this).attr('data-timestamp');$("#mec_booking_calendar_"+settings.id+" .mec-has-one-repeat-in-day").removeClass('mec-active');$("#mec_booking_calendar_"+settings.id+" [data-timestamp=\""+mec_date_value+"\"]").addClass('mec-active');var timestamp=$(this).data('timestamp');$('#mec_book_form_date'+settings.id).val(timestamp).trigger('change');var formatted_date=$(this).data('formatted-date');$("#mec_booking_calendar_wrapper"+settings.id+" .mec-select-date-calendar-formatted-date").html(formatted_date);var $chosenMsg=$(this).closest(".mec-booking-calendar-container").find(".mec-choosen-time-message");$chosenMsg.removeClass("disable");$chosenMsg.find(".mec-choosen-time").empty().append($(this).data('formatted-date'));$("#mec_booking_calendar_"+settings.id+" .mec-booking-tooltip-container").hide()});
546var $has_time_repeat=$("#mec_booking_calendar_"+settings.id+" .mec-has-time-repeat");$has_time_repeat.off('click').on('click',function(){$("#mec_booking_calendar_"+settings.id+" .mec-has-time-repeat").removeClass('mec-wrap-active').removeClass('mec-active');$(this).addClass("mec-active");var $container=$("#mec_booking_calendar_"+settings.id+" .mec-booking-tooltip-container");var $tooltip=$(this).find(".mec-booking-tooltip");var $content=$tooltip.children().clone();$content.css('display','').removeAttr('style');$container.empty().append($content).show();var $activeDate=$(this).find(".mec-booking-calendar-date.mec-active");var sendTimeToMessage=$activeDate.length?$activeDate.data('formatted-date'):'';var $chosenMsg=$(this).closest(".mec-booking-calendar-container").find(".mec-choosen-time-message");$chosenMsg.removeClass("disable");$chosenMsg.find(".mec-choosen-time").empty().append(sendTimeToMessage)});if(settings.selected_datetime&&$has_time_repeat.length){var $selected_datetime=$(".mec-booking-calendar-date[data-timestamp='"+settings.selected_datetime+"']");if($selected_datetime.length){$selected_datetime.closest(".mec-has-time-repeat").trigger('click');var $sidebarDate=$(".mec-booking-tooltip-container .mec-booking-calendar-date[data-timestamp='"+settings.selected_datetime+"']");if($sidebarDate.length)$sidebarDate.trigger('click');}}
547$("#mec_booking_calendar_wrapper"+settings.id+" .mec-select-date-calendar-dropdown").off('click').on('click',function(){var $up=$("#mec_booking_calendar_wrapper"+settings.id+" .mec-select-date-calendar-icons-up");var $down=$("#mec_booking_calendar_wrapper"+settings.id+" .mec-select-date-calendar-icons-down");var $calendar=$("#mec_booking_calendar_wrapper"+settings.id+" .mec-select-date-calendar-container");var $current=$(this).find($('.mec-select-date-calendar-icons span:not(.mec-util-hidden)'));if($current.hasClass('mec-select-date-calendar-icons-up')){$up.addClass('mec-util-hidden');$down.removeClass('mec-util-hidden');$calendar.removeClass('mec-util-hidden');setTimeout(function(){$('body').off('click').on('click',mec_calendar_close_calendar_on_body_click)},100)}else{$up.removeClass('mec-util-hidden');$down.addClass('mec-util-hidden');$calendar.addClass('mec-util-hidden')}});function mec_calendar_close_calendar_on_body_click(e){var $up=$("#mec_booking_calendar_wrapper"+settings.id+" .mec-select-date-calendar-icons-up");var $down=$("#mec_booking_calendar_wrapper"+settings.id+" .mec-select-date-calendar-icons-down");var $calendar=$("#mec_booking_calendar_wrapper"+settings.id+" .mec-select-date-calendar-container");if($(e.target).closest($calendar).length>0)return!1;$up.removeClass('mec-util-hidden');$down.addClass('mec-util-hidden');$calendar.addClass('mec-util-hidden');$('body').off('click',mec_calendar_close_calendar_on_body_click)}}}}(jQuery));(function($){$.fn.mecCart=function(options){var settings=$.extend({ajax_url:'',},options);setListeners();function setListeners(){$(".mec-cart-remove-transactions").off('click').on('click',function(e){e.preventDefault();var transaction_id=$(this).data('transaction-id');remove(transaction_id)});$('#mec_cart_coupon_form').off('submit').on('submit',function(e){e.preventDefault();coupon()})}
548function remove(transaction_id){var $wrapper=$('.mec-cart');$wrapper.addClass('mec-loading');$.ajax({url:settings.ajax_url,data:"action=mec_cart_remove_transaction&transaction_id="+transaction_id,dataType:"json",type:"post",success:function(response){$wrapper.removeClass('mec-loading');if(response.success){$('#mec_cart_transactions_'+transaction_id).remove();if(!$('#mec_cart_transactions_table>tbody>tr').length){$('#mec_cart_transactions_table').remove();$('.mec-cart-coupon-checkout-action').remove();$('.mec-cart-empty-wrapper').removeClass('mec-util-hidden')}
549$('#mec_cart_total_payable').html(response.total)}},error:function(){}})}
550function coupon(){var $wrapper=$('.mec-cart');var $message=$('#mec_cart_message');$wrapper.addClass('mec-loading');$message.html('');var coupon=$('#mec_cart_coupon_input').val();$.ajax({url:settings.ajax_url,data:"action=mec_cart_coupon&coupon="+coupon,dataType:"json",type:"post",success:function(response){$wrapper.removeClass('mec-loading');if(response.success){$message.html('<p class="mec-success">'+response.message+'</p>');setTimeout(function(){location.reload()},2000)}else{$message.html('<p class="mec-error">'+response.message+'</p>')}},error:function(){}})}}}(jQuery));(function($){$.fn.mecCheckout=function(options){var settings=$.extend({ajax_url:'',},options);setListeners();function setListeners(){$(".mec-checkout-gateways-radio").off('change').on('change',function(e){e.preventDefault();var gateway_id=$('.mec-checkout-gateways-radio:checked').val();jQuery(".mec-checkout-form-gateway-checkout").addClass("mec-util-hidden");jQuery(".mec-checkout-price-details-wrapper").addClass("mec-util-hidden");jQuery(".mec-checkout-price-wrapper").addClass("mec-util-hidden");jQuery("#mec_checkout_form_gateway_checkout"+gateway_id).removeClass("mec-util-hidden");jQuery("#mec-checkout-price-details-wrapper-"+gateway_id).removeClass("mec-util-hidden");jQuery("#mec-checkout-price-wrapper-"+gateway_id).removeClass("mec-util-hidden")});if($(".mec-checkout-gateways-radio:first").length){$(".mec-checkout-gateways-radio:first").prop('checked',!0).change()}else{jQuery(".mec-checkout-price-details-wrapper:first").removeClass("mec-util-hidden")}
551$('#mec_checkout_form_free_booking').off('submit').on('submit',function(e){e.preventDefault();free()})}
552function free(){var $wrapper=$('.mec-checkout');var $message=$('#mec_checkout_message');$wrapper.addClass('mec-loading');$message.html('');var data=$('#mec_checkout_form_free_booking').serialize();$.ajax({url:settings.ajax_url,data:data,dataType:"json",type:"post",success:function(response){$wrapper.removeClass('mec-loading');if(response.success){$message.html('<div class="mec-success">'+response.message+'</div>');if(response.data&&typeof response.data.redirect_to!=="undefined"&&response.data.redirect_to!==""){setTimeout(function(){window.location.href=response.data.redirect_to},2000)}
553$wrapper.slideUp().html('')}else{$message.html('<div class="mec-error">'+response.message+'</div>')}},error:function(){}})}}}(jQuery));jQuery(document).ready(function(){mec_init_event_gallery();if(jQuery('.mec-booking-shortcode').length<0){return}
554if(jQuery().niceSelect){jQuery('.mec-booking-shortcode').find('.mec-book-first').find('select').niceSelect()}
555if(jQuery("#gCalendarMonthFilterButton").length>0){jQuery("#gCalendarMonthFilterButton").monthPicker({format:"yyyy-mm",viewM
555ode:"months",minViewMode:"months"})
556jQuery("#gCalendarMonthFilterButton").monthPicker('hide')}});function mec_init_event_gallery(){jQuery('.mec-event-gallery-wrapper').each(function(){let $gallery=jQuery(this);$gallery.find(jQuery('.mec-event-gallery-list li')).on('click',function(){let $image=jQuery(this).find(jQuery('img'));let src=$image.data('full-src');let alt=$image.attr('alt');jQuery('.mec-event-gallery-image img').fadeTo(200,0.8).attr('src',src).attr('alt',alt).fadeTo(200,1)})})}
557function mec_toggle_shortcode_pagination(shortcode_id,method){if(method==='show'){jQuery("#mec_skin_"+shortcode_id+" .mec-load-more-button").removeClass("mec-util-hidden");jQuery('#mec-nextprev-wrap-'+shortcode_id+' .mec-nextprev-next-button').removeClass("mec-util-hidden")}else{jQuery("#mec_skin_"+shortcode_id+" .mec-load-more-button").addClass("mec-util-hidden");jQuery('#mec-nextprev-wrap-'+shortcode_id+' .mec-nextprev-next-button').addClass("mec-util-hidden");jQuery('#mec-nextprev-wrap-'+shortcode_id+' .mec-nextprev-hide-button').addClass("mec-util-hidden")}}(function($){$.fn.mecProgressBar=function(){let $bar=$(this).find($('progress'));let value=parseInt($bar.attr('value'));const max=parseInt($bar.attr('max'));var passed=0;var remained=0;var passed_days;var passed_hours;var passed_minutes;var passed_seconds;var remained_days;var remained_hours;var remained_minutes;var remained_seconds;var $time_passed=$(this).find($('.mec-progress-bar-time-passed'));var $time_remained=$(this).find($('.mec-progress-bar-time-remained'));startProgress();var interval=setInterval(startProgress,1000);function startProgress(){if(value>=max){clearInterval(interval);return}
558value+=1;$bar.attr('value',value);let passed_str='';let remained_str='';passed=value;remained=max-passed;passed_days=Math.floor(passed/86400);passed-=passed_days*86400;passed_hours=Math.floor(passed/3600);passed-=passed_hours*3600;passed_minutes=Math.floor(passed/60);passed-=passed_minutes*60;passed_seconds=passed;remained_days=Math.floor(remained/86400);remained-=remained_days*86400;remained_hours=Math.floor(remained/3600);remained-=remained_hours*3600;remained_minutes=Math.floor(remained/60);remained-=remained_minutes*60;remained_seconds=remained;if(passed_days>0)passed_str+=(passed_days<10?'0':'')+passed_days+':';if(passed_days>0||passed_hours>0)passed_str+=(passed_hours<10?'0':'')+passed_hours+':';passed_str+=(passed_minutes<10?'0':'')+passed_minutes+':';passed_str+=(passed_seconds<10?'0':'')+passed_seconds;if(remained_days>0)remained_str+=(remained_days<10?'0':'')+remained_days+':';if(remained_days>0||remained_hours>0)remained_str+=(remained_hours<10?'0':'')+remained_hours+':';remained_str+=(remained_minutes<10?'0':'')+remained_minutes+':';remained_str+=(remained_seconds<10?'0':'')+remained_seconds;$time_passed.html(passed_str);$time_remained.html(remained_str)}}}(jQuery))
559;(function(){'use strict';if(window.mecRelayBeacon)return;var ajaxUrl=(typeof mecdata!=='undefined'&&mecdata.ajax_url)?mecdata.ajax_url:null;function bucket(n){n=parseInt(n,10)||0;if(n<=0)return'0';if(n<=4)return'1_4';if(n<=20)return'5_20';if(n<=100)return'21_100';return'101_plus'}
560window.mecRelayBeacon=function(event,props,dedupKey){if(!ajaxUrl||!navigator.sendBeacon)return;if(dedupKey){try{if(sessionStorage.getItem(dedupKey))return;sessionStorage.setItem(dedupKey,'1')}catch(e){}}
561var body=new FormData();body.append('action','mec_track_event');body.append('event',event);body.append('props',JSON.stringify(props||{}));navigator.sendBeacon(ajaxUrl,body)};var pending={action:null,filter_type:null};var FILTER_BY_ID=[['mec_sf_s','text'],['mec_sf_address_s','text_address'],['mec_sf_month','month'],['mec_sf_year','year'],['mec_sf_category','category'],['mec_sf_label','label'],['mec_sf_location','location'],['mec_sf_organizer','organizer'],['mec_sf_speaker','speaker'],['mec_sf_sponsor','sponsor'],['mec_sf_event_type','event_type'],['mec_sf_event_cost','cost'],['mec_sf_timepicker','time'],['mec_sf_date','date']];function filterTypeFromId(id){for(var i=0;i<FILTER_BY_ID.length;i++){if(id&&id.indexOf(FILTER_BY_ID[i][0])===0)return FILTER_BY_ID[i][1]}
562return'other'}
563jQuery(function($){if(!$||!$.fn)return;$(document).on('change','form[id^="mec_search_form_"] select, form[id^="mec_search_form_"] 
563input',function(){var id=(this.id||'');pending.action=(id.indexOf('mec_sf_s')===0)?'search':'filter';pending.filter_type=filterTypeFromId(id)});$(document).on('submit','form[id^="mec_search_form_"]',function(){if(!pending.action){pending.action='search';pending.filter_type='text'}});$(document).on('mec_search_init',function(event,view,viewSettings){if(!pending.action)return;var resultCount=0;if(viewSettings&&viewSettings.id){resultCount=$('#mec_skin_'+viewSettings.id+' .mec-event, #mec_skin_'+viewSettings.id+' article').length||$('.mec-wrap .mec-event, .mec-wrap article.mec-event-article').length}else{resultCount=$('.mec-wrap .mec-event, .mec-wrap article.mec-event-article').length}
564var props={discovery_action:pending.action,filter_type:pending.filter_type,selected_count:1,result_count_bucket:bucket(resultCount),view_type:view||null,calendar_url:location.origin+location.pathname};pending.action=null;pending.filter_type=null;window.mecRelayBeacon('mec_calendar_discovery_used',props)})})})()
565;var datepicker_format='yy-mm-dd';function mecEnhanceDatepickerAccessibility($inputs){if(!$inputs||!$inputs.length)return;$inputs.attr('aria-haspopup','dialog');$inputs.off('focus.mecDatepickerA11y').on('focus.mecDatepickerA11y',function(){window.setTimeout(function(){var $datepicker=jQuery('#ui-datepicker-div');if(!$datepicker.length)return;$datepicker.attr({role:'dialog','aria-live':'polite','aria-label':(typeof mecdata!=='undefined'&&mecdata.a11y_calendar_dialog)?mecdata.a11y_calendar_dialog:'Calendar date picker'})},0)})}
566jQuery(document).ready(function($){var mecMediaFrame;$('.mec_upload_image_button').click(function(event){event.preventDefault();if(wp.ajax.settings.url.indexOf('mec_fes=1')===-1)wp.ajax.settings.url=wp.ajax.settings.url+'?mec_fes=1';var post_id=$(this).data('post-id');if(post_id&&post_id!==-1)wp.media.model.settings.post.id=post_id;if(post_id===-1)wp.media.model.settings.post.id=null;var preview_id='mec_thumbnail_img';var input_id='mec_thumbnail';if($(this).data('preview-id'))preview_id=$(this).data('preview-id');if($(this).data('input-id'))input_id=$(this).data('input-id');if(mecMediaFrame)mecMediaFrame.dispose();mecMediaFrame=wp.media();mecMediaFrame.on('select',function(){var attachment=mecMediaFrame.state().get('selection').first();$('#'+preview_id).html('<img src="'+attachment.attributes.url+'" alt="Featured image preview" />');$('#'+input_id).val(attachment.attributes.url);$('.mec_remove_image_button').filter(function(){return(($(this).data('preview-id')||'mec_thumbnail_img')===preview_id)}).removeClass('mec-util-hidden');if(preview_id==='mec_banner_thumbnail_img')mecSyncThumbnailButtons('banner');mecMediaFrame.close()});mecMediaFrame.open()});$('.mec_remove_image_button').click(function(event){event.preventDefault();var preview_id='mec_thumbnail_img';var input_id='mec_thumbnail';if($(this).data('preview-id'))preview_id=$(this).data('preview-id');if($(this).data('input-id'))input_id=$(this).data('input-id');$('#'+preview_id).html('');$('#'+input_id).val('');$('.mec_remove_image_button').filter(function(){return(($(this).data('preview-id')||'mec_thumbnail_img')===preview_id)}).addClass('mec-util-hidden');if(preview_id==='mec_banner_thumbnail_img')mecSyncThumbnailButtons('banner');});function mecSyncThumbnailButtons(which){var hasImage=$.trim($('#mec_'+which+'_thumbnail').val())!==''||$('#mec_'+which+'_thumbnail_img').children('img').length>0;var $remove=$('.mec_'+which+'_remove_image_button');if(!$remove.length)$remove=$('.mec_remove_image_button').filter(function(){return(($(this).data('preview-id')||'mec_thumbnail_img')==='mec_'+which+'_thumbnail_img')});$remove.toggleClass('mec-util-hidden',!hasImage);$('#mec_'+which+'_thumbnail_button').toggleClass('mec-util-hidden',hasImage&&$remove.length>0)}
567var mecLocationMediaFrame;$('.mec_location_upload_image_button').click(function(event){event.preventDefault();if(mecLocationMediaFrame){mecLocationMediaFrame.open();return}
568mecLocationMediaFrame=wp.media();mecLocationMediaFrame.on('select',function(){var attachment=mecLocationMediaFrame.state().get('selection').first();$('#mec_location_thumbnail_img').html('<img src="'+attachment.attributes.url+'" />');$('#mec_location_thumbnail').val(attachment.attributes.url);mecSyncThumbnailButtons('location');mecLocationMediaFrame.close()});mecLocationMediaFrame.open()});$('.mec_location_remove_image_button').click(function(event){event.preventDefault();$('#mec_location_thumbnail_img').html('');$('#mec_location_thumbnail').val('');mecSyncThumbnailButtons('location')});var mecOrganizerMediaFrame;$('.mec_organizer_upload_image_button').click(function(event){event.preventDefault();if(mecOrganizerMediaFrame){mecOrganizerMediaFrame.open();return}
569mecOrganizerMediaFrame=wp.media();mecOrganizerMediaFrame.on('select',function(){var attachment=mecOrganizerMediaFrame.state().get('selection').first();$('#mec_organizer_thumbnail_img').html('<img src="'+attachment.attributes.url+'" />');$('#mec_organizer_thumbnail').val(attachment.attributes.url);mecSyncThumbnailButtons('organizer');mecOrganizerMediaFrame.close()});mecOrganizerMediaFrame.open()});$('.mec_organizer_remove_image_button').click(function(event){event.preventDefault();$('#mec_organizer_thumbnail_img').html('');$('#mec_organizer_thumbnail').val('');mecSyncThumbnailButtons('organizer')});mecSyncThumbnailButtons('location');mecSyncThumbnailButtons('organizer');mecSyncThumbnailButtons('banner');$('#mec_fes_remove_image_button').click(function(event){event.preventDefault();$('#mec_fes_thumbnail_img').html('');$('#mec_fes_thumbnail').val('');$('#mec_featured_image_file').val('');$('#mec_fes_remove_image_button').addClass('mec-util-hidden')});$('#mec_fes_location_remove_image_button').click(function(event){event.preventDefault();$('#mec_fes_location_thumbnail_img').html('');$('#mec_fes_location_thumbnail').val('');$('#mec_fes_location_thumbnail_file').val('');$('#mec_fes_location_remove_image_button').addClass('mec-util-hidden')});$('#mec_fes_organizer_remove_image_button').click(function(event){event.preventDefault();$('#mec_fes_organizer_thumbnail_img').html('');$('#mec_fes_organizer_thumbnail').val('');$('#mec_fes_organizer_thumbnail_file').val('');$('#mec_fes_organizer_remove_image_button').addClass('mec-util-hidden')});$('#mec_fes_sponsor_remove_image_button').click(function(event){event.preventDefault();$('#mec_fes_sponsor_thumbnail_img').html('');$('#mec_fes_sponsor_thumbnail').val('');$('#mec_fes_sponsor_thumbnail_file').val('');$('#mec_fes_sponsor_remove_image_button').addClass('mec-util-hidden')});$('#mec_fes_speaker_remove_image_button').click(function(event){event.preventDefault();$('#mec_fes_speaker_thumbnail_img').html('');$('#mec_fes_speaker_thumbnail').val('');$('#mec_fes_speaker_thumbnail_file').val('');$('#mec_fes_speaker_remove_image_button').addClass('mec-util-hidden')});var date_splite;if(typeof mec_admin_localize!=='undefined'){date_splite=mec_admin_localize.datepicker_format.split('&');if(date_splite[0]!==undefined&&date_splite.length==2)datepicker_format=date_splite[0]}else if(typeof mecdata!=='undefined'){date_splite=mecdata.datepicker_format.split('&');if(date_splite[0]!==undefined&&date_splite.length==2)datepicker_format=date_splite[0]}
570$('[id^="mec-book-form-btn-step"]').on('click',function(){setTimeout(function(){if($.fn.datepicker){if('date'!==$('.mec-date-picker').prop('type')){$('.mec-date-picker').datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-3:c+5',})}}},1000)});if($.fn.datepicker){mecEnhanceDatepickerAccessibility($('.mec-date-picker, .mec_date_picker_dynamic_format, .mec_date_picker, .mec_date_picker_dynamic_format_start, .mec_date_picker_dynamic_format_end, #mec_start_date, #mec_end_date, #mec_date_repeat_end_at_date'));$('.mec-date-picker').datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-3:c+5',});$('#mec_start_date').datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-3:c+5',onSelect:function(value,i){const end=$("#mec_end_date");if(value!==i.lastVal){end.datepicker("option","minDate",value)}
571if(end.val()===''){end.val(value)}
572$(this).trigger('change')}});$('#mec_end_date').datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-3:c+5',onSelect:function(value,i){const start=$("#mec_start_date");if(value!==i.lastVal){start.datepicker("option","maxDate",value)}
573if(start.val()===''){start.val(value)}
574$(this).trigger('change')}});function mecTimeLabel(h24,min,is12){var pad=function(n){return(n<10?'0':'')+n};if(is12){var h12=h24%12;if(h12===0)h12=12;return pad(h12)+':'+pad(min)+' '+(h24<12?'AM':'PM')}
575return pad(h24)+':'+pad(min)}
576function mecWriteTime(prefix,totalMinutes){totalMinutes=Math.max(0,Math.min(1439,totalMinutes));var hour24=Math.floor(totalMinutes/60);var min=Math.floor((totalMinutes%60)/5)*5;var $h=$('#'+prefix+'hour');if(!$h.length)return;var $ampm=$('#'+prefix+'ampm');if($ampm.length){var h12=hour24%12;if(h12===0)h12=12;$h.val(h12);$ampm.val(hour24<12?'AM':'PM')}else $h.val(hour24);$('#'+prefix+'minutes').val(min);var $w=$('#'+prefix+'time');if($w.length)$w.val(mecTimeLabel(hour24,min,$ampm.length>0));}
577function mecTimeInitOne($in){if(!$in.length||$in.data('mec-time-init'))return;$in.data('mec-time-init',!0);var $wrap=$in.closest('.mec-time-combo-wrap');if(!$wrap.length)return;var is12=parseInt($in.data('format'),10)!==24;var $dd=$('<div class="mec-time-dd"><ul></ul></div>').appendTo('body');var $list=$dd.find('ul');var $clear=$wrap.find('.mec-time-clear');var hi=-1;var $h=$wrap.find('.mec-time-hour');var $m=$wrap.find('.mec-time-minutes');var $ampm=$wrap.find('.mec-time-ampm');if(!$h.length)return;var options=[];for(var i=0;i<288;i++){var total=i*5;options.push({total:total,label:mecTimeLabel(Math.floor(total/60),total%60,is12)})}
578function toggleClear(){$clear.toggle(!!$in.val())}
579function matches(term,label){term=(term||'').toLowerCase().trim();if(!term)return!0;
579if(label.toLowerCase().indexOf(term)>-1)return!0;var td=term.replace(/\D/g,'');return td.length>0&&label.replace(/\D/g,'').indexOf(td)>-1}
580function render(term){$list.empty();options.forEach(function(o){if(matches(term,o.label))$('<li/>').text(o.label).data('total',o.total).appendTo($list);});hi=$list.children().length?0:-1;highlight()}
581function highlight(){$list.children().removeClass('mec-time-dd-active');if(hi>=0)$list.children().eq(hi).addClass('mec-time-dd-active');}
582function move(delta){var n=$list.children().length;if(!n)return;hi=(hi+delta+n)%n;highlight();var $el=$list.children().eq(hi);if($el.length)$dd.scrollTop($el.position().top+$dd.scrollTop()-60);}
583function open(){render('');var pos=$in.offset();$dd.css({left:pos.left+'px',top:(pos.top+$in.outerHeight()+2)+'px',width:$in.outerWidth()+'px'}).show()}
584function close(){$dd.hide();hi=-1}
585function writeLocal(total){var hour24=Math.floor(total/60);var min=Math.floor((total%60)/5)*5;if($ampm.length){var h12=hour24%12;if(h12===0)h12=12;$h.val(h12);$ampm.val(hour24<12?'AM':'PM')}else $h.val(hour24);$m.val(min);$in.val(mecTimeLabel(hour24,min,is12))}
586function readLocalH24(){var h24=parseInt($h.val(),10);if(isNaN(h24))h24=0;if($ampm.length){if($ampm.val()==='PM'&&h24!==12)h24+=12;else if($ampm.val()==='AM'&&h24===12)h24=0}
587return h24}
588function choose(total){writeLocal(total);$in.trigger('change');toggleClear();close()}
589toggleClear();$wrap.on('mousedown','.mec-time-clear',function(e){e.preventDefault();$in.val('');open();$in.focus();toggleClear()});$in.on('focus',function(){open()});$in.on('click',function(){if(!$dd.is(':visible'))open();});$in.on('input',function(){if(!$dd.is(':visible'))$dd.show();render($in.val());toggleClear()});$in.on('keydown',function(e){if(e.key==='ArrowDown'){e.preventDefault();if(!$dd.is(':visible'))open();else move(1)}else if(e.key==='ArrowUp'){e.preventDefault();move(-1)}else if(e.key==='Enter'){if(hi>=0){e.preventDefault();var t=$list.children().eq(hi).data('total');if(t!==undefined)choose(t);}}else if(e.key==='Escape'){close()}else if(e.key==='Tab'){close()}});$list.on('mousedown','li',function(e){e.preventDefault();choose($(this).data('total'))});$in.on('blur',function(){setTimeout(function(){close();var val=($in.val()||'').trim();var found=null;for(var k=0;k<options.length;k++){if(options[k].label.toLowerCase()===val.toLowerCase()){found=options[k];break}}
590if(found)writeLocal(found.total);else{var h24=readLocalH24();var mm=parseInt($m.val(),10)||0;$in.val(mecTimeLabel(h24,mm,is12))}
591toggleClear()},150)})}
592function mecInitTimeCombos(){$('.mec-time-combo').each(function(){mecTimeInitOne($(this))})}
593mecInitTimeCombos();if(typeof MutationObserver!=='undefined'){var mecTimeMO=new MutationObserver(function(mutations){for(var i=0;i<mutations.length;i++){var added=mutations[i].addedNodes;for(var j=0;j<added.length;j++){var n=added[j];if(n.nodeType===1&&((n.matches&&(n.matches('.mec-time-combo')||n.matches('.mec-hourly-time')))||(n.querySelector&&(n.querySelector('.mec-time-combo')||n.querySelector('.mec-hourly-time'))))){setTimeout(function(){mecInitTimeCombos();mecInitHourlyTimes()},30);return}}}});mecTimeMO.observe(document.body,{childList:!0,subtree:!0})}
594var $activeDDs=$();$(document).on('mousedown',function(e){$('.mec-time-dd').each(function(){if(this!==e.target&&!this.contains(e.target)){var $w=$(this);var $combo=$w.prevAll('.mec-time-combo-wrap').first().find('.mec-time-combo');var inCombo=!1;$('.mec-time-combo-wrap').each(function(){if(this.contains(e.target))inCombo=!0});$('.mec-hourly-time-wrap').each(function(){if(this.contains(e.target))inCombo=!0});if(!inCombo)$w.hide();}})});function mecParseTimeString(str,is12){str=(str||'').trim().toUpperCase();if(!str)return null;var m=str.match(/^(\d{1,2})[:.\s](\d{1,2})\s*(AM|PM)?$/);if(!m)return null;var h=parseInt(m[1],10);var min=parseInt(m[2],10);if(isNaN(h)||isNaN(min)||h<0||h>23||min<0||min>59)return null;var ap=m[3];if(ap==='PM'&&h!==12)h+=12;else if(ap==='AM'&&h===12)h=0;return h*60+min}
595function mecHourlyTimeInitOne($in){if(!$in.length||$in.data('mec-time-init'))return;$in.data('mec-time-init',!0);var $wrap=$in.closest('.mec-hourly-time-wrap');if(!$wrap.length)return;var is12=parseInt($in.data('format'),10)!==24;var $dd=$('<div class="mec-time-dd"><ul></ul></div>').appendTo('body');var $list=$dd.find('ul');var $clear=$wrap.find('.mec-time-clear');var hi=-1;var options=[];for(var i=0;i<288;i++){var total=i*5;options.push({total:total,label:mecTimeLabel(Math.floor(total/60),total%60,is12)})}
596function toggleClear(){$clear.toggle(!!$in.val())}
597function matches(term,label){term=(term||'').toLowerCase().trim();if(!term)return!0;
597if(label.toLowerCase().indexOf(term)>-1)return!0;var td=term.replace(/\D/g,'');return td.length>0&&label.replace(/\D/g,'').indexOf(td)>-1}
598function highlight(){$list.children().removeClass('mec-time-dd-active');if(hi>=0)$list.children().eq(hi).addClass('mec-time-dd-active');}
599function render(term){$list.empty();options.forEach(function(o){if(matches(term,o.label))$('<li/>').text(o.label).data('total',o.total).appendTo($list);});hi=$list.children().length?0:-1;highlight()}
600function move(delta){var n=$list.children().length;if(!n)return;hi=(hi+delta+n)%n;highlight();var $el=$list.children().eq(hi);if($el.length)$dd.scrollTop($el.position().top+$dd.scrollTop()-60);}
601function open(){render('');var cur=mecParseTimeString($in.val(),is12);if(cur!==null){var snapped=Math.floor(cur/5)*5;$list.children().each(function(){if($(this).data('total')===snapped){hi=$(this).index();return!1}});highlight()}
602var pos=$in.offset();$dd.css({left:pos.left+'px',top:(pos.top+$in.outerHeight()+2)+'px',width:$in.outerWidth()+'px'}).show()}
603function close(){$dd.hide();hi=-1}
604function choose(total){var hour24=Math.floor(total/60);var min=total%60;$in.val(mecTimeLabel(hour24,min,is12)).trigger('change');toggleClear();close()}
605toggleClear();$wrap.on('mousedown','.mec-time-clear',function(e){e.preventDefault();$in.val('');open();$in.focus();toggleClear()});$in.on('focus',function(){open()});$in.on('click',function(){if(!$dd.is(':visible'))open();});$in.on('input',function(){if(!$dd.is(':visible'))$dd.show();render($in.val());toggleClear()});$in.on('keydown',function(e){if(e.key==='ArrowDown'){e.preventDefault();if(!$dd.is(':visible'))open();else move(1)}else if(e.key==='ArrowUp'){e.preventDefault();move(-1)}else if(e.key==='Enter'){if(hi>=0){e.preventDefault();var t=$list.children().eq(hi).data('total');if(t!==undefined)choose(t);}}else if(e.key==='Escape'){close()}else if(e.key==='Tab'){close()}});$list.on('mousedown','li',function(e){e.preventDefault();choose($(this).data('total'))});$in.on('blur',function(){setTimeout(function(){close();var val=($in.val()||'').trim();if(!val){toggleClear();return}
606var total=mecParseTimeString(val,is12);if(total!==null){var snapped=Math.floor(total/5)*5;$in.val(mecTimeLabel(Math.floor(snapped/60),snapped%60,is12))}
607toggleClear()},150)})}
608function mecInitHourlyTimes(){$('.mec-hourly-time').each(function(){mecHourlyTimeInitOne($(this))})}
609mecInitHourlyTimes();(function(){var $postForm=$('#post');var $startDate=$('#mec_start_date');var $endDate=$('#mec_end_date');if(!$postForm.length||!$startDate.length)return;var mecVL=(typeof mec_admin_localize!=='undefined')?mec_admin_localize:{};var warningsAcknowledged=!1;function mecNotice(opts){var o=$.extend({type:'info',title:'',message:'',items:[],primaryText:'',primaryAction:null,dismissText:'',container:'#poststuff',id:'mec-notice-'+Date.now()},opts);$('.mec-notice-temp').remove();var body='';if(o.title)body+='<div class="mec-notice-title">'+o.title+'</div>';if(o.items&&o.items.length)body+='<ul class="mec-notice-list">'+o.items.map(function(i){return'<li>'+i+'</li>'}).join('')+'</ul>';else if(o.message)body+='<p class="mec-notice-text">'+o.message+'</p>';if(o.primaryText||o.dismissText){body+='<div class="mec-notice-actions">';if(o.primaryText)body+='<button type="button" class="mec-notice-btn mec-notice-btn--primary mec-notice-primary">'+o.primaryText+'</button>';if(o.dismissText)body+='<button type="button" class="mec-notice-btn mec-notice-btn--ghost mec-notice-dismiss">'+o.dismissText+'</button>';body+='</div>'}
610var $n=$('<div/>',{id:o.id,'class':'mec-notice mec-notice--'+o.type+' mec-notice-temp',html:'<div class="mec-notice-accent"></div><div class="mec-notice-body">'+body+'</div><div class="mec-notice-close" aria-label="Close" role="button" tabindex="0">&times;</div>'});$(o.container).prepend($n);$('html, body').animate({scrollTop:$n.offset().top-40},200);$n.find('.mec-notice-dismiss, .mec-notice-close').on('click',function(){$n.remove()});if(o.primaryText){$n.find('.mec-notice-primary').on('click',function(){if(typeof o.primaryAction==='function')o.primaryAction();$n.remove()})}
611return $n}
612function mecVLTab(tabId){$('#mec_metabox_details .mec-add-event-tabs-link[data-href="'+tabId+'"]').trigger('click')}
613function mecVLTime24(prefix){var $h=$('#'+prefix+'hour');if(!$h.length)return{hour:0,min:0};var hour=parseInt($h.val(),10)||0;var min=($('#'+prefix+'minutes').length)?(parseInt($('#'+prefix+'minutes').val(),10)||0):0;var $ampm=$('#'+prefix+'ampm');if($ampm.length){if($ampm.val()==='PM'&&hour!==12)hour+=12;else if($ampm.val()==='AM'&&hour===12)hour=0}
614return{hour:hour,min:min}}
615function mecVLSetTime24(prefix,totalMinutes){if(typeof mecWriteTime==='function')mecWr
615iteTime(prefix,totalMinutes);}
616function mecVLParseDate($field){var raw=$.trim($field.val()||'');if(!raw)return null;try
617{return $.datepicker.parseDate(datepicker_format,raw)}catch(e){var fb=new Date(raw);return isNaN(fb.getTime())?null:fb}}
618function mecVLShowError($field,message){$field.addClass('mec-field-invalid').attr('aria-invalid','true');var $err=$field.next('.mec-field-error');if(!$err.length){$err=$('<span class="mec-field-error" role="alert"></span>');$field.after($err)}
619$err.text(message)}
620function mecVLClearError($field){$field.removeClass('mec-field-invalid').removeAttr('aria-invalid');$field.next('.mec-field-error').remove()}
621$startDate.add($endDate).on('input change',function(){mecVLClearError($(this))});var $startWidget=$('#mec_start_time');if($startWidget.length){var startBefore=null;$startWidget.on('focus',function(){if($('#mec_allday').is(':checked'))return;var t=mecVLTime24('mec_start_');startBefore=t.hour*60+t.min}).on('change',function(){if(startBefore===null)return;var t=mecVLTime24('mec_start_');var now=t.hour*60+t.min;var delta=now-startBefore;startBefore=now;if(!delta)return;var e=mecVLTime24('mec_end_');mecWriteTime('mec_end_',(e.hour*60+e.min)+delta)})}else{var $startSelects=$('#mec_start_hour, #mec_start_minutes, #mec_start_ampm');if($startSelects.length){var legacyBefore=null;$startSelects.on('focus',function(){if($('#mec_allday').is(':checked'))return;var t=mecVLTime24('mec_start_');legacyBefore=t.hour*60+t.min}).on('change',function(){if($('#mec_allday').is(':checked')){legacyBefore=null;return}
622if(legacyBefore===null)return;var t=mecVLTime24('mec_start_');var now=t.hour*60+t.min;var delta=now-legacyBefore;legacyBefore=now;if(delta===0)return;var e=mecVLTime24('mec_end_');mecVLSetTime24('mec_end_',(e.hour*60+e.min)+delta)})}}
623$postForm.on('submit',function(e){mecVLClearError($startDate);mecVLClearError($endDate);var submitter=(e.originalEvent&&e.originalEvent.submitter)?$(e.originalEvent.submitter):null;if(submitter&&submitter.attr('id')==='save-post')return;if($('#wp-preview').val()==='dopreview')return;if(window.history&&window.history.replaceState&&window.location.href.indexOf('wp-post-new-reload')>-1){window.history.replaceState(null,null,window.location.href.replace(/([?&])wp-post-new-reload=true&?/,'$1').replace(/[?&]$/,''))}
624var startRaw=$.trim($startDate.val()||'');var endRaw=$.trim($endDate.val()||'');if(!startRaw){e.preventDefault();mecVLTab('mec_meta_box_date_form');mecVLShowError($startDate,mecVL.start_date_required||'Please enter a start date for the event.');$startDate.trigger('focus');mecNotice({type:'error',title:'Start date required',message:mecVL.start_date_required||'Please enter a start date for the event.',dismissText:'Got it'});return}
625if(endRaw){var sDate=mecVLParseDate($startDate);var eDate=mecVLParseDate($endDate);if(sDate&&eDate){var allday=$('#mec_allday').is(':checked');var sT=allday?{hour:0,min:0}:mecVLTime24('mec_start_');var eT=allday?{hour:0,min:0}:mecVLTime24('mec_end_');var start=new Date(sDate.getFullYear(),sDate.getMonth(),sDate.getDate(),sT.hour,sT.min,0,0);var finish=new Date(eDate.getFullYear(),eDate.getMonth(),eDate.getDate(),eT.hour,eT.min,0,0);if(finish.getTime()<start.getTime()){e.preventDefault();mecVLTab('mec_meta_box_date_form');mecVLShowError($endDate,mecVL.end_after_start||'The end date and time must be on or after the start date and time.');$endDate.trigger('focus');mecNotice({type:'error',title:'End is before start',message:mecVL.end_after_start||'The end date and time must be on or after the start date and time.',dismissText:'Got it'});return}}}
626var warnings=[];var $bookingBox=$('#mec_metabox_booking');$('.mec-notice-temp').remove();var $realTickets=$('#mec-tickets input[name*="[name]"]').filter(function(){return $.trim($(this).val())!==''});var hasTickets=$realTickets.length>0;if($('#mec_repeat').is(':checked')&&$('#mec_repeat_type').val()==='certain_weekdays'&&$('input[name="mec[date][repeat][certain_weekdays][]"]:checked').length===0){e.preventDefault();mecVLTab('mec_meta_box_repeat_form');mecNotice({type:'error',title:'No weekdays selected',message:'Repeating is set to "Certain Weekdays" but no weekdays are checked.',dismissText:'Got it'});return}
627var $endRadio=$('#mec_repeat_end_type').length?$('#mec_repeat_end_type'):$('input[name="mec[date][repeat][end]"]:checked');if($endRadio.val()==='occurrences'){var occ=parseInt($('#mec_date_repeat_end_at_occurrences').val(),10);if(isNaN(occ)||occ<=0){e.preventDefault();mecVLTab('mec_meta_box_repeat_form');mecNotice({type:'error',title:'Invalid occurrence count',message:'The number of occurrences must be at least 1.',dismissText:'Got it'});return}}
628if(hasTickets){$realTickets.each(function(){var $name=$(this);var $row=$name.closest('.mec-ticket-start-time, .wn-ticket-time').parent();var $price=$row.find('input[name*="price"]');if(!$price.length)$price=$name.closest('[class*="ticket"]').find('input[name*="price"]');if($price.length&&$.trim($price.val())==='')warnings.push('A ticket has a name but no price set.');});if($.trim($('#mec_cost').val())===''&&!$('#mec_cost_is_free').is(':checked')&&!$('#mec_cost_auto_calculate').is(':checked'))warnings.push('This event has t
628ickets but no cost is displayed.');}
629if(!$('#set-post-thumbnail img').length&&!$('#postimagediv img').length)warnings.push('No featured image set.');var c=(typeof tinymce!=='undefined'&&tinymce.get('content'))?tinymce.get('content').getContent():($('#content').val()||'');if($.trim(c.replace(/<[^>]*>/g,''))==='')warnings.push('No event description/content.');var lv=$('#mec_location_id').val();if(!lv||lv==='0'||lv==='1')warnings.push('No location set.');var ov=$('#mec_organizer_id').val();if(!ov||ov==='0'||ov==='1')warnings.push('No organizer set.');if($endRadio.val()==='occurrences'){var ow=parseInt($('#mec_date_repeat_end_at_occurrences').val(),10);if(!isNaN(ow)&&ow<=1)warnings.push('Repeat ends after only '+ow+' occurrence(s).');}
630if(!$('#mec_allday').is(':checked')){var sT=mecVLTime24('mec_start_'),eT=mecVLTime24('mec_end_');if(sT&&eT&&sT.hour===eT.hour&&sT.min===eT.min)warnings.push('Start and end times are identical (zero duration).');}
631if(!warningsAcknowledged&&warnings.length>0){e.preventDefault();mecNotice({type:'warning',title:'Publishing with warnings',items:warnings,primaryText:'Publish anyway',primaryAction:function(){warningsAcknowledged=!0;$('#publish').trigger('click')},dismissText:'Go back and fix'});return}})})();(function(){var mecDirty=!1;var $scope=$('#mec_metabox_details, #mec_metabox_booking, #mec_metabox_visibility, #mec_metabox_gallery');var mecUserInteracted=!1;$('#post').one('mousedown keydown',function(){mecUserInteracted=!0});$scope.on('change input','input, select, textarea',function(){if(mecUserInteracted)mecDirty=!0});$('#post').on('submit',function(e){if(!e.isDefaultPrevented())mecDirty=!1});$(window).on('beforeunload',function(e){if(mecDirty){e.preventDefault();e.returnValue='';return''}})})();$('#mec_date_repeat_end_at_date').datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-3:c+5',});$('.mec_date_picker_dynamic_format').datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-3:c+5',});$('#mec_repeat_end_type').on('change',function(){var v=$(this).val();$('.mec-end-repeat-date-wrap').toggleClass('mec-is-hidden',v!=='date');$('.mec-end-repeat-occurrences-wrap').toggleClass('mec-is-hidden',v!=='occurrences')});$('.mec_date_picker').datepicker({changeYear:!0,changeMonth:!0,dateFormat:'yy-mm-dd',gotoCurrent:!0,yearRange:'c-3:c+5',});$('.mec_date_picker_dynamic_format_start').datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-1:c+5',onSelect:function(date){var selectedDate;try
632{selectedDate=$.datepicker.parseDate(datepicker_format,date)}catch(e){selectedDate=new Date(date)}
633if(!(selectedDate instanceof Date)||isNaN(selectedDate.getTime()))return;var endDate=new Date(selectedDate.getTime());var $end_picker=$(this).next();$end_picker.datepicker("option","minDate",endDate);$end_picker.datepicker("option","maxDate",'+5y');$(this).trigger('change')}});$('.mec_date_picker_dynamic_format_end').datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-1:c+5',});trigger_period_picker()}
634if($.fn.wpColorPicker)jQuery('.mec-color-picker').wpColorPicker();$('#mec_location_id').on('change',function(){mec_location_toggle();var mec_location_val=parseInt($(this).val());if(mec_location_val!=1)$('#mec-additional-location-wrap').show();else $('#mec-additional-location-wrap').hide()});$('#mec_organizer_id').on('change',function(){mec_organizer_toggle();var mec_organizer_val=parseInt($(this).val());if(mec_organizer_val!=1)$('#mec-additional-organizer-wrap').show();else $('#mec-additional-organizer-wrap').hide()});mec_location_toggle();mec_organizer_toggle();$('#mec_repeat').on('change',function(){mec_repeat_toggle()});mec_repeat_toggle();$('#mec_repeat_type').on('change',function(){mec_repeat_type_toggle()});mec_repeat_type_toggle();(function(){var $toggle=$('#mec_cost_is_free');var $cost=$('#mec_cost');if(!$toggle.length||!$cost.length)return;function applyFree(){if($toggle.is(':checked')){$cost.data('prev-cost',$cost.val());$cost.val('0').prop('readonly',!0).addClass('mec-cost-locked')}else{$cost.prop('readonly',!1).removeClass('mec-cost-locked');var prev=$cost.data('prev-cost');if(typeof prev!=='undefined')$cost.val(prev);}}
635$toggle.on('change',applyFree);applyFree()})();function mecEnhanceTabs(cfg){var $ctx=$(cfg.context);if(!$ctx.length)return;var $tablist=$ctx.find(cfg.tablist);var $tabs=$ctx.find(cfg.tab);var $panels=$ctx.find(cfg.panel);if(!$tabs.length)return;$tablist.attr('role','tablist');$tabs.each(function(){var $t=$(this);var panelId=$t.attr('data-href');var tabId=$t.attr('id')||(panelId+'-tab');var active=$t.hasClass('mec-tab-active');$t.attr({'id':tabId,'role':'tab','aria-controls':panelId,'aria-selected':active?'true':'false','tabindex':active?'0':'-1'})});$panels.each(function(){var $p=$(this);$p.attr({'role':'tabpanel','aria-labelledby':$p.attr('id')+'-tab','aria-hidden':$p.hasClass('mec-tab-active')?'false':'true'})});function syncTabs(){$tabs.each(function(){var $t=$(this);var active=$t.hasClass('mec-tab-active');$t.attr('aria-selected',active?'true':'false');$t.attr('tabindex',active?'0':'-1')});$panels.each(function(){$(this).attr('aria-hidden',$(this).hasClass('mec-tab-active')?'false':'true')})}
636$tablist.on('click',cfg.tab,function(){syncTabs()});$tablist.on('keydown',cfg.tab,function(e){var idx=$tabs.index(this);var $target=null;switch(e.key){case 'ArrowRight':case 'ArrowDown':$target=$tabs.eq(idx+1);break;case 'ArrowLeft':case 'ArrowUp':$target=$tabs.eq(idx-1);break;case 'Home':$target=$tabs.first();break;
636case 'End':$target=$tabs.last();break;case 'Enter':case ' ':e.preventDefault();$(this).trigger('click');this.focus();return;default:return}
637if($target&&$target.length){e.preventDefault();$target.trigger('click');$target[0].focus()}})}
638mecEnhanceTabs({context:'#mec_metabox_details',tablist:'.mec-add-event-tabs-left',tab:'.mec-add-event-tabs-link',panel:'.mec-event-tab-content'});mecEnhanceTabs({context:'#mec_metabox_booking',tablist:'.mec-add-booking-tabs-left',tab:'.mec-add-booking-tabs-link',panel:'.mec-booking-tab-content'});$('.mec-tooltip').each(function(idx){var $tip=$(this);var $box=$tip.find('.box').first();var $icon=$tip.find('i').first();if(!$box.length||!$icon.length)return;var boxId=$box.attr('id')||('mec-tip-'+idx);$box.attr('id',boxId);$icon.attr({'tabindex':'0','role':'button','aria-describedby':boxId});if(!$icon.attr('aria-label')&&!$icon.attr('title')){var title=$tip.find('.title').first().text();$icon.attr('aria-label',title||'More information')}});(function(){var $box=$('#mec-repeat-preview');var $body=$box.find('.mec-repeat-preview-body');var $form=$('#mec_meta_box_repeat_form');if(!$box.length||!$body.length||!$form.length)return;var loc=(typeof mec_admin_localize!=='undefined')?mec_admin_localize:((typeof mecdata!=='undefined')?mecdata:{});var units=loc.interval_units||{};var PREVIEW_MAX=5;function parseDate($field){var raw=$.trim($field.val()||'');if(!raw)return null;try{return $.datepicker.parseDate(datepicker_format,raw)}catch(e){var d=new Date(raw);return isNaN(d.getTime())?null:d}}
639function fmt(date){try{return $.datepicker.formatDate(datepicker_format,date)}catch(e){return date.toDateString()}}
640function addDays(d,n){var x=new Date(d.getTime());x.setDate(x.getDate()+n);return x}
641function addMonths(d,n){var x=new Date(d.getTime());x.setMonth(x.getMonth()+n);return x}
642function addYears(d,n){var x=new Date(d.getTime());x.setFullYear(x.getFullYear()+n);return x}
643function mecDayToJs(n){n=parseInt(n,10);return n===7?0:n}
644function readEnd(){var end=($('#mec_repeat_end_type').length?$('#mec_repeat_end_type').val():$('input[name="mec[date][repeat][end]"]:checked').val());var endDate=null,maxOcc=null;if(end==='date')endDate=parseDate($('#mec_date_repeat_end_at_date'));else if(end==='occurrences'){var n=parseInt($('#mec_date_repeat_end_at_occurrences').val(),10);if(n>0)maxOcc=n}
645return{type:end||'never',endDate:endDate,maxOcc:maxOcc}}
646function generate(type,interval,start,weekdays,end){var dates=[];var guard=0;var max=end.maxOcc?Math.min(end.maxOcc,PREVIEW_MAX+1):(PREVIEW_MAX+1);var endDateMs=end.endDate?end.endDate.getTime():null;function pushIfValid(d){if(endDateMs!==null&&d.getTime()>endDateMs)return!1;dates.push(d);return dates.length<max}
647if(type==='daily'||type==='weekly'){var stepDays=(type==='weekly'?Math.max(1,interval)*7:Math.max(1,interval));var d=new Date(start.getTime());while(dates.length<max&&guard++<10000){if(!pushIfValid(d))break;d=addDays(d,stepDays)}}else if(type==='monthly'){var n=Math.max(1,interval);var d=new Date(start.getTime());while(dates.length<max&&guard++<10000){if(!pushIfValid(d))break;d=addMonths(d,n)}}else if(type==='yearly'){var n=Math.max(1,interval);var d=new Date(start.getTime());while(dates.length<max&&guard++<10000){if(!pushIfValid(d))break;d=addYears(d,n)}}else if(type==='weekday'||type==='weekend'||type==='certain_weekdays'){var target;if(type==='weekday')target=[1,2,3,4,5];else if(type==='weekend')target=[0,6];else target=weekdays.map(mecDayToJs);var d=new Date(start.getTime());while(dates.length<max&&guard++<40000){if(target.indexOf(d.getDay())!==-1){if(!pushIfValid(d))break}
648if(endDateMs!==null&&d.getTime()>endDateMs)break;d=addDays(d,1)}}
649return dates}
650function buildSummary(type,interval,start,weekdays,end){var s='';var u={daily:units.daily||'days',weekly:units.weekly||'weeks',monthly:units.monthly||'months',yearly:units.yearly||'years'};if(type==='daily'||type==='weekly'||type==='monthly'||type==='yearly'){var n=Math.max(1,interval);var unit=u[type];s=(n===1)?('Every '+unit.replace(/s$/,'')):('Every '+n+' '+unit)}else if(type==='weekday')s='Every weekday (Mon-Fri)';else if(type==='weekend')s='Every weekend (Sat-Sun)';else if(type==='certain_weekdays')s=weekdays.length?('Weekly on '+weekdays.length+' day(s)'):'No weekdays selected';else if(type==='custom_days')s='On the custom dates listed above';else if(type==='advanced')s='Advanced repeating pattern';else s=type;if(start)s+=', starting '+fmt(start);if(end.type==='date'&&end.endDate)s+=', until '+fmt(end.endDate);else if(end.type==='occurrences'&&end.maxOcc)s+=', for '+end.maxOcc+' occurrence'+(end.maxOcc===1?'':'s');else s+=', no end';return s}
651function update(){if(!$('#mec_repeat').is(':checked')){$box.hide();return}
652$box.show();var type=$('#mec_repeat_type').val();var interval=parseInt($('#mec_repeat_interval').val(),10);if(isNaN(interval)||interval<1)interval=1;var start=parseDate($('#mec_start_date'));var weekdays=[];$('input[name="mec[date][repeat][certain_weekdays][]"]:checked').each(function(){weekdays.push($(this).val())});var end=readEnd();var html='<p class="mec-repeat-preview-summary">'+buildSummary(type,interval,start,weekdays,end)+'</p>';var previewable=['daily','weekly','monthly','yearly','weekday','weekend','certain_weekdays'];if(start&&previewable.indexOf(type)!==-1){if(type==='certain_weekdays'&&!weekdays.length){html+='<p class="mec-repeat-preview-empty">'+(loc.repeat_preview_no_weekdays||'Select weekdays to preview dates.')+'</p>'}else{var dates=generate(type,interval,start,weekdays,end);var total='';if(end.type==='occurrences'&&end.maxOcc)total=end.maxOcc;else if(end.type==='date'&&dates.length<PREVIEW_MAX)total=dates.length;if(dates.length){var shown=Math.min(dates.length,PREVIEW_MAX);var items=dates.slice(0,PREVIEW_MAX).map(function(d){return'<li>'+fmt(d)+'</li>'}).join('');if(dates.length>PREVIEW_MAX){var moreText='…';if(total!==''&&parseInt(total,10)>shown){moreText=(loc.repeat_preview_more||'+ %d more').replace('%d',parseInt(total,10)-shown)}
653items+='<li class="mec-repeat-preview-more">'+moreText+'</li>'}
654html+='<div class="mec-repeat-preview-dates"><span class="mec-repeat-preview-label">'+(loc.repeat_preview_next||'Next occurrences (from start date)')+':</span><ul>'+items+'</ul></div>'}
655if(total!=='')html+='<span class="mec-repeat-preview-count">'+(loc.repeat_preview_total||'This event will occur %d times in total.').replace('%d',total)+'</span>'}}else if(!start){html+='<p class="mec-repeat-preview-empty">'+(loc.repeat_preview_need_start||'Enter a start date to preview dates.')+'</p>'}
656$body.html(html)}
657$form.on('change input','input, select',update);$('#mec_start_date').on('change input',update);update()})();(function(){var $preview=$('#mec_currency_preview');if(!$preview.length)return;var sample=parseFloat($preview.data('sample'));if(isNaN(sample))sample=1234.5;var defaultSign=$preview.data('default-sign')||'$';function format(amount,decs,decChar,thouChar){decs=Math.max(0,parseInt(decs,10)||0);var s=amount.toFixed(decs);var parts=s.split('.');parts[0]=parts[0].replace(/\B(?=(\d{3})+(?!\d))/g,thouChar);return parts.length>1?parts[0]+decChar+parts[1]:parts[0]}
658function val($el,fallback){var v=$el.val();return(v===null||v==='')?fallback:v}
659function update(){var sign=$.trim($('#mec_currency_currency_symptom').val())||defaultSign;var pos=val($('#mec_currency_currency_sign'),'before');var thou=val($('#mec_currency_thousand_separator'),',');var decChar=val($('#mec_currency_decimal_separator'),'.');var noDec=$('#mec_currency_decimal_separator_status').is(':checked');var decs=noDec?0:Math.max(0,parseInt($('#mec_currency_decimals').val(),10)||0);var num=format(sample,decs,(noDec?'':decChar),thou);var result;if(pos==='after')result=num+sign;else if(pos==='after_space')result=num+' '+sign;else if(pos==='before_space')result=sign+' '+num;else result=sign+num;$preview.text(result)}
660$('#mec_currency_currency_symptom, #mec_currency_currency_sign, #mec_currency_thousand_separator, #mec_currency_decimal_separator, #mec_currency_decimals, #mec_currency_decimal_separator_status').on('input change',update);update()})();(function(){var $name=$('#mec_location_name');var $select=$('#mec_location_id');if(!$name.length||!$select.length)return;var loc=(typeof mec_admin_localize!=='undefined')?mec_admin_localize:((typeof mecdata!=='undefined')?mecdata:{});var existing={};$select.find('option').each(function(){var v=$(this).attr('value');if(v==='0'||v==='1')return;existing[$.trim($(this).text()).toLowerCase()]=v});var $warn=null;function clearWarn(){if($warn){$warn.remove();$warn=null}}
661function showWarn(existingId){$warn=$('<div class="mec-location-duplicate-warn" role="alert"></div>');$('<span class="mec-location-duplicate-text"></span>').text(loc.location_duplicate_warn||'A location with this name already exists.').appendTo($warn);var $btn=$('<button type="button" class="button mec-location-use-existing"></button>').text(loc.location_use_existing||'Use existing');$btn.on('click',function(){$select.val(existingId).trigger('change');clearWarn()});$warn.append(' ').append($btn);$name.closest('.mec-form-row').after($warn)}
662$name.on('input change',function(){clearWarn();var val=$.trim($name.val()||'').toLowerCase();if(!val)return;if(existing.hasOwnProperty(val))showWarn(existing[val]);})})();$('#mec_bookings_limit_unlimited').on('change',function(){mec_bookings_unlimited_toggle(
662)});$('#mec_add_in_days').on('click',function(){var allday=$(this).data('allday');var start=$('#mec_exceptions_in_days_start_date').val();if(start==='')return!1;var end=$('#mec_exceptions_in_days_end_date').val();if(end==='')return!1;var start_hour=$('#mec_exceptions_in_days_start_hour').val();if(start_hour.length===1)start_hour='0'+start_hour;var start_minutes=$('#mec_exceptions_in_days_start_minutes').val();if(start_minutes.length===1)start_minutes='0'+start_minutes;var start_ampm=$('#mec_exceptions_in_days_start_ampm').val();if(typeof start_ampm==='undefined')start_ampm='';var end_hour=$('#mec_exceptions_in_days_end_hour').val();if(end_hour.length===1)end_hour='0'+end_hour;var end_minutes=$('#mec_exceptions_in_days_end_minutes').val();if(end_minutes.length===1)end_minutes='0'+end_minutes;var end_ampm=$('#mec_exceptions_in_days_end_ampm').val();if(typeof end_ampm==='undefined')end_ampm='';var value=start+':'+end+':'+start_hour+'-'+start_minutes+'-'+start_ampm+':'+end_hour+'-'+end_minutes+'-'+end_ampm;var label=start+' <span class="mec-time-picker-label '+(allday?'mec-util-hidden':'')+'">'+start_hour+':'+start_minutes+' '+start_ampm+'</span> - '+end+' <span class="mec-time-picker-label '+(allday?'mec-util-hidden':'')+'">'+end_hour+':'+end_minutes+' '+end_ampm+'</span>';if($('#mec_in_days input[value="'+value+'"]').length>0)return!1;var $key=$('#mec_new_in_days_key');var key=$key.val();var html=$('#mec_new_in_days_raw').html().replace(/:i:/g,key).replace(/:val:/g,value).replace(/:label:/g,label);$('#mec_in_days').append(html);$key.val(parseInt(key)+1)});$('#mec_edit_in_days').on('click',function(){const $form=$('#mec-in-days-form');const modify_id=$form.data('modify');const $row=$('#mec_in_days_row'+modify_id);var allday=$(this).data('allday');var start=$('#mec_exceptions_in_days_start_date').val();if(start==='')return!1;var end=$('#mec_exceptions_in_days_end_date').val();if(end==='')return!1;var start_hour=$('#mec_exceptions_in_days_start_hour').val();if(start_hour.length===1)start_hour='0'+start_hour;var start_minutes=$('#mec_exceptions_in_days_start_minutes').val();if(start_minutes.length===1)start_minutes='0'+start_minutes;var start_ampm=$('#mec_exceptions_in_days_start_ampm').val();if(typeof start_ampm==='undefined')start_ampm='';var end_hour=$('#mec_exceptions_in_days_end_hour').val();if(end_hour.length===1)end_hour='0'+end_hour;var end_minutes=$('#mec_exceptions_in_days_end_minutes').val();if(end_minutes.length===1)end_minutes='0'+end_minutes;var end_ampm=$('#mec_exceptions_in_days_end_ampm').val();if(typeof end_ampm==='undefined')end_ampm='';var value=start+':'+end+':'+start_hour+'-'+start_minutes+'-'+start_ampm+':'+end_hour+'-'+end_minutes+'-'+end_ampm;var label=start+' <span class="mec-time-picker-label '+(allday?'mec-util-hidden':'')+'">'+start_hour+':'+start_minutes+' '+start_ampm+'</span> - '+end+' <span class="mec-time-picker-label '+(allday?'mec-util-hidden':'')+'">'+end_hour+':'+end_minutes+' '+end_ampm+'</span>';$row.find($('input[type=hidden]')).val(value);$row.find($('.mec-in-days-day')).html(label);$form.parent().find($('input[type=text]')).val('');$form.removeClass('mec-in-days-edit-mode').addClass('mec-in-days-add-mode').removeData('modify')});$('#mec_cancel_in_days').on('click',function(){let $form=$('#mec-in-days-form');$form.parent().find($('input[type=text]')).val('');$form.removeClass('mec-in-days-edit-mode').addClass('mec-in-days-add-mode').removeData('modify')});$('#mec_in_days').on('keydown','[role="button"]',function(e){if(e.key==='Enter'||e.key===' '){e.preventDefault();this.click()}});$('#mec_add_not_in_days').on('click',function(){let date=$('#mec_exceptions_not_in_days_date').val();if(date==='')return!1;let d=date.replaceAll('-','');d=d.replaceAll('/','');d=d.replaceAll('.','');let $wrapper=$('#mec_not_in_days');
662let $key=$('#mec_new_not_in_days_key');let c='mec-date-'+d;if($wrapper.find($('.'+c)).length)return;let key=$key.val();let html=$('#mec_new_not_in_days_raw').html().replace(/:i:/g,key).replace(/:d:/g,d).replace(/:val:/g,date);$wrapper.append(html);$key.val(parseInt(key)+1)});$('#mec_add_ticket_button').on('click',function(){let $key=$('#mec_new_ticket_key');let key=$key.val();let html=$('#mec_new_ticket_raw').html().replace(/:i:/g,key);$('#mec_tickets').append(html);$key.val(parseInt(key)+1);mec_init_sortable_sections();$('.mec_add_price_date_button').off('click').on('click',function(){mec_handle_add_price_date_button(this)});$.each($(".mec-select2"),function(i,v){if($(v).attr('name').search(":i:")>0){return}
663if(typeof $(v).data('select2-id')=='undefined'){$(v).select2()}});trigger_period_picker()});$('.mec_add_price_date_button').off('click').on('click',function(){mec_handle_add_price_date_button(this)});mec_hourly_schedule_add_day_listener();mec_init_sortable_sections();$('#mec_add_fee_button').on('click',function(){var key=$('#mec_new_fee_key').val();var html=$('#mec_new_fee_raw').html().replace(/:i:/g,key);$('#mec_fees_list').append(html);$('#mec_new_fee_key').val(parseInt(key)+1);mec_init_sortable_sections()});$('#mec_add_ticket_variation_button').on('click',function(){var key=$('#mec_new_ticket_variation_key').val();var html=$('#mec_new_ticket_variation_raw').html().replace(/:i:/g,key);$('#mec_ticket_variations_list').append(html);$('#mec_new_ticket_variation_key').val(parseInt(key)+1);mec_init_sortable_sections()});$('.mec-form-row.mec-available-color-row span').on('click',function(){$('.mec-form-row.mec-available-color-row span').removeClass('color-selected');$(this).addClass('color-selected')});$('#mec_reg_form_field_types button').on('click',function(){var type=$(this).data('type');if(type=='mec_email'){if($('#mec_reg_form_fields').find('input[value="mec_email"][type="hidden"]').length){return!1}}
664if(type=='name'){if($('#mec_reg_form_fields').find('input[value="name"][type="hidden"]').length){return!1}}
665var key=$('#mec_new_reg_field_key').val();var html=$('#mec_reg_field_'+type).html().replace(/:i:/g,key);$('#mec_reg_form_fields').append(html);$('#mec_new_reg_field_key').val(parseInt(key)+1);mec_reg_fields_option_listeners();mec_refresh_booking_condition_editors('reg')});mec_reg_fields_option_listeners();mec_refresh_booking_condition_editors('reg');$('#mec-advanced-wraper ul > ul > li').click(function(){if($(this).attr('class')=='')$(this).attr('class','mec-active');else $(this).attr('class','');$('#mec_date_repeat_advanced').val($('#mec-advanced-wraper div:first-child > ul').find('.mec-active').find('span').text().slice(0,-1))});$('#mec_event_form_field_types button').on('click',function(){var type=$(this).data('type');var key=$('#mec_new_event_field_key').val();var html=$('#mec_event_field_'+type).html().replace(/:i:/g,key);$('#mec_event_form_fields').append(html);$('#mec_new_event_field_key').val(parseInt(key)+1);mec_event_fields_option_listeners()});mec_event_fields_option_listeners();$('#mec_bfixed_form_field_types button').on('click',function(){var type=$(this).data('type');var key=$('#mec_new_bfixed_field_key').val();var html=$('#mec_bfixed_field_'+type).html().replace(/:i:/g,key);$('#mec_bfixed_form_fields').append(html);$('#mec_new_bfixed_field_key').val(parseInt(key)+1);mec_bfixed_fields_option_listeners();mec_refresh_booking_condition_editors('bfixed')});mec_bfixed_fields_option_listeners();mec_refresh_booking_condition_editors('bfixed');jQuery(document).on('change','.mec-booking-condition-enabled, .mec-booking-condition-source, .mec-booking-condition-option',function(){const $trigger=jQuery(this);const $conditionBox=jQuery(this).closest('.mec-booking-condition-box');const prefix=String($conditionBox.data('conditionPrefix')||'');if($trigger.hasClass('mec-booking-condition-source')){$conditionBox.data('currentSourceFieldId',String($trigger.val()||''));$conditionBox.data('currentOptionKey','');$conditionBox.find('.mec-booking-condition-option').val('')}else if($trigger.hasClass('mec-booking-condition-option')){$conditionBox.data('currentOptionKey',String($trigger.val()||''))}
666mec_refresh_booking_condition_editor($conditionBox);if(prefix)mec_refresh_booking_condition_editors(prefix);});jQuery(document).on('input change','#mec_reg_form_fields input[name*="[label]"], #mec_bfixed_form_fields input[name*="[label]"]',function(){const $field=jQuery(this).closest('li[id^="mec_reg_fields_"], li[id^="mec_bfixed_fields_"]');if($field.attr('id')&&$field.attr('id').indexOf('mec_reg_fields_')===0)mec_refresh_booking_condition_editors('reg');if($field.attr('id')&&$field.attr('id').indexOf('mec_bfixed_fields_')===0)mec_refresh_booking_condition_editors('bfixed');});mec_additional_organizers_listeners();mec_additional_locations_listeners();$('.mec-show-hide-password').on('click',function(){var $input=$(this).siblings("input");var current=$input.attr('type');if(current==='password')$input.attr('type','text');else $input.attr('type','password')});$('#mec_add_faq_button').on('click',function(){const $key=$('#mec_new_faq_key');
666const key=$key.val();const html=$('#mec_new_faq_raw').html().replace(/:i:/g,key);$('#mec_faq_list').append(html);$key.val(parseInt(key)+1);mec_init_sortable_sections()});var $header=$('#mec_metabox_details .hndle');if($header.length===0){$header=$('#mec_metabox_details .postbox-header')}
667$('.mec-event-appointment-type-wrap').appendTo($header).removeClass('mec-util-hidden').on('click',function(e){e.stopPropagation()});$('#mec_entity_type_select').on('change',function(){const entity_type=$(this).val();const $fes_form=$('#mec_fes_form');const $metabox_details=$('#mec_metabox_details');const $appointment_form_wrapper=$('.mec-appointment-form-wrap');if(entity_type==='appointment'){$fes_form.removeClass('mec-entity-type-event').addClass('mec-entity-type-appointment');$metabox_details.removeClass('mec-entity-type-event').addClass('mec-entity-type-appointment');$appointment_form_wrapper.removeClass('mec-util-hidden')}else{$fes_form.removeClass('mec-entity-type-appointment').addClass('mec-entity-type-event');$metabox_details.removeClass('mec-entity-type-appointment').addClass('mec-entity-type-event');$appointment_form_wrapper.addClass('mec-util-hidden')}});$('#mec_entity_type_select').trigger('change');const $repeatType=$('#mec_appointments_availability_repeat_type');if($.fn.datepicker){$('#mec_appointments_start_date').datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-3:c+5',})}
668function mec_toggle_repeat_type(){const val=$repeatType.val();if(val==='no_repeat'){$('.lsd-apt-days-wrapper').addClass('mec-util-hidden');$('.lsd-apt-adjusted-title').addClass('mec-util-hidden');$('.lsd-apt-start-date-wrapper').addClass('mec-util-hidden')}else{$('.lsd-apt-days-wrapper').removeClass('mec-util-hidden');$('.lsd-apt-adjusted-title').removeClass('mec-util-hidden');$('.lsd-apt-start-date-wrapper').removeClass('mec-util-hidden')}}
669$repeatType.on('change',mec_toggle_repeat_type);mec_toggle_repeat_type();$(document).on('click','.lsd-apt-day-icon-remove',function(){const $button=$(this);const $timeslot=$button.parent();const $timeslots=$button.parents('.lsd-apt-day-timeslots');$timeslot.remove();if($timeslots.find('.lsd-apt-day-timeslot-wrapper').length===0){$timeslots.find('.lsd-apt-day-timeslots-unavailable').removeClass('mec-util-hidden')}});$(document).on('click','.lsd-apt-day-icon-plus',function(){const $button=$(this);let key=$button.data('key');const $day=$button.parents('.lsd-apt-day-wrapper');const day=$day.data('key');const $timeslots=$day.find('.lsd-apt-day-timeslots-wrapper');const $template=$('#lsd-apt-day-templates-'+day+'-timeslot');key=key+1;const html=$template.html().replace(/:t:/g,key);$timeslots.append(html);$button.data('key',key);$day.find('.lsd-apt-day-timeslots-unavailable').addClass('mec-util-hidden')});$(document).on('click','.lsd-apt-day-icon-copy',function(){const $button=$(this);const $sourceDay=$button.closest('.lsd-apt-day-wrapper');const sourceDayKey=$sourceDay.data('key');const $weekWrapper=$sourceDay.parent();const $sourceTimeslots=$sourceDay.find('.lsd-apt-day-timeslots-wrapper .lsd-apt-day-timeslot-wrapper');$weekWrapper.find('.lsd-apt-day-wrapper').each(function(){const $targetDay=$(this);const targetDayKey=$targetDay.data('key');if(targetDayKey===sourceDayKey)return;const isActive=$targetDay.find('.lsd-apt-day-timeslots-wrapper .lsd-apt-day-timeslot-wrapper').length>0;if(!isActive)return;const $targetWrapper=$targetDay.find('.lsd-apt-day-timeslots-wrapper');$targetWrapper.empty();$sourceTimeslots.each(function(){const $sourceSlot=$(this);const $clone=$sourceSlot.clone(!0);$sourceSlot.find('select').each(function(i){const value=$(this).val();$clone.find('select').eq(i).val(value)});$sourceSlot.find('input').each(function(i){const value=$(this).val();$clone.find('input').eq(i).val(value)});$clone.find('[name], [id], [for]').each(function(){$.each(this.attributes,function(){if(this.name==='name'||this.name==='id'||this.name==='for'){this.value=this.value.replace(`[availability][${sourceDayKey}]`,`[availability][${targetDayKey}]`).replace(`availability_${sourceDayKey}_`,`availability_${targetDayKey}_`)}})});$targetWrapper.append($clone)})})});$(document).on('click','.lsd-apt-adjusted-day-add',function(){const $wrapper=$('.lsd-apt-adjusted-days-wrapper');let key=$wrapper.data('key')||0;key=key+1;
669let html=$('#lsd-apt-adjusted-template-day').html();html=html.replace(/:i:/g,key);$wrapper.append(html);$wrapper.data('key',key);if($.fn.datepicker){$wrapper.find('.mec-apt-date-picker').last().datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-3:c+5',})}});$(document).on('click','.lsd-apt-adjusted-day-remove',function(){$(this).closest('.lsd-apt-day-wrapper').remove()});$(document).on('click','.lsd-apt-adj-day-icon-plus',function(){const $button=$(this);let key=$button.data('key');const $day=$button.closest('.lsd-apt-day-wrapper');const day=$day.data('day');const $timeslots=$day.find('.lsd-apt-day-timeslots-wrapper');key=key+1;let html=$('#lsd-apt-adjusted-template-timeslot').html();html=html.replace(/:i:/g,day).replace(/:t:/g,key);$timeslots.append(html);$button.data('key',key);$day.find('.lsd-apt-day-timeslots-unavailable').addClass('mec-util-hidden')})});function trigger_period_picker(){jQuery('.mec-date-picker-start').datepicker({changeYear:!0,changeMonth:!0,dateFormat:'yy-mm-dd',gotoCurrent:!0,yearRange:'c-1:c+5',onSelect:function(date){const selectedDate=new Date(date);const endDate=new Date(selectedDate.getTime());const $end_picker=jQuery(this).next();$end_picker.datepicker("option","minDate",endDate);$end_picker.datepicker("option","maxDate",'+5y');jQuery(this).trigger('change')}});jQuery('.mec-date-picker-end').datepicker({changeYear:!0,changeMonth:!0,dateFormat:'yy-mm-dd',gotoCurrent:!0,yearRange:'c-1:c+5',})}
670function mec_location_toggle(){if(jQuery('#mec_location_id').val()!='0')jQuery('#mec_location_new_container').hide();else jQuery('#mec_location_new_container').show()}
671function mec_organizer_toggle(){if(jQuery('#mec_organizer_id').val()!='0')jQuery('#mec_organizer_new_container').hide();else jQuery('#mec_organizer_new_container').show()}
672function mec_repeat_toggle(){if(jQuery('#mec_repeat').is(':checked'))jQuery('.mec-form-repeating-event-row').show();else jQuery('.mec-form-repeating-event-row').hide()}
673function mec_update_interval_unit(){var $unit=jQuery('#mec_repeat_interval').siblings('.mec-interval-unit');if(!$unit.length)return;var loc=(typeof mec_admin_localize!=='undefined')?mec_admin_localize:((typeof mecdata!=='undefined')?mecdata:{});var units=loc.interval_units||{};var type=jQuery('#mec_repeat_type').val();$unit.text(units[type]||'')}
674function mec_repeat_type_toggle(){var repeat_type=jQuery('#mec_repeat_type').val();if(repeat_type=='certain_weekdays'){jQuery('#mec_repeat_interval_container').hide();jQuery('#mec_repeat_certain_weekdays_container').show();jQuery('#mec_exceptions_in_days_container').hide();jQuery('#mec_end_wrapper').show();jQuery('#mec-advanced-wraper').hide()}else if(repeat_type=='custom_days'){jQuery('#mec_repeat_interval_container').hide();jQuery('#mec_repeat_certain_weekdays_container').hide();jQuery('#mec_exceptions_in_days_container').show();jQuery('#mec_end_wrapper').hide();jQuery('#mec-advanced-wraper').hide()}else if(repeat_type=='advanced'){jQuery('#mec_repeat_interval_container').hide();jQuery('#mec_repeat_certain_weekdays_container').hide();jQuery('#mec_exceptions_in_days_container').hide();jQuery('#mec_end_wrapper').show();jQuery('#mec-advanced-wraper').show()}else if(repeat_type!='daily'&&repeat_type!='weekly'&&repeat_type!='monthly'){jQuery('#mec_repeat_interval_container').hide();jQuery('#mec_repeat_certain_weekdays_container').hide();jQuery('#mec_exceptions_in_days_container').hide();jQuery('#mec_end_wrapper').show();jQuery('#mec-advanced-wraper').hide()}else{jQuery('#mec_repeat_interval_container').show();jQuery('#mec_repeat_certain_weekdays_container').hide();jQuery('#mec_exceptions_in_days_container').hide();jQuery('#mec_end_wrapper').show();jQuery('#mec-advanced-wraper').hide()}
675mec_update_interval_unit()}
676function mec_in_days_remove(i){var $row=jQuery('#mec_in_days_row'+i);if($row.length){$row.addClass('mec-in-days-removing');setTimeout(function(){jQuery('#mec_in_days_row'+i).remove()},180)}}
677function mec_in_days_edit(i){let $row=jQuery('#mec_in_days_row'+i);let value=$row.find(jQuery('input[type=hidden]')).val();const values=value.split(':');const start_times=values[2].split('-')
678const end_times=values[3].split('-')
679let $form=jQuery('#mec-in-days-form');jQuery('#mec_exceptions_in_days_start_date').val(values[0]);jQuery('#mec_exceptions_in_days_end_date').val(values[1]);jQuery('#mec_exceptions_in_days_start_hour').val(parseInt(start_times[0]));jQuery('#mec_exceptions_in_days_start_minutes').val(parseInt(start_times[1]));jQuery('#mec_exceptions_in_days_start_ampm').val(start_times[2]);jQuery('#mec_exceptions_in_days_end_hour').val(parseInt(end_times[0]));jQuery('#mec_exceptions_in_days_end_minutes').val(parseInt(end_times[1]));jQuery('#mec_exceptions_in_days_end_ampm').val(end_times[2]);$form.removeClass('mec-in-days-add-mode').addClass('mec-in-days-edit-mode').data('modify',i)}
680function mec_not_in_days_remove(i){jQuery('#mec_not_in_days_row'+i).remove()}
681function mec_bookings_unlimited_toggle(){jQuery('#mec_bookings_limit').toggleClass('mec-util-hidden')}
682function mec_hourly_schedule_add_day_listener(){jQuery('.mec-add-hourly-schedule-day-button').each(function(){jQuery(this).off('click').on('click',function(){var k=jQuery(this).data('key');var raw=jQuery(this).data('raw');var append=jQuery(this).data('append');var key=jQuery(k).val();var html=jQuery(raw).html().replace(/:d:/g,key).replace(/:dd:/g,parseInt(key)+1);jQuery(append).append(html);jQuery(k).val(parseInt(key)+1);mec_hourly_schedule_listeners()});mec_hourly_schedule_listeners()})}
683function mec_bookings_after_occurrence_cancel_listener(){jQuery('.mec-occurrences-bookings-after-occurrences-cancel').off('change').on('change',function(){const $dropdown=jQuery(this);const value=$dropdown.val();const $moveWrapper=$dropdown.next();if(value==='move'||value==='move_notify'){$moveWrapper.removeClass('w-hidden')}else{$moveWrapper.addClass('w-hidden')}})}
684function mec_hourly_schedule_listeners(){jQuery('.mec-add-hourly-schedule-button').off('click').on('click',function(){var prefix=jQuery(this).data('prefix');var day=jQuery(this).data('day');var $key=jQuery('#'+prefix+'mec_new_hourly_schedule_key'+day);var key=$key.val();var html=jQuery('#'+prefix+'mec_new_hourly_schedule_raw'+day).html().replace(/:i:/g,key).replace(/:d:/g,day).replace();var g_field_id=prefix+"-hourly_schedules-"+day+"-schedules-:i:-description";var field_id=prefix+"-hourly_schedules-"+day+"-schedules-"+key+"-description";html=html.replace(g_field_id,field_id);html=html.replace(':k:',key);jQuery('#'+prefix+'mec_hourly_schedules'+day).append(html);$key.val(parseInt(key)+1);wp.editor.initialize("mec"+field_id,{tinymce:{wpautop:!0,plugins:'charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview',toolbar1:'bold italic underline strikethrough | bullist numlist | blockquote hr wp_more | alignleft aligncenter alignright | link unlink | fullscreen | wp_adv',toolbar2:'formatselect alignjustify forecolor | pastetext removeformat charmap | outdent indent | undo redo | wp_help'},quicktags:!0,mediaButtons:!1,})});jQuery(".mec-hourly-schedule-schedules").sortable({handle:'.mec_field_sort'})}
685function mec_hourly_schedule_remove(day,i,prefix){jQuery("#"+prefix+"mec_hourly_schedule_row"+day+'_'+i).remove()}
686function mec_hourly_schedule_day_remove(day,prefix){jQuery("#"+prefix+"mec_meta_box_hourly_schedule_day_"+day).remove()}
687function mec_ticket_remove(i){jQuery("#mec_ticket_row"+i).remove()}
688function mec_set_event_color(color){try
689{jQuery("#mec_event_color").wpColorPicker('color','#'+color)}catch(e){jQuery("#mec_event_color").val(color)}}
690function mec_remove_fee(key){jQuery("#mec_fee_row"+key).remove()}
691function mec_remove_ticket_variation(key,id_prefix){jQuery("#mec_"+id_prefix+"_row"+key).remove()}
692function add_variation_per_ticket(ticket_id){var $input=jQuery('#mec_new_variation_per_ticket_key');var key=$input.val();var html=jQuery('#mec_new_variation_per_ticket_raw'+ticket_id).html().replace(/:v:/g,key);jQuery('#mec_ticket_variations_list'+ticket_id).append(html);$input.val(parseInt(key)+1);mec_init_sortable_sections()}
693function mec_init_sortable_instance(selector,options){jQuery(selector).each(function(){var $element=jQuery(this);if(!$element.length)return;if(typeof $element.data('ui-sortable')==='undefined'){$element.sortable(options)}else{$element.sortable('refresh')}})}
694function mec_init_sortable_sections(){if(typeof jQuery.fn.sortable==='undefined')return;mec_init_sortable_instance('#mec_tickets',{handle:'.mec_field_sort',items:'> .mec_ticket_row'});mec_init_sortable_instance('#mec_fees_list',{handle:'.mec_field_sort',items:'> .mec-box'});mec_init_sortable_instance('[id^="mec_ticket_variations_list"]',{handle:'.mec_field_sort',items:'> .mec_ticket_variation_row'});mec_init_sortable_instance('#mec_faq_list',{handle:'.mec_field_sort',items:'> .mec_faq_row'})}
695function mec_get_booking_condition_form_fields(prefix){return jQuery('#mec_'+prefix+'_form_fields > li')}
696function mec_get_booking_condition_field_id($field,prefix){return String(($field.attr('id')||'').replace('mec_'+prefix+'_fields_',''))}
697function mec_get_booking_condition_field_type($field,prefix){const fieldId=mec_get_booking_condition_field_id($field,prefix);return String($field.find('input[name="mec['+prefix+'_fields]['+fieldId+'][type]"]').val()||'')}
698function mec_get_booking_condition_field_label($field,prefix){const fieldId=mec_get_booking_condition_field_id($field,prefix);const $labelInput=$field.find('input[name="mec['+prefix+'_fields]['+fieldId+'][label]"]').first();const fallback=jQuery.trim($field.find('.mec_'+prefix+'_field_type').first().text()||'');return jQuery.trim(($labelInput.val()||fallback||''))}
699function mec_get_booking_condition_field_option_list($field,prefix){const fieldId=mec_get_booking_condition_field_id($field,prefix);const options=[];$field.find('input[name^="mec['+prefix+'_fields]['+fieldId+'][options]"][name$="[label]"]').each(function(){const name=jQuery(this).attr('name')||'';const match=name.match(/\[options\]\[(.*?)\]\[label\]$/);if(!match)return;options.push({key:String(match[1]),label:jQuery.trim(jQuery(this).val()||'')})});return options}
700function mec_booking_condition_field_has_duplicate_options($field,prefix){const seen={};const options=mec_get_booking_condition_field_option_list($field,prefix);for(let i=0;i<options.length;i++){const label=options[i].label;if(!label)continue;if(seen[label])return!0;seen[label]=!0}
701return!1}
702function mec_refresh_booking_condition_editor($conditionBox){if(!$c
702onditionBox||!$conditionBox.length)return;const prefix=String($conditionBox.data('conditionPrefix')||'');const currentFieldId=String($conditionBox.data('conditionFieldId')||'');const $enabled=$conditionBox.find('.mec-booking-condition-enabled');const $controls=$conditionBox.find('.mec-booking-condition-controls');const $source=$conditionBox.find('.mec-booking-condition-source');const $option=$conditionBox.find('.mec-booking-condition-option');const $matchType=$conditionBox.find('.mec-booking-condition-match-type');const $message=$conditionBox.find('.mec-booking-condition-message');const enabled=$enabled.is(':checked');const strings=(typeof mec_admin_localize!=='undefined'&&mec_admin_localize.booking_conditions)?mec_admin_localize.booking_conditions:{};$controls.toggleClass('mec-util-hidden',!enabled);if(!enabled){$message.text('');return}
703const currentSourceId=String($source.val()||$conditionBox.data('currentSourceFieldId')||'');const currentOptionKey=String($option.val()||$conditionBox.data('currentOptionKey')||'');const sourceFields=[];const sourceMap={};mec_get_booking_condition_form_fields(prefix).each(function(){const $field=jQuery(this);const fieldId=mec_get_booking_condition_field_id($field,prefix);const fieldType=mec_get_booking_condition_field_type($field,prefix);if(!fieldId)return;if(fieldId===currentFieldId)return!1;if(jQuery.inArray(fieldType,['checkbox','radio','select','agreement'])===-1)return;if(jQuery.inArray(fieldType,['checkbox','radio','select'])!==-1&&mec_booking_condition_field_has_duplicate_options($field,prefix))return;const sourceField={id:fieldId,type:fieldType,label:mec_get_booking_condition_field_label($field,prefix)};sourceFields.push(sourceField);sourceMap[fieldId]=sourceField});$source.empty().append('<option value="">'+(strings.select_field||'Select a field')+'</option>');jQuery.each(sourceFields,function(index,sourceField){$source.append('<option value="'+sourceField.id+'">'+sourceField.label+'</option>')});if(currentSourceId&&sourceMap[currentSourceId])$source.val(currentSourceId);const selectedSourceId=String($source.val()||'');const selectedSource=sourceMap[selectedSourceId]||null;$option.empty();if(!selectedSource){$matchType.val('');$option.prop('disabled',!0).append('<option value="">'+(strings.select_option||'Select an option')+'</option>');$message.text(sourceFields.length?(strings.select_controller||'Choose a controller field.'):(strings.no_sources||'No eligible controller fields are available.'));$conditionBox.data('currentSourceFieldId','');$conditionBox.data('currentOptionKey','');return}
704if(selectedSource.type==='agreement'){$matchType.val('checked');$option.prop('disabled',!0).append('<option value="">'+(strings.checked_state||'Checked')+'</option>');$message.text((strings.checked_message||'This field will show when "%s" is checked.').replace('%s',selectedSource.label));$conditionBox.data('currentSourceFieldId',selectedSourceId);$conditionBox.data('currentOptionKey','');return}
705const $sourceField=jQuery('#mec_'+prefix+'_fields_'+selectedSource.id);const options=mec_get_booking_condition_field_option_list($sourceField,prefix);const matchType=selectedSource.type==='checkbox'?'contains_option':'equals_option';$matchType.val(matchType);$option.prop('disabled',!1).append('<option value="">'+(strings.select_option||'Select an option')+'</option>');jQuery.each(options,function(index,option){$option.append('<option value="'+option.key+'">'+option.label+'</option>')});if(currentOptionKey)$option.val(currentOptionKey);if(!$option.val()){$message.text((strings.select_value||'Choose the value that should reveal this field.').replace('%s',selectedSource.label))}else{$message.text('')}
706$conditionBox.data('currentSourceFieldId',selectedSourceId);$conditionBox.data('currentOptionKey',String($option.val()||''))}
707function mec_refresh_booking_condition_editors(prefix){jQuery('.mec-booking-condition-box[data-condition-prefix="'+prefix+'"]').each(function(){mec_refresh_booking_condition_editor(jQuery(this))})}
708function mec_reg_fields_option_listeners(){jQuery('button.mec-reg-field-add-option').off('click').on('click',function(){var field_id=jQuery(this).data('field-id');var key=jQuery('#mec_new_reg_field_option_key_'+field_id).val();var html=jQuery('#mec_reg_field_option').html().replace(/:i:/g,key).replace(/:fi:/g,field_id);jQuery('#mec_reg_fields_'+field_id+'_options_container').append(html);jQuery('#mec_new_reg_field_option_key_'+field_id).val(parseInt(key)+1);mec_refresh_booking_condition_editors('reg')});if(typeof jQuery.fn.sortable!=='undefined'){jQuery("#mec_reg_form_fields").sortable({handle:'.mec_reg_field_sort',stop:function(){mec_refresh_booking_condition_editors('reg')}});jQuery(".mec_reg_fields_options_container").sortable({handle:'.mec_reg_field_option_sort'});jQuery(".mec-hourly-schedule-days").sortable({handle:'h4'});jQuery(".mec-hourly-schedule-schedules").sortable({handle:'.mec_field_sort'})}}
709function mec_reg_fields_option_remove(field_key,key){jQuery("#mec_reg_fields_option_"+field_key+"_"+key).remove();mec_refresh_booking_condition_editors('reg')}
710function mec_reg_fields_remove(key){jQuery("#mec_reg_fields_"+key).remove();mec_refresh_booking_condition_editors('reg')}
711function mec_handle_add_price_date_button(e){var key=jQuery(e).data('key');var p=jQuery('#mec_new_ticket_price_key_'+key).val();var html=jQuery('#mec_new_ticket_price_raw_'+key).html().replace(/:i:/g,key).replace(/:j:/g,p);jQuery('#mec-ticket-price-dates-'+key).append(html);jQuery('#mec_new_ticket_price_key_'+key).val(parseInt(p)+1);jQuery('#mec-ticket-price-dates-'+key+' .new_added').datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-3:c+5',})}
712function mec_ticket_price_remove(ticket_key,price_key){jQuery("#mec_ticket_price_raw_"+ticket_key+"_"+price_key).remove()}
713function mec_event_fields_option_listeners(){jQuery('button.mec-event-field-add-option').off('click').on('click',function(){var field_id=jQuery(this).data('field-id');var key=jQuery('#mec_new_event_field_option_key_'+field_id).val();var html=jQuery('#mec_event_field_option').html().replace(/:i:/g,key).replace(/:fi:/g,field_id);jQuery('#mec_event_fields_'+field_id+'_options_container').append(html);jQuery('#mec_new_event_field_option_key_'+field_id).val(parseInt(key)+1)});if(typeof jQuery.fn.sortable!=='undefined'){jQuery("#mec_event_form_fields").sortable({handle:'.mec_event_field_sort'});jQuery(".mec_event_fields_options_container").sortable({handle:'.mec_event_field_option_sort'})}}
714function mec_event_fields_option_remove(field_key,key){jQuery("#mec_event_fields_option_"+field_key+"_"+key).remove()}
715function mec_event_fields_remove(key){jQuery("#mec_event_fields_"+key).remove()}
716function mec_bfixed_fields_option_listeners(){jQuery('button.mec-bfixed-field-add-option').off('click').on('click',function(){var field_id=jQuery(this).data('field-id');var key=jQuery('#mec_new_bfixed_field_option_key_'+field_id).val();var html=jQuery('#mec_bfixed_field_option').html().replace(/:i:/g,key).replace(/:fi:/g,field_id);jQuery('#mec_bfixed_fields_'+field_id+'_options_container').append(html);jQuery('#mec_new_bfixed_field_option_key_'+field_id).val(parseInt(key)+1);mec_refresh_booking_condition_editors('bfixed')});if(typeof jQuery.fn.sortable!=='undefined'){jQuery("#mec_bfixed_form_fields").sortable({handle:'.mec_bfixed_field_sort',stop:function(){mec_refresh_booking_condition_editors('bfixed')}});jQuery(".mec_bfixed_fields_options_container").sortable({handle:'.mec_bfixed_field_option_sort'})}}
717function mec_bfixed_fields_option_remove(field_key,key){jQuery("#mec_bfixed_fields_option_"+field_key+"_"+key).remove();mec_refresh_booking_condition_editors('bfixed')}
718function mec_bfixed_fields_remove(key){jQuery("#mec_bfixed_fields_"+key).remove();mec_refresh_booking_condition_editors('bfixed')}
719function mec_additional_organizers_listeners(){jQuery('#mec_additional_organizers_add').off('click').on('click',function(){var value=jQuery('.mec-additional-organizers select').val();if(!value)return;if(jQuery('.mec-additional-organizers-list input[name="mec[additional_organizer_ids][]"][value="'+value+'"]').length)return;var text=jQuery('.mec-additional-organizers select option:selected').text();var sortLabel=jQuery(this).data('sort-label');var removeLabel=jQuery(this).data('remove-label');jQuery('.mec-additional-organizers-list').append('<li><span class="mec-additional-organizer-sort">'+sortLabel+'</span> <span onclick="mec_additional_organizers_remove(this);" class="mec-additional-organizer-remove">'+removeLabel+'</span><input type="hidden" name="mec[additional_organizer_ids][]" value="'+value+'"><span class="mec_orgz_item_name">'+text+'</span></li>');mec_additional_organizers_listeners()});if(typeof jQuery.fn.sortable!=='undefined'){jQuery(".mec-additional-organizers-list").sortable({handle:'.mec-additional-organizer-sort'})}}
720function mec_additional_organizers_remove(element){jQuery(element).parent().remove()}
721function mec_additional_locations_listeners(){jQuery('#mec_additional_locations_add').off('click').on('click',function(){var value=jQuery('.mec-additional-locations select').val();if(!value)return;if(jQuery('.mec-additional-locations-list input[name="mec[additional_location_ids][]"][value="'+value+'"]').length)return;var text=jQuery('.mec-additional-locations select option:selected').text();var sortLabel=jQuery(this).data('sort-label');var removeLabel=jQuery(this).data('remove-label');jQuery('.mec-additional-locations-list').append('<li><span class="mec-additional-location-sort">'+sortLabel+'</span> <span onclick="mec_additional_locations_remove(this);" class="mec-additional-location-remove">'+removeLabel+'</span><input type="hidden" name="mec[additional_location_ids][]" value="'+value+'"><span class="mec_loc_item_name">'+text+'</span></li>');mec_additional_locations_listeners()});if(typeof jQuery.fn.sortable!=='undefined'){jQuery(".mec-additional-locations-list").sortable({handle:'.mec-additional-location-sort'})}}
722function mec_additional_locations_remove(element){jQuery(element).parent().remove()}
723function mec_faq_remove(key){jQuery("#mec_faq_row"+key).remove()}
724jQuery(document).on('focus','.mec_date_picker',function(){if(!jQuery(this).hasClass('hasDatepicker')){jQuery(this).datepicker({changeYear:!0,changeMonth:!0,dateFormat:'yy-mm-dd',gotoCurrent:!0,yearRange:'c-3:c+5',})}});jQuery(document).on('focus','.mec-date-picker-start, .mec-date-picker-end',function(){var $input=jQuery(this);if(!jQuery.fn.datepicker)return;if(!$input.data('datepicker')){$input.removeClass('hasDatepicker');var isStart=$input.hasClass('mec-date-picker-start');$input.datepicker({changeYear:!0,changeMonth:!0,dateFormat:'yy-mm-dd',gotoCurrent:!0,yearRange:'c-1:c+5',onSelect:isStart?function(date){var endDate=new Date(date);var $end_picker=$input.next();$end_picker.datepicker("option","minDate",endDate);$end_picker.datepicker("option","maxDate",'+5y');$input.trigger('change')}:null,});if(isStart){var $end=$input.next('.mec-date-picker-end');if($end.length&&!$end.data('datepicker')){$end.removeClass('hasDatepicker');$end.datepicker({changeYear:!0,changeMonth:!0,dateFormat:'yy-mm-dd',gotoCurrent:!0,yearRange:'c-1:c+5',})}}}
725$input.datepicker('show')});jQuery(document).on('focus','.mec-apt-date-picker',function(){var $input=jQuery(this);if(!jQuery.fn.datepicker)return;if(!$input.data('datepicker')){$input.removeClass('hasDatepicker');$input.datepicker({changeYear:!0,changeMonth:!0,dateFormat:datepicker_format,gotoCurrent:!0,yearRange:'c-3:c+5',})}
726$input.datepicker('show')});jQuery(document).on('click','.mec-basvanced-toggle .mec-backend-tab-item',function(e){e.preventDefault();var $item=jQuery(this);if($item.hasClass('mec-b-active-tab'))return;var $toggle=$item.closest('.mec-basvanced-toggle');var wrapper=$toggle.data('for');var method=$toggle.data('method');$item.parent().find('.mec-b-active-tab').removeClass('mec-b-active-tab');$item.addClass('mec-b-active-tab');var $wrapper=jQuery(wrapper);if(method==='addition')$wrapper.find('.mec-basvanced-advanced').toggleClass('w-hidden');else{$wrapper.find('.mec-basvanced-basic').toggleClass('w-hidden');$wrapper.find('.mec-basvanced-advanced').toggleClass('w-hidden')}});jQuery(document).on('submit','#post',function(e){if(e.isDefaultPrevented())return;var submitter=(e.originalEvent&&e.originalEvent.submitter)?jQuery(e.originalEvent.submitter):null;if(submitter&&submitter.attr('id')==='save-post')return;if(jQuery('#wp-preview').val()==='dopreview')return;var $startDate=jQuery('#mec_start_date');
726if(!$startDate.length)return;if(window.history&&window.history.replaceState&&window.location.href.indexOf('wp-post-new-reload')>-1){window.history.replaceState(null,null,window.location.href.replace(/([?&])wp-post-new-reload=true&?/,'$1').replace(/[?&]$/,''))}
727if(jQuery.trim($startDate.val()||'')===''){e.preventDefault();jQuery('#mec_metabox_details .mec-add-event-tabs-link[data-href="mec_meta_box_date_form"]').trigger('click');$startDate.addClass('mec-field-invalid').attr('aria-invalid','true');var $err=$startDate.next('.mec-field-error');if(!$err.length)$err=jQuery('<span class="mec-field-error" role="alert"></span>').insertAfter($startDate);var msg=(typeof mec_admin_localize!=='undefined'&&mec_admin_localize.start_date_required)?mec_admin_localize.start_date_required:'Please enter a start date for the event.';$err.text(msg);jQuery('.mec-notice-temp').remove();var $n=jQuery('<div/>',{'class':'mec-notice mec-notice--error mec-notice-temp',html:'<div class="mec-notice-accent"></div><div class="mec-notice-body"><div class="mec-notice-title">Start date required</div><p class="mec-notice-text">'+msg+'</p><div class="mec-notice-actions"><button type="button" class="mec-notice-btn mec-notice-btn--ghost mec-notice-dismiss">Got it</button></div></div><div class="mec-notice-close" aria-label="Close" role="button" tabindex="0">&times;</div>'});jQuery('#poststuff').prepend($n);jQuery('html, body').animate({scrollTop:$n.offset().top-40},200);$n.find('.mec-notice-dismiss, .mec-notice-close').on('click',function(){$n.remove()});$startDate.trigger('focus')}});document.addEventListener('invalid',function(ev){var field=ev.target;if(!field||!field.form||field.form.id!=='post')return;if(window.history&&window.history.replaceState&&window.location.href.indexOf('wp-post-new-reload')>-1){window.history.replaceState(null,null,window.location.href.replace(/([?&])wp-post-new-reload=true&?/,'$1').replace(/[?&]$/,''))}
728var name='';if(field.id){var $l=jQuery('label[for="'+field.id+'"]').first();if($l.length)name=jQuery.trim($l.text());}
729if(!name)name=field.getAttribute('aria-label')||field.placeholder||field.title||'';jQuery('.mec-notice-temp').remove();var msg=name?'"'+jQuery('<div/>').text(name).html()+'" '+(field.validationMessage||'is required.'):(field.validationMessage||'Please fill in the required fields.');var $n=jQuery('<div/>',{'class':'mec-notice mec-notice--error mec-notice-temp',html:'<div class="mec-notice-accent"></div><div class="mec-notice-body"><div class="mec-notice-title">Required field missing</div><p class="mec-notice-text">'+msg+'</p><div class="mec-notice-actions"><button type="button" class="mec-notice-btn mec-notice-btn--ghost mec-notice-dismiss">Got it</button></div></div><div class="mec-notice-close" aria-label="Close" role="button" tabindex="0">&times;</div>'});jQuery('#poststuff').prepend($n);jQuery('html, body').animate({scrollTop:$n.offset().top-40},200);$n.find('.mec-notice-dismiss, .mec-notice-close').on('click',function(){$n.remove()})},!0)
730;/*! Lity - v2.4.1 - 2020-04-26
731* http://sorgalla.com/lity/
732* Copyright (c) 2015-2020 Jan Sorgalla; Licensed MIT */
733
734!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return b(a,c)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=b(a,require("jquery")):a.lity=b(a,a.jQuery||a.Zepto)}("undefined"!=typeof window?window:this,function(a,b){"use strict";function c(a){var b=B();return N&&a.length?(a.one(N,b.resolve),setTimeout(b.resolve,500)):b.resolve(),b.promise()}function d(a,c,d){if(1===arguments.length)return b.extend({},a);if("string"==typeof c){if(void 0===d)return void 0===a[c]?null:a[c];a[c]=d}else b.extend(a,c);return this}function e(a){for(var b,c=decodeURI(a.split("#")[0]).split("&"),d={},e=0,f=c.length;e<f;e++)c[e]&&(b=c[e].split("="),d[b[0]]=b[1]);return d}function f(a,c){return a+(a.indexOf("?")>-1?"&":"?")+b.param(c)}function g(a,b){var c=a.indexOf("#");return-1===c?b:(c>0&&(a=a.substr(c)),b+a)}function h(a){return b('<span class="lity-error"></span>').append(a)}function i(a,c){var d=c.opener()&&c.opener().data("lity-desc")||"Image with no description",e=b('<img src="'+a+'" alt="'+d+'"/>'),f=B(),g=function(){f.reject(h("Failed loading image"))};
vendor: 4,110 bytes, line 734
734return e.on("load",function(){if(0===this.naturalWidth)return g();f.resolve(e)}).on("error",g),f.promise()}function j(a,c){var d,e,f;try{d=b(a)}catch(a){return!1}return!!d.length&&(e=b('<i style="display:none !important"></i>'),f=d.hasClass("lity-hide"),c.element().one("lity:remove",function(){e.before(d).remove(),f&&!d.closest(".lity-content").length&&d.addClass("lity-hide")}),d.removeClass("lity-hide").after(e))}function k(a){var c=J.exec(a);return!!c&&o(g(a,f("https://www.youtube"+(c[2]||"")+".com/embed/"+c[4],b.extend({autoplay:1},e(c[5]||"")))))}function l(a){var c=K.exec(a);return!!c&&o(g(a,f("https://player.vimeo.com/video/"+c[3],b.extend({autoplay:1},e(c[4]||"")))))}function m(a){var c=M.exec(a);return!!c&&(0!==a.indexOf("http")&&(a="https:"+a),o(g(a,f("https://www.facebook.com/plugins/video.php?href="+a,b.extend({autoplay:1},e(c[4]||""))))))}function n(a){var b=L.exec(a);return!!b&&o(g(a,f("https://www.google."+b[3]+"/maps?"+b[6],{output:b[6].indexOf("layer=c")>0?"svembed":"embed"})))}function o(a){return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+a+'"/></div>'}function p(){return z.documentElement.clientHeight?z.documentElement.clientHeight:Math.round(A.height())}function q(a){var b=v();b&&(27===a.keyCode&&b.options("esc")&&b.close(),9===a.keyCode&&r(a,b))}function r(a,b){var c=b.element().find(G),d=c.index(z.activeElement);a.shiftKey&&d<=0?(c.get(c.length-1).focus(),a.preventDefault()):a.shiftKey||d!==c.length-1||(c.get(0).focus(),a.preventDefault())}function s(){b.each(D,function(a,b){b.resize()})}function t(a){1===D.unshift(a)&&(C.addClass("lity-active"),A.on({resize:s,keydown:q})),b("body > *").not(a.element()).addClass("lity-hidden").each(function(){var a=b(this);void 0===a.data(F)&&a.data(F,a.attr(E)||null)}).attr(E,"true")}function u(a){var c;a.element().attr(E,"true"),1===D.length&&(C.removeClass("lity-active"),A.off({resize:s,keydown:q})),D=b.grep(D,function(b){return a!==b}),c=D.length?D[0].element():b(".lity-hidden"),c.removeClass("lity-hidden").each(function(){var a=b(this),c=a.data(F);c?a.attr(E,c):a.removeAttr(E),a.removeData(F)})}function v(){return 0===D.length?null:D[0]}function w(a,c,d,e){var f,g="inline",h=b.extend({},d);return e&&h[e]?(f=h[e](a,c),g=e):(b.each(["inline","iframe"],function(a,b){delete h[b],h[b]=d[b]}),b.each(h,function(b,d){return!d||(!(!d.test||d.test(a,c))||(f=d(a,c),!1!==f?(g=b,!1):void 0))})),{handler:g,content:f||""}}function x(a,e,f,g){function h(a){k=b(a).css("max-height",p()+"px"),j.find(".lity-loader").each(function(){var a=b(this);c(a).always(function(){a.remove()})}),j.removeClass("lity-loading").find(".lity-content").empty().append(k),m=!0,k.trigger("lity:ready",[l])}var i,j,k,l=this,m=!1,n=!1;e=b.extend({},H,e),j=b(e.template),l.element=function(){return j},l.opener=function(){return f},l.options=b.proxy(d,l,e),l.handlers=b.proxy(d,l,e.handlers),l.resize=function(){m&&!n&&k.css("max-height",p()+"px").trigger("lity:resize",[l])},l.close=function(){if(m&&!n){n=!0,u(l);var a=B();if(g&&(z.activeElement===j[0]||b.contains(j[0],z.activeElement)))try{g.focus()}catch(a){}return k.trigger("lity:close",[l]),j.removeClass("lity-opened").addClass("lity-closed"),c(k.add(j)).always(function(){k.trigger("lity:remove",[l]),j.remove(),j=void 0,a.resolve()}),a.promise()}},i=w(a,l,e.handlers,e.handler),j.attr(E,"false").addClass("lity-loading lity-opened lity-"+i.handler).appendTo("body").focus().on("click","[data-lity-close]",function(a){b(a.target).is("[data-lity-close]")&&l.close()}).trigger("lity:open",[l]),t(l),b.when(i.content).always(h)}function y(a,c,d){a.preventDefault?(a.preventDefault(),d=b(this),a=d.data("lity-target")||d.attr("href")||d.attr("src")):d=b(d);var e=new x(a,b.extend({},d.data("lity-options")||d.data("lity"),c),d,z.activeElement);if(!a.preventDefault)return e}var z=a.document,A=b(a),B=b.Deferred,C=b("html"),D=[],E="aria-hidden",F="lity-"+E,G='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not
734([tabindex^="-"])',H={esc:!0,handler:null,handlers:{image:i,inline:j,youtube:k,vimeo:l,googlemaps:n,facebookvideo:m,iframe:o},template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>&times;</button></div></div></div>'},I=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,J=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,K=/(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,L=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,M=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,N=function(){var a=z.createElement("div"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return b[c];return!1}();return i.test=function(a){return I.test(a)},y.version="2.4.1",y.options=b.proxy(d,y,H),y.handlers=b.proxy(d,y,H.handlers),y.current=v,b(z).on("click.lity","[data-lity]",y),y});
735;/*
736 *  colourBrightness.js
737 *
738 *  Copyright 2013-2016, Jamie Brittain - http://jamiebrittain.com
739 *  Released under the WTFPL license
740 *  http://sam.zoy.org/wtfpl/
741 *
742 *  Github:  http://github.com/jamiebrittain/colourBrightness.js
743 *  Version: 1.2
744 */
745!function(r){r.fn.colourBrightness=function(){function r(r){for(var t="";"html"!=r[0].tagName.toLowerCase()&&(t=r.css("background-color"),"rgba(0, 0, 0, 0)"==t||"transparent"==t);)r=r.parent();return t}var t,a,s,e,n=r(this);return n.match(/^rgb/)?(n=n.match(/rgba?\(([^)]+)\)/)[1],n=n.split(/ *, */).map(Number),t=n[0],a=n[1],s=n[2]):"#"==n[0]&&7==n.length?(t=parseInt(n.slice(1,3),16),a=parseInt(n.slice(3,5),16),s=parseInt(n.slice(5,7),16)):"#"==n[0]&&4==n.length&&(t=parseInt(n[1]+n[1],16),a=parseInt(n[2]+n[2],16),s=parseInt(n[3]+n[3],16)),e=(299*t+587*a+114*s)/1e3,125>e?this.removeClass("light").addClass("dark"):this.removeClass("dark").addClass("light"),this}}(jQuery);
746;/**
747 * Owl carousel
vendor: 19,163 bytes, lines 748-753
748 * @version 2.3.4
749 * @author Bartosz Wojciechowski
750 * @author David Deutsch
751 * @license The MIT License (MIT)
752 */
753!function(t,e,i,s){function n(e,i){this.settings=null,this.options=t.extend({},n.Defaults,i),this.$element=t(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy((function(e,i){this._handlers[i]=t.proxy(this[i],this)}),this)),t.each(n.Plugins,t.proxy((function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)}),this)),t.each(n.Workers,t.proxy((function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})}),this)),this.setup(),this.initialize()}n.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},n.Width={Default:"default",Inner:"inner",Outer:"outer"},n.Type={Event:"event",State:"state"},n.Plugins={},n.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,s=this.settings.rtl,n={width:"auto","margin-left":s?e:"","margin-right":s?"":e};!i&&this.$stage.children().css(n),t.css=n}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,s=this._items.length,n=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};s--;)i=this._mergers[s],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,o[s]=n?e*i:this._items[s].width();this._widths=o}},{filter:["items","settings"],run:function(){var e=[],i=this._items,s=this.settings,n=Math.max(2*s.items,4),o=2*Math.ceil(i.length/2),r=s.loop&&i.length?s.rewind?n:Math.max(n,o):0,a="",h="";for(r/=2;r>0;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),h=i[e[e.length-1]][0].outerHTML+h,r-=1;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(h).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,s=0,n=0,o=[];++i<e;)s=o[i-1]||0,n=this._widths[this.relative(i)]+this.settings.margin,o.push(s+n*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,s=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],s.eq(e).css(t.css);else i&&(t.css.width=t.items.width,s.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,s,n=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*n,h=[];for(i=0,s=this._coordinates.length;i<s;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*n,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&h.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+h.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],n.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(t("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},n.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map((function(e){return t(e)})),this._mergers=this._items.map((function(){return 1})),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},n.prototype.initialize=function(){var t,e,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},n.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},n.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,s=-1,n=null;i?(t.each(i,(function(t){t<=e&&t>s&&(s=Number(t))})),"function"==typeof(n=t.extend({},this.options,i[s])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+s))):n=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=s,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},n.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},n.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var e=0,i=this._pipe.length,s=t.proxy((function(t){return this[t]}),this._invalidated),n={};e<i;)(this._invalidated.all||t.grep(this._pipe[e].filter,s).length>0)&&this._pipe[e].run(n),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},n.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},n.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},n.prototype.onDragStart=function(e){var s=null;3!==e.which&&(t.support.transform?s={x:(s=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===s.length?12:4],y:s[16===s.length?13:5]}:(s=this.$stage.position(),s={x:this.settings.rtl?s.left+this.$stage.width()-this.width()+this.settings.margin:s.left,y:s.top}),this.is("animating")&&(t.support.transform?this.animate(s.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=s,this._drag.stage.current=s,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy((function(e){var s=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(s.x)<Math.abs(s.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))}),this)))},n.prototype.onDragMove=function(t){var e=null,i=null,s=null,n=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,n);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),s=this.settings.pullDrag?-1*n.x/5:0,o.x=Math.max(Math.min(o.x,e+s),i+s)),this._drag.stage.current=o,this.animate(o.x))},n.prototype.onDragEnd=function(e){var s=this.difference(this._drag.pointer,this.pointer(e)),n=this._drag.stage.current,o=s.x>0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==s.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(n.x,0!==s.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(s.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},n.prototype.closest=function(e,i){var n=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||t.each(r,t.proxy((function(t,a){return"left"===i&&e>a-30&&e<a+30?n=t:"right"===i&&e>a-o-30&&e<a-o+30?n=t+1:this.op(e,"<",a)&&this.op(e,">",r[t+1]!==s?r[t+1]:a-o)&&(n="left"===i?t+1:t),-1===n}),this)),this.settings.loop||(this.op(e,">",r[this.minimum()])?n=e=this.minimum():this.op(e,"<",r[this.maximum()])&&(n=e=this.maximum())),n},n.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},n.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},n.prototype.current=function(t){if(t===s)return this._current;if(0===this._items.length)return s;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==s&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},n.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,(function(t,e){return e}))},n.prototype.reset=function(t){(t=this.normalize(t))!==s&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=s:(t<0||t>=i+n)&&(t=((t-n/2)%i+i)%i+n/2),t},n.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,i,s,n=this.settings,o=this._coordinates.length;if(n.loop)o=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){if(e=this._items.length)for(i=this._items[--e].width(),s=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>s););o=e+1}else o=n.center?this._items.length-1:this._items.length-n.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},n.prototype.minimum=function(t){return t?0:this._clones.length/2},n.prototype.items=function(t){return t===s?this._items.slice():(t=this.normalize(t,!0),this._items[t])},n.prototype.mergers=function(t){return t===s?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},n.prototype.clones=function(e){var i=this._clones.length/2,n=i+this._items.length,o=function(t){return t%2==0?n+t/2:i-(t+1)/2};return e===s?t.map(this._clones,(function(t,e){return o(e)})):t.map(this._clones,(function(t,i){return t===e?o(i):null}))},n.prototype.speed=function(t){return t!==s&&(this._speed=t),this._speed},n.prototype.coordinates=function(e){var i,n=1,o=e-1;return e===s?t.map(this._coordinates,t.proxy((function(t,e){return this.coordinates(e)}),this)):(this.settings.center?(this.settings.rtl&&(n=-1,o=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[o]||0))/2*n):i=this._coordinates[o]||0,i=Math.ceil(i))},n.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},n.prototype.to=function(t,e){var i=this.current(),s=null,n=t-this.relative(i),o=(n>0)-(n<0),r=this._items.length,a=this.minimum(),h=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>r/2&&(n+=-1*o*r),(s=(((t=i+n)-a)%r+r)%r+a)!==t&&s-n<=h&&s-n>0&&(i=s-n,t=s,this.reset(i))):t=this.settings.rewind?(t%(h+=1)+h)%h:Math.max(a,Math.min(h,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.onTransitionEnd=function(t){if(t!==s&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},n.prototype.viewport=function(){var s;return this.options.responsiveBaseElement!==e?s=t(this.options.responsiveBaseElement).width():e.innerWidth?s=e.innerWidth:i.documentElement&&i.documentElement.clientWidth?s=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),s},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter((function(){return 1===this.nodeType})).each(t.proxy((function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(e,i){var n=this.relative(this._current);i=i===s?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},n.prototype.remove=function(t){(t=this.normalize(t,!0))!==s&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},n.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy((function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy((function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))}),this))},n.prototype.destroy=function(){for(var s in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[s].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},n.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?t>i:t<i;case">":return s?t<i:t>i;case">=":return s?t<=i:t>=i;case"<=":return s?t>=i:t<=i}}
753,n.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},n.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},n.prototype.trigger=function(e,i,s,o,r){var a={item:{count:this._items.length,index:this.current()}},h=t.camelCase(t.grep(["on",e,s],(function(t){return t})).join("-").toLowerCase()),l=t.Event([e,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,i));return this._supress[e]||(t.each(this._plugins,(function(t,e){e.onTrigger&&e.onTrigger(l)})),this.register({type:n.Type.Event,name:e}),this.$element.trigger(l),this.settings&&"function"==typeof this.settings[h]&&this.settings[h].call(this,l)),l},n.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){this._states.current[e]===s&&(this._states.current[e]=0),this._states.current[e]++}),this))},n.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){this._states.current[e]--}),this))},n.prototype.register=function(e){if(e.type===n.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===n.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy((function(i,s){return t.inArray(i,this._states.tags[e.name])===s}),this)))},n.prototype.suppress=function(e){t.each(e,t.proxy((function(t,e){this._supress[e]=!0}),this))},n.prototype.release=function(e){t.each(e,t.proxy((function(t,e){delete this._supress[e]}),this))},n.prototype.pointer=function(t){var i={x:null,y:null};return(t=(t=t.originalEvent||t||e.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},n.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},n.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each((function(){var s=t(this),o=s.data("owl.carousel");o||(o=new n(this,"object"==typeof e&&e),s.data("owl.carousel",o),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(e,i){o.register({type:n.Type.Event,name:i}),o.$element.on(i+".owl.carousel.core",t.proxy((function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),o[i].apply(this,[].slice.call(arguments,1)),this.release([i]))}),o))}))),"string"==typeof e&&"_"!==e.charAt(0)&&o[e].apply(o,i)}))},t.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var t,i;for(t in e.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}
753(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy((function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var i=this._core.settings,s=i.center&&Math.ceil(i.items/2)||i.items,n=i.center&&-1*s||0,o=(e.property&&undefined!==e.property.value?e.property.value:this._core.current())+n,r=this._core.clones().length,a=t.proxy((function(t,e){this.load(e)}),this);for(i.lazyLoadEager>0&&(s+=i.lazyLoadEager,i.loop&&(o-=i.lazyLoadEager,s++));n++<s;)this.load(r/2+this._core.relative(o)),r&&t.each(this._core.clones(this._core.relative(o)),a),o++}}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={lazyLoad:!1,lazyLoadEager:0},n.prototype.load=function(i){var s=this._core.$stage.children().eq(i),n=s&&s.find(".owl-lazy");!n||t.inArray(s.get(0),this._loaded)>-1||(n.each(t.proxy((function(i,s){var n,o=t(s),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src")||o.attr("data-srcset");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy((function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:r},"lazy")}),this)).attr("src",r):o.is("source")?o.one("load.owl.lazy",t.proxy((function(){this._core.trigger("loaded",{element:o,url:r},"lazy")}),this)).attr("srcset",r):((n=new Image).onload=t.proxy((function(){o.css({"background-image":'url("'+r+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")}),this),n.src=r)}),this)),this._loaded.push(s.get(0)))},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(i){this._core=i,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()}),this),"loaded.owl.lazy":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var s=this;t(e).on("load",(function(){s._core.settings.autoHeight&&s.update()})),t(e).resize((function(){s._core.settings.autoHeight&&(null!=s._intervalId&&clearTimeout(s._intervalId),s._intervalId=setTimeout((function(){s.update()}),250))}))};n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,s=this._core.settings.lazyLoad,n=this._core.$stage.children().toArray().slice(e,i),o=[],r=0;t.each(n,(function(e,i){o.push(t(i).height())})),(r=Math.max.apply(null,o))<=1&&s&&this._previousHeight&&(r=this._previousHeight),this._previousHeight=r,this._core.$stage.parent().height(r).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":t.proxy((function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy((function(t){this.play(t)}),this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");
vendor: 13,319 bytes, line 753
753if((s=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(s[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(s[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},n.prototype.thumbnail=function(e,i){var s,n,o=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",r=e.find("img"),a="src",h="",l=this._core.settings,c=function(i){'<div class="owl-video-play-icon"></div>',s=l.lazyLoad?t("<div/>",{class:"owl-video-tn "+h,srcType:i}):t("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),e.after(s),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap(t("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",h="owl-lazy"),r.length)return c(r.attr(a)),r.remove(),!1;"youtube"===i.type?(n="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",c(n)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,c(n)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t.framegrab_url,c(n)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var i,s=t(e.target).closest("."+this._core.settings.itemClass),n=this._videos[s.attr("data-video")],o=n.width||"100%",r=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),(i=t('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",r),i.attr("width",o),"youtube"===n.type?i.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?i.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&i.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),t(i).wrap('<div class="owl-video-frame" />').insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=s,this.next=s,this.handlers={"change.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy((function(t){t.namespace&&(this.swapping="translated"==t.type)}),this),"translate.owl.carousel":t.proxy((function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),o&&n.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(o))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy((function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":t.proxy((function(t,e,i){t.namespace&&this.play(e,i)}),this),"stop.owl.autoplay":t.proxy((function(t){t.namespace&&this.stop()}),this),"mouseover.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},n.Defaults,this._core.options)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype._next=function(s){this._call=e.setTimeout(t.proxy(this._next,this,s),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(s||this._core.settings.autoplaySpeed)},n.prototype.read=function(){return(new Date).getTime()-this._time},n.prototype.play=function(i,s){var n;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%i-n,this._timeout=i,this._call=e.setTimeout(t.proxy(this._next,this,s),i-n)},n.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},n.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){"use strict";var n=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")}),this),"added.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())}),this),"remove.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&this.draw()}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers)};n.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},n.prototype.initialize=function(){var e,i=this._core.settings;for(e in this._controls.$relative=(i.navContainer?t(i.navContainer):t("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy((function(t){this.prev(i.navSpeed)}),this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy((function(t){this.next(i.navSpeed)}),this)),i.dotsData||(this._templates=[t('<button role="button">').addClass(i.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",t.proxy((function(e){var s=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(s,i.dotsSpeed)}),this)),this._overrides)this._core[e]=t.proxy(this[e],this)},n.prototype.destroy=function(){var t,e,i,s,n;for(t in n=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&n.navContainer?this._controls[e].html(""):this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},n.prototype.update=function(){var t,e,i=this._core.clones().length/2,s=i+this._core.items().length,n=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0,0;t<s;t++){if(e>=r||0===e){if(this._pages.push({start:Math.min(n,t-i),end:t-i+r-1}),Math.min(n,t-i)===n)break;e=0}e+=this._core.mergers(this._core.relative(t))}},n.prototype.draw=function(){var e,i=this._core.settings,s=this._core.items().length<=i.items,n=this._core.relative(this._core.current()),o=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||s),i.nav&&(this._controls.$previous.toggleClass("disabled",!o&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||s),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},n.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},n.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy((function(t,i){return t.start<=e&&t.end>=e}),this)).pop()},n.prototype.getPosition=function(e){var i,s,n=this._core.settings;return"page"==n.slideBy?(i=t.inArray(this.current(),this._pages),s=this._pages.length,e?++i:--i,i=this._pages[(i%s+s)%s].start):(i=this._core.relative(this._core.current()),s=this._core.items().length,e?i+=n.slideBy:i-=n.slideBy),i},n.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},n.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},n.prototype.to=function(e,i,s){var n;!s&&this._pages.length?(n=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=n}
753(window.Zepto||window.jQuery,window,document),function(t,e,i,s){"use strict";var n=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy((function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")}),this),"prepared.owl.carousel":t.proxy((function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}}),this),"changed.owl.carousel":t.proxy((function(i){if(i.namespace&&"position"===i.property.name){var s=this._core.items(this._core.relative(this._core.current())),n=t.map(this._hashes,(function(t,e){return t===s?e:null})).join();if(!n||e.location.hash.slice(1)===n)return;e.location.hash=n}}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy((function(t){var i=e.location.hash.substring(1),s=this._core.$stage.children(),n=this._hashes[i]&&s.index(this._hashes[i]);undefined!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)}),this))};n.Defaults={URLhashListener:!1},n.prototype.destroy=function(){var i,s;for(i in t(e).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=t("<support>").get(0).style,o="Webkit Moz O ms".split(" "),r={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},a=function(){return!!c("transform")},h=function(){return!!c("perspective")},l=function(){return!!c("animation")};function c(e,i){var r=!1,a=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+" "+o.join(a+" ")+a).split(" "),(function(t,e){if(n[e]!==s)return r=!i||e,!1})),r}function p(t){return c(t,!0)}(function(){return!!c("transition")})()&&(t.support.transition=new String(p("transition")),t.support.transition.end=r.transition.end[t.support.transition]),l()&&(t.support.animation=new String(p("animation")),t.support.animation.end=r.animation.end[t.support.animation]),a()&&(t.support.transform=new String(p("transform")),t.support.transform3d=h())}(window.Zepto||window.jQuery,window,document);
754;!function t(e,n,i){function o(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[a]={exports:{}};e[a][0].call(f.exports,function(t){return o(e[a][1][t]||t)},f,f.exports,t,e,n,i)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(t,e,n){"use strict";var i,o,r=(i=t("@keyframes/core"))&&i.__esModule?i:{default:i};function a(t,e){t.each(function(t,n){n.Keyframes||(n.Keyframes=new r.default(n)),e(n.Keyframes)})}(o=jQuery).keyframe={isSupported:r.default.isSupported,generate:r.default.generate,generateCSS:r.default.generateCSS,define:r.default.define},o.fn.resetKeyframe=function(t){a(this,function(e){return e.reset().then(t)})},o.fn.pauseKeyframe=function(){a(this,function(t){return t.pause()})},o.fn.resumeKeyframe=function(){a(this,function(t){return t.resume()})},o.fn.playKeyframe=function(t,e){var n=e;t.complete&&(e=t.complete),"function"==typeof e&&(n={onIteration:e,onEnd:e}),a(this,function(e){return e.play(t,n)})}},{"@keyframes/core":2}],2:[function(t,e,n){"use strict";var i=function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=function(t,e,n,i){return new(n=n||Promise)(function(o,r){function a(t){try{l(i.next(t))}catch(t){r(t)}}function s(t){try{l(i.throw(t))}catch(t){r(t)}}function l(t){t.done?o(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(a,s)}l((i=i.apply(t,e||[])).next())})},r=function(t,e){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=0<(o=a.trys).length&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},a=function(t){return t&&t.__esModule?t:{default:t}};function s(){return new Promise(function(t){requestAnimationFrame(function(){t()})})}Object.defineProperty(n,"__esModule",{value:!0});var l,u=a(t("add-px-to-style")),f=a(t("hyphenate-style-name")),g="undefined"!=typeof window;if(g){var c=document.createElement("style");c.setAttribute("id","keyframesjs-stylesheet"),document.head.appendChild(c),l=c.sheet}function h(){}function m(t){if(!Object.keys(t).length)return"";var e="";for(var n in t)e+=f.default(n)+":"+u.default(n,t[n])+";";return e}var d=(_.isSupported=function(){return void 0!==document.body.style.animationName},_.prototype.reset=function(){return o(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return this.removeEvents(),this.mountedElement.style.animationPlayState="running",this.mountedElement.style.animation="none",[4,s()];case 1:return t.sent(),[2,this]}})})},_.prototype.pause=function(){return this.mountedElement.style.animationPlayState="paused",this},_.prototype.resume=function(){return this.mountedElement.style.animationPlayState="running",this},_.prototype.play=function(t,e){var n=this;if(this.mountedElement.style.animationName===this.getAnimationName(t))return requestAnimationFrame(function(){return o(n,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,this.reset()];case 1:return n.sent(),this.play(t,e),[2]}})})}),this;function i(t,e){var i=t+"Listener";
754n.mountedElement.removeEventListener(t,n[i]),n[i]=e,n.mountedElement.addEventListener(t,n[i])}var a=e||{},s=a.onBeforeStart,l=void 0===s?null:s,u=a.onStart,f=void 0===u?null:u,g=a.onIteration,c=void 0===g?null:g,h=a.onEnd,m=void 0===h?null:h,d=_.playCSS(t);return l&&l(),this.mountedElement.style.animationPlayState="running",this.mountedElement.style.animation=d,c&&i("animationiteration",c),m&&i("animationend",m),f&&requestAnimationFrame(f),this},_.prototype.removeEvents=function(){return this.mountedElement.removeEventListener("animationiteration",this.animationiterationListener),this.mountedElement.removeEventListener("animationend",this.animationendListener),this},_.prototype.playNext=function(){var t=this,e=this.queueStore.pop();e?this.play(e,{onEnd:function(){return t.playNext()},onIteration:this.callbacks.onIteration}):this.callbacks.onEnd&&this.callbacks.onEnd()},_.prototype.updateCallbacks=function(t){t&&(this.callbacks=i(i({},this.callbacks),t))},_.prototype.queue=function(t,e){var n=this.queueStore.length;return this.updateCallbacks(e),t.constructor===Array?this.queueStore=t.reverse().concat(this.queueStore):this.queueStore.unshift(t),n||(this.callbacks.onBeforeStart&&this.callbacks.onBeforeStart(),this.playNext(),this.callbacks.onStart&&requestAnimationFrame(this.callbacks.onStart)),this},_.prototype.resetQueue=function(){return o(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,s()];case 1:return t.sent(),this.removeEvents(),this.queueStore=[],[4,this.reset()];case 2:return t.sent(),[2,this]}})})},_.prototype.chain=function(t,e){return o(this,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,this.resetQueue()];case 1:return n.sent(),this.queue(t,e),[2,this]}})})},_.prototype.getAnimationName=function(t){switch(t.constructor){case Array:return t.map(this.getAnimationName).join(", ");case String:return t.split(" ")[0];default:return t.name}},_.playCSS=function(t){function e(t){var e=i({duration:"0s",timingFunction:"ease",delay:"0s",iterationCount:1,direction:"normal",fillMode:"forwards"},t);return[e.name,e.duration,e.timingFunction,e.delay,e.iterationCount,e.direction,e.fillMode].join(" ")}if(t.constructor!==Array)return t.constructor===String?t:e(t);for(var n=t,o=[],r=0;r<n.length;r+=1)o.push(n[r].constructor===String?n[r]:e(n[r]));return o.join(", ")},_.generateCSS=function(t){var e="@keyframes "+t.name+" {";for(var n in t)"name"!==n&&"media"!==n&&"complete"!==n&&(e+=n+" {"+m(t[n])+"}");return e+="}",t.media&&(e="@media "+t.media+"{"+e+"}"),e},_.generate=function(t){var e=this.generateCSS(t),n=_.rules.indexOf(t.name);-1<n&&(_.sheet.deleteRule(n),_.rules.splice(n,1));var i=(_.sheet.cssRules||_.sheet.rules).length;_.sheet.insertRule(e,i),_.rules[i]=t.name},_.define=function(t){if(t.length)for(var e=0;e<t.length;e+=1)this.generate(t[e]);else this.generate(t)},_.defineCSS=function(t){if(t.length){for(var e="",n=0;n<t.length;n+=1)e+=this.generateCSS(t[n]);return e}return this.generateCSS(t)},_.plugin=function(t){if(t.constructor===Array)for(var e=0;e<t.length;e+=1)t[e](this);else t(this)},_.sheet=l,_.rules=[],_);function _(t){this.queueStore=[],this.callbacks={onStart:h,onBeforeStart:h,onIteration:h,onEnd:h},this.animationendListener=h,this.animationiterationListener=h,this.mountedElement=t}g&&(window.Keyframes=d),n.default=d},{"add-px-to-style":3,"hyphenate-style-name":4}],3:[function(t,e,n){"use strict";var i={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(t,e){return"number"!=typeof e||i[t]?e:e+"px"}},{}],4:[function(t,e,n){"use strict";var i=/[A-Z]/g,o=/^ms-/,r={};function a(t){return"-"+t.toLowerCase()}e.exports=function(t){if(r.hasOwnProperty(t))return r[t];var e=t.replace(i,a);return r[t]=o.test(e)?"-"+e:e}},{}]},{},[1]),function(t){"use strict";t(window).on("elementor/frontend/init",function(){var e=elementorFrontend,n=elementorModules,i=n.frontend.handlers.Base.extend({onInit:function(){n.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initEffects()},getConfig:function(t){return this.getElementSettings("tmea_transform_fx_"+t)},initEffects:function(){var e=t.keyframe.isSupported(),n=document.body.clientWidth,i=this.getElementSettings("tmea_transform_fx"),o=this.getConfig("tablet")||1025,r=this.getConfig("mobile")||768,a=this.getConfig("timing")||"linear",s=this.getConfig("iteration")||"infinite",l=this.getConfig("direction")||"alternate",u=this.getConfig("duration.size")||0,f=this.getConfig("delay.size")||0,g=this.getConfig("opacity.size")||0,c=this.getConfig("opacity_to.size")||0,h=this.getConfig("translate_x.size")||0,m=this.getConfig("translate_x.unit")||0,d=this.getConfig("translate_y.size")||0,_=this.getConfig("translate_y.unit")||0,y=this.getConfig("rotate_x.size")||0,p=this.getConfig("rotate_y.size")||0,C=this.getConfig("rotate_z.size")||0,b=this.getConfig("scale_x.size")||1,v=this.getConfig("scale_y.size")||1,x=this.getConfig("skew_x.size")||0,z=this.getConfig("skew_y.size")||0,w=this.getConfig("translate_x_to.size")||0,S=this.getConfig("translate_x_to.unit")||0,k=this.getConfig("translate_y_to.size")||0,E=this.getConfig("translate_y_to.unit")||0,q=this.getConfig("rotate_x_to.size")||0,O=this.getConfig("rotate_y_to.size")||0,A=this.getConfig("rotate_z_to.size")||0,F=this.getConfig("scale_x_to.size")||1,K=this.getConfig("scale_y_to.size")||1,X=this.getConfig("skew_x_to.size")||0,Y=this.getConfig("skew_y_to.size")||0,L=this.getConfig("translate_x_tablet.size")||0,N=this.getConfig("translate_x_tablet.unit")||0,j=this.getConfig("translate_y_tablet.size")||0,P=this.getConfig("translate_y_tablet.unit")||0,I=this.getConfig("rotate_x_tablet.size")||0,M=this.getConfig("rotate_y_tablet.size")||0,Z=this.getConfig("rotate_z_tablet.size")||0,B=this.getConfig("scale_x_tablet.size")||1,G=this.getConfig("scale_y_tablet.size")||1,Q=this.getConfig("skew_x_tablet.size")||0,R=this.getConfig("skew_y_tablet.size")||0,D=this.getConfig("translate_x_to_tablet.size")||0,H=this.getConfig("translate_x_to_tablet.unit")||0,W=this.getConfig("translate_y_to_tablet.size")||0,T=this.getConfig("translate_y_to_tablet.unit")||0,U=this.getConfig("rotate_x_to_tablet.size")||0,$=this.getConfig("rotate_y_to_tablet.size")||0,J=this.getConfig("rotate_z_to_tablet.size")||0,V=this.getConfig("scale_x_to_tablet.size")||1,tt=this.getConfig("scale_y_to_tablet.size")||1,et=this.getConfig("skew_x_to_tablet.size")||0,nt=this.getConfig("skew_y_to_tablet.size")||0,it=this.getConfig("translate_x_mobile.size")||0,ot=this.getConfig("translate_x_mobile.unit")||0,rt=this.getConfig("translate_y_mobile.size")||0,at=this.getConfig("translate_y_mobile.unit")||0,st=this.getConfig("rotate_x_mobile.size")||0,lt=this.getConfig("rotate_y_mobile.size")||0,ut=this.getConfig("rotate_z_mobile.size")||0,ft=this.getConfig("scale_x_mobile.size")||1,gt=this.getConfig("scale_y_mobile.size")||1,ct=this.getConfig("skew_x_mobile.size")||0,ht=this.getConfig("skew_y_mobile.size")||0,mt=this.getConfig("translate_x_to_mobile.size")||0,dt=this.getConfig("translate_x_to_mobile.unit")||0,_t=this.getConfig("translate_y_to_mobile.size")||0,yt=this.getConfig("translate_y_to_mobile.unit")||0,pt=this.getConfig("rotate_x_to_mobile.size")||0,Ct=this.getConfig("rotate_y_to_mobile.size")||0,bt=this.getConfig("rotate_z_to_mobile.size")||0,vt=this.getConfig("scale_x_to_mobile.size")||1,xt=this.getConfig("scale_y_to_mobile.size")||1,zt=this.getConfig("skew_x_to_mobile.size")||0,wt=this.getConfig("skew_y_to_mobile.size")||0;e&&this.$element.each(function(){if(i){var e=t(this).data("id");t.keyframe.define({name:"tme-widget-anim-"+e,from:{transform:"translate("+h+m+", "+d+_+") rotateX("+y+"deg) rotateY("+p+"deg) rotateZ("+C+"deg) scaleX("+b+") scaleY("+v+") skew("+x+"deg, "+z+"deg)",opacity:g},to:{transform:"translate("+w+S+", "+k+E+") rotateX("+q+"deg) rotateY("+O+"deg) rotateZ("+A+"deg) scaleX("+F+") scaleY("+K+") skew("+X+"deg, "+Y+"deg)",opacity:c}}),t.keyframe.define({name:"tme-widget-anim-"+e+"-tablet",media:"screen and (max-width: "+o+"px)",from:{transform:"translate("+L+N+", "+j+P+") rotateX("+I+"deg) rotateY("+M+"deg) rotateZ("+Z+"deg) scaleX("+B+") scaleY("+G+") skew("+Q+"deg, "+R+"deg)",opacity:g},to:{transform:"translate("+D+H+", "+W+T+") rotateX("+U+"deg) rotateY("+$+"deg) rotateZ("+J+"deg) scaleX("+V+") scaleY("+tt+") skew("+et+"deg, "+nt+"deg)",opacity:c}}),t.keyframe.define({name:"tme-widget-anim-"+e+"-mobile",media:"screen and (max-width: "+r+"px)",from:{transform:"translate("+it+ot+", "+rt+at+") rotateX("+st+"deg) rotateY("+lt+"deg) rotateZ("+ut+"deg) scaleX("+ft+") scaleY("+gt+") skew("+ct+"deg, "+ht+"deg)",opacity:g},to:{transform:"translate("+mt+dt+", "+_t+yt+") rotateX("+pt+"deg) rotateY("+Ct+"deg) rotateZ("+bt+"deg) scaleX("+vt+") scaleY("+xt+") skew("+zt+"deg, "+wt+"deg)",opacity:c}}),n>=o?t(this).playKeyframe({name:"tme-widget-anim-"+e,duration:u+"s",timingFunction:a,delay:f+"s",iterationCount:s,direction:l}):n<o&&n>=r?t(this).playKeyframe({name:"tme-widget-anim-"+e+"-tablet",duration:u+"s",timingFunction:a,delay:f+"s",iterationCount:s,direction:l}):t(this).playKeyframe({name:"tme-widget-anim-"+e+"-mobile",duration:u+"s",timingFunction:a,delay:f+"s",iterationCount:s,direction:l})}else t(this).resetKeyframe()})}});e.hooks.addAction("frontend/element_ready/widget",function(t){e.elementsHandler.addHandler(i,{$element:t})})})}(jQuery);
755;"use strict";!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.THREE={})}(this,function(t){function e(){}function n(t,e){this.x=t||0,this.y=e||0}function i(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function r(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._w=void 0!==i?i:1}function a(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}function o(){this.elements=[1,0,0,0,1,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}function s(t,e,i,r,a,c,h,l,u,p){Object.defineProperty(this,"id",{value:Nr++}),this.uuid=Or.generateUUID(),this.name="",this.image=void 0!==t?t:s.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==e?e:s.DEFAULT_MAPPING,this.wrapS=void 0!==i?i:1001,this.wrapT=void 0!==r?r:1001,this.magFilter=void 0!==a?a:1006,this.minFilter=void 0!==c?c:1008,this.anisotropy=void 0!==u?u:1,this.format=void 0!==h?h:1023,this.type=void 0!==l?l:1009,this.offset=new n(0,0),this.repeat=new n(1,
7551),this.center=new n(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new o,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==p?p:3e3,this.version=0,this.onUpdate=null}function c(t,e,n,i){this.x=t||0,this.y=e||0,this.z=n||0,this.w=void 0!==i?i:1}function h(t,e,n){this.width=t,this.height=e,this.scissor=new c(0,0,t,e),this.scissorTest=!1,this.viewport=new c(0,0,t,e),void 0===(n=n||{}).minFilter&&(n.minFilter=1006),this.texture=new s(void 0,void 0,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.generateMipmaps=void 0===n.generateMipmaps||n.generateMipmaps,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0===n.stencilBuffer||n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}function l(t,e,n){h.call(this,t,e,n),this.activeMipMapLevel=this.activeCubeFace=0}function u(t,e,n,i,r,a,o,c,h,l,u,p){s.call(this,null,a,o,c,h,l,i,r,u,p),this.image={data:t,width:e,height:n},this.magFilter=void 0!==h?h:1003,this.minFilter=void 0!==l?l:1003,this.flipY=this.generateMipmaps=!1,this.unpackAlignment=1}function p(t,e){this.min=void 0!==t?t:new a(1/0,1/0,1/0),this.max=void 0!==e?e:new a(-1/0,-1/0,-1/0)}function d(t,e){this.center=void 0!==t?t:new a,this.radius=void 0!==e?e:0}function f(t,e){this.normal=void 0!==t?t:new a(1,0,0),this.constant=void 0!==e?e:0}function m(t,e,n,i,r,a){this.planes=[void 0!==t?t:new f,void 0!==e?e:new f,void 0!==n?n:new f,void 0!==i?i:new f,void 0!==r?r:new f,void 0!==a?a:new f]}function g(t,e,n){return void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}function v(){function t(r,a){!1!==n&&(i(r,a),e.requestAnimationFrame(t))}var e=null,n=!1,i=null;return{start:function(){!0!==n&&null!==i&&(e.requestAnimationFrame(t),n=!0)},stop:function(){n=!1},setAnimationLoop:function(t){i=t},setContext:function(t){e=t}}}function y(t){var e=new WeakMap;return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),e.get(t)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);var i=e.get(n);i&&(t.deleteBuffer(i.buffer),e.delete(n))},update:function(n,i){n.isInterleavedBufferAttribute&&(n=n.data);var r=e.get(n);if(void 0===r)e.set(n,function(e,n){var i=e.array,r=e.dynamic?t.DYNAMIC_DRAW:t.STATIC_DRAW,a=t.createBuffer();return t.bindBuffer(n,a),t.bufferData(n,i,r),e.onUploadCallback(),n=t.FLOAT,i instanceof Float32Array?n=t.FLOAT:i instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):i instanceof Uint16Array?n=t.UNSIGNED_SHORT:i instanceof Int16Array?n=t.SHORT:i instanceof Uint32Array?n=t.UNSIGNED_INT:i instanceof Int32Array?n=t.INT:i instanceof Int8Array?n=t.BYTE:i instanceof Uint8Array&&(n=t.UNSIGNED_BYTE),{buffer:a,type:n,bytesPerElement:i.BYTES_PER_ELEMENT,version:e.version}}(n,i));else if(r.version<n.version){var a=n,o=a.array,s=a.updateRange;t.bindBuffer(i,r.buffer),!1===a.dynamic?t.bufferData(i,o,t.STATIC_DRAW):-1===s.count?t.bufferSubData(i,0,o):0===s.count?console.error("THREE.WebGLObjects.updateBuffer: dynamic THREE.BufferAttribute marked as needsUpdate but updateRange.count is 0, ensure you are using set methods or updating manually."):(t.bufferSubData(i,s.offset*o.BYTES_PER_ELEMENT,o.subarray(s.offset,s.offset+s.count)),s.count=-1),r.version=n.version}}}}function x(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._order=i||x.DefaultOrder}function b(){this.mask=1}function _(){Object.defineProperty(this,"id",{value:Gr++}),this.uuid=Or.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=_.DefaultUp.clone();var t=new a,e=new x,n=new r,s=new a(1,1,1);e.onChange(function(){n.setFromEuler(e,!1)}),n.onChange(function(){e.setFromQuaternion(n,void 0,!1)}),Object.defineProperties(this,{position:{enumerable:!0,value:t},rotation:{enumerable:!0,value:e},quaternion:{enumerable:!0,value:n},scale:{enumerable:!0,value:s},modelViewMatrix:{value:new i},normalMatrix:{value:new o}}),this.matrix=new i,this.matrixWorld=new i,this.matrixAutoUpdate=_.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new b,this.visible=!0,this.receiveShadow=this.castShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}function w(){_.call(this),this.type="Camera",this.matrixWorldInverse=new i,this.projectionMatrix=new i}
755function M(t,e,n,i,r,a){w.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=n,this.bottom=i,this.near=void 0!==r?r:.1,this.far=void 0!==a?a:2e3,this.updateProjectionMatrix()}function E(t,e,n,i,r,o){this.a=t,this.b=e,this.c=n,this.normal=i&&i.isVector3?i:new a,this.vertexNormals=Array.isArray(i)?i:[],this.color=r&&r.isColor?r:new g,this.vertexColors=Array.isArray(r)?r:[],this.materialIndex=void 0!==o?o:0}function T(){Object.defineProperty(this,"id",{value:Hr+=2}),this.uuid=Or.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}function S(t,e,n){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=!0===n,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function A(t,e,n){S.call(this,new Int8Array(t),e,n)}function L(t,e,n){S.call(this,new Uint8Array(t),e,n)}function R(t,e,n){S.call(this,new Uint8ClampedArray(t),e,n)}function C(t,e,n){S.call(this,new Int16Array(t),e,n)}function P(t,e,n){S.call(this,new Uint16Array(t),e,n)}function O(t,e,n){S.call(this,new Int32Array(t),e,n)}function I(t,e,n){S.call(this,new Uint32Array(t),e,n)}function N(t,e,n){S.call(this,new Float32Array(t),e,n)}function D(t,e,n){S.call(this,new Float64Array(t),e,n)}function U(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function B(t){if(0===t.length)return-1/0;for(var e=t[0],n=1,i=t.length;n<i;++n)t[n]>e&&(e=t[n]);return e}function F(){Object.defineProperty(this,"id",{value:Vr+=2}),this.uuid=Or.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.drawRange={start:0,count:1/0},this.userData={}}function z(t,e,n,i,r,a){T.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:a},this.fromBufferGeometry(new G(t,e,n,i,r,a)),this.mergeVertices()}function G(t,e,n,i,r,o){function s(t,e,n,i,r,o,s,m,g,v,y){var x=o/g,b=s/v,_=o/2,w=s/2,M=m/2;s=g+1;var E,T,S=v+1,A=o=0,L=new a;for(T=0;T<S;T++){var R=T*b-w;for(E=0;E<s;E++)L[t]=(E*x-_)*i,L[e]=R*r,L[n]=M,l.push(L.x,L.y,L.z),L[t]=0,L[e]=0,L[n]=0<m?1:-1,u.push(L.x,L.y,L.z),p.push(E/g),p.push(1-T/v),o+=1}for(T=0;T<v;T++)for(E=0;E<g;E++)t=d+E+s*(T+1),e=d+(E+1)+s*(T+1),n=d+(E+1)+s*T,h.push(d+E+s*T,t,n),h.push(t,e,n),A+=6;c.addGroup(f,A,y),f+=A,d+=o}F.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:o};var c=this;t=t||1,e=e||1,n=n||1,i=Math.floor(i)||1,r=Math.floor(r)||1;var h=[],l=[],u=[],p=[],d=0,f=0;s("z","y","x",-1,-1,n,e,t,o=Math.floor(o)||1,r,0),s("z","y","x",1,-1,n,e,-t,o,r,1),s("x","z","y",1,1,t,n,e,i,o,2),s("x","z","y",1,-1,t,n,-e,i,o,3),s("x","y","z",1,-1,t,e,n,i,r,4),s("x","y","z",-1,-1,t,e,-n,i,r,5),this.setIndex(h),this.addAttribute("position",new N(l,3)),this.addAttribute("normal",new N(u,3)),this.addAttribute("uv",new N(p,2))}function H(t,e,n,i){T.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:i},this.fromBufferGeometry(new V(t,e,n,i)),this.mergeVertices()}function V(t,e,n,i){F.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:i};var r=(t=t||1)/2,a=(e=e||1)/2,o=(n=Math.floor(n)||1)+1,s=(i=Math.floor(i)||1)+1,c=t/n,h=e/i,l=[],u=[],p=[],d=[];for(t=0;t<s;t++){var f=t*h-a;for(e=0;e<o;e++)u.push(e*c-r,-f,0),p.push(0,0,1),d.push(e/n),d.push(1-t/i)}for(t=0;t<i;t++)for(e=0;e<n;e++)r=e+o*(t+1),a=e+1+o*(t+1),s=e+1+o*t,l.push(e+o*t,r,s),l.push(r,a,s);this.setIndex(l),this.addAttribute("position",new N(u,3)),this.addAttribute("normal",new N(p,3)),this.addAttribute("uv",new N(d,2))}function k(){Object.defineProperty(this,"id",{value:kr++}
755),this.uuid=Or.generateUUID(),this.name="",this.type="Material",this.lights=this.fog=!0,this.blending=1,this.side=0,this.flatShading=!1,this.vertexColors=0,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null,this.depthFunc=3,this.depthWrite=this.depthTest=!0,this.clippingPlanes=null,this.clipShadows=this.clipIntersection=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetUnits=this.polygonOffsetFactor=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.overdraw=0,this.visible=!0,this.userData={},this.needsUpdate=!0}function j(t){k.call(this),this.type="MeshBasicMaterial",this.color=new g(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.lights=this.morphTargets=this.skinning=!1,this.setValues(t)}function W(t){k.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.clipping=this.lights=this.fog=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,void 0!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}function X(t,e){this.origin=void 0!==t?t:new a,this.direction=void 0!==e?e:new a}function q(t,e,n){this.a=void 0!==t?t:new a,this.b=void 0!==e?e:new a,this.c=void 0!==n?n:new a}function Y(t,e){_.call(this),this.type="Mesh",this.geometry=void 0!==t?t:new F,this.material=void 0!==e?e:new j({color:16777215*Math.random()}),this.drawMode=0,this.updateMorphTargets()}function J(t,e,n,i){function r(t,n){e.buffers.color.setClear(t.r,t.g,t.b,n,i)}var a,o,s,c=new g(0),h=0;return{getClearColor:function(){return c},setClearColor:function(t,e){c.set(t),r(c,h=void 0!==e?e:1)},getClearAlpha:function(){return h},setClearAlpha:function(t){r(c,h=t)},render:function(e,i,l,u){null===(i=i.background)?r(c,h):i&&i.isColor&&(r(i,1),u=!0),(t.autoClear||u)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),i&&i.isCubeTexture?(void 0===s&&((s=new Y(new G(1,1,1),new W({uniforms:zr.cube.uniforms,vertexShader:zr.cube.vertexShader,fragmentShader:zr.cube.fragmentShader,side:1,depthTest:!0,depthWrite:!1,fog:!1}))).geometry.removeAttribute("normal"),s.geometry.removeAttribute("uv"),s.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},n.update(s)),s.material.uniforms.tCube.value=i,e.push(s,s.geometry,s.material,0,null)):i&&i.isTexture&&(void 0===a&&(a=new M(-1,1,1,-1,0,1),o=new Y(new V(2,2),new j({depthTest:!1,depthWrite:!1,fog:!1})),n.update(o)),o.material.map=i,t.renderBufferDirect(a,null,o.geometry,o.material,o,null))}}}function Z(){function t(){l.value!==i&&(l.value=i,l.needsUpdate=0<r),n.numPlanes=r,n.numIntersection=0}function e(t,e,i,r){var a=null!==t?t.length:0,o=null;if(0!==a){if(o=l.value,!0!==r||null===o)for(r=i+4*a,e=e.matrixWorldInverse,h.getNormalMatrix(e),(null===o||o.length<r)&&(o=new Float32Array(r)),r=0;r!==a;++r,i+=4)c.copy(t[r]).applyMatrix4(e,h),c.normal.toArray(o,i),o[i+3]=c.constant;l.value=o,l.needsUpdate=!0}return n.numPlanes=a,o}var n=this,i=null,r=0,a=!1,s=!1,c=new f,h=new o,l={value:null,needsUpdate:!1};this.uniform=l,this.numIntersection=this.numPlanes=0,this.init=function(t,n,o){var s=0!==t.length||n||0!==r||a;return a=n,i=e(t,o,0),r=t.length,s},this.beginShadows=function(){s=!0,e(null)},this.endShadows=function(){s=!1,t()},this.setState=function(n,o,c,h,u,p){if(!a||null===n||0===n.length||s&&!c)s?e(null):t();else{var d=4*(c=s?0:r),f=u.clippingState||null;for(l.value=f,f=e(n,h,d,p),n=0;n!==d;++n)f[n]=i[n];u.clippingState=f,this.numIntersection=o?this.numPlanes:0,this.numPlanes+=c}}}function Q(t,e,n){function i(t){var o=t.target;for(var s in null!==(t=r[o.id]).index&&e.remove(t.index),t.attributes)e.remove(t.attributes[s]);o.removeEventListener("dispose",i),delete r[o.id],(s=a[t.id])&&(e.remove(s),delete a[t.id]),n.memory.geometries--}var r={},a={};return{get:function(t,e){var a=r[e.id];return a||(e.addEventListener("dispose",i),e.isBufferGeometry?a=e:e.isGeometry&&(void 0===e._bufferGeometry&&(e._bufferGeometry=(new F).setFromObject(t)),a=e._bufferGeometry),r[e.id]=a,n.memory.geometries++,a)},update:function(n){var i=n.index,r=n.attributes;for(var a in null!==i&&e.update(i,t.ELEMENT_ARRAY_BUFFER),r)e.update(r[a],t.ARRAY_BUFFER);for(a in n=n.morphAttributes){r=0;for(var o=(i=n[a]).length;r<o;r++)e.update(i[r],t.ARRAY_BUFFER)}},getWireframeAttribute:function(n){var i=a[n.id];if(i)return i;i=[];var r=n.index,o=n.attributes;if(null!==r){o=0;for(var s=(r=r.array).length;o<s;o+=3){var c=r[o+0],h=r[o+1],l=r[o+2];i.push(c,h,h,l,l,c)}}else for(r=o.position.array,o=0,s=r.length/3-1;o<s;o+=3)c=o+0,h=o+1,l=o+2,i.push(c,h,h,l,l,c);return i=new(65535<B(i)?I:P)(i,1),e.update(i,t.ELEMENT_ARRAY_BUFFER),a[n.id]=i}}}function K(t,e){return Math.abs(e[1])-Math.abs(t[1])}function $(t,e,n,i,r,a,o,c,h,l){t=void 0!==t?t:[],s.call(this,t,void 0!==e?e:301,n,i,r,a,o,c,h,l),this.flipY=!1}function tt(t,e,n){var i=t[0];if(0>=i||0<i)return t;var r=e*n,a=Xr[r];if(void 0===a&&(a=new Float32Array(r),Xr[r]=a),0!==e)for(i.toArray(a,0),i=1,r=0;i!==e;++i)r+=n,t[i].toArray(a,r);return a}function et(t,e){if(t.length!==e.length)return!1;for(var n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0}function nt(t,e){for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}function it(t,e){var n=qr[e];void 0===n&&(n=new Int32Array(e),qr[e]=n);for(var i=0;i!==e;++i)n[i]=t.allocTextureUnit();return n}function rt(t,e){var n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function at(t,e){var n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function ot(t,e){var n=this.cache;void 0!==e.x?n[0]===e.x&&n[1]===e.y||(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y):et(n,e)||(t.uniform2fv(this.addr,e),nt(n,e))}function st(t,e){var n=this.cache;void 0!==e.x?n[0]===e.x&&n[1]===e.y&&n[2]===e.z||(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z):void 0!==e.r?n[0]===e.r&&n[1]===e.g&&n[2]===e.b||(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b):et(n,e)||(t.uniform3fv(this.addr,e),nt(n,e))}function ct(t,e){var n=this.cache;void 0!==e.x?n[0]===e.x&&n[1]===e.y&&n[2]===e.z&&n[3]===e.w||(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w):et(n,e)||(t.uniform4fv(this.addr,e),nt(n,e))}function ht(t,e){var n=this.cache,i=e.elements;void 0===i?et(n,e)||(t.uniformMatrix2fv(this.addr,!1,e),nt(n,e)):et(n,i)||(Zr.set(i),t.uniformMatrix2fv(this.addr,!1,Zr),nt(n,i))}function lt(t,e){var n=this.cache,i=e.elements;void 0===i?et(n,e)||(t.uniformMatrix3fv(this.addr,!1,e),nt(n,e)):et(n,i)||(Jr.set(i),t.uniformMatrix3fv(this.addr,!1,Jr),nt(n,i))}function ut(t,e){var n=this.cache,i=e.elements;void 0===i?et(n,e)||(t.uniformMatrix4fv(this.addr,!1,e),nt(n,e)):et(n,i)||(Yr.set(i),t.uniformMatrix4fv(this.addr,!1,Yr),nt(n,i))}function pt(t,e,n){var i=this.cache,r=n.allocTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture2D(e||jr,r)}function dt(t,e,n){var i=this.cache,r=n.allocTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTextureCube(e||Wr,r)}function ft(t,e){var n=this.cache;et(n,e)||(t.uniform2iv(this.addr,e),nt(n,e))}function mt(t,e){var n=this.cache;et(n,e)||(t.uniform3iv(this.addr,e),nt(n,e))}function gt(t,e){var n=this.cache;et(n,e)||(t.uniform4iv(this.addr,e),nt(n,e))}function vt(t,e){var n=this.cache;et(n,e)||(t.uniform1fv(this.addr,e),nt(n,e))}function yt(t,e){var n=this.cache;et(n,e)||(t.uniform1iv(this.addr,e),nt(n,e))}function xt(t,e){et(this.cache,e=tt(e,this.size,2))||(t.uniform2fv(this.addr,e),this.updateCache(e))}function bt(t,e){et(this.cache,e=tt(e,this.size,3))||(t.uniform3fv(this.addr,e),this.updateCache(e))}function _t(t,e){et(this.cache,e=tt(e,this.size,4))||(t.uniform4fv(this.addr,e),this.updateCache(e))}function wt(t,e){et(this.cache,e=tt(e,this.size,4))||(t.uniformMatrix2fv(this.addr,!1,e),this.updateCache(e))}function Mt(t,e){et(this.cache,e=tt(e,this.size,9))||(t.uniformMatrix3fv(this.addr,!1,e),this.updateCache(e))}function Et(t,e){et(this.cache,e=tt(e,this.size,16))||(t.uniformMatrix4fv(this.addr,!1,e),this.updateCache(e))}function Tt(t,e,n){var i=this.cache,r=e.length,a=it(n,r);for(!1===et(i,a)&&(t.uniform1iv(this.addr,a),nt(i,a)),t=0;t!==r;++t)n.setTexture2D(e[t]||jr,a[t])}function St(t,e,n){var i=this.cache,r=e.length,a=it(n,r);for(!1===et(i,a)&&(t.uniform1iv(this.addr,a),nt(i,a)),t=0;t!==r;++t)n.setTextureCube(e[t]||Wr,a[t])}function At(t,e,n){this.id=t,this.addr=n,this.cache=[],this.setValue=function(t){switch(t){case 5126:return rt;case 35664:return ot;case 35665:return st;case 35666:return ct;case 35674:return ht;case 35675:return lt;case 35676:return ut;case 35678:case 36198:return pt;case 35680:return dt;case 5124:case 35670:return at;case 35667:case 35671:return ft;case 35668:case 35672:return mt;case 35669:case 35673:return gt}}(e.type)}function Lt(t,e,n){this.id=t,this.addr=n,this.cache=[],this.size=e.size,this.setValue=function(t){switch(t){case 5126:return vt;case 35664:return xt;case 35665:return bt;case 35666:return _t;case 35674:return wt;case 35675:return Mt;case 35676:return Et;case 35678:return Tt;case 35680:return St;case 5124:case 35670:return yt;case 35667:case 35671:return ft;case 35668:case 35672:return mt;case 35669:case 35673:return gt}}(e.type)}function Rt(t){this.id=t,this.seq=[],this.map={}}function Ct(t,e,n){this.seq=[],this.map={},this.renderer=n,n=t.getProgramParameter(e,t.ACTIVE_UNIFORMS);for(var i=0;i<n;++i){var r=t.getActiveUniform(e,i),a=t.getUniformLocation(e,r.name),o=this,s=r.name,c=s.length;for(Qr.lastIndex=0;;){var h=Qr.exec(s),l=Qr.lastIndex,u=h[1],p=h[3];if("]"===h[2]&&(u|=0),void 0===p||"["===p&&l+2===c){s=o,r=void 0===p?new At(u,r,a):new Lt(u,r,a),s.seq.push(r),s.map[r.id]=r;break}void 0===(p=o.map[u])&&(p=new Rt(u),u=o,o=p,u.seq.push(o),u.map[o.id]=o),o=p}}}function Pt(t,e,n){var i=t.createShader(e);return t.shaderSource(i,n),t.compileShader(i),!1===t.getShaderParameter(i,t.COMPILE_STATUS)&&console.error("THREE.WebGLShader: Shader couldn't compile."),""!==t.getShaderInfoLog(i)&&console.warn("THREE.WebGLShader: gl.getShaderInfoLog()",e===t.VERTEX_SHADER?"vertex":"fragment",t.getShaderInfoLog(i),function(t){t=t.split("\n");for(var e=0;e<t.length;e++)t[e]=e+1+": "+t[e];return t.join("\n")}(n)),i}function Ot(t){switch(t){case 3e3:return["Linear","( value )"];case 3001:return["sRGB","( value )"];case 3002:return["RGBE","( value )"];case 3004:return["RGBM","( value, 7.0 )"];case 3005:return["RGBM","( value, 16.0 )"];case 3006:return["RGBD","( value, 256.0 )"];case 3007:return["Gamma","( value, float( GAMMA_FACTOR ) )"];default:throw Error("unsupported encoding: "+t)}}function It(t,e){return"vec4 "+t+"( vec4 value ) { return "+(e=Ot(e))[0]+"ToLinear"+e[1]+"; }"}function Nt(t){return""!==t}function Dt(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_L
755IGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights)}function Ut(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}function Bt(t){return t.replace(/^[ \t]*#include +<([\w\d./]+)>/gm,function(t,e){if(void 0===(t=Dr[e]))throw Error("Can not resolve #include <"+e+">");return Bt(t)})}function Ft(t){return t.replace(/#pragma unroll_loop[\s]+?for \( int i = (\d+); i < (\d+); i \+\+ \) \{([\s\S]+?)(?=\})\}/g,function(t,e,n,i){for(t="",e=parseInt(e);e<parseInt(n);e++)t+=i.replace(/\[ i \]/g,"[ "+e+" ]");return t})}function zt(t,e,n,i,r,a,o){var s=t.context,c=i.defines,h=r.vertexShader,l=r.fragmentShader,u="SHADOWMAP_TYPE_BASIC";1===a.shadowMapType?u="SHADOWMAP_TYPE_PCF":2===a.shadowMapType&&(u="SHADOWMAP_TYPE_PCF_SOFT");var p="ENVMAP_TYPE_CUBE",d="ENVMAP_MODE_REFLECTION",f="ENVMAP_BLENDING_MULTIPLY";if(a.envMap){switch(i.envMap.mapping){case 301:case 302:p="ENVMAP_TYPE_CUBE";break;case 306:case 307:p="ENVMAP_TYPE_CUBE_UV";break;case 303:case 304:p="ENVMAP_TYPE_EQUIREC";break;case 305:p="ENVMAP_TYPE_SPHERE"}switch(i.envMap.mapping){case 302:case 304:d="ENVMAP_MODE_REFRACTION"}switch(i.combine){case 0:f="ENVMAP_BLENDING_MULTIPLY";break;case 1:f="ENVMAP_BLENDING_MIX";break;case 2:f="ENVMAP_BLENDING_ADD"}}var m,g,v=0<t.gammaFactor?t.gammaFactor:1,y=o.isWebGL2?"":function(t,e,n){return[(t=t||{}).derivatives||e.envMapCubeUV||e.bumpMap||e.normalMap&&!e.objectSpaceNormalMap||e.flatShading?"#extension GL_OES_standard_derivatives : enable":"",(t.fragDepth||e.logarithmicDepthBuffer)&&n.get("EXT_frag_depth")?"#extension GL_EXT_frag_depth : enable":"",t.drawBuffers&&n.get("WEBGL_draw_buffers")?"#extension GL_EXT_draw_buffers : require":"",(t.shaderTextureLOD||e.envMap)&&n.get("EXT_shader_texture_lod")?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Nt).join("\n")}(i.extensions,a,e),x=function(t){var e,n=[];for(e in t){var i=t[e];!1!==i&&n.push("#define "+e+" "+i)}return n.join("\n")}(c),b=s.createProgram();return i.isRawShaderMaterial?(0<(c=[x].filter(Nt).join("\n")).length&&(c+="\n"),0<(e=[y,x].filter(Nt).join("\n")).length&&(e+="\n")):(c=["precision "+a.precision+" float;","precision "+a.precision+" int;","#define SHADER_NAME "+r.name,x,a.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+v,"#define MAX_BONES "+a.maxBones,a.useFog&&a.fog?"#define USE_FOG":"",a.useFog&&a.fogExp?"#define FOG_EXP2":"",a.map?"#define USE_MAP":"",a.envMap?"#define USE_ENVMAP":"",a.envMap?"#define "+d:"",a.lightMap?"#define USE_LIGHTMAP":"",a.aoMap?"#define USE_AOMAP":"",a.emissiveMap?"#define USE_EMISSIVEMAP":"",a.bumpMap?"#define USE_BUMPMAP":"",a.normalMap?"#define USE_NORMALMAP":"",a.normalMap&&a.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",a.displacementMap&&a.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",a.specularMap?"#define USE_SPECULARMAP":"",a.roughnessMap?"#define USE_ROUGHNESSMAP":"",a.metalnessMap?"#define USE_METALNESSMAP":"",a.alphaMap?"#define USE_ALPHAMAP":"",a.vertexColors?"#define USE_COLOR":"",a.flatShading?"#define FLAT_SHADED":"",a.skinning?"#define USE_SKINNING":"",a.useVertexTexture?"#define BONE_TEXTURE":"",a.morphTargets?"#define USE_MORPHTARGETS":"",a.morphNormals&&!1===a.flatShading?"#define USE_MORPHNORMALS":"",a.doubleSided?"#define DOUBLE_SIDED":"",a.flipSided?"#define FLIP_SIDED":"",a.shadowMapEnabled?"#define USE_SHADOWMAP":"",a.shadowMapEnabled?"#define "+u:"",a.sizeAttenuation?"#define USE_SIZEATTENUATION":"",a.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",a.logarithmicDepthBuffer&&(o.isWebGL2||e.get("EXT_frag_depth"))?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_COLOR","\tattribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Nt).join("\n"),e=[y,"precision "+a.precision+" float;","precision "+a.precision+" int;","#define SHADER_NAME "+r.name,x,a.alphaTest?"#define ALPHATEST "+a.alph
755aTest+(a.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+v,a.useFog&&a.fog?"#define USE_FOG":"",a.useFog&&a.fogExp?"#define FOG_EXP2":"",a.map?"#define USE_MAP":"",a.envMap?"#define USE_ENVMAP":"",a.envMap?"#define "+p:"",a.envMap?"#define "+d:"",a.envMap?"#define "+f:"",a.lightMap?"#define USE_LIGHTMAP":"",a.aoMap?"#define USE_AOMAP":"",a.emissiveMap?"#define USE_EMISSIVEMAP":"",a.bumpMap?"#define USE_BUMPMAP":"",a.normalMap?"#define USE_NORMALMAP":"",a.normalMap&&a.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",a.specularMap?"#define USE_SPECULARMAP":"",a.roughnessMap?"#define USE_ROUGHNESSMAP":"",a.metalnessMap?"#define USE_METALNESSMAP":"",a.alphaMap?"#define USE_ALPHAMAP":"",a.vertexColors?"#define USE_COLOR":"",a.gradientMap?"#define USE_GRADIENTMAP":"",a.flatShading?"#define FLAT_SHADED":"",a.doubleSided?"#define DOUBLE_SIDED":"",a.flipSided?"#define FLIP_SIDED":"",a.shadowMapEnabled?"#define USE_SHADOWMAP":"",a.shadowMapEnabled?"#define "+u:"",a.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",a.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",a.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",a.logarithmicDepthBuffer&&(o.isWebGL2||e.get("EXT_frag_depth"))?"#define USE_LOGDEPTHBUF_EXT":"",a.envMap&&(o.isWebGL2||e.get("EXT_shader_texture_lod"))?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",0!==a.toneMapping?"#define TONE_MAPPING":"",0!==a.toneMapping?Dr.tonemapping_pars_fragment:"",0!==a.toneMapping?function(t,e){switch(e){case 1:e="Linear";break;case 2:e="Reinhard";break;case 3:e="Uncharted2";break;case 4:e="OptimizedCineon";break;default:throw Error("unsupported toneMapping: "+e)}return"vec3 "+t+"( vec3 color ) { return "+e+"ToneMapping( color ); }"}("toneMapping",a.toneMapping):"",a.dithering?"#define DITHERING":"",a.outputEncoding||a.mapEncoding||a.envMapEncoding||a.emissiveMapEncoding?Dr.encodings_pars_fragment:"",a.mapEncoding?It("mapTexelToLinear",a.mapEncoding):"",a.envMapEncoding?It("envMapTexelToLinear",a.envMapEncoding):"",a.emissiveMapEncoding?It("emissiveMapTexelToLinear",a.emissiveMapEncoding):"",a.outputEncoding?function(t,e){return"vec4 "+t+"( vec4 value ) { return LinearTo"+(e=Ot(e))[0]+e[1]+"; }"}("linearToOutputTexel",a.outputEncoding):"",a.depthPacking?"#define DEPTH_PACKING "+i.depthPacking:"","\n"].filter(Nt).join("\n")),h=Ut(h=Dt(h=Bt(h),a),a),l=Ut(l=Dt(l=Bt(l),a),a),h=Ft(h),l=Ft(l),o.isWebG
755L2&&!i.isRawShaderMaterial&&(o=!1,u=/^\s*#version\s+300\s+es\s*\n/,i.isShaderMaterial&&null!==h.match(u)&&null!==l.match(u)&&(o=!0,h=h.replace(u,""),l=l.replace(u,"")),c="#version 300 es\n\n#define attribute in\n#define varying out\n#define texture2D texture\n"+c,e=["#version 300 es\n\n#define varying in",o?"":"out highp vec4 pc_fragColor;",o?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth\n#define texture2D texture\n#define textureCube texture\n#define texture2DProj textureProj\n#define texture2DLodEXT textureLod\n#define texture2DProjLodEXT textureProjLod\n#define textureCubeLodEXT textureLod\n#define texture2DGradEXT textureGrad\n#define texture2DProjGradEXT textureProjGrad\n#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+e),l=e+l,h=Pt(s,s.VERTEX_SHADER,c+h),l=Pt(s,s.FRAGMENT_SHADER,l),s.attachShader(b,h),s.attachShader(b,l),void 0!==i.index0AttributeName?s.bindAttribLocation(b,0,i.index0AttributeName):!0===a.morphTargets&&s.bindAttribLocation(b,0,"position"),s.linkProgram(b),a=s.getProgramInfoLog(b).trim(),o=s.getShaderInfoLog(h).trim(),u=s.getShaderInfoLog(l).trim(),d=p=!0,!1===s.getProgramParameter(b,s.LINK_STATUS)?(p=!1,console.error("THREE.WebGLProgram: shader error: ",s.getError(),"gl.VALIDATE_STATUS",s.getProgramParameter(b,s.VALIDATE_STATUS),"gl.getProgramInfoLog",a,o,u)):""!==a?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",a):""!==o&&""!==u||(d=!1),d&&(this.diagnostics={runnable:p,material:i,programLog:a,vertexShader:{log:o,prefix:c},fragmentShader:{log:u,prefix:e}}),s.deleteShader(h),s.deleteShader(l),this.getUniforms=function(){return void 0===m&&(m=new Ct(s,b,t)),m},this.getAttributes=function(){if(void 0===g){for(var t={},e=s.getProgramParameter(b,s.ACTIVE_ATTRIBUTES),n=0;n<e;n++){var i=s.getActiveAttrib(b,n).name;t[i]=s.getAttribLocation(b,i)}g=t}return g},this.destroy=function(){s.deleteProgram(b),this.program=void 0},Object.defineProperties(this,{uniforms:{get:function(){return console.warn("THREE.WebGLProgram: .uniforms is now .getUniforms()."),this.getUniforms()}},attributes:{get:function(){return console.warn("THREE.WebGLProgram: .attributes is now .getAttributes()."),this.getAttributes()}}}),this.name=r.name,this.id=$r++,this.code=n,this.usedTimes=1,this.program=b,this.vertexShader=h,this.fragmentShader=l,this}function Gt(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program&&e.program&&t.program!==e.program?t.program.id-e.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function Ht(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function Vt(){var t={};return{get:function(e,n){return e=e.id+","+n.id,void 0===(n=t[e])&&(n=new function(){var t=[],e=0,n=[],i=[];return{opaque:n,transparent:i,init:function(){e=0,n.length=0,i.length=0},push:function(r,a,o,s,c){var h=t[e];void 0===h?(h={id:r.id,object:r,geometry:a,material:o,program:o.program,renderOrder:r.renderOrder,z:s,group:c},t[e]=h):(h.id=r.id,h.object=r,h.geometry=a,h.material=o,h.program=o.program,h.renderOrder=r.renderOrder,h.z=s,h.group=c),(!0===o.transparent?i:n).push(h),e++},sort:function(){1<n.length&&n.sort(Gt),1<i.length&&i.sort(Ht)}}},t[e]=n),n},dispose:function(){t={}}}}function kt(){var t=new function(){var t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];switch(e.type){case"DirectionalLight":var i={direction:new a,color:new g,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new n};break;case"SpotLight":i={position:new a,direction:new a,color:new g,distance:0,coneCos:0,penumbraCos:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new n};break;case"PointLight":i={position:new a,color:new g,distance:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new n,shadowCameraNear:1,shadowCameraFar:1e3};break;case"HemisphereLight":i={direction:new a,skyColor:new g,groundColor:new g};break;case"RectAreaLight":i={color:new g,position:new a,halfWidth:new a,halfHeight:new a}}return t[e.id]=i}}},e={id:ta++,hash:{stateID:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,shadowsLength:-1},ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},r=new a,o=new i,s=new i;return{setup:function(n,i,a){var c=0,h=0,l=0,u=0,p=0,d=0,f=0,m=0;a=a.matrixWorldInverse;for(var g=0,v=n.length;g<v;g++){var y=n[g],x=y.color,b=y.intensity,_=y.distance,w=y.shadow&&y.shadow.map?y.shadow.map.texture:null;if(y.isAmbientLight)c+=x.r*b,h+=x.g*b,l+=x.b*b;else if(y.isDirectionalLight){var M=t.get(y);M.color.copy(y.color).multiplyScalar(y.intensity),M.direction.setFromMatrixPosition(y.matrixWorld),r.setFromMatrixPosition(y.target.matrixWorld),M.direction.sub(r),M.direction.transformDirection(a),(M.shadow=y.castShadow)&&(x=y.shadow,M.shadowBias=x.bias,M.shadowRadius=x.radius,M.shadowMapSize=x.mapSize),e.directionalShadowMap[u]=w,e.directionalShadowMatrix[u]=y.shadow.matrix,e.directional[u]=M,u++}else y.isSpotLight?((M=t.get(y)).position.setFromMatrixPosition(y.matrixWorld),M.position.applyMatrix4(a),M.color.copy(x).multiplyScalar(b),M.distance=_,M.direction.setFromMatrixPosition(y.matrixWorld),r.setFromMatrixPosition(y.target.matrixWorld),M.direction.sub(r),M.direction.transformDirection(a),M.coneCos=Math.cos(y.angle),M.penumbraCos=Math.cos(y.angle*(1-y.penumbra)),M.decay=0===y.distance?0:y.decay,(M.shadow=y.castShadow)&&(x=y.shadow,M.shadowBias=x.bias,M.shadowRadius=x.radius,M.shadowMapSize=x.mapSize),e.spotShadowMap[d]=w,e.spotShadowMatrix[d]=y.shadow.matrix,e.spot[d]=M,d++):y.isRectAreaLight?((M=t.get(y)).color.copy(x).multiplyScalar(b),M.position.setFromMatrixPosition(y.matrixWorld),M.position.applyMatrix4(a),s.identity(),o.copy(y.matrixWorld),o.premultiply(a),s.extractRotation(o),M.halfWidth.set(.5*y.width,0,0),M.halfHeight.set(0,.5*y.height,0),M.halfWidth.applyMatrix4(s),M.halfHeight.applyMatrix4(s),e.rectArea[f]=M,f++):y.isPointLight?((M=t.get(y)).position.setFromMatrixPosition(y.matrixWorld),M.position.applyMatrix4(a),M.color.copy(y.color).multiplyScalar(y.intensity),M.distance=y.distance,M.decay=0===y.distance?0:y.decay,(M.shadow=y.castShadow)&&(x=y.shadow,M.shadowBias=x.bias,M.shadowRadius=x.radius,M.shadowMapSize=x.mapSize,M.shadowCameraNear=x.camera.near,M.shadowCameraFar=x.camera.far),e.pointShadowMap[p]=w,e.pointShadowMatrix[p]=y.shadow.matrix,e.point[p]=M,p++):y.isHemisphereLight&&((M=t.get(y)).direction.setFromMatrixPosition(y.matrixWorld),M.direction.transformDirection(a),M.direction.normalize(),M.skyColor.copy(y.color).multiplyScalar(b),M.groundColor.copy(y.groundColor).multiplyScalar(b),e.hemi[m]=M,m++)}e.ambient[0]=c,e.ambient[1]=h,e.ambient[2]=l,e.directional.length=u,e.spot.length=d,e.rectArea.length=f,e.point.length=p,e.hemi.length=m,e.hash.stateID=e.id,e.hash.directionalLength=u,e.hash.pointLength=p,e.hash.spotLength=d,e.hash.rectAreaLength=f,e.hash.hemiLength=m,e.hash.shadowsLength=i.length},state:e}}function jt(){var t=new kt,e=[],n=[];return{init:function(){e.length=0,n.length=0},state:{lightsArray:e,shadowsArray:n,lights:t},setupLights:function(i){t.setup(e,n,i)},pushLight:function(t){e.push(t)},pushShadow:function(t){n.push(t)}}}function Wt(t){k.call(this),this.type="MeshDepthMaterial",this.depthPacking=3200,this.morphTargets=this.skinning=!1,this.displacementMap=this.alphaMap=this.map=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.lights=this.fog=!1,this.setValues(t)}function Xt(t){k.call(this),this.type="MeshDistanceMaterial",this.referencePosition=new a,this.nearDistance=1,this.farDistance=1e3,this.morphTargets=this.skinning=!1,this.displacementMap=this.alphaMap=this.map=null,this.displacementScale=1,this.displacementBias=0,this.lights=this.fog=!1,this.setValues(t)}function qt(t,e,r){function o(e,n,i,r,a,o){var s=e.geometry,c=v,h=e.customDepthMaterial;return i&&(c=y,h=e.customDistanceMaterial),h?c=h:(h=!1,n.morphTargets&&(s&&s.isBufferGeometry?h=s.morphAttributes&&s.morphAttributes.position&&0<s.morphAttributes.position.length:s&&s.isGeometry&&(h=s.morphTargets&&0<s.morphTargets.length)),e.isSkinnedMesh&&
755!1===n.skinning&&console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",e),e=e.isSkinnedMesh&&n.skinning,s=0,h&&(s|=1),e&&(s|=2),c=c[s]),t.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length&&(s=c.uuid,h=n.uuid,void 0===(e=x[s])&&(e={},x[s]=e),void 0===(s=e[h])&&(s=c.clone(),e[h]=s),c=s),c.visible=n.visible,c.wireframe=n.wireframe,c.side=null!=n.shadowSide?n.shadowSide:b[n.side],c.clipShadows=n.clipShadows,c.clippingPlanes=n.clippingPlanes,c.clipIntersection=n.clipIntersection,c.wireframeLinewidth=n.wireframeLinewidth,c.linewidth=n.linewidth,i&&c.isMeshDistanceMaterial&&(c.referencePosition.copy(r),c.nearDistance=a,c.farDistance=o),c}function s(n,i,r,a){if(!1!==n.visible){if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&n.castShadow&&(!n.frustumCulled||l.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(r.matrixWorldInverse,n.matrixWorld);var c=e.update(n),h=n.material;if(Array.isArray(h))for(var u=c.groups,p=0,d=u.length;p<d;p++){var f=u[p],m=h[f.materialIndex];m&&m.visible&&(m=o(n,m,a,g,r.near,r.far),t.renderBufferDirect(r,null,c,m,n,f))}else h.visible&&(m=o(n,h,a,g,r.near,r.far),t.renderBufferDirect(r,null,c,m,n,null))}for(c=0,h=(n=n.children).length;c<h;c++)s(n[c],i,r,a)}}var l=new m,u=new i,p=new n,d=new n(r,r),f=new a,g=new a,v=Array(4),y=Array(4),x={},b={0:1,1:0,2:2},_=[new a(1,0,0),new a(-1,0,0),new a(0,0,1),new a(0,0,-1),new a(0,1,0),new a(0,-1,0)],w=[new a(0,1,0),new a(0,1,0),new a(0,1,0),new a(0,1,0),new a(0,0,1),new a(0,0,-1)],M=[new c,new c,new c,new c,new c,new c];for(r=0;4!==r;++r){var E=0!=(1&r),T=0!=(2&r),S=new Wt({depthPacking:3201,morphTargets:E,skinning:T});v[r]=S,E=new Xt({morphTargets:E,skinning:T}),y[r]=E}var A=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1,this.render=function(e,n,i){if(!1!==A.enabled&&(!1!==A.autoUpdate||!1!==A.needsUpdate)&&0!==e.length){var r=t.state;r.disable(t.context.BLEND),r.buffers.color.setClear(1,1,1,1),r.buffers.depth.setTest(!0),r.setScissorTest(!1);for(var a,o=0,c=e.length;o<c;o++){var m=e[o];a=m.shadow;var v=m&&m.isPointLight;if(void 0===a)console.warn("THREE.WebGLShadowMap:",m,"has no shadow.");else{var y=a.camera;if(p.copy(a.mapSize),p.min(d),v){var x=p.x,b=p.y;M[0].set(2*x,b,x,b),M[1].set(0,b,x,b),M[2].set(3*x,b,x,b),M[3].set(x,b,x,b),M[4].set(3*x,0,x,b),M[5].set(x,0,x,b),p.x*=4,p.y*=2}for(null===a.map&&(a.map=new h(p.x,p.y,{minFilter:1003,magFilter:1003,format:1023}),a.map.texture.name=m.name+".shadowMap",y.updateProjectionMatrix()),a.isSpotLightShadow&&a.update(m),x=a.map,b=a.matrix,g.setFromMatrixPosition(m.matrixWorld),y.position.copy(g),v?(a=6,b.makeTranslation(-g.x,-g.y,-g.z)):(a=1,f.setFromMatrixPosition(m.target.matrixWorld),y.lookAt(f),y.updateMatrixWorld(),b.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),b.multiply(y.projectionMatrix),b.multiply(y.matrixWorldInverse)),t.setRenderTarget(x),t.clear(),m=0;m<a;m++)v&&(f.copy(y.position),f.add(_[m]),y.up.copy(w[m]),y.lookAt(f),y.updateMatrixWorld(),r.viewport(M[m])),u.multiplyMatrices(y.projectionMatrix,y.matrixWorldInverse),l.setFromMatrix(u),s(n,i,y,v)}}A.needsUpdate=!1}}}function Yt(t,e,n){return{convert:function(i){if(1e3===i)return t.REPEAT;if(1001===i)return t.CLAMP_TO_EDGE;if(1002===i)return t.MIRRORED_REPEAT;if(1003===i)return t.NEAREST;if(1004===i)return t.NEAREST_MIPMAP_NEAREST;if(1005===i)return t.NEAREST_MIPMAP_LINEAR;if(1006===i)return t.LINEAR;if(1007===i)return t.LINEAR_MIPMAP_NEAREST;if(1008===i)return t.LINEAR_MIPMAP_LINEAR;if(1009===i)return t.UNSIGNED_BYTE;if(1017===i)return t.UNSIGNED_SHORT_4_4_4_4;if(1018===i)return t.UNSIGNED_SHORT_5_5_5_1;if(1019===i)return t.UNSIGNED_SHORT_5_6_5;if(1010===i)return t.BYTE;if(1011===i)return t.SHORT;if(1012===i)return t.UNSIGNED_SHORT;if(1013===i)return t.INT;if(1014===i)return t.UNSIGNED_INT;if(1015===i)return t.FLOAT;if(1016===i){if(n.isWebGL2)return t.HALF_FLOAT;var r=e.get("OES_texture_half_float");if(null!==r)return r.HALF_FLOAT_OES}if(1021===i)return t.ALPHA;if(1022===i)return t.RGB;if(1023===i)return t.RGBA;if(1024===i)return t.LUMINANCE;if(1025===i)return t.LUMINANCE_ALPHA;if(1026===i)return t.DEPTH_COMPONENT;if(1027===i)return t.DEPTH_STENCIL;if(100===i)return t.FUNC_ADD;if(101===i)return t.FUNC_SUBTRACT;if(102===i)return t.FUNC_REVERSE_SUBTRACT;if(200===i)return t.ZERO;if(201===i)return t.ONE;if(202===i)return t.SRC_COLOR;if(203===i)return t.ONE_MINUS_SRC_COLOR;if(204===i)return t.SRC_ALPHA;if(205===i)return t.ONE_MINUS_SRC_ALPHA;if(206===i)return t.DST_ALPHA;if(207===i)return t.ONE_MINUS_DST_ALPHA;if(208===i)return t.DST_COLOR;if(209===i)return t.ONE_MINUS_DST_COLOR;if(210===i)return t.SRC_ALPHA_SATURATE;if((33776===i||33777===i||33778===i||33779===i)&&null!==(r=e.get("WEBGL_compressed_texture_s3tc"))){if
755(33776===i)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(33777===i)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(33778===i)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(33779===i)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((35840===i||35841===i||35842===i||35843===i)&&null!==(r=e.get("WEBGL_compressed_texture_pvrtc"))){if(35840===i)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(35841===i)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(35842===i)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(35843===i)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(36196===i&&null!==(r=e.get("WEBGL_compressed_texture_etc1")))return r.COMPRESSED_RGB_ETC1_WEBGL;if((37808===i||37809===i||37810===i||37811===i||37812===i||37813===i||37814===i||37815===i||37816===i||37817===i||37818===i||37819===i||37820===i||37821===i)&&null!==(r=e.get("WEBGL_compressed_texture_astc")))return i;if(103===i||104===i){if(n.isWebGL2){if(103===i)return t.MIN;if(104===i)return t.MAX}if(null!==(r=e.get("EXT_blend_minmax"))){if(103===i)return r.MIN_EXT;if(104===i)return r.MAX_EXT}}if(1020===i){if(n.isWebGL2)return t.UNSIGNED_INT_24_8;if(null!==(r=e.get("WEBGL_depth_texture")))return r.UNSIGNED_INT_24_8_WEBGL}return 0}}}function Jt(){_.call(this),this.type="Group"}function Zt(t,e,n,i){w.call(this),this.type="PerspectiveCamera",this.fov=void 0!==t?t:50,this.zoom=1,this.near=void 0!==n?n:.1,this.far=void 0!==i?i:2e3,this.focus=10,this.aspect=void 0!==e?e:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}function Qt(t){Zt.call(this),this.cameras=t||[]}function Kt(t){function e(){return null!==s&&!0===s.isPresenting}function n(){if(e()){var n=s.getEyeParameters("left"),i=n.renderWidth;n=n.renderHeight,w=t.getPixelRatio(),_=t.getSize(),t.setDrawingBufferSize(2*i,n,1),E.start()}else o.enabled&&(t.setDrawingBufferSize(_.width,_.height,w),E.stop())}var o=this,s=null,h=null,l=null,u=[],p=new i,d=new i;"undefined"!=typeof window&&"VRFrameData"in window&&(h=new window.VRFrameData,window.addEventListener("vrdisplaypresentchange",n,!1));var f=new i,m=new r,g=new a,y=new Zt;y.bounds=new c(0,0,.5,1),y.layers.enable(1);var x=new Zt;x.bounds=new c(.5,0,.5,1),x.layers.enable(2);var b=new Qt([y,x]);b.layers.enable(1),b.layers.enable(2);var _,w,M=[];this.enabled=!1,this.userHeight=1.6,this.getController=function(t){var e=u[t];return void 0===e&&((e=new Jt).matrixAutoUpdate=!1,e.visible=!1,u[t]=e),e},this.getDevice=function(){return s},this.setDevice=function(t){void 0!==t&&(s=t),E.setContext(t)},this.setPoseTarget=function(t){void 0!==t&&(l=t)},this.getCamera=function(t){if(null===s)return t.position.set(0,o.userHeight,0),t;s.depthNear=t.near,s.depthFar=t.far,s.getFrameData(h);var e=s.stageParameters;e?p.fromArray(e.sittingToStandingTransform):p.makeTranslation(0,o.userHeight,0),e=h.pose;var n=null!==l?l:t;if(n.matrix.copy(p),n.matrix.decompose(n.position,n.quaternion,n.scale),null!==e.orientation&&(m.fromArray(e.orientation),n.quaternion.multiply(m)),null!==e.position&&(m.setFromRotationMatrix(p),g.fromArray(e.position),g.applyQuaternion(m),n.position.add(g)),n.updateMatrixWorld(),!1===s.isPresenting)return t;y.near=t.near,x.near=t.near,y.far=t.far,x.far=t.far,b.matrixWorld.copy(t.matrixWorld),b.matrixWorldInverse.copy(t.matrixWorldInverse),y.matrixWorldInverse.fromArray(h.leftViewMatrix),x.matrixWorldInverse.fromArray(h.rightViewMatrix),d.getInverse(p),y.matrixWorldInverse.multiply(d),x.matrixWorldInverse.multiply(d),null!==(t=n.parent)&&(f.getInverse(t.matrixWorld),y.matrixWorldInverse.multiply(f),x.matrixWorldInverse.multiply(f)),y.matrixWorld.getInverse(y.matrixWorldInverse),x.matrixWorld.getInverse(x.matrixWorldInverse),y.projectionMatrix.fromArray(h.leftProjectionMatrix),x.projectionMatrix.fromArray(h.rightProjectionMatrix),b.projectionMatrix.copy(y.projectionMatrix),(t=s.getLayers()).length&&(null!==(t=t[0]).leftBounds&&4===t.leftBounds.length&&y.bounds.fromArray(t.leftBounds),null!==t.rightBounds&&4===t.rightBounds.length&&x.bounds.fromArray(t.rightBounds));t:for(t=0;t<u.length;t++){e=u[t];e:{n=t;for(var i=navigator.getGamepads&&navigator.getGamepads(),r=0,a=0,c=i.length;r<c;r++){var v=i[r];if(v&&("Daydream Controller"===v.id||"Gear VR Controller"===v.id||"Oculus Go Controller"===v.id||"OpenVR Gamepad"===v.id||v.id.startsWith("Oculus Touch")||v.id.startsWith("Spatial Controller"))){if(a===n){n=v;break e}a++}}n=void 0}if(void 0!==n&&void 0!==n.pose){if(null===n.pose)break t;!1===(i=n.pose).hasPosition&&e.position.set(.2,-.6,-.05),null!==i.position&&e.position.fromArray(i.position),null!==i.orientation&&e.quaternion.fromArray(i.orientation),e.matrix.compose(e.position,e.quaternion,e.scale),e.matrix.premultiply(
755p),e.matrix.decompose(e.position,e.quaternion,e.scale),e.matrixWorldNeedsUpdate=!0,e.visible=!0,i="Daydream Controller"===n.id?0:1,M[t]!==n.buttons[i].pressed&&(M[t]=n.buttons[i].pressed,!0===M[t]?e.dispatchEvent({type:"selectstart"}):(e.dispatchEvent({type:"selectend"}),e.dispatchEvent({type:"select"})))}else e.visible=!1}return b},this.getStandingMatrix=function(){return p},this.isPresenting=e;var E=new v;this.setAnimationLoop=function(t){E.setAnimationLoop(t)},this.submitFrame=function(){e()&&s.submitFrame()},this.dispose=function(){"undefined"!=typeof window&&window.removeEventListener("vrdisplaypresentchange",n)}}function $t(t){function e(){return null!==s&&null!==h}function n(t){var e=u[p.indexOf(t.inputSource)];e&&e.dispatchEvent({type:t.type})}function i(){t.setFramebuffer(null),y.stop()}function r(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.getInverse(t.matrixWorld)}var a=t.context,o=null,s=null,h=null,l=null,u=[],p=[],d=new Zt;d.layers.enable(1),d.viewport=new c;var f=new Zt;f.layers.enable(2),f.viewport=new c;var m=new Qt([d,f]);m.layers.enable(1),m.layers.enable(2),this.enabled=!1,this.getController=function(t){var e=u[t];return void 0===e&&((e=new Jt).matrixAutoUpdate=!1,e.visible=!1,u[t]=e),e},this.getDevice=function(){return o},this.setDevice=function(t){void 0!==t&&(o=t),t instanceof XRDevice&&a.setCompatibleXRDevice(t)},this.setSession=function(e,r){null!==(s=e)&&(s.addEventListener("select",n),s.addEventListener("selectstart",n),s.addEventListener("selectend",n),s.addEventListener("end",i),s.baseLayer=new XRWebGLLayer(s,a),s.requestFrameOfReference(r.frameOfReferenceType).then(function(e){h=e,t.setFramebuffer(s.baseLayer.framebuffer),y.setContext(s),y.start()}),p=s.getInputSources(),s.addEventListener("inputsourceschange",function(){p=s.getInputSources(),console.log(p)}))},this.getCamera=function(t){if(e()){var n=t.parent,i=m.cameras;r(m,n);for(var a=0;a<i.length;a++)r(i[a],n);for(t.matrixWorld.copy(m.matrixWorld),a=0,n=(t=t.children).length;a<n;a++)t[a].updateMatrixWorld(!0);return m}return t},this.isPresenting=e;var g=null,y=new v;y.setAnimationLoop(function(t,e){if(null!==(l=e.getDevicePose(h)))for(var n=s.baseLayer,i=e.views,r=0;r<i.length;r++){var a=i[r],o=n.getViewport(a),c=l.getViewMatrix(a),d=m.cameras[r];d.matrix.fromArray(c).getInverse(d.matrix),d.projectionMatrix.fromArray(a.projectionMatrix),d.viewport.set(o.x,o.y,o.width,o.height),0===r&&(m.matrix.copy(d.matrix),m.projectionMatrix.copy(d.projectionMatrix))}for(r=0;r<u.length;r++)n=u[r],(i=p[r])&&null!==(i=e.getInputPose(i,h))?(n.matrix.elements=i.pointerMatrix,n.matrix.decompose(n.position,n.rotation,n.scale),n.visible=!0):n.visible=!1;g&&g(t)}),this.setAnimationLoop=function(t){g=t},this.dispose=function(){},this.getStandingMatrix=function(){return console.warn("THREE.WebXRManager: getStandingMatrix() is no longer needed."),new THREE.Matrix4},this.submitFrame=function(){}}function te(t){var e;function n(){O=new function(t){var e={};return{get:function(n){if(void 0!==e[n])return e[n];switch(n){case"WEBGL_depth_texture":var i=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=t.getExtension(n)}return null===i&&console.warn("THREE.WebGLRenderer: "+n+" extension not supported."),e[n]=i}}}(Tt),(I=new function(t,e,n){function i(e){if("highp"===e){if(0<t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision&&0<t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision)return"highp";e="mediump"}return"mediump"===e&&0<t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision&&0<t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision?"mediump":"lowp"}var r,a="undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext,o=void 0!==n.precision?n.precision:"highp",s=i(o);s!==o&&(console.warn("THREE.WebGLRenderer:",o,"not supported, using",s,"instead."),o=s),n=!0===n.logarithmicDepthBuffer,s=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);var c=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=t.getParameter(t.MAX_TEXTURE_SIZE),l=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),u=t.getParameter(t.MAX_VERTEX_ATTRIBS),p=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),d=t.getParameter(t.MAX_VARYING_VECTORS),f=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),m=0<c,g=a||!!e.get("OES_texture_float");return{isWebGL2:a,getMaxAnisotropy:function(){if(void 0!==r)return r;var n=e.get("EXT_texture_filter_anisotropic");return r=null!==n?t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:i,precision:o,logarithmicDepthBuffer:n,maxTextures:s,maxVertexTextures:c,maxTextureSize:h,maxCubemapSize:l,maxAttributes:u,maxVertexUniforms:p,maxVaryings:d,maxFragmentUniforms:f,vertexTextures:m,floatFragmentTextures:g,floatVertexTextures:m&&g}}(Tt,O,t)).isWebGL2||(O.get("WEBGL_depth_texture"),O.get("OES_texture_float"),O.get("OES_texture_half_float"),O.get("OES_texture_half_float_linear"),O.get("OES_standard_derivatives"),O.get("OES_element_index_uint"),O.get("ANGLE_instanced_arrays")),O.get("OES_texture_float_linear"),Y=new Yt(Tt,O,I),(N=new function(t,e,n,i){function r(e,n,i){var r=new 
755Uint8Array(4),a=t.createTexture();for(t.bindTexture(e,a),t.texParameteri(e,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(e,t.TEXTURE_MAG_FILTER,t.NEAREST),e=0;e<i;e++)t.texImage2D(n+e,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,r);return a}function a(n,r){y[n]=1,0===x[n]&&(t.enableVertexAttribArray(n),x[n]=1),b[n]!==r&&((i.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,r),b[n]=r)}function o(e){!0!==_[e]&&(t.enable(e),_[e]=!0)}function s(e){!1!==_[e]&&(t.disable(e),_[e]=!1)}function h(e,i,r,a,c,h,l,u){if(0!==e?o(t.BLEND):s(t.BLEND),5!==e){if(e!==E||u!==P)switch(e){case 2:u?(t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.ONE,t.ONE,t.ONE,t.ONE)):(t.blendEquation(t.FUNC_ADD),t.blendFunc(t.SRC_ALPHA,t.ONE));break;case 3:u?(t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.ZERO,t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ONE_MINUS_SRC_ALPHA)):(t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ZERO,t.ONE_MINUS_SRC_COLOR));break;case 4:u?(t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.ZERO,t.SRC_COLOR,t.ZERO,t.SRC_ALPHA)):(t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ZERO,t.SRC_COLOR));break;default:u?(t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA)):(t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA))}C=R=L=A=S=T=null}else c=c||i,h=h||r,l=l||a,i===T&&c===L||(t.blendEquationSeparate(n.convert(i),n.convert(c)),T=i,L=c),r===S&&a===A&&h===R&&l===C||(t.blendFuncSeparate(n.convert(r),n.convert(a),n.convert(h),n.convert(l)),S=r,A=a,R=h,C=l);E=e,P=u}function l(e){O!==e&&(e?t.frontFace(t.CW):t.frontFace(t.CCW),O=e)}function u(e){0!==e?(o(t.CULL_FACE),e!==I&&(1===e?t.cullFace(t.BACK):2===e?t.cullFace(t.FRONT):t.cullFace(t.FRONT_AND_BACK))):s(t.CULL_FACE),I=e}function p(e,n,i){e?(o(t.POLYGON_OFFSET_FILL),(D!==n||U!==i)&&(t.polygonOffset(n,i),D=n,U=i)):s(t.POLYGON_OFFSET_FILL)}function d(e){void 0===e&&(e=t.TEXTURE0+B-1),z!==e&&(t.activeTexture(e),z=e)}var f=new function(){var e=!1,n=new c,i=null,r=new c(0,0,0,0);return{setMask:function(n){i===n||e||(t.colorMask(n,n,n,n),i=n)},setLocked:function(t){e=t},setClear:function(e,i,a,o,s){!0===s&&(e*=o,i*=o,a*=o),n.set(e,i,a,o),!1===r.equals(n)&&(t.clearColor(e,i,a,o),r.copy(n))},reset:function(){e=!1,i=null,r.set(-1,0,0,0)}}},m=new function(){var e=!1,n=null,i=null,r=null;return{setTest:function(e){e?o(t.DEPTH_TEST):s(t.DEPTH_TEST)},setMask:function(i){n===i||e||(t.depthMask(i),n=i)},setFunc:function(e){if(i!==e){if(e)switch(e){case 0:t.depthFunc(t.NEVER);break;case 1:t.depthFunc(t.ALWAYS);break;case 2:t.depthFunc(t.LESS);break;case 3:t.depthFunc(t.LEQUAL);break;case 4:t.depthFunc(t.EQUAL);break;case 5:t.depthFunc(t.GEQUAL);break;case 6:t.depthFunc(t.GREATER);break;case 7:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}else t.depthFunc(t.LEQUAL);i=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,r=i=n=null}}},g=new function(){var e=!1,n=null,i=null,r=null,a=null,c=null,h=null,l=null,u=null;return{setTest:function(e){e?o(t.STENCIL_TEST):s(t.STENCIL_TEST)},setMask:function(i){n===i||e||(t.stencilMask(i),n=i)},setFunc:function(e,n,o){i===e&&r===n&&a===o||(t.stencilFunc(e,n,o),i=e,r=n,a=o)},setOp:function(e,n,i){c===e&&h===n&&l===i||(t.stencilOp(e,n,i),c=e,h=n,l=i)},setLocked:function(t){e=t},setClear:function(e){u!==e&&(t.clearStencil(e),u=e)},reset:function(){e=!1,u=l=h=c=a=r=i=n=null}}},v=t.getParameter(t.MAX_VERTEX_ATTRIBS),y=new Uint8Array(v),x=new Uint8Array(v),b=new Uint8Array(v),_={},w=null,M=null,E=null,T=null,S=null,A=null,L=null,R=null,C=null,P=!1,O=null,I=null,N=null,D=null,U=null,B=t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS),F=!1;v=0,-1!==(v=t.getParameter(t.VERSION)).indexOf("WebGL")?(v=parseFloat(/^WebGL ([0-9])/.exec(v)[1]),F=1<=v):-1!==v.indexOf("OpenGL ES")&&(v=parseFloat(/^OpenGL ES ([0-9])/.exec(v)[1]),F=2<=v);var z=null,G={},H=new c,V=new c,k={};return k[t.TEXTURE_2D]=r(t.TEXTURE_2D,t.TEXTURE_2D,1),k[t.TEXTURE_CUBE_MAP]=r
755(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),f.setClear(0,0,0,1),m.setClear(1),g.setClear(0),o(t.DEPTH_TEST),m.setFunc(3),l(!1),u(1),o(t.CULL_FACE),o(t.BLEND),h(1),{buffers:{color:f,depth:m,stencil:g},initAttributes:function(){for(var t=0,e=y.length;t<e;t++)y[t]=0},enableAttribute:function(t){a(t,0)},enableAttributeAndDivisor:a,disableUnusedAttributes:function(){for(var e=0,n=x.length;e!==n;++e)x[e]!==y[e]&&(t.disableVertexAttribArray(e),x[e]=0)},enable:o,disable:s,getCompressedTextureFormats:function(){if(null===w&&(w=[],e.get("WEBGL_compressed_texture_pvrtc")||e.get("WEBGL_compressed_texture_s3tc")||e.get("WEBGL_compressed_texture_etc1")||e.get("WEBGL_compressed_texture_astc")))for(var n=t.getParameter(t.COMPRESSED_TEXTURE_FORMATS),i=0;i<n.length;i++)w.push(n[i]);return w},useProgram:function(e){return M!==e&&(t.useProgram(e),M=e,!0)},setBlending:h,setMaterial:function(e,n){2===e.side?s(t.CULL_FACE):o(t.CULL_FACE);var i=1===e.side;n&&(i=!i),l(i),1===e.blending&&!1===e.transparent?h(0):h(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.premultipliedAlpha),m.setFunc(e.depthFunc),m.setTest(e.depthTest),m.setMask(e.depthWrite),f.setMask(e.colorWrite),p(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits)},setFlipSided:l,setCullFace:u,setLineWidth:function(e){e!==N&&(F&&t.lineWidth(e),N=e)},setPolygonOffset:p,setScissorTest:function(e){e?o(t.SCISSOR_TEST):s(t.SCISSOR_TEST)}
755,activeTexture:d,bindTexture:function(e,n){null===z&&d();var i=G[z];void 0===i&&(i={type:void 0,texture:void 0},G[z]=i),i.type===e&&i.texture===n||(t.bindTexture(e,n||k[e]),i.type=e,i.texture=n)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},scissor:function(e){!1===H.equals(e)&&(t.scissor(e.x,e.y,e.z,e.w),H.copy(e))},viewport:function(e){!1===V.equals(e)&&(t.viewport(e.x,e.y,e.z,e.w),V.copy(e))},reset:function(){for(var e=0;e<x.length;e++)1===x[e]&&(t.disableVertexAttribArray(e),x[e]=0);_={},z=w=null,G={},I=O=E=M=null,f.reset(),m.reset(),g.reset()}}}(Tt,O,Y,I)).scissor(lt.copy(vt).multiplyScalar(mt)),N.viewport(ht.copy(gt).multiplyScalar(mt)),D=new function(t){var e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(n,i,r){switch(r=r||1,e.calls++,i){case t.TRIANGLES:e.triangles+=n/3*r;break;case t.TRIANGLE_STRIP:case t.TRIANGLE_FAN:e.triangles+=r*(n-2);break;case t.LINES:e.lines+=n/2*r;break;case t.LINE_STRIP:e.lines+=r*(n-1);break;case t.LINE_LOOP:e.lines+=r*n;break;case t.POINTS:e.points+=r*n;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",i)}}}}(Tt),U=new function(){var t=new WeakMap;return{get:function(e){var n=t.get(e);return void 0===n&&(n={},t.set(e,n)),n},remove:function(e){t.delete(e)},update:function(e,n,i){t.get(e)[n]=i},dispose:function(){t=new WeakMap}}},B=new function(t,e,n,i,r,a,o){function s(t,e){if(t.width>e||t.height>e){if("data"in t)return void console.warn("THREE.WebGLRenderer: image in DataTexture is too big ("+t.width+"x"+t.height+").");e/=Math.max(t.width,t.height);var n=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return n.width=Math.floor(t.width*e),n.height=Math.floor(t.height*e),n.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height),console.warn("THREE.WebGLRenderer: image is too big ("+t.width+"x"+t.height+"). Resized to "+n.width+"x"+n.height),n}return t}function c(t){return Or.isPowerOfTwo(t.width)&&Or.isPowerOfTwo(t.height)}function h(t,e){return t.generateMipmaps&&e&&1003!==t.minFilter&&1006!==t.minFilter}function l(e,n,r,a){t.generateMipmap(e),i.get(n).__maxMipLevel=Math.log(Math.max(r,a))*Math.LOG2E}function u(e,n){if(!r.isWebGL2)return e;if(e===t.RGB){if(n===t.FLOAT)return t.RGB32F;if(n===t.HALF_FLOAT)return t.RGB16F;if(n===t.UNSIGNED_BYTE)return t.RGB8}if(e===t.RGBA){if(n===t.FLOAT)return t.RGBA32F;if(n===t.HALF_FLOAT)return t.RGBA16F;if(n===t.UNSIGNED_BYTE)return t.RGBA8}return e}function p(e){return 1003===e||1004===e||1005===e?t.NEAREST:t.LINEAR}function d(e){(e=e.target).removeEventListener("dispose",d);t:{var n=i.get(e);if(e.image&&n.__image__webglTextureCube)t.deleteTexture(n.__image__webglTextureCube);else{if(void 0===n.__webglInit)break t;t.deleteTexture(n.__webglTexture)}i.remove(e)}e.isVideoTexture&&delete b[e.id],o.memory.textures--}function f(e){(e=e.target).removeEventListener("dispose",f);var n=i.get(e),r=i.get(e.texture);if(e){if(void 0!==r.__webglTexture&&t.deleteTexture(r.__webglTexture),e.depthTexture&&e.depthTexture.dispose(),e.isWebGLRenderTargetCube)for(r=0;6>r;r++)t.deleteFramebuffer(n.__webglFramebuffer[r]),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer[r]);else t.deleteFramebuffer(n.__webglFramebuffer),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer);i.remove(e.texture),i.remove(e)}o.memory.textures--}function m(e,p){var f=i.get(e);if(e.isVideoTexture){var m=e.id,v=o.render.frame;b[m]!==v&&(b[m]=v,e.update())}if(0<e.version&&f.__version!==e.version)if(void 0===(m=e.image))console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==m.complete){void 0===f.__webglInit&&(f.__webglInit=!0,e.addEventListener("dispose",d),f.__webglTexture=t.createTexture(),o.memory.textures++),n.activeTexture(t.TEXTURE0+p),n.bindTexture(t.TEXTURE_2D,f.__webglTexture),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,e.unpackAlignment),p=s(e.image,r.maxTextureSize),!r.isWebGL2&&(1001!==e.wrapS||1001!==e.wrapT||1003!==e.minFilter&&1006!==e.minFilter)&&!1===c(p)&&(p instanceof HTMLImageElement||p instanceof HTMLCanvasElement||p instanceof ImageBitmap)&&(void 0===x&&(x=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),x.width=Or.floorPowerOfTwo(p.width),x.height=Or.floorPowerOfTwo(p.height),x.getContext("2d").drawImage(p,0,0,x.width,x.height),console.warn("THREE.WebGLRenderer: image is not power of two ("+p.width+"x"+p.height+"). Resized to "+x.width+"x"+x.height),p=x),m=c(p),v=a.convert(e.format);var y=a.convert(e.type),_=u(v,y);g(t.TEXTURE_2D,e,m);var w=e.mipmaps;if(e.isDepthTexture){if(_=t.DEPTH_COMPONENT,1015===e.type){if(!r.isWebGL2)throw Error("Float Depth Texture only supported in WebGL2.0");_=t.DEPTH_COMPONENT32F}else r.isWebGL2&&(_=t.DEPTH_COMPONENT16);1026===e.format&&_===t.DEPTH_COMPONENT&&1012!==e.type&&1014!==e.type&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),e.type=1012,y=a.c
755onvert(e.type)),1027===e.format&&(_=t.DEPTH_STENCIL,1020!==e.type&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),e.type=1020,y=a.convert(e.type))),n.texImage2D(t.TEXTURE_2D,0,_,p.width,p.height,0,v,y,null)}else if(e.isDataTexture)if(0<w.length&&m){for(var M=0,E=w.length;M<E;M++){var T=w[M];n.texImage2D(t.TEXTURE_2D,M,_,T.width,T.height,0,v,y,T.data)}e.generateMipmaps=!1,f.__maxMipLevel=w.length-1}else n.texImage2D(t.TEXTURE_2D,0,_,p.width,p.height,0,v,y,p.data),f.__maxMipLevel=0;else if(e.isCompressedTexture){for(M=0,E=w.length;M<E;M++)T=w[M],1023!==e.format&&1022!==e.format?-1<n.getCompressedTextureFormats().indexOf(v)?n.compressedTexImage2D(t.TEXTURE_2D,M,_,T.width,T.height,0,T.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):n.texImage2D(t.TEXTURE_2D,M,_,T.width,T.height,0,v,y,T.data);f.__maxMipLevel=w.length-1}else if(0<w.length&&m){for(M=0,E=w.length;M<E;M++)T=w[M],n.texImage2D(t.TEXTURE_2D,M,_,v,y,T);e.generateMipmaps=!1,f.__maxMipLevel=w.length-1}else n.texImage2D(t.TEXTURE_2D,0,_,v,y,p),f.__maxMipLevel=0;return h(e,m)&&l(t.TEXTURE_2D,e,p.width,p.height),f.__version=e.version,void(e.onUpdate&&e.onUpdate(e))}console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}n.activeTexture(t.TEXTURE0+p),n.bindTexture(t.TEXTURE_2D,f.__webglTexture)}function g(n,o,s){s?(t.texParameteri(n,t.TEXTURE_WRAP_S,a.convert(o.wrapS)),t.texParameteri(n,t.TEXTURE_WRAP_T,a.convert(o.wrapT)),t.texParameteri(n,t.TEXTURE_MAG_FILTER,a.convert(o.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,a.convert(o.minFilter))):(t.texParameteri(n,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(n,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),1001===o.wrapS&&1001===o.wrapT||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(n,t.TEXTURE_MAG_FILTER,p(o.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,p(o.minFilter)),1003!==o.minFilter&&1006!==o.minFilter&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!(s=e.get("EXT_texture_filter_anisotropic"))||1015===o.type&&null===e.get("OES_texture_float_linear")||1016===o.type&&null===(r.isWebGL2||e.get("OES_texture_half_float_linear"))||!(1<o.anisotropy||i.get(o).__currentAnisotropy)||(t.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,r.getMaxAnisotropy())),i.get(o).__currentAnisotropy=o.anisotropy)}function v(e,r,o,s){var c=a.convert(r.texture.format),h=a.convert(r.texture.type),l=u(c,h);n.texImage2D(s,0,l,r.width,r.height,0,c,h,null),t.bindFramebuffer(t.FRAMEBUFFER,e),t.framebufferTexture2D(t.FRAMEBUFFER,o,s,i.get(r.texture).__webglTexture,0),t.bindFramebuffer(t.FRAMEBUFFER,null)}function y(e,n){t.bindRenderbuffer(t.RENDERBUFFER,e),n.depthBuffer&&!n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e)):n.depthBuffer&&n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e)):t.renderbufferStorage(t.RENDERBUFFER,t.RGBA4,n.width,n.height),t.bindRenderbuffer(t.RENDERBUFFER,null)}var x,b={};this.setTexture2D=m,this.setTextureCube=function(e,p){var f=i.get(e);if(6===e.image.length)if(0<e.version&&f.__version!==e.version){f.__image__webglTextureCube||(e.addEventListener("dispose",d),f.__image__webglTextureCube=t.createTexture(),o.memory.textures++),n.activeTexture(t.TEXTURE0+p),n.bindTexture(t.TEXTURE_CUBE_MAP,f.__image__webglTextureCube),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e.flipY),p=e&&e.isCompressedTexture;for(var m=e.image[0]&&e.image[0].isDataTexture,v=[],y=0;6>y;y++)v[y]=p||m?m?e.image[y].image:e.image[y]:s(e.image[y],r.maxCubemapSize);var x=v[0],b=c(x),_=a.convert(e.format),w=a.convert(e.type),M=u(_,w);for(g(t.TEXTURE_CUBE_MAP,e,b),y=0;6>y;y++)if(p)for(var E,T=v[y].mipmaps,S=0,A=T.length;S<A;S++)E=T[S],1023!==e.format&&1022!==e.format?-1<n.getCompressedTextureFormats().indexOf(_)?n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+y,S,M,E.width,E.height,0,E.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+y,S,M,E.width,E.height,0,_,w,E.data);else m?n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+y,0,M,v[y].width,v[y].height,0,_,w,v[y].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+y,0,M,_,w,v[y]);f.__maxMipLevel=p?T.length-1:0,h(e,b)&&l(t.TEXTURE_CUBE_MAP,e,x.width,x.height),f.__version=e.version,e.onUpdate&&e.onUpdate(e)}else n.activeTexture(t.TEXTURE0+p),n.bindTexture(t.TEXTURE_CUBE_MAP,f.__image__webglTextureCube)},this.setTextureCubeDynamic=function(e,r){n.activeTexture(t.TEXTURE0+r),n.bindTexture(t.TEXTURE_CUBE_MAP,i.get(e).__webglTexture)},this.setupRenderTarget=function(e){var r=i.get(e),a=i.get(e.texture);e.addEventListener("dispose",f),a.__webglTexture=t.createTexture(),o.memory.textures++;var s=!0===e.isWebGLRenderTargetCube,u=c(e);if(s){r.__webglFramebuffer=[];for(var p=0;6>p;p++)r.__webglFramebuffer[p]=t.createFramebuffer()}else r.__webglFramebuffer=t.createFramebuffer();if(s){for(n.bindTexture(t.TEXTURE_CUBE_MAP,a.__webglTexture),g(t.TEXTURE_CUBE_MAP,e.texture,u),p=0;6>p;p++)v(r.__webglFramebuffer[p],e,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+p);h(e.texture,u)&&l(t.TEXTURE_CUBE_MAP,e.texture,e.width,e.height),n.bindTexture(t.TEXTURE_CUBE_MAP,null)}else n.bindTexture(t.TEXTURE_2D,a.__webglTexture),g(t.TEXTURE_2D,e.texture,u),v(r.__webglFramebuffer,e,t.COLOR_ATTACHMENT0,t.TEXTURE_2D),h(e.texture,u)&&l(t.TEXTURE_2D,e.texture,e.width,e.height),n.bindTexture(t.TEXTURE_2D,null);if(e.depthBuffer){if(r=i.get(e),a=!0===e.isWebGLRenderTargetCube,e.depthTexture){if(a)throw Error("target.depthTexture not supported in Cube render targets");if(e&&e.isWebGLRenderTargetCube)throw Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(t.FRAMEBUFFER,r.__webglFramebuffer),!e.depthTexture||!e.depthTexture.isDepthTexture)throw Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");
755if(i.get(e.depthTexture).__webglTexture&&e.depthTexture.image.width===e.width&&e.depthTexture.image.height===e.height||(e.depthTexture.image.width=e.width,e.depthTexture.image.height=e.height,e.depthTexture.needsUpdate=!0),m(e.depthTexture,0),r=i.get(e.depthTexture).__webglTexture,1026===e.depthTexture.format)t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,r,0);else{if(1027!==e.depthTexture.format)throw Error("Unknown depthTexture format");t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,r,0)}}else if(a)for(r.__webglDepthbuffer=[],a=0;6>a;a++)t.bindFramebuffer(t.FRAMEBUFFER,r.__webglFramebuffer[a]),r.__webglDepthbuffer[a]=t.createRenderbuffer(),y(r.__webglDepthbuffer[a],e);else t.bindFramebuffer(t.FRAMEBUFFER,r.__webglFramebuffer),r.__webglDepthbuffer=t.createRenderbuffer(),y(r.__webglDepthbuffer,e);t.bindFramebuffer(t.FRAMEBUFFER,null)}},this.updateRenderTargetMipmap=function(e){var r=e.texture,a=c(e);if(h(r,a)){a=e.isWebGLRenderTargetCube?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D;var o=i.get(r).__webglTexture;n.bindTexture(a,o),l(a,r,e.width,e.height),n.bindTexture(a,null)}}}(Tt,O,N,U,I,Y,D),F=new y(Tt),z=new Q(Tt,F,D),G=new function(t,e){var n={};return{update:function(i){var r=e.render.frame,a=i.geometry,o=t.get(i,a);return n[o.id]!==r&&(a.isGeometry&&o.updateFromObject(i),t.update(o),n[o.id]=r),o},dispose:function(){n={}}}}(z,D),W=new function(t){var e={},n=new Float32Array(8);return{update:function(i,r,a,o){var s=i.morphTargetInfluences,c=s.length;if(void 0===(i=e[r.id])){i=[];for(var h=0;h<c;h++)i[h]=[h,0];e[r.id]=i}var l=a.morphTargets&&r.morphAttributes.position;for(a=a.morphNormals&&r.morphAttributes.normal,h=0;h<c;h++){var u=i[h];0!==u[1]&&(l&&r.removeAttribute("morphTarget"+h),a&&r.removeAttribute("morphNormal"+h))}for(h=0;h<c;h++)(u=i[h])[0]=h,u[1]=s[h];for(i.sort(K),h=0;8>h;h++)(u=i[h])&&(s=u[0],c=u[1])?(l&&r.addAttribute("morphTarget"+h,l[s]),a&&r.addAttribute("morphNormal"+h,a[s]),n[h]=c):n[h]=0;o.getUniforms().setValue(t,"morphTargetInfluences",n)}}}
755(Tt),H=new function(t,e,n){function i(t,e){if(t)t.isTexture?n=t.encoding:t.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),n=t.texture.encoding);else var n=3e3;return 3e3===n&&e&&(n=3007),n}var r=[],a={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"phong",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},o="precision supportsVertexTextures map mapEncoding envMap envMapMode envMapEncoding lightMap aoMap emissiveMap emissiveMapEncoding bumpMap normalMap objectSpaceNormalMap displacementMap specularMap roughnessMap metalnessMap gradientMap alphaMap combine vertexColors fog useFog fogExp flatShading sizeAttenuation logarithmicDepthBuffer skinning maxBones useVertexTexture morphTargets morphNormals maxMorphTargets maxMorphNormals premultipliedAlpha numDirLights numPointLights numSpotLights numHemiLights numRectAreaLights shadowMapEnabled shadowMapType toneMapping physicallyCorrectLights alphaTest doubleSided flipSided numClippingPlanes numClipIntersection depthPacking dithering".split(" ");this.getParameters=function(e,r,o,s,c,h,l){var u=a[e.type];if(l.isSkinnedMesh){var p=l.skeleton.bones;if(n.floatVertexTextures)p=1024;else{var d=Math.min(Math.floor((n.maxVertexUniforms-20)/4),p.length);d<p.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+p.length+" bones. This GPU supports "+d+"."),p=0):p=d}}else p=0;d=n.precision,null!==e.precision&&(d=n.getMaxPrecision(e.precision))!==e.precision&&console.warn("THREE.WebGLProgram.getParameters:",e.precision,"not supported, using",d,"instead.");var f=t.getRenderTarget();return{shaderID:u,precision:d,supportsVertexTextures:n.vertexTextures,outputEncoding:i(f?f.texture:null,t.gammaOutput),map:!!e.map,mapEncoding:i(e.map,t.gammaInput),envMap:!!e.envMap,envMapMode:e.envMap&&e.envMap.mapping,envMapEncoding:i(e.envMap,t.gammaInput),envMapCubeUV:!!e.envMap&&(306===e.envMap.mapping||307===e.envMap.mapping),lightMap:!!e.lightMap,aoMap:!!e.aoMap,emissiveMap:!!e.emissiveMap,emissiveMapEncoding:i(e.emissiveMap,t.gammaInput),bumpMap:!!e.bumpMap,normalMap:!!e.normalMap,objectSpaceNormalMap:1===e.normalMapType,displacementMap:!!e.displacementMap,roughnessMap:!!e.roughnessMap,metalnessMap:!!e.metalnessMap,specularMap:!!e.specularMap,alphaMap:!!e.alphaMap,gradientMap:!!e.gradientMap,combine:e.combine,vertexColors:e.vertexColors,fog:!!s,useFog:e.fog,fogExp:s&&s.isFogExp2,flatShading:e.flatShading,sizeAttenuation:e.sizeAttenuation,logarithmicDepthBuffer:n.logarithmicDepthBuffer,skinning:e.skinning&&0<p,maxBones:p,useVertexTexture:n.floatVertexTextures,morphTargets:e.morphTargets,morphNormals:e.morphNormals,maxMorphTargets:t.maxMorphTargets,maxMorphNormals:t.maxMorphNormals,numDirLights:r.directional.length,numPointLights:r.point.length,numSpotLights:r.spot.length,numRectAreaLights:r.rectArea.length,numHemiLights:r.hemi.length,numClippingPlanes:c,numClipIntersection:h,dithering:e.dithering,shadowMapEnabled:t.shadowMap.enabled&&l.receiveShadow&&0<o.length,shadowMapType:t.shadowMap.type,toneMapping:t.toneMapping,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:e.premultipliedAlpha,alphaTest:e.alphaTest,doubleSided:2===e.side,flipSided:1===e.side,depthPacking:void 0!==e.depthPacking&&e.depthPacking}},this.getProgramCode=function(e,n){var i=[];if(n.shaderID?i.push(n.shaderID):(i.push(e.fragmentShader),i.push(e.vertexShader)),void 0!==e.defines)for(var r in e.defines)i.push(r),i.push(e.defines[r]);for(r=0;r<o.length;r++)i.push(n[o[r]]);return i.push(e.onBeforeCompile.toString()),i.push(t.gammaOutput),i.join()},this.acquireProgram=function(i,a,o,s){for(var c,h=0,l=r.length;h<l;h++){var u=r[h];if(u.code===s){++(c=u).usedTimes;break}}return void 0===c&&(c=new zt(t,e,s,i,a,o,n),r.push(c)),c},this.releaseProgram=function(t){if(0==--t.usedTimes){var e=r.indexOf(t);r[e]=r[r.length-1],r.pop(),t.destroy()}},this.programs=r}($,O,I),V=new Vt,k=new function(){var t={};return{get:function(e,n){if(void 0===t[e.id]){var i=new jt;
755t[e.id]={},t[e.id][n.id]=i}else void 0===t[e.id][n.id]?(i=new jt,t[e.id][n.id]=i):i=t[e.id][n.id];return i},dispose:function(){t={}}}},j=new J($,N,G,A),X=new function(t,e,n,i){var r;this.setMode=function(t){r=t},this.render=function(e,i){t.drawArrays(r,e,i),n.update(i,r)},this.renderInstances=function(a,o,s){if(i.isWebGL2)var c=t;else if(null===(c=e.get("ANGLE_instanced_arrays")))return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");c[i.isWebGL2?"drawArraysInstanced":"drawArraysInstancedANGLE"](r,o,s,a.maxInstancedCount),n.update(s,r,a.maxInstancedCount)}}(Tt,O,D,I),q=new function(t,e,n,i){var r,a,o;this.setMode=function(t){r=t},this.setIndex=function(t){a=t.type,o=t.bytesPerElement},this.render=function(e,i){t.drawElements(r,i,a,e*o),n.update(i,r)},this.renderInstances=function(s,c,h){if(i.isWebGL2)var l=t;else if(null===(l=e.get("ANGLE_instanced_arrays")))return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[i.isWebGL2?"drawElementsInstanced":"drawElementsInstancedANGLE"](r,h,a,c*o,s.maxInstancedCount),n.update(h,r,s.maxInstancedCount)}}(Tt,O,D,I),D.programs=H.programs,$.context=Tt,$.capabilities=I,$.extensions=O,$.properties=U,$.renderLists=V,$.state=N,$.info=D}function r(t){t.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),tt=!0}function o(){console.log("THREE.WebGLRenderer: Context Restored."),tt=!1,n()}function s(t){(t=t.target).removeEventListener("dispose",s),h(t),U.remove(t)}function h(t){var e=U.get(t).program;t.program=void 0,void 0!==e&&H.releaseProgram(e)}function l(t,e,n,i){for(var r=0,a=t.length;r<a;r++){var o=t[r],s=o.object,c=o.geometry,h=void 0===i?o.material:i;if(o=o.group,n.isArrayCamera){ct=n;for(var l=n.cameras,u=0,d=l.length;u<d;u++){var f=l[u];if(s.layers.test(f.layers)){if("viewport"in f)N.viewport(ht.copy(f.viewport));else{var m=f.bounds;N.viewport(ht.set(m.x*dt,m.y*ft,m.z*dt,m.w*ft).multiplyScalar(mt))}p(s,e,f,c,h,o)}}}else ct=null,p(s,e,n,c,h,o)}}function p(t,n,i,r,a,o){if(t.onBeforeRender($,n,i,r,a,o),P=k.get(n,ct||i),t.modelViewMatrix.multiplyMatrices(i.matrixWorldInverse,t.matrixWorld),t.normalMatrix.getNormalMatrix(t.modelViewMatrix),t.isImmediateRenderObject){N.setMaterial(a);var s=f(i,n.fog,a,t);at=e=null,ot=!1,function(t,e){t.render(function(t){$.renderBufferImmediate(t,e)})}(t,s)}else $.renderBufferDirect(i,n.fog,r,a,t,o);t.onAfterRender($,n,i,r,a,o),P=k.get(n,ct||i)}function d(t,e,n){var i=U.get(t),r=P.state.lights,a=i.lightsHash,o=r.state.hash;n=H.getParameters(t,r.state,P.state.shadowsArray,e,bt.numPlanes,bt.numIntersection,n);var c=H.getProgramCode(t,n),l=i.program,u=!0;if(void 0===l)t.addEventListener("dispose",s);else if(l.code!==c)h(t);else{if(a.stateID!==o.stateID||a.directionalLength!==o.directionalLength||a.pointLength!==o.pointLength||a.spotLength!==o.spotLength||a.rectAreaLength!==o.rectAreaLength||a.hemiLength!==o.hemiLength||a.shadowsLength!==o.shadowsLength)a.stateID=o.stateID,a.directionalLength=o.directionalLength,a.pointLength=o.pointLength,a.spotLength=o.spotLength,a.rectAreaLength=o.rectAreaLength,a.hemiLength=o.hemiLength,a.shadowsLength=o.shadowsLength;else if(void 0!==n.shaderID)return;u=!1}if(u&&(n.shaderID?(c=zr[n.shaderID],i.shader={name:t.type,uniforms:Ur.clone(c.uniforms),vertexShader:c.vertexShader,fragmentShader:c.fragmentShader}):i.shader={name:t.type,uniforms:t.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader},t.onBeforeCompile(i.shader,$),c=H.getProgramCode(t,n),l=H.acquireProgram(t,i.shader,n,c),i.program=l,t.program=l),n=l.getAttributes(),t.morphTargets)for(c=t.numSupportedMorphTargets=0;c<$.maxMorphTargets;c++)0<=n["morphTarget"+c]&&t.numSupportedMorphTargets++;if(t.morphNormals)for(c=t.numSupportedMorphNormals=0;c<$.maxMorphNormals;c++)0<=n["morphNormal"+c]&&t.numSupportedMorphNormals++;n=i.shader.uniforms,(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(i.numClippingPlanes=bt.numPlanes,i.numIntersection=bt.numIntersection,n.clippingPlanes=bt.uniform),i.fog=e,void 0===a&&(i.lightsHash=a={}),a.stateID=o.stateID,a.directionalLength=o.directionalLength,a.pointLength=o.pointLength,a.spotLength=o.spotLength,a.rectAreaLength=o.rectAreaLength,a.hemiLength=o.hemiLength,a.shadowsLength=o.shadowsLength,t.lights&&(n.ambientLightColor.value=r.state.ambient,n.directionalLights.value=r.state.directional,n.spotLights.value=r.state.spot,n.rectAreaLights.value=r.state.rectArea,n.pointLights.value=r.state.point,n.hemisphereLights.value=r.state.hemi,n.directionalShadowMap.value=r.state.directionalShadowMap,n.directionalShadowMatrix.value=r.state.directionalShadowMatrix,n.spotShadowMap.value=r.state.spotShadowMap,n.spotShadowMatrix.value=r.state.spotShadowMatrix,n.pointShadowMap.value=r.state.pointShadowMap,n.pointShadowMatrix.value=r.state.pointShadowMatrix),t=i.program.getUniforms(),t=Ct.seqWithValue(t.seq,n),i.uniformsList=t}function f(t,e,n,i){pt=0;var r=U.get(n),a=r.lightsHash,o=P.state.lights.state.hash;_t&&(wt||t!==st)&&bt.setState(n.clippingPlanes,n.clipIntersection,n.clipShadows,t,r,t===st&&n.id===rt),!1===n.needsUpdate&&(void 0===r.program?n.needsUpdate=!0:n.fog&&r.fog!==e?n.needsUpdate=!0:(!n.lights||a.stateID===o.stateID&&a.directionalLength===o.directionalLength&&a.pointLength===o.pointLength&&a.spotLength===o.spotLength&&a.rectAreaLength===o.rectAreaLength&&a.hemiLength===o.hemiLength&&a.shadowsLength===o.shadowsLength)&&(void 0===r.numClippingPlanes||r.numClippingPlanes===bt.numPlanes&&r.numIntersection===bt.numIntersection)||(n.needsUpdate=!0)),n.needsUpdate&&(d(n,e,i),n.needsUpdate=!1);var s=!1,c=!1,h=!1;o=(a=r.program).getUniforms();var l=r.shader.uniforms;if(N.useProgram(a.program)&&(h=c=s=!0),n.id!==rt&&(rt=n.id,c=!0),(s||t!==st)&&(o.setValue(Tt,"projectionMatrix",t.projectionMatrix),I.logarithmicDepthBuffer&&o.setValue(Tt,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),st!==(ct||t)&&(st=ct||t,h=c=!0),(n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.envMap)&&(void 0!==(s=o.map.cameraPosition)&&s.setValue(Tt,Et.setFromMatrixPosition(t.matrixWorld))),(n.isMeshPhongMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.skinning)&&o.setValue(Tt,"viewMatrix",t.matrixWorldInverse)),n.skinning&&(o.setOptional(Tt,i,"b
755indMatrix"),o.setOptional(Tt,i,"bindMatrixInverse"),t=i.skeleton))if(s=t.bones,I.floatVertexTextures){if(void 0===t.boneTexture){s=Math.sqrt(4*s.length),s=Or.ceilPowerOfTwo(s),s=Math.max(s,4);var p=new Float32Array(s*s*4);p.set(t.boneMatrices);var f=new u(p,s,s,1023,1015);f.needsUpdate=!0,t.boneMatrices=p,t.boneTexture=f,t.boneTextureSize=s}o.setValue(Tt,"boneTexture",t.boneTexture),o.setValue(Tt,"boneTextureSize",t.boneTextureSize)}else o.setOptional(Tt,t,"boneMatrices");return c&&(o.setValue(Tt,"toneMappingExposure",$.toneMappingExposure),o.setValue(Tt,"toneMappingWhitePoint",$.toneMappingWhitePoint),n.lights&&(c=h,l.ambientLightColor.needsUpdate=c,l.directionalLights.needsUpdate=c,l.pointLights.needsUpdate=c,l.spotLights.needsUpdate=c,l.rectAreaLights.needsUpdate=c,l.hemisphereLights.needsUpdate=c),e&&n.fog&&(l.fogColor.value=e.color,e.isFog?(l.fogNear.value=e.near,l.fogFar.value=e.far):e.isFogExp2&&(l.fogDensity.value=e.density)),n.isMeshBasicMaterial?g(l,n):n.isMeshLambertMaterial?(g(l,n),n.emissiveMap&&(l.emissiveMap.value=n.emissiveMap)):n.isMeshPhongMaterial?(g(l,n),n.isMeshToonMaterial?(x(l,n),n.gradientMap&&(l.gradientMap.value=n.gradientMap)):x(l,n)):n.isMeshStandardMaterial?(g(l,n),n.isMeshPhysicalMaterial?(b(l,n),l.reflectivity.value=n.reflectivity,l.clearCoat.value=n.clearCoat,l.clearCoatRoughness.value=n.clearCoatRoughness):b(l,n)):n.isMeshDepthMaterial?(g(l,n),n.displacementMap&&(l.displacementMap.value=n.displacementMap,l.displacementScale.value=n.displacementScale,l.displacementBias.value=n.displacementBias)):n.isMeshDistanceMaterial?(g(l,n),n.displacementMap&&(l.displacementMap.value=n.displacementMap,l.displacementScale.value=n.displacementScale,l.displacementBias.value=n.displacementBias),l.referencePosition.value.copy(n.referencePosition),l.nearDistance.value=n.nearDistance,l.farDistance.value=n.farDistance):n.isMeshNormalMaterial?(g(l,n),n.bumpMap&&(l.bumpMap.value=n.bumpMap,l.bumpScale.value=n.bumpScale,1===n.side&&(l.bumpScale.value*=-1)),n.normalMap&&(l.normalMap.value=n.normalMap,l.normalScale.value.copy(n.normalScale),1===n.side&&l.normalScale.value.negate()),n.displacementMap&&(l.displacementMap.value=n.displacementMap,l.displacementScale.value=n.displacementScale,l.displacementBias.value=n.displacementBias)):n.isLineBasicMaterial?(l.diffuse.value=n.color,l.opacity.value=n.opacity,n.isLineDashedMaterial&&(l.dashSize.value=n.dashSize,l.totalSize.value=n.dashSize+n.gapSize,l.scale.value=n.scale)):n.isPointsMaterial?(l.diffuse.value=n.color,l.opacity.value=n.opacity,l.size.value=n.size*mt,l.scale.value=.5*ft,l.map.value=n.map,null!==n.map&&(!0===n.map.matrixAutoUpdate&&n.map.updateMatrix(),l.uvTransform.value.copy(n.map.matrix))):n.isSpriteMaterial?(l.diffuse.value=n.color,l.opacity.value=n.opacity,l.rotation.value=n.rotation,l.map.value=n.map,null!==n.map&&(!0===n.map.matrixAutoUpdate&&n.map.updateMatrix(),l.uvTransform.value.copy(n.map.matrix))):n.isS
755hadowMaterial&&(l.color.value=n.color,l.opacity.value=n.opacity),void 0!==l.ltc_1&&(l.ltc_1.value=Fr.LTC_1),void 0!==l.ltc_2&&(l.ltc_2.value=Fr.LTC_2),Ct.upload(Tt,r.uniformsList,l,$)),n.isShaderMaterial&&!0===n.uniformsNeedUpdate&&(Ct.upload(Tt,r.uniformsList,l,$),n.uniformsNeedUpdate=!1),n.isSpriteMaterial&&o.setValue(Tt,"center",i.center),o.setValue(Tt,"modelViewMatrix",i.modelViewMatrix),o.setValue(Tt,"normalMatrix",i.normalMatrix),o.setValue(Tt,"modelMatrix",i.matrixWorld),a}function g(t,e){if(t.opacity.value=e.opacity,e.color&&(t.diffuse.value=e.color),e.emissive&&t.emissive.value.copy(e.emissive).multiplyScalar(e.emissiveIntensity),e.map&&(t.map.value=e.map),e.alphaMap&&(t.alphaMap.value=e.alphaMap),e.specularMap&&(t.specularMap.value=e.specularMap),e.envMap&&(t.envMap.value=e.envMap,t.flipEnvMap.value=e.envMap&&e.envMap.isCubeTexture?-1:1,t.reflectivity.value=e.reflectivity,t.refractionRatio.value=e.refractionRatio,t.maxMipLevel.value=U.get(e.envMap).__maxMipLevel),e.lightMap&&(t.lightMap.value=e.lightMap,t.lightMapIntensity.value=e.lightMapIntensity),e.aoMap&&(t.aoMap.value=e.aoMap,t.aoMapIntensity.value=e.aoMapIntensity),e.map)var n=e.map;else e.specularMap?n=e.specularMap:e.displacementMap?n=e.displacementMap:e.normalMap?n=e.normalMap:e.bumpMap?n=e.bumpMap:e.roughnessMap?n=e.roughnessMap:e.metalnessMap?n=e.metalnessMap:e.alphaMap?n=e.alphaMap:e.emissiveMap&&(n=e.emissiveMap);void 0!==n&&(n.isWebGLRenderTarget&&(n=n.texture),!0===n.matrixAutoUpdate&&n.updateMatrix(),t.uvTransform.value.copy(n.matrix))}function x(t,e){t.specular.value=e.specular,t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,1===e.side&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),1===e.side&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function b(t,e){t.roughness.value=e.roughness,t.metalness.value=e.metalness,e.roughnessMap&&(t.roughnessMap.value=e.roughnessMap),e.metalnessMap&&(t.metalnessMap.value=e.metalnessMap),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,1===e.side&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),1===e.side&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias),e.envMap&&(t.envMapIntensity.value=e.envMapIntensity)}console.log("THREE.WebGLRenderer","95");var _=void 0!==(t=t||{}).canvas?t.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),w=void 0!==t.context?t.context:null,M=void 0!==t.alpha&&t.alpha,E=void 0===t.depth||t.depth,T=void 0===t.stencil||t.stencil,S=void 0!==t.antialias&&t.antialias,A=void 0===t.premultipliedAlpha||t.premultipliedAlpha,L=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,R=void 0!==t.powerPreference?t.powerPreference:"default",C=null,P=null;this.domElement=_,this.context=null,this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.physicallyCorrectLights=this.gammaOutput=this.gammaInput=!1,this.toneMappingWhitePoint=this.toneMappingExposure=this.toneMapping=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var O,I,N,D,U,B,F,z,G,H,V,k,j,W,X,q,Y,$=this,tt=!1,et=null,nt=null,it=null,rt=-1,at=e=null,ot=!1,st=null,ct=null,ht=new c,lt=new c,ut=null,pt=0,dt=_.width,ft=_.height,mt=1,gt=new c(0,0,dt,ft),vt=new c(0,0,dt,ft),yt=!1,xt=new m,bt=new Z,_t=!1,wt=!1,Mt=new i,Et=new a;try{M={alpha:M,depth:E,stencil:T,antialias:S,premultipliedAlpha:A,preserveDrawingBuffer:L,powerPreference:R},_.addEventListener("webglcontextlost",r,!1),_.addEventListener("webglcontextrestored",o,!1);var Tt=w||_.getContext("webgl",M)||_.getContext("experimental-webgl",M);if(null===Tt){if(null!==_.getContext("webgl"))throw Error("Error creating WebGL context with your selected attributes.");throw Error("Error creating WebGL context.")}void 0===Tt.getShaderPrecisionFormat&&(Tt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(t){console.error("THREE.WebGLRenderer: "+t.message)}n();var St="xr"in navigator?new $t($):new Kt($);this.vr=St;var At=new qt($,G,I.maxTextureSize);this.shadowMap=At,this.getContext=function(){return Tt},this.getContextAttributes=function(){return Tt.getContextAttributes()},this.forceContextLoss=function(){var t=O.get("WEBGL_lose_context");t&&t.loseContext()},this.forceContextRestore=function(){var t=O.get("WEBGL_lose_context");t&&t.restoreContext()},this.getPixelRatio=function(){return mt},this.setPixelRatio=function(t){void 0!==t&&(mt=t,this.setSize(dt,ft,!1))}
755,this.getSize=function(){return{width:dt,height:ft}},this.setSize=function(t,e,n){St.isPresenting()?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(dt=t,ft=e,_.width=t*mt,_.height=e*mt,!1!==n&&(_.style.width=t+"px",_.style.height=e+"px"),this.setViewport(0,0,t,e))},this.getDrawingBufferSize=function(){return{width:dt*mt,height:ft*mt}},this.setDrawingBufferSize=function(t,e,n){dt=t,ft=e,mt=n,_.width=t*n,_.height=e*n,this.setViewport(0,0,t,e)},this.getCurrentViewport=function(){return ht},this.setViewport=function(t,e,n,i){gt.set(t,ft-e-i,n,i),N.viewport(ht.copy(gt).multiplyScalar(mt))},this.setScissor=function(t,e,n,i){vt.set(t,ft-e-i,n,i),N.scissor(lt.copy(vt).multiplyScalar(mt))},this.setScissorTest=function(t){N.setScissorTest(yt=t)},this.getClearColor=function(){return j.getClearColor()},this.setClearColor=function(){j.setClearColor.apply(j,arguments)},this.getClearAlpha=function(){return j.getClearAlpha()},this.setClearAlpha=function(){j.setClearAlpha.apply(j,arguments)},this.clear=function(t,e,n){var i=0;(void 0===t||t)&&(i|=Tt.COLOR_BUFFER_BIT),(void 0===e||e)&&(i|=Tt.DEPTH_BUFFER_BIT),(void 0===n||n)&&(i|=Tt.STENCIL_BUFFER_BIT),Tt.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.clearTarget=function(t,e,n,i){this.setRenderTarget(t),this.clear(e,n,i)},this.dispose=function(){_.removeEventListener("webglcontextlost",r,!1),_.removeEventListener("webglcontextrestored",o,!1),V.dispose(),k.dispose(),U.dispose(),G.dispose(),St.dispose(),Rt.stop()},this.renderBufferImmediate=function(t,e){N.initAttributes();var n=U.get(t);t.hasPositions&&!n.position&&(n.position=Tt.createBuffer()),t.hasNormals&&!n.normal&&(n.normal=Tt.createBuffer()),t.hasUvs&&!n.uv&&(n.uv=Tt.createBuffer()),t.hasColors&&!n.color&&(n.color=Tt.createBuffer()),e=e.getAttributes(),t.hasPositions&&(Tt.bindBuffer(Tt.ARRAY_BUFFER,n.position),Tt.bufferData(Tt.ARRAY_BUFFER,t.positionArray,Tt.DYNAMIC_DRAW),N.enableAttribute(e.position),Tt.vertexAttribPointer(e.position,3,Tt.FLOAT,!1,0,0)),t.hasNormals&&
755(Tt.bindBuffer(Tt.ARRAY_BUFFER,n.normal),Tt.bufferData(Tt.ARRAY_BUFFER,t.normalArray,Tt.DYNAMIC_DRAW),N.enableAttribute(e.normal),Tt.vertexAttribPointer(e.normal,3,Tt.FLOAT,!1,0,0)),t.hasUvs&&(Tt.bindBuffer(Tt.ARRAY_BUFFER,n.uv),Tt.bufferData(Tt.ARRAY_BUFFER,t.uvArray,Tt.DYNAMIC_DRAW),N.enableAttribute(e.uv),Tt.vertexAttribPointer(e.uv,2,Tt.FLOAT,!1,0,0)),t.hasColors&&(Tt.bindBuffer(Tt.ARRAY_BUFFER,n.color),Tt.bufferData(Tt.ARRAY_BUFFER,t.colorArray,Tt.DYNAMIC_DRAW),N.enableAttribute(e.color),Tt.vertexAttribPointer(e.color,3,Tt.FLOAT,!1,0,0)),N.disableUnusedAttributes(),Tt.drawArrays(Tt.TRIANGLES,0,t.count),t.count=0},this.renderBufferDirect=function(t,n,i,r,a,o){var s=a.isMesh&&0>a.normalMatrix.determinant();N.setMaterial(r,s);var c=f(t,n,r,a),h=!1;e===i.id&&at===c.id&&ot===(!0===r.wireframe)||(e=i.id,at=c.id,ot=!0===r.wireframe,h=!0),a.morphTargetInfluences&&(W.update(a,i,r,c),h=!0),s=i.index;var l=i.attributes.position;if(n=1,!0===r.wireframe&&(s=z.getWireframeAttribute(i),n=2),t=X,null!==s){var u=F.get(s);(t=q).setIndex(u)}if(h){if(i&&i.isInstancedBufferGeometry&!I.isWebGL2&&null===O.get("ANGLE_instanced_arrays"))console.error("THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");else{N.initAttributes(),h=i.attributes,c=c.getAttributes();var p=r.defaultAttributeValues;for(M in c){var d=c[M];if(0<=d){var m=h[M];if(void 0!==m){var g=m.normalized,v=m.itemSize,y=F.get(m);if(void 0!==y){var x=y.buffer,b=y.type;if(y=y.bytesPerElement,m.isInterleavedBufferAttribute){var _=m.data,w=_.stride;m=m.offset,_&&_.isInstancedInterleavedBuffer?(N.enableAttributeAndDivisor(d,_.meshPerAttribute),void 0===i.maxInstancedCount&&(i.maxInstancedCount=_.meshPerAttribute*_.count)):N.enableAttribute(d),Tt.bindBuffer(Tt.ARRAY_BUFFER,x),Tt.vertexAttribPointer(d,v,b,g,w*y,m*y)}else m.isInstancedBufferAttribute?(N.enableAttributeAndDivisor(d,m.meshPerAttribute),void 0===i.maxInstancedCount&&(i.maxInstancedCount=m.meshPerAttribute*m.count)):N.enableAttribute(d),Tt.bindBuffer(Tt.ARRAY_BUFFER,x),Tt.vertexAttribPointer(d,v,b,g,0,0)}}else if(void 0!==p&&void 0!==(g=p[M]))switch(g.length){case 2:Tt.vertexAttrib2fv(d,g);break;case 3:Tt.vertexAttrib3fv(d,g);break;case 4:Tt.vertexAttrib4fv(d,g);break;default:Tt.vertexAttrib1fv(d,g)}}}N.disableUnusedAttributes()}null!==s&&Tt.bindBuffer(Tt.ELEMENT_ARRAY_BUFFER,u.buffer)}u=1/0,null!==s?u=s.count:void 0!==l&&(u=l.count),s=i.drawRange.start*n,l=null!==o?o.start*n:0;var M=Math.max(s,l);if(0!==(o=Math.max(0,Math.min(u,s+i.drawRange.count*n,l+(null!==o?o.count*n:1/0))-1-M+1))){if(a.isMesh)if(!0===r.wireframe)N.setLineWidth(r.wireframeLinewidth*(null===nt?mt:1)),t.setMode(Tt.LINES);else switch(a.drawMode){case 0:t.setMode(Tt.TRIANGLES);break;case 1:t.setMode(Tt.TRIANGLE_STRIP);break;case 2:t.setMode(Tt.TRIANGLE_FAN)}else a.isLine?(void 0===(r=r.linewidth)&&(r=1),N.setLineWidth(r*(null===nt?mt:1)),a.isLineSegments?t.setMode(Tt.LINES):a.isLineLoop?t.setMode(Tt.LINE_LOOP):t.setMode(Tt.LINE_STRIP)):a.isPoints?t.setMode(Tt.POINTS):a.isSprite&&t.setMode(Tt.TRIANGLES);i&&i.isInstancedBufferGeometry?0<i.maxInstancedCount&&t.renderInstances(i,M,o):t.render(M,o)}},this.compile=function(t,e){(P=k.get(t,e)).init(),t.traverse(function(t){t.isLight&&(P.pushLight(t),t.castShadow&&P.pushShadow(t))}),P.setupLights(e),t.traverse(function(e){if(e.material)if(Array.isArray(e.material))for(var n=0;n<e.material.length;n++)d(e.material[n],t.fog,e);else d(e.material,t.fog,e)})};var Lt=null,Rt=new v;Rt.setAnimationLoop(function(t){St.isPresenting()||Lt&&Lt(t)}),"undefined"!=typeof window&&Rt.setContext(window),this.setAnimationLoop=function(t){Lt=t,St.setAnimationLoop(t),Rt.start()},this.render=function(t,n,i,r){if(n&&n.isCamera){if(!tt){at=e=null,ot=!1,rt=-1,st=null,!0===t.autoUpdate&&t.updateMatrixWorld(),null===n.parent&&n.updateMatrixWorld(),St.enabled&&(n=St.getCamera(n)),(P=k.get(t,n)).init(),t.onBeforeRender($,t,n,i),Mt.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),xt.setFromMatrix(Mt),wt=this.localClippingEnabled,_t=bt.init(this.clippingPlanes,wt,n),(C=V.get(t,n)).init(),function t(e,n,i){if(!1!==e.visible){if(e.layers.test(n.layers))if(e.isLight)P.pushLight(e),e.castShadow&&P.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||xt.intersectsSprite(e)){i&&Et.setFromMatrixPosition(e.matrixWorld).applyMatrix4(Mt);var r=G.update(e),a=e.material;C.push(e,r,a,Et.z,null)}}else if(e.isImmediateRenderObject)i&&Et.setFromMatrixPosition(e.matrixWorld).applyMatrix4(Mt),C.push(e,null,e.material,Et.z,null);else if((e.isMesh||e.isLine||e.isPoints)&&(e.isSkinnedMesh&&e.skeleton.update(),!e.frustumCulled||xt.intersectsObject(e)))if(i&&Et.setFromMatrixPosition(e.matrixWorld).applyMatrix4(Mt),r=G.update(e),a=e.material,Array.isArray(a))for(var o=r.groups,s=0,c=o.length;s<c;s++){var h=o[s],l=a[h.materialIndex];l&&l.visible&&C.push(e,r,l,Et.z,h)}else a.visible&&C.push(e,r,a,Et.z,null);for(s=0,c=(e=e.children).length;s<c;s++)t(e[s],n,i)}}(t,n,$.sortObjects),!0===$.sortObjects&&C.sort(),_t&&bt.beginShadows(),At.render(P.state.shadowsArray,t,n),P.setupLights(n),_t&&bt.endShadows(),this.info.autoReset&&this.info.reset(),void 0===i&&(i=null),this.setRenderTarget(i),j.render(C,t,n,r),r=C.opaque;var a=C.transparent;if(t.overrideMaterial){var o=t.overrideMaterial;r.length&&l(r,t,n,o),a.length&&l(a,t,n,o)}else r.length&&l(r,t,n),a.length&&l(a,t,n);i&&B.updateRenderTargetMipmap(i),N.buffers.depth.setTest(!0),N.buffers.depth.setMask(!0),N.buffers.color.setMask(!0),N.setPolygonOffset(!1),t.onAfterRender($,t,n),St.enabled&&St.submitFrame(),P=C=null}}else console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.")},this.allocTextureUnit=function(){var t=pt;return t>=I.maxTextures&&console.warn("THREE.WebGLRenderer: Trying to use "+t+" texture units while this GPU supports only "+I.maxTextures),pt+=1,t},this.setTexture2D=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTarget&&(t||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),t=!0),e=e.texture),B.setTexture2D(e,n)}}(),this.setTexture=function(){var t=!1;return function(e,n){t||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),t=!0),B.setTexture2D(e,n)}}(),this.setTextureCube=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTargetCube&&(t||(console.warn("THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead."),t=!0),e=e.texture),e&&e.isCubeTexture||Array.isArray(e.image)&&6===e.image.length?B.setTextureCube(e,n):B.setTextureCubeDynamic(e,n)}}(),this.setFramebuffer=function(t){et=t},this.getRenderTarget=function(){return nt},this.setRenderTarget=function(t){(nt=t)&&void 0===U.get(t).__webglFramebuffer&&B.setupRenderTarget(t);var e=et,n=!1;t?(e=U.get(t).__webglFramebuffer,t.isWebGLRenderTargetCube&&(e=e[t.activeCubeFace],n=!0),ht.copy(t.viewport),lt.copy(t.scissor),ut=t.scissorTest):(ht.copy(gt).multiplyScalar(mt),lt.copy(vt).multiplyScalar(mt),ut=yt),it
755!==e&&(Tt.bindFramebuffer(Tt.FRAMEBUFFER,e),it=e),N.viewport(ht),N.scissor(lt),N.setScissorTest(ut),n&&(n=U.get(t.texture),Tt.framebufferTexture2D(Tt.FRAMEBUFFER,Tt.COLOR_ATTACHMENT0,Tt.TEXTURE_CUBE_MAP_POSITIVE_X+t.activeCubeFace,n.__webglTexture,t.activeMipMapLevel))},this.readRenderTargetPixels=function(t,e,n,i,r,a){if(t&&t.isWebGLRenderTarget){var o=U.get(t).__webglFramebuffer;if(o){var s=!1;o!==it&&(Tt.bindFramebuffer(Tt.FRAMEBUFFER,o),s=!0);try{var c=t.texture,h=c.format,l=c.type;1023!==h&&Y.convert(h)!==Tt.getParameter(Tt.IMPLEMENTATION_COLOR_READ_FORMAT)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):1009===l||Y.convert(l)===Tt.getParameter(Tt.IMPLEMENTATION_COLOR_READ_TYPE)||1015===l&&(I.isWebGL2||O.get("OES_texture_float")||O.get("WEBGL_color_buffer_float"))||1016===l&&(I.isWebGL2?O.get("EXT_color_buffer_float"):O.get("EXT_color_buffer_half_float"))?Tt.checkFramebufferStatus(Tt.FRAMEBUFFER)===Tt.FRAMEBUFFER_COMPLETE?0<=e&&e<=t.width-i&&0<=n&&n<=t.height-r&&Tt.readPixels(e,n,i,r,Y.convert(h),Y.convert(l),a):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete."):console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.")}finally{s&&Tt.bindFramebuffer(Tt.FRAMEBUFFER,it)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(t,e,n){var i=e.image.width,r=e.image.height,a=Y.convert(e.format);this.setTexture2D(e,0),Tt.copyTexImage2D(Tt.TEXTURE_2D,n||0,a,t.x,t.y,i,r,0)},this.copyTextureToTexture=function(t,e,n,i){var r=e.image.width,a=e.image.height,o=Y.convert(n.format),s=Y.convert(n.type);this.setTexture2D(n,0),e.isDataTexture?Tt.texSubImage2D(Tt.TEXTURE_2D,i||0,t.x,t.y,r,a,o,s,e.image.data):Tt.texSubImage2D(Tt.TEXTURE_2D,i||0,t.x,t.y,o,s,e.image)}}function ee(t,e){this.name="",this.color=new g(t),this.density=void 0!==e?e:25e-5}function ne(t,e,n){this.name="",this.color=new g(t),this.near=void 0!==e?e:1,this.far=void 0!==n?n:1e3}function ie(){_.call(this),this.type="Scene",this.overrideMaterial=this.fog=this.background=null,this.autoUpdate=!0}function re(t,e){this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function ae(t,e,n,i){this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===i}function oe(t){k.call(this),this.type="SpriteMaterial",this.color=new g(16777215),this.map=null,this.rotation=0,this.lights=!1,this.transparent=!0,this.setValues(t)}function se(t){if(_.call(this),this.type="Sprite",void 0===Kr){Kr=new F;var e=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]);e=new re(e,5),Kr.setIndex([0,1,2,0,2,3]),Kr.addAttribute("position",new ae(e,3,0,!1)),Kr.addAttribute("uv",new ae(e,2,3,!1))}this.geometry=Kr,this.material=void 0!==t?t:new oe,this.center=new n(.5,.5)}function ce(){_.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function he(t,e){if(t=t||[],this.bones=t.slice(0),this.boneMatrices=new Float32Array(16*this.bones.length),void 0===e)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else for(console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[],t=0,e=this.bones.length;t<e;t++)this.boneInverses.push(new i)}function le(){_.call(this),this.type="Bone"}function ue(t,e){Y.call(this,t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new i,this.bindMatrixInverse=new i,t=new he(t=this.initBones()),this.bind(t,this.matrixWorld),this.normalizeSkinWeights()}function pe(t){k.call(this),this.type="LineBasicMaterial",this.color=new g(16777215),this.linewidth=1,this.linejoin=this.linecap="round",this.lights=!1,this.setValues(t)}function de(t,e,n){1===n&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead."),_.call(this),this.type="Line",this.geometry=void 0!==t?t:new F,this.material=void 0!==e?e:new pe({color:16777215*Math.random()})}function fe(t,e){de.call(this,t,e),this.type="LineSegments"}function me(t,e){de.call(this,t,e),this.type="LineLoop"}function ge(t){k.call(this),this.type="PointsMaterial",this.color=new g(16777215),this.map=null,this.size=1,this.sizeAttenuation=!0,this.lights=this.morphTargets=!1,this.setValues(t)}function ve(t,e){_.call(this),this.type="Points",this.geometry=void 0!==t?t:new F,this.material=void 0!==e?e:new ge({color:16777215*Math.random()})}function ye(t,e,n,i,r,a,o,c,h){s.call(this,t,e,n,i,r,a,o,c,h),this.generateMipmaps=!1}
755function xe(t,e,n,i,r,a,o,c,h,l,u,p){s.call(this,null,a,o,c,h,l,i,r,u,p),this.image={width:e,height:n},this.mipmaps=t,this.generateMipmaps=this.flipY=!1}function be(t,e,n,i,r,a,o,c,h){s.call(this,t,e,n,i,r,a,o,c,h),this.needsUpdate=!0}function _e(t,e,n,i,r,a,o,c,h,l){if(1026!==(l=void 0!==l?l:1026)&&1027!==l)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&1026===l&&(n=1012),void 0===n&&1027===l&&(n=1020),s.call(this,null,i,r,a,o,c,l,n,h),this.image={width:t,height:e},this.magFilter=void 0!==o?o:1003,this.minFilter=void 0!==c?c:1003,this.generateMipmaps=this.flipY=!1}function we(t){F.call(this),this.type="WireframeGeometry";var e,n,i,r=[],o=[0,0],s={},c=["a","b","c"];if(t&&t.isGeometry){var h=t.faces,l=0;for(n=h.length;l<n;l++){var u=h[l];for(e=0;3>e;e++){var p=u[c[e]],d=u[c[(e+1)%3]];o[0]=Math.min(p,d),o[1]=Math.max(p,d),void 0===s[p=o[0]+","+o[1]]&&(s[p]={index1:o[0],index2:o[1]})}}for(p in s)l=s[p],c=t.vertices[l.index1],r.push(c.x,c.y,c.z),c=t.vertices[l.index2],r.push(c.x,c.y,c.z)}else if(t&&t.isBufferGeometry)if(c=new a,null!==t.index){h=t.attributes.position,u=t.index;var f=t.groups;for(0===f.length&&(f=[{start:0,count:u.count,materialIndex:0}]),t=0,i=f.length;t<i;++t)for(e=(l=f[t]).start,n=l.count,l=e,n=e+n;l<n;l+=3)for(e=0;3>e;e++)p=u.getX(l+e),d=u.getX(l+(e+1)%3),o[0]=Math.min(p,d),o[1]=Math.max(p,d),void 0===s[p=o[0]+","+o[1]]&&(s[p]={index1:o[0],index2:o[1]});for(p in s)l=s[p],c.fromBufferAttribute(h,l.index1),r.push(c.x,c.y,c.z),c.fromBufferAttribute(h,l.index2),r.push(c.x,c.y,c.z)}else for(l=0,n=(h=t.attributes.position).count/3;l<n;l++)for(e=0;3>e;e++)s=3*l+e,c.fromBufferAttribute(h,s),r.push(c.x,c.y,c.z),s=3*l+(e+1)%3,c.fromBufferAttribute(h,s),r.push(c.x,c.y,c.z);this.addAttribute("position",new N(r,3))}function Me(t,e,n){T.call(this),this.type="ParametricGeometry",this.parameters={func:t,slices:e,stacks:n},this.fromBufferGeometry(new Ee(t,e,n)),this.mergeVertices()}function Ee(t,e,n){F.call(this),this.type="ParametricBufferGeometry",this.parameters={func:t,slices:e,stacks:n};var i,r,o=[],s=[],c=[],h=[],l=new a,u=new a,p=new a,d=new a,f=new a;3>t.length&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");var m=e+1;for(i=0;i<=n;i++){var g=i/n;for(r=0;r<=e;r++){var v=r/e;t(v,g,u),s.push(u.x,u.y,u.z),0<=v-1e-5?(t(v-1e-5,g,p),d.subVectors(u,p)):(t(v+1e-5,g,p),d.subVectors(p,u)),0<=g-1e-5?(t(v,g-1e-5,p),f.subVectors(u,p)):(t(v,g+1e-5,p),f.subVectors(p,u)),l.crossVectors(d,f).normalize(),c.push(l.x,l.y,l.z),h.push(v,g)}}for(i=0;i<n;i++)for(r=0;r<e;r++)t=i*m+r+1,l=(i+1)*m+r+1,u=(i+1)*m+r,o.push(i*m+r,t,u),o.push(t,l,u);this.setIndex(o),this.addAttribute("position",new N(s,3)),this.addAttribute("normal",new N(c,3)),this.addAttribute("uv",new N(h,2))}function Te(t,e,n,i){T.call(this),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:n,detail:i},this.fromBufferGeometry(new Se(t,e,n,i)),this.mergeVertices()}function Se(t,e,i,r){function o(t){h.push(t.x,t.y,t.z)}function s(e,n){e*=3,n.x=t[e+0],n.y=t[e+1],n.z=t[e+2]}function c(t,e,n,i){0>i&&1===t.x&&(l[e]=t.x-1),0===n.x&&0===n.z&&(l[e]=i/2/Math.PI+.5)}F.call(this),this.type="PolyhedronBufferGeometry",this.parameters={vertices:t,indices:e,radius:i,detail:r},i=i||1;var h=[],l=[];!function(t){for(var n=new a,i=new a,r=new a,c=0;c<e.length;c+=3){s(e[c+0],n),s(e[c+1],i),s(e[c+2],r);var h,l,u=n,p=i,d=r,f=Math.pow(2,t),m=[];for(l=0;l<=f;l++){m[l]=[];var g=u.clone().lerp(d,l/f),v=p.clone().lerp(d,l/f),y=f-l;for(h=0;h<=y;h++)m[l][h]=0===h&&l===f?g:g.clone().lerp(v,h/y)}for(l=0;l<f;l++)for(h=0;h<2*(f-l)-1;h++)u=Math.floor(h/2),0==h%2?(o(m[l][u+1]),o(m[l+1][u]),o(m[l][u])):(o(m[l][u+1]),o(m[l+1][u+1]),o(m[l+1][u]))}}(r=r||0),function(t){for(var e=new a,n=0;n<h.length;n+=3)e.x=h[n+0],e.y=h[n+1],e.z=h[n+2],e.normalize().multiplyScalar(t),h[n+0]=e.x,h[n+1]=e.y,h[n+2]=e.z}(i),function(){for(var t=new a,e=0;e<h.length;e+=3)t.x=h[e+0],t.y=h[e+1],t.z=h[e+2],l.push(Math.atan2(t.z,-t.x)/2/Math.PI+.5,1-(Math.atan2(-t.y,Math.sqrt(t.x*t.x+t.z*t.z))/Math.PI+.5));t=new a,e=new a;for(var i=new a,r=new a,o=new n,s=new n,u=new n,p=0,d=0;p<h.length;p+=9,d+=6){t.set(h[p+0],h[p+1],h[p+2]),e.set(h[p+3],h[p+4],h[p+5]),i.set(h[p+6],h[p+7],h[p+8]),o.set(l[d+0],l[d+1]),s.set(l[d+2],l[d+3]),u.set(l[d+4],l[d+5]),r.copy(t).add(e).add(i).divideScalar(3);var f=Math.atan2(r.z,-r.x);c(o,d+0,t,f),c(s,d+2,e,f),c(u,d+4,i,f)}for(t=0;t<l.length;t+=6)e=l[t+0],i=l[t+2],r=l[t+4],o=Math.min(e,i,r),.9<Math.max(e,i,r)&&.1>o&&(.2>e&&(l[t+0]+=1),.2>i&&(l[t+2]+=1),.2>r&&(l[t+4]+=1))}(),this.addAttribute("position",new N(h,3)),this.addAttribute("normal",new N(h.slice(),3)),this.addAttribute("uv",new N(l,2)),0===r?this.computeVertexNormals():this.normalizeNormals()}function Ae(t,e){T.call(this),this.type="TetrahedronGeometry",this.parameters={radiu
vendor: 1,687 bytes, line 755
755s:t,detail:e},this.fromBufferGeometry(new Le(t,e)),this.mergeVertices()}function Le(t,e){Se.call(this,[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],t,e),this.type="TetrahedronBufferGeometry",this.parameters={radius:t,detail:e}}function Re(t,e){T.call(this),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new Ce(t,e)),this.mergeVertices()}function Ce(t,e){Se.call(this,[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],t,e),this.type="OctahedronBufferGeometry",this.parameters={radius:t,detail:e}}function Pe(t,e){T.call(this),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new Oe(t,e)),this.mergeVertices()}function Oe(t,e){var n=(1+Math.sqrt(5))/2;Se.call(this,[-1,n,0,1,n,0,-1,-n,0,1,-n,0,0,-1,n,0,1,n,0,-1,-n,0,1,-n,n,0,-1,n,0,1,-n,0,-1,-n,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],t,e),this.type="IcosahedronBufferGeometry",this.parameters={radius:t,detail:e}}function Ie(t,e){T.call(this),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new Ne(t,e)),this.mergeVertices()}function Ne(t,e){var n=(1+Math.sqrt(5))/2,i=1/n;Se.call(this,[-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,-i,-n,0,-i,n,0,i,-n,0,i,n,-i,-n,0,-i,n,0,i,-n,0,i,n,0,-n,0,-i,n,0,-i,-n,0,i,n,0,i],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,
75519,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],t,e),this.type="DodecahedronBufferGeometry",this.parameters={radius:t,detail:e}}function De(t,e,n,i,r,a){T.call(this),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:n,radialSegments:i,closed:r},void 0!==a&&console.warn("THREE.TubeGeometry: taper has been removed."),t=new Ue(t,e,n,i,r),this.tangents=t.tangents,this.normals=t.normals,this.binormals=t.binormals,this.fromBufferGeometry(t),this.mergeVertices()}function Ue(t,e,i,r,o){function s(n){f=t.getPointAt(n/e,f);var a=c.normals[n];for(n=c.binormals[n],l=0;l<=r;l++){var o=l/r*Math.PI*2,s=Math.sin(o);o=-Math.cos(o),p.x=o*a.x+s*n.x,p.y=o*a.y+s*n.y,p.z=o*a.z+s*n.z,p.normalize(),g.push(p.x,p.y,p.z),u.x=f.x+i*p.x,u.y=f.y+i*p.y,u.z=f.z+i*p.z,m.push(u.x,u.y,u.z)}}F.call(this),this.type="TubeBufferGeometry",this.parameters={path:t,tubularSegments:e,radius:i,radialSegments:r,closed:o},e=e||64,i=i||1,r=r||8,o=o||!1;var c=t.computeFrenetFrames(e,o);this.tangents=c.tangents,this.normals=c.normals,this.binormals=c.binormals;var h,l,u=new a,p=new a,d=new n,f=new a,m=[],g=[],v=[],y=[];for(h=0;h<e;h++)s(h);for(s(!1===o?e:0),h=0;h<=e;h++)for(l=0;l<=r;l++)d.x=h/e,d.y=l/r,v.push(d.x,d.y);!function(){for(l=1;l<=e;l++)for(h=1;h<=r;h++){var t=(r+1)*l+(h-1),n=(r+1)*l+h,i=(r+1)*(l-1)+h;y.push((r+1)*(l-1)+(h-1),t,i),y.push(t,n,i)}}(),this.setIndex(y),this.addAttribute("position",new N(m,3)),this.addAttribute("normal",new N(g,3)),this.addAttribute("uv",new N(v,2))}function Be(t,e,n,i,r,a,o){T.call(this),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:n,radialSegments:i,p:r,q:a},void 0!==o&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."),this.fromBufferGeometry(new Fe(t,e,n,i,r,a)),this.mergeVertices()}function Fe(t,e,n,i,r,o){function s(t,e,n,i,r){var a=Math.sin(t);e=n/e*t,n=Math.cos(e),r.x=i*(2+n)*.5*Math.cos(t),r.y=i*(2+n)*a*.5,r.z=i*Math.sin(e)*.5}F.call(this),this.type="TorusKnotBufferGeometry",this.parameters={radius:t,tube:e,tubularSegments:n,radialSegments:i,p:r,q:o},t=t||1,e=e||.4,n=Math.floor(n)||64,i=Math.floor(i)||8,r=r||2,o=o||3;var c,h=[],l=[],u=[],p=[],d=new a,f=new a,m=new a,g=new a,v=new a,y=new a,x=new a;for(c=0;c<=n;++c){var b=c/n*r*Math.PI*2;for(s(b,r,o,t,m),s(b+.01,r,o,t,g),y.subVectors(g,m),x.addVectors(g,m),v.crossVectors(y,x),x.crossVectors(v,y),v.normalize(),x.normalize(),b=0;b<=i;++b){var _=b/i*Math.PI*2,w=-e*Math.cos(_);
755_=e*Math.sin(_),d.x=m.x+(w*x.x+_*v.x),d.y=m.y+(w*x.y+_*v.y),d.z=m.z+(w*x.z+_*v.z),l.push(d.x,d.y,d.z),f.subVectors(d,m).normalize(),u.push(f.x,f.y,f.z),p.push(c/n),p.push(b/i)}}for(b=1;b<=n;b++)for(c=1;c<=i;c++)t=(i+1)*b+(c-1),e=(i+1)*b+c,r=(i+1)*(b-1)+c,h.push((i+1)*(b-1)+(c-1),t,r),h.push(t,e,r);this.setIndex(h),this.addAttribute("position",new N(l,3)),this.addAttribute("normal",new N(u,3)),this.addAttribute("uv",new N(p,2))}function ze(t,e,n,i,r){T.call(this),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:n,tubularSegments:i,arc:r},this.fromBufferGeometry(new Ge(t,e,n,i,r)),this.mergeVertices()}function Ge(t,e,n,i,r){F.call(this),this.type="TorusBufferGeometry",this.parameters={radius:t,tube:e,radialSegments:n,tubularSegments:i,arc:r},t=t||1,e=e||.4,n=Math.floor(n)||8,i=Math.floor(i)||6,r=r||2*Math.PI;var o,s,c=[],h=[],l=[],u=[],p=new a,d=new a,f=new a;for(o=0;o<=n;o++)for(s=0;s<=i;s++){var m=s/i*r,g=o/n*Math.PI*2;d.x=(t+e*Math.cos(g))*Math.cos(m),d.y=(t+e*Math.cos(g))*Math.sin(m),d.z=e*Math.sin(g),h.push(d.x,d.y,d.z),p.x=t*Math.cos(m),p.y=t*Math.sin(m),f.subVectors(d,p).normalize(),l.push(f.x,f.y,f.z),u.push(s/i),u.push(o/n)}for(o=1;o<=n;o++)for(s=1;s<=i;s++)t=(i+1)*(o-1)+s-1,e=(i+1)*(o-1)+s,r=(i+1)*o+s,c.push((i+1)*o+s-1,t,r),c.push(t,e,r);this.setIndex(c),this.addAttribute("position",new N(h,3)),this.addAttribute("normal",new N(l,3)),this.addAttribute("uv",new N(u,2))}function He(t,e,n,i,r){for(var a,o=0,s=e,c=n-i;s<n;s+=i)o+=(t[c]-t[s])*(t[s+1]+t[c+1]),c=s;if(r===0<o)for(r=e;r<n;r+=i)a=$e(r,t[r],t[r+1],a);else for(r=n-i;r>=e;r-=i)a=$e(r,t[r],t[r+1],a);return a&&Je(a,a.next)&&(tn(a),a=a.next),a}function Ve(t,e){if(!t)return t;e||(e=t);do{var n=!1;if(t.steiner||!Je(t,t.next)&&0!==Ye(t.prev,t,t.next))t=t.next;else{if(tn(t),(t=e=t.prev)===t.next)break;n=!0}}while(n||t!==e);return e}function ke(t,e){return t.x-e.x}function je(t,e){var n=e,i=t.x,r=t.y,a=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){var o=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(o<=i&&o>a){if(a=o,o===i){if(r===n.y)return n;if(r===n.next.y)return n.next}var s=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!s)return null;if(i===a)return s.prev;e=s,o=s.x;var c=s.y,h=1/0;for(n=s.next;n!==e;){if(i>=n.x&&n.x>=o&&i!==n.x&&qe(r<c?i:a,r,o,c,r<c?a:i,r,n.x,n.y)){var l=Math.abs(r-n.y)/(i-n.x);(l<h||l===h&&n.x>s.x)&&Qe(n,t)&&(s=n,h=l)}n=n.next}return s}function We(t,e,n,i,r){return 1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*r)|t<<8))|t<<4))|t<<2))|t<<1)|(1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Xe(t){var e=t,n=t;do{e.x<n.x&&(n=e),e=e.next}while(e!==t);return n}function qe(t,e,n,i,r,a,o,s){return 0<=(r-o)*(e-s)-(t-o)*(a-s)&&0<=(t-o)*(i-s)-(n-o)*(e-s)&&0<=(n-o)*(a-s)-(r-o)*(i-s)}function Ye(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Je(t,e){return t.x===e.x&&t.y===e.y}function Ze(t,e,n,i){return!!(Je(t,e)&&Je(n,i)||Je(t,i)&&Je(n,e))||0<Ye(t,e,n)!=0<Ye(t,e,i)&&0<Ye(n,i,t)!=0<Ye(n,i,e)}function Qe(t,e){return 0>Ye(t.prev,t,t.next)?0<=Ye(t,e,t.next)&&0<=Ye(t,t.prev,e):0>Ye(t,e,t.prev)||0>Ye(t,t.next,e)}function Ke(t,e){var n=new en(t.i,t.x,t.y),i=new en(e.i,e.x,e.y),r=t.next,a=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,a.next=i,i.prev=a,i}function $e(t,e,n,i){return t=new en(t,e,n),i?(t.next=i.next,t.prev=i,i.next.prev=t,i.next=t):(t.prev=t,t.next=t),t}function tn(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function en(t,e,n){this.i=t,this.x=e,this.y=n,this.nextZ=this.prevZ=this.z=this.next=this.prev=null,this.steiner=!1}function nn(t){var e=t.length;2<e&&t[e-1].equals(t[0])&&t.pop()}function rn(t,e){for(var n=0;n<e.length;n++)t.push(e[n].x),t.push(e[n].y)}function an(t,e){T.call(this),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},this.fromBufferGeometry(new on(t,e)),this.mergeVertices()}function on(t,e){function i(t){function i(t,e,n){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(n).add(t)}function c(t,e,i){var r=t.x-e.x,a=t.y-e.y,o=i.x-t.x,s=i.y-t.y,c=r*r+a*a;if(Math.abs(r*s-a*o)>Number.EPSILON){var h=Math.sqrt(c),l=Math.sqrt(o*o+s*s);if(c=e.x-a/h,e=e.y+r/h,2>=(a=(o=c+r*(s=((i.x-s/l-c)*s-(i.y+o/l-e)*o)/(r*s-a*o))-t.x)*o+(r=e+a*s-t.y)*r))return new n(o,r);a=Math.sqrt(a/2)}else t=!1,r>Number.EPSILON?o>Number.EPSILON&&(t=!0):r<-Number.EPSILON?o<-Number.EPSILON&&(t=!0):Math.sign(a)===Math.sign(s)&&(t=!0),t?(o=-a,a=Math.sqrt(c)):(o=r,r=a,a=Math.sqrt(c/2));return new n(o/a,r/a)}function h(t,e){for(G=t.length;0<=--G;){var n=G,i=G-1;0>i&&(i=t.length-1);var a,s=g+2*_;for(a=0;a<s;a++){var c=F*a,h=F*(a+1),l=e+i+c,u=e+i+h;h=e+n+h,p(e+n+c),p(l),p(h),p(l),p(u),p(h),c=o.length/3,d((c=M.generateSideWallUV(r,o,c-6,c-3,c-2,c-1))[0]),d(c[1]),d(c[3]),d(c[1]),d(c[2]),d(c[3])}}}function l(t,e,n){f.push(t),f.push(e),f.push(n)}function u(t,e,n){p(t),p(e),p(n),t=o.length/3,d((t=M.generateTopUV(r,o,t-3,t-2,t-1))[0]),d(t[1]),d(t[2])}function p(t){o.push(f[3*t]),o.push(f[3*t+1]),o.push(f[3*t+2])}function d(t){s.push(t.x),s.push(t.y)}var f=[],m=void 0!==e.curveSegments?e.curveSegments:12,g=void 0!==e.steps?e.steps:1,v=void 0!==e.depth?e.depth:100,y=void 0===e.bevelEnabled||e.bevelEnabled,x=void 0!==e.bevelThickness?e.bevelThickness:6,b=void 0!==e.bevelSize?e.bevelSize:x-2,_=void 0!==e.bevelSegments?e.bevelSegments:3,w=e.extrudePath,M=void 0!==e.UVGenerator?e.UVGenerator:ia;void 0!==e.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),v=e.amount);var E,T=!1;if(w){var S=w.getSpacedPoints(g);T=!0,y=!1;var A=w.computeFrenetFrames(g,!1),L=new a,R=new a,C=new a}y||(b=x=_=0),t=(m=t.extractPoints(m)).shape;var P=m.holes;if(!na.isClockWise(t)){t=t.reverse();var O=0;for(E=P.length;O<E;O++){var I=P[O];
755na.isClockWise(I)&&(P[O]=I.reverse())}}var N=na.triangulateShape(t,P),D=t;for(O=0,E=P.length;O<E;O++)I=P[O],t=t.concat(I);var U,B,F=t.length,z=N.length;m=[];var G=0,H=D.length,V=H-1;for(U=G+1;G<H;G++,V++,U++)V===H&&(V=0),U===H&&(U=0),m[G]=c(D[G],D[V],D[U]);w=[];var k=m.concat();for(O=0,E=P.length;O<E;O++){I=P[O];var j=[];for(G=0,V=(H=I.length)-1,U=G+1;G<H;G++,V++,U++)V===H&&(V=0),U===H&&(U=0),j[G]=c(I[G],I[V],I[U]);w.push(j),k=k.concat(j)}for(V=0;V<_;V++){H=V/_;var W=x*Math.cos(H*Math.PI/2);for(U=b*Math.sin(H*Math.PI/2),G=0,H=D.length;G<H;G++){var X=i(D[G],m[G],U);l(X.x,X.y,-W)}for(O=0,E=P.length;O<E;O++)for(I=P[O],j=w[O],G=0,H=I.length;G<H;G++)l((X=i(I[G],j[G],U)).x,X.y,-W)}for(U=b,G=0;G<F;G++)X=y?i(t[G],k[G],U):t[G],T?(R.copy(A.normals[0]).multiplyScalar(X.x),L.copy(A.binormals[0]).multiplyScalar(X.y),C.copy(S[0]).add(R).add(L),l(C.x,C.y,C.z)):l(X.x,X.y,0);for(H=1;H<=g;H++)for(G=0;G<F;G++)X=y?i(t[G],k[G],U):t[G],T?(R.copy(A.normals[H]).multiplyScalar(X.x),L.copy(A.binormals[H]).multiplyScalar(X.y),C.copy(S[H]).add(R).add(L),l(C.x,C.y,C.z)):l(X.x,X.y,v/g*H);for(V=_-1;0<=V;V--){for(H=V/_,W=x*Math.cos(H*Math.PI/2),U=b*Math.sin(H*Math.PI/2),G=0,H=D.length;G<H;G++)l((X=i(D[G],m[G],U)).x,X.y,v+W);for(O=0,E=P.length;O<E;O++)for(I=P[O],j=w[O],G=0,H=I.length;G<H;G++)X=i(I[G],j[G],U),T?l(X.x,X.y+S[g-1].y,S[g-1].x+W):l(X.x,X.y,v+W)}!function(){var t=o.length/3;if(y){var e=0*F;for(G=0;G<z;G++)u((B=N[G])[2]+e,B[1]+e,B[0]+e);for(e=F*(g+2*_),G=0;G<z;G++)u((B=N[G])[0]+e,B[1]+e,B[2]+e)}else{for(G=0;G<z;G++)u((B=N[G])[2],B[1],B[0]);for(G=0;G<z;G++)u((B=N[G])[0]+F*g,B[1]+F*g,B[2]+F*g)}r.addGroup(t,o.length/3-t,0)}(),function(){var t=o.length/3,e=0;for(h(D,e),e+=D.length,O=0,E=P.length;O<E;O++)h(I=P[O],e),e+=I.length;r.addGroup(t,o.length/3-t,1)}()}F.call(this),this.type="ExtrudeBufferGeometry",this.parameters={shapes:t,options:e};for(var r=this,o=[],s=[],c=0,h=(t=Array.isArray(t)?t:[t]).length;c<h;c++)i(t[c]);this.addAttribute("position",new N(o,3)),this.addAttribute("uv",new N(s,2)),this.computeVertexNormals()}function sn(t,e,n){if(n.shapes=[],Array.isArray(t))for(var i=0,r=t.length;i<r;i++)n.shapes.push(t[i].uuid);else n.shapes.push(t.uuid);return void 0!==e.extrudePath&&(n.options.extrudePath=e.extrudePath.toJSON()),n}function cn(t,e){T.call(this),this.type="TextGeometry",this.parameters={text:t,parameters:e},this.fromBufferGeometry(new hn(t,e)),this.mergeVertices()}function hn(t,e){var n=(e=e||{}).font;if(!n||!n.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new T;t=n.generateShapes(t,e.size),e.depth=void 0!==e.height?e.height:50,void 0===e.bevelThickness&&(e.bevelThickness=10),void 0===e.bevelSize&&(e.bevelSize=8),void 0===e.bevelEnabled&&(e.bevelEnabled=!1),on.call(this,t,e),this.type="TextBufferGeometry"}function ln(t,e,n,i,r,a,o){T.call(this),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:i,phiLength:r,thetaStart:a,thetaLength:o},this.fromBufferGeometry(new un(t,e,n,i,r,a,o)),this.mergeVertices()}function un(t,e,n,i,r,o,s){F.call(this),this.type="SphereBufferGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:i,phiLength:r,thetaStart:o,thetaLength:s},t=t||1,e=Math.max(3,Math.floor(e)||8),n=Math.max(2,Math.floor(n)||6),i=void 0!==i?i:0,r=void 0!==r?r:2*Math.PI;var c,h,l=(o=void 0!==o?o:0)+(s=void 0!==s?s:Math.PI),u=0,p=[],d=new a,f=new a,m=[],g=[],v=[],y=[];for(h=0;h<=n;h++){var x=[],b=h/n;for(c=0;c<=e;c++){var _=c/e;d.x=-t*Math.cos(i+_*r)*Math.sin(o+b*s),d.y=t*Math.cos(o+b*s),d.z=t*Math.sin(i+_*r)*Math.sin(o+b*s),g.push(d.x,d.y,d.z),f.set(d.x,d.y,d.z).normalize(),v.push(f.x,f.y,f.z),y.push(_,1-b),x.push(u++)}p.push(x)}for(h=0;h<n;h++)for(c=0;c<e;c++)t=p[h][c+1],i=p[h][c],r=p[h+1][c],s=p[h+1][c+1],(0!==h||0<o)&&m.push(t,i,s),(h!==n-1||l<Math.PI)&&m.push(i,r,s);this.setIndex(m),this.addAttribute("position",new N(g,3)),this.addAttribute("normal",new N(v,3)),this.addAttribute("uv",new N(y,2))}function pn(t,e,n,i,r,a){T.call(this),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:n,phiSegments:i,thetaStart:r,thetaLength:a},this.fromBufferGeometry(new dn(t,e,n,i,r,a)),this.mergeVertices()}function dn(t,e,i,r,o,s){F.call(this),this.type="RingBufferGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:i,phiSegments:r,thetaStart:
755o,thetaLength:s},t=t||.5,e=e||1,o=void 0!==o?o:0,s=void 0!==s?s:2*Math.PI,i=void 0!==i?Math.max(3,i):8;var c,h,l=[],u=[],p=[],d=[],f=t,m=(e-t)/(r=void 0!==r?Math.max(1,r):1),g=new a,v=new n;for(c=0;c<=r;c++){for(h=0;h<=i;h++)t=o+h/i*s,g.x=f*Math.cos(t),g.y=f*Math.sin(t),u.push(g.x,g.y,g.z),p.push(0,0,1),v.x=(g.x/e+1)/2,v.y=(g.y/e+1)/2,d.push(v.x,v.y);f+=m}for(c=0;c<r;c++)for(e=c*(i+1),h=0;h<i;h++)o=(t=h+e)+i+1,s=t+i+2,f=t+1,l.push(t,o,f),l.push(o,s,f);this.setIndex(l),this.addAttribute("position",new N(u,3)),this.addAttribute("normal",new N(p,3)),this.addAttribute("uv",new N(d,2))}function fn(t,e,n,i){T.call(this),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:n,phiLength:i},this.fromBufferGeometry(new mn(t,e,n,i)),this.mergeVertices()}function mn(t,e,i,r){F.call(this),this.type="LatheBufferGeometry",this.parameters={points:t,segments:e,phiStart:i,phiLength:r},e=Math.floor(e)||12,i=i||0,r=r||2*Math.PI,r=Or.clamp(r,0,2*Math.PI);var o,s=[],c=[],h=[],l=1/e,u=new a,p=new n;for(o=0;o<=e;o++){var d=i+o*l*r,f=Math.sin(d),m=Math.cos(d);for(d=0;d<=t.length-1;d++)u.x=t[d].x*f,u.y=t[d].y,u.z=t[d].x*m,c.push(u.x,u.y,u.z),p.x=o/e,p.y=d/(t.length-1),h.push(p.x,p.y)}for(o=0;o<e;o++)for(d=0;d<t.length-1;d++)l=(i=d+o*t.length)+t.length,u=i+t.length+1,p=i+1,s.push(i,l,p),s.push(l,u,p);if(this.setIndex(s),this.addAttribute("position",new N(c,3)),this.addAttribute("uv",new N(h,2)),this.computeVertexNormals(),r===2*Math.PI)for(r=this.attributes.normal.array,s=new a,c=new a,h=new a,i=e*t.length*3,d=o=0;o<t.length;o++,d+=3)s.x=r[d+0],s.y=r[d+1],s.z=r[d+2],c.x=r[i+d+0],c.y=r[i+d+1],c.z=r[i+d+2],h.addVectors(s,c).normalize(),r[d+0]=r[i+d+0]=h.x,r[d+1]=r[i+d+1]=h.y,r[d+2]=r[i+d+2]=h.z}function gn(t,e){T.call(this),this.type="ShapeGeometry","object"==typeof e&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),e=e.curveSegments),this.parameters={shapes:t,curveSegments:e},this.fromBufferGeometry(new vn(t,e)),this.mergeVertices()}function vn(t,e){function n(t){var n,s=r.length/3,h=(t=t.extractPoints(e)).shape,l=t.holes;if(!1===na.isClockWise(h))for(h=h.reverse(),t=0,n=l.length;t<n;t++){var u=l[t];!0===na.isClockWise(u)&&(l[t]=u.reverse())}var p=na.triangulateShape(h,l);for(t=0,n=l.length;t<n;t++)u=l[t],h=h.concat(u);for(t=0,n=h.length;t<n;t++)u=h[t],r.push(u.x,u.y,0),a.push(0,0,1),o.push(u.x,u.y);for(t=0,n=p.length;t<n;t++)h=p[t],i.push(h[0]+s,h[1]+s,h[2]+s),c+=3}F.call(this),this.type="ShapeBufferGeometry",this.parameters={shapes:t,curveSegments:e},e=e||12;var i=[],r=[],a=[],o=[],s=0,c=0;if(!1===Array.isArray(t))n(t);else for(var h=0;h<t.length;h++)n(t[h]),this.addGroup(s,c,h),s+=c,c=0;this.setIndex(i),this.addAttribute("position",new N(r,3)),this.addAttribute("normal",new N(a,3)),this.addAttribute("uv",new N(o,2))}function yn(t,e){if(e.shapes=[],Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e.shapes.push(t[n].uuid);else e.shapes.push(t.uuid);return e}function xn(t,e){F.call(this),this.type="EdgesGeometry",this.parameters={thresholdAngle:e};var n=[];e=Math.cos(Or.DEG2RAD*(void 0!==e?e:1));var i=[0,0],r={},a=["a","b","c"];if(t.isBufferGeometry){var o=new T;o.fromBufferGeometry(t)}else o=t.clone();o.mergeVertices(),o.computeFaceNormals(),t=o.vertices;for(var s=0,c=(o=o.faces).length;s<c;s++)for(var h=o[s],l=0;3>l;l++){var u=h[a[l]],p=h[a[(l+1)%3]];i[0]=Math.min(u,p),i[1]=Math.max(u,p),void 0===r[u=i[0]+","+i[1]]?r[u]={index1:i[0],index2:i[1],face1:s,face2:void 0}:r[u].face2=s}for(u in r)(void 0===(i=r[u]).face2||o[i.face1].normal.dot(o[i.face2].normal)<=e)&&(a=t[i.index1],n.push(a.x,a.y,a.z),a=t[i.index2],n.push(a.x,a.y,a.z));this.addAttribute("position",new N(n,3))}function bn(t,e,n,i,r,a,o,s){T.call(this),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:n,radialSegments:i,heightSegments:r,openEnded:a,thetaStart:o,thetaLength:s},this.fromBufferGeometry(new _n(t,e,n,i,r,a,o,s)),this.mergeVertices()}function _n(t,e,i,r,o,s,c,h){function l(i){var o,s=new n,l=new a,v=0,b=!0===i?t:e,_=!0===i?1:-1,w=g;for(o=1;o<=r;o++)d.push(0,y*_,0),f.push(0,_,0),m.push(.5,.5),g++;var M=g;
755for(o=0;o<=r;o++){var E=o/r*h+c,T=Math.cos(E);E=Math.sin(E),l.x=b*E,l.y=y*_,l.z=b*T,d.push(l.x,l.y,l.z),f.push(0,_,0),s.x=.5*T+.5,s.y=.5*E*_+.5,m.push(s.x,s.y),g++}for(o=0;o<r;o++)s=w+o,l=M+o,!0===i?p.push(l,l+1,s):p.push(l+1,l,s),v+=3;u.addGroup(x,v,!0===i?1:2),x+=v}F.call(this),this.type="CylinderBufferGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:i,radialSegments:r,heightSegments:o,openEnded:s,thetaStart:c,thetaLength:h};var u=this;t=void 0!==t?t:1,e=void 0!==e?e:1,i=i||1,r=Math.floor(r)||8,o=Math.floor(o)||1,s=void 0!==s&&s,c=void 0!==c?c:0,h=void 0!==h?h:2*Math.PI;var p=[],d=[],f=[],m=[],g=0,v=[],y=i/2,x=0;!function(){var n,s,l=new a,b=new a,_=0,w=(e-t)/i;for(s=0;s<=o;s++){var M=[],E=s/o,T=E*(e-t)+t;for(n=0;n<=r;n++){var S=n/r,A=S*h+c,L=Math.sin(A);A=Math.cos(A),b.x=T*L,b.y=-E*i+y,b.z=T*A,d.push(b.x,b.y,b.z),l.set(L,w,A).normalize(),f.push(l.x,l.y,l.z),m.push(S,1-E),M.push(g++)}v.push(M)}for(n=0;n<r;n++)for(s=0;s<o;s++)l=v[s+1][n],b=v[s+1][n+1],w=v[s][n+1],p.push(v[s][n],l,w),p.push(l,b,w),_+=6;u.addGroup(x,_,0),x+=_}(),!1===s&&(0<t&&l(!0),0<e&&l(!1)),this.setIndex(p),this.addAttribute("position",new N(d,3)),this.addAttribute("normal",new N(f,3)),this.addAttribute("uv",new N(m,2))}function wn(t,e,n,i,r,a,o){bn.call(this,0,t,e,n,i,r,a,o),this.type="C
755oneGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function Mn(t,e,n,i,r,a,o){_n.call(this,0,t,e,n,i,r,a,o),this.type="ConeBufferGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function En(t,e,n,i){T.call(this),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},this.fromBufferGeometry(new Tn(t,e,n,i)),this.mergeVertices()}function Tn(t,e,i,r){F.call(this),this.type="CircleBufferGeometry",this.parameters={radius:t,segments:e,thetaStart:i,thetaLength:r},t=t||1,e=void 0!==e?Math.max(3,e):8,i=void 0!==i?i:0,r=void 0!==r?r:2*Math.PI;var o,s=[],c=[],h=[],l=[],u=new a,p=new n;c.push(0,0,0),h.push(0,0,1),l.push(.5,.5);var d=0;for(o=3;d<=e;d++,o+=3){var f=i+d/e*r;u.x=t*Math.cos(f),u.y=t*Math.sin(f),c.push(u.x,u.y,u.z),h.push(0,0,1),p.x=(c[o]/t+1)/2,p.y=(c[o+1]/t+1)/2,l.push(p.x,p.y)}for(o=1;o<=e;o++)s.push(o,o+1,0);this.setIndex(s),this.addAttribute("position",new N(c,3)),this.addAttribute("normal",new N(h,3)),this.addAttribute("uv",new N(l,2))}function Sn(t){k.call(this),this.type="ShadowMaterial",this.color=new g(0),this.transparent=!0,this.setValues(t)}function An(t){W.call(this,t),this.type="RawShaderMaterial"}function Ln(t){k.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new g(16777215),this.metalness=this.roughness=.5,this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new g(0),this.emissiveIntensity=1,this.bumpMap=this.emissiveMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new n(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.envMap=this.alphaMap=this.metalnessMap=this.roughnessMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Rn(t){Ln.call(this),this.defines={PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.clearCoatRoughness=this.clearCoat=0,this.setValues(t)}function Cn(t){k.call(this),this.type="MeshPhongMaterial",this.color=new g(16777215),this.specular=new g(1118481),this.shininess=30,this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new g(0),this.emissiveIntensity=1,this.bumpMap=this.emissiveMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new n(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Pn(t){Cn.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.gradientMap=null,this.setValues(t)}function On(t){k.call(this),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new n(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.lights=this.fog=!1,this.setValues(t)}function In(t){k.call(this),this.type="MeshLambertMaterial",this.color=new g(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new g(0),this.emissiveIntensity=1,this.envMap=this.alphaMap=this.specularMap=this.emissiveMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Nn(t){pe.call(this),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}function Dn(t,e,n){var i=this,r=!1,a=0,o=0,s=void 0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){o++,!1===r&&void 0!==i.onStart&&i.onStart(t,a,o),r=!0},this.itemEnd=function(t){a++,void 0!==i.onProgress&&i.onProgress(t,a,o),a===o&&(r=!1,void 0!==i.onLoad)&&i.onLoad()},this.itemError=function(t){void 0!==i.onError&&i.onError(t)},this.resolveURL=function(t){return s?s(t):t},this.setURLModifier=function(t){return s=t,this}}function Un(t){this.manager=void 0!==t?t:sa}function Bn(t){this.manager=void 0!==t?t:sa,this._parser=null}function Fn(t){this.manager=void 0!==t?t:sa,this._parser=null}function zn(t){this.manager=void 0!==t?t:sa}function Gn(t){this.manager=void 0!==t?t:sa}function Hn(t){this.manager=void 0!==t?t:sa}function Vn(){this.type="Curve",this.arcLengthDivisions=200}function kn(t,e,n,i,r,a,o,s){Vn.call(this),this.type="EllipseCurve",this.aX=t||0,this.aY=e||0,this.xRadius=n||1,this.yRadius=i||1,this.aStartAngle=r||0,this.aEndAngle=a||2*Math.PI,this.aClockwise=o||!1,this.aRotation=s||0}function jn(t,e,n,i,r,a){kn.call(this,t,e,n,n,i,r,a),this.type="ArcCurve"}function Wn(){var t=0,e=0,n=0,i=0;return{initCatmullRom:function(r,a,o,s,c){t=a,e=r=c*(o-r),n=-3*a+3*o-2*r-(s=c*(s-a)),i=2*a-2*o+r+s},initNonuniformCatmullRom:function(r,a,o,s,c,h,l){t=a,e=r=((a-r)/c-(o-r)/(c+h)+(o-a)/h)*h,n=-3*a+3*o-2*r-(s=((o-a)/h-(s-a)/(h+l)+(s-o)/l)*h),i=2*a-2*o+r+s},calc:function(r){var a=r*r;return t+e*r+n*a+i*a*r}}}function Xn(t,e,n,i){Vn.call(this),this.type="CatmullRomCurve3",this.points=t||[],this.closed=e||!1,this.curveType=n||"centripetal",this.tension=i||.5}function qn(t,e,n,i,r){var a=t*t;return(2*n-2*i+(e=.5*(i-e))+(r=.5*(r-n)))*t*a+(-3*n+3*i-2*e-r)*a+e*t+n}
755function Yn(t,e,n,i){var r=1-t;return r*r*e+2*(1-t)*t*n+t*t*i}function Jn(t,e,n,i,r){var a=1-t,o=1-t;return a*a*a*e+3*o*o*t*n+3*(1-t)*t*t*i+t*t*t*r}function Zn(t,e,i,r){Vn.call(this),this.type="CubicBezierCurve",this.v0=t||new n,this.v1=e||new n,this.v2=i||new n,this.v3=r||new n}function Qn(t,e,n,i){Vn.call(this),this.type="CubicBezierCurve3",this.v0=t||new a,this.v1=e||new a,this.v2=n||new a,this.v3=i||new a}function Kn(t,e){Vn.call(this),this.type="LineCurve",this.v1=t||new n,this.v2=e||new n}function $n(t,e){Vn.call(this),this.type="LineCurve3",this.v1=t||new a,this.v2=e||new a}function ti(t,e,i){Vn.call(this),this.type="QuadraticBezierCurve",this.v0=t||new n,this.v1=e||new n,this.v2=i||new n}function ei(t,e,n){Vn.call(this),this.type="QuadraticBezierCurve3",this.v0=t||new a,this.v1=e||new a,this.v2=n||new a}function ni(t){Vn.call(this),this.type="SplineCurve",this.points=t||[]}function ii(){Vn.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function ri(t){ii.call(this),this.type="Path",this.currentPoint=new n,t&&this.setFromPoints(t)}function ai(t){ri.call(this,t),this.uuid=Or.generateUUID(),this.type="Shape",this.holes=[]}function oi(t,e){_.call(this),this.type="Light",this.color=new g(t),this.intensity=void 0!==e?e:1,this.receiveShadow=void 0}function si(t,e,n){oi.call(this,t,n),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(_.DefaultUp),this.updateMatrix(),this.groundColor=new g(e)}function ci(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new n(512,512),this.map=null,this.matrix=new i}function hi(){ci.call(this,new Zt(50,1,.5,500))}function li(t,e,n,i,r,a){oi.call(this,t,e),this.type="SpotLight",this.position.copy(_.DefaultUp),this.updateMatrix(),this.target=new _,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(t){this.intensity=t/Math.PI}}),this.distance=void 0!==n?n:0,this.angle=void 0!==i?i:Math.PI/3,this.penumbra=void 0!==r?r:0,this.decay=void 0!==a?a:1,this.shadow=new hi}function ui(t,e,n,i){oi.call(this,t,e),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(t){this.intensity=t/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==i?i:1,this.shadow=new ci(new Zt(90,1,.5,500))}function pi(){ci.call(this,new M(-5,5,5,-5,.5,500))}function di(t,e){oi.call(this,t,e),this.type="DirectionalLight",this.position.copy(_.DefaultUp),this.updateMatrix(),this.target=new _,this.shadow=new pi}function fi(t,e){oi.call(this,t,e),this.type="AmbientLight",this.castShadow=void 0}function mi(t,e,n,i){oi.call(this,t,e),this.type="RectAreaLight",this.width=void 0!==n?n:10,this.height=void 0!==i?i:10}function gi(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n}function vi(t,e,n,i){gi.call(this,t,e,n,i),this._offsetNext=this._weightNext=this._offsetPrev=this._weightPrev=-0}function yi(t,e,n,i){gi.call(this,t,e,n,i)}function xi(t,e,n,i){gi.call(this,t,e,n,i)}function bi(t,e,n,i){if(void 0===t)throw Error("THREE.KeyframeTrack: track name is undefined");if(void 0===e||0===e.length)throw Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=fa.convertArray(e,this.TimeBufferType),this.values=fa.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}function _i(t,e,n){bi.call(this,t,e,n)}function wi(t,e,n,i){bi.call(this,t,e,n,i)}function Mi(t,e,n,i){bi.call(this,t,e,n,i)}function Ei(t,e,n,i){gi.call(this,t,e,n,i)}function Ti(t,e,n,i){bi.call(this,t,e,n,i)}function Si(t,e,n,i){bi.call(this,t,e,n,i)}function Ai(t,e,n,i){bi.call(this,t,e,n,i)}function Li(t,e,n){this.name=t,this.tracks=n,this.duration=void 0!==e?e:-1,this.uuid=Or.generateUUID(),0>this.duration&&this.resetDuration()}function Ri(t){if(void 0===t.type)throw Error("THREE.KeyframeTrack: track type undefined, can not parse");var e=function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return Mi;
755case"vector":case"vector2":case"vector3":case"vector4":return Ai;case"color":return wi;case"quaternion":return Ti;case"bool":case"boolean":return _i;case"string":return Si}throw Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}(t.type);if(void 0===t.times){var n=[],i=[];fa.flattenJSON(t.keys,n,i,"value"),t.times=n,t.values=i}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}function Ci(t){this.manager=void 0!==t?t:sa,this.textures={}}function Pi(t){this.manager=void 0!==t?t:sa}function Oi(){}function Ii(t){"boolean"==typeof t&&(console.warn("THREE.JSONLoader: showStatus parameter has been removed from constructor."),t=void 0),this.manager=void 0!==t?t:sa,this.withCredentials=!1}function Ni(t){this.manager=void 0!==t?t:sa,this.texturePath=""}function Di(t){"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.manager=void 0!==t?t:sa,this.options=void 0}function Ui(){this.type="ShapePath",this.color=new g,this.subPaths=[],this.currentPath=null}function Bi(t){this.type="Font",this.data=t}function Fi(t){this.manager=void 0!==t?t:sa}function zi(t){this.manager=void 0!==t?t:sa}function Gi(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Zt,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Zt,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function Hi(t,e,n){_.call(this),this.type="CubeCamera";var i=new Zt(90,1,t,e);i.up.set(0,-1,0),i.lookAt(new a(1,0,0)),this.add(i);var r=new Zt(90,1,t,e);r.up.set(0,-1,0),r.lookAt(new a(-1,0,0)),this.add(r);var o=new Zt(90,1,t,e);o.up.set(0,0,1),o.lookAt(new a(0,1,0)),this.add(o);var s=new Zt(90,1,t,e);s.up.set(0,0,-1),s.lookAt(new a(0,-1,0)),this.add(s);var c=new Zt(90,1,t,e);c.up.set(0,-1,0),c.lookAt(new a(0,0,1)),this.add(c);var h=new Zt(90,1,t,e);h.up.set(0,-1,0),h.lookAt(new a(0,0,-1)),this.add(h),this.renderTarget=new l(n,n,{format:1022,magFilter:1006,minFilter:1006}),this.renderTarget.texture.name="CubeCamera",this.update=function(t,e){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,a=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,n.activeCubeFace=0,t.render(e,i,n),n.activeCubeFace=1,t.render(e,r,n),n.activeCubeFace=2,t.render(e,o,n),n.activeCubeFace=3,t.render(e,s,n),n.activeCubeFace=4,t.render(e,c,n),n.texture.generateMipmaps=a,n.activeCubeFace=5,t.render(e,h,n),t.setRenderTarget(null)},this.clear=function(t,e,n,i){for(var r=this.renderTarget,a=0;6>a;a++)r.activeCubeFace=a,t.setRenderTarget(r),t.clear(e,n,i);t.setRenderTarget(null)}}function Vi(){_.call(this),this.type="AudioListener",this.context=Ma.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null}function ki(t){_.call(this),this.type="Audio",this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.offset=this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this.filters=[]}function ji(t){ki.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function Wi(t,e){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=void 0!==e?e:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}function Xi(t,e,n){switch(this.binding=t,this.valueSize=n,t=Float64Array,e){case"quaternion":e=this._slerp;break;case"string":case"bool":t=Array,e=this._select;break;default:e=this._lerp}this.buffer=new t(4*n),this._mixBufferRegion=e,this.referenceCount=this.useCount=this.cumulativeWeight=0}function qi(t,e,n){n=n||Yi.parseTrackName(e),this._targetGroup=t,this._bindings=t.subscribe_(e,n)}function Yi(t,e,n){this.path=e,this.parsedPath=n||Yi.parseTrackName(e),this.node=Yi.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}function Ji(){this.uuid=Or.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var t={};this._indicesByUUID=t;
755for(var e=0,n=arguments.length;e!==n;++e)t[arguments[e].uuid]=e;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var i=this;this.stats={objects:{get total(){return i._objects.length},get inUse(){return this.total-i.nCachedObjects_}},get bindingsPerObject(){return i._bindings.length}}}function Zi(t,e,n){this._mixer=t,this._clip=e,this._localRoot=n||null,e=(t=e.tracks).length,n=Array(e);for(var i={endingStart:2400,endingEnd:2400},r=0;r!==e;++r){var a=t[r].createInterpolant(null);n[r]=a,a.settings=i}this._interpolantSettings=i,this._interpolants=n,this._propertyBindings=Array(e),this._weightInterpolant=this._timeScaleInterpolant=this._byClipCacheIndex=this._cacheIndex=null,this.loop=2201,this._loopCount=-1,this._startTime=null,this.time=0,this._effectiveWeight=this.weight=this._effectiveTimeScale=this.timeScale=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtEnd=this.zeroSlopeAtStart=!0}function Qi(t){this._root=t,this._initMemoryManager(),this.time=this._accuIndex=0,this.timeScale=1}function Ki(t,e){"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=e),this.value=t}function $i(){F.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function tr(t,e,n){re.call(this,t,e),this.meshPerAttribute=n||1}function er(t,e,n){S.call(this,t,e),this.meshPerAttribute=n||1}function nr(t,e,n,i){this.ray=new X(t,e),this.near=n||0,this.far=i||1/0,this.params={Mesh:{},Line:{},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})}function ir(t,e){return t.distance-e.distance}function rr(t,e,n,i){if(!1!==t.visible&&(t.raycast(e,n),!0===i)){i=0;for(var r=(t=t.children).length;i<r;i++)rr(t[i],e,n,!0)}}function ar(t){this.autoStart=void 0===t||t,this.elapsedTime=this.oldTime=this.startTime=0,this.running=!1}function or(t,e,n){return this.radius=void 0!==t?t:1,this.phi=void 0!==e?e:0,this.theta=void 0!==n?n:0,this}function sr(t,e,n){return this.radius=void 0!==t?t:1,this.theta=void 0!==e?e:0,this.y=void 0!==n?n:0,this}function cr(t,e){this.min=void 0!==t?t:new n(1/0,1/0),this.max=void 0!==e?e:new n(-1/0,-1/0)}function hr(t,e){this.start=void 0!==t?t:new a,this.end=void 0!==e?e:new a}function lr(t){_.call(this),this.material=t,this.render=function(){}}function ur(t,e,n,i){this.object=t,this.size=void 0!==e?e:1,t=void 0!==n?n:16711680,i=void 0!==i?i:1,e=0,(n=this.object.geometry)&&n.isGeometry?e=3*n.faces.length:n&&n.isBufferGeometry&&(e=n.attributes.normal.count),n=new F,e=new N(6*e,3),n.addAttribute("position",e),fe.call(this,n,new pe({color:t,linewidth:i})),this.matrixAutoUpdate=!1,this.update()}function pr(t,e){_.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e,t=new F,e=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(var n=0,i=1;32>n;n++,i++){var r=n/32*Math.PI*2,a=i/32*Math.PI*2;e.push(Math.cos(r),Math.sin(r),1,Math.cos(a),Math.sin(a),1)}t.addAttribute("position",new N(e,3)),e=new pe({fog:!1}),this.cone=new fe(t,e),this.add(this.cone),this.update()}function dr(t){for(var e=function t(e){var n=[];e&&e.isBone&&n.push(e);for(var i=0;i<e.children.length;i++)n.push.apply(n,t(e.children[i]));return n}(t),n=new F,i=[],r=[],a=new g(0,0,1),o=new g(0,1,0),s=0;s<e.length;s++){var c=e[s];c.parent&&c.parent.isBone&&(i.push(0,0,0),i.push(0,0,0),r.push(a.r,a.g,a.b),r.push(o.r,o.g,o.b))}n.addAttribute("position",new N(i,3)),n.addAttribute("color",new 
755N(r,3)),i=new pe({vertexColors:2,depthTest:!1,depthWrite:!1,transparent:!0}),fe.call(this,n,i),this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}function fr(t,e,n){this.light=t,this.light.updateMatrixWorld(),this.color=n,t=new un(e,4,2),e=new j({wireframe:!0,fog:!1}),Y.call(this,t,e),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}function mr(t,e){_.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e,t=new pe({fog:!1}),(e=new F).addAttribute("position",new S(new Float32Array(15),3)),this.line=new de(e,t),this.add(this.line),this.update()}function gr(t,e,n){_.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,(t=new Ce(e)).rotateY(.5*Math.PI),this.material=new j({wireframe:!0,fog:!1}),void 0===this.color&&(this.material.vertexColors=2),e=t.getAttribute("position"),e=new Float32Array(3*e.count),t.addAttribute("color",new S(e,3)),this.add(new Y(t,this.material)),this.update()}function vr(t,e,n,i){t=t||10,e=e||10,n=new g(void 0!==n?n:4473924),i=new g(void 0!==i?i:8947848);var r=e/2,a=t/e,o=t/2;t=[];for(var s=[],c=0,h=0,l=-o;c<=e;c++,l+=a){t.push(-o,0,l,o,0,l),t.push(l,0,-o,l,0,o);var u=c===r?n:i;u.toArray(s,h),h+=3,u.toArray(s,h),h+=3,u.toArray(s,h),h+=3,u.toArray(s,h),h+=3}(e=new F).addAttribute("position",new N(t,3)),e.addAttribute("color",new 
755N(s,3)),n=new pe({vertexColors:2}),fe.call(this,e,n)}function yr(t,e,n,i,r,a){t=t||10,e=e||16,n=n||8,i=i||64,r=new g(void 0!==r?r:4473924),a=new g(void 0!==a?a:8947848);var o,s=[],c=[];for(o=0;o<=e;o++){var h=o/e*2*Math.PI,l=Math.sin(h)*t;h=Math.cos(h)*t,s.push(0,0,0),s.push(l,0,h);var u=1&o?r:a;c.push(u.r,u.g,u.b),c.push(u.r,u.g,u.b)}for(o=0;o<=n;o++){u=1&o?r:a;var p=t-t/n*o;for(e=0;e<i;e++)h=e/i*2*Math.PI,l=Math.sin(h)*p,h=Math.cos(h)*p,s.push(l,0,h),c.push(u.r,u.g,u.b),h=(e+1)/i*2*Math.PI,l=Math.sin(h)*p,h=Math.cos(h)*p,s.push(l,0,h),c.push(u.r,u.g,u.b)}(t=new F).addAttribute("position",new N(s,3)),t.addAttribute("color",new N(c,3)),s=new pe({vertexColors:2}),fe.call(this,t,s)}function xr(t,e,n,i){this.object=t,this.size=void 0!==e?e:1,t=void 0!==n?n:16776960,i=void 0!==i?i:1,e=0,(n=this.object.geometry)&&n.isGeometry?e=n.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead."),n=new F,e=new N(6*e,3),n.addAttribute("position",e),fe.call(this,n,new pe({color:t,linewidth:i})),this.matrixAutoUpdate=!1,this.update()}function br(t,e,n){_.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,void 0===e&&(e=1),(t=new F).addAttribute("position",new N([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3)),e=new pe({fog:!1}),this.lightPlane=new de(t,e),this.add(this.lightPlane),(t=new F).addAttribute("position",new N([0,0,0,0,0,1],3)),this.targetLine=new de(t,e),this.add(this.targetLine),this.update()}function _r(t){function e(t,e,i){n(t,i),n(e,i)}function n(t,e){a.push(0,0,0),o.push(e.r,e.g,e.b),void 0===s[t]&&(s[t]=[]),s[t].push(a.length/3-1)}var i=new F,r=new pe({color:16777215,vertexColors:1}),a=[],o=[],s={},c=new g(16755200),h=new g(16711680),l=new g(43775),u=new g(16777215),p=new g(3355443);e("n1","n2",c),e("n2","n4",c),e("n4","n3",c),e("n3","n1",c),e("f1","f2",c),e("f2","f4",c),e("f4","f3",c),e("f3","f1",c),e("n1","f1",c),e("n2","f2",c),e("n3","f3",c),e("n4","f4",c),e("p","n1",h),e("p","n2",h),e("p","n3",h),e("p","n4",h),e("u1","u2",l),e("u2","u3",l),e("u3","u1",l),e("c","t",u),e("p","c",p),e("cn1","cn2",p),e("cn3","cn4",p),e("cf1","cf2",p),e("cf3","cf4",p),i.addAttribute("position",new N(a,3)),i.addAttribute("color",new 
755N(o,3)),fe.call(this,i,r),this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=s,this.update()}function wr(t,e){this.object=t,void 0===e&&(e=16776960),t=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var n=new Float32Array(24),i=new F;i.setIndex(new S(t,1)),i.addAttribute("position",new S(n,3)),fe.call(this,i,new pe({color:e})),this.matrixAutoUpdate=!1,this.update()}function Mr(t,e){this.type="Box3Helper",this.box=t,t=void 0!==e?e:16776960,e=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var n=new F;n.setIndex(new S(e,1)),n.addAttribute("position",new N([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),fe.call(this,n,new pe({color:t})),this.geometry.computeBoundingSphere()}function Er(t,e,n){this.type="PlaneHelper",this.plane=t,this.size=void 0===e?1:e,t=void 0!==n?n:16776960,(e=new F).addAttribute("position",new N([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,0,1,0,0,0],3)),e.computeBoundingSphere(),de.call(this,e,new pe({color:t})),(e=new F).addAttribute("position",new N([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),e.computeBoundingSphere(),this.add(new Y(e,new j({color:t,o
vendor: 6,398 bytes, line 755
755pacity:.2,transparent:!0,depthWrite:!1})))}function Tr(t,e,n,i,r,a){_.call(this),void 0===i&&(i=16776960),void 0===n&&(n=1),void 0===r&&(r=.2*n),void 0===a&&(a=.2*r),void 0===_a&&((_a=new F).addAttribute("position",new N([0,0,0,0,1,0],3)),(wa=new _n(0,.5,1,5,1)).translate(0,-.5,0)),this.position.copy(e),this.line=new de(_a,new pe({color:i})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new Y(wa,new j({color:i})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(n,r,a)}function Sr(t){var e=[0,0,0,t=t||1,0,0,0,0,0,0,t,0,0,0,0,0,0,t];(t=new F).addAttribute("position",new N(e,3)),t.addAttribute("color",new N([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),e=new pe({vertexColors:2}),fe.call(this,t,e)}function Ar(t){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),Xn.call(this,t),this.type="catmullrom",this.closed=!0}function Lr(t){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),Xn.call(this,t),this.type="catmullrom"}function Rr(t){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),Xn.call(this,t),this.type="catmullrom"}void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),void 0===Number.isInteger&&(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),void 0===Math.sign&&(Math.sign=function(t){return 0>t?-1:0<t?1:+t}),!1=="name"in Function.prototype&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),void 0===Object.assign&&(Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(void 0!==i&&null!==i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}),Object.assign(e.prototype,{addEventListener:function(t,e){void 0===this._listeners&&(this._listeners={});var n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)},hasEventListener:function(t,e){if(void 0===this._listeners)return!1;var n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)},removeEventListener:function(t,e){void 0!==this._listeners&&(void 0!==(t=this._listeners[t])&&(-1!==(e=t.indexOf(e))&&t.splice(e,1)))},dispatchEvent:function(t){if(void 0!==this._listeners){var e=this._listeners[t.type];if(void 0!==e){t.target=this;for(var n=0,i=(e=e.slice(0)).length;n<i;n++)e[n].call(this,t)}}}});var Cr,Pr,Or={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){for(var t=[],e=0;256>e;e++)t[e]=(16>e?"0":"")+e.toString(16);return function(){var e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(t[255&e]+t[e>>8&255]+t[e>>16&255]+t[e>>24&255]+"-"+t[255&n]+t[n>>8&255]+"-"+t[n>>16&15|64]+t[n>>24&255]+"-"+t[63&i|128]+t[i>>8&255]+"-"+t[i>>16&255]+t[i>>24&255]+t[255&r]+t[r>>8&255]+t[r>>16&255]+t[r>>24&255]).toUpperCase()}}(),clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)},lerp:function(t,e,n){return(1-n)*t+n*e},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*Or.DEG2RAD},radToDeg:function(t){return t*Or.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}};Object.defineProperties(n.prototype,{width:{get:function(){return this.x},set:function(t){this.x=t}},height:{get:function(){return this.y},set:function(t){this.y=t}}}),Object.assign(n.prototype,{isVector2:!0,set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},applyMatrix3:function(t){var e=this.x,n=this.y;return t=t.elements,this.x=t[0]*e+t[3]*n+t[6],this.y=t[1]*e+t[4]*n+t[7],this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:(Cr=new n,Pr=new n,function(t,e){return Cr.set(t,t),Pr.set(e,e),this.clamp(Cr,Pr)}),clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}
755,round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var t=Math.atan2(this.y,this.x);return 0>t&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x;return e*e+(t=this.y-t.y)*t},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var n=Math.cos(e);e=Math.sin(e);var i=this.x-t.x,r=this.y-t.y;return this.x=i*n-r*e+t.x,this.y=i*e+r*n+t.y,this}}),Object.assign(i.prototype,{isMatrix4:!0,set:function(t,e,n,i,r,a,o,s,c,h,l,u,p,d,f,m){var g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=i,g[1]=r,g[5]=a,g[9]=o,g[13]=s,g[2]=c,g[6]=h,g[10]=l,g[14]=u,g[3]=p,g[7]=d,g[11]=f,g[15]=m,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return(new i).fromArray(this.elements)},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},copyPosition:function(t){var e=this.elements;return t=t.elements,e[12]=t[12],e[13]=t[13],e[14]=t[14],this},extractBasis:function(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this},extractRotation:function(){var t=new a;return function(e){var n=this.elements,i=e.elements,r=1/t.setFromMatrixColumn(e,0).length(),a=1/t.setFromMatrixColumn(e,1).length();return e=1/t.setFromMatrixColumn(e,2).length(),n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[3]=0,n[4]=i[4]*a,n[5]=i[5]*a,n[6]=i[6]*a,n[7]=0,n[8]=i[8]*e,n[9]=i[9]*e,n[10]=i[10]*e,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}}(),makeRotationFromEuler:function(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e=this.elements,n=t.x,i=t.y,r=t.z,a=Math.cos(n);n=Math.sin(n);var o=Math.cos(i);i=Math.sin(i);var s=Math.cos(r);if(r=Math.sin(r),"XYZ"===t.order){t=a*s;var c=a*r,h=n*s,l=n*r;e[0]=o*s,e[4]=-o*r,e[8]=i,e[1]=c+h*i,e[5]=t-l*i,e[9]=-n*o,e[2]=l-t*i,e[6]=h+c*i,e[10]=a*o}else"YXZ"===t.order?(t=o*s,c=o*r,h=i*s,l=i*r,e[0]=t+l*n,e[4]=h*n-c,e[8]=a*i,e[1]=a*r,e[5]=a*s,e[9]=-n,e[2]=c*n-h,e[6]=l+t*n,e[10]=a*o):"ZXY"===t.order?(t=o*s,c=o*r,h=i*s,l=i*r,e[0]=t-l*n,e[4]=-a*r,e[8]=h+c*n,e[1]=c+h*n,e[5]=a*s,e[9]=l-t*n,e[2]=-a*i,e[6]=n,e[10]=a*o):"ZYX"===t.order?(t=a*s,c=a*r,h=n*s,l=n*r,e[0]=o*s,e[4]=h*i-c,e[8]=t*i+l,e[1]=o*r,e[5]=l*i+t,e[9]=c*i-h,e[2]=-i,e[6]=n*o,e[10]=a*o):"YZX"===t.order?(t=a*o,c=a*i,h=n*o,l=n*i,e[0]=o*s,e[4]=l-t*r,e[8]=h*r+c,e[1]=r,e[5]=a*s,e[9]=-n*s,e[2]=-i*s,e[6]=c*r+h,e[10]=t-l*r):"XZY"===t.order&&(t=a*o,c=a*i,h=n*o,l=n*i,e[0]=o*s,e[4]=-r,e[8]=i*s,e[1]=t*r+l,e[5]=a*s,e[9]=c*r-h,e[2]=h*r-c,e[6]=n*s,e[10
755]=l*r+t);return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:function(){var t=new a(0,0,0),e=new a(1,1,1);return function(n){return this.compose(t,n,e)}}(),lookAt:function(){var t=new a,e=new a,n=new a;return function(i,r,a){var o=this.elements;return n.subVectors(i,r),0===n.lengthSq()&&(n.z=1),n.normalize(),t.crossVectors(a,n),0===t.lengthSq()&&(1===Math.abs(a.z)?n.x+=1e-4:n.z+=1e-4,n.normalize(),t.crossVectors(a,n)),t.normalize(),e.crossVectors(n,t),o[0]=t.x,o[4]=e.x,o[8]=n.x,o[1]=t.y,o[5]=e.y,o[9]=n.y,o[2]=t.z,o[6]=e.z,o[10]=n.z,this}}(),multiply:function(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,i=e.elements;e=this.elements,t=n[0];var r=n[4],a=n[8],o=n[12],s=n[1],c=n[5],h=n[9],l=n[13],u=n[2],p=n[6],d=n[10],f=n[14],m=n[3],g=n[7],v=n[11];n=n[15];var y=i[0],x=i[4],b=i[8],_=i[12],w=i[1],M=i[5],E=i[9],T=i[13],S=i[2],A=i[6],L=i[10],R=i[14],C=i[3],P=i[7],O=i[11];return i=i[15],e[0]=t*y+r*w+a*S+o*C,e[4]=t*x+r*M+a*A+o*P,e[8]=t*b+r*E+a*L+o*O,e[12]=t*_+r*T+a*R+o*i,e[1]=s*y+c*w+h*S+l*C,e[5]=s*x+c*M+h*A+l*P,e[9]=s*b+c*E+h*L+l*O,e[13]=s*_+c*T+h*R+l*i,e[2]=u*y+p*w+d*S+f*C,e[6]=u*x+p*M+d*A+f*P,e[10]=u*b+p*E+d*L+f*O,e[14]=u*_+p*T+d*R+f*i,e[3]=m*y+g*w+v*S+n*C,e[7]=m*x+g*M+v*A+n*P,e[11]=m*b+g*E+v*L+n*O,e[15]=m*_+g*T+v*R+n*i,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},applyToBufferAttribute:function(){var t=new a;return function(e){for(var n=0,i=e.count;n<i;n++)t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.applyMatrix4(this),e.setXYZ(n,t.x,t.y,t.z);return e}}(),determinant:function(){var t=this.elements,e=t[0],n=t[4],i=t[8],r=t[12],a=t[1],o=t[5],s=t[9],c=t[13],h=t[2],l=t[6],u=t[10],p=t[14];return t[3]*(+r*s*l-i*c*l-r*o*u+n*c*u+i*o*p-n*s*p)+t[7]*(+e*s*p-e*c*u+r*a*u-i*a*p+i*c*h-r*s*h)+t[11]*(+e*c*l-e*o*p-r*a*l+n*a*p+r*o*h-n*c*h)+t[15]*(-i*o*h-e*s*l+e*o*u+i*a*l-n*a*u+n*s*h)},transpose:function(){var t=this.elements,e=t[1];return t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this},setPosition:function(t){var e=this.elements;return e[12]=t.x,e[13]=t.y,e[14]=t.z,this},getInverse:function(t,e){var n=this.elements,i=t.elements;t=i[0];var r=i[1],a=i[2],o=i[3],s=i[4],c=i[5],h=i[6],l=i[7],u=i[8],p=i[9],d=i[10],f=i[11],m=i[12],g=i[13],v=i[14],y=p*v*l-g*d*l+g*h*f-c*v*f-p*h*(i=i[15])+c*d*i,x=m*d*l-u*v*l-m*h*f+s*v*f+u*h*i-s*d*i,b=u*g*l-m*p*l+m*c*f-s*g*f-u*c*i+s*p*i,_=m*p*h-u*g*h-m*c*d+s*g*d+u*c*v-s*p*v,w=t*y+r*x+a*b+o*_;if(0===w){if(!0===e)throw Error("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return e=1/w,n[0]=y*e,n[1]=(g*d*o-p*v*o-g*a*f+r*v*f+p*a*i-r*d*i)*e,n[2]=(c*v*o-g*h*o+g*a*l-r*v*l-c*a*i+r*h*i)*e,n[3]=(p*h*o-c*d*o-p*a*l+r*d*l+c*a*f-r*h*f)*e,n[4]=x*e,n[5]=(u*v*o-m*d*o+m*a*f-t*v*f-u*a*i+t*d*i)*e,n[6]=(m*h*o-s*v*o-m*a*l+t*v*l+s*a*i-t*h*i)*e,n[7]=(s*d*o-u*h*o+u*a*l-t*d*l-s*a*f+t*h*f)*e,n[8]=b*e,n[9]=(m*p*o-u*g*o-m*r*f+t*g*f+u*r*i-t*p*i)*e,n[10]=(s*g*o-m*c*o+m*r*l-t*g*l-s*r*i+t*c*i)*e,n[11]=(u*c*o-s*p*o-u*r*l+t*p*l+s*r*f-t*c*f)*e,n[12]=_*e,n[13]=(u*g*a-m*p*a+m*r*d-t*g*d-u*r*v+t*p*v)*e,n[14]=(m*c*a-s*g*a-m*r*h+t*g*h+s*r*v-t*c*v)*e,n[15]=(s*p*a-u*c*a+u*r*h-t*p*h-s*r*d+t*c*d)*e,this},scale:function(t){var e=this.elements,n=t.x,i=t.y;return t=t.z,e[0]*=n,e[4]*=i,e[8]*=t,e[1]*=n,e[5]*=i,e[9]*=t,e[2]*=n,e[6]*=i,e[10]*=t,e[3]*=n,e[7]*=i,e[11]*=t,this},getMaxScaleOnAxis:function(){var t=this.elements;return Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1]+t[2]*t[2],t[4]*t[4]+t[5]*t[5]+t[6]*t[6],t[8]*t[8]+t[9]*t[9]+t[10]*t[10]))},makeTranslation:function(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this},makeRotationX:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1),this},makeRotationY:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1),this},makeRotationZ:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(t,e){var n=Math.cos(e);e=Math.sin(e);var i=1-n,r=t.x,a=t.y;t=t.z;var o=i*r,s=i*a;return this.set(o*r+n,o*a-e*t,o*t+e*a,0,o*a+e*t,s*a+n,s*t-e*r,0,o*t-e*a,s*t+e*r,i*t*t+n,0,0,0,0,1),this},makeScale:function(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this},makeShear:function(t,e,n){return this.set(1,e,n,0,t,1,n,0,t,e,1,0,0,0,0,1),this},compose:function(t,e,n){var i=this.elements,r=e._x,a=e._y,o=e._z,s=e._w,c=r+r,h=a+a,l=o+o;e=r*c;var u=r*h;r*=l;var p=a*h;a*=l,o*=l,c*=s,h*=s,s*=l,l=n.x;var d=n.y;return n=n.z,i[0]=(1-(p+o))*l,i[1]=(u+s)*l,i[2]=(r-h)*l,i[3]=0,i[4]=(u-s)*d,i[5]=(1-(e+o))*d,i[6]=(a+c)*d,i[7]=0,i[8]=(r+h)*n,i[9]=(a-c)*n,i[10]=(1-(e+p))*n,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this},decompose:function(){var t=new a,e=new i;return function(n,i,r){var a=this.elements,o=t.set(a[0],a[1],a[2]).length(),s=t.set(a[4],a[5],a[6]).length(),c=t.set(a[8],a[9],a[10]).length();0>this.determinant()&&(o=-o),n.x=a[12],n.y=a[13],n.z=a[14],e.copy(this),n=1/o,a=1/s;var h=1/c;return e.elements[0]*=n,e.elements[1]*=n,e.elements[2]*=n,e.elements[4]*=a,e.elements[5]*=a,e.elements[6]*=a,e.elements[8]*=h,e.elements[9]*=h,e.elements[10]*=h,i.setFromRotationMatrix(e),r.x=o,r.y=s,r.z=c,this}}(),makePerspective:function(t,e,n,i,r,a){void 0===a&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a 
755new signature. Please check the docs.");var o=this.elements;return o[0]=2*r/(e-t),o[4]=0,o[8]=(e+t)/(e-t),o[12]=0,o[1]=0,o[5]=2*r/(n-i),o[9]=(n+i)/(n-i),o[13]=0,o[2]=0,o[6]=0,o[10]=-(a+r)/(a-r),o[14]=-2*a*r/(a-r),o[3]=0,o[7]=0,o[11]=-1,o[15]=0,this},makeOrthographic:function(t,e,n,i,r,a){var o=this.elements,s=1/(e-t),c=1/(n-i),h=1/(a-r);return o[0]=2*s,o[4]=0,o[8]=0,o[12]=-(e+t)*s,o[1]=0,o[5]=2*c,o[9]=0,o[13]=-(n+i)*c,o[2]=0,o[6]=0,o[10]=-2*h,o[14]=-(a+r)*h,o[3]=0,o[7]=0,o[11]=0,o[15]=1,this},equals:function(t){var e=this.elements;t=t.elements;for(var n=0;16>n;n++)if(e[n]!==t[n])return!1;return!0},fromArray:function(t,e){void 0===e&&(e=0);for(var n=0;16>n;n++)this.elements[n]=t[n+e];return this},toArray:function(t,e){void 0===t&&(t=[]),void 0===e&&(e=0);var n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}),Object.assign(r,{slerp:function(t,e,n,i){return n.copy(t).slerp(e,i)},slerpFlat:function(t,e,n,i,r,a,o){var s=n[i+0],c=n[i+1],h=n[i+2];n=n[i+3],i=r[a+0];var l=r[a+1],u=r[a+2];if(n!==(r=r[a+3])||s!==i||c!==l||h!==u){a=1-o;var p=s*i+c*l+h*u+n*r,d=0<=p?1:-1,f=1-p*p;f>Number.EPSILON&&(f=Math.sqrt(f),p=Math.atan2(f,p*d),a=Math.sin(a*p)/f,o=Math.sin(o*p)/f),s=s*a+i*(d*=o),c=c*a+l*d,h=h*a+u*d,n=n*a+r*d,a===1-o&&(s*=o=1/Math.sqrt(s*s+c*c+h*h+n*n),c*=o,h*=o,n*=o)}t[e]=s,t[e+1]=c,t[e+2]=h,t[e+3]=n}}),Object.defineProperties(r.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback()}}}),Object.assign(r.prototype,{set:function(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._w=i,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this.onChangeCallback(),this},setFromEuler:function(t,e){if(!t||!t.isEuler)throw Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=t._x,i=t._y,r=t._z;t=t.order;var a=Math.cos,o=Math.sin,s=a(n/2),c=a(i/2);return a=a(r/2),n=o(n/2),i=o(i/2),r=o(r/2),"XYZ"===t?(this._x=n*c*a+s*i*r,this._y=s*i*a-n*c*r,this._z=s*c*r+n*i*a,this._w=s*c*a-n*i*r):"YXZ"===t?(this._x=n*c*a+s*i*r,this._y=s*i*a-n*c*r,this._z=s*c*r-n*i*a,this._w=s*c*a+n*i*r):"ZXY"===t?(this._x=n*c*a-s*i*r,this._y=s*i*a+n*c*r,this._z=s*c*r+n*i*a,this._w=s*c*a-n*i*r):"ZYX"===t?(this._x=n*c*a-s*i*r,this._y=s*i*a+n*c*r,this._z=s*c*r-n*i*a,this._w=s*c*a+n*i*r):"YZX"===t?(this._x=n*c*a+s*i*r,this._y=s*i*a+n*c*r,this._z=s*c*r-n*i*a,this._w=s*c*a-n*i*r):"XZY"===t&&(this._x=n*c*a-s*i*r,this._y=s*i*a-n*c*r,this._z=s*c*r+n*i*a,this._w=s*c*a+n*i*r),!1!==e&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){e/=2;var n=Math.sin(e);return this._x=t.x*n,this._y=t.y*n,this._z=t.z*n,this._w=Math.cos(e),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e=t.elements,n=e[0];t=e[4];var i=e[8],r=e[1],a=e[5],o=e[9],s=e[2],c=e[6],h=n+a+(e=e[10]);return 0<h?(n=.5/Math.sqrt(h+1),this._w=.25/n,this._x=(c-o)*n,this._y=(i-s)*n,this._z=(r-t)*n):n>a&&n>e?(n=2*Math.sqrt(1+n-a-e),this._w=(c-o)/n,this._x=.25*n,this._y=(t+r)/n,this._z=(i+s)/n):a>e?(n=2*Math.sqrt(1+a-n-e),this._w=(i-s)/n,this._x=(t+r)/n,this._y=.25*n,this._z=(o+c)/n):(n=2*Math.sqrt(1+e-n-a),this._w=(r-t)/n,this._x=(i+s)/n,this._y=(o+c)/n,this._z=.25*n),this.onChangeCallback(),this},setFromUnitVectors:function(){var t,e=new a;return function(n,i){return void 0===e&&(e=new a),1e-6>(t=n.dot(i)+1)?(t=0,Math.abs(n.x)>Math.abs(n.z)?e.set(-n.y,n.x,0):e.set(0,-n.z,n.y)):e.crossVectors(n,i),this._x=e.x,this._y=e.y,this._z=e.z,this._w=t,this.normalize()}}(),angleTo:function(t){return 2*Math.acos(Math.abs(Or.clamp(this.dot(t),-1,1)))},rotateTowards:function(t,e){var n=this.angleTo(t);return 0===n?this:(this.slerp(t,Math.min(1,e/n)),this)},inverse:function(){return this.conjugate()}
vendor: 11,218 bytes, line 755
755,conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return 0===t?(this._z=this._y=this._x=0,this._w=1):(t=1/t,this._x*=t,this._y*=t,this._z*=t,this._w*=t),this.onChangeCallback(),this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var n=t._x,i=t._y,r=t._z;t=t._w;var a=e._x,o=e._y,s=e._z;return e=e._w,this._x=n*e+t*a+i*s-r*o,this._y=i*e+t*o+r*a-n*s,this._z=r*e+t*s+n*o-i*a,this._w=t*e-n*a-i*o-r*s,this.onChangeCallback(),this},slerp:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var n=this._x,i=this._y,r=this._z,a=this._w,o=a*t._w+n*t._x+i*t._y+r*t._z;if(0>o?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),1<=o)return this._w=a,this._x=n,this._y=i,this._z=r,this;if((t=1-o*o)<=Number.EPSILON)return o=1-e,this._w=o*a+e*this._w,this._x=o*n+e*this._x,this._y=o*i+e*this._y,this._z=o*r+e*this._z,this.normalize();t=Math.sqrt(t);var s=Math.atan2(t,o);return o=Math.sin((1-e)*s)/t,e=Math.sin(e*s)/t,this._w=a*o+this._w*e,this._x=n*o+this._x*e,this._y=i*o+this._y*e,this._z=r*o+this._z*e,this.onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return void 0===e&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(a.prototype,{isVector3:!0,set:function(t,e,n){return this.x=t,this.y=e,this.z=n,this},setScalar:function(t){return this.z=this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(){var t=new r;return function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(t.setFromEuler(e))}}(),applyAxisAngle:function(){var t=new r;return function(e,n){return this.applyQuaternion(t.setFromAxisAngle(e,n))}}(),applyMatrix3:function(t){var e=this.x,n=this.y,i=this.z;return t=t.elements,this.x=t[0]*e+t[3]*n+t[6]*i,this.y=t[1]*e+t[4]*n+t[7]*i,this.z=t[2]*e+t[5]*n+t[8]*i,this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=1/((t=t.elements)[3]*e+t[7]*n+t[11]*i+t[15]);return this.x=(t[0]*e+t[4]*n+t[8]*i+t[12])*r,this.y=(t[1]*e+t[5]*n+t[9]*i+t[13])*r,this.z=(t[2]*e+t[6]*n+t[10]*i+t[14])*r,this},applyQuaternion:function(t){var e=this.x,n=this.y,i=this.z,r=t.x,a=t.y,o=t.z,s=(t=t.w)*e+a*i-o*n,c=t*n+o*e-r*i,h=t*i+r*n-a*e;return e=-r*e-a*n-o*i,this.x=s*t+e*-r+c*-o-h*-a,this.y=c*t+e*-a+h*-r-s*-o,this.z=h*t+e*-o+s*-a-c*-r,this},project:function(){var t=new i;return function(e){return t.multiplyMatrices(e.projectionMatrix,t.getInverse(e.matrixWorld)),this.applyMatrix4(t)}}(),unproject:function(){var t=new i;return function(e){return t.multiplyMatrices(e.matrixWorld,t.getInverse(e.projectionMatrix)),this.applyMatrix4(t)}}(),transformDirection:function(t){var e=this.x,n=this.y,i=this.z;return t=t.elements,this.x=t[0]*e+t[4]*n+t[8]*i,this.y=t[1]*e+t[5]*n+t[9]*i,this.z=t[2]*e+t[6]*n+t[10]*i,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(){var t=new a,e=new a;return function(n,i){return t.set(n,n,n),e.set(i,i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},cross:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)},crossVectors:function(t,e){var n=t.x,i=t.y;t=t.z;var r=e.x,a=e.y;return e=e.z,this.x=i*e-t*a,this.y=t*r-n*e,this.z=n*a-i*r,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t=new a;return function(e){return t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t=new a;return function(e){return this.sub(t.copy(e).multiplyScalar(2*this.dot(e)))}}(),angleTo:function(t){return t=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq()),Math.acos(Or.clamp(t,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n+(t=this.z-t.z)*t},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){var e=Math.sin(t.phi)*t.radius;return this.x=e*Math.sin(t.theta),this.y=Math.cos(t.phi)*t.radius,this.z=e*Math.cos(t.theta),this},setFromCylindrical:function(t){return this.x=t.radius*Math.sin(t.theta),this.y=t.y,this.z=t.radius*Math.cos(t.theta),this},setFromMatrixPosition:function(t){return t=t.elements,this.x=t[12],this.y=t[13],this.z=t[14],this},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length();return t=this.setFromMatrixColumn(t,2).length(),this.x=e,this.y=n,this.z=t,this},setFromMatrixColumn:function(t,e){return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}}),Object.assign(o.prototype,{isMatrix3:!0,set:function(t,e,n,i,r,a,o,s,c){var h=this.elements;return h[0]=t,h[1]=i,h[2]=o,h[3]=e,h[4]=r,h[5]=s,h[6]=n,h[7]=a,h[8]=c,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return(new this.constructor).fromArray(this.elements)},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},setFromMatrix4:function(t){return t=t.elements,this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this},applyToBufferAttribute:function(){var t=new a;return function(e){for(var n=0,i=e.count;n<i;n++)t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.applyMatrix3(this),e.setXYZ(n,t.x,t.y,t.z);return e}}(),multiply:function(t){return this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,i=e.elements;e=this.elements,t=n[0];var r=n[3],a=n[6],o=n[1],s=n[4],c=n[7],h=n[2],l=n[5];n=n[8];var u=i[0],p=i[3],d=i[6],f=i[1],m=i[4],g=i[7],v=i[2],y=i[5];return i=i[8],e[0]=t*u+r*f+a*v,e[3]=t*p+r*m+a*y,e[6]=t*d+r*g+a*i,e[1]=o*u+s*f+c*v,e[4]=o*p+s*m+c*y,e[7]=o*d+s*g+c*i,e[2]=h*u+l*f+n*v,e[5]=h*p+l*m+n*y,e[8]=h*d+l*g+n*i,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this},determinant:function(){var t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],a=t[4],o=t[5],s=t[6],c=t[7];return e*a*(t=t[8])-e*o*c-n*r*t+n*o*s+i*r*c-i*a*s},getInverse:function(t,e){t&&t.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matr
755ix4 argument.");var n=t.elements;t=this.elements;var i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],c=n[5],h=n[6],l=n[7],u=(n=n[8])*s-c*l,p=c*h-n*o,d=l*o-s*h,f=i*u+r*p+a*d;if(0===f){if(!0===e)throw Error("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return e=1/f,t[0]=u*e,t[1]=(a*l-n*r)*e,t[2]=(c*r-a*s)*e,t[3]=p*e,t[4]=(n*i-a*h)*e,t[5]=(a*o-c*i)*e,t[6]=d*e,t[7]=(r*h-l*i)*e,t[8]=(s*i-r*o)*e,this},transpose:function(){var t=this.elements,e=t[1];return t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this},getNormalMatrix:function(t){return this.setFromMatrix4(t).getInverse(this).transpose()},transposeIntoArray:function(t){var e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this},setUvTransform:function(t,e,n,i,r,a,o){var s=Math.cos(r);r=Math.sin(r),this.set(n*s,n*r,-n*(s*a+r*o)+a+t,-i*r,i*s,-i*(-r*a+s*o)+o+e,0,0,1)},scale:function(t,e){var n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=e,n[4]*=e,n[7]*=e,this},rotate:function(t){var e=Math.cos(t);t=Math.sin(t);var n=this.elements,i=n[0],r=n[3],a=n[6],o=n[1],s=n[4],c=n[7];return n[0]=e*i+t*o,n[3]=e*r+t*s,n[6]=e*a+t*c,n[1]=-t*i+e*o,n[4]=-t*r+e*s,n[7]=-t*a+e*c,this},translate:function(t,e){var n=this.elements;return n[0]+=t*n[2],n[3]+=t*n[5],n[6]+=t*n[8],n[1]+=e*n[2],n[4]+=e*n[5],n[7]+=e*n[8],this},equals:function(t){var e=this.elements;t=t.elements;for(var n=0;9>n;n++)if(e[n]!==t[n])return!1;return!0},fromArray:function(t,e){void 0===e&&(e=0);for(var n=0;9>n;n++)this.elements[n]=t[n+e];return this},toArray:function(t,e){void 0===t&&(t=[]),void 0===e&&(e=0);var n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}});var Ir={getDataURL:function(t){if(t instanceof HTMLCanvasElement)var e=t;else{"undefined"!=typeof OffscreenCanvas?e=new OffscreenCanvas(t.width,t.height):((e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")).width=t.width,e.height=t.height);var n=e.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height)}return 2048<e.width||2048<e.height?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}},Nr=0;s.DEFAULT_IMAGE=void 0,s.DEFAULT_MAPPING=300,s.prototype=Object.assign(Object.create(e.prototype),{constructor:s,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){var e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];var n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(void 0!==this.image){var i=this.image;if(void 0===i.uuid&&(i.uuid=Or.generateUUID()),!e&&void 0===t.images[i.uuid]){if(Array.isArray(i))for(var r=[],a=0,o=i.length;a<o;a++)r.push(Ir.getDataURL(i[a]));else r=Ir.getDataURL(i);t.images[i.uuid]={uuid:i.uuid,url:r}}n.image=i.uuid}return e||(t.textures[this.uuid]=n),n},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(300===this.mapping){if(t.applyMatrix3(this.matrix
755),0>t.x||1<t.x)switch(this.wrapS){case 1e3:t.x-=Math.floor(t.x);break;case 1001:t.x=0>t.x?0:1;break;case 1002:t.x=1===Math.abs(Math.floor(t.x)%2)?Math.ceil(t.x)-t.x:t.x-Math.floor(t.x)}if(0>t.y||1<t.y)switch(this.wrapT){case 1e3:t.y-=Math.floor(t.y);break;case 1001:t.y=0>t.y?0:1;break;case 1002:t.y=1===Math.abs(Math.floor(t.y)%2)?Math.ceil(t.y)-t.y:t.y-Math.floor(t.y)}this.flipY&&(t.y=1-t.y)}}}),Object.defineProperty(s.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(c.prototype,{isVector4:!0,set:function(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this},setScalar:function(t){return this.w=this.z=this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=this.w;return t=t.elements,this.x=t[0]*e+t[4]*n+t[8]*i+t[12]*r,this.y=t[1]*e+t[5]*n+t[9]*i+t[13]*r,this.z=t[2]*e+t[6]*n+t[10]*i+t[14]*r,this.w=t[3]*e+t[7]*n+t[11]*i+t[15]*r,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return 1e-4>e?(this.x=1,this.z=this.y=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){var e=(t=t.elements)[0],n=t[4],i=t[8],r=t[1],a=t[5],o=t[9],s=t[2],c=t[6],h=t[10];return.01>Math.abs(n-r)&&.01>Math.abs(i-s)&&.01>Math.abs(o-c)?.1>Math.abs(n+r)&&.1>Math.abs(i+s)&&.1>Math.abs(o+c)&&.1>Math.abs(e+a+h-3)?(this.set(1,0,0,0),this):(t=Math.PI,h=(h+1)/2,n=(n+r)/4,i=(i+s)/4,o=(o+c)/4,(e=(e+1)/2)>(a=(a+1)/2)&&e>h?.01>e?(c=0,n=s=.707106781):(s=n/(c=Math.sqrt(e)),n=i/c):a>h?.01>a?(c=.707106781,s=0,n=.707106781):(c=n/(s=Math.sqrt(a)),n=o/s):.01>h?(s=c=.707106781,n=0):(c=i/(n=Math.sqrt(h)),s=o/n),this.set(c,s,n,t),this):(t=Math.sqrt((c-o)*(c-o)+(i-s)*(i-s)+(r-n)*(r-n)),.001>Math.abs(t)&&(t=1),this.x=(c-o)/t,this.y=(i-s)/t,this.z=(r-n)/t,this.w=Math.acos((e+a+h-1)/2),this)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new c,e=new c),t.set(n,n,n,n),e.set(i,i,i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}
vendor: 4,486 bytes, line 755
755,round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this.w=0>this.w?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}}),h.prototype=Object.assign(Object.create(e.prototype),{constructor:h,isWebGLRenderTarget:!0,setSize:function(t,e){this.width===t&&this.height===e||(this.width=t,this.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),l.prototype=Object.create(h.prototype),l.prototype.constructor=l,l.prototype.isWebGLRenderTargetCube=!0,u.prototype=Object.create(s.prototype),u.prototype.constructor=u,u.prototype.isDataTexture=!0,Object.assign(p.prototype,{isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,c=t.length;s<c;s+=3){var h=t[s],l=t[s+1],u=t[s+2];h<e&&(e=h),l<n&&(n=l),u<i&&(i=u),h>r&&(r=h),l>a&&(a=l),u>o&&(o=u)}return this.min.set(e,n,i),this.max.set(r,a,o),this},setFromBufferAttribute:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,c=t.count;s<c;s++){var h=t.getX(s),l=t.getY(s),u=t.getZ(s);h<e&&(e=h),l<n&&(n=l),u<i&&(i=u),h>r&&(r=h),l>a&&(a=l),u>o&&(o=u)}return this.min.set(e,n,i),this.max.set(r,a,o),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new a;return function(e,n){return n=t.copy(n).multiplyScalar(.5),this.min.copy(e).sub(n),this.max.copy(e).add(n),this}}(),setFromObject:function(t){return this.makeEmpty(),this.expandByObject(t)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},getCenter:function(t){return void 0===t&&(console.warn("THREE.Box3: .getCenter() target is now required"),t=new a),this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return void 0===t&&(console.warn("THREE.Box3: .getSize() target is now required"),t=new a),this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},expandByObject:function(){function t(t){var a=t.geometry;if(void 0!==a)if(a.isGeometry)for(a=a.vertices,n=0,i=a.length;n<i;
755n++)r.copy(a[n]),r.applyMatrix4(t.matrixWorld),e.expandByPoint(r);else if(a.isBufferGeometry&&void 0!==(a=a.attributes.position))for(n=0,i=a.count;n<i;n++)r.fromBufferAttribute(a,n).applyMatrix4(t.matrixWorld),e.expandByPoint(r)}var e,n,i,r=new a;return function(n){return e=this,n.updateMatrixWorld(!0),n.traverse(t),this}}(),containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return void 0===e&&(console.warn("THREE.Box3: .getParameter() target is now required"),e=new a),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)},intersectsSphere:function(){var t=new a;return function(e){return this.clampPoint(e.center,t),t.distanceToSquared(e.center)<=e.radius*e.radius}}(),intersectsPlane:function(t){if(0<t.normal.x)var e=t.normal.x*this.min.x,n=t.normal.x*this.max.x;else e=t.normal.x*this.max.x,n=t.normal.x*this.min.x;return 0<t.normal.y?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),0<t.normal.z?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=t.constant&&n>=t.constant},intersectsTriangle:function(){function t(t){var r,a=0;for(r=t.length-3;a<=r;a+=3){c.fromArray(t,a);var o=l.x*Math.abs(c.x)+l.y*Math.abs(c.y)+l.z*Math.abs(c.z),s=e.dot(c),h=n.dot(c),u=i.dot(c);
755if(Math.max(-Math.max(s,h,u),Math.min(s,h,u))>o)return!1}return!0}var e=new a,n=new a,i=new a,r=new a,o=new a,s=new a,c=new a,h=new a,l=new a,u=new a;return function(a){return!this.isEmpty()&&(this.getCenter(h),l.subVectors(this.max,h),e.subVectors(a.a,h),n.subVectors(a.b,h),i.subVectors(a.c,h),r.subVectors(n,e),o.subVectors(i,n),s.subVectors(e,i),!!t(a=[0,-r.z,r.y,0,-o.z,o.y,0,-s.z,s.y,r.z,0,-r.x,o.z,0,-o.x,s.z,0,-s.x,-r.y,r.x,0,-o.y,o.x,0,-s.y,s.x,0])&&(!!t(a=[1,0,0,0,1,0,0,0,1])&&(u.crossVectors(r,o),t(a=[u.x,u.y,u.z]))))}}(),clampPoint:function(t,e){return void 0===e&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new a),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new a;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new a;return function(e){return void 0===e&&(console.warn("THREE.Box3: .getBoundingSphere() target is now required"),e=new d),this.getCenter(e.center),e.radius=.5*this.getSize(t).length(),e}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:function(t){if(this.isEmpty())return this;var e=(t=t.elements)[0]*this.min.x,n=t[1]*this.min.x,i=t[2]*this.min.x,r=t[0]*this.max.x,a=t[1]*this.max.x,o=t[2]*this.max.x,s=t[4]*this.min.y,c=t[5]*this.min.y,h=t[6]*this.min.y,l=t[4]*this.max.y,u=t[5]*this.max.y,p=t[6]*this.max.y,d=t[8]*this.min.z,f=t[9]*this.min.z,m=t[10]*this.min.z,g=t[8]*this.max.z,v=t[9]*this.max.z,y=t[10]*this.max.z;return this.min.x=Math.min(e,r)+Math.min(s,l)+Math.min(d,g)+t[12],this.min.y=Math.min(n,a)+Math.min(c,u)+Math.min(f,v)+t[13],this.min.z=Math.min(i,o)+Math.min(h,p)+Math.min(m,y)+t[14],this.max.x=Math.max(e,r)+Math.max(s,l)+Math.max(d,g)+t[12],this.max.y=Math.max(n,a)+Math.max(c,u)+Math.max(f,v)+t[13],this.max.z=Math.max(i,o)+Math.max(h,p)+Math.max(m,y)+t[14],this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(d.prototype,{set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(){var t=new p;return function(e,n){var i=this.center;void 0!==n?i.copy(n):t.setFromPoints(e).getCenter(i);for(var r=n=0,a=e.length;r<a;r++)n=Math.max(n,i.distanceToSquared(e[r]));return this.radius=Math.sqrt(n),this}}(),clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.center.copy(t.center),this.radius=t.radius,this},empty:function(){return 0>=this.radius},containsPoint:function(t){return t.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(t){return t.distanceTo(this.center)-this.radius},intersectsSphere:function(t){var e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e},intersectsBox:function(t){return t.intersectsSphere(this)},intersectsPlane:function(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius},clampPoint:function(t,e){var n=this.center.distanceToSquared(t);return void 0===e&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),e=new a),e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e},getBoundingBox:function(t){return void 0===t&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),t=new p),t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius*=t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}}),Object.assign(f.prototype,{set:function(t,e){return this.normal.copy(t),this.constant=e,this},setComponents:function(t,e,n,i){return this.normal.set(t,e,n),this.constant=i,this},setFromNormalAndCoplanarPoint:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this},setFromCoplanarPoints:function(){var t=new a,e=new a;return function(n,i,r){return i=t.subVectors(r,i).cross(e.subVectors(n,i)).normalize(),this.setFromNormalAndCoplanarPoint(i,n),this}}(),clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.normal.copy(t.normal),this.constant=t.constant,this},normalize:function(){var t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(t){return this.normal.dot(t)+this.constant},distanceToSphere:function(t){return this.distanceToPoint(t.center)-t.radius},projectPoint:function(t,e){return void 0===e&&(console.warn("THREE.Plane: .projectPoint() target is now required"),e=new a),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)},intersectLine:function(){var t=new a;return function(e,n){void 0===n&&(console.warn("THREE.Plane: .intersectLine() target is now required"),n=new a);var i=e.delta(t),r=this.normal.dot(i);if(0===r){if(0===this.distanceToPoint(e.start))return n.copy(e.start)}else if(!(0>
755(r=-(e.start.dot(this.normal)+this.constant)/r)||1<r))return n.copy(i).multiplyScalar(r).add(e.start)}}(),intersectsLine:function(t){var e=this.distanceToPoint(t.start);return t=this.distanceToPoint(t.end),0>e&&0<t||0>t&&0<e},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return void 0===t&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),t=new a),t.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new a,e=new o;return function(n,i){return i=i||e.getNormalMatrix(n),n=this.coplanarPoint(t).applyMatrix4(n),i=this.normal.applyMatrix3(i).normalize(),this.constant=-n.dot(i),this}}(),translate:function(t){return this.constant-=t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}}),Object.assign(m.prototype,{set:function(t,e,n,i,r,a){var o=this.planes;return o[0].copy(t),o[1].copy(e),o[2].copy(n),o[3].copy(i),o[4].copy(r),o[5].copy(a),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){for(var e=this.planes,n=0;6>n;n++)e[n].copy(t.planes[n]);return this},setFromMatrix:function(t){var e=this.planes,n=t.elements;t=n[0];var i=n[1],r=n[2],a=n[3],o=n[4],s=n[5],c=n[6],h=n[7],l=n[8],u=n[9],p=n[10],d=n[11],f=n[12],m=n[13],g=n[14];return n=n[15],e[0].setComponents(a-t,h-o,d-l,n-f).normalize(),e[1].setComponents(a+t,h+o,d+l,n+f).normalize(),e[2].setComponents(a+i,h+s,d+u,n+m).normalize(),e[3].setComponents(a-i,h-s,d-u,n-m).normalize(),e[4].setComponents(a-r,h-c,d-p,n-g).normalize(),e[5].setComponents(a+r,h+c,d+p,n+g).normalize(),this},intersectsObject:function(){var t=new d;return function(e){var n=e.geometry;return null===n.boundingSphere&&n.computeBoundingSphere(),t.copy(n.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSprite:function(){var t=new d;return function(e){return t.center.set(0,0,0),t.radius=.7071067811865476,t.applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSphere:function(t){var e=this.planes,n=t.center;t=-t.radius;for(var i=0;6>i;i++)if(e[i].distanceToPoint(n)<t)return!1;return!0},intersectsBox:function(){var t=new a;return function(e){for(var n=this.planes,i=0;6>i;i++){var r=n[i];if(t.x=0<r.normal.x?e.max.x:e.min.x,t.y=0<r.normal.y?e.max.y:e.min.y,t.z=0<r.normal.z?e.max.z:e.min.z,0>r.distanceToPoint(t))return!1}return!0}}(),containsPoint:function(t){for(var e=this.planes,n=0;6>n;n++)if(0>e[n].distanceToPoint(t))return!1;return!0}});var Dr={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif\n",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif\n",alphatest_fragment:"#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif\n",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( PHYSICAL )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif\n",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"\nvec3 transformed = vec3( position );\n",beginnormal_vertex:"\nvec3 objectNormal = vec3( normal );\n",bsdfs:"float punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\tif( decayExponent > 0.0 ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tfloat maxDistanceCutoffFactor = pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\treturn distanceFalloff * maxDistanceCutoffFactor;
755\n#else\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n#endif\n\t}\n\treturn 1.0;\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNL = saturate( dot( geometry.normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );
755\n\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( G * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE  = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS  = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nvec3 BRDF_Specular_GGX_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 AB = vec2( -1.04, 1.04 ) * a004 + r.zw;\n\treturn specularColor * AB.x + AB.y;\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}
755\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 );\n\t\tfDet *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif\n",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\tif ( clipped ) discard;\n\t#endif\n#endif\n",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\t#if ! defined( PHYSICAL ) && ! defined( PHONG )\n\t\tvarying vec3 vViewPosition;\n\t#endif\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif\n",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\n\tvarying vec3 vViewPosition;\n#endif\n",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n",color_fragment:"#ifdef USE_COLOR\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif\n",color_pars_vertex:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif",color_vertex:"#ifdef USE_COLOR\n\tvColor.xyz = color.xyz;\n#endif",common:"#define PI 3.14159265359\n#define PI2 6.28318530718\n#define PI_HALF 1.5707963267949\n#define RECIPROCAL_PI 0.31830988618\n#define RECIPROCAL_PI2 0.15915494\n#define LOG2 1.442695\n#define EPSILON 1e-6\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#define whiteCompliment(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract(sin(sn) * c);\n}\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\n",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n#define cubeUV_textureSize (1024.0)\nint getFaceFromDirection(vec3 direction) {\n\tvec3 absDirection = abs(direction);\n\tint face = -1;\n\tif( absDirection.x > absDirection.z ) {\n\t\tif(absDirection.x > absDirection.y )\n\t\t\tface = direction.x > 0.0 ? 0 : 3;\n\t\telse\n\t\t\tface = direction.y > 0.0 ? 1 : 4;\n\t}\n\telse {\n\t\tif(absDirection.z > absDirection.y )\n\t\t\tface = direction.z > 0.0 ? 2 : 5;\n\t\telse\n\t\t\tface = direction.y > 0.0 ? 1 : 4;\n\t}\n\treturn face;\n}\n#define cubeUV_maxLods1  (log2(cubeUV_textureSize*0.25) - 1.0)\n#define cubeUV_rangeClamp (exp2((6.0 - 1.0) * 2.0))\nvec2 MipLevelInfo( vec3 vec, float roughnessLevel, float roughness ) {\n\tfloat scale = exp2(cubeUV_maxLods1 - roughnessLevel);\n\tfloat dxRoughness = dFdx(roughness);\n\tfloat dyRoughness = dFdy(roughness);\n\tvec3 dx = dFdx( vec * scale * dxRoughness );\n\tvec3 dy = dFdy( vec * scale * dyRoughness );\n\tfloat d = max( dot( dx, dx ), dot( dy, dy ) );\n\td = clamp(d, 1.0, cubeUV_rangeClamp);
755\n\tfloat mipLevel = 0.5 * log2(d);\n\treturn vec2(floor(mipLevel), fract(mipLevel));\n}\n#define cubeUV_maxLods2 (log2(cubeUV_textureSize*0.25) - 2.0)\n#define cubeUV_rcpTextureSize (1.0 / cubeUV_textureSize)\nvec2 getCubeUV(vec3 direction, float roughnessLevel, float mipLevel) {\n\tmipLevel = roughnessLevel > cubeUV_maxLods2 - 3.0 ? 0.0 : mipLevel;\n\tfloat a = 16.0 * cubeUV_rcpTextureSize;\n\tvec2 exp2_packed = exp2( vec2( roughnessLevel, mipLevel ) );\n\tvec2 rcp_exp2_packed = vec2( 1.0 ) / exp2_packed;\n\tfloat powScale = exp2_packed.x * exp2_packed.y;\n\tfloat scale = rcp_exp2_packed.x * rcp_exp2_packed.y * 0.25;\n\tfloat mipOffset = 0.75*(1.0 - rcp_exp2_packed.y) * rcp_exp2_packed.x;\n\tbool bRes = mipLevel == 0.0;\n\tscale =  bRes && (scale < a) ? a : scale;\n\tvec3 r;\n\tvec2 offset;\n\tint face = getFaceFromDirection(direction);\n\tfloat rcpPowScale = 1.0 / powScale;\n\tif( face == 0) {\n\t\tr = vec3(direction.x, -direction.z, direction.y);\n\t\toffset = vec2(0.0+mipOffset,0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 1) {\n\t\tr = vec3(direction.y, direction.x, direction.z);\n\t\toffset = vec2(scale+mipOffset, 0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 2) {\n\t\tr = vec3(direction.z, direction.x, direction.y);\n\t\toffset = vec2(2.0*scale+mipOffset, 0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 3) {\n\t\tr = vec3(direction.x, direction.z, direction.y);\n\t\toffset = vec2(0.0+mipOffset,0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\telse if( face == 4) {\n\t\tr = vec3(direction.y, direction.x, -direction.z);\n\t\toffset = vec2(scale+mipOffset, 0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\telse {\n\t\tr = vec3(direction.z, -direction.x, direction.y);\n\t\toffset = vec2(2.0*scale+mipOffset, 0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\tr = normalize(r);\n\tfloat texelOffset = 0.5 * cubeUV_rcpTextureSize;\n\tvec2 s = ( r.yz / abs( r.x ) + vec2( 1.0 ) ) * 0.5;\n\tvec2 base = offset + vec2( texelOffset );\n\treturn base + s * ( scale - 2.0 * texelOffset );\n}\n#define cubeUV_maxLods3 (log2(cubeUV_textureSize*0.25) - 3.0)\nvec4 textureCubeUV( sampler2D envMap, vec3 reflectedDirection, float roughness ) {\n\tfloat roughnessVal = roughness* cubeUV_maxLods3;\n\tfloat r1 = floor(roughnessVal);\n\tfloat r2 = r1 + 1.0;\n\tfloat t = fract(roughnessVal);\n\tvec2 mipInfo = MipLevelInfo(reflectedDirection, r1, roughness);\n\tfloat s = mipInfo.y;\n\tfloat level0 = mipInfo.x;\n\tfloat level1 = level0 + 1.0;\n\tlevel1 = level1 > 5.0 ? 5.0 : level1;\n\tlevel0 += min( floor( s + 0.5 ), 5.0 );\n\tvec2 uv_10 = getCubeUV(reflectedDirection, r1, level0);\n\tvec4 color10 = envMapTexelToLinear(texture2D(envMap, uv_10));\n\tvec2 uv_20 = getCubeUV(reflectedDirection, r2, level0);\n\tvec4 color20 = envMapTexelToLinear(texture2D(envMap, uv_20));\n\tvec4 result = mix(color10, color20, t);\n\treturn vec4(result.rgb, 1.0);\n}\n#endif\n",defaultnormal_vertex:"vec3 transformedNormal = normalMatrix * objectNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif\n",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );\n#endif\n",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif\n",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif\n",encodings_fragment:"  gl_FragColor = linearToOutputTexel( gl_FragColor );\n",encodings_pars_fragment:"\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.xyz, vec3( gammaFactor ) ), value.w );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.xyz, vec3( 1.0 / gammaFactor ) ), value.w );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.w );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.w );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}
755\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.xyz * value.w * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.x, max( value.g, value.b ) );\n\tfloat M      = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM            = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.x, max( value.g, value.b ) );\n\tfloat D      = max( maxRange / maxRGB, 1.0 );\n\tD            = min( floor( D ) / 255.0, 1.0 );\n\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value )  {\n\tvec3 Xp_Y_XYZp = value.rgb * cLogLuvM;\n\tXp_Y_XYZp = max(Xp_Y_XYZp, vec3(1e-6, 1e-6, 1e-6));\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract(Le);\n\tvResult.z = (Le - (floor(vResult.w*255.0))/255.0)/255.0;\n\treturn vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2((Le - 127.0) / 2.0);\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = Xp_Y_XYZp.rgb * cLogLuvInverseM;\n\treturn vec4( max(vRGB, 0.0), 1.0 );\n}\n",envmap_fragment:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvec3 cameraToVertex = normalize( vWorldPosition - cameraPosition );\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\tvec2 sampleUV;\n\t\treflectVec = normalize( reflectVec );\n\t\tsampleUV.y = asin( clamp( reflectVec.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\t\tsampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\tvec4 envColor = texture2D( envMap, sampleUV );\n\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\treflectVec = normalize( reflectVec );\n\t\tvec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0, 0.0, 1.0 ) );\n\t\tvec4 envColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\tenvColor = envMapTexelToLinear( envColor );\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif\n",envmap_pars_fragment:"#if defined( USE_ENVMAP ) || defined( PHYSICAL )\n\tuniform float reflectivity;\n\tuniform float envMapIntensity;\n#endif\n#ifdef USE_ENVMAP\n\t#if ! defined( PHYSICAL ) && ( defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) )\n\t\tvarying vec3 vWorldPosition;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\tuniform float flipEnvMap;\n\tuniform int maxMipLevel;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( PHYSICAL )\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif\n",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif\n",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP ) && defined( PHYSICAL )\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, queryVec, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}
755\n\tfloat getSpecularMIPLevel( const in float blinnShininessExponent, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar + 0.79248 - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in GeometricContext geometry, const in float blinnShininessExponent, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -geometry.viewDir, geometry.normal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -geometry.viewDir, geometry.normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( blinnShininessExponent, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, queryReflectVec, BlinnExponentToGGXRoughness(blinnShininessExponent ));\n\t\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\t\tvec2 sampleUV;\n\t\t\tsampleUV.y = asin( clamp( reflectVec.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\t\t\tsampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = texture2DLodEXT( envMap, sampleUV, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = texture2D( envMap, sampleUV, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\t\tvec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0,0.0,1.0 ) );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = texture2DLodEXT( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif\n",envmap_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvWorldPosition = worldPosition.xyz;
755\n\t#else\n\t\tvec3 cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif\n",fog_vertex:"\n#ifdef USE_FOG\nfogDepth = -mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n  varying float fogDepth;\n#endif\n",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = whiteCompliment( exp2( - fogDensity * fogDensity * fogDepth * fogDepth * LOG2 ) );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif\n",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float fogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif\n",gradientmap_pars_fragment:"#ifdef TOON\n\tuniform sampler2D gradientMap;\n\tvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\t\tfloat dotNL = dot( normal, lightDirection );\n\t\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t\t#ifdef USE_GRADIENTMAP\n\t\t\treturn texture2D( gradientMap, coord ).rgb;\n\t\t#else\n\t\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t\t#endif\n\t}\n#endif\n",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\treflectedLight.indirectDiffuse += PI * texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n#endif\n",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvLightFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n#endif\n",lights_pars_begin:"uniform vec3 ambientLightColor;\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treturn irradiance;\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tdirectLight.color = directionalLight.color;\n\t\tdirectLight.direction = directionalLight.direction;\n\t\tdirectLight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t\tfloat shadowCameraNear;\n\t\tfloat shadowCameraFar;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tdirectLight.color = pointLight.color;\n\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\tdirectLight.visible = ( directLight.color != vec3( 0.0 ) );\n\t}
755\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight  ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tfloat angleCos = dot( directLight.direction, spotLight.direction );\n\t\tif ( angleCos > spotLight.coneCos ) {\n\t\t\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\t\tdirectLight.color = spotLight.color;\n\t\t\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in GeometricContext geometry ) {\n\t\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tirradiance *= PI;\n\t\t#endif\n\t\treturn irradiance;\n\t}\n#endif\n",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;\n",lights_phong_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3\tdiffuseColor;\n\tvec3\tspecularColor;\n\tfloat\tspecularShininess;\n\tfloat\tspecularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\t#ifdef TOON\n\t\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#else\n\t\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\t\tvec3 irradiance = dotNL * directLight.color;\n\t#endif\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)\n",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nmaterial.specularRoughness = clamp( roughnessFactor, 0.04, 1.0 );\n#ifdef STANDARD\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.clearCoat = saturate( clearCoat );\tmaterial.clearCoatRoughness = clamp( clearCoatRoughness, 0.04, 1.0 );\n#endif\n",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3\tdiffuseColor;\n\tfloat\tspecularRoughness;\n\tvec3\tspecularColor;\n\t#ifndef STANDARD\n\t\tfloat clearCoat;\n\t\tfloat clearCoatRoughness;\n\t#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearCoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;
755\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos - halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos + halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos + halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos - halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\t#ifndef STANDARD\n\t\tfloat clearCoatDHR = material.clearCoat * clearCoatDHRApprox( material.clearCoatRoughness, dotNL );\n\t#else\n\t\tfloat clearCoatDHR = 0.0;\n\t#endif\n\treflectedLight.directSpecular += ( 1.0 - clearCoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry, material.specularColor, material.specularRoughness );\n\treflectedLight.directDiffuse += ( 1.0 - clearCoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\t#ifndef STANDARD\n\t\treflectedLight.directSpecular += irradiance * material.clearCoat * BRDF_Specular_GGX( directLight, geometry, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearCoatRoughness );\n\t#endif\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 clearCoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t#ifndef STANDARD\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\tfloat dotNL = dotNV;\n\t\tfloat clearCoatDHR = material.clearCoat * clearCoatDHRApprox( material.clearCoatRoughness, dotNL );\n\t#else\n\t\tfloat clearCoatDHR = 0.0;\n\t#endif\n\treflectedLight.indirectSpecular += ( 1.0 - clearCoatDHR ) * radiance * BRDF_Specular_GGX_Environment( geometry, material.specularColor, material.specularRoughness );\n\t#ifndef STANDARD\n\t\treflectedLight.indirectSpecular += clearCoatRadiance * material.clearCoat * BRDF_Specular_GGX_Environment( geometry, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearCoatRoughness );\n\t#endif\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\n#define Material_BlinnShininessExponent( material )   GGXRoughnessToBlinnExponent( material.specularRoughness )\n#define Material_ClearCoat_BlinnShininessExponent( material )   GGXRoughnessToBlinnExponent( material.clearCoatRoughness )\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}\n",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = normalize( vViewPosition );\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( pointLight.shadow, directLight.visible ) ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}
755\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( spotLight.shadow, directLight.visible ) ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( directionalLight.shadow, directLight.visible ) ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t}\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearCoatRadiance = vec3( 0.0 );\n#endif\n",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec3 lightMapIrradiance = texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tirradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getLightProbeIndirectRadiance( geometry, Material_BlinnShininessExponent( material ), maxMipLevel );\n\t#ifndef STANDARD\n\t\tclearCoatRadiance += getLightProbeIndirectRadiance( geometry, Material_ClearCoat_BlinnShininessExponent( material ), maxMipLevel );\n\t#endif\n#endif\n",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, clearCoatRadiance, geometry, material, reflectedLight );\n#endif\n",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#ifdef USE_LOGDEPTHBUF\n\tuniform float logDepthBufFC;\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n#endif\n",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n\tuniform float logDepthBufFC;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t#else\n\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\tgl_Position.z *= gl_Position.w;\n\t#endif\n#endif\n",map_fragment:"#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif\n",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n",map_particle_fragment:"#ifdef USE_MAP\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n",map_particle_pars_fragment:"#ifdef USE_MAP\n\tuniform mat3 uvTransform;\n\tuniform sampler2D map;\n#endif\n",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif\n",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal += ( morphNormal0 - normal ) * morphTargetInfluences[ 0 ];\n\tobjectNormal += ( morphNormal1 - normal ) * morphTargetInfluences[ 1 ];\n\tobjectNormal += ( morphNormal2 - normal ) * morphTargetInfluences[ 2 ];\n\tobjectNormal += ( morphNormal3 - normal ) * morphTargetInfluences[ 3 ];\n#endif\n",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_MORPHNORMALS\n\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed += ( morphTarget0 - position ) * morphTargetInfluences[ 0 ];\n\ttransformed += ( morphTarget1 - position ) * morphTargetInfluences[ 1 ];\n\ttransformed += ( morphTarget2 - position ) * morphTargetInfluences[ 2 ];\n\ttransformed += ( morphTarget3 - position ) * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\ttransformed += ( morphTarget4 - position ) * morphTargetInfluences[ 4 ];\n\ttransformed += ( morphTarget5 - position ) * morphTargetInfluences[ 5 ];\n\ttransformed += ( morphTarget6 - position ) * morphTargetInfluences[ 6 ];\n\ttransformed += ( morphTarget7 - position ) * morphTargetInfluences[ 7 ];\n\t#endif\n#endif\n",normal_fragment_begin:"#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#endif\n#endif\n",normal_fragment_maps:"#ifdef USE_NORMALMAP\n\t#ifdef OBJECTSPACE_NORMALMAP\n\t\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t\t#ifdef FLIP_SIDED\n\t\t\tnormal = - normal;\n\t\t#endif\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t#endif\n\t\tnormal = normalize( normalMatrix * normal );
755\n\t#else\n\t\tnormal = perturbNormal2Arb( -vViewPosition, normal );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\n#endif\n",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n\t#ifdef OBJECTSPACE_NORMALMAP\n\t\tuniform mat3 normalMatrix;\n\t#else\n\t\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\n\t\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\t\tvec2 st0 = dFdx( vUv.st );\n\t\t\tvec2 st1 = dFdy( vUv.st );\n\t\t\tfloat scale = sign( st1.t * st0.s - st0.t * st1.s );\n\t\t\tvec3 S = normalize( ( q0 * st1.t - q1 * st0.t ) * scale );\n\t\t\tvec3 T = normalize( ( - q0 * st1.s + q1 * st0.s ) * scale );\n\t\t\tvec3 N = normalize( surf_norm );\n\t\t\tmat3 tsn = mat3( S, T, N );\n\t\t\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t\t\tmapN.xy *= normalScale;\n\t\t\tmapN.xy *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t\treturn normalize( tsn * mapN );\n\t\t}\n\t#endif\n#endif\n",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256.,  256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}\n",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif\n",project_vertex:"vec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\ngl_Position = projectionMatrix * mvPosition;\n",dithering_fragment:"#if defined( DITHERING )\n  gl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif\n",dithering_pars_fragment:"#if defined( DITHERING )\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif\n",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif\n",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHTS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHTS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHTS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tfloat texture2DShadowLerp( sampler2D depths, vec2 size, vec2 uv, float compare ) {\n\t\tconst vec2 offset = vec2( 0.0, 1.0 );\n\t\tvec2 texelSize = vec2( 1.0 ) / size;\n\t\tvec2 centroidUV = floor( uv * size + 0.5 ) / size;\n\t\tfloat lb = texture2DCompare( depths, centroidUV + texelSize * offset.xx, compare );\n\t\tfloat lt = texture2DCompare( depths, centroidUV + texelSize * offset.xy, compare );\n\t\tfloat rb = texture2DCompare( depths, centroidUV + texelSize * offset.yx, compare );\n\t\tfloat rt = texture2DCompare( depths, centroidUV + texelSize * offset.yy, compare );\n\t\tvec2 f = fract( uv * size + 0.5 );\n\t\tfloat a = mix( lb, lt, f.y );\n\t\tfloat b = mix( rb, rt, f.y );\n\t\tfloat c = mix( a, b, f.x );\n\t\treturn c;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tshadow = (\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );
755\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif\n",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHTS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHTS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHTS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\n\t#endif\n#endif\n",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n#endif\n",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\tDirectionalLight directionalLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tshadow *= bool( directionalLight.shadow ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\tSpotLight spotLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tshadow *= bool( spotLight.shadow ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\tPointLight pointLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tshadow *= bool( pointLight.shadow ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#endif\n\t#endif\n\treturn shadow;\n}\n",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif\n",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif\n",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;
755\n\tskinMatrix  = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n#endif\n",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n  gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif\n",tonemapping_pars_fragment:"#ifndef saturate\n\t#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nuniform float toneMappingWhitePoint;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\nvec3 Uncharted2ToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\n",uv_pars_fragment:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\n",uv_vertex:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = uv2;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )\n\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\n#endif\n",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldPosition;\nvoid main() {\n\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\n\tgl_FragColor.a *= opacity;\n}\n",cube_vert:"varying vec3 vWorldPosition;\n#include <common>\nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}\n",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - gl_FragCoord.z ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( gl_FragCoord.z );\n\t#endif\n}\n",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n}\n",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}\n",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}\n",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldPosition;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldPosition );\n\tvec2 sampleUV;\n\tsampleUV.y = asin( clamp( direction.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\tsampleUV.x = atan( direction.z, direction.x ) * RECIPROCAL_PI2 + 0.5;\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n}\n",equirect_vert:"varying vec3 vWorldPosition;\n#include <common>\nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}\n",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\tvLineDistance = scale * lineDistance;\n\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}\n",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\treflectedLight.indirectDiffuse += texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_ENVMAP\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}\n",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\treflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor );\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}\n",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}\n",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <log
755depthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",meshphysical_frag:"#define PHYSICAL\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifndef STANDARD\n\tuniform float clearCoat;\n\tuniform float clearCoatRoughness;\n#endif\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <envmap_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <lights_physical_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}\n",meshphysical_vert:"#define PHYSICAL\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}\n",normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}\n",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#ifdef USE_SIZEATTENUATION\n\t\tgl_PointSize = size * ( scale / - mvPosition.z );\n\t#else\n\t\tgl_PointSize = size;\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}\n",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <fog_fragment>\n}\n",shadow_vert:"#include <fog_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tvec4 mvPosition;\n\tmvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}\n"},Ur={merge:function(t){for(var e={},n=0;n<t.length;n++){var i,r=this.clone(t[n]);for(i in r)e[i]=r[i]}return e},clone:function(t){var e,n={};for(e in t)for(var i in n[e]={},t[e]){var r=t[e][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture)?n[e][i]=r.clone():Array.isArray(r)?n[e][i]=r.slice():n[e][i]=r}return n}},Br={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object.assign(g.prototype,{isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this},setScalar:function(t){return this.b=this.g=this.r=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this},setRGB:function(t,e,n){return this.r=t,this.g=e,this.b=n,this},setHSL:function(){function t(t,e,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:.5>
755n?e:n<2/3?t+6*(e-t)*(2/3-n):t}return function(e,n,i){return e=Or.euclideanModulo(e,1),n=Or.clamp(n,0,1),i=Or.clamp(i,0,1),0===n?this.r=this.g=this.b=i:(i=2*i-(n=.5>=i?i*(1+n):i+n-i*n),this.r=t(i,n,e+1/3),this.g=t(i,n,e),this.b=t(i,n,e-1/3)),this}}(),setStyle:function(t){function e(e){void 0!==e&&1>parseFloat(e)&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}var n;if(n=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){var i=n[2];switch(n[1]){case"rgb":case"rgba":if(n=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(i))return this.r=Math.min(255,parseInt(n[1],10))/255,this.g=Math.min(255,parseInt(n[2],10))/255,this.b=Math.min(255,parseInt(n[3],10))/255,e(n[5]),this;if(n=/^(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(i))return this.r=Math.min(100,parseInt(n[1],10))/100,this.g=Math.min(100,parseInt(n[2],10))/100,this.b=Math.min(100,parseInt(n[3],10))/100,e(n[5]),this;break;case"hsl":case"hsla":if(n=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(i)){i=parseFloat(n[1])/360;var r=parseInt(n[2],10)/100,a=parseInt(n[3],10)/100;return e(n[5]),this.setHSL(i,r,a)}}}else if(n=/^#([A-Fa-f0-9]+)$/.exec(t)){if(3===(i=(n=n[1]).length))return this.r=parseInt(n.charAt(0)+n.charAt(0),16)/255,this.g=parseInt(n.charAt(1)+n.charAt(1),16)/255,this.b=parseInt(n.charAt(2)+n.charAt(2),16)/255,this;if(6===i)return this.r=parseInt(n.charAt(0)+n.charAt(1),16)/255,this.g=parseInt(n.charAt(2)+n.charAt(3),16)/255,this.b=parseInt(n.charAt(4)+n.charAt(5),16)/255,this}return t&&0<t.length&&(void 0!==(n=Br[t])?this.setHex(n):console.warn("THREE.Color: Unknown color "+t)),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return void 0===e&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){return void 0===e&&(e=2),e=0<e?1/e:1,this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},convertGammaToLinear:function(t){return this.copyGammaToLinear(this,t),this},convertLinearToGamma:function(t){return this.copyLinearToGamma(this,t),this},copySRGBToLinear:function(){function t(t){return.04045>t?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),copyLinearToSRGB:function(){function t(t){return.0031308>
vendor: 14,044 bytes, line 755
755t?12.92*t:1.055*Math.pow(t,.41666)-.055}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),convertSRGBToLinear:function(){return this.copySRGBToLinear(this),this},convertLinearToSRGB:function(){return this.copyLinearToSRGB(this),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){void 0===t&&(console.warn("THREE.Color: .getHSL() target is now required"),t={h:0,s:0,l:0});var e,n=this.r,i=this.g,r=this.b,a=Math.max(n,i,r),o=Math.min(n,i,r),s=(o+a)/2;if(o===a)o=e=0;else{var c=a-o;switch(o=.5>=s?c/(a+o):c/(2-a-o),a){case n:e=(i-r)/c+(i<r?6:0);break;case i:e=(r-n)/c+2;break;case r:e=(n-i)/c+4}e/=6}return t.h=e,t.s=o,t.l=s,t},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(){var t={};return function(e,n,i){return this.getHSL(t),t.h+=e,t.s+=n,t.l+=i,this.setHSL(t.h,t.s,t.l),this}}(),add:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this},addColors:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this},addScalar:function(t){return this.r+=t,this.g+=t,this.b+=t,this},sub:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this},multiply:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this},multiplyScalar:function(t){return this.r*=t,this.g*=t,this.b*=t,this},lerp:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this},equals:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b},fromArray:function(t,e){return void 0===e&&(e=0),this.r=t[e],this.g=t[e+1],this.b=t[e+2],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t},toJSON:function(){return this.getHex()}});var Fr={common:{diffuse:{value:new g(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new o},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new n(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new g(16777215)}},lights:{ambientLightColor:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}}},points:{diffuse:{value:new g(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},uvTransform:{value:new o}},sprite:{diffuse:{value:new g(15658734)},opacity:{value:1},center:{value:new n(.5,.5)},rotation:{value:0},map:{value:null},uvTransform:{value:new o}}},zr={basic:{uniforms:Ur.merge([Fr.common,Fr.specularmap,Fr.envmap,Fr.aomap,Fr.lightmap,Fr.fog]),vertexShader:Dr.meshbasic_vert,fragmentShader:Dr.meshbasic_frag},lambert:{uniforms:Ur.merge([Fr.common,Fr.specularmap,Fr.envmap,Fr.aomap,Fr.lightmap,Fr.emissivemap,Fr.fog,Fr.lights,{emissive:{value:new g(0)}}]),vertexShader:Dr.meshlambert_vert,fragmentShader:Dr.meshlambert_frag},phong:{uniforms:Ur.merge([Fr.common,Fr.specularmap,Fr.envmap,Fr.aomap,Fr.lightmap,Fr.emissivemap,Fr.bumpmap,Fr.normalmap,Fr.displacementmap,Fr.gradientmap,Fr.fog,Fr.lights,{emissive:{value:new g(0)},specular:{value:new g(1118481)},shininess:{value:30}}]),vertexShader:Dr.meshphong_vert,fragmentShader:Dr.meshphong_frag},standard:{uniforms:Ur.merge([Fr.common,Fr.envmap,Fr.aomap,Fr.lightmap,Fr.emissivemap,Fr.bumpmap,Fr.normalmap,Fr.displacementmap,Fr.roughnessmap,Fr.metalnessmap,Fr.fog,Fr.lights,{emissive:{value:new g(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:Dr.meshphysical_vert,fragmentShader:Dr.meshphysical_frag},points:{uniforms:Ur.merge([Fr.points,Fr.fog]),vertexShader:Dr.points_vert,fragmentShader:Dr.points_frag},dashed:{uniforms:Ur.merge([Fr.common,Fr.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Dr.linedashed_vert,fragmentShader:Dr.linedashed_frag},depth:{uniforms:Ur.merge([Fr.common,Fr.displacementmap]),vertexShader:Dr.depth_vert,fragmentShader:Dr.depth_frag},normal:{uniforms:Ur.merge([Fr.common,Fr.bumpmap,Fr.normalmap,Fr.displacementmap,{opacity:{value:1}}]),vertexShader:Dr.normal_vert,fragmentShader:Dr.normal_frag},sprite:{uniforms:Ur.merge([Fr.sprite,Fr.fog]),vertexShader:Dr.sprite_vert,fragmentShader:Dr.sprite_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Dr.cube_vert,fragmentShader:Dr.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Dr.equirect_vert,fragmentShader:Dr.equirect_frag},distanceRGBA:{uniforms:Ur.merge([Fr.common,Fr.displacementmap,{referencePosition:{value:new a},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Dr.distanceRGBA_vert,fragmentShader:Dr.distanceRGBA_frag},shadow:{uniforms:Ur.merge([Fr.lights,Fr.fog,{color:{value:new g(0)},opacity:{value:1}}]),vertexShader:Dr.shadow_vert,fragmentShader:Dr.shadow_frag}};zr.physical={uniforms:Ur.merge([zr.standard.uniforms,{clearCoat:{value:0},clearCoatRoughness:{value:0}}]),vertexShader:Dr.meshphysical_vert,fragmentShader:Dr.meshphysical_frag},x.RotationOrders="XYZ YZX ZXY XZY YXZ ZYX".split(" "),x.DefaultOrder="XYZ",Object.defineProperties(x.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback()}}}),Object.assign(x.prototype,{isEuler:!0,set:function(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._order=i||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,n){var i=Or.clamp,r=t.elements;t=r[0];var a=r[4],o=r[8],s=r[1],c=r[5],h=r[9],l=r[2],u=r[6];return r=r[10],"XYZ"===(e=e||this._order)?(this._y=Math.asin(i(o,-1,1)),.99999>Math.abs(o)?(this._x=Math.atan2(-h,r),this._z=Math.atan2(-a,t)):(this._x=Math.atan2(u,c),this._z=0)):"YXZ"===e?(this._x=Math.asin(-i(h,-1,1)),.99999>Math.abs(h)?(this._y=Math.atan2(o,r),this._z=Math.atan2(s,c)):(this._y=Math.atan2(-l,t),this._z=0)):"ZXY"===e?(this._x=Math.asin(i(u,-1,1)),.99999>Math.abs(u)?(this._y=Math.atan2(-l,r),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(s,t))):"ZYX"===e?(this._y=Math.asin(-i(l,-1,1)),.99999>Math.abs(l)?(this._x=Math.atan2(u,r),this._z=Math.atan2(s,t)):(this._x=0,this._z=Math.atan2(-a,c))):"YZX"===e?(this._z=Math.asin(i(s,-1,1)),.99999>Math.abs(s)?(this._x=Math.atan2(-h,c),this._y=Math.atan2(-l,t)):(this._x=0,this._y=Math.atan2(o,r))):"XZY"===e?(this._z=Math.asin(-i(a,-1,1)),.99999>Math.abs(a)?(this._x=Math.atan2(u,c),this._y=Math.atan2(o,t)):(this._x=Math.atan2(-h,r),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+e),this._order=e,!1!==n&&this.onChangeCallback(),this},setFromQuaternion:function(){var t=new i;return function(e,n,i){return t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,n,i)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new r;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new a(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(b.prototype,{set:function(t){this.mask=1<<t|0},enable:function(t){this.mask=this.mask|1<<t|0},toggle:function(t){this.mask^=1<<t|0},disable:function(t){this.mask&=~(1<<t|0)},test:function(t){return 0!=(this.mask&t.mask)}});var Gr=0;_.DefaultUp=new a(0,1,0),_.DefaultMatrixAutoUpdate=!0,_.prototype=Object.assign(Object.create(e.prototype),{constructor:_,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix:function(t){this.matrix.multiplyMatrices(t,this.matrix),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(){var t=new r;return function(e,n){return t.setFromAxisAngle(e,n),this.quaternion.multiply(t),this}}(),rotateOnWorldAxis:function(){var t=new r;return function(e,n){return t.setFromAxisAngle(e,n),this.quaternion.premultiply(t),this}}(),rotateX:function(){var t=new a(1,0,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateY:function(){var t=new a(0,1,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateZ:function(){var t=new a(0,0,1);return function(e){return this.rotateOnAxis(t,e)}}(),translateOnAxis:function(){var t=new a;return function(e,n){return t.copy(e).applyQuaternion(this.quaternion),this.position.add(t.multiplyScalar(n)),this}}(),translateX:function(){var t=new a(1,0,0);return function(e){return this.translateOnAxis(t,e)}}(),translateY:function(){var t=new a(0,1,0);return function(e){return this.translateOnAxis(t,e)}}(),translateZ:function(){var t=new a(0,0,1);return function(e){return this.translateOnAxis(t,e)}}(),localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(){var t=new i;return function(e){return e.applyMatrix4(t.getInverse(this.matrixWorld))}}(),lookAt:function(){var t=new i,e=new a;return function(n,i,r){n.isVector3?e.copy(n):e.set(n,i,r),this.isCamera?t.lookAt(this.position,e,this.up):t.lookAt(e,this.position,this.up),this.quaternion.setFromRotationMatrix(t)}}(),add:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(null!==t.parent&&t.parent.remove(t),t.parent=this,t.dispatchEvent({type:"added"}),this.children.push(t)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)},remove:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}return-1!==(e=this.children.indexOf(t))&&(t.parent=null,t.dispatchEvent({type:"removed"}),this.children.splice(e,1)),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(var n=0,i=this.children.length;n<i;n++){var r=this.children[n].getObjectByProperty(t,e);if(void 0!==r)return r}},getWorldPosition:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new a),this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(){var t=new a,e=new a;return function(n){return void 0===n&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),n=new r),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,n,e),n}}(),getWorldScale:function(){var t=new a,e=new r;return function(n){return void 0===n&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),n=new a),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,e,n),n}}(),getWorldDirection:function(){var t=new r;return function(e){return void 0===e&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),e=new a),this.getWorldQuaternion(t),e.set(0,0,1).applyQuaternion(t)}}(),raycast:function(){},traverse:function(t){t(this);for(var e=this.children,n=0,i=e.length;n<i;n++)e[n].traverse(t)},traverseVisible:function(t){if(!1!==this.visible){t(this);for(var e=this.children,n=0,i=e.length;n<i;n++)e[n].traverseVisible(t)}},traverseAncestors:function(t){var e=this.parent;null!==e&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix
755):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(var e=this.children,n=0,i=e.length;n<i;n++)e[n].updateMatrixWorld(t)},toJSON:function(t){function e(e,n){return void 0===e[n.uuid]&&(e[n.uuid]=n.toJSON(t)),n.uuid}function n(t){var e,n=[];for(e in t){var i=t[e];delete i.metadata,n.push(i)}return n}var i=void 0===t||"string"==typeof t,r={};i&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},r.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var a={};if(a.uuid=this.uuid,a.type=this.type,""!==this.name&&(a.name=this.name),!0===this.castShadow&&(a.castShadow=!0),!0===this.receiveShadow&&(a.receiveShadow=!0),!1===this.visible&&(a.visible=!1),!1===this.frustumCulled&&(a.frustumCulled=!1),0!==this.renderOrder&&(a.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(a.userData=this.userData),a.layers=this.layers.mask,a.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(a.matrixAutoUpdate=!1),this.isMesh||this.isLine||this.isPoints){a.geometry=e(t.geometries,this.geometry);var o=this.geometry.parameters;if(void 0!==o&&void 0!==o.shapes)if(o=o.shapes,Array.isArray(o))for(var s=0,c=o.length;s<c;s++)e(t.shapes,o[s]);else e(t.shapes,o)}if(void 0!==this.material)if(Array.isArray(this.material)){for(o=[],s=0,c=this.material.length;s<c;s++)o.push(e(t.materials,this.material[s]));a.material=o}else a.material=e(t.materials,this.material);if(0<this.children.length)for(a.children=[],s=0;s<this.children.length;s++)a.children.push(this.children[s].toJSON(t).object);if(i){i=n(t.geometries),s=n(t.materials),c=n(t.textures);var h=n(t.images);o=n(t.shapes),0<i.length&&(r.geometries=i),0<s.length&&(r.materials=s),0<c.length&&(r.textures=c),0<h.length&&(r.images=h),0<o.length&&(r.shapes=o)}return r.object=a,r},clone:function(t){return(new this.constructor).copy(this,t)},copy:function(t,e){if(void 0===e&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(e=0;e<t.children.length;e++)this.add(t.children[e].clone());return this}}),w.prototype=Object.assign(Object.create(_.prototype),{constructor:w,isCamera:!0,copy:function(t,e){return _.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this},getWorldDirection:function(){var t=new r;return function(e){return void 0===e&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),e=new a),this.getWorldQuaternion(t),e.set(0,0,-1).applyQuaternion(t)}}(),updateMatrixWorld:function(t){_.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return(new this.constructor).copy(this)}}),M.prototype=Object.assign(Object.create(w.prototype),{constructor:M,isOrthographicCamera:!0,copy:function(t,e){return w.prototype.copy.call(this,t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this},setViewOffset:function(t,e,n,i,r,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2,r=n-t;if(n+=t,t=i+e,e=i-e,null!==this.view&&this.view.enabled){n=this.zoom/(this.view.width/this.view.fullWidth),e=this.zoom/(this.view.height/this.view.fullHeight);var a=(this.right-this.left)/this.view.width;i=(this.top-this.bottom)/this.view.height,n=(r+=this.view.offsetX/n*a)+this.view.width/n*a,e=(t-=this.view.offsetY/e*i)-this.view.height/e*i}
755this.projectionMatrix.makeOrthographic(r,n,t,e,this.near,this.far)},toJSON:function(t){return(t=_.prototype.toJSON.call(this,t)).object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}),Object.assign(E.prototype,{clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(var e=0,n=t.vertexNormals.length;e<n;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(e=0,n=t.vertexColors.length;e<n;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}});var Hr=0;T.prototype=Object.assign(Object.create(e.prototype),{constructor:T,isGeometry:!0,applyMatrix:function(t){for(var e=(new o).getNormalMatrix(t),n=0,i=this.vertices.length;n<i;n++)this.vertices[n].applyMatrix4(t);for(n=0,i=this.faces.length;n<i;n++){(t=this.faces[n]).normal.applyMatrix3(e).normalize();for(var r=0,a=t.vertexNormals.length;r<a;r++)t.vertexNormals[r].applyMatrix3(e).normalize()}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this.normalsNeedUpdate=this.verticesNeedUpdate=!0,this},rotateX:function(){var t=new i;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new i;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new i;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new i;return function(e,n,i){return t.makeTranslation(e,n,i),this.applyMatrix(t),this}}(),scale:function(){var t=new i;return function(e,n,i){return t.makeScale(e,n,i),this.applyMatrix(t),this}}(),lookAt:function(){var t=new _;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),fromBufferGeometry:function(t){function e(t,e,n,r){r=new E(t,e,n,void 0!==c?[p[t].clone(),p[e].clone(),p[n].clone()]:[],void 0!==h?[i.colors[t].clone(),i.colors[e].clone(),i.colors[n].clone()]:[],r),i.faces.push(r),void 0!==l&&i.faceVertexUvs[0].push([d[t].clone(),d[e].clone(),d[n].clone()]),void 0!==u&&i.faceVertexUvs[1].push([f[t].clone(),f[e].clone(),f[n].clone()])}var i=this,r=null!==t.index?t.index.array:void 0,o=t.attributes,s=o.position.array,c=void 0!==o.normal?o.normal.array:void 0,h=void 0!==o.color?o.color.array:void 0,l=void 0!==o.uv?o.uv.array:void 0,u=void 0!==o.uv2?o.uv2.array:void 0;void 0!==u&&(this.faceVertexUvs[1]=[]);for(var p=[],d=[],f=[],m=o=0;o<s.length;o+=3,m+=2)i.vertices.push(new a(s[o],s[o+1],s[o+2])),void 0!==c&&p.push(new a(c[o],c[o+1],c[o+2])),void 0!==h&&i.colors.push(new g(h[o],h[o+1],h[o+2])),void 0!==l&&d.push(new n(l[m],l[m+1])),void 0!==u&&f.push(new n(u[m],u[m+1]));var v=t.groups;if(0<v.length)for(o=0;o<v.length;o++){var y=(s=v[o]).start;for(m=y,y+=s.count;m<y;m+=3)void 0!==r?e(r[m],r[m+1],r[m+2],s.materialIndex):e(m,m+1,m+2,s.materialIndex)}else if(void 0!==r)for(o=0;o<r.length;o+=3)e(r[o],r[o+1],r[o+2]);else for(o=0;o<s.length/3;o+=3)e(o,o+1,o+2);return this.computeFaceNormals(),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){var t=new a;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius;e=0===e?1:1/e;var n=new i;return n.set(e,0,0,-e*t.x,0,e,0,-e*t.y,0,0,e,-e*t.z,0,0,0,1),this.applyMatrix(n),this},computeFaceNormals:function(){for(var t=new a,e=new a,n=0,i=this.faces.length;n<i;n++){var r=this.faces[n],o=this.vertices[r.a],s=this.vertices[r.b];t.subVectors(this.vertices[r.c],s),e.subVectors(o,s),t.cross(e),t.normalize(),r.normal.copy(t)}},computeVertexNormals:function(t){var e;void 0===t&&(t=!0);var n=Array(this.vertices.length),i=0;for(e=this.vertices.length;i<e;i++)n[i]=new a;
755if(t){var r=new a,o=new a;for(t=0,i=this.faces.length;t<i;t++){e=this.faces[t];var s=this.vertices[e.a],c=this.vertices[e.b],h=this.vertices[e.c];r.subVectors(h,c),o.subVectors(s,c),r.cross(o),n[e.a].add(r),n[e.b].add(r),n[e.c].add(r)}}else for(this.computeFaceNormals(),t=0,i=this.faces.length;t<i;t++)n[(e=this.faces[t]).a].add(e.normal),n[e.b].add(e.normal),n[e.c].add(e.normal);for(i=0,e=this.vertices.length;i<e;i++)n[i].normalize();for(t=0,i=this.faces.length;t<i;t++)3===(s=(e=this.faces[t]).vertexNormals).length?(s[0].copy(n[e.a]),s[1].copy(n[e.b]),s[2].copy(n[e.c])):(s[0]=n[e.a].clone(),s[1]=n[e.b].clone(),s[2]=n[e.c].clone());0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t;this.computeFaceNormals();var e=0;for(t=this.faces.length;e<t;e++){var n=this.faces[e],i=n.vertexNormals;3===i.length?(i[0].copy(n.normal),i[1].copy(n.normal),i[2].copy(n.normal)):(i[0]=n.normal.clone(),i[1]=n.normal.clone(),i[2]=n.normal.clone())}0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,n=0;for(e=this.faces.length;n<e;n++){var i=this.faces[n];
755i.__originalFaceNormal?i.__originalFaceNormal.copy(i.normal):i.__originalFaceNormal=i.normal.clone(),i.__originalVertexNormals||(i.__originalVertexNormals=[]);var r=0;for(t=i.vertexNormals.length;r<t;r++)i.__originalVertexNormals[r]?i.__originalVertexNormals[r].copy(i.vertexNormals[r]):i.__originalVertexNormals[r]=i.vertexNormals[r].clone()}var o=new T;for(o.faces=this.faces,r=0,t=this.morphTargets.length;r<t;r++){if(!this.morphNormals[r]){this.morphNormals[r]={},this.morphNormals[r].faceNormals=[],this.morphNormals[r].vertexNormals=[],i=this.morphNormals[r].faceNormals;var s=this.morphNormals[r].vertexNormals;for(n=0,e=this.faces.length;n<e;n++){var c=new a,h={a:new a,b:new a,c:new a};i.push(c),s.push(h)}}for(s=this.morphNormals[r],o.vertices=this.morphTargets[r].vertices,o.computeFaceNormals(),o.computeVertexNormals(),n=0,e=this.faces.length;n<e;n++)i=this.faces[n],c=s.faceNormals[n],h=s.vertexNormals[n],c.copy(i.normal),h.a.copy(i.vertexNormals[0]),h.b.copy(i.vertexNormals[1]),h.c.copy(i.vertexNormals[2])}for(n=0,e=this.faces.length;n<e;
755n++)(i=this.faces[n]).normal=i.__originalFaceNormal,i.vertexNormals=i.__originalVertexNormals},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new p),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new d),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,n){if(t&&t.isGeometry){var i,r=this.vertices.length,a=this.vertices,s=t.vertices,c=this.faces,h=t.faces,l=this.faceVertexUvs[0],u=t.faceVertexUvs[0],p=this.colors,d=t.colors;void 0===n&&(n=0),void 0!==e&&(i=(new o).getNormalMatrix(e)),t=0;for(var f=s.length;t<f;t++){var m=s[t].clone();void 0!==e&&m.applyMatrix4(e),a.push(m)}for(t=0,f=d.length;t<f;t++)p.push(d[t].clone());for(t=0,f=h.length;t<f;t++){var g=(s=h[t]).vertexNormals;for(d=s.vertexColors,(p=new E(s.a+r,s.b+r,s.c+r)).normal.copy(s.normal),void 0!==i&&p.normal.applyMatrix3(i).normalize(),e=0,a=g.length;e<a;e++)m=g[e].clone(),void 0!==i&&m.applyMatrix3(i).normalize(),p.vertexNormals.push(m);for(p.color.copy(s.color),e=0,a=d.length;e<a;e++)m=d[e],p.vertexColors.push(m.clone());p.materialIndex=s.materialIndex+n,c.push(p)}for(t=0,f=u.length;t<f;t++)if(i=[],void 0!==(n=u[t])){for(e=0,a=n.length;e<a;e++)i.push(n[e].clone());l.push(i)}}else console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t)},mergeMesh:function(t){t&&t.isMesh?(t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",t)},mergeVertices:function(){var t,e={},n=[],i=[],r=Math.pow(10,4),a=0;for(t=this.vertices.length;a<t;a++){var o=this.vertices[a];void 0===e[o=Math.round(o.x*r)+"_"+Math.round(o.y*r)+"_"+Math.round(o.z*r)]?(e[o]=a,n.push(this.vertices[a]),i[a]=n.length-1):i[a]=i[e[o]]}for(e=[],a=0,t=this.faces.length;a<t;a++)for((r=this.faces[a]).a=i[r.a],r.b=i[r.b],r.c=i[r.c],r=[r.a,r.b,r.c],o=0;3>o;o++)if(r[o]===r[(o+1)%3]){e.push(a);break}for(a=e.length-1;0<=a;a--)for(r=e[a],this.faces.splice(r,1),i=0,t=this.faceVertexUvs.length;i<t;i++)this.faceVertexUvs[i].splice(r,1);return a=this.vertices.length-n.length,this.vertices=n,a},setFromPoints:function(t){this.vertices=[];for(var e=0,n=t.length;e<n;e++){var i=t[e];this.vertices.push(new a(i.x,i.y,i.z||0))}return this},sortFacesByMaterialIndex:function(){for(var t=this.faces,e=t.length,n=0;n<e;n++)t[n]._id=n;t.sort(function(t,e){return t.materialIndex-e.materialIndex});var i,r,a=this.faceVertexUvs[0],o=this.faceVertexUvs[1];for(a&&a.length===e&&(i=[]),o&&o.length===e&&(r=[]),n=0;n<e;n++){var s=t[n]._id;i&&i.push(a[s]),r&&r.push(o[s])}i&&(this.faceVertexUvs[0]=i),r&&(this.faceVertexUvs[1]=r)},toJSON:function(){function t(t,e,n){return n?t|1<<e:t&~(1<<e)}function e(t){var e=t.x.toString()+t.y.toString()+t.z.toString();return void 0!==h[e]?h[e]:(h[e]=c.length/3,c.push(t.x,t.y,t.z),h[e])}function n(t){var e=t.r.toString()+t.g.toString()+t.b.toString();return void 0!==u[e]?u[e]:(u[e]=l.length,l.push(t.getHex()),u[e])}function i(t){var e=t.x.toString()+t.y.toString();return void 0!==d[e]?d[e]:(d[e]=p.length/2,p.push(t.x,t.y),d[e])}var r={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(r.uuid=this.uuid,r.type=this.type,""!==this.name&&(r.name=this.name),void 0!==this.parameters){var a,o=this.parameters;for(a in o)void 0!==o[a]&&(r[a]=o[a]);return r}for(o=[],a=0;a<this.vertices.length;a++){var s=this.vertices[a];o.push(s.x,s.y,s.z)}s=[];var c=[],h={},l=[],u={},p=[],d={};for(a=0;a<this.faces.length;a++){var f=this.faces[a],m=void 0!==this.faceVertexUvs[0][a],g=0<f.normal.length(),v=0<f.vertexNormals.length,y=1!==f.color.r||1!==f.color.g||1!==f.color.b,x=0<f.vertexColors.length,b=0;b=t(b=t(b=t(b=t(b=t(b=t(b=t(b=t(b,0,0),1,!0),2,!1),3,m),4,g),5,v),6,y),7,x),s.push(b),s.push(f.a,f.b,f.c),s.push(f.materialIndex),m&&(m=this.faceVertexUvs[0][a],s.push(i(m[0]),i(m[1]),i(m[2]))),g&&s.push(e(f.normal)),v&&(g=f.vertexNormals,s.push(e(g[0]),e(g[1]),e(g[2]))),y&&s.push(n(f.color)),x&&(f=f.vertexColors,s.push(n(f[0]),n(f[1]),n(f[2])))}return r.data={},r.data.vertices=o,r.data.normals=c,0<l.length&&(r.data.colors=l),0<p.length&&(r.data.uvs=[p]),r.data.faces=s,r},clone:function(){return(new T).copy(this)},copy:function(t){var e,n,i;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var r=t.vertices,a=0;for(e=r.length;a<e;a++)this.vertices.push(r[a].clone());for(a=0,e=(r=t.colors).length;a<e;a++)this.colors.push(r[a].clone());for(a=0,e=(r=t.faces).length;a<e;a++)this.faces.push(r[a].clone());for(a=0,e=t.faceVertexUvs.length;a<e;a++){var o=t.faceVertexUvs[a];for(void 0===this.faceVertexUvs[a]&&(this.faceVertexUvs[a]=[]),r=0,n=o.length;r<n;r++){var s=o[r],c=[],h=0;for(i=s.length;h<i;h++)c.push(s[h].clone());this.faceVertexUvs[a].push(c)}}for(a=0,e=(h=t.morphTargets).length;a<e;a++){if((i={}).name=h[a].name,void 0!==h[a].vertices)for(i.vertices=[],r=0,n=h[a].vertices.length;r<n;r++)i.vertices.push(h[a].vertices[r].clone());if(void 0!==h[a].normals)for(i.normals=[],r=0,n=h[a].normals.length;r<n;r++)i.normals.push(h[a].normals[r].clone());this.morphTargets.push(i)}for(a=0,e=(h=t.morphNormals).length;a<e;a++){if(i={},void 0!==h[a].vertexNormals)for(i.vertexNormals=[],r=0,n=h[a].vertexNormals.length;r<n;r++)o=h[a].vertexNormals[r],(s={}).a=o.a.clone(),s.b=o.b.clone(),s.c=o.c.clone(),i.vertexNormals.push(s);if(void 0!==h[a].faceNormals)for(i.faceNormals=[],r=0,n=h[a].faceNormals.length;r<n;r++)i.faceNormals.push(h[a].faceNormals[r].clone());this.morphNormals.push(i)}for(a=0,e=(r=t.skinWeights).length;a<e;a++)this.skinWeights.push(r[a].clone());for(a=0,e=(r=t.skinIndices).length;a<e;a++)this.skinIndices.push(r[a].clone());for(a=0,e=(r=t.lineDistances).length;a<e;a++)this.lineDistances.push(r[a]);return null!==(a=t.boundingBox)&&(this.boundingBox=a.clone()),null!==(a=t.boundingSphere)&&(this.boundingSphere=a.clone()),this.elementsNeedUpdate=t.elementsNeedUpdate,this.verticesNeedUpdate=t.verticesNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.lineDistancesNeedUpdate=t.lineDistancesNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(S.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(S.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=void 0!==t?t.length/this.itemSize:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.dynamic=t.dynamic,this},copyAt:function(t,e,n){t*=this.itemSize,n*=e.itemSize;
755for(var i=0,r=this.itemSize;i<r;i++)this.array[t+i]=e.array[n+i];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var a=t[i];void 0===a&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",i),a=new g),e[n++]=a.r,e[n++]=a.g,e[n++]=a.b}return this},copyVector2sArray:function(t){for(var e=this.array,i=0,r=0,a=t.length;r<a;r++){var o=t[r];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",r),o=new n),e[i++]=o.x,e[i++]=o.y}return this},copyVector3sArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var o=t[i];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",i),o=new a),e[n++]=o.x,e[n++]=o.y,e[n++]=o.z}return this},copyVector4sArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var a=t[i];void 0===a&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",i),a=new c),e[n++]=a.x,e[n++]=a.y,e[n++]=a.z,e[n++]=a.w}return this},set:function(t,e){return void 0===e&&(e=0),this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this},setXYZ:function(t,e,n,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this},setXYZW:function(t,e,n,i,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this.array[t+3]=r,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)}}),A.prototype=Object.create(S.prototype),A.prototype.constructor=A,L.prototype=Object.create(S.prototype),L.prototype.constructor=L,R.prototype=Object.create(S.prototype),R.prototype.constructor=R,C.prototype=Object.create(S.prototype),C.prototype.constructor=C,P.prototype=Object.create(S.prototype),P.prototype.constructor=P,O.prototype=Object.create(S.prototype),O.prototype.constructor=O,I.prototype=Object.create(S.prototype),I.prototype.constructor=I,N.prototype=Object.create(S.prototype),N.prototype.constructor=N,D.prototype=Object.create(S.prototype),D.prototype.constructor=D,Object.assign(U.prototype,{computeGroups:function(t){var e=[],n=void 0;t=t.faces;for(var i=0;i<t.length;i++){var r=t[i];if(r.materialIndex!==n){n=r.materialIndex,void 0!==a&&(a.count=3*i-a.start,e.push(a));var a={start:3*i,materialIndex:n}}}void 0!==a&&(a.count=3*i-a.start,e.push(a)),this.groups=e},fromGeometry:function(t){var e=t.faces,i=t.vertices,r=t.faceVertexUvs,a=r[0]&&0<r[0].length,o=r[1]&&0<r[1].length,s=t.morphTargets,c=s.length;if(0<c){for(var h=[],l=0;l<c;l++)h[l]=[];this.morphTargets.position=h}var u=t.morphNormals,p=u.length;if(0<p){var d=[];for(l=0;l<p;l++)d[l]=[];this.morphTargets.normal=d}var f=t.skinIndices,m=t.skinWeights,g=f.length===i.length,v=m.length===i.length;for(0<i.length&&0===e.length&&console.error("THREE.DirectGeometry: Faceless geometries are not supported."),l=0;l<e.length;l++){var y=e[l];this.vertices.push(i[y.a],i[y.b],i[y.c]);var x=y.vertexNormals;for(3===x.length?this.normals.push(x[0],x[1],x[2]):(x=y.normal,this.normals.push(x,x,x)),3===(x=y.vertexColors).length?this.colors.push(x[0],x[1],x[2]):(x=y.color,this.colors.push(x,x,x)),!0===a&&(void 0!==(x=r[0][l])?this.uvs.push(x[0],x[1],x[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",l),this.uvs.push(new n,new n,new n))),!0===o&&(void 0!==(x=r[1][l])?this.uvs2.push(x[0],x[1],x[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",l),this.uvs2.push(new n,new n,new n))),x=0;x<c;x++){var b=s[x].vertices;h[x].push(b[y.a],b[y.b],b[y.c])}for(x=0;x<p;x++)b=u[x].vertexNormals[l],d[x].push(b.a,b.b,b.c);g&&this.skinIndices.push(f[y.a],f[y.b],f[y.c]),v&&this.skinWeights.push(m[y.a],m[y.b],m[y.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this}});var Vr=1;F.prototype=Object.assign(Object.create(e.prototype),{constructor:F,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){Array.isArray(t)?this.index=new(65535<B(t)?I:P)(t,1):this.index=t},addAttribute:function(t,e,n){return e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?"index"===t?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):(this.attributes[t]=e,this):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.addAttribute(t,new S(e,n)))},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,n){this.groups.push({start:t,count:e,materialIndex:void 0!==n?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;return void 0!==e&&(t.applyToBufferAttribute(e),e.needsUpdate=!0),void 0!==(e=this.attributes.normal)&&((new o).getNormalMatrix(t).applyToBufferAttribute(e),e.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(){var t=new i;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new i;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new i;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new i;return function(e,n,i){return t.makeTranslation(e,n,i),this.applyMatrix(t),this}}(),scale:function(){var t=new i;return function(e,n,i){return t.makeScale(e,n,i),this.applyMatrix(t),this}}(),lookAt:function(){var t=new _;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){var t=new a;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){t=new N(3*e.vertices.length,3);var n=new N(3*e.colors.length,3);this.addAttribute("position",t.copyVector3sArray(e.vertices)),this.addAttribute("color",n.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length&&(t=new N(e.lineDistances.length,1),this.addAttribute("lineDistance",t.copyArray(e.lineDistances))),null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&
755(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){for(var e=[],n=0,i=t.length;n<i;n++){var r=t[n];e.push(r.x,r.y,r.z||0)}return this.addAttribute("position",new N(e,3)),this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var n=e.__directGeometry;if(!0===e.elementsNeedUpdate&&(n=void 0,e.elementsNeedUpdate=!1),void 0===n)return this.fromGeometry(e);n.verticesNeedUpdate=e.verticesNeedUpdate,n.normalsNeedUpdate=e.normalsNeedUpdate,n.colorsNeedUpdate=e.colorsNeedUpdate,n.uvsNeedUpdate=e.uvsNeedUpdate,n.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=n}return!0===e.verticesNeedUpdate&&(void 0!==(n=this.attributes.position)&&(n.copyVector3sArray(e.vertices),n.needsUpdate=!0),e.verticesNeedUpdate=!1),!0===e.normalsNeedUpdate&&(void 0!==(n=this.attributes.normal)&&(n.copyVector3sArray(e.normals),n.needsUpdate=!0),e.normalsNeedUpdate=!1),!0===e.colorsNeedUpdate&&(void 0!==(n=this.attributes.color)&&(n.copyColorsArray(e.colors),n.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(void 0!==(n=this.attributes.uv)&&(n.copyVector2sArray(e.uvs),n.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(void 0!==(n=this.attributes.lineDistance)&&(n.copyArray(e.lineDistances),n.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=(new U).fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);for(var n in this.addAttribute("position",new S(e,3).copyVector3sArray(t.vertices)),0<t.normals.length&&(e=new Float32Array(3*t.normals.length),this.addAttribute("normal",new S(e,3).copyVector3sArray(t.normals))),0<t.colors.length&&(e=new Float32Array(3*t.colors.length),this.addAttribute("color",new S(e,3).copyColorsArray(t.colors))),0<t.uvs.length&&(e=new Float32Array(2*t.uvs.length),this.addAttribute("uv",new S(e,2).copyVector2sArray(t.uvs))),0<t.uvs2.length&&(e=new Float32Array(2*t.uvs2.length),this.addAttribute("uv2",new S(e,2).copyVector2sArray(t.uvs2))),this.groups=t.groups,t.morphTargets){e=[];for(var i=t.morphTargets[n],r=0,a=i.length;r<a;r++){var o=i[r],s=new N(3*o.length,3);e.push(s.copyVector3sArray(o))}this.morphAttributes[n]=e}return 0<t.skinIndices.length&&(n=new N(4*t.skinIndices.length,4),this.addAttribute("skinIndex",n.copyVector4sArray(t.skinIndices))),0<t.skinWeights.length&&(n=new N(4*t.skinWeights.length,4),this.addAttribute("skinWeight",n.copyVector4sArray(t.skinWeights))),null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new p);var t=this.attributes.position;void 0!==t?this.boundingBox.setFromBufferAttribute(t):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var t=new p,e=new a;return function(){null===this.boundingSphere&&(this.boundingSphere=new d);var n=this.attributes.position;if(n){var i=this.boundingSphere.center;t.setFromBufferAttribute(n),t.getCenter(i);for(var r=0,a=0,o=n.count;a<o;a++)e.x=n.getX(a),e.y=n.getY(a),e.z=n.getZ(a),r=Math.max(r,i.distanceToSquared(e));this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}}(),computeFaceNormals:function(){},computeVertexNormals:function(){var t=this.index,e=this.attributes,n=this.groups;if(e.position){var i=e.position.array;if(void 0===e.normal)this.addAttribute("normal",new S(new Float32Array(i.length),3));else for(var r=e.normal.array,o=0,s=r.length;o<s;o++)r[o]=0;r=e.normal.array;var c=new a,h=new a,l=new a,u=new a,p=new a;
755if(t){t=t.array,0===n.length&&this.addGroup(0,t.length);for(var d=0,f=n.length;d<f;++d){s=(o=n[d]).start;var m=o.count;for(o=s,s+=m;o<s;o+=3){m=3*t[o+0];var g=3*t[o+1],v=3*t[o+2];c.fromArray(i,m),h.fromArray(i,g),l.fromArray(i,v),u.subVectors(l,h),p.subVectors(c,h),u.cross(p),r[m]+=u.x,r[m+1]+=u.y,r[m+2]+=u.z,r[g]+=u.x,r[g+1]+=u.y,r[g+2]+=u.z,r[v]+=u.x,r[v+1]+=u.y,r[v+2]+=u.z}}}else for(o=0,s=i.length;o<s;o+=9)c.fromArray(i,o),h.fromArray(i,o+3),l.fromArray(i,o+6),u.subVectors(l,h),p.subVectors(c,h),u.cross(p),r[o]=u.x,r[o+1]=u.y,r[o+2]=u.z,r[o+3]=u.x,r[o+4]=u.y,r[o+5]=u.z,r[o+6]=u.x,r[o+7]=u.y,r[o+8]=u.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(t&&t.isBufferGeometry){void 0===e&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var n,i=this.attributes;for(n in i)if(void 0!==t.attributes[n]){var r=i[n].array,a=t.attributes[n],o=a.array,s=0;for(a=a.itemSize*e;s<o.length;s++,a++)r[a]=o[s]}return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t)},normalizeNormals:function(){var t=new a;return function(){for(var e=this.attributes.normal,n=0,i=e.count;n<i;n++)t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.normalize(),e.setXYZ(n,t.x,t.y,t.z)}}(),toNonIndexed:function(){if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var t,e=new F,n=this.index.array,i=this.attributes;for(t in i){var r=i[t],a=r.array,o=r.itemSize,s=new a.constructor(n.length*o),c=0;r=0;for(var h=n.length;r<h;r++)for(var l=n[r]*o,u=0;u<o;u++)s[c++]=a[l++];e.addAttribute(t,new S(s,o))}for(r=0,h=(n=this.groups).length;r<h;r++)i=n[r],e.addGroup(i.start,i.count,i.materialIndex);return e},toJSON:function(){var t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),0<Object.keys(this.userData).length&&(t.userData=this.userData),void 0!==this.parameters){var e=this.parameters;for(r in e)void 0!==e[r]&&(t[r]=e[r]);return t}t.data={attributes:{}};var n=this.index;for(r in null!==n&&(e=Array.prototype.slice.call(n.array),t.data.index={type:n.array.constructor.name,array:e}),n=this.attributes){var i=n[r];e=Array.prototype.slice.call(i.array),t.data.attributes[r]={itemSize:i.itemSize,type:i.array.constructor.name,array:e,normalized:i.normalized}}var r=this.groups;return 0<r.length&&(t.data.groups=JSON.parse(JSON.stringify(r))),null!==(r=this.boundingSphere)&&(t.data.boundingSphere={center:r.center.toArray(),radius:r.radius}),t},clone:function(){return(new F).copy(this)},copy:function(t){var e;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var n=t.index;for(o in null!==n&&this.setIndex(n.clone()),n=t.attributes)this.addAttribute(o,n[o].clone());var i=t.morphAttributes;for(o in i){var r=[],a=i[o];for(n=0,e=a.length;n<e;n++)r.push(a[n].clone());this.morphAttributes[o]=r}var o=t.groups;for(n=0,e=o.length;n<e;n++)i=o[n],this.addGroup(i.start,i.count,i.materialIndex);return null!==(o=t.boundingBox)&&(this.boundingBox=o.clone()),null!==(o=t.boundingSphere)&&(this.boundingSphere=o.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),z.prototype=Object.create(T.prototype),z.prototype.constructor=z,G.prototype=Object.create(F.prototype),G.prototype.constructor=G,H.prototype=Object.create(T.prototype),H.prototype.constructor=H,V.prototype=Object.create(F.prototype),V.prototype.constructor=V;var kr=0;k.prototype=Object.assign(Object.create(e.prototype),{constructor:k,isMaterial:!0,onBeforeCompile:function(){},setValues:function(t){if(void 0!==t)for(var e in t){var n=t[e];if(void 0===n)console.warn("THREE.Material: '"+e+"' parameter is undefined.");else if("shading"===e)console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===n;else{var i=this[e];void 0===i?console.warn("THREE."+this.type+": '"+e+"' is not a property of this material."):i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]="overdraw"===e?Number(n):n}}},toJSON:function(t){function e(t){var e,n=[];for(e in t){var i=t[e];delete i.metadata,n.push(i)}return n}var n=void 0===t||"string"==typeof t;n&&(t={textures:{},images:{}});var i={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};
vendor: 6,924 bytes, line 755
755return i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),1!==this.emissiveIntensity&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearCoat&&(i.clearCoat=this.clearCoat),void 0!==this.clearCoatRoughness&&(i.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(t).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,i.reflectivity=this.reflectivity),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.size&&(i.size=this.size),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(i.blending=this.blending),!0===this.flatShading&&(i.flatShading=this.flatShading),0!==this.side&&(i.side=this.side),0!==this.vertexColors&&(i.vertexColors=this.vertexColors),1>this.opacity&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=this.transparent),i.depthFunc=this.depthFunc,i.depthTest=this.depthTest,i.depthWrite=this.depthWrite,0!==this.rotation&&(i.rotation=this.rotation),1!==this.linewidth&&(i.linewidth=this.linewidth),void 0!==this.dashSize&&(i.dashSize=this.dashSize),void 0!==this.gapSize&&(i.gapSize=this.gapSize),void 0!==this.scale&&(i.scale=this.scale),!0===this.dithering&&(i.dithering=!0),0<this.alphaTest&&(i.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(i.wireframe=this.wireframe),1<this.wireframeLinewidth&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),!0===this.morphTargets&&(i.morphTargets=!0),!0===this.skinning&&(i.skinning=!0),!1===this.visible&&(i.visible=!1),"{}"!==JSON.stringify(this.userData)&&(i.userData=this.userData),n&&(n=e(t.textures),t=e(t.images),0<n.length&&(i.textures=n),0<t.length&&(i.images=t)),i},clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.flatShading=t.flatShading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.overdraw=t.overdraw,this.visible=t.visible,this.userData=JSON.parse(JSON.stringify(t.userData)),this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,n=null;if(null!==e){var i=e.length;n=Array(i);for(var r=0;r!==i;++r)n[r]=e[r].clone()}return this.clippingPlanes=n,this.shadowSide=t.shadowSide,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),j.prototype=Object.create(k.prototype),j.prototype.constructor=j,j.prototype.isMeshBasicMaterial=!0,j.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this},W.prototype=Object.create(k.prototype),W.prototype.constructor=W,W.prototype.isShaderMaterial=!0,W.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=Ur.clone(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},W.prototype.toJSON=function(t){return(t=k.prototype.toJSON.call(this,t)).uniforms=this.uniforms,t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t},Object.assign(X.prototype,{set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return void 0===e&&(console.warn("THREE.Ray: .at() target is now required"),e=new a),e.copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new a;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){return void 0===e&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),e=new a),e.subVectors(t,this.origin),0>
755(t=e.dot(this.direction))?e.copy(this.origin):e.copy(this.direction).multiplyScalar(t).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new a;return function(e){var n=t.subVectors(e,this.origin).dot(this.direction);return 0>n?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(n).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:function(){var t=new a,e=new a,n=new a;return function(i,r,a,o){t.copy(i).add(r).multiplyScalar(.5),e.copy(r).sub(i).normalize(),n.copy(this.origin).sub(t);var s=.5*i.distanceTo(r),c=-this.direction.dot(e),h=n.dot(this.direction),l=-n.dot(e),u=n.lengthSq(),p=Math.abs(1-c*c);if(0<p){r=c*h-l;var d=s*p;0<=(i=c*l-h)?r>=-d?r<=d?c=(i*=s=1/p)*(i+c*(r*=s)+2*h)+r*(c*i+r+2*l)+u:(r=s,c=-(i=Math.max(0,-(c*r+h)))*i+r*(r+2*l)+u):(r=-s,c=-(i=Math.max(0,-(c*r+h)))*i+r*(r+2*l)+u):r<=-d?c=-(i=Math.max(0,-(-c*s+h)))*i+(r=0<i?-s:Math.min(Math.max(-s,-l),s))*(r+2*l)+u:r<=d?(i=0,c=(r=Math.min(Math.max(-s,-l),s))*(r+2*l)+u):c=-(i=Math.max(0,-(c*s+h)))*i+(r=0<i?s:Math.min(Math.max(-s,-l),s))*(r+2*l)+u}else r=0<c?-s:s,c=-(i=Math.max(0,-(c*r+h)))*i+r*(r+2*l)+u;return a&&a.copy(this.direction).multiplyScalar(i).add(this.origin),o&&o.copy(e).multiplyScalar(r).add(t),c}}(),intersectSphere:function(){var t=new a;return function(e,n){t.subVectors(e.center,this.origin);var i=t.dot(this.direction),r=t.dot(t)-i*i;return r>(e=e.radius*e.radius)?null:(r=i-(e=Math.sqrt(e-r)),i+=e,0>r&&0>i?null:0>r?this.at(i,n):this.at(r,n))}}(),intersectsSphere:function(t){return this.distanceToPoint(t.center)<=t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);return 0===e?0===t.distanceToPoint(this.origin)?0:null:0<=(t=-(this.origin.dot(t.normal)+t.constant)/e)?t:null},intersectPlane:function(t,e){return null===(t=this.distanceToPlane(t))?null:this.at(t,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return 0===e||0>t.normal.dot(this.direction)*e},intersectBox:function(t,e){var n=1/this.direction.x,i=1/this.direction.y,r=1/this.direction.z,a=this.origin;if(0<=n){var o=(t.min.x-a.x)*n;n*=t.max.x-a.x}else o=(t.max.x-a.x)*n,n*=t.min.x-a.x;if(0<=i){var s=(t.min.y-a.y)*i;i*=t.max.y-a.y}else s=(t.max.y-a.y)*i,i*=t.min.y-a.y;return o>i||s>n?null:((s>o||o!=o)&&(o=s),(i<n||n!=n)&&(n=i),0<=r?(s=(t.min.z-a.z)*r,t=(t.max.z-a.z)*r):(s=(t.max.z-a.z)*r,t=(t.min.z-a.z)*r),o>t||s>n?null:((s>o||o!=o)&&(o=s),(t<n||n!=n)&&(n=t),0>n?null:this.at(0<=o?o:n,e)))},intersectsBox:function(){var t=new a;return function(e){return null!==this.intersectBox(e,t)}}(),intersectTriangle:function(){var t=new a,e=new a,n=new a,i=new a;return function(r,a,o,s,c){if(e.subVectors(a,r),n.subVectors(o,r),i.crossVectors(e,n),0<(a=this.direction.dot(i))){if(s)return null;s=1}else{if(!(0>a))return null;s=-1,a=-a}return t.subVectors(this.origin,r),0>(r=s*this.direction.dot(n.crossVectors(t,n)))?null:0>(o=s*this.direction.dot(e.cross(t)))||r+o>a?null:0>(r=-s*t.dot(i))?null:this.at(r/a,c)}}(),applyMatrix4:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}}),Object.assign(q,{getNormal:function(){var t=new a;return function(e,n,i,r){return void 0===r&&(console.warn("THREE.Triangle: .getNormal() target is now required"),r=new a),r.subVectors(i,n),t.subVectors(e,n),r.cross(t),0<(e=r.lengthSq())?r.multiplyScalar(1/Math.sqrt(e)):r.set(0,0,0)}}(),getBarycoord:function(){var t=new a,e=new a,n=new a;return function(i,r,o,s,c){t.subVectors(s,r),e.subVectors(o,r),n.subVectors(i,r),i=t.dot(t),r=t.dot(e),o=t.dot(n);var h=e.dot(e);s=e.dot(n);var l=i*h-r*r;return void 0===c&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),c=new a),0===l?c.set(-2,-1,-1):(h=(h*o-r*s)*(l=1/l),i=(i*s-r*o)*l,c.set(1-h-i,i,h))}}(),containsPoint:function(){var t=new a;return function(e,n,i,r){return q.getBarycoord(e,n,i,r,t),0<=t.x&&0<=t.y&&1>=t.x+t.y}}()}),Object.assign(q.prototype,{set:function(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this},setFromPointsAndIndices:function(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},getArea:function(){var t=new a,e=new a;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),getMidpoint:function(t){return void 0===t&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),t=new a),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(t){return q.getNormal(this.a,this.b,this.c,t)},getPlane:function(t){return void 0===t&&(console.warn("THREE.Triangle: .getPlane() target is now required"),t=new a),t.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(t,e){return q.getBarycoord(t,this.a,this.b,this.c,e)},containsPoint:function(t){return q.containsPoint(t,this.a,this.b,this.c)},intersectsBox:function(t){return t.intersectsTriangle(this)},closestPointToPoint:function(){var t=new a,e=new a,n=new a,i=new a,r=new a,o=new a;return function(s,c){void 0===c&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),
755c=new a);var h=this.a,l=this.b,u=this.c;t.subVectors(l,h),e.subVectors(u,h),i.subVectors(s,h);var p=t.dot(i),d=e.dot(i);if(0>=p&&0>=d)return c.copy(h);r.subVectors(s,l);var f=t.dot(r),m=e.dot(r);if(0<=f&&m<=f)return c.copy(l);var g=p*m-f*d;if(0>=g&&0<=p&&0>=f)return l=p/(p-f),c.copy(h).addScaledVector(t,l);o.subVectors(s,u),s=t.dot(o);var v=e.dot(o);return 0<=v&&s<=v?c.copy(u):0>=(p=s*d-p*v)&&0<=d&&0>=v?(g=d/(d-v),c.copy(h).addScaledVector(e,g)):0>=(d=f*v-s*m)&&0<=m-f&&0<=s-v?(n.subVectors(u,l),g=(m-f)/(m-f+(s-v)),c.copy(l).addScaledVector(n,g)):(l=p*(u=1/(d+p+g)),g*=u,c.copy(h).addScaledVector(t,l).addScaledVector(e,g))}}(),equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}),Y.prototype=Object.assign(Object.create(_.prototype),{constructor:Y,isMesh:!0,setDrawMode:function(t){this.drawMode=t},copy:function(t){return _.prototype.copy.call(this,t),this.drawMode=t.drawMode,void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this},updateMorphTargets:function(){var t=this.geometry;if(t.isBufferGeometry){t=t.morphAttributes;var e=Object.keys(t);if(0<e.length){var n=t[e[0]];if(void 0!==n)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=n.length;t<e;t++){var i=n[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[i]=t}}}else if(void 0!==(n=t.morphTargets)&&0<n.length)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=n.length;t<e;t++)i=n[t].name||String(t),this.morphTargetInfluences.push(0),this.morphTargetDictionary[i]=t},raycast:function(){function t(t,e,n,i,r,a,o){return q.getBarycoord(t,e,n,i,x),r.multiplyScalar(x.x),a.multiplyScalar(x.y),o.multiplyScalar(x.z),r.add(a).add(o),r.clone()}function e(t,e,n,i,r,a,o,s){return null===(1===e.side?i.intersectTriangle(o,a,r,!0,s):i.intersectTriangle(r,a,o,2!==e.side,s))?null:(_.copy(s),_.applyMatrix4(t.matrixWorld),(e=n.ray.origin.distanceTo(_))<n.near||e>n.far?null:{distance:e,point:_.clone(),object:t})}function r(n,i,r,a,o,s,c,p,d){return h.fromBufferAttribute(o,c),l.fromBufferAttribute(o,p),u.fromBufferAttribute(o,d),(n=e(n,i,r,a,h,l,u,b))&&(s&&(g.fromBufferAttribute(s,c),v.fromBufferAttribute(s,p),y.fromBufferAttribute(s,d),n.uv=t(b,h,l,u,g,v,y)),s=new E(c,p,d),q.getNormal(h,l,u,s.normal),n.face=s),n}var o=new i,s=new X,c=new d,h=new a,l=new a,u=new a,p=new a,f=new a,m=new a,g=new n,v=new n,y=new n,x=new a,b=new a,_=new a;return function(n,i){var a=this.geometry,d=this.material,x=this.matrixWorld;if(void 0!==d&&(null===a.boundingSphere&&a.computeBoundingSphere(),c.copy(a.boundingSphere),c.applyMatrix4(x),!1!==n.ray.intersectsSphere(c)&&(o.getInverse(x),s.copy(n.ray).applyMatrix4(o),null===a.boundingBox||!1!==s.intersectsBox(a.boundingBox))))if(a.isBufferGeometry){var _,w=a.index,M=a.attributes.position,E=a.attributes.uv,T=a.groups;if(a=a.drawRange,null!==w)if(Array.isArray(d)){var S=0;for(_=T.length;S<_;S++){var A=T[S],L=d[A.materialIndex];x=Math.max(A.start,a.start);var R=Math.min(A.start+A.count,a.start+a.count);for(A=x;A<R;A+=3){x=w.getX(A);var C=w.getX(A+1),P=w.getX(A+2);(x=r(this,L,n,s,M,E,x,C,P))&&(x.faceIndex=Math.floor(A/3),i.push(x))}}}else for(S=x=Math.max(0,a.start),_=R=Math.min(w.count,a.start+a.count);S<_;S+=3)x=w.getX(S),C=w.getX(S+1),P=w.getX(S+2),(x=r(this,d,n,s,M,E,x,C,P))&&(x.faceIndex=Math.floor(S/3),i.push(x));else if(void 0!==M)if(Array.isArray(d))for(S=0,_=T.length;S<_;S++)for(L=d[(A=T[S]).materialIndex],x=Math.max(A.start,a.start),R=Math.min(A.start+A.count,a.start+a.count),A=x;A<R;A+=3)(x=r(this,L,n,s,M,E,x=A,C=A+1,P=A+2))&&(x.faceIndex=Math.floor(A/3),i.push(x));else for(S=x=Math.max(0,a.start),_=R=Math.min(M.count,a.start+a.count);S<_;S+=3)(x=r(this,d,n,s,M,E,x=S,C=S+1,P=S+2))&&(x.faceIndex=Math.floor(S/3),i.push(x))}else if(a.isGeometry)for(M=Array.isArray(d),E=a.vertices,T=a.faces,0<(x=a.faceVertexUvs[0]).length&&(w=x),A=0,R=T.length;A<R;A++)if(C=T[A],void 0!==(x=M?d[C.materialIndex]:d)){if(S=E[C.a],_=E[C.b],L=E[C.c],!0===x.morphTargets){P=a.morphTargets;var O=this.morphTargetInfluences;h.set(0,0,0),l.set(0,0,0),u.set(0,0,0);for(var I=0,N=P.length;I<N;I++){var D=O[I];if(0!==D){var U=P[I].vertices;h.addScaledVector(p.subVectors(U[C.a],S),D),l.addScaledVector(f.subVectors(U[C.b],_),D),u.addScaledVector(m.subVectors(U[C.c],L),D)}}h.add(S),l.add(_),u.add(L),S=h,_=l,L=u}(x=e(this,x,n,s,S,_,L,b))&&(w&&w[A]&&(P=w[A],g.copy(P[0]),v.copy(P[1]),y.copy(P[2]),x.uv=t(b,S,_,L,g,v,y)),x.face=C,x.faceIndex=A,i.push(x))}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),$.prototype=Object.create(s.prototype),$.prototype.constructor=$,$.prototype.isCubeTexture=!0,Object.defineProperty($.prototype,"images",{get:function(){return this.image},set:function(t){this.image=t}});var jr=new s,Wr=new $,Xr=[],qr=[],Yr=new Float32Array(16),Jr=new Float32Array(9),Zr=new Float32Array(4);Lt.prototype.updateCache=function(t){var e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),nt(e,t)},Rt.prototype.setValue=function(t,e,n){for(var i=this.seq,r=0,a=i.length;r!==a;++r){var o=i[r];o.setValue(t,e[o.id],n)}};var Qr=/([\w\d_]+)(\])?(\[|\.)?/g;Ct.prototype.setValue=function(t,e,n){void 0!==(e=this.map[e])&&e.setValue(t,n,this.renderer)},Ct.prototype.setOptional=function(t,e,n){void 0!==(e=e[n])&&this.setValue(t,n,e)},Ct.upload=function(t,e,n,i){for(var r=0,a=e.length;r!==a;++r){var o=e[r],s=n[o.id];!1!==s.needsUpdate&&o.setValue(t,s.value,i)}},Ct.seqWithValue=function(t,e){for(var n=[],i=0,r=t.length;i!==r;++i){var a=t[i];a.id in e&&n.push(a)}return n};var Kr,$r=0,ta=0;Wt.prototype=Object.create(k.prototype),Wt.prototype.constructor=Wt,Wt.prototype.isMeshDepthMaterial=!0,Wt.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},Xt.prototype=Object.create(k.prototype),Xt.prototype.constructor=Xt,Xt.prototype.isMeshDistanceMaterial=!0,Xt.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this},Jt.prototype=Object.assign(Object.create(_.prototype),{constructor:Jt,isGroup:!0}),Zt.prototype=Object.assign(Object.create(w.prototype),{constructor:Zt,isPerspectiveCamera:!0,copy:function(t,e){return w.prototype.copy.call(this,t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this},setFocalLength:function(t){t=.5*this.getFilmHeight()/t,this.fov=2*Or.RAD2DEG*Math.atan(t),this.updateProjectionMatrix()},getFocalLength:function(){var t=Math.tan(.5*Or.DEG2RAD*this.fov);return.5*this.getFilmHeight()/t}
vendor: 5,081 bytes, line 755
755,getEffectiveFOV:function(){return 2*Or.RAD2DEG*Math.atan(Math.tan(.5*Or.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(t,e,n,i,r,a){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=this.near,e=t*Math.tan(.5*Or.DEG2RAD*this.fov)/this.zoom,n=2*e,i=this.aspect*n,r=-.5*i,a=this.view;if(null!==this.view&&this.view.enabled){var o=a.fullWidth,s=a.fullHeight;r+=a.offsetX*i/o,e-=a.offsetY*n/s,i*=a.width/o,n*=a.height/s}0!==(a=this.filmOffset)&&(r+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,e,e-n,t,this.far)},toJSON:function(t){return(t=_.prototype.toJSON.call(this,t)).object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}),Qt.prototype=Object.assign(Object.create(Zt.prototype),{constructor:Qt,isArrayCamera:!0}),ee.prototype.isFogExp2=!0,ee.prototype.clone=function(){return new ee(this.color,this.density)},ee.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}},ne.prototype.isFog=!0,ne.prototype.clone=function(){return new ne(this.color,this.near,this.far)},ne.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}},ie.prototype=Object.assign(Object.create(_.prototype),{constructor:ie,copy:function(t,e){return _.prototype.copy.call(this,t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.fog&&(this.fog=t.fog.clone()),null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this},toJSON:function(t){var e=_.prototype.toJSON.call(this,t);return null!==this.background&&(e.object.background=this.background.toJSON(t)),null!==this.fog&&(e.object.fog=this.fog.toJSON()),e}}),Object.defineProperty(re.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(re.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=void 0!==t?t.length/this.stride:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.dynamic=t.dynamic,this},copyAt:function(t,e,n){t*=this.stride,n*=e.stride;for(var i=0,r=this.stride;i<r;i++)this.array[t+i]=e.array[n+i];return this},set:function(t,e){return void 0===e&&(e=0),this.array.set(t,e),this},clone:function(){return(new this.constructor).copy(this)},onUpload:function(t){return this.onUploadCallback=t,this}}),Object.defineProperties(ae.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}}),Object.assign(ae.prototype,{isInterleavedBufferAttribute:!0,setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this},setXYZ:function(t,e,n,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this},setXYZW:function(t,e,n,i,r){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this.data.array[t+3]=r,this}}),oe.prototype=Object.create(k.prototype),oe.prototype.constructor=oe,oe.prototype.isSpriteMaterial=!0,oe.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.rotation=t.rotation,this},se.prototype=Object.assign(Object.create(_.prototype),{constructor:se,isSprite:!0,raycast:function(){function t(t,e,n,i,r,a){s.subVectors(t,n).addScalar(.5).multiply(i),void 0!==r?(c.x=a*s.x-r*s.y,c.y=r*s.x+a*s.y):c.copy(s),t.copy(e),t.x+=c.x,t.y+=c.y,t.applyM
755atrix4(h)}var e=new a,r=new a,o=new a,s=new n,c=new n,h=new i,l=new a,u=new a,p=new a;return function(n,i){r.setFromMatrixScale(this.matrixWorld),h.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld),o.setFromMatrixPosition(this.modelViewMatrix);var a=this.material.rotation;if(0!==a)var s=Math.cos(a),c=Math.sin(a);a=this.center,t(l.set(-.5,-.5,0),o,a,r,c,s),t(u.set(.5,-.5,0),o,a,r,c,s),t(p.set(.5,.5,0),o,a,r,c,s);var d=n.ray.intersectTriangle(l,u,p,!1,e);null===d&&(t(u.set(-.5,.5,0),o,a,r,c,s),null===(d=n.ray.intersectTriangle(l,p,u,!1,e)))||(c=n.ray.origin.distanceTo(e))<n.near||c>n.far||i.push({distance:c,point:e.clone(),face:null,object:this})}}(),clone:function(){return new this.constructor(this.material).copy(this)},copy:function(t){return _.prototype.copy.call(this,t),void 0!==t.center&&this.center.copy(t.center),this}}),ce.prototype=Object.assign(Object.create(_.prototype),{constructor:ce,copy:function(t){_.prototype.copy.call(this,t,!1);for(var e=0,n=(t=t.levels).length;e<n;e++){var i=t[e];this.addLevel(i.object.clone(),i.distance)}return this},addLevel:function(t,e){void 0===e&&(e=0),e=Math.abs(e);for(var n=this.levels,i=0;i<n.length&&!(e<n[i].distance);i++);n.splice(i,0,{distance:e,object:t}),this.add(t)},getObjectForDistance:function(t){for(var e=this.levels,n=1,i=e.length;n<i&&!(t<e[n].distance);n++);return e[n-1].object},raycast:function(){var t=new a;return function(e,n){t.setFromMatrixPosition(this.matrixWorld);var i=e.ray.origin.distanceTo(t);this.getObjectForDistance(i).raycast(e,n)}}(),update:function(){var t=new a,e=new a;return function(n){var i=this.levels;if(1<i.length){t.setFromMatrixPosition(n.matrixWorld),e.setFromMatrixPosition(this.matrixWorld),n=t.distanceTo(e),i[0].object.visible=!0;for(var r=1,a=i.length;r<a&&n>=i[r].distance;r++)i[r-1].object.visible=!1,i[r].object.visible=!0;for(;r<a;r++)i[r].object.visible=!1}}}(),toJSON:function(t){(t=_.prototype.toJSON.call(this,t)).object.levels=[];for(var e=this.levels,n=0,i=e.length;n<i;n++){var r=e[n];t.object.levels.push({object:r.object.uuid,distance:r.distance})}return t}}),Object.assign(he.prototype,{calculateInverses:function(){this.boneInverses=[];for(var t=0,e=this.bones.length;t<e;t++){var n=new i;this.bones[t]&&n.getInverse(this.bones[t].matrixWorld),this.boneInverses.push(n)}},pose:function(){var t,e,n=0;for(e=this.bones.length;n<e;n++)(t=this.bones[n])&&t.matrixWorld.getInverse(this.boneInverses[n]);for(n=0,e=this.bones.length;n<e;n++)(t=this.bones[n])&&(t.parent&&t.parent.isBone?(t.matrix.getInverse(t.parent.matrixWorld),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))},update:function(){var t=new i,e=new i;return function(){for(var n=this.bones,i=this.boneInverses,r=this.boneMatrices,a=this.boneTexture,o=0,s=n.length;o<s;o++)t.multiplyMatrices(n[o]?n[o].matrixWorld:e,i[o]),t.toArray(r,16*o);void 0!==a&&(a.needsUpdate=!0)}}(),clone:function(){return new he(this.bones,this.boneInverses)},getBoneByName:function(t){for(var e=0,n=this.bones.length;e<n;e++){var i=this.bones[e];if(i.name===t)return i}}}),le.prototype=Object.assign(Object.create(_.prototype),{constructor:le,isBone:!0}),ue.prototype=Object.assign(Object.create(Y.prototype),{constructor:ue,isSkinnedMesh:!0,initBones:function(){var t,e=[];if(this.geometry&&void 0!==this.geometry.bones){var n=0;for(t=this.geometry.bones.length;n<t;n++){var i=this.geometry.bones[n],r=new le;e.push(r),r.name=i.name,r.position.fromArray(i.pos),r.quaternion.fromArray(i.rotq),void 0!==i.scl&&r.scale.fromArray(i.scl)}for(n=0,t=this.geometry.bones.length;n<t;n++)-1!==(i=this.geometry.bones[n]).parent&&null!==i.parent&&void 0!==e[i.parent]?e[i.parent].add(e[n]):this.add(e[n])}return this.updateMatrixWorld(!0),e},bind:function(t,e){this.skeleton=t,void 0===e&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.getInverse(e)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){var t;if(this.geometry&&this.geometry.isGeometry)for(t=0;t<this.geometry.skinWeights.length;t++){var e=this.geometry.skinWeights[t],n=1/e.manhattanLength();1/0!==n?e.multiplyScalar(n):e.set(1,0,0,0)}else if(this.geometry&&this.geometry.isBufferGeometry){e=new c;var i=this.geometry.attributes.skinWeight;for(t=0;t<i.count;t++)e.x=i.getX(t),e.y=i.getY(t),e.z=i.getZ(t),e.w=i.getW(t),1/0!==(n=1/e.manhattanLength())?e.multiplyScalar(n):e.set(1,0,0,0),i.setXYZW(t,e.x,e.y,e.z,e.w)}},updateMatrixWorld:function(t){Y.prototype.updateMatrixWorld.call(this,t),"attached"===this.bindMode?this.bindMatrixInverse.getInverse(this.matrixWorld):"detached"===this.bindMode?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),pe.prototype=Object.create(k.prototype),pe.prototype.constructor=pe,pe.prototype.isLineBasicMaterial=!0,pe.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this},de.prototype=Object.assign(Object.create(_.prototype),{constructor:de,isLine:!0,computeLineDistances:function(){var t=new a,e=new a;return function(){var n=this.geometry;if(n.isBufferGeometry)if(null===n.index){for(var i=n.attributes.position,r=[0],a=1,o=i.count;a<o;a++)t.fromBufferAttribute(i,a-1),e.fromBufferAttribute(i,a),r[a]=r[a-1],r[a]+=t.distanceTo(e);n.addAttribute("lineDistance",new N(r,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(n.isGeometry)for(i=n.vertices,(r=n.lineDistances)[0]=0,a=1,o=i.length;a<o;a++)r[a]=r[a-1],r[a]+=i[a-1].distanceTo(i[a]);return this}}(),raycast:function(){var t=new i,e=new X,n=new d;return function(i,r){var o=i.linePrecision;o*=o;var s=this.geometry,c=this.matrixWorld;if(null===s.boundingSphere&&s.computeBoundingSphere(),n.copy(s.boundingSphere),n.applyMatrix4(c),!1!==i.ray.intersectsSphere(n)){t.getInverse(c),e.copy(i.ray).applyMatrix4(t);var h=new a,l=new a;c=new a;var u=new a,p=this&&this.isLineSegments?2:1;if(s.isBufferGeometry){var d=s.index,f=s.attributes.position.array;if(null!==d){s=0;for(var m=(d=d.array).length-1;s<m;s+=p){var g=d[s+1];h.fromArray(f,3*d[s]),l.fromArray(f,3*g),(g=e.distanceSqToSegment(h,l,u,c))>
755o||(u.applyMatrix4(this.matrixWorld),(g=i.ray.origin.distanceTo(u))<i.near||g>i.far||r.push({distance:g,point:c.clone().applyMatrix4(this.matrixWorld),index:s,face:null,faceIndex:null,object:this}))}}else for(s=0,m=f.length/3-1;s<m;s+=p)h.fromArray(f,3*s),l.fromArray(f,3*s+3),(g=e.distanceSqToSegment(h,l,u,c))>o||(u.applyMatrix4(this.matrixWorld),(g=i.ray.origin.distanceTo(u))<i.near||g>i.far||r.push({distance:g,point:c.clone().applyMatrix4(this.matrixWorld),index:s,face:null,faceIndex:null,object:this}))}else if(s.isGeometry)for(l=(h=s.vertices).length,s=0;s<l-1;s+=p)(g=e.distanceSqToSegment(h[s],h[s+1],u,c))>o||(u.applyMatrix4(this.matrixWorld),(g=i.ray.origin.distanceTo(u))<i.near||g>i.far||r.push({distance:g,point:c.clone().applyMatrix4(this.matrixWorld),index:s,face:null,faceIndex:null,object:this}))}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),fe.prototype=Object.assign(Object.create(de.prototype),{constructor:fe,isLineSegments:!0,computeLineDistances:function(){var t=new a,e=new a;return function(){var n=this.geometry;if(n.isBufferGeometry)if(null===n.index){for(var i=n.attributes.position,r=[],a=0,o=i.count;a<o;a+=2)t.fromBufferAttribute(i,a),e.fromBufferAttribute(i,a+1),r[a]=0===a?0:r[a-1],r[a+1]=r[a]+t.distanceTo(e);n.addAttribute("lineDistance",new N(r,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(n.isGeometry)for(i=n.vertices,r=n.lineDistances,a=0,o=i.length;a<o;a+=2)t.copy(i[a]),e.copy(i[a+1]),r[a]=0===a?0:r[a-1],r[a+1]=r[a]+t.distanceTo(e);return this}}()}),me.prototype=Object.assign(Object.create(de.prototype),{constructor:me,isLineLoop:!0}),ge.prototype=Object.create(k.prototype),ge.prototype.constructor=ge,ge.prototype.isPointsMaterial=!0,ge.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this},ve.prototype=Object.assign(Object.create(_.prototype),{constructor:ve,isPoints:!0,raycast:function(){var t=new i,e=new X,n=new d;return function(i,r){function o(t,n){var a=e.distanceSqToPoint(t);a<u&&(e.closestPointToPoint(t,p),p.applyMatrix4(h),(t=i.ray.origin.distanceTo(p))<i.near||t>i.far||r.push({distance:t,distanceToRay:Math.sqrt(a),point:p.clone(),index:n,face:null,object:s}))}var s=this,c=this.geometry,h=this.matrixWorld,l=i.params.Points.threshold;if(null===c.boundingSphere&&c.computeBoundingSphere(),n.copy(c.boundingSphere),n.applyMatrix4(h),n.radius+=l,!1!==i.ray.intersectsSphere(n)){t.getInverse(h),e.copy(i.ray).applyMatrix4(t);var u=(l/=(this.scale.x+this.scale.y+this.scale.z)/3)*l;l=new a;var p=new a;if(c.isBufferGeometry){var d=c.index;if(c=c.attributes.position.array,null!==d){var f=d.array;d=0;for(var m=f.length;d<m;d++){var g=f[d];l.fromArray(c,3*g),o(l,g)}}else for(d=0,f=c.length/3;d<f;d++)l.fromArray(c,3*d),o(l,d)}else for(d=0,f=(l=c.vertices).length;d<f;d++)o(l[d],d)}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),ye.prototype=Object.assign(Object.create(s.prototype),{constructor:ye,isVideoTexture:!0,update:function(){var t=this.image;t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),xe.prototype=Object.create(s.prototype),xe.prototype.constructor=xe,xe.prototype.isCompressedTexture=!0,be.prototype=Object.create(s.prototype),be.prototype.constructor=be,be.prototype.isCanvasTexture=!0,_e.prototype=Object.create(s.prototype),_e.prototype.constructor=_e,_e.prototype.isDepthTexture=!0,we.prototype=Object.create(F.prototype),we.prototype.constructor=we,Me.prototype=Object.create(T.prototype),Me.prototype.constructor=Me,Ee.prototype=Object.create(F.prototype),Ee.prototype.constructor=Ee,Te.prototype=Object.create(T.prototype),Te.prototype.constructor=Te,Se.prototype=Object.create(F.prototype),Se.prototype.constructor=Se,Ae.prototype=Object.create(T.prototype),Ae.prototype.constructor=Ae,Le.prototype=Object.create(Se.prototype),Le.prototype.constructor=Le,Re.prototype=Object.create(T.prototype),Re.prototype.constructor=Re,Ce.prototype=Object.create(Se.prototype),Ce.prototype.constructor=Ce,Pe.prototype=Object.create(T.prototype),Pe.prototype.constructor=Pe,Oe.prototype=Object.create(Se.prototype),Oe.prototype.constructor=Oe,Ie.prototype=Object.create(T.prototype),Ie.prototype.constructor=Ie,Ne.prototype=Object.create(Se.prototype),Ne.prototype.constructor=Ne,De.prototype=Object.create(T.prototype),De.prototype.constructor=De,Ue.prototype=Object.create(F.prototype),Ue.prototype.constructor=Ue,Be.prototype=Object.create(T.prototype),Be.prototype.constructor=Be,Fe.prototype=Object.create(F.prototype),Fe.prototype.constructor=Fe,ze.prototype=Object.create(T.prototype),ze.prototype.constructor=ze,Ge.prototype=Object.create(F.prototype),Ge.prototype.constructor=Ge;var ea=function(t,e,n){n=n||2;var i,r=e&&e.length,a=r?e[0]*n:t.length,o=He(t,0,a,n,!0),s=[];if(!o)return s;if(r){var c,h=n;r=[];var l=0;for(c=e.length;l<c;l++){var u=e[l]*h;(u=He(t,u,l<c-1?e[l+1]*h:t.length,h,!1))===u.next&&(u.steiner=!0),r.push(Xe(u))}for(r.sort(ke),l=0;l<r.length;l++)(h=je(e=r[l],h=o))&&Ve(e=Ke(h,e),e.next),o=Ve(o,o.next)}if(t.length>80*n){var p=i=t[0],d=r=t[1];for(h=n;h<a;h+=n)l=t[h],e=t[h+1],l<p&&(p=l),e<d&&(d=e),l>i&&(i=l),e>r&&(r=e);i=0!==(i=Math.max(i-p,r-d))?1/i:0}
755return function t(e,n,i,r,a,o,s){if(e){if(!s&&o){var c=e,h=c;do{null===h.z&&(h.z=We(h.x,h.y,r,a,o)),h.prevZ=h.prev,h=h.nextZ=h.next}while(h!==c);h.prevZ.nextZ=null,h.prevZ=null,c=h;var l,u,p,d,f=1;do{h=c;var m=c=null;for(u=0;h;){u++;var g=h;for(l=p=0;l<f&&(p++,g=g.nextZ);l++);for(d=f;0<p||0<d&&g;)0!==p&&(0===d||!g||h.z<=g.z)?(l=h,h=h.nextZ,p--):(l=g,g=g.nextZ,d--),m?m.nextZ=l:c=l,l.prevZ=m,m=l;h=g}m.nextZ=null,f*=2}while(1<u)}for(c=e;e.prev!==e.next;){if(h=e.prev,g=e.next,o)t:{d=r;var v=a,y=o;if(0<=Ye(u=(m=e).prev,p=m,f=m.next))m=!1;else{var x=u.x>p.x?u.x>f.x?u.x:f.x:p.x>f.x?p.x:f.x,b=u.y>p.y?u.y>f.y?u.y:f.y:p.y>f.y?p.y:f.y;for(l=We(u.x<p.x?u.x<f.x?u.x:f.x:p.x<f.x?p.x:f.x,u.y<p.y?u.y<f.y?u.y:f.y:p.y<f.y?p.y:f.y,d,v,y),d=We(x,b,d,v,y),v=m.nextZ;v&&v.z<=d;){if(v!==m.prev&&v!==m.next&&qe(u.x,u.y,p.x,p.y,f.x,f.y,v.x,v.y)&&0<=Ye(v.prev,v,v.next)){m=!1;break t}v=v.nextZ}for(v=m.prevZ;v&&v.z>=l;){if(v!==m.prev&&v!==m.next&&qe(u.x,u.y,p.x,p.y,f.x,f.y,v.x,v.y)&&0<=Ye(v.prev,v,v.next)){m=!1;break t}v=v.prevZ}m=!0}}else t:if(m=e,u=m.prev,p=m,f=m.next,0<=Ye(u,p,f))m=!1;else{for(l=m.next.next;l!==m.prev;){if(qe(u.x,u.y,p.x,p.y,f.x,f.y,l.x,l.y)&&0<=Ye(l.prev,l,l.next)){m=!1;break t}l=l.next}m=!0}if(m)n.push(h.i/i),n.push(e.i/i),n.push(g.i/i),tn(e),c=e=g.next;else if((e=g)===c){if(s){if(1===s){s=n,c=i,h=e;do{!Je(g=h.prev,m=h.next.next)&&Ze(g,h,h.next,m)&&Qe(g,m)&&Qe(m,g)&&(s.push(g.i/c),s.push(h.i/c),s.push(m.i/c),tn(h),tn(h.next),h=e=m),h=h.next}while(h!==e);t(e=h,n,i,r,a,o,2)}else if(2===s)t:{s=e;do{for(c=s.next.next;c!==s.prev;){if(h=s.i!==c.i){if(g=c,m=(h=s).next.i!==g.i&&h.prev.i!==g.i){e:{m=h;do{if(m.i!==h.i&&m.next.i!==h.i&&m.i!==g.i&&m.next.i!==g.i&&Ze(m,m.next,h,g)){m=!0;break e}m=m.next}while(m!==h);m=!1}m=!m}if(m=m&&Qe(h,g)&&Qe(g,h)){m=h,u=!1,p=(h.x+g.x)/2,g=(h.y+g.y)/2;do{m.y>g!=m.next.y>g&&m.next.y!==m.y&&p<(m.next.x-m.x)*(g-m.y)/(m.next.y-m.y)+m.x&&(u=!u),m=m.next}while(m!==h);m=u}h=m}if(h){e=Ke(s,c),s=Ve(s,s.next),e=Ve(e,e.next),t(s,n,i,r,a,o),t(e,n,i,r,a,o);break t}c=c.next}s=s.next}while(s!==e)}}else t(Ve(e),n,i,r,a,o,1);break}}}}(o,s,n,p,d,i),s},na={area:function(t){for(var e=t.length,n=0,i=e-1,r=0;r<e;i=r++)n+=t[i].x*t[r].y-t[r].x*t[i].y;return.5*n},isClockWise:function(t){return 0>na.area(t)},triangulateShape:function(t,e){var n=[],i=[],r=[];nn(t),rn(n,t);var a=t.length;for(e.forEach(nn),t=0;t<e.length;t++)i.push(a),a+=e[t].length,rn(n,e[t]);for(e=ea(n,i),t=0;t<e.length;t+=3)r.push(e.slice(t,t+3));return r}};an.prototype=Object.create(T.prototype),an.prototype.constructor=an,an.prototype.toJSON=function(){var t=T.prototype.toJSON.call(this);return sn(this.parameters.shapes,this.parameters.options,t)},on.prototype=Object.create(F.prototype),on.prototype.constructor=on,on.prototype.toJSON=function(){var t=F.prototype.toJSON.call(this);return sn(this.parameters.shapes,this.parameters.options,t)};var ia={generateTopUV:function(t,e,i,r,a){t=e[3*r],r=e[3*r+1];var o=e[3*a];return a=e[3*a+1],[new n(e[3*i],e[3*i+1]),new n(t,r),new n(o,a)]},generateSideWallUV:function(t,e,i,r,a,o){t=e[3*i];var s=e[3*i+1];i=e[3*i+2];var c=e[3*r],h=e[3*r+1];r=e[3*r+2];var l=e[3*a],u=e[3*a+1];a=e[3*a+2];var p=e[3*o],d=e[3*o+1];return e=e[3*o+2],.01>Math.abs(s-h)?[new n(t,1-i),new n(c,1-r),new n(l,1-a),new n(p,1-e)]:[new n(s,1-i),new n(h,1-r),new n(u,1-a),new n(d,1-e)]}};cn.prototype=Object.create(T.prototype),cn.prototype.constructor=cn,hn.prototype=Object.create(on.prototype),hn.prototype.constructor=hn,ln.prototype=Object.create(T.prototype),ln.prototype.constructor=ln,un.prototype=Object.create(F.prototype),un.prototype.constructor=un,pn.prototype=Object.create(T.prototype),pn.prototype.constructor=pn,dn.prototype=Object.create(F.prototype),dn.prototype.constructor=dn,fn.prototype=Object.create(T.prototype),fn.prototype.constructor=fn,mn.prototype=Object.create(F.prototype),mn.prototype.constructor=mn,gn.prototype=Object.create(T.prototype),gn.prototype.constructor=gn,gn.prototype.toJSON=function(){var t=T.prototype.toJSON.call(this);return yn(this.parameters.shapes,t)},vn.prototype=Object.create(F.prototype),vn.prototype.constructor=vn,vn.prototype.toJSON=function(){var t=F.prototype.toJSON.call(this);return yn(this.parameters.shapes,t)},xn.prototype=Object.create(F.prototype),xn.prototype.constructor=xn,bn.prototype=Object.create(T.prototype),bn.prototype.constructor=bn,_n.prototype=Object.create(F.prototype),_n.prototype.constructor=_n,wn.prototype=Object.create(bn.prototype),wn.prototype.constructor=wn,Mn.prototype=Object.create(_n.prototype),Mn.prototype.constructor=Mn,En.prototype=Object.create(T.prototype),En.prototype.constructor=En,Tn.prototype=Object.create(F.prototype),Tn.prototype.constructor=Tn;var ra=Object.freeze({WireframeGeometry:we,ParametricGeometry:Me,ParametricBufferGeometry:Ee,TetrahedronGeometry:Ae,TetrahedronBufferGeometry:Le,OctahedronGeometry:Re,OctahedronBufferGeometry:Ce,IcosahedronGeometry:Pe,IcosahedronBufferGeometry:Oe,DodecahedronGeometry:Ie,DodecahedronBufferGeometry:Ne,PolyhedronGeometry:Te,PolyhedronBufferGeometry:Se,TubeGeometry:De,TubeBufferGeometry:Ue,TorusKnotGeometry:Be,TorusKnotBufferGeometry:Fe,TorusGeometry:ze,TorusBufferGeometry:Ge,TextGeometry:cn,TextBufferGeometry:hn,SphereGeometry:ln,SphereBufferGeometry:un,RingGeometry:pn,RingBufferGeometry:dn,PlaneGeometry:H,PlaneBufferGeometry:V,LatheGeometry:fn,LatheBufferGeometry:mn,ShapeGeometry:gn,ShapeBufferGeometry:vn,ExtrudeGeometry:an,ExtrudeBufferGeometry:on,EdgesGeometry:xn,ConeGeometry:wn,ConeBufferGeometry:Mn,CylinderGeometry:bn,CylinderBufferGeometry:_n,CircleGeometry:En,CircleBufferGeometry:Tn,BoxGeometry:z,BoxBufferGeometry:G});Sn.prototype=Object.create(k.prototype),Sn.prototype.constructor=Sn,Sn.prototype.isShadowMaterial=!0,Sn.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.color.copy(t.color),this},An.prototype=Object.create(W.prototype),An.prototype.constructor=An,An.prototype.isRawShaderMaterial=!0,Ln.prototype=Object.create(k.prototype),Ln.prototype.constructor=Ln,Ln.prototype.isMeshStandardMaterial=!0,Ln.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Rn.prototype=Object.create(Ln.prototype),Rn.prototype.constructor=Rn,Rn.prototype.isMeshPhysicalMaterial=!0,Rn.prototype.copy=function(t){return Ln.prototype.copy.call(this,t),this.defines={PHYSICAL:""},this.reflectivity=t.reflectivity,this.clearCoat=t.clearCoat,this.clearCoatRoughness=t.clearCoatRoughness,this},Cn.prototype=Object.create(k.prototype),Cn.prototype.constructor=Cn,Cn.prototype.isMeshPhongMaterial=!0,Cn.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Pn.prototype=Object.create(Cn.prototype),Pn.prototype.constructor=Pn,Pn.prototype.isMeshToonMaterial=!0,Pn.prototype.copy=function(t){return Cn.prototype.copy.call(this,t),this.gradientMap=t.gradientMap,this},On.prototype=Object.create(k.prototype),On.prototype.constructor=On,On.prototype.isMeshNormalMaterial=!0,On.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},In.prototype=Object.create(k.prototype),In.prototype.constructor=In,In.prototype.isMeshLambertMaterial=!0,In.prototype.copy=function(t){return k.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Nn.prototype=Object.create(pe.prototype),Nn.prototype.constructor=Nn,Nn.prototype.isLineDashedMaterial=!0,Nn.prototype.copy=function(t){return pe.prototype.copy.call(this,t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this};var aa=Object.freeze({ShadowMaterial:Sn,SpriteMaterial:oe,RawShaderMaterial:An,ShaderMaterial:W,PointsMaterial:ge,MeshPhysicalMaterial:Rn,MeshStandardMaterial:Ln,MeshPhongMaterial:Cn,MeshToonMaterial:Pn,MeshNormalMaterial:On,MeshLambertMaterial:In,MeshDepthMaterial:Wt,Me
755shDistanceMaterial:Xt,MeshBasicMaterial:j,LineDashedMaterial:Nn,LineBasicMaterial:pe,Material:k}),oa={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}},sa=new Dn,ca={};Object.assign(Un.prototype,{load:function(t,e,n,i){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);var r=this,a=oa.get(t);if(void 0!==a)return r.manager.itemStart(t),setTimeout(function(){e&&e(a),r.manager.itemEnd(t)},0),a;if(void 0===ca[t]){var o=t.match(/^data:(.*?)(;base64)?,(.*)$/);if(o){n=o[1];var s=!!o[2];o=o[3],o=window.decodeURIComponent(o),s&&(o=window.atob(o));try{var c=(this.responseType||"").toLowerCase();switch(c){case"arraybuffer":case"blob":var h=new Uint8Array(o.length);for(s=0;s<o.length;s++)h[s]=o.charCodeAt(s);var l="blob"===c?new Blob([h.buffer],{type:n}):h.buffer;break;case"document":l=(new DOMParser).parseFromString(o,n);break;case"json":l=JSON.parse(o);break;default:l=o}window.setTimeout(function(){e&&e(l),r.manager.itemEnd(t)},0)}catch(e){window.setTimeout(function(){i&&i(e),r.manager.itemEnd(t),r.manager.itemError(t)},0)}}else{ca[t]=[],ca[t].push({onLoad:e,onProgress:n,onError:i});var u=new XMLHttpRequest;for(s in u.open("GET",t,!0),u.addEventListener("load",function(e){var n=this.response;oa.add(t,n);var i=ca[t];if(delete ca[t],200===this.status||0===this.status){0===this.status&&console.warn("THREE.FileLoader: HTTP Status 0 received.");for(var a=0,o=i.length;a<o;a++){var s=i[a];s.onLoad&&s.onLoad(n)}r.manager.itemEnd(t)}else{for(a=0,o=i.length;a<o;a++)(s=i[a]).onError&&s.onError(e);r.manager.itemEnd(t),r.manager.itemError(t)}},!1),u.addEventListener("progress",function(e){for(var n=ca[t],i=0,r=n.length;i<r;i++){var a=n[i];a.onProgress&&a.onProgress(e)}},!1),u.addEventListener("error",function(e){var n=ca[t];delete ca[t];for(var i=0,a=n.length;i<a;i++){var o=n[i];o.onError&&o.onError(e)}r.manager.itemEnd(t),r.manager.itemError(t)},!1),void 0!==this.responseType&&(u.responseType=this.responseType),void 0!==this.withCredentials&&(u.withCredentials=this.withCredentials),u.overrideMimeType&&u.overrideMimeType(void 0!==this.mimeType?this.mimeType:"text/plain"),this.requestHeader)u.setRequestHeader(s,this.requestHeader[s]);u.send(null)}return r.manager.itemStart(t),u}ca[t].push({onLoad:e,onProgress:n,onError:i})},setPath:function(t){return this.path=t,this},setResponseType:function(t){return this.responseType=t,this},setWithCredentials:function(t){return this.withCredentials=t,this},setMimeType:function(t){return this.mimeType=t,this},setRequestHeader:function(t){return this.requestHeader=t,this}}),Object.assign(Bn.prototype,{load:function(t,e,n,i){function r(r){c.load(t[r],function(t){t=a._parser(t,!0),o[r]={width:t.width,height:t.height,format:t.format,mipmaps:t.mipmaps},6===(h+=1)&&(1===t.mipmapCount&&(s.minFilter=1006),s.format=t.format,s.needsUpdate=!0,e&&e(s))},n,i)}var a=this,o=[],s=new xe;s.image=o;var c=new Un(this.manager);if(c.setPath(this.path),c.setResponseType("arraybuffer"),Array.isArray(t))for(var h=0,l=0,u=t.length;l<u;++l)r(l);else c.load(t,function(t){if((t=a._parser(t,!0)).isCubemap)for(var n=t.mipmaps.length/t.mipmapCount,i=0;i<n;i++){o[i]={mipmaps:[]};for(var r=0;r<t.mipmapCount;r++)o[i].mipmaps.push(t.mipmaps[i*t.mipmapCount+r]),o[i].format=t.format,o[i].width=t.width,o[i].height=t.height}else s.image.width=t.width,s.image.height=t.height,s.mipmaps=t.mipmaps;1===t.mipmapCount&&(s.minFilter=1006),s.format=t.format,s.needsUpdate=!0,e&&e(s)},n,i);return s},setPath:function(t){return this.path=t,this}}),Object.assign(Fn.prototype,{load:function(t,e,n,i){var r=this,a=new u,o=new Un(this.manager);return o.setResponseType("arraybuffer"),o.load(t,function(t){(t=r._parser(t))&&(void 0!==t.image?a.image=t.image:void 0!==t.data&&(a.image.width=t.width,a.image.height=t.height,a.image.data=t.data),a.wrapS=void 0!==t.wrapS?t.wrapS:1001,a.wrapT=void 0!==t.wrapT?t.wrapT:1001,a.magFilter=void 0!==t.magFilter?t.magFilter:1006,a.minFilter=void 0!==t.minFilter?t.minFilter:1008,a.anisotropy=void 0!==t.anisotropy?t.anisotropy:1,void 0!==t.format&&(a.format=t.format),void 0!==t.type&&(a.type=t.type),void 0!==t.mipmaps&&(a.mipmaps=t.mipmaps),1===t.mipmapCount&&(a.minFilter=1006),a.needsUpdate=!0,e&&e(a,t))},n,i),a}}),Object.assign(zn.prototype,{crossOrigin:"anonymous",load:function(t,e,n,i){function r(){c.removeEventListener("load",r,!1),c.removeEventListener("error",a,!1),oa.add(t,this),e&&e(this),o.manager.itemEnd(t)}function a(e){c.removeEventListener("load",r,!1),c.removeEventListener("error",a,!1),i&&i(e),o.manager.itemEnd(t),o.manager.itemError(t)}void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);var o=this,s=oa.get(t);if(void 0!==s)return o.manager.itemStart(t),setTimeout(function(){e&&e(s),o.manager.itemEnd(t)},0),s;var c=document.createElementNS("http://www.w3.org/1999/xhtml","img");return c.addEventListener("load",r,!1),c.addEventListener("error",a,!1),"data:"!==t.substr(0,5)&&void 0!==this.crossOrigin&&(c.crossOrigin=this.crossOrigin),o.manager.itemStart(t),c.src=t,c},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Gn.prototype,{crossOrigin:"anonymous",load:function(t,e,n,i){function r(n){o.load(t[n],function(t){a.images[n]=t,6===++s&&(a.needsUpdate=!0,e&&e(a))},void 0,i)}var a=new $,o=new zn(this.manager);o.setCrossOrigin(this.crossOrigin),o.setPath(this.path);var s=0;for(n=0;n<t.length;++n)r(n);return a},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Hn.prototype,{crossOrigin:"anonymous",load:function(t,e,n,i){var r=new s,a=new zn(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(t,function(n){r.image=n,n=0<t.search(/\.(jpg|jpeg)$/)||0===t.search(/^data:image\/jpeg/),r.format=n?1022:1023,r.needsUpdate=!0,void 0!==e&&e(r)},n,i),r},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Vn.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(t,e){return t=this.getUtoTmapping(t),this.getPoint(t,e)},getPoints:function(t){void 0===t&&(t=5);for(var e=[],n=0;n<=t;n++)e.push(this.getPoint(n/t));return e},getSpacedPoints:function(t){void 0===t&&(t=5);for(var e=[],n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,n=[],i=this.getPoint(0),r=0;for(n.push(0),e=1;e<=t;e++){var a=this.getPoint(e/t);r+=a.distanceTo(i),n.push(r),i=a}return this.cacheArcLengths=n},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){var n=this.getLengths(),i=n.length;e=e||t*n[i-1];for(var r,a=0,o=i-1;a<=o;)if(0>(r=n[t=Math.floor(a+(o-a)/2)]-e))a=t+1;else{if(!(0<r)){o=t;break}o=t-1}
755return n[t=o]===e?t/(i-1):(t+(e-(a=n[t]))/(n[t+1]-a))/(i-1)},getTangent:function(t){var e=t-1e-4;return t+=1e-4,0>e&&(e=0),1<t&&(t=1),e=this.getPoint(e),this.getPoint(t).clone().sub(e).normalize()},getTangentAt:function(t){return t=this.getUtoTmapping(t),this.getTangent(t)},computeFrenetFrames:function(t,e){var n,r=new a,o=[],s=[],c=[],h=new a,l=new i;for(n=0;n<=t;n++){var u=n/t;o[n]=this.getTangentAt(u),o[n].normalize()}s[0]=new a,c[0]=new a,n=Number.MAX_VALUE,u=Math.abs(o[0].x);var p=Math.abs(o[0].y),d=Math.abs(o[0].z);for(u<=n&&(n=u,r.set(1,0,0)),p<=n&&(n=p,r.set(0,1,0)),d<=n&&r.set(0,0,1),h.crossVectors(o[0],r).normalize(),s[0].crossVectors(o[0],h),c[0].crossVectors(o[0],s[0]),n=1;n<=t;n++)s[n]=s[n-1].clone(),c[n]=c[n-1].clone(),h.crossVectors(o[n-1],o[n]),h.length()>Number.EPSILON&&(h.normalize(),r=Math.acos(Or.clamp(o[n-1].dot(o[n]),-1,1)),s[n].applyMatrix4(l.makeRotationAxis(h,r))),c[n].crossVectors(o[n],s[n]);if(!0===e)for(r=Math.acos(Or.clamp(s[0].dot(s[t]),-1,1)),r/=t,0<o[0].dot(h.crossVectors(s[0],s[t]))&&(r=-r),n=1;n<=t;n++)s[n].applyMatrix4(l.makeRotationAxis(o[n],r*n)),c[n].crossVectors(o[n],s[n]);return{tangents:o,normals:s,binormals:c}},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this},toJSON:function(){var t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}),kn.prototype=Object.create(Vn.prototype),kn.prototype.constructor=kn,kn.prototype.isEllipseCurve=!0,kn.prototype.getPoint=function(t,e){e=e||new n;for(var i=2*Math.PI,r=this.aEndAngle-this.aStartAngle,a=Math.abs(r)<Number.EPSILON;0>r;)r+=i;for(;r>i;)r-=i;r<Number.EPSILON&&(r=a?0:i),!0!==this.aClockwise||a||(r=r===i?-i:r-i),i=this.aStartAngle+t*r,t=this.aX+this.xRadius*Math.cos(i);var o=this.aY+this.yRadius*Math.sin(i);return 0!==this.aRotation&&(i=Math.cos(this.aRotation),r=Math.sin(this.aRotation),t=(a=t-this.aX)*i-(o-=this.aY)*r+this.aX,o=a*r+o*i+this.aY),e.set(t,o)},kn.prototype.copy=function(t){return Vn.prototype.copy.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},kn.prototype.toJSON=function(){var t=Vn.prototype.toJSON.call(this);return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t},kn.prototype.fromJSON=function(t){return Vn.prototype.fromJSON.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},jn.prototype=Object.create(kn.prototype),jn.prototype.constructor=jn,jn.prototype.isArcCurve=!0;var ha=new a,la=new Wn,ua=new Wn,pa=new Wn;Xn.prototype=Object.create(Vn.prototype),Xn.prototype.constructor=Xn,Xn.prototype.isCatmullRomCurve3=!0,Xn.prototype.getPoint=function(t,e){e=e||new a;var n=this.points,i=n.length;t*=i-(this.closed?0:1);var r=Math.floor(t);if(t-=r,this.closed?r+=0<r?0:(Math.floor(Math.abs(r)/i)+1)*i:0===t&&r===i-1&&(r=i-2,t=1),this.closed||0<r)var o=n[(r-1)%i];else ha.subVectors(n[0],n[1]).add(n[0]),o=ha;var s=n[r%i],c=n[(r+1)%i];if(this.closed||r+2<i?n=n[(r+2)%i]:(ha.subVectors(n[i-1],n[i-2]).add(n[i-1]),n=ha),"centripetal"===this.curveType||"chordal"===this.curveType){var h="chordal"===this.curveType?.5:.25;i=Math.pow(o.distanceToSquared(s),h),r=Math.pow(s.distanceToSquared(c),h),h=Math.pow(c.distanceToSquared(n),h),1e-4>r&&(r=1),1e-4>i&&(i=r),1e-4>h&&(h=r),la.initNonuniformCatmullRom(o.x,s.x,c.x,n.x,i,r,h),ua.initNonuniformCatmullRom(o.y,s.y,c.y,n.y,i,r,h),pa.initNonuniformCatmullRom(o.z,s.z,c.z,n.z,i,r,h)}else"catmullrom"===this.curveType&&(la.initCatmullRom(o.x,s.x,c.x,n.x,this.tension),ua.initCatmullRom(o.y,s.y,c.y,n.y,this.tension),pa.initCatmullRom(o.z,s.z,c.z,n.z,this.tension));return e.set(la.calc(t),ua.calc(t),pa.calc(t)),e},Xn.prototype.copy=function(t){Vn.prototype.copy.call(this,t),this.points=[];for(var e=0,n=t.points.length;e<n;e++)this.points.push(t.points[e].clone());return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},Xn.prototype.toJSON=function(){var t=Vn.prototype.toJSON.call(this);t.points=[];for(var e=0,n=this.points.length;e<n;e++)t.points.push(this.points[e].toArray());return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t},Xn.prototype.fromJSON=function(t){Vn.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,n=t.points.length;e<n;e++){var i=t.points[e];this.points.push((new a).fromArray(i))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},Zn.prototype=Object.create(Vn.prototype),Zn.prototype.constructor=Zn,Zn.prototype.isCubicBezierCurve=!0,Zn.prototype.getPoint=function(t,e){e=e||new n;var i=this.v0,r=this.v1,a=this.v2,o=this.v3;return e.set(Jn(t,i.x,r.x,a.x,o.x),Jn(t,i.y,r.y,a.y,o.y)),e},Zn.prototype.copy=function(t){return Vn.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Zn.prototype.toJSON=function(){var t=Vn.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Zn.prototype.fromJSON=function(t){return Vn.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Qn.prototype=Object.create(Vn.prototype),Qn.prototype.constructor=Qn,Qn.prototype.isCubicBezierCurve3=!0,Qn.prototype.getPoint=function(t,e){e=e||new a;var n=this.v0,i=this.v1,r=this.v2,o=this.v3;
755return e.set(Jn(t,n.x,i.x,r.x,o.x),Jn(t,n.y,i.y,r.y,o.y),Jn(t,n.z,i.z,r.z,o.z)),e},Qn.prototype.copy=function(t){return Vn.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Qn.prototype.toJSON=function(){var t=Vn.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Qn.prototype.fromJSON=function(t){return Vn.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Kn.prototype=Object.create(Vn.prototype),Kn.prototype.constructor=Kn,Kn.prototype.isLineCurve=!0,Kn.prototype.getPoint=function(t,e){return e=e||new n,1===t?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},Kn.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},Kn.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},Kn.prototype.copy=function(t){return Vn.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Kn.prototype.toJSON=function(){var t=Vn.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Kn.prototype.fromJSON=function(t){return Vn.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},$n.prototype=Object.create(Vn.prototype),$n.prototype.constructor=$n,$n.prototype.isLineCurve3=!0,$n.prototype.getPoint=function(t,e){return e=e||new a,1===t?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},$n.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},$n.prototype.copy=function(t){return Vn.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},$n.prototype.toJSON=function(){var t=Vn.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},$n.prototype.fromJSON=function(t){return Vn.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},ti.prototype=Object.create(Vn.prototype),ti.prototype.constructor=ti,ti.prototype.isQuadraticBezierCurve=!0,ti.prototype.getPoint=function(t,e){e=e||new n;var i=this.v0,r=this.v1,a=this.v2;return e.set(Yn(t,i.x,r.x,a.x),Yn(t,i.y,r.y,a.y)),e},ti.prototype.copy=function(t){return Vn.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},ti.prototype.toJSON=function(){var t=Vn.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},ti.prototype.fromJSON=function(t){return Vn.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},ei.prototype=Object.create(Vn.prototype),ei.prototype.constructor=ei,ei.prototype.isQuadraticBezierCurve3=!0,ei.prototype.getPoint=function(t,e){e=e||new a;var n=this.v0,i=this.v1,r=this.v2;return e.set(Yn(t,n.x,i.x,r.x),Yn(t,n.y,i.y,r.y),Yn(t,n.z,i.z,r.z)),e},ei.prototype.copy=function(t){return Vn.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},ei.prototype.toJSON=function(){var t=Vn.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},ei.prototype.fromJSON=function(t){return Vn.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},ni.prototype=Object.create(Vn.prototype),ni.prototype.constructor=ni,ni.prototype.isSplineCurve=!0,ni.prototype.getPoint=function(t,e){e=e||new n;var i=this.points,r=(i.length-1)*t;r-=t=Math.floor(r);var a=i[0===t?t:t-1],o=i[t],s=i[t>i.length-2?i.length-1:t+1];return i=i[t>i.length-3?i.length-1:t+2],e.set(qn(r,a.x,o.x,s.x,i.x),qn(r,a.y,o.y,s.y,i.y)),e},ni.prototype.copy=function(t){Vn.prototype.copy.call(this,t),this.points=[];for(var e=0,n=t.points.length;e<n;e++)this.points.push(t.points[e].clone());return this},ni.prototype.toJSON=function(){var t=Vn.prototype.toJSON.call(this);t.points=[];for(var e=0,n=this.points.length;e<n;e++)t.points.push(this.points[e].toArray());return t},ni.prototype.fromJSON=function(t){Vn.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var r=t.points[e];this.points.push((new n).fromArray(r))}return this};var da=Object.freeze({ArcCurve:jn,CatmullRomCurve3:Xn,CubicBezierCurve:Zn,CubicBezierCurve3:Qn,EllipseCurve:kn,LineCurve:Kn,LineCurve3:$n,QuadraticBezierCurve:ti,QuadraticBezierCurve3:ei,SplineCurve:ni});ii.prototype=Object.assign(Object.create(Vn.prototype),{constructor:ii,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new Kn(e,t))},getPoint:function(t){var e=t*this.getLength(),n=this.getCurveLengths();for(t=0;t<n.length;){if(n[t]>=e)return e=n[t]-e,n=(t=this.curves[t]).getLength(),t.getPointAt(0===n?0:1-e/n);t++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,n=0,i=this.curves.length;n<i;n++)e+=this.curves[n].getLength(),t.push(e);return this.cacheLengths=t},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],n=0;n<=t;n++)e.push(this.getPoint(n/t));return this.autoClose&&e.push(e[0]),e},getPoints:function(t){t=t||12;for(var e,n=[],i=0,r=this.curves;i<r.length;i++){var a=r[i];a=a.getPoints(a&&a.isEllipseCurve?2*t:a&&(a.isLineCurve||a.isLineCurve3)?1:a&&a.isSplineCurve?t*a.points.length:t);for(var o=0;o<a.length;o++){var s=a[o];e&&e.equals(s)||(n.push(s),e=s)}}return this.autoClose&&1<n.length&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},copy:function(t){Vn.prototype.copy.call(this,t),this.curves=[];for(var e=0,n=t.curves.length;e<n;e++)this.curves.push(t.curves[e].clone());return this.autoClose=t.autoClose,this},toJSON:function(){var t=Vn.prototype.toJSON.call(this);t.autoClose=this.autoClose,t.curves=[];for(var e=0,n=this.curves.length;e<n;e++)t.curves.push(this.curves[e].toJSON());return t},fromJSON:function(t){Vn.prototype.fromJSON.call(this,t),this.autoClose=t.autoClose,this.curves=[];for(var e=0,n=t.curves.length;e<n;e++){var i=t.curves[e];this.curves.push((new da[i.type]).fromJSON(i))}return this}}),ri.prototype=Object.assign(Object.create(ii.prototype),{constructor:ri,setFromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,n=t.length;e<n;e++)this.lineTo(t[e].x,t[e].y)},moveTo:function(t,e){this.currentPoint.set(t,e)},lineTo:function(t,e){var i=new Kn(this.currentPoint.clone(),new n(t,e));this.curves.push(i),this.currentPoint.set(t,e)}
755,quadraticCurveTo:function(t,e,i,r){t=new ti(this.currentPoint.clone(),new n(t,e),new n(i,r)),this.curves.push(t),this.currentPoint.set(i,r)},bezierCurveTo:function(t,e,i,r,a,o){t=new Zn(this.currentPoint.clone(),new n(t,e),new n(i,r),new n(a,o)),this.curves.push(t),this.currentPoint.set(a,o)},splineThru:function(t){var e=[this.currentPoint.clone()].concat(t);e=new ni(e),this.curves.push(e),this.currentPoint.copy(t[t.length-1])},arc:function(t,e,n,i,r,a){this.absarc(t+this.currentPoint.x,e+this.currentPoint.y,n,i,r,a)},absarc:function(t,e,n,i,r,a){this.absellipse(t,e,n,n,i,r,a)},ellipse:function(t,e,n,i,r,a,o,s){this.absellipse(t+this.currentPoint.x,e+this.currentPoint.y,n,i,r,a,o,s)},absellipse:function(t,e,n,i,r,a,o,s){t=new kn(t,e,n,i,r,a,o,s),0<this.curves.length&&((e=t.getPoint(0)).equals(this.currentPoint)||this.lineTo(e.x,e.y)),this.curves.push(t),t=t.getPoint(1),this.currentPoint.copy(t)},copy:function(t){return ii.prototype.copy.call(this,t),this.currentPoint.copy(t.currentPoint),this},toJSON:function(){var t=ii.prototype.toJSON.call(this);return t.currentPoint=this.currentPoint.toArray(),t},fromJSON:function(t){return ii.prototype.fromJSON.call(this,t),this.currentPoint.fromArray(t.currentPoint),this}}),ai.prototype=Object.assign(Object.create(ri.prototype),{constructor:ai,getPointsHoles:function(t){for(var e=[],n=0,i=this.holes.length;n<i;n++)e[n]=this.holes[n].getPoints(t);return e},extractPoints:function(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}},copy:function(t){ri.prototype.copy.call(this,t),this.holes=[];for(var e=0,n=t.holes.length;e<n;e++)this.holes.push(t.holes[e].clone());return this},toJSON:function(){var t=ri.prototype.toJSON.call(this);t.uuid=this.uuid,t.holes=[];for(var e=0,n=this.holes.length;e<n;e++)t.holes.push(this.holes[e].toJSON());return t},fromJSON:function(t){ri.prototype.fromJSON.call(this,t),this.uuid=t.uuid,this.holes=[];for(var e=0,n=t.holes.length;e<n;e++){var i=t.holes[e];this.holes.push((new ri).fromJSON(i))}return this}}),oi.prototype=Object.assign(Object.create(_.prototype),{constructor:oi,isLight:!0,copy:function(t){return _.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){return(t=_.prototype.toJSON.call(this,t)).object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}),si.prototype=Object.assign(Object.create(oi.prototype),{constructor:si,isHemisphereLight:!0,copy:function(t){return oi.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(ci.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var t={};return 0!==this.bias&&(t.bias=this.bias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),hi.prototype=Object.assign(Object.create(ci.prototype),{constructor:hi,isSpotLightShadow:!0,update:function(t){var e=this.camera,n=2*Or.RAD2DEG*t.angle,i=this.mapSize.width/this.mapSize.height;t=t.distance||e.far,n===e.fov&&i===e.aspect&&t===e.far||(e.fov=n,e.aspect=i,e.far=t,e.updateProjectionMatrix())}}),li.prototype=Object.assign(Object.create(oi.prototype),{constructor:li,isSpotLight:!0,copy:function(t){return oi.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),ui.prototype=Object.assign(Object.create(oi.prototype),{constructor:ui,isPointLight:!0,copy:function(t){return oi.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),pi.prototype=Object.assign(Object.create(ci.prototype),{constructor:pi}),di.prototype=Object.assign(Object.create(oi.prototype),{constructor:di,isDirectionalLight:!0,copy:function(t){return oi.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),fi.prototype=Object.assign(Object.create(oi.prototype),{constructor:fi,isAmbientLight:!0}),mi.prototype=Object.assign(Object.create(oi.prototype),{constructor:mi,isRectAreaLight:!0,copy:function(t){return oi.prototype.copy.call(this,t),this.width=t.width,this.height=t.height,this},toJSON:function(t){return(t=oi.prototype.toJSON.call(this,t)).object.width=this.width,t.object.height=this.height,t}});var fa={arraySlice:function(t,e,n){return fa.isTypedArray(t)?new t.constructor(t.subarray(e,void 0!==n?n:t.length)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){for(var e=t.length,n=Array(e),i=0;i!==e;++i)n[i]=i;return n.sort(function(e,n){return t[e]-t[n]}),n},sortedArray:function(t,e,n){for(var i=t.length,r=new t.constructor(i),a=0,o=0;o!==i;++a)for(var s=n[a]*e,c=0;c!==e;++c)r[o++]=t[s+c];return r},flattenJSON:function(t,e,n,i){for(var r=1,a=t[0];void 0!==a&&void 0===a[i];)a=t[r++];if(void 0!==a){var o=a[i];if(void 0!==o)if(Array.isArray(o))do{void 0!==(o=a[i])&&(e.push(a.time),n.push.apply(n,o)),a=t[r++]}while(void 0!==a);else if(void 0!==o.toArray)do{void 0!==(o=a[i])&&(e.push(a.time),o.toArray(n,n.length)),a=t[r++]}while(void 0!==a);else do{void 0!==(o=a[i])&&(e.push(a.time),n.push(o)),a=t[r++]}while(void 0!==a)}}};Object.assign(gi.prototype,{evaluate:function(t){var e=this.parameterPositions,n=this._cachedIndex,i=e[n],r=e[n-1];t:{e:{n:{i:if(!(t<i)){for(var a=n+2;;){if(void 0===i){if(t<r)break i;
755return this._cachedIndex=n=e.length,this.afterEnd_(n-1,t,r)}if(n===a)break;if(r=i,t<(i=e[++n]))break e}i=e.length;break n}if(t>=r)break t;for(t<(a=e[1])&&(n=2,r=a),a=n-2;;){if(void 0===r)return this._cachedIndex=0,this.beforeStart_(0,t,i);if(n===a)break;if(i=r,t>=(r=e[--n-1]))break e}i=n,n=0}for(;n<i;)t<e[r=n+i>>>1]?i=r:n=r+1;if(i=e[n],void 0===(r=e[n-1]))return this._cachedIndex=0,this.beforeStart_(0,t,i);if(void 0===i)return this._cachedIndex=n=e.length,this.afterEnd_(n-1,r,t)}this._cachedIndex=n,this.intervalChanged_(n,r,i)}return this.interpolate_(n,r,t,i)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){var e=this.resultBuffer,n=this.sampleValues,i=this.valueSize;t*=i;for(var r=0;r!==i;++r)e[r]=n[t+r];return e},interpolate_:function(){throw Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign(gi.prototype,{beforeStart_:gi.prototype.copySampleValue_,afterEnd_:gi.prototype.copySampleValue_}),vi.prototype=Object.assign(Object.create(gi.prototype),{constructor:vi,DefaultSettings_:{endingStart:2400,endingEnd:2400},intervalChanged_:function(t,e,n){var i=this.parameterPositions,r=t-2,a=t+1,o=i[r],s=i[a];if(void 0===o)switch(this.getSettings_().endingStart){case 2401:r=t,o=2*e-n;break;case 2402:o=e+i[r=i.length-2]-i[r+1];break;default:r=t,o=n}if(void 0===s)switch(this.getSettings_().endingEnd){case 2401:a=t,s=2*n-e;break;case 2402:a=1,s=n+i[1]-i[0];break;default:a=t-1,s=e}t=.5*(n-e),i=this.valueSize,this._weightPrev=t/(e-o),this._weightNext=t/(s-n),this._offsetPrev=r*i,this._offsetNext=a*i},interpolate_:function(t,e,n,i){var r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(t*=o)-o,c=this._offsetPrev,h=this._offsetNext,l=this._weightPrev,u=this._weightNext,p=(n-e)/(i-e);for(e=-l*(i=(n=p*p)*p)+2*l*n-l*p,l=(1+l)*i+(-1.5-2*l)*n+(-.5+l)*p+1,p=(-1-u)*i+(1.5+u)*n+.5*p,u=u*i-u*n,n=0;n!==o;++n)r[n]=e*a[c+n]+l*a[s+n]+p*a[t+n]+u*a[h+n];return r}}),yi.prototype=Object.assign(Object.create(gi.prototype),{constructor:yi,interpolate_:function(t,e,n,i){var r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(t*=o)-o;for(n=1-(e=(n-e)/(i-e)),i=0;i!==o;++i)r[i]=a[s+i]*n+a[t+i]*e;return r}}),xi.prototype=Object.assign(Object.create(gi.prototype),{constructor:xi,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(bi,{toJSON:function(t){var e=t.constructor;if(void 0!==e.toJSON)e=e.toJSON(t);else{e={name:t.name,times:fa.convertArray(t.times,Array),values:fa.convertArray(t.values,Array)};var n=t.getInterpolation();n!==t.DefaultInterpolation&&(e.interpolation=n)}return e.type=t.ValueTypeName,e}}),Object.assign(bi.prototype,{constructor:bi,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:2301,InterpolantFactoryMethodDiscrete:function(t){return new xi(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new yi(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new vi(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){switch(t){case 2300:var e=this.InterpolantFactoryMethodDiscrete;break;case 2301:e=this.InterpolantFactoryMethodLinear;break;case 2302:e=this.InterpolantFactoryMethodSmooth}if(void 0===e){if(e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name,void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw Error(e);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(0!==t)for(var e=this.times,n=0,i=e.length;n!==i;++n)e[n]+=t;return this},scale:function(t){if(1!==t)for(var e=this.times,n=0,i=e.length;n!==i;++n)e[n]*=t;return this},trim:function(t,e){for(var n=this.times,i=n.length,r=0,a=i-1;r!==i&&n[r]<t;)++r;for(;-1!==a&&n[a]>e;)--a;return++a,0===r&&a===i||(r>=a&&(r=(a=Math.max(a,1))-1),t=this.getValueSize(),this.times=fa.arraySlice(n,r,a),this.values=fa.arraySlice(this.values,r*t,a*t)),this},validate:function(){var t=!0,e=this.getValueSize();0!=e-Math.floor(e)&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);var n=this.times;e=this.values;var i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(var r=null,a=0;a!==i;a++){var o=n[a];if("number"==typeof o&&isNaN(o)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,o),t=!1;break}if(null!==r&&r>o){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,o,r),t=!1;break}r=o}if(void 0!==e&&fa.isTypedArray(e))for(a=0,n=e.length;a!==n;++a)if(i=e[a],isNaN(i)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,i),t=!1;break}return t},optimize:function(){for(var t=this.times,e=this.values,n=this.getValueSize(),i=2302===this.getInterpolation(),r=1,a=t.length-1,o=1;o<a;++o){var s=!1,c=t[o];if(c!==t[o+1]&&(1!==o||c!==c[0]))if(i)s=!0;else{var h=o*n,l=h-n,u=h+n;for(c=0;c!==n;++c){var p=e[h+c];if(p!==e[l+c]||p!==e[u+c]){s=!0;break}}}if(s){if(o!==r)for(t[r]=t[o],s=o*n,h=r*n,c=0;c!==n;++c)e[h+c]=e[s+c];++r}}if(0<a){for(t[r]=t[a],s=a*n,h=r*n,c=0;c!==n;++c)e[h+c]=e[s+c];++r}return r!==t.length&&(this.times=fa.arraySlice(t,0,r),this.values=fa.arraySlice(e,0,r*n)),this}}),_i.prototype=Object.assign(Object.create(bi.prototype),{constructor:_i,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),wi.prototype=Object.assign(Object.create(bi.prototype),{constructor:wi,ValueTypeName:"color"}),Mi.prototype=Object.assign(Object.create(bi.prototype),{constructor:Mi,ValueTypeName:"number"}),Ei.prototype=Object.assign(Object.create(gi.prototype),{constructor:Ei,interpolate_:function(t,e,n,i){var a=this.resultBuffer,o=this.sampleValues,s=this.valueSize;
755for(e=(n-e)/(i-e),n=(t*=s)+s;t!==n;t+=4)r.slerpFlat(a,0,o,t-s,o,t,e);return a}}),Ti.prototype=Object.assign(Object.create(bi.prototype),{constructor:Ti,ValueTypeName:"quaternion",DefaultInterpolation:2301,InterpolantFactoryMethodLinear:function(t){return new Ei(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),Si.prototype=Object.assign(Object.create(bi.prototype),{constructor:Si,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Ai.prototype=Object.assign(Object.create(bi.prototype),{constructor:Ai,ValueTypeName:"vector"}),Object.assign(Li,{parse:function(t){for(var e=[],n=t.tracks,i=1/(t.fps||1),r=0,a=n.length;r!==a;++r)e.push(Ri(n[r]).scale(i));return new Li(t.name,t.duration,e)},toJSON:function(t){var e=[],n=t.tracks;t={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid};for(var i=0,r=n.length;i!==r;++i)e.push(bi.toJSON(n[i]));return t},CreateFromMorphTargetSequence:function(t,e,n,i){for(var r=e.length,a=[],o=0;o<r;o++){var s=[],c=[];s.push((o+r-1)%r,o,(o+1)%r),c.push(0,1,0);var h=fa.getKeyframeOrder(s);s=fa.sortedArray(s,1,h),c=fa.sortedArray(c,1,h),i||0!==s[0]||(s.push(r),c.push(c[0])),a.push(new Mi(".morphTargetInfluences["+e[o].name+"]",s,c).scale(1/n))}return new Li(t,-1,a)},findByName:function(t,e){var n=t;for(Array.isArray(t)||(n=t.geometry&&t.geometry.animations||t.animations),t=0;t<n.length;t++)if(n[t].name===e)return n[t];return null},CreateClipsFromMorphTargetSequences:function(t,e,n){for(var i={},r=/^([\w-]*?)([\d]+)$/,a=0,o=t.length;a<o;a++){var s=t[a],c=s.name.match(r);if(c&&1<c.length){var h=c[1];(c=i[h])||(i[h]=c=[]),c.push(s)}}for(h in t=[],i)t.push(Li.CreateFromMorphTargetSequence(h,i[h],e,n));return t},parseAnimation:function(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;var n=function(t,e,n,i,r){if(0!==n.length){var a=[],o=[];fa.flattenJSON(n,a,o,i),0!==a.length&&r.push(new t(e,a,o))}},i=[],r=t.name||"default",a=t.length||-1,o=t.fps||30;t=t.hierarchy||[];for(var s=0;s<t.length;s++){var c=t[s].keys;if(c&&0!==c.length)if(c[0].morphTargets){a={};for(var h=0;h<c.length;h++)if(c[h].morphTargets)for(var l=0;l<c[h].morphTargets.length;l++)a[c[h].morphTargets[l]]=-1;for(var u in a){var p=[],d=[];for(l=0;l!==c[h].morphTargets.length;++l){var f=c[h];p.push(f.time),d.push(f.morphTarget===u?1:0)}i.push(new Mi(".morphTargetInfluence["+u+"]",p,d))}a=a.length*(o||1)}else n(Ai,(h=".bones["+e[s].name+"]")+".position",c,"pos",i),n(Ti,h+".quaternion",c,"rot",i),n(Ai,h+".scale",c,"scl",i)}return 0===i.length?null:new Li(r,a,i)}}),Object.assign(Li.prototype,{resetDuration:function(){for(var t=0,e=0,n=this.tracks.length;e!==n;++e){var i=this.tracks[e];t=Math.max(t,i.times[i.times.length-1])}return this.duration=t,this},trim:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this},validate:function(){for(var t=!0,e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t},optimize:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}}),Object.assign(Ci.prototype,{load:function(t,e,n,i){var r=this;new Un(r.manager).load(t,function(t){e(r.parse(JSON.parse(t)))},n,i)},setTextures:function(t){this.textures=t},parse:function(t){function e(t){return void 0===i[t]&&console.warn("THREE.MaterialLoader: Undefined texture",t),i[t]}var i=this.textures,r=new aa[t.type];if(void 0!==t.uuid&&(r.uuid=t.uuid),void 0!==t.name&&(r.name=t.name),void 0!==t.color&&r.color.setHex(t.color),void 0!==t.roughness&&(r.roughness=t.roughness),void 0!==t.metalness&&(r.metalness=t.metalness),void 0!==t.emissive&&r.emissive.setHex(t.emissive),void 0!==t.specular&&r.specular.setHex(t.specular),void 0!==t.shininess&&(r.shininess=t.shininess),void 0!==t.clearCoat&&(r.clearCoat=t.clearCoat),void 0!==t.clearCoatRoughness&&(r.clearCoatRoughness=t.clearCoatRoughness),void 0!==t.uniforms&&(r.uniforms=t.uniforms),void 0!==t.vertexShader&&(r.vertexShader=t.vertexShader),void 0!==t.fragmentShader&&(r.fragmentShader=t.fragmentShader),void 0!==t.vertexColors&&(r.vertexColors=t.vertexColors),void 0!==t.fog&&(r.fog=t.fog),void 0!==t.flatShading&&(r.flatShading=t.flatShading),void 0!==t.blending&&(r.blending=t.blending),void 0!==t.side&&(r.side=t.side),void 0!==t.opacity&&(r.opacity=t.opacity),void 0!==t.transparent&&(r.transparent=t.transparent),void 0!==t.alphaTest&&(r.alphaTest=t.alphaTest),void 0!==t.depthTest&&(r.depthTest=t.depthTest),void 0!==t.depthWrite&&(r.depthWrite=t.depthWrite),void 0!==t.colorWrite&&(r.colorWrite=t.colorWrite),void 0!==t.wireframe&&(r.wireframe=t.wireframe),void 0!==t.wireframeLinewidth&&(r.wireframeLinewidth=t.wireframeLinewidth),void 0!==t.wireframeLinecap&&(r.wireframeLinecap=t.wireframeLinecap),void 0!==t.wireframeLinejoin&&(r.wireframeLinejoin=t.wireframeLinejoin),void 0!==t.rotation&&(r.rotation=t.rotation),1!==t.linewidth&&(r.linewidth=t.linewidth),void 0!==t.dashSize&&(r.dashSize=t.dashSize),void 0!==t.gapSize&&(r.gapSize=t.gapSize),void 0!==t.scale&&(r.scale=t.scale),void 0!==t.polygonOffset&&(r.polygonOffset=t.polygonOffset),void 0!==t.polygonOffsetFactor&&(r.polygonOffsetFactor=t.polygonOffsetFactor),void 0!==t.polygonOffsetUnits&&(r.polygonOffsetUnits=t.polygonOffsetUnits),void 0!==t.skinning&&(r.skinning=t.skinning),void 0!==t.morphTargets&&(r.morphTargets=t.morphTargets),void 0!==t.dithering&&(r.dithering=t.dithering),void 0!==t.visible&&(r.visible=t.visible),void 0!==t.userData&&(r.userData=t.userData),void 0!==t.shading&&(r.flatShading=1===t.shading),void 0!==t.size&&(r.size=t.size),void 0!==t.sizeAttenuation&&(r.sizeAttenuation=t.sizeAttenuation),void 0!==t.map&&(r.map=e(t.map)),void 0!==t.alphaMap&&(r.alphaMap=e(t.alphaMap),r.transparent=!0),void 0!==t.bumpMap&&(r.bumpMap=e(t.bumpMap)),void 0!==t.bumpScale&&(r.bumpScale=t.bumpScale),void 0!==t.normalMap&&(r.normalMap=e(t.normalMap)),void 0!==t.normalMapType&&(r.normalMapType=t.normalMapType),void 0!==t.normalScale){var a=t.normalScale;!1===Array.isArray(a)&&(a=[a,a]),r.normalScale=(new n).fromArray(a)}return void 0!==t.displacementMap&&(r.displacementMap=e(t.displacementMap)),void 0!==t.displacementScale&&(r.displacementScale=t.displacementScale),void 0!==t.displacementBias&&(r.displacementBias=t.displacementBias),void 0!==t.roughnessMap&&(r.roughnessMap=e(t.roughnessMap)),void 0!==t.metalnessMap&&(r.metalnessMap=e(t.metalnessMap)),void 0!==t.emissiveMap&&(r.emissiveMap=e(t.emissiveMap)),void 0!==t.emissiveIntensity&&(r.emissiveIntensity=t.emissiveIntensity),void 0!==t.specularMap&&(r.specularMap=e(t.specularMap)),void 0!==t.envMap&&(r.envMap=e(t.envMap)
755),void 0!==t.reflectivity&&(r.reflectivity=t.reflectivity),void 0!==t.lightMap&&(r.lightMap=e(t.lightMap)),void 0!==t.lightMapIntensity&&(r.lightMapIntensity=t.lightMapIntensity),void 0!==t.aoMap&&(r.aoMap=e(t.aoMap)),void 0!==t.aoMapIntensity&&(r.aoMapIntensity=t.aoMapIntensity),void 0!==t.gradientMap&&(r.gradientMap=e(t.gradientMap)),r}}),Object.assign(Pi.prototype,{load:function(t,e,n,i){var r=this;new Un(r.manager).load(t,function(t){e(r.parse(JSON.parse(t)))},n,i)},parse:function(t){var e=new F,n=t.data.index;void 0!==n&&(n=new ma[n.type](n.array),e.setIndex(new S(n,1)));var i=t.data.attributes;for(o in i){var r=i[o];n=new ma[r.type](r.array),e.addAttribute(o,new S(n,r.itemSize,r.normalized))}var o=t.data.groups||t.data.drawcalls||t.data.offsets;if(void 0!==o)for(n=0,i=o.length;n!==i;++n)r=o[n],e.addGroup(r.start,r.count,r.materialIndex);return void 0!==(t=t.data.boundingSphere)&&(o=new a,void 0!==t.center&&o.fromArray(t.center),e.boundingSphere=new d(o,t.radius)),e}});var ma={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:"undefined"!=typeof Uint8ClampedArray?Uint8ClampedArray:Uint8Array,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};Oi.Handlers={handlers:[],add:function(t,e){this.handlers.push(t,e)},get:function(t){for(var e=this.handlers,n=0,i=e.length;n<i;n+=2){var r=e[n+1];if(e[n].test(t))return r}return null}},Object.assign(Oi.prototype,{crossOrigin:"anonymous",onLoadStart:function(){},onLoadProgress:function(){},onLoadComplete:function(){},initMaterials:function(t,e,n){for(var i=[],r=0;r<t.length;++r)i[r]=this.createMaterial(t[r],e,n);return i},createMaterial:function(){var t={NoBlending:0,NormalBlending:1,AdditiveBlending:2,SubtractiveBlending:3,MultiplyBlending:4,CustomBlending:5},e=new g,n=new Hn,i=new Ci;return function(r,a,o){function s(t,e,i,r,s){t=a+t;var c=Oi.Handlers.get(t);return null!==c?t=c.load(t):(n.setCrossOrigin(o),t=n.load(t)),void 0!==e&&(t.repeat.fromArray(e),1!==e[0]&&(t.wrapS=1e3),1!==e[1]&&(t.wrapT=1e3)),void 0!==i&&t.offset.fromArray(i),void 0!==r&&("repeat"===r[0]&&(t.wrapS=1e3),"mirror"===r[0]&&(t.wrapS=1002),"repeat"===r[1]&&(t.wrapT=1e3),"mirror"===r[1]&&(t.wrapT=1002)),void 0!==s&&(t.anisotropy=s),e=Or.generateUUID(),h[e]=t,e}var c,h={},l={uuid:Or.generateUUID(),type:"MeshLambertMaterial"};for(c in r){var u=r[c];switch(c){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":l.name=u;break;case"blending":l.blending=t[u];break;case"colorAmbient":case"mapAmbient":console.warn("THREE.Loader.createMaterial:",c,"is no longer supported.");break;case"colorDiffuse":l.color=e.fromArray(u).getHex();break;case"colorSpecular":l.specular=e.fromArray(u).getHex();break;case"colorEmissive":l.emissive=e.fromArray(u).getHex();break;case"specularCoef":l.shininess=u;break;case"shading":"basic"===u.toLowerCase()&&(l.type="MeshBasicMaterial"),"phong"===u.toLowerCase()&&(l.type="MeshPhongMaterial"),"standard"===u.toLowerCase()&&(l.type="MeshStandardMaterial");break;case"mapDiffuse":l.map=s(u,r.mapDiffuseRepeat,r.mapDiffuseOffset,r.mapDiffuseWrap,r.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapEmissive":l.emissiveMap=s(u,r.mapEmissiveRepeat,r.mapEmissiveOffset,r.mapEmissiveWrap,r.mapEmissiveAnisotropy);break;case"mapEmissiveRepeat":case"mapEmissiveOffset":case"mapEmissiveWrap":case"mapEmissiveAnisotropy":break;case"mapLight":l.lightMap=s(u,r.mapLightRepeat,r.mapLightOffset,r.mapLightWrap,r.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":l.aoMap=s(u,r.mapAORepeat,r.mapAOOffset,r.mapAOWrap,r.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":l.bumpMap=s(u,r.mapBumpRepeat,r.mapBumpOffset,r.mapBumpWrap,r.mapBumpAnisotropy);break;case"mapBumpScale":l.bumpScale=u;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":l.normalMap=s(u,r.mapNormalRepeat,r.mapNormalOffset,r.mapNormalWrap,r.mapNormalAnisotropy);break;case"mapNormalFactor":l.normalScale=u;break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":l.specularMap=s(u,r.mapSpecularRepeat,r.mapSpecularOffset,r.mapSpecularWrap,r.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapMetalness":l.metalnessMap=s(u,r.mapMetalnessRepeat,r.mapMetalnessOffset,r.mapMetalnessWrap,r.mapMetalnessAnisotropy);break;case"mapMetalnessRepeat":case"mapMetalnessOffset":case"mapMetalnessWrap":case"mapMetalnessAnisotropy":break;case"mapRoughness":l.roughnessMap=s(u,r.mapRoughnessRepeat,r.mapRoughnessOffset,r.mapRoughnessWrap,r.mapRoughnessAnisotropy);break;case"mapRoughnessRepeat":case"mapRoughnessOffset":case"mapRoughnessWrap":case"mapRoughnessAnisotropy":break;
755case"mapAlpha":l.alphaMap=s(u,r.mapAlphaRepeat,r.mapAlphaOffset,r.mapAlphaWrap,r.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":l.side=1;break;case"doubleSided":l.side=2;break;case"transparency":console.warn("THREE.Loader.createMaterial: transparency has been renamed to opacity"),l.opacity=u;break;case"depthTest":case"depthWrite":case"colorWrite":case"opacity":case"reflectivity":case"transparent":case"visible":case"wireframe":l[c]=u;break;case"vertexColors":!0===u&&(l.vertexColors=2),"face"===u&&(l.vertexColors=1);break;default:console.error("THREE.Loader.createMaterial: Unsupported",c,u)}}return"MeshBasicMaterial"===l.type&&delete l.emissive,"MeshPhongMaterial"!==l.type&&delete l.specular,1>l.opacity&&(l.transparent=!0),i.setTextures(h),i.parse(l)}}()});var ga={decodeText:function(t){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);for(var e="",n=0,i=t.length;n<i;n++)e+=String.fromCharCode(t[n]);return decodeURIComponent(escape(e))},extractUrlBase:function(t){var e=t.lastIndexOf("/");return-1===e?"./":t.substr(0,e+1)}};Object.assign(Ii.prototype,{crossOrigin:"anonymous",load:function(t,e,n,i){var r=this,a=this.texturePath&&"string"==typeof this.texturePath?this.texturePath:ga.extractUrlBase(t),o=new Un(this.manager);o.setWithCredentials(this.withCredentials),o.load(t,function(n){var i=(n=JSON.parse(n)).metadata;void 0===i||(void 0===(i=i.type)||"object"!==i.toLowerCase())?(n=r.parse(n,a),e(n.geometry,n.materials)):console.error("THREE.JSONLoader: "+t+" should be loaded with THREE.ObjectLoader instead.")},n,i)},setCrossOrigin:function(t){return this.crossOrigin=t,this},setTexturePath:function(t){return this.texturePath=t,this},parse:function(t,e){void 0!==t.data&&(t=t.data),t.scale=void 0!==t.scale?1/t.scale:1;var i,r,o,s=new T,h=t,l=h.faces,u=h.vertices,p=h.normals,d=h.colors,f=h.scale,m=0;if(void 0!==h.uvs){for(i=0;i<h.uvs.length;i++)h.uvs[i].length&&m++;for(i=0;i<m;i++)s.faceVertexUvs[i]=[]}var v=0;for(o=u.length;v<o;)(i=new a).x=u[v++]*f,i.y=u[v++]*f,i.z=u[v++]*f,s.vertices.push(i);for(v=0,o=l.length;v<o;){var y=1&(u=l[v++]),x=2&u;i=8&u;var b=16&u,_=32&u;if(f=64&u,u&=128,y){(y=new E).a=l[v],y.b=l[v+1],y.c=l[v+3];var w=new E;if(w.a=l[v+1],w.b=l[v+2],w.c=l[v+3],v+=4,x&&(x=l[v++],y.materialIndex=x,w.materialIndex=x),x=s.faces.length,i)for(i=0;i<m;i++){var M=h.uvs[i];for(s.faceVertexUvs[i][x]=[],s.faceVertexUvs[i][x+1]=[],r=0;4>r;r++){var S=l[v++],A=M[2*S];
755A=new n(A,S=M[2*S+1]),2!==r&&s.faceVertexUvs[i][x].push(A),0!==r&&s.faceVertexUvs[i][x+1].push(A)}}if(b&&(b=3*l[v++],y.normal.set(p[b++],p[b++],p[b]),w.normal.copy(y.normal)),_)for(i=0;4>i;i++)b=3*l[v++],_=new a(p[b++],p[b++],p[b]),2!==i&&y.vertexNormals.push(_),0!==i&&w.vertexNormals.push(_);if(f&&(f=d[f=l[v++]],y.color.setHex(f),w.color.setHex(f)),u)for(i=0;4>i;i++)f=d[f=l[v++]],2!==i&&y.vertexColors.push(new g(f)),0!==i&&w.vertexColors.push(new g(f));s.faces.push(y),s.faces.push(w)}else{if((y=new E).a=l[v++],y.b=l[v++],y.c=l[v++],x&&(x=l[v++],y.materialIndex=x),x=s.faces.length,i)for(i=0;i<m;i++)for(M=h.uvs[i],s.faceVertexUvs[i][x]=[],r=0;3>r;r++)A=new n(A=M[2*(S=l[v++])],S=M[2*S+1]),s.faceVertexUvs[i][x].push(A);if(b&&(b=3*l[v++],y.normal.set(p[b++],p[b++],p[b])),_)for(i=0;3>i;i++)b=3*l[v++],_=new a(p[b++],p[b++],p[b]),y.vertexNormals.push(_);if(f&&(f=l[v++],y.color.setHex(d[f])),u)for(i=0;3>i;i++)f=l[v++],y.vertexColors.push(new g(d[f]));s.faces.push(y)}}if(v=void 0!==(h=t).influencesPerVertex?h.influencesPerVertex:2,h.skinWeights)for(o=0,l=h.skinWeights.length;o<l;o+=v)s.skinWeights.push(new c(h.skinWeights[o],1<v?h.skinWeights[o+1]:0,2<v?h.skinWeights[o+2]:0,3<v?h.skinWeights[o+3]:0));if(h.skinIndices)for(o=0,l=h.skinIndices.length;o<l;o+=v)s.skinIndices.push(new c(h.skinIndices[o],1<v?h.skinIndices[o+1]:0,2<v?h.skinIndices[o+2]:0,3<v?h.skinIndices[o+3]:0));if(s.bones=h.bones,s.bones&&0<s.bones.length&&(s.skinWeights.length!==s.skinIndices.length||s.skinIndices.length!==s.vertices.length)&&console.warn("When skinning, number of vertices ("+s.vertices.length+"), skinIndices ("+s.skinIndices.length+"), and skinWeights ("+s.skinWeights.length+") should match."),l=(o=t).scale,void 0!==o.morphTargets)for(h=0,v=o.morphTargets.length;h<v;h++)for(s.morphTargets[h]={},s.morphTargets[h].name=o.morphTargets[h].name,s.morphTargets[h].vertices=[],p=s.morphTargets[h].vertices,m=0,u=(d=o.morphTargets[h].vertices).length;m<u;m+=3)(f=new a).x=d[m]*l,f.y=d[m+1]*l,f.z=d[m+2]*l,p.push(f);if(void 0!==o.morphColors&&0<o.morphColors.length)for(console.warn('THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.'),l=s.faces,o=o.morphColors[0].colors,h=0,v=l.length;h<v;h++)l[h].color.fromArray(o,3*h);for(h=[],v=[],void 0!==(o=t).animation&&v.push(o.animation),void 0!==o.animations&&(o.animations.length?v=v.concat(o.animations):v.push(o.animations)),o=0;o<v.length;o++)(l=Li.parseAnimation(v[o],s.bones))&&h.push(l);return s.morphTargets&&(v=Li.CreateClipsFromMorphTargetSequences(s.morphTargets,10),h=h.concat(v)),0<h.length&&(s.animations=h),s.computeFaceNormals(),s.computeBoundingSphere(),void 0===t.materials||0===t.materials.length?{geometry:s}:{geometry:s,materials:t=Oi.prototype.initMaterials(t.materials,e,this.crossOrigin)}}}),Object.assign(Ni.prototype,{crossOrigin:"anonymous",load:function(t,e,n,i){""===this.texturePath&&(this.texturePath=t.substring(0,t.lastIndexOf("/")+1));var r=this;new Un(r.manager).load(t,function(n){var a=null;try{a=JSON.parse(n)}catch(e){return void 0!==i&&i(e),void console.error("THREE:ObjectLoader: Can't parse "+t+".",e.message)}void 0===(n=a.metadata)||void 0===n.type||"geometry"===n.type.toLowerCase()?console.error("THREE.ObjectLoader: Can't load "+t+". Use THREE.JSONLoader instead."):r.parse(a,e)},n,i)},setTexturePath:function(t){return this.texturePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(t,e){var n=this.parseShape(t.shapes);n=this.parseGeometries(t.geometries,n);var i=this.parseImages(t.images,function(){void 0!==e&&e(r)});i=this.parseTextures(t.textures,i),i=this.parseMaterials(t.materials,i);var r=this.parseObject(t.object,n,i);return t.animations&&(r.animations=this.parseAnimations(t.animations)),void 0!==t.images&&0!==t.images.length||void 0===e||e(r),r},parseShape:function(t){var e={};if(void 0!==t)for(var n=0,i=t.length;n<i;n++){var r=(new ai).fromJSON(t[n]);e[r.uuid]=r}return e},parseGeometries:function(t,e){var n={};if(void 0!==t)for(var i=new Ii,r=new Pi,a=0,o=t.length;a<o;a++){var s=t[a];switch(s.type){case"PlaneGeometry":case"PlaneBufferGeometry":var c=new ra[s.type](s.width,s.height,s.widthSegments,s.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":c=new ra[s.type](s.width,s.height,s.depth,s.widthSegments,s.heightSegments,s.depthSegments);break;
755case"CircleGeometry":case"CircleBufferGeometry":c=new ra[s.type](s.radius,s.segments,s.thetaStart,s.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":c=new ra[s.type](s.radiusTop,s.radiusBottom,s.height,s.radialSegments,s.heightSegments,s.openEnded,s.thetaStart,s.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":c=new ra[s.type](s.radius,s.height,s.radialSegments,s.heightSegments,s.openEnded,s.thetaStart,s.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":c=new ra[s.type](s.radius,s.widthSegments,s.heightSegments,s.phiStart,s.phiLength,s.thetaStart,s.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":c=new ra[s.type](s.radius,s.detail);break;case"RingGeometry":case"RingBufferGeometry":c=new ra[s.type](s.innerRadius,s.outerRadius,s.thetaSegments,s.phiSegments,s.thetaStart,s.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":c=new ra[s.type](s.radius,s.tube,s.radialSegments,s.tubularSegments,s.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":c=new ra[s.type](s.radius,s.tube,s.tubularSegments,s.radialSegments,s.p,s.q);break;case"LatheGeometry":case"LatheBufferGeometry":c=new ra[s.type](s.points,s.segments,s.phiStart,s.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":c=new ra[s.type](s.vertices,s.indices,s.radius,s.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":c=[];for(var h=0,l=s.shapes.length;h<l;h++){var u=e[s.shapes[h]];c.push(u)}c=new ra[s.type](c,s.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(c=[],h=0,l=s.shapes.length;h<l;h++)u=e[s.shapes[h]],c.push(u);void 0!==(h=s.options.extrudePath)&&(s.options.extrudePath=(new da[h.type]).fromJSON(h)),c=new ra[s.type](c,s.options);break;case"BufferGeometry":c=r.parse(s);break;case"Geometry":c=i.parse(s,this.texturePath).geometry;break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+s.type+'"');continue}c.uuid=s.uuid,void 0!==s.name&&(c.name=s.name),!0===c.isBufferGeometry&&void 0!==s.userData&&(c.userData=s.userData),n[s.uuid]=c}return n},parseMaterials:function(t,e){var n={};if(void 0!==t){var i=new Ci;i.setTextures(e),e=0;for(var r=t.length;e<r;e++){var a=t[e];if("MultiMaterial"===a.type){for(var o=[],s=0;s<a.materials.length;s++)o.push(i.parse(a.materials[s]));n[a.uuid]=o}else n[a.uuid]=i.parse(a)}}return n},parseAnimations:function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],r=Li.parse(i);void 0!==i.uuid&&(r.uuid=i.uuid),e.push(r)}return e},parseImages:function(t,e){function n(t){return i.manager.itemStart(t),a.load(t,function(){i.manager.itemEnd(t)},void 0,function(){i.manager.itemEnd(t),i.manager.itemError(t)})}var i=this,r={};if(void 0!==t&&0<t.length){var a=new zn(e=new Dn(e));a.setCrossOrigin(this.crossOrigin),e=0;for(var o=t.length;e<o;e++){var s=t[e],c=s.url;if(Array.isArray(c)){r[s.uuid]=[];for(var h=0,l=c.length;h<l;h++){var u=c[h];u=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(u)?u:i.texturePath+u,r[s.uuid].push(n(u))}}else u=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(s.url)?s.url:i.texturePath+s.url,r[s.uuid]=n(u)}}return r},parseTextures:function(t,e){function n(t,e){return"number"==typeof t?t:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",t),e[t])}var i={};if(void 0!==t)for(var r=0,a=t.length;r<a;r++){var o=t[r];void 0===o.image&&console.warn('THREE.ObjectLoader: No "image" specified for',o.uuid),void 0===e[o.image]&&console.warn("THREE.ObjectLoader: Undefined image",o.image);var c=Array.isArray(e[o.image])?new $(e[o.image]):new s(e[o.image]);c.needsUpdate=!0,c.uuid=o.uuid,void 0!==o.name&&(c.name=o.name),void 0!==o.mapping&&(c.mapping=n(o.mapping,va)),void 0!==o.offset&&c.offset.fromArray(o.offset),void 0!==o.repeat&&c.repeat.fromArray(o.repeat),void 0!==o.center&&c.center.fromArray(o.center),void 0!==o.rotation&&(c.rotation=o.rotation),void 0!==o.wrap&&(c.wrapS=n(o.wrap[0],ya),c.wrapT=n(o.wrap[1],ya)),void 0!==o.format&&(c.format=o.format),void 0!==o.minFilter&&(c.minFilter=n(o.minFilter,xa)),void 0!==o.magFilter&&(c.magFilter=n(o.magFilter,xa)),void 0!==o.anisotropy&&(c.anisotropy=o.anisotropy),void 0!==o.flipY&&(c.flipY=o.flipY),i[o.uuid]=c}return i},parseObject:function(t,e,n){function i(t){return void 0===e[t]&&console.warn("THREE.ObjectLoader: Undefined geometry",t),e[t]}function r(t){if(void 0!==t){if(Array.isArray(t)){for(var e=[],i=0,r=t.length;i<r;i++){var a=t[i];void 0===n[a]&&console.warn("THREE.ObjectLoader: Undefined material",a),e.push(n[a])}return e}return void 0===n[t]&&console.warn("THREE.ObjectLoader: Undefined material",t),n[t]}}switch(t.type){case"Scene":var a=new ie;
755void 0!==t.background&&Number.isInteger(t.background)&&(a.background=new g(t.background)),void 0!==t.fog&&("Fog"===t.fog.type?a.fog=new ne(t.fog.color,t.fog.near,t.fog.far):"FogExp2"===t.fog.type&&(a.fog=new ee(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":a=new Zt(t.fov,t.aspect,t.near,t.far),void 0!==t.focus&&(a.focus=t.focus),void 0!==t.zoom&&(a.zoom=t.zoom),void 0!==t.filmGauge&&(a.filmGauge=t.filmGauge),void 0!==t.filmOffset&&(a.filmOffset=t.filmOffset),void 0!==t.view&&(a.view=Object.assign({},t.view));break;case"OrthographicCamera":a=new M(t.left,t.right,t.top,t.bottom,t.near,t.far),void 0!==t.zoom&&(a.zoom=t.zoom),void 0!==t.view&&(a.view=Object.assign({},t.view));break;case"AmbientLight":a=new fi(t.color,t.intensity);break;case"DirectionalLight":a=new di(t.color,t.intensity);break;case"PointLight":a=new ui(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":a=new mi(t.color,t.intensity,t.width,t.height);break;case"SpotLight":a=new li(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":a=new si(t.color,t.groundColor,t.intensity);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":a=i(t.geometry);var o=r(t.material);a=a.bones&&0<a.bones.length?new ue(a,o):new Y(a,o);break;case"LOD":a=new ce;break;case"Line":a=new de(i(t.geometry),r(t.material),t.mode);break;case"LineLoop":a=new me(i(t.geometry),r(t.material));break;case"LineSegments":a=new fe(i(t.geometry),r(t.material));break;case"PointCloud":case"Points":a=new ve(i(t.geometry),r(t.material));break;case"Sprite":a=new se(r(t.material));break;case"Group":a=new Jt;break;default:a=new _}if(a.uuid=t.uuid,void 0!==t.name&&(a.name=t.name),void 0!==t.matrix?(a.matrix.fromArray(t.matrix),void 0!==t.matrixAutoUpdate&&(a.matrixAutoUpdate=t.matrixAutoUpdate),a.matrixAutoUpdate&&a.matrix.decompose(a.position,a.quaternion,a.scale)):(void 0!==t.position&&a.position.fromArray(t.position),void 0!==t.rotation&&a.rotation.fromArray(t.rotation),void 0!==t.quaternion&&a.quaternion.fromArray(t.quaternion),void 0!==t.scale&&a.scale.fromArray(t.scale)),void 0!==t.castShadow&&(a.castShadow=t.castShadow),void 0!==t.receiveShadow&&(a.receiveShadow=t.receiveShadow),t.shadow&&(void 0!==t.shadow.bias&&(a.shadow.bias=t.shadow.bias),void 0!==t.shadow.radius&&(a.shadow.radius=t.shadow.radius),void 0!==t.shadow.mapSize&&a.shadow.mapSize.fromArray(t.shadow.mapSize),void 0!==t.shadow.camera&&(a.shadow.camera=this.parseObject(t.shadow.camera))),void 0!==t.visible&&(a.visible=t.visible),void 0!==t.frustumCulled&&(a.frustumCulled=t.frustumCulled),void 0!==t.renderOrder&&(a.renderOrder=t.renderOrder),void 0!==t.userData&&(a.userData=t.userData),void 0!==t.layers&&(a.layers.mask=t.layers),void 0!==t.children){o=t.children;for(var s=0;s<o.length;s++)a.add(this.parseObject(o[s],e,n))}if("LOD"===t.type)for(t=t.levels,o=0;o<t.length;o++){s=t[o];var c=a.getObjectByProperty("uuid",s.object);void 0!==c&&a.addLevel(c,s.distance)}return a}});var va={UVMapping:300,CubeReflectionMapping:301,CubeRefractionMapping:302,EquirectangularReflectionMapping:303,EquirectangularRefractionMapping:304,SphericalReflectionMapping:305,CubeUVReflectionMapping:306,CubeUVRefractionMapping:307},ya={RepeatWrapping:1e3,ClampToEdgeWrapping:1001,MirroredRepeatWrapping:1002},xa={NearestFilter:1003,NearestMipMapNearestFilter:1004,NearestMipMapLinearFilter:1005,LinearFilter:1006,LinearMipMapNearestFilter:1007,LinearMipMapLinearFilter:1008};Di.prototype={constructor:Di,setOptions:function(t){return this.options=t,this},load:function(t,e,n,i){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);var r=this,a=oa.get(t);if(void 0!==a)return r.manager.itemStart(t),setTimeout(function(){e&&e(a),r.manager.itemEnd(t)},0),a;fetch(t).then(function(t){return t.blob()}).then(function(t){return createImageBitmap(t,r.options)}).then(function(n){oa.add(t,n),e&&e(n),r.manager.itemEnd(t)}
755).catch(function(e){i&&i(e),r.manager.itemEnd(t),r.manager.itemError(t)})},setCrossOrigin:function(){return this},setPath:function(t){return this.path=t,this}},Object.assign(Ui.prototype,{moveTo:function(t,e){this.currentPath=new ri,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e)},lineTo:function(t,e){this.currentPath.lineTo(t,e)},quadraticCurveTo:function(t,e,n,i){this.currentPath.quadraticCurveTo(t,e,n,i)},bezierCurveTo:function(t,e,n,i,r,a){this.currentPath.bezierCurveTo(t,e,n,i,r,a)},splineThru:function(t){this.currentPath.splineThru(t)},toShapes:function(t,e){function n(t){for(var e=[],n=0,i=t.length;n<i;n++){var r=t[n],a=new ai;a.curves=r.curves,e.push(a)}return e}function i(t,e){for(var n=e.length,i=!1,r=n-1,a=0;a<n;r=a++){var o=e[r],s=e[a],c=s.x-o.x,h=s.y-o.y;if(Math.abs(h)>Number.EPSILON){if(0>h&&(o=e[a],c=-c,s=e[r],h=-h),!(t.y<o.y||t.y>s.y))if(t.y===o.y){if(t.x===o.x)return!0}else{if(0===(r=h*(t.x-o.x)-c*(t.y-o.y)))return!0;0>r||(i=!i)}}else if(t.y===o.y&&(s.x<=t.x&&t.x<=o.x||o.x<=t.x&&t.x<=s.x))return!0}return i}var r=na.isClockWise,a=this.subPaths;if(0===a.length)return[];if(!0===e)return n(a);if(e=[],1===a.length){var o=a[0],s=new ai;return s.curves=o.curves,e.push(s),e}var c=!r(a[0].getPoints());c=t?!c:c,s=[];var h=[],l=[],u=0;h[u]=void 0,l[u]=[];for(var p=0,d=a.length;p<d;p++){var f=(o=a[p]).getPoints(),m=r(f);(m=t?!m:m)?(!c&&h[u]&&u++,h[u]={s:new ai,p:f},h[u].s.curves=o.curves,c&&u++,l[u]=[]):l[u].push({h:o,p:f[0]})}if(!h[0])return n(a);if(1<h.length){for(p=!1,t=[],r=0,a=h.length;r<a;r++)s[r]=[];for(r=0,a=h.length;r<a;r++)for(o=l[r],m=0;m<o.length;m++){for(c=o[m],u=!0,f=0;f<h.length;f++)i(c.p,h[f].p)&&(r!==f&&t.push({froms:r,tos:f,hole:m}),u?(u=!1,s[f].push(c)):p=!0);u&&s[r].push(c)}0<t.length&&(p||(l=s))}for(p=0,r=h.length;p<r;p++)for(s=h[p].s,e.push(s),a=0,o=(t=l[p]).length;a<o;a++)s.holes.push(t[a].h);return e}}),Object.assign(Bi.prototype,{isFont:!0,generateShapes:function(t,e){void 0===e&&(e=100);var n=[],i=e;e=this.data;var r=Array.from?Array.from(t):String(t).split("");i/=e.resolution;var a=(e.boundingBox.yMax-e.boundingBox.yMin+e.underlineThickness)*i;t=[];for(var o=0,s=0,c=0;c<r.length;c++){var h=r[c];if("\n"===h)o=0,s-=a;else{var l=i,u=o,p=s;if(h=e.glyphs[h]||e.glyphs["?"]){var d=new Ui;if(h.o)for(var f=h._cachedOutline||(h._cachedOutline=h.o.split(" ")),m=0,g=f.length;m<g;)switch(f[m++]){case"m":var v=f[m++]*l+u,y=f[m++]*l+p;d.moveTo(v,y);break;case"l":v=f[m++]*l+u,y=f[m++]*l+p,d.lineTo(v,y);break;case"q":var x=f[m++]*l+u,b=f[m++]*l+p,_=f[m++]*l+u,w=f[m++]*l+p;d.quadraticCurveTo(_,w,x,b);break;case"b":x=f[m++]*l+u,b=f[m++]*l+p,_=f[m++]*l+u,w=f[m++]*l+p,v=f[m++]*l+u,y=f[m++]*l+p,d.bezierCurveTo(_,w,v,y,x,b)}l={offsetX:h.ha*l,path:d}}else l=void 0;o+=l.offsetX,t.push(l.path)}}for(e=0,r=t.length;e<r;e++)Array.prototype.push.apply(n,t[e].toShapes());return n}}),Object.assign(Fi.prototype,{load:function(t,e,n,i){var r=this,a=new Un(this.manager);a.setPath(this.path),a.load(t,function(t){try{var n=JSON.parse(t)}catch(e){console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),n=JSON.parse(t.substring(65,t.length-2))}t=r.parse(n),e&&e(t)},n,i)},parse:function(t){return new Bi(t)},setPath:function(t){return this.path=t,this}});var ba,_a,wa,Ma={getContext:function(){return void 0===ba&&(ba=new(window.AudioContext||window.webkitAudioContext)),ba},setContext:function(t){ba=t}};Object.assign(zi.prototype,{load:function(t,e,n,i){var r=new Un(this.manager);r.setResponseType("arraybuffer"),r.load(t,function(t){t=t.slice(0),Ma.getContext().decodeAudioData(t,function(t){e(t)})},n,i)}}),Object.assign(Gi.prototype,{update:function(){var t,e,n,r,a,o,s,c,h=new i,l=new i;return function(i){if(t!==this||e!==i.focus||n!==i.fov||r!==i.aspect*this.aspect||a!==i.near||o!==i.far||s!==i.zoom||c!==this.eyeSep){t=this,e=i.focus,n=i.fov,r=i.aspect*this.aspect,a=i.near,o=i.far,s=i.zoom;var u=i.projectionMatrix.clone(),p=(c=this.eyeSep/2)*a/e,d=a*Math.tan(Or.DEG2RAD*n*.5)/s;l.elements[12]=-c,h.elements[12]=c;var f=-d*r+p,m=d*r+p;u.elements[0]=2*a/(m-f),u.elements[8]=(m+f)/(m-f),this.cameraL.projectionMatrix.copy(u),f=-d*r-p,m=d*r-p,u.elements[0]=2*a/(m-f),u.elements[8]=(m+f)/(m-f),this.cameraR.projectionMatrix.copy(u)}this.cameraL.matrixWorld.copy(i.matrixWorld).multiply(l),this.cameraR.matrixWorld.copy(i.matrixWorld).multiply(h)}}()}),Hi.prototype=Object.create(_.prototype),Hi.prototype.constructor=Hi,Vi.prototype=Object.assign(Object.create(_.prototype),{constructor:Vi,getInput:function(){return this.gain},removeFilter:function(){return null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this},getFilter:function(){return this.filter},setFilter:function(t){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this},updateMatrixWorld:function(){var t=new a,e=new r,n=new a,i=new a;return function(r){_.prototype.updateMatrixWorld.call(this,r),r=this.context.listener;var a=this.up;this.matrixWorld.decompose(t,e,n),i.set(0,0,-1).applyQuaternion(e),r.positionX?(r.positionX.setValueAtTime(t.x,this.context.currentTime),r.positionY.setValueAtTime(t.y,this.context.currentTime),r.positionZ.setValueAtTime(t.z,this.context.currentTime),r.forwardX.setValueAtTime(i.x,this.context.currentTime),r.forwardY.setValueAtTime(i.y,this.context.currentTime),r.forwardZ.setValueAtTime(i.z,this.context.currentTime),r.upX.setValueAtTime(a.x,this.context.currentTime),r.upY.setValueAtTime(a.y,this.context.currentTime),r.upZ.setValueAtTime(a.z,this.context.currentTime)):(r.setPosition(t.x,t.y,t.z),r.setOrientation(i.x,i.y,i.z,a.x,a.y,a.z))}}()}),ki.prototype=Object.assign(Object.create(_.prototype),{constructor:ki,getOutput:function(){return this.gain}
755,setNodeSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this},setMediaElementSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this},setBuffer:function(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(){if(!0===this.isPlaying)console.warn("THREE.Audio: Audio is already playing.");else{if(!1!==this.hasPlaybackControl){var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.onended=this.onEnded.bind(this),t.playbackRate.setValueAtTime(this.playbackRate,this.startTime),this.startTime=this.context.currentTime,t.start(this.startTime,this.offset),this.isPlaying=!0,this.source=t,this.connect()}console.warn("THREE.Audio: this Audio has no playback control.")}},pause:function(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this.source.stop(),this.source.onended=null,this.offset+=(this.context.currentTime-this.startTime)*this.playbackRate,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")},stop:function(){if(!1!==this.hasPlaybackControl)return this.source.stop(),this.source.onended=null,this.offset=0,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")},connect:function(){if(0<this.filters.length){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(0<this.filters.length){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(t){return t||(t=[]),!0===this.isPlaying?(this.disconnect(),this.filters=t,this.connect()):this.filters=t,this},getFilter:function(){return this.getFilters()[0]},setFilter:function(t){return this.setFilters(t?[t]:[])},setPlaybackRate:function(t){if(!1!==this.hasPlaybackControl)return this.playbackRate=t,!0===this.isPlaying&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.context.currentTime),this;console.warn("THREE.Audio: this Audio has no playback control.")},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop},setLoop:function(t){if(!1!==this.hasPlaybackControl)return this.loop=t,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")},getVolume:function(){return this.gain.gain.value},setVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}),ji.prototype=Object.assign(Object.create(ki.prototype),{constructor:ji,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(t){return this.panner.refDistance=t,this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(t){return this.panner.rolloffFactor=t,this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(t){return this.panner.distanceModel=t,this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(t){return this.panner.maxDistance=t,this},setDirectionalCone:function(t,e,n){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=n,this},updateMatrixWorld:function(){var t=new a,e=new r,n=new a,i=new a;return function(r){_.prototype.updateMatrixWorld.call(this,r),r=this.panner,this.matrixWorld.decompose(t,e,n),i.set(0,0,1).applyQuaternion(e),r.setPosition(t.x,t.y,t.z),r.setOrientation(i.x,i.y,i.z)}}()}),Object.assign(Wi.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var t=0,e=this.getFrequencyData(),n=0;n<e.length;n++)t+=e[n];return t/e.length}}),Object.assign(Xi.prototype,{accumulate:function(t,e){var n=this.buffer,i=this.valueSize;t=t*i+i;var r=this.cumulativeWeight;if(0===r){for(r=0;r!==i;++r)n[t+r]=n[r];r=e}else r+=e,this._mixBufferRegion(n,t,0,e/r,i);this.cumulativeWeight=r},apply:function(t){var e=this.valueSize,n=this.buffer;t=t*e+e;var i=this.cumulativeWeight,r=this.binding;this.cumulativeWeight=0,1>i&&this._mixBufferRegion(n,t,3*e,1-i,e),i=e;for(var a=e+e;i!==a;++i)if(n[i]!==n[i+e]){r.setValue(n,t);break}},saveOriginalState:function(){var t=this.buffer,e=this.valueSize,n=3*e;this.binding.getValue(t,n);for(var i=e;i!==n;++i)t[i]=t[n+i%e];this.cumulativeWeight=0},restoreOriginalState:function(){this.binding.setValue(this.buffer,3*this.valueSize)},_select:function(t,e,n,i,r){if(.5<=i)for(i=0;i!==r;++i)t[e+i]=t[n+i]},_slerp:function(t,e,n,i){r.slerpFlat(t,e,t,e,t,n,i)},_lerp:function(t,e,n,i,r){for(var a=1-i,o=0;o!==r;++o){var s=e+o;t[s]=t[s]*a+t[n+o]*i}}}),Object.assign(qi.prototype,{getValue:function(t,e){this.bind();var n=this._bindings[this._targetGroup.nCachedObjects_];void 0!==n&&n.getValue(t,e)},setValue:function(t,e){for(var n=this._bindings,i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(t,e)},bind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].bind()},unbind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].unbind()}}
755),Object.assign(Yi,{Composite:qi,create:function(t,e,n){return t&&t.isAnimationObjectGroup?new Yi.Composite(t,e,n):new Yi(t,e,n)},sanitizeNodeName:function(){var t=/[\[\]\.:\/]/g;return function(e){return e.replace(/\s/g,"_").replace(t,"")}}(),parseTrackName:function(){var t="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",e=/((?:WC+[\/:])*)/.source.replace("WC","[^\\[\\]\\.:\\/]");t=/(WCOD+)?/.source.replace("WCOD",t);var n=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC","[^\\[\\]\\.:\\/]"),i=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC","[^\\[\\]\\.:\\/]"),r=new RegExp("^"+e+t+n+i+"$"),a=["material","materials","bones"];return function(t){var e=r.exec(t);if(!e)throw Error("PropertyBinding: Cannot parse trackName: "+t);var n=(e={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]}).nodeName&&e.nodeName.lastIndexOf(".");if(void 0!==n&&-1!==n){var i=e.nodeName.substring(n+1);-1!==a.indexOf(i)&&(e.nodeName=e.nodeName.substring(0,n),e.objectName=i)}if(null===e.propertyName||0===e.propertyName.length)throw Error("PropertyBinding: can not parse propertyName from trackName: "+t);return e}}(),findNode:function(t,e){if(!e||""===e||"root"===e||"."===e||-1===e||e===t.name||e===t.uuid)return t;if(t.skeleton){var n=t.skeleton.getBoneByName(e);if(void 0!==n)return n}if(t.children){var i=function(t){for(var n=0;n<t.length;n++){var r=t[n];if(r.name===e||r.uuid===e||(r=i(r.children)))return r}return null};if(t=i(t.children))return t}return null}}),Object.assign(Yi.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(t,e){t[e]=this.node[this.propertyName]},function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)t[e++]=n[i]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.targetObject[this.propertyName]=t[e]},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=t[e++]},function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,n=e.objectName,i=e.propertyName,r=e.propertyIndex;if(t||(this.node=t=Yi.findNode(this.rootNode,e.nodeName)||this.rootNode),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(n){var a=e.objectIndex;switch(n){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);for(t=t.skeleton.bones,n=0;n<t.length;n++)if(t[n].name===a){a=n;break}break;default:if(void 0===t[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);t=t[n]}if(void 0!==a){if(void 0===t[a])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);t=t[a]}}if(void 0===(a=t[i]))console.error("THREE.PropertyBinding: Trying to update property for track: "+e.nodeName+"."+i+" but it wasn't found.",t);else{if(e=this.Versioning.None,void 0!==t.needsUpdate?(e=this.Versioning.NeedsUpdate,this.targetObject=t):void 0!==t.matrixWorldNeedsUpdate&&(e=this.Versioning.MatrixWorldNeedsUpdate,this.targetObject=t),n=this.BindingType.Direct,void 0!==r){if("morphTargetInfluences"===i){if(!t.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(t.geometry.isBufferGeometry){if(!t.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);for(n=0;n<this.node.geometry.morphAttributes.position.length;n++)if(t.geometry.morphAttributes.position[n].name===r){r=n;break}}else{if(!t.geometry.morphTargets)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.",this);for(n=0;n<this.node.geometry.morphTargets.length;n++)if(t.geometry.morphTargets[n].name===r){r=n;break}}}n=this.BindingType.ArrayElement,this.resolvedProperty=a,this.propertyIndex=r}else void 0!==a.fromArray&&void 0!==a.toArray?(n=this.BindingType.HasFromToArray,this.resolvedProperty=a):Array.isArray(a)?(n=this.BindingType.EntireArray,this.resolvedProperty=a):this.propertyName=i;this.getValue=this.GetterByBindingType[n],this.setValue=this.SetterByBindingTypeAndVersioning[n][e]}}else console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.")},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(Yi.prototype,{_getValue_unbound:Yi.prototype.getValue,_setValue_unbound:Yi.prototype.setValue}),Object.assign(Ji.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,n=this.nCachedObjects_,i=this._indicesByUUID,r=this._paths,a=this._parsedPaths,o=this._bindings,s=o.length,c=void 0,h=0,l=arguments.length;h!==l;++h){var u=arguments[h],p=u.uuid,d=i[p];if(void 0===d){d=e++,i[p]=d,t.push(u),p=0;for(var f=s;p!==f;++p)o[p].push(new Yi(u,r[p],a[p]))}else if(d<n){c=t[d];var m=--n;for(i[(f=t[m]).uuid]=d,t[d]=f,i[p]=m,t[m]=u,p=0,f=s;p!==f;
755++p){var g=o[p],v=g[d];g[d]=g[m],void 0===v&&(v=new Yi(u,r[p],a[p])),g[m]=v}}else t[d]!==c&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=n},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,n=this._indicesByUUID,i=this._bindings,r=i.length,a=0,o=arguments.length;a!==o;++a){var s=arguments[a],c=s.uuid,h=n[c];if(void 0!==h&&h>=e){var l=e++,u=t[l];for(n[u.uuid]=h,t[h]=u,n[c]=l,t[l]=s,s=0,c=r;s!==c;++s){var p=(u=i[s])[h];u[h]=u[l],u[l]=p}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,n=this.nCachedObjects_,i=this._indicesByUUID,r=this._bindings,a=r.length,o=0,s=arguments.length;o!==s;++o){var c=arguments[o].uuid,h=i[c];if(void 0!==h)if(delete i[c],h<n){var l=t[c=--n],u=--e,p=t[u];for(i[l.uuid]=h,t[h]=l,i[p.uuid]=c,t[c]=p,t.pop(),l=0,p=a;l!==p;++l){var d=r[l],f=d[u];d[h]=d[c],d[c]=f,d.pop()}}else for(i[(p=t[u=--e]).uuid]=h,t[h]=p,t.pop(),l=0,p=a;l!==p;++l)(d=r[l])[h]=d[u],d.pop()}this.nCachedObjects_=n},subscribe_:function(t,e){var n=this._bindingsIndicesByPath,i=n[t],r=this._bindings;if(void 0!==i)return r[i];var a=this._paths,o=this._parsedPaths,s=this._objects,c=this.nCachedObjects_,h=Array(s.length);for(i=r.length,n[t]=i,a.push(t),o.push(e),r.push(h),n=c,i=s.length;n!==i;++n)h[n]=new Yi(s[n],t,e);return h},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,n=e[t];if(void 0!==n){var i=this._paths,r=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o];e[t[o]]=n,a[n]=s,a.pop(),r[n]=r[o],r.pop(),i[n]=i[o],i.pop()}}}),Object.assign(Zi.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(t){return this._startTime=t,this},setLoop:function(t,e){return this.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(t){return this._scheduleFading(t,0,1)},fadeOut:function(t){return this._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,n){if(t.fadeOut(e),this.fadeIn(e),n){n=this._clip.duration;var i=t._clip.duration,r=n/i;t.warp(1,i/n,e),this.warp(r,1,e)}return this},crossFadeTo:function(t,e,n){return t.crossFadeFrom(this,e,n)},stopFading:function(){var t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(t){return this.timeScale=this._clip.duration/t,this.stopWarping()},syncWith:function(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()},halt:function(t){return this.warp(this._effectiveTimeScale,0,t)},warp:function(t,e,n){var i=this._mixer,r=i.time,a=this._timeScaleInterpolant,o=this.timeScale;return null===a&&(this._timeScaleInterpolant=a=i._lendControlInterpolant()),i=a.parameterPositions,a=a.sampleValues,i[0]=r,i[1]=r+n,a[0]=t/o,a[1]=e/o,this},stopWarping:function(){var t=this._timeScaleInterpolant;return null!==t&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(t,e,n,i){if(this.enabled){var r=this._startTime;if(null!==r){if(0>(e=(t-r)*n)||0===n)return;this._startTime=null,e*=n}if(e*=this._updateTimeScale(t),n=this._updateTime(e),0<(t=this._updateWeight(t))){e=this._interpolants,r=this._propertyBindings;for(var a=0,o=e.length;a!==o;++a)e[a].evaluate(n),r[a].accumulate(i,t)}}else this._updateWeight(t)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var n=this._weightInterpolant;if(null!==n){var i=n.evaluate(t)[0];e*=i,t>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n)e*=n.evaluate(t)[0],t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}return this._effectiveTimeScale=e},_updateTime:function(t){var e=this.time+t,n=this._clip.duration,i=this.loop,r=this._loopCount,a=2202===i;if(0===t)return-1===r?e:a&&1==(1&r)?n-e:e;if(2200===i)t:{if(-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1)),e>=n)e=n;else{if(!(0>e))break t;e=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:0>t?-1:1})}else{if(-1===r&&(0<=t?(r=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),e>=n||0>e){e-=n*(i=Math.floor(e/n)),r+=Math.abs(i);var o=this.repetitions-r;0>=o?(this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=0<t?n:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:0<t?1:-1})):(1===o?(t=0>t,this._setEndings(t,!t,a)):this._setEndings(!1,!1,a),this._loopCount=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:i}))}if(a&&1==(1&r))return this.time=e,n-e}return this.time=e},_setEndings:function(t,e,n){var i=this._interpolantSettings;n?(i.endingStart=2401,i.endingEnd=2401):(i.endingStart=t?this.zeroSlopeAtStart?2401:2400:2402,i.endingEnd=e?this.zeroSlopeAtEnd?2401:2400:2402)},_scheduleFading:function(t,e,n){var i=this._mixer,r=i.time,a=this._weightInterpolant;return null===a&&(this._weightInterpolant=a=i._lendControlInterpolant()),i=a.parameterPositions,a=a.sampleValues,i[0]=r,a[0]=e,i[1]=r+t,a[1]=n,this}}),Qi.prototype=Object.assign(Object.create(e.prototype),{constructor:Qi,_bindAction:function(t,e){var n=t._localRoot||this._root,i=t._clip.tracks,r=i.length,a=t._propertyBindings;t=t._interpolants;var o=n.uuid,s=this._bindingsByRootAndName,c=s[o];for(void 0===c&&(c={},s[o]=c),s=0;s!==r;++s){var h=i[s],l=h.name,u=c[l];if(void 0===u){if(void 0!==(u=a[s])){null===u._cacheIndex&&(++u.referenceCount,this._addInactiveBinding(u,o,l));continue}++(u=new Xi(Yi.create(n,l,e&&e._propertyBindings[s].binding.parsedPath),h.ValueTypeName,h.getValueSize())).referenceCount,this._addInactiveBinding(u,o,l)}a[s]=u,t[s].resultBuffer=u.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){var e=(t._localRoot||this._root).uuid,n=t._clip.uuid,i=this._actionsByClip[n];this._bindAction(t,i&&i.knownActions[0]),this._addInactiveAction(t,n,e)}for(n=0,i=(e=t._propertyBindings).length;n!==i;++n){var r=e[n];0==r.useCount++&&(this._lendBinding(r),r.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,n=0,i=e.length;n!==i;++n){var r=e[n];0==--r.useCount&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){return null!==(t=t._cacheIndex)&&t<this._nActiveActions},_addInactiveAction:function(t,e,n){var i=this._actions,r=this._actionsByClip,a=r[e];void 0===a?(a={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,r[e]=a):(e=a.knownActions,t._byClipCacheIndex=e.length,e.push(t)),t._cacheIndex=i.length,i.push(t),a.actionByRoot[n]=t},_removeInactiveAction:function(t){var e=this._actions,n=e[e.length-1],i=t._cacheIndex;n._cacheIndex=i,e[i]=n,e.pop(),t._cacheIndex=null,e=t._clip.uuid;var r=(i=(n=this._actionsByClip)[e]).knownActions,a=r[r.length-1],o=t._byClipCacheIndex;a._byClipCacheIndex=o,r[o]=a,r.pop(),t._byClipCacheIndex=null,delete i.actionByRoot[(t._localRoot||this._root).uuid],0===r.length&&delete n[e],this._removeInactiveBindingsForAction(t)},_removeInactiveBindingsForAction:function(t){for(var e=0,n=(t=t._propertyBindings).length;e!==n;++e){var i=t[e];0==--i.referenceCount&&this._removeInactiveBinding(i)}},_lendAction:function(t){var e=this._actions,n=t._cacheIndex,i=this._nActiveActions++,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r},_takeBackAction:function(t){var e=this._actions,n=t._cacheIndex,i=--this._nActiveActions,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r},_addInactiveBinding:function(t,e,n){var i=this._bindingsByRootAndName,r=i[e],a=this._bindings;void 0===r&&(r={},i[e]=r),r[n]=t,t._cacheIndex=a.length,a.push(t)},_removeInactiveBinding:function(t){var e=this._bindings,n=t.binding,i=n.rootNode.uuid;n=n.path;var r=this._bindingsByRootAndName,a=r[i],o=e[e.length-1];t=t._cacheIndex,o._cacheIndex=t,e[t]=o,e.pop(),delete a[n];t:{for(var s in a)break t;delete r[i]}},_lendBinding:function(t){var e=this._bindings,n=t._cacheIndex,i=this._nActiveBindings++,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r},_takeBackBinding:function(t){var e=this._bindings,n=t._cacheIndex,i=--this._nActiveBindings,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r},_lendControlInterpolant:function(){var t=this._controlInterpolants,e=this._nActiveControlInterpolants++,n=t[e];return void 0===n&&((n=new yi(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer)).__cacheIndex=e,t[e]=n),n},_takeBackControlInterpolant:function(t){var e=this._controlInterpolants,n=t.__cacheIndex,i=--this._nActiveControlInterpolants,r=e[i];t.__cacheIndex=i,e[i]=t,r.__cacheIndex=n,e[n]=r},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(t,e){var n=e||this._root,i=n.uuid;
755t=null!==(n="string"==typeof t?Li.findByName(n,t):t)?n.uuid:t;var r=this._actionsByClip[t],a=null;if(void 0!==r){if(void 0!==(a=r.actionByRoot[i]))return a;a=r.knownActions[0],null===n&&(n=a._clip)}return null===n?null:(e=new Zi(this,n,e),this._bindAction(e,a),this._addInactiveAction(e,t,i),e)},existingAction:function(t,e){var n=e||this._root;return e=n.uuid,n="string"==typeof t?Li.findByName(n,t):t,void 0!==(t=this._actionsByClip[n?n.uuid:t])&&t.actionByRoot[e]||null},stopAllAction:function(){for(var t=this._actions,e=this._nActiveActions,n=this._bindings,i=this._nActiveBindings,r=this._nActiveBindings=this._nActiveActions=0;r!==e;++r)t[r].reset();for(r=0;r!==i;++r)n[r].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,n=this._nActiveActions,i=this.time+=t,r=Math.sign(t),a=this._accuIndex^=1,o=0;o!==n;++o)e[o]._update(i,t,r,a);for(t=this._bindings,e=this._nActiveBindings,o=0;o!==e;++o)t[o].apply(a);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions;t=t.uuid;var n=this._actionsByClip,i=n[t];if(void 0!==i){for(var r=0,a=(i=i.knownActions).length;r!==a;++r){var o=i[r];this._deactivateAction(o);var s=o._cacheIndex,c=e[e.length-1];o._cacheIndex=null,o._byClipCacheIndex=null,c._cacheIndex=s,e[s]=c,e.pop(),this._removeInactiveBindingsForAction(o)}delete n[t]}},uncacheRoot:function(t){t=t.uuid;var e=this._actionsByClip;for(i in e){var n=e[i].actionByRoot[t];void 0!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}var i=this._bindingsByRootAndName[t];if(void 0!==i)for(var r in i)(t=i[r]).restoreOriginalState(),this._removeInactiveBinding(t)},uncacheAction:function(t,e){null!==(t=this.existingAction(t,e))&&(this._deactivateAction(t),this._removeInactiveAction(t))}}),Ki.prototype.clone=function(){return new Ki(void 0===this.value.clone?this.value:this.value.clone())},$i.prototype=Object.assign(Object.create(F.prototype),{constructor:$i,isInstancedBufferGeometry:!0,copy:function(t){return F.prototype.copy.call(this,t),this.maxInstancedCount=t.maxInstancedCount,this},clone:function(){return(new this.constructor).copy(this)}}),tr.prototype=Object.assign(Object.create(re.prototype),{constructor:tr,isInstancedInterleavedBuffer:!0,copy:function(t){return re.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),er.prototype=Object.assign(Object.create(S.prototype),{constructor:er,isInstancedBufferAttribute:!0,copy:function(t){return S.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Object.assign(nr.prototype,{linePrecision:1,set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize()):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld)):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(t,e,n){return rr(t,this,n=n||[],e),n.sort(ir),n},intersectObjects:function(t,e,n){if(n=n||[],!1===Array.isArray(t))return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),n;for(var i=0,r=t.length;i<r;i++)rr(t[i],this,n,e);return n.sort(ir),n}}),Object.assign(ar.prototype,{start:function(){this.oldTime=this.startTime=("undefined"==typeof performance?Date:performance).now(),this.elapsedTime=0,this.running=!0},stop:function(){this.getElapsedTime(),this.autoStart=this.running=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var e=("undefined"==typeof performance?Date:performance).now();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}),Object.assign(or.prototype,{set:function(t,e,n){return this.radius=t,this.phi=e,this.theta=n,this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(t){return this.radius=t.length(),0===this.radius?this.phi=this.theta=0:(this.theta=Math.atan2(t.x,t.z),this.phi=Math.acos(Or.clamp(t.y/this.radius,-1,1))),this}}),Object.assign(sr.prototype,{set:function(t,e,n){return this.radius=t,this.theta=e,this.y=n,this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this},setFromVector3:function(t){return this.radius=Math.sqrt(t.x*t.x+t.z*t.z),this.theta=Math.atan2(t.x,t.z),this.y=t.y,this}}),Object.assign(cr.prototype,{set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new n;return function(e,n){return n=t.copy(n).multiplyScalar(.5),this.min.copy(e).sub(n),this.max.copy(e).add(n),this}}(),clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(t){return void 0===t&&(console.warn("THREE.Box2: .getCenter() target is now required"),t=new n),this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return void 0===t&&(console.warn("THREE.Box2: .getSize() target is now required"),t=new n),this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return void 0===e&&(console.warn("THREE.Box2: .getParameter() target is now required"),e=new n),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)},clampPoint:function(t,e){return void 0===e&&(console.warn("THREE.Box2: .clampPoint() target is now required"),e=new n),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new n;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(hr.prototype,{set:function(t,e){return this.start.copy(t),this.end.copy(e),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.start.copy(t.start),this.end.copy(t.end),this},getCenter:function(t){return void 0===t&&(console.warn("THREE.Line3: .getCenter() target is now required"),t=new a),t.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(t){return void 0===t&&(console.warn("THREE.Line3: .delta() target is now required"),t=new a),t.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(t,e){return void 0===e&&(console.warn("THREE.Line3: .at(
755) target is now required"),e=new a),this.delta(e).multiplyScalar(t).add(this.start)},closestPointToPointParameter:function(){var t=new a,e=new a;return function(n,i){return t.subVectors(n,this.start),e.subVectors(this.end,this.start),n=e.dot(e),n=e.dot(t)/n,i&&(n=Or.clamp(n,0,1)),n}}(),closestPointToPoint:function(t,e,n){return t=this.closestPointToPointParameter(t,e),void 0===n&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),n=new a),this.delta(n).multiplyScalar(t).add(this.start)},applyMatrix4:function(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this},equals:function(t){return t.start.equals(this.start)&&t.end.equals(this.end)}}),lr.prototype=Object.create(_.prototype),lr.prototype.constructor=lr,lr.prototype.isImmediateRenderObject=!0,ur.prototype=Object.create(fe.prototype),ur.prototype.constructor=ur,ur.prototype.update=function(){var t=new a,e=new a,n=new o;return function(){var i=["a","b","c"];this.object.updateMatrixWorld(!0),n.getNormalMatrix(this.object.matrixWorld);var r=this.object.matrixWorld,a=this.geometry.attributes.position,o=this.object.geometry;if(o&&o.isGeometry)for(var s=o.vertices,c=o.faces,h=o=0,l=c.length;h<l;h++)for(var u=c[h],p=0,d=u.vertexNormals.length;p<d;p++){var f=u.vertexNormals[p];t.copy(s[u[i[p]]]).applyMatrix4(r),e.copy(f).applyMatrix3(n).normalize().multiplyScalar(this.size).add(t),a.setXYZ(o,t.x,t.y,t.z),o+=1,a.setXYZ(o,e.x,e.y,e.z),o+=1}else if(o&&o.isBufferGeometry)for(i=o.attributes.position,s=o.attributes.normal,p=o=0,d=i.count;p<d;p++)t.set(i.getX(p),i.getY(p),i.getZ(p)).applyMatrix4(r),e.set(s.getX(p),s.getY(p),s.getZ(p)),e.applyMatrix3(n).normalize().multiplyScalar(this.size).add(t),a.setXYZ(o,t.x,t.y,t.z),o+=1,a.setXYZ(o,e.x,e.y,e.z),o+=1;a.needsUpdate=!0}}(),pr.prototype=Object.create(_.prototype),pr.prototype.constructor=pr,pr.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},pr.prototype.update=function(){var t=new a,e=new a;return function(){this.light.updateMatrixWorld();var n=this.light.distance?this.light.distance:1e3,i=n*Math.tan(this.light.angle);this.cone.scale.set(i,i,n),t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(e.sub(t)),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}(),dr.prototype=Object.create(fe.prototype),dr.prototype.constructor=dr,dr.prototype.updateMatrixWorld=function(){var t=new a,e=new i,n=new i;return function(i){var r=this.bones,a=this.geometry,o=a.getAttribute("position");n.getInverse(this.root.matrixWorld);for(var s=0,c=0;s<r.length;s++){var h=r[s];h.parent&&h.parent.isBone&&(e.multiplyMatrices(n,h.matrixWorld),t.setFromMatrixPosition(e),o.setXYZ(c,t.x,t.y,t.z),e.multiplyMatrices(n,h.parent.matrixWorld),t.setFromMatrixPosition(e),o.setXYZ(c+1,t.x,t.y,t.z),c+=2)}a.getAttribute("position").needsUpdate=!0,_.prototype.updateMatrixWorld.call(this,i)}}(),fr.prototype=Object.create(Y.prototype),fr.prototype.constructor=fr,fr.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},fr.prototype.update=function(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)},mr.prototype=Object.create(_.prototype),mr.prototype.constructor=mr,mr.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},mr.prototype.update=function(){var t=.5*this.light.width,e=.5*this.light.height,n=this.line.geometry.attributes.position,i=n.array;i[0]=t,i[1]=-e,i[2]=0,i[3]=t,i[4]=e,i[5]=0,i[6]=-t,i[7]=e,i[8]=0,i[9]=-t,i[10]=-e,i[11]=0,i[12]=t,i[13]=-e,i[14]=0,n.needsUpdate=!0,void 0!==this.color?this.line.material.color.set(this.color):this.line.material.color.copy(this.light.color)},gr.prototype=Object.create(_.prototype),gr.prototype.constructor=gr,gr.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},gr.prototype.update=function(){var t=new a,e=new g,n=new g;return function(){var i=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{var r=i.geometry.getAttribute("color");e.copy(this.light.color),n.copy(this.light.groundColor);for(var a=0,o=r.count;a<o;a++){var s=a<o/2?e:n;r.setXYZ(a,s.r,s.g,s.b)}r.needsUpdate=!0}i.lookAt(t.setFromMatrixPosition(this.light.matrixWorld).negate())}}(),vr.prototype=Object.create(fe.prototype),vr.prototype.constructor=vr,yr.prototype=Object.create(fe.prototype),yr.prototype.constructor=yr,xr.prototype=Object.create(fe.prototype),xr.prototype.constructor=xr,xr.prototype.update=function(){var t=new a,e=new a,n=new o;return function(){this.object.updateMatrixWorld(!0),n.getNormalMatrix(this.object.matrixWorld);for(var i=this.object.matrixWorld,r=this.geometry.attributes.position,a=this.object.geometry,o=a.vertices,s=0,c=0,h=(a=a.faces).length;c<h;c++){var l=a[c],u=l.normal;t.copy(o[l.a]).add(o[l.b]).add(o[l.c]).divideScalar(3).applyMatrix4(i),e.copy(u).applyMatrix3(n).normalize().multiplyScalar(this.size).add(t),r.setXYZ(s,t.x,t.y,t.z),s+=1,r.setXYZ(s,e.x,e.y,e.z),s+=1}r.needsUpdate=!0}}(),br.prototype=Object.create(_.prototype),br.prototype.constructor=br,br.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},br.prototype.update=function(){var t=new a,e=new a,n=new a;return function(){t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),n.subVectors(e,t),this.lightPlane.lookAt(n),void 0!==this.color?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(n),this.targetLine.scale.z
vendor: 4,532 bytes, line 755
755=n.length()}}(),_r.prototype=Object.create(fe.prototype),_r.prototype.constructor=_r,_r.prototype.update=function(){function t(t,a,o,s){if(i.set(a,o,s).unproject(r),void 0!==(t=n[t]))for(a=e.getAttribute("position"),o=0,s=t.length;o<s;o++)a.setXYZ(t[o],i.x,i.y,i.z)}var e,n,i=new a,r=new w;return function(){e=this.geometry,n=this.pointMap,r.projectionMatrix.copy(this.camera.projectionMatrix),t("c",0,0,-1),t("t",0,0,1),t("n1",-1,-1,-1),t("n2",1,-1,-1),t("n3",-1,1,-1),t("n4",1,1,-1),t("f1",-1,-1,1),t("f2",1,-1,1),t("f3",-1,1,1),t("f4",1,1,1),t("u1",.7,1.1,-1),t("u2",-.7,1.1,-1),t("u3",0,2,-1),t("cf1",-1,0,1),t("cf2",1,0,1),t("cf3",0,-1,1),t("cf4",0,1,1),t("cn1",-1,0,-1),t("cn2",1,0,-1),t("cn3",0,-1,-1),t("cn4",0,1,-1),e.getAttribute("position").needsUpdate=!0}}(),wr.prototype=Object.create(fe.prototype),wr.prototype.constructor=wr,wr.prototype.update=function(){var t=new p;return function(e){if(void 0!==e&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),void 0!==this.object&&t.setFromObject(this.object),!t.isEmpty()){e=t.min;var n=t.max,i=this.geometry.attributes.position,r=i.array;r[0]=n.x,r[1]=n.y,r[2]=n.z,r[3]=e.x,r[4]=n.y,r[5]=n.z,r[6]=e.x,r[7]=e.y,r[8]=n.z,r[9]=n.x,r[10]=e.y,r[11]=n.z,r[12]=n.x,r[13]=n.y,r[14]=e.z,r[15]=e.x,r[16]=n.y,r[17]=e.z,r[18]=e.x,r[19]=e.y,r[20]=e.z,r[21]=n.x,r[22]=e.y,r[23]=e.z,i.needsUpdate=!0,this.geometry.computeBoundingSphere()}}}(),wr.prototype.setFromObject=function(t){return this.object=t,this.update(),this},Mr.prototype=Object.create(fe.prototype),Mr.prototype.constructor=Mr,Mr.prototype.updateMatrixWorld=function(t){var e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),_.prototype.updateMatrixWorld.call(this,t))},Er.prototype=Object.create(de.prototype),Er.prototype.constructor=Er,Er.prototype.updateMatrixWorld=function(t){var e=-this.plane.constant;1e-8>Math.abs(e)&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=0>e?1:0,this.lookAt(this.plane.normal),_.prototype.updateMatrixWorld.call(this,t)},Tr.prototype=Object.create(_.prototype),Tr.prototype.constructor=Tr,Tr.prototype.setDirection=function(){var t,e=new a;return function(n){.99999<n.y?this.quaternion.set(0,0,0,1):-.99999>n.y?this.quaternion.set(1,0,0,0):(e.set(n.z,0,-n.x).normalize(),t=Math.acos(n.y),this.quaternion.setFromAxisAngle(e,t))}}(),Tr.prototype.setLength=function(t,e,n){void 0===e&&(e=.2*t),void 0===n&&(n=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(n,e,n),this.cone.position.y=t,this.cone.updateMatrix()},Tr.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},Sr.prototype=Object.create(fe.prototype),Sr.prototype.constructor=Sr,Vn.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Vn.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Object.assign(ii.prototype,{createPointsGeometry:function(t){return console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."),t=this.getPoints(t),this.createGeometry(t)},createSpacedPointsGeometry:function(t){return console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."),t=this.getSpacedPoints(t),this.createGeometry(t)},createGeometry:function(t){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var e=new T,n=0,i=t.length;n<i;n++){var r=t[n];e.vertices.push(new a(r.x,r.y,r.z||0))}return e}}),Object.assign(ri.prototype,{fromPoints:function(t){console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)}}),Ar.prototype=Object.create(Xn.prototype),Lr.prototype=Object.create(Xn.prototype),Rr.prototype=Object.create(Xn.prototype),Object.assign(Rr.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}}),vr.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},dr.prototype.update=function(){console.error("THREE.SkeletonHelper: update(
755) no longer needs to be called.")},Object.assign(Oi.prototype,{extractUrlBase:function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),ga.extractUrlBase(t)}}),Object.assign(cr.prototype,{center:function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},size:function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)}}),Object.assign(p.prototype,{center:function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionSphere:function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},size:function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)}}),hr.prototype.center=function(t){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(t)},Object.assign(Or,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(t){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),Or.floorPowerOfTwo(t)},nextPowerOfTwo:function(t){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),Or.ceilPowerOfTwo(t)}}),Object.assign(o.prototype,{flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},multiplyVector3:function(t){return console.warn("THREE.Matrix3: .multiplyVector3(
755) has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBuffer:function(t){return console.warn("THREE.Matrix3: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(i.prototype,{extractPosition:function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},getPosition:function(){var t;return function(){return void 0===t&&(t=new a),console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),t.setFromMatrixColumn(this,3)}}(),setRotationFromQuaternion:function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(t){return console.warn("THREE.Matrix4: .multiplyVector3(
755) has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector4:function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},crossVector:function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBuffer:function(t){return console.warn("THREE.Matrix4: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(t,e,n,i,r,a){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,i,n,r,a)}}),f.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},r.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3(
755) has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},Object.assign(X.prototype,{isIntersectionBox:function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionPlane:function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},isIntersectionSphere:function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)}}),Object.assign(q.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},midpoint:function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},normal:function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},plane:function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)}}),Object.assign(q,{barycoordFromPoint:function(t,e,n,i,r){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),q.getBarycoord(t,e,n,i,r)},normal:function(t,e,n,i){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),q.getNormal(t,e,n,i)}}),Object.assign(ai.prototype,{extractAllPoints:function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},extrude:function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new an(this,t)},makeGeometry:function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new gn(this,t)}}),Object.assign(n.prototype,{fromAttribute:function(t,e,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},distanceToManhattan:function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(a.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},getPositionFromMatrix:function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},getScaleFromMatrix:function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},getColumnFromMatrix:function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},applyProjection:function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},fromAttribute:function(t,e,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},distanceToManhattan:function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(c.prototype,{fromAttribute:function(t,e,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(T.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")}}),Object.assign(_.prototype,{getChildByName:function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")}}),Object.defineProperties(_.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library n
755ow uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.defineProperties(ce.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(he.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),Object.defineProperty(Vn.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(t){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=t}}),Zt.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==e&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(oi.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(S.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")}}),Object.assign(F.prototype,{addIndex:function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},addDrawCall:function(t,e,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")}}),Object.defineProperties(F.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.assign(on.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}}),Object.defineProperties(Ki.prototype,{dynamic:{set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this}}}),Object.defineProperties(k.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")}
vendor: 8,745 bytes, line 755
755,set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new g}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===t}}}),Object.defineProperties(Cn.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}}),Object.defineProperties(W.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Object.assign(te.prototype,{animate:function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},getCurrentRenderTarget:function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},getMaxAnisotropy:function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},getPrecision:function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},resetGLState:function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},supportsFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},supportsInstancedArrays:function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")}}),Object.defineProperties(te.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(qt.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(h.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),Object.defineProperties(Kt.prototype,{standing:{set:function(){console.warn("THREE.WebVRManager: .standing has been removed.")}}}),ki.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var e=this;return(new zi).load(t,function(t){e.setBuffer(t)}),this},Wi.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},Hi.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update(
755)."),this.update(t,e)},Ir.crossOrigin=void 0,Ir.loadTexture=function(t,e,n,i){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var r=new Hn;return r.setCrossOrigin(this.crossOrigin),t=r.load(t,n,void 0,i),e&&(t.mapping=e),t},Ir.loadTextureCube=function(t,e,n,i){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var r=new Gn;return r.setCrossOrigin(this.crossOrigin),t=r.load(t,n,void 0,i),e&&(t.mapping=e),t},Ir.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},Ir.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")},t.WebGLRenderTargetCube=l,t.WebGLRenderTarget=h,t.WebGLRenderer=te,t.ShaderLib=zr,t.UniformsLib=Fr,t.UniformsUtils=Ur,t.ShaderChunk=Dr,t.FogExp2=ee,t.Fog=ne,t.Scene=ie,t.Sprite=se,t.LOD=ce,t.SkinnedMesh=ue,t.Skeleton=he,t.Bone=le,t.Mesh=Y,t.LineSegments=fe,t.LineLoop=me,t.Line=de,t.Points=ve,t.Group=Jt,t.VideoTexture=ye,t.DataTexture=u,t.CompressedTexture=xe,t.CubeTexture=$,t.CanvasTexture=be,t.DepthTexture=_e,t.Texture=s,t.CompressedTextureLoader=Bn,t.DataTextureLoader=Fn,t.CubeTextureLoader=Gn,t.TextureLoader=Hn,t.ObjectLoader=Ni,t.MaterialLoader=Ci,t.BufferGeometryLoader=Pi,t.DefaultLoadingManager=sa,t.LoadingManager=Dn,t.JSONLoader=Ii,t.ImageLoader=zn,t.ImageBitmapLoader=Di,t.FontLoader=Fi,t.FileLoader=Un,t.Loader=Oi,t.LoaderUtils=ga,t.Cache=oa,t.AudioLoader=zi,t.SpotLightShadow=hi,t.SpotLight=li,t.PointLight=ui,t.RectAreaLight=mi,t.HemisphereLight=si,t.DirectionalLightShadow=pi,t.DirectionalLight=di,t.AmbientLight=fi,t.LightShadow=ci,t.Light=oi,t.StereoCamera=Gi,t.PerspectiveCamera=Zt,t.OrthographicCamera=M,t.CubeCamera=Hi,t.ArrayCamera=Qt,t.Camera=w,t.AudioListener=Vi,t.PositionalAudio=ji,t.AudioContext=Ma,t.AudioAnalyser=Wi,t.Audio=ki,t.VectorKeyframeTrack=Ai,t.StringKeyframeTrack=Si,t.QuaternionKeyframeTrack=Ti,t.NumberKeyframeTrack=Mi,t.ColorKeyframeTrack=wi,t.BooleanKeyframeTrack=_i,t.PropertyMixer=Xi,t.PropertyBinding=Yi,t.KeyframeTrack=bi,t.AnimationUtils=fa,t.AnimationObjectGroup=Ji,t.AnimationMixer=Qi,t.AnimationClip=Li,t.Uniform=Ki,t.InstancedBufferGeometry=$i,t.BufferGeometry=F,t.Geometry=T,t.InterleavedBufferAttribute=ae,t.InstancedInterleavedBuffer=tr,t.InterleavedBuffer=re,t.InstancedBufferAttribute=er,t.Face3=E,t.Object3D=_,t.Raycaster=nr,t.Layers=b,t.EventDispatcher=e,t.Clock=ar,t.QuaternionLinearInterpolant=Ei,t.LinearInterpolant=yi,t.DiscreteInterpolant=xi,t.CubicInterpolant=vi,t.Interpolant=gi,t.Triangle=q,t.Math=Or,t.Spherical=or,t.Cylindrical=sr,t.Plane=f,t.Frustum=m,t.Sphere=d,t.Ray=X,t.Matrix4=i,t.Matrix3=o,t.Box3=p,t.Box2=cr,t.Line3=hr,t.Euler=x,t.Vector4=c,t.Vector3=a,t.Vector2=n,t.Quaternion=r,t.Color=g,t.ImmediateRenderObject=lr,t.VertexNormalsHelper=ur,t.SpotLightHelper=pr,t.SkeletonHelper=dr,t.PointLightHelper=fr,t.RectAreaLightHelper=mr,t.HemisphereLightHelper=gr,t.GridHelper=vr,t.PolarGridHelper=yr,t.FaceNormalsHelper=xr,t.DirectionalLightHelper=br,t.CameraHelper=_r,t.BoxHelper=wr,t.Box3Helper=Mr,t.PlaneHelper=Er,t.ArrowHelper=Tr,t.AxesHelper=Sr,t.Shape=ai,t.Path=ri,t.ShapePath=Ui,t.Font=Bi,t.CurvePath=ii,t.Curve=Vn,t.ImageUtils=Ir,t.ShapeUtils=na,t.WebGLUtils=Yt,t.WireframeGeometry=we,t.ParametricGeometry=Me,t.ParametricBufferGeometry=Ee,t.TetrahedronGeometry=Ae,t.TetrahedronBufferGeometry=Le,t.OctahedronGeometry=Re,t.OctahedronBufferGeometry=Ce,t.IcosahedronGeometry=Pe,t.IcosahedronBufferGeometry=Oe,t.DodecahedronGeometry=Ie,t.DodecahedronBufferGeometry=Ne,t.PolyhedronGeometry=Te,t.PolyhedronBufferGeometry=Se,t.TubeGeometry=De,t.TubeBufferGeometry=Ue,t.TorusKnotGeometry=Be,t.TorusKnotBufferGeometry=Fe,t.TorusGeometry=ze,t.TorusBufferGeometry=Ge,t.TextGeometry=cn,t.TextBufferGeometry=hn,t.SphereGeometry=ln,t.SphereBufferGeometry=un,t.RingGeometry=pn,t.RingBufferGeometry=dn,t.PlaneGeometry=H,t.PlaneBufferGeometry=V,t.LatheGeometry=fn,t.LatheBufferGeometry=mn,t.ShapeGeometry=gn,t.ShapeBufferGeometry=vn,t.ExtrudeGeometry=an,t.ExtrudeBufferGeometry=on,t.EdgesGeometry=xn,t.ConeGeometry=wn,t.ConeBufferGeometry=Mn,t.CylinderGeometry=bn,t.CylinderBufferGeometry=_n,t.CircleGeometry=En,t.CircleBufferGeometry=Tn,t.BoxGeometry=z,t.BoxBufferGeometry=G,t.ShadowMaterial=Sn,t.SpriteMaterial=oe,t.RawShaderMaterial=An,t.ShaderMaterial=W,t.PointsMaterial=ge,t.MeshPhysicalMaterial=Rn,t.MeshStandardMaterial=Ln,t.MeshPhongMaterial=Cn,t.MeshToonMaterial=Pn,t.MeshNormalMaterial=On,t.MeshLambertMaterial=In,t.MeshDepthMaterial=Wt,t.MeshDistanceMaterial=Xt,t.MeshBasicMaterial=j,t.LineDashedMaterial=Nn,t.LineBasicMaterial=pe,t.Material=k,t.Float64BufferAttribute=D,t.Float32BufferAttribute=N,t.Uint32BufferAttribute=I,t.Int32BufferAttribute=O,t.Uint16BufferAttribute=P,t.Int16BufferAttribute=C,t.Uint8ClampedBufferAttribute=R,t.Uint8BufferAttribute=L,t.Int8BufferAttribute=A,t.BufferAttribute=S,t.ArcCurve=jn,t.CatmullRomCurve3=Xn,t.CubicBezierCurve=Zn,t.CubicBezierCurve3=Qn,t.EllipseCurve=kn,t.LineCurve=Kn,t.LineCurve3=$n,t.QuadraticBezierCurve=ti,t.QuadraticBezierCurve3=ei,t.SplineCurve=ni,t.REVISION="95",t.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2},t.CullFaceNone=0,t.CullFaceBack=1,t.CullFaceFront=2,t.CullFaceFrontBack=3,t.FrontFaceDirectionCW=0,t.FrontFaceDirectionCCW=1,t.BasicShadowMap=0,t.PCFShadowMap=1,t.PCFSoftShadowMap=2,t.FrontSide=0,t.BackSide=1,t.DoubleSide=2,t.FlatShading=1,t.SmoothShading=2,t.NoColors=0,t.FaceColors=1,t.VertexColors=2,t.NoBlending=0,t.NormalBlending=1,t.AdditiveBlending=2,t.SubtractiveBlending=3,t.MultiplyBlending=4,t.CustomBlending=5,t.AddEquation=100,t.SubtractEquation=101,t.ReverseSubtractEquation=102,t.MinEquation=103,t.MaxEquation=104,t.ZeroFactor=200,t.OneFactor=201,t.SrcColorFactor=202,t.OneMinusSrcColorFactor=203,t.SrcAlphaFactor=204,t.OneMinusSrcAlphaFactor=205,t.DstAlphaFactor=206,t.OneMinusDstAlphaFactor=207,t.DstColorFactor=208,t.OneMinusDstColorFactor=209,t.SrcAlphaSaturateFactor=210,t.NeverDepth=0,t.AlwaysDepth=1,t.LessDepth=2,t.LessEqualDepth=3,t.EqualDepth=4,t.GreaterEqualDepth=5,t.GreaterDepth=6,t.NotEqualDepth=
7557,t.MultiplyOperation=0,t.MixOperation=1,t.AddOperation=2,t.NoToneMapping=0,t.LinearToneMapping=1,t.ReinhardToneMapping=2,t.Uncharted2ToneMapping=3,t.CineonToneMapping=4,t.UVMapping=300,t.CubeReflectionMapping=301,t.CubeRefractionMapping=302,t.EquirectangularReflectionMapping=303,t.EquirectangularRefractionMapping=304,t.SphericalReflectionMapping=305,t.CubeUVReflectionMapping=306,t.CubeUVRefractionMapping=307,t.RepeatWrapping=1e3,t.ClampToEdgeWrapping=1001,t.MirroredRepeatWrapping=1002,t.NearestFilter=1003,t.NearestMipMapNearestFilter=1004,t.NearestMipMapLinearFilter=1005,t.LinearFilter=1006,t.LinearMipMapNearestFilter=1007,t.LinearMipMapLinearFilter=1008,t.UnsignedByteType=1009,t.ByteType=1010,t.ShortType=1011,t.UnsignedShortType=1012,t.IntType=1013,t.UnsignedIntType=1014,t.FloatType=1015,t.HalfFloatType=1016,t.UnsignedShort4444Type=1017,t.UnsignedShort5551Type=1018,t.UnsignedShort565Type=1019,t.UnsignedInt248Type=1020,t.AlphaFormat=1021,t.RGBFormat=1022,t.RGBAFormat=1023,t.LuminanceFormat=1024,t.LuminanceAlphaFormat=1025,t.RGBEFormat=1023,t.DepthFormat=1026,t.DepthStencilFormat=1027,t.RGB_S3TC_DXT1_Format=33776,t.RGBA_S3TC_DXT1_Format=33777,t.RGBA_S3TC_DXT3_Format=33778,t.RGBA_S3TC_DXT5_Format=33779,t.RGB_PVRTC_4BPPV1_Format=35840,t.RGB_PVRTC_2BPPV1_Format=35841,t.RGBA_PVRTC_4BPPV1_Format=35842,t.RGBA_PVRTC_2BPPV1_Format=35843,t.RGB_ETC1_Format=36196,t.RGBA_ASTC_4x4_Format=37808,t.RGBA_ASTC_5x4_Format=37809,t.RGBA_ASTC_5x5_Format=37810,t.RGBA_ASTC_6x5_Format=37811,t.RGBA_ASTC_6x6_Format=37812,t.RGBA_ASTC_8x5_Format=37813,t.RGBA_ASTC_8x6_Format=37814,t.RGBA_ASTC_8x8_Format=37815,t.RGBA_ASTC_10x5_Format=37816,t.RGBA_ASTC_10x6_Format=37817,t.RGBA_ASTC_10x8_Format=37818,t.RGBA_ASTC_10x10_Format=37819,t.RGBA_ASTC_12x10_Format=37820,t.RGBA_ASTC_12x12_Format=37821,t.LoopOnce=2200,t.LoopRepeat=2201,t.LoopPingPong=2202,t.InterpolateDiscrete=2300,t.InterpolateLinear=2301,t.InterpolateSmooth=2302,t.ZeroCurvatureEnding=2400,t.ZeroSlopeEnding=2401,t.WrapAroundEnding=2402,t.TrianglesDrawMode=0,t.TriangleStripDrawMode=1,t.TriangleFanDrawMode=2,t.LinearEncoding=3e3,t.sRGBEncoding=3001,t.GammaEncoding=3007,t.RGBEEncoding=3002,t.LogLuvEncoding=3003,t.RGBM7Encoding=3004,t.RGBM16Encoding=3005,t.RGBDEncoding=3006,t.BasicDepthPacking=3200,t.RGBADepthPacking=3201,t.TangentSpaceNormalMap=0,t.ObjectSpaceNormalMap=1,t.CubeGeometry=z,t.Face4=function(t,e,n,i,r,a,o){return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."),new E(t,e,n,r,a,o)},t.LineStrip=0,t.LinePieces=1,t.MeshFaceMaterial=function(t){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),t},t.MultiMaterial=function(t){return void 0===t&&(t=[]),console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t},t.PointCloud=function(t,e){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new ve(t,e)},t.Particle=function(t){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new se(t)},t.ParticleSystem=function(t,e){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new ve(t,e)},t.PointCloudMaterial=function(t){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new ge(t)},t.ParticleBasicMaterial=function(t){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new ge(t)},t.ParticleSystemMaterial=function(t){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new ge(t)},t.Vertex=function(t,e,n){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new a(t,e,n)},t.DynamicBufferAttribute=function(t,e){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead."),new S(t,e).setDynamic(!0)},t.Int8Attribute=function(t,e){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new A(t,e)},t.Uint8Attribute=function(t,e){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new L(t,e)},t.Uint8ClampedAttribute=function(t,e){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new R(t,e)},t.Int16Attribute=function(t,e){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new C(t,e)},t.Uint16Attribute=function(t,e){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new P(t,e)},t.Int32Attribute=function(t,e){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new O(t,e)},t.Uint32Attribute=function(t,e){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new I(t,e)},t.Float32Attribute=function(t,e){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new N(t,e)},t.Float64Attribute=function(t,e){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new D(t,e)},t.ClosedSplineCurve3=Ar,t.SplineCurve3=Lr,t.Spline=Rr,t.AxisHelper=function(t){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new Sr(t)},t.BoundingBoxHelper=function(t,e){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new wr(t,e)},t.EdgesHelper=function(t,e){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new fe(new xn(t.geometry),new pe({color:void 0!==e?e:16777215}))},t.WireframeHelper=function(t,e){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new fe(new we(t.geometry),new pe({color:void 0!==e?e:16777215}))},t.XHRLoader=function(t){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new Un(t)},t.BinaryTextureLoader=function(t){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new Fn(t)},t.GeometryUtils={merge:function(t,e,n){if(console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead."),e.isMesh){e.matrixAutoUpdate&&e.updateMatrix();var i=e.matrix;e=e.geometry}t.merge(e,i,n)},center:function(t){return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."),t.center()}},t.Projector=function(){console.error("THREE.Projector has been moved to /examples/js/renderers/Projector.js."),this.project
755Vector=function(t,e){console.warn("THREE.Projector: .projectVector() is now vector.project()."),t.project(e)},this.unprojectVector=function(t,e){console.warn("THREE.Projector: .unprojectVector() is now vector.unproject()."),t.unproject(e)},this.pickingRay=function(){console.error("THREE.Projector: .pickingRay() is now raycaster.setFromCamera().")}},t.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been moved to /examples/js/renderers/CanvasRenderer.js"),this.domElement=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),this.clear=function(){},this.render=function(){},this.setClearColor=function(){},this.setSize=function(){}},t.SceneUtils={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")}},t.LensFlare=function(){console.error("THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js")},Object.defineProperty(t,"__esModule",{value:!0})});
756;var TMEBgEffectParams={"tmeURL":"https://www.cm-benavente.pt/wp-content/plugins/theme-masters-elementor/"}
757;!function(e){"use strict";e(window).on("elementor/frontend/init",function(){var o=elementorFrontend,t=elementorModules,i=t.frontend.handlers.Base.extend({onInit:function(){t.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initEffects()},getConfig:function(e){return this.getElementSettings("tmea_bg_effects_"+e)},initEffects:function(){e(this).data("id");var o=this.getConfig("enable"),t=this.getConfig("preview"),i=this.getConfig("mouse")||0,s=this.getConfig("touch")||0,n=this.getConfig("selected")||"birds",r=this.getConfig("color_1")||"#ff0000",l=this.getConfig("color_2")||"#00D1FF",a=this.getConfig("highlight")||"#ffc300",g=this.getConfig("midtone")||"#ff1f00",f=this.getConfig("lowlight")||"#2d00ff",c=this.getConfig("base")||"#ffebeb",h=this.getConfig("skycolor")||"#68b8d7",C=this.getConfig("wavecolor")||"#156291",d=this.getConfig("cloudcolor")||"#adc1de",p=this.getConfig("cloudshadow")||"#183550",m=this.getConfig("suncolor")||"#ff9919",u=this.getConfig("sunglarecolor")||"#ff6633",b=this.getConfig("sunlightcolor")||"#ff9933",w=this.getConfig("globebg")||"#23153c",x=this.getConfig("globe_color_1")||"#ff3f81",L=this.getConfig("globe_color_2")||"#ffffff",I=this.getConfig("netcolor")||"#ff3f81",_=this.getConfig("netbgcolor")||"#23153c",A=this.getConfig("cellcolor_1")||"#8c8c",v=this.getConfig("cellcolor_2")||"#f2e735",z=this.getConfig("dots_bg")||"#222222",y=this.getConfig("dots_color_1")||"#ff8820",H=this.getConfig("dots_color_2")||"#ff8820",T=this.getConfig("rings_color")||"#88ff00",N=this.getConfig("halo_bg")||"#131a43",S=this.getConfig("halo_base")||"#1a59",V=this.getConfig("bird_size")||1,W=this.getConfig("quantity")||4,k=this.getConfig("speed_limit")||5,E=this.getConfig("blurfactor")||1,M=this.getConfig("zoom")||1,O=this.getConfig("speed")||1,F=this.getConfig("shininess")||30,B=this.getConfig("waveheight")||15,D=this.getConfig("wavespeed")||1,G=this.getConfig("wavezoom")||1,j=this.getConfig("netpoints")||10,R=this.getConfig("netdistance")||20,q=this.getConfig("netspacing")||15,U=this.getConfig("cellsize")||2,$=this.getConfig("cellspeed")||1,P=this.getConfig("dotsize")||3,Q=this.getConfig("dotspacing")||35,J=this.getConfig("halo_size")||1,K=this.getConfig("halo_amplitude")||1,X=this.getConfig("halo_xoffset")||0,Y=this.getConfig("halo_yoffset")||0,Z=this.getConfig("cloudspeed")||1;this.$element.each(function(){if(o){if(e("body").hasClass("elementor-editor-active")&&!t)return;var ee=e(this).data("id");e(this).append('<div id="tmea-bg-effect-'+ee+'" style="position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height: 100%;z-index:1;"></div>'),e(this).find(".elementor-container").css("z-index",3),e(this).find(".elementor-background-overlay").css("z-index",2),e.getScript(TMEBgEffectParams.tmeURL+"assets/js/library/bg-effects/"+n+".js",function(){"birds"==n?VANTA.BIRDS({el:"#tmea-bg-effect-"+ee,mouseControls:i,touchControl
757s:s,minHeight:200,minWidth:200,scale:1,scaleMobile:1,backgroundAlpha:0,colorMode:"varianceGradient",birdSize:V,color1:parseInt(r.replace("#","0x").toLowerCase()),color2:parseInt(l.replace("#","0x").toLowerCase()),quantity:W,speedLimit:k}):"fog"==n?VANTA.FOG({el:"#tmea-bg-effect-"+ee,mouseControls:i,touchControls:s,minHeight:200,minWidth:200,highlightColor:parseInt(a.replace("#","0x").toLowerCase()),midtoneColor:parseInt(g.replace("#","0x").toLowerCase()),lowlightColor:parseInt(f.replace("#","0x").toLowerCase()),baseColor:parseInt(c.replace("#","0x").toLowerCase()),blurFactor:E,speed:O,zoom:M}):"waves"==n?VANTA.WAVES({el:"#tmea-bg-effect-"+ee,mouseControls:i,touchControls:s,minHeight:200,minWidth:200,scale:1,scaleMobile:1,color:parseInt(C.replace("#","0x").toLowerCase()),shininess:F,waveHeight:B,waveSpeed:D,zoom:G}):"clouds"==n?VANTA.CLOUDS({el:"#tmea-bg-effect-"+ee,mouseControls:i,touchControls:s,minHeight:200,minWidth:200,skyColor:parseInt(h.replace("#","0x").toLowerCase()),cloudColor:parseInt(d.replace("#","0x").toLowerCase()),cloudShadowColor:parseInt(p.replace("#","0x").toLowerCase()),sunColor:parseInt(m.replace("#","0x").toLowerCase()),sunGlareColor:parseInt(u.replace("#","0x").toLowerCase()),sunlightColor:parseInt(b.replace("#","0x").toLowerCase()),speed:Z}):"globe"==n?VANTA.GLOBE({el:"#tmea-bg-effect-"+ee,mouseControls:i,touchControls:s,minHeight:200,minWidth:200,scale:1,scaleMobile:1,color:parseInt(x.replace("#","0x").toLowerCase()),color2:parseInt(L.replace("#","0x").toLowerCase()),backgroundColor:parseInt(w.replace("#","0x").toLowerCase())}):"net"==n?VANTA.NET({el:"#tmea-bg-effect-"+ee,mouseControls:i,touchControls:s,minHeight:200,minWidth:200,scale:1,scaleMobile:1,color:parseInt(I.replace("#","0x").toLowerCase()),backgroundColor:parseInt(_.replace("#","0x").toLowerCase()),points:j,maxDistance:R,spacing:q}):"cells"==n?VANTA.CELLS({el:"#tmea-bg-effect-"+ee,mouseControls:i,touchControls:s,minHeight:200,minWidth:200,scale:1,color1:parseInt(A.replace("#","0x").toLowerCase()),color2:parseInt(v.replace("#","0x").toLowerCase()),size:U,speed:$}):"dots"==n?VANTA.DOTS({el:"#tmea-bg-effect-"+ee,mouseControls:i,touchControls:s,minHeight:200,minWidth:200,scale:1,scaleMobile:1,color:parseInt(y.replace("#","0x").toLowerCase()),color2:parseInt(H.replace("#","0x").toLowerCase()),backgroundColor:parseInt(z.replace("#","0x").toLowerCase()),size:P,spacing:Q}):"rings"==n?VANTA.RINGS({el:"#tmea-bg-effect-"+ee,mouseControls:i,touchControls:s,minHeight:200,minWidth:200,scale:1,scaleMobile:1,color:parseInt(T.replace("#","0x").toLowerCase()),backgroundAlpha:0}):"halo"==n&&VANTA.HALO({el:"#tmea-bg-effect-"+ee,mouseControls:i,touchControls:s,minHeight:200,minWidth:200,baseColor:parseInt(S.replace("#","0x").toLowerCase()),backgroundColor:parseInt(N.replace("#","0x").toLowerCase()),amplitudeFactor:K,xOffset:X,yOffset:Y,size:J})})}})}});o.hooks.addAction("frontend/element_ready/global",function(e){o.elementsHandler.addHandler(i,{$element:e})})})}(jQuery);
758;!function(e){var t={};function o(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=10)}([,,function(e,t){e.exports=function(e){"complete"===document.readyState||"interactive"===document.readyState?e.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){"interactive"===document.readyState&&e.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",e)}},function(e,t,o){(function(t){var o;o="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=o}).call(this,o(4))},function(e,t){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":o(window))&&(i=window)}e.exports=i},,,,,,function(e,t,o){e.exports=o(11)},function(e,t,o){"use strict";o.r(t);var i=o(2),n=o.n(i),a=o(3),r=o(12);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=a.window.jarallax;if(a.window.jarallax=r.default,a.window.jarallax.noConflict=function(){return a.window.jarallax=s,this},void 0!==a.jQuery){var p=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];Array.prototype.unshift.call(t,this);var i=r.default.apply(a.window,t);return"object"!==l(i)?i:this};p.constructor=r.default.constructor;var u=a.jQuery.fn.jarallax;a.jQuery.fn.jarallax=p,a.jQuery.fn.jarallax.noConflict=function(){return a.jQuery.fn.jarallax=u,this}}n()(function(){Object(r.default)(document.querySelectorAll("[data-jarallax]"))})},function(e,t,o){"use strict";o.r(t);var i=o(2),n=o.n(i),a=o(3);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var o=[],i=!0,n=!1,a=void 0;try{for(var r,l=e[Symbol.iterator]();!(i=(r=l.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{i||null==l.return||l.return()}finally{if(n)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?l(e,t):void 0}}
758(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=new Array(t);o<t;o++)i[o]=e[o];return i}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u,d,c=a.window.navigator,m=-1<c.userAgent.indexOf("MSIE ")||-1<c.userAgent.indexOf("Trident/")||-1<c.userAgent.indexOf("Edge/"),y=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(c.userAgent),f=function(){for(var e="transform WebkitTransform MozTransform".split(" "),t=document.createElement("div"),o=0;o<e.length;o+=1)if(t&&void 0!==t.style[e[o]])return e[o];return!1}();function v(){d=y?(!u&&document.body&&((u=document.createElement("div")).style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild(u)),(u?u.clientHeight:0)||a.window.innerHeight||document.documentElement.clientHeight):a.window.innerHeight||document.documentElement.clientHeight}v(),a.window.addEventListener("resize",v),a.window.addEventListener("orientationchange",v),a.window.addEventListener("load",v),n()(function(){v()});var g=[];function h(){g.length&&(g.forEach(function(e,t){var o=e.instance,i=e.oldData,n=o.$item.getBoundingClientRect(),r={width:n.width,height:n.height,top:n.top,bottom:n.bottom,wndW:a.window.innerWidth,wndH:d},l=!i||i.wndW!==r.wndW||i.wndH!==r.wndH||i.width!==r.width||i.height!==r.height,s=l||!i||i.top!==r.top||i.bottom!==r.bottom;g[t].oldData=r,l&&o.onResize(),s&&o.onScroll()}),a.window.requestAnimationFrame(h))}function b(e,t){("object"===("undefined"==typeof HTMLElement?"undefined":s(HTMLElement))?e instanceof HTMLElement:e&&"object"===s(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)&&(e=[e]);for(var o,i=e.length,n=0,a=arguments.length,r=new Array(2<a?a-2:0),l=2;l<a;l++)r[l-2]=arguments[l];for(;n<i;n+=1)if("object"===s(t)||void 0===t?e[n].jarallax||(e[n].jarallax=new x(e[n],t)):e[n].jarallax&&(o=e[n].jarallax[t].apply(e[n].jarallax,r)),void 0!==o)return o;return e}var w=0,x=function(){function e(t,o){!function(t,o){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this);var i=this;i.instanceID=w,w+=1,i.$item=t,i.defaults={type:"scroll",speed:.5,imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,disableVideo:!1,videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};var n=i.$item.dataset||{},a={};if(Object.keys(n).forEach(function(e){var t=e.substr(0,1).toLowerCase()+e.substr(1);t&&void 0!==i.defaults[t]&&(a[t]=n[e])}),i.options=i.extend({},i.defaults,a,o),i.pureOptions=i.extend({},i.options),Object.keys(i.options).forEach(function(e){"true"===i.options[e]?i.options[e]=!0:"false"===i.options[e]&&(i.options[e]=!1)}),i.options.speed=Math.min(2,Math.max(-1,parseFloat(i.options.speed))),"string"==typeof i.options.disableParallax&&(i.options.disableParallax=new RegExp(i.options.disableParallax)),i.options.disableParallax instanceof RegExp){var l=i.options.disableParallax;i.options.disableParallax=function(){return l.test(c.userAgent)}}if("function"!=typeof i.options.disableParallax&&(i.options.disableParallax=function(){return!1}),"string"==typeof i.options.disableVideo&&(i.options.disableVideo=new RegExp(i.options.disableVideo)),i.options.disableVideo instanceof RegExp){var p=i.options.disableVideo;i.options.disableVideo=function(){return p.test(c.userAgent)}}"function"!=typeof i.options.disableVideo&&(i.options.disableVideo=function(){return!1});var u=i.options.elementInViewport;u&&"object"===s(u)&&void 0!==u.length&&(u=r(u,1)[0]),u instanceof Element||(u=null),i.options.elementInViewport=u,i.image={src:i.options.imgSrc||null,$container:null,useImgTag:!1,position:/iPad|iPhone|iPod|Android/.test(c.userAgent)?"absolute":"fixed"},i.initImg()&&i.canInitParallax()&&i.init()}var t,o;return t=e,(o=[{key:"css",value:function(e,t){return"string"==typeof t?a.window.getComputedStyle(e).getPropertyValue(t):(t.transform&&f&&(t[f]=t.transform),Object.keys(t).forEach(function(o){e.style[o]=t[o]}),e)}},{key:"extend",value:function(e){for(var t=arguments.length,o=new Array(1<t?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return e=e||{}
758,Object.keys(o).forEach(function(t){o[t]&&Object.keys(o[t]).forEach(function(i){e[i]=o[t][i]})}),e}},{key:"getWindowData",value:function(){return{width:a.window.innerWidth||document.documentElement.clientWidth,height:d,y:document.documentElement.scrollTop}}},{key:"initImg",value:function(){var e=this,t=e.options.imgElement;return t&&"string"==typeof t&&(t=e.$item.querySelector(t)),t instanceof Element||(e.options.imgSrc?(t=new Image).src=e.options.imgSrc:t=null),t&&(e.options.keepImg?e.image.$item=t.cloneNode(!0):(e.image.$item=t,e.image.$itemParent=t.parentNode),e.image.useImgTag=!0),!(!e.image.$item&&(null===e.image.src&&(e.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e.image.bgImage=e.css(e.$item,"background-image")),!e.image.bgImage||"none"===e.image.bgImage))}},{key:"canInitParallax",value:function(){return f&&!this.options.disableParallax()}},{key:"init",value:function(){var e=this,t={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",pointerEvents:"none"},o={};if(!e.options.keepImg){var i=e.$item.getAttribute("style");if(i&&e.$item.setAttribute("data-jarallax-original-styles",i),e.image.useImgTag){var n=e.image.$item.getAttribute("style");n&&e.image.$item.setAttribute("data-jarallax-original-styles",n)}}if("static"===e.css(e.$item,"position")&&e.css(e.$item,{position:"relative"}),"auto"===e.css(e.$item,"z-index")&&e.css(e.$item,{zIndex:0}),e.image.$container=document.createElement("div"),e.css(e.image.$container,t),e.css(e.image.$container,{"z-index":e.options.zIndex}),m&&e.css(e.image.$container,{opacity:.9999}),e.image.$container.setAttribute("id","jarallax-container-".concat(e.instanceID)),e.$item.appendChild(e.image.$container),e.image.useImgTag?o=e.extend({"object-fit":e.options.imgSize,"object-position":e.options.imgPosition,"font-family":"object-fit: ".concat(e.options.imgSize,"; object-position: ").concat(e.options.imgPosition,";"),"max-width":"none"},t,o):(e.image.$item=document.createElement("div"),e.image.src&&(o=e.extend({"background-position":e.options.imgPosition,"background-size":e.options.imgSize,"background-repeat":e.options.imgRepeat,"background-image":e.image.bgImage||'url("'.concat(e.image.src,'")')},t,o))),"opacity"!==e.options.type&&"scale"!==e.options.type&&"scale-opacity"!==e.options.type&&1!==e.options.speed||(e.image.position="absolute"),"fixed"===e.image.position){var r=function(e){for(var t=[];null!==e.parentElement;)1===(e=e.parentElement).nodeType&&t.push(e);return t}(e.$item).filter(function(e){var t=a.window.getComputedStyle(e),o=t["-webkit-transform"]||t["-moz-transform"]||t.transform;return o&&"none"!==o||/(auto|scroll)/.test(t.overflow+t["overflow-y"]+t["overflow-x"])});e.image.position=r.length?"absolute":"fixed"}o.position=e.image.position,e.css(e.image.$item,o),e.image.$container.appendChild(e.image.$item),e.onResize(),e.onScroll(!0),e.o
758ptions.onInit&&e.options.onInit.call(e),"none"!==e.css(e.$item,"background-image")&&e.css(e.$item,{"background-image":"none"}),e.addToParallaxList()}},{key:"addToParallaxList",value:function(){g.push({instance:this}),1===g.length&&a.window.requestAnimationFrame(h)}},{key:"removeFromParallaxList",value:function(){var e=this;g.forEach(function(t,o){t.instance.instanceID===e.instanceID&&g.splice(o,1)})}},{key:"destroy",value:function(){var e=this;e.removeFromParallaxList();var t=e.$item.getAttribute("data-jarallax-original-styles");if(e.$item.removeAttribute("data-jarallax-original-styles"),t?e.$item.setAttribute("style",t):e.$item.removeAttribute("style"),e.image.useImgTag){var o=e.image.$item.getAttribute("data-jarallax-original-styles");e.image.$item.removeAttribute("data-jarallax-original-styles"),o?e.image.$item.setAttribute("style",t):e.image.$item.removeAttribute("style"),e.image.$itemParent&&e.image.$itemParent.appendChild(e.image.$item)}e.$clipStyles&&e.$clipStyles.parentNode.removeChild(e.$clipStyles),e.image.$container&&e.image.$container.parentNode.removeChild(e.image.$container),e.options.onDestroy&&e.options.onDestroy.call(e),delete e.$item.jarallax}},{key:"clipContainer",value:function(){if("fixed"===this.image.position){var e=this,t=e.image.$container.getBoundingClientRect(),o=t.width,i=t.height;e.$clipStyles||(e.$clipStyles=document.createElement("style"),e.$clipStyles.setAttribute("type","text/css"),e.$clipStyles.setAttribute("id","jarallax-clip-".concat(e.instanceID)),(document.head||document.getElementsByTagName("head")[0]).appendChild(e.$clipStyles));var n="#jarallax-container-".concat(e.instanceID," {\n           clip: rect(0 ").concat(o,"px ").concat(i,"px 0);\n           clip: rect(0, ").concat(o,"px, ").concat(i,"px, 0);\n        }");e.$clipStyles.styleSheet?e.$clipStyles.styleSheet.cssText=n:e.$clipStyles.innerHTML=n}}},{key:"coverImage",value:function(){var e,t=this,o=t.image.$container.getBoundingClientRect(),i=o.height,n=t.options.speed,a="scroll"===t.options.type||"scroll-opacity"===t.options.type,r=0,l=i;return a&&(n<0?(r=n*Math.max(i,d),d<i&&(r-=n*(i-d))):r=n*(i+d),1<n?l=Math.abs(r-d):n<0?l=r/n+Math.abs(r):l+=(d-i)*(1-n),r/=2),t.parallaxScrollDistance=r,e=a?(d-l)/2:(i-l)/2,t.css(t.image.$item,{height:"".concat(l,"px"),marginTop:"".concat(e,"px"),left:"fixed"===t.image.position?"".concat(o.left,"px"):"0",width:"".concat(o.width,"px")}),t.options.onCoverImage&&t.options.onCoverImage.call(t),{image:{height:l,marginTop:e},container:o}}},{key:"isVisible",value:function(){return this.isElementInViewport||!1}},{key:"onScroll",value:function(e){var t=this,o=t.$item.getBoundingClientRect(),i=o.top,n=o.height,r={},l=o;if(t.options.elementInViewport&&(l=t.options.elementInViewport.getBoundingClientRect()),t.isElementInViewport=0<=l.bottom&&0<=l.right&&l.top<=d&&l.left<=a.window.innerWidth,e||t.isElementInViewport){var s=Math.max(0,i),p=Math.max(0,n+i),u=Math.max(0,-i),c=Math.max(0,i+n-d),m=Math.max(0,n-(i+n-d)),y=Math.max(0,-i+d-n),f=1-(d-i)/(d+n)*2,v=1;if(n<d?v=1-(u||c)/n:p<=d?v=p/d:m<=d&&(v=m/d),"opacity"!==t.options.type&&"scale-opacity"!==t.options.type&&"scroll-opacity"!==t.options.type||(r.transform="translate3d(0,0,0)",r.opacity=v),"scale"===t.options.type||"scale-opacity"===t.options.type){var g=1;t.options.speed<0?g-=t.options.speed*v:g+=t.options.speed*(1-v),r.transform="scale(".concat(g,") translate3d(0,0,0)")}if("scroll"===t.options.type||"scroll-opacity"===t.options.type){var h=t.parallaxScrollDistance*f;"absolute"===t.image.position&&(h-=i),r.transform="translate3d(0,".concat(h,"px,0)")}t.css(t.image.$item,r),t.options.onScroll&&t.options.onScroll.call(t,{section:o,beforeTop:s,beforeTopEnd:p,afterTop:u,beforeBottom:c,beforeBottomEnd:m,afterBottom:y,visiblePercent:v,fromViewportCenter:f})}}},{key:"onResize",value:function(){this.coverImage(),this.clipContainer()}}])&&p(t.prototype,o),e}();b.constructor=x,t.default=b}]),function(e){var t={};function o(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
758),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=6)}([,,function(e,t){e.exports=function(e){"complete"===document.readyState||"interactive"===document.readyState?e.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){"interactive"===document.readyState&&e.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",e)}},function(e,t,o){(function(t){var o;o="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=o}).call(this,o(4))},function(e,t){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":o(window))&&(i=window)}e.exports=i},,function(e,t,o){e.exports=o(7)},function(e,t,o){"use strict";o.r(t);var i=o(8),n=o(3),a=o.n(n),r=o(2),l=o.n(r),s=o(9);a.a.VideoWorker=a.a.VideoWorker||i.default,Object(s.default)(),l()(function(){void 0!==a.a.jarallax&&a.a.jarallax(document.querySelectorAll("[data-jarallax-video]"))})},function(e,t,o){"use strict";o.r(t),o.d(t,"default",function(){return f});var i=o(3),n=o.n(i);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(){this.done=[],this.fail=[]}l.prototype={execute:function(e,t){var o=e.length;for(t=Array.prototype.slice.call(t);o;)e[--o].apply(null,t)},resolve:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.execute(this.done,t)},reject:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.execute(this.fail,t)},done:function(e){this.done.push(e)},fail:function(e){this.fail.push(e)}};var s=0,p=0,u=0,d=0,c=0,m=new l,y=new l,f=function(){function e(t,o){!function(t,o){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this);var i=this;i.url=t,i.options_default={autoplay:!1,loop:!1,mute:!1,volume:100,showContols:!0,startTime:0,endTime:0},i.options=i.extend({},i.options_default,o),i.videoID=i.parseURL(t),i.videoID&&(i.ID=s,s+=1,i.loadAPI(),i.init())}var t,o;return t=e,(o=[{key:"extend",value:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=t[0]||{};return Object.keys(t).forEach(function(e){t[e]&&Object.keys(t[e]).forEach(function(o){i[o]=t[e][o]})}),i}},{key:"parseURL",value:function(e){var t,o,i,n,a,r=!(!(t=e.match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/))||11!==t[1].length)&&t[1],l=!(!(o=e.match(/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/))||!o[3])&&o[3],s=(i=e.split(/,(?=mp4\:|webm\:|ogv\:|ogg\:)/),n={},a=0,i.forEach(function(e){var t=e.match(/^(mp4|webm|ogv|ogg)\:(.*)/);t&&t[1]&&t[2]&&(n["ogv"===t[1]?"ogg":t[1]]=t[2],a=1)}),!!a&&n);return r?(this.type="youtube",r):l?(this.type="vimeo",l):!!s&&(this.type="local",s)}},{key:"isValid",value:function(){return!!this.videoID}},{key:"on",value:function(e,t){this.userEventsList=this.userEventsList||[],(this.userEventsList[e]||(this.userEventsList[e]=[])).push(t)}},{key:"off",value:function(e,t){var o=this;this.userEventsList&&this.userEventsList[e]&&(t?this.userEventsList[e].forEach(function(i,n){i===t&&(o.userEventsList[e][n]=!1)}):delete this.userEventsList[e])}},{key:"fire",value:function(e){for(var t=this,o=arguments.length,i=new Array(1<o?o-1:0),n=1;n<o;n++)i[n-1]=arguments[n];this.userEventsList&&void 0!==this.userEventsList[e]&&this.userEventsList[e].forEach(function(e){e&&e.apply(t,i)})}},{key:"play",value:function(e){var t=this;t.player&&("youtube"===t.type&&t.player.playVideo&&(void 0!==e&&t.player.seekTo(e||0),n.a.YT.PlayerState.PLAYING!==t.player.getPlayerState()&&t.player.playVideo()),"vimeo"===t.type&&(void 0!==e&&t.player.setCurrentTime(e),t.player.getPaused().then(function(e){e&&t.player.play()})),"local"===t.type&&(void 0!==e&&(t.player.currentTime=e),t.player.paused&&t.player.play()))}},{key:"pause",value:function(){var e=this;e.player&&("youtube"===e.type&&e.player.pauseVideo&&n.a.YT.PlayerState.PLAYING===e.player.getPlayerState()&&e.player.pauseVideo(),"vimeo"===e.type&&e.player.getPaused().then(function(t){t||e.player.pause()}),"local"===e.type&&(e.player.paused||e.player.pause()))}},{key:"mute",value:function(){var e=this;e.player&&("youtube"===e.type&&e.player.mute&&e.player.mute(),"vimeo"===e.type&&e.player.setVolume&&e.player.setVolume(0),"local"===e.type&&(e.$video.muted=!0))}},{key:"unmute",value:function(){var e=this;e.player&&("youtube"===e.type&&e.player.mute&&e.player.unMute(),"vimeo"===e.type&&e.player.setVolume&&e.player.setVolume(e.options.volume),"local"===e.type&&(e.$video.muted=!1))}},{key:"setVolume",value:function(e){var t=0<arguments.length&&void 0!==e&&e,o=this;o.player&&t&&("youtube"===o.type&&o.player.setVolume&&o.player.setVolume(t),"vimeo"===o.type&&o.player.setVolume&&o.player.setVolume(t),"local"===o.type&&(o.$video.volume=t/100))}},{key:"getVolume",value:function(e){var t=this;t.player?("youtube"===t.type&&t.player.getVolume&&e(t.player.getVolume()),"vimeo"===t.type&&t.player.getVolume&&t.player.getVolume().then(function(t){e(t)}),"local"===t.type&&e(100*t.$video.volume)):e(!1)}},{key:"getMuted",value:function(e){var t=this;t.player?("youtube"===t.type&&t.player.isMuted&&e(t.player.isMuted()),"vimeo"===t.type&&t.player.getVolume&&t.player.getVolume().then(function(t){e(!!t)}),"local"===t.type&&e(t.$video.muted)):e(null)}},{key:"getImageURL",value:function(e){var t=this;if(t.videoImage)e(t.videoImage);else{if("youtube"===t.type){var o=["maxresdefault","sddefault","hqdefault","0"],i=0,n=new Image;
758n.onload=function(){120!==(this.naturalWidth||this.width)||i===o.length-1?(t.videoImage="https://img.youtube.com/vi/".concat(t.videoID,"/").concat(o[i],".jpg"),e(t.videoImage)):(i+=1,this.src="https://img.youtube.com/vi/".concat(t.videoID,"/").concat(o[i],".jpg"))},n.src="https://img.youtube.com/vi/".concat(t.videoID,"/").concat(o[i],".jpg")}if("vimeo"===t.type){var a=new XMLHttpRequest;a.open("GET","https://vimeo.com/api/v2/video/".concat(t.videoID,".json"),!0),a.onreadystatechange=function(){if(4===this.readyState&&200<=this.status&&this.status<400){var o=JSON.parse(this.responseText);t.videoImage=o[0].thumbnail_large,e(t.videoImage)}},a.send(),a=null}}}},{key:"getIframe",value:function(e){this.getVideo(e)}},{key:"getVideo",value:function(e){var t=this;t.$video?e(t.$video):t.onAPIready(function(){var o,i;if(t.$video||((o=document.createElement("div")).style.display="none"),"youtube"===t.type){var a,r;t.playerOptions={},t.playerOptions.videoId=t.videoID,t.playerOptions.playerVars={autohide:1,rel:0,autoplay:0,playsinline:1},t.options.showContols||(t.playerOptions.playerVars.iv_load_policy=3,t.playerOptions.playerVars.modestbranding=1,t.playerOptions.playerVars.controls=0,t.playerOptions.playerVars.showinfo=0,t.playerOptions.playerVars.disablekb=1),t.playerOptions.events={onReady:function(e){t.options.mute?e.target.mute():t.options.volume&&e.target.setVolume(t.options.volume),t.options.autoplay&&t.play(t.options.startTime),t.fire("ready",e),t.options.loop&&!t.options.endTime&&(t.options.endTime=t.player.getDuration()-.1),setInterval(function(){t.getVolume(function(o){t.options.volume!==o&&(t.options.volume=o,t.fire("volumechange",e))})},150)},onStateChange:function(e){t.options.loop&&e.data===n.a.YT.PlayerState.ENDED&&t.play(t.options.startTime),a||e.data!==n.a.YT.PlayerState.PLAYING||(a=1,t.fire("started",e)),e.data===n.a.YT.PlayerState.PLAYING&&t.fire("play",e),e.data===n.a.YT.PlayerState.PAUSED&&t.fire("pause",e),e.data===n.a.YT.PlayerState.ENDED&&t.fire("ended",e),e.data===n.a.YT.PlayerState.PLAYING?r=setInterval(function(){t.fire("timeupdate",e),t.options.endTime&&t.player.getCurrentTime()>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())},150):clearInterval(r)},onError:function(e){t.fire("error",e)}};var l=!t.$video;
758if(l){var s=document.createElement("div");s.setAttribute("id",t.playerID),o.appendChild(s),document.body.appendChild(o)}t.player=t.player||new n.a.YT.Player(t.playerID,t.playerOptions),l&&(t.$video=document.getElementById(t.playerID),t.videoWidth=parseInt(t.$video.getAttribute("width"),10)||1280,t.videoHeight=parseInt(t.$video.getAttribute("height"),10)||720)}if("vimeo"===t.type){if(t.playerOptions={id:t.videoID,autopause:0,transparent:0,autoplay:t.options.autoplay?1:0,loop:t.options.loop?1:0,muted:t.options.mute?1:0},t.options.volume&&(t.playerOptions.volume=t.options.volume),t.options.showContols||(t.playerOptions.badge=0,t.playerOptions.byline=0,t.playerOptions.portrait=0,t.playerOptions.title=0,t.playerOptions.background=1),!t.$video){var p="";Object.keys(t.playerOptions).forEach(function(e){""!==p&&(p+="&"),p+="".concat(e,"=").concat(encodeURIComponent(t.playerOptions[e]))}),t.$video=document.createElement("iframe"),t.$video.setAttribute("id",t.playerID),t.$video.setAttribute("src","https://player.vimeo.com/video/".concat(t.videoID,"?").concat(p)),t.$video.setAttribute("frameborder","0"),t.$video.setAttribute("mozallowfullscreen",""),t.$video.setAttribute("allowfullscreen",""),o.appendChild(t.$video),document.body.appendChild(o)}var u;t.player=t.player||new n.a.Vimeo.Player(t.$video,t.playerOptions),t.options.startTime&&t.options.autoplay&&t.player.setCurrentTime(t.options.startTime),t.player.getVideoWidth().then(function(e){t.videoWidth=e||1280}),t.player.getVideoHeight().then(function(e){t.videoHeight=e||720}),t.player.on("timeupdate",function(e){u||(t.fire("started",e),u=1),t.fire("timeupdate",e),t.options.endTime&&t.options.endTime&&e.seconds>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())}),t.player.on("play",function(e){t.fire("play",e),t.options.startTime&&0===e.seconds&&t.play(t.options.startTime)}),t.player.on("pause",function(e){t.fire("pause",e)}),t.player.on("ended",function(e){t.fire("ended",e)}),t.player.on("loaded",function(e){t.fire("ready",e)}),t.player.on("volumechange",function(e){t.fire("volumechange",e)}),t.player.on("error",function(e){t.fire("error",e)})}"local"===t.type&&(t.$video||(t.$video=document.createElement("video"),t.options.showContols&&(t.$video.controls=!0),t.options.mute?t.$video.muted=!0:t.$video.volume&&(t.$video.volume=t.options.volume/100),t.options.loop&&(t.$video.loop=!0),t.$video.setAttribute("playsinline",""),t.$video.setAttribute("webkit-playsinline",""),t.$video.setAttribute("id",t.playerID),o.appendChild(t.$video),document.body.appendChild(o),Object.keys(t.videoID).forEach(function(e){var o,i,n,a;o=t.$video,i=t.videoID[e],n="video/".concat(e),(a=document.createElement("source")).src=i,a.type=n,o.appendChild(a)})),t.player=t.player||t.$video,t.player.addEventListener("playing",function(e){i||t.fire("started",e),i=1}),t.player.addEventListener("timeupdate",function(e){t.fire("timeupdate",e),t.options.endTime&&t.options.endTime&&this.currentTime>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())}),t.player.addEventListener("play",function(e){t.fire("play",e)}),t.player.addEventListener("pause",function(e){t.fire("pause",e)}),t.player.addEventListener("ended",function(e){t.fire("ended",e)}),t.player.addEventListener("loadedmetadata",function(){t.videoWidth=this.videoWidth||1280,t.videoHeight=this.videoHeight||720,t.fire("ready"),t.options.autoplay&&t.play(t.options.startTime)}),t.player.addEventListener("volumechange",function(e){t.getVolume(function(e){t.options.volume=e}),t.fire("volumechange",e)}),t.player.addEventListener("error",function(e){t.fire("error",e)})),e(t.$video)})}},{key:"init",value:function(){this.playerID="VideoWorker-".concat(this.ID)}},{key:"loadAPI",value:function(){if(!p||!u){var e="";if("youtube"!==this.type||p||(p=1,e="https://www.youtube.com/iframe_api"),"vimeo"===this.type&&!u){if(u=1,void 0!==n.a.Vimeo)return;e="https://player.vimeo.com/api/player.js"}if(e){var t=document.createElement("script"),o=document.getElementsByTagName("head")[0];t.src=e,o.appendChild(t),t=o=null}}}},{key:"onAPIready",value:function(e){if("youtube"===this.type&&(void 0!==n.a.YT&&0!==n.a.YT.loaded||d?"object"===a(n.a.YT)&&1===n.a.YT.loaded?e():m.done(function(){e()}):(d=1,window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady=null,m.resolve("done"),e()})),"vimeo"===this.type)if(void 0!==n.a.Vimeo||c)void 0!==n.a.Vimeo?e():y.done(function(){e()});else{c=1;var t=setInterval(function(){void 0!==n.a.Vimeo&&(clearInterval(t),y.resolve("done"),e())},20)}"local"===this.type&&e()}}])&&r(t.prototype,o),e}()},function(e,t,o){"use strict";o.r(t),o.d(t,"default",function(){return r});var i=o(8),n=o(3),a=o.n(n);function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:a.a.jarallax;if(void 0!==e){var t=e.constructor,o=t.prototype.onScroll;t.prototype.onScroll=function(){var e=this;o.apply(e),e.isVideoInserted||!e.video||e.options.videoLazyLoading&&!e.isElementInViewport||e.options.disableVideo()||(e.isVideoInserted=!0,e.video.getVideo(function(t){var o=t.parentNode;e.css(t,{position:e.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",margin:0,zIndex:-1}),e.$video=t,"local"===e.video.type&&(e.image.src?e.$video.setAttribute("poster",e.image.src):e.image.$item&&"IMG"===e.image.$item.tagName&&e.image.$item.src&&e.$video.setAttribute("poster",e.image.$item.src)),e.image.$container.appendChild(t),o.parentNode.removeChild(o)}))};var n=t.prototype.coverImage;t.prototype.coverImage=function(){var e=this,t=n.apply(e),o=!!e.image.$item&&e.image.$item.nodeName;
758if(t&&e.video&&o&&("IFRAME"===o||"VIDEO"===o)){var i=t.image.height,a=i*e.image.width/e.image.height,r=(t.container.width-a)/2,l=t.image.marginTop;t.container.width>a&&(i=(a=t.container.width)*e.image.height/e.image.width,r=0,l+=(t.image.height-i)/2),"IFRAME"===o&&(i+=400,l-=200),e.css(e.$video,{width:"".concat(a,"px"),marginLeft:"".concat(r,"px"),height:"".concat(i,"px"),marginTop:"".concat(l,"px")})}return t};var r=t.prototype.initImg;t.prototype.initImg=function(){var e=this,t=r.apply(e);return e.options.videoSrc||(e.options.videoSrc=e.$item.getAttribute("data-jarallax-video")||null),e.options.videoSrc?(e.defaultInitImgResult=t,!0):t};var l=t.prototype.canInitParallax;t.prototype.canInitParallax=function(){var e=this,t=l.apply(e);if(!e.options.videoSrc)return t;var o=new i.default(e.options.videoSrc,{autoplay:!0,loop:e.options.videoLoop,showContols:!1,startTime:e.options.videoStartTime||0,endTime:e.options.videoEndTime||0,mute:e.options.videoVolume?0:1,volume:e.options.videoVolume||0});function n(){e.image.$default_item&&(e.image.$item=e.image.$default_item,e.image.$item.style.display="block",e.coverImage(),e.clipContainer(),e.onScroll())}if(o.isValid())if(this.options.disableParallax()&&(t=!0,e.image.position="absolute",e.options.type="scroll",e.options.speed=1),t){if(o.on("ready",function(){if(e.options.videoPlayOnlyVisible){var t=e.onScroll;e.onScroll=function(){t.apply(e),e.videoError||!e.options.videoLoop&&(e.options.videoLoop||e.videoEnded)||(e.isVisible()?o.play():o.pause())}}else o.play()}),o.on("started",function(){e.image.$default_item=e.image.$item,e.image.$item=e.$video,e.image.width=e.video.videoWidth||1280,e.
758image.height=e.video.videoHeight||720,e.coverImage(),e.clipContainer(),e.onScroll(),e.image.$default_item&&(e.image.$default_item.style.display="none")}),o.on("ended",function(){e.videoEnded=!0,n()}),o.on("error",function(){e.videoError=!0,n()}),e.video=o,!e.defaultInitImgResult&&(e.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","local"!==o.type))return o.getImageURL(function(t){e.image.bgImage='url("'.concat(t,'")'),e.init()}),!1}else e.defaultInitImgResult||o.getImageURL(function(t){var o=e.$item.getAttribute("style");o&&e.$item.setAttribute("data-jarallax-original-styles",o),e.css(e.$item,{"background-image":'url("'.concat(t,'")'),"background-position":"center","background-size":"cover"})});return t};var s=t.prototype.destroy;t.prototype.destroy=function(){var e=this;e.image.$default_item&&(e.image.$item=e.image.$default_item,delete e.image.$default_item),s.apply(e)}}}}]),function(e){"use strict";e(window).on("elementor/frontend/init",function(){var t=elementorFrontend,o=elementorModules,i=o.frontend.handlers.Base.extend({onInit:function(){o.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initParallaxBg()},getConfig:function(e){return this.getElementSettings("tmea_parallax_bg_"+e)},onElementChange(e){"tmea_parallax_bg_enable"!==e&&"tmea_parallax_bg_img"!==e&&"tmea_parallax_bg_video"!==e&&"tmea_parallax_bg_type"!==e&&"tmea_parallax_bg_speed"!==e&&"tmea_parallax_bg_start_time"!==e&&"tmea_parallax_bg_end_time"!==e&&"tmea_parallax_bg_loop"!==e&&"tmea_parallax_bg_only_visible"!==e&&"tmea_parallax_bg_lazy"!==e&&"tmea_parallax_bg_mobile"!==e||elementor.reloadPreview()},initParallaxBg:function(){e(this).data("id");var t=this.$element,o=this.getConfig("speed")||.5,i=this.getConfig("type"),n=this.getConfig("img"),a=this.getConfig("video"),r=this.getConfig("start_time")||0,l=this.getConfig("end_time")||0,s=this.getConfig("loop"),p=this.getConfig("only_visible"),u=this.getConfig("lazy"),d=this.getConfig("mobile");this.getConfig("enable")&&("img"===i?d?t.jarallax({imgSrc:n.url,disableParallax:/iPad|iPhone|iPod|Android/,speed:parseFloat(o)}):t.jarallax({imgSrc:n.url,speed:parseFloat(o)}):d?t.jarallax({videoSrc:a,videoStartTime:parseInt(r),videoEndTime:parseInt(l),videoLoop:s,videoPlayOnlyVisible:p,videoLazyLoading:u,disableVideo:/iPad|iPhone|iPod|Android/,speed:parseFloat(o)}):t.jarallax({videoSrc:a,videoStartTime:parseInt(r),videoEndTime:parseInt(l),videoLoop:s,videoPlayOnlyVisible:p,videoLazyLoading:u,speed:parseFloat(o)}))}});t.hooks.addAction("frontend/element_ready/global",function(e){t.elementsHandler.addHandler(i,{$element:e})})})}(jQuery);
759;!function(e){"use strict";e(window).on("elementor/frontend/init",function(){var t=elementorFrontend,n=elementorModules,i=n.frontend.handlers.Base.extend({onInit:function(){n.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initEffects()},getConfig:function(e){return this.getElementSettings("tmea_gradient_bg_"+e)},initEffects:function(){e(this).data("id");var t=this.getConfig("enable"),n=this.getConfig("rotate.size")||-45,i=this.getConfig("size")||400,o=this.getConfig("duration")||15,s=this.getConfig("color_1")||"#ee7752",a=this.getConfig("color_2")||"#e73c7e",d=this.getConfig("color_3")||"#23a6d5",r=this.getConfig("color_4")||"#23d5ab";this.$element.each(function(){if(t){var g=e(this).data("id");e(this).append('<div id="tmea-gradient-bg-'+g+'" style="position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height: 100%;z-index:1;"></div>'),e(this).find(".elementor-container").css("z-index",3),e(this).find(".elementor-background-overlay").css("z-index",2),e(this).find("#tmea-gradient-bg-"+g).css("animation","tmea-gradient-anim "+o+"s ease infinite"),e(this).find("#tmea-gradient-bg-"+g).css("background","linear-gradient("+n+"deg, "+s+", "+a+", "+d+", "+r+")"),e(this).find("#tmea-gradient-bg-"+g).css("background-size",i+"% "+i+"%")}})}});t.hooks.addAction("frontend/element_ready/global",function(e){t.elementsHandler.addHandler(i,{$element:e})})})}(jQuery);
760;var TMEDividerParams={"tmeURL":"https://www.cm-benavente.pt/wp-content/plugins/theme-masters-elementor/"}
761;!function(t){"use strict";t(window).on("elementor/frontend/init",function(){var e=elementorFrontend,i=elementorModules,o=i.frontend.handlers.Base.extend({onInit:function(){i.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initDividers()},getConfig:function(t){return this.getElementSettings("tmea_shape_divider_"+t)},initDividers:function(){["preserveAspectRatio","viewBox"].forEach(function(e){t.attrHooks[e.toLowerCase()]={set:function(t,i){return t.setAttribute(e,i),!0},get:function(t){return t.getAttribute(e)}}});t(this).data("id");var e=this.getConfig("top")||"none",i=this.getConfig("bottom")||"none",o=this.getConfig("top_color")||"#ffffff",s=this.getConfig("bottom_color")||"#ffffff",n=this.getConfig("top_width.size")||100,d=this.getConfig("bottom_width.size")||100,a=this.getConfig("top_height.size"),r=this.getConfig("bottom_height.size"),h=this.getConfig("top_flip"),f=this.getConfig("bottom_flip"),p=this.getConfig("top_zindex")||-1,l=this.getConfig("bottom_zindex")||-1,v=this.getConfig("top_custom"),m=this.getConfig("bottom_custom");a?a+="px":a="auto",r?r+="px":r="auto",h=h?" transform: rotateY(180deg);
761":"",f=f?" transform: rotateY(180deg);":"",this.$element.each(function(){var g=t(this).data("id");"none"===e?t(this).find("#tmea-shape-divider-top-"+g).remove():"custom"===e?(t(this).prepend('<div id="tmea-shape-divider-top-'+g+'" style="position:absolute;top:-1px;left:0;right:0;width:100%;overflow:hidden;z-index:'+p+";"+h+'"></div><style>#tmea-shape-divider-top-'+g+" svg {position:relative;display:block;transform:translateX(-50%);left:50%;width:"+n+"%;height:"+a+";}#tmea-shape-divider-top-"+g+" svg * {fill:"+o+";}</style>"),t(this).find("#tmea-shape-divider-top-"+g).load(v,function(){t(this).find("svg").attr("preserveAspectRatio","none")})):(t(this).prepend('<div id="tmea-shape-divider-top-'+g+'" style="position:absolute;top:-1px;left:0;right:0;width:100%;overflow:hidden;z-index:'+p+";"+h+'"></div><style>#tmea-shape-divider-top-'+g+" svg {position:relative;display:block;transform:translateX(-50%);left:50%;width:"+n+"%;height:"+a+";}#tmea-shape-divider-top-"+g+" svg * {fill:"+o+";}</style>"),t(this).find("#tmea-shape-divider-top-"+g).load(TMEDividerParams.tmeURL+"assets/js/library/dividers/"+e+"-top.svg",function(){t(this).find("svg").attr("preserveAspectRatio","none")})),"none"===i?t(this).find("#tmea-shape-divider-bottom-"+g).remove():"custom"===i?(t(this).append('<div id="tmea-shape-divider-bottom-'+g+'" style="position:absolute;bottom:-1px;left:0;right:0;width:100%;overflow:hidden;z-index:'+l+";"+f+'"></div><style>#tmea-shape-divider-bottom-'+g+" svg {position:relative;display:block;transform:translateX(-50%);left:50%;width:"+d+"%;height:"+r+";}#tmea-shape-divider-bottom-"+g+" svg * {fill:"+s+";}</style>"),t(this).find("#tmea-shape-divider-bottom-"+g).load(m,function(){t(this).find("svg").attr("preserveAspectRatio","none")})):(t(this).append('<div id="tmea-shape-divider-bottom-'+g+'" style="position:absolute;bottom:-1px;left:0;right:0;width:100%;overflow:hidden;z-index:'+l+";"+f+'"></div><style>#tmea-shape-divider-bottom-'+g+" svg {position:relative;display:block;transform:translateX(-50%);left:50%;width:"+d+"%;height:"+r+";}#tmea-shape-divider-bottom-"+g+" svg * {fill:"+s+";}</style>"),t(this).find("#tmea-shape-divider-bottom-"+g).load(TMEDividerParams.tmeURL+"assets/js/library/dividers/"+i+"-bottom.svg",function(){t(this).find("svg").attr("preserveAspectRatio","none")}))})}});e.hooks.addAction("frontend/element_ready/global",function(t){e.elementsHandler.addHandler(o,{$element:t})})})}(jQuery);
762;/*! This file is auto-generated */
763/*!
764 * imagesLoaded PACKAGED v5.0.0
765 * JavaScript is all like "You images are done yet or what?"
766 * MIT License
767 */
768!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})),
769/*!
770 * imagesLoaded v5.0.0
771 * JavaScript is all like "You images are done yet or what?"
772 * MIT License
773 */
774function(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;
vendor: 4,633 bytes, lines 774-777
774function 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}));
775;(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Swiper=factory())})(this,(function(){'use strict';function isObject$1(obj){return obj!==null&&typeof obj==='object'&&'constructor' in obj&&obj.constructor===Object}
776function extend$1(target,src){if(target===void 0){target={}}
777if(src===void 0){src={}}
778Object.keys(src).forEach(key=>{if(typeof target[key]==='undefined')target[key]=src[key];else if(isObject$1(src[key])&&isObject$1(target[key])&&Object.keys(src[key]).length>0){extend$1(target[key],src[key])}})}
779const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:''},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:'',host:'',hostname:'',href:'',origin:'',pathname:'',protocol:'',search:''}};function getDocument(){const doc=typeof document!=='undefined'?document:{};extend$1(doc,ssrDocument);return doc}
780const ssrWindow={document:ssrDocument,navigator:{userAgent:''},location:{hash:'',host:'',hostname:'',href:'',origin:'',pathname:'',protocol:'',search:''},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function CustomEvent(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return''}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(callback){if(typeof setTimeout==='undefined'){callback();return null}
781return setTimeout(callback,0)},cancelAnimationFrame(id){if(typeof setTimeout==='undefined'){return}
782clearTimeout(id)}};function getWindow(){const win=typeof window!=='undefined'?window:{};extend$1(win,ssrWindow);return win}
783function makeReactive(obj){const proto=obj.__proto__;Object.defineProperty(obj,'__proto__',{get(){return proto},set(value){proto.__proto__=value}})}
784class Dom7 extends Array{constructor(items){if(typeof items==='number'){super(items)}else{super(...(items||[]));makeReactive(this)}}}
785function arrayFlat(arr){if(arr===void 0){arr=[]}
786const res=[];arr.forEach(el=>{if(Array.isArray(el)){res.push(...arrayFlat(el))}else{res.push(el)}});return res}
787function arrayFilter(arr,callback){return Array.prototype.filter.call(arr,callback)}
788function arrayUnique(arr){const uniqueArray=[];for(let i=0;i<arr.length;i+=1){if(uniqueArray.indexOf(arr[i])===-1)uniqueArray.push(arr[i]);}
789return uniqueArray}
790function qsa(selector,context){if(typeof selector!=='string'){return[selector]}
791const a=[];const res=context.querySelectorAll(selector);for(let i=0;i<res.length;i+=1){a.push(res[i])}
792return a}
793function $(selector,context){const window=getWindow();const document=getDocument();let arr=[];if(!context&&selector instanceof Dom7){return selector}
794if(!selector){return new Dom7(arr)}
795if(typeof selector==='string'){const html=selector.trim();if(html.indexOf('<')>=0&&html.indexOf('>')>=0){let toCreate='div';if(html.indexOf('<li')===0)toCreate='ul';if(html.indexOf('<tr')===0)toCreate='tbody';if(html.indexOf('<td')===0||html.indexOf('<th')===0)toCreate='tr';if(html.indexOf('<tbody')===0)toCreate='table';if(html.indexOf('<option')===0)toCreate='select';const tempParent=document.createElement(toCreate);tempParent.innerHTML=html;for(let i=0;i<tempParent.childNodes.length;i+=1){arr.push(tempParent.childNodes[i])}}else{arr=qsa(selector.trim(),context||document)}}else if(selector.nodeType||selector===window||selector===document){arr.push(selector)}else if(Array.isArray(selector)){if(selector instanceof Dom7)return selector;arr=selector}
796return new Dom7(arrayUnique(arr))}
797$.fn=Dom7.prototype;function addClass(){for(var _len=arguments.length,classes=new Array(_len),_key=0;_key<_len;_key++){classes[_key]=arguments[_key]}
798const classNames=arrayFlat(classes.map(c=>c.split(' ')));this.forEach(el=>{el.classList.add(...classNames)});return this}
799function removeClass(){for(var _len2=arguments.length,classes=new Array(_len2),_key2=0;_key2<_len2;_key2++){classes[_key2]=arguments[_key2]}
800const classNames=arrayFlat(classes.map(c=>c.split(' ')));this.forEach(el=>{el.classList.remove(...classNames)});return this}
801function toggleClass(){for(var _len3=arguments.length,classes=new Array(_len3),_key3=0;_key3<_len3;_key3++){classes[_key3]=arguments[_key3]}
802const classNames=arrayFlat(classes.map(c=>c.split(' ')));this.forEach(el=>
802{classNames.forEach(className=>{el.classList.toggle(className)})})}
803function hasClass(){for(var _len4=arguments.length,classes=new Array(_len4),_key4=0;_key4<_len4;_key4++){classes[_key4]=arguments[_key4]}
804const classNames=arrayFlat(classes.map(c=>c.split(' ')));return arrayFilter(this,el=>{return classNames.filter(className=>el.classList.contains(className)).length>0}).length>0}
805function attr(attrs,value){if(arguments.length===1&&typeof attrs==='string'){if(this[0])return this[0].getAttribute(attrs);return undefined}
806for(let i=0;i<this.length;i+=1){if(arguments.length===2){this[i].setAttribute(attrs,value)}else{for(const attrName in attrs){this[i][attrName]=attrs[attrName];this[i].setAttribute(attrName,attrs[attrName])}}}
807return this}
808function removeAttr(attr){for(let i=0;i<this.length;i+=1){this[i].removeAttribute(attr)}
809return this}
810function transform(transform){for(let i=0;i<this.length;i+=1){this[i].style.transform=transform}
811return this}
812function transition$1(duration){for(let i=0;i<this.length;i+=1){this[i].style.transitionDuration=typeof duration!=='string'?`${duration}ms`:duration}
813return this}
814function on(){for(var _len5=arguments.length,args=new Array(_len5),_key5=0;_key5<_len5;_key5++){args[_key5]=arguments[_key5]}
815let[eventType,targetSelector,listener,capture]=args;if(typeof args[1]==='function'){[eventType,listener,capture]=args;targetSelector=undefined}
816if(!capture)capture=!1;function handleLiveEvent(e){const target=e.target;if(!target)return;const eventData=e.target.dom7EventData||[];if(eventData.indexOf(e)<0){eventData.unshift(e)}
817if($(target).is(targetSelector))listener.apply(target,eventData);else{const parents=$(target).parents();for(let k=0;k<parents.length;k+=1){if($(parents[k]).is(targetSelector))listener.apply(parents[k],eventData);}}}
818function handleEvent(e){const eventData=e&&e.target?e.target.dom7EventData||[]:[];if(eventData.indexOf(e)<0){eventData.unshift(e)}
819listener.apply(this,eventData)}
820const events=eventType.split(' ');let j;for(let i=0;i<this.length;i+=1){const el=this[i];if(!targetSelector){for(j=0;j<events.length;j+=1){const event=events[j];if(!el.dom7Listeners)el.dom7Listeners={};if(!el.dom7Listeners[event])el.dom7Listeners[event]=[];el.dom7Listeners[event].push({listener,proxyListener:handleEvent});el.addEventListener(event,handleEvent,capture)}}else{for(j=0;j<events.length;j+=1){const event=events[j];if(!el.dom7LiveListeners)el.dom7LiveListeners={};if(!el.dom7LiveListeners[event])el.dom7LiveListeners[event]=[];el.dom7LiveListeners[event].push({listener,proxyListener:handleLiveEvent});el.addEventListener(event,handleLiveEvent,capture)}}}
821return this}
822function off(){for(var _len6=arguments.length,args=new Array(_len6),_key6=0;_key6<_len6;_key6++){args[_key6]=arguments[_key6]}
823let[eventType,targetSelector,listener,capture]=args;if(typeof args[1]==='function'){[eventType,listener,capture]=args;targetSelector=undefined}
824if(!capture)capture=!1;const events=eventType.split(' ');for(let i=0;i<events.length;i+=1){const event=events[i];for(let j=0;j<this.length;j+=1){const el=this[j];let handlers;if(!targetSelector&&el.dom7Listeners){handlers=el.dom7Listeners[event]}else if(targetSelector&&el.dom7LiveListeners){handlers=el.dom7LiveListeners[event]}
825if(handlers&&handlers.length){for(let k=handlers.length-1;k>=0;k-=1){const handler=handlers[k];if(listener&&handler.listener===listener){el.removeEventListener(event,handler.proxyListener,capture);handlers.splice(k,1)}else if(listener&&handler.listener&&handler.listener.dom7proxy&&handler.listener.dom7proxy===listener){el.removeEventListener(event,handler.proxyListener,capture);handlers.splice(k,1)}else if(!listener){el.removeEventListener(event,handler.proxyListener,capture);handlers.splice(k,1)}}}}}
826return this}
827function trigger(){const window=getWindow();for(var _len9=arguments.length,args=new Array(_len9),_key9=0;_key9<_len9;_key9++){args[_key9]=arguments[_key9]}
828const events=args[0].split(' ');const eventData=args[1];for(let i=0;i<events.length;i+=1){const event=events[i];for(let j=0;j<this.length;j+=1){const el=this[j];if(window.CustomEvent){const evt=new window.CustomEvent(event,{detail:eventData,bubbles:!0,cancelable:!0});el.dom7EventData=args.filter((data,dataIndex)=>dataIndex>0);el.dispatchEvent(evt);el.dom7EventData=[];delete el.dom7EventData}}}
829return this}
830function transitionEnd$1(callback){const dom=this;function fireCallBack(e){if(e.target!==this)return;callback.call(this,e);dom.off('transitionend',fireCallBack)}
831if(callback){dom.on('transitionend',fireCallBack)}
832return this}
833function outerWidth(includeMargins){if(this.length>0){if(includeMargins){const styles=this.styles();return this[0].offsetWidth+parseFloat(styles.getPropertyValue('margin-right'))+parseFloat(styles.getPropertyValue('margin-left'))}
834return this[0].offsetWidth}
835return null}
836function outerHeight(includeMargins){if(this.length>0){if(includeMargins){const styles=this.styles();return this[0].offsetHeight+parseFloat(styles.getPropertyValue('margin-top'))+parseFloat(styles.getPropertyValue('margin-bottom'))}
837return this[0].offsetHeight}
838return null}
839function offset(){if(this.length>0){const window=getWindow();const document=getDocument();const el=this[0];const box=el.getBoundingClientRect();const body=document.body;const clientTop=el.clientTop||body.clientTop||0;const clientLeft=el.clientLeft||body.clientLeft||0;const scrollTop=el===window?window.scrollY:el.scrollTop;
vendor: 6,042 bytes, lines 839-898
839const scrollLeft=el===window?window.scrollX:el.scrollLeft;return{top:box.top+scrollTop-clientTop,left:box.left+scrollLeft-clientLeft}}
840return null}
841function styles(){const window=getWindow();if(this[0])return window.getComputedStyle(this[0],null);return{}}
842function css(props,value){const window=getWindow();let i;if(arguments.length===1){if(typeof props==='string'){if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(props);}else{for(i=0;i<this.length;i+=1){for(const prop in props){this[i].style[prop]=props[prop]}}
843return this}}
844if(arguments.length===2&&typeof props==='string'){for(i=0;i<this.length;i+=1){this[i].style[props]=value}
845return this}
846return this}
847function each(callback){if(!callback)return this;this.forEach((el,index)=>{callback.apply(el,[el,index])});return this}
848function filter(callback){const result=arrayFilter(this,callback);return $(result)}
849function html(html){if(typeof html==='undefined'){return this[0]?this[0].innerHTML:null}
850for(let i=0;i<this.length;i+=1){this[i].innerHTML=html}
851return this}
852function text(text){if(typeof text==='undefined'){return this[0]?this[0].textContent.trim():null}
853for(let i=0;i<this.length;i+=1){this[i].textContent=text}
854return this}
855function is(selector){const window=getWindow();const document=getDocument();const el=this[0];let compareWith;let i;if(!el||typeof selector==='undefined')return!1;if(typeof selector==='string'){if(el.matches)return el.matches(selector);if(el.webkitMatchesSelector)return el.webkitMatchesSelector(selector);if(el.msMatchesSelector)return el.msMatchesSelector(selector);compareWith=$(selector);for(i=0;i<compareWith.length;i+=1){if(compareWith[i]===el)return!0}
856return!1}
857if(selector===document){return el===document}
858if(selector===window){return el===window}
859if(selector.nodeType||selector instanceof Dom7){compareWith=selector.nodeType?[selector]:selector;for(i=0;i<compareWith.length;i+=1){if(compareWith[i]===el)return!0}
860return!1}
861return!1}
862function index(){let child=this[0];let i;if(child){i=0;while((child=child.previousSibling)!==null){if(child.nodeType===1)i+=1}
863return i}
864return undefined}
865function eq(index){if(typeof index==='undefined')return this;const length=this.length;if(index>length-1){return $([])}
866if(index<0){const returnIndex=length+index;if(returnIndex<0)return $([]);return $([this[returnIndex]])}
867return $([this[index]])}
868function append(){let newChild;const document=getDocument();for(let k=0;k<arguments.length;k+=1){newChild=k<0||arguments.length<=k?undefined:arguments[k];for(let i=0;i<this.length;i+=1){if(typeof newChild==='string'){const tempDiv=document.createElement('div');tempDiv.innerHTML=newChild;while(tempDiv.firstChild){this[i].appendChild(tempDiv.firstChild)}}else if(newChild instanceof Dom7){for(let j=0;j<newChild.length;j+=1){this[i].appendChild(newChild[j])}}else{this[i].appendChild(newChild)}}}
869return this}
870function prepend(newChild){const document=getDocument();let i;let j;for(i=0;i<this.length;i+=1){if(typeof newChild==='string'){const tempDiv=document.createElement('div');tempDiv.innerHTML=newChild;for(j=tempDiv.childNodes.length-1;j>=0;j-=1){this[i].insertBefore(tempDiv.childNodes[j],this[i].childNodes[0])}}else if(newChild instanceof Dom7){for(j=0;j<newChild.length;j+=1){this[i].insertBefore(newChild[j],this[i].childNodes[0])}}else{this[i].insertBefore(newChild,this[i].childNodes[0])}}
871return this}
872function next(selector){if(this.length>0){if(selector){if(this[0].nextElementSibling&&$(this[0].nextElementSibling).is(selector)){return $([this[0].nextElementSibling])}
873return $([])}
874if(this[0].nextElementSibling)return $([this[0].nextElementSibling]);return $([])}
875return $([])}
876function nextAll(selector){const nextEls=[];let el=this[0];if(!el)return $([]);while(el.nextElementSibling){const next=el.nextElementSibling;if(selector){if($(next).is(selector))nextEls.push(next);}else nextEls.push(next);el=next}
877return $(nextEls)}
878function prev(selector){if(this.length>0){const el=this[0];if(selector){if(el.previousElementSibling&&$(el.previousElementSibling).is(selector)){return $([el.previousElementSibling])}
879return $([])}
880if(el.previousElementSibling)return $([el.previousElementSibling]);return $([])}
881return $([])}
882function prevAll(selector){const prevEls=[];let el=this[0];if(!el)return $([]);while(el.previousElementSibling){const prev=el.previousElementSibling;if(selector){if($(prev).is(selector))prevEls.push(prev);}else prevEls.push(prev);el=prev}
883return $(prevEls)}
884function parent(selector){const parents=[];for(let i=0;i<this.length;i+=1){if(this[i].parentNode!==null){if(selector){if($(this[i].parentNode).is(selector))parents.push(this[i].parentNode);}else{parents.push(this[i].parentNode)}}}
885return $(parents)}
886function parents(selector){const parents=[];for(let i=0;i<this.length;i+=1){let parent=this[i].parentNode;while(parent){if(selector){if($(parent).is(selector))parents.push(parent);}else{parents.push(parent)}
887parent=parent.parentNode}}
888return $(parents)}
889function closest(selector){let closest=this;if(typeof selector==='undefined'){return $([])}
890if(!closest.is(selector)){closest=closest.parents(selector).eq(0)}
891return closest}
892function find(selector){const foundElements=[];for(let i=0;i<this.length;i+=1){const found=this[i].querySelectorAll(selector);for(let j=0;j<found.length;j+=1){foundElements.push(found[j])}}
893return $(foundElements)}
894function children(selector){const children=[];for(let i=0;i<this.length;i+=1){const childNodes=this[i].children;for(let j=0;j<childNodes.length;j+=1){if(!selector||$(childNodes[j]).is(selector)){children.push(childNodes[j])}}}
895return $(children)}
896function remove(){for(let i=0;i<this.length;i+=1){if(this[i].parentNode)this[i].parentNode.removeChild(this[i]);}
897return this}
898const Methods={addClass,removeClass,hasClass,toggleClass,attr,removeAttr,transform,transition:transition$1,on,off,trigger,transitionEnd:transitionEnd$1,outerWidth,outerHeight,styles,offset,css,each,html,text,is,index,eq,append,prepend,next,nextAll,prev,prevAll,parent,parents,closest,find,children,filter,remove};
898Object.keys(Methods).forEach(methodName=>{Object.defineProperty($.fn,methodName,{value:Methods[methodName],writable:!0})});function deleteProps(obj){const object=obj;Object.keys(object).forEach(key=>{try{object[key]=null}catch(e){}
899try{delete object[key]}catch(e){}})}
900function nextTick(callback,delay){if(delay===void 0){delay=0}
901return setTimeout(callback,delay)}
902function now(){return Date.now()}
903function getComputedStyle$1(el){const window=getWindow();let style;if(window.getComputedStyle){style=window.getComputedStyle(el,null)}
904if(!style&&el.currentStyle){style=el.currentStyle}
905if(!style){style=el.style}
906return style}
907function getTranslate(el,axis){if(axis===void 0){axis='x'}
908const window=getWindow();let matrix;let curTransform;let transformMatrix;const curStyle=getComputedStyle$1(el);if(window.WebKitCSSMatrix){curTransform=curStyle.transform||curStyle.webkitTransform;if(curTransform.split(',').length>6){curTransform=curTransform.split(', ').map(a=>a.replace(',','.')).join(', ')}
909transformMatrix=new window.WebKitCSSMatrix(curTransform==='none'?'':curTransform)}else{transformMatrix=curStyle.MozTransform||curStyle.OTransform||curStyle.MsTransform||curStyle.msTransform||curStyle.transform||curStyle.getPropertyValue('transform').replace('translate(','matrix(1, 0, 0, 1,');matrix=transformMatrix.toString().split(',')}
910if(axis==='x'){if(window.WebKitCSSMatrix)curTransform=transformMatrix.m41;else if(matrix.length===16)curTransform=parseFloat(matrix[12]);else curTransform=parseFloat(matrix[4])}
911if(axis==='y'){if(window.WebKitCSSMatrix)curTransform=transformMatrix.m42;else if(matrix.length===16)curTransform=parseFloat(matrix[13]);else curTransform=parseFloat(matrix[5])}
912return curTransform||0}
913function isObject(o){return typeof o==='object'&&o!==null&&o.constructor&&Object.prototype.toString.call(o).slice(8,-1)==='Object'}
914function isNode(node){if(typeof window!=='undefined'&&typeof window.HTMLElement!=='undefined'){return node instanceof HTMLElement}
915return node&&(node.nodeType===1||node.nodeType===11)}
916function extend(){const to=Object(arguments.length<=0?undefined:arguments[0]);const noExtend=['__proto__','constructor','prototype'];for(let i=1;i<arguments.length;i+=1){const nextSource=i<0||arguments.length<=i?undefined:arguments[i];if(nextSource!==undefined&&nextSource!==null&&!isNode(nextSource)){const keysArray=Object.keys(Object(nextSource)).filter(key=>noExtend.indexOf(key)<0);for(let nextIndex=0,len=keysArray.length;nextIndex<len;nextIndex+=1){const nextKey=keysArray[nextIndex];const desc=Object.getOwnPropertyDescriptor(nextSource,nextKey);if(desc!==undefined&&desc.enumerable){if(isObject(to[nextKey])&&isObject(nextSource[nextKey])){if(nextSource[nextKey].__swiper__){to[nextKey]=nextSource[nextKey]}else{extend(to[nextKey],nextSource[nextKey])}}else if(!isObject(to[nextKey])&&isObject(nextSource[nextKey])){to[nextKey]={};if(nextSource[nextKey].__swiper__){to[nextKey]=nextSource[nextKey]}else{extend(to[nextKey],nextSource[nextKey])}}else{to[nextKey]=nextSource[nextKey]}}}}}
917return to}
918function setCSSProperty(el,varName,varValue){el.style.setProperty(varName,varValue)}
919function animateCSSModeScroll(_ref){let{swiper,targetPosition,side}=_ref;const window=getWindow();const startPosition=-swiper.translate;let startTime=null;let time;const duration=swiper.params.speed;swiper.wrapperEl.style.scrollSnapType='none';window.cancelAnimationFrame(swiper.cssModeFrameID);const dir=targetPosition>startPosition?'next':'prev';const isOutOfBound=(current,target)=>{return dir==='next'&&current>=target||dir==='prev'&&current<=target};const animate=()=>{time=new Date().getTime();if(startTime===null){startTime=time}
920const progress=Math.max(Math.min((time-startTime)/duration,1),0);const easeProgress=0.5-Math.cos(progress*Math.PI)/2;let currentPosition=startPosition+easeProgress*(targetPosition-startPosition);if(isOutOfBound(currentPosition,targetPosition)){currentPosition=targetPosition}
921swiper.wrapperEl.scrollTo({[side]:currentPosition});if(isOutOfBound(currentPosition,targetPosition)){swiper.wrapperEl.style.overflow='hidden';swiper.wrapperEl.style.scrollSnapType='';setTimeout(()=>{swiper.wrapperEl.style.overflow='';swiper.wrapperEl.scrollTo({[side]:currentPosition})});window.cancelAnimationFrame(swiper.cssModeFrameID);return}
922swiper.cssModeFrameID=window.requestAnimationFrame(animate)};animate()}
923let support;function calcSupport(){const window=getWindow();const document=getDocument();return{smoothScroll:document.documentElement&&'scrollBehavior' in document.documentElement.style,touch:!!('ontouchstart' in window||window.DocumentTouch&&document instanceof window.DocumentTouch),passiveListener:function checkPassiveListener(){let supportsPassive=!1;try{const opts=Object.defineProperty({}
923,'passive',{get(){supportsPassive=!0}});window.addEventListener('testPassiveListener',null,opts)}catch(e){}
924return supportsPassive}(),gestures:function checkGestures(){return'ongesturestart' in window}()}}
925function getSupport(){if(!support){support=calcSupport()}
926return support}
927let deviceCached;function calcDevice(_temp){let{userAgent}=_temp===void 0?{}:_temp;const support=getSupport();const window=getWindow();const platform=window.navigator.platform;const ua=userAgent||window.navigator.userAgent;const device={ios:!1,android:!1};const screenWidth=window.screen.width;const screenHeight=window.screen.height;const android=ua.match(/(Android);?[\s\/]+([\d.]+)?/);let ipad=ua.match(/(iPad).*OS\s([\d_]+)/);const ipod=ua.match(/(iPod)(.*OS\s([\d_]+))?/);const iphone=!ipad&&ua.match(/(iPhone\sOS|iOS)\s([\d_]+)/);const windows=platform==='Win32';let macos=platform==='MacIntel';const iPadScreens=['1024x1366','1366x1024','834x1194','1194x834','834x1112','1112x834','768x1024','1024x768','820x1180','1180x820','810x1080','1080x810'];if(!ipad&&macos&&support.touch&&iPadScreens.indexOf(`${screenWidth}x${screenHeight}`)>=0){ipad=ua.match(/(Version)\/([\d.]+)/);if(!ipad)ipad=[0,1,'13_0_0'];macos=!1}
928if(android&&!windows){device.os='android';device.android=!0}
929if(ipad||iphone||ipod){device.os='ios';device.ios=!0}
930return device}
931function getDevice(overrides){if(overrides===void 0){overrides={}}
932if(!deviceCached){deviceCached=calcDevice(overrides)}
933return deviceCached}
934let browser;function calcBrowser(){const window=getWindow();function isSafari(){const ua=window.navigator.userAgent.toLowerCase();return ua.indexOf('safari')>=0&&ua.indexOf('chrome')<0&&ua.indexOf('android')<0}
935return{isSafari:isSafari(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent)}}
936function getBrowser(){if(!browser){browser=calcBrowser()}
937return browser}
938function Resize(_ref){let{swiper,on,emit}=_ref;const window=getWindow();let observer=null;let animationFrame=null;const resizeHandler=()=>{if(!swiper||swiper.destroyed||!swiper.initialized)return;emit('beforeResize');emit('resize')};const createObserver=()=>{if(!swiper||swiper.destroyed||!swiper.initialized)return;observer=new ResizeObserver(entries=>{animationFrame=window.requestAnimationFrame(()=>{const{width,height}=swiper;let newWidth=width;let newHeight=height;entries.forEach(_ref2=>{let{contentBoxSize,contentRect,target}=_ref2;if(target&&target!==swiper.el)return;newWidth=contentRect?contentRect.width:(contentBoxSize[0]||contentBoxSize).inlineSize;newHeight=contentRect?contentRect.height:(contentBoxSize[0]||contentBoxSize).blockSize});if(newWidth!==width||newHeight!==height){resizeHandler()}})});observer.observe(swiper.el)};const removeObserver=()=>{if(animationFrame){window.cancelAnimationFrame(animationFrame)}
939if(observer&&observer.unobserve&&swiper.el){observer.unobserve(swiper.el);observer=null}};const orientationChangeHandler=()=>{if(!swiper||swiper.destroyed||!swiper.initialized)return;emit('orientationchange')};on('init',()=>{if(swiper.params.resizeObserver&&typeof window.ResizeObserver!=='undefined'){createObserver();return}
940window.addEventListener('resize',resizeHandler);window.addEventListener('orientationchange',orientationChangeHandler)});on('destroy',()=>{removeObserver();window.removeEventListener('resize',resizeHandler);window.removeEventListener('orientationchange',orientationChangeHandler)})}
941function Observer(_ref){let{swiper,extendParams,on,emit}=_ref;const observers=[];const window=getWindow();const attach=function(target,options){if(options===void 0){options={}}
942const ObserverFunc=window.MutationObserver||window.WebkitMutationObserver;const observer=new ObserverFunc(mutations=>{if(mutations.length===1){emit('observerUpdate',mutations[0]);return}
943const observerUpdate=function observerUpdate(){emit('observerUpdate',mutations[0])};if(window.requestAnimationFrame){window.requestAnimationFrame(observerUpdate)}else{window.setTimeout(observerUpdate,0)}});observer.observe(target,{attributes:typeof options.attributes==='undefined'?!0:options.attributes,childList:typeof options.childList==='undefined'?!0:options.childList,characterData:typeof options.characterData==='undefined'?!0:options.characterData});observers.push(observer)};const init=()=>{if(!swiper.params.observer)return;if(swiper.params.observeParents){const containerParents=swiper.$el.parents();for(let i=0;i<containerParents.length;i+=1){attach(containerParents[i])}}
944attach(swiper.$el[0],{childList:swiper.params.observeSlideChildren});attach(swiper.$wrapperEl[0],{attributes:!1})};const destroy=()=>
944{observers.forEach(observer=>{observer.disconnect()});observers.splice(0,observers.length)};extendParams({observer:!1,observeParents:!1,observeSlideChildren:!1});on('init',init);on('destroy',destroy)}
945var eventsEmitter={on(events,handler,priority){const self=this;if(!self.eventsListeners||self.destroyed)return self;if(typeof handler!=='function')return self;const method=priority?'unshift':'push';events.split(' ').forEach(event=>{if(!self.eventsListeners[event])self.eventsListeners[event]=[];self.eventsListeners[event][method](handler)});return self},once(events,handler,priority){const self=this;if(!self.eventsListeners||self.destroyed)return self;if(typeof handler!=='function')return self;function onceHandler(){self.off(events,onceHandler);if(onceHandler.__emitterProxy){delete onceHandler.__emitterProxy}
946for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}
947handler.apply(self,args)}
948onceHandler.__emitterProxy=handler;return self.on(events,onceHandler,priority)},onAny(handler,priority){const self=this;if(!self.eventsListeners||self.destroyed)return self;if(typeof handler!=='function')return self;const method=priority?'unshift':'push';if(self.eventsAnyListeners.indexOf(handler)<0){self.eventsAnyListeners[method](handler)}
949return self},offAny(handler){const self=this;if(!self.eventsListeners||self.destroyed)return self;if(!self.eventsAnyListeners)return self;const index=self.eventsAnyListeners.indexOf(handler);if(index>=0){self.eventsAnyListeners.splice(index,1)}
950return self},off(events,handler){const self=this;if(!self.eventsListeners||self.destroyed)return self;if(!self.eventsListeners)return self;events.split(' ').forEach(event=>{if(typeof handler==='undefined'){self.eventsListeners[event]=[]}else if(self.eventsListeners[event]){self.eventsListeners[event].forEach((eventHandler,index)=>{if(eventHandler===handler||eventHandler.__emitterProxy&&eventHandler.__emitterProxy===handler){self.eventsListeners[event].splice(index,1)}})}});return self},emit(){const self=this;if(!self.eventsListeners||self.destroyed)return self;if(!self.eventsListeners)return self;let events;let data;let context;for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++){args[_key2]=arguments[_key2]}
951if(typeof args[0]==='string'||Array.isArray(args[0])){events=args[0];data=args.slice(1,args.length);context=self}else{events=args[0].events;data=args[0].data;context=args[0].context||self}
952data.unshift(context);const eventsArray=Array.isArray(events)?events:events.split(' ');eventsArray.forEach(event=>{if(self.eventsAnyListeners&&self.eventsAnyListeners.length){self.eventsAnyListeners.forEach(eventHandler=>{eventHandler.apply(context,[event,...data])})}
953if(self.eventsListeners&&self.eventsListeners[event]){self.eventsListeners[event].forEach(eventHandler=>{eventHandler.apply(context,data)})}});return self}};function updateSize(){const swiper=this;let width;let height;const $el=swiper.$el;if(typeof swiper.params.width!=='undefined'&&swiper.params.width!==null){width=swiper.params.width}else{width=$el[0].clientWidth}
954if(typeof swiper.params.height!=='undefined'&&swiper.params.height!==null){height=swiper.params.height}else{height=$el[0].clientHeight}
955if(width===0&&swiper.isHorizontal()||height===0&&swiper.isVertical()){return}
956width=width-parseInt($el.css('padding-left')||0,10)-parseInt($el.css('padding-right')||0,10);height=height-parseInt($el.css('padding-top')||0,10)-parseInt($el.css('padding-bottom')||0,10);if(Number.isNaN(width))width=0;if(Number.isNaN(height))height=0;Object.assign(swiper,{width,height,size:swiper.isHorizontal()?width:height})}
957function updateSlides(){const swiper=this;function getDirectionLabel(property){if(swiper.isHorizontal()){return property}
958return{'width':'height','margin-top':'margin-left','margin-bottom ':'margin-right','margin-left':'margin-top','margin-right':'margin-bottom','padding-left':'padding-top','padding-right':'padding-bottom','marginRight':'marginBottom'}[property]}
959function getDirectionPropertyValue(node,label){return parseFloat(node.getPropertyValue(getDirectionLabel(label))||0)}
960const params=swiper.params;const{$wrapperEl,size:swiperSize,rtlTranslate:rtl,wrongRTL}=swiper;
vendor: 5,481 bytes, lines 960-984
960const isVirtual=swiper.virtual&&params.virtual.enabled;const previousSlidesLength=isVirtual?swiper.virtual.slides.length:swiper.slides.length;const slides=$wrapperEl.children(`.${swiper.params.slideClass}`);const slidesLength=isVirtual?swiper.virtual.slides.length:slides.length;let snapGrid=[];const slidesGrid=[];const slidesSizesGrid=[];let offsetBefore=params.slidesOffsetBefore;if(typeof offsetBefore==='function'){offsetBefore=params.slidesOffsetBefore.call(swiper)}
961let offsetAfter=params.slidesOffsetAfter;if(typeof offsetAfter==='function'){offsetAfter=params.slidesOffsetAfter.call(swiper)}
962const previousSnapGridLength=swiper.snapGrid.length;const previousSlidesGridLength=swiper.slidesGrid.length;let spaceBetween=params.spaceBetween;let slidePosition=-offsetBefore;let prevSlideSize=0;let index=0;if(typeof swiperSize==='undefined'){return}
963if(typeof spaceBetween==='string'&&spaceBetween.indexOf('%')>=0){spaceBetween=parseFloat(spaceBetween.replace('%',''))/100*swiperSize}
964swiper.virtualSize=-spaceBetween;if(rtl)slides.css({marginLeft:'',marginBottom:'',marginTop:''});else slides.css({marginRight:'',marginBottom:'',marginTop:''});if(params.centeredSlides&&params.cssMode){setCSSProperty(swiper.wrapperEl,'--swiper-centered-offset-before','');setCSSProperty(swiper.wrapperEl,'--swiper-centered-offset-after','')}
965const gridEnabled=params.grid&&params.grid.rows>1&&swiper.grid;if(gridEnabled){swiper.grid.initSlides(slidesLength)}
966let slideSize;const shouldResetSlideSize=params.slidesPerView==='auto'&&params.breakpoints&&Object.keys(params.breakpoints).filter(key=>{return typeof params.breakpoints[key].slidesPerView!=='undefined'}).length>0;for(let i=0;i<slidesLength;i+=1){slideSize=0;const slide=slides.eq(i);if(gridEnabled){swiper.grid.updateSlide(i,slide,slidesLength,getDirectionLabel)}
967if(slide.css('display')==='none')continue;if(params.slidesPerView==='auto'){if(shouldResetSlideSize){slides[i].style[getDirectionLabel('width')]=``}
968const slideStyles=getComputedStyle(slide[0]);const currentTransform=slide[0].style.transform;const currentWebKitTransform=slide[0].style.webkitTransform;if(currentTransform){slide[0].style.transform='none'}
969if(currentWebKitTransform){slide[0].style.webkitTransform='none'}
970if(params.roundLengths){slideSize=swiper.isHorizontal()?slide.outerWidth(!0):slide.outerHeight(!0)}else{const width=getDirectionPropertyValue(slideStyles,'width');const paddingLeft=getDirectionPropertyValue(slideStyles,'padding-left');const paddingRight=getDirectionPropertyValue(slideStyles,'padding-right');const marginLeft=getDirectionPropertyValue(slideStyles,'margin-left');const marginRight=getDirectionPropertyValue(slideStyles,'margin-right');const boxSizing=slideStyles.getPropertyValue('box-sizing');if(boxSizing&&boxSizing==='border-box'){slideSize=width+marginLeft+marginRight}else{const{clientWidth,offsetWidth}=slide[0];slideSize=width+paddingLeft+paddingRight+marginLeft+marginRight+(offsetWidth-clientWidth)}}
971if(currentTransform){slide[0].style.transform=currentTransform}
972if(currentWebKitTransform){slide[0].style.webkitTransform=currentWebKitTransform}
973if(params.roundLengths)slideSize=Math.floor(slideSize);}else{slideSize=(swiperSize-(params.slidesPerView-1)*spaceBetween)/params.slidesPerView;if(params.roundLengths)slideSize=Math.floor(slideSize);if(slides[i]){slides[i].style[getDirectionLabel('width')]=`${slideSize}px`}}
974if(slides[i]){slides[i].swiperSlideSize=slideSize}
975slidesSizesGrid.push(slideSize);if(params.centeredSlides){slidePosition=slidePosition+slideSize/2+prevSlideSize/2+spaceBetween;if(prevSlideSize===0&&i!==0)slidePosition=slidePosition-swiperSize/2-spaceBetween;if(i===0)slidePosition=slidePosition-swiperSize/2-spaceBetween;if(Math.abs(slidePosition)<1/1000)slidePosition=0;if(params.roundLengths)slidePosition=Math.floor(slidePosition);if(index%params.slidesPerGroup===0)snapGrid.push(slidePosition);slidesGrid.push(slidePosition)}else{if(params.roundLengths)slidePosition=Math.floor(slidePosition);if((index-Math.min(swiper.params.slidesPerGroupSkip,index))%swiper.params.slidesPerGroup===0)snapGrid.push(slidePosition);slidesGrid.push(slidePosition);slidePosition=slidePosition+slideSize+spaceBetween}
976swiper.virtualSize+=slideSize+spaceBetween;prevSlideSize=slideSize;index+=1}
977swiper.virtualSize=Math.max(swiper.virtualSize,swiperSize)+offsetAfter;if(rtl&&wrongRTL&&(params.effect==='slide'||params.effect==='coverflow')){$wrapperEl.css({width:`${swiper.virtualSize + params.spaceBetween}px`})}
978if(params.setWrapperSize){$wrapperEl.css({[getDirectionLabel('width')]:`${swiper.virtualSize + params.spaceBetween}px`})}
979if(gridEnabled){swiper.grid.updateWrapperSize(slideSize,snapGrid,getDirectionLabel)}
980if(!params.centeredSlides){const newSlidesGrid=[];for(let i=0;i<snapGrid.length;i+=1){let slidesGridItem=snapGrid[i];if(params.roundLengths)slidesGridItem=Math.floor(slidesGridItem);if(snapGrid[i]<=swiper.virtualSize-swiperSize){newSlidesGrid.push(slidesGridItem)}}
981snapGrid=newSlidesGrid;if(Math.floor(swiper.virtualSize-swiperSize)-Math.floor(snapGrid[snapGrid.length-1])>1){snapGrid.push(swiper.virtualSize-swiperSize)}}
982if(snapGrid.length===0)snapGrid=[0];if(params.spaceBetween!==0){const key=swiper.isHorizontal()&&rtl?'marginLeft':getDirectionLabel('marginRight');slides.filter((_,slideIndex)=>{if(!params.cssMode)return!0;if(slideIndex===slides.length-1){return!1}
983return!0}).css({[key]:`${spaceBetween}px`})}
984if(params.centeredSlides&&params.centeredSlidesBounds){let allSlidesSize=0;
984slidesSizesGrid.forEach(slideSizeValue=>{allSlidesSize+=slideSizeValue+(params.spaceBetween?params.spaceBetween:0)});allSlidesSize-=params.spaceBetween;const maxSnap=allSlidesSize-swiperSize;snapGrid=snapGrid.map(snap=>{if(snap<0)return-offsetBefore;if(snap>maxSnap)return maxSnap+offsetAfter;return snap})}
985if(params.centerInsufficientSlides){let allSlidesSize=0;slidesSizesGrid.forEach(slideSizeValue=>{allSlidesSize+=slideSizeValue+(params.spaceBetween?params.spaceBetween:0)});allSlidesSize-=params.spaceBetween;if(allSlidesSize<swiperSize){const allSlidesOffset=(swiperSize-allSlidesSize)/2;snapGrid.forEach((snap,snapIndex)=>{snapGrid[snapIndex]=snap-allSlidesOffset});slidesGrid.forEach((snap,snapIndex)=>{slidesGrid[snapIndex]=snap+allSlidesOffset})}}
986Object.assign(swiper,{slides,snapGrid,slidesGrid,slidesSizesGrid});if(params.centeredSlides&&params.cssMode&&!params.centeredSlidesBounds){setCSSProperty(swiper.wrapperEl,'--swiper-centered-offset-before',`${-snapGrid[0]}px`);setCSSProperty(swiper.wrapperEl,'--swiper-centered-offset-after',`${swiper.size / 2 - slidesSizesGrid[slidesSizesGrid.length - 1] / 2}px`);const addToSnapGrid=-swiper.snapGrid[0];const addToSlidesGrid=-swiper.slidesGrid[0];swiper.snapGrid=swiper.snapGrid.map(v=>v+addToSnapGrid);swiper.slidesGrid=swiper.slidesGrid.map(v=>v+addToSlidesGrid)}
987if(slidesLength!==previousSlidesLength){swiper.emit('slidesLengthChange')}
988if(snapGrid.length!==previousSnapGridLength){if(swiper.params.watchOverflow)swiper.checkOverflow();swiper.emit('snapGridLengthChange')}
989if(slidesGrid.length!==previousSlidesGridLength){swiper.emit('slidesGridLengthChange')}
990if(params.watchSlidesProgress){swiper.updateSlidesOffset()}
991if(!isVirtual&&!params.cssMode&&(params.effect==='slide'||params.effect==='fade')){const backFaceHiddenClass=`${params.containerModifierClass}backface-hidden`;const hasClassBackfaceClassAdded=swiper.$el.hasClass(backFaceHiddenClass);if(slidesLength<=params.maxBackfaceHiddenSlides){if(!hasClassBackfaceClassAdded)swiper.$el.addClass(backFaceHiddenClass);}else if(hasClassBackfaceClassAdded){swiper.$el.removeClass(backFaceHiddenClass)}}}
992function updateAutoHeight(speed){const swiper=this;const activeSlides=[];const isVirtual=swiper.virtual&&swiper.params.virtual.enabled;let newHeight=0;let i;if(typeof speed==='number'){swiper.setTransition(speed)}else if(speed===!0){swiper.setTransition(swiper.params.speed)}
993const getSlideByIndex=index=>{if(isVirtual){return swiper.slides.filter(el=>parseInt(el.getAttribute('data-swiper-slide-index'),10)===index)[0]}
994return swiper.slides.eq(index)[0]};if(swiper.params.slidesPerView!=='auto'&&swiper.params.slidesPerView>1){if(swiper.params.centeredSlides){(swiper.visibleSlides||$([])).each(slide=>{activeSlides.push(slide)})}else{for(i=0;i<Math.ceil(swiper.params.slidesPerView);i+=1){const index=swiper.activeIndex+i;if(index>swiper.slides.length&&!isVirtual)break;activeSlides.push(getSlideByIndex(index))}}}else{activeSlides.push(getSlideByIndex(swiper.activeIndex))}
995for(i=0;i<activeSlides.length;i+=1){if(typeof activeSlides[i]!=='undefined'){const height=activeSlides[i].offsetHeight;newHeight=height>newHeight?height:newHeight}}
996if(newHeight||newHeight===0)swiper.$wrapperEl.css('height',`${newHeight}px`);}
997function updateSlidesOffset(){const swiper=this;const slides=swiper.slides;for(let i=0;i<slides.length;i+=1){slides[i].swiperSlideOffset=swiper.isHorizontal()?slides[i].offsetLeft:slides[i].offsetTop}}
998function updateSlidesProgress(translate){if(translate===void 0){translate=this&&this.translate||0}
999const swiper=this;const params=swiper.params;const{slides,rtlTranslate:rtl,snapGrid}=swiper;if(slides.length===0)return;if(typeof slides[0].swiperSlideOffset==='undefined')swiper.updateSlidesOffset();let offsetCenter=-translate;if(rtl)offsetCenter=translate;slides.removeClass(params.slideVisibleClass);swiper.visibleSlidesIndexes=[];swiper.visibleSlides=[];for(let i=0;i<slides.length;i+=1){const slide=slides[i];let slideOffset=slide.swiperSlideOffset;if(params.cssMode&&params.centeredSlides){slideOffset-=slides[0].swiperSlideOffset}
1000const slideProgress=(offsetCenter+(params.centeredSlides?swiper.minTranslate():0)-slideOffset)/(slide.swiperSlideSize+params.spaceBetween);
vendor: 4,168 bytes, lines 1000-1016
1000const originalSlideProgress=(offsetCenter-snapGrid[0]+(params.centeredSlides?swiper.minTranslate():0)-slideOffset)/(slide.swiperSlideSize+params.spaceBetween);const slideBefore=-(offsetCenter-slideOffset);const slideAfter=slideBefore+swiper.slidesSizesGrid[i];const isVisible=slideBefore>=0&&slideBefore<swiper.size-1||slideAfter>1&&slideAfter<=swiper.size||slideBefore<=0&&slideAfter>=swiper.size;if(isVisible){swiper.visibleSlides.push(slide);swiper.visibleSlidesIndexes.push(i);slides.eq(i).addClass(params.slideVisibleClass)}
1001slide.progress=rtl?-slideProgress:slideProgress;slide.originalProgress=rtl?-originalSlideProgress:originalSlideProgress}
1002swiper.visibleSlides=$(swiper.visibleSlides)}
1003function updateProgress(translate){const swiper=this;if(typeof translate==='undefined'){const multiplier=swiper.rtlTranslate?-1:1;translate=swiper&&swiper.translate&&swiper.translate*multiplier||0}
1004const params=swiper.params;const translatesDiff=swiper.maxTranslate()-swiper.minTranslate();let{progress,isBeginning,isEnd}=swiper;const wasBeginning=isBeginning;const wasEnd=isEnd;if(translatesDiff===0){progress=0;isBeginning=!0;isEnd=!0}else{progress=(translate-swiper.minTranslate())/translatesDiff;isBeginning=progress<=0;isEnd=progress>=1}
1005Object.assign(swiper,{progress,isBeginning,isEnd});if(params.watchSlidesProgress||params.centeredSlides&&params.autoHeight)swiper.updateSlidesProgress(translate);if(isBeginning&&!wasBeginning){swiper.emit('reachBeginning toEdge')}
1006if(isEnd&&!wasEnd){swiper.emit('reachEnd toEdge')}
1007if(wasBeginning&&!isBeginning||wasEnd&&!isEnd){swiper.emit('fromEdge')}
1008swiper.emit('progress',progress)}
1009function updateSlidesClasses(){const swiper=this;const{slides,params,$wrapperEl,activeIndex,realIndex}=swiper;const isVirtual=swiper.virtual&&params.virtual.enabled;slides.removeClass(`${params.slideActiveClass} ${params.slideNextClass} ${params.slidePrevClass} ${params.slideDuplicateActiveClass} ${params.slideDuplicateNextClass} ${params.slideDuplicatePrevClass}`);let activeSlide;if(isVirtual){activeSlide=swiper.$wrapperEl.find(`.${params.slideClass}[data-swiper-slide-index="${activeIndex}"]`)}else{activeSlide=slides.eq(activeIndex)}
1010activeSlide.addClass(params.slideActiveClass);if(params.loop){if(activeSlide.hasClass(params.slideDuplicateClass)){$wrapperEl.children(`.${params.slideClass}:not(.${params.slideDuplicateClass})[data-swiper-slide-index="${realIndex}"]`).addClass(params.slideDuplicateActiveClass)}else{$wrapperEl.children(`.${params.slideClass}.${params.slideDuplicateClass}[data-swiper-slide-index="${realIndex}"]`).addClass(params.slideDuplicateActiveClass)}}
1011let nextSlide=activeSlide.nextAll(`.${params.slideClass}`).eq(0).addClass(params.slideNextClass);if(params.loop&&nextSlide.length===0){nextSlide=slides.eq(0);nextSlide.addClass(params.slideNextClass)}
1012let prevSlide=activeSlide.prevAll(`.${params.slideClass}`).eq(0).addClass(params.slidePrevClass);if(params.loop&&prevSlide.length===0){prevSlide=slides.eq(-1);prevSlide.addClass(params.slidePrevClass)}
1013if(params.loop){if(nextSlide.hasClass(params.slideDuplicateClass)){$wrapperEl.children(`.${params.slideClass}:not(.${params.slideDuplicateClass})[data-swiper-slide-index="${nextSlide.attr('data-swiper-slide-index')}"]`).addClass(params.slideDuplicateNextClass)}else{$wrapperEl.children(`.${params.slideClass}.${params.slideDuplicateClass}[data-swiper-slide-index="${nextSlide.attr('data-swiper-slide-index')}"]`).addClass(params.slideDuplicateNextClass)}
1014if(prevSlide.hasClass(params.slideDuplicateClass)){$wrapperEl.children(`.${params.slideClass}:not(.${params.slideDuplicateClass})[data-swiper-slide-index="${prevSlide.attr('data-swiper-slide-index')}"]`).addClass(params.slideDuplicatePrevClass)}else{$wrapperEl.children(`.${params.slideClass}.${params.slideDuplicateClass}[data-swiper-slide-index="${prevSlide.attr('data-swiper-slide-index')}"]`).addClass(params.slideDuplicatePrevClass)}}
1015swiper.emitSlidesClasses()}
1016function updateActiveIndex(newActiveIndex){const swiper=this;const translate=swiper.rtlTranslate?swiper.translate:-swiper.translate;const{slidesGrid,snapGrid,params,activeIndex:previousIndex,realIndex:previousRealIndex,snapIndex:
1016previousSnapIndex}=swiper;let activeIndex=newActiveIndex;let snapIndex;if(typeof activeIndex==='undefined'){for(let i=0;i<slidesGrid.length;i+=1){if(typeof slidesGrid[i+1]!=='undefined'){if(translate>=slidesGrid[i]&&translate<slidesGrid[i+1]-(slidesGrid[i+1]-slidesGrid[i])/2){activeIndex=i}else if(translate>=slidesGrid[i]&&translate<slidesGrid[i+1]){activeIndex=i+1}}else if(translate>=slidesGrid[i]){activeIndex=i}}
1017if(params.normalizeSlideIndex){if(activeIndex<0||typeof activeIndex==='undefined')activeIndex=0}}
1018if(snapGrid.indexOf(translate)>=0){snapIndex=snapGrid.indexOf(translate)}else{const skip=Math.min(params.slidesPerGroupSkip,activeIndex);snapIndex=skip+Math.floor((activeIndex-skip)/params.slidesPerGroup)}
1019if(snapIndex>=snapGrid.length)snapIndex=snapGrid.length-1;if(activeIndex===previousIndex){if(snapIndex!==previousSnapIndex){swiper.snapIndex=snapIndex;swiper.emit('snapIndexChange')}
1020return}
1021const realIndex=parseInt(swiper.slides.eq(activeIndex).attr('data-swiper-slide-index')||activeIndex,10);Object.assign(swiper,{snapIndex,realIndex,previousIndex,activeIndex});swiper.emit('activeIndexChange');swiper.emit('snapIndexChange');if(previousRealIndex!==realIndex){swiper.emit('realIndexChange')}
1022if(swiper.initialized||swiper.params.runCallbacksOnInit){swiper.emit('slideChange')}}
1023function updateClickedSlide(e){const swiper=this;const params=swiper.params;const slide=$(e).closest(`.${params.slideClass}`)[0];let slideFound=!1;let slideIndex;if(slide){for(let i=0;i<swiper.slides.length;i+=1){if(swiper.slides[i]===slide){slideFound=!0;slideIndex=i;break}}}
1024if(slide&&slideFound){swiper.clickedSlide=slide;if(swiper.virtual&&swiper.params.virtual.enabled){swiper.clickedIndex=parseInt($(slide).attr('data-swiper-slide-index'),10)}else{swiper.clickedIndex=slideIndex}}else{swiper.clickedSlide=undefined;swiper.clickedIndex=undefined;return}
1025if(params.slideToClickedSlide&&swiper.clickedIndex!==undefined&&swiper.clickedIndex!==swiper.activeIndex){swiper.slideToClickedSlide()}}
1026var update={updateSize,updateSlides,updateAutoHeight,updateSlidesOffset,updateSlidesProgress,updateProgress,updateSlidesClasses,updateActiveIndex,updateClickedSlide};function getSwiperTranslate(axis){if(axis===void 0){axis=this.isHorizontal()?'x':'y'}
1027const swiper=this;const{params,rtlTranslate:rtl,translate,$wrapperEl}=swiper;if(params.virtualTranslate){return rtl?-translate:translate}
1028if(params.cssMode){return translate}
1029let currentTranslate=getTranslate($wrapperEl[0],axis);if(rtl)currentTranslate=-currentTranslate;return currentTranslate||0}
1030function setTranslate(translate,byController){const swiper=this;const{rtlTranslate:rtl,params,$wrapperEl,wrapperEl,progress}=swiper;let x=0;let y=0;const z=0;if(swiper.isHorizontal()){x=rtl?-translate:translate}else{y=translate}
1031if(params.roundLengths){x=Math.floor(x);y=Math.floor(y)}
1032if(params.cssMode){wrapperEl[swiper.isHorizontal()?'scrollLeft':'scrollTop']=swiper.isHorizontal()?-x:-y}else if(!params.virtualTranslate){$wrapperEl.transform(`translate3d(${x}px, ${y}px, ${z}px)`)}
1033swiper.previousTranslate=swiper.translate;swiper.translate=swiper.isHorizontal()?x:y;let newProgress;const translatesDiff=swiper.maxTranslate()-swiper.minTranslate();if(translatesDiff===0){newProgress=0}else{newProgress=(translate-swiper.minTranslate())/translatesDiff}
1034if(newProgress!==progress){swiper.updateProgress(translate)}
1035swiper.emit('setTranslate',swiper.translate,byController)}
1036function minTranslate(){return-this.snapGrid[0]}
1037function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}
1038function translateTo(translate,speed,runCallbacks,translateBounds,internal){if(translate===void 0){translate=0}
1039if(speed===void 0){speed=this.params.speed}
1040if(runCallbacks===void 0){runCallbacks=!0}
1041if(translateBounds===void 0){translateBounds=!0}
1042const swiper=this;const{params,wrapperEl}=swiper;if(swiper.animating&&params.preventInteractionOnTransition){return!1}
1043const minTranslate=swiper.minTranslate();const maxTranslate=swiper.maxTranslate();let newTranslate;if(translateBounds&&translate>minTranslate)newTranslate=minTranslate;else if(translateBounds&&translate<maxTranslate)newTranslate=maxTranslate;else newTranslate=translate;swiper.updateProgress(newTranslate);
1043if(params.cssMode){const isH=swiper.isHorizontal();if(speed===0){wrapperEl[isH?'scrollLeft':'scrollTop']=-newTranslate}else{if(!swiper.support.smoothScroll){animateCSSModeScroll({swiper,targetPosition:-newTranslate,side:isH?'left':'top'});return!0}
1044wrapperEl.scrollTo({[isH?'left':'top']:-newTranslate,behavior:'smooth'})}
1045return!0}
1046if(speed===0){swiper.setTransition(0);swiper.setTranslate(newTranslate);if(runCallbacks){swiper.emit('beforeTransitionStart',speed,internal);swiper.emit('transitionEnd')}}else{swiper.setTransition(speed);swiper.setTranslate(newTranslate);if(runCallbacks){swiper.emit('beforeTransitionStart',speed,internal);swiper.emit('transitionStart')}
1047if(!swiper.animating){swiper.animating=!0;if(!swiper.onTranslateToWrapperTransitionEnd){swiper.onTranslateToWrapperTransitionEnd=function transitionEnd(e){if(!swiper||swiper.destroyed)return;if(e.target!==this)return;swiper.$wrapperEl[0].removeEventListener('transitionend',swiper.onTranslateToWrapperTransitionEnd);swiper.$wrapperEl[0].removeEventListener('webkitTransitionEnd',swiper.onTranslateToWrapperTransitionEnd);swiper.onTranslateToWrapperTransitionEnd=null;delete swiper.onTranslateToWrapperTransitionEnd;if(runCallbacks){swiper.emit('transitionEnd')}}}
1048swiper.$wrapperEl[0].addEventListener('transitionend',swiper.onTranslateToWrapperTransitionEnd);swiper.$wrapperEl[0].addEventListener('webkitTransitionEnd',swiper.onTranslateToWrapperTransitionEnd)}}
1049return!0}
1050var translate={getTranslate:getSwiperTranslate,setTranslate,minTranslate,maxTranslate,translateTo};function setTransition(duration,byController){const swiper=this;if(!swiper.params.cssMode){swiper.$wrapperEl.transition(duration)}
1051swiper.emit('setTransition',duration,byController)}
1052function transitionEmit(_ref){let{swiper,runCallbacks,direction,step}=_ref;const{activeIndex,previousIndex}=swiper;let dir=direction;if(!dir){if(activeIndex>previousIndex)dir='next';else if(activeIndex<previousIndex)dir='prev';else dir='reset'}
1053swiper.emit(`transition${step}`);if(runCallbacks&&activeIndex!==previousIndex){if(dir==='reset'){swiper.emit(`slideResetTransition${step}`);return}
1054swiper.emit(`slideChangeTransition${step}`);if(dir==='next'){swiper.emit(`slideNextTransition${step}`)}else{swiper.emit(`slidePrevTransition${step}`)}}}
1055function transitionStart(runCallbacks,direction){if(runCallbacks===void 0){runCallbacks=!0}
1056const swiper=this;const{params}=swiper;if(params.cssMode)return;if(params.autoHeight){swiper.updateAutoHeight()}
1057transitionEmit({swiper,runCallbacks,direction,step:'Start'})}
1058function transitionEnd(runCallbacks,direction){if(runCallbacks===void 0){runCallbacks=!0}
1059const swiper=this;const{params}=swiper;swiper.animating=!1;if(params.cssMode)return;swiper.setTransition(0);transitionEmit({swiper,runCallbacks,direction,step:'End'})}
1060var transition={setTransition,transitionStart,transitionEnd};function slideTo(index,speed,runCallbacks,internal,initial){if(index===void 0){index=0}
1061if(speed===void 0){speed=this.params.speed}
1062if(runCallbacks===void 0){runCallbacks=!0}
1063if(typeof index!=='number'&&typeof index!=='string'){throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof index}] given.`)}
1064if(typeof index==='string'){const indexAsNumber=parseInt(index,10);const isValidNumber=isFinite(indexAsNumber);if(!isValidNumber){throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${index}] given.`)}
1065index=indexAsNumber}
1066const swiper=this;let slideIndex=index;if(slideIndex<0)slideIndex=0;const{params,snapGrid,slidesGrid,previousIndex,activeIndex,rtlTranslate:rtl,wrapperEl,enabled}=swiper;if(swiper.animating&&params.preventInteractionOnTransition||!enabled&&!internal&&!initial){return!1}
1067const skip=Math.min(swiper.params.slidesPerGroupSkip,slideIndex);let snapIndex=skip+Math.floor((slideIndex-skip)/swiper.params.slidesPerGroup);if(snapIndex>=snapGrid.length)snapIndex=snapGrid.length-1;const translate=-snapGrid[snapIndex];if(params.normalizeSlideIndex){for(let i=0;i<slidesGrid.length;i+=1){const normalizedTranslate=-Math.floor(translate*100);const normalizedGrid=Math.floor(slidesGrid[i]*100);const normalizedGridNext=Math.floor(slidesGrid[i+1]*100);if(typeof slidesGrid[i+1]!=='undefined'){if(normalizedTranslate>=normalizedGrid&&normalizedTranslate<normalizedGridNext-(normalizedGridNext-normalizedGrid)/2){slideIndex=i}else if(normalizedTranslate>=normalizedGrid&&normalizedTranslate<normalizedGridNext){slideIndex=i+1}}else if(normalizedTranslate>=normalizedGrid){slideIndex=i}}}
1068if(swiper.initialized&&slideIndex!==activeIndex){if(!swiper.allowSlideNext&&translate<swiper.translate&&translate<swiper.minTranslate()){return!1}
1069if(!swiper.allowSlidePrev&&translate>swiper.translate&&translate>
1069swiper.maxTranslate()){if((activeIndex||0)!==slideIndex)return!1}}
1070if(slideIndex!==(previousIndex||0)&&runCallbacks){swiper.emit('beforeSlideChangeStart')}
1071swiper.updateProgress(translate);let direction;if(slideIndex>activeIndex)direction='next';else if(slideIndex<activeIndex)direction='prev';else direction='reset';if(rtl&&-translate===swiper.translate||!rtl&&translate===swiper.translate){swiper.updateActiveIndex(slideIndex);if(params.autoHeight){swiper.updateAutoHeight()}
1072swiper.updateSlidesClasses();if(params.effect!=='slide'){swiper.setTranslate(translate)}
1073if(direction!=='reset'){swiper.transitionStart(runCallbacks,direction);swiper.transitionEnd(runCallbacks,direction)}
1074return!1}
1075if(params.cssMode){const isH=swiper.isHorizontal();const t=rtl?translate:-translate;if(speed===0){const isVirtual=swiper.virtual&&swiper.params.virtual.enabled;if(isVirtual){swiper.wrapperEl.style.scrollSnapType='none';swiper._immediateVirtual=!0}
1076wrapperEl[isH?'scrollLeft':'scrollTop']=t;if(isVirtual){requestAnimationFrame(()=>{swiper.wrapperEl.style.scrollSnapType='';swiper._swiperImmediateVirtual=!1})}}else{if(!swiper.support.smoothScroll){animateCSSModeScroll({swiper,targetPosition:t,side:isH?'left':'top'});return!0}
1077wrapperEl.scrollTo({[isH?'left':'top']:t,behavior:'smooth'})}
1078return!0}
1079swiper.setTransition(speed);swiper.setTranslate(translate);swiper.updateActiveIndex(slideIndex);swiper.updateSlidesClasses();swiper.emit('beforeTransitionStart',speed,internal);swiper.transitionStart(runCallbacks,direction);if(speed===0){swiper.transitionEnd(runCallbacks,direction)}else if(!swiper.animating){swiper.animating=!0;if(!swiper.onSlideToWrapperTransitionEnd){swiper.onSlideToWrapperTransitionEnd=function transitionEnd(e){if(!swiper||swiper.destroyed)return;if(e.target!==this)return;swiper.$wrapperEl[0].removeEventListener('transitionend',swiper.onSlideToWrapperTransitionEnd);swiper.$wrapperEl[0].removeEventListener('webkitTransitionEnd',swiper.onSlideToWrapperTransitionEnd);swiper.onSlideToWrapperTransitionEnd=null;delete swiper.onSlideToWrapperTransitionEnd;swiper.transitionEnd(runCallbacks,direction)}}
1080swiper.$wrapperEl[0].addEventListener('transitionend',swiper.onSlideToWrapperTransitionEnd);swiper.$wrapperEl[0].addEventListener('webkitTransitionEnd',swiper.onSlideToWrapperTransitionEnd)}
1081return!0}
1082function slideToLoop(index,speed,runCallbacks,internal){if(index===void 0){index=0}
1083if(speed===void 0){speed=this.params.speed}
1084if(runCallbacks===void 0){runCallbacks=!0}
1085if(typeof index==='string'){const indexAsNumber=parseInt(index,10);const isValidNumber=isFinite(indexAsNumber);if(!isValidNumber){throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${index}] given.`)}
1086index=indexAsNumber}
1087const swiper=this;let newIndex=index;if(swiper.params.loop){newIndex+=swiper.loopedSlides}
1088return swiper.slideTo(newIndex,speed,runCallbacks,internal)}
1089function slideNext(speed,runCallbacks,internal){if(speed===void 0){speed=this.params.speed}
1090if(runCallbacks===void 0){runCallbacks=!0}
1091const swiper=this;const{animating,enabled,params}=swiper;if(!enabled)return swiper;let perGroup=params.slidesPerGroup;if(params.slidesPerView==='auto'&&params.slidesPerGroup===1&&params.slidesPerGroupAuto){perGroup=Math.max(swiper.slidesPerViewDynamic('current',!0),1)}
1092const increment=swiper.activeIndex<params.slidesPerGroupSkip?1:perGroup;if(params.loop){if(animating&&params.loopPreventsSlide)return!1;swiper.loopFix();swiper._clientLeft=swiper.$wrapperEl[0].clientLeft}
1093if(params.rewind&&swiper.isEnd){return swiper.slideTo(0,speed,runCallbacks,internal)}
1094return swiper.slideTo(swiper.activeIndex+increment,speed,runCallbacks,internal)}
1095function slidePrev(speed,runCallbacks,internal){if(speed===void 0){speed=this.params.speed}
1096if(runCallbacks===void 0){runCallbacks=!0}
1097const swiper=this;const{params,animating,snapGrid,slidesGrid,rtlTranslate,enabled}=swiper;if(!enabled)return swiper;if(params.loop){if(animating&&params.loopPreventsSlide)return!1;swiper.loopFix();swiper._clientLeft=swiper.$wrapperEl[0].clientLeft}
1098const translate=rtlTranslate?swiper.translate:-swiper.translate;function normalize(val){if(val<0)return-Math.floor(Math.abs(val));return Math.floor(val)}
1099const normalizedTranslate=normalize(translate);const normalizedSnapGrid=snapGrid.map(val=>normalize(val));let prevSnap=snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate)-1];if(typeof prevSnap==='undefined'&&params.cssMode){let prevSnapIndex;
1099snapGrid.forEach((snap,snapIndex)=>{if(normalizedTranslate>=snap){prevSnapIndex=snapIndex}});if(typeof prevSnapIndex!=='undefined'){prevSnap=snapGrid[prevSnapIndex>0?prevSnapIndex-1:prevSnapIndex]}}
1100let prevIndex=0;if(typeof prevSnap!=='undefined'){prevIndex=slidesGrid.indexOf(prevSnap);if(prevIndex<0)prevIndex=swiper.activeIndex-1;if(params.slidesPerView==='auto'&&params.slidesPerGroup===1&&params.slidesPerGroupAuto){prevIndex=prevIndex-swiper.slidesPerViewDynamic('previous',!0)+1;prevIndex=Math.max(prevIndex,0)}}
1101if(params.rewind&&swiper.isBeginning){const lastIndex=swiper.params.virtual&&swiper.params.virtual.enabled&&swiper.virtual?swiper.virtual.slides.length-1:swiper.slides.length-1;return swiper.slideTo(lastIndex,speed,runCallbacks,internal)}
1102return swiper.slideTo(prevIndex,speed,runCallbacks,internal)}
1103function slideReset(speed,runCallbacks,internal){if(speed===void 0){speed=this.params.speed}
1104if(runCallbacks===void 0){runCallbacks=!0}
1105const swiper=this;return swiper.slideTo(swiper.activeIndex,speed,runCallbacks,internal)}
1106function slideToClosest(speed,runCallbacks,internal,threshold){if(speed===void 0){speed=this.params.speed}
1107if(runCallbacks===void 0){runCallbacks=!0}
1108if(threshold===void 0){threshold=0.5}
1109const swiper=this;let index=swiper.activeIndex;const skip=Math.min(swiper.params.slidesPerGroupSkip,index);const snapIndex=skip+Math.floor((index-skip)/swiper.params.slidesPerGroup);const translate=swiper.rtlTranslate?swiper.translate:-swiper.translate;if(translate>=swiper.snapGrid[snapIndex]){const currentSnap=swiper.snapGrid[snapIndex];const nextSnap=swiper.snapGrid[snapIndex+1];if(translate-currentSnap>(nextSnap-currentSnap)*threshold){index+=swiper.params.slidesPerGroup}}else{const prevSnap=swiper.snapGrid[snapIndex-1];const currentSnap=swiper.snapGrid[snapIndex];if(translate-prevSnap<=(currentSnap-prevSnap)*threshold){index-=swiper.params.slidesPerGroup}}
1110index=Math.max(index,0);index=Math.min(index,swiper.slidesGrid.length-1);return swiper.slideTo(index,speed,runCallbacks,internal)}
1111function slideToClickedSlide(){const swiper=this;const{params,$wrapperEl}=swiper;const slidesPerView=params.slidesPerView==='auto'?swiper.slidesPerViewDynamic():params.slidesPerView;let slideToIndex=swiper.clickedIndex;let realIndex;if(params.loop){if(swiper.animating)return;realIndex=parseInt($(swiper.clickedSlide).attr('data-swiper-slide-index'),10);if(params.centeredSlides){if(slideToIndex<swiper.loopedSlides-slidesPerView/2||slideToIndex>swiper.slides.length-swiper.loopedSlides+slidesPerView/2){swiper.loopFix();slideToIndex=$wrapperEl.children(`.${params.slideClass}[data-swiper-slide-index="${realIndex}"]:not(.${params.slideDuplicateClass})`).eq(0).index();nextTick(()=>{swiper.slideTo(slideToIndex)})}else{swiper.slideTo(slideToIndex)}}else if(slideToIndex>swiper.slides.length-slidesPerView){swiper.loopFix();slideToIndex=$wrapperEl.children(`.${params.slideClass}[data-swiper-slide-index="${realIndex}"]:not(.${params.slideDuplicateClass})`).eq(0).index();nextTick(()=>{swiper.slideTo(slideToIndex)})}else{swiper.slideTo(slideToIndex)}}else{swiper.slideTo(slideToIndex)}}
1112var slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(){const swiper=this;const document=getDocument();const{params,$wrapperEl}=swiper;const $selector=$wrapperEl.children().length>0?$($wrapperEl.children()[0].parentNode):$wrapperEl;$selector.children(`.${params.slideClass}.${params.slideDuplicateClass}`).remove();let slides=$selector.children(`.${params.slideClass}`);if(params.loopFillGroupWithBlank){const blankSlidesNum=params.slidesPerGroup-slides.length%params.slidesPerGroup;if(blankSlidesNum!==params.slidesPerGroup){for(let i=0;i<blankSlidesNum;i+=1){const blankNode=$(document.createElement('div')).addClass(`${params.slideClass} ${params.slideBlankClass}`);$selector.append(blankNode)}
1113slides=$selector.children(`.${params.slideClass}`)}}
1114if(params.slidesPerView==='auto'&&!params.loopedSlides)params.loopedSlides=slides.length;swiper.loopedSlides=Math.ceil(parseFloat(params.loopedSlides||params.slidesPerView,10));swiper.loopedSlides+=params.loopAdditionalSlides;if(swiper.loopedSlides>slides.length&&swiper.params.loopedSlidesLimit){swiper.loopedSlides=slides.length}
1115const prependSlides=[];const appendSlides=[];slides.each((el,index)=>{const slide=$(el);slide.attr('data-swiper-slide-index',index)});for(let i=0;i<swiper.loopedSlides;i+=1){const index=i-Math.floor(i/slides.length)*slides.length;appendSlides.push(slides.eq(index)[0]);prependSlides.unshift(slides.eq(slides.length-index-1)[0])}
1116for(let i=0;i<appendSlides.length;i+=1){$selector.append($(appendSlides[i].cloneNode(!0)).addClass(params.slideDuplicateClass))}
1117for(let i=prependSlides.length-1;i>=0;
1117i-=1){$selector.prepend($(prependSlides[i].cloneNode(!0)).addClass(params.slideDuplicateClass))}}
1118function loopFix(){const swiper=this;swiper.emit('beforeLoopFix');const{activeIndex,slides,loopedSlides,allowSlidePrev,allowSlideNext,snapGrid,rtlTranslate:rtl}=swiper;let newIndex;swiper.allowSlidePrev=!0;swiper.allowSlideNext=!0;const snapTranslate=-snapGrid[activeIndex];const diff=snapTranslate-swiper.getTranslate();if(activeIndex<loopedSlides){newIndex=slides.length-loopedSlides*3+activeIndex;newIndex+=loopedSlides;const slideChanged=swiper.slideTo(newIndex,0,!1,!0);if(slideChanged&&diff!==0){swiper.setTranslate((rtl?-swiper.translate:swiper.translate)-diff)}}else if(activeIndex>=slides.length-loopedSlides){newIndex=-slides.length+activeIndex+loopedSlides;newIndex+=loopedSlides;const slideChanged=swiper.slideTo(newIndex,0,!1,!0);if(slideChanged&&diff!==0){swiper.setTranslate((rtl?-swiper.translate:swiper.translate)-diff)}}
1119swiper.allowSlidePrev=allowSlidePrev;swiper.allowSlideNext=allowSlideNext;swiper.emit('loopFix')}
1120function loopDestroy(){const swiper=this;const{$wrapperEl,params,slides}=swiper;$wrapperEl.children(`.${params.slideClass}.${params.slideDuplicateClass},.${params.slideClass}.${params.slideBlankClass}`).remove();slides.removeAttr('data-swiper-slide-index')}
1121var loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(moving){const swiper=this;if(swiper.support.touch||!swiper.params.simulateTouch||swiper.params.watchOverflow&&swiper.isLocked||swiper.params.cssMode)return;const el=swiper.params.touchEventsTarget==='container'?swiper.el:swiper.wrapperEl;el.style.cursor='move';el.style.cursor=moving?'grabbing':'grab'}
1122function unsetGrabCursor(){const swiper=this;if(swiper.support.touch||swiper.params.watchOverflow&&swiper.isLocked||swiper.params.cssMode){return}
1123swiper[swiper.params.touchEventsTarget==='container'?'el':'wrapperEl'].style.cursor=''}
1124var grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(selector,base){if(base===void 0){base=this}
1125function __closestFrom(el){if(!el||el===getDocument()||el===getWindow())return null;if(el.assignedSlot)el=el.assignedSlot;const found=el.closest(selector);if(!found&&!el.getRootNode){return null}
1126return found||__closestFrom(el.getRootNode().host)}
1127return __closestFrom(base)}
1128function onTouchStart(event){const swiper=this;const document=getDocument();const window=getWindow();const data=swiper.touchEventsData;const{params,touches,enabled}=swiper;if(!enabled)return;if(swiper.animating&&params.preventInteractionOnTransition){return}
1129if(!swiper.animating&&params.cssMode&&params.loop){swiper.loopFix()}
1130let e=event;if(e.originalEvent)e=e.originalEvent;let $targetEl=$(e.target);if(params.touchEventsTarget==='wrapper'){if(!$targetEl.closest(swiper.wrapperEl).length)return}
1131data.isTouchEvent=e.type==='touchstart';if(!data.isTouchEvent&&'which' in e&&e.which===3)return;if(!data.isTouchEvent&&'button' in e&&e.button>0)return;if(data.isTouched&&data.isMoved)return;const swipingClassHasValue=!!params.noSwipingClass&&params.noSwipingClass!=='';const eventPath=event.composedPath?event.composedPath():event.path;if(swipingClassHasValue&&e.target&&e.target.shadowRoot&&eventPath){$targetEl=$(eventPath[0])}
1132const noSwipingSelector=params.noSwipingSelector?params.noSwipingSelector:`.${params.noSwipingClass}`;const isTargetShadow=!!(e.target&&e.target.shadowRoot);if(params.noSwiping&&(isTargetShadow?closestElement(noSwipingSelector,$targetEl[0]):$targetEl.closest(noSwipingSelector)[0])){swiper.allowClick=!0;return}
1133if(params.swipeHandler){if(!$targetEl.closest(params.swipeHandler)[0])return}
1134touches.currentX=e.type==='touchstart'?e.targetTouches[0].pageX:e.pageX;touches.currentY=e.type==='touchstart'?e.targetTouches[0].pageY:e.pageY;const startX=touches.currentX;const startY=touches.currentY;const edgeSwipeDetection=params.edgeSwipeDetection||params.iOSEdgeSwipeDetection;const edgeSwipeThreshold=params.edgeSwipeThreshold||params.iOSEdgeSwipeThreshold;if(edgeSwipeDetection&&(startX<=edgeSwipeThreshold||startX>=window.innerWidth-edgeSwipeThreshold)){if(edgeSwipeDetection==='prevent'){event.preventDefault()}else{return}}
1135Object.assign(data,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:undefined,startMoving:undefined});touches.startX=startX;touches.startY=startY;data.touchStartTime=now();swiper.allowClick=!0;swiper.updateSize();swiper.swipeDirection=undefined;if(params.threshold>0)data.allowThresholdMove=!1;if(e.type!=='touchstart'){let preventDefault=!0;if($targetEl.is(data.focusableElements)){preventDefault=!1;if($targetEl[0].nodeName==='SELECT'){data.isTouched=!1}}
1136if(document.activeElement&&$(document.activeElement).is(data.focusableElements)&&document.activeElement!==$targetEl[0]){document.activeElement.blur()}
1137const shouldPreventDefault=preventDefault&&swiper.allowTouchMove&&params.touchStartPreventDefault;if((params.touchStartForcePreventDefault||shouldPreventDefault)&&!$targetEl[0].isContentEditable){e.preventDefault()}}
1138if(swiper.params.freeMode&&swiper.params.freeMode.enabled&&swiper.freeMode&&swiper.animating&&!params.cssMode){swiper.freeMode.onTouchStart()}
1139swiper.emit('touchStart',e)}
1140function onTouchMove(event){const document=getDocument();const swiper=this;const data=swiper.touchEventsData;const{params,touches,rtlTranslate:rtl,enabled}=swiper;if(!enabled)return;let e=event;if(e.originalEvent)e=e.originalEvent;if(!data.isTouched){if(data.startMoving&&data.isScrolling){swiper.emit('touchMoveOpposite',e)}
1141return}
1142if(data.isTouchEvent&&e.type!=='touchmove')return;const targetTouch=e.type==='touchmove'&&e.targetTouches&&(e.targetTouches[0]||e.changedTouches[0]);const pageX=e.type==='touchmove'?targetTouch.pageX:e.pageX;const pageY=e.type==='touchmove'?targetTouch.pageY:e.pageY;if(e.preventedByNestedSwiper){touches.startX=pageX;touches.startY=pageY;return}
1143if(!swiper.allowTouchMove){if(!$(e.target).is(data.focusableElements)){swiper.allowClick=!1}
1144if(data.isTouched){Object.assign(touches,{startX:pageX,startY:pageY,currentX:pageX,currentY:pageY});data.touchStartTime=now()}
1145return}
1146if(data.isTouchEvent&&params.touchReleaseOnEdges&&!params.loop){if(swiper.isVertical()){if(pageY<touches.startY&&swiper.translate<=swiper.maxTranslate()||pageY>touches.startY&&swiper.translate>=swiper.minTranslate()){data.isTouched=!1;data.isMoved=!1;return}}else if(pageX<touches.startX&&swiper.translate<=swiper.maxTranslate()||pageX>touches.startX&&swiper.translate>=swiper.minTranslate()){return}}
1147if(data.isTouchEvent&&document.activeElement){if(e.target===document.activeElement&&$(e.target).is(data.focusableElements)){data.isMoved=!0;swiper.allowClick=!1;return}}
1148if(data.allowTouchCallbacks){swiper.emit('touchMove',e)}
1149if(e.targetTouches&&e.targetTouches.length>1)return;touches.currentX=pageX;touches.currentY=pageY;const diffX=touches.currentX-touches.startX;const diffY=touches.currentY-touches.startY;if(swiper.params.threshold&&Math.sqrt(diffX**2+diffY**2)<swiper.params.threshold)return;if(typeof data.isScrolling==='undefined'){let touchAngle;if(swiper.isHorizontal()&&touches.currentY===touches.startY||swiper.isVertical()&&touches.currentX===touches.startX){data.isScrolling=!1}else{if(diffX*diffX+diffY*diffY>=25){touchAngle=Math.atan2(Math.abs(diffY),Math.abs(diffX))*180/Math.PI;data.isScrolling=swiper.isHorizontal()?touchAngle>params.touchAngle:90-touchAngle>params.touchAngle}}}
1150if(data.isScrolling){swiper.emit('touchMoveOpposite',e)}
1151if(typeof data.startMoving==='undefined'){if(touches.currentX!==touches.startX||touches.currentY!==touches.startY){data.startMoving=!0}}
1152if(data.isScrolling){data.isTouched=!1;return}
1153if(!data.startMoving){return}
1154swiper.allowClick=!1;if(!params.cssMode&&e.cancelable){e.preventDefault()}
1155if(params.touchMoveStopPropagation&&!params.nested){e.stopPropagation()}
1156if(!data.isMoved){if(params.loop&&!params.cssMode){swiper.loopFix()}
1157data.startTranslate=swiper.getTranslate();swiper.setTransition(0);if(swiper.animating){swiper.$wrapperEl.trigger('webkitTransitionEnd transitionend')}
1158data.allowMomentumBounce=!1;if(params.grabCursor&&(swiper.allowSlideNext===!0||swiper.allowSlidePrev===!0)){swiper.setGrabCursor(!0)}
1159swiper.emit('sliderFirstMove',e)}
1160swiper.emit('sliderMove',e);data.isMoved=!0;let diff=swiper.isHorizontal()?diffX:diffY;touches.diff=diff;diff*=params.touchRatio;if(rtl)diff=-diff;swiper.swipeDirection=diff>0?'prev':'next';data.currentTranslate=diff+data.startTranslate;let disableParentSwiper=!0;let resistanceRatio=params.resistanceRatio;if(params.touchReleaseOnEdges){resistanceRatio=0}
1161if(diff>0&&data.currentTranslate>swiper.minTranslate()){disableParentSwiper=!1;if(params.resistance)data.currentTranslate=swiper.minTranslate()-1+(-swiper.minTranslate()+data.startTranslate+diff)**resistanceRatio}else if(diff<0&&data.currentTranslate<swiper.maxTranslate()){disableParentSwiper=!1;if(params.resistance)data.currentTranslate=swiper.maxTranslate()+1-(swiper.maxTranslate()-data.startTranslate-diff)**resistanceRatio}
1162if(disableParentSwiper){e.preventedByNestedSwiper=!0}
1163if(!swiper.allowSlideNext&&swiper.swipeDirection==='next'&&data.currentTranslate<data.startTranslate){data.currentTranslate=data.startTranslate}
1164if(!swiper.allowSlidePrev&&swiper.swipeDirection==='prev'&&data.currentTranslate>data.startTranslate){data.currentTranslate=data.startTranslate}
1165if(!swiper.allowSlidePrev&&!swiper.allowSlideNext){data.currentTranslate=data.startTranslate}
1166if(params.threshold>0){if(Math.abs(diff)>params.threshold||data.allowThresholdMove){if(!data.allowThresholdMove){data.allowThresholdMove=!0;touches.startX=touches.currentX;touches.startY=touches.currentY;data.currentTranslate=data.startTranslate;touches.diff=swiper.isHorizontal()?touches.currentX-touches.startX:touches.currentY-touches.startY;return}}else{data.currentTranslate=data.startTranslate;return}}
1167if(!params.followFinger||params.cssMode)return;if(params.freeMode&&params.freeMode.enabled&&swiper.freeMode||params.watchSlidesProgress){swiper.updateActiveIndex();swiper.updateSlidesClasses()}
1168if(swiper.params.freeMode&&params.freeMode.enabled&&swiper.freeMode){swiper.freeMode.onTouchMove()}
1169swiper.updateProgress(data.currentTranslate);swiper.setTranslate(data.currentTranslate)}
1170function onTouchEnd(event){const swiper=this;const data=swiper.touchEventsData;const{params,touches,rtlTranslate:rtl,slidesGrid,enabled}=swiper;if(!enabled)return;let e=event;if(e.originalEvent)e=e.originalEvent;if(data.allowTouchCallbacks){swiper.emit('touchEnd',e)}
1171data.allowTouchCallbacks=!1;if(!data.isTouched){if(data.isMoved&&params.grabCursor){swiper.setGrabCursor(!1)}
1172data.isMoved=!1;data.startMoving=!1;return}
1173if(params.grabCursor&&data.isMoved&&data.isTouched&&(swiper.allowSlideNext===!0||swiper.allowSlidePrev===!0)){swiper.setGrabCursor(!1)}
1174const touchEndTime=now();const timeDiff=touchEndTime-data.touchStartTime;if(swiper.allowClick){const pathTree=e.path||e.composedPath&&e.composedPath();swiper.updateClickedSlide(pathTree&&pathTree[0]||e.target);swiper.emit('tap click',e);if(timeDiff<300&&touchEndTime-data.lastClickTime<300){swiper.emit('doubleTap doubleClick',e)}}
1175data.lastClickTime=now();nextTick(()=>{if(!swiper.destroyed)swiper.allowClick=!0});if(!data.isTouched||!data.isMoved||!swiper.swipeDirection||touches.diff===0||data.currentTranslate===data.startTranslate){data.isTouched=!1;data.isMoved=!1;data.startMoving=!1;return}
1176data.isTouched=!1;data.isMoved=!1;data.startMoving=!1;let currentPos;if(params.followFinger){currentPos=rtl?swiper.translate:-swiper.translate}else{currentPos=-data.currentTranslate}
1177if(params.cssMode){return}
1178if(swiper.params.freeMode&&params.freeMode.enabled){swiper.freeMode.onTouchEnd({currentPos});return}
1179let stopIndex=0;let groupSize=swiper.slidesSizesGrid[0];for(let i=0;i<slidesGrid.length;i+=i<params.slidesPerGroupSkip?1:params.slidesPerGroup){const increment=i<params.slidesPerGroupSkip-1?1:params.slidesPerGroup;if(typeof slidesGrid[i+increment]!=='undefined'){if(currentPos>=slidesGrid[i]&&currentPos<slidesGrid[i+increment]){stopIndex=i;groupSize=slidesGrid[i+increment]-slidesGrid[i]}}else if(currentPos>=slidesGrid[i]){stopIndex=i;groupSize=slidesGrid[slidesGrid.length-1]-slidesGrid[slidesGrid.length-2]}}
1180let rewindFirstIndex=null;let rewindLastIndex=null;if(params.rewind){if(swiper.isBeginning){rewindLastIndex=swiper.params.virtual&&swiper.params.virtual.enabled&&swiper.virtual?swiper.virtual.slides.length-1:swiper.slides.length-1}
1180else if(swiper.isEnd){rewindFirstIndex=0}}
1181const ratio=(currentPos-slidesGrid[stopIndex])/groupSize;const increment=stopIndex<params.slidesPerGroupSkip-1?1:params.slidesPerGroup;if(timeDiff>params.longSwipesMs){if(!params.longSwipes){swiper.slideTo(swiper.activeIndex);return}
1182if(swiper.swipeDirection==='next'){if(ratio>=params.longSwipesRatio)swiper.slideTo(params.rewind&&swiper.isEnd?rewindFirstIndex:stopIndex+increment);else swiper.slideTo(stopIndex)}
1183if(swiper.swipeDirection==='prev'){if(ratio>1-params.longSwipesRatio){swiper.slideTo(stopIndex+increment)}else if(rewindLastIndex!==null&&ratio<0&&Math.abs(ratio)>params.longSwipesRatio){swiper.slideTo(rewindLastIndex)}else{swiper.slideTo(stopIndex)}}}else{if(!params.shortSwipes){swiper.slideTo(swiper.activeIndex);return}
1184const isNavButtonTarget=swiper.navigation&&(e.target===swiper.navigation.nextEl||e.target===swiper.navigation.prevEl);if(!isNavButtonTarget){if(swiper.swipeDirection==='next'){swiper.slideTo(rewindFirstIndex!==null?rewindFirstIndex:stopIndex+increment)}
1185if(swiper.swipeDirection==='prev'){swiper.slideTo(rewindLastIndex!==null?rewindLastIndex:stopIndex)}}else if(e.target===swiper.navigation.nextEl){swiper.slideTo(stopIndex+increment)}else{swiper.slideTo(stopIndex)}}}
1186function onResize(){const swiper=this;const{params,el}=swiper;if(el&&el.offsetWidth===0)return;if(params.breakpoints){swiper.setBreakpoint()}
1187const{allowSlideNext,allowSlidePrev,snapGrid}=swiper;swiper.allowSlideNext=!0;swiper.allowSlidePrev=!0;swiper.updateSize();swiper.updateSlides();swiper.updateSlidesClasses();if((params.slidesPerView==='auto'||params.slidesPerView>1)&&swiper.isEnd&&!swiper.isBeginning&&!swiper.params.centeredSlides){swiper.slideTo(swiper.slides.length-1,0,!1,!0)}else{swiper.slideTo(swiper.activeIndex,0,!1,!0)}
1188if(swiper.autoplay&&swiper.autoplay.running&&swiper.autoplay.paused){swiper.autoplay.run()}
1189swiper.allowSlidePrev=allowSlidePrev;swiper.allowSlideNext=allowSlideNext;if(swiper.params.watchOverflow&&snapGrid!==swiper.snapGrid){swiper.checkOverflow()}}
1190function onClick(e){const swiper=this;if(!swiper.enabled)return;if(!swiper.allowClick){if(swiper.params.preventClicks)e.preventDefault();if(swiper.params.preventClicksPropagation&&swiper.animating){e.stopPropagation();e.stopImmediatePropagation()}}}
1191function onScroll(){const swiper=this;const{wrapperEl,rtlTranslate,enabled}=swiper;if(!enabled)return;swiper.previousTranslate=swiper.translate;if(swiper.isHorizontal()){swiper.translate=-wrapperEl.scrollLeft}else{swiper.translate=-wrapperEl.scrollTop}
1192if(swiper.translate===0)swiper.translate=0;swiper.updateActiveIndex();swiper.updateSlidesClasses();let newProgress;const translatesDiff=swiper.maxTranslate()-swiper.minTranslate();if(translatesDiff===0){newProgress=0}else{newProgress=(swiper.translate-swiper.minTranslate())/translatesDiff}
1193if(newProgress!==swiper.progress){swiper.updateProgress(rtlTranslate?-swiper.translate:swiper.translate)}
1194swiper.emit('setTranslate',swiper.translate,!1)}
1195let dummyEventAttached=!1;function dummyEventListener(){}
1196const events=(swiper,method)=>{const document=getDocument();const{params,touchEvents,el,wrapperEl,device,support}=swiper;const capture=!!params.nested;const domMethod=method==='on'?'addEventListener':'removeEventListener';const swiperMethod=method;if(!support.touch){el[domMethod](touchEvents.start,swiper.onTouchStart,!1);document[domMethod](touchEvents.move,swiper.onTouchMove,capture);document[domMethod](touchEvents.end,swiper.onTouchEnd,!1)}else{const passiveListener=touchEvents.start==='touchstart'&&support.passiveListener&&params.passiveListeners?{passive:!0,capture:!1}:!1;el[domMethod](touchEvents.start,swiper.onTouchStart,passiveListener);el[domMethod](touchEvents.move,swiper.onTouchMove,support.passiveListener?{passive:!1,capture}:capture);el[domMethod](touchEvents.end,swiper.onTouchEnd,passiveListener);if(touchEvents.cancel){el[domMethod](touchEvents.cancel,swiper.onTouchEnd,passiveListener)}}
1197if(params.preventClicks||params.preventClicksPropagation){el[domMethod]('click',swiper.onClick,!0)}
1198if(params.cssMode){wrapperEl[domMethod]('scroll',swiper.onScroll)}
1199if(params.updateOnWindowResize){swiper[swiperMethod](device.ios||device.android?'resize orientationchange observerUpdate':'resize observerUpdate',onResize,!0)}else{swiper[swiperMethod]('observerUpdate',onResize,!0)}};function attachEvents(){const swiper=this;const document=getDocument();const{params,support}=swiper;
1199swiper.onTouchStart=onTouchStart.bind(swiper);swiper.onTouchMove=onTouchMove.bind(swiper);swiper.onTouchEnd=onTouchEnd.bind(swiper);if(params.cssMode){swiper.onScroll=onScroll.bind(swiper)}
1200swiper.onClick=onClick.bind(swiper);if(support.touch&&!dummyEventAttached){document.addEventListener('touchstart',dummyEventListener);dummyEventAttached=!0}
1201events(swiper,'on')}
1202function detachEvents(){const swiper=this;events(swiper,'off')}
1203var events$1={attachEvents,detachEvents};const isGridEnabled=(swiper,params)=>{return swiper.grid&&params.grid&&params.grid.rows>1};function setBreakpoint(){const swiper=this;const{activeIndex,initialized,loopedSlides=0,params,$el}=swiper;const breakpoints=params.breakpoints;if(!breakpoints||breakpoints&&Object.keys(breakpoints).length===0)return;const breakpoint=swiper.getBreakpoint(breakpoints,swiper.params.breakpointsBase,swiper.el);if(!breakpoint||swiper.currentBreakpoint===breakpoint)return;const breakpointOnlyParams=breakpoint in breakpoints?breakpoints[breakpoint]:undefined;const breakpointParams=breakpointOnlyParams||swiper.originalParams;const wasMultiRow=isGridEnabled(swiper,params);const isMultiRow=isGridEnabled(swiper,breakpointParams);const wasEnabled=params.enabled;if(wasMultiRow&&!isMultiRow){$el.removeClass(`${params.containerModifierClass}grid ${params.containerModifierClass}grid-column`);swiper.emitContainerClasses()}else if(!wasMultiRow&&isMultiRow){$el.addClass(`${params.containerModifierClass}grid`);if(breakpointParams.grid.fill&&breakpointParams.grid.fill==='column'||!breakpointParams.grid.fill&&params.grid.fill==='column'){$el.addClass(`${params.containerModifierClass}grid-column`)}
1204swiper.emitContainerClasses()}['navigation','pagination','scrollbar'].forEach(prop=>{const wasModuleEnabled=params[prop]&&params[prop].enabled;const isModuleEnabled=breakpointParams[prop]&&breakpointParams[prop].enabled;if(wasModuleEnabled&&!isModuleEnabled){swiper[prop].disable()}
1205if(!wasModuleEnabled&&isModuleEnabled){swiper[prop].enable()}});const directionChanged=breakpointParams.direction&&breakpointParams.direction!==params.direction;const needsReLoop=params.loop&&(breakpointParams.slidesPerView!==params.slidesPerView||directionChanged);if(directionChanged&&initialized){swiper.changeDirection()}
1206extend(swiper.params,breakpointParams);const isEnabled=swiper.params.enabled;Object.assign(swiper,{allowTouchMove:swiper.params.allowTouchMove,allowSlideNext:swiper.params.allowSlideNext,allowSlidePrev:swiper.params.allowSlidePrev});if(wasEnabled&&!isEnabled){swiper.disable()}else if(!wasEnabled&&isEnabled){swiper.enable()}
1207swiper.currentBreakpoint=breakpoint;swiper.emit('_beforeBreakpoint',breakpointParams);if(needsReLoop&&initialized){swiper.loopDestroy();swiper.loopCreate();swiper.updateSlides();swiper.slideTo(activeIndex-loopedSlides+swiper.loopedSlides,0,!1)}
1208swiper.emit('breakpoint',breakpointParams)}
1209function getBreakpoint(breakpoints,base,containerEl){if(base===void 0){base='window'}
1210if(!breakpoints||base==='container'&&!containerEl)return undefined;let breakpoint=!1;const window=getWindow();const currentHeight=base==='window'?window.innerHeight:containerEl.clientHeight;const points=Object.keys(breakpoints).map(point=>{if(typeof point==='string'&&point.indexOf('@')===0){const minRatio=parseFloat(point.substr(1));const value=currentHeight*minRatio;return{value,point}}
1211return{value:point,point}});points.sort((a,b)=>
1211parseInt(a.value,10)-parseInt(b.value,10));for(let i=0;i<points.length;i+=1){const{point,value}=points[i];if(base==='window'){if(window.matchMedia(`(min-width: ${value}px)`).matches){breakpoint=point}}else if(value<=containerEl.clientWidth){breakpoint=point}}
1212return breakpoint||'max'}
1213var breakpoints={setBreakpoint,getBreakpoint};function prepareClasses(entries,prefix){const resultClasses=[];entries.forEach(item=>{if(typeof item==='object'){Object.keys(item).forEach(classNames=>{if(item[classNames]){resultClasses.push(prefix+classNames)}})}else if(typeof item==='string'){resultClasses.push(prefix+item)}});return resultClasses}
1214function addClasses(){const swiper=this;const{classNames,params,rtl,$el,device,support}=swiper;const suffixes=prepareClasses(['initialized',params.direction,{'pointer-events':!support.touch},{'free-mode':swiper.params.freeMode&&params.freeMode.enabled},{'autoheight':params.autoHeight},{'rtl':rtl},{'grid':params.grid&&params.grid.rows>1},{'grid-column':params.grid&&params.grid.rows>1&&params.grid.fill==='column'},{'android':device.android},{'ios':device.ios},{'css-mode':params.cssMode},{'centered':params.cssMode&&params.centeredSlides},{'watch-progress':params.watchSlidesProgress}],params.containerModifierClass);classNames.push(...suffixes);$el.addClass([...classNames].join(' '));swiper.emitContainerClasses()}
1215function removeClasses(){const swiper=this;const{$el,classNames}=swiper;$el.removeClass(classNames.join(' '));swiper.emitContainerClasses()}
1216var classes={addClasses,removeClasses};function loadImage(imageEl,src,srcset,sizes,checkForComplete,callback){const window=getWindow();let image;function onReady(){if(callback)callback();}
1217const isPicture=$(imageEl).parent('picture')[0];if(!isPicture&&(!imageEl.complete||!checkForComplete)){if(src){image=new window.Image();image.onload=onReady;image.onerror=onReady;if(sizes){image.sizes=sizes}
1218if(srcset){image.srcset=srcset}
1219if(src){image.src=src}}else{onReady()}}else{onReady()}}
1220function preloadImages(){const swiper=this;swiper.imagesToLoad=swiper.$el.find('img');function onReady(){if(typeof swiper==='undefined'||swiper===null||!swiper||swiper.destroyed)return;if(swiper.imagesLoaded!==undefined)swiper.imagesLoaded+=1;if(swiper.imagesLoaded===swiper.imagesToLoad.length){if(swiper.params.updateOnImagesReady)swiper.update();swiper.emit('imagesReady')}}
1221for(let i=0;i<swiper.imagesToLoad.length;i+=1){const imageEl=swiper.imagesToLoad[i];swiper.loadImage(imageEl,imageEl.currentSrc||imageEl.getAttribute('src'),imageEl.srcset||imageEl.getAttribute('srcset'),imageEl.sizes||imageEl.getAttribute('sizes'),!0,onReady)}}
1222var images={loadImage,preloadImages};function checkOverflow(){const swiper=this;const{isLocked:wasLocked,params}=swiper;const{slidesOffsetBefore}=params;if(slidesOffsetBefore){const lastSlideIndex=swiper.slides.length-1;const lastSlideRightEdge=swiper.slidesGrid[lastSlideIndex]+swiper.slidesSizesGrid[lastSlideIndex]+slidesOffsetBefore*2;swiper.isLocked=swiper.size>lastSlideRightEdge}else{swiper.isLocked=swiper.snapGrid.length===1}
1223if(params.allowSlideNext===!0){swiper.allowSlideNext=!swiper.isLocked}
1224if(params.allowSlidePrev===!0){swiper.allowSlidePrev=!swiper.isLocked}
1225if(wasLocked&&wasLocked!==swiper.isLocked){swiper.isEnd=!1}
1226if(wasLocked!==swiper.isLocked){swiper.emit(swiper.isLocked?'lock':'unlock')}}
1227var checkOverflow$1={checkOverflow};var defaults={init:!0,direction:'horizontal',touchEventsTarget:'wrapper',initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:'input, select, option, textarea, button, video, label',width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:'slide',breakpoints:undefined,breakpointsBase:'window',spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:0.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:0.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:'swiper-no-swiping',noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:'swiper-',slideClass:'swiper-slide',slideBlankClass:'swiper-slide-invisible-blank',slideActiveClass:'swiper-slide-active',slideDuplicateActiveClass:'swiper-slide-duplicate-active',slideVisibleClass:'swiper-slide-visible',slideDuplicateClass:'swiper-slide-duplicate',slideNextClass:'swiper-slide-next',slideDuplicateNextClass:'swiper-slide-duplicate-next',slidePrevClass:'swiper-slide-prev',slideDuplicatePrevClass:'swiper-slide-duplicate-prev',wrapperClass:'swiper-wrapper',runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(params,allModulesParams){return function extendParams(obj){if
1227(obj===void 0){obj={}}
1228const moduleParamName=Object.keys(obj)[0];const moduleParams=obj[moduleParamName];if(typeof moduleParams!=='object'||moduleParams===null){extend(allModulesParams,obj);return}
1229if(['navigation','pagination','scrollbar'].indexOf(moduleParamName)>=0&&params[moduleParamName]===!0){params[moduleParamName]={auto:!0}}
1230if(!(moduleParamName in params&&'enabled' in moduleParams)){extend(allModulesParams,obj);return}
1231if(params[moduleParamName]===!0){params[moduleParamName]={enabled:!0}}
1232if(typeof params[moduleParamName]==='object'&&!('enabled' in params[moduleParamName])){params[moduleParamName].enabled=!0}
1233if(!params[moduleParamName])params[moduleParamName]={enabled:!1};extend(allModulesParams,obj)}}
1234const prototypes={eventsEmitter,update,translate,transition,slide,loop,grabCursor,events:events$1,breakpoints,checkOverflow:checkOverflow$1,classes,images};const extendedDefaults={};class Swiper{constructor(){let el;let params;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}
1235if(args.length===1&&args[0].constructor&&Object.prototype.toString.call(args[0]).slice(8,-1)==='Object'){params=args[0]}else{[el,params]=args}
1236if(!params)params={};params=extend({},params);if(el&&!params.el)params.el=el;if(params.el&&$(params.el).length>1){const swipers=[];$(params.el).each(containerEl=>{const newParams=extend({},params,{el:containerEl});swipers.push(new Swiper(newParams))});return swipers}
1237const swiper=this;swiper.__swiper__=!0;swiper.support=getSupport();swiper.device=getDevice({userAgent:params.userAgent});swiper.browser=getBrowser();swiper.eventsListeners={};swiper.eventsAnyListeners=[];swiper.modules=[...swiper.__modules__];if(params.modules&&Array.isArray(params.modules)){swiper.modules.push(...params.modules)}
1238const allModulesParams={};swiper.modules.forEach(mod=>{mod({swiper,extendParams:moduleExtendParams(params,allModulesParams),on:swiper.on.bind(swiper),once:swiper.once.bind(swiper),off:swiper.off.bind(swiper),emit:swiper.emit.bind(swiper)})});const swiperParams=extend({},defaults,allModulesParams);swiper.params=extend({},swiperParams,extendedDefaults,params);swiper.originalParams=extend({},swiper.params);swiper.passedParams=extend({},params);if(swiper.params&&swiper.params.on){Object.keys(swiper.params.on).forEac
1238h(eventName=>{swiper.on(eventName,swiper.params.on[eventName])})}
1239if(swiper.params&&swiper.params.onAny){swiper.onAny(swiper.params.onAny)}
1240swiper.$=$;Object.assign(swiper,{enabled:swiper.params.enabled,el,classNames:[],slides:$(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return swiper.params.direction==='horizontal'},isVertical(){return swiper.params.direction==='vertical'},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:swiper.params.allowSlideNext,allowSlidePrev:swiper.params.allowSlidePrev,touchEvents:function touchEvents(){const touch=['touchstart','touchmove','touchend','touchcancel'];const desktop=['pointerdown','pointermove','pointerup'];swiper.touchEventsTouch={start:touch[0],move:touch[1],end:touch[2],cancel:touch[3]};swiper.touchEventsDesktop={start:desktop[0],move:desktop[1],end:desktop[2]};return swiper.support.touch||!swiper.params.simulateTouch?swiper.touchEventsTouch:swiper.touchEventsDesktop}(),touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:swiper.params.focusableElements,lastClickTime:now(),clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,isTouchEvent:undefined,startMoving:undefined},allowClick:!0,allowTouchMove:swiper.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});swiper.emit('_swiper');if(swiper.params.init){swiper.init()}
1241return swiper}
1242enable(){const swiper=this;if(swiper.enabled)return;swiper.enabled=!0;if(swiper.params.grabCursor){swiper.setGrabCursor()}
1243swiper.emit('enable')}
1244disable(){const swiper=this;if(!swiper.enabled)return;swiper.enabled=!1;if(swiper.params.grabCursor){swiper.unsetGrabCursor()}
1245swiper.emit('disable')}
1246setProgress(progress,speed){const swiper=this;progress=Math.min(Math.max(progress,0),1);const min=swiper.minTranslate();const max=swiper.maxTranslate();const current=(max-min)*progress+min;swiper.translateTo(current,typeof speed==='undefined'?0:speed);swiper.updateActiveIndex();swiper.updateSlidesClasses()}
1247emitContainerClasses(){const swiper=this;if(!swiper.params._emitClasses||!swiper.el)return;const cls=swiper.el.className.split(' ').filter(className=>{return className.indexOf('swiper')===0||className.indexOf(swiper.params.containerModifierClass)===0});swiper.emit('_containerClasses',cls.join(' '))}
1248getSlideClasses(slideEl){const swiper=this;if(swiper.destroyed)return'';return slideEl.className.split(' ').filter(className=>{return className.indexOf('swiper-slide')===0||className.indexOf(swiper.params.slideClass)===0}).join(' ')}
1249emitSlidesClasses(){const swiper=this;if(!swiper.params._emitClasses||!swiper.el)return;const updates=[];swiper.slides.each(slideEl=>{const classNames=swiper.getSlideClasses(slideEl);updates.push({slideEl,classNames});swiper.emit('_slideClass',slideEl,classNames)});swiper.emit('_slideClasses',updates)}
1250slidesPerViewDynamic(view,exact){if(view===void 0){view='current'}
1251if(exact===void 0){exact=!1}
1252const swiper=this;const{params,slides,slidesGrid,slidesSizesGrid,size:swiperSize,activeIndex}=swiper;let spv=1;if(params.centeredSlides){let slideSize=slides[activeIndex].swiperSlideSize;let breakLoop;for(let i=activeIndex+1;i<slides.length;i+=1){if(slides[i]&&!breakLoop){slideSize+=slides[i].swiperSlideSize;spv+=1;if(slideSize>swiperSize)breakLoop=!0}}
1253for(let i=activeIndex-1;i>=0;i-=1){if(slides[i]&&!breakLoop){slideSize+=slides[i].swiperSlideSize;spv+=1;if(slideSize>swiperSize)breakLoop=!0}}}else{if(view==='current'){for(let i=activeIndex+1;i<slides.length;i+=1){const slideInView=exact?slidesGrid[i]+slidesSizesGrid[i]-slidesGrid[activeIndex]<swiperSize:slidesGrid[i]-slidesGrid[activeIndex]<swiperSize;if(slideInView){spv+=1}}}else{for(let i=activeIndex-1;i>=0;i-=1){const slideInView=slidesGrid[activeIndex]-slidesGrid[i]<swiperSize;if(slideInView){spv+=1}}}}
1254return spv}
1255update(){const swiper=this;if(!swiper||swiper.destroyed)return;const{snapGrid,params}=swiper;if(params.breakpoints){swiper.setBreakpoint()}
1256swiper.updateSize();swiper.updateSlides();swiper.updateProgress();swiper.updateSlidesClasses();function setTranslate(){const translateValue=swiper.rtlTranslate?swiper.translate*-1:swiper.translate;const newTranslate=Math.min(Math.max(translateValue,swiper.maxTranslate()),swiper.minTranslate());swiper.setTranslate(newTranslate);swiper.updateActiveIndex();swiper.updateSlidesClasses()}
1257let translated;if(swiper.params.freeMode&&swiper.params.freeMode.enabled){setTranslate();if(swiper.params.autoHeight){swiper.updateAutoHeight()}}else{if((swiper.params.slidesPerView==='auto'||swiper.params.slidesPerView>1)&&swiper.isEnd&&!swiper.params.centeredSlides){translated=swiper.slideTo(swiper.slides.length-1,0,!1,!0)}else{translated=swiper.slideTo(swiper.activeIndex,0,!1,!0)}
1258if(!translated){setTranslate()}}
1259if(params.watchOverflow&&snapGrid!==swiper.snapGrid){swiper.checkOverflow()}
1260swiper.emit('update')}
1261changeDirection(newDirection,needUpdate){if(needUpdate===void 0){needUpdate=!0}
1262const swiper=this;const currentDirection=swiper.params.direction;if(!newDirection){newDirection=currentDirection==='horizontal'?'vertical':'horizontal'}
1263if(newDirection===currentDirection||newDirection!=='horizontal'&&newDirection!=='vertical'){return swiper}
1264swiper.$el.removeClass(`${swiper.params.containerModifierClass}${currentDirection}`).addClass(`${swiper.params.containerModifierClass}${newDirection}`);swiper.emitContainerClasses();swiper.params.direction=newDirection;swiper.slides.each(slideEl=>{if(newDirection==='vertical'){slideEl.style.width=''}else{slideEl.style.height=''}});swiper.emit('changeDirection');
1264if(needUpdate)swiper.update();return swiper}
1265changeLanguageDirection(direction){const swiper=this;if(swiper.rtl&&direction==='rtl'||!swiper.rtl&&direction==='ltr')return;swiper.rtl=direction==='rtl';swiper.rtlTranslate=swiper.params.direction==='horizontal'&&swiper.rtl;if(swiper.rtl){swiper.$el.addClass(`${swiper.params.containerModifierClass}rtl`);swiper.el.dir='rtl'}else{swiper.$el.removeClass(`${swiper.params.containerModifierClass}rtl`);swiper.el.dir='ltr'}
1266swiper.update()}
1267mount(el){const swiper=this;if(swiper.mounted)return!0;const $el=$(el||swiper.params.el);el=$el[0];if(!el){return!1}
1268el.swiper=swiper;const getWrapperSelector=()=>{return `.${(swiper.params.wrapperClass || '').trim().split(' ').join('.')}`};const getWrapper=()=>{if(el&&el.shadowRoot&&el.shadowRoot.querySelector){const res=$(el.shadowRoot.querySelector(getWrapperSelector()));res.children=options=>$el.children(options);return res}
1269if(!$el.children){return $($el).children(getWrapperSelector())}
1270return $el.children(getWrapperSelector())};let $wrapperEl=getWrapper();if($wrapperEl.length===0&&swiper.params.createElements){const document=getDocument();const wrapper=document.createElement('div');$wrapperEl=$(wrapper);wrapper.className=swiper.params.wrapperClass;$el.append(wrapper);$el.children(`.${swiper.params.slideClass}`).each(slideEl=>{$wrapperEl.append(slideEl)})}
1271Object.assign(swiper,{$el,el,$wrapperEl,wrapperEl:$wrapperEl[0],mounted:!0,rtl:el.dir.toLowerCase()==='rtl'||$el.css('direction')==='rtl',rtlTranslate:swiper.params.direction==='horizontal'&&(el.dir.toLowerCase()==='rtl'||$el.css('direction')==='rtl'),wrongRTL:$wrapperEl.css('display')==='-webkit-box'});return!0}
1272init(el){const swiper=this;if(swiper.initialized)return swiper;const mounted=swiper.mount(el);if(mounted===!1)return swiper;swiper.emit('beforeInit');if(swiper.params.breakpoints){swiper.setBreakpoint()}
1273swiper.addClasses();if(swiper.params.loop){swiper.loopCreate()}
1274swiper.updateSize();swiper.updateSlides();if(swiper.params.watchOverflow){swiper.checkOverflow()}
1275if(swiper.params.grabCursor&&swiper.enabled){swiper.setGrabCursor()}
1276if(swiper.params.preloadImages){swiper.preloadImages()}
1277if(swiper.params.loop){swiper.slideTo(swiper.params.initialSlide+swiper.loopedSlides,0,swiper.params.runCallbacksOnInit,!1,!0)}else{swiper.slideTo(swiper.params.initialSlide,0,swiper.params.runCallbacksOnInit,!1,!0)}
1278swiper.attachEvents();swiper.initialized=!0;swiper.emit('init');swiper.emit('afterInit');return swiper}
1279destroy(deleteInstance,cleanStyles){if(deleteInstance===void 0){deleteInstance=!0}
1280if(cleanStyles===void 0){cleanStyles=!0}
1281const swiper=this;const{params,$el,$wrapperEl,slides}=swiper;if(typeof swiper.params==='undefined'||swiper.destroyed){return null}
1282swiper.emit('beforeDestroy');swiper.initialized=!1;swiper.detachEvents();if(params.loop){swiper.loopDestroy()}
1283if(cleanStyles){swiper.removeClasses();$el.removeAttr('style');$wrapperEl.removeAttr('style');if(slides&&slides.length){slides.removeClass([params.slideVisibleClass,params.slideActiveClass,params.slideNextClass,params.slidePrevClass].join(' ')).removeAttr('style').removeAttr('data-swiper-slide-index')}}
1284swiper.emit('destroy');Object.keys(swiper.eventsListeners).forEach(eventName=>{swiper.off(eventName)});if(deleteInstance!==!1){swiper.$el[0].swiper=null;deleteProps(swiper)}
1285swiper.destroyed=!0;return null}
1286static extendDefaults(newDefaults){extend(extendedDefaults,newDefaults)}
1287static get extendedDefaults(){return extendedDefaults}
1288static get defaults(){return defaults}
1289static installModule(mod){if(!Swiper.prototype.__modules__)Swiper.prototype.__modules__=[];const modules=Swiper.prototype.__modules__;if(typeof mod==='function'&&modules.indexOf(mod)<0){modules.push(mod)}}
1290static use(module){if(Array.isArray(module)){module.forEach(m=>Swiper.installModule(m));return Swiper}
1291Swiper.installModule(module);return Swiper}}
1292Object.keys(prototypes).forEach(prototypeGroup=>{Object.keys(prototypes[prototypeGroup]).forEach(protoMethod=>{Swiper.prototype[protoMethod]=prototypes[prototypeGroup][protoMethod]})});Swiper.use([Resize,Observer]);function Virtual(_ref){let{swiper,extendParams,on,emit}=_ref;extendParams({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let cssModeTimeout;swiper.virtual={cache:{},from:undefined,to:undefined,slides:[],offset:0,slidesGrid:[]};
1292function renderSlide(slide,index){const params=swiper.params.virtual;if(params.cache&&swiper.virtual.cache[index]){return swiper.virtual.cache[index]}
1293const $slideEl=params.renderSlide?$(params.renderSlide.call(swiper,slide,index)):$(`<div class="${swiper.params.slideClass}" data-swiper-slide-index="${index}">${slide}</div>`);if(!$slideEl.attr('data-swiper-slide-index'))$slideEl.attr('data-swiper-slide-index',index);if(params.cache)swiper.virtual.cache[index]=$slideEl;return $slideEl}
1294function update(force){const{slidesPerView,slidesPerGroup,centeredSlides}=swiper.params;const{addSlidesBefore,addSlidesAfter}=swiper.params.virtual;const{from:previousFrom,to:previousTo,slides,slidesGrid:previousSlidesGrid,offset:previousOffset}=swiper.virtual;if(!swiper.params.cssMode){swiper.updateActiveIndex()}
1295const activeIndex=swiper.activeIndex||0;let offsetProp;if(swiper.rtlTranslate)offsetProp='right';else offsetProp=swiper.isHorizontal()?'left':'top';let slidesAfter;let slidesBefore;if(centeredSlides){slidesAfter=Math.floor(slidesPerView/2)+slidesPerGroup+addSlidesAfter;slidesBefore=Math.floor(slidesPerView/2)+slidesPerGroup+addSlidesBefore}else{slidesAfter=slidesPerView+(slidesPerGroup-1)+addSlidesAfter;slidesBefore=slidesPerGroup+addSlidesBefore}
1296const from=Math.max((activeIndex||0)-slidesBefore,0);const to=Math.min((activeIndex||0)+slidesAfter,slides.length-1);const offset=(swiper.slidesGrid[from]||0)-(swiper.slidesGrid[0]||0);Object.assign(swiper.virtual,{from,to,offset,slidesGrid:swiper.slidesGrid});function onRendered(){swiper.updateSlides();swiper.updateProgress();swiper.updateSlidesClasses();if(swiper.lazy&&swiper.params.lazy.enabled){swiper.lazy.load()}
1297emit('virtualUpdate')}
1298if(previousFrom===from&&previousTo===to&&!force){if(swiper.slidesGrid!==previousSlidesGrid&&offset!==previousOffset){swiper.slides.css(offsetProp,`${offset}px`)}
1299swiper.updateProgress();emit('virtualUpdate');return}
1300if(swiper.params.virtual.renderExternal){swiper.params.virtual.renderExternal.call(swiper,{offset,from,to,slides:function getSlides(){const slidesToRender=[];for(let i=from;i<=to;i+=1){slidesToRender.push(slides[i])}
1301return slidesToRender}()});if(swiper.params.virtual.renderExternalUpdate){onRendered()}else{emit('virtualUpdate')}
1302return}
1303const prependIndexes=[];const appendIndexes=[];if(force){swiper.$wrapperEl.find(`.${swiper.params.slideClass}`).remove()}else{for(let i=previousFrom;i<=previousTo;i+=1){if(i<from||i>to){swiper.$wrapperEl.find(`.${swiper.params.slideClass}[data-swiper-slide-index="${i}"]`).remove()}}}
1304for(let i=0;i<slides.length;i+=1){if(i>=from&&i<=to){if(typeof previousTo==='undefined'||force){appendIndexes.push(i)}else{if(i>previousTo)appendIndexes.push(i);if(i<previousFrom)prependIndexes.push(i);}}}
1305appendIndexes.forEach(index=>{swiper.$wrapperEl.append(renderSlide(slides[index],index))});prependIndexes.sort((a,b)=>b-a).forEach(index=>{swiper.$wrapperEl.prepend(renderSlide(slides[index],index))});swiper.$wrapperEl.children('.swiper-slide').css(offsetProp,`${offset}px`);onRendered()}
1306function appendSlide(slides){if(typeof slides==='object'&&'length' in slides){for(let i=0;i<slides.length;i+=1){if(slides[i])swiper.virtual.slides.push(slides[i]);}}else{swiper.virtual.slides.push(slides)}
1307update(!0)}
1308function prependSlide(slides){const activeIndex=swiper.activeIndex;let newActiveIndex=activeIndex+1;let numberOfNewSlides=1;if(Array.isArray(slides)){for(let i=0;i<slides.length;i+=1){if(slides[i])swiper.virtual.slides.unshift(slides[i]);}
1309newActiveIndex=activeIndex+slides.length;numberOfNewSlides=slides.length}else{swiper.virtual.slides.unshift(slides)}
1310if(swiper.params.virtual.cache){const cache=swiper.virtual.cache;const newCache={};Object.keys(cache).forEach(cachedIndex=>{const $cachedEl=cache[cachedIndex];const cachedElIndex=$cachedEl.attr('data-swiper-slide-index');if(cachedElIndex){$cachedEl.attr('data-swiper-slide-index',parseInt(cachedElIndex,10)+numberOfNewSlides)}
1311newCache[parseInt(cachedIndex,10)+numberOfNewSlides]=$cachedEl});swiper.virtual.cache=newCache}
1312update(!0);swiper.slideTo(newActiveIndex,0)}
1313function removeSlide(slidesIndexes){if(typeof slidesIndexes==='undefined'||slidesIndexes===null)return;let activeIndex=swiper.activeIndex;if(Array.isArray(slidesIndexes)){for(let i=slidesIndexes.length-1;i>=0;i-=1){swiper.virtual.slides.splice(slidesIndexes[i],1);if(swiper.params.virtual.cache){delete swiper.virtual.cache[slidesIndexes[i]]}
1314if(slidesIndexes[i]<activeIndex)activeIndex-=1;activeIndex=Math.max(activeIndex,0)}}else{swiper.virtual.slides.splice(slidesIndexes,1);if(swiper.params.virtual.cache){delete swiper.virtual.cache[slidesIndexes]}
1315if(slidesIndexes<activeIndex)activeIndex-=1;activeIndex=Math.max(activeIndex,0)}
1316update(!0);swiper.slideTo(activeIndex,0)}
1317function removeAllSlides(){swiper.virtual.slides=[];if(swiper.params.virtual.cache){swiper.virtual.cache={}}
1318update(!0);swiper.slideTo(0,0)}
1319on('beforeInit',()=>{if(!swiper.params.virtual.enabled)return;swiper.virtual.slides=swiper.params.virtual.slides;swiper.classNames.push(`${swiper.params.containerModifierClass}virtual`);swiper.params.watchSlidesProgress=!0;swiper.originalParams.watchSlidesProgress=!0;
1319if(!swiper.params.initialSlide){update()}});on('setTranslate',()=>{if(!swiper.params.virtual.enabled)return;if(swiper.params.cssMode&&!swiper._immediateVirtual){clearTimeout(cssModeTimeout);cssModeTimeout=setTimeout(()=>{update()},100)}else{update()}});on('init update resize',()=>{if(!swiper.params.virtual.enabled)return;if(swiper.params.cssMode){setCSSProperty(swiper.wrapperEl,'--swiper-virtual-size',`${swiper.virtualSize}px`)}});Object.assign(swiper.virtual,{appendSlide,prependSlide,removeSlide,removeAllSlides,update})}
1320function Keyboard(_ref){let{swiper,extendParams,on,emit}=_ref;const document=getDocument();const window=getWindow();swiper.keyboard={enabled:!1};extendParams({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function handle(event){if(!swiper.enabled)return;const{rtlTranslate:rtl}=swiper;let e=event;if(e.originalEvent)e=e.originalEvent;const kc=e.keyCode||e.charCode;const pageUpDown=swiper.params.keyboard.pageUpDown;const isPageUp=pageUpDown&&kc===33;const isPageDown=pageUpDown&&kc===34;const isArrowLeft=kc===37;const isArrowRight=kc===39;const isArrowUp=kc===38;const isArrowDown=kc===40;if(!swiper.allowSlideNext&&(swiper.isHorizontal()&&isArrowRight||swiper.isVertical()&&isArrowDown||isPageDown)){return!1}
1321if(!swiper.allowSlidePrev&&(swiper.isHorizontal()&&isArrowLeft||swiper.isVertical()&&isArrowUp||isPageUp)){return!1}
1322if(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey){return undefined}
1323if(document.activeElement&&document.activeElement.nodeName&&(document.activeElement.nodeName.toLowerCase()==='input'||document.activeElement.nodeName.toLowerCase()==='textarea')){return undefined}
1324if(swiper.params.keyboard.onlyInViewport&&(isPageUp||isPageDown||isArrowLeft||isArrowRight||isArrowUp||isArrowDown)){let inView=!1;if(swiper.$el.parents(`.${swiper.params.slideClass}`).length>0&&swiper.$el.parents(`.${swiper.params.slideActiveClass}`).length===0){return undefined}
1325const $el=swiper.$el;const swiperWidth=$el[0].clientWidth;const swiperHeight=$el[0].clientHeight;const windowWidth=window.innerWidth;const windowHeight=window.innerHeight;const swiperOffset=swiper.$el.offset();if(rtl)swiperOffset.left-=swiper.$el[0].scrollLeft;const swiperCoord=[[swiperOffset.left,swiperOffset.top],[swiperOffset.left+swiperWidth,swiperOffset.top],[swiperOffset.left,swiperOffset.top+swiperHeight],[swiperOffset.left+swiperWidth,swiperOffset.top+swiperHeight]];for(let i=0;i<swiperCoord.length;i+=1){const point=swiperCoord[i];if(point[0]>=0&&point[0]<=windowWidth&&point[1]>=0&&point[1]<=windowHeight){if(point[0]===0&&point[1]===0)continue;inView=!0}}
1326if(!inView)return undefined}
1327if(swiper.isHorizontal()){if(isPageUp||isPageDown||isArrowLeft||isArrowRight){if(e.preventDefault)e.preventDefault();else e.returnValue=!1}
1328if((isPageDown||isArrowRight)&&!rtl||(isPageUp||isArrowLeft)&&rtl)swiper.slideNext();if((isPageUp||isArrowLeft)&&!rtl||(isPageDown||isArrowRight)&&rtl)swiper.slidePrev();}else{if(isPageUp||isPageDown||isArrowUp||isArrowDown){if(e.preventDefault)e.preventDefault();else e.returnValue=!1}
1329if(isPageDown||isArrowDown)swiper.slideNext();if(isPageUp||isArrowUp)swiper.slidePrev();}
1330emit('keyPress',kc);return undefined}
1331function enable(){if(swiper.keyboard.enabled)return;$(document).on('keydown',handle);swiper.keyboard.enabled=!0}
1332function disable(){if(!swiper.keyboard.enabled)return;$(document).off('keydown',handle);swiper.keyboard.enabled=!1}
1333on('init',()=>{if(swiper.params.keyboard.enabled){enable()}});on('destroy',()=>{if(swiper.keyboard.enabled){disable()}});Object.assign(swiper.keyboard,{enable,disable})}
1334function Mousewheel(_ref){let{swiper,extendParams,on,emit}=_ref;const window=getWindow();extendParams({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:'container',thresholdDelta:null,thresholdTime:null}});swiper.mousewheel={enabled:!1};let timeout;let lastScrollTime=now();let lastEventBeforeSnap;const recentWheelEvents=[];function normalize(e){const PIXEL_STEP=10;const LINE_HEIGHT=40;const PAGE_HEIGHT=800;let sX=0;let sY=0;let pX=0;let pY=0;if('detail' in e){sY=e.detail}
1335if('wheelDelta' in e){sY=-e.wheelDelta/120}
1336if('wheelDeltaY' in e){sY=-e.wheelDeltaY/120}
1337if('wheelDeltaX' in e){sX=-e.wheelDeltaX/120}
1338if('axis' in e&&e.axis===e.HORIZONTAL_AXIS){sX=sY;sY=0}
1339pX=sX*PIXEL_STEP;pY=sY*PIXEL_STEP;if('deltaY' in e){pY=e.deltaY}
1340if('deltaX' in e){pX=e.deltaX}
1341if(e.shiftKey&&!pX){pX=pY;pY=0}
1342if((pX||pY)&&e.deltaMode){if(e.deltaMode===1){pX*=LINE_HEIGHT;pY*=LINE_HEIGHT}else{pX*=PAGE_HEIGHT;pY*=PAGE_HEIGHT}}
1343if(pX&&!sX){sX=pX<1?-1:1}
1344if(pY&&!sY){sY=pY<1?-1:1}
1345return{spinX:sX,spinY:sY,pixelX:pX,pixelY:pY}}
1346function handleMouseEnter(){if(!swiper.enabled)return;swiper.mouseEntered=!0}
1347function handleMouseLeave(){if(!swiper.enabled)return;swiper.mouseEntered=!1}
1348function animateSlider(newEvent){if(swiper.params.mousewheel.thresholdDelta&&newEvent.delta<swiper.params.mousewheel.thresholdDelta){return!1}
1349if(swiper.params.mousewheel.thresholdTime&&now()-lastScrollTime<swiper.params.mousewheel.thresholdTime){return!1}
1350if(newEvent.delta>=6&&now()-lastScrollTime<60){return!0}
1351if(newEvent.direction<0){if((!swiper.isEnd||swiper.params.loop)&&!swiper.animating){swiper.slideNext();emit('scroll',newEvent.raw)}}else if((!swiper.isBeginning||swiper.params.loop)&&!swiper.animating){swiper.slidePrev();emit('scroll',newEvent.raw)}
1352lastScrollTime=new window.Date().getTime();return!1}
1353function releaseScroll(newEvent){const params=swiper.params.mousewheel;if(newEvent.direction<0){if(swiper.isEnd&&!swiper.params.loop&&params.releaseOnEdges){return!0}}
1353else if(swiper.isBeginning&&!swiper.params.loop&&params.releaseOnEdges){return!0}
1354return!1}
1355function handle(event){let e=event;let disableParentSwiper=!0;if(!swiper.enabled)return;const params=swiper.params.mousewheel;if(swiper.params.cssMode){e.preventDefault()}
1356let target=swiper.$el;if(swiper.params.mousewheel.eventsTarget!=='container'){target=$(swiper.params.mousewheel.eventsTarget)}
1357if(!swiper.mouseEntered&&!target[0].contains(e.target)&&!params.releaseOnEdges)return!0;if(e.originalEvent)e=e.originalEvent;let delta=0;const rtlFactor=swiper.rtlTranslate?-1:1;const data=normalize(e);if(params.forceToAxis){if(swiper.isHorizontal()){if(Math.abs(data.pixelX)>Math.abs(data.pixelY))delta=-data.pixelX*rtlFactor;else return!0}else if(Math.abs(data.pixelY)>Math.abs(data.pixelX))delta=-data.pixelY;else return!0}else{delta=Math.abs(data.pixelX)>Math.abs(data.pixelY)?-data.pixelX*rtlFactor:-data.pixelY}
1358if(delta===0)return!0;if(params.invert)delta=-delta;let positions=swiper.getTranslate()+delta*params.sensitivity;if(positions>=swiper.minTranslate())positions=swiper.minTranslate();if(positions<=swiper.maxTranslate())positions=swiper.maxTranslate();disableParentSwiper=swiper.params.loop?!0:!(positions===swiper.minTranslate()||positions===swiper.maxTranslate());if(disableParentSwiper&&swiper.params.nested)e.stopPropagation();if(!swiper.params.freeMode||!swiper.params.freeMode.enabled){const newEvent={time:now(),delta:Math.abs(delta),direction:Math.sign(delta),raw:event};if(recentWheelEvents.length>=2){recentWheelEvents.shift()}
1359const prevEvent=recentWheelEvents.length?recentWheelEvents[recentWheelEvents.length-1]:undefined;recentWheelEvents.push(newEvent);if(prevEvent){if(newEvent.direction!==prevEvent.direction||newEvent.delta>prevEvent.delta||newEvent.time>prevEvent.time+150){animateSlider(newEvent)}}else{animateSlider(newEvent)}
1360if(releaseScroll(newEvent)){return!0}}else{const newEvent={time:now(),delta:Math.abs(delta),direction:Math.sign(delta)};const ignoreWheelEvents=lastEventBeforeSnap&&newEvent.time<lastEventBeforeSnap.time+500&&newEvent.delta<=lastEventBeforeSnap.delta&&newEvent.direction===lastEventBeforeSnap.direction;if(!ignoreWheelEvents){lastEventBeforeSnap=undefined;if(swiper.params.loop){swiper.loopFix()}
1361let position=swiper.getTranslate()+delta*params.sensitivity;const wasBeginning=swiper.isBeginning;const wasEnd=swiper.isEnd;if(position>=swiper.minTranslate())position=swiper.minTranslate();if(position<=swiper.maxTranslate())position=swiper.maxTranslate();swiper.setTransition(0);swiper.setTranslate(position);swiper.updateProgress();swiper.updateActiveIndex();swiper.updateSlidesClasses();if(!wasBeginning&&swiper.isBeginning||!wasEnd&&swiper.isEnd){swiper.updateSlidesClasses()}
1362if(swiper.params.freeMode.sticky){clearTimeout(timeout);timeout=undefined;if(recentWheelEvents.length>=15){recentWheelEvents.shift()}
1363const prevEvent=recentWheelEvents.length?recentWheelEvents[recentWheelEvents.length-1]:undefined;const firstEvent=recentWheelEvents[0];recentWheelEvents.push(newEvent);if(prevEvent&&(newEvent.delta>prevEvent.delta||newEvent.direction!==prevEvent.direction)){recentWheelEvents.splice(0)}else if(recentWheelEvents.length>=15&&newEvent.time-firstEvent.time<500&&firstEvent.delta-newEvent.delta>=1&&newEvent.delta<=6){const snapToThreshold=delta>0?0.8:0.2;lastEventBeforeSnap=newEvent;recentWheelEvents.splice(0);timeout=nextTick(()=>{swiper.slideToClosest(swiper.params.speed,!0,undefined,snapToThreshold)},0)}
1364if(!timeout){timeout=nextTick(()=>{const snapToThreshold=0.5;lastEventBeforeSnap=newEvent;recentWheelEvents.splice(0);swiper.slideToClosest(swiper.params.speed,!0,undefined,snapToThreshold)},500)}}
1365if(!ignoreWheelEvents)emit('scroll',e);if(swiper.params.autoplay&&swiper.params.autoplayDisableOnInteraction)swiper.autoplay.stop();if(position===swiper.minTranslate()||position===swiper.maxTranslate())return!0}}
1366if(e.preventDefault)e.preventDefault();else e.returnValue=!1;return!1}
1367function events(method){let target=swiper.$el;if(swiper.params.mousewheel.eventsTarget!=='container'){target=$(swiper.params.mousewheel.eventsTarget)}
1368target[method]('mouseenter',handleMouseEnter);target[method]('mouseleave',handleMouseLeave);target[method]('wheel',handle)}
1369function enable(){if(swiper.params.cssMode){swiper.wrapperEl.removeEventListener('wheel',handle);return!0}
1370if(swiper.mousewheel.enabled)return!1;events('on');swiper.mousewheel.enabled=!0;return!0}
1371function disable(){if(swiper.params.cssMode){swiper.wrapperEl.addEventListener(event,handle);return!0}
1372if(!swiper.mousewheel.enabled)return!1;events('off');swiper.mousewheel.enabled=!1;return!0}
1373on('init',()=>{if(!swiper.params.mousewheel.enabled&&swiper.params.cssMode){disable()}
1374if(swiper.params.mousewheel.enabled)enable();});on('destroy',()=>{if(swiper.params.cssMode){enable()}
1375if(swiper.mousewheel.enabled)disable();});Object.assign(swiper.mousewheel,{enable,disable})}
1376function createElementIfNotDefined(swiper,originalParams,params,checkProps){const document=getDocument();
1376if(swiper.params.createElements){Object.keys(checkProps).forEach(key=>{if(!params[key]&&params.auto===!0){let element=swiper.$el.children(`.${checkProps[key]}`)[0];if(!element){element=document.createElement('div');element.className=checkProps[key];swiper.$el.append(element)}
1377params[key]=element;originalParams[key]=element}})}
1378return params}
1379function Navigation(_ref){let{swiper,extendParams,on,emit}=_ref;extendParams({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:'swiper-button-disabled',hiddenClass:'swiper-button-hidden',lockClass:'swiper-button-lock',navigationDisabledClass:'swiper-navigation-disabled'}});swiper.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null};function getEl(el){let $el;if(el){$el=$(el);if(swiper.params.uniqueNavElements&&typeof el==='string'&&$el.length>1&&swiper.$el.find(el).length===1){$el=swiper.$el.find(el)}}
1380return $el}
1381function toggleEl($el,disabled){const params=swiper.params.navigation;if($el&&$el.length>0){$el[disabled?'addClass':'removeClass'](params.disabledClass);if($el[0]&&$el[0].tagName==='BUTTON')$el[0].disabled=disabled;if(swiper.params.watchOverflow&&swiper.enabled){$el[swiper.isLocked?'addClass':'removeClass'](params.lockClass)}}}
1382function update(){if(swiper.params.loop)return;const{$nextEl,$prevEl}=swiper.navigation;toggleEl($prevEl,swiper.isBeginning&&!swiper.params.rewind);toggleEl($nextEl,swiper.isEnd&&!swiper.params.rewind)}
1383function onPrevClick(e){e.preventDefault();if(swiper.isBeginning&&!swiper.params.loop&&!swiper.params.rewind)return;swiper.slidePrev();emit('navigationPrev')}
1384function onNextClick(e){e.preventDefault();if(swiper.isEnd&&!swiper.params.loop&&!swiper.params.rewind)return;swiper.slideNext();emit('navigationNext')}
1385function init(){const params=swiper.params.navigation;swiper.params.navigation=createElementIfNotDefined(swiper,swiper.originalParams.navigation,swiper.params.navigation,{nextEl:'swiper-button-next',prevEl:'swiper-button-prev'});if(!(params.nextEl||params.prevEl))return;const $nextEl=getEl(params.nextEl);const $prevEl=getEl(params.prevEl);if($nextEl&&$nextEl.length>0){$nextEl.on('click',onNextClick)}
1386if($prevEl&&$prevEl.length>0){$prevEl.on('click',onPrevClick)}
1387Object.assign(swiper.navigation,{$nextEl,nextEl:$nextEl&&$nextEl[0],$prevEl,prevEl:$prevEl&&$prevEl[0]});if(!swiper.enabled){if($nextEl)$nextEl.addClass(params.lockClass);if($prevEl)$prevEl.addClass(params.lockClass);}}
1388function destroy(){const{$nextEl,$prevEl}=swiper.navigation;if($nextEl&&$nextEl.length){$nextEl.off('click',onNextClick);$nextEl.removeClass(swiper.params.navigation.disabledClass)}
1389if($prevEl&&$prevEl.length){$prevEl.off('click',onPrevClick);$prevEl.removeClass(swiper.params.navigation.disabledClass)}}
1390on('init',()=>{if(swiper.params.navigation.enabled===!1){disable()}else{init();update()}});on('toEdge fromEdge lock unlock',()=>{update()});on('destroy',()=>{destroy()});on('enable disable',()=>{const{$nextEl,$prevEl}=swiper.navigation;if($nextEl){$nextEl[swiper.enabled?'removeClass':'addClass'](swiper.params.navigation.lockClass)}
1391if($prevEl){$prevEl[swiper.enabled?'removeClass':'addClass'](swiper.params.navigation.lockClass)}});on('click',(_s,e)=>{const{$nextEl,$prevEl}=swiper.navigation;const targetEl=e.target;if(swiper.params.navigation.hideOnClick&&!$(targetEl).is($prevEl)&&!$(targetEl).is($nextEl)){if(swiper.pagination&&swiper.params.pagination&&swiper.params.pagination.clickable&&(swiper.pagination.el===targetEl||swiper.pagination.el.contains(targetEl)))return;let isHidden;if($nextEl){isHidden=$nextEl.hasClass(swiper.params.navigation.hiddenClass)}else if($prevEl){isHidden=$prevEl.hasClass(swiper.params.navigation.hiddenClass)}
1392if(isHidden===!0){emit('navigationShow')}else{emit('navigationHide')}
1393if($nextEl){$nextEl.toggleClass(swiper.params.navigation.hiddenClass)}
1394if($prevEl){$prevEl.toggleClass(swiper.params.navigation.hiddenClass)}}});const enable=()=>{swiper.$el.removeClass(swiper.params.navigation.navigationDisabledClass);init();update()};const disable=()=>{swiper.$el.addClass(swiper.params.navigation.navigationDisabledClass);destroy()};Object.assign(swiper.navigation,{enable,disable,update,init,destroy})}
1395function classesToSelector(classes){if(classes===void 0){classes=''}
1396return `.${classes.trim().replace(/([\.:!\/])/g, '\\$1') // eslint-disable-line
1397.replace(/ /g, '.')}`}
1398function Pagination(_ref){let{swiper,extendParams,on,emit}=_ref;const pfx='swiper-pagination';extendParams({pagination:{el:null,bulletElement:'span',clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:'bullets',dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:number=>number,formatFractionTotal:number=>number,bulletClass:`${pfx}-bullet`,bulletActiveClass:`${pfx}-bullet-active`,modifierClass:`${pfx}-`,currentClass:`${pfx}-current`,totalClass:`${pfx}-total`,hiddenClass:`${pfx}-hidden`,progressbarFillClass:`${pfx}-progressbar-fill`,progressbarOppositeClass:`${pfx}-progressbar-opposite`,clickableClass:`${pfx}-clickable`,lockClass:`${pfx}-lock`,horizontalClass:`${pfx}-horizontal`,verticalClass:`${pfx}-vertical`,paginationDisabledClass:`${pfx}-disabled`}});swiper.pagination={el:null,$el:null,bullets:[]};let bulletSize;let dynamicBulletIndex=0;function isPaginationDisabled(){return!swiper.params.pagination.el||!swiper.pagination.el||!swiper.pagination.$el||swiper.pagination.$el.length===0}
1399function setSideBullets($bulletEl,position){const{bulletActiveClass}=swiper.params.pagination;$bulletEl[position]().addClass(`${bulletActiveClass}-${position}`)[position]().addClass(`${bulletActiveClass}-${position}-${position}`)}
vendor: 4,673 bytes, lines 1400-1417
1400function update(){const rtl=swiper.rtl;const params=swiper.params.pagination;if(isPaginationDisabled())return;const slidesLength=swiper.virtual&&swiper.params.virtual.enabled?swiper.virtual.slides.length:swiper.slides.length;const $el=swiper.pagination.$el;let current;const total=swiper.params.loop?Math.ceil((slidesLength-swiper.loopedSlides*2)/swiper.params.slidesPerGroup):swiper.snapGrid.length;if(swiper.params.loop){current=Math.ceil((swiper.activeIndex-swiper.loopedSlides)/swiper.params.slidesPerGroup);if(current>slidesLength-1-swiper.loopedSlides*2){current-=slidesLength-swiper.loopedSlides*2}
1401if(current>total-1)current-=total;if(current<0&&swiper.params.paginationType!=='bullets')current=total+current}else if(typeof swiper.snapIndex!=='undefined'){current=swiper.snapIndex}else{current=swiper.activeIndex||0}
1402if(params.type==='bullets'&&swiper.pagination.bullets&&swiper.pagination.bullets.length>0){const bullets=swiper.pagination.bullets;let firstIndex;let lastIndex;let midIndex;if(params.dynamicBullets){bulletSize=bullets.eq(0)[swiper.isHorizontal()?'outerWidth':'outerHeight'](!0);$el.css(swiper.isHorizontal()?'width':'height',`${bulletSize * (params.dynamicMainBullets + 4)}px`);if(params.dynamicMainBullets>1&&swiper.previousIndex!==undefined){dynamicBulletIndex+=current-(swiper.previousIndex-swiper.loopedSlides||0);if(dynamicBulletIndex>params.dynamicMainBullets-1){dynamicBulletIndex=params.dynamicMainBullets-1}else if(dynamicBulletIndex<0){dynamicBulletIndex=0}}
1403firstIndex=Math.max(current-dynamicBulletIndex,0);lastIndex=firstIndex+(Math.min(bullets.length,params.dynamicMainBullets)-1);midIndex=(lastIndex+firstIndex)/2}
1404bullets.removeClass(['','-next','-next-next','-prev','-prev-prev','-main'].map(suffix=>`${params.bulletActiveClass}${suffix}`).join(' '));if($el.length>1){bullets.each(bullet=>{const $bullet=$(bullet);const bulletIndex=$bullet.index();if(bulletIndex===current){$bullet.addClass(params.bulletActiveClass)}
1405if(params.dynamicBullets){if(bulletIndex>=firstIndex&&bulletIndex<=lastIndex){$bullet.addClass(`${params.bulletActiveClass}-main`)}
1406if(bulletIndex===firstIndex){setSideBullets($bullet,'prev')}
1407if(bulletIndex===lastIndex){setSideBullets($bullet,'next')}}})}else{const $bullet=bullets.eq(current);const bulletIndex=$bullet.index();$bullet.addClass(params.bulletActiveClass);if(params.dynamicBullets){const $firstDisplayedBullet=bullets.eq(firstIndex);const $lastDisplayedBullet=bullets.eq(lastIndex);for(let i=firstIndex;i<=lastIndex;i+=1){bullets.eq(i).addClass(`${params.bulletActiveClass}-main`)}
1408if(swiper.params.loop){if(bulletIndex>=bullets.length){for(let i=params.dynamicMainBullets;i>=0;i-=1){bullets.eq(bullets.length-i).addClass(`${params.bulletActiveClass}-main`)}
1409bullets.eq(bullets.length-params.dynamicMainBullets-1).addClass(`${params.bulletActiveClass}-prev`)}else{setSideBullets($firstDisplayedBullet,'prev');setSideBullets($lastDisplayedBullet,'next')}}else{setSideBullets($firstDisplayedBullet,'prev');setSideBullets($lastDisplayedBullet,'next')}}}
1410if(params.dynamicBullets){const dynamicBulletsLength=Math.min(bullets.length,params.dynamicMainBullets+4);const bulletsOffset=(bulletSize*dynamicBulletsLength-bulletSize)/2-midIndex*bulletSize;const offsetProp=rtl?'right':'left';bullets.css(swiper.isHorizontal()?offsetProp:'top',`${bulletsOffset}px`)}}
1411if(params.type==='fraction'){$el.find(classesToSelector(params.currentClass)).text(params.formatFractionCurrent(current+1));$el.find(classesToSelector(params.totalClass)).text(params.formatFractionTotal(total))}
1412if(params.type==='progressbar'){let progressbarDirection;if(params.progressbarOpposite){progressbarDirection=swiper.isHorizontal()?'vertical':'horizontal'}else{progressbarDirection=swiper.isHorizontal()?'horizontal':'vertical'}
1413const scale=(current+1)/total;let scaleX=1;let scaleY=1;if(progressbarDirection==='horizontal'){scaleX=scale}else{scaleY=scale}
1414$el.find(classesToSelector(params.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${scaleX}) scaleY(${scaleY})`).transition(swiper.params.speed)}
1415if(params.type==='custom'&&params.renderCustom){$el.html(params.renderCustom(swiper,current+1,total));emit('paginationRender',$el[0])}else{emit('paginationUpdate',$el[0])}
1416if(swiper.params.watchOverflow&&swiper.enabled){$el[swiper.isLocked?'addClass':'removeClass'](params.lockClass)}}
1417function render(){const params=swiper.params.pagination;if(isPaginationDisabled())return;const slidesLength=swiper.virtual&&swiper.params.virtual.enabled?swiper.virtual.slides.length:swiper.slides.length;const $el=swiper.pagination.$el;let paginationHTML='';if(params.type==='bullets'){let numberOfBullets=swiper.params.loop?Math.
1417ceil((slidesLength-swiper.loopedSlides*2)/swiper.params.slidesPerGroup):swiper.snapGrid.length;if(swiper.params.freeMode&&swiper.params.freeMode.enabled&&!swiper.params.loop&&numberOfBullets>slidesLength){numberOfBullets=slidesLength}
1418for(let i=0;i<numberOfBullets;i+=1){if(params.renderBullet){paginationHTML+=params.renderBullet.call(swiper,i,params.bulletClass)}else{paginationHTML+=`<${params.bulletElement} class="${params.bulletClass}"></${params.bulletElement}>`}}
1419$el.html(paginationHTML);swiper.pagination.bullets=$el.find(classesToSelector(params.bulletClass))}
1420if(params.type==='fraction'){if(params.renderFraction){paginationHTML=params.renderFraction.call(swiper,params.currentClass,params.totalClass)}else{paginationHTML=`<span class="${params.currentClass}"></span>`+' / '+`<span class="${params.totalClass}"></span>`}
1421$el.html(paginationHTML)}
1422if(params.type==='progressbar'){if(params.renderProgressbar){paginationHTML=params.renderProgressbar.call(swiper,params.progressbarFillClass)}else{paginationHTML=`<span class="${params.progressbarFillClass}"></span>`}
1423$el.html(paginationHTML)}
1424if(params.type!=='custom'){emit('paginationRender',swiper.pagination.$el[0])}}
1425function init(){swiper.params.pagination=createElementIfNotDefined(swiper,swiper.originalParams.pagination,swiper.params.pagination,{el:'swiper-pagination'});const params=swiper.params.pagination;if(!params.el)return;let $el=$(params.el);if($el.length===0)return;if(swiper.params.uniqueNavElements&&typeof params.el==='string'&&$el.length>1){$el=swiper.$el.find(params.el);if($el.length>1){$el=$el.filter(el=>{if($(el).parents('.swiper')[0]!==swiper.el)return!1;return!0})}}
1426if(params.type==='bullets'&&params.clickable){$el.addClass(params.clickableClass)}
1427$el.addClass(params.modifierClass+params.type);$el.addClass(swiper.isHorizontal()?params.horizontalClass:params.verticalClass);if(params.type==='bullets'&&params.dynamicBullets){$el.addClass(`${params.modifierClass}${params.type}-dynamic`);dynamicBulletIndex=0;if(params.dynamicMainBullets<1){params.dynamicMainBullets=1}}
1428if(params.type==='progressbar'&&params.progressbarOpposite){$el.addClass(params.progressbarOppositeClass)}
1429if(params.clickable){$el.on('click',classesToSelector(params.bulletClass),function onClick(e){e.preventDefault();let index=$(this).index()*swiper.params.slidesPerGroup;if(swiper.params.loop)index+=swiper.loopedSlides;swiper.slideTo(index)})}
1430Object.assign(swiper.pagination,{$el,el:$el[0]});if(!swiper.enabled){$el.addClass(params.lockClass)}}
1431function destroy(){const params=swiper.params.pagination;if(isPaginationDisabled())return;const $el=swiper.pagination.$el;$el.removeClass(params.hiddenClass);$el.removeClass(params.modifierClass+params.type);$el.removeClass(swiper.isHorizontal()?params.horizontalClass:params.verticalClass);if(swiper.pagination.bullets&&swiper.pagination.bullets.removeClass)swiper.pagination.bullets.removeClass(params.bulletActiveClass);if(params.clickable){$el.off('click',classesToSelector(params.bulletClass))}}
1432on('init',()=>{if(swiper.params.pagination.enabled===!1){disable()}else{init();render();update()}});on('activeIndexChange',()=>{if(swiper.params.loop){update()}else if(typeof swiper.snapIndex==='undefined'){update()}});on('snapIndexChange',()=>{if(!swiper.params.loop){update()}});on('slidesLengthChange',()=>{if(swiper.params.loop){render();update()}});on('snapGridLengthChange',()=>{if(!swiper.params.loop){render();update()}});on('destroy',()=>{destroy()});on('enable disable',()=>{const{$el}=swiper.pagination;if($el){$el[swiper.enabled?'removeClass':'addClass'](swiper.params.pagination.lockClass)}});on('lock unlock',()=>{update()});on('click',(_s,e)=>{const targetEl=e.target;const{$el}=swiper.pagination;if(swiper.params.pagination.el&&swiper.params.pagination.hideOnClick&&$el&&$el.length>0&&!$(targetEl).hasClass(swiper.params.pagination.bulletClass)){if(swiper.navigation&&(swiper.navigation.nextEl&&targetEl===swiper.navigation.nextEl||swiper.navigation.prevEl&&targetEl===swiper.navigation.prevEl))return;const isHidden=$el.hasClass(swiper.params.pagination.hiddenClass);if(isHidden===!0){emit('paginationShow')}else{emit('paginationHide')}
1433$el.toggleClass(swiper.params.pagination.hiddenClass)}});const enable=()=>{swiper.$el.removeClass(swiper.params.pagination.paginationDisabledClass);if(swiper.pagination.$el){swiper.pagination.$el.removeClass(swiper.params.pagination.paginationDisabledClass)}
1434init();render();
1434update()};const disable=()=>{swiper.$el.addClass(swiper.params.pagination.paginationDisabledClass);if(swiper.pagination.$el){swiper.pagination.$el.addClass(swiper.params.pagination.paginationDisabledClass)}
1435destroy()};Object.assign(swiper.pagination,{enable,disable,render,update,init,destroy})}
1436function Scrollbar(_ref){let{swiper,extendParams,on,emit}=_ref;const document=getDocument();let isTouched=!1;let timeout=null;let dragTimeout=null;let dragStartPos;let dragSize;let trackSize;let divider;extendParams({scrollbar:{el:null,dragSize:'auto',hide:!1,draggable:!1,snapOnRelease:!0,lockClass:'swiper-scrollbar-lock',dragClass:'swiper-scrollbar-drag',scrollbarDisabledClass:'swiper-scrollbar-disabled',horizontalClass:`swiper-scrollbar-horizontal`,verticalClass:`swiper-scrollbar-vertical`}});swiper.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null};function setTranslate(){if(!swiper.params.scrollbar.el||!swiper.scrollbar.el)return;const{scrollbar,rtlTranslate:rtl,progress}=swiper;const{$dragEl,$el}=scrollbar;const params=swiper.params.scrollbar;let newSize=dragSize;let newPos=(trackSize-dragSize)*progress;if(rtl){newPos=-newPos;if(newPos>0){newSize=dragSize-newPos;newPos=0}else if(-newPos+dragSize>trackSize){newSize=trackSize+newPos}}else if(newPos<0){newSize=dragSize+newPos;newPos=0}else if(newPos+dragSize>trackSize){newSize=trackSize-newPos}
1437if(swiper.isHorizontal()){$dragEl.transform(`translate3d(${newPos}px, 0, 0)`);$dragEl[0].style.width=`${newSize}px`}else{$dragEl.transform(`translate3d(0px, ${newPos}px, 0)`);$dragEl[0].style.height=`${newSize}px`}
1438if(params.hide){clearTimeout(timeout);$el[0].style.opacity=1;timeout=setTimeout(()=>{$el[0].style.opacity=0;$el.transition(400)},1000)}}
1439function setTransition(duration){if(!swiper.params.scrollbar.el||!swiper.scrollbar.el)return;swiper.scrollbar.$dragEl.transition(duration)}
1440function updateSize(){if(!swiper.params.scrollbar.el||!swiper.scrollbar.el)return;const{scrollbar}=swiper;const{$dragEl,$el}=scrollbar;$dragEl[0].style.width='';$dragEl[0].style.height='';trackSize=swiper.isHorizontal()?$el[0].offsetWidth:$el[0].offsetHeight;divider=swiper.size/(swiper.virtualSize+swiper.params.slidesOffsetBefore-(swiper.params.centeredSlides?swiper.snapGrid[0]:0));if(swiper.params.scrollbar.dragSize==='auto'){dragSize=trackSize*divider}else{dragSize=parseInt(swiper.params.scrollbar.dragSize,10)}
1441if(swiper.isHorizontal()){$dragEl[0].style.width=`${dragSize}px`}else{$dragEl[0].style.height=`${dragSize}px`}
1442if(divider>=1){$el[0].style.display='none'}else{$el[0].style.display=''}
1443if(swiper.params.scrollbar.hide){$el[0].style.opacity=0}
1444if(swiper.params.watchOverflow&&swiper.enabled){scrollbar.$el[swiper.isLocked?'addClass':'removeClass'](swiper.params.scrollbar.lockClass)}}
1445function getPointerPosition(e){if(swiper.isHorizontal()){return e.type==='touchstart'||e.type==='touchmove'?e.targetTouches[0].clientX:e.clientX}
1446return e.type==='touchstart'||e.type==='touchmove'?e.targetTouches[0].clientY:e.clientY}
1447function setDragPosition(e){const{scrollbar,rtlTranslate:rtl}=swiper;const{$el}=scrollbar;let positionRatio;positionRatio=(getPointerPosition(e)-$el.offset()[swiper.isHorizontal()?'left':'top']-(dragStartPos!==null?dragStartPos:dragSize/2))/(trackSize-dragSize);positionRatio=Math.max(Math.min(positionRatio,1),0);if(rtl){positionRatio=1-positionRatio}
1448const position=swiper.minTranslate()+(swiper.maxTranslate()-swiper.minTranslate())*positionRatio;swiper.updateProgress(position);swiper.setTranslate(position);swiper.updateActiveIndex();swiper.updateSlidesClasses()}
1449function onDragStart(e){const params=swiper.params.scrollbar;const{scrollbar,$wrapperEl}=swiper;const{$el,$dragEl}=scrollbar;isTouched=!0;dragStartPos=e.target===$dragEl[0]||e.target===$dragEl?getPointerPosition(e)-e.target.getBoundingClientRect()[swiper.isHorizontal()?'left':'top']:null;e.preventDefault();e.stopPropagation();$wrapperEl.transition(100);$dragEl.transition(100);setDragPosition(e);clearTimeout(dragTimeout);$el.transition(0);if(params.hide){$el.css('opacity',1)}
1450if(swiper.params.cssMode){swiper.$wrapperEl.css('scroll-snap-type','none')}
1451emit('scrollbarDragStart',e)}
1452function onDragMove(e){const{scrollbar,$wrapperEl}=swiper;const{$el,$dragEl}=scrollbar;if(!isTouched)return;if(e.preventDefault)e.preventDefault();else e.returnValue=!1;setDragPosition(e);$wrapperEl.transition(0);$el.transition(0);$dragEl.transition(0);emit('scrollbarDragMove',e)}
1453function onDragEnd(e){const params=swiper.params.scrollbar;const{scrollbar,$wrapperEl}=swiper;const{$el}=scrollbar;if(!isTouched)return;isTouched=!1;if(swiper.params.cssMode){swiper.$wrapperEl.css('scroll-snap-type','');$wrapperEl.transition('')}
1454if(params.hide){clearTimeout(dragTimeout);dragTimeout=nextTick(()=>{$el.css('opacity',0);$el.transition(400)},1000)}
1455emit('scrollbarDragEnd',e);if(params.snapOnRelease){swiper.slideToClosest()}}
1456function events(method){const{scrollbar,touchEventsTouch,touchEventsDesktop,params,support}=swiper;const $el=scrollbar.$el;if(!$el)return;const target=$el[0];const activeListener=support.passiveListener&&params.passiveListeners?{passive:!1,capture:!1}:!1;const passiveListener=support.passiveListener&&params.passiveListeners?{passive:!0,capture:!1}:!1;if(!target)return;const eventMethod=method==='on'?'addEventListener':'removeEventListener';if(!support.touch){target[eventMethod](touchEventsDesktop.start,onDragStart,activeListener);document[eventMethod](touchEventsDesktop.move,onDragMove,activeListener);document[eventMethod](touchEventsDesktop.end,onDragEnd,passiveListener)}else{target[eventMethod](touchEventsTouch.start,onDragStart,activeListener);target[eventMethod](touchEventsTouch.move,onDragMove,activeListener);target[eventMethod](touchEventsTouch.end,onDragEnd,passiveListener)}}
1457function enableDraggable(){if(!swiper.params.scrollbar.el||!swiper.scrollbar.el)return;events('on')}
1458function disableDraggable(){if(!swiper.params.scrollbar.el||!swiper.scrollbar.el)return;events('off')}
1459function init(){const{scrollbar,$el:$swiperEl}=swiper;swiper.params.scrollbar=createElementIfNotDefined(swiper,swiper.originalParams.scrollbar,swiper.params.scrollbar,{el:'swiper-scrollbar'});const params=swiper.params.scrollbar;if(!params.el)return;let $el=$(params.el);if(swiper.params.uniqueNavElements&&typeof params.el==='string'&&$el.length>1&&$swiperEl.find(params.el).length===1){$el=$swiperEl.find(params.el)}
1460$el.addClass(swiper.isHorizontal()?params.horizontalClass:params.verticalClass);let $dragEl=$el.find(`.${swiper.params.scrollbar.dragClass}`);if($dragEl.length===0){$dragEl=$(`<div class="${swiper.params.scrollbar.dragClass}"></div>`);$el.append($dragEl)}
1461Object.assign(scrollbar,{$el,el:$el[0],$dragEl,dragEl:$dragEl[0]});if(params.draggable){enableDraggable()}
1462if($el){$el[swiper.enabled?'removeClass':'addClass'](swiper.params.scrollbar.lockClass)}}
1463function destroy(){const params=swiper.params.scrollbar;const $el=swiper.scrollbar.$el;if($el){$el.removeClass(swiper.isHorizontal()?params.horizontalClass:params.verticalClass)}
1464disableDraggable()}
1465on('init',()=>{if(swiper.params.scrollbar.enabled===!1){disable()}else{init();updateSize();setTranslate()}});on('update resize observerUpdate lock unlock',()=>{updateSize()});on('setTranslate',()=>{setTranslate()});on('setTransition',(_s,duration)=>{setTransition(duration)});on('enable disable',()=>{const{$el}=swiper.scrollbar;if($el){$el[swiper.enabled?'removeClass':'addClass'](swiper.params.scrollbar.lockClass)}});on('destroy',()=>{destroy()});const enable=()=>{swiper.$el.removeClass(swiper.params.scrollbar.scrollbarDisabledClass);if(swiper.scrollbar.$el){swiper.scrollbar.$el.removeClass(swiper.params.scrollbar.scrollbarDisabledClass)}
1466init();updateSize();setTranslate()};const disable=()=>{swiper.$el.addClass(swiper.params.scrollbar.scrollbarDisabledClass);if(swiper.scrollbar.$el){swiper.scrollbar.$el.addClass(swiper.params.scrollbar.scrollbarDisabledClass)}
1467destroy()};Object.assign(swiper.scrollbar,{enable,disable,updateSize,setTranslate,init,destroy})}
1468function Parallax(_ref){let{swiper,extendParams,on}=_ref;extendParams({parallax:{enabled:!1}});const setTransform=(el,progress)=>{const{rtl}=swiper;const $el=$(el);const rtlFactor=rtl?-1:1;const p=$el.attr('data-swiper-parallax')||'0';let x=$el.attr('data-swiper-parallax-x');let y=$el.attr('data-swiper-parallax-y');const scale=$el.attr('data-swiper-parallax-scale');const opacity=$el.attr('data-swiper-parallax-opacity');if(x||y){x=x||'0';y=y||'0'}else if(swiper.isHorizontal()){x=p;y='0'}else{y=p;x='0'}
1469if(x.indexOf('%')>=0){x=`${parseInt(x, 10) * progress * rtlFactor}%`}else{x=`${x * progress * rtlFactor}px`}
1470if(y.indexOf('%')>=0){y=`${parseInt(y, 10) * progress}%`}else{y=`${y * progress}px`}
1471if(typeof opacity!=='undefined'&&opacity!==null){const currentOpacity=opacity-(opacity-1)*(1-Math.abs(progress));$el[0].style.opacity=currentOpacity}
1472if(typeof scale==='undefined'||scale===null){$el.transform(`translate3d(${x}, ${y}, 0px)`)}else{const currentScale=scale-(scale-1)*(1-Math.abs(progress));$el.transform(`translate3d(${x}, ${y}, 0px) scale(${currentScale})`)}};const setTranslate=()=>{const{$el,slides,progress,snapGrid}=swiper;$el.children('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]').each(el=>{setTransform(el,progress)});slides.each((slideEl,slideIndex)=>{let slideProgress=slideEl.progress;if(swiper.params.slidesPerGroup>1&&swiper.params.slidesPerView!=='auto'){slideProgress+=Math.ceil(slideIndex/2)-progress*(snapGrid.length-1)}
1473slideProgress=Math.min(Math.max(slideProgress,-1),1);$(slideEl).find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]').each(el=>{setTransform(el,slideProgress)})})};const setTransition=function(duration){if(duration===void 0){duration=swiper.params.speed}
1474const{$el}=swiper;$el.find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]').each(parallaxEl=>{const $parallaxEl=$(parallaxEl);let parallaxDuration=parseInt($parallaxEl.attr('data-swiper-parallax-duration'),10)||duration;if(duration===0)parallaxDuration=0;$parallaxEl.transition(parallaxDuration)})};on('beforeInit',()=>{if(!swiper.params.parallax.enabled)return;swiper.params.watchSlidesProgress=!0;swiper.originalParams.watchSlidesProgress=!0});on('init',()=>{if(!swiper.params.parallax.enabled)return;setTranslate()});on('setTranslate',()=>{if(!swiper.params.parallax.enabled)return;setTranslate()});on('setTransition',(_swiper,duration)=>
vendor: 12,900 bytes, lines 1474-1524
1474{if(!swiper.params.parallax.enabled)return;setTransition(duration)})}
1475function Zoom(_ref){let{swiper,extendParams,on,emit}=_ref;const window=getWindow();extendParams({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:'swiper-zoom-container',zoomedSlideClass:'swiper-slide-zoomed'}});swiper.zoom={enabled:!1};let currentScale=1;let isScaling=!1;let gesturesEnabled;let fakeGestureTouched;let fakeGestureMoved;const gesture={$slideEl:undefined,slideWidth:undefined,slideHeight:undefined,$imageEl:undefined,$imageWrapEl:undefined,maxRatio:3};const image={isTouched:undefined,isMoved:undefined,currentX:undefined,currentY:undefined,minX:undefined,minY:undefined,maxX:undefined,maxY:undefined,width:undefined,height:undefined,startX:undefined,startY:undefined,touchesStart:{},touchesCurrent:{}};const velocity={x:undefined,y:undefined,prevPositionX:undefined,prevPositionY:undefined,prevTime:undefined};let scale=1;Object.defineProperty(swiper.zoom,'scale',{get(){return scale},set(value){if(scale!==value){const imageEl=gesture.$imageEl?gesture.$imageEl[0]:undefined;const slideEl=gesture.$slideEl?gesture.$slideEl[0]:undefined;emit('zoomChange',value,imageEl,slideEl)}
1476scale=value}});function getDistanceBetweenTouches(e){if(e.targetTouches.length<2)return 1;const x1=e.targetTouches[0].pageX;const y1=e.targetTouches[0].pageY;const x2=e.targetTouches[1].pageX;const y2=e.targetTouches[1].pageY;const distance=Math.sqrt((x2-x1)**2+(y2-y1)**2);return distance}
1477function onGestureStart(e){const support=swiper.support;const params=swiper.params.zoom;fakeGestureTouched=!1;fakeGestureMoved=!1;if(!support.gestures){if(e.type!=='touchstart'||e.type==='touchstart'&&e.targetTouches.length<2){return}
1478fakeGestureTouched=!0;gesture.scaleStart=getDistanceBetweenTouches(e)}
1479if(!gesture.$slideEl||!gesture.$slideEl.length){gesture.$slideEl=$(e.target).closest(`.${swiper.params.slideClass}`);if(gesture.$slideEl.length===0)gesture.$slideEl=swiper.slides.eq(swiper.activeIndex);gesture.$imageEl=gesture.$slideEl.find(`.${params.containerClass}`).eq(0).find('picture, img, svg, canvas, .swiper-zoom-target').eq(0);gesture.$imageWrapEl=gesture.$imageEl.parent(`.${params.containerClass}`);gesture.maxRatio=gesture.$imageWrapEl.attr('data-swiper-zoom')||params.maxRatio;if(gesture.$imageWrapEl.length===0){gesture.$imageEl=undefined;return}}
1480if(gesture.$imageEl){gesture.$imageEl.transition(0)}
1481isScaling=!0}
1482function onGestureChange(e){const support=swiper.support;const params=swiper.params.zoom;const zoom=swiper.zoom;if(!support.gestures){if(e.type!=='touchmove'||e.type==='touchmove'&&e.targetTouches.length<2){return}
1483fakeGestureMoved=!0;gesture.scaleMove=getDistanceBetweenTouches(e)}
1484if(!gesture.$imageEl||gesture.$imageEl.length===0){if(e.type==='gesturechange')onGestureStart(e);return}
1485if(support.gestures){zoom.scale=e.scale*currentScale}else{zoom.scale=gesture.scaleMove/gesture.scaleStart*currentScale}
1486if(zoom.scale>gesture.maxRatio){zoom.scale=gesture.maxRatio-1+(zoom.scale-gesture.maxRatio+1)**0.5}
1487if(zoom.scale<params.minRatio){zoom.scale=params.minRatio+1-(params.minRatio-zoom.scale+1)**0.5}
1488gesture.$imageEl.transform(`translate3d(0,0,0) scale(${zoom.scale})`)}
1489function onGestureEnd(e){const device=swiper.device;const support=swiper.support;const params=swiper.params.zoom;const zoom=swiper.zoom;if(!support.gestures){if(!fakeGestureTouched||!fakeGestureMoved){return}
1490if(e.type!=='touchend'||e.type==='touchend'&&e.changedTouches.length<2&&!device.android){return}
1491fakeGestureTouched=!1;fakeGestureMoved=!1}
1492if(!gesture.$imageEl||gesture.$imageEl.length===0)return;zoom.scale=Math.max(Math.min(zoom.scale,gesture.maxRatio),params.minRatio);gesture.$imageEl.transition(swiper.params.speed).transform(`translate3d(0,0,0) scale(${zoom.scale})`);currentScale=zoom.scale;isScaling=!1;if(zoom.scale===1)gesture.$slideEl=undefined}
1493function onTouchStart(e){const device=swiper.device;if(!gesture.$imageEl||gesture.$imageEl.length===0)return;if(image.isTouched)return;if(device.android&&e.cancelable)e.preventDefault();image.isTouched=!0;image.touchesStart.x=e.type==='touchstart'?e.targetTouches[0].pageX:e.pageX;image.touchesStart.y=e.type==='touchstart'?e.targetTouches[0].pageY:e.pageY}
1494function onTouchMove(e){const zoom=swiper.zoom;if(!gesture.$imageEl||gesture.$imageEl.length===0)return;swiper.allowClick=!1;if(!image.isTouched||!gesture.$slideEl)return;if(!image.isMoved){image.width=gesture.$imageEl[0].offsetWidth;image.height=gesture.$imageEl[0].offsetHeight;image.startX=getTranslate(gesture.$imageWrapEl[0],'x')||0;image.startY=getTranslate(gesture.$imageWrapEl[0],'y')||0;gesture.slideWidth=gesture.$slideEl[0].offsetWidth;gesture.slideHeight=gesture.$slideEl[0].offsetHeight;gesture.$imageWrapEl.transition(0)}
1495const scaledWidth=image.width*zoom.scale;const scaledHeight=image.height*zoom.scale;if(scaledWidth<gesture.slideWidth&&scaledHeight<gesture.slideHeight)return;image.minX=Math.min(gesture.slideWidth/2-scaledWidth/2,0);image.maxX=-image.minX;image.minY=Math.min(gesture.slideHeight/2-scaledHeight/2,0);image.maxY=-image.minY;image.touchesCurrent.x=e.type==='touchmove'?e.targetTouches[0].pageX:e.pageX;image.touchesCurrent.y=e.type==='touchmove'?e.targetTouches[0].pageY:e.pageY;if(!image.isMoved&&!isScaling){if(swiper.isHorizontal()&&(Math.floor(image.minX)===Math.floor(image.startX)&&image.touchesCurrent.x<image.touchesStart.x||Math.floor(image.maxX)===Math.floor(image.startX)&&image.touchesCurrent.x>image.touchesStart.x)){image.isTouched=!1;return}
1496if(!swiper.isHorizontal()&&(Math.floor(image.minY)===Math.floor(image.startY)&&image.touchesCurrent.y<image.touchesStart.y||Math.floor(image.maxY)===Math.floor(image.startY)&&image.touchesCurrent.y>image.touchesStart.y)){image.isTouched=!1;return}}
1497if(e.cancelable){e.preventDefault()}
1498e.stopPropagation();image.isMoved=!0;image.currentX=image.touchesCurrent.x-image.touchesStart.x+image.startX;image.currentY=image.touchesCurrent.y-image.touchesStart.y+image.startY;if(image.currentX<image.minX){image.currentX=image.minX+1-(image.minX-image.currentX+1)**0.8}
1499if(image.currentX>image.maxX){image.currentX=image.maxX-1+(image.currentX-image.maxX+1)**0.8}
1500if(image.currentY<image.minY){image.currentY=image.minY+1-(image.minY-image.currentY+1)**0.8}
1501if(image.currentY>image.maxY){image.currentY=image.maxY-1+(image.currentY-image.maxY+1)**0.8}
1502if(!velocity.prevPositionX)velocity.prevPositionX=image.touchesCurrent.x;if(!velocity.prevPositionY)velocity.prevPositionY=image.touchesCurrent.y;if(!velocity.prevTime)velocity.prevTime=Date.now();velocity.x=(image.touchesCurrent.x-velocity.prevPositionX)/(Date.now()-velocity.prevTime)/2;velocity.y=(image.touchesCurrent.y-velocity.prevPositionY)/(Date.now()-velocity.prevTime)/2;if(Math.abs(image.touchesCurrent.x-velocity.prevPositionX)<2)velocity.x=0;if(Math.abs(image.touchesCurrent.y-velocity.prevPositionY)<2)velocity.y=0;velocity.prevPositionX=image.touchesCurrent.x;velocity.prevPositionY=image.touchesCurrent.y;velocity.prevTime=Date.now();gesture.$imageWrapEl.transform(`translate3d(${image.currentX}px, ${image.currentY}px,0)`)}
1503function onTouchEnd(){const zoom=swiper.zoom;if(!gesture.$imageEl||gesture.$imageEl.length===0)return;if(!image.isTouched||!image.isMoved){image.isTouched=!1;image.isMoved=!1;return}
1504image.isTouched=!1;image.isMoved=!1;let momentumDurationX=300;let momentumDurationY=300;const momentumDistanceX=velocity.x*momentumDurationX;const newPositionX=image.currentX+momentumDistanceX;const momentumDistanceY=velocity.y*momentumDurationY;const newPositionY=image.currentY+momentumDistanceY;if(velocity.x!==0)momentumDurationX=Math.abs((newPositionX-image.currentX)/velocity.x);if(velocity.y!==0)momentumDurationY=Math.abs((newPositionY-image.currentY)/velocity.y);const momentumDuration=Math.max(momentumDurationX,momentumDurationY);image.currentX=newPositionX;image.currentY=newPositionY;const scaledWidth=image.width*zoom.scale;const scaledHeight=image.height*zoom.scale;image.minX=Math.min(gesture.slideWidth/2-scaledWidth/2,0);image.maxX=-image.minX;image.minY=Math.min(gesture.slideHeight/2-scaledHeight/2,0);image.maxY=-image.minY;image.currentX=Math.max(Math.min(image.currentX,image.maxX),image.minX);image.currentY=Math.max(Math.min(image.currentY,image.maxY),image.minY);gesture.$imageWrapEl.transition(momentumDuration).transform(`translate3d(${image.currentX}px, ${image.currentY}px,0)`)}
1505function onTransitionEnd(){const zoom=swiper.zoom;if(gesture.$slideEl&&swiper.previousIndex!==swiper.activeIndex){if(gesture.$imageEl){gesture.$imageEl.transform('translate3d(0,0,0) scale(1)')}
1506if(gesture.$imageWrapEl){gesture.$imageWrapEl.transform('translate3d(0,0,0)')}
1507zoom.scale=1;currentScale=1;gesture.$slideEl=undefined;gesture.$imageEl=undefined;gesture.$imageWrapEl=undefined}}
1508function zoomIn(e){const zoom=swiper.zoom;const params=swiper.params.zoom;if(!gesture.$slideEl){if(e&&e.target){gesture.$slideEl=$(e.target).closest(`.${swiper.params.slideClass}`)}
1509if(!gesture.$slideEl){if(swiper.params.virtual&&swiper.params.virtual.enabled&&swiper.virtual){gesture.$slideEl=swiper.$wrapperEl.children(`.${swiper.params.slideActiveClass}`)}else{gesture.$slideEl=swiper.slides.eq(swiper.activeIndex)}}
1510gesture.$imageEl=gesture.$slideEl.find(`.${params.containerClass}`).eq(0).find('picture, img, svg, canvas, .swiper-zoom-target').eq(0);gesture.$imageWrapEl=gesture.$imageEl.parent(`.${params.containerClass}`)}
1511if(!gesture.$imageEl||gesture.$imageEl.length===0||!gesture.$imageWrapEl||gesture.$imageWrapEl.length===0)return;if(swiper.params.cssMode){swiper.wrapperEl.style.overflow='hidden';swiper.wrapperEl.style.touchAction='none'}
1512gesture.$slideEl.addClass(`${params.zoomedSlideClass}`);let touchX;let touchY;let offsetX;let offsetY;let diffX;let diffY;let translateX;let translateY;let imageWidth;let imageHeight;let scaledWidth;let scaledHeight;let translateMinX;let translateMinY;let translateMaxX;let translateMaxY;let slideWidth;let slideHeight;if(typeof image.touchesStart.x==='undefined'&&e){touchX=e.type==='touchend'?e.changedTouches[0].pageX:e.pageX;touchY=e.type==='touchend'?e.changedTouches[0].pageY:e.pageY}else{touchX=image.touchesStart.x;touchY=image.touchesStart.y}
1513zoom.scale=gesture.$imageWrapEl.attr('data-swiper-zoom')||params.maxRatio;currentScale=gesture.$imageWrapEl.attr('data-swiper-zoom')||params.maxRatio;if(e){slideWidth=gesture.$slideEl[0].offsetWidth;slideHeight=gesture.$slideEl[0].offsetHeight;offsetX=gesture.$slideEl.offset().left+window.scrollX;offsetY=gesture.$slideEl.offset().top+window.scrollY;diffX=offsetX+slideWidth/2-touchX;diffY=offsetY+slideHeight/2-touchY;imageWidth=gesture.$imageEl[0].offsetWidth;imageHeight=gesture.$imageEl[0].offsetHeight;scaledWidth=imageWidth*zoom.scale;scaledHeight=imageHeight*zoom.scale;translateMinX=Math.min(slideWidth/2-scaledWidth/2,0);translateMinY=Math.min(slideHeight/2-scaledHeight/2,0);translateMaxX=-translateMinX;translateMaxY=-translateMinY;translateX=diffX*zoom.scale;translateY=diffY*zoom.scale;if(translateX<translateMinX){translateX=translateMinX}
1514if(translateX>translateMaxX){translateX=translateMaxX}
1515if(translateY<translateMinY){translateY=translateMinY}
1516if(translateY>translateMaxY){translateY=translateMaxY}}else{translateX=0;translateY=0}
1517gesture.$imageWrapEl.transition(300).transform(`translate3d(${translateX}px, ${translateY}px,0)`);gesture.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${zoom.scale})`)}
1518function zoomOut(){const zoom=swiper.zoom;const params=swiper.params.zoom;if(!gesture.$slideEl){if(swiper.params.virtual&&swiper.params.virtual.enabled&&swiper.virtual){gesture.$slideEl=swiper.$wrapperEl.children(`.${swiper.params.slideActiveClass}`)}else{gesture.$slideEl=swiper.slides.eq(swiper.activeIndex)}
1519gesture.$imageEl=gesture.$slideEl.find(`.${params.containerClass}`).eq(0).find('picture, img, svg, canvas, .swiper-zoom-target').eq(0);gesture.$imageWrapEl=gesture.$imageEl.parent(`.${params.containerClass}`)}
1520if(!gesture.$imageEl||gesture.$imageEl.length===0||!gesture.$imageWrapEl||gesture.$imageWrapEl.length===0)return;if(swiper.params.cssMode){swiper.wrapperEl.style.overflow='';swiper.wrapperEl.style.touchAction=''}
1521zoom.scale=1;currentScale=1;gesture.$imageWrapEl.transition(300).transform('translate3d(0,0,0)');gesture.$imageEl.transition(300).transform('translate3d(0,0,0) scale(1)');gesture.$slideEl.removeClass(`${params.zoomedSlideClass}`);gesture.$slideEl=undefined}
1522function zoomToggle(e){const zoom=swiper.zoom;if(zoom.scale&&zoom.scale!==1){zoomOut()}else{zoomIn(e)}}
1523function getListeners(){const support=swiper.support;const passiveListener=swiper.touchEvents.start==='touchstart'&&support.passiveListener&&swiper.params.passiveListeners?{passive:!0,capture:!1}:!1;const activeListenerWithCapture=support.passiveListener?{passive:!1,capture:!0}:!0;return{passiveListener,activeListenerWithCapture}}
1524function getSlideSelector(){return `.${swiper.params.slideClass}`}
1525function toggleGestures(method){const{passiveListener}=getListeners();const slideSelector=getSlideSelector();swiper.$wrapperEl[method]('gesturestart',slideSelector,onGestureStart,passiveListener);swiper.$wrapperEl[method]('gesturechange',slideSelector,onGestureChange,passiveListener);swiper.$wrapperEl[method]('gestureend',slideSelector,onGestureEnd,passiveListener)}
1526function enableGestures(){if(gesturesEnabled)return;gesturesEnabled=!0;toggleGestures('on')}
1527function disableGestures(){if(!gesturesEnabled)return;gesturesEnabled=!1;toggleGestures('off')}
1528function enable(){const zoom=swiper.zoom;if(zoom.enabled)return;zoom.enabled=!0;const support=swiper.support;const{passiveListener,activeListenerWithCapture}=getListeners();const slideSelector=getSlideSelector();if(support.gestures){swiper.$wrapperEl.on(swiper.touchEvents.start,enableGestures,passiveListener);swiper.$wrapperEl.on(swiper.touchEvents.end,disableGestures,passiveListener)}else if(swiper.touchEvents.start==='touchstart'){swiper.$wrapperEl.on(swiper.touchEvents.start,slideSelector,onGestureStart,passiveListener);swiper.$wrapperEl.on(swiper.touchEvents.move,slideSelector,onGestureChange,activeListenerWithCapture);swiper.$wrapperEl.on(swiper.touchEvents.end,slideSelector,onGestureEnd,passiveListener);if(swiper.touchEvents.cancel){swiper.$wrapperEl.on(swiper.touchEvents.cancel,slideSelector,onGestureEnd,passiveListener)}}
1529swiper.$wrapperEl.on(swiper.touchEvents.move,`.${swiper.params.zoom.containerClass}`,onTouchMove,activeListenerWithCapture)}
1530function disable(){const zoom=swiper.zoom;if(!zoom.enabled)return;const support=swiper.support;zoom.enabled=!1;const{passiveListener,activeListenerWithCapture}=getListeners();const slideSelector=getSlideSelector();if(support.gestures){swiper.$wrapperEl.off(swiper.touchEvents.start,enableGestures,passiveListener);swiper.$wrapperEl.off(swiper.touchEvents.end,disableGestures,passiveListener)}else if(swiper.touchEvents.start==='touchstart'){swiper.$wrapperEl.off(swiper.touchEvents.start,slideSelector,onGestureStart,passiveListener);swiper.$wrapperEl.off(swiper.touchEvents.move,slideSelector,onGestureChange,activeListenerWithCapture);swiper.$wrapperEl.off(swiper.touchEvents.end,slideSelector,onGestureEnd,passiveListener);if(swiper.touchEvents.cancel){swiper.$wrapperEl.off(swiper.touchEvents.cancel,slideSelector,onGestureEnd,passiveListener)}}
1531swiper.$wrapperEl.off(swiper.touchEvents.move,`.${swiper.params.zoom.containerClass}`,onTouchMove,activeListenerWithCapture)}
1532on('init',()=>{if(swiper.params.zoom.enabled){enable()}});on('destroy',()=>{disable()});on('touchStart',(_s,e)=>{if(!swiper.zoom.enabled)return;onTouchStart(e)});on('touchEnd',(_s,e)=>{if(!swiper.zoom.enabled)return;onTouchEnd()});on('doubleTap',(_s,e)=>{if(!swiper.animating&&swiper.params.zoom.enabled&&swiper.zoom.enabled&&swiper.params.zoom.toggle){zoomToggle(e)}});on('transitionEnd',()=>{if(swiper.zoom.enabled&&swiper.params.zoom.enabled){onTransitionEnd()}});on('slideChange',()=>{if(swiper.zoom.enabled&&swiper.params.zoom.enabled&&swiper.params.cssMode){onTransitionEnd()}});Object.assign(swiper.zoom,{enable,disable,in:zoomIn,out:zoomOut,toggle:zoomToggle})}
1533function Lazy(_ref){let{swiper,extendParams,on,emit}=_ref;extendParams({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:'',elementClass:'swiper-lazy',loadingClass:'swiper-lazy-loading',loadedClass:'swiper-lazy-loaded',preloaderClass:'swiper-lazy-preloader'}});swiper.lazy={};let scrollHandlerAttached=!1;let initialImageLoaded=!1;function loadInSlide(index,loadInDuplicate){if(loadInDuplicate===void 0){loadInDuplicate=!0}
1534const params=swiper.params.lazy;if(typeof index==='undefined')return;if(swiper.slides.length===0)return;const isVirtual=swiper.virtual&&swiper.params.virtual.enabled;const $slideEl=isVirtual?swiper.$wrapperEl.children(`.${swiper.params.slideClass}[data-swiper-slide-index="${index}"]`):swiper.slides.eq(index);const $images=$slideEl.find(`.${params.elementClass}:not(.${params.loadedClass}):not(.${params.loadingClass})`);if($slideEl.hasClass(params.elementClass)&&!$slideEl.hasClass(params.loadedClass)&&!$slideEl.hasClass(params.loadingClass)){$images.push($slideEl[0])}
1535if($images.length===0)return;$images.each(imageEl=>{const $imageEl=$(imageEl);$imageEl.addClass(params.loadingClass);const background=$imageEl.attr('data-background');const src=$imageEl.attr('data-src');const srcset=$imageEl.attr('data-srcset');const sizes=$imageEl.attr('data-sizes');const $pictureEl=$imageEl.parent('picture');swiper.loadImage($imageEl[0],src||background,srcset,sizes,!1,()=>{if(typeof swiper==='undefined'||swiper===null||!swiper||swiper&&!swiper.params||swiper.destroyed)return;if(background){$imageEl.css('background-image',`url("${background}")`);$imageEl.removeAttr('data-background')}else{if(srcset){$imageEl.attr('srcset',srcset);$imageEl.removeAttr('data-srcset')}
1536if(sizes){$imageEl.attr('sizes',sizes);$imageEl.removeAttr('data-sizes')}
1537if($pictureEl.length){$pictureEl.children('source').each(sourceEl=>{const $source=$(sourceEl);if($source.attr('data-srcset')){$source.attr('srcset',$source.attr('data-srcset'));$source.removeAttr('data-srcset')}})}
1538if(src){$imageEl.attr('src',src);$imageEl.removeAttr('data-src')}}
1539$imageEl.addClass(params.loadedClass).removeClass(params.loadingClass);$slideEl.find(`.${params.preloaderClass}`).remove();
1539if(swiper.params.loop&&loadInDuplicate){const slideOriginalIndex=$slideEl.attr('data-swiper-slide-index');if($slideEl.hasClass(swiper.params.slideDuplicateClass)){const originalSlide=swiper.$wrapperEl.children(`[data-swiper-slide-index="${slideOriginalIndex}"]:not(.${swiper.params.slideDuplicateClass})`);loadInSlide(originalSlide.index(),!1)}else{const duplicatedSlide=swiper.$wrapperEl.children(`.${swiper.params.slideDuplicateClass}[data-swiper-slide-index="${slideOriginalIndex}"]`);loadInSlide(duplicatedSlide.index(),!1)}}
1540emit('lazyImageReady',$slideEl[0],$imageEl[0]);if(swiper.params.autoHeight){swiper.updateAutoHeight()}});emit('lazyImageLoad',$slideEl[0],$imageEl[0])})}
1541function load(){const{$wrapperEl,params:swiperParams,slides,activeIndex}=swiper;const isVirtual=swiper.virtual&&swiperParams.virtual.enabled;const params=swiperParams.lazy;let slidesPerView=swiperParams.slidesPerView;if(slidesPerView==='auto'){slidesPerView=0}
1542function slideExist(index){if(isVirtual){if($wrapperEl.children(`.${swiperParams.slideClass}[data-swiper-slide-index="${index}"]`).length){return!0}}else if(slides[index])return!0;return!1}
1543function slideIndex(slideEl){if(isVirtual){return $(slideEl).attr('data-swiper-slide-index')}
1544return $(slideEl).index()}
1545if(!initialImageLoaded)initialImageLoaded=!0;if(swiper.params.watchSlidesProgress){$wrapperEl.children(`.${swiperParams.slideVisibleClass}`).each(slideEl=>{const index=isVirtual?$(slideEl).attr('data-swiper-slide-index'):$(slideEl).index();loadInSlide(index)})}else if(slidesPerView>1){for(let i=activeIndex;i<activeIndex+slidesPerView;i+=1){if(slideExist(i))loadInSlide(i);}}else{loadInSlide(activeIndex)}
1546if(params.loadPrevNext){if(slidesPerView>1||params.loadPrevNextAmount&&params.loadPrevNextAmount>1){const amount=params.loadPrevNextAmount;const spv=Math.ceil(slidesPerView);const maxIndex=Math.min(activeIndex+spv+Math.max(amount,spv),slides.length);const minIndex=Math.max(activeIndex-Math.max(spv,amount),0);for(let i=activeIndex+spv;i<maxIndex;i+=1){if(slideExist(i))loadInSlide(i);}
1547for(let i=minIndex;i<activeIndex;i+=1){if(slideExist(i))loadInSlide(i);}}else{const nextSlide=$wrapperEl.children(`.${swiperParams.slideNextClass}`);if(nextSlide.length>0)loadInSlide(slideIndex(nextSlide));const prevSlide=$wrapperEl.children(`.${swiperParams.slidePrevClass}`);if(prevSlide.length>0)loadInSlide(slideIndex(prevSlide));}}}
1548function checkInViewOnLoad(){const window=getWindow();if(!swiper||swiper.destroyed)return;const $scrollElement=swiper.params.lazy.scrollingElement?$(swiper.params.lazy.scrollingElement):$(window);const isWindow=$scrollElement[0]===window;const scrollElementWidth=isWindow?window.innerWidth:$scrollElement[0].offsetWidth;const scrollElementHeight=isWindow?window.innerHeight:$scrollElement[0].offsetHeight;const swiperOffset=swiper.$el.offset();const{rtlTranslate:rtl}=swiper;let inView=!1;if(rtl)swiperOffset.left-=swiper.$el[0].scrollLeft;const swiperCoord=[[swiperOffset.left,swiperOffset.top],[swiperOffset.left+swiper.width,swiperOffset.top],[swiperOffset.left,swiperOffset.top+swiper.height],[swiperOffset.left+swiper.width,swiperOffset.top+swiper.height]];for(let i=0;i<swiperCoord.length;i+=1){const point=swiperCoord[i];if(point[0]>=0&&point[0]<=scrollElementWidth&&point[1]>=0&&point[1]<=scrollElementHeight){if(point[0]===0&&point[1]===0)continue;inView=!0}}
1549const passiveListener=swiper.touchEvents.start==='touchstart'&&swiper.support.passiveListener&&swiper.params.passiveListeners?{passive:!0,capture:!1}:!1;if(inView){load();
1549$scrollElement.off('scroll',checkInViewOnLoad,passiveListener)}else if(!scrollHandlerAttached){scrollHandlerAttached=!0;$scrollElement.on('scroll',checkInViewOnLoad,passiveListener)}}
1550on('beforeInit',()=>{if(swiper.params.lazy.enabled&&swiper.params.preloadImages){swiper.params.preloadImages=!1}});on('init',()=>{if(swiper.params.lazy.enabled){if(swiper.params.lazy.checkInView){checkInViewOnLoad()}else{load()}}});on('scroll',()=>{if(swiper.params.freeMode&&swiper.params.freeMode.enabled&&!swiper.params.freeMode.sticky){load()}});on('scrollbarDragMove resize _freeModeNoMomentumRelease',()=>{if(swiper.params.lazy.enabled){if(swiper.params.lazy.checkInView){checkInViewOnLoad()}else{load()}}});on('transitionStart',()=>{if(swiper.params.lazy.enabled){if(swiper.params.lazy.loadOnTransitionStart||!swiper.params.lazy.loadOnTransitionStart&&!initialImageLoaded){if(swiper.params.lazy.checkInView){checkInViewOnLoad()}else{load()}}}});on('transitionEnd',()=>{if(swiper.params.lazy.enabled&&!swiper.params.lazy.loadOnTransitionStart){if(swiper.params.lazy.checkInView){checkInViewOnLoad()}else{load()}}});on('slideChange',()=>{const{lazy,cssMode,watchSlidesProgress,touchReleaseOnEdges,resistanceRatio}=swiper.params;if(lazy.enabled&&(cssMode||watchSlidesProgress&&(touchReleaseOnEdges||resistanceRatio===0))){load()}});on('destroy',()=>{if(!swiper.$el)return;swiper.$el.find(`.${swiper.params.lazy.loadingClass}`).removeClass(swiper.params.lazy.loadingClass)});Object.assign(swiper.lazy,{load,loadInSlide})}
1551function Controller(_ref){let{swiper,extendParams,on}=_ref;extendParams({controller:{control:undefined,inverse:!1,by:'slide'}});swiper.controller={control:undefined};function LinearSpline(x,y){const binarySearch=function search(){let maxIndex;let minIndex;let guess;return(array,val)=>{minIndex=-1;maxIndex=array.length;while(maxIndex-minIndex>1){guess=maxIndex+minIndex>>1;if(array[guess]<=val){minIndex=guess}else{maxIndex=guess}}
1552return maxIndex}}();this.x=x;this.y=y;this.lastIndex=x.length-1;let i1;let i3;this.interpolate=function interpolate(x2){if(!x2)return 0;i3=binarySearch(this.x,x2);i1=i3-1;return(x2-this.x[i1])*(this.y[i3]-this.y[i1])/(this.x[i3]-this.x[i1])+this.y[i1]};return this}
1553function getInterpolateFunction(c){if(!swiper.controller.spline){swiper.controller.spline=swiper.params.loop?new LinearSpline(swiper.slidesGrid,c.slidesGrid):new LinearSpline(swiper.snapGrid,c.snapGrid)}}
1554function setTranslate(_t,byController){const controlled=swiper.controller.control;let multiplier;let controlledTranslate;const Swiper=swiper.constructor;function setControlledTranslate(c){const translate=swiper.rtlTranslate?-swiper.translate:swiper.translate;if(swiper.params.controller.by==='slide'){getInterpolateFunction(c);controlledTranslate=-swiper.controller.spline.interpolate(-translate)}
1555if(!controlledTranslate||swiper.params.controller.by==='container'){multiplier=(c.maxTranslate()-c.minTranslate())/(swiper.maxTranslate()-swiper.minTranslate());controlledTranslate=(translate-swiper.minTranslate())*multiplier+c.minTranslate()}
1556if(swiper.params.controller.inverse){controlledTranslate=c.maxTranslate()-controlledTranslate}
1557c.updateProgress(controlledTranslate);c.setTranslate(controlledTranslate,swiper);c.updateActiveIndex();c.updateSlidesClasses()}
1558if(Array.isArray(controlled)){for(let i=0;i<controlled.length;i+=1){if(controlled[i]!==byController&&controlled[i]instanceof Swiper){setControlledTranslate(controlled[i])}}}else if(controlled instanceof Swiper&&byController!==controlled){setControlledTranslate(controlled)}}
1559function setTransition(duration,byController){const Swiper=swiper.constructor;const controlled=swiper.controller.control;let i;function setControlledTransition(c){c.setTransition(duration,swiper);if(duration!==0){c.transitionStart();if(c.params.autoHeight){nextTick(()=>{c.updateAutoHeight()})}
1560c.$wrapperEl.transitionEnd(()=>{if(!controlled)return;if(c.params.loop&&swiper.params.controller.by==='slide'){c.loopFix()}
1561c.transitionEnd()})}}
1562if(Array.isArray(controlled)){for(i=0;i<controlled.length;i+=1){if(controlled[i]!==byController&&controlled[i]instanceof Swiper){setControlledTransition(controlled[i])}}}else if(controlled instanceof Swiper&&byController!==controlled){setControlledTransition(controlled)}}
1563function removeSpline(){if(!swiper.controller.control)return;if(swiper.controller.spline){swiper.controller.spline=undefined;delete swiper.controller.spline}}
1564on('beforeInit',()=>{swiper.controller.control=swiper.params.controller.control});on('update',()=>{removeSpline()});on('resize',()=>{removeSpline()});on('observerUpdate',()=>{removeSpline()});on('setTranslate',(_s,translate,byController)=>{if(!swiper.controller.control)return;swiper.controller.setTranslate(translate,byController)});on('setTransition',(_s,duration,byController)=>{if(!swiper.controller.control)return;swiper.controller.setTransition(duration,byController)});Object.assign(swiper.controller,{setTranslate,setTransition})}
1565function A11y(_ref){let{swiper,extendParams,on}=_ref;extendParams({a11y:{enabled:!0,notificationClass:'swiper-notification',prevSlideMessage:'Previous slide',nextSlideMessage:'Next slide',firstSlideMessage:'This is the first slide',lastSlideMessage:'This is the last slide',paginationBulletMessage:'Go to slide {{index}}',slideLabelMessage:'{{index}} / {{slidesLength}}',containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:'group',id:null}});swiper.a11y={clicked:!1};let liveRegion=null;function notify(message){const notification=liveRegion;if(notification.length===0)return;notification.html('');notification.html(message)}
1566function getRandomNumber(size){if(size===void 0){size=16}
1567const randomChar=()=>Math.round(16*Math.random()).toString(16);return'x'.repeat(size).replace(/x/g,randomChar)}
1568function makeElFocusable($el){$el.attr('tabIndex','0')}
1569function makeElNotFocusable($el){$el.attr('tabIndex','-1')}
1570function addElRole($el,role){$el.attr('role',role)}
1571function addElRoleDescription($el,description){$el.attr('aria-roledescription',description)}
1572function addElControls($el,controls){$el.attr('aria-controls',controls)}
1573function addElLabel($el,label){$el.attr('aria-label',label)}
1574function addElId($el,id){$el.attr('id',id)}
1575function addElLive($el,live){$el.attr('aria-live',live)}
1576function disableEl($el){$el.attr('aria-disabled',!0)}
1577function enableEl($el){$el.attr('aria-disabled',!1)}
1578function onEnterOrSpaceKey(e){if(e.keyCode!==13&&e.keyCode!==32)return;const params=swiper.params.a11y;const $targetEl=$(e.target);if(swiper.navigation&&swiper.navigation.$nextEl&&$targetEl.is(swiper.navigation.$nextEl)){if(!(swiper.isEnd&&!swiper.params.loop)){swiper.slideNext()}
1579if(swiper.isEnd){notify(params.lastSlideMessage)}else{notify(params.nextSlideMessage)}}
1580if(swiper.navigation&&swiper.navigation.$prevEl&&$targetEl.is(swiper.navigation.$prevEl)){if(!(swiper.isBeginning&&!swiper.params.loop)){swiper.slidePrev()}
1581if(swiper.isBeginning){notify(params.firstSlideMessage)}else{notify(params.prevSlideMessage)}}
1582if(swiper.pagination&&$targetEl.is(classesToSelector(swiper.params.pagination.bulletClass))){$targetEl[0].click()}}
1583function updateNavigation(){if(swiper.params.loop||swiper.params.rewind||!swiper.navigation)return;const{$nextEl,$prevEl}=swiper.navigation;if($prevEl&&$prevEl.length>0){if(swiper.isBeginning){disableEl($prevEl);makeElNotFocusable($prevEl)}else{enableEl($prevEl);makeElFocusable($prevEl)}}
1584if($nextEl&&$nextEl.length>0){if(swiper.isEnd){disableEl($nextEl);makeElNotFocusable($nextEl)}else{enableEl($nextEl);makeElFocusable($nextEl)}}}
1585function hasPagination(){return swiper.pagination&&swiper.pagination.bullets&&swiper.pagination.bullets.length}
1586function hasClickablePagination(){return hasPagination()&&swiper.params.pagination.clickable}
1587function updatePagination(){const params=swiper.params.a11y;if(!hasPagination())return;swiper.pagination.bullets.each(bulletEl=>{const $bulletEl=$(bulletEl);if(swiper.params.pagination.clickable){makeElFocusable($bulletEl);if(!swiper.params.pagination.renderBullet){addElRole($bulletEl,'button');addElLabel($bulletEl,params.paginationBulletMessage.replace(/\{\{index\}\}/,$bulletEl.index()+1))}}
1588if($bulletEl.is(`.${swiper.params.pagination.bulletActiveClass}`)){$bulletEl.attr('aria-current','true')}else{$bulletEl.removeAttr('aria-current')}})}
1589const initNavEl=($el,wrapperId,message)=>{makeElFocusable($el);if($el[0].tagName!=='BUTTON'){addElRole($el,'button');$el.on('keydown',onEnterOrSpaceKey)}
1590addElLabel($el,message);addElControls($el,wrapperId)};const handlePointerDown=()=>{swiper.a11y.clicked=!0};const handlePointerUp=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(!swiper.destroyed){swiper.a11y.clicked=!1}})})};const handleFocus=e=>{if(swiper.a11y.clicked)return;const slideEl=e.target.closest(`.${swiper.params.slideClass}`);if(!slideEl||!swiper.slides.includes(slideEl))return;const isActive=swiper.slides.indexOf(slideEl)===swiper.activeIndex;const isVisible=swiper.params.watchSlidesProgress&&swiper.visibleSlides&&swiper.visibleSlides.includes(slideEl);if(isActive||isVisible)return;if(e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents)return;if(swiper.isHorizontal()){swiper.el.scrollLeft=0}else{swiper.el.scrollTop=0}
1591swiper.slideTo(swiper.slides.indexOf(slideEl),0)};const initSlides=()=>{const params=swiper.params.a11y;if(params.itemRoleDescriptionMessage){addElRoleDescription($(swiper.slides),params.itemRoleDescriptionMessage)}
1592if(params.slideRole){addElRole($(swiper.slides),params.slideRole)}
1593const slidesLength=swiper.params.loop?swiper.slides.filter(el=>!el.classList.contains(swiper.params.slideDuplicateClass)).length:swiper.slides.length;if(params.slideLabelMessage){swiper.slides.each((slideEl,index)=>{const $slideEl=$(slideEl);const slideIndex=swiper.params.loop?parseInt($slideEl.attr('data-swiper-slide-index'),10):index;const ariaLabelMessage=params.slideLabelMessage.replace(/\{\{index\}\}/,slideIndex+1).replace(/\{\{slidesLength\}\}/,slidesLength);addElLabel($slideEl,ariaLabelMessage)})}};const init=()=>{const params=swiper.params.a11y;swiper.$el.append(liveRegion);const $containerEl=swiper.$el;if(params.containerRoleDescriptionMessage){addElRoleDescription($containerEl,params.containerRoleDescriptionMessage)}
1594if(params.containerMessage){addElLabel($containerEl,params.containerMessage)}
1595const $wrapperEl=swiper.$wrapperEl;const wrapperId=params.id||$wrapperEl.attr('id')||`swiper-wrapper-${getRandomNumber(16)}`;const live=swiper.params.autoplay&&swiper.params.autoplay.enabled?'off':'polite';addElId($wrapperEl,wrapperId);addElLive($wrapperEl,live);initSlides();let $nextEl;let $prevEl;if(swiper.navigation&&swiper.navigation.$nextEl){$nextEl=swiper.navigation.$nextEl}
1596if(swiper.navigation&&swiper.navigation.$prevEl){$prevEl=swiper.navigation.$prevEl}
1597if($nextEl&&$nextEl.length){initNavEl($nextEl,wrapperId,params.nextSlideMessage)}
1598if($prevEl&&$prevEl.length){initNavEl($prevEl,wrapperId,params.prevSlideMessage)}
1599if(hasClickablePagination()){swiper.pagination.$el.on('keydown',classesToSelector(swiper.params.pagination.bulletClass),onEnterOrSpaceKey)}
1600swiper.$el.on('focus',handleFocus,!0);swiper.$el.on('pointerdown',handlePointerDown,!0);swiper.$el.on('pointerup',handlePointerUp,!0)};function destroy(){if(liveRegion&&liveRegion.length>0)liveRegion.remove();let $nextEl;let $prevEl;
1600if(swiper.navigation&&swiper.navigation.$nextEl){$nextEl=swiper.navigation.$nextEl}
1601if(swiper.navigation&&swiper.navigation.$prevEl){$prevEl=swiper.navigation.$prevEl}
1602if($nextEl){$nextEl.off('keydown',onEnterOrSpaceKey)}
1603if($prevEl){$prevEl.off('keydown',onEnterOrSpaceKey)}
1604if(hasClickablePagination()){swiper.pagination.$el.off('keydown',classesToSelector(swiper.params.pagination.bulletClass),onEnterOrSpaceKey)}
1605swiper.$el.off('focus',handleFocus,!0);swiper.$el.off('pointerdown',handlePointerDown,!0);swiper.$el.off('pointerup',handlePointerUp,!0)}
1606on('beforeInit',()=>{liveRegion=$(`<span class="${swiper.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)});on('afterInit',()=>{if(!swiper.params.a11y.enabled)return;init()});on('slidesLengthChange snapGridLengthChange slidesGridLengthChange',()=>{if(!swiper.params.a11y.enabled)return;initSlides()});on('fromEdge toEdge afterInit lock unlock',()=>{if(!swiper.params.a11y.enabled)return;updateNavigation()});on('paginationUpdate',()=>{if(!swiper.params.a11y.enabled)return;updatePagination()});on('destroy',()=>{if(!swiper.params.a11y.enabled)return;destroy()})}
1607function History(_ref){let{swiper,extendParams,on}=_ref;extendParams({history:{enabled:!1,root:'',replaceState:!1,key:'slides',keepQuery:!1}});let initialized=!1;let paths={};const slugify=text=>{return text.toString().replace(/\s+/g,'-').replace(/[^\w-]+/g,'').replace(/--+/g,'-').replace(/^-+/,'').replace(/-+$/,'')};const getPathValues=urlOverride=>{const window=getWindow();let location;if(urlOverride){location=new URL(urlOverride)}else{location=window.location}
1608const pathArray=location.pathname.slice(1).split('/').filter(part=>part!=='');const total=pathArray.length;const key=pathArray[total-2];const value=pathArray[total-1];return{key,value}};const setHistory=(key,index)=>{const window=getWindow();if(!initialized||!swiper.params.history.enabled)return;let location;if(swiper.params.url){location=new URL(swiper.params.url)}else{location=window.location}
1609const slide=swiper.slides.eq(index);let value=slugify(slide.attr('data-history'));if(swiper.params.history.root.length>0){let root=swiper.params.history.root;if(root[root.length-1]==='/')root=root.slice(0,root.length-1);value=`${root}/${key}/${value}`}else if(!location.pathname.includes(key)){value=`${key}/${value}`}
1610if(swiper.params.history.keepQuery){value+=location.search}
1611const currentState=window.history.state;if(currentState&&currentState.value===value){return}
1612if(swiper.params.history.replaceState){window.history.replaceState({value},null,value)}else{window.history.pushState({value},null,value)}};const scrollToSlide=(speed,value,runCallbacks)=>{if(value){for(let i=0,length=swiper.slides.length;i<length;i+=1){const slide=swiper.slides.eq(i);const slideHistory=slugify(slide.attr('data-history'));if(slideHistory===value&&!slide.hasClass(swiper.params.slideDuplicateClass)){const index=slide.index();swiper.slideTo(index,speed,runCallbacks)}}}else{swiper.slideTo(0,speed,runCallbacks)}};const setHistoryPopState=()=>{paths=getPathValues(swiper.params.url);scrollToSlide(swiper.params.speed,paths.value,!1)};const init=()=>{const window=getWindow();if(!swiper.params.history)return;if(!window.history||!window.history.pushState){swiper.params.history.enabled=!1;swiper.params.hashNavigation.enabled=!0;return}
1613initialized=!0;paths=getPathValues(swiper.params.url);if(!paths.key&&!paths.value)return;scrollToSlide(0,paths.value,swiper.params.runCallbacksOnInit);if(!swiper.params.history.replaceState){window.addEventListener('popstate',setHistoryPopState)}};const destroy=()=>{const window=getWindow();if(!swiper.params.history.replaceState){window.removeEventListener('popstate',setHistoryPopState)}};on('init',()=>{if(swiper.params.history.enabled){init()}});on('destroy',()=>{if(swiper.params.history.enabled){destroy()}});on('transitionEnd _freeModeNoMomentumRelease',()=>{if(initialized){setHistory(swiper.params.history.key,swiper.activeIndex)}});on('slideChange',()=>{if(initialized&&swiper.params.cssMode){setHistory(swiper.params.history.key,swiper.activeIndex)}})}
1614function HashNavigation(_ref){let{swiper,extendParams,emit,on}=_ref;let initialized=!1;const document=getDocument();const window=getWindow();extendParams({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const onHashChange=()=>{emit('hashChange');const newHash=document.location.hash.replace('#','');const activeSlideHash=swiper.slides.eq(swiper.activeIndex).attr('data-hash');if(newHash!==activeSlideHash){const newIndex=swiper.$wrapperEl.children(`.${swiper.params.slideClass}[data-hash="${newHash}"]`).index();if(typeof newIndex==='undefined')return;swiper.slideTo(newIndex)}};const setHash=()=>
1614{if(!initialized||!swiper.params.hashNavigation.enabled)return;if(swiper.params.hashNavigation.replaceState&&window.history&&window.history.replaceState){window.history.replaceState(null,null,`#${swiper.slides.eq(swiper.activeIndex).attr('data-hash')}`||'');emit('hashSet')}else{const slide=swiper.slides.eq(swiper.activeIndex);const hash=slide.attr('data-hash')||slide.attr('data-history');document.location.hash=hash||'';emit('hashSet')}};const init=()=>{if(!swiper.params.hashNavigation.enabled||swiper.params.history&&swiper.params.history.enabled)return;initialized=!0;const hash=document.location.hash.replace('#','');if(hash){const speed=0;for(let i=0,length=swiper.slides.length;i<length;i+=1){const slide=swiper.slides.eq(i);const slideHash=slide.attr('data-hash')||slide.attr('data-history');if(slideHash===hash&&!slide.hasClass(swiper.params.slideDuplicateClass)){const index=slide.index();swiper.slideTo(index,speed,swiper.params.runCallbacksOnInit,!0)}}}
1615if(swiper.params.hashNavigation.watchState){$(window).on('hashchange',onHashChange)}};const destroy=()=>{if(swiper.params.hashNavigation.watchState){$(window).off('hashchange',onHashChange)}};on('init',()=>{if(swiper.params.hashNavigation.enabled){init()}});on('destroy',()=>{if(swiper.params.hashNavigation.enabled){destroy()}});on('transitionEnd _freeModeNoMomentumRelease',()=>{if(initialized){setHash()}});on('slideChange',()=>{if(initialized&&swiper.params.cssMode){setHash()}})}
1616function Autoplay(_ref){let{swiper,extendParams,on,emit}=_ref;let timeout;swiper.autoplay={running:!1,paused:!1};extendParams({autoplay:{enabled:!1,delay:3000,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function run(){if(!swiper.size){swiper.autoplay.running=!1;swiper.autoplay.paused=!1;return}
1617const $activeSlideEl=swiper.slides.eq(swiper.activeIndex);let delay=swiper.params.autoplay.delay;if($activeSlideEl.attr('data-swiper-autoplay')){delay=$activeSlideEl.attr('data-swiper-autoplay')||swiper.params.autoplay.delay}
1618clearTimeout(timeout);timeout=nextTick(()=>{let autoplayResult;if(swiper.params.autoplay.reverseDirection){if(swiper.params.loop){swiper.loopFix();autoplayResult=swiper.slidePrev(swiper.params.speed,!0,!0);emit('autoplay')}else if(!swiper.isBeginning){autoplayResult=swiper.slidePrev(swiper.params.speed,!0,!0);emit('autoplay')}else if(!swiper.params.autoplay.stopOnLastSlide){autoplayResult=swiper.slideTo(swiper.slides.length-1,swiper.params.speed,!0,!0);emit('autoplay')}else{stop()}}else if(swiper.params.loop){swiper.loopFix();autoplayResult=swiper.slideNext(swiper.params.speed,!0,!0);emit('autoplay')}else if(!swiper.isEnd){autoplayResult=swiper.slideNext(swiper.params.speed,!0,!0);emit('autoplay')}else if(!swiper.params.autoplay.stopOnLastSlide){autoplayResult=swiper.slideTo(0,swiper.params.speed,!0,!0);emit('autoplay')}else{stop()}
1619if(swiper.params.cssMode&&swiper.autoplay.running)run();else if(autoplayResult===!1){run()}},delay)}
1620function start(){if(typeof timeout!=='undefined')return!1;if(swiper.autoplay.running)return!1;swiper.autoplay.running=!0;emit('autoplayStart');run();return!0}
1621function stop(){if(!swiper.autoplay.running)return!1;if(typeof timeout==='undefined')return!1;if(timeout){clearTimeout(timeout);timeout=undefined}
1622swiper.autoplay.running=!1;emit('autoplayStop');return!0}
1623function pause(speed){if(!swiper.autoplay.running)return;if(swiper.autoplay.paused)return;if(timeout)clearTimeout(timeout);swiper.autoplay.paused=!0;if(speed===0||!swiper.params.autoplay.waitForTransition){swiper.autoplay.paused=!1;run()}else{['transitionend','webkitTransitionEnd'].forEach(event=>{swiper.$wrapperEl[0].addEventListener(event,onTransitionEnd)})}}
1624function onVisibilityChange(){const document=getDocument();if(document.visibilityState==='hidden'&&swiper.autoplay.running){pause()}
1625if(document.visibilityState==='visible'&&swiper.autoplay.paused){run();swiper.autoplay.paused=!1}}
1626function onTransitionEnd(e){if(!swiper||swiper.destroyed||!swiper.$wrapperEl)return;if(e.target!==swiper.$wrapperEl[0])return;['transitionend','webkitTransitionEnd'].forEach(event=>{swiper.$wrapperEl[0].removeEventListener(event,onTransitionEnd)});swiper.autoplay.paused=!1;if(!swiper.autoplay.running){stop()}else{run()}}
1627function onMouseEnter(){if(swiper.params.autoplay.disableOnInteraction){stop()}else{emit('autoplayPause');pause()}['transitionend','webkitTransitionEnd'].forEach(event=>{swiper.$wrapperEl[0].removeEventListener(event,onTransitionEnd)})}
1628function onMouseLeave(){if(swiper.params.autoplay.disableOnInteraction){return}
1629swiper.autoplay.paused=!1;emit('autoplayResume');run()}
1630function attachMouseEvents(){if(swiper.params.autoplay.pauseOnMouseEnter){swiper.$el.on('mouseenter',onMouseEnter);swiper.$el.on('mouseleave',onMouseLeave)}}
1631function detachMouseEvents(){swiper.$el.off('mouseenter',onMouseEnter);swiper.$el.off('mouseleave',onMouseLeave)}
1632on('init',()=>{if(swiper.params.autoplay.enabled){start();const document=getDocument();document.addEventListener('visibilitychange',onVisibilityChange);attachMouseEvents()}});on('beforeTransitionStart',(_s,speed,internal)=>{if(swiper.autoplay.running){if(internal||!swiper.params.autoplay.disableOnInteraction){swiper.autoplay.pause(speed)}else{stop()}}});on('sliderFirstMove',()=>{if(swiper.autoplay.running){if(swiper.params.autoplay.disableOnInteraction){stop()}else{pause()}}});on('touchEnd',()=>
1632{if(swiper.params.cssMode&&swiper.autoplay.paused&&!swiper.params.autoplay.disableOnInteraction){run()}});on('destroy',()=>{detachMouseEvents();if(swiper.autoplay.running){stop()}
1633const document=getDocument();document.removeEventListener('visibilitychange',onVisibilityChange)});Object.assign(swiper.autoplay,{pause,run,start,stop})}
1634function Thumb(_ref){let{swiper,extendParams,on}=_ref;extendParams({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:'swiper-slide-thumb-active',thumbsContainerClass:'swiper-thumbs'}});let initialized=!1;let swiperCreated=!1;swiper.thumbs={swiper:null};function onThumbClick(){const thumbsSwiper=swiper.thumbs.swiper;if(!thumbsSwiper||thumbsSwiper.destroyed)return;const clickedIndex=thumbsSwiper.clickedIndex;const clickedSlide=thumbsSwiper.clickedSlide;if(clickedSlide&&$(clickedSlide).hasClass(swiper.params.thumbs.slideThumbActiveClass))return;if(typeof clickedIndex==='undefined'||clickedIndex===null)return;let slideToIndex;if(thumbsSwiper.params.loop){slideToIndex=parseInt($(thumbsSwiper.clickedSlide).attr('data-swiper-slide-index'),10)}else{slideToIndex=clickedIndex}
1635if(swiper.params.loop){let currentIndex=swiper.activeIndex;if(swiper.slides.eq(currentIndex).hasClass(swiper.params.slideDuplicateClass)){swiper.loopFix();swiper._clientLeft=swiper.$wrapperEl[0].clientLeft;currentIndex=swiper.activeIndex}
1636const prevIndex=swiper.slides.eq(currentIndex).prevAll(`[data-swiper-slide-index="${slideToIndex}"]`).eq(0).index();const nextIndex=swiper.slides.eq(currentIndex).nextAll(`[data-swiper-slide-index="${slideToIndex}"]`).eq(0).index();if(typeof prevIndex==='undefined')slideToIndex=nextIndex;else if(typeof nextIndex==='undefined')slideToIndex=prevIndex;else if(nextIndex-currentIndex<currentIndex-prevIndex)slideToIndex=nextIndex;else slideToIndex=prevIndex}
1637swiper.slideTo(slideToIndex)}
1638function init(){const{thumbs:thumbsParams}=swiper.params;if(initialized)return!1;initialized=!0;const SwiperClass=swiper.constructor;if(thumbsParams.swiper instanceof SwiperClass){swiper.thumbs.swiper=thumbsParams.swiper;Object.assign(swiper.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1});Object.assign(swiper.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})}else if(isObject(thumbsParams.swiper)){const thumbsSwiperParams=Object.assign({},thumbsParams.swiper);Object.assign(thumbsSwiperParams,{watchSlidesProgress:!0,slideToClickedSlide:!1});swiper.thumbs.swiper=new SwiperClass(thumbsSwiperParams);swiperCreated=!0}
1639swiper.thumbs.swiper.$el.addClass(swiper.params.thumbs.thumbsContainerClass);swiper.thumbs.swiper.on('tap',onThumbClick);return!0}
1640function update(initial){const thumbsSwiper=swiper.thumbs.swiper;if(!thumbsSwiper||thumbsSwiper.destroyed)return;const slidesPerView=thumbsSwiper.params.slidesPerView==='auto'?thumbsSwiper.slidesPerViewDynamic():thumbsSwiper.params.slidesPerView;let thumbsToActivate=1;const thumbActiveClass=swiper.params.thumbs.slideThumbActiveClass;if(swiper.params.slidesPerView>1&&!swiper.params.centeredSlides){thumbsToActivate=swiper.params.slidesPerView}
1641if(!swiper.params.thumbs.multipleActiveThumbs){thumbsToActivate=1}
1642thumbsToActivate=Math.floor(thumbsToActivate);thumbsSwiper.slides.removeClass(thumbActiveClass);if(thumbsSwiper.params.loop||thumbsSwiper.params.virtual&&thumbsSwiper.params.virtual.enabled){for(let i=0;i<thumbsToActivate;i+=1){thumbsSwiper.$wrapperEl.children(`[data-swiper-slide-index="${swiper.realIndex + i}"]`).addClass(thumbActiveClass)}}else{for(let i=0;i<thumbsToActivate;i+=1){thumbsSwiper.slides.eq(swiper.realIndex+i).addClass(thumbActiveClass)}}
1643const autoScrollOffset=swiper.params.thumbs.autoScrollOffset;const useOffset=autoScrollOffset&&!thumbsSwiper.params.loop;if(swiper.realIndex!==thumbsSwiper.realIndex||useOffset){let currentThumbsIndex=thumbsSwiper.activeIndex;let newThumbsIndex;let direction;if(thumbsSwiper.params.loop){if(thumbsSwiper.slides.eq(currentThumbsIndex).hasClass(thumbsSwiper.params.slideDuplicateClass)){thumbsSwiper.loopFix();thumbsSwiper._clientLeft=thumbsSwiper.$wrapperEl[0].clientLeft;currentThumbsIndex=thumbsSwiper.activeIndex}
1644const prevThumbsIndex=thumbsSwiper.slides.eq(currentThumbsIndex).prevAll(`[data-swiper-slide-index="${swiper.realIndex}"]`).eq(0).index();const nextThumbsIndex=thumbsSwiper.slides.eq(currentThumbsIndex).nextAll(`[data-swiper-slide-index="${swiper.realIndex}"]`).eq(0).index();if(typeof prevThumbsIndex==='undefined'){newThumbsIndex=nextThumbsIndex}else if(typeof nextThumbsIndex==='undefined'){newThumbsIndex=prevThumbsIndex}else if(nextThumbsIndex-currentThumbsIndex===currentThumbsIndex-prevThumbsIndex){newThumbsIndex=thumbsSwiper.params.slidesPerGroup>1?nextThumbsIndex:currentThumbsIndex}else if(nextThumbsIndex-currentThumbsIndex<currentThumbsIndex-prevThumbsIndex){newThumbsIndex=nextThumbsIndex}else{newThumbsIndex=prevThumbsIndex}
1645direction=swiper.activeIndex>swiper.previousIndex?'next':'prev'}else{newThumbsIndex=swiper.realIndex;direction=newThumbsIndex>swiper.previousIndex?'next':'prev'}
1646if(useOffset){newThumbsIndex+=direction==='next'?autoScrollOffset:-1*autoScrollOffset}
1647if(thumbsSwiper.visibleSlidesIndexes&&thumbsSwiper.visibleSlidesIndexes.indexOf(newThumbsIndex)<0){if(thumbsSwiper.params.centeredSlides){if(newThumbsIndex>currentThumbsIndex){newThumbsIndex=newThumbsIndex-Math.floor(slidesPerView/2)+1}else{newThumbsIndex=newThumbsIndex+Math.floor(slidesPerView/2)-1}}else if(newThumbsIndex>currentThumbsIndex&&thumbsSwiper.params.slidesPerGroup===1);thumbsSwiper.slideTo(newThumbsIndex,initial?0:undefined)}}}
1648on('beforeInit',()=>{const{thumbs}=swiper.params;if(!thumbs||!thumbs.swiper)return;init();update(!0)});on('slideChange update resize observerUpdate',()=>
1648{update()});on('setTransition',(_s,duration)=>{const thumbsSwiper=swiper.thumbs.swiper;if(!thumbsSwiper||thumbsSwiper.destroyed)return;thumbsSwiper.setTransition(duration)});on('beforeDestroy',()=>{const thumbsSwiper=swiper.thumbs.swiper;if(!thumbsSwiper||thumbsSwiper.destroyed)return;if(swiperCreated){thumbsSwiper.destroy()}});Object.assign(swiper.thumbs,{init,update})}
1649function freeMode(_ref){let{swiper,extendParams,emit,once}=_ref;extendParams({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:0.02}});function onTouchStart(){const translate=swiper.getTranslate();swiper.setTranslate(translate);swiper.setTransition(0);swiper.touchEventsData.velocities.length=0;swiper.freeMode.onTouchEnd({currentPos:swiper.rtl?swiper.translate:-swiper.translate})}
1650function onTouchMove(){const{touchEventsData:data,touches}=swiper;if(data.velocities.length===0){data.velocities.push({position:touches[swiper.isHorizontal()?'startX':'startY'],time:data.touchStartTime})}
1651data.velocities.push({position:touches[swiper.isHorizontal()?'currentX':'currentY'],time:now()})}
1652function onTouchEnd(_ref2){let{currentPos}=_ref2;const{params,$wrapperEl,rtlTranslate:rtl,snapGrid,touchEventsData:data}=swiper;const touchEndTime=now();const timeDiff=touchEndTime-data.touchStartTime;if(currentPos<-swiper.minTranslate()){swiper.slideTo(swiper.activeIndex);return}
1653if(currentPos>-swiper.maxTranslate()){if(swiper.slides.length<snapGrid.length){swiper.slideTo(snapGrid.length-1)}else{swiper.slideTo(swiper.slides.length-1)}
1654return}
1655if(params.freeMode.momentum){if(data.velocities.length>1){const lastMoveEvent=data.velocities.pop();const velocityEvent=data.velocities.pop();const distance=lastMoveEvent.position-velocityEvent.position;const time=lastMoveEvent.time-velocityEvent.time;swiper.velocity=distance/time;swiper.velocity/=2;if(Math.abs(swiper.velocity)<params.freeMode.minimumVelocity){swiper.velocity=0}
1656if(time>150||now()-lastMoveEvent.time>300){swiper.velocity=0}}else{swiper.velocity=0}
1657swiper.velocity*=params.freeMode.momentumVelocityRatio;data.velocities.length=0;let momentumDuration=1000*params.freeMode.momentumRatio;const momentumDistance=swiper.velocity*momentumDuration;let newPosition=swiper.translate+momentumDistance;if(rtl)newPosition=-newPosition;let doBounce=!1;let afterBouncePosition;const bounceAmount=Math.abs(swiper.velocity)*20*params.freeMode.momentumBounceRatio;let needsLoopFix;if(newPosition<swiper.maxTranslate()){if(params.freeMode.momentumBounce){if(newPosition+swiper.maxTranslate()<-bounceAmount){newPosition=swiper.maxTranslate()-bounceAmount}
1658afterBouncePosition=swiper.maxTranslate();doBounce=!0;data.allowMomentumBounce=!0}else{newPosition=swiper.maxTranslate()}
1659if(params.loop&&params.centeredSlides)needsLoopFix=!0}else if(newPosition>swiper.minTranslate()){if(params.freeMode.momentumBounce){if(newPosition-swiper.minTranslate()>bounceAmount){newPosition=swiper.minTranslate()+bounceAmount}
1660afterBouncePosition=swiper.minTranslate();doBounce=!0;data.allowMomentumBounce=!0}else{newPosition=swiper.minTranslate()}
1661if(params.loop&&params.centeredSlides)needsLoopFix=!0}else if(params.freeMode.sticky){let nextSlide;for(let j=0;j<snapGrid.length;j+=1){if(snapGrid[j]>-newPosition){nextSlide=j;break}}
1662if(Math.abs(snapGrid[nextSlide]-newPosition)<Math.abs(snapGrid[nextSlide-1]-newPosition)||swiper.swipeDirection==='next'){newPosition=snapGrid[nextSlide]}else{newPosition=snapGrid[nextSlide-1]}
1663newPosition=-newPosition}
1664if(needsLoopFix){once('transitionEnd',()=>{swiper.loopFix()})}
1665if(swiper.velocity!==0){if(rtl){momentumDuration=Math.abs((-newPosition-swiper.translate)/swiper.velocity)}else{momentumDuration=Math.abs((newPosition-swiper.translate)/swiper.velocity)}
1666if(params.freeMode.sticky){const moveDistance=Math.abs((rtl?-newPosition:newPosition)-swiper.translate);const currentSlideSize=swiper.slidesSizesGrid[swiper.activeIndex];if(moveDistance<currentSlideSize){momentumDuration=params.speed}else if(moveDistance<2*currentSlideSize){momentumDuration=params.speed*1.5}else{momentumDuration=params.speed*2.5}}}else if(params.freeMode.sticky){swiper.slideToClosest();return}
1667if(params.freeMode.momentumBounce&&doBounce){swiper.updateProgress(afterBouncePosition);swiper.setTransition(momentumDuration);swiper.setTranslate(newPosition);swiper.transitionStart(!0,swiper.swipeDirection);swiper.animating=!0;$wrapperEl.transitionEnd(()=>
1667{if(!swiper||swiper.destroyed||!data.allowMomentumBounce)return;emit('momentumBounce');swiper.setTransition(params.speed);setTimeout(()=>{swiper.setTranslate(afterBouncePosition);$wrapperEl.transitionEnd(()=>{if(!swiper||swiper.destroyed)return;swiper.transitionEnd()})},0)})}else if(swiper.velocity){emit('_freeModeNoMomentumRelease');swiper.updateProgress(newPosition);swiper.setTransition(momentumDuration);swiper.setTranslate(newPosition);swiper.transitionStart(!0,swiper.swipeDirection);if(!swiper.animating){swiper.animating=!0;$wrapperEl.transitionEnd(()=>{if(!swiper||swiper.destroyed)return;swiper.transitionEnd()})}}else{swiper.updateProgress(newPosition)}
1668swiper.updateActiveIndex();swiper.updateSlidesClasses()}else if(params.freeMode.sticky){swiper.slideToClosest();return}else if(params.freeMode){emit('_freeModeNoMomentumRelease')}
1669if(!params.freeMode.momentum||timeDiff>=params.longSwipesMs){swiper.updateProgress();swiper.updateActiveIndex();swiper.updateSlidesClasses()}}
1670Object.assign(swiper,{freeMode:{onTouchStart,onTouchMove,onTouchEnd}})}
1671function Grid(_ref){let{swiper,extendParams}=_ref;extendParams({grid:{rows:1,fill:'column'}});let slidesNumberEvenToRows;let slidesPerRow;let numFullColumns;const initSlides=slidesLength=>{const{slidesPerView}=swiper.params;const{rows,fill}=swiper.params.grid;slidesPerRow=slidesNumberEvenToRows/rows;numFullColumns=Math.floor(slidesLength/rows);if(Math.floor(slidesLength/rows)===slidesLength/rows){slidesNumberEvenToRows=slidesLength}else{slidesNumberEvenToRows=Math.ceil(slidesLength/rows)*rows}
1672if(slidesPerView!=='auto'&&fill==='row'){slidesNumberEvenToRows=Math.max(slidesNumberEvenToRows,slidesPerView*rows)}};const updateSlide=(i,slide,slidesLength,getDirectionLabel)=>{const{slidesPerGroup,spaceBetween}=swiper.params;const{rows,fill}=swiper.params.grid;let newSlideOrderIndex;let column;let row;if(fill==='row'&&slidesPerGroup>1){const groupIndex=Math.floor(i/(slidesPerGroup*rows));const slideIndexInGroup=i-rows*slidesPerGroup*groupIndex;const columnsInGroup=groupIndex===0?slidesPerGroup:Math.min(Math.ceil((slidesLength-groupIndex*rows*slidesPerGroup)/rows),slidesPerGroup);row=Math.floor(slideIndexInGroup/columnsInGroup);column=slideIndexInGroup-row*columnsInGroup+groupIndex*slidesPerGroup;newSlideOrderIndex=column+row*slidesNumberEvenToRows/rows;slide.css({'-webkit-order':newSlideOrderIndex,order:newSlideOrderIndex})}else if(fill==='column'){column=Math.floor(i/rows);row=i-column*rows;if(column>numFullColumns||column===numFullColumns&&row===rows-1){row+=1;if(row>=rows){row=0;column+=1}}}else{row=Math.floor(i/slidesPerRow);column=i-row*slidesPerRow}
1673slide.css(getDirectionLabel('margin-top'),row!==0?spaceBetween&&`${spaceBetween}px`:'')};const updateWrapperSize=(slideSize,snapGrid,getDirectionLabel)=>{const{spaceBetween,centeredSlides,roundLengths}=swiper.params;const{rows}=swiper.params.grid;swiper.virtualSize=(slideSize+spaceBetween)*slidesNumberEvenToRows;swiper.virtualSize=Math.ceil(swiper.virtualSize/rows)-spaceBetween;swiper.$wrapperEl.css({[getDirectionLabel('width')]:`${swiper.virtualSize + spaceBetween}px`});if(centeredSlides){snapGrid.splice(0,snapGrid.length);const newSlidesGrid=[];for(let i=0;i<snapGrid.length;i+=1){let slidesGridItem=snapGrid[i];if(roundLengths)slidesGridItem=Math.floor(slidesGridItem);if(snapGrid[i]<swiper.virtualSize+snapGrid[0])newSlidesGrid.push(slidesGridItem);}
1674snapGrid.push(...newSlidesGrid)}};swiper.grid={initSlides,updateSlide,updateWrapperSize}}
1675function appendSlide(slides){const swiper=this;const{$wrapperEl,params}=swiper;if(params.loop){swiper.loopDestroy()}
1676if(typeof slides==='object'&&'length' in slides){for(let i=0;i<slides.length;i+=1){if(slides[i])$wrapperEl.append(slides[i]);}}else{$wrapperEl.append(slides)}
1677if(params.loop){swiper.loopCreate()}
1678if(!params.observer){swiper.update()}}
1679function prependSlide(slides){const swiper=this;const{params,$wrapperEl,activeIndex}=swiper;if(params.loop){swiper.loopDestroy()}
1680let newActiveIndex=activeIndex+1;if(typeof slides==='object'&&'length' in slides){for(let i=0;i<slides.length;
1680i+=1){if(slides[i])$wrapperEl.prepend(slides[i]);}
1681newActiveIndex=activeIndex+slides.length}else{$wrapperEl.prepend(slides)}
1682if(params.loop){swiper.loopCreate()}
1683if(!params.observer){swiper.update()}
1684swiper.slideTo(newActiveIndex,0,!1)}
1685function addSlide(index,slides){const swiper=this;const{$wrapperEl,params,activeIndex}=swiper;let activeIndexBuffer=activeIndex;if(params.loop){activeIndexBuffer-=swiper.loopedSlides;swiper.loopDestroy();swiper.slides=$wrapperEl.children(`.${params.slideClass}`)}
1686const baseLength=swiper.slides.length;if(index<=0){swiper.prependSlide(slides);return}
1687if(index>=baseLength){swiper.appendSlide(slides);return}
1688let newActiveIndex=activeIndexBuffer>index?activeIndexBuffer+1:activeIndexBuffer;const slidesBuffer=[];for(let i=baseLength-1;i>=index;i-=1){const currentSlide=swiper.slides.eq(i);currentSlide.remove();slidesBuffer.unshift(currentSlide)}
1689if(typeof slides==='object'&&'length' in slides){for(let i=0;i<slides.length;i+=1){if(slides[i])$wrapperEl.append(slides[i]);}
1690newActiveIndex=activeIndexBuffer>index?activeIndexBuffer+slides.length:activeIndexBuffer}else{$wrapperEl.append(slides)}
1691for(let i=0;i<slidesBuffer.length;i+=1){$wrapperEl.append(slidesBuffer[i])}
1692if(params.loop){swiper.loopCreate()}
1693if(!params.observer){swiper.update()}
1694if(params.loop){swiper.slideTo(newActiveIndex+swiper.loopedSlides,0,!1)}else{swiper.slideTo(newActiveIndex,0,!1)}}
1695function removeSlide(slidesIndexes){const swiper=this;const{params,$wrapperEl,activeIndex}=swiper;let activeIndexBuffer=activeIndex;if(params.loop){activeIndexBuffer-=swiper.loopedSlides;swiper.loopDestroy();swiper.slides=$wrapperEl.children(`.${params.slideClass}`)}
1696let newActiveIndex=activeIndexBuffer;let indexToRemove;if(typeof slidesIndexes==='object'&&'length' in slidesIndexes){for(let i=0;i<slidesIndexes.length;i+=1){indexToRemove=slidesIndexes[i];if(swiper.slides[indexToRemove])swiper.slides.eq(indexToRemove).remove();if(indexToRemove<newActiveIndex)newActiveIndex-=1}
1697newActiveIndex=Math.max(newActiveIndex,0)}else{indexToRemove=slidesIndexes;if(swiper.slides[indexToRemove])swiper.slides.eq(indexToRemove).remove();if(indexToRemove<newActiveIndex)newActiveIndex-=1;newActiveIndex=Math.max(newActiveIndex,0)}
1698if(params.loop){swiper.loopCreate()}
1699if(!params.observer){swiper.update()}
1700if(params.loop){swiper.slideTo(newActiveIndex+swiper.loopedSlides,0,!1)}else{swiper.slideTo(newActiveIndex,0,!1)}}
1701function removeAllSlides(){const swiper=this;const slidesIndexes=[];for(let i=0;i<swiper.slides.length;i+=1){slidesIndexes.push(i)}
1702swiper.removeSlide(slidesIndexes)}
1703function Manipulation(_ref){let{swiper}=_ref;Object.assign(swiper,{appendSlide:appendSlide.bind(swiper),prependSlide:prependSlide.bind(swiper),addSlide:addSlide.bind(swiper),removeSlide:removeSlide.bind(swiper),removeAllSlides:removeAllSlides.bind(swiper)})}
1704function effectInit(params){const{effect,swiper,on,setTranslate,setTransition,overwriteParams,perspective,recreateShadows,getEffectParams}=params;on('beforeInit',()=>{if(swiper.params.effect!==effect)return;swiper.classNames.push(`${swiper.params.containerModifierClass}${effect}`);if(perspective&&perspective()){swiper.classNames.push(`${swiper.params.containerModifierClass}3d`)}
1705const overwriteParamsResult=overwriteParams?overwriteParams():{};Object.assign(swiper.params,overwriteParamsResult);Object.assign(swiper.originalParams,overwriteParamsResult)});on('setTranslate',()=>{if(swiper.params.effect!==effect)return;setTranslate()});on('setTransition',(_s,duration)=>{if(swiper.params.effect!==effect)return;setTransition(duration)});on('transitionEnd',()=>{if(swiper.params.effect!==effect)return;if(recreateShadows){if(!getEffectParams||!getEffectParams().slideShadows)return;swiper.slides.each(slideEl=>{const $slideEl=swiper.$(slideEl);$slideEl.find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').remove()});recreateShadows()}});let requireUpdateOnVirtual;on('virtualUpdate',()=>{if(swiper.params.effect!==effect)return;if(!swiper.slides.length){requireUpdateOnVirtual=!0}
1706requestAnimationFrame(()=>{if(requireUpdateOnVirtual&&swiper.slides&&swiper.slides.length){setTranslate();requireUpdateOnVirtual=!1}})})}
1707function effectTarget(effectParams,$slideEl){if(effectParams.transformEl){return $slideEl.find(effectParams.transformEl).css({'backface-visibility':'hidden','-webkit-backface-visibility':'hidden'})}
1708return $slideEl}
1709function effectVirtualTransitionEnd(_ref){let{swiper,duration,transformEl,allSlides}=_ref;const{slides,activeIndex,$wrapperEl}=swiper;
1709if(swiper.params.virtualTranslate&&duration!==0){let eventTriggered=!1;let $transitionEndTarget;if(allSlides){$transitionEndTarget=transformEl?slides.find(transformEl):slides}else{$transitionEndTarget=transformEl?slides.eq(activeIndex).find(transformEl):slides.eq(activeIndex)}
1710$transitionEndTarget.transitionEnd(()=>{if(eventTriggered)return;if(!swiper||swiper.destroyed)return;eventTriggered=!0;swiper.animating=!1;const triggerEvents=['webkitTransitionEnd','transitionend'];for(let i=0;i<triggerEvents.length;i+=1){$wrapperEl.trigger(triggerEvents[i])}})}}
1711function EffectFade(_ref){let{swiper,extendParams,on}=_ref;extendParams({fadeEffect:{crossFade:!1,transformEl:null}});const setTranslate=()=>{const{slides}=swiper;const params=swiper.params.fadeEffect;for(let i=0;i<slides.length;i+=1){const $slideEl=swiper.slides.eq(i);const offset=$slideEl[0].swiperSlideOffset;let tx=-offset;if(!swiper.params.virtualTranslate)tx-=swiper.translate;let ty=0;if(!swiper.isHorizontal()){ty=tx;tx=0}
1712const slideOpacity=swiper.params.fadeEffect.crossFade?Math.max(1-Math.abs($slideEl[0].progress),0):1+Math.min(Math.max($slideEl[0].progress,-1),0);const $targetEl=effectTarget(params,$slideEl);$targetEl.css({opacity:slideOpacity}).transform(`translate3d(${tx}px, ${ty}px, 0px)`)}};const setTransition=duration=>{const{transformEl}=swiper.params.fadeEffect;const $transitionElements=transformEl?swiper.slides.find(transformEl):swiper.slides;$transitionElements.transition(duration);effectVirtualTransitionEnd({swiper,duration,transformEl,allSlides:!0})};effectInit({effect:'fade',swiper,on,setTranslate,setTransition,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!swiper.params.cssMode})})}
1713function EffectCube(_ref){let{swiper,extendParams,on}=_ref;extendParams({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:0.94}});const createSlideShadows=($slideEl,progress,isHorizontal)=>{let shadowBefore=isHorizontal?$slideEl.find('.swiper-slide-shadow-left'):$slideEl.find('.swiper-slide-shadow-top');let shadowAfter=isHorizontal?$slideEl.find('.swiper-slide-shadow-right'):$slideEl.find('.swiper-slide-shadow-bottom');if(shadowBefore.length===0){shadowBefore=$(`<div class="swiper-slide-shadow-${isHorizontal ? 'left' : 'top'}"></div>`);$slideEl.append(shadowBefore)}
1714if(shadowAfter.length===0){shadowAfter=$(`<div class="swiper-slide-shadow-${isHorizontal ? 'right' : 'bottom'}"></div>`);$slideEl.append(shadowAfter)}
1715if(shadowBefore.length)shadowBefore[0].style.opacity=Math.max(-progress,0);if(shadowAfter.length)shadowAfter[0].style.opacity=Math.max(progress,0);};const recreateShadows=()=>{const isHorizontal=swiper.isHorizontal();swiper.slides.each(slideEl=>
1715{const progress=Math.max(Math.min(slideEl.progress,1),-1);createSlideShadows($(slideEl),progress,isHorizontal)})};const setTranslate=()=>{const{$el,$wrapperEl,slides,width:swiperWidth,height:swiperHeight,rtlTranslate:rtl,size:swiperSize,browser}=swiper;const params=swiper.params.cubeEffect;const isHorizontal=swiper.isHorizontal();const isVirtual=swiper.virtual&&swiper.params.virtual.enabled;let wrapperRotate=0;let $cubeShadowEl;if(params.shadow){if(isHorizontal){$cubeShadowEl=$wrapperEl.find('.swiper-cube-shadow');if($cubeShadowEl.length===0){$cubeShadowEl=$('<div class="swiper-cube-shadow"></div>');$wrapperEl.append($cubeShadowEl)}
1716$cubeShadowEl.css({height:`${swiperWidth}px`})}else{$cubeShadowEl=$el.find('.swiper-cube-shadow');if($cubeShadowEl.length===0){$cubeShadowEl=$('<div class="swiper-cube-shadow"></div>');$el.append($cubeShadowEl)}}}
1717for(let i=0;i<slides.length;i+=1){const $slideEl=slides.eq(i);let slideIndex=i;if(isVirtual){slideIndex=parseInt($slideEl.attr('data-swiper-slide-index'),10)}
1718let slideAngle=slideIndex*90;let round=Math.floor(slideAngle/360);if(rtl){slideAngle=-slideAngle;round=Math.floor(-slideAngle/360)}
1719const progress=Math.max(Math.min($slideEl[0].progress,1),-1);let tx=0;let ty=0;let tz=0;if(slideIndex%4===0){tx=-round*4*swiperSize;tz=0}else if((slideIndex-1)%4===0){tx=0;tz=-round*4*swiperSize}else if((slideIndex-2)%4===0){tx=swiperSize+round*4*swiperSize;
1719tz=swiperSize}else if((slideIndex-3)%4===0){tx=-swiperSize;tz=3*swiperSize+swiperSize*4*round}
1720if(rtl){tx=-tx}
1721if(!isHorizontal){ty=tx;tx=0}
1722const transform=`rotateX(${isHorizontal ? 0 : -slideAngle}deg) rotateY(${isHorizontal ? slideAngle : 0}deg) translate3d(${tx}px, ${ty}px, ${tz}px)`;if(progress<=1&&progress>-1){wrapperRotate=slideIndex*90+progress*90;if(rtl)wrapperRotate=-slideIndex*90-progress*90}
1723$slideEl.transform(transform);if(params.slideShadows){createSlideShadows($slideEl,progress,isHorizontal)}}
1724$wrapperEl.css({'-webkit-transform-origin':`50% 50% -${swiperSize / 2}px`,'transform-origin':`50% 50% -${swiperSize / 2}px`});if(params.shadow){if(isHorizontal){$cubeShadowEl.transform(`translate3d(0px, ${swiperWidth / 2 + params.shadowOffset}px, ${-swiperWidth / 2}px) rotateX(90deg) rotateZ(0deg) scale(${params.shadowScale})`)}else{const shadowAngle=Math.abs(wrapperRotate)-Math.floor(Math.abs(wrapperRotate)/90)*90;const multiplier=1.5-(Math.sin(shadowAngle*2*Math.PI/360)/2+Math.cos(shadowAngle*2*Math.PI/360)/2);const scale1=params.shadowScale;const scale2=params.shadowScale/multiplier;const offset=params.shadowOffset;$cubeShadowEl.transform(`scale3d(${scale1}, 1, ${scale2}) translate3d(0px, ${swiperHeight / 2 + offset}px, ${-swiperHeight / 2 / scale2}px) rotateX(-90deg)`)}}
1725const zFactor=browser.isSafari||browser.isWebView?-swiperSize/2:0;$wrapperEl.transform(`translate3d(0px,0,${zFactor}px) rotateX(${swiper.isHorizontal() ? 0 : wrapperRotate}deg) rotateY(${swiper.isHorizontal() ? -wrapperRotate : 0}deg)`);$wrapperEl[0].style.setProperty('--swiper-cube-translate-z',`${zFactor}px`)};const setTransition=duration=>{const{$el,slides}=swiper;slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);if(swiper.params.cubeEffect.shadow&&!swiper.isHorizontal()){$el.find('.swiper-cube-shadow').transition(duration)}};effectInit({effect:'cube',swiper,on,setTranslate,setTransition,recreateShadows,getEffectParams:()=>swiper.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}
1726function createShadow(params,$slideEl,side){const shadowClass=`swiper-slide-shadow${side ? `-${side}` : ''}`;const $shadowContainer=params.transformEl?$slideEl.find(params.transformEl):$slideEl;let $shadowEl=$shadowContainer.children(`.${shadowClass}`);if(!$shadowEl.length){$shadowEl=$(`<div class="swiper-slide-shadow${side ? `-${side}` : ''}"></div>`);$shadowContainer.append($shadowEl)}
1727return $shadowEl}
1728function EffectFlip(_ref){let{swiper,extendParams,on}=_ref;extendParams({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const createSlideShadows=($slideEl,progress,params)=>{let shadowBefore=swiper.isHorizontal()?$slideEl.find('.swiper-slide-shadow-left'):$slideEl.find('.swiper-slide-shadow-top');let shadowAfter=swiper.isHorizontal()?$slideEl.find('.swiper-slide-shadow-right'):$slideEl.find('.swiper-slide-shadow-bottom');if(shadowBefore.length===0){shadowBefore=createShadow(params,$slideEl,swiper.isHorizontal()?'left':'top')}
1729if(shadowAfter.length===0){shadowAfter=createShadow(params,$slideEl,swiper.isHorizontal()?'right':'bottom')}
1730if(shadowBefore.length)shadowBefore[0].style.opacity=Math.max(-progress,0);if(shadowAfter.length)shadowAfter[0].style.opacity=Math.max(progress,0);};const recreateShadows=()=>{const params=swiper.params.flipEffect;swiper.slides.each(slideEl=>{const $slideEl=$(slideEl);let progress=$slideEl[0].progress;if(swiper.params.flipEffect.limitRotation){progress=Math.max(Math.min(slideEl.progress,
17301),-1)}
1731createSlideShadows($slideEl,progress,params)})};const setTranslate=()=>{const{slides,rtlTranslate:rtl}=swiper;const params=swiper.params.flipEffect;for(let i=0;i<slides.length;i+=1){const $slideEl=slides.eq(i);let progress=$slideEl[0].progress;if(swiper.params.flipEffect.limitRotation){progress=Math.max(Math.min($slideEl[0].progress,1),-1)}
1732const offset=$slideEl[0].swiperSlideOffset;const rotate=-180*progress;let rotateY=rotate;let rotateX=0;let tx=swiper.params.cssMode?-offset-swiper.translate:-offset;let ty=0;if(!swiper.isHorizontal()){ty=tx;tx=0;rotateX=-rotateY;rotateY=0}else if(rtl){rotateY=-rotateY}
1733$slideEl[0].style.zIndex=-Math.abs(Math.round(progress))+slides.length;if(params.slideShadows){createSlideShadows($slideEl,progress,params)}
1734const transform=`translate3d(${tx}px, ${ty}px, 0px) rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;const $targetEl=effectTarget(params,$slideEl);$targetEl.transform(transform)}};const setTransition=duration=>{const{transformEl}=swiper.params.flipEffect;const $transitionElements=transformEl?swiper.slides.find(transformEl):swiper.slides;$transitionElements.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);effectVirtualTransitionEnd({swiper,duration,transformEl})};effectInit({effect:'flip',swiper,on,setTranslate,setTransition,recreateShadows,getEffectParams:()=>swiper.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!swiper.params.cssMode})})}
1735function EffectCoverflow(_ref){let{swiper,extendParams,on}=_ref;extendParams({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}});const setTranslate=()=>{const{width:swiperWidth,height:swiperHeight,slides,slidesSizesGrid}=swiper;const params=swiper.params.coverflowEffect;const isHorizontal=swiper.isHorizontal();const transform=swiper.translate;const center=isHorizontal?-transform+swiperWidth/2:-transform+swiperHeight/2;const rotate=isHorizontal?params.rotate:-params.rotate;const translate=params.depth;for(let i=0,length=slides.length;i<length;i+=1){const $slideEl=slides.eq(i);const slideSize=slidesSizesGrid[i];const slideOffset=$slideEl[0].swiperSlideOffset;const centerOffset=(center-slideOffset-slideSize/2)/slideSize;const offsetMultiplier=typeof params.modifier==='function'?params.modifier(centerOffset):centerOffset*params.modifier;let rotateY=isHorizontal?rotate*offsetMultiplier:0;let rotateX=isHorizontal?0:rotate*offsetMultiplier;let translateZ=-translate*Math.abs(offsetMultiplier);let stretch=params.stretch;if(typeof stretch==='string'&&stretch.indexOf('%')!==-1){stretch=parseFloat(params.stretch)/100*slideSize}
1736let translateY=isHorizontal?0:stretch*offsetMultiplier;let translateX=isHorizontal?stretch*offsetMultiplier:0;let scale=1-(1-params.scale)*Math.abs(offsetMultiplier);if(Math.abs(translateX)<0.001)translateX=0;if(Math.abs(translateY)<0.001)translateY=0;if(Math.abs(translateZ)<0.001)translateZ=0;if(Math.abs(rotateY)<0.001)rotateY=0;if(Math.abs(rotateX)<0.001)rotateX=0;if(Math.abs(scale)<0.001)scale=0;const slideTransform=`translate3d(${translateX}px,${translateY}px,${translateZ}px)  rotateX(${rotateX}deg) rotateY(${rotateY}deg) scale(${scale})`;const $targetEl=effectTarget(params,$slideEl);$targetEl.transform(slideTransform);$slideEl[0].style.zIndex=-Math.abs(Math.round(offsetMultiplier))+1;if(params.slideShadows){let $shadowBeforeEl=isHorizontal?$slideEl.find('.swiper-slide-shadow-left'):$slideEl.find('.swiper-slide-shadow-top');let $shadowAfterEl=isHorizontal?$slideEl.find('.swiper-slide-shadow-right'):$slideEl.find('.swiper-slide-shadow-bottom');if($shadowBeforeEl.length===0){$shadowBeforeEl=createShadow(params,$slideEl,isHorizontal?'left':'top')}
1737if($shadowAfterEl.length===0){$shadowAfterEl=createShadow(params,$slideEl,isHorizontal?'right':'bottom')}
1738if($shadowBeforeEl.length)$shadowBeforeEl[0].style.opacity=offsetMultiplier>0?offsetMultiplier:0;if($shadowAfterEl.length)$shadowAfterEl[0].style.opacity=-offsetMultiplier>0?-offsetMultiplier:0}}};const setTransition=duration=>{const{transformEl}=swiper.params.coverflowEffect;const $transitionElements=transformEl?swiper.slides.find(transformEl):swiper.slides;$transitionElements.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration)};
1738effectInit({effect:'coverflow',swiper,on,setTranslate,setTransition,perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}
1739function EffectCreative(_ref){let{swiper,extendParams,on}=_ref;extendParams({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const getTranslateValue=value=>{if(typeof value==='string')return value;return `${value}px`};const setTranslate=()=>{const{slides,$wrapperEl,slidesSizesGrid}=swiper;const params=swiper.params.creativeEffect;const{progressMultiplier:multiplier}=params;const isCenteredSlides=swiper.params.centeredSlides;if(isCenteredSlides){const margin=slidesSizesGrid[0]/2-swiper.params.slidesOffsetBefore||0;$wrapperEl.transform(`translateX(calc(50% - ${margin}px))`)}
1740for(let i=0;i<slides.length;i+=1){const $slideEl=slides.eq(i);const slideProgress=$slideEl[0].progress;const progress=Math.min(Math.max($slideEl[0].progress,-params.limitProgress),params.limitProgress);let originalProgress=progress;if(!isCenteredSlides){originalProgress=Math.min(Math.max($slideEl[0].originalProgress,-params.limitProgress),params.limitProgress)}
1741const offset=$slideEl[0].swiperSlideOffset;const t=[swiper.params.cssMode?-offset-swiper.translate:-offset,0,0];const r=[0,0,0];let custom=!1;if(!swiper.isHorizontal()){t[1]=t[0];t[0]=0}
1742let data={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};if(progress<0){data=params.next;custom=!0}else if(progress>0){data=params.prev;custom=!0}
1743t.forEach((value,index)=>{t[index]=`calc(${value}px + (${getTranslateValue(data.translate[index])} * ${Math.abs(progress * multiplier)}))`});r.forEach((value,index)=>{r[index]=data.rotate[index]*Math.abs(progress*multiplier)});$slideEl[0].style.zIndex=-Math.abs(Math.round(slideProgress))+slides.length;const translateString=t.join(', ');const rotateString=`rotateX(${r[0]}deg) rotateY(${r[1]}deg) rotateZ(${r[2]}deg)`;const scaleString=originalProgress<0?`scale(${1 + (1 - data.scale) * originalProgress * multiplier})`:`scale(${1 - (1 - data.scale) * originalProgress * multiplier})`;const opacityString=originalProgress<0?1+(1-data.opacity)*originalProgress*multiplier:1-(1-data.opacity)*originalProgress*multiplier;const transform=`translate3d(${translateString}) ${rotateString} ${scaleString}`;if(custom&&data.shadow||!custom){let $shadowEl=$slideEl.children('.swiper-slide-shadow');if($shadowEl.length===0&&data.shadow){$shadowEl=createShadow(params,$slideEl)}
1744if($shadowEl.length){const shadowOpacity=params.shadowPerProgress?progress*(1/params.limitProgress):progress;$shadowEl[0].style.opacity=Math.min(Math.max(Math.abs(shadowOpacity),0),1)}}
1745const $targetEl=effectTarget(params,$slideEl);$targetEl.transform(transform).css({opacity:opacityString});if(data.origin){$targetEl.css('transform-origin',data.origin)}}};const setTransition=duration=>{const{transformEl}=swiper.params.creativeEffect;const $transitionElements=transformEl?swiper.slides.find(transformEl):swiper.slides;$transitionElements.transition(duration).find('.swiper-slide-shadow').transition(duration);effectVirtualTransitionEnd({swiper,duration,transformEl,allSlides:!0})};effectInit({effect:'creative',swiper,on,setTranslate,setTransition,perspective:()=>swiper.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!swiper.params.cssMode})})}
1746function EffectCards(_ref){let{swiper,extendParams,on}=_ref;extendParams({cardsEffect:{slideShadows:!0,transformEl:null,rotate:!0,perSlideRotate:2,perSlideOffset:8}});const setTranslate=()=>{const{slides,activeIndex}=swiper;const params=swiper.params.cardsEffect;const{startTranslate,isTouched}=swiper.touchEventsData;const currentTranslate=swiper.translate;for(let i=0;i<slides.length;i+=1){const $slideEl=slides.eq(i);const slideProgress=$slideEl[0].progress;const progress=Math.min(Math.max(slideProgress,-4),4);let offset=$slideEl[0].swiperSlideOffset;if(swiper.params.centeredSlides&&!swiper.params.cssMode){swiper.$wrapperEl.transform(`translateX(${swiper.minTranslate()}px)`)}
1747if(swiper.params.centeredSlides&&swiper.params.cssMode){offset-=slides[0].swiperSlideOffset}
1748let tX=swiper.params.cssMode?-offset-swiper.translate:-offset;let tY=0;const tZ=-100*Math.abs(progress);let scale=1;
1748let rotate=-params.perSlideRotate*progress;let tXAdd=params.perSlideOffset-Math.abs(progress)*0.75;const slideIndex=swiper.virtual&&swiper.params.virtual.enabled?swiper.virtual.from+i:i;const isSwipeToNext=(slideIndex===activeIndex||slideIndex===activeIndex-1)&&progress>0&&progress<1&&(isTouched||swiper.params.cssMode)&&currentTranslate<startTranslate;const isSwipeToPrev=(slideIndex===activeIndex||slideIndex===activeIndex+1)&&progress<0&&progress>-1&&(isTouched||swiper.params.cssMode)&&currentTranslate>startTranslate;if(isSwipeToNext||isSwipeToPrev){const subProgress=(1-Math.abs((Math.abs(progress)-0.5)/0.5))**0.5;rotate+=-28*progress*subProgress;scale+=-0.5*subProgress;tXAdd+=96*subProgress;tY=`${-25 * subProgress * Math.abs(progress)}%`}
1749if(progress<0){tX=`calc(${tX}px + (${tXAdd * Math.abs(progress)}%))`}else if(progress>0){tX=`calc(${tX}px + (-${tXAdd * Math.abs(progress)}%))`}else{tX=`${tX}px`}
1750if(!swiper.isHorizontal()){const prevY=tY;tY=tX;tX=prevY}
1751const scaleString=progress<0?`${1 + (1 - scale) * progress}`:`${1 - (1 - scale) * progress}`;const transform=`
1752      translate3d(${tX}, ${tY}, ${tZ}px)
1753      rotateZ(${params.rotate ? rotate : 0}deg)
1754      scale(${scaleString})
1755    `;if(params.slideShadows){let $shadowEl=$slideEl.find('.swiper-slide-shadow');if($shadowEl.length===0){$shadowEl=createShadow(params,$slideEl)}
1756if($shadowEl.length)$shadowEl[0].style.opacity=Math.min(Math.max((Math.abs(progress)-0.5)/0.5,0),1);}
1757$slideEl[0].style.zIndex=-Math.abs(Math.round(slideProgress))+slides.length;const $targetEl=effectTarget(params,$slideEl);$targetEl.transform(transform)}};const setTransition=duration=>{const{transformEl}=swiper.params.cardsEffect;const $transitionElements=transformEl?swiper.slides.find(transformEl):swiper.slides;$transitionElements.transition(duration).find('.swiper-slide-shadow').transition(duration);effectVirtualTransitionEnd({swiper,duration,transformEl})};effectInit({effect:'cards',swiper,on,setTranslate,setTransition,perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!swiper.params.cssMode})})}
1758const modules=[Virtual,Keyboard,Mousewheel,Navigation,Pagination,Scrollbar,Parallax,Zoom,Lazy,Controller,A11y,History,HashNavigation,Autoplay,Thumb,freeMode,Grid,Manipulation,EffectFade,EffectCube,EffectFlip,EffectCoverflow,EffectCreative,EffectCards];Swiper.use(modules);return Swiper}))
1759;/* Elementor bundles are self-contained; this file exists for the elementor-webpack-runtime handle. */
1760;"use strict";(function(){var __esmMin=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},__commonJSMin=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),e=__commonJSMin(((e,t)=>{function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.exports=_interopRequireDefault,t.exports.__esModule=!0,t.exports.default=t.exports})),t=__commonJSMin(((e,t)=>{var check=function(e){return e&&e.Math===Math&&e};t.exports=check(typeof globalThis==`object`&&globalThis)||check(typeof window==`object`&&window)||check(typeof self==`object`&&self)||check(typeof global==`object`&&global)||check(typeof e==`object`&&e)||(function(){return this})()||Function(`return this`)()})),n=__commonJSMin(((e,t)=>{t.exports=function(e){try{return!!e()}catch(e){return!0}}})),r=__commonJSMin(((e,t)=>{t.exports=!n()(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})})),i=__commonJSMin(((e,t)=>{t.exports=!n()(function(){var e=(function(){}).bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})})),a=__commonJSMin(((e,t)=>{var n=i(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}})),o=__commonJSMin((e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;e.f=n&&!t.call({1:2},1)?function propertyIsEnumerable(e){var t=n(this,e);return!!t&&t.enumerable}:t})),s=__commonJSMin(((e,t)=>{t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}})),c=__commonJSMin(((e,t)=>{var n=i(),r=Function.prototype,a=r.call,o=n&&r.bind.bind(a,a);t.exports=n?o:function(e){return function(){return a.apply(e,arguments)}}})),l=__commonJSMin(((e,t)=>{var n=c(),r=n({}.toString),i=n(``.slice);t.exports=function(e){return i(r(e),8,-1)}})),u=__commonJSMin(((e,t)=>{var r=c(),i=n(),a=l(),o=Object,s=r(``.split);t.exports=i(function(){return!o(`z`).propertyIsEnumerable(0)})?function(e){return a(e)===`String`?s(e,``):o(e)}:o})),d=__commonJSMin(((e,t)=>{t.exports=function(e){return e==null}}
vendor: 18,334 bytes, line 1760
1760)),f=__commonJSMin(((e,t)=>{var n=d(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`Can't call method on `+e);return e}})),p=__commonJSMin(((e,t)=>{var n=u(),r=f();t.exports=function(e){return n(r(e))}})),m=__commonJSMin(((e,t)=>{var n=typeof document==`object`&&document.all;t.exports=n===void 0&&n!==void 0?function(e){return typeof e==`function`||e===n}:function(e){return typeof e==`function`}})),h=__commonJSMin(((e,t)=>{var n=m();t.exports=function(e){return typeof e==`object`?e!==null:n(e)}})),g=__commonJSMin(((e,n)=>{var r=t(),i=m(),aFunction=function(e){return i(e)?e:void 0};n.exports=function(e,t){return arguments.length<2?aFunction(r[e]):r[e]&&r[e][t]}})),_=__commonJSMin(((e,t)=>{t.exports=c()({}.isPrototypeOf)})),v=__commonJSMin(((e,n)=>{var r=t().navigator,i=r&&r.userAgent;n.exports=i?String(i):``})),y=__commonJSMin(((e,n)=>{var r=t(),i=v(),a=r.process,o=r.Deno,s=a&&a.versions||o&&o.version,c=s&&s.v8,l,u;c&&(l=c.split(`.`),u=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!u&&i&&(l=i.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=i.match(/Chrome\/(\d+)/),l&&(u=+l[1]))),n.exports=u})),b=__commonJSMin(((e,r)=>{var i=y(),a=n(),o=t().String;r.exports=!!Object.getOwnPropertySymbols&&!a(function(){var e=Symbol(`symbol detection`);return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41})})),x=__commonJSMin(((e,t)=>{t.exports=b()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})),S=__commonJSMin(((e,t)=>{var n=g(),r=m(),i=_(),a=x(),o=Object;t.exports=a?function(e){return typeof e==`symbol`}:function(e){var t=n(`Symbol`);return r(t)&&i(t.prototype,o(e))}})),C=__commonJSMin(((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch(e){return`Object`}}})),w=__commonJSMin(((e,t)=>{var n=m(),r=C(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a function`)}})),T=__commonJSMin(((e,t)=>{var n=w(),r=d();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}})),E=__commonJSMin(((e,t)=>{var n=a(),r=m(),i=h(),o=TypeError;t.exports=function(e,t){var a,s;if(t===`string`&&r(a=e.toString)&&!i(s=n(a,e))||r(a=e.valueOf)&&!i(s=n(a,e))||t!==`string`&&r(a=e.toString)&&!i(s=n(a,e)))return s;throw new o(`Can't convert object to primitive value`)}})),D=__commonJSMin(((e,t)=>{t.exports=!1})),O=__commonJSMin(((e,n)=>{var r=t(),i=Object.defineProperty;n.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}})),k=__commonJSMin(((e,n)=>{var r=D(),i=t(),a=O(),o=`__core-js_shared__`,s=n.exports=i[o]||a(o,{});(s.versions||(s.versions=[])).push({version:`3.46.0`,mode:r?`pure`:`global`,copyright:`© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)`,license:`https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE`,source:`https://github.com/zloirock/core-js`})})),ee=__commonJSMin(((e,t)=>{var n=k();t.exports=function(e,t){return n[e]||(n[e]=t||{})}})),A=__commonJSMin(((e,t)=>{var n=f(),r=Object;t.exports=function(e){return r(n(e))}})),j=__commonJSMin(((e,t)=>{var n=c(),r=A(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(e,t){return i(r(e),t)}})),te=__commonJSMin(((e,t)=>{var n=c(),r=0,i=Math.random(),a=n(1.1.toString);t.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+a(++r+i,36)}})),M=__commonJSMin(((e,n)=>{var r=t(),i=ee(),a=j(),o=te(),s=b(),c=x(),l=r.Symbol,u=i(`wks`),d=c?l.for||l:l&&l.withoutSetter||o;n.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:d(`Symbol.`+e)),u[e]}})),ne=__commonJSMin(((e,t)=>{var n=a(),r=h(),i=S(),o=T(),s=E(),c=M(),l=TypeError,u=c(`toPrimitive`);t.exports=function(e,t){if(!r(e)||i(e))return e;var a=o(e,u),c;if(a){if(t===void 0&&(t=`default`),c=n(a,e,t),!r(c)||i(c))return c;throw new l(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),s(e,t)}})),re=__commonJSMin(((e,t)=>{var n=ne(),r=S();t.exports=function(e){var t=n(e,`string`);return r(t)?t:t+``}})),ie=__commonJSMin(((e,n)=>{var r=t(),i=h(),a=r.document,o=i(a)&&i(a.createElement);n.exports=function(e){return o?a.createElement(e):{}}})),ae=__commonJSMin(((e,t)=>{var i=r(),a=n(),o=ie();t.exports=!i&&!a(function(){return Object.defineProperty(o(`div`),"a",{get:function(){return 7}}).a!==7})})),oe=__commonJSMin((e=>{var t=r(),n=a(),i=o(),c=s(),l=p(),u=re(),d=j(),f=ae(),m=Object.getOwnPropertyDescriptor;e.f=t?m:function getOwnPropertyDescriptor(e,t){if(e=l(e),t=u(t),f)try{return m(e,t)}catch(e){}if(d(e,t))return c(!n(i.f,e,t),e[t])}})),se=__commonJSMin(((e,t)=>{var i=r(),a=n();t.exports=i&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})})),N=__commonJSMin(((e,t)=>{var n=h(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not an object`)}})),P=__commonJSMin((e=>{var t=r(),n=ae(),i=se(),a=N(),o=re(),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=`enumerable`,d=`configurable`,f=`writable`;e.f=t?i?function defineProperty(e,t,n){if(a(e),t=o(t),a(n),typeof e==`function`&&t===`prototype`&&`value`in n&&f in n&&!n[f]){var r=l(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:u in n?n[u]:r[u],writable:!1})}return c(e,t,n)}:c:function defineProperty(e,t,r){if(a(e),t=o(t),a(r),n)try{return c(e,t,r)}catch(e){}if(`get`in r||`set`in r)throw new s(`Accessors not supported`);return`value`in r&&(e[t]=r.value),e}})),I=__commonJSMin(((e,t)=>{var n=r(),i=P(),a=s();t.exports=n?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}})),ce=__commonJSMin(((e,t)=>{var n=r(),i=j(),a=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=i(a,`name`);t.exports={EXISTS:s,PROPER:s&&(function something(){}).name===`something`,CONFIGURABLE:s&&(!n||n&&o(a,`name`).configurable)}})),le=__commonJSMin(((e,t)=>{var n=c(),r=m(),i=k(),a=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),t.exports=i.inspectSource})),ue=__commonJSMin(((e,n)=>{var r=t(),i=m(),a=r.WeakMap;n.exports=i(a)&&/native code/.test(String(a))})),L=__commonJSMin(((e,t)=>{var n=ee(),r=te(),i=n(`keys`);t.exports=function(e){return i[e]||(i[e]=r(e))}})),R=__commonJSMin(((e,t)=>{t.exports={}})),de=__commonJSMin(((e,n)=>{var r=ue(),i=t(),a=h(),o=I(),s=j(),c=k(),l=L(),u=R(),d=`Object already initialized`,f=i.TypeError,p=i.WeakMap,set,get,has,enforce=function(e){return has(e)?get(e):set(e,{})},getterFor=function(e){return function(t){var n;if(!a(t)||(n=get(t)).type!==e)throw new f(`Incompatible receiver, `+e+` required`);return n}};if(r||c.state){var m=c.state||(c.state=new p);m.get=m.get,m.has=m.has,m.set=m.set,set=function(e,t){if(m.has(e))throw new f(d);return t.facade=e,m.set(e,t),t},get=function(e){return m.get(e)||{}},has=function(e){return m.has(e)}}else{var g=l(`state`);u[g]=!0,set=function(e,t){if(s(e,g))throw new f(d);return t.facade=e,o(e,g,t),t},get=function(e){return s(e,g)?e[g]:{}},has=function(e){return s(e,g)}}n.exports={set,get,has,enforce,getterFor}})),fe=__commonJSMin(((e,t)=>{var i=c(),a=n(),o=m(),s=j(),l=r(),u=ce().CONFIGURABLE,d=le(),f=de(),p=f.enforce,h=f.get,g=String,_=Object.defineProperty,v=i(``.slice),y=i(``.replace),b=i([].join),x=l&&!a(function(){return _(function(){},`length`,{value:8}).length!==8}),S=String(String).split(`String`),C=t.exports=function(e,t,n){v(g(t),0,7)===`Symbol(`&&(t=`[`+y(g(t),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!s(e,`name`)||u&&e.name!==t)&&(l?_(e,`name`,{value:t,configurable:!0}):e.name=t),x&&n&&s(n,`arity`)&&e.length!==n.arity&&_(e,`length`,{value:n.arity});try{n&&s(n,`constructor`)&&n.constructor?l&&_(e,`prototype`,{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=p(e);return s(r,`source`)||(r.source=b(S,typeof t==`string`?t:``)),e};Function.prototype.toString=C(function toString(){return o(this)&&h(this).source||d(this)},`toString`)})),z=__commonJSMin(((e,t)=>{var n=m(),r=P(),i=fe(),a=O();t.exports=function(e,t,o,s){s||(s={});var c=s.enumerable,l=s.name===void 0?t:s.name;if(n(o)&&i(o,l,s),s.global)c?e[t]=o:a(t,o);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=o:r.f(e,t,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}})),pe=__commonJSMin(((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function trunc(e){var t=+e;return(t>0?r:n)(t)}})),me=__commonJSMin(((e,t)=>{var n=pe();t.exports=function(e){var t=+e;return t!==t||t===0?0:n(t)}})),he=__commonJSMin(((e,t)=>{var n=me(),r=Math.max,i=Math.min;t.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):i(a,t)}})),ge=__commonJSMin(((e,t)=>{var n=me(),r=Math.min;t.exports=function(e){var t=n(e);return t>0?r(t,9007199254740991):0}})),B=__commonJSMin(((e,t)=>{var n=ge();t.exports=function(e){return n(e.length)}})),_e=__commonJSMin(((e,t)=>{var n=p(),r=he(),i=B(),createMethod=function(e){return function(t,a,o){var s=n(t),c=i(s);if(c===0)return!e&&-1;var l=r(o,c),u;if(e&&a!==a){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===a)return e||l||0;return!e&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}})),ve=__commonJSMin(((e,t)=>{var n=c(),r=j(),i=p(),a=_e().indexOf,o=R(),s=n([].push);t.exports=function(e,t){var n=i(e),c=0,l=[],u;for(u in n)!r(o,u)&&r(n,u)&&s(l,u);for(;t.length>c;)r(n,u=t[c++])&&(~a(l,u)||s(l,u));return l}})),V=__commonJSMin(((e,t)=>{t.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]})),ye=__commonJSMin((e=>{var t=ve(),n=V().concat(`length`,`prototype`);e.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return t(e,n)}})),be=__commonJSMin((e=>{e.f=Object.getOwnPropertySymbols})),xe=__commonJSMin(((e,t)=>{var n=g(),r=c(),i=ye(),a=be(),o=N(),s=r([].concat);t.exports=n(`Reflect`,`ownKeys`)||function ownKeys(e){var t=i.f(o(e)),n=a.f;return n?s(t,n(e)):t}})),Se=__commonJSMin(((e,t)=>{var n=j(),r=xe(),i=oe(),a=P();t.exports=function(e,t,o){for(var s=r(t),c=a.f,l=i.f,u=0;u<s.length;u++){var d=s[u];!n(e,d)&&!(o&&n(o,d))&&c(e,d,l(t,d))}}})),Ce=__commonJSMin(((e,t)=>{var r=n(),i=m(),a=/#|\.prototype\./,isForced=function(e,t){var n=s[o(e)];return n===l?!0:n===c?!1:i(t)?r(t):!!t},o=isForced.normalize=function(e){return String(e).replace(a,`.`).toLowerCase()},s=isForced.data={},c=isForced.NATIVE=`N`,l=isForced.POLYFILL=`P`;t.exports=isForced})),H=__commonJSMin(((e,n)=>{var r=t(),i=oe().f,a=I(),o=z(),s=O(),c=Se(),l=Ce();n.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):r[n]&&r[n].prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.dontCallGetSet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}})),we=__commonJSMin(((e,t)=>{var n=l();t.exports=Array.isArray||function isArray(e){return n(e)===`Array`}})),Te=__commonJSMin(((e,t)=>{var n=r(),i=we(),a=TypeError,o=Object.getOwnPropertyDescriptor;t.exports=n&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(i(e)&&!o(e,`length`).writable)throw new a(`Cannot set read only .length`);return e.length=t}:function(e,t){return e.length=t}})),Ee=__commonJSMin(((e,t)=>{var n=TypeError,r=9007199254740991;t.exports=function(e){if(e>r)throw n(`Maximum allowed index exceeded`);return e}})),U=__commonJSMin((()=>{var e=H(),t=A(),r=B(),i=Te(),a=Ee(),o=n()(function(){return[].push.call({length:4294967296},1)!==4294967297}),properErrorOnNonWritableLength=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}};e({target:`Array`,proto:!0,arity:1,forced:o||!properErrorOnNonWritableLength()},{push:function push(e){var n=t(this),o=r(n),s=arguments.length;a(o+s);for(var c=0;c<s;c++)n[o]=arguments[c],o++;return i(n,o),o}})})),De=__commonJSMin(((e,t)=>{var n=_(),r=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new r(`Incorrect invocation`)}})),Oe=__commonJSMin(((e,t)=>{t.exports=!n()(function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})})),ke=__commonJSMin(((e,t)=>{var n=j(),r=m(),i=A(),a=L(),o=Oe(),s=a(`IE_PROTO`),c=Object,l=c.prototype;t.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var a=t.constructor;return r(a)&&t instanceof a?a.prototype:t instanceof c?l:null}})),Ae=__commonJSMin(((e,t)=>{var n=fe(),r=P();t.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}})),je=__commonJSMin(((e,t)=>{var n=r(),i=P(),a=s();t.exports=function(e,t,r){n?i.f(e,t,a(0,r)):e[t]=r}})),Me=__commonJSMin(((e,t)=>{var n=ve(),r=V();t.exports=Object.keys||function keys(e){return n(e,r)}})),Ne=__commonJSMin((e=>{var t=r(),n=se(),i=P(),a=N(),o=p(),s=Me();e.f=t&&!n?Object.defineProperties:function defineProperties(e,t){a(e);for(var n=o(t),r=s(t),c=r.length,l=0,u;c>l;)i.f(e,u=r[l++],n[u]);return e}})),Pe=__commonJSMin(((e,t)=>{t.exports=g()(`document`,`documentElement`)})),W=__commonJSMin(((e,t)=>{var n=N(),r=Ne(),i=V(),a=R(),o=Pe(),s=ie(),c=L(),l=`>`,u=`<`,d=`prototype`,f=`script`,p=c(`IE_PROTO`),EmptyConstructor=function(){},scriptTag=function(e){return u+f+l+e+u+`/`+f+l},NullProtoObjectViaActiveX=function(e){e.write(scriptTag(``)),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=s(`iframe`),t=`java`+f+`:`,n;return e.style.display=`none`,o.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(scriptTag(`document.F=Object`)),n.close(),n.F},m,NullProtoObject=function(){try{m=new ActiveXObject(`htmlfile`)}catch(e){}NullProtoObject=typeof document<`u`?document.domain&&m?NullProtoObjectViaActiveX(m):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(m);for(var e=i.length;e--;)delete NullProtoObject[d][i[e]];return NullProtoObject()};a[p]=!0,t.exports=Object.create||function create(e,t){var i;return e===null?i=NullProtoObject():(EmptyConstructor[d]=n(e),i=new EmptyConstructor,EmptyConstructor[d]=null,i[p]=e),t===void 0?i:r.f(i,t)}})),Fe=__commonJSMin(((e,t)=>{var r=n(),i=m(),a=h(),o=W(),s=ke(),c=z(),l=M(),u=D(),d=l(`iterator`),f=!1,p,g,_;[].keys&&(_=[].keys(),`next`in _?(g=s(s(_)),g!==Object.prototype&&(p=g)):f=!0),!a(p)||r(function(){var e={};return p[d].call(e)!==e})?p={}:u&&(p=o(p)),i(p[d])||c(p,d,function(){return this}),t.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:f}})),Ie=__commonJSMin((()=>{var e=H(),i=t(),a=De(),o=N(),s=m(),c=ke(),l=Ae(),u=je(),d=n(),f=j(),p=M(),h=Fe().IteratorPrototype,g=r(),_=D(),v=`constructor`,y=`Iterator`,b=p(`toStringTag`),x=TypeError,S=i[y],C=_||!s(S)||S.prototype!==h||!d(function(){S({})}),w=function Iterator(){if(a(this,h),c(this)===h)throw new x(`Abstract class Iterator not directly constructable`)},defineIteratorPrototypeAccessor=function(e,t){g?l(h,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===h)throw new x(`You can't redefine this property`);f(this,e)?this[e]=t:u(this,e,t)}}):h[e]=t};f(h,b)||defineIteratorPrototypeAccessor(b,y),(C||!f(h,v)||h[v]===Object)&&defineIteratorPrototypeAccessor(v,w),w.prototype=h,e({global:!0,constructor:!0,forced:C},{Iterator:w})})),G=__commonJSMin((()=>{Ie()})),K=__commonJSMin(((e,t)=>{t.exports=function(e){return{iterator:e,next:e.next,done:!1}}})),Le=__commonJSMin(((e,t)=>{var n=z();t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}})),Re=__commonJSMin(((e,t)=>{t.exports=function(e,t){return{value:e,done:t}}})),q=__commonJSMin(((e,t)=>{var n=a(),r=N(),i=T();t.exports=function(e,t,a){var o,s;r(e);try{if(o=i(e,`return`),!o){if(t===`throw`)throw a;return a}o=n(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw a;if(s)throw o;return r(o),a}})),ze=__commonJSMin(((e,t)=>{var n=q();t.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(e[i]!==void 0)try{r=n(e[i].iterator,t,r)}catch(e){t=`throw`,r=e}if(t===`throw`)throw r;return r}})),Be=__commonJSMin(((e,t)=>{var n=a(),r=W(),i=I(),o=Le(),s=M(),c=de(),l=T(),u=Fe().IteratorPrototype,d=Re(),f=q(),p=ze(),m=s(`toStringTag`),h=`IteratorHelper`,g=`WrapForValidIterator`,_=`normal`,v=`throw`,y=c.set,createIteratorProxyPrototype=function(e){var t=c.getterFor(e?g:h);return o(r(u),{next:function next(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var r=t(this),i=r.iterator;if(r.done=!0,e){var a=l(i,`return`);return a?n(a,i):d(void 0,!0)}if(r.inner)try{f(r.inner.iterator,_)}catch(e){return f(i,v,e)}if(r.openIters)try{p(r.openIters,_)}catch(e){return f(i,v,e)}return i&&f(i,_),d(void 0,!0)}})},b=createIteratorProxyPrototype(!0),x=createIteratorProxyPrototype(!1);i(x,m,`Iterator Helper`),t.exports=function(e,t,n){var r=function Iterator(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:h,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,y(this,i)};return r.prototype=t?b:x,r}})),Ve=__commonJSMin(((e,t)=>{var n=N(),r=q();t.exports=function(e,t,i,a){try{return a?t(n(i)[0],i[1]):t(i)}catch(t){r(e,`throw`,t)}}})),He=__commonJSMin(((e,t)=>{t.exports=function(e,t){var n=typeof Iterator==`function`&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}})),J=__commonJSMin(((e,n)=>{var r=t();n.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,a=i&&i[e],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return a}})),Ue=__commonJSMin((()=>{var e=H(),t=a(),n=w(),r=N(),i=K(),o=Be(),s=Ve(),c=D(),l=q(),u=He(),d=J(),f=!c&&!u(`filter`,function(){}),p=!c&&!f&&d(`filter`,TypeError),m=c||f||p,h=o(function(){for(var e=this.iterator,n=this.predicate,i=this.next,a,o,c;;){if(a=r(t(i,e)),o=this.done=!!a.done,o)return;if(c=a.value,s(e,n,[c,this.counter++],!0))return c}});e({target:`Iterator`,proto:!0,real:!0,forced:m},{filter:function filter(e){r(this);try{n(e)}catch(e){l(this,`throw`,e)}return p?t(p,this,e):new h(i(this),{predicate:e})}})})),Y=__commonJSMin((()=>{Ue()})),We=__commonJSMin(((e,t)=>{var n=l(),r=c();t.exports=function(e){if(n(e)===`Function`)return r(e)}})),Ge=__commonJSMin(((e,t)=>{var n=We(),r=w(),a=i(),o=n(n.bind);t.exports=function(e,t){return r(e),t===void 0?e:a?o(e,t):function(){return e.apply(t,arguments)}}}
1760)),Ke=__commonJSMin(((e,t)=>{t.exports={}})),qe=__commonJSMin(((e,t)=>{var n=M(),r=Ke(),i=n(`iterator`),a=Array.prototype;t.exports=function(e){return e!==void 0&&(r.Array===e||a[i]===e)}})),Je=__commonJSMin(((e,t)=>{var n=M()(`toStringTag`),r={};r[n]=`z`,t.exports=String(r)===`[object z]`})),Ye=__commonJSMin(((e,t)=>{var n=Je(),r=m(),i=l(),a=M()(`toStringTag`),o=Object,s=i(function(){return arguments}())===`Arguments`,tryGet=function(e,t){try{return e[t]}catch(e){}};t.exports=n?i:function(e){var t,n,c;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=tryGet(t=o(e),a))==`string`?n:s?i(t):(c=i(t))===`Object`&&r(t.callee)?`Arguments`:c}})),Xe=__commonJSMin(((e,t)=>{var n=Ye(),r=T(),i=d(),a=Ke(),o=M()(`iterator`);t.exports=function(e){if(!i(e))return r(e,o)||r(e,`@@iterator`)||a[n(e)]}})),Ze=__commonJSMin(((e,t)=>{var n=a(),r=w(),i=N(),o=C(),s=Xe(),c=TypeError;t.exports=function(e,t){var a=arguments.length<2?s(e):t;if(r(a))return i(n(a,e));throw new c(o(e)+` is not iterable`)}})),Qe=__commonJSMin(((e,t)=>{var n=Ge(),r=a(),i=N(),o=C(),s=qe(),c=B(),l=_(),u=Ze(),d=Xe(),f=q(),p=TypeError,Result=function(e,t){this.stopped=e,this.result=t},m=Result.prototype;t.exports=function(e,t,a){var h=a&&a.that,g=!!(a&&a.AS_ENTRIES),_=!!(a&&a.IS_RECORD),v=!!(a&&a.IS_ITERATOR),y=!!(a&&a.INTERRUPTED),b=n(t,h),x,S,C,w,T,E,D,stop=function(e){return x&&f(x,`normal`),new Result(!0,e)},callFn=function(e){return g?(i(e),y?b(e[0],e[1],stop):b(e[0],e[1])):y?b(e,stop):b(e)};if(_)x=e.iterator;else if(v)x=e;else{if(S=d(e),!S)throw new p(o(e)+` is not iterable`);if(s(S)){for(C=0,w=c(e);w>C;C++)if(T=callFn(e[C]),T&&l(m,T))return T;return new Result(!1)}x=u(e,S)}for(E=_?e.next:x.next;!(D=r(E,x)).done;){try{T=callFn(D.value)}catch(e){f(x,`throw`,e)}if(typeof T==`object`&&T&&l(m,T))return T}return new Result(!1)}})),$e=__commonJSMin((()=>{var e=H(),t=a(),n=Qe(),r=w(),i=N(),o=K(),s=q(),c=J()(`forEach`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:c},{forEach:function forEach(e){i(this);try{r(e)}catch(e){s(this,`throw`,e)}if(c)return t(c,this,e);var a=o(this),l=0;n(a,function(t){e(t,l++)},{IS_RECORD:!0})}})})),X=__commonJSMin((()=>{$e()})),et=__commonJSMin(((e,t)=>{U(),G(),Y(),X();var Module=function(){let e=jQuery,t=arguments,n=this,r={},i,ensureClosureMethods=function(){e.each(n,function(e){let t=n[e];typeof t==`function`&&(n[e]=function(){return t.apply(n,arguments)})})},initSettings=function(){i=n.getDefaultSettings();let r=t[0];r&&e.extend(!0,i,r)},init=function(){n.__construct.apply(n,t),ensureClosureMethods(),initSettings(),n.trigger(`init`)};this.getItems=function(e,t){if(t){let n=t.split(`.`),r=n.splice(0,1);return n.length?e[r]?this.getItems(e[r],n.join(`.`)):void 0:e[r]}return e},this.getSettings=function(e){return this.getItems(i,e)},this.setSettings=function(t,r,a){if(a||(a=i),typeof t==`object`)return e.extend(a,t),n;let o=t.split(`.`),s=o.splice(0,1);return o.length?(a[s]||(a[s]={}),n.setSettings(o.join(`.`),r,a[s])):(a[s]=r,n)},this.getErrorMessage=function(e,t){let n;switch(e){case`forceMethodImplementation`:n=`The method '${t}' must to be implemented in the inheritor child.`;break;default:n=`An error occurs`}return n},this.forceMethodImplementation=function(e){throw Error(this.getErrorMessage(`forceMethodImplementation`,e))},this.on=function(t,i){return typeof t==`object`?(e.each(t,function(e){n.on(e,this)}),n):(t.split(` `).forEach(function(e){r[e]||(r[e]=[]),r[e].push(i)}),n)},this.off=function(e,t){if(!r[e])return n;if(!t)return delete r[e],n;let i=r[e].indexOf(t);return i!==-1&&(delete r[e][i],r[e]=r[e].filter(e=>e)),n},this.trigger=function(t){let i=`on`+t[0].toUpperCase()+t.slice(1),a=Array.prototype.slice.call(arguments,1);n[i]&&n[i].apply(n,a);let o=r[t];return o&&e.each(o,function(e,t){t.apply(n,a)}),n},init()};Module.prototype.__construct=function(){},Module.prototype.getDefaultSettings=function(){return{}},Module.prototype.getConstructorID=function(){return this.constructor.name},Module.extend=function(e){let t=jQuery,n=this,child=function(){return n.apply(this,arguments)};return t.extend(child,n),child.prototype=Object.create(t.extend({},n.prototype,e)),child.prototype.constructor=child,child.__super__=n.prototype,child},t.exports=Module})),tt=__commonJSMin((t=>{var n=e();
1760Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=n(et()).default.extend({elements:null,getDefaultElements(){return{}},bindEvents(){},onInit(){this.initElements(),this.bindEvents()},initElements(){this.elements=this.getDefaultElements()}})})),nt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,U(),G(),X(),e.default=class InstanceType{static[Symbol.hasInstance](e){let t=super[Symbol.hasInstance](e);if(e&&!e.constructor.getInstanceType)return t;if(e&&(e.instanceTypes||(e.instanceTypes=[]),t||this.getInstanceType()===e.constructor.getInstanceType()&&(t=!0),t)){let t=this.getInstanceType===InstanceType.getInstanceType?`BaseInstanceType`:this.getInstanceType();e.instanceTypes.indexOf(t)===-1&&e.instanceTypes.push(t)}return!t&&e&&(t=e.instanceTypes&&Array.isArray(e.instanceTypes)&&e.instanceTypes.indexOf(this.getInstanceType())!==-1),t}static getInstanceType(){elementorModules.ForceMethodImplementation()}constructor(){let e=new.target,t=[];for(;e.__proto__&&e.__proto__.name;)t.push(e.__proto__),e=e.__proto__;t.reverse().forEach(e=>this instanceof e)}}})),rt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var _default=(e,t)=>{t=Array.isArray(t)?t:[t];for(let n of t)if(e.constructor.name===n.prototype[Symbol.toStringTag])return!0;return!1};e.default=_default})),it=__commonJSMin((t=>{var n=e();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(nt()),i=n(rt()),ArgsObject=class extends r.default{static getInstanceType(){return`ArgsObject`}constructor(e){super(),this.args=e}requireArgument(e,t=this.args){if(!Object.prototype.hasOwnProperty.call(t,e))throw Error(`${e} is required.`)}requireArgumentType(e,t,n=this.args){if(this.requireArgument(e,n),typeof n[e]!==t)throw Error(`${e} invalid type: ${t}.`)}requireArgumentInstance(e,t,n=this.args){if(this.requireArgument(e,n),!(n[e]instanceof t)&&!(0,i.default)(n[e],t))throw Error(`${e} invalid instance.`)}requireArgumentConstructor(e,t,n=this.args){if(this.requireArgument(e,n),n[e].constructor.toString()!==t.prototype.constructor.toString())throw Error(`${e} invalid constructor type.`)}};t.default=ArgsObject})),at=__commonJSMin((t=>{var n=e();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,U(),t.default=n(tt()).default.extend({getDefaultSettings(){return{container:null,items:null,columnsCount:3,verticalSpaceBetween:30}},getDefaultElements(){return{$container:jQuery(this.getSettings(`container`)),$items:jQuery(this.getSettings(`items`))}},run(){var e=[],t=this.elements.$container.position().top,n=this.getSettings(),r=n.columnsCount;t+=parseInt(this.elements.$container.css(`margin-top`),10),this.elements.$items.each(function(i){var a=Math.floor(i/r),o=jQuery(this),s=o[0].getBoundingClientRect().height+n.verticalSpaceBetween;if(a){var c=o.position(),l=i%r,u=c.top-t-e[l];u-=parseInt(o.css(`margin-top`),10),u*=-1,o.css(`margin-top`,u+`px`),e[l]+=s}else e.push(s)})}})})),ot=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,U();var Scroll=class{static scrollObserver(e){let t=0,buildThresholds=(e=0)=>{let t=[];if(e>0&&e<=100){let n=100/e;for(let e=0;e<=100;e+=n)t.push(e/100)}else t.push(0);return t},n={root:e.root||null,rootMargin:e.offset||`0px`,threshold:buildThresholds(e.sensitivity)};function handleIntersect(n){let r=n[0].boundingClientRect.y,i=n[0].isIntersecting,a=r<t?`down`:`up`,o=Math.abs(parseFloat((n[0].intersectionRatio*100).toFixed(2)));e.callback({sensitivity:e.sensitivity,isInViewport:i,scrollPercentage:o,intersectionScrollDirection:a}),t=r}return new IntersectionObserver(handleIntersect,n)}static getElementViewportPercentage(e,t={}){let n=e[0].getBoundingClientRect(),r=t.start||0,i=t.end||0,a=window.innerHeight*r/100,o=window.innerHeight*i/100,s=n.top-window.innerHeight,c=n.top+a+e.height(),l=0-s+a,u=c-s+o,d=Math.max(0,Math.min(l/u,1));return parseFloat((d*100).toFixed(2))}static getPageScrollPercentage(e={},t){let n=e.start||0,r=e.end||0,i=t||document.documentElement.scrollHeight-document.documentElement.clientHeight,a=i*n/100,o=i+a+i*r/100;return(document.documentElement.scrollTop+document.body.scrollTop+a)/o*100}};e.default=Scroll})),st=__commonJSMin(((e,t)=>{var n=M(),r=W(),i=P().f,a=n(`unscopables`),o=Array.prototype;o[a]===void 0&&i(o,a,{configurable:!0,value:r(null)}),t.exports=function(e){o[a][e]=!0}})),ct=__commonJSMin((()=>{var e=H(),t=_e().includes,r=n(),i=st();e({target:`Array`,proto:!0,forced:r(function(){return![,].includes()})},{includes:function includes(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),i(`includes`)})),lt=__commonJSMin((e=>
1760{Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ForceMethodImplementation=void 0,ct();var t=class ForceMethodImplementation extends Error{constructor(e={},t={}){super(`${e.isStatic?`static `:``}${e.fullName}() should be implemented, please provide '${e.functionName||e.fullName}' functionality.`,t),Object.keys(t).length&&console.error(t),Error.captureStackTrace(this,ForceMethodImplementation)}};e.ForceMethodImplementation=t;var _default=e=>{let n=Error().stack.split(`
1761`)[2].trim(),r=n.startsWith(`at new`)?`constructor`:n.split(` `)[1],i={};if(i.functionName=r,i.fullName=r,i.functionName.includes(`.`)){let e=i.functionName.split(`.`);i.className=e[0],i.functionName=e[1]}else i.isStatic=!0;throw new t(i,e)};e.default=_default}));function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_typeof(e)}var ut=__esmMin((()=>{}));function toPrimitive(e,t){if(_typeof(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_typeof(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var dt=__esmMin((()=>{ut()}));function toPropertyKey(e){var t=toPrimitive(e,`string`);return _typeof(t)==`symbol`?t:t+``}var ft=__esmMin((()=>{ut(),dt()}));function _defineProperty(e,t,n){return(t=toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt=__esmMin((()=>{ft()}));function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var mt=__esmMin((()=>{pt()})),ht=__commonJSMin((e=>{mt(),Object.defineProperty(e,"__esModule",{value:!0}),e.createGetInitialState=createGetInitialState;function createGetInitialState(e,t={}){return(n,r)=>{let i=r;if(n.hasOwnProperty(`uploadedData`)){var a;i=!1;let t=n.uploadedData.manifest.templates,r=((a=elementorAppConfig)==null||(a=a[`import-export-customization`])==null?void 0:a.exportGroups)||{};for(let n in t)if(r[t[n].doc_type]===e){i=!0;break}}return _objectSpread2({enabled:i},t)}}}));function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var gt=__esmMin((()=>{}));function _objectWithoutProperties(e,t){if(e==null)return{};var n,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var _t=__esmMin((()=>{gt()})),vt=__commonJSMin((()=>{var e=H(),t=a(),n=w(),r=N(),i=K(),o=Be(),s=Ve(),c=q(),l=He(),u=J(),d=D(),f=!d&&!l(`map`,function(){}),p=!d&&!f&&u(`map`,TypeError),m=d||f||p,h=o(function(){var e=this.iterator,n=r(t(this.next,e));if(!(this.done=!!n.done))return s(e,this.mapper,[n.value,this.counter++],!0)});e({target:`Iterator`,proto:!0,real:!0,forced:m},{map:function map(e){r(this);try{n(e)}catch(e){c(this,`throw`,e)}return p?t(p,this,e):new h(i(this),{mapper:e})}})})),yt=__commonJSMin((()=>{vt()})),bt=__commonJSMin((e=>{_t(),mt();var t=[`children`];Object.defineProperty(e,"__esModule",{value:!0}),e.BaseRegistry=void 0,G(),Y(),X(),yt();var BaseRegistry=class{constructor(){this.sections=new Map}register(e){if(!e.key||!e.title)throw Error(`Template type must have key and title`);let t=this.get(e.key)||this.formatSection(e);if(e.children)if(t.children){let n=new Map(t.children.map(e=>[e.key,e]));
1761e.children.forEach(e=>{let t=this.formatSection(e);n.set(e.key,t)}),t.children=Array.from(n.values())}else t.children=e.children.map(e=>this.formatSection(e));this.sections.set(e.key,t)}formatSection(e){let{children:n}=e,r=_objectWithoutProperties(e,t);return _objectSpread2({key:r.key,title:r.title,description:r.description||``,useParentDefault:r.useParentDefault!==!1,getInitialState:r.getInitialState||null,component:r.component||null,order:r.order||10,isAvailable:r.isAvailable||(()=>!0)},r)}getAll(){return Array.from(this.sections.values()).filter(e=>e.isAvailable()).map(e=>e.children?_objectSpread2(_objectSpread2({},e),{},{children:[...e.children].sort((e,t)=>e.order-t.order)}):e).sort((e,t)=>e.order-t.order)}get(e){return this.sections.get(e)}};e.BaseRegistry=BaseRegistry})),xt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.customizationDialogsRegistry=void 0,e.customizationDialogsRegistry=new(bt()).BaseRegistry})),St=__commonJSMin((t=>{var n=e();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(et()),i=n(tt()),a=n(it()),o=n(at()),s=n(ot()),c=n(lt()),l=ht(),u=xt(),d={Module:r.default,ViewModule:i.default,ArgsObject:a.default,ForceMethodImplementation:c.default,utils:{Masonry:o.default,Scroll:s.default},importExport:{createGetInitialState:l.createGetInitialState,customizationDialogsRegistry:u.customizationDialogsRegistry}};window.elementorModules?Object.assign(window.elementorModules,d):window.elementorModules=d,t.default=window.elementorModules})),Ct=__commonJSMin((()=>{var e=H(),t=a(),n=Qe(),r=w(),i=N(),o=K(),s=q(),c=J()(`find`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:c},{find:function find(e){i(this);try{r(e)}catch(e){s(this,`throw`,e)}if(c)return t(c,this,e);var a=o(this),l=0;return n(a,function(t,n){if(e(t,l++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})})),Z=__commonJSMin((()=>{Ct()})),wt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,G(),Z();var _default=class extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{elements:`.elementor-element`,nestedDocumentElements:`.elementor .elementor-element`},classes:{editMode:`elementor-edit-mode`}}}getDefaultElements(){let e=this.getSettings(`selectors`);return{$elements:this.$element.find(e.elements).not(this.$element.find(e.nestedDocumentElements))}}getDocumentSettings(e){let t;if(this.isEdit){t={};let e=elementor.settings.page.model;jQuery.each(e.getActiveControls(),n=>{t[n]=e.attributes[n]})}else t=this.$element.data(`elementor-settings`)||{};return this.getItems(t,e)}runElementsHandlers(){this.elements.$elements.each((e,t)=>setTimeout(()=>elementorFrontend.elementsHandler.runReadyTrigger(t)))}onInit(){this.$element=this.getSettings(`$element`),super.onInit(),this.isEdit=this.$element.hasClass(this.getSettings(`classes.editMode`)),this.isEdit?elementor.on(`document:loaded`,()=>{elementor.settings.page.model.on(`change`,this.onSettingsChange.bind(this))}):this.runElementsHandlers()}onSettingsChange(){}};e.default=_default})),Tt=__commonJSMin(((e,t)=>{t.exports=elementorModules.ViewModule.extend({getDefaultSettings(){return{element:null,direction:elementorFrontend.config.is_rtl?`right`:`left`,selectors:{container:window},considerScrollbar:!1,cssOutput:`inline`}},getDefaultElements(){return{$element:jQuery(this.getSettings(`element`))}},stretch(){let e=this.getSettings(),t;try{t=jQuery(e.selectors.container)}catch(e){}(!t||!t.length)&&(t=jQuery(this.getDefaultSettings().selectors.container)),this.reset();var n=this.elements.$element,r=t.innerWidth(),i=n.offset().left,a=n.css(`position`)===`fixed`,o=a?0:i,s=window===t[0];if(!s){var c=t.offset().left;a&&(o=c),i>c&&(o=i-c)}if(e.considerScrollbar&&s){let e=window.innerWidth-r;o-=e}a||(elementorFrontend.config.is_rtl&&(o=r-(n.outerWidth()+o)),o=-o),e.margin&&(o+=e.margin);var l={};let u=r;if(e.margin&&(u-=e.margin*2),l.width=u+`px`,l[e.direction]=o+`px`,e.cssOutput===`variables`){this.applyCssVariables(n,l);return}n.css(l)},reset(){let e={},t=this.getSettings(),n=this.elements.$element;if(t.cssOutput===`variables`){this.resetCssVariables(n);return}e.width=``,e[t.direction]=``,n.css(e)},applyCssVariables(e,t){e.css(`--stretch-width`,t.width),t.left?e.css(`--stretch-left`,t.left):e.css(`--stretch-right`,t.right)},resetCssVariables(e){e.css({"--stretch-width":``,"--stretch-left":``,"--stretch-right":``})}})})),Q=__commonJSMin(((e,t)=>{U(),G(),Y(),Z(),X(),t.exports=elementorModules.ViewModule.extend({$element:null,editorListeners:null,onElementChange:null,onEditSettingsChange:null,onPageSettingsChange:null,isEdit:null,__c
1761onstruct(e){this.isActive(e)&&(this.$element=e.$element,this.isEdit=this.$element.hasClass(`elementor-element-edit-mode`),this.isEdit&&this.addEditorListeners())},isActive(){return!0},isElementInTheCurrentDocument(){return elementorFrontend.isEditMode()?elementor.documents.currentDocument.id.toString()===this.$element[0].closest(`.elementor`).dataset.elementorId:!1},findElement(e){var t=this.$element;return t.find(e).filter(function(){return jQuery(this).parent().closest(`.elementor-element`).is(t)})},getUniqueHandlerID(e,t){return e||(e=this.getModelCID()),t||(t=this.$element),e+t.attr(`data-element_type`)+this.getConstructorID()},initEditorListeners(){var e=this;if(e.editorListeners=[{event:`element:destroy`,to:elementor.channels.data,callback(t){t.cid===e.getModelCID()&&e.onDestroy()}}],e.onElementChange){let t=e.getWidgetType()||e.getElementType(),n=`change`;t!==`global`&&(n+=`:`+t),e.editorListeners.push({event:n,to:elementor.channels.editor,callback(t,n){e.getUniqueHandlerID(n.model.cid,n.$el)===e.getUniqueHandlerID()&&e.onElementChange(t.model.get(`name`),t,n)}})}e.onEditSettingsChange&&e.editorListeners.push({event:`change:editSettings`,to:elementor.channels.editor,callback(t,n){if(n.model.cid!==e.getModelCID())return;let r=Object.keys(t.changed)[0];e.onEditSettingsChange(r,t.changed[r])}}),[`page`].forEach(function(t){var n=`on`+t[0].toUpperCase()+t.slice(1)+`SettingsChange`;e[n]&&e.editorListeners.push({event:`change`,to:elementor.settings[t].model,callback(t){e[n](t.changed)}})})},getEditorListeners(){return this.editorListeners||this.initEditorListeners(),this.editorListeners},addEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach(function(t){elementorFrontend.addListenerOnce(e,t.event,t.callback,t.to)})},removeEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach(function(t){elementorFrontend.removeListeners(e,t.event,null,t.to)})},getElementType(){return this.$element.data(`element_type`)},getWidgetType(){let e=this.$element.data(`widget_type`);if(e)return e.split(`.`)[0]},getID(){return this.$element.data(`id`)},getModelCID(){return this.$element.data(`model-cid`)},getElementSettings(e){let t={},n=this.getModelCID();if(this.isEdit&&n){let e=elementorFrontend.config.elements.data[n],r=e.attributes,i=r.widgetType||r.elType;r.isInner&&(i=`inner-`+i);let a=elementorFrontend.config.elements.keys[i];a||(a=elementorFrontend.config.elements.keys[i]=[],jQuery.each(e.controls,(e,t)=>{(t.frontend_available||t.editor_available)&&a.push(e)})),jQuery.each(e.getActiveControls(),function(e){if(a.indexOf(e)!==-1){let n=r[e];n.toJSON&&(n=n.toJSON()),t[e]=n}})}else t=this.$element.data(`settings`)||{};return this.getItems(t,e)},getEditSettings(e){var t={};return this.isEdit&&(t=elementorFrontend.config.elements.editSettings[this.getModelCID()].attributes),this.getItems(t,e)},getCurrentDeviceSetting(e){return elementorFrontend.getCurrentDeviceSetting(this.getElementSettings(),e)},onInit(){this.isActive(this.getSettings())&&elementorModules.ViewModule.prototype.onInit.apply(this,arguments)},onDestroy(){this.isEdit&&this.removeEditorListeners(),this.unbindEvents&&this.unbindEvents()}})})),Et=__commonJSMin((t=>{var n=e();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,G(),Z();var r=n(Q()),StretchedElement=class extends r.default{getStretchedClass(){return`e-stretched`}getStretchSettingName(){return`stretch_element`}getStretchActiveValue(){return`yes`}bindEvents(){let e=this.getUniqueHandlerID();elementorFrontend.addListenerOnce(e,`resize`,this.stretch),elementorFrontend.addListenerOnce(e,`sticky:stick`,this.stretch,this.$element),elementorFrontend.addListenerOnce(e,`sticky:unstick`,this.stretch,this.$element),elementorFrontend.isEditMode()&&(this.onKitChangeStretchContainerChange=this.onKitChangeStretchContainerChange.bind(this),elementor.channels.editor.on(`kit:change:stretchContainer`,this.onKitChangeStretchContainerChange))}unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID(),`resize`,this.stretch),elementorFrontend.isEditMode()&&elementor.channels.editor.off(`kit:change:stretchContainer`,this.onKitChangeStretchContainerChange)}isActive(e){return elementorFrontend.isEditMode()||e.$element.hasClass(this.getStretchedClass())}getStretchElementForConfig(e=null){return e?this.$element.find(e):this.$element}getStretchElementConfig(){return{element:this.getStretchElementForConfig(),selectors:{container:this.getStretchContainer()},considerScrollbar:elementorFrontend.isEditMode()&&elementorFrontend.config.is_rtl}}initStretch(){this.stretch=this.stretch.bind(this),this.stretchElement=new elementorModules.frontend.tools.StretchElement(this.getStretchElementConfig())}getStretchContainer(){return elementorFrontend.getKitSettings(`stretched_section_container`)||window}isStretchSettingEnabled(){return this.getElementSettings(this.getStretchSettingName())===this.getStretchActiveValue()}stretch(){this.isStretchSettingEnabled()&&this.stretchElement.stretch()}onInit(...e){this.isActive(this.getSettings())&&(this.initStretch(),super.onInit(...e),this.stretch())}
1761onElementChange(e){this.getStretchSettingName()===e&&(this.isStretchSettingEnabled()?this.stretch():this.stretchElement.reset())}onKitChangeStretchContainerChange(){this.stretchElement.setSettings(`selectors.container`,this.getStretchContainer()),this.stretch()}};t.default=StretchedElement})),Dt=__commonJSMin((t=>{var n=e();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Q()),SwiperHandlerBase=class extends r.default{getInitialSlide(){let e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0}getSlidesCount(){return this.elements.$slides.length}togglePauseOnHover(e){e?this.elements.$swiperContainer.on({mouseenter:()=>{this.swiper.autoplay.stop()},mouseleave:()=>{this.swiper.autoplay.start()}}):this.elements.$swiperContainer.off(`mouseenter mouseleave`)}handleKenBurns(){let e=this.getSettings();this.$activeImageBg&&this.$activeImageBg.removeClass(e.classes.kenBurnsActive),this.activeItemIndex=this.swiper?this.swiper.activeIndex:this.getInitialSlide(),this.swiper?this.$activeImageBg=jQuery(this.swiper.slides[this.activeItemIndex]).children(`.`+e.classes.slideBackground):this.$activeImageBg=jQuery(this.elements.$slides[0]).children(`.`+e.classes.slideBackground),this.$activeImageBg.addClass(e.classes.kenBurnsActive)}};t.default=SwiperHandlerBase}));function asyncGeneratorStep(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function _next(e){asyncGeneratorStep(a,r,i,_next,_throw,`next`,e)}function _throw(e){asyncGeneratorStep(a,r,i,_next,_throw,`throw`,e)}_next(void 0)})}}var Ot=__esmMin((()=>{})),kt=__commonJSMin((t=>{Ot();var n=e();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,G(),Z(),X();var r=n(Dt()),CarouselHandlerBase=class extends r.default{getDefaultSettings(){return{selectors:{carousel:`.swiper`,swiperWrapper:`.swiper-wrapper`,slideContent:`.swiper-slide`,swiperArrow:`.elementor-swiper-button`,paginationWrapper:`.swiper-pagination`,paginationBullet:`.swiper-pagination-bullet`,paginationBulletWrapper:`.swiper-pagination-bullets`}}}getDefaultElements(){let e=this.getSettings(`selectors`),t={$swiperContainer:this.$element.find(e.carousel),$swiperWrapper:this.$element.find(e.swiperWrapper),$swiperArrows:this.$element.find(e.swiperArrow),$paginationWrapper:this.$element.find(e.paginationWrapper),$paginationBullets:this.$element.find(e.paginationBullet),$paginationBulletWrapper:this.$element.find(e.paginationBulletWrapper)};return t.$slides=t.$swiperContainer.find(e.slideContent),t}getSwiperSettings(){let e=this.getElementSettings(),t=+e.slides_to_show||3,n=t===1,r=elementorFrontend.config.responsive.activeBreakpoints,i={mobile:1,tablet:n?1:2},a={slidesPerView:t,loop:e.infinite===`yes`,speed:e.speed,handleElementorBreakpoints:!0};a.breakpoints={};let o=t;Object.keys(r).reverse().forEach(t=>
1761{let n=i[t]?i[t]:o;a.breakpoints[r[t].value]={slidesPerView:+e[`slides_to_show_`+t]||n,slidesPerGroup:+e[`slides_to_scroll_`+t]||1},e.image_spacing_custom&&(a.breakpoints[r[t].value].spaceBetween=this.getSpaceBetween(t)),o=+e[`slides_to_show_`+t]||n}),e.autoplay===`yes`&&(a.autoplay={delay:e.autoplay_speed,disableOnInteraction:e.pause_on_interaction===`yes`}),n?(a.effect=e.effect,e.effect===`fade`&&(a.fadeEffect={crossFade:!0})):a.slidesPerGroup=+e.slides_to_scroll||1,e.image_spacing_custom&&(a.spaceBetween=this.getSpaceBetween());let s=e.navigation===`arrows`||e.navigation===`both`,c=e.navigation===`dots`||e.navigation===`both`||e.pagination;return s&&(a.navigation={prevEl:`.elementor-swiper-button-prev`,nextEl:`.elementor-swiper-button-next`}),c&&(a.pagination={el:`.elementor-element-${this.getID()} .swiper-pagination`,type:e.pagination?e.pagination:`bullets`,clickable:!0,renderBullet:(e,t)=>`<span class="${t}" role="button" tabindex="0" data-bullet-index="${e}" aria-label="${elementorFrontend.config.i18n.a11yCarouselPaginationBulletMessage} ${e+1}"></span>`}),e.lazyload===`yes`&&(a.lazy={loadPrevNext:!0,loadPrevNextAmount:1}),a.a11y={enabled:!0,prevSlideMessage:elementorFrontend.config.i18n.a11yCarouselPrevSlideMessage,nextSlideMessage:elementorFrontend.config.i18n.a11yCarouselNextSlideMessage,firstSlideMessage:elementorFrontend.config.i18n.a11yCarouselFirstSlideMessage,lastSlideMessage:elementorFrontend.config.i18n.a11yCarouselLastSlideMessage},a.on={slideChange:()=>{this.a11ySetPaginationTabindex(),this.handleElementHandlers(),this.a11ySetSlideAriaHidden()},init:()=>{this.a11ySetPaginationTabindex(),this.a11ySetSlideAriaHidden(`initialisation`)}},this.applyOffsetSettings(e,a,t),a}getOffsetWidth(){let e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),`offset_width`,`size`,e)||0}applyOffsetSettings(e,t,n){let r=e.offset_sides;if(!(elementorFrontend.isEditMode()&&this.constructor.name===`NestedCarousel`||!r||r===`none`))switch(r){case`right`:this.forceSliderToShowNextSlideWhenOnLast(t,n),this.addClassToSwiperContainer(`offset-right`);break;case`left`:this.addClassToSwiperContainer(`offset-left`);break;case`both`:this.forceSliderToShowNextSlideWhenOnLast(t,n),this.addClassToSwiperContainer(`offset-both`);break}}forceSliderToShowNextSlideWhenOnLast(e,t){e.slidesPerView=t+.001}addClassToSwiperContainer(e){this.getDefaultElements().$swiperContainer[0].classList.add(e)}onInit(...e){var _superprop_getOnInit=()=>super.onInit,t=this;return _asyncToGenerator(function*(){_superprop_getOnInit().call(t,...e),!(!t.elements.$swiperContainer.length||2>t.elements.$slides.length)&&(yield t.initSwiper(),t.getElementSettings().pause_on_hover===`yes`&&t.togglePauseOnHover(!0))})()}initSwiper(){var e=this;return _asyncToGenerator(function*(){let t=elementorFrontend.utils.swiper;e.swiper=yield new t(e.elements.$swiperContainer,e.getSwiperSettings()),e.elements.$swiperContainer.data(`swiper`,e.swiper)})()}bindEvents(){this.elements.$swiperArrows.on(`keydown`,this.onDirectionArrowKeydown.bind(this)),this.elements.$paginationWrapper.on(`keydown`,`.swiper-pagination-bullet`,this.onDirectionArrowKeydown.bind(this)),this.elements.$swiperContainer.on(`keydown`,`.swiper-slide`,this.onDirectionArrowKeydown.bind(this)),this.$element.find(`:focusable`).on(`focus`,this.onFocusDisableAutoplay.bind(this)),elementorFrontend.elements.$window.on(`resize`,this.getSwiperSettings.bind(this))}unbindEvents(){this.elements.$swiperArrows.off(),this.elements.$paginationWrapper.off(),this.elements.$swiperContainer.off(),this.$element.find(`:focusable`).off(),elementorFrontend.elements.$window.off(`resize`)}onDirectionArrowKeydown(e){let t=elementorFrontend.config.is_rtl,n=[`ArrowLeft`,`ArrowRight`],r=e.originalEvent.code,i=n.indexOf(r)!==-1,a=t?`ArrowRight`:`ArrowLeft`,o=t?`ArrowLeft`:`ArrowRight`;if(i)a===r?this.swiper.slidePrev():o===r&&this.swiper.slideNext();else return!0}onFocusDisableAutoplay(){this.swiper.autoplay.stop()}updateSwiperOption(e){let t=this.getElementSettings()[e],n=this.swiper.params;switch(e){case`autoplay_speed`:n.autoplay.delay=t;break;case`speed`:n.speed=t;break}
1761this.swiper.update()}getChangeableProperties(){return{pause_on_hover:`pauseOnHover`,autoplay_speed:`delay`,speed:`speed`,arrows_position:`arrows_position`}}onElementChange(e){if(e.indexOf(`image_spacing_custom`)===0){this.updateSpaceBetween(e);return}if(this.getChangeableProperties()[e])if(e===`pause_on_hover`){let e=this.getElementSettings(`pause_on_hover`);this.togglePauseOnHover(e===`yes`)}else this.updateSwiperOption(e)}onEditSettingsChange(e){e===`activeItemIndex`&&this.swiper.slideToLoop(this.getEditSettings(`activeItemIndex`)-1)}getSpaceBetween(e=null){let t=elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),`image_spacing_custom`,`size`,e);return Number(t)||0}updateSpaceBetween(e){let t=e.match(`image_spacing_custom_(.*)`),n=t?t[1]:`desktop`,r=this.getSpaceBetween(n);n!==`desktop`&&(this.swiper.params.breakpoints[elementorFrontend.config.responsive.activeBreakpoints[n].value].spaceBetween=r),this.swiper.params.spaceBetween=r,this.swiper.update()}getPaginationBullets(e=`array`){let t=this.$element.find(this.getSettings(`selectors`).paginationBullet);return e===`array`?Array.from(t):t}a11ySetPaginationTabindex(){var e,t,n,r,i;let a=(e=this.swiper)==null||(e=e.params)==null?void 0:e.pagination.bulletClass,o=(t=this.swiper)==null||(t=t.params)==null?void 0:t.pagination.bulletActiveClass;this.getPaginationBullets().forEach(e=>{var t;(t=e.classList)!=null&&t.contains(o)||e.removeAttribute(`tabindex`)});let s=((n=event)==null?void 0:n.code)===`ArrowLeft`||((r=event)==null?void 0:r.code)===`ArrowRight`;(i=event)!=null&&(i=i.target)!=null&&(i=i.classList)!=null&&i.contains(a)&&s&&this.$element.find(`.${o}`).trigger(`focus`)}getSwiperWrapperTranformXValue(){var e;let t=(e=this.elements.$swiperWrapper[0])==null?void 0:e.style.transform;return t=t.replace(`translate3d(`,``),t=t.split(`,`),t=parseInt(t[0].replace(`px`,``)),t||0}a11ySetSlideAriaHidden(e=``){var t;if(typeof(e===`initialisation`?0:(t=this.swiper)==null?void 0:t.activeIndex)!=`number`)return;let n=this.getSwiperWrapperTranformXValue(),r=this.elements.$swiperWrapper[0].clientWidth;this.elements.$swiperContainer.find(this.getSettings(`selectors`).slideContent).each((e,t)=>{0<=t.offsetLeft+n&&r>t.offsetLeft+n?(t.removeAttribute(`aria-hidden`),t.removeAttribute(`inert`)):(t.setAttribute(`aria-hidden`,!0),t.setAttribute(`inert`,``))})}handleElementHandlers(){}};
1761t.default=CarouselHandlerBase})),$=e(),At=$(St()),jt=$(wt()),Mt=$(Tt()),Nt=$(Et()),Pt=$(Q()),Ft=$(Dt()),It=$(kt());At.default.frontend={Document:jt.default,tools:{StretchElement:Mt.default},handlers:{Base:Pt.default,StretchedElement:Nt.default,SwiperBase:Ft.default,CarouselBase:It.default}}})();
1762;var EAELImageMaskingConfig={"svg_dir_url":"https://www.cm-benavente.pt/wp-content/plugins/essential-addons-for-elementor-lite/assets/front-end/img/image-masking/svg-shapes/"}
1763;var elementorFrontendConfig={"environmentMode":{"edit":!1,"wpPreview":!1,"isScriptDebug":!1},"i18n":{"shareOnFacebook":"Partilhar no Facebook","shareOnX":"Share on X","pinIt":"Fix\u00e1-lo","download":"Download","downloadImage":"Descarregar Imagem","fullscreen":"\u00c9cr\u00e3 Inteiro","zoom":"Zoom","share":"Partilhar","playVideo":"Reproduzir v\u00eddeo","previous":"Anterior","next":"Seguinte","close":"Fechar","a11yCarouselPrevSlideMessage":"Previous slide","a11yCarouselNextSlideMessage":"Next slide","a11yCarouselFirstSlideMessage":"This is the first slide","a11yCarouselLastSlideMessage":"This is the last slide","a11yCarouselPaginationBulletMessage":"Go to slide"},"is_rtl":!1,"breakpoints":{"xs":0,"sm":480,"md":768,"lg":1025,"xl":1440,"xxl":1600},"responsive":{"breakpoints":{"mobile":{"label":"Mobile ao alto","value":767,"default_value":767,"direction":"max","is_enabled":!0},"mobile_extra":{"label":"Mobile ao baixo","value":880,"default_value":880,"direction":"max","is_enabled":!0},"tablet":{"label":"Tablet Portrait","value":1024,"default_value":1024,"direction":"max","is_enabled":!0},"tablet_extra":{"label":"Tablet Landscape","value":1200,"default_value":1200,"direction":"max","is_enabled":!0},"laptop":{"label":"Port\u00e1til","value":1366,"default_value":1366,"direction":"max","is_enabled":!0},"widescreen":{"label":"Widescreen","value":2400,"default_value":2400,"direction":"min","is_enabled":!0}},"hasCustomBreakpoints":!0},"version":"4.3.1","is_static":!1,"experimentalFeatures":{"additional_custom_breakpoints":!0,"container":!0,"theme_builder_v2":!0,"nested-elements":!0,"import-export-customization":!0,"e_pro_atomic_form":!0,"e_pro_collection_loop":!0},"urls":{"assets":"https:\/\/www.cm-benavente.pt\/wp-content\/plugins\/elementor\/assets\/","ajaxurl":"https:\/\/www.cm-benavente.pt\/wp-admin\/admin-ajax.php","uploadUrl":"https:\/\/www.cm-benavente.pt\/wp-content\/uploads"},"nonces":{"floatingButtonsClickTracking":"4625c1bc71","atomicFormsSendForm":"ec43f7a4a3"},"swiperClass":"swiper","settings":{"page":[],"editorPreferences":[]},"kit":{"active_breakpoints":["viewport_mobile","viewport_mobile_extra","viewport_tablet","viewport_tablet_extra","viewport_laptop","viewport_widescreen"],"global_image_lightbox":"yes","lightbox_enable_counter":"yes","lightbox_enable_fullscreen":"yes","lightbox_enable_zoom":"yes","lightbox_enable_share":"yes","lightbox_title_src":"title","lightbox_description_src":"description"},"post":{"id":3748,"title":"C%C3%A2mara%20Municipal%20de%20Benavente","excerpt":"","featuredImage":"https:\/\/www.cm-benavente.pt\/wp-content\/uploads\/2023\/04\/Rio-Sorraia-em-leito-de-cheia-1024x681.jpg"}}
1764;"use strict";(function(){var __esmMin=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},__commonJSMin=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),e=__commonJSMin(((e,t)=>{function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.exports=_interopRequireDefault,t.exports.__esModule=!0,t.exports.default=t.exports})),t=__commonJSMin(((e,t)=>{var check=function(e){return e&&e.Math===Math&&e};t.exports=check(typeof globalThis==`object`&&globalThis)||check(typeof window==`object`&&window)||check(typeof self==`object`&&self)||check(typeof global==`object`&&global)||check(typeof e==`object`&&e)||(function(){return this})()||Function(`return this`)()})),n=__commonJSMin(((e,t)=>{t.exports=function(e){try{return!!e()}catch(e){return!0}}})),r=__commonJSMin(((e,t)=>{t.exports=!n()(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})})),i=__commonJSMin(((e,t)=>{t.exports=!n()(function(){var e=(function(){}).bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})})),a=__commonJSMin(((e,t)=>{var n=i(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}})),o=__commonJSMin((e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;e.f=n&&!t.call({1:2},1)?function propertyIsEnumerable(e){var t=n(this,e);return!!t&&t.enumerable}:t})),s=__commonJSMin(((e,t)=>{t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}})),c=__commonJSMin(((e,t)=>{var n=i(),r=Function.prototype,a=r.call,o=n&&r.bind.bind(a,a);t.exports=n?o:function(e){return function(){return a.apply(e,arguments)}}})),l=__commonJSMin(((e,t)=>{var n=c(),r=n({}.toString),i=n(``.slice);t.exports=function(e){return i(r(e),8,-1)}})),u=__commonJSMin(((e,t)=>{var r=c(),i=n(),a=l(),o=Object,s=r(``.split);t.exports=i(function(){return!o(`z`).propertyIsEnumerable(0)})?function(e){return a(e)===`String`?s(e,``):o(e)}:o})),d=__commonJSMin(((e,t)=>{t.exports=function(e){return e==null}}
vendor: 17,428 bytes, line 1764
1764)),f=__commonJSMin(((e,t)=>{var n=d(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`Can't call method on `+e);return e}})),p=__commonJSMin(((e,t)=>{var n=u(),r=f();t.exports=function(e){return n(r(e))}})),m=__commonJSMin(((e,t)=>{var n=typeof document==`object`&&document.all;t.exports=n===void 0&&n!==void 0?function(e){return typeof e==`function`||e===n}:function(e){return typeof e==`function`}})),h=__commonJSMin(((e,t)=>{var n=m();t.exports=function(e){return typeof e==`object`?e!==null:n(e)}})),g=__commonJSMin(((e,n)=>{var r=t(),i=m(),aFunction=function(e){return i(e)?e:void 0};n.exports=function(e,t){return arguments.length<2?aFunction(r[e]):r[e]&&r[e][t]}})),_=__commonJSMin(((e,t)=>{t.exports=c()({}.isPrototypeOf)})),v=__commonJSMin(((e,n)=>{var r=t().navigator,i=r&&r.userAgent;n.exports=i?String(i):``})),y=__commonJSMin(((e,n)=>{var r=t(),i=v(),a=r.process,o=r.Deno,s=a&&a.versions||o&&o.version,c=s&&s.v8,l,u;c&&(l=c.split(`.`),u=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!u&&i&&(l=i.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=i.match(/Chrome\/(\d+)/),l&&(u=+l[1]))),n.exports=u})),b=__commonJSMin(((e,r)=>{var i=y(),a=n(),o=t().String;r.exports=!!Object.getOwnPropertySymbols&&!a(function(){var e=Symbol(`symbol detection`);return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41})})),x=__commonJSMin(((e,t)=>{t.exports=b()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})),S=__commonJSMin(((e,t)=>{var n=g(),r=m(),i=_(),a=x(),o=Object;t.exports=a?function(e){return typeof e==`symbol`}:function(e){var t=n(`Symbol`);return r(t)&&i(t.prototype,o(e))}})),C=__commonJSMin(((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch(e){return`Object`}}})),w=__commonJSMin(((e,t)=>{var n=m(),r=C(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a function`)}})),T=__commonJSMin(((e,t)=>{var n=w(),r=d();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}})),E=__commonJSMin(((e,t)=>{var n=a(),r=m(),i=h(),o=TypeError;t.exports=function(e,t){var a,s;if(t===`string`&&r(a=e.toString)&&!i(s=n(a,e))||r(a=e.valueOf)&&!i(s=n(a,e))||t!==`string`&&r(a=e.toString)&&!i(s=n(a,e)))return s;throw new o(`Can't convert object to primitive value`)}})),D=__commonJSMin(((e,t)=>{t.exports=!1})),O=__commonJSMin(((e,n)=>{var r=t(),i=Object.defineProperty;n.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}})),k=__commonJSMin(((e,n)=>{var r=D(),i=t(),a=O(),o=`__core-js_shared__`,s=n.exports=i[o]||a(o,{});(s.versions||(s.versions=[])).push({version:`3.46.0`,mode:r?`pure`:`global`,copyright:`© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)`,license:`https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE`,source:`https://github.com/zloirock/core-js`})})),A=__commonJSMin(((e,t)=>{var n=k();t.exports=function(e,t){return n[e]||(n[e]=t||{})}})),j=__commonJSMin(((e,t)=>{var n=f(),r=Object;t.exports=function(e){return r(n(e))}})),M=__commonJSMin(((e,t)=>{var n=c(),r=j(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(e,t){return i(r(e),t)}})),N=__commonJSMin(((e,t)=>{var n=c(),r=0,i=Math.random(),a=n(1.1.toString);t.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+a(++r+i,36)}})),P=__commonJSMin(((e,n)=>{var r=t(),i=A(),a=M(),o=N(),s=b(),c=x(),l=r.Symbol,u=i(`wks`),d=c?l.for||l:l&&l.withoutSetter||o;n.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:d(`Symbol.`+e)),u[e]}})),ee=__commonJSMin(((e,t)=>{var n=a(),r=h(),i=S(),o=T(),s=E(),c=P(),l=TypeError,u=c(`toPrimitive`);t.exports=function(e,t){if(!r(e)||i(e))return e;var a=o(e,u),c;if(a){if(t===void 0&&(t=`default`),c=n(a,e,t),!r(c)||i(c))return c;throw new l(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),s(e,t)}})),te=__commonJSMin(((e,t)=>{var n=ee(),r=S();t.exports=function(e){var t=n(e,`string`);return r(t)?t:t+``}})),ne=__commonJSMin(((e,n)=>{var r=t(),i=h(),a=r.document,o=i(a)&&i(a.createElement);n.exports=function(e){return o?a.createElement(e):{}}})),re=__commonJSMin(((e,t)=>{var i=r(),a=n(),o=ne();t.exports=!i&&!a(function(){return Object.defineProperty(o(`div`),"a",{get:function(){return 7}}).a!==7})})),ie=__commonJSMin((e=>{var t=r(),n=a(),i=o(),c=s(),l=p(),u=te(),d=M(),f=re(),m=Object.getOwnPropertyDescriptor;e.f=t?m:function getOwnPropertyDescriptor(e,t){if(e=l(e),t=u(t),f)try{return m(e,t)}catch(e){}if(d(e,t))return c(!n(i.f,e,t),e[t])}})),ae=__commonJSMin(((e,t)=>{var i=r(),a=n();t.exports=i&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})})),I=__commonJSMin(((e,t)=>{var n=h(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not an object`)}})),L=__commonJSMin((e=>{var t=r(),n=re(),i=ae(),a=I(),o=te(),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=`enumerable`,d=`configurable`,f=`writable`;e.f=t?i?function defineProperty(e,t,n){if(a(e),t=o(t),a(n),typeof e==`function`&&t===`prototype`&&`value`in n&&f in n&&!n[f]){var r=l(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:u in n?n[u]:r[u],writable:!1})}return c(e,t,n)}:c:function defineProperty(e,t,r){if(a(e),t=o(t),a(r),n)try{return c(e,t,r)}catch(e){}if(`get`in r||`set`in r)throw new s(`Accessors not supported`);return`value`in r&&(e[t]=r.value),e}})),R=__commonJSMin(((e,t)=>{var n=r(),i=L(),a=s();t.exports=n?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}})),oe=__commonJSMin(((e,t)=>{var n=r(),i=M(),a=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=i(a,`name`);t.exports={EXISTS:s,PROPER:s&&(function something(){}).name===`something`,CONFIGURABLE:s&&(!n||n&&o(a,`name`).configurable)}})),se=__commonJSMin(((e,t)=>{var n=c(),r=m(),i=k(),a=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),t.exports=i.inspectSource})),ce=__commonJSMin(((e,n)=>{var r=t(),i=m(),a=r.WeakMap;n.exports=i(a)&&/native code/.test(String(a))})),z=__commonJSMin(((e,t)=>{var n=A(),r=N(),i=n(`keys`);t.exports=function(e){return i[e]||(i[e]=r(e))}})),B=__commonJSMin(((e,t)=>{t.exports={}})),le=__commonJSMin(((e,n)=>{var r=ce(),i=t(),a=h(),o=R(),s=M(),c=k(),l=z(),u=B(),d=`Object already initialized`,f=i.TypeError,p=i.WeakMap,set,get,has,enforce=function(e){return has(e)?get(e):set(e,{})},getterFor=function(e){return function(t){var n;if(!a(t)||(n=get(t)).type!==e)throw new f(`Incompatible receiver, `+e+` required`);return n}};if(r||c.state){var m=c.state||(c.state=new p);m.get=m.get,m.has=m.has,m.set=m.set,set=function(e,t){if(m.has(e))throw new f(d);return t.facade=e,m.set(e,t),t},get=function(e){return m.get(e)||{}},has=function(e){return m.has(e)}}else{var g=l(`state`);u[g]=!0,set=function(e,t){if(s(e,g))throw new f(d);return t.facade=e,o(e,g,t),t},get=function(e){return s(e,g)?e[g]:{}},has=function(e){return s(e,g)}}n.exports={set,get,has,enforce,getterFor}})),ue=__commonJSMin(((e,t)=>{var i=c(),a=n(),o=m(),s=M(),l=r(),u=oe().CONFIGURABLE,d=se(),f=le(),p=f.enforce,h=f.get,g=String,_=Object.defineProperty,v=i(``.slice),y=i(``.replace),b=i([].join),x=l&&!a(function(){return _(function(){},`length`,{value:8}).length!==8}),S=String(String).split(`String`),C=t.exports=function(e,t,n){v(g(t),0,7)===`Symbol(`&&(t=`[`+y(g(t),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!s(e,`name`)||u&&e.name!==t)&&(l?_(e,`name`,{value:t,configurable:!0}):e.name=t),x&&n&&s(n,`arity`)&&e.length!==n.arity&&_(e,`length`,{value:n.arity});try{n&&s(n,`constructor`)&&n.constructor?l&&_(e,`prototype`,{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=p(e);return s(r,`source`)||(r.source=b(S,typeof t==`string`?t:``)),e};Function.prototype.toString=C(function toString(){return o(this)&&h(this).source||d(this)},`toString`)})),V=__commonJSMin(((e,t)=>{var n=m(),r=L(),i=ue(),a=O();t.exports=function(e,t,o,s){s||(s={});var c=s.enumerable,l=s.name===void 0?t:s.name;if(n(o)&&i(o,l,s),s.global)c?e[t]=o:a(t,o);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=o:r.f(e,t,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}})),de=__commonJSMin(((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function trunc(e){var t=+e;return(t>0?r:n)(t)}})),fe=__commonJSMin(((e,t)=>{var n=de();t.exports=function(e){var t=+e;return t!==t||t===0?0:n(t)}})),pe=__commonJSMin(((e,t)=>{var n=fe(),r=Math.max,i=Math.min;t.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):i(a,t)}})),me=__commonJSMin(((e,t)=>{var n=fe(),r=Math.min;t.exports=function(e){var t=n(e);return t>0?r(t,9007199254740991):0}})),H=__commonJSMin(((e,t)=>{var n=me();t.exports=function(e){return n(e.length)}})),he=__commonJSMin(((e,t)=>{var n=p(),r=pe(),i=H(),createMethod=function(e){return function(t,a,o){var s=n(t),c=i(s);if(c===0)return!e&&-1;var l=r(o,c),u;if(e&&a!==a){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===a)return e||l||0;return!e&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}})),ge=__commonJSMin(((e,t)=>{var n=c(),r=M(),i=p(),a=he().indexOf,o=B(),s=n([].push);t.exports=function(e,t){var n=i(e),c=0,l=[],u;for(u in n)!r(o,u)&&r(n,u)&&s(l,u);for(;t.length>c;)r(n,u=t[c++])&&(~a(l,u)||s(l,u));return l}})),U=__commonJSMin(((e,t)=>{t.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]})),_e=__commonJSMin((e=>{var t=ge(),n=U().concat(`length`,`prototype`);e.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return t(e,n)}})),ve=__commonJSMin((e=>{e.f=Object.getOwnPropertySymbols})),ye=__commonJSMin(((e,t)=>{var n=g(),r=c(),i=_e(),a=ve(),o=I(),s=r([].concat);t.exports=n(`Reflect`,`ownKeys`)||function ownKeys(e){var t=i.f(o(e)),n=a.f;return n?s(t,n(e)):t}})),be=__commonJSMin(((e,t)=>{var n=M(),r=ye(),i=ie(),a=L();t.exports=function(e,t,o){for(var s=r(t),c=a.f,l=i.f,u=0;u<s.length;u++){var d=s[u];!n(e,d)&&!(o&&n(o,d))&&c(e,d,l(t,d))}}})),xe=__commonJSMin(((e,t)=>{var r=n(),i=m(),a=/#|\.prototype\./,isForced=function(e,t){var n=s[o(e)];return n===l?!0:n===c?!1:i(t)?r(t):!!t},o=isForced.normalize=function(e){return String(e).replace(a,`.`).toLowerCase()},s=isForced.data={},c=isForced.NATIVE=`N`,l=isForced.POLYFILL=`P`;t.exports=isForced})),W=__commonJSMin(((e,n)=>{var r=t(),i=ie().f,a=R(),o=V(),s=O(),c=be(),l=xe();n.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):r[n]&&r[n].prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.dontCallGetSet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}})),Se=__commonJSMin(((e,t)=>{var n=_(),r=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new r(`Incorrect invocation`)}})),Ce=__commonJSMin(((e,t)=>{t.exports=!n()(function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})})),we=__commonJSMin(((e,t)=>{var n=M(),r=m(),i=j(),a=z(),o=Ce(),s=a(`IE_PROTO`),c=Object,l=c.prototype;t.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var a=t.constructor;return r(a)&&t instanceof a?a.prototype:t instanceof c?l:null}})),Te=__commonJSMin(((e,t)=>{var n=ue(),r=L();t.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}})),Ee=__commonJSMin(((e,t)=>{var n=r(),i=L(),a=s();t.exports=function(e,t,r){n?i.f(e,t,a(0,r)):e[t]=r}})),De=__commonJSMin(((e,t)=>{var n=ge(),r=U();t.exports=Object.keys||function keys(e){return n(e,r)}})),Oe=__commonJSMin((e=>{var t=r(),n=ae(),i=L(),a=I(),o=p(),s=De();e.f=t&&!n?Object.defineProperties:function defineProperties(e,t){a(e);for(var n=o(t),r=s(t),c=r.length,l=0,u;c>l;)i.f(e,u=r[l++],n[u]);return e}})),ke=__commonJSMin(((e,t)=>{t.exports=g()(`document`,`documentElement`)})),Ae=__commonJSMin(((e,t)=>{var n=I(),r=Oe(),i=U(),a=B(),o=ke(),s=ne(),c=z(),l=`>`,u=`<`,d=`prototype`,f=`script`,p=c(`IE_PROTO`),EmptyConstructor=function(){},scriptTag=function(e){return u+f+l+e+u+`/`+f+l},NullProtoObjectViaActiveX=function(e){e.write(scriptTag(``)),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=s(`iframe`),t=`java`+f+`:`,n;return e.style.display=`none`,o.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(scriptTag(`document.F=Object`)),n.close(),n.F},m,NullProtoObject=function(){try{m=new ActiveXObject(`htmlfile`)}catch(e){}NullProtoObject=typeof document<`u`?document.domain&&m?NullProtoObjectViaActiveX(m):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(m);for(var e=i.length;e--;)delete NullProtoObject[d][i[e]];return NullProtoObject()};a[p]=!0,t.exports=Object.create||function create(e,t){var i;return e===null?i=NullProtoObject():(EmptyConstructor[d]=n(e),i=new EmptyConstructor,EmptyConstructor[d]=null,i[p]=e),t===void 0?i:r.f(i,t)}})),je=__commonJSMin(((e,t)=>{var r=n(),i=m(),a=h(),o=Ae(),s=we(),c=V(),l=P(),u=D(),d=l(`iterator`),f=!1,p,g,_;[].keys&&(_=[].keys(),`next`in _?(g=s(s(_)),g!==Object.prototype&&(p=g)):f=!0),!a(p)||r(function(){var e={};return p[d].call(e)!==e})?p={}:u&&(p=o(p)),i(p[d])||c(p,d,function(){return this}),t.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:f}})),Me=__commonJSMin((()=>{var e=W(),i=t(),a=Se(),o=I(),s=m(),c=we(),l=Te(),u=Ee(),d=n(),f=M(),p=P(),h=je().IteratorPrototype,g=r(),_=D(),v=`constructor`,y=`Iterator`,b=p(`toStringTag`),x=TypeError,S=i[y],C=_||!s(S)||S.prototype!==h||!d(function(){S({})}),w=function Iterator(){if(a(this,h),c(this)===h)throw new x(`Abstract class Iterator not directly constructable`)},defineIteratorPrototypeAccessor=function(e,t){g?l(h,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===h)throw new x(`You can't redefine this property`);f(this,e)?this[e]=t:u(this,e,t)}}):h[e]=t};f(h,b)||defineIteratorPrototypeAccessor(b,y),(C||!f(h,v)||h[v]===Object)&&defineIteratorPrototypeAccessor(v,w),w.prototype=h,e({global:!0,constructor:!0,forced:C},{Iterator:w})})),G=__commonJSMin((()=>{Me()})),Ne=__commonJSMin(((e,t)=>{var n=l(),r=c();t.exports=function(e){if(n(e)===`Function`)return r(e)}})),Pe=__commonJSMin(((e,t)=>{var n=Ne(),r=w(),a=i(),o=n(n.bind);t.exports=function(e,t){return r(e),t===void 0?e:a?o(e,t):function(){return e.apply(t,arguments)}}})),K=__commonJSMin(((e,t)=>{t.exports={}})),Fe=__commonJSMin(((e,t)=>{var n=P(),r=K(),i=n(`iterator`),a=Array.prototype;t.exports=function(e){return e!==void 0&&(r.Array===e||a[i]===e)}})),Ie=__commonJSMin(((e,t)=>{var n=P()(`toStringTag`),r={};r[n]=`z`,t.exports=String(r)===`[object z]`})),Le=__commonJSMin(((e,t)=>{var n=Ie(),r=m(),i=l(),a=P()(`toStringTag`),o=Object,s=i(function(){return arguments}())===`Arguments`,tryGet=function(e,t){try{return e[t]}catch(e){}};t.exports=n?i:function(e){var t,n,c;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=tryGet(t=o(e),a))==`string`?n:s?i(t):(c=i(t))===`Object`&&r(t.callee)?`Arguments`:c}})),Re=__commonJSMin(((e,t)=>{var n=Le(),r=T(),i=d(),a=K(),o=P()(`iterator`);t.exports=function(e){if(!i(e))return r(e,o)||r(e,`@@iterator`)||a[n(e)]}})),ze=__commonJSMin(((e,t)=>{var n=a(),r=w(),i=I(),o=C(),s=Re(),c=TypeError;t.exports=function(e,t){var a=arguments.length<2?s(e):t;if(r(a))return i(n(a,e));throw new c(o(e)+` is not iterable`)}})),q=__commonJSMin(((e,t)=>{var n=a(),r=I(),i=T();t.exports=function(e,t,a){var o,s;r(e);try{if(o=i(e,`return`),!o){if(t===`throw`)throw a;return a}o=n(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw a;if(s)throw o;return r(o),a}})),Be=__commonJSMin(((e,t)=>{var n=Pe(),r=a(),i=I(),o=C(),s=Fe(),c=H(),l=_(),u=ze(),d=Re(),f=q(),p=TypeError,Result=function(e,t){this.stopped=e,this.result=t},m=Result.prototype;t.exports=function(e,t,a){var h=a&&a.that,g=!!(a&&a.AS_ENTRIES),_=!!(a&&a.IS_RECORD),v=!!(a&&a.IS_ITERATOR),y=!!(a&&a.INTERRUPTED),b=n(t,h),x,S,C,w,T,E,D,stop=function(e){return x&&f(x,`normal`),new Result(!0,e)},callFn=function(e){return g?(i(e),y?b(e[0],e[1],stop):b(e[0],e[1])):y?b(e,stop):b(e)};if(_)x=e.iterator;else if(v)x=e;else{if(S=d(e),!S)throw new p(o(e)+` is not iterable`);if(s(S)){for(C=0,w=c(e);w>C;C++)if(T=callFn(e[C]),T&&l(m,T))return T;return new Result(!1)}x=u(e,S)}for(E=_?e.next:x.next;!(D=r(E,x)).done;){try{T=callFn(D.value)}catch(e){f(x,`throw`,e)}if(typeof T==`object`&&T&&l(m,T))return T}return new Result(!1)}})),J=__commonJSMin(((e,t)=>{t.exports=function(e){return{iterator:e,next:e.next,done:!1}}})),Y=__commonJSMin(((e,n)=>{var r=t();n.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,a=i&&i[e],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return a}})),Ve=__commonJSMin((()=>{var e=W(),t=a(),n=Be(),r=w(),i=I(),o=J(),s=q(),c=Y()(`find`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:c},{find:function find(e){i(this);try{r(e)}catch(e){s(this,`throw`,e)}if(c)return t(c,this,e);var a=o(this),l=0;return n(a,function(t,n){if(e(t,l++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})})),X=__commonJSMin((()=>{Ve()})),He=__commonJSMin((()=>{var e=W(),t=a(),n=Be(),r=w(),i=I(),o=J(),s=q(),c=Y()(`forEach`,TypeError);e({target:`Iterator`,proto:!0,real:!0,forced:c},{forEach:function forEach(e){i(this);try{r(e)}catch(e){s(this,`throw`,e)}if(c)return t(c,this,e);var a=o(this),l=0;n(a,function(t){e(t,l++)},{IS_RECORD:!0})}})})),Z=__commonJSMin((()=>{He()}
1764)),Ue=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),We=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.loadChunk=loadChunk;function chunkUrl(e){var t;let n=window.elementorFrontendConfig||{},r=((t=n.urls)==null?void 0:t.assets)||``,i=n.version?`?ver=`+encodeURIComponent(n.version):``;return r+`js/chunks/`+e+`.min.js`+i}var t=window.__elementorChunks=window.__elementorChunks||{},n=new Map;function appendChunkScript(e){return new Promise((n,r)=>{let i=document.createElement(`script`);i.src=chunkUrl(e),i.async=!0,i.onload=()=>{t[e]?n(t[e]):r(Error(`[elementor] chunk "${e}" loaded but did not register`))},i.onerror=()=>r(Error(`[elementor] failed to load chunk "${e}" from ${i.src}`)),document.head.appendChild(i)})}function loadChunk(e){return t[e]?Promise.resolve(t[e]):(n.has(e)||n.set(e,appendChunkScript(e)),n.get(e))}window.__elementorLoadChunk=loadChunk})),Ge=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,G(),X();var _default=class extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{elements:`.elementor-element`,nestedDocumentElements:`.elementor .elementor-element`},classes:{editMode:`elementor-edit-mode`}}}getDefaultElements(){let e=this.getSettings(`selectors`);return{$elements:this.$element.find(e.elements).not(this.$element.find(e.nestedDocumentElements))}}getDocumentSettings(e){let t;if(this.isEdit){t={};let e=elementor.settings.page.model;jQuery.each(e.getActiveControls(),n=>{t[n]=e.attributes[n]})}else t=this.$element.data(`elementor-settings`)||{};return this.getItems(t,e)}runElementsHandlers(){this.elements.$elements.each((e,t)=>setTimeout(()=>elementorFrontend.elementsHandler.runReadyTrigger(t)))}onInit(){this.$element=this.getSettings(`$element`),super.onInit(),this.isEdit=this.$element.hasClass(this.getSettings(`classes.editMode`)),this.isEdit?elementor.on(`document:loaded`,()=>{elementor.settings.page.model.on(`change`,this.onSettingsChange.bind(this))}):this.runElementsHandlers()}onSettingsChange(){}};e.default=_default})),Ke=__commonJSMin((t=>{var n=e();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Ge()),_default=class extends elementorModules.ViewModule{constructor(...e){super(...e),this.documents={},this.initDocumentClasses(),this.attachDocumentsClasses()}getDefaultSettings(){return{selectors:{document:`.elementor`}}}getDefaultElements(){let e=this.getSettings(`selectors`);return{$documents:jQuery(e.document)}}initDocumentClasses(){this.documentClasses={base:r.default},elementorFrontend.hooks.doAction(`elementor/frontend/documents-manager/init-classes`,this)}addDocumentClass(e,t){this.documentClasses[e]=t}attachDocumentsClasses(){this.elements.$documents.each((e,t)=>this.attachDocumentClass(jQuery(t)))}attachDocumentClass(e){let t=e.data(),n=t.elementorId,r=t.elementorType,i=this.documentClasses[r]||this.documentClasses.base;this.documents[n]=new i({$element:e,id:n})}};t.default=_default})),qe=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,G(),Z();var _default=class extends elementorModules.Module{get(e,t){t=t||{};let n;try{n=t.session?sessionStorage:localStorage}catch(t){return e?void 0:{}}let r=n.getItem(`elementor`);r=r?JSON.parse(r):{},r.__expiration||(r.__expiration={});let i=r.__expiration,a=[];e?i[e]&&(a=[e]):a=Object.keys(i);let o=!1;return a.forEach(e=>{new Date(i[e])<new Date&&(delete r[e],delete i[e],o=!0)}),o&&this.save(r,t.session),e?r[e]:r}set(e,t,n){n=n||{};let r=this.get(null,n);if(r[e]=t,n.lifetimeInSeconds){let t=new Date;t.setTime(t.getTime()+n.lifetimeInSeconds*1e3),r.__expiration[e]=t.getTime()}this.save(r,n.session)}save(e,t){let n;try{n=t?sessionStorage:localStorage}catch(e){return}n.setItem(`elementor`,JSON.stringify(e))}};e.default=_default})),Je=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var matchUserAgent=e=>t.indexOf(e)>=0,t=navigator.userAgent,n=!!window.opr&&!!opr.addons||!!window.opera||matchUserAgent(` OPR/`),r=matchUserAgent(`Firefox`),i=/^((?!chrome|android).)*safari/i.test(t)||/constructor/i.test(window.HTMLElement)||(e=>e.toString()===`[object SafariRemoteNotification]`)(!window.safari||typeof safari<`u`&&safari.pushNotification),a=/Trident|MSIE/.test(t)&&!!document.documentMode,o=!a&&!!window.StyleMedia||matchUserAgent(`Edg`),s=!!window.chrome&&matchUserAgent(`Chrome`)&&!(o||n),c=matchUserAgent(`Chrome`)&&!!window.CSS,l=matchUserAgent(`AppleWebKit`)&&!c;e.default={isTouchDevice:`ontouchstart`in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>
17640,appleWebkit:l,blink:c,chrome:s,edge:o,firefox:r,ie:a,mac:matchUserAgent(`Macintosh`),opera:n,safari:i,webkit:matchUserAgent(`AppleWebKit`)}})),Q=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var BaseLoader=class extends elementorModules.ViewModule{getDefaultSettings(){return{isInserted:!1,selectors:{firstScript:`script:first`}}}getDefaultElements(){return{$firstScript:jQuery(this.getSettings(`selectors.firstScript`))}}insertAPI(){this.elements.$firstScript.before(jQuery(`<script>`,{src:this.getApiURL()})),this.setSettings(`isInserted`,!0)}getVideoIDFromURL(e){let t=e.match(this.getURLRegex());return t&&t[1]}onApiReady(e){this.getSettings(`isInserted`)||this.insertAPI(),this.isApiLoaded()?e(this.getApiObject()):setTimeout(()=>{this.onApiReady(e)},350)}getAutoplayURL(e){return e.replace(`&autoplay=0`,``)+`&autoplay=1`}};e.default=BaseLoader})),Ye=__commonJSMin((t=>{var n=e();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Q()),YoutubeLoader=class extends r.default{getApiURL(){return`https://www.youtube.com/iframe_api`}getURLRegex(){return/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?vi?=|(?:embed|v|vi|user|shorts)\/))([^?&"'>]+)/}isApiLoaded(){return window.YT&&YT.loaded}getApiObject(){return YT}};t.default=YoutubeLoader})),Xe=__commonJSMin((t=>{var n=e();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Q()),VimeoLoader=class extends r.default{getApiURL(){return`https://player.vimeo.com/api/player.js`}getURLRegex(){return/^(?:https?:\/\/)?(?:www|player\.)?(?:vimeo\.com\/)?(?:video\/|external\/)?(\d+)([^.?&#"'>]?)/}isApiLoaded(){return window.Vimeo}getApiObject(){return Vimeo}getAutoplayURL(e){let t=e.match(/#t=[^&]*/);return e.replace(t[0],``)+t}};t.default=VimeoLoader}));function asyncGeneratorStep(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function _next(e){asyncGeneratorStep(a,r,i,_next,_throw,`next`,e)}function _throw(e){asyncGeneratorStep(a,r,i,_next,_throw,`throw`,e)}_next(void 0)})}}var Ze=__esmMin((()=>{})),Qe=__commonJSMin(((e,t)=>{var n=c(),r=w();t.exports=function(e,t,i){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[i]))}catch(e){}}})),$e=__commonJSMin(((e,t)=>{var n=h();t.exports=function(e){return n(e)||e===null}})),et=__commonJSMin(((e,t)=>{var n=$e(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(`Can't set `+r(e)+` as a prototype`)}})),tt=__commonJSMin(((e,t)=>{var n=Qe(),r=h(),i=f(),a=et();
vendor: 1,882 bytes, line 1764
1764t.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},o;try{o=n(Object.prototype,`__proto__`,`set`),o(t,[]),e=t instanceof Array}catch(e){}return function setPrototypeOf(t,n){return i(t),a(n),r(t)&&(e?o(t,n):t.__proto__=n),t}}():void 0)})),nt=__commonJSMin(((e,t)=>{var n=m(),r=h(),i=tt();t.exports=function(e,t,a){var o,s;return i&&n(o=t.constructor)&&o!==a&&r(s=o.prototype)&&s!==a.prototype&&i(e,s),e}})),rt=__commonJSMin(((e,t)=>{var n=Le(),r=String;t.exports=function(e){if(n(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return r(e)}})),it=__commonJSMin(((e,t)=>{var n=rt();t.exports=function(e,t){return e===void 0?arguments.length<2?``:t:n(e)}})),at=__commonJSMin(((e,t)=>{t.exports={IndexSizeError:{s:`INDEX_SIZE_ERR`,c:1,m:1},DOMStringSizeError:{s:`DOMSTRING_SIZE_ERR`,c:2,m:0},HierarchyRequestError:{s:`HIERARCHY_REQUEST_ERR`,c:3,m:1},WrongDocumentError:{s:`WRONG_DOCUMENT_ERR`,c:4,m:1},InvalidCharacterError:{s:`INVALID_CHARACTER_ERR`,c:5,m:1},NoDataAllowedError:{s:`NO_DATA_ALLOWED_ERR`,c:6,m:0},NoModificationAllowedError:{s:`NO_MODIFICATION_ALLOWED_ERR`,c:7,m:1},NotFoundError:{s:`NOT_FOUND_ERR`,c:8,m:1},NotSupportedError:{s:`NOT_SUPPORTED_ERR`,c:9,m:1},InUseAttributeError:{s:`INUSE_ATTRIBUTE_ERR`,c:10,m:1},InvalidStateError:{s:`INVALID_STATE_ERR`,c:11,m:1},SyntaxError:{s:`SYNTAX_ERR`,c:12,m:1},InvalidModificationError:{s:`INVALID_MODIFICATION_ERR`,c:13,m:1},NamespaceError:{s:`NAMESPACE_ERR`,c:14,m:1},InvalidAccessError:{s:`INVALID_ACCESS_ERR`,c:15,m:1},ValidationError:{s:`VALIDATION_ERR`,c:16,m:0},TypeMismatchError:{s:`TYPE_MISMATCH_ERR`,c:17,m:1},SecurityError:{s:`SECURITY_ERR`,c:18,m:1},NetworkError:{s:`NETWORK_ERR`,c:19,m:1},AbortError:{s:`ABORT_ERR`,c:20,m:1},URLMismatchError:{s:`URL_MISMATCH_ERR`,c:21,m:1},QuotaExceededError:{s:`QUOTA_EXCEEDED_ERR`,c:22,m:1},TimeoutError:{s:`TIMEOUT_ERR`,c:23,m:1}
1764,InvalidNodeTypeError:{s:`INVALID_NODE_TYPE_ERR`,c:24,m:1},DataCloneError:{s:`DATA_CLONE_ERR`,c:25,m:1}}})),ot=__commonJSMin(((e,t)=>{var n=c(),r=Error,i=n(``.replace),a=(function(e){return String(new r(e).stack)})(`zxcasd`),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(a);t.exports=function(e,t){if(s&&typeof e==`string`&&!r.prepareStackTrace)for(;t--;)e=i(e,o,``);return e}})),st=__commonJSMin((()=>{var e=W(),n=t(),i=g(),a=s(),o=L().f,c=M(),l=Se(),u=nt(),d=it(),f=at(),p=ot(),m=r(),h=D(),_=`DOMException`,v=i(`Error`),y=i(_),b=function DOMException(){l(this,x);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=new y(t,d(e<2?void 0:arguments[1],`Error`)),r=new v(t);return r.name=_,o(n,`stack`,a(1,p(r.stack,1))),u(n,this,b),n},x=b.prototype=y.prototype,S=`stack`in new v(_),C=`stack`in new y(1,2),w=y&&m&&Object.getOwnPropertyDescriptor(n,_),T=!!w&&!(w.writable&&w.configurable),E=S&&!T&&!C;e({global:!0,constructor:!0,forced:h||E},{DOMException:E?b:y});var O=i(_),k=O.prototype;if(k.constructor!==O){for(var A in h||o(k,`constructor`,a(1,O)),f)if(c(f,A)){var j=f[A],N=j.s;c(O,N)||o(O,N,a(6,j.c))}}})),ct=__commonJSMin((e=>{Ze(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,st();var _default=class extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{links:`a[href^="%23elementor-action"], a[href^="#elementor-action"]`}}}bindEvents(){elementorFrontend.elements.$document.on(`click`,this.getSettings(`selectors.links`),this.runLinkAction.bind(this))}initActions(){this.actions={lightbox:function(){var e=_asyncToGenerator(function*(e){let t=yield elementorFrontend.utils.lightbox;e.slideshow?t.openSlideshow(e.slideshow,e.url):(e.id&&(e.type=`image`),t.showModal(e))});return function lightbox(t){return e.apply(this,arguments)}}()}}addAction(e,t){this.actions[e]=t}runAction(e,...t){e=decodeURI(e),e=decodeURIComponent(e);let n=e.match(/action=(.+?)&/);if(!n)return;let r=this.actions[n[1]];if(!r)return;let i={},a=e.match(/settings=(.+)/);a&&(i=JSON.parse(atob(a[1]))),i.previousEvent=event,r(i,...t)}runLinkAction(e){e.preventDefault(),this.runAction(jQuery(e.currentTarget).attr(`href`),e)}runHashAction(){if(!location.hash)return;let e=document.querySelector(`[data-e-action-hash="${location.hash}"], a[href*="${location.hash}"]`);e&&this.runAction(e.getAttribute(`data-e-action-hash`))}createActionHash(e,t){return encodeURIComponent(`#elementor-action:action=${e}&settings=${btoa(JSON.stringify(t))}`)}onInit(){super.onInit(),this.initActions(),elementorFrontend.on(`components:init`,this.runHashAction.bind(this))}};e.default=_default})),lt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,G(),Z();var SwiperHandler=class{constructor(e,t){var n,r;return this.config=t,this.config.breakpoints&&(this.config=this.adjustConfig(t)),e instanceof jQuery&&(e=e[0]),(n=e.closest(`.elementor-widget-wrap`))==null||n.classList.add(`e-swiper-container`),(r=e.closest(`.elementor-widget`))==null||r.classList.add(`e-widget-swiper`),new Promise(t=>{if(typeof Swiper>`u`){elementorFrontend.utils.assetsLoader.load(`script`,`swiper`).then(()=>t(this.createSwiperInstance(e,this.config)));return}typeof Swiper==`function`&&window.Swiper===void 0&&(window.Swiper=Swiper),t(this.createSwiperInstance(e,this.config))})}createSwiperInstance(e,t){let n=window.Swiper;return n.prototype.adjustConfig=this.adjustConfig,t=this.applyMotionPreferences(t),new n(e,t)}adjustConfig(e){if(!e.handleElementorBreakpoints)return e;let t=elementorFrontend.config.responsive.activeBreakpoints,n=elementorFrontend.breakpoints.getBreakpointValues();return Object.keys(e.breakpoints).forEach(r=>{let i=parseInt(r),a;if(i===t.mobile.value||i+1===t.mobile.value)a=0;else if(t.widescreen&&(i===t.widescreen.value||i+1===t.widescreen.value))a=i;else{let e=n.findIndex(e=>i===e||i+1===e);a=n[e-1]}e.breakpoints[a]=e.breakpoints[r],e.breakpoints[r]={slidesPerView:e.slidesPerView,slidesPerGroup:e.slidesPerGroup?e.slidesPerGroup:1}}),e}applyMotionPreferences(e){return window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?Object.assign({},e,{speed:0,autoplay:!1}):e}};e.default=SwiperHandler})),ut=__commonJSMin((e=>
1764{Ze(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,G(),X(),e.default=class LightboxManager extends elementorModules.ViewModule{static getLightbox(){let e=new Promise(e=>{__elementorLoadChunk(`lightbox-lightbox`).then(({default:t})=>e(new t))}),t=elementorFrontend.utils.assetsLoader.load(`script`,`dialog`),n=elementorFrontend.utils.assetsLoader.load(`style`,`dialog`),r=elementorFrontend.utils.assetsLoader.load(`script`,`share-link`),i=elementorFrontend.utils.assetsLoader.load(`style`,`swiper`),a=elementorFrontend.utils.assetsLoader.load(`style`,`e-lightbox`);return Promise.all([e,t,n,r,i,a]).then(()=>e)}getDefaultSettings(){return{selectors:{links:`a, [data-elementor-lightbox]`,slideshow:`[data-elementor-lightbox-slideshow]`}}}getDefaultElements(){return{$links:jQuery(this.getSettings(`selectors.links`)),$slideshow:jQuery(this.getSettings(`selectors.slideshow`))}}isLightboxLink(e){if(e.tagName.toLowerCase()===`a`&&(e.hasAttribute(`download`)||!/^[^?]+\.(png|jpe?g|gif|svg|webp|avif)(\?.*)?$/i.test(e.href))&&!e.dataset.elementorLightboxVideo)return!1;let t=elementorFrontend.getKitSettings(`global_image_lightbox`),n=e.dataset.elementorOpenLightbox;return n===`yes`||t&&n!==`no`}isLightboxSlideshow(){return this.elements.$slideshow.length!==0}onLinkClick(e){var t=this;return _asyncToGenerator(function*(){let n=e.currentTarget,r=jQuery(e.target),i=elementorFrontend.isEditMode(),a=i&&elementor.$previewContents.find(`body`).hasClass(`elementor-editor__ui-state__color-picker`),o=!!r.closest(`.elementor-edit-area`).length;if(!t.isLightboxLink(n)){i&&o&&e.preventDefault();return}e.preventDefault(),!(i&&!elementor.getPreferences(`lightbox_in_editor`))&&(a||(yield LightboxManager.getLightbox()).createLightbox(n))})()}bindEvents(){elementorFrontend.elements.$document.on(`click`,this.getSettings(`selectors.links`),e=>this.onLinkClick(e))}onInit(...e){super.onInit(...e),!elementorFrontend.isEditMode()&&this.maybeActivateLightboxOnLink()}maybeActivateLightboxOnLink(){this.elements.$links.each((e,t)=>{if(this.isLightboxLink(t))return LightboxManager.getLightbox(),!1})}}})),dt=__commonJSMin((e=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=class AssetsLoader{getScriptElement(e){let t=document.createElement(`script`);return t.src=e,t}getStyleElement(e){let t=document.createElement(`link`);return t.rel=`stylesheet`,t.href=e,t}
1764load(e,t){let n=AssetsLoader.assets[e][t];return n.loader||(n.loader=this.isAssetLoaded(n,e)?Promise.resolve(!0):this.loadAsset(n,e)),n.loader}isAssetLoaded(e,t){var n;let r=t===`script`?`script[src="${e.src}"]`:`link[href="${e.src}"]`;return!!((n=document.querySelectorAll(r))!=null&&n.length)}loadAsset(e,t){return new Promise(n=>{let r=t===`style`?this.getStyleElement(e.src):this.getScriptElement(e.src);r.onload=()=>n(!0),this.appendAsset(e,r)})}appendAsset(e,t){let n=document.querySelector(e.before);if(n){n.insertAdjacentElement(`beforebegin`,t);return}let r=e.parent===`head`?e.parent:`body`;document[r].appendChild(t)}};e.default=n;var r=elementorFrontendConfig.urls.assets,i=elementorFrontendConfig.environmentMode.isScriptDebug?``:`.min`,a=elementorFrontendConfig.version;n.assets={script:{dialog:{src:`${r}lib/dialog/dialog${i}.js?ver=4.9.3`},"share-link":{src:`${r}lib/share-link/share-link${i}.js?ver=${a}`},swiper:{src:`${r}lib/swiper/v8/swiper${i}.js?ver=8.4.5`}},style:{swiper:{src:`${r}lib/swiper/v8/css/swiper${i}.css?ver=8.4.5`,parent:`head`},"e-lightbox":{src:(t=elementorFrontendConfig)!=null&&(t=t.responsive)!=null&&t.hasCu
1764stomBreakpoints?`${elementorFrontendConfig.urls.uploadUrl}/elementor/css/custom-lightbox.min.css?ver=${a}`:`${r}css/conditionals/lightbox${i}.css?ver=${a}`},dialog:{src:`${r}css/conditionals/dialog${i}.css?ver=${a}`,parent:`head`,before:`#elementor-frontend-css`}}}}));function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_typeof(e)}var ft=__esmMin((()=>{}));function toPrimitive(e,t){if(_typeof(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_typeof(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var pt=__esmMin((()=>{ft()}));function toPropertyKey(e){var t=toPrimitive(e,`string`);return _typeof(t)==`symbol`?t:t+``}var mt=__esmMin((()=>{ft(),pt()}));function _defineProperty(e,t,n){return(t=toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ht=__esmMin((()=>{mt()}));function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var gt=__esmMin((()=>{ht()})),_t=__commonJSMin(((e,t)=>{var n=l();t.exports=Array.isArray||function isArray(e){return n(e)===`Array`}})),vt=__commonJSMin(((e,t)=>{var n=r(),i=_t(),a=TypeError,o=Object.getOwnPropertyDescriptor;t.exports=n&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(i(e)&&!o(e,`length`).writable)throw new a(`Cannot set read only .length`);return e.length=t}:function(e,t){return e.length=t}})),yt=__commonJSMin(((e,t)=>{var n=TypeError,r=9007199254740991;t.exports=function(e){if(e>r)throw n(`Maximum allowed index exceeded`);return e}})),$=__commonJSMin((()=>{var e=W(),t=j(),r=H(),i=vt(),a=yt(),o=n()(function(){return[].push.call({length:4294967296},1)!==4294967297}),properErrorOnNonWritableLength=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}};e({target:`Array`,proto:!0,arity:1,forced:o||!properErrorOnNonWritableLength()},{push:function push(e){var n=t(this),o=r(n),s=arguments.length;a(o+s);for(var c=0;c<s;c++)n[o]=arguments[c],o++;return i(n,o),o}})})),bt=__commonJSMin(((e,t)=>{var n=V();t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}})),xt=__commonJSMin(((e,t)=>{t.exports=function(e,t){return{value:e,done:t}}})),St=__commonJSMin(((e,t)=>{var n=q();t.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(e[i]!==void 0)try{r=n(e[i].iterator,t,r)}catch(e){t=`throw`,r=e}if(t===`throw`)throw r;return r}})),Ct=__commonJSMin(((e,t)=>{var n=a(),r=Ae(),i=R(),o=bt(),s=P(),c=le(),l=T(),u=je().IteratorPrototype,d=xt(),f=q(),p=St(),m=s(`toStringTag`),h=`IteratorHelper`,g=`WrapForValidIterator`,_=`normal`,v=`throw`,y=c.set,createIteratorProxyPrototype=function(e){var t=c.getterFor(e?g:h);return o(r(u),{next:function next(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var r=t(this),i=r.iterator;if(r.done=!0,e){var a=l(i,`return`);return a?n(a,i):d(void 0,!0)}if(r.inner)try{f(r.inner.iterator,_)}catch(e){return f(i,v,e)}if(r.openIters)try{p(r.openIters,_)}catch(e){return f(i,v,e)}return i&&f(i,_),d(void 0,!0)}})},b=createIteratorProxyPrototype(!0),x=createIteratorProxyPrototype(!1);
1764i(x,m,`Iterator Helper`),t.exports=function(e,t,n){var r=function Iterator(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:h,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,y(this,i)};return r.prototype=t?b:x,r}})),wt=__commonJSMin(((e,t)=>{var n=I(),r=q();t.exports=function(e,t,i,a){try{return a?t(n(i)[0],i[1]):t(i)}catch(t){r(e,`throw`,t)}}})),Tt=__commonJSMin(((e,t)=>{t.exports=function(e,t){var n=typeof Iterator==`function`&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}})),Et=__commonJSMin((()=>{var e=W(),t=a(),n=w(),r=I(),i=J(),o=Ct(),s=wt(),c=q(),l=Tt(),u=Y(),d=D(),f=!d&&!l(`map`,function(){}),p=!d&&!f&&u(`map`,TypeError),m=d||f||p,h=o(function(){var e=this.iterator,n=r(t(this.next,e));if(!(this.done=!!n.done))return s(e,this.mapper,[n.value,this.counter++],!0)});e({target:`Iterator`,proto:!0,real:!0,forced:m},{map:function map(e){r(this);try{n(e)}catch(e){c(this,`throw`,e)}return p?t(p,this,e):new h(i(this),{mapper:e})}})})),Dt=__commonJSMin((()=>{Et()})),Ot=__commonJSMin((e=>{gt(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,$(),G(),Z(),Dt();var Breakpoints=class extends elementorModules.Module{constructor(e){super(),this.responsiveConfig=e}getActiveBreakpointsList(e={}){e=_objectSpread2(_objectSpread2({},{largeToSmall:!1,withDesktop:!1}),e);let t=Object.keys(this.responsiveConfig.activeBreakpoints);if(e.withDesktop){let e=t.indexOf(`widescreen`)===-1?t.length:t.length-1;t.splice(e,0,`desktop`)}return e.largeToSmall&&t.reverse(),t}getBreakpointValues(){let{activeBreakpoints:e}=this.responsiveConfig,t=[];return Object.values(e).forEach(e=>{t.push(e.value)}),t}getDesktopPreviousDeviceKey(){let e=``,{activeBreakpoints:t}=this.responsiveConfig,n=Object.keys(t),r=n.length;return e=t[n[r-1]].direction===`min`?n[r-2]:n[r-1],e}getDesktopMinPoint(){let{activeBreakpoints:e}=this.responsiveConfig;return e[this.getDesktopPreviousDeviceKey()].value+1}getDeviceMinBreakpoint(e){if(e===`desktop`)return this.getDesktopMinPoint();let{activeBreakpoints:t}=this.responsiveConfig,n=Object.keys(t),r;return r=n[0]===e?320:e===`widescreen`?t[e]?t[e].value:this.responsiveConfig.breakpoints.widescreen:t[n[n.indexOf(e)-1]].value+1,r}getActiveMatchRegex(){return RegExp(this.getActiveBreakpointsList().map(e=>`_`+e).join(`|`)+`$`)}};e.default=Breakpoints})),kt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Events=void 0;var Events=class{static dispatch(e,t,n=null,r=null){e=e instanceof jQuery?e[0]:e,r&&e.dispatchEvent(new CustomEvent(r,{detail:n})),e.dispatchEvent(new CustomEvent(t,{detail:n}))}};e.Events=Events,e.default=Events})),At=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var _default=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler(`text-path`,()=>__elementorLoadChunk(`text-path`))}};e.default=_default})),jt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var Controls=class{getControlValue(e,t,n){let r;return r=typeof e[t]==`object`&&n?e[t][n]:e[t],r}getResponsiveControlValue(e,t,n=``,r=null){let i=r||elementorFrontend.getCurrentDeviceMode(),a=this.getControlValue(e,t,n);if(i===`widescreen`){let r=this.getControlValue(e,`${t}_widescreen`,n);return r||r===0?r:a}let o=elementorFrontend.breakpoints.getActiveBreakpointsList({withDesktop:!0}),s=i,c=o.indexOf(i),l=``;for(;c<=o.length;){if(s===`desktop`){l=a;break}let r=`${t}_${s}`,i=this.getControlValue(e,r,n);if(i||i===0){l=i;break}c++,s=o[c]}return l}};e.default=Controls})),Mt=__commonJSMin((()=>{var e=W(),t=a(),n=w(),r=I(),i=J(),o=Ct(),s=wt(),c=D(),l=q(),u=Tt(),d=Y(),f=!c&&!u(`filter`,function(){}),p=!c&&!f&&d(`filter`,TypeError),m=c||f||p,h=o(function(){for(var e=this.iterator,n=this.predicate,i=this.next,a,o,c;;){if(a=r(t(i,e)),o=this.done=!!a.done,o)return;if(c=a.value,s(e,n,[c,this.counter++],!0))return c}});e({target:`Iterator`,proto:!0,real:!0,forced:m},{filter:function filter(e){r(this);try{n(e)}catch(e){l(this,`throw`,e)}return p?t(p,this,e):new h(i(this),{predicate:e})}})})),Nt=__commonJSMin((()=>{Mt()})),Pt=__commonJSMin((e=>
1764{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,$(),G(),Nt(),Z();var _default=class extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{links:`.elementor-element a[href*="#"]`,stickyElements:`.elementor-element.elementor-sticky`}}}onInit(){this.observeStickyElements(()=>{this.initializeStickyAndAnchorTracking()})}observeStickyElements(e){new MutationObserver(t=>{for(let n of t)(n.type===`childList`||n.type===`attributes`&&n.target.classList.contains(`elementor-sticky`))&&e()}).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`,`style`]})}initializeStickyAndAnchorTracking(){let e=this.getAllAnchorLinks(),t=this.getAllStickyElements(),n=[];!t.length>0&&!e.length>0||(this.trackStickyElements(t,n),this.trackAnchorLinks(e,n),this.organizeStickyAndAnchors(n))}trackAnchorLinks(e,t){e.forEach(e=>{let n=this.getAnchorTarget(e),r=this.getScrollPosition(n);t.push({element:n,type:`anchor`,scrollPosition:r})})}trackStickyElements(e,t){e.forEach(e=>{let n=this.getElementSettings(e);if(!n||!n.sticky_anchor_link_offset)return;let{sticky_anchor_link_offset:r}=n;if(r===0)return;let i=this.getScrollPosition(e);t.push({scrollMarginTop:r,type:`sticky`,scrollPosition:i})})}
1764organizeStickyAndAnchors(e){let t=this.filterAndSortElementsByType(e,`sticky`),n=this.filterAndSortElementsByType(e,`anchor`);t.forEach((e,r)=>{this.defineCurrentStickyRange(e,r,t,n)})}defineCurrentStickyRange(e,t,n,r){let i=t+1<n.length?n[t+1].scrollPosition:1/0;e.anchor=r.filter(t=>{let n=t.scrollPosition>e.scrollPosition&&t.scrollPosition<i;return n&&(t.element.style.scrollMarginTop=`${e.scrollMarginTop}px`),n})}getScrollPosition(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}getAllStickyElements(){let e=document.querySelectorAll(this.getSettings(`selectors.stickyElements`));return Array.from(e).filter((e,t,n)=>t===n.findIndex(t=>t.getAttribute(`data-id`)===e.getAttribute(`data-id`)))}getAllAnchorLinks(){let e=document.querySelectorAll(this.getSettings(`selectors.links`));return Array.from(e).filter((e,t,n)=>t===n.findIndex(t=>t.getAttribute(`href`)===e.getAttribute(`href`)))}filterAndSortElementsByType(e,t){return e.filter(e=>t===e.type).sort((e,t)=>e.scrollPosition-t.scrollPosition)}isValidSelector(e){return/^#[A-Za-z_][\w-]*$/.test(e)}getAnchorTarget(e){let t=e==null?void 0:e.hash;return this.isValidSelector(t)?document.querySelector(t):null}getElementSettings(e){return JSON.parse(e.getAttribute(`data-settings`))}};e.default=_default})),Ft=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isScrollSnapActive=e.escapeHTML=void 0;var escapeHTML=e=>{let t={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,"'":`&#39;`,'"':`&quot;`};return e.replace(/[&<>'"]/g,e=>t[e]||e)};e.escapeHTML=escapeHTML;var isScrollSnapActive=()=>{var e,t;return(elementorFrontend.isEditMode()?(e=elementor.settings.page.model.attributes)==null?void 0:e.scroll_snap:(t=elementorFrontend.config.settings.page)==null?void 0:t.scroll_snap)===`yes`};e.isScrollSnapActive=isScrollSnapActive})),It=__commonJSMin(((e,t)=>{$();var EventManager=function(){var e=Array.prototype.slice,t,n={actions:{},filters:{}};function _removeHook(e,t,r,i){var a,o,s;if(n[e][t])if(!r)n[e][t]=[];else if(a=n[e][t],i)for(s=a.length;s--;)o=a[s],o.callback===r&&o.context===i&&a.splice(s,1);else for(s=a.length;s--;)a[s].callback===r&&a.splice(s,1)}function _hookInsertSort(e){for(var t,n,r,i=1,a=e.length;i<a;i++){for(t=e[i],n=i;(r=e[n-1])&&r.priority>t.priority;)e[n]=e[n-1],--n;e[n]=t}return e}function _addHook(e,t,r,i,a){var o={callback:r,priority:i,context:a},s=n[e][t];if(s){var c=!1;if(jQuery.each(s,function(){if(this.callback===r)return c=!0,!1}),c)return;s.push(o),s=_hookInsertSort(s)}else s=[o];n[e][t]=s}function _runHook(e,t,r){var i=n[e][t],a,o;if(!i)return e===`filters`&&r[0];if(o=i.length,e===`filters`)for(a=0;a<o;a++)r[0]=i[a].callback.apply(i[a].context,r);else for(a=0;a<o;a++)i[a].callback.apply(i[a].context,r);return e!==`filters`||r[0]}function addAction(e,n,r,i){return typeof e==`string`&&typeof n==`function`&&(r=parseInt(r||10,10),_addHook(`actions`,e,n,r,i)),t}function doAction(){var n=e.call(arguments),r=n.shift();return typeof r==`string`&&_runHook(`actions`,r,n),t}function removeAction(e,n){return typeof e==`string`&&_removeHook(`actions`,e,n),t}function addFilter(e,n,r,i){return typeof e==`string`&&typeof n==`function`&&(r=parseInt(r||10,10),_addHook(`filters`,e,n,r,i)),t}function applyFilters(){var n=e.call(arguments),r=n.shift();return typeof r==`string`?_runHook(`filters`,r,n):t}function removeFilter(e,n){return typeof e==`string`&&_removeHook(`filters`,e,n),t}return t={removeFilter,applyFilters,addFilter,removeAction,doAction,addAction},t};t.exports=EventManager})),Lt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var GlobalHandler=class extends elementorModules.frontend.handlers.Base{getWidgetType(){return`global`}animate(){let e=this.$element,t=this.getAnimation();if(t===`none`){e.removeClass(`elementor-invisible`);return}let n=this.getElementSettings(),r=n._animation_delay||n.animation_delay||0;e.removeClass(t),this.currentAnimation&&e.removeClass(this.currentAnimation),this.currentAnimation=t,setTimeout(()=>{e.removeClass(`elementor-invisible`).addClass(`animated `+t)},r)}getAnimation(){return this.getCurrentDeviceSetting(`animation`)||this.getCurrentDeviceSetting(`_animation`)}onInit(...e){if(super.onInit(...e),this.getAnimation()){let e=elementorModules.utils.Scroll.
1764scrollObserver({callback:t=>{t.isInViewport&&(this.animate(),e.unobserve(this.$element[0]))}});e.observe(this.$element[0])}}onElementChange(e){/^_?animation/.test(e)&&this.animate()}},_default=e=>{elementorFrontend.elementsHandler.addHandler(GlobalHandler,{$element:e})};e.default=_default})),Rt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createEditorHandler=createEditorHandler;function createEditorHandler(e){return()=>new Promise(t=>{elementorFrontend.isEditMode()&&e().then(t)})}})),zt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Rt();e.default=[()=>__elementorLoadChunk(`background-slideshow`),()=>__elementorLoadChunk(`background-video`),(0,t.createEditorHandler)(()=>__elementorLoadChunk(`handles-position`)),(0,t.createEditorHandler)(()=>__elementorLoadChunk(`container-shapes`)),(0,t.createEditorHandler)(()=>__elementorLoadChunk(`container-grid-container`))]})),Bt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Rt();e.default=[()=>__elementorLoadChunk(`section-stretched-section`),()=>__elementorLoadChunk(`background-slideshow`),()=>__elementorLoadChunk(`background-video`),(0,t.createEditorHandler)(()=>__elementorLoadChunk(`handles-position`)),(0,t.createEditorHandler)(()=>__elementorLoadChunk(`section-shapes`))]})),Vt=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=[()=>__elementorLoadChunk(`background-slideshow`)]})),Ht=__commonJSMin(((t,n)=>{var r=e();G(),Z();var i=r(Lt()),a=r(zt()),o=r(Bt()),s=r(Vt());n.exports=function(e){let t={};this.elementsHandlers={"accordion.default":()=>__elementorLoadChunk(`accordion`),"alert.default":()=>__elementorLoadChunk(`alert`),"counter.default":()=>__elementorLoadChunk(`counter`),"progress.default":()=>__elementorLoadChunk(`progress`),"tabs.default":()=>__elementorLoadChunk(`tabs`),"toggle.default":()=>__elementorLoadChunk(`toggle`),"video.default":()=>__elementorLoadChunk(`video`),"image-carousel.default":()=>__elementorLoadChunk(`image-carousel`),"text-editor.default":()=>__elementorLoadChunk(`text-editor`),"wp-widget-media_audio.default":()=>__elementorLoadChunk(`wp-audio`),container:a.default,section:o.default,column:s.default},elementorFrontendConfig.experimentalFeatures.container&&(this.elementsHandlers[`nested-tabs.default`]=()=>__elementorLoadChunk(`nested-tabs`),this.elementsHandlers[`nested-accordion.default`]=()=>__elementorLoadChunk(`nested-accordion`)),elementorFrontendConfig.experimentalFeatures.container&&(this.elementsHandlers[`contact-buttons.default`]=()=>__elementorLoadChunk(`contact-buttons`),this.elementsHandlers[`floating-bars-var-1.default`]=()=>__elementorLoadChunk(`floating-bars`));let addGlobalHandlers=()=>elementorFrontend.hooks.addAction(`frontend/element_ready/global`,i.default),addElementsHandlers=()=>{e.each(this.elementsHandlers,(e,t)=>{let n=e.split(`.`);e=n[0];let r=n[1]||null;this.attachHandler(e,t,r)})},isClassHandler=e=>{var t;return(t=e.prototype)==null?void 0:t.getUniqueHandlerID},addHandlerWithHook=(e,t,n=`default`)=>{n=n?`.`+n:``;let r=e+n;elementorFrontend.hooks.addAction(`frontend/element_ready/${r}`,e=>{if(isClassHandler(t))this.addHandler(t,{$element:e,elementName:r},!0);else{let n=t();if(!n)return;n instanceof Promise?n.then(({default:t})=>{this.addHandler(t,{$element:e,elementName:r},!0)}):this.addHandler(n,{$element:e,elementName:r},!0)}})};this.addHandler=function(n,r){let i=r.$element.data(`model-cid`),a;if(i){a=n.prototype.getConstructorID(),t[i]||(t[i]={});let e=t[i][a];e&&e.onDestroy()}let o=new n(r);elementorFrontend.hooks.doAction(`frontend/element_handler_ready/${r.elementName}`,r.$element,e),i&&(t[i][a]=o)},this.attachHandler=(e,t,n)=>{Array.isArray(t)||(t=[t]),t.forEach(t=>addHandlerWithHook(e,t,n))},this.getHandler=function(e){let t=this.elementsHandlers[e];return isClassHandler(t)?t:new Promise(e=>{t().then(({default:t})=>{e(t)})})},this.getHandlers=function(e){return elementorDevTools.deprecation.deprecated(`getHandlers`,`3.1.0`,`elementorFrontend.elementsHandler.getHandler`),e?this.getHandler(e):this.elementsHandlers},this.runReadyTrigger=function(t){let n=!!t.closest(`[data-delay-child-handlers="true"]`)&&t.closest(`[data-delay-child-handlers="true"]`).length!==0;if(elementorFrontend.config.is_static||n)return;let r=jQuery(t),i=r.attr(`data-element_type`);if(i&&(elementorFrontend.hooks.doAction(`frontend/element_ready/global`,r,e),elementorFrontend.hooks.doAction(`frontend/element_ready/${i}`,r,e),i===`widget`)){let t=r.attr(`data-widget_type`);elementorFrontend.hooks.doAction(`frontend/element_ready/${t}`,r,e)}},this.init=()=>{addGlobalHandlers(),addElementsHandlers()}}}));return __commonJSMin((t=>{var n=e();
1764Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,G(),X(),Z(),Ue(),We();var r=n(Ke()),i=n(qe()),a=n(Je()),o=n(Ye()),s=n(Xe()),c=n(Q()),l=n(ct()),u=n(lt()),d=n(ut()),f=n(dt()),p=n(Ot()),m=n(kt()),h=n(At()),g=n(jt()),_=n(Pt()),v=Ft(),y=It(),b=Ht(),Frontend=class extends elementorModules.ViewModule{constructor(...e){super(...e),this.config=elementorFrontendConfig,this.config.legacyMode={get elementWrappers(){return elementorFrontend.isEditMode()&&window.top.elementorDevTools.deprecation.deprecated(`elementorFrontend.config.legacyMode.elementWrappers`,`3.1.0`),!1}},this.populateActiveBreakpointsConfig()}get Module(){return this.isEditMode()&&parent.elementorDevTools.deprecation.deprecated(`elementorFrontend.Module`,`2.5.0`,`elementorModules.frontend.handlers.Base`),elementorModules.frontend.handlers.Base}getDefaultSettings(){return{selectors:{elementor:`.elementor`,adminBar:`#wpadminbar`}}}getDefaultElements(){let e={window,$window:jQuery(window),$document:jQuery(document),$head:jQuery(document.head),$body:jQuery(document.body),$deviceMode:jQuery(`<span>`,{id:`elementor-device-mode`,class:`elementor-screen-only`})};return e.$body.append(e.$deviceMode),e}bindEvents(){this.elements.$window.on(`resize`,()=>this.setDeviceModeData())}getElements(e){return this.getItems(this.elements,e)}getPageSettings(e){let t=this.isEditMode()?elementor.settings.page.model.attributes:this.config.settings.page;return this.getItems(t,e)}getGeneralSettings(e){return this.isEditMode()&&parent.elementorDevTools.deprecation.deprecated(`getGeneralSettings()`,`3.0.0`,"getKitSettings() and remove the `elementor_` prefix"),this.getKitSettings(`elementor_${e}`)}getKitSettings(e){return this.getItems(this.config.kit,e)}getCurrentDeviceMode(){return getComputedStyle(this.elements.$deviceMode[0],`:after`).content.replace(/"/g,``)}getDeviceSetting(e,t,n){if(e===`widescreen`)return this.getWidescreenSetting(t,n);let r=elementorFrontend.breakpoints.getActiveBreakpointsList({largeToSmall:!0,withDesktop:!0}),i=r.indexOf(e);for(;i>0;){let e=r[i],a=t[n+`_`+e];if(a||a===0)return a;i--}return t[n]}getWidescreenSetting(e,t){let n=t+`_widescreen`,r;return r=e[n]?e[n]:e[t],r}getCurrentDeviceSetting(e,t){return this.getDeviceSetting(elementorFrontend.getCurrentDeviceMode(),e,t)}isEditMode(){return this.config.environmentMode.edit}isWPPreviewMode(){return this.config.environmentMode.wpPreview}initDialogsManager(){let e;this.getDialogsManager=()=>(e||(e=new DialogsManager.Instance),e)}initOnReadyComponents(){this.utils={youtube:new o.default,vimeo:new s.default,baseVideoLoader:new c.default,get lightbox(){return d.default.getLightbox()},urlActions:new l.default,swiper:u.default,environment:a.default,assetsLoader:new f.default,escapeHTML:v.escapeHTML,events:m.default,controls:new g.default,anchor_scroll_margin:new _.default},this.modules={StretchElement:elementorModules.frontend.tools.StretchElement,Masonry:elementorModules.utils.Masonry},this.elementsHandler.init(),this.isEditMode()?elementor.once(`document:loaded`,()=>this.onDocumentLoaded()):this.onDocumentLoaded()}initOnReadyElements(){this.elements.$wpAdminBar=this.elements.$document.find(this.getSettings(`selectors.adminBar`))}addUserAgentClasses(){for(let[e,t]of Object.entries(a.default))t&&this.elements.$body.addClass(`e--ua-`+e)}setDeviceModeData(){this.elements.$body.attr(`data-elementor-device-mode`,this.getCurrentDeviceMode())}addListenerOnce(e,t,n,r){if(r||(r=this.elements.$window),!this.isEditMode()){r.on(t,n);return}if(this.removeListeners(e,t,r),r instanceof jQuery){let i=t+`.`+e;r.on(i,n)}else r.on(t,n,e)}removeListeners(e,t,n,r){if(r||(r=this.elements.$window),r instanceof jQuery){let i=t+`.`+e;r.off(i,n)}else r.off(t,n,e)}debounce(e,t){let n;return function(){let r=this,i=arguments,later=()=>{n=null,e.apply(r,i)},a=!n;clearTimeout(n),n=setTimeout(later,t),a&&e.apply(r,i)}}muteMigrationTraces(){jQuery.migrateMute=!0,jQuery.migrateTrace=!1}initModules(){let e={shapes:h.default};elementorFrontend.trigger(`elementor/modules/init:before`),elementorFrontend.trigger(`elementor/modules/init/before`),Object.entries(e).forEach(([e,t])=>{this.modulesHandlers[e]=new t})}populateActiveBreakpointsConfig(){this.config.responsive.activeBreakpoints={}
1764,Object.entries(this.config.responsive.breakpoints).forEach(([e,t])=>{t.is_enabled&&(this.config.responsive.activeBreakpoints[e]=t)})}init(){this.hooks=new y,this.breakpoints=new p.default(this.config.responsive),this.storage=new i.default,this.elementsHandler=new b(jQuery),this.modulesHandlers={},this.addUserAgentClasses(),this.setDeviceModeData(),this.initDialogsManager(),this.isEditMode()&&this.muteMigrationTraces(),m.default.dispatch(this.elements.$window,`elementor/frontend/init`),this.initModules(),this.initOnReadyElements(),this.initOnReadyComponents()}onDocumentLoaded(){this.documentsManager=new r.default,this.trigger(`components:init`),new d.default}};t.default=Frontend,window.elementorFrontend=new Frontend,elementorFrontend.isEditMode()||jQuery(()=>elementorFrontend.init())}))()})();
1765;!function(e){"use strict";e(function(){var t;function n(t,n,a){e(document).on(t,n,a)}t=e(".elementskit-menu-container"),e(t).each(function(){var t=e(this);"yes"!=t.attr("ekit-dom-added")&&(0===t.parents(".elementor-widget-ekit-nav-menu").length&&t.parents(".ekit-wid-con").addClass("ekit_menu_responsive_tablet"),t.attr("ekit-dom-added","yes"))}),n("click",".elementskit-dropdown-has > a",function(t){var n=e(this).parents(".elementskit-navbar-nav, .ekit-vertical-navbar-nav"),a=e(this).parents(".ekit-wid-con").data("responsive-breakpoint");if((!n.hasClass("submenu-click-on-icon")||e(t.target).hasClass("elementskit-submenu-indicator"))&&(!(e(document).width()>Number(a)&&n.hasClass("submenu-click-on-"))||e(t.target).hasClass("elementskit-submenu-indicator"))){t.preventDefault();var s=e(this).parent().find(">.elementskit-dropdown, >.elementskit-megamenu-panel");s.find(".elementskit-dropdown-open").removeClass("elementskit-dropdown-open"),s.hasClass("elementskit-dropdown-open")?s.removeClass("elementskit-dropdown-open"):s.addClass("elementskit-dropdown-open")}}),n("click",".elementskit-menu-toggler",function(t){t.preventDefault();var n=e(this).parents(".elementskit-menu-container").parent();n.length<1&&(n=e(this).parent());var a=n.find(".elementskit-menu-offcanvas-elements");a.hasClass("active")?a.removeClass("active"):a.addClass("active"),n.find(".elementskit-menu-hamburger").attr("aria-expanded",a.hasClass("active")?"true":"false")}),e(".elementskit-navbar-nav li a").on("click",function(t){var n=e(this),a=n.get(0);if(a&&n.attr("href")){var s=a.href,i=s.includes("#"),r=n.closest(".elementskit-menu-container").hasClass("ekit-nav-menu-one-page-yes"),o=a.pathname===window.location.pathname;"elementskit-submenu-indicator"!==t.target.className&&i&&s.length>1&&r&&o&&n.closest(".ekit-wid-con").find(".elementskit-menu-close").trigger("click")}})})}(jQuery)
1766;var ekit_config={"ajaxurl":"https://www.cm-benavente.pt/wp-admin/admin-ajax.php","nonce":"084cae4fa3","i18n":{"video_frame":"Video player","close":"Close","slider_prev":"Previous slide","slider_next":"Next slide","slider_first":"This is the first slide","slider_last":"This is the last slide","slider_bullet":"Go to slide {{index}}"}}
1767;!function(e,t){"use strict";window.ElementsKit_Helper=window.ElementsKit_Helper||{},ElementsKit_Helper.setURLHash=function(t,n,i){if(void 0===t||!("ekit_hash_change"in t))return;void 0===i&&(i="ekit-handler-id");let a="#"+e(n).data(i);window.location.hash=a},ElementsKit_Helper.ajaxLoading=function(n,i){if(n.hasClass("ekit-template-ajax--yes")){var a=i.find("[data-ajax-post-id]");a.hasClass("is--loaded")||e.ajax({type:"POST",url:ekit_config.ajaxurl,data:{action:"ekit_widgetarea_content",nonce:ekit_config.nonce,post_id:a.data("ajax-post-id")},success:function(n){a.addClass("is--loaded").html(n),a.find("[data-widget_type]").each(function(){var n=e(this);t.hooks.doAction("frontend/element_ready/"+n.data("widget_type"),n)})}})}},ElementsKit_Helper.triggerClickOnEvent=function(t,n){"click"!==t&&n.on(t,function(){e(this).trigger("click")})},ElementsKit_Helper.megaMenuAjaxLoad=function(t){let n=t.find(".elementskit-submenu-indicator, .ekit-submenu-indicator-icon"),i=t.find(".megamenu-ajax-load"),a=t.closest(".ekit-wid-con").data("responsive-breakpoint"),r=n.prop("outerHTML");i.length&&!t.hasClass("ekit-ajax-loading")&&e.ajax({url:window.elementskit.resturl+"megamenu/megamenu_
1767content",type:"get",data:{id:i.data("id")},beforeSend:function(){t.addClass("ekit-ajax-loading"),n.replaceWith('<span class="elementskit-submenu-indicator ekit-spinner"></span>'),e(document).width()<=Number(a)?n.css({border:"none"}):n.css({"padding-right":0,"margin-right":"5px"})},success:function(n){n&&(i.replaceWith(n),t.find(".elementor-element").each(function(){elementorFrontend.elementsHandler.runReadyTrigger(e(this))}))},complete:function(){t.removeClass("ekit-ajax-loading");var e=t.find(".elementskit-submenu-indicator.ekit-spinner");r?e.replaceWith(r):e.remove()}})},ElementsKit_Helper.swiper=function(t,n){var i=t.get(0);n=n||{};var a=window.ekit_config&&window.ekit_config.i18n||{};if(n.a11y=e.extend({prevSlideMessage:a.slider_prev||"Previous slide",nextSlideMessage:a.slider_next||"Next slide",firstSlideMessage:a.slider_first||"This is the first slide",lastSlideMessage:a.slider_last||"This is the last slide",paginationBulletMessage:a.slider_bullet||"Go to slide {{index}}"},n.a11y||{}),"function"!=typeof Swiper){return new(0,elementorFrontend.utils.swiper)(i,n).then(e=>e)}const r=new Swiper(i,n);return Promise.resolve(r)},ElementsKit_Helper.observeElement=function(e,t,n={threshold:1}){new IntersectionObserver((e,n)=>{e.forEach(e=>{e.isIntersecting&&(t(e.target),n.unobserve(e.target))})},n).observe(e)},ElementsKit_Helper.isValidURL=function(e){try{if(e.startsWith("#"))return!0;let t=new URL(e,window.location.origin);return["http:","https:","mailto:","tel:","ftp:"].includes(t.protocol)}catch(t){return!1}},ElementsKit_Helper.escapeHtml=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},ElementsKit_Helper.registerWidget=function(n,i){e(window).on("elementor/frontend/init",function(){t.hooks.addAction("frontend/element_ready/"+n,i)})},ElementsKit_Helper.rememberTab=function(){if(!window.location.hash||"function"!=typeof e.fn.tab)return;const t=window.location.hash.split("?")[0].substring(1);if(!t)return;const n=e("[data-ekit-handler-id]").filter(function(){return e(this).attr("data-ekit-handler-id")===t});n.length&&n.tab("show")},e(window).on("load",ElementsKit_Helper.rememberTab).on("hashchange",ElementsKit_Helper.rememberTab)}(jQuery,window.elementorFrontend)
1768;!function(e){"use strict";function n(n){var t=n.find(".elementskit-navbar-nav").first();if(t.length){var i="ekit-dropdown-open-onclick",o=t.closest(".ekit-wid-con"),r=t.closest(".elementskit-menu-container").hasClass("ekit-nav-dropdown-hover"),s=Number(o.data("responsive-breakpoint"))||1024,a=window.matchMedia("(min-width: "+(s+1)+"px)"),l=!1,d=t.find(".elementskit-dropdown").filter(function(){return!e(this).parentsUntil(t,".elementskit-megamenu-has").length}),c=t.add(d),u=f(c).filter(function(){return w(e(this))});
1768t.on("keydown","a",function(n){var i=e(this);if(l&&p(i)&&!n.altKey&&!n.ctrlKey&&!n.metaKey){var o=h(i),r=w(i),s=o?null:m(i).parent().children("a").first(),a=!0;switch(n.key){case"Enter":case" ":r?E(i,"first"):" "===n.key?this.click():a=!1;break;case"ArrowDown":o?r?E(i,"first"):a=!1:L(i,1).trigger("focus");break;case"ArrowUp":o?r?E(i,"last"):a=!1:L(i,-1).trigger("focus");break;case"ArrowRight":o?K(L(i,1)):r?E(i,"first"):K(L(function(e){return e.parentsUntil(t,"li").last().children("a").first()}(i),1),!0);break;case"ArrowLeft":o?K(L(i,-1)):h(s)?K(L(s,-1),!0):(y(s),s.trigger("focus"));break;case"Home":f(m(i)).first().trigger("focus");break;case"End":f(m(i)).last().trigger("focus");break;case"Escape":o?r&&v(i)?y(i):a=!1:(y(s),s.trigger("focus"));break;default:var d=1===n.key.length?function(e,n){for(var t=f(m(e)),i=t.index(e),o=1;o<=t.length;o++){var r=t.eq((i+o)%t.length);if(b(r).charAt(0).toLowerCase()===n)return r}return null}(i,n.key.toLowerCase()):null;d?d.trigger("focus"):a=!1}a&&(n.preventDefault(),n.stopPropagation())}}),t.on("keydown",".elementskit-megamenu-panel",function(n){var t=e(this).parent().children("a").first();l&&"Escape"===n.key&&p(t)&&(y(t),t.trigger("focus"),n.preventDefault(),n.stopPropagation())}),t.on("focusin","a",function(){var n=e(this);l&&p(n)&&h(n)&&(f(t).attr("tabindex","-1"),n.attr("tabindex","0"))}),t.on("focusout",function(n){l&&n.relatedTarget&&!e.contains(t[0],n.relatedTarget)&&_()}),e(document).on("click",function(n){l&&!e.contains(t[0],n.target)&&_()}),t.children("li").on("mouseenter",function(){l&&r&&e(this).siblings("li").children("a").each(function(){y(e(this))})}),u.parent().on("mouseenter mouseleave",function(){var n=e(this).children("a").first();setTimeout(function(){C(n)},0)}),n.on("click",".elementskit-dropdown-has > a",function(){setTimeout(x,0)}),n.on("keydown",function(e){if(!l&&"Escape"===e.key){var t=n.find(".ekit-dropdown-open-onclick, .elementskit-dropdown-open");t.length&&(t.removeClass("ekit-dropdown-open-onclick elementskit-dropdown-open"),t.closest(".elementskit-dropdown-has").children("a").first().trigger("focus"),x())}}),a.addEventListener?a.addEventListener("change",H):a.addListener(H),H()}function f(e){return e.children("li").children("a")}function m(e){return e.parent().parent()}function p(e){return c.is(m(e))}function h(e){return m(e).is(t)}function k(e){return e.parent().hasClass("elementskit-megamenu-has")}function g(e){return k(e)?e.parent().children(".elementskit-megamenu-panel"):e.parent().children(".elementskit-dropdown")}function w(e){return g(e).length>0}function v(e){return g(e).hasClass(i)}function b(e){var n=e.clone();return n.find(".ekit-menu-badge").remove(),n.text().trim()}function C(e){var n=g(e),t=n.hasClass(i)||n.hasClass("elementskit-dropdown-open")||l&&r&&e.parent().is(":hover");e.attr("aria-expanded",t?"true":"false")}function x(){u.each(function(){C(e(this))})}function y(e){g(e).removeClass(i).find("."+i).removeClass(i),x()}function _(){f(t).each(function(){y(e(this))})}function A(n){n.parent().siblings("li").children("a").each(function(){y(e(this))}),g(n).addClass(i),k(n)&&ElementsKit_Helper.megaMenuAjaxLoad(n.parent()),x()}function E(e,n){A(e);var t=g(e),i=k(e)?t.find('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])').filter(":visible"):f(t);i.length&&("last"===n?i.last():i.first()).trigger("focus")}function L(e,n){var t=f(m(e)),i=(t.index(e)+n+t.length)%t.length;return t.eq(i)}function K(n,i){var o=i||f(t).is(function(){return v(e(this))});_(),o&&w(n)&&A(n),n.trigger("focus")}function H(){a.matches?(l=!0,t.attr({role:"menubar","aria-label":o.attr("aria-label")||null}),d.each(function(){e(this).attr({role:"menu","aria-label":b(e(this).parent().children("a").first())})}),c.children("li").attr("role","none"),f(c).attr({role:"menuitem",tabindex:"-1"}),f(t).first().attr("tabindex","0")):(_(),l=!1,c.removeAttr("role aria-label"),c.children("li").removeAttr("role"),f(c).removeAttr("role tabindex")),x()}}ElementsKit_Helper.registerWidget("ekit-nav-menu.default",function(t){if(t.find(".elementskit-megamenu-has").length>0){let i=t.find(".ekit-wid-con").data("responsive-breakpoint"),o=t.find(".elementskit-megamenu-has"),r=t.find(".elementskit-menu-container").outerHeight();function s(n,t,i){n.css({width:t}),e(document).width()<Number(i)&&n.removeAttr("style")}e(window).on("resize",function(){t.find(".elementskit-megamenu-panel").css({top:r})}).trigger("resize"),o.on("mouseenter",function(){let n=e(this).data("vertical-menu"),t=e(this).children(".elementskit-megamenu-panel");
1768if(e(this).hasClass("elementskit-dropdown-menu-full_width")&&e(this).hasClass("top_position")){let n=Math.floor(e(this).position().left-e(this).offset().left),t=e(this);t.find(".elementskit-megamenu-panel").css("max-width",e(window).width()),e(window).on("resize",function(){t.find(".elementskit-megamenu-panel").css({left:n+"px"})}).trigger("resize")}!e(this).hasClass("elementskit-dropdown-menu-full_width")&&e(this).hasClass("top_position")&&e(this).on({mouseenter:function(){0===e(".default_menu_position").length&&e(this).parents(".elementor-section-wrap").addClass("default_menu_position")},mouseleave:function(){0!==e(".default_menu_position").length&&e(this).parents(".elementor-section-wrap").removeClass("default_menu_position")}}),n&&n!==undefined?"string"==typeof n?(/^[0-9]/.test(n),s(t,n,i)):t.css({width:n+"px"}):s(t,n,i)}),o.trigger("mouseenter")}if(t.find(".ekit-nav-dropdown-click").length>0){let a=t.find(".ekit-wid-con").data("responsive-breakpoint");t.on("click",".elementskit-dropdown-has > a",function(n){if(n.preventDefault(),e(document).width()<Number(a))return;let i=e(this).parent(),o=e(this).parents(".elementskit-dropdown-has"),r=i.find(">.elementskit-dropdown, >.elementskit-megamenu-panel");t.find(".elementskit-dropdown-has").not(o).find(">.elementskit-dropdown, >.elementskit-megamenu-panel").removeClass("ekit-dropdown-open-onclick"),r.toggleClass("ekit-dropdown-open-onclick")}),e(window).on("resize",function(){e(document).width()<Number(a)&&t.find(".ekit-dropdown-open-onclick").removeClass("ekit-dropdown-open-onclick")}),e(document).on("click",function(n){e(n.target).closest(".elementskit-dropdown-has").length||t.find(".ekit-dropdown-open-onclick").removeClass("ekit-dropdown-open-onclick")}),e(window).on("sticky:stick sticky:unstick",n=>{e(n.target).find(".ekit-dropdown-open-onclick").removeClass("ekit-dropdown-open-onclick"),e(n.target).next().find(".ekit-dropdown-open-onclick").removeClass("ekit-dropdown-open-onclick")})}t.find(".megamenu-ajax-load").length>0&&(t.find(".ekit-nav-dropdown-hover").on("mouseenter",".elementskit-megamenu-has",function(){ElementsKit_Helper.megaMenuAjaxLoad(e(this))}),t.find(".ekit-nav-dropdown-click").on("click",".elementskit-megamenu-has",function(){ElementsKit_Helper.megaMenuAjaxLoad(e(this))})),n(t),"yes"===t.find(".ekit-wid-con").data("close-on-anchor")&&t.on("click",'.elementskit-navbar-nav a[href^="#"]:not(.ekit-menu-dropdown-toggle)',function(){setTimeout(function(){t.find(".elementskit-menu-close.elementskit-menu-toggler").trigger("click")},300)})})}(jQuery)
1769;!function(){"use strict";ElementsKit_Helper.registerWidget("elementskit-header-search.default",function(e){var o=e.find(".ekit_navsearch-button"),t=e.closest("body"),s=e.data("id");o.magnificPopup({type:"inline",fixedContentPos:!0,fixedBgPos:!0,overflowY:"auto",closeBtnInside:!1,callbacks:{beforeOpen:function(){this.st.mainClass="my-mfp-slide-bottom ekit-promo-popup ekit-popup-"+s},open:function(){t.css("overflow","hidden"),t.find(".mfp-close").addClass("ekit-popup-close")},close:function(){t.css("overflow","auto"),t.find(".mfp-close").removeClass("ekit-popup-close")}}})})}(jQuery)
1770;/*! Magnific Popup - v1.2.0 - 2024-06-08
1771* http://dimsemenov.com/plugins/magnific-popup/
1772* Copyright (c) 2024 Dmitry Semenov; */
1773!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(e){function t(){}function n(e,t){d.ev.on(P+e+_,t)}function o(t,n,o,i){var r=document.createElement("div");return r.className="mfp-"+t,o&&(r.innerHTML=o),i?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r}function i(e,t){d.ev.triggerHandler(P+e,t),d.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),d.st.callbacks[e])&&d.st.callbacks[e].apply(d,Array.isArray(t)?t:[t])}function r(t){return t===g&&d.currTemplate.closeBtn||(d.currTemplate.closeBtn=e(d.st.closeMarkup.replace("%title%",d.st.tClose)),g=t),d.currTemplate.closeBtn}function a(){e.magnificPopup.instance||((d=new t).init(),e.magnificPopup.instance=d)}function s(){y&&(v.after(y.addClass(h)).detach(),y=null)}function l(){w&&e(document.body).removeClass(w)}function c(){l(),d.req&&d.req.abort()}var d,p,u,f,m,g,h,v,y,w,C,b="Close",x="BeforeClose",I="MarkupParse",T="Open",k="Change",P="mfp",_="."+P,S="mfp-ready",E="mfp-removing",z="mfp-prevent-close",O=!!window.jQuery,M=e(window),B=(e.magnificPopup={instance:null,proto:t.prototype={constructor:t,init:function(){var t=navigator.appVersion;d.isLowIE=d.isIE8=document.all&&!document.addEventListener,d.isAndroid=/android/gi.test(t),d.isIOS=/iphone|ipad|ipod/gi.test(t),d.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),d.probablyMobile=d.isAndroid||d.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),u=e(document),d.popupsCache={}},open:function(t){if(!1===t.isObj){d.items=t.items.toArray(),d.index=0;for(var a,s=t.items,l=0;l<s.length;l++)if((a=(a=s[l]).parsed?a.el[0]:a)===t.el[0]){d.index=l;break}}else d.items=Array.isArray(t.items)?t.items:[t.items],d.index=t.index||0;if(!d.isOpen){d.types=[],m="",t.mainEl&&t.mainEl.length?d.ev=t.mainEl.eq(0):d.ev=u,t.ke
vendor: 18,540 bytes, line 1773
1773y?(d.popupsCache[t.key]||(d.popupsCache[t.key]={}),d.currTemplate=d.popupsCache[t.key]):d.currTemplate={},d.st=e.extend(!0,{},e.magnificPopup.defaults,t),d.fixedContentPos="auto"===d.st.fixedContentPos?!d.probablyMobile:d.st.fixedContentPos,d.st.modal&&(d.st.closeOnContentClick=!1,d.st.closeOnBgClick=!1,d.st.showCloseBtn=!1,d.st.enableEscapeKey=!1),d.bgOverlay||(d.bgOverlay=o("bg").on("click"+_,function(){d.close()}),d.wrap=o("wrap").attr("tabindex",-1).on("click"+_,function(e){d._checkIfClose(e.target)&&d.close()}),d.container=o("container",d.wrap)),d.contentContainer=o("content"),d.st.preloader&&(d.preloader=o("preloader",d.container,d.st.tLoading));var c=e.magnificPopup.modules;for(l=0;l<c.length;l++){var p=(p=c[l]).charAt(0).toUpperCase()+p.slice(1);d["init"+p].call(d)}i("BeforeOpen"),d.st.showCloseBtn&&(d.st.closeBtnInside?(n(I,function(e,t,n,o){n.close_replaceWith=r(o.type)}),m+=" mfp-close-btn-in"):d.wrap.append(r())),d.st.alignTop&&(m+=" mfp-align-top"),d.fixedContentPos?d.wrap.css({overflow:d.st.overflowY,overflowX:"hidden",overflowY:d.st.overflowY}):d.wrap.css({top:M.scrollTop(),position:"absolute"}),!1!==d.st.fixedBgPos&&("auto"!==d.st.fixedBgPos||d.fixedContentPos)||d.bgOverlay.css({height:u.height(),position:"absolute"}),d.st.enableEscapeKey&&u.on("keyup"+_,function(e){27===e.keyCode&&d.close()}),M.on("resize"+_,function(){d.updateSize()}),d.st.closeOnContentClick||(m+=" mfp-auto-cursor"),m&&d.wrap.addClass(m);var f=d.wH=M.height(),g={},h=(d.fixedContentPos&&d._hasScrollBar(f)&&(h=d._getScrollbarSize())&&(g.marginRight=h),d.fixedContentPos&&(d.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden"),d.st.mainClass);return d.isIE7&&(h+=" mfp-ie7"),h&&d._addClassToMFP(h),d.updateItemHTML(),i("BuildControls"),e("html").css(g),d.bgOverlay.add(d.wrap).prependTo(d.st.prependTo||e(document.body)),d._lastFocusedEl=document.activeElement,setTimeout(function(){d.content?(d._addClassToMFP(S),d._setFocus()):d.bgOverlay.addClass(S),u.on("focusin"+_,d._onFocusIn)},16),d.isOpen=!0,d.updateSize(f),i(T),t}d.updateItemHTML()},close:function(){d.isOpen&&(i(x),d.isOpen=!1,d.st.removalDelay&&!d.isLowIE&&d.supportsTransition?(d._addClassToMFP(E),setTimeout(function(){d._close()},d.st.removalDelay)):d._close())},_close:function(){i(b);var t=E+" "+S+" ";d.bgOverlay.detach(),d.wrap.detach(),d.container.empty(),d.st.mainClass&&(t+=d.st.mainClass+" "),d._removeClassFromMFP(t),d.fixedContentPos&&(t={marginRight:""},d.isIE7?e("body, html").css("overflow",""):t.overflow="",e("html").css(t)),u.off("keyup.mfp focusin"+_),d.ev.off(_),d.wrap.attr("class","mfp-wrap").removeAttr("style"),d.bgOverlay.attr("class","mfp-bg"),d.container.attr("class","mfp-container"),!d.st.showCloseBtn||d.st.closeBtnInside&&!0!==d.currTemplate[d.currItem.type]||d.currTemplate.closeBtn&&d.currTemplate.closeBtn.detach(),d.st.autoFocusLast&&d._lastFocusedEl&&e(d._lastFocusedEl).trigger("focus"),d.currItem=null,d.content=null,d.currTemplate=null,d.prevHeight=0,i("AfterClose")},updateSize:function(e){var t;d.isIOS?(t=document.documentElement.clientWidth/window.innerWidth,t=window.innerHeight*t,d.wrap.css("height",t),d.wH=t):d.wH=e||M.height(),d.fixedContentPos||d.wrap.css("height",d.wH),i("Resize")},updateItemHTML:function(){var t=d.items[d.index],n=(d.contentContainer.detach(),d.content&&d.content.detach(),(t=t.parsed?t:d.parseEl(d.index)).type),o=(i("BeforeChange",[d.currItem?d.currItem.type:"",n]),d.currItem=t,d.currTemplate[n]||(i("FirstMarkupParse",o=!!d.st[n]&&d.st[n].markup),d.currTemplate[n]=!o||e(o)),f&&f!==t.type&&d.container.removeClass("mfp-"+f+"-holder"),d["get"+n.charAt(0).toUpperCase()+n.slice(1)](t,d.currTemplate[n]));d.appendContent(o,n),t.preloaded=!0,i(k,t),f=t.type,d.container.prepend(d.contentContainer),i("AfterChange")},appendContent:function(e,t){(d.content=e)?d.st.showCloseBtn&&d.st.closeBtnInside&&!0===d.currTemplate[t]?d.content.find(".mfp-close").length||d.content.append(r()):d.content=e:d.content="",i("BeforeAppend"),d.container.addClass("mfp-"+t+"-holder"),d.contentContainer.append(d.content)},parseEl:function(t){var n,o=d.items[t];if((o=o.tagName?{el:e(o)}:(n=o.type,{data:o,src:o.src})).el){for(var r=d.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){n=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=n||d.st.type||"inline",o.index=t,o.parsed=!0,d.items[t]=o,i("ElementParse",o),d.items[t]},addGroup:function(e,t){function n(n){n.mfpEl=this,d._openClick(n,e,t)}var o="click.magnificPopup";(t=t||{}).mainEl=e,t.items?(t.isObj=!0,e.off(o).on(o,n)):(t.isObj=!1,t.delegate?e.off(o).on(o,t.delegate,n):(t.items=e).off(o).on(o,n))},_openClick:function(t,n,o){var i=(void 0!==o.midClick?o:e.magnificPopup.defaults).midClick;if(i||!(2===t.which||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)){if(i=(void 0!==o.disableOn?o:e.magnificPopup.defaults).disableOn)if("function"==typeof i){if(!i.call(d))return!0}else if(M.width()<i)return!0;t.type&&(t.preventDefault(),d.isOpen)&&t.stopPropagation(),o.el=e(t.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),d.open(o)}},updateStatus:function(e,t){var n;d.preloader&&(p!==e&&d.container.removeClass("mfp-s-"+p),i("UpdateStatus",n={status:e,text:t=t||"loading"!==e?t:d.st.tLoading}),e=n.status,t=n.text,d.st.allowHTMLInStatusIndicator?d.preloader.html(t):d.preloader.text(t),d.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),d.container.addClass("mfp-s-"+e),p=e)},_checkIfClose:function(t){if(!e(t).closest("."+z).length){var n=d.st.closeOnContentClick,o=d.st.closeOnBgClick;if(n&&o)return!0;if(!d.content||e(t).closest(".mfp-close").length||d.preloader&&t===d.preloader[0])return!0;if(t===d.content[0]||e.contains(d.content[0],t)){if(n)return!0}else if(o&&e.contains(document,t))return!0;return!1}},_addClassToMFP:function(e){d.bgOverlay.addClass(e),d.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),d.wrap.removeClass(e)},_hasScrollBar:function(e){return(d.isIE7?u.height():document.body.scrollHeight)>(e||M.height())},_setFocus:function(){(d.st.focus?d.content.find(d.st.focus).eq(0):d.wrap).trigger("focus")},_onFocusIn:function(t){if(t.target!==d.wrap[0]&&!e.contains(d.wrap[0],t.target))return d._setFocus(),!1},_parseMarkup:function(t,n,o){var r;o.data&&(n=e.extend(o.data,n)),i(I,[t,n,o]),e.each(n,function(n,o){if(void 0===o||!1===o)return!0;var i,a;1<(r=n.split("_")).length?0<(i=t.find(_+"-"+r[0])).length&&("replaceWith"===(a=r[1])?i[0]!==o[0]&&i.replaceWith(o):"img"===a?i.is("img")?i.attr("src",o):i.replaceWith(e("<img>").attr("src",o).attr("class",i.attr("class"))):i.attr(r[1],o)):d.st.allowHTMLInTemplate?t.find(_+"-"+n).html(o):t.find(_+"-"+n).text(o)})},_getScrollbarSize:function(){var e;return void 0===d.scrollbarSize&&((e=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),d.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),d.scrollbarSize}},modules:[],open:function(t,n){return a(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0,allowHTMLInStatusIndicator:!1,allowHTMLInTemplate:!1}},e.fn.magnificPopup=function(t){a();var n,o,i,r=e(this);return"string"==typeof t?"open"===t?(n=O?r.data("magnificPopup"):r[0].magnificPopup,o=parseInt(arguments[1],10)||0,i=n.items?n.items[o]:(i=r,(i=n.delegate?i.find(n.delegate):i).eq(o)),d._openClick({mfpEl:i},r,n)):d.isOpen&&d[t].apply(d,Array.prototype.slice.call(arguments,1)):(t=e.extend(!0,{},t),O?r.data("magnificPopup",t):r[0].magnificPopup=t,d.addGroup(r,t)),r},"inline"),L=(e.magnificPopup.registerModule(B,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){d.types.push(B),n(b+"."+B,function(){s()})},getInline:function(t,n){var i,r,a;return s(),t.src?(i=d.st.inline,(r=e(t.src)).length?((a=r[0].parentNode)&&a.tagName&&(v||(h=i.hiddenClass,v=o(h),h="mfp-"+h),y=r.after(v).detach().removeClass(h)),d.updateStatus("ready")):(d.updateStatus("error",i.tNotFound),r=e("<div>")),t.inlineElement=r):(d.updateStatus("ready"),d._parseMarkup(n,{},t),n)}}}),"ajax");function H(e){var t;d.currTemplate[N]&&(t=d.currTemplate[N].find("iframe")).length&&(e||(t[0].src="//about:blank"),d.isIE8)&&t.css("display",e?"block":"none")}function A(e){var t=d.items.length;return t-1<e?e-t:e<0?t+e:e}function F(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)}e.magnificPopup.registerModule(L,{options:{settings:null,cursor:"mfp-ajax-cur",tError:"The content could not be loaded."},proto:{initAjax:function(){d.types.push(L),w=d.st.ajax.cursor,n(b+"."+L,c),n("BeforeChange."+L,c)},getAjax:function(t){w&&e(document.body).addClass(w),d.updateStatus("loading");var n=e.extend({url:t.src,success:function(n,o,r){i("ParseAjax",n={data:n,xhr:r}),d.appendContent(e(n.data),L),t.finished=!0,l(),d._setFocus(),setTimeout(function(){d.wrap.addClass(S)},16),d.updateStatus("ready"),i("AjaxContentAdded")},error:function(){l(),t.finished=t.loadError=!0,d.updateStatus("error",d.st.ajax.tError.replace("%url%",t.src))}},d.st.ajax.settings);return d.req=e.ajax(n),""}}}),e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:"The image could not be loaded."},proto:{initImage:function(){var t=d.st.image,o=".image";d.types.push("image"),n(T+o,function(){"image"===d.currItem.type&&t.cursor&&e(document.body).addClass(t.cursor)}),n(b+o,function(){t.cursor&&e(document.body).removeClass(t.cursor),M.off("resize"+_)}),n("Resize"+o,d.resizeImage),d.isLowIE&&n("AfterChange",d.resizeImage)},resizeImage:function(){var e,t=d.currItem;t&&t.img&&d.st.image.verticalFit&&(e=0,d.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",d.wH-e))},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,C&&clearInterval(C),e.isCheckingImgSize=!1,i("ImageHasSize",e),e.imgHidden)&&(d.content&&d.content.removeClass("mfp-loading"),e.imgHidden=!1)},findImageSize:function(e){var t=0,n=e.img[0];!function o(i){C&&clearInterval(C),C=setInterval(function(){0<n.naturalWidth?d._onImageHasSize(e):(200<t&&clearInterval(C),3===++t?o(10):40===t?o(50):100===t&&o(500))},i)}(1)},getImage:function(t,n){function o(){t&&(t.img.off(".mfploader"),t===d.currItem&&(d._onImageHasSize(t),d.updateStatus("error",s.tError.replace("%url%",t.src))),t.hasSize=!0,t.loaded=!0,t.loadError=!0)}var r,a=0,s=d.st.image,l=n.find(".mfp-img");return l.length&&((r=document.createElement("img")).className="mfp-img",t.el&&t.el.find("img").length&&(r.alt=t.el.find("img").attr("alt")),t.img=e(r).on("load.mfploader",function c(){t&&(t.img[0].complete?(t.img.off(".mfploader"),t===d.currItem&&(d._onImageHasSize(t),d.updateStatus("ready")),t.hasSize=!0,t.loaded=!0,i("ImageLoadComplete")):++a<200?setTimeout(c,100):o())}).on("error.mfploader",o),r.src=t.src,l.is("img")&&(t.img=t.img.clone()),0<(r=t.img[0]).naturalWidth?t.hasSize=!0:r.width||(t.hasSize=!1)),d._parseMarkup(n,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=d.st.image.titleSrc;if(t){if("function"==typeof t)return t.call(d,e);if(e.el)return e.el.attr(t)||""}return""}(t),img_replaceWith:t.img},t),d.resizeImage(),t.hasSize?(C&&clearInterval(C),t.loadError?(n.addClass("mfp-loading"),d.updateStatus("error",s.tError.replace("%url%",t.src))):(n.removeClass("mfp-loading"),d.updateStatus("ready"))):(d.updateStatus("loading"),t.loading=!0,t.hasSize||(t.imgHidden=!0,n.addClass("mfp-loading"),d.findImageSize(t))),n}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,t,o,r,a,s,l=d.st.zoom,c=".zoom";l.enabled&&d.supportsTransition&&(t=l.duration,o=function(e){e=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image");var t="all "+l.duration/1e3+"s "+l.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return n["-webkit-"+o]=n["-moz-"+o]=n["-o-"+o]=n[o]=t,e.css(n),e},r=function(){d.content.css("visibility","visible")},n("BuildControls"+c,function(){d._allowZoom()&&(clearTimeout(a),d.content.css("visibility","hidden"),(e=d._getItemToZoom())?((s=o(e)).css(d._getOffset()),d.wrap.append(s),a=setTimeout(function(){s.css(d._getOffset(!0)),a=setTimeout(function(){r(),setTimeout(function(){s.remove(),e=s=null,i("ZoomAnimationEnded")},16)},t)},16)):r())}),n(x+c,function(){if(d._allowZoom()){if(clearTimeout(a),d.st.removalDelay=t,!e){if(!(e=d._getItemToZoom()))return;s=o(e)}s.css(d._getOffset(!0)),d.wrap.append(s),d.content.css("visibility","hidden"),setTimeout(function(){s.css(d._getOffset())},16)}}),n(b+c,function(){d._allowZoom()&&(r(),s&&s.remove(),e=null)}))},_allowZoom:function(){return"image"===d.currItem.type},_getItemToZoom:function(){return!!d.currItem.hasSize&&d.currItem.img},_getOffset:function(t){var n=(t=t?d.currItem.img:d.st.zoom.opener(d.currItem.el||d.currItem)).offset(),o=parseInt(t.css("padding-top"),10),i=parseInt(t.css("padding-bottom"),10);n.top-=e(window).scrollTop()-o,t={width:t.width(),height:(O?t.innerHeight():t[0].offsetHeight)-i-o};return(j=void 0===j?void 0!==document.createElement("p").style.MozTransform:j)?t["-moz-transform"]=t.transform="translate("+n.left+"px,"+n.top+"px)":(t.left=n.left,t.top=n.top),t}}});var j,N="iframe",D=(e.magnificPopup.registerModule(N,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){d.types.push(N),n("BeforeChange",function(e,t,n){t!==n&&(t===N?H():n===N&&H(!0))}),n(b+"."+N,function(){H()})},getIframe:function(t,n){var o=t.src,i=d.st.iframe,r=(e.each(i.patterns,function(){if(-1<o.indexOf(this.index))return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1}),{});return i.srcAction&&(r[i.srcAction]=o),d._parseMarkup(n,r,t),d.updateStatus("ready"),n}}}),e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%",langDir:null,loop:!0},proto:{initGallery:function(){var t=d.st.gallery,o=".mfp-gallery";if(d.direction=!0,!t||!t.enabled)return!1;t.langDir||(t.langDir=document.dir||"ltr"),m+=" mfp-gallery",n(T+o,function(){t.navigateByImgClick&&d.wrap.on("click"+o,".mfp-img",function(){if(1<d.items.length)return d.next(),!1}),u.on("keydown"+o,function(e){37===e.keyCode?"rtl"===t.langDir?d.next():d.prev():39===e.keyCode&&("rtl"===t.langDir?d.prev():d.next())}),d.updateGalleryButtons()}),n("UpdateStatus"+o,function(){d.updateGalleryButtons()}),n("UpdateStatus"+o,function(e,t){t.text&&(t.text=F(t.text,d.currItem.index,d.items.length))}),n(I+o,function(e,n,o,i){var r=d.items.length;o.counter=1<r?F(t.tCounter,i.index,r):""}),n("BuildControls"+o,function(){var n,o,i,r,a;1<d.items.length&&t.arrows&&!d.arrowLeft&&(o="rtl"===t.langDir?(r=t.tNext,n=t.tPrev,a="next","prev"):(r=t.tPrev,n=t.tNext,a="prev","next"),i=t.arrowMarkup,r=d.arrowLeft=e(i.replace(/%title%/gi,r).replace(/%action%/gi,a).replace(/%dir%/gi,"left")).addClass(z),a=d.arrowRight=e(i.replace(/%title%/gi,n).replace(/%action%/gi,o).replace(/%dir%/gi,"right")).addClass(z),"rtl"===t.langDir?(d.arrowNext=r,d.arrowPrev=a):(d.arrowNext=a,d.arrowPrev=r),r.on("click",function(){"rtl"===t.langDir?d.next():d.prev()}),a.on("click",function(){"rtl"===t.langDir?d.prev():d.next()}),d.container.append(r.add(a)))}),n(k+o,function(){d._preloadTimeout&&clearTimeout(d._preloadTimeout),d._preloadTimeout=setTimeout(function(){d.preloadNearbyImages(),d._preloadTimeout=null},16)}),n(b+o,function(){u.off(o),d.wrap.off("click"+o),d.arrowRight=d.arrowLeft=null})},next:function(){var e=A(d.index+1);if(!d.st.gallery.loop&&0===e)return!1;d.direction=!0,d.index=e,d.updateItemHTML()},prev:function(){var e=d.index-1;if(!d.st.gallery.loop&&e<0)return!1;d.direction=!1,d.index=A(e),d.updateItemHTML()},goTo:function(e){d.direction=e>=d.index,d.index=e,d.updateItemHTML()},preloadNearbyImages:function(){for(var e=d.st.gallery.preload,t=Math.min(e[0],d.items.length),n=Math.min(e[1],d.items.length),o=1;o<=(d.direction?n:t);o++)d._preloadItem(d.index+o);for(o=1;o<=(d.direction?t:n);o++)d._preloadItem(d.index-o)},_preloadItem:function(t){var n;t=A(t),d.items[t].preloaded||((n=d.items[t]).parsed||(n=d.parseEl(t)),i("LazyLoad",n),"image"===n.type&&(n.img=e('<img class="mfp-img" />').on("load.mfploader",function(){n.hasSize=!0}).on("error.mfploader",function(){n.hasSize=!0,n.loadError=!0,i("LazyLoadError",n)}).attr("src",n.src)),n.preloaded=!0)},updateGalleryButtons:function(){d.st.gallery.loop||"object"!=typeof d.arrowPrev||null===d.arrowPrev||(0===d.index?d.arrowPrev.hide():d.arrowPrev.show(),d.index===d.items.length-1?d.arrowNext.hide():d.arrowNext.show())}}}),"retina");e.magnificPopup.registerModule(D,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){var e,t;1<window.devicePixelRatio&&(e=d.st.retina,t=e.ratio,1<(t=isNaN(t)?t():t))&&(n("ImageHasSize."+D,function(e,n){
1773n.img.css({"max-width":n.img[0].naturalWidth/t,width:"100%"})}),n("ElementParse."+D,function(n,o){o.src=e.replaceSrc(o,t)}))}}}),a()});
1774;!function(e){"use strict";ElementsKit_Helper.registerWidget("elementskit-header-offcanvas.default",function(i){var s=i.find(".ekit-sidebar-group"),t=i.find(".ekit_offcanvas-sidebar, .ekit_close-side-widget, .ekit-overlay"),o=i.find(".ekit-sidebar-group").data("settings");t.on("click",function(i){i.preventDefault(),s.toggleClass("ekit_isActive"),"yes"===o?.disable_bodyscroll&&(s.hasClass("ekit_isActive")?e("body").css("overflow","hidden"):e("body").css("overflow",""))})})}(jQuery)
1775;var localize={"ajaxurl":"https://www.cm-benavente.pt/wp-admin/admin-ajax.php","nonce":"94f714da28","i18n":{"added":"Added ","compare":"Compare","loading":"Loading..."},"eael_translate_text":{"required_text":"is a required field","invalid_text":"Invalid","billing_text":"Billing","shipping_text":"Shipping","fg_mfp_counter_text":"of"},"page_permalink":"https://www.cm-benavente.pt/","cart_redirectition":"","cart_page_url":"","el_breakpoints":{"mobile":{"label":"Mobile ao alto","value":767,"default_value":767,"direction":"max","is_enabled":!0},"mobile_extra":{"label":"Mobile ao baixo","value":880,"default_value":880,"direction":"max","is_enabled":!0},"tablet":{"label":"Tablet Portrait","value":1024,"default_value":1024,"direction":"max","is_enabled":!0},"tablet_extra":{"label":"Tablet Landscape","value":1200,"default_value":1200,"direction":"max","is_enabled":!0},"laptop":{"label":"Port\u00e1til","value":1366,"default_value":1366,"direction":"max","is_enabled":!0},"widescreen":{"label":"Widescreen","value":2400,"default_value":2400,"direction":"min","is_enabled":!0}}}
1776;!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=123)}({123:function(e,t,n){"use strict";n.r(t);var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var o=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var i=function(e,t){return function(n,i,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(o(n)&&r(i))if("function"==typeof a)if("number"==typeof s){var c={callback:a,priority:s,namespace:i};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,a,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,a){var s=e[t];if(o(i)&&(n||r(a))){if(!s[i])return 0;var l=0;if(n)l=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else for(var c=s[i].handlers,u=function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},d=c.length-1;d>=0;
1776d--)u(d);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,a),l}}};var s=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if(!i||!i.length)return n?s[0]:void 0;var c={name:r,currentIndex:0};for(o.__current.push(c);c.currentIndex<i.length;){var u=i[c.currentIndex],d=u.callback.apply(null,s);n&&(s[0]=d),c.currentIndex++}return o.__current.pop(),n?s[0]:void 0}};var c=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}};var u=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};var d=function(e,t){return function(n){var r=e[t];if(o(n))return r[n]&&r[n].runs?r[n].runs:0}},f=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=i(this,"actions"),this.addFilter=i(this,"filters"),this.removeAction=a(this,"actions"),this.removeFilter=a(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=a(this,"actions",!0),this.removeAllFilters=a(this,"filters",!0),this.doAction=l(this,"actions"),this.applyFilters=l(this,"filters",!0),this.currentAction=c(this,"actions"),this.currentFilter=c(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=d(this,"actions"),this.didFilter=d(this,"filters")};var h=function(){return new f},p=h();p.addAction,p.addFilter,p.removeAction,p.removeFilter,p.hasAction,p.hasFilter,p.removeAllActions,p.removeAllFilters,p.doAction,p.applyFilters,p.currentAction,p.currentFilter,p.doingAction,p.doingFilter,p.didAction,p.didFilter,p.actions,p.filters;function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.isEditMode=!1,window.eael=window.ea={hooks:h(),isEditMode:!1,elementStatusCheck:function(e){return!(!window.eaElementList||!(e in window.eaElementList))||(window.eaElementList=g(g({},window.eaElementList),{},y({},e,!0)),!1)},debounce:function(e,t){var n;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(r,o)}),t)}}},eael.hooks.addAction("widgets.reinit","ea",(function(e){var t=jQuery(".eael-filter-gallery-container",e),n=jQuery(".eael-post-grid:not(.eael-post-carousel)",e),r=jQuery(".eael-twitter-feed-masonry",e),o=jQuery(".eael-instafeed",e),i=jQuery(".premium-gallery-container",e),a=jQuery(".eael-event-calendar-cls",e),s=jQuery(".eael-testimonial-slider",e),l=jQuery(".eael-tm-carousel",e),c=jQuery(".eael-post-carousel:not(.eael-post-grid)",e),u=jQuery(".eael-logo-carousel",e),d=jQuery(".eael-twitter-feed-carousel",e);t.length&&t.isotope("layout"),n.length&&n.isotope("layout"),r.length&&r.isotope("layout"),o.length&&o.isotope("layout"),i.length&&i.isotope("layout"),a.length&&eael.hooks.doAction("eventCalendar.reinit"),s.length&&eael.hooks.doAction("testimonialSlider.reinit"),l.length&&eael.hooks.doAction("teamMemberCarousel.reinit"),c.length&&eael.hooks.doAction("postCarousel.reinit"),u.length&&eael.hooks.doAction("logoCarousel.reinit"),d.length&&eael.hooks.doAction("twitterCarousel.reinit")}));
1776var w,b=function(e){void 0===window.eaelPreventResizeOnClick&&window.dispatchEvent(new Event("resize")),(e="object"===v(e)?e:jQuery(e)).find(".swiper-wrapper").each((function(){var e=jQuery(this).css("transform");jQuery(this).css("transform",e)}))};eael.hooks.addAction("ea-advanced-tabs-triggered","ea",b),eael.hooks.addAction("ea-advanced-accordion-triggered","ea",b),jQuery(window).on("elementor/frontend/init",(function(){window.isEditMode=elementorFrontend.isEditMode(),window.eael.isEditMode=elementorFrontend.isEditMode(),eael.hooks.doAction("init"),eael.isEditMode&&eael.hooks.doAction("editMode.init")})),function(e){eael.getToken=function(){localize.nonce&&!eael.noncegenerated&&e.ajax({url:localize.ajaxurl,type:"post",data:{action:"eael_get_token"},success:function(e){e.success&&(localize.nonce=e.data.nonce,eael.noncegenerated=!0)}})},eael.sanitizeURL=function(e){if(e.startsWith("/")||e.startsWith("#"))return e;try{var t=new URL(e);if(!["http:","https:","ftp:","ftps:","mailto:","news:","irc:","irc6:","ircs:","gopher:","nntp:","feed:","telnet:","mms:","rtsp:","sms:","svn:","tel:","fax:","xmpp:","webcal:","urn:"].includes(t.protocol))throw new Error("Invalid protocol");return t.toString()}catch(e){return console.error("Error sanitizing URL:",e.message),"#"}},eael.triggerClickById=function(t){if("string"!=typeof t||""===t||"undefined"===t)return!1;var n=document.getElementById(t);return!!n&&(e(n).trigger("click"),!0)},eael.isSafeTriggerSelector=function(e){return!("string"!=typeof e||!e.length||e.length>200)&&e.trim().split(/\s+/).every((function(e){return/^(?:[.#][A-Za-z0-9_-]+)+$/.test(e)}))};var t=!0;window.addEventListener("hashchange",(function(){if(t){var e=window.location.hash.substr(1);e="safari"===e?"eael-safari":e,eael.triggerClickById(e)}})),e("a").on("click",(function(n){var r,o=e(this).attr("href");(r=(o=void 0===o?"":o).startsWith("#"))||(r=(o=o.replace(localize.page_permalink,"")).startsWith("#")),r&&(t=!1,setTimeout((function(){t=!0}),100));try{if(o.startsWith("#!")){var i=o.replace("#!","#");e(i).trigger("click")}else if(r&&(e(o).hasClass("eael-tab-item-trigger")||e(o).hasClass("eael-accordion-header"))&&(e(o).trigger("click"),void 0!==o&&o)){var a=e(o).closest(".eael-advance-tabs");if(a.length>0){var s=a.data("custom-id-offset");s=s?parseFloat(s):0,e("html, body").animate({scrollTop:e(o).offset().top-s},300)}}}catch(e){}})),e(document).on("click",".e-n-tab-title",(function(){var e=this.closest(".e-n-tabs-heading");setTimeout((function(){var t=e?e.scrollLeft:null;window.dispatchEvent(new Event("resize")),e&&null!==t&&(e.scrollLeft=t)}),100)}))}(jQuery),(w=jQuery)(document).on("click",".theme-savoy .eael-product-popup .nm-qty-minus, .theme-savoy .eael-product-popup .nm-qty-plus",(function(e){var t=w(this),n=t.closest(".quantity").find(".qty"),r=parseFloat(n.val()),o=parseFloat(n.attr("max")),i=parseFloat(n.attr("min")),a=n.attr("step");r&&""!==r&&"NaN"!==r||(r=0),""!==o&&"NaN"!==o||(o=""),""!==i&&"NaN"!==i||(i=0),"any"!==a&&""!==a&&void 0!==a&&"NaN"!==parseFloat(a)||(a=1),t.hasClass("nm-qty-plus")?o&&(o==r||r>o)?n.val(o):n.val(r+parseFloat(a)):i&&(i==r||r<i)?n.val(i):r>0&&n.val(r-parseFloat(a))})),function(e){e.fn.isInViewport=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;if(e(this).length<1)return!1;var n=e(this).offset().top,r=n+e(this).outerHeight()/t,o=e(window).scrollTop(),i=o+e(window).height()/t;return r>o&&n<i},e(document).ready((function(){var e=new URLSearchParams(location.search);if(e.has("popup-selector")&&(e.has("eael-lostpassword")||e.has("eael-resetpassword"))){var t=e.get("popup-selector").replace(/_/g," ");eael.isSafeTriggerSelector(t)&&setTimeout((function(){jQuery(t).trigger("click")}),300)}})),e(document).on("click",".eael-onpage-edit-template",(function(){var t=e(this),n=t.data("eael-template-id"),r=t.data("page-id"),o=t.data("mode");"edit"===o?(parent.window.$e.internal("panel/state-loading"),parent.window.$e.run("editor/documents/switch",{id:parseInt(n)}).then((function(){t.data("mode","save"),t.find("span").text("Save & Back"),t.find("i").addClass("eicon-arrow-left").removeClass("eicon-edit"),t.closest(".eael-onpage-edit-template-wrapper").addClass("eael-onpage-edit-activate").parent().addClass("eael-widget-otea-active"),parent.window.$e.internal("panel/state-ready")}))):"save"===o&&(parent.window.$e.internal("panel/state-loading"),parent.window.$e.run("editor/documents/switch",{id:parseInt(r),mode:"save",shouldScroll:!1}).then((function(){parent.window.$e.internal("panel/state-ready"),t.data("mode","edit")})))}
1776))}(jQuery)}});
1777;/*! This file is auto-generated */
1778"use strict";var wp;(wp||={}).hooks=(()=>{var v=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var w=(e,n)=>{for(var s in n)v(e,s,{get:n[s],enumerable:!0})},D=(e,n,s,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of g(n))!I.call(e,t)&&t!==s&&v(e,t,{get:()=>n[t],enumerable:!(r=S(n,t))||r.enumerable});return e};var T=e=>D(v({},"__esModule",{value:!0}),e);var le={};w(le,{actions:()=>ae,addAction:()=>J,addFilter:()=>K,applyFilters:()=>N,applyFiltersAsync:()=>ee,createHooks:()=>F,currentAction:()=>te,currentFilter:()=>re,defaultHooks:()=>b,didAction:()=>ie,didFilter:()=>se,doAction:()=>X,doActionAsync:()=>Y,doingAction:()=>ne,doingFilter:()=>oe,filters:()=>ce,hasAction:()=>P,hasFilter:()=>Q,removeAction:()=>L,removeAllActions:()=>U,removeAllFilters:()=>W,removeFilter:()=>M});function z(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}var m=z;function E(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}var f=E;function Z(e,n){return function(r,t,a,i=10){let c=e[n];if(!f(r)||!m(t))return;if(typeof a!="function"){console.error("The hook callback must be a function.");return}if(typeof i!="number"){console.error("If specified, the hook priority must be a number.");return}let l={callback:a,priority:i,namespace:t};if(c[r]){let o=c[r].handlers,d;for(d=o.length;d>0&&!(i>=o[d-1].priority);d--);d===o.length?o[d]=l:o.splice(d,0,l),c.__current.forEach(h=>{h.name===r&&h.currentIndex>=d&&h.currentIndex++})}else c[r]={handlers:[l],runs:0};r!=="hookAdded"&&e.doAction("hookAdded",r,t,a,i)}}var H=Z;function C(e,n,s=!1){return function(t,a){let i=e[n];if(!f(t)||!s&&!m(a))return;if(!i[t])return 0;let c=0;if(s)c=i[t].handlers.length,i[t]={runs:i[t].runs,handlers:[]};else{let l=i[t].handlers;for(let o=l.length-1;o>=0;o--)l[o].namespace===a&&(l.splice(o,1),c++,i.__current.forEach(d=>{d.name===t&&d.currentIndex>=o&&d.currentIndex--}))}return t!=="hookRemoved"&&e.doAction("hookRemoved",t,a),c}}var p=C;function O(e,n){return function(r,t){let a=e[n];return typeof t<"u"?r in a&&a[r].handlers.some(i=>i.namespace===t):r in a}}var _=O;function j(e,n,s,r){return function(a,...i){let c=e[n];c[a]||(c[a]={handlers:[],runs:0}),c[a].runs++;let l=c[a].handlers;if(!l||!l.length)return s?i[0]:void 0;let o={name:a,currentIndex:0};async function d(){try{c.__current.add(o);let u=s?i[0]:void 0;for(;o.currentIndex<l.length;)u=await l[o.currentIndex].callback.apply(null,i),s&&(i[0]=u),o.currentIndex++;return s?u:void 0}finally{c.__current.delete(o)}}function h(){try{c.__current.add(o);let u=s?i[0]:void 0;for(;o.currentIndex<l.length;)u=l[o.currentIndex].callback.apply(null,i),s&&(i[0]=u),o.currentIndex++;return s?u:void 0}finally{c.__current.delete(o)}}return(r?d:h)()}}var A=j;function $(e,n){return function(){let r=e[n];return Array.from(r.__current).at(-1)?.name??null}}var y=$;function V(e,n){return function(r){let t=e[n];return typeof r>"u"?t.__current.size>0:Array.from(t.__current).some(a=>a.name===r)}}var k=V;function q(e,n){return function(r){let t=e[n];if(f(r))return t[r]&&t[r].runs?t[r].runs:0}}var x=q;var B=class{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=H(this,"actions"),this.addFilter=H(this,"filters"),this.removeAction=p(this,"actions"),this.removeFilter=p(this,"filters"),this.hasAction=_(this,"actions"),this.hasFilter=_(this,"filters"),this.removeAllActions=p(this,"actions",!0),this.removeAllFilters=p(this,"filters",!0),this.doAction=A(this,"actions",!1,!1),this.doActionAsync=A(this,"actions",!1,!0),this.applyFilters=A(this,"filters",!0,!1),this.applyFiltersAsync=A(this,"filters",!0,!0),this.currentAction=y(this,"actions"),this.currentFilter=y(this,"filters"),this.doingAction=k(this,"actions"),this.doingFilter=k(this,"filters"),this.didAction=x(this,"actions"),this.didFilter=x(this,"filters")}};function G(){return new B}var F=G;var b=F(),{addAction:J,addFilter:K,removeAction:L,removeFilter:M,hasAction:P,hasFilter:Q,removeAllActions:U,removeAllFilters:W,doAction:X,doActionAsync:Y,applyFilters:N,applyFiltersAsync:ee,currentAction:te,currentFilter:re,doingAction:ne,doingFilter:oe,didAction:ie,didFilter:se,actions:ae,filters:ce}=b;return T(le);})();
1779;/*! This file is auto-generated */
1780"use strict";var wp;(wp||={}).i18n=(()=>{var nt=Object.create;var L=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var it=Object.getOwnPropertyNames;var ut=Object.getPrototypeOf,lt=Object.prototype.hasOwnProperty;var ft=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),ot=(t,r)=>{for(var e in r)L(t,e,{get:r[e],enumerable:!0})},O=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of it(r))!lt.call(t,u)&&u!==e&&L(t,u,{get:()=>r[u],enumerable:!(n=at(r,u))||n.enumerable});return t};var st=(t,r,e)=>(e=t!=null?nt(ut(t)):{}
1780,O(r||!t||!t.__esModule?L(e,"default",{value:t,enumerable:!0}):e,t)),pt=t=>O(L({},"__esModule",{value:!0}),t);var $=ft((It,M)=>{M.exports=window.wp.hooks});var yt={};ot(yt,{__:()=>Z,_n:()=>G,_nx:()=>B,_x:()=>q,createI18n:()=>R,defaultI18n:()=>H,getLocaleData:()=>j,hasTranslation:()=>Q,isRTL:()=>J,resetLocaleData:()=>U,setLocaleData:()=>z,sprintf:()=>P,subscribe:()=>X});var ct=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function T(t,...r){var e=0;return Array.isArray(r[0])&&(r=r[0]),t.replace(ct,function(){var n,u,l,o,f;return n=arguments[3],u=arguments[5],l=arguments[7],o=arguments[9],o==="%"?"%":(l==="*"&&(l=r[e],e++),u===void 0?(n===void 0&&(n=e+1),e++,f=r[n-1]):r[0]&&typeof r[0]=="object"&&r[0].hasOwnProperty(u)&&(f=r[0][u]),o==="f"?f=parseFloat(f)||0:o==="d"&&(f=parseInt(f)||0),l!==void 0&&(o==="f"?f=f.toFixed(l):o==="s"&&(f=f.substr(0,l))),f??"")})}function P(t,...r){return T(t,...r)}var D,I,h,N;D={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1};I=["(","?"];h={")":["("],":":["?","?:"]};N=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;function b(t){for(var r=[],e=[],n,u,l,o;n=t.match(N);){for(u=n[0],l=t.substr(0,n.index).trim(),l&&r.push(l);o=e.pop();){if(h[u]){if(h[u][0]===o){u=h[u][1]||u;break}}else if(I.indexOf(o)>=0||D[o]<D[u]){e.push(o);break}r.push(o)}h[u]||e.push(u),t=t.substr(n.index+u.length)}return t=t.trim(),t&&r.push(t),r.concat(e.reverse())}var dt={"!":function(t){return!t},"*":function(t,r){return t*r},"/":function(t,r){return t/r},"%":function(t,r){return t%r},"+":function(t,r){return t+r},"-":function(t,r){return t-r},"<":function(t,r){return t<r},"<=":function(t,r){return t<=r},">":function(t,r){return t>r},">=":function(t,r){return t>=r},"==":function(t,r){return t===r},"!=":function(t,r){return t!==r},"&&":function(t,r){return t&&r},"||":function(t,r){return t||r},"?:":function(t,r,e){if(t)throw r;return e}};function g(t,r){var e=[],n,u,l,o,f,_;for(n=0;n<t.length;n++){if(f=t[n],o=dt[f],o){for(u=o.length,l=Array(u);u--;)l[u]=e.pop();try{_=o.apply(null,l)}catch(v){return v}}else r.hasOwnProperty(f)?_=r[f]:_=+f;e.push(_)}return e[0]}function A(t){var r=b(t);return function(e){return g(r,e)}}function E(t){var r=A(t);return function(e){return+r({n:e})}}var S={contextDelimiter:"�",onMissingKey:null};function _t(t){var r,e,n;for(r=t.split(";"),e=0;e<r.length;e++)if(n=r[e].trim(),n.indexOf("plural=")===0)return n.substr(7)}function x(t,r){var e;this.data=t,this.pluralForms={},this.options={};for(e in S)this.options[e]=r!==void 0&&e in r?r[e]:S[e]}x.prototype.getPluralForm=function(t,r){var e=this.pluralForms[t],n,u,l;return e||(n=this.data[t][""],l=n["Plural-Forms"]||n["plural-forms"]||n.plural_forms,typeof l!="function"&&(u=_t(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),l=E(u)),e=this.pluralForms[t]=l),e(r)};x.prototype.dcnpgettext=function(t,r,e,n,u){var l,o,f;return u===void 0?l=0:l=this.getPluralForm(t,u),o=e,r&&(o=r+this.options.contextDelimiter+e),f=this.data[t][o],f&&f[l]?f[l]:(this.options.onMissingKey&&this.options.onMissingKey(e,t),l===0?e:n)};var K={"":{plural_forms(t){return t===1?0:1}}},vt=/^i18n\.(n?gettext|has_translation)(_|$)/,R=(t,r,e)=>{let n=new x({}),u=new Set,l=()=>{u.forEach(a=>a())},o=a=>(u.add(a),()=>u.delete(a)),f=(a="default")=>n.data[a],_=(a,i="default")=>{n.data[i]={...n.data[i],...a},n.data[i][""]={...K[""],...n.data[i]?.[""]},delete n.pluralForms[i]},v=(a,i)=>{_(a,i),l()},V=(a,i="default")=>{n.data[i]={...n.data[i],...a,"":{...K[""],...n.data[i]?.[""],...a?.[""]}},delete n.pluralForms[i],l()},W=(a,i)=>{n.data={},n.pluralForms={},v(a,i)},m=(a="default",i,s,c,d)=>(n.data[a]||_(void 0,a),n.dcnpgettext(a,i,s,c,d)),y=a=>a||"default",Y=(a,i)=>{let s=m(i,void 0,a);return e?(s=e.applyFilters("i18n.gettext",s,a,i),e.applyFilters("i18n.gettext_"+y(i),s,a,i)):s},w=(a,i,s)=>{let c=m(s,i,a);return e?(c=e.applyFilters("i18n.gettext_with_context",c,a,i,s),e.applyFilters("i18n.gettext_with_context_"+y(s),c,a,i,s)):c},k=(a,i,s,c)=>{let d=m(c,void 0,a,i,s);return e?(d=e.applyFilters("i18n.ngettext",d,a,i,s,c),e.applyFilters("i18n.ngettext_"+y(c),d,a,i,s,c)):d},tt=(a,i,s,c,d)=>{let F=m(d,c,a,i,s);return e?(F=e.applyFilters("i18n.ngettext_with_context",F,a,i,s,c,d),e.applyFilters("i18n.ngettext_with_context_"+y(d),F,a,i,s,c,d)):F},rt=()=>w("ltr","text direction")==="rtl",et=(a,i,s)=>{let c=i?i+"�"+a:a,d=!!n.data?.[s??"default"]?.[c];return e&&(d=e.applyFilters("i18n.has_translation",d,a,i,s),d=e.applyFilters("i18n.has_translation_"+y(s),d,a,i,s)),d};if(t&&v(t,r),e){let a=i=>{vt.test(i)&&l()};e.addAction("hookAdded","core/i18n",a),e.addAction("hookRemoved","core/i18n",a)}return{getLocaleData:f,setLocaleData:v,addLocaleData:V,resetLocaleData:W,subscribe:o,__:Y,_x:w,_n:k,_nx:tt,isRTL:rt,hasTranslation:et}};var C=st($(),1),p=R(void 0,void 0,C.defaultHooks),H=p,j=p.getLocaleData.bind(p),z=p.setLocaleData.bind(p),U=p.resetLocaleData.bind(p),X=p.subscribe.bind(p),Z=p.__.bind(p),q=p._x.bind(p),G=p._n.bind(p),B=p._nx.bind(p),J=p.isRTL.bind(p),Q=p.hasTranslation.bind(p);return pt(yt);})();
1781;wp.i18n.setLocaleData({'text direction\u0004ltr':['ltr']});wp.i18n.setLocaleData({"":{"domain":"stratum","lang":"pt_PT"}},"stratum")
1782;var ElementorProFrontendConfig={"ajaxurl":"https:\/\/www.cm-benavente.pt\/wp-admin\/admin-ajax.php","nonce":"fdfa495069","urls":{"assets":"https:\/\/www.cm-benavente.pt\/wp-content\/plugins\/elementor-pro\/assets\/","rest":"https:\/\/www.cm-benavente.pt\/index.php\/wp-json\/"},"settings":{"lazy_load_background_images":!0},"popup":{"hasPopUps":!0},"shareButtonsNetworks":{"facebook":{"title":"Facebook","has_counter":!0},"twitter":{"title":"Twitter"},"linkedin":{"title":"LinkedIn","has_counter":!0},"pinterest":{"title":"Pinterest","has_counter":!0},"reddit":{"title":"Reddit","has_counter":!0},"vk":{"title":"VK","has_counter":!0},"odnoklassniki":{"title":"OK","has_counter":!0},"tumblr":{"title":"Tumblr"},"digg":{"title":"Digg"},"skype":{"title":"Skype"},"stumbleupon":{"title":"StumbleUpon","has_counter":!0},"mix":{"title":"Mix"},"telegram":{"title":"Telegram"},"pocket":{"title":"Pocket","has_counter":!0},"xing":{"title":"XING","has_counter":!0},"whatsapp":{"title":"WhatsApp"},"email":{"title":"Email"},"print":{"title":"Print"},"x-twitter":{"title":"X"},"threads":{"title":"Threads"}},"facebook_sdk":{"lang":"pt_PT","app_id":""},"lottie":{"defaultAnimationUrl":"https:\/\/www.cm-benavente.pt\/wp-content\/plugins\/elementor-pro\/modules\/lottie\/assets\/animations\/default.json"}}
1783;/*! elementor-pro - v4.3.0 - 22-09-2026 */
1784(function(){var fe,pe,ge,ye,be,Te,ve,_e,Se,Ee,Ae;var lt=Object.defineProperty,U=(t,e)=>lt(t,"name",{value:e,configurable:!0}),C=(t,e,n)=>()=>{if(n)throw n[0];try{return t&&(e=t(t=0)),e}catch(s){throw n=[s],s}},xe=(t,e)=>{let n={};for(var s in t)lt(n,s,{get:t[s],enumerable:!0});return e||lt(n,Symbol.toStringTag,{value:"Module"}),n};__webpack_public_path__=ElementorProFrontendConfig.urls.assets+"js/";function Re(t){"@babel/helpers - typeof";return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(t)}function Ei(t,e){if(Re(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,e||"default");if(Re(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ai(t){var e=Ei(t,"string");return Re(e)=="symbol"?e:e+""}function Ii(t,e,n){return(e=Ai(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kt=(fe=class extends elementorModules.ViewModule{constructor(...e){super(...e),Ii(this,"onInsideViewport",()=>{this.run(),this.animationFrameRequest=requestAnimationFrame(this.onInsideViewport)})}__construct(e){this.motionFX=e.motionFX,this.intersectionObservers||this.setElementInViewportObserver()}setElementInViewportObserver(){this.intersectionObserver=elementorModules.utils.Scroll.
1784scrollObserver({callback:n=>{n.isInViewport?this.onInsideViewport():this.removeAnimationFrameRequest()}});const e=this.motionFX.getSettings("range")==="page"?elementorFrontend.elements.$body[0]:this.motionFX.elements.$parent[0];this.intersectionObserver.observe(e)}runCallback(...e){this.getSettings("callback")(...e)}removeIntersectionObserver(){this.intersectionObserver&&this.intersectionObserver.unobserve(this.motionFX.elements.$parent[0])}removeAnimationFrameRequest(){this.animationFrameRequest&&cancelAnimationFrame(this.animationFrameRequest)}destroy(){this.removeAnimationFrameRequest(),this.removeIntersectionObserver()}onInit(){super.onInit()}},U(fe,"default"),fe),Pi=(pe=class extends Kt{run(){if(pageYOffset===this.windowScrollTop)return!1;this.onScrollMovement(),this.windowScrollTop=pageYOffset}onScrollMovement(){this.updateMotionFxDimensions(),this.updateAnimation(),this.resetTransitionVariable()}resetTransitionVariable(){this.motionFX.$element.css("--e-transform-transition-duration","100ms")}updateMotionFxDimensions(){this.motionFX.getSettings().refreshDimensions&&this.motionFX.defineDimensions()}updateAnimation(){let e;this.motionFX.getSettings("range")==="page"?e=elementorModules.utils.Scroll.getPageScrollPercentage():this.motionFX.getSettings("isFixedPosition")?e=elementorModules.utils.Scroll.getPageScrollPercentage({},window.innerHeight):e=elementorModules.utils.Scroll.getElementViewportPercentage(this.motionFX.elements.$parent),this.runCallback(e)}},U(pe,"default"),pe),ze=class Be extends Kt{bindEvents(){Be.mouseTracked||(elementorFrontend.elements.$window.on("mousemove",Be.updateMousePosition),Be.mouseTracked=!0)}run(){const e=Be.mousePosition,n=this.oldMousePosition;if(n.x===e.x&&n.y===e.y)return;this.oldMousePosition={x:e.x,y:e.y};const s=100/innerWidth*e.x,o=100/innerHeight*e.y;this.runCallback(s,o)}onInit(){this.oldMousePosition={},super.onInit()}};ze.mousePosition={},ze.updateMousePosition=t=>{ze.mousePosition={x:t.clientX,y:t.clientY}};var Ci=(ge=class extends elementorModules.Module{getMovePointFromPassedPercents(e,n){return+(n/e*100).toFixed(2)}getEffectValueFromMovePoint(e,n){return e*n/100}getStep(e,n){return this.getSettings("type")==="element"?this.getElementStep(e,n):this.getBackgroundStep(e,n)}getElementStep(e,n){return-(e-50)*n.speed}getBackgroundStep(e,n){const s=this.getSettings("dimensions.movable"+n.axis.toUpperCase());return-this.getEffectValueFromMovePoint(s,e)}getDirectionMovePoint(e,n,s){let o;return e<s.start?n==="out-in"?o=0:n==="in-out"?o=100:(o=this.getMovePointFromPassedPercents(s.start,e),n==="in-out-in"&&(o=100-o)):e<s.end?n==="in-out-in"?o=0:n==="out-in-out"?o=100:(o=this.getMovePointFromPassedPercents(s.end-s.start,e-s.start),n==="in-out"&&(o=100-o)):n==="in-out"?o=0:n==="out-in"?o=100:(o=this.getMovePointFromPassedPercents(100-s.end,100-e),n==="in-out-in"&&(o=100-o)),o}translateX(e,n){e.axis="x",e.unit="px",this.transform("translateX",n,e)}translateY(e,n){e.axis="y",e.unit="px",this.transform("translateY",n,e)}translateXY(e,n,s){this.translateX(e,n),this.translateY(e,s)}tilt(e,n,s){const o={speed:e.speed/10,direction:e.direction};this.rotateX(o,s),this.rotateY(o,100-n)}rotateX(e,n){e.axis="x",e.unit="deg",this.transform("rotateX",n,e)}rotateY(e,n){e.axis="y",e.unit="deg",this.transform("rotateY",n,e)}rotateZ(e,n){e.unit="deg",this.transform("rotateZ",n,e)}scale(e,n){const s=this.getDirectionMovePoint(n,e.direction,e.range);this.updateRulePart("transform","scale",1+e.speed*s/1e3)}transform(e,n,s){s.direction&&(n=100-n),this.updateRulePart("transform",e,this.getStep(n,s)+s.unit)}setCSSTransformVariables(e){this.CSSTransformVariables=[],jQuery.each(e,(n,s)=>{const o=n.match(/_transform_(.+?)_effect/m);if(o&&s){if(o[1]==="perspective"){this.CSSTransformVariables.unshift(o[1]);return}if(this.CSSTransformVariables.includes(o[1]))return;this.CSSTransformVariables.push(o[1])}})}opacity(e,n){const s=this.getDirectionMovePoint(n,e.direction,e.range),o=e.level/10,c=1-o+this.getEffectValueFromMovePoint(o,s);this.$element.css({opacity:c,"will-change":"opacity"})}blur(e,n){const s=this.getDirectionMovePoint(n,e.direction,e.range),o=e.level-this.getEffectValueFromMovePoint(e.level,s);this.updateRulePart("filter","blur",o+"px")}updateRulePart(e,n,s){this.rulesVariables[e]||(this.rulesVariables[e]={}),this.rulesVariables[e][n]||(this.rulesVariables[e][n]=!0,this.updateRule(e));const o=`--${n}`;this.$element[0].style.setProperty(o,s)}updateRule(e){let n="";n+=this.concatTransformCSSProperties(e),n+=this.concatTransformMotionEffectCSSProperties(e),this.$element.css(e,n)}concatTransformCSSProperties(e){let n="";return e==="transform"&&jQuery.each(this.CSSTransformVariables,(s,o)=>{const c=o;o.startsWith("flip")&&(o=o.replace("flip","scale"));const d=o.startsWith("rotate")||o.startsWith("skew")?"deg":"px",p=o.startsWith("scale")?1:0+d;n+=`${o}(var(--e-transform-${c}, ${p}))`}),n}concatTransformMotionEffectCSSProperties(e){let n="";return jQuery.each(this.rulesVariables[e],s=>{n+=`${s}(var(--${s}))`}),n}runAction(e,n,s,...o){n.affectedRange&&(n.affectedRange.start>s&&(s=n.affectedRange.start),n.affectedRange.end<s&&(s=n.affectedRange.end)),this[e](n,s,...o)}refresh(){this.rulesVariables={},this.CSSTransformVariables=[],this.$element.css({transform:"",filter:"",opacity:"","will-change":""})}onInit(){this.$element=this.getSettings("$targetElement"),this.refresh()}},U(ge,"default"),ge),wi=(ye=class extends elementorModules.ViewModule{getDefaultSettings(){return{type:"element",$element:null,$dimensionsElement:null,addBackgroun
1784dLayerTo:null,interactions:{},refreshDimensions:!1,range:"viewport",classes:{element:"motion-fx-element",parent:"motion-fx-parent",backgroundType:"motion-fx-element-type-background",container:"motion-fx-container",layer:"motion-fx-layer",perspective:"motion-fx-perspective"}}}bindEvents(){this.defineDimensions=this.defineDimensions.bind(this),elementorFrontend.elements.$window.on("resize elementor-pro/motion-fx/recalc",this.defineDimensions)}unbindEvents(){elementorFrontend.elements.$window.off("resize elementor-pro/motion-fx/recalc",this.defineDimensions)}addBackgroundLayer(){const e=this.getSettings();this.elements.$motionFXContainer=jQuery("<div>",{class:e.classes.container}),this.elements.$motionFXLayer=jQuery("<div>",{class:e.classes.layer}),this.updateBackgroundLayerSize(),this.elements.$motionFXContainer.prepend(this.elements.$motionFXLayer),(e.addBackgroundLayerTo?this.$element.find(e.addBackgroundLayerTo):this.$element).prepend(this.elements.$motionFXContainer)}removeBackgroundLayer(){this.elements.$motionFXContainer.remove()}
1784updateBackgroundLayerSize(){const e=this.getSettings(),n={x:0,y:0},s=e.interactions.mouseMove,o=e.interactions.scroll;s&&s.translateXY&&(n.x=s.translateXY.speed*10,n.y=s.translateXY.speed*10),o&&(o.translateX&&(n.x=o.translateX.speed*10),o.translateY&&(n.y=o.translateY.speed*10)),this.elements.$motionFXLayer.css({width:100+n.x+"%",height:100+n.y+"%"})}defineDimensions(){const e=this.getSettings("$dimensionsElement")||this.$element,n=e.offset(),s={elementHeight:e.outerHeight(),elementWidth:e.outerWidth(),elementTop:n.top,elementLeft:n.left};s.elementRange=s.elementHeight+innerHeight,this.setSettings("dimensions",s),this.getSettings("type")==="background"&&this.defineBackgroundLayerDimensions()}defineBackgroundLayerDimensions(){const e=this.getSettings("dimensions");e.layerHeight=this.elements.$motionFXLayer.height(),e.layerWidth=this.elements.$motionFXLayer.width(),e.movableX=e.layerWidth-e.elementWidth,e.movableY=e.layerHeight-e.elementHeight,this.setSettings("dimensions",e)}initInteractionsTypes(){this.interactionsTypes={scroll:Pi,mouseMove:ze}}prepareSpecialActions(){const e=this.getSettings(),n=!!(e.interactions.mouseMove&&e.interactions.mouseMove.tilt);this.elements.$parent.toggleClass(e.classes.perspective,n)}cleanSpecialActions(){const e=this.getSettings();this.elements.$parent.removeClass(e.classes.perspective)}runInteractions(){const e=this.getSettings();this.actions.setCSSTransformVariables(e.elementSettings),this.prepareSpecialActions(),jQuery.each(e.interactions,(n,s)=>{this.interactions[n]=new this.interactionsTypes[n]({motionFX:this,callback:(...o)=>{jQuery.each(s,(c,d)=>this.actions.runAction(c,d,...o))}}),this.interactions[n].run()})}destroyInteractions(){this.cleanSpecialActions(),jQuery.each(this.interactions,(e,n)=>n.destroy()),this.interactions={}}refresh(){this.actions.setSettings(this.getSettings()),this.getSettings("type")==="background"&&(this.updateBackgroun
1784dLayerSize(),this.defineBackgroundLayerDimensions()),this.actions.refresh(),this.destroyInteractions(),this.runInteractions()}destroy(){this.destroyInteractions(),this.actions.refresh();const e=this.getSettings();this.$element.removeClass(e.classes.element),this.elements.$parent.removeClass(e.classes.parent),e.type==="background"&&(this.$element.removeClass(e.classes.backgroundType),this.removeBackgroundLayer())}onInit(){super.onInit();const e=this.getSettings();this.$element=e.$element,this.elements.$parent=this.$element.parent(),this.$element.addClass(e.classes.element),this.elements.$parent=this.$element.parent(),this.elements.$parent.addClass(e.classes.parent),e.type==="background"&&(this.$element.addClass(e.classes.backgroundType),this.addBackgroundLayer()),this.defineDimensions(),e.$targetElement=e.type==="element"?this.$element:this.elements.$motionFXLayer,this.interactions={},this.actions=new Ci(e),this.initInteractionsTypes(),this.runInteractions()}},U(ye,"default"),ye),Oi=(be=class extends elementorModules.frontend.handlers.Base{__construct(...e){super.__construct(...e),this.toggle=elementorFrontend.debounce(this.toggle,200)}getDefaultSettings(){return{selectors:{container:".elementor-widget-container"}}}getDefaultElements(){const e=this.getSettings("selectors");let n=this.$element.find(e.container);return n.length===0&&(n=this.$element),{$container:n}}bindEvents(){elementorFrontend.elements.$window.on("resize",this.toggle)}unbindEvents(){elementorFrontend.elements.$window.off("resize",this.toggle)}addCSSTransformEvents(){this.getElementSettings("motion_fx_motion_fx_scrolling")&&!this.isTransitionEventAdded&&(this.isTransitionEventAdded=!0,this.elements.$container.on("mouseenter",()=>{this.elements.$container.css("--e-transform-transition-duration","")}))}initEffects(){this.effects={translateY:{interaction:"scroll",actions:["translateY"]},translateX:{interaction:"scroll",actions:["translateX"]},rotateZ:{interaction:"scroll",actions:["rotateZ"]},scale:{interaction:"scroll",actions:["scale"]},opacity:{interaction:"scroll",actions:["opacity"]},blur:{interaction:"scroll",actions:["blur"]},mouseTrack:{interaction:"mouseMove",actions:["translateXY"]},tilt:{interaction:"mouseMove",actions:["tilt"]}}}prepareOptions(e){const n=this.getElementSettings(),s=e==="motion_fx"?"element":"background",o={};jQuery.each(n,(O,V)=>{const Ie=new RegExp("^"+e+"_(.+?)_effect"),L=O.match(Ie);if(!L||!V)return;const J={},E=L[1];jQuery.each(n,(re,P)=>{const W=new RegExp(e+"_"+E+"_(.+)"),R=re.match(W);R&&R[1]!=="effect"&&(typeof P=="object"&&(P=Object.keys(P.sizes).length?P.sizes:P.size),J[R[1]]=P)});const $=this.effects[E],F=$.interaction;o[F]||(o[F]={}),$.actions.forEach(re=>o[F][re]=J)});let c=this.$element,d,p;const h=this.getElementType();if(s==="element"&&!["section","container"].includes(h)){d=c;let O;h==="column"?O=".elementor-widget-wrap":O=".elementor-widget-container",p=c.find("> "+O),c=p.length===0?this.$element:p}const y={type:s,interactions:o,elementSettings:n,$element:c,$dimensionsElement:d,refreshDimensions:this.isEdit,range:n[e+"_range"],classes:{element:"elementor-motion-effects-element",parent:"elementor-motion-effects-parent",backgroundType:"elementor-motion-effects-element-type-background",container:"elementor-motion-effects-container",layer:"elementor-motion-effects-layer",perspective:"elementor-motion-effects-perspective"}};return!y.range&&this.getCurrentDeviceSetting("_position")==="fixed"&&(y.range="page"),this.getCurrentDeviceSetting("_position")==="fixed"&&(y.isFixedPosition=!0),s==="background"&&this.getElementType()==="column"&&(y.addBackgroundLayerTo=" > .elementor-element-populated"),y}activate(e){const n=this.prepareOptions(e);jQuery.isEmptyObject(n.interactions)||(this[e]=new wi(n))}deactivate(e){this[e]&&(this[e].destroy(),delete this[e])}toggle(){const e=elementorFrontend.getCurrentDeviceMode(),n=this.getElementSettings();["motion_fx","background_motion_fx"].forEach(s=>{const o=n[s+"_devices"];(!o||o.indexOf(e)!==-1)&&(n[s+"_motion_fx_scrolling"]||n[s+"_motion_fx_mouse"])?this[s]?this.refreshInstance(s):this.activate(s):this.deactivate(s)})}refreshInstance(e){const n=this[e];if(!n)return;const s=this.prepareOptions(e);
1784n.setSettings(s),n.refresh()}onInit(){super.onInit();const e=window.matchMedia("(prefers-reduced-motion: reduce)");e&&e.matches||(this.initEffects(),this.addCSSTransformEvents(),this.toggle())}onElementChange(e){if(/motion_fx_((scrolling)|(mouse)|(devices))$/.test(e)){e==="motion_fx_motion_fx_scrolling"&&this.addCSSTransformEvents(),this.toggle();return}const n=e.match(".*?(motion_fx|_transform)");if(n){const s=n[0].match("(_transform)")?"motion_fx":n[0];this.refreshInstance(s),this[s]||this.activate(s)}/^_position/.test(e)&&["motion_fx","background_motion_fx"].forEach(s=>{this.refreshInstance(s)})}onDestroy(){super.onDestroy(),["motion_fx","background_motion_fx"].forEach(e=>{this.deactivate(e)})}},U(be,"default"),be),ki=(Te=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("global",Oi,null)}},U(Te,"default"),Te),Mi=()=>{var t,e;return(elementorFrontend.isEditMode()?(t=elementor.settings.page.model.attributes)==null?void 0:t.scroll_snap:(e=elementorFrontend.config.settings.page)==null?void 0:e.scroll_snap)==="yes"},ct=elementorModules.frontend.handlers.Base.extend({currentConfig:{},debouncedReactivate:null,bindEvents(){elementorFrontend.addListenerOnce(this.getUniqueHandlerID()+"sticky","resize",this.reactivateOnResize)},unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID()+"sticky","resize",this.reactivateOnResize)},isStickyInstanceActive(){return this.$element.data("sticky")!==void 0},getResponsiveSetting(t){const e=this.getElementSettings();return elementorFrontend.getCurrentDeviceSetting(e,t)},getResponsiveSettingList(t){return["",...Object.keys(elementorFrontend.config.responsive.activeBreakpoints)].map(e=>e?`${t}_${e}`:t)},getConfig(){const t=this.getElementSettings(),e={to:t.sticky,offset:this.getResponsiveSetting("sticky_offset"),effectsOffset:this.getResponsiveSetting("sticky_effects_offset"),classes:{sticky:"elementor-sticky",stickyActive:"elementor-sticky--active elementor-section--handles-inside",stickyEffects:"elementor-sticky--effects",spacer:"elementor-sticky__spacer"},isRTL:elementorFrontend.config.is_rtl,isScrollSnapActive:Mi(),handleScrollbarWidth:elementorFrontend.isEditMode()},n=elementorFrontend.elements.$wpAdminBar,s=this.isContainerElement(this.$element[0])&&!this.isContainerElement(this.$element[0].parentElement);return n.length&&t.sticky==="top"&&n.css("position")==="fixed"&&(e.offset+=n.height()),t.sticky_parent&&!s&&(e.parent=".e-con, .e-con-inner, .elementor-widget-wrap"),e},activate(){this.currentConfig=this.getConfig(),this.$element.sticky(this.currentConfig)},deactivate(){this.isStickyInstanceActive()&&this.$element.sticky("destroy")},run(t){if(!this.getElementSettings("sticky")){this.deactivate();return}var e=elementorFrontend.getCurrentDeviceMode();this.getElementSettings("sticky_on").indexOf(e)!==-1?t===!0?this.reactivate():this.isStickyInstanceActive()||this.activate():this.deactivate()},reactivateOnResize(){clearTimeout(this.debouncedReactivate),this.debouncedReactivate=setTimeout(()=>{const t=this.getConfig();JSON.stringify(t)!==JSON.stringify(this.currentConfig)&&this.run(!0)},300)},reactivate(){this.deactivate(),this.activate()},onElementChange(t){["sticky","sticky_on"].indexOf(t)!==-1&&this.run(!0),[...this.getResponsiveSettingList("sticky_offset"),...this.getResponsiveSettingList("sticky_effects_offset"),"sticky_parent"].indexOf(t)!==-1&&this.reactivate()},onDeviceModeChange(){setTimeout(()=>this.run(!0))},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),elementorFrontend.isEditMode()&&elementor.listenTo(elementor.channels.deviceMode,"change",()=>this.onDeviceModeChange()),this.run()},onDestroy(){elementorModules.frontend.handlers.Base.prototype.onDestroy.apply(this,arguments),this.deactivate()},isContainerElement(t){return["e-con","e-con-inner"].some(e=>t==null?void 0:t.classList.contains(e))}}),xi=(ve=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("section",ct,null),elementorFrontend.elementsHandler.attachHandler("container",ct,null),elementorFrontend.elementsHandler.attachHandler("widget",ct,null)}},U(ve,"default"),ve),Ks="modulepreload",Zs=function(t){return"/"+t},Js={}
1784,De=function(e,n,s){let o=Promise.resolve();if(0)var d,p;function c(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return o.then(h=>{for(const y of h||[])y.status==="rejected"&&c(y.reason);return e().catch(c)})},Ri=xe({default:()=>Zt}),Zt,Di=C((()=>{Zt=class extends elementorModules.frontend.handlers.Base{onInit(...t){super.onInit(...t),Prism.highlightAllUnder(this.$element[0],!1)}onElementChange(){Prism.highlightAllUnder(this.$element[0],!1)}}})),Li=(_e=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("code-highlight",()=>De(()=>Promise.resolve().then(()=>(Di(),Ri)),void 0))}},U(_e,"default"),_e);function Jt(t,e,n,s,o,c,d){try{var p=t[c](d),h=p.value}catch(y){n(y);return}p.done?e(h):Promise.resolve(h).then(s,o)}function Le(t){return function(){var e=this,n=arguments;return new Promise(function(s,o){var c=t.apply(e,n);function d(h){Jt(c,s,o,d,p,"next",h)}function p(h){Jt(c,s,o,d,p,"throw",h)}d(void 0)})}}var We=C((()=>{})),en,Fi=C((()=>{en=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{tablist:'[role="tablist"]',tabTitle:".e-tab-title",tabContent:".e-tab-content"},classes:{active:"e-active"},showTabFn:"show",hideTabFn:"hide",toggleSelf:!0,hidePrevious:!0,autoExpand:!0,keyDirection:{ArrowLeft:elementorFrontendConfig.is_rtl?1:-1,ArrowUp:-1,ArrowRight:elementorFrontendConfig.is_rtl?-1:1,ArrowDown:1}}}getDefaultElements(){const t=this.getSettings("selectors");return{$tabTitles:this.findElement(t.tabTitle),$tabContents:this.findElement(t.tabContent)}}activateDefaultTab(t){const e=this.getSettings();if(!e.autoExpand||e.autoExpand==="editor"&&!this.isEdit)return;const n=this.getEditSettings("activeItemIndex")||t||1,s={showTabFn:e.showTabFn,hideTabFn:e.hideTabFn};this.setSettings({showTabFn:"show",hideTabFn:"hide"}),this.changeActiveTab(n),this.setSettings(s)}handleKeyboardNavigation(t){const e=t.currentTarget,n=jQuery(e.closest(this.getSettings("selectors").tablist)),s=n.find(this.getSettings("selectors").tabTitle),o=n.attr("aria-orientation")==="vertical";switch(t.key){case"ArrowLeft":case"ArrowRight":if(o)return;break;case"ArrowUp":case"ArrowDown":if(!o)return;t.preventDefault();break;case"Home":t.preventDefault(),s.first().trigger("focus");return;case"End":t.preventDefault(),s.last().trigger("focus");return;default:return}const c=e.getAttribute("data-tab")-1,d=this.getSettings("keyDirection")[t.key],p=s[c+d];p?p.focus():c+d===-1?s.last().trigger("focus"):s.first().trigger("focus")}deactivateActiveTab(t){const e=this.getSettings(),n=e.classes.active,s=t?'[data-tab="'+t+'"]':"."+n,o=this.elements.$tabTitles.filter(s),c=this.elements.$tabContents.filter(s);o.add(c).removeClass(n),o.attr({tabindex:"-1","aria-selected":"false"}),c[e.hideTabFn](),c.attr("hidden","hidden")}activateTab(t){const e=this.getSettings(),n=e.classes.active,s=this.elements.$tabTitles.filter('[data-tab="'+t+'"]'),o=this.elements.$tabContents.filter('[data-tab="'+t+'"]'),c=e.showTabFn==="show"?0:400;s.add(o).addClass(n),s.attr({tabindex:"0","aria-selected":"true"}),o[e.showTabFn](c,()=>elementorFrontend.elements.$window.trigger("resize")),o.removeAttr("hidden")}isActiveTab(t){return this.elements.$tabTitles.filter('[data-tab="'+t+'"]').hasClass(this.getSettings("classes.active"))}bindEvents(){this.elements.$tabTitles.on({keydown:t=>{jQuery(t.target).is("a")&&t.key==="Enter"&&t.preventDefault(),["End","Home","ArrowUp","ArrowDown"].includes(t.key)&&this.handleKeyboardNavigation(t)},keyup:t=>{switch(t.key){case"ArrowLeft":case"ArrowRight":this.handleKeyboardNavigation(t);break;case"Enter":case"Space":t.preventDefault(),this.changeActiveTab(t.currentTarget.getAttribute("data-tab"));break}},click:t=>{t.preventDefault(),this.changeActiveTab(t.currentTarget.getAttribute("data-tab"))}})}onInit(...t){super.onInit(...t)}
1784changeActiveTab(t){const e=this.isActiveTab(t),n=this.getSettings();(n.toggleSelf||!e)&&n.hidePrevious&&this.deactivateActiveTab(),!n.hidePrevious&&e&&this.deactivateActiveTab(t),e||this.activateTab(t)}}})),Xe,ut=C((()=>{Xe=class{constructor(t,e){this.playlistItem=t,this.positionInVideoList=e}formatDuration(t){const e=new Date(t*1e3),n=e.getUTCHours(),s=e.getUTCMinutes(),o=e.getSeconds();return n!==0?`${n.toString()}:${s.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`:`${s.toString()}:${o.toString().padStart(2,"0")}`}}})),tn,Ni=C((()=>{ut(),We(),tn=class extends Xe{constructor(t,e){super(t,e),this.apiProvider=elementorFrontend.utils.youtube,this.playerObject=null,this.watchCount=0,this.isVideoPlaying=!1,this.isVideoPausedLocal=!1,this.isVideoEnded=!1,this.seekSequenceArray=[],this.pauseCurrentTime=null,this.isReady=!1}create(){return this.currentVideoID=this.apiProvider.getVideoIDFromURL(this.playlistItem.videoUrl),new Promise(t=>{this.apiProvider.onApiReady(e=>{const n={width:"773",videoId:this.currentVideoID,playerVars:{rel:0,showinfo:0,ecver:2},events:{onReady:()=>{this.isReady=!0,t()}}};this.playerObject=new e.Player(this.playlistItem.tabContent.querySelector("div"),n),this.playerObject.addEventListener("onStateChange",s=>{s.data===3&&(this.seekSequenceArray[this.seekSequenceArray.length-1]===2?this.seekSequenceArray.push(3):(this.seekSequenceArray=[],clearTimeout(this.seekTimeOut)))})})})}handleEnded(t){this.playerObject.addEventListener("onStateChange",e=>{e.data===0&&(this.watchCount++,this.isVideoEnded=!0,e.target.seekTo(0),e.target.stopVideo(),this.isVideoPlaying=!1,t())})}handlePaused(t){this.playerObject.addEventListener("onStateChange",e=>{e.data===2&&(this.seekSequenceArray=[],this.seekSequenceArray.push(2),this.pauseCurrentTime=this.playerObject.playerInfo.currentTime,this.seekTimeOut=setTimeout(()=>{this.seekSequenceArray.length===2&&this.seekSequenceArray[0]===2&&this.seekSequenceArray[1]===3?(this.seekSequenceArray=[],clearTimeout(this.seekTimeOut)):(t(this.positionInVideoList),this.isVideoPausedLocal=!0)},1e3))})}handlePlayed(t){this.playerObject.addEventListener("onStateChange",e=>{e.data===1&&!this.isVideoEnded?this.seekSequenceArray.length===2&&this.seekSequenceArray[0]===2&&this.seekSequenceArray[1]===3||t():this.isVideoEnded=!1})}handleError(t){this.playerObject.addEventListener("onError",()=>{t()})}handleFullScreenChange(t){this.playerObject.h.addEventListener("fullscreenchange",()=>{t(document.fullscreenElement)})}getCurrentTime(){const t=this.pauseCurrentTime?this.pauseCurrentTime:this.playerObject.playerInfo.currentTime;return this.pauseCurrentTime=null,t}play(){this.isReady&&(this.isVideoPlaying=!0,this.playerObject.playVideo())}pause(){this.isReady&&(this.isVideoPlaying=!1,this.playerObject.pauseVideo())}mute(){this.playerObject.mute()}setVideoProviderData(){var t=this;return Le(function*(){t.isReady&&(t.currentVideoID&&t.currentVideoID.length===11?(t.playlistItem.thumbnail={url:"https://img.youtube.com/vi/"+t.playerObject.getVideoData().video_id+"/maxresdefault.jpg"},t.playlistItem.video_title=t.playerObject.getVideoData().title,t.playlistItem.duration=t.formatDuration(t.playerObject.getDuration())):(t.playlistItem.thumbnail={url:""},t.playlistItem.video_title="",t.playlistItem.duration=""))})()}}})),nn,$i=C((()=>{ut(),We(),nn=class extends Xe{constructor(t,e){super(t,e),this.apiProvider=elementorFrontend.utils.vimeo,this.playerObject=null,this.watchCount=0,this.isVideoInFullScreenChange=!1,this.isReady=!1}create(){return this.currentVideoID=this.apiProvider.getVideoIDFromURL(this.playlistItem.videoUrl),new Promise(t=>{this.apiProvider.onApiReady(e=>{const n={id:this.currentVideoID,autoplay:!1};this.playerObject=new e.Player(this.playlistItem.tabContent.querySelector("div"),n),this.playerObject.ready().then(()=>{this.isReady=!0,t()})})})}handleEnded(t){this.playerObject.on("ended",()=>{this.watchCount++,t(this.playlistItem)})}handlePaused(t){this.playerObject.on("pause",e=>{e.percent===0||e.percent>=1||this.isVideoInFullScreenChange||t(this.positionInVideoList)})}handlePlayed(t){this.playerObject.on("play",()=>{if(this.isVideoInFullScreenChange){this.isVideoInFullScreenChange=!1;return}t(this.playlistItem)})}handleFullScreenChange(t){this.playerObject.element.addEventListener("fullscreenchange",()=>{t(document.fullscreenElement),this.isVideoInFullScreenChange=!0})}getCurrentTime(){return this.playerObject.getCurrentTime().then(t=>t)}play(){this.isReady&&this.playerObject.play()}pause(){this.isReady&&this.playerObject.pause()}mute(){this.playerObject.setMuted(!0)}setVideoProviderData(){var t=this;return Le(function*(){if(!t.currentVideoID&&!t.currentVideoID.length===9)return;const e=yield t.playerObject.getVideoId(),n=yield(yield fetch("https://vimeo.com/api/v2/video/"+e+".json")).json();return t.playlistItem.duration=t.formatDuration(n[0].duration),t.playlistItem.video_title=n[0].title,t.playlistItem.thumbnail={url:n[0].thumbnail_medium},t.playlistItem})()}}})),sn,Vi=C((()=>{ut(),sn=class extends Xe{constructor(t,e){super(t,e),this.playerObject=null,this.watchCount=0,this.isVideoPlaying=!1,this.isVideoPausedLocal=!1,this.isVideoSeeking=!1,this.isVideoEnded=!1,this.isReady=!1}create(){return new Promise(t=>{const e=document.createElement("video");e.setAttribute("controls","");const n=document.createTextNode("Sorry, your browser doesn't support embedded videos."),s=document.createElement("source");s.setAttribute("src",this.playlistItem.videoUrl),s.setAttribute("type","video/"+this.playlistItem.videoUrl.split(".").pop()),e.appendChild(s),e.appendChild(n),this.playerObject=e,this.playlistItem.tabContent.querySelector("div").replaceWith(this.playerObject),this.playerObject.addEventListener("canplay",()=>{this.isReady=!0,t()}),this.playerObject.addEventListener("seeked",()=>{this.isVideoSeeking=!1}),this.playerObject.addEventListener("seeking",()=>{clearTimeout(this.seekTimeOut),this.isVideoSeeking=!0})})}handleEnded(t){this.playerObject.addEventListener("ended",()=>{this.watchCount++,this.isVideoEnded=!0,this.isVideoPlaying=!1,t(this.playlistItem)})}handlePaused(t){this.playerObject.addEventListener("pause",()=>{this.seekTimeOut=setTimeout(()=>{!this.isVideoSeeking&&!this.isVideoEnded?(t(this.positionInVideoList),this.isVideoPausedLocal=!0):this.isVideoEnded=!1},30)})}handlePlayed(t){this.playerObject.addEventListener("play",()=>{this.isVideoSeeking||t(this.playlistItem)})}handleFullScreenChange(t){jQuery(this.playerObject).on("webkitfullscreenchange mozfullscreenchange fullscreenchange",()=>{t(document.fullscreenElement)})}getCurrentTime(){return this.playerObject.currentTime}play(){this.isReady&&(this.isVideoPlaying=!0,this.playerObject.play())}pause(){this.isReady&&(this.isVideoPlaying=!1,this.playerObject.pause())}mute(){this.playerObject.muted=!0}
1784}}));function rn(t,e){if(!e){t.$tabsItems[0].offsetHeight<t.$tabsItems[0].scrollHeight&&t.$tabsWrapper.addClass("bottom-shadow");return}e.target.scrollTop>0?t.$tabsWrapper.addClass("top-shadow"):t.$tabsWrapper.removeClass("top-shadow"),e.target.offsetHeight+e.target.scrollTop>=e.target.scrollHeight?t.$tabsWrapper.removeClass("bottom-shadow"):t.$tabsWrapper.addClass("bottom-shadow")}var Hi=C((()=>{})),on,Ui=C((()=>{on=class{constructor({event:t,tab:e,playlist:n,video:s}){this.event={type:t.type||"",time:t.time||0,element:t.element,trigger:t.trigger||"",watchCount:t.watchCount||0},this.tab={name:e.name,index:e.index},this.playlist={name:n.name,currentItem:n.currentItem,amount:n.amount},this.video={provider:s.provider,url:s.url,title:s.title,duration:s.duration}}}}));function ji(t){const e=t.elements.$innerTabs.filter(".e-active").find(".e-inner-tabs-wrapper .e-inner-tab-title");if(e.length){const n=e.filter(".e-inner-tab-active");return{name:n.text().trim(),index:n.index()+1}}return{name:"none",index:"none"}}function Bi(t,e){const n=e||t.currentPlaylistItemIndex;return{name:t.getElementSettings("playlist_title"),currentItem:n,amount:t.playlistItemsArray.filter(s=>s.videoType!=="section").length}}function zi(t,e){const n=e||t.currentPlaylistItemIndex,s=t.playlistItemsArray[n-1];return{provider:s.videoType,url:s.videoUrl,title:s.videoTitle,duration:s.videoDuration}}function Wi(t,e,n,s){return dt.apply(this,arguments)}function dt(){return dt=Le(function*(t,e,n,s){const o=s||t.currentPlaylistItemIndex,c=t.playlistItemsArray[o-1];return{type:e,time:yield c.playerInstance.getCurrentTime(),element:t.$element,trigger:n,watchCount:c.playerInstance.watchCount}}),dt.apply(this,arguments)}function ce(t,e,n,s){return ht.apply(this,arguments)}function ht(){return ht=Le(function*(t,e,n,s){const o=new on({event:yield Wi(t,e,n,s),tab:ji(t),playlist:Bi(t,s),video:zi(t,s)});jQuery("body").trigger("elementor-video-playList",o)}),ht.apply(this,arguments)}var an=C((()=>{Ui(),We()}));function ln(t,e,n){const s=t.currentTarget,o=s.querySelectorAll(".e-inner-tab-title");if(e.hasClass("e-inner-tab-active")||o.length<2)return;const c=s.querySelectorAll(".e-inner-tab-content");o.forEach(d=>{d.classList.toggle("e-inner-tab-active")}),c.forEach(d=>{d.toggleAttribute("hidden"),d.classList.toggle("e-inner-tab-active")}),cn(Array.from(c),n.isCollapsible,n.innerTabsHeightLimit),ce(n,"tabOpened","click")}function Xi(t,e){const n=t.target,s=n.tagName;n.classList.contains("e-inner-tab-title-text")&&(t.preventDefault(),ln(t,jQuery(n).parent(".e-inner-tab-title"),e)),n.classList.contains("e-tab-mobile-title")&&ln(t,jQuery(n),e),s.toLowerCase()==="button"&&Gi(t,e)}function cn(t,e,n){if(!e)return;const s=t.filter(d=>d.classList.contains("e-inner-tab-active")),o=s[0].querySelector(".e-inner-tab-text > div").offsetHeight,c=parseInt(n.size);c&&o>c&&s[0].classList.add("show-inner-tab-buttons")}function Gi(t,e){const n=jQuery(t.currentTarget).find(".e-inner-tab-content").filter(".e-inner-tab-active");n.find("button").toggleClass("show-button"),n.toggleClass("show-full-height"),ce(e,n.hasClass("show-full-height")?"tabExpanded":"tabCollapsed","click")}var Yi=C((()=>{an()}));function qi(t,e){const n=new URLSearchParams(location.search),s=n.get("playlist"),o=1;if(!s)return!1;if(s===t){const c=n.get("video"),d=e.find(h=>c===h.dataItemId),p=d?d.dataTab:o;return p||mt(t,e,o),p||!1}}function mt(t,e,n){const s=new URLSearchParams(location.search);s.set("playlist",t),s.set("video",e[n-1].dataItemId),history.replaceState({},"",location.pathname+"?"+s)}var Qi=C((()=>{})),Ki=xe({default:()=>pn}),un,dn,hn,ft,mn,fn,pt,Fe,gt,pn,Zi=C((()=>{Fi(),Ni(),$i(),Vi(),Hi(),Yi(),Qi(),an(),un=Object.defineProperty,dn=Object.defineProperties,hn=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,pt=(t,e,n)=>e in t?un(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fe=(t,e)=>{for(var n in e||(e={}))mn.call(e,n)&&pt(t,n,e[n]);if(ft)for(var n of ft(e))fn.call(e,n)&&pt(t,n,e[n]);return t},gt=(t,e)=>dn(t,hn(e)),pn=class extends en{getDefaultSettings(){const t=super.getDefaultSettings();return gt(Fe({},t),{selectors:Fe(Fe({},t.selectors),{tabsWrapper:".e-tabs-items-wrapper",tabsItems:".e-tabs-items",toggleVideosDisplayButton:".e-tabs-toggle-videos-display-button",videos:".e-tabs-content-wrapper .e-tab-content",innerTabs:".e-tabs-inner-tabs .e-tab-content",imageOverlay:".elementor-custom-embed-image-overlay"})})}getDefaultElements(){const t=super.getDefaultElements(),e=this.getSettings("selectors");return gt(Fe({},t),{$tabsWrapper:this.findElement(e.tabsWrapper),$tabsItems:this.findElement(e.tabsItems),$toggleVideosDisplayButton:this.findElement(e.toggleVideosDisplayButton),$videos:this.findElement(e.videos),$innerTabs:this.findElement(e.innerTabs),$imageOverlay:this.findElement(e.imageOverlay)})}initEditorListeners(){super.initEditorListeners(),this.editorListeners.push({event:"elementorPlaylistWidget:fetchVideoData",to:elementor.channels.editor,callback:t=>{this.getCurrentPlayerSelected().setVideoProviderData().then(()=>{t.currentItem=this.getCurrentItemSelected(),elementor.channels.editor.trigger("elementorPlaylistWidget:setVideoData",t)})}})}bindEvents(){super.bindEvents(),this.elements.$imageOverlay.on({click:t=>{t.currentTarget.remove(),this.getCurrentPlayerSelected().play()}}),this.elements.$innerTabs.on({click:t=>{Xi(t,this)}}),this.elements.$tabsItems.on({scroll:t=>{rn(this.elements,t)}}),this.elements.$toggleVideosDisplayButton.on({click:t=>{jQuery(t.target).toggleClass("rotate-up"),jQuery(t.target).toggleClass("rotate-down"),this.elements.$tabsWrapper.slideToggle("slow")}})}onInit(...t){super.onInit(...t),this.playlistId=this.getID(),this.storageKey="watched_videos_"+this.getID();const e=elementorFrontend.storage.get(this.storageKey);e?this.watchedVideosArray=JSON.parse(e):this.watchedVideosArray=[],this.watchedIndication=this.getElementSettings("show_watched_indication"),rn(this.elements),this.isAutoplayOnLoad=this.getElementSettings("autoplay_on_load")==="yes",this.isAutoplayNextUp=this.getElementSettings("autoplay_next")==="yes",this.isFirstVideoActivated=!0,this.createPlaylistItems(),this.isCollapsible=this.getElementSettings("inner_tab_is_content_collapsible"),this.innerTabsHeightLimit=this.getElementSettings("inner_tab_collapsible_height"),this.currentPlayingPlaylistItemIndex=1,this.activateInitialVideo(),this.activateInnerTabInEditMode()}onEditSettingsChange(t){if(t==="panel"&&(this.preventTabActivation=!0),t==="activeItemIndex"){if(this.preventTabActivation){this.preventTabActivation=!1;return}this.activateDefaultTab()}}activateInitialVideo(){var t;this.isPageOnLoad=!0;const e=!!this.getElementSettings("lazy_load"),n=qi(this.playlistId,this.playlistItemsArray);let s=!1;n?(this.currentPlaylistItemIndex=n,this.currentPlayingPlaylistItemIndex=n,s=!0):(this.currentPlaylistItemIndex=1,this.currentPlayingPlaylistItemIndex=1),this.isAutoplayOnLoad&&!s&&mt(this.playlistId,this.playlistItemsArray,this.currentPlaylistItemIndex),s&&((t=this.$element[0])==null||t.scrollIntoView({behavior:"smooth"})),this.handleFirstVideoActivation(e)}handleFirstVideoActivation(t){if(!t){this.activateDefaultTab(this.currentPlaylistItemIndex);return}const e=document.querySelector(".elementor-element-"+this.playlistId+" .e-tabs-main-area"),n=elementorModules.utils.Scroll.
1784scrollObserver({callback:s=>{s.isInViewport&&(this.activateDefaultTab(this.currentPlaylistItemIndex),n.unobserve(e))}});n.observe(e)}getCurrentItemSelected(){return this.playlistItemsArray[this.currentPlaylistItemIndex-1]}getCurrentPlayerSelected(){return this.getCurrentItemSelected().playerInstance}getCurrentPlayerPlaying(){return this.playlistItemsArray[this.currentPlayingPlaylistItemIndex-1].playerInstance}isVideoShouldBePlayed(){if(this.currentPlayingPlaylistItemIndex!==this.currentPlaylistItemIndex)this.getCurrentPlayerPlaying()&&this.getCurrentPlayerPlaying().pause(),this.currentPlayingPlaylistItemIndex=this.currentPlaylistItemIndex;else if(this.getCurrentPlayerPlaying().isVideoPlaying)return this.getCurrentPlayerPlaying().pause(),!1;return!0}activateInnerTabInEditMode(){if(this.isEdit&&this.getEditSettings("innerActiveIndex")){const t=this.getEditSettings("innerActiveIndex");jQuery(this.elements.$innerTabs.eq(this.currentPlaylistItemIndex-1).find(".e-inner-tab-title a"))[t].click()}}handleVideo(t){t.playerInstance?this.isVideoShouldBePlayed()&&(this.currentPlaylistItemIndex===1&&this.elements.$imageOverlay&&this.elements.$imageOverlay.remove(),this.playVideoAfterCreation(t)):(t.playerInstance=new{youtube:tn,vimeo:nn,hosted:sn}[t.videoType](t,this.currentPlaylistItemIndex),t.playerInstance.create().then(()=>{this.isVideoShouldBePlayed()&&this.playVideoOnCreation(t),t.playerInstance.handleFullScreenChange(e=>{ce(this,e?"videoFullScreen":"videoExitFullScreen","click")}),t.playerInstance.handlePlayed(()=>{const e=this.getCurrentItemSelected();let n="click";e.isAutoplayOnLoad?(n="onLoad",t.isAutoplayOnLoad=!1):e.isAutoPlayNextUp&&(n="nextVideo"),ce(this,e.playerInstance.isVideoPausedLocal?"videoResume":"videoStart",n)}),t.playerInstance.handleEnded(()=>{ce(this,"videoEnded","click"),this.watchedIndication&&this.elements.$tabTitles.filter(".e-active").addClass("watched-video");const e=this.getCurrentItemSelected().dataItemId;if(!this.watchedVideosArray.includes(e)&&this.watchedIndication&&(this.watchedVideosArray.push(this.getCurrentItemSelected().dataItemId),elementorFrontend.storage.set(this.storageKey,JSON.stringify(this.watchedVideosArray))),this.isAutoplayNextUp&&this.playlistItemsArray.length>=++this.currentPlaylistItemIndex){for(;this.getCurrentItemSelected().videoType==="section";)if(this.currentPlaylistItemIndex++,this.playlistItemsArray.length<this.currentPlaylistItemIndex){this.currentPlaylistItemIndex=this.playlistItemsArray.length;return}this.changeActiveTab(this.currentPlaylistItemIndex,!0)}}),t.playerInstance.handlePaused(e=>{ce(this,"videoPaused","click",e)})}))}playVideoAfterCreation(t){t.playerInstance.play()}playVideoOnCreation(t){this.isAutoplayOnLoad?(t.isAutoplayOnLoad=!0,t.playerInstance.mute(),t.playerInstance.play(),this.isAutoplayOnLoad=!1):this.isFirstVideoActivated||(t.isAutoPlayNextUp=!0,t.playerInstance.play()),this.isFirstVideoActivated=!1}createPlaylistItems(){this.playlistItemsArray=[],this.elements.$videos.each((t,e)=>{const n={},s=jQuery(e);n.videoUrl=s.attr("data-video-url"),n.videoType=s.attr("data-video-type"),n.videoTitle=s.attr("data-video-title"),n.videoDuration=s.attr("data-video-duration"),n.tabContent=e,n.dataTab=t+1,n.dataItemId=this.getElementSettings().tabs[t]._id,this.playlistItemsArray.push(n)}),this.watchedVideosArray.length>0&&this.watchedIndication&&this.watchedVideosArray.forEach(t=>{const e=this.playlistItemsArray.find(n=>n.dataItemId===t);this.elements.$tabTitles.filter('[data-tab="'+e.dataTab+'"]').addClass("watched-video")})}changeActiveTab(t,e){super.changeActiveTab(t),this.playlistItemsArray[t-1]&&this.playlistItemsArray[t-1].videoType!=="section"&&(this.currentPlaylistItemIndex=parseInt(t),e&&(this.currentPlayingPlaylistItemIndex=this.currentPlaylistItemIndex),this.handleVideo(this.getCurrentItemSelected(),e),this.isPageOnLoad||mt(this.playlistId,this.playlistItemsArray,this.currentPlaylistItemIndex),this.isPageOnLoad=!1,jQuery(this.elements.$innerTabs.eq(t-1)).find(".e-inner-tab-content").length>0&&cn(this.elements.$innerTabs.filter(".e-active").find(".e-inner-tab-content").toArray(),this.isCollapsible,this.innerTabsHeightLimit))}}}));We();var Ji=(Se=class extends elementorModules.Module{constructor(){super(),elementorFrontend.hooks.addAction("frontend/element_ready/video-playlist.default",e=>{De(Le(function*(){const{default:n}=yield Promise.resolve().then(()=>(Zi(),Ki));return{default:n}}),void 0).then(({default:n})=>{elementorFrontend.elementsHandler.addHandler(n,{$element:e,toggleSelf:!1})})})}},U(Se,"default"),Se),es=xe({default:()=>gn}),gn,ts=C((()=>{gn=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{button:".elementor-button.elementor-paypal-legacy",errors:".elementor-message-danger"}}}getDefaultElements(){const t=this.getSettings();return{wrapper:this.$element[0],button:this.$element[0].querySelector(t.selectors.button),errors:this.$element[0].querySelectorAll(t.selectors.errors)}}handleClick(t){0<this.elements.errors.length&&(t.preventDefault(),this.elements.errors.forEac
vendor: 6,026 bytes, lines 1784-1785
1784h(e=>{e.classList.remove("elementor-hidden")}))}bindEvents(){this.elements.button.addEventListener("click",this.handleClick.bind(this))}}}));function yn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,s=Array(e);n<e;n++)s[n]=t[n];return s}function ns(t){if(Array.isArray(t))return t}function is(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var s,o,c,d,p=[],h=!0,y=!1;try{if(c=(n=n.call(t)).next,e!==0)for(;!(h=(s=c.call(n)).done)&&(p.push(s.value),p.length!==e);h=!0);}catch(O){y=!0,o=O}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(y)throw o}}return p}}function ss(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1785In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rs(t,e){return ns(t)||is(t,e)||os(t,e)||ss()}function os(t,e){if(t){if(typeof t=="string")return yn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yn(t,e):void 0}}function I(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return Ge(t,e,s)}}function as(t){return function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return Ye(t,n)}}function f(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de;if(bt&&bt(t,null),!Y(e))return t;let s=e.length;for(;s--;){let o=e[s];if(typeof o=="string"){const c=n(o);c!==o&&(Tn(e)||(e[s]=c),o=c)}t[o]=!0}return t}function ls(t){for(let e=0;e<t.length;e++)w(t,e)||(t[e]=null);return t}function D(t){const e=ie(null);for(const s of yt(t)){var n=rs(s,2);const o=n[0],c=n[1];w(t,o)&&(Y(c)?e[o]=ls(c):c&&typeof c=="object"&&c.constructor===Object?e[o]=D(c):e[o]=c)}return e}function cs(t){switch(typeof t){case"string":return t;case"number":return In(t);case"boolean":return Pn(t);case"bigint":return Et?Et(t):"0";case"symbol":return At?At(t):"Symbol()";case"undefined":return me(t);case"function":case"object":{if(t===null)return me(t);const e=t,n=z(e,"toString");if(typeof n=="function"){const s=n(e);return typeof s=="string"?s:me(s)}return me(t)}default:return me(t)}}function z(t,e){for(;t!==null;){const s=_n(t,e);if(s){if(s.get)return I(s.get);if(typeof s.value=="function")return I(s.value)}t=vn(t)}function n(){return null}return n}function us(t){try{return x(t,""),!0}catch(e){return!1}}function bn(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Un();const e=l=>bn(l);if(e.version="3.4.11",e.removed=[],!t||!t.document||t.document.nodeType!==j.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const s=n,o=s.currentScript;t.DocumentFragment;const c=t.HTMLTemplateElement,d=t.Node,p=t.Element,h=t.NodeFilter;t.NamedNodeMap===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const y=t.DOMParser,O=t.trustedTypes,V=p.prototype,Ie=z(V,"cloneNode"),L=z(V,"remove"),J=z(V,"nextSibling"),E=z(V,"childNodes"),$=z(V,"parentNode"),F=z(V,"shadowRoot"),re=z(V,"attributes"),P=d&&d.prototype?z(d.prototype,"nodeType"):null,W=d&&d.prototype?z(d.prototype,"nodeName"):null;if(typeof c=="function"){const l=n.createElement("template");l.content&&l.content.ownerDocument&&(n=l.content.ownerDocument)}let R,oe="",xt,Yn=!1,$e=0;const qn=function(){if($e>0)throw Z('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Pe=function(i){qn(),$e++;try{return R.createHTML(i)}finally{$e--}},Es=function(i){qn(),$e++;try{return R.createScriptURL(i)}finally{$e--}},As=function(){return Yn||(xt=jn(O,o),Yn=!0),xt},et=n,Rt=et.implementation,Qn=et.createNodeIterator,Is=et.createDocumentFragment,Ps=et.getElementsByTagName,Cs=s.importNode;let A=Mt();e.isSupported=typeof yt=="function"&&typeof $=="function"&&Rt&&Rt.createHTMLDocument!==void 0;const ws=On,Os=kn,ks=Mn,Ms=xn,xs=Rn,Rs=Dn,Kn=Ln,Ds=Nn;let Zn=Ot,T=null;const Jn=f({},[...It,...Qe,...Ke,...Ze,...Pt]);let v=null;const ei=f({},[...Ct,...Je,...wt,...Ne]);let _=Object.seal(ie(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ve=null,ti=null;const ee=Object.seal(ie(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ni=!0,Dt=!0,ii=!1,si=!0,te=!1,He=!0,ae=!1,Lt=!1,Ft=null,Nt=null,$t=!1,Ce=!1,tt=!1,nt=!1,ri=!0,oi=!1;const ai="user-content-";let Vt=!0,Ht=!1,we={},X=null;const Ut=f({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let li=null;const ci=f({},["audio","video","img","source","image","track"]);let jt=null;const ui=f({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",G="http://www.w3.org/1999/xhtml";let Oe=G,Bt=!1,zt=null;const Ls=f({},[it,st,G],qe),di=k(["mi","mo","mn","ms","mtext"]);let Wt=f({},di);const hi=k(["annotation-xml"]);let Xt=f({},hi);const Fs=f({},["title","style","font","a","script"]);let Ue=null;const Ns=["application/xhtml+xml","text/html"],$s="text/html";let S=null,ke=null;const Vs=n.createElement("form"),mi=function(i){return i instanceof RegExp||i instanceof Function},Gt=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ke&&ke===i)return;(!i||typeof i!="object")&&(i={}
vendor: 12,224 bytes, line 1785
1785),i=D(i),Ue=Ns.indexOf(i.PARSER_MEDIA_TYPE)===-1?$s:i.PARSER_MEDIA_TYPE,S=Ue==="application/xhtml+xml"?qe:de,T=q(i,"ALLOWED_TAGS",Jn,{transform:S}),v=q(i,"ALLOWED_ATTR",ei,{transform:S}),zt=q(i,"ALLOWED_NAMESPACES",Ls,{transform:qe}),jt=q(i,"ADD_URI_SAFE_ATTR",ui,{transform:S,base:ui}),li=q(i,"ADD_DATA_URI_TAGS",ci,{transform:S,base:ci}),X=q(i,"FORBID_CONTENTS",Ut,{transform:S}),Ve=q(i,"FORBID_TAGS",D({}),{transform:S}),ti=q(i,"FORBID_ATTR",D({}),{transform:S}),we=w(i,"USE_PROFILES")?i.USE_PROFILES&&typeof i.USE_PROFILES=="object"?D(i.USE_PROFILES):i.USE_PROFILES:!1,ni=i.ALLOW_ARIA_ATTR!==!1,Dt=i.ALLOW_DATA_ATTR!==!1,ii=i.ALLOW_UNKNOWN_PROTOCOLS||!1,si=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,te=i.SAFE_FOR_TEMPLATES||!1,He=i.SAFE_FOR_XML!==!1,ae=i.WHOLE_DOCUMENT||!1,Ce=i.RETURN_DOM||!1,tt=i.RETURN_DOM_FRAGMENT||!1,nt=i.RETURN_TRUSTED_TYPE||!1,$t=i.FORCE_BODY||!1,ri=i.SANITIZE_DOM!==!1,oi=i.SANITIZE_NAMED_PROPS||!1,Vt=i.KEEP_CONTENT!==!1,Ht=i.IN_PLACE||!1,Zn=us(i.ALLOWED_URI_REGEXP)?i.ALLOWED_URI_REGEXP:Ot,Oe=typeof i.NAMESPACE=="string"?i.NAMESPACE:G,Wt=w(i,"MATHML_TEXT_INTEGRATION_POINTS")&&i.MATHML_TEXT_INTEGRATION_POINTS&&typeof i.MATHML_TEXT_INTEGRATION_POINTS=="object"?D(i.MATHML_TEXT_INTEGRATION_POINTS):f({},di),Xt=w(i,"HTML_INTEGRATION_POINTS")&&i.HTML_INTEGRATION_POINTS&&typeof i.HTML_INTEGRATION_POINTS=="object"?D(i.HTML_INTEGRATION_POINTS):f({},hi);const r=w(i,"CUSTOM_ELEMENT_HANDLING")&&i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING=="object"?D(i.CUSTOM_ELEMENT_HANDLING):ie(null);if(_=ie(null),w(r,"tagNameCheck")&&mi(r.tagNameCheck)&&(_.tagNameCheck=r.tagNameCheck),w(r,"attributeNameCheck")&&mi(r.attributeNameCheck)&&(_.attributeNameCheck=r.attributeNameCheck),w(r,"allowCustomizedBuiltInElements")&&typeof r.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),M(_),te&&(Dt=!1),tt&&(Ce=!0),we&&(T=f({},Pt),v=ie(null),we.html===!0&&(f(T,It),f(v,Ct)),we.svg===!0&&(f(T,Qe),f(v,Je),f(v,Ne)),we.svgFilters===!0&&(f(T,Ke),f(v,Je),f(v,Ne)),we.mathMl===!0&&(f(T,Ze),f(v,wt),f(v,Ne))),ee.tagCheck=null,ee.attributeCheck=null,w(i,"ADD_TAGS")&&(typeof i.ADD_TAGS=="function"?ee.tagCheck=i.ADD_TAGS:Y(i.ADD_TAGS)&&(T===Jn&&(T=D(T)),f(T,i.ADD_TAGS,S))),w(i,"ADD_ATTR")&&(typeof i.ADD_ATTR=="function"?ee.attributeCheck=i.ADD_ATTR:Y(i.ADD_ATTR)&&(v===ei&&(v=D(v)),f(v,i.ADD_ATTR,S))),w(i,"ADD_URI_SAFE_ATTR")&&Y(i.ADD_URI_SAFE_ATTR)&&f(jt,i.ADD_URI_SAFE_ATTR,S),w(i,"FORBID_CONTENTS")&&Y(i.FORBID_CONTENTS)&&(X===Ut&&(X=D(X)),f(X,i.FORBID_CONTENTS,S)),w(i,"ADD_FORBID_CONTENTS")&&Y(i.ADD_FORBID_CONTENTS)&&(X===Ut&&(X=D(X)),f(X,i.ADD_FORBID_CONTENTS,S)),Vt&&(T["#text"]=!0),ae&&f(T,["html","head","body"]),T.table&&(f(T,["tbody"]),delete Ve.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const a=R;R=i.TRUSTED_TYPES_POLICY;try{oe=Pe("")}catch(u){throw R=a,u}}else i.TRUSTED_TYPES_POLICY===null?(R=void 0,oe=""):(R===void 0&&(R=As()),R&&typeof oe=="string"&&(oe=Pe("")));k&&k(i),ke=i},fi=f({},[...Qe,...Ke,...Cn]),pi=f({},[...Ze,...wn]),Hs=function(i,r,a){return r.namespaceURI===G?i==="svg":r.namespaceURI===it?i==="svg"&&(a==="annotation-xml"||Wt[a]):!!fi[i]},Us=function(i,r,a){return r.namespaceURI===G?i==="math":r.namespaceURI===st?i==="math"&&Xt[a]:!!pi[i]},js=function(i,r,a){return r.namespaceURI===st&&!Xt[a]||r.namespaceURI===it&&!Wt[a]?!1:!pi[i]&&(Fs[i]||!fi[i])},Bs=function(i){let r=$(i);(!r||!r.tagName)&&(r={namespaceURI:Oe,tagName:"template"});const a=de(i.tagName),u=de(r.tagName);return zt[i.namespaceURI]?i.namespaceURI===st?Hs(a,r,u):i.namespaceURI===it?Us(a,r,u):i.namespaceURI===G?js(a,r,u):!!(Ue==="application/xhtml+xml"&&zt[i.namespaceURI]):!1},ne=function(i){se(e.removed,{element:i});try{$(i).removeChild(i)}catch(r){if(L(i),!$(i))throw Z("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},gi=function(i){const r=E(i);if(r){const u=[];ue(r,m=>{se(u,m)}),ue(u,m=>{try{L(m)}catch(g){}})}const a=re(i);if(a)for(let u=a.length-1;u>=0;--u){const m=a[u],g=m&&m.name;if(typeof g=="string")try{i.removeAttribute(g)}catch(b){}}},le=function(i,r){try{se(e.removed,{attribute:r.getAttributeNode(i),from:r})}catch(a){se(e.removed,{attribute:null,from:r})}if(r.removeAttribute(i),i==="is")if(Ce||tt)try{ne(r)}catch(a){}else try{r.setAttribute(i,"")}catch(a){}},zs=function(i){const r=re(i);if(r)for(let a=r.length-1;a>=0;--a){const u=r[a],m=u&&u.name;if(!(typeof m!="string"||v[S(m)]))try{i.removeAttribute(m)}catch(g){}}},Ws=function(i){const r=[i];for(;r.length>0;){const a=r.pop();(P?P(a):a.nodeType)===j.element&&zs(a);const u=E(a);if(u)for(let m=u.length-1;m>=0;--m)r.push(u[m])}},yi=function(i){let r=null,a=null;if($t)i="<remove></remove>"+i;else{const g=_t(i,/^[\r\n\t ]+/);a=g&&g[0]}Ue==="application/xhtml+xml"&&Oe===G&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const u=R?Pe(i):i;if(Oe===G)try{r=new y().parseFromString(u,Ue)}catch(g){}if(!r||!r.documentElement){r=Rt.createDocument(Oe,"template",null);try{r.documentElement.innerHTML=Bt?oe:u}catch(g){}}const m=r.body||r.documentElement;return i&&a&&m.insertBefore(n.createTextNode(a),m.childNodes[0]||null),Oe===G?Ps.call(r,ae?"html":"body")[0]:ae?r.documentElement:m},bi=function(i){return Qn.call(i.ownerDocument||i,i,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},rt=function(i){return i=he(i,ws," "),i=he(i,Os," "),i=he(i,ks," "),i},Yt=function(i){var r;i.normalize();const a=Qn.call(i.ownerDocument||i,i,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null);let u=a.nextNode();for(;u;)u.data=rt(u.data),u=a.nextNode();const m=(r=i.querySelectorAll)===null||r===void 0?void 0:r.call(i,"template");m&&ue(m,g=>{Me(g.content)&&Yt(g.content)})},ot=function(i){const r=W?W(i):null;return typeof r!="string"||S(r)!=="form"?!1:typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||i.attributes!==re(i)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function"||i.nodeType!==P(i)||i.childNodes!==E(i)},Me=function(i){if(!P||typeof i!="object"||i===null)return!1;try{return P(i)===j.documentFragment}catch(r){return!1}},je=function(i){if(!P||typeof i!="object"||i===null)return!1;try{return typeof P(i)=="number"}catch(r){return!1}};function Q(l,i,r){l.length!==0&&ue(l,a=>{a.call(e,i,r,ke)})}const Xs=function(i,r){return!!(He&&i.hasChildNodes()&&!je(i.firstElementChild)&&x(kt,i.textContent)&&x(kt,i.innerHTML)||He&&i.namespaceURI===G&&r==="style"&&je(i.firstElementChild)||i.nodeType===j.processingInstruction||He&&i.nodeType===j.comment&&x($n,i.data))},Gs=function(i,r){if(!Ve[r]&&_i(r)&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,r)||_.tagNameCheck instanceof Function&&_.tagNameCheck(r)))return!1;if(Vt&&!X[r]){const a=$(i),u=E(i);if(u&&a){const m=u.length;for(let g=m-1;g>=0;--g){const b=Ht?u[g]:Ie(u[g],!0);a.insertBefore(b,J(i))}}}return ne(i),!0},Ti=function(i){if(Q(A.beforeSanitizeElements,i,null),ot(i))return ne(i),!0;const r=S(W?W(i):i.nodeName);if(Q(A.uponSanitizeElement,i,{tagName:r,allowedTags:T}),Xs(i,r))return ne(i),!0;if(Ve[r]||!(ee.tagCheck instanceof Function&&ee.tagCheck(r))&&!T[r])return Gs(i,r);if((P?P(i):i.nodeType)===j.element&&!Bs(i)||(r==="noscript"||r==="noembed"||r==="noframes")&&x(Vn,i.innerHTML))return ne(i),!0;if(te&&i.nodeType===j.text){const a=rt(i.textContent);i.textContent!==a&&(se(e.removed,{element:i.cloneNode()}),i.textContent=a)}return Q(A.afterSanitizeElements,i,null),!1},vi=function(i,r,a){if(ti[r]||ri&&(r==="id"||r==="name")&&(a in n||a in Vs))return!1;const u=v[r]||ee.attributeCheck instanceof Function&&ee.attributeCheck(r,i);if(!(Dt&&x(Ms,r))){if(!(ni&&x(xs,r))){if(u){if(!jt[r]){if(!x(Zn,he(a,Kn,""))){if(!((r==="src"||r==="xlink:href"||r==="href")&&i!=="script"&&St(a,"data:")===0&&li[i])){if(!(ii&&!x(Rs,he(a,Kn,"")))){if(a)return!1}}}}}else if(!(_i(i)&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,i)||_.tagNameCheck instanceof Function&&_.tagNameCheck(i))&&(_.attributeNameCheck instanceof RegExp&&x(_.attributeNameCheck,r)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(r,i))||r==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,a)||_.tagNameCheck instanceof Function&&_.tagNameCheck(a))))return!1}}return!0},Ys=f({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),_i=function(i){return!Ys[de(i)]&&x(Ds,i)},qs=function(i,r,a,u){if(R&&typeof O=="object"&&typeof O.getAttributeType=="function"&&!a)switch(O.getAttributeType(i,r)){case"TrustedHTML":return Pe(u);case"TrustedScriptURL":return Es(u)}return u},Qs=function(i,r,a,u){try{a?i.setAttributeNS(a,r,u):i.setAttribute(r,u),ot(i)?ne(i):vt(e.removed)}catch(m){le(r,i)}},Si=function(i){Q(A.beforeSanitizeAttributes,i,null);const r=i.attributes;if(!r||ot(i))return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v,forceKeepAttr:void 0};let u=r.length;const m=S(i.nodeName);for(;u--;){const g=r[u],b=g.name,H=g.namespaceURI,K=g.value,B=S(b),Qt=K;let N=b==="value"?Qt:An(Qt);if(a.attrName=B,a.attrValue=N,a.keepAttr=!0,a.forceKeepAttr=void 0,Q(A.uponSanitizeAttribute,i,a),N=a.attrValue,oi&&(B==="id"||B==="name")&&St(N,ai)!==0&&(le(b,i),N=ai+N),He&&x(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,N)){le(b,i);continue}if(B==="attributename"&&_t(N,"href")){le(b,i);continue}if(!a.forceKeepAttr){if(!a.keepAttr){le(b,i);continue}if(!si&&x(Hn,N)){le(b,i);continue}if(te&&(N=rt(N)),!vi(m,B,N)){le(b,i);continue}N=qs(m,B,H,N),N!==Qt&&Qs(i,b,H,N)}}Q(A.afterSanitizeAttributes,i,null)},at=function(i){let r=null;const a=bi(i);for(Q(A.beforeSanitizeShadowDOM,i,null);r=a.nextNode();)if(Q(A.uponSanitizeShadowNode,r,null),Ti(r),Si(r),Me(r.content)&&at(r.content),(P?P(r):r.nodeType)===j.element){const u=F(r);Me(u)&&(qt(u),at(u))}Q(A.afterSanitizeShadowDOM,i,null)},qt=function(i){const r=[{node:i,shadow:null}];for(;r.length>0;){const a=r.pop();if(a.shadow){at(a.shadow);continue}const u=a.node,m=(P?P(u):u.nodeType)===j.element,g=E(u);if(g)for(let b=g.length-1;b>=0;--b)r.push({node:g[b],shadow:null});if(m){const b=W?W(u):null;if(typeof b=="string"&&S(b)==="template"){const H=u.content;Me(H)&&r.push({node:H,shadow:null})}}if(m){const b=F(u);Me(b)&&r.push({node:null,shadow:b},{node:b,shadow:null})}}};return e.sanitize=function(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=null,a=null,u=null,m=null;if(Bt=!l,Bt&&(l="<!-->"),typeof l!="string"&&!je(l)&&(l=cs(l),typeof l!="string"))throw Z("dirty is not a string, aborting");if(!e.isSupported)return l;Lt?(T=Ft,v=Nt):Gt(i),(A.uponSanitizeElement.length>0||A.uponSanitizeAttribute.length>0)&&(T=D(T)),A.uponSanitizeAttribute.length>0&&(v=D(v)),e.removed=[];const g=Ht&&typeof l!="string"&&je(l);if(g){const K=W?W(l):l.nodeName;if(typeof K=="string"){const B=S(K);if(!T[B]||Ve[B])throw Z("root node is forbidden and cannot be sanitized in-place")}if(ot(l))throw Z("root node is clobbered and cannot be sanitized in-place");try{qt(l)}catch(B){throw gi(l),B}}else if(je(l))r=yi("<!---->"),a=r.ownerDocument.importNode(l,!0),a.nodeType===j.element&&a.nodeName==="BODY"||a.nodeName==="HTML"?r=a:r.appendChild(a),qt(a);else{if(!Ce&&!te&&!ae&&l.indexOf("<")===-1)return R&&nt?Pe(l):l;if(r=yi(l),!r)return Ce?null:nt?oe:""}r&&$t&&ne(r.firstChild);const b=bi(g?l:r);try{for(;u=b.nextNode();)Ti(u),Si(u),Me(u.content)&&at(u.content)}catch(K){throw g&&gi(l),K}if(g)return ue(e.removed,K=>{K.element&&Ws(K.element)}),te&&Yt(l),l;if(Ce){if(te&&Yt(r),tt)for(m=Is.call(r.ownerDocument);r.firstChild;)m.appendChild(r.firstChild);else m=r;return(v.shadowroot||v.shadowrootmode)&&(m=Cs.call(s,m,!0)),m}let H=ae?r.outerHTML:r.innerHTML;
1785return ae&&T["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&x(Fn,r.ownerDocument.doctype.name)&&(H="<!DOCTYPE "+r.ownerDocument.doctype.name+`>
1786`+H),te&&(H=rt(H)),R&&nt?Pe(H):H},e.setConfig=function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gt(l),Lt=!0,Ft=T,Nt=v},e.clearConfig=function(){ke=null,Lt=!1,Ft=null,Nt=null,R=xt,oe=""},e.isValidAttribute=function(l,i,r){ke||Gt({});const a=S(l),u=S(i);return vi(a,u,r)},e.addHook=function(l,i){typeof i=="function"&&w(A,l)&&se(A[l],i)},e.removeHook=function(l,i){if(w(A,l)){if(i!==void 0){const r=Sn(A[l],i);return r===-1?void 0:En(A[l],r,1)[0]}return vt(A[l])}},e.removeHooks=function(l){w(A,l)&&(A[l]=[])},e.removeAllHooks=function(){A=Mt()},e}var yt,bt,Tn,vn,_n,k,M,ie,Tt,Ge,Ye,ue,Sn,vt,se,En,Y,de,qe,_t,he,St,An,In,Pn,Et,At,w,me,x,Z,It,Qe,Ke,Cn,Ze,wn,Pt,Ct,Je,wt,Ne,On,kn,Mn,xn,Rn,Ot,Dn,Ln,Fn,Nn,kt,$n,Vn,Hn,j,Un,jn,Mt,q,Bn,ds=C((()=>{yt=Object.entries,bt=Object.setPrototypeOf,Tn=Object.isFrozen,vn=Object.getPrototypeOf,_n=Object.getOwnPropertyDescriptor,k=Object.freeze,M=Object.seal,ie=Object.create,Tt=typeof Reflect!="undefined"&&Reflect,Ge=Tt.apply,Ye=Tt.construct,k||(k=function(e){return e}),M||(M=function(e){return e}),Ge||(Ge=function(e,n){for(var s=arguments.length,o=new Array(s>2?s-2:0),c=2;c<s;c++)o[c-2]=arguments[c];return e.apply(n,o)}),Ye||(Ye=function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return new e(...s)}),ue=I(Array.prototype.forEach),Sn=I(Array.prototype.lastIndexOf),vt=I(Array.prototype.pop),se=I(Array.prototype.push),En=I(Array.prototype.splice),Y=Array.isArray,de=I(String.prototype.toLowerCase),qe=I(String.prototype.toString),_t=I(String.prototype.match),he=I(String.prototype.replace),St=I(String.prototype.indexOf),An=I(String.prototype.trim),In=I(Number.prototype.toString),Pn=I(Boolean.prototype.toString),Et=typeof BigInt=="undefined"?null:I(BigInt.prototype.toString),At=typeof Symbol=="undefined"?null:I(Symbol.prototype.toString),w=I(Object.prototype.hasOwnProperty),me=I(Object.prototype.toString),x=I(RegExp.prototype.test),Z=as(TypeError),It=k(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Qe=k(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ke=k(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cn=k(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ze=k(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),wn=k(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pt=k(["#text"]),Ct=k(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1786spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Je=k(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),wt=k(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ne=k(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),On=M(/{{[\w\W]*|^[\w\W]*}}/g),kn=M(/<%[\w\W]*|^[\w\W]*%>/g),Mn=M(/\${[\w\W]*/g),xn=M(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rn=M(/^aria-[\-\w]+$/),Ot=M(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dn=M(/^(?:\w+script|data):/i),Ln=M(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fn=M(/^html$/i),Nn=M(/^[a-z][.\w]*(-[.\w]+)+$/i),kt=M(/<[/\w!]/g),$n=M(/<[/\w]/g),Vn=M(/<\/no(script|embed|frames)/i),Hn=M(/\/>/i),j={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Un=function(){return typeof window=="undefined"?null:window},jn=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(s=n.getAttribute(o));const c="dompurify"+(s?"#"+s:"");try{return e.createPolicy(c,{createHTML(d){return d},createScriptURL(d){return d}})}catch(d){return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Mt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},q=function(e,n,s,o){return w(e,n)&&Y(e[n])?f(o.base?D(o.base):{},e[n],o.transform):s},Bn=bn()})),hs=xe({default:()=>zn}),zn,ms=C((()=>{ds(),zn=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{form:".elementor-stripe-form",errors:".elementor-message-danger"}}}getDefaultElements(){const t=this.getSettings();return{form:this.$element[0].querySelector(t.selectors.form),errors:this.$element[0].querySelectorAll(t.selectors.errors),post_id:this.$element.closest("[data-elementor-id]").attr("data-elementor-id")}}handleSubmit(t){if(t.preventDefault(),elementorFrontend.isEditMode())return;this.elements.errors.innerHTML!==""&&document.querySelectorAll(".elementor-stripe-error-message").forEach(E=>E.remove());const e=this.elements.form,n=new FormData(e),s=n.get("url"),o=n.get("action"),c=parseInt(this.elements.post_id),d=n.get("widget_id"),p=n.get("custom_error_msg"),h=n.get("custom_error_msg_global"),y=n.get("custom_error_msg_payment"),O=n.get("stripe_form_submit_nonce"),V=document.URL,Ie=n.get("open_in_new_window")==="yes"?"_blank":"_self",L=E=>{const $=document.createElement("div"),F=e.appendChild($);F.className="elementor-message elementor-stripe-error-message elementor-message-danger",F.innerHTML=`${Bn.sanitize(E)}`},J={action:o,postId:c,widgetId:d,pageUrl:V,nonce:O};
17860<this.elements.errors.length?this.elements.errors.forEach(E=>{E.classList.remove("elementor-hidden")}):jQuery.post(s,{action:o,data:J}).done(E=>{const $=E.response.code,F=E.body&&JSON.parse(E.body);switch($){case 200:window.open(F.url,Ie);break;case 401:case 403:L(p?y:F.error.message);break;default:L(p?h:F.error.message)}}).fail(()=>{L(p?h:result.error.message)})}bindEvents(){this.elements.form.addEventListener("submit",t=>this.handleSubmit(t))}}})),fs=(Ee=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("paypal-button",()=>De(()=>Promise.resolve().then(()=>(ts(),es)),void 0)),elementorFrontend.elementsHandler.attachHandler("stripe-button",()=>De(()=>Promise.resolve().then(()=>(ms(),hs)),void 0))}},U(Ee,"default"),Ee),Wn,ps=C((()=>{Wn=class{constructor(t,e){this.settings=e,this.lastKnownProgress=null,this.circularProgressTracker=t.find(".elementor-scrolling-tracker-circular")[0],this.circularCurrentProgress=this.circularProgressTracker.getElementsByClassName("current-progress")[0],this.circularCurrentProgressPercentage=this.circularProgressTracker.getElementsByClassName("current-progress-percentage")[0];const n=this.circularCurrentProgress.r.baseVal.value*2*Math.PI;this.circularCurrentProgress.style.strokeDasharray=`${n} ${n}`,this.circularCurrentProgress.style.strokeDashoffset=n,this.elements=this.cacheElements(),this.resizeObserver=new ResizeObserver(()=>{this.lastKnownProgress&&this.updateProgress(this.lastKnownProgress)}),this.resizeObserver.observe(this.circularProgressTracker)}cacheElements(){return{circularProgressTracker:this.circularProgressTracker,circularCurrentProgress:this.circularCurrentProgress,circularCurrentProgressPercentage:this.circularCurrentProgressPercentage}}updateProgress(t){if(t<=0){this.elements.circularCurrentProgress.style.display="none",this.elements.circularCurrentProgressPercentage.style.display="none";return}this.elements.circularCurrentProgress.style.display="block",this.elements.circularCurrentProgressPercentage.style.display="block";const e=this.elements.circularCurrentProgress.r.baseVal.value*2*Math.PI,n=e-t/100*e;this.lastKnownProgress=t,this.elements.circularCurrentProgress.style.strokeDasharray=`${e} ${e}`,this.elements.circularCurrentProgress.style.strokeDashoffset=this.settings.direction==="ltr"?-n:n,this.settings.percentage==="yes"&&(this.elements.circularCurrentProgressPercentage.innerHTML=Math.round(t)+"%")}onDestroy(){this.resizeObserver.unobserve(this.circularProgressTracker)}}})),Xn,gs=C((()=>{Xn=class{constructor(t,e){this.settings=e,this.linearProgressTracker=t.find(".elementor-scrolling-tracker-horizontal")[0],this.linearCurrentProgress=this.linearProgressTracker.getElementsByClassName("current-progress")[0],this.linearCurrentProgressPercentage=this.linearProgressTracker.getElementsByClassName("current-progress-percentage")[0],this.elements=this.cacheElements()}cacheElements(){return{linearProgressTracker:this.linearProgressTracker,linearCurrentProgress:this.linearCurrentProgress,linearCurrentProgressPercentage:this.linearCurrentProgressPercentage}}updateProgress(t){if(t<1){this.elements.linearCurrentProgress.style.display="none";return}this.elements.linearCurrentProgress.style.display="flex",this.elements.linearCurrentProgress.style.width=t+"%",this.settings.percentage==="yes"&&this.elements.linearCurrentProgress.getBoundingClientRect().width>this.elements.linearCurrentProgressPercentage.getBoundingClientRect().width*1.5?(this.elements.linearCurrentProgressPercentage.innerHTML=Math.round(t)+"%",this.elements.linearCurrentProgressPercentage.style.color=getComputedStyle(this.linearCurrentProgress).getPropertyValue("--percentage-color")):this.elements.linearCurrentProgressPercentage.style.color="transparent"}}})),ys=xe({default:()=>Gn}),Gn,bs=C((()=>{ps(),gs(),Gn=class extends elementorModules.frontend.handlers.Base{onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.circular=this.getElementSettings().type==="circular";const t=this.circular?Wn:Xn;this.progressBar=new t(this.$element,this.getElementSettings()),this.progressPercentage=0,this.scrollHandler(),this.handler=this.scrollHandler.bind(this),this.initListeners()}getTrackingElementSelector(){const t=this.getElementSettings().relative_to;let e;switch(t){case"selector":e=jQuery(this.getElementSettings().selector);break;case"post_content":e=jQuery(".elementor-widget-theme-post-content");break;default:e=this.isScrollSnap()?jQuery("#e-scroll-snap-container"):elementorFrontend.elements.$body;break}return e}isScrollSnap(){return(this.isEdit?elementor.settings.page.model.attributes.scroll_snap:elementorFrontend.config.settings.page.scroll_snap)==="yes"}addScrollSnapContainer(){this.isScrollSnap()&&!jQuery("#e-scroll-snap-container").length&&jQuery("body").wrapInner('<div id="e-scroll-snap-container" />')}scrollHandler(){this.addScrollSnapContainer();const t=this.getTrackingElementSelector(),e=t.is(elementorFrontend.elements.$body)||t.is(jQuery("#e-scroll-snap-container"))?-100:0;this.progressPercentage=elementorModules.utils.Scroll.getElementViewportPercentage(this.getTrackingElementSelector(),{start:e,end:-100}),this.progressBar.updateProgress(this.progressPercentage)}initListeners(){window.addEventListener("scroll",this.handler),elementorFrontend.elements.$body[0].addEventListener("scroll",this.handler)}onDestroy(){this.progressBar.onDestroy&&this.progressBar.onDestroy(),window.removeEventListener("scroll",this.handler),elementorFrontend.elements.$body[0].removeEventListener("scroll",this.handler)}}})),Ts=(Ae=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("progress-tracker",()=>De(()=>Promise.resolve().then(()=>(bs(),ys)),void 0))}},U(Ae,"default"),Ae),vs=class{getControlValue(t,e,n){let s;return typeof t[e]=="object"&&n?s=t[e][n]:s=t[e],s}getResponsiveControlValue(t,e,n=""){const s=elementorFrontend.getCurrentDeviceMode(),o=this.getControlValue(t,e,n);if(s==="widescreen"){const y=this.getControlValue(t,`${e}_widescreen`,n);return y||y===0?y:o}const c=elementorFrontend.breakpoints.getActiveBreakpointsList({withDesktop:!0});let d=s,p=c.indexOf(s),h="";for(;p<=c.length;){if(d==="desktop"){h=o;break}const y=`${e}_${d}`,O=this.getControlValue(t,y,n);if(O||O===0){h=O;break}p++,d=c[p]}return h}},_s=class{constructor(t){this.widgetConfig=t}calculateStickyMenuNavHeight(){this.widgetConfig.elements.$dropdownMenuContainer.css(this.widgetConfig.settings.menuHeight
1786CssVarName,"");const t=this.widgetConfig.elements.$dropdownMenuContainer.offset().top-jQuery(window).scrollTop();return elementorFrontend.elements.$window.height()-t}calculateMenuTabContentHeight(t){return elementorFrontend.elements.$window.height()-t[0].getBoundingClientRect().top}isElementSticky(){return this.widgetConfig.elements.$element.hasClass("elementor-sticky")||this.widgetConfig.elements.$element.parents(".elementor-sticky").length}getMenuHeight(){return this.isElementSticky()?this.calculateStickyMenuNavHeight()+"px":this.widgetConfig.settings.dropdownMenuContainerMaxHeight}setMenuHeight(t){this.widgetConfig.elements.$dropdownMenuContainer.css(this.widgetConfig.settings.menuHeightCssVarName,t)}reassignMobileMenuHeight(){const t=this.isToggleActive()?this.getMenuHeight():0;return this.setMenuHeight(t)}reassignMenuHeight(t){if(!this.isElementSticky()||t.length===0)return;const e=elementorFrontend.elements.$window.height()-t[0].getBoundingClientRect().top;t.height()>e&&(t.css("height",this.calculateMenuTabContentHeight(t)+"px"),t.css("overflow-y","scroll"))}resetMenuHeight(t){this.isElementSticky()&&(t.css("height","initial"),t.css("overflow-y","visible"))}isToggleActive(){var t;const e=this.widgetConfig.elements.$menuToggle;return!((t=this.widgetConfig.attributes)===null||t===void 0)&&t.menuToggleState?e.attr(this.widgetConfig.attributes.menuToggleState)==="true":e.hasClass(this.widgetConfig.classes.menuToggleActiveClass)}},Ss=class extends elementorModules.ViewModule{onInit(){super.onInit(),this.config=ElementorProFrontendConfig,this.modules={},this.initOnReadyComponents()}bindEvents(){jQuery(window).on("elementor/frontend/init",this.onElementorFrontendInit.bind(this))}initModules(){let t={motionFX:ki,sticky:xi,codeHighlight:Li,videoPlaylist:Ji,payments:fs,progressTracker:Ts};elementorProFrontend.trigger("elementor-pro/modules/init/before"),t=elementorFrontend.hooks.applyFilters("elementor-pro/frontend/handlers",t),jQuery.each(t,(e,n)=>{this.modules[e]=new n}),this.modules.linkActions={addAction:(...e)=>{elementorFrontend.utils.urlActions.addAction(...e)}}}onElementorFrontendInit(){this.initModules()}initOnReadyComponents(){this.utils={controls:new vs,DropdownMenuHeightController:_s}}};window.elementorProFrontend=new Ss}
1786)();
1787;/*! elementor-pro - v4.3.0 - 22-09-2026 */
1788(function(At){var ke,xe,De,Le,Me,Pe,Oe,Be,He,Re,We,Ne,ze,je,qe,Ve,Ue,Ge,Qe,Ke,Ye,Xe,Je,Ze,et,tt,nt,st,it,ot,rt,at,lt,ct,dt,ut,mt,ht,gt,pt,ft,vt,_t,bt,St;var hr=Object.create,Ft=Object.defineProperty,f=(e,t)=>Ft(e,"name",{value:t,configurable:!0}),gr=Object.getOwnPropertyDescriptor,pr=Object.getOwnPropertyNames,fr=Object.getPrototypeOf,vr=Object.prototype.hasOwnProperty,g=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(s){throw n=[s],s}},Ss=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),b=(e,t)=>{let n={};for(var s in e)Ft(n,s,{get:e[s],enumerable:!0});return t||Ft(n,Symbol.toStringTag,{value:"Module"}),n},_r=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=pr(t),o=0,a=i.length,l;o<a;o++)l=i[o],!vr.call(e,l)&&l!==n&&Ft(e,l,{get:(d=>t[d]).bind(null,l),enumerable:!(s=gr(t,l))||s.enumerable});return e},It=(e,t,n)=>(n=e!=null?hr(fr(e)):{},_r(t||!e||!e.__esModule?Ft(n,"default",{value:e,enumerable:!0}):n,e)),td="modulepreload",nd=function(e){return"/"+e},sd={},v=function(t,n,s){let i=Promise.resolve();if(0)var a,l;function o(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return i.then(d=>{for(const h of d||[])h.status==="rejected"&&o(h.reason);return t().catch(o)})},br=b({default:()=>ys}),ys,Sr=g((()=>{ys=elementorModules.frontend.handlers.Base.extend({svgPaths:{circle:["M325,18C228.7-8.3,118.5,8.3,78,21C22.4,38.4,4.6,54.6,5.6,77.6c1.4,32.4,52.2,54,142.6,63.7 c66.2,7.1,212.2,7.5,273.5-8.3c64.4-16.6,104.3-57.6,33.8-98.2C386.7-4.9,179.4-1.4,126.3,20.7"],underline_zigzag:["M9.3,127.3c49.3-3,150.7-7.6,199.7-7.4c121.9,0.4,189.9,0.4,282.3,7.2C380.1,129.6,181.2,130.6,70,139 c82.6-2.9,254.2-1,335.9,1.3c-56,1.4-137.2-0.3-197.1,9"],x:["M497.4,23.9C301.6,40,155.9,80.6,4,144.4","M14.1,27.6c204.5,20.3,393.8,74,467.3,111.7"],strikethrough:["M3,75h493.5"],curly:["M3,146.1c17.1-8.8,33.5-17.8,51.4-17.8c15.6,0,17.1,18.1,30.2,18.1c22.9,0,36-18.6,53.9-18.6 c17.1,0,21.3,18.5,37.5,18.5c21.3,0,31.8-18.6,49-18.6c22.1,0,18.8,18.8,36.8,18.8c18.8,0,37.5-18.6,49-18.6c20.4,0,17.1,19,36.8,19 c22.9,0,36.8-20.6,54.7-18.6c17.7,1.4,7.1,19.5,33.5,18.8c17.1,0,47.2-6.5,61.1-15.6"],diagonal:["M13.5,15.5c131,13.7,289.3,55.5,475,125.5"],double:["M8.4,143.1c14.2-8,97.6-8.8,200.6-9.2c122.3-0.4,287.5,7.2,287.5,7.2","M8,19.4c72.3-5.3,162-7.8,216-7.8c54,0,136.2,0,267,7.8"],double_underline:["M5,125.4c30.5-3.8,137.9-7.6,177.3-7.6c117.2,0,252.2,4.7,312.7,7.6","M26.9,143.8c55.1-6.1,126-6.3,162.2-6.1c46.5,0.2,203.9,3.2,268.9,6.4"],underline:["M7.7,145.6C109,125,299.9,116.2,401,121.3c42.1,2.2,87.6,11.8,87.3,25.7"]},getDefaultSettings(){const e=this.getElementSettings("rotate_iteration_delay"),t={animationDelay:e||2500,lettersDelay:e*.02||50,typeLettersDelay:e*.06||150,selectionDuration:e*.2||500,revealDuration:e*.24||600,revealAnimationDelay:e*.6||1500,highlightAnimationDuration:this.getElementSettings("highlight_animation_duration")||1200,highlightAnimationDelay:this.getElementSettings("highlight_iteration_delay")||8e3};return t.typeAnimationDelay=t.selectionDuration+800,t.selectors={headline:".elementor-headline",dynamicWrapper:".elementor-headline-dynamic-wrapper",dynamicText:".elementor-headline-dynamic-text"},t.classes={dynamicText:"elementor-headline-dynamic-text",dynamicLetter:"elementor-headline-dynamic-letter",textActive:"elementor-headline-text-active",textInactive:"elementor-headline-text-inactive",letters:"elementor-headline-letters",animationIn:"elementor-headline-animation-in",typeSelected:"elementor-headline-typing-selected",activateHighlight:"e-animated",hideHighlight:"e-hide-highlight"},t},getDefaultElements(){var e=this.getSettings("selectors");return{$headline:this.$element.find(e.headline),$dynamicWrapper:this.$element.find(e.dynamicWrapper),$dynamicText:this.$element.find(e.dynamicText)}},getNextWord(e){return e.is(":last-child")?e.parent().children().eq(0):e.next()},switchWord(e,t){e.removeClass("elementor-headline-text-active").addClass("elementor-headline-text-inactive"),t.removeClass("elementor-headline-text-inactive").addClass("elementor-headline-text-active"),this.setDynamicWrapperWidth(t)},singleLetters(){var e=this.getSettings("classes");this.elements.$dynamicText.each(function(){var t=jQuery(this),n=t.text().split(""),s=t.hasClass(e.textActive);
1788t.empty(),n.forEach(function(i){var o=jQuery("<span>",{class:e.dynamicLetter}).text(i);s&&o.addClass(e.animationIn),t.append(o)}),t.css("opacity",1)})},showLetter(e,t,n,s){var i=this,o=this.getSettings("classes");e.addClass(o.animationIn),e.is(":last-child")?n||setTimeout(function(){i.hideWord(t)},i.getSettings("animationDelay")):setTimeout(function(){i.showLetter(e.next(),t,n,s)},s)},hideLetter(e,t,n,s){var i=this,o=this.getSettings();e.removeClass(o.classes.animationIn),e.is(":last-child")?n&&setTimeout(function(){i.hideWord(i.getNextWord(t))},i.getSettings("animationDelay")):setTimeout(function(){i.hideLetter(e.next(),t,n,s)},s)},showWord(e,t){var n=this,s=n.getSettings(),i=n.getElementSettings("animation_type");i==="typing"?(n.showLetter(e.find("."+s.classes.dynamicLetter).eq(0),e,!1,t),e.addClass(s.classes.textActive).removeClass(s.classes.textInactive)):i==="clip"&&n.elements.$dynamicWrapper.animate({width:e.width()+10},s.revealDuration,function(){setTimeout(function(){n.hideWord(e)},s.revealAnimationDelay)})},hideWord(e){var t=this,n=t.getSettings(),s=n.classes,i="."+s.dynamicLetter;if(!(!this.isLoopMode&&e.is(":last-child"))){var o=t.getElementSettings("animation_type"),a=t.getNextWord(e);if(o==="typing")t.elements.$dynamicWrapper.addClass(s.typeSelected),setTimeout(function(){t.elements.$dynamicWrapper.removeClass(s.typeSelected),e.addClass(n.classes.textInactive).removeClass(s.textActive).children(i).removeClass(s.animationIn)},n.selectionDuration),setTimeout(function(){t.showWord(a,n.typeLettersDelay)},n.typeAnimationDelay);else if(t.elements.$headline.hasClass(s.letters)){var l=e.children(i).length>=a.children(i).length;t.hideLetter(e.find(i).eq(0),e,l,n.lettersDelay),t.showLetter(a.find(i).eq(0),a,l,n.lettersDelay),t.setDynamicWrapperWidth(a)}else o==="clip"?t.elements.$dynamicWrapper.animate({width:"2px"},n.revealDuration,function(){t.switchWord(e,a),t.showWord(a)}):(t.switchWord(e,a),setTimeout(function(){t.hideWord(a)},n.animationDelay))}},setDynamicWrapperWidth(e){const t=this.getElementSettings("animation_type");t!=="clip"&&t!=="typing"&&this.elements.$dynamicWrapper.css("width",e.width())},animateHeadline(){var e=this,t=e.getElementSettings("animation_type"),n=e.elements.$dynamicWrapper;t==="clip"?n.width(n.width()+10):t!=="typing"&&e.setDynamicWrapperWidth(e.elements.$dynamicText),setTimeout(function(){e.hideWord(e.elements.$dynamicText.eq(0))},e.getSettings("animationDelay"))},getSvgPaths(e){var t=this.svgPaths[e],n=jQuery();return t.forEach(function(s){n=n.add(jQuery("<path>",{d:s}))}),n},addHighlight(){const e=this.getElementSettings(),t=jQuery("<svg>",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none","aria-hidden":"true"}).html(this.getSvgPaths(e.marker));this.elements.$dynamicWrapper.append(t[0].outerHTML)},rotateHeadline(){var e=this.getSettings();this.elements.$headline.hasClass(e.classes.letters)&&this.singleLetters(),this.animateHeadline()},initHeadline(){const e=this.getElementSettings("headline_style");e==="rotate"?this.rotateHeadline():e==="highlight"&&(this.addHighlight(),this.activateHighlightAnimation()),this.deactivateScrollListener()},activateHighlightAnimation(){const e=this.getSettings(),t=e.classes,n=this.elements.$headline;if(this.prefersReducedMotion||(this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)")),this.prefersReducedMotion.matches){n.addClass(t.activateHighlight);return}n.removeClass(t.hideHighlight).addClass(t.activateHighlight),this.isLoopMode&&(setTimeout(()=>{n.removeClass(t.activateHighligh).addClass(t.hideHighlight)},e.highlightAnimationDuration+e.highlightAnimationDelay*.8),setTimeout(()=>{this.activateHighlightAnimation(!1)},e.highlightAnimationDuration+e.highlightAnimationDelay))},activateScrollListener(){this.intersectionObservers.startAnimation.observer=elementorModules.utils.Scroll.scrollObserver({offset:"0px 0px -100px",callback:t=>{t.isInViewport&&this.initHeadline()}}),this.intersectionObservers.startAnimation.element=this.elements.$headline[0],this.intersectionObservers.startAnimation.observer.observe(this.intersectionObservers.startAnimation.element)},deactivateScrollListener(){this.intersectionObservers.startAnimation.observer.unobserve(this.intersectionObservers.startAnimation.element)},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.intersectionObservers={startAnimation:{observer:null,element:null}},this.isLoopMode=this.getElementSettings("loop")==="yes",this.activateScrollListener()}})})),yr=(ke=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("animated-headline",()=>v(()=>Promise.resolve().then(()=>(Sr(),br)),void 0))}},f(ke,"default"),ke);function ws(e,t,n,s,i,o,a){try{var l=e[o](a),d=l.value}catch(h){n(h);return}l.done?t(d):Promise.resolve(d).then(s,i)}function ee(e){return function(){var t=this,n=arguments;return new Promise(function(s,i){var o=e.apply(t,n);function a(d){ws(o,s,i,a,l,"next",d)}function l(d){ws(o,s,i,a,l,"throw",d)}a(void 0)})}}
1788var he=g((()=>{})),mn,Cs=g((()=>{he(),mn=class extends elementorModules.frontend.handlers.SwiperBase{getDefaultSettings(){return{selectors:{swiperContainer:".elementor-main-swiper",swiperSlide:".swiper-slide"},slidesPerView:{widescreen:3,desktop:3,laptop:3,tablet_extra:3,tablet:2,mobile_extra:2,mobile:1}}}getDefaultElements(){const e=this.getSettings("selectors"),t={$swiperContainer:this.$element.find(e.swiperContainer)};return t.$slides=t.$swiperContainer.find(e.swiperSlide),t}getEffect(){return this.getElementSettings("effect")}getDeviceSlidesPerView(e){const t="slides_per_view"+(e==="desktop"?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getElementSettings(t)||this.getSettings("slidesPerView")[e])}getSlidesPerView(e){return this.getEffect()==="slide"?this.getDeviceSlidesPerView(e):1}getDeviceSlidesToScroll(e){const t="slides_to_scroll"+(e==="desktop"?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getElementSettings(t)||1)}getSlidesToScroll(e){return this.getEffect()==="slide"?this.getDeviceSlidesToScroll(e):1}getSpaceBetween(e){let t="space_between";return e&&e!=="desktop"&&(t+="_"+e),this.getElementSettings(t).size||0}getSwiperOptions(){const e=this.getElementSettings(),t={grabCursor:!0,initialSlide:this.getInitialSlide(),slidesPerView:this.getSlidesPerView("desktop"),slidesPerGroup:this.getSlidesToScroll("desktop"),spaceBetween:this.getSpaceBetween(),loop:e.loop==="yes",speed:e.speed,effect:this.getEffect(),preventClicksPropagation:!1,slideToClickedSlide:!0,handleElementorBreakpoints:!0};if(e.lazyload==="yes"&&(t.lazy={loadPrevNext:!0,loadPrevNextAmount:1}),e.show_arrows&&(t.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),e.pagination&&(t.pagination={el:".swiper-pagination",type:e.pagination,clickable:!0}),this.getEffect()!=="cube"){const n={},s=elementorFrontend.config.responsive.activeBreakpoints;Object.keys(s).forEach(i=>{n[s[i].value]={slidesPerView:this.getSlidesPerView(i),slidesPerGroup:this.getSlidesToScroll(i),spaceBetween:this.getSpaceBetween(i)}}),t.breakpoints=n}return!this.isEdit&&e.autoplay&&(t.autoplay={delay:e.autoplay_speed,disableOnInteraction:!!e.pause_on_interaction}),t}getDeviceBreakpointValue(e){if(!this.breakpointsDictionary){const t=elementorFrontend.config.responsive.activeBreakpoints;this.breakpointsDictionary={},Object.keys(t).forEach(n=>{this.breakpointsDictionary[n]=t[n].value})}return this.breakpointsDictionary[e]}updateSpaceBetween(e){const t=e.match("space_between_(.*)"),n=t?t[1]:"desktop",s=this.getSpaceBetween(n);n!=="desktop"?this.swiper.params.breakpoints[this.getDeviceBreakpointValue(n)].spaceBetween=s:this.swiper.params.spaceBetween=s,this.swiper.params.spaceBetween=s,this.swiper.update()}onInit(){var e=arguments,t=this;return ee(function*(){if(elementorModules.frontend.handlers.Base.prototype.onInit.apply(t,e),1>=t.getSlidesCount())return;const n=elementorFrontend.utils.swiper;t.swiper=yield new n(t.elements.$swiperContainer,t.getSwiperOptions()),t.getElementSettings().pause_on_hover==="yes"&&t.togglePauseOnHover(!0),t.elements.$swiperContainer.data("swiper",t.swiper)})()}getChangeableProperties(){return{autoplay:"autoplay",pause_on_hover:"pauseOnHover",pause_on_interaction:"disableOnInteraction",autoplay_speed:"delay",speed:"speed",width:"width"}}updateSwiperOption(e){if(e.indexOf("width")===0){this.swiper.update();return}const t=this.getElementSettings(),n=t[e];let s=this.getChangeableProperties()[e],i=n;switch(e){case"autoplay":n?i={delay:t.autoplay_speed,disableOnInteraction:t.pause_on_interaction==="yes"}:i=!1;break;case"autoplay_speed":s="autoplay",i={delay:n,disableOnInteraction:t.pause_on_interaction==="yes"};break;case"pause_on_hover":this.togglePauseOnHover(n==="yes");break;case"pause_on_interaction":i=n==="yes";break}e!=="pause_on_hover"&&(this.swiper.params[s]=i),this.swiper.update()}onElementChange(e){if(1>=this.getSlidesCount())return;if(e.indexOf("width")===0){this.swiper.update(),this.thumbsSwiper&&this.thumbsSwiper.update();return}if(e.indexOf("space_between")===0){this.updateSpaceBetween(e);return}const t=this.getChangeableProperties();Object.prototype.hasOwnProperty.call(t,e)&&this.updateSwiperOption(e)}onEditSettingsChange(e){1>=this.getSlidesCount()||e==="activeItemIndex"&&this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)}}})),wr=b({default:()=>Es}),Es,Cr=g((()=>{Cs(),he(),Es=class extends mn{isSlideshow(){return this.getElementSettings("skin")==="slideshow"}getDefaultSettings(...e){const t=super.getDefaultSettings(...e);return this.isSlideshow()&&(t.selectors.thumbsSwiper=".elementor-thumbnails-swiper",t.slidesPerView={widescreen:5,desktop:5,laptop:5,tablet_extra:5,tablet:4,mobile_extra:4,mobile:3}),t}getSlidesPerViewSettingNames(){if(!this.slideshowElementSettings){this.slideshowElementSettings=["slides_per_view"];const e=elementorFrontend.config.responsive.activeBreakpoints;Object.keys(e).forEach(t=>{this.slideshowElementSettings.push("slides_per_view_"+t)})}return this.slideshowElementSettings}
1788getElementSettings(e){return this.getSlidesPerViewSettingNames().indexOf(e)!==-1&&this.isSlideshow()&&(e="slideshow_"+e),super.getElementSettings(e)}getDefaultElements(...e){const t=this.getSettings("selectors"),n=super.getDefaultElements(...e);return this.isSlideshow()&&(n.$thumbsSwiper=this.$element.find(t.thumbsSwiper)),n}getEffect(){return this.getElementSettings("skin")==="coverflow"?"coverflow":super.getEffect()}getSlidesPerView(e){return this.isSlideshow()?1:this.getElementSettings("skin")==="coverflow"?this.getDeviceSlidesPerView(e):super.getSlidesPerView(e)}getSwiperOptions(){const e=super.getSwiperOptions();return this.isSlideshow()&&(e.loopedSlides=this.getSlidesCount(),delete e.pagination,delete e.breakpoints),e}onInit(){var e=()=>super.onInit,t=this;return ee(function*(){yield e().call(t);const n=t.getSlidesCount();if(!t.isSlideshow()||1>=n)return;const s=t.getElementSettings(),i=s.loop==="yes",o={},a=elementorFrontend.config.responsive.activeBreakpoints,l=t.getDeviceSlidesPerView("desktop");Object.keys(a).forEach(_=>{o[a[_].value]={slidesPerView:t.getDeviceSlidesPerView(_),spaceBetween:t.getSpaceBetween(_)}});const d={slidesPerView:l,initialSlide:t.getInitialSlide(),centeredSlides:s.centered_slides,slideToClickedSlide:!0,spaceBetween:t.getSpaceBetween(),loopedSlides:n,loop:i,breakpoints:o,handleElementorBreakpoints:!0};s.lazyload==="yes"&&(d.lazy={loadPrevNext:!0,loadPrevNextAmount:1});const h=elementorFrontend.utils.swiper;t.swiper.controller.control=t.thumbsSwiper=yield new h(t.elements.$thumbsSwiper,d),t.elements.$thumbsSwiper.data("swiper",t.thumbsSwiper),t.thumbsSwiper.controller.control=t.swiper})()}}})),Ts=b({default:()=>$s}),$s,As=g((()=>{Cs(),$s=class extends mn{getDefaultSettings(){const e=super.getDefaultSettings();return e.slidesPerView={desktop:1},Object.keys(elementorFrontend.config.responsive.activeBreakpoints).forEach(t=>{e.slidesPerView[t]=1}),e.loop&&(e.loopedSlides=this.getSlidesCount()),e}getEffect(){return"slide"}}})),Er=(xe=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("media-carousel",()=>v(()=>Promise.resolve().then(()=>(Cr(),wr)),void 0)),elementorFrontend.elementsHandler.attachHandler("testimonial-carousel",()=>v(()=>Promise.resolve().then(()=>(As(),Ts)),void 0)),elementorFrontend.elementsHandler.attachHandler("reviews",()=>v(()=>Promise.resolve().then(()=>(As(),Ts)),void 0))}},f(xe,"default"),xe),Tr=b({default:()=>Fs}),Fs,$r=g((()=>{Fs=elementorModules.frontend.handlers.Base.extend({cache:null,cacheElements(){const e=this.$element.find(".elementor-countdown-wrapper");this.cache={$countDown:e,timeInterval:null,elements:{$countdown:e.find(".elementor-countdown-wrapper"),$daysSpan:e.find(".elementor-countdown-days"),$hoursSpan:e.find(".elementor-countdown-hours"),$minutesSpan:e.find(".elementor-countdown-minutes"),$secondsSpan:e.find(".elementor-countdown-seconds"),$expireMessage:e.parent().find(".elementor-countdown-expire--message")},data:{id:this.$element.data("id"),endTime:new Date(e.data("date")*1e3),actions:e.data("expire-actions"),evergreenInterval:e.data("evergreen-interval")}}},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.cacheElements(),0<this.cache.data.evergreenInterval&&(this.cache.data.endTime=this.getEvergreenDate()),this.initializeClock()},updateClock(){const e=this,t=this.getTimeRemaining(this.cache.data.endTime);jQuery.each(t.parts,function(n){const s=e.cache.elements["$"+n+"Span"];let i=this.toString();i.length===1&&(i=0+i),s.length&&s.text(i)}),t.total<=0&&(clearInterval(this.cache.timeInterval),this.runActions())},initializeClock(){const e=this;this.updateClock(),this.cache.timeInterval=setInterval(function(){e.updateClock()},1e3)},runActions(){const e=this;e.$element.trigger("countdown_expire",e.$element),this.cache.data.actions&&this.cache.data.actions.forEach(function(t){switch(t.type){case"hide":e.cache.$countDown.hide();break;case"redirect":t.redirect_url&&t.redirect_url.startsWith("http")&&(window.location.href=t.redirect_url);break;case"message":e.cache.elements.$expireMessage.show();break}})},getTimeRemaining(e){const t=e-new Date;let n=Math.floor(t/1e3%60),s=Math.floor(t/1e3/60%60),i=Math.floor(t/(1e3*60*60)%24),o=Math.floor(t/(1e3*60*60*24));return(o<0||i<0||s<0)&&(n=s=i=o=0),{total:t,parts:{days:o,hours:i,minutes:s,seconds:n}}},getEvergreenDate(){const e=this,t=this.cache.data.id,n=this.cache.data.evergreenInterval,s=t+"-evergreen_due_date",i=t+"-evergreen_interval",o={dueDate:localStorage.getItem(s),interval:localStorage.getItem(i)},a=function(){var l=new Date;return e.cache.data.endTime=l.setSeconds(l.getSeconds()+n),localStorage.setItem(s,e.cache.data.endTime),localStorage.setItem(i,n),e.cache.data.endTime};if(o.dueDate===null&&o.interval===null||o.dueDate!==null&&n!==parseInt(o.interval,10))return a();if(o.dueDate>0&&parseInt(o.interval,10)===n)return o.dueDate}})})),Ar=(De=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("countdown",()=>v(()=>Promise.resolve().then(()=>($r(),Tr)),void 0))}},f(De,"default"),De),Fr=(Le=class extends elementorModules.Module{constructor(){super(),elementorFrontend.on("components:init",()=>this.onFrontendComponentsInit())}onFrontendComponentsInit(){elementorFrontend.utils.urlActions.addAction("reload-page",()=>document.location.reload())}},f(Le,"default"),Le),Ir=b({default:()=>Is}),Is,kr=g((()=>{Is=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{hotspot:".e-hotspot",tooltip:".e-hotspot__tooltip"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$hotspot:this.$element.find(e.hotspot),$hotspotsExcludesLinks:this.$element.find(e.hotspot).filter(":not(.e-hotspot--no-tooltip)"),$tooltip:this.$element.find(e.tooltip)}}bindEvents(){const e=this.getCurrentDeviceSetting("tooltip_trigger"),t=e==="mouseenter"?"mouseleave mouseenter":e;t!=="none"&&this.elements.$hotspotsExcludesLinks.on(t,n=>this.onHotspotTriggerEvent(n))}onDeviceModeChange(){this.elements.$hotspotsExcludesLinks.off(),this.bindEvents()}onHotspotTriggerEvent(e){const t=jQuery(e.target),n=t.closest(".e-hotspot__button").length,s=e.type==="mouseleave"&&(t.is(".e-hotspot--tooltip-position")||t.parents(".e-hotspot--tooltip-position").length),i=elementorFrontend.getCurrentDeviceMode()==="mobile";if(!(t.closest(".e-hotspot--link").length&&i&&(e.type==="mouseleave"||e.type==="mouseenter"))&&(n||s)){const o=jQuery(e.currentTarget);this.elements.$hotspot.not(o).removeClass("e-hotspot--active"),o.toggleClass("e-hotspot--active")}}editorAddSequencedAnimation(){this.elements.$hotspot.toggleClass("e-hotspot--sequenced",this.getElementSettings("hotspot_sequenced_animation")==="yes")}hotspotSequencedAnimation(){const e=this.getElementSettings();if(e.hotspot_sequenced_animation==="no")return;
1788const t=elementorModules.utils.Scroll.scrollObserver({callback:n=>{n.isInViewport&&(t.unobserve(this.$element[0]),this.elements.$hotspot.each((s,i)=>{if(s===0)return;const o=e.hotspot_sequenced_animation_duration,a=s*((o?o.size:1e3)/this.elements.$hotspot.length);i.style.animationDelay=a+"ms"}))}});t.observe(this.$element[0])}setTooltipPositionControl(){const e=this.getElementSettings();typeof e.tooltip_animation!="undefined"&&e.tooltip_animation.match(/^e-hotspot--(slide|fade)-direction/)&&(this.elements.$tooltip.removeClass("e-hotspot--tooltip-animation-from-left e-hotspot--tooltip-animation-from-top e-hotspot--tooltip-animation-from-right e-hotspot--tooltip-animation-from-bottom"),this.elements.$tooltip.addClass("e-hotspot--tooltip-animation-from-"+e.tooltip_position))}onInit(...e){super.onInit(...e),this.hotspotSequencedAnimation(),this.setTooltipPositionControl(),window.elementor&&elementor.listenTo(elementor.channels.deviceMode,"change",()=>this.onDeviceModeChange())}onElementChange(e){e.startsWith("tooltip_position")&&this.setTooltipPositionControl(),e.startsWith("hotspot_sequenced_animation")&&this.editorAddSequencedAnimation()}}})),xr=(Me=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("hotspot",()=>v(()=>Promise.resolve().then(()=>(kr(),Ir)),void 0))}},f(Me,"default"),Me),ks=b({default:()=>Ms}),xs,hn,Ds,Ls,gn,Ce,Ms,Ps=g((()=>{xs=Object.defineProperty,hn=Object.getOwnPropertySymbols,Ds=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable,gn=f((e,t,n)=>t in e?xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,"__defNormalProp"),Ce=f((e,t)=>{for(var n in t||(t={}))Ds.call(t,n)&&gn(e,n,t[n]);if(hn)for(var n of hn(t))Ls.call(t,n)&&gn(e,n,t[n]);return e},"__spreadValues"),Ms=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{form:".elementor-form",fieldsWrapper:".elementor-form-fields-wrapper",fieldGroup:".elementor-field-group",stepWrapper:".elementor-field-type-step",stepField:".e-field-step",submitWrapper:".elementor-field-type-submit",submitButton:'[type="submit"]',buttons:".e-form__buttons",buttonWrapper:".e-form__buttons__wrapper",button:".e-form__buttons__wrapper__button",indicator:".e-form__indicators__indicator",indicatorProgress:".e-form__indicators__indicator__progress",indicatorProgressMeter:".e-form__indicators__indicator__progress__meter",formHelpInline:".elementor-form-help-inline"},classes:{hidden:"elementor-hidden",column:"elementor-column",fieldGroup:"elementor-field-group",elementorButton:"elementor-button",step:"e-form__step",buttons:"e-form__buttons",buttonWrapper:"e-form__buttons__wrapper",button:"e-form__buttons__wrapper__button",indicators:"e-form__indicators",indicator:"e-form__indicators__indicator",indicatorIcon:"e-form__indicators__indicator__icon",indicatorNumber:"e-form__indicators__indicator__number",indicatorLabel:"e-form__indicators__indicator__label",indicatorProgress:"e-form__indicators__indicator__progress",indicatorProgressMeter:"e-form__indicators__indicator__progress__meter",indicatorSeparator:"e-form__indicators__indicator__separator",indicatorInactive:"e-form__indicators__indicator--state-inactive",indicatorActive:"e-form__indicators__indicator--state-active",indicatorCompleted:"e-form__indicators__indicator--state-completed",indicatorShapeCircle:"e-form__indicators__indicator--shape-circle",indicatorShapeSquare:"e-form__indicators__indicator--shape-square",indicatorShapeRounded:"e-form__indicators__indicator--shape-rounded",indicatorShapeNone:"e-form__indicators__indicator--shape-none"}}}getDefaultElements(){const{selectors:e}=this.getSettings(),t={$form:this.$element.find(e.form)};return t.$fieldsWrapper=t.$form.children(e.fieldsWrapper),t.$stepWrapper=t.$fieldsWrapper.children(e.stepWrapper),t.$stepField=t.$stepWrapper.children(e.stepField),t.$fieldGroup=t.$fieldsWrapper.children(e.fieldGroup),t.$submitWrapper=t.$fieldsWrapper.children(e.submitWrapper),t.$submitButton=t.$submitWrapper.children(e.submitButton),t}onInit(...e){super.onInit(...e),this.isStepsExist()&&(this.data={steps:[],indicatorsWithObjectTags:[]},this.state={currentStep:0,stepsType:"",stepsShape:""},this.buildSteps(),this.elements=Ce(Ce(Ce({},this.elements),this.createStepsIndicators()),this.createStepsButtons()),this.initProgressBar(),this.extractResponsiveSizeFromSubmitWrapper())}bindEvents(){if(!this.isStepsExist())return;const{selectors:e}=this.getSettings();this.elements.$form.on({submit:()=>
1788this.resetForm(),keydown:t=>{var n,s;if(t.keyCode===13&&!this.isLastStep()&&t.target.localName!=="textarea"){t.preventDefault();const i=((s=(n=t.target.closest(e.button))==null?void 0:n.dataset)==null?void 0:s.direction)||"next";this.applyStep(i)}},error:()=>this.onFormError()})}isStepsExist(){return this.elements.$stepWrapper.length}initProgressBar(){this.getElementSettings().step_type==="progress_bar"&&this.setProgressBar()}buildSteps(){this.elements.$stepWrapper.each((e,t)=>{const{selectors:n,classes:s}=this.getSettings(),i=jQuery(t);i.addClass(s.step).removeClass(s.fieldGroup,s.column),e&&i.addClass(s.hidden),this.setStepData(i.children(n.stepField)),i.append(i.nextUntil(this.elements.$stepWrapper).not(this.elements.$submitWrapper))})}setStepData(e){const t=["label","previousButton","nextButton","iconUrl","iconLibrary","icon"],n={};t.forEach(s=>{const i=e.attr("data-"+s);i&&(n[s]=i)}),this.data.steps.push(n)}createStepsIndicators(){const e=this.getElementSettings(),t={};if(e.step_type!=="none"){const{selectors:n,classes:s}=this.getSettings(),i=s.indicators+"--type-"+e.step_type,o=[s.indicators,i];t.$indicatorsWrapper=jQuery("<div>",{class:o.join(" ")}),t.$indicatorsWrapper.append(this.buildIndicators()),this.elements.$fieldsWrapper.before(t.$indicatorsWrapper),e.step_type==="progress_bar"?(t.$progressBar=t.$indicatorsWrapper.find(n.indicatorProgress),t.$progressBarMeter=t.$indicatorsWrapper.find(n.indicatorProgressMeter)):(t.$indicators=t.$indicatorsWrapper.find(n.indicator),t.$currentIndicator=t.$indicators.eq(this.state.currentStep))}return this.saveIndicatorsState(),t}buildIndicators(){return this.getElementSettings().step_type==="progress_bar"?this.buildProgressBar():this.buildIndicatorsFromStepsData()}buildProgressBar(){const{classes:e}=this.getSettings(),t=jQuery("<div>",{class:e.indicatorProgress}),n=jQuery("<div>",{class:e.indicatorProgressMeter});return t.append(n),t}getProgressBarValue(){const e=this.data.steps.length,t=this.state.currentStep,n=t?(t+1)/e*100:100/e;return Math.floor(n)+"%"}setProgressBar(){const e=this.getProgressBarValue();this.updateProgressMeterCSSVariable(e),this.elements.$progressBarMeter.text(e)}updateProgressMeterCSSVariable(e){this.$element[0].style.setProperty("--e-form-steps-indicator-progress-meter-width",e)}saveIndicatorsState(){const e=this.getElementSettings();this.state.stepsType=e.step_type,["none","text","progress_bar"].includes(e.step_type)||(this.state.stepsShape=e.step_icon_shape)}buildIndicatorsFromStepsData(){const e=[];return this.data.steps.forEach((t,n)=>{n&&e.push(this.getStepSeparator()),e.push(this.getStepIndicatorElement(t,n))}),e}getStepIndicatorElement(e,t){const{classes:n}=this.getSettings(),s=this.getElementSettings(),i=this.getIndicatorStateClass(t),o=[n.indicator,i],a=jQuery("<div>",{class:o.join(" ")});return s.step_type.includes("icon")&&a.append(this.getStepIconElement(e)),s.step_type.includes("number")&&a.append(this.getStepNumberElement(t)),s.step_type.includes("text")&&a.append(this.getStepLabelElement(e.label)),a}getIndicatorStateClass(e){const{classes:t}=this.getSettings();return e<this.state.currentStep?t.indicatorCompleted:e>this.state.currentStep?t.indicatorInactive:t.indicatorActive}getIndicatorShapeClass(){const e=this.getElementSettings(),{classes:t}=this.getSettings();return t["indicatorShape"+this.firstLetterToUppercase(e.step_icon_shape)]}firstLetterToUppercase(e){return e.charAt(0).toUpperCase()+e.slice(1)}getStepNumberElement(e){const{classes:t}=this.getSettings(),n=[t.indicatorNumber,this.getIndicatorShapeClass()];return jQuery("<div>",{class:n.join(" "),text:e+1})}getStepIconElement(e){const{classes:t}=this.getSettings(),n=[t.indicatorIcon,this.getIndicatorShapeClass()],s=jQuery("<div>",{class:n.join(" ")});if(e.icon)s.html(e.icon);else{let i;e.iconLibrary?i=jQuery("<i>",{class:e.iconLibrary}):(i=jQuery(`<object type="image/svg+xml" data="${e.iconUrl}"></object>`),i.on("load",o=>{o.target.contentDocument.querySelector("svg").style.fill=i.css("fill")}),this.data.indicatorsWithObjectTags.push(i)),s.append(i)}return s}getStepLabelElement(e){const{classes:t}=this.getSettings();return jQuery("<label>",{class:t.indicatorLabel,text:e})}getStepSeparator(){const{classes:e}=this.getSettings();return jQuery("<div>",{class:e.indicatorSeparator})}createStepsButtons(){const{selectors:e}=this.getSettings(),t={};return this.injectButtonsToSteps(t),t.$buttonsContainer=this.elements.$stepWrapper.find(e.buttons),t.$buttonsWrappers=t.$buttonsContainer.children(e.buttonWrapper),t}injectButtonsToSteps(){const e=this.elements.$stepWrapper.length;this.elements.$stepWrapper.each((t,n)=>{const s=jQuery(n),i=this.getButtonsContainer();let o;t?(i.append(this.getStepButton("previous",t)),o=t===e-1?this.get
1788SubmitButton():this.getStepButton("next",t)):o=this.getStepButton("next",t),i.append(o),s.append(i)})}getButtonsContainer(){const{classes:e}=this.getSettings(),t=this.getElementSettings(),n=[e.buttons,e.column,"elementor-col-"+t.button_width];return jQuery("<div>",{class:n.join(" ")})}extractResponsiveSizeFromSubmitWrapper(){let e=[];this.elements.$submitWrapper.removeClass((t,n)=>{var s;return e=(s=n.match(/elementor-(sm|md)-[0-9]+/g))==null?void 0:s.join(" "),e}),this.elements.$buttonsContainer.addClass(e)}getStepButton(e,t){const{classes:n}=this.getSettings(),s=this.getButton(e,t).on("click",()=>this.applyStep(e)),i=[n.fieldGroup,n.buttonWrapper,"elementor-field-type-"+e];return jQuery("<div>",{class:i.join(" ")}).append(s)}getSubmitButton(){const{classes:e}=this.getSettings();return this.elements.$submitButton.addClass(e.button),this.elements.$submitWrapper.attr("class",(t,n)=>this.replaceClassNameColSize(n,"")).removeClass(e.column).removeClass(e.buttons).addClass(e.buttonWrapper)}replaceClassNameColSize(e,t){return e.replace(/elementor-col-([0-9]+)/g,t)}getButton(e,t){const{classes:n}=this.getSettings(),s=this.elements.$submitButton.attr("class").match(/elementor-size-([^\W\d]+)/g),i=[n.elementorButton,s,n.button,n.button+"-"+e];return jQuery("<button>",{type:"button",text:this.getButtonLabel(e,t),class:i.join(" "),"data-direction":e})}getButtonLabel(e,t){const n=this.getElementSettings(),s=this.data.steps[t],i=e+"Button",o=`step_${e}_label`;return s[i]||n[o]}applyStep(e){const t=e==="next"?this.state.currentStep+1:this.state.currentStep-1;if(e==="next"&&!this.isFieldsValid(this.elements.$stepWrapper))return!1;this.goToStep(t),this.state.currentStep=t,this.state.stepsType==="progress_bar"?this.setProgressBar():this.state.stepsType!=="none"&&this.updateIndicatorsState(e)}goToStep(e){const{classes:t}=this.getSettings();this.elements.$stepWrapper.eq(this.state.currentStep).addClass(t.hidden),this.elements.$stepWrapper.eq(e).removeClass(t.hidden);const n=this.getFirstFocusableField(e);n&&(n.attr("tabindex","0"),n.trigger("focus"))}getFirstFocusableField(e){const t=this.elements.$stepWrapper.eq(e).children(this.getSettings("selectors.fieldGroup"));let n=null;return t.each((s,i)=>{const o=jQuery(i),a=this.getFocusableElement(o);if(a)return n=a,!1}),n}getFocusableElement(e){if(!e.is(":visible"))return;const t=e.find(":input").first();return t.length?t:e}isFieldsValid(e){let t=!0;return e.eq(this.state.currentStep).find(".elementor-field-group :input").each((n,s)=>{if(!s.checkValidity())return s.reportValidity(),t=!1}),t}isLastStep(){return this.state.currentStep===this.data.steps.length-1}resetForm(){this.state.currentStep=0,this.resetSteps(),this.state.stepsType==="progress_bar"?this.setProgressBar():this.state.stepsType!=="none"&&(this.elements.$currentIndicator=this.elements.$indicators.eq(this.state.currentStep),this.resetIndicators())}resetSteps(){const{classes:e}=this.getSettings();this.elements.$stepWrapper.addClass(e.hidden).eq(0).removeClass(e.hidden)}resetIndicators(){const{classes:e}=this.getSettings(),t=["inactive","active","completed"].map(n=>e.indicator+"--state-"+n);this.elements.$indicators.removeClass(t.join(" ")).not(this.elements.$indicators.eq(0)).addClass(e.indicatorInactive),this.elements.$indicators.eq(0).addClass(e.indicatorActive)}updateIndicatorsState(e){const{classes:t}=this.getSettings(),n={current:{remove:t.indicatorActive,add:e==="next"?t.indicatorCompleted:t.indicatorInactive},next:{remove:e==="next"?t.indicatorInactive:t.indicatorCompleted,add:t.indicatorActive}};this.elements.$currentIndicator.removeClass(n.current.remove).addClass(n.current.add),this.elements.$currentIndicator=this.elements.$indicators.eq(this.state.currentStep),this.elements.$currentIndicator.removeClass(n.next.remove).addClass(n.next.add),this.data.indicatorsWithObjectTags.forEach(s=>{s.contents().children("svg").css("fill",s.css("fill"))})}updateValue(e){const t={step_type:()=>this.updateStepsType(),step_icon_shape:()=>this.updateStepsShape(),step_next_label:()=>this.updateStepButtonsLabel("next"),step_previous_label:()=>this.updateStepButtonsLabel("previous")};t[e]&&t[e]()}updateStepsType(){const e=this.getElementSettings();this.elements.$indicatorsWrapper&&this.elements.$indicatorsWrapper.remove(),e.step_type!=="none"&&this.rebuildIndicators(),this.state.stepsType=e.step_type}rebuildIndicators(){this.elements=Ce(Ce({},this.elements),this.createStepsIndicators()),this.initProgressBar()}updateStepsShape(){const e=this.getElementSettings(),{selectors:t,classes:n}=this.getSettings(),s=n.indicator+"--shape-",i=s+this.state.stepsShape,o=s+e.step_icon_shape;let a="";e.step_type.includes("icon")?a="icon":e.step_type.includes("number")&&(a="number"),this.elements.$indicators.children(t.indicator+"__"+a).removeClass(i).addClass(o),this.state.stepsShape=e.step_icon_shape}updateStepButtonsLabel(e){const{selectors:t}=this.getSettings(),n={previous:t.button+"-previous",next:t.button+"-next"};this.elements.$stepWrapper.each((s,i)=>{jQuery(i).find(n[e]).text(this.getButtonLabel(e,s))})}onFormError(){const{selectors:e}=this.getSettings(),t=this.elements.$form.find(e.formHelpInline).closest(e.stepWrapper);t.length&&this.goToStep(t.index())}
1788onElementChange(e){this.isStepsExist()&&this.updateValue(e)}}})),Os=b({default:()=>Bs}),Bs,Hs=g((()=>{Bs=elementorModules.frontend.handlers.Base.extend({getDefaultSettings(){return{selectors:{form:".elementor-form",submitButton:'[type="submit"]'},action:"elementor_pro_forms_send_form",ajaxUrl:elementorProFrontend.config.ajaxurl}},getDefaultElements(){const e=this.getSettings("selectors"),t={};return t.$form=this.$element.find(e.form),t.$submitButton=t.$form.find(e.submitButton),t},bindEvents(){this.elements.$form.on("submit",this.handleSubmit);const e=this.elements.$form.find("input[type=file]");e.length&&e.on("change",this.validateFileSize)},validateFileSize(e){const t=jQuery(e.currentTarget),n=t[0].files;if(!n.length)return;const s=parseInt(t.attr("data-maxsize"))*1024*1024,i=t.attr("data-maxsize-message");Array.prototype.slice.call(n).forEach(o=>{s<o.size&&(t.parent().addClass("elementor-error").append('<span class="elementor-message elementor-message-danger elementor-help-inline elementor-form-help-inline" role="alert">'+i+"</span>").find(":input").attr("aria-invalid","true"),this.elements.$form.trigger("error"))})},beforeSend(){const e=this.elements.$form;e.animate({opacity:"0.45"},500).addClass("elementor-form-waiting"),e.find(".elementor-message").remove(),e.find(".elementor-error").removeClass("elementor-error"),e.find("div.elementor-field-group").removeClass("error").find("span.elementor-form-help-inline").remove().end().find(":input").attr("aria-invalid","false"),this.elements.$submitButton.attr("disabled","disabled").find("> span").prepend('<span class="elementor-button-text elementor-form-spinner"><i class="fa fa-spinner fa-spin"></i>&nbsp;</span>')},getFormData(){const e=new FormData(this.elements.$form[0]);return e.append("action",this.getSettings("action")),e.append("referrer",location.toString()),e},onSuccess(e){const t=this.elements.$form;if(this.elements.$submitButton.removeAttr("disabled").find(".elementor-form-spinner").remove(),t.animate({opacity:"1"},100).removeClass("elementor-form-waiting"),!e.success)e.data.errors&&(jQuery.each(e.data.errors,function(n,s){t.find("#form-field-"+n).parent().addClass("elementor-error").append('<span class="elementor-message elementor-message-danger elementor-help-inline elementor-form-help-inline" role="alert">'+s+"</span>").find(":input").attr("aria-invalid","true")}),t.trigger("error")),t.append('<div class="elementor-message elementor-message-danger" role="alert">'+e.data.message+"</div>");else{t.trigger("submit_success",e.data),t.trigger("form_destruct",e.data),t.trigger("reset");let n="elementor-message elementor-message-success";elementorFrontendConfig.experimentalFeatures.e_font_icon_svg&&(n+=" elementor-message-svg"),typeof e.data.message!="undefined"&&e.data.message!==""&&t.append('<div class="'+n+'" role="alert">'+e.data.message+"</div>")}},onError(e,t){const n=this.elements.$form;n.append('<div class="elementor-message elementor-message-danger" role="alert">'+t+"</div>"),this.elements.$submitButton.html(this.elements.$submitButton.text()).removeAttr("disabled"),n.animate({opacity:"1"},100).removeClass("elementor-form-waiting"),n.trigger("error")},handleSubmit(e){const t=this,n=this.elements.$form;if(e.preventDefault(),n.hasClass("elementor-form-waiting"))return!1;this.beforeSend(),jQuery.ajax({url:t.getSettings("ajaxUrl"),type:"POST",dataType:"json",data:t.getFormData(),processData:!1,contentType:!1,success:t.onSuccess,error:t.onError})}})})),Rs=b({default:()=>Ws}),Ws,Ns=g((()=>{Ws=elementorModules.frontend.handlers.Base.extend({getDefaultSettings(){return{selectors:{form:".elementor-form"}}},getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$form=this.$element.find(e.form),t},bindEvents(){this.elements.$form.on("form_destruct",this.handleSubmit)},handleSubmit(e,t){typeof t.data.redirect_url!="undefined"&&(location.href=t.data.redirect_url)}})})),pn,zs=g((()=>{pn=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{fields:this.getFieldsSelector()},classes:{useNative:"elementor-use-native"}}}getDefaultElements(){const{selectors:e}=this.getDefaultSettings();return{$fields:this.$element.find(e.fields)}}addPicker(e){const{classes:t}=this.getDefaultSettings();jQuery(e).hasClass(t.useNative)||e.flatpickr(this.getPickerOptions(e))}onInit(...e){super.onInit(...e),this.elements.$fields.each((t,n)=>this.addPicker(n))}}})),Dr=b({default:()=>js}),js,Lr=g((()=>
1788{zs(),js=class extends pn{getFieldsSelector(){return".elementor-date-field"}getPickerOptions(e){const t=jQuery(e);return{minDate:t.attr("min")||null,maxDate:t.attr("max")||null,allowInput:!0}}}})),Mr=b({default:()=>qs}),qs,Pr=g((()=>{qs=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{recaptcha:".elementor-g-recaptcha:last",submit:'button[type="submit"]',recaptchaResponse:'[name="g-recaptcha-response"]'}}}getDefaultElements(){const{selectors:e}=this.getDefaultSettings(),t={$recaptcha:this.$element.find(e.recaptcha)};return t.$form=t.$recaptcha.parents("form"),t.$submit=t.$form.find(e.submit),t}bindEvents(){this.onRecaptchaApiReady()}isActive(e){const{selectors:t}=this.getDefaultSettings();return e.$element.find(t.recaptcha).length}addRecaptcha(){const e=this.elements.$recaptcha.data(),t=e.type!=="v3",n=[];n.forEach(i=>window.grecaptcha.reset(i));const s=window.grecaptcha.render(this.elements.$recaptcha[0],e);this.elements.$form.on("reset error",()=>{window.grecaptcha.reset(s)}),t?this.elements.$recaptcha.data("widgetId",s):(n.push(s),this.elements.$submit.on("click",i=>this.onV3FormSubmit(i,s)))}onV3FormSubmit(e,t){e.preventDefault(),window.grecaptcha.ready(()=>{const n=this.elements.$form;grecaptcha.execute(t,{action:this.elements.$recaptcha.data("action")}).then(s=>{this.elements.$recaptchaResponse?this.elements.$recaptchaResponse.val(s):(this.elements.$recaptchaResponse=jQuery("<input>",{type:"hidden",value:s,name:"g-recaptcha-response"}),n.append(this.elements.$recaptchaResponse)),(!n[0].reportValidity||typeof n[0].reportValidity!="function"||n[0].reportValidity())&&n.trigger("submit")})})}onRecaptchaApiReady(){window.grecaptcha&&window.grecaptcha.render?this.addRecaptcha():setTimeout(()=>this.onRecaptchaApiReady(),350)}}})),Or=b({default:()=>Vs}),Vs,Br=g((()=>{zs(),Vs=class extends pn{getFieldsSelector(){return".elementor-time-field"}getPickerOptions(){return{noCalendar:!0,enableTime:!0,allowInput:!0}}}})),Hr=(Pe=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("form",[()=>v(()=>Promise.resolve().then(()=>(Ps(),ks)),void 0),()=>v(()=>Promise.resolve().then(()=>(Hs(),Os)),void 0),()=>v(()=>Promise.resolve().then(()=>(Ns(),Rs)),void 0),()=>v(()=>Promise.resolve().then(()=>(Lr(),Dr)),void 0),()=>v(()=>Promise.resolve().then(()=>(Pr(),Mr)),void 0),()=>v(()=>Promise.resolve().then(()=>(Br(),Or)),void 0)]),elementorFrontend.elementsHandler.attachHandler("subscribe",[()=>v(()=>Promise.resolve().then(()=>(Ps(),ks)),void 0),()=>v(()=>Promise.resolve().then(()=>(Hs(),Os)),void 0),()=>v(()=>Promise.resolve().then(()=>(Ns(),Rs)),void 0)])}},f(Pe,"default"),Pe),Rr=b({default:()=>Us}),Us,Wr=g((()=>{Us=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{container:".elementor-gallery__container",galleryTitles:".elementor-gallery-title",galleryImages:".e-gallery-image",galleryItemOverlay:".elementor-gallery-item__overlay",galleryItemContent:".elementor-gallery-item__content"},classes:{activeTitle:"elementor-item-active"}}}getDefaultElements(){const{selectors:e}=this.getSettings(),t={$container:this.$element.find(e.container),$titles:this.$element.find(e.galleryTitles)};return t.$items=t.$container.children(),t.$images=t.$items.children(e.galleryImages),t.$itemsOverlay=t.$items.children(e.galleryItemOverlay),t.$itemsContent=t.$items.children(e.galleryItemContent),t.$itemsContentElements=t.$itemsContent.children(),t}getGallerySettings(){const e=this.getElementSettings(),t=elementorFrontend.config.responsive.activeBreakpoints,n=Object.keys(t),s={},i=elementorFrontend.getDeviceSetting("desktop",e,"ideal_row_height");return n.forEach(o=>{if(o!=="widescreen"){const a=elementorFrontend.getDeviceSetting(o,e,"ideal_row_height");s[t[o].value]={horizontalGap:elementorFrontend.getDeviceSetting(o,e,"gap").size,verticalGap:elementorFrontend.getDeviceSetting(o,e,"gap").size,columns:elementorFrontend.getDeviceSetting(o,e,"columns"),idealRowHeight:a==null?void 0:a.size}}}),{type:e.gallery_layout,idealRowHeight:i==null?void 0:i.size,container:this.elements.$container,columns:e.columns,aspectRatio:e.aspect_ratio,lastRow:"normal",horizontalGap:elementorFrontend.getDeviceSetting("desktop",e,"gap").size,verticalGap:elementorFrontend.getDeviceSetting("desktop",e,"gap").size,animationDuration:e.content_animation_duration,breakpoints:s,rtl:elementorFrontend.config.is_rtl,lazyLoad:e.lazyload==="yes"}}initGallery(){this.gallery=new EGallery(this.getGallerySettings()),this.toggleAllAnimationsClasse
1788s()}removeAnimationClasses(e){e.removeClass((t,n)=>(n.match(/elementor-animated-item-\S+/g)||[]).join(" "))}toggleOverlayHoverAnimation(){this.removeAnimationClasses(this.elements.$itemsOverlay);const e=this.getElementSettings("background_overlay_hover_animation");e&&this.elements.$itemsOverlay.addClass("elementor-animated-item--"+e)}toggleOverlayContentAnimation(){this.removeAnimationClasses(this.elements.$itemsContentElements);const e=this.getElementSettings("content_hover_animation");e&&this.elements.$itemsContentElements.addClass("elementor-animated-item--"+e)}toggleOverlayContentSequencedAnimation(){this.elements.$itemsContent.toggleClass("elementor-gallery--sequenced-animation",this.getElementSettings("content_sequenced_animation")==="yes")}toggleImageHoverAnimation(){const e=this.getElementSettings("image_hover_animation");this.removeAnimationClasses(this.elements.$images),e&&this.elements.$images.addClass("elementor-animated-item--"+e)}toggleAllAnimationsClasses(){const e=this.getElementSettings(),t=e.background_overlay_hover_animation||e.content_hover_animation||e.image_hover_animation;this.elements.$items.toggleClass("elementor-animated-content",!!t),this.toggleImageHoverAnimation(),this.toggleOverlayHoverAnimation(),this.toggleOverlayContentAnimation(),this.toggleOverlayContentSequencedAnimation()}toggleAnimationClasses(e){e==="content_sequenced_animation"&&this.toggleOverlayContentSequencedAnimation(),e==="background_overlay_hover_animation"&&this.toggleOverlayHoverAnimation(),e==="content_hover_animation"&&this.toggleOverlayContentAnimation(),e==="image_hover_animation"&&this.toggleImageHoverAnimation()}setGalleryTags(e){this.gallery.setSettings("tags",e==="all"?[]:[""+e])}bindEvents(){this.elements.$titles.on("click",this.galleriesNavigationListener.bind(this)).on("keyup",e=>{(e.keyCode===13||e.keyCode===32)&&e.currentTarget.click()}),elementorFrontend.elements.$window.on("elementor/nested-tabs/activate",this.initGallery.bind(this))}galleriesNavigationListener(e){const t=this.getSettings("classes"),n=jQuery(e.target);this.elements.$titles.removeClass(t.activeTitle),n.addClass(t.activeTitle),this.setGalleryTags(n.data("gallery-index")),setTimeout(()=>this.setLightboxGalleryIndex(n.data("gallery-index")),1e3)}setLightboxGalleryIndex(e="all"){if(e==="all")return this.elements.$items.attr("data-elementor-lightbox-slideshow","all_"+this.getID());this.elements.$items.not(".e-gallery-item--hidden").attr("data-elementor-lightbox-slideshow",e+"_"+this.getID())}onInit(...e){super.onInit(...e),elementorFrontend.isEditMode()&&1<=this.$element.find(".elementor-widget-empty-icon").length&&this.$element.addClass("elementor-widget-empty"),this.elements.$container.length&&(this.initGallery(),this.elements.$titles.first().trigger("click"))}getSettingsDictionary(){if(this.settingsDictionary)return this.settingsDictionary;const e=elementorFrontend.config.responsive.activeBreakpoints,t=Object.keys(e),n={columns:["columns"],gap:["horizontalGap","verticalGap"],ideal_row_height:["idealRowHeight"]};return t.forEach(s=>{s!=="widescreen"&&(n["columns_"+s]=["breakpoints."+e[s].value+".columns"],n["gap_"+s]=["breakpoints."+e[s].value+".horizontalGap","breakpoints."+e[s].value+".verticalGap"],n["ideal_row_height_"+s]=["breakpoints."+e[s].value+".idealRowHeight"])}),n.aspect_ratio=["aspectRatio"],this.settingsDictionary=n,this.settingsDictionary}onElementChange(e){if(this.getGallerySettings(),["background_overlay_hover_animation","content_hover_animation","image_hover_animation","content_sequenced_animation"].indexOf(e)!==-1){this.toggleAnimationClasses(e);return}const t=this.getSettingsDictionary()[e];if(t){const n=this.getGallerySettings();t.forEach(s=>{this.gallery.setSettings(s,this.getItems(n,s))})}}onDestroy(){super.onDestroy(),this.gallery&&this.gallery.destroy()}}})),Nr=(Oe=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("gallery",()=>v(()=>Promise.resolve().then(()=>(Wr(),Rr)),void 0))}},f(Oe,"default"),Oe),zr=b({default:()=>Js}),Gs,Qs,Ks,fn,Ys,Xs,vn,_n,bn,Js,jr=g((()=>{Gs=Object.defineProperty,Qs=Object.defineProperties,Ks=Object.getOwnPropertyDescriptors,fn=Object.getOwnPropertySymbols,Ys=Object.prototype.hasOwnProperty,Xs=Object.prototype.propertyIsEnumerable,vn=f((e,t,n)=>t in e?Gs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,"__defNormalProp"),_n=f((e,t)=>{for(var n in t||(t={}
1788))Ys.call(t,n)&&vn(e,n,t[n]);if(fn)for(var n of fn(t))Xs.call(t,n)&&vn(e,n,t[n]);return e},"__spreadValues"),bn=f((e,t)=>Qs(e,Ks(t)),"__spreadProps"),Js=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{container:".e-lottie__container",containerLink:".e-lottie__container__link",animation:".e-lottie__animation",caption:".e-lottie__caption"},classes:{caption:"e-lottie__caption"}}}getDefaultElements(){const{selectors:e}=this.getSettings();return{$widgetWrapper:this.$element,$container:this.$element.find(e.container),$containerLink:this.$element.find(e.containerLink),$animation:this.$element.find(e.animation),$caption:this.$element.find(e.caption),$sectionParent:this.$element.closest(".elementor-section"),$columnParent:this.$element.closest(".elementor-column"),$containerParent:this.$element.closest(".e-con")}}onInit(...e){super.onInit(...e),this.lottie=null,this.state={isAnimationScrollUpdateNeededOnFirstLoad:!0,isNewLoopCycle:!1,isInViewport:!1,loop:!1,animationDirection:"forward",currentAnimationTrigger:"",effectsRelativeTo:"",hoverOutMode:"",hoverArea:"",caption:"",playAnimationCount:0,animationSpeed:0,linkTimeout:0,viewportOffset:{start:0,end:100}},this.intersectionObservers={animation:{observer:null,element:null},lazyload:{observer:null,element:null}},this.animationFrameRequest={timer:null,lastScrollY:0},this.listeners={collection:[],elements:{$widgetArea:{triggerAnimationHoverIn:null,triggerAnimationHoverOut:null},$container:{triggerAnimationClick:null}}},this.initLottie()}initLottie(){this.getLottieSettings().lazyload?this.lazyloadLottie():this.generateLottie()}lazyloadLottie(){this.intersectionObservers.lazyload.observer=elementorModules.utils.Scroll.scrollObserver({offset:"0px 0px 200px",callback:t=>{t.isInViewport&&(this.generateLottie(),this.intersectionObservers.lazyload.observer.unobserve(this.intersectionObservers.lazyload.element))}}),this.intersectionObservers.lazyload.element=this.elements.$container[0],this.intersectionObservers.lazyload.observer.observe(this.intersectionObservers.lazyload.element)}generateLottie(){this.createLottieInstance(),this.setLottieEvents()}createLottieInstance(){const e=this.getLottieSettings();this.lottie=bodymovin.loadAnimation({container:this.elements.$animation[0],path:this.getAnimationPath(),renderer:e.renderer,autoplay:!1,name:"lottie-widget"}),this.elements.$animation.data("lottie",this.lottie)}getAnimationPath(){var e,t;const n=this.getLottieSettings();return(e=n.source_json)!=null&&e.url&&n.source_json.url.toLowerCase().substr(-4)==="json"?n.source_json.url:(t=n.source_external_url)!=null&&t.url?n.source_external_url.url:elementorProFrontend.config.lottie.defaultAnimationUrl}setCaption(){const e=this.getLottieSettings();(e.source==="external_url"||e.source==="media_file"&&e.caption_source==="custom")&&this.getCaptionElement().text(e.caption)}getCaptionElement(){if(!this.elements.$caption.length){const{classes:e}=this.getSettings();return this.elements.$caption=jQuery("<p>",{class:e.caption}),this.elements.$container.append(this.elements.$caption),this.elements.$caption}return this.elements.$caption}setLottieEvents(){this.lottie.addEventListener("DOMLoaded",()=>this.onLottieDomLoaded()),this.lottie.addEventListener("complete",()=>this.onComplete())}saveInitialValues(){var e;const t=this.getLottieSettings();this.lottie.__initialTotalFrames=this.lottie.totalFrames,this.lottie.__initialFirstFrame=this.lottie.firstFrame,this.state.currentAnimationTrigger=t.trigger,this.state.effectsRelativeTo=t.effects_relative_to,this.state.viewportOffset.start=t.viewport?t.viewport.sizes.start:0,this.state.viewportOffset.end=t.viewport?t.viewport.sizes.end:100,this.state.animationSpeed=(e=t.play_speed)==null?void 0:e.size,this.state.linkTimeout=t.link_timeout,this.state.caption=t.caption,this.state.loop=t.loop}setAnimationFirstFrame(){const e=this.getAnimationFrames();e.first=e.first-this.lottie.__initialFirstFrame,this.lottie.goToAndStop(e.first,!0)}initAnimationTrigger(){switch(this.getLottieSettings().trigger){case"none":this.playLottie();break;case"arriving_to_viewport":this.playAnimationWhenArrivingToViewport();break;case"bind_to_scroll":this.playAnimationWhenBindToScroll();break;case"on_click":this.bindAnimationClickEvents();break;case"on_hover":this.bindAnimationHoverEvents();break}}playAnimationWhenArrivingToViewport(){const e=this.getOffset();this.intersectionObservers.animation.observer=elementorModules.utils.Scroll.
1788scrollObserver({offset:`${e.end}% 0% ${e.start}%`,callback:t=>{t.isInViewport?(this.state.isInViewport=!0,this.playLottie()):(this.state.isInViewport=!1,this.lottie.pause())}}),this.intersectionObservers.animation.element=this.elements.$widgetWrapper[0],this.intersectionObservers.animation.observer.observe(this.intersectionObservers.animation.element)}getOffset(){const e=this.getLottieSettings();return{start:-e.viewport.sizes.start||0,end:-(100-e.viewport.sizes.end)||0}}playAnimationWhenBindToScroll(){const e=this.getLottieSettings(),t=this.getOffset();this.intersectionObservers.animation.observer=elementorModules.utils.Scroll.scrollObserver({offset:`${t.end}% 0% ${t.start}%`,callback:n=>this.onLottieIntersection(n)}),this.intersectionObservers.animation.element=e.effects_relative_to==="viewport"?this.elements.$widgetWrapper[0]:document.documentElement,this.intersectionObservers.animation.observer.observe(this.intersectionObservers.animation.element)}updateAnimationByScrollPosition(){const e=this.getLottieSettings();let t;e.effects_relative_to==="page"?t=this.getLottiePagePercentage():this.getCurrentDeviceSetting("_position")==="fixed"?t=this.getLottieViewportHeightPercentage():t=this.getLottieViewportPercentage();let n=this.getFrameNumberByPercent(t);n=n-this.lottie.__initialFirstFrame,this.lottie.goToAndStop(n,!0)}getLottieViewportPercentage(){return elementorModules.utils.Scroll.getElementViewportPercentage(this.elements.$widgetWrapper,this.getOffset())}getLottiePagePercentage(){return elementorModules.utils.Scroll.getPageScrollPercentage(this.getOffset())}getLottieViewportHeightPercentage(){return elementorModules.utils.Scroll.getPageScrollPercentage(this.getOffset(),window.innerHeight)}getFrameNumberByPercent(e){const t=this.getAnimationFrames();return e=Math.min(100,Math.max(0,e)),t.first+(t.last-t.first)*e/100}getAnimationFrames(){const e=this.getLottieSettings(),t=this.getAnimationCurrentFrame(),n=this.getAnimationRange().start,s=this.getAnimationRange().end;let i=this.lottie.__initialFirstFrame,o=this.lottie.__initialFirstFrame===0?this.lottie.__initialTotalFrames:this.lottie.__initialFirstFrame+this.lottie.__initialTotalFrames;return n&&n>i&&(i=n),s&&s<o&&(o=s),!this.state.isNewLoopCycle&&e.trigger!=="bind_to_scroll"&&(i=n&&n>t?n:t),this.state.animationDirection==="backward"&&this.isReverseMode()&&(i=t,o=n&&n>this.lottie.__initialFirstFrame?n:this.lottie.__initialFirstFrame),{first:i,last:o,current:t,total:this.lottie.__initialTotalFrames}}getAnimationRange(){const e=this.getLottieSettings();return{start:this.getInitialFrameNumberByPercent(e.start_point.size),end:this.getInitialFrameNumberByPercent(e.end_point.size)}}getInitialFrameNumberByPercent(e){return e=Math.min(100,Math.max(0,e)),this.lottie.__initialFirstFrame+(this.lottie.__initialTotalFrames-this.lottie.__initialFirstFrame)*e/100}getAnimationCurrentFrame(){return this.lottie.firstFrame===0?this.lottie.currentFrame:this.lottie.firstFrame+this.lottie.currentFrame}setLinkTimeout(){var e;const t=this.getLottieSettings();t.trigger==="on_click"&&((e=t.custom_link)!=null&&e.url)&&t.link_timeout&&this.elements.$containerLink.on("click",n=>{n.preventDefault(),this.isEdit||setTimeout(()=>{const s=t.custom_link.is_external==="on"?"_blank":"_self";window.open(t.custom_link.url,s)},t.link_timeout)})}bindAnimationClickEvents(){this.listeners.elements.$container.triggerAnimationClick=()=>{this.playLottie()},this.addSessionEventListener(this.elements.$container,"click",this.listeners.elements.$container.triggerAnimationClick)}getLottieSettings(){var e,t;const n=this.getElementSettings(),s=bn(_n({},n),{lazyload:n.lazyload==="yes",loop:n.loop==="yes"});return n.source==="external_url"&&(s.source_external_url=bn(_n({},(e=n.source_external_url)!=null?e:{}),{url:((t=s.source_external_url)==null?void 0:t.url)||this.getDynamicValue()})),s}playLottie(){const e=this.getAnimationFrames();this.lottie.stop(),this.lottie.playSegments([e.first,e.last],!0),this.state.isNewLoopCycle=!1}bindAnimationHoverEvents(){this.createAnimationHoverInEvents(),this.createAnimationHoverOutEvents()}createAnimationHoverInEvents(){const e=this.getLottieSettings(),t=this.getHoverAreaElement();this.state.hoverArea=e.hover_area,this.listeners.elements.$widgetArea.triggerAnimationHoverIn=()=>{this.state.animationDirection="forward",this.playLottie()},this.addSessionEventListener(t,"mouseenter",this.listeners.elements.$widgetArea.triggerAnimationHoverIn)}addSessionEventListener(e,t,n){e.on(t,n),this.listeners.collection.push({$el:e,event:t,callback:n})}createAnimationHoverOutEvents(){const e=this.getLottieSettings(),t=this.getHoverAreaElement();(e.on_hover_out==="pause"||e.on_hover_out==="reverse")&&(this.state.hoverOutMode=e.on_hover_out,this.listeners.elements.$widgetArea.triggerAnimationHoverOut=()=>{e.on_hover_out==="pause"?this.lottie.pause():(this.state.animationDirection="backward",this.playLottie())},this.addSessionEventListener(t,"mouseleave",this.listeners.elements.$widgetArea.triggerAnimationHoverOut))}getHoverAreaElement(){switch(this.getLottieSettings().hover_area){case"section":return this.elements.$sectionParent;case"column":return this.elements.$columnParent;case"container":return this.elements.$containerParent}return this.elements.$container}setLoopOnAnimationComplete(){const e=this.getLottieSettings();this.state.isNewLoopCycle=!0,e.loop&&!this.isReverseMode()?this.setLoopWhenNotReverse():e.loop&&this.isReverseMode()?this.setReverseAnimationOnLoop():!e.loop&&this.isReverseMode()&&this.setReverseAnimationOnSingleTrigger()}isReverseMode(){const e=this.getLottieSettings();return e.reverse_animation==="yes"||e.on_hover_out==="reverse"&&this.state.animationDirection==="backward"}setLoopWhenNotReverse(){const e=this.getLottieSettings();e.number_of_times>0?(this.state.playAnimationCount++,this.state.playAnimationCount<e.number_of_times?this.playLottie():this.state.playAnimationCount=0):this.playLottie()}setReverseAnimationOnLoop(){const e=this.getLottieSettings();!e.number_of_times||this.state.playAnimationCount<e.number_of_times?(this.state.animationDirection=this.state.animationDirection==="forward"?"backward":"forward",this.playLottie(),this.state.animationDirection==="backward"&&this.state.playAnimationCount++):(this.state.playAnimationCount=0,this.state.animationDirection="forward")}setReverseAnimationOnSingleTrigger(){this.state.playAnimationCount<1?(this.state.playAnimationCount++,this.state.animationDirection="backward",this.playLottie()):this.state.playAnimationCount>=1&&this.state.animationDirection==="forward"?(this.state.animationDirection="backward",this.playLottie()):(this.state.playAnimationCount=0,this.state.animationDirection="forward")}setAnimationSpeed(){const e=this.getLottieSettings();e.play_speed&&this.lottie.setSpeed(e.play_speed.size)}onElementChange(){this.updateLottieValues(),this.resetAnimationTrigger()}updateLottieValues(){var e;const t=this.getLottieSettings();[{sourceVal:(e=t.play_speed)==null?void 0:e.size,stateProp:"animationSpeed",callback:()=>this.setAnimationSpeed()},{sourceVal:t.link_timeout,stateProp:"linkTimeout",callback:()=>this.setLinkTimeout()},{sourceVal:t.caption,stateProp:"caption",callback:()=>this.setCaption()},{sourceVal:t.effects_relative_to,stateProp:"effectsRelativeTo",callback:()=>this.updateAnimationByScrollPosition()},{sourceVal:t.loop,stateProp:"loop",callback:()=>this.onLoopStateChange()}
1788].forEach(n=>{typeof n.sourceVal!="undefined"&&n.sourceVal!==this.state[n.stateProp]&&(this.state[n.stateProp]=n.sourceVal,n.callback())})}onLoopStateChange(){const e=this.state.currentAnimationTrigger==="arriving_to_viewport"&&this.state.isInViewport;this.state.loop&&(e||this.state.currentAnimationTrigger==="none")&&this.playLottie()}resetAnimationTrigger(){const e=this.getLottieSettings(),t=e.trigger!==this.state.currentAnimationTrigger,n=e.viewport?this.isViewportOffsetChange():!1,s=e.on_hover_out?this.isHoverOutModeChange():!1,i=e.hover_area?this.isHoverAreaChange():!1;(t||n||s||i)&&(this.removeAnimationFrameRequests(),this.removeObservers(),this.removeEventListeners(),this.initAnimationTrigger())}isViewportOffsetChange(){const e=this.getLottieSettings(),t=e.viewport.sizes.start!==this.state.viewportOffset.start,n=e.viewport.sizes.end!==this.state.viewportOffset.end;return t||n}isHoverOutModeChange(){return this.getLottieSettings().on_hover_out!==this.state.hoverOutMode}isHoverAreaChange(){return this.getLottieSettings().hover_area!==this.state.hoverArea}removeEventListeners(){this.listeners.collection.forEach(e=>{e.$el.off(e.event,null,e.callback)})}removeObservers(){for(const e in this.intersectionObservers)this.intersectionObservers[e].observer&&this.intersectionObservers[e].element&&this.intersectionObservers[e].observer.unobserve(this.intersectionObservers[e].element)}removeAnimationFrameRequests(){cancelAnimationFrame(this.animationFrameRequest.timer)}onDestroy(){super.onDestroy(),this.destroyLottie()}destroyLottie(){this.removeAnimationFrameRequests(),this.removeObservers(),this.removeEventListeners(),this.elements.$animation.removeData("lottie"),this.lottie&&this.lottie.destroy()}onLottieDomLoaded(){this.saveInitialValues(),this.setAnimationSpeed(),this.setLinkTimeout(),this.setCaption(),this.setAnimationFirstFrame(),this.initAnimationTrigger()}onComplete(){this.setLoopOnAnimationComplete()}onLottieIntersection(e){if(e.isInViewport)this.state.isAnimationScrollUpdateNeededOnFirstLoad&&(this.state.isAnimationScrollUpdateNeededOnFirstLoad=!1,this.updateAnimationByScrollPosition()),this.animationFrameRequest.timer=requestAnimationFrame(()=>this.onAnimationFrameRequest());else{const t=this.getAnimationFrames(),n=e.intersectionScrollDirection==="up"?t.first:t.last;this.state.isAnimationScrollUpdateNeededOnFirstLoad=!1,cancelAnimationFrame(this.animationFrameRequest.timer),this.lottie.goToAndStop(n,!0)}}onAnimationFrameRequest(){window.scrollY!==this.animationFrameRequest.lastScrollY&&(this.updateAnimationByScrollPosition(),this.animationFrameRequest.lastScrollY=window.scrollY),this.animationFrameRequest.timer=requestAnimationFrame(()=>this.onAnimationFrameRequest())}getDynamicValue(){var e,t,n,s,i;if(!this.isEdit||!(elementor!=null&&elementor.dynamicTags))return"";const o=(t=(e=elementor.getContainer(this.getID()))==null?void 0:e.model)==null?void 0:t.get("settings"),a=(s=(n=o==null?void 0:o.get("__dynamic__"))==null?void 0:n.source_external_url)!=null?s:null;if(!a)return"";const l=elementor.dynamicTags.tagTextToTagData(a);if(!l)return"";try{return(i=elementor.dynamicTags.parseTagsText(a,l,elementor.dynamicTags.getTagDataContent))!=null?i:""}catch(d){return""}}}})),qr=(Be=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("lottie",()=>v(()=>Promise.resolve().then(()=>(jr(),zr)),void 0))}},f(Be,"default"),Be);function kt(e){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kt(e)}var Zs=g((()=>{}));function Vr(e,t){if(kt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t||"default");if(kt(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ur=g((()=>{Zs()}));function Gr(e){var t=Vr(e,"string");return kt(t)=="symbol"?t:t+""}var Qr=g((()=>{Zs(),Ur()}));
1788function V(e,t,n){return(t=Gr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=g((()=>{Qr()})),Sn,ei=g((()=>{ae(),Sn=class{constructor(e,t){V(this,"observer",null),this.$anchorLinks=e,this.activeAnchorClass=t.activeAnchorItem,this.anchorClass=t.anchorItem}getViewportHeight(){return window.innerHeight}bindEvents(){this.onResize=this.onResize.bind(this),window.addEventListener("resize",this.onResize)}initialize(){this.viewPortHeight=this.getViewportHeight(),this.followMenuAnchors(),this.bindEvents()}followMenuAnchors(){this.$anchorLinks.each((e,t)=>{location.pathname===t.pathname&&t.hash!==""&&this.followMenuAnchor(jQuery(t))})}followMenuAnchor(e){const t=e.hasClass(this.anchorClass)?e:e.closest(`.${this.anchorClass}`),n=this.getAnchorElement(e);if(!n)return;const s=this.getObserverOptions(n);this.observer=this.createObserver(t,e,s),this.observer.observe(n)}getAnchorElement(e){const t=e[0].hash;try{const n=decodeURIComponent(t);return document.querySelector(n)}catch(n){return null}}getObserverOptions(e){return{root:null,rootMargin:this.calculateRootMargin(e)}}calculateRootMargin(e){const t=((e==null?void 0:e.offsetHeight)||0)>this.viewPortHeight/2,n=-1*this.viewPortHeight/2;return`${t?n:0}px 0px ${n}px 0px`}createObserver(e,t,n){return new IntersectionObserver(s=>{s.forEach(i=>{e.toggleClass(this.activeAnchorClass,i.isIntersecting),t.attr("aria-current",i.isIntersecting?"location":"")})},n)}onResize(){this.viewPortHeight=this.getViewportHeight(),this.observer&&this.observer.disconnect(),this.followMenuAnchors()}}})),Kr=b({default:()=>ti}),ti,Yr=g((()=>{ei(),ti=elementorModules.frontend.handlers.Base.extend({stretchElement:null,getDefaultSettings(){return{selectors:{menu:".elementor-nav-menu",anchorLink:".elementor-nav-menu--main .elementor-item-anchor",dropdownMenu:".elementor-nav-menu__container.elementor-nav-menu--dropdown",menuToggle:".elementor-menu-toggle"},classes:{anchorItem:"elementor-item-anchor",activeAnchorItem:"elementor-item-active"}}},getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$menu=this.$element.find(e.menu),t.$anchorLink=this.$element.find(e.anchorLink),t.$dropdownMenu=this.$element.find(e.dropdownMenu),t.$dropdownMenuFinalItems=t.$dropdownMenu.find(".menu-item:not(.menu-item-has-children) > a"),t.$menuToggle=this.$element.find(e.menuToggle),t.$links=t.$dropdownMenu.find("a.elementor-item"),t},dropdownMenuHeightControllerConfig(){const e=this.getSettings("selectors");return{elements:{$element:this.$element,$dropdownMenuContainer:this.$element.find(e.dropdownMenu),$menuToggle:this.$element.find(e.menuToggle)},attributes:{menuToggleState:"aria-expanded"},settings:{dropdownMenuContainerMaxHeight:"1000vmax",menuHeightCssVarName:"--menu-height"}}},bindEvents(){this.elements.$menu.length&&(this.elements.$menuToggle.on("click",this.toggleMenu.bind(this)).on("keyup",this.triggerClickOnEnterSpace.bind(this)),this.getElementSettings("full_width")&&this.elements.$dropdownMenuFinalItems.on("click",this.toggleMenu.bind(this,!1)).on("keyup",this.triggerClickOnEnterSpace.bind(this)),elementorFrontend.addListenerOnce(this.$element.data("model-cid"),"resize",this.stretchMenu),elementorFrontend.addListenerOnce(this.$element.data("model-cid"),"scroll",elementorFrontend.debounce(this.menuHeightController.reassignMobileMenuHeight.bind(this.menuHeightController),250)))},initStretchElement(){this.stretchElement=new elementorModules.frontend.tools.StretchElement({element:this.elements.$dropdownMenu})},toggleNavLinksTabIndex(e=!0){this.elements.$links.attr("tabindex",e?0:-1)},toggleMenu(e){var t=this.elements.$menuToggle.hasClass("elementor-active");typeof e!="boolean"&&(e=!t),this.elements.$menuToggle.attr("aria-expanded",e),this.elements.$dropdownMenu.attr("aria-hidden",!e),this.elements.$menuToggle.toggleClass("elementor-active",e),this.toggleNavLinksTabIndex(e),this.menuHeightController.reassignMobileMenuHeight(this),e&&this.getElementSettings("full_width")&&this.stretchElement.stretch()},triggerClickOnEnterSpace(e){(e.keyCode===13||e.keyCode===32)&&(e.currentTarget.click(),e.stopPropagation())}
1788,stretchMenu(){this.getElementSettings("full_width")?(this.stretchElement.stretch(),this.elements.$dropdownMenu.css("top",this.elements.$menuToggle.outerHeight())):this.stretchElement.reset()},onInit(){if(this.menuHeightController=new elementorProFrontend.utils.DropdownMenuHeightController(this.dropdownMenuHeightControllerConfig()),elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),!!this.elements.$menu.length&&(this.elements.$menu.smartmenus({subIndicators:!1,subMenusMaxWidth:"1000px"}),this.initStretchElement(),this.stretchMenu(),!elementorFrontend.isEditMode())){const e=this.getSettings("classes");this.anchorLinks=new Sn(this.elements.$anchorLink,e),this.anchorLinks.initialize()}},onElementChange(e){e==="full_width"&&this.stretchMenu()}})})),Xr=(He=class extends elementorModules.Module{constructor(){super(),jQuery.fn.smartmenus&&(jQuery.SmartMenus.prototype.isCSSOn=function(){return!0},elementorFrontend.config.is_rtl&&(jQuery.fn.smartmenus.defaults.rightToLeftSubMenus=!0)),elementorFrontend.elementsHandler.attachHandler("nav-menu",()=>v(()=>Promise.resolve().then(()=>(Yr(),Kr)),void 0))}},f(He,"default"),He),ge=(Re=class extends elementorModules.Module{constructor(t,n){super(t),this.callback=n}getTriggerSetting(t){return this.getSettings(this.getName()+"_"+t)}},f(Re,"default"),Re),Jr=(We=class extends ge{getName(){return"page_load"}run(){this.timeout=setTimeout(this.callback,this.getTriggerSetting("delay")*1e3)}destroy(){clearTimeout(this.timeout)}},f(We,"default"),We),Zr=(Ne=class extends ge{constructor(...t){super(...t),this.checkScroll=this.checkScroll.bind(this),this.lastScrollOffset=0}getName(){return"scrolling"}checkScroll(){const t=scrollY>this.lastScrollOffset?"down":"up",n=this.getTriggerSetting("direction");if(this.lastScrollOffset=scrollY,t!==n)return;if(t==="up"){this.callback();return}const s=elementorFrontend.elements.$document.height()-innerHeight;scrollY/s*100>=this.getTriggerSetting("offset")&&this.callback()}run(){elementorFrontend.elements.$window.on("scroll",this.checkScroll)}destroy(){elementorFrontend.elements.$window.off("scroll",this.checkScroll)}},f(Ne,"default"),Ne),ea=(ze=class extends ge{getName(){return"scrolling_to"}run(){let t;try{t=jQuery(this.getTriggerSetting("selector"))}catch(n){return}t.length&&(this.setUpIntersectionObserver(),this.observer.observe(t[0]))}setUpIntersectionObserver(){this.observer=new IntersectionObserver(t=>{t.forEach(n=>{n.isIntersecting&&this.callback()})})}destroy(){this.observer&&this.observer.disconnect()}},f(ze,"default"),ze),ta=(je=class extends ge{constructor(...t){super(...t),this.checkClick=this.checkClick.bind(this),this.clicksCount=0}getName(){return"click"}checkClick(){this.clicksCount++,this.clicksCount===this.getTriggerSetting("times")&&this.callback()}run(){elementorFrontend.elements.$body.on("click",this.checkClick)}destroy(){elementorFrontend.elements.$body.off("click",this.checkClick)}},f(je,"default"),je),na=(qe=class extends ge{constructor(...t){super(...t),this.restartTimer=this.restartTimer.bind(this)}getName(){return"inactivity"}run(){this.startTimer(),elementorFrontend.elements.$document.on("keypress mousemove",this.restartTimer)}startTimer(){this.timeOut=setTimeout(this.callback,this.getTriggerSetting("time")*1e3)}clearTimer(){clearTimeout(this.timeOut)}restartTimer(){this.clearTimer(),this.startTimer()}destroy(){this.clearTimer(),elementorFrontend.elements.$document.off("keypress mousemove",this.restartTimer)}},f(qe,"default"),qe),sa=(Ve=class extends ge{constructor(...t){super(...t),this.detectExitIntent=this.detectExitIntent.bind(this)}getName(){return"exit_intent"}detectExitIntent(t){t.clientY<=0&&this.callback()}run(){elementorFrontend.elements.$window.on("mouseleave",this.detectExitIntent)}destroy(){elementorFrontend.elements.$window.off("mouseleave",this.detectExitIntent)}},f(Ve,"default"),Ve),ia=(Ue=class extends ge{getName(){return"adblock_detection"}generateRandomString(){const t="abcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let s=0;s<6;s++){const i=Math.floor(Math.random()*36);n+=t[i]}return n}hasAdblock(){var t;const n=`elementor-adblock-detection-${this.generateRandomString()}`;this.createEmptyAdBlockElement(n);const s=document.querySelector(`#${n}`);if(!s)return!0;const i=((t=window.getComputedStyle(s))==null?void 0:t.display)==="none";return this.removeEmptyAdBlockElement(s),i}createEmptyAdBlockElement(t){const n=document.createElement("div");n.id=t,n.className="ad-box",n.style.position="fixed",n.style.top="0",n.style.left="0",n.setAttribute("aria-hidden","true"),n.innerHTML="&nbsp;",document.body.appendChild(n)}removeEmptyAdBlockElement(t){t.remove()}run(){this.timeout=setTimeout(()=>{this.hasAdblock()&&this.callback()},this.getTriggerSetting("delay")*1e3)}destroy(){clearTimeout(this.timeout)}},f(Ue,"default"),Ue),oa=(Ge=class extends elementorModules.Module{constructor(t,n){super(t),this.document=n,this.triggers=[],this.triggerClasses={page_load:Jr,scrolling:Zr,scrolling_to:ea,click:ta,inactivity:na,exit_intent:sa,adblock_detection:ia},this.runTriggers()}runTriggers(){const t=this.getSettings();jQuery.each(this.triggerClasses,(n,s)=>{if(!t[n])return;const i=new s(t,()=>this.onTriggerFired());i.run(),this.triggers.push(i)})}
1788destroyTriggers(){this.triggers.forEach(t=>t.destroy()),this.triggers=[]}onTriggerFired(){this.document.showModal(!0),this.destroyTriggers()}},f(Ge,"default"),Ge),te=(Qe=class extends elementorModules.Module{constructor(t,n){super(t),this.document=n}getTimingSetting(t){return this.getSettings(this.getName()+"_"+t)}},f(Qe,"default"),Qe),ra=(Ke=class extends te{getName(){return"page_views"}check(){const t=elementorFrontend.storage.get("pageViews"),n=this.getName();let s=this.document.getStorage(n+"_initialPageViews");return s||(this.document.setStorage(n+"_initialPageViews",t),s=t),t-s>=this.getTimingSetting("views")}},f(Ke,"default"),Ke),aa=(Ye=class extends te{getName(){return"sessions"}check(){const t=elementorFrontend.storage.get("sessions"),n=this.getName();let s=this.document.getStorage(n+"_initialSessions");return s||(this.document.setStorage(n+"_initialSessions",t),s=t),t-s>=this.getTimingSetting("sessions")}},f(Ye,"default"),Ye),la=(Xe=class extends te{getName(){return"url"}check(){const t=this.getTimingSetting("url"),n=this.getTimingSetting("action"),s=document.referrer;if(n!=="regex")return n==="hide"^s.indexOf(t)!==-1;let i;try{i=new RegExp(t)}catch(o){return!1}return i.test(s)}},f(Xe,"default"),Xe),ca=(Je=class extends te{getName(){return"sources"}check(){const t=this.getTimingSetting("sources");if(t.length===3)return!0;const n=document.referrer.replace(/https?:\/\/(?:www\.)?/,"");return n.indexOf(location.host.replace("www.",""))===0?t.indexOf("internal")!==-1:t.indexOf("external")!==-1?!0:t.indexOf("search")!==-1?/^(google|yahoo|bing|yandex|baidu)\./.test(n):!1}},f(Je,"default"),Je),da=(Ze=class extends te{getName(){return"logged_in"}check(){const t=elementorFrontend.config.user;return t?this.getTimingSetting("users")==="all"?!1:!this.getTimingSetting("roles").filter(n=>t.roles.indexOf(n)!==-1).length:!0}},f(Ze,"default"),Ze),ua=(et=class extends te{getName(){return"devices"}check(){return this.getTimingSetting("devices").indexOf(elementorFrontend.getCurrentDeviceMode())!==-1}},f(et,"default"),et),ma=class{constructor(e){this.uniqueId=e.uniqueId,this.settings=e.settings,this.storage=e.storage}getTimeFramesInSecounds(e){return{day:86400,week:604800,month:2628288}[e]}setExpiration(e,t,n){if(!this.storage.get(e)){const s={lifetimeInSeconds:this.getTimeFramesInSecounds(n)};this.storage.set(e,t,s);return}this.storage.set(e,t)}getImpressionsCount(){var e;const t=(e=this.storage.get(this.uniqueId))!=null?e:0;return parseInt(t)}incrementImpressionsCount(){var e,t;if(!this.settings.period)this.storage.set("times",((e=this.storage.get("times"))!=null?e:0)+1);else if(this.settings.period!=="session"){const n=this.getImpressionsCount();this.setExpiration(this.uniqueId,n+1,this.settings.period)}else sessionStorage.setItem(this.uniqueId,parseInt((t=sessionStorage.getItem(this.uniqueId))!=null?t:0)+1)}shouldCountOnOpen(){this.settings.countOnOpen&&this.incrementImpressionsCount()}shouldDisplayPerTimeFrame(){return this.getImpressionsCount()<this.settings.showsLimit?(this.shouldCountOnOpen(),!0):!1}shouldDisplayPerSession(){var e;const t=(e=sessionStorage.getItem(this.uniqueId))!=null?e:0;return parseInt(t)<this.settings.showsLimit?(this.shouldCountOnOpen(),!0):!1}shouldDisplayBackwordCompatible(e=0,t){const n=parseInt(e)<parseInt(t);return this.shouldCountOnOpen(),n}},ha=(tt=class extends te{constructor(...t){super(...t),this.uniqueId=`popup-${this.document.getSettings("id")}-impressions-count`;const{times_count:n,times_period:s,times_times:i}=this.getSettings();this.settings={countOnOpen:n,period:s,showsLimit:parseInt(i)},this.settings.period===""&&(this.settings.period=!1),["","close"].includes(this.settings.countOnOpen)?(this.settings.countOnOpen=!1,this.onPopupHide()):this.settings.countOnOpen=!0,this.utils=new ma({uniqueId:this.uniqueId,settings:this.settings,storage:elementorFrontend.storage})}getName(){return"times"}check(){if(!this.settings.period){const t=this.document.getStorage("times")||0,n=this.getTimingSetting("times");return this.utils.shouldDisplayBackwordCompatible(t,n)}if(this.settings.period!=="session"){if(!this.utils.shouldDisplayPerTimeFrame())return!1}else if(!this.utils.shouldDisplayPerSession())return!1;return!0}onPopupHide(){window.addEventListener("elementor/popup/hide",()=>{this.utils.incrementImpressionsCount()})}},f(tt,"default"),tt),ga=(nt=class extends te{getName(){return"browsers"}check(){if(this.getTimingSetting("browsers")==="all")return!0;const t=this.getTimingSetting("browsers_options"),n=elementorFrontend.utils.environment;return t.some(s=>n[s])}},f(nt,"default"),nt),pa=Object.defineProperty,fa=f((e,t,n)=>t in e?pa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,"__defNormalProp"),va=f((e,t,n)=>fa(e,typeof t!="symbol"?t+"":t,n),"__publicField"),_a=class{constructor(e){va(this,"shouldDisplay",()=>{if(!this.settings.startDate&&!this.settings.endDate)return!0;const t=this.getCurrentDateTime();return(!this.settings.startDate||t>=this.settings.startDate)&&(!this.settings.endDate||t<=this.settings.endDate)}),this.settings=e.settings}getCurrentDateTime(){let e=new Date;return this.settings.timezone==="site"&&this.settings.serverDatetime&&(e=new Date(this.settings.serverDatetime)),e}},ba=(st=class extends te{constructor(...t){super(...t);const{schedule_timezone:n,schedule_start_date:s,schedule_end_date:i,schedule_server_datetime:o}=this.getSettings();this.settings={timezone:n,startDate:s?new Date(s):!1,endDate:i?new Date(i):!1,serverDatetime:o?new Date(o):!1},this.scheduleUtils=new _a({settings:this.settings})}getName(){return"schedule"}check(){return this.scheduleUtils.shouldDisplay()}},f(st,"default"),st),Sa=(it=class extends elementorModules.Module{constructor(t,n){super(t),this.document=n,this.timingClasses={page_views:ra,sessions:aa,url:la,sources:ca,logged_in:da,devices:ua,times:ha,browsers:ga,schedule:ba}}check(){const t=this.getSettings();let n=!0;return jQuery.each(this.timingClasses,(s,i)=>{t[s]&&(new i(t,this.document).check()||(n=!1))}),n}},f(it,"default"),it),ya=Object.defineProperty,wa=f((e,t,n)=>t in e?ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,"__defNormalProp"),ni=f((e,t,n)=>wa(e,typeof t!="symbol"?t+"":t,n),"__publicField"),yn=class q{constructor(t){if(this.prefix=`${t}-`,!q.symbolsContainer){const n="e-font-icon-svg-symbols";q.symbolsContainer=document.getElementById(n),q.symbolsContainer||(q.symbolsContainer=document.createElementNS("http://www.w3.org/2000/svg","svg"),q.symbolsContainer.setAttributeNS(null,"
1788style","display: none;"),q.symbolsContainer.setAttributeNS(null,"class",n),document.body.appendChild(q.symbolsContainer))}}createSvgElement(t,{path:n,width:s,height:i}){const o=this.prefix+t,a="#"+this.prefix+t;if(!q.iconsUsageList.includes(o)){if(!q.symbolsContainer.querySelector(a)){const d=document.createElementNS("http://www.w3.org/2000/svg","symbol");d.id=o,d.innerHTML='<path d="'+n+'"></path>',d.setAttributeNS(null,"viewBox","0 0 "+s+" "+i),q.symbolsContainer.appendChild(d)}q.iconsUsageList.push(o)}const l=document.createElementNS("http://www.w3.org/2000/svg","svg");return l.innerHTML='<use xlink:href="'+a+'" />',l.setAttributeNS(null,"class","e-font-icon-svg e-"+o),l}};ni(yn,"symbolsContainer"),ni(yn,"iconsUsageList",[]);var Ca=yn,Ea=new Ca("eicon"),Ta={get element(){return Ea.createSvgElement("close",{path:"M742 167L500 408 258 167C246 154 233 150 217 150 196 150 179 158 167 167 154 179 150 196 150 212 150 229 154 242 171 254L408 500 167 742C138 771 138 800 167 829 196 858 225 858 254 829L496 587 738 829C750 842 767 846 783 846 800 846 817 842 829 829 842 817 846 804 846 783 846 767 842 750 829 737L588 500 833 258C863 229 863 200 833 171 804 137 775 137 742 167Z",width:1e3,height:1e3})}};function wn(){return"audio, button, canvas, details, iframe, input, select, summary, textarea, video, [accesskey], a[href], area[href], [tabindex]"}var Cn=g((()=>{})),En,si=g((()=>{Cn(),ae(),En=class{constructor(e){V(this,"lastFocusableElement",null),V(this,"firstFocusableElement",null),V(this,"modalTriggerElement",null),this.config=e,this.changeFocusAfterAnimation=!1}onOpenModal(){this.initializeElements(),this.setTriggerElement(),this.changeFocusAfterAnimation=this.config.modalType==="popup"&&!!this.config.hasEntranceAnimation,this.changeFocusAfterAnimation||this.changeFocus(),this.bindEvents()}onCloseModal(){elementorFrontend.elements.$window.off("keydown",this.onKeyDownPressed.bind(this)),this.modalTriggerElement&&this.setFocusToElement(this.modalTriggerElement)}bindEvents(){elementorFrontend.elements.$window.on("keydown",this.onKeyDownPressed.bind(this)),this.changeFocusAfterAnimation&&this.config.$modalElements.on("animationend animationcancel",this.changeFocus.bind(this)),this.config.modalType==="popup"&&this.onPopupCloseEvent()}onPopupCloseEvent(){elementorFrontend.elements.$window.on("elementor/popup/hide",this.onCloseModal.bind(this))}getFocusableElements(){const e=this.config.modalType==="popup"?":focusable":wn();return this.config.$modalElements.find(e)}initializeElements(){const e=this.getFocusableElements();e.length&&(this.lastFocusableElement=e[e.length-1],this.firstFocusableElement=e[0])}setTriggerElement(){elementorFrontend.elements.window.document.activeElement?this.modalTriggerElement=elementorFrontend.elements.window.document.activeElement:this.modalTriggerElement=null}changeFocus(){this.firstFocusableElement?this.setFocusToElement(this.firstFocusableElement):(this.config.$elementWrapper.attr("tabindex","0"),this.setFocusToElement(this.config.$elementWrapper[0]))}onKeyDownPressed(e){const n=e.shiftKey,s=e.key==="Tab"||e.keyCode===9,i=this.config.$elementWrapper.attr("tabindex")==="0";s&&i?e.preventDefault():s&&this.onTabKeyPressed(s,n,e)}onTabKeyPressed(e,t,n){elementorFrontend.isEditMode()&&this.initializeElements();const s=elementorFrontend.elements.window.document.activeElement;t?s===this.firstFocusableElement&&(this.setFocusToElement(this.lastFocusableElement),n.preventDefault()):s===this.lastFocusableElement&&(this.setFocusToElement(this.firstFocusableElement),n.preventDefault())}setFocusToElement(e){const t=this.config.modalType==="popup"?250:100;setTimeout(()=>{e==null||e.focus()},t)}}}));si(),ae(),he();var $a=(ot=class extends elementorModules.frontend.Document{constructor(...t){super(...t),V(this,"keyboardHandler",null)}bindEvents(){const t=this.getDocumentSettings("open_selector");t&&elementorFrontend.elements.$body.on("click",t,this.showModal.bind(this))}startTiming(){new Sa(this.getDocumentSettings("timing"),this).check()&&this.initTriggers()}initTriggers(){this.triggers=new oa(this.getDocumentSettings("triggers"),this)}showModal(t){const n=this.getDocumentSettings();if(!this.isEdit){if(!elementorFrontend.isWPPreviewMode()&&(this.getStorage("disable")||t&&elementorProFrontend.modules.popup.popupPopped&&n.avoid_multiple_popups))return;this.$element=jQuery(this.elementHTML),this.elements.$elements=this.$element.find(this.getSettings("selectors.elements"))}const s=this.getModal(),i=s.getElements("closeButton");s.setMessage(this.$element).show(),this.isEdit||(n.close_button_delay&&(i.hide(),clearTimeout(this.closeButtonTimeout),this.closeButtonTimeout=setTimeout(()=>i.show(),n.close_button_delay*1e3)),super.runElementsHandlers()),this.setEntranceAnimation(),(!n.timing||!n.timing.times_count)&&this.countTimes(),elementorProFrontend.modules.popup.popupPopped=!0,!this.isEdit&&n.a11y_navigation&&this.handleKeyboardA11y()}setEntranceAnimation(){const t=this.getModal().getElements("widgetContent"),n=this.getDocumentSettings(),s=elementorFrontend.getCurrentDeviceSetting(n,"entrance_animation");if(this.currentAnimation&&t.removeClass(this.currentAnimation),this.currentAnimation=s,!s)return;const i=n.entrance_animation_duration.size;t.addClass(s),setTimeout(()=>t.removeClass(s),i*1e3)}handleKeyboardA11y(){this.keyboardHandler||(this.keyboardHandler=new En(this.getKeyboardHandlingConfig())),this.keyboardHandler.onOpenModal()}setExitAnimation(){const t=this.getModal(),n=this.getDocumentSettings(),s=t.getElements("widgetContent"),i=elementorFrontend.getCurrentDeviceSetting(n,"exit_animation"),o=i?n.entrance_animation_duration.size:0;setTimeout(()=>{i&&s.removeClass(i+" reverse"),this.isEdit||(this.$element.remove(),t.getElements("widget").hide())},o*1e3),i&&s.addClass(i+" reverse")}initModal(){let t;this.getModal=()=>{if(!t){const n=this.getDocumentSettings(),s=this.getSettings("id"),i=d=>{const h="elementor/popup/"+d;elementorFrontend.elements.$document.trigger(h,[s,this]),window.dispatchEvent(new CustomEvent(h,{detail:{id:s,instance:this}}))};let o="elementor-popup-modal";n.classes&&(o+=" "+n.classes);const a={id:"elementor-popup-modal-"+s,className:o,closeButton:!0,preventScroll:n.prevent_scroll,onShow:()=>i("show"),onHide:()=>i("hide"),effects:{hide:()=>{n.timing&&n.timing.times_count&&this.countTimes(),this.setExitAnimation()},show:"show"},hide:{auto:!!n.close_automatically,autoDelay:n.close_automatically*1e3,onBackgroun
1788dClick:!n.prevent_close_on_background_click,onOutsideClick:!n.prevent_close_on_background_click,onEscKeyPress:!n.prevent_close_on_esc_key,ignore:".flatpickr-calendar"},position:{enable:!1}};elementorFrontend.config.experimentalFeatures.e_font_icon_svg&&(a.closeButtonOptions={iconElement:Ta.element}),a.closeButtonClass="eicon-close",t=elementorFrontend.getDialogsManager().createWidget("lightbox",a),t.getElements("widgetContent").addClass("animated");const l=t.getElements("closeButton");this.isEdit&&(l.off("click"),t.hide=()=>{}),this.setCloseButtonPosition()}return t}}setCloseButtonPosition(){const t=this.getModal(),n=this.getDocumentSettings("close_button_position");t.getElements("closeButton").prependTo(t.getElements(n==="outside"?"widget":"widgetContent"))}disable(){this.setStorage("disable",!0)}setStorage(t,n,s){elementorFrontend.storage.set(`popup_${this.getSettings("id")}_${t}`,n,s)}getStorage(t,n){return elementorFrontend.storage.get(`popup_${this.getSettings("id")}_${t}`,n)}countTimes(){const t=this.getStorage("times")||0;this.setStorage("times",t+1)}runElementsHandlers(){}onInit(){var t=()=>super.onInit,n=this;return ee(function*(){if(t().call(n),window.DialogsManager||(yield elementorFrontend.utils.assetsLoader.load("script","dialog")),n.initModal(),n.isEdit){n.showModal();return}if(n.$element.show().remove(),n.elementHTML=n.$element[0].outerHTML,!elementorFrontend.isEditMode()){if(elementorFrontend.isWPPreviewMode()&&elementorFrontend.config.post.id===n.getSettings("id")){n.showModal();return}n.startTiming()}})()}onSettingsChange(t){const n=Object.keys(t.changed)[0];n.indexOf("entrance_animation")!==-1&&this.setEntranceAnimation(),n==="exit_animation"&&this.setExitAnimation(),n==="close_button_position"&&this.setCloseButtonPosition()}getEntranceAnimationDuration(){var t;const n=this.getDocumentSettings(),s=n==null?void 0:n.entrance_animation;if(!s||s===""||s==="none")return 0;const i=n==null||(t=n.entrance_animation_duration)===null||t===void 0?void 0:t.size;return i?Number(i):0}getKeyboardHandlingConfig(){return{$modalElements:this.getModal().getElements("widgetContent"),$elementWrapper:this.$element,hasEntranceAnimation:this.getEntranceAnimationDuration()!==0,modalType:"popup",modalId:this.$element.data("elementor-id")}}},f(ot,"default"),ot),Aa=b({default:()=>ii}),ii,Fa=g((()=>{ii=elementorModules.frontend.handlers.Base.extend({getDefaultSettings(){return{selectors:{form:".elementor-form"}}},getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$form=this.$element.find(e.form),t},bindEvents(){this.elements.$form.on("submit_success",this.handleFormAction)},handleFormAction(e,t){if(typeof t.data.popup=="undefined")return;const n=t.data.popup;if(n.action==="open")return elementorProFrontend.modules.popup.showPopup(n);setTimeout(()=>elementorProFrontend.modules.popup.closePopup(n,e),1e3)}})})),Ia=(rt=class extends elementorModules.Module{constructor(){super(),elementorFrontend.hooks.addAction("elementor/frontend/documents-manager/init-classes",this.addDocumentClass),elementorFrontend.elementsHandler.attachHandler("form",()=>v(()=>Promise.resolve().then(()=>(Fa(),Aa)),void 0)),elementorFrontend.on("components:init",()=>this.onFrontendComponentsInit()),this.shouldSetViewsAndSessions()&&this.setViewsAndSessions()}shouldSetViewsAndSessions(){return!elementorFrontend.isEditMode()&&!elementorFrontend.isWPPreviewMode()&&ElementorProFrontendConfig.popup.hasPopUps}addDocumentClass(t){t.addDocumentClass("popup",$a)}setViewsAndSessions(){const t=elementorFrontend.storage.get("pageViews")||0;if(elementorFrontend.storage.set("pageViews",t+1),!elementorFrontend.storage.get("activeSession",{session:!0})){elementorFrontend.storage.set("activeSession",!0,{session:!0});const n=elementorFrontend.storage.get("sessions")||0;elementorFrontend.storage.set("sessions",n+1)}}showPopup(t,n){const s=elementorFrontend.documentsManager.documents[t.id];if(!s)return;const i=s.getModal();t.toggle&&i.isVisible()?i.hide():s.showModal(null,n)}closePopup(t,n){const s=jQuery(n.target).parents('[data-elementor-type="popup"]').data("elementorId");if(!s)return;const i=elementorFrontend.documentsManager.documents[s];
1788i.getModal().hide(),t.do_not_show_again&&i.disable()}onFrontendComponentsInit(){elementorFrontend.utils.urlActions.addAction("popup:open",(t,n)=>this.showPopup(t,n)),elementorFrontend.utils.urlActions.addAction("popup:close",(t,n)=>this.closePopup(t,n))}},f(rt,"default"),rt),ka=b({default:()=>jt}),jt,Tn=g((()=>{jt=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{postsContainer:".elementor-posts-container",postWrapperTag:"article",loadMoreButton:".elementor-button",loadMoreSpinnerWrapper:".e-load-more-spinner",loadMoreSpinner:".e-load-more-spinner i, .e-load-more-spinner svg",loadMoreAnchor:".e-load-more-anchor"},classes:{loadMoreSpin:"eicon-animation-spin",loadMoreIsLoading:"e-load-more-pagination-loading",loadMorePaginationEnd:"e-load-more-pagination-end",loadMoreNoSpinner:"e-load-more-no-spinner"}}}getDefaultElements(){const e=this.getSettings("selectors");return{postsWidgetWrapper:this.$element[0],postsContainer:this.$element[0].querySelector(e.postsContainer),loadMoreButton:this.$element[0].querySelector(e.loadMoreButton),loadM
1788oreSpinnerWrapper:this.$element[0].querySelector(e.loadMoreSpinnerWrapper),loadMoreSpinner:this.$element[0].querySelector(e.loadMoreSpinner),loadMoreAnchor:this.$element[0].querySelector(e.loadMoreAnchor)}}bindEvents(){super.bindEvents(),this.elements.loadMoreButton&&this.elements.loadMoreButton.addEventListener("click",e=>{this.isLoading||(e.preventDefault(),this.handlePostsQuery())})}onInit(){super.onInit(),this.classes=this.getSettings("classes"),this.isLoading=!1;const e=this.getElementSettings("pagination_type");e!=="load_more_on_click"&&e!=="load_more_infinite_scroll"||(this.isInfinteScroll=e==="load_more_infinite_scroll",this.isSpinnerAvailable=this.getElementSettings("load_more_spinner").value,this.isSpinnerAvailable||this.elements.postsWidgetWrapper.classList.add(this.classes.loadMoreNoSpinner),this.isInfinteScroll?this.handleInfiniteScroll():this.elements.loadMoreSpinnerWrapper&&this.elements.loadMoreButton&&this.elements.loadMoreButton.insertAdjacentElement("beforeEnd",this.elements.loadMoreSpinnerWrapper),this.elementId=this.getID(),this.postId=elementorFrontendConfig.post.id,this.elements.loadMoreAnchor&&(this.currentPage=parseInt(this.elements.loadMoreAnchor.getAttribute("data-page")),this.maxPage=parseInt(this.elements.loadMoreAnchor.getAttribute("data-max-page")),(this.currentPage===this.maxPage||!this.currentPage)&&this.handleUiWhenNoPosts()))}handleInfiniteScroll(){this.isEdit||(this.observer=elementorModules.utils.Scroll.scrollObserver({callback:e=>{!e.isInViewport||this.isLoading||(this.observer.unobserve(this.elements.loadMoreAnchor),this.handlePostsQuery().then(()=>{this.currentPage!==this.maxPage&&this.observer.observe(this.elements.loadMoreAnchor)}))}}),this.observer.observe(this.elements.loadMoreAnchor))}handleUiBeforeLoading(){this.isLoading=!0,this.elements.loadMoreSpinner&&this.elements.loadMoreSpinner.classList.add(this.classes.loadMoreSpin),this.elements.postsWidgetWrapper.classList.add(this.classes.loadMoreIsLoading)}handleUiAfterLoading(){this.isLoading=!1,this.elements.loadMoreSpinner&&this.elements.loadMoreSpinner.classList.remove(this.classes.loadMoreSpin),this.isInfinteScroll&&this.elements.loadMoreSpinnerWrapper&&this.elements.loadMoreAnchor&&this.elements.loadMoreAnchor.insertAdjacentElement("afterend",this.elements.loadMoreSpinnerWrapper),this.elements.postsWidgetWrapper.classList.remove(this.classes.loadMoreIsLoading)}handleUiWhenNoPosts(){this.elements.postsWidgetWrapper.classList.add(this.classes.loadMorePaginationEnd)}afterInsertPosts(){}handleSuccessFetch(e){this.handleUiAfterLoading();const t=this.getSettings("selectors"),n=e.querySelectorAll(`[data-id="${this.elementId}"] ${t.postsContainer} > ${t.postWrapperTag}`),s=e.querySelector(`[data-id="${this.elementId}"] .e-load-more-anchor`).getAttribute("data-next-page");n.forEach(i=>this.elements.postsContainer.append(i)),this.elements.loadMoreAnchor.setAttribute("data-page",this.currentPage),this.elements.loadMoreAnchor.setAttribute("data-next-page",s),this.currentPage===this.maxPage&&this.handleUiWhenNoPosts(),this.afterInsertPosts(n,e)}handlePostsQuery(){this.handleUiBeforeLoading(),this.currentPage++;const e=this.elements.loadMoreAnchor.getAttribute("data-next-page");return fetch(e).then(t=>t.text()).then(t=>{const n=new DOMParser().parseFromString(t,"text/html");this.handleSuccessFetch(n)})}}})),oi=b({default:()=>N}),N,Ee=g((()=>{N=elementorModules.frontend.handlers.Base.extend({getSkinPrefix(){return"classic_"},bindEvents(){elementorFrontend.addListenerOnce(this.getModelCID(),"resize",this.onWindowResize)},unbindEvents(){elementorFrontend.removeListeners(this.getModelCID(),"resize",this.onWindowResize)},getClosureMethodsNames(){return elementorModules.frontend.handlers.Base.prototype.getClosureMethodsNames.apply(this,arguments).concat(["fitImages","onWindowResize","runMasonry"])},getDefaultSettings(){return{classes:{fitHeight:"elementor-fit-height",hasItemRatio:"elementor-has-item-ratio"},selectors:{postsContainer:".elementor-posts-container",post:".elementor-post",postThumbnail:".elementor-post__thumbnail",postThumbnailImage:".elementor-post__thumbnail img"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$postsContainer:this.$element.find(e.postsContainer),$posts:this.$element.find(e.post)}},fitImage(e){var t=this.getSettings(),n=e.find(t.selectors.postThumbnail),s=n.find("img")[0];if(s){var i=n.outerHeight()/n.outerWidth(),o=s.naturalHeight/s.naturalWi
1788dth;n.toggleClass(t.classes.fitHeight,o<i)}},fitImages(){var e=jQuery,t=this,n=getComputedStyle(this.$element[0],":after").content,s=this.getSettings();if(t.isMasonryEnabled()){this.elements.$postsContainer.removeClass(s.classes.hasItemRatio);return}this.elements.$postsContainer.toggleClass(s.classes.hasItemRatio,!!n.match(/\d/)),this.elements.$posts.each(function(){var i=e(this),o=i.find(s.selectors.postThumbnailImage);t.fitImage(i),o.on("load",function(){t.fitImage(i)})})},setColsCountSettings(){const e=this.getElementSettings(),t=this.getSkinPrefix(),n=elementorProFrontend.utils.controls.getResponsiveControlValue(e,`${t}columns`);this.setSettings("colsCount",n)},isMasonryEnabled(){return!!this.getElementSettings(this.getSkinPrefix()+"masonry")},initMasonry(){imagesLoaded(this.elements.$posts,this.runMasonry)},getVerticalSpaceBetween(){let e=elementorProFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),`${this.getSkinPrefix()}row_gap`,"size");return this.getSkinPrefix()===""&&e===""&&(e=this.getElementSettings("item_gap.size")),e},runMasonry(){var e=this.elements;e.$posts.css({marginTop:"",transitionDuration:""}),this.setColsCountSettings();var t=this.getSettings("colsCount"),n=this.isMasonryEnabled()&&t>=2;if(e.$postsContainer.toggleClass("elementor-posts-masonry",n),!n){e.$postsContainer.height("");return}const s=this.getVerticalSpaceBetween();new elementorModules.utils.Masonry({container:e.$postsContainer,items:e.$posts.filter(":visible"),columnsCount:this.getSettings("colsCount"),verticalSpaceBetween:s||0}).run()},run(){setTimeout(this.fitImages,0),this.initMasonry()},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.bindEvents(),this.run()},onWindowResize(){this.fitImages(),this.runMasonry()},onElementChange(){this.fitImages(),setTimeout(this.runMasonry)}})})),xa=b({default:()=>$n}),$n,ri=g((()=>{Ee(),$n=N.extend({getSkinPrefix(){return"cards_"}})})),Da=b({default:()=>ai}),ai,La=g((()=>{Ee(),ai=N.extend({isActive(e){return e.$element.find(".elementor-portfolio").length},getSkinPrefix(){return""},getDefaultSettings(){var e=N.prototype.getDefaultSettings.apply(this,arguments);return e.transitionDuration=450,jQuery.extend(e.classes,{active:"elementor-active",item:"elementor-portfolio-item",ghostItem:"elementor-portfolio-ghost-item"}),e},getDefaultElements(){var e=N.prototype.getDefaultElements.apply(this,arguments);return e.$filterButtons=this.$element.find(".elementor-portfolio__filter"),e},getOffset(e,t,n){var s=this.getSettings(),i=this.elements.$postsContainer.width()/s.colsCount-t;return i+=i/(s.colsCount-1),{start:(t+i)*(e%s.colsCount),top:(n+i)*Math.floor(e/s.colsCount)}},getClosureMethodsNames(){return N.prototype.getClosureMethodsNames.apply(this,arguments).concat(["onFilterButtonClick"])},filterItems(e){var t=this.elements.$posts,n=this.getSettings("classes.active"),s=".elementor-filter-"+e;if(e==="__all"){t.addClass(n);return}t.not(s).removeClass(n),t.filter(s).addClass(n)},removeExtraGhostItems(){var e=this.getSettings(),t=this.elements.$posts.filter(":visible"),n=(e.colsCount-t.length%e.colsCount)%e.colsCount;this.elements.$postsContainer.find("."+e.classes.ghostItem).slice(n).remove()},handleEmptyColumns(){this.removeExtraGhostItems();for(var e=this.getSettings(),t=this.elements.$posts.filter(":visible"),n=this.elements.$postsContainer.find("."+e.classes.ghostItem),s=(e.colsCount-(t.length+n.length)%e.colsCount)%e.colsCount,i=0;i<s;i++)this.elements.$postsContainer.append(jQuery("<div>",{class:e.classes.item+" "+e.classes.ghostItem}))},showItems(e){e.show(),setTimeout(function(){e.css({opacity:1})})},hideItems(e){e.hide()},arrangeGrid(){var e=jQuery,t=this,n=t.getSettings(),s=t.elements.$posts.filter("."+n.classes.active),i=t.elements.$posts.not("."+n.classes.active),o=s.filter(":hidden"),a=i.filter(":visible");if(t.elements.$posts.css("transition-duration",n.transitionDuration+"ms"),t.showItems(o),t.isEdit&&t.fitImages(),t.handleEmptyColumns(),t.isMasonryEnabled()){t.hideItems(a),t.showItems(o),t.handleEmptyColumns(),t.runMasonry();return}a.css({opacity:0,transform:"scale3d(0.2, 0.2, 1)"});const l=t.elements.$posts.filter(":visible"),d=s.add(l),h=s.filter(":visible"),_=l.outerWidth(),C=l.outerHeight();h.each(function(){var w=e(this),B=t.getOffset(d.index(w),_,C),D=t.getOffset(l.index(w),_,C);B.start===D.start&&B.top===D.top||(D.start-=B.start,D.top-=B.top,elementorFrontend.config.is_rtl&&(D.start*=-1),w.css({transitionDuration:"",transform:"translate3d("+D.start+"px, "+D.top+"px, 0)"}))}),setTimeout(function(){s.each(function(){var w=e(this),B=t.getOffset(d.index(w),_,C),D=t.getOffset(s.index(w),_,C);w.css({transitionDuration:n.transitionDuration+"ms"}),D.start-=B.start,D.top-=B.top,elementorFrontend.config.is_rtl&&(D.start*=-1),setTimeout(function(){w.css("transform","translate3d("+D.start+"px, "+D.top+"px, 0)")})})}),setTimeout(function(){t.hideItems(a),s.css({transitionDuration:"",transform:"translate3d(0px, 0px, 0px)"}),t.handleEmptyColumns()},n.transitionDuration)},activeFilterButton(e){var t=this.getSettings("classes.active"),n=this.elements.$filterButtons,s=n.filter('[data-filter="'+e+'"]');n.removeClass(t),s.addClass(t)},setFilter(e){this.activeFilterButton(e),this.filterItems(e),this.arrangeGrid()},refreshGrid(){this.setColsCountSettings(),this.arrangeGrid()},bindEvents(){N.prototype.bindEvents.apply(this,arguments),this.elements.$filterButtons.on("click",this.onFilterButtonClick)},isMasonryEnabled(){return!!this.getElementSettings("masonry")},run(){N.prototype.run.apply(this,arguments),this.setColsCountSettings(),this.setFilter("__all"),this.handleEmptyColumns()},onFilterButtonClick(e){this.setFilter(jQuery(e.currentTarget).data("filter"))},onWindowResize(){N.prototype.onWindowResize.apply(this,arguments),this.refreshGrid()},onElementChange(e){N.prototype.onElementChange.apply(this,arguments),e==="classic_item_ratio"&&this.refreshGrid()}})})),Ma=(at=class extends elementorModules.Module{constructor(){super(),["classic","full_content","cards"].forEach(t=>{elementorFrontend.elementsHandler.attachHandler("posts",()=>v(()=>Promise.resolve().then(()=>(Tn(),ka)),void 0),t)}),elementorFrontend.elementsHandler.attachHandler("posts",()=>v(()=>Promise.resolve().then(()=>(Ee(),oi)),void 0),"classic"),elementorFrontend.elementsHandler.attachHandler("posts",()=>v(()=>Promise.resolve().then(()=>(Ee(),oi)),void 0),"full_content"),elementorFrontend.elementsHandler.attachHandler("posts",()=>v(()=>Promise.resolve().then(()=>(ri(),xa)),void 0),"cards"),elementorFrontend.elementsHandler.attachHandler("portfolio",()=>v(()=>Promise.resolve().then(()=>(La(),Da)),void 0))}},f(at,"default"),at);function Pa(e){const t=new URL(e),n=t.hostname,s=new URLSearchParams(t.search);return["u"].forEach(i=>
1788{const o=s.get(i);if(o)try{new URL(o).hostname!==n&&s.delete(i)}catch(a){s.delete(i)}}),t.search=s.toString(),t.toString()}var Oa=g((()=>{})),Ba=b({default:()=>li}),li,Ha=g((()=>{Oa(),he(),li=elementorModules.frontend.handlers.Base.extend({onInit(){var e=arguments,t=this;return ee(function*(){if(!t.isActive())return;elementorModules.frontend.handlers.Base.prototype.onInit.apply(t,e);const n=t.getElementSettings(),s=t.getSettings("classes"),i=n.share_url&&n.share_url.url,o={classPrefix:s.shareLinkPrefix};i?o.url=n.share_url.url:(o.url=Pa(location.href),o.title=elementorFrontend.config.post.title,o.text=elementorFrontend.config.post.excerpt,o.image=elementorFrontend.config.post.featuredImage),!window.ShareLink&&elementorFrontend.utils.assetsLoader&&(yield elementorFrontend.utils.assetsLoader.load("script","share-link")),t.elements.$shareButton.shareLink&&t.elements.$shareButton.shareLink(o)})()},getDefaultSettings(){return{selectors:{shareButton:".elementor-share-btn"},classes:{shareLinkPrefix:"elementor-share-btn_"}}},getDefaultElements(){var e=this.getSettings("selectors");return{$shareButton:this.$element.find(e.shareButton)}},isActive(){return!elementorFrontend.isEditMode()}})})),Ra=(lt=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("share-buttons",()=>v(()=>Promise.resolve().then(()=>(Ha(),Ba)),void 0))}},f(lt,"default"),lt),Wa=b({default:()=>ci}),ci,Na=g((()=>{he(),ci=class extends elementorModules.frontend.handlers.SwiperBase{getDefaultSettings(){return{selectors:{slider:".elementor-slides-wrapper",slide:".swiper-slide",slideInnerContents:".swiper-slide-contents",activeSlide:".swiper-slide-active",activeDuplicate:".swiper-slide-duplicate-active"},classes:{animated:"animated",kenBurnsActive:"elementor-ken-burns--active",slideBackground:"swiper-slide-bg"},attributes:{dataSliderOptions:"slider_options",dataAnimation:"animation"}}}getDefaultElements(){const e=this.getSettings("selectors"),t={$swiperContainer:this.$element.find(e.slider)};return t.$slides=t.$swiperContainer.find(e.slide),t}getSwiperOptions(){const e=this.getElementSettings(),t={autoplay:this.getAutoplayConfig(),grabCursor:!0,initialSlide:this.getInitialSlide(),slidesPerView:1,slidesPerGroup:1,loop:e.infinite==="yes",speed:e.transition_speed,effect:e.transition,observeParents:!0,observer:!0,handleElementorBreakpoints:!0,on:{slideChange:()=>{this.handleKenBurns()}}},n=e.navigation==="arrows"||e.navigation==="both",s=e.navigation==="dots"||e.navigation==="both";return n&&(t.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),s&&(t.pagination={el:".swiper-pagination",type:"bullets",clickable:!0}),t.loop===!0&&(t.loopedSlides=this.getSlidesCount()),t.effect==="fade"&&(t.fadeEffect={crossFade:!0}),t}getAutoplayConfig(){const e=this.getElementSettings();return e.autoplay!=="yes"?!1:{stopOnLastSlide:!0,delay:e.autoplay_speed,disableOnInteraction:e.pause_on_interaction==="yes"}}initSingleSlideAnimations(){const e=this.getSettings(),t=this.elements.$swiperContainer.data(e.attributes.dataAnimation);this.elements.$swiperContainer.find("."+e.classes.slideBackground).addClass(e.classes.kenBurnsActive),t&&this.elements.$swiperContainer.find(e.selectors.slideInnerContents).addClass(e.classes.animated+" "+t)}initSlider(){var e=this;return ee(function*(){const t=e.elements.$swiperContainer;if(!t.length||1>=e.getSlidesCount())return;const n=elementorFrontend.utils.swiper;e.swiper=yield new n(t,e.getSwiperOptions()),t.data("swiper",e.swiper),e.handleKenBurns(),e.getElementSettings().pause_on_hover&&e.togglePauseOnHover(!0);const s=e.getSettings(),i=t.data(s.attributes.dataAnimation);i&&(e.swiper.on("slideChangeTransitionStart",function(){t.find(s.selectors.slideInnerContents).removeClass(s.classes.animated+" "+i).hide()}),e.swiper.on("slideChangeTransitionEnd",function(){t.find(s.selectors.slideInnerContents).show().addClass(s.classes.animated+" "+i)}))})()}onInit(){if(elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),2>this.getSlidesCount()){this.initSingleSlideAnimations();return}this.initSlider()}getChangeableProperties(){return{pause_on_hover:"pauseOnHover",pause_on_interaction:"disableOnInteraction",autoplay_speed:"delay",transition_speed:"speed"}}updateSwiperOption(e){if(e.indexOf("width")===0){this.swiper.update(
1788);return}const t=this.getElementSettings(),n=t[e];let s=this.getChangeableProperties()[e],i=n;switch(e){case"autoplay_speed":s="autoplay",i={delay:n,disableOnInteraction:t.pause_on_interaction==="yes"};break;case"pause_on_hover":this.togglePauseOnHover(n==="yes");break;case"pause_on_interaction":i=n==="yes";break}e!=="pause_on_hover"&&(this.swiper.params[s]=i),this.swiper.update()}onElementChange(e){if(1>=this.getSlidesCount())return;const t=this.getChangeableProperties();Object.prototype.hasOwnProperty.call(t,e)&&(this.updateSwiperOption(e),this.swiper.autoplay.start())}onEditSettingsChange(e){1>=this.getSlidesCount()||e==="activeItemIndex"&&(this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1),this.swiper.autoplay.stop())}}})),za=(ct=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("slides",()=>v(()=>Promise.resolve().then(()=>(Na(),Wa)),void 0))}},f(ct,"default"),ct),qt=b({default:()=>di}),di,Vt=g((()=>{di=class extends elementorModules.frontend.handlers.Base{getConfig(){return elementorProFrontend.config.facebook_sdk}setConfig(e,t){elementorProFrontend.config.facebook_sdk[e]=t}parse(){FB.XFBML.parse(this.$element[0])}loadSDK(){const e=this.getConfig();e.isLoading||e.isLoaded||(this.setConfig("isLoading",!0),jQuery.ajax({url:"https://connect.facebook.net/"+e.lang+"/sdk.js",dataType:"script",cache:!0,success:()=>{FB.init({appId:e.app_id,version:"v2.10",xfbml:!1}),this.setConfig("isLoaded",!0),this.setConfig("isLoading",!1),elementorFrontend.elements.$document.trigger("fb:sdk:loaded")}}))}onInit(...e){super.onInit(...e),this.loadSDK(),this.getConfig().isLoaded?this.parse():elementorFrontend.elements.$document.on("fb:sdk:loaded",()=>this.parse())}}})),ja=(dt=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("facebook-button",()=>v(()=>Promise.resolve().then(()=>(Vt(),qt)),void 0)),elementorFrontend.elementsHandler.attachHandler("facebook-comments",()=>v(()=>Promise.resolve().then(()=>(Vt(),qt)),void 0)),elementorFrontend.elementsHandler.attachHandler("facebook-embed",()=>v(()=>Promise.resolve().then(()=>(Vt(),qt)),void 0)),elementorFrontend.elementsHandler.attachHandler("facebook-page",()=>v(()=>Promise.resolve().then(()=>(Vt(),qt)),void 0))}},f(dt,"default"),dt);function ui(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function qa(e){if(Array.isArray(e))return e}function Va(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var s,i,o,a,l=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(s=o.call(n)).done)&&(l.push(s.value),l.length!==t);d=!0);}catch(_){h=!0,i=_}finally{try{if(!d&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(h)throw i}}return l}}function Ua(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1789In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ga(e,t){return qa(e)||Va(e,t)||Qa(e,t)||Ua()}function Qa(e,t){if(e){if(typeof e=="string")return ui(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ui(e,t):void 0}}function x(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];return Ut(e,t,s)}}function Ka(e){return function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return Gt(e,n)}}function y(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e;if(Fn&&Fn(e,null),!ne(t))return e;let s=t.length;for(;s--;){let i=t[s];if(typeof i=="string"){const o=n(i);o!==i&&(hi(t)||(t[s]=o),i=o)}e[i]=!0}return e}function Ya(e){for(let t=0;t<e.length;t++)L(e,t)||(e[t]=null);return e}function R(e){const t=pe(null);for(const s of An(e)){var n=Ga(s,2);const i=n[0],o=n[1];L(e,i)&&(ne(o)?t[i]=Ya(o):o&&typeof o=="object"&&o.constructor===Object?t[i]=R(o):t[i]=o)}return t}function Xa(e){switch(typeof e){case"string":return e;case"number":return bi(e);case"boolean":return Si(e);case"bigint":return Ln?Ln(e):"0";case"symbol":return Mn?Mn(e):"Symbol()";case"undefined":return Fe(e);case"function":case"object":{if(e===null)return Fe(e);const t=e,n=Y(t,"toString");if(typeof n=="function"){const s=n(t);return typeof s=="string"?s:Fe(s)}return Fe(e)}default:return Fe(e)}}function Y(e,t){for(;e!==null;){const s=pi(e,t);if(s){if(s.get)return x(s.get);if(typeof s.value=="function")return x(s.value)}e=gi(e)}function n(){return null}return n}function Ja(e){try{return O(e,""),!0}catch(t){return!1}}function mi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pi();const t=m=>mi(m);if(t.version="3.4.11",t.removed=[],!e||!e.document||e.document.nodeType!==U.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const s=n,i=s.currentScript;e.DocumentFragment;const o=e.HTMLTemplateElement,a=e.Node,l=e.Element,d=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,_=e.trustedTypes,C=l.prototype,w=Y(C,"cloneNode"),B=Y(C,"remove"),D=Y(C,"nextSibling"),G=Y(C,"childNodes"),X=Y(C,"parentNode"),ie=Y(C,"shadowRoot"),be=Y(C,"attributes"),H=a&&a.prototype?Y(a.prototype,"nodeType"):null,Q=a&&a.prototype?Y(a.prototype,"nodeName"):null;if(typeof o=="function"){const m=n.createElement("template");m.content&&m.content.ownerDocument&&(n=m.content.ownerDocument)}let z,Se="",ts,Ho=!1,Ht=0;const Ro=function(){if(Ht>0)throw le('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},yt=function(r){Ro(),Ht++;try{return z.createHTML(r)}finally{Ht--}},Ac=function(r){Ro(),Ht++;try{return z.createScriptURL(r)}finally{Ht--}},Fc=function(){return Ho||(ts=Oi(_,i),Ho=!0),ts},sn=n,ns=sn.implementation,Wo=sn.createNodeIterator,Ic=sn.createDocumentFragment,kc=sn.getElementsByTagName,xc=s.importNode;let k=Nn();t.isSupported=typeof An=="function"&&typeof X=="function"&&ns&&ns.createHTMLDocument!==void 0;const Dc=Ci,Lc=Ei,Mc=Ti,Pc=$i,Oc=Ai,Bc=Fi,No=Ii,Hc=xi;let zo=Rn,$=null;const jo=y({}
vendor: 6,513 bytes, line 1789
1789,[...Pn,...Kt,...Yt,...Xt,...On]);let A=null;const qo=y({},[...Bn,...Jt,...Hn,...xt]);let F=Object.seal(pe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Rt=null,Vo=null;const de=Object.seal(pe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Uo=!0,ss=!0,Go=!1,Qo=!0,ue=!1,Wt=!0,ye=!1,is=!1,os=null,rs=null,as=!1,wt=!1,on=!1,rn=!1,Ko=!0,Yo=!1;const Xo="user-content-";let ls=!0,cs=!1,Ct={},J=null;const ds=y({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Jo=null;const Zo=y({},["audio","video","img","source","image","track"]);let us=null;const er=y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),an="http://www.w3.org/1998/Math/MathML",ln="http://www.w3.org/2000/svg",Z="http://www.w3.org/1999/xhtml";let Et=Z,ms=!1,hs=null;const Rc=y({},[an,ln,Z],Qt),tr=M(["mi","mo","mn","ms","mtext"]);let gs=y({},tr);const nr=M(["annotation-xml"]);let ps=y({},nr);const Wc=y({},["title","style","font","a","script"]);let Nt=null;const Nc=["application/xhtml+xml","text/html"],zc="text/html";let I=null,Tt=null;const jc=n.createElement("form"),sr=function(r){return r instanceof RegExp||r instanceof Function},fs=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Tt&&Tt===r)return;(!r||typeof r!="object")&&(r={}),r=R(r),Nt=Nc.indexOf(r.PARSER_MEDIA_TYPE)===-1?zc:r.PARSER_MEDIA_TYPE,I=Nt==="application/xhtml+xml"?Qt:$e,$=se(r,"ALLOWED_TAGS",jo,{transform:I}),A=se(r,"ALLOWED_ATTR",qo,{transform:I}),hs=se(r,"ALLOWED_NAMESPACES",Rc,{transform:Qt}),us=se(r,"ADD_URI_SAFE_ATTR",er,{transform:I,base:er}),Jo=se(r,"ADD_DATA_URI_TAGS",Zo,{transform:I,base:Zo}),J=se(r,"FORBID_CONTENTS",ds,{transform:I}),Rt=se(r,"FORBID_TAGS",R({}),{transform:I}),Vo=se(r,"FORBID_ATTR",R({}),{transform:I}),Ct=L(r,"USE_PROFILES")?r.USE_PROFILES&&typeof r.USE_PROFILES=="object"?R(r.USE_PROFILES):r.USE_PROFILES:!1,Uo=r.ALLOW_ARIA_ATTR!==!1,ss=r.ALLOW_DATA_ATTR!==!1,Go=r.ALLOW_UNKNOWN_PROTOCOLS||!1,Qo=r.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ue=r.SAFE_FOR_TEMPLATES||!1,Wt=r.SAFE_FOR_XML!==!1,ye=r.WHOLE_DOCUMENT||!1,wt=r.RETURN_DOM||!1,on=r.RETURN_DOM_FRAGMENT||!1,rn=r.RETURN_TRUSTED_TYPE||!1,as=r.FORCE_BODY||!1,Ko=r.SANITIZE_DOM!==!1,Yo=r.SANITIZE_NAMED_PROPS||!1,ls=r.KEEP_CONTENT!==!1,cs=r.IN_PLACE||!1,zo=Ja(r.ALLOWED_URI_REGEXP)?r.ALLOWED_URI_REGEXP:Rn,Et=typeof r.NAMESPACE=="string"?r.NAMESPACE:Z,gs=L(r,"MATHML_TEXT_INTEGRATION_POINTS")&&r.MATHML_TEXT_INTEGRATION_POINTS&&typeof r.MATHML_TEXT_INTEGRATION_POINTS=="object"?R(r.MATHML_TEXT_INTEGRATION_POINTS):y({},tr),ps=L(r,"HTML_INTEGRATION_POINTS")&&r.HTML_INTEGRATION_POINTS&&typeof r.HTML_INTEGRATION_POINTS=="object"?R(r.HTML_INTEGRATION_POINTS):y({},nr);const c=L(r,"CUSTOM_ELEMENT_HANDLING")&&r.CUSTOM_ELEMENT_HANDLING&&typeof r.CUSTOM_ELEMENT_HANDLING=="object"?R(r.CUSTOM_ELEMENT_HANDLING):pe(null);if(F=pe(null),L(c,"tagNameCheck")&&sr(c.tagNameCheck)&&(F.tagNameCheck=c.tagNameCheck),L(c,"attributeNameCheck")&&sr(c.attributeNameCheck)&&(F.attributeNameCheck=c.attributeNameCheck),L(c,"allowCustomizedBuiltInElements")&&typeof c.allowCustomizedBuiltInElements=="boolean"&&(F.allowCustomizedBuiltInElements=c.allowCustomizedBuiltInElements),P(F),ue&&(ss=!1),on&&(wt=!0),Ct&&($=y({},On),A=pe(null),Ct.html===!0&&(y($,Pn),y(A,Bn)),Ct.svg===!0&&(y($,Kt),y(A,Jt),y(A,xt)),Ct.svgFilters===!0&&(y($,Yt),y(A,Jt),y(A,xt)),Ct.mathMl===!0&&(y($,Xt),y(A,Hn),y(A,xt))),de.tagCheck=null,de.attributeCheck=null,L(r,"ADD_TAGS")&&(typeof r.ADD_TAGS=="function"?de.tagCheck=r.ADD_TAGS:ne(r.ADD_TAGS)&&($===jo&&($=R($)),y($,r.ADD_TAGS,I))),L(r,"ADD_ATTR")&&(typeof r.ADD_ATTR=="function"?de.attributeCheck=r.ADD_ATTR:ne(r.ADD_ATTR)&&(A===qo&&(A=R(A)),y(A,r.ADD_ATTR,I))),L(r,"ADD_URI_SAFE_ATTR")&&ne(r.ADD_URI_SAFE_ATTR)&&y(us,r.ADD_URI_SAFE_ATTR,I),L(r,"FORBID_CONTENTS")&&ne(r.FORBID_CONTENTS)&&(J===ds&&(J=R(J)),y(J,r.FORBID_CONTENTS,I)),L(r,"ADD_FORBID_CONTENTS")&&ne(r.ADD_FORBID_CONTENTS)&&(J===ds&&(J=R(J)),y(J,r.ADD_FORBID_CONTENTS,I)),ls&&($["#text"]=!0),ye&&y($,["html","head","body"]),$.table&&(y($,["tbody"]),delete Rt.tbody),r.TRUSTED_TYPES_POLICY){if(typeof r.TRUSTED_TYPES_POLICY.createHTML!="function")throw le('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof r.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw le('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const u=z;z=r.TRUSTED_TYPES_POLICY;try{Se=yt("")}catch(p){throw z=u,p}}else r.TRUSTED_TYPES_POLICY===null?(z=void 0,Se=""):(z===void 0&&(z=Fc()),z&&typeof Se=="string"&&(Se=yt("")));M&&M(r),Tt=r},ir=y({},[...Kt,...Yt,...yi]),or=y({},[...Xt,...wi]),qc=function(r,c,u){return c.namespaceURI===Z?r==="svg":c.namespaceURI===an?r==="svg"&&(u==="annotation-xml"||gs[u]):!!ir[r]},Vc=function(r,c,u){return c.namespaceURI===Z?r==="math":c.namespaceURI===ln?r==="math"&&ps[u]:!!or[r]},Uc=function(r,c,u){return c.namespaceURI===ln&&!ps[u]||c.namespaceURI===an&&!gs[u]?!1:!or[r]&&(Wc[r]||!ir[r])},Gc=function(r){let c=X(r);(!c||!c.tagName)&&(c={namespaceURI:Et,tagName:"template"});const u=$e(r.tagName),p=$e(c.tagName);return hs[r.namespaceURI]?r.namespaceURI===ln?qc(u,c,p):r.namespaceURI===an?Vc(u,c,p):r.namespaceURI===Z?Uc(u,c,p):!!(Nt==="application/xhtml+xml"&&hs[r.namespaceURI]):!1},me=function(r){fe(t.removed,{element:r});try{X(r).removeChild(r)}catch(c){if(B(r),!X(r))throw le("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},rr=function(r){const c=G(r);if(c){const p=[];Te(c,S=>{fe(p,S)}),Te(p,S=>{try{B(S)}catch(E){}})}const u=be(r);if(u)for(let p=u.length-1;p>=0;--p){const S=u[p],E=S&&S.name;if(typeof E=="string")try{r.removeAttribute(E)}catch(T){}}},we=function(r,c){try{fe(t.removed,{attribute:c.getAttributeNode(r),from:c})}catch(u){fe(t.removed,{attribute:null,from:c})}if(c.removeAttribute(r),r==="is")if(wt||on)try{me(c)}catch(u){}else try{c.setAttribute(r,"")}catch(u){}},Qc=function(r){const c=be(r);if(c)for(let u=c.length-1;u>=0;--u){const p=c[u],S=p&&p.name;
vendor: 5,694 bytes, line 1789
1789if(!(typeof S!="string"||A[I(S)]))try{r.removeAttribute(S)}catch(E){}}},Kc=function(r){const c=[r];for(;c.length>0;){const u=c.pop();(H?H(u):u.nodeType)===U.element&&Qc(u);const p=G(u);if(p)for(let S=p.length-1;S>=0;--S)c.push(p[S])}},ar=function(r){let c=null,u=null;if(as)r="<remove></remove>"+r;else{const E=xn(r,/^[\r\n\t ]+/);u=E&&E[0]}Nt==="application/xhtml+xml"&&Et===Z&&(r='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+r+"</body></html>");const p=z?yt(r):r;if(Et===Z)try{c=new h().parseFromString(p,Nt)}catch(E){}if(!c||!c.documentElement){c=ns.createDocument(Et,"template",null);try{c.documentElement.innerHTML=ms?Se:p}catch(E){}}const S=c.body||c.documentElement;return r&&u&&S.insertBefore(n.createTextNode(u),S.childNodes[0]||null),Et===Z?kc.call(c,ye?"html":"body")[0]:ye?c.documentElement:S},lr=function(r){return Wo.call(r.ownerDocument||r,r,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},cn=function(r){return r=Ae(r,Dc," "),r=Ae(r,Lc," "),r=Ae(r,Mc," "),r},vs=function(r){var c;r.normalize();const u=Wo.call(r.ownerDocument||r,r,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let p=u.nextNode();for(;p;)p.data=cn(p.data),p=u.nextNode();const S=(c=r.querySelectorAll)===null||c===void 0?void 0:c.call(r,"template");S&&Te(S,E=>{$t(E.content)&&vs(E.content)})},dn=function(r){const c=Q?Q(r):null;return typeof c!="string"||I(c)!=="form"?!1:typeof r.nodeName!="string"||typeof r.textContent!="string"||typeof r.removeChild!="function"||r.attributes!==be(r)||typeof r.removeAttribute!="function"||typeof r.setAttribute!="function"||typeof r.namespaceURI!="string"||typeof r.insertBefore!="function"||typeof r.hasChildNodes!="function"||r.nodeType!==H(r)||r.childNodes!==G(r)},$t=function(r){if(!H||typeof r!="object"||r===null)return!1;try{return H(r)===U.documentFragment}catch(c){return!1}},zt=function(r){if(!H||typeof r!="object"||r===null)return!1;try{return typeof H(r)=="number"}catch(c){return!1}};function oe(m,r,c){m.length!==0&&Te(m,u=>{u.call(t,r,c,Tt)})}const Yc=function(r,c){return!!(Wt&&r.hasChildNodes()&&!zt(r.firstElementChild)&&O(Wn,r.textContent)&&O(Wn,r.innerHTML)||Wt&&r.namespaceURI===Z&&c==="style"&&zt(r.firstElementChild)||r.nodeType===U.processingInstruction||Wt&&r.nodeType===U.comment&&O(Di,r.data))},Xc=function(r,c){if(!Rt[c]&&ur(c)&&(F.tagNameCheck instanceof RegExp&&O(F.tagNameCheck,c)||F.tagNameCheck instanceof Function&&F.tagNameCheck(c)))return!1;if(ls&&!J[c]){const u=X(r),p=G(r);if(p&&u){const S=p.length;for(let E=S-1;E>=0;--E){const T=cs?p[E]:w(p[E],!0);u.insertBefore(T,D(r))}}}return me(r),!0},cr=function(r){if(oe(k.beforeSanitizeElements,r,null),dn(r))return me(r),!0;const c=I(Q?Q(r):r.nodeName);if(oe(k.uponSanitizeElement,r,{tagName:c,allowedTags:$}),Yc(r,c))return me(r),!0;if(Rt[c]||!(de.tagCheck instanceof Function&&de.tagCheck(c))&&!$[c])return Xc(r,c);if((H?H(r):r.nodeType)===U.element&&!Gc(r)||(c==="noscript"||c==="noembed"||c==="noframes")&&O(Li,r.innerHTML))return me(r),!0;if(ue&&r.nodeType===U.text){const u=cn(r.textContent);r.textContent!==u&&(fe(t.removed,{element:r.cloneNode()}),r.textContent=u)}return oe(k.afterSanitizeElements,r,null),!1},dr=function(r,c,u){if(Vo[c]||Ko&&(c==="id"||c==="name")&&(u in n||u in jc))return!1;const p=A[c]||de.attributeCheck instanceof Function&&de.attributeCheck(c,r);if(!(ss&&O(Pc,c))){if(!(Uo&&O(Oc,c))){if(p){if(!us[c]){if(!O(zo,Ae(u,No,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&r!=="script"&&Dn(u,"data:")===0&&Jo[r])){if(!(Go&&!O(Bc,Ae(u,No,"")))){if(u)return!1}}}}}else if(!(ur(r)&&(F.tagNameCheck instanceof RegExp&&O(F.tagNameCheck,r)||F.tagNameCheck instanceof Function&&F.tagNameCheck(r))&&(F.attributeNameCheck instanceof RegExp&&O(F.attributeNameCheck,c)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(c,r))||c==="is"&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&O(F.tagNameCheck,u)||F.tagNameCheck instanceof Function&&F.tagNameCheck(u))))return!1}}return!0},Jc=y({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ur=function(r){return!Jc[$e(r)]&&O(Hc,r)},Zc=function(r,c,u,p){if(z&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!u)switch(_.getAttributeType(r,c)){case"TrustedHTML":return yt(p);case"TrustedScriptURL":return Ac(p)}return p},ed=function(r,c,u,p){try{u?r.setAttributeNS(u,c,p):r.setAttribute(c,p),dn(r)?me(r):kn(t.removed)}catch(S){we(c,r)}},mr=function(r){oe(k.beforeSanitizeAttributes,r,null);const c=r.attributes;if(!c||dn(r))return;const u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0};let p=c.length;const S=I(r.nodeName);for(;p--;){const E=c[p],T=E.name,j=E.namespaceURI,re=E.value,K=I(T),bs=re;let W=T==="value"?bs:_i(bs);if(u.attrName=K,u.attrValue=W,u.keepAttr=!0,u.forceKeepAttr=void 0,oe(k.uponSanitizeAttribute,r,u),W=u.attrValue,Yo&&(K==="id"||K==="name")&&Dn(W,Xo)!==0&&(we(T,r),W=Xo+W),Wt&&O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,W)){we(T,r);continue}if(K==="attributename"&&xn(W,"href")){we(T,r);continue}if(!u.forceKeepAttr){if(!u.keepAttr){we(T,r);continue}if(!Qo&&O(Mi,W)){we(T,r);continue}if(ue&&(W=cn(W)),!dr(S,K,W)){we(T,r);continue}W=Zc(S,K,j,W),W!==bs&&ed(r,T,j,W)}}oe(k.afterSanitizeAttributes,r,null)},un=function(r){let c=null;const u=lr(r);for(oe(k.beforeSanitizeShadowDOM,r,null);c=u.nextNode();)if(oe(k.uponSanitizeShadowNode,c,null),cr(c),mr(c),$t(c.content)&&un(c.content),(H?H(c):c.nodeType)===U.element){const p=ie(c);$t(p)&&(_s(p),un(p))}oe(k.afterSanitizeShadowDOM,r,null)}
vendor: 7,413 bytes, lines 1789-1790
1789,_s=function(r){const c=[{node:r,shadow:null}];for(;c.length>0;){const u=c.pop();if(u.shadow){un(u.shadow);continue}const p=u.node,S=(H?H(p):p.nodeType)===U.element,E=G(p);if(E)for(let T=E.length-1;T>=0;--T)c.push({node:E[T],shadow:null});if(S){const T=Q?Q(p):null;if(typeof T=="string"&&I(T)==="template"){const j=p.content;$t(j)&&c.push({node:j,shadow:null})}}if(S){const T=ie(p);$t(T)&&c.push({node:null,shadow:T},{node:T,shadow:null})}}};return t.sanitize=function(m){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,u=null,p=null,S=null;if(ms=!m,ms&&(m="<!-->"),typeof m!="string"&&!zt(m)&&(m=Xa(m),typeof m!="string"))throw le("dirty is not a string, aborting");if(!t.isSupported)return m;is?($=os,A=rs):fs(r),(k.uponSanitizeElement.length>0||k.uponSanitizeAttribute.length>0)&&($=R($)),k.uponSanitizeAttribute.length>0&&(A=R(A)),t.removed=[];const E=cs&&typeof m!="string"&&zt(m);if(E){const re=Q?Q(m):m.nodeName;if(typeof re=="string"){const K=I(re);if(!$[K]||Rt[K])throw le("root node is forbidden and cannot be sanitized in-place")}if(dn(m))throw le("root node is clobbered and cannot be sanitized in-place");try{_s(m)}catch(K){throw rr(m),K}}else if(zt(m))c=ar("<!---->"),u=c.ownerDocument.importNode(m,!0),u.nodeType===U.element&&u.nodeName==="BODY"||u.nodeName==="HTML"?c=u:c.appendChild(u),_s(u);else{if(!wt&&!ue&&!ye&&m.indexOf("<")===-1)return z&&rn?yt(m):m;if(c=ar(m),!c)return wt?null:rn?Se:""}c&&as&&me(c.firstChild);const T=lr(E?m:c);try{for(;p=T.nextNode();)cr(p),mr(p),$t(p.content)&&un(p.content)}catch(re){throw E&&rr(m),re}if(E)return Te(t.removed,re=>{re.element&&Kc(re.element)}),ue&&vs(m),m;if(wt){if(ue&&vs(c),on)for(S=Ic.call(c.ownerDocument);c.firstChild;)S.appendChild(c.firstChild);else S=c;return(A.shadowroot||A.shadowrootmode)&&(S=xc.call(s,S,!0)),S}let j=ye?c.outerHTML:c.innerHTML;return ye&&$["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&O(ki,c.ownerDocument.doctype.name)&&(j="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
1790`+j),ue&&(j=cn(j)),z&&rn?yt(j):j},t.setConfig=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fs(m),is=!0,os=$,rs=A},t.clearConfig=function(){Tt=null,is=!1,os=null,rs=null,z=ts,Se=""},t.isValidAttribute=function(m,r,c){Tt||fs({});const u=I(m),p=I(r);return dr(u,p,c)},t.addHook=function(m,r){typeof r=="function"&&L(k,m)&&fe(k[m],r)},t.removeHook=function(m,r){if(L(k,m)){if(r!==void 0){const c=fi(k[m],r);return c===-1?void 0:vi(k[m],c,1)[0]}return kn(k[m])}},t.removeHooks=function(m){L(k,m)&&(k[m]=[])},t.removeAllHooks=function(){k=Nn()},t}var An,Fn,hi,gi,pi,M,P,pe,In,Ut,Gt,Te,fi,kn,fe,vi,ne,$e,Qt,xn,Ae,Dn,_i,bi,Si,Ln,Mn,L,Fe,O,le,Pn,Kt,Yt,yi,Xt,wi,On,Bn,Jt,Hn,xt,Ci,Ei,Ti,$i,Ai,Rn,Fi,Ii,ki,xi,Wn,Di,Li,Mi,U,Pi,Oi,Nn,se,zn,Za=g((()=>{An=Object.entries,Fn=Object.setPrototypeOf,hi=Object.isFrozen,gi=Object.getPrototypeOf,pi=Object.getOwnPropertyDescriptor,M=Object.freeze,P=Object.seal,pe=Object.create,In=typeof Reflect!="undefined"&&Reflect,Ut=In.apply,Gt=In.construct,M||(M=function(t){return t}),P||(P=function(t){return t}),Ut||(Ut=function(t,n){for(var s=arguments.length,i=new Array(s>2?s-2:0),o=2;o<s;o++)i[o-2]=arguments[o];return t.apply(n,i)}),Gt||(Gt=function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];return new t(...s)}),Te=x(Array.prototype.forEach),fi=x(Array.prototype.lastIndexOf),kn=x(Array.prototype.pop),fe=x(Array.prototype.push),vi=x(Array.prototype.splice),ne=Array.isArray,$e=x(String.prototype.toLowerCase),Qt=x(String.prototype.toString),xn=x(String.prototype.match),Ae=x(String.prototype.replace),Dn=x(String.prototype.indexOf),_i=x(String.prototype.trim),bi=x(Number.prototype.toString),Si=x(Boolean.prototype.toString),Ln=typeof BigInt=="undefined"?null:x(BigInt.prototype.toString),Mn=typeof Symbol=="undefined"?null:x(Symbol.prototype.toString),L=x(Object.prototype.hasOwnProperty),Fe=x(Object.prototype.toString),O=x(RegExp.prototype.test),le=Ka(TypeError),Pn=M(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Kt=M(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Yt=M(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yi=M(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Xt=M(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),wi=M(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),On=M(["#text"]),Bn=M(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1790spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Jt=M(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Hn=M(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xt=M(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ci=P(/{{[\w\W]*|^[\w\W]*}}/g),Ei=P(/<%[\w\W]*|^[\w\W]*%>/g),Ti=P(/\${[\w\W]*/g),$i=P(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ai=P(/^aria-[\-\w]+$/),Rn=P(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fi=P(/^(?:\w+script|data):/i),Ii=P(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ki=P(/^html$/i),xi=P(/^[a-z][.\w]*(-[.\w]+)+$/i),Wn=P(/<[/\w!]/g),Di=P(/<[/\w]/g),Li=P(/<\/no(script|embed|frames)/i),Mi=P(/\/>/i),U={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Pi=function(){return typeof window=="undefined"?null:window},Oi=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let s=null;
1790const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(s=n.getAttribute(i));const o="dompurify"+(s?"#"+s:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch(a){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Nn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},se=function(t,n,s,i){return L(t,n)&&ne(t[n])?y(i.base?R(i.base):{},t[n],i.transform):s},zn=mi()})),el=b({default:()=>Bi}),Bi,tl=g((()=>{Za(),Bi=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{widgetContainer:".elementor-widget-container",postContentContainer:'.elementor:not([data-elementor-type="header"]):not([data-elementor-type="footer"]):not([data-elementor-type="popup"])',expandButton:".elementor-toc__toggle-button--expand",collapseButton:".elementor-toc__toggle-button--collapse",body:".elementor-toc__body",headerTitle:".elementor-toc__header-title"},classes:{anchor:"elementor-menu-anchor",listWrapper:"elementor-toc__list-wrapper",listItem:"elementor-toc__list-item",listTextWrapper:"elementor-toc__list-item-text-wrapper",firstLevelListItem:"elementor-toc__top-level",listItemText:"elementor-toc__list-item-text",activeItem:"elementor-item-active",headingAnchor:"elementor-toc__heading-anchor",collapsed:"elementor-toc--collapsed"},listWrapperTag:this.getElementSettings().marker_view==="numbers"?"ol":"ul"}}getDefaultElements(){const e=this.getSettings();let t=this.$element.find(e.selectors.widgetContainer);return t.length===0&&(t=this.$element),{$pageContainer:this.getContainer(),$widgetContainer:t,$expandButton:this.$element.find(e.selectors.expandButton),$collapseButton:this.$element.find(e.selectors.collapseButton),$tocBody:this.$element.find(e.selectors.body),$listItems:this.$element.find("."+e.classes.listItem)}}getContainer(){const e=this.getElementSettings();if(e.container)return jQuery(zn.sanitize(e.container));const t=this.$element.parents(".elementor");if(t.attr("data-elementor-type")==="popup")return t;const n=this.getSettings();return jQuery(n.selectors.postContentContainer)}bindEvents(){const e=this.getElementSettings();e.minimize_box&&(this.elements.$expandButton.on("click",()=>this.expandBox()).on("keyup",t=>this.triggerClickOnEnterSpace(t)),this.elements.$collapseButton.on("click",()=>this.collapseBox()).on("keyup",t=>this.triggerClickOnEnterSpace(t))),e.collapse_subitems&&this.elements.$listItems.on("hover",t=>jQuery(t.target).slideToggle())}getHeadings(){const e=this.getElementSettings(),t=e.headings_by_tags.join(","),n=this.getSettings("selectors"),s=e.exclude_headings_by_selector;return this.elements.$pageContainer.find(t).not(n.headerTitle).filter((i,o)=>!jQuery(o).closest(s).length)}addAnchorsBeforeHeadings(){const e=this.getSettings("classes");this.elements.$headings.before(t=>{if(!jQuery(this.elements.$headings[t]).data("hasOwnID"))return`<span id="${e.headingAnchor}-${t}" class="${e.anchor} "></span>`})}activateItems(e){const t=this.getSettings("classes");this.deactivateItems(e);const n=[];e.forEach(s=>{if(s.addClass(t.activeItem),!this.getElementSettings("collapse_subitems"))return;let i;s.hasClass(t.firstLevelListItem)?i=s.parent().next():i=s.parents("."+t.listWrapper).eq(-2),i.length&&!n.some(o=>o[0].contains(i[0]))&&n.push(i)}),this.deactivateLists(n),this.$activeItems=e,this.$activeLists=n,this.$activeLists.forEach(s=>s.stop().slideDown())}deactivateItems(e){if(!this.$activeItems||this.$activeItems.length===0)return;const{classes:t}=this.getSettings();this.$activeItems.forEach(n=>{e.some(s=>n.is(s))||n.removeClass(t.activeItem)})}deactivateLists(e){this.$activeLists&&this.$activeLists.forEach(t=>{e.some(n=>t[0].contains(n[0]))||t.slideUp()})}updateActiveItemFromViewport(e){const t=[];if(this.$listItemTexts.each((n,s)=>{const i=s.hash;if(!i)return;let o;try{o=jQuery(decodeURIComponent(i))}catch(l){return}const a=o.attr("id");
1790this.viewportItems[a]&&t.push(jQuery(s))}),t.length>0)this.activateItems(t);else if(e==="up"){const n=this.$listItemTexts.index(this.$activeItems[0]);if(n===0){this.activateItems([]);return}const s=this.$listItemTexts.eq(n-1);s.length&&this.activateItems([s])}}followAnchor(e){const t=e[0].hash;let n;try{n=jQuery(decodeURIComponent(t))}catch(s){return}this.createObserver(n,{rootMargin:"0px",threshold:0}).observe(n[0])}createObserver(e,t){let n=0;return new IntersectionObserver(s=>{s.forEach(i=>{const o=document.documentElement.scrollTop,a=o>n,l=e.attr("id");i.isIntersecting?this.viewportItems[l]=!0:delete this.viewportItems[l],n=o<=0?0:o,!this.itemClicked&&this.updateActiveItemFromViewport(a?"down":"up")})},t)}followAnchors(){this.$listItemTexts.each((e,t)=>this.followAnchor(jQuery(t)))}populateTOC(){this.listItemPointer=0,this.getElementSettings().hierarchical_view?this.createNestedList():this.createFlatList(),this.$listItemTexts=this.$element.find(".elementor-toc__list-item-text"),this.$listItemTexts.on("click",this.onListItemClick.bind(this)),elementorFrontend.isEditMode()||(this.followAnchors(),requestAnimationFrame(()=>this.updateActiveItemFromViewport()))}createNestedList(){this.headingsData.forEach((e,t)=>{e.level=0;for(let n=t-1;n>=0;n--){const s=this.headingsData[n];if(s.tag<=e.tag){e.level=s.level,s.tag<e.tag&&e.level++;break}}}),this.elements.$tocBody.html(this.getNestedLevel(0))}createFlatList(){this.elements.$tocBody.html(this.getNestedLevel())}getNestedLevel(e){const t=this.getSettings(),n=this.getElementSettings(),s=this.getElementSettings("icon");let i;s&&(elementorFrontend.config.experimentalFeatures.e_font_icon_svg&&!elementorFrontend.isEditMode()?i=typeof s.rendered_tag!="undefined"?s.rendered_tag:"":i=s.value?`<i class="${s.value}"></i>`:"");let o=`<${t.listWrapperTag} class="${t.classes.listWrapper}">`;for(;this.listItemPointer<this.headingsData.length;){const a=this.headingsData[this.listItemPointer];let l=t.classes.listItemText;if(a.level===0&&(l+=" "+t.classes.firstLevelListItem),e>a.level)break;if(e===a.level){o+=`<li class="${t.classes.listItem}">`,o+=`<div class="${t.classes.listTextWrapper}">`;let d=`<a href="#${a.anchorLink}" class="${l}">${a.text}</a>`;n.marker_view==="bullets"&&s&&(d=`${i}${d}`),d=zn.sanitize(d),o+=d,o+="</div>",this.listItemPointer++;const h=this.headingsData[this.listItemPointer];h&&e<h.level&&(o+=this.getNestedLevel(h.level)),o+="</li>"}}return o+=`</${t.listWrapperTag}>`,o}handleNoHeadingsFound(){const e=this.getElementSettings("no_headings_message");return this.elements.$tocBody.html(e)}collapseBodyListener(){const e=elementorFrontend.breakpoints.getActiveBreakpointsList({withDesktop:!0}),t=this.getElementSettings("minimized_on"),n=elementorFrontend.getCurrentDeviceMode(),s=this.$element.hasClass(this.getSettings("classes.collapsed"));t==="desktop"||e.indexOf(t)>=e.indexOf(n)?s||this.collapseBox(!1):s&&this.expandBox(!1)}onElementChange(e){e==="minimized_on"&&this.collapseBodyListener()}getHeadingAnchorLink(e,t){var n;const s=this.elements.$headings[e].id,i=(n=this.elements.$headings[e].closest(".elementor-widget"))==null?void 0:n.id,o=s||i;return o?(jQuery(this.elements.$headings[e]).data("hasOwnID",!0),o):`${t.headingAnchor}-${e}`}setHeadingsData(){this.headingsData=[];const e=this.getSettings("classes");this.elements.$headings.each((t,n)=>{const s=this.getHeadingAnchorLink(t,e);this.headingsData.push({tag:+n.nodeName.slice(1),text:n.textContent,anchorLink:s})})}run(){if(this.elements.$headings=this.getHeadings(),!this.elements.$headings.length)return this.handleNoHeadingsFound();this.setHeadingsData(),elementorFrontend.isEditMode()||this.addAnchorsBeforeHeadings(),this.populateTOC(),this.getElementSettings("minimize_box")&&this.collapseBodyListener()}expandBox(e=!0){const t=this.getCurrentDeviceSetting("min_height");this.$element.removeClass(this.getSettings("classes.collapsed")),this.elements.$tocBody.slideDown(),this.elements.$expandButton.attr("aria-expanded","true"),this.elements.$collapseButton.attr("aria-expanded","true"),this.elements.$widgetContainer.css("min-height",t.size+t.unit),e&&this.elements.$collapseButton.trigger("focus")}
1790collapseBox(e=!0){this.$element.addClass(this.getSettings("classes.collapsed")),this.elements.$tocBody.slideUp(),this.elements.$expandButton.attr("aria-expanded","false"),this.elements.$collapseButton.attr("aria-expanded","false"),this.elements.$widgetContainer.css("min-height","0px"),e&&this.elements.$expandButton.trigger("focus")}triggerClickOnEnterSpace(e){(e.keyCode===13||e.keyCode===32)&&(e.currentTarget.click(),e.stopPropagation())}onInit(...e){super.onInit(...e),this.viewportItems={},this.$activeItems=[],this.$activeLists=[],jQuery(()=>this.run())}onListItemClick(e){this.itemClicked=!0;const t=setTimeout(()=>{this.itemClicked=!1,this.updateActiveItemFromViewport()},2e3);window.addEventListener("scrollend",()=>{this.itemClicked=!1,clearTimeout(t),this.updateActiveItemFromViewport()},{once:!0});const n=jQuery(e.target),s=n.parent().next(),i=this.getElementSettings("collapse_subitems");let o;i&&n.hasClass(this.getSettings("classes.firstLevelListItem"))&&s.is(":visible")&&(o=!0),this.activateItems([n]),i&&o&&s.slideUp()}}})),nl=(ut=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("table-of-contents",()=>v(()=>Promise.resolve().then(()=>(tl(),el)),void 0))}},f(ut,"default"),ut),sl=b({default:()=>Hi}),Hi,il=g((()=>{Tn(),Hi=class extends jt{}})),Ri=b({default:()=>Wi}),Wi,Ni=g((()=>{Ee(),Wi=N.extend({getSkinPrefix(){return"archive_classic_"}})})),ol=b({default:()=>zi}),zi,rl=g((()=>{ri(),zi=$n.extend({getSkinPrefix(){return"archive_cards_"}})})),al=(mt=class extends elementorModules.Module{constructor(){super(),["archive_classic","archive_full_content","archive_cards"].forEach(t=>{elementorFrontend.elementsHandler.attachHandler("archive-posts",()=>v(()=>Promise.resolve().then(()=>(il(),sl)),void 0),t)}),elementorFrontend.elementsHandler.attachHandler("archive-posts",()=>v(()=>Promise.resolve().then(()=>(Ni(),Ri)),void 0),"archive_classic"),elementorFrontend.elementsHandler.attachHandler("archive-posts",()=>v(()=>Promise.resolve().then(()=>(Ni(),Ri)),void 0),"archive_full_content"),elementorFrontend.elementsHandler.attachHandler("archive-posts",()=>v(()=>Promise.resolve().then(()=>(rl(),ol)),void 0),"archive_cards"),jQuery(function(){var t=location.search.match(/theme_template_id=(\d*)/),n=t?jQuery(".elementor-"+t[1]):[];n.length&&jQuery("html, body").animate({scrollTop:n.offset().top-window.innerHeight/2})})}},f(mt,"default"),mt),ll=b({default:()=>ji}),ji,cl=g((()=>{ji=elementorModules.frontend.handlers.Base.extend({getDefaultSettings(){return{selectors:{wrapper:".elementor-search-form",container:".elementor-search-form__container",icon:".elementor-search-form__icon",input:".elementor-search-form__input",toggle:".elementor-search-form__toggle",submit:".elementor-search-form__submit",closeButton:".dialog-close-button"},classes:{isFocus:"elementor-search-form--focus",isFullScreen:"elementor-search-form--full-screen",lightbox:"elementor-lightbox"}}},getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$wrapper=this.$element.find(e.wrapper),t.$container=this.$element.find(e.container),t.$input=this.$element.find(e.input),t.$icon=this.$element.find(e.icon),t.$toggle=this.$element.find(e.toggle),t.$submit=this.$element.find(e.submit),t.$closeButton=this.$element.find(e.closeButton),t},bindEvents(){var e=this,t=e.elements.$container,n=e.elements.$closeButton,s=e.elements.$input,i=e.elements.$wrapper,o=e.elements.$icon,a=e.elements.$toggle,l=this.getElementSettings("skin"),d=this.getSettings("classes");const h=()=>{t.addClass(d.isFullScreen).addClass(d.lightbox),s.trigger("focus")},_=()=>{t.removeClass(d.isFullScreen).removeClass(d.lightbox),a.trigger("focus")},C=w=>{(w.keyCode===13||w.keyCode===32)&&(w.currentTarget.click(),w.stopPropagation())};l==="full_screen"?(a.on("click",()=>h()).on("keyup",w=>C(w)),t.on("click",function(w){t.hasClass(d.isFullScreen)&&t[0]===w.target&&t.removeClass(d.isFullScreen).removeClass(d.lightbox)}),n.on("click",()=>_()).on("keyup",w=>C(w)),elementorFrontend.elements.$document.on("keyup",function(w){w.keyCode===27&&t.hasClass(d.isFullScreen)&&t.trigger("click")}
1790)):s.on({focus(){i.addClass(d.isFocus)},blur(){i.removeClass(d.isFocus)}}),l==="minimal"&&o.on("click",function(){i.addClass(d.isFocus),s.trigger("focus")})}})})),dl=(ht=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("search-form",()=>v(()=>Promise.resolve().then(()=>(cl(),ll)),void 0))}},f(ht,"default"),ht),ul=b({default:()=>qi}),qi,ml=g((()=>{var e;qi=(e=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{container:".elementor-menu-cart__container",main:".elementor-menu-cart__main",toggle:".elementor-menu-cart__toggle",toggleButton:"#elementor-menu-cart__toggle_button",toggleWrapper:".elementor-menu-cart__toggle_wrapper",closeButton:".elementor-menu-cart__close-button, .elementor-menu-cart__close-button-custom",productList:".elementor-menu-cart__products"},classes:{isShown:"elementor-menu-cart--shown"}}}getDefaultElements(){const n=this.getSettings("selectors");return{$container:this.$element.find(n.container),$main:this.$element.find(n.main),$toggleWrapper:this.$element.find(n.toggleWrapper),$closeButton:this.$element.find(n.closeButton)}}toggleCart(){this.isCartOpen?this.hideCart():this.showCart()}showCart(){if(this.isCartOpen)return;const n=this.getSettings("classes"),s=this.getSettings("selectors");this.isCartOpen=!0,this.$element.addClass(n.isShown),this.$element.find(s.toggleButton).attr("aria-expanded",!0),this.elements.$main.attr("aria-hidden",!1),this.elements.$container.attr("aria-hidden",!1)}hideCart(){if(!this.isCartOpen)return;const n=this.getSettings("classes"),s=this.getSettings("selectors");this.isCartOpen=!1,this.$element.removeClass(n.isShown),this.$element.find(s.toggleButton).attr("aria-expanded",!1),this.elements.$main.attr("aria-hidden",!0),this.elements.$container.attr("aria-hidden",!0)}automaticallyOpenCart(){this.getElementSettings().automatically_open_cart==="yes"&&this.showCart()}refreshFragments(n,s=null){if(elementorFrontend.isEditMode()&&elementorPro.modules.woocommerce.didManuallyTriggerAddToCartEvent(s))return!1;const i=[];jQuery.each(elementorFrontend.documentsManager.documents,o=>{i.push(o)}),jQuery.ajax({type:"POST",url:elementorProFrontend.config.ajaxurl,context:this,data:{action:"elementor_menu_cart_fragments",templates:i,_nonce:ElementorProFrontendConfig.woocommerce.menu_cart.fragments_nonce,is_editor:elementorFrontend.isEditMode()},success(o){o!=null&&o.fragments&&jQuery.each(o.fragments,(a,l)=>{jQuery(a).replaceWith(l)})},complete(){n==="added_to_cart"&&this.automaticallyOpenCart()}})}bindEvents(){const n=elementorProFrontend.config.woocommerce.menu_cart,s=n.cart_page_url.indexOf("?")===-1?window.location.origin+window.location.pathname:window.location.href,i=n.cart_page_url,o=n.cart_page_url===s,a=n.checkout_page_url===s,l=this.getSettings("selectors");if(o&&a){this.$element.find(l.toggleButton).attr("href",i);return}const d=this.getSettings("classes");this.isCartOpen=this.$element.hasClass(d.isShown),this.getElementSettings().open_cart==="mouseover"?(this.elements.$toggleWrapper.on("mouseover click",l.toggleButton,h=>{h.preventDefault(),this.showCart()}),this.elements.$toggleWrapper.on("mouseleave",()=>this.hideCart())):this.elements.$toggleWrapper.on("click",l.toggleButton,h=>{h.preventDefault(),this.toggleCart()}),elementorFrontend.elements.$document.on("click",h=>{if(!this.isCartOpen)return;const _=jQuery(h.target);_.closest(this.elements.$main).length||_.closest(l.toggle).length||this.hideCart()}),this.elements.$closeButton.on("click",h=>{h.preventDefault(),this.hideCart()}),elementorFrontend.elements.$document.on("keyup",h=>{h.keyCode===27&&this.hideCart()}),elementorFrontend.elements.$body.on("wc_fragments_refreshed removed_from_cart added_to_cart",(h,_)=>this.refreshFragments(h.type,_)),elementorFrontend.addListenerOnce(this.getUniqueHandlerID()+"_window_resize_dropdown","resize",()=>this.governDropdownHeight()),elementorFrontend.elements.$body.on("wc_fragments_loaded wc_fragments_refreshed",()=>this.governDropdownHeight())}unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID()+"_window_resize_dropdown","resize")}onInit(){super.onInit(),elementorProFrontend.config.woocommerce.productAddedToCart&&this.automaticallyOpenCart(),this.governDropdownHeight()}governDropdownHeight(){if(this.getElementSettings().cart_type!=="mini-cart")return;const n=this.getSettings("selectors"),s=this.$element.find(n.productList),i=this.$element.find(n.toggle);if(!s.length||!i.length)return;this.$element.find(n.productList).css("max-height","");const o=document.documentElement.clientHeight,a=i.height()+parseInt(this.elements.$main.css("margin-top")),l=i[0].getBoundingClientRect().top,d=s.height(),h=this.elements.$main.prop("scrollHeight")-d,_=o-l-a-h-30,C=Math.max(120,_);s.css("max-height",C)}},f(e,"default"),e)})),Ie,Dt=g((()=>{var e;Ie=(e=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{stickyRightColumn:".e-sticky-right-column"},classes:{stickyRightColumnActive:"e-sticky-right-column--active"}}}getDefaultElements(){const n=this.getSettings("selectors");return{$stickyRightColumn:this.$element.find(n.stickyRightColumn)}}bindEvents(){elementorFrontend.elements.$document.on("select2:open",n=>{this.addSelect2Wrapper(n)})}addSelect2Wrapper(n){const s=jQuery(n.target).data("select2");s.$dropdown&&s.$dropdown.addClass("e-woo-select2-wrapper")}isStickyRightColumnActive(){const n=this.getSettings("classes");return this.elements.$stickyRightColumn.hasClass(n.stickyRightColumnActive)}activateStickyRightColumn(){const n=this.getElementSettings(),s=elementorFrontend.elements.$wpAdminBar,i=this.getSettings("classes");let o=n.sticky_right_column_offset||0;s.length&&s.css("position")==="fixed"&&(o+=s.height()),this.getElementSettings("sticky_right_column")==="yes"&&(this.elements.$stickyRightColumn.addClass(i.stickyRightColumnActive),this.elements.$stickyRightColumn.css("top",o+"px"))}deactivateStickyRightColumn(){if(!this.isStickyRightColumnActive())return;const n=this.getSettings("classes");this.elements.$stickyRightColumn.removeClass(n.stickyRightColumnActive)}toggleStickyRightColumn(){if(!this.getElementSettings("sticky_right_column")){this.deactivateStickyRightColumn();return}this.isStickyRightColumnActive()||this.activateStickyRightColumn()}equalizeElementHeight(n){if(n.length){n.removeAttr("style");let s=0;n.each((i,o)=>{s=Math.max(s,o.offsetHeight)}),0<s&&n.css({height:s+"px"})}}removePaddingBetweenPurchaseNote(n){n&&n.each((s,i)=>{jQuery(i).prev().children("td").addClass("product-purchase-note-is-below")})}updateWpReferers(){const n=this.getSettings("selectors"),s=this.$element.find(n.wpHttpRefererInputs),i=new URL(document.location);i.searchParams.set("elementorPageId",elementorFrontend.config.post.id),i.searchParams.set("elementorWidgetId",this.getID()),s.attr("value",i)}},f(e,"Base"),e)}
1790)),hl=b({default:()=>Vi}),Vi,gl=g((()=>{Dt(),Vi=class extends Ie{getDefaultSettings(){return{selectors:{container:".elementor-widget-woocommerce-purchase-summary",address:"address",purchasenote:".product-purchase-note"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$container:this.$element.find(e.container),$address:this.$element.find(e.address),$purchasenote:this.$element.find(e.purchasenote)}}onElementChange(e){for(const t of["general_text_typography","sections_padding","sections_border_width"])e.startsWith(t)&&this.equalizeElementHeight(this.elements.$address);e.startsWith("order_details_rows_gap")&&this.removePaddingBetweenPurchaseNote(this.elements.$purchasenote)}applyButtonsHoverAnimation(){const e=this.getElementSettings();e.order_details_button_hover_animation&&this.$element.find(".order-again .button, td .button").addClass("elementor-animation-"+e.order_details_button_hover_animation)}onInit(...e){super.onInit(...e),this.equalizeElementHeight(this.elements.$address),this.removePaddingBetweenPurchaseNote(this.elements.$purchasenote),this.applyButtonsHoverAnimation()}}})),pl=b({default:()=>Xi}),Ui,Gi,Qi,jn,Ki,Yi,qn,Vn,Un,Xi,fl=g((()=>{Dt(),Ui=Object.defineProperty,Gi=Object.defineProperties,Qi=Object.getOwnPropertyDescriptors,jn=Object.getOwnPropertySymbols,Ki=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,qn=f((e,t,n)=>t in e?Ui(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,"__defNormalProp"),Vn=(e,t)=>{for(var n in t||(t={}))Ki.call(t,n)&&qn(e,n,t[n]);if(jn)for(var n of jn(t))Yi.call(t,n)&&qn(e,n,t[n]);return e},Un=(e,t)=>Gi(e,Qi(t)),Xi=class extends Ie{getDefaultSettings(...e){const t=super.getDefaultSettings(...e);return{selectors:Un(Vn({},t.selectors),{container:".elementor-widget-woocommerce-checkout-page",loginForm:".e-woocommerce-login-anchor",loginSubmit:".e-woocommerce-form-login-submit",loginSection:".e-woocommerce-login-section",showCouponForm:".e-show-coupon-form",couponSection:".e-coupon-anchor",showLoginForm:".e-show-login",applyCoupon:".e-apply-coupon",checkoutForm:"form.woocommerce-checkout",couponBox:".e-coupon-box",address:"address",wpHttpRefererInputs:'[name="_wp_http_referer"]'}),classes:t.classes,ajaxUrl:elementorProFrontend.config.ajaxurl}}getDefaultElements(...e){const t=this.getSettings("selectors");return Un(Vn({},super.getDefaultElements(...e)),{$container:this.$element.find(t.container),$loginForm:this.$element.find(t.loginForm),$showCouponForm:this.$element.find(t.showCouponForm),$couponSection:this.$element.find(t.couponSection),$showLoginForm:this.$element.find(t.showLoginForm),$applyCoupon:this.$element.find(t.applyCoupon),$loginSubmit:this.$element.find(t.loginSubmit),$couponBox:this.$element.find(t.couponBox),$checkoutForm:this.$element.find(t.checkoutForm),$loginSection:this.$element.find(t.loginSection),$address:this.$element.find(t.address)})}bindEvents(...e){super.bindEvents(...e),this.elements.$showCouponForm.on("click",t=>{t.preventDefault(),this.elements.$couponSection.slideToggle()}),this.elements.$showLoginForm.on("click",t=>{t.preventDefault(),this.elements.$loginForm.slideToggle()}),this.elements.$applyCoupon.on("click",t=>{t.preventDefault(),this.applyCoupon()}),this.elements.$loginSubmit.on("click",t=>{t.preventDefault(),this.loginUser()}),elementorFrontend.elements.$body.on("updated_checkout",()=>{this.applyPurchaseButtonHoverAnimation(),this.updateWpReferers()})}onInit(...e){super.onInit(...e),this.toggleStickyRightColumn(),this.updateWpReferers(),this.equalizeElementHeight(this.elements.$address),elementorFrontend.isEditMode()&&(this.elements.$loginForm.show(),this.elements.$couponSection.show(),this.applyPurchaseButtonHoverAnimation())}onElementChange(e){e==="sticky_right_column"&&this.toggleStickyRightColumn()}onDestroy(...e){super.onDestroy(...e),this.deactivateStickyRightColumn()}applyPurchaseButtonHoverAnimation(){const e=this.getElementSettings("purchase_button_hover_animation");e&&jQuery("#place_order").addClass("elementor-animation-"+e)}applyCoupon(){if(!wc_checkout_params)return;this.startProcessing(this.elements.$couponBox);const e={security:wc_checkout_params.apply_coupon_nonce,coupon_code:this.elements.$couponBox.find('input[name="coupon_code"]').val()};jQuery.ajax({type:"POST",url:wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%","apply_coupon"),context:this,data:e,success(t){jQuery(".woocommerce-error, .woocommerce-message").remove(),this.elements.$couponBox.removeClass("processing").unblock(),(t.includes("woocommerce-error")||t.includes("does not exist"))&&jQuery("html, body").animate({scrollTop:0},"fast"),t&&(this.elements.$checkoutForm.before(t),this.elements.$couponSection.slide
1790Up(),elementorFrontend.elements.$body.trigger("applied_coupon_in_checkout",[e.coupon_code]),elementorFrontend.elements.$body.trigger("update_checkout",{update_shipping_method:!1}))},dataType:"html"})}loginUser(){this.startProcessing(this.elements.$loginSection);const e={action:"elementor_woocommerce_checkout_login_user",username:this.elements.$loginSection.find('input[name="username"]').val(),password:this.elements.$loginSection.find('input[name="password"]').val(),nonce:this.elements.$loginSection.find('input[name="woocommerce-login-nonce"]').val(),remember:this.elements.$loginSection.find("input#rememberme").prop("checked")};jQuery.ajax({type:"POST",url:this.getSettings("ajaxUrl"),context:this,data:e,success(t){t=JSON.parse(t),this.elements.$loginSection.removeClass("processing").unblock(),jQuery(".woocommerce-error, .woocommerce-message").remove(),t.logged_in?location.reload():(this.elements.$checkoutForm.before(t.message),elementorFrontend.elements.$body.trigger("checkout_error",[t.message]))}})}startProcessing(e){e.is(".processing")||e.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})}}}));function Ji(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,s)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ji(Object(n),!0).forEach(function(s){V(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ji(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}var Gn=g((()=>{ae()})),vl=b({default:()=>Zi}),Zi,_l=g((()=>{Dt(),Gn(),Zi=class extends Ie{getDefaultSettings(...e){const t=super.getDefaultSettings(...e);return{selectors:ce(ce({},t.selectors),{},{shippingForm:".shipping-calculator-form",quantityInput:".qty",updateCartButton:"button[name=update_cart]",wpHttpRefererInputs:"[name=_wp_http_referer]",hiddenInput:"input[type=hidden]",productRemove:".product-remove a"}),classes:t.classes,ajaxUrl:elementorProFrontend.config.ajaxurl}}getDefaultElements(...e){const t=this.getSettings("selectors");return ce(ce({},super.getDefaultElements(...e)),{},{$shippingForm:this.$element.find(t.shippingForm),$stickyColumn:this.$element.find(t.stickyColumn),$hiddenInput:this.$element.find(t.hiddenInput)})}bindEvents(){super.bindEvents();const e=this.getSettings("selectors");elementorFrontend.elements.$body.on("wc_fragments_refreshed",()=>this.applyButtonsHoverAnimation()),this.getElementSettings("update_cart_automatically")==="yes"&&this.$element.on("input",e.quantityInput,()=>this.updateCart()),elementorFrontend.elements.$body.on("wc_fragments_loaded wc_fragments_refreshed",()=>{this.updateWpReferers(),(elementorFrontend.isEditMode()||elementorFrontend.isWPPreviewMode())&&this.disableActions()}),elementorFrontend.elements.$body.on("added_to_cart",function(t,n){if(n.e_manually_triggered)return!1})}onInit(...e){super.onInit(...e),this.toggleStickyRightColumn(),this.hideHiddenInputsParentElements(),elementorFrontend.isEditMode()&&this.elements.$shippingForm.show(),this.applyButtonsHoverAnimation(),this.updateWpReferers(),(elementorFrontend.isEditMode()||elementorFrontend.isWPPreviewMode())&&this.disableActions()}disableActions(){const e=this.getSettings("selectors");this.$element.find(e.updateCartButton).attr({disabled:"disabled","aria-disabled":"true"}),elementorFrontend.isEditMode()&&(this.$element.find(e.quantityInput).attr("disabled","disabled"),this.$element.find(e.productRemove).css("pointer-events","none"))}onElementChange(e){e==="sticky_right_column"&&this.toggleStickyRightColumn(),e==="additional_template_select"&&elementorPro.modules.woocommerce.onTemplateIdChange("additional_template_select")}onDestroy(...e){super.onDestroy(...e),this.deactivateStickyRightColumn()}updateCart(){const e=this.getSettings("selectors");clearTimeout(this._debounce),this._debounce=setTimeout(()=>{this.$element.find(e.updateCartButton).trigger("click")},1500)}applyButtonsHoverAnimation(){const e=this.getElementSettings();e.checkout_button_hover_animation&&jQuery(".checkout-button").addClass("elementor-animation-"+e.checkout_button_hover_animation),e.forms_buttons_hover_animation&&jQuery(".shop_table .button").addClass("elementor-animation-"+e.forms_buttons_hover_animation)}
1790hideHiddenInputsParentElements(){this.isEdit&&this.elements.$hiddenInput&&this.elements.$hiddenInput.parent(".form-row").addClass("elementor-hidden")}}})),bl=b({default:()=>eo}),eo,Sl=g((()=>{Dt(),eo=class extends Ie{getDefaultSettings(){return{selectors:{address:"address",tabLinks:".woocommerce-MyAccount-navigation-link a",viewOrderButtons:".my_account_orders .woocommerce-button.view",viewOrderLinks:".woocommerce-orders-table__cell-order-number a",authForms:"form.login, form.register",tabWrapper:".e-my-account-tab",tabItem:".woocommerce-MyAccount-navigation li",allPageElements:"[e-my-account-page]",purchasenote:"tr.product-purchase-note",contentWrapper:".woocommerce-MyAccount-content-wrapper"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$address:this.$element.find(e.address),$tabLinks:this.$element.find(e.tabLinks),$viewOrderButtons:this.$element.find(e.viewOrderButtons),$viewOrderLinks:this.$element.find(e.viewOrderLinks),$authForms:this.$element.find(e.authForms),$tabWrapper:this.$element.find(e.tabWrapper),$tabItem:this.$element.find(e.tabItem),$allPageElements:this.$element.find(e.allPageElements),$purchasenote:this.$element.find(e.purchasenote),$contentWrapper:this.$element.find(e.contentWrapper)}}editorInitTabs(){this.elements.$allPageElements.each((e,t)=>{const n=t.getAttribute("e-my-account-page");let s;n==="view-order"?s=this.elements.$viewOrderLinks.add(this.elements.$viewOrderButtons):s=this.$element.find(".woocommerce-MyAccount-navigation-link--"+n),s.on("click",()=>{this.currentPage=n,this.editorShowTab()})})}editorShowTab(){const e=this.$element.find('[e-my-account-page="'+this.currentPage+'"]');this.$element.attr("e-my-account-page",this.currentPage),this.elements.$allPageElements.hide(),e.show(),this.toggleEndpointClasses(),this.currentPage!=="view-order"&&(this.elements.$tabItem.removeClass("is-active"),this.$element.find(".woocommerce-MyAccount-navigation-link--"+this.currentPage).addClass("is-active")),(this.currentPage==="edit-address"||this.currentPage==="view-order")&&this.equalizeElementHeights()}toggleEndpointClasses(){const e=["dashboard","orders","view-order","downloads","edit-account","edit-address","payment-methods"];let t="";this.elements.$tabWrapper.removeClass("e-my-account-tab__"+e.join(" e-my-account-tab__")+" e-my-account-tab__dashboard--custom"),this.currentPage==="dashboard"&&this.elements.$contentWrapper.find(".elementor").length&&(t=" e-my-account-tab__dashboard--custom"),e.includes(this.currentPage)&&this.elements.$tabWrapper.addClass("e-my-account-tab__"+this.currentPage+t)}applyButtonsHoverAnimation(){const e=this.getElementSettings();e.forms_buttons_hover_animation&&this.$element.find(".woocommerce button.button,  #add_payment_method #payment #place_order").addClass("elementor-animation-"+e.forms_buttons_hover_animation),e.tables_button_hover_animation&&this.$element.find(".order-again .button, td .button, .woocommerce-pagination .button").addClass("elementor-animation-"+e.tables_button_hover_animation)}equalizeElementHeights(){this.equalizeElementHeight(this.elements.$address),this.isEdit||this.equalizeElementHeight(this.elements.$authForms)}onElementChange(e){(e.indexOf("general_text_typography")===0||e.indexOf("sections_padding")===0)&&this.equalizeElementHeights(),e.indexOf("forms_rows_gap")===0&&this.removePaddingBetweenPurchaseNote(this.elements.$purchasenote),e==="customize_dashboard_select"&&elementorPro.modules.woocommerce.onTemplateIdChange("customize_dashboard_select")}bindEvents(){super.bindEvents(),elementorFrontend.elements.$body.on("keyup change",".register #reg_password",()=>{this.equalizeElementHeights()})}onInit(...e){super.onInit(...e),this.isEdit&&(this.editorInitTabs(),this.$element.attr("e-my-account-page")?this.currentPage=this.$element.attr("e-my-account-page"):this.currentPage="dashboard",this.editorShowTab()),this.applyButtonsHoverAnimation(),this.equalizeElementHeights(),this.removePaddingBetweenPurchaseNote(this.elements.$purchasenote)}}})),yl=b({default:()=>to}),to,wl=g((()=>{var e;to=(e=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{woocommerceNotices:":not(.woocommerce-NoticeGroup) .wc-block-components-notice-banner, .woocommerce-NoticeGroup, :not(.woocommerce-NoticeGroup) .woocommerce-error, :not(.woocommerce-NoticeGroup) .woocommerce-message, :not(.woocommerce-NoticeGroup) .woocommerce-info",noticesWrapper:".e-woocommerce-notices-wrapper"}}}getDefaultElements(){const n=this.getSettings("selectors");return{$documentScrollToElements:elementorFrontend.elements.$document.find("html, body"),$woocommerceCheckoutForm:elementorFrontend.elements.$body.find(".form.checkout"),$noticesWrapper:this.$element.find(n.noticesWrapper)}}moveNotices(n=!1){const s=this.getSettings("selectors");let i=elementorFrontend.elements.$body.find(s.woocommerceNotices);if((elementorFrontend.isEditMode()||elementorFrontend.isWPPreviewMode())&&(i=i.filter(":not(.e-notices-demo-notice)")),n&&this.elements.$documentScrollToElements.stop(),this.elements.$noticesWrapper.prepend(i),this.is_ready||(this.elements.$noticesWrapper.removeClass("e-woocommerce-notices-wrapper-loading"),this.is_ready=!0),n){let o=i;o.length||(o=this.elements.$woocommerceCheckoutForm),o.length&&this.elements.$documentScrollToElements.animate({scrollTop:o.offset().top-document.documentElement.clientHeight/2},1e3)}}onInit(){super.onInit(),this.is_ready=!1,this.moveNotices(!0)}bindEvents(){elementorFrontend.elements.$body.on("updated_wc_div updated_checkout updated_cart_totals applied_coupon removed_coupon applied_coupon_in_checkout removed_coupon_in_checkout checkout_error",()=>this.moveNotices(!0))}},f(e,"default"),e)})),Cl=b({default:()=>no}),no,El=g((()=>{Dt(),no=class extends Ie{getDefaultSettings(){return{selectors:{quantityInput:".e-loop-add-to-cart-form input.qty",addToCartButton:".e-loop-add-to-cart-form .ajax_add_to_cart",addedToCartButton:".added_to_cart",loopFormContainer:".e-loop-add-to-cart-form-container"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$quantityInput:this.$element.find(e.quantityInput),$addToCartButton:this.$element.find(e.addToCartButton)}}updateAddToCartButtonQuantity(){this.elements.$addToCartButton.attr("data-quantity",this.elements.$quantityInput.val())}handleAddedToCart(e){const t=this.getSettings("selectors"),n=e.siblings(t.addedToCartButton),s=n.parents(t.loopFormContainer);s.children(t.addedToCartButton).remove(),s.append(n)}bindEvents(...e){super.bindEvents(...e),this.elements.$quantityInput.on("change",()=>{this.updateAddToCartButtonQuantity()}),elementorFrontend.elements.$body.off("added_to_cart.elementor-woocommerce-product-add-to-cart"),elementorFrontend.elements.$body.on("added_to_cart.elementor-woocommerce-product-add-to-cart",(t,n,s,i)=>{this.handleAddedToCart(i)})}}})),Tl=(gt=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("woocommerce-menu-cart",()=>v(()=>Promise.resolve().then(()=>(ml(),ul)),void 0)),elementorFrontend.elementsHandler.attachHandler("woocommerce-purchase-summary",()=>v(()=>Promise.resolve().then(()=>(gl(),hl)),void 0)),elementorFrontend.elementsHandler.attachHandler("woocommerce-checkout-page",()=>v(()=>Promise.resolve().then(()=>(fl(),pl)),void 0)),elementorFrontend.elementsHandler.attachHandler("woocommerce-cart",()=>v(()=>Promise.resolve().then(()=>(_l(),vl)),void 0)),elementorFrontend.elementsHandler.attachHandler("woocommerce-my-account",()=>v(()=>Promise.resolve().then(()=>(Sl(),bl)),void 0)),elementorFrontend.elementsHandler.attachHandler("woocommerce-notices",()=>v(()=>Promise.resolve().then(()=>(wl(),yl)),void 0)),elementorFrontend.elementsHandler.attachHandler("woocommerce-product-add-to-cart",()=>v(()=>Promise.resolve().then(()=>(El(),Cl)),void 0)),elementorFrontend.isEditMode()&&elementorFrontend.on("components:init",()=>{elementorFrontend.elements.$body.find(".elementor-widget-woocommerce-cart").length||elementorFrontend.elements.$body.append('<div class="woocommerce-cart-form">')})}},f(gt,"default"),gt);function ve(e){[...e].flatMap(t=>
1790[...t.querySelectorAll(".elementor-element")]).forEach(t=>elementorFrontend.elementsHandler.runReadyTrigger(t))}var _e=g((()=>{})),$l=b({default:()=>so}),so,Al=g((()=>{Tn(),_e(),so=class extends jt{getDefaultSettings(){const e=super.getDefaultSettings();return e.selectors.postsContainer=".elementor-loop-container",e.selectors.postWrapperTag=".e-loop-item",e.selectors.loadMoreButton=".e-loop__load-more .elementor-button",e.selectors.dynamicStyleElement='style[id^="loop-dynamic"]',e}afterInsertPosts(e,t){super.afterInsertPosts(e),ElementorProFrontendConfig.settings.lazy_load_background_images&&document.dispatchEvent(new Event("elementor/lazyload/observe")),this.handleDynamicStyleElements(t),ve(e),elementorFrontend.elements.$window.trigger("elementor-pro/loop-builder/after-insert-posts")}handleDynamicStyleElements(e){const t=this.getSettings("selectors"),n=e.querySelectorAll(`[data-id="${this.elementId}"] ${t.dynamicStyleElement}`);this.$element.append(n)}}}));function Fl({element:e,id:t,title:n=(0,At.__)("Template","elementor-pro")},s=Qn,i=null,o=null){if(s==="edit"){if(!t||!e)throw Error("`id` and `element` are required.");if(Il(e)||kl(e))return}const a=xl({title:n,onClick:()=>Ll(t,s,i,o)},s,e);e.prepend(a),s==="edit"&&(e.dataset.editableElementorDocument=t)}function Il(e){return e.classList.contains(oo)}function kl(e){return!!e.querySelector(`:scope > .${Lt}`)}function xl({title:e,onClick:t},n,s=null){const i=["header","footer"].includes(s==null?void 0:s.dataset.elementorType)?"%s":(0,At.__)("Edit %s","elementor-pro"),o=Zt({tag:"div",classNames:[`${Lt}__inner`],children:[Zt({tag:"i",classNames:[Dl(n)]}),Zt({tag:"div",classNames:[`${n==="edit"?Lt:Kn}__title`],children:[document.createTextNode(n==="edit"?i.replace("%s",e):(0,At.__)("Save %s","elementor-pro").replace("%s",e))]})]}),a=[Lt];n!=="edit"&&a.push(Kn);const l=Zt({tag:"div",classNames:a,children:[o]});return l.addEventListener("click",t),l}function Dl(e){let t="eicon-edit";return e==="save"&&(t=elementorFrontend.config.is_rtl?"eicon-arrow-right":"eicon-arrow-left"),t}function Zt({tag:e,classNames:t=[],children:n=[]}){const s=document.createElement(e);return s.classList.add(...t),n.forEach(i=>s.appendChild(i)),s}function Ll(e,t,n=null,s=null){return io(this,null,function*(){t==="edit"?(window.top.$e.internal("panel/state-loading"),yield window.top.$e.run("editor/documents/switch",{id:parseInt(e),onClose:n,selector:s}),window.top.$e.internal("panel/state-ready")):(elementorCommon.api.internal("panel/state-loading"),elementorCommon.api.run("editor/documents/switch",{id:elementor.config.initial_document.id,mode:"save",shouldScroll:!1,selector:s}).finally(()=>elementorCommon.api.internal("panel/state-ready")))})}var io,Lt,oo,Qn,Kn,Ml,Pl=g((()=>{io=(e,t,n)=>new Promise((s,i)=>{var o=d=>{try{l(n.next(d))}catch(h){i(h)}},a=d=>{try{l(n.throw(d))}catch(h){i(h)}},l=d=>d.done?s(d.value):Promise.resolve(d.value).then(o,a);l((n=n.apply(e,t)).next())}),Lt="elementor-document-handle",oo="elementor-edit-mode",Qn="edit",Kn="elementor-document-save-back-handle",Ml="save"})),ro=b({default:()=>ao}),ao,lo=g((()=>{Ee(),Pl(),ao=class extends N{getSkinPrefix(){return""}getDefaultSettings(){const e=super.getDefaultSettings();return e.selectors.post=".elementor-loop-container .elementor",e.selectors.postsContainer=".elementor-loop-container",e.classes.inPlaceTemplateEditable="elementor-in-place-template-editable",e}fitImages(){}getVerticalSpaceBetween(){return elementorProFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"row_gap","size")}onInPlaceEditTemplate(){this.$element.addClass(this.getDefaultSettings().classes.inPlaceTemplateEditable),this.elementsToRemove=[],this.handleSwiper();const e=this.getElementSettings("template_id");this.elementsToRemove=[...this.elementsToRemove,"style#loop-"+e,"link#font-loop-"+e,"style#loop-dynamic-"+e],this.elementsToRemove.forEach(t=>{this.$element.find(t).remove()})}handleSwiper(){const e=this.elements.$postsContainer.data("swiper");e&&(e.slideTo(0),e.autoplay.pause(),e.allowTouchMove=!1,e.params.autoplay.delay=1e6,e.update(),this.elementsToRemove=[...this.elementsToRemove,".swiper-pagination",".elementor-swiper-button",".elementor-document-handle"])}attachEditDocumentHandle(){const e=this.getElementSettings("template_id");if(!e)return;const t=this.getElementSettings(),n=`.elementor-element-${this.getID()}`,s=(t==null?void 0:t.edit_handle_selector)+((t==null?void 0:t.edit_handle_selector)==='[data-elementor-type="loop-item"]'?`.elementor-${e}`:""),i=this.$element.find(s).first()[0];if(i){if(this.isFirstEdit()){this.$element.find(".elementor-swiper-button").remove();return}Fl({element:i,title:(0,At.__)("Template","elementor-pro"),id:e},Qn,()=>
1790this.onInPlaceEditTemplate(),`${n} .elementor-${e}`)}}isFirstEdit(){return this.$element.has(".e-loop-first-edit").length}handleCTA(){const e=document.querySelector(`[data-id="${this.getID()}"] .e-loop-empty-view__wrapper`);if(!e)return;const t=e.attachShadow({mode:"open"});t.appendChild(elementorPro.modules.loopBuilder.getCtaStyles()),t.appendChild(elementorPro.modules.loopBuilder.getCtaContent(this.getWidgetType())),t.querySelector(".e-loop-empty-view__box-cta").addEventListener("click",()=>{elementorPro.modules.loopBuilder.createTemplate()})}doEditorInitAction(){elementor.hooks.doAction("editor/widgets/loop-grid/on-init",this)}onElementChange(e){e==="_skin"&&elementorPro.modules.loopBuilder.onApplySkinChange(),N.prototype.onElementChange.apply(this)}bindEvents(){super.bindEvents(),elementorFrontend.elements.$window.on("elementor-pro/loop-builder/after-insert-posts",this.reInitMasonry.bind(this))}reInitMasonry(){const e=this.getSettings("selectors");this.elements.$posts=jQuery(`.elementor-element-${this.getID()} ${e.post}`),super.runMasonry()}unbindEvents(){super.unbindEvents(),elementorFrontend.elements.$window.off("elementor-pro/loop-builder/after-insert-posts",this.reInitMasonry.bind(this))}onInit(...e){super.onInit(...e),elementorFrontend.isEditMode()&&(this.doEditorInitAction(),this.attachEditDocumentHandle(),this.handleCTA())}}})),Ol=b({default:()=>co}),co,Bl=g((()=>{_e(),he(),co=class extends elementorModules.frontend.handlers.CarouselBase{getDefaultSettings(){const e=super.getDefaultSettings();return e.selectors.carousel=".elementor-loop-container",e}getSwiperSettings(){const e=super.getSwiperSettings(),t=this.getElementSettings(),n=elementorFrontend.config.is_rtl,s=`.elementor-element-${this.getID()}`;return t.arrows==="yes"&&(e.navigation={prevEl:n?`${s} .elementor-swiper-button-next`:`${s} .elementor-swiper-button-prev`,nextEl:n?`${s} .elementor-swiper-button-prev`:`${s} .elementor-swiper-button-next`}),e.on.beforeInit=()=>{this.a11ySetSlidesAriaLabels()},e}onInit(...e){var t=()=>super.onInit,n=this;return ee(function*(){t().call(n,...e),n.ranElementHandlers=!1})()}handleElementHandlers(){this.ranElementHandlers||!this.swiper||(ve(Array.from(this.swiper.slides).slice(this.swiper.activeIndex-1,this.swiper.slides.length)),this.ranElementHandlers=!0)}a11ySetSlidesAriaLabels(){const e=Array.from(this.elements.$slides);e.forEach((t,n)=>{t.setAttribute("aria-label",`${parseInt(n+1)} ${(0,At.__)("of","elementor-pro")} ${e.length}`)})}}})),Yn,uo=g((()=>{Yn=class{addLoadingAnimationOverlay(e){const t=document.querySelector(`.elementor-element-${e}`);t&&t.classList.add("e-loading-overlay")}removeLoadingAnimationOverlay(e){const t=document.querySelector(`.elementor-element-${e}`);t&&t.classList.remove("e-loading-overlay")}}})),Hl=b({default:()=>mo}),mo,Rl=g((()=>{uo(),_e(),mo=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{links:"a.page-numbers:not(.current)",widgetContainer:".elementor-widget-container",postWrapperTag:".e-loop-item"}}}getDefaultElements(){const e=this.getSettings("selectors");return{links:this.$element[0].querySelectorAll(e.links),widgetContainer:this.$element[0].querySelector(e.widgetContainer)}}bindEvents(){super.bindEvents(),this.linksEventListeners()}linksEventListeners(){this.elements.links.length&&this.getElementSettings("pagination_load_type")==="ajax"&&this.elements.links.forEach(e=>{e.addEventListener("click",t=>{this.handleLinkClick(t)})})}handleLinkClick(e){if(e.preventDefault(),this.isLoading)return;this.removeLinksListeners(),this.handleUiBeforeLoading();const t=e==null?void 0:e.target.getAttribute("href");return this.updateURLQueryString(t),fetch(t).then(n=>n.text()).then(n=>{const s=new DOMParser().parseFromString(n,"text/html");this.handleSuccessFetch(s)})}removeLinksListeners(){this.elements.links.length&&this.elements.links.forEach(e=>{e.removeEventListener("click",this.handleLinkClick)})}updateURLQueryString(e){const t=new URL(window.location.href),n=t.searchParams,s=new URL(e).searchParams;s.forEach((i,o)=>{n.set(o,i)}),s.has("e-page-"+this.elementId)||n.delete("e-page-"+this.elementId),history.pushState(null,"",t.href)}handleUiBeforeLoading(){this.setLoading(!0),this.ajaxHelper.addLoadingAnimationOverlay(this.elementId),this.maybeScrollToTop()}setLoading(e){this.isLoading=e}
1790maybeScrollToTop(){if(this.getElementSettings("auto_scroll")!=="yes")return;const e=document.querySelector(`.elementor-element-${this.elementId}`);e&&e.scrollIntoView({behavior:"smooth"})}handleUiAfterLoading(){this.setLoading(!1),this.ajaxHelper.removeLoadingAnimationOverlay(this.elementId)}handleSuccessFetch(e){this.handleUiAfterLoading();const t=this.getSettings("selectors"),n=e.querySelector(`[data-id="${this.elementId}"] ${t.widgetContainer}`),s=this.elements.widgetContainer;this.$element[0].replaceChild(n,s),this.afterInsertPosts()}afterInsertPosts(){const e=this.getSettings("selectors"),t=document.querySelectorAll(`[data-id="${this.elementId}"] ${e.postWrapperTag}`);elementorFrontend.elementsHandler.runReadyTrigger(this.$element[0]),ve(t),ElementorProFrontendConfig.settings.lazy_load_background_images&&document.dispatchEvent(new Event("elementor/lazyload/observe"))}onInit(){super.onInit(),this.setLoading(!1),this.elementId=this.getID(),this.ajaxHelper=new Yn}}})),Wl=(pt=class extends elementorModules.Module{constructor(){super(),["post","product","post_taxonomy","product_taxonomy"].forEach(t=>{elementorFrontend.elementsHandler.attachHandler("loop-grid",()=>v(()=>Promise.resolve().then(()=>(Al(),$l)),void 0),t),elementorFrontend.elementsHandler.attachHandler("loop-grid",()=>v(()=>Promise.resolve().then(()=>(lo(),ro)),void 0),t),elementorFrontend.elementsHandler.attachHandler("loop-carousel",()=>v(()=>Promise.resolve().then(()=>(lo(),ro)),void 0),t),elementorFrontend.elementsHandler.attachHandler("loop-carousel",()=>v(()=>Promise.resolve().then(()=>(Bl(),Ol)),void 0),t),elementorFrontend.elementsHandler.attachHandler("loop-grid",()=>v(()=>Promise.resolve().then(()=>(Rl(),Hl)),void 0),t)})}},f(pt,"default"),pt);function Nl(e){if(e.item_layout==="dropdown")return!0;const t=elementorFrontend.breakpoints.getActiveBreakpointsList({withDesktop:!0}),n=t.indexOf(e.breakpoint_selector);return t.indexOf(elementorFrontend.getCurrentDeviceMode())<=n}var zl=g((()=>{}));function en(e,t){t.type==="mousedown"?(e.classList.add("e-scroll"),e.dataset.pageX=t.pageX):(e.classList.remove("e-scroll","e-scroll-active"),e.dataset.pageX="")}function ho(e,t,n){const s=e.classList.contains("e-scroll"),i=t==="enable",o=e.scrollWidth>e.clientWidth;if(!s||!i||!o)return;n.preventDefault();const a=parseFloat(e.dataset.pageX),l=n.pageX-a,d=5,h=20;let _=0;h<l?_=d:h*-1>l?_=-1*d:_=l,e.scrollLeft=e.scrollLeft-_,e.classList.add("e-scroll-active")}function Mt({element:e,direction:t,justifyCSSVariable:n,horizontalScrollStatus:s}){e&&(jl(e,s)?ql(e,t,n):e.style.setProperty(n,""))}function jl(e,t){return e.clientWidth<Xn(e.children)&&t==="enable"}function Xn(e){let t=0;const n=e[0].parentNode,s=getComputedStyle(n),i=parseFloat(s.gap)||0;for(let o=0;o<e.length;o++)t+=e[o].offsetWidth+i;return t}function ql(e,t,n){const s=elementorFrontend.config.is_rtl;t==="end"?(e.style.setProperty(n,"start"),e.scrollLeft=s?-1*Xn(e.children):Xn(e.children)):(e.style.setProperty(n,"start"),e.scrollLeft=0)}var go=g((()=>{})),Vl=b({default:()=>po}),po,Ul=g((()=>{zl(),ei(),go(),po=class extends elementorModules.frontend.handlers.Base{constructor(...e){super(...e),elementorFrontend.isEditMode()&&(this.lifecycleChangeListener=null),this.resizeListener=null,this.prevMouseY=null,this.isKeyboardNavigation=!1}getDefaultSettings(){return{selectors:{elementorWidgetWrapper:".elementor-widget-n-menu",widgetContainer:".e-n-menu",dropdownMenuToggle:".e-n-menu-toggle",menuWrapper:".e-n-menu-wrapper",headingContainer:".e-n-menu-heading",menuItem:".e-n-menu-item",tabTitle:".e-n-menu-title",tabTitleText:".e-n-menu-title-text",directTabTitle:":scope > .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-n-menu-item > .e-n-menu-title, :scope > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-n-menu-item > .e-n-menu-title",tabClickableTitle:".e-n-menu-title.e-click",tabDropdown:".e-n-menu-dropdown-icon",menuContent:".e-n-menu-content",tabContent:".e-n-menu-content > .e-con, .e-n-menu-heading > .e-con",directTabContent:":scope > .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-n-menu-item > .e-n-menu-content > .e-con, :scope > .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-con, :scope > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-n-menu-item > .e-n-menu-content > .e-con, :scope > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-con",tabContentBeforeInterlacing:"> .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-con, > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-con",newContainerAfterRepeaterAction:"> .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-con, > .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-n-menu-item > .e-n-menu-content > .e-con:nth-child(2), > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-con, > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-n-menu-item > .e-n-menu-content > .e-con:nth-child(2)",anchorLink:".e-anchor a"},classes:{active:"e-active",anchorItem:"e-anchor",activeAnchorItem:"e-current"},dataAttributes:{tabIndex:"data-tab-index"},ariaAttributes:{titleStateAttribute:"aria-expanded",activeTitleSelector:'[aria-expanded="true"]'},autoExpand:!1,autoFocus:!1,showTabFn:"show",hideTabFn:"hide",toggleSelf:!1,hidePrevious:!0,postUrl:"post-url",internalUrl:"internal-url"}}getDefaultElements(){const e=this.getSettings("selectors");return{$tabContents:this.findElement(e.tabContent),$widgetContainer:this.findElement(e.widgetContainer),$dropdownMenuToggle:this.findElement(e.dropdownMenuToggle),$menuWrapper:this.findElement(e.menuWrapper),$menuContent:this.findElement(e.menuContent),$headingContainer:this.findElement(e.headingContainer),$menuItems:this.findElement(e.menuItem),$tabTitles:this.findElement(e.tabTitle),$tabDropdowns:this.findElement(e.tabDropdown),$anchorLink:this.findElement(e.anchorLink),$tabContentsBeforeInterlacing:this.findElement(e.tabContentBeforeInterlacing)}}
1790getTabTitleFilterSelector(e){return`[${this.getSettings("dataAttributes").tabIndex}="${e}"]`}getTabIndex(e){return e.getAttribute(this.getSettings("dataAttributes").tabIndex)}setKeyboardNavigation(e){e.key==="Tab"&&(this.isKeyboardNavigation=!0)}dropdownMenuHeightControllerConfig(){const e=this.getSettings("selectors");return{elements:{$element:this.$element,$dropdownMenuContainer:this.$element.find(e.menuWrapper),$menuToggle:this.$element.find(e.dropdownMenuToggle)},attributes:{menuToggleState:"aria-expanded"},settings:{dropdownMenuContainerMaxHeight:"auto",menuHeightCssVarName:"--n-menu-dropdown-content-box-height"}}}handleContentContainerPosition(e=null){this.resetContentContainersPosition();const t=this.getSettings("ariaAttributes").activeTitleSelector,n=this.elements.$tabDropdowns.filter(t).attr("data-tab-index");e=e||this.elements.$tabContents.filter(this.getTabContentFilterSelector(n)),e.length&&this.setContentContainerAbsolutePosition(e)}setContentContainerAbsolutePosition(e){const t=this.getElementSettings(),n=t.content_width==="fit_to_content";if(Nl(t))return;if(n){const i=elementorFrontend.config.is_rtl?"right":"left",o=0<this.getMenuItemContainerAbsolutePosition(e)?this.getMenuItemContainerAbsolutePosition(e):0;e.css(i,o)}const s=this.elements.$headingContainer[0].getBoundingClientRect().height;if(this.shouldPositionContentAbove(e,s)){const i=e[0].getBoundingClientRect();e.css({width:n?"max-content":"","max-width":i.width}),this.elements.$widgetContainer.addClass("content-above")}}getMenuItemContainerAbsolutePosition(e){const t=e.data("tab-index"),n=this.elements.$tabDropdowns.filter(this.getTabTitleFilterSelector(t))[0].closest(this.getSettings("selectors").tabTitle).getBoundingClientRect(),s=e[0].clientWidth;let i=null;switch(this.getElementSettings("content_horizontal_position")){case"left":i=this.getLeftDirectionContainerOffset(s,n);break;case"right":i=this.getRightDirectionContainerOffset(s,n);break;default:i=this.getCenteredContainerOffset(s,n)}return i}getCenteredContainerOffset(e,t){const n=e/2,s=elementorFrontend.elements.$body[0].clientWidth;let i=this.adjustForScrollbarIfNeeded(t.left+t.width/2);elementorFrontend.config.is_rtl&&(i=s-i);let o=i-n;return i+n>s?o=s-e:n>i&&(o=0),o}getLeftDirectionContainerOffset(e,t){return elementorFrontend.config.is_rtl?this.getRtlLeftDirectionContainerOffset(e,t):this.getLtrLeftDirectionContainerOffset(e,t)}getRtlLeftDirectionContainerOffset(e,t){const n=elementorFrontend.elements.$body[0].clientWidth;let s=n-this.adjustForScrollbarIfNeeded(t.left)-e;return-s+e>n&&(s=0),s}getLtrLeftDirectionContainerOffset(e,t){let n=this.adjustForScrollbarIfNeeded(t.left);return n=this.adjustStartOffsetToViewport(n,e),n}getRightDirectionContainerOffset(e,t){return elementorFrontend.config.is_rtl?this.getRtlRightDirectionContainerOffset(e,t):this.getLtrRightDirectionContainerOffset(e,t)}getRtlRightDirectionContainerOffset(e,t){let n=elementorFrontend.elements.$body[0].clientWidth-this.adjustForScrollbarIfNeeded(t.right);return n=this.adjustStartOffsetToViewport(n,e),n}adjustStartOffsetToViewport(e,t){const n=elementorFrontend.elements.$body[0].clientWidth;return e+t>n&&(e=n-t),e}getLtrRightDirectionContainerOffset(e,t){return e>t.right?0:t.right-e}adjustForScrollbarIfNeeded(e){if(elementorFrontend.config.is_rtl&&elementorFrontend.isEditMode()){const t=window.innerWidth-elementorFrontend.elements.$body[0].clientWidth;e-=t}return e}getMenuContainerOffset(){const e=this.elements.$widgetContainer[0].getBoundingClientRect();return elementorFrontend.config.is_rtl?this.getMenuContainerOffsetRtl(e):e.left}getMenuContainerOffsetRtl(e){const t=elementorFrontend.elements.$body[0].clientWidth;let n=t-e.right;if(elementorFrontend.isEditMode()){const s=window.innerWidth-t;n+=s}return n}resetContentContainersPosition(){this.elements.$tabContents.css({left:"",right:"",bottom:"",position:"var(--position)","max-width":"",width:"var(--width)"}),this.elements.$widgetContainer.removeClass("content-above")}getTabContentFilterSelector(e){return`[data-tab-index="${e}"]`}isActiveTab(e){return this.elements.$tabDropdowns.filter('[data-tab-index="'+e+'"]').attr(this.getSettings("ariaAttributes").titleStateAttribute)==="true"}activateDefaultTab(){const e=this.getSettings(),t=this.getEditSettings("activeItemIndex")||
17901,n={showTabFn:e.showTabFn,hideTabFn:e.hideTabFn};this.setSettings({showTabFn:"show",hideTabFn:"hide"}),this.changeActiveTab(t),this.setSettings(n),this.elements.$widgetContainer.addClass("e-activated")}activateTab(e){const t=this.getSettings(),n=t.classes.active,s=`.elementor-element-${this.getID()} .e-n-menu .e-n-menu .e-n-menu-dropdown-icon`,i=`.elementor-element-${this.getID()} .e-n-menu .e-n-menu .e-n-menu-content > .e-con`,o=this.elements.$tabDropdowns.filter(this.getTabTitleFilterSelector(e)).not(s),a=t.showTabFn==="show"?0:400,l=this.elements.$tabContents.filter(this.getTabContentFilterSelector(e)).not(i);this.addAnimationToContentIfNeeded(e),l[t.showTabFn](a,()=>this.onShowTabContent(l)),o.attr(this.getTitleActivationAttributes()),o.prev(".e-n-menu-title-container").find("a").attr(this.getTitleActivationAttributes("link")),l.addClass(n).parent().addClass(n),l.css({display:"var(--display)"}),l.removeAttr("display"),elementorFrontend.isEditMode()&&l.length&&this.activeContainerWidthListener(l),this.menuHeightController.reassignMenuHeight(l)}deactivateActiveTab(){var e;const t=this.getSettings(),n=t.classes.active,s=t.ariaAttributes.activeTitleSelector,i="."+n,o=this.elements.$tabDropdowns.filter(s),a=this.elements.$tabContents.filter(i);this.setTabDeactivationAttributes(o),this.elements.$menuContent.removeClass(n),a.removeClass(n),a[t.hideTabFn](0,()=>this.onHideTabContent(a)),this.removeAnimationFromContentIfNeeded(),elementorFrontend.isEditMode()&&a.length&&((e=this.observedContainer)==null||e.unobserve(a[0])),this.menuHeightController.resetMenuHeight(a),this.clickInProgress=!0}getTitleActivationAttributes(e="tab"){const t={};return e==="tab"&&(t["aria-expanded"]="true"),t}setTabDeactivationAttributes(e){const t=this.getSettings("ariaAttributes").titleStateAttribute;e.attr(`${t}`,"false")}shouldPositionContentAbove(e,t=0){const n=e[0].getBoundingClientRect();return this.isContentShorterThanItsTopOffset(n,t)&&this.isContentTallerThanItsBottomOffset(n)}isContentShorterThanItsTopOffset(e,t){return e.height<e.top-t}isContentTallerThanItsBottomOffset(e){return window.innerHeight-e.top<e.height}onShowTabContent(e){this.handleContentContainerPosition(e),elementorFrontend.elements.$window.trigger("elementor-pro/motion-fx/recalc"),elementorFrontend.elements.$window.trigger("elementor/nested-tabs/activate",e),elementorFrontend.elements.$window.trigger("elementor/bg-video/recalc")}onHideTabContent(){this.elements.$widgetContainer.hasClass("content-above")&&this.resetContentContainersPosition()}changeActiveTab(e,t=!0,n=!1){if(this.clickInProgress&&elementorFrontend.isEditMode()&&!n)return;const s=this.isActiveTab(e);this.deactivateActiveTab(),(!s||s&&!t)&&(this.clickInProgress=!0,this.activateTab(e)),setTimeout(()=>{this.clickInProgress=!1})}changeActiveTabByKeyboard(e,t){if(t.widgetId.toString()!==this.getID().toString())return;if(!t.titleIndex){this.changeActiveTab("",!0,!0);return}const n=this.$element.find(`[data-focus-index="${t.titleIndex}"]`),s=n[0].tagName.toLowerCase()==="a",i=this.getSettings("selectors.tabDropdown"),o=s?n.next(i):n,a=this.getTabIndex(o[0]);this.changeActiveTab(a,!0,!0),e.stopPropagation()}onTabClick(e){var t,n,s,i;elementorFrontend.isEditMode()&&e.preventDefault();const o=(n=(t=e==null?void 0:e.currentTarget)==null?void 0:t.classList)==null?void 0:n.contains("link-only"),a=!this.isNeedToOpenOnClick()&&!this.isKeyboardNavigation;if(o||a)return;const l=this.getSettings("selectors");if(((i=(s=e==null?void 0:e.target)==null?void 0:s.closest(l.elementorWidgetWrapper))==null?void 0:i.getAttribute("data-id"))!==this.getID().toString())return;const d=e==null?void 0:e.currentTarget,h=d==null?void 0:d.querySelector(l.tabDropdown),_=this.getTabIndex(h);this.changeActiveTab(_,!0)}bindEvents(){this.elements.$tabTitles.on(this.getTabEvents()),this.elements.$dropdownMenuToggle.on("click",this.onClickToggleDropdownMenu.bind(this)),this.elements.$tabContents.on(this.getContentEvents()),this.elements.$menuContent.on(this.getContentEvents()),this.elements.$headingContainer.on(this.getHeadingEvents()),elementorFrontend.addListenerOnce(this.getModelCID(),"scroll",elementorFrontend.debounce(this.menuHeight
1790Controller.reassignMobileMenuHeight.bind(this.menuHeightController),250)),elementorFrontend.elements.$window.on("elementor/nested-tabs/activate",this.reInitSwipers),elementorFrontend.elements.$window.on("elementor/nested-elements/activate-by-keyboard",this.changeActiveTabByKeyboard.bind(this)),elementorFrontend.elements.$window.on("elementor/mega-menu/dropdown-toggle-by-keyboard",this.onClickToggleDropdownMenuByKeyboard.bind(this)),elementorFrontend.elements.$window.on("resize",this.resizeEventHandler.bind(this)),elementorFrontend.isEditMode()&&(this.addChildLifeCycleEventListeners(),elementorFrontend.elements.$window.on("elementor/dynamic/url_change",this.changeMegaMenuTitleContainerTag.bind(this))),elementorFrontend.elements.$window.on("elementor/nested-container/atomic-repeater",this.linkContainer.bind(this))}unbindEvents(){this.elements.$tabTitles.off(),this.elements.$menuContent.off(),this.elements.$tabContents.off(),this.elements.$headingContainer.off(),elementorFrontend.elements.$window.off("resize"),elementorFrontend.isEditMode()&&(this.removeChildLifeCycleEventListeners(),elementorFrontend.elements.$window.on("elementor/dynamic/url_change",this.changeMegaMenuTitleContainerTag.bind(this))),elementorFrontend.elements.$window.off("elementor/nested-tabs/activate",this.reInitSwipers),elementorFrontend.elements.$window.off("elementor/nested-elements/activate-by-keyboard",this.changeActiveTabByKeyboard.bind(this)),elementorFrontend.elements.$window.off("elementor/mega-menu/dropdown-toggle-by-keyboard",this.onClickToggleDropdownMenuByKeyboard.bind(this)),elementorFrontend.elements.$window.off("resize",this.resizeEventHandler.bind(this)),elementorFrontend.elements.$window.off("elementor/nested-container/atomic-repeater",this.linkContainer.bind(this))}reInitSwipers(e,t){const n=t.querySelectorAll(".swiper");for(const s of n){if(!s.swiper)return;s.swiper.initialized=!1,s.swiper.init()}}resizeEventHandler(){this.resizeListener=this.handleContentContainerPosition(),this.setLayoutType(),this.setTouchMode(),this.menuHeightController.reassignMobileMenuHeight(),this.setScrollPosition();const e=this.getSettings("ariaAttributes").activeTitleSelector,t=this.elements.$tabDropdowns.filter(e).attr("data-tab-index"),n=`.elementor-element-${this.getID()} .e-n-menu .e-n-menu .e-n-menu-content > .e-con`,s=this.elements.$tabContents.filter(this.getTabContentFilterSelector(t)).not(n);this.menuHeightController.resetMenuHeight(s),this.menuHeightController.reassignMenuHeight(s)}addChildLifeCycleEventListeners(){this.lifecycleChangeListener=this.handleContentContainerChildrenChanges.bind(this),window.addEventListener("elementor/editor/element-rendered",this.lifecycleChangeListener),window.addEventListener("elementor/editor/element-destroyed",this.lifecycleChangeListener)}removeChildLifeCycleEventListeners(){window.removeEventListener("elementor/editor/element-rendered",this.lifecycleChangeListener),window.removeEventListener("elementor/editor/element-destroyed",this.lifecycleChangeListener)}handleContentContainerChildrenChanges(e){this.isNestedElementRenderedInContentContainer(e.detail.elementView)&&this.handleContentContainerPosition()}isNestedElementRenderedInContentContainer(e){const t=e==null?void 0:e.getContainer();return t?t.getParentAncestry().some(n=>this.getID().toString()===n.model.get("id").toString()):!1}getTabEvents(){const e={click:this.onTabClick.bind(this)};return this.isNeedToOpenOnClick()?e:this.replaceClickWithHover(e)}getContentEvents(){return this.isNeedToOpenOnClick()?{}:{mouseleave:this.onMouseLeave.bind(this),mousemove:this.trackMousePosition.bind(this)}}isNeedToOpenOnClick(){const e=this.getElementSettings();return this.isEdit||this.isMobileDevice()||e.open_on!=="hover"||e.item_layout==="dropdown"}isMobileDevice(){return["mobile","mobile_extra","tablet","tablet_extra"].includes(elementorFrontend.getCurrentDeviceMode())}replaceClickWithHover(e){return e.mouseenter=this.onMouseTitleEnter.bind(this),e.mouseleave=this.onMouseLeave.bind(this),e.keyup=this.setKeyboardNavigation.bind(this),e}onMouseTitleEnter(e){var t;e.preventDefault();const n=this.getSettings(),s=e==null?void 0:e.currentTarget,i=(t=s==null?void 0:s.closest(n.selectors.elementorWidgetWrapper))==null?void 0:t.getAttribute("data-id");if(this.$element[0].getAttribute("data-id")!==i)return;const o=n.ariaAttributes.titleStateAttribute,a=n.selectors.tabDropdown,l=s==null?void 0:s.querySelector(a);if((l==null?void 0:l.getAttribute(o))==="true")return;const d=l==null?void 0:l.getAttribute("data-tab-index");this.changeActiveTab(d,!0)}onClickToggleDropdownMenu(e){this.elements.$widgetContainer.attr("data-layout","dropdown");const t=this.getSettings("ariaAttributes").titleStateAttribute,n=this.elements.$dropdownMenuToggle.attr(t)==="true";typeof e!="boolean"&&(e=!n);const s=e?"true":"false";this.elements.$dropdownMenuToggle.attr(t,s),elementorFrontend.utils.events.dispatch(window,"elementor-pro/mega-menu/dropdown-open"),this.menuHeight
1790Controller.reassignMobileMenuHeight()}onClickOutsideDropdownMenu(e){var t,n,s;if(!this.isNeedToOpenOnClick())return;const i=this.getSettings(),o=i.selectors,a=`.elementor-element-${this.getID()}`,l=`> .e-con.${i.classes.active}`,d=this.elements.$menuContent.find(l).length===0,h=elementorFrontend.isEditMode()&&!document.body.contains(e==null?void 0:e.target),_=!!((t=e==null?void 0:e.target)!=null&&t.closest(`${a} ${o.widgetContainer}`));if((s=(n=e==null?void 0:e.target)==null?void 0:n.classList)!=null&&s.contains(o.menuContent.replace(".",""))){this.deactivateActiveTab();return}d||_||h||this.deactivateActiveTab()}onClickToggleDropdownMenuByKeyboard(e,t){t.widgetId.toString()===this.getID().toString()&&this.onClickToggleDropdownMenu(t.show)}addAnimationToContentIfNeeded(e){const t=this.getElementSettings("open_animation");t==="none"||t===""||this.elements.$tabContents.filter(this.getTabContentFilterSelector(e)).addClass(`animated ${t}`)}removeAnimationFromContentIfNeeded(){const e=this.getElementSettings("open_animation");e==="none"||e===""||this.elements.$tabContents.removeClass(`animated ${e}`)}trackMousePosition(e){this.prevMouseY=e==null?void 0:e.clientY}isMenuContentHovered(){const e=this.getSettings();return this.$element.find(`${e.selectors.menuContent}:hover`).length>0}isCursorInBetweenMenuTitleAndContent(e){var t,n,s;const i=this.getSettings(),o=i.selectors,a=e==null?void 0:e.currentTarget,l=(t=a==null?void 0:a.closest(o.menuItem))==null?void 0:t.querySelector(o.menuContent),d=(n=a.classList)==null?void 0:n.contains(o.tabTitle.replace(".","")),h=(s=l==null?void 0:l.classList)==null?void 0:s.contains(i.classes.active);if(!d||!h)return!1;const _=a.getBoundingClientRect(),C=l.getBoundingClientRect(),w=e.clientY;return _.bottom<=C.top?w>=_.bottom&&w<C.top:w<=_.top&&w>C.bottom}didCursorMoveSidewaysOrDown(e){return this.prevMouseY!==null&&(e==null?void 0:e.clientY)>=this.prevMouseY}isHoveredDropdownMenu(e,t){return e&&this.didCursorMoveSidewaysOrDown(t)?!1:this.isMenuContentHovered()}onMouseLeave(e){var t,n;e.preventDefault();const s=(n=(t=e==null?void 0:e.currentTarget)==null?void 0:t.classList)==null?void 0:n.contains("e-con");!this.isHoveredDropdownMenu(s,e)&&!this.isCursorInBetweenMenuTitleAndContent(e)&&this.deactivateActiveTab()}onInit(...e){if(this.menuHeightController=new elementorProFrontend.utils.DropdownMenuHeightController(this.dropdownMenuHeightControllerConfig()),super.onInit(...e),this.getSettings("autoExpand")&&this.activateDefaultTab(),Mt(this.getHorizontalScrollingSettings()),this.setTouchMode(),!elementorFrontend.isEditMode()){const t=this.getSettings("classes");this.anchorLinks=new Sn(this.elements.$anchorLink,t),this.anchorLinks.initialize(),elementorFrontend.elements.$window.on("elementor/dynamic/url_change",this.changeMegaMenuTitleContainerTag.bind(this))}this.menuToggleVisibilityListener(this.elements.$dropdownMenuToggle),this.setScrollPosition(),this.onClickOutsideDropdownMenu=this.onClickOutsideDropdownMenu.bind(this),document.addEventListener("click",this.onClickOutsideDropdownMenu),this.clickInProgress=!1}onDestroy(){document.removeEventListener("click",this.onClickOutsideDropdownMenu),elementorFrontend.elements.$window.off("elementor/dynamic/url_change")}setScrollPosition(){Mt({element:this.elements.$headingContainer[0],direction:this.getItemPosition(),justifyCSSVariable:"--n-menu-heading-justify-content",horizontalScrollStatus:this.getHorizontalScrollSetting()})}getPropsThatTriggerContentPositionCalculations(){return["content_horizontal_position","content_position","item_position_horizontal","content_width","item_layout"]}activeContainerWidthListener(e){let t=0;this.observedContainer=new ResizeObserver(n=>{var s;const i=(s=n[0].borderBoxSize)==null?void 0:s[0].inlineSize;i&&i!==t&&(t=i,t!==0&&this.handleContentContainerPosition())}),this.observedContainer.observe(e[0])}menuToggleVisibilityListener(e){let t;this.observedContainer=new ResizeObserver(n=>{var s;const i=(s=n[0].borderBoxSize)==null?void 0:s[0].inlineSize;i!==t&&(t=i,this.setLayoutType())}),this.observedContainer.observe(e[0])}onElementChange(e){this.getPropsThatTriggerContentPositionCalculations().includes(e)&&this.handleContentContainerPosition(),this.setLayoutType()}
1790onEditSettingsChange(e,t){this.getSettings().autoFocus&&e==="activeItemIndex"&&this.changeActiveTab(t,!1),this.setLayoutType()}setLayoutType(){const e=this.elements.$dropdownMenuToggle.css("display")==="none"?"horizontal":"dropdown";this.elements.$widgetContainer.attr("data-layout",e)}getHeadingEvents(){const e=this.elements.$headingContainer[0];return{mousedown:this.changeScrollStatusAndDispatch.bind(this,e),mouseup:this.changeScrollStatusAndDispatch.bind(this,e),mouseleave:this.changeScrollStatusAndDispatch.bind(this,e),mousemove:this.setHorizontalTitleScrollValuesAndDispatch.bind(this,e)}}getHorizontalScrollSetting(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"horizontal_scroll","",e)}getItemPosition(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"item_position_horizontal","",e)}changeScrollStatusAndDispatch(e,t){en(e,t),elementorFrontend.elements.$window.trigger("elementor-pro/mega-menu/heading-mouse-event")}setHorizontalTitleScrollValuesAndDispatch(e,t){ho(e,this.getHorizontalScrollSetting(),t),elementorFrontend.elements.$window.trigger("elementor-pro/mega-menu/heading-mouse-event")}linkContainer(e){const{container:t}=e.detail,n=t.model.get("id"),s=String(this.$element.data("id")),i=t.view.$el;n===s&&(this.updateIndexValues(i),this.updateListeners(i))}updateIndexValues(e){const{selectors:{directTabTitle:t,directTabContent:n}}=this.getDefaultSettings(),s=e[0],i=s.querySelectorAll(n),o=s.querySelectorAll(t),a=this.getSettings(),l=o[0].getAttribute("id").slice(0,-1);o.forEach((d,h)=>{var _,C,w,B,D,G,X;const ie=h+1,be=l+ie,H=be.replace("e-n-menu-title-","e-n-menu-content-"),Q=be.replace("e-n-menu-title-","e-n-menu-dropdown-icon-");d.setAttribute("id",be),(_=d.querySelector(a.selectors.tabDropdown))==null||_.setAttribute("data-tab-index",ie),(C=d.querySelector(a.selectors.tabDropdown))==null||C.setAttribute("id",Q),(w=d.querySelector(a.selectors.tabDropdown))==null||w.setAttribute("aria-controls",H),(B=d.querySelector(a.selectors.tabTitleText))==null||B.setAttribute("data-binding-index",ie),(D=i[h])==null||D.setAttribute("aria-labelledby",Q),(G=i[h])==null||G.setAttribute("data-tab-index",ie),(X=i[h])==null||X.setAttribute("id",H)})}updateListeners(e){const{selectors:{tabClickableTitle:t,tabDropdown:n,tabContent:s,tabTitle:i}}=this.getSettings(),o=e.find(i),a=e.find(t);this.elements.$tabTitles=e.find(t),this.elements.$tabDropdowns=e.find(n),this.elements.$tabContents=e.find(s),o.off(),a.on(this.getTabEvents()),this.clickInProgress=!1}changeMegaMenuTitleContainerTag(e){var t;const{element:n,actionName:s,value:i}=e.detail,o=n.parentNode,a=o.parentNode,l=this.maybeCreateNewElement(o,i),d=this.maybeReplaceMenuItemTitleContent(o,l,a),h=((t=n.dataset)==null?void 0:t.currentUrl)||null;this.maybeUpdateNewElementsHref(i,d),this.eCurrentClassHandler(s,a,h===i)}maybeReplaceMenuItemTitleContent(e,t,n){return t?(Array.from(e.attributes).forEach(s=>{t.setAttribute(s.name,s.value)}),t.tagName==="A"?t.classList.add("e-link","e-focus"):t.tagName==="DIV"&&t.classList.remove("e-link","e-focus"),t.innerHTML=e.innerHTML,n.replaceChild(t,e),t):e}maybeCreateNewElement(e,t){if(!t)return document.createElement("div");if(t&&e.tagName==="DIV")return document.createElement("a")}maybeUpdateNewElementsHref(e,t){e?t.setAttribute("href",e):t.removeAttribute("href")}eCurrentClassHandler(e,t,n){const{classes:{activeAnchorItem:s},postUrl:i,internalUrl:o}=this.getSettings();switch(e){case i:t.classList.add(s);break;case o:n?t.classList.add(s):t.classList.remove(s);break;default:t.classList.contains(s)&&i!==e&&t.classList.remove(s);break}}setTouchMode(){const e=this.getSettings("selectors").widgetContainer;if(elementorFrontend.isEditMode()||(event==null?void 0:event.type)==="resize"){const t=["mobile","mobile_extra","tablet","tablet_extra"],n=elementorFrontend.getCurrentDeviceMode();if(t.indexOf(n)!==-1){this.$element.find(e).attr("data-touch-mode","true");return}}else if("ontouchstart"in window){this.$element.find(e).attr("data-touch-mode","true");return}this.$element.find(e).attr("data-touch-mode","false")}getTabsDirection(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"tabs_justify_horizontal","",e)}getHorizontalScrollingSettings(){return{element:this.elements.$headingContainer[0],direction:this.getTabsDirection(),justifyCSSVariable:"--n-tabs-heading-justify-content",horizontalScrollStatus:this.getHorizontalScrollSetting()}}}})),Gl=b({default:()=>fo}),fo,Ql=g((()=>{fo=class extends elementorModules.frontend.handlers.StretchedElement{getStretchedClass(){return"elementor-widget-n-menu"}getStretchElementForConfig(){return this.$element.find(".e-n-menu-wrapper")}getStretchElementConfig(){const e=super.getStretchElementConfig();return e.cssOutput="variables",e}bindEvents(){super.bindEvents(),elementorFrontend.addListenerOnce(this.getUniqueHandlerID(),"elementor-pro/mega-menu/dropdown-open",this.stretch),elementorFrontend.elements.$window.on("elementor-pro/mega-menu/heading-mouse-event",this.stretch)}unbindEvents(){super.unbindEvents(),elementorFrontend.removeListeners(this.getUniqueHandlerID(),"elementor-pro/mega-menu/dropdown-open",this.stretch),elementorFrontend.elements.$window.off("elementor-pro/mega-menu/heading-mouse-event",this.stretch)}isStretchSettingEnabled(){return!0}isActive(){return!0}}})),Kl=b({default:()=>vo}),vo,Yl=g((()=>{Cn(),ae(),vo=class extends elementorModules.frontend.handlers.Base{constructor(...e){super(...e),V(this,"isEditorElementsChanged",!1)}__construct(...e){super.__construct(...e),this.focusableElementSelector=wn(),this.handleMenuToggleKeydown=this.handleMenuToggleKeydown.bind(this)}getDefaultSettings(){return{selectors:{widgetInnerWrapper:".e-n-menu",menuItem:".e-n-menu-item",menuItemWrapper:".e-n-menu-title",focusableMenuElement:".e-focus",itemContainer:".e-n-menu-content > .e-con, .e-n-menu-heading > .e-con",menuToggle:".e-n-menu-toggle",directTabTitle:":scope > .elementor-widget-container > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-n-menu-item > .e-n-menu-title,:scope > .e-n-menu > .e-n-menu-wrapper > .e-n-menu-heading > .e-n-menu-item > .e-n-menu-title",tabDropdown:".e-n-menu-dropdown-icon"},ariaAttributes:{titleStateAttribute:"aria-expanded",activeTitleSelector:'[aria-expanded="true"]',titleControlAttribute:"aria-controls"},datasets:{titleIndex:"data-focus-index"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$menuItemWrappers:this.findElement(e.menuItemWrapper),$focusableMenuElements:this.findElement(e.focusableMenuElement),$itemContainers:this.findElement(e.itemContainer),$focusableContainerElements:this.getFocusableElements(this.findElement(e.itemContainer)),$menuToggle:this.findElement(e.menuToggle)}}getFocusableElements(e){return e.find(this.focusableElementSelector).not('[disabled], [inert], [tabindex="-1"]')}getTitleIndex(e){const{titleIndex:t}=this.getSettings("datasets");return parseInt(e==null?void 0:e.getAttribute(t))}getTitleFilterSelector(e){const{titleIndex:t}=this.getSettings("datasets");return`[${t}="${e}"]`}getActiveTitleElement(){const e=this.getSettings("ariaAttributes").activeTitleSelector;
1790return this.elements.$focusableMenuElements.filter(e)}onInit(...e){super.onInit(...e);let t=1;this.elements.$focusableMenuElements.each((n,s)=>{s.setAttribute(this.getSettings("datasets").titleIndex,t++)})}getTitleEvents(){return{keydown:this.handleTitleKeyboardNavigation.bind(this),keyup:this.handeTitleKeyUp.bind(this)}}getContentElementEvents(){return{keydown:this.handleContentElementKeyboardNavigation.bind(this)}}bindEvents(){this.elements.$focusableMenuElements.on(this.getTitleEvents()),this.elements.$focusableContainerElements.on(this.getContentElementEvents()),elementorFrontend.elements.$window.on("keydown",this.handleMenuToggleKeydown),elementorFrontend.elements.$window.on("elementor/nested-container/atomic-repeater",this.linkContainer.bind(this))}unbindEvents(){this.elements.$focusableMenuElements.off(this.getTitleEvents()),this.elements.$focusableContainerElements.off(this.getContentElementEvents()),elementorFrontend.elements.$window.off("keydown",this.handleMenuToggleKeydown),elementorFrontend.elements.$window.off("elementor/nested-container/atomic-repeater",this.linkContainer.bind(this))}handleMenuToggleKeydown(e){e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),this.closeMenuDropdown())}handleTitleKeyboardNavigation(e){switch(e.key){case"Tab":var t;this.maybeRebindFocusableElements();const n=this.elements.$focusableMenuElements,s=!e.shiftKey,i=s&&n.last().is(jQuery(e.currentTarget)),o=!s&&n.first().is(jQuery(e.currentTarget));if(this.isDropdownLayout()&&!i&&!o)return;const a=!e.currentTarget.getAttribute("aria-expanded")||((t=e.currentTarget)===null||t===void 0?void 0:t.getAttribute("aria-expanded"))==="false";(s&&a||o)&&(this.closeActiveContentElements(),this.closeMenuDropdown());break;case"Home":case"End":this.handleTitleHomeOrEndKey(e);break;case"Enter":case" ":this.handleTitleActivationKey(e);break;case"Escape":this.handleTitleEscapeKey(e);break}}handeTitleKeyUp(e){var t;if(this.isDropdownLayout())return!0;const n=e.key==="Tab",s=!e.currentTarget.getAttribute("aria-expanded")||((t=e.currentTarget)===null||t===void 0?void 0:t.getAttribute("aria-expanded"))==="false";n&&s&&this.closeActiveContentElements()}isDropdownLayout(){const e=this.getSettings("selectors");return this.$element.find(e.widgetInnerWrapper).attr("data-layout")==="dropdown"}closeMenuDropdown(){this.isDropdownLayout()&&elementorFrontend.elements.$window.trigger("elementor/mega-menu/dropdown-toggle-by-keyboard",{widgetId:this.getID(),show:!1})}handleTitleHomeOrEndKey(e){e.preventDefault();const t=this.getTitleIndex(e.currentTarget)||1,n=this.elements.$focusableMenuElements.length,s=this.getTitleIndexFocusUpdated(e,t,n);this.setTitleFocus(s),e.stopPropagation()}handleTitleActivationKey(e){if(e.preventDefault(),this.handleTitleLinkEnterOrSpaceEvent(e))return;const t=this.getTitleIndex(e.currentTarget);elementorFrontend.elements.$window.trigger("elementor/nested-elements/activate-by-keyboard",{widgetId:this.getID(),titleIndex:t})}setTitleFocus(e){this.elements.$focusableMenuElements.filter(this.getTitleFilterSelector(e)).trigger("focus")}handleTitleLinkEnterOrSpaceEvent(e){var t;const n=(e==null||(t=e.currentTarget)===null||t===void 0||(t=t.tagName)===null||t===void 0?void 0:t.toLowerCase())==="a";if(!elementorFrontend.isEditMode()&&n){var s;e==null||(s=e.currentTarget)===null||s===void 0||s.click(),e.stopPropagation()}return n}handleTitleEscapeKey(e){e.preventDefault(),e.stopPropagation(),this.isDropdownLayout()&&(elementorFrontend.elements.$window.trigger("elementor/mega-menu/dropdown-toggle-by-keyboard",{widgetId:this.getID()}),this.setFocusToMenuToggle()),elementorFrontend.elements.$window.trigger("elementor/nested-elements/activate-by-keyboard",{widgetId:this.getID()})}setFocusToMenuToggle(){const e=this.getSettings("selectors");this.$element.find(e.menuToggle).trigger("focus")}handleContentElementKeyboardNavigation(e){switch(e.key){case"Tab":e.shiftKey||this.handleContentElementTabEvents(e);break;case"Escape":e.preventDefault(),e.stopPropagation(),this.handleContentElementEscapeEvents(e);break}}maybeRebindFocusableElements(){this.isEditorElementsChanged&&(this.elements.$focu
1790sableContainerElements.off(this.getContentElementEvents()),this.elements.$focusableContainerElements=this.getFocusableElements(this.elements.$itemContainers),this.elements.$focusableContainerElements.on(this.getContentElementEvents()),this.isEditorElementsChanged=!1)}handleContentElementTabEvents(e){const t=this.getSettings("selectors"),n=jQuery(e.currentTarget),s=t.itemContainer,i=n.closest(s),o=this.getFocusableElements(i).last();if(!n.is(o))return;this.isDropdownLayout()||this.closeActiveContentElements();const a=t.menuItem,l=i.closest(a).next(a).length===0;this.isDropdownLayout()&&l&&(this.closeActiveContentElements(),this.closeMenuDropdown())}handleContentElementEscapeEvents(){this.getActiveTitleElement().trigger("focus"),this.closeActiveContentElements()}closeActiveContentElements(){elementorFrontend.elements.$window.trigger("elementor/nested-elements/activate-by-keyboard",{widgetId:this.getID()})}linkContainer(e){const{container:t}=e.detail,n=t.model.get("id"),s=String(this.$element.data("id")),i=t.view.$el;n===s&&(this.updateIndexValues(i),this.updateListeners(i))}updateIndexValues(e){const{selectors:{directTabTitle:t,tabDropdown:n}}=this.getDefaultSettings(),s=e[0].querySelectorAll(t);let i=1;s.forEach(o=>{o.querySelector("a")&&o.querySelector("a").setAttribute("data-focus-index",i++),o.querySelector(n)&&o.querySelector(n).setAttribute("data-focus-index",i++)})}updateListeners(e){this.elements.$focusableMenuElements.off();const{selectors:{focusableMenuElement:t,itemContainer:n}}=this.getSettings();this.elements.$focusableMenuElements=e.find(t),this.elements.$itemContainers=e.find(n),this.elements.$focusableMenuElements.on(this.getTitleEvents()),this.isEditorElementsChanged=!0}}})),Xl=(ft=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("mega-menu",[()=>v(()=>Promise.resolve().then(()=>(Ul(),Vl)),void 0),()=>v(()=>Promise.resolve().then(()=>(Ql(),Gl)),void 0),()=>v(()=>Promise.resolve().then(()=>(Yl(),Kl)),void 0)])}},f(ft,"default"),ft),Jl=b({default:()=>_o}),_o,Zl=g((()=>{_e(),he(),_o=class extends elementorModules.frontend.handlers.CarouselBase{getDefaultSettings(){const e=super.getDefaultSettings();return e.selectors.carousel=".e-n-carousel",e.selectors.slidesWrapper=".e-n-carousel > .swiper-wrapper",e}getSwiperSettings(){const e=super.getSwiperSettings(),t=this.getElementSettings(),n=elementorFrontend.config.is_rtl,s=`.elementor-element-${this.getID()}`;return elementorFrontend.isEditMode()&&(delete e.autoplay,e.loop=!1,e.noSwipingSelector=".swiper-slide > .e-con .elementor-element"),t.arrows==="yes"&&(e.navigation={prevEl:n?`${s} .elementor-swiper-button-next`:`${s} .elementor-swiper-button-prev`,nextEl:n?`${s} .elementor-swiper-button-prev`:`${s} .elementor-swiper-button-next`}),this.applySwipeOptions(e),e}onInit(...e){var t=()=>super.onInit,n=this;return ee(function*(){n.wrapSlideContent(),t().call(n,...e),n.ranElementHandlers=!1})()}initSwiper(){var e=this;return ee(function*(){const t=elementorFrontend.utils.swiper;e.swiper=yield new t(e.elements.$swiperContainer,e.getSwiperSettings()),e.elements.$swiperContainer.data("swiper",e.swiper)})()}handleElementHandlers(){this.ranElementHandlers||!this.swiper||(ve(Array.from(this.swiper.slides).filter(e=>e.classList.contains(this.swiper.params.slideDuplicateClass))),this.ranElementHandlers=!0)}wrapSlideContent(){if(!elementorFrontend.isEditMode())return;const e=this.getSettings(),t=e.selectors.slideContent.replace(".",""),n=this.$element;let s=1;this.findElement(`${e.selectors.slidesWrapper} > .e-con`).each(function(){const i=jQuery(this),o=i.closest("div").hasClass(t),a=n.find(`${e.selectors.slidesWrapper} > .${t}:nth-child(${s})`);o||a.append(i),s++})}togglePauseOnHover(e){elementorFrontend.isEditMode()||super.togglePauseOnHover(e)}getChangeableProperties(){return{arrows_position:"arrows_position"}}
1790applySwipeOptions(e){this.isTouchDevice()?(e.touchRatio=1,e.longSwipesRatio=.3,e.followFinger=!0,e.threshold=10):e.shortSwipes=!1}isTouchDevice(){return elementorFrontend.utils.environment.isTouchDevice}linkContainer(e){var t=this;return ee(function*(){const{container:n,index:s,targetContainer:i,action:{type:o}}=e.detail,a=n.view.$el;if(n.model.get("id")===t.$element.data("id")){const{$slides:l}=t.getDefaultElements();let d,h;switch(o){case"move":[d,h]=t.move(a,s,i,l);break;case"duplicate":[d,h]=t.duplicate(a,s,i,l);break;default:break}d!==void 0&&d.appendChild(h),t.shouldHideNavButtons(a,l),t.updateIndexValues(l);const _=t.swiper&&!t.swiper.destroyed,C=l.length>1;!_&&C?yield t.initSwiper():_&&!C&&t.swiper.destroy(!0),t.updateListeners()}})()}updateListeners(){this.swiper.initialized=!1,this.swiper.init()}move(e,t,n,s){return[s[t],n.view.$el[0]]}duplicate(e,t,n,s){return[s[t+1],n.view.$el[0]]}updateIndexValues(e){e.each((t,n)=>{const s=t+1;n.setAttribute("data-slide",s)})}bindEvents(){super.bindEvents(),elementorFrontend.elements.$window.on("elementor/nested-container/atomic-repeater",this.linkContainer.bind(this))}shouldHideNavButtons(e,t){var n;const s=e[0].querySelectorAll(".elementor-swiper-button"),i=t.length===1;i!==((n=s[0])===null||n===void 0?void 0:n.classList.contains("hide"))&&s.forEach(o=>{o.classList.toggle("hide",i)})}}})),ec=(vt=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("nested-carousel",()=>v(()=>Promise.resolve().then(()=>(Zl(),Jl)),void 0))}},f(vt,"default"),vt);Gn();var tc=class{constructor(){this.widgets={}}get(){return this.widgets}getWidget(e){return this.widgets[e]}setWidget(e,t){this.widgets[e]=t}unsetWidget(e){delete this.widgets[e]}getFilters(e){return this.getWidget(e).filters}getFilter(e,t){return this.getWidget(e).filters[t]}setFilter(e,t,n){this.getWidget(e).filters[t]=n}unsetFilter(e,t){delete this.getWidget(e).filters[t]}getFilterTerms(e,t){var n;return(n=this.getFilter(e,t).filterData.terms)!==null&&n!==void 0?n:[]}setFilterTerms(e,t,n){this.getFilter(e,t).filterData.terms=n}getConsolidatedFilters(e){return this.getWidget(e).consolidatedFilters}setConsolidatedFilters(e,t){this.getWidget(e).consolidatedFilters=t}addWidget(e){this.setWidget(e,{filters:{},consolidatedFilters:{}})}maybeInitializeWidget(e){this.getWidget(e)||this.addWidget(e)}maybeInitializeFilter(e,t){this.getFilter(e,t)||this.setFilter(e,t,{filterData:{terms:[]}})}consolidateFilters(e){const t=this.getFilters(e),n={};for(const i in t){const o=t[i],a=o.filterType,l=o.filterData;if(l.terms.length!==0&&(n[a]||(n[a]={}),n[a][l.selectedTaxonomy]||(n[a][l.selectedTaxonomy]=[]),l.terms&&(!n[a][l.selectedTaxonomy].terms||!n[a][l.selectedTaxonomy].terms.includes(l.terms))&&(n[a][l.selectedTaxonomy]={terms:l.terms==="string"?[l.terms]:l.terms}),l.logicalJoin&&!n[a][l.selectedTaxonomy].logicalJoin)){var s;n[a][l.selectedTaxonomy]=ce(ce({},n[a][l.selectedTaxonomy]||{}),{},{logicalJoin:(s=l.logicalJoin)!==null&&s!==void 0?s:"AND"})}}this.setConsolidatedFilters(e,n)}},bo=Ss(((e,t)=>{var n={AND:{separator:{decoded:"+",fromBrowser:" ",encoded:"%2B"},operator:"AND"},OR:{separator:{decoded:"~",fromBrowser:"~",encoded:"%7C"},operator:"IN"},NOT:{separator:{decoded:"!",fromBrowser:"!",encoded:"%21"},operator:"NOT IN"},DISABLED:{separator:{decoded:"",fromBrowser:"",encoded:""},operator:"AND"}};t.exports={queryConstants:n}}));_e(),uo();var Pt=bo(),nc=class extends elementorModules.Module{constructor(){super(),this.loopWidgetsStore=new tc}removeFilterFromLoopWidget(e,t,n="",s=""){if(!this.loopWidgetsStore.getWidget(e)){this.loopWidgetsStore.addWidget(e),this.refreshLoopWidget(e,t);return}if(n===s&&this.loopWidgetsStore.unsetFilter(e,t),n!==s){const i=this.loopWidgetsStore.getFilterTerms(e,t).filter(function(o){return o!==n});this.loopWidgetsStore.setFilterTerms(e,t,i)}this.refreshLoopWidget(e,t)}setFilterDataForLoopWidget(e,t,n,s=!0,i="DISABLED"){var o;this.loopWidgetsStore.maybeInitializeWidget(e),this.loopWidgetsStore.maybeInitializeFilter(e,t);const a=this.validateMultipleFilterOperator(i);if(a!=="DISABLED"){const l=(o=this.loopWidgetsStore.getFilterTerms(e,t))!=null?o:[],d=n.filterData.terms;n.filterData.terms=[...new Set([...l,...d])],n.filterData.logicalJoin=a}if(this.loopWidgetsStore.setFilter(e,t,n),s){this.refreshLoopWidget(e,t);return}this.loopWidgetsStore.consolidateFilters(e)}validateMultipleFilterOperator(e){return!e||!["AND","OR"].includes(e)?"DISABLED":e}
1790getQueryStringInObjectForm(){var e;const t={};for(const n in this.loopWidgetsStore.get()){const s=this.loopWidgetsStore.getWidget(n);for(const i in s.consolidatedFilters){const o=s.consolidatedFilters[i];for(const a in o){const l=Pt.queryConstants[(e=o[a].logicalJoin)!=null?e:"AND"].separator.decoded;t[`e-filter-${n}-${a}`]=Object.values(o[a].terms).join(l)}}}return t}updateURLQueryString(e,t){const n=new URL(window.location.href).searchParams,s=this.getQueryStringInObjectForm(),i=new URLSearchParams;n.forEach((l,d)=>{d.startsWith("e-filter")||i.append(d,l),d.startsWith("e-page-"+e)&&i.delete(d)});for(const l in s)i.set(l,s[l]);let o=i.toString();o=o.replace(new RegExp(`${Pt.queryConstants.AND.separator.encoded}`,"g"),Pt.queryConstants.AND.separator.decoded),o=o.replace(new RegExp(`${Pt.queryConstants.OR.separator.encoded}`,"g"),Pt.queryConstants.OR.separator.decoded);const a=this.getFilterHelperAttributes(t);a.pageNum>1?o=o?this.formatQueryString(a.baseUrl,o):a.baseUrl:o=o?`?${o}`:location.pathname,history.pushState(null,null,o)}formatQueryString(e,t){const n=e.includes("?")?new URLSearchParams(e.split("?")[1]):new URLSearchParams,s=new URLSearchParams(t);for(const o of n.keys())s.has(o)&&s.delete(o);for(const o of["page","paged"])n.delete(o),s.delete(o);const i=new URLSearchParams(n.toString());for(const[o,a]of s.entries())i.append(o,a);return e.split("?")[0]+(i.toString()?`?${i.toString()}`:"")}getFilterHelperAttributes(e){const t=document.querySelector('[data-id="'+e+'"]');return t?t.querySelector(".e-filter").dataset:{baseUrl:location.href,pageNum:1}}prepareLoopUpdateRequestData(e,t){const n=this.loopWidgetsStore.getConsolidatedFilters(e),s=this.getFilterHelperAttributes(t),i={post_id:this.getClosestDataElementorId(document.querySelector(`.elementor-element-${e}`))||elementorFrontend.config.post.id,widget_filters:n,widget_id:e,pagination_base_url:s.baseUrl};return elementorFrontend.isEditMode()&&(i.widget_model=window.top.$e.components.get("document").utils.findContainerById(e).model.toJSON({remove:["default","editSettings","defaultEditSettings"]}),i.is_edit_mode=!0),i}getClosestDataElementorId(e){const t=e==null?void 0:e.closest("[data-elementor-id]");return t?t.getAttribute("data-elementor-id"):null}getFetchArgumentsForLoopUpdate(e,t){var n,s;const i=this.prepareLoopUpdateRequestData(e,t),o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)};return elementorFrontend.isEditMode()&&((n=elementorPro.config.loopFilter)!=null&&n.nonce)&&(o.headers["X-WP-Nonce"]=(s=elementorPro.config.loopFilter)==null?void 0:s.nonce),o}fetchUpdatedLoopWidgetMarkup(e,t){return fetch(`${elementorProFrontend.config.urls.rest}elementor-pro/v1/refresh-loop`,this.getFetchArgumentsForLoopUpdate(e,t))}createElementFromHTMLString(e){const t=document.createElement("div");return e?(t.innerHTML=e.trim(),t.firstElementChild):(t.classList.add("elementor-widget-container"),t)}refreshLoopWidget(e,t){this.loopWidgetsStore.consolidateFilters(e),this.updateURLQueryString(e,t);const n=document.querySelector(`.elementor-element-${e}`);if(n)return this.ajaxHelper||(this.ajaxHelper=new Yn),this.ajaxHelper.addLoadingAnimationOverlay(e),this.fetchUpdatedLoopWidgetMarkup(e,t).then(s=>!(s instanceof Response)||!(s!=null&&s.ok)||400<=(s==null?void 0:s.status)?{}:s.json()).catch(()=>({})).then(s=>{if(!(s!=null&&s.data)&&(s==null?void 0:s.data)!=="")return;const i=n.querySelector(".elementor-widget-container"),o=this.createElementFromHTMLString(s.data);n.replaceChild(o,i),this.handleElementHandlers(n),ElementorProFrontendConfig.settings.lazy_load_background_images&&document.dispatchEvent(new Event("elementor/lazyload/observe")),elementorFrontend.elementsHandler.runReadyTrigger(document.querySelector(`.elementor-element-${e}`)),n.classList.remove("e-loading")}).finally(()=>{this.ajaxHelper.removeLoadingAnimationOverlay(e)})}handleElementHandlers(e){ve(e.querySelectorAll(".e-loop-item"))}},sc=b({default:()=>So}),tn,So,ic=g((()=>{go(),tn=bo(),So=class extends elementorModules.frontend.handlers.Base{constructor(...e){super(...e),this.resizeListenerNestedTabs=null}getDefaultSettings(){return{selectors:{item:".e-filter-item",container:".e-filter"},filterValues:{default:"__all"}}}getDefaultElements(){return{$filterButtons:this.$element.find(this.getSettings("selectors.item")),$container:this.$element.find(this.getSettings("selectors.container"))}}getHeadingEvents(){const e=this.elements.$container[0];return{mousedown:en.bind(this,e),mouseup:en.bind(this,e),mouseleave:en.bind(this,e),mousemove:ho.bind(this,e,this.getHorizontalScrollSetting())}}bindEvents(){this.elements.$filterButtons.on("click",this.onFilterButtonClick.bind(this)),this.elements.$container.on(this.getHeadingEvents());const e={element:this.elements.$container[0],direction:this.getItemsAlignment(),justifyCSSVariable:"--e-filter-justify-content",horizontalScrollStatus:this.getHorizontalScrollSetting()};this.resizeListenerNestedTabs=Mt.bind(this,e),elementorFrontend.elements.$window.on("resize",this.resizeListenerNestedTabs)}onElementChange(e){this.checkSliderPropsToWatch(e)&&Mt({element:this.elements.$container[0],direction:this.getItemsAlignment(),justifyCSSVariable:"--e-filter-justify-content",horizontalScrollStatus:this.getHorizontalScrollSetting()})}checkSliderPropsToWatch(e){return e.indexOf("horizontal_scroll")===0||e.indexOf("item_al
1790ignment_horizontal")===0}getFilterButtonElements(){var e;return(e=this.elements)!=null&&e.$filterButtons.length?this.elements.$filterButtons:(this.elements=this.getDefaultElements(),this.bindEvents(),this.elements.$filterButtons)}getActiveFilterButtonElements(){return this.getFilterButtonElements().filter('[aria-pressed="true"]')}activateFilterButton(e){const t=this.getFilterButtonElements(),n=this.getElementSettings("multiple_selection")==="yes";if(!t.length)return;const s=this.getSettings("filterValues.default");(!n||s===e)&&t.attr("aria-pressed",!1),t.filter('[data-filter="'+e+'"]').attr("aria-pressed",!0);const i=this.getCurrentlyActiveFilter();i&&i.includes(s)&&s!==e&&this.deactivateDefaultFilterButton(t)}deactivateFilterButton(e){const t=this.getFilterButtonElements(),n=this.getElementSettings("multiple_selection")==="yes";if(!t.length)return;const s=t.filter('[data-filter="'+e+'"]'),i=this.getSettings("filterValues.default"),o=this.getCurrentlyActiveFilter(),a=!n||!o.includes(i)&&o.length===1;s.attr("aria-pressed",!1),a&&this.activateDefaultFilterButton(),elementorProFrontend.modules.taxonomyFilter.removeFilterFromLoopWidget(this.getElementSettings("selected_element"),this.getID(),e,i)}activateDefaultFilterButton(){const e=this.getFilterButtonElements(),t=e.filter('[data-filter="'+this.getSettings("filterValues.default")+'"]');e.attr("aria-pressed",!1),t.attr("aria-pressed",!0)}deactivateDefaultFilterButton(){this.getFilterButtonElements().filter('[data-filter="'+this.getSettings("filterValues.default")+'"]').attr("aria-pressed",!1)}getCurrentlyActiveFilter(){const e=this.getActiveFilterButtonElements(),t=[];for(let n=0;n<e.length;n++)t.push(e[n].dataset.filter);return t}getFilterOperator(){const e=this.getElementSettings();return!e.multiple_selection||!["AND","OR"].includes(e.logical_combination)?"DISABLED":e.logical_combination}filterItems(e){const t=this.getElementSettings(),n=this.getSettings("filterValues.default");if(n===e){elementorProFrontend.modules.taxonomyFilter.removeFilterFromLoopWidget(t.selected_element,this.getID(),e,n);return}const s=this.getFilterOperator();elementorProFrontend.modules.taxonomyFilter.setFilterDataForLoopWidget(t.selected_element,this.getID(),{filterType:"taxonomy",filterData:{selectedTaxonomy:t.taxonomy,terms:[e]}},!0,s)}setFilter(e=this.getSettings("filterValues.default")){this.filterItems(e),this.activateFilterButton(e)}onFilterButtonClick(e){var t,n;this.removePaginationHiddenClassOnLoopWidgetContainer();const s=this.getCurrentlyActiveFilter(),i=(n=(t=e.currentTarget)==null?void 0:t.dataset)==null?void 0:n.filter;if(!this.userClickedOnAllWhileItWasActive(i,s)){if(s.includes(i)){this.deactivateFilterButton(i);return}this.setFilter(i)}}removePaginationHiddenClassOnLoopWidgetContainer(){const e=this.getElementSettings(),t=document.querySelector(".elementor-element-"+e.selected_element);t&&t.classList.remove("e-load-more-pagination-end")}userClickedOnAllWhileItWasActive(e,t){return t.includes(e)&&e===this.getSettings("filterValues.default")}onDestroy(){const e=this.getElementSettings("selected_element"),t=this.getElementSettings("taxonomy"),n=this.getID();e&&t&&elementorProFrontend.modules.taxonomyFilter.removeFilterFromLoopWidget(e,n,""),super.onDestroy()}populateLoopWidgetsStoreOnInitialPageLoad(){const e=this.getElementSettings();let t=new URLSearchParams(window.location.search).get("e-filter-"+e.selected_element+"-"+e.taxonomy);if(t){t=this.getTermsFromParams(t);const n=this.getFilterOperator();elementorProFrontend.modules.taxonomyFilter.setFilterDataForLoopWidget(e.selected_element,this.getID(),{filterType:"taxonomy",filterData:{selectedTaxonomy:e.taxonomy,terms:t}},!1,n)}}getTermsFromParams(e){let t=tn.queryConstants.AND.separator.fromBrowser;return e.includes(tn.queryConstants.OR.separator.fromBrowser)&&(t=tn.queryConstants.OR.separator.fromBrowser),e.split(t)}onInit(){super.onInit(),this.populateLoopWidgetsStoreOnInitialPageLoad(),Mt({element:this.elements.$container[0],direction:this.getItemsAlignment(),justifyCSSVariable:"--e-filter-justify-content",horizontalScrollStatus:this.getHorizontalScrollSetting()})}getHorizontalScrollSetting(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"horizontal_scroll","",e)}getItemsAlignment(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"item_alignment_horizontal","",e)}}})),oc=class extends nc{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("taxonomy-filter",()=>v(()=>Promise.resolve().then(()=>(ic(),sc)),void 0))}},rc=b({default:()=>yo}),yo,ac=g((()=>{si(),_e(),ae(),yo=class extends elementorModules.frontend.handlers.Base{constructor(...e){super(...e),V(this,"keyboardHandler",null),V(this,"isOffCanvasOpenedOnce",!1)}getDefaultSettings(){return{selectors:{wrapper:".e-off-canvas",overlay:".e-off-canvas__overlay",main:".e-off-canvas__main",content:".e-off-canvas__content",body:"body"}}}getDefaultElements(){const e=this.getSettings();return{$wrapper:this.$element.find(e.selectors.wrapper),$overlay:this.$element.find(e.selectors.overlay),$main:this.$element.find(e.selectors.main),$content:this.$element.find(e.selectors.content),$body:jQuery(e.selectors.body)}}onInit(){super.onInit(),this.initAriaAttributesToTriggerElements(),this.isEditingMode()?this.maybeDisableScroll():this.addClassToPreviousSiblingInsideASection()}onDestroy(){super.onDestroy(),this.enableScroll()}bindEvents(){this.elements.$overlay.on("click",e=>{e.preventDefault(),this.onClickOverlay(e)}),elementorFrontend.elements.$window.on("keydown",this.onCanvasKeyDown.bind(this)),this.elements.$main.on("animationend animationcancel",this.removeAnimationClasses.bind(this)),elementorFrontend.elements.$window.on("elementor-pro/off-canvas/toggle-display-mode",this.handleDisplayToggle.bind(this))}unbindEvents(){this.elements.$overlay.off(),this.elements.$main.off(),elementorFrontend.elements.$window.off("keydown",this.onCanvasKeyDown),elementorFrontend.elements.$window.off("elementor-pro/off-canvas/toggle-display-mode")}handleDisplayToggle(e){var t;if(e.originalEvent.detail.id!==this.getWidgetId())return;const n=e.originalEvent.detail.displayMode,s=this.isVisible()?"open":"close",i=(e==null||(t=e.originalEvent)===null||t===void 0||(t=t.detail)===null||t===void 0||(t=t.previousEvent)===null||t===void 0?void 0:t.pointerType)==="";n==="open"?this.openOffCanvas(i):n==="close"?this.closeOffCanvas():n==="toggle"&&this[s==="open"?"closeOffCanvas":"openOffCanvas"](i)}openOffCanvas(e=!1){this.isVisible()||this.isInsideCarousel()||(this.elements.$wrapper.attr("aria-hidden","false"),this.elements.$wrapper.removeAttr("inert"),this.elements.$wrapper.removeAttr("data-delay-child-handlers"),this.updateAriaExpandedOfTriggerElements("true"),this.toggleDraggable(!1),this.maybeOnOpenAnimation(),this.maybeDisableScroll(),this.handleElementHandlers(),e&&this.handleKeyboardA11y())}handleKeyboardA11y(){this.initKeyboardHandler(),this.keyboardHandler.onOpenModal()}closeOffCanvas(){this.isVisible()&&(this.maybeOnCloseAnimation(),this.elements.$wrapper.attr("aria-hidden","true"),this.elements.$wrapper.attr("inert",""),this.updateAriaExpandedOfTriggerElements("false"),this.toggleDraggable(!0),this.enableScroll())}onCanvasKeyDown(e){e.key!=="Escape"||this.getElementSettings("is_not_close_on_esc_overlay")==="yes"||this.closeOffCanvas()}onClickOverlay(){this.getElementSettings().is_not_close_on_overlay==="yes"||this.isEditingMode()||this.closeOffCanvas()}maybeOnOpenAnimation(){const e=this.getResponsiveSetting("entrance_animation")||"none";e==="none"?this.elements.$wrapper.addClass("no-animation"):this.elements.$wrapper.removeClass("no-animation"),this.elements.$main.addClass(`animated ${e}`),this.elements.$wrapper.removeClass("animated-reverse-wrapper")}maybeOnCloseAnimation(){const e=this.getResponsiveSetting("exit_animation")||"none";e==="none"?this.elements.$wrapper.addClass("no-animation"):this.elements.$wrapper.removeClass("no-animation"),this.elements.$main.addClass(`animated reverse ${e}`),this.elements.$wrapper.addClass("animated-reverse-wrapper"),this.elements.$body.addClass("e-off-canvas__no-scroll-animation")}removeAnimationClasses(){const e=this.elements.$main.hasClass("reverse"),t=this.getResponsiveSetting("entrance_animation")||"none",n=this.getResponsiveSetting("exit_animation")||"none";if(e){var s;this.elements.$main.removeClass(`animated reverse ${n}`),this.elements.$wrapper.removeClass("animated-reverse-wrapper"),this.elements.$body.removeClass("e-off-canvas__no-scroll-animation"),(s=this.keyboardHandler)===null||s===void 0||s.onCloseModal()}else this.elements.$main.removeClass(`animated ${t}`)}getResponsiveSetting(e){const t=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),e,"",t)}isEditingMode(){return this.getElementSettings("editing_mode")==="yes"&&elementorFrontend.isEditMode()}maybeDisableScroll(){this.getElementSettings("prevent_scroll")==="yes"&&this.elements.$body.addClass("e-off-canvas__no-scroll")}enableScroll(){this.elements.$body.removeClass("e-off-canvas__no-scroll")}toggleDraggable(e){elementorFrontend.isEditMode()&&this.elements.$overlay.css("opacity")!=="0"&&this.$element.attr("draggable",e)}handleEditingModeToggle(){this.getElementSettings("editing_mode")==="yes"?this.openOffCanvas():this.closeOffCanvas()}getKeyboardHandlingConfig(){return{$modalElements:this.elements.$wrapper,$elementWrapper:this.elements.$content,modalType:"off-canvas",modalId:this.getID()}}initAriaAttributesToTriggerElements(){this.getTriggerElements().forEac
1790h(e=>{e.setAttribute("aria-controls",`off-canvas-${this.getID()}`),e.setAttribute("aria-expanded","false")})}getTriggerElements(){const e=elementorFrontend.elements.window.document.body.querySelectorAll("a"),t=Array.from(e).filter(s=>{var i;return(i=s.href)===null||i===void 0?void 0:i.includes("elementor-action")}),n=[];return t.forEach(s=>{if(!this.isActionUrlIdEqualToWidgetId(s.href))return!1;n.push(s)}),n}updateAriaExpandedOfTriggerElements(e){elementorFrontend.elements.window.document.body.querySelectorAll(`[aria-controls="off-canvas-${this.getID()}"]`).forEach(t=>{t.setAttribute("aria-expanded",e)})}isActionUrlIdEqualToWidgetId(e){const t=decodeURIComponent(e);let n={};const s=t.match(/settings=(.+)/);return s&&(n=JSON.parse(atob(s[1]))),this.getID()===(n==null?void 0:n.id)}isVisible(){return this.elements.$wrapper.attr("aria-hidden")==="false"}maybeDragWidgetsBeneathOverlay(){this.elements.$overlay.toggleClass("no-pointer-events")}onElementChange(e){e==="editing_mode"&&this.handleEditingModeToggle(),e==="has_overlay"&&this.maybeDragWidgetsBeneathOverlay("has_overlay")}handleElementHandlers(){this.isOffCanvasOpenedOnce||(ve(this.elements.$main[0].querySelectorAll(".e-off-canvas__content")),this.isOffCanvasOpenedOnce=!0)}initKeyboardHandler(){this.keyboardHandler||(this.keyboardHandler=new En(this.getKeyboardHandlingConfig()))}addClassToPreviousSiblingInsideASection(){if(!this.$element[0].closest(".elementor-section"))return;const e=this.$element[0].previousElementSibling;e==null||e.classList.add("e-element-before-off-canvas")}getWidgetId(){if(!(this.$element.closest(".e-loop-item").length>0))return this.getID().toString();const e=this.elements.$wrapper.attr("id");return e?e.replace("off-canvas-",""):this.getID().toString()}isInsideCarousel(){return this.$element.closest(".swiper-wrapper").length>0}}})),lc=(_t=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("off-canvas",()=>v(()=>Promise.resolve().then(()=>(ac(),rc)),void 0)),elementorFrontend.on("components:init",()=>this.onFrontendComponentsInit())}onFrontendComponentsInit(){this.addUrlActions()}addUrlActions(){elementorFrontend.utils.urlActions.addAction("off_canvas:open",t=>{this.toggleOffCanvasDisplay(t)}),elementorFrontend.utils.urlActions.addAction("off_canvas:close",t=>{this.toggleOffCanvasDisplay(t)}),elementorFrontend.utils.urlActions.addAction("off_canvas:toggle",t=>{this.toggleOffCanvasDisplay(t)})}toggleOffCanvasDisplay(t){window.dispatchEvent(new CustomEvent("elementor-pro/off-canvas/toggle-display-mode",{detail:t}))}},f(_t,"default"),_t),Ot=Ss(((e,t)=>{t.exports=elementorModules.ViewModule.extend({$element:null,editorListeners:null,onElementChange:null,onEditSettingsChange:null,onPageSettingsChange:null,isEdit:null,__construct(n){this.isActive(n)&&(this.$element=n.$element,this.isEdit=this.$element.hasClass("elementor-element-edit-mode"),this.isEdit&&this.addEditorListeners())},isActive(){return!0},isElementInTheCurrentDocument(){return elementorFrontend.isEditMode()?elementor.documents.currentDocument.id.toString()===this.$element[0].closest(".elementor").dataset.elementorId:!1},findElement(n){var s=this.$element;return s.find(n).filter(function(){return jQuery(this).parent().closest(".elementor-element").is(s)})},getUniqueHandlerID(n,s){return n||(n=this.getModelCID()),s||(s=this.$element),n+s.attr("data-element_type")+this.getConstructorID()},initEditorListeners(){var n=this;if(n.editorListeners=[{event:"element:destroy",to:elementor.channels.data,callback(s){s.cid===n.getModelCID()&&n.onDestroy()}}],n.onElementChange){const s=n.getWidgetType()||n.getElementType();let i="change";s!=="global"&&(i+=":"+s),n.editorListeners.push({event:i,to:elementor.channels.editor,callback(o,a){n.getUniqueHandlerID(a.model.cid,a.$el)===n.getUniqueHandlerID()&&n.onElementChange(o.model.get("name"),o,a)}})}n.onEditSettingsChange&&n.editorListeners.push({event:"change:editSettings",to:elementor.channels.editor,callback(s,i){if(i.model.cid!==n.getModelCID())return;const o=Object.keys(s.changed)[0];n.onEditSettingsChange(o,s.changed[o])}}),["page"].forEach(function(s){var i="on"+s[0].toUpperCase()+s.slice(1)+"SettingsChange";n[i]&&n.editorListeners.push({event:"change",to:elementor.settings[s].model,callback(o){n[i](o.changed)}})})},getEditorListeners(){return this.editorListeners||this.initEditorListeners(),this.editorListeners},addEditorListeners(){var n=this.getUniqueHandlerID();
1790this.getEditorListeners().forEach(function(s){elementorFrontend.addListenerOnce(n,s.event,s.callback,s.to)})},removeEditorListeners(){var n=this.getUniqueHandlerID();this.getEditorListeners().forEach(function(s){elementorFrontend.removeListeners(n,s.event,null,s.to)})},getElementType(){return this.$element.data("element_type")},getWidgetType(){const n=this.$element.data("widget_type");if(n)return n.split(".")[0]},getID(){return this.$element.data("id")},getModelCID(){return this.$element.data("model-cid")},getElementSettings(n){let s={};const i=this.getModelCID();if(this.isEdit&&i){const o=elementorFrontend.config.elements.data[i],a=o.attributes;let l=a.widgetType||a.elType;a.isInner&&(l="inner-"+l);let d=elementorFrontend.config.elements.keys[l];d||(d=elementorFrontend.config.elements.keys[l]=[],jQuery.each(o.controls,(h,_)=>{(_.frontend_available||_.editor_available)&&d.push(h)})),jQuery.each(o.getActiveControls(),function(h){if(d.indexOf(h)!==-1){let _=a[h];_.toJSON&&(_=_.toJSON()),s[h]=_}})}else s=this.$element.data("settings")||{};return this.getItems(s,n)},getEditSettings(n){var s={};return this.isEdit&&(s=elementorFrontend.config.elements.editSettings[this.getModelCID()].attributes),this.getItems(s,n)},getCurrentDeviceSetting(n){return elementorFrontend.getCurrentDeviceSetting(this.getElementSettings(),n)},onInit(){this.isActive(this.getSettings())&&elementorModules.ViewModule.prototype.onInit.apply(this,arguments)},onDestroy(){this.isEdit&&this.removeEditorListeners(),this.unbindEvents&&this.unbindEvents()}})})),wo,Bt,nn=g((()=>{wo=It(Ot()),ae(),Bt=class extends wo.default{constructor(...e){super(...e),V(this,"clicks",[])}getDefaultSettings(){return{selectors:{contentWrapper:".e-contact-buttons__content-wrapper",contentWrapperFloatingBars:".e-floating-bars",floatingBarCouponButton:".e-floating-bars__coupon-button",floatingBarsHeadline:".e-floating-bars__headline",contactButtonsVar4:".e-contact-buttons__contact-icon-link",contactButtonsVar5:".e-contact-buttons__chat-button",contactButtonsVar6:".e-contact-buttons-var-6",contactButtonsVar8:".e-contact-buttons-var-8",elementorWrapper:'[data-elementor-type="floating-buttons"]',contactButtonCore:".e-contact-buttons__send-button"}}}getDefaultElements(){const e=this.getSettings("selectors");return{contentWrapper:this.$element[0].querySelector(e.contentWrapper),contentWrapperFloatingBars:this.$element[0].querySelector(e.contentWrapperFloatingBars),contactButtonsVar5:this.$element[0].querySelector(e.contactButtonsVar5),contactButtonsVar6:this.$element[0].querySelector(e.contactButtonsVar6)}}bindEvents(){this.elements.contentWrapper&&this.elements.contentWrapper.addEventListener("click",this.onChatButtonTrackClick.bind(this)),this.elements.contactButtonsVar5&&this.elements.contactButtonsVar5.addEventListener("click",this.onChatButtonTrackClick.bind(this)),this.elements.contactButtonsVar6&&this.elements.contactButtonsVar6.addEventListener("click",this.onChatButtonTrackClick.bind(this)),this.elements.contentWrapperFloatingBars&&this.elements.contentWrapperFloatingBars.addEventListener("click",this.onChatButtonTrackClick.bind(this)),window.addEventListener("beforeunload",()=>{this.clicks.length>0&&this.sendClicks()})}onChatButtonTrackClick(e){const t=e.target||e.srcElement,n=this.getSettings("selectors"),s=[n.contactButtonsVar4,n.contactButtonsVar6,n.floatingBarCouponButton,n.floatingBarsHeadline,n.contactButtonCore];for(const i of s)(t.matches(i)||t.closest(i))&&this.getDocumentIdAndTrack(t,n);(t.matches(n.contactButtonsVar5)||t.closest(n.contactButtonsVar5))&&t.closest(".e-contact-buttons-var-5")&&this.getDocumentIdAndTrack(t,n)}getDocumentIdAndTrack(e,t){const n=e.closest(t.elementorWrapper).dataset.elementorId;this.trackClick(n)}trackClick(e){e&&(this.clicks.push(e),this.clicks.length>=10&&this.sendClicks())}sendClicks(){var e,t;const n=new FormData;n.append("action","elementor_send_clicks"),n.append("_nonce",(e=elementorFrontendConfig)===null||e===void 0||(e=e.nonces)===null||e===void 0?void 0:e.floatingButtonsClickTracking),this.clicks.forEach(s=>n.append("clicks[]",s)),fetch((t=elementorFrontendConfig)===null||t===void 0||(t=t.urls)===null||t===void 0?void 0:t.ajaxurl,{method:"POST",body:n}).then(()=>{this.clicks=[]})}}})),cc=b({default:()=>Eo}),Co,Eo,dc=g((()=>{Co=It(Ot()),nn(),ae(),Eo=class extends Co.default{constructor(...e){super(...e),V(this,"clicks",[])}getDefaultSettings(){return{selectors:{main:".e-contact-buttons",content:".e-contact-buttons__content",contentWrapper:".e-contact-buttons__content-wrapper",chatButton:".e-contact-buttons__chat-button",closeButton:".e-contact-buttons__close-button",messageBubbleTime:".e-contact-buttons__message-bubble-time"},constants:{entranceAnimation:"style_chat_box_entrance_animation",exitAnimation:"style_chat_box_exit_animation",chatButtonAnimation:"style_chat_button_animation",animated:"animated",animatedWrapper:"animated-wrapper",visible:"visible",reverse:"reverse",hidden:"hidden",hasAnimations:"has-animations",hasEntranceAnimation:"has-entrance-animation",none:"none"}}}getDefaultElements(){const e=this.getSettings("selectors");return{main:this.$element[0].querySelector(e.main),content:this.$element[0].querySelector(e.content),contentWrapper:this.$element[0].querySelector(e.contentWrapper),chatButton:this.$element[0].querySelector(e.chatButton),closeButton:this.$element[0].querySelector(e.closeButton),messageBubbleTime:this.$element[0].querySelector(e.messageBubbleTime)}}getResponsiveSetting(e){const t=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),e,"",t)}bindEvents(){this.elements.closeButton&&this.elements.closeButton.addEventListener("click",this.closeChatBox.bind(this)),this.elements.chatButton&&(this.elements.chatButton.addEventListener("click",this.onChatButtonClick.bind(this)),this.elements.chatButton.addEventListener("animationend",this.removeChatButtonAnimationClasses.bind(this))),this.elements.content&&this.elements.content.addEventListener("animationend",this.removeAnimationClasses.bind(this)),this.elements.contentWrapper&&window.addEventListener("keyup",this.onDocumentKeyup.bind(this))}contentWrapperIsHidden(e){if(!this.elements.contentWrapper)return!1;const{hidden:t}=this.getSettings("constants");if(e===!0){this.elements.contentWrapper.classList.add(t),this.elements.contentWrapper.setAttribute("aria-hidden","true");return}if(e===!1){this.elements.contentWrapper.classList.remove(t),this.elements.contentWrapper.setAttribute("aria-hidden","false");return}return this.elements.contentWrapper.classList.contains(t)}onDocumentKeyup(e){e.keyCode!==27||!this.elements.main||!this.contentWrapperIsHidden()&&this.elements.main.contains(document.activeElement)&&this.closeChatBox()}onChatButtonTrackClick(e){const t=e.target||e.srcElement,n=this.getSettings("selectors"),s=[n.contactButtonsVar4,n.contactButtonsVar6,n.contactButtonCore];for(const i of s)(t.matches(i)||t.closest(i))&&this.getDocumentIdAndTrack(t,n);(t.matches(n.contactButtonsVar5)||t.closest(n.contactButtonsVar5))&&t.closest(".e-contact-buttons-var-5")&&this.getDocumentIdAndTrack(t,n)}getDocumentIdAndTrack(e,t){let n=e.closest(t.main).dataset.documentId;n||(n=e.closest(t.elementorWrapper).dataset.elementorId),this.trackClick(n)}trackClick(e){e&&(this.clicks.push(e),this.clicks.length>=10&&this.sendClicks())}sendClicks(){var e,t;const n=new FormData;n.append("action","elementor_send_clicks"),n.append("_nonce",(e=elementorFrontendConfig)===null||e===void 0||(e=e.nonces)===null||e===void 0?void 0:e.floatingButtonsClickTracking),this.clicks.forEach(s=>n.append("clicks[]",s)),fetch((t=elementorFrontendConfig)===null||t===void 0||(t=t.urls)===null||t===void 0?void 0:t.ajaxurl,{method:"POST",body:n}).then(()=>{this.clicks=[]})}
1790removeAnimationClasses(){if(!this.elements.content)return;const{reverse:e,entranceAnimation:t,exitAnimation:n,animated:s,visible:i}=this.getSettings("constants"),o=this.elements.content.classList.contains(e),a=this.getResponsiveSetting(t),l=this.getResponsiveSetting(n);o?(this.elements.content.classList.remove(s),this.elements.content.classList.remove(e),l&&this.elements.content.classList.remove(l),this.elements.content.classList.remove(i)):(this.elements.content.classList.remove(s),a&&this.elements.content.classList.remove(a),this.elements.content.classList.add(i))}chatBoxEntranceAnimation(){const{entranceAnimation:e,animated:t,animatedWrapper:n,none:s}=this.getSettings("constants"),i=this.getResponsiveSetting(e);!i||s===i||(this.elements.content&&(this.elements.content.classList.add(t),this.elements.content.classList.add(i)),this.elements.contentWrapper&&this.elements.contentWrapper.classList.remove(n))}chatBoxExitAnimation(){const{reverse:e,exitAnimation:t,animated:n,animatedWrapper:s,none:i}=this.getSettings("constants"),o=this.getResponsiveSetting(t);!o||i===o||(this.elements.content&&(this.elements.content.classList.add(n),this.elements.content.classList.add(e),this.elements.content.classList.add(o)),this.elements.contentWrapper&&this.elements.contentWrapper.classList.add(s))}openChatBox(){const{hasAnimations:e,visible:t}=this.getSettings("constants");this.elements.main&&this.elements.main.classList.contains(e)?this.chatBoxEntranceAnimation():this.elements.content&&this.elements.content.classList.add(t),this.elements.contentWrapper&&(this.contentWrapperIsHidden(!1),elementorFrontend.isEditMode()||(this.elements.contentWrapper.setAttribute("tabindex","0"),this.elements.contentWrapper.focus({focusVisible:!0}))),this.elements.chatButton&&this.elements.chatButton.setAttribute("aria-expanded","true"),this.elements.closeButton&&this.elements.closeButton.setAttribute("aria-expanded","true")}closeChatBox(){const{hasAnimations:e,visible:t}=this.getSettings("constants");this.elements.main&&this.elements.main.classList.contains(e)?this.chatBoxExitAnimation():this.elements.content&&this.elements.content.classList.remove(t),this.elements.contentWrapper&&this.contentWrapperIsHidden(!0),this.elements.chatButton&&(this.elements.chatButton.setAttribute("aria-expanded","false"),this.elements.chatButton.focus({focusVisible:!0})),this.elements.closeButton&&this.elements.closeButton.setAttribute("aria-expanded","false")}onChatButtonClick(){this.elements.contentWrapper&&this.contentWrapperIsHidden()?this.openChatBox():this.closeChatBox()}initMessageBubbleTime(){if(!this.elements.messageBubbleTime)return;const e=this.elements.messageBubbleTime.dataset.timeFormat==="12h",t=new Intl.DateTimeFormat("default",{hour12:e,hour:"numeric",minute:"numeric"}).format(new Date);this.elements.messageBubbleTime.innerHTML=t}removeChatButtonAnimationClasses(){if(!this.elements.chatButton)return;const{chatButtonAnimation:e,visible:t}=this.getSettings("constants");this.elements.chatButton.classList.remove(e),this.elements.chatButton.classList.add(t)}initChatButtonEntranceAnimation(){const{none:e,chatButtonAnimation:t}=this.getSettings("constants"),n=this.getResponsiveSetting(t);!n||e===n||this.elements.chatButton.classList.add(n)}initDefaultState(){var e;if(this.elements.contentWrapper){const t=this.contentWrapperIsHidden();this.elements.chatButton&&this.elements.chatButton.setAttribute("aria-expanded",!t),this.elements.closeButton&&this.elements.closeButton.setAttribute("aria-expanded",!t)}elementorFrontend.isEditMode()&&((e=elementor)===null||e===void 0||(e=e.config)===null||e===void 0||(e=e.document)===null||e===void 0?void 0:e.type)==="floating-buttons"&&this.openChatBox()}setupInnerContainer(){this.elements.main.closest(".e-con-inner").classList.add("e-con-inner--floating-buttons")}onInit(...e){const{hasEntranceAnimation:t}=this.getSettings("constants");super.onInit(...e),this.clickTrackingHandler=new Bt({$element:this.$element}),this.elements.messageBubbleTime&&this.initMessageBubbleTime(),this.initDefaultState(),this.elements.chatButton&&this.elements.chatButton.classList.contains(t)&&this.initChatButtonEntranceAnimation(),this.setupInnerContainer()}}})),uc=b({default:()=>$o}),To,$o,mc=g((()=>{To=It(Ot()),nn(),$o=class extends To.default{getDefaultSettings(){return{selectors:{main:".e-contact-buttons-var-10",links:".e-contact-buttons__contact-icon-link"},constants:{active:"active"}}
1790}getDefaultElements(){const e=this.getSettings("selectors");return{main:this.$element[0].querySelector(e.main),links:this.$element[0].querySelectorAll(e.links)}}isMobileDevice(){return["mobile","mobile_extra"].includes(elementorFrontend.getCurrentDeviceMode())}handleLinkClick(e){e.preventDefault();const{active:t}=this.getSettings("constants");if(e.currentTarget.classList.contains(t)){const n=e.currentTarget.getAttribute("href"),s=e.currentTarget.getAttribute("target");s?window.open(n,s):n&&(window.location.href=n),e.currentTarget.classList.remove(t)}else this.closeAllLinks(),e.currentTarget.classList.add(t)}closeAllLinks(){const{active:e}=this.getSettings("constants");this.elements.links.forEach(t=>t.classList.remove(e))}linksEventListeners(){this.elements.links.length&&this.isMobileDevice()&&(this.elements.links.forEach(e=>{e.addEventListener("click",t=>{this.handleLinkClick(t)})}),document.addEventListener("click",e=>{this.elements.main.contains(e.target)||this.closeAllLinks()}))}bindEvents(){this.linksEventListeners()}setupInnerContainer(){this.elements.main.closest(".e-con-inner").classList.add("e-con-inner--floating-buttons")}onInit(...e){super.onInit(...e),this.clickTrackingHandler=new Bt({$element:this.$element}),this.setupInnerContainer()}}})),Jn,Ao=g((()=>{Jn=class{constructor(e){this.$element=e}maybeMoveToTop(){const e=this.$element[0],t=e.querySelector(".e-floating-bars");if(elementorFrontend.isEditMode()){t.classList.add("is-sticky");return}if(e.dataset.widget_type.startsWith("floating-bars")&&t.classList.contains("has-vertical-position-top")&&!t.classList.contains("is-sticky")){const n=document.getElementById("wpadminbar"),s=e.closest(".elementor");n?n.after(s):document.body.prepend(s)}}}})),hc=b({default:()=>Io}),Fo,Io,gc=g((()=>{var e;Fo=It(Ot()),Ao(),nn(),Io=(e=class extends Fo.default{getDefaultSettings(){return{selectors:{main:".e-floating-bars",closeButton:".e-floating-bars__close-button",playButton:".e-floating-bars__play-button",pauseButton:".e-floating-bars__pause-button",headline:".e-floating-bars__headline",headlines:".e-floating-bars__headlines",headlinesInner:".e-floating-bars__headlines-inner",overlay:".e-floating-bars__overlay"},constants:{isHidden:"is-hidden",isSticky:"is-sticky",hasVerticalPositionTop:"has-vertical-position-top",hasVerticalPositionBottom:"has-vertical-position-bottom",isPaused:"is-paused",animationTypeControl:"style_ticker_animation_type",autoplay:"autoplay"}}}onElementChange(n){["style_headline_text_typography_font_size","style_headlines_icon_size","style_floating_bar_padding","style_floating_bar_controls_size","style_floating_bar_element_spacing"].includes(n)&&this.initDefaultState()}getDefaultElements(){const n=this.getSettings("selectors");return{main:this.$element[0].querySelector(n.main),closeButton:this.$element[0].querySelector(n.closeButton),pauseButton:this.$element[0].querySelector(n.pauseButton),playButton:this.$element[0].querySelector(n.playButton),headlineAll:this.$element[0].querySelectorAll(n.headline),headlines:this.$element[0].querySelector(n.headlines),headlinesInner:this.$element[0].querySelector(n.headlinesInner),overlay:this.$element[0].querySelector(n.overlay)}}getResponsiveSetting(n){const s=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),n,"",s)}bindEvents(){this.elements.closeButton&&this.elements.closeButton.addEventListener("click",this.closeFloatingBar.bind(this)),this.elements.pauseButton&&this.elements.pauseButton.addEventListener("click",this.pauseCarousel.bind(this)),this.elements.playButton&&this.elements.playButton.addEventListener("click",this.playCarousel.bind(this)),this.hasStickyElements()&&window.addEventListener("resize",this.handleStickyElements.bind(this))}isMobileDevice(){return["mobile","mobile_extra"].includes(elementorFrontend.getCurrentDeviceMode())}isStickyTop(){const{isSticky:n,hasVerticalPositionTop:s}=this.getSettings("constants");return this.elements.main.classList.contains(n)&&this.elements.main.classList.contains(s)}isStickyBottom(){const{isSticky:n,hasVerticalPositionBottom:s}=this.getSettings("constants");return this.elements.main.classList.contains(n)&&this.elements.main.classList.contains(s)}hasStickyElements(){return document.querySelectorAll(".elementor-sticky").length>0}pauseCarousel(){const{isPaused:n}=this.getSettings("constants");this.elements.headlines.classList.add(n),this.elements.playButton&&this.elements.pauseButton&&(this.elements.playButton.setAttribute("aria-hidden","false"),this.elements.pauseButton.setAttribute("aria-hidden","true"))}playCarousel(){const{isPaused:n}=this.getSettings("constants");this.elements.headlines.classList.remove(n),this.elements.playButton&&this.elements.pauseButton&&(this.elements.pauseButton.setAttribute("aria-hidden","false"),this.elements.playButton.setAttribute("aria-hidden","true"))}closeFloatingBar(){const{isHidden:n}=this.getSettings("constants");elementorFrontend.isEditMode()||(this.elements.main.classList.add(n),this.hasStickyElements()?this.handleStickyElements():this.isStickyTop()&&this.removeBodyPadding())}focusOnLoad(){this.elements.main.setAttribute("tabindex","0"),this.elements.main.focus({focusVisible:!0})}applyBodyPadding(){const n=this.elements.main.offsetHeight;document.body.style.paddingTop=`${n}px`}removeBodyPadding(){document.body.style.paddingTop="0"}cloneScrollerContent(){Array.from(this.elements.headlinesInner.children).forEac
1790h(n=>{const s=n.cloneNode(!0);s.setAttribute("aria-hidden","true"),s.classList.add("e-floating-bars__headline--clone"),this.elements.headlinesInner.appendChild(s)})}cloneHeadlinesToFillContainer(){let n=this.elements.headlinesInner.offsetWidth;const s=this.elements.headlines.offsetWidth;for(;n<s;)this.cloneScrollerContent(),n=this.elements.headlinesInner.offsetWidth}cloneHeadlinesInner(){const n=this.elements.headlinesInner.cloneNode(!0),s=this.elements.overlay;n.classList.add("e-floating-bars__headlines-inner--clone"),n.setAttribute("aria-hidden","true"),this.elements.headlines.insertBefore(n,s)}handleBrowserScrollAnimation(){document.addEventListener("scroll",()=>{const n=window.scrollY,s=this.elements.headlinesInner.lastElementChild;elementorFrontend.config.is_rtl?(this.elements.headlinesInner.style.transform=`translateX(${n}px)`,s.lastElementChild.getBoundingClientRect().left>=this.elements.headlines.getBoundingClientRect().left&&this.cloneScrollerContent()):(this.elements.headlinesInner.style.transform=`translateX(-${n}px)`,s.lastElementChild.getBoundingClientRect().right<=this.elements.headlines.getBoundingClientRect().right&&this.cloneScrollerContent())})}handleTickerClick(n){n.preventDefault();const{isPlaying:s}=this.getSettings("constants");if(this.elements.headlines.classList.contains(s))this.pauseCarousel();else{const i=n.currentTarget.getAttribute("href"),o=n.currentTarget.getAttribute("target");o?window.open(i,o):i&&(window.location.href=i),this.playCarousel()}}handleWPAdminBar(){const n=elementorFrontend.elements.$wpAdminBar;n.length&&(this.elements.main.style.top=`${n.height()}px`)}handleStickyElements(){const n=this.elements.main.offsetHeight,s=elementorFrontend.elements.$wpAdminBar,i=document.querySelectorAll(".elementor-sticky:not(.elementor-sticky__spacer)");i.length!==0&&(i.forEach(o=>{var a;const l=o.getAttribute("data-settings"),d=(a=JSON.parse(l))==null?void 0:a.sticky,h=o.style.top==="0px"||d==="top",_=o.style.bottom==="0px"||d==="bottom";this.isStickyTop()&&h?s.length?o.style.top=`${n+s.height()}px`:o.style.top=`${n}px`:this.isStickyBottom()&&_&&(o.style.bottom=`${n}px`),elementorFrontend.isEditMode()&&(h?o.style.top=this.isStickyTop()?`${n}px`:"0px":_&&(o.style.bottom=this.isStickyBottom()?`${n}px`:"0px"))}),document.querySelectorAll(".elementor-sticky__spacer").forEach(o=>{var a;const l=o.getAttribute("data-settings"),d=(a=JSON.parse(l))==null?void 0:a.sticky,h=o.style.top==="0px"||d==="top";this.isStickyTop()&&h&&(o.style.marginBottom=`${n}px`)}))}handleClickOutside(){const{isPlaying:n}=this.getSettings("constants");document.addEventListener("click",s=>{!this.elements.headlines.classList.contains(n)&&!this.elements.main.contains(s.target)&&this.playCarousel()})}initScrollingAnimation(){const{autoplay:n,animationTypeControl:s}=this.getSettings("constants");n===this.getResponsiveSetting(s)?(this.cloneHeadlinesInner(),this.elements.headlines.setAttribute("data-animated","true"),this.playCarousel(),this.isMobileDevice()&&(this.elements.headlineAll.forEach(i=>{i.addEventListener("click",this.handleTickerClick.bind(this))}),this.handleClickOutside())):this.handleBrowserScrollAnimation()}initDefaultState(){this.isStickyTop()&&this.handleWPAdminBar(),this.hasStickyElements()?this.handleStickyElements():this.isStickyTop()&&this.applyBodyPadding(),this.elements.main&&!elementorFrontend.isEditMode()&&this.focusOnLoad(),this.elements.headlinesInner&&this.cloneHeadlinesToFillContainer(),window.matchMedia("(prefers-reduced-motion: reduce)").matches||this.initScrollingAnimation()}setupInnerContainer(){this.elements.main.closest(".e-con-inner").classList.add("e-con-inner--floating-bars"),this.elements.main.closest(".e-con").classList.add("e-con--floating-bars")}onInit(...n){super.onInit(...n),this.clickTrackingHandler=new Bt({$element:this.$element}),new Jn(this.$element).maybeMoveToTop(),this.initDefaultState(),this.setupInnerContainer()}},f(e,"FloatingBarsHandler"),e)}));function pc(){var e;return!!(!((e=navigator)===null||e===void 0)&&e.clipboard)}function fc(e){if(!pc())throw new Error("Cannot copy to clipboard, please make sure you are using SSL in your website.");navigator.clipboard.writeText(e)}var vc=g((()=>{})),_c=b({default:()=>xo}),ko,xo,bc=g((()=>{ko=It(Ot()),vc(),Ao(),nn(),xo=class extends ko.default{getDefaultSettings(){return{selectors:{main:".e-floating-bars",mainV3:".e-floating-bars-var-3",closeButton:".e-floating-bars__close-button",couponButton:".e-floating-bars__coupon-button",couponCode:".e-floating-bars__coupon-code",codeTextGroup:".e-floating-bars__coupon-code",successTextGroup:".e-floating-bars__coupon-success"},constants:{couponEntranceAnimation:"style_coupon_animation",couponEntranceAnimationDelay:"style_coupon_animation_delay",hasEntranceAnimation:"has-entrance-animation",visible:"visible",isSticky:"is-sticky",hasVerticalPositionTop:"has-vertical-position-top",hasVerticalPositionBottom:"has-vertical-position-bottom",isHidden:"is-hidden",successMessageDurationControl:"style_coupon_success_message_duration",animated:"animated"}}}getDefaultElements(){const e=this.getSettings("selectors");return{main:this.$element[0].querySelector(e.main),mainV3:this.$element[0].querySelector(e.mainV3),mainAll:this.$element[0].querySelectorAll(e.main),closeButton:this.$element[0].querySelector(e.closeButton),couponButton:this.$element[0].querySelector(e.couponButton),couponCode:this.$element[0].querySelector(e.couponCode),codeTextGroup:this.$element[0].querySelector(e.codeTextGroup),successTextGroup:this.$element[0].querySelector(e.successTextGroup)}}getResponsiveSetting(e){const t=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),e,"",t)}bindEvents(){this.elements.closeButton&&this.elements.closeButton.addEventListener("click",this.closeFloatingBar.bind(this)),this.elements.couponButton&&this.elements.couponButton.addEventListener("animationend",this.handleAnimationEnd.bind(this)),this.elements.main&&window.addEventListener("keyup",this.onDocumentKeyup.bind(this)),this.elements.couponButton&&this.elements.couponButton.addEventListener("click",this.handleCouponButtonClick.bind(this)),this.hasStickyElements()&&window.addEventListener("resize",this.handleStickyElements.bind(this))}isStickyTop(){const{isSticky:e,hasVerticalPositionTop:t}=this.getSettings("constants");return this.elements.main.classList.contains(e)&&this.elements.main.classList.contains(t)}isStickyBottom(){const{isSticky:e,hasVerticalPositionBottom:t}=this.getSettings("constants");return this.elements.main.classList.contains(e)&&this.elements.main.classList.contains(t)}hasStickyElements(){return document.querySelectorAll(".elementor-sticky").length>0}focusOnLoad(){this.elements.main.setAttribute("tabindex","0"),this.elements.main.focus({focusVisible:!0})}applyBodyPadding(){const e=this.elements.main.offsetHeight;document.body.style.paddingTop=`${e}px`}removeBodyPadding(){document.body.style.paddingTop="0"}handleWPAdminBar(){const e=elementorFrontend.elements.$wpAdminBar;e.length&&(this.elements.main.style.top=`${e.height()}px`)}handleStickyElements(){const e=this.elements.main.offsetHeight,t=elementorFrontend.elements.$wpAdminBar,n=document.querySelectorAll(".elementor-sticky:not(.elementor-sticky__spacer)");n.length!==0&&(n.forEach(s=>{var i;const o=s.getAttribute("data-settings"),a=(i=JSON.parse(o))===null||i===void 0?void 0:i.sticky,l=s.style.top==="0px"||a==="top",d=s.style.bottom==="0px"||a==="bottom";this.isStickyTop()&&l?t.length?s.style.top=`${e+t.height()}px`:s.style.top=`${e}px`:this.isStickyBottom()&&d&&(s.style.bottom=`${e}px`),elementorFrontend.isEditMode()&&(l?s.style.top=this.isStickyTop()?`${e}px`:"0px":d&&(s.style.bottom=this.isStickyBottom()?`${e}px`:"0px"))}),document.querySelectorAll(".elementor-sticky__spacer").forEach(s=>{var i;const o=s.getAttribute("data-settings"),a=(i=JSON.parse(o))===null||i===void 0?void 0:i.sticky,l=s.style.top==="0px"||a==="top";this.isStickyTop()&&l&&(s.style.marginBottom=`${e}px`)}))}closeFloatingBar(){const{isHidden:e}=this.getSettings("constants");elementorFrontend.isEditMode()||(this.elements.main.classList.add(e),this.hasStickyElements()?this.handleStickyElements():this.isStickyTop()&&this.removeBodyPadding())}initEntranceAnimation(){const{animated:e,couponEntranceAnimation:t,couponEntranceAnimationDelay:n,hasEntranceAnimation:s}=this.getSettings("constants"),i=this.getResponsiveSetting(t),o=(this.getResponsiveSetting(n)||0)+500;this.elements.couponButton.classList.add(e),this.elements.couponButton.classList.add(i),setTimeout(()=>{this.elements.couponButton.classList.remove(s)},o)}handleAnimationEnd(){this.removeEntranceAnimationClasses(),this.focusOnLoad()}
1790removeEntranceAnimationClasses(){if(!this.elements.couponButton)return;const{animated:e,couponEntranceAnimation:t,visible:n}=this.getSettings("constants"),s=this.getResponsiveSetting(t);this.elements.couponButton.classList.remove(e),this.elements.couponButton.classList.remove(s),this.elements.couponButton.classList.add(n)}onDocumentKeyup(e){e.keyCode!==27||!this.elements.main||this.elements.main.contains(document.activeElement)&&this.closeFloatingBar()}getDuration(e){const t=e.unit==="s",n=t?"1.5":"1500",s=e.size!==""?e.size:n;return t?s*1e3:s}handleCouponButtonClick(e){const{successMessageDurationControl:t,isHidden:n}=this.getSettings("constants"),s=this.elements.couponCode.innerText,i=this.getResponsiveSetting(t),o=this.getDuration(i),a=e.currentTarget.getBoundingClientRect().width,l=e.currentTarget.getBoundingClientRect().height;this.elements.mainV3.style.setProperty("--e-floating-bars-coupon-width",`${a}px`),this.elements.mainV3.style.setProperty("--e-floating-bars-coupon-height",`${l}px`),fc(s),this.elements.codeTextGroup.classList.add(n),this.elements.successTextGroup.classList.remove(n),setTimeout(()=>{this.elements.codeTextGroup.classList.remove(n),this.elements.successTextGroup.classList.add(n),this.elements.mainV3.style.setProperty("--e-floating-bars-coupon-width","initial"),this.elements.mainV3.style.setProperty("--e-floating-bars-coupon-height","initial")},o)}initDefaultState(){const{hasEntranceAnimation:e}=this.getSettings("constants");this.isStickyTop()&&this.handleWPAdminBar(),this.hasStickyElements()?this.handleStickyElements():this.isStickyTop()&&this.applyBodyPadding(),this.elements.main&&!this.elements.couponButton.classList.contains(e)&&!elementorFrontend.isEditMode()&&this.focusOnLoad()}setupInnerContainer(){this.elements.main.closest(".e-con-inner").classList.add("e-con-inner--floating-bars"),this.elements.main.closest(".e-con").classList.add("e-con--floating-bars")}onInit(...e){const{hasEntranceAnimation:t}=this.getSettings("constants");super.onInit(...e),this.clickTrackingHandler=new Bt({$element:this.$element}),new Jn(this.$element).maybeMoveToTop(),this.elements.couponButton&&this.elements.couponButton.classList.contains(t)&&this.initEntranceAnimation(),this.initDefaultState(),this.setupInnerContainer()}}})),Sc=(bt=class extends elementorModules.Module{constructor(){super(),elementorFrontend.config.experimentalFeatures.container&&(["contact-buttons-var-1","contact-buttons-var-3","contact-buttons-var-4","contact-buttons-var-5","contact-buttons-var-6","contact-buttons-var-7","contact-buttons-var-8","contact-buttons-var-9"].forEach(t=>{elementorFrontend.elementsHandler.attachHandler(t,()=>v(()=>Promise.resolve().then(()=>(dc(),cc)),void 0))}),elementorFrontend.elementsHandler.attachHandler("contact-buttons-var-10",()=>v(()=>Promise.resolve().then(()=>(mc(),uc)),void 0)),elementorFrontend.elementsHandler.attachHandler("floating-bars-var-2",()=>v(()=>Promise.resolve().then(()=>(gc(),hc)),void 0)),elementorFrontend.elementsHandler.attachHandler("floating-bars-var-3",()=>v(()=>Promise.resolve().then(()=>(bc(),_c)),void 0)))}},f(bt,"default"),bt),yc=b({default:()=>Mo}),Do,Lo,Zn,Mo,wc=g((()=>{_e(),Do=Object.defineProperty,Lo=f((e,t,n)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,"__defNormalProp"),Zn=f((e,t,n)=>Lo(e,typeof t!="symbol"?t+"":t,n),"__publicField"),Mo=class extends elementorModules.frontend.handlers.Base{constructor(){super(...arguments),Zn(this,"debounceTimeoutId"),Zn(this,"page_number")}__construct(...e){super.__construct(...e),elementorFrontend.hooks.addAction("search:results-displayed",t=>{t===this.getID()&&this.hideOtherResults()})}getDefaultSettings(){return{selectors:{searchWrapper:".e-search",searchField:".e-search-input",submitButton:".e-search-submit",clearIcon:".e-search-input-wrapper > svg, .e-search-input-wrapper > i",searchIcon:".e-search-label > svg, .e-search-label > i",resultsContainer:".e-search-results-container",results:".e-search-results",links:"a.page-numbers:not(.current)"},classes:{searchResultsListWrapper:"e-search-results-list",searchResultsPagination:"elementor-pagination"}}}getDefaultElements(){const e=this.getSettings("selectors");
1790return{searchWidget:this.$element[0],searchWrapper:this.$element[0].querySelector(e.searchWrapper),searchField:this.$element[0].querySelector(e.searchField),submitButton:this.$element[0].querySelector(e.submitButton),clearIcon:this.$element[0].querySelector(e.clearIcon),searchIcon:this.$element[0].querySelector(e.searchIcon),resultsContainer:this.$element[0].querySelector(e.resultsContainer),results:this.$element[0].querySelector(e.results),links:this.$element[0].querySelectorAll(e.links)}}onInit(){super.onInit(),this.changeClearIconVisibility(!0),this.updateInputStyle(),this.toggleSearchResultsVisibility=this.toggleSearchResultsVisibility.bind(this),document.addEventListener("click",this.toggleSearchResultsVisibility),document.fonts.ready.then(()=>this.updateInputStyle())}onDestroy(){document.removeEventListener("click",this.toggleSearchResultsVisibility)}bindEvents(){var e;this.elements.submitButton.addEventListener("click",this.onSubmit.bind(this)),this.elements.searchField.addEventListener("input",t=>{this.changeClearIconVisibility(!t.target.value.length),this.debounce(this.onType)(t)}),this.elements.searchField.addEventListener("keydown",this.onSearchFieldKeydown.bind(this)),this.elements.searchWidget.addEventListener("click",this.onClick.bind(this)),["focusin","focusout"].forEach(t=>{this.elements.searchField.addEventListener(t,this.toggleWidgetFocusClass.bind(this))}),(e=this.elements.clearIcon)==null||e.addEventListener("click",this.onClear.bind(this)),this.linksEventListeners()}linksEventListeners(){this.elements.links.length&&this.elements.links.forEach(e=>{e.addEventListener("click",t=>{this.handleLinkClick(t)})})}handleLinkClick(e){e.preventDefault();const t=e==null?void 0:e.target.getAttribute("href"),n=new URLSearchParams(new URL(t).search).get("e-search-page");this.page_number=n?parseInt(n,10):1,this.removeLinksListeners(),this.renderLiveResults()}removeLinksListeners(){this.elements.links.length&&this.elements.links.forEach(e=>{e.removeEventListener("click",this.handleLinkClick)})}reInitLinks(){this.elements.links=document.querySelectorAll(`[data-id="${this.getID()}"] a.page-numbers:not(.current)`),this.linksEventListeners()}onClick(){this.elements.resultsContainer.classList.add("hide-loader")}onType(e){if(e.preventDefault(),this.updateAriaLabel(this.elements.searchField.value),!this.elements.searchField.value.length){this.clearResultsMarkup();return}const t=this.getMinimumSearchLength();this.shouldShowLiveResults()&&this.elements.searchField.value.length>=t&&(this.page_number=1,this.renderLiveResults())}toggleWidgetFocusClass(e){const t=e.type==="focusin";this.$element[0].classList.toggle("e-focus",t)}onSubmit(e){elementorFrontend.isEditMode()&&e.preventDefault()}onClear(e){e.preventDefault(),this.elements.searchField.value="",this.clearResultsMarkup(),this.elements.searchField.focus(),this.changeClearIconVisibility(!0)}onSearchFieldKeydown(e){e.code==="Enter"&&(this.clearResultsMarkup(),this.onSubmit(e))}fetchUpdatedSearchWidgetMarkup(){return fetch(`${elementorProFrontend.config.urls.rest}elementor-pro/v1/refresh-search`,this.getFetchArgumentsForSearchUpdate())}getMinimumSearchLength(){return this.getElementSettings().minimum_search_characters||3}shouldShowLiveResults(){return this.getElementSettings().live_results&&this.getElementSettings().template_id}renderLiveResults(){if(document.querySelector(`.elementor-element-${this.getID()}`)){if(!this.elements.searchField.value){this.clearResultsMarkup();return}return this.elements.resultsContainer.classList.remove("hide-loader"),this.elements.resultsContainer.classList.remove("hidden"),this.fetchUpdatedSearchWidgetMarkup().then(e=>!(e instanceof Response)||!(e!=null&&e.ok)||400<=(e==null?void 0:e.status)?{}:e.json()).catch(()=>({})).then(e=>{if(!(e!=null&&e.data)){this.updateAriaExpanded(!1);return}const t=this.createResultNode(e);this.elements.results.replaceChildren(t.resultContentNode),this.elements.results.append(t.paginationNode),this.elements.resultsContainer.classList.add("hide-loader"),this.maybeHandleNoResults(t.resultContentNode),elementorFrontend.hooks.doAction("search:results-updated")}).finally(()=>{ve(document.querySelectorAll(`[data-id="${this.getID()}"] .e-loop-item`)),this.reInitLinks(),ElementorProFrontendConfig.settings.lazy_load_background_images&&document.dispatchEvent(new Event("elementor/lazyload/observe"))})}}maybeHandleNoResults(e){const t=!!e.querySelector(".e-search-nothing-found-message");this.elements.results.classList[t?"add":"remove"]("no-results"),t||this.hideOtherResults()}hideOtherResults(e=null){if(e&&e!==this.getID())return;
1790const t=document.querySelectorAll(`${this.getSettings("selectors").resultsContainer}:not(.hidden)`);Array.from(t).filter(n=>!n.closest(`.elementor-element-${this.getID()}`)).forEach(n=>n.classList.add("hidden"))}createResultNode(e){const t=document.createElement("div"),n=this.getSettings("classes.searchResultsListWrapper"),s=document.createElement("nav"),i=this.getSettings("classes.searchResultsPagination"),o="Pagination";s.setAttribute("class",i),s.setAttribute("aria-label",o),t.setAttribute("class",n),s.innerHTML=e.pagination,t.innerHTML=e.data;const a=t.querySelectorAll(".e-loop-item").length>0;return this.updateAriaExpanded(a),{resultContentNode:t,paginationNode:s}}updateAriaExpanded(e){this.elements.searchField.setAttribute("aria-expanded",e?"true":"false")}updateAriaLabel(e){e?this.elements.resultsContainer.setAttribute("aria-label",`Results for ${e}`):this.elements.resultsContainer.removeAttribute("aria-label")}clearResultsMarkup(){this.elements.results.innerHTML="",this.updateAriaExpanded(!1)}getFetchArgumentsForSearchUpdate(){var e,t;const n=this.prepareSearchUpdateRequestData(),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)};return elementorFrontend.isEditMode()&&((e=elementorPro.config.eSearch)!=null&&e.nonce)&&(s.headers["X-WP-Nonce"]=(t=elementorPro.config.eSearch)==null?void 0:t.nonce),s}prepareSearchUpdateRequestData(){var e,t;const n=""+this.getID(),s=(t=(e=elementorFrontend.getCurrentDeviceMode)==null?void 0:e.call(elementorFrontend))!=null?t:"desktop",i={post_id:this.getClosestDataElementorId(this.$element[0]),widget_id:n,search_term:this.elements.searchField.value||"",page_number:this.page_number,breakpoint:s};return elementorFrontend.isEditMode()&&(i.widget_model=window.top.$e.components.get("document").utils.findContainerById(n).model.toJSON({remove:["default","editSettings","defaultEditSettings"]}),i.is_edit_mode=!0),i}getClosestDataElementorId(e){const t=e.closest("[data-elementor-id]");return t?t.getAttribute("data-elementor-id"):0}debounce(e,t=300){return(...n)=>{clearTimeout(this.debounceTimeoutId),this.debounceTimeoutId=setTimeout(()=>e.apply(this,n),t)}}updateInputStyle(e=["searchIcon","clearIcon"]){var t;const n={searchIcon:"icon-label",clearIcon:"icon-clear"},s=this.$element[0].style,i=this.getAllDisplayNoneParents(this.$element[0].parentNode);this.setElementsDisplay(i,"block");for(const o of e){const{width:a}=((t=this.elements[o])==null?void 0:t.getBoundingClientRect())||{width:0},l=n[o];s.setProperty(`--e-search-${l}-absolute-width`,a+"px"),this.elements.searchField.classList[a?"remove":"add"](`no-${l}`)}this.setElementsDisplay(i,""),this.elements.searchWrapper.classList.remove("hidden")}changeClearIconVisibility(e){var t;(t=this.elements.clearIcon)==null||t.classList[e?"add":"remove"]("hidden")}toggleSearchResultsVisibility(e){var t,n,s,i;const o=this.getSettings("selectors"),a=`.elementor-element-${this.getID()}`,{target:l}=e,d=!!(l!=null&&l.closest(`${a} ${o.resultsContainer}`))||((t=l==null?void 0:l.classList)==null?void 0:t.contains(o.resultsContainer))&&!!(l!=null&&l.closest(a)),h=!!(l!=null&&l.closest(`${a} ${o.searchWrapper}`)),_=(n=l==null?void 0:l.classList)==null?void 0:n.contains(o.searchField.replace(".","")),C=(i=(s=this.elements.resultsContainer)==null?void 0:s.children)==null?void 0:i.length;d&&this.hideOtherResults(),!(!C||d)&&(!_||!h)&&this.elements.resultsContainer.classList.add("hidden")}getAllDisplayNoneParents(e,t=[]){return!e||e===document.body?t:(window.getComputedStyle(e).display==="none"&&t.push(e),this.getAllDisplayNoneParents(e.parentNode,t))}setElementsDisplay(e,t){e.forEach(n=>{n.style.display=t})}onElementChange(e){const t={search_field_icon_label_size:()=>this.updateInputStyle(["searchIcon"]),icon_clear_size:()=>this.updateInputStyle(["clearIcon"])};t[e]&&t[e]()}}})),Cc=b({default:()=>Bo}),Po,Oo,es,Bo,Ec=g((()=>{Cn(),Po=Object.defineProperty,Oo=(e,t,n)=>t in e?Po(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,es=(e,t,n)=>Oo(e,typeof t!="symbol"?t+"":t,n),Bo=class extends elementorModules.frontend.handlers.Base{constructor(){super(...arguments),es(this,"focusableResultElements"),es(this,"currentResultFocusedIndex",-1)}__construct(...e){super.__construct(...e),elementorFrontend.hooks.addAction("search:results-updated",this.loadResultElementsEvents.bind(this))}
1790getDefaultSettings(){return{selectors:{searchWrapper:".e-search",searchField:".e-search-input",resultsContainer:".e-search-results-container",loopItem:".e-loop-item",clearIcon:".e-search-input-wrapper > svg, .e-search-input-wrapper > i"}}}getDefaultElements(){const e=this.getSettings("selectors");return{resultsContainer:this.$element[0].querySelector(e.resultsContainer),searchField:this.$element[0].querySelector(e.searchField),clearIcon:this.$element[0].querySelector(e.clearIcon)}}setFocusableElements(e){const t=wn(),n=e.querySelectorAll(t);this.focusableResultElements=Array.from(n).filter(s=>!s.disabled&&!s.inert&&s.tabIndex!==-1)}isSearchInputFocused(){return this.elements.searchField===elementorFrontend.elements.window.document.activeElement}bindEvents(){this.boundHandleKeyboardNavigation=this.handleKeyboardNavigation.bind(this),this.boundHandleEscapeKey=this.handleEscapeKey.bind(this),this.elements.searchField.addEventListener("keydown",this.boundHandleKeyboardNavigation),elementorFrontend.elements.window.document.addEventListener("keydown",this.boundHandleEscapeKey),this.elements.searchField.addEventListener("focus",this.openResults.bind(this))}loadResultElementsEvents(){var e;this.setFocusableElements(this.$element[0].querySelector(this.getSettings("selectors.resultsContainer"))),(e=this.focusableResultElements)==null||e.forEach(t=>{t.addEventListener("keydown",this.handleKeyboardNavigation.bind(this))})}unbindEvents(){this.boundHandleKeyboardNavigation&&this.elements.searchField.removeEventListener("keydown",this.boundHandleKeyboardNavigation),elementorFrontend.elements.window.document.removeEventListener("keydown",this.boundHandleEscapeKey),this.elements.searchField.removeEventListener("focus",this.openResults.bind(this))}handleKeyboardNavigation(e){switch(e.key){case"ArrowDown":this.focusNextElement();break;case"ArrowUp":this.focusPreviousElement();break;case"Enter":this.handleEnterKey();break}}areResultsClosed(){return this.elements.resultsContainer.querySelectorAll(this.getSettings("selectors.loopItem")).length===0||this.elements.resultsContainer.classList.contains("hidden")}openResults(){this.areResultsClosed()&&(this.elements.resultsContainer.classList.remove("hidden"),elementorFrontend.hooks.doAction("search:results-displayed",this.getID()))}handleEnterKey(){this.closeResults()}handleEscapeKey(e){if(e.key!=="Escape")return;const t=elementorFrontend.elements.window.document.activeElement;this.elements.resultsContainer.contains(t)&&this.elements.searchField.focus(),this.closeResults()}focusNextElement(){this.isSearchInputFocused()?this.currentResultFocusedIndex=0:(this.currentResultFocusedIndex++,this.checkFocusIndexBounds()),this.updateFocus()}focusPreviousElement(){this.isSearchInputFocused()?this.currentResultFocusedIndex=this.focusableResultElements.length-1:(this.currentResultFocusedIndex--,this.checkFocusIndexBounds()),this.updateFocus()}checkFocusIndexBounds(){this.currentResultFocusedIndex>=this.focusableResultElements.length?this.currentResultFocusedIndex=-1:this.currentResultFocusedIndex<-1&&(this.currentResultFocusedIndex=this.focusableResultElements.length-1)}updateFocus(){this.currentResultFocusedIndex===-1?this.focusSearchAndMoveCursorToEnd():this.setFocusToElement(this.focusableResultElements[this.currentResultFocusedIndex])}closeResults(){this.elements.resultsContainer.classList.add("hidden"),this.updateAriaExpanded(!1)}updateAriaExpanded(e){this.elements.searchField.setAttribute("aria-expanded",e)}focusSearchAndMoveCursorToEnd(){const e=this.elements.searchField,t=e.value.length;this.setFocusToElement(this.elements.searchField),e.setSelectionRange(t,t)}setFocusToElement(e){e.focus()}}})),Tc=(St=class extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("search",[()=>v(()=>Promise.resolve().then(()=>(wc(),yc)),void 0),()=>v(()=>Promise.resolve().then(()=>(Ec(),Cc)),void 0)])}},f(St,"default"),St);Gn();var $c=e=>{const t={animatedText:yr,carousel:Er,countdown:Ar,dynamicTags:Fr,hotspot:xr,form:Hr,gallery:Nr,lottie:qr,nav_menu:Xr,popup:Ia,posts:Ma,share_buttons:Ra,slides:za,social:ja,themeBuilder:
1790al,themeElements:dl,woocommerce:Tl,tableOfContents:nl,loopBuilder:Wl,megaMenu:Xl,nestedCarousel:ec,taxonomyFilter:oc,offCanvas:lc,contactButtons:Sc,search:Tc};return ce(ce({},e),t)};elementorProFrontend.on("elementor-pro/modules/init/before",()=>{elementorFrontend.hooks.addFilter("elementor-pro/frontend/handlers",$c)})})(wp.i18n);
1791;var stratum={"localeData":{"":{"domain":"stratum","lang":"pt_PT"}},"settings":{"wide_support":!0},"ajax_url":"https://www.cm-benavente.pt/wp-admin/admin-ajax.php","nonces":{"get_articles":"9912035655","get_elementor_templates":"5f1a36170e"}}
1792;!function(){"use strict";function e(n){var r="stratum-instagram";$(document).ready(function(){var e=n.find(".".concat(r)),t=e.find(".".concat(r,"__wrapper"));t.hasClass("animate_on_scroll")&&e.imagesLoaded().progress(function(){new AnimOnScroll(t.get(0),{minDuration:.4,maxDuration:.7,viewportFactor:.2})})})}function t(h){var v="stratum-counter";$(document).ready(function(){function e(){return{startVal:r,decimalPlaces:o,duration:i,useEasing:s,useGrouping:c,separator:l,decimal:u,easingFn:function(e,t){if(!e)return null;switch(t){case"outExpo":return function(e,t,n,r){return n*(1-Math.pow(2,-10*e/r))*1024/1023+t};case"outQuintic":return function(e,t,n,r){var a=(e/=r)*e,o=a*e;return t+n*(o*a+-5*a*a+10*o+-10*a+5*e)};case"outCubic":return function(e,t,n,r){var a=(e/=r)*e;return t+n*(a*e+-3*a+3*e)}}}(s,d),numerals:function(e){switch(e){case"eastern_arabic":return["Ù ","Ù¡","Ù¢","Ù£","Ù¤","Ù¥","Ù¦","Ù§","Ù¨","Ù©"];case"farsi":return["Û°","Û±","Û²","Û³","Û´","Ûµ","Û¶","Û·","Û¸","Û¹"];default:return null}}(f)}}var t=h.find(".".concat(v)),n=t.find(".".concat(v,"__wrapper")).data("options"),r=n.start,a=n.end,o=n.decimalPlaces,i=n.duration,s=n.useEasing,c=n.useGrouping,l=n.separator,u=n.decimal,d=n.easingFn,f=n.numerals,p=t.find(".".concat(v,"__number")),m=new Waypoint({element:p.get(0),handler:function(){new CountUp(p[0],a,e()).start(),m.destroy()},offset:"100%"})})}function n(v){var g="stratum-countdown";$(document).ready(function(){var e=v.find(".".concat(g)),t=e.find(".".concat(g,"__content")),n=t.data("datetime"),r=t.data("years"),a=t.data("months"),o=t.data("weeks"),i=t.data("days"),s=t.data("hours"),c=t.data("minutes"),l=t.data("seconds"),u=t.data("labels"),d=t.data("expire-actions"),f=t.data("expire-url"),p=t.data("expire-text"),m="";r&&(m+="Y"),a&&(m+="O"),o&&(m+="W"),i&&(m+="D"),s&&(m+="H"),c&&(m+="M"),l&&(m+="S");var h={until:"negative"==n?"":n,format:m};d&&(h.alwaysExpire=!0,d.includes("redirect")&&""!=f&&(h.expiryUrl=f),d.includes("message")&&""!=p&&(h.expiryText=p),d.includes("hide")&&(h.onExpiry=function(){e.hide()})),u&&(h.labels=u),t.countdown("destroy"),t.countdown(h)})}function r(g){var y="stratum-circle-progress-bar";$(document).ready(function(){var e=g.find(".".concat(y)),t=e.find(".".concat(y,"__wrapper")),n=t.data("options"),r=n.min,a=n.max,o=n.value,i=n.round,s=n.circle,c=n.padding,l=n.radius,u=n.thickness,d=n.bg,f=n.color,p=n.text,m={min:r,max:a,value:o,round:i,circle:s,padding:c,radius:l,thickness:u,bg:d,color:f};if(!s)var h=setInterval(function(){var e=g.find(".donut");e.length&&(e.css({transform:"rotate(315deg)",transformOrigin:"center"}),clearInterval(h))},1);p&&(m.text=function(e){return Math.floor(e.value/(e.max-e.min)*100)+"%"});var v=new Waypoint({element:e.get(0),handler:function(){t.donutty(m),v.destroy()},offset:"100%"})})}function o(l){var u="stratum-masonry-gallery";$(document).ready(function(){var e=l.find(".".concat(u)),t=e.data("options"),n=t.columns,r=t.gutter,a=void 0===r?0:r,o=t.animate,i=l.closest(".elementor-widget-".concat(u)).data("id");$(".".concat(u,"__item"),e).css("width","calc(100% / ".concat(n,")")),$(".".concat(u,"__item"),e).find(".stratum-masonry-gallery__image, .stratum-masonry-gallery__overlay").css({margin:a});var s={itemSelector:".elementor-element-".concat(i," .").concat(u,"__item"),horizontalOrder:!0,layoutMode:"masonry"};if(e[0])if(o)new AnimOnScroll(e.get(0),{minDuration:.4,maxDuration:.7,viewportFactor:.2},s);else{var c=e.masonry(s);imagesLoaded(c).on("progress",function(){c.masonry("layout")})}})}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function C(a){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1792e%2?c(Object(o),!0).forEach(function(e){var t,n,r;t=a,r=o[n=e],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(o,e))})}return a}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function d(e,t,n){return(d=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&l(a,n.prototype),a}).apply(null,arguments)}function h(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function f(e,t){return _(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}(e,t)||w(e,t)||O()}function g(e){return _(e)||b(e)||w(e)||O()}function y(e){return function(e){if(Array.isArray(e))return k(e)}(e)||b(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e){if(Array.isArray(e))return e}function b(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function w(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(e){if(e.length){var t=function(t,n){t.on("init",function(){t.$el.find(".swiper-slide.swiper-slide-active").addClass("stratum-slide-active")}),t.init(),t.on("slideChange",function(){var e=t.$el.find(".swiper-slide");e.removeClass("stratum-slide-active"),setTimeout(function(){$(e[t.activeIndex]).addClass("stratum-slide-active")},n.textAnimationDelay)}),n.autoplay&&n.autoplayPause&&e.hover(function(){return t.autoplay.stop()},function(){return t.autoplay.start()})};e.on("mousedown",function(e){return e.stopPropagation()});var n=e.data("slider-options"),r=e.find(".swiper");if(n.navigation&&(n.navigation={nextEl:e.find(".stratum-swiper-button-next")[0],prevEl:e.find(".stratum-swiper-button-prev")[0]}),"fade"==n.effect&&(n.fadeEffect={crossFade:!0}),n.coverflow_visible&&e.closest(".elementor-section.elementor-section-stretched").length&&e.closest(".elementor-section.elementor-section-stretched").addClass("stratum-coverflow-full-width"),"vertical"==n.direction){var a=e.find(".swiper-slide"),o=0;a.each(function(e,t){o=$(t).innerHeight()>o?$(t).innerHeight():o}),r.css({"max-height":o+"px"}),n.height=o}if(n.breakpoints={360:{slidesPerView:n.responsive.slidesPerView_mobile,slidesPerColumn:n.responsive.slidesPerColumn_mobile,slidesPerGroup:n.responsive.slidesPerGroup_mobile,spaceBetween:n.responsive.spaceBetween_mobile},768:{slidesPerView:n.responsive.slidesPerView_tablet,slidesPerColumn:n.responsive.slidesPerColumn_tablet,slidesPerGroup:n.responsive.slidesPerGroup_tablet,spaceBetween:n.responsive.spaceBetween_tablet},1024:{slidesPerView:n.slidesPerView,slidesPerColumn:n.slidesPerColumn,slidesPerGroup:n.slidesPerGroup,spaceBetween:n.spaceBetween}},n.init=!1,elementorFrontend.utils.swiper)new elementorFrontend.utils.swiper(r,n).then(function(e){t(e,n)});else if("undefined"!=typeof Swiper){var i=new Swiper(r,n);t(i,n)}}}function j(){function a(e){return"string"==typeof e}return new Proxy({},{get:function(e,r){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(e)&&(t=e,e={}),a(e)&&(t=[e],e={}),Array.isArray(t)||(t=[t]);var n=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var a=f(r[n],2),o=a[0],i=a[1];if("class"===o){var s,c=Array.isArray(i)?i:[i];(s=e.classList).add.apply(s,y(c))}else e.setAttribute(o,i)}return e}(document.createElement(r),e);return t.forEach(function(e){a(e)?n.textContent=e:n.appendChild(e)}),n}}})}function x(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[Array.from(t).reduce(function(e,t){return e+(t==t.toUpperCase()?"_".concat(t.toLowerCase()):t)})]}})}function P(e){var t=e.find(".".concat("stratum-advanced-slider"));S(t)}function M(e){var i=e.find(".".concat("stratum-advanced-accordion"));i.on("mousedown",function(e){return e.stopPropagation()});var t=i.data("accordion-options"),s=t.accordion_type,c=t.accordion_collapsible,n=t.accordion_
1792interactivity,r=t.equal_height,a=$(i).find(".stratum-advanced-accordion__item-header");if(r){var o=0;$(i).find(".stratum-advanced-accordion__item-wrapper").each(function(){$(this).height()>o&&(o=$(this).height())}),$(i).find(".stratum-advanced-accordion__item-wrapper").height(o)}$(a).on(n,function(e){var t=$(this);if(!t.hasClass("animate-accordion")){t.addClass("animate-accordion");var n=t.parent(".stratum-advanced-accordion__item"),r=n.find(".stratum-advanced-accordion__item-content"),a=n.find(".stratum-advanced-accordion__item-wrapper").outerHeight(!0),o=$(i).find(".stratum-advanced-accordion__item-content").not(r);"accordion"==s&&($(i).find(".stratum-advanced-accordion__item-header").not(t).addClass("animate-accordion"),$(o).animate({opacity:0,height:"0px"},{duration:300,specialEasing:{opacity:"linear",height:"linear"},complete:function(){$(i).find(".stratum-advanced-accordion__item").not(n).removeClass("active-accordion"),$(i).find(".stratum-advanced-accordion__item-header").not(t).removeClass("animate-accordion")}})),n.hasClass("active-accordion")?"accordion"==s&&c||"toggle"==s?$(r).animate({opacity:0,height:"0px"},{duration:300,specialEasing:{opacity:"linear",height:"linear"},complete:function(){n.removeClass("active-accordion"),t.removeClass("animate-accordion")}}):"accordion"!=s||c||t.removeClass("animate-accordion"):$(r).animate({opacity:1,height:a},{duration:300,specialEasing:{opacity:"linear",height:"linear"},complete:function(){n.addClass("active-accordion"),t.removeClass("animate-accordion")}})}})}var T=function(e){var t=p(e);return null!=e&&("object"==t||"function"==t)},A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function z(e,t){return e(t={exports:{}},t.exports),t.exports}var I="object"==p(A)&&A&&A.Object===Object&&A,E="object"==("undefined"==typeof self?"undefined":p(self))&&self&&self.Object===Object&&self,L=I||E||Function("return this")(),D=function(){return L.Date.now()},H=L.Symbol,F=Object.prototype,R=F.hasOwnProperty,W=F.toString,B=H?H.toStringTag:void 0;var V=function(e){var t=R.call(e,B),n=e[B];try{var r=!(e[B]=void 0)}catch(e){}var a=W.call(e);return r&&(t?e[B]=n:delete e[B]),a},q=Object.prototype.toString;var G=function(e){return q.call(e)},N=H?H.toStringTag:void 0;var U=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(N&&N in Object(e)?V:G)(e)};var Q=function(e){return null!=e&&"object"==p(e)};var Y=function(e){return"symbol"==p(e)||Q(e)&&"[object Symbol]"==U(e)},Z=/^\s+|\s+$/g,J=/^[-+]0x[0-9a-f]+$/i,K=/^0b[01]+$/i,X=/^0o[0-7]+$/i,ee=parseInt;var te=function(e){if("number"==typeof e)return e;if(Y(e))return NaN;if(T(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=T(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Z,"");var n=K.test(e);return n||X.test(e)?ee(e.slice(2),n?2:8):J.test(e)?NaN:+e},ne=Math.max,re=Math.min;function ae(f){$(document).ready(function(){var e=f.find(".".concat("stratum-content-switcher")),t=e.hasClass("is-multiple"),n=e.hasClass("is-toggle");if(t){var r=function(a,o){var e="click"===a?o.outerWidth():i.outerWidth(),t="click"===a?o.outerHeight():i.outerHeight(),n="click"===a?o.position().left:i.position().left,r="click"===a?o.position().top:i.position().top;s.css({width:e,height:t,left:n,top:r}),$(window).on("resize orientationchange",ce(function(){var e="click"===a?o.outerWidth():i.outerWidth(),t="click"===a?o.outerHeight():i.outerHeight(),n="click"===a?o.position().left:i.position().left,r="click"===a?o.position().top:i.position().top;s.css({width:e,height:t,left:n,top:r})},100))},a=$(e).find(".stratum-content-switcher__nav-item > .stratum-content-switcher__nav-button"),i=$(e).find(".stratum-content-switcher__nav-item.is-active"),s=$(e).find(".stratum-content-switcher__nav-pill"),o=$(e).find(".stratum-content-switcher__content");r(),$(a).on("click",function(e){e.preventDefault(),e.stopPropagation(),r(e.type,$(this));var t=$(this).data("content"),n=$(o).find("#".concat(t));$(this).parents("li").addClass("is-active").siblings().removeClass("is-active"),n.addClass("is-active").siblings().removeClass("is-active")})}if(n){var c=function(e,t,n){if("click"===e){var r=t.data("content"),a=$(d).find("#".concat(r));l.prop("checked",n),t.addClass("is-active").siblings().removeClass("is-active"),a.addClass("is-active").siblings().removeClass("is-active")}if("change"===e)if(n){var o=t.parent().find(".stratum-content-switcher__nav-button:eq(0)").data("c
1792ontent"),i=$(d).find("#".concat(o));u.eq(0).addClass("is-active").siblings().removeClass("is-active"),i.addClass("is-active").siblings().removeClass("is-active")}else{var s=t.parent().find(".stratum-content-switcher__nav-button:eq(1)").data("content"),c=$(d).find("#".concat(s));u.eq(1).addClass("is-active").siblings().removeClass("is-active"),c.addClass("is-active").siblings().removeClass("is-active")}},l=$(e).find('input[type="checkbox"]'),u=$(e).find(".stratum-content-switcher__label > .stratum-content-switcher__nav-button"),d=$(e).find(".stratum-content-switcher__content");$(u).eq(1).is(".is-active")&&$(l).prop("checked","checked"),$(u).eq(0).on("click",function(e){e.preventDefault(),e.stopPropagation(),c(e.type,$(this),!1)}),$(u).eq(1).on("click",function(e){e.preventDefault(),e.stopPropagation(),c(e.type,$(this),!0)}),$(l).on("change",function(e){c(e.type,$(this),!this.checked)})}})}function oe(e){var t=e.find(".".concat("stratum-advanced-tabs"));t.on("mousedown",function(e){return e.stopPropagation()});var n=t.data("tabs-options"),r=n.tabs_interactivity,a=n.equal_height,i=$(t).find(".stratum-advanced-tabs__navigation-item"),s=$(t).find(".stratum-advanced-tabs__content");if(a){var o=0;$(t).find(".stratum-advanced-tabs__text").each(function(){$(this).height()>o&&(o=$(this).height())}),$(t).find(".stratum-advanced-tabs__text").height(o)}$(i).on(r,function(e){var t=$(this);i.removeClass("active-nav"),t.addClass("active-nav");var n=t.data("tab-id"),r=s.find(".stratum-advanced-tabs__content-item"),a=s.find('.stratum-advanced-tabs__content-item[data-tab-id="'+n+'"]'),o=a.find(".stratum-advanced-tabs__text").outerHeight(!0);r.removeClass("active-content"),r.css("height","0px"),a.addClass("active-content"),$(a).css("height",o)})}function ie(_){var b="stratum-advanced-posts";$(document).ready(function(){$(".".concat(b));var f=_.find(".".concat(b)),p=f.find(".".concat(b,"__wrapper"));if(f.hasClass("layout-carousel"))S(f);else{var m,n,a,r=function(e,t){if("click"==e.type&&e.preventDefault(),!h&&!i){"scroll"==e.type&&$(window).off("scroll",t);var o=f.find(".stratum-advanced-posts__ajax-load-more-btn"),n=o.data("current-page"),r=n<o.data("max-page")&&n+1;0!=r&&(o.data("next-page",r),a.page=r,i=!0,$.post({url:stratum.ajax_url,data:{action:"stratum_ajax_get_articles",settings:a,nonce:stratum.nonces.get_articles},success:function(e){o.data("current-page",o.data("next-page"));var t=o.data("current-page");if(t<o.data("max-page")){var n=t+1;o.data("next-page",n)}else h=!0,y("disable"),o.parent(".ajax_load_more_pagination").remove();var r=document.createElement("div");r.innerHTML=e;var a=jQuery(".".concat(b,"__post"),r);v||a.addClass("ajax_article"),p.append(a),imagesLoaded(p).on("always",function(){setTimeout(function(){i=!1},500),s?c("reload",a):g&&(h||y("reload")),v?new AnimOnScroll(p.get(0),{minDuration:.4,maxDuration:.7,viewportFactor:.2,animateVisible:!0}):a.each(function(e,t){setTimeout(function(){$(t).animate({opacity:1},500,function(){})},100+400*e)})})}}))}},h=!1,i=!1,v=p.hasClass("animate_on_scroll"),s=f.hasClass("masonry-enable"),e=f.find(".ajax_load_more_pagination").length,g=f.find(".ajax_load_more_pagination").hasClass("load_more_scroll");e&&(a=f.data("query-options"),f.on("click",".stratum-advanced-posts__ajax-load-more-btn",r));var t=function e(t){window.outerHeight<n.top?window.outerHeight+window.pageYOffset-200>n.top&&r(t,e):n.top-200<window.pageYOffset&&r(t,e)},y=function(e){n=$(".ajax_load_more_pagination").offset(),"init"==e?$(window).on("scroll",t):"reload"==e?($(window).off("scroll",t),$(window).on("scroll",t)):"disable"==e&&$(window).off("scroll",t)},c=function(e,t){var n=p.data("masonry-options"),r=n.columns,a=n.column_gap,o=void 0===a?0:a,i=n.row_gap,s=void 0===i?0:i,c=_.closest(".elementor-widget-".concat(b)).data("id"),l=o/parseInt(r)*(parseInt(r)-1),u=parseFloat(window.getComputedStyle(f.find(".grid-sizer").get(0)).width)-l;$(".".concat(b,"__post"),f).width(u).css({width:u,"margin-bottom":s});var d={itemSelector:".elementor-element-".concat(c," .").concat(b,"__post"),horizontalOrder:!0,columnWidth:u,transitionDuration:0,gutter:o};v?new AnimOnScroll(p.get(0),{minDuration:.4,maxDuration:.7,viewportFactor:.2,animateVisible:!0},d):("init"==e?m=p.masonry(d):"reload"==e&&p.masonry("appended",t).masonry(),imagesLoaded(m).on("progress",function(){m.masonry("layout")}),g&&imagesLoaded(m).on("always",function(){h||y(e)}))};s?c("init"):(v&&new AnimOnScroll(p.get(0),{minDuration:.4,maxDuration:.7,viewportFactor:.2,animateVisible:!1}),g&&(h||y("init")))}})}function se(e){var t=e.find(".".concat("stratum-testimonial-carousel"));S(t)}var ce=function(r,a,e){var o,i,s,c,l,u,d=0,f=!1,p=!1,t=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function m(e){var t=o,n=i;return o=i=void 0,d=e,c=r.apply(n,t)}function h(e){var t=e-u;return void 0===u||a<=t||t<0||p&&s<=e-d}function v(){var e,t,n=D();if(h(n))return g(n);l=setTimeout(v,(t=a-((e=n)-u),p?re(t,s-(e-d)):t))}function g(e){return l=void 0,t&&o?m(e):(o=i=void 0,c)}function n(){var e,t=D(),n=h(t);if(o=arguments,i=this,u=t,n){if(void 0===l)return d=e=u,l=setTimeout(v,a),f?m(e):c;if(p)return clearTimeout(l),l=setTimeout(v,a),m(u)}return void 0===l&&(l=setTimeout(v,a)),c}return a=te(a)||0,T(e)&&(f=!!e.leading,s=(p="maxWait"in e)?ne(te(e.maxWait)||0,a):s,t="trailing"in e?!!e.trailing:t),n.cancel=function(){void 0!==l&&clearTimeout(l),o=u=i=l=void(d=0)},n.flush=function(){return void 0===l?c:g(D())},n},le=Object.prototype.hasOwnProperty;function ue(e,t){return null!=e&&le.call(e,t)}var de=Array.isArray,fe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pe=/^\w*$/;var me=function(e,t){if(de(e))return!1;var n=p(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Y(e))||(pe.test(e)||!fe.test(e)||null!=t&&e in Object(t))};var he,ve=function(e){if(!T(e))return!1;var t=U(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ge=L["__core-js_shared__"],ye=(he=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||""))?"Symbol(sr
1792c)_1."+he:"";var _e=function(e){return!!ye&&ye in e},be=Function.prototype.toString;var we=function(e){if(null!=e){try{return be.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ke=/^\[object .+?Constructor\]$/,Ce=Function.prototype,Oe=Object.prototype,Se=Ce.toString,je=Oe.hasOwnProperty,$e=RegExp("^"+Se.call(je).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var xe=function(e){return!(!T(e)||_e(e))&&(ve(e)?$e:ke).test(we(e))};var Pe=function(e,t){return null==e?void 0:e[t]};var Me=function(e,t){var n=Pe(e,t);return xe(n)?n:void 0},Te=Me(Object,"create");function Ae(){this.__data__=Te?Te(null):{},this.size=0}function ze(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ie=Object.prototype.hasOwnProperty;function Ee(e){var t=this.__data__;if(Te){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ie.call(t,e)?t[e]:void 0}var Le=Object.prototype.hasOwnProperty;function De(e){var t=this.__data__;return Te?void 0!==t[e]:Le.call(t,e)}function He(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Te&&void 0===t?"__lodash_hash_undefined__":t,this}function Fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fe.prototype.clear=Ae,Fe.prototype.delete=ze,Fe.prototype.get=Ee,Fe.prototype.has=De,Fe.prototype.set=He;var Re=Fe;function We(){this.__data__=[],this.size=0}var Be=function(e,t){return e===t||e!=e&&t!=t};var Ve=function(e,t){for(var n=e.length;n--;)if(Be(e[n][0],t))return n;return-1},qe=Array.prototype.splice;function Ge(e){var t=this.__data__,n=Ve(t,e);return!(n<0)&&(n==t.length-1?t.pop():qe.call(t,n,1),--this.size,!0)}function Ne(e){var t=this.__data__,n=Ve(t,e);return n<0?void 0:t[n][1]}function Ue(e){return-1<Ve(this.__data__,e)}function Qe(e,t){var n=this.__data__,r=Ve(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ye.prototype.clear=We,Ye.prototype.delete=Ge,Ye.prototype.get=Ne,Ye.prototype.has=Ue,Ye.prototype.set=Qe;var Ze=Ye,Je=Me(L,"Map");var Ke=function(e){var t=p(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Xe=function(e,t){var n=e.__data__;return Ke(t)?n["string"==typeof t?"string":"hash"]:n.map};function et(e){var t=Xe(this,e).delete(e);return this.size-=t?1:0,t}function tt(e){return Xe(this,e).get(e)}function nt(e){return Xe(this,e).has(e)}function rt(e,t){var n=Xe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function at(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}at.prototype.clear=function(){this.size=0,this.__data__={hash:new Re,map:new(Je||Ze),string:new Re}},at.prototype.delete=et,at.prototype.get=tt,at.prototype.has=nt,at.prototype.set=rt;var ot=at,it="Expected a function";function st(a,o){if("function"!=typeof a||null!=o&&"function"!=typeof o)throw new TypeError(it);function i(){var e=arguments,t=o?o.apply(this,e):e[0],n=i.cache;if(n.has(t))return n.get(t);var r=a.apply(this,e);return i.cache=n.set(t,r)||n,r}return i.cache=new(st.Cache||ot),i}st.Cache=ot;var ct=st;var lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ut=/\\(\\)?/g,dt=function(e){var t=ct(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var a=[];return 46===e.charCodeAt(0)&&a.push(""),e.replace(lt,function(e,t,n,r){a.push(n?r.replace(ut,"$1"):t||e)}),a});var ft=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a},pt=1/0,mt=H?H.prototype:void 0,ht=mt?mt.toString:void 0;var vt=function e(t){if("string"==typeof t)return t;if(de(t))return ft(t,e)+"";if(Y(t))return ht?ht.call(t):"";var n=t+"";return"0"==n&&1/t==-pt?"-0":n};var gt=function(e){return null==e?"":vt(e)};var yt=function(e,t){return de(e)?e:me(e,t)?[e]:dt(gt(e))};var _t=function(e){return Q(e)&&"[object Arguments]"==U(e)},bt=Object.prototype,wt=bt.hasOwnProperty,kt=bt.propertyIsEnumerable,Ct=_t(function(){return arguments}())?_t:function(e){return Q(e)&&wt.call(e,"callee")&&!kt.call(e,"callee")},Ot=/^(?:0|[1-9]\d*)$/;var St=function(e,t){var n=p(e);return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ot.test(e))&&-1<e&&e%1==0&&e<t};var jt=function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=9007199254740991};var $t=function(e){if("string"==typeof e||Y(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var xt=function(e,t,n){for(var r=-1,a=(t=yt(t,e)).length,o=!1;++r<a;){var i=$t(t[r]);if(!(o=null!=e&&n(e,i)))break;e=e[i]}return o||++r!=a?o:!!(a=null==e?0:e.length)&&jt(a)&&St(i,a)&&(de(e)||Ct(e))};var Pt=function(e,t){return null!=e&&xt(e,t,ue)};var Mt=function(e){return e?(e=te(e))!==1/0&&e!==-1/0?e==e?e:0:17976931348623157e292*(e<0?-1:1):0===e?e:0};var Tt=function(e){var t=Mt(e),n=t%1;return t==t?n?t-n:t:0};var At=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=Tt(e),function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}};var zt=function(e){return At(2,e)};var It=function(t){return function(e){return null==t?void 0:t[e]}}({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Et=/&(?:amp|lt|gt|quot|#39);/g,Lt=RegExp(Et.source);var Dt=function(e){return(e=gt(e))&&Lt.test(e)?e.replace(Et,It):e};function Ht(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ft(e){return this.__data__.get(e)}function Rt(e){return this.__data__.has(e)}function Wt(e,t){var n=this.__data__;if(n instanceof Ze){var r=n.__data__;if(!Je||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ot(r)}return n.set(e,t),this.size=n.size,this}function Bt(e){var t=this.__data__=new Ze(e);this.size=t.size}Bt.prototype.clear=function(){this.__data__=new Ze,this.size=0},Bt.prototype.delete=Ht,Bt.prototype.get=Ft,Bt.prototype.has=Rt,Bt.prototype.set=Wt;var Vt=Bt;function qt(e){return this.__data__.has(e)}function Gt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ot;++t<n;)this.add(e[t])}Gt.prototype.add=Gt.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Gt.prototype.has=qt;var Nt=Gt;var Ut=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Qt=function(e,t){return e.has(t)};var Yt=function(e,t,n,r,a,o){var i=1&n,s=e.length,c=t.length;if(s!=c&&!(i&&s<c))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;
1792var u=-1,d=!0,f=2&n?new Nt:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=i?r(m,p,u,t,e,o):r(p,m,u,e,t,o);if(void 0!==h){if(h)continue;d=!1;break}if(f){if(!Ut(t,function(e,t){if(!Qt(f,t)&&(p===e||a(p,e,n,r,o)))return f.push(t)})){d=!1;break}}else if(p!==m&&!a(p,m,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d},Zt=L.Uint8Array;function Jt(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function Kt(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Xt=H?H.prototype:void 0,en=Xt?Xt.valueOf:void 0;var tn=function(e,t,n,r,a,o,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return e.byteLength==t.byteLength&&o(new Zt(e),new Zt(t))?!0:!1;case"[object Boolean]":case"[object Date]":case"[object Number]":return Be(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Jt;case"[object Set]":var c=1&r;if(s=s||Kt,e.size!=t.size&&!c)return!1;var l=i.get(e);if(l)return l==t;r|=2,i.set(e,t);var u=Yt(s(e),s(t),r,a,o,i);return i.delete(e),u;case"[object Symbol]":if(en)return en.call(e)==en.call(t)}return!1};var nn=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e};var rn=function(e,t,n){var r=t(e);return de(e)?r:nn(r,n(e))};var an=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o};function on(){return[]}var sn=Object.prototype.propertyIsEnumerable,cn=Object.getOwnPropertySymbols,ln=cn?function(t){return null==t?[]:(t=Object(t),an(cn(t),function(e){return sn.call(t,e)}))}:on;var un=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};function dn(){return!1}var fn=z(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n?L.Buffer:void 0,o=(a?a.isBuffer:void 0)||dn;e.exports=o}),pn={};pn["[object Float32Array]"]=pn["[object Float64Array]"]=pn["[object Int8Array]"]=pn["[object Int16Array]"]=pn["[object Int32Array]"]=pn["[object Uint8Array]"]=pn["[object Uint8ClampedArray]"]=pn["[object Uint16Array]"]=pn["[object Uint32Array]"]=!0,pn["[object Arguments]"]=pn["[object Array]"]=pn["[object ArrayBuffer]"]=pn["[object Boolean]"]=pn["[object DataView]"]=pn["[object Date]"]=pn["[object Error]"]=pn["[object Function]"]=pn["[object Map]"]=pn["[object Number]"]=pn["[object Object]"]=pn["[object RegExp]"]=pn["[object Set]"]=pn["[object String]"]=pn["[object WeakMap]"]=!1;function mn(e){return Q(e)&&jt(e.length)&&!!pn[U(e)]}var hn=function(t){return function(e){return t(e)}},vn=z(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n&&I.process,o=function(){try{var e=r&&r.require&&r.require("util").types;return e?e:a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o}),gn=vn&&vn.isTypedArray,yn=gn?hn(gn):mn,_n=Object.prototype.hasOwnProperty;var bn=function(e,t){var n=de(e),r=!n&&Ct(e),a=!n&&!r&&fn(e),o=!n&&!r&&!a&&yn(e),i=n||r||a||o,s=i?un(e.length,String):[],c=s.length;for(var l in e)!t&&!_n.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||St(l,c))||s.push(l);return s},wn=Object.prototype;var kn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||wn)};var Cn=function(t,n){return function(e){return t(n(e))}}(Object.keys,Object),On=Object.prototype.hasOwnProperty;var Sn=function(e){if(!kn(e))return Cn(e);var t=[];for(var n in Object(e))On.call(e,n)&&"constructor"!=n&&t.push(n);return t};var jn=function(e){return null!=e&&jt(e.length)&&!ve(e)};function $n(e){return(jn(e)?bn:Sn)(e)}var xn=function(e){return rn(e,$n,ln)},Pn=Object.prototype.hasOwnProperty;var Mn=function(e,t,n,r,a,o){var i=1&n,s=xn(e),c=s.length;if(c!=xn(t).length&&!i)return!1;for(var l=c;l--;){var u=s[l];if(!(i?u in t:Pn.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var p=i;++l<c;){var m=e[u=s[l]],h=t[u];if(r)var v=i?r(h,m,u,t,e,o):r(m,h,u,e,t,o);if(!(void 0===v?m===h||a(m,h,n,r,o):v)){f=!1;break}p=p||"constructor"==u}if(f&&!p){var g=e.constructor,y=t.constructor;g!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y)&&(f=!1)}return o.delete(e),o.delete(t),f},Tn=Me(L,"DataView"),An=Me(L,"Promise"),zn=Me(L,"Set"),In=Me(L,"WeakMap"),En="[object Map]",Ln="[object Promise]",Dn="[object Set]",Hn="[object WeakMap]",Fn="[object DataView]",Rn=we(Tn),Wn=we(Je),Bn=we(An),Vn=we(zn),qn=we(In),Gn=U;(Tn&&Gn(new Tn(new ArrayBuffer(1)))!=Fn||Je&&Gn(new Je)!=En||An&&Gn(An.resolve())!=Ln||zn&&Gn(new zn)!=Dn||In&&Gn(new In)!=Hn)&&(Gn=function(e){var t=U(e),n="[object Object]"==t?e.constructor:void 0,r=n?we(n):"";if(r)switch(r){case Rn:return Fn;case Wn:return En;case Bn:return Ln;case Vn:return Dn;case qn:return Hn}return t});var Nn=Gn,Un="[object Arguments]",Qn="[object Array]",Yn="[object Object]",Zn=Object.prototype.hasOwnProperty;var Jn=function(e,t,n,r,a,o){var i=de(e),s=de(t),c=i?Qn:Nn(e),l=s?Qn:Nn(t),u=(c=c==Un?Yn:c)==Yn,d=(l=l==Un?Yn:l)==Yn,f=c==l;if(f&&fn(e)){if(!fn(t))return!1;u=!(i=!0)}if(f&&!u)return o=o||new Vt,i||yn(e)?Yt(e,t,n,r,a,o):tn(e,t,c,n,r,a,o);if(!(1&n)){var p=u&&Zn.call(e,"__wrapped__"),m=d&&Zn.call(t,"__wrapped__");
1792if(p||m)return a(p?e.value():e,m?t.value():t,n,r,o=o||new Vt)}return f&&(o=o||new Vt,Mn(e,t,n,r,a,o))};var Kn=function e(t,n,r,a,o){return t===n||(null==t||null==n||!Q(t)&&!Q(n)?t!=t&&n!=n:Jn(t,n,r,a,e,o))};function Xn(e){elementorFrontend.elementsHandler.addHandler(ur,{$element:e})}function er(){if(Pt(pr.prototype,"panel")){var r=function(e){var t=pr.prototype.view,n=e.target,r=fr(n).closest(".elementor-repeater-row-controls"),a=i.index(r),o=t.$el.find(".".concat(dr,"__dot")).get(a);o.style.length&&(n.onmousemove=function(e){var t=e.target;o.removeAttribute("style"),t.onmousemove=null}),n.onmouseup=function(e){var t=e.target;t.onmousemove&&(t.onmousemove=null),t.onmouseup=null}},i=pr.prototype.panel.$el.find(".elementor-repeater-row-controls");fr.each(i,function(e,t){var n=fr(t).find('.elementor-slider [role="slider"]');fr.each(n,function(e,t){t.onmousedown=r})})}}function tr(e){function t(){return a.removeClass("default-active")}var n="stratum-image-accordion",r=e.find(".".concat(n)),a=r.find(".default-active"),o=r.hasClass("activate-on-click");if(a.length&&!o?r.mouseover(t):r.click(t),o){var i=r.find(".".concat(n,"__item"));i.click(function(e){var t=vr(e.currentTarget);t.hasClass("active")||(i.removeClass("active"),setTimeout(function(){return t.addClass("active")},100),r.hasClass("image-accordion-horizontal")?(i.css({flexGrow:1}),t.css({flexGrow:3})):(i.css({height:200}),t.css({height:400})))})}}function nr(e){var n=e.find(".".concat(gr,"-item__point")),r=0;yr.each(n,function(e,t){n[e+1]&&(r+=n[e+1].getBoundingClientRect().top-t.getBoundingClientRect().top)});var t=e.find("div[class$=__line]"),a=g(n.get()),o=a[0],i=(a.slice(1),yr(o).position().top+yr(o).height()/2);t.css({height:r,top:i})}function rr(e){var t=e.find(".".concat(gr,"-item__point")),n=g(t.get());n[0],n.slice(1).length&&yr.each(t,function(e,t){var n=t.getBoundingClientRect().top,r=yr(t).parents(".".concat(gr,"-item"))[0];n<=_r?yr(r).hasClass("is-active")||yr(r).addClass("is-active"):yr(r).hasClass("is-active")&&yr(r).removeClass("is-active")})}function ar(e){var t=e.find(".".concat(gr,"-item__point")),n=e.find("div[class*=__line-progress]")[0],r=n.getBoundingClientRect().top,a=g(t.toArray()),o=a[0],i=a.slice(1),s=_r-o.getBoundingClientRect().top;if(i.length){var c=i.slice(-1).pop().getBoundingClientRect().top;r<=_r&&_r<=c&&yr(n).css({height:s}),_r<=r&&yr(n).css({height:0}),c<=_r&&yr(n).css({height:"100%"})}}function or(e){var t=e.find(".".concat(gr)),r=t.find(".".concat(gr,"-item")),n="none"!=t.data("animation")?t.data("animation"):null,a=!1;function o(n){yr.each(r,function(e,t){yr(t).hasClass("is-hidden")&&t.getBoundingClientRect().top<=.8*window.innerHeight&&(yr(t).removeClass("is-hidden"),yr(t).addClass(n))}),a=!1}yr.each(r,function(e,t){n&&(t.getBoundingClientRect().top>.8*window.innerHeight?yr(t).addClass("is-hidden"):yr(t).addClass(n))}),n&&yr(document).scroll(function(){a||(a=!0,window.requestAnimationFrame?window.requestAnimationFrame(function(){return o(n)}):setTimeout(function(){return o(n)},250))}),nr(t);var i=setInterval(function(){"complete"==document.readyState&&(nr(t),rr(t),ar(t),yr(document).scroll(function(){rr(t),ar(t)}),clearInterval(i))},1);yr(window).resize(function(){nr(t),rr(t),ar(t)})}function ir(e){var n=e.find(".".concat(br,"-item__point-content")),r=0;wr.each(n,function(e,t){n[e+1]&&(r+=n[e+1].getBoundingClientRect().left-t.getBoundingClientRect().left)});var t=e.find("div[class$=__line]"),a=g(n.get()),o=a[0],i=(a.slice(1),wr(o).position().left+wr(o).width()/2);t.css({width:r,left:i})}function sr(e){var t=e.find(".".concat(br));t.find(".".concat(br,"-item")),ir(t);var n=setInterval(function(){"complete"==document.readyState&&(ir(t),clearInterval(n))},1);wr(window).resize(function(){return ir(t)})}function cr(e){var a=e.find(".".concat(kr)).find(".".concat(kr,"__wrapper")),t=a.data("lottie-url"),n=a.data("lottie-render"),r=a.data("lottie-loop"),o=a.data("lottie-reverse"),i=a.data("lottie-speed"),s=a.data("lottie-scroll"),c=a.data("lottie-hover"),l=lottie.loadAnimation({container:a[0],renderer:n||"svg",loop:!!r,path:t,autoplay:!0});o&&l.setDirection(-1),i&&1!==i&&l.setSpeed(i),l.addEventListener("DOMLoaded",function(){if(s){var e=a.data("scroll-speed"),t=a.data("scroll-start"),n=a.data("scroll-end");l.pause();var r={elementType:"SECTION",animate:{speed:e,range:{start:t,end:n}},effects:["animate"]};new Or(a[0],r,l).init()}c&&(l.pause(),a.hover(function(){l.play()},function(){l.pause()}))})}var lr=function(e,t){return Kn(e,t)},ur=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(f,elementorModules.frontend.handlers.Base);var r,a,e=(r=f,a=u(),function(){var e,t=m(r);if(a){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function f(){return i(this,f),e.apply(this,arguments)}return s(f,[{key:"getDefaultSettings",value:function(){return{selectors:{mainClass:"stratum-advanced-google-map",modeClass:"elementor-element-edit-mode",saveButtonClass:"elementor-button-success",editableClass:"elementor-element-editable",disabledClass:"elementor-disabled"}}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors"),t=e.mainClass,n=e.saveButtonClass;return this.initEditor=zt(this.initEditor),this.isEditor=this.$element.hasClass(e.modeClass),C({$map:this.$element.find(".".concat(t)),$container:this.$element.find(".".concat(t,"__container"))},this.isEditor?{$saveButton:elementor.getPanelView().$el.find(".".concat(n))}:{})}},{key:"onInit",value:function(){for(var e,t=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];(e=v(m(f.prototype),"onInit",this)).call.apply(e,[this].concat(r));var o=this.elements.$map.data("map-options"),i=o.center,s=o.zoomLevel,c=o.controls,l=o.mapTheme,u=o.interaction,d=this.getCoordinates(i);this.map=new google.maps.Map(this.elements.$container[0],C({center:d,zoom:parseInt(s.size),styles:"object"!=p(l)?googleMapStyles[l]:l,zoomControlOptions:{position:google.maps.ControlPosition.TOP_LEFT},gestureHandling:u,draggable:!0},c)),this.map.addListener("click",function(){$.each(t.markers,function(e,t){Pt(t,"info")&&t.info.close()})}),this.isEditor&&(this.attributes=x(elementorFrontendConfig.elements.data[this.getModelCID()].attributes)),this.initMarkers(this.chnageTypeSetup(o))}},{key:"initMarkers",value:function(e){this.markers=[],this.geocoder=new google.maps.Geocoder;var o=e.markerTypeSetup,t=e.markers,i=this;$.each(t,function(e,t){var n=t.markerLat,r=t.markerLng;if(delete t.markerLat,delete t.markerLng,lr(o,"address"))i.geocode(t);else{var a=new google.maps.LatLng(parseFloat(n),parseFloat(r));i.createMarker(a,t)}}),this.isEditor&&this.initEditor(e)}},{key:"geocode",value:function(r){var e=r.mapGeoAddress,a=this;this.geocoder.geocode({address:e},function(e,t){if(lr(t,"OK")){var n=e[0].geometry.location;a.markers.length?(a.map.setZoom(12),a.map.panTo(n),a.markers[0].setPosition(n),a.currentPageModel.setSetting("marker_lat",n.lat()),a.currentPageModel.setSetting("marker_lng",n.lng())):(a.createMarker(n,r),a.focusOnMarker(a.markers[0]),a.initMarkersHandler(),a.setMarkerDragEnable(!1))}})}},{key:"createMarker",value:function(e,t){var n=Pt(t,"customIcon")?t.customIcon.markerIcon.url:"";this.attachMessage(new google.maps.Marker(C(C(C({map:this.map,position:e},this.isEditor?{draggable:!0}:{}),t.markerTitle?{title:t.markerTitle}:{}),Pt(t,"customIcon")&&n?{icon:this.setMarkerIcon(t.customIcon)}:{})),t)}},{key:"attachMessage",value:function(e,t){var n=t.markerContent,r=t.popupMaxWidth,a=t.isOpenPopup;if(this.markers.push(e),n){var o=this.getSettings("selectors"),i=document.createElement("div");i.classList.add("".concat(o.mainClass,"__marker-popup")),i.innerHTML=Dt(n),e.info=new google.maps.InfoWindow({headerDisabled:!0,content:i,maxWidth:r})}var s=this;a&&Pt(e,"info")&&setTimeout(function(){return e.info.open(s.map,e)},1e3),Pt(e,"info")&&e.addListener("click",function(){$.each(s.markers,function(e,t){Pt(t,"info")&&t.info.close()}),e.info.open(s.map,e)})}},{key:"setMarkerIcon",value:function(e){var t=e.markerIcon,n=e.markerIconWidth,r=e.markerIconHeight;return{url:t.url,scaledSize:new google.maps.Size(n.size,r.size)}}},{key:"getCoordinates",value:function(t){return d(google.maps.LatLng,y(Object.keys(t).map(function(e){return parseFloat(t[e])})))}},{key:"initEditor",value:function(e){var t=this;this.$element.css({opacity:1}),["dragstart","mousemove"].forEach(function(e){return t.$element.on(e,function(e){return e.stopPropagation()})}),lr(elementor.getPanelView().currentPageName,"editor")?this.currentPageModel=elementor.getPanelView().currentPageView.model:(this.setMapAvailability(!1),this.setMarkerDragEnable(!1));var c=this;this.mutationObserver=new MutationObserver(function(e){$.each(e,function(e,t){if(lr(t.attributeName,"class")){var n=c.getSettings("selectors"),r=!!Array.from(t.target.classList).includes(n.editableClass);if(c.setMapAvailability(r),r){var a=c.attributes.mapTypeSetup,o=lr(a,"multiple")?"coordinates":c.attributes.markerTypeSetup,i=!lr(o,"address"),s=elementor.getCurrentElement();s&&(s.render=function(){}),c.currentPageModel=elementor.getPanelView().currentPageView.model,c.setMarkerDragEnable(i)}}})}),this.mutationObserver.observe(this.$element[0],{attributes:!0}),this.initMapHandlers(),lr(e.markerTypeSetup,"address")||this.initMarkersHandler();var n=this.attributes.markers;n.on("add",function(e,t){var n=e.collection.indexOf(e);t.models[n].on("change",function(e){return c.updateMarkersOptions(e)});var r=x(e.attributes),a=r.markerLat,o=r.markerLng,i=c.getMarkersOptions().markers.pop();delete i.markerLat,delete i.markerLng,c.createMarker(c.getCoordinates({lat:a,lng:o}),i),c.initDragHandler(c.markers[n]),c.focusOnMarker(c.markers[n])}),n.on("remove",function(e,t,n){c.markers[n.index].setMap(null),c.markers=c.markers.filter(function(e,t){return t!=n.index})}
1792),n.models.forEach(function(e){return e.on("change",function(e){return c.updateMarkersOptions(e)})})}},{key:"updateMarkersOptions",value:function(e){var t=x(e.attributes),n=t.markerTitle,r=t.markerLat,a=t.markerLng,o=t.useCustomIcon,i=t.markerIcon,s=t.markerIconWidth,c=t.markerIconHeight,l=e.collection.indexOf(e),u=i.url;this.markers[l].setOptions(C(C(C({},n?{title:n}:{}),{icon:this.setMarkerIcon(C(C(C({},u&&o?{markerIcon:i}:{markerIcon:{url:"https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png"}}),u&&o?{markerIconWidth:s}:{markerIconWidth:{size:27}}),u&&o?{markerIconHeight:c}:{markerIconHeight:{size:43}}))}),{},{position:this.getCoordinates({markerLat:r,markerLng:a})}));var d=t.markerContent,f=t.popupMaxWidth;Pt(this.markers[l],"info")&&this.markers[l].info.setContent(d),Pt(this.markers[l],"info")&&this.markers[l].info.setOptions({maxWidth:f})}},{key:"getMarkersOptions",value:function(){function t(e){var t=e.markerTitle,n=e.markerContent,r=e.popupMaxWidth,a=e.isOpenPopup,o=e.markerLat,i=e.markerLng,s=e.useCustomIcon,c=null;return s&&(c={markerIcon:e.markerIcon,markerIconWidth:e.markerIconWidth,markerIconHeight:e.markerIconHeight}),C(C({markerTitle:t,markerContent:n,popupMaxWidth:r,isOpenPopup:a,markerLat:o,markerLng:i},s?{customIcon:c}:{}),lr(l,"address")?{mapGeoAddress:u}:{})}var e=this.attributes,n=e.mapTypeSetup,l=e.markerTypeSetup,u=e.mapGeoAddress,r=e.markers;return C({mapTypeSetup:n,markerTypeSetup:l},lr(n,"single")?{markers:[t(this.attributes)]}:{markers:r.models.map(function(e){return t(x(e.attributes))})})}},{key:"getMapOptions",value:function(){var e=this.attributes,t=e.mapLat,n=e.mapLng,r=e.zoomLevel,a=e.interaction,o=this.attributes,i=o.streetViewControl,s=o.mapTypeControl,c=o.zoomControl;return{zoomLevel:r,interaction:a,center:{mapLat:t,mapLng:n},controls:{streetViewControl:i,fullscreenControl:o.fullscreenControl,mapTypeControl:s,zoomControl:c}}}},{key:"setMapAvailability",value:function(e){this.map.setOptions({draggable:e,disableDoubleClickZoom:e})}},{key:"setMarkerDragEnable",value:function(n){$.each(this.markers,function(e,t){return t.setDraggable(n)})}},{key:"focusOnMarker",value:function(e){var t=e.position;this.map.setCenter(new google.maps.LatLng(t.lat(),t.lng()))}},{key:"initMapHandlers",value:function(){var n=this,r=this.getSettings("selectors");this.map.addListener("dragend",function(){if(n.currentPageModel){var e=n.map.getCenter().lat().toString(),t=n.map.getCenter().lng().toString();n.currentPageModel.setSetting("map_lat",e),n.currentPageModel.setSetting("map_lng",t),n.elements.$saveButton.removeClass(r.disabledClass)}}),this.map.addListener("zoom_changed",function(){if(n.currentPageModel){var e=n.map.getZoom(),t=n.map.getCenter();n.currentPageModel.setSetting("map_lat",t.lat()),n.currentPageModel.setSetting("map_lng",t.lng()),n.currentPageModel.setSetting("zoom_level",{size:e,sizes:[],unit:"px"}),n.elements.$saveButton.removeClass(r.disabledClass)}})}},{key:"initMarkersHandler",value:function(){var n=this;$.each(this.markers,function(e,t){n.initDragHandler(t)})}},{key:"initDragHandler",value:function(o){var i=this;o.addListener("dragend",function(e){if(i.currentPageModel){var t=i.markers.indexOf(o),n=e.latLng.lat().toString(),r=e.latLng.lng().toString();lr(i.attributes.mapTypeSetup,"single")?(i.currentPageModel.setSetting("marker_lat",n),i.currentPageModel.setSetting("marker_lng",r),i.setAddressAfterDrag({lat:e.latLng.lat(),lng:e.latLng.lng()})):(i.currentPageModel.setSetting("markers.".concat(t,".marker_lat"),n),i.currentPageModel.setSetting("markers.".concat(t,".marker_lng"),r));var a=i.getSettings("selectors");i.elements.$saveButton.removeClass(a.disabledClass)}})}},{key:"setAddressAfterDrag",value:function(e){var r=this;this.geocoder.geocode({location:e},function(e,t){if(lr(t,"OK")){var n=e[0];n&&r.currentPageModel.setSetting("map_geo_address",n.formatted_address)}})}},{key:"chnageTypeSetup",value:function(e){var t=e.mapTypeSetup,n=e.markerTypeSetup;return C(C({},e),lr(t,"multiple")?{markerTypeSetup:"coordinates"}:{markerTypeSetup:n})}},{key:"onElementChange",value:function(e){var t=this.getElementSettings(e),n=this.getMarkersOptions();switch(e){case"map_type_setup":$.each(this.markers,function(e,t){return t.setMap(null)}),n=this.chnageTypeSetup(n),this.initMarkers(n),lr(n.markerTypeSetup,"address")||this.focusOnMarker(this.markers[0]),this.initMarkersHandler();break;case"marker_type_setup":var r=!lr(t,"address");this.setMarkerDragEnable(r);break;case"map_geo_address":this.geocode({mapGeoAddress:t});break;case"marker_content":Pt(this.markers[0],"info")&&this.markers[0].info.setContent(t);break;case"popup_max_width":Pt(this.markers[0],"info")&&this.markers[0].info.setOptions({maxWidth:t});break;case"marker_icon":if(t.url){var a=this.attributes,o=a.markerIconWidth,i=a.markerIconHeight;this.markers[0].setIcon({url:t.url,scaledSize:new google.maps.Size(o.size,i.size)})}
1792else this.markers[0].setIcon({url:"https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png",scaledSize:new google.maps.Size(27,43)});break;case"use_custom_icon":if(t){var s=this.attributes,c=s.markerIcon,l=s.markerIconWidth,u=s.markerIconHeight;c.url&&this.markers[0].setIcon({url:c.url,scaledSize:new google.maps.Size(l.size,u.size)})}else this.markers[0].setIcon({url:"https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png",scaledSize:new google.maps.Size(27,43)});break;case"map_theme_source":switch(t){case"standard":this.map.setOptions({styles:googleMapStyles[this.attributes.mapStandardsStyles]});break;case"snazzymaps":this.map.setOptions({styles:googleMapStyles[this.attributes.mapSnazzyStyles]});break;case"custom":var d=this.attributes.mapCustomStyle;try{d&&this.map.setOptions({styles:JSON.parse(d)})}catch(e){console.error(e.toString())}break;default:return}break;case"map_standards_styles":case"map_snazzy_styles":this.map.setOptions({styles:googleMapStyles[t]});break;case"map_custom_style":try{t&&this.map.setOptions({styles:JSON.parse(t)})}catch(e){console.error(e.toString())}break;default:var f=this.getMapOptions(),p=f.interaction,m=f.zoomLevel,h=f.center,v=f.controls,g=n.markers[0],y=g.markerTitle,_=g.markerLat,b=g.markerLng,w=g.customIcon,k=(w||{markerIcon:{url:""}}).markerIcon.url;return this.map.setOptions(C({center:this.getCoordinates(h),gestureHandling:p,zoom:m.size},v)),void this.markers[0].setOptions(C({title:y,position:this.getCoordinates({markerLat:_,markerLng:b})},w&&k?{icon:this.setMarkerIcon(w)}:{}))}}},{key:"onDestroy",value:function(){}}]),f}(),dr="stratum-image-hotspot",fr=window.jQuery,pr=function(e){var r=e.find(".".concat(dr));r.on("mousedown",function(e){return e.stopPropagation()});var t=r.find(".".concat(dr,"__dot")),n=r.find(".".concat(dr,"__wrapper"));er(),n.imagesLoaded().done(function(){fr.each(t,function(e,t){var n=fr(t).find(".".concat(dr,"__dot-wrapper")).data("options");n&&hr(n,t),window.elementor&&mr(r,n,t)})})},mr=function(s,e,t){var n=s.find(".".concat(dr,"__wrapper")),r=new Draggabilly(t,{containment:n});e&&r.on("dragStart",function(){fr(".tippy-box").parent().remove()}),r.on("dragEnd",function(e){var t=s.find(".".concat(dr,"__dot")),n=fr(e.target).closest(".".concat(dr,"__dot")),r=parseFloat(n[0].offsetLeft/n[0].parentNode.offsetWidth*100),a=parseFloat(n[0].offsetTop/n[0].parentNode.offsetHeight*100);r=r<0?0:100<r?100:r,a=a<0?0:100<a?100:a,n.css({left:r+"%",top:a+"%"});var o=pr.prototype.view,i=t.index(n);o.model.setSetting("hot_spots.".concat(i,".left_position"),{unit:"px",size:r,sizes:[]}),o.model.setSetting("hot_spots.".concat(i,".top_position"),{unit:"px",size:a,sizes:[]}),elementor.getPanelView().$el.find(".elementor-button-success").removeClass("elementor-disabled")})},hr=function(e,t){var n=e.open,r=e.placement,a=e.tooltipArrow,o=e.tooltipTheme,i=e.tooltipAnimation,s=e.tooltipTrigger,c=e.tooltipTitle,l=e.tooltipContent,u=j().div,d={class:"".concat(dr,"__tooltip-title")},f={class:"".concat(dr,"__tooltip-content")},p=u({class:"".concat(dr,"__tooltip-wrapper")},[u(d,c),u(f,l)]),m={placement:r,arrow:a,hideOnClick:!0,theme:o,animation:i,animateFill:!1,trigger:"hover"==s?"mouseenter":"click",interactive:!0,allowHTML:!0,content:Dt(p.outerHTML)};window.elementor&&(m.interactive=!1);var h=tippy(t,m);n&&setTimeout(function(){h.show()},1e3)},vr=window.jQuery,gr="stratum-vertical-timeline",yr=window.jQuery,_r=yr(window).height()/2,br="stratum-horizontal-timeline",wr=window.jQuery,kr="stratum-lottie-animations",Cr=window.jQuery,Or=function(){function r(e,t,n){i(this,r),this.$element=Cr(e),this.elementSettings=t,this.elementType=t.elementType,this.scrolls=this.$element.data("scrolls"),this.lottieInstance=n,this.elementRules={},this.initScroll=this.initScroll.bind(this)}return s(r,[{key:"init",value:function(){this.scrolls||"SECTION"===this.elementType?this.elementSettings.effects.length&&(this.setDefaults(),elementorFrontend.elements.$window.on("scroll load",this.initScroll)):elementorFrontend.elements.$window.off("scroll load",this.initScroll)}},{key:"setDefaults",value:function(){this.elementSettings.defaults={},this.elementSettings.defaults.axis="y"}},{key:"getPercents",value:function(){var e=this.getDimensions(),t=e.elementTop-pageYOffset-innerHeight;return 100/e.range*(-1*t)}},{key:"initScroll",value:function(){this.initScrollEffects()}},{key:"initScrollEffects",value:function(){var e=this.getPercents();this.elementSettings.effects.includes("animate")&&this.animate(e,this.elementSettings.animate),this.elementSettings.effects.includes("translateY")&&this.transform("translateY",e,this.elementSettings.vscroll)}},{key:"getDimensions",value:function(){var e=this.$element.offset(),t={elementHeight:this.$element.outerHeight(),elementWidth:this.$element.outerWidth(),elementTop:e.top,elementLeft:e.left};return t.range=t.elementHeight+innerHeight,t}},{key:"getStep",value:function(e,t){return-(e-50)*t.speed}},{key:"animate",value:function(e,t){var n=this.lottieInstance.totalFrames;t.range&&(t.range.start>e&&(e=t.range.start),t.range.end<e&&(e=t.range.end));var r=e/100*n;this.lottieInstance.goToAndStop(r,!0)}},{key:"transform",value:function(e,t,n){"down"===n.direction&&(t=100-t),n.range&&(n.range.start>t&&(t=n.range.start),n.range.end<t&&(t=n.range.end)),this.elementSettings.defaults.unit="px",this.updateElement("transform",e,this.get
1792Step(t,n)+this.elementSettings.defaults.unit)}},{key:"updateElement",value:function(e,t,n){this.elementRules[e]||(this.elementRules[e]={}),this.elementRules[e][t]||(this.elementRules[e][t]=!0,this.updateElementRule(e));var r="--"+t;this.$element[0].style.setProperty(r,n)}},{key:"updateElementRule",value:function(e){var t="";Cr.each(this.elementRules[e],function(e){return t+=(function(e){throw new Error('"'+e+'" is read-only')}("cssValue"),e+"(var(--"+e+"))")}),this.$element.css(e,t)}}]),r}();$=jQuery,$(window).on("elementor/frontend/init",function(){window.elementor&&(elementor.hooks.addAction("panel/open_editor/widget",function(e,t,n){var r="stratum-image-hotspot";if(n.$el.hasClass("elementor-widget-".concat(r)))var a=setInterval(function(){$(".".concat(r)).length&&(pr.prototype.panel=e,pr.prototype.view=n,er(),clearInterval(a))},1)}),elementor.channels.editor.on("section:activated",function(e,t){var n=t.getOption("editedElementView"),r="stratum-flip-box",a=n.model.get("widgetType");if(lr(a,r)){var o=n.$el.find(".".concat(r,"__back")),i=-1!==["section_back_content","section_syle_back"].indexOf(e);n.$el.toggleClass("".concat(r,"--flipped"),i),i&&o.css("transition","none"),i||setTimeout(function(){o.css("transition","")},10)}})),elementorFrontend.hooks.addAction("frontend/element_ready/global",function(e){}),elementorFrontend.hooks.addAction("frontend/element_ready/section",function(e){}),elementorFrontend.hooks.addAction("frontend/element_ready/column",function(e){});var a={instagram:e,counter:t,countdown:n,"circle-progress-bar":r,"masonry-gallery":o,"image-hotspot":pr,"advanced-slider":P,"advanced-accordion":M,"advanced-tabs":oe,"content-switcher":ae,"testimonial-carousel":se,"advanced-posts":ie,"advanced-google-map":Xn,"image-accordion":tr,"vertical-timeline":or,"horizontal-timeline":sr,"lottie-animations":cr};elementorFrontend.hooks.addAction("frontend/element_ready/widget",function(e){var t=e.data("widget_type"),n=t.substr(t.indexOf(".")),r=t.substr(t.indexOf("-")+1).split(".")[0];e.is(".elementor-widget-stratum-".concat(r))&&elementorFrontend.hooks.addAction("frontend/element_ready/stratum-"+r+n,a[r])})})}();
1793;jQuery(document).ready(function(){jQuery("#mec_skin_mec1").mecCarouselView({id:"mec1",start_date:"2026-09-24",items:"3",items_tablet:"2",items_mobile:"1",autoplay_status:"1",autoplay:"3000",loop:!0,style:"type1",atts:"atts%5Blabel%5D=&atts%5Bcategory%5D=795%2C649%2C833%2C472%2C722%2C652%2C467%2C469%2C757%2C464%2C654&atts%5Blocation%5D=&atts%5Borganizer%5D=&atts%5Btag%5D=&atts%5Bauthor%5D=&atts%5Bskin%5D=carousel&atts%5Bshow_past_events%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Bstyle%5D=classic&atts%5Bsk-options%5D%5Blist%5D%5Bstart_date_type%5D=today&atts%5Bsk-options%5D%5Blist%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Blist%5D%5Bend_date_type%5D=date&atts%5Bsk-options%5D%5Blist%5D%5Bmaximum_date_range%5D=&atts%5Bsk-options%5D%5Blist%5D%5Border_method%5D=ASC&atts%5Bsk-options%5D%5Blist%5D%5Bclassic_date_format1%5D=M+d+Y&atts%5Bsk-options%5D%5Blist%5D%5Bminimal_date_format1%5D=d&atts%5Bsk-options%5D%5Blist%5D%5Bminimal_date_format2%5D=M&atts%5Bsk-options%5D%5Blist%5D%5Bminimal_date_format3%5D=l&atts%5Bsk-options%5D%5Blist%5D%5Bmodern_date_format1%5D=d&atts%5Bsk-options%5D%5Blist%5D%5Bmodern_date_format2%5D=F&atts%5Bsk-options%5D%5Blist%5D%5Bmodern_date_format3%5D=l&atts%5Bsk-options%5D%5Blist%5D%5Bstandard_date_format1%5D=d+M&atts%5Bsk-options%5D%5Blist%5D%5Baccordion_date_format1%5D=d&atts%5Bsk-options%5D%5Blist%5D%5Baccordion_date_format2%5D=F&atts%5Bsk-options%5D%5Blist%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Blist%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Binclude_events_times%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Bpagination%5D=loadmore&atts%5Bsk-options%5D%5Blist%5D%5Bmonth_divider%5D=1&atts%5Bsk-options%5D%5Blist%5D%5Bdisplay_price%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Bdisplay_categories%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Bdisplay_organizer%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Bset_geolocation%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Bset_geolocation_focus%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Bstatus_bar%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Btoggle_month_divider%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Blist%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Bstyle%5D=classic&atts%5Bsk-options%5D%5Bgrid%5D%5Bstart_date_type%5D=today&atts%5Bsk-options%5D%5Bgrid%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Bgrid%5D%5Bend_date_type%5D=date&atts%5Bsk-options%5D%5Bgrid%5D%5Bmaximum_date_range%5D=&atts%5Bsk-options%5D%5Bgrid%5D%5Border_method%5D=ASC&atts%5Bsk-options%5D%5Bgrid%5D%5Bclassic_date_format1%5D=d+F+Y&atts%5Bsk-options%5D%5Bgrid%5D%5Bclean_date_format1%5D=d&atts%5Bsk-options%5D%5Bgrid%5D%5Bclean_date_format2%5D=F&atts%5Bsk-options%5D%5Bgrid%5D%5Bminimal_date_format1%5D=d&atts%5Bsk-options%5D%5Bgrid%5D%5Bminimal_date_format2%5D=M&atts%5Bsk-options%5D%5Bgrid%5D%5Bmodern_date_format1%5D=d&atts%5Bsk-options%5D%5Bgrid%5D%5Bmodern_date_format2%5D=F&atts%5Bsk-options%5D%5Bgrid%5D%5Bmodern_date_format3%5D=l&atts%5Bsk-options%5D%5Bgrid%5D%5Bsimple_date_format1%5D=M+d+Y&atts%5Bsk-options%5D%5Bgrid%5D%5Bcolorful_date_format1%5D=d&atts%5Bsk-options%5D%5Bgrid%5D%5Bcolorful_date_format2%5D=F&atts%5Bsk-options%5D%5Bgrid%5D%5Bcolorful_date_format3%5D=l&atts%5Bsk-options%5D%5Bgrid%5D%5Bnovel_date_format1%5D=d+F+Y&atts%5Bsk-options%5D%5Bgrid%5D%5Bcount%5D=1&atts%5Bsk-options%5D%5Bgrid%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Bgrid%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Binclude_events_times%5D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Bpagination%5D=loadmore&atts%5Bsk-options%5D%5Bgrid%5D%5Bdisplay_price%5D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Bdisplay_categories%5D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Bdisplay_organizer%5
1793D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Bset_geolocation%5D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Bset_geolocation_focus%5D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Bgrid%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Bagenda%5D%5Bstyle%5D=clean&atts%5Bsk-options%5D%5Bagenda%5D%5Bstart_date_type%5D=today&atts%5Bsk-options%5D%5Bagenda%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Bagenda%5D%5Bend_date_type%5D=date&atts%5Bsk-options%5D%5Bagenda%5D%5Bmaximum_date_range%5D=&atts%5Bsk-options%5D%5Bagenda%5D%5Border_method%5D=ASC&atts%5Bsk-options%5D%5Bagenda%5D%5Bclean_date_format1%5D=l&atts%5Bsk-options%5D%5Bagenda%5D%5Bclean_date_format2%5D=F+j&atts%5Bsk-options%5D%5Bagenda%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Bagenda%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bagenda%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bagenda%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bagenda%5D%5Bpagination%5D=loadmore&atts%5Bsk-options%5D%5Bagenda%5D%5Bmonth_divider%5D=0&atts%5Bsk-options%5D%5Bagenda%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Bagenda%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Bagenda%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bstyle%5D=classic&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bstart_date_type%5D=today&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bdefault_view%5D=list&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bmonthly_style%5D=clean&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Blist%5D=1&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bdate_format_list%5D=d+M&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bend_date_type_list%5D=date&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bmaximum_date_range_list%5D=&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Border_method_list%5D=ASC&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bgrid%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bend_date_type_grid%5D=date&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bmaximum_date_range_grid%5D=&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Border_method_grid%5D=ASC&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Btile%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Byearly%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bdate_format_yearly_1%5D=l&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bdate_format_yearly_2%5D=F+j&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bmonthly%5D=1&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bactivate_first_date%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bactivate_current_day%5D=1&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bdisplay_all%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bweekly%5D=1&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bdaily%5D=1&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bdisplay_price%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Bfull_calendar%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Byearly_view%5D%5Bstyle%5D=modern&atts%5Bsk-options%5D%5Byearly_view%5D%5Bstart_date_type%5D=start_current_year&atts%5Bsk-options%5D%5Byearly_view%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmodern_date_format1%5D=l&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmodern_date_format2%5D=F+j&atts%5Bsk-options%5D%5Byearly_view%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B1%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B2%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B3%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B4%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B5%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B6%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B7%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B8%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B9%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B10%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B11%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bmonths%5D%5B12%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Byearly_view%5D%5Bnext_previous_button%5D=1&atts%5Bsk-options%5D%5Byearly_view%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Byearly_view%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Byearly_view%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Byearly_view%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Byearly_view%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bstyle%5D=classic&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bstart_date_type%5D=start_current_month&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bnext_previous_button%5D=1&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bdisplay_organizer%5
1793D=0&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bactivate_first_date%5D=0&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bactivate_current_day%5D=1&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bdisplay_all%5D=0&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bdetailed_time%5D=0&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Bmonthly_view%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Bmap%5D%5Bstyle%5D=classic&atts%5Bsk-options%5D%5Bmap%5D%5Bstart_date_type%5D=today&atts%5Bsk-options%5D%5Bmap%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Bmap%5D%5Blimit%5D=200&atts%5Bsk-options%5D%5Bmap%5D%5Bgeolocation%5D=0&atts%5Bsk-options%5D%5Bmap%5D%5Bgeolocation_focus%5D=0&atts%5Bsk-options%5D%5Bdaily_view%5D%5Bstyle%5D=classic&atts%5Bsk-options%5D%5Bdaily_view%5D%5Bstart_date_type%5D=today&atts%5Bsk-options%5D%5Bdaily_view%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Bdaily_view%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Bdaily_view%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bdaily_view%5D%5Bnext_previous_button%5D=1&atts%5Bsk-options%5D%5Bdaily_view%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bdaily_view%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bdaily_view%5D%5Bdisplay_categories%5D=0&atts%5Bsk-options%5D%5Bdaily_view%5D%5Bdisplay_organizer%5D=0&atts%5Bsk-options%5D%5Bdaily_view%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Bdaily_view%5D%5Bdetailed_time%5D=0&atts%5Bsk-options%5D%5Bdaily_view%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Bdaily_view%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Bweekly_view%5D%5Bstyle%5D=classic&atts%5Bsk-options%5D%5Bweekly_view%5D%5Bstart_date_type%5D=start_current_week&atts%5Bsk-options%5D%5Bweekly_view%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Bweekly_view%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Bweekly_view%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bweekly_view%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bweekly_view%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bweekly_view%5D%5Bdisplay_categories%5D=0&atts%5Bsk-options%5D%5Bweekly_view%5D%5Bdisplay_organizer%5D=0&atts%5Bsk-options%5D%5Bweekly_view%5D%5Bnext_previous_button%5D=1&atts%5Bsk-options%5D%5Bweekly_view%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Bweekly_view%5D%5Bdetailed_time%5D=0&atts%5Bsk-options%5D%5Bweekly_view%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Bweekly_view%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Btimetable%5D%5Bstyle%5D=modern&atts%5Bsk-options%5D%5Btimetable%5D%5Bstart_date_type%5D=start_current_week&atts%5Bsk-options%5D%5Btimetable%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Btimetable%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Btimetable%5D%5Bnumber_of_days_modern%5D=7&atts%5Bsk-options%5D%5Btimetable%5D%5Bnumber_of_days%5D=5&atts%5Bsk-options%5D%5Btimetable%5D%5Bweek_start%5D=-1&atts%5Bsk-options%5D%5Btimetable%5D%5Bstart_time%5D=1&atts%5Bsk-options%5D%5Btimetable%5D%5Bend_time%5D=13&atts%5Bsk-options%5D%5Btimetable%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Btimetable%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Btimetable%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Btimetable%5D%5Bnext_previous_button%5D=1&atts%5Bsk-options%5D%5Btimetable%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Btimetable%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Btimetable%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Bmasonry%5D%5Bstart_date_type%5D=today&atts%5Bsk-options%5D%5Bmasonry%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Bmasonry%5D%5Bend_date_type%5D=date&atts%5Bsk-options%5D%5Bmasonry%5D%5Bmaximum_date_range%5D=&atts%5Bsk-options%5D%5Bmasonry%5D%5Border_method%5D=ASC&atts%5Bsk-options%5D%5Bmasonry%5D%5Bdate_format1%5D=j&atts%5Bsk-options%5D%5Bmasonry%5D%5Bdate_format2%5D=F&atts%5Bsk-options%5D%5Bmasonry%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Bmasonry%5D%5Bfilter_by%5D=&atts%5Bsk-options%5D%5Bmasonry%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bmasonry%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bmasonry%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bmasonry%5D%5Bdisplay_categories%5D=0&atts%5Bsk-options%5D%5Bmasonry%5D%5Bdisplay_organizer%5
1793D=0&atts%5Bsk-options%5D%5Bmasonry%5D%5Bfit_to_row%5D=0&atts%5Bsk-options%5D%5Bmasonry%5D%5Bmasonry_like_grid%5D=0&atts%5Bsk-options%5D%5Bmasonry%5D%5Bpagination%5D=0&atts%5Bsk-options%5D%5Bmasonry%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Bmasonry%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Bmasonry%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Bcover%5D%5Bstyle%5D=classic&atts%5Bsk-options%5D%5Bcover%5D%5Bdate_format_clean1%5D=d&atts%5Bsk-options%5D%5Bcover%5D%5Bdate_format_clean2%5D=M&atts%5Bsk-options%5D%5Bcover%5D%5Bdate_format_clean3%5D=Y&atts%5Bsk-options%5D%5Bcover%5D%5Bdate_format_classic1%5D=F+d&atts%5Bsk-options%5D%5Bcover%5D%5Bdate_format_classic2%5D=l&atts%5Bsk-options%5D%5Bcover%5D%5Bdate_format_modern1%5D=l%2C+F+d+Y&atts%5Bsk-options%5D%5Bcover%5D%5Bevent_id%5D=39587&atts%5Bsk-options%5D%5Bcover%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bcover%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bcover%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bcountdown%5D%5Bstyle%5D=style1&atts%5Bsk-options%5D%5Bcountdown%5D%5Bdate_format_style11%5D=j+F+Y&atts%5Bsk-options%5D%5Bcountdown%5D%5Bdate_format_style21%5D=j+F+Y&atts%5Bsk-options%5D%5Bcountdown%5D%5Bdate_format_style31%5D=j&atts%5Bsk-options%5D%5Bcountdown%5D%5Bdate_format_style32%5D=F&atts%5Bsk-options%5D%5Bcountdown%5D%5Bdate_format_style33%5D=Y&atts%5Bsk-options%5D%5Bcountdown%5D%5Bevent_id%5D=-1&atts%5Bsk-options%5D%5Bcountdown%5D%5Bbg_color%5D=%23437df9&atts%5Bsk-options%5D%5Bcountdown%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bcountdown%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bcountdown%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bavailable_spot%5D%5Bstyle%5D=classic&atts%5Bsk-options%5D%5Bavailable_spot%5D%5Bdate_format1%5D=j&atts%5Bsk-options%5D%5Bavailable_spot%5D%5Bdate_format2%5D=F&atts%5Bsk-options%5D%5Bavailable_spot%5D%5Bevent_id%5D=-1&atts%5Bsk-options%5D%5Bavailable_spot%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bavailable_spot%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bavailable_spot%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bcarousel%5D%5Bstyle%5D=type1&atts%5Bsk-options%5D%5Bcarousel%5D%5Bstart_date_type%5D=today&atts%5Bsk-options%5D%5Bcarousel%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Bcarousel%5D%5Btype1_date_format1%5D=d&atts%5Bsk-options%5D%5Bcarousel%5D%5Btype1_date_format2%5D=F&atts%5Bsk-options%5D%5Bcarousel%5D%5Btype1_date_format3%5D=Y&atts%5Bsk-options%5D%5Bcarousel%5D%5Btype2_date_format1%5D=M+d%2C+Y&atts%5Bsk-options%5D%5Bcarousel%5D%5Btype3_date_format1%5D=M+d%2C+Y&atts%5Bsk-options%5D%5Bcarousel%5D%5Bcount%5D=3&atts%5Bsk-options%5D%5Bcarousel%5D%5Bcount_tablet%5D=2&atts%5Bsk-options%5D%5Bcarousel%5D%5Bcount_mobile%5D=1&atts%5Bsk-options%5D%5Bcarousel%5D%5Blimit%5D=20&atts%5Bsk-options%5D%5Bcarousel%5D%5Bautoplay_status%5D=1&atts%5Bsk-options%5D%5Bcarousel%5D%5Bautoplay%5D=&atts%5Bsk-options%5D%5Bcarousel%5D%5Bloop_status%5D=1&atts%5Bsk-options%5D%5Bcarousel%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Bcarousel%5D%5Barchive_link%5D=&atts%5Bsk-options%5D%5Bcarousel%5D%5Bhead_text%5D=&atts%5Bsk-options%5D%5Bcarousel%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bcarousel%5D%5Binclude_events_times%5D=0&atts%5Bsk-options%5D%5Bcarousel%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bcarousel%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bcarousel%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Bcarousel%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Bslider%5D%5Bstyle%5D=t1&atts%5Bsk-options%5D%5Bslider%5D%5Bstart_date_type%5D=today&atts%5Bsk-options%5D%5Bslider%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Bslider%5D%5Btype1_date_format1%5D=d&atts%5Bsk-options%5D%5Bslider%5D%5Btype1_date_format2%5D=F&atts%5Bsk-options%5D%5Bslider%5D%5Btype1_date_format3%5D=l&atts%5Bsk-options%5D%5Bslider%5D%5Btype2_date_format1%5D=d&atts%5Bsk-options%5D%5Bslider%5D%5Btype2_date_format2%5D=F&atts%5Bsk-options%5D%5Bslider%5D%5Btype2_date_format3%5D=l&atts%5Bsk-options%5D%5Bslider%5D%5Btype3_date_format1%5D=d&atts%5Bsk-options%5D%5Bslider%5D%5Btype3_date_format2%5D=F&atts%5Bsk-options%5D%5Bslider%5D%5Btype3_date_format3%5D=l&atts%5Bsk-options%5D%5Bslider%5D%5Btype4_date_format1%5D=d&atts%5Bsk-options%5D%5Bslider%5D%5Btype4_date_format2%5D=F&atts%5Bsk-options%5D%5Bslider%5D%5Btype4_date_format3%5D=l&atts%5Bsk-options%5D%5Bslider%5D%5Btype5_date_format1%5D=d&atts%5Bsk-options%5D%5Bslider%5D%5Btype5_date_format2%5D=F&atts%5Bsk-options%5D%5Bslider%5D%5Btype5_date_format3%5D=l&atts%5Bsk-options%5D%5Bslider%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Bslider%5D%5Bautoplay%5D=&atts%5Bsk-options%5D%5Bslider%5D%5Btransition_time%5D=250&atts%5Bsk-options%5D%5Bslider%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bslider%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bslider%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bslider%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Btimeline%5D%5Bstart_date_type%5D=today&atts%5Bsk-options%5D%5Btimeline%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Btimeline%5D%5Bend_date_type%5D=date&atts%5Bsk-options%5D%5Btimeline%5D%5Bmaximum_date_range%5D=&atts%5Bsk-options%5D%5Btimeline%5D%5Border_method%5D=ASC&atts%5Bsk-options%5D%5Btimeline%5D%5Bclassic_date_format1%5D=d+F+Y&atts%5Bsk-options%5D%5Btimeline%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Btimeline%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Btimeline%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Btimeline%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Btimeline%5D%5Bdisplay_categories%5D=0&atts%5Bsk-options%5D%5Btimeline%5D%5Bdisplay_organizer%5
1793D=0&atts%5Bsk-options%5D%5Btimeline%5D%5Bpagination%5D=loadmore&atts%5Bsk-options%5D%5Btimeline%5D%5Bmonth_divider%5D=0&atts%5Bsk-options%5D%5Btimeline%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Btimeline%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Btimeline%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Btile%5D%5Bstart_date_type%5D=start_current_month&atts%5Bsk-options%5D%5Btile%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Btile%5D%5Bclean_date_format1%5D=j&atts%5Bsk-options%5D%5Btile%5D%5Bclean_date_format2%5D=M&atts%5Bsk-options%5D%5Btile%5D%5Bcount%5D=4&atts%5Bsk-options%5D%5Btile%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Btile%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Btile%5D%5Bdisplay_categories%5D=0&atts%5Bsk-options%5D%5Btile%5D%5Bdisplay_organizer%5D=0&atts%5Bsk-options%5D%5Btile%5D%5Bnext_previous_button%5D=1&atts%5Bsk-options%5D%5Btile%5D%5Blimit%5D=&atts%5Bsk-options%5D%5Btile%5D%5Bpagination%5D=loadmore&atts%5Bsk-options%5D%5Btile%5D%5Bcustom_data%5D=0&atts%5Bsk-options%5D%5Btile%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Btile%5D%5Bimage_popup%5D=0&atts%5Bsk-options%5D%5Bgeneral_calendar%5D%5Bstart_date_type%5D=start_current_month&atts%5Bsk-options%5D%5Bgeneral_calendar%5D%5Bstart_date%5D=&atts%5Bsk-options%5D%5Bgeneral_calendar%5D%5Bmore_event%5D=&atts%5Bsk-options%5D%5Bgeneral_calendar%5D%5Binclude_local_time%5D=0&atts%5Bsk-options%5D%5Bgeneral_calendar%5D%5Bdisplay_label%5D=0&atts%5Bsk-options%5D%5Bgeneral_calendar%5D%5Breason_for_cancellation%5D=0&atts%5Bsk-options%5D%5Bgeneral_calendar%5D%5Bsed_method%5D=0&atts%5Bsk-options%5D%5Bgeneral_calendar%5D%5Bimage_popup%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Borganizer%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Blist%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Btime_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Blist%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bgrid%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgrid%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgrid%5D%5Borganizer%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgrid%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgrid%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgrid%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgrid%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgrid%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bgrid%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgrid%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgrid%5D%5Btime_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgrid%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgrid%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bagenda%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bagenda%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bagenda%5D%5Borganizer%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bagenda%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bagenda%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bagenda%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bagenda%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bagenda%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bagenda%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bagenda%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bagenda%5D%5Btime_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bagenda%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bagenda%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Borganizer%5
1793D%5Btype%5D=0&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Btime_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bfull_calendar%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Borganizer%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Btime_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmonthly_view%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Byearly_view%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Byearly_view%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Byearly_view%5D%5Borganizer%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Byearly_view%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Byearly_view%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Byearly_view%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Byearly_view%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Byearly_view%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Byearly_view%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Byearly_view%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Byearly_view%5D%5Btime_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Byearly_view%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Byearly_view%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bmap%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmap%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmap%5D%5Borganizer%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmap%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmap%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmap%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmap%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmap%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bmap%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmap%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmap%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bmap%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bdaily_view%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bdaily_view%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bdaily_view%5D%5Borganizer%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bdaily_view%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bdaily_view%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bdaily_view%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bdaily_view%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bdaily_view%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bdaily_view%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bdaily_view%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bdaily_view%5D%5Btime_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bdaily_view%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bdaily_view%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bweekly_view%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bweekly_view%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bweekly_view%5D%5Borganizer%5
1793D%5Btype%5D=0&atts%5Bsf-options%5D%5Bweekly_view%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bweekly_view%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bweekly_view%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bweekly_view%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bweekly_view%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bweekly_view%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bweekly_view%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bweekly_view%5D%5Btime_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bweekly_view%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bweekly_view%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Btimetable%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btimetable%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btimetable%5D%5Borganizer%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btimetable%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btimetable%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btimetable%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btimetable%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btimetable%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Btimetable%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btimetable%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btimetable%5D%5Btime_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btimetable%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btimetable%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Btile%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btile%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btile%5D%5Borganizer%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btile%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btile%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btile%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btile%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btile%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Btile%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btile%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btile%5D%5Btime_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btile%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Btile%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Bcategory%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Blocation%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Borganizer%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Bspeaker%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Btag%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Blabel%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Baddress_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Baddress_search%5D%5Bplaceholder%5D=&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Bevent_cost%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Bmonth_filter%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Btext_search%5D%5Btype%5D=0&atts%5Bsf-options%5D%5Bgeneral_calendar%5D%5Btext_search%5D%5Bplaceholder%5D=&atts%5Bsf_status%5D=0&atts%5B_edit_lock%5D=1745313696%3A3&atts%5B_edit_last%5D=3&atts%5Bsf_display_label%5D=0&atts%5Bsf_reset_button%5D=0&atts%5Bsf_refine%5D=0&atts%5Bshow_only_one_occurrence%5D=0&atts%5Bshow_only_past_events%5D=0&atts%5Bshow_ongoing_events%5D=0&atts%5Bshow_only_ongoing_events%5D=0&atts%5B_vp_words_count%5D=1&atts%5Bex_category%5D=&atts%5Bex_location%5D=&atts%5Bex_organizer%5D=&atts%5Bsponsor%5D=&atts%5Bmec_icons%5D%5Blocation-pin%5D=&atts%5Bmec_icons%5D%5Bmap-marker%5D=&atts%5Bmec_icons%5D%5Bfolder%5D=&atts%5Bmec_icons%5D%5Bcalendar%5D=&atts%5Bmec_icons%5D%5Bclock%5D=&atts%5Bmec_icons%5D%5Bclock-o%5D=&atts%5Bmec_icons%5D%5Bwallet%5D=&atts%5Bmec_icons%5D%5Buser%5D=&atts%5Bmec_icons%5D%5Bmagnifier%5D=&atts%5Bmec_icons%5D%5Bcredit-card%5D=&atts%5Bmec_icons%5D%5Bmap%5D=&atts%5Bmec_icons%5D%5Bpin%5D=&atts%5Bmec_icons%5D%5Btag%5D=&atts%5Bmec_icons%5D%5Bmicrophone%5D=&atts%5Bicons%5D%5Blocation-pin%5D=&atts%5Bicons%5D%5Bmap-marker%5D=&atts%5Bicons%5D%5Bfolder%5D=&atts%5Bicons%5D%5Bcalendar%5D=&atts%5Bicons%5D%5Bclock%5D=&atts%5Bicons%5D%5Bclock-o%5D=&atts%5Bicons%5D%5Bwallet%5D=&atts%5Bicons%5D%5Buser%5D=&atts%5Bicons%5D%5Bmagnifier%5D=&atts%5Bicons%5D%5Bcredit-card%5D=&atts%5Bicons%5D%5Bmap%5D=&atts%5Bicons%5D%5Bpin%5D=&atts%5Bicons%5D%5Btag%5D=&atts%5Bicons%5D%5Bmicrophone%5D=&atts%5Bex_label%5D=&atts%5Bex_tag%5D=&atts%5Bex_author%5D=&atts%5Bid%5D=6930&atts%5Binstance_id%5D=mec1",ajax_url:"https://www.cm-benavente.pt/wp-admin/admin-ajax.php",sed_method:"0",image_popup:"0",})})
1794;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.