From 6f021c7c3d921d6a47fb59424d55cb5184bd2d03 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 11:53:54 +0000 Subject: [PATCH] Deploy to GitHub pages --- assets/index-CMlHnHVL.css | 1 + assets/index-mkX8Z2QT.js | 22 ++++++++++++++++++++++ index.html | 13 +++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 assets/index-CMlHnHVL.css create mode 100644 assets/index-mkX8Z2QT.js create mode 100644 index.html diff --git a/assets/index-CMlHnHVL.css b/assets/index-CMlHnHVL.css new file mode 100644 index 0000000..3e512a5 --- /dev/null +++ b/assets/index-CMlHnHVL.css @@ -0,0 +1 @@ +.vue-grid-item{box-sizing:border-box;touch-action:none;background-color:#f2f2f2;transition:all .2s ease;transition-property:left,top,right}.vue-grid-item.no-touch{touch-action:none}.vue-grid-item.css-transforms{right:auto;left:0;transition-property:transform}.vue-grid-item.resizing{z-index:3;opacity:.6}.vue-grid-item.vue-draggable-dragging{z-index:3;transition:none}.vue-grid-item.vue-grid-placeholder{z-index:2;-webkit-user-select:none;user-select:none;background:red;opacity:.2;transition-duration:.1s}.vue-grid-item>.vue-resizable-handle{position:absolute;right:0;bottom:0;z-index:20;box-sizing:border-box;width:20px;height:20px;padding:0 3px 3px 0;cursor:se-resize;background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3csvg%20id='Untitled-Page%25201'%20viewBox='0%200%206%206'%20style='background-color:%23ffffff00'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20x='0px'%20y='0px'%20width='6px'%20height='6px'%20%3e%3cg%20opacity='0.302'%3e%3cpath%20d='M%206%206%20L%200%206%20L%200%204.2%20L%204%204.2%20L%204.2%204.2%20L%204.2%200%20L%206%200%20L%206%206%20L%206%206%20Z'%20fill='%23000000'/%3e%3c/g%3e%3c/svg%3e");background-repeat:no-repeat;background-position:bottom right;background-origin:content-box}.vue-grid-item.disable-user-select{-webkit-user-select:none;user-select:none}.vue-grid-layout{position:relative;transition:height .2s ease} diff --git a/assets/index-mkX8Z2QT.js b/assets/index-mkX8Z2QT.js new file mode 100644 index 0000000..779b305 --- /dev/null +++ b/assets/index-mkX8Z2QT.js @@ -0,0 +1,22 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/** +* @vue/shared v3.4.14 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Ei(e,t){const n=new Set(e.split(","));return t?i=>n.has(i.toLowerCase()):i=>n.has(i)}const ue={},It=[],Le=()=>{},Is=()=>!1,Cn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ti=e=>e.startsWith("onUpdate:"),Ee=Object.assign,Si=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Cs=Object.prototype.hasOwnProperty,ie=(e,t)=>Cs.call(e,t),Y=Array.isArray,Ct=e=>Mn(e)==="[object Map]",Xo=e=>Mn(e)==="[object Set]",X=e=>typeof e=="function",xe=e=>typeof e=="string",Ft=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",Jo=e=>(pe(e)||X(e))&&X(e.then)&&X(e.catch),Zo=Object.prototype.toString,Mn=e=>Zo.call(e),Ms=e=>Mn(e).slice(8,-1),Qo=e=>Mn(e)==="[object Object]",Oi=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pn=Ei(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},As=/-(\w)/g,Ve=An(e=>e.replace(As,(t,n)=>n?n.toUpperCase():"")),Rs=/\B([A-Z])/g,jt=An(e=>e.replace(Rs,"-$1").toLowerCase()),Rn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),Un=An(e=>e?`on${Rn(e)}`:""),lt=(e,t)=>!Object.is(e,t),Vn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ds=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ji;const er=()=>Ji||(Ji=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function on(e){if(Y(e)){const t={};for(let n=0;n{if(n){const i=n.split(Ls);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Xt(e){let t="";if(xe(e))t=e;else if(Y(e))for(let n=0;nxe(e)?e:e==null?"":Y(e)||pe(e)&&(e.toString===Zo||!X(e.toString))?JSON.stringify(e,nr,2):String(e),nr=(e,t)=>t&&t.__v_isRef?nr(e,t.value):Ct(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o],r)=>(n[Kn(i,r)+" =>"]=o,n),{})}:Xo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Kn(n))}:Ft(t)?Kn(t):pe(t)&&!Y(t)&&!Qo(t)?String(t):t,Kn=(e,t="")=>{var n;return Ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.14 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let He;class ks{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=He,!t&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=He;try{return He=this,t()}finally{He=n}}}on(){He=this}off(){He=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),Et()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ot,n=yt;try{return ot=!0,yt=this,this._runnings++,Zi(this),this.fn()}finally{Qi(this),this._runnings--,yt=n,ot=t}}stop(){var t;this.active&&(Zi(this),Qi(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Us(e){return e.value}function Zi(e){e._trackId++,e._depsLength=0}function Qi(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},ii=new WeakMap,bt=Symbol(""),oi=Symbol("");function Ae(e,t,n){if(ot&&yt){let i=ii.get(e);i||ii.set(e,i=new Map);let o=i.get(n);o||i.set(n,o=lr(()=>i.delete(n))),rr(yt,o)}}function qe(e,t,n,i,o,r){const s=ii.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&Y(e)){const a=Number(i);s.forEach((c,d)=>{(d==="length"||!Ft(d)&&d>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":Y(e)?Oi(n)&&l.push(s.get("length")):(l.push(s.get(bt)),Ct(e)&&l.push(s.get(oi)));break;case"delete":Y(e)||(l.push(s.get(bt)),Ct(e)&&l.push(s.get(oi)));break;case"set":Ct(e)&&l.push(s.get(bt));break}Ii();for(const a of l)a&&sr(a,2);Ci()}const Vs=Ei("__proto__,__v_isRef,__isVue"),cr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ft)),eo=Ks();function Ks(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=oe(this);for(let r=0,s=this.length;r{e[t]=function(...n){_t(),Ii();const i=oe(this)[t].apply(this,n);return Ci(),Et(),i}}),e}function Gs(e){const t=oe(this);return Ae(t,"has",e),t.hasOwnProperty(e)}class ar{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,i){const o=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return i===(o?r?sl:hr:r?dr:fr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const s=Y(t);if(!o){if(s&&ie(eo,n))return Reflect.get(eo,n,i);if(n==="hasOwnProperty")return Gs}const l=Reflect.get(t,n,i);return(Ft(n)?cr.has(n):Vs(n))||(o||Ae(t,"get",n),r)?l:Re(l)?s&&Oi(n)?l:l.value:pe(l)?o?pr(l):Nn(l):l}}class ur extends ar{constructor(t=!1){super(!1,t)}set(t,n,i,o){let r=t[n];if(!this._shallow){const a=Dt(r);if(!yn(i)&&!Dt(i)&&(r=oe(r),i=oe(i)),!Y(t)&&Re(r)&&!Re(i))return a?!1:(r.value=i,!0)}const s=Y(t)&&Oi(n)?Number(n)e,Dn=e=>Reflect.getPrototypeOf(e);function ln(e,t,n=!1,i=!1){e=e.__v_raw;const o=oe(e),r=oe(t);n||(lt(t,r)&&Ae(o,"get",t),Ae(o,"get",r));const{has:s}=Dn(o),l=i?Mi:n?Di:Jt;if(s.call(o,t))return l(e.get(t));if(s.call(o,r))return l(e.get(r));e!==o&&e.get(t)}function cn(e,t=!1){const n=this.__v_raw,i=oe(n),o=oe(e);return t||(lt(e,o)&&Ae(i,"has",e),Ae(i,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function an(e,t=!1){return e=e.__v_raw,!t&&Ae(oe(e),"iterate",bt),Reflect.get(e,"size",e)}function to(e){e=oe(e);const t=oe(this);return Dn(t).has.call(t,e)||(t.add(e),qe(t,"add",e,e)),this}function no(e,t){t=oe(t);const n=oe(this),{has:i,get:o}=Dn(n);let r=i.call(n,e);r||(e=oe(e),r=i.call(n,e));const s=o.call(n,e);return n.set(e,t),r?lt(t,s)&&qe(n,"set",e,t):qe(n,"add",e,t),this}function io(e){const t=oe(this),{has:n,get:i}=Dn(t);let o=n.call(t,e);o||(e=oe(e),o=n.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return o&&qe(t,"delete",e,void 0),r}function oo(){const e=oe(this),t=e.size!==0,n=e.clear();return t&&qe(e,"clear",void 0,void 0),n}function un(e,t){return function(i,o){const r=this,s=r.__v_raw,l=oe(s),a=t?Mi:e?Di:Jt;return!e&&Ae(l,"iterate",bt),s.forEach((c,d)=>i.call(o,a(c),a(d),r))}}function fn(e,t,n){return function(...i){const o=this.__v_raw,r=oe(o),s=Ct(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=o[e](...i),d=n?Mi:t?Di:Jt;return!t&&Ae(r,"iterate",a?oi:bt),{next(){const{value:h,done:b}=c.next();return b?{value:h,done:b}:{value:l?[d(h[0]),d(h[1])]:d(h),done:b}},[Symbol.iterator](){return this}}}}function Je(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Zs(){const e={get(r){return ln(this,r)},get size(){return an(this)},has:cn,add:to,set:no,delete:io,clear:oo,forEach:un(!1,!1)},t={get(r){return ln(this,r,!1,!0)},get size(){return an(this)},has:cn,add:to,set:no,delete:io,clear:oo,forEach:un(!1,!0)},n={get(r){return ln(this,r,!0)},get size(){return an(this,!0)},has(r){return cn.call(this,r,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:un(!0,!1)},i={get(r){return ln(this,r,!0,!0)},get size(){return an(this,!0)},has(r){return cn.call(this,r,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:un(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=fn(r,!1,!1),n[r]=fn(r,!0,!1),t[r]=fn(r,!1,!0),i[r]=fn(r,!0,!0)}),[e,n,t,i]}const[Qs,el,tl,nl]=Zs();function Ai(e,t){const n=t?e?nl:tl:e?el:Qs;return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(ie(n,o)&&o in i?n:i,o,r)}const il={get:Ai(!1,!1)},ol={get:Ai(!1,!0)},rl={get:Ai(!0,!1)},fr=new WeakMap,dr=new WeakMap,hr=new WeakMap,sl=new WeakMap;function ll(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function cl(e){return e.__v_skip||!Object.isExtensible(e)?0:ll(Ms(e))}function Nn(e){return Dt(e)?e:Ri(e,!1,Ys,il,fr)}function al(e){return Ri(e,!1,Js,ol,dr)}function pr(e){return Ri(e,!0,Xs,rl,hr)}function Ri(e,t,n,i,o){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const s=cl(e);if(s===0)return e;const l=new Proxy(e,s===2?i:n);return o.set(e,l),l}function Mt(e){return Dt(e)?Mt(e.__v_raw):!!(e&&e.__v_isReactive)}function Dt(e){return!!(e&&e.__v_isReadonly)}function yn(e){return!!(e&&e.__v_isShallow)}function gr(e){return Mt(e)||Dt(e)}function oe(e){const t=e&&e.__v_raw;return t?oe(t):e}function mr(e){return vn(e,"__v_skip",!0),e}const Jt=e=>pe(e)?Nn(e):e,Di=e=>pe(e)?pr(e):e;class vr{constructor(t,n,i,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Pi(()=>t(this._value),()=>ri(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=oe(this);return(!t._cacheable||t.effect.dirty)&<(t._value,t._value=t.effect.run())&&ri(t,2),yr(t),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ul(e,t,n=!1){let i,o;const r=X(e);return r?(i=e,o=Le):(i=e.get,o=e.set),new vr(i,o,r||!o,n)}function yr(e){ot&&yt&&(e=oe(e),rr(yt,e.dep||(e.dep=lr(()=>e.dep=void 0,e instanceof vr?e:void 0))))}function ri(e,t=2,n){e=oe(e);const i=e.dep;i&&sr(i,t)}function Re(e){return!!(e&&e.__v_isRef===!0)}function me(e){return fl(e,!1)}function fl(e,t){return Re(e)?e:new dl(e,t)}class dl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:oe(t),this._value=n?t:Jt(t)}get value(){return yr(this),this._value}set value(t){const n=this.__v_isShallow||yn(t)||Dt(t);t=n?t:oe(t),lt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Jt(t),ri(this,2))}}function bn(e){return Re(e)?e.value:e}const hl={get:(e,t,n)=>bn(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return Re(o)&&!Re(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function br(e){return Mt(e)?e:new Proxy(e,hl)}/** +* @vue/runtime-core v3.4.14 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function rt(e,t,n,i){let o;try{o=i?e(...i):e()}catch(r){Ln(r,t,n)}return o}function ze(e,t,n,i){if(X(e)){const r=rt(e,t,n,i);return r&&Jo(r)&&r.catch(s=>{Ln(s,t,n)}),r}const o=[];for(let r=0;r>>1,o=Se[i],r=Qt(o);rUe&&Se.splice(t,1)}function vl(e){Y(e)?At.push(...e):(!tt||!tt.includes(e,e.allowRecurse?mt+1:mt))&&At.push(e),xr()}function ro(e,t,n=Zt?Ue+1:0){for(;nQt(n)-Qt(i));if(At.length=0,tt){tt.push(...t);return}for(tt=t,mt=0;mte.id==null?1/0:e.id,yl=(e,t)=>{const n=Qt(e)-Qt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Er(e){si=!1,Zt=!0,Se.sort(yl);try{for(Ue=0;Uexe(g)?g.trim():g)),h&&(o=n.map(Ds))}let l,a=i[l=Un(t)]||i[l=Un(Ve(t))];!a&&r&&(a=i[l=Un(jt(t))]),a&&ze(a,e,6,o);const c=i[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ze(c,e,6,o)}}function Tr(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(o!==void 0)return o;const r=e.emits;let s={},l=!1;if(!X(e)){const a=c=>{const d=Tr(c,t,!0);d&&(l=!0,Ee(s,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(pe(e)&&i.set(e,null),null):(Y(r)?r.forEach(a=>s[a]=null):Ee(s,r),pe(e)&&i.set(e,s),s)}function Fn(e,t){return!e||!Cn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,jt(t))||ie(e,t))}let _e=null,Sr=null;function wn(e){const t=_e;return _e=e,Sr=e&&e.type.__scopeId||null,t}function Fi(e,t=_e,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&vo(-1);const r=wn(t);let s;try{s=e(...o)}finally{wn(r),i._d&&vo(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function Gn(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:r,propsOptions:[s],slots:l,attrs:a,emit:c,render:d,renderCache:h,data:b,setupState:g,ctx:_,inheritAttrs:j}=e;let $,A;const F=wn(e);try{if(n.shapeFlag&4){const x=o||i,p=x;$=Be(d.call(p,x,h,r,g,b,_)),A=a}else{const x=t;$=Be(x.length>1?x(r,{attrs:a,slots:l,emit:c}):x(r,null)),A=t.props?a:wl(a)}}catch(x){qt.length=0,Ln(x,e,1),$=Fe(ct)}let R=$;if(A&&j!==!1){const x=Object.keys(A),{shapeFlag:p}=R;x.length&&p&7&&(s&&x.some(Ti)&&(A=xl(A,s)),R=Nt(R,A))}return n.dirs&&(R=Nt(R),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&(R.transition=n.transition),$=R,wn(F),$}const wl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Cn(n))&&((t||(t={}))[n]=e[n]);return t},xl=(e,t)=>{const n={};for(const i in e)(!Ti(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function _l(e,t,n){const{props:i,children:o,component:r}=e,{props:s,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?so(i,s,c):!!s;if(a&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function Il(e,t){t&&t.pendingBranch?Y(e)?t.effects.push(...e):t.effects.push(e):vl(e)}const Cl=Symbol.for("v-scx"),Ml=()=>Gt(Cl),dn={};function de(e,t,n){return Pr(e,t,n)}function Pr(e,t,{immediate:n,deep:i,flush:o,once:r,onTrack:s,onTrigger:l}=ue){if(t&&r){const D=t;t=(...C)=>{D(...C),p()}}const a=Oe,c=D=>i===!0?D:vt(D,i===!1?1:void 0);let d,h=!1,b=!1;if(Re(e)?(d=()=>e.value,h=yn(e)):Mt(e)?(d=()=>c(e),h=!0):Y(e)?(b=!0,h=e.some(D=>Mt(D)||yn(D)),d=()=>e.map(D=>{if(Re(D))return D.value;if(Mt(D))return c(D);if(X(D))return rt(D,a,2)})):X(e)?t?d=()=>rt(e,a,2):d=()=>(g&&g(),ze(e,a,3,[_])):d=Le,t&&i){const D=d;d=()=>vt(D())}let g,_=D=>{g=R.onStop=()=>{rt(D,a,4),g=R.onStop=void 0}},j;if(zn)if(_=Le,t?n&&ze(t,a,3,[d(),b?[]:void 0,_]):d(),o==="sync"){const D=Ml();j=D.__watcherHandles||(D.__watcherHandles=[])}else return Le;let $=b?new Array(e.length).fill(dn):dn;const A=()=>{if(!(!R.active||!R.dirty))if(t){const D=R.run();(i||h||(b?D.some((C,K)=>lt(C,$[K])):lt(D,$)))&&(g&&g(),ze(t,a,3,[D,$===dn?void 0:b&&$[0]===dn?[]:$,_]),$=D)}else R.run()};A.allowRecurse=!!t;let F;o==="sync"?F=A:o==="post"?F=()=>Me(A,a&&a.suspense):(A.pre=!0,a&&(A.id=a.uid),F=()=>Li(A));const R=new Pi(d,Le,F),x=Bs(),p=()=>{R.stop(),x&&Si(x.effects,R)};return t?n?A():$=R.run():o==="post"?Me(R.run.bind(R),a&&a.suspense):R.run(),j&&j.push(p),p}function Al(e,t,n){const i=this.proxy,o=xe(e)?e.includes(".")?Ir(i,e):()=>i[e]:e.bind(i,i);let r;X(t)?r=t:(r=t.handler,n=t);const s=rn(this),l=Pr(o,r.bind(i),n);return s(),l}function Ir(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o0){if(n>=t)return e;n++}if(i=i||new Set,i.has(e))return e;if(i.add(e),Re(e))vt(e.value,t,n,i);else if(Y(e))for(let o=0;o{vt(o,t,n,i)});else if(Qo(e))for(const o in e)vt(e[o],t,n,i);return e}function Rl(e,t){if(_e===null)return e;const n=kn(_e)||_e.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o!!e.type.__asyncLoader,Cr=e=>e.type.__isKeepAlive;function Dl(e,t){Mr(e,"a",t)}function Nl(e,t){Mr(e,"da",t)}function Mr(e,t,n=Oe){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(jn(t,i,n),n){let o=n.parent;for(;o&&o.parent;)Cr(o.parent.vnode)&&Ll(i,t,n,o),o=o.parent}}function Ll(e,t,n,i){const o=jn(t,e,i,!0);Rr(()=>{Si(i[t],o)},n)}function jn(e,t,n=Oe,i=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;_t();const l=rn(n),a=ze(t,n,e,s);return l(),Et(),a});return i?o.unshift(r):o.push(r),r}}const Ye=e=>(t,n=Oe)=>(!zn||e==="sp")&&jn(e,(...i)=>t(...i),n),Ar=Ye("bm"),Hi=Ye("m"),Fl=Ye("bu"),jl=Ye("u"),$i=Ye("bum"),Rr=Ye("um"),Hl=Ye("sp"),$l=Ye("rtg"),zl=Ye("rtc");function kl(e,t=Oe){jn("ec",e,t)}function Wl(e,t,n,i){let o;const r=n&&n[i];if(Y(e)||xe(e)){o=new Array(e.length);for(let s=0,l=e.length;st(s,l,void 0,r&&r[l]));else{const s=Object.keys(e);o=new Array(s.length);for(let l=0,a=s.length;lVr(t)?!(t.type===ct||t.type===De&&!Dr(t.children)):!0)?e:null}const ci=e=>e?Gr(e)?kn(e)||e.proxy:ci(e.parent):null,Kt=Ee(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ci(e.parent),$root:e=>ci(e.root),$emit:e=>e.emit,$options:e=>zi(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Li(e.update)}),$nextTick:e=>e.n||(e.n=Ke.bind(e.proxy)),$watch:e=>Al.bind(e)}),qn=(e,t)=>e!==ue&&!e.__isScriptSetup&&ie(e,t),Bl={get({_:e},t){const{ctx:n,setupState:i,data:o,props:r,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(qn(i,t))return s[t]=1,i[t];if(o!==ue&&ie(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&ie(c,t))return s[t]=3,r[t];if(n!==ue&&ie(n,t))return s[t]=4,n[t];ai&&(s[t]=0)}}const d=Kt[t];let h,b;if(d)return t==="$attrs"&&Ae(e,"get",t),d(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==ue&&ie(n,t))return s[t]=4,n[t];if(b=a.config.globalProperties,ie(b,t))return b[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:r}=e;return qn(o,t)?(o[t]=n,!0):i!==ue&&ie(i,t)?(i[t]=n,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:r}},s){let l;return!!n[s]||e!==ue&&ie(e,s)||qn(t,s)||(l=r[0])&&ie(l,s)||ie(i,s)||ie(Kt,s)||ie(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function co(e){return Y(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ai=!0;function Ul(e){const t=zi(e),n=e.proxy,i=e.ctx;ai=!1,t.beforeCreate&&ao(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:l,provide:a,inject:c,created:d,beforeMount:h,mounted:b,beforeUpdate:g,updated:_,activated:j,deactivated:$,beforeDestroy:A,beforeUnmount:F,destroyed:R,unmounted:x,render:p,renderTracked:D,renderTriggered:C,errorCaptured:K,serverPrefetch:le,expose:G,inheritAttrs:ee,components:q,directives:te,filters:fe}=t;if(c&&Vl(c,i,null),s)for(const P in s){const I=s[P];X(I)&&(i[P]=I.bind(n))}if(o){const P=o.call(n,n);pe(P)&&(e.data=Nn(P))}if(ai=!0,r)for(const P in r){const I=r[P],B=X(I)?I.bind(n,n):X(I.get)?I.get.bind(n,n):Le,re=!X(I)&&X(I.set)?I.set.bind(n):Le,se=Yt({get:B,set:re});Object.defineProperty(i,P,{enumerable:!0,configurable:!0,get:()=>se.value,set:H=>se.value=H})}if(l)for(const P in l)Nr(l[P],i,n,P);if(a){const P=X(a)?a.call(n):a;Reflect.ownKeys(P).forEach(I=>{Fr(I,P[I])})}d&&ao(d,e,"c");function w(P,I){Y(I)?I.forEach(B=>P(B.bind(n))):I&&P(I.bind(n))}if(w(Ar,h),w(Hi,b),w(Fl,g),w(jl,_),w(Dl,j),w(Nl,$),w(kl,K),w(zl,D),w($l,C),w($i,F),w(Rr,x),w(Hl,le),Y(G))if(G.length){const P=e.exposed||(e.exposed={});G.forEach(I=>{Object.defineProperty(P,I,{get:()=>n[I],set:B=>n[I]=B})})}else e.exposed||(e.exposed={});p&&e.render===Le&&(e.render=p),ee!=null&&(e.inheritAttrs=ee),q&&(e.components=q),te&&(e.directives=te)}function Vl(e,t,n=Le){Y(e)&&(e=ui(e));for(const i in e){const o=e[i];let r;pe(o)?"default"in o?r=Gt(o.from||i,o.default,!0):r=Gt(o.from||i):r=Gt(o),Re(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[i]=r}}function ao(e,t,n){ze(Y(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Nr(e,t,n,i){const o=i.includes(".")?Ir(n,i):()=>n[i];if(xe(e)){const r=t[e];X(r)&&de(o,r)}else if(X(e))de(o,e.bind(n));else if(pe(e))if(Y(e))e.forEach(r=>Nr(r,t,n,i));else{const r=X(e.handler)?e.handler.bind(n):t[e.handler];X(r)&&de(o,r,e)}}function zi(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,l=r.get(t);let a;return l?a=l:!o.length&&!n&&!i?a=t:(a={},o.length&&o.forEach(c=>xn(a,c,s,!0)),xn(a,t,s)),pe(t)&&r.set(t,a),a}function xn(e,t,n,i=!1){const{mixins:o,extends:r}=t;r&&xn(e,r,n,!0),o&&o.forEach(s=>xn(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const l=Kl[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Kl={data:uo,props:fo,emits:fo,methods:Bt,computed:Bt,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:Bt,directives:Bt,watch:ql,provide:uo,inject:Gl};function uo(e,t){return t?e?function(){return Ee(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Gl(e,t){return Bt(ui(e),ui(t))}function ui(e){if(Y(e)){const t={};for(let n=0;n1)return n&&X(t)?t.call(i&&i.proxy):t}}function Jl(e,t,n,i=!1){const o={},r={};vn(r,$n,1),e.propsDefaults=Object.create(null),jr(e,t,o,r);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=i?o:al(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Zl(e,t,n,i){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,l=oe(o),[a]=e.propsOptions;let c=!1;if((i||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let h=0;h{a=!0;const[b,g]=Hr(h,t,!0);Ee(s,b),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!a)return pe(e)&&i.set(e,It),It;if(Y(r))for(let d=0;d-1,g[1]=j<0||_-1||ie(g,"default"))&&l.push(h)}}}const c=[s,l];return pe(e)&&i.set(e,c),c}function ho(e){return e[0]!=="$"}function po(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function go(e,t){return po(e)===po(t)}function mo(e,t){return Y(t)?t.findIndex(n=>go(n,e)):X(t)&&go(t,e)?0:-1}const $r=e=>e[0]==="_"||e==="$stable",ki=e=>Y(e)?e.map(Be):[Be(e)],Ql=(e,t,n)=>{if(t._n)return t;const i=Fi((...o)=>ki(t(...o)),n);return i._c=!1,i},zr=(e,t,n)=>{const i=e._ctx;for(const o in e){if($r(o))continue;const r=e[o];if(X(r))t[o]=Ql(o,r,i);else if(r!=null){const s=ki(r);t[o]=()=>s}}},kr=(e,t)=>{const n=ki(t);e.slots.default=()=>n},ec=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=oe(t),vn(t,"_",n)):zr(t,e.slots={})}else e.slots={},t&&kr(e,t);vn(e.slots,$n,1)},tc=(e,t,n)=>{const{vnode:i,slots:o}=e;let r=!0,s=ue;if(i.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(Ee(o,t),!n&&l===1&&delete o._):(r=!t.$stable,zr(t,o)),s=t}else t&&(kr(e,t),s={default:1});if(r)for(const l in o)!$r(l)&&s[l]==null&&delete o[l]};function di(e,t,n,i,o=!1){if(Y(e)){e.forEach((b,g)=>di(b,t&&(Y(t)?t[g]:t),n,i,o));return}if(Vt(i)&&!o)return;const r=i.shapeFlag&4?kn(i.component)||i.component.proxy:i.el,s=o?null:r,{i:l,r:a}=e,c=t&&t.r,d=l.refs===ue?l.refs={}:l.refs,h=l.setupState;if(c!=null&&c!==a&&(xe(c)?(d[c]=null,ie(h,c)&&(h[c]=null)):Re(c)&&(c.value=null)),X(a))rt(a,l,12,[s,d]);else{const b=xe(a),g=Re(a);if(b||g){const _=()=>{if(e.f){const j=b?ie(h,a)?h[a]:d[a]:a.value;o?Y(j)&&Si(j,r):Y(j)?j.includes(r)||j.push(r):b?(d[a]=[r],ie(h,a)&&(h[a]=d[a])):(a.value=[r],e.k&&(d[e.k]=a.value))}else b?(d[a]=s,ie(h,a)&&(h[a]=s)):g&&(a.value=s,e.k&&(d[e.k]=s))};s?(_.id=-1,Me(_,n)):_()}}}const Me=Il;function nc(e){return ic(e)}function ic(e,t){const n=er();n.__VUE__=!0;const{insert:i,remove:o,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:d,parentNode:h,nextSibling:b,setScopeId:g=Le,insertStaticContent:_}=e,j=(u,f,m,y=null,v=null,T=null,M=void 0,S=null,O=!!f.dynamicChildren)=>{if(u===f)return;u&&!Ht(u,f)&&(y=je(u),H(u,v,T,!0),u=null),f.patchFlag===-2&&(O=!1,f.dynamicChildren=null);const{type:E,ref:L,shapeFlag:W}=f;switch(E){case Hn:$(u,f,m,y);break;case ct:A(u,f,m,y);break;case Xn:u==null&&F(f,m,y,M);break;case De:q(u,f,m,y,v,T,M,S,O);break;default:W&1?p(u,f,m,y,v,T,M,S,O):W&6?te(u,f,m,y,v,T,M,S,O):(W&64||W&128)&&E.process(u,f,m,y,v,T,M,S,O,Q)}L!=null&&v&&di(L,u&&u.ref,T,f||u,!f)},$=(u,f,m,y)=>{if(u==null)i(f.el=l(f.children),m,y);else{const v=f.el=u.el;f.children!==u.children&&c(v,f.children)}},A=(u,f,m,y)=>{u==null?i(f.el=a(f.children||""),m,y):f.el=u.el},F=(u,f,m,y)=>{[u.el,u.anchor]=_(u.children,f,m,y,u.el,u.anchor)},R=({el:u,anchor:f},m,y)=>{let v;for(;u&&u!==f;)v=b(u),i(u,m,y),u=v;i(f,m,y)},x=({el:u,anchor:f})=>{let m;for(;u&&u!==f;)m=b(u),o(u),u=m;o(f)},p=(u,f,m,y,v,T,M,S,O)=>{f.type==="svg"?M="svg":f.type==="math"&&(M="mathml"),u==null?D(f,m,y,v,T,M,S,O):le(u,f,v,T,M,S,O)},D=(u,f,m,y,v,T,M,S)=>{let O,E;const{props:L,shapeFlag:W,transition:k,dirs:U}=u;if(O=u.el=s(u.type,T,L&&L.is,L),W&8?d(O,u.children):W&16&&K(u.children,O,null,y,v,Yn(u,T),M,S),U&&ft(u,null,y,"created"),C(O,u,u.scopeId,M,y),L){for(const V in L)V!=="value"&&!pn(V)&&r(O,V,null,L[V],T,u.children,y,v,Te);"value"in L&&r(O,"value",null,L.value,T),(E=L.onVnodeBeforeMount)&&We(E,y,u)}U&&ft(u,null,y,"beforeMount");const Z=oc(v,k);Z&&k.beforeEnter(O),i(O,f,m),((E=L&&L.onVnodeMounted)||Z||U)&&Me(()=>{E&&We(E,y,u),Z&&k.enter(O),U&&ft(u,null,y,"mounted")},v)},C=(u,f,m,y,v)=>{if(m&&g(u,m),y)for(let T=0;T{for(let E=O;E{const S=f.el=u.el;let{patchFlag:O,dynamicChildren:E,dirs:L}=f;O|=u.patchFlag&16;const W=u.props||ue,k=f.props||ue;let U;if(m&&dt(m,!1),(U=k.onVnodeBeforeUpdate)&&We(U,m,f,u),L&&ft(f,u,m,"beforeUpdate"),m&&dt(m,!0),E?G(u.dynamicChildren,E,S,m,y,Yn(f,v),T):M||I(u,f,S,null,m,y,Yn(f,v),T,!1),O>0){if(O&16)ee(S,f,W,k,m,y,v);else if(O&2&&W.class!==k.class&&r(S,"class",null,k.class,v),O&4&&r(S,"style",W.style,k.style,v),O&8){const Z=f.dynamicProps;for(let V=0;V{U&&We(U,m,f,u),L&&ft(f,u,m,"updated")},y)},G=(u,f,m,y,v,T,M)=>{for(let S=0;S{if(m!==y){if(m!==ue)for(const S in m)!pn(S)&&!(S in y)&&r(u,S,m[S],null,M,f.children,v,T,Te);for(const S in y){if(pn(S))continue;const O=y[S],E=m[S];O!==E&&S!=="value"&&r(u,S,E,O,M,f.children,v,T,Te)}"value"in y&&r(u,"value",m.value,y.value,M)}},q=(u,f,m,y,v,T,M,S,O)=>{const E=f.el=u?u.el:l(""),L=f.anchor=u?u.anchor:l("");let{patchFlag:W,dynamicChildren:k,slotScopeIds:U}=f;U&&(S=S?S.concat(U):U),u==null?(i(E,m,y),i(L,m,y),K(f.children||[],m,L,v,T,M,S,O)):W>0&&W&64&&k&&u.dynamicChildren?(G(u.dynamicChildren,k,m,v,T,M,S),(f.key!=null||v&&f===v.subTree)&&Wr(u,f,!0)):I(u,f,m,L,v,T,M,S,O)},te=(u,f,m,y,v,T,M,S,O)=>{f.slotScopeIds=S,u==null?f.shapeFlag&512?v.ctx.activate(f,m,y,M,O):fe(f,m,y,v,T,M,O):ye(u,f,O)},fe=(u,f,m,y,v,T,M)=>{const S=u.component=pc(u,y,v);if(Cr(u)&&(S.ctx.renderer=Q),gc(S),S.asyncDep){if(v&&v.registerDep(S,w),!u.el){const O=S.subTree=Fe(ct);A(null,O,f,m)}}else w(S,u,f,m,v,T,M)},ye=(u,f,m)=>{const y=f.component=u.component;if(_l(u,f,m))if(y.asyncDep&&!y.asyncResolved){P(y,f,m);return}else y.next=f,ml(y.update),y.effect.dirty=!0,y.update();else f.el=u.el,y.vnode=f},w=(u,f,m,y,v,T,M)=>{const S=()=>{if(u.isMounted){let{next:L,bu:W,u:k,parent:U,vnode:Z}=u;{const Xe=Br(u);if(Xe){L&&(L.el=Z.el,P(u,L,M)),Xe.asyncDep.then(()=>{u.isUnmounted||S()});return}}let V=L,ne;dt(u,!1),L?(L.el=Z.el,P(u,L,M)):L=Z,W&&Vn(W),(ne=L.props&&L.props.onVnodeBeforeUpdate)&&We(ne,U,L,Z),dt(u,!0);const ae=Gn(u),we=u.subTree;u.subTree=ae,j(we,ae,h(we.el),je(we),u,v,T),L.el=ae.el,V===null&&El(u,ae.el),k&&Me(k,v),(ne=L.props&&L.props.onVnodeUpdated)&&Me(()=>We(ne,U,L,Z),v)}else{let L;const{el:W,props:k}=f,{bm:U,m:Z,parent:V}=u,ne=Vt(f);if(dt(u,!1),U&&Vn(U),!ne&&(L=k&&k.onVnodeBeforeMount)&&We(L,V,f),dt(u,!0),W&&Ce){const ae=()=>{u.subTree=Gn(u),Ce(W,u.subTree,u,v,null)};ne?f.type.__asyncLoader().then(()=>!u.isUnmounted&&ae()):ae()}else{const ae=u.subTree=Gn(u);j(null,ae,m,y,u,v,T),f.el=ae.el}if(Z&&Me(Z,v),!ne&&(L=k&&k.onVnodeMounted)){const ae=f;Me(()=>We(L,V,ae),v)}(f.shapeFlag&256||V&&Vt(V.vnode)&&V.vnode.shapeFlag&256)&&u.a&&Me(u.a,v),u.isMounted=!0,f=m=y=null}},O=u.effect=new Pi(S,Le,()=>Li(E),u.scope),E=u.update=()=>{O.dirty&&O.run()};E.id=u.uid,dt(u,!0),E()},P=(u,f,m)=>{f.component=u;const y=u.vnode.props;u.vnode=f,u.next=null,Zl(u,f.props,y,m),tc(u,f.children,m),_t(),ro(u),Et()},I=(u,f,m,y,v,T,M,S,O=!1)=>{const E=u&&u.children,L=u?u.shapeFlag:0,W=f.children,{patchFlag:k,shapeFlag:U}=f;if(k>0){if(k&128){re(E,W,m,y,v,T,M,S,O);return}else if(k&256){B(E,W,m,y,v,T,M,S,O);return}}U&8?(L&16&&Te(E,v,T),W!==E&&d(m,W)):L&16?U&16?re(E,W,m,y,v,T,M,S,O):Te(E,v,T,!0):(L&8&&d(m,""),U&16&&K(W,m,y,v,T,M,S,O))},B=(u,f,m,y,v,T,M,S,O)=>{u=u||It,f=f||It;const E=u.length,L=f.length,W=Math.min(E,L);let k;for(k=0;kL?Te(u,v,T,!0,!1,W):K(f,m,y,v,T,M,S,O,W)},re=(u,f,m,y,v,T,M,S,O)=>{let E=0;const L=f.length;let W=u.length-1,k=L-1;for(;E<=W&&E<=k;){const U=u[E],Z=f[E]=O?nt(f[E]):Be(f[E]);if(Ht(U,Z))j(U,Z,m,null,v,T,M,S,O);else break;E++}for(;E<=W&&E<=k;){const U=u[W],Z=f[k]=O?nt(f[k]):Be(f[k]);if(Ht(U,Z))j(U,Z,m,null,v,T,M,S,O);else break;W--,k--}if(E>W){if(E<=k){const U=k+1,Z=Uk)for(;E<=W;)H(u[E],v,T,!0),E++;else{const U=E,Z=E,V=new Map;for(E=Z;E<=k;E++){const Pe=f[E]=O?nt(f[E]):Be(f[E]);Pe.key!=null&&V.set(Pe.key,E)}let ne,ae=0;const we=k-Z+1;let Xe=!1,at=0;const ut=new Array(we);for(E=0;E=we){H(Pe,v,T,!0);continue}let ke;if(Pe.key!=null)ke=V.get(Pe.key);else for(ne=Z;ne<=k;ne++)if(ut[ne-Z]===0&&Ht(Pe,f[ne])){ke=ne;break}ke===void 0?H(Pe,v,T,!0):(ut[ke-Z]=E+1,ke>=at?at=ke:Xe=!0,j(Pe,f[ke],m,null,v,T,M,S,O),ae++)}const Ot=Xe?rc(ut):It;for(ne=Ot.length-1,E=we-1;E>=0;E--){const Pe=Z+E,ke=f[Pe],Xi=Pe+1{const{el:T,type:M,transition:S,children:O,shapeFlag:E}=u;if(E&6){se(u.component.subTree,f,m,y);return}if(E&128){u.suspense.move(f,m,y);return}if(E&64){M.move(u,f,m,Q);return}if(M===De){i(T,f,m);for(let W=0;WS.enter(T),v);else{const{leave:W,delayLeave:k,afterLeave:U}=S,Z=()=>i(T,f,m),V=()=>{W(T,()=>{Z(),U&&U()})};k?k(T,Z,V):V()}else i(T,f,m)},H=(u,f,m,y=!1,v=!1)=>{const{type:T,props:M,ref:S,children:O,dynamicChildren:E,shapeFlag:L,patchFlag:W,dirs:k}=u;if(S!=null&&di(S,null,m,u,!0),L&256){f.ctx.deactivate(u);return}const U=L&1&&k,Z=!Vt(u);let V;if(Z&&(V=M&&M.onVnodeBeforeUnmount)&&We(V,f,u),L&6)be(u.component,m,y);else{if(L&128){u.suspense.unmount(m,y);return}U&&ft(u,null,f,"beforeUnmount"),L&64?u.type.remove(u,f,m,v,Q,y):E&&(T!==De||W>0&&W&64)?Te(E,f,m,!1,!0):(T===De&&W&384||!v&&L&16)&&Te(O,f,m),y&&J(u)}(Z&&(V=M&&M.onVnodeUnmounted)||U)&&Me(()=>{V&&We(V,f,u),U&&ft(u,null,f,"unmounted")},m)},J=u=>{const{type:f,el:m,anchor:y,transition:v}=u;if(f===De){ge(m,y);return}if(f===Xn){x(u);return}const T=()=>{o(m),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(u.shapeFlag&1&&v&&!v.persisted){const{leave:M,delayLeave:S}=v,O=()=>M(m,T);S?S(u.el,T,O):O()}else T()},ge=(u,f)=>{let m;for(;u!==f;)m=b(u),o(u),u=m;o(f)},be=(u,f,m)=>{const{bum:y,scope:v,update:T,subTree:M,um:S}=u;y&&Vn(y),v.stop(),T&&(T.active=!1,H(M,u,f,m)),S&&Me(S,f),Me(()=>{u.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Te=(u,f,m,y=!1,v=!1,T=0)=>{for(let M=T;Mu.shapeFlag&6?je(u.component.subTree):u.shapeFlag&128?u.suspense.next():b(u.anchor||u.el);let St=!1;const z=(u,f,m)=>{u==null?f._vnode&&H(f._vnode,null,null,!0):j(f._vnode||null,u,f,null,null,null,m),St||(St=!0,ro(),_r(),St=!1),f._vnode=u},Q={p:j,um:H,m:se,r:J,mt:fe,mc:K,pc:I,pbc:G,n:je,o:e};let ce,Ce;return t&&([ce,Ce]=t(Q)),{render:z,hydrate:ce,createApp:Xl(z,ce)}}function Yn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function oc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wr(e,t,n=!1){const i=e.children,o=t.children;if(Y(i)&&Y(o))for(let r=0;r>1,e[n[l]]0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function Br(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Br(t)}const sc=e=>e.__isTeleport,De=Symbol.for("v-fgt"),Hn=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),Xn=Symbol.for("v-stc"),qt=[];let $e=null;function st(e=!1){qt.push($e=e?null:[])}function lc(){qt.pop(),$e=qt[qt.length-1]||null}let en=1;function vo(e){en+=e}function Ur(e){return e.dynamicChildren=en>0?$e||It:null,lc(),en>0&&$e&&$e.push(e),e}function tn(e,t,n,i,o,r){return Ur(nn(e,t,n,i,o,r,!0))}function Wi(e,t,n,i,o){return Ur(Fe(e,t,n,i,o,!0))}function Vr(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const $n="__vInternal",Kr=({key:e})=>e??null,gn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||Re(e)||X(e)?{i:_e,r:e,k:t,f:!!n}:e:null);function nn(e,t=null,n=null,i=0,o=null,r=e===De?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kr(t),ref:t&&gn(t),scopeId:Sr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:_e};return l?(Bi(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=xe(n)?8:16),en>0&&!s&&$e&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&$e.push(a),a}const Fe=cc;function cc(e,t=null,n=null,i=0,o=null,r=!1){if((!e||e===Sl)&&(e=ct),Vr(e)){const l=Nt(e,t,!0);return n&&Bi(l,n),en>0&&!r&&$e&&(l.shapeFlag&6?$e[$e.indexOf(e)]=l:$e.push(l)),l.patchFlag|=-2,l}if(wc(e)&&(e=e.__vccOpts),t){t=ac(t);let{class:l,style:a}=t;l&&!xe(l)&&(t.class=Xt(l)),pe(a)&&(gr(a)&&!Y(a)&&(a=Ee({},a)),t.style=on(a))}const s=xe(e)?1:Pl(e)?128:sc(e)?64:pe(e)?4:X(e)?2:0;return nn(e,t,n,i,o,s,r,!0)}function ac(e){return e?gr(e)||$n in e?Ee({},e):e:null}function Nt(e,t,n=!1){const{props:i,ref:o,patchFlag:r,children:s}=e,l=t?hi(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Kr(l),ref:t&&t.ref?n&&o?Y(o)?o.concat(gn(t)):[o,gn(t)]:gn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nt(e.ssContent),ssFallback:e.ssFallback&&Nt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function uc(e=" ",t=0){return Fe(Hn,null,e,t)}function fc(e="",t=!1){return t?(st(),Wi(ct,null,e)):Fe(ct,null,e)}function Be(e){return e==null||typeof e=="boolean"?Fe(ct):Y(e)?Fe(De,null,e.slice()):typeof e=="object"?nt(e):Fe(Hn,null,String(e))}function nt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nt(e)}function Bi(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Y(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),Bi(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!($n in t)?t._ctx=_e:o===3&&_e&&(_e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:_e},n=32):(t=String(t),i&64?(n=16,t=[uc(t)]):n=8);e.children=t,e.shapeFlag|=n}function hi(...e){const t={};for(let n=0;n{let o;return(o=e[n])||(o=e[n]=[]),o.push(i),r=>{o.length>1?o.forEach(s=>s(r)):o[0](r)}};En=t("__VUE_INSTANCE_SETTERS__",n=>Oe=n),pi=t("__VUE_SSR_SETTERS__",n=>zn=n)}const rn=e=>{const t=Oe;return En(e),e.scope.on(),()=>{e.scope.off(),En(t)}},yo=()=>{Oe&&Oe.scope.off(),En(null)};function Gr(e){return e.vnode.shapeFlag&4}let zn=!1;function gc(e,t=!1){t&&pi(t);const{props:n,children:i}=e.vnode,o=Gr(e);Jl(e,n,o,t),ec(e,i);const r=o?mc(e,t):void 0;return t&&pi(!1),r}function mc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=mr(new Proxy(e.ctx,Bl));const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?yc(e):null,r=rn(e);_t();const s=rt(i,e,0,[e.props,o]);if(Et(),r(),Jo(s)){if(s.then(yo,yo),t)return s.then(l=>{bo(e,l,t)}).catch(l=>{Ln(l,e,0)});e.asyncDep=s}else bo(e,s,t)}else qr(e,t)}function bo(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=br(t)),qr(e,n)}let wo;function qr(e,t,n){const i=e.type;if(!e.render){if(!t&&wo&&!i.render){const o=i.template||zi(e).template;if(o){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=i,c=Ee(Ee({isCustomElement:r,delimiters:l},s),a);i.render=wo(o,c)}}e.render=i.render||Le}{const o=rn(e);_t();try{Ul(e)}finally{Et(),o()}}}function vc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function yc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return vc(e)},slots:e.slots,emit:e.emit,expose:t}}function kn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(br(mr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Kt)return Kt[n](e)},has(t,n){return n in t||n in Kt}}))}function bc(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function wc(e){return X(e)&&"__vccOpts"in e}const Yt=(e,t)=>ul(e,t,zn),xc="3.4.14";/** +* @vue/runtime-dom v3.4.14 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const _c="http://www.w3.org/2000/svg",Ec="http://www.w3.org/1998/Math/MathML",it=typeof document<"u"?document:null,xo=it&&it.createElement("template"),Tc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t==="svg"?it.createElementNS(_c,e):t==="mathml"?it.createElementNS(Ec,e):it.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>it.createTextNode(e),createComment:e=>it.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>it.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{xo.innerHTML=i==="svg"?`${e}`:i==="mathml"?`${e}`:e;const l=xo.content;if(i==="svg"||i==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Sc=Symbol("_vtc");function Oc(e,t,n){const i=e[Sc];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ui=Symbol("_vod"),Pc={beforeMount(e,{value:t},{transition:n}){e[Ui]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):$t(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),$t(e,!0),i.enter(e)):i.leave(e,()=>{$t(e,!1)}):$t(e,t))},beforeUnmount(e,{value:t}){$t(e,t)}};function $t(e,t){e.style.display=t?e[Ui]:"none"}const Ic=Symbol("");function Cc(e,t,n){const i=e.style,o=i.display,r=xe(n);if(n&&!r){if(t&&!xe(t))for(const s in t)n[s]==null&&gi(i,s,"");for(const s in n)gi(i,s,n[s])}else if(r){if(t!==n){const s=i[Ic];s&&(n+=";"+s),i.cssText=n}}else t&&e.removeAttribute("style");Ui in e&&(i.display=o)}const _o=/\s*!important$/;function gi(e,t,n){if(Y(n))n.forEach(i=>gi(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Mc(e,t);_o.test(n)?e.setProperty(jt(i),n.replace(_o,""),"important"):e[i]=n}}const Eo=["Webkit","Moz","ms"],Jn={};function Mc(e,t){const n=Jn[t];if(n)return n;let i=Ve(t);if(i!=="filter"&&i in e)return Jn[t]=i;i=Rn(i);for(let o=0;oZn||(jc.then(()=>Zn=0),Zn=Date.now());function $c(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;ze(zc(i,n.value),t,5,[i])};return n.value=e,n.attached=Hc(),n}function zc(e,t){if(Y(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const Po=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,kc=(e,t,n,i,o,r,s,l,a)=>{const c=o==="svg";t==="class"?Oc(e,i,c):t==="style"?Cc(e,n,i):Cn(t)?Ti(t)||Lc(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wc(e,t,i,c))?Rc(e,t,i,r,s,l,a):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Ac(e,t,i,c))};function Wc(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Po(t)&&X(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Po(t)&&xe(n)?!1:t in e}const Bc=Ee({patchProp:kc},Tc);let Io;function Uc(){return Io||(Io=nc(Bc))}const Vc=(...e)=>{const t=Uc().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=Gc(i);if(!o)return;const r=t._component;!X(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,Kc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function Kc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Gc(e){return xe(e)?document.querySelector(e):e}const qc=ji({name:"App",data(){return{colNum:6,editable:!1,layout:[{h:2,id:0,w:2,x:0,y:0},{h:2,id:1,w:2,x:2,y:0},{h:2,id:2,w:2,x:4,y:0},{h:2,id:3,w:2,x:0,y:2},{h:2,id:4,w:2,x:2,y:2},{h:2,id:5,w:2,x:4,y:2},{h:2,id:6,w:2,x:0,y:4},{h:2,id:7,w:2,x:2,y:4},{h:2,id:8,w:2,x:4,y:4},{h:2,id:9,w:2,x:0,y:6},{h:2,id:10,w:2,x:2,y:6},{h:2,id:11,w:2,x:4,y:6}],margin:[10,10]}},computed:{rowHeight(){return(window.innerWidth-56)/4}},mounted(){setTimeout(()=>{},5e3)},methods:{bar(){this.$refs.gridLayout.alignGridItems()},containerResized(e){console.log(e)},foo(){const e=this.groupWidgetByHeightInAxis(this.layout),t=Object.keys(e),n=o=>o.reduce((r,s)=>r+s.w,0),i=(o=0,r=1)=>{if(o===t.length-1)return;const s=e[t[o]],l=n(s);if(!(l<4))return i(o+1,o+2);const c=e==null?void 0:e[t==null?void 0:t[r]];if(!c)return i(o+1,o+1);for(let d=0;d4-l||s.find(A=>A.id===h.id))continue;const g=s.map(A=>A.x),_=Array.from({length:5},(A,F)=>F);for(let A=0;A<_.length-1;A++){const F=_[A];if(!g.includes(F))continue;const R=s.find(p=>p.x===F),x=Array.from({length:R.w},()=>100);_.splice(A,R.w,...x)}const j=Math.min(..._),$=_.indexOf(j);if(_[$+1-1]!==100&&(h.x=j,h.y=+t[o]),s.push(h),h.h<=1&&c.splice(d,1),h.h>1&&(e==null?void 0:e[t==null?void 0:t[r+1]]).splice(d,1),n(s)>3)return i(o+1,o+2)}if(n(s)<4)return i(o,r+1)};i()},groupWidgetByHeightInAxis(e){const t=e.reduce((i,o)=>(i[o.y]=((i==null?void 0:i[o.y])??[]).concat(o),i),{});return Object.keys(t).reduce((i,o)=>{const r=t[o];return i[o]=(i[o]??[]).concat(r),r.forEach(s=>{for(let l=s.y;l{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};function Xc(e,t,n,i,o,r){const s=Tl("grid-layout");return st(),tn(De,null,[nn("button",{onClick:t[0]||(t[0]=(...l)=>e.bar&&e.bar(...l))}," Add "),Fe(s,{ref:"gridLayout","noc-layout":e.layout,"onUpdate:nocLayout":t[1]||(t[1]=l=>e.layout=l),"col-num":e.colNum,"row-height":e.rowHeight,onNocItemResize:e.containerResized},{gridItemContent:Fi(l=>[nn("div",null,zs(l.item.id),1)]),_:1},8,["noc-layout","col-num","row-height","onNocItemResize"])],64)}const Jc=Yc(qc,[["render",Xc]]),Yr=Symbol("$emitter");var ht=(e=>(e.DOWN="DOWN",e.LEFT="LEFT",e.RIGHT="RIGHT",e.UP="UP",e))(ht||{});const Zc=e=>{let t=0,n;for(let i=0;it&&(t=n);return t},mi=e=>{const t=Array(e.length);for(let n=0;nJSON.parse(JSON.stringify(e)),Xr=(e,t)=>!(e===t||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h),pt=(e,t)=>{if(!e)return;const n=Zr(e),i=Qr(e),o=Array(e.length);for(let r=0;r{if(n)for(;t.y>0&&!Tn(e,t);)t.y--;let i;for(;i=Tn(e,t);)t.y=i.y+i.h;return t},ta=(e,t)=>{const n=Zr(e);for(let i=0;it.cols&&(o.x=t.cols-o.w),o.x<0&&(o.x=0,o.w=t.cols),!o.isStatic)n.push(o);else for(;Tn(n,o);)o.y++}return e},Jr=(e,t)=>e.filter(n=>Xr(n,t)),Tn=(e,t)=>{for(let n=0,i=e.length;ne.filter(n=>n.id===t)[0],Zr=e=>e.filter(t=>t.isStatic),vi=(e,t,n,i,o,r,s)=>{var l;if(t.isStatic)return e;const a=t.x,c=t.y,d={DOWN:cn,RIGHT:ai};t.x=n,t.y=i,t.moved=!0;let h=Qr(e);d.UP&&(h=h.reverse());const b=Jr(h,t);if(s&&b.length)return t.x=a,t.y=c,t.moved=!1,e;for(let g=0;g_.y&&t.y-_.y>_.h/4)continue;const j=(l=Object.keys(d).filter($=>d[$]))==null?void 0:l[0];_.isStatic?e=Mo(e,_,t,o,j,r):e=Mo(e,t,_,o,j,r)}return e},Mo=(e,t,n,i,o,r)=>{if(i){const l={h:n.h,id:-1,w:n.w,x:n.x,y:Math.max(t.y-n.h,0)};if(!Tn(e,l))return vi(e,n,l.x,l.y,i,r,!1)}const s={$default:{x:n.x,y:n.y+1},[ht.LEFT]:[n.x+t.w,t.y],[ht.RIGHT]:[n.x-t.w,t.y],[ht.UP]:[n.x,n.y+t.h],[ht.DOWN]:[n.x,n.y-t.h]};if(r){const l=o===ht.LEFT||o===ht.RIGHT;if(o in s&&!(l&&t.w({height:`${i}px`,left:`${t}px`,position:"absolute",top:`${e}px`,width:`${n}px`}),ia=(e,t,n,i)=>({height:`${i}px`,position:"absolute",transform:`translate3d(${t}px,${e}px, 0)`,width:`${n}px`}),Qr=e=>[...e].sort((t,n)=>t.y===n.y&&t.x===n.x?0:t.y>n.y||t.y===n.y&&t.x>n.x?1:-1),oa=(e,t,n)=>e.trim().replace(t,n),ra=(e,t,n,i,o,r,s)=>{if(Object.prototype.hasOwnProperty.call(t,i))return mi(t[i]||[]);let l=e;const a=es(n),c=a.slice(a.indexOf(i));for(let d=0;d{const n=es(e);let[i]=n;for(let o=1;o(e[r]??1)&&(i=r)}return i},yi=(e,t)=>t[e],es=e=>Object.keys(e).sort((t,n)=>(e[t]??1)-(e[n]??1));var ts=e=>!!(e&&e.Window)&&e instanceof e.Window;let ns,Tt;function is(e){ns=e;const t=e.document.createTextNode("");t.ownerDocument!==e.document&&typeof e.wrap=="function"&&e.wrap(t)===t&&(e=e.wrap(e)),Tt=e}typeof window<"u"&&window&&is(window);function Lt(e){return ts(e)?e:(e.ownerDocument||e).defaultView||Tt.window}const la=e=>e===Tt||ts(e),ca=e=>Wn(e)&&e.nodeType===11,Wn=e=>!!e&&typeof e=="object",os=e=>typeof e=="function",aa=e=>typeof e=="number",ua=e=>typeof e=="boolean",fa=e=>typeof e=="string",da=e=>{if(!e||typeof e!="object")return!1;const t=Lt(e)||Tt;return/object|function/.test(typeof Element)?e instanceof Element||e instanceof t.Element:e.nodeType===1&&typeof e.nodeName=="string"},ha=e=>Wn(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString()),pa=e=>Wn(e)&&typeof e.length<"u"&&os(e.splice);var N={window:la,docFrag:ca,object:Wn,func:os,number:aa,bool:ua,string:fa,element:da,plainObject:ha,array:pa};const he={init:ga,document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function Pt(){}function ga(e){const t=e;he.document=t.document,he.DocumentFragment=t.DocumentFragment||Pt,he.SVGElement=t.SVGElement||Pt,he.SVGSVGElement=t.SVGSVGElement||Pt,he.SVGElementInstance=t.SVGElementInstance||Pt,he.Element=t.Element||Pt,he.HTMLElement=t.HTMLElement||he.Element,he.Event=t.Event,he.Touch=t.Touch||Pt,he.PointerEvent=t.PointerEvent||t.MSPointerEvent}const ve={init:ma,supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null};function ma(e){const t=he.Element,n=e.navigator||{};ve.supportsTouch="ontouchstart"in e||N.func(e.DocumentTouch)&&he.document instanceof e.DocumentTouch,ve.supportsPointerEvent=n.pointerEnabled!==!1&&!!he.PointerEvent,ve.isIOS=/iP(hone|od|ad)/.test(n.platform),ve.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),ve.isIe9=/MSIE 9/.test(n.userAgent),ve.isOperaMobile=n.appName==="Opera"&&ve.supportsTouch&&/Presto/.test(n.userAgent),ve.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",ve.pEventTypes=ve.supportsPointerEvent?he.PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,ve.wheelEvent=he.document&&"onmousewheel"in he.document?"mousewheel":"wheel"}function wt(e,t){if(e.contains)return e.contains(t);for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function rs(e,t){for(;N.element(e);){if(xt(e,t))return e;e=sn(e)}return null}function sn(e){let t=e.parentNode;if(N.docFrag(t)){for(;(t=t.host)&&N.docFrag(t););return t}return t}function xt(e,t){return Tt!==ns&&(t=t.replace(/\/deep\//g," ")),e[ve.prefixedMatchesSelector](t)}function Ao(e,t,n){for(;N.element(e);){if(xt(e,t))return!0;if(e=sn(e),e===n)return xt(e,t)}return!1}function Ro(e){return e.correspondingUseElement||e}function va(e){return e=e||Tt,{x:e.scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}}function ss(e){const t=e instanceof he.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}function Vi(e){const t=ss(e);if(!ve.isIOS7&&t){const n=va(Lt(e));t.left+=n.x,t.right+=n.x,t.top+=n.y,t.bottom+=n.y}return t}function Do(e){return N.string(e)?(he.document.querySelector(e),!0):!1}function Ne(e,t){for(const n in t)e[n]=t[n];return e}function ya(e,t,n){return e==="parent"?sn(n):e==="self"?t.getRect(n):rs(n,e)}function ba(e,t,n,i){let o=e;return N.string(o)?o=ya(o,t,n):N.func(o)&&(o=o(...i)),N.element(o)&&(o=Vi(o)),o}function wa(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}}function xa(e,t,n){e.left&&(t.left+=n.x),e.right&&(t.right+=n.x),e.top&&(t.top+=n.y),e.bottom&&(t.bottom+=n.y),t.width=t.right-t.left,t.height=t.bottom-t.top}function _a(e,t,n){const i=n&&e.options[n],o=i&&i.origin||e.options.origin,r=ba(o,e,t,[e&&t]);return wa(r)||{x:0,y:0}}function Rt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o=>!0,i=arguments.length>3?arguments[3]:void 0;if(i=i||{},N.string(e)&&e.search(" ")!==-1&&(e=No(e)),N.array(e))return e.forEach(o=>Rt(o,t,n,i)),i;if(N.object(e)&&(t=e,e=""),N.func(t)&&n(e))i[e]=i[e]||[],i[e].push(t);else if(N.array(t))for(const o of t)Rt(e,o,n,i);else if(N.object(t))for(const o in t){const r=No(o).map(s=>`${e}${s}`);Rt(r,t[o],n,i)}return i}function No(e){return e.trim().split(/ +/)}var Ki=(e,t)=>Math.sqrt(e*e+t*t);const Ea=["webkit","moz"];function ls(e,t){e.__set||(e.__set={});for(const n in t)Ea.some(i=>n.indexOf(i)===0)||typeof e[n]!="function"&&n!=="__set"&&Object.defineProperty(e,n,{get(){return n in e.__set?e.__set[n]:e.__set[n]=t[n]},set(i){e.__set[n]=i},configurable:!0});return e}function Qn(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp}function Ta(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp}function Sa(e,t){const n=Math.max(t.timeStamp/1e3,.001);e.page.x=t.page.x/n,e.page.y=t.page.y/n,e.client.x=t.client.x/n,e.client.y=t.client.y/n,e.timeStamp=n}function Oa(e){e.page.x=0,e.page.y=0,e.client.x=0,e.client.y=0}function cs(e){return e instanceof he.Event||e instanceof he.Touch}function Sn(e,t,n){return n=n||{},e=e||"page",n.x=t[e+"X"],n.y=t[e+"Y"],n}function Pa(e,t){return t=t||{x:0,y:0},ve.isOperaMobile&&cs(e)?(Sn("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):Sn("page",e,t),t}function Ia(e,t){return t=t||{},ve.isOperaMobile&&cs(e)?Sn("screen",e,t):Sn("client",e,t),t}function On(e){return N.number(e.pointerId)?e.pointerId:e.identifier}function Ca(e,t,n){const i=t.length>1?as(t):t[0];Pa(i,e.page),Ia(i,e.client),e.timeStamp=n}function Gi(e){const t=[];return N.array(e)?(t[0]=e[0],t[1]=e[1]):e.type==="touchend"?e.touches.length===1?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):e.touches.length===0&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t}function as(e){const t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0};for(const n of e)for(const i in t)t[i]+=n[i];for(const n in t)t[n]/=e.length;return t}function Ma(e){if(!e.length)return null;const t=Gi(e),n=Math.min(t[0].pageX,t[1].pageX),i=Math.min(t[0].pageY,t[1].pageY),o=Math.max(t[0].pageX,t[1].pageX),r=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:i,left:n,top:i,right:o,bottom:r,width:o-n,height:r-i}}function Aa(e,t){const n=t+"X",i=t+"Y",o=Gi(e),r=o[0][n]-o[1][n],s=o[0][i]-o[1][i];return Ki(r,s)}function Ra(e,t){const n=t+"X",i=t+"Y",o=Gi(e),r=o[1][n]-o[0][n],s=o[1][i]-o[0][i];return 180*Math.atan2(s,r)/Math.PI}function Da(e){return N.string(e.pointerType)?e.pointerType:N.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type||"")||e instanceof he.Touch?"touch":"mouse"}function us(e){const t=N.func(e.composedPath)?e.composedPath():e.path;return[Ro(t?t[0]:e.target),Ro(e.currentTarget)]}function zt(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}}class fs{constructor(t){this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=t}preventDefault(){}stopPropagation(){this.propagationStopped=!0}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}}Object.defineProperty(fs.prototype,"interaction",{get(){return this._interaction._proxy},set(){}});const ds=(e,t)=>{for(const n of t)e.push(n);return e},hs=e=>ds([],e),Bn=(e,t)=>{for(let n=0;ne[Bn(e,t)];let Lo=0,Ge,gt;function Na(e){if(Ge=e.requestAnimationFrame,gt=e.cancelAnimationFrame,!Ge){const t=["ms","moz","webkit","o"];for(const n of t)Ge=e[`${n}RequestAnimationFrame`],gt=e[`${n}CancelAnimationFrame`]||e[`${n}CancelRequestAnimationFrame`]}Ge=Ge&&Ge.bind(e),gt=gt&>.bind(e),Ge||(Ge=t=>{const n=Date.now(),i=Math.max(0,16-(n-Lo)),o=e.setTimeout(()=>{t(n+i)},i);return Lo=n+i,o},gt=t=>clearTimeout(t))}var La={request:e=>Ge(e),cancel:e=>gt(e),init:Na};function bi(e,t){let n=!1;return function(){return n||(Tt.console.warn(t),n=!0),e.apply(this,arguments)}}function Fa(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e}const ja=function(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):N.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault};function Ha(e,t,n){const i=e.options.preventDefault;if(i!=="never"){if(i==="always"){n.preventDefault();return}if(t.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){const o=Lt(n.target).document,r=t.getDocOptions(o);if(!(r&&r.events)||r.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||N.element(n.target)&&xt(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}}function $a(e){let{interaction:t,event:n}=e;t.interactable&&t.interactable.checkAndPreventDefault(n)}function za(e){const{Interactable:t}=e;t.prototype.preventDefault=ja,t.prototype.checkAndPreventDefault=function(n){return Ha(this,e,n)},e.interactions.docEvents.push({type:"dragstart",listener(n){for(const i of e.interactions.list)if(i.element&&(i.element===n.target||wt(i.element,n.target))){i.interactable.checkAndPreventDefault(n);return}}})}var ka={id:"core/interactablePreventDefault",install:za,listeners:["down","move","up","cancel"].reduce((e,t)=>(e[`interactions:${t}`]=$a,e),{})};function Pn(e,t){if(t.phaselessTypes[e])return!0;for(const n in t.map)if(e.indexOf(n)===0&&e.substr(n.length)in t.phases)return!0;return!1}function In(e){const t={};for(const n in e){const i=e[n];N.plainObject(i)?t[n]=In(i):N.array(i)?t[n]=hs(i):t[n]=i}return t}const ps={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};class qi extends fs{constructor(t,n,i,o,r,s,l){super(t),this.relatedTarget=null,this.screenX=void 0,this.screenY=void 0,this.button=void 0,this.buttons=void 0,this.ctrlKey=void 0,this.shiftKey=void 0,this.altKey=void 0,this.metaKey=void 0,this.page=void 0,this.client=void 0,this.delta=void 0,this.rect=void 0,this.x0=void 0,this.y0=void 0,this.t0=void 0,this.dt=void 0,this.duration=void 0,this.clientX0=void 0,this.clientY0=void 0,this.velocity=void 0,this.speed=void 0,this.swipe=void 0,this.axes=void 0,this.preEnd=void 0,r=r||t.element;const a=t.interactable,c=(a&&a.options||ps).deltaSource,d=_a(a,r,i),h=o==="start",b=o==="end",g=h?this:t.prevEvent,_=h?t.coords.start:b?{page:g.page,client:g.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;this.page=Ne({},_.page),this.client=Ne({},_.client),this.rect=Ne({},t.rect),this.timeStamp=_.timeStamp,b||(this.page.x-=d.x,this.page.y-=d.y,this.client.x-=d.x,this.client.y-=d.y),this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.button=n.button,this.buttons=n.buttons,this.target=r,this.currentTarget=r,this.preEnd=s,this.type=l||i+(o||""),this.interactable=a,this.t0=h?t.pointers[t.pointers.length-1].downTime:g.t0,this.x0=t.coords.start.page.x-d.x,this.y0=t.coords.start.page.y-d.y,this.clientX0=t.coords.start.client.x-d.x,this.clientY0=t.coords.start.client.y-d.y,h||b?this.delta={x:0,y:0}:this.delta={x:this[c].x-g[c].x,y:this[c].y-g[c].y},this.dt=t.coords.delta.timeStamp,this.duration=this.timeStamp-this.t0,this.velocity=Ne({},t.coords.velocity[c]),this.speed=Ki(this.velocity.x,this.velocity.y),this.swipe=b||o==="inertiastart"?this.getSwipe():null}getSwipe(){const t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;let n=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;const i=22.5;n<0&&(n+=360);const o=135-i<=n&&n<225+i,r=225-i<=n&&n<315+i,s=!o&&(315-i<=n||n<45+i),l=!r&&45-i<=n&&n<135+i;return{up:r,down:l,left:o,right:s,angle:n,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}preventDefault(){}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}stopPropagation(){this.propagationStopped=!0}}Object.defineProperties(qi.prototype,{pageX:{get(){return this.page.x},set(e){this.page.x=e}},pageY:{get(){return this.page.y},set(e){this.page.y=e}},clientX:{get(){return this.client.x},set(e){this.client.x=e}},clientY:{get(){return this.client.y},set(e){this.client.y=e}},dx:{get(){return this.delta.x},set(e){this.delta.x=e}},dy:{get(){return this.delta.y},set(e){this.delta.y=e}},velocityX:{get(){return this.velocity.x},set(e){this.velocity.x=e}},velocityY:{get(){return this.velocity.y},set(e){this.velocity.y=e}}});class Wa{constructor(t,n,i,o,r){this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=t,this.pointer=n,this.event=i,this.downTime=o,this.downTarget=r}}let Ba=function(e){return e.interactable="",e.element="",e.prepared="",e.pointerIsDown="",e.pointerWasMoved="",e._proxy="",e}({}),Ua=function(e){return e.start="",e.move="",e.end="",e.stop="",e.interacting="",e}({}),Va=0;class Ka{get pointerMoveTolerance(){return 1}constructor(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=bi(function(r){this.move(r)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:zt(),prev:zt(),cur:zt(),delta:zt(),velocity:zt()},this._id=Va++;let{pointerType:n,scopeFire:i}=t;this._scopeFire=i,this.pointerType=n;const o=this;this._proxy={};for(const r in Ba)Object.defineProperty(this._proxy,r,{get(){return o[r]}});for(const r in Ua)Object.defineProperty(this._proxy,r,{value:function(){return o[r](...arguments)}});this._scopeFire("interactions:new",{interaction:this})}pointerDown(t,n,i){const o=this.updatePointer(t,n,i,!0),r=this.pointers[o];this._scopeFire("interactions:down",{pointer:t,event:n,eventTarget:i,pointerIndex:o,pointerInfo:r,type:"down",interaction:this})}start(t,n,i){return this.interacting()||!this.pointerIsDown||this.pointers.length<(t.name==="gesture"?2:1)||!n.options[t.name].enabled?!1:(Fa(this.prepared,t),this.interactable=n,this.element=i,this.rect=n.getRect(i),this.edges=this.prepared.edges?Ne({},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)}pointerMove(t,n,i){!this.simulation&&!(this.modification&&this.modification.endResult)&&this.updatePointer(t,n,i,!1);const o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;let r,s;this.pointerIsDown&&!this.pointerWasMoved&&(r=this.coords.cur.client.x-this.coords.start.client.x,s=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ki(r,s)>this.pointerMoveTolerance);const l=this.getPointerIndex(t),a={pointer:t,pointerIndex:l,pointerInfo:this.pointers[l],event:n,type:"move",eventTarget:i,dx:r,dy:s,duplicate:o,interaction:this};o||Sa(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",a),!o&&!this.simulation&&(this.interacting()&&(a.type=null,this.move(a)),this.pointerWasMoved&&Qn(this.coords.prev,this.coords.cur))}move(t){(!t||!t.event)&&Oa(this.coords.delta),t=Ne({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{}),t.phase="move",this._doPhase(t)}pointerUp(t,n,i,o){let r=this.getPointerIndex(t);r===-1&&(r=this.updatePointer(t,n,i,!1));const s=/cancel$/i.test(n.type)?"cancel":"up";this._scopeFire(`interactions:${s}`,{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:n,eventTarget:i,type:s,curEventTarget:o,interaction:this}),this.simulation||this.end(n),this.removePointer(t,n)}documentBlur(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}end(t){this._ending=!0,t=t||this._latestPointer.event;let n;this.interacting()&&(n=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,n===!0&&this.stop()}currentAction(){return this._interacting?this.prepared.name:null}interacting(){return this._interacting}stop(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}getPointerIndex(t){const n=On(t);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Bn(this.pointers,i=>i.id===n)}getPointerInfo(t){return this.pointers[this.getPointerIndex(t)]}updatePointer(t,n,i,o){const r=On(t);let s=this.getPointerIndex(t),l=this.pointers[s];return o=o===!1?!1:o||/(down|start)$/i.test(n.type),l?l.pointer=t:(l=new Wa(r,t,n,null,null),s=this.pointers.length,this.pointers.push(l)),Ca(this.coords.cur,this.pointers.map(a=>a.pointer),this._now()),Ta(this.coords.delta,this.coords.prev,this.coords.cur),o&&(this.pointerIsDown=!0,l.downTime=this.coords.cur.timeStamp,l.downTarget=i,ls(this.downPointer,t),this.interacting()||(Qn(this.coords.start,this.coords.cur),Qn(this.coords.prev,this.coords.cur),this.downEvent=n,this.pointerWasMoved=!1)),this._updateLatestPointer(t,n,i),this._scopeFire("interactions:update-pointer",{pointer:t,event:n,eventTarget:i,down:o,pointerInfo:l,pointerIndex:s,interaction:this}),s}removePointer(t,n){const i=this.getPointerIndex(t);if(i===-1)return;const o=this.pointers[i];this._scopeFire("interactions:remove-pointer",{pointer:t,event:n,eventTarget:null,pointerIndex:i,pointerInfo:o,interaction:this}),this.pointers.splice(i,1),this.pointerIsDown=!1}_updateLatestPointer(t,n,i){this._latestPointer.pointer=t,this._latestPointer.event=n,this._latestPointer.eventTarget=i}destroy(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}_createPreparedEvent(t,n,i,o){return new qi(this,t,this.prepared.name,n,this.element,i,o)}_fireEvent(t){var n;(n=this.interactable)==null||n.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}_doPhase(t){const{event:n,phase:i,preEnd:o,type:r}=t,{rect:s}=this;if(s&&i==="move"&&(xa(this.edges,s,this.coords.delta[this.interactable.options.deltaSource]),s.width=s.right-s.left,s.height=s.bottom-s.top),this._scopeFire(`interactions:before-action-${i}`,t)===!1)return!1;const l=t.iEvent=this._createPreparedEvent(n,i,o,r);return this._scopeFire(`interactions:action-${i}`,t),i==="start"&&(this.prevEvent=l),this._fireEvent(l),this._scopeFire(`interactions:after-action-${i}`,t),!0}_now(){return Date.now()}}function Fo(e,t){for(const n of t){if(e.immediatePropagationStopped)break;n(e)}}class gs{constructor(t){this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=Ne({},t||{})}fire(t){let n;const i=this.global;(n=this.types[t.type])&&Fo(t,n),!t.propagationStopped&&i&&(n=i[t.type])&&Fo(t,n)}on(t,n){const i=Rt(t,n);for(t in i)this.types[t]=ds(this.types[t]||[],i[t])}off(t,n){const i=Rt(t,n);for(t in i){const o=this.types[t];if(!(!o||!o.length))for(const r of i[t]){const s=o.indexOf(r);s!==-1&&o.splice(s,1)}}}getRect(t){return null}}function Ga(e){var t;const n=[],i={},o=[],r={add:s,remove:l,addDelegate:a,removeDelegate:c,delegateListener:d,delegateUseCapture:h,delegatedEvents:i,documents:o,targets:n,supportsOptions:!1,supportsPassive:!1};(t=e.document)==null||t.createElement("div").addEventListener("test",null,{get capture(){return r.supportsOptions=!0},get passive(){return r.supportsPassive=!0}}),e.events=r;function s(b,g,_,j){if(!b.addEventListener)return;const $=kt(j);let A=mn(n,F=>F.eventTarget===b);A||(A={eventTarget:b,events:{}},n.push(A)),A.events[g]||(A.events[g]=[]),mn(A.events[g],F=>F.func===_&&hn(F.options,$))||(b.addEventListener(g,_,r.supportsOptions?$:$.capture),A.events[g].push({func:_,options:$}))}function l(b,g,_,j){if(!b.addEventListener||!b.removeEventListener)return;const $=Bn(n,x=>x.eventTarget===b),A=n[$];if(!A||!A.events)return;if(g==="all"){for(g in A.events)A.events.hasOwnProperty(g)&&l(b,g,"all");return}let F=!1;const R=A.events[g];if(R)if(_==="all"){for(let x=R.length-1;x>=0;x--){const p=R[x];l(b,g,p.func,p.options)}return}else{const x=kt(j);for(let p=0;px.selector===b&&x.context===g);R||(R={selector:b,context:g,listeners:[]},F.push(R)),R.listeners.push({func:j,options:A})}function c(b,g,_,j,$){const A=kt($),F=i[_];let R=!1,x;if(F)for(x=F.length-1;x>=0;x--){const p=F[x];if(p.selector===b&&p.context===g){const{listeners:D}=p;for(let C=D.length-1;C>=0;C--){const K=D[C];if(K.func===j&&hn(K.options,A)){D.splice(C,1),D.length||(F.splice(x,1),l(g,_,d),l(g,_,h,!0)),R=!0;break}}if(R)break}}}function d(b,g){const _=kt(g),j=new qa(b),$=i[b.type],[A]=us(b);let F=A;for(;N.element(F);){for(let R=0;R<$.length;R++){const x=$[R],{selector:p,context:D}=x;if(xt(F,p)&&wt(D,A)&&wt(D,F)){const{listeners:C}=x;j.currentTarget=F;for(const K of C)hn(K.options,_)&&K.func(j)}}F=sn(F)}}function h(b){return d.call(this,b,!0)}return r}class qa{constructor(t){this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=t,ls(this,t)}preventOriginalDefault(){this.originalEvent.preventDefault()}stopPropagation(){this.originalEvent.stopPropagation()}stopImmediatePropagation(){this.originalEvent.stopImmediatePropagation()}}function kt(e){return N.object(e)?{capture:!!e.capture,passive:!!e.passive}:{capture:!!e,passive:!1}}function hn(e,t){return e===t?!0:typeof e=="boolean"?!!t.capture===e&&!t.passive:!!e.capture==!!t.capture&&!!e.passive==!!t.passive}var Ya={id:"events",install:Ga};const wi={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search(e){for(const t of wi.methodOrder){const n=wi[t](e);if(n)return n}return null},simulationResume(e){let{pointerType:t,eventType:n,eventTarget:i,scope:o}=e;if(!/down|start/i.test(n))return null;for(const r of o.interactions.list){let s=i;if(r.simulation&&r.simulation.allowResume&&r.pointerType===t)for(;s;){if(s===r.element)return r;s=sn(s)}}return null},mouseOrPen(e){let{pointerId:t,pointerType:n,eventType:i,scope:o}=e;if(n!=="mouse"&&n!=="pen")return null;let r;for(const s of o.interactions.list)if(s.pointerType===n){if(s.simulation&&!jo(s,t))continue;if(s.interacting())return s;r||(r=s)}if(r)return r;for(const s of o.interactions.list)if(s.pointerType===n&&!(/down/i.test(i)&&s.simulation))return s;return null},hasPointer(e){let{pointerId:t,scope:n}=e;for(const i of n.interactions.list)if(jo(i,t))return i;return null},idle(e){let{pointerType:t,scope:n}=e;for(const i of n.interactions.list){if(i.pointers.length===1){const o=i.interactable;if(o&&!(o.options.gesture&&o.options.gesture.enabled))continue}else if(i.pointers.length>=2)continue;if(!i.interacting()&&t===i.pointerType)return i}return null}};function jo(e,t){return e.pointers.some(n=>{let{id:i}=n;return i===t})}const ms=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Xa(e){const t={};for(const r of ms)t[r]=vs(r,e);const n=ve.pEventTypes;let i;he.PointerEvent?i=[{type:n.down,listener:o},{type:n.down,listener:t.pointerDown},{type:n.move,listener:t.pointerMove},{type:n.up,listener:t.pointerUp},{type:n.cancel,listener:t.pointerUp}]:i=[{type:"mousedown",listener:t.pointerDown},{type:"mousemove",listener:t.pointerMove},{type:"mouseup",listener:t.pointerUp},{type:"touchstart",listener:o},{type:"touchstart",listener:t.pointerDown},{type:"touchmove",listener:t.pointerMove},{type:"touchend",listener:t.pointerUp},{type:"touchcancel",listener:t.pointerUp}],i.push({type:"blur",listener(r){for(const s of e.interactions.list)s.documentBlur(r)}}),e.prevTouchTime=0,e.Interaction=class extends Ka{get pointerMoveTolerance(){return e.interactions.pointerMoveTolerance}set pointerMoveTolerance(r){e.interactions.pointerMoveTolerance=r}_now(){return e.now()}},e.interactions={list:[],new(r){r.scopeFire=(l,a)=>e.fire(l,a);const s=new e.Interaction(r);return e.interactions.list.push(s),s},listeners:t,docEvents:i,pointerMoveTolerance:1};function o(){for(const r of e.interactions.list)if(!(!r.pointerIsDown||r.pointerType!=="touch"||r._interacting))for(const s of r.pointers)e.documents.some(l=>{let{doc:a}=l;return wt(a,s.downTarget)})||r.removePointer(s.pointer,s.event)}e.usePlugin(ka)}function vs(e,t){return function(n){const i=t.interactions.list,o=Da(n),[r,s]=us(n),l=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(const a of n.changedTouches){const c=a,d=On(c),h={pointer:c,pointerId:d,pointerType:o,eventType:n.type,eventTarget:r,curEventTarget:s,scope:t},b=Ho(h);l.push([h.pointer,h.eventTarget,h.curEventTarget,b])}}else{let a=!1;if(!ve.supportsPointerEvent&&/mouse/.test(n.type)){for(let c=0;cei(e,"add"),"scope:remove-document":e=>ei(e,"remove"),"interactable:unset":(e,t)=>{let{interactable:n}=e;for(let i=t.interactions.list.length-1;i>=0;i--){const o=t.interactions.list[i];o.interactable===n&&(o.stop(),t.fire("interactions:destroy",{interaction:o}),o.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(i,1))}}},onDocSignal:ei,doOnInteractions:vs,methodNames:ms};var et=function(e){return e[e.On=0]="On",e[e.Off=1]="Off",e}(et||{});class Za{get _defaults(){return{base:{},perAction:{},actions:{}}}constructor(t,n,i,o){this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new gs,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=t,this._context=n.context||i,this._win=Lt(Do(t)?this._context:t),this._doc=this._win.document,this._scopeEvents=o,this.set(n)}setOnEvents(t,n){return N.func(n.onstart)&&this.on(`${t}start`,n.onstart),N.func(n.onmove)&&this.on(`${t}move`,n.onmove),N.func(n.onend)&&this.on(`${t}end`,n.onend),N.func(n.oninertiastart)&&this.on(`${t}inertiastart`,n.oninertiastart),this}updatePerActionListeners(t,n,i){var o;const r=(o=this._actions.map[t])==null?void 0:o.filterEventType,s=l=>(r==null||r(l))&&Pn(l,this._actions);(N.array(n)||N.object(n))&&this._onOff(et.Off,t,n,void 0,s),(N.array(i)||N.object(i))&&this._onOff(et.On,t,i,void 0,s)}setPerAction(t,n){const i=this._defaults;for(const o in n){const r=o,s=this.options[t],l=n[r];r==="listeners"&&this.updatePerActionListeners(t,s.listeners,l),N.array(l)?s[r]=hs(l):N.plainObject(l)?(s[r]=Ne(s[r]||{},In(l)),N.object(i.perAction[r])&&"enabled"in i.perAction[r]&&(s[r].enabled=l.enabled!==!1)):N.bool(l)&&N.object(i.perAction[r])?s[r].enabled=l:s[r]=l}}getRect(t){return t=t||(N.element(this.target)?this.target:null),N.string(this.target)&&(t=t||this._context.querySelector(this.target)),Vi(t)}rectChecker(t){return N.func(t)?(this.getRect=n=>{const i=Ne({},t.apply(this,n));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):t===null?(delete this.getRect,this):this.getRect}_backCompatOption(t,n){if(Do(n)||N.object(n)){this.options[t]=n;for(const i in this._actions.map)this.options[i][t]=n;return this}return this.options[t]}origin(t){return this._backCompatOption("origin",t)}deltaSource(t){return t==="page"||t==="client"?(this.options.deltaSource=t,this):this.options.deltaSource}getAllElements(){const{target:t}=this;return N.string(t)?Array.from(this._context.querySelectorAll(t)):N.func(t)&&t.getAllElements?t.getAllElements():N.element(t)?[t]:[]}context(){return this._context}inContext(t){return this._context===t.ownerDocument||wt(this._context,t)}testIgnoreAllow(t,n,i){return!this.testIgnore(t.ignoreFrom,n,i)&&this.testAllow(t.allowFrom,n,i)}testAllow(t,n,i){return t?N.element(i)?N.string(t)?Ao(i,t,n):N.element(t)?wt(t,i):!1:!1:!0}testIgnore(t,n,i){return!t||!N.element(i)?!1:N.string(t)?Ao(i,t,n):N.element(t)?wt(t,i):!1}fire(t){return this.events.fire(t),this}_onOff(t,n,i,o,r){N.object(n)&&!N.array(n)&&(o=i,i=null);const s=Rt(n,i,r);for(let l in s){l==="wheel"&&(l=ve.wheelEvent);for(const a of s[l])Pn(l,this._actions)?this.events[t===et.On?"on":"off"](l,a):N.string(this.target)?this._scopeEvents[t===et.On?"addDelegate":"removeDelegate"](this.target,this._context,l,a,o):this._scopeEvents[t===et.On?"add":"remove"](this.target,l,a,o)}return this}on(t,n,i){return this._onOff(et.On,t,n,i)}off(t,n,i){return this._onOff(et.Off,t,n,i)}set(t){const n=this._defaults;N.object(t)||(t={}),this.options=In(n.base);for(const i in this._actions.methodDict){const o=i,r=this._actions.methodDict[o];this.options[o]={},this.setPerAction(o,Ne(Ne({},n.perAction),n.actions[o])),this[r](t[o])}for(const i in t){if(i==="getRect"){this.rectChecker(t.getRect);continue}N.func(this[i])&&this[i](t[i])}return this}unset(){if(N.string(this.target))for(const t in this._scopeEvents.delegatedEvents){const n=this._scopeEvents.delegatedEvents[t];for(let i=n.length-1;i>=0;i--){const{selector:o,context:r,listeners:s}=n[i];o===this.target&&r===this._context&&n.splice(i,1);for(let l=s.length-1;l>=0;l--)this._scopeEvents.removeDelegate(this.target,this._context,t,s[l][0],s[l][1])}}else this._scopeEvents.remove(this.target,"all")}}class Qa{constructor(t){this.list=[],this.selectorMap={},this.scope=void 0,this.scope=t,t.addListeners({"interactable:unset":n=>{let{interactable:i}=n;const{target:o}=i,r=N.string(o)?this.selectorMap[o]:o[this.scope.id],s=Bn(r,l=>l===i);r.splice(s,1)}})}new(t,n){n=Ne(n||{},{actions:this.scope.actions});const i=new this.scope.Interactable(t,n,this.scope.document,this.scope.events);return this.scope.addDocument(i._doc),this.list.push(i),N.string(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(i)):(i.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(i)),this.scope.fire("interactable:new",{target:t,options:n,interactable:i,win:this.scope._win}),i}getExisting(t,n){const i=n&&n.context||this.scope.document,o=N.string(t),r=o?this.selectorMap[t]:t[this.scope.id];if(r)return mn(r,s=>s._context===i&&(o||s.inContext(t)))}forEachMatch(t,n){for(const i of this.list){let o;if((N.string(i.target)?N.element(t)&&xt(t,i.target):t===i.target)&&i.inContext(t)&&(o=n(i)),o!==void 0)return o}}}function eu(e){const t=(n,i)=>{let o=e.interactables.getExisting(n,i);return o||(o=e.interactables.new(n,i),o.events.global=t.globalEvents),o};return t.getPointerAverage=as,t.getTouchBBox=Ma,t.getTouchDistance=Aa,t.getTouchAngle=Ra,t.getElementRect=Vi,t.getElementClientRect=ss,t.matchesSelector=xt,t.closest=rs,t.globalEvents={},t.version="1.10.26",t.scope=e,t.use=function(n,i){return this.scope.usePlugin(n,i),this},t.isSet=function(n,i){return!!this.scope.interactables.get(n,i&&i.context)},t.on=bi(function(n,i,o){if(N.string(n)&&n.search(" ")!==-1&&(n=n.trim().split(/ +/)),N.array(n)){for(const r of n)this.on(r,i,o);return this}if(N.object(n)){for(const r in n)this.on(r,n[r],i);return this}return Pn(n,this.scope.actions)?this.globalEvents[n]?this.globalEvents[n].push(i):this.globalEvents[n]=[i]:this.scope.events.add(this.scope.document,n,i,{options:o}),this},"The interact.on() method is being deprecated"),t.off=bi(function(n,i,o){if(N.string(n)&&n.search(" ")!==-1&&(n=n.trim().split(/ +/)),N.array(n)){for(const r of n)this.off(r,i,o);return this}if(N.object(n)){for(const r in n)this.off(r,n[r],i);return this}if(Pn(n,this.scope.actions)){let r;n in this.globalEvents&&(r=this.globalEvents[n].indexOf(i))!==-1&&this.globalEvents[n].splice(r,1)}else this.scope.events.remove(this.scope.document,n,i,o);return this},"The interact.off() method is being deprecated"),t.debug=function(){return this.scope},t.supportsTouch=function(){return ve.supportsTouch},t.supportsPointerEvent=function(){return ve.supportsPointerEvent},t.stop=function(){for(const n of this.scope.interactions.list)n.stop();return this},t.pointerMoveTolerance=function(n){return N.number(n)?(this.scope.interactions.pointerMoveTolerance=n,this):this.scope.interactions.pointerMoveTolerance},t.addDocument=function(n,i){this.scope.addDocument(n,i)},t.removeDocument=function(n){this.scope.removeDocument(n)},t}class tu{constructor(){this.id=`__interact_scope_${Math.floor(Math.random()*100)}`,this.isInitialized=!1,this.listenerMaps=[],this.browser=ve,this.defaults=In(ps),this.Eventable=gs,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=eu(this),this.InteractEvent=qi,this.Interactable=void 0,this.interactables=new Qa(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=n=>this.removeDocument(n.target);const t=this;this.Interactable=class extends Za{get _defaults(){return t.defaults}set(n){return super.set(n),t.fire("interactable:set",{options:n,interactable:this}),this}unset(){super.unset();const n=t.interactables.list.indexOf(this);n<0||(t.interactables.list.splice(n,1),t.fire("interactable:unset",{interactable:this}))}}}addListeners(t,n){this.listenerMaps.push({id:n,map:t})}fire(t,n){for(const{map:{[t]:i}}of this.listenerMaps)if(i&&i(n,this,t)===!1)return!1}init(t){return this.isInitialized?this:nu(this,t)}pluginIsInstalled(t){const{id:n}=t;return n?!!this._plugins.map[n]:this._plugins.list.indexOf(t)!==-1}usePlugin(t,n){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,n),t.listeners&&t.before){let i=0;const o=this.listenerMaps.length,r=t.before.reduce((s,l)=>(s[l]=!0,s[$o(l)]=!0,s),{});for(;i!isNaN(e),ru=e=>{const t=e.target.offsetParent||document.body,n=e.offsetParent===document.body?{left:0,top:0}:t.getBoundingClientRect(),i=e.clientX+t.scrollLeft-n.left,o=e.clientY+t.scrollTop-n.top;return{x:i,y:o}},Wo=(e,t,n,i)=>ou(e)?{deltaX:n-e,deltaY:i-t,lastX:e,lastY:t,x:n,y:i}:{deltaX:0,deltaY:0,lastX:n,lastY:i,x:n,y:i},Bo=e=>ru(e),_i=ji({__name:"GridItem",props:{breakpointCols:{},colNum:{},containerWidth:{},h:{},id:{},isDraggable:{type:Boolean},isResizable:{type:Boolean},lastBreakpoint:{},margin:{},maxRows:{},rowHeight:{},useCssTransforms:{type:Boolean},w:{},x:{},y:{},dragAllowFrom:{default:null},dragIgnoreFrom:{default:"a, button"},dragOption:{default:()=>({})},maxH:{default:1/0},maxW:{default:1/0},minH:{default:1},minW:{default:1},observer:{default:void 0},isStatic:{type:Boolean,default:!1}},emits:["noc-resize-container","noc-resize","noc-resize-end","noc-move","noc-move-end"],setup(e,{emit:t}){const n=e,i=t,o=me(null),r=Gt(Yr),s=me(n.colNum),l=me(!1),a=me({}),c=me({h:n.h,w:n.w,x:n.x,y:n.y}),d=me(null),h=me(!1),b=me(!1),g=me({h:NaN,w:NaN,x:NaN,y:NaN}),_=me({h:NaN,w:NaN,x:NaN,y:NaN}),j=me(!1),$=me(null),A=Nn({props:{}}),F=Yt(()=>({"css-transforms":n.useCssTransforms,"disable-user-select":h.value,"no-touch":R.value,resizing:b.value,static:n.isStatic,"vue-draggable-dragging":h.value,"vue-resizable":x.value})),R=Yt(()=>{const w=n.isDraggable||n.isResizable;return navigator.userAgent.toLowerCase().indexOf("android")!==-1&&w&&!n.isStatic}),x=Yt(()=>n.isResizable&&!n.isStatic);de(()=>n.observer,()=>{n.observer&&o.value&&(n.observer.observe(o.value),o.value[xi]=n.id)}),de(()=>s.value,()=>{ye(),G()}),de(()=>n.containerWidth,()=>{ye(),G()}),de(()=>n.h,w=>{c.value.h=w,G()}),de(()=>n.isDraggable,()=>{fe()}),de(()=>n.isResizable,()=>{ye()}),de(()=>n.maxH,()=>{ye()}),de(()=>n.maxW,()=>{ye()}),de(()=>n.minH,()=>{ye()}),de(()=>n.minW,()=>{ye()}),de(()=>n.rowHeight,()=>{G()}),de(()=>n.isStatic,()=>{ye(),fe()}),de(()=>n.w,w=>{c.value.w=w,le()}),de(()=>n.x,w=>{c.value.x=w,le()}),de(()=>n.y,w=>{c.value.y=w,le()});const p=()=>{const[w]=n.margin;return(n.containerWidth-w*(s.value+1))/s.value},D=({x:w,y:P,w:I,h:B})=>{const re=p(),[se,H]=n.margin;return{height:B===1/0?B:Math.round(n.rowHeight*B+Math.max(0,B-1)*H),left:Math.round(re*w+(w+1)*H),top:Math.round(n.rowHeight*P+(P+1)*H),width:I===1/0?I:Math.round(re*I+Math.max(0,I-1)*se)}},C=(w,P)=>{const I=p(),[B,re]=n.margin,se=Math.round((P+B)/(I+B)),H=Math.round((w+re)/(n.rowHeight+re));return{h:Math.max(Math.min(H,n.maxRows-c.value.y),0),w:Math.max(Math.min(se,s.value-c.value.x),0)}},K=(w,P)=>{const I=p(),[B,re]=n.margin,se=Math.round((P-B)/(I+B)),H=Math.round((w-re)/(n.rowHeight+re));return{x:Math.max(Math.min(se,s.value-c.value.w),0),y:Math.max(Math.min(H,n.maxRows-c.value.h),0)}},le=()=>{var w,P;const I=D({h:c.value.h,w:c.value.w,x:c.value.x,y:c.value.y});n.x+n.w>s.value?(c.value.x=0,c.value.w=n.w>s.value?s.value:n.w):(c.value.x=n.x,c.value.w=n.w),h.value&&(I.top=a.value.top??0,I.left=a.value.left??0),b.value&&(I.width=((w=$==null?void 0:$.value)==null?void 0:w.width)??0,I.height=((P=$==null?void 0:$.value)==null?void 0:P.height)??0),A.props=n.useCssTransforms?ia(I.top,I.left,I.width,I.height):na(I.top,I.left,I.width,I.height)},G=()=>{le();const w={};for(const P of["width","height"]){const I=A.props[P],B=I==null?void 0:I.toString().match(/^(\d+)px$/);if(!B)return;w[P]=+B[1]}i("noc-resize-container",{h:n.h,height:w.height,id:n.id,w:n.w,width:w.width})},ee=w=>{var P,I;if(n.isStatic||b.value)return;const B=Bo(w);if(!B)return;const{x:re,y:se}=B,H={left:0,top:0};switch(w.type){case"dragstart":{_.value.x=c.value.x,_.value.y=c.value.y;const ge=w.target.offsetParent.getBoundingClientRect(),be=w.target.getBoundingClientRect();H.left=be.left-ge.left,H.top=be.top-ge.top,a.value=H,h.value=!0;break}case"dragend":{if(!h.value)return;const ge=w.target.offsetParent.getBoundingClientRect(),be=w.target.getBoundingClientRect();H.left=be.left-ge.left,H.top=be.top-ge.top,a.value={},h.value=!1;break}case"dragmove":{const ge=Wo(g.value.x,g.value.y,re,se);H.left=(((P=a==null?void 0:a.value)==null?void 0:P.left)??0)+ge.deltaX,H.top=(((I=a==null?void 0:a.value)==null?void 0:I.top)??0)+ge.deltaY,a.value=H;break}}const J=K(H.top,H.left);g.value.x=re,g.value.y=se,(c.value.x!==J.x||c.value.y!==J.y)&&i("noc-move",{id:n.id,x:J.x,y:J.y}),w.type==="dragend"&&(_.value.x!==c.value.x||_.value.y!==c.value.y)&&i("noc-move-end",{id:n.id,x:J.x,y:J.y}),r==null||r.emit("drag-event",[w.type,n.id,J.x,J.y,c.value.h,c.value.w])},q=w=>{var P,I;if(n.isStatic)return;const B=Bo(w);if(!B)return;const{x:re,y:se}=B,H={height:0,width:0};switch(w.type){case"resizestart":{_.value.w=c.value.w,_.value.h=c.value.h;const{height:ge,width:be}=D({h:c.value.h,w:c.value.w,x:c.value.x,y:c.value.y});H.width=be,H.height=ge,$.value=H,b.value=!0;break}case"resizemove":{const ge=Wo(g.value.x,g.value.h,re,se);H.width=(((P=$==null?void 0:$.value)==null?void 0:P.width)??0)+ge.deltaX,H.height=(((I=$==null?void 0:$.value)==null?void 0:I.height)??0)+ge.deltaY,$.value=H,b.value=!0;break}case"resizeend":{const{height:ge,width:be}=D({h:c.value.h,w:c.value.w,x:c.value.x,y:c.value.y});H.width=be,H.height=ge,$.value=null,b.value=!1;break}}const J=C(H.height,H.width);J.wn.maxW&&(J.w=n.maxW),J.hn.maxH&&(J.h=n.maxH),J.h<1&&(J.h=1),J.w<1&&(J.w=1),g.value.x=re,g.value.h=se,(c.value.w!==J.w||c.value.h!==J.h)&&i("noc-resize",{h:J.h,height:H.height,id:n.id,w:J.w,width:H.width}),w.type==="resizeend"&&(_.value.w!==c.value.w||_.value.h!==c.value.h)&&i("noc-resize-end",{h:J.h,height:H.height,id:n.id,w:J.w,width:H.width}),r==null||r.emit("resize-event",[w.type,n.id,c.value.x,c.value.y,J.h,J.w])},te=w=>{s.value=w},fe=()=>{!d.value&&o.value&&(d.value=zo(o.value)),n.isDraggable&&!n.isStatic?(d.value.draggable({allowFrom:n.dragAllowFrom,ignoreFrom:n.dragIgnoreFrom,...n.dragOption}),l.value||(l.value=!0,d.value.on("dragstart dragmove dragend",ee))):d.value.draggable({enabled:!1})},ye=()=>{if(!d.value&&o.value&&(d.value=zo(o.value)),n.isResizable&&!n.isStatic){const w=`.${oa(ko," ",".")}`,P=D({h:n.maxH,w:n.maxW,x:0,y:0}),I=D({h:n.minH,w:n.minW,x:0,y:0}),B={edges:{bottom:w,left:!1,right:w,top:!1},ignoreFrom:"a, button",restrictSize:{max:{height:P.height,width:P.width},min:{height:I.height,width:I.width}}};d.value.resizable(B),j.value||(j.value=!0,d.value.on("resizestart resizemove resizeend",q))}else d.value.resizable({enabled:!1})};return r==null||r.on("recalculate-styles",le),r==null||r.on("set-col-num",te),$i(()=>{r==null||r.off("recalculate-styles",le),r==null||r.off("set-col-num",te),d.value&&d.value.unset(),n.observer&&o.value!==null&&n.observer.unobserve(o.value)}),Hi(()=>{n.lastBreakpoint&&(s.value=yi(n.lastBreakpoint,n.breakpointCols)),ye(),fe(),le()}),(w,P)=>(st(),tn("div",{ref_key:"item",ref:o,class:Xt(["vue-grid-item",F.value]),style:on(A.props)},[li(w.$slots,"default"),x.value?(st(),tn("span",{key:0,class:Xt(bn(ko))},null,2)):fc("",!0)],6))}});function su(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bs={exports:{}},lu=bs.exports={};lu.forEach=function(e,t){for(var n=0;n";while(s[0]);return o>4?o:i}();return e===n};_s.isLegacyOpera=function(){return!!window.opera};var Es=xs.exports,Ts={exports:{}},hu=Ts.exports={};hu.getOption=pu;function pu(e,t,n){var i=e[t];return i==null&&n!==void 0?n:i}var gu=Ts.exports,Uo=gu,mu=function(e){e=e||{};var t=e.reporter,n=Uo.getOption(e,"async",!0),i=Uo.getOption(e,"auto",!0);i&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var o=Vo(),r,s=!1;function l(g,_){!s&&i&&n&&o.size()===0&&d(),o.add(g,_)}function a(){for(s=!0;o.size();){var g=o;o=Vo(),g.process()}s=!1}function c(g){s||(g===void 0&&(g=n),r&&(h(r),r=null),g?d():a())}function d(){r=b(a)}function h(g){var _=clearTimeout;return _(g)}function b(g){var _=function(j){return setTimeout(j,0)};return _(g)}return{add:l,force:c}};function Vo(){var e={},t=0,n=0,i=0;function o(l,a){a||(a=l,l=0),l>n?n=l:l div::-webkit-scrollbar { "+c(["display: none"])+` } + +`,G+="."+le+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+K,"animation-name: "+K])+` } +`,G+="@-webkit-keyframes "+K+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } +`,G+="@keyframes "+K+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",C(G)}}function b(x){x.className+=" "+l+"_animation_active"}function g(x,p,D){if(x.addEventListener)x.addEventListener(p,D);else if(x.attachEvent)x.attachEvent("on"+p,D);else return t.error("[scroll] Don't know how to add event listeners.")}function _(x,p,D){if(x.removeEventListener)x.removeEventListener(p,D);else if(x.detachEvent)x.detachEvent("on"+p,D);else return t.error("[scroll] Don't know how to remove event listeners.")}function j(x){return i(x).container.childNodes[0].childNodes[0].childNodes[0]}function $(x){return i(x).container.childNodes[0].childNodes[0].childNodes[1]}function A(x,p){var D=i(x).listeners;if(!D.push)throw new Error("Cannot add listener to an element that is not detectable.");i(x).listeners.push(p)}function F(x,p,D){D||(D=p,p=x,x=null),x=x||{};function C(){if(x.debug){var z=Array.prototype.slice.call(arguments);if(z.unshift(o.get(p),"Scroll: "),t.log.apply)t.log.apply(null,z);else for(var Q=0;Q>>0,1):e.set(t,[]))},emit:function(t,n){var i=e.get(t);i&&i.slice().map(function(o){o(n)}),(i=e.get("*"))&&i.slice().map(function(o){o(t,n)})}}}const Os=()=>typeof window<"u",Nu=(e,t)=>{if(!Os)return t();window.addEventListener(e,t)},Lu=(e,t)=>{Os&&window.removeEventListener(e,t)},Fu=ji({__name:"GridLayout",props:{colNum:{},layout:{},autoSize:{type:Boolean,default:!0},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},horizontalShift:{type:Boolean,default:!1},intersectionObserverConfig:{default:()=>({root:null,rootMargin:"8px",threshold:.4})},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},margin:{default:()=>[10,10]},maxRows:{default:1/0},preventCollision:{type:Boolean,default:!1},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},rowHeight:{default:150},useCssTransforms:{type:Boolean,default:!0},useObserver:{type:Boolean,default:!1},verticalCompact:{type:Boolean,default:!0}},emits:["noc-resize-container","noc-layout-before-mount","noc-layout-create","noc-layout-mount","noc-layout-ready","noc-layout-update","update:layout","update:breakpoints","noc-intersection-observe","noc-intersection-unobserve","noc-item-move","noc-item-move-end","noc-item-resize","noc-item-resize-end"],setup(e,{emit:t}){const n=e,i=t,o=Du();Fr(Yr,o);const r={h:0,id:-1,w:0,x:0,y:0},s=["minW","minH","maxW","maxH","moved","static","isDraggable","isResizable"],l=me(Ru({callOnAdd:!1,strategy:"scroll"})),a=me(!1),c=me(""),d=me(0),h=me({}),b=me({}),g=me(n.layout),_=me({h:0,id:-1,w:0,x:0,y:0}),j=me(0);let $;const A=me(null),F=Yt(()=>({breakpointCols:n.cols,colNum:n.colNum,containerWidth:j.value,isDraggable:n.isDraggable,isResizable:n.isResizable,lastBreakpoint:c.value,margin:n.margin,maxRows:n.maxRows,responsive:n.responsive,rowHeight:n.rowHeight,useCssTransforms:n.useCssTransforms,width:j.value}));de(()=>n.colNum,w=>{o.emit("set-col-num",w)}),de(()=>n.layout.length,()=>{p(),pt(n.layout,n.verticalCompact)}),de(()=>n.margin,()=>{K()}),de(()=>n.responsive,w=>{w||(i("update:layout",g.value),o.emit("set-col-num",n.colNum)),G()}),de(()=>j.value,(w,P)=>{Ke(()=>{P===0&&Ke(()=>{i("noc-layout-ready",n.layout)}),n.responsive&&ee(),K()})}),de(()=>n.useObserver,w=>{if(!w){$.disconnect();return}ye()});const R=w=>{const P={observe:[],unobserve:[]};w.forEach(({target:I,isIntersecting:B})=>{if(B){P.observe.push(I[xi]);return}P.unobserve.push(I[xi])}),i("noc-intersection-observe",P.observe),i("noc-intersection-unobserve",P.unobserve)},x=w=>{const P=Object.keys(r);return Object.keys(w).reduce((I,B)=>((s.includes(B)||P.includes(B))&&(I[B]=w[B]),I),{})},p=()=>{if(n.layout&&g.value){if(n.layout.length!==g.value.length){const w=D(n.layout,g.value);w.length>0&&(n.layout.length>g.value.length?g.value=g.value.concat(w):g.value=g.value.filter(P=>!w.some(I=>P.id===I.id))),d.value=n.layout.length,C()}pt(n.layout,n.verticalCompact),K(),i("noc-layout-update",n.layout),o.emit("recalculate-styles")}},D=(w,P)=>{const I=w.filter(re=>!P.some(se=>re.id===se.id)),B=P.filter(re=>!w.some(se=>re.id===se.id));return I.concat(B)},C=()=>{h.value=Object.assign({},n.responsiveLayouts)},K=()=>{const w=le();b.value={height:w}},le=()=>{if(!n.autoSize||!n.layout)return;const[,w]=n.margin;return`${Zc(n.layout)*(n.rowHeight+w)+w}px`},G=()=>{A.value&&(j.value=A.value.offsetWidth)},ee=()=>{const w=sa(n.breakpoints,j.value),P=yi(w,n.cols);c.value&&!h.value[c.value]&&(h.value[c.value]=mi(n.layout));const I=ra(g.value,h.value,n.breakpoints,w,c.value,P,n.verticalCompact);h.value[w]=I,c.value!==w&&i("update:breakpoints",w),c.value=w,i("update:layout",I),o.emit("set-col-num",yi(w,n.cols))},q=()=>{i("noc-layout-create",n.layout),o.on("resize-event",te),o.on("drag-event",fe)},te=([w,P,I,B,re,se])=>{const H=Co(n.layout,P)??{...r};let J;if(n.preventCollision){const ge=Jr(n.layout,{...H,h:re,w:se}).filter(be=>be.id!==H.id);if(J=ge.length>0,J){let be=1/0,Te=1/0;ge.forEach(je=>{je.x>H.x&&(be=Math.min(be,je.x)),je.y>H.y&&(Te=Math.min(Te,je.y))}),Number.isFinite(be)&&(H.w=be-H.x),Number.isFinite(Te)&&(H.h=Te-H.y)}}J||(H.w=se,H.h=re),w==="resizestart"||w==="resizemove"?(_.value.id=+P,_.value.x=I,_.value.y=B,_.value.w=H.w,_.value.h=H.h,Ke(()=>{a.value=!0})):Ke(()=>{a.value=!1}),n.responsive&&ee(),pt(n.layout,n.verticalCompact),o.emit("recalculate-styles"),K(),w==="resizeend"&&i("noc-layout-update",n.layout)},fe=([w,P,I,B,re,se])=>{const H=Co(n.layout,P)??{...r};w==="dragmove"||w==="dragstart"?(_.value.id=+P,_.value.x=H.x,_.value.y=H.y,_.value.w=se,_.value.h=re,Ke(()=>{a.value=!0})):Ke(()=>{a.value=!1}),i("update:layout",vi(n.layout,H,I,B,!0,n.horizontalShift,n.preventCollision)),pt(n.layout,n.verticalCompact),o.emit("recalculate-styles"),K(),w==="dragend"&&(pt(n.layout,n.verticalCompact),i("noc-layout-update",n.layout))},ye=()=>{$=new IntersectionObserver(R,{root:null,rootMargin:"8px",threshold:.4,...n.intersectionObserverConfig})};return q(),$i(()=>{Lu("resize",G),l.value&&A.value&&l.value.uninstall(A.value),o.off("resize-event",te),o.off("drag-event",fe)}),Ar(()=>{i("noc-layout-before-mount",n.layout)}),Hi(()=>{i("noc-layout-mount",n.layout),Ke(()=>{g.value=n.layout,Ke(()=>{G(),C(),Nu("resize",G.bind(this)),pt(n.layout,n.verticalCompact),i("noc-layout-update",n.layout),K(),A.value&&l.value.listenTo(A.value,G),n.useObserver&&ye()})})}),(w,P)=>(st(),tn("div",null,[nn("div",{ref_key:"wrapper",ref:A,class:"vue-grid-layout",style:on(b.value)},[Rl(Fe(_i,hi({class:"vue-grid-placeholder"},{...F.value,..._.value}),null,16),[[Pc,a.value]]),li(w.$slots,"default",{gridItemProps:{...F.value,observer:bn($)}},()=>[(st(!0),tn(De,null,Wl(w.layout,I=>(st(),Wi(_i,hi({key:I.id},{...F.value,...x(I)},{observer:bn($),onNocResizeContainer:P[0]||(P[0]=B=>i("noc-resize-container",B)),onNocResizeEnd:P[1]||(P[1]=B=>i("noc-item-resize-end",B)),onNocResize:P[2]||(P[2]=B=>i("noc-item-resize",B)),onNocMove:P[3]||(P[3]=B=>i("noc-item-move",B)),onNocMoveEnd:P[4]||(P[4]=B=>i("noc-item-move-end",B))}),{default:Fi(()=>[li(w.$slots,"gridItemContent",{item:I})]),_:2},1040,["observer"]))),128))])],4)]))}});function ju(e){e.component("GridLayout",Fu),e.component("GridItem",_i)}const Hu={install:ju},Ps=Vc(Jc);Ps.use(Hu);Ps.mount("#app"); diff --git a/index.html b/index.html new file mode 100644 index 0000000..49af86d --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + @noction/vue-draggable-grid Playground + + + + +
+ +