1!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)}({0:function(t,e,n){n("bYO6"),n("e8Ie"),n("nkey"),n("o33O"),n("pZch"),n("qEcO"),n("QVwp"),t.exports=n("oFVT")},"0R0w":function(t,e){!function(t){"use strict";var e=Modernizr.cssanimations,n={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"}[Modernizr.prefixed("animation")];function i(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function r(t,e){var n;this.el=t,this.options=i({},this.options),i(this.options,e),this.menus=[].slice.call(this.el.querySelectorAll(".menu__level")),this.current_menu=0,this.menus.forEach((function(t,e){t.querySelectorAll(".menu__item").forEach((function(t,i){t.querySelector(".menu__link--current")&&(n=e)}))})),n&&(this.current_menu=n),this._init()}r.prototype.options={breadcrumbsCtrl:!0,initialBreadcrumb:"all",backCtrl:!0,itemsDelayInterval:60,direction:"r2l",onItemClick:function(t,e){return!1}},r.prototype._init=function(){this.menusArr=[],this.breadCrumbs=!1;var t=this,e=[];this.menus.forEach((function(n,i){var r={menuEl:n,menuItems:[].slice.call(n.querySelectorAll(".menu__item"))};t.menusArr.push(r),i===t.current_menu&&classie.add(n,"menu__level--current");n.getAttribute("data-menu");n.querySelectorAll(".menu__link").forEach((function(t,n){var r=t.getAttribute("data-submenu");if(r){var o={menu:r,name:t.innerHTML};e[i]?e[i].push(o):(e[i]=[],e[i].push(o))}}))})),this.menus.forEach((function(n,i){var r=n.getAttribute("data-menu");e.forEach((function(e,n){e.forEach((function(e,o){e.menu==r&&(t.menusArr[i].backIdx=n,t.menusArr[i].name=e.name)}))}))})),t.options.breadcrumbsCtrl&&(this.breadcrumbsCtrl=document.createElement("nav"),this.breadcrumbsCtrl.className="menu__breadcrumbs",this.breadcrumbsCtrl.setAttribute("aria-label","You are here"),this.el.insertBefore(this.breadcrumbsCtrl,this.el.firstChild),this._addBreadcrumb(0),0!=t.menusArr[t.current_menu].backIdx&&0!=t.current_menu&&(this._crawlCrumbs(t.menusArr[t.current_menu].backIdx,t.menusArr),this.breadCrumbs=!0),0!=t.current_menu&&(this._addBreadcrumb(t.current_menu),this.breadCrumbs=!0)),this.options.backCtrl&&(this.backCtrl=document.createElement("button"),this.breadCrumbs?this.backCtrl.className="menu__back":this.backCtrl.className="menu__back menu__back--hidden",this.backCtrl.setAttribute("aria-label","Go back"),this.backCtrl.innerHTML='<span class="icon icon--arrow-left"></span>',this.el.insertBefore(this.backCtrl,this.el.firstChild)),this._initEvents()},r.prototype._initEvents=function(){for(var t=this,e=0,n=this.menusArr.length;e<n;++e)this.menusArr[e].menuItems.forEach((function(e,n){e.querySelector("a").addEventListener("click",(function(e){var i=e.target.getAttribute("data-submenu"),r=e.target.innerHTML,o=t.el.querySelector('ul[data-menu="'+i+'"]');i&&o?(e.preventDefault(),t._openSubMenu(o,n,r)):(t.el.querySelector(".menu__link--current")&&classie.remove(t.el.querySelector(".menu__link--current"),"menu__link--current"),classie.add(e.target,"menu__link--current"),t.options.onItemClick(e,r))}))}));this.options.backCtrl&&this.backCtrl.addEventListener("click",(function(){t._back()}))},r.prototype._openSubMenu=function(t,e,n){if(this.isAnimating)return!1;this.isAnimating=!0,this.menusArr[this.menus.indexOf(t)].backIdx=this.current_menu,this.menusArr[this.menus.indexOf(t)].name=n,this._menuOut(e),this._menuIn(t,e)},r.prototype._back=function(){if(this.isAnimating)return!1;this.isAnimating=!0,this._menuOut();var t=this.menusArr[this.menusArr[this.current_menu].backIdx].menuEl;this._menuIn(t),this.options.breadcrumbsCtrl&&this.breadcrumbsCtrl.removeChild(this.breadcrumbsCtrl.lastElementChild)},r.prototype._menuOut=function(t){var e=this,n=this.menusArr[this.current_menu].menuEl,i=void 0===t;
1this.menusArr[this.current_menu].menuItems.forEach((function(n,r){n.style.WebkitAnimationDelay=n.style.animationDelay=i?parseInt(r*e.options.itemsDelayInterval)+"ms":parseInt(Math.abs(t-r)*e.options.itemsDelayInterval)+"ms"})),"r2l"===this.options.direction?classie.add(n,i?"animate-outToRight":"animate-outToLeft"):classie.add(n,i?"animate-outToLeft":"animate-outToRight")},r.prototype._menuIn=function(t,i){var r=this,o=this.menusArr[this.current_menu].menuEl,a=void 0===i,s=this.menus.indexOf(t),l=this.menusArr[s],u=(t=l.menuEl,l.menuItems),c=u.length;u.forEach((function(l,u){var h,f,d;l.style.WebkitAnimationDelay=l.style.animationDelay=a?parseInt(u*r.options.itemsDelayInterval)+"ms":parseInt(Math.abs(i-u)*r.options.itemsDelayInterval)+"ms",u===(i<=c/2||a?c-1:0)&&(h=l,f=function(){"r2l"===r.options.direction?(classie.remove(o,a?"animate-outToRight":"animate-outToLeft"),classie.remove(t,a?"animate-inFromLeft":"animate-inFromRight")):(classie.remove(o,a?"animate-outToLeft":"animate-outToRight"),classie.remove(t,a?"animate-inFromRight":"animate-inFromLeft")),classie.remove(o,"menu__level--current"),classie.add(t,"menu__level--current"),r.current_menu=s,a?0===r.current_menu&&r.options.backCtrl&&classie.add(r.backCtrl,"menu__back--hidden"):(r.options.backCtrl&&classie.remove(r.backCtrl,"menu__back--hidden"),r._addBreadcrumb(s)),r.isAnimating=!1,t.focus()},d=function t(i){if(e){if(i.target!=this)return;this.removeEventListener(n,t)}f&&"function"==typeof f&&f.call()},e?h.addEventListener(n,d):d())})),"r2l"===this.options.direction?classie.add(t,a?"animate-inFromLeft":"animate-inFromRight"):classie.add(t,a?"animate-inFromRight":"animate-inFromLeft")},r.prototype._addBreadcrumb=function(t){if(!this.options.breadcrumbsCtrl)return!1;var e=document.createElement("a");e.href="#",e.innerHTML=t?this.menusArr[t].name:this.options.initialBreadcrumb,this.breadcrumbsCtrl.appendChild(e);var n=this;e.addEventListener("click",(function(i){if(i.preventDefault(),!e.nextSibling||n.isAnimating)return!1;n.isAnimating=!0,n._menuOut();var r,o=n.menusArr[t].menuEl;for(n._menuIn(o);r=e.nextSibling;)n.breadcrumbsCtrl.removeChild(r)}))},r.prototype._crawlCrumbs=function(t,e){0!=e[t].backIdx&&this._crawlCrumbs(e[t].backIdx,e),this._addBreadcrumb(t)},t.MLMenu=r}(window)},"49F2":function(t,e,n){"use strict";(function(t){function i(t){return(i="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)}function r(t){return(r="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":i(t)})(t)}function o(e,n,i,o){var a,s=0,l=0,u="",c="",h=0,f=[].concat(e),d=[].concat(n),v=i,p="[object Array]"===Object.prototype.toString.call(d),y="[object Array]"===Object.prototype.toString.call(v);v=[].concat(v);var m="undefined"!=typeof window?window:t;m.$locutus=m.$locutus||{};var g=m.$locutus;if(g.php=g.php||{},"object"===r(e)&&"string"==typeof n){for(u=n,n=[],s=0;s<e.length;s+=1)n[s]=u;u="",d=[].concat(n),p="[object Array]"===Object.prototype.toString.call(d)}for(void 0!==o&&(o.value=0),s=0,a=v.length;s<a;s++)if(""!==v[s])for(l=0,h=f.length;l<h;l++)u=v[s]+"",c=p?void 0!==d[l]?d[l]:"":d[0],v[s]=u.split(f[l]).join(c),void 0!==o&&(o.value+=u.split(f[l]).length-1);return y?v:v[0]}function a(t,e,n){if(arguments.length<2||void 0===t||void 0===e)return null;if(""===t||!1===t||null===t)return!1;if("function"==typeof t||"object"===r(t)||"function"==typeof e||"object"===r(e))return{0:""};!0===t&&(t="1");var i=(e+="").split(t+="");return void 0===n?i:(0===n&&(n=1),n>0?n>=i.length?i:i.slice(0,n-1).concat([i.slice(n-1).join(t)]):-n>=i.length?[]:(i.splice(i.length+n),i))}function s(t,e,n){var i="";if(!!n){for(i in e)if(e[i]===t)return!0}else for(i in e)if(e[i]==t)return!0;return!1}n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}))}).call(this,n("yLpj"))},"4eJC":function(t,e,n){t.exports=function(t,e){var n,i,r,o=0;function a(){var e,a,s=i,l=arguments.length;t:for(;s;){if(s.args.length===arguments.length){for(a=0;a<l;a++)if(s.args[a]!==arguments[a]){s=s.next;continue t}
1return s!==i&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=i,s.prev=null,i.prev=s,i=s),s.val}s=s.next}for(e=new Array(l),a=0;a<l;a++)e[a]=arguments[a];return s={args:e,val:t.apply(null,e)},i?(i.prev=s,s.next=i):r=s,o===n?(r=r.prev).next=null:o++,i=s,s.val}return e&&e.maxSize&&(n=e.maxSize),a.clear=function(){i=null,r=null,o=0},a}},"99Wp":function(t,e){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)})},NjiC:function(t,e){String.prototype.getDecimals||(String.prototype.getDecimals=function(){var t=(""+this).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0})},PDX0:function(t,e){(function(e){t.exports=e}).call(this,{})},QVwp:function(t,e){},bYO6:function(t,e,n){"use strict";n.r(e);n("jPWT"),n("99Wp");var r=n("xeH2"),o=n.n(r),a=n("uhBA"),s=n.n(a),l={menuConfig:{toggleMenu:{toggleClass:"js-menu__toggle",toggleActiveClass:"js-menu__toggle--active",toggledMenuActiveClass:"is-menu__toggled"},offcanvasMenuHeader:{},standardMenuHeader:{},overlayMenuHeader:{}}};function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var c=o()(window),h=o()(document),f=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.init(),h.ready((function(){return n.domReady()})),c.on("load",(function(){return n.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){this.toggleMenu()}},{key:"windowLoad",value:function(){}},{key:"doToggleStuff",value:function(t){var e=t.target||t.srcElement;o()('[data-toggle="collapse"][data-target="#'.concat(e.id,'"]')).toggleClass(this.config.toggleActiveClass),o()("body").toggleClass(this.config.toggledMenuActiveClass)}},{key:"toggleMenu",value:function(){var t=this;o()(".navbar-collapse").on("shown.bs.collapse",(function(e){t.doToggleStuff(e)})),o()(".navbar-collapse").on("hidden.bs.collapse",(function(e){t.doToggleStuff(e)}))}}])&&u(e.prototype,n),i&&u(e,i),t}();function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var v=o()(window),p=o()(document),y=o()("html"),m=(o()("head"),o()("body")),g=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.init(),p.ready((function(){return n.domReady()})),v.on("load",(function(){return n.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){this.standard()}},{key:"windowLoad",value:function(){}},{key:"standard",value:function(){var t=o()(".menu__toggle"),e=o()(".default__toggle"),n=o()(".default__header");t.on("click",(function(e){y.toggleClass("no-scroll no-scroll-modal"),m.toggleClass("default__header-open"),n.toggleClass("is-open"),t.toggleClass("active"),e.preventDefault()})),e.on("click",(function(e){y.toggleClass("no-scroll no-scroll-modal"),m.toggleClass("default__header-open"),n.toggleClass("is-open"),t.toggleClass("active"),e.preventDefault()})),p.keyup((function(e){m.hasClass("default__header-open")&&27==e.keyCode&&(y.toggleClass("no-scroll no-scroll-modal"),m.removeClass("default__header-open"),n.removeClass("is-open"),t.removeClass("active"))}))}}])&&d(e.prototype,n),i&&d(e,i),t}();n("0R0w");function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var w=o()(window),k=o()(document),S=(o()("html"),o()("head"),o()("body")),x={pushContent:!1},E=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}
1)))),i.forEach((function(e){b(t,e,n[e])}))}return t}({},x,e),this.init(),k.ready((function(){return n.domReady()})),w.on("load",(function(){return n.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){this.setupMLMMenu(),o()(".push-content").length&&this.offCanvas(),o()(".no-push-content").length&&this.offCanvasNoPush()}},{key:"windowLoad",value:function(){}},{key:"offCanvas",value:function(){var t=o()(".menu__toggle"),e=o()(".site-container"),n=o()(".offcanvas__header"),i=o()(".page-overlay");t.on("click",(function(r){S.toggleClass("offcanvas__header-open"),t.toggleClass("menu__toggle--active"),e.toggleClass("scale"),n.toggleClass("show"),i.toggleClass("visible"),r.preventDefault(),r.stopPropagation()})),i.on("click",(function(r){S.toggleClass("offcanvas__header-open"),t.toggleClass("menu__toggle--active"),e.toggleClass("scale"),n.toggleClass("show"),i.toggleClass("visible"),r.preventDefault()})),k.keyup((function(r){S.hasClass("offcanvas__header-open")&&27==r.keyCode&&(S.removeClass("offcanvas__header-open"),t.removeClass("menu__toggle--active"),e.removeClass("scale"),n.removeClass("show"),i.removeClass("visible"))}))}},{key:"offCanvasNoPush",value:function(){var t=o()(".menu__toggle"),e=(o()(".site-container"),o()(".offcanvas__header")),n=o()(".page-overlay");t.on("click",(function(t){S.toggleClass("sidebar-open"),o()(this).toggleClass("active"),n.toggleClass("active"),e.toggleClass("open"),t.preventDefault(),t.stopPropagation()})),e.on("click",(function(t){return t.stopPropagation(),!0})),k.keyup((function(i){e.hasClass("open")&&27==i.keyCode&&(S.removeClass("sidebar-open"),t.removeClass("menu__toggle--active"),n.removeClass("active"),e.removeClass("open"))})),k.bind("click",(function(i){e.hasClass("open")&&(S.removeClass("sidebar-open"),t.removeClass("menu__toggle--active"),n.removeClass("active"),e.removeClass("open")),i.stopPropagation()}))}},{key:"setupMLMMenu",value:function(){var t=null,e=null;0!=(t=o()("#mlm-menu-wrap")).length&&(t=o()("#mlm-menu-wrap")[0],e=new MLMenu(t,{breadcrumbsCtrl:!1,backCtrl:!1}),o()(".back_menu__link").on("click",(function(t){t.preventDefault(),e._back()})))}}])&&_(e.prototype,n),i&&_(e,i),t}();function C(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var O=o()(window),T=o()(document),P=o()("html"),j=(o()("head"),o()("body")),A=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.init(),T.ready((function(){return n.domReady()})),O.on("load",(function(){return n.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){this.overlay()}},{key:"windowLoad",value:function(){}},{key:"overlay",value:function(){var t=o()(".menu__toggle"),e=o()(".overlay__toggle"),n=o()(".overlay__header");t.on("click",(function(e){P.toggleClass("no-scroll no-scroll-modal"),j.toggleClass("overlay__header-open"),n.toggleClass("is-open"),t.toggleClass("active"),e.preventDefault(),e.stopPropagation()})),e.on("click",(function(e){P.toggleClass("no-scroll no-scroll-modal"),j.toggleClass("overlay__header-open"),n.toggleClass("is-open"),t.toggleClass("active"),e.preventDefault()})),T.keyup((function(e){j.hasClass("overlay__header-open")&&27==e.keyCode&&(P.toggleClass("no-scroll no-scroll-modal"),j.removeClass("overlay__header-open"),n.removeClass("is-open"),t.removeClass("active"))}))}}])&&C(e.prototype,n),i&&C(e,i),t}();function L(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var I=o()(window),R=o()(document),M=(o()("html"),o()("head"),o()("body"),function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.init(),R.ready((function(){return n.domReady()})),I.on("load",(function(){return n.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){}},{key:"windowLoad",value:function(){}},{key:"setupTreeMenu",value:function(){var t=o()(".menu--primary:not(.mlm-menu-wrap)");t.find(".current-menu-item.active").each((function(t,e){o()(e).parents(".dropdown-menu").show()})),o()("a.has-submenu",t).on("click",(function(t){var e=o()(t.currentTarget),n=e.next(".dropdown-menu");if(n.length)return t.preventDefault(),n.is(":visible")?n.slideUp(100):(e.parent().is(".menu-item-has-children")||o()(".dropdown-menu:visible").slideUp(100),o()(".dropdown-menu:visible").not(o()(this).parents()).slideUp(100),n.slideDown(100)),!1}))}}])&&L(e.prototype,n),i&&L(e,i),t}());function D(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var F=o()(window),G=o()(document),B=(o()("html"),o()("head"),o()("body"),function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.init(),G.ready((function(){return n.domReady()})),F.on("load",(function(){return n.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){this.setupCascadeMenu()}},{key:"windowLoad",value:function(){}},{key:"setupCascadeMenu",value:function(){var t=o()(".menu--primary:not(.mlm-menu-wrap)"),e=null,n=null,i=null;o()("body").hasClass("cascade-menu-location-above-content")?(o()("<div class='cascade-menu__wrap'></div>
1").prependTo(".site-content"),n=".cascade-menu__wrap",i="prependTo",e=o()(n)):(n=".menu--primary:not(.mlm-menu-wrap)",i="appendTo",e=o()(n)),t.find(".dropdown-menu:not(.mini-cart-content)").each((function(t,e){var r=o()(e),a=r.parent(".menu-item-has-children"),s=a.attr("id").match(/\d+/)[0],l=!1,u=o()("<hr class='m-0 p-0 data-menu__hr'>");(a.is(".current-menu-parent")||a.is(".current-menu-ancestor"))&&(l=!0),"appendTo"===i?(r.attr("data-display-hidden",!0).attr("data-menu","submenu-"+s).removeClass("dropdown-menu").addClass("data-menu list-unstyled").detach().appendTo(n),u.attr("data-display-hidden",!0).insertBefore(r)):"prependTo"===i&&r.attr("data-display-hidden",!0).attr("data-menu","submenu-"+s).removeClass("dropdown-menu").addClass("data-menu nav").detach().prependTo(n),l&&(u.attr("data-display-hidden",!1),r.attr("data-display-hidden",!1))})),t.find("a.has-submenu:not(.mini-cart-link)").on("click",(function(t){var n=o()(t.currentTarget),i=n.parent(".menu-item-has-children"),r=i.attr("id").match(/\d+/)[0],a=null,s=null,l="";return"#"==n.attr("href")&&i.is(".menu-item-has-children")&&("#"==(l=(a=e.find("[data-menu='submenu-"+r+"']").find("> li:first-child a")).attr("href"))&&a.parent(".menu-item-has-children")&&(s=a.parent(".menu-item-has-children").attr("id").match(/\d+/)[0],l=e.find("[data-menu='submenu-"+s+"']").find("> li:first-child a").attr("href")),t.ctrlKey?window.open(l):window.location=l),!1}))}}])&&D(e.prototype,n),i&&D(e,i),t}());function H(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}".".concat("mbm.menu"),o.a.fn.menu;var V=o()(window),Y=o()(document),W=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){H(t,e,n[e])}))}return t}({},l,e);var i=this.config.menuConfig;new f(i.toggleMenu),o()(".has-default-mobile-header").length&&new g(i.standardMenuHeader),o()(".has-offcanvas-mobile-header").length&&new E(i.offcanvasMenuHeader),o()(".has-overlay-mobile-header").length&&new A(i.overlayMenuHeader),0!==o()(".menu-style-tree").length&&new M,0!==o()(".has-cascade-menu").length&&new B,this.init(),Y.ready((function(){return n.domReady()})),V.on("load",(function(){return n.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){o()('a.nav-link[href^="#"]').on("click",(function(t){t.preventDefault()}))}},{key:"windowLoad",value:function(){}}])&&N(e.prototype,n),i&&N(e,i),t}(),z=n("bdgK"),q=n("e0Yc"),X=n.n(q),U=n("k7+O"),K=window.requestIdleCallback,Q=0,J=125,Z=function(){var t,e,n=[],i=[],r=n,o=function(){var o=r;for(r=n.length?i:n,t=!0,e=!1;o.length;)o.shift()();t=!1},a=function(n,i){t&&!i?n.apply(this,arguments):(r.push(n),e||(e=!0,(document.hidden?setTimeout:requestAnimationFrame)(o)))};return a._lsFlush=o,a}(),$=function(t){var e,n=0,i=J,r=Q,o=function(){e=!1,n=Date.now(),t()},a=K&&r>49?function(){K(o,{timeout:r}),r!==Q&&(r=Q)}:function(t,e){return e?function(){Z(t)}:function(){var e=this,n=arguments;Z((function(){t.apply(e,n)}))}}((function(){setTimeout(o)}),!0);return function(t){var o;(t=!0===t)&&(r=33),e||(e=!0,(o=i-(Date.now()-n))<0&&(o=0),t||o<9?a():setTimeout(a,o))}},tt=function(t){var e,n,i=function(){e=null,t()},r=function t(){var e=Date.now()-n;e<99?setTimeout(t,99-e):(K||i)(i)};return function(){n=Date.now(),e||(e=setTimeout(r,99))}};function et(t,e,n,i){var r;return void 0!==t?r=Math.round(t/(n/i)):void 0!==e&&(r=Math.round(e*(n/i))),r}function nt(){return o()("#wpadminbar").length?parseFloat(o()("#wpadminbar").height()):0}function it(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=!1;return!!t&&(window.location.hash&&(e=1==window.location.hash.indexOf(t)||-1!=window.location.hash.indexOf(t)),e)}var rt,ot,at,st=n("49F2");function lt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ut(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}rt=o.a,ot="themesmartresize",rt.fn[ot]=function(t){return t?this.bind("resize",tt(t)):this.trigger(ot)},function(t,e){t.fn[e]=function(t){return t?this.bind("scroll",tt(t)):this.trigger(e)}}(o.a,"themeSmartScroll"),function(t){t.fn.alterClass=function(e,n){if(-1===e.indexOf("*"))return this.removeClass(e),n?this.addClass(n):this;var i=new RegExp("\\s"+e.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");return this.each((function(e,n){for(var r=" "+n.className+" ";i.test(r);)r=r.replace(i," ");n.className=t.trim(r)})),n?this.addClass(n):this}}(o.a),at=function(t){t.fn.addBack=t.fn.addBack||t.fn.andSelf,t.fn.extend({actual:function(e,n){if(!this[e])throw'$.actual => The jQuery method "'+e+'" you called does not exist';var i,r,o=t.extend({absolute:!1,clone:!1,includeMargin:!1,display:"block"},n),a=this.eq(0);if(!0===o.clone)i=function(){a=a.clone().attr("style","position: absolute !important; top: -1000 !important; ").appendTo("body")},r=function(){a.remove()};else{var s,l=[],u="";i=function(){s=a.parents().addBack().filter(":hidden"),u+="visibility: hidden !important; display: "+o.display+" !important; ",!0===o.absolute&&(u+="position: absolute !important; "),s.each((function(){var e=t(this),n=e.attr("style");l.push(n),e.attr("style",n?n+";"+u:u)}))},r=function(){s.each((function(e){var n=t(this),i=l[e];void 0===i?n.removeAttr("style"):n.attr("style",i)}))}}i();var c=/(outer)/.test(e)?a[e](o.includeMargin):a[e]();return r(),c}})},"function"==typeof define&&n("PDX0")?define(["jquery"],at):at(jQuery),function(t){function e(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}var i,r,o;function a(t,e){(i(t,e)?o:r)(t,e)}"classList"in document.documentElement?(i=function(t,e){return t.classList.contains(e)},r=function(t,e){t.classList.add(e)},o=function(t,e){t.classList.remove(e)}):(i=function(t,n){return e(n).test(t.className)},r=function(t,e){i(t,e)||(t.className=t.className+" "+e)},o=function(t,n){t.className=t.className.replace(e(n)," ")}
1);var s={hasClass:i,addClass:r,removeClass:o,toggleClass:a,has:i,add:r,remove:o,toggle:a};"function"==typeof define&&n("PDX0")?define(s):t.classie=s}(window);var ct=o()(window),ht=o()(document),ft={headerPositionBreakpoint:"768px",headerBreakpoint:"992px",leftHeader:!1},dt=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){lt(t,e,n[e])}))}return t}({},ft,e),this.init(),this.sticky_header(),this.sticky_footer(),ht.ready((function(){return n.domReady()})),ct.on("load",(function(){return n.windowLoad()})),o()(window).on("load",(function(){})).on("scroll",$(this.smartScroll.bind(this)))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){o()("body").hasClass("has-header-scroll-shrink")?this.shrinkHeader():o()("body").hasClass("has-header-scroll-drop-in")&&o()("body").hasClass("has-fixed-header")&&this.dropInHeader()}},{key:"windowLoad",value:function(){}},{key:"smartScroll",value:function(){o()("body").hasClass("has-header-scroll-shrink")&&this.shrinkHeader()}},{key:"getScrollY",value:function(){return window.pageYOffset||document.documentElement.scrollTop}},{key:"shrinkHeader",value:function(){var t,e=o()(".site-header").css("position");t=document.querySelector(".site-header").offsetHeight,st.b(e,["fixed","sticky"])&&this.getScrollY()>t?o()(".site-header").addClass("site-header--small"):o()("header.site-header").removeClass("site-header--small")}},{key:"dropInHeader",value:function(){var t=0;t=document.querySelector(".site-header").offsetHeight;var e={tolerance:5,offset:t*=2,classes:{initial:"site-header--animated",pinned:"site-header--pinned",unpinned:"site-header--unpinned",top:"site-header--top",notTop:"site-header--not-top",bottom:"site-header--bottom",notBottom:"site-header--not-bottom"},onPin:function(){o()("body").addClass("header-is-sticky")},onTop:function(){o()("body").removeClass("header-is-sticky")}},n=document.querySelector(".site-header");new X.a(n,e).init()}},{key:"sticky_header",value:function(){var t=o()(".site-header").css("position"),e=!1,n="",i=this.config,r=this;if(Modernizr.csspositionsticky&&!o()("body").hasClass("has-fixed-header")||(e=!0),st.b(t,["fixed"])||(e=!1),e){var a=o()(".site-header .navbar-collapse"),s=new z.a((function(t,e){a.hasClass("collapsing")||a.hasClass("show")||t.forEach((function(t,e,a){if(!o()(t.target).hasClass("site-header--small")){var s=t.contentRect,l=(s.left,s.top,s.width,s.height);n=Modernizr.mq("(min-width: "+i.headerPositionBreakpoint+")")?l+"px":"","left"===r.getHeaderPosition()&&(n=""),o()(".site-container").css({"padding-top":n})}}))}));document.querySelectorAll(".site-header").forEach((function(t,e,n){s.observe(t)}))}}},{key:"sticky_footer",value:function(){var t=o()(".site-footer").css("position"),e=!1;if((o()("body").hasClass("has-fixed-footer")||o()("body").hasClass("has-absolute-footer"))&&(e=!0),st.b(t,["fixed","absolute"])||(e=!1),e){var n=new z.a((function(t,e){t.forEach((function(t,e,n){var i=t.contentRect,r=(i.left,i.top,i.width,i.height);o()(".site-container").css({"padding-bottom":r+"px"})}))}));document.querySelectorAll(".site-footer").forEach((function(t,e,i){n.observe(t)}))}}},{key:"getHeaderPosition",value:function(){var t=this.config;return Modernizr.mq("(min-width: "+t.headerBreakpoint+")")?"left":"top"}}])&&ut(e.prototype,n),i&&ut(e,i),t}(),vt={coreGridSelector:".gallery-type-core",lightboxEnabled:!1},pt={headerBreakpoint:"992px",leftHeader:!1,galleryBreakpoint:"767px",galleryDesktopBreakpoint:"992px",maxColumnsDynamic:!1,gallerySecondaryView:"slider",galleryDefaultView:"slider",gridType:"justified",columnHeight:128,columnWidth:128,columnGutter:8,columnThreshold:.5,justifiedGridSelector:".wp-block-blockgallery-masonry",justifiedGridItemSelector:"li, figure, figcaption, a, span:not(.preloader), span:not(.overlay)",justifiedGridImageSelector:".blockgallery--image__wrap > img",masonryGridSelector:".wp-block-blockgallery-masonry",masonryItemSelector:".blocks-gallery-item",masonryItemWidthSelector:".blocks-gallery-item",sliderGridSelector:".wp-block-blockgallery-slider",thumbsNavSelector:".gallery-overlay-nav__thumbs, .gallery-control__thumbs",galleryViewType:"split",singleViewHashString:"ms-",thumbsViewHashString:"masonry"}
1,yt={headerBreakpoint:"992px",leftHeader:!1,galleryBreakpoint:"767px",sliderGridSelector:".wp-block-blockgallery-slider",sliderItemSelector:".blocks-gallery-item",sliderControlsSelector:".slider-gallery-controls",sliderGridWrapActiveSelector:"is-slider-mode-active",sliderGridActiveSelector:"slider-grid-active",speed:300,effect:"slide",fadeEffect:!1,autoplay:!1,navigationNextEl:".swiper-button-next, .gallery-overlay-nav__next, .gallery-control__next",navigationPrevEl:".swiper-button-prev, .gallery-overlay-nav__prev, .gallery-control__prev",galleryViewType:"standard",singleViewHashString:"ms-"},mt={coreGalleryConfig:vt,masonryGalleryConfig:pt,sliderGalleryConfig:yt};function gt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var _t=o()(window),wt=o()(document),kt=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),0!==o()(".wp-block-gallery-core").length&&(this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){gt(t,e,n[e])}))}return t}({},vt,e),this.init(),wt.ready((function(){return n.domReady()})),_t.on("load",(function(){return n.windowLoad()})))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){this.initGallery(),1==this.config.lightboxEnabled&&this.initLightbox()}},{key:"windowLoad",value:function(){}},{key:"initGallery",value:function(){o()(".wp-block-gallery-core:not(.caption-visible) .blocks-gallery-item").on({mouseover:function(){o()(this).addClass("hover")},mouseout:function(){o()(this).removeClass("hover")}})}},{key:"initLightbox",value:function(){var t=this.config;o()(t.coreGridSelector).each((function(){o()(this).magnificPopup({delegate:".blockgallery--image__wrap",tLoading:"Loading image #%curr%...",image:{titleSrc:function(t){return t.el[0].nextElementSibling?t.el[0].nextElementSibling.innerHTML:""}},gallery:{enabled:!0,preload:[0,1]},type:"image",fixedContentPos:!1})}))}}])&&bt(e.prototype,n),i&&bt(e,i),t}();function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Et=o()(window),Ct=o()(document),Ot=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),0!==o()(".wp-block-blockgallery-masonry").length&&(this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){St(t,e,n[e])}))}return t}({},pt,e),this.init(),"split"===this.config.galleryViewType&&"slider"===this.config.gallerySecondaryView?(this.viewEventBus=n.bus,this.viewEvents=n.events,this.viewEventBus.on(this.viewEvents.MASONRY_ACTIVATE,this.doMasonryActivate,this),this.viewEventBus.on(this.viewEvents.MASONRY_DESTROY,this.doMasonryDestroy,this)):this.initGallery())}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.settings={justified_grid:null,masonry_grid:null,lastActiveView:null}}},{key:"initGallery",value:function(){var t=this;Ct.ready((function(){return t.domReady()})),Et.on("load",(function(){return t.windowLoad()})),Et.on("load",(function(){})).themesmartresize((function(){return t.smartresize()}))}},{key:"doMasonryActivate",value:function(t){this.activate("masonry")}},{key:"doMasonryDestroy",value:function(t){this.destroy("masonry")}},{key:"domReady",value:function(){this.switchView()}},{key:"windowLoad",value:function(){var t=this.config;if("lightbox"===t.gallerySecondaryView&&("single"===t.galleryDefaultView||"slider"===t.galleryDefaultView||this.showLightboxOnload())){var e=0;it(t.singleViewHashString)&&(e=window.location.hash.replace("#ms-","")),o()(t.masonryGridSelector).magnificPopup("open",e)}}},{key:"smartresize",value:function(){this.switchView(!0)}},{key:"isMobileView",value:function(){var t=this.config;return!!Modernizr.mq("(max-width: "+t.galleryBreakpoint+")")}},{key:"isDesktopView",value:function(){var t=this.config;return!!Modernizr.mq("(min-width: "+t.galleryDesktopBreakpoint+")")}},{key:"getHeaderPosition",value:function(){var t=this.config;
1return Modernizr.mq("(min-width: "+t.headerBreakpoint+")")?"left":"top"}},{key:"switchView",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=this.config,i="justified"==n.gridType?n.justifiedGridSelector:n.masonryGridSelector;switch(t||(e=this.isMobileView()?"stacked":"masonry"),e){case"masonry":o()(i).attr("data-display-hidden",!0),this.destroy("stacked"),o()(i).attr("data-display-hidden",!1),this.activate("masonry"),this.activate("lightbox");break;case"stacked":o()(i).attr("data-display-hidden",!0),this.destroy("masonry"),this.destroy("lightbox"),o()(i).attr("data-display-hidden",!1),this.activate("stacked")}this.settings.lastActiveView=e}},{key:"initLightbox",value:function(){var t=this.config;o()(t.masonryGridSelector).magnificPopup({disableOn:t.galleryBreakpoint,delegate:".blockgallery--image__wrap",tLoading:"Loading image #%curr%...",image:{titleSrc:function(t){return t.el[0].nextElementSibling?t.el[0].nextElementSibling.innerHTML:""}},gallery:{enabled:!0,preload:[0,1]},type:"image",callbacks:{elementParse:function(t){},change:function(){window.location.hash="ms-"+this.index}},fixedContentPos:!1})}},{key:"getGalleryItems",value:function(){var t=o()(".blocks-gallery-item"),e=[];return t.length>0&&t.each((function(t,n){var i=o()(n).find("img");i.length&&(item={src:i.attr("data-src"),title:i.attr("data-caption")?i.attr("data-caption"):i.attr("title")},e.push(item))})),e}},{key:"justifiedGrid",value:function(){if(o.a.isFunction(o.a.fn.justifiedGallery)){var t=this.config,e={waitThumbnailsLoad:!1,rowHeight:t.columnHeight,maxRowHeight:!1,lastRow:"nojustify",margins:t.columnGutter,border:0,refreshTime:200,refreshSensitivity:0,randomize:!1,justifyThreshold:.9,captions:!1,cssAnimation:!1,imagesAnimationDuration:500,selector:t.justifiedGridItemSelector,imgSelector:t.justifiedGridImageSelector};o()(t.justifiedGridSelector).justifiedGallery(e).on("jg.complete",(function(t){})).on("jg.resize",(function(t){})).on("jg.rowflush",(function(t){}))}}},{key:"masonryCols",value:function(){var t=this.config;if(!this.isMobileView()){var e={imgCount:o()(".blocks-gallery-item").length,containerWidth:o()(".wp-block-blockgallery-masonry").actual("width")};e.columnWidth=parseInt(t.columnWidth,10),e.columns=t.columns,e.columns=Math.floor(e.containerWidth/e.columnWidth),e.availableSpace=e.containerWidth-e.columns*e.columnWidth,e.spaceThreshold=e.columnWidth*t.columnThreshold,e.availableSpace>e.spaceThreshold&&e.columns++,"auto"!==t.maxColumns&&e.columns>t.maxColumns&&(e.columns=t.maxColumns),"auto"!==t.minColumns&&e.columns<t.minColumns&&(e.columns=t.minColumns),e.columns=e.imgCount<e.columns?e.imgCount:e.columns,this.isDesktopView()&&"auto"!==t.maxColumns&&!t.maxColumnsDynamic&&(e.columns=t.maxColumns),o()(".wp-block-blockgallery-masonry").alterClass("columns-*","columns-"+e.columns)}}},{key:"masonryGrid",value:function(){if(o.a.isFunction(o.a.fn.masonry)){var t=this.config,e={originLeft:!0,percentPosition:!1,containerStyle:null};"right"===t.gridAlign&&(e.originLeft=!1),t.columns&&"auto"===t.columns&&(e.percentPosition=!0),e.gutter=parseInt(t.colGutter,10),e.itemSelector=t.masonryItemSelector,e.columnWidth=t.masonryItemWidthSelector;var n=o()(t.masonryGridSelector).masonry(e);n.imagesLoaded().progress((function(){n.masonry("on","layoutComplete",(function(){})),n.masonry("layout")})),this.settings.masonry_grid=n}}},{key:"activate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.config;switch(t){case"masonry":"justified"==e.gridType?(o()(e.justifiedGridSelector).closest(".masonry-gallery-wrap").attr("data-display-hidden",!1),o()(e.justifiedGridSelector).attr("data-display-hidden",!1),o()(e.justifiedGridSelector).addClass("justified-grid-active"),o()(e.justifiedGridSelector).addClass("has-justified-grid"),this.justifiedGrid()):(o()(e.masonryGridSelector).closest(".masonry-gallery-wrap").attr("data-display-hidden",!1),o()(e.masonryGridSelector).attr("data-display-hidden",!1),o()(e.masonryGridSelector).addClass("masonry-grid-active"),o()(e.masonryGridSelector).addClass("has-masonry-grid"),this.masonryCols(),this.masonryGrid()),this.urlhasH
1ashEither()||(window.location.hash=e.thumbsViewHashString);break;case"lightbox":"lightbox"===e.gallerySecondaryView&&this.initLightbox();break;case"stacked":var n="justified"==e.gridType?e.justifiedGridSelector:e.masonryGridSelector;o()(n).closest(".masonry-gallery-wrap").attr("data-display-hidden",!1),o()(n).addClass("wp-block-blockgallery-stacked"),o()(n).attr("data-display-hidden",!1)}}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.config;switch(t){case"masonry":var n=!1;"split"===e.galleryViewType&&"lightbox"===e.gallerySecondaryView?n=!0:"standard"===e.galleryViewType&&"none"===e.gallerySecondaryView&&(n=!0),"justified"==e.gridType?(o()(e.justifiedGridSelector).closest(".masonry-gallery-wrap").attr("data-display-hidden",!0),o()(e.justifiedGridSelector).attr("data-display-hidden",!0),o()(e.justifiedGridSelector).removeClass("has-justified-grid"),o()(e.justifiedGridSelector).removeClass("justified-grid-active")):(o()(e.masonryGridSelector).closest(".masonry-gallery-wrap").attr("data-display-hidden",!0),o()(e.masonryGridSelector).attr("data-display-hidden",!0),o()(e.masonryGridSelector).removeClass("has-masonry-grid"),n&&this.isMasonryGalleryActive("masonry-grid")&&(o()(e.masonryGridSelector).masonry("destroy"),o()(e.masonryGridSelector).removeClass("masonry-grid-active"))),it(e.thumbsViewHashString)&&(window.location.hash="");break;case"lightbox":break;case"stacked":var i="justified"==e.gridType?e.justifiedGridSelector:e.masonryGridSelector;o()(i).closest(".masonry-gallery-wrap").attr("data-display-hidden",!0),o()(i).removeClass("wp-block-blockgallery-stacked"),o()(i).attr("data-display-hidden",!0)}}},{key:"isMasonryGalleryActive",value:function(t){var e=this.config;if("masonry-grid"===t){var n=o()(e.masonryGridSelector).data("masonry");if(void 0!==n&&!0===n._isLayoutInited)return!0}else if("justified-grid"===t&&void 0!==o()(e.justifiedGridSelector).data("jg.controller"))return!0;return!1}},{key:"showLightboxOnload",value:function(){var t=this.config;return!("split"!==t.galleryViewType||"lightbox"!==t.gallerySecondaryView||!it(t.singleViewHashString))}},{key:"urlhasHashEither",value:function(){var t=this.config;return!!it(t.singleViewHashString)||!!it(t.thumbsViewHashString)}}])&&xt(e.prototype,n),i&&xt(e,i),t}();function Tt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var jt=o()(window),At=o()(document),Lt=o()("html").hasClass("touch")?0:15,It=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Tt(t,e,n[e])}))}return t}({},yt,e),0!==o()(this.config.sliderGridSelector).length&&(this.init(),"split"===this.config.galleryViewType?(this.viewEventBus=n.bus,this.viewEvents=n.events,this.viewEventBus.on(this.viewEvents.SLIDER_ACTIVATE,this.doSliderActivate,this),this.viewEventBus.on(this.viewEvents.SLIDER_DESTROY,this.doSliderDestroy,this),this.viewEventBus.on(this.viewEvents.STACKED_ACTIVATE,this.doStackedActivate,this),this.viewEventBus.on(this.viewEvents.STACKED_DESTROY,this.doStackedDestroy,this),this.viewEventBus.on(this.viewEvents.NEXT_SLIDE,this.doNextSlide,this),this.viewEventBus.on(this.viewEvents.PREVIOUS_SLIDE,this.doPrevSlide,this),this.viewEventBus.on(this.viewEvents.PAUSE_SLIDER,this.doSliderPause,this),this.viewEventBus.on(this.viewEvents.RESUME_SLIDER,this.doSliderResume,this)):(this.viewEventBus=n.bus,this.viewEvents=n.events,this.initSlider()))}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.settings={slider_obj:null},this.images={},this.images=this.getImages(),this.setup_vars()}},{key:"initSlider",value:function(){var t=this;At.ready((function(){return t.domReady()})),jt.on("load",(function(){return t.windowLoad()})),jt.on("load",(function(){})).themesmartresize((function(){return t.smartresize()}))}},{key:"doSliderActivate",value:function(t){this.activate("slider",t)}},{key:"doSliderDestroy",value:function(t){this.destroy("slider")}},{key:"doStackedActivate",value:function(t){this.activate("stacked")}},{key:"doStackedDestroy",value:function(t){this.destroy("stacked")}},{key:"domReady",value:function(){this.switchView()}},{key:"windowLoad",value:function(){}},{key:"smartresize",value:function(){this.switchView(!0)}},{key:"setup_vars",value:function(){var t=this.config;this.windowWidth=parseFloat(window.innerWidth-Lt),this.windowHeight=parseFloat(jt.height()),this.galleryContainerWidth=parseFloat(o()(".entry__content").width()),this.galleryContainerHeight=parseFloat(o()(".site-inner").height()),this.galleryWidth=parseFloat(o()(t.sliderGridSelector).width()),this.siteContentPadding=parseInt(o()(".site-inner").css("padding-top"),10)+parseInt(o()(".site-inner").css("padding-bottom"),10),t.leftHeader&&"left"===this.getHeaderPosition()?this.siteHeaderHeight=0:this.siteHeaderHeight=parseFloat(o()(".site-header").height()),this.siteFooterHeight=parseFloat(o()(".site-footer").height()),this.adminBarHeight=this.adminbarHeight(),this.isMobileView()?o()(t.sliderGridSelector).addClass("wp-block-blockgallery-stacked"):o()(t.sliderGridSelector).removeClass("wp-block-blockgallery-stacked")}},{key:"switchView",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(this.config,t||(e=this.isMobileView()?"stacked":"slider"),e){case"slider":this.destroy("stacked"),this.activate("slider");break;case"stacked":this.destroy("slider"),this.activate("stacked")}}},{key:"adminbarHeight",value:function(){return nt()}},{key:"isMobileView",value:function(){var t=this.config;return!!Modernizr.mq("(max-width: "+t.galleryBreakpoint+")")}},{key:"getHeaderPosition",value:function(){var t=this.config;
1return Modernizr.mq("(min-width: "+t.headerBreakpoint+")")?"left":"top"}},{key:"initGallery",value:function(){this.sliderGrid()}},{key:"getImages",value:function(){var t=this.config,e={};return o()(t.sliderItemSelector).each((function(t){e[o()(this).attr("data-id")]={width:o()(this).attr("data-width"),height:o()(this).attr("data-height"),ratio:o()(this).attr("data-aspect-ratio")}})),e}},{key:"sliderGrid",value:function(){this.enableSlider()}},{key:"enableSlider",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.config,i={direction:"horizontal",simulateTouch:!1,navigation:{nextEl:n.navigationNextEl,prevEl:n.navigationPrevEl},keyboard:{enabled:!0},initialSlide:0,speed:n.speed,effect:n.effect,fadeEffect:n.fadeEffect,autoplay:n.autoplay,preloadImages:!1,updateOnImagesReady:!0,autoHeight:!1,setWrapperSize:!1,containerModifierClass:"slider-container-",slideClass:"slider-slide",slideBlankClass:"slider-slide-invisible-blank",slideActiveClass:"slider-slide-active",slideDuplicateActiveClass:"slider-slide-duplicate-active",slideVisibleClass:"slider-slide-visible",slideDuplicateClass:"slider-slide-duplicate",slideNextClass:"slider-slide-next",slideDuplicateNextClass:"slider-slide-duplicate-next",slidePrevClass:"slider-slide-prev",slideDuplicatePrevClass:"slider-slide-duplicate-prev",wrapperClass:"slider-wrapper",hashNavigation:{replaceState:!0,watchState:!0},pagination:{modifierClass:"slider-pagination-",currentClass:"slider-pagination-current",totalClass:"slider-pagination-total",el:".gallery-control__pagination-fraction",type:"fraction",renderFraction:function(t,e){return'<span class="'+t+' p-0 m-0"></span> / <span class="'+e+' p-0 m-0"></span>'}}};i.initialSlide="undefined"!==e.index?e.index:0;var r=new Swiper(".slider-container",i),a="undefined"!==e.slideTo&&e.slideTo;a&&(r.slideTo(i.initialSlide,0,!1),r.autoplay.stop()),this.slideCaption(r),r.on("slideChange",(function(){return t.slideCaption(r)})),r.on("autoplayStart",(function(){return t.toggleAutoPlay(null,"play")})),r.on("autoplayStop",(function(){return t.toggleAutoPlay(null,"pause")})),o()(".gallery-control__autoslideshow").on("click",(function(e){return t.toggleAutoPlay(e)})),o()(".gallery-control__fullscreen").on("click",(function(e){return t.toggleFullScreen(e)})),this.settings.slider_obj=r}},{key:"toggleAutoPlay",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e){if(!t||!t.target)return;var n=o()(t.target);n.hasClass("pause")?e="pause":n.hasClass("play")&&(e="play")}var i=this.settings.slider_obj;switch(e){case"play":i.autoplay.start(),o()(".gallery-control__autoslideshow.play").attr("data-display-hidden",!0),o()(".gallery-control__autoslideshow.pause").attr("data-display-hidden",!1);break;case"pause":i.autoplay.stop(),o()(".gallery-control__autoslideshow.play").attr("data-display-hidden",!1),o()(".gallery-control__autoslideshow.pause").attr("data-display-hidden",!0)}}},{key:"toggleFullScreen",value:function(t){var e=U;if(e.isEnabled&&t&&t.target){var n=o()(t.target);e.toggle(),e.on("change",(function(){e.isFullscreen?n.addClass("is-active"):n.removeClass("is-active")}))}}},{key:"slideCaption",value:function(t){var e=this.config,n=t.slides.eq(t.activeIndex).find(".blockgallery--caption");if(0===n.length)return o()(".slider-gallery-slide-caption").removeClass("has-caption"),void o()(".slider-gallery-slide-caption").html("");e.leftHeader&&"left"===this.getHeaderPosition()&&(o()(".slider-gallery-slide-caption").addClass("has-caption"),o()(".slider-gallery-slide-caption").html(n.html()))}},{key:"doNextSlide",value:function(t){this.settings.slider_obj.slideNext()}},{key:"doPrevSlide",value:function(t){this.settings.slider_obj.slidePrev()}},{key:"doSliderPause",value:function(t){o()(this.config.sliderGridSelector).attr("data-is-slideshow-enabled")&&this.toggleAutoPlay(null,"pause")}},{key:"doSliderResume",value:function(t){o()(this.config.sliderGridSelector).attr("data-is-slideshow-enabled")&&this.toggleAutoPlay(null,"start")}},{key:"activate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.config;switch(t){case"slider":o()(n.sliderGridSelector).closest(".slider-gallery-wrap").attr("data-display-hidden",!1),o()(".slider-wrap").addClass(n.sliderGridWrapActiveSelector),o()(n.sliderGridSelector).addClass(n.sliderGridActiveSelector),o()(n.sliderGridSelector).attr("data-display-hidden",!1),o()(n.sliderControlsSelector).attr("data-display-hidden",!1),this.setup_vars(),this.resizeSlides(),this.enableSlider(e),"standard"===n.galleryViewType&&o()(n.sliderGridSelector).hasClass("overlay-icons__enabled")&&this.viewEventBus.emit(this.viewEvents.GALLERY_OVERLAY_ACTIVATE,{"gallery overlay":"yes activated"});break;case"stacked":o()(n.sliderGridSelector).closest(".slider-gallery-wrap").attr("data-display-hidden",!1),o()(n.sliderGridSelector).addClass("wp-block-blockgallery-stacked"),o()(n.sliderGridSelector).attr("data-display-hidden",!1)}}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.config;switch(t){case"slider":this.isSliderGalleryActive()&&(o()(e.sliderGridSelector).closest(".slider-gallery-wrap").attr("data-display-hidden",!0),o()(".slider-wrap").removeClass(e.sliderGridWrapActiveSelector),o()(e.sliderGridSelector).removeClass(e.sliderGridActiveSelector),o()(e.sliderGridSelector).attr("data-display-hidden",!0),o()(e.sliderControlsSelector).attr("data-display-hidden",!0),this.settings.slider_obj.destroy(!0,!0),this.resizeSlides(!0)),"standard"===e.galleryViewType&&this.viewEventBus.emit(this.viewEvents.GALLERY_OVERLAY_DESTROY,{"gallery overlay":"yes destroyed"});break;case"stacked":o()(e.sliderGridSelector).closest(".slider-gallery-wrap").attr("data-display-hidden",!0),o()(e.sliderGridSelector).removeClass("wp-block-blockgallery-stacked"),o()(e.sliderGridSelector).attr("data-display-hidden",!0)}}},{key:"isSliderGalleryActive",value:function(){return this.config,!!this.settings.slider_obj}},{key:"resizeSlides",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.config,n=this;o()(e.sliderItemSelector,e.sliderGridSelector).each((function(e,i){n.resizeSlide(o()(i).find("img.blockgallery--attachment__image"),o()(i),t)})),this.isMobileView()?o()(e.sliderGridSelector).removeClass("has-resized-images"):o()(e.sliderGridSelector).addClass("has-resized-images")}},{key:"resizeSlide",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0!==t.length){var i,r,a,s,l=this.config,u=0,c=0,h=0,f=0,d=0,v=0,p=0,y=0,m=0,g=0,b=0,_=0,w=(o()(".site-header").css("position"),this.images[e.data("id")]),k=e.find(".blockgallery--caption");if(this.isMobileView()&&o()(l.sliderGridSelector).hasClass("has-resized-images")||n)return o()(l.sliderGridSelector).removeClass("has-resized-images"),o()(l.sliderGridSelector).hasClass("has-caption-fitwidth")&&1===k.length&&k.css("width",""),t.css("width",""),t.css("height",""),void t.parent().css({width:""});1===k.length&&(d=k.actual("outerHeight",{includeMargin:!0}),d=parseFloat(d,10)),u=this.windowHeight,c=this.windowWidth,f=this.galleryContainerWidth,this.galleryContainerHeight,g=this.siteContentPadding,h=this.galleryWidth,v=this.siteHeaderHeight,p=this.siteFooterHeight,y=this.adminBarHeight,m=parseFloat(d+v+p+y+g,10),c>f&&(c=f),c>h&&(c=h),i=parseFloat(w.width,10),r=b=parseFloat(w.height,10),w.ratio,this.isMobileView()||(a=et(void 0,s=b,i,r),_=parseFloat(u-m,10),s>(_-=2)&&(a=et(void 0,s=_,i,r)),a>c&&(s=et(a=c,void 0,i,r))),t.css("width",a),t.css("height",s),o()(l.sliderGridSelector).hasClass("has-caption-fitwidth")&&1===k.length&&(this.isMobileView()?k.css("width",""):k.css("width",a))}}}])&&Pt(e.prototype,n),i&&Pt(e,i),t}();function Rt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Mt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=n,this.cancelable=i,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.prop
1agationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var e,n,i;return e=t,(n=[{key:"preventDefault",value:function(){return this.defaultPrevented=this.cancelable,this}},{key:"stopPropagation",value:function(){return this.propagationStopped=!0,this}},{key:"stopImmediatePropagation",value:function(){return this.immediatePropagationStopped=this.propagationStopped=!0,this}},{key:"remove",value:function(){return this.removed=!0,this}},{key:"clone",value:function(){var e=new t(this.type,this.bubbles,this.cancelable);for(var n in this)this.hasOwnProperty(n)&&(e[n]=this[n]);return e}},{key:"set",value:function(t){for(var e in t)this[e]=t[e];return this}},{key:"toString",value:function(){return"[".concat(this.constructor.name," (type=").concat(this.type,")]")}}])&&Rt(e.prototype,n),i&&Rt(e,i),t}();function Dt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ft(t,e,n){return e&&Dt(t.prototype,e),n&&Dt(t,n),t}var Gt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._listeners=null,this._captureListeners=null}return Ft(t,null,[{key:"initialize",value:function(e){var n=t.prototype;e.addEventListener=n.addEventListener,e.on=n.on,e.removeEventListener=e.off=n.removeEventListener,e.removeAllEventListeners=n.removeAllEventListeners,e.hasEventListener=n.hasEventListener,e.dispatchEvent=n.dispatchEvent,e._dispatchEvent=n._dispatchEvent,e.willTrigger=n.willTrigger}}]),Ft(t,[{key:"addEventListener",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=(n=i?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{})[t];return r&&(this.removeEventListener(t,e,i),r=n[t]),r?r.push(e):n[t]=[e],e}},{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return e.handleEvent&&(n=n||e,e=e.handleEvent),n=n||this,this.addEventListener(t,(function(t){e.call(n,t,r),i&&t.remove()}),o)}},{key:"removeEventListener",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n?this._captureListeners:this._listeners;if(i){var r=i[t];if(r)for(var o=r.length,a=0;a<o;a++)if(r[a]===e){1===o?delete i[t]:r.splice(a,1);break}}}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.removeEventListener(t,e,n)}},{key:"removeAllEventListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t?(this._listeners&&delete this._listeners[t],this._captureListeners&&delete this._captureListeners[t]):this._listeners=this._captureListeners=null}},{key:"dispatchEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"==typeof t){var i=this._listeners;if(!(e||i&&i[t]))return!0;t=new Mt(t,e,n)}else t.target&&t.clone&&(t=t.clone());try{t.target=this}catch(t){}if(t.bubbles&&this.parent){for(var r=this,o=[r];r.parent;)o.push(r=r.parent);var a,s=o.length;for(a=s-1;a>=0&&!t.propagationStopped;a--)o[a]._dispatchEvent(t,1+(0==a));for(a=1;a<s&&!t.propagationStopped;a++)o[a]._dispatchEvent(t,3)}else this._dispatchEvent(t,2);return!t.defaultPrevented}},{key:"hasEventListener",value:function(t){var e=this._listeners,n=this._captureListeners;return!!(e&&e[t]||n&&n[t])}},{key:"willTrigger",value:function(t){for(var e=this;e;){if(e.hasEventListener(t))return!0;e=e.parent}return!1}},{key:"toString",value:function(){return"[".concat(this.constructor.name+this.name?" ".concat(this.name):"","]")}},{key:"_dispatchEvent",value:function(t,e){var n=1===e?this._captureListeners:this._listeners;if(t&&n){var i,r=n[t.type];if(!r||0===(i=r.length))return;try{t.currentTarget=this}catch(t){}try{t.eventPhase=e}catch(t){}t.removed=!1,r=r.slice();for(var o=0;o<i&&!t.immediatePropagationStopped;o++){var a=r[o];a.handleEvent?a.handleEvent(t):a(t),t.removed&&(this.off(t.type,a,1===e),t.removed=!1)}}}}]),t}();function Bt(t){return(Bt="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)}function Ht(t,e){return!e||"object"!==Bt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nt(t,e,n){return(Nt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Vt(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function Vt(t){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Yt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Wt(t,e,n){return e&&Yt(t.prototype,e),n&&Yt(t,n),t}function zt(t,e){return(zt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var qt=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=Ht(this,Vt(e).call(this))).name=t,n.timingMode=e.TIMEOUT,n.maxDelta=0,n.paused=!1,n._inited=!1,n._startTime=0,n._pausedTime=0,n._ticks=0,n._pausedTicks=0,n._interval=50,n._lastTime=0,n._times=null,n._tickTimes=null,n._timerId=null,n._raf=!0,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zt(t,e)}(e,t),Wt(e,null,[{key:"RAF_SYNCHED",get:function(){return"synched"}},{key:"RAF",get:function(){return"raf"}},{key:"TIMEOUT",get:function(){return"timeout"}}]),Wt(e,[{key:"init",value:function(){this._inited||(this._inited=!0,this._times=[],this._tickTimes=[],this._startTime=this._getTime(),this._times.push(this._lastTime=0),this._setupTick())}},{key:"reset",value:function(){if(this._raf){var t=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;t&&t(this._timerId)}else clearTimeout(this._timerId);this.removeAllEventListeners("tick"),this._timerId=this._times=this._tickTimes=null,this._startTime=this._lastTime=this._ticks=0,this._inited=!1}},{key:"addEventListener",value:function(t,n,i){return!this._inited&&this.init(),Nt(Vt(e.prototype),"addEventListener",this).call(this,t,n,i)}},{key:"getMeasuredTickTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this._tickTimes;return!e||e.length<1?-1:(t=Math.min(e.length,t||0|this.framerate),e.reduce((function(t,e){return t+e}),0)/t)}},{key:"getMeasuredFPS",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this._times;return!e||e.length<2?-1:(t=Math.min(e.length-1,t||0|this.framerate),1e3/((e[0]-e[t])/t))}},{key:"getTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._startTime?this._getTime()-(t?this._pausedTime:0):-1}},{key:"getEventTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._startTime?(this._lastTime||this._startTime)-(t?this._pausedTime:0):-1}},{key:"getTicks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._ticks-(t?this._pausedTicks:0)}},{key:"_handleSynch",value:function(){this._timerId=null,this._setupTick(),this._getTime()-this._lastTime>=.97*(this._interval-1)&&this._tick()}},{key:"_handleRAF",value:function(){this._timerId=null,this._setupTick(),this._tick()}},{key:"_handleTimeout",value:function(){this._timerId=null,this._setupTick(),this._tick()}},{key:"_setupTick",value:function(){if(null==this._timerId){var t=this.timingMode||this._raf&&e.RAF;if(t===e.RAF_SYNCHED||t===e.RAF){var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(n)return this._timerId=n(t===e.RAF?this._handleRAF.bind(this):this._handleSynch.bind(this)),void(this._raf=!0)}this._raf=!1,this._timerId=setTimeout(this._handleTimeout.bind(this),this._interval)}}},{key:"_tick",value:function(){var t=this.paused,e=this._getTime(),n=e-this._lastTime;if(this._lastTime=e,this._ticks++,t&&(this._pausedTicks++,this._pausedTime+=n),this.hasEventListener("tick")){var i=new Mt("tick"),r=this.maxDelta;i.delta=r&&n>r?r:n,i.paused=t,i.time=e,i.runTime=e-this._pausedTime,this.dispatchEvent(i)}for(this._tickTimes.unshift(this._getTime()-e);this._tickTimes.length>100;)this._tickTimes.pop();for(this._times.unshift(e);this._times.length>100;)this._times.pop()}},{key:"_getTime",value:function(){var t=window.performance&&window.performance.now;return(t&&t.call(performance)||(new Date).getTime())-this._startTime}},{key:"interval",get:function(){return this._interval},set:function(t){this._interval=t,this._inited&&this._setupTick()}},{key:"framerate",get:function(){return 1e3/this._interval},set:function(t){this.interval=1e3/t}}],[{key:"on",value:function(t,e,n,i,r,o){return Ut.on(t,e,n,i,r,o)}},{key:"removeEventListener",value:function(t,e,n){Ut.removeEventListener(t,e,n)}},{key:"off",value:function(t,e,n){Ut.off(t,e,n)}},{key:"removeAllEventListeners",value:function(t){Ut.removeAllEventListeners(t)}},{key:"dispatchEvent",value:function(t,e,n){return Ut.dispatchEvent(t,e,n)}},{key:"hasEventListener",value:function(t){return Ut.hasEventListener(t)}},{key:"willTrigger",value:function(t){return Ut.willTrigger(t)}},{key:"toString",value:function(){return Ut.toString()}},{key:"init",value:function(){Ut.init()}},{key:"reset",value:function(){Ut.reset()}},{key:"addEventListener",value:function(t,e,n){Ut.addEventListener(t,e,n)}},{key:"getMeasuredTickTime",value:function(t){return Ut.getMeasuredTickTime(t)}},{key:"getMeasuredFPS",value:function(t){return Ut.getMeasuredFPS(t)}},{key:"getTime",value:function(t){return Ut.getTime(t)}},{key:"getEventTime",value:function(t){return Ut.getEventTime(t)}},{key:"getTicks",value:function(t){return Ut.getTicks(t)}},{key:"interval",get:function(){return Ut.interval},set:function(t){Ut.interval=t}},{key:"framerate",get:function(){return Ut.framerate},set:function(t){Ut.framerate=t}},{key:"name",get:function(){return Ut.name},set:function(t){Ut.name=t}},{key:"timingMode",get:function(){return Ut.timingMode},set:function(t){Ut.timingMode=t}},{key:"maxDelta",get:function(){return Ut.maxDelta}
1,set:function(t){Ut.maxDelta=t}},{key:"paused",get:function(){return Ut.paused},set:function(t){Ut.paused=t}}]),e}(Gt),Xt=qt,Ut=new qt("createjs.global");var Kt=function t(){throw function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),new Error("\n\t\t\tStageGL is not currently supported on the EaselJS 2.0 branch.\n\t\t\tEnd of Q1 2018 is targetted for StageGL support.\n\t\t\tFollow @CreateJS on Twitter for updates.\n\t\t")};function Qt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Jt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"black",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.color=e,this.offsetX=n,this.offsetY=i,this.blur=r}var e,n,i;return e=t,(n=[{key:"toString",value:function(){return"[".concat(this.constructor.name,"]")}},{key:"clone",value:function(){return new t(this.color,this.offsetX,this.offsetY,this.blur)}}])&&Qt(e.prototype,n),i&&Qt(e,i),t}();Jt.identity=new Jt("transparent");var Zt=0;function $t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var te=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.setValues(e,n)}var e,n,i;return e=t,(n=[{key:"setValues",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=t,this.y=e,this}},{key:"copy",value:function(t){return this.x=t.x,this.y=t.y,this}},{key:"clone",value:function(){return new t(this.x,this.y)}},{key:"toString",value:function(){return"[".concat(this.constructor.name," (x=").concat(this.x," y=").concat(this.y,")]")}}])&&$t(e.prototype,n),i&&$t(e,i),t}();function ee(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var ne=function(){function t(e,n,i,r,o,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.setValues(e,n,i,r,o,a)}var e,n,i;return e=t,(n=[{key:"setValues",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return this.a=t,this.b=e,this.c=n,this.d=i,this.tx=r,this.ty=o,this}},{key:"append",value:function(t,e,n,i,r,o){var a=this.a,s=this.b,l=this.c,u=this.d;return 1==t&&0==e&&0==n&&1==i||(this.a=a*t+l*e,this.b=s*t+u*e,this.c=a*n+l*i,this.d=s*n+u*i),this.tx=a*r+l*o+this.tx,this.ty=s*r+u*o+this.ty,this}},{key:"prepend",value:function(t,e,n,i,r,o){var a=this.a,s=this.c,l=this.tx;return this.a=t*a+n*this.b,this.b=e*a+i*this.b,this.c=t*s+n*this.d,this.d=e*s+i*this.d,this.tx=t*l+n*this.ty+r,this.ty=e*l+i*this.ty+o,this}},{key:"appendMatrix",value:function(t){return this.append(t.a,t.b,t.c,t.d,t.tx,t.ty)}},{key:"prependMatrix",value:function(t){return this.prepend(t.a,t.b,t.c,t.d,t.tx,t.ty)}},{key:"appendTransform",value:function(e,n,i,r,o,a,s,l,u){var c,h,f;return o%360?(c=o*t.DEG_TO_RAD,h=Math.cos(c),f=Math.sin(c)):(h=1,f=0),a||s?(a*=t.DEG_TO_RAD,s*=t.DEG_TO_RAD,this.append(Math.cos(s),Math.sin(s),-Math.sin(a),Math.cos(a),e,n),this.append(h*i,f*i,-f*r,h*r,0,0)):this.append(h*i,f*i,-f*r,h*r,e,n),(l||u)&&(this.tx-=l*this.a+u*this.c,this.ty-=l*this.b+u*this.d),this}},{key:"prependTransform",value:function(e,n,i,r,o,a,s,l,u){var c,h,f;return o%360?(c=o*t.DEG_TO_RAD,h=Math.cos(c),f=Math.sin(c)):(h=1,f=0),(l||u)&&(this.tx-=l,this.ty-=u),a||s?(a*=t.DEG_TO_RAD,s*=t.DEG_TO_RAD,this.prepend(h*i,f*i,-f*r,h*r,0,0),this.prepend(Math.cos(s),Math.sin(s),-Math.sin(a),Math.cos(a),e,n)):this.prepend(h*i,f*i,-f*r,h*r,e,n),this}},{key:"rotate",value:function(e){e*=t.DEG_TO_RAD;var n=Math.cos(e),i=Math.sin(e),r=this.a,o=this.b;return this.a=r*n+this.c*i,this.b=o*n+this.d*i,this.c=-r*i+this.c*n,this.d=-o*i+this.d*n,this}},{key:"skew",value:function(e,n){return e*=t.DEG_TO_RAD,n*=t.DEG_TO_RAD,this.append(Math.cos(n),Math.sin(n),-Math.sin(e),Math.cos(e),0,0),this}},{key:"scale",value:function(t,e){return this.a*=t,this.b*=t,this.c*=e,this.d*=e,this}},{key:"translate",value:function(t,e){return this.tx+=this.a*t+this.c*e,this.ty+=this.b*t+this.d*e,this}},{key:"identity",value:function(){return this.a=this.d=1,this.b=this.c=this.tx=this.ty=0,this}},{key:"invert",value:function(){var t=this.a,e=this.b,n=this.c,i=this.d,r=this.tx,o=t*i-e*n;return this.a=i/o,this.b=-e/o,this.c=-n/o,this.d=t/o,this.tx=(n*this.ty-i*r)/o,this.ty=-(t*this.ty-e*r)/o,this}},{key:"isIdentity",value:function(){return 0===this.tx&&0===this.ty&&1===this.a&&0===this.b&&0===this.c&&1===this.d}},{key:"equals",value:function(t){return this.tx===t.tx&&this.ty===t.ty&&this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d}},{key:"transformPoint",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new te;return n.x=t*this.a+e*this.c+this.tx,n.y=t*this.b+e*this.d+this.ty,n}},{key:"decompose",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.x=this.tx,e.y=this.ty,e.scaleX=Math.sqrt(this.a*this.a+this.b*this.b),e.scaleY=Math.sqrt(this.c*this.c+this.d*this.d);var n=Math.atan2(-this.c,this.d),i=Math.atan2(this.b,this.a),r=Math.abs(1-n/i);return r<1e-5?(e.rotation=i/t.DEG_TO_RAD,this.a<0&&this.d>=0&&(e.rotation+=e.rotation<=0?180:-180),e.skewX=e.skewY=0):(e.skewX=n/t.DEG_TO_RAD,e.skewY=i/t.DEG_TO_RAD),e}},{key:"copy",value:function(t){return this.setValues(t.a,t.b,t.c,t.d,t.tx,t.ty)}},{key:"clone",value:function(){return new t(this.a,this.b,this.c,this.d,this.tx,this.ty)}},{key:"toString",value:function(){return"[".concat(this.constructor.name," (a=").concat(this.a," b=").concat(this.b," c=").concat(this.c," d=").concat(this.d," tx=").concat(this.tx," ty=").concat(this.t
1y,")]")}}])&&ee(e.prototype,n),i&&ee(e,i),t}();function ie(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}ne.DEG_TO_RAD=Math.PI/180,ne.identity=new ne;var re=function(){function t(e,n,i,r,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.setValues(e,n,i,r,o)}var e,n,i;return e=t,(n=[{key:"setValues",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return this.visible=t,this.alpha=e,this.shadow=n,this.compositeOperation=i,this.matrix=r||this.matrix&&this.matrix.identity()||new ne,this}},{key:"append",value:function(t,e,n,i,r){return this.alpha*=e,this.shadow=n||this.shadow,this.compositeOperation=i||this.compositeOperation,this.visible=this.visible&&t,r&&this.matrix.appendMatrix(r),this}},{key:"prepend",value:function(t,e,n,i,r){return this.alpha*=e,this.shadow=this.shadow||n,this.compositeOperation=this.compositeOperation||i,this.visible=this.visible&&t,r&&this.matrix.prependMatrix(r),this}},{key:"identity",value:function(){return this.visible=!0,this.alpha=1,this.shadow=this.compositeOperation=null,this.matrix.identity(),this}},{key:"clone",value:function(){return new t(this.alpha,this.shadow,this.compositeOperation,this.visible,this.matrix.clone())}}])&&ie(e.prototype,n),i&&ie(e,i),t}();function oe(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var ae=function(){function t(e,n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.setValues(e,n,i,r)}var e,n,i;return e=t,(n=[{key:"setValues",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.x=t,this.y=e,this.width=n,this.height=i,this}},{key:"extend",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return t+n>this.x+this.width&&(this.width=t+n-this.x),e+i>this.y+this.height&&(this.height=e+i-this.y),t<this.x&&(this.width+=this.x-t,this.x=t),e<this.y&&(this.height+=this.y-e,this.y=e),this}},{key:"pad",value:function(t,e,n,i){return this.x-=e,this.y-=t,this.width+=e+i,this.height+=t+n,this}},{key:"copy",value:function(t){return this.setValues(t.x,t.y,t.width,t.height)}},{key:"contains",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return t>=this.x&&t+n<=this.x+this.width&&e>=this.y&&e+i<=this.y+this.height}},{key:"union",value:function(t){return this.clone().extend(t.x,t.y,t.width,t.height)}},{key:"intersection",value:function(e){var n=e.x,i=e.y,r=n+e.width,o=i+e.height;return this.x>n&&(n=this.x),this.y>i&&(i=this.y),this.x+this.width<r&&(r=this.x+this.width),this.y+this.height<o&&(o=this.y+this.height),r<=n||o<=i?null:new t(n,i,r-n,o-i)}},{key:"intersects",value:function(t){return t.x<=this.x+this.width&&this.x<=t.x+t.width&&t.y<=this.y+this.height&&this.y<=t.y+t.height}},{key:"isEmpty",value:function(){return this.width<=0||this.height<=0}},{key:"clone",value:function(){return new t(this.x,this.y,this.width,this.height)}},{key:"toString",value:function(){return"[".concat(this.constructor.name," (x=").concat(this.x," y=").concat(this.y," width=").concat(this.width," height=").concat(this.height,")]")}}])&&oe(e.prototype,n),i&&oe(e,i),t}();function se(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var le=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.usesContext=!1,this._multiPass=null,this.VTX_SHADER_BODY=null,this.FRAG_SHADER_BODY=null}var e,n,i;return e=t,(n=[{key:"getBounds",value:function(t){}}
1,{key:"shaderParamSetup",value:function(t,e,n){}},{key:"applyFilter",value:function(t,e,n,i,r,o,a,s){o=o||t,null==a&&(a=e),null==s&&(s=n);try{var l=t.getImageData(e,n,i,r);if(this._applyFilter(l))return o.putImageData(l,a,s),!0}catch(t){}return!1}},{key:"toString",value:function(){return"[".concat(this.constructor.name,"]")}},{key:"clone",value:function(){return new t}},{key:"_applyFilter",value:function(t){}}])&&se(e.prototype,n),i&&se(e,i),t}();function ue(t){return(ue="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)}function ce(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function he(t,e){return!e||"object"!==ue(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fe(t){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function de(t,e){return(de=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ve=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=he(this,fe(e).call(this))).width=void 0,t.height=void 0,t.x=void 0,t.y=void 0,t.scale=1,t.offX=0,t.offY=0,t.cacheID=0,t._filterOffX=0,t._filterOffY=0,t._cacheDataURLID=0,t._cacheDataURL=null,t._drawWidth=0,t._drawHeight=0,t._boundRect=new ae,t}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&de(t,e)}(e,t),n=e,r=[{key:"getFilterBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ae,n=t.filters,i=n&&n.length;if(!!i<=0)return e;for(var r=0;r<i;r++){var o=n[r];if(o&&o.getBounds){var a=o.getBounds();a&&(0==r?e.setValues(a.x,a.y,a.width,a.height):e.extend(a.x,a.y,a.width,a.height))}}return e}}],(i=[{key:"define",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=arguments.length>6?arguments[6]:void 0;if(!t)throw"No symbol to cache";this._options=a,this._useWebGL=void 0!==a,this.target=t,this.width=i>=1?i:1,this.height=r>=1?r:1,this.x=e,this.y=n,this.scale=o,this.update()}},{key:"update",value:function(t){if(!this.target)throw"define() must be called before update()";var n=e.getFilterBounds(this.target),i=this.target.cacheCanvas;this._drawWidth=Math.ceil(this.width*this.scale)+n.width,this._drawHeight=Math.ceil(this.height*this.scale)+n.height,i&&this._drawWidth==i.width&&this._drawHeight==i.height||this._updateSurface(),this._filterOffX=n.x,this._filterOffY=n.y,this.offX=this.x*this.scale+this._filterOffX,this.offY=this.y*this.scale+this._filterOffY,this._drawToCache(t),this.cacheID=this.cacheID?this.cacheID+1:1}},{key:"release",value:function(){var t=this.target.stage;this._useWebGL&&this._webGLCache?(this._webGLCache.isCacheControlled||(this.__lastRT&&(this.__lastRT=void 0),this.__rtA&&this._webGLCache._killTextureObject(this.__rtA),this.__rtB&&this._webGLCache._killTextureObject(this.__rtB),this.target&&this.target.cacheCanvas&&this._webGLCache._killTextureObject(this.target.cacheCanvas)),this._webGLCache=!1):t instanceof Kt&&t.releaseTexture(this.target.cacheCanvas),this.target=this.target.cacheCanvas=null,this.cacheID=this._cacheDataURLID=this._cacheDataURL=void 0,this.width=this.height=this.x=this.y=this.offX=this.offY=0,this.scale=1}},{key:"getCacheDataURL",value:function(){var t=this.target&&this.target.cacheCanvas;return t?(this.cacheID!=this._cacheDataURLID&&(this._cacheDataURLID=this.cacheID,this._cacheDataURL=t.toDataURL?t.toDataURL():null),this._cacheDataURL):null}},{key:"draw",value:function(t){return!!this.target&&(t.drawImage(this.target.cacheCanvas,this.x+this._filterOffX/this.scale,this.y+this._filterOffY/this.scale,this._drawWidth/this.scale,this._drawHeight/this.scale),!0)}},{key:"getBounds",value:function(){var t=this.scale;return this._boundRect.setValue(this._filterOffX/t,this._filterOffY/t,this.width/t,this.height/t)}},{key:"_updateSurface",value:function(){var t;if(!this._useWebGL)return(t=this.target.cacheCanvas)||(t=this.target.cacheCanvas=window.createjs&&createjs.createCanvas?createjs.createCanvas():document.createElement("canvas")),t.width=this._drawWidth,void(t.height=this._drawHeight);
1if(!this._webGLCache)if("stage"===this._options.useGL){if(null==this.target.stage||!this.target.stage.isWebGL)throw"Cannot use 'stage' for cache because the object's parent stage is ".concat(null!=this.target.stage?"non WebGL.":"not set, please addChild to the correct stage.");this.target.cacheCanvas=!0,this._webGLCache=this.target.stage}else{if("new"!==this._options.useGL)throw"Invalid option provided to useGL, expected ['stage', 'new', StageGL, undefined], got "+this._options.useGL;this.target.cacheCanvas=document.createElement("canvas"),this._webGLCache=new Kt(this.target.cacheCanvas,{antialias:!0,transparent:!0,autoPurge:-1}),this._webGLCache.isCacheControlled=!0}var e=this._webGLCache;t=this.target.cacheCanvas,e.isCacheControlled&&(t.width=this._drawWidth,t.height=this._drawHeight,e.updateViewport(this._drawWidth,this._drawHeight)),this.target.filters?(e.getTargetRenderTexture(this.target,this._drawWidth,this._drawHeight),e.getTargetRenderTexture(this.target,this._drawWidth,this._drawHeight)):e.isCacheControlled||e.getTargetRenderTexture(this.target,this._drawWidth,this._drawHeight)}},{key:"_drawToCache",value:function(t){var e=this.target,n=e.cacheCanvas,i=this._webGLCache;if(!this._useWebGL||!i){var r=n.getContext("2d");return t||r.clearRect(0,0,this._drawWidth+1,this._drawHeight+1),r.save(),r.globalCompositeOperation=t,r.setTransform(this.scale,0,0,this.scale,-this._filterOffX,-this._filterOffY),r.translate(-this.x,-this.y),e.draw(r,!0),r.restore(),e.filters&&e.filters.length&&this._applyFilters(e),void(n._invalid=!0)}this._webGLCache.cacheDraw(e,e.filters,this),(n=this.target.cacheCanvas).width=this._drawWidth,n.height=this._drawHeight,n._invalid=!0}},{key:"_applyFilters",value:function(){for(var t=this.target.cacheCanvas,e=this.target.filters,n=this._drawWidth,i=this._drawHeight,r=t.getContext("2d").getImageData(0,0,n,i),o=e.length,a=0;a<o;a++)e[a]._applyFilter(r);t.getContext("2d").putImageData(r,0,0)}}])&&ce(n.prototype,i),r&&ce(n,r),e}(le);function pe(t){return(pe="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)}function ye(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function me(t,e){return!e||"object"!==pe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ge(t){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function be(t,e){return(be=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var _e=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=me(this,ge(e).call(this))).alpha=1,t.cacheCanvas=null,t.bitmapCache=null,t.id=Zt++,t.mouseEnabled=!0,t.tickEnabled=!0,t.name=null,t.parent=null,t.regX=0,t.regY=0,t.rotation=0,t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.shadow=null,t.visible=!0,t.x=0,t.y=0,t.transformMatrix=null,t.compositeOperation=null,t.snapToPixel=!0,t.filters=null,t.mask=null,t.hitArea=null,t.cursor=null,t._props=new re,t._rectangle=new ae,t._bounds=null,t._webGLRenderStyle=e._StageGL_NONE,t}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&be(t,e)}(e,t),n=e,(i=[{key:"isVisible",value:function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)}},{key:"draw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.drawCache(t,e)}},{key:"drawCache",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.bitmapCache;return!(!n||e)&&n.draw(t)}},{key:"updateContext",value:function(t){var n=this,i=n.mask,r=n._props.matrix;i&&i.graphics&&!i.graphics.isEmpty()&&(i.getMatrix(r),t.transform(r.a,r.b,r.c,r.d,r.tx,r.ty),i.graphics.drawAsPath(t),t.clip(),r.invert(),t.transform(r.a,r.b,r.c,r.d,r.tx,r.ty)),this.getMatrix(r);var o=r.tx,a=r.ty;e._snapToPixelEnabled&&n.snapToPixel&&(o=o+(o<0?-.5:.5)|0,a=a+(a<0?-.5:.5)|0),t.transform(r.a,r.b,r.c,r.d,o,a),t.globalAlpha*=n.alpha,n.compositeOperation&&(t.globalCompositeOperation=n.compositeOperation),n.shadow&&this._applyShadow(t,n.shadow)}},{key:"cache",value:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0;this.bitmapCache||(this.bitmapCache=new ve),this.bitmapCache.define(this,t,e,n,i,r,o)}},{key:"updateCache",value:function(t){if(!this.bitmapCache)throw"No cache found. cache() must be called before updateCache()";this.bitmapCache.update(t)}},{key:"uncache",value:function(){this.bitmapCache&&(this.bitmapCache.release(),this.bitmapCache=void 0)}},{key:"getCacheDataURL",value:function(){return this.bitmapCache?this.bitmapCache.getDataURL():null}},{key:"localToGlobal",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new te;
1return this.getConcatenatedMatrix(this._props.matrix).transformPoint(t,e,n)}},{key:"globalToLocal",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new te;return this.getConcatenatedMatrix(this._props.matrix).invert().transformPoint(t,e,n)}},{key:"localToLocal",value:function(t,e,n,i){return i=this.localToGlobal(t,e,i),n.globalToLocal(i.x,i.y,i)}},{key:"setTransform",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;return this.x=t,this.y=e,this.scaleX=n,this.scaleY=i,this.rotation=r,this.skewX=o,this.skewY=a,this.regX=s,this.regY=l,this}},{key:"getMatrix",value:function(t){var e=this,n=t&&t.identity()||new ne;return e.transformMatrix?n.copy(e.transformMatrix):n.appendTransform(e.x,e.y,e.scaleX,e.scaleY,e.rotation,e.skewX,e.skewY,e.regX,e.regY)}},{key:"getConcatenatedMatrix",value:function(t){for(var e=this,n=this.getMatrix(t);e=e.parent;)n.prependMatrix(e.getMatrix(e._props.matrix));return n}},{key:"getConcatenatedDisplayProps",value:function(t){t=t?t.identity():new re;var e=this,n=e.getMatrix(t.matrix);do{t.prepend(e.visible,e.alpha,e.shadow,e.compositeOperation),e!=this&&n.prependMatrix(e.getMatrix(e._props.matrix))}while(e=e.parent);return t}},{key:"hitTest",value:function(t,n){var i=e._hitTestContext;i.setTransform(1,0,0,1,-t,-n),this.draw(i);var r=this._testHit(i);return i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,2,2),r}},{key:"set",value:function(t){for(var e in t)this[e]=t[e];return this}},{key:"getBounds",value:function(){if(this._bounds)return this._rectangle.copy(this._bounds);var t=this.cacheCanvas;if(t){var e=this._cacheScale;return this._rectangle.setValues(this._cacheOffsetX,this._cacheOffsetY,t.width/e,t.height/e)}return null}},{key:"getTransformedBounds",value:function(){return this._getBounds()}},{key:"setBounds",value:function(t,e,n,i){null==t&&(this._bounds=null),this._bounds=(this._bounds||new ae).setValues(t,e,n,i)}},{key:"clone",value:function(){return this._cloneProps(new e)}},{key:"toString",value:function(){return"[".concat(this.constructor.name).concat(this.name?" (name=".concat(this.name,")"):"","]")}},{key:"_cloneProps",value:function(t){return t.alpha=this.alpha,t.mouseEnabled=this.mouseEnabled,t.tickEnabled=this.tickEnabled,t.name=this.name,t.regX=this.regX,t.regY=this.regY,t.rotation=this.rotation,t.scaleX=this.scaleX,t.scaleY=this.scaleY,t.shadow=this.shadow,t.skewX=this.skewX,t.skewY=this.skewY,t.visible=this.visible,t.x=this.x,t.y=this.y,t.compositeOperation=this.compositeOperation,t.snapToPixel=this.snapToPixel,t.filters=null==this.filters?null:this.filters.slice(0),t.mask=this.mask,t.hitArea=this.hitArea,t.cursor=this.cursor,t._bounds=this._bounds,t}},{key:"_applyShadow",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jt.identity;e=e,t.shadowColor=e.color,t.shadowOffsetX=e.offsetX,t.shadowOffsetY=e.offsetY,t.shadowBlur=e.blur}},{key:"_tick",value:function(t){var e=this._listeners;e&&e.tick&&(t.target=null,t.propagationStopped=t.immediatePropagationStopped=!1,this.dispatchEvent(t))}},{key:"_testHit",value:function(t){try{return t.getImageData(0,0,1,1).data[3]>1}catch(t){if(!e.suppressCrossDomainErrors)throw"An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images.";return!1}}},{key:"_getBounds",value:function(t,e){return this._transformBounds(this.getBounds(),t,e)}},{key:"_transformBounds",value:function(t,e,n){if(!t)return t;var i=t.x,r=t.y,o=t.width,a=t.height,s=this._props.matrix;s=n?s.identity():this.getMatrix(s),(i||r)&&s.appendTransform(0,0,1,1,0,0,0,-i,-r),e&&s.prependM
1atrix(e);var l=o*s.a,u=o*s.b,c=a*s.c,h=a*s.d,f=s.tx,d=s.ty,v=f,p=f,y=d,m=d;return(i=l+f)<v?v=i:i>p&&(p=i),(i=l+c+f)<v?v=i:i>p&&(p=i),(i=c+f)<v?v=i:i>p&&(p=i),(r=u+d)<y?y=r:r>m&&(m=r),(r=u+h+d)<y?y=r:r>m&&(m=r),(r=h+d)<y?y=r:r>m&&(m=r),t.setValues(v,y,p-v,m-y)}},{key:"_hasMouseEventListener",value:function(){for(var t=e._MOUSE_EVENTS,n=0,i=t.length;n<i;n++)if(this.hasEventListener(t[n]))return!0;return!!this.cursor}},{key:"stage",get:function(){for(var t=this;t.parent;)t=t.parent;return/^\[Stage(GL)?(\s\(name=\w+\))?\]$/.test(t.toString())?t:null}},{key:"scale",set:function(t){this.scaleX=this.scaleY=t},get:function(){return this.scaleX}}])&&ye(n.prototype,i),r&&ye(n,r),e}(Gt),we=window.createjs&&createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");function ke(t){return(ke="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)}function Se(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function xe(t,e){return!e||"object"!==ke(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ee(t,e,n){return(Ee="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ce(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function Ce(t){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Oe(t,e){return(Oe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}we.getContext&&(_e._hitTestCanvas=we,_e._hitTestContext=we.getContext("2d"),we.width=we.height=1),_e._MOUSE_EVENTS=["click","dblclick","mousedown","mouseout","mouseover","pressmove","pressup","rollout","rollover"],_e.suppressCrossDomainErrors=!1,_e.snapToPixelEnabled=!1,_e._StageGL_NONE=0,_e._StageGL_SPRITE=1,_e._StageGL_BITMAP=2;var Te=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=xe(this,Ce(e).call(this))).children=[],t.mouseChildren=!0,t.tickChildren=!0,t}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Oe(t,e)}(e,t),n=e,(i=[{key:"isVisible",value:function(){var t=this.cacheCanvas||this.children.length;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)}},{key:"draw",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ee(Ce(e.prototype),"draw",this).call(this,t,n))return!0;for(var i=this.children.slice(),r=0,o=i.length;r<o;r++){var a=i[r];a.isVisible()&&(t.save(),a.updateContext(t),a.draw(t),t.restore())}return!0}},{key:"addChild",value:function(){var t=arguments.length;if(0===t)return null;var e=arguments.length<=0?void 0:arguments[0];if(t>1){for(var n=0;n<t;n++)e=this.addChild(n<0||arguments.length<=n?void 0:arguments[n]);return e}var i=e.parent,r=i===this;return i&&i._removeChildAt(i.children.indexOf(e),r),e.parent=this,this.children.push(e),r||e.dispatchEvent("added"),e}},{key:"addChildAt",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.length;if(0===i)return null;var r=e.pop();if(r<0||r>this.children.length)return e[i-2];if(i>2){for(var o=0;o<i-1;o++)this.addChildAt(e[o],r++);return e[i-2]}var a=e[0],s=a.parent,l=s===this;return s&&s._removeChildAt(s.children.indexOf(a),l),a.parent=this,this.children.splice(r++,0,a),l||a.dispatchEvent("added"),a}},{key:"removeChild",value:function(){var t=arguments.length;if(0===t)return!0;if(t>1){for(var e=!0,n=0;n<t;n++)e=e&&this.removeChild(n<0||arguments.length<=n?void 0:arguments[n]);return e}return this._removeChildAt(this.children.indexOf(arguments.length<=0?void 0:arguments[0]))}},{key:"removeChildAt",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.length;if(0===i)return!0;
1if(i>1){e.sort((function(t,e){return e-t}));for(var r=!0,o=0;o<i;o++)r=r&&this._removeChildAt(e[o]);return r}return this._removeChildAt(e[0])}},{key:"removeAllChildren",value:function(){for(var t=this.children;t.length;)this._removeChildAt(0)}},{key:"getChildAt",value:function(t){return this.children[t]}},{key:"getChildByName",value:function(t){for(var e=this.children,n=e.length,i=0;i<n;i++)if(e[i].name===t)return e[i];return null}},{key:"sortChildren",value:function(t){this.children.sort(t)}},{key:"getChildIndex",value:function(t){return this.children.indexOf(t)}},{key:"swapChildrenAt",value:function(t,e){var n=this.children,i=n[t],r=n[e];i&&r&&(n[t]=r,n[e]=i)}},{key:"swapChildren",value:function(t,e){for(var n,i,r=this.children,o=r.length,a=0;a<o&&(r[a]===t&&(n=a),r[a]===e&&(i=a),null==n||null==i);a++);a!==o&&(r[n]=e,r[i]=t)}},{key:"setChildIndex",value:function(t,e){var n=this.children,i=n.length;if(!(t.parent!=this||e<0||e>=i)){for(var r=0;r<i&&n[r]!==t;r++);r!==i&&r!==e&&(n.splice(r,1),n.splice(e,0,t))}}},{key:"contains",value:function(t){for(;t;){if(t===this)return!0;t=t.parent}return!1}},{key:"hitTest",value:function(t,e){return null!=this.getObjectUnderPoint(t,e)}},{key:"getObjectsUnderPoint",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[],r=this.localToGlobal(t,e);return this._getObjectsUnderPoint(r.x,r.y,i,n>0,1===n),i}},{key:"getObjectUnderPoint",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this.localToGlobal(t,e);return this._getObjectsUnderPoint(i.x,i.y,null,n>0,1===n)}},{key:"getBounds",value:function(){return this._getBounds(null,!0)}},{key:"getTransformedBounds",value:function(){return this._getBounds()}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this._cloneProps(new e);return t&&this._cloneChildren(n),n}},{key:"_tick",value:function(t){if(this.tickChildren)for(var n=this.children.length-1;n>=0;n--){var i=this.children[n];i.tickEnabled&&i._tick&&i._tick(t)}Ee(Ce(e.prototype),"_tick",this).call(this,t)}},{key:"_cloneChildren",value:function(t){t.children.length&&t.removeAllChildren();for(var e=t.children,n=this.children.length,i=0;i<n;i++){var r=this.children[i].clone(!0);r.parent=t,e.push(r)}}},{key:"_removeChildAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t<0||t>this.children.length-1)return!1;var n=this.children[t];return n&&(n.parent=null),this.children.splice(t,1),e||n.dispatchEvent("removed"),!0}},{key:"_getObjectsUnderPoint",value:function(t,n,i,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(!a&&!this._testMask(this,t,n))return null;var s,l=_e._hitTestContext;o=o||r&&this._hasMouseEventListener();for(var u=this.children,c=u.length,h=c-1;h>=0;h--){var f=u[h],d=f.hitArea;if(f.visible&&(d||f.isVisible())&&(!r||f.mouseEnabled)&&(d||this._testMask(f,t,n)))if(!d&&f instanceof e){var v=f._getObjectsUnderPoint(t,n,i,r,o,a+1);if(!i&&v)return r&&!this.mouseChildren?this:v}else{if(r&&!o&&!f._hasMouseEventListener())continue;var p=f.getConcatenatedDisplayProps(f._props);if(s=p.matrix,d&&(s.appendMatrix(d.getMatrix(d._props.matrix)),p.alpha=d.alpha),l.globalAlpha=p.alpha,l.setTransform(s.a,s.b,s.c,s.d,s.tx-t,s.ty-n),(d||f).draw(l),!this._testHit(l))continue;if(l.setTransform(1,0,0,1,0,0),l.clearRect(0,0,2,2),!i)return r&&!this.mouseChildren?this:f;i.push(f)}}return null}},{key:"_testMask",value:function(t,e,n){var i=t.mask;if(!i||!i.graphics||i.graphics.isEmpty())return!0;var r=this._props.matrix,o=t.parent;r=o?o.getConcatenatedMatrix(r):r.identity(),r=i.getMatrix(i._props.matrix).prependM
1atrix(r);var a=_e._hitTestContext;return a.setTransform(r.a,r.b,r.c,r.d,r.tx-e,r.ty-n),i.graphics.drawAsPath(a),a.fillStyle="#000",a.fill(),!!this._testHit(a)&&(a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,2,2),!0)}},{key:"_getBounds",value:function(t,n){var i=Ee(Ce(e.prototype),"getBounds",this).call(this);if(i)return this._transformBounds(i,t,n);var r=this._props.matrix;r=n?r.identity():this.getMatrix(r),t&&r.prependMatrix(t);for(var o=this.children.length,a=null,s=0;s<o;s++){var l=this.children[s];l.visible&&(i=l._getBounds(r))&&(a?a.extend(i.x,i.y,i.width,i.height):a=i.clone())}return a}},{key:"numChildren",get:function(){return this.children.length}}])&&Se(n.prototype,i),r&&Se(n,r),e}(_e);function Pe(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(void 0!==window.createjs&&void 0!==window.createjs.createCanvas&&(t=window.createjs.createCanvas()),void 0!==window.document&&void 0!==window.document.createElement&&(t=document.createElement("canvas")),void 0!==t)return t.width=e,t.height=n,t;throw"Canvas not supported in this environment."}function je(t){return(je="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)}function Ae(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Le(t,e){return!e||"object"!==je(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ie(t,e,n){return(Ie="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Re(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function Re(t){return(Re=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Me(t,e){return(Me=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var De=function(t){function e(t,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=Le(this,Re(e).call(this))).currentFrame=0,i.currentAnimation=null,i.paused=!0,i.spriteSheet=t,i.currentAnimationFrame=0,i.framerate=0,i._animation=null,i._currentFrame=null,i._skipAdvance=!1,i._webGLRenderStyle=_e._StageGL_SPRITE,null!=n&&i.gotoAndPlay(n),i}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Me(t,e)}(e,t),n=e,(i=[{key:"isVisible",value:function(){var t=this.cacheCanvas||this.spriteSheet.complete;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)}},{key:"draw",value:function(t,n){if(Ie(Re(e.prototype),"draw",this).call(this,t,n))return!0;this._normalizeFrame();var i=this.spriteSheet.getFrame(0|this._currentFrame);if(!i)return!1;var r=i.rect;return r.width&&r.height&&t.drawImage(i.image,r.x,r.y,r.width,r.height,-i.regX,-i.regY,r.width,r.height),!0}},{key:"play",value:function(){this.paused=!1}},{key:"stop",value:function(){this.paused=!0}},{key:"gotoAndPlay",value:function(t){this.paused=!1,this._skipAdvance=!0,this._goto(t)}},{key:"gotoAndStop",value:function(t){this.paused=!0,this._goto(t)}},{key:"advance",value:function(t){var e=this.framerate||this.spriteSheet.framerate,n=e&&null!=t?t/(1e3/e):1;this._normalizeFrame(n)}},{key:"getBounds",value:function(){return Ie(Re(e.prototype),"getBounds",this).call(this)||this.spriteSheet.getFrameBounds(this.currentFrame,this._rectangle)}},{key:"clone",value:function(){return this._cloneProps(new e(this.spriteSheet))}},{key:"_cloneProps",value:function(t){return Ie(Re(e.prototype),"_cloneProps",this).call(this,t),t.currentFrame=this.currentFrame,t.currentAnimation=this.currentAnimation,t.paused=this.paused,t.currentAnimationFrame=this.currentAnimationFrame,t.framerate=this.framerate,t._animation=this._animation,t._currentFrame=this._currentFrame,t._skipAdvance=this._skipAdvance,t}},{key:"_tick",value:function(t){this.paused||(this._skipAdvance||this.advance(t&&t.delta),this._skipAdvance=!1),Ie(Re(e.prototype),"_tick",this).call(this,t)}},{key:"_normalizeFrame",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this._animation,n=this.paused,i=this._currentFrame;if(e){var r=e.speed||1,o=this.currentAnimationFrame,a=e.frames.length;if(o+t*r>=a){var s=e.next;if(this._dispatchAnimationEnd(e,i,n,s,a-1))return;if(s)return this._goto(s,t-(a-o)/r);this.paused=!0,o=e.frames.length-1}else o+=t*r;this.currentAnimationFrame=o,this._currentFrame=e.frames[0|o]}else{i=this._currentFrame+=t;var l=this.spriteSheet.getNumFrames();if(i>=l&&l>0&&!this._dispatchAnimationEnd(e,i,n,l-1)&&(this._currentFrame-=l)>=l)return this._normalizeFrame()}i=0|this._currentFrame,this.currentFrame!=i&&(this.currentFrame=i,this.dispatchEvent("change"))}},{key:"_dispatchAnimationEnd",value:function(t,e,n,i,r){var o=t?t.name:null;if(this.hasEventListener("animationend")){var a=new Mt("animationend");a.name=o,a.next=i,this.dispatchEvent(a)}var s=this._animation!=t||this._currentFrame!=e;return s||n||!this.paused||(this.currentAnimationFrame=r,s=!0),s}},{key:"_goto",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.currentAnimationFrame=0,isNaN(t)){var n=this.spriteSheet.getAnimation(t);
1n&&(this._animation=n,this.currentAnimation=t,this._normalizeFrame(e))}else this.currentAnimation=this._animation=null,this._currentFrame=t,this._normalizeFrame()}}])&&Ae(n.prototype,i),r&&Ae(n,r),e}(_e);function Fe(t){return(Fe="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)}function Ge(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Be(t,e){return!e||"object"!==Fe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function He(t,e,n){return(He="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ne(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function Ne(t){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ve(t,e){return(Ve=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ye=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Be(this,Ne(e).call(this))).text=n,t.spriteSheet=i,t.lineHeight=0,t.letterSpacing=0,t.spaceWi
1dth=0,t._oldProps={text:0,spriteSheet:0,lineHeight:0,letterSpacing:0,spaceWidth:0},t._oldStage=null,t._drawAction=null,t}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ve(t,e)}(e,t),n=e,(i=[{key:"draw",value:function(t,n){this.drawCache(t,n)||(this._updateState(),He(Ne(e.prototype),"draw",this).call(this,t,n))}},{key:"getBounds",value:function(){return this._updateText(),He(Ne(e.prototype),"getBounds",this).call(this)}},{key:"isVisible",value:function(){var t=this.cacheCanvas||this.spriteSheet&&this.spriteSheet.complete&&this.text;return!!(this.visible&&this.alpha>0&&0!==this.scaleX&&0!==this.scaleY&&t)}},{key:"clone",value:function(){return this._cloneProps(new e(this.text,this.spriteSheet))}},{key:"addChild",value:function(){}},{key:"addChildAt",value:function(){}},{key:"removeChild",value:function(){}},{key:"removeChildAt",value:function(){}},{key:"removeAllChildren",value:function(){}},{key:"_updateState",value:function(){this._updateText()}},{key:"_cloneProps",value:function(t){return He(Ne(e.prototype),"_cloneProps",this).call(this,t),t.lineHeight=this.lineHeight,t.letterSpacing=this.letterSpacing,t.spaceWidth=this.spaceWidth,t}},{key:"_getFrameIndex",value:function(t,e){var n,i=e.getAnimation(t);return i||(t!=(n=t.toUpperCase())||t!=(n=t.toLowerCase())||(n=null),n&&(i=e.getAnimation(n))),i&&i.frames[0]}},{key:"_getFrame",value:function(t,e){var n=this._getFrameIndex(t,e);return null==n?n:e.getFrame(n)}},{key:"_getLineHeight",value:function(t){var e=this._getFrame("1",t)||this._getFrame("T",t)||this._getFrame("L",t)||t.getFrame(0);return e?e.rect.height:1}},{key:"_getSpaceWidth",value:function(t){var e=this._getFrame("1",t)||this._getFrame("l",t)||this._getFrame("e",t)||this._getFrame("a",t)||t.getFrame(0);return e?e.rect.width:1}},{key:"_tick",value:function(t){var n=this.stage;n&&n.on("drawstart",this._updateText,this,!0),He(Ne(e.prototype),"_tick",this).call(this,t)}},{key:"_updateText",value:function(){var t,n=0,i=0,r=this._oldProps,o=!1,a=this.spaceWidth,s=this.lineHeight,l=this.spriteSheet,u=e._spritePool,c=this.children,h=0,f=c.length;for(var d in r)r[d]!=this[d]&&(r[d]=this[d],o=!0);if(o){var v=!!this._getFrame(" ",l);v||a||(a=this._getSpaceWidth(l)),s||(s=this._getLineHeight(l));for(var p=0,y=this.text.length;p<y;p++){var m=this.text.charAt(p);if(" "!==m||v)if("\n"!==m&&"\r"!==m){var g=this._getFrameIndex(m,l);null!=g&&(h<f?t=c[h]:(c.push(t=u.length?u.pop():new De),t.parent=this,f++),t.spriteSheet=l,t.gotoAndStop(g),t.x=n,t.y=i,h++,n+=t.getBounds().width+this.letterSpacing)}else"\r"===m&&"\n"===this.text.charAt(p+1)&&p++,n=0,i+=s;else n+=a}for(;f>h;)u.push(t=c.pop()),t.parent=null,f--;u.length>e.maxPoolSize&&(u.length=e.maxPoolSize)}}}])&&Ge(n.prototype,i),r&&Ge(n,r),e}(Te);Ye.maxPoolSize=100,Ye._spritePool=[];function We(t){return(We="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)}function ze(t,e){return!e||"object"!==We(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qe(t){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xe(t,e){return(Xe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ke(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Qe(t,e,n){return e&&Ke(t.prototype,e),n&&Ke(t,n),t}var Je=function(){function t(){Ue(this,t),this.command=null,this._stroke=null,this._strokeStyle=null,this._oldStrokeStyle=null,this._strokeDash=null,this._oldStrokeDash=null,this._fill=null,this._strokeIgnoreScale=!1,this._commitIndex=0,this._instructions=[],this._activeInstructions=[],this._dirty=!1,this._storeIndex=0,this.curveTo=this.quadraticCurveTo,this.drawRect=this.rect,this.mt=this.moveTo,this.lt=this.lineTo,this.at=this.arcTo,this.bt=this.bezierCurveTo,this.qt=this.quadraticCurveTo,this.a=this.arc,this.r=this.rect,this.cp=this.closePath,this.c=this.clear,this.f=this.beginFill,this.lf=this.beginLinearGradientFill,this.rf=this.beginRadialGradientFill,this.bf=this.beginBitmapFill,this.ef=this.endFill,this.ss=this.setStrokeStyle,this.sd=this.setStrokeDash,this.s=this.beginStroke,this.ls=this.beginLinearGradientStroke,this.rs=this.beginRadialGradientStroke,this.bs=this.beginBitmapStroke,this.es=this.endStroke,this.dr=this.drawRect,this.rr=this.drawRoundRect,this.rc=this.drawRoundRectComplex,this.dc=this.drawCircle,this.de=this.drawEllipse,this.dp=this.drawPolyStar,this.p=this.decodePath,this.clear()}return Qe(t,[{key:"isEmpty",value:function(){return!(this._instructions.length||this._activeInstructions.length)}},{key:"draw",value:function(t,e){this._updateInstructions();for(var n=this._instructions,i=n.length,r=this._storeIndex;r<i;r++)n[r].exec(t,e)}},{key:"drawAsPath",value:function(t){this._updateInstructions();for(var e,n=this._instructions,i=n.length,r=this._storeIndex;r<i;r++)!1!==(e=n[r]).path&&e.exec(t)}},{key:"moveTo",value:function(t,e){return this.append(new $e(t,e),!0)}},{key:"lineTo",value:function(t,e){return this.append(new Ze(t,e))}},{key:"arcTo",value:function(t,e,n,i,r){return this.append(new tn(t,e,n,i,r))}},{key:"arc",value:function(t,e,n,i,r,o){return this.append(new en(t,e,n,i,r,o))}},{key:"quadraticCurveTo",value:function(t,e,n,i){return this.append(new nn(t,e,n,i))}},{key:"bezierCurveTo",value:function(t,e,n,i,r,o){return this.append(new rn(t,e,n,i,r,o))}},{key:"rect",value:function(t,e,n,i){return this.append(new on(t,e,n,i))}},{key:"closePath",value:function(){return this._activeInstructions.length?this.append(new an):this}},{key:"clear",value:function(){return this._instructions.length=this._activeInstructions.length=this._commitIndex=0,this._strokeStyle=this._oldStrokeStyle=this._stroke=this._fill=this._strokeDash=this._oldStrokeDash=null,this._dirty=this._strokeIgnoreScale=!1,this}},{key:"beginFill",value:function(t){return this._setFill(t?new ln(t):null)}},{key:"beginLinearGradientFill",value:function(t,e,n,i,r,o){return this._setFill((new ln).linearGradient(t,e,n,i,r,o))}},{key:"beginRadialGradientFill",value:function(t,e,n,i,r,o,a,s){return this._setFill((new ln).radialGradient(t,e,n,i,r,o,a,s))}},{key:"beginBitmapFill",value:function(t,e,n){return this._setFill(new ln(null,n).bitmap(t,e))}},{key:"endFill",value:function(){return this.beginFill()}},{key:"setStrokeStyle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this._updateInstructions(!0),this._strokeStyle=this.command=new cn(t,e,n,i,r),this._stroke&&(this._stroke.ignoreScale=r),this._strokeIgnoreScale=r,this}},{key:"setStrokeDash",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._updateInstructions(!0),this._strokeDash=this.command=new hn(t,e),this}},{key:"beginStroke",value:function(t){return this._setStroke(t?new un(t):null)}},{key:"beginLinearGradientStroke",value:function(t,e,n,i,r,o){return this._setStroke((new un).linearGradient(t,e,n,i,r,o))}},{key:"beginRadialGradientStroke",value:function(t,e,n,i,r,o,a,s){return this._setStroke((new un).radialGradient(t,e,n,i,r,o,a,s))}},{key:"beginBitmapStroke",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"repeat";return this._setStroke((new un).bitmap(t,e))}},{key:"endStroke",value:function(){return this.beginStroke()}},{key:"drawRoundRect",value:function(t,e,n,i,r){return this.drawRoundRectComplex(t,e,n,i,r,r,r,r)}},{key:"drawRoundRectComplex",value:function(t,e,n,i,r,o,a,s){return this.append(new fn(t,e,n,i,r,o,a,s))}},{key:"drawCircle",value:function(t,e,n){return this.append(new dn(t,e,n))}},{key:"drawEllipse",value:function(t,e,n,i){return this.append(new vn(t,e,n,i))}},{key:"drawPolyStar",value:function(t,e,n,i,r,o){return this.append(new pn(t,e,n,i,r,o))}},{key:"append",value:function(t,e){return this._activeInstructions.push(t),this.command=t,e||(this._dirty=!0),this}},{key:"decodePath",value:function(e){for(var n=[this.moveTo,this.lineTo,this.quadraticCurveTo,this.bezierCurveTo,this.closePath],i=[2,2,4,6,0],r=0,o=e.length,a=[],s=0,l=0,u=t._BASE_64;r<o;){var c=u[e.charAt(r)],h=c>>3,f=n[h];if(!f||3&c)throw"Bad path data (@".concat(r,"):c");var d=i[h];h||(s=l=0),a.length=0,r++;for(var v=2+(c>>2&1),p=0;p<d;p++){var y=u[e.charAt(r)],m=y>>5?-1:1;y=(31&y)<<6|u[e.charAt(r+1)],3===v&&(y=y<<6|u[e.charAt(r+2)]),y=m*y/10,p%2?s=y+=s:l=y+=l,a[p]=y,r+=v}f.apply(this,a)}return this}},{key:"store",value:function(){return this._updateInstructions(!0),this._storeIndex=this._instructions.length,this}},{key:"unstore",value:function(){return this._storeIndex=0,this}},{key:"clone",value:function(){var e=new t;return e.command=this.command,e._stroke=this._stroke,e._strokeStyle=this._strokeStyle,e._strokeDash=this._strokeDash,e._strokeIgnoreScale=this._strokeIgnoreScale,e._fill=this._fill,e._instructions=this._instructions.slice(),e._commitIndex=this._commitIndex,e._activeInstructions=this._activeInstructions.slice(),e._dirty=this._dirty,e._storeIndex=this._storeIndex,e}},{key:"toString",value:function(){return"[".concat(this.constructor.name,"]")}},{key:"_updateInstructions",value:function(e){var n=this._instructions,i=this._activeInstructions,r=this._commitIndex;if(this._dirty&&i.length){n.length=r,n.push(t.beginCmd);var o=i.length,a=n.length;n.length=a+o;for(var s=0;s<o;s++)n[s+a]=i[s];this._fill&&n.push(this._fill),this._stroke&&(this._strokeDash!==this._oldStrokeDash&&n.push(this._strokeDash),this._strokeStyle!==this._oldStrokeStyle&&n.push(this._strokeStyle),e&&(this._oldStrokeDash=this._strokeDash,this._oldStrokeStyle=this._strokeStyle),n.push(this._stroke)),this._dirty=!1}e&&(i.length=0,this._commitIndex=n.length)}},{key:"_setFill",value:function(t){return this._updateInstructions(!0),this.command=this._fill=t,this}},{key:"_setStroke",value:function(t){return this._updateInstructions(!0),(this.command=this._stroke=t)&&(t.ignoreScale=this._strokeIgnoreScale),this}},{key:"instructions",get:function(){return this._updateInstructions(),this._instructions}}],[{key:"getRGB",value:function(t,e,n,i){return null!=t&&null==n&&(i=e,n=255&t,e=t>>8&255,t=t>>16&255),null==i?"rgb(".concat(t,",").concat(e,",").concat(n,")"):"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(i,")")}},{key:"getHSL",value:function(t,e,n,i){return null==i?"hsl(".concat(t%360,",").concat(e,"%,").concat(n,"%)"):"hsl(".concat(t%360,",").concat(e,"%,").concat(n,"%,").concat(i,")")}},{key:"LineTo",get:function(){return Ze}},{key:"MoveTo",get:function(){return $e}},{key:"ArcTo",get:function(){return tn}},{key:"Arc",get:function(){return en}},{key:"QuadraticCurveTo",get:function(){return nn}},{key:"BezierCurveTo",get:function(){return rn}},{key:"Rect",get:function(){return on}},{key:"ClosePath",get:function(){return an}},{key:"BeginPath",get:function(){return sn}},{key:"Fill",get:function(){return ln}},{key:"Stroke",get:function(){return un}},{key:"StrokeStyle",get:function(){return cn}},{key:"StrokeDash",get:function(){return hn}},{key:"RoundRect",get:function(){return fn}},{key:"Circle",get:function(){return dn}},{key:"Ellipse",get:function(){return vn}},{key:"PolyStar",get:function(){return pn}}]),t}(),Ze=function(){function t(e,n){Ue(this,t),this.x=e,this.y=n}return Qe(t,[{key:"exec",value:function(t){t.lineTo(this.x,this.y)}}]),t}(),$e=function(){function t(e,n){Ue(this,t),this.x=e,this.y=n}return Qe(t,[{key:"exec",value:function(t){t.moveTo(this.x,this.y)}}]),t}(),tn=function(){function t(e,n,i,r,o){Ue(this,t),this.x1=e,this.y1=n,this.x2=i,this.y2=r,this.radius=o}return Qe(t,[{key:"exec",value:function(t){t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}}]),t}(),en=function(){function t(e,n,i,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Ue(this,t),this.x=e,this.y=n,this.radius=i,this.startAngle=r,this.endAngle=o,this.anticlockwise=a}return Qe(t,[{key:"exec",value:function(t){t.arc(this.x,this.y,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}}]),t}(),nn=function(){function t(e,n,i,r){Ue(this,t),this.cpx=e,this.cpy=n,this.x=i,this.y=r}return Qe(t,[{key:"exec",value:function(t){t.quadraticCurveTo(this.cpx,this.cpy,this.x,this.y)}}]),t}(),rn=function(){function t(e,n,i,r,o,a){Ue(this,t),this.cp1x=e,this.cp1y=n,this.cp2x=i,this.cp2y=r,this.x=o,this.y=a}return Qe(t,[{key:"exec",value:function(t){t.bezierCurveTo(this.cp1x,this.cp1y,this.cp2x,this.cp2y,this.x,this.y)}}]),t}(),on=function(){function t(e,n,i,r){Ue(this,t),this.x=e,this.y=n,this.w=i,this.h=r}return Qe(t,[{key:"exec",value:function(t){t.rect(this.x,this.y,this.w,this.h)}}]),t}(),an=function(){function t(){Ue(this,t)}return Qe(t,[{key:"exec",value:function(t){t.closePath()}}]),t}(),sn=function(){function t(){Ue(this,t)}return Qe(t,[{key:"exec",value:function(t){t.beginPath()}}]),t}(),ln=function(){function t(e,n){Ue(this,t),this.style=e,this.matrix=n,this.path=!1}return Qe(t,[{key:"exec",value:function(t){if(this.style){t.fillStyle=this.style;var e=this.matrix;e&&(t.save(),t.transform(e.a,e.b,e.c,e.d,e.tx,e.ty)),t.fill(),e&&t.restore(
1)}}},{key:"linearGradient",value:function(t,e,n,i,r,o){for(var a=this.style=Je._ctx.createLinearGradient(n,i,r,o),s=t.length,l=0;l<s;l++)a.addColorStop(e[l],t[l]);return a.props={colors:t,ratios:e,x0:n,y0:i,x1:r,y1:o,type:"linear"},this}},{key:"radialGradient",value:function(t,e,n,i,r,o,a,s){for(var l=this.style=Je._ctx.createRadialGradient(n,i,r,o,a,s),u=t.length,c=0;c<u;c++)l.addColorStop(e[c],t[c]);return l.props={colors:t,ratios:e,x0:n,y0:i,r0:r,x1:o,y1:a,r1:s,type:"radial"},this}},{key:"bitmap",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t.naturalWidth||t.getContext||t.readyState>=2){var n=this.style=Je._ctx.createPattern(t,e);n.props={image:t,repetition:e,type:"bitmap"}}return this}}]),t}(),un=function(t){function e(t,n){var i;return Ue(this,e),(i=ze(this,qe(e).call(this))).style=t,i.ignoreScale=n,i.path=!1,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xe(t,e)}(e,t),Qe(e,[{key:"exec",value:function(t){this.style&&(t.strokeStyle=this.style,this.ignoreScale&&(t.save(),t.setTransform(1,0,0,1,0,0)),t.stroke(),this.ignoreScale&&t.restore())}}]),e}(ln),cn=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"butt",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"miter",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Ue(this,t),this.width=e,this.caps=n,this.joints=i,this.miterLimit=r,this.ignoreScale=o,this.path=!1}return Qe(t,[{key:"exec",value:function(t){t.lineWidth=this.width,t.lineCap=isNaN(this.caps)?this.caps:Je._STROKE_CAPS_MAP[this.caps],t.lineJoin=isNaN(this.joints)?this.joints:Je._STROKE_JOINTS_MAP[this.joints],t.miterLimit=this.miterLimit,t.ignoreScale=this.ignoreScale}}]),t}(),hn=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ue(this,t),this.segments=e,this.offset=n}return Qe(t,[{key:"exec",value:function(t){t.setLineDash&&(t.setLineDash(this.segments),t.lineDashOffset=this.offset)}}]),t}(),fn=function(){function t(e,n,i,r,o,a,s,l){Ue(this,t),this.x=e,this.y=n,this.w=i,this.h=r,this.radiusTL=o,this.radiusTR=a,this.radiusBR=s,this.radiusBL=l}return Qe(t,[{key:"exec",value:function(t){var e=(this.w<this.h?this.w:this.h)/2,n=0,i=0,r=0,o=0,a=this.x,s=this.y,l=this.w,u=this.h,c=this.radiusTL,h=this.radiusTR,f=this.radiusBR,d=this.radiusBL;c<0&&(c*=n=-1),c>e&&(c=e),h<0&&(h*=i=-1),h>e&&(h=e),f<0&&(f*=r=-1),f>e&&(f=e),d<0&&(d*=o=-1),d>e&&(d=e),t.moveTo(a+l-h,s),t.arcTo(a+l+h*i,s-h*i,a+l,s+h,h),t.lineTo(a+l,s+u-f),t.arcTo(a+l+f*r,s+u+f*r,a+l-f,s+u,f),t.lineTo(a+d,s+u),t.arcTo(a-d*o,s+u+d*o,a,s+u-d,d),t.lineTo(a,s+c),t.arcTo(a-c*n,s-c*n,a+c,s,c),t.closePath()}}]),t}(),dn=function(){function t(e,n,i){Ue(this,t),this.x=e,this.y=n,this.radius=i}return Qe(t,[{key:"exec",value:function(t){t.arc(this.x,this.y,this.radius,0,2*Math.PI)}}]),t}(),vn=function(){function t(e,n,i,r){Ue(this,t),this.x=e,this.y=n,this.w=i,this.h=r}return Qe(t,[{key:"exec",value:function(t){var e=this.x,n=this.y,i=this.w,r=this.h,o=.5522848,a=i/2*o,s=r/2*o,l=e+i,u=n+r,c=e+i/2,h=n+r/2;t.moveTo(e,h),t.bezierCurveTo(e,h-s,c-a,n,c,n),t.bezierCurveTo(c+a,n,l,h-s,l,h),t.bezierCurveTo(l,h+s,c+a,u,c,u),t.bezierCurveTo(c-a,u,e,h+s,e,h)}}]),t}(),pn=function(){function t(e,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;Ue(this,t),this.x=e,this.y=n,this.radius=i,this.sides=r,this.pointSize=o,this.angle=a}return Qe(t,[{key:"exec",value:function(t){var e=this.x,n=this.y,i=this.radius,r=this.angle/180*Math.PI,o=this.sides,a=1-this.pointSize,s=Math.PI/o;t.moveTo(e+Math.cos(r)*i,n+Math.sin(r)*i);for(var l=0;l<o;l++)r+=s,1!=a&&t.lineTo(e+Math.cos(r)*i*a,n+Math.sin(r)*i*a),r+=s,t.lineTo(e+Math.cos(r)*i,n+Math.sin(r)*i);t.closePath()}}]),t}();function yn(t){return(yn="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)}function mn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function gn(t,e){return!e||"object"!==yn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
1function bn(t){return(bn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _n(t,e){return(_n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Je.beginCmd=new sn,Je._BASE_64={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,a:26,b:27,c:28,d:29,e:30,f:31,g:32,h:33,i:34,j:35,k:36,l:37,m:38,n:39,o:40,p:41,q:42,r:43,s:44,t:45,u:46,v:47,w:48,x:49,y:50,z:51,0:52,1:53,2:54,3:55,4:56,5:57,6:58,7:59,8:60,9:61,"+":62,"/":63},Je._STROKE_CAPS_MAP=["butt","round","square"],Je._STROKE_JOINTS_MAP=["miter","round","bevel"],Je._ctx=Pe().getContext("2d");var wn=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=gn(this,bn(e).call(this))).ignoreGlobalPause=!1,n.loop=0,n.useTicks=!1,n.reversed=!1,n.bounce=!1,n.timeScale=1,n.duration=0,n.position=0,n.rawPosition=-1,n._paused=!0,n._next=null,n._prev=null,n._parent=null,n._labels=null,n._labelList=null,t&&(n.useTicks=!!t.useTicks,n.ignoreGlobalPause=!!t.ignoreGlobalPause,n.loop=!0===t.loop?-1:t.loop||0,n.reversed=!!t.reversed,n.bounce=!!t.bounce,n.timeScale=t.timeScale||1,t.onChange&&n.addEventListener("change",t.onChange),t.onComplete&&n.addEventListener("complete",t.onComplete)),n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_n(t,e)}(e,t),n=e,(r=[{key:"advance",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.setPosition(this.rawPosition+t*this.timeScale,e)}},{key:"setPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=this.duration,o=this.loop,a=this.rawPosition,s=0,l=0,u=!1;if(t<0&&(t=0),0===r){if(u=!0,-1!==a)return u}else{if(l=t-(s=t/r|0)*r,(u=-1!==o&&t>=o*r+r)&&(t=(l=r)*(s=o)+r),t===a)return u;!this.reversed!=!(this.bounce&&s%2)&&(l=r-l)}this.position=l,this.rawPosition=t,this._updatePosition(n,u),u&&(this.paused=!0),i&&i(this),e||this._runActions(a,t,n,!n&&-1===a),this.dispatchEvent("change"),u&&this.dispatchEvent("complete")}},{key:"calculatePosition",value:function(t){var e=this.duration,n=this.loop,i=0,r=0;return 0===e?0:(-1!==n&&t>=n*e+e?(r=e,i=n):r=t<0?0:t-(i=t/e|0)*e,!this.reversed!=!(this.bounce&&i%2)?e-r:r)}},{key:"addLabel",value:function(t,e){this._labels||(this._labels={}),this._labels[t]=e;var n=this._labelList;if(n){for(var r=0,o=n.length;r<o&&!(e<n[r].position);r++);n.splice(i,0,{label:t,position:e})}}},{key:"gotoAndPlay",value:function(t){this.paused=!1,this._goto(t)}},{key:"gotoAndStop",value:function(t){this.paused=!0,this._goto(t)}},{key:"resolve",value:function(t){var e=Number(t);return isNaN(e)?this._labels&&this._labels[t]:e}},{key:"toString",value:function(){return"[".concat(this.constructor.name).concat(this.name?" (name=".concat(this.name,")"):"","]")}},{key:"clone",value:function(){throw"AbstractTween cannot be cloned."}},{key:"_init",value:function(t){t&&t.paused||(this.paused=!1),t&&null!=t.position&&this.setPosition(t.position)}},{key:"_goto",value:function(t){var e=this.resolve(t);null!=e&&this.setPosition(e,!1,!0)}},{key:"_runActions",value:function(t,e,n,i){if(this._actionHead||this.tweens){var r,o,a,s,l=this.duration,u=this.loop,c=this.reversed,h=this.bounce;if(0===l?(r=o=a=s=0,c=h=!1):(a=t-(r=t/l|0)*l,s=e-(o=e/l|0)*l),-1!==u&&(o>u&&(s=l,o=u),r>u&&(a=l,r=u)),n)return this._runActionsRange(s,s,n,i);if(r!==o||a!==s||n||i){-1===r&&(r=a=0);var f=t<=e,d=r;do{var v=d===r?a:f?0:l,p=d===o?s:f?l:0;if(!c!=!(h&&d%2)&&(v=l-v,p=l-p),h&&d!==r&&v===p);else if(this._runActionsRange(v,p,n,i||d!==r&&!h))return!0;i=!1}while(f&&++d<=o||!f&&--d>=o)}}}},{key:"_runActionsRange",value:function(t,e,n,i){throw"_runActionsRange is abstract and must be overridden by a subclass."}},{key:"_updatePosition",value:function(t,e){throw"_updatePosition is abstract and must be overridden by a subclass."}},{key:"labels",get:function(){var t=this._labelList;if(!t){t=this._labelList=[];var e=this._labels;for(var n in e)t.push({label:n,position:e[n]});t.sort((function(t,e){return t.position-e.position}))}return t},set:function(t){this._labels=t,this._labelList=null}},{key:"currentLabel",get:function(){for(var t=this.labels,e=this.position,n=0,r=t.length;n<r&&!(e<t[n].position);n++);return 0===i?null:t[i-1].label}},{key:"paused",get:function(){return this._paused}
1,set:function(t){Dn._register(this,t),this._paused=t}}])&&mn(n.prototype,r),o&&mn(n,o),e}(Gt);function kn(t){return t}function Sn(t){return function(e){return Math.pow(e,t)}}function xn(t){return function(e){return 1-Math.pow(1-e,t)}}function En(t){return function(e){return(e*=2)<1?.5*Math.pow(e,t):1-.5*Math.abs(Math.pow(2-e,t))}}var Cn,On,Tn,Pn;Sn(2),xn(2),En(2),Sn(3),xn(3),En(3),Sn(4),xn(4),En(4),Sn(5),xn(5),En(5),Cn=1.7,function(t){t*=1.525}(1.7),On=1,Tn=.3,Pn=2*Math.PI,function(t,e){var n=2*Math.PI}(1,.3),function(t,e){var n=2*Math.PI}(1,.3*1.5);function jn(t){return(jn="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)}function An(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ln(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function In(t,e){return!e||"object"!==jn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Rn(t){return(Rn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Mn(t,e){return(Mn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Dn=function(t){function e(t,n){var i;return An(this,e),(i=In(this,Rn(e).call(this,n))).pluginData=null,i.target=t,i.passive=!1,i._stepHead=new Gn(null,0,0,{},null,!0),i._stepTail=i._stepHead,i._stepPosition=0,i._actionHead=null,i._actionTail=null,i._plugins=null,i._pluginIds=null,i._injected=null,n&&(i.pluginData=n.pluginData,n.override&&e.removeTweens(t)),i.pluginData||(i.pluginData={}),i._init(n),i}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mn(t,e)}(e,t),n=e,o=[{key:"get",value:function(t,n){return new e(t,n)}},{key:"tick",value:function(t,n){for(var i=e._tweenHead;i;){var r=i._next;n&&!i.ignoreGlobalPause||i._paused||i.advance(i.useTicks?1:t),i=r}}},{key:"handleEvent",value:function(t){"tick"===t.type&&this.tick(t.delta,t.paused)}},{key:"removeTweens",value:function(t){if(t.tweenjs_count){for(var n=e._tweenHead;n;){var i=n._next;n.target===t&&(n.paused=!0),n=i}t.tweenjs_count=0}}},{key:"removeAllTweens",value:function(){for(var t=e._tweenHead;t;){var n=t._next;t._paused=!0,t.target&&(t.target.tweenjs_count=0),t._next=t._prev=null,t=n}e._tweenHead=e._tweenTail=null}},{key:"hasActiveTweens",value:function(t){return t?!!t.tweenjs_count:!!e._tweenHead}},{key:"installPlugin",value:function(t,n){t.install(n);for(var r=t.priority=t.priority||0,o=e._plugins=e._plugins||[],a=0,s=o.length;a<s&&!(r<o[a].priority);a++);o.splice(i,0,t)}},{key:"_register",value:function(t,n){var i=t.target;if(!n&&t._paused){i&&(i.tweenjs_count=i.tweenjs_count?i.tweenjs_count+1:1);var r=e._tweenTail;r?(e._tweenTail=r._next=t,t._prev=r):e._tweenHead=e._tweenTail=t,e._inited||(Xt.addEventListener("tick",e),e._inited=!0)}else if(n&&!t._paused){i&&i.tweenjs_count--;var o=t._next,a=t._prev;o?o._prev=a:e._tweenTail=a,a?a._next=o:e._tweenHead=o,t._next=t._prev=null}}}],(r=[{key:"wait",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t>0&&this._addStep(+t,this._stepTail.props,null,e),this}},{key:"to",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kn;e<0&&(e=0);var i=this._addStep(+e,null,n);return this._appendProps(t,i),this}},{key:"label",value:function(t){return this.addLabel(t,this.duration),this}},{key:"call",value:function(t,e,n){return this._addAction(n||this.target,t,e||[this])}},{key:"set",value:function(t,e){return this._addAction(e||this.target,this._set,[t])}},{key:"play",value:function(t){return this._addAction(t||this,this._set,[{paused:!1}])}},{key:"pause",value:function(t){return this._addAction(t||this,this._set,[{paused:!1}])}},{key:"clone",value:function(){throw"Tween can not be cloned."}},{key:"_addPlugin",value:function(t){var e=this._pluginIds||(this._pluginIds={}),n=t.id;if(n&&!e[n]){e[n]=!0;for(var i=this._plugins||(this._plugins=[]),r=t.priority||0,o=0,a=i.length;o<a;o++)if(r<i[o].priority)return void i.splice(o,0,t);i.push(t)}}},{key:"_updatePosition",value:function(t,e){var n=this._stepHead.next,i=this.position,r=this.duration;if(this.target&&n){for(var o=n.next;o&&o.t<=i;)o=(n=n.next).next;var a=e?0===r?1:i/r:(i-n.t)/n.d;this._updateTargetProps(n,a,e)}this._stepPosition=n?i-n.t:0}},{key:"_updateTargetProps",value:function(t,n,i){if(!(this.passive=!!t.passive)){var r,o,a,s,l=t.prev.props,u=t.props;(s=t.ease)&&(n=s(n,0,1,1));var c=this._plugins;t:for(var h in l){if(r=(o=l[h])!==(a=u[h])&&"number"==typeof o?o+(a-o)*n:n>=1?a:o,c)for(var f=0,d=c.length;f<d;f++){var v=c[f].change(this,t,h,r,n,i);if(v===e.IGNORE)continue t;void 0!==v&&(r=v)}this.target[h]=r}}}},{key:"_runActionsRange",value:function(t,e,n,i){var r=t>e,o=r?this._actionTail:this._actionHead,a=e,s=t;r&&(a=t,s=e);for(var l=this.position;o;){var u=o.t;if((u===e||u>
1s&&u<a||i&&u===t)&&(o.funct.apply(o.scope,o.params),l!==this.position))return!0;o=r?o.prev:o.next}}},{key:"_appendProps",value:function(t,n,i){var r,o,a,s,l,u=this._stepHead.props,c=this.target,h=e._plugins,f=n.prev,d=f.props,v=n.props||(n.props=this._cloneProps(d)),p={};for(r in t)if(t.hasOwnProperty(r)&&(p[r]=v[r]=t[r],void 0===u[r])){if(s=void 0,h)for(o=h.length-1;o>=0;o--)if(void 0!==(a=h[o].init(this,r,s))&&(s=a),s===e.IGNORE){(ignored=ignored||{})[r]=!0,delete v[r],delete p[r];break}s!==e.IGNORE&&(void 0===s&&(s=c[r]),d[r]=void 0===s?null:s)}for(r in p){a=t[r];for(var y=void 0,m=f;(y=m)&&(m=y.prev);)if(m.props!==y.props){if(void 0!==m.props[r])break;m.props[r]=d[r]}}if(i&&(h=this._plugins))for(o=h.length-1;o>=0;o--)h[o].step(this,n,p);(l=this._injected)&&(this._injected=null,this._appendProps(l,n,!1))}},{key:"_injectProp",value:function(t,e){(this._injected||(this._injected={}))[t]=e}},{key:"_addStep",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new Gn(this._stepTail,this.duration,t,e,n,i);return this.duration+=t,this._stepTail=this._stepTail.next=r}},{key:"_addAction",value:function(t,e,n){var i=new Bn(this._actionTail,this.duration,t,e,n);return this._actionTail?this._actionTail.next=i:this._actionHead=i,this._actionTail=i,this}},{key:"_set",value:function(t){for(var e in t)this[e]=t[e]}},{key:"_cloneProps",value:function(t){var e={};for(var n in t)e[n]=t[n];return e}}])&&Ln(n.prototype,r),o&&Ln(n,o),e}(wn),Fn=Dn.prototype;Fn.w=Fn.wait,Fn.t=Fn.to,Fn.c=Fn.call,Fn.s=Fn.set,Dn.IGNORE={},Dn._tweens=[],Dn._plugins=null,Dn._tweenHead=null,Dn._tweenTail=null;var Gn=function t(e,n,i,r,o,a){An(this,t),this.next=null,this.prev=e,this.t=n,this.d=i,this.props=r,this.ease=o,this.passive=a,this.index=e?e.index+1:0},Bn=function t(e,n,i,r,o){An(this,t),this.next=null,this.d=0,this.prev=e,this.t=n,this.scope=i,this.funct=r,this.params=o};function Hn(t){return(Hn="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)}function Nn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Vn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Yn(t,e){return!e||"object"!==Hn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wn(t){return(Wn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function zn(t,e){return(zn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var qn=function(t){function e(){var t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Yn(this,Wn(e).call(this,i))).tweens=[],i.tweens)&&(n=t).addTween.apply(n,Nn(i.tweens));return i.labels&&(t.labels=i.labels),t._init(i),t}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zn(t,e)}(e,t),n=e,(i=[{key:"addTween",value:function(){var t=arguments.length;if(1===t){var e=arguments.length<=0?void 0:arguments[0];this.tweens.push(e),e._parent=this,e.paused=!0;var n=e.duration;return e.loop>0&&(n*=e.loop+1),n>this.duration&&(this.duration=n),this.rawPosition>=0&&e.setPosition(this.rawPosition),e}if(t>1){for(var i=0;i<t;i++)this.addTween(i<0||arguments.length<=i?void 0:arguments[i]);return t-1<0||arguments.length<=t-1?void 0:arguments[t-1]}return null}},{key:"removeTween",value:function(){var t=arguments.length;if(1===t){for(var e=this.tweens,n=arguments.length<=0?void 0:arguments[0],i=e.length;i--;)if(e[i]===n)return e.splice(i,1),n._parent=null,n.duration>=this.duration&&this.updateDuration(),!0;return!1}if(t>1){for(var r=!0,o=0;o<t;o++)r=r&&this.removeTween(o<0||arguments.length<=o?void 0:arguments[o]);return r}return!0}},{key:"updateDuration",value:function(){this.duration=0;for(var t=0,e=this.tweens.length;t<e;t++){var n=this.tweens[t],i=n.duration;n.loop>0&&(i*=n.loop+1),i>this.duration&&(this.duration=i)}}},{key:"clone",value:function(){throw"Timeline can not be cloned."}},{key:"_updatePosition",value:function(t,e){for(var n=this.position,i=0,r=this.tweens.length;i<r;i++)this.tweens[i].setPosition(n,!0,t)}},{key:"_runActionsRange",value:function(t,e,n,i){for(var r=this.position,o=0,a=this.tweens.length;o<a;o++)if(this.tweens[o]._runActions(t,e,n,i),r!==this.position)return!0}}
1])&&Vn(n.prototype,i),r&&Vn(n,r),e}(wn);function Xn(t){return(Xn="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)}function Un(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Qn(t,e,n){return e&&Kn(t.prototype,e),n&&Kn(t,n),t}function Jn(t,e,n){return(Jn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Zn(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function Zn(t){return(Zn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $n(t,e){return($n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ti(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var ei=function(t){function e(t){var n;return Un(this,e),n=function(t,e){return!e||"object"!==Xn(e)&&"function"!=typeof e?ti(t):e}(this,Zn(e).call(this)),!e.inited&&e.init(),n.mode=null!=t.mode?t.mode:e.INDEPENDENT,n.startPosition=null!=t.startPosition?t.startPosition:0,"number"==typeof t.loop?n.loop=t.loop:!1===t.loop?n.loop=0:n.loop=-1,n.currentFrame=0,n.timeline=new qn(Object.assign({useTicks:!0,paused:!0},t)),n.paused=null!=t.paused&&t.paused,n.actionsEnabled=!0,n.autoReset=!0,n.frameBounds=n.frameBounds||t.frameBounds,n.framerate=null,n._synchOffset=0,n._rawPosition=-1,n._t=0,n._managed={},n._bound_resolveState=n._resolveState.bind(ti(ti(n))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$n(t,e)}(e,t),Qn(e,[{key:"isVisible",value:function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)}},{key:"draw",value:function(t,n){return!!this.drawCache(t,n)||(this._updateState(),Jn(Zn(e.prototype),"draw",this).call(this,t,n),!0)}},{key:"play",value:function(){this.paused=!1}},{key:"stop",value:function(){this.paused=!0}},{key:"gotoAndPlay",value:function(t){this.play(),this._goto(t)}},{key:"gotoAndStop",value:function(t){this.stop(),this._goto(t)}},{key:"advance",value:function(t){if(this.mode===e.INDEPENDENT){for(var n=this,i=n.framerate;(n=n.parent)&&null===i;)n.mode===e.INDEPENDENT&&(i=n._framerate);if(this._framerate=i,!this.paused){var r=null!==i&&-1!==i&&null!==t?t/(1e3/i)+this._t:1,o=0|r;for(this._t=r-o;o--;)this._updateTimeline(this._rawPosition+1,!1)}}}},{key:"clone",value:function(){throw"MovieClip cannot be cloned."}},{key:"_updateState",value:function(){-1!==this._rawPosition&&this.mode===e.INDEPENDENT||this._updateTimeline(-1)}},{key:"_tick",value:function(t){this.advance(t&&t.delta),Jn(Zn(e.prototype),"_tick",this).call(this,t)}},{key:"_goto",value:function(t){var e=this.timeline.resolve(t);null!=e&&(this._t=0,this._updateTimeline(e,!0))}},{key:"_reset",value:function(){this._rawPosition=-1,this._t=this.currentFrame=0,this.paused=!1}},{key:"_updateTimeline",value:function(t,n){var i=this.mode!==e.INDEPENDENT,r=this.timeline;i&&(t=this.startPosition+(this.mode===e.SINGLE_FRAME?0:this._synchOffset)),t<1&&(t=0),(this._rawPosition!==t||i)&&(this._rawPosition=t,r.loop=this.loop,r.setPosition(t,i||!this.actionsEnabled,n,this._bound_resolveState))}},{key:"_renderFirstFrame",value:function(){var t=this.timeline,e=t.rawPosition;t.setPosition(0,!0,!0,this._bound_resolveState),t.rawPosition=e}},{key:"_resolveState",value:function(){var t=this.timeline;for(var e in this.currentFrame=t.position,this._managed)this._managed[e]=1;var n=t.tweens,i=!0,r=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value,u=l.target;if(u!==this&&!l.passive){var c=l._stepPosition;u instanceof _e?this._addManagedChild(u,c):this._setState(u.state,c)}}}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}for(var h=this.children,f=h.length-1;f>=0;f--){var d=h[f].id;1===this._managed[d]&&(this.removeChildAt(f),delete this._managed[d])}}},{key:"_setState",value:function(t,e){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n],r=i.t,o=i.p;for(var a in o)r[a]=o[a];this._addManagedChild(r,e)}}},{key:"_addManagedChild",value:function(t,n){t._off||(this.addChildAt(t,0),t instanceof e&&(t._synchOffset=n,t.mode===e.INDEPENDENT&&t.autoReset&&!this._managed[t.id]&&t._reset()),this._managed[t.id]=2)}},{key:"_getBounds",value:function(t,n){var i=this.getBounds();return!i&&this.frameBounds&&(i=this._rectangle.copy(this.frameBounds[this.currentFrame])),i?this._transformBounds(i,t,n):Jn(Zn(e.prototype),"_getBounds",this).call(this,t,n)}},{key:"labels",get:function(){return this.timeline.labels}},{key:"currentLabel",get:function(){return this.timeline.currentLabel}},{key:"duration",get:function(){return this.timeline.duration}},{key:"totalFrames",get:function(){return this.duration}}],[{key:"init",value:function(){e.inited||(ni.install(),e.inited=!0)}}]),e}(Te);ei.INDEPENDENT="independent",ei.SINGLE_FRAME="single",ei.SYNCHED="synched",ei.inited=!1;var ni=function(){function t(){throw Un(this,t),"MovieClipPlugin cannot be instantiated."}return Qn(t,null,[{key:"install",value:function(){Dn.installPlugin(t)}},{key:"init",value:function(t,e,n){return n}},{key:"tween",value:function(t,e,n,i,r,o,a,s){return t.target instanceof ei?1===o?r[e]:i[e]:n}}]),t}();ni.priority=100;function ii(t){return(ii="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)}function ri(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function oi(t,e){return!e||"object"!==ii(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
1function ai(t){return(ai=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function si(t,e){return(si=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var li=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=oi(this,ai(e).call(this))).complete=!0,n.framerate=0,n._animations=null,n._frames=null,n._images=null,n._data=null,n._loadCount=0,n._frameHeight=0,n._frameWidth=0,n._numFrames=0,n._regX=0,n._regY=0,n._spacing=0,n._margin=0,n._parseData(t),n}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&si(t,e)}(e,t),n=e,(i=[{key:"getNumFrames",value:function(t){if(null==t)return this._frames?this._frames.length:this._numFrames||0;var e=this._data[t];return null==e?0:e.frames.length}},{key:"getAnimation",value:function(t){return this._data[t]}},{key:"getFrame",value:function(t){var e;return this._frames&&(e=this._frames[t])?e:null}},{key:"getFrameBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ae,n=this.getFrame(t);return n?e.setValues(-n.regX,-n.regY,n.rect.width,n.rect.height):null}},{key:"toString",value:function(){return"[".concat(this.constructor.name,"]")}},{key:"clone",value:function(){throw"SpriteSheet cannot be cloned."}},{key:"_parseData",value:function(t){var e=this;if(null!=t){if(this.framerate=t.framerate||0,t.images){var n=!0,i=!1,r=void 0;try{for(var o,a=function(){var t=o.value,n=e._images=[],i=void 0;"string"==typeof t&&(i=t,(t=document.createElement("img")).src=i),n.push(t),t.getContext||t.naturalWidth||(e._loadCount++,e.complete=!1,t.onload=function(){return e._handleImageLoad(i)},t.onerror=function(){return e._handleImageError(i)})},s=t.images[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)a()}catch(t){i=!0,r=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw r}}}if(null!=t.frames)if(Array.isArray(t.frames)){this._frames=[];var l=!0,u=!1,c=void 0;try{for(var h,f=t.frames[Symbol.iterator]();!(l=(h=f.next()).done);l=!0){var d=h.value;this._frames.push({image:this._images[d[4]?d[4]:0],rect:new ae(d[0],d[1],d[2],d[3]),regX:d[5]||0,regY:d[6]||0})}}catch(t){u=!0,c=t}finally{try{l||null==f.return||f.return()}finally{if(u)throw c}}}else{var v=t.frames;this._frameWidth=v.width,this._frameHeight=v.height,this._regX=v.regX||0,this._regY=v.regY||0,this._spacing=v.spacing||0,this._margin=v.margin||0,this._numFrames=v.count,0===this._loadCount&&this._calculateFrames()}if(this._animations=[],null!=t.animations){this._data={};var p=t.animations;for(var y in p){var m={name:y},g=p[y],b=void 0;if("number"==typeof g)b=m.frames=[g];else if(Array.isArray(g))if(1===g.length)m.frames=[g[0]];else{m.speed=g[3],m.next=g[2],b=m.frames=[];for(var _=g[0];_<=g[1];_++)b.push(_)}else{m.speed=g.speed,m.next=g.next;var w=g.frames;b=m.frames="number"==typeof w?[w]:w.slice(0)}!0!==m.next&&void 0!==m.next||(m.next=y),(!1===m.next||b.length<2&&m.next===y)&&(m.next=null),m.speed||(m.speed=1),this._animations.push(y),this._data[y]=m}}}}},{key:"_handleImageLoad",value:function(t){0==--this._loadCount&&(this._calculateFrames(),this.complete=!0,this.dispatchEvent("complete"))}},{key:"_handleImageError",value:function(t){var e=new Mt("error");e.src=t,this.dispatchEvent(e),0==--this._loadCount&&this.dispatchEvent("complete")}},{key:"_calculateFrames",value:function(){if(!this._frames&&0!==this._frameWidth){this._frames=[];var t=this._numFrames||1e5,e=0,n=this._frameWidth,i=this._frameHeight,r=this._spacing,o=this._margin;t:for(var a=0,s=this._images,l=s.length;a<l;a++)for(var u=s[a],c=u.width||u.naturalWidth,h=u.height||u.naturalHeight,f=o;f<=h-o-i;){for(var d=o;d<=c-o-n;){if(e>=t)break t;e++,this._frames.push({image:u,rect:new ae(d,f,n,i),regX:this._regX,regY:this._regY}),d+=n+r}f+=i+r}this._numFrames=e}}},{key:"animations",get:function(){return this._animations.slice()}}
1])&&ri(n.prototype,i),r&&ri(n,r),e}(Gt);function ui(t){return(ui="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)}function ci(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function hi(t,e){return!e||"object"!==ui(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fi(t,e,n){return(fi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=di(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function di(t){return(di=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vi(t,e){return(vi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var pi=function(t){function e(t,n,i){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=hi(this,di(e).call(this))).text=t,r.font=n,r.color=i,r.textAlign="left",r.textBaseline="top",r.maxWidth=null,r.outline=0,r.lineHeight=0,r.lineWidth=null,r}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vi(t,e)}(e,t),n=e,(i=[{key:"isVisible",value:function(){var t=this.cacheCanvas||null!=this.text&&""!==this.text;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)}},{key:"draw",value:function(t,n){if(fi(di(e.prototype),"draw",this).call(this,t,n))return!0;var i=this.color||"#000";return this.outline?(t.strokeStyle=i,t.lineWidth=1*this.outline):t.fillStyle=i,this._drawText(this._prepContext(t)),!0}},{key:"getMeasuredWidth",value:function(){return this._getMeasuredWidth(this.text)}},{key:"getMeasuredLineHeight",value:function(){return 1.2*this._getMeasuredWidth("M")}},{key:"getMeasuredHeight",value:function(){return this._drawText(null,{}).height}},{key:"getBounds",value:function(){var t=fi(di(e.prototype),"getBounds",this).call(this);if(t)return t;if(null==this.text||""===this.text)return null;var n=this._drawText(null,{}),i=this.maxWidth&&this.maxWidth<n.width?this.maxWidth:n.width,r=i*e.H_OFFSETS[this.textAlign||"left"],o=(this.lineHeight||this.getMeasuredLineHeight())*e.V_OFFSETS[this.textBaseline||"top"];return this._rectangle.setValues(r,o,i,n.height)}},{key:"getMetrics",value:function(){var t={lines:[]};return t.lineHeight=this.lineHeight||this.getMeasuredLineHeight(),t.vOffset=t.lineHeight*e.V_OFFSETS[this.textBaseline||"top"],this._drawText(null,t,t.lines)}},{key:"clone",value:function(){return this._cloneProps(new e(this.text,this.font,this.color))}},{key:"toString",value:function(){return"[".concat(this.constructor.name," (text=").concat(this.text.length>20?"".concat(this.text.substr(0,17),"..."):this.text,")]")}},{key:"_cloneProps",value:function(t){return fi(di(e.prototype),"_cloneProps",this).call(this,t),t.textAlign=this.textAlign,t.textBaseline=this.textBaseline,t.maxWidth=this.maxWidth,t.outline=this.outline,t.lineHeight=this.lineHeight,t.lineWidth=this.lineWidth,t}},{key:"_prepContext",value:function(t){return t.font=this.font||"10px sans-serif",t.textAlign=this.textAlign||"left",t.textBaseline=this.textBaseline||"top",t.lineJoin="miter",t.miterLimit=2.5,t}},{key:"_drawText",value:function(t,n,i){var r=!!t;r||((t=e._ctx).save(),this._prepContext(t));var o=this.lineHeight||this.getMeasuredLineHeight(),a=0,s=0,l=String(this.text).split(/(?:\r\n|\r|\n)/),u=!0,c=!1,h=void 0;try{for(var f,d=l[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var v=f.value,p=null;if(null!=this.lineWidth&&(p=t.measureText(v).width)>this.lineWidth){var y=v.split(/(\s)/);v=y[0],p=t.measureText(v).width;for(var m=y.length,g=1;g<m;g+=2){var b=t.measureText(y[g]+y[g+1]).width;p+b>this.lineWidth?(r&&this._drawTextLine(t,v,s*o),i&&i.push(v),p>a&&(a=p),v=y[g+1],p=t.measureText(v).width,s++):(v+=y[g]+y[g+1],p+=b)}}r&&this._drawTextLine(t,v,s*o),i&&i.push(v),n&&null==p&&(p=t.measureText(v).width),p>
1a&&(a=p),s++}}catch(t){c=!0,h=t}finally{try{u||null==d.return||d.return()}finally{if(c)throw h}}return n&&(n.width=a,n.height=s*o),r||t.restore(),n}},{key:"_drawTextLine",value:function(t,e,n){this.outline?t.strokeText(e,0,n,this.maxWidth||65535):t.fillText(e,0,n,this.maxWidth||65535)}},{key:"_getMeasuredWidth",value:function(t){var n=e._ctx;n.save();var i=this._prepContext(n).measureText(t).width;return n.restore(),i}}])&&ci(n.prototype,i),r&&ci(n,r),e}(_e);pi.H_OFFSETS={start:0,left:0,center:-.5,end:-1,right:-1},pi.V_OFFSETS={top:0,hanging:-.01,middle:-.4,alphabetic:-.8,ideographic:-.85,bottom:-1},pi._ctx=Pe().getContext("2d");function yi(t){return(yi="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)}function mi(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function gi(t,e){return!e||"object"!==yi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bi(t){return(bi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _i(t,e){return(_i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var wi=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=gi(this,bi(e).call(this)))._blurX=n,t._blurXTable=[],t._lastBlurX=null,t._blurY=i,t._blurYTable=[],t._lastBlurY=null,t._quality=isNaN(r)||r<1?1:r,t._lastQuality=null,t.FRAG_SHADER_TEMPLATE="\n\t\t\tuniform float xWeight[{{blurX}}];\n\t\t\tuniform float yWeight[{{blurY}}];\n\t\t\tuniform vec2 textureOffset;\n\t\t\tvoid main (void) {\n\t\t\t\tvec4 color = vec4(0.0);\n\n\t\t\t\tfloat xAdj = ({{blurX}}.0-1.0)/2.0;\n\t\t\t\tfloat yAdj = ({{blurY}}.0-1.0)/2.0;\n\t\t\t\tvec2 sampleOffset;\n\n\t\t\t\tfor(int i=0; i<{{blurX}}; i++) {\n\t\t\t\t\tfor(int j=0; j<{{blurY}}; j++) {\n\t\t\t\t\t\tsampleOffset = vRenderCoord + (textureOffset * vec2(float(i)-xAdj, float(j)-yAdj));\n\t\t\t\t\t\tcolor += texture2D(uSampler, sampleOffset) * (xWeight[i] * yWeight[j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgl_FragColor = color.rgba;\n\t\t\t}\n\t\t",t}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_i(t,e)}(e,t),n=e,(i=[{key:"shaderParamSetup",value:function(t,e,n){t.uniform1fv(t.getUniformLocation(n,"xWeight"),this._blurXTable),t.uniform1fv(t.getUniformLocation(n,"yWeight"),this._blurYTable),t.uniform2f(t.getUniformLocation(n,"textureOffset"),2/(e._viewportWidth*this._quality),2/(e._viewportHeight*this._quality))}},{key:"getBounds",value:function(t){var e=0|this.blurX,n=0|this.blurY;if(e<=0&&n<=0)return t;var i=Math.pow(this.quality,.2);return(t||new ae).pad(n*i+1,e*i+1,n*i+1,e*i+1)}},{key:"clone",value:function(){return new e(this.blurX,this.blurY,this.quality)}},{key:"_updateShader",value:function(){var t=this.FRAG_SHADER_TEMPLATE;t=(t=t.replace(/{{blurX}}/g,this._blurXTable.length.toFixed(0))).replace(/{{blurY}}/g,this._blurYTable.length.toFixed(0)),this.FRAG_SHADER_BODY=t}},{key:"_getTable",value:function(t){if(t<=1)return[1];for(var e=[],n=Math.ceil(2*t),i=(n+=n%2?0:1)/2|0,r=-i;r<=i;r++){var o=r/i*4.2;e.push(1/Math.sqrt(2*Math.PI)*Math.pow(Math.E,-Math.pow(o,2)/4))}var a=e.reduce((function(t,e){return t+e}),0);return e.map((function(t){return t/a}))}},{key:"_applyFilter",value:function(t){var n=this._blurX>>1;if(isNaN(n)||n<0)return!1;var i=this._blurY>>1;if(isNaN(i)||i<0)return!1;if(0===n&&0===i)return!1;
1var r=this.quality;(isNaN(r)||r<1)&&(r=1),(r|=0)>3&&(r=3),r<1&&(r=1);var o=t.data,a=0,s=0,l=0,u=0,c=0,h=0,f=0,d=0,v=0,p=0,y=0,m=0,g=0,b=0,_=0,w=n+n+1|0,k=i+i+1|0,S=0|t.width,x=0|t.height,E=S-1|0,C=x-1|0,O=n+1|0,T=i+1|0,P={r:0,b:0,g:0,a:0},j=P;for(l=1;l<w;l++)j=j.n={r:0,b:0,g:0,a:0};j.n=P;var A={r:0,b:0,g:0,a:0},L=A;for(l=1;l<k;l++)L=L.n={r:0,b:0,g:0,a:0};L.n=A;for(var I=null,R=0|e.MUL_TABLE[n],M=0|e.SHG_TABLE[n],D=0|e.MUL_TABLE[i],F=0|e.SHG_TABLE[i];r-- >0;){f=h=0;var G=R,B=M;for(s=x;--s>-1;){for(d=O*(m=o[0|h]),v=O*(g=o[h+1|0]),p=O*(b=o[h+2|0]),y=O*(_=o[h+3|0]),j=P,l=O;--l>-1;)j.r=m,j.g=g,j.b=b,j.a=_,j=j.n;for(l=1;l<O;l++)u=h+((E<l?E:l)<<2)|0,d+=j.r=o[u],v+=j.g=o[u+1],p+=j.b=o[u+2],y+=j.a=o[u+3],j=j.n;for(I=P,a=0;a<S;a++)o[h++]=d*G>>>B,o[h++]=v*G>>>B,o[h++]=p*G>>>B,o[h++]=y*G>>>B,u=f+((u=a+n+1)<E?u:E)<<2,d-=I.r-(I.r=o[u]),v-=I.g-(I.g=o[u+1]),p-=I.b-(I.b=o[u+2]),y-=I.a-(I.a=o[u+3]),I=I.n;f+=S}for(G=D,B=F,a=0;a<S;a++){for(d=T*(m=o[h=a<<2|0])|0,v=T*(g=o[h+1|0])|0,p=T*(b=o[h+2|0])|0,y=T*(_=o[h+3|0])|0,L=A,l=0;l<T;l++)L.r=m,L.g=g,L.b=b,L.a=_,L=L.n;for(c=S,l=1;l<=i;l++)h=c+a<<2,d+=L.r=o[h],v+=L.g=o[h+1],p+=L.b=o[h+2],y+=L.a=o[h+3],L=L.n,l<C&&(c+=S);if(h=a,I=A,r>0)for(s=0;s<x;s++)o[3+(u=h<<2)]=_=y*G>>>B,_>0?(o[u]=d*G>>>B,o[u+1]=v*G>>>B,o[u+2]=p*G>>>B):o[u]=o[u+1]=o[u+2]=0,u=a+((u=s+T)<C?u:C)*S<<2,d-=I.r-(I.r=o[u]),v-=I.g-(I.g=o[u+1]),p-=I.b-(I.b=o[u+2]),y-=I.a-(I.a=o[u+3]),I=I.n,h+=S;else for(s=0;s<x;s++)o[3+(u=h<<2)]=_=y*G>>>B,_>0?(_=255/_,o[u]=(d*G>>>B)*_,o[u+1]=(v*G>>>B)*_,o[u+2]=(p*G>>>B)*_):o[u]=o[u+1]=o[u+2]=0,u=a+((u=s+T)<C?u:C)*S<<2,d-=I.r-(I.r=o[u]),v-=I.g-(I.g=o[u+1]),p-=I.b-(I.b=o[u+2]),y-=I.a-(I.a=o[u+3]),I=I.n,h+=S}}return!0}},{key:"blurX",get:function(){return this._blurX},set:function(t){(isNaN(t)||t<0)&&(t=0),this._blurX=t}},{key:"blurY",get:function(){return this._blurY},set:function(t){(isNaN(t)||t<0)&&(t=0),this._blurY=t}},{key:"quality",get:function(){return 0|this._quality},set:function(t){(isNaN(t)||t<0)&&(t=0),this._quality=t}},{key:"_buildShader",get:function(){var t=this._lastBlurX!==this._blurX,e=this._lastBlurY!==this._blurY,n=this._lastQuality!==this._quality;return t||e||n?((t||n)&&(this._blurXTable=this._getTable(this._blurX*this._quality)),(e||n)&&(this._blurYTable=this._getTable(this._blurY*this._quality)),this._updateShader(),this._lastBlurX=this._blurX,this._lastBlurY=this._blurY,void(this._lastQuality=this._quality)):this._compiledShader}},{key:"_builtShader",set:function(t){this._compiledShader=t}}])&&mi(n.prototype,i),r&&mi(n,r),e}(le);wi.MUL_TABLE=[1,171,205,293,57,373,79,137,241,27,391,357,41,19,283,265,497,469,443,421,25,191,365,349,335,161,155,149,9,278,269,261,505,245,475,231,449,437,213,415,405,395,193,377,369,361,353,345,169,331,325,319,313,307,301,37,145,285,281,69,271,267,263,259,509,501,493,243,479,118,465,459,113,446,55,435,429,423,209,413,51,403,199,393,97,3,379,375,371,367,363,359,355,351,347,43,85,337,333,165,327,323,5,317,157,311,77,305,303,75,297,294,73,289,287,71,141,279,277,275,68,135,67,133,33,262,260,129,511,507,503,499,495,491,61,121,481,477,237,235,467,232,115,457,227,451,7,445,221,439,218,433,215,427,425,211,419,417,207,411,409,203,202,401,399,396,197,49,389,387,385,383,95,189,47,187,93,185,23,183,91,181,45,179,89,177,11,175,87,173,345,343,341,339,337,21,167,83,331,329,327,163,81,323,321,319,159,79,315,313,39,155,309,307,153,305,303,151,75,299,149,37,295,147,73,291,145,289,287,143,285,71,141,281,35,279,139,69,275,137,273,17,271,135,269,267,133,265,33,263,131,261,130,259,129,257,1],wi.SHG_TABLE=[0,9,10,11,9,12,10,11,12,9,13,13,10,9,13,13,14,14,14,14,10,13,14,14,14,13,13,13,9,14,14,14,15,14,15,14,15,15,14,15,15,15,14,15,15,15,15,15,14,15,15,15,15,15,15,12,14,15,15,13,15,15,15,15,16,16,16,15,16,14,16,16,14,16,13,16,16,16,15,16,13,16,15,16,14,9,16,16,16,16,16,16,16,16,16,13,14,16,16,15,16,16,10,16,15,16,14,16,16,14,16,16,14,16,16,14,15,16,16,16,14,15,14,15,13,16,16,15,17,17,17,17,17,17,14,15,17,17,16,16,17,16,15,17,16,17,11,17,16,17,16,17,16,17,17,16,17,17,16,17,17,16,16,17,17,17,16,14,17,17,17,17,15,16,14,16,15,16,13,16,15,16,14,16,15,16,12,16,15,16,17,17,17,17,17,13,16,15,17,17,17,16,15,17,17,17,16,15,17,17,14,16,17,17,16,17,17,16,15,17,16,14,17,16,15,17,16,17,17,16,17,15,16,17,14,17,16,15,17,16,17,13,17,16,17,17,16,17,14,17,16,17,16,17,16,17,9];function ki(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Si=function(){function t(e,n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.setColor(e,n,i,r)}var e,n,i;return e=t,(n=[{key:"setColor",value:function(t,e,n,i){return this.reset().adjustColor(t,e,n,i)}},{key:"reset",value:function(){return this.copy(t.IDENTITY_MATRIX)}}
1,{key:"adjustColor",value:function(t,e,n,i){return this.adjustBrightness(t).adjustContrast(e).adjustSaturation(n).adjustHue(i)}},{key:"adjustBrightness",value:function(t){return 0===t||isNaN(t)?this:(t=this._cleanValue(t,255),this._multiplyMatrix([1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1]),this)}},{key:"adjustContrast",value:function(e){return 0===e||isNaN(e)?this:(n=(e=this._cleanValue(e,100))<0?127+e/100*127:127*(n=0==(n=e%1)?t.DELTA_INDEX[e]:t.DELTA_INDEX[e<<0]*(1-n)+t.DELTA_INDEX[1+(e<<0)]*n)+127,this._multiplyMatrix([n/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1]),this);var n}},{key:"adjustSaturation",value:function(t){if(0===t||isNaN(t))return this;var e=1+((t=this._cleanValue(t,100))>0?3*t/100:t/100);return this._multiplyMatrix([.3086*(1-e)+e,.6094*(1-e),.082*(1-e),0,0,.3086*(1-e),.6094*(1-e)+e,.082*(1-e),0,0,.3086*(1-e),.6094*(1-e),.082*(1-e)+e,0,0,0,0,0,1,0,0,0,0,0,1]),this}},{key:"adjustHue",value:function(t){if(0===t||isNaN(t))return this;t=this._cleanValue(t,180)/180*Math.PI;var e=Math.cos(t),n=Math.sin(t);return this._multiplyMatrix([.213+.787*e+-.213*n,.715+-.715*e+-.715*n,.072+-.072*e+.928*n,0,0,.213+-.213*e+.143*n,.715+e*(1-.715)+.14*n,.072+-.072*e+-.283*n,0,0,.213+-.213*e+-.787*n,.715+-.715*e+.715*n,.072+.928*e+.072*n,0,0,0,0,0,1,0,0,0,0,0,1]),this}},{key:"concat",value:function(e){return(e=this._fixMatrix(e)).length!=t.LENGTH?this:(this._multiplyMatrix(e),this)}},{key:"clone",value:function(){return(new t).copy(this)}},{key:"toArray",value:function(){for(var e=[],n=t.LENGTH,i=0;i<n;i++)e[i]=this[i];return e}},{key:"copy",value:function(e){for(var n=t.LENGTH,i=0;i<n;i++)this[i]=e[i];return this}},{key:"toString",value:function(){return"[".concat(this.constructor.name,"]")}},{key:"_multiplyMatrix",value:function(t){for(var e=[],n=0;n<5;n++){for(var i=0;i<5;i++)e[i]=this[i+5*n];for(var r=0;r<5;r++){for(var o=0,a=0;a<5;a++)o+=t[r+5*a]*e[a];this[r+5*n]=o}}}},{key:"_cleanValue",value:function(t,e){return Math.min(e,Math.max(-e,t))}},{key:"_fixMatrix",value:function(e){return e instanceof t&&(e=e.toArray()),e.length<t.LENGTH?e=e.slice(0,e.length).concat(t.IDENTITY_MATRIX.slice(e.length,t.LENGTH)):e.length>t.LENGTH&&(e=e.slice(0,t.LENGTH)),e}}])&&ki(e.prototype,n),i&&ki(e,i),t}();Si.DELTA_INDEX=Object.freeze([0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10]),Si.IDENTITY_MATRIX=Object.freeze([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]),Si.LENGTH=25;function xi(t){return(xi="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)}function Ei(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ci(t,e){return!e||"object"!==xi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Oi(t){return(Oi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ti(t,e){return(Ti=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Pi=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Ci(this,Oi(e).call(this))).maxWidth=2048,t.maxHeight=2048,t.spriteSheet=null,t.scale=1,t.padding=1,t.timeSlice=.3,t.progress=-1,t.framerate=n,t._frames=[],t._animations={},t._data=null,t._nextFrameIndex=0,t._index=0,t._timerID=null,t._scale=1,t}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ti(t,e)}(e,t),n=e,(i=[{key:"addFrame",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(this._data)throw e.ERR_RUNNING;var a=n||t.bounds||t.nominalBounds||t.getBounds&&t.getBounds();return a?this._frames.push({source:t,sourceRect:a,scale:i,funct:r,data:o,index:this._frames.length,height:a.height*i})-1:null}},{key:"addAnimation",value:function(t,n,i,r){if(this._data)throw e.ERR_RUNNING;this._animations[t]={frames:n,next:i,speed:r}}},{key:"addMovieClip",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(this._data)throw e.ERR_RUNNING;var s=t.frameBounds,l=n||t.bounds||t.nominalBounds||t.getBounds&&t.getBounds();if(l||s){for(var u=this._frames.length,c=t.timeline.duration,h=0;h<c;h++){var f=s&&s[h]?s[h]:l;this.addFrame(t,f,i,this._setupMovieClipFrame,{i:h,f:r,d:o})}var d=t.timeline._labels,v=[];for(var p in d)v.push({index:d[p],label:p});if(v.length){v.sort((function(t,e){return t.index-e.index}));for(var y=0,m=v.length;y<m;
1y++){for(var g=v[y].label,b=u+v[y].index,_=u+(y===m-1?c:v[y+1].index),w=[],k=b;k<_;k++)w.push(k);a&&!(g=a(g,t,b,_))||this.addAnimation(g,w,!0)}}}}},{key:"build",value:function(){if(this._data)throw e.ERR_RUNNING;for(this._startBuild();this._drawNext(););return this._endBuild(),this.spriteSheet}},{key:"buildAsync",value:function(t){var n=this;if(this._data)throw e.ERR_RUNNING;this.timeSlice=t,this._startBuild(),this._timerID=setTimeout((function(){return n._run()}),50-50*Math.max(.01,Math.min(.99,this.timeSlice||.3)))}},{key:"stopAsync",value:function(){clearTimeout(this._timerID),this._data=null}},{key:"toString",value:function(){return"[".concat(this.constructor.name,"]")}},{key:"_startBuild",value:function(){var t=this.padding||0;this.progress=0,this.spriteSheet=null,this._index=0,this._scale=this.scale;var n=[];this._data={images:[],frames:n,framerate:this.framerate,animations:this._animations};var i=this._frames.slice();if(i.sort((function(t,e){return t.height<=e.height?-1:1})),i[i.length-1].height+2*t>this.maxHeight)throw e.ERR_DIMENSIONS;for(var r=0,o=0,a=0;i.length;){var s=this._fillRow(i,r,a,n,t);if(s.w>o&&(o=s.w),r+=s.h,!s.h||!i.length){var l=window.createjs&&createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");l.width=this._getSize(o,this.maxWidth),l.height=this._getSize(r,this.maxHeight),this._data.images[a]=l,s.h||(o=r=0,a++)}}}},{key:"_setupMovieClipFrame",value:function(t,e){var n=t.actionsEnabled;t.actionsEnabled=!1,t.gotoAndStop(e.i),t.actionsEnabled=n,e.f&&e.f(t,e.d,e.i)}},{key:"_getSize",value:function(t,e){for(var n=4;Math.pow(2,++n)<t;);return Math.min(e,Math.pow(2,n))}},{key:"_fillRow",value:function(t,n,i,r,o){for(var a=this.maxWidth,s=this.maxHeight-(n+=o),l=o,u=0,c=t.length-1;c>=0;c--){var h=t[c],f=this._scale*h.scale,d=h.sourceRect,v=h.source,p=Math.floor(f*d.x-o),y=Math.floor(f*d.y-o),m=Math.ceil(f*d.height+2*o),g=Math.ceil(f*d.width+2*o);if(g>a)throw e.ERR_DIMENSIONS;m>s||l+g>a||(h.img=i,h.rect=new ae(l,n,g,m),u=u||m,t.splice(c,1),r[h.index]=[l,n,g,m,i,Math.round(-p+f*v.regX-o),Math.round(-y+f*v.regY-o)],l+=g)}return{w:l,h:u}}},{key:"_endBuild",value:function(){this.spriteSheet=new li(this._data),this._data=null,this.progress=1,this.dispatchEvent("complete")}},{key:"_run",value:function(){for(var t=this,e=50*Math.max(.01,Math.min(.99,this.timeSlice||.3)),n=(new Date).getTime()+e,i=!1;n>(new Date).getTime();)if(!this._drawNext()){i=!0;break}i?this._endBuild():this._timerID=setTimeout((function(){return t._run()}),50-e);var r=this.progress=this._index/this._frames.length;if(this.hasEventListener("progress")){var o=new Mt("progress");o.progress=r,this.dispatchEvent(o)}}},{key:"_drawNext",value:function(){var t=this._frames[this._index],e=t.scale*this._scale,n=t.rect,i=t.sourceRect,r=this._data.images[t.img].getContext("2d");return t.funct&&t.funct(t.source,t.data),r.save(),r.beginPath(),r.rect(n.x,n.y,n.width,n.height),r.clip(),r.translate(Math.ceil(n.x-i.x*e),Math.ceil(n.y-i.y*e)),r.scale(e,e),t.source.draw(r),r.restore(),++this._index<this._frames.length}}])&&Ei(n.prototype,i),r&&Ei(n,r),e}(Gt);Pi.ERR_DIMENSIONS="frame dimensions exceed max spritesheet dimensions",Pi.ERR_RUNNING="a build is already running";Pe();function ji(t){return(ji="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)}function Ai(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Li(t,e){return!e||"object"!==ji(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ii(t){return(Ii=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ri(t,e){return(Ri=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}(function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=Li(this,Ii(e).call(this)))._stage=t,n}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ri(t,e)}(e,t),n=e,r=[{key:"dispProps",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i="\tP: ".concat(t.x.toFixed(2),"x").concat(t.y.toFixed(2),"\t"),r="\tR: ".concat(t.regX.toFixed(2),"x").concat(t.regY.toFixed(2),"\t");e._log(n,"".concat(t.toString(),"\t"),i,r)}},{key:"_log",value:function(){var t,n;e.alternateOutput?(t=e.alternateOutput).log.apply(t,arguments):(n=console).log.a
1pply(n,arguments)}}],(i=[{key:"log",value:function(t){t||(t=this._stage),e._log("Batches Per Draw: ".concat((t._batchID/t._drawID).toFixed(4))),this.logContextInfo(t._webGLContext),this.logDepth(t.children,""),this.logTextureFill(t)}},{key:"toggleGPUDraw",value:function(t,n){t||(t=this._stage),void 0===n&&(n=!!t._drawBuffers_),n&&t._drawBuffers_?(t._drawBuffers=t._drawBuffers_,t._drawBuffers_=void 0):(t._drawBuffers_=t._drawBuffers,t._drawBuffers=function(t){this.vocalDebug&&e._log("BlankDraw[".concat(this._drawID,":").concat(this._batchID,"] : ").concat(this.batchReason))})}},{key:"logDepth",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e._log;t||(t=this._stage.children);for(var r=t.length,o=0;o<r;o++){var a=t[o];i("".concat(n,"-"),a),a.children&&a.children.length&&this.logDepth(a.children,"|".concat(n),i)}}},{key:"logContextInfo",value:function(t){t||(t=this._stage._webGLContext);var n="\n\t\t\t== LOG:\n\n\t\t\tMax textures per draw: ".concat(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),"\n\n\t\t\tMax textures active: ").concat(t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS),"\n\n\t\t\t\n\n\t\t\tMax texture size: ").concat(t.getParameter(t.MAX_TEXTURE_SIZE)/2,"\n\n\t\t\tMax cache size: ").concat(t.getParameter(t.MAX_RENDERBUFFER_SIZE)/2,"\n\n\t\t\t\n\n\t\t\tMax attributes per vertex: ").concat(t.getParameter(t.MAX_VERTEX_ATTRIBS),"\n\n\t\t\tWebGL Version string: ").concat(t.getParameter(t.VERSION),"\n\n\t\t\t======\n\t\t");e._log(n)}},{key:"logTextureFill",value:function(t){t||(t=this._stage);var n=t._textureDictionary,i=t._batchTextureCount;e._log("".concat(textureMax,": ").concat(i));var r=[];for(var o in n){o.replace(window.location.origin,"");var a=n[o],s=!!a._lastActiveIndex&&a._lastActiveIndex===a._activeIndex;r.push({src:src,element:a,shifted:s}),a._lastActiveIndex=a._activeIndex}r.sort((function(e,n){return e.element._drawID===t._drawID?1:e.element._drawID<n.element._drawID?-1:0}));for(var l=r.length,u=0;u<l;u++){var c=r[u],h=c.element._drawID===t._drawID;e._log("[".concat(c.src,"] ").concat(h?"ACTIVE":"stale"," ").concat(c.shifted?"steady":"DRIFT"),c.element)}}}])&&Ai(n.prototype,i),r&&Ai(n,r),e}(Gt)).alternateOutput=null;var Mi,Di,Fi={galleryBreakpoint:"767px",cursorSelector:".magnific-cursor",cursorBallSelector:".magnific-cursor__ball",hasIconSelector:"has-magnific-icon",activeIconSelector:".magnific-cursor--active",activeIconClass:"magnific-cursor--active",iconSelector:".magnific-cursor__icon",navPrevIcon:'<i class="magnific-cursor__icon icon-chevron-left"></i>',navNextIcon:'<i class="magnific-cursor__icon icon-chevron-right"></i>',navThumbsIcon:'<i class="magnific-cursor__icon icon-grid"></i>',overlayNavSelector:".gallery-overlay-nav",navPrevSelector:".gallery-overlay-nav__prev",navNextSelector:".gallery-overlay-nav__next",navThumbsSelector:".gallery-overlay-nav__thumbs",galleryViewType:"standard"},Gi=function(t){return setTimeout(t)};var Bi=[],Hi=[],Ni=Promise.resolve(),Vi=Bi,Yi=function(){Mi=!1},Wi=function(){if(Vi.length){for(Di=Vi,Vi=Bi.length?Hi:Bi,Mi=!0;Di.length;)Di.shift()();Ni.then(Yi)}};function zi(t){(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&Mi?Ni.then(t):(Vi.push(t),1==Vi.length&&(document.hidden?setTimeout:requestAnimationFrame)(Wi))}function qi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xi(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Ui=o()(window),Ki=o()(document),Qi=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){qi(t,e,n[e])}))}return t}({},Fi,e),0!==o()(this.config.cursorSelector).length&&this.config.galleryOverlayNavEnabled&&(this.init(),"split"===this.config.galleryViewType?(this.viewEventBus=n.bus,this.viewEvents=n.events,this.viewEventBus.on(this.viewEvents.GALLERY_OVERLAY_ACTIVATE,this.doOverlayActivate,this),this.viewEventBus.on(this.viewEvents.GALLERY_OVERLAY_DESTROY,this.doOverlayDestroy,this)):(this.viewEventBus=n.bus,this.viewEvents=n.events,this.viewEventBus.on(this.viewEvents.GALLERY_OVERLAY_ACTIVATE,this.doOverlayActivate,this),this.viewEventBus.on(this.viewEvents.GALLERY_OVERLAY_DESTROY,this.doOverlayDestroy,this),this.initOverlay()))}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.settings={magic_cursor:null}}},{key:"initOverlay",value:function(){var t=this;Ki.ready((function(){return t.domReady()})),Ui.on("load",(function(){return t.windowLoad()})),Ui.on("load",(function(){})).themesmartresize((function(){return t.smartresize()}))}},{key:"domReady",value:function(){}},{key:"windowLoad",value:function(){}},{key:"smartresize",value:function(){}},{key:"doOverlayActivate",value:function(t){this.activate("gallery-overlay")}},{key:"doOverlayDestroy",value:function(t){this.destroy("gallery-overlay")}},{key:"setup_magic_cursor",value:function(){if(!this.settings.magic_cursor){var t=this.config,e={x:0,y:0},n={x:0,y:0},i=.25,r=!1;o()(t.cursorBallSelector).css({transform:"translate(-50%, -50%)"}),document.addEventListener("mousemove",(function(t){var n=window.pageYOffset||document.documentElement.scrollTop;e.x=t.pageX,e.y=t.pageY-n})),Xt.framerate=60,Xt.addEventListener("tick",(function(){r||(n.x+=(e.x-n.x)*i,n.y+=(e.y-n.y)*i,o()(t.cursorBallSelector).css({left:n.x,top:n.y}))})),o()(t.navPrevSelector).mouseenter((function(e){o()(t.cursorBallSelector).addClass(t.hasIconSelector).append(t.navPrevIcon)})),o()(t.navPrevSelector).mouseleave((function(e){o()(t.cursorBallSelector).removeClass(t.hasIconSelector),o()(t.iconSelector).remove()})),o()(t.navThumbsSelector).mouseenter((function(e){o()(t.cursorBallSelector).addClass(t.hasIconSelector).append(t.navThumbsIcon)})),o()(t.navThumbsSelector).mouseleave((function(e){o()(t.cursorBallSelector).removeClass(t.hasIconSelector),o()(t.iconSelector).remove()})),o()(t.navNextSelector).mouseenter((function(e){o()(t.cursorBallSelector).addClass(t.hasIconSelector).append(t.navNextIcon)})),o()(t.navNextSelector).mouseleave((function(e){o()(t.cursorBallSelector).removeClass(t.hasIconSelector),o()(t.iconSelector).remove()})),o()(".slider-wrap").on("mouseenter",t.activeIconSelector,(function(e){o()(t.cursorBallSelector).css({borderWidth:"1px",scale:2,opacity:1})})),o()(".slider-wrap").on("mouseleave",t.activeIconSelector,(function(e){o()(t.cursorBallSelector).css({borderWidth:"2px",scale:1,op
1acity:0})})),this.overlay_2(),this.settings.magic_cursor=!0}}},{key:"isMobileView",value:function(){var t=this.config;return!!Modernizr.mq("(max-width: "+t.galleryBreakpoint+")")}},{key:"activate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.config;switch(t){case"gallery-overlay":this.setup_magic_cursor(),o()(e.overlayNavSelector).attr("data-display-hidden",!1),o()(e.cursorSelector).attr("data-display-hidden",!1),o()(".slider-wrapper:not(.wp-block-blockgallery-thumbnail-thumbs)").addClass(e.activeIconClass)}}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.config;switch(t){case"gallery-overlay":o()(e.cursorBallSelector).removeClass(e.hasIconSelector),o()(e.iconSelector).remove(),o()(e.cursorBallSelector).css({borderWidth:"2px",scale:1,opacity:0}),o()(e.overlayNavSelector).attr("data-display-hidden",!0),o()(e.cursorSelector).attr("data-display-hidden",!0),o()(".slider-wrapper:not(.wp-block-blockgallery-thumbnail-thumbs)").removeClass(e.activeIconClass)}}},{key:"overlay_2",value:function(){var t,e,n,i,r,a,s,l,u,c,h=this,f=this.config,d=".slider-wrapper:not(.wp-block-blockgallery-thumbnail-thumbs) .blocks-gallery-item",v=o()(".gallery-overlay-nav").hasClass("with-thumb-nav")?"withThumbs":"withoutThumbs";o()(".video-play-icon").on("mousemove",(function(t){return o()(f.cursorBallSelector).removeClass(f.hasIconSelector),o()(f.iconSelector).remove(),!1})),o()(".has-caption .blockgallery--caption").on("mouseenter",(function(t){o()(t.currentTarget).addClass("enable-cursor-pointer")})),o()(".has-caption .blockgallery--caption").on("mousemove",(function(t){return o()(f.cursorBallSelector).removeClass(f.hasIconSelector),o()(f.iconSelector).remove(),!1})),o()(".slider-slide.has-caption .blockgallery--caption").on("click",(function(t){return!1})),o()(d).on("mousemove",(t=function(t){if(0===o()(t.currentTarget).closest(".slider-wrapper.magnific-cursor--active").length)return!0;h.icons_manager(t,"mousemove",v)},a=0,s=function(){n=!1,a=Date.now();var e=i,o=r;i=null,r=null,t.apply(e,o)},l=function(){Gi(s)},u=function(){if(i=e.that||this,r=arguments,!n){var t=e.delay;n=!0,e.unthrottle?s():(t&&!e.simple&&(t-=Date.now()-a),t<0&&(t=0),t||!e.read&&!e.write?setTimeout(c,t):c())}},c=function(){zi(l)},(e={delay:16,that:this})||(e={}),e.delay||(e.delay=200),e.write?l=s:e.read||(c=s),u._rbUnthrotteled=t,u)),o()(d).on("click",(function(t){if(0===o()(t.currentTarget).closest(".slider-wrapper.magnific-cursor--active").length)return!0;h.icons_manager(t,"click",v)}))}},{key:"icons_manager",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mousemove",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"withThumbs",i=this.config,r="",a=(window.pageYOffset||document.documentElement.scrollTop,null),s=null;switch(e){case"mousemove":case"click":s=o()(t.currentTarget).offset(),a=(a=(t.pageX-s.left)/o()(t.currentTarget).width()*100).toFixed(1),"withThumbs"===n?a>70?r="nextIcon":a<35?r="prevIcon":a>35&&a<70&&(r="thumbsIcon"):"withoutThumbs"===n&&(a>50?r="nextIcon":a<=50&&(r="prevIcon"))}switch(r){case"prevIcon":o()(i.cursorBallSelector).addClass(i.hasIconSelector),o()(".magnific-cursor__icon--wrap").html(i.navPrevIcon);break;case"thumbsIcon":o()(i.cursorBallSelector).addClass(i.hasIconSelector),o()(".magnific-cursor__icon--wrap").html(i.navThumbsIcon);break;case"nextIcon":o()(i.cursorBallSelector).addClass(i.hasIconSelector),o()(".magnific-cursor__icon--wrap").html(i.navNextIcon)}if("click"==e)switch(r){case"prevIcon":this.viewEventBus.emit(this.viewEvents.PREVIOUS_SLIDE,{slider:" previous slide"});break;case"thumbsIcon":o()(".gallery-overlay-nav__thumbs").trigger("click");break;case"nextIcon":this.viewEventBus.emit(this.viewEvents.NEXT_SLIDE,{slider:" next slide"})}}}])&&Xi(e.prototype,n),i&&Xi(e,i),t}(),Ji={headerBreakpoint:"992px",leftHeader:!1,galleryBreakpoint:"767px",galleryViewType:"standard",gallerySecondaryView:"none",galleryDefaultView:"slider",thumbsNavSelector:".gallery-overlay-nav__thumbs, .gallery-control__thumbs",masonryGallerySelector:".gallery-type-masonry",singleViewHashString:"ms-",thumbsViewHashString:"masonry"};function Zi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var tr=o()(window),er=o()(document),nr=function(){function t(e,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}
1)))),i.forEach((function(e){Zi(t,e,n[e])}))}return t}({},Ji,e),this.evBus=n.bus,this.events=n.events,"split"===this.config.galleryViewType&&"slider"===this.config.gallerySecondaryView&&(this.init(),er.ready((function(){return i.domReady()})),tr.on("load",(function(){return i.windowLoad()})),tr.on("load",(function(){})).themesmartresize((function(){return i.smartresize()})))}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.settings={lastActiveView:null}}},{key:"domReady",value:function(){var t=this,e=this.config;this.switchView(),o()(e.thumbsNavSelector).on("click",(function(e){t.switchView(!1,!0,"masonry")})),o()(e.masonryGallerySelector).on("click",".blocks-gallery-item",(function(e){e.preventDefault();var n=o()(e.currentTarget);n.hasClass("has-video")||t.switchView(!1,!0,"slider",{index:n.attr("data-index"),slideTo:!0})}))}},{key:"windowLoad",value:function(){}},{key:"smartresize",value:function(){this.switchView(!0)}},{key:"switchView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=this.config;switch(e||(n=t?this.isMobileView()?"stacked":this.settings.lastActiveView:this.isMobileView()?"stacked":it(r.singleViewHashString)?"slider":it(r.thumbsViewHashString)?"masonry":"slider"===r.galleryDefaultView?"slider":"masonry"),n){case"masonry":this.evBus.emit(this.events.SLIDER_DESTROY,{slider:"yes destroyed"}),this.evBus.emit(this.events.STACKED_DESTROY,{stacked:"yes destroyed"}),this.evBus.emit(this.events.GALLERY_OVERLAY_DESTROY,{"gallery overlay":"yes destroyed"}),this.evBus.emit(this.events.MASONRY_ACTIVATE,{masonry:"yes activated"});break;case"slider":this.evBus.emit(this.events.MASONRY_DESTROY,{masonry:"yes destroyed"}),this.evBus.emit(this.events.SLIDER_ACTIVATE,i),this.evBus.emit(this.events.GALLERY_OVERLAY_ACTIVATE,{"gallery overlay":"yes activated"});break;case"stacked":this.evBus.emit(this.events.MASONRY_DESTROY,{masonry:"yes destroyed"}),this.evBus.emit(this.events.SLIDER_DESTROY,{slider:"yes destroyed"}),this.evBus.emit(this.events.GALLERY_OVERLAY_DESTROY,{"gallery overlay":"yes destroyed"}),this.evBus.emit(this.events.STACKED_ACTIVATE,{stacked:"yes activated"})}"stacked"!==n&&(this.settings.lastActiveView=n)}},{key:"isMobileView",value:function(){var t=this.config;return!!Modernizr.mq("(max-width: "+t.galleryBreakpoint+")")}}])&&$i(e.prototype,n),i&&$i(e,i),t}();function ir(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var or=o()(window),ar=o()(document),sr=o()("html").hasClass("touch")?0:15,lr={sliderGridSelector:".wp-block-blockgallery-single-image",singleImageSelector:".wp-block-blockgallery-single-image",singleImageItemSelector:".blocks-gallery-item",headerBreakpoint:"992px",leftHeader:!1},ur=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){ir(t,e,n[e])}))}return t}({},lr,e),0!==o()(this.config.singleImageSelector).length&&(this.init(),ar.ready((function(){return n.domReady()})),or.on("load",(function(){return n.windowLoad()})),or.on("load",(function(){})).themesmartresize((function(){return n.smartresize()})))}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.images={},this.images=this.getImages(),this.setup_vars()}},{key:"domReady",value:function(){this.initSingleImage()}},{key:"windowLoad",value:function(){}},{key:"smartresize",value:function(){this.setup_vars(),this.resizeSlides()}},{key:"getImages",value:function(){var t=this.config,e={};return o()(t.singleImageItemSelector,t.singleImageSelector).each((function(t){e[o()(this).attr("data-id")]={width:o()(this).attr("data-width"),height:o()(this).attr("data-height"),ratio:o()(this).attr("data-aspect-ratio")}})),e}},{key:"setup_vars",value:function(){var t=this.config;this.windowWidth=parseFloat(window.innerWidth-sr),this.windowHeight=parseFloat(or.height()),this.galleryContainerWidth=parseFloat(o()(".entry__content").width()),this.galleryContainerHeight=parseFloat(o()(".site-inner").height()),this.galleryWidth=parseFloat(o()(t.sliderGridSelector).width()),this.siteContentPadding=parseInt(o()(".site-inner").css("padding-top"),10)+parseInt(o()(".site-inner").css("padding-bottom"),10),t.leftHeader&&"left"===this.getHeaderPosition()?this.siteHeaderHeight=0:this.siteHeaderHeight=parseFloat(o()(".site-header").height()),this.siteFooterHeight=parseFloat(o()(".site-footer").height()),this.adminBarHeight=this.adminbarHeight()}},{key:"adminbarHeight",value:function(){return nt()}},{key:"getHeaderPosition",value:function(){var t=this.config;
1return Modernizr.mq("(min-width: "+t.headerBreakpoint+")")?"left":"top"}},{key:"initSingleImage",value:function(){this.resizeSlides()}},{key:"resizeSlides",value:function(){var t=this.config,e=this;o()(t.singleImageItemSelector,t.singleImageSelector).each((function(t,n){e.resizeSlide(o()(n).find("img.blockgallery--attachment__image"),o()(n))})),o()(t.singleImageSelector).addClass("has-resized-images")}},{key:"resizeSlide",value:function(t,e){if(0!==t.length){var n,i,r,a,s,l,u,c,h,f,d,v,p,y=this.config,m=0,g=0,b=0,_=(o()(".site-header").css("position"),y.maxHeight),w=this.images[e.data("id")],k=e.find(".blockgallery--caption");1===k.length&&(g=k.actual("outerHeight",{includeMargin:!0}),g=parseFloat(g,10)),s=this.windowHeight,m=this.windowWidth,u=this.galleryContainerWidth,this.galleryContainerHeight,v=this.siteContentPadding,l=this.galleryWidth,c=this.siteHeaderHeight,h=this.siteFooterHeight,f=this.adminBarHeight,d=parseFloat(g+c+h+f+v,10),m>u&&(m=u),m>l&&(m=l),n=parseFloat(w.width,10),i=p=parseFloat(w.height,10),w.ratio,r=et(void 0,a=p,n,i),(b=parseFloat(s-d,10))>_&&(b=_-g),a>(b-=2)&&(r=et(void 0,a=b,n,i)),r>m&&(a=et(r=m,void 0,n,i)),a>_&&(r=et(void 0,a=_,n,i)),y.originalHeight&&a>p&&(r=et(void 0,a=p,n,i)),t.css("width",r),t.css("height",a),o()(y.singleImageSelector).hasClass("has-caption-fitwidth")&&1===k.length&&k.css("width",r)}}},{key:"initLightbox",value:function(){var t=this.config;o()(t.coreGridSelector).magnificPopup({delegate:".blockgallery--image__wrap",tLoading:"Loading image #%curr%...",image:{titleSrc:function(t){return t.el[0].nextElementSibling?t.el[0].nextElementSibling.innerHTML:""}},gallery:{enabled:!0,preload:[0,1]},type:"image"})}}])&&rr(e.prototype,n),i&&rr(e,i),t}();function cr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}".".concat("mbm.gallery"),o.a.fn.gallery;var fr=o()(window),dr=o()(document),vr=function(){function t(e,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){cr(t,e,n[e])}))}return t}({},mt,e);new nr(this.config.masonrySliderGalleryConfig,n);new kt(this.config.coreGalleryConfig),new Ot(this.config.masonryGalleryConfig,n),new It(this.config.sliderGalleryConfig,n),new Qi(this.config.galleryOverlayNavConfig,n),new ur(this.config.singleImagePageConfig),this.init(),dr.ready((function(){return i.domReady()})),fr.on("load",(function(){return i.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){o()(".blockgallery--caption a").on("click",(function(t){t.stopPropagation()}))}},{key:"windowLoad",value:function(){}}])&&hr(e.prototype,n),i&&hr(e,i),t}();function pr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var mr=o()(window),gr=o()(document),br={},_r=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){pr(t,e,n[e])}))}return t}({},br,e),this.init(),gr.ready((function(){return n.domReady()})),mr.on("load",(function(){return n.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){o()(".menu-popup-search a.search-trigger").on("click",(function(){return o()(".popup-search").stop(!0,!0).slideToggle(300),!1})),o()(".menu-fullscreen-search a.search-trigger").on("click",(function(t){t.preventDefault(),o()(".full-screen-search").addClass("open"),o()('.full-screen-search-form input[type="search"]').focus()})),o()(".full-screen-search, .full-screen-search-close").on("click keyup",(function(t){t.target!==this&&"full-screen-search-close"!==t.target.className&&27!==t.keyCode||o()(this).removeClass("open")}))}},{key:"windowLoad",value:function(){}}])&&yr(e.prototype,n),i&&yr(e,i),t}();function wr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Sr=o()(window),xr=o()(document),Er={},Cr=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}
1)))),i.forEach((function(e){wr(t,e,n[e])}))}return t}({},Er,e),this.init(),xr.ready((function(){return n.domReady()})),Sr.on("load",(function(){return n.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){1===o()(".scroll-to-top").length&&(o()(window).scroll((function(){o()(this).scrollTop()>200?o()(".scroll-to-top").addClass("is-visible"):o()(".scroll-to-top").removeClass("is-visible")})),o()(".scroll-to-top").on("click",(function(t){return o()("html, body").animate({scrollTop:0},"300"),!1})))}},{key:"windowLoad",value:function(){}}])&&kr(e.prototype,n),i&&kr(e,i),t}();n("NjiC");function Or(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Pr=o()(window),jr=o()(document),Ar={},Lr=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Or(t,e,n[e])}))}return t}({},Ar,e),this.init(),jr.ready((function(){return n.domReady()})),Pr.on("load",(function(){return n.windowLoad()})),jr.on("updated_wc_div",(function(){n.wc_refresh_quantity_increments()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){this.wc_refresh_quantity_increments(),jr.on("click",".plus, .minus",(function(){var t=o()(this).closest(".quantity").find(".qty, .tribe-ticket-quantity"),e=parseFloat(t.val()),n=parseFloat(t.attr("max")),i=parseFloat(t.attr("min")),r=t.attr("step");e&&""!==e&&"NaN"!==e||(e=0),""!==n&&"NaN"!==n||(n=""),""!==i&&"NaN"!==i||(i=0),"any"!==r&&""!==r&&void 0!==r&&"NaN"!==parseFloat(r)||(r=1),o()(this).is(".plus")?n&&e>=n?t.val(n):t.val((e+parseFloat(r)).toFixed(r.getDecimals())):i&&e<=i?t.val(i):e>0&&t.val((e-parseFloat(r)).toFixed(r.getDecimals())),t.trigger("change")}))}},{key:"windowLoad",value:function(){}},{key:"wc_refresh_quantity_increments",value:function(){"hidden"!==o()(".quantity .qty").attr("type")&&o()("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />')}}])&&Tr(e.prototype,n),i&&Tr(e,i),t}();function Ir(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Mr=o()(window),Dr=o()(document),Fr={},Gr=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Ir(t,e,n[e])}))}return t}({},Fr,e),this.init(),Dr.ready((function(){return n.domReady()})),Mr.on("load",(function(){return n.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){if(o.a.isFunction(o.a.fn.flexslider)&&o()(".wc-product-gallery__carousel.woocommerce-product-gallery--with-thumbnails").length){var t=o()(".wc-product-gallery__carousel").data("options");setTimeout((function(){o()(".wc-product-gallery__carousel").appendTo(".woocommerce-product-gallery").show(),o()(".wc-product-gallery__carousel").flexslider(t)}),10),o()(".variations_form.cart").on("found_variation",(function(t,e){setTimeout((function(){var t=o()('.wc-product-gallery__carousel li img[src="'+e.image.thumb_src+'"]');t.length&&(t.attr("srcset",""),o()(".wc-product-gallery__carousel").flexslider(t.index()))}),10)})),o()(".variations_form.cart").on("click",".reset_variations",(function(t){o()(".wc-product-gallery__carousel").flexslider(0),t.preventDefault()}))}}},{key:"windowLoad",value:function(){}}])&&Rr(e.prototype,n),i&&Rr(e,i),t}();function Br(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Nr=o()(window),Vr=o()(document),Yr={},Wr=function(){function t(e,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}
1)))),i.forEach((function(e){Br(t,e,n[e])}))}return t}({},Yr,e),new Lr({}),new Gr({}),this.init(),Vr.ready((function(){return i.domReady()})),Nr.on("load",(function(){return i.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){}},{key:"windowLoad",value:function(){}}])&&Hr(e.prototype,n),i&&Hr(e,i),t}(),zr=n("4eJC"),qr=n.n(zr);function Xr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ur(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Kr=o()(window),Qr=o()(document),Jr={sliderItemSelector:".blocks-gallery-item"},Zr=function(){function t(e,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Xr(t,e,n[e])}))}return t}({},Jr,e),this.init(),this.viewEventBus=n.bus,this.viewEvents=n.events,Qr.ready((function(){return i.domReady()})),Kr.on("load",(function(){return i.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){}},{key:"domReady",value:function(){this.setupMagnificPopup(),this.setupPhotoswipe()}},{key:"windowLoad",value:function(){}},{key:"setupMagnificPopup",value:function(){var t=this;if(o.a.isFunction(o.a.fn.magnificPopup)&&0!==o()(".blocks-gallery-item.has-video").length){var e=null;o()(".video-play-icon").on("click",(function(n){return e=o()(n.currentTarget).closest(".blocks-gallery-item.has-video"),t.openVideoPopup({src:e.attr("data-video-url")}),!1})),o()(".wp-block-blockgallery-masonry .blocks-gallery-item.has-video").on("click",(function(n){return e=o()(n.currentTarget),t.openVideoPopup({src:e.attr("data-video-url")}),!1}))}}},{key:"openVideoPopup",value:function(t){"undefined"!==t&&o.a.magnificPopup.open({items:{src:t.src},type:"iframe"},0)}},{key:"setupPhotoswipe",value:function(){this.initPhotoswipe()}},{key:"initPhotoswipe",value:function(){var t=this;0!==o()(".slider-wrap")&&(this.getGalleryItems=qr()(this.getGalleryItems.bind(this)),o()(".gallery-control__lightbox").on("click",(function(e){e.preventDefault(),t.openPhotoswipe(e)})))}},{key:"openPhotoswipe",value:function(t){var e=this,n=document.querySelectorAll(".pswp")[0],i=this.getGalleryItems(),r=0;o()(".slider-gallery-wrap .slider-wrapper .slider-slide-active").length?r=o()(".slider-gallery-wrap .slider-wrapper .slider-slide-active").index():o()(".slider-wrapper .slider-slide-active").length&&(r=o()(".slider-wrapper .slider-slide-active").index());var a=new PhotoSwipe(n,PhotoSwipeUI_Default,i,{index:r,history:!1,clickToCloseNonZoomable:!1,tapToClose:!1,closeElClasses:[]});a.listen("initialZoomIn",(function(){e.viewEventBus.emit(e.viewEvents.PAUSE_SLIDER,{slider:" pause slider"})})),a.listen("close",(function(){e.viewEventBus.emit(e.viewEvents.RESUME_SLIDER,{slider:" resume slider"})})),a.init()}},{key:"getGalleryItems",value:function(){var t=this.config,e=o()(t.sliderItemSelector,o()(".slider-wrap")[0]),n=[],i=null,r=null,a=null,s=null,l=null;return e.length>0&&e.each((function(t,e){r=o()(e),a=r.find(".blockgallery--image__wrap"),s=r.find("img"),l=r.find(".blockgallery--caption"),0===a.length&&0===s.length||(i={src:a.attr("data-mfp-src"),w:r.attr("data-width"),h:r.attr("data-height"),title:l.length?l.html():s.attr("title")},n.push(i))})),n}}])&&Ur(e.prototype,n),i&&Ur(e,i),t}();function $r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var to=o()(window),eo=o()(document),no=new s.a;new(function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.init(),eo.ready((function(){return e.domReady()})),to.on("load",(function(){return e.windowLoad()}))}var e,n,i;return e=t,(n=[{key:"init",value:function(){if("undefined"==typeof siteGlobalSettings)return!1;var t=siteGlobalSettings,e={};e.bus=no,e.events={MASONRY_ACTIVATE:"gallery.masonry.activate",MASONRY_DESTROY:"gallery.masonry.destroy",SLIDER_ACTIVATE:"gallery.slider.init",SLIDER_DESTROY:"gallery.slider.destroy",STACKED_ACTIVATE:"gallery.stacked.init",STACKED_DESTROY:"gallery.stacked.destroy",GALLERY_OVERLAY_ACTIVATE:"gallery.overlay.init",GALLERY_OVERLAY_DESTROY:"gallery.overlay.destroy",NEXT_SLIDE:"gallery.slider.next_slide",PREVIOUS_SLIDE:"gallery.slider.prev_slide",PAUSE_SLIDER:"gallery.slider.pause",RESUME_SLIDER:"gallery.slider.resume"};var n={},i={},r={},o={},a={},s={},l={};void 0!==t.menuConfig&&(n=t.menuConfig),void 0!==t.coreGallery&&(i=t.coreGallery),void 0!==t.masonryGallery&&(r=t.masonryGallery),void 0!==t.sliderGallery&&(o=t.sliderGallery),void 0!==t.galleryOverlayNav&&(a=t.galleryOverlayNav),void 0!==t.masonrySliderGallery&&(s=t.masonrySliderGallery),void 0!==t.singleImagePage&&(l=t.singleImagePage);var u={};void 0!==t.sharedConfig&&(u=t.sharedConfig),new W({menuConfig:n}),new _r({}),new Cr({}),new dt(u),new Wr({}),new Zr({},e),new vr({coreGalleryConfig:i,masonryGalleryConfig:r,sliderGalleryConfig:o,galleryOverlayNavConfig:a,masonrySliderGalleryConfig:s,singleImagePageConfig:l},e)}},{key:"domReady",value:function(){o()("pre").has("code").addClass("has-code"),o()("blockquote p").has("cite").addClass("has-cite"),o()("#wp-calendar tbody td").has("a").addClass("has-posts"),o()("table").not(".table, .no-table-class, .wp-block-table").addClass("table"),o()("#wp-calendar").addClass("table-bordered"),o()(".wpcf7-submit").each((function(t,e){return o()(e).addClass("btn btn-primary"),!0})),o()('.wpcf7-form select, .wpcf7-form textarea, .wpcf7-form input[type="text"], .wpcf7-form input[type="password"], .wpcf7-form input[type="datetime"], .wpcf7-form input[type="datetime-local"], .wpcf7-form input[type="date"], .wpcf7-form input[type="month"], .wpcf7-form input[type="time"], .wpcf7-form input[type="week"], .wpcf7-form input[type="number"], .wpcf7-form input[type="email"], .wpcf7-form input[type="url"], .wpcf7-form input[type="search"], .wpcf7-form input[type="tel"], .wpcf7-form input[type="color"]').each((function(t,e){return o()(e).addClass("form-control"),!0}))}},{key:"windowLoad",value:function(){}}])&&$r(e.prototype,n),i&&$r(e,i),t}())},bdgK:function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];t.call(e,r[1],r[0])}},e}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},a=2;var s=20,l=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,i=!1,r=0;
vendor: 5,307 bytes, line 1
1function s(){n&&(n=!1,t()),i&&u()}function l(){o(s)}function u(){var t=Date.now();if(n){if(t-r<a)return;i=!0}else n=!0,i=!1,setTimeout(l,e);r=t}return u}(this.refresh.bind(this),s)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;l.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||r},d=b(0,0,0,0);function v(t){return parseFloat(t)||0}function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+v(t["border-"+n+"-width"])}),0)}function y(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var i=f(t).getComputedStyle(t),r=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],o=t["padding-"+r];e[r]=v(o)}return e}(i),o=r.left+r.right,a=r.top+r.bottom,s=v(i.width),l=v(i.height);if("border-box"===i.boxSizing&&(Math.round(s+o)!==e&&(s-=p(i,"left","right")+o),Math.round(l+a)!==n&&(l-=p(i,"top","bottom")+a)),!function(t){return t===f(t).document.documentElement}(t)){var u=Math.round(s+o)-e,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return b(r.left,r.top,s,l)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function g(t){return i?m(t)?function(t){var e=t.getBBox();return b(0,0,e.width,e.height)}(t):y(t):d}function b(t,e,n,i){return{x:t,y:e,width:n,height:i}}var _=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=g(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),w=function(t,e){var n,i,r,o,a,s,l,u=(i=(n=e).x,r=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),h(l,{x:i,y:r,width:o,height:a,top:r,right:i+o,bottom:a+r,left:i}),l);h(this,{target:t,contentRect:u})},k=function(){function t(t,e,i){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new _(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new w(t.target,t.broadcastRect())}
1));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,x=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),i=new k(e,n,this);S.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){x.prototype[t]=function(){var e;return(e=S.get(this))[t].apply(e,arguments)}}));var E=void 0!==r.ResizeObserver?r.ResizeObserver:x;e.a=E}).call(this,n("yLpj"))},e0Yc:function(t,e,n){var i,r,o;function a(t){return(a="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)}o=function(){"use strict";function t(){return"undefined"!=typeof window}function e(t){return(o=t)&&o.document&&function(t){return 9===t.nodeType}(o.document)?(n=(e=t).document,i=n.body,r=n.documentElement,{scrollHeight:function(){return Math.max(i.scrollHeight,r.scrollHeight,i.offsetHeight,r.offsetHeight,i.clientHeight,r.clientHeight)},height:function(){return e.innerHeight||r.clientHeight||i.clientHeight},scrollY:function(){return void 0!==e.pageYOffset?e.pageYOffset:(r||i.parentNode||i).scrollTop}}):function(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}(t);var e,n,i,r,o}function n(t,n,i){var r,o=function(){var t=!1;try{var e={get passive(){t=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){t=!1}return t}(),a=!1,s=e(t),l=s.scrollY(),u={};function c(){var t=Math.round(s.scrollY()),e=s.height(),r=s.scrollHeight();u.scrollY=t,u.lastScrollY=l,u.direction=t>l?"down":"up",u.distance=Math.abs(t-l),u.isOutOfBounds=t<0||t+e>r,u.top=t<=n.offset,u.bottom=t+e>=r,u.toleranceExceeded=u.distance>n.tolerance[u.direction],i(u),l=t,a=!1}function h(){a||(a=!0,r=requestAnimationFrame(c))}var f=!!o&&{passive:!0,capture:!1};return t.addEventListener("scroll",h,f),{destroy:function(){cancelAnimationFrame(r),t.removeEventListener("scroll",h,f)}}}function i(t,e){var n;e=e||{},Object.assign(this,i.options,e),this.classes=Object.assign({},i.options.classes,e.classes),this.elem=t,this.tolerance=(n=this.tolerance)===Object(n)?n:{down:n,up:n},this.initialised=!1,this.frozen=!1}return i.prototype={constructor:i,init:function(){return i.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout((function(t){t.scrollTracker=n(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))}),100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded},shouldPin:function(t){return"up"===t.direction&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add(this.classes[t])},removeClass:function(t){this.elem.classList.remove(this.classes[t])},hasClass:function(t){return this.elem.classList.contains(this.classes[t])},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},i.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},i.cutsTheMustard=!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),i},"object"===a(e)&&void 0!==t?t.exports=o():void 0===(r="function"==typeof(i=o)?i.call(e,n,e,t):i)||(t.exports=r)},e8Ie:function(t,e){},jPWT:function(t,e,n){(function(n){var i,r,o;function a(t){return(a="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)}function s(t){return(s="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(t){return a(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":a(t)})(t)}r=[],void 0===(o="function"==typeof(i=function(){"use strict";var t,e,i,r,o,a,l,u,c="undefined"!=typeof window?window:null!=(void 0===n?"undefined":s(n))?n:this||{},h=c.cancelRequestAnimationFrame&&c.requestAnimationFrame||setTimeout,f=c.cancelRequestAnimationFrame||clearTimeout,d=[],v=0,p=!1,y=7,m=35,g=125,b=0,_=0,w=0,k={get didTimeout(){return!1},timeRemaining:function(){var t=y-(Date.now()-_);return t<0?0:t}},S=(o=function(){y=22,g=66,m=0},u=function t(){var e=Date.now()-l;e<99?a=setTimeout(t,99-e):(a=null,o())},function(){l=Date.now(),a||(a=setTimeout(u,99))});function x(){125!=g&&(y=7,g=125,m=35,p&&(p&&(r&&f(r),i&&clearTimeout(i),p=!1),O())),S()}function E(){r=null,i=setTimeout(T,0)}function C(){i=null,h(E)}function O(){p||(e=g-(Date.now()-_),t=Date.now(),p=!0,m&&e<m&&(e=m),e>9?i=setTimeout(C,e):(e=0,C()))}function T(){var n,r,o,a=y>9?9:1;if(_=Date.now(),p=!1,i=null,v>2||_-e-50<t)for(r=0,o=d.length;r<o&&k.timeRemaining()>a;r++)n=d.shift(),w++,n&&n(k);d.length?O():v=0}function P(t){return b++,d.push(t),O(),b}function j(t){var e=t-1-w;d[e]&&(d[e]=null)}if(c.requestIdleCallback&&c.cancelIdleCallback)try{c.requestIdleCallback((function(){}),{timeout:0})}catch(t){!function(t){var e,n;if(c.requestIdleCallback=function(e,n){return n&&"number"==typeof n.timeout?t(e,n.timeout):t(e)},c.IdleCallbackDeadline&&(e=IdleCallbackDeadline.prototype)){if(!(n=Object.getOwnPropertyDescriptor(e,"timeRemaining"))||!n.configurable||!n.get)return;Object.defineProperty(e,"timeRemaining",{value:function(){return n.get.call(this)},enumerable:!0,configurable:!0})}}(c.requestIdleCallback)}else c.requestIdleCallback=P,c.cancelIdleCallback=j,c.document&&document.addEventListener&&(c.addEventListener("scroll",x,!0),c.addEventListener("resize",x),document.addEventListener("focus",x,!0),document.addEventListener("mouseover",x,!0),["click","keypress","touchstart","mousedown"].forEach((function(t){document.addEventListener(t,x,{capture:!0,passive:!0})}
1)),c.MutationObserver&&new MutationObserver(x).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}));return{request:P,cancel:j}})?i.apply(e,r):i)||(t.exports=o)}).call(this,n("yLpj"))},"k7+O":function(t,e,n){!function(){"use strict";var e="undefined"!=typeof window&&void 0!==window.document?window.document:{},n=t.exports,i=function(){for(var t,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,r=n.length,o={};i<r;i++)if((t=n[i])&&t[1]in e){for(i=0;i<t.length;i++)o[n[0][i]]=t[i];return o}return!1}(),r={change:i.fullscreenchange,error:i.fullscreenerror},o={request:function(t){return new Promise(function(n,r){var o=function(){this.off("change",o),n()}.bind(this);this.on("change",o),t=t||e.documentElement,Promise.resolve(t[i.requestFullscreen]()).catch(r)}.bind(this))},exit:function(){return new Promise(function(t,n){if(this.isFullscreen){var r=function(){this.off("change",r),t()}.bind(this);this.on("change",r),Promise.resolve(e[i.exitFullscreen]()).catch(n)}else t()}.bind(this))},toggle:function(t){return this.isFullscreen?this.exit():this.request(t)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(t,n){var i=r[t];i&&e.addEventListener(i,n,!1)},off:function(t,n){var i=r[t];i&&e.removeEventListener(i,n,!1)},raw:i};i?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(e[i.fullscreenElement])}},element:{enumerable:!0,get:function(){return e[i.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(e[i.fullscreenEnabled])}}}),n?t.exports=o:window.screenfull=o):n?t.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()},nkey:function(t,e){},o33O:function(t,e){},oFVT:function(t,e){},pZch:function(t,e){},qEcO:function(t,e){},uhBA:function(t,e,n){"use strict";var i=Object.prototype.hasOwnProperty,r="~";function o(){}function a(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function s(t,e,n,i,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,i||t,o),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],s]:t._events[l].push(s):(t._events[l]=s,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),u.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)i.call(t,e)&&n.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},u.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},u.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},u.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var l,u,c=this._events[s],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,o),!0;case 6:return c.fn.call(c.context,e,n,i,o,a),!0}for(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,d=c.length;for(u=0;u<d;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,i);break;default:if(!l)for(f=1,l=new Array(h-1);f<h;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},u.prototype.on=function(t,e,n){return s(this,t,e,n,!1)},u.prototype.once=function(t,e,n){return s(this,t,e,n,!0)},u.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return l(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||i&&!a.once||n&&a.context!==n||l(this,o);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==e||i&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:l(this,o)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&l(this,e)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u},xeH2:function(t,e){t.exports=jQuery},yLpj:function(t,e){function n(t){return(n="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 i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i}});
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.