Month
- The leap day will be added to this month.
`,o=V(),l=T("div"),s=T("select");for(let N=0;Nt[15].call(s)),w(l,"class","setting-item-control"),w(r,"class","setting-item"),w(e,"class","fantasy-calendar-nested-settings"),w(v,"class","buttons svelte-n1tx0h")},m(N,x){q(N,e,x),J(n,e,null),C(e,a),C(e,r),C(r,i),C(r,o),C(r,l),C(l,s);for(let P=0;P{let W=new Cs(d,u.interval.length>0,B);W.onClose=()=>{!W.saved||!W.condition.interval||(B?u.interval.splice(u.interval.indexOf(B),1,W.condition):u.interval.push(W.condition),n(0,u))},W.open()},y=B=>{let W=[`${B.interval}`];return B.exclusive&&W.push("(Exclusive)"),B.ignore&&W.push(" - Ignoring Offset"),W.join(" ")},m=B=>{new wr.ExtraButtonComponent(B).setIcon("pencil")},v=B=>{new wr.ExtraButtonComponent(B).setIcon("trash")},p=B=>{new wr.ButtonComponent(B).setButtonText("Cancel").setCta()},k=B=>n(0,u.name=B.detail,u);function E(){u.timespan=hn(this),n(0,u)}let A=B=>n(0,u.intercalary=!u.intercalary,u),S=()=>n(0,u.numbered=!u.numbered,u);function _(){u.after=hn(this),n(0,u)}let F=B=>n(0,u.offset=B.detail,u),D=()=>h(),N=B=>h(B),x=B=>n(0,u.interval=u.interval.filter(W=>W!=B),u),P=()=>s("cancel");return t.$$set=B=>{"app"in B&&n(11,d=B.app),"leapDay"in B&&n(0,u=B.leapDay),"calendar"in B&&n(12,c=B.calendar)},t.$$.update=()=>{if(t.$$.dirty[0]&1){e:n(4,a=u.intercalary)}if(t.$$.dirty[0]&4096){e:n(1,r=c.static.months)}if(t.$$.dirty[0]&3){e:n(13,i=r[u.timespan])}if(t.$$.dirty[0]&8192){e:n(3,o=i.length?[...Array(i.length).keys()].map(B=>B+1):[])}if(t.$$.dirty[0]&1){e:n(2,l=u.interval.sort((B,W)=>B.interval-W.interval))}},[u,r,l,o,a,s,h,y,m,v,p,d,c,i,k,E,A,S,_,F,D,N,x,P]}var Df=class extends de{constructor(e){super();fe(this,e,k1,A1,se,{app:11,leapDay:0,calendar:12},C1,[-1,-1])}},_f=Df;function x1(t){let e,n,a,r,i,o;return e=new kn({props:{type:"number",name:"Interval",desc:"How often the condition applies.",value:t[0].interval,warn:!t[0].interval}}),e.$on("blur",t[2]),a=new Mt({props:{disabled:!t[1],name:"Exclusive",desc:"If true, the leap day will not apply when the year meets the condition.\\n\\nRequires the leap day to have at least one non-exclusive condition.",value:t[0].exclusive}}),a.$on("click",t[3]),i=new Mt({props:{name:"Ignore Offset",desc:"The condition will ignore the leap day's offset when checking to apply.",value:t[0].ignore}}),i.$on("click",t[4]),{c(){$(e.$$.fragment),n=V(),$(a.$$.fragment),r=V(),$(i.$$.fragment)},m(l,s){J(e,l,s),q(l,n,s),J(a,l,s),q(l,r,s),J(i,l,s),o=!0},p(l,[s]){let d={};s&1&&(d.value=l[0].interval),s&1&&(d.warn=!l[0].interval),e.$set(d);let u={};s&2&&(u.disabled=!l[1]),s&1&&(u.value=l[0].exclusive),a.$set(u);let c={};s&1&&(c.value=l[0].ignore),i.$set(c)},i(l){o||(R(e.$$.fragment,l),R(a.$$.fragment,l),R(i.$$.fragment,l),o=!0)},o(l){H(e.$$.fragment,l),H(a.$$.fragment,l),H(i.$$.fragment,l),o=!1},d(l){Q(e,l),l&&O(n),Q(a,l),l&&O(r),Q(i,l)}}}function F1(t,e,n){let{canBeExclusive:a}=e,{condition:r}=e,i=s=>n(0,r.interval=s.detail,r),o=()=>a?n(0,r.exclusive=!r.exclusive,r):null,l=()=>n(0,r.ignore=!r.ignore,r);return t.$$set=s=>{"canBeExclusive"in s&&n(1,a=s.canBeExclusive),"condition"in s&&n(0,r=s.condition)},[r,a,i,o,l]}var Cf=class extends de{constructor(e){super();fe(this,e,F1,x1,se,{canBeExclusive:1,condition:0})}},Ef=Cf;var Es=class extends it{constructor(e,n,a){super(e);this.calendar=n;this.saved=!0;this.leapday={id:Ze(6),name:"Leap Day",interval:[],intercalary:!1,timespan:0,offset:0,type:"leapday"};a&&(this.leapday=(0,Af.default)(a),this.editing=!0),this.containerEl.addClasses(["fantasy-calendar-create-leapday"])}async display(){this.titleEl.setText(this.editing?"Edit Leap Day":"New Leap Day"),new _f({target:this.contentEl,props:{leapDay:this.leapday,calendar:this.calendar,app:this.app}}).$on("cancel",()=>{this.saved=!1,this.close()})}async onOpen(){await this.display()}},Cs=class extends it{constructor(e,n,a){super(e);this.app=e;this.canBeExclusive=n;this.saved=!0;this.editing=!1;this.condition={interval:null,exclusive:!1,ignore:!1};a&&(this.condition={...a},this.editing=!0)}onOpen(){this.containerEl.addClasses(["fantasy-calendar-nested-settings"]),this.contentEl.empty(),this.titleEl.setText("Leap Day Condition"),new Ef({target:this.contentEl,props:{canBeExclusive:this.canBeExclusive,condition:this.condition}}),this.buttonsEl=this.contentEl.createDiv("fantasy-context-buttons setting-item"),new qa.ButtonComponent(this.buttonsEl).setCta().setButtonText("Cancel").onClick(()=>{this.saved=!1,this.close()})}old(){new qa.Setting(this.contentEl).setName("Interval").setDesc("How often the condition applies.").addText(e=>{e.inputEl.setAttr("type","number"),e.setValue(`${this.condition.interval}`).onChange(n=>{isNaN(Number(n))||(this.condition.interval=Number(n))})}),new qa.Setting(this.contentEl).setName("Exclusive").setDesc(`If true, the leap day will not apply when the year meets the condition.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=t[Symbol.iterator]()},n:function(){var s=n.next();return i=s.done,s},e:function(s){o=!0,l=s},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}var bv="finalize",wv="consider";function ka(t,e,n){t.dispatchEvent(new CustomEvent(bv,{detail:{items:e,info:n}}))}function Rn(t,e,n){t.dispatchEvent(new CustomEvent(wv,{detail:{items:e,info:n}}))}var si="draggedEntered",dr="draggedLeft",li="draggedOverIndex",es="draggedLeftDocument",ui={LEFT_FOR_ANOTHER:"leftForAnother",OUTSIDE_OF_ANY:"outsideOfAny"};function Dv(t,e,n){t.dispatchEvent(new CustomEvent(si,{detail:{indexObj:e,draggedEl:n}}))}function _v(t,e,n){t.dispatchEvent(new CustomEvent(dr,{detail:{draggedEl:e,type:ui.LEFT_FOR_ANOTHER,theOtherDz:n}}))}function Cv(t,e){t.dispatchEvent(new CustomEvent(dr,{detail:{draggedEl:e,type:ui.OUTSIDE_OF_ANY}}))}function Ev(t,e,n){t.dispatchEvent(new CustomEvent(li,{detail:{indexObj:e,draggedEl:n}}))}function Av(t){window.dispatchEvent(new CustomEvent(es,{detail:{draggedEl:t}}))}var ot={DRAG_STARTED:"dragStarted",DRAGGED_ENTERED:si,DRAGGED_ENTERED_ANOTHER:"dragEnteredAnother",DRAGGED_OVER_INDEX:li,DRAGGED_LEFT:dr,DRAGGED_LEFT_ALL:"draggedLeftAll",DROPPED_INTO_ZONE:"droppedIntoZone",DROPPED_INTO_ANOTHER:"droppedIntoAnother",DROPPED_OUTSIDE_OF_ANY:"droppedOutsideOfAny",DRAG_STOPPED:"dragStopped"},nt={POINTER:"pointer",KEYBOARD:"keyboard"},ci="isDndShadowItem",ts="data-is-dnd-shadow-item",ns="id:dnd-shadow-placeholder-0000",kv="dnd-action-dragged-el",_t="id",as=0;function Nc(){as++}function Mc(){if(as===0)throw new Error("Bug! trying to decrement when there are no dropzones");as--}var xv=typeof window=="undefined",Me=function(){};function Ic(t){var e,n=t.getBoundingClientRect(),a=getComputedStyle(t),r=a.transform;if(r){var i,o,l,s;if(r.startsWith("matrix3d("))e=r.slice(9,-1).split(/, /),i=+e[0],o=+e[5],l=+e[12],s=+e[13];else if(r.startsWith("matrix("))e=r.slice(7,-1).split(/, /),i=+e[0],o=+e[3],l=+e[4],s=+e[5];else return n;var d=a.transformOrigin,u=n.x-l-(1-i)*parseFloat(d),c=n.y-s-(1-o)*parseFloat(d.slice(d.indexOf(" ")+1)),h=i?n.width/i:t.offsetWidth,y=o?n.height/o:t.offsetHeight;return{x:u,y:c,width:h,height:y,top:c,right:u+h,bottom:c+y,left:u}}else return n}function Oc(t){var e=Ic(t);return{top:e.top+window.scrollY,bottom:e.bottom+window.scrollY,left:e.left+window.scrollX,right:e.right+window.scrollX}}function rs(t){var e=t.getBoundingClientRect();return{top:e.top+window.scrollY,bottom:e.bottom+window.scrollY,left:e.left+window.scrollX,right:e.right+window.scrollX}}function qc(t){return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function Fv(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function is(t,e){return t.y<=e.bottom&&t.y>=e.top&&t.x>=e.left&&t.x<=e.right}function fr(t){return qc(rs(t))}function Rc(t,e){var n=fr(t),a=Oc(e);return is(n,a)}function Tv(t,e){var n=fr(t),a=fr(e);return Fv(n,a)}function Sv(t){var e=rs(t);return e.right<0||e.left>document.documentElement.scrollWidth||e.bottom<0||e.top>document.documentElement.scrollHeight}function Bv(t,e){var n=rs(e);return is(t,n)?{top:t.y-n.top,bottom:n.bottom-t.y,left:t.x-n.left,right:Math.min(n.right,document.documentElement.clientWidth)-t.x}:null}var xa;function Lc(){Me(function(){return"resetting indexes cache"}),xa=new Map}Lc();function Nv(t){var e=Array.from(t.children).findIndex(function(n){return n.getAttribute(ts)});if(e>=0)return xa.has(t)||xa.set(t,new Map),xa.get(t).set(e,Oc(t.children[e])),e}function Mv(t,e){if(!Rc(t,e))return null;var n=e.children;if(n.length===0)return{index:0,isProximityBased:!0};for(var a=Nv(e),r=0;ro.clientHeight&&(l.bottom
o.clientWidth&&(l.right
1&&arguments[1]!==void 0?arguments[1]:0;return t.parentElement?Vc(t.parentElement,e+1):e-1}function Iv(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(!{}.hasOwnProperty.call(e,n)||e[n]!==t[n])return!1;return!0}function Ov(t,e){if(t.length!==e.length)return!1;for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:qv,a,r,i=!1,o,l=Array.from(e).sort(function(d,u){return jc(u)-jc(d)});function s(){var d=fr(t),u=Rv(d,a);if(!u&&o&&Math.abs(o.x-d.x)1&&arguments[1]!==void 0?arguments[1]:function(){},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){return[]};t.forEach(function(a){var r=e(a);Object.keys(r).forEach(function(i){a.style[i]=r[i]}),n(a).forEach(function(i){return a.classList.add(i)})})}function mi(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){return[]};t.forEach(function(a){var r=e(a);Object.keys(r).forEach(function(i){a.style[i]=""}),n(a).forEach(function(i){return a.classList.contains(i)&&a.classList.remove(i)})})}function e0(t){var e=t.style.minHeight;t.style.minHeight=window.getComputedStyle(t).getPropertyValue("height");var n=t.style.minWidth;return t.style.minWidth=window.getComputedStyle(t).getPropertyValue("width"),function(){t.style.minHeight=e,t.style.minWidth=n}}var t0="--any--",n0=100,Zc=3,Kc={outline:"rgba(255, 255, 102, 0.7) solid 2px"},gn,kt,Zt,pi,ht,gi,Fa,Gt,Ln,en,Ta=!1,ss=!1,ls,mr=!1,cn=new Map,pt=new Map,us=new WeakMap;function a0(t,e){Me(function(){return"registering drop-zone if absent"}),cn.has(e)||cn.set(e,new Set),cn.get(e).has(t)||(cn.get(e).add(t),Nc())}function Qc(t,e){cn.get(e).delete(t),Mc(),cn.get(e).size===0&&cn.delete(e)}function r0(){Me(function(){return"watching dragged element"}),Gv();var t=cn.get(pi),e=$o(t),n;try{for(e.s();!(n=e.n()).done;){var a=n.value;a.addEventListener(si,Xc),a.addEventListener(dr,Jc),a.addEventListener(li,$c)}}catch(i){e.e(i)}finally{e.f()}window.addEventListener(es,Sa);var r=Math.max.apply(Math,[n0].concat(oi(Array.from(t.keys()).map(function(i){return pt.get(i).dropAnimationDurationMs}))));Pv(kt,t,r*1.07)}function i0(){Me(function(){return"unwatching dragged element"}),Uv();var t=cn.get(pi),e=$o(t),n;try{for(e.s();!(n=e.n()).done;){var a=n.value;a.removeEventListener(si,Xc),a.removeEventListener(dr,Jc),a.removeEventListener(li,$c)}}catch(r){e.e(r)}finally{e.f()}window.removeEventListener(es,Sa),jv()}function o0(t){return t.findIndex(function(e){return e[_t]===ns})}function yi(t){return t.findIndex(function(e){return!!e[ci]&&e[_t]!==ns})}function Xc(t){Me(function(){return["dragged entered",t.currentTarget,t.detail]});var e=pt.get(t.currentTarget),n=e.items,a=e.dropFromOthersDisabled;if(a&&t.currentTarget!==ht){Me(function(){return"ignoring dragged entered because drop is currently disabled"});return}if(mr=!1,n=n.filter(function(c){return c[_t]!==Fa[_t]}),Me(function(){return"dragged entered items ".concat(xn(n))}),ht!==t.currentTarget){var r=pt.get(ht).items,i=r.filter(function(c){return!c[ci]});Rn(ht,i,{trigger:ot.DRAGGED_ENTERED_ANOTHER,id:Zt[_t],source:nt.POINTER})}else{var o=o0(n);o!==-1&&(Me(function(){return"removing placeholder item from origin dz"}),n.splice(o,1))}var l=t.detail.indexObj,s=l.index,d=l.isProximityBased,u=d&&s===t.currentTarget.children.length-1?s+1:s;Gt=t.currentTarget,n.splice(u,0,Fa),Rn(t.currentTarget,n,{trigger:ot.DRAGGED_ENTERED,id:Zt[_t],source:nt.POINTER})}function Jc(t){if(!!Ta){Me(function(){return["dragged left",t.currentTarget,t.detail]});var e=pt.get(t.currentTarget),n=e.items,a=e.dropFromOthersDisabled;if(a&&t.currentTarget!==ht&&t.currentTarget!==Gt){Me(function(){return"drop is currently disabled"});return}var r=yi(n),i=n.splice(r,1)[0];Gt=void 0;var o=t.detail,l=o.type,s=o.theOtherDz;if(l===ui.OUTSIDE_OF_ANY||l===ui.LEFT_FOR_ANOTHER&&s!==ht&&pt.get(s).dropFromOthersDisabled){Me(function(){return"dragged left all, putting shadow element back in the origin dz"}),mr=!0,Gt=ht;var d=pt.get(ht).items;d.splice(gi,0,i),Rn(ht,d,{trigger:ot.DRAGGED_LEFT_ALL,id:Zt[_t],source:nt.POINTER})}Rn(t.currentTarget,n,{trigger:ot.DRAGGED_LEFT,id:Zt[_t],source:nt.POINTER})}}function $c(t){Me(function(){return["dragged is over index",t.currentTarget,t.detail]});var e=pt.get(t.currentTarget),n=e.items,a=e.dropFromOthersDisabled;if(a&&t.currentTarget!==ht){Me(function(){return"drop is currently disabled"});return}mr=!1;var r=t.detail.indexObj.index,i=yi(n);n.splice(i,1),n.splice(r,0,Fa),Rn(t.currentTarget,n,{trigger:ot.DRAGGED_OVER_INDEX,id:Zt[_t],source:nt.POINTER})}function vi(t){t.preventDefault();var e=t.touches?t.touches[0]:t;en={x:e.clientX,y:e.clientY},kt.style.transform="translate3d(".concat(en.x-Ln.x,"px, ").concat(en.y-Ln.y,"px, 0)")}function Sa(){Me(function(){return"dropped"}),ss=!0,window.removeEventListener("mousemove",vi),window.removeEventListener("touchmove",vi),window.removeEventListener("mouseup",Sa),window.removeEventListener("touchend",Sa),i0(),Zv(kt),Gt||(Me(function(){return"element was dropped right after it left origin but before entering somewhere else"}),Gt=ht),Me(function(){return["dropped in dz",Gt]});var t=pt.get(Gt),e=t.items,n=t.type;mi(cn.get(n),function(i){return pt.get(i).dropTargetStyle},function(i){return pt.get(i).dropTargetClasses});var a=yi(e);a===-1&&(a=gi),e=e.map(function(i){return i[ci]?Zt:i});function r(){ls(),ka(Gt,e,{trigger:mr?ot.DROPPED_OUTSIDE_OF_ANY:ot.DROPPED_INTO_ZONE,id:Zt[_t],source:nt.POINTER}),Gt!==ht&&ka(ht,pt.get(ht).items,{trigger:ot.DROPPED_INTO_ANOTHER,id:Zt[_t],source:nt.POINTER}),$v(Gt.children[a]),l0()}s0(a,r)}function s0(t,e){var n=Ic(Gt.children[t]),a={x:n.left-parseFloat(kt.style.left),y:n.top-parseFloat(kt.style.top)},r=pt.get(Gt),i=r.dropAnimationDurationMs,o="transform ".concat(i,"ms ease");kt.style.transition=kt.style.transition?kt.style.transition+","+o:o,kt.style.transform="translate3d(".concat(a.x,"px, ").concat(a.y,"px, 0)"),window.setTimeout(e,i)}function l0(){kt.remove(),gn.remove(),kt=void 0,gn=void 0,Zt=void 0,pi=void 0,ht=void 0,gi=void 0,Fa=void 0,Gt=void 0,Ln=void 0,en=void 0,Ta=!1,ss=!1,ls=void 0,mr=!1}function u0(t,e){var n={items:void 0,type:void 0,flipDurationMs:0,dragDisabled:!1,morphDisabled:!1,dropFromOthersDisabled:!1,dropTargetStyle:Kc,dropTargetClasses:[],transformDraggedElement:function(){},centreDraggedOnCursor:!1};Me(function(){return["dndzone good to go options: ".concat(xn(e),", config: ").concat(xn(n)),{node:t}]});var a=new Map;function r(){window.addEventListener("mousemove",l,{passive:!1}),window.addEventListener("touchmove",l,{passive:!1,capture:!1}),window.addEventListener("mouseup",o,{passive:!1}),window.addEventListener("touchend",o,{passive:!1})}function i(){window.removeEventListener("mousemove",l),window.removeEventListener("touchmove",l),window.removeEventListener("mouseup",o),window.removeEventListener("touchend",o)}function o(){i(),gn=void 0,Ln=void 0,en=void 0}function l(c){c.preventDefault();var h=c.touches?c.touches[0]:c;en={x:h.clientX,y:h.clientY},(Math.abs(en.x-Ln.x)>=Zc||Math.abs(en.y-Ln.y)>=Zc)&&(i(),d())}function s(c){if(c.target!==c.currentTarget&&(c.target.value!==void 0||c.target.isContentEditable)){Me(function(){return"won't initiate drag on a nested input element"});return}if(c.button){Me(function(){return"ignoring none left click button: ".concat(c.button)});return}if(Ta){Me(function(){return"cannot start a new drag before finalizing previous one"});return}c.stopPropagation();var h=c.touches?c.touches[0]:c;Ln={x:h.clientX,y:h.clientY},en=ia({},Ln),gn=c.currentTarget,r()}function d(){Me(function(){return["drag start config: ".concat(xn(n)),gn]}),Ta=!0;var c=a.get(gn);gi=c,ht=gn.parentElement;var h=ht.getRootNode(),y=h.body||h,m=n.items,v=n.type,p=n.centreDraggedOnCursor;Zt=ia({},m[c]),pi=v,Fa=ia(ia({},Zt),{},cr({},ci,!0));var A=ia(ia({},Fa),{},cr({},_t,ns));kt=Yv(gn,p&&en);function w(){kt.parentElement?window.requestAnimationFrame(w):(y.appendChild(kt),kt.focus(),r0(),Xv(gn),y.appendChild(gn))}window.requestAnimationFrame(w),hi(Array.from(cn.get(n.type)).filter(function(x){return x===ht||!pt.get(x).dropFromOthersDisabled}),function(x){return pt.get(x).dropTargetStyle},function(x){return pt.get(x).dropTargetClasses}),m.splice(c,1,A),ls=e0(ht),Rn(ht,m,{trigger:ot.DRAG_STARTED,id:Zt[_t],source:nt.POINTER}),window.addEventListener("mousemove",vi,{passive:!1}),window.addEventListener("touchmove",vi,{passive:!1,capture:!1}),window.addEventListener("mouseup",Sa,{passive:!1}),window.addEventListener("touchend",Sa,{passive:!1})}function u(c){var h=c.items,y=h===void 0?void 0:h,m=c.flipDurationMs,v=m===void 0?0:m,p=c.type,A=p===void 0?t0:p,w=c.dragDisabled,x=w===void 0?!1:w,B=c.morphDisabled,C=B===void 0?!1:B,F=c.dropFromOthersDisabled,_=F===void 0?!1:F,N=c.dropTargetStyle,k=N===void 0?Kc:N,P=c.dropTargetClasses,S=P===void 0?[]:P,W=c.transformDraggedElement,K=W===void 0?function(){}:W,le=c.centreDraggedOnCursor,oe=le===void 0?!1:le;n.dropAnimationDurationMs=v,n.type&&A!==n.type&&Qc(t,n.type),n.type=A,a0(t,A),n.items=oi(y),n.dragDisabled=x,n.morphDisabled=C,n.transformDraggedElement=K,n.centreDraggedOnCursor=oe,Ta&&!ss&&(!Iv(k,n.dropTargetStyle)||!Ov(S,n.dropTargetClasses))&&(mi([t],function(){return n.dropTargetStyle},function(){return S}),hi([t],function(){return k},function(){return S})),n.dropTargetStyle=k,n.dropTargetClasses=oi(S);function me(ie,Ce){return pt.get(ie)?pt.get(ie)[Ce]:n[Ce]}Ta&&n.dropFromOthersDisabled!==_&&(_?mi([t],function(ie){return me(ie,"dropTargetStyle")},function(ie){return me(ie,"dropTargetClasses")}):hi([t],function(ie){return me(ie,"dropTargetStyle")},function(ie){return me(ie,"dropTargetClasses")})),n.dropFromOthersDisabled=_,pt.set(t,n);for(var X=yi(n.items),z=function(Ce){var xe=t.children[Ce];if(Qv(xe,x),Ce===X)return C||Kv(kt,xe,en.x,en.y,function(){return n.transformDraggedElement(kt,Zt,Ce)}),Jv(xe),"continue";xe.removeEventListener("mousedown",us.get(xe)),xe.removeEventListener("touchstart",us.get(xe)),x||(xe.addEventListener("mousedown",s),xe.addEventListener("touchstart",s),us.set(xe,s)),a.set(xe,Ce)},he=0;he".concat(e,"