diff --git a/dist/icons/manifest.json b/dist/icons/manifest.json index 9f24518..56dc0ca 100644 --- a/dist/icons/manifest.json +++ b/dist/icons/manifest.json @@ -1,7 +1,7 @@ { - "name": "ss-webpack-boilerplate", - "short_name": "ss-webpack-boilerplate", - "description": "Lets you create SilverStripe faster", + "name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate", + "short_name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate", + "description": "This UI Kit allows you to build Bootstrap 4 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.", "dir": "auto", "lang": "en-US", "display": "standalone", diff --git a/dist/icons/manifest.webapp b/dist/icons/manifest.webapp index 999ccfd..4686220 100644 --- a/dist/icons/manifest.webapp +++ b/dist/icons/manifest.webapp @@ -1,7 +1,7 @@ { - "version": "2.0.2", - "name": "ss-webpack-boilerplate", - "description": "Lets you create SilverStripe faster", + "version": "2.8.3", + "name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate", + "description": "This UI Kit allows you to build Bootstrap 4 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.", "icons": { "60": "/icons/firefox_app_60x60.png", "128": "/icons/firefox_app_128x128.png", diff --git a/dist/icons/yandex-browser-manifest.json b/dist/icons/yandex-browser-manifest.json index d3cba66..f2d2eab 100644 --- a/dist/icons/yandex-browser-manifest.json +++ b/dist/icons/yandex-browser-manifest.json @@ -1,5 +1,5 @@ { - "version": "2.0.2", + "version": "2.8.3", "api_version": 1, "layout": { "logo": "/icons/yandex-browser-50x50.png", diff --git a/dist/js/app.js b/dist/js/app.js index ea9f39e..128db77 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -!function(){var o={875:function(o,i,a){var s,l,c,u;function _typeof(o){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(o){return typeof o}:function _typeof(o){return o&&"function"===typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}u=function($,o){"use strict";function _interopDefaultLegacy(o){return o&&"object"===_typeof(o)&&"default"in o?o:{default:o}}var i=_interopDefaultLegacy($),a=_interopDefaultLegacy(o);function _defineProperties(o,i){for(var a=0;a0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var o=Carousel.prototype;return o.next=function next(){this._isSliding||this._slide(p)},o.nextWhenVisible=function nextWhenVisible(){var o=i.default(this._element);!document.hidden&&o.is(":visible")&&"hidden"!==o.css("visibility")&&this.next()},o.prev=function prev(){this._isSliding||this._slide(h)},o.pause=function pause(o){o||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(a.default.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},o.cycle=function cycle(o){o||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},o.to=function to(o){var a=this;this._activeElement=this._element.querySelector(v);var s=this._getItemIndex(this._activeElement);if(!(o>this._items.length-1||o<0))if(this._isSliding)i.default(this._element).one(g,(function(){return a.to(o)}));else{if(s===o)return this.pause(),void this.cycle();var l=o>s?p:h;this._slide(l,this._items[o])}},o.dispose=function dispose(){i.default(this._element).off(c),i.default.removeData(this._element,l),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},o._getConfig=function _getConfig(o){return o=_extends({},f,o),a.default.typeCheckConfig(s,o,d),o},o._handleSwipe=function _handleSwipe(){var o=Math.abs(this.touchDeltaX);if(!(o<=40)){var i=o/this.touchDeltaX;this.touchDeltaX=0,i>0&&this.prev(),i<0&&this.next()}},o._addEventListeners=function _addEventListeners(){var o=this;this._config.keyboard&&i.default(this._element).on("keydown.bs.carousel",(function(i){return o._keydown(i)})),"hover"===this._config.pause&&i.default(this._element).on("mouseenter.bs.carousel",(function(i){return o.pause(i)})).on("mouseleave.bs.carousel",(function(i){return o.cycle(i)})),this._config.touch&&this._addTouchEventListeners()},o._addTouchEventListeners=function _addTouchEventListeners(){var o=this;if(this._touchSupported){var a=function start(i){o._pointerEvent&&y[i.originalEvent.pointerType.toUpperCase()]?o.touchStartX=i.originalEvent.clientX:o._pointerEvent||(o.touchStartX=i.originalEvent.touches[0].clientX)},s=function end(i){o._pointerEvent&&y[i.originalEvent.pointerType.toUpperCase()]&&(o.touchDeltaX=i.originalEvent.clientX-o.touchStartX),o._handleSwipe(),"hover"===o._config.pause&&(o.pause(),o.touchTimeout&&clearTimeout(o.touchTimeout),o.touchTimeout=setTimeout((function(i){return o.cycle(i)}),500+o._config.interval))};i.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(o){return o.preventDefault()})),this._pointerEvent?(i.default(this._element).on("pointerdown.bs.carousel",(function(o){return a(o)})),i.default(this._element).on("pointerup.bs.carousel",(function(o){return s(o)})),this._element.classList.add("pointer-event")):(i.default(this._element).on("touchstart.bs.carousel",(function(o){return a(o)})),i.default(this._element).on("touchmove.bs.carousel",(function(i){return function move(i){i.originalEvent.touches&&i.originalEvent.touches.length>1?o.touchDeltaX=0:o.touchDeltaX=i.originalEvent.touches[0].clientX-o.touchStartX}(i)})),i.default(this._element).on("touchend.bs.carousel",(function(o){return s(o)})))}},o._keydown=function _keydown(o){if(!/input|textarea/i.test(o.target.tagName))switch(o.which){case 37:o.preventDefault(),this.prev();break;case 39:o.preventDefault(),this.next()}},o._getItemIndex=function _getItemIndex(o){return this._items=o&&o.parentNode?[].slice.call(o.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(o)},o._getItemByDirection=function _getItemByDirection(o,i){var a=o===p,s=o===h,l=this._getItemIndex(i),c=this._items.length-1;if((s&&0===l||a&&l===c)&&!this._config.wrap)return i;var u=(l+(o===h?-1:1))%this._items.length;return-1===u?this._items[this._items.length-1]:this._items[u]},o._triggerSlideEvent=function _triggerSlideEvent(o,a){var s=this._getItemIndex(o),l=this._getItemIndex(this._element.querySelector(v)),c=i.default.Event("slide.bs.carousel",{relatedTarget:o,direction:a,from:l,to:s});return i.default(this._element).trigger(c),c},o._setActiveIndicatorElement=function _setActiveIndicatorElement(o){if(this._indicatorsElement){var a=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(a).removeClass(m);var s=this._indicatorsElement.children[this._getItemIndex(o)];s&&i.default(s).addClass(m)}},o._updateInterval=function _updateInterval(){var o=this._activeElement||this._element.querySelector(v);if(o){var i=parseInt(o.getAttribute("data-interval"),10);i?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=i):this._config.interval=this._config.defaultInterval||this._config.interval}},o._slide=function _slide(o,s){var l,c,u,f=this,d=this._element.querySelector(v),h=this._getItemIndex(d),y=s||d&&this._getItemByDirection(o,d),b=this._getItemIndex(y),w=Boolean(this._interval);if(o===p?(l="carousel-item-left",c="carousel-item-next",u="left"):(l="carousel-item-right",c="carousel-item-prev",u="right"),y&&i.default(y).hasClass(m))this._isSliding=!1;else if(!this._triggerSlideEvent(y,u).isDefaultPrevented()&&d&&y){this._isSliding=!0,w&&this.pause(),this._setActiveIndicatorElement(y),this._activeElement=y;var C=i.default.Event(g,{relatedTarget:y,direction:u,from:h,to:b});if(i.default(this._element).hasClass("slide")){i.default(y).addClass(c),a.default.reflow(y),i.default(d).addClass(l),i.default(y).addClass(l);var T=a.default.getTransitionDurationFromElement(d);i.default(d).one(a.default.TRANSITION_END,(function(){i.default(y).removeClass(l+" "+c).addClass(m),i.default(d).removeClass("active "+c+" "+l),f._isSliding=!1,setTimeout((function(){return i.default(f._element).trigger(C)}),0)})).emulateTransitionEnd(T)}else i.default(d).removeClass(m),i.default(y).addClass(m),this._isSliding=!1,i.default(this._element).trigger(C);w&&this.cycle()}},Carousel._jQueryInterface=function _jQueryInterface(o){return this.each((function(){var a=i.default(this).data(l),s=_extends({},f,i.default(this).data());"object"===_typeof(o)&&(s=_extends({},s,o));var c="string"===typeof o?o:s.slide;if(a||(a=new Carousel(this,s),i.default(this).data(l,a)),"number"===typeof o)a.to(o);else if("string"===typeof c){if("undefined"===typeof a[c])throw new TypeError('No method named "'+c+'"');a[c]()}else s.interval&&s.ride&&(a.pause(),a.cycle())}))},Carousel._dataApiClickHandler=function _dataApiClickHandler(o){var s=a.default.getSelectorFromElement(this);if(s){var c=i.default(s)[0];if(c&&i.default(c).hasClass("carousel")){var u=_extends({},i.default(c).data(),i.default(this).data()),f=this.getAttribute("data-slide-to");f&&(u.interval=!1),Carousel._jQueryInterface.call(i.default(c),u),f&&i.default(c).data(l).to(f),o.preventDefault()}}},function _createClass(o,i,a){return i&&_defineProperties(o.prototype,i),a&&_defineProperties(o,a),o}(Carousel,null,[{key:"VERSION",get:function get(){return"4.6.0"}},{key:"Default",get:function get(){return f}}]),Carousel}();return i.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",b._dataApiClickHandler),i.default(window).on("load.bs.carousel.data-api",(function(){for(var o=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),a=0,s=o.length;a0&&(this._selector=f,this._triggerArray.push(u))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var o=Collapse.prototype;return o.toggle=function toggle(){i.default(this._element).hasClass(d)?this.hide():this.show()},o.show=function show(){var o,s,c=this;if(!this._isTransitioning&&!i.default(this._element).hasClass(d)&&(this._parent&&0===(o=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(o){return"string"===typeof c._config.parent?o.getAttribute("data-parent")===c._config.parent:o.classList.contains(p)}))).length&&(o=null),!(o&&(s=i.default(o).not(this._selector).data(l))&&s._isTransitioning))){var u=i.default.Event("show.bs.collapse");if(i.default(this._element).trigger(u),!u.isDefaultPrevented()){o&&(Collapse._jQueryInterface.call(i.default(o).not(this._selector),"hide"),s||i.default(o).data(l,null));var f=this._getDimension();i.default(this._element).removeClass(p).addClass(h),this._element.style[f]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(g).attr("aria-expanded",!0),this.setTransitioning(!0);var m="scroll"+(f[0].toUpperCase()+f.slice(1)),v=a.default.getTransitionDurationFromElement(this._element);i.default(this._element).one(a.default.TRANSITION_END,(function complete(){i.default(c._element).removeClass(h).addClass("collapse show"),c._element.style[f]="",c.setTransitioning(!1),i.default(c._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(v),this._element.style[f]=this._element[m]+"px"}}},o.hide=function hide(){var o=this;if(!this._isTransitioning&&i.default(this._element).hasClass(d)){var s=i.default.Event("hide.bs.collapse");if(i.default(this._element).trigger(s),!s.isDefaultPrevented()){var l=this._getDimension();this._element.style[l]=this._element.getBoundingClientRect()[l]+"px",a.default.reflow(this._element),i.default(this._element).addClass(h).removeClass("collapse show");var c=this._triggerArray.length;if(c>0)for(var u=0;udocument.documentElement.clientHeight;l||(this._element.style.overflowY="hidden"),this._element.classList.add(S);var c=a.default.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(a.default.TRANSITION_END),i.default(this._element).one(a.default.TRANSITION_END,(function(){o._element.classList.remove(S),l||i.default(o._element).one(a.default.TRANSITION_END,(function(){o._element.style.overflowY=""})).emulateTransitionEnd(o._element,c)})).emulateTransitionEnd(c),this._element.focus()}},o._showElement=function _showElement(o){var s=this,l=i.default(this._element).hasClass(C),c=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&c?c.scrollTop=0:this._element.scrollTop=0,l&&a.default.reflow(this._element),i.default(this._element).addClass(T),this._config.focus&&this._enforceFocus();var u=i.default.Event("shown.bs.modal",{relatedTarget:o}),f=function transitionComplete(){s._config.focus&&s._element.focus(),s._isTransitioning=!1,i.default(s._element).trigger(u)};if(l){var d=a.default.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(a.default.TRANSITION_END,f).emulateTransitionEnd(d)}else f()},o._enforceFocus=function _enforceFocus(){var o=this;i.default(document).off(g).on(g,(function(a){document!==a.target&&o._element!==a.target&&0===i.default(o._element).has(a.target).length&&o._element.focus()}))},o._setEscapeEvent=function _setEscapeEvent(){var o=this;this._isShown?i.default(this._element).on(y,(function(i){o._config.keyboard&&27===i.which?(i.preventDefault(),o.hide()):o._config.keyboard||27!==i.which||o._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(y)},o._setResizeEvent=function _setResizeEvent(){var o=this;this._isShown?i.default(window).on(m,(function(i){return o.handleUpdate(i)})):i.default(window).off(m)},o._hideModal=function _hideModal(){var o=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass(w),o._resetAdjustments(),o._resetScrollbar(),i.default(o._element).trigger(p)}))},o._removeBackdrop=function _removeBackdrop(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},o._showBackdrop=function _showBackdrop(o){var s=this,l=i.default(this._element).hasClass(C)?C:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",l&&this._backdrop.classList.add(l),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(v,(function(o){s._ignoreBackdropClick?s._ignoreBackdropClick=!1:o.target===o.currentTarget&&("static"===s._config.backdrop?s._triggerBackdropTransition():s.hide())})),l&&a.default.reflow(this._backdrop),i.default(this._backdrop).addClass(T),!o)return;if(!l)return void o();var c=a.default.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(a.default.TRANSITION_END,o).emulateTransitionEnd(c)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(T);var u=function callbackRemove(){s._removeBackdrop(),o&&o()};if(i.default(this._element).hasClass(C)){var f=a.default.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(a.default.TRANSITION_END,u).emulateTransitionEnd(f)}else u()}else o&&o()},o._adjustDialog=function _adjustDialog(){var o=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&o&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!o&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},o._resetAdjustments=function _resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},o._checkScrollbar=function _checkScrollbar(){var o=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(o.left+o.right)

'}),p=_extends({},a.default.DefaultType,{content:"(string|element|function)"}),h={HIDE:"hide"+c,HIDDEN:"hidden"+c,SHOW:"show"+c,SHOWN:"shown"+c,INSERTED:"inserted"+c,CLICK:"click"+c,FOCUSIN:"focusin"+c,FOCUSOUT:"focusout"+c,MOUSEENTER:"mouseenter"+c,MOUSELEAVE:"mouseleave"+c},g=function(o){function Popover(){return o.apply(this,arguments)||this}!function _inheritsLoose(o,i){o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.__proto__=i}(Popover,o);var a=Popover.prototype;return a.isWithContent=function isWithContent(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function addAttachmentClass(o){i.default(this.getTipElement()).addClass("bs-popover-"+o)},a.getTipElement=function getTipElement(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},a.setContent=function setContent(){var o=i.default(this.getTipElement());this.setElementContent(o.find(".popover-header"),this.getTitle());var a=this._getContent();"function"===typeof a&&(a=a.call(this.element)),this.setElementContent(o.find(".popover-body"),a),o.removeClass("fade show")},a._getContent=function _getContent(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function _cleanTipClass(){var o=i.default(this.getTipElement()),a=o.attr("class").match(f);null!==a&&a.length>0&&o.removeClass(a.join(""))},Popover._jQueryInterface=function _jQueryInterface(o){return this.each((function(){var a=i.default(this).data(l),s="object"===_typeof(o)?o:null;if((a||!/dispose|hide/.test(o))&&(a||(a=new Popover(this,s),i.default(this).data(l,a)),"string"===typeof o)){if("undefined"===typeof a[o])throw new TypeError('No method named "'+o+'"');a[o]()}}))},function _createClass(o,i,a){return i&&_defineProperties(o.prototype,i),a&&_defineProperties(o,a),o}(Popover,null,[{key:"VERSION",get:function get(){return"4.6.0"}},{key:"Default",get:function get(){return d}},{key:"NAME",get:function get(){return s}},{key:"DATA_KEY",get:function get(){return l}},{key:"Event",get:function get(){return h}},{key:"EVENT_KEY",get:function get(){return c}},{key:"DefaultType",get:function get(){return p}}]),Popover}(a.default);return i.default.fn[s]=g._jQueryInterface,i.default.fn[s].Constructor=g,i.default.fn[s].noConflict=function(){return i.default.fn[s]=u,g._jQueryInterface},g},"object"===_typeof(i)?o.exports=u(a(609),a(222)):(l=[a(609),a(222)],void 0===(c="function"===typeof(s=u)?s.apply(i,l):s)||(o.exports=c))},324:function(o,i,a){var s,l,c,u;function _typeof(o){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(o){return typeof o}:function _typeof(o){return o&&"function"===typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}u=function($,o){"use strict";function _interopDefaultLegacy(o){return o&&"object"===_typeof(o)&&"default"in o?o:{default:o}}var i=_interopDefaultLegacy($),a=_interopDefaultLegacy(o);function _defineProperties(o,i){for(var a=0;a=a){var s=this._targets[this._targets.length-1];this._activeTarget!==s&&this._activate(s)}else{if(this._activeTarget&&o0)return this._activeTarget=null,void this._clear();for(var l=this._offsets.length;l--;)this._activeTarget!==this._targets[l]&&o>=this._offsets[l]&&("undefined"===typeof this._offsets[l+1]||o li > .active",h=function(){function Tab(o){this._element=o}var o=Tab.prototype;return o.show=function show(){var o=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(c)||i.default(this._element).hasClass("disabled"))){var s,l,u=i.default(this._element).closest(".nav, .list-group")[0],f=a.default.getSelectorFromElement(this._element);if(u){var h="UL"===u.nodeName||"OL"===u.nodeName?p:d;l=(l=i.default.makeArray(i.default(u).find(h)))[l.length-1]}var g=i.default.Event("hide.bs.tab",{relatedTarget:this._element}),m=i.default.Event("show.bs.tab",{relatedTarget:l});if(l&&i.default(l).trigger(g),i.default(this._element).trigger(m),!m.isDefaultPrevented()&&!g.isDefaultPrevented()){f&&(s=document.querySelector(f)),this._activate(this._element,u);var v=function complete(){var a=i.default.Event("hidden.bs.tab",{relatedTarget:o._element}),s=i.default.Event("shown.bs.tab",{relatedTarget:l});i.default(l).trigger(a),i.default(o._element).trigger(s)};s?this._activate(s,s.parentNode,v):v()}}},o.dispose=function dispose(){i.default.removeData(this._element,s),this._element=null},o._activate=function _activate(o,s,l){var c=this,h=(!s||"UL"!==s.nodeName&&"OL"!==s.nodeName?i.default(s).children(d):i.default(s).find(p))[0],g=l&&h&&i.default(h).hasClass(u),m=function complete(){return c._transitionComplete(o,h,l)};if(h&&g){var v=a.default.getTransitionDurationFromElement(h);i.default(h).removeClass(f).one(a.default.TRANSITION_END,m).emulateTransitionEnd(v)}else m()},o._transitionComplete=function _transitionComplete(o,s,l){if(s){i.default(s).removeClass(c);var d=i.default(s.parentNode).find("> .dropdown-menu .active")[0];d&&i.default(d).removeClass(c),"tab"===s.getAttribute("role")&&s.setAttribute("aria-selected",!1)}if(i.default(o).addClass(c),"tab"===o.getAttribute("role")&&o.setAttribute("aria-selected",!0),a.default.reflow(o),o.classList.contains(u)&&o.classList.add(f),o.parentNode&&i.default(o.parentNode).hasClass("dropdown-menu")){var p=i.default(o).closest(".dropdown")[0];if(p){var h=[].slice.call(p.querySelectorAll(".dropdown-toggle"));i.default(h).addClass(c)}o.setAttribute("aria-expanded",!0)}l&&l()},Tab._jQueryInterface=function _jQueryInterface(o){return this.each((function(){var a=i.default(this),l=a.data(s);if(l||(l=new Tab(this),a.data(s,l)),"string"===typeof o){if("undefined"===typeof l[o])throw new TypeError('No method named "'+o+'"');l[o]()}}))},function _createClass(o,i,a){return i&&_defineProperties(o.prototype,i),a&&_defineProperties(o,a),o}(Tab,null,[{key:"VERSION",get:function get(){return"4.6.0"}}]),Tab}();return i.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(o){o.preventDefault(),h._jQueryInterface.call(i.default(this),"show")})),i.default.fn.tab=h._jQueryInterface,i.default.fn.tab.Constructor=h,i.default.fn.tab.noConflict=function(){return i.default.fn.tab=l,h._jQueryInterface},h},"object"===_typeof(i)?o.exports=u(a(609),a(734)):(l=[a(609),a(734)],void 0===(c="function"===typeof(s=u)?s.apply(i,l):s)||(o.exports=c))},222:function(o,i,a){var s,l,c,u;function _typeof(o){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(o){return typeof o}:function _typeof(o){return o&&"function"===typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}u=function($,o,i){"use strict";function _interopDefaultLegacy(o){return o&&"object"===_typeof(o)&&"default"in o?o:{default:o}}var a=_interopDefaultLegacy($),s=_interopDefaultLegacy(o),l=_interopDefaultLegacy(i);function _defineProperties(o,i){for(var a=0;a
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:u,popperConfig:null},T="show",S="out",A={HIDE:"hide"+g,HIDDEN:"hidden"+g,SHOW:"show"+g,SHOWN:"shown"+g,INSERTED:"inserted"+g,CLICK:"click"+g,FOCUSIN:"focusin"+g,FOCUSOUT:"focusout"+g,MOUSEENTER:"mouseenter"+g,MOUSELEAVE:"mouseleave"+g},k="fade",P="show",O="hover",D="focus",R=function(){function Tooltip(o,i){if("undefined"===typeof s.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=o,this.config=this._getConfig(i),this.tip=null,this._setListeners()}var o=Tooltip.prototype;return o.enable=function enable(){this._isEnabled=!0},o.disable=function disable(){this._isEnabled=!1},o.toggleEnabled=function toggleEnabled(){this._isEnabled=!this._isEnabled},o.toggle=function toggle(o){if(this._isEnabled)if(o){var i=this.constructor.DATA_KEY,s=a.default(o.currentTarget).data(i);s||(s=new this.constructor(o.currentTarget,this._getDelegateConfig()),a.default(o.currentTarget).data(i,s)),s._activeTrigger.click=!s._activeTrigger.click,s._isWithActiveTrigger()?s._enter(null,s):s._leave(null,s)}else{if(a.default(this.getTipElement()).hasClass(P))return void this._leave(null,this);this._enter(null,this)}},o.dispose=function dispose(){clearTimeout(this._timeout),a.default.removeData(this.element,this.constructor.DATA_KEY),a.default(this.element).off(this.constructor.EVENT_KEY),a.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&a.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},o.show=function show(){var o=this;if("none"===a.default(this.element).css("display"))throw new Error("Please use show on visible elements");var i=a.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){a.default(this.element).trigger(i);var c=l.default.findShadowRoot(this.element),u=a.default.contains(null!==c?c:this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!u)return;var f=this.getTipElement(),d=l.default.getUID(this.constructor.NAME);f.setAttribute("id",d),this.element.setAttribute("aria-describedby",d),this.setContent(),this.config.animation&&a.default(f).addClass(k);var p="function"===typeof this.config.placement?this.config.placement.call(this,f,this.element):this.config.placement,h=this._getAttachment(p);this.addAttachmentClass(h);var g=this._getContainer();a.default(f).data(this.constructor.DATA_KEY,this),a.default.contains(this.element.ownerDocument.documentElement,this.tip)||a.default(f).appendTo(g),a.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new s.default(this.element,f,this._getPopperConfig(h)),a.default(f).addClass(P),a.default(f).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&a.default(document.body).children().on("mouseover",null,a.default.noop);var m=function complete(){o.config.animation&&o._fixTransition();var i=o._hoverState;o._hoverState=null,a.default(o.element).trigger(o.constructor.Event.SHOWN),i===S&&o._leave(null,o)};if(a.default(this.tip).hasClass(k)){var v=l.default.getTransitionDurationFromElement(this.tip);a.default(this.tip).one(l.default.TRANSITION_END,m).emulateTransitionEnd(v)}else m()}},o.hide=function hide(o){var i=this,s=this.getTipElement(),c=a.default.Event(this.constructor.Event.HIDE),u=function complete(){i._hoverState!==T&&s.parentNode&&s.parentNode.removeChild(s),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),a.default(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),o&&o()};if(a.default(this.element).trigger(c),!c.isDefaultPrevented()){if(a.default(s).removeClass(P),"ontouchstart"in document.documentElement&&a.default(document.body).children().off("mouseover",null,a.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,a.default(this.tip).hasClass(k)){var f=l.default.getTransitionDurationFromElement(s);a.default(s).one(l.default.TRANSITION_END,u).emulateTransitionEnd(f)}else u();this._hoverState=""}},o.update=function update(){null!==this._popper&&this._popper.scheduleUpdate()},o.isWithContent=function isWithContent(){return Boolean(this.getTitle())},o.addAttachmentClass=function addAttachmentClass(o){a.default(this.getTipElement()).addClass("bs-tooltip-"+o)},o.getTipElement=function getTipElement(){return this.tip=this.tip||a.default(this.config.template)[0],this.tip},o.setContent=function setContent(){var o=this.getTipElement();this.setElementContent(a.default(o.querySelectorAll(".tooltip-inner")),this.getTitle()),a.default(o).removeClass("fade show")},o.setElementContent=function setElementContent(o,i){"object"!==_typeof(i)||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=sanitizeHtml(i,this.config.whiteList,this.config.sanitizeFn)),o.html(i)):o.text(i):this.config.html?a.default(i).parent().is(o)||o.empty().append(i):o.text(a.default(i).text())},o.getTitle=function getTitle(){var o=this.element.getAttribute("data-original-title");return o||(o="function"===typeof this.config.title?this.config.title.call(this.element):this.config.title),o},o._getPopperConfig=function _getPopperConfig(o){var i=this;return _extends({},{placement:o,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function onCreate(o){o.originalPlacement!==o.placement&&i._handlePopperPlacementChange(o)},onUpdate:function onUpdate(o){return i._handlePopperPlacementChange(o)}},this.config.popperConfig)},o._getOffset=function _getOffset(){var o=this,i={};return"function"===typeof this.config.offset?i.fn=function(i){return i.offsets=_extends({},i.offsets,o.config.offset(i.offsets,o.element)||{}),i}:i.offset=this.config.offset,i},o._getContainer=function _getContainer(){return!1===this.config.container?document.body:l.default.isElement(this.config.container)?a.default(this.config.container):a.default(document).find(this.config.container)},o._getAttachment=function _getAttachment(o){return w[o.toUpperCase()]},o._setListeners=function _setListeners(){var o=this;this.config.trigger.split(" ").forEach((function(i){if("click"===i)a.default(o.element).on(o.constructor.Event.CLICK,o.config.selector,(function(i){return o.toggle(i)}));else if("manual"!==i){var s=i===O?o.constructor.Event.MOUSEENTER:o.constructor.Event.FOCUSIN,l=i===O?o.constructor.Event.MOUSELEAVE:o.constructor.Event.FOCUSOUT;a.default(o.element).on(s,o.config.selector,(function(i){return o._enter(i)})).on(l,o.config.selector,(function(i){return o._leave(i)}))}})),this._hideModalHandler=function(){o.element&&o.hide()},a.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=_extends({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},o._fixTitle=function _fixTitle(){var o=_typeof(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==o)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},o._enter=function _enter(o,i){var s=this.constructor.DATA_KEY;(i=i||a.default(o.currentTarget).data(s))||(i=new this.constructor(o.currentTarget,this._getDelegateConfig()),a.default(o.currentTarget).data(s,i)),o&&(i._activeTrigger["focusin"===o.type?D:O]=!0),a.default(i.getTipElement()).hasClass(P)||i._hoverState===T?i._hoverState=T:(clearTimeout(i._timeout),i._hoverState=T,i.config.delay&&i.config.delay.show?i._timeout=setTimeout((function(){i._hoverState===T&&i.show()}),i.config.delay.show):i.show())},o._leave=function _leave(o,i){var s=this.constructor.DATA_KEY;(i=i||a.default(o.currentTarget).data(s))||(i=new this.constructor(o.currentTarget,this._getDelegateConfig()),a.default(o.currentTarget).data(s,i)),o&&(i._activeTrigger["focusout"===o.type?D:O]=!1),i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=S,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout((function(){i._hoverState===S&&i.hide()}),i.config.delay.hide):i.hide())},o._isWithActiveTrigger=function _isWithActiveTrigger(){for(var o in this._activeTrigger)if(this._activeTrigger[o])return!0;return!1},o._getConfig=function _getConfig(o){var i=a.default(this.element).data();return Object.keys(i).forEach((function(o){-1!==y.indexOf(o)&&delete i[o]})),"number"===typeof(o=_extends({},this.constructor.Default,i,"object"===_typeof(o)&&o?o:{})).delay&&(o.delay={show:o.delay,hide:o.delay}),"number"===typeof o.title&&(o.title=o.title.toString()),"number"===typeof o.content&&(o.content=o.content.toString()),l.default.typeCheckConfig(p,o,this.constructor.DefaultType),o.sanitize&&(o.template=sanitizeHtml(o.template,o.whiteList,o.sanitizeFn)),o},o._getDelegateConfig=function _getDelegateConfig(){var o={};if(this.config)for(var i in this.config)this.constructor.Default[i]!==this.config[i]&&(o[i]=this.config[i]);return o},o._cleanTipClass=function _cleanTipClass(){var o=a.default(this.getTipElement()),i=o.attr("class").match(v);null!==i&&i.length&&o.removeClass(i.join(""))},o._handlePopperPlacementChange=function _handlePopperPlacementChange(o){this.tip=o.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(o.placement))},o._fixTransition=function _fixTransition(){var o=this.getTipElement(),i=this.config.animation;null===o.getAttribute("x-placement")&&(a.default(o).removeClass(k),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},Tooltip._jQueryInterface=function _jQueryInterface(o){return this.each((function(){var i=a.default(this),s=i.data(h),l="object"===_typeof(o)&&o;if((s||!/dispose|hide/.test(o))&&(s||(s=new Tooltip(this,l),i.data(h,s)),"string"===typeof o)){if("undefined"===typeof s[o])throw new TypeError('No method named "'+o+'"');s[o]()}}))},function _createClass(o,i,a){return i&&_defineProperties(o.prototype,i),a&&_defineProperties(o,a),o}(Tooltip,null,[{key:"VERSION",get:function get(){return"4.6.0"}},{key:"Default",get:function get(){return C}},{key:"NAME",get:function get(){return p}},{key:"DATA_KEY",get:function get(){return h}},{key:"Event",get:function get(){return A}},{key:"EVENT_KEY",get:function get(){return g}},{key:"DefaultType",get:function get(){return b}}]),Tooltip}();return a.default.fn[p]=R._jQueryInterface,a.default.fn[p].Constructor=R,a.default.fn[p].noConflict=function(){return a.default.fn[p]=m,R._jQueryInterface},R},"object"===_typeof(i)?o.exports=u(a(609),a(314),a(734)):(l=[a(609),a(314),a(734)],void 0===(c="function"===typeof(s=u)?s.apply(i,l):s)||(o.exports=c))},734:function(o,i,a){var s,l,c,u;function _typeof(o){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(o){return typeof o}:function _typeof(o){return o&&"function"===typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}u=function($){"use strict";function _interopDefaultLegacy(o){return o&&"object"===_typeof(o)&&"default"in o?o:{default:o}}var o=_interopDefaultLegacy($),i="transitionend";function transitionEndEmulator(i){var s=this,l=!1;return o.default(this).one(a.TRANSITION_END,(function(){l=!0})),setTimeout((function(){l||a.triggerTransitionEnd(s)}),i),this}var a={TRANSITION_END:"bsTransitionEnd",getUID:function getUID(o){do{o+=~~(1e6*Math.random())}while(document.getElementById(o));return o},getSelectorFromElement:function getSelectorFromElement(o){var i=o.getAttribute("data-target");if(!i||"#"===i){var a=o.getAttribute("href");i=a&&"#"!==a?a.trim():""}try{return document.querySelector(i)?i:null}catch(s){return null}},getTransitionDurationFromElement:function getTransitionDurationFromElement(i){if(!i)return 0;var a=o.default(i).css("transition-duration"),s=o.default(i).css("transition-delay"),l=parseFloat(a),c=parseFloat(s);return l||c?(a=a.split(",")[0],s=s.split(",")[0],1e3*(parseFloat(a)+parseFloat(s))):0},reflow:function reflow(o){return o.offsetHeight},triggerTransitionEnd:function triggerTransitionEnd(a){o.default(a).trigger(i)},supportsTransitionEnd:function supportsTransitionEnd(){return Boolean(i)},isElement:function isElement(o){return(o[0]||o).nodeType},typeCheckConfig:function typeCheckConfig(o,i,s){for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l)){var c=s[l],u=i[l],f=u&&a.isElement(u)?"element":null===(d=u)||"undefined"===typeof d?""+d:{}.toString.call(d).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(c).test(f))throw new Error(o.toUpperCase()+': Option "'+l+'" provided type "'+f+'" but expected type "'+c+'".')}var d},findShadowRoot:function findShadowRoot(o){if(!document.documentElement.attachShadow)return null;if("function"===typeof o.getRootNode){var i=o.getRootNode();return i instanceof ShadowRoot?i:null}return o instanceof ShadowRoot?o:o.parentNode?a.findShadowRoot(o.parentNode):null},jQueryDetection:function jQueryDetection(){if("undefined"===typeof o.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var i=o.default.fn.jquery.split(" ")[0].split(".");if(i[0]<2&&i[1]<9||1===i[0]&&9===i[1]&&i[2]<1||i[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};return a.jQueryDetection(),function setTransitionEndSupport(){o.default.fn.emulateTransitionEnd=transitionEndEmulator,o.default.event.special[a.TRANSITION_END]=function getSpecialTransitionEndEvent(){return{bindType:i,delegateType:i,handle:function handle(i){if(o.default(i.target).is(this))return i.handleObj.handler.apply(this,arguments)}}}()}(),a},"object"===_typeof(i)?o.exports=u(a(609)):(l=[a(609)],void 0===(c="function"===typeof(s=u)?s.apply(i,l):s)||(o.exports=c))},695:function(o,i,a){var s;function _typeof(o){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(o){return typeof o}:function _typeof(o){return o&&"function"===typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}!function(l,c,u,f){"use strict";var d,p=["","webkit","Moz","MS","ms","o"],h=c.createElement("div"),g=Math.round,m=Math.abs,v=Date.now;function setTimeoutContext(o,i,a){return setTimeout(bindFn(o,a),i)}function invokeArrayArg(o,i,a){return!!Array.isArray(o)&&(each(o,a[i],a),!0)}function each(o,i,a){var s;if(o)if(o.forEach)o.forEach(i,a);else if(o.length!==f)for(s=0;s\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",c=l.console&&(l.console.warn||l.console.log);return c&&c.call(l.console,s,a),o.apply(this,arguments)}}d="function"!==typeof Object.assign?function assign(o){if(o===f||null===o)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(o),a=1;a-1}function splitStr(o){return o.trim().split(/\s+/g)}function inArray(o,i,a){if(o.indexOf&&!a)return o.indexOf(i);for(var s=0;sa[i]})):s.sort()),s}function prefixed(o,i){for(var a,s,l=i[0].toUpperCase()+i.slice(1),c=0;c1&&!a.firstMultiple?a.firstMultiple=simpleCloneInputData(i):1===l&&(a.firstMultiple=!1);var c=a.firstInput,u=a.firstMultiple,d=u?u.center:c.center,p=i.center=getCenter(s);i.timeStamp=v(),i.deltaTime=i.timeStamp-c.timeStamp,i.angle=getAngle(d,p),i.distance=getDistance(d,p),function computeDeltaXY(o,i){var a=i.center,s=o.offsetDelta||{},l=o.prevDelta||{},c=o.prevInput||{};1!==i.eventType&&4!==c.eventType||(l=o.prevDelta={x:c.deltaX||0,y:c.deltaY||0},s=o.offsetDelta={x:a.x,y:a.y});i.deltaX=l.x+(a.x-s.x),i.deltaY=l.y+(a.y-s.y)}(a,i),i.offsetDirection=getDirection(i.deltaX,i.deltaY);var h=getVelocity(i.deltaTime,i.deltaX,i.deltaY);i.overallVelocityX=h.x,i.overallVelocityY=h.y,i.overallVelocity=m(h.x)>m(h.y)?h.x:h.y,i.scale=u?function getScale(o,i){return getDistance(i[0],i[1],D)/getDistance(o[0],o[1],D)}(u.pointers,s):1,i.rotation=u?function getRotation(o,i){return getAngle(i[1],i[0],D)+getAngle(o[1],o[0],D)}(u.pointers,s):0,i.maxPointers=a.prevInput?i.pointers.length>a.prevInput.maxPointers?i.pointers.length:a.prevInput.maxPointers:i.pointers.length,function computeIntervalInputData(o,i){var a,s,l,c,u=o.lastInterval||i,d=i.timeStamp-u.timeStamp;if(8!=i.eventType&&(d>25||u.velocity===f)){var p=i.deltaX-u.deltaX,h=i.deltaY-u.deltaY,g=getVelocity(d,p,h);s=g.x,l=g.y,a=m(g.x)>m(g.y)?g.x:g.y,c=getDirection(p,h),o.lastInterval=i}else a=u.velocity,s=u.velocityX,l=u.velocityY,c=u.direction;i.velocity=a,i.velocityX=s,i.velocityY=l,i.direction=c}(a,i);var g=o.element;hasParent(i.srcEvent.target,g)&&(g=i.srcEvent.target);i.target=g}(o,a),o.emit("hammer.input",a),o.recognize(a),o.session.prevInput=a}function simpleCloneInputData(o){for(var i=[],a=0;a=m(i)?o<0?2:4:i<0?8:16}function getDistance(o,i,a){a||(a=O);var s=i[a[0]]-o[a[0]],l=i[a[1]]-o[a[1]];return Math.sqrt(s*s+l*l)}function getAngle(o,i,a){a||(a=O);var s=i[a[0]]-o[a[0]],l=i[a[1]]-o[a[1]];return 180*Math.atan2(l,s)/Math.PI}Input.prototype={handler:function handler(){},init:function init(){this.evEl&&addEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&addEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&addEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)},destroy:function destroy(){this.evEl&&removeEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&removeEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&removeEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)}};var R={mousedown:1,mousemove:2,mouseup:4},j="mousedown",N="mousemove mouseup";function MouseInput(){this.evEl=j,this.evWin=N,this.pressed=!1,Input.apply(this,arguments)}inherit(MouseInput,Input,{handler:function MEhandler(o){var i=R[o.type];1&i&&0===o.button&&(this.pressed=!0),2&i&&1!==o.which&&(i=4),this.pressed&&(4&i&&(this.pressed=!1),this.callback(this.manager,i,{pointers:[o],changedPointers:[o],pointerType:k,srcEvent:o}))}});var M={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},U={2:A,3:"pen",4:k,5:"kinect"},z="pointerdown",q="pointermove pointerup pointercancel";function PointerEventInput(){this.evEl=z,this.evWin=q,Input.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}l.MSPointerEvent&&!l.PointerEvent&&(z="MSPointerDown",q="MSPointerMove MSPointerUp MSPointerCancel"),inherit(PointerEventInput,Input,{handler:function PEhandler(o){var i=this.store,a=!1,s=o.type.toLowerCase().replace("ms",""),l=M[s],c=U[o.pointerType]||o.pointerType,u=c==A,f=inArray(i,o.pointerId,"pointerId");1&l&&(0===o.button||u)?f<0&&(i.push(o),f=i.length-1):12&l&&(a=!0),f<0||(i[f]=o,this.callback(this.manager,l,{pointers:i,changedPointers:[o],pointerType:c,srcEvent:o}),a&&i.splice(f,1))}});var B={touchstart:1,touchmove:2,touchend:4,touchcancel:8},W="touchstart",Q="touchstart touchmove touchend touchcancel";function SingleTouchInput(){this.evTarget=W,this.evWin=Q,this.started=!1,Input.apply(this,arguments)}function normalizeSingleTouches(o,i){var a=toArray(o.touches),s=toArray(o.changedTouches);return 12&i&&(a=uniqueArray(a.concat(s),"identifier",!0)),[a,s]}inherit(SingleTouchInput,Input,{handler:function TEhandler(o){var i=B[o.type];if(1===i&&(this.started=!0),this.started){var a=normalizeSingleTouches.call(this,o,i);12&i&&a[0].length-a[1].length===0&&(this.started=!1),this.callback(this.manager,i,{pointers:a[0],changedPointers:a[1],pointerType:A,srcEvent:o})}}});var Y={touchstart:1,touchmove:2,touchend:4,touchcancel:8},X="touchstart touchmove touchend touchcancel";function TouchInput(){this.evTarget=X,this.targetIds={},Input.apply(this,arguments)}function getTouches(o,i){var a=toArray(o.touches),s=this.targetIds;if(3&i&&1===a.length)return s[a[0].identifier]=!0,[a,a];var l,c,u=toArray(o.changedTouches),f=[],d=this.target;if(c=a.filter((function(o){return hasParent(o.target,d)})),1===i)for(l=0;l-1&&s.splice(o,1)}),2500)}}function isSyntheticEvent(o){for(var i=o.srcEvent.clientX,a=o.srcEvent.clientY,s=0;s-1&&this.requireFail.splice(i,1),this},hasRequireFailures:function hasRequireFailures(){return this.requireFail.length>0},canRecognizeWith:function canRecognizeWith(o){return!!this.simultaneous[o.id]},emit:function emit(o){var i=this,a=this.state;function emit(a){i.manager.emit(a,o)}a<8&&emit(i.options.event+stateStr(a)),emit(i.options.event),o.additionalEvent&&emit(o.additionalEvent),a>=8&&emit(i.options.event+stateStr(a))},tryEmit:function tryEmit(o){if(this.canEmit())return this.emit(o);this.state=ie},canEmit:function canEmit(){for(var o=0;oi.threshold&&l&i.direction},attrTest:function attrTest(o){return AttrRecognizer.prototype.attrTest.call(this,o)&&(2&this.state||!(2&this.state)&&this.directionTest(o))},emit:function emit(o){this.pX=o.deltaX,this.pY=o.deltaY;var i=directionStr(o.direction);i&&(o.additionalEvent=this.options.event+i),this._super.emit.call(this,o)}}),inherit(PinchRecognizer,AttrRecognizer,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function getTouchAction(){return[ee]},attrTest:function attrTest(o){return this._super.attrTest.call(this,o)&&(Math.abs(o.scale-1)>this.options.threshold||2&this.state)},emit:function emit(o){if(1!==o.scale){var i=o.scale<1?"in":"out";o.additionalEvent=this.options.event+i}this._super.emit.call(this,o)}}),inherit(PressRecognizer,Recognizer,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function getTouchAction(){return[K]},process:function process(o){var i=this.options,a=o.pointers.length===i.pointers,s=o.distancei.time;if(this._input=o,!s||!a||12&o.eventType&&!l)this.reset();else if(1&o.eventType)this.reset(),this._timer=setTimeoutContext((function(){this.state=8,this.tryEmit()}),i.time,this);else if(4&o.eventType)return 8;return ie},reset:function reset(){clearTimeout(this._timer)},emit:function emit(o){8===this.state&&(o&&4&o.eventType?this.manager.emit(this.options.event+"up",o):(this._input.timeStamp=v(),this.manager.emit(this.options.event,this._input)))}}),inherit(RotateRecognizer,AttrRecognizer,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function getTouchAction(){return[ee]},attrTest:function attrTest(o){return this._super.attrTest.call(this,o)&&(Math.abs(o.rotation)>this.options.threshold||2&this.state)}}),inherit(SwipeRecognizer,AttrRecognizer,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function getTouchAction(){return PanRecognizer.prototype.getTouchAction.call(this)},attrTest:function attrTest(o){var i,a=this.options.direction;return 30&a?i=o.overallVelocity:6&a?i=o.overallVelocityX:a&P&&(i=o.overallVelocityY),this._super.attrTest.call(this,o)&&a&o.offsetDirection&&o.distance>this.options.threshold&&o.maxPointers==this.options.pointers&&m(i)>this.options.velocity&&4&o.eventType},emit:function emit(o){var i=directionStr(o.offsetDirection);i&&this.manager.emit(this.options.event+i,o),this.manager.emit(this.options.event,o)}}),inherit(TapRecognizer,Recognizer,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function getTouchAction(){return[Z]},process:function process(o){var i=this.options,a=o.pointers.length===i.pointers,s=o.distance=0)return 1;return 0}();var c=s&&window.Promise?function microtaskDebounce(o){var i=!1;return function(){i||(i=!0,window.Promise.resolve().then((function(){i=!1,o()})))}}:function taskDebounce(o){var i=!1;return function(){i||(i=!0,setTimeout((function(){i=!1,o()}),l))}};function isFunction(o){return o&&"[object Function]"==={}.toString.call(o)}function getStyleComputedProperty(o,i){if(1!==o.nodeType)return[];var a=o.ownerDocument.defaultView.getComputedStyle(o,null);return i?a[i]:a}function getParentNode(o){return"HTML"===o.nodeName?o:o.parentNode||o.host}function getScrollParent(o){if(!o)return document.body;switch(o.nodeName){case"HTML":case"BODY":return o.ownerDocument.body;case"#document":return o.body}var i=getStyleComputedProperty(o),a=i.overflow,s=i.overflowX,l=i.overflowY;return/(auto|scroll|overlay)/.test(a+l+s)?o:getScrollParent(getParentNode(o))}function getReferenceNode(o){return o&&o.referenceNode?o.referenceNode:o}var u=s&&!(!window.MSInputMethodContext||!document.documentMode),f=s&&/MSIE 10/.test(navigator.userAgent);function isIE(o){return 11===o?u:10===o?f:u||f}function getOffsetParent(o){if(!o)return document.documentElement;for(var i=isIE(10)?document.body:null,a=o.offsetParent||null;a===i&&o.nextElementSibling;)a=(o=o.nextElementSibling).offsetParent;var s=a&&a.nodeName;return s&&"BODY"!==s&&"HTML"!==s?-1!==["TH","TD","TABLE"].indexOf(a.nodeName)&&"static"===getStyleComputedProperty(a,"position")?getOffsetParent(a):a:o?o.ownerDocument.documentElement:document.documentElement}function getRoot(o){return null!==o.parentNode?getRoot(o.parentNode):o}function findCommonOffsetParent(o,i){if(!o||!o.nodeType||!i||!i.nodeType)return document.documentElement;var a=o.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING,s=a?o:i,l=a?i:o,c=document.createRange();c.setStart(s,0),c.setEnd(l,0);var u=c.commonAncestorContainer;if(o!==u&&i!==u||s.contains(l))return function isOffsetContainer(o){var i=o.nodeName;return"BODY"!==i&&("HTML"===i||getOffsetParent(o.firstElementChild)===o)}(u)?u:getOffsetParent(u);var f=getRoot(o);return f.host?findCommonOffsetParent(f.host,i):findCommonOffsetParent(o,getRoot(i).host)}function getScroll(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",a="top"===i?"scrollTop":"scrollLeft",s=o.nodeName;if("BODY"===s||"HTML"===s){var l=o.ownerDocument.documentElement,c=o.ownerDocument.scrollingElement||l;return c[a]}return o[a]}function includeScroll(o,i){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=getScroll(i,"top"),l=getScroll(i,"left"),c=a?-1:1;return o.top+=s*c,o.bottom+=s*c,o.left+=l*c,o.right+=l*c,o}function getBordersSize(o,i){var a="x"===i?"Left":"Top",s="Left"===a?"Right":"Bottom";return parseFloat(o["border"+a+"Width"])+parseFloat(o["border"+s+"Width"])}function getSize(o,i,a,s){return Math.max(i["offset"+o],i["scroll"+o],a["client"+o],a["offset"+o],a["scroll"+o],isIE(10)?parseInt(a["offset"+o])+parseInt(s["margin"+("Height"===o?"Top":"Left")])+parseInt(s["margin"+("Height"===o?"Bottom":"Right")]):0)}function getWindowSizes(o){var i=o.body,a=o.documentElement,s=isIE(10)&&getComputedStyle(a);return{height:getSize("Height",i,a,s),width:getSize("Width",i,a,s)}}var d=function classCallCheck(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")},p=function(){function defineProperties(o,i){for(var a=0;a2&&void 0!==arguments[2]&&arguments[2],s=isIE(10),l="HTML"===i.nodeName,c=getBoundingClientRect(o),u=getBoundingClientRect(i),f=getScrollParent(o),d=getStyleComputedProperty(i),p=parseFloat(d.borderTopWidth),h=parseFloat(d.borderLeftWidth);a&&l&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var g=getClientRect({top:c.top-u.top-p,left:c.left-u.left-h,width:c.width,height:c.height});if(g.marginTop=0,g.marginLeft=0,!s&&l){var m=parseFloat(d.marginTop),v=parseFloat(d.marginLeft);g.top-=p-m,g.bottom-=p-m,g.left-=h-v,g.right-=h-v,g.marginTop=m,g.marginLeft=v}return(s&&!a?i.contains(f):i===f&&"BODY"!==f.nodeName)&&(g=includeScroll(g,i)),g}function getViewportOffsetRectRelativeToArtbitraryNode(o){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=o.ownerDocument.documentElement,s=getOffsetRectRelativeToArbitraryNode(o,a),l=Math.max(a.clientWidth,window.innerWidth||0),c=Math.max(a.clientHeight,window.innerHeight||0),u=i?0:getScroll(a),f=i?0:getScroll(a,"left"),d={top:u-s.top+s.marginTop,left:f-s.left+s.marginLeft,width:l,height:c};return getClientRect(d)}function isFixed(o){var i=o.nodeName;if("BODY"===i||"HTML"===i)return!1;if("fixed"===getStyleComputedProperty(o,"position"))return!0;var a=getParentNode(o);return!!a&&isFixed(a)}function getFixedPositionOffsetParent(o){if(!o||!o.parentElement||isIE())return document.documentElement;for(var i=o.parentElement;i&&"none"===getStyleComputedProperty(i,"transform");)i=i.parentElement;return i||document.documentElement}function getBoundaries(o,i,a,s){var l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c={top:0,left:0},u=l?getFixedPositionOffsetParent(o):findCommonOffsetParent(o,getReferenceNode(i));if("viewport"===s)c=getViewportOffsetRectRelativeToArtbitraryNode(u,l);else{var f=void 0;"scrollParent"===s?"BODY"===(f=getScrollParent(getParentNode(i))).nodeName&&(f=o.ownerDocument.documentElement):f="window"===s?o.ownerDocument.documentElement:s;var d=getOffsetRectRelativeToArbitraryNode(f,u,l);if("HTML"!==f.nodeName||isFixed(u))c=d;else{var p=getWindowSizes(o.ownerDocument),h=p.height,g=p.width;c.top+=d.top-d.marginTop,c.bottom=h+d.top,c.left+=d.left-d.marginLeft,c.right=g+d.left}}var m="number"===typeof(a=a||0);return c.left+=m?a:a.left||0,c.top+=m?a:a.top||0,c.right-=m?a:a.right||0,c.bottom-=m?a:a.bottom||0,c}function getArea(o){return o.width*o.height}function computeAutoPlacement(o,i,a,s,l){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===o.indexOf("auto"))return o;var u=getBoundaries(a,s,c,l),f={top:{width:u.width,height:i.top-u.top},right:{width:u.right-i.right,height:u.height},bottom:{width:u.width,height:u.bottom-i.bottom},left:{width:i.left-u.left,height:u.height}},d=Object.keys(f).map((function(o){return g({key:o},f[o],{area:getArea(f[o])})})).sort((function(o,i){return i.area-o.area})),p=d.filter((function(o){var i=o.width,s=o.height;return i>=a.clientWidth&&s>=a.clientHeight})),h=p.length>0?p[0].key:d[0].key,m=o.split("-")[1];return h+(m?"-"+m:"")}function getReferenceOffsets(o,i,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=s?getFixedPositionOffsetParent(i):findCommonOffsetParent(i,getReferenceNode(a));return getOffsetRectRelativeToArbitraryNode(a,l,s)}function getOuterSizes(o){var i=o.ownerDocument.defaultView.getComputedStyle(o),a=parseFloat(i.marginTop||0)+parseFloat(i.marginBottom||0),s=parseFloat(i.marginLeft||0)+parseFloat(i.marginRight||0);return{width:o.offsetWidth+s,height:o.offsetHeight+a}}function getOppositePlacement(o){var i={left:"right",right:"left",bottom:"top",top:"bottom"};return o.replace(/left|right|bottom|top/g,(function(o){return i[o]}))}function getPopperOffsets(o,i,a){a=a.split("-")[0];var s=getOuterSizes(o),l={width:s.width,height:s.height},c=-1!==["right","left"].indexOf(a),u=c?"top":"left",f=c?"left":"top",d=c?"height":"width",p=c?"width":"height";return l[u]=i[u]+i[d]/2-s[d]/2,l[f]=a===f?i[f]-s[p]:i[getOppositePlacement(f)],l}function find(o,i){return Array.prototype.find?o.find(i):o.filter(i)[0]}function runModifiers(o,i,a){return(void 0===a?o:o.slice(0,function findIndex(o,i,a){if(Array.prototype.findIndex)return o.findIndex((function(o){return o[i]===a}));var s=find(o,(function(o){return o[i]===a}));return o.indexOf(s)}(o,"name",a))).forEach((function(o){o.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=o.function||o.fn;o.enabled&&isFunction(a)&&(i.offsets.popper=getClientRect(i.offsets.popper),i.offsets.reference=getClientRect(i.offsets.reference),i=a(i,o))})),i}function update(){if(!this.state.isDestroyed){var o={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};o.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),o.placement=computeAutoPlacement(this.options.placement,o.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),o.originalPlacement=o.placement,o.positionFixed=this.options.positionFixed,o.offsets.popper=getPopperOffsets(this.popper,o.offsets.reference,o.placement),o.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",o=runModifiers(this.modifiers,o),this.state.isCreated?this.options.onUpdate(o):(this.state.isCreated=!0,this.options.onCreate(o))}}function isModifierEnabled(o,i){return o.some((function(o){var a=o.name;return o.enabled&&a===i}))}function getSupportedPropertyName(o){for(var i=[!1,"ms","Webkit","Moz","O"],a=o.charAt(0).toUpperCase()+o.slice(1),s=0;s1&&void 0!==arguments[1]&&arguments[1],a=y.indexOf(o),s=y.slice(a+1).concat(y.slice(0,a));return i?s.reverse():s}var b="flip",w="clockwise",C="counterclockwise";function parseOffset(o,i,a,s){var l=[0,0],c=-1!==["right","left"].indexOf(s),u=o.split(/(\+|\-)/).map((function(o){return o.trim()})),f=u.indexOf(find(u,(function(o){return-1!==o.search(/,|\s/)})));u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var d=/\s*,\s*|\s+/,p=-1!==f?[u.slice(0,f).concat([u[f].split(d)[0]]),[u[f].split(d)[1]].concat(u.slice(f+1))]:[u];return(p=p.map((function(o,s){var l=(1===s?!c:c)?"height":"width",u=!1;return o.reduce((function(o,i){return""===o[o.length-1]&&-1!==["+","-"].indexOf(i)?(o[o.length-1]=i,u=!0,o):u?(o[o.length-1]+=i,u=!1,o):o.concat(i)}),[]).map((function(o){return function toValue(o,i,a,s){var l=o.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),c=+l[1],u=l[2];if(!c)return o;if(0===u.indexOf("%")){var f=void 0;switch(u){case"%p":f=a;break;case"%":case"%r":default:f=s}return getClientRect(f)[i]/100*c}if("vh"===u||"vw"===u)return("vh"===u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*c;return c}(o,l,i,a)}))}))).forEach((function(o,i){o.forEach((function(a,s){isNumeric(a)&&(l[i]+=a*("-"===o[s-1]?-1:1))}))})),l}var T={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function onCreate(){},onUpdate:function onUpdate(){},modifiers:{shift:{order:100,enabled:!0,fn:function shift(o){var i=o.placement,a=i.split("-")[0],s=i.split("-")[1];if(s){var l=o.offsets,c=l.reference,u=l.popper,f=-1!==["bottom","top"].indexOf(a),d=f?"left":"top",p=f?"width":"height",m={start:h({},d,c[d]),end:h({},d,c[d]+c[p]-u[p])};o.offsets.popper=g({},u,m[s])}return o}},offset:{order:200,enabled:!0,fn:function offset(o,i){var a=i.offset,s=o.placement,l=o.offsets,c=l.popper,u=l.reference,f=s.split("-")[0],d=void 0;return d=isNumeric(+a)?[+a,0]:parseOffset(a,c,u,f),"left"===f?(c.top+=d[0],c.left-=d[1]):"right"===f?(c.top+=d[0],c.left+=d[1]):"top"===f?(c.left+=d[0],c.top-=d[1]):"bottom"===f&&(c.left+=d[0],c.top+=d[1]),o.popper=c,o},offset:0},preventOverflow:{order:300,enabled:!0,fn:function preventOverflow(o,i){var a=i.boundariesElement||getOffsetParent(o.instance.popper);o.instance.reference===a&&(a=getOffsetParent(a));var s=getSupportedPropertyName("transform"),l=o.instance.popper.style,c=l.top,u=l.left,f=l[s];l.top="",l.left="",l[s]="";var d=getBoundaries(o.instance.popper,o.instance.reference,i.padding,a,o.positionFixed);l.top=c,l.left=u,l[s]=f,i.boundaries=d;var p=i.priority,m=o.offsets.popper,v={primary:function primary(o){var a=m[o];return m[o]d[o]&&!i.escapeWithReference&&(s=Math.min(m[a],d[o]-("right"===o?m.width:m.height))),h({},a,s)}};return p.forEach((function(o){var i=-1!==["left","top"].indexOf(o)?"primary":"secondary";m=g({},m,v[i](o))})),o.offsets.popper=m,o},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function keepTogether(o){var i=o.offsets,a=i.popper,s=i.reference,l=o.placement.split("-")[0],c=Math.floor,u=-1!==["top","bottom"].indexOf(l),f=u?"right":"bottom",d=u?"left":"top",p=u?"width":"height";return a[f]c(s[f])&&(o.offsets.popper[d]=c(s[f])),o}},arrow:{order:500,enabled:!0,fn:function arrow(o,i){var a;if(!isModifierRequired(o.instance.modifiers,"arrow","keepTogether"))return o;var s=i.element;if("string"===typeof s){if(!(s=o.instance.popper.querySelector(s)))return o}else if(!o.instance.popper.contains(s))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),o;var l=o.placement.split("-")[0],c=o.offsets,u=c.popper,f=c.reference,d=-1!==["left","right"].indexOf(l),p=d?"height":"width",g=d?"Top":"Left",m=g.toLowerCase(),v=d?"left":"top",y=d?"bottom":"right",b=getOuterSizes(s)[p];f[y]-bu[y]&&(o.offsets.popper[m]+=f[m]+b-u[y]),o.offsets.popper=getClientRect(o.offsets.popper);var w=f[m]+f[p]/2-b/2,C=getStyleComputedProperty(o.instance.popper),T=parseFloat(C["margin"+g]),S=parseFloat(C["border"+g+"Width"]),A=w-o.offsets.popper[m]-T-S;return A=Math.max(Math.min(u[p]-b,A),0),o.arrowElement=s,o.offsets.arrow=(h(a={},m,Math.round(A)),h(a,v,""),a),o},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function flip(o,i){if(isModifierEnabled(o.instance.modifiers,"inner"))return o;if(o.flipped&&o.placement===o.originalPlacement)return o;var a=getBoundaries(o.instance.popper,o.instance.reference,i.padding,i.boundariesElement,o.positionFixed),s=o.placement.split("-")[0],l=getOppositePlacement(s),c=o.placement.split("-")[1]||"",u=[];switch(i.behavior){case b:u=[s,l];break;case w:u=clockwise(s);break;case C:u=clockwise(s,!0);break;default:u=i.behavior}return u.forEach((function(f,d){if(s!==f||u.length===d+1)return o;s=o.placement.split("-")[0],l=getOppositePlacement(s);var p=o.offsets.popper,h=o.offsets.reference,m=Math.floor,v="left"===s&&m(p.right)>m(h.left)||"right"===s&&m(p.left)m(h.top)||"bottom"===s&&m(p.top)m(a.right),w=m(p.top)m(a.bottom),T="left"===s&&y||"right"===s&&b||"top"===s&&w||"bottom"===s&&C,S=-1!==["top","bottom"].indexOf(s),A=!!i.flipVariations&&(S&&"start"===c&&y||S&&"end"===c&&b||!S&&"start"===c&&w||!S&&"end"===c&&C),k=!!i.flipVariationsByContent&&(S&&"start"===c&&b||S&&"end"===c&&y||!S&&"start"===c&&C||!S&&"end"===c&&w),P=A||k;(v||T||P)&&(o.flipped=!0,(v||T)&&(s=u[d+1]),P&&(c=function getOppositeVariation(o){return"end"===o?"start":"start"===o?"end":o}(c)),o.placement=s+(c?"-"+c:""),o.offsets.popper=g({},o.offsets.popper,getPopperOffsets(o.instance.popper,o.offsets.reference,o.placement)),o=runModifiers(o.instance.modifiers,o,"flip"))})),o},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function inner(o){var i=o.placement,a=i.split("-")[0],s=o.offsets,l=s.popper,c=s.reference,u=-1!==["left","right"].indexOf(a),f=-1===["top","left"].indexOf(a);return l[u?"left":"top"]=c[a]-(f?l[u?"width":"height"]:0),o.placement=getOppositePlacement(i),o.offsets.popper=getClientRect(l),o}},hide:{order:800,enabled:!0,fn:function hide(o){if(!isModifierRequired(o.instance.modifiers,"hide","preventOverflow"))return o;var i=o.offsets.reference,a=find(o.instance.modifiers,(function(o){return"preventOverflow"===o.name})).boundaries;if(i.bottoma.right||i.top>a.bottom||i.right2&&void 0!==arguments[2]?arguments[2]:{};d(this,Popper),this.scheduleUpdate=function(){return requestAnimationFrame(a.update)},this.update=c(this.update.bind(this)),this.options=g({},Popper.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(g({},Popper.Defaults.modifiers,s.modifiers)).forEach((function(o){a.options.modifiers[o]=g({},Popper.Defaults.modifiers[o]||{},s.modifiers?s.modifiers[o]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(o){return g({name:o},a.options.modifiers[o])})).sort((function(o,i){return o.order-i.order})),this.modifiers.forEach((function(o){o.enabled&&isFunction(o.onLoad)&&o.onLoad(a.reference,a.popper,a.options,o,a.state)})),this.update();var l=this.options.eventsEnabled;l&&this.enableEventListeners(),this.state.eventsEnabled=l}return p(Popper,[{key:"update",value:function update$$1(){return update.call(this)}},{key:"destroy",value:function destroy$$1(){return destroy.call(this)}},{key:"enableEventListeners",value:function enableEventListeners$$1(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function disableEventListeners$$1(){return disableEventListeners.call(this)}}]),Popper}();S.Utils=("undefined"!==typeof window?window:a.g).PopperUtils,S.placements=v,S.Defaults=T,i.default=S},893:function(o,i,a){var s,l;window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(o){var i,a=(this.document||this.ownerDocument).querySelectorAll(o),s=this;do{for(i=a.length;0<=--i&&a.item(i)!==s;);}while(i<0&&(s=s.parentElement));return s}),function(){function e(o,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(o,i.bubbles,i.cancelable,i.detail),a}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}(),function(){for(var o=0,i=["ms","moz","webkit","o"],a=0;aS.durationMax?S.durationMax:S.durationMin&&A=U)return y.cancelScroll(!0),u(s,a,b),f("scrollStop",g,s,d),!(v=k=null)}(O,N)||(v=o.requestAnimationFrame(E),k=i)};0===o.pageYOffset&&o.scrollTo(0,0),D=s,R=g,b||history.pushState&&R.updateURL&&history.pushState({smoothScroll:JSON.stringify(R),anchor:D.id},document.title,D===document.documentElement?"#top":"#"+D.id),"matchMedia"in o&&o.matchMedia("(prefers-reduced-motion)").matches?u(s,Math.floor(N),!1):(f("scrollStart",g,s,d),y.cancelScroll(!0),o.requestAnimationFrame(B))}}},b=function t(i){if(!i.defaultPrevented&&!(0!==i.button||i.metaKey||i.ctrlKey||i.shiftKey)&&"closest"in i.target&&(g=i.target.closest(d))&&"a"===g.tagName.toLowerCase()&&!i.target.closest(h.ignore)&&g.hostname===o.location.hostname&&g.pathname===o.location.pathname&&/#/.test(g.href)){var t,a;try{t=s(decodeURIComponent(g.hash))}catch(i){t=s(g.hash)}if("#"===t){if(!h.topOnEmptyHash)return;a=document.documentElement}else a=document.querySelector(t);(a=a||"#top"!==t?a:document.documentElement)&&(i.preventDefault(),function(i){if(history.replaceState&&i.updateURL&&!history.state){var a=o.location.hash;a=a||"",history.replaceState({smoothScroll:JSON.stringify(i),anchor:a||o.pageYOffset},document.title,a||o.location.href)}}(h),y.animateScroll(a,g))}},w=function n(o){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(h)){var i=history.state.anchor;"string"==typeof i&&i&&!(i=document.querySelector(s(history.state.anchor)))||y.animateScroll(i,null,{updateURL:!1})}};return y.destroy=function(){h&&(document.removeEventListener("click",b,!1),o.removeEventListener("popstate",w,!1),y.cancelScroll(),v=m=g=h=null)},function(){if(!("querySelector"in document&&"addEventListener"in o&&"requestAnimationFrame"in o&&"closest"in o.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";y.destroy(),h=a(i,p||{}),m=h.header?document.querySelector(h.header):null,document.addEventListener("click",b,!1),h.updateURL&&h.popstate&&o.addEventListener("popstate",w,!1)}(),y}}(l)}.apply(i,[]))||(o.exports=s)},976:function(){function _gaLt(o){if("function"===typeof ga){for(var i=o.srcElement||o.target;i&&("undefined"==typeof i.tagName||"a"!=i.tagName.toLowerCase()||!i.href);)i=i.parentNode;if(i&&i.href){var a=i.href;if(-1==a.indexOf(location.host)&&!a.match(/^javascript:/i)){var s=!(!i.target||i.target.match(/^_(self|parent|top)$/i))&&i.target;ga("send","event","Outgoing Links",a,document.location.pathname+document.location.search,{hitCallback:function hitBack(o,i){i?window.open(o,i):window.location.href=o}(a,s)}),o.preventDefault?o.preventDefault():o.returnValue=!1}}}}var o=window;o.addEventListener?o.addEventListener("load",(function(){document.body.addEventListener("click",_gaLt,!1)}),!1):o.attachEvent&&o.attachEvent("onload",(function(){document.body.attachEvent("onclick",_gaLt)}))},770:function(o,i,a){"use strict";a.r(i),i.default="../fonts/photo3.svg"},705:function(o){o.exports="../img/bg.png"},759:function(o){o.exports="../img/photo1.png"},220:function(o){o.exports="../img/photo2.jpg"},761:function(o){function webpackEmptyContext(o){var i=new Error("Cannot find module '"+o+"'");throw i.code="MODULE_NOT_FOUND",i}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id=761,o.exports=webpackEmptyContext},310:function(o,i,a){var s={"./bg.png":705,"./photo1.png":759,"./photo2.jpg":220,"./photo3.svg":770,"bg.png":705,"img/bg.png":705,"img/photo1.png":759,"img/photo2.jpg":220,"img/photo3.svg":770,"photo1.png":759,"photo2.jpg":220,"photo3.svg":770,"src/img/bg.png":705,"src/img/photo1.png":759,"src/img/photo2.jpg":220,"src/img/photo3.svg":770};function webpackContext(o){var i=webpackContextResolve(o);return a(i)}function webpackContextResolve(o){if(!a.o(s,o)){var i=new Error("Cannot find module '"+o+"'");throw i.code="MODULE_NOT_FOUND",i}return s[o]}webpackContext.keys=function webpackContextKeys(){return Object.keys(s)},webpackContext.resolve=webpackContextResolve,o.exports=webpackContext,webpackContext.id=310},609:function(o){"use strict";o.exports=jQuery}},i={};function __webpack_require__(a){if(i[a])return i[a].exports;var s=i[a]={exports:{}};return o[a].call(s.exports,s,s.exports,__webpack_require__),s.exports}__webpack_require__.n=function(o){var i=o&&o.__esModule?function(){return o.default}:function(){return o};return __webpack_require__.d(i,{a:i}),i},__webpack_require__.d=function(o,i){for(var a in i)__webpack_require__.o(i,a)&&!__webpack_require__.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:i[a]})},__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(o){if("object"===typeof window)return window}}(),__webpack_require__.o=function(o,i){return Object.prototype.hasOwnProperty.call(o,i)},__webpack_require__.r=function(o){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},function(){"use strict";var o=__webpack_require__(609),i=__webpack_require__.n(o),a=(__webpack_require__(734),__webpack_require__(875),__webpack_require__(93),__webpack_require__(918),__webpack_require__(154),__webpack_require__(695),__webpack_require__(456),{AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"});__webpack_require__(89);function _typeof(o){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(o){return typeof o}:function _typeof(o){return o&&"function"===typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}function _defineProperties(o,i){for(var a=0;a',s.divClass=o.divClass,s.align=o.align,s.isDebugMode=o.debug,s.onClick=o.onClick,s.onMouseOver=o.onMouseOver,s.isBoolean=function(o){return"boolean"===typeof o},s.isNotUndefined=function(o){return"undefined"!==typeof o},s.hasContent=function(o){return o.length>0},s.isString=function(o){return"string"===typeof o},s.isFunction=function(o){return"function"===typeof o},i}return function _createClass(o,i,a){return i&&_defineProperties(o.prototype,i),a&&_defineProperties(o,a),o}(GoogleMapsHtmlOverlay,[{key:"onAdd",value:function onAdd(){var o=this;o.div=document.createElement("div"),o.div.style.position="absolute",o.isNotUndefined(o.divClass)&&o.hasContent(o.divClass)&&(o.div.className=o.divClass),o.isNotUndefined(o.html)&&o.hasContent(o.html)&&o.isString(o.html)&&(o.div.innerHTML=o.html),o.isBoolean(o.isDebugMode)&&o.isDebugMode&&(o.div.className="debug-mode",o.div.innerHTML='
Debug mode
',o.div.setAttribute("style","position: absolute;border: 5px dashed red;height: 150px;width: 150px;display: flex;justify-content: center;align-items: center;")),o.getPanes().overlayMouseTarget.appendChild(o.div),google.maps.event.addDomListener(o.div,"click",(function(i){google.maps.event.trigger(o,"click"),o.isFunction(o.onClick)&&o.onClick(),i.stopPropagation()})),google.maps.event.addDomListener(o.div,"mouseover",(function(i){google.maps.event.trigger(o,"mouseover"),o.isFunction(o.onMouseOver)&&o.onMouseOver(),i.stopPropagation()}))}},{key:"draw",value:function draw(){var o=this,a=i()(o.div).find(".mapboxgl-marker,.marker-pin,.mapboxgl-popup,.popup");a.length||(a=i()(o.div));var s=o.getProjection().fromLatLngToDivPixel(new google.maps.LatLng(o.position)),l={y:void 0,x:void 0},c=a.outerWidth(),u=a.outerHeight();switch(Array.isArray(o.align)?o.align.join(" "):""){case"left top":l.y=u,l.x=c;break;case"left center":l.y=u/2,l.x=c;break;case"left bottom":l.y=0,l.x=c;break;case"center top":l.y=u,l.x=c/2;break;case"center center":l.y=u/2,l.x=c/2;break;case"center bottom":l.y=0,l.x=c/2;break;case"right top":l.y=u,l.x=0;break;case"right center":l.y=u/2,l.x=0;break;case"right bottom":l.y=0,l.x=0;break;default:l.y=u/2,l.x=c/2}o.div.style.top="".concat(s.y-l.y,"px"),o.div.style.left="".concat(s.x-l.x,"px")}},{key:"getPosition",value:function getPosition(){return this.position}},{key:"getDiv",value:function getDiv(){return this.div}},{key:"setPosition",value:function setPosition(o,i){var a=this;a.position=o,a.align=i,a.draw()}}]),GoogleMapsHtmlOverlay}()}};function _map_google_defineProperties(o,i){for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:[],a=this,s=window;a.$el=o,a.config=i,a.markers=[],s["init".concat(a.getName())]=function(){a.googleApiLoaded()},$("body").append(' diff --git a/package.json b/package.json index ce008e6..debec37 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { - "name": "ss-webpack-boilerplate", - "version": "2.0.2", - "description": "Lets you create SilverStripe faster", + "name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate", + "version": "2.8.3", "author": "Tony Air ", "license": "MIT", + "description": "This UI Kit allows you to build Bootstrap 4 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.", "private": false, + "main": "src/js/app.js", "repository": { "type": "git", - "url": "git+https://github.com/a2nt/silverstripe-webpack" + "url": "git+https://github.com/a2nt/webpack-bootstrap-ui-kit" }, "engines": { "yarn": ">= 1.0.0" @@ -31,8 +32,7 @@ "ie>=11" ], "dependencies": { - "@a2nt/meta-lightbox": "^2.7.1", - "@a2nt/ss-bootstrap-ui-webpack-boilerplate": "^2.8.2", + "@a2nt/meta-lightbox": "^2.7.3", "aos": "^2.3.4", "bootbox": "^5.5.2", "bootstrap": "^4.6.0", diff --git a/webpack.config.common.js b/webpack.config.common.js index 423caa6..cf253e7 100644 --- a/webpack.config.common.js +++ b/webpack.config.common.js @@ -9,7 +9,7 @@ const conf = commonVariables.configuration; const path = require('path'); const filesystem = require('fs'); -const UIInfo = require('./node_modules/@a2nt/ss-bootstrap-ui-webpack-boilerplate/package.json'); +const UIInfo = require('./package.json'); const UINAME = JSON.stringify(UIInfo.name); const UIVERSION = JSON.stringify(UIInfo.version); console.info(`%cUI Kit ${UINAME} ${UIVERSION}`, 'color:yellow;font-size:14px');