System.register(["./p-96dc0c24.system.js"],function(e,t){"use strict";var r,n,i;return{setters:[function(e){r=e.d;n=e.e;i=e.f}],execute:function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function o(e,t){return t={exports:{}},e(t,t.exports),t.exports}var a=o(function(e,t){(function(t){{e.exports=t()}})(function(){var e=function e(t){var r;return function(e){return r||t(r={exports:{},parent:e},r.exports),r.exports}};var t=e(function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.Scope=t.ActionName=void 0;var n=d(qt);var i=p(f);var o=p(dr);var a=p(hr);var s=p(Sr);var u=p(qr);var l=p(cn);var c=p(r({}));function p(e){return e&&e.__esModule?e:{default:e}}function d(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function v(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){v=function e(t){return typeof t}}else{v=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return v(e)}function g(e,t){if(t&&(v(t)==="object"||typeof t==="function")){return t}return h(e)}function h(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function y(e,t,r){if(typeof Reflect!=="undefined"&&Reflect.get){y=Reflect.get}else{y=function e(t,r,n){var i=m(t,r);if(!i)return;var o=Object.getOwnPropertyDescriptor(i,r);if(o.get){return o.get.call(n)}return o.value}}return y(e,t,r||e)}function m(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=b(e);if(e===null)break}return e}function b(e){b=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return b(e)}function w(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)O(e,t)}function O(e,t){O=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return O(e,t)}function P(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function x(e,t,r){if(t)_(e.prototype,t);if(r)_(e,r);return e}var j=n.win,M=n.browser,E=n.raf,S=n.Signals,T=n.events;var D;t.ActionName=D;(function(e){})(D||(t.ActionName=D={}));var k=function(){function e(){var t=this;P(this,e);this.id="__interact_scope_".concat(Math.floor(Math.random()*100));this.signals=new S;this.browser=M;this.events=T;this.utils=n;this.defaults=n.clone(o["default"]);this.Eventable=a["default"];this.actions={names:[],methodDict:{},eventTypes:[]};this.InteractEvent=l["default"];this.interactables=new u["default"](this);this.documents=[];this._plugins=[];this._pluginMap={};this.onWindowUnload=function(e){return t.removeDocument(e.target)};var r=this;this.Interactable=function(e){w(t,e);function t(){P(this,t);return g(this,b(t).apply(this,arguments))}x(t,[{key:"set",value:function e(n){y(b(t.prototype),"set",this).call(this,n);r.interactables.signals.fire("set",{options:n,interactable:this});return this}},{key:"unset",value:function e(){y(b(t.prototype),"unset",this).call(this);for(var n=r.interactions.list.length-1;n>=0;n--){var i=r.interactions.list[n];if(i.interactable===this){i.stop();r.interactions.signals.fire("destroy",{interaction:i});i.destroy();if(r.interactions.list.length>2){r.interactions.list.splice(n,1)}}}r.interactables.signals.fire("unset",{interactable:this})}},{key:"_defaults",get:function e(){return r.defaults}}]);return t}(s["default"])}x(e,[{key:"init",value:function e(t){return I(this,t)}},{key:"pluginIsInstalled",value:function e(t){return this._pluginMap[t.id]||this._plugins.indexOf(t)!==-1}},{key:"usePlugin",value:function e(t,r){if(this.pluginIsInstalled(t)){return this}if(t.id){this._pluginMap[t.id]=t}t.install(this,r);this._plugins.push(t);return this}},{key:"addDocument",value:function e(t,r){if(this.getDocIndex(t)!==-1){return false}var i=j.getWindow(t);r=r?n.extend({},r):{};this.documents.push({doc:t,options:r});T.documents.push(t);if(t!==this.document){T.add(i,"unload",this.onWindowUnload)}this.signals.fire("add-document",{doc:t,window:i,scope:this,options:r})}},{key:"removeDocument",value:function e(t){var r=this.getDocIndex(t);var n=j.getWindow(t);var i=this.documents[r].options;T.remove(n,"unload",this.onWindowUnload);this.documents.splice(r,1);T.documents.splice(r,1);this.signals.fire("remove-document",{doc:t,window:n,scope:this,options:i})}},{key:"getDocIndex",value:function e(t){for(var r=0;r<this.documents.length;r++){if(this.documents[r].doc===t){return r}}return-1}},{key:"getDocOptions",value:function e(t){var r=this.getDocIndex(t);return r===-1?null:this.documents[r].options}},{key:"now",value:function e(){return(this.window.Date||Date).now()}}]);return e}();t.Scope=k;function I(e,t){j.init(t);i["default"].init(t);M.init(t);E.init(t);T.init(t);e.usePlugin(c["default"]);e.document=t.document;e.window=t;return e}});var r=e(function(e,t){Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=c(L);var i=c(f);var o=c(Re);var a=c(je);var s=c(Yt);var u=c(n({}));var l=c(zn);function c(e){return e&&e.__esModule?e:{default:e}}function p(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){p=function e(t){return typeof t}}else{p=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return p(e)}function d(e,t){return h(e)||g(e,t)||v()}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function g(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done);n=true){r.push(s.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"]!=null)a["return"]()}finally{if(i)throw o}}return r}function h(e){if(Array.isArray(e))return e}function y(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function b(e,t,r){if(t)m(e.prototype,t);if(r)m(e,r);return e}function w(e,t){if(t&&(p(t)==="object"||typeof t==="function")){return t}return O(e)}function O(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function P(e){P=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return P(e)}function _(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)x(e,t)}function x(e,t){x=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return x(e,t)}var j=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function M(e){var t=new s["default"];var n={};for(var o=0;o<j.length;o++){var a=j[o];n[a]=E(a,e)}var l=r["default"].pEventTypes;var c;if(i["default"].PointerEvent){c=[{type:l.down,listener:f},{type:l.down,listener:n.pointerDown},{type:l.move,listener:n.pointerMove},{type:l.up,listener:n.pointerUp},{type:l.cancel,listener:n.pointerUp}]}else{c=[{type:"mousedown",listener:n.pointerDown},{type:"mousemove",listener:n.pointerMove},{type:"mouseup",listener:n.pointerUp},{type:"touchstart",listener:f},{type:"touchstart",listener:n.pointerDown},{type:"touchmove",listener:n.pointerMove},{type:"touchend",listener:n.pointerUp},{type:"touchcancel",listener:n.pointerUp}]}c.push({type:"blur",listener:function t(r){for(var n=0;n<e.interactions.list.length;n++){var i;i=e.interactions.list[n];var o=i;o.documentBlur(r)}}});e.signals.on("add-document",T);e.signals.on("remove-document",T);e.prevTouchTime=0;e.Interaction=function(t){_(r,t);function r(){y(this,r);return w(this,P(r).apply(this,arguments))}b(r,[{key:"_now",value:function t(){return e.now()}},{key:"pointerMoveTolerance",get:function t(){return e.interactions.pointerMoveTolerance},set:function t(r){e.interactions.pointerMoveTolerance=r}}]);return r}(u["default"]);e.interactions={signals:t,list:[],new:function r(n){n.signals=t;var i=new e.Interaction(n);e.interactions.list.push(i);return i},listeners:n,eventMap:c,pointerMoveTolerance:1};function f(){for(var t=0;t<e.interactions.list.length;t++){var r;r=e.interactions.list[t];var n=r;if(!n.pointerIsDown||n.pointerType!=="touch"||n._interacting){continue}var i=function t(){a=n.pointers[o];var r=a;if(!e.documents.some(function(e){var t=e.doc;return(0,$.nodeContains)(t,r.downTarget)})){n.removePointer(r.pointer,r.event)}};for(var o=0;o<n.pointers.length;o++){var a;i()}}}}function E(e,t){return function(n){var i=t.interactions.list;var o=a["default"].getPointerType(n);var s=a["default"].getEventTargets(n),u=d(s,2),l=u[0],c=u[1];var f=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(var p=0;p<n.changedTouches.length;p++){var v;v=n.changedTouches[p];var g=v;var h=g;var y=a["default"].getPointerId(h);var m={pointer:h,pointerId:y,pointerType:o,eventType:n.type,eventTarget:l,curEventTarget:c,scope:t};var b=S(m);f.push([m.pointer,m.eventTarget,m.curEventTarget,b])}}else{var w=false;if(!r["default"].supportsPointerEvent&&/mouse/.test(n.type)){for(var O=0;O<i.length&&!w;O++){w=i[O].pointerType!=="mouse"&&i[O].pointerIsDown}w=w||t.now()-t.prevTouchTime<500||n.timeStamp===0}if(!w){var P={pointer:n,pointerId:a["default"].getPointerId(n),pointerType:o,eventType:n.type,curEventTarget:c,eventTarget:l,scope:t};var _=S(P);f.push([P.pointer,P.eventTarget,P.curEventTarget,_])}}for(var x=0;x<f.length;x++){var j=d(f[x],4),M=j[0],E=j[1],T=j[2],D=j[3];D[e](M,n,E,T)}}}function S(e){var t=e.pointerType,r=e.scope;var n=l["default"].search(e);var i={interaction:n,searchDetails:e};r.interactions.signals.fire("find",i);return i.interaction||r.interactions["new"]({pointerType:t})}function T(e,t){var r=e.doc,n=e.scope,i=e.options;var a=n.interactions.eventMap;var s=t.indexOf("add")===0?o["default"].add:o["default"].remove;if(n.browser.isIOS&&!i.events){i.events={passive:false}}for(var u in o["default"].delegatedEvents){s(r,u,o["default"].delegateListener);s(r,u,o["default"].delegateUseCapture,true)}var l=i&&i.events;for(var c=0;c<a.length;c++){var f;f=a[c];var p=f,d=p.type,v=p.listener;s(r,d,v,l)}}var D={id:"core/interactions",install:M,onDocSignal:T,doOnInteractions:E,methodNames:j};t["default"]=D});var n=e(function(e,r){Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"PointerInfo",{enumerable:true,get:function e(){return o["default"]}});r["default"]=r.Interaction=r._ProxyMethods=r._ProxyValues=void 0;var n=u(qt);var i=u(cn);var o=s(Tn);var a=t({});function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function l(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function f(e,t,r){if(t)c(e.prototype,t);if(r)c(e,r);return e}var p;r._ProxyValues=p;(function(e){e["interactable"]="";e["element"]="";e["prepared"]="";e["pointerIsDown"]="";e["pointerWasMoved"]="";e["_proxy"]=""})(p||(r._ProxyValues=p={}));var d;r._ProxyMethods=d;(function(e){e["start"]="";e["move"]="";e["end"]="";e["stop"]="";e["interacting"]=""})(d||(r._ProxyMethods=d={}));var v=function(){function e(t){var r=this;var i=t.pointerType,o=t.signals;l(this,e);this.interactable=null;this.element=null;this.prepared={name:null,axis:null,edges:null};this.pointers=[];this.downEvent=null;this.downPointer={};this._latestPointer={pointer:null,event:null,eventTarget:null};this.prevEvent=null;this.pointerIsDown=false;this.pointerWasMoved=false;this._interacting=false;this._ending=false;this._proxy=null;this.simulation=null;this.doMove=n.warnOnce(function(e){this.move(e)},"The interaction.doMove() method has been renamed to interaction.move()");this.coords={start:n.pointer.newCoords(),prev:n.pointer.newCoords(),cur:n.pointer.newCoords(),delta:n.pointer.newCoords(),velocity:n.pointer.newCoords()};this._signals=o;this.pointerType=i;var a=this;this._proxy={};var s=function e(t){Object.defineProperty(r._proxy,t,{get:function e(){return a[t]}})};for(var u in p){s(u)}var c=function e(t){Object.defineProperty(r._proxy,t,{value:function e(){return a[t].apply(a,arguments)}})};for(var u in d){c(u)}this._signals.fire("new",{interaction:this})}f(e,[{key:"pointerDown",value:function e(t,r,n){var i=this.updatePointer(t,r,n,true);this._signals.fire("down",{pointer:t,event:r,eventTarget:n,pointerIndex:i,interaction:this})}},{key:"start",value:function e(t,r,o){if(this.interacting()||!this.pointerIsDown||this.pointers.length<(t.name===a.ActionName.Gesture?2:1)||!r.options[t.name].enabled){return false}n.copyAction(this.prepared,t);this.interactable=r;this.element=o;this.rect=r.getRect(o);this.edges=this.prepared.edges;this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:i.EventPhase.Start});return this._interacting}},{key:"pointerMove",value:function e(t,r,i){if(!this.simulation&&!(this.modifiers&&this.modifiers.endPrevented)){this.updatePointer(t,r,i,false);n.pointer.setCoords(this.coords.cur,this.pointers.map(function(e){return e.pointer}),this._now())}var o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;var a;var s;if(this.pointerIsDown&&!this.pointerWasMoved){a=this.coords.cur.client.x-this.coords.start.client.x;s=this.coords.cur.client.y-this.coords.start.client.y;this.pointerWasMoved=n.hypot(a,s)>this.pointerMoveTolerance}var u={pointer:t,pointerIndex:this.getPointerIndex(t),event:r,eventTarget:i,dx:a,dy:s,duplicate:o,interaction:this};if(!o){n.pointer.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur);n.pointer.setCoordVelocity(this.coords.velocity,this.coords.delta)}this._signals.fire("move",u);if(!o){if(this.interacting()){this.move(u)}if(this.pointerWasMoved){n.pointer.copyCoords(this.coords.prev,this.coords.cur)}}}},{key:"move",value:function e(t){t=n.extend({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{});t.phase=i.EventPhase.Move;this._doPhase(t)}},{key:"pointerUp",value:function e(t,r,n,i){var o=this.getPointerIndex(t);if(o===-1){o=this.updatePointer(t,r,n,false)}this._signals.fire(/cancel$/i.test(r.type)?"cancel":"up",{pointer:t,pointerIndex:o,event:r,eventTarget:n,curEventTarget:i,interaction:this});if(!this.simulation){this.end(r)}this.pointerIsDown=false;this.removePointer(t,r)}},{key:"documentBlur",value:function e(t){this.end(t);this._signals.fire("blur",{event:t,interaction:this})}},{key:"end",value:function e(t){this._ending=true;t=t||this._latestPointer.event;var r;if(this.interacting()){r=this._doPhase({event:t,interaction:this,phase:i.EventPhase.End})}this._ending=false;if(r===true){this.stop()}}},{key:"currentAction",value:function e(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function e(){return this._interacting}},{key:"stop",value:function e(){this._signals.fire("stop",{interaction:this});this.interactable=this.element=null;this._interacting=false;this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function e(t){var r=n.pointer.getPointerId(t);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:n.arr.findIndex(this.pointers,function(e){return e.id===r})}},{key:"getPointerInfo",value:function e(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function e(t,r,i,a){var s=n.pointer.getPointerId(t);var u=this.getPointerIndex(t);var l=this.pointers[u];a=a===false?false:a||/(down|start)$/i.test(r.type);if(!l){l=new o["default"](s,t,r,null,null);u=this.pointers.length;this.pointers.push(l)}else{l.pointer=t}if(a){this.pointerIsDown=true;if(!this.interacting()){n.pointer.setCoords(this.coords.start,this.pointers.map(function(e){return e.pointer}),this._now());n.pointer.copyCoords(this.coords.cur,this.coords.start);n.pointer.copyCoords(this.coords.prev,this.coords.start);n.pointer.pointerExtend(this.downPointer,t);this.downEvent=r;l.downTime=this.coords.cur.timeStamp;l.downTarget=i;this.pointerWasMoved=false}}this._updateLatestPointer(t,r,i);this._signals.fire("update-pointer",{pointer:t,event:r,eventTarget:i,down:a,pointerInfo:l,pointerIndex:u,interaction:this});return u}},{key:"removePointer",value:function e(t,r){var n=this.getPointerIndex(t);if(n===-1){return}var i=this.pointers[n];this._signals.fire("remove-pointer",{pointer:t,event:r,pointerIndex:n,pointerInfo:i,interaction:this});this.pointers.splice(n,1)}},{key:"_updateLatestPointer",value:function e(t,r,n){this._latestPointer.pointer=t;this._latestPointer.event=r;this._latestPointer.eventTarget=n}},{key:"destroy",value:function e(){this._latestPointer.pointer=null;this._latestPointer.event=null;this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function e(t,r,n,o){var a=this.prepared.name;return new i["default"](this,t,a,r,this.element,null,n,o)}},{key:"_fireEvent",value:function e(t){this.interactable.fire(t);if(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp){this.prevEvent=t}}},{key:"_doPhase",value:function e(t){var r=t.event,n=t.phase,i=t.preEnd,o=t.type;var a=this._signals.fire("before-action-".concat(n),t);if(a===false){return false}var s=t.iEvent=this._createPreparedEvent(r,n,i,o);var u=this.rect;if(u){var l=this.edges||this.prepared.edges||{left:true,right:true,top:true,bottom:true};if(l.top){u.top+=s.delta.y}if(l.bottom){u.bottom+=s.delta.y}if(l.left){u.left+=s.delta.x}if(l.right){u.right+=s.delta.x}u.width=u.right-u.left;u.height=u.bottom-u.top}this._signals.fire("action-".concat(n),t);this._fireEvent(s);this._signals.fire("after-action-".concat(n),t);return true}},{key:"_now",value:function e(){return Date.now()}},{key:"pointerMoveTolerance",get:function e(){return 1}}]);return e}();r.Interaction=v;var g=v;r["default"]=g});var i={};Object.defineProperty(i,"__esModule",{value:true});i.contains=o;i.remove=a;i.merge=s;i.from=u;i.findIndex=l;i.find=c;function o(e,t){return e.indexOf(t)!==-1}function a(e,t){return e.splice(e.indexOf(t),1)}function s(e,t){for(var r=0;r<t.length;r++){var n;n=t[r];var i=n;e.push(i)}return e}function u(e){return s([],e)}function l(e,t){for(var r=0;r<e.length;r++){if(t(e[r],r,e)){return r}}return-1}function c(e,t){return e[l(e,t)]}var f={};Object.defineProperty(f,"__esModule",{value:true});f["default"]=void 0;var p={init:g,document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function d(){}var v=p;f["default"]=v;function g(e){var t=e;p.document=t.document;p.DocumentFragment=t.DocumentFragment||d;p.SVGElement=t.SVGElement||d;p.SVGSVGElement=t.SVGSVGElement||d;p.SVGElementInstance=t.SVGElementInstance||d;p.Element=t.Element||d;p.HTMLElement=t.HTMLElement||p.Element;p.Event=t.Event;p.Touch=t.Touch||d;p.PointerEvent=t.PointerEvent||t.MSPointerEvent}var h={};Object.defineProperty(h,"__esModule",{value:true});h["default"]=void 0;var y=function e(t){return!!(t&&t.Window)&&t instanceof t.Window};h["default"]=y;var m={};Object.defineProperty(m,"__esModule",{value:true});m.init=P;m.getWindow=_;m["default"]=void 0;var b=w(h);function w(e){return e&&e.__esModule?e:{default:e}}var O={realWindow:undefined,window:undefined,getWindow:_,init:P};function P(e){O.realWindow=e;var t=e.document.createTextNode("");if(t.ownerDocument!==e.document&&typeof e.wrap==="function"&&e.wrap(t)===t){e=e.wrap(e)}O.window=e}if(typeof window==="undefined"){O.window=undefined;O.realWindow=undefined}else{P(window)}function _(e){if((0,b["default"])(e)){return e}var t=e.ownerDocument||e;return t.defaultView||O.window}O.init=P;var x=O;m["default"]=x;var j={};Object.defineProperty(j,"__esModule",{value:true});j.array=j.plainObject=j.element=j.string=j.bool=j.number=j.func=j.object=j.docFrag=j.window=void 0;var M=S(h);var E=S(m);function S(e){return e&&e.__esModule?e:{default:e}}function T(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){T=function e(t){return typeof t}}else{T=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return T(e)}var D=function e(t){return t===E["default"].window||(0,M["default"])(t)};j.window=D;var k=function e(t){return I(t)&&t.nodeType===11};j.docFrag=k;var I=function e(t){return!!t&&T(t)==="object"};j.object=I;var z=function e(t){return typeof t==="function"};j.func=z;var A=function e(t){return typeof t==="number"};j.number=A;var C=function e(t){return typeof t==="boolean"};j.bool=C;var R=function e(t){return typeof t==="string"};j.string=R;var X=function e(t){if(!t||T(t)!=="object"){return false}var r=E["default"].getWindow(t)||E["default"].window;return/object|function/.test(T(r.Element))?t instanceof r.Element:t.nodeType===1&&typeof t.nodeName==="string"};j.element=X;var Y=function e(t){return I(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())};j.plainObject=Y;var N=function e(t){return I(t)&&typeof t.length!=="undefined"&&z(t.splice)};j.array=N;var L={};Object.defineProperty(L,"__esModule",{value:true});L["default"]=void 0;var F=G(f);var W=q(j);var V=G(m);function q(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function G(e){return e&&e.__esModule?e:{default:e}}var U={init:B,supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null};function B(e){var t=F["default"].Element;var r=V["default"].window.navigator;U.supportsTouch="ontouchstart"in e||W.func(e.DocumentTouch)&&F["default"].document instanceof e.DocumentTouch;U.supportsPointerEvent=r.pointerEnabled!==false&&!!F["default"].PointerEvent;U.isIOS=/iP(hone|od|ad)/.test(r.platform);U.isIOS7=/iP(hone|od|ad)/.test(r.platform)&&/OS 7[^\d]/.test(r.appVersion);U.isIe9=/MSIE 9/.test(r.userAgent);U.isOperaMobile=r.appName==="Opera"&&U.supportsTouch&&/Presto/.test(r.userAgent);U.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector";U.pEventTypes=U.supportsPointerEvent?F["default"].PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null;U.wheelEvent="onmousewheel"in F["default"].document?"mousewheel":"wheel"}var H=U;L["default"]=H;var $={};Object.defineProperty($,"__esModule",{value:true});$.nodeContains=re;$.closest=ne;$.parentNode=ie;$.matchesSelector=oe;$.indexOfDeepestElement=se;$.matchesUpTo=ue;$.getActualElement=le;$.getScrollXY=ce;$.getElementClientRect=fe;$.getElementRect=pe;$.getPath=de;$.trySelector=ve;var K=te(L);var Q=te(f);var J=ee(j);var Z=te(m);function ee(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function te(e){return e&&e.__esModule?e:{default:e}}function re(e,t){while(t){if(t===e){return true}t=t.parentNode}return false}function ne(e,t){while(J.element(e)){if(oe(e,t)){return e}e=ie(e)}return null}function ie(e){var t=e.parentNode;if(J.docFrag(t)){while((t=t.host)&&J.docFrag(t)){continue}return t}return t}function oe(e,t){if(Z["default"].window!==Z["default"].realWindow){t=t.replace(/\/deep\//g," ")}return e[K["default"].prefixedMatchesSelector](t)}var ae=function e(t){return t.parentNode?t.parentNode:t.host};function se(e){var t=[];var r=[];var n;var i=e[0];var o=i?0:-1;var a;var s;var u;var l;for(u=1;u<e.length;u++){n=e[u];if(!n||n===i){continue}if(!i){i=n;o=u;continue}if(n.parentNode===n.ownerDocument){continue}else if(i.parentNode===n.ownerDocument){i=n;o=u;continue}if(!t.length){a=i;while(ae(a)&&ae(a)!==a.ownerDocument){t.unshift(a);a=ae(a)}}if(i instanceof Q["default"].HTMLElement&&n instanceof Q["default"].SVGElement&&!(n instanceof Q["default"].SVGSVGElement)){if(n===i.parentNode){continue}a=n.ownerSVGElement}else{a=n}r=[];while(a.parentNode!==a.ownerDocument){r.unshift(a);a=ae(a)}l=0;while(r[l]&&r[l]===t[l]){l++}var c=[r[l-1],r[l],t[l]];s=c[0].lastChild;while(s){if(s===c[1]){i=n;o=u;t=[];break}else if(s===c[2]){break}s=s.previousSibling}}return o}function ue(e,t,r){while(J.element(e)){if(oe(e,t)){return true}e=ie(e);if(e===r){return oe(e,t)}}return false}function le(e){return e instanceof Q["default"].SVGElementInstance?e.correspondingUseElement:e}function ce(e){e=e||Z["default"].window;return{x:e.scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}}function fe(e){var t=e instanceof Q["default"].SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}function pe(e){var t=fe(e);if(!K["default"].isIOS7&&t){var r=ce(Z["default"].getWindow(e));t.left+=r.x;t.right+=r.x;t.top+=r.y;t.bottom+=r.y}return t}function de(e){var t=[];while(e){t.push(e);e=ie(e)}return t}function ve(e){if(!J.string(e)){return false}Q["default"].document.querySelector(e);return true}var ge={};Object.defineProperty(ge,"__esModule",{value:true});ge["default"]=be;var he=me(i);var ye=me(j);function me(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function be(e){var t={};for(var r in e){var n=e[r];if(ye.plainObject(n)){t[r]=be(n)}else if(ye.array(n)){t[r]=he.from(n)}else{t[r]=n}}return t}var we={};Object.defineProperty(we,"__esModule",{value:true});we["default"]=void 0;function Oe(e,t){for(var r in t){var n=Oe.prefixedPropREs;var i=false;for(var o in n){if(r.indexOf(o)===0&&n[o].test(r)){i=true;break}}if(!i&&typeof t[r]!=="function"){e[r]=t[r]}}return e}Oe.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/};var Pe=Oe;we["default"]=Pe;var _e={};Object.defineProperty(_e,"__esModule",{value:true});_e["default"]=void 0;var xe=function e(t,r){return Math.sqrt(t*t+r*r)};_e["default"]=xe;var je={};Object.defineProperty(je,"__esModule",{value:true});je["default"]=void 0;var Me=ze(L);var Ee=ze(f);var Se=Ie($);var Te=ze(_e);var De=Ie(j);var ke=ze(we);function Ie(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function ze(e){return e&&e.__esModule?e:{default:e}}var Ae={copyCoords:function e(t,r){t.page=t.page||{};t.page.x=r.page.x;t.page.y=r.page.y;t.client=t.client||{};t.client.x=r.client.x;t.client.y=r.client.y;t.timeStamp=r.timeStamp},setCoordDeltas:function e(t,r,n){t.page.x=n.page.x-r.page.x;t.page.y=n.page.y-r.page.y;t.client.x=n.client.x-r.client.x;t.client.y=n.client.y-r.client.y;t.timeStamp=n.timeStamp-r.timeStamp},setCoordVelocity:function e(t,r){var n=Math.max(r.timeStamp/1e3,.001);t.page.x=r.page.x/n;t.page.y=r.page.y/n;t.client.x=r.client.x/n;t.client.y=r.client.y/n;t.timeStamp=n},isNativePointer:function e(t){return t instanceof Ee["default"].Event||t instanceof Ee["default"].Touch},getXY:function e(t,r,n){n=n||{};t=t||"page";n.x=r[t+"X"];n.y=r[t+"Y"];return n},getPageXY:function e(t,r){r=r||{x:0,y:0};if(Me["default"].isOperaMobile&&Ae.isNativePointer(t)){Ae.getXY("screen",t,r);r.x+=window.scrollX;r.y+=window.scrollY}else{Ae.getXY("page",t,r)}return r},getClientXY:function e(t,r){r=r||{};if(Me["default"].isOperaMobile&&Ae.isNativePointer(t)){Ae.getXY("screen",t,r)}else{Ae.getXY("client",t,r)}return r},getPointerId:function e(t){return De.number(t.pointerId)?t.pointerId:t.identifier},setCoords:function e(t,r,n){var i=r.length>1?Ae.pointerAverage(r):r[0];var o={};Ae.getPageXY(i,o);t.page.x=o.x;t.page.y=o.y;Ae.getClientXY(i,o);t.client.x=o.x;t.client.y=o.y;t.timeStamp=n},pointerExtend:ke["default"],getTouchPair:function e(t){var r=[];if(De.array(t)){r[0]=t[0];r[1]=t[1]}else{if(t.type==="touchend"){if(t.touches.length===1){r[0]=t.touches[0];r[1]=t.changedTouches[0]}else if(t.touches.length===0){r[0]=t.changedTouches[0];r[1]=t.changedTouches[1]}}else{r[0]=t.touches[0];r[1]=t.touches[1]}}return r},pointerAverage:function e(t){var r={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0};for(var n=0;n<t.length;n++){var i;i=t[n];var o=i;for(var a in r){r[a]+=o[a]}}for(var s in r){r[s]/=t.length}return r},touchBBox:function e(t){if(!t.length&&!(t.touches&&t.touches.length>1)){return null}var r=Ae.getTouchPair(t);var n=Math.min(r[0].pageX,r[1].pageX);var i=Math.min(r[0].pageY,r[1].pageY);var o=Math.max(r[0].pageX,r[1].pageX);var a=Math.max(r[0].pageY,r[1].pageY);return{x:n,y:i,left:n,top:i,right:o,bottom:a,width:o-n,height:a-i}},touchDistance:function e(t,r){var n=r+"X";var i=r+"Y";var o=Ae.getTouchPair(t);var a=o[0][n]-o[1][n];var s=o[0][i]-o[1][i];return(0,Te["default"])(a,s)},touchAngle:function e(t,r){var n=r+"X";var i=r+"Y";var o=Ae.getTouchPair(t);var a=o[1][n]-o[0][n];var s=o[1][i]-o[0][i];var u=180*Math.atan2(s,a)/Math.PI;return u},getPointerType:function e(t){return De.string(t.pointerType)?t.pointerType:De.number(t.pointerType)?[undefined,undefined,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type)||t instanceof Ee["default"].Touch?"touch":"mouse"},getEventTargets:function e(t){var r=De.func(t.composedPath)?t.composedPath():t.path;return[Se.getActualElement(r?r[0]:t.target),Se.getActualElement(t.currentTarget)]},newCoords:function e(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},coordsToEvent:function e(t){var r={coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType}};return r}};var Ce=Ae;je["default"]=Ce;var Re={};Object.defineProperty(Re,"__esModule",{value:true});Re["default"]=Re.FakeEvent=void 0;var Xe=We($);var Ye=We(j);var Ne=Fe(we);var Le=Fe(je);function Fe(e){return e&&e.__esModule?e:{default:e}}function We(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function Ve(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function qe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Ge(e,t,r){if(t)qe(e.prototype,t);if(r)qe(e,r);return e}function Ue(e,t){return $e(e)||He(e,t)||Be()}function Be(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function He(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done);n=true){r.push(s.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"]!=null)a["return"]()}finally{if(i)throw o}}return r}function $e(e){if(Array.isArray(e))return e}var Ke=[];var Qe=[];var Je={};var Ze=[];function et(e,t,r,n){var o=at(n);var a=Ke.indexOf(e);var s=Qe[a];if(!s){s={events:{},typeCount:0};a=Ke.push(e)-1;Qe.push(s)}if(!s.events[t]){s.events[t]=[];s.typeCount++}if(!(0,i.contains)(s.events[t],r)){e.addEventListener(t,r,ut.supportsOptions?o:!!o.capture);s.events[t].push(r)}}function tt(e,t,r,n){var i=at(n);var o=Ke.indexOf(e);var a=Qe[o];if(!a||!a.events){return}if(t==="all"){for(t in a.events){if(a.events.hasOwnProperty(t)){tt(e,t,"all")}}return}if(a.events[t]){var s=a.events[t].length;if(r==="all"){for(var u=0;u<s;u++){tt(e,t,a.events[t][u],i)}return}else{for(var l=0;l<s;l++){if(a.events[t][l]===r){e.removeEventListener(t,r,ut.supportsOptions?i:!!i.capture);a.events[t].splice(l,1);break}}}if(a.events[t]&&a.events[t].length===0){a.events[t]=null;a.typeCount--}}if(!a.typeCount){Qe.splice(o,1);Ke.splice(o,1)}}function rt(e,t,r,n,i){var o=at(i);if(!Je[r]){Je[r]={contexts:[],listeners:[],selectors:[]};for(var a=0;a<Ze.length;a++){var s=Ze[a];et(s,r,it);et(s,r,ot,true)}}var u=Je[r];var l;for(l=u.selectors.length-1;l>=0;l--){if(u.selectors[l]===e&&u.contexts[l]===t){break}}if(l===-1){l=u.selectors.length;u.selectors.push(e);u.contexts.push(t);u.listeners.push([])}u.listeners[l].push([n,!!o.capture,o.passive])}function nt(e,t,r,n,i){var o=at(i);var a=Je[r];var s=false;var u;if(!a){return}for(u=a.selectors.length-1;u>=0;u--){if(a.selectors[u]===e&&a.contexts[u]===t){var l=a.listeners[u];for(var c=l.length-1;c>=0;c--){var f=Ue(l[c],3),p=f[0],d=f[1],v=f[2];if(p===n&&d===!!o.capture&&v===o.passive){l.splice(c,1);if(!l.length){a.selectors.splice(u,1);a.contexts.splice(u,1);a.listeners.splice(u,1);tt(t,r,it);tt(t,r,ot,true);if(!a.selectors.length){Je[r]=null}}s=true;break}}if(s){break}}}}function it(e,t){var r=at(t);var n=new st(e);var i=Je[e.type];var o=Le["default"].getEventTargets(e),a=Ue(o,1),s=a[0];var u=s;while(Ye.element(u)){for(var l=0;l<i.selectors.length;l++){var c=i.selectors[l];var f=i.contexts[l];if(Xe.matchesSelector(u,c)&&Xe.nodeContains(f,s)&&Xe.nodeContains(f,u)){var p=i.listeners[l];n.currentTarget=u;for(var d=0;d<p.length;d++){var v;v=p[d];var g=v,h=Ue(g,3),y=h[0],m=h[1],b=h[2];if(m===!!r.capture&&b===r.passive){y(n)}}}}u=Xe.parentNode(u)}}function ot(e){return it.call(this,e,true)}function at(e){return Ye.object(e)?e:{capture:e}}var st=function(){function e(t){Ve(this,e);this.originalEvent=t;(0,Ne["default"])(this,t)}Ge(e,[{key:"preventOriginalDefault",value:function e(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function e(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function e(){this.originalEvent.stopImmediatePropagation()}}]);return e}();Re.FakeEvent=st;var ut={add:et,remove:tt,addDelegate:rt,removeDelegate:nt,delegateListener:it,delegateUseCapture:ot,delegatedEvents:Je,documents:Ze,supportsOptions:false,supportsPassive:false,_elements:Ke,_targets:Qe,init:function e(t){t.document.createElement("div").addEventListener("test",null,{get capture(){return ut.supportsOptions=true},get passive(){return ut.supportsPassive=true}})}};var lt=ut;Re["default"]=lt;var ct={};Object.defineProperty(ct,"__esModule",{value:true});ct["default"]=ft;function ft(e,t){for(var r in t){e[r]=t[r]}return e}var pt={};Object.defineProperty(pt,"__esModule",{value:true});pt.getStringOptionResult=yt;pt.resolveRectLike=mt;pt.rectToXY=bt;pt.xywhToTlbr=wt;pt.tlbrToXywh=Ot;pt["default"]=void 0;var dt=ht(ct);var vt=gt(j);function gt(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function ht(e){return e&&e.__esModule?e:{default:e}}function yt(e,t,r){if(!vt.string(e)){return null}if(e==="parent"){e=(0,$.parentNode)(r)}else if(e==="self"){e=t.getRect(r)}else{e=(0,$.closest)(r,e)}return e}function mt(e,t,r,n){e=yt(e,t,r)||e;if(vt.func(e)){e=e.apply(null,n)}if(vt.element(e)){e=(0,$.getElementRect)(e)}return e}function bt(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}}function wt(e){if(e&&!("left"in e&&"top"in e)){e=(0,dt["default"])({},e);e.left=e.x||0;e.top=e.y||0;e.right=e.right||e.left+e.width;e.bottom=e.bottom||e.top+e.height}return e}function Ot(e){if(e&&!("x"in e&&"y"in e)){e=(0,dt["default"])({},e);e.x=e.left||0;e.y=e.top||0;e.width=e.width||e.right-e.x;e.height=e.height||e.bottom-e.y}return e}var Pt={getStringOptionResult:yt,resolveRectLike:mt,rectToXY:bt,xywhToTlbr:wt,tlbrToXywh:Ot};pt["default"]=Pt;var _t={};Object.defineProperty(_t,"__esModule",{value:true});_t["default"]=xt;function xt(e,t,r){var n=e.options[r];var i=n&&n.origin;var o=i||e.options.origin;var a=(0,pt.resolveRectLike)(o,e,t,[e&&t]);return(0,pt.rectToXY)(a)||{x:0,y:0}}var jt={};Object.defineProperty(jt,"__esModule",{value:true});jt["default"]=Dt;var Mt=Tt(ct);var Et=St(j);function St(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function Tt(e){return e&&e.__esModule?e:{default:e}}function Dt(e,t,r){r=r||{};if(Et.string(e)&&e.search(" ")!==-1){e=kt(e)}if(Et.array(e)){return e.reduce(function(e,n){return(0,Mt["default"])(e,Dt(n,t,r))},r)}if(Et.object(e)){t=e;e=""}if(Et.func(t)){r[e]=r[e]||[];r[e].push(t)}else if(Et.array(t)){for(var n=0;n<t.length;n++){var i;i=t[n];var o=i;Dt(e,o,r)}}else if(Et.object(t)){for(var a in t){var s=kt(a).map(function(t){return"".concat(e).concat(t)});Dt(s,t[a],r)}}return r}function kt(e){return e.trim().split(/ +/)}var It={};Object.defineProperty(It,"__esModule",{value:true});It["default"]=void 0;var zt=0;var At;var Ct;function Rt(e){At=e.requestAnimationFrame;Ct=e.cancelAnimationFrame;if(!At){var t=["ms","moz","webkit","o"];for(var r=0;r<t.length;r++){var n=t[r];At=e["".concat(n,"RequestAnimationFrame")];Ct=e["".concat(n,"CancelAnimationFrame")]||e["".concat(n,"CancelRequestAnimationFrame")]}}if(!At){At=function e(t){var r=Date.now();var n=Math.max(0,16-(r-zt));var i=setTimeout(function(){t(r+n)},n);zt=r+n;return i};Ct=function e(t){return clearTimeout(t)}}}var Xt={request:function e(t){return At(t)},cancel:function e(t){return Ct(t)},init:Rt};It["default"]=Xt;var Yt={};Object.defineProperty(Yt,"__esModule",{value:true});Yt["default"]=void 0;function Nt(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Lt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Ft(e,t,r){if(t)Lt(e.prototype,t);if(r)Lt(e,r);return e}var Wt=function(){function e(){Nt(this,e);this.listeners={}}Ft(e,[{key:"on",value:function e(t,r){if(!this.listeners[t]){this.listeners[t]=[r];return}this.listeners[t].push(r)}},{key:"off",value:function e(t,r){if(!this.listeners[t]){return}var n=this.listeners[t].indexOf(r);if(n!==-1){this.listeners[t].splice(n,1)}}},{key:"fire",value:function e(t,r){var n=this.listeners[t];if(!n){return}for(var i=0;i<n.length;i++){var o;o=n[i];var a=o;if(a(r,t)===false){return false}}}}]);return e}();var Vt=Wt;Yt["default"]=Vt;var qt={};Object.defineProperty(qt,"__esModule",{value:true});qt.warnOnce=ur;qt._getQBezierValue=lr;qt.getQuadraticCurvePoint=cr;qt.easeOutQuad=fr;qt.copyAction=pr;Object.defineProperty(qt,"win",{enumerable:true,get:function e(){return Ht["default"]}});Object.defineProperty(qt,"browser",{enumerable:true,get:function e(){return $t["default"]}});Object.defineProperty(qt,"clone",{enumerable:true,get:function e(){return Kt["default"]}});Object.defineProperty(qt,"events",{enumerable:true,get:function e(){return Qt["default"]}});Object.defineProperty(qt,"extend",{enumerable:true,get:function e(){return Jt["default"]}});Object.defineProperty(qt,"getOriginXY",{enumerable:true,get:function e(){return Zt["default"]}});Object.defineProperty(qt,"hypot",{enumerable:true,get:function e(){return er["default"]}});Object.defineProperty(qt,"normalizeListeners",{enumerable:true,get:function e(){return tr["default"]}});Object.defineProperty(qt,"pointer",{enumerable:true,get:function e(){return rr["default"]}});Object.defineProperty(qt,"raf",{enumerable:true,get:function e(){return nr["default"]}});Object.defineProperty(qt,"rect",{enumerable:true,get:function e(){return ir["default"]}});Object.defineProperty(qt,"Signals",{enumerable:true,get:function e(){return or["default"]}});qt.is=qt.dom=qt.arr=void 0;var Gt=sr(i);qt.arr=Gt;var Ut=sr($);qt.dom=Ut;var Bt=sr(j);qt.is=Bt;var Ht=ar(m);var $t=ar(L);var Kt=ar(ge);var Qt=ar(Re);var Jt=ar(ct);var Zt=ar(_t);var er=ar(_e);var tr=ar(jt);var rr=ar(je);var nr=ar(It);var ir=ar(pt);var or=ar(Yt);function ar(e){return e&&e.__esModule?e:{default:e}}function sr(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function ur(e,t){var r=false;return function(){if(!r){Ht["default"].window.console.warn(t);r=true}return e.apply(this,arguments)}}function lr(e,t,r,n){var i=1-e;return i*i*t+2*i*e*r+e*e*n}function cr(e,t,r,n,i,o,a){return{x:lr(a,e,r,i),y:lr(a,t,n,o)}}function fr(e,t,r,n){e/=n;return-r*e*(e-2)+t}function pr(e,t){e.name=t.name;e.axis=t.axis;e.edges=t.edges;return e}var dr={};Object.defineProperty(dr,"__esModule",{value:true});dr["default"]=dr.defaults=void 0;var vr={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:false,origin:{x:0,y:0}},actions:{}};dr.defaults=vr;var gr=vr;dr["default"]=gr;var hr={};Object.defineProperty(hr,"__esModule",{value:true});hr["default"]=void 0;var yr=Or(i);var mr=wr(ct);var br=wr(jt);function wr(e){return e&&e.__esModule?e:{default:e}}function Or(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function Pr(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function xr(e,t,r){if(t)_r(e.prototype,t);if(r)_r(e,r);return e}function jr(e,t){for(var r=0;r<t.length;r++){var n;n=t[r];var i=n;if(e.immediatePropagationStopped){break}i(e)}}var Mr=function(){function e(t){Pr(this,e);this.types={};this.propagationStopped=false;this.immediatePropagationStopped=false;this.options=(0,mr["default"])({},t||{})}xr(e,[{key:"fire",value:function e(t){var r;var n=this.global;if(r=this.types[t.type]){jr(t,r)}if(!t.propagationStopped&&n&&(r=n[t.type])){jr(t,r)}}},{key:"on",value:function e(t,r){var n=(0,br["default"])(t,r);for(t in n){this.types[t]=yr.merge(this.types[t]||[],n[t])}}},{key:"off",value:function e(t,r){var n=(0,br["default"])(t,r);for(t in n){var i=this.types[t];if(!i||!i.length){continue}for(var o=0;o<n[t].length;o++){var a;a=n[t][o];var s=a;var u=i.indexOf(s);if(u!==-1){i.splice(u,1)}}}}}]);return e}();var Er=Mr;hr["default"]=Er;var Sr={};Object.defineProperty(Sr,"__esModule",{value:true});Sr["default"]=Sr.Interactable=void 0;var Tr=Yr(i);var Dr=Xr(L);var kr=Xr(ge);var Ir=Xr(Re);var zr=Xr(ct);var Ar=Yr(j);var Cr=Xr(jt);var Rr=Xr(hr);function Xr(e){return e&&e.__esModule?e:{default:e}}function Yr(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function Nr(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Lr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function Fr(e,t,r){if(t)Lr(e.prototype,t);if(r)Lr(e,r);return e}var Wr=function(){function e(t,r,n){Nr(this,e);this.events=new Rr["default"];this._actions=r.actions;this.target=t;this._context=r.context||n;this._win=(0,m.getWindow)((0,$.trySelector)(t)?this._context:t);this._doc=this._win.document;this.set(r)}Fr(e,[{key:"setOnEvents",value:function e(t,r){if(Ar.func(r.onstart)){this.on("".concat(t,"start"),r.onstart)}if(Ar.func(r.onmove)){this.on("".concat(t,"move"),r.onmove)}if(Ar.func(r.onend)){this.on("".concat(t,"end"),r.onend)}if(Ar.func(r.oninertiastart)){this.on("".concat(t,"inertiastart"),r.oninertiastart)}return this}},{key:"updatePerActionListeners",value:function e(t,r,n){if(Ar.array(r)||Ar.object(r)){this.off(t,r)}if(Ar.array(n)||Ar.object(n)){this.on(t,n)}}},{key:"setPerAction",value:function e(t,r){var n=this._defaults;for(var i in r){var o=this.options[t];var a=r[i];var s=Ar.array(a);if(i==="listeners"){this.updatePerActionListeners(t,o.listeners,a)}if(s){o[i]=Tr.from(a)}else if(!s&&Ar.plainObject(a)){o[i]=(0,zr["default"])(o[i]||{},(0,kr["default"])(a));if(Ar.object(n.perAction[i])&&"enabled"in n.perAction[i]){o[i].enabled=a.enabled!==false}}else if(Ar.bool(a)&&Ar.object(n.perAction[i])){o[i].enabled=a}else{o[i]=a}}}},{key:"getRect",value:function e(t){t=t||(Ar.element(this.target)?this.target:null);if(Ar.string(this.target)){t=t||this._context.querySelector(this.target)}return(0,$.getElementRect)(t)}},{key:"rectChecker",value:function e(t){if(Ar.func(t)){this.getRect=t;return this}if(t===null){delete this.getRect;return this}return this.getRect}},{key:"_backCompatOption",value:function e(t,r){if((0,$.trySelector)(r)||Ar.object(r)){this.options[t]=r;for(var n=0;n<this._actions.names.length;n++){var i;i=this._actions.names[n];var o=i;this.options[o][t]=r}return this}return this.options[t]}},{key:"origin",value:function e(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function e(t){if(t==="page"||t==="client"){this.options.deltaSource=t;return this}return this.options.deltaSource}},{key:"context",value:function e(){return this._context}},{key:"inContext",value:function e(t){return this._context===t.ownerDocument||(0,$.nodeContains)(this._context,t)}},{key:"testIgnoreAllow",value:function e(t,r,n){return!this.testIgnore(t.ignoreFrom,r,n)&&this.testAllow(t.allowFrom,r,n)}},{key:"testAllow",value:function e(t,r,n){if(!t){return true}if(!Ar.element(n)){return false}if(Ar.string(t)){return(0,$.matchesUpTo)(n,t,r)}else if(Ar.element(t)){return(0,$.nodeContains)(t,n)}return false}},{key:"testIgnore",value:function e(t,r,n){if(!t||!Ar.element(n)){return false}if(Ar.string(t)){return(0,$.matchesUpTo)(n,t,r)}else if(Ar.element(t)){return(0,$.nodeContains)(t,n)}return false}},{key:"fire",value:function e(t){this.events.fire(t);return this}},{key:"_onOff",value:function e(t,r,n,i){if(Ar.object(r)&&!Ar.array(r)){i=n;n=null}var o=t==="on"?"add":"remove";var a=(0,Cr["default"])(r,n);for(var s in a){if(s==="wheel"){s=Dr["default"].wheelEvent}for(var u=0;u<a[s].length;u++){var l;l=a[s][u];var c=l;if(Tr.contains(this._actions.eventTypes,s)){this.events[t](s,c)}else if(Ar.string(this.target)){Ir["default"]["".concat(o,"Delegate")](this.target,this._context,s,c,i)}else{Ir["default"][o](this.target,s,c,i)}}}return this}},{key:"on",value:function e(t,r,n){return this._onOff("on",t,r,n)}},{key:"off",value:function e(t,r,n){return this._onOff("off",t,r,n)}},{key:"set",value:function e(t){var r=this._defaults;if(!Ar.object(t)){t={}}this.options=(0,kr["default"])(r.base);for(var n in this._actions.methodDict){var i=this._actions.methodDict[n];this.options[n]={};this.setPerAction(n,(0,zr["default"])((0,zr["default"])({},r.perAction),r.actions[n]));this[i](t[n])}for(var o in t){if(Ar.func(this[o])){this[o](t[o])}}return this}},{key:"unset",value:function e(){Ir["default"].remove(this.target,"all");if(Ar.string(this.target)){for(var t in Ir["default"].delegatedEvents){var r=Ir["default"].delegatedEvents[t];if(r.selectors[0]===this.target&&r.contexts[0]===this._context){r.selectors.splice(0,1);r.contexts.splice(0,1);r.listeners.splice(0,1);if(!r.selectors.length){r[t]=null}}Ir["default"].remove(this._context,t,Ir["default"].delegateListener);Ir["default"].remove(this._context,t,Ir["default"].delegateUseCapture,true)}}else{Ir["default"].remove(this.target,"all")}}},{key:"_defaults",get:function e(){return{base:{},perAction:{},actions:{}}}}]);return e}();Sr.Interactable=Wr;var Vr=Wr;Sr["default"]=Vr;var qr={};Object.defineProperty(qr,"__esModule",{value:true});qr["default"]=void 0;var Gr=Qr(i);var Ur=Qr($);var Br=Kr(ct);var Hr=Qr(j);var $r=Kr(Yt);function Kr(e){return e&&e.__esModule?e:{default:e}}function Qr(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function Jr(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Zr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function en(e,t,r){if(t)Zr(e.prototype,t);if(r)Zr(e,r);return e}var tn=function(){function e(t){var r=this;Jr(this,e);this.scope=t;this.signals=new $r["default"];this.list=[];this.selectorMap={};this.signals.on("unset",function(e){var t=e.interactable;var n=t.target,i=t._context;var o=Hr.string(n)?r.selectorMap[n]:n[r.scope.id];var a=o.findIndex(function(e){return e.context===i});if(o[a]){o[a].context=null;o[a].interactable=null}o.splice(a,1)})}en(e,[{key:"new",value:function e(t,r){r=(0,Br["default"])(r||{},{actions:this.scope.actions});var n=new this.scope.Interactable(t,r,this.scope.document);var i={context:n._context,interactable:n};this.scope.addDocument(n._doc);this.list.push(n);if(Hr.string(t)){if(!this.selectorMap[t]){this.selectorMap[t]=[]}this.selectorMap[t].push(i)}else{if(!n.target[this.scope.id]){Object.defineProperty(t,this.scope.id,{value:[],configurable:true})}t[this.scope.id].push(i)}this.signals.fire("new",{target:t,options:r,interactable:n,win:this.scope._win});return n}},{key:"get",value:function e(t,r){var n=r&&r.context||this.scope.document;var i=Hr.string(t);var o=i?this.selectorMap[t]:t[this.scope.id];if(!o){return null}var a=Gr.find(o,function(e){return e.context===n&&(i||e.interactable.inContext(t))});return a&&a.interactable}},{key:"forEachMatch",value:function e(t,r){for(var n=0;n<this.list.length;n++){var i;i=this.list[n];var o=i;var a=void 0;if((Hr.string(o.target)?Hr.element(t)&&Ur.matchesSelector(t,o.target):t===o.target)&&o.inContext(t)){a=r(o)}if(a!==undefined){return a}}}}]);return e}();qr["default"]=tn;var rn={};Object.defineProperty(rn,"__esModule",{value:true});rn["default"]=rn.BaseEvent=rn.EventPhase=void 0;function nn(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function on(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function an(e,t,r){if(t)on(e.prototype,t);if(r)on(e,r);return e}var sn;rn.EventPhase=sn;(function(e){e["Start"]="start";e["Move"]="move";e["End"]="end";e["_NONE"]=""})(sn||(rn.EventPhase=sn={}));var un=function(){function e(t){nn(this,e);this.immediatePropagationStopped=false;this.propagationStopped=false;this._interaction=t}an(e,[{key:"preventDefault",value:function e(){}},{key:"stopPropagation",value:function e(){this.propagationStopped=true}},{key:"stopImmediatePropagation",value:function e(){this.immediatePropagationStopped=this.propagationStopped=true}},{key:"interaction",get:function e(){return this._interaction._proxy}}]);return e}();rn.BaseEvent=un;var ln=un;rn["default"]=ln;var cn={};Object.defineProperty(cn,"__esModule",{value:true});cn["default"]=cn.InteractEvent=cn.EventPhase=void 0;var fn=hn(ct);var pn=hn(_t);var dn=hn(_e);var vn=hn(rn);var gn=hn(dr);function hn(e){return e&&e.__esModule?e:{default:e}}function yn(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){yn=function e(t){return typeof t}}else{yn=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return yn(e)}function mn(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function bn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function wn(e,t,r){if(t)bn(e.prototype,t);if(r)bn(e,r);return e}function On(e,t){if(t&&(yn(t)==="object"||typeof t==="function")){return t}return _n(e)}function Pn(e){Pn=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return Pn(e)}function _n(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function xn(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)jn(e,t)}function jn(e,t){jn=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return jn(e,t)}var Mn;cn.EventPhase=Mn;(function(e){e["Start"]="start";e["Move"]="move";e["End"]="end";e["_NONE"]=""})(Mn||(cn.EventPhase=Mn={}));var En=function(e){xn(t,e);function t(e,r,n,i,o,a,s,u){var l;mn(this,t);l=On(this,Pn(t).call(this,e));o=o||e.element;var c=e.interactable;var f=(c&&c.options||gn["default"]).deltaSource;var p=(0,pn["default"])(c,o,n);var d=i==="start";var v=i==="end";var g=d?_n(l):e.prevEvent;var h=d?e.coords.start:v?{page:g.page,client:g.client,timeStamp:e.coords.cur.timeStamp}:e.coords.cur;l.page=(0,fn["default"])({},h.page);l.client=(0,fn["default"])({},h.client);l.rect=(0,fn["default"])({},e.rect);l.timeStamp=h.timeStamp;if(!v){l.page.x-=p.x;l.page.y-=p.y;l.client.x-=p.x;l.client.y-=p.y}l.ctrlKey=r.ctrlKey;l.altKey=r.altKey;l.shiftKey=r.shiftKey;l.metaKey=r.metaKey;l.button=r.button;l.buttons=r.buttons;l.target=o;l.currentTarget=o;l.relatedTarget=a||null;l.preEnd=s;l.type=u||n+(i||"");l.interactable=c;l.t0=d?e.pointers[e.pointers.length-1].downTime:g.t0;l.x0=e.coords.start.page.x-p.x;l.y0=e.coords.start.page.y-p.y;l.clientX0=e.coords.start.client.x-p.x;l.clientY0=e.coords.start.client.y-p.y;if(d||v){l.delta={x:0,y:0}}else{l.delta={x:l[f].x-g[f].x,y:l[f].y-g[f].y}}l.dt=e.coords.delta.timeStamp;l.duration=l.timeStamp-l.t0;l.velocity=(0,fn["default"])({},e.coords.velocity[f]);l.speed=(0,dn["default"])(l.velocity.x,l.velocity.y);l.swipe=v||i==="inertiastart"?l.getSwipe():null;return l}wn(t,[{key:"getSwipe",value:function e(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150){return null}var r=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;var n=22.5;if(r<0){r+=360}var i=135-n<=r&&r<225+n;var o=225-n<=r&&r<315+n;var a=!i&&(315-n<=r||r<45+n);var s=!o&&45-n<=r&&r<135+n;return{up:o,down:s,left:i,right:a,angle:r,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function e(){}},{key:"stopImmediatePropagation",value:function e(){this.immediatePropagationStopped=this.propagationStopped=true}},{key:"stopPropagation",value:function e(){this.propagationStopped=true}},{key:"pageX",get:function e(){return this.page.x},set:function e(t){this.page.x=t}},{key:"pageY",get:function e(){return this.page.y},set:function e(t){this.page.y=t}},{key:"clientX",get:function e(){return this.client.x},set:function e(t){this.client.x=t}},{key:"clientY",get:function e(){return this.client.y},set:function e(t){this.client.y=t}},{key:"dx",get:function e(){return this.delta.x},set:function e(t){this.delta.x=t}},{key:"dy",get:function e(){return this.delta.y},set:function e(t){this.delta.y=t}},{key:"velocityX",get:function e(){return this.velocity.x},set:function e(t){this.velocity.x=t}},{key:"velocityY",get:function e(){return this.velocity.y},set:function e(t){this.velocity.y=t}}]);return t}(vn["default"]);cn.InteractEvent=En;var Sn=En;cn["default"]=Sn;var Tn={};Object.defineProperty(Tn,"__esModule",{value:true});Tn["default"]=Tn.PointerInfo=void 0;function Dn(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var kn=function e(t,r,n,i,o){Dn(this,e);this.id=t;this.pointer=r;this.event=n;this.downTime=i;this.downTarget=o};Tn.PointerInfo=kn;var In=kn;Tn["default"]=In;var zn={};Object.defineProperty(zn,"__esModule",{value:true});zn["default"]=void 0;var An=Cn($);function Cn(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}var Rn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function e(t){for(var r=0;r<Rn.methodOrder.length;r++){var n;n=Rn.methodOrder[r];var i=n;var o=Rn[i](t);if(o){return o}}},simulationResume:function e(t){var r=t.pointerType,n=t.eventType,i=t.eventTarget,o=t.scope;if(!/down|start/i.test(n)){return null}for(var a=0;a<o.interactions.list.length;a++){var s;s=o.interactions.list[a];var u=s;var l=i;if(u.simulation&&u.simulation.allowResume&&u.pointerType===r){while(l){if(l===u.element){return u}l=An.parentNode(l)}}}return null},mouseOrPen:function e(t){var r=t.pointerId,n=t.pointerType,i=t.eventType,o=t.scope;if(n!=="mouse"&&n!=="pen"){return null}var a;for(var s=0;s<o.interactions.list.length;s++){var u;u=o.interactions.list[s];var l=u;if(l.pointerType===n){if(l.simulation&&!Xn(l,r)){continue}if(l.interacting()){return l}else if(!a){a=l}}}if(a){return a}for(var c=0;c<o.interactions.list.length;c++){var f;f=o.interactions.list[c];var p=f;if(p.pointerType===n&&!(/down/i.test(i)&&p.simulation)){return p}}return null},hasPointer:function e(t){var r=t.pointerId,n=t.scope;for(var i=0;i<n.interactions.list.length;i++){var o;o=n.interactions.list[i];var a=o;if(Xn(a,r)){return a}}return null},idle:function e(t){var r=t.pointerType,n=t.scope;for(var i=0;i<n.interactions.list.length;i++){var o;o=n.interactions.list[i];var a=o;if(a.pointers.length===1){var s=a.interactable;if(s&&!s.options.gesture.enabled){continue}}else if(a.pointers.length>=2){continue}if(!a.interacting()&&r===a.pointerType){return a}}return null}};function Xn(e,t){return e.pointers.some(function(e){var r=e.id;return r===t})}var Yn=Rn;zn["default"]=Yn;var Nn={};Object.defineProperty(Nn,"__esModule",{value:true});Nn["default"]=void 0;var Ln=t({});var Fn=Vn(i);var Wn=Vn(j);function Vn(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}Ln.ActionName.Drag="drag";function qn(e){var t=e.actions,r=e.Interactable,n=e.interactions,i=e.defaults;n.signals.on("before-action-move",Gn);n.signals.on("action-resume",Gn);n.signals.on("action-move",Un);r.prototype.draggable=Hn.draggable;t[Ln.ActionName.Drag]=Hn;t.names.push(Ln.ActionName.Drag);Fn.merge(t.eventTypes,["dragstart","dragmove","draginertiastart","dragresume","dragend"]);t.methodDict.drag="draggable";i.actions.drag=Hn.defaults}function Gn(e){var t=e.interaction;if(t.prepared.name!=="drag"){return}var r=t.prepared.axis;if(r==="x"){t.coords.cur.page.y=t.coords.start.page.y;t.coords.cur.client.y=t.coords.start.client.y;t.coords.velocity.client.y=0;t.coords.velocity.page.y=0}else if(r==="y"){t.coords.cur.page.x=t.coords.start.page.x;t.coords.cur.client.x=t.coords.start.client.x;t.coords.velocity.client.x=0;t.coords.velocity.page.x=0}}function Un(e){var t=e.iEvent,r=e.interaction;if(r.prepared.name!=="drag"){return}var n=r.prepared.axis;if(n==="x"||n==="y"){var i=n==="x"?"y":"x";t.page[i]=r.coords.start.page[i];t.client[i]=r.coords.start.client[i];t.delta[i]=0}}var Bn=function e(t){if(Wn.object(t)){this.options.drag.enabled=t.enabled!==false;this.setPerAction("drag",t);this.setOnEvents("drag",t);if(/^(xy|x|y|start)$/.test(t.lockAxis)){this.options.drag.lockAxis=t.lockAxis}if(/^(xy|x|y)$/.test(t.startAxis)){this.options.drag.startAxis=t.startAxis}return this}if(Wn.bool(t)){this.options.drag.enabled=t;return this}return this.options.drag};var Hn={id:"actions/drag",install:qn,draggable:Bn,beforeMove:Gn,move:Un,defaults:{startAxis:"xy",lockAxis:"xy"},checker:function e(t,r,n){var i=n.options.drag;return i.enabled?{name:"drag",axis:i.lockAxis==="start"?i.startAxis:i.lockAxis}:null},getCursor:function e(){return"move"}};var $n=Hn;Nn["default"]=$n;var Kn={};Object.defineProperty(Kn,"__esModule",{value:true});Kn["default"]=void 0;var Qn=ei(rn);var Jn=Zn(i);function Zn(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function ei(e){return e&&e.__esModule?e:{default:e}}function ti(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){ti=function e(t){return typeof t}}else{ti=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return ti(e)}function ri(e){return oi(e)||ii(e)||ni()}function ni(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function ii(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function oi(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++){r[t]=e[t]}return r}}function ai(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function si(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function ui(e,t,r){if(t)si(e.prototype,t);if(r)si(e,r);return e}function li(e,t){if(t&&(ti(t)==="object"||typeof t==="function")){return t}return ci(e)}function ci(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function fi(e){fi=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return fi(e)}function pi(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)di(e,t)}function di(e,t){di=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return di(e,t)}var vi=function(e){pi(t,e);function t(e,r,n){var i;ai(this,t);i=li(this,fi(t).call(this,r._interaction));i.propagationStopped=false;i.immediatePropagationStopped=false;var o=n==="dragleave"?e.prev:e.cur,a=o.element,s=o.dropzone;i.type=n;i.target=a;i.currentTarget=a;i.dropzone=s;i.dragEvent=r;i.relatedTarget=r.target;i.draggable=r.interactable;i.timeStamp=r.timeStamp;return i}ui(t,[{key:"reject",value:function e(){var r=this;var n=this._interaction.dropState;if(this.type!=="dropactivate"&&(!this.dropzone||n.cur.dropzone!==this.dropzone||n.cur.element!==this.target)){return}n.prev.dropzone=this.dropzone;n.prev.element=this.target;n.rejected=true;n.events.enter=null;this.stopImmediatePropagation();if(this.type==="dropactivate"){var i=n.activeDrops;var o=Jn.findIndex(i,function(e){var t=e.dropzone,n=e.element;return t===r.dropzone&&n===r.target});n.activeDrops=[].concat(ri(i.slice(0,o)),ri(i.slice(o+1)));var a=new t(n,this.dragEvent,"dropdeactivate");a.dropzone=this.dropzone;a.target=this.target;this.dropzone.fire(a)}else{this.dropzone.fire(new t(n,this.dragEvent,"dragleave"))}}},{key:"preventDefault",value:function e(){}},{key:"stopPropagation",value:function e(){this.propagationStopped=true}},{key:"stopImmediatePropagation",value:function e(){this.immediatePropagationStopped=this.propagationStopped=true}}]);return t}(Qn["default"]);var gi=vi;Kn["default"]=gi;var hi={};Object.defineProperty(hi,"__esModule",{value:true});hi["default"]=void 0;var yi=Oi(qt);var mi=wi(Nn);var bi=wi(Kn);function wi(e){return e&&e.__esModule?e:{default:e}}function Oi(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function Pi(e){var t=e.actions,r=e.interact,n=e.Interactable,i=e.interactions,o=e.defaults;e.usePlugin(mi["default"]);i.signals.on("before-action-start",function(e){var t=e.interaction;if(t.prepared.name!=="drag"){return}t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:null}});i.signals.on("after-action-start",function(t){var r=t.interaction,n=t.event,i=t.iEvent;if(r.prepared.name!=="drag"){return}var o=r.dropState;o.activeDrops=null;o.events=null;o.activeDrops=ji(e,r.element);o.events=Ei(r,n,i);if(o.events.activate){xi(o.activeDrops,o.events.activate)}});i.signals.on("action-move",function(t){return Ti(t,e)});i.signals.on("action-end",function(t){return Ti(t,e)});i.signals.on("after-action-move",function(e){var t=e.interaction;if(t.prepared.name!=="drag"){return}Si(t,t.dropState.events);t.dropState.events={}});i.signals.on("after-action-end",function(e){var t=e.interaction;if(t.prepared.name!=="drag"){return}Si(t,t.dropState.events)});i.signals.on("stop",function(e){var t=e.interaction;if(t.prepared.name!=="drag"){return}var r=t.dropState;if(r){r.activeDrops=null;r.events=null;r.cur.dropzone=null;r.cur.element=null;r.prev.dropzone=null;r.prev.element=null;r.rejected=false}});n.prototype.dropzone=function(e){return Di(this,e)};n.prototype.dropCheck=function(e,t,r,n,i,o){return ki(this,e,t,r,n,i,o)};r.dynamicDrop=function(t){if(yi.is.bool(t)){e.dynamicDrop=t;return r}return e.dynamicDrop};yi.arr.merge(t.eventTypes,["dragenter","dragleave","dropactivate","dropdeactivate","dropmove","drop"]);t.methodDict.drop="dropzone";e.dynamicDrop=false;o.actions.drop=Ii.defaults}function _i(e,t){var r=e.interactables;var n=[];for(var i=0;i<r.list.length;i++){var o;o=r.list[i];var a=o;if(!a.options.drop.enabled){continue}var s=a.options.drop.accept;if(yi.is.element(s)&&s!==t||yi.is.string(s)&&!yi.dom.matchesSelector(t,s)||yi.is.func(s)&&!s({dropzone:a,draggableElement:t})){continue}var u=yi.is.string(a.target)?a._context.querySelectorAll(a.target):yi.is.array(a.target)?a.target:[a.target];for(var l=0;l<u.length;l++){var c;c=u[l];var f=c;if(f!==t){n.push({dropzone:a,element:f})}}}return n}function xi(e,t){for(var r=0;r<e.length;r++){var n;n=e[r];var i=n,o=i.dropzone,a=i.element;t.dropzone=o;t.target=a;o.fire(t);t.propagationStopped=t.immediatePropagationStopped=false}}function ji(e,t){var r=_i(e,t);for(var n=0;n<r.length;n++){var i;i=r[n];var o=i;o.rect=o.dropzone.getRect(o.element)}return r}function Mi(e,t,r){var n=e.dropState,i=e.interactable,o=e.element;var a=[];for(var s=0;s<n.activeDrops.length;s++){var u;u=n.activeDrops[s];var l=u,c=l.dropzone,f=l.element,p=l.rect;a.push(c.dropCheck(t,r,i,o,f,p)?f:null)}var d=yi.dom.indexOfDeepestElement(a);return n.activeDrops[d]||null}function Ei(e,t,r){var n=e.dropState;var i={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};if(r.type==="dragstart"){i.activate=new bi["default"](n,r,"dropactivate");i.activate.target=null;i.activate.dropzone=null}if(r.type==="dragend"){i.deactivate=new bi["default"](n,r,"dropdeactivate");i.deactivate.target=null;i.deactivate.dropzone=null}if(n.rejected){return i}if(n.cur.element!==n.prev.element){if(n.prev.dropzone){i.leave=new bi["default"](n,r,"dragleave");r.dragLeave=i.leave.target=n.prev.element;r.prevDropzone=i.leave.dropzone=n.prev.dropzone}if(n.cur.dropzone){i.enter=new bi["default"](n,r,"dragenter");r.dragEnter=n.cur.element;r.dropzone=n.cur.dropzone}}if(r.type==="dragend"&&n.cur.dropzone){i.drop=new bi["default"](n,r,"drop");r.dropzone=n.cur.dropzone;r.relatedTarget=n.cur.element}if(r.type==="dragmove"&&n.cur.dropzone){i.move=new bi["default"](n,r,"dropmove");i.move.dragmove=r;r.dropzone=n.cur.dropzone}return i}function Si(e,t){var r=e.dropState;var n=r.activeDrops,i=r.cur,o=r.prev;if(t.leave){o.dropzone.fire(t.leave)}if(t.move){i.dropzone.fire(t.move)}if(t.enter){i.dropzone.fire(t.enter)}if(t.drop){i.dropzone.fire(t.drop)}if(t.deactivate){xi(n,t.deactivate)}r.prev.dropzone=i.dropzone;r.prev.element=i.element}function Ti(e,t){var r=e.interaction,n=e.iEvent,i=e.event;if(n.type!=="dragmove"&&n.type!=="dragend"){return}var o=r.dropState;if(t.dynamicDrop){o.activeDrops=ji(t,r.element)}var a=n;var s=Mi(r,a,i);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element;o.cur.dropzone=s&&s.dropzone;o.cur.element=s&&s.element;o.events=Ei(r,i,a)}function Di(e,t){if(yi.is.object(t)){e.options.drop.enabled=t.enabled!==false;if(t.listeners){var r=yi.normalizeListeners(t.listeners);var n=Object.keys(r).reduce(function(e,t){var n=/^(enter|leave)/.test(t)?"drag".concat(t):/^(activate|deactivate|move)/.test(t)?"drop".concat(t):t;e[n]=r[t];return e},{});e.off(e.options.drop.listeners);e.on(n);e.options.drop.listeners=n}if(yi.is.func(t.ondrop)){e.on("drop",t.ondrop)}if(yi.is.func(t.ondropactivate)){e.on("dropactivate",t.ondropactivate)}if(yi.is.func(t.ondropdeactivate)){e.on("dropdeactivate",t.ondropdeactivate)}if(yi.is.func(t.ondragenter)){e.on("dragenter",t.ondragenter)}if(yi.is.func(t.ondragleave)){e.on("dragleave",t.ondragleave)}if(yi.is.func(t.ondropmove)){e.on("dropmove",t.ondropmove)}if(/^(pointer|center)$/.test(t.overlap)){e.options.drop.overlap=t.overlap}else if(yi.is.number(t.overlap)){e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)}if("accept"in t){e.options.drop.accept=t.accept}if("checker"in t){e.options.drop.checker=t.checker}return e}if(yi.is.bool(t)){e.options.drop.enabled=t;return e}return e.options.drop}function ki(e,t,r,n,i,o,a){var s=false;if(!(a=a||e.getRect(o))){return e.options.drop.checker?e.options.drop.checker(t,r,s,e,o,n,i):false}var u=e.options.drop.overlap;if(u==="pointer"){var l=yi.getOriginXY(n,i,"drag");var c=yi.pointer.getPageXY(t);c.x+=l.x;c.y+=l.y;var f=c.x>a.left&&c.x<a.right;var p=c.y>a.top&&c.y<a.bottom;s=f&&p}var d=n.getRect(i);if(d&&u==="center"){var v=d.left+d.width/2;var g=d.top+d.height/2;s=v>=a.left&&v<=a.right&&g>=a.top&&g<=a.bottom}if(d&&yi.is.number(u)){var h=Math.max(0,Math.min(a.right,d.right)-Math.max(a.left,d.left))*Math.max(0,Math.min(a.bottom,d.bottom)-Math.max(a.top,d.top));var y=h/(d.width*d.height);s=y>=u}if(e.options.drop.checker){s=e.options.drop.checker(t,r,s,e,o,n,i)}return s}var Ii={id:"actions/drop",install:Pi,getActiveDrops:ji,getDrop:Mi,getDropEvents:Ei,fireDropEvents:Si,defaults:{enabled:false,accept:null,overlap:"pointer"}};var zi=Ii;hi["default"]=zi;var Ai={};Object.defineProperty(Ai,"__esModule",{value:true});Ai["default"]=void 0;var Ci=Ni(cn);var Ri=t({});var Xi=Yi(qt);function Yi(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function Ni(e){return e&&e.__esModule?e:{default:e}}Ri.ActionName.Gesture="gesture";function Li(e){var t=e.actions,r=e.Interactable,n=e.interactions,i=e.defaults;r.prototype.gesturable=function(e){if(Xi.is.object(e)){this.options.gesture.enabled=e.enabled!==false;this.setPerAction("gesture",e);this.setOnEvents("gesture",e);return this}if(Xi.is.bool(e)){this.options.gesture.enabled=e;return this}return this.options.gesture};n.signals.on("action-start",Wi);n.signals.on("action-move",Wi);n.signals.on("action-end",Wi);n.signals.on("new",function(e){var t=e.interaction;t.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}});t[Ri.ActionName.Gesture]=Fi;t.names.push(Ri.ActionName.Gesture);Xi.arr.merge(t.eventTypes,["gesturestart","gesturemove","gestureend"]);t.methodDict.gesture="gesturable";i.actions.gesture=Fi.defaults}var Fi={id:"actions/gesture",install:Li,defaults:{},checker:function e(t,r,n,i,o){if(o.pointers.length>=2){return{name:"gesture"}}return null},getCursor:function e(){return""}};function Wi(e){var t=e.interaction,r=e.iEvent,n=e.event,i=e.phase;if(t.prepared.name!=="gesture"){return}var o=t.pointers.map(function(e){return e.pointer});var a=i==="start";var s=i==="end";var u=t.interactable.options.deltaSource;r.touches=[o[0],o[1]];if(a){r.distance=Xi.pointer.touchDistance(o,u);r.box=Xi.pointer.touchBBox(o);r.scale=1;r.ds=0;r.angle=Xi.pointer.touchAngle(o,u);r.da=0;t.gesture.startDistance=r.distance;t.gesture.startAngle=r.angle}else if(s||n instanceof Ci["default"]){var l=t.prevEvent;r.distance=l.distance;r.box=l.box;r.scale=l.scale;r.ds=0;r.angle=l.angle;r.da=0}else{r.distance=Xi.pointer.touchDistance(o,u);r.box=Xi.pointer.touchBBox(o);r.scale=r.distance/t.gesture.startDistance;r.angle=Xi.pointer.touchAngle(o,u);r.ds=r.scale-t.gesture.scale;r.da=r.angle-t.gesture.angle}t.gesture.distance=r.distance;t.gesture.angle=r.angle;if(Xi.is.number(r.scale)&&r.scale!==Infinity&&!isNaN(r.scale)){t.gesture.scale=r.scale}}var Vi=Fi;Ai["default"]=Vi;var qi={};Object.defineProperty(qi,"__esModule",{value:true});qi["default"]=void 0;var Gi=t({});var Ui=Bi(qt);function Bi(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}Gi.ActionName.Resize="resize";function Hi(e){var t=e.actions,r=e.browser,n=e.Interactable,i=e.interactions,o=e.defaults;i.signals.on("new",function(e){e.resizeAxes="xy"});i.signals.on("action-start",Zi);i.signals.on("action-move",eo);i.signals.on("action-start",to);i.signals.on("action-move",to);$i.cursors=Ji(r);$i.defaultMargin=r.supportsTouch||r.supportsPointerEvent?20:10;n.prototype.resizable=function(t){return Ki(this,t,e)};t[Gi.ActionName.Resize]=$i;t.names.push(Gi.ActionName.Resize);Ui.arr.merge(t.eventTypes,["resizestart","resizemove","resizeinertiastart","resizeresume","resizeend"]);t.methodDict.resize="resizable";o.actions.resize=$i.defaults}var $i={id:"actions/resize",install:Hi,defaults:{square:false,preserveAspectRatio:false,axis:"xy",margin:NaN,edges:null,invert:"none"},checker:function e(t,r,n,i,o,a){if(!a){return null}var s=Ui.extend({},o.coords.cur.page);var u=n.options;if(u.resize.enabled){var l=u.resize;var c={left:false,right:false,top:false,bottom:false};if(Ui.is.object(l.edges)){for(var f in c){c[f]=Qi(f,l.edges[f],s,o._latestPointer.eventTarget,i,a,l.margin||this.defaultMargin)}c.left=c.left&&!c.right;c.top=c.top&&!c.bottom;if(c.left||c.right||c.top||c.bottom){return{name:"resize",edges:c}}}else{var p=u.resize.axis!=="y"&&s.x>a.right-this.defaultMargin;var d=u.resize.axis!=="x"&&s.y>a.bottom-this.defaultMargin;if(p||d){return{name:"resize",axes:(p?"x":"")+(d?"y":"")}}}}return null},cursors:null,getCursor:function e(t){var r=$i.cursors;if(t.axis){return r[t.name+t.axis]}else if(t.edges){var n="";var i=["top","bottom","left","right"];for(var o=0;o<4;o++){if(t.edges[i[o]]){n+=i[o]}}return r[n]}return null},defaultMargin:null};function Ki(e,t,r){if(Ui.is.object(t)){e.options.resize.enabled=t.enabled!==false;e.setPerAction("resize",t);e.setOnEvents("resize",t);if(Ui.is.string(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)){e.options.resize.axis=t.axis}else if(t.axis===null){e.options.resize.axis=r.defaults.actions.resize.axis}if(Ui.is.bool(t.preserveAspectRatio)){e.options.resize.preserveAspectRatio=t.preserveAspectRatio}else if(Ui.is.bool(t.square)){e.options.resize.square=t.square}return e}if(Ui.is.bool(t)){e.options.resize.enabled=t;return e}return e.options.resize}function Qi(e,t,r,n,i,o,a){if(!t){return false}if(t===true){var s=Ui.is.number(o.width)?o.width:o.right-o.left;var u=Ui.is.number(o.height)?o.height:o.bottom-o.top;a=Math.min(a,(e==="left"||e==="right"?s:u)/2);if(s<0){if(e==="left"){e="right"}else if(e==="right"){e="left"}}if(u<0){if(e==="top"){e="bottom"}else if(e==="bottom"){e="top"}}if(e==="left"){return r.x<(s>=0?o.left:o.right)+a}if(e==="top"){return r.y<(u>=0?o.top:o.bottom)+a}if(e==="right"){return r.x>(s>=0?o.right:o.left)-a}if(e==="bottom"){return r.y>(u>=0?o.bottom:o.top)-a}}if(!Ui.is.element(n)){return false}return Ui.is.element(t)?t===n:Ui.dom.matchesUpTo(n,t,i)}function Ji(e){return e.isIe9?{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"}}function Zi(e){var t=e.iEvent,r=e.interaction;if(r.prepared.name!=="resize"||!r.prepared.edges){return}var n=r.rect;var i=r.interactable.options.resize;if(i.square||i.preserveAspectRatio){var o=Ui.extend({},r.prepared.edges);o.top=o.top||o.left&&!o.bottom;o.left=o.left||o.top&&!o.right;o.bottom=o.bottom||o.right&&!o.top;o.right=o.right||o.bottom&&!o.left;r.prepared._linkedEdges=o}else{r.prepared._linkedEdges=null}if(i.preserveAspectRatio){r.resizeStartAspectRatio=n.width/n.height}r.resizeRects={start:n,current:Ui.extend({},n),inverted:Ui.extend({},n),previous:Ui.extend({},n),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}};t.rect=r.resizeRects.inverted;t.deltaRect=r.resizeRects.delta}function eo(e){var t=e.iEvent,r=e.interaction;if(r.prepared.name!=="resize"||!r.prepared.edges){return}var n=r.interactable.options.resize;var i=n.invert;var o=i==="reposition"||i==="negate";var a=r.prepared.edges;var s=r.resizeRects.start;var u=r.resizeRects.current;var l=r.resizeRects.inverted;var c=r.resizeRects.delta;var f=Ui.extend(r.resizeRects.previous,l);var p=a;var d=Ui.extend({},t.delta);if(n.preserveAspectRatio||n.square){var v=n.preserveAspectRatio?r.resizeStartAspectRatio:1;a=r.prepared._linkedEdges;if(p.left&&p.bottom||p.right&&p.top){d.y=-d.x/v}else if(p.left||p.right){d.y=d.x/v}else if(p.top||p.bottom){d.x=d.y*v}}if(a.top){u.top+=d.y}if(a.bottom){u.bottom+=d.y}if(a.left){u.left+=d.x}if(a.right){u.right+=d.x}if(o){Ui.extend(l,u);if(i==="reposition"){var g;if(l.top>l.bottom){g=l.top;l.top=l.bottom;l.bottom=g}if(l.left>l.right){g=l.left;l.left=l.right;l.right=g}}}else{l.top=Math.min(u.top,s.bottom);l.bottom=Math.max(u.bottom,s.top);l.left=Math.min(u.left,s.right);l.right=Math.max(u.right,s.left)}l.width=l.right-l.left;l.height=l.bottom-l.top;for(var h in l){c[h]=l[h]-f[h]}t.edges=r.prepared.edges;t.rect=l;t.deltaRect=c}function to(e){var t=e.interaction,r=e.iEvent,n=e.action;if(n!=="resize"||!t.resizeAxes){return}var i=t.interactable.options;if(i.resize.square){if(t.resizeAxes==="y"){r.delta.x=r.delta.y}else{r.delta.y=r.delta.x}r.axes="xy"}else{r.axes=t.resizeAxes;if(t.resizeAxes==="x"){r.delta.y=0}else if(t.resizeAxes==="y"){r.delta.x=0}}}var ro=$i;qi["default"]=ro;var no={};Object.defineProperty(no,"__esModule",{value:true});no.install=lo;Object.defineProperty(no,"drag",{enumerable:true,get:function e(){return io["default"]}});Object.defineProperty(no,"drop",{enumerable:true,get:function e(){return oo["default"]}});Object.defineProperty(no,"gesture",{enumerable:true,get:function e(){return ao["default"]}});Object.defineProperty(no,"resize",{enumerable:true,get:function e(){return so["default"]}});no.id=void 0;var io=uo(Nn);var oo=uo(hi);var ao=uo(Ai);var so=uo(qi);function uo(e){return e&&e.__esModule?e:{default:e}}function lo(e){e.usePlugin(ao["default"]);e.usePlugin(so["default"]);e.usePlugin(io["default"]);e.usePlugin(oo["default"])}var co="actions";no.id=co;var fo={};Object.defineProperty(fo,"__esModule",{value:true});fo.getContainer=wo;fo.getScroll=Oo;fo.getScrollSize=Po;fo.getScrollSizeDelta=_o;fo["default"]=void 0;var po=yo($);var vo=yo(j);var go=ho(It);function ho(e){return e&&e.__esModule?e:{default:e}}function yo(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function mo(e){var t=e.interactions,r=e.defaults,n=e.actions;e.autoScroll=bo;bo.now=function(){return e.now()};t.signals.on("new",function(e){var t=e.interaction;t.autoScroll=null});t.signals.on("destroy",function(e){var t=e.interaction;t.autoScroll=null;bo.stop();if(bo.interaction){bo.interaction=null}});t.signals.on("stop",bo.stop);t.signals.on("action-move",function(e){return bo.onInteractionMove(e)});n.eventTypes.push("autoscroll");r.perAction.autoScroll=bo.defaults}var bo={defaults:{enabled:false,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:null,x:0,y:0,isScrolling:false,prevTime:0,margin:0,speed:0,start:function e(t){bo.isScrolling=true;go["default"].cancel(bo.i);t.autoScroll=bo;bo.interaction=t;bo.prevTime=bo.now();bo.i=go["default"].request(bo.scroll)},stop:function e(){bo.isScrolling=false;if(bo.interaction){bo.interaction.autoScroll=null}go["default"].cancel(bo.i)},scroll:function e(){var t=bo.interaction;var r=t.interactable,n=t.element;var i=r.options[bo.interaction.prepared.name].autoScroll;var o=wo(i.container,r,n);var a=bo.now();var s=(a-bo.prevTime)/1e3;var u=i.speed*s;if(u>=1){var l={x:bo.x*u,y:bo.y*u};if(l.x||l.y){var c=Oo(o);if(vo.window(o)){o.scrollBy(l.x,l.y)}else if(o){o.scrollLeft+=l.x;o.scrollTop+=l.y}var f=Oo(o);var p={x:f.x-c.x,y:f.y-c.y};if(p.x||p.y){r.fire({type:"autoscroll",target:n,interactable:r,delta:p,interaction:t,container:o})}}bo.prevTime=a}if(bo.isScrolling){go["default"].cancel(bo.i);bo.i=go["default"].request(bo.scroll)}},check:function e(t,r){var n=t.options;return n[r].autoScroll&&n[r].autoScroll.enabled},onInteractionMove:function e(t){var r=t.interaction,n=t.pointer;if(!(r.interacting()&&bo.check(r.interactable,r.prepared.name))){return}if(r.simulation){bo.x=bo.y=0;return}var i;var o;var a;var s;var u=r.interactable,l=r.element;var c=u.options[r.prepared.name].autoScroll;var f=wo(c.container,u,l);if(vo.window(f)){s=n.clientX<bo.margin;i=n.clientY<bo.margin;o=n.clientX>f.innerWidth-bo.margin;a=n.clientY>f.innerHeight-bo.margin}else{var p=po.getElementClientRect(f);s=n.clientX<p.left+bo.margin;i=n.clientY<p.top+bo.margin;o=n.clientX>p.right-bo.margin;a=n.clientY>p.bottom-bo.margin}bo.x=o?1:s?-1:0;bo.y=a?1:i?-1:0;if(!bo.isScrolling){bo.margin=c.margin;bo.speed=c.speed;bo.start(r)}}};function wo(e,t,r){return(vo.string(e)?(0,pt.getStringOptionResult)(e,t,r):e)||(0,m.getWindow)(r)}function Oo(e){if(vo.window(e)){e=window.document.body}return{x:e.scrollLeft,y:e.scrollTop}}function Po(e){if(vo.window(e)){e=window.document.body}return{x:e.scrollWidth,y:e.scrollHeight}}function _o(e,t){var r=e.interaction,n=e.element;var i=r&&r.interactable.options[r.prepared.name].autoScroll;if(!i||!i.enabled){t();return{x:0,y:0}}var o=wo(i.container,r.interactable,n);var a=Oo(o);t();var s=Oo(o);return{x:s.x-a.x,y:s.y-a.y}}var xo={id:"auto-scroll",install:mo};fo["default"]=xo;var jo={};Object.defineProperty(jo,"__esModule",{value:true});jo["default"]=void 0;var Mo=Eo(j);function Eo(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function So(e){var t=e.Interactable,r=e.actions;t.prototype.getAction=To;t.prototype.ignoreFrom=(0,qt.warnOnce)(function(e){return this._backCompatOption("ignoreFrom",e)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue}).");t.prototype.allowFrom=(0,qt.warnOnce)(function(e){return this._backCompatOption("allowFrom",e)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue}).");t.prototype.actionChecker=Io;t.prototype.styleCursor=ko;t.prototype.defaultActionChecker=function(e,t,n,i){return Do(this,e,t,n,i,r)}}function To(e,t,r,n){var i=this.defaultActionChecker(e,t,r,n);if(this.options.actionChecker){return this.options.actionChecker(e,t,i,this,n,r)}return i}function Do(e,t,r,n,i,o){var a=e.getRect(i);var s=r.buttons||{0:1,1:4,3:8,4:16}[r.button];var u=null;for(var l=0;l<o.names.length;l++){var c;c=o.names[l];var f=c;if(n.pointerIsDown&&/mouse|pointer/.test(n.pointerType)&&(s&e.options[f].mouseButtons)===0){continue}u=o[f].checker(t,r,e,i,n,a);if(u){return u}}}function ko(e){if(Mo.bool(e)){this.options.styleCursor=e;return this}if(e===null){delete this.options.styleCursor;return this}return this.options.styleCursor}function Io(e){if(Mo.func(e)){this.options.actionChecker=e;return this}if(e===null){delete this.options.actionChecker;return this}return this.options.actionChecker}var zo={id:"auto-start/interactableMethods",install:So};jo["default"]=zo;var Ao={};Object.defineProperty(Ao,"__esModule",{value:true});Ao["default"]=void 0;var Co=Yo(qt);var Ro=Xo(jo);function Xo(e){return e&&e.__esModule?e:{default:e}}function Yo(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function No(e){var t=e.interact,r=e.interactions,n=e.defaults;e.usePlugin(Ro["default"]);r.signals.on("down",function(t){var r=t.interaction,n=t.pointer,i=t.event,o=t.eventTarget;if(r.interacting()){return}var a=Wo(r,n,i,o,e);Vo(r,a,e)});r.signals.on("move",function(t){var r=t.interaction,n=t.pointer,i=t.event,o=t.eventTarget;if(r.pointerType!=="mouse"||r.pointerIsDown||r.interacting()){return}var a=Wo(r,n,i,o,e);Vo(r,a,e)});r.signals.on("move",function(t){var r=t.interaction;if(!r.pointerIsDown||r.interacting()||!r.pointerWasMoved||!r.prepared.name){return}e.autoStart.signals.fire("before-start",t);var n=r.interactable;if(r.prepared.name&&n){if(n.options[r.prepared.name].manualStart||!qo(n,r.element,r.prepared,e)){r.stop()}else{r.start(r.prepared,n,r.element)}}});r.signals.on("stop",function(t){var r=t.interaction;var n=r.interactable;if(n&&n.options.styleCursor){Uo(r.element,"",e)}});n.base.actionChecker=null;n.base.styleCursor=true;Co.extend(n.perAction,{manualStart:false,max:Infinity,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1});t.maxInteractions=function(t){return Go(t,e)};e.autoStart={maxInteractions:Infinity,withinInteractionLimit:qo,cursorElement:null,signals:new Co.Signals}}function Lo(e,t,r,n,i){if(t.testIgnoreAllow(t.options[e.name],r,n)&&t.options[e.name].enabled&&qo(t,r,e,i)){return e}return null}function Fo(e,t,r,n,i,o,a){for(var s=0,u=n.length;s<u;s++){var l=n[s];var c=i[s];var f=l.getAction(t,r,e,c);if(!f){continue}var p=Lo(f,l,c,o,a);if(p){return{action:p,interactable:l,element:c}}}return{action:null,interactable:null,element:null}}function Wo(e,t,r,n,i){var o=[];var a=[];var s=n;function u(e){o.push(e);a.push(s)}while(Co.is.element(s)){o=[];a=[];i.interactables.forEachMatch(s,u);var l=Fo(e,t,r,o,a,n,i);if(l.action&&!l.interactable.options[l.action.name].manualStart){return l}s=Co.dom.parentNode(s)}return{action:null,interactable:null,element:null}}function Vo(e,t,r){var n=t.action,i=t.interactable,o=t.element;n=n||{};if(e.interactable&&e.interactable.options.styleCursor){Uo(e.element,"",r)}e.interactable=i;e.element=o;Co.copyAction(e.prepared,n);e.rect=i&&n.name?i.getRect(o):null;if(i&&i.options.styleCursor){var a=n?r.actions[n.name].getCursor(n):"";Uo(e.element,a,r)}r.autoStart.signals.fire("prepared",{interaction:e})}function qo(e,t,r,n){var i=e.options;var o=i[r.name].max;var a=i[r.name].maxPerElement;var s=n.autoStart.maxInteractions;var u=0;var l=0;var c=0;if(!(o&&a&&s)){return false}for(var f=0;f<n.interactions.list.length;f++){var p;p=n.interactions.list[f];var d=p;var v=d.prepared.name;if(!d.interacting()){continue}u++;if(u>=s){return false}if(d.interactable!==e){continue}l+=v===r.name?1:0;if(l>=o){return false}if(d.element===t){c++;if(v===r.name&&c>=a){return false}}}return s>0}function Go(e,t){if(Co.is.number(e)){t.autoStart.maxInteractions=e;return this}return t.autoStart.maxInteractions}function Uo(e,t,r){if(r.autoStart.cursorElement){r.autoStart.cursorElement.style.cursor=""}e.ownerDocument.documentElement.style.cursor=t;e.style.cursor=t;r.autoStart.cursorElement=t?e:null}var Bo={id:"auto-start/base",install:No,maxInteractions:Go,withinInteractionLimit:qo,validateAction:Lo};Ao["default"]=Bo;var Ho={};Object.defineProperty(Ho,"__esModule",{value:true});Ho["default"]=void 0;var $o=t({});var Ko=Zo(j);var Qo=Jo(Ao);function Jo(e){return e&&e.__esModule?e:{default:e}}function Zo(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function ea(e){e.autoStart.signals.on("before-start",function(r){var n=r.interaction,i=r.eventTarget,o=r.dx,a=r.dy;if(n.prepared.name!=="drag"){return}var s=Math.abs(o);var u=Math.abs(a);var l=n.interactable.options.drag;var c=l.startAxis;var f=s>u?"x":s<u?"y":"xy";n.prepared.axis=l.lockAxis==="start"?f[0]:l.lockAxis;if(f!=="xy"&&c!=="xy"&&c!==f){n.prepared.name=null;var p=i;var d=function r(o){if(o===n.interactable){return}var a=n.interactable.options.drag;if(!a.manualStart&&o.testIgnoreAllow(a,p,i)){var s=o.getAction(n.downPointer,n.downEvent,n,p);if(s&&s.name===$o.ActionName.Drag&&t(f,o)&&Qo["default"].validateAction(s,o,p,i,e)){return o}}};while(Ko.element(p)){var v=e.interactables.forEachMatch(p,d);if(v){n.prepared.name=$o.ActionName.Drag;n.interactable=v;n.element=p;break}p=(0,$.parentNode)(p)}}});function t(e,t){if(!t){return false}var r=t.options[$o.ActionName.Drag].startAxis;return e==="xy"||r==="xy"||r===e}}var ta={id:"auto-start/dragAxis",install:ea};Ho["default"]=ta;var ra={};Object.defineProperty(ra,"__esModule",{value:true});ra["default"]=void 0;var na=ia(Ao);function ia(e){return e&&e.__esModule?e:{default:e}}function oa(e){var t=e.autoStart,r=e.interactions,n=e.defaults;e.usePlugin(na["default"]);n.perAction.hold=0;n.perAction.delay=0;r.signals.on("new",function(e){e.autoStartHoldTimer=null});t.signals.on("prepared",function(e){var t=e.interaction;var r=aa(t);if(r>0){t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.interactable,t.element)},r)}});r.signals.on("move",function(e){var t=e.interaction,r=e.duplicate;if(t.pointerWasMoved&&!r){clearTimeout(t.autoStartHoldTimer)}});t.signals.on("before-start",function(e){var t=e.interaction;var r=aa(t);if(r>0){t.prepared.name=null}})}function aa(e){var t=e.prepared&&e.prepared.name;if(!t){return null}var r=e.interactable.options;return r[t].hold||r[t].delay}var sa={id:"auto-start/hold",install:oa,getHoldDuration:aa};ra["default"]=sa;var ua={};Object.defineProperty(ua,"__esModule",{value:true});ua.install=da;Object.defineProperty(ua,"autoStart",{enumerable:true,get:function e(){return la["default"]}});Object.defineProperty(ua,"dragAxis",{enumerable:true,get:function e(){return ca["default"]}});Object.defineProperty(ua,"hold",{enumerable:true,get:function e(){return fa["default"]}});ua.id=void 0;var la=pa(Ao);var ca=pa(Ho);var fa=pa(ra);function pa(e){return e&&e.__esModule?e:{default:e}}function da(e){e.usePlugin(la["default"]);e.usePlugin(fa["default"]);e.usePlugin(ca["default"])}var va="auto-start";ua.id=va;var ga={};Object.defineProperty(ga,"__esModule",{value:true});ga.install=_a;ga["default"]=void 0;var ha=ba(Re);var ya=ma(j);function ma(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function ba(e){return e&&e.__esModule?e:{default:e}}function wa(e,t){if(/^(always|never|auto)$/.test(t)){e.options.preventDefault=t;return e}if(ya.bool(t)){e.options.preventDefault=t?"always":"never";return e}return e.options.preventDefault}function Oa(e,t,r){var n=e.options.preventDefault;if(n==="never"){return}if(n==="always"){r.preventDefault();return}if(ha["default"].supportsPassive&&/^touch(start|move)$/.test(r.type)){var i=(0,m.getWindow)(r.target).document;var o=t.getDocOptions(i);if(!(o&&o.events)||o.events.passive!==false){return}}if(/^(mouse|pointer|touch)*(down|start)/i.test(r.type)){return}if(ya.element(r.target)&&(0,$.matchesSelector)(r.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")){return}r.preventDefault()}function Pa(e){var t=e.interaction,r=e.event;if(t.interactable){t.interactable.checkAndPreventDefault(r)}}function _a(e){var t=e.Interactable;t.prototype.preventDefault=function(e){return wa(this,e)};t.prototype.checkAndPreventDefault=function(t){return Oa(this,e,t)};var r=["down","move","up","cancel"];for(var n=0;n<r.length;n++){var i=r[n];e.interactions.signals.on(i,Pa)}e.interactions.eventMap.dragstart=function t(r){for(var n=0;n<e.interactions.list.length;n++){var i;i=e.interactions.list[n];var o=i;if(o.element&&(o.element===r.target||(0,$.nodeContains)(o.element,r.target))){o.interactable.checkAndPreventDefault(r);return}}}}var xa={id:"core/interactablePreventDefault",install:_a};ga["default"]=xa;var ja={};Object.defineProperty(ja,"__esModule",{value:true});ja["default"]=void 0;var Ma=ka(f);var Ea=ka(ct);var Sa=Da(j);var Ta=ka(m);function Da(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function ka(e){return e&&e.__esModule?e:{default:e}}var Ia;(function(e){e["touchAction"]="";e["boxSizing"]="";e["noListeners"]=""})(Ia||(Ia={}));var za="dev-tools";var Aa={id:za,install:function e(){}};var Ca=Aa;ja["default"]=Ca;var Ra={};Object.defineProperty(Ra,"__esModule",{value:true});Ra.startAll=Ga;Ra.setAll=Ua;Ra.prepareStates=Qa;Ra.makeModifier=rs;Ra["default"]=void 0;var Xa=Ya(ct);function Ya(e){return e&&e.__esModule?e:{default:e}}function Na(e,t){return Wa(e)||Fa(e,t)||La()}function La(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Fa(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done);n=true){r.push(s.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"]!=null)a["return"]()}finally{if(i)throw o}}return r}function Wa(e){if(Array.isArray(e))return e}function Va(e){var t=e.interactions;e.defaults.perAction.modifiers=[];e.modifiers={};t.signals.on("new",function(e){var t=e.interaction;t.modifiers={startOffset:{left:0,right:0,top:0,bottom:0},offsets:{},states:null,result:null,endPrevented:false,startDelta:null}});t.signals.on("before-action-start",function(t){qa(t,t.interaction.coords.start.page,e.modifiers)});t.signals.on("action-resume",function(t){$a(t);qa(t,t.interaction.coords.cur.page,e.modifiers);Ba(t)});t.signals.on("after-action-move",Za);t.signals.on("before-action-move",Ba);t.signals.on("before-action-start",Ja);t.signals.on("after-action-start",Za);t.signals.on("before-action-end",Ha);t.signals.on("stop",$a)}function qa(e,t,r){var n=e.interaction,i=e.phase;var o=n.interactable,a=n.element;var s=Ka(n,r);var u=Qa(s);var l=(0,Xa["default"])({},n.rect);if(!("width"in l)){l.width=l.right-l.left}if(!("height"in l)){l.height=l.bottom-l.top}var c=ts(l,t);n.modifiers.startOffset=c;n.modifiers.startDelta={x:0,y:0};var f={interaction:n,interactable:o,element:a,pageCoords:t,phase:i,rect:l,startOffset:c,states:u,preEnd:false,requireEndOnly:false};n.modifiers.states=u;n.modifiers.result=null;Ga(f);f.pageCoords=(0,Xa["default"])({},n.coords.start.page);var p=n.modifiers.result=Ua(f);return p}function Ga(e){for(var t=0;t<e.states.length;t++){var r;r=e.states[t];var n=r;if(n.methods.start){e.state=n;n.methods.start(e)}}}function Ua(e){var t=e.interaction,r=e.modifiersState,n=r===void 0?t.modifiers:r,i=e.prevCoords,o=i===void 0?n.result?n.result.coords:t.coords.prev.page:i,a=e.phase,s=e.preEnd,u=e.requireEndOnly,l=e.rect,c=e.skipModifiers;var f=c?e.states.slice(c):e.states;e.coords=(0,Xa["default"])({},e.pageCoords);e.rect=(0,Xa["default"])({},l);var p={delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},coords:e.coords,changed:true};for(var d=0;d<f.length;d++){var v;v=f[d];var g=v;var h=g.options;if(!g.methods.set||!es(h,s,u,a)){continue}e.state=g;g.methods.set(e)}p.delta.x=e.coords.x-e.pageCoords.x;p.delta.y=e.coords.y-e.pageCoords.y;var y=false;if(l){p.rectDelta.left=e.rect.left-l.left;p.rectDelta.right=e.rect.right-l.right;p.rectDelta.top=e.rect.top-l.top;p.rectDelta.bottom=e.rect.bottom-l.bottom;y=p.rectDelta.left!==0||p.rectDelta.right!==0||p.rectDelta.top!==0||p.rectDelta.bottom!==0}p.changed=o.x!==p.coords.x||o.y!==p.coords.y||y;return p}function Ba(e){var t=e.interaction,r=e.phase,n=e.preEnd,i=e.skipModifiers;var o=t.interactable,a=t.element;var s=Ua({interaction:t,interactable:o,element:a,preEnd:n,phase:r,pageCoords:t.coords.cur.page,rect:t.rect,states:t.modifiers.states,requireEndOnly:false,skipModifiers:i});t.modifiers.result=s;if(!s.changed&&t.interacting()){return false}Ja(e)}function Ha(e){var t=e.interaction,r=e.event,n=e.noPreEnd;var i=t.modifiers.states;if(n||!i||!i.length){return}var o=false;for(var a=0;a<i.length;a++){var s;s=i[a];var u=s;e.state=u;var l=u.options,c=u.methods;var f=c.beforeEnd&&c.beforeEnd(e);if(f===false){t.modifiers.endPrevented=true;return false}if(!o&&es(l,true,true)){t.move({event:r,preEnd:true});o=true}}}function $a(e){var t=e.interaction;var r=t.modifiers.states;if(!r||!r.length){return}var n=(0,Xa["default"])({states:r,interactable:t.interactable,element:t.element},e);Za(e);for(var i=0;i<r.length;i++){var o;o=r[i];var a=o;n.state=a;if(a.methods.stop){a.methods.stop(n)}}e.interaction.modifiers.states=null;e.interaction.modifiers.endPrevented=false}function Ka(e,t){var r=e.interactable.options[e.prepared.name];var n=r.modifiers;if(n&&n.length){return n.filter(function(e){return!e.options||e.options.enabled!==false}).map(function(e){if(!e.methods&&e.type){return t[e.type](e)}return e})}return["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(e){var t=r[e];return t&&t.enabled&&{options:t,methods:t._methods}}).filter(function(e){return!!e})}function Qa(e){var t=[];for(var r=0;r<e.length;r++){var n=e[r],i=n.options,o=n.methods,a=n.name;if(i&&i.enabled===false){continue}var s={options:i,methods:o,index:r,name:a};t.push(s)}return t}function Ja(e){var t=e.interaction,r=e.phase;var n=e.curCoords||t.coords.cur;var i=e.startCoords||t.coords.start;var o=t.modifiers,a=o.result,s=o.startDelta;var u=a.delta;if(r==="start"){(0,Xa["default"])(t.modifiers.startDelta,a.delta)}var l=[[i,s],[n,u]];for(var c=0;c<l.length;c++){var f=Na(l[c],2),p=f[0],d=f[1];p.page.x+=d.x;p.page.y+=d.y;p.client.x+=d.x;p.client.y+=d.y}var v=t.modifiers.result.rectDelta;var g=e.rect||t.rect;g.left+=v.left;g.right+=v.right;g.top+=v.top;g.bottom+=v.bottom;g.width=g.right-g.left;g.height=g.bottom-g.top}function Za(e){var t=e.interaction,r=t.coords,n=t.rect,i=t.modifiers;if(!i.result){return}var o=i.startDelta;var a=i.result,s=a.delta,u=a.rectDelta;var l=[[r.start,o],[r.cur,s]];for(var c=0;c<l.length;c++){var f=Na(l[c],2),p=f[0],d=f[1];p.page.x-=d.x;p.page.y-=d.y;p.client.x-=d.x;p.client.y-=d.y}n.left-=u.left;n.right-=u.right;n.top-=u.top;n.bottom-=u.bottom}function es(e,t,r,n){return e?e.enabled!==false&&(t||!e.endOnly)&&(!r||e.endOnly||e.alwaysOnEnd)&&(e.setStart||n!=="start"):!r}function ts(e,t){return e?{left:t.x-e.left,top:t.y-e.top,right:e.right-t.x,bottom:e.bottom-t.y}:{left:0,top:0,right:0,bottom:0}}function rs(e,t){var r=e.defaults;var n={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop};var i=function e(i){i=i||{};i.enabled=i.enabled!==false;for(var o in r){if(!(o in i)){i[o]=r[o]}}return{options:i,methods:n,name:t}};if(typeof t==="string"){i._defaults=r;i._methods=n}return i}var ns={id:"modifiers/base",install:Va,startAll:Ga,setAll:Ua,prepareStates:Qa,start:qa,beforeMove:Ba,beforeEnd:Ha,stop:$a,shouldDo:es,getModifierList:Ka,getRectOffset:ts,makeModifier:rs};Ra["default"]=ns;var is={};Object.defineProperty(is,"__esModule",{value:true});is["default"]=void 0;var os=ls(Ra);var as=us(qt);var ss=ls(It);function us(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function ls(e){return e&&e.__esModule?e:{default:e}}cn.EventPhase.Resume="resume";cn.EventPhase.InertiaStart="inertiastart";function cs(e){var t=e.interactions,r=e.defaults;t.signals.on("new",function(e){var t=e.interaction;t.inertia={active:false,smoothEnd:false,allowResume:false,upCoords:{},timeout:null}});t.signals.on("before-action-end",function(t){return ps(t,e)});t.signals.on("down",function(t){return fs(t,e)});t.signals.on("stop",function(e){return ds(e)});r.perAction.inertia={enabled:false,resistance:10,minSpeed:100,endSpeed:10,allowResume:true,smoothEndDuration:300};e.usePlugin(os["default"])}function fs(e,t){var r=e.interaction,n=e.event,i=e.pointer,o=e.eventTarget;var a=r.inertia;if(a.active){var s=o;while(as.is.element(s)){if(s===r.element){ss["default"].cancel(a.timeout);a.active=false;r.simulation=null;r.updatePointer(i,n,o,true);as.pointer.setCoords(r.coords.cur,r.pointers.map(function(e){return e.pointer}),r._now());var u={interaction:r};t.interactions.signals.fire("action-resume",u);var l=new t.InteractEvent(r,n,r.prepared.name,cn.EventPhase.Resume,r.element);r._fireEvent(l);as.pointer.copyCoords(r.coords.prev,r.coords.cur);break}s=as.dom.parentNode(s)}}}function ps(e,t){var r=e.interaction,n=e.event,i=e.noPreEnd;var o=r.inertia;if(!r.interacting()||r.simulation&&r.simulation.active||i){return null}var a=ms(r);var s=r._now();var u=r.coords.velocity.client;var l=as.hypot(u.x,u.y);var c=false;var f;var p=a&&a.enabled&&r.prepared.name!=="gesture"&&n!==o.startEvent;var d=p&&s-r.coords.cur.timeStamp<50&&l>a.minSpeed&&l>a.endSpeed;var v={interaction:r,pageCoords:as.extend({},r.coords.cur.page),states:p&&r.modifiers.states.map(function(e){return as.extend({},e)}),preEnd:true,prevCoords:undefined,requireEndOnly:null};if(p&&!d){v.prevCoords=r.prevEvent.page;v.requireEndOnly=false;f=os["default"].setAll(v);if(f.changed){c=true}}if(!(d||c)){return null}as.pointer.copyCoords(o.upCoords,r.coords.cur);r.pointers[0].pointer=o.startEvent=new t.InteractEvent(r,n,r.prepared.name,cn.EventPhase.InertiaStart,r.element);o.t0=s;o.active=true;o.allowResume=a.allowResume;r.simulation=o;r.interactable.fire(o.startEvent);if(d){o.vx0=r.coords.velocity.client.x;o.vy0=r.coords.velocity.client.y;o.v0=l;vs(r,o);as.extend(v.pageCoords,r.coords.cur.page);v.pageCoords.x+=o.xe;v.pageCoords.y+=o.ye;v.prevCoords=undefined;v.requireEndOnly=true;f=os["default"].setAll(v);o.modifiedXe+=f.delta.x;o.modifiedYe+=f.delta.y;o.timeout=ss["default"].request(function(){return gs(r)})}else{o.smoothEnd=true;o.xe=f.delta.x;o.ye=f.delta.y;o.sx=o.sy=0;o.timeout=ss["default"].request(function(){return hs(r)})}return false}function ds(e){var t=e.interaction;var r=t.inertia;if(r.active){ss["default"].cancel(r.timeout);r.active=false;t.simulation=null}}function vs(e,t){var r=ms(e);var n=r.resistance;var i=-Math.log(r.endSpeed/t.v0)/n;t.x0=e.prevEvent.page.x;t.y0=e.prevEvent.page.y;t.t0=t.startEvent.timeStamp/1e3;t.sx=t.sy=0;t.modifiedXe=t.xe=(t.vx0-i)/n;t.modifiedYe=t.ye=(t.vy0-i)/n;t.te=i;t.lambda_v0=n/t.v0;t.one_ve_v0=1-r.endSpeed/t.v0}function gs(e){ys(e);as.pointer.setCoordDeltas(e.coords.delta,e.coords.prev,e.coords.cur);as.pointer.setCoordVelocity(e.coords.velocity,e.coords.delta);var t=e.inertia;var r=ms(e);var n=r.resistance;var i=e._now()/1e3-t.t0;if(i<t.te){var o=1-(Math.exp(-n*i)-t.lambda_v0)/t.one_ve_v0;if(t.modifiedXe===t.xe&&t.modifiedYe===t.ye){t.sx=t.xe*o;t.sy=t.ye*o}else{var a=as.getQuadraticCurvePoint(0,0,t.xe,t.ye,t.modifiedXe,t.modifiedYe,o);t.sx=a.x;t.sy=a.y}e.move();t.timeout=ss["default"].request(function(){return gs(e)})}else{t.sx=t.modifiedXe;t.sy=t.modifiedYe;e.move();e.end(t.startEvent);t.active=false;e.simulation=null}as.pointer.copyCoords(e.coords.prev,e.coords.cur)}function hs(e){ys(e);var t=e.inertia;var r=e._now()-t.t0;var n=ms(e),i=n.smoothEndDuration;if(r<i){t.sx=as.easeOutQuad(r,0,t.xe,i);t.sy=as.easeOutQuad(r,0,t.ye,i);e.move();t.timeout=ss["default"].request(function(){return hs(e)})}else{t.sx=t.xe;t.sy=t.ye;e.move();e.end(t.startEvent);t.smoothEnd=t.active=false;e.simulation=null}}function ys(e){var t=e.inertia;if(!t.active){return}var r=t.upCoords.page;var n=t.upCoords.client;as.pointer.setCoords(e.coords.cur,[{pageX:r.x+t.sx,pageY:r.y+t.sy,clientX:n.x+t.sx,clientY:n.y+t.sy}],e._now())}function ms(e){var t=e.interactable,r=e.prepared;return t&&t.options&&r.name&&t.options[r.name].inertia}var bs={id:"inertia",install:cs,calcInertia:vs,inertiaTick:gs,smothEndTick:hs,updateInertiaCoords:ys};is["default"]=bs;var ws={};Object.defineProperty(ws,"__esModule",{value:true});ws["default"]=void 0;var Os=xs(j);var Ps=_s(pt);function _s(e){return e&&e.__esModule?e:{default:e}}function xs(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function js(e){var t=e.rect,r=e.startOffset,n=e.state;var i=n.options;var o=i.elementRect;var a={};if(t&&o){a.left=r.left-t.width*o.left;a.top=r.top-t.height*o.top;a.right=r.right-t.width*(1-o.right);a.bottom=r.bottom-t.height*(1-o.bottom)}else{a.left=a.top=a.right=a.bottom=0}n.offset=a}function Ms(e){var t=e.coords,r=e.interaction,n=e.state;var i=n.options,o=n.offset;var a=Es(i.restriction,r,t);if(!a){return n}var s=a;if("x"in a&&"y"in a){t.x=Math.max(Math.min(s.x+s.width-o.right,t.x),s.x+o.left);t.y=Math.max(Math.min(s.y+s.height-o.bottom,t.y),s.y+o.top)}else{t.x=Math.max(Math.min(s.right-o.right,t.x),s.left+o.left);t.y=Math.max(Math.min(s.bottom-o.bottom,t.y),s.top+o.top)}}function Es(e,t,r){if(Os.func(e)){return Ps["default"].resolveRectLike(e,t.interactable,t.element,[r.x,r.y,t])}else{return Ps["default"].resolveRectLike(e,t.interactable,t.element)}}var Ss={start:js,set:Ms,getRestrictionRect:Es,defaults:{enabled:false,restriction:null,elementRect:null}};var Ts=Ss;ws["default"]=Ts;var Ds={};Object.defineProperty(Ds,"__esModule",{value:true});Ds["default"]=void 0;var ks=As(ct);var Is=As(pt);var zs=As(ws);function As(e){return e&&e.__esModule?e:{default:e}}var Cs=zs["default"].getRestrictionRect;var Rs={top:+Infinity,left:+Infinity,bottom:-Infinity,right:-Infinity};var Xs={top:-Infinity,left:-Infinity,bottom:+Infinity,right:+Infinity};function Ys(e){var t=e.interaction,r=e.state;var n=r.options;var i=t.modifiers.startOffset;var o;if(n){var a=Cs(n.offset,t,t.coords.start.page);o=Is["default"].rectToXY(a)}o=o||{x:0,y:0};r.offset={top:o.y+i.top,left:o.x+i.left,bottom:o.y-i.bottom,right:o.x-i.right}}function Ns(e){var t=e.coords,r=e.interaction,n=e.state;var i=n.offset,o=n.options;var a=r.prepared._linkedEdges||r.prepared.edges;if(!a){return}var s=(0,ks["default"])({},t);var u=Cs(o.inner,r,s)||{};var l=Cs(o.outer,r,s)||{};Ls(u,Rs);Ls(l,Xs);if(a.top){t.y=Math.min(Math.max(l.top+i.top,s.y),u.top+i.top)}else if(a.bottom){t.y=Math.max(Math.min(l.bottom+i.bottom,s.y),u.bottom+i.bottom)}if(a.left){t.x=Math.min(Math.max(l.left+i.left,s.x),u.left+i.left)}else if(a.right){t.x=Math.max(Math.min(l.right+i.right,s.x),u.right+i.right)}}function Ls(e,t){var r=["top","left","bottom","right"];for(var n=0;n<r.length;n++){var i=r[n];if(!(i in e)){e[i]=t[i]}}return e}var Fs={noInner:Rs,noOuter:Xs,getRestrictionRect:Cs,start:Ys,set:Ns,defaults:{enabled:false,inner:null,outer:null,offset:null}};var Ws=Fs;Ds["default"]=Ws;var Vs={};Object.defineProperty(Vs,"__esModule",{value:true});Vs["default"]=void 0;var qs=Bs(ct);var Gs=Bs(pt);var Us=Bs(Ds);function Bs(e){return e&&e.__esModule?e:{default:e}}var Hs={width:-Infinity,height:-Infinity};var $s={width:+Infinity,height:+Infinity};function Ks(e){return Us["default"].start(e)}function Qs(e){var t=e.interaction,r=e.state;var n=r.options;var i=t.prepared.linkedEdges||t.prepared.edges;if(!i){return}var o=Gs["default"].xywhToTlbr(t.resizeRects.inverted);var a=Gs["default"].tlbrToXywh(Us["default"].getRestrictionRect(n.min,t))||Hs;var s=Gs["default"].tlbrToXywh(Us["default"].getRestrictionRect(n.max,t))||$s;r.options={enabled:n.enabled,endOnly:n.endOnly,inner:(0,qs["default"])({},Us["default"].noInner),outer:(0,qs["default"])({},Us["default"].noOuter)};if(i.top){r.options.inner.top=o.bottom-a.height;r.options.outer.top=o.bottom-s.height}else if(i.bottom){r.options.inner.bottom=o.top+a.height;r.options.outer.bottom=o.top+s.height}if(i.left){r.options.inner.left=o.right-a.width;r.options.outer.left=o.right-s.width}else if(i.right){r.options.inner.right=o.left+a.width;r.options.outer.right=o.left+s.width}Us["default"].set(e);r.options=n}var Js={start:Ks,set:Qs,defaults:{enabled:false,min:null,max:null}};var Zs=Js;Vs["default"]=Zs;var eu={};Object.defineProperty(eu,"__esModule",{value:true});eu["default"]=void 0;var tu=ru(qt);function ru(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function nu(e){var t=e.interaction,r=e.interactable,n=e.element,i=e.rect,o=e.state,a=e.startOffset;var s=o.options;var u=[];var l=s.offsetWithOrigin?ou(e):{x:0,y:0};var c;if(s.offset==="startCoords"){c={x:t.coords.start.page.x,y:t.coords.start.page.y}}else{var f=tu.rect.resolveRectLike(s.offset,r,n,[t]);c=tu.rect.rectToXY(f)||{x:0,y:0};c.x+=l.x;c.y+=l.y}var p=s.relativePoints||[];if(i&&s.relativePoints&&s.relativePoints.length){for(var d=0;d<p.length;d++){var v=p[d];u.push({index:d,relativePoint:v,x:a.left-i.width*v.x+c.x,y:a.top-i.height*v.y+c.y})}}else{u.push(tu.extend({index:0,relativePoint:null},c))}o.offsets=u}function iu(e){var t=e.interaction,r=e.coords,n=e.state;var i=n.options,o=n.offsets;var a=tu.getOriginXY(t.interactable,t.element,t.prepared.name);var s=tu.extend({},r);var u=[];var l;if(!i.offsetWithOrigin){s.x-=a.x;s.y-=a.y}n.realX=s.x;n.realY=s.y;for(var c=0;c<o.length;c++){var f;f=o[c];var p=f;var d=s.x-p.x;var v=s.y-p.y;for(var g=0,h=i.targets.length;g<h;g++){var y=i.targets[g];if(tu.is.func(y)){l=y(d,v,t,p,g)}else{l=y}if(!l){continue}u.push({x:(tu.is.number(l.x)?l.x:d)+p.x,y:(tu.is.number(l.y)?l.y:v)+p.y,range:tu.is.number(l.range)?l.range:i.range})}}var m={target:null,inRange:false,distance:0,range:0,dx:0,dy:0};for(var b=0,w=u.length;b<w;b++){l=u[b];var O=l.range;var P=l.x-s.x;var _=l.y-s.y;var x=tu.hypot(P,_);var j=x<=O;if(O===Infinity&&m.inRange&&m.range!==Infinity){j=false}if(!m.target||(j?m.inRange&&O!==Infinity?x/O<m.distance/m.range:O===Infinity&&m.range!==Infinity||x<m.distance:!m.inRange&&x<m.distance)){m.target=l;m.distance=x;m.range=O;m.inRange=j;m.dx=P;m.dy=_;n.range=O}}if(m.inRange){r.x=m.target.x;r.y=m.target.y}n.closest=m}function ou(e){var t=tu.rect.rectToXY(tu.rect.resolveRectLike(e.state.options.origin));var r=t||tu.getOriginXY(e.interactable,e.interaction.element,e.interaction.prepared.name);return r}var au={start:nu,set:iu,defaults:{enabled:false,range:Infinity,targets:null,offset:null,offsetWithOrigin:true,relativePoints:null}};var su=au;eu["default"]=su;var uu={};Object.defineProperty(uu,"__esModule",{value:true});uu["default"]=void 0;var lu=du(ct);var cu=pu(j);var fu=du(eu);function pu(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function du(e){return e&&e.__esModule?e:{default:e}}function vu(e,t){return yu(e)||hu(e,t)||gu()}function gu(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function hu(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done);n=true){r.push(s.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"]!=null)a["return"]()}finally{if(i)throw o}}return r}function yu(e){if(Array.isArray(e))return e}function mu(e){var t=e.interaction,r=e.state;var n=r.options;var i=t.prepared.edges;if(!i){return null}e.state={options:{relativePoints:[{x:i.left?0:1,y:i.top?0:1}],origin:{x:0,y:0},offset:n.offset||"self",range:n.range}};r.targetFields=r.targetFields||[["width","height"],["x","y"]];fu["default"].start(e);r.offsets=e.state.offsets;e.state=r}function bu(e){var t=e.interaction,r=e.state,n=e.coords;var i=r.options,o=r.offsets;var a={x:n.x-o[0].x,y:n.y-o[0].y};r.options=(0,lu["default"])({},i);r.options.targets=[];for(var s=0;s<(i.targets||[]).length;s++){var u;u=(i.targets||[])[s];var l=u;var c=void 0;if(cu.func(l)){c=l(a.x,a.y,t)}else{c=l}if(!c){continue}for(var f=0;f<r.targetFields.length;f++){var p;p=r.targetFields[f];var d=p,v=vu(d,2),g=v[0],h=v[1];if(g in c||h in c){c.x=c[g];c.y=c[h];break}}r.options.targets.push(c)}fu["default"].set(e);r.options=i}var wu={start:mu,set:bu,defaults:{enabled:false,range:Infinity,targets:null,offset:null}};var Ou=wu;uu["default"]=Ou;var Pu={};Object.defineProperty(Pu,"__esModule",{value:true});Pu["default"]=void 0;var _u=Mu(ge);var xu=Mu(ct);var ju=Mu(uu);function Mu(e){return e&&e.__esModule?e:{default:e}}function Eu(e){var t=e.interaction.prepared.edges;if(!t){return null}e.state.targetFields=e.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]];return ju["default"].start(e)}function Su(e){return ju["default"].set(e)}var Tu={start:Eu,set:Su,defaults:(0,xu["default"])((0,_u["default"])(ju["default"].defaults),{offset:{x:0,y:0}})};var Du=Tu;Pu["default"]=Du;var ku={};Object.defineProperty(ku,"__esModule",{value:true});ku.restrictSize=ku.restrictEdges=ku.restrict=ku.snapEdges=ku.snapSize=ku.snap=void 0;var Iu=Nu(Ra);var zu=Nu(Ds);var Au=Nu(ws);var Cu=Nu(Vs);var Ru=Nu(Pu);var Xu=Nu(eu);var Yu=Nu(uu);function Nu(e){return e&&e.__esModule?e:{default:e}}var Lu=Iu["default"].makeModifier;var Fu=Lu(Xu["default"],"snap");ku.snap=Fu;var Wu=Lu(Yu["default"],"snapSize");ku.snapSize=Wu;var Vu=Lu(Ru["default"],"snapEdges");ku.snapEdges=Vu;var qu=Lu(Au["default"],"restrict");ku.restrict=qu;var Gu=Lu(zu["default"],"restrictEdges");ku.restrictEdges=Gu;var Uu=Lu(Cu["default"],"restrictSize");ku.restrictSize=Uu;var Bu={};Object.defineProperty(Bu,"__esModule",{value:true});Bu["default"]=void 0;var Hu=Ku(rn);var $u=Ku(je);function Ku(e){return e&&e.__esModule?e:{default:e}}function Qu(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Qu=function e(t){return typeof t}}else{Qu=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Qu(e)}function Ju(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Zu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function el(e,t,r){if(t)Zu(e.prototype,t);if(r)Zu(e,r);return e}function tl(e,t){if(t&&(Qu(t)==="object"||typeof t==="function")){return t}return nl(e)}function rl(e){rl=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return rl(e)}function nl(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function il(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)ol(e,t)}function ol(e,t){ol=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return ol(e,t)}var al=function(e){il(t,e);function t(e,r,n,i,o,a){var s;Ju(this,t);s=tl(this,rl(t).call(this,o));$u["default"].pointerExtend(nl(s),n);if(n!==r){$u["default"].pointerExtend(nl(s),r)}s.timeStamp=a;s.originalEvent=n;s.type=e;s.pointerId=$u["default"].getPointerId(r);s.pointerType=$u["default"].getPointerType(r);s.target=i;s.currentTarget=null;if(e==="tap"){var u=o.getPointerIndex(r);s.dt=s.timeStamp-o.pointers[u].downTime;var l=s.timeStamp-o.tapTime;s["double"]=!!(o.prevTap&&o.prevTap.type!=="doubletap"&&o.prevTap.target===s.target&&l<500)}else if(e==="doubletap"){s.dt=r.timeStamp-o.tapTime}return s}el(t,[{key:"_subtractOrigin",value:function e(t){var r=t.x,n=t.y;this.pageX-=r;this.pageY-=n;this.clientX-=r;this.clientY-=n;return this}},{key:"_addOrigin",value:function e(t){var r=t.x,n=t.y;this.pageX+=r;this.pageY+=n;this.clientX+=r;this.clientY+=n;return this}},{key:"preventDefault",value:function e(){this.originalEvent.preventDefault()}}]);return t}(Hu["default"]);Bu["default"]=al;var sl={};Object.defineProperty(sl,"__esModule",{value:true});sl["default"]=void 0;var ul=fl(qt);var ll=cl(Bu);function cl(e){return e&&e.__esModule?e:{default:e}}function fl(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}var pl=new ul.Signals;var dl=["down","up","cancel"];var vl=["down","up","cancel"];var gl={holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}};var hl={id:"pointer-events/base",install:bl,signals:pl,PointerEvent:ll["default"],fire:yl,collectEventTargets:ml,createSignalListener:wl,defaults:gl,types:["down","move","up","cancel","tap","doubletap","hold"]};function yl(e,t){var r=e.interaction,n=e.pointer,i=e.event,o=e.eventTarget,a=e.type,s=a===void 0?e.pointerEvent.type:a,u=e.targets,l=u===void 0?ml(e):u;var c=e.pointerEvent,f=c===void 0?new ll["default"](s,n,i,o,r,t.now()):c;var p={interaction:r,pointer:n,event:i,eventTarget:o,targets:l,type:s,pointerEvent:f};for(var d=0;d<l.length;d++){var v=l[d];for(var g in v.props||{}){f[g]=v.props[g]}var h=ul.getOriginXY(v.eventable,v.node);f._subtractOrigin(h);f.eventable=v.eventable;f.currentTarget=v.node;v.eventable.fire(f);f._addOrigin(h);if(f.immediatePropagationStopped||f.propagationStopped&&d+1<l.length&&l[d+1].node!==f.currentTarget){break}}pl.fire("fired",p);if(s==="tap"){var y=f["double"]?yl({interaction:r,pointer:n,event:i,eventTarget:o,type:"doubletap"},t):f;r.prevTap=y;r.tapTime=y.timeStamp}return f}function ml(e){var t=e.interaction,r=e.pointer,n=e.event,i=e.eventTarget,o=e.type;var a=t.getPointerIndex(r);var s=t.pointers[a];if(o==="tap"&&(t.pointerWasMoved||!(s&&s.downTarget===i))){return[]}var u=ul.dom.getPath(i);var l={interaction:t,pointer:r,event:n,eventTarget:i,type:o,path:u,targets:[],node:null};for(var c=0;c<u.length;c++){var f;f=u[c];var p=f;l.node=p;pl.fire("collect-targets",l)}if(o==="hold"){l.targets=l.targets.filter(function(e){return e.eventable.options.holdDuration===t.pointers[a].hold.duration})}return l.targets}function bl(e){var t=e.interactions;e.pointerEvents=hl;e.defaults.actions.pointerEvents=hl.defaults;t.signals.on("new",function(e){var t=e.interaction;t.prevTap=null;t.tapTime=0});t.signals.on("update-pointer",function(e){var t=e.down,r=e.pointerInfo;if(!t&&r.hold){return}r.hold={duration:Infinity,timeout:null}});t.signals.on("move",function(t){var r=t.interaction,n=t.pointer,i=t.event,o=t.eventTarget,a=t.duplicateMove;var s=r.getPointerIndex(n);if(!a&&(!r.pointerIsDown||r.pointerWasMoved)){if(r.pointerIsDown){clearTimeout(r.pointers[s].hold.timeout)}yl({interaction:r,pointer:n,event:i,eventTarget:o,type:"move"},e)}});t.signals.on("down",function(t){var r=t.interaction,n=t.pointer,i=t.event,o=t.eventTarget,a=t.pointerIndex;var s=r.pointers[a].hold;var u=ul.dom.getPath(o);var l={interaction:r,pointer:n,event:i,eventTarget:o,type:"hold",targets:[],path:u,element:null};for(var c=0;c<u.length;c++){var f;f=u[c];var p=f;l.element=p;pl.fire("collect-targets",l)}if(!l.targets.length){return}var d=Infinity;for(var v=0;v<l.targets.length;v++){var g;g=l.targets[v];var h=g;var y=h.eventable.options.holdDuration;if(y<d){d=y}}s.duration=d;s.timeout=setTimeout(function(){yl({interaction:r,eventTarget:o,pointer:n,event:i,type:"hold"},e)},d)});var r=["up","cancel"];for(var n=0;n<r.length;n++){var i=r[n];t.signals.on(i,function(e){var t=e.interaction,r=e.pointerIndex;if(t.pointers[r].hold){clearTimeout(t.pointers[r].hold.timeout)}})}for(var o=0;o<dl.length;o++){t.signals.on(dl[o],wl(vl[o],e))}t.signals.on("up",function(t){var r=t.interaction,n=t.pointer,i=t.event,o=t.eventTarget;if(!r.pointerWasMoved){yl({interaction:r,eventTarget:o,pointer:n,event:i,type:"tap"},e)}})}function wl(e,t){return function(r){var n=r.interaction,i=r.pointer,o=r.event,a=r.eventTarget;yl({interaction:n,eventTarget:a,pointer:i,event:o,type:e},t)}}var Ol=hl;sl["default"]=Ol;var Pl={};Object.defineProperty(Pl,"__esModule",{value:true});Pl["default"]=void 0;var _l=xl(sl);function xl(e){return e&&e.__esModule?e:{default:e}}function jl(e){var t=e.pointerEvents,r=e.interactions;e.usePlugin(_l["default"]);t.signals.on("new",Ml);t.signals.on("fired",function(t){return El(t,e)});var n=["move","up","cancel","endall"];for(var i=0;i<n.length;i++){var o=n[i];r.signals.on(o,Sl)}t.defaults.holdRepeatInterval=0;t.types.push("holdrepeat")}function Ml(e){var t=e.pointerEvent;if(t.type!=="hold"){return}t.count=(t.count||0)+1}function El(e,t){var r=e.interaction,n=e.pointerEvent,i=e.eventTarget,o=e.targets;if(n.type!=="hold"||!o.length){return}var a=o[0].eventable.options.holdRepeatInterval;if(a<=0){return}r.holdIntervalHandle=setTimeout(function(){t.pointerEvents.fire({interaction:r,eventTarget:i,type:"hold",pointer:n,event:n},t)},a)}function Sl(e){var t=e.interaction;if(t.holdIntervalHandle){clearInterval(t.holdIntervalHandle);t.holdIntervalHandle=null}}var Tl={id:"pointer-events/holdRepeat",install:jl};Pl["default"]=Tl;var Dl={};Object.defineProperty(Dl,"__esModule",{value:true});Dl["default"]=void 0;var kl=Il(ct);function Il(e){return e&&e.__esModule?e:{default:e}}function zl(e){var t=e.pointerEvents,r=e.actions,n=e.Interactable,o=e.interactables;t.signals.on("collect-targets",function(t){var r=t.targets,n=t.node,i=t.type,o=t.eventTarget;e.interactables.forEachMatch(n,function(e){var t=e.events;var a=t.options;if(t.types[i]&&t.types[i].length&&e.testIgnoreAllow(a,n,o)){r.push({node:n,eventable:t,props:{interactable:e}})}})});o.signals.on("new",function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}});o.signals.on("set",function(e){var r=e.interactable,n=e.options;(0,kl["default"])(r.events.options,t.defaults);(0,kl["default"])(r.events.options,n.pointerEvents||{})});(0,i.merge)(r.eventTypes,t.types);n.prototype.pointerEvents=Al;var a=n.prototype._backCompatOption;n.prototype._backCompatOption=function(e,t){var r=a.call(this,e,t);if(r===this){this.events.options[e]=t}return r}}function Al(e){(0,kl["default"])(this.events.options,e);return this}var Cl={id:"pointer-events/interactableTargets",install:zl};Dl["default"]=Cl;var Rl={};Object.defineProperty(Rl,"__esModule",{value:true});Rl.install=Fl;Object.defineProperty(Rl,"pointerEvents",{enumerable:true,get:function e(){return Xl["default"]}});Object.defineProperty(Rl,"holdRepeat",{enumerable:true,get:function e(){return Yl["default"]}});Object.defineProperty(Rl,"interactableTargets",{enumerable:true,get:function e(){return Nl["default"]}});Rl.id=void 0;var Xl=Ll(sl);var Yl=Ll(Pl);var Nl=Ll(Dl);function Ll(e){return e&&e.__esModule?e:{default:e}}function Fl(e){e.usePlugin(Xl["default"]);e.usePlugin(Yl["default"]);e.usePlugin(Nl["default"])}var Wl="pointer-events";Rl.id=Wl;var Vl={};Object.defineProperty(Vl,"__esModule",{value:true});Vl.install=ql;Vl["default"]=void 0;cn.EventPhase.Reflow="reflow";function ql(e){var t=e.actions,r=e.interactions,n=e.Interactable;for(var i=0;i<t.names.length;i++){var o;o=t.names[i];var a=o;t.eventTypes.push("".concat(a,"reflow"))}r.signals.on("stop",function(t){var r=t.interaction;if(r.pointerType===cn.EventPhase.Reflow){if(r._reflowResolve){r._reflowResolve()}qt.arr.remove(e.interactions.list,r)}});n.prototype.reflow=function(t){return Gl(this,t,e)}}function Gl(e,t,r){var n=qt.is.string(e.target)?qt.arr.from(e._context.querySelectorAll(e.target)):[e.target];var i=qt.win.window.Promise;var o=i?[]:null;var a=function a(){u=n[s];var l=u;var c=e.getRect(l);if(!c){return"break"}var f=qt.arr.find(r.interactions.list,function(r){return r.interacting()&&r.interactable===e&&r.element===l&&r.prepared.name===t.name});var p=void 0;if(f){f.move();if(o){p=f._reflowPromise||new i(function(e){f._reflowResolve=e})}}else{var d=qt.rect.tlbrToXywh(c);var v={page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:r.now()};var g=qt.pointer.coordsToEvent(v);p=Ul(r,e,l,t,g)}if(o){o.push(p)}};for(var s=0;s<n.length;s++){var u;var l=a();if(l==="break")break}return o&&i.all(o).then(function(){return e})}function Ul(e,t,r,n,i){var o=e.interactions["new"]({pointerType:"reflow"});var a={interaction:o,event:i,pointer:i,eventTarget:r,phase:cn.EventPhase.Reflow};o.interactable=t;o.element=r;o.prepared=(0,qt.extend)({},n);o.prevEvent=i;o.updatePointer(i,i,r,true);o._doPhase(a);var s=qt.win.window.Promise?new qt.win.window.Promise(function(e){o._reflowResolve=e}):null;o._reflowPromise=s;o.start(n,t,r);if(o._interacting){o.move(a);o.end(i)}else{o.stop()}o.removePointer(i,i);o.pointerIsDown=false;return s}var Bl={id:"reflow",install:ql};Vl["default"]=Bl;var Hl={};Object.defineProperty(Hl,"__esModule",{value:true});Hl["default"]=Hl.scope=Hl.interact=void 0;var $l=t({});var Kl=ec(qt);var Ql=Zl(L);var Jl=Zl(Re);function Zl(e){return e&&e.__esModule?e:{default:e}}function ec(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}var tc={};var rc=new $l.Scope;Hl.scope=rc;var nc=function e(t,r){var n=rc.interactables.get(t,r);if(!n){n=rc.interactables["new"](t,r);n.events.global=tc}return n};Hl.interact=nc;nc.use=ic;function ic(e,t){rc.usePlugin(e,t);return nc}nc.isSet=oc;function oc(e,t){return!!rc.interactables.get(e,t&&t.context)}nc.on=ac;function ac(e,t,r){if(Kl.is.string(e)&&e.search(" ")!==-1){e=e.trim().split(/ +/)}if(Kl.is.array(e)){for(var n=0;n<e.length;n++){var i;i=e[n];var o=i;nc.on(o,t,r)}return nc}if(Kl.is.object(e)){for(var a in e){nc.on(a,e[a],t)}return nc}if(Kl.arr.contains(rc.actions.eventTypes,e)){if(!tc[e]){tc[e]=[t]}else{tc[e].push(t)}}else{Jl["default"].add(rc.document,e,t,{options:r})}return nc}nc.off=sc;function sc(e,t,r){if(Kl.is.string(e)&&e.search(" ")!==-1){e=e.trim().split(/ +/)}if(Kl.is.array(e)){for(var n=0;n<e.length;n++){var i;i=e[n];var o=i;nc.off(o,t,r)}return nc}if(Kl.is.object(e)){for(var a in e){nc.off(a,e[a],t)}return nc}if(!Kl.arr.contains(rc.actions.eventTypes,e)){Jl["default"].remove(rc.document,e,t,r)}else{var s;if(e in tc&&(s=tc[e].indexOf(t))!==-1){tc[e].splice(s,1)}}return nc}nc.debug=uc;function uc(){return rc}nc.getPointerAverage=Kl.pointer.pointerAverage;nc.getTouchBBox=Kl.pointer.touchBBox;nc.getTouchDistance=Kl.pointer.touchDistance;nc.getTouchAngle=Kl.pointer.touchAngle;nc.getElementRect=Kl.dom.getElementRect;nc.getElementClientRect=Kl.dom.getElementClientRect;nc.matchesSelector=Kl.dom.matchesSelector;nc.closest=Kl.dom.closest;nc.supportsTouch=lc;function lc(){return Ql["default"].supportsTouch}nc.supportsPointerEvent=cc;function cc(){return Ql["default"].supportsPointerEvent}nc.stop=fc;function fc(){for(var e=0;e<rc.interactions.list.length;e++){var t;t=rc.interactions.list[e];var r=t;r.stop()}return nc}nc.pointerMoveTolerance=pc;function pc(e){if(Kl.is.number(e)){rc.interactions.pointerMoveTolerance=e;return nc}return rc.interactions.pointerMoveTolerance}rc.interactables.signals.on("unset",function(e){var t=e.interactable;rc.interactables.list.splice(rc.interactables.list.indexOf(t),1);for(var r=0;r<rc.interactions.list.length;r++){var n;n=rc.interactions.list[r];var i=n;if(i.interactable===t&&i.interacting()&&!i._ending){i.stop()}}});nc.addDocument=function(e,t){return rc.addDocument(e,t)};nc.removeDocument=function(e){return rc.removeDocument(e)};rc.interact=nc;var dc=nc;Hl["default"]=dc;var vc={};Object.defineProperty(vc,"__esModule",{value:true});vc.init=Sc;Object.defineProperty(vc,"autoScroll",{enumerable:true,get:function e(){return hc["default"]}});Object.defineProperty(vc,"interactablePreventDefault",{enumerable:true,get:function e(){return mc["default"]}});Object.defineProperty(vc,"inertia",{enumerable:true,get:function e(){return wc["default"]}});Object.defineProperty(vc,"modifiers",{enumerable:true,get:function e(){return Pc["default"]}});Object.defineProperty(vc,"reflow",{enumerable:true,get:function e(){return xc["default"]}});Object.defineProperty(vc,"interact",{enumerable:true,get:function e(){return jc["default"]}});vc.pointerEvents=vc.actions=vc["default"]=void 0;var gc=Ec(no);vc.actions=gc;var hc=Mc(fo);var yc=Ec(ua);var mc=Mc(ga);var bc=Mc(ja);var wc=Mc(is);var Oc=Ec(ku);var Pc=Mc(Ra);var _c=Ec(Rl);vc.pointerEvents=_c;var xc=Mc(Vl);var jc=Ec(Hl);function Mc(e){return e&&e.__esModule?e:{default:e}}function Ec(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function Sc(e){jc.scope.init(e);jc["default"].use(mc["default"]);jc["default"].use(wc["default"]);jc["default"].use(_c);jc["default"].use(yc);jc["default"].use(gc);jc["default"].use(Pc["default"]);for(var t in Oc){var r=Oc[t],n=r._defaults,i=r._methods;n._methods=i;jc.scope.defaults.perAction[t]=n}jc["default"].use(hc["default"]);jc["default"].use(xc["default"]);return jc["default"]}jc["default"].version="1.4.9";var Tc=jc["default"];vc["default"]=Tc;var Dc={};Object.defineProperty(Dc,"__esModule",{value:true});Dc["default"]=void 0;function kc(e,t){return Ac(e)||zc(e,t)||Ic()}function Ic(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function zc(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done);n=true){r.push(s.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&a["return"]!=null)a["return"]()}finally{if(i)throw o}}return r}function Ac(e){if(Array.isArray(e))return e}function Cc(e){var t=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(t){var r=kc(t,2),n=r[0],i=r[1];return n in e||i in e});return function(r,n){var i=e.range,o=e.limits,a=o===void 0?{left:-Infinity,right:Infinity,top:-Infinity,bottom:Infinity}:o,s=e.offset,u=s===void 0?{x:0,y:0}:s;var l={range:i};for(var c=0;c<t.length;c++){var f;f=t[c];var p=f,d=kc(p,2),v=d[0],g=d[1];var h=Math.round((r-u.x)/e[v]);var y=Math.round((n-u.y)/e[g]);l[v]=Math.max(a.left,Math.min(a.right,h*e[v]+u.x));l[g]=Math.max(a.top,Math.min(a.bottom,y*e[g]+u.y))}return l}}var Rc=Cc;Dc["default"]=Rc;var Xc={};Object.defineProperty(Xc,"__esModule",{value:true});Object.defineProperty(Xc,"grid",{enumerable:true,get:function e(){return Yc["default"]}});var Yc=Nc(Dc);function Nc(e){return e&&e.__esModule?e:{default:e}}var Lc={exports:{}};Object.defineProperty(Lc.exports,"__esModule",{value:true});Lc.exports.init=Hc;Lc.exports["default"]=void 0;var Fc=Uc(vc);var Wc=Uc(ku);var Vc=Gc(ct);var qc=Uc(Xc);function Gc(e){return e&&e.__esModule?e:{default:e}}function Uc(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t["default"]=e;return t}}function Bc(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Bc=function e(t){return typeof t}}else{Bc=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Bc(e)}if((typeof window==="undefined"?"undefined":Bc(window))==="object"&&!!window){Hc(window)}function Hc(e){(0,Fc.init)(e);return Fc["default"].use({id:"interactjs",install:function e(t){Fc["default"].modifiers=(0,Vc["default"])(t.modifiers,Wc);Fc["default"].snappers=qc;Fc["default"].createSnapGrid=Fc["default"].snappers.grid}})}var $c=Fc["default"];Lc.exports["default"]=$c;Fc["default"]["default"]=Fc["default"];Fc["default"]["init"]=Hc;if(Bc(Lc)==="object"&&!!Lc){Lc.exports=Fc["default"]}Lc=Lc.exports;return Lc})});var s=t(a);var u=function(){function e(e){r(this,e);this.position={x:0,y:0,width:"100px",height:"100px"};this.isLocked=false;this._position={x:0,y:0,width:"100px",height:"100px"};this.changePosition=n(this,"changePosition",7)}e.prototype.changePropPosition=function(){this._position=Object.assign({},this.position)};e.prototype.changeLocked=function(){if(this.isLocked){this.disableInteract()}else{this.disableInteract();this.enableInteract()}};e.prototype.componentWillLoad=function(){this._position=Object.assign({},this.position)};e.prototype.componentDidLoad=function(){if(!this.isLocked){this.enableInteract()}};e.prototype.componentDidUnload=function(){this.disableInteract()};e.prototype.enableInteract=function(){var e=this;s(this.element).draggable({onmove:function(t){e._position.x=t.rect.left;e._position.y=t.rect.top;e._position=Object.assign({},e._position);e.changePosition.emit(e._position)}}).resizable({edges:{left:true,right:true,bottom:true,top:true},preserveAspectRatio:false,inertia:true}).on("resizemove",function(t){e._position.width=t.rect.width+"px";e._position.height=t.rect.height+"px";e._position.x=t.rect.left;e._position.y=t.rect.top;e._position=Object.assign({},e._position);e.changePosition.emit(e._position)})};e.prototype.disableInteract=function(){s(this.element).unset()};e.prototype.transformString=function(){return"translate3D("+this._position.x+"px, "+this._position.y+"px, 0)"};e.prototype.styleString=function(){return{transform:this.transformString(),width:this._position.width,height:this._position.height}};e.prototype.render=function(){var e=this;return i("div",{ref:function(t){return e.element=t},style:this.styleString()},i("slot",null))};Object.defineProperty(e,"watchers",{get:function(){return{position:["changePropPosition"],isLocked:["changeLocked"]}},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return""},enumerable:true,configurable:true});return e}();e("ks_widget",u)}}});