!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VueGridLayout=e():t.VueGridLayout=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){"use strict";function r(t){for(var e=0,n=void 0,r=0,i=t.length;re&&(e=n);return e}function i(t){for(var e=Array(t.length),n=0,r=t.length;n=e.x+e.w)&&(!(t.y+t.h<=e.y)&&!(t.y>=e.y+e.h))))}function s(t,e){for(var n=f(t),r=w(t),i=Array(t.length),o=0,a=r.length;o0&&!d(t,e);)e.y--;for(var r=void 0;r=d(t,e);)e.y=r.y+r.h;return e}function c(t,e){for(var n=f(t),r=0,i=t.length;re.cols&&(o.x=e.cols-o.w),o.x<0&&(o.x=0,o.w=e.cols),o.static)for(;d(n,o);)o.y++;else n.push(o)}return t}function u(t,e){for(var n=0,r=t.length;nr;"number"==typeof n&&(e.x=n),"number"==typeof r&&(e.y=r),e.moved=!0;var a=w(t);o&&(a=a.reverse());for(var s=p(a,e),l=0,c=s.length;lu.y&&e.y-u.y>u.h/4||(t=u.static?v(t,u,e,i):v(t,e,u,i)))}return t}function v(t,e,n,r){if(r){var i={x:n.x,y:n.y,w:n.w,h:n.h,i:"-1"};if(i.y=Math.max(e.y-n.h,0),!d(t,i))return h(t,n,void 0,i.y)}return h(t,n,void 0,n.y+1)}function g(t){return 100*t+"%"}function m(t,e,n,r){var i="translate3d("+e+"px,"+t+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function y(t,e,n,r){var i="translate3d("+-1*e+"px,"+t+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function b(t,e,n,r){return{top:t+"px",left:e+"px",width:n+"px",height:r+"px",position:"absolute"}}function x(t,e,n,r){return{top:t+"px",right:e+"px",width:n+"px",height:r+"px",position:"absolute"}}function w(t){return[].concat(t).sort(function(t,e){return t.y>e.y||t.y===e.y&&t.x>e.x?1:-1})}function C(t,e){e=e||"Layout";var n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var r=0,i=t.length;rn.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],i=0;i4?t:void 0}())},r.isLegacyOpera=function(){return!!window.opera}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(1),o=r(i),a=n(16),s=r(a),l=n(33),c=r(l),u={ResponsiveGridLayout:c.default,GridLayout:s.default,GridItem:o.default};t.exports=u},function(t,e,n){var r=n(10);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(3)("d96c4fce",r,!0)},function(t,e,n){e=t.exports=n(2)(),e.push([t.i,'.vue-grid-item{transition:all .2s ease;transition-property:left,top,right}.vue-grid-item.cssTransforms{transition-property:transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg08IS0tIEdlbmVyYXRvcjogQWRvYmUgRmlyZXdvcmtzIENTNiwgRXhwb3J0IFNWRyBFeHRlbnNpb24gYnkgQWFyb24gQmVhbGwgKGh0dHA6Ly9maXJld29ya3MuYWJlYWxsLmNvbSkgLiBWZXJzaW9uOiAwLjYuMSAgLS0+DTwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DTxzdmcgaWQ9IlVudGl0bGVkLVBhZ2UlMjAxIiB2aWV3Qm94PSIwIDAgNiA2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHZlcnNpb249IjEuMSINCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQl4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiDT4NCTxnIG9wYWNpdHk9IjAuMzAyIj4NCQk8cGF0aCBkPSJNIDYgNiBMIDAgNiBMIDAgNC4yIEwgNCA0LjIgTCA0LjIgNC4yIEwgNC4yIDAgTCA2IDAgTCA2IDYgTCA2IDYgWiIgZmlsbD0iIzAwMDAwMCIvPg0JPC9nPg08L3N2Zz4=");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAuMDAwMDAwMDAwMDAwMDAyIiBoZWlnaHQ9IjEwLjAwMDAwMDAwMDAwMDAwMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIDwhLS0gQ3JlYXRlZCB3aXRoIE1ldGhvZCBEcmF3IC0gaHR0cDovL2dpdGh1Yi5jb20vZHVvcGl4ZWwvTWV0aG9kLURyYXcvIC0tPgogPGc+CiAgPHRpdGxlPmJhY2tncm91bmQ8L3RpdGxlPgogIDxyZWN0IGZpbGw9Im5vbmUiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgaGVpZ2h0PSIxMiIgd2lkdGg9IjEyIiB5PSItMSIgeD0iLTEiLz4KICA8ZyBkaXNwbGF5PSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgeT0iMCIgeD0iMCIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSIgaWQ9ImNhbnZhc0dyaWQiPgogICA8cmVjdCBmaWxsPSJ1cmwoI2dyaWRwYXR0ZXJuKSIgc3Ryb2tlLXdpZHRoPSIwIiB5PSIwIiB4PSIwIiBoZWlnaHQ9IjEwMCUiIHdpZHRoPSIxMDAlIi8+CiAgPC9nPgogPC9nPgogPGc+CiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPgogIDxsaW5lIGNhbnZhcz0iI2ZmZmZmZiIgY2FudmFzLW9wYWNpdHk9IjEiIHN0cm9rZS1saW5lY2FwPSJ1bmRlZmluZWQiIHN0cm9rZS1saW5lam9pbj0idW5kZWZpbmVkIiBpZD0ic3ZnXzEiIHkyPSItNzAuMTc4NDA3IiB4Mj0iMTI0LjQ2NDE3NSIgeTE9Ii0zOC4zOTI3MzciIHgxPSIxNDQuODIxMjg5IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlPSIjMDAwIiBmaWxsPSJub25lIi8+CiAgPGxpbmUgc3Ryb2tlPSIjNjY2NjY2IiBzdHJva2UtbGluZWNhcD0idW5kZWZpbmVkIiBzdHJva2UtbGluZWpvaW49InVuZGVmaW5lZCIgaWQ9InN2Z181IiB5Mj0iOS4xMDY5NTciIHgyPSIwLjk0NzI0NyIgeTE9Ii0wLjAxODEyOCIgeDE9IjAuOTQ3MjQ3IiBzdHJva2Utd2lkdGg9IjIiIGZpbGw9Im5vbmUiLz4KICA8bGluZSBzdHJva2UtbGluZWNhcD0idW5kZWZpbmVkIiBzdHJva2UtbGluZWpvaW49InVuZGVmaW5lZCIgaWQ9InN2Z183IiB5Mj0iOSIgeDI9IjEwLjA3MzUyOSIgeTE9IjkiIHgxPSItMC42NTU2NCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiM2NjY2NjYiIGZpbGw9Im5vbmUiLz4KIDwvZz4KPC9zdmc+);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}',""])},function(t,e){t.exports=function(t,e){for(var n=[],r={},i=0;ithis.cols&&(this.x=0,this.w=this.cols);var t=this.calcPosition(this.x,this.y,this.w,this.h);this.isDragging&&(t.top=this.dragging.top,this.renderRtl?t.right=this.dragging.left:t.left=this.dragging.left),this.isResizing&&(t.width=this.resizing.width,t.height=this.resizing.height);var e=void 0;e=this.useCssTransforms?this.renderRtl?(0,r.setTransformRtl)(t.top,t.right,t.width,t.height):(0,r.setTransform)(t.top,t.left,t.width,t.height):this.renderRtl?(0,r.setTopRight)(t.top,t.right,t.width,t.height):(0,r.setTopLeft)(t.top,t.left,t.width,t.height),this.style=e},handleResize:function(t){var e=(0,i.getControlPosition)(t);if(null!=e){var n=e.x,r=e.y,o={width:0,height:0};switch(t.type){case"resizestart":this.previousW=this.w,this.previousH=this.h;var a=this.calcPosition(this.x,this.y,this.w,this.h);o.width=a.width,o.height=a.height,this.resizing=o,this.isResizing=!0;break;case"resizemove":var s=(0,i.createCoreData)(this.lastW,this.lastH,n,r);this.renderRtl?o.width=this.resizing.width-s.deltaX:o.width=this.resizing.width+s.deltaX,o.height=this.resizing.height+s.deltaY,this.resizing=o;break;case"resizeend":var a=this.calcPosition(this.x,this.y,this.w,this.h);o.width=a.width,o.height=a.height,this.resizing=null,this.isResizing=!1}var a=this.calcWH(o.height,o.width);a.wthis.maxW&&(a.w=this.maxW),a.hthis.maxH&&(a.h=this.maxH),a.h<1&&(a.h=1),a.w<1&&(a.w=1),this.lastW=n,this.lastH=r,this.w===a.w&&this.h===a.h||this.$emit("resize",this.i,a.h,a.w),"resizeend"!==t.type||this.previousW===this.w&&this.previousH===this.h||this.$emit("resized",this.i,a.h,a.w,o.height,o.width),this.eventBus.$emit("resizeEvent",t.type,this.i,this.x,this.y,a.h,a.w)}},handleDrag:function(t){if(!this.isResizing){var e=(0,i.getControlPosition)(t);if(null!==e){var n=e.x,r=e.y,o={top:0,left:0};switch(t.type){case"dragstart":this.previousX=this.x,this.previousY=this.y;var a=t.target.offsetParent.getBoundingClientRect(),s=t.target.getBoundingClientRect();this.renderRtl?o.left=-1*(s.right-a.right):o.left=s.left-a.left,o.top=s.top-a.top,this.dragging=o,this.isDragging=!0;break;case"dragend":if(!this.isDragging)return;a=t.target.offsetParent.getBoundingClientRect(),s=t.target.getBoundingClientRect(),this.renderRtl?o.left=-1*(s.right-a.right):o.left=s.left-a.left,o.top=s.top-a.top,this.dragging=null,this.isDragging=!1,!0;break;case"dragmove":var l=(0,i.createCoreData)(this.lastX,this.lastY,n,r);this.renderRtl?o.left=this.dragging.left-l.deltaX:o.left=this.dragging.left+l.deltaX,o.top=this.dragging.top+l.deltaY,this.dragging=o}if(this.renderRtl)var c=this.calcXY(o.top,o.left);else var c=this.calcXY(o.top,o.left);this.lastX=n,this.lastY=r,this.x===c.x&&this.y===c.y||this.$emit("move",this.i,c.x,c.y),"dragend"!==t.type||this.previousX===this.x&&this.previousY===this.y||this.$emit("moved",this.i,c.x,c.y),this.eventBus.$emit("dragEvent",t.type,this.i,c.x,c.y,this.h,this.w)}}},calcPosition:function(t,e,n,r){var i=this.calcColWidth();if(this.renderRtl)var o={right:Math.round(i*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(i*n+Math.max(0,n-1)*this.margin[0]),height:r===1/0?r:Math.round(this.rowHeight*r+Math.max(0,r-1)*this.margin[1])};else var o={left:Math.round(i*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(i*n+Math.max(0,n-1)*this.margin[0]),height:r===1/0?r:Math.round(this.rowHeight*r+Math.max(0,r-1)*this.margin[1])};return o},calcXY:function(t,e){var n=this.calcColWidth(),r=Math.round((e-this.margin[0])/(n+this.margin[0])),i=Math.round((t-this.margin[1])/(this.rowHeight+this.margin[1]));return r=Math.max(Math.min(r,this.cols-this.w),0),i=Math.max(Math.min(i,this.maxRows-this.h),0),{x:r,y:i}},calcColWidth:function(){return(this.containerWidth-this.margin[0]*(this.cols+1))/this.cols},calcWH:function(t,e){var n=this.calcColWidth(),r=Math.round((e+this.margin[0])/(n+this.margin[0])),i=Math.round((t+this.margin[1])/(this.rowHeight+this.margin[1]));return r=Math.max(Math.min(r,this.cols-this.x),0),i=Math.max(Math.min(i,this.maxRows-this.y),0),{w:r,h:i}},updateWidth:function(t,e){this.containerWidth=t,void 0!==e&&null!==e&&(this.cols=e)},compact:function(){this.createStyle()}}}},function(t,e,n){"use strict";function r(t){return i(t)}function i(t){var e=t.target.offsetParent||document.body,n=t.offsetParent===document.body?{left:0,top:0}:e.getBoundingClientRect();return{x:t.clientX+e.scrollLeft-n.left,y:t.clientY+e.scrollTop-n.top}}function o(t,e,n,r){return a(t)?{deltaX:n-t,deltaY:r-e,lastX:t,lastY:e,x:n,y:r}:{deltaX:0,deltaY:0,lastX:n,lastY:r,x:n,y:r}}function a(t){return"number"==typeof t&&!isNaN(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getControlPosition=r,e.offsetXYFromParentOf=i,e.createCoreData=o},function(t,e,n){var r,r;!function(e){t.exports=e()}(function(){return function t(e,n,i){function o(s,l){if(!n[s]){if(!e[s]){var c="function"==typeof r&&r;if(!l&&c)return r(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};e[s][0].call(d.exports,function(t){var n=e[s][1][t];return o(n||t)},d,d.exports,t,e,n,i)}return n[s].exports}for(var a="function"==typeof r&&r,s=0;s6&&void 0!==arguments[6]&&arguments[6];r(this,t);var f=e.target,h=(f&&f.options||a).deltaSource,v=o(f,u,l),g="start"===c,m="end"===c,y=g?e.startCoords:e.curCoords,b=e.prevEvent;u=u||e.element;var x=i({},y.page),w=i({},y.client);x.x-=v.x,x.y-=v.y,w.x-=v.x,w.y-=v.y,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.button=n.button,this.buttons=n.buttons,this.target=u,this.currentTarget=u,this.relatedTarget=d||null,this.preEnd=p,this.type=l+(c||""),this.interaction=e,this.interactable=f,this.t0=g?e.downTimes[e.downTimes.length-1]:b.t0;var C={interaction:e,event:n,action:l,phase:c,element:u,related:d,page:x,client:w,coords:y,starting:g,ending:m,deltaSource:h,iEvent:this};s.fire("set-xy",C),m?(this.pageX=b.pageX,this.pageY=b.pageY,this.clientX=b.clientX,this.clientY=b.clientY):(this.pageX=x.x,this.pageY=x.y,this.clientX=w.x,this.clientY=w.y),this.x0=e.startCoords.page.x-v.x,this.y0=e.startCoords.page.y-v.y,this.clientX0=e.startCoords.client.x-v.x,this.clientY0=e.startCoords.client.y-v.y,s.fire("set-delta",C),this.timeStamp=y.timeStamp,this.dt=e.pointerDelta.timeStamp,this.duration=this.timeStamp-this.t0,this.speed=e.pointerDelta[h].speed,this.velocityX=e.pointerDelta[h].vx,this.velocityY=e.pointerDelta[h].vy,this.swipe=m||"inertiastart"===c?this.getSwipe():null,s.fire("new",C)}return t.prototype.getSwipe=function(){var t=this.interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;e<0&&(e+=360);var n=112.5<=e&&e<247.5,r=202.5<=e&&e<337.5,i=!n&&(292.5<=e||e<67.5);return{up:r,down:!r&&22.5<=e&&e<157.5,left:n,right:i,angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}},t.prototype.preventDefault=function(){},t.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}();s.on("set-delta",function(t){var e=t.iEvent,n=t.interaction,r=t.starting,i=t.deltaSource,o=r?e:n.prevEvent;"client"===i?(e.dx=e.clientX-o.clientX,e.dy=e.clientY-o.clientY):(e.dx=e.pageX-o.pageX,e.dy=e.pageY-o.pageY)}),l.signals=s,e.exports=l},{"./defaultOptions":18,"./utils/Signals":35,"./utils/extend":41,"./utils/getOriginXY":42}],4:[function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=t("./utils/is"),o=t("./utils/events"),a=t("./utils/extend"),s=t("./actions/base"),l=t("./scope"),c=t("./Eventable"),u=t("./defaultOptions"),d=t("./utils/Signals").new(),p=t("./utils/domUtils"),f=p.getElementRect,h=p.nodeContains,v=p.trySelector,g=t("./utils/window"),m=g.getWindow,y=t("./utils/arr"),b=y.indexOf,x=y.contains,w=t("./utils/browser"),C=w.wheelEvent;l.interactables=[];var _=function(){function t(e,n){r(this,t),n=n||{},this.target=e,this.events=new c,this._context=n.context||l.document,this._win=m(v(e)?this._context:e),this._doc=this._win.document,d.fire("new",{target:e,options:n,interactable:this,win:this._win}),l.addDocument(this._doc,this._win),l.interactables.push(this),this.set(n)}return t.prototype.setOnEvents=function(t,e){var n="on"+t;return i.function(e.onstart)&&(this.events[n+"start"]=e.onstart),i.function(e.onmove)&&(this.events[n+"move"]=e.onmove),i.function(e.onend)&&(this.events[n+"end"]=e.onend),i.function(e.oninertiastart)&&(this.events[n+"inertiastart"]=e.oninertiastart),this},t.prototype.setPerAction=function(t,e){for(var n in e)n in u[t]&&(i.object(e[n])?(this.options[t][n]=a(this.options[t][n]||{},e[n]),i.object(u.perAction[n])&&"enabled"in u.perAction[n]&&(this.options[t][n].enabled=!1!==e[n].enabled)):i.bool(e[n])&&i.object(u.perAction[n])?this.options[t][n].enabled=e[n]:void 0!==e[n]&&(this.options[t][n]=e[n]))},t.prototype.getRect=function(t){return t=t||this.target,i.string(this.target)&&!i.element(t)&&(t=this._context.querySelector(this.target)),f(t)},t.prototype.rectChecker=function(t){return i.function(t)?(this.getRect=t,this):null===t?(delete this.options.getRect,this):this.getRect},t.prototype._backCompatOption=function(t,e){if(v(e)||i.object(e)){this.options[t]=e;for(var n=s.names,r=Array.isArray(n),o=0,n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if(o=n.next(),o.done)break;a=o.value}var l=a;this.options[l][t]=e}return this}return this.options[t]},t.prototype.origin=function(t){return this._backCompatOption("origin",t)},t.prototype.deltaSource=function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource},t.prototype.context=function(){return this._context},t.prototype.inContext=function(t){return this._context===t.ownerDocument||h(this._context,t)},t.prototype.fire=function(t){return this.events.fire(t),this},t.prototype._onOffMultiple=function(t,e,n,r){if(i.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i.array(e)){for(var o=0;o=l.length)break;f=l[p++]}else{if(p=l.next(),p.done)break;f=p.value}var h=f;this.options[h]=u.base[h],h in e&&this[h](e[h])}return d.fire("set",{options:e,interactable:this}),this},t.prototype.unset=function(){if(o.remove(this.target,"all"),i.string(this.target))for(var t in o.delegatedEvents){var e=o.delegatedEvents[t];e.selectors[0]===this.target&&e.contexts[0]===this._context&&(e.selectors.splice(0,1),e.contexts.splice(0,1),e.listeners.splice(0,1),e.selectors.length||(e[t]=null)),o.remove(this._context,t,o.delegateListener),o.remove(this._context,t,o.delegateUseCapture,!0)}else o.remove(this,"all");d.fire("unset",{interactable:this}),l.interactables.splice(b(l.interactables,this),1);for(var n=l.interactions||[],r=Array.isArray(n),a=0,n=r?n:n[Symbol.iterator]();;){var s;if(r){if(a>=n.length)break;s=n[a++]}else{if(a=n.next(),a.done)break;s=a.value}var c=s;c.target===this&&c.interacting()&&c.stop()}return l.interact},t}();l.interactables.indexOfElement=function(t,e){e=e||l.document;for(var n=0;n=b.length)break;C=b[w++]}else{if(w=b.next(),w.done)break;C=w.value}var _=C,E=_[0],S=_[1];S._updateEventTargets(i,o),S[t](E,e,i,o)}}}function o(t){for(var e=0;et.pointerMoveTolerance);var s={pointer:e,pointerIndex:this.getPointerIndex(e),event:n,eventTarget:r,dx:o,dy:a,duplicate:i,interaction:this,interactingBeforeMove:this.interacting()};i||l.setCoordDeltas(this.pointerDelta,this.prevCoords,this.curCoords),f.fire("move",s),i||(this.interacting()&&this.doMove(s),this.pointerWasMoved&&l.copyCoords(this.prevCoords,this.curCoords))},t.prototype.doMove=function(t){t=l.extend({pointer:this.pointers[0],event:this.prevEvent,eventTarget:this._eventTarget,interaction:this},t||{}),f.fire("before-action-move",t),this._dontFireMove||f.fire("action-move",t),this._dontFireMove=!1},t.prototype.pointerUp=function(t,e,n,r){var i=this.getPointerIndex(t);f.fire(/cancel$/i.test(e.type)?"cancel":"up",{pointer:t,pointerIndex:i,event:e,eventTarget:n,curEventTarget:r,interaction:this}),this.simulation||this.end(e),this.pointerIsDown=!1,this.removePointer(t,e)},t.prototype.end=function(t){t=t||this.prevEvent,this.interacting()&&f.fire("action-end",{event:t,interaction:this}),this.stop()},t.prototype.currentAction=function(){return this._interacting?this.prepared.name:null},t.prototype.interacting=function(){return this._interacting},t.prototype.stop=function(){f.fire("stop",{interaction:this}),this._interacting&&(f.fire("stop-active",{interaction:this}),f.fire("stop-"+this.prepared.name,{interaction:this})),this.target=this.element=null,this._interacting=!1,this.prepared.name=this.prevEvent=null},t.prototype.getPointerIndex=function(t){return"mouse"===this.pointerType||"pen"===this.pointerType?0:l.indexOf(this.pointerIds,l.getPointerId(t))},t.prototype.updatePointer=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e&&/(down|start)$/i.test(e.type),r=l.getPointerId(t),i=this.getPointerIndex(t);return-1===i&&(i=this.pointerIds.length,this.pointerIds[i]=r),n&&f.fire("update-pointer-down",{pointer:t,event:e,down:n,pointerId:r,pointerIndex:i,interaction:this}),this.pointers[i]=t,i},t.prototype.removePointer=function(t,e){var n=this.getPointerIndex(t);-1!==n&&(f.fire("remove-pointer",{pointer:t,event:e,pointerIndex:n,interaction:this}),this.pointers.splice(n,1),this.pointerIds.splice(n,1),this.downTargets.splice(n,1),this.downTimes.splice(n,1))},t.prototype._updateEventTargets=function(t,e){this._eventTarget=t,this._curEventTarget=e},t}(),y=0,b=v.length;y=i.length)break;s=i[a++]}else{if(a=i.next(),a.done)break;s=a.value}var l=s;if(l.options.drop.enabled){var c=l.options.drop.accept;if(!(u.is.element(c)&&c!==e||u.is.string(c)&&!u.matchesSelector(e,c)))for(var p=u.is.string(l.target)?l._context.querySelectorAll(l.target):[l.target],f=0;fo.left&&c.xo.top&&c.y=o.left&&h<=o.right&&v>=o.top&&v<=o.bottom}if(f&&u.is.number(s)){a=Math.max(0,Math.min(o.right,f.right)-Math.max(o.left,f.left))*Math.max(0,Math.min(o.bottom,f.bottom)-Math.max(o.top,f.top))/(f.width*f.height)>=s}return this.options.drop.checker&&(a=this.options.drop.checker(t,e,a,this,i,n,r)),a},h.signals.on("unset",function(t){t.interactable.dropzone(!1)}),h.settingsMethods.push("dropChecker"),v.signals.on("new",function(t){t.dropTarget=null,t.dropElement=null,t.prevDropTarget=null,t.prevDropElement=null,t.dropEvents=null,t.activeDrops={dropzones:[],elements:[],rects:[]}}),v.signals.on("stop",function(t){var e=t.interaction;e.dropTarget=e.dropElement=e.prevDropTarget=e.prevDropElement=null}),p.dynamicDrop=function(t){return u.is.bool(t)?(y=t,p):y},u.merge(h.eventTypes,["dragenter","dragleave","dropactivate","dropdeactivate","dropmove","drop"]),c.methodDict.drop="dropzone",g.drop=m.defaults,e.exports=m},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../interact":21,"../scope":34,"../utils":44,"./base":6}],9:[function(t,e,n){"use strict";var r=t("./base"),i=t("../utils"),o=t("../InteractEvent"),a=t("../Interactable"),s=t("../Interaction"),l=t("../defaultOptions"),c={defaults:{enabled:!1,origin:null,restrict:null},checker:function(t,e,n,r,i){return i.pointerIds.length>=2?{name:"gesture"}:null},getCursor:function(){return""}};o.signals.on("new",function(t){var e=t.iEvent,n=t.interaction;"gesturestart"===e.type&&(e.ds=0,n.gesture.startDistance=n.gesture.prevDistance=e.distance,n.gesture.startAngle=n.gesture.prevAngle=e.angle,n.gesture.scale=1)}),o.signals.on("new",function(t){var e=t.iEvent,n=t.interaction;"gesturemove"===e.type&&(e.ds=e.scale-n.gesture.scale,n.target.fire(e),n.gesture.prevAngle=e.angle,n.gesture.prevDistance=e.distance,e.scale===1/0||null===e.scale||void 0===e.scale||isNaN(e.scale)||(n.gesture.scale=e.scale))}),a.prototype.gesturable=function(t){return i.is.object(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):i.is.bool(t)?(this.options.gesture.enabled=t,t||(this.ongesturestart=this.ongesturestart=this.ongestureend=null),this):this.options.gesture},o.signals.on("set-delta",function(t){var e=t.interaction,n=t.iEvent,r=t.action,a=t.event,s=t.starting,l=t.ending,c=t.deltaSource;if("gesture"===r){var u=e.pointers;n.touches=[u[0],u[1]],s?(n.distance=i.touchDistance(u,c),n.box=i.touchBBox(u),n.scale=1,n.ds=0,n.angle=i.touchAngle(u,void 0,c),n.da=0):l||a instanceof o?(n.distance=e.prevEvent.distance,n.box=e.prevEvent.box,n.scale=e.prevEvent.scale,n.ds=n.scale-1,n.angle=e.prevEvent.angle,n.da=n.angle-e.gesture.startAngle):(n.distance=i.touchDistance(u,c),n.box=i.touchBBox(u),n.scale=n.distance/e.gesture.startDistance,n.angle=i.touchAngle(u,e.gesture.prevAngle,c),n.ds=n.scale-e.gesture.prevScale,n.da=n.angle-e.gesture.prevAngle)}}),s.signals.on("new",function(t){t.gesture={start:{x:0,y:0},startDistance:0,prevDistance:0,distance:0,scale:1,startAngle:0,prevAngle:0}}),r.gesture=c,r.names.push("gesture"),i.merge(a.eventTypes,["gesturestart","gesturemove","gestureend"]),r.methodDict.gesture="gesturable",l.gesture=c.defaults,e.exports=c},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"./base":6}],10:[function(t,e,n){"use strict";function r(t,e,n,r,i,a,s){if(!e)return!1;if(!0===e){var l=o.is.number(a.width)?a.width:a.right-a.left,c=o.is.number(a.height)?a.height:a.bottom-a.top;if(l<0&&("left"===t?t="right":"right"===t&&(t="left")),c<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t)return n.x<(l>=0?a.left:a.right)+s;if("top"===t)return n.y<(c>=0?a.top:a.bottom)+s;if("right"===t)return n.x>(l>=0?a.right:a.left)-s;if("bottom"===t)return n.y>(c>=0?a.bottom:a.top)-s}return!!o.is.element(r)&&(o.is.element(e)?e===r:o.matchesUpTo(r,e,i))}var i=t("./base"),o=t("../utils"),a=t("../utils/browser"),s=t("../InteractEvent"),l=t("../Interactable"),c=t("../Interaction"),u=t("../defaultOptions"),d=a.supportsTouch||a.supportsPointerEvent?20:10,p={defaults:{enabled:!1,mouseButtons:null,origin:null,snap:null,restrict:null,inertia:null,autoScroll:null,square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},checker:function(t,e,n,i,a,s){if(!s)return null;var l=o.extend({},a.curCoords.page),c=n.options;if(c.resize.enabled){var u=c.resize,p={left:!1,right:!1,top:!1,bottom:!1};if(o.is.object(u.edges)){for(var f in p)p[f]=r(f,u.edges[f],l,a._eventTarget,i,s,u.margin||d);if(p.left=p.left&&!p.right,p.top=p.top&&!p.bottom,p.left||p.right||p.top||p.bottom)return{name:"resize",edges:p}}else{var h="y"!==c.resize.axis&&l.x>s.right-d,v="x"!==c.resize.axis&&l.y>s.bottom-d;if(h||v)return{name:"resize",axes:(h?"x":"")+(v?"y":"")}}}return null},cursors:a.isIe9OrOlder?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"},getCursor:function(t){if(t.axis)return p.cursors[t.name+t.axis];if(t.edges){for(var e="",n=["top","bottom","left","right"],r=0;r<4;r++)t.edges[n[r]]&&(e+=n[r]);return p.cursors[e]}}};s.signals.on("new",function(t){var e=t.iEvent,n=t.interaction;if("resizestart"===e.type&&n.prepared.edges){var r=n.target.getRect(n.element),i=n.target.options.resize;if(i.square||i.preserveAspectRatio){var a=o.extend({},n.prepared.edges);a.top=a.top||a.left&&!a.bottom,a.left=a.left||a.top&&!a.right,a.bottom=a.bottom||a.right&&!a.top,a.right=a.right||a.bottom&&!a.left,n.prepared._linkedEdges=a}else n.prepared._linkedEdges=null;i.preserveAspectRatio&&(n.resizeStartAspectRatio=r.width/r.height),n.resizeRects={start:r,current:o.extend({},r),inverted:o.extend({},r),previous:o.extend({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},e.rect=n.resizeRects.inverted,e.deltaRect=n.resizeRects.delta}}),s.signals.on("new",function(t){var e=t.iEvent,n=t.phase,r=t.interaction;if("move"===n&&r.prepared.edges){var i=r.target.options.resize,a=i.invert,s="reposition"===a||"negate"===a,l=r.prepared.edges,c=r.resizeRects.start,u=r.resizeRects.current,d=r.resizeRects.inverted,p=r.resizeRects.delta,f=o.extend(r.resizeRects.previous,d),h=l,v=e.dx,g=e.dy;if(i.preserveAspectRatio||i.square){var m=i.preserveAspectRatio?r.resizeStartAspectRatio:1;l=r.prepared._linkedEdges,h.left&&h.bottom||h.right&&h.top?g=-v/m:h.left||h.right?g=v/m:(h.top||h.bottom)&&(v=g*m)}if(l.top&&(u.top+=g),l.bottom&&(u.bottom+=g),l.left&&(u.left+=v),l.right&&(u.right+=v),s){if(o.extend(d,u),"reposition"===a){var y=void 0;d.top>d.bottom&&(y=d.top,d.top=d.bottom,d.bottom=y),d.left>d.right&&(y=d.left,d.left=d.right,d.right=y)}}else d.top=Math.min(u.top,c.bottom),d.bottom=Math.max(u.bottom,c.top),d.left=Math.min(u.left,c.right),d.right=Math.max(u.right,c.left);d.width=d.right-d.left,d.height=d.bottom-d.top;for(var b in d)p[b]=d[b]-f[b];e.edges=r.prepared.edges,e.rect=d,e.deltaRect=p}}),l.prototype.resizable=function(t){return o.is.object(t)?(this.options.resize.enabled=!1!==t.enabled,this.setPerAction("resize",t),this.setOnEvents("resize",t),/^x$|^y$|^xy$/.test(t.axis)?this.options.resize.axis=t.axis:null===t.axis&&(this.options.resize.axis=u.resize.axis),o.is.bool(t.preserveAspectRatio)?this.options.resize.preserveAspectRatio=t.preserveAspectRatio:o.is.bool(t.square)&&(this.options.resize.square=t.square),this):o.is.bool(t)?(this.options.resize.enabled=t,t||(this.onresizestart=this.onresizestart=this.onresizeend=null),this):this.options.resize},c.signals.on("new",function(t){t.resizeAxes="xy"}),s.signals.on("set-delta",function(t){var e=t.interaction,n=t.iEvent;"resize"===t.action&&e.resizeAxes&&(e.target.options.resize.square?("y"===e.resizeAxes?n.dx=n.dy:n.dy=n.dx,n.axes="xy"):(n.axes=e.resizeAxes,"x"===e.resizeAxes?n.dy=0:"y"===e.resizeAxes&&(n.dx=0)))}),i.resize=p,i.names.push("resize"),o.merge(l.eventTypes,["resizestart","resizemove","resizeinertiastart","resizeinertiaresume","resizeend"]),i.methodDict.resize="resizable",u.resize=p.defaults,e.exports=p},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"../utils/browser":37,"./base":6}],11:[function(t,e,n){"use strict";var r=t("./utils/raf"),i=t("./utils/window").getWindow,o=t("./utils/is"),a=t("./utils/domUtils"),s=t("./Interaction"),l=t("./defaultOptions"),c={defaults:{enabled:!1,container:null,margin:60,speed:300},interaction:null,i:null,x:0,y:0,isScrolling:!1,prevTime:0,start:function(t){c.isScrolling=!0,r.cancel(c.i),c.interaction=t,c.prevTime=(new Date).getTime(),c.i=r.request(c.scroll)},stop:function(){c.isScrolling=!1,r.cancel(c.i)},scroll:function(){var t=c.interaction.target.options[c.interaction.prepared.name].autoScroll,e=t.container||i(c.interaction.element),n=(new Date).getTime(),a=(n-c.prevTime)/1e3,s=t.speed*a;s>=1&&(o.window(e)?e.scrollBy(c.x*s,c.y*s):e&&(e.scrollLeft+=c.x*s,e.scrollTop+=c.y*s),c.prevTime=n),c.isScrolling&&(r.cancel(c.i),c.i=r.request(c.scroll))},check:function(t,e){var n=t.options;return n[e].autoScroll&&n[e].autoScroll.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&c.check(e.target,e.prepared.name)){if(e.simulation)return void(c.x=c.y=0);var r=void 0,s=void 0,l=void 0,u=void 0,d=e.target.options[e.prepared.name].autoScroll,p=d.container||i(e.element);if(o.window(p))u=n.clientXp.innerWidth-c.margin,l=n.clientY>p.innerHeight-c.margin;else{var f=a.getElementClientRect(p);u=n.clientXf.right-c.margin,l=n.clientY>f.bottom-c.margin}c.x=s?1:u?-1:0,c.y=l?1:r?-1:0,c.isScrolling||(c.margin=d.margin,c.speed=d.speed,c.start(e))}}};s.signals.on("stop-active",function(){c.stop()}),s.signals.on("action-move",c.onInteractionMove),l.perAction.autoScroll=c.defaults,e.exports=c},{"./Interaction":5,"./defaultOptions":18,"./utils/domUtils":39,"./utils/is":46,"./utils/raf":50,"./utils/window":52}],12:[function(t,e,n){"use strict";var r=t("../Interactable"),i=t("../actions/base"),o=t("../utils/is"),a=t("../utils/domUtils");r.prototype.getAction=function(t,e,n,r){var i=this.defaultActionChecker(t,e,n,r);return this.options.actionChecker?this.options.actionChecker(t,e,i,this,r,n):i},r.prototype.ignoreFrom=function(t){return this._backCompatOption("ignoreFrom",t)},r.prototype.allowFrom=function(t){return this._backCompatOption("allowFrom",t)},r.prototype.testIgnore=function(t,e,n){return!(!t||!o.element(n))&&(o.string(t)?a.matchesUpTo(n,t,e):!!o.element(t)&&a.nodeContains(t,n))},r.prototype.testAllow=function(t,e,n){return!t||!!o.element(n)&&(o.string(t)?a.matchesUpTo(n,t,e):!!o.element(t)&&a.nodeContains(t,n))},r.prototype.testIgnoreAllow=function(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)},r.prototype.actionChecker=function(t){return o.function(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker},r.prototype.styleCursor=function(t){return o.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor},r.prototype.defaultActionChecker=function(t,e,n,r){for(var o=this.getRect(r),a=null,s=i.names,l=Array.isArray(s),c=0,s=l?s:s[Symbol.iterator]();;){var u;if(l){if(c>=s.length)break;u=s[c++]}else{if(c=s.next(),c.done)break;u=c.value}var d=u;if((!n.pointerIsDown||!n.mouse||0!=(e.buttons&this.options[d].mouseButtons))&&(a=i[d].checker(t,e,this,r,n,o)))return a}}},{"../Interactable":4,"../actions/base":6,"../utils/domUtils":39,"../utils/is":46}],13:[function(t,e,n){"use strict";function r(t,e,n,r){return v.is.object(t)&&e.testIgnoreAllow(e.options[t.name],n,r)&&e.options[t.name].enabled&&s(e,n,t)?t:null}function i(t,e,n,i,o,a){for(var s=0,l=i.length;s=m.maxInteractions)return!1;if(d.target===t){if((s+=p===n.name|0)>=i)return!1;if(d.element===e&&(l++,p!==n.name||l>=o))return!1}}}return m.maxInteractions>0}}var l=t("../interact"),c=t("../Interactable"),u=t("../Interaction"),d=t("../actions/base"),p=t("../defaultOptions"),f=t("../utils/browser"),h=t("../scope"),v=t("../utils"),g=t("../utils/Signals").new();t("./InteractableMethods");var m={signals:g,withinInteractionLimit:s,maxInteractions:1/0,defaults:{perAction:{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null}},setActionDefaults:function(t){v.extend(t.defaults,m.defaults.perAction)}};u.signals.on("down",function(t){var e=t.interaction,n=t.pointer,r=t.event,i=t.eventTarget;if(!e.interacting()){a(e,o(e,n,r,i))}}),u.signals.on("move",function(t){var e=t.interaction,n=t.pointer,r=t.event,i=t.eventTarget;if(e.mouse&&!e.pointerIsDown&&!e.interacting()){a(e,o(e,n,r,i))}}),u.signals.on("move",function(t){var e=t.interaction,n=t.event;if(e.pointerIsDown&&!e.interacting()&&e.pointerWasMoved&&e.prepared.name){g.fire("before-start",t);var r=e.target;e.prepared.name&&r&&(r.options[e.prepared.name].manualStart||!s(r,e.element,e.prepared)?e.stop(n):e.start(e.prepared,r,e.element))}}),u.signals.on("stop",function(t){var e=t.interaction,n=e.target;n&&n.options.styleCursor&&(n._doc.documentElement.style.cursor="")}),c.prototype.getAction=function(t,e,n,r){var i=this.defaultActionChecker(t,e,n,r);return this.options.actionChecker?this.options.actionChecker(t,e,i,this,r,n):i},c.prototype.actionChecker=function(t){return v.is.function(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker},c.prototype.styleCursor=function(t){return v.is.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor},c.prototype.defaultActionChecker=function(t,e,n,r){for(var i=this.getRect(r),o=e.buttons||{0:1,1:4,3:8,4:16}[e.button],a=null,s=d.names,l=Array.isArray(s),c=0,s=l?s:s[Symbol.iterator]();;){var u;if(l){if(c>=s.length)break;u=s[c++]}else{if(c=s.next(),c.done)break;u=c.value}var p=u;if((!n.pointerIsDown||!n.mouse||0!=(o&this.options[p].mouseButtons))&&(a=d[p].checker(t,e,this,r,n,i)))return a}},l.maxInteractions=function(t){return v.is.number(t)?(m.maxInteractions=t,this):m.maxInteractions},c.settingsMethods.push("styleCursor"),c.settingsMethods.push("actionChecker"),c.settingsMethods.push("ignoreFrom"),c.settingsMethods.push("allowFrom"),p.base.actionChecker=null,p.base.styleCursor=!0,v.extend(p.perAction,m.defaults.perAction),e.exports=m},{"../Interactable":4,"../Interaction":5,"../actions/base":6,"../defaultOptions":18,"../interact":21,"../scope":34,"../utils":44,"../utils/Signals":35,"../utils/browser":37,"./InteractableMethods":12}],14:[function(t,e,n){"use strict";var r=t("./base"),i=t("../Interaction");i.signals.on("new",function(t){t.delayTimer=null}),r.signals.on("prepared",function(t){var e=t.interaction,n=e.prepared.name;if(n){var r=e.target.options[n].delay;r>0&&(e.delayTimer=setTimeout(function(){e.start(e.prepared,e.target,e.element)},r))}}),i.signals.on("move",function(t){var e=t.interaction,n=t.duplicate;e.pointerWasMoved&&!n&&clearTimeout(e.delayTimer)}),r.signals.on("before-start",function(t){var e=t.interaction,n=e.prepared.name;if(n){e.target.options[n].delay>0&&(e.prepared.name=null)}})},{"../Interaction":5,"./base":13}],15:[function(t,e,n){"use strict";function r(t,e){if(!e)return!1;var n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}var i=t("./base"),o=t("../scope"),a=t("../utils/browser"),s=t("../utils/is"),l=t("../utils/domUtils"),c=l.matchesSelector,u=l.parentNode;i.setActionDefaults(t("../actions/drag")),i.signals.on("before-start",function(t){var e=t.interaction,n=t.eventTarget,l=t.dx,d=t.dy;if("drag"===e.prepared.name){var p=Math.abs(l),f=Math.abs(d),h=e.target.options.drag,v=h.startAxis,g=p>f?"x":pl.minSpeed&&v>l.endSpeed,x={interaction:e,pageCoords:h,statuses:f,preEnd:!0,requireEndOnly:!0};y&&!b&&(c.resetStatuses(f),m=c.setAll(x),m.shouldMove&&m.locked&&(g=!0)),(b||g)&&(u.copyCoords(i.upCoords,e.curCoords),e.pointers[0]=i.startEvent=new s(e,n,e.prepared.name,"inertiastart",e.element),i.t0=p,i.active=!0,i.allowResume=l.allowResume,e.simulation=i,o.fire(i.startEvent),b?(i.vx0=e.pointerDelta.client.vx,i.vy0=e.pointerDelta.client.vy,i.v0=v,r(e,i),u.extend(h,e.curCoords.page),h.x+=i.xe,h.y+=i.ye,c.resetStatuses(f),m=c.setAll(x),i.modifiedXe+=m.dx,i.modifiedYe+=m.dy,i.i=d.request(e.boundInertiaFrame)):(i.smoothEnd=!0,i.xe=m.dx,i.ye=m.dy,i.sx=i.sy=0,i.i=d.request(e.boundSmoothEndFrame)))}}),l.signals.on("stop-active",function(t){var e=t.interaction,n=e.inertiaStatus;n.active&&(d.cancel(n.i),n.active=!1,e.simulation=null)})},{"./InteractEvent":3,"./Interaction":5,"./modifiers":24,"./utils":44,"./utils/raf":50}],21:[function(t,e,n){"use strict";function r(t,e){var n=s.interactables.get(t,e);return n||(n=new l(t,e),n.events.global=u),n}var i=t("./utils/browser"),o=t("./utils/events"),a=t("./utils"),s=t("./scope"),l=t("./Interactable"),c=t("./Interaction"),u={};r.isSet=function(t,e){return-1!==s.interactables.indexOfElement(t,e&&e.context)},r.on=function(t,e,n){if(a.is.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),a.is.array(t)){for(var i=t,c=Array.isArray(i),d=0,i=c?i:i[Symbol.iterator]();;){var p;if(c){if(d>=i.length)break;p=i[d++]}else{if(d=i.next(),d.done)break;p=d.value}var f=p;r.on(f,e,n)}return r}if(a.is.object(t)){for(var h in t)r.on(h,t[h],e);return r}return a.contains(l.eventTypes,t)?u[t]?u[t].push(e):u[t]=[e]:o.add(s.document,t,e,{options:n}),r},r.off=function(t,e,n){if(a.is.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),a.is.array(t)){for(var i=t,c=Array.isArray(i),d=0,i=c?i:i[Symbol.iterator]();;){var p;if(c){if(d>=i.length)break;p=i[d++]}else{if(d=i.next(),d.done)break;p=d.value}var f=p;r.off(f,e,n)}return r}if(a.is.object(t)){for(var h in t)r.off(h,t[h],e);return r}if(a.contains(l.eventTypes,t)){var v=void 0;t in u&&-1!==(v=a.indexOf(u[t],e))&&u[t].splice(v,1)}else o.remove(s.document,t,e,n);return r},r.debug=function(){return s},r.getPointerAverage=a.pointerAverage,r.getTouchBBox=a.touchBBox,r.getTouchDistance=a.touchDistance,r.getTouchAngle=a.touchAngle,r.getElementRect=a.getElementRect,r.getElementClientRect=a.getElementClientRect,r.matchesSelector=a.matchesSelector,r.closest=a.closest,r.supportsTouch=function(){return i.supportsTouch},r.supportsPointerEvent=function(){return i.supportsPointerEvent},r.stop=function(t){for(var e=s.interactions.length-1;e>=0;e--)s.interactions[e].stop(t);return r},r.pointerMoveTolerance=function(t){return a.is.number(t)?(c.pointerMoveTolerance=t,this):c.pointerMoveTolerance},r.addDocument=s.addDocument,r.removeDocument=s.removeDocument,s.interact=r,e.exports=r},{"./Interactable":4,"./Interaction":5,"./scope":34,"./utils":44,"./utils/browser":37,"./utils/events":40}],22:[function(t,e,n){"use strict";function r(t){var e=t.interaction,n=t.event;e.target&&e.target.checkAndPreventDefault(n)}var i=t("./Interactable"),o=t("./Interaction"),a=t("./scope"),s=t("./utils/is"),l=t("./utils/events"),c=t("./utils/domUtils"),u=c.nodeContains,d=c.matchesSelector;i.prototype.preventDefault=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):s.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault},i.prototype.checkAndPreventDefault=function(t){var e=this.options.preventDefault;if("never"!==e)return"always"===e?void t.preventDefault():void(l.supportsOptions||/^(mouse|pointer|touch)*(down|start)/i.test(t.type)||s.element(t.target)&&d(t.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||t.preventDefault())};for(var p=["down","move","up","cancel"],f=0;f=e.length)break;i=e[r++]}else{if(r=e.next(),r.done)break;i=r.value}var o=i;if(o.element&&(o.element===t.target||u(o.element,t.target)))return void o.target.checkAndPreventDefault(t)}}},{"./Interactable":4,"./Interaction":5,"./scope":34,"./utils/domUtils":39,"./utils/events":40,"./utils/is":46}],23:[function(t,e,n){"use strict";function r(t){var e=t.target,n=s.search(t,t.type,e);n&&n.prevTap&&t.clientX===n.prevTap.clientX&&t.clientY===n.prevTap.clientY&&e===n.prevTap.target&&(n.downTargets[0]=e,n.downTimes[0]=(new Date).getTime(),l.fire({interaction:n,event:t,eventTarget:e,pointer:t,type:"tap"}))}var i=t("./scope"),o=t("./utils/events"),a=t("./utils/browser"),s=t("./utils/interactionFinder"),l=t("./pointerEvents/base"),c=t("./utils/window"),u=c.window,d=Object.prototype.toString;if(u.Array.isArray||(u.Array.isArray=function(t){return"[object Array]"===d.call(t)}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),a.isIE8){var p=function(t){for(var e=i.interactions,n=Array.isArray(e),r=0,e=n?e:e[Symbol.iterator]();;){var o;if(n){if(r>=e.length)break;o=e[r++]}else{if(r=e.next(),r.done)break;o=r.value}var a=o;a.interacting()&&a.target.checkAndPreventDefault(t)}},f=function(t,e){var n=t.doc,i=(t.win,0===e.indexOf("listen")?o.add:o.remove);i(n,"selectstart",p),l&&i(n,"dblclick",r)};i.signals.on("add-document",f),i.signals.on("remove-document",f)}e.exports=null},{"./pointerEvents/base":31,"./scope":34,"./utils/browser":37,"./utils/events":40,"./utils/interactionFinder":45,"./utils/window":52}],24:[function(t,e,n){"use strict";function r(t,e,n){return t&&t.enabled&&(e||!t.endOnly)&&(!n||t.endOnly)}var i=t("../InteractEvent"),o=t("../Interaction"),a=t("../utils/extend"),s={names:[],setOffsets:function(t){var e=t.interaction,n=t.pageCoords,r=e.target,i=e.element,o=e.startOffset,a=r.getRect(i);a?(o.left=n.x-a.left,o.top=n.y-a.top,o.right=a.right-n.x,o.bottom=a.bottom-n.y,"width"in a||(a.width=a.right-a.left),"height"in a||(a.height=a.bottom-a.top)):o.left=o.top=o.right=o.bottom=0,t.rect=a,t.interactable=r,t.element=i;for(var l=0;l=u.length)break;f=u[p++]}else{if(p=u.next(),p.done)break;f=p.value}var h=f,v=s[h],g=e.target.options[e.prepared.name][h];r(g,i,o)&&(t.status=t.status=n[h],t.options=g,t.offset=t.interaction.modifierOffsets[h],v.set(t),t.status.locked&&(l.x+=t.status.dx,l.y+=t.status.dy,c.dx+=t.status.dx,c.dy+=t.status.dy,c.locked=!0))}return c.shouldMove=!t.status||!c.locked||t.status.changed,c},resetStatuses:function(t){for(var e=s.names,n=Array.isArray(e),r=0,e=n?e:e[Symbol.iterator]();;){var i;if(n){if(r>=e.length)break;i=e[r++]}else{if(r=e.next(),r.done)break;i=r.value}var o=i,a=t[o]||{};a.dx=a.dy=0,a.modifiedX=a.modifiedY=NaN,a.locked=!1,a.changed=!0,t[o]=a}return t},start:function(t,e){var n=t.interaction,r={interaction:n,pageCoords:("action-resume"===e?n.curCoords:n.startCoords).page,startOffset:n.startOffset,statuses:n.modifierStatuses,preEnd:!1,requireEndOnly:!1};s.setOffsets(r),s.resetStatuses(r.statuses),r.pageCoords=a({},n.startCoords.page),n.modifierResult=s.setAll(r)}};o.signals.on("new",function(t){t.startOffset={left:0,right:0,top:0,bottom:0},t.modifierOffsets={},t.modifierStatuses=s.resetStatuses({}),t.modifierResult=null}),o.signals.on("action-start",s.start),o.signals.on("action-resume",s.start),o.signals.on("before-action-move",function(t){var e=t.interaction,n=t.preEnd,r=t.interactingBeforeMove,i=s.setAll({interaction:e,preEnd:n,pageCoords:e.curCoords.page,statuses:e.modifierStatuses,requireEndOnly:!1});!i.shouldMove&&r&&(e._dontFireMove=!0),e.modifierResult=i}),o.signals.on("action-end",function(t){for(var e=t.interaction,n=t.event,i=0;i=f.length)break;g=f[v++]}else{if(v=f.next(),v.done)break;g=v.value}var m=g,y=m.x,b=m.y;l.push({x:a.left-i.width*y+d.x,y:a.top-i.height*b+d.y})}else l.push(d);return l},set:function(t){var e=t.interaction,n=t.pageCoords,r=t.status,i=t.options,a=t.offset,s=[],l=void 0,c=void 0,u=void 0;if(r.useStatusXY)c={x:r.x,y:r.y};else{var d=o.getOriginXY(e.target,e.element,e.prepared.name);c=o.extend({},n),c.x-=d.x,c.y-=d.y}r.realX=c.x,r.realY=c.y;for(var p=i.targets?i.targets.length:0,f=a,h=Array.isArray(f),v=0,f=h?f:f[Symbol.iterator]();;){var g;if(h){if(v>=f.length)break;g=f[v++]}else{if(v=f.next(),v.done)break;g=v.value}for(var m=g,y=m.x,b=m.y,x=c.x-y,w=c.y-b,C=i.targets,_=Array.isArray(C),E=0,C=_?C:C[Symbol.iterator]();;){var S;if(_){if(E>=C.length)break;S=C[E++]}else{if(E=C.next(),E.done)break;S=E.value}var A=S;l=o.is.function(A)?A(x,w,e):A,l&&s.push({x:o.is.number(l.x)?l.x+y:x,y:o.is.number(l.y)?l.y+b:w,range:o.is.number(l.range)?l.range:i.range})}}var T={target:null,inRange:!1,distance:0,range:0,dx:0,dy:0};for(u=0,p=s.length;u=u.length)break;f=u[p++]}else{if(p=u.next(),p.done)break;f=p.value}var h=f,v=void 0;v=s.is.function(h)?h(l,c,e):h,v&&("width"in v&&"height"in v&&(v.x=v.width,v.y=v.height),t.options.targets.push(v))}i.set(t)},modifyCoords:function(t){var e=t.options;t.options=s.extend({},e),t.options.enabled=e.enabled,t.options.relativePoints=[null],i.modifyCoords(t)}};r.snapSize=l,r.names.push("snapSize"),o.perAction.snapSize=l.defaults,a.defaults.snapSize=l.defaults,e.exports=l},{"../actions/resize":10,"../defaultOptions":18,"../utils/":44,"./index":24,"./snap":28}],30:[function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=t("../utils/pointerUtils");e.exports=function(){function t(e,n,o,a,s){if(r(this,t),i.pointerExtend(this,o),o!==n&&i.pointerExtend(this,n),this.interaction=s,this.timeStamp=(new Date).getTime(),this.originalEvent=o,this.type=e,this.pointerId=i.getPointerId(n),this.pointerType=i.getPointerType(n),this.target=a,this.currentTarget=null,"tap"===e){var l=s.getPointerIndex(n);this.dt=this.timeStamp-s.downTimes[l];var c=this.timeStamp-s.tapTime;this.double=!!(s.prevTap&&"doubletap"!==s.prevTap.type&&s.prevTap.target===this.target&&c<500)}else"doubletap"===e&&(this.dt=n.timeStamp-s.tapTime)}return t.prototype.subtractOrigin=function(t){var e=t.x,n=t.y;return this.pageX-=e,this.pageY-=n,this.clientX-=e,this.clientY-=n,this},t.prototype.addOrigin=function(t){var e=t.x,n=t.y;return this.pageX+=e,this.pageY+=n,this.clientX+=e,this.clientY+=n,this},t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},t}()},{"../utils/pointerUtils":49}],31:[function(t,e,n){"use strict";function r(t){for(var e=t.interaction,n=t.pointer,a=t.event,l=t.eventTarget,c=t.type,d=void 0===c?t.pointerEvent.type:c,p=t.targets,f=void 0===p?i(t):p,h=t.pointerEvent,v=void 0===h?new o(d,n,a,l,e):h,g={interaction:e,pointer:n,event:a,eventTarget:l,targets:f,type:d,pointerEvent:v},m=0;m=d.length)break;v=d[h++]}else{if(h=d.next(),h.done)break;v=h.value}var g=v;c.element=g,u.fire("collect-targets",c)}return"hold"===o&&(c.targets=p(c.targets,function(t){return t.eventable.options.holdDuration===e.holdTimers[a].duration})),c.targets}var o=t("./PointerEvent"),a=t("../Interaction"),s=t("../utils"),l=t("../utils/browser"),c=t("../defaultOptions"),u=t("../utils/Signals").new(),d=t("../utils/arr"),p=d.filter,f=["down","up","cancel"],h=["down","up","cancel"],v={PointerEvent:o,fire:r,collectEventTargets:i,signals:u,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:["down","move","up","cancel","tap","doubletap","hold"]};a.signals.on("update-pointer-down",function(t){var e=t.interaction,n=t.pointerIndex;e.holdTimers[n]={duration:1/0,timeout:null}}),a.signals.on("remove-pointer",function(t){var e=t.interaction,n=t.pointerIndex;e.holdTimers.splice(n,1)}),a.signals.on("move",function(t){var e=t.interaction,n=t.pointer,i=t.event,o=t.eventTarget,a=t.duplicateMove,s=e.getPointerIndex(n);a||e.pointerIsDown&&!e.pointerWasMoved||(e.pointerIsDown&&clearTimeout(e.holdTimers[s].timeout),r({interaction:e,pointer:n,event:i,eventTarget:o,type:"move"}))}),a.signals.on("down",function(t){for(var e=t.interaction,n=t.pointer,i=t.event,o=t.eventTarget,a=t.pointerIndex,c=l.isIE8?s.extend({},i):i,d=e.holdTimers[a],p=s.getPath(o),f={interaction:e,pointer:n,event:i,eventTarget:o,type:"hold",targets:[],path:p,element:null},h=p,v=Array.isArray(h),g=0,h=v?h:h[Symbol.iterator]();;){var m;if(v){if(g>=h.length)break;m=h[g++]}else{if(g=h.next(),g.done)break;m=g.value}var y=m;f.element=y,u.fire("collect-targets",f)}if(f.targets.length){for(var b=1/0,x=0;x=0&&(u.selectors[d]!==t||u.contexts[d]!==e);d--);-1===d&&(d=u.selectors.length,u.selectors.push(t),u.contexts.push(e),u.listeners.push([])),u.listeners[d].push([i,!!a.capture,a.passive])}function a(t,e,n,r,o){var a=f(o),c=O[n],u=!1,d=void 0;if(c)for(d=c.selectors.length-1;d>=0;d--)if(c.selectors[d]===t&&c.contexts[d]===e){for(var p=c.listeners[d],h=p.length-1;h>=0;h--){var v=p[h],g=v[0],m=v[1],y=v[2];if(g===r&&m===!!a.capture&&y===a.passive){p.splice(h,1),p.length||(c.selectors.splice(d,1),c.contexts.splice(d,1),c.listeners.splice(d,1),i(e,n,s),i(e,n,l,!0),c.selectors.length||(O[n]=null)),u=!0;break}}if(u)break}}function s(t,e){var n=f(e),r={},i=O[t.type],o=v.getActualElement(t.path?t.path[0]:t.target),a=o;for(g(r,t),r.originalEvent=t,r.preventDefault=u;h.element(a);){for(var s=0;s=l.length)break;d=l[u++]}else{if(u=l.next(),u.done)break;d=u.value}var p=d,f=o[p](s);if(f)return f}},simulationResume:function(t){var e=t.pointerType,n=t.eventType,o=t.eventTarget;if(!/down|start/i.test(n))return null;for(var a=r.interactions,s=Array.isArray(a),l=0,a=s?a:a[Symbol.iterator]();;){var c;if(s){if(l>=a.length)break;c=a[l++]}else{if(l=a.next(),l.done)break;c=l.value}var u=c,d=o;if(u.simulation&&u.simulation.allowResume&&u.pointerType===e)for(;d;){if(d===u.element)return u;d=i.parentNode(d)}}return null},mouseOrPen:function(t){var e=t.pointerId,n=t.pointerType,o=t.eventType;if("mouse"!==n&&"pen"!==n)return null;for(var a=void 0,s=r.interactions,l=Array.isArray(s),c=0,s=l?s:s[Symbol.iterator]();;){var u;if(l){if(c>=s.length)break;u=s[c++]}else{if(c=s.next(),c.done)break;u=c.value}var d=u;if(d.pointerType===n){if(d.simulation&&!i.contains(d.pointerIds,e))continue;if(d.interacting())return d;a||(a=d)}}if(a)return a;for(var p=r.interactions,f=Array.isArray(p),h=0,p=f?p:p[Symbol.iterator]();;){var v;if(f){if(h>=p.length)break;v=p[h++]}else{if(h=p.next(),h.done)break;v=h.value}var g=v;if(!(g.pointerType!==n||/down/i.test(o)&&g.simulation))return g}return null},hasPointer:function(t){for(var e=t.pointerId,n=r.interactions,o=Array.isArray(n),a=0,n=o?n:n[Symbol.iterator]();;){var s;if(o){if(a>=n.length)break;s=n[a++]}else{if(a=n.next(),a.done)break;s=a.value}var l=s;if(i.contains(l.pointerIds,e))return l}},idle:function(t){for(var e=t.pointerType,n=r.interactions,i=Array.isArray(n),o=0,n=i?n:n[Symbol.iterator]();;){var a;if(i){if(o>=n.length)break;a=n[o++]}else{if(o=n.next(),o.done)break;a=o.value}var s=a;if(1===s.pointerIds.length){var l=s.target;if(l&&!l.options.gesture.enabled)continue}else if(s.pointerIds.length>=2)continue;if(!s.interacting()&&e===s.pointerType)return s}return null}};e.exports=o},{"../scope":34,"./index":44}],46:[function(t,e,n){"use strict";var r="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},i=t("./window"),o=t("./isWindow"),a={array:function(){},window:function(t){return t===i.window||o(t)},docFrag:function(t){return a.object(t)&&11===t.nodeType},object:function(t){return!!t&&"object"===(void 0===t?"undefined":r(t))},function:function(t){return"function"==typeof t},number:function(t){return"number"==typeof t},bool:function(t){return"boolean"==typeof t},string:function(t){return"string"==typeof t},element:function(t){if(!t||"object"!==(void 0===t?"undefined":r(t)))return!1;var e=i.getWindow(t)||i.window;return/object|function/.test(r(e.Element))?t instanceof e.Element:1===t.nodeType&&"string"==typeof t.nodeName}};a.array=function(t){return a.object(t)&&void 0!==t.length&&a.function(t.splice)},e.exports=a},{"./isWindow":47,"./window":52}],47:[function(t,e,n){"use strict";e.exports=function(t){return!(!t||!t.Window)&&t instanceof t.Window}},{}],48:[function(t,e,n){"use strict";function r(t,n){for(var r in n){var i=e.exports.prefixedPropREs,o=!1;for(var a in i)if(0===r.indexOf(a)&&i[a].test(r)){o=!0;break}o||"function"==typeof n[r]||(t[r]=n[r])}return t}r.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/},e.exports=r},{}],49:[function(t,e,n){"use strict";var r=t("./hypot"),i=t("./browser"),o=t("./domObjects"),a=t("./domUtils"),s=t("./domObjects"),l=t("./is"),c=t("./pointerExtend"),u={copyCoords:function(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp},setCoordDeltas:function(t,e,n){t.page.x=n.page.x-e.page.x,t.page.y=n.page.y-e.page.y,t.client.x=n.client.x-e.client.x,t.client.y=n.client.y-e.client.y,t.timeStamp=n.timeStamp-e.timeStamp;var i=Math.max(t.timeStamp/1e3,.001);t.page.speed=r(t.page.x,t.page.y)/i,t.page.vx=t.page.x/i,t.page.vy=t.page.y/i,t.client.speed=r(t.client.x,t.page.y)/i,t.client.vx=t.client.x/i,t.client.vy=t.client.y/i},isNativePointer:function(t){return t instanceof o.Event||t instanceof o.Touch},getXY:function(t,e,n){return n=n||{},t=t||"page",n.x=e[t+"X"],n.y=e[t+"Y"],n},getPageXY:function(t,e){return e=e||{},i.isOperaMobile&&u.isNativePointer(t)?(u.getXY("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):u.getXY("page",t,e),e},getClientXY:function(t,e){return e=e||{},i.isOperaMobile&&u.isNativePointer(t)?u.getXY("screen",t,e):u.getXY("client",t,e),e},getPointerId:function(t){return l.number(t.pointerId)?t.pointerId:t.identifier},setCoords:function(t,e,n){var r=e.length>1?u.pointerAverage(e):e[0],i={};u.getPageXY(r,i),t.page.x=i.x,t.page.y=i.y,u.getClientXY(r,i),t.client.x=i.x,t.client.y=i.y,t.timeStamp=l.number(n)?n:(new Date).getTime()},pointerExtend:c,getTouchPair:function(t){var e=[];return l.array(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e},pointerAverage:function(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=t,r=Array.isArray(n),i=0,n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;for(var s in e)e[s]+=a[s]}for(var l in e)e[l]/=t.length;return e},touchBBox:function(t){if(t.length||t.touches&&t.touches.length>1){var e=u.getTouchPair(t),n=Math.min(e[0].pageX,e[1].pageX),r=Math.min(e[0].pageY,e[1].pageY);return{x:n,y:r,left:n,top:r,width:Math.max(e[0].pageX,e[1].pageX)-n,height:Math.max(e[0].pageY,e[1].pageY)-r}}},touchDistance:function(t,e){var n=e+"X",i=e+"Y",o=u.getTouchPair(t),a=o[0][n]-o[1][n],s=o[0][i]-o[1][i];return r(a,s)},touchAngle:function(t,e,n){var r=n+"X",i=n+"Y",o=u.getTouchPair(t),a=o[1][r]-o[0][r],s=o[1][i]-o[0][i];return 180*Math.atan2(s,a)/Math.PI},getPointerType:function(t){return l.string(t.pointerType)?t.pointerType:l.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type)||t instanceof s.Touch?"touch":"mouse"},getEventTargets:function(t){return[a.getActualElement(t.path?t.path[0]:t.target),a.getActualElement(t.currentTarget)]}};e.exports=u},{"./browser":37,"./domObjects":38,"./domUtils":39,"./hypot":43,"./is":46,"./pointerExtend":48}],50:[function(t,e,n){"use strict";for(var r=t("./window"),i=r.window,o=["ms","moz","webkit","o"],a=0,s=void 0,l=void 0,c=0;c=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function p(t){var e=parseFloat(t);return isNaN(e)?t:e}function f(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}function v(t,e){return Hi.call(t,e)}function g(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function m(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function y(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function b(t,e){for(var n in e)t[n]=e[n];return t}function x(t){for(var e={},n=0;nBo&&Po[n].id>t.id;)n--;Po.splice(n+1,0,t)}else Po.push(t);jo||(jo=!0,bo(It))}}function Mt(t){Fo.clear(),Rt(t,Fo)}function Rt(t,e){var n,r,i=Array.isArray(t);if((i||s(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)Rt(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)Rt(t[r[n]],e)}}function Pt(t,e,n){Xo.get=function(){return this[e][n]},Xo.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Xo)}function Nt(t){t._watchers=[];var e=t.$options;e.props&&Lt(t,e.props),e.methods&&Ft(t,e.methods),e.data?jt(t):M(t._data={},!0),e.computed&&Bt(t,e.computed),e.watch&&e.watch!==uo&&Xt(t,e.watch)}function Lt(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;Ao.shouldConvert=o;for(var a in e)!function(o){i.push(o);var a=Z(o,e,n,t);R(r,o,a),o in t||Pt(t,"_props",o)}(a);Ao.shouldConvert=!0}function jt(t){var e=t.$options.data;e=t._data="function"==typeof e?Ht(e,t):e||{},l(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);i--;){var o=n[i];r&&v(r,o)||S(o)||Pt(t,"_data",o)}M(e,!0)}function Ht(t,e){try{return t.call(e)}catch(t){return k(t,e,"data()"),{}}}function Bt(t,e){var n=t._computedWatchers=Object.create(null);for(var r in e){var i=e[r],o="function"==typeof i?i:i.get;n[r]=new Yo(t,o||w,w,Uo),r in t||Wt(t,r,i)}}function Wt(t,e,n){"function"==typeof n?(Xo.get=Yt(e),Xo.set=w):(Xo.get=n.get?!1!==n.cache?Yt(e):n.get:w,Xo.set=n.set?n.set:w),Object.defineProperty(t,e,Xo)}function Yt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),wo.target&&e.depend(),e.value}}function Ft(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?w:m(e[n],t)}function Xt(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(t[i])<0)&&r.push(t[i]);return r}return t}function we(t){this._init(t)}function Ce(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=y(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function _e(t){t.mixin=function(t){return this.options=U(this.options,t),this}}function Ee(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=U(n.options,t),a.super=n,a.options.props&&Se(a),a.options.computed&&Ae(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Vi.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=b({},a.options),i[r]=a,a}}function Se(t){var e=t.options.props;for(var n in e)Pt(t.prototype,"_props",n)}function Ae(t){var e=t.options.computed;for(var n in e)Wt(t.prototype,n,e[n])}function Te(t){Vi.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function ke(t){return t&&(t.Ctor.options.name||t.tag)}function Ie(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!c(t)&&t.test(e)}function Oe(t,e,n){for(var r in t){var i=t[r];if(i){var o=ke(i.componentOptions);o&&!n(o)&&(i!==e&&De(i),t[r]=null)}}}function De(t){t&&t.componentInstance.$destroy()}function $e(t){for(var e=t.data,n=t,i=t;r(i.componentInstance);)i=i.componentInstance._vnode,i.data&&(e=ze(i.data,e));for(;r(n=n.parent);)n.data&&(e=ze(e,n.data));return Me(e.staticClass,e.class)}function ze(t,e){return{staticClass:Re(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Me(t,e){return r(t)||r(e)?Re(t,Pe(e)):""}function Re(t,e){return t?e?t+" "+e:t:e||""}function Pe(t){return Array.isArray(t)?Ne(t):s(t)?Le(t):"string"==typeof t?t:""}function Ne(t){for(var e,n="",i=0,o=t.length;i-1?Ea[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ea[t]=/HTMLUnknownElement/.test(e.toString())}function Be(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function We(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Ye(t,e){return document.createElementNS(ba[t],e)}function Fe(t){return document.createTextNode(t)}function Xe(t){return document.createComment(t)}function Ue(t,e,n){t.insertBefore(e,n)}function Ge(t,e){t.removeChild(e)}function Ze(t,e){t.appendChild(e)}function Ve(t){return t.parentNode}function qe(t){return t.nextSibling}function Je(t){return t.tagName}function Ke(t,e){t.textContent=e}function Qe(t,e,n){t.setAttribute(e,n)}function tn(t,e){var n=t.data.ref;if(n){var r=t.context,i=t.componentInstance||t.elm,o=r.$refs;e?Array.isArray(o[n])?h(o[n],i):o[n]===i&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}function en(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&nn(t,e)||i(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&n(e.asyncFactory.error))}function nn(t,e){if("input"!==t.tag)return!0;var n;return(r(n=t.data)&&r(n=n.attrs)&&n.type)===(r(n=e.data)&&r(n=n.attrs)&&n.type)}function rn(t,e,n){var i,o,a={};for(i=e;i<=n;++i)o=t[i].key,r(o)&&(a[o]=i);return a}function on(t,e){(t.data.directives||e.data.directives)&&an(t,e)}function an(t,e){var n,r,i,o=t===Ta,a=e===Ta,s=sn(t.data.directives,t.context),l=sn(e.data.directives,e.context),c=[],u=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,cn(i,"update",e,t),i.def&&i.def.componentUpdated&&u.push(i)):(cn(i,"bind",e,t),i.def&&i.def.inserted&&c.push(i));if(c.length){var d=function(){for(var n=0;n=0&&" "===(g=t.charAt(v));v--);g&&Ma.test(g)||(u=!0)}}else void 0===o?(h=i+1,o=t.slice(0,i).trim()):e();if(void 0===o?o=t.slice(0,i).trim():0!==h&&e(),a)for(i=0;i=ea}function kn(t){return 34===t||39===t}function In(t){var e=1;for(oa=ia;!Tn();)if(t=An(),kn(t))On(t);else if(91===t&&e++,93===t&&e--,0===e){aa=ia;break}}function On(t){for(var e=t;!Tn()&&(t=An())!==e;);}function Dn(t,e,n){sa=n;var r=e.value,i=e.modifiers,o=t.tag,a=t.attrsMap.type;if(t.component)return _n(t,r,i),!1;if("select"===o)Mn(t,r,i);else if("input"===o&&"checkbox"===a)$n(t,r,i);else if("input"===o&&"radio"===a)zn(t,r,i);else if("input"===o||"textarea"===o)Rn(t,r,i);else if(!Ji.isReservedTag(o))return _n(t,r,i),!1;return!0}function $n(t,e,n){var r=n&&n.number,i=wn(t,"value")||"null",o=wn(t,"true-value")||"true",a=wn(t,"false-value")||"false";mn(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),xn(t,Pa,"var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+En(e,"$$c")+"}",null,!0)}function zn(t,e,n){var r=n&&n.number,i=wn(t,"value")||"null";i=r?"_n("+i+")":i,mn(t,"checked","_q("+e+","+i+")"),xn(t,Pa,En(e,i),null,!0)}function Mn(t,e,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",o="var $$selectedVal = "+i+";";o=o+" "+En(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),xn(t,"change",o,null,!0)}function Rn(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,l=!o&&"range"!==r,c=o?"change":"range"===r?Ra:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var d=En(e,u);l&&(d="if($event.target.composing)return;"+d),mn(t,"value","("+e+")"),xn(t,c,d,null,!0),(s||a)&&xn(t,"blur","$forceUpdate()")}function Pn(t){var e;r(t[Ra])&&(e=io?"change":"input",t[e]=[].concat(t[Ra],t[e]||[]),delete t[Ra]),r(t[Pa])&&(e=co?"click":"change",t[e]=[].concat(t[Pa],t[e]||[]),delete t[Pa])}function Nn(t,e,n,r,i){if(n){var o=e,a=la;e=function(n){null!==(1===arguments.length?o(n):o.apply(null,arguments))&&Ln(t,e,r,a)}}la.addEventListener(t,e,po?{capture:r,passive:i}:r)}function Ln(t,e,n,r){(r||la).removeEventListener(t,e,n)}function jn(t,e){if(!n(t.data.on)||!n(e.data.on)){var r=e.data.on||{},i=t.data.on||{};la=e.elm,Pn(r),nt(r,i,Nn,Ln,e.context)}}function Hn(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var i,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};r(l.__ob__)&&(l=e.data.domProps=b({},l));for(i in s)n(l[i])&&(a[i]="");for(i in l)if(o=l[i],"textContent"!==i&&"innerHTML"!==i||(e.children&&(e.children.length=0),o!==s[i]))if("value"===i){a._value=o;var c=n(o)?"":String(o);Bn(a,e,c)&&(a.value=c)}else a[i]=o}}function Bn(t,e,n){return!t.composing&&("option"===e.tag||Wn(t,n)||Yn(t,n))}function Wn(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function Yn(t,e){var n=t.value,i=t._vModifiers;return r(i)&&i.number?p(n)!==p(e):r(i)&&i.trim?n.trim()!==e.trim():n!==e}function Fn(t){var e=Xn(t.style);return t.staticStyle?b(t.staticStyle,e):e}function Xn(t){return Array.isArray(t)?x(t):"string"==typeof t?ja(t):t}function Un(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)i=i.componentInstance._vnode,i.data&&(n=Fn(i.data))&&b(r,n);(n=Fn(t.data))&&b(r,n);for(var o=t;o=o.parent;)o.data&&(n=Fn(o.data))&&b(r,n);return r}function Gn(t,e){var i=e.data,o=t.data;if(!(n(i.staticStyle)&&n(i.style)&&n(o.staticStyle)&&n(o.style))){var a,s,l=e.elm,c=o.staticStyle,u=o.normalizedStyle||o.style||{},d=c||u,p=Xn(e.data.style)||{};e.data.normalizedStyle=r(p.__ob__)?b({},p):p;var f=Un(e,!0);for(s in d)n(f[s])&&Wa(l,s,"");for(s in f)(a=f[s])!==d[s]&&Wa(l,s,null==a?"":a)}}function Zn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Vn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function qn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&b(e,Ua(t.name||"v")),b(e,t),e}return"string"==typeof t?Ua(t):void 0}}function Jn(t){ts(function(){ts(t)})}function Kn(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Zn(t,e))}function Qn(t,e){t._transitionClasses&&h(t._transitionClasses,e),Vn(t,e)}function tr(t,e,n){var r=er(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Za?Ja:Qa,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout(function(){l0&&(n=Za,u=a,d=o.length):e===Va?c>0&&(n=Va,u=c,d=l.length):(u=Math.max(a,c),n=u>0?a>c?Za:Va:null,d=n?n===Za?o.length:l.length:0),{type:n,timeout:u,propCount:d,hasTransform:n===Za&&es.test(r[qa+"Property"])}}function nr(t,e){for(;t.length1}function lr(t,e){!0!==e.data.show&&ir(e)}function cr(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(C(ur(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ur(t){return"_value"in t?t._value:t.value}function dr(t){t.target.composing=!0}function pr(t){t.target.composing&&(t.target.composing=!1,fr(t.target,"input"))}function fr(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function hr(t){return!t.componentInstance||t.data&&t.data.transition?t:hr(t.componentInstance._vnode)}function vr(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?vr(ft(e.children)):t}function gr(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[Wi(o)]=i[o];return e}function mr(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function yr(t){for(;t=t.parent;)if(t.data.transition)return!0}function br(t,e){return e.key===t.key&&e.tag===t.tag}function xr(t){return t.isComment&&t.asyncFactory}function wr(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Cr(t){t.data.newPos=t.elm.getBoundingClientRect()}function _r(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function Er(t,e){var n=e?bs(e):ms;if(n.test(t)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(t);){i=r.index,i>a&&o.push(JSON.stringify(t.slice(a,i)));var s=fn(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a=0&&a[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var l=a.length-1;l>=i;l--)e.end&&e.end(a[l].tag,n,r);a.length=i,o=i&&a[i-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,r):"p"===s&&(e.start&&e.start(t,[],!1,n,r),e.end&&e.end(t,n,r))}for(var i,o,a=[],s=e.expectHTML,l=e.isUnaryTag||Ui,c=e.canBeLeftOpenTag||Ui,u=0;t;){if(i=t,o&&Ks(o)){var d=0,p=o.toLowerCase(),f=Qs[p]||(Qs[p]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=t.replace(f,function(t,n,r){return d=r.length,Ks(p)||"noscript"===p||(n=n.replace(//g,"$1").replace(//g,"$1")),il(p,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});u+=t.length-h.length,t=h,r(p,u-d,u)}else{var v=t.indexOf("<");if(0===v){if(js.test(t)){var g=t.indexOf("--\x3e");if(g>=0){e.shouldKeepComment&&e.comment(t.substring(4,g)),n(g+3);continue}}if(Hs.test(t)){var m=t.indexOf("]>");if(m>=0){n(m+2);continue}}var y=t.match(Ls);if(y){n(y[0].length);continue}var b=t.match(Ns);if(b){var x=u;n(b[0].length),r(b[1],x,u);continue}var w=function(){var e=t.match(Rs);if(e){var r={tagName:e[1],attrs:[],start:u};n(e[0].length);for(var i,o;!(i=t.match(Ps))&&(o=t.match($s));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=u,r}}();if(w){!function(t){var n=t.tagName,i=t.unarySlash;s&&("p"===o&&As(n)&&r(o),c(n)&&o===n&&r(n));for(var u=l(n)||!!i,d=t.attrs.length,p=new Array(d),f=0;f=0){for(_=t.slice(v);!(Ns.test(_)||Rs.test(_)||js.test(_)||Hs.test(_)||(E=_.indexOf("<",1))<0);)v+=E,_=t.slice(v);C=t.substring(0,v),n(v)}v<0&&(C=t,t=""),e.chars&&C&&e.chars(C)}if(t===i){e.chars&&e.chars(t);break}}r()}function zr(t,e){function n(t){t.pre&&(s=!1),Gs(t.tag)&&(l=!1)}Ws=e.warn||vn,Gs=e.isPreTag||Ui,Zs=e.mustUseProp||Ui,Vs=e.getTagNamespace||Ui,Fs=gn(e.modules,"transformNode"),Xs=gn(e.modules,"preTransformNode"),Us=gn(e.modules,"postTransformNode"),Ys=e.delimiters;var r,i,o=[],a=!1!==e.preserveWhitespace,s=!1,l=!1;return $r(t,{warn:Ws,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldKeepComment:e.comments,start:function(t,a,c){var u=i&&i.ns||Vs(t);io&&"svg"===u&&(a=Kr(a));var d={type:1,tag:t,attrsList:a,attrsMap:Vr(a),parent:i,children:[]};u&&(d.ns=u),Jr(d)&&!go()&&(d.forbidden=!0);for(var p=0;p0,ao=ro&&ro.indexOf("edge/")>0,so=ro&&ro.indexOf("android")>0,lo=ro&&/iphone|ipad|ipod|ios/.test(ro),co=ro&&/chrome\/\d+/.test(ro)&&!ao,uo={}.watch,po=!1;if(no)try{var fo={};Object.defineProperty(fo,"passive",{get:function(){po=!0}}),window.addEventListener("test-passive",null,fo)}catch(t){}var ho,vo,go=function(){return void 0===ho&&(ho=!no&&void 0!==e&&"server"===e.process.env.VUE_ENV),ho},mo=no&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,yo="undefined"!=typeof Symbol&&I(Symbol)&&"undefined"!=typeof Reflect&&I(Reflect.ownKeys),bo=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1?y(n):n;for(var r=y(arguments,1),i=0,o=n.length;i1&&(e[n[0].trim()]=n[1].trim())}}),e}),Ha=/^--/,Ba=/\s*!important$/,Wa=function(t,e,n){if(Ha.test(e))t.style.setProperty(e,n);else if(Ba.test(n))t.style.setProperty(e,n.replace(Ba,""),"important");else{var r=Fa(e);if(Array.isArray(n))for(var i=0,o=n.length;ih?(d=n(i[m+1])?null:i[m+1].elm,y(t,d,i,f,m,o)):f>m&&x(t,e,p,h)}function _(t,e,o,a){if(t!==e){var s=e.elm=t.elm;if(i(t.isAsyncPlaceholder))return void(r(e.asyncFactory.resolved)?S(t.elm,e,o):e.isAsyncPlaceholder=!0);if(i(e.isStatic)&&i(t.isStatic)&&e.key===t.key&&(i(e.isCloned)||i(e.isOnce)))return void(e.componentInstance=t.componentInstance);var l,c=e.data;r(c)&&r(l=c.hook)&&r(l=l.prepatch)&&l(t,e);var u=t.children,d=e.children;if(r(c)&&v(e)){for(l=0;l',n.innerHTML.indexOf(e)>0}("\n"," "),ms=/\{\{((?:.|\n)+?)\}\}/g,ys=/[-.*+?^${}()|[\]\/\\]/g,bs=g(function(t){var e=t[0].replace(ys,"\\$&"),n=t[1].replace(ys,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}),xs={staticKeys:["staticClass"],transformNode:Sr,genData:Ar},ws={staticKeys:["staticStyle"],transformNode:Tr,genData:kr},Cs=[xs,ws],_s={model:Dn,text:Ir,html:Or},Es=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Ss=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),As=f("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Ts={expectHTML:!0,modules:Cs,directives:_s,isPreTag:Ca,isUnaryTag:Es,mustUseProp:pa,canBeLeftOpenTag:Ss,isReservedTag:_a,getTagNamespace:je,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(Cs)},ks={decode:function(t){return vs=vs||document.createElement("div"),vs.innerHTML=t,vs.textContent}},Is=/([^\s"'<>\/=]+)/,Os=/(?:=)/,Ds=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],$s=new RegExp("^\\s*"+Is.source+"(?:\\s*("+Os.source+")\\s*(?:"+Ds.join("|")+"))?"),zs="[a-zA-Z_][\\w\\-\\.]*",Ms="((?:"+zs+"\\:)?"+zs+")",Rs=new RegExp("^<"+Ms),Ps=/^\s*(\/?)>/,Ns=new RegExp("^<\\/"+Ms+"[^>]*>"),Ls=/^]+>/i,js=/^