1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1824],{88078:function(tr,ti,to){"use strict";to.d(ti,{Z:function(){return t_}});var ta=to(67294),ts=to(63961),tc=to(94780);function getUnit(tr){return String(tr).match(/[\d.\-+]*\s*(.*)/)[1]||""}function toUnitless(tr){return parseFloat(tr)}var tl=to(38366),tu=to(70917),tp=to(84597),tf=to(16694),td=to(2775),th=to(1588),tv=to(34867);function getSkeletonUtilityClass(tr){return(0,tv.ZP)("MuiSkeleton",tr)}(0,th.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var tg=to(85893);let useUtilityClasses=tr=>{let{classes:ti,variant:to,animation:ta,hasChildren:ts,width:tl,height:tu}=tr,tp={root:["root",to,ta,ts&&"withChildren",ts&&!tl&&"fitContent",ts&&!tu&&"heightAuto"]};return(0,tc.Z)(tp,getSkeletonUtilityClass,ti)},tm=tu.F4` 2 0% { 3 opacity: 1; 4 } 5 6 50% { 7 opacity: 0.4; 8 } 9 10 100% { 11 opacity: 1; 12 } 13`,ty=tu.F4` 14 0% { 15 transform: translateX(-100%); 16 } 17 18 50% { 19 /* +0.5s of delay between each loop */ 20 transform: translateX(100%); 21 } 22 23 100% { 24 transform: translateX(100%); 25 } 26`,tb="string"!=typeof tm?tu.iv` 27 animation: ${tm} 2s ease-in-out 0.5s infinite; 28 `:null,tx="string"!=typeof ty?tu.iv` 29 &::after { 30 animation: ${ty} 2s linear 0.5s infinite; 31 } 32 `:null,tw=(0,tp.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(tr,ti)=>{let{ownerState:to}=tr;return[ti.root,ti[to.variant],!1!==to.animation&&ti[to.animation],to.hasChildren&&ti.withChildren,to.hasChildren&&!to.width&&ti.fitContent,to.hasChildren&&!to.height&&ti.heightAuto]}})((0,tf.Z)(({theme:tr})=>{let ti=getUnit(tr.shape.borderRadius)||"px",to=toUnitless(tr.shape.borderRadius);return{display:"block",backgroundColor:tr.vars?tr.vars.palette.Skeleton.bg:(0,tl.Fq)(tr.palette.text.primary,"light"===tr.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${to}${ti}/${Math.round(to/.6*10)/10}${ti}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(tr.vars||tr).shape.borderRadius}},{props:({ownerState:tr})=>tr.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:tr})=>tr.hasChildren&&!tr.width,style:{maxWidth:"fit-content"}},{props:({ownerState:tr})=>tr.hasChildren&&!tr.height,style:{height:"auto"}},{props:{animation:"pulse"},style:tb||{animation:`${tm} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( 33 90deg, 34 transparent, 35 ${(tr.vars||tr).palette.action.hover}, 36 transparent 37 )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:tx||{"&::after":{animation:`${ty} 2s linear 0.5s infinite`}}}]}})),tE=ta.forwardRef(function(tr,ti){let to=(0,td.i)({props:tr,name:"MuiSkeleton"}),{animation:ta="pulse",className:tc,component:tl="span",height:tu,style:tp,variant:tf="text",width:th,...tv}=to,tm={...to,animation:ta,component:tl,variant:tf,hasChildren:!!tv.children},ty=useUtilityClasses(tm);return(0,tg.jsx)(tw,{as:tl,ref:ti,className:(0,ts.Z)(ty.root,tc),ownerState:tm,...tv,style:{width:th,height:tu,...tp}})});var t_=tE},68496:function(tr,ti,to){tr=to.nmd(tr),function(ti,to){tr.exports=to()}(0,function(){"use strict";function t(tr,ti){var to=Object.keys(tr);if(Object.getOwnPropertySymbols){var ta=Object.getOwnPropertySymbols(tr);ti&&(ta=ta.filter(function(ti){return Object.getOwnPropertyDescriptor(tr,ti).enumerable})),to.push.apply(to,ta)}return to}function e(tr){for(var ti=1;ti<arguments.length;ti++){var to=null!=arguments[ti]?arguments[ti]:{};ti%2?t(Object(to),!0).forEach(function(ti){a(tr,ti,to[ti])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tr,Object.getOwnPropertyDescriptors(to)):t(Object(to)).forEac
37h(function(ti){Object.defineProperty(tr,ti,Object.getOwnPropertyDescriptor(to,ti))})}return tr}function n(tr){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(tr){return typeof tr}:function(tr){return tr&&"function"==typeof Symbol&&tr.constructor===Symbol&&tr!==Symbol.prototype?"symbol":typeof tr})(tr)}function r(tr,ti){if(!(tr instanceof ti))throw TypeError("Cannot call a class as a function")}function i(tr,ti){for(var to=0;to<ti.length;to++){var ta=ti[to];ta.enumerable=ta.enumerable||!1,ta.configurable=!0,"value"in ta&&(ta.writable=!0),Object.defineProperty(tr,d(ta.key),ta)}}function o(tr,ti,to){return ti&&i(tr.prototype,ti),to&&i(tr,to),Object.defineProperty(tr,"prototype",{writable:!1}),tr}function a(tr,ti,to){return(ti=d(ti))in tr?Object.defineProperty(tr,ti,{value:to,enumerable:!0,configurable:!0,writable:!0}):tr[ti]=to,tr}function s(tr,ti){if("function"!=typeof ti&&null!==ti)throw TypeError("Super expression must either be null or a function");tr.prototype=Object.create(ti&&ti.prototype,{constructor:{value:tr,writable:!0,configurable:!0}}),Object.defineProperty(tr,"prototype",{writable:!1}),ti&&l(tr,ti)}function c(tr){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(tr){return tr.__proto__||Object.getPrototypeOf(tr)})(tr)}function l(tr,ti){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(tr,ti){return tr.__proto__=ti,tr})(tr,ti)}function u(tr){if(void 0===tr)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return tr}function p(tr){var ti=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(tr){return!1}}();return function(){var to,ta=c(tr);if(ti){var ts=c(this).constructor;to=Reflect.construct(ta,arguments,ts)}else to=ta.apply(this,arguments);return function(tr,ti){if(ti&&("object"==typeof ti||"function"==typeof ti))return ti;if(void 0!==ti)throw TypeError("Derived constructors may only return object or undefined");return u(tr)}(this,to)}}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(tr,ti,to){var ta=function(tr,ti){for(;!Object.prototype.hasOwnProperty.call(tr,ti)&&null!==(tr=c(tr)););return tr}(tr,ti);if(ta){var ts=Object.getOwnPropertyDescriptor(ta,ti);return ts.get?ts.get.call(arguments.length<3?tr:to):ts.value}}).apply(this,arguments)}function d(tr){var ti=function(tr,ti){if("object"!=typeof tr||null===tr)return tr;var to=tr[Symbol.toPrimitive];if(void 0!==to){var ta=to.call(tr,ti||"default");if("object"!=typeof ta)return ta;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===ti?String:Number)(tr)}(tr,"string");return"symbol"==typeof ti?ti:ti+""}var h=function(tr){return!(!tr||!tr.Window)&&tr instanceof tr.Window},ti=void 0,to=void 0;function m(tr){ti=tr;var ta=tr.document.createTextNode("");ta.ownerDocument!==tr.document&&"function"==typeof tr.wrap&&tr.wrap(ta)===ta&&(tr=tr.wrap(tr)),to=tr}function y(tr){return h(tr)?tr:(tr.ownerDocument||tr).defaultView||to.window}"undefined"!=typeof window&&window&&m(window);var b=function(tr){return!!tr&&"object"===n(tr)},x=function(tr){return"function"==typeof tr},ta={window:function(tr){return tr===to||h(tr)},docFrag:function(tr){return b(tr)&&11===tr.nodeType},object:b,func:x,number:function(tr){return"number"==typeof tr},bool:function(tr){return"boolean"==typeof tr},string:function(tr){return"string"==typeof tr},element:function(tr){if(!tr||"object"!==n(tr))return!1;var ti=y(tr)||to;return/object|function/.test("undefined"==typeof Element?"undefined":n(Element))?tr instanceof Element||tr instanceof ti.Element:1===tr.nodeType&&"string"==typeof tr.nodeName},plainObject:function(tr){return b(tr)&&!!tr.constructor&&/function Object\b/.test(tr.constructor.toString())},array:function(tr){return b(tr)&&void 0!==tr.length&&x(tr.splice)}};function E(tr){var ti=tr.interaction;if("drag"===ti.prepared.name){var to=ti.prepared.axis;
vendor: 100,320 bytes, line 37
37"x"===to?(ti.coords.cur.page.y=ti.coords.start.page.y,ti.coords.cur.client.y=ti.coords.start.client.y,ti.coords.velocity.client.y=0,ti.coords.velocity.page.y=0):"y"===to&&(ti.coords.cur.page.x=ti.coords.start.page.x,ti.coords.cur.client.x=ti.coords.start.client.x,ti.coords.velocity.client.x=0,ti.coords.velocity.page.x=0)}}function T(tr){var ti=tr.iEvent,to=tr.interaction;if("drag"===to.prepared.name){var ta=to.prepared.axis;if("x"===ta||"y"===ta){var ts="x"===ta?"y":"x";ti.page[ts]=to.coords.start.page[ts],ti.client[ts]=to.coords.start.client[ts],ti.delta[ts]=0}}}var ts={id:"actions/drag",install:function(tr){var ti=tr.actions,to=tr.Interactable,ta=tr.defaults;to.prototype.draggable=ts.draggable,ti.map.drag=ts,ti.methodDict.drag="draggable",ta.actions.drag=ts.defaults},listeners:{"interactions:before-action-move":E,"interactions:action-resume":E,"interactions:action-move":T,"auto-start:check":function(tr){var ti=tr.interaction,to=tr.interactable,ta=tr.buttons,ts=to.options.drag;if(ts&&ts.enabled&&(!ti.pointerIsDown||!/mouse|pointer/.test(ti.pointerType)||0!=(ta&to.options.drag.mouseButtons)))return tr.action={name:"drag",axis:"start"===ts.lockAxis?ts.startAxis:ts.lockAxis},!1}},draggable:function(tr){return ta.object(tr)?(this.options.drag.enabled=!1!==tr.enabled,this.setPerAction("drag",tr),this.setOnEvents("drag",tr),/^(xy|x|y|start)$/.test(tr.lockAxis)&&(this.options.drag.lockAxis=tr.lockAxis),/^(xy|x|y)$/.test(tr.startAxis)&&(this.options.drag.startAxis=tr.startAxis),this):ta.bool(tr)?(this.options.drag.enabled=tr,this):this.options.drag},beforeMove:E,move:T,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(tr){return 0===tr.search("drag")}},tc=ts,tl={init:function(tr){var ti=tr;tl.document=ti.document,tl.DocumentFragment=ti.DocumentFragment||O,tl.SVGElement=ti.SVGElement||O,tl.SVGSVGElement=ti.SVGSVGElement||O,tl.SVGElementInstance=ti.SVGElementInstance||O,tl.Element=ti.Element||O,tl.HTMLElement=ti.HTMLElement||tl.Element,tl.Event=ti.Event,tl.Touch=ti.Touch||O,tl.PointerEvent=ti.PointerEvent||ti.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function O(){}var tu=tl,tp={init:function(tr){var ti=tu.Element,to=tr.navigator||{};tp.supportsTouch="ontouchstart"in tr||ta.func(tr.DocumentTouch)&&tu.document instanceof tr.DocumentTouch,tp.supportsPointerEvent=!1!==to.pointerEnabled&&!!tu.PointerEvent,tp.isIOS=/iP(hone|od|ad)/.test(to.platform),tp.isIOS7=/iP(hone|od|ad)/.test(to.platform)&&/OS 7[^\d]/.test(to.appVersion),tp.isIe9=/MSIE 9/.test(to.userAgent),tp.isOperaMobile="Opera"===to.appName&&tp.supportsTouch&&/Presto/.test(to.userAgent),tp.prefixedMatchesSelector="matches"in ti.prototype?"matches":"webkitMatchesSelector"in ti.prototype?"webkitMatchesSelector":"mozMatchesSelector"in ti.prototype?"mozMatchesSelector":"oMatchesSelector"in ti.prototype?"oMatchesSelector":"msMatchesSelector",tp.pEventTypes=tp.supportsPointerEvent?tu.PointerEvent===tr.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,tp.wheelEvent=tu.document&&"onmousewheel"in tu.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},tf=tp;function M(tr,ti){if(tr.contains)return tr.contains(ti);for(;ti;){if(ti===tr)return!0;ti=ti.parentNode}return!1}function z(tr,ti){for(;ta.element(tr);){if(R(tr,ti))return tr;tr=A(tr)}return null}function A(tr){var ti=tr.parentNode;if(ta.docFrag(ti))for(;(ti=ti.host)&&ta.docFrag(ti););return ti}function R(tr,ta){return to!==ti&&(ta=ta.replace(/\/deep\//g," ")),tr[tf.prefixedMatchesSelector](ta)}var C=function(tr){return tr.parentNode||tr.host};function j(tr,ti){for(var to,ta=[],ts=tr;(to=C(ts))&&ts!==ti&&to!==ts.ownerDocument;)ta.unshift(ts),ts=to;return ta}function F(tr,ti,to){for(;ta.element(tr);){if(R(tr,ti))return!0;if((tr=A(tr))===to)return R(tr,ti)}return!1}function X(tr){return tr.correspondingUseElement||tr}function Y(tr){var ti=tr instanceof tu.SVGElement?tr.getBoundingClientRect():tr.getClientRects()[0];return ti&&{left:ti.left,right:ti.right,top:ti.top,bottom:ti.bottom,width:ti.width||ti.right-ti.left,height:ti.height||ti.bottom-ti.top}}function L(tr){var ti,ta=Y(tr);if(!tf.isIOS7&&ta){var ts={x:(ti=(ti=y(tr))||to).scrollX||ti.document.documentElement.scrollLeft,y:ti.scrollY||ti.document.documentElement.scrollTop};ta.left+=ts.x,ta.right+=ts.x,ta.top+=ts.y,ta.bottom+=ts.y}return ta}function q(tr){for(var ti=[];tr;)ti.push(tr),tr=A(tr);return ti}function B(tr){return!!ta.string(tr)&&(tu.document.querySelector(tr),!0)}function V(tr,ti){for(var to in ti)tr[to]=ti[to];return tr}function W(tr,ti,to){return"parent"===tr?A(to):"self"===tr?ti.getRect(to):z(to,tr)}function G(tr,ti,to,ts){var tc=tr;return ta.string(tc)?tc=W(tc,ti,to):ta.func(tc)&&(tc=tc.apply(void 0,ts)),ta.element(tc)&&(tc=L(tc)),tc}function N(tr){return tr&&{x:"x"in tr?tr.x:tr.left,y:"y"in tr?tr.y:tr.top}}function U(tr){return!tr||"x"in tr&&"y"in tr||((tr=V({},tr)).x=tr.left||0,tr.y=tr.top||0,tr.width=tr.width||(tr.right||0)-tr.x,tr.height=tr.height||(tr.bottom||0)-tr.y),tr}function H(tr,ti,to){tr.left&&(ti.left+=to.x),tr.right&&(ti.right+=to.x),tr.top&&(ti.top+=to.y),tr.bottom&&(ti.bottom+=to.y),ti.width=ti.right-ti.left,ti.height=ti.bottom-ti.top}function K(tr,ti,to){var ta=to&&tr.options[to];return N(G(ta&&ta.origin||tr.options.origin,tr,ti,[tr&&ti]))||{x:0,y:0}}function $(tr,ti){var to=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(tr){return!0},ts=arguments.length>3?arguments[3]:void 0;if(ts=ts||{},ta.string(tr)&&-1!==tr.search(" ")&&(tr=J(tr)),ta.array(tr))return tr.forEach(function(tr){return $(tr,ti,to,ts)}),ts;if(ta.object(tr)&&(ti=tr,tr=""),ta.func(ti)&&to(tr))ts[tr]=ts[tr]||[],ts[tr].push(ti);else if(ta.array(ti))for(var tc=0,tl=ti;tc<tl.length;tc++){var tu=tl[tc];$(tr,tu,to,ts)}else if(ta.object(ti))for(var tp in ti)$(J(tp).map(function(ti){return"".concat(tr).concat(ti)}),ti[tp],to,ts);return ts}function J(tr){return tr.trim().split(/ +/)}var Q=function(tr,ti){return Math.sqrt(tr*tr+ti*ti)},td=["webkit","moz"];function tt(tr,ti){tr.__set||(tr.__set={});var n=function(to){if(td.some(function(tr){return 0===to.indexOf(tr)}))return 1;"function"!=typeof tr[to]&&"__set"!==to&&Object.defineProperty(tr,to,{get:function(){return to in tr.__set?tr.__set[to]:tr.__set[to]=ti[to]},set:function(ti){tr.__set[to]=ti},configurable:!0})};for(var to in ti)n(to);return tr}function et(tr,ti){tr.page=tr.page||{},tr.page.x=ti.page.x,tr.page.y=ti.page.y,tr.client=tr.client||{},tr.client.x=ti.client.x,tr.client.y=ti.client.y,tr.timeStamp=ti.timeStamp}function nt(tr){tr.page.x=0,tr.page.y=0,tr.client.x=0,tr.client.y=0}function rt(tr){return tr instanceof tu.Event||tr instanceof tu.Touch}function it(tr,ti,to){return tr=tr||"page",(to=to||{}).x=ti[tr+"X"],to.y=ti[tr+"Y"],to}function ot(tr,ti){return ti=ti||{x:0,y:0},tf.isOperaMobile&&rt(tr)?(it("screen",tr,ti),ti.x+=window.scrollX,ti.y+=window.scrollY):it("page",tr,ti),ti}function at(tr){return ta.number(tr.pointerId)?tr.pointerId:tr.identifier}function st(tr,ti,to){var ta=ti.length>1?lt(ti):ti[0];ot(ta,tr.page),function(tr,ti){ti=ti||{},tf.isOperaMobile&&rt(tr)?it("screen",tr,ti):it("client",tr,ti)}(ta,tr.client),tr.timeStamp=to}function ct(tr){var ti=[];return ta.array(tr)?(ti[0]=tr[0],ti[1]=tr[1]):"touchend"===tr.type?1===tr.touches.length?(ti[0]=tr.touches[0],ti[1]=tr.changedTouches[0]):0===tr.touches.length&&(ti[0]=tr.changedTouches[0],ti[1]=tr.changedTouches[1]):(ti[0]=tr.touches[0],ti[1]=tr.touches[1]),ti}function lt(tr){for(var ti={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},to=0;to<tr.length;to++){var ta=tr[to];for(var ts in ti)ti[ts]+=ta[ts]}for(var tc in ti)ti[tc]/=tr.length;return ti}function ut(tr){if(!tr.length)return null;var ti=ct(tr),to=Math.min(ti[0].pageX,ti[1].pageX),ta=Math.min(ti[0].pageY,ti[1].pageY),ts=Math.max(ti[0].pageX,ti[1].pageX),tc=Math.max(ti[0].pageY,ti[1].pageY);return{x:to,y:ta,left:to,top:ta,right:ts,bottom:tc,width:ts-to,height:tc-ta}}function pt(tr,ti){var to=ti+"X",ta=ti+"Y",ts=ct(tr);return Q(ts[0][to]-ts[1][to],ts[0][ta]-ts[1][ta])}function ft(tr,ti){var to=ti+"X",ta=ti+"Y",ts=ct(tr),tc=ts[1][to]-ts[0][to];return 180*Math.atan2(ts[1][ta]-ts[0][ta],tc)/Math.PI}function dt(tr){return ta.string(tr.pointerType)?tr.pointerType:ta.number(tr.pointerType)?[void 0,void 0,"touch","pen","mouse"][tr.pointerType]:/touch/.test(tr.type||"")||tr instanceof tu.Touch?"touch":"mouse"}function ht(tr){var ti=ta.func(tr.composedPath)?tr.composedPath():tr.path;return[X(ti?ti[0]:tr.target),X(tr.currentTarget)]}var th=function(){function t(tr){r(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=tr}return o(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(th.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var gt=function(tr,ti){for(var to=0;to<ti.length;to++){var ta=ti[to];tr.push(ta)}return tr},mt=function(tr){return gt([],tr)},yt=function(tr,ti){for(var to=0;to<tr.length;to++)if(ti(tr[to],to,tr))return to;return -1},bt=function(tr,ti){return tr[yt(tr,ti)]},tv=function(tr){s(n,tr);var ti=p(n);function n(tr,to,ta){r(this,n),(ts=ti.call(this,to._interaction)).dropzone=void 0,ts.dragEvent=void 0,ts.relatedTarget=void 0,ts.draggable=void 0,ts.propagationStopped=!1,ts.immediatePropagationStopped=!1;var ts,tc="dragleave"===ta?tr.prev:tr.cur,tl=tc.element,tu=tc.dropzone;return ts.type=ta,ts.target=tl,ts.currentTarget=tl,ts.dropzone=tu,ts.dragEvent=to,ts.relatedTarget=to.target,ts.draggable=to.interactable,ts.timeStamp=to.timeStamp,ts}return o(n,[{key:"reject",value:function(){var tr=this,ti=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&ti.cur.dropzone===this.dropzone&&ti.cur.element===this.target){if(ti.prev.dropzone=this.dropzone,ti.prev.element=this.target,ti.rejected=!0,ti.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var to=yt(ti.activeDrops,function(ti){var to=ti.dropzone,ta=ti.element;return to===tr.dropzone&&ta===tr.target});ti.activeDrops.splice(to,1);var ta=new n(ti,this.dragEvent,"dropdeactivate");ta.dropzone=this.dropzone,ta.target=this.target,this.dropzone.fire(ta)}else this.dropzone.fire(new n(ti,this.dragEvent,"dragleave"))}}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),n}(th);function wt(tr,ti){for(var to=0,ta=tr.slice();to<ta.length;to++){var ts=ta[to],tc=ts.dropzone,tl=ts.element;ti.dropzone=tc,ti.target=tl,tc.fire(ti),ti.propagationStopped=ti.immediatePropagationStopped=!1}}function Et(tr,ti){for(var to=function(tr,ti){for(var to=[],ts=0,tc=tr.interactables.list;ts<tc.length;ts++){var tl=tc[ts];if(tl.options.drop.enabled){var tu=tl.options.drop.accept;if(!(ta.element(tu)&&tu!==ti||ta.string(tu)&&!R(ti,tu)||ta.func(tu)&&!tu({dropzone:tl,draggableElement:ti})))for(var tp=0,tf=tl.getAllElements();tp<tf.length;tp++){var td=tf[tp];td!==ti&&to.push({dropzone:tl,element:td,rect:tl.getRect(td)})}}}return to}(tr,ti),ts=0;ts<to.length;ts++){var tc=to[ts];tc.rect=tc.dropzone.getRect(tc.element)}return to}function Tt(tr,ti,to){for(var ta=tr.dropState,ts=tr.interactable,tc=tr.element,tl=[],tp=0,tf=ta.activeDrops;tp<tf.length;tp++){var td=tf[tp],th=td.dropzone,tv=td.element,tg=td.rect,tm=th.dropCheck(ti,to,ts,tc,tv,tg);tl.push(tm?tv:null)}var ty=function(tr){for(var ti,to,ta,ts=[],tc=0;tc<tr.length;tc++){var tl=tr[tc],tp=tr[ti];if(tl&&tc!==ti){if(tp){var tf=C(tl),td=C(tp);if(tf!==tl.ownerDocument){if(td!==tl.ownerDocument){if(tf!==td){ts=ts.length?ts:j(tp);var th=void 0;if(tp instanceof tu.HTMLElement&&tl instanceof tu.SVGElement&&!(tl instanceof tu.SVGSVGElement)){if(tl===td)continue;th=tl.ownerSVGElement}else th=tl;for(var tv=j(th,tp.ownerDocument),tg=0;tv[tg]&&tv[tg]===ts[tg];)tg++;var tm=[tv[tg-1],tv[tg],ts[tg]];if(tm[0])for(var ty=tm[0].lastChild;ty;){if(ty===tm[1]){ti=tc,ts=tv;break}if(ty===tm[2])break;ty=ty.previousSibling}}else ta=tp,(parseInt(y(to=tl).getComputedStyle(to).zIndex,10)||0)>=(parseInt(y(ta).getComputedStyle(ta).zIndex,10)||0)&&(ti=tc)}else ti=tc}}else ti=tc}}return ti}(tl);return ta.activeDrops[ty]||null}function St(tr,ti,to){var ta=tr.dropState,ts={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===to.type&&(ts.activate=new tv(ta,to,"dropactivate"),ts.activate.target=null,ts.activate.dropzone=null),"dragend"===to.type&&(ts.deactivate=new tv(ta,to,"dropdeactivate"),ts.deactivate.target=null,ts.deactivate.dropzone=null),ta.rejected||(ta.cur.element!==ta.prev.element&&(ta.prev.dropzone&&(ts.leave=new tv(ta,to,"dragleave"),to.dragLeave=ts.leave.target=ta.prev.element,to.prevDropzone=ts.leave.dropzone=ta.prev.dropzone),ta.cur.dropzone&&(ts.enter=new tv(ta,to,"dragenter"),to.dragEnter=ta.cur.element,to.dropzone=ta.cur.dropzone)),"dragend"===to.type&&ta.cur.dropzone&&(ts.drop=new tv(ta,to,"drop"),to.dropzone=ta.cur.dropzone,to.relatedTarget=ta.cur.element),"dragmove"===to.type&&ta.cur.dropzone&&(ts.move=new tv(ta,to,"dropmove"),to.dropzone=ta.cur.dropzone)),ts}function _t(tr,ti){var to=tr.dropState,ta=to.activeDrops,ts=to.cur,tc=to.prev;ti.leave&&tc.dropzone.fire(ti.leave),ti.enter&&ts.dropzone.fire(ti.enter),ti.move&&ts.dropzone.fire(ti.move),ti.drop&&ts.dropzone.fire(ti.drop),ti.deactivate&&wt(ta,ti.deactivate),to.prev.dropzone=ts.dropzone,to.prev.element=ts.element}function Pt(tr,ti){var to=tr.interaction,ta=tr.iEvent,ts=tr.event;if("dragmove"===ta.type||"dragend"===ta.type){var tc=to.dropState;ti.dynamicDrop&&(tc.activeDrops=Et(ti,to.element));var tl=ta,tu=Tt(to,tl,ts);tc.rejected=tc.rejected&&!!tu&&tu.dropzone===tc.cur.dropzone&&tu.element===tc.cur.element,tc.cur.dropzone=tu&&tu.dropzone,tc.cur.element=tu&&tu.element,tc.events=St(to,0,tl)}}var tg={id:"actions/drop",install:function(tr){var ti=tr.actions,to=tr.interactStatic,ts=tr.Interactable,tl=tr.defaults;tr.usePlugin(tc),ts.prototype.dropzone=function(tr){return function(tr,ti){if(ta.object(ti)){if(tr.options.drop.enabled=!1!==ti.enabled,ti.listeners){var to=$(ti.listeners),ts=Object.keys(to).reduce(function(tr,ti){return tr[/^(enter|leave)/.test(ti)?"drag".concat(ti):/^(activate|deactivate|move)/.test(ti)?"drop".concat(ti):ti]=to[ti],tr},{}),tc=tr.options.drop.listeners;tc&&tr.off(tc),tr.on(ts),tr.options.drop.listeners=ts}return ta.func(ti.ondrop)&&tr.on("drop",ti.ondrop),ta.func(ti.ondropactivate)&&tr.on("dropactivate",ti.ondropactivate),ta.func(ti.ondropdeactivate)&&tr.on("dropdeactivate",ti.ondropdeactivate),ta.func(ti.ondragenter)&&tr.on("dragenter",ti.ondragenter),ta.func(ti.ondragleave)&&tr.on("dragleave",ti.ondragleave),ta.func(ti.ondropmove)&&tr.on("dropmove",ti.ondropmove),/^(pointer|center)$/.test(ti.overlap)?tr.options.drop.overlap=ti.overlap:ta.number(ti.overlap)&&(tr.options.drop.overlap=Math.max(Math.min(1,ti.overlap),0)),"accept"in ti&&(tr.options.drop.accept=ti.accept),"checker"in ti&&(tr.options.drop.checker=ti.checker),tr}return ta.bool(ti)?(tr.options.drop.enabled=ti,tr):tr.options.drop}(this,tr)},ts.prototype.dropCheck=function(tr,ti,to,ts,tc,tl){return function(tr,ti,to,ts,tc,tl,tu){var tp=!1;if(!(tu=tu||tr.getRect(tl)))return!!tr.options.drop.checker&&tr.options.drop.checker(ti,to,tp,tr,tl,ts,tc);var tf=tr.options.drop.overlap;if("pointer"===tf){var td=K(ts,tc,"drag"),th=ot(ti);th.x+=td.x,th.y+=td.y;var tv=th.x>tu.left&&th.x<tu.right,tg=th.y>tu.top&&th.y<tu.bottom;tp=tv&&tg}var tm=ts.getRect(tc);if(tm&&"center"===tf){var ty=tm.left+tm.width/2,tb=tm.top+tm.height/2;tp=ty>=tu.left&&ty<=tu.right&&tb>=tu.top&&tb<=tu.bottom}return tm&&ta.number(tf)&&(tp=Math.max(0,Math.min(tu.right,tm.right)-Math.max(tu.left,tm.left))*Math.max(0,Math.min(tu.bottom,tm.bottom)-Math.max(tu.top,tm.top))/(tm.width*tm.height)>=tf),tr.options.drop.checker&&(tp=tr.options.drop.checker(ti,to,tp,tr,tl,ts,tc)),tp}(this,tr,ti,to,ts,tc,tl)},to.dynamicDrop=function(ti){return ta.bool(ti)?(tr.dynamicDrop=ti,to):tr.dynamicDrop},V(ti.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),ti.methodDict.drop="dropzone",tr.dynamicDrop=!1,tl.actions.drop=tg.defaults},listeners:{"interactions:before-action-start":function(tr){var ti=tr.interaction;"drag"===ti.prepared.name&&(ti.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(tr,ti){var to=tr.interaction,ta=(tr.event,tr.iEvent);if("drag"===to.prepared.name){var ts=to.dropState;ts.activeDrops=[],ts.events={},ts.activeDrops=Et(ti,to.element),ts.events=St(to,0,ta),ts.events.activate&&(wt(ts.activeDrops,ts.events.activate),ti.fire("actions/drop:start",{interaction:to,dragEvent:ta}))}},"interactions:action-move":Pt,"interactions:after-action-move":function(tr,ti){var to=tr.interaction,ta=tr.iEvent;if("drag"===to.prepared.name){var ts=to.dropState;_t(to,ts.events),ti.fire("actions/drop:move",{interaction:to,dragEvent:ta}),ts.events={}}},"interactions:action-end":function(tr,ti){if("drag"===tr.interaction.prepared.name){var to=tr.interaction,ta=tr.iEvent;Pt(tr,ti),_t(to,to.dropState.events),ti.fire("actions/drop:end",{interaction:to,dragEvent:ta})}},"interactions:stop":function(tr){var ti=tr.interaction;if("drag"===ti.prepared.name){var to=ti.dropState;to&&(to.activeDrops=null,to.events=null,to.cur.dropzone=null,to.cur.element=null,to.prev.dropzone=null,to.prev.element=null,to.rejected=!1)}}},getActiveDrops:Et,getDrop:Tt,getDropEvents:St,fireDropEvents:_t,filterEventType:function(tr){return 0===tr.search("drag")||0===tr.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},tm=tg;function Dt(tr){var ti=tr.interaction,to=tr.iEvent,ts=tr.phase;if("gesture"===ti.prepared.name){var tc=ti.pointers.map(function(tr){return tr.pointer}),tl="start"===ts,tu="end"===ts,tp=ti.interactable.options.deltaSource;if(to.touches=[tc[0],tc[1]],tl)to.distance=pt(tc,tp),to.box=ut(tc),to.scale=1,to.ds=0,to.angle=ft(tc,tp),to.da=0,ti.gesture.startDistance=to.distance,ti.gesture.startAngle=to.angle;else if(tu||ti.pointers.length<2){var tf=ti.prevEvent;to.distance=tf.distance,to.box=tf.box,to.scale=tf.scale,to.ds=0,to.angle=tf.angle,to.da=0}else to.distance=pt(tc,tp),to.box=ut(tc),to.scale=to.distance/ti.gesture.startDistance,to.angle=ft(tc,tp),to.ds=to.scale-ti.gesture.scale,to.da=to.angle-ti.gesture.angle;ti.gesture.distance=to.distance,ti.gesture.angle=to.angle,ta.number(to.scale)&&to.scale!==1/0&&!isNaN(to.scale)&&(ti.gesture.scale=to.scale)}}var ty={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(tr){var ti=tr.actions,to=tr.Interactable,ts=tr.defaults;to.prototype.gesturable=function(tr){return ta.object(tr)?(this.options.gesture.enabled=!1!==tr.enabled,this.setPerAction("gesture",tr),this.setOnEvents("gesture",tr),this):ta.bool(tr)?(this.options.gesture.enabled=tr,this):this.options.gesture},ti.map.gesture=ty,ti.methodDict.gesture="gesturable",ts.actions.gesture=ty.defaults},listeners:{"interactions:action-start":Dt,"interactions:action-move":Dt,"interactions:action-end":Dt,"interactions:new":function(tr){tr.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(tr){if(!(tr.interaction.pointers.length<2)){var ti=tr.interactable.options.gesture;if(ti&&ti.enabled)return tr.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(tr){return 0===tr.search("gesture")}},tb=ty;function zt(tr,ti,to,ts,tc,tl,tu){if(!ti)return!1;if(!0===ti){var tp=ta.number(tl.width)?tl.width:tl.right-tl.left,tf=ta.number(tl.height)?tl.height:tl.bottom-tl.top;if(tu=Math.min(tu,Math.abs(("left"===tr||"right"===tr?tp:tf)/2)),tp<0&&("left"===tr?tr="right":"right"===tr&&(tr="left")),tf<0&&("top"===tr?tr="bottom":"bottom"===tr&&(tr="top")),"left"===tr){var td=tp>=0?tl.left:tl.right;return to.x<td+tu}if("top"===tr){var th=tf>=0?tl.top:tl.bottom;return to.y<th+tu}if("right"===tr)return to.x>(tp>=0?tl.right:tl.left)-tu;if("bottom"===tr)return to.y>(tf>=0?tl.bottom:tl.top)-tu}return!!ta.element(ts)&&(ta.element(ti)?ti===ts:F(ts,ti,tc))}function At(tr){var ti=tr.iEvent,to=tr.interaction;if("resize"===to.prepared.name&&to.resizeAxes){var ta=ti;to.interactable.options.resize.square?("y"===to.resizeAxes?ta.delta.x=ta.delta.y:ta.delta.y=ta.delta.x,ta.axes="xy"):(ta.axes=to.resizeAxes,"x"===to.resizeAxes?ta.delta.y=0:"y"===to.resizeAxes&&(ta.delta.x=0))}}var tx,tw,tE={id:"actions/resize",before:["actions/drag"],install:function(tr){var ti=tr.actions,to=tr.browser,ts=tr.Interactable,tc=tr.defaults;tE.cursors=function(tr){return tr.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"}}(to),tE.defaultMargin=to.supportsTouch||to.supportsPointerEvent?20:10,ts.prototype.resizable=function(ti){return function(tr,ti,to){return ta.object(ti)?(tr.options.resize.enabled=!1!==ti.enabled,tr.setPerAction("resize",ti),tr.setOnEvents("resize",ti),ta.string(ti.axis)&&/^x$|^y$|^xy$/.test(ti.axis)?tr.options.resize.axis=ti.axis:null===ti.axis&&(tr.options.resize.axis=to.defaults.actions.resize.axis),ta.bool(ti.preserveAspectRatio)?tr.options.resize.preserveAspectRatio=ti.preserveAspectRatio:ta.bool(ti.square)&&(tr.options.resize.square=ti.square),tr):ta.bool(ti)?(tr.options.resize.enabled=ti,tr):tr.options.resize}(this,ti,tr)},ti.map.resize=tE,ti.methodDict.resize="resizable",tc.actions.resize=tE.defaults},listeners:{"interactions:new":function(tr){tr.interaction.resizeAxes="xy"},"interactions:action-start":function(tr){(function(tr){var ti=tr.iEvent,to=tr.interaction;if("resize"===to.prepared.name&&to.prepared.edges){var ta=ti,ts=to.rect;to._rects={start:V({},ts),corrected:V({},ts),previous:V({},ts),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},ta.edges=to.prepared.edges,ta.rect=to._rects.corrected,ta.deltaRect=to._rects.delta}})(tr),At(tr)},"interactions:action-move":function(tr){(function(tr){var ti=tr.iEvent,to=tr.interaction;if("resize"===to.prepared.name&&to.prepared.edges){var ta=ti,ts=to.interactable.options.resize.invert,tc="reposition"===ts||"negate"===ts,tl=to.rect,tu=to._rects,tp=tu.start,tf=tu.corrected,td=tu.delta,th=tu.previous;if(V(th,tf),tc){if(V(tf,tl),"reposition"===ts){if(tf.top>tf.bottom){var tv=tf.top;tf.top=tf.bottom,tf.bottom=tv}if(tf.left>tf.right){var tg=tf.left;tf.left=tf.right,tf.right=tg}}}else tf.top=Math.min(tl.top,tp.bottom),tf.bottom=Math.max(tl.bottom,tp.top),tf.left=Math.min(tl.left,tp.right),tf.right=Math.max(tl.right,tp.left);for(var tm in tf.width=tf.right-tf.left,tf.height=tf.bottom-tf.top,tf)td[tm]=tf[tm]-th[tm];ta.edges=to.prepared.edges,ta.rect=tf,ta.deltaRect=td}})(tr),At(tr)},"interactions:action-end":function(tr){var ti=tr.iEvent,to=tr.interaction;if("resize"===to.prepared.name&&to.prepared.edges){var ta=ti;ta.edges=to.prepared.edges,ta.rect=to._rects.corrected,ta.deltaRect=to._rects.delta}},"auto-start:check":function(tr){var ti=tr.interaction,to=tr.interactable,ts=tr.element,tc=tr.rect,tl=tr.buttons;if(tc){var tu=V({},ti.coords.cur.page),tp=to.options.resize;if(tp&&tp.enabled&&(!ti.pointerIsDown||!/mouse|pointer/.test(ti.pointerType)||0!=(tl&tp.mouseButtons))){if(ta.object(tp.edges)){var tf={left:!1,right:!1,top:!1,bottom:!1};for(var td in tf)tf[td]=zt(td,tp.edges[td],tu,ti._latestPointer.eventTarget,ts,tc,tp.margin||tE.defaultMargin);tf.left=tf.left&&!tf.right,tf.top=tf.top&&!tf.bottom,(tf.left||tf.right||tf.top||tf.bottom)&&(tr.action={name:"resize",edges:tf})}else{var th="y"!==tp.axis&&tu.x>tc.right-tE.defaultMargin,tv="x"!==tp.axis&&tu.y>tc.bottom-tE.defaultMargin;(th||tv)&&(tr.action={name:"resize",axes:(th?"x":"")+(tv?"y":"")})}return!tr.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(tr){var ti=tr.edges,to=tr.axis,ta=tr.name,ts=tE.cursors,tc=null;if(to)tc=ts[ta+to];else if(ti){for(var tl="",tu=0,tp=["top","bottom","left","right"];tu<tp.length;tu++){var tf=tp[tu];ti[tf]&&(tl+=tf)}tc=ts[tl]}return tc},filterEventType:function(tr){return 0===tr.search("resize")},defaultMargin:null},t_=tE,tS={id:"actions",install:function(tr){tr.usePlugin(tb),tr.usePlugin(t_),tr.usePlugin(tc),tr.usePlugin(tm)}},tT=0,tk={request:function(tr){return tx(tr)},cancel:function(tr){return tw(tr)},init:function(tr){if(tx=tr.requestAnimationFrame,tw=tr.cancelAnimationFrame,!tx)for(var ti=["ms","moz","webkit","o"],to=0;to<ti.length;to++){var ta=ti[to];tx=tr["".concat(ta,"RequestAnimationFrame")],tw=tr["".concat(ta,"CancelAnimationFrame")]||tr["".concat(ta,"CancelRequestAnimationFrame")]}tx=tx&&tx.bind(tr),tw=tw&&tw.bind(tr),tx||(tx=function(ti){var to=Date.now(),ta=Math.max(0,16-(to-tT)),ts=tr.setTimeout(function(){ti(to+ta)},ta);return tT=to+ta,ts},tw=function(tr){return clearTimeout(tr)})}},tO={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(tr){tO.isScrolling=!0,tk.cancel(tO.i),tr.autoScroll=tO,tO.interaction=tr,tO.prevTime=tO.now(),tO.i=tk.request(tO.scroll)},stop:function(){tO.isScrolling=!1,tO.interaction&&(tO.interaction.autoScroll=null),tk.cancel(tO.i)},scroll:function(){var tr=tO.interaction,ti=tr.interactable,to=tr.element,ts=tr.prepared.name,tc=ti.options[ts].autoScroll,tl=Bt(tc.container,ti,to),tu=tO.now(),tp=(tu-tO.prevTime)/1e3,tf=tc.speed*tp;if(tf>=1){var td={x:tO.x*tf,y:tO.y*tf};if(td.x||td.y){var th=Vt(tl);ta.window(tl)?tl.scrollBy(td.x,td.y):tl&&(tl.scrollLeft+=td.x,tl.scrollTop+=td.y);var tv=Vt(tl),tg={x:tv.x-th.x,y:tv.y-th.y};(tg.x||tg.y)&&ti.fire({type:"autoscroll",target:to,interactable:ti,delta:tg,interaction:tr,container:tl})}tO.prevTime=tu}tO.isScrolling&&(tk.cancel(tO.i),tO.i=tk.request(tO.scroll))},check:function(tr,ti){var to;return null==(to=tr.options[ti].autoScroll)?void 0:to.enabled},onInteractionMove:function(tr){var ti=tr.interaction,to=tr.pointer;if(ti.interacting()&&tO.check(ti.interactable,ti.prepared.name)){if(ti.simulation)tO.x=tO.y=0;else{var ts,tc,tl,tu,tp=ti.interactable,tf=ti.element,td=ti.prepared.name,th=tp.options[td].autoScroll,tv=Bt(th.container,tp,tf);if(ta.window(tv))tu=to.clientX<tO.margin,ts=to.clientY<tO.margin,tc=to.clientX>tv.innerWidth-tO.margin,tl=to.clientY>tv.innerHeight-tO.margin;else{var tg=Y(tv);tu=to.clientX<tg.left+tO.margin,ts=to.clientY<tg.top+tO.margin,tc=to.clientX>tg.right-tO.margin,tl=to.clientY>tg.bottom-tO.margin}tO.x=tc?1:tu?-1:0,tO.y=tl?1:ts?-1:0,tO.isScrolling||(tO.margin=th.margin,tO.speed=th.speed,tO.start(ti))}}}};function Bt(tr,ti,to){return(ta.string(tr)?W(tr,ti,to):tr)||y(to)}function Vt(tr){return ta.window(tr)&&(tr=window.document.body),{x:tr.scrollLeft,y:tr.scrollTop}}var tP={id:"auto-scroll",install:function(tr){var ti=tr.defaults,to=tr.actions;tr.autoScroll=tO,tO.now=function(){return tr.now()},to.phaselessTypes.autoscroll=!0,ti.perAction.autoScroll=tO.defaults},listeners:{"interactions:new":function(tr){tr.interaction.autoScroll=null},"interactions:destroy":function(tr){tr.interaction.autoScroll=null,tO.stop(),tO.interaction&&(tO.interaction=null)},"interactions:stop":tO.stop,"interactions:action-move":function(tr){return tO.onInteractionMove(tr)}}};function Nt(tr,ti){var ta=!1;return function(){return ta||(to.console.warn(ti),ta=!0),tr.apply(this,arguments)}}function Ut(tr,ti){return tr.name=ti.name,tr.axis=ti.axis,tr.edges=ti.edges,tr}function Ht(tr){return ta.bool(tr)?(this.options.styleCursor=tr,this):null===tr?(delete this.options.styleCursor,this):this.options.styleCursor}function Kt(tr){return ta.func(tr)?(this.options.actionChecker=tr,this):null===tr?(delete this.options.actionChecker,this):this.options.actionChecker}var tM={id:"auto-start/interactableMethods",install:function(tr){var ti=tr.Interactable;ti.prototype.getAction=function(ti,to,ta,ts){var tc=function(tr,ti,to,ta,ts){var tc=tr.getRect(ta),tl={action:null,interactable:tr,interaction:to,element:ta,rect:tc,buttons:ti.buttons||({0:1,1:4,3:8,4:16})[ti.button]};return ts.fire("auto-start:check",tl),tl.action}(this,to,ta,ts,tr);return this.options.actionChecker?this.options.actionChecker(ti,to,tc,this,ts,ta):tc},ti.prototype.ignoreFrom=Nt(function(tr){return this._backCompatOption("ignoreFrom",tr)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),ti.prototype.allowFrom=Nt(function(tr){return this._backCompatOption("allowFrom",tr)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),ti.prototype.actionChecker=Kt,ti.prototype.styleCursor=Ht}};function Jt(tr,ti,to,ta,ts){return ti.testIgnoreAllow(ti.options[tr.name],to,ta)&&ti.options[tr.name].enabled&&ee(ti,to,tr,ts)?tr:null}function Qt(tr,ti,to,ta,ts,tc,tl){for(var tu=0,tp=ta.length;tu<tp;tu++){var tf=ta[tu],td=ts[tu],th=tf.getAction(ti,to,tr,td);if(th){var tv=Jt(th,tf,td,tc,tl);if(tv)return{action:tv,interactable:tf,element:td}}}return{action:null,interactable:null,element:null}}function Zt(tr,ti,to,ts,tc){var tl=[],tu=[],tp=ts;function c(tr){tl.push(tr),tu.push(tp)}for(;ta.element(tp);){tl=[],tu=[],tc.interactables.forEachMatch(tp,c);var tf=Qt(tr,ti,to,tl,tu,ts,tc);if(tf.action&&!tf.interactable.options[tf.action.name].manualStart)return tf;tp=A(tp)}return{action:null,interactable:null,element:null}}function te(tr,ti,to){var ta=ti.action,ts=ti.interactable,tc=ti.element;ta=ta||{name:null},tr.interactable=ts,tr.element=tc,Ut(tr.prepared,ta),tr.rect=ts&&ta.name?ts.getRect(tc):null,ie(tr,to),to.fire("autoStart:prepared",{interaction:tr})}function ee(tr,ti,to,ta){var ts=tr.options,tc=ts[to.name].max,tl=ts[to.name].maxPerElement,tu=ta.autoStart.maxInteractions,tp=0,tf=0,td=0;if(!(tc&&tl&&tu))return!1;for(var th=0,tv=ta.interactions.list;th<tv.length;th++){var tg=tv[th],tm=tg.prepared.name;if(tg.interacting()&&(++tp>=tu||tg.interactable===tr&&((tf+=tm===to.name?1:0)>=tc||tg.element===ti&&(td++,tm===to.name&&td>=tl))))return!1}return tu>0}function ne(tr,ti){return ta.number(tr)?(ti.autoStart.maxInteractions=tr,this):ti.autoStart.maxInteractions}function re(tr,ti,to){var ta=to.autoStart.cursorElement;ta&&ta!==tr&&(ta.style.cursor=""),tr.ownerDocument.documentElement.style.cursor=ti,tr.style.cursor=ti,to.autoStart.cursorElement=ti?tr:null}function ie(tr,ti){var to=tr.interactable,ts=tr.element,tc=tr.prepared;if("mouse"===tr.pointerType&&to&&to.options.styleCursor){var tl="";if(tc.name){var tu=to.options[tc.name].cursorChecker;tl=ta.func(tu)?tu(tc,to,ts,tr._interacting):ti.actions.map[tc.name].getCursor(tc)}re(tr.element,tl||"",ti)}else ti.autoStart.cursorElement&&re(ti.autoStart.cursorElement,"",ti)}var tI={id:"auto-start/base",before:["actions"],install:function(tr){var ti=tr.interactStatic,to=tr.defaults;tr.usePlugin(tM),to.base.actionChecker=null,to.base.styleCursor=!0,V(to.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),ti.maxInteractions=function(ti){return ne(ti,tr)},tr.autoStart={maxInteractions:1/0,withinInteractionLimit:ee,cursorElement:null}},listeners:{"interactions:down":function(tr,ti){var to=tr.interaction,ta=tr.pointer,ts=tr.event,tc=tr.eventTarget;to.interacting()||te(to,Zt(to,ta,ts,tc,ti),ti)},"interactions:move":function(tr,ti){(function(tr,ti){var to=tr.interaction,ta=tr.pointer,ts=tr.event,tc=tr.eventTarget;"mouse"!==to.pointerType||to.pointerIsDown||to.interacting()||te(to,Zt(to,ta,ts,tc,ti),ti)})(tr,ti),function(tr,ti){var to=tr.interaction;if(to.pointerIsDown&&!to.interacting()&&to.pointerWasMoved&&to.prepared.name){ti.fire("autoStart:before-start",tr);var ta=to.interactable,ts=to.prepared.name;ts&&ta&&(ta.options[ts].manualStart||!ee(ta,to.element,to.prepared,ti)?to.stop():(to.start(to.prepared,ta,to.element),ie(to,ti)))}}(tr,ti)},"interactions:stop":function(tr,ti){var to=tr.interaction,ta=to.interactable;ta&&ta.options.styleCursor&&re(to.element,"",ti)}},maxInteractions:ne,withinInteractionLimit:ee,validateAction:Jt},tD={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(tr,ti){var to=tr.interaction,ts=tr.eventTarget,tc=tr.dx,tl=tr.dy;if("drag"===to.prepared.name){var tu=Math.abs(tc),tp=Math.abs(tl),tf=to.interactable.options.drag,td=tf.startAxis,th=tu>tp?"x":tu<tp?"y":"xy";if(to.prepared.axis="start"===tf.lockAxis?th[0]:tf.lockAxis,"xy"!==th&&"xy"!==td&&td!==th){to.prepared.name=null;for(var tv=ts,f=function(tr){if(tr!==to.interactable){var ta=to.interactable.options.drag;if(!ta.manualStart&&tr.testIgnoreAllow(ta,tv,ts)){var tc=tr.getAction(to.downPointer,to.downEvent,to,tv);if(tc&&"drag"===tc.name&&function(tr,ti){if(!ti)return!1;var to=ti.options.drag.startAxis;return"xy"===tr||"xy"===to||to===tr}(th,tr)&&tI.validateAction(tc,tr,tv,ts,ti))return tr}}};ta.element(tv);){var tg=ti.interactables.forEachMatch(tv,f);if(tg){to.prepared.name="drag",to.interactable=tg,to.element=tv;break}tv=A(tv)}}}}}};function ce(tr){var ti=tr.prepared&&tr.prepared.name;if(!ti)return null;var to=tr.interactable.options;return to[ti].hold||to[ti].delay}var tz={id:"auto-start/hold",install:function(tr){var ti=tr.defaults;tr.usePlugin(tI),ti.perAction.hold=0,ti.perAction.delay=0},listeners:{"interactions:new":function(tr){tr.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(tr){var ti=tr.interaction,to=ce(ti);to>0&&(ti.autoStartHoldTimer=setTimeout(function(){ti.start(ti.prepared,ti.interactable,ti.element)},to))},"interactions:move":function(tr){var ti=tr.interaction,to=tr.duplicate;ti.autoStartHoldTimer&&ti.pointerWasMoved&&!to&&(clearTimeout(ti.autoStartHoldTimer),ti.autoStartHoldTimer=null)},"autoStart:before-start":function(tr){var ti=tr.interaction;ce(ti)>0&&(ti.prepared.name=null)}},getHoldDuration:ce},tA={id:"auto-start",install:function(tr){tr.usePlugin(tI),tr.usePlugin(tz),tr.usePlugin(tD)}},fe=function(tr){return/^(always|never|auto)$/.test(tr)?(this.options.preventDefault=tr,this):ta.bool(tr)?(this.options.preventDefault=tr?"always":"never",this):this.options.preventDefault};function de(tr){var ti=tr.interaction,to=tr.event;ti.interactable&&ti.interactable.checkAndPreventDefault(to)}var tC={id:"core/interactablePreventDefault",install:function(tr){var ti=tr.Interactable;ti.prototype.preventDefault=fe,ti.prototype.checkAndPreventDefault=function(ti){return function(tr,ti,to){var ts=tr.options.preventDefault;if("never"!==ts){if("always"!==ts){if(ti.events.supportsPassive&&/^touch(start|move)$/.test(to.type)){var tc=y(to.target).document,tl=ti.getDocOptions(tc);if(!tl||!tl.events||!1!==tl.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(to.type)||ta.element(to.target)&&R(to.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||to.preventDefault()}else to.preventDefault()}}(this,tr,ti)},tr.interactions.docEvents.push({type:"dragstart",listener:function(ti){for(var to=0,ta=tr.interactions.list;to<ta.length;to++){var ts=ta[to];if(ts.element&&(ts.element===ti.target||M(ts.element,ti.target)))return void ts.interactable.checkAndPreventDefault(ti)}}})},listeners:["down","move","up","cancel"].reduce(function(tr,ti){return tr["interactions:".concat(ti)]=de,tr},{})};function ve(tr,ti){if(ti.phaselessTypes[tr])return!0;for(var to in ti.map)if(0===tr.indexOf(to)&&tr.substr(to.length) in ti.phases)return!0;return!1}function ge(tr){var ti={};for(var to in tr){var ts=tr[to];ta.plainObject(ts)?ti[to]=ge(ts):ta.array(ts)?ti[to]=mt(ts):ti[to]=ts}return ti}var tR=function(){function t(tr){r(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=tr,this.result=ye(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return o(t,[{key:"start",value:function(tr,ti){var to,ta,ts=tr.phase,tc=this.interaction,tl=function(tr){var ti=tr.interactable.options[tr.prepared.name],to=ti.modifiers;return to&&to.length?to:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(tr){var to=ti[tr];return to&&to.enabled&&{options:to,methods:to._methods}}).filter(function(tr){return!!tr})}(tc);this.prepareStates(tl),this.startEdges=V({},tc.edges),this.edges=V({},this.startEdges),this.startOffset=(to=tc.rect,ta=ti,to?{left:ta.x-to.left,top:ta.y-to.top,right:to.right-ta.x,bottom:to.bottom-ta.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var tu=this.fillArg({phase:ts,pageCoords:ti,preEnd:!1});return this.result=ye(),this.startAll(tu),this.result=this.setAll(tu)}},{key:"fillArg",value:function(tr){var ti=this.interaction;return tr.interaction=ti,tr.interactable=ti.interactable,tr.element=ti.element,tr.rect||(tr.rect=ti.rect),tr.edges||(tr.edges=this.startEdges),tr.startOffset=this.startOffset,tr}},{key:"startAll",value:function(tr){for(var ti=0,to=this.states;ti<to.length;ti++){var ta=to[ti];ta.methods.start&&(tr.state=ta,ta.methods.start(tr))}}},{key:"setAll",value:function(tr){var ti=tr.phase,to=tr.preEnd,ta=tr.skipModifiers,ts=tr.rect,tc=tr.edges;tr.coords=V({},tr.pageCoords),tr.rect=V({},ts),tr.edges=V({},tc);for(var tl=ta?this.states.slice(ta):this.states,tu=ye(tr.coords,tr.rect),tp=0;tp<tl.length;tp++){var tf,td=tl[tp],th=td.options,tv=V({},tr.coords),tg=null;null!=(tf=td.methods)&&tf.set&&this.shouldDo(th,to,ti)&&(tr.state=td,tg=td.methods.set(tr),H(tr.edges,tr.rect,{x:tr.coords.x-tv.x,y:tr.coords.y-tv.y})),tu.eventProps.push(tg)}V(this.edges,tr.edges),tu.delta.x=tr.coords.x-tr.pageCoords.x,tu.delta.y=tr.coords.y-tr.pageCoords.y,tu.rectDelta.left=tr.rect.left-ts.left,tu.rectDelta.right=tr.rect.right-ts.right,tu.rectDelta.top=tr.rect.top-ts.top,tu.rectDelta.bottom=tr.rect.bottom-ts.bottom;var tm=this.result.coords,ty=this.result.rect;if(tm&&ty){var tb=tu.rect.left!==ty.left||tu.rect.right!==ty.right||tu.rect.top!==ty.top||tu.rect.bottom!==ty.bottom;tu.changed=tb||tm.x!==tu.coords.x||tm.y!==tu.coords.y}return tu}},{key:"applyToInteraction",value:function(tr){var ti=this.interaction,to=tr.phase,ta=ti.coords.cur,ts=ti.coords.start,tc=this.result,tl=this.startDelta,tu=tc.delta;"start"===to&&V(this.startDelta,tc.delta);for(var tp=0,tf=[[ts,tl],[ta,tu]];tp<tf.length;tp++){var td=tf[tp],th=td[0],tv=td[1];th.page.x+=tv.x,th.page.y+=tv.y,th.client.x+=tv.x,th.client.y+=tv.y}var tg=this.result.rectDelta,tm=tr.rect||ti.rect;tm.left+=tg.left,tm.right+=tg.right,tm.top+=tg.top,tm.bottom+=tg.bottom,tm.width=tm.right-tm.left,tm.height=tm.bottom-tm.top}},{key:"setAndApply",value:function(tr){var ti=this.interaction,to=tr.phase,ta=tr.preEnd,ts=tr.skipModifiers,tc=this.setAll(this.fillArg({preEnd:ta,phase:to,pageCoords:tr.modifiedCoords||ti.coords.cur.page}));if(this.result=tc,!tc.changed&&(!ts||ts<this.states.length)&&ti.interacting())return!1;if(tr.modifiedCoords){var tl=ti.coords.cur.page,tu={x:tr.modifiedCoords.x-tl.x,y:tr.modifiedCoords.y-tl.y};tc.coords.x+=tu.x,tc.coords.y+=tu.y,tc.delta.x+=tu.x,tc.delta.y+=tu.y}this.applyToInteraction(tr)}},{key:"beforeEnd",value:function(tr){var ti=tr.interaction,to=tr.event,ta=this.states;if(ta&&ta.length){for(var ts=!1,tc=0;tc<ta.length;tc++){var tl=ta[tc];tr.state=tl;var tu=tl.options,tp=tl.methods,tf=tp.beforeEnd&&tp.beforeEnd(tr);if(tf)return this.endResult=tf,!1;ts=ts||!ts&&this.shouldDo(tu,!0,tr.phase,!0)}ts&&ti.move({event:to,preEnd:!0})}}},{key:"stop",value:function(tr){var ti=tr.interaction;if(this.states&&this.states.length){var to=V({states:this.states,interactable:ti.interactable,element:ti.element,rect:null},tr);this.fillArg(to);for(var ta=0,ts=this.states;ta<ts.length;ta++){var tc=ts[ta];to.state=tc,tc.methods.stop&&tc.methods.stop(to)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(tr){this.states=[];for(var ti=0;ti<tr.length;ti++){var to=tr[ti],ta=to.options,ts=to.methods,tc=to.name;this.states.push({options:ta,methods:ts,index:ti,name:tc})}return this.states}},{key:"restoreInteractionCoords",value:function(tr){var ti=tr.interaction,to=ti.coords,ta=ti.rect,ts=ti.modification;if(ts.result){for(var tc=ts.startDelta,tl=ts.result,tu=tl.delta,tp=tl.rectDelta,tf=0,td=[[to.start,tc],[to.cur,tu]];tf<td.length;tf++){var th=td[tf],tv=th[0],tg=th[1];tv.page.x-=tg.x,tv.page.y-=tg.y,tv.client.x-=tg.x,tv.client.y-=tg.y}ta.left-=tp.left,ta.right-=tp.right,ta.top-=tp.top,ta.bottom-=tp.bottom}}},{key:"shouldDo",value:function(tr,ti,to,ta){return!(!tr||!1===tr.enabled||ta&&!tr.endOnly||tr.endOnly&&!ti||"start"===to&&!tr.setStart)}},{key:"copyFrom",value:function(tr){this.startOffset=tr.startOffset,this.startDelta=tr.startDelta,this.startEdges=tr.startEdges,this.edges=tr.edges,this.states=tr.states.map(function(tr){return ge(tr)}),this.result=ye(V({},tr.result.coords),V({},tr.result.rect))}},{key:"destroy",value:function(){for(var tr in this)this[tr]=null}}]),t}();function ye(tr,ti){return{rect:ti,coords:tr,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function be(tr,ti){var to=tr.defaults,ta={start:tr.start,set:tr.set,beforeEnd:tr.beforeEnd,stop:tr.stop},i=function(tr){var ts=tr||{};for(var tc in ts.enabled=!1!==ts.enabled,to)tc in ts||(ts[tc]=to[tc]);var tl={options:ts,methods:ta,name:ti,enable:function(){return ts.enabled=!0,tl},disable:function(){return ts.enabled=!1,tl}};return tl};return ti&&"string"==typeof ti&&(i._defaults=to,i._methods=ta),i}function xe(tr){var ti=tr.iEvent,to=tr.interaction.modification.result;to&&(ti.modifiers=to.eventProps)}var tV={id:"modifiers/base",before:["actions"],install:function(tr){tr.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(tr){var ti=tr.interaction;ti.modification=new tR(ti)},"interactions:before-action-start":function(tr){var ti=tr.interaction,to=tr.interaction.modification;to.start(tr,ti.coords.start.page),ti.edges=to.edges,to.applyToInteraction(tr)},"interactions:before-action-move":function(tr){var ti=tr.interaction,to=ti.modification,ta=to.setAndApply(tr);return ti.edges=to.edges,ta},"interactions:before-action-end":function(tr){var ti=tr.interaction,to=ti.modification,ta=to.beforeEnd(tr);return ti.edges=to.startEdges,ta},"interactions:action-start":xe,"interactions:action-move":xe,"interactions:action-end":xe,"interactions:after-action-start":function(tr){return tr.interaction.modification.restoreInteractionCoords(tr)},"interactions:after-action-move":function(tr){return tr.interaction.modification.restoreInteractionCoords(tr)},"interactions:stop":function(tr){return tr.interaction.modification.stop(tr)}}},tj={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},tF=function(tr){s(n,tr);var ti=p(n);function n(tr,to,ta,ts,tc,tl,tu){r(this,n),(tp=ti.call(this,tr)).relatedTarget=null,tp.screenX=void 0,tp.screenY=void 0,tp.button=void 0,tp.buttons=void 0,tp.ctrlKey=void 0,tp.shiftKey=void 0,tp.altKey=void 0,tp.metaKey=void 0,tp.page=void 0,tp.client=void 0,tp.delta=void 0,tp.rect=void 0,tp.x0=void 0,tp.y0=void 0,tp.t0=void 0,tp.dt=void 0,tp.duration=void 0,tp.clientX0=void 0,tp.clientY0=void 0,tp.velocity=void 0,tp.speed=void 0,tp.swipe=void 0,tp.axes=void 0,tp.preEnd=void 0,tc=tc||tr.element;var tp,tf=tr.interactable,td=(tf&&tf.options||tj).deltaSource,th=K(tf,tc,ta),tv="start"===ts,tg="end"===ts,tm=tv?u(tp):tr.prevEvent,ty=tv?tr.coords.start:tg?{page:tm.page,client:tm.client,timeStamp:tr.coords.cur.timeStamp}:tr.coords.cur;return tp.page=V({},ty.page),tp.client=V({},ty.client),tp.rect=V({},tr.rect),tp.timeStamp=ty.timeStamp,tg||(tp.page.x-=th.x,tp.page.y-=th.y,tp.client.x-=th.x,tp.client.y-=th.y),tp.ctrlKey=to.ctrlKey,tp.altKey=to.altKey,tp.shiftKey=to.shiftKey,tp.metaKey=to.metaKey,tp.button=to.button,tp.buttons=to.buttons,tp.target=tc,tp.currentTarget=tc,tp.preEnd=tl,tp.type=tu||ta+(ts||""),tp.interactable=tf,tp.t0=tv?tr.pointers[tr.pointers.length-1].downTime:tm.t0,tp.x0=tr.coords.start.page.x-th.x,tp.y0=tr.coords.start.page.y-th.y,tp.clientX0=tr.coords.start.client.x-th.x,tp.clientY0=tr.coords.start.client.y-th.y,tp.delta=tv||tg?{x:0,y:0}:{x:tp[td].x-tm[td].x,y:tp[td].y-tm[td].y},tp.dt=tr.coords.delta.timeStamp,tp.duration=tp.timeStamp-tp.t0,tp.velocity=V({},tr.coords.velocity[td]),tp.speed=Q(tp.velocity.x,tp.velocity.y),tp.swipe=tg||"inertiastart"===ts?tp.getSwipe():null,tp}return o(n,[{key:"getSwipe",value:function(){var tr=this._interaction;if(tr.prevEvent.speed<600||this.timeStamp-tr.prevEvent.timeStamp>150)return null;var ti=180*Math.atan2(tr.prevEvent.velocityY,tr.prevEvent.velocityX)/Math.PI;ti<0&&(ti+=360);var to=112.5<=ti&&ti<247.5,ta=202.5<=ti&&ti<337.5;return{up:ta,down:!ta&&22.5<=ti&&ti<157.5,left:to,right:!to&&(292.5<=ti||ti<67.5),angle:ti,speed:tr.prevEvent.speed,velocity:{x:tr.prevEvent.velocityX,y:tr.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n}(th);Object.defineProperties(tF.prototype,{pageX:{get:function(){return this.page.x},set:function(tr){this.page.x=tr}},pageY:{get:function(){return this.page.y},set:function(tr){this.page.y=tr}},clientX:{get:function(){return this.client.x},set:function(tr){this.client.x=tr}},clientY:{get:function(){return this.client.y},set:function(tr){this.client.y=tr}},dx:{get:function(){return this.delta.x},set:function(tr){this.delta.x=tr}},dy:{get:function(){return this.delta.y},set:function(tr){this.delta.y=tr}},velocityX:{get:function(){return this.velocity.x},set:function(tr){this.velocity.x=tr}},velocityY:{get:function(){return this.velocity.y},set:function(tr){this.velocity.y=tr}}});var tN=o(function t(tr,ti,to,ta,ts){r(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=tr,this.pointer=ti,this.event=to,this.downTime=ta,this.downTarget=ts}),tU=function(tr){return tr.interactable="",tr.element="",tr.prepared="",tr.pointerIsDown="",tr.pointerWasMoved="",tr._proxy="",tr}({}),tX=function(tr){return tr.start="",tr.move="",tr.end="",tr.stop="",tr.interacting="",tr}({}),tY=0,tG=function(){function t(tr){var ti=this,to=tr.pointerType,ta=tr.scopeFire;r(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Nt(function(tr){this.move(tr)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=tY++,this._scopeFire=ta,this.pointerType=to;var ts=this;this._proxy={};var s=function(tr){Object.defineProperty(ti._proxy,tr,{get:function(){return ts[tr]}})};for(var tc in tU)s(tc);var l=function(tr){Object.defineProperty(ti._proxy,tr,{value:function(){return ts[tr].apply(ts,arguments)}})};for(var tl in tX)l(tl);this._scopeFire("interactions:new",{interaction:this})}return o(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(tr,ti,to){var ta=this.updatePointer(tr,ti,to,!0),ts=this.pointers[ta];this._scopeFire("interactions:down",{pointer:tr,event:ti,eventTarget:to,pointerIndex:ta,pointerInfo:ts,type:"down",interaction:this})}},{key:"start",value:function(tr,ti,to){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===tr.name?2:1)||!ti.options[tr.name].enabled)&&(Ut(this.prepared,tr),this.interactable=ti,this.element=to,this.rect=ti.getRect(to),this.edges=this.prepared.edges?V({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(tr,ti,to){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(tr,ti,to,!1);var ta,ts,tc=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;this.pointerIsDown&&!this.pointerWasMoved&&(ta=this.coords.cur.client.x-this.coords.start.client.x,ts=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Q(ta,ts)>this.pointerMoveTolerance);var tl,tu,tp,tf=this.getPointerIndex(tr),td={pointer:tr,pointerIndex:tf,pointerInfo:this.pointers[tf],event:ti,type:"move",eventTarget:to,dx:ta,dy:ts,duplicate:tc,interaction:this};tc||(tl=this.coords.velocity,tp=Math.max((tu=this.coords.delta).timeStamp/1e3,.001),tl.page.x=tu.page.x/tp,tl.page.y=tu.page.y/tp,tl.client.x=tu.client.x/tp,tl.client.y=tu.client.y/tp,tl.timeStamp=tp),this._scopeFire("interactions:move",td),tc||this.simulation||(this.interacting()&&(td.type=null,this.move(td)),this.pointerWasMoved&&et(this.coords.prev,this.coords.cur))}},{key:"move",value:function(tr){tr&&tr.event||nt(this.coords.delta),(tr=V({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},tr||{})).phase="move",this._doPhase(tr)}},{key:"pointerUp",value:function(tr,ti,to,ta){var ts=this.getPointerIndex(tr);-1===ts&&(ts=this.updatePointer(tr,ti,to,!1));var tc=/cancel$/i.test(ti.type)?"cancel":"up";this._scopeFire("interactions:".concat(tc),{pointer:tr,pointerIndex:ts,pointerInfo:this.pointers[ts],event:ti,eventTarget:to,type:tc,curEventTarget:ta,interaction:this}),this.simulation||this.end(ti),this.removePointer(tr,ti)}},{key:"documentBlur",value:function(tr){this.end(tr),this._scopeFire("interactions:blur",{event:tr,type:"blur",interaction:this})}},{key:"end",value:function(tr){var ti;this._ending=!0,tr=tr||this._latestPointer.event,this.interacting()&&(ti=this._doPhase({event:tr,interaction:this,phase:"end"})),this._ending=!1,!0===ti&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(tr){var ti=at(tr);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:yt(this.pointers,function(tr){return tr.id===ti})}},{key:"getPointerInfo",value:function(tr){return this.pointers[this.getPointerIndex(tr)]}},{key:"updatePointer",value:function(tr,ti,to,ta){var ts,tc,tl,tu=at(tr),tp=this.getPointerIndex(tr),tf=this.pointers[tp];return ta=!1!==ta&&(ta||/(down|start)$/i.test(ti.type)),tf?tf.pointer=tr:(tf=new tN(tu,tr,ti,null,null),tp=this.pointers.length,this.pointers.push(tf)),st(this.coords.cur,this.pointers.map(function(tr){return tr.pointer}),this._now()),ts=this.coords.delta,tc=this.coords.prev,tl=this.coords.cur,ts.page.x=tl.page.x-tc.page.x,ts.page.y=tl.page.y-tc.page.y,ts.client.x=tl.client.x-tc.client.x,ts.client.y=tl.client.y-tc.client.y,ts.timeStamp=tl.timeStamp-tc.timeStamp,ta&&(this.pointerIsDown=!0,tf.downTime=this.coords.cur.timeStamp,tf.downTarget=to,tt(this.downPointer,tr),this.interacting()||(et(this.coords.start,this.coords.cur),et(this.coords.prev,this.coords.cur),this.downEvent=ti,this.pointerWasMoved=!1)),this._updateLatestPointer(tr,ti,to),this._scopeFire("interactions:update-pointer",{pointer:tr,event:ti,eventTarget:to,down:ta,pointerInfo:tf,pointerIndex:tp,interaction:this}),tp}},{key:"removePointer",value:function(tr,ti){var to=this.getPointerIndex(tr);if(-1!==to){var ta=this.pointers[to];this._scopeFire("interactions:remove-pointer",{pointer:tr,event:ti,eventTarget:null,pointerIndex:to,pointerInfo:ta,interaction:this}),this.pointers.splice(to,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(tr,ti,to){this._latestPointer.pointer=tr,this._latestPointer.event=ti,this._latestPointer.eventTarget=to}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(tr,ti,to,ta){return new tF(this,tr,this.prepared.name,ti,this.element,to,ta)}},{key:"_fireEvent",value:function(tr){var ti;null==(ti=this.interactable)||ti.fire(tr),(!this.prevEvent||tr.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=tr)}},{key:"_doPhase",value:function(tr){var ti=tr.event,to=tr.phase,ta=tr.preEnd,ts=tr.type,tc=this.rect;if(tc&&"move"===to&&(H(this.edges,tc,this.coords.delta[this.interactable.options.deltaSource]),tc.width=tc.right-tc.left,tc.height=tc.bottom-tc.top),!1===this._scopeFire("interactions:before-action-".concat(to),tr))return!1;var tl=tr.iEvent=this._createPreparedEvent(ti,to,ta,ts);return this._scopeFire("interactions:action-".concat(to),tr),"start"===to&&(this.prevEvent=tl),this._fireEvent(tl),this._scopeFire("interactions:after-action-".concat(to),tr),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Ie(tr){Me(tr.interaction)}function Me(tr){if(!function(tr){return!(!tr.offset.pending.x&&!tr.offset.pending.y)}(tr))return!1;var ti=tr.offset.pending;return Ae(tr.coords.cur,ti),Ae(tr.coords.delta,ti),H(tr.edges,tr.rect,ti),ti.x=0,ti.y=0,!0}function ze(tr){var ti=tr.x,to=tr.y;this.offset.pending.x+=ti,this.offset.pending.y+=to,this.offset.total.x+=ti,this.offset.total.y+=to}function Ae(tr,ti){var to=tr.page,ta=tr.client,ts=ti.x,tc=ti.y;to.x+=ts,to.y+=tc,ta.x+=ts,ta.y+=tc}tX.offsetBy="";var tB={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(tr){tr.Interaction.prototype.offsetBy=ze},listeners:{"interactions:new":function(tr){tr.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(tr){return function(tr){tr.pointerIsDown&&(Ae(tr.coords.cur,tr.offset.total),tr.offset.pending.x=0,tr.offset.pending.y=0)}(tr.interaction)},"interactions:before-action-start":Ie,"interactions:before-action-move":Ie,"interactions:before-action-end":function(tr){var ti=tr.interaction;if(Me(ti))return ti.move({offset:!0}),ti.end(),!1},"interactions:stop":function(tr){var ti=tr.interaction;ti.offset.total.x=0,ti.offset.total.y=0,ti.offset.pending.x=0,ti.offset.pending.y=0}}},tL=function(){function t(tr){r(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=tr}return o(t,[{key:"start",value:function(tr){var ti=this.interaction,to=Fe(ti);if(!to||!to.enabled)return!1;var ta=ti.coords.velocity.client,ts=Q(ta.x,ta.y),tc=this.modification||(this.modification=new tR(ti));if(tc.copyFrom(ti.modification),this.t0=ti._now(),this.allowResume=to.allowResume,this.v0=ts,this.currentOffset={x:0,y:0},this.startCoords=ti.coords.cur.page,this.modifierArg=tc.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-ti.coords.cur.timeStamp<50&&ts>to.minSpeed&&ts>to.endSpeed)this.startInertia();else{if(tc.result=tc.setAll(this.modifierArg),!tc.result.changed)return!1;this.startSmoothEnd()}return ti.modification.result.rect=null,ti.offsetBy(this.targetOffset),ti._doPhase({interaction:ti,event:tr,phase:"inertiastart"}),ti.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),ti.modification.result.rect=null,this.active=!0,ti.simulation=this,!0}},{key:"startInertia",value:function(){var tr=this,ti=this.interaction.coords.velocity.client,to=Fe(this.interaction),ta=to.resistance,ts=-Math.log(to.endSpeed/this.v0)/ta;this.targetOffset={x:(ti.x-ts)/ta,y:(ti.y-ts)/ta},this.te=ts,this.lambda_v0=ta/this.v0,this.one_ve_v0=1-to.endSpeed/this.v0;var tc=this.modification,tl=this.modifierArg;tl.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},tc.result=tc.setAll(tl),tc.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+tc.result.delta.x,y:this.targetOffset.y+tc.result.delta.y}),this.onNextFrame(function(){return tr.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var tr=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return tr.smoothEndTick()})}},{key:"onNextFrame",value:function(tr){var ti=this;this.timeout=tk.request(function(){ti.active&&tr()})}},{key:"inertiaTick",value:function(){var tr,ti,to,ta,ts,tc,tl,tu=this,tp=this.interaction,tf=Fe(tp).resistance,td=(tp._now()-this.t0)/1e3;if(td<this.te){var th,tv=1-(Math.exp(-tf*td)-this.lambda_v0)/this.one_ve_v0;this.isModified?(tr=0,ti=0,to=this.targetOffset.x,ta=this.targetOffset.y,ts=this.modifiedOffset.x,tc=this.modifiedOffset.y,th={x:Ye(tl=tv,tr,to,ts),y:Ye(tl,ti,ta,tc)}):th={x:this.targetOffset.x*tv,y:this.targetOffset.y*tv};var tg={x:th.x-this.currentOffset.x,y:th.y-this.currentOffset.y};this.currentOffset.x+=tg.x,this.currentOffset.y+=tg.y,tp.offsetBy(tg),tp.move(),this.onNextFrame(function(){return tu.inertiaTick()})}else tp.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var tr=this,ti=this.interaction,to=ti._now()-this.t0,ta=Fe(ti).smoothEndDuration;if(to<ta){var ts={x:Le(to,0,this.targetOffset.x,ta),y:Le(to,0,this.targetOffset.y,ta)},tc={x:ts.x-this.currentOffset.x,y:ts.y-this.currentOffset.y};this.currentOffset.x+=tc.x,this.currentOffset.y+=tc.y,ti.offsetBy(tc),ti.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return tr.smoothEndTick()})}else ti.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(tr){var ti=tr.pointer,to=tr.event,ta=tr.eventTarget,ts=this.interaction;ts.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),ts.updatePointer(ti,to,ta,!0),ts._doPhase({interaction:ts,event:to,phase:"resume"}),et(ts.coords.prev,ts.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,tk.cancel(this.timeout)}}]),t}();function Fe(tr){var ti=tr.interactable,to=tr.prepared;return ti&&ti.options&&to.name&&ti.options[to.name].inertia}function Ye(tr,ti,to,ta){var ts=1-tr;return ts*ts*ti+2*ts*tr*to+tr*tr*ta}function Le(tr,ti,to,ta){return-to*(tr/=ta)*(tr-2)+ti}var tW={id:"inertia",before:["modifiers","actions"],install:function(tr){var ti=tr.defaults;tr.usePlugin(tB),tr.usePlugin(tV),tr.actions.phases.inertiastart=!0,tr.actions.phases.resume=!0,ti.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(tr){var ti=tr.interaction;ti.inertia=new tL(ti)},"interactions:before-action-end":function(tr){var ti=tr.interaction,to=tr.event;return(!ti._interacting||ti.simulation||!ti.inertia.start(to))&&null},"interactions:down":function(tr){var ti=tr.interaction,to=tr.eventTarget,ts=ti.inertia;if(ts.active)for(var tc=to;ta.element(tc);){if(tc===ti.element){ts.resume(tr);break}tc=A(tc)}},"interactions:stop":function(tr){var ti=tr.interaction.inertia;ti.active&&ti.stop()},"interactions:before-action-resume":function(tr){var ti=tr.interaction.modification;ti.stop(tr),ti.start(tr,tr.interaction.coords.cur.page),ti.applyToInteraction(tr)},"interactions:before-action-inertiastart":function(tr){return tr.interaction.modification.setAndApply(tr)},"interactions:action-resume":xe,"interactions:action-inertiastart":xe,"interactions:after-action-inertiastart":function(tr){return tr.interaction.modification.restoreInteractionCoords(tr)},"interactions:after-action-resume":function(tr){return tr.interaction.modification.restoreInteractionCoords(tr)}}};function Be(tr,ti){for(var to=0;to<ti.length;to++){var ta=ti[to];if(tr.immediatePropagationStopped)break;ta(tr)}}var t$=function(){function t(tr){r(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=V({},tr||{})}return o(t,[{key:"fire",value:function(tr){var ti,to=this.global;(ti=this.types[tr.type])&&Be(tr,ti),!tr.propagationStopped&&to&&(ti=to[tr.type])&&Be(tr,ti)}},{key:"on",value:function(tr,ti){var to=$(tr,ti);for(tr in to)this.types[tr]=gt(this.types[tr]||[],to[tr])}},{key:"off",value:function(tr,ti){var to=$(tr,ti);for(tr in to){var ta=this.types[tr];if(ta&&ta.length)for(var ts=0,tc=to[tr];ts<tc.length;ts++){var tl=tc[ts],tu=ta.indexOf(tl);-1!==tu&&ta.splice(tu,1)}}}},{key:"getRect",value:function(tr){return null}}]),t}(),tq=function(){function t(tr){r(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=tr,tt(this,tr)}return o(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function Ge(tr){return ta.object(tr)?{capture:!!tr.capture,passive:!!tr.passive}:{capture:!!tr,passive:!1}}function Ne(tr,ti){return tr===ti||("boolean"==typeof tr?!!ti.capture===tr&&!1==!!ti.passive:!!tr.capture==!!ti.capture&&!!tr.passive==!!ti.passive)}var tK={id:"events",install:function(tr){var ti,to=[],ts={},tc=[],tl={add:a,remove:s,addDelegate:function(tr,ti,to,ta,tl){var tu=Ge(tl);if(!ts[to]){ts[to]=[];for(var tp=0;tp<tc.length;tp++){var tf=tc[tp];a(tf,to,c),a(tf,to,l,!0)}}var td=ts[to],th=bt(td,function(to){return to.selector===tr&&to.context===ti});th||(th={selector:tr,context:ti,listeners:[]},td.push(th)),th.listeners.push({func:ta,options:tu})},removeDelegate:function(tr,ti,to,ta,tc){var tl,tu=Ge(tc),tp=ts[to],tf=!1;if(tp)for(tl=tp.length-1;tl>=0;tl--){var td=tp[tl];if(td.selector===tr&&td.context===ti){for(var th=td.listeners,tv=th.length-1;tv>=0;tv--){var tg=th[tv];if(tg.func===ta&&Ne(tg.options,tu)){th.splice(tv,1),th.length||(tp.splice(tl,1),s(ti,to,c),s(ti,to,l,!0)),tf=!0;break}}if(tf)break}}},delegateListener:c,delegateUseCapture:l,delegatedEvents:ts,documents:tc,targets:to,supportsOptions:!1,supportsPassive:!1};function a(tr,ti,ta,ts){if(tr.addEventListener){var tc=Ge(ts),tu=bt(to,function(ti){return ti.eventTarget===tr});tu||(tu={eventTarget:tr,events:{}},to.push(tu)),tu.events[ti]||(tu.events[ti]=[]),bt(tu.events[ti],function(tr){return tr.func===ta&&Ne(tr.options,tc)})||(tr.addEventListener(ti,ta,tl.supportsOptions?tc:tc.capture),tu.events[ti].push({func:ta,options:tc}))}}function s(tr,ti,ta,ts){if(tr.addEventListener&&tr.removeEventListener){var tc=yt(to,function(ti){return ti.eventTarget===tr}),tu=to[tc];if(tu&&tu.events){if("all"!==ti){var tp=!1,tf=tu.events[ti];if(tf){if("all"===ta){for(var td=tf.length-1;td>=0;td--){var th=tf[td];s(tr,ti,th.func,th.options)}return}for(var tv=Ge(ts),tg=0;tg<tf.length;tg++){var tm=tf[tg];if(tm.func===ta&&Ne(tm.options,tv)){tr.removeEventListener(ti,ta,tl.supportsOptions?tv:tv.capture),tf.splice(tg,1),0===tf.length&&(delete tu.events[ti],tp=!0);break}}}tp&&!Object.keys(tu.events).length&&to.splice(tc,1)}else for(ti in tu.events)tu.events.hasOwnProperty(ti)&&s(tr,ti,"all")}}}function c(tr,ti){for(var to=Ge(ti),tc=new tq(tr),tl=ts[tr.type],tu=ht(tr)[0],tp=tu;ta.element(tp);){for(var tf=0;tf<tl.length;tf++){var td=tl[tf],th=td.selector,tv=td.context;if(R(tp,th)&&M(tv,tu)&&M(tv,tp)){var tg=td.listeners;tc.currentTarget=tp;for(var tm=0;tm<tg.length;tm++){var ty=tg[tm];Ne(ty.options,to)&&ty.func(tc)}}}tp=A(tp)}}function l(tr){return c(tr,!0)}return null==(ti=tr.document)||ti.createElement("div").addEventListener("test",null,{get capture(){return tl.supportsOptions=!0},get passive(){return tl.supportsPassive=!0}}),tr.events=tl,tl}},tH={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(tr){for(var ti=0,to=tH.methodOrder;ti<to.length;ti++){var ta=tH[to[ti]](tr);if(ta)return ta}return null},simulationResume:function(tr){var ti=tr.pointerType,to=tr.eventType,ta=tr.eventTarget,ts=tr.scope;if(!/down|start/i.test(to))return null;for(var tc=0,tl=ts.interactions.list;tc<tl.length;tc++){var tu=tl[tc],tp=ta;if(tu.simulation&&tu.simulation.allowResume&&tu.pointerType===ti)for(;tp;){if(tp===tu.element)return tu;tp=A(tp)}}return null},mouseOrPen:function(tr){var ti,to=tr.pointerId,ta=tr.pointerType,ts=tr.eventType,tc=tr.scope;if("mouse"!==ta&&"pen"!==ta)return null;for(var tl=0,tu=tc.interactions.list;tl<tu.length;tl++){var tp=tu[tl];if(tp.pointerType===ta){if(tp.simulation&&!Ke(tp,to))continue;if(tp.interacting())return tp;ti||(ti=tp)}}if(ti)return ti;for(var tf=0,td=tc.interactions.list;tf<td.length;tf++){var th=td[tf];if(!(th.pointerType!==ta||/down/i.test(ts)&&th.simulation))return th}return null},hasPointer:function(tr){for(var ti=tr.pointerId,to=0,ta=tr.scope.interactions.list;to<ta.length;to++){var ts=ta[to];if(Ke(ts,ti))return ts}return null},idle:function(tr){for(var ti=tr.pointerType,to=0,ta=tr.scope.interactions.list;to<ta.length;to++){var ts=ta[to];if(1===ts.pointers.length){var tc=ts.interactable;if(tc&&(!tc.options.gesture||!tc.options.gesture.enabled))continue}else if(ts.pointers.length>=2)continue;if(!ts.interacting()&&ti===ts.pointerType)return ts}return null}};function Ke(tr,ti){return tr.pointers.some(function(tr){return tr.id===ti})}var tZ=tH,tQ=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Qe(tr,ti){return function(to){var ta=ti.interactions.list,ts=dt(to),tc=ht(to),tl=tc[0],tu=tc[1],tp=[];if(/^touch/.test(to.type)){ti.prevTouchTime=ti.now();for(var td=0,th=to.changedTouches;td<th.length;td++){var tv=th[td],tg={pointer:tv,pointerId:at(tv),pointerType:ts,eventType:to.type,eventTarget:tl,curEventTarget:tu,scope:ti},tm=Ze(tg);tp.push([tg.pointer,tg.eventTarget,tg.curEventTarget,tm])}}else{var ty=!1;if(!tf.supportsPointerEvent&&/mouse/.test(to.type)){for(var tb=0;tb<ta.length&&!ty;tb++)ty="mouse"!==ta[tb].pointerType&&ta[tb].pointerIsDown;ty=ty||ti.now()-ti.prevTouchTime<500||0===to.timeStamp}if(!ty){var tx={pointer:to,pointerId:at(to),pointerType:ts,eventType:to.type,curEventTarget:tu,eventTarget:tl,scope:ti},tw=Ze(tx);tp.push([tx.pointer,tx.eventTarget,tx.curEventTarget,tw])}}for(var tE=0;tE<tp.length;tE++){var t_=tp[tE],tS=t_[0],tT=t_[1],tk=t_[2];t_[3][tr](tS,to,tT,tk)}}}function Ze(tr){var ti=tr.pointerType,to=tr.scope,ta={interaction:tZ.search(tr),searchDetails:tr};return to.fire("interactions:find",ta),ta.interaction||to.interactions.new({pointerType:ti})}function tn(tr,ti){var to=tr.doc,ta=tr.scope,ts=tr.options,tc=ta.interactions.docEvents,tl=ta.events,tu=tl[ti];for(var tp in ta.browser.isIOS&&!ts.events&&(ts.events={passive:!1}),tl.delegatedEvents)tu(to,tp,tl.delegateListener),tu(to,tp,tl.delegateUseCapture,!0);for(var tf=ts&&ts.events,td=0;td<tc.length;td++){var th=tc[td];tu(to,th.type,th.listener,tf)}}var tJ={id:"core/interactions",install:function(tr){for(var ti={},to=0;to<tQ.length;to++){var ta=tQ[to];ti[ta]=Qe(ta,tr)}var ts,tc=tf.pEventTypes;function l(){for(var ti=0,to=tr.interactions.list;ti<to.length;ti++){var ta=to[ti];if(ta.pointerIsDown&&"touch"===ta.pointerType&&!ta._interacting)for(var i=function(){var ti=tc[ts];tr.documents.some(function(tr){return M(tr.doc,ti.downTarget)})||ta.removePointer(ti.pointer,ti.event)},ts=0,tc=ta.pointers;ts<tc.length;ts++)i()}}(ts=tu.PointerEvent?[{type:tc.down,listener:l},{type:tc.down,listener:ti.pointerDown},{type:tc.move,listener:ti.pointerMove},{type:tc.up,listener:ti.pointerUp},{type:tc.cancel,listener:ti.pointerUp}]:[{type:"mousedown",listener:ti.pointerDown},{type:"mousemove",listener:ti.pointerMove},{type:"mouseup",listener:ti.pointerUp},{type:"touchstart",listener:l},{type:"touchstart",listener:ti.pointerDown},{type:"touchmove",listener:ti.pointerMove},{type:"touchend",listener:ti.pointerUp},{type:"touchcancel",listener:ti.pointerUp}]).push({type:"blur",listener:function(ti){for(var to=0,ta=tr.interactions.list;to<ta.length;to++)ta[to].documentBlur(ti)}}),tr.prevTouchTime=0,tr.Interaction=function(ti){s(i,ti);var to=p(i);function i(){return r(this,i),to.apply(this,arguments)}return o(i,[{key:"pointerMoveTolerance",get:function(){return tr.interactions.pointerMoveTolerance},set:function(ti){tr.interactions.pointerMoveTolerance=ti}},{key:"_now",value:function(){return tr.now()}}]),i}(tG),tr.interactions={list:[],new:function(ti){ti.scopeFire=function(ti,to){return tr.fire(ti,to)};var to=new tr.Interaction(ti);return tr.interactions.list.push(to),to},listeners:ti,docEvents:ts,pointerMoveTolerance:1},tr.usePlugin(tC)},listeners:{"scope:add-document":function(tr){return tn(tr,"add")},"scope:remove-document":function(tr){return tn(tr,"remove")},"interactable:unset":function(tr,ti){for(var to=tr.interactable,ta=ti.interactions.list.length-1;ta>=0;ta--){var ts=ti.interactions.list[ta];ts.interactable===to&&(ts.stop(),ti.fire("interactions:destroy",{interaction:ts}),ts.destroy(),ti.interactions.list.length>2&&ti.interactions.list.splice(ta,1))}}},onDocSignal:tn,doOnInteractions:Qe,methodNames:tQ},t0=function(tr){return tr[tr.On=0]="On",tr[tr.Off=1]="Off",tr}(t0||{}),t1=function(){function t(tr,ti,to,ta){r(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new t$,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=ti.actions,this.target=tr,this._context=ti.context||to,this._win=y(B(tr)?this._context:tr),this._doc=this._win.document,this._scopeEvents=ta,this.set(ti)}return o(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(tr,ti){return ta.func(ti.onstart)&&this.on("".concat(tr,"start"),ti.onstart),ta.func(ti.onmove)&&this.on("".concat(tr,"move"),ti.onmove),ta.func(ti.onend)&&this.on("".concat(tr,"end"),ti.onend),ta.func(ti.oninertiastart)&&this.on("".concat(tr,"inertiastart"),ti.oninertiastart),this}},{key:"updatePerActionListeners",value:function(tr,ti,to){var ts,tc=this,tl=null==(ts=this._actions.map[tr])?void 0:ts.filterEventType,a=function(tr){return(null==tl||tl(tr))&&ve(tr,tc._actions)};(ta.array(ti)||ta.object(ti))&&this._onOff(t0.Off,tr,ti,void 0,a),(ta.array(to)||ta.object(to))&&this._onOff(t0.On,tr,to,void 0,a)}},{key:"setPerAction",value:function(tr,ti){var to=this._defaults;for(var ts in ti){var tc=ts,tl=this.options[tr],tu=ti[tc];"listeners"===tc&&this.updatePerActionListeners(tr,tl.listeners,tu),ta.array(tu)?tl[tc]=mt(tu):ta.plainObject(tu)?(tl[tc]=V(tl[tc]||{},ge(tu)),ta.object(to.perAction[tc])&&"enabled"in to.perAction[tc]&&(tl[tc].enabled=!1!==tu.enabled)):ta.bool(tu)&&ta.object(to.perAction[tc])?tl[tc].enabled=tu:tl[tc]=tu}}},{key:"getRect",value:function(tr){return tr=tr||(ta.element(this.target)?this.target:null),ta.string(this.target)&&(tr=tr||this._context.querySelector(this.target)),L(tr)}},{key:"rectChecker",value:function(tr){var ti=this;return ta.func(tr)?(this.getRect=function(to){var ta=V({},tr.apply(ti,to));return"width"in ta||(ta.width=ta.right-ta.left,ta.height=ta.bottom-ta.top),ta},this):null===tr?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(tr,ti){if(B(ti)||ta.object(ti)){for(var to in this.options[tr]=ti,this._actions.map)this.options[to][tr]=ti;return this}return this.options[tr]}},{key:"origin",value:function(tr){return this._backCompatOption("origin",tr)}},{key:"deltaSource",value:function(tr){return"page"===tr||"client"===tr?(this.options.deltaSource=tr,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var tr=this.target;return ta.string(tr)?Array.from(this._context.querySelectorAll(tr)):ta.func(tr)&&tr.getAllElements?tr.getAllElements():ta.element(tr)?[tr]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(tr){return this._context===tr.ownerDocument||M(this._context,tr)}},{key:"testIgnoreAllow",value:function(tr,ti,to){return!this.testIgnore(tr.ignoreFrom,ti,to)&&this.testAllow(tr.allowFrom,ti,to)}},{key:"testAllow",value:function(tr,ti,to){return!tr||!!ta.element(to)&&(ta.string(tr)?F(to,tr,ti):!!ta.element(tr)&&M(tr,to))}},{key:"testIgnore",value:function(tr,ti,to){return!(!tr||!ta.element(to))&&(ta.string(tr)?F(to,tr,ti):!!ta.element(tr)&&M(tr,to))}},{key:"fire",value:function(tr){return this.events.fire(tr),this}},{key:"_onOff",value:function(tr,ti,to,ts,tc){ta.object(ti)&&!ta.array(ti)&&(ts=to,to=null);var tl=$(ti,to,tc);for(var tu in tl){"wheel"===tu&&(tu=tf.wheelEvent);for(var tp=0,td=tl[tu];tp<td.length;tp++){var th=td[tp];ve(tu,this._actions)?this.events[tr===t0.On?"on":"off"](tu,th):ta.string(this.target)?this._scopeEvents[tr===t0.On?"addDelegate":"removeDelegate"](this.target,this._context,tu,th,ts):this._scopeEvents[tr===t0.On?"add":"remove"](this.target,tu,th,ts)}}return this}},{key:"on",value:function(tr,ti,to){return this._onOff(t0.On,tr,ti,to)}},{key:"off",value:function(tr,ti,to){return this._onOff(t0.Off,tr,ti,to)}},{key:"set",value:function(tr){var ti=this._defaults;for(var to in ta.object(tr)||(tr={}),this.options=ge(ti.base),this._actions.methodDict){var ts=to,tc=this._actions.methodDict[ts];this.options[ts]={},this.setPerAction(ts,V(V({},ti.perAction),ti.actions[ts])),this[tc](tr[ts])}for(var tl in tr)"getRect"!==tl?ta.func(this[tl])&&this[tl](tr[tl]):this.rectChecker(tr.getRect);return this}},{key:"unset",value:function(){if(ta.string(this.target))for(var tr in this._scopeEvents.delegatedEvents)for(var ti=this._scopeEvents.delegatedEvents[tr],to=ti.length-1;to>=0;to--){var ts=ti[to],tc=ts.selector,tl=ts.context,tu=ts.listeners;tc===this.target&&tl===this._context&&ti.splice(to,1);for(var tp=tu.length-1;tp>=0;tp--)this._scopeEvents.removeDelegate(this.target,this._context,tr,tu[tp][0],tu[tp][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),t2=function(){function t(tr){var ti=this;r(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=tr,tr.addListeners({"interactable:unset":function(tr){var to=tr.interactable,ts=to.target,tc=ta.string(ts)?ti.selectorMap[ts]:ts[ti.scope.id],tl=yt(tc,function(tr){return tr===to});tc.splice(tl,1)}})}return o(t,[{key:"new",value:function(tr,ti){ti=V(ti||{},{actions:this.scope.actions});var to=new this.scope.Interactable(tr,ti,this.scope.document,this.scope.events);return this.scope.addDocument(to._doc),this.list.push(to),ta.string(tr)?(this.selectorMap[tr]||(this.selectorMap[tr]=[]),this.selectorMap[tr].push(to)):(to.target[this.scope.id]||Object.defineProperty(tr,this.scope.id,{value:[],configurable:!0}),tr[this.scope.id].push(to)),this.scope.fire("interactable:new",{target:tr,options:ti,interactable:to,win:this.scope._win}),to}},{key:"getExisting",value:function(tr,ti){var to=ti&&ti.context||this.scope.document,ts=ta.string(tr),tc=ts?this.selectorMap[tr]:tr[this.scope.id];if(tc)return bt(tc,function(ti){return ti._context===to&&(ts||ti.inContext(tr))})}},{key:"forEachMatch",value:function(tr,ti){for(var to=0,ts=this.list;to<ts.length;to++){var tc=ts[to],tl=void 0;if((ta.string(tc.target)?ta.element(tr)&&R(tr,tc.target):tr===tc.target)&&tc.inContext(tr)&&(tl=ti(tc)),void 0!==tl)return tl}}}]),t}();function cn(tr){return tr&&tr.replace(/\/.*$/,"")}var t5=new(function(){function t(){var tr=this;r(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=tf,this.defaults=ge(tj),this.Eventable=t$,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(tr){var e=function e(ti,to){var ta=tr.interactables.getExisting(ti,to);return ta||((ta=tr.interactables.new(ti,to)).events.global=e.globalEvents),ta};return e.getPointerAverage=lt,e.getTouchBBox=ut,e.getTouchDistance=pt,e.getTouchAngle=ft,e.getElementRect=L,e.getElementClientRect=Y,e.matchesSelector=R,e.closest=z,e.globalEvents={},e.version="1.10.27",e.scope=tr,e.use=function(tr,ti){return this.scope.usePlugin(tr,ti),this},e.isSet=function(tr,ti){return!!this.scope.interactables.get(tr,ti&&ti.context)},e.on=Nt(function(tr,ti,to){if(ta.string(tr)&&-1!==tr.search(" ")&&(tr=tr.trim().split(/ +/)),ta.array(tr)){for(var ts=0,tc=tr;ts<tc.length;ts++){var tl=tc[ts];this.on(tl,ti,to)}return this}if(ta.object(tr)){for(var tu in tr)this.on(tu,tr[tu],ti);return this}return ve(tr,this.scope.actions)?this.globalEvents[tr]?this.globalEvents[tr].push(ti):this.globalEvents[tr]=[ti]:this.scope.events.add(this.scope.document,tr,ti,{options:to}),this},"The interact.on() method is being deprecated"),e.off=Nt(function(tr,ti,to){if(ta.string(tr)&&-1!==tr.search(" ")&&(tr=tr.trim().split(/ +/)),ta.array(tr)){for(var ts,tc=0,tl=tr;tc<tl.length;tc++){var tu=tl[tc];this.off(tu,ti,to)}return this}if(ta.object(tr)){for(var tp in tr)this.off(tp,tr[tp],ti);return this}return ve(tr,this.scope.actions)?tr in this.globalEvents&&-1!==(ts=this.globalEvents[tr].indexOf(ti))&&this.globalEvents[tr].splice(ts,1):this.scope.events.remove(this.scope.document,tr,ti,to),this},"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return tf.supportsTouch},e.supportsPointerEvent=function(){return tf.supportsPointerEvent},e.stop=function(){for(var tr=0,ti=this.scope.interactions.list;tr<ti.length;tr++)ti[tr].stop();return this},e.pointerMoveTolerance=function(tr){return ta.number(tr)?(this.scope.interactions.pointerMoveTolerance=tr,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(tr,ti){this.scope.addDocument(tr,ti)},e.removeDocument=function(tr){this.scope.removeDocument(tr)},e}(this),this.InteractEvent=tF,this.Interactable=void 0,this.interactables=new t2(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(ti){return tr.removeDocument(ti.target)};var ti=this;this.Interactable=function(tr){s(i,tr);var to=p(i);function i(){return r(this,i),to.apply(this,arguments)}return o(i,[{key:"_defaults",get:function(){return ti.defaults}},{key:"set",value:function(tr){return f(c(i.prototype),"set",this).call(this,tr),ti.fire("interactable:set",{options:tr,interactable:this}),this}},{key:"unset",value:function(){f(c(i.prototype),"unset",this).call(this);var tr=ti.interactables.list.indexOf(this);tr<0||(ti.interactables.list.splice(tr,1),ti.fire("interactable:unset",{interactable:this}))}}]),i}(t1)}return o(t,[{key:"addListeners",value:function(tr,ti){this.listenerMaps.push({id:ti,map:tr})}},{key:"fire",value:function(tr,ti){for(var to=0,ta=this.listenerMaps;to<ta.length;to++){var ts=ta[to].map[tr];if(ts&&!1===ts(ti,this,tr))return!1}}},{key:"init",value:function(tr){return this.isInitialized?this:function(tr,ti){return tr.isInitialized=!0,ta.window(ti)&&m(ti),tu.init(ti),tf.init(ti),tk.init(ti),tr.window=ti,tr.document=ti.document,tr.usePlugin(tJ),tr.usePlugin(tK),tr}(this,tr)}},{key:"pluginIsInstalled",value:function(tr){var ti=tr.id;return ti?!!this._plugins.map[ti]:-1!==this._plugins.list.indexOf(tr)}},{key:"usePlugin",value:function(tr,ti){if(!this.isInitialized||this.pluginIsInstalled(tr))return this;if(tr.id&&(this._plugins.map[tr.id]=tr),this._plugins.list.push(tr),tr.install&&tr.install(this,ti),tr.listeners&&tr.before){for(var to=0,ta=this.listenerMaps.length,ts=tr.before.reduce(function(tr,ti){return tr[ti]=!0,tr[cn(ti)]=!0,tr},{});to<ta;to++){var tc=this.listenerMaps[to].id;if(tc&&(ts[tc]||ts[cn(tc)]))break}this.listenerMaps.splice(to,0,{id:tr.id,map:tr.listeners})}else tr.listeners&&this.listenerMaps.push({id:tr.id,map:tr.listeners});return this}},{key:"addDocument",value:function(tr,ti){if(-1!==this.getDocIndex(tr))return!1;var to=y(tr);ti=ti?V({},ti):{},this.documents.push({doc:tr,options:ti}),this.events.documents.push(tr),tr!==this.document&&this.events.add(to,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:tr,window:to,scope:this,options:ti})}},{key:"removeDocument",value:function(tr){var ti=this.getDocIndex(tr),to=y(tr),ta=this.documents[ti].options;this.events.remove(to,"unload",this.onWindowUnload),this.documents.splice(ti,1),this.events.documents.splice(ti,1),this.fire("scope:remove-document",{doc:tr,window:to,scope:this,options:ta})}},{key:"getDocIndex",value:function(tr){for(var ti=0;ti<this.documents.length;ti++)if(this.documents[ti].doc===tr)return ti;return -1}},{key:"getDocOptions",value:function(tr){var ti=this.getDocIndex(tr);return -1===ti?null:this.documents[ti].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}()),t3=t5.interactStatic,t6="undefined"!=typeof globalThis?globalThis:window;t5.init(t6);var t7=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(tr){var ti=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(ti){var to=ti[0],ta=ti[1];return to in tr||ta in tr}),n=function(to,ta){for(var ts=tr.range,tc=tr.limits,tl=void 0===tc?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:tc,tu=tr.offset,tp=void 0===tu?{x:0,y:0}:tu,tf={range:ts,grid:tr,x:null,y:null},td=0;td<ti.length;td++){var th=ti[td],tv=th[0],tg=th[1],tm=Math.round((to-tp.x)/tr[tv]),ty=Math.round((ta-tp.y)/tr[tg]);tf[tv]=Math.max(tl.left,Math.min(tl.right,tm*tr[tv]+tp.x)),tf[tg]=Math.max(tl.top,Math.min(tl.bottom,ty*tr[tg]+tp.y))}return tf};return n.grid=tr,n.coordFields=ti,n}}),t9={id:"snappers",install:function(tr){var ti=tr.interactStatic;ti.snappers=V(ti.snappers||{},t7),ti.createSnapGrid=ti.snappers.grid}};function gn(tr,ti,to){var ta=tr.startCoords,ts=tr.edgeSign;ti?to.y=ta.y+(to.x-ta.x)*ts.y:to.x=ta.x+(to.y-ta.y)*ts.x}function mn(tr,ti,to,ta){var ts=tr.startRect,tc=tr.startCoords,tl=tr.ratio,tu=tr.edgeSign;if(ti){var tp=ta.width/tl;to.y=tc.y+(tp-ts.height)*tu.y}else{var tf=ta.height*tl;to.x=tc.x+(tf-ts.width)*tu.x}}var t8=be({start:function(tr){var ti=tr.state,to=tr.rect,ta=tr.edges,ts=tr.pageCoords,tc=ti.options,tl=tc.ratio,tu=tc.enabled,tp=ti.options,tf=tp.equalDelta,td=tp.modifiers;"preserve"===tl&&(tl=to.width/to.height),ti.startCoords=V({},ts),ti.startRect=V({},to),ti.ratio=tl,ti.equalDelta=tf;var th=ti.linkedEdges={top:ta.top||ta.left&&!ta.bottom,left:ta.left||ta.top&&!ta.right,bottom:ta.bottom||ta.right&&!ta.top,right:ta.right||ta.bottom&&!ta.left};if(ti.xIsPrimaryAxis=!(!ta.left&&!ta.right),ti.equalDelta){var tv=(th.left?1:-1)*(th.top?1:-1);ti.edgeSign={x:tv,y:tv}}else ti.edgeSign={x:th.left?-1:1,y:th.top?-1:1};if(!1!==tu&&V(ta,th),null!=td&&td.length){var tg=new tR(tr.interaction);tg.copyFrom(tr.interaction.modification),tg.prepareStates(td),ti.subModification=tg,tg.startAll(e({},tr))}},set:function(tr){var ti=tr.state,to=tr.rect,ta=tr.coords,ts=ti.linkedEdges,tc=V({},ta),tl=ti.equalDelta?gn:mn;if(V(tr.edges,ts),tl(ti,ti.xIsPrimaryAxis,ta,to),!ti.subModification)return null;var tu=V({},to);H(ts,tu,{x:ta.x-tc.x,y:ta.y-tc.y});var tp=ti.subModification.setAll(e(e({},tr),{},{rect:tu,edges:ts,pageCoords:ta,prevCoords:ta,prevRect:tu})),tf=tp.delta;return tp.changed&&(tl(ti,Math.abs(tf.x)>Math.abs(tf.y),tp.coords,tp.rect),V(ta,tp.coords)),tp.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}},"aspectRatio"),bn=function(){};bn._defaults={};var t4=bn;function wn(tr,ti,to){return ta.func(tr)?G(tr,ti.interactable,ti.element,[to.x,to.y,ti]):G(tr,ti.interactable,ti.element)}var en={start:function(tr){var ti=tr.rect,to=tr.startOffset,ta=tr.state,ts=tr.interaction,tc=tr.pageCoords,tl=ta.options,tu=tl.elementRect,tp=V({left:0,top:0,right:0,bottom:0},tl.offset||{});if(ti&&tu){var tf=wn(tl.restriction,ts,tc);if(tf){var td=tf.right-tf.left-ti.width,th=tf.bottom-tf.top-ti.height;td<0&&(tp.left+=td,tp.right+=td),th<0&&(tp.top+=th,tp.bottom+=th)}tp.left+=to.left-ti.width*tu.left,tp.top+=to.top-ti.height*tu.top,tp.right+=to.right-ti.width*(1-tu.right),tp.bottom+=to.bottom-ti.height*(1-tu.bottom)}ta.offset=tp},set:function(tr){var ti=tr.coords,to=tr.interaction,ta=tr.state,ts=ta.options,tc=ta.offset,tl=wn(ts.restriction,to,ti);if(tl){var tu=function(tr){return!tr||"left"in tr&&"top"in tr||((tr=V({},tr)).left=tr.x||0,tr.top=tr.y||0,tr.right=tr.right||tr.left+tr.width,tr.bottom=tr.bottom||tr.top+tr.height),tr}(tl);ti.x=Math.max(Math.min(tu.right-tc.right,ti.x),tu.left+tc.left),ti.y=Math.max(Math.min(tu.bottom-tc.bottom,ti.y),tu.top+tc.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},ei=be(en,"restrict"),eo={top:1/0,left:1/0,bottom:-1/0,right:-1/0},ea={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Pn(tr,ti){for(var to=0,ta=["top","left","bottom","right"];to<ta.length;to++){var ts=ta[to];ts in tr||(tr[ts]=ti[ts])}return tr}var es={noInner:eo,noOuter:ea,start:function(tr){var ti,to=tr.interaction,ta=tr.startOffset,ts=tr.state,tc=ts.options;tc&&(ti=N(wn(tc.offset,to,to.coords.start.page))),ti=ti||{x:0,y:0},ts.offset={top:ti.y+ta.top,left:ti.x+ta.left,bottom:ti.y-ta.bottom,right:ti.x-ta.right}},set:function(tr){var ti=tr.coords,to=tr.edges,ta=tr.interaction,ts=tr.state,tc=ts.offset,tl=ts.options;if(to){var tu=V({},ti),tp=wn(tl.inner,ta,tu)||{},tf=wn(tl.outer,ta,tu)||{};Pn(tp,eo),Pn(tf,ea),to.top?ti.y=Math.min(Math.max(tf.top+tc.top,tu.y),tp.top+tc.top):to.bottom&&(ti.y=Math.max(Math.min(tf.bottom+tc.bottom,tu.y),tp.bottom+tc.bottom)),to.left?ti.x=Math.min(Math.max(tf.left+tc.left,tu.x),tp.left+tc.left):to.right&&(ti.x=Math.max(Math.min(tf.right+tc.right,tu.x),tp.right+tc.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},ec=be(es,"restrictEdges"),el=V({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},en.defaults),eu=be({start:en.start,set:en.set,defaults:el},"restrictRect"),ep={width:-1/0,height:-1/0},ef={width:1/0,height:1/0},ed=be({start:function(tr){return es.start(tr)},set:function(tr){var ti=tr.interaction,to=tr.state,ta=tr.rect,ts=tr.edges,tc=to.options;if(ts){var tl=U(wn(tc.min,ti,tr.coords))||ep,tu=U(wn(tc.max,ti,tr.coords))||ef;to.options={endOnly:tc.endOnly,inner:V({},es.noInner),outer:V({},es.noOuter)},ts.top?(to.options.inner.top=ta.bottom-tl.height,to.options.outer.top=ta.bottom-tu.height):ts.bottom&&(to.options.inner.bottom=ta.top+tl.height,to.options.outer.bottom=ta.top+tu.height),ts.left?(to.options.inner.left=ta.right-tl.width,to.options.outer.left=ta.right-tu.width):ts.right&&(to.options.inner.right=ta.left+tl.width,to.options.outer.right=ta.left+tu.width),es.set(tr),to.options=tc}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),eh={start:function(tr){var ti,to=tr.interaction,ta=tr.interactable,ts=tr.element,tc=tr.rect,tl=tr.state,tu=tr.startOffset,tp=tl.options,tf=tp.offsetWithOrigin?function(tr){var ti=tr.interaction.element;return N(G(tr.state.options.origin,null,null,[ti]))||K(tr.interactable,ti,tr.interaction.prepared.name)}(tr):{x:0,y:0};if("startCoords"===tp.offset)ti={x:to.coords.start.page.x,y:to.coords.start.page.y};else{var td=G(tp.offset,ta,ts,[to]);(ti=N(td)||{x:0,y:0}).x+=tf.x,ti.y+=tf.y}var th=tp.relativePoints;tl.offsets=tc&&th&&th.length?th.map(function(tr,to){return{index:to,relativePoint:tr,x:tu.left-tc.width*tr.x+ti.x,y:tu.top-tc.height*tr.y+ti.y}}):[{index:0,relativePoint:null,x:ti.x,y:ti.y}]},set:function(tr){var ti=tr.interaction,to=tr.coords,ts=tr.state,tc=ts.options,tl=ts.offsets,tu=K(ti.interactable,ti.element,ti.prepared.name),tp=V({},to),tf=[];tc.offsetWithOrigin||(tp.x-=tu.x,tp.y-=tu.y);for(var td=0,th=tl;td<th.length;td++)for(var tv=th[td],tg=tp.x-tv.x,tm=tp.y-tv.y,ty=0,tb=tc.targets.length;ty<tb;ty++){var tx=tc.targets[ty],tw=void 0;(tw=ta.func(tx)?tx(tg,tm,ti._proxy,tv,ty):tx)&&tf.push({x:(ta.number(tw.x)?tw.x:tg)+tv.x,y:(ta.number(tw.y)?tw.y:tm)+tv.y,range:ta.number(tw.range)?tw.range:tc.range,source:tx,index:ty,offset:tv})}for(var tE={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},t_=0;t_<tf.length;t_++){var tS=tf[t_],tT=tS.range,tk=tS.x-tp.x,tO=tS.y-tp.y,tP=Q(tk,tO),tM=tP<=tT;tT===1/0&&tE.inRange&&tE.range!==1/0&&(tM=!1),(!tE.target||(tM?tE.inRange&&tT!==1/0?tP/tT<tE.distance/tE.range:tT===1/0&&tE.range!==1/0||tP<tE.distance:!tE.inRange&&tP<tE.distance))&&(tE.target=tS,tE.distance=tP,tE.range=tT,tE.inRange=tM,tE.delta.x=tk,tE.delta.y=tO)}return tE.inRange&&(to.x=tE.target.x,to.y=tE.target.y),ts.closest=tE,tE},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},ev=be(eh,"snap"),eg={start:function(tr){var ti=tr.state,to=tr.edges,ta=ti.options;if(!to)return null;tr.state={options:{targets:null,relativePoints:[{x:to.left?0:1,y:to.top?0:1}],offset:ta.offset||"self",origin:{x:0,y:0},range:ta.range}},ti.targetFields=ti.targetFields||[["width","height"],["x","y"]],eh.start(tr),ti.offsets=tr.state.offsets,tr.state=ti},set:function(tr){var ti=tr.interaction,to=tr.state,ts=tr.coords,tc=to.options,tl=to.offsets,tu={x:ts.x-tl[0].x,y:ts.y-tl[0].y};to.options=V({},tc),to.options.targets=[];for(var tp=0,tf=tc.targets||[];tp<tf.length;tp++){var td=tf[tp],th=void 0;if(th=ta.func(td)?td(tu.x,tu.y,ti):td){for(var tv=0,tg=to.targetFields;tv<tg.length;tv++){var tm=tg[tv],ty=tm[0],tb=tm[1];if(ty in th||tb in th){th.x=th[ty],th.y=th[tb];break}}to.options.targets.push(th)}}var tx=eh.set(tr);return to.options=tc,tx},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},em=be(eg,"snapSize"),ey={aspectRatio:t8,restrictEdges:ec,restrict:ei,restrictRect:eu,restrictSize:ed,snapEdges:be({start:function(tr){var ti=tr.edges;return ti?(tr.state.targetFields=tr.state.targetFields||[[ti.left?"left":"right",ti.top?"top":"bottom"]],eg.start(tr)):null},set:eg.set,defaults:V(ge(eg.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:ev,snapSize:em,spring:t4,avoid:t4,transform:t4,rubberband:t4},eb={id:"modifiers",install:function(tr){var ti=tr.interactStatic;for(var to in tr.usePlugin(tV),tr.usePlugin(t9),ti.modifiers=ey,ey){var ta=ey[to],ts=ta._defaults,tc=ta._methods;ts._methods=tc,tr.defaults.perAction[to]=ts}}},ex=function(tr){s(n,tr);var ti=p(n);function n(tr,to,ta,ts,tc,tl){var tu;if(r(this,n),tt(u(tu=ti.call(this,tc)),ta),ta!==to&&tt(u(tu),to),tu.timeStamp=tl,tu.originalEvent=ta,tu.type=tr,tu.pointerId=at(to),tu.pointerType=dt(to),tu.target=ts,tu.currentTarget=null,"tap"===tr){var tp=tc.getPointerIndex(to);tu.dt=tu.timeStamp-tc.pointers[tp].downTime;var tf=tu.timeStamp-tc.tapTime;tu.double=!!tc.prevTap&&"doubletap"!==tc.prevTap.type&&tc.prevTap.target===tu.target&&tf<500}else"doubletap"===tr&&(tu.dt=to.timeStamp-tc.tapTime,tu.double=!0);return tu}return o(n,[{key:"_subtractOrigin",value:function(tr){var ti=tr.x,to=tr.y;return this.pageX-=ti,this.pageY-=to,this.clientX-=ti,this.clientY-=to,this}},{key:"_addOrigin",value:function(tr){var ti=tr.x,to=tr.y;return this.pageX+=ti,this.pageY+=to,this.clientX+=ti,this.clientY+=to,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),n}(th),ew={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(tr){tr.pointerEvents=ew,tr.defaults.actions.pointerEvents=ew.defaults,V(tr.actions.phaselessTypes,ew.types)},listeners:{"interactions:new":function(tr){var ti=tr.interaction;ti.prevTap=null,ti.tapTime=0},"interactions:update-pointer":function(tr){var ti=tr.down,to=tr.pointerInfo;(ti||!to.hold)&&(to.hold={duration:1/0,timeout:null})},"interactions:move":function(tr,ti){var to=tr.interaction,ta=tr.pointer,ts=tr.event,tc=tr.eventTarget;tr.duplicate||to.pointerIsDown&&!to.pointerWasMoved||(to.pointerIsDown&&Gn(tr),Vn({interaction:to,pointer:ta,event:ts,eventTarget:tc,type:"move"},ti))},"interactions:down":function(tr,ti){(function(tr,ti){for(var to=tr.interaction,ta=tr.pointer,ts=tr.event,tc=tr.eventTarget,tl=tr.pointerIndex,tu=to.pointers[tl].hold,tp=q(tc),tf={interaction:to,pointer:ta,event:ts,eventTarget:tc,type:"hold",targets:[],path:tp,node:null},td=0;td<tp.length;td++){var th=tp[td];tf.node=th,ti.fire("pointerEvents:collect-targets",tf)}if(tf.targets.length){for(var tv=1/0,tg=0,tm=tf.targets;tg<tm.length;tg++){var ty=tm[tg].eventable.options.holdDuration;ty<tv&&(tv=ty)}tu.duration=tv,tu.timeout=setTimeout(function(){Vn({interaction:to,eventTarget:tc,pointer:ta,event:ts,type:"hold"},ti)},tv)}})(tr,ti),Vn(tr,ti)},"interactions:up":function(tr,ti){Gn(tr),Vn(tr,ti),function(tr,ti){var to=tr.interaction,ta=tr.pointer,ts=tr.event,tc=tr.eventTarget;to.pointerWasMoved||Vn({interaction:to,eventTarget:tc,pointer:ta,event:ts,type:"tap"},ti)}(tr,ti)},"interactions:cancel":function(tr,ti){Gn(tr),Vn(tr,ti)}},PointerEvent:ex,fire:Vn,collectEventTargets:Wn,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Vn(tr,ti){var to=tr.interaction,ta=tr.pointer,ts=tr.event,tc=tr.eventTarget,tl=tr.type,tu=tr.targets,tp=void 0===tu?Wn(tr,ti):tu,tf=new ex(tl,ta,ts,tc,to,ti.now());ti.fire("pointerEvents:new",{pointerEvent:tf});for(var td={interaction:to,pointer:ta,event:ts,eventTarget:tc,targets:tp,type:tl,pointerEvent:tf},th=0;th<tp.length;th++){var tv=tp[th];for(var tg in tv.props||{})tf[tg]=tv.props[tg];var tm=K(tv.eventable,tv.node);if(tf._subtractOrigin(tm),tf.eventable=tv.eventable,tf.currentTarget=tv.node,tv.eventable.fire(tf),tf._addOrigin(tm),tf.immediatePropagationStopped||tf.propagationStopped&&th+1<tp.length&&tp[th+1].node!==tf.currentTarget)break}if(ti.fire("pointerEvents:fired",td),"tap"===tl){var ty=tf.double?Vn({interaction:to,pointer:ta,event:ts,eventTarget:tc,type:"doubletap"},ti):tf;to.prevTap=ty,to.tapTime=ty.timeStamp}return tf}function Wn(tr,ti){var to=tr.interaction,ta=tr.pointer,ts=tr.event,tc=tr.eventTarget,tl=tr.type,tu=to.getPointerIndex(ta),tp=to.pointers[tu];if("tap"===tl&&(to.pointerWasMoved||!tp||tp.downTarget!==tc))return[];for(var tf=q(tc),td={interaction:to,pointer:ta,event:ts,eventTarget:tc,type:tl,path:tf,targets:[],node:null},th=0;th<tf.length;th++){var tv=tf[th];td.node=tv,ti.fire("pointerEvents:collect-targets",td)}return"hold"===tl&&(td.targets=td.targets.filter(function(tr){var ti,ta;return tr.eventable.options.holdDuration===(null==(ti=to.pointers[tu])||null==(ta=ti.hold)?void 0:ta.duration)})),td.targets}function Gn(tr){var ti=tr.interaction,to=tr.pointerIndex,ta=ti.pointers[to].hold;ta&&ta.timeout&&(clearTimeout(ta.timeout),ta.timeout=null)}var eE=Object.freeze({__proto__:null,default:ew});function Un(tr){var ti=tr.interaction;ti.holdIntervalHandle&&(clearInterval(ti.holdIntervalHandle),ti.holdIntervalHandle=null)}var e_={id:"pointer-events/holdRepeat",install:function(tr){tr.usePlugin(ew);var ti=tr.pointerEvents;ti.defaults.holdRepeatInterval=0,ti.types.holdrepeat=tr.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(tr,ti){return tr["pointerEvents:".concat(ti)]=Un,tr},{"pointerEvents:new":function(tr){var ti=tr.pointerEvent;"hold"===ti.type&&(ti.count=(ti.count||0)+1)},"pointerEvents:fired":function(tr,ti){var to=tr.interaction,ta=tr.pointerEvent,ts=tr.eventTarget,tc=tr.targets;if("hold"===ta.type&&tc.length){var tl=tc[0].eventable.options.holdRepeatInterval;tl<=0||(to.holdIntervalHandle=setTimeout(function(){ti.pointerEvents.fire({interaction:to,eventTarget:ts,type:"hold",pointer:ta,event:ta},ti)},tl))}}})},eS={id:"pointer-events/interactableTargets",install:function(tr){var ti=tr.Interactable;ti.prototype.pointerEvents=function(tr){return V(this.events.options,tr),this};var to=ti.prototype._backCompatOption;ti.prototype._backCompatOption=function(tr,ti){var ta=to.call(this,tr,ti);return ta===this&&(this.events.options[tr]=ti),ta}},listeners:{"pointerEvents:collect-targets":function(tr,ti){var to=tr.targets,ta=tr.node,ts=tr.type,tc=tr.eventTarget;ti.interactables.forEachMatch(ta,function(tr){var ti=tr.events,tl=ti.options;ti.types[ts]&&ti.types[ts].length&&tr.testIgnoreAllow(tl,ta,tc)&&to.push({node:ta,eventable:ti,props:{interactable:tr}})})},"interactable:new":function(tr){var ti=tr.interactable;ti.events.getRect=function(tr){return ti.getRect(tr)}},"interactable:set":function(tr,ti){var to=tr.interactable,ta=tr.options;V(to.events.options,ti.pointerEvents.defaults),V(to.events.options,ta.pointerEvents||{})}}},eT={id:"pointer-events",install:function(tr){tr.usePlugin(eE),tr.usePlugin(e_),tr.usePlugin(eS)}},ek={id:"reflow",install:function(tr){var ti=tr.Interactable;tr.actions.phases.reflow=!0,ti.prototype.reflow=function(ti){return function(tr,ti,to){for(var ta=tr.getAllElements(),ts=to.window.Promise,tc=ts?[]:null,a=function(){var tu=ta[tl],tp=tr.getRect(tu);if(!tp)return 1;var tf,td=bt(to.interactions.list,function(to){return to.interacting()&&to.interactable===tr&&to.element===tu&&to.prepared.name===ti.name});if(td)td.move(),tc&&(tf=td._reflowPromise||new ts(function(tr){td._reflowResolve=tr}));else{var th=U(tp),tv=function(tr){return{coords:tr,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},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:th.x,y:th.y},client:{x:th.x,y:th.y},timeStamp:to.now()});tf=function(tr,ti,to,ta,ts){var tc=tr.interactions.new({pointerType:"reflow"}),tl={interaction:tc,event:ts,pointer:ts,eventTarget:to,phase:"reflow"};tc.interactable=ti,tc.element=to,tc.prevEvent=ts,tc.updatePointer(ts,ts,to,!0),nt(tc.coords.delta),Ut(tc.prepared,ta),tc._doPhase(tl);var tu=tr.window.Promise,tp=tu?new tu(function(tr){tc._reflowResolve=tr}):void 0;return tc._reflowPromise=tp,tc.start(ta,ti,to),tc._interacting?(tc.move(tl),tc.end(ts)):(tc.stop(),tc._reflowResolve()),tc.removePointer(ts,ts),tp}(to,tr,tu,ti,tv)}tc&&tc.push(tf)},tl=0;tl<ta.length&&!a();tl++);return tc&&ts.all(tc).then(function(){return tr})}(this,ti,tr)}},listeners:{"interactions:stop":function(tr,ti){var to=tr.interaction;"reflow"===to.pointerType&&(to._reflowResolve&&to._reflowResolve(),function(tr,ti){tr.splice(tr.indexOf(ti),1)}(ti.interactions.list,to))}}};if(t3.use(tC),t3.use(tB),t3.use(eT),t3.use(tW),t3.use(eb),t3.use(tA),t3.use(tS),t3.use(tP),t3.use(ek),t3.default=t3,"object"===n(tr)&&tr)try{tr.exports=t3}catch(tr){}return t3.default=t3,t3})},51951:function(module){var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(tr,ti){if(tr.indexOf)return tr.indexOf(ti);for(var to=0;to<tr.length;to++)if(tr[to]===ti)return to;return -1},Object_keys=function(tr){if(Object.keys)return Object.keys(tr);var ti=[];for(var to in tr)ti.push(to);return ti}
vendor: 2,402 bytes, line 37
37,forEach=function(tr,ti){if(tr.forEach)return tr.forEach(ti);for(var to=0;to<tr.length;to++)ti(tr[to],to,tr)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(tr,ti,to){Object.defineProperty(tr,ti,{writable:!0,enumerable:!1,configurable:!0,value:to})}}catch(tr){return function(tr,ti,to){tr[ti]=to}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(tr){if(!(this instanceof Script))return new Script(tr);this.code=tr};Script.prototype.runInContext=function(tr){if(!(tr instanceof Context))throw TypeError("needs a 'context' argument.");var ti=document.createElement("iframe");ti.style||(ti.style={}),ti.style.display="none",document.body.appendChild(ti);var to=ti.contentWindow,ta=to.eval,ts=to.execScript;!ta&&ts&&(ts.call(to,"null"),ta=to.eval),forEach(Object_keys(tr),function(ti){to[ti]=tr[ti]}),forEach(globals,function(ti){tr[ti]&&(to[ti]=tr[ti])});var tc=Object_keys(to),tl=ta.call(to,this.code);return forEach(Object_keys(to),function(ti){(ti in tr||-1===indexOf(tc,ti))&&(tr[ti]=to[ti])}),forEach(globals,function(ti){ti in tr||defineProp(tr,ti,to[ti])}),document.body.removeChild(ti),tl},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(tr){var ti=Script.createContext(tr),to=this.runInContext(ti);return tr&&forEach(Object_keys(ti),function(to){tr[to]=ti[to]}),to},forEach(Object_keys(Script.prototype),function(tr){exports[tr]=Script[tr]=function(ti){var to=Script(ti);return to[tr].apply(to,[].slice.call(arguments,1))}}),exports.isContext=function(tr){return tr instanceof Context},exports.createScript=function(tr){return exports.Script(tr)},exports.createContext=Script.createContext=function(tr){var ti=new Context;return"object"==typeof tr&&forEach(Object_keys(tr),function(to){ti[to]=tr[to]}),ti}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.