pangea-lib 4.0.284 → 4.0.286

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.cjs.js CHANGED
@@ -8628,7 +8628,7 @@ X1.version="2.30.1";kT1(E3);X1.fn=j1;X1.min=sD1;X1.max=lD1;X1.now=fD1;X1.utc=Ct;
8628
8628
  `),p1}function f1(i1,p1){if(A(i1)&&i1.nextElementSibling!=null&&!Z(p1,`
8629
8629
 
8630
8630
  `)){var b1=i1.offsetHeight+parseFloat(U(i1).marginTop)+parseFloat(U(i1).marginBottom);i1.nextElementSibling.offsetTop>i1.offsetTop+b1*1.5&&p1.insert(`
8631
- `)}return p1}function t1(i1,p1){var b1={},v1=i1.style||{};return v1.fontStyle&&U(i1).fontStyle==="italic"&&(b1.italic=!0),v1.fontWeight&&(U(i1).fontWeight.startsWith("bold")||parseInt(U(i1).fontWeight)>=700)&&(b1.bold=!0),Object.keys(b1).length>0&&(p1=S(p1,b1)),parseFloat(v1.textIndent||0)>0&&(p1=new d.default().insert(" ").concat(p1)),p1}function l1(i1,p1){var b1=i1.data;if(i1.parentNode.tagName==="O:P")return p1.insert(b1.trim());if(b1.trim().length===0&&i1.parentNode.classList.contains("ql-clipboard"))return p1;if(!U(i1.parentNode).whiteSpace.startsWith("pre")){var v1=function(D1,R1){return R1=R1.replace(/[^\u00a0]/g,""),R1.length<1&&D1?" ":R1};b1=b1.replace(/\r\n/g," ").replace(/\n/g," "),b1=b1.replace(/\s\s+/g,v1.bind(v1,!0)),(i1.previousSibling==null&&A(i1.parentNode)||i1.previousSibling!=null&&A(i1.previousSibling))&&(b1=b1.replace(/^\s+/,v1.bind(v1,!1))),(i1.nextSibling==null&&A(i1.parentNode)||i1.nextSibling!=null&&A(i1.nextSibling))&&(b1=b1.replace(/\s+$/,v1.bind(v1,!1)))}return p1.insert(b1)}c.default=E,c.matchAttributor=c1,c.matchBlot=e1,c.matchNewline=x1,c.matchSpacing=f1,c.matchText=l1},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,[{key:"optimize",value:function(g){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,g),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(l.default);p.blotName="bold",p.tagName=["STRONG","B"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.addControls=c.default=void 0;var r=function(){function L(w,P){var j=[],T=!0,B=!1,F=void 0;try{for(var K=w[Symbol.iterator](),G;!(T=(G=K.next()).done)&&(j.push(G.value),!(P&&j.length===P));T=!0);}catch(W){B=!0,F=W}finally{try{!T&&K.return&&K.return()}finally{if(B)throw F}}return j}return function(w,P){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return L(w,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function L(w,P){for(var j=0;j<P.length;j++){var T=P[j];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(w,T.key,T)}}return function(w,P,j){return P&&L(w.prototype,P),j&&L(w,j),w}}(),o=n(2),l=g(o),f=n(0),u=g(f),d=n(5),h=g(d),p=n(10),v=g(p),m=n(9),y=g(m);function g(L){return L&&L.__esModule?L:{default:L}}function M(L,w,P){return w in L?Object.defineProperty(L,w,{value:P,enumerable:!0,configurable:!0,writable:!0}):L[w]=P,L}function x(L,w){if(!(L instanceof w))throw new TypeError("Cannot call a class as a function")}function k(L,w){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:L}function b(L,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);L.prototype=Object.create(w&&w.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(L,w):L.__proto__=w)}var _=(0,v.default)("quill:toolbar"),C=function(L){b(w,L);function w(P,j){x(this,w);var T=k(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,P,j));if(Array.isArray(T.options.container)){var B=document.createElement("div");V(B,T.options.container),P.container.parentNode.insertBefore(B,P.container),T.container=B}else typeof T.options.container=="string"?T.container=document.querySelector(T.options.container):T.container=T.options.container;if(!(T.container instanceof HTMLElement)){var F;return F=_.error("Container required for toolbar",T.options),k(T,F)}return T.container.classList.add("ql-toolbar"),T.controls=[],T.handlers={},Object.keys(T.options.handlers).forEach(function(K){T.addHandler(K,T.options.handlers[K])}),[].forEach.call(T.container.querySelectorAll("button, select"),function(K){T.attach(K)}),T.quill.on(h.default.events.EDITOR_CHANGE,function(K,G){K===h.default.events.SELECTION_CHANGE&&T.update(G)}),T.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){var K=T.quill.selection.getRange(),G=r(K,1),W=G[0];T.update(W)}),T}return i(w,[{key:"addHandler",value:function(j,T){this.handlers[j]=T}},{key:"attach",value:function(j){var T=this,B=[].find.call(j.classList,function(K){return K.indexOf("ql-")===0});if(B){if(B=B.slice(3),j.tagName==="BUTTON"&&j.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){_.warn("ignoring attaching to disabled format",B,j);return}if(u.default.query(B)==null){_.warn("ignoring attaching to nonexistent format",B,j);return}}var F=j.tagName==="SELECT"?"change":"click";j.addEventListener(F,function(K){var G=void 0;if(j.tagName==="SELECT"){if(j.selectedIndex<0)return;var W=j.options[j.selectedIndex];W.hasAttribute("selected")?G=!1:G=W.value||!1}else j.classList.contains("ql-active")?G=!1:G=j.value||!j.hasAttribute("value"),K.preventDefault();T.quill.focus();var O=T.quill.selection.getRange(),E=r(O,1),S=E[0];if(T.handlers[B]!=null)T.handlers[B].call(T,G);else if(u.default.query(B).prototype instanceof u.default.Embed){if(G=prompt("Enter "+B),!G)return;T.quill.updateContents(new l.default().retain(S.index).delete(S.length).insert(M({},B,G)),h.default.sources.USER)}else T.quill.format(B,G,h.default.sources.USER);T.update(S)}),this.controls.push([B,j])}}},{key:"update",value:function(j){var T=j==null?{}:this.quill.getFormat(j);this.controls.forEach(function(B){var F=r(B,2),K=F[0],G=F[1];if(G.tagName==="SELECT"){var W=void 0;if(j==null)W=null;else if(T[K]==null)W=G.querySelector("option[selected]");else if(!Array.isArray(T[K])){var O=T[K];typeof O=="string"&&(O=O.replace(/\"/g,'\\"')),W=G.querySelector('option[value="'+O+'"]')}W==null?(G.value="",G.selectedIndex=-1):W.selected=!0}else if(j==null)G.classList.remove("ql-active");else if(G.hasAttribute("value")){var E=T[K]===G.getAttribute("value")||T[K]!=null&&T[K].toString()===G.getAttribute("value")||T[K]==null&&!G.getAttribute("value");G.classList.toggle("ql-active",E)}else G.classList.toggle("ql-active",T[K]!=null)})}}]),w}(y.default);C.DEFAULTS={};function H(L,w,P){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+w),P!=null&&(j.value=P),L.appendChild(j)}function V(L,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(P){var j=document.createElement("span");j.classList.add("ql-formats"),P.forEach(function(T){if(typeof T=="string")H(j,T);else{var B=Object.keys(T)[0],F=T[B];Array.isArray(F)?N(j,B,F):H(j,B,F)}}),L.appendChild(j)})}function N(L,w,P){var j=document.createElement("select");j.classList.add("ql-"+w),P.forEach(function(T){var B=document.createElement("option");T!==!1?B.setAttribute("value",T):B.setAttribute("selected","selected"),j.appendChild(B)}),L.appendChild(j)}C.DEFAULTS={container:null,handlers:{clean:function(){var w=this,P=this.quill.getSelection();if(P!=null)if(P.length==0){var j=this.quill.getFormat();Object.keys(j).forEach(function(T){u.default.query(T,u.default.Scope.INLINE)!=null&&w.quill.format(T,!1)})}else this.quill.removeFormat(P,h.default.sources.USER)},direction:function(w){var P=this.quill.getFormat().align;w==="rtl"&&P==null?this.quill.format("align","right",h.default.sources.USER):!w&&P==="right"&&this.quill.format("align",!1,h.default.sources.USER),this.quill.format("direction",w,h.default.sources.USER)},indent:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P),T=parseInt(j.indent||0);if(w==="+1"||w==="-1"){var B=w==="+1"?1:-1;j.direction==="rtl"&&(B*=-1),this.quill.format("indent",T+B,h.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,h.default.sources.USER)},list:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P);w==="check"?j.list==="checked"||j.list==="unchecked"?this.quill.format("list",!1,h.default.sources.USER):this.quill.format("list","unchecked",h.default.sources.USER):this.quill.format("list",w,h.default.sources.USER)}}},c.default=C,c.addControls=V},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.label.innerHTML=g,M.container.classList.add("ql-color-picker"),[].slice.call(M.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),M}return r(m,[{key:"buildItem",value:function(g){var M=i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,g);return M.style.backgroundColor=g.getAttribute("value")||"",M}},{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M);var x=this.label.querySelector(".ql-color-label"),k=g&&g.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=k:x.style.fill=k)}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.container.classList.add("ql-icon-picker"),[].forEach.call(M.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=g[x.getAttribute("data-value")||""]}),M.defaultItem=M.container.querySelector(".ql-selected"),M.selectItem(M.defaultItem),M}return r(m,[{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M),g=g||this.defaultItem,this.label.innerHTML=g.innerHTML}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function l(f,u){for(var d=0;d<u.length;d++){var h=u[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,u,d){return u&&l(f.prototype,u),d&&l(f,d),f}}();function i(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var o=function(){function l(f,u){var d=this;i(this,l),this.quill=f,this.boundsContainer=u||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return r(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var d=u.left+u.width/2-this.root.offsetWidth/2,h=u.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=h+"px",this.root.classList.remove("ql-flip");var p=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),m=0;if(v.right>p.right&&(m=p.right-v.right,this.root.style.left=d+m+"px"),v.left<p.left&&(m=p.left-v.left,this.root.style.left=d+m+"px"),v.bottom>p.bottom){var y=v.bottom-v.top,g=u.bottom-u.top+y;this.root.style.top=h-g+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();c.default=o},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function N(L,w){var P=[],j=!0,T=!1,B=void 0;try{for(var F=L[Symbol.iterator](),K;!(j=(K=F.next()).done)&&(P.push(K.value),!(w&&P.length===w));j=!0);}catch(G){T=!0,B=G}finally{try{!j&&F.return&&F.return()}finally{if(T)throw B}}return P}return function(L,w){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return N(L,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function N(L,w,P){L===null&&(L=Function.prototype);var j=Object.getOwnPropertyDescriptor(L,w);if(j===void 0){var T=Object.getPrototypeOf(L);return T===null?void 0:N(T,w,P)}else{if("value"in j)return j.value;var B=j.get;return B===void 0?void 0:B.call(P)}},o=function(){function N(L,w){for(var P=0;P<w.length;P++){var j=w[P];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(L,j.key,j)}}return function(L,w,P){return w&&N(L.prototype,w),P&&N(L,P),L}}(),l=n(3),f=x(l),u=n(8),d=x(u),h=n(43),p=x(h),v=n(27),m=x(v),y=n(15),g=n(41),M=x(g);function x(N){return N&&N.__esModule?N:{default:N}}function k(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function b(N,L){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:N}function _(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(N,L):N.__proto__=L)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],H=function(N){_(L,N);function L(w,P){k(this,L),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=C);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.quill.container.classList.add("ql-snow"),j}return o(L,[{key:"extendToolbar",value:function(P){P.container.classList.add("ql-snow"),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),M.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),M.default),this.tooltip=new V(this.quill,this.options.bounds),P.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(j,T){P.handlers.link.call(P,!T.format.link)})}}]),L}(p.default);H.DEFAULTS=(0,f.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(L){if(L){var w=this.quill.getSelection();if(w==null||w.length==0)return;var P=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(P)&&P.indexOf("mailto:")!==0&&(P="mailto:"+P);var j=this.quill.theme.tooltip;j.edit("link",P)}else this.quill.format("link",!1)}}}}});var V=function(N){_(L,N);function L(w,P){k(this,L);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.preview=j.root.querySelector("a.ql-preview"),j}return o(L,[{key:"listen",value:function(){var P=this;i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(j){P.root.classList.contains("ql-editing")?P.save():P.edit("link",P.preview.textContent),j.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(j){if(P.linkRange!=null){var T=P.linkRange;P.restoreFocus(),P.quill.formatText(T,"link",!1,d.default.sources.USER),delete P.linkRange}j.preventDefault(),P.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function(j,T,B){if(j!=null){if(j.length===0&&B===d.default.sources.USER){var F=P.quill.scroll.descendant(m.default,j.index),K=r(F,2),G=K[0],W=K[1];if(G!=null){P.linkRange=new y.Range(j.index-W,G.length());var O=m.default.formats(G.domNode);P.preview.textContent=O,P.preview.setAttribute("href",O),P.show(),P.position(P.quill.getBounds(P.linkRange));return}}else delete P.linkRange;P.hide()}})}},{key:"show",value:function(){i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),L}(h.BaseTooltip);V.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),c.default=H},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(29),i=C1(r),o=n(36),l=n(38),f=n(64),u=n(65),d=C1(u),h=n(66),p=C1(h),v=n(67),m=C1(v),y=n(37),g=n(26),M=n(39),x=n(40),k=n(56),b=C1(k),_=n(68),C=C1(_),H=n(27),V=C1(H),N=n(69),L=C1(N),w=n(70),P=C1(w),j=n(71),T=C1(j),B=n(72),F=C1(B),K=n(73),G=C1(K),W=n(13),O=C1(W),E=n(74),S=C1(E),U=n(75),Z=C1(U),A=n(57),R=C1(A),Q=n(41),c1=C1(Q),e1=n(28),s1=C1(e1),Y=n(59),d1=C1(Y),x1=n(60),f1=C1(x1),t1=n(61),l1=C1(t1),i1=n(108),p1=C1(i1),b1=n(62),v1=C1(b1);function C1(D1){return D1&&D1.__esModule?D1:{default:D1}}i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":M.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":M.FontStyle,"attributors/style/size":x.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":M.FontClass,"formats/size":x.SizeClass,"formats/blockquote":d.default,"formats/code-block":O.default,"formats/header":p.default,"formats/list":m.default,"formats/bold":b.default,"formats/code":W.Code,"formats/italic":C.default,"formats/link":V.default,"formats/script":L.default,"formats/strike":P.default,"formats/underline":T.default,"formats/image":F.default,"formats/video":G.default,"formats/list/item":v.ListItem,"modules/formula":S.default,"modules/syntax":Z.default,"modules/toolbar":R.default,"themes/bubble":p1.default,"themes/snow":v1.default,"ui/icons":c1.default,"ui/picker":s1.default,"ui/icon-picker":f1.default,"ui/color-picker":d1.default,"ui/tooltip":l1.default},!0),c.default=i.default},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.IndentClass=void 0;var r=function(){function m(y,g){for(var M=0;M<g.length;M++){var x=g[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,M){return g&&m(y.prototype,g),M&&m(y,M),y}}(),i=function m(y,g,M){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:m(k,g,M)}else{if("value"in x)return x.value;var b=x.get;return b===void 0?void 0:b.call(M)}},o=n(0),l=f(o);function f(m){return m&&m.__esModule?m:{default:m}}function u(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function d(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function h(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var p=function(m){h(y,m);function y(){return u(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"add",value:function(M,x){if(x==="+1"||x==="-1"){var k=this.value(M)||0;x=x==="+1"?k+1:k-1}return x===0?(this.remove(M),!0):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,M,x)}},{key:"canAdd",value:function(M,x){return i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,x)||i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,parseInt(x))}},{key:"value",value:function(M){return parseInt(i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,M))||void 0}}]),y}(l.default.Attributor.Class),v=new p("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});c.IndentClass=v},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(4),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="blockquote",d.tagName="blockquote",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function p(v,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(v,g.key,g)}}return function(v,m,y){return m&&p(v.prototype,m),y&&p(v,y),v}}(),i=n(4),o=l(i);function l(p){return p&&p.__esModule?p:{default:p}}function f(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function u(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function d(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var h=function(p){d(v,p);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),v}(o.default);h.blotName="header",h.tagName=["H1","H2","H3","H4","H5","H6"],c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.ListItem=void 0;var r=function(){function k(b,_){for(var C=0;C<_.length;C++){var H=_[C];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(b,H.key,H)}}return function(b,_,C){return _&&k(b.prototype,_),C&&k(b,C),b}}(),i=function k(b,_,C){b===null&&(b=Function.prototype);var H=Object.getOwnPropertyDescriptor(b,_);if(H===void 0){var V=Object.getPrototypeOf(b);return V===null?void 0:k(V,_,C)}else{if("value"in H)return H.value;var N=H.get;return N===void 0?void 0:N.call(C)}},o=n(0),l=p(o),f=n(4),u=p(f),d=n(25),h=p(d);function p(k){return k&&k.__esModule?k:{default:k}}function v(k,b,_){return b in k?Object.defineProperty(k,b,{value:_,enumerable:!0,configurable:!0,writable:!0}):k[b]=_,k}function m(k,b){if(!(k instanceof b))throw new TypeError("Cannot call a class as a function")}function y(k,b){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:k}function g(k,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);k.prototype=Object.create(b&&b.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(k,b):k.__proto__=b)}var M=function(k){g(b,k);function b(){return m(this,b),y(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,[{key:"format",value:function(C,H){C===x.blotName&&!H?this.replaceWith(l.default.create(this.statics.scope)):i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,C,H)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,H){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,H),this):(this.parent.unwrap(),i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,C,H))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:i(b.__proto__||Object.getPrototypeOf(b),"formats",this).call(this,C)}}]),b}(u.default);M.blotName="list-item",M.tagName="LI";var x=function(k){g(b,k),r(b,null,[{key:"create",value:function(C){var H=C==="ordered"?"OL":"UL",V=i(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,H);return(C==="checked"||C==="unchecked")&&V.setAttribute("data-checked",C==="checked"),V}},{key:"formats",value:function(C){if(C.tagName==="OL")return"ordered";if(C.tagName==="UL")return C.hasAttribute("data-checked")?C.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function b(_){m(this,b);var C=y(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,_)),H=function(N){if(N.target.parentNode===_){var L=C.statics.formats(_),w=l.default.find(N.target);L==="checked"?w.format("list","unchecked"):L==="unchecked"&&w.format("list","checked")}};return _.addEventListener("touchstart",H),_.addEventListener("mousedown",H),C}return r(b,[{key:"format",value:function(C,H){this.children.length>0&&this.children.tail.format(C,H)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,H){if(C instanceof M)i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,C,H);else{var V=H==null?this.length():H.offset(this),N=this.split(V);N.parent.insertBefore(C,N)}}},{key:"optimize",value:function(C){i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,C);var H=this.next;H!=null&&H.prev===this&&H.statics.blotName===this.statics.blotName&&H.domNode.tagName===this.domNode.tagName&&H.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(H.moveChildren(this),H.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var H=l.default.create(this.statics.defaultChild);C.moveChildren(H),this.appendChild(H)}i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,C)}}]),b}(h.default);x.blotName="list",x.scope=l.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[M],c.ListItem=M,c.default=x},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(56),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="italic",d.tagName=["EM","I"],c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,null,[{key:"create",value:function(g){return g==="super"?document.createElement("sup"):g==="sub"?document.createElement("sub"):i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,g)}},{key:"formats",value:function(g){if(g.tagName==="SUB")return"sub";if(g.tagName==="SUP")return"super"}}]),m}(l.default);p.blotName="script",p.tagName=["SUB","SUP"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="strike",d.tagName="S",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="underline",d.tagName="U",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(0),l=u(o),f=n(27);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["alt","height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return typeof x=="string"&&k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,f.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(l.default.Embed);m.blotName="image",m.tagName="IMG",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(4),l=n(27),f=u(l);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return k.setAttribute("frameborder","0"),k.setAttribute("allowfullscreen",!0),k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"sanitize",value:function(x){return f.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(o.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.FormulaBlot=void 0;var r=function(){function x(k,b){for(var _=0;_<b.length;_++){var C=b[_];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(k,C.key,C)}}return function(k,b,_){return b&&x(k.prototype,b),_&&x(k,_),k}}(),i=function x(k,b,_){k===null&&(k=Function.prototype);var C=Object.getOwnPropertyDescriptor(k,b);if(C===void 0){var H=Object.getPrototypeOf(k);return H===null?void 0:x(H,b,_)}else{if("value"in C)return C.value;var V=C.get;return V===void 0?void 0:V.call(_)}},o=n(35),l=p(o),f=n(5),u=p(f),d=n(9),h=p(d);function p(x){return x&&x.__esModule?x:{default:x}}function v(x,k){if(!(x instanceof k))throw new TypeError("Cannot call a class as a function")}function m(x,k){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:x}function y(x,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);x.prototype=Object.create(k&&k.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(x,k):x.__proto__=k)}var g=function(x){y(k,x);function k(){return v(this,k),m(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,null,[{key:"create",value:function(_){var C=i(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,_);return typeof _=="string"&&(window.katex.render(_,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",_)),C}},{key:"value",value:function(_){return _.getAttribute("data-value")}}]),k}(l.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var M=function(x){y(k,x),r(k,null,[{key:"register",value:function(){u.default.register(g,!0)}}]);function k(){v(this,k);var b=m(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return b}return k}(h.default);c.FormulaBlot=g,c.default=M},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.CodeToken=c.CodeBlock=void 0;var r=function(){function _(C,H){for(var V=0;V<H.length;V++){var N=H[V];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(C,N.key,N)}}return function(C,H,V){return H&&_(C.prototype,H),V&&_(C,V),C}}(),i=function _(C,H,V){C===null&&(C=Function.prototype);var N=Object.getOwnPropertyDescriptor(C,H);if(N===void 0){var L=Object.getPrototypeOf(C);return L===null?void 0:_(L,H,V)}else{if("value"in N)return N.value;var w=N.get;return w===void 0?void 0:w.call(V)}},o=n(0),l=m(o),f=n(5),u=m(f),d=n(9),h=m(d),p=n(13),v=m(p);function m(_){return _&&_.__esModule?_:{default:_}}function y(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}function g(_,C){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:_}function M(_,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);_.prototype=Object.create(C&&C.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(_,C):_.__proto__=C)}var x=function(_){M(C,_);function C(){return y(this,C),g(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"replaceWith",value:function(V){this.domNode.textContent=this.domNode.textContent,this.attach(),i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,V)}},{key:"highlight",value:function(V){var N=this.domNode.textContent;this.cachedText!==N&&((N.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=V(N),this.domNode.normalize(),this.attach()),this.cachedText=N)}}]),C}(v.default);x.className="ql-syntax";var k=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),b=function(_){M(C,_),r(C,null,[{key:"register",value:function(){u.default.register(k,!0),u.default.register(x,!0)}}]);function C(H,V){y(this,C);var N=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,H,V));if(typeof N.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var L=null;return N.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(L),L=setTimeout(function(){N.highlight(),L=null},N.options.interval)}),N.highlight(),N}return r(C,[{key:"highlight",value:function(){var V=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var N=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(L){L.highlight(V.options.highlight)}),this.quill.update(u.default.sources.SILENT),N!=null&&this.quill.setSelection(N,u.default.sources.SILENT)}}}]),C}(h.default);b.DEFAULTS={highlight:function(){return window.hljs==null?null:function(_){var C=window.hljs.highlightAuto(_);return C.value}}(),interval:1e3},c.CodeBlock=x,c.CodeToken=k,c.default=b},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.BubbleTooltip=void 0;var r=function C(H,V,N){H===null&&(H=Function.prototype);var L=Object.getOwnPropertyDescriptor(H,V);if(L===void 0){var w=Object.getPrototypeOf(H);return w===null?void 0:C(w,V,N)}else{if("value"in L)return L.value;var P=L.get;return P===void 0?void 0:P.call(N)}},i=function(){function C(H,V){for(var N=0;N<V.length;N++){var L=V[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(H,L.key,L)}}return function(H,V,N){return V&&C(H.prototype,V),N&&C(H,N),H}}(),o=n(3),l=y(o),f=n(8),u=y(f),d=n(43),h=y(d),p=n(15),v=n(41),m=y(v);function y(C){return C&&C.__esModule?C:{default:C}}function g(C,H){if(!(C instanceof H))throw new TypeError("Cannot call a class as a function")}function M(C,H){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H&&(typeof H=="object"||typeof H=="function")?H:C}function x(C,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof H);C.prototype=Object.create(H&&H.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),H&&(Object.setPrototypeOf?Object.setPrototypeOf(C,H):C.__proto__=H)}var k=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(C){x(H,C);function H(V,N){g(this,H),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=k);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.container.classList.add("ql-bubble"),L}return i(H,[{key:"extendToolbar",value:function(N){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(N.container),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),m.default)}}]),H}(h.default);b.DEFAULTS=(0,l.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(H){H?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(C){x(H,C);function H(V,N){g(this,H);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.on(u.default.events.EDITOR_CHANGE,function(w,P,j,T){if(w===u.default.events.SELECTION_CHANGE)if(P!=null&&P.length>0&&T===u.default.sources.USER){L.show(),L.root.style.left="0px",L.root.style.width="",L.root.style.width=L.root.offsetWidth+"px";var B=L.quill.getLines(P.index,P.length);if(B.length===1)L.position(L.quill.getBounds(P));else{var F=B[B.length-1],K=L.quill.getIndex(F),G=Math.min(F.length()-1,P.index+P.length-K),W=L.quill.getBounds(new p.Range(K,G));L.position(W)}}else document.activeElement!==L.textbox&&L.quill.hasFocus()&&L.hide()}),L}return i(H,[{key:"listen",value:function(){var N=this;r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){N.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!N.root.classList.contains("ql-hidden")){var L=N.quill.getSelection();L!=null&&N.position(N.quill.getBounds(L))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(N){var L=r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"position",this).call(this,N),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",L===0)return L;w.style.marginLeft=-1*L-w.offsetWidth/2+"px"}}]),H}(d.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),c.BubbleTooltip=_,c.default=b},function(a,c,n){a.exports=n(63)}]).default})})(On1);var Bo2=On1.exports;const Ro2=QS1(Bo2);const Fo2={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},$o2={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup(e,t){const a={editorOption:{},quill:null};let c="";s.watch(()=>e.value,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.content,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.disabled,o=>{a.quill&&a.quill.enable(!o)});const n=s.ref(null),r=(o,l)=>{for(const f in l)!o[f]||f!=="modules"?o[f]=l[f]:r(o[f],l[f]);return o},i=()=>{n.value&&(a.editorOption=r(Fo2,e.options),a.editorOption.readOnly=!!e.disabled,a.quill=new Ro2(n.value,a.editorOption),e.value&&a.quill.pasteHTML(e.value),a.quill.on("selection-change",o=>{o?t.emit("focus",a.quill):t.emit("blur",a.quill)}),a.quill.on("text-change",()=>{e.disabled&&a.quill.enable(!1);let o=n.value.children[0].innerHTML;const l=a.quill,f=a.quill.getText();o==="<p><br></p>"&&(o=""),c=o,t.emit("update:value",c),t.emit("change",{html:o,text:f,quill:l})}),t.emit("ready",a.quill))};return s.onBeforeUnmount(()=>{const o=n.value.previousSibling;o&&o.nodeType===1&&o.className.indexOf("ql-toolbar")>-1&&o.parentNode.removeChild(o)}),s.onMounted(()=>{i()}),s.onUnmounted(()=>{a.quill=null}),{editor:n}}},qo2={ref:"editor"};function jo2(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("section",qo2,null,512)}const NR=Q1($o2,[["render",jo2]]);NR.install=function(e){e.component(NR.name,NR)};const Uo2=s.defineComponent({__name:"PgaMaxLength",props:{content:{},maxLength:{}},setup(e){const t=e,a=s.computed(()=>{var n;return((n=t.content)==null?void 0:n.length)||0}),c=s.computed(()=>a.value>t.maxLength);return(n,r)=>(s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(["pga-max-length",{"pga-max-length--error":c.value}])},s.toDisplayString(`${a.value} / ${n.maxLength}`),3))}});const LX=Q1(Uo2,[["__scopeId","data-v-4e8a2dd8"]]),Wo2={class:"pga-editor"},Yo2={class:"editor__container"},Go2={class:"editor__footer"},Zo2=s.defineComponent({__name:"PgaEditor",props:s.mergeModels({saveFn:{type:Function},maxContentLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=Te.getConfig(),n=$2("pgaEditor"),r={placeholder:"",modules:{toolbar:[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],["link"],["clean"]]}},i=s.ref(t.value),o=s.ref(!1);let l;const f=s.ref(!1),u=s.ref(!1),d=s.computed(()=>a.maxContentLength||c.stringLengths.hyperLong),h=s.computed(()=>oc1(t.value)),p=s.computed(()=>h.value.length),v=s.computed(()=>p.value>d.value);s.watch(t,()=>{f.value=!1,u.value=!1,clearTimeout(l),l=setTimeout(()=>m(),1e3*3)});async function m(){if(i.value!==t.value){if(v.value){u.value=!0;return}try{o.value=!0,i.value=await a.saveFn(t.value),f.value=!0,setTimeout(()=>f.value=!1,1e3*3)}finally{o.value=!1}}}return(y,g)=>(s.openBlock(),s.createElementBlock("div",Wo2,[s.createElementVNode("div",Yo2,[s.createVNode(s.unref(NR),{value:t.value,"onUpdate:value":g[0]||(g[0]=M=>t.value=M),options:r},null,8,["value"])]),s.createElementVNode("div",Go2,[s.createVNode(LX,{content:h.value,maxLength:d.value},null,8,["content","maxLength"]),o.value?(s.openBlock(),s.createBlock(w8,{key:0,size:"m",noCenter:""})):f.value?(s.openBlock(),s.createBlock(D3,{key:1,icon:"save",text:s.unref(n)("savedMsg"),color:"success"},null,8,["text"])):u.value?(s.openBlock(),s.createBlock(D3,{key:2,icon:"circle-x",text:s.unref(n)("saveErrorMsg"),color:"danger"},null,8,["text"])):s.createCommentVNode("",!0)])]))}});const Xo2=Q1(Zo2,[["__scopeId","data-v-deeba25a"]]),Ko2={class:"pga-info-card"},Qo2={key:1,class:"info-card__content"},Jo2=s.defineComponent({__name:"PgaInfoCard",props:{type:{default:"success"},title:{},description:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",Ko2,[t.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):(s.openBlock(),s.createElementBlock("div",Qo2,[s.createVNode(le,{icon:t.type==="success"?"circle-check":"circle-x",color:t.type,size:"1.9rem"},null,8,["icon","color"]),s.createVNode(D3,{class:"info-card__title",text:t.title},null,8,["text"]),t.description?(s.openBlock(),s.createBlock(D3,{key:0,class:"info-card__description",text:t.description},null,8,["text"])):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const es2=Q1(Jo2,[["__scopeId","data-v-cae9e4b4"]]),Uf=s.defineComponent({__name:"PgaInfoTooltip",props:{info:{},size:{default:"0.9rem"}},setup(e){const t=e,a=s.computed(()=>oe(t.info));return(c,n)=>{const r=s.resolveDirective("tooltip");return a.value?s.withDirectives((s.openBlock(),s.createBlock(le,{key:0,icon:"circle-help",size:c.size},null,8,["size"])),[[r,{content:a.value,html:!0}]]):s.createCommentVNode("",!0)}}}),ts2=s.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const t=e;return(a,c)=>(s.openBlock(),s.createBlock(le,{icon:t.isEnabled?"circle-check":"circle-x",color:t.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),as2=s.defineComponent({__name:"PgaItemSelected",props:s.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const a=s.useModel(e,"modelValue"),c=e;t({toggleItemSelected:r});const n=s.computed({get(){if(c.item)return!!a.value.find(o=>o.id===c.item.id);for(const i of c.items)if(!a.value.find(l=>l.id===i.id))return!1;return!0},set(i){c.item?i?a.value.push(c.item):a.value=a.value.filter(o=>o.id!==c.item.id):i?a.value=[...c.items]:a.value=[]}});function r(){n.value=!n.value}return(i,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["item-selected",{"item-selected--selected":n.value}]),onClick:o[0]||(o[0]=l=>r())},[n.value?(s.openBlock(),s.createBlock(le,{key:0,class:"item-selected__check-icon",icon:"check"})):s.createCommentVNode("",!0)],2))}});const PY=Q1(as2,[["__scopeId","data-v-1c9cee8f"]]),cs2={class:"modal__header"},ns2=["textContent"],rs2={class:"modal__body"},is2={key:0,class:"modal__footer"},os2=s.defineComponent({__name:"PgaModal",props:s.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean},width:{default:"auto"},acceptText:{},cancelText:{},acceptIcon:{default:"save"}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:t}){s.useCssVars(r=>({"5910b0a9":r.width}));const a=s.useModel(e,"modelValue"),c=t,n=$2("pgaModal");return s.watch(a,r=>wl(!r)),(r,i)=>a.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"modal",onMousedown:i[4]||(i[4]=o=>a.value=!1)},[s.createElementVNode("div",{class:"modal__content",onMousedown:i[3]||(i[3]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",cs2,[s.createElementVNode("span",{class:"modal__title",textContent:s.toDisplayString(r.title)},null,8,ns2),s.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=o=>a.value=!1)},[s.createVNode(le,{icon:"x"})])]),s.createElementVNode("div",rs2,[s.renderSlot(r.$slots,"default",{},void 0,!0)]),r.confirmButtons?(s.openBlock(),s.createElementBlock("div",is2,[r.isLoading?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(V2,{key:0,text:r.cancelText||s.unref(n)("cancelBtn"),color:"danger",variant:"flat",onClick:i[1]||(i[1]=o=>a.value=!1)},null,8,["text"])),s.createVNode(V2,{icon:r.acceptIcon,text:r.acceptText||s.unref(n)("acceptBtn"),color:"success",variant:"filled",isLoading:r.isLoading,onClick:i[2]||(i[2]=o=>c("accept"))},null,8,["icon","text","isLoading"])])):s.createCommentVNode("",!0)],32)],32)):s.createCommentVNode("",!0)}});const ss2=Q1(os2,[["__scopeId","data-v-563318ed"]]),ls2={class:"pga-flex-row"},fs2=s.defineComponent({__name:"PgaMonthSelector",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=s.computed({get(){return{year:t.value.datetimeFrom.getFullYear(),month:t.value.datetimeFrom.getMonth()}},set(r){const i=new Date(r.year,r.month,1);t.value={datetimeFrom:i,datetimeTo:c4.getNextMonthStartDate(i)}}});function c(){t.value={datetimeFrom:c4.getPreviousMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getPreviousMonthStartDate(t.value.datetimeTo)}}function n(){t.value={datetimeFrom:c4.getNextMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getNextMonthStartDate(t.value.datetimeTo)}}return(r,i)=>{const o=s.resolveComponent("PgaButton"),l=s.resolveComponent("PgaMonthPicker");return s.openBlock(),s.createElementBlock("div",ls2,[s.createVNode(o,{icon:"chevron-left",variant:"flat",color:"first",onClick:i[0]||(i[0]=f=>c())}),s.createVNode(l,{modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=f=>a.value=f),notClearable:""},null,8,["modelValue"]),s.createVNode(o,{icon:"chevron-right",variant:"flat",color:"first",onClick:i[2]||(i[2]=f=>n())})])}}}),us2=s.defineComponent({__name:"PgaSeparator",props:{vertical:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["separator",{"separator--vertical":t.vertical}])},null,2))}});const ds2=Q1(us2,[["__scopeId","data-v-12540ee5"]]),hs2={class:"pga-tabs"},ps2={class:"tabs__nav",role:"tablist"},ms2=["onClick"],vs2={class:"tabs__section",role:"tabpanel"},ys2=s.defineComponent({__name:"PgaTabs",props:{tabs:{}},setup(e){const t=s.ref(0);return(a,c)=>{const n=s.resolveComponent("PgaIcon"),r=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createElementBlock("div",hs2,[s.createElementVNode("nav",ps2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.tabs,(i,o)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(["tabs__button",{"tabs__button--active":t.value===o}]),key:`tab-${o}`,role:"tab",onClick:l=>t.value=o},[i.icon?(s.openBlock(),s.createBlock(n,{key:0,class:"tabs__icon",icon:i.icon},null,8,["icon"])):s.createCommentVNode("",!0),s.createVNode(r,{class:"tabs__label",text:i.label},null,8,["text"])],10,ms2))),128))]),s.createElementVNode("section",vs2,[s.renderSlot(a.$slots,`panel${t.value+1}`,{},void 0,!0)])])}}});const gs2=Q1(ys2,[["__scopeId","data-v-0a537190"]]),Ms2=["accept","multiple","disabled"],ks2={class:"input-file__label-container"},xs2=s.defineComponent({__name:"PgaInputFile",props:{type:{},multiple:{type:Boolean},label:{},disabled:{type:Boolean},isLoading:{type:Boolean}},emits:["newFile","newFiles"],setup(e,{expose:t,emit:a}){s.useCssVars(b=>({"7207a104":s.unref(r).input.borderColor,"31596fd7":s.unref(r).input.borderRadius,"5c7c5788":s.unref(r).input.backgroundColor,"4cd04a60":s.unref(r).input.backgroundColorHover,"00b876d8":s.unref(r).input.backgroundColorDisabled}));const c=e,n=a;t({click:M,resetInput:x});const{form:r}=i4(),i=$2("pgaForm"),o=(()=>c.type==="image"?["jpeg","jpg","png","webp","gif","svg","bmp","tiff","heic"]:c.type==="video"?["mp4","mov","avi","webm","mkv"]:["xls","xlsx"])(),l=o.map(b=>`.${b}`).join(","),f=s.ref(),u=s.ref([]),d=s.ref(!1),h=s.ref(!1),p=s.computed(()=>c.disabled||c.isLoading),v=s.computed(()=>!!u.value.length),m=s.computed(()=>{for(const b of u.value){const _=b.name.split(".").pop();if(!o.includes(_))return!1}return!0}),y=s.computed(()=>{const b={icon:"upload"};return!v.value||d.value&&!h.value&&!p.value?b:m.value?{icon:"circle-check",color:"success"}:{icon:"circle-x",color:"danger"}}),g=s.computed(()=>v.value?u.value.map(b=>b.name).join(", "):c.label?c.label:c.multiple?i("selectFilesLabel"):i("selectFileLabel"));function M(){var b;(b=f.value)==null||b.click()}function x(){u.value=[],f.value&&(f.value.value="")}function k(b){d.value=!1;const C=b.target.files;if(C.length){if(u.value=[...C],!m.value){H0("danger",()=>i("newFileError"));return}n("newFile",C[0]),n("newFiles",[...C])}}return(b,_)=>(s.openBlock(),s.createElementBlock("label",{class:s.normalizeClass(["pga-input-file",{"pga-input-file--disabled":p.value}]),onMouseenter:_[4]||(_[4]=C=>d.value=!0),onMouseleave:_[5]||(_[5]=C=>d.value=!1)},[b.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("input",{ref_key:"inputRef",ref:f,class:"input-file__input",type:"file",accept:s.unref(l),multiple:b.multiple,disabled:p.value,onChange:_[0]||(_[0]=C=>k(C))},null,40,Ms2),s.createVNode(le,{class:"input-file__icon",icon:y.value.icon,color:y.value.color},null,8,["icon","color"]),s.createElementVNode("div",ks2,[s.createVNode(D3,{text:g.value},null,8,["text"])]),v.value?(s.openBlock(),s.createBlock(V2,{key:0,text:s.unref(i)("removeBtn"),variant:"flat",color:"danger",size:"s",disabled:p.value,onMouseenter:_[1]||(_[1]=C=>h.value=!0),onMouseleave:_[2]||(_[2]=C=>h.value=!1),onClick:_[3]||(_[3]=s.withModifiers(C=>x(),["prevent"]))},null,8,["text","disabled"])):s.createCommentVNode("",!0)],64))],34))}});const Wf=Q1(xs2,[["__scopeId","data-v-328dfe0e"]]),bs2={class:"pga-videos"},zs2={class:"videos"},Cs2=["src"],_s2={key:0,class:"videos__input-container"},ws2=s.defineComponent({__name:"PgaVideos",props:s.mergeModels({maxVideosQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=$2("pgaFile"),n=s.ref(),r=s.ref(!1),i=s.ref(-1),o=s.computed(()=>t.value.length),l=s.computed(()=>t.value.map(d=>typeof d=="string"?d:URL.createObjectURL(d)));async function f(d){var h;if((h=n.value)==null||h.resetInput(),o.value+d.length>a.maxVideosQuantity&&(d=d.slice(0,a.maxVideosQuantity-o.value),H0("warning",()=>c("maxVideosQuantityAlert",{maxQuantity:a.maxVideosQuantity}))),!a.uploadFn){t.value.push(...d);return}try{r.value=!0,t.value=await a.uploadFn({file:d})}finally{r.value=!1}}async function u(d){if(a.deleteFn)try{i.value=d,await a.deleteFn({index:d})}finally{i.value=-1}t.value.splice(d,1)}return(d,h)=>{const p=s.resolveComponent("PgaDeleteButton");return s.openBlock(),s.createElementBlock("div",bs2,[s.createElementVNode("div",zs2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(v,m)=>(s.openBlock(),s.createElementBlock("div",{key:v,class:"videos__video-container"},[s.createElementVNode("video",{class:"videos__video",src:v,controls:""},null,8,Cs2),s.createVNode(p,{class:"videos__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===m,onDeleteConfirmed:y=>u(m)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),o.value<d.maxVideosQuantity?(s.openBlock(),s.createElementBlock("div",_s2,[s.createVNode(Wf,{ref_key:"inputFileRef",ref:n,class:"videos__input",type:"video",multiple:"",label:s.unref(c)("selectVideos"),isLoading:r.value,onNewFiles:h[0]||(h[0]=v=>f(v))},null,8,["label","isLoading"])])):s.createCommentVNode("",!0)]),s.createElementVNode("span",null,s.toDisplayString(`${o.value} / ${d.maxVideosQuantity}`),1)])}}});const Hs2=Q1(ws2,[["__scopeId","data-v-d4d3416e"]]),Ls2=s.defineComponent({__name:"PgaBackButton",setup(e){const t=$2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(V2,{text:s.unref(t)("backBtn"),icon:"chevron-left",color:"first",size:"s"},null,8,["text"]))}}),Vs2={class:"pga-copy"},Ss2=s.defineComponent({__name:"PgaCopy",props:{text:{}},setup(e){const t=e,a=$2("pgaButton"),c=s.ref(!1),n=s.computed(()=>oe(t.text));async function r(){await navigator.clipboard.writeText(n.value),c.value=!0,setTimeout(()=>c.value=!1,3e3)}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.openBlock(),s.createElementBlock("div",Vs2,[s.createElementVNode("span",null,s.toDisplayString(n.value),1),c.value?(s.openBlock(),s.createBlock(le,{key:1,icon:"circle-check",color:"success"})):s.withDirectives((s.openBlock(),s.createBlock(V2,{key:0,color:"first",icon:"copy",size:"s",onClick:o[0]||(o[0]=f=>r())},null,512)),[[l,s.unref(a)("copyBtn")]])])}}});const Ns2=Q1(Ss2,[["__scopeId","data-v-64962c4d"]]),As2=s.defineComponent({__name:"PgaCopyButton",props:{text:{},label:{}},setup(e){const t=e,a=$2("pgaButton"),c=s.computed(()=>oe(t.text)),n=s.computed(()=>t.label||a("copyBtn"));async function r(){await navigator.clipboard.writeText(c.value),H0("success",()=>a("textCopied"))}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(V2,{color:"first",icon:"copy",text:n.value,onClick:o[0]||(o[0]=f=>r())},null,8,["text"])),[[l,c.value]])}}}),Ts2={class:"alert"},Es2={class:"alert__content"},Ds2=["textContent"],Ps2={class:"alert__buttons"},Os2=s.defineComponent({__name:"Alert",props:{message:{},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const t=ln1.directive,a=$2("alert");return s.onMounted(()=>wl(!1)),s.onUnmounted(()=>wl(!0)),(c,n)=>(s.openBlock(),s.createElementBlock("div",Ts2,[s.withDirectives((s.openBlock(),s.createElementBlock("div",Es2,[s.createVNode(le,{class:"alert__icon",icon:"triangle-alert"}),s.createElementVNode("span",{class:"alert__title",textContent:s.toDisplayString(s.unref(a)("alertTitle"))},null,8,Ds2),c.message?(s.openBlock(),s.createBlock(D3,{key:0,class:"alert__message",text:c.message},null,8,["text"])):s.createCommentVNode("",!0),s.createElementVNode("div",Ps2,[s.createVNode(V2,{class:"alert__button",text:s.unref(a)("cancelBtn"),variant:"filled",color:"grey",onClick:n[0]||(n[0]=r=>c.handleCloseFn())},null,8,["text"]),s.createVNode(V2,{class:"alert__button",text:s.unref(a)("acceptBtn"),variant:"filled",color:"danger",onClick:n[1]||(n[1]=r=>c.handleAcceptFn())},null,8,["text"])])])),[[s.unref(t),c.handleCloseFn]])]))}});const Is2=Q1(Os2,[["__scopeId","data-v-698ccd72"]]);function In1(e,t){const a=document.createElement("div");document.body.appendChild(a);const c=s.createApp({render(){return s.h(Is2,{message:e,handleAcceptFn:r,handleCloseFn:n})}});c.mount(a);function n(){c.unmount(),document.body.removeChild(a)}function r(){n(),t()}}const rq=s.defineComponent({__name:"PgaDeleteButton",props:{variant:{default:"flat"},icon:{default:"trash-2"},text:{},withoutText:{type:Boolean},withoutConfirm:{type:Boolean},confirmDeleteText:{}},emits:["deleteConfirmed"],setup(e,{emit:t}){const a=e,c=t,n=$2("pgaButton");function r(){if(a.withoutConfirm){c("deleteConfirmed");return}const i=a.confirmDeleteText||n("confirmDeleteText");In1(i,()=>c("deleteConfirmed"))}return(i,o)=>(s.openBlock(),s.createBlock(V2,{class:"delete-button",variant:i.variant,icon:i.icon,text:i.withoutText?void 0:i.text||s.unref(n)("deleteBtn"),size:"s",align:"left",color:"danger",onClick:o[0]||(o[0]=l=>r())},null,8,["variant","icon","text"]))}}),OY=s.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean},fullWidth:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>{const n=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(V2,{class:"edit-button",variant:"flat",color:"sky",icon:"square-pen",text:a.withoutText?void 0:s.unref(t)("editBtn"),size:"s",fullWidth:a.fullWidth,align:"left"},null,8,["text","fullWidth"])),[[n,a.withoutText?s.unref(t)("editBtn"):""]])}}}),Bs2=["href","target"],Rs2=s.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("a",{class:"hyperlink",href:t.href,target:t.target},[s.createVNode(D3,{text:t.text,withUnderlineOnHover:""},null,8,["text"])],8,Bs2))}});const Bn1=Q1(Rs2,[["__scopeId","data-v-ec435fa7"]]),Fs2=s.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:t}){const a=t,c=$2("pgaButton");return(n,r)=>(s.openBlock(),s.createBlock(V2,{icon:"log-out",text:s.unref(c)("logoutBtn"),color:"danger",onClick:r[0]||(r[0]=i=>a("click",i))},null,8,["text"]))}}),$s2=s.defineComponent({__name:"PgaRouterLink",props:{name:{},params:{},query:{},color:{default:"var(--pga-color-first)"},noFitContent:{type:Boolean},underline:{type:Boolean},noUnderlineOnHover:{type:Boolean}},setup(e){s.useCssVars(n=>({"040e9024":a.value,"75a55a4c":c.value}));const t=e,a=s.computed(()=>`var(--pga-color-${t.color})`),c=s.computed(()=>`var(--pga-color-${t.color}-09)`);return(n,r)=>{const i=s.resolveComponent("RouterLink");return s.openBlock(),s.createBlock(i,{class:s.normalizeClass(["pga-router-link",{"pga-router-link--fit-content":!n.noFitContent,"pga-router-link--underline":n.underline,"pga-router-link--underline-on-hover":!n.noUnderlineOnHover}]),to:{name:n.name,params:n.params,query:n.query},onClick:r[0]||(r[0]=o=>s.unref(wl)(!0))},{default:s.withCtx(()=>[s.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["class","to"])}}});const Yf=Q1($s2,[["__scopeId","data-v-6046ce2c"]]),Rn1=s.defineComponent({__name:"PgaRouterLinkButton",props:{name:{},params:{},query:{},type:{},icon:{},text:{},variant:{},size:{},align:{},color:{},heightAndWidth:{},borderRadius:{},rounded:{type:Boolean},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{},noFitContent:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(Yf,{name:t.name,params:t.params,query:t.query,noFitContent:t.noFitContent,noUnderlineOnHover:""},{default:s.withCtx(()=>[t.$slots.default?s.renderSlot(t.$slots,"default",{key:0}):(s.openBlock(),s.createBlock(V2,{key:1,type:t.type,icon:t.icon,text:t.text,variant:t.variant,size:t.size,align:t.align,color:t.color,fullWidth:!t.heightAndWidth,heightAndWidth:t.heightAndWidth,borderRadius:t.borderRadius,rounded:t.rounded,disabled:t.disabled,isLoading:t.isLoading,numberToDisplay:t.numberToDisplay},null,8,["type","icon","text","variant","size","align","color","fullWidth","heightAndWidth","borderRadius","rounded","disabled","isLoading","numberToDisplay"]))]),_:3},8,["name","params","query","noFitContent"]))}}),Fn1=s.defineComponent({__name:"PgaNavigateToButton",props:{id:{},toName:{},withoutText:{type:Boolean},noFitContent:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>a.toName?(s.openBlock(),s.createBlock(Rn1,{key:0,name:a.toName,params:{id:a.id},icon:"external-link",text:a.withoutText?void 0:s.unref(t)("navigateToBtn"),variant:"flat",size:"s",align:"left",color:"link",noFitContent:a.noFitContent},null,8,["name","params","text","noFitContent"])):s.createCommentVNode("",!0)}}),qs2=s.defineComponent({__name:"PgaRemoveButton",props:{size:{default:"s"},disabled:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(V2,{variant:"flat",icon:"x",size:t.size,color:"danger",disabled:t.disabled},null,8,["size","disabled"]))}}),js2=s.defineComponent({__name:"PgaSeeDetailsButton",props:{withoutText:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(V2,{class:"edit-button",variant:"flat",color:"grey",icon:"eye",text:a.withoutText?void 0:s.unref(t)("seeDetailsBtn"),size:"s",align:"left"},null,8,["text"]))}}),Us2=s.defineComponent({__name:"PgaToggleButton",props:s.mergeModels({text:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=t,n=s.computed(()=>a.value?"outlined":"flat"),r=s.computed(()=>a.value?"primary":"grey");return s.watch(a,i=>c("change",i)),(i,o)=>(s.openBlock(),s.createBlock(V2,{variant:n.value,color:r.value,icon:"circle-check",text:i.text,size:"s",borderRadius:"1rem",onClick:o[0]||(o[0]=l=>a.value=!a.value)},null,8,["variant","color","text"]))}});var Ws2=Object.defineProperty,Ys2=(e,t,a)=>t in e?Ws2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Wt=(e,t,a)=>Ys2(e,typeof t!="symbol"?t+"":t,a);const Gs2=(e,t,a)=>{const c=e[t];return c?typeof c=="function"?c():Promise.resolve(c):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==a?". Note that variables only represent file names one level deep.":""))))})};let js,j31,U31,g0,Us={},Xi={};class Zs2{constructor(t,a=!1){Wt(this,"texts",{}),Wt(this,"dateToMinutes",c=>c.getHours()*60+c.getMinutes()),g0=this,this._texts=t,!a&&Date&&!Date.prototype.addDays&&this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return g0.addDays(this,t)},Date.prototype.subtractDays=function(t){return g0.subtractDays(this,t)},Date.prototype.addHours=function(t){return g0.addHours(this,t)},Date.prototype.subtractHours=function(t){return g0.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return g0.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return g0.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return g0.getWeek(this)},Date.prototype.isToday=function(){return g0.isToday(this)},Date.prototype.isLeapYear=function(){return g0.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return g0.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return g0.formatTime(this,t)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(t){this._texts=t}_todayFormatted(){return j31!==new Date().getDate()&&(js=new Date,j31=js.getDate(),U31=`${js.getFullYear()}-${js.getMonth()}-${js.getDate()}`),U31}addDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()+a),c}subtractDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()-a),c}addHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()+a),c}subtractHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()-a),c}addMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()+a),c}subtractMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()-a),c}getWeek(t){const a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),c=a.getUTCDay()||7;a.setUTCDate(a.getUTCDate()+4-c);const n=new Date(Date.UTC(a.getUTCFullYear(),0,1));return Math.ceil(((a-n)/864e5+1)/7)}isToday(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`===this._todayFormatted()}isLeapYear(t){const a=t.getFullYear();return!(a%400)||a%100&&!(a%4)}getPreviousFirstDayOfWeek(t=null,a){const c=t&&new Date(t.valueOf())||new Date,n=a?7:6;return c.setDate(c.getDate()-(c.getDay()+n)%7),c}stringToDate(t){return t instanceof Date?t:(t.length===10&&(t+=" 00:00"),new Date(t.replace(/-/g,"/")))}countDays(t,a){typeof t=="string"&&(t=t.replace(/-/g,"/")),typeof a=="string"&&(a=a.replace(/-/g,"/")),t=new Date(t).setHours(0,0,0,0),a=new Date(a).setHours(0,0,1,0);const c=(new Date(a).getTimezoneOffset()-new Date(t).getTimezoneOffset())*60*1e3;return Math.ceil((a-t-c)/(24*3600*1e3))}datesInSameTimeStep(t,a,c){return Math.abs(t.getTime()-a.getTime())<=c*60*1e3}formatDate(t,a="YYYY-MM-DD",c=null){if(c||(c=this._texts),a||(a="YYYY-MM-DD"),a==="YYYY-MM-DD")return this.formatDateLite(t);Us={},Xi={};const n={YYYY:()=>this._hydrateDateObject(t,c).YYYY,YY:()=>this._hydrateDateObject(t,c).YY(),M:()=>this._hydrateDateObject(t,c).M,MM:()=>this._hydrateDateObject(t,c).MM(),MMM:()=>this._hydrateDateObject(t,c).MMM(),MMMM:()=>this._hydrateDateObject(t,c).MMMM(),MMMMG:()=>this._hydrateDateObject(t,c).MMMMG(),D:()=>this._hydrateDateObject(t,c).D,DD:()=>this._hydrateDateObject(t,c).DD(),S:()=>this._hydrateDateObject(t,c).S(),d:()=>this._hydrateDateObject(t,c).d,dd:()=>this._hydrateDateObject(t,c).dd(),ddd:()=>this._hydrateDateObject(t,c).ddd(),dddd:()=>this._hydrateDateObject(t,c).dddd(),HH:()=>this._hydrateTimeObject(t,c).HH,H:()=>this._hydrateTimeObject(t,c).H,hh:()=>this._hydrateTimeObject(t,c).hh,h:()=>this._hydrateTimeObject(t,c).h,am:()=>this._hydrateTimeObject(t,c).am,AM:()=>this._hydrateTimeObject(t,c).AM,mm:()=>this._hydrateTimeObject(t,c).mm,m:()=>this._hydrateTimeObject(t,c).m};return a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(r,i)=>{const o=n[i.replace(/\{|\}/g,"")];return o!==void 0?o():i})}formatDateLite(t){const a=t.getMonth()+1,c=t.getDate();return`${t.getFullYear()}-${a<10?"0":""}${a}-${c<10?"0":""}${c}`}formatTime(t,a="HH:mm",c=null,n=!1){let r=!1;if(n){const[l,f,u]=[t.getHours(),t.getMinutes(),t.getSeconds()];l+f+u===23+59+59&&(r=!0)}if(t instanceof Date&&a==="HH:mm")return r?"24:00":this.formatTimeLite(t);Xi={},c||(c=this._texts);const i=this._hydrateTimeObject(t,c),o=a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(l,f)=>{const u=i[f.replace(/\{|\}/g,"")];return u!==void 0?u:f});return r?o.replace("23:59","24:00"):o}formatTimeLite(t){const a=t.getHours(),c=t.getMinutes();return`${(a<10?"0":"")+a}:${(c<10?"0":"")+c}`}_nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(t,a){if(Us.D)return Us;const c=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),o=(t.getDay()-1+7)%7;return Us={YYYY:c,YY:()=>c.toString().substring(2),M:n,MM:()=>(n<10?"0":"")+n,MMM:()=>a.months[n-1].substring(0,3),MMMM:()=>a.months[n-1],MMMMG:()=>(a.monthsGenitive||a.months)[n-1],D:r,DD:()=>(r<10?"0":"")+r,S:()=>this._nth(r),d:o+1,dd:()=>a.weekDays[o][0],ddd:()=>a.weekDays[o].substr(0,3),dddd:()=>a.weekDays[o]},Us}_hydrateTimeObject(t,a){if(Xi.am)return Xi;let c,n;t instanceof Date?(c=t.getHours(),n=t.getMinutes()):(c=Math.floor(t/60),n=Math.floor(t%60));const r=c%12?c%12:12,i=(a||{am:"am",pm:"pm"})[c===24||c<12?"am":"pm"];return Xi={H:c,h:r,HH:(c<10?"0":"")+c,hh:(r<10?"0":"")+r,am:i,AM:i.toUpperCase(),m:n,mm:(n<10?"0":"")+n},Xi}}const Xs2=24*60;class Ks2{constructor(t){Wt(this,"_vuecal",null),Wt(this,"selectCell",(a=!1,c,n)=>{this._vuecal.$emit("cell-click",n?{date:c,split:n}:c),this._vuecal.clickToNavigate||a?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",n?{date:c,split:n}:c)))}),Wt(this,"keyPressEnterCell",(a,c)=>{this._vuecal.$emit("cell-keypress-enter",c?{date:a,split:c}:a),this._vuecal.switchToNarrowerView()}),Wt(this,"getPosition",a=>{const{left:c,top:n}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:r,clientY:i}="ontouchstart"in window&&a.touches?a.touches[0]:a;return{x:r-c,y:i-n}}),Wt(this,"minutesAtCursor",a=>{let c=0,n={x:0,y:0};const{timeStep:r,timeCellHeight:i,timeFrom:o}=this._vuecal.$props;return typeof a=="number"?c=a:typeof a=="object"&&(n=this.getPosition(a),c=Math.round(n.y*r/parseInt(i)+o)),{minutes:Math.max(Math.min(c,Xs2),0),cursorCoords:n}}),this._vuecal=t}}const Qs2=2,hU=24*60;let U3,W3,pU;class Js2{constructor(t,a){Wt(this,"_vuecal",null),Wt(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=t,U3=a}createAnEvent(t,a,c){if(typeof t=="string"&&(t=U3.stringToDate(t)),!(t instanceof Date))return!1;const n=U3.dateToMinutes(t);a=a*1||Qs2*60;const r=n+a,i=U3.addMinutes(new Date(t),a);c.end&&(typeof c.end=="string"&&(c.end=U3.stringToDate(c.end)),c.endTimeMinutes=U3.dateToMinutes(c.end));const o={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:t,startTimeMinutes:n,end:i,endTimeMinutes:r,segments:null,...c};if(!(typeof this._vuecal.onEventCreate=="function"&&!this._vuecal.onEventCreate(o,()=>this.deleteAnEvent(o))))return o.startDateF!==o.endDateF&&(o.daysCount=U3.countDays(o.start,o.end)),this._vuecal.mutableEvents.push(o),this._vuecal.addEventsToView([o]),this._vuecal.emitWithEvent("event-create",o),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(o),originalEvent:null}),o}addEventSegment(t){t.segments||(t.segments={},t.segments[U3.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:hU,isFirstDay:!0,isLastDay:!1});const a=t.segments[U3.formatDateLite(t.end)];a&&(a.isLastDay=!1,a.endTimeMinutes=hU);const c=U3.addDays(t.end,1),n=U3.formatDateLite(c);return c.setHours(0,0,0,0),t.segments[n]={start:c,startTimeMinutes:0,endTimeMinutes:t.endTimeMinutes,isFirstDay:!1,isLastDay:!0},t.end=U3.addMinutes(c,t.endTimeMinutes),t.daysCount=Object.keys(t.segments).length,n}removeEventSegment(t){let a=Object.keys(t.segments).length;if(a<=1)return U3.formatDateLite(t.end);delete t.segments[U3.formatDateLite(t.end)],a--;const c=U3.subtractDays(t.end,1),n=U3.formatDateLite(c),r=t.segments[n];return a?r&&(r.isLastDay=!0,r.endTimeMinutes=t.endTimeMinutes):t.segments=null,t.daysCount=a||1,t.end=c,n}createEventSegments(t,a,c){const n=a.getTime(),r=c.getTime();let i=t.start.getTime(),o=t.end.getTime(),l=!1,f,u,d;for(!t.end.getHours()&&!t.end.getMinutes()&&(o-=1e3),t.segments={},t.repeat?(f=n,u=Math.min(r,t.repeat.until?U3.stringToDate(t.repeat.until).getTime():r)):(f=Math.max(n,i),u=Math.min(r,o));f<=u;){let h=!1;const p=U3.addDays(new Date(f),1).setHours(0,0,0,0);let v,m,y,g;if(t.repeat){const M=new Date(f),x=U3.formatDateLite(M);(l||t.occurrences&&t.occurrences[x])&&(l||(i=t.occurrences[x].start,d=new Date(i).setHours(0,0,0,0),o=t.occurrences[x].end),l=!0,h=!0),v=f===d,m=x===U3.formatDateLite(new Date(o)),y=new Date(v?i:f),g=U3.formatDateLite(y),m&&(l=!1)}else h=!0,v=f===i,m=u===o&&p>u,y=v?t.start:new Date(f),g=U3.formatDateLite(v?t.start:y);h&&(t.segments[g]={start:y,startTimeMinutes:v?t.startTimeMinutes:0,endTimeMinutes:m?t.endTimeMinutes:hU,isFirstDay:v,isLastDay:m}),f=p}return t}deleteAnEvent(t){this._vuecal.emitWithEvent("event-delete",t),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(a=>a._eid!==t._eid),this._vuecal.view.events=this._vuecal.view.events.filter(a=>a._eid!==t._eid)}checkCellOverlappingEvents(t,a){pU=t.slice(0),W3={},t.forEach(n=>{pU.shift(),W3[n._eid]||(W3[n._eid]={overlaps:[],start:n.start,position:0}),W3[n._eid].position=0,pU.forEach(r=>{W3[r._eid]||(W3[r._eid]={overlaps:[],start:r.start,position:0});const i=this.eventInRange(r,n.start,n.end),o=a.overlapsPerTimeStep?U3.datesInSameTimeStep(n.start,r.start,a.timeStep):1;if(!n.background&&!n.allDay&&!r.background&&!r.allDay&&i&&o)W3[n._eid].overlaps.push(r._eid),W3[n._eid].overlaps=[...new Set(W3[n._eid].overlaps)],W3[r._eid].overlaps.push(n._eid),W3[r._eid].overlaps=[...new Set(W3[r._eid].overlaps)],W3[r._eid].position++;else{let l,f;(l=(W3[n._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&W3[n._eid].overlaps.splice(l,1),(f=(W3[r._eid]||{overlaps:[]}).overlaps.indexOf(n._eid))>-1&&W3[r._eid].overlaps.splice(f,1),W3[r._eid].position--}})});let c=0;for(const n in W3){const r=W3[n],i=r.overlaps.map(o=>({id:o,start:W3[o].start}));i.push({id:n,start:r.start}),i.sort((o,l)=>o.start<l.start?-1:o.start>l.start?1:o.id>l.id?-1:1),r.position=i.findIndex(o=>o.id===n),c=Math.max(this.getOverlapsStreak(r,W3),c)}return[W3,c]}getOverlapsStreak(t,a={}){let c=t.overlaps.length+1,n=[];return t.overlaps.forEach(r=>{n.includes(r)||t.overlaps.filter(o=>o!==r).forEach(o=>{a[o].overlaps.includes(r)||n.push(o)})}),n=[...new Set(n)],c-=n.length,c}eventInRange(t,a,c){if(t.allDay||!this._vuecal.time){const i=new Date(t.start).setHours(0,0,0,0);return new Date(t.end).setHours(23,59,0,0)>=new Date(a).setHours(0,0,0,0)&&i<=new Date(c).setHours(0,0,0,0)}const n=t.start.getTime(),r=t.end.getTime();return n<c.getTime()&&r>a.getTime()}}const e92={class:"vuecal__flex vuecal__weekdays-headings"},t92=["onClick"],a92={class:"vuecal__flex weekday-label",grow:""},c92={class:"full"},n92={class:"small"},r92={class:"xsmall"},i92={key:0},o92={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function s92(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",e92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.headings,(i,o)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:o},[i.hide?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["vuecal__flex vuecal__heading",{today:i.today,clickable:r.cellHeadingsClickable}]),style:s.normalizeStyle(r.weekdayCellStyles),onClick:l=>r.view.id==="week"&&r.selectCell(i.date,l),onDblclick:t[0]||(t[0]=l=>r.view.id==="week"&&r.vuecal.dblclickToNavigate&&a.switchToNarrowerView())},[s.createVNode(s.Transition,{name:`slide-fade--${a.transitionDirection}`,appear:r.vuecal.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",column:"",key:r.vuecal.transitions?`${o}-${i.dayOfMonth}`:!1},[s.createElementVNode("div",a92,[s.renderSlot(e.$slots,"weekday-heading",{heading:r.cleanupHeading(i),view:r.view},()=>[s.createElementVNode("span",c92,s.toDisplayString(i.full),1),s.createElementVNode("span",n92,s.toDisplayString(i.small),1),s.createElementVNode("span",r92,s.toDisplayString(i.xsmall),1),i.dayOfMonth?(s.openBlock(),s.createElementBlock("span",i92," "+s.toDisplayString(i.dayOfMonth),1)):s.createCommentVNode("",!0)])]),r.vuecal.hasSplits&&r.vuecal.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",o92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.daySplits,(l,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",l.class||!1]),key:f},[s.renderSlot(e.$slots,"split-label",{split:l,view:r.view},()=>[s.createTextVNode(s.toDisplayString(l.label),1)])],2))),128))])):s.createCommentVNode("",!0)]))]),_:2},1032,["name","appear"])],46,t92))],64))),128))])}const bs=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},l92={inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(e,t){e.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=e),this.utils.cell.selectCell(!1,e,t)},cleanupHeading:e=>({label:e.full,date:e.date,...e.today?{today:e.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let e=!1;return this.weekDays.map((a,c)=>{const n=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday&&this.vuecal.hideWeekends?c-1:c);return{hide:a.hide,full:a.label,small:a.short||a.label.substr(0,3),xsmall:a.short||a.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:n.getDate(),date:n,today:!e&&this.utils.date.isToday(n)&&!e++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((e,t)=>e+t.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},$n1=bs(l92,[["render",s92]]),f92={class:"vuecal__header"},u92={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},d92=["onDragenter","onDragleave","onClick","aria-label"],h92={key:1,class:"vuecal__title-bar"},p92=["aria-label"],m92={class:"vuecal__flex vuecal__title",grow:""},v92=["aria-label"],y92={key:0,class:"vuecal__flex vuecal__split-days-headers"};function g92(e,t,a,c,n,r){const i=s.resolveComponent("weekdays-headings");return s.openBlock(),s.createElementBlock("div",f92,[a.options.hideViewSelector?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",u92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.viewProps.views,(o,l)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:l},[o.enabled?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__view-btn",{"vuecal__view-btn--active":r.view.id===l,"vuecal__view-btn--highlighted":e.highlightedControl===l}]),type:"button",onDragenter:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(f,l,e.$data),onDragleave:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(f,l,e.$data),onClick:f=>r.switchView(l,null,!0),"aria-label":`${o.label} view`},s.toDisplayString(o.label),43,d92)):s.createCommentVNode("",!0)],64))),128))])),a.options.hideTitleBar?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",h92,[s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":e.highlightedControl==="previous"}]),type:"button",onClick:t[0]||(t[0]=(...o)=>r.previous&&r.previous(...o)),onDragenter:t[1]||(t[1]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"previous",e.$data)),onDragleave:t[2]||(t[2]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"previous",e.$data)),"aria-label":`Previous ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-prev")],42,p92),s.createElementVNode("div",m92,[s.createVNode(s.Transition,{name:a.options.transitions?`slide-fade--${r.transitionDirection}`:""},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.broaderView?"button":"span"),{type:!!r.broaderView&&"button",key:`${r.view.id}${r.view.startDate.toString()}`,onClick:t[3]||(t[3]=o=>!!r.broaderView&&r.switchToBroaderView()),"aria-label":!!r.broaderView&&`Go to ${r.broaderView} view`},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),a.options.todayButton?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__today-btn",{"vuecal__today-btn--highlighted":e.highlightedControl==="today"}]),type:"button",onClick:t[4]||(t[4]=(...o)=>r.goToToday&&r.goToToday(...o)),onDragenter:t[5]||(t[5]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"today",e.$data)),onDragleave:t[6]||(t[6]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"today",e.$data)),"aria-label":"Today"},[s.renderSlot(e.$slots,"today-button")],34)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":e.highlightedControl==="next"}]),type:"button",onClick:t[7]||(t[7]=(...o)=>r.next&&r.next(...o)),onDragenter:t[8]||(t[8]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"next",e.$data)),onDragleave:t[9]||(t[9]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"next",e.$data)),"aria-label":`Next ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-next")],42,v92)])),a.viewProps.weekDaysInHeader?(s.openBlock(),s.createBlock(i,{key:2,"week-days":a.weekDays,"transition-direction":r.transitionDirection,"switch-to-narrower-view":a.switchToNarrowerView},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:o,view:l})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:o,view:l})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:o})=>[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:`slide-fade--${r.transitionDirection}`},{default:s.withCtx(()=>[r.showDaySplits?(s.openBlock(),s.createElementBlock("div",y92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.daySplits,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",o.class||!1]),key:l},[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view.id},()=>[s.createTextVNode(s.toDisplayString(o.label),1)])],2))),128))])):s.createCommentVNode("",!0)]),_:3},8,["name"])])}const M92={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:$n1},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(e){this.vuecal.transitionDirection=e}},broaderView(){const{enabledViews:e}=this.vuecal;return e[e.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},k92=bs(M92,[["render",g92]]),x92=["draggable"];function b92(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__event",r.eventClasses]),style:s.normalizeStyle(r.eventStyles),tabindex:"0",onFocus:t[4]||(t[4]=(...i)=>r.focusEvent&&r.focusEvent(...i)),onKeypress:t[5]||(t[5]=s.withKeys(s.withModifiers((...i)=>r.onEnterKeypress&&r.onEnterKeypress(...i),["stop"]),["enter"])),onMouseenter:t[6]||(t[6]=(...i)=>r.onMouseEnter&&r.onMouseEnter(...i)),onMouseleave:t[7]||(t[7]=(...i)=>r.onMouseLeave&&r.onMouseLeave(...i)),onTouchstart:t[8]||(t[8]=s.withModifiers((...i)=>r.onTouchStart&&r.onTouchStart(...i),["stop"])),onMousedown:t[9]||(t[9]=i=>r.onMouseDown(i)),onMouseup:t[10]||(t[10]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchend:t[11]||(t[11]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchmove:t[12]||(t[12]=(...i)=>r.onTouchMove&&r.onTouchMove(...i)),onDblclick:t[13]||(t[13]=(...i)=>r.onDblClick&&r.onDblClick(...i)),draggable:r.draggable,onDragstart:t[14]||(t[14]=i=>r.draggable&&r.onDragStart(i)),onDragend:t[15]||(t[15]=i=>r.draggable&&r.onDragEnd())},[r.vuecal.editEvents.delete&&a.event.deletable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=s.withModifiers((...i)=>r.deleteEvent&&r.deleteEvent(...i),["stop"])),onTouchstart:t[1]||(t[1]=s.withModifiers((...i)=>r.touchDeleteEvent&&r.touchDeleteEvent(...i),["stop"]))},s.toDisplayString(r.vuecal.texts.deleteEvent),33)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"event",{event:a.event,view:r.view.id}),r.resizable?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"])),onTouchstart:t[3]||(t[3]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"]))},null,32)):s.createCommentVNode("",!0)],46,x92)}const z92={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(e,t=!1){if("ontouchstart"in window&&!t)return!1;const{clickHoldAnEvent:a,focusAnEvent:c,resizeAnEvent:n,dragAnEvent:r}=this.domEvents;if(c._eid===this.event._eid&&a._eid===this.event._eid)return!0;this.focusEvent(),a._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(a.timeoutId=setTimeout(()=>{!n._eid&&!r._eid&&(a._eid=this.event._eid,this.event.deleting=!0)},a.timeout))},onMouseUp(e){this.domEvents.focusAnEvent._eid===this.event._eid&&!this.touch.dragged&&(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(e){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:t,clientY:a}=e.touches[0],{startX:c,startY:n,dragThreshold:r}=this.touch;(Math.abs(t-c)>r||Math.abs(a-n)>r)&&(this.touch.dragged=!0)},onTouchStart(e){this.touch.startX=e.touches[0].clientX,this.touch.startY=e.touches[0].clientY,this.onMouseDown(e,!0)},onEnterKeypress(e){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,e)},onDblClick(e){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,e)},onDragStart(e){this.dnd&&this.dnd.eventDragStart(e,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(e=!1){if("ontouchstart"in window&&!e)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(e){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:e}=this.domEvents,t=e._eid;if(t!==this.event._eid){if(t){const a=this.view.events.find(c=>c._eid===t);a&&(a.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),e._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:e,endTimeMinutes:t}=this.segment||this.event;let a=e-this.vuecal.timeFrom;const c=Math.max(Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);a=Math.min(t,this.vuecal.timeTo)-this.vuecal.timeFrom;const n=Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),r=Math.max(n-c,5);return{top:c,height:r}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let e=100/Math.min(this.overlaps.length+1,this.overlapsStreak),t=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&e<this.vuecal.minEventWidth&&(e=this.vuecal.minEventWidth,t=(100-this.vuecal.minEventWidth)/this.overlaps.length*this.eventPosition);const{top:a,height:c}=this.eventDimensions;return{top:`${a}px`,height:`${c}px`,width:`${e}%`,left:this.event.left&&`${this.event.left}px`||`${t}%`}},eventClasses(){const{isFirstDay:e,isLastDay:t}=this.segment||{};return{[this.event.class]:!!this.event.class,"vuecal__event--focus":this.event.focused,"vuecal__event--resizing":this.event.resizing,"vuecal__event--background":this.event.background,"vuecal__event--deletable":this.event.deleting,"vuecal__event--all-day":this.event.allDay,"vuecal__event--dragging":!this.event.draggingStatic&&this.event.dragging,"vuecal__event--static":this.event.dragging&&this.event.draggingStatic,"vuecal__event--multiple-days":!!this.segment,"event-start":this.segment&&e&&!t,"event-middle":this.segment&&!e&&!t,"event-end":this.segment&&t&&!e}},segment(){return this.event.segments&&this.event.segments[this.cellFormattedDate]||null},draggable(){const{draggable:e,background:t,daysCount:a}=this.event;return this.vuecal.editEvents.drag&&e&&!t&&a===1},resizable(){const{editEvents:e,time:t}=this.vuecal;return e.resize&&this.event.resizable&&t&&!this.allDay&&(!this.segment||this.segment&&this.segment.isLastDay)&&this.view.id!=="month"},dnd(){return this.modules.dnd}}},C92=bs(z92,[["render",b92]]),_92=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],w92={key:0,class:"cell-time-labels"},H92=["innerHTML"],L92={key:2,class:"vuecal__cell-events"},V92=["title"];function S92(e,t,a,c,n,r){const i=s.resolveComponent("event");return s.openBlock(),s.createBlock(s.TransitionGroup,{class:s.normalizeClass(["vuecal__cell",r.cellClasses]),name:`slide-fade--${r.transitionDirection}`,tag:"div",appear:a.options.transitions,style:s.normalizeStyle(r.cellStyles)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?r.splits:1,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal__cell-content",r.splitsCount&&r.splitClasses(o)]),key:a.options.transitions?`${r.view.id}-${a.data.content}-${l}`:l,"data-split":r.splitsCount?o.id:!1,column:"",tabindex:"0","aria-label":a.data.content,onFocus:t[0]||(t[0]=f=>r.onCellFocus(f)),onKeypress:t[1]||(t[1]=s.withKeys(f=>r.onCellkeyPressEnter(f),["enter"])),onTouchstart:f=>!r.isDisabled&&r.onCellTouchStart(f,r.splitsCount?o.id:null),onMousedown:f=>!r.isDisabled&&r.onCellMouseDown(f,r.splitsCount?o.id:null),onClick:t[2]||(t[2]=f=>!r.isDisabled&&r.onCellClick(f)),onDblclick:t[3]||(t[3]=f=>!r.isDisabled&&r.onCellDblClick(f)),onContextmenu:t[4]||(t[4]=f=>!r.isDisabled&&a.options.cellContextmenu&&r.onCellContextMenu(f)),onDragenter:t[5]||(t[5]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragEnter(f,e.$data,a.data.startDate)),onDragover:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragOver(f,e.$data,a.data.startDate,r.splitsCount?o.id:null),onDragleave:t[6]||(t[6]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragLeave(f,e.$data,a.data.startDate)),onDrop:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragDrop(f,e.$data,a.data.startDate,r.splitsCount?o.id:null)},[a.options.showTimeInCells&&a.options.time&&r.isWeekOrDayView&&!a.allDay?(s.openBlock(),s.createElementBlock("div",w92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.timeCells,(f,u)=>(s.openBlock(),s.createElementBlock("span",{class:"cell-time-label",key:u},s.toDisplayString(f.label),1))),128))])):s.createCommentVNode("",!0),r.isWeekOrDayView&&!a.allDay&&r.specialHours.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.specialHours,(f,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__special-hours",`vuecal__special-hours--day${f.day} ${f.class}`]),style:s.normalizeStyle(`height: ${f.height}px;top: ${f.top}px`)},[f.label?(s.openBlock(),s.createElementBlock("div",{key:0,class:"special-hours-label",innerHTML:f.label},null,8,H92)):s.createCommentVNode("",!0)],6))),256)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"cell-content",{events:r.events,selectCell:f=>r.selectCell(f,!0),split:r.splitsCount?o:!1}),r.eventsCount&&(r.isWeekOrDayView||r.view.id==="month"&&a.options.eventsOnMonthView)?(s.openBlock(),s.createElementBlock("div",L92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?o.events:r.events,(f,u)=>(s.openBlock(),s.createBlock(i,{key:u,"cell-formatted-date":a.data.formattedDate,event:f,"all-day":a.allDay,"cell-events":r.splitsCount?o.events:r.events,overlaps:((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).overlaps,"event-position":((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).position,"overlaps-streak":r.splitsCount?o.overlapsStreak:e.cellOverlapsStreak},{event:s.withCtx(({event:d,view:h})=>[s.renderSlot(e.$slots,"event",{view:h,event:d})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):s.createCommentVNode("",!0)],42,_92))),128)),r.timelineVisible?(s.openBlock(),s.createElementBlock("div",{class:"vuecal__now-line",style:s.normalizeStyle(`top: ${r.todaysTimePosition}px`),key:a.options.transitions?`${r.view.id}-now-line`:"now-line",title:r.utils.date.formatTime(r.vuecal.now)},null,12,V92)):s.createCommentVNode("",!0)]),_:3},8,["class","name","appear","style"])}const N92={inject:["vuecal","utils","modules","view","domEvents"],components:{Event:C92},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:e}){let a=e.classList.contains("vuecal__cell-split")?e:this.vuecal.findAncestor(e,"vuecal__cell-split");return a&&(a=a.attributes["data-split"].value,parseInt(a).toString()===a.toString()&&(a=parseInt(a))),a||null},splitClasses(e){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===e.id,[e.class]:!!e.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(e){return this.vuecal.isDOMElementAnEvent(e)},selectCell(e,t=!1){const a=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.selectCell(t,this.timeAtCursor,a),this.timeAtCursor=null},onCellkeyPressEnter(e){this.isSelected||this.onCellFocus(e);const t=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,t),this.timeAtCursor=null},onCellFocus(e){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const t=this.splitsCount?this.getSplitAtCursor(e):null,a=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",t?{date:a,split:t}:a)}},onCellMouseDown(e,t=null,a=!1){if("ontouchstart"in window&&!a)return!1;this.isSelected||this.onCellFocus(e);const{clickHoldACell:c,focusAnEvent:n}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,c.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:r,cursorCoords:{y:i}}=this.vuecal.minutesAtCursor(e);this.timeAtCursor.setMinutes(r);const o=this.isDOMElementAnEvent(e.target);!o&&n._eid&&((this.view.events.find(l=>l._eid===n._eid)||{}).focused=!1),this.editEvents.create&&!o&&this.setUpEventCreation(e,i)},setUpEventCreation(e,t){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:a}=this.domEvents;if(a.startCursorY=t,a.split=this.splitsCount?this.getSplitAtCursor(e):null,a.start=this.timeAtCursor,this.options.snapToTime){let c=this.timeAtCursor.getHours()*60+this.timeAtCursor.getMinutes();const n=c+this.options.snapToTime/2;c=n-n%this.options.snapToTime,a.start.setHours(0,c,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(e)},setUpCellHoldTimer(e){const{clickHoldACell:t}=this.domEvents;t.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,t.split=this.splitsCount?this.getSplitAtCursor(e):null,t.timeoutId=setTimeout(()=>{if(t.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:a}=this.utils.event.createAnEvent(this.timeAtCursor,null,t.split?{split:t.split}:{});t.eventCreated=a}},t.timeout)},onCellTouchStart(e,t=null){this.onCellMouseDown(e,t,!0)},onCellClick(e){this.isDOMElementAnEvent(e.target)||this.selectCell(e)},onCellDblClick(e){const t=new Date(this.data.startDate);t.setMinutes(this.vuecal.minutesAtCursor(e).minutes);const a=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-dblclick",a?{date:t,split:a}:t),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(e){e.stopPropagation(),e.preventDefault();const t=new Date(this.data.startDate),{cursorCoords:a,minutes:c}=this.vuecal.minutesAtCursor(e);t.setMinutes(c);const n=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-contextmenu",{date:t,...a,...n||{},e})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp<this.data.startDate.getTime()},isDisabled(){const{disableDays:e}=this.options,{isYearsOrYearView:t}=this.vuecal;return e.length&&e.includes(this.data.formattedDate)&&!t?!0:this.isBeforeMinDate||this.isAfterMaxDate},isSelected:{get(){let e=!1;const{selectedDate:t}=this.view;return this.view.id==="years"?e=t.getFullYear()===this.data.startDate.getFullYear():this.view.id==="year"?e=t.getFullYear()===this.data.startDate.getFullYear()&&t.getMonth()===this.data.startDate.getMonth():e=t.getTime()===this.data.startDate.getTime(),e},set(e){this.view.selectedDate=e,this.vuecal.$emit("update:selected-date",this.view.selectedDate)}},isWeekOrDayView(){return["week","day"].includes(this.view.id)},transitionDirection(){return this.vuecal.transitionDirection},specialHours(){return this.data.specialHours.map(e=>{let{from:t,to:a}=e;return t=Math.max(t,this.options.timeFrom),a=Math.min(a,this.options.timeTo),{...e,height:(a-t)*this.timeScale,top:(t-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:e,endDate:t}=this.data;let a=[];if(!(["years","year"].includes(this.view.id)&&!this.options.eventsCountOnYearView)){if(a=this.view.events.slice(0),this.view.id==="month"&&a.push(...this.view.outOfScopeEvents),a=a.filter(c=>this.utils.event.eventInRange(c,e,t)),this.options.showAllDayEvents&&this.view.id!=="month"&&(a=a.filter(c=>!!c.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:c,timeTo:n}=this.options;a=a.filter(r=>{const i=r.daysCount>1&&r.segments[this.data.formattedDate]||{},o=r.daysCount===1&&r.startTimeMinutes<n&&r.endTimeMinutes>c,l=r.daysCount>1&&i.startTimeMinutes<n&&i.endTimeMinutes>c,f=!1;return r.allDay||o||l||f})}this.options.time&&this.isWeekOrDayView&&!(this.options.showAllDayEvents&&this.allDay)&&a.sort((c,n)=>c.start<n.start?-1:1),this.cellSplits.length||this.$nextTick(this.checkCellOverlappingEvents)}return a},eventsCount(){return this.events.length},splits(){return this.cellSplits.map((e,t)=>{const a=this.events.filter(r=>r.split===e.id),[c,n]=this.utils.event.checkCellOverlappingEvents(a.filter(r=>!r.background&&!r.allDay),this.options);return{...e,overlaps:c,overlapsStreak:n,events:a}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:e,timeTo:t}=this.options;return this.data.today&&this.isWeekOrDayView&&e&&!this.allDay&&this.nowInMinutes<=t},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const e=this.nowInMinutes-this.options.timeFrom;return Math.round(e*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},qn1=bs(N92,[["render",S92]]),A92={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function T92(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex vuecal__all-day",style:s.normalizeStyle(a.cellOrSplitMinWidth&&{height:a.height})},[a.cellOrSplitMinWidth?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",A92,[s.createElementVNode("span",null,s.toDisplayString(a.label),1)])),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",style:s.normalizeStyle(a.cellOrSplitMinWidth?`min-width: ${a.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.cells,(o,l)=>(s.openBlock(),s.createBlock(i,{key:l,options:a.options,"edit-events":r.editEvents,data:o,"all-day":!0,"cell-width":a.options.hideWeekdays.length&&(r.vuecal.isWeekView||r.vuecal.isMonthView)&&r.vuecal.cellWidth,"min-timestamp":a.options.minTimestamp,"max-timestamp":a.options.maxTimestamp,"cell-splits":a.daySplits},{event:s.withCtx(({event:f,view:u})=>[s.renderSlot(e.$slots,"event",{view:u,event:f})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}const E92={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":qn1},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},D92=bs(E92,[["render",T92]]),P92=["lang"],O92={class:"default"},I92={key:0,class:"vuecal__flex vuecal__body",grow:""},B92=["onBlur","innerHTML"],R92=["innerHTML"],F92=["innerHTML"],$92={class:"vuecal__flex",row:"",grow:""},q92={key:0,class:"vuecal__time-column"},j92={class:"vuecal__time-cell-label"},U92={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},W92=["wrap","column"],Y92=["onBlur","innerHTML"],G92=["innerHTML"],Z92=["innerHTML"],X92=["wrap"],K92=["innerHTML"],Q92=["innerHTML"],J92={key:2,class:"vuecal__cell-events-count"},el2={key:3,class:"vuecal__no-event"},tl2=["onBlur","innerHTML"],al2=["innerHTML"],cl2={key:2,class:"vuecal__event-time"},nl2={key:0},rl2={key:1,class:"days-to-end"},il2=["innerHTML"],ol2={key:0,class:"vuecal__scrollbar-check"};function sl2(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-header"),o=s.resolveComponent("all-day-bar"),l=s.resolveComponent("weekdays-headings"),f=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal",r.cssClasses]),column:"",ref:"vuecal",lang:a.locale},[s.createVNode(i,{options:e.$props,"edit-events":r.editEvents,"view-props":{views:r.views,weekDaysInHeader:r.weekDaysInHeader},"week-days":r.weekDays,"has-splits":r.hasSplits,"day-splits":r.daySplits,"switch-to-narrower-view":r.switchToNarrowerView},s.createSlots({"arrow-prev":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-prev",{},()=>[t[0]||(t[0]=s.createTextVNode(" ")),t[1]||(t[1]=s.createElementVNode("i",{class:"angle"},null,-1)),t[2]||(t[2]=s.createTextVNode(" "))])]),"arrow-next":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-next",{},()=>[t[3]||(t[3]=s.createTextVNode(" ")),t[4]||(t[4]=s.createElementVNode("i",{class:"angle"},null,-1)),t[5]||(t[5]=s.createTextVNode(" "))])]),"today-button":s.withCtx(()=>[s.renderSlot(e.$slots,"today-button",{},()=>[s.createElementVNode("span",O92,s.toDisplayString(n.texts.today),1)])]),title:s.withCtx(()=>[s.renderSlot(e.$slots,"title",{title:r.viewTitle,view:n.view},()=>[s.createTextVNode(s.toDisplayString(r.viewTitle),1)])]),_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),a.hideBody?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",I92,[s.createVNode(s.Transition,{name:`slide-fade--${n.transitionDirection}`,appear:a.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:a.transitions?n.view.id:!1,column:""},[a.showAllDayEvents&&r.hasTimeColumn&&(!r.cellOrSplitMinWidth||r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:0},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,B92)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,R92)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,F92)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__bg",{vuecal__flex:!r.hasTimeColumn}]),column:""},[s.createElementVNode("div",$92,[r.hasTimeColumn?(s.openBlock(),s.createElementBlock("div",q92,[a.showAllDayEvents&&r.cellOrSplitMinWidth&&!(r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__all-day-text",style:s.normalizeStyle({height:r.allDayBar.height})},[s.createElementVNode("span",null,s.toDisplayString(n.texts.allDay),1)],4)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.timeCells,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:"vuecal__time-cell",key:d,style:s.normalizeStyle(`height: ${a.timeCellHeight}px`)},[s.renderSlot(e.$slots,"time-cell",{hours:u.hours,minutes:u.minutes},()=>[t[6]||(t[6]=s.createElementVNode("span",{class:"vuecal__time-cell-line"},null,-1)),s.createElementVNode("span",j92,s.toDisplayString(u.label),1)])],4))),128))])):s.createCommentVNode("",!0),a.showWeekNumbers&&r.isMonthView?(s.openBlock(),s.createElementBlock("div",U92,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(6,u=>s.createElementVNode("div",{class:"vuecal__flex vuecal__week-number-cell",key:u,grow:""},[s.renderSlot(e.$slots,"week-number-cell",{week:r.getWeekNumber(u-1)},()=>[s.createTextVNode(s.toDisplayString(r.getWeekNumber(u-1)),1)])])),64))])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${n.view.id}-view`]),grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,column:!!r.cellOrSplitMinWidth},[r.cellOrSplitMinWidth&&r.isWeekView?(s.openBlock(),s.createBlock(l,{key:0,"transition-direction":n.transitionDirection,"week-days":r.weekDays,"switch-to-narrower-view":r.switchToNarrowerView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):r.hasSplits&&a.stickySplitLabels&&a.minSplitWidth?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.daySplits,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",u.class||!1]),key:d},[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id},()=>[s.createTextVNode(s.toDisplayString(u.label),1)])],2))),128))],4)):s.createCommentVNode("",!0),a.showAllDayEvents&&r.hasTimeColumn&&(r.isWeekView&&r.cellOrSplitMinWidth||r.isDayView&&r.hasSplits&&a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:2},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,Y92)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,G92)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,Z92)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"vuecal__flex",ref:u=>n.cellsEl=u,grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.viewCells,(u,d)=>(s.openBlock(),s.createBlock(f,{key:d,options:e.$props,"edit-events":r.editEvents,data:u,"cell-width":a.hideWeekdays.length&&(r.isWeekView||r.isMonthView)&&r.cellWidth,"min-timestamp":r.minTimestamp,"max-timestamp":r.maxTimestamp,"cell-splits":r.hasSplits&&r.daySplits||[]},{"cell-content":s.withCtx(({events:h,split:p,selectCell:v})=>[s.renderSlot(e.$slots,"cell-content",{cell:u,view:n.view,goNarrower:v,events:h},()=>[p&&!a.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",{key:0,class:"split-label",innerHTML:p.label},null,8,K92)):s.createCommentVNode("",!0),u.content?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__cell-date",innerHTML:u.content},null,8,Q92)):s.createCommentVNode("",!0),(r.isMonthView&&!a.eventsOnMonthView||r.isYearsOrYearView&&a.eventsCountOnYearView)&&h.length?(s.openBlock(),s.createElementBlock("div",J92,[s.renderSlot(e.$slots,"events-count",{view:n.view,events:h},()=>[s.createTextVNode(s.toDisplayString(h.length),1)])])):s.createCommentVNode("",!0),!r.cellOrSplitHasEvents(h,p)&&r.isWeekOrDayView?(s.openBlock(),s.createElementBlock("div",el2,[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])])):s.createCommentVNode("",!0)])]),event:s.withCtx(({event:h,view:p})=>[s.renderSlot(e.$slots,"event",{view:p,event:h},()=>[r.editEvents.title&&h.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:v=>r.onEventTitleBlur(v,h),innerHTML:h.title},null,40,tl2)):h.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:h.title},null,8,al2)):s.createCommentVNode("",!0),a.time&&!h.allDay&&!(r.isMonthView&&(h.allDay||a.showAllDayEvents==="short"))&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",cl2,[s.createTextVNode(s.toDisplayString(n.utils.date.formatTime(h.start,r.TimeFormat)),1),h.endTimeMinutes?(s.openBlock(),s.createElementBlock("span",nl2," - "+s.toDisplayString(n.utils.date.formatTime(h.end,r.TimeFormat,null,!0)),1)):s.createCommentVNode("",!0),h.daysCount>1&&(h.segments[u.formattedDate]||{}).isFirstDay?(s.openBlock(),s.createElementBlock("small",rl2," +"+s.toDisplayString(h.daysCount-1)+s.toDisplayString((n.texts.day[0]||"").toLowerCase()),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),h.content&&!(r.isMonthView&&h.allDay&&a.showAllDayEvents==="short")&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:3,class:"vuecal__event-content",innerHTML:h.content},null,8,il2)):s.createCommentVNode("",!0)])]),"no-event":s.withCtx(()=>[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,X92)],10,W92)])],2)]))]),_:3},8,["name","appear"]),n.ready?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",ol2,t[7]||(t[7]=[s.createElementVNode("div",null,null,-1)])))]))],10,P92)}const Ws=24*60,AR={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},W31=["years","year","month","week","day"],Y31=new Zs2(AR),ll2={name:"vue-cal",components:{"vuecal-cell":qn1,"vuecal-header":k92,WeekdaysHeadings:$n1,AllDayBar:D92},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:Ws},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...AR},utils:{date:(this.disableDatePrototypes?Y31.removePrototypes():!1)||Y31,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(e){if(typeof this.locale=="object"){this.texts=Object.assign({},AR,e),this.utils.date.updateTexts(this.texts);return}const t=await Gs2(Object.assign({"./i18n/ar.json":()=>Promise.resolve().then(()=>require("./ar.es-490d67d4.cjs")),"./i18n/bg.json":()=>Promise.resolve().then(()=>require("./bg.es-bedb7f61.cjs")),"./i18n/bn.json":()=>Promise.resolve().then(()=>require("./bn.es-ae104b8b.cjs")),"./i18n/bs.json":()=>Promise.resolve().then(()=>require("./bs.es-a97484a8.cjs")),"./i18n/ca.json":()=>Promise.resolve().then(()=>require("./ca.es-b69e2d93.cjs")),"./i18n/cs.json":()=>Promise.resolve().then(()=>require("./cs.es-8ab45a8b.cjs")),"./i18n/da.json":()=>Promise.resolve().then(()=>require("./da.es-20dd8f16.cjs")),"./i18n/de.json":()=>Promise.resolve().then(()=>require("./de.es-ce7009ce.cjs")),"./i18n/el.json":()=>Promise.resolve().then(()=>require("./el.es-81fc2434.cjs")),"./i18n/en.json":()=>Promise.resolve().then(()=>require("./en.es-4459b8a4.cjs")),"./i18n/es.json":()=>Promise.resolve().then(()=>require("./es.es-647dceed.cjs")),"./i18n/et.json":()=>Promise.resolve().then(()=>require("./et.es-482e868f.cjs")),"./i18n/fa.json":()=>Promise.resolve().then(()=>require("./fa.es-2c02433c.cjs")),"./i18n/fi.json":()=>Promise.resolve().then(()=>require("./fi.es-ef678961.cjs")),"./i18n/fr.json":()=>Promise.resolve().then(()=>require("./fr.es-5a023084.cjs")),"./i18n/he.json":()=>Promise.resolve().then(()=>require("./he.es-be02cfd4.cjs")),"./i18n/hr.json":()=>Promise.resolve().then(()=>require("./hr.es-5c9e8373.cjs")),"./i18n/hu.json":()=>Promise.resolve().then(()=>require("./hu.es-642f7e7a.cjs")),"./i18n/id.json":()=>Promise.resolve().then(()=>require("./id.es-ebe22526.cjs")),"./i18n/is.json":()=>Promise.resolve().then(()=>require("./is.es-960071df.cjs")),"./i18n/it.json":()=>Promise.resolve().then(()=>require("./it.es-f0d29f01.cjs")),"./i18n/ja.json":()=>Promise.resolve().then(()=>require("./ja.es-25a3e4cf.cjs")),"./i18n/ka.json":()=>Promise.resolve().then(()=>require("./ka.es-92c6a6ae.cjs")),"./i18n/ko.json":()=>Promise.resolve().then(()=>require("./ko.es-204ba1aa.cjs")),"./i18n/lt.json":()=>Promise.resolve().then(()=>require("./lt.es-afedf093.cjs")),"./i18n/mn.json":()=>Promise.resolve().then(()=>require("./mn.es-ced8667c.cjs")),"./i18n/nl.json":()=>Promise.resolve().then(()=>require("./nl.es-cd172132.cjs")),"./i18n/no.json":()=>Promise.resolve().then(()=>require("./no.es-d5134e5f.cjs")),"./i18n/pl.json":()=>Promise.resolve().then(()=>require("./pl.es-9f065e71.cjs")),"./i18n/pt-br.json":()=>Promise.resolve().then(()=>require("./pt-br.es-e0a38ecf.cjs")),"./i18n/pt-pt.json":()=>Promise.resolve().then(()=>require("./pt-pt.es-e1c57c62.cjs")),"./i18n/ro.json":()=>Promise.resolve().then(()=>require("./ro.es-a7e3858d.cjs")),"./i18n/ru.json":()=>Promise.resolve().then(()=>require("./ru.es-d26a8889.cjs")),"./i18n/sk.json":()=>Promise.resolve().then(()=>require("./sk.es-bfa34829.cjs")),"./i18n/sl.json":()=>Promise.resolve().then(()=>require("./sl.es-c79ab9b5.cjs")),"./i18n/sq.json":()=>Promise.resolve().then(()=>require("./sq.es-a902c2a8.cjs")),"./i18n/sr.json":()=>Promise.resolve().then(()=>require("./sr.es-2e429690.cjs")),"./i18n/sv.json":()=>Promise.resolve().then(()=>require("./sv.es-59b30e12.cjs")),"./i18n/tr.json":()=>Promise.resolve().then(()=>require("./tr.es-11b49d30.cjs")),"./i18n/uk.json":()=>Promise.resolve().then(()=>require("./uk.es-cfb0b466.cjs")),"./i18n/vi.json":()=>Promise.resolve().then(()=>require("./vi.es-daedaaa5.cjs")),"./i18n/zh-cn.json":()=>Promise.resolve().then(()=>require("./zh-cn.es-efbc1299.cjs")),"./i18n/zh-hk.json":()=>Promise.resolve().then(()=>require("./zh-hk.es-b6a4db4a.cjs"))}),`./i18n/${e}.json`,3);this.texts=Object.assign({},AR,t),this.utils.date.updateTexts(this.texts)},loadDragAndDrop(){Promise.resolve().then(()=>require("./drag-and-drop.es-cdb95efc.cjs")).then(e=>{const{DragAndDrop:t}=e;this.modules.dnd=new t(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(e){return W31.includes(e)||(console.error(`Vue Cal: invalid active-view parameter provided: "${e}".
8631
+ `)}return p1}function t1(i1,p1){var b1={},v1=i1.style||{};return v1.fontStyle&&U(i1).fontStyle==="italic"&&(b1.italic=!0),v1.fontWeight&&(U(i1).fontWeight.startsWith("bold")||parseInt(U(i1).fontWeight)>=700)&&(b1.bold=!0),Object.keys(b1).length>0&&(p1=S(p1,b1)),parseFloat(v1.textIndent||0)>0&&(p1=new d.default().insert(" ").concat(p1)),p1}function l1(i1,p1){var b1=i1.data;if(i1.parentNode.tagName==="O:P")return p1.insert(b1.trim());if(b1.trim().length===0&&i1.parentNode.classList.contains("ql-clipboard"))return p1;if(!U(i1.parentNode).whiteSpace.startsWith("pre")){var v1=function(D1,R1){return R1=R1.replace(/[^\u00a0]/g,""),R1.length<1&&D1?" ":R1};b1=b1.replace(/\r\n/g," ").replace(/\n/g," "),b1=b1.replace(/\s\s+/g,v1.bind(v1,!0)),(i1.previousSibling==null&&A(i1.parentNode)||i1.previousSibling!=null&&A(i1.previousSibling))&&(b1=b1.replace(/^\s+/,v1.bind(v1,!1))),(i1.nextSibling==null&&A(i1.parentNode)||i1.nextSibling!=null&&A(i1.nextSibling))&&(b1=b1.replace(/\s+$/,v1.bind(v1,!1)))}return p1.insert(b1)}c.default=E,c.matchAttributor=c1,c.matchBlot=e1,c.matchNewline=x1,c.matchSpacing=f1,c.matchText=l1},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,[{key:"optimize",value:function(g){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,g),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(l.default);p.blotName="bold",p.tagName=["STRONG","B"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.addControls=c.default=void 0;var r=function(){function L(w,P){var j=[],T=!0,B=!1,F=void 0;try{for(var K=w[Symbol.iterator](),G;!(T=(G=K.next()).done)&&(j.push(G.value),!(P&&j.length===P));T=!0);}catch(W){B=!0,F=W}finally{try{!T&&K.return&&K.return()}finally{if(B)throw F}}return j}return function(w,P){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return L(w,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function L(w,P){for(var j=0;j<P.length;j++){var T=P[j];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(w,T.key,T)}}return function(w,P,j){return P&&L(w.prototype,P),j&&L(w,j),w}}(),o=n(2),l=g(o),f=n(0),u=g(f),d=n(5),h=g(d),p=n(10),v=g(p),m=n(9),y=g(m);function g(L){return L&&L.__esModule?L:{default:L}}function M(L,w,P){return w in L?Object.defineProperty(L,w,{value:P,enumerable:!0,configurable:!0,writable:!0}):L[w]=P,L}function x(L,w){if(!(L instanceof w))throw new TypeError("Cannot call a class as a function")}function k(L,w){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:L}function b(L,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);L.prototype=Object.create(w&&w.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(L,w):L.__proto__=w)}var _=(0,v.default)("quill:toolbar"),C=function(L){b(w,L);function w(P,j){x(this,w);var T=k(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,P,j));if(Array.isArray(T.options.container)){var B=document.createElement("div");V(B,T.options.container),P.container.parentNode.insertBefore(B,P.container),T.container=B}else typeof T.options.container=="string"?T.container=document.querySelector(T.options.container):T.container=T.options.container;if(!(T.container instanceof HTMLElement)){var F;return F=_.error("Container required for toolbar",T.options),k(T,F)}return T.container.classList.add("ql-toolbar"),T.controls=[],T.handlers={},Object.keys(T.options.handlers).forEach(function(K){T.addHandler(K,T.options.handlers[K])}),[].forEach.call(T.container.querySelectorAll("button, select"),function(K){T.attach(K)}),T.quill.on(h.default.events.EDITOR_CHANGE,function(K,G){K===h.default.events.SELECTION_CHANGE&&T.update(G)}),T.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){var K=T.quill.selection.getRange(),G=r(K,1),W=G[0];T.update(W)}),T}return i(w,[{key:"addHandler",value:function(j,T){this.handlers[j]=T}},{key:"attach",value:function(j){var T=this,B=[].find.call(j.classList,function(K){return K.indexOf("ql-")===0});if(B){if(B=B.slice(3),j.tagName==="BUTTON"&&j.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){_.warn("ignoring attaching to disabled format",B,j);return}if(u.default.query(B)==null){_.warn("ignoring attaching to nonexistent format",B,j);return}}var F=j.tagName==="SELECT"?"change":"click";j.addEventListener(F,function(K){var G=void 0;if(j.tagName==="SELECT"){if(j.selectedIndex<0)return;var W=j.options[j.selectedIndex];W.hasAttribute("selected")?G=!1:G=W.value||!1}else j.classList.contains("ql-active")?G=!1:G=j.value||!j.hasAttribute("value"),K.preventDefault();T.quill.focus();var O=T.quill.selection.getRange(),E=r(O,1),S=E[0];if(T.handlers[B]!=null)T.handlers[B].call(T,G);else if(u.default.query(B).prototype instanceof u.default.Embed){if(G=prompt("Enter "+B),!G)return;T.quill.updateContents(new l.default().retain(S.index).delete(S.length).insert(M({},B,G)),h.default.sources.USER)}else T.quill.format(B,G,h.default.sources.USER);T.update(S)}),this.controls.push([B,j])}}},{key:"update",value:function(j){var T=j==null?{}:this.quill.getFormat(j);this.controls.forEach(function(B){var F=r(B,2),K=F[0],G=F[1];if(G.tagName==="SELECT"){var W=void 0;if(j==null)W=null;else if(T[K]==null)W=G.querySelector("option[selected]");else if(!Array.isArray(T[K])){var O=T[K];typeof O=="string"&&(O=O.replace(/\"/g,'\\"')),W=G.querySelector('option[value="'+O+'"]')}W==null?(G.value="",G.selectedIndex=-1):W.selected=!0}else if(j==null)G.classList.remove("ql-active");else if(G.hasAttribute("value")){var E=T[K]===G.getAttribute("value")||T[K]!=null&&T[K].toString()===G.getAttribute("value")||T[K]==null&&!G.getAttribute("value");G.classList.toggle("ql-active",E)}else G.classList.toggle("ql-active",T[K]!=null)})}}]),w}(y.default);C.DEFAULTS={};function H(L,w,P){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+w),P!=null&&(j.value=P),L.appendChild(j)}function V(L,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(P){var j=document.createElement("span");j.classList.add("ql-formats"),P.forEach(function(T){if(typeof T=="string")H(j,T);else{var B=Object.keys(T)[0],F=T[B];Array.isArray(F)?N(j,B,F):H(j,B,F)}}),L.appendChild(j)})}function N(L,w,P){var j=document.createElement("select");j.classList.add("ql-"+w),P.forEach(function(T){var B=document.createElement("option");T!==!1?B.setAttribute("value",T):B.setAttribute("selected","selected"),j.appendChild(B)}),L.appendChild(j)}C.DEFAULTS={container:null,handlers:{clean:function(){var w=this,P=this.quill.getSelection();if(P!=null)if(P.length==0){var j=this.quill.getFormat();Object.keys(j).forEach(function(T){u.default.query(T,u.default.Scope.INLINE)!=null&&w.quill.format(T,!1)})}else this.quill.removeFormat(P,h.default.sources.USER)},direction:function(w){var P=this.quill.getFormat().align;w==="rtl"&&P==null?this.quill.format("align","right",h.default.sources.USER):!w&&P==="right"&&this.quill.format("align",!1,h.default.sources.USER),this.quill.format("direction",w,h.default.sources.USER)},indent:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P),T=parseInt(j.indent||0);if(w==="+1"||w==="-1"){var B=w==="+1"?1:-1;j.direction==="rtl"&&(B*=-1),this.quill.format("indent",T+B,h.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,h.default.sources.USER)},list:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P);w==="check"?j.list==="checked"||j.list==="unchecked"?this.quill.format("list",!1,h.default.sources.USER):this.quill.format("list","unchecked",h.default.sources.USER):this.quill.format("list",w,h.default.sources.USER)}}},c.default=C,c.addControls=V},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.label.innerHTML=g,M.container.classList.add("ql-color-picker"),[].slice.call(M.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),M}return r(m,[{key:"buildItem",value:function(g){var M=i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,g);return M.style.backgroundColor=g.getAttribute("value")||"",M}},{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M);var x=this.label.querySelector(".ql-color-label"),k=g&&g.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=k:x.style.fill=k)}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.container.classList.add("ql-icon-picker"),[].forEach.call(M.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=g[x.getAttribute("data-value")||""]}),M.defaultItem=M.container.querySelector(".ql-selected"),M.selectItem(M.defaultItem),M}return r(m,[{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M),g=g||this.defaultItem,this.label.innerHTML=g.innerHTML}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function l(f,u){for(var d=0;d<u.length;d++){var h=u[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,u,d){return u&&l(f.prototype,u),d&&l(f,d),f}}();function i(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var o=function(){function l(f,u){var d=this;i(this,l),this.quill=f,this.boundsContainer=u||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return r(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var d=u.left+u.width/2-this.root.offsetWidth/2,h=u.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=h+"px",this.root.classList.remove("ql-flip");var p=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),m=0;if(v.right>p.right&&(m=p.right-v.right,this.root.style.left=d+m+"px"),v.left<p.left&&(m=p.left-v.left,this.root.style.left=d+m+"px"),v.bottom>p.bottom){var y=v.bottom-v.top,g=u.bottom-u.top+y;this.root.style.top=h-g+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();c.default=o},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function N(L,w){var P=[],j=!0,T=!1,B=void 0;try{for(var F=L[Symbol.iterator](),K;!(j=(K=F.next()).done)&&(P.push(K.value),!(w&&P.length===w));j=!0);}catch(G){T=!0,B=G}finally{try{!j&&F.return&&F.return()}finally{if(T)throw B}}return P}return function(L,w){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return N(L,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function N(L,w,P){L===null&&(L=Function.prototype);var j=Object.getOwnPropertyDescriptor(L,w);if(j===void 0){var T=Object.getPrototypeOf(L);return T===null?void 0:N(T,w,P)}else{if("value"in j)return j.value;var B=j.get;return B===void 0?void 0:B.call(P)}},o=function(){function N(L,w){for(var P=0;P<w.length;P++){var j=w[P];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(L,j.key,j)}}return function(L,w,P){return w&&N(L.prototype,w),P&&N(L,P),L}}(),l=n(3),f=x(l),u=n(8),d=x(u),h=n(43),p=x(h),v=n(27),m=x(v),y=n(15),g=n(41),M=x(g);function x(N){return N&&N.__esModule?N:{default:N}}function k(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function b(N,L){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:N}function _(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(N,L):N.__proto__=L)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],H=function(N){_(L,N);function L(w,P){k(this,L),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=C);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.quill.container.classList.add("ql-snow"),j}return o(L,[{key:"extendToolbar",value:function(P){P.container.classList.add("ql-snow"),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),M.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),M.default),this.tooltip=new V(this.quill,this.options.bounds),P.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(j,T){P.handlers.link.call(P,!T.format.link)})}}]),L}(p.default);H.DEFAULTS=(0,f.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(L){if(L){var w=this.quill.getSelection();if(w==null||w.length==0)return;var P=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(P)&&P.indexOf("mailto:")!==0&&(P="mailto:"+P);var j=this.quill.theme.tooltip;j.edit("link",P)}else this.quill.format("link",!1)}}}}});var V=function(N){_(L,N);function L(w,P){k(this,L);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.preview=j.root.querySelector("a.ql-preview"),j}return o(L,[{key:"listen",value:function(){var P=this;i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(j){P.root.classList.contains("ql-editing")?P.save():P.edit("link",P.preview.textContent),j.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(j){if(P.linkRange!=null){var T=P.linkRange;P.restoreFocus(),P.quill.formatText(T,"link",!1,d.default.sources.USER),delete P.linkRange}j.preventDefault(),P.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function(j,T,B){if(j!=null){if(j.length===0&&B===d.default.sources.USER){var F=P.quill.scroll.descendant(m.default,j.index),K=r(F,2),G=K[0],W=K[1];if(G!=null){P.linkRange=new y.Range(j.index-W,G.length());var O=m.default.formats(G.domNode);P.preview.textContent=O,P.preview.setAttribute("href",O),P.show(),P.position(P.quill.getBounds(P.linkRange));return}}else delete P.linkRange;P.hide()}})}},{key:"show",value:function(){i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),L}(h.BaseTooltip);V.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),c.default=H},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(29),i=C1(r),o=n(36),l=n(38),f=n(64),u=n(65),d=C1(u),h=n(66),p=C1(h),v=n(67),m=C1(v),y=n(37),g=n(26),M=n(39),x=n(40),k=n(56),b=C1(k),_=n(68),C=C1(_),H=n(27),V=C1(H),N=n(69),L=C1(N),w=n(70),P=C1(w),j=n(71),T=C1(j),B=n(72),F=C1(B),K=n(73),G=C1(K),W=n(13),O=C1(W),E=n(74),S=C1(E),U=n(75),Z=C1(U),A=n(57),R=C1(A),Q=n(41),c1=C1(Q),e1=n(28),s1=C1(e1),Y=n(59),d1=C1(Y),x1=n(60),f1=C1(x1),t1=n(61),l1=C1(t1),i1=n(108),p1=C1(i1),b1=n(62),v1=C1(b1);function C1(D1){return D1&&D1.__esModule?D1:{default:D1}}i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":M.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":M.FontStyle,"attributors/style/size":x.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":M.FontClass,"formats/size":x.SizeClass,"formats/blockquote":d.default,"formats/code-block":O.default,"formats/header":p.default,"formats/list":m.default,"formats/bold":b.default,"formats/code":W.Code,"formats/italic":C.default,"formats/link":V.default,"formats/script":L.default,"formats/strike":P.default,"formats/underline":T.default,"formats/image":F.default,"formats/video":G.default,"formats/list/item":v.ListItem,"modules/formula":S.default,"modules/syntax":Z.default,"modules/toolbar":R.default,"themes/bubble":p1.default,"themes/snow":v1.default,"ui/icons":c1.default,"ui/picker":s1.default,"ui/icon-picker":f1.default,"ui/color-picker":d1.default,"ui/tooltip":l1.default},!0),c.default=i.default},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.IndentClass=void 0;var r=function(){function m(y,g){for(var M=0;M<g.length;M++){var x=g[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,M){return g&&m(y.prototype,g),M&&m(y,M),y}}(),i=function m(y,g,M){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:m(k,g,M)}else{if("value"in x)return x.value;var b=x.get;return b===void 0?void 0:b.call(M)}},o=n(0),l=f(o);function f(m){return m&&m.__esModule?m:{default:m}}function u(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function d(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function h(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var p=function(m){h(y,m);function y(){return u(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"add",value:function(M,x){if(x==="+1"||x==="-1"){var k=this.value(M)||0;x=x==="+1"?k+1:k-1}return x===0?(this.remove(M),!0):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,M,x)}},{key:"canAdd",value:function(M,x){return i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,x)||i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,parseInt(x))}},{key:"value",value:function(M){return parseInt(i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,M))||void 0}}]),y}(l.default.Attributor.Class),v=new p("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});c.IndentClass=v},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(4),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="blockquote",d.tagName="blockquote",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function p(v,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(v,g.key,g)}}return function(v,m,y){return m&&p(v.prototype,m),y&&p(v,y),v}}(),i=n(4),o=l(i);function l(p){return p&&p.__esModule?p:{default:p}}function f(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function u(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function d(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var h=function(p){d(v,p);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),v}(o.default);h.blotName="header",h.tagName=["H1","H2","H3","H4","H5","H6"],c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.ListItem=void 0;var r=function(){function k(b,_){for(var C=0;C<_.length;C++){var H=_[C];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(b,H.key,H)}}return function(b,_,C){return _&&k(b.prototype,_),C&&k(b,C),b}}(),i=function k(b,_,C){b===null&&(b=Function.prototype);var H=Object.getOwnPropertyDescriptor(b,_);if(H===void 0){var V=Object.getPrototypeOf(b);return V===null?void 0:k(V,_,C)}else{if("value"in H)return H.value;var N=H.get;return N===void 0?void 0:N.call(C)}},o=n(0),l=p(o),f=n(4),u=p(f),d=n(25),h=p(d);function p(k){return k&&k.__esModule?k:{default:k}}function v(k,b,_){return b in k?Object.defineProperty(k,b,{value:_,enumerable:!0,configurable:!0,writable:!0}):k[b]=_,k}function m(k,b){if(!(k instanceof b))throw new TypeError("Cannot call a class as a function")}function y(k,b){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:k}function g(k,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);k.prototype=Object.create(b&&b.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(k,b):k.__proto__=b)}var M=function(k){g(b,k);function b(){return m(this,b),y(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,[{key:"format",value:function(C,H){C===x.blotName&&!H?this.replaceWith(l.default.create(this.statics.scope)):i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,C,H)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,H){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,H),this):(this.parent.unwrap(),i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,C,H))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:i(b.__proto__||Object.getPrototypeOf(b),"formats",this).call(this,C)}}]),b}(u.default);M.blotName="list-item",M.tagName="LI";var x=function(k){g(b,k),r(b,null,[{key:"create",value:function(C){var H=C==="ordered"?"OL":"UL",V=i(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,H);return(C==="checked"||C==="unchecked")&&V.setAttribute("data-checked",C==="checked"),V}},{key:"formats",value:function(C){if(C.tagName==="OL")return"ordered";if(C.tagName==="UL")return C.hasAttribute("data-checked")?C.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function b(_){m(this,b);var C=y(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,_)),H=function(N){if(N.target.parentNode===_){var L=C.statics.formats(_),w=l.default.find(N.target);L==="checked"?w.format("list","unchecked"):L==="unchecked"&&w.format("list","checked")}};return _.addEventListener("touchstart",H),_.addEventListener("mousedown",H),C}return r(b,[{key:"format",value:function(C,H){this.children.length>0&&this.children.tail.format(C,H)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,H){if(C instanceof M)i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,C,H);else{var V=H==null?this.length():H.offset(this),N=this.split(V);N.parent.insertBefore(C,N)}}},{key:"optimize",value:function(C){i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,C);var H=this.next;H!=null&&H.prev===this&&H.statics.blotName===this.statics.blotName&&H.domNode.tagName===this.domNode.tagName&&H.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(H.moveChildren(this),H.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var H=l.default.create(this.statics.defaultChild);C.moveChildren(H),this.appendChild(H)}i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,C)}}]),b}(h.default);x.blotName="list",x.scope=l.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[M],c.ListItem=M,c.default=x},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(56),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="italic",d.tagName=["EM","I"],c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,null,[{key:"create",value:function(g){return g==="super"?document.createElement("sup"):g==="sub"?document.createElement("sub"):i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,g)}},{key:"formats",value:function(g){if(g.tagName==="SUB")return"sub";if(g.tagName==="SUP")return"super"}}]),m}(l.default);p.blotName="script",p.tagName=["SUB","SUP"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="strike",d.tagName="S",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="underline",d.tagName="U",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(0),l=u(o),f=n(27);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["alt","height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return typeof x=="string"&&k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,f.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(l.default.Embed);m.blotName="image",m.tagName="IMG",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(4),l=n(27),f=u(l);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return k.setAttribute("frameborder","0"),k.setAttribute("allowfullscreen",!0),k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"sanitize",value:function(x){return f.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(o.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.FormulaBlot=void 0;var r=function(){function x(k,b){for(var _=0;_<b.length;_++){var C=b[_];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(k,C.key,C)}}return function(k,b,_){return b&&x(k.prototype,b),_&&x(k,_),k}}(),i=function x(k,b,_){k===null&&(k=Function.prototype);var C=Object.getOwnPropertyDescriptor(k,b);if(C===void 0){var H=Object.getPrototypeOf(k);return H===null?void 0:x(H,b,_)}else{if("value"in C)return C.value;var V=C.get;return V===void 0?void 0:V.call(_)}},o=n(35),l=p(o),f=n(5),u=p(f),d=n(9),h=p(d);function p(x){return x&&x.__esModule?x:{default:x}}function v(x,k){if(!(x instanceof k))throw new TypeError("Cannot call a class as a function")}function m(x,k){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:x}function y(x,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);x.prototype=Object.create(k&&k.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(x,k):x.__proto__=k)}var g=function(x){y(k,x);function k(){return v(this,k),m(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,null,[{key:"create",value:function(_){var C=i(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,_);return typeof _=="string"&&(window.katex.render(_,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",_)),C}},{key:"value",value:function(_){return _.getAttribute("data-value")}}]),k}(l.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var M=function(x){y(k,x),r(k,null,[{key:"register",value:function(){u.default.register(g,!0)}}]);function k(){v(this,k);var b=m(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return b}return k}(h.default);c.FormulaBlot=g,c.default=M},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.CodeToken=c.CodeBlock=void 0;var r=function(){function _(C,H){for(var V=0;V<H.length;V++){var N=H[V];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(C,N.key,N)}}return function(C,H,V){return H&&_(C.prototype,H),V&&_(C,V),C}}(),i=function _(C,H,V){C===null&&(C=Function.prototype);var N=Object.getOwnPropertyDescriptor(C,H);if(N===void 0){var L=Object.getPrototypeOf(C);return L===null?void 0:_(L,H,V)}else{if("value"in N)return N.value;var w=N.get;return w===void 0?void 0:w.call(V)}},o=n(0),l=m(o),f=n(5),u=m(f),d=n(9),h=m(d),p=n(13),v=m(p);function m(_){return _&&_.__esModule?_:{default:_}}function y(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}function g(_,C){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:_}function M(_,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);_.prototype=Object.create(C&&C.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(_,C):_.__proto__=C)}var x=function(_){M(C,_);function C(){return y(this,C),g(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"replaceWith",value:function(V){this.domNode.textContent=this.domNode.textContent,this.attach(),i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,V)}},{key:"highlight",value:function(V){var N=this.domNode.textContent;this.cachedText!==N&&((N.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=V(N),this.domNode.normalize(),this.attach()),this.cachedText=N)}}]),C}(v.default);x.className="ql-syntax";var k=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),b=function(_){M(C,_),r(C,null,[{key:"register",value:function(){u.default.register(k,!0),u.default.register(x,!0)}}]);function C(H,V){y(this,C);var N=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,H,V));if(typeof N.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var L=null;return N.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(L),L=setTimeout(function(){N.highlight(),L=null},N.options.interval)}),N.highlight(),N}return r(C,[{key:"highlight",value:function(){var V=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var N=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(L){L.highlight(V.options.highlight)}),this.quill.update(u.default.sources.SILENT),N!=null&&this.quill.setSelection(N,u.default.sources.SILENT)}}}]),C}(h.default);b.DEFAULTS={highlight:function(){return window.hljs==null?null:function(_){var C=window.hljs.highlightAuto(_);return C.value}}(),interval:1e3},c.CodeBlock=x,c.CodeToken=k,c.default=b},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.BubbleTooltip=void 0;var r=function C(H,V,N){H===null&&(H=Function.prototype);var L=Object.getOwnPropertyDescriptor(H,V);if(L===void 0){var w=Object.getPrototypeOf(H);return w===null?void 0:C(w,V,N)}else{if("value"in L)return L.value;var P=L.get;return P===void 0?void 0:P.call(N)}},i=function(){function C(H,V){for(var N=0;N<V.length;N++){var L=V[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(H,L.key,L)}}return function(H,V,N){return V&&C(H.prototype,V),N&&C(H,N),H}}(),o=n(3),l=y(o),f=n(8),u=y(f),d=n(43),h=y(d),p=n(15),v=n(41),m=y(v);function y(C){return C&&C.__esModule?C:{default:C}}function g(C,H){if(!(C instanceof H))throw new TypeError("Cannot call a class as a function")}function M(C,H){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H&&(typeof H=="object"||typeof H=="function")?H:C}function x(C,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof H);C.prototype=Object.create(H&&H.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),H&&(Object.setPrototypeOf?Object.setPrototypeOf(C,H):C.__proto__=H)}var k=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(C){x(H,C);function H(V,N){g(this,H),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=k);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.container.classList.add("ql-bubble"),L}return i(H,[{key:"extendToolbar",value:function(N){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(N.container),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),m.default)}}]),H}(h.default);b.DEFAULTS=(0,l.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(H){H?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(C){x(H,C);function H(V,N){g(this,H);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.on(u.default.events.EDITOR_CHANGE,function(w,P,j,T){if(w===u.default.events.SELECTION_CHANGE)if(P!=null&&P.length>0&&T===u.default.sources.USER){L.show(),L.root.style.left="0px",L.root.style.width="",L.root.style.width=L.root.offsetWidth+"px";var B=L.quill.getLines(P.index,P.length);if(B.length===1)L.position(L.quill.getBounds(P));else{var F=B[B.length-1],K=L.quill.getIndex(F),G=Math.min(F.length()-1,P.index+P.length-K),W=L.quill.getBounds(new p.Range(K,G));L.position(W)}}else document.activeElement!==L.textbox&&L.quill.hasFocus()&&L.hide()}),L}return i(H,[{key:"listen",value:function(){var N=this;r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){N.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!N.root.classList.contains("ql-hidden")){var L=N.quill.getSelection();L!=null&&N.position(N.quill.getBounds(L))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(N){var L=r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"position",this).call(this,N),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",L===0)return L;w.style.marginLeft=-1*L-w.offsetWidth/2+"px"}}]),H}(d.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),c.BubbleTooltip=_,c.default=b},function(a,c,n){a.exports=n(63)}]).default})})(On1);var Bo2=On1.exports;const Ro2=QS1(Bo2);const Fo2={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},$o2={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup(e,t){const a={editorOption:{},quill:null};let c="";s.watch(()=>e.value,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.content,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.disabled,o=>{a.quill&&a.quill.enable(!o)});const n=s.ref(null),r=(o,l)=>{for(const f in l)!o[f]||f!=="modules"?o[f]=l[f]:r(o[f],l[f]);return o},i=()=>{n.value&&(a.editorOption=r(Fo2,e.options),a.editorOption.readOnly=!!e.disabled,a.quill=new Ro2(n.value,a.editorOption),e.value&&a.quill.pasteHTML(e.value),a.quill.on("selection-change",o=>{o?t.emit("focus",a.quill):t.emit("blur",a.quill)}),a.quill.on("text-change",()=>{e.disabled&&a.quill.enable(!1);let o=n.value.children[0].innerHTML;const l=a.quill,f=a.quill.getText();o==="<p><br></p>"&&(o=""),c=o,t.emit("update:value",c),t.emit("change",{html:o,text:f,quill:l})}),t.emit("ready",a.quill))};return s.onBeforeUnmount(()=>{const o=n.value.previousSibling;o&&o.nodeType===1&&o.className.indexOf("ql-toolbar")>-1&&o.parentNode.removeChild(o)}),s.onMounted(()=>{i()}),s.onUnmounted(()=>{a.quill=null}),{editor:n}}},qo2={ref:"editor"};function jo2(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("section",qo2,null,512)}const NR=Q1($o2,[["render",jo2]]);NR.install=function(e){e.component(NR.name,NR)};const Uo2=s.defineComponent({__name:"PgaMaxLength",props:{content:{},maxLength:{}},setup(e){const t=e,a=s.computed(()=>{var n;return((n=t.content)==null?void 0:n.length)||0}),c=s.computed(()=>a.value>t.maxLength);return(n,r)=>(s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(["pga-max-length",{"pga-max-length--error":c.value}])},s.toDisplayString(`${a.value} / ${n.maxLength}`),3))}});const LX=Q1(Uo2,[["__scopeId","data-v-4e8a2dd8"]]),Wo2={class:"pga-editor"},Yo2={class:"editor__container"},Go2={class:"editor__footer"},Zo2=s.defineComponent({__name:"PgaEditor",props:s.mergeModels({saveFn:{type:Function},maxContentLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=Te.getConfig(),n=$2("pgaEditor"),r={placeholder:"",modules:{toolbar:[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],["link"],["clean"]]}},i=s.ref(t.value),o=s.ref(!1);let l;const f=s.ref(!1),u=s.ref(!1),d=s.computed(()=>a.maxContentLength||c.stringLengths.hyperLong),h=s.computed(()=>oc1(t.value)),p=s.computed(()=>h.value.length),v=s.computed(()=>p.value>d.value);s.watch(t,()=>{f.value=!1,u.value=!1,clearTimeout(l),l=setTimeout(()=>m(),1e3*3)});async function m(){if(i.value!==t.value){if(v.value){u.value=!0;return}try{o.value=!0,i.value=await a.saveFn(t.value),f.value=!0,setTimeout(()=>f.value=!1,1e3*3)}finally{o.value=!1}}}return(y,g)=>(s.openBlock(),s.createElementBlock("div",Wo2,[s.createElementVNode("div",Yo2,[s.createVNode(s.unref(NR),{value:t.value,"onUpdate:value":g[0]||(g[0]=M=>t.value=M),options:r},null,8,["value"])]),s.createElementVNode("div",Go2,[s.createVNode(LX,{content:h.value,maxLength:d.value},null,8,["content","maxLength"]),o.value?(s.openBlock(),s.createBlock(w8,{key:0,size:"m",noCenter:""})):f.value?(s.openBlock(),s.createBlock(D3,{key:1,icon:"save",text:s.unref(n)("savedMsg"),color:"success"},null,8,["text"])):u.value?(s.openBlock(),s.createBlock(D3,{key:2,icon:"circle-x",text:s.unref(n)("saveErrorMsg"),color:"danger"},null,8,["text"])):s.createCommentVNode("",!0)])]))}});const Xo2=Q1(Zo2,[["__scopeId","data-v-deeba25a"]]),Ko2={class:"pga-info-card"},Qo2={key:1,class:"info-card__content"},Jo2=s.defineComponent({__name:"PgaInfoCard",props:{type:{default:"success"},title:{},description:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",Ko2,[t.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):(s.openBlock(),s.createElementBlock("div",Qo2,[s.createVNode(le,{icon:t.type==="success"?"circle-check":"circle-x",color:t.type,size:"1.9rem"},null,8,["icon","color"]),s.createVNode(D3,{class:"info-card__title",text:t.title},null,8,["text"]),t.description?(s.openBlock(),s.createBlock(D3,{key:0,class:"info-card__description",text:t.description},null,8,["text"])):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const es2=Q1(Jo2,[["__scopeId","data-v-cae9e4b4"]]),Uf=s.defineComponent({__name:"PgaInfoTooltip",props:{info:{},size:{default:"0.9rem"}},setup(e){const t=e,a=s.computed(()=>oe(t.info));return(c,n)=>{const r=s.resolveDirective("tooltip");return a.value?s.withDirectives((s.openBlock(),s.createBlock(le,{key:0,icon:"circle-help",size:c.size},null,8,["size"])),[[r,{content:a.value,html:!0}]]):s.createCommentVNode("",!0)}}}),ts2=s.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const t=e;return(a,c)=>(s.openBlock(),s.createBlock(le,{icon:t.isEnabled?"circle-check":"circle-x",color:t.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),as2=s.defineComponent({__name:"PgaItemSelected",props:s.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const a=s.useModel(e,"modelValue"),c=e;t({toggleItemSelected:r});const n=s.computed({get(){if(c.item)return!!a.value.find(o=>o.id===c.item.id);for(const i of c.items)if(!a.value.find(l=>l.id===i.id))return!1;return!0},set(i){c.item?i?a.value.push(c.item):a.value=a.value.filter(o=>o.id!==c.item.id):i?a.value=[...c.items]:a.value=[]}});function r(){n.value=!n.value}return(i,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["item-selected",{"item-selected--selected":n.value}]),onClick:o[0]||(o[0]=l=>r())},[n.value?(s.openBlock(),s.createBlock(le,{key:0,class:"item-selected__check-icon",icon:"check"})):s.createCommentVNode("",!0)],2))}});const PY=Q1(as2,[["__scopeId","data-v-1c9cee8f"]]),cs2={class:"modal__header"},ns2=["textContent"],rs2={class:"modal__body"},is2={key:0,class:"modal__footer"},os2=s.defineComponent({__name:"PgaModal",props:s.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean},width:{default:"auto"},acceptText:{},cancelText:{},acceptIcon:{default:"save"}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:t}){s.useCssVars(r=>({"296268f2":r.width}));const a=s.useModel(e,"modelValue"),c=t,n=$2("pgaModal");return s.watch(a,r=>wl(!r)),(r,i)=>a.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"pga-modal",onMousedown:i[4]||(i[4]=o=>a.value=!1)},[s.createElementVNode("div",{class:"modal__content",onMousedown:i[3]||(i[3]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",cs2,[s.createElementVNode("span",{class:"modal__title",textContent:s.toDisplayString(r.title)},null,8,ns2),s.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=o=>a.value=!1)},[s.createVNode(le,{icon:"x"})])]),s.createElementVNode("div",rs2,[s.renderSlot(r.$slots,"default",{},void 0,!0)]),r.confirmButtons?(s.openBlock(),s.createElementBlock("div",is2,[r.isLoading?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(V2,{key:0,text:r.cancelText||s.unref(n)("cancelBtn"),color:"danger",variant:"flat",onClick:i[1]||(i[1]=o=>a.value=!1)},null,8,["text"])),s.createVNode(V2,{icon:r.acceptIcon,text:r.acceptText||s.unref(n)("acceptBtn"),color:"success",variant:"filled",isLoading:r.isLoading,onClick:i[2]||(i[2]=o=>c("accept"))},null,8,["icon","text","isLoading"])])):s.createCommentVNode("",!0)],32)],32)):s.createCommentVNode("",!0)}});const ss2=Q1(os2,[["__scopeId","data-v-d2b807db"]]),ls2={class:"pga-flex-row"},fs2=s.defineComponent({__name:"PgaMonthSelector",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=s.computed({get(){return{year:t.value.datetimeFrom.getFullYear(),month:t.value.datetimeFrom.getMonth()}},set(r){const i=new Date(r.year,r.month,1);t.value={datetimeFrom:i,datetimeTo:c4.getNextMonthStartDate(i)}}});function c(){t.value={datetimeFrom:c4.getPreviousMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getPreviousMonthStartDate(t.value.datetimeTo)}}function n(){t.value={datetimeFrom:c4.getNextMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getNextMonthStartDate(t.value.datetimeTo)}}return(r,i)=>{const o=s.resolveComponent("PgaButton"),l=s.resolveComponent("PgaMonthPicker");return s.openBlock(),s.createElementBlock("div",ls2,[s.createVNode(o,{icon:"chevron-left",variant:"flat",color:"first",onClick:i[0]||(i[0]=f=>c())}),s.createVNode(l,{modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=f=>a.value=f),notClearable:""},null,8,["modelValue"]),s.createVNode(o,{icon:"chevron-right",variant:"flat",color:"first",onClick:i[2]||(i[2]=f=>n())})])}}}),us2=s.defineComponent({__name:"PgaSeparator",props:{vertical:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["separator",{"separator--vertical":t.vertical}])},null,2))}});const ds2=Q1(us2,[["__scopeId","data-v-12540ee5"]]),hs2={class:"pga-tabs"},ps2={class:"tabs__nav",role:"tablist"},ms2=["onClick"],vs2={class:"tabs__section",role:"tabpanel"},ys2=s.defineComponent({__name:"PgaTabs",props:{tabs:{}},setup(e){const t=s.ref(0);return(a,c)=>{const n=s.resolveComponent("PgaIcon"),r=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createElementBlock("div",hs2,[s.createElementVNode("nav",ps2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.tabs,(i,o)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(["tabs__button",{"tabs__button--active":t.value===o}]),key:`tab-${o}`,role:"tab",onClick:l=>t.value=o},[i.icon?(s.openBlock(),s.createBlock(n,{key:0,class:"tabs__icon",icon:i.icon},null,8,["icon"])):s.createCommentVNode("",!0),s.createVNode(r,{class:"tabs__label",text:i.label},null,8,["text"])],10,ms2))),128))]),s.createElementVNode("section",vs2,[s.renderSlot(a.$slots,`panel${t.value+1}`,{},void 0,!0)])])}}});const gs2=Q1(ys2,[["__scopeId","data-v-0a537190"]]),Ms2=["accept","multiple","disabled"],ks2={class:"input-file__label-container"},xs2=s.defineComponent({__name:"PgaInputFile",props:{type:{},multiple:{type:Boolean},label:{},disabled:{type:Boolean},isLoading:{type:Boolean}},emits:["newFile","newFiles"],setup(e,{expose:t,emit:a}){s.useCssVars(b=>({"7207a104":s.unref(r).input.borderColor,"31596fd7":s.unref(r).input.borderRadius,"5c7c5788":s.unref(r).input.backgroundColor,"4cd04a60":s.unref(r).input.backgroundColorHover,"00b876d8":s.unref(r).input.backgroundColorDisabled}));const c=e,n=a;t({click:M,resetInput:x});const{form:r}=i4(),i=$2("pgaForm"),o=(()=>c.type==="image"?["jpeg","jpg","png","webp","gif","svg","bmp","tiff","heic"]:c.type==="video"?["mp4","mov","avi","webm","mkv"]:["xls","xlsx"])(),l=o.map(b=>`.${b}`).join(","),f=s.ref(),u=s.ref([]),d=s.ref(!1),h=s.ref(!1),p=s.computed(()=>c.disabled||c.isLoading),v=s.computed(()=>!!u.value.length),m=s.computed(()=>{for(const b of u.value){const _=b.name.split(".").pop();if(!o.includes(_))return!1}return!0}),y=s.computed(()=>{const b={icon:"upload"};return!v.value||d.value&&!h.value&&!p.value?b:m.value?{icon:"circle-check",color:"success"}:{icon:"circle-x",color:"danger"}}),g=s.computed(()=>v.value?u.value.map(b=>b.name).join(", "):c.label?c.label:c.multiple?i("selectFilesLabel"):i("selectFileLabel"));function M(){var b;(b=f.value)==null||b.click()}function x(){u.value=[],f.value&&(f.value.value="")}function k(b){d.value=!1;const C=b.target.files;if(C.length){if(u.value=[...C],!m.value){H0("danger",()=>i("newFileError"));return}n("newFile",C[0]),n("newFiles",[...C])}}return(b,_)=>(s.openBlock(),s.createElementBlock("label",{class:s.normalizeClass(["pga-input-file",{"pga-input-file--disabled":p.value}]),onMouseenter:_[4]||(_[4]=C=>d.value=!0),onMouseleave:_[5]||(_[5]=C=>d.value=!1)},[b.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("input",{ref_key:"inputRef",ref:f,class:"input-file__input",type:"file",accept:s.unref(l),multiple:b.multiple,disabled:p.value,onChange:_[0]||(_[0]=C=>k(C))},null,40,Ms2),s.createVNode(le,{class:"input-file__icon",icon:y.value.icon,color:y.value.color},null,8,["icon","color"]),s.createElementVNode("div",ks2,[s.createVNode(D3,{text:g.value},null,8,["text"])]),v.value?(s.openBlock(),s.createBlock(V2,{key:0,text:s.unref(i)("removeBtn"),variant:"flat",color:"danger",size:"s",disabled:p.value,onMouseenter:_[1]||(_[1]=C=>h.value=!0),onMouseleave:_[2]||(_[2]=C=>h.value=!1),onClick:_[3]||(_[3]=s.withModifiers(C=>x(),["prevent"]))},null,8,["text","disabled"])):s.createCommentVNode("",!0)],64))],34))}});const Wf=Q1(xs2,[["__scopeId","data-v-328dfe0e"]]),bs2={class:"pga-videos"},zs2={class:"videos"},Cs2=["src"],_s2={key:0,class:"videos__input-container"},ws2=s.defineComponent({__name:"PgaVideos",props:s.mergeModels({maxVideosQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=$2("pgaFile"),n=s.ref(),r=s.ref(!1),i=s.ref(-1),o=s.computed(()=>t.value.length),l=s.computed(()=>t.value.map(d=>typeof d=="string"?d:URL.createObjectURL(d)));async function f(d){var h;if((h=n.value)==null||h.resetInput(),o.value+d.length>a.maxVideosQuantity&&(d=d.slice(0,a.maxVideosQuantity-o.value),H0("warning",()=>c("maxVideosQuantityAlert",{maxQuantity:a.maxVideosQuantity}))),!a.uploadFn){t.value.push(...d);return}try{r.value=!0,t.value=await a.uploadFn({file:d})}finally{r.value=!1}}async function u(d){if(a.deleteFn)try{i.value=d,await a.deleteFn({index:d})}finally{i.value=-1}t.value.splice(d,1)}return(d,h)=>{const p=s.resolveComponent("PgaDeleteButton");return s.openBlock(),s.createElementBlock("div",bs2,[s.createElementVNode("div",zs2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(v,m)=>(s.openBlock(),s.createElementBlock("div",{key:v,class:"videos__video-container"},[s.createElementVNode("video",{class:"videos__video",src:v,controls:""},null,8,Cs2),s.createVNode(p,{class:"videos__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===m,onDeleteConfirmed:y=>u(m)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),o.value<d.maxVideosQuantity?(s.openBlock(),s.createElementBlock("div",_s2,[s.createVNode(Wf,{ref_key:"inputFileRef",ref:n,class:"videos__input",type:"video",multiple:"",label:s.unref(c)("selectVideos"),isLoading:r.value,onNewFiles:h[0]||(h[0]=v=>f(v))},null,8,["label","isLoading"])])):s.createCommentVNode("",!0)]),s.createElementVNode("span",null,s.toDisplayString(`${o.value} / ${d.maxVideosQuantity}`),1)])}}});const Hs2=Q1(ws2,[["__scopeId","data-v-d4d3416e"]]),Ls2=s.defineComponent({__name:"PgaBackButton",setup(e){const t=$2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(V2,{text:s.unref(t)("backBtn"),icon:"chevron-left",color:"first",size:"s"},null,8,["text"]))}}),Vs2={class:"pga-copy"},Ss2=s.defineComponent({__name:"PgaCopy",props:{text:{}},setup(e){const t=e,a=$2("pgaButton"),c=s.ref(!1),n=s.computed(()=>oe(t.text));async function r(){await navigator.clipboard.writeText(n.value),c.value=!0,setTimeout(()=>c.value=!1,3e3)}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.openBlock(),s.createElementBlock("div",Vs2,[s.createElementVNode("span",null,s.toDisplayString(n.value),1),c.value?(s.openBlock(),s.createBlock(le,{key:1,icon:"circle-check",color:"success"})):s.withDirectives((s.openBlock(),s.createBlock(V2,{key:0,color:"first",icon:"copy",size:"s",onClick:o[0]||(o[0]=f=>r())},null,512)),[[l,s.unref(a)("copyBtn")]])])}}});const Ns2=Q1(Ss2,[["__scopeId","data-v-64962c4d"]]),As2=s.defineComponent({__name:"PgaCopyButton",props:{text:{},label:{}},setup(e){const t=e,a=$2("pgaButton"),c=s.computed(()=>oe(t.text)),n=s.computed(()=>t.label||a("copyBtn"));async function r(){await navigator.clipboard.writeText(c.value),H0("success",()=>a("textCopied"))}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(V2,{color:"first",icon:"copy",text:n.value,onClick:o[0]||(o[0]=f=>r())},null,8,["text"])),[[l,c.value]])}}}),Ts2={class:"alert"},Es2={class:"alert__content"},Ds2=["textContent"],Ps2={class:"alert__buttons"},Os2=s.defineComponent({__name:"Alert",props:{message:{},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const t=ln1.directive,a=$2("alert");return s.onMounted(()=>wl(!1)),s.onUnmounted(()=>wl(!0)),(c,n)=>(s.openBlock(),s.createElementBlock("div",Ts2,[s.withDirectives((s.openBlock(),s.createElementBlock("div",Es2,[s.createVNode(le,{class:"alert__icon",icon:"triangle-alert"}),s.createElementVNode("span",{class:"alert__title",textContent:s.toDisplayString(s.unref(a)("alertTitle"))},null,8,Ds2),c.message?(s.openBlock(),s.createBlock(D3,{key:0,class:"alert__message",text:c.message},null,8,["text"])):s.createCommentVNode("",!0),s.createElementVNode("div",Ps2,[s.createVNode(V2,{class:"alert__button",text:s.unref(a)("cancelBtn"),variant:"filled",color:"grey",onClick:n[0]||(n[0]=r=>c.handleCloseFn())},null,8,["text"]),s.createVNode(V2,{class:"alert__button",text:s.unref(a)("acceptBtn"),variant:"filled",color:"danger",onClick:n[1]||(n[1]=r=>c.handleAcceptFn())},null,8,["text"])])])),[[s.unref(t),c.handleCloseFn]])]))}});const Is2=Q1(Os2,[["__scopeId","data-v-698ccd72"]]);function In1(e,t){const a=document.createElement("div");document.body.appendChild(a);const c=s.createApp({render(){return s.h(Is2,{message:e,handleAcceptFn:r,handleCloseFn:n})}});c.mount(a);function n(){c.unmount(),document.body.removeChild(a)}function r(){n(),t()}}const rq=s.defineComponent({__name:"PgaDeleteButton",props:{variant:{default:"flat"},icon:{default:"trash-2"},text:{},withoutText:{type:Boolean},withoutConfirm:{type:Boolean},confirmDeleteText:{}},emits:["deleteConfirmed"],setup(e,{emit:t}){const a=e,c=t,n=$2("pgaButton");function r(){if(a.withoutConfirm){c("deleteConfirmed");return}const i=a.confirmDeleteText||n("confirmDeleteText");In1(i,()=>c("deleteConfirmed"))}return(i,o)=>(s.openBlock(),s.createBlock(V2,{class:"delete-button",variant:i.variant,icon:i.icon,text:i.withoutText?void 0:i.text||s.unref(n)("deleteBtn"),size:"s",align:"left",color:"danger",onClick:o[0]||(o[0]=l=>r())},null,8,["variant","icon","text"]))}}),OY=s.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean},fullWidth:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>{const n=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(V2,{class:"edit-button",variant:"flat",color:"sky",icon:"square-pen",text:a.withoutText?void 0:s.unref(t)("editBtn"),size:"s",fullWidth:a.fullWidth,align:"left"},null,8,["text","fullWidth"])),[[n,a.withoutText?s.unref(t)("editBtn"):""]])}}}),Bs2=["href","target"],Rs2=s.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("a",{class:"hyperlink",href:t.href,target:t.target},[s.createVNode(D3,{text:t.text,withUnderlineOnHover:""},null,8,["text"])],8,Bs2))}});const Bn1=Q1(Rs2,[["__scopeId","data-v-ec435fa7"]]),Fs2=s.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:t}){const a=t,c=$2("pgaButton");return(n,r)=>(s.openBlock(),s.createBlock(V2,{icon:"log-out",text:s.unref(c)("logoutBtn"),color:"danger",onClick:r[0]||(r[0]=i=>a("click",i))},null,8,["text"]))}}),$s2=s.defineComponent({__name:"PgaRouterLink",props:{name:{},params:{},query:{},color:{default:"var(--pga-color-first)"},noFitContent:{type:Boolean},underline:{type:Boolean},noUnderlineOnHover:{type:Boolean}},setup(e){s.useCssVars(n=>({"040e9024":a.value,"75a55a4c":c.value}));const t=e,a=s.computed(()=>`var(--pga-color-${t.color})`),c=s.computed(()=>`var(--pga-color-${t.color}-09)`);return(n,r)=>{const i=s.resolveComponent("RouterLink");return s.openBlock(),s.createBlock(i,{class:s.normalizeClass(["pga-router-link",{"pga-router-link--fit-content":!n.noFitContent,"pga-router-link--underline":n.underline,"pga-router-link--underline-on-hover":!n.noUnderlineOnHover}]),to:{name:n.name,params:n.params,query:n.query},onClick:r[0]||(r[0]=o=>s.unref(wl)(!0))},{default:s.withCtx(()=>[s.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["class","to"])}}});const Yf=Q1($s2,[["__scopeId","data-v-6046ce2c"]]),Rn1=s.defineComponent({__name:"PgaRouterLinkButton",props:{name:{},params:{},query:{},type:{},icon:{},text:{},variant:{},size:{},align:{},color:{},heightAndWidth:{},borderRadius:{},rounded:{type:Boolean},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{},noFitContent:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(Yf,{name:t.name,params:t.params,query:t.query,noFitContent:t.noFitContent,noUnderlineOnHover:""},{default:s.withCtx(()=>[t.$slots.default?s.renderSlot(t.$slots,"default",{key:0}):(s.openBlock(),s.createBlock(V2,{key:1,type:t.type,icon:t.icon,text:t.text,variant:t.variant,size:t.size,align:t.align,color:t.color,fullWidth:!t.heightAndWidth,heightAndWidth:t.heightAndWidth,borderRadius:t.borderRadius,rounded:t.rounded,disabled:t.disabled,isLoading:t.isLoading,numberToDisplay:t.numberToDisplay},null,8,["type","icon","text","variant","size","align","color","fullWidth","heightAndWidth","borderRadius","rounded","disabled","isLoading","numberToDisplay"]))]),_:3},8,["name","params","query","noFitContent"]))}}),Fn1=s.defineComponent({__name:"PgaNavigateToButton",props:{id:{},toName:{},withoutText:{type:Boolean},noFitContent:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>a.toName?(s.openBlock(),s.createBlock(Rn1,{key:0,name:a.toName,params:{id:a.id},icon:"external-link",text:a.withoutText?void 0:s.unref(t)("navigateToBtn"),variant:"flat",size:"s",align:"left",color:"link",noFitContent:a.noFitContent},null,8,["name","params","text","noFitContent"])):s.createCommentVNode("",!0)}}),qs2=s.defineComponent({__name:"PgaRemoveButton",props:{size:{default:"s"},disabled:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(V2,{variant:"flat",icon:"x",size:t.size,color:"danger",disabled:t.disabled},null,8,["size","disabled"]))}}),js2=s.defineComponent({__name:"PgaSeeDetailsButton",props:{withoutText:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(V2,{class:"edit-button",variant:"flat",color:"grey",icon:"eye",text:a.withoutText?void 0:s.unref(t)("seeDetailsBtn"),size:"s",align:"left"},null,8,["text"]))}}),Us2=s.defineComponent({__name:"PgaToggleButton",props:s.mergeModels({text:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=t,n=s.computed(()=>a.value?"outlined":"flat"),r=s.computed(()=>a.value?"primary":"grey");return s.watch(a,i=>c("change",i)),(i,o)=>(s.openBlock(),s.createBlock(V2,{variant:n.value,color:r.value,icon:"circle-check",text:i.text,size:"s",borderRadius:"1rem",onClick:o[0]||(o[0]=l=>a.value=!a.value)},null,8,["variant","color","text"]))}});var Ws2=Object.defineProperty,Ys2=(e,t,a)=>t in e?Ws2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Wt=(e,t,a)=>Ys2(e,typeof t!="symbol"?t+"":t,a);const Gs2=(e,t,a)=>{const c=e[t];return c?typeof c=="function"?c():Promise.resolve(c):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==a?". Note that variables only represent file names one level deep.":""))))})};let js,j31,U31,g0,Us={},Xi={};class Zs2{constructor(t,a=!1){Wt(this,"texts",{}),Wt(this,"dateToMinutes",c=>c.getHours()*60+c.getMinutes()),g0=this,this._texts=t,!a&&Date&&!Date.prototype.addDays&&this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return g0.addDays(this,t)},Date.prototype.subtractDays=function(t){return g0.subtractDays(this,t)},Date.prototype.addHours=function(t){return g0.addHours(this,t)},Date.prototype.subtractHours=function(t){return g0.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return g0.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return g0.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return g0.getWeek(this)},Date.prototype.isToday=function(){return g0.isToday(this)},Date.prototype.isLeapYear=function(){return g0.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return g0.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return g0.formatTime(this,t)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(t){this._texts=t}_todayFormatted(){return j31!==new Date().getDate()&&(js=new Date,j31=js.getDate(),U31=`${js.getFullYear()}-${js.getMonth()}-${js.getDate()}`),U31}addDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()+a),c}subtractDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()-a),c}addHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()+a),c}subtractHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()-a),c}addMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()+a),c}subtractMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()-a),c}getWeek(t){const a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),c=a.getUTCDay()||7;a.setUTCDate(a.getUTCDate()+4-c);const n=new Date(Date.UTC(a.getUTCFullYear(),0,1));return Math.ceil(((a-n)/864e5+1)/7)}isToday(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`===this._todayFormatted()}isLeapYear(t){const a=t.getFullYear();return!(a%400)||a%100&&!(a%4)}getPreviousFirstDayOfWeek(t=null,a){const c=t&&new Date(t.valueOf())||new Date,n=a?7:6;return c.setDate(c.getDate()-(c.getDay()+n)%7),c}stringToDate(t){return t instanceof Date?t:(t.length===10&&(t+=" 00:00"),new Date(t.replace(/-/g,"/")))}countDays(t,a){typeof t=="string"&&(t=t.replace(/-/g,"/")),typeof a=="string"&&(a=a.replace(/-/g,"/")),t=new Date(t).setHours(0,0,0,0),a=new Date(a).setHours(0,0,1,0);const c=(new Date(a).getTimezoneOffset()-new Date(t).getTimezoneOffset())*60*1e3;return Math.ceil((a-t-c)/(24*3600*1e3))}datesInSameTimeStep(t,a,c){return Math.abs(t.getTime()-a.getTime())<=c*60*1e3}formatDate(t,a="YYYY-MM-DD",c=null){if(c||(c=this._texts),a||(a="YYYY-MM-DD"),a==="YYYY-MM-DD")return this.formatDateLite(t);Us={},Xi={};const n={YYYY:()=>this._hydrateDateObject(t,c).YYYY,YY:()=>this._hydrateDateObject(t,c).YY(),M:()=>this._hydrateDateObject(t,c).M,MM:()=>this._hydrateDateObject(t,c).MM(),MMM:()=>this._hydrateDateObject(t,c).MMM(),MMMM:()=>this._hydrateDateObject(t,c).MMMM(),MMMMG:()=>this._hydrateDateObject(t,c).MMMMG(),D:()=>this._hydrateDateObject(t,c).D,DD:()=>this._hydrateDateObject(t,c).DD(),S:()=>this._hydrateDateObject(t,c).S(),d:()=>this._hydrateDateObject(t,c).d,dd:()=>this._hydrateDateObject(t,c).dd(),ddd:()=>this._hydrateDateObject(t,c).ddd(),dddd:()=>this._hydrateDateObject(t,c).dddd(),HH:()=>this._hydrateTimeObject(t,c).HH,H:()=>this._hydrateTimeObject(t,c).H,hh:()=>this._hydrateTimeObject(t,c).hh,h:()=>this._hydrateTimeObject(t,c).h,am:()=>this._hydrateTimeObject(t,c).am,AM:()=>this._hydrateTimeObject(t,c).AM,mm:()=>this._hydrateTimeObject(t,c).mm,m:()=>this._hydrateTimeObject(t,c).m};return a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(r,i)=>{const o=n[i.replace(/\{|\}/g,"")];return o!==void 0?o():i})}formatDateLite(t){const a=t.getMonth()+1,c=t.getDate();return`${t.getFullYear()}-${a<10?"0":""}${a}-${c<10?"0":""}${c}`}formatTime(t,a="HH:mm",c=null,n=!1){let r=!1;if(n){const[l,f,u]=[t.getHours(),t.getMinutes(),t.getSeconds()];l+f+u===23+59+59&&(r=!0)}if(t instanceof Date&&a==="HH:mm")return r?"24:00":this.formatTimeLite(t);Xi={},c||(c=this._texts);const i=this._hydrateTimeObject(t,c),o=a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(l,f)=>{const u=i[f.replace(/\{|\}/g,"")];return u!==void 0?u:f});return r?o.replace("23:59","24:00"):o}formatTimeLite(t){const a=t.getHours(),c=t.getMinutes();return`${(a<10?"0":"")+a}:${(c<10?"0":"")+c}`}_nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(t,a){if(Us.D)return Us;const c=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),o=(t.getDay()-1+7)%7;return Us={YYYY:c,YY:()=>c.toString().substring(2),M:n,MM:()=>(n<10?"0":"")+n,MMM:()=>a.months[n-1].substring(0,3),MMMM:()=>a.months[n-1],MMMMG:()=>(a.monthsGenitive||a.months)[n-1],D:r,DD:()=>(r<10?"0":"")+r,S:()=>this._nth(r),d:o+1,dd:()=>a.weekDays[o][0],ddd:()=>a.weekDays[o].substr(0,3),dddd:()=>a.weekDays[o]},Us}_hydrateTimeObject(t,a){if(Xi.am)return Xi;let c,n;t instanceof Date?(c=t.getHours(),n=t.getMinutes()):(c=Math.floor(t/60),n=Math.floor(t%60));const r=c%12?c%12:12,i=(a||{am:"am",pm:"pm"})[c===24||c<12?"am":"pm"];return Xi={H:c,h:r,HH:(c<10?"0":"")+c,hh:(r<10?"0":"")+r,am:i,AM:i.toUpperCase(),m:n,mm:(n<10?"0":"")+n},Xi}}const Xs2=24*60;class Ks2{constructor(t){Wt(this,"_vuecal",null),Wt(this,"selectCell",(a=!1,c,n)=>{this._vuecal.$emit("cell-click",n?{date:c,split:n}:c),this._vuecal.clickToNavigate||a?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",n?{date:c,split:n}:c)))}),Wt(this,"keyPressEnterCell",(a,c)=>{this._vuecal.$emit("cell-keypress-enter",c?{date:a,split:c}:a),this._vuecal.switchToNarrowerView()}),Wt(this,"getPosition",a=>{const{left:c,top:n}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:r,clientY:i}="ontouchstart"in window&&a.touches?a.touches[0]:a;return{x:r-c,y:i-n}}),Wt(this,"minutesAtCursor",a=>{let c=0,n={x:0,y:0};const{timeStep:r,timeCellHeight:i,timeFrom:o}=this._vuecal.$props;return typeof a=="number"?c=a:typeof a=="object"&&(n=this.getPosition(a),c=Math.round(n.y*r/parseInt(i)+o)),{minutes:Math.max(Math.min(c,Xs2),0),cursorCoords:n}}),this._vuecal=t}}const Qs2=2,hU=24*60;let U3,W3,pU;class Js2{constructor(t,a){Wt(this,"_vuecal",null),Wt(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=t,U3=a}createAnEvent(t,a,c){if(typeof t=="string"&&(t=U3.stringToDate(t)),!(t instanceof Date))return!1;const n=U3.dateToMinutes(t);a=a*1||Qs2*60;const r=n+a,i=U3.addMinutes(new Date(t),a);c.end&&(typeof c.end=="string"&&(c.end=U3.stringToDate(c.end)),c.endTimeMinutes=U3.dateToMinutes(c.end));const o={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:t,startTimeMinutes:n,end:i,endTimeMinutes:r,segments:null,...c};if(!(typeof this._vuecal.onEventCreate=="function"&&!this._vuecal.onEventCreate(o,()=>this.deleteAnEvent(o))))return o.startDateF!==o.endDateF&&(o.daysCount=U3.countDays(o.start,o.end)),this._vuecal.mutableEvents.push(o),this._vuecal.addEventsToView([o]),this._vuecal.emitWithEvent("event-create",o),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(o),originalEvent:null}),o}addEventSegment(t){t.segments||(t.segments={},t.segments[U3.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:hU,isFirstDay:!0,isLastDay:!1});const a=t.segments[U3.formatDateLite(t.end)];a&&(a.isLastDay=!1,a.endTimeMinutes=hU);const c=U3.addDays(t.end,1),n=U3.formatDateLite(c);return c.setHours(0,0,0,0),t.segments[n]={start:c,startTimeMinutes:0,endTimeMinutes:t.endTimeMinutes,isFirstDay:!1,isLastDay:!0},t.end=U3.addMinutes(c,t.endTimeMinutes),t.daysCount=Object.keys(t.segments).length,n}removeEventSegment(t){let a=Object.keys(t.segments).length;if(a<=1)return U3.formatDateLite(t.end);delete t.segments[U3.formatDateLite(t.end)],a--;const c=U3.subtractDays(t.end,1),n=U3.formatDateLite(c),r=t.segments[n];return a?r&&(r.isLastDay=!0,r.endTimeMinutes=t.endTimeMinutes):t.segments=null,t.daysCount=a||1,t.end=c,n}createEventSegments(t,a,c){const n=a.getTime(),r=c.getTime();let i=t.start.getTime(),o=t.end.getTime(),l=!1,f,u,d;for(!t.end.getHours()&&!t.end.getMinutes()&&(o-=1e3),t.segments={},t.repeat?(f=n,u=Math.min(r,t.repeat.until?U3.stringToDate(t.repeat.until).getTime():r)):(f=Math.max(n,i),u=Math.min(r,o));f<=u;){let h=!1;const p=U3.addDays(new Date(f),1).setHours(0,0,0,0);let v,m,y,g;if(t.repeat){const M=new Date(f),x=U3.formatDateLite(M);(l||t.occurrences&&t.occurrences[x])&&(l||(i=t.occurrences[x].start,d=new Date(i).setHours(0,0,0,0),o=t.occurrences[x].end),l=!0,h=!0),v=f===d,m=x===U3.formatDateLite(new Date(o)),y=new Date(v?i:f),g=U3.formatDateLite(y),m&&(l=!1)}else h=!0,v=f===i,m=u===o&&p>u,y=v?t.start:new Date(f),g=U3.formatDateLite(v?t.start:y);h&&(t.segments[g]={start:y,startTimeMinutes:v?t.startTimeMinutes:0,endTimeMinutes:m?t.endTimeMinutes:hU,isFirstDay:v,isLastDay:m}),f=p}return t}deleteAnEvent(t){this._vuecal.emitWithEvent("event-delete",t),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(a=>a._eid!==t._eid),this._vuecal.view.events=this._vuecal.view.events.filter(a=>a._eid!==t._eid)}checkCellOverlappingEvents(t,a){pU=t.slice(0),W3={},t.forEach(n=>{pU.shift(),W3[n._eid]||(W3[n._eid]={overlaps:[],start:n.start,position:0}),W3[n._eid].position=0,pU.forEach(r=>{W3[r._eid]||(W3[r._eid]={overlaps:[],start:r.start,position:0});const i=this.eventInRange(r,n.start,n.end),o=a.overlapsPerTimeStep?U3.datesInSameTimeStep(n.start,r.start,a.timeStep):1;if(!n.background&&!n.allDay&&!r.background&&!r.allDay&&i&&o)W3[n._eid].overlaps.push(r._eid),W3[n._eid].overlaps=[...new Set(W3[n._eid].overlaps)],W3[r._eid].overlaps.push(n._eid),W3[r._eid].overlaps=[...new Set(W3[r._eid].overlaps)],W3[r._eid].position++;else{let l,f;(l=(W3[n._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&W3[n._eid].overlaps.splice(l,1),(f=(W3[r._eid]||{overlaps:[]}).overlaps.indexOf(n._eid))>-1&&W3[r._eid].overlaps.splice(f,1),W3[r._eid].position--}})});let c=0;for(const n in W3){const r=W3[n],i=r.overlaps.map(o=>({id:o,start:W3[o].start}));i.push({id:n,start:r.start}),i.sort((o,l)=>o.start<l.start?-1:o.start>l.start?1:o.id>l.id?-1:1),r.position=i.findIndex(o=>o.id===n),c=Math.max(this.getOverlapsStreak(r,W3),c)}return[W3,c]}getOverlapsStreak(t,a={}){let c=t.overlaps.length+1,n=[];return t.overlaps.forEach(r=>{n.includes(r)||t.overlaps.filter(o=>o!==r).forEach(o=>{a[o].overlaps.includes(r)||n.push(o)})}),n=[...new Set(n)],c-=n.length,c}eventInRange(t,a,c){if(t.allDay||!this._vuecal.time){const i=new Date(t.start).setHours(0,0,0,0);return new Date(t.end).setHours(23,59,0,0)>=new Date(a).setHours(0,0,0,0)&&i<=new Date(c).setHours(0,0,0,0)}const n=t.start.getTime(),r=t.end.getTime();return n<c.getTime()&&r>a.getTime()}}const e92={class:"vuecal__flex vuecal__weekdays-headings"},t92=["onClick"],a92={class:"vuecal__flex weekday-label",grow:""},c92={class:"full"},n92={class:"small"},r92={class:"xsmall"},i92={key:0},o92={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function s92(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",e92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.headings,(i,o)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:o},[i.hide?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["vuecal__flex vuecal__heading",{today:i.today,clickable:r.cellHeadingsClickable}]),style:s.normalizeStyle(r.weekdayCellStyles),onClick:l=>r.view.id==="week"&&r.selectCell(i.date,l),onDblclick:t[0]||(t[0]=l=>r.view.id==="week"&&r.vuecal.dblclickToNavigate&&a.switchToNarrowerView())},[s.createVNode(s.Transition,{name:`slide-fade--${a.transitionDirection}`,appear:r.vuecal.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",column:"",key:r.vuecal.transitions?`${o}-${i.dayOfMonth}`:!1},[s.createElementVNode("div",a92,[s.renderSlot(e.$slots,"weekday-heading",{heading:r.cleanupHeading(i),view:r.view},()=>[s.createElementVNode("span",c92,s.toDisplayString(i.full),1),s.createElementVNode("span",n92,s.toDisplayString(i.small),1),s.createElementVNode("span",r92,s.toDisplayString(i.xsmall),1),i.dayOfMonth?(s.openBlock(),s.createElementBlock("span",i92," "+s.toDisplayString(i.dayOfMonth),1)):s.createCommentVNode("",!0)])]),r.vuecal.hasSplits&&r.vuecal.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",o92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.daySplits,(l,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",l.class||!1]),key:f},[s.renderSlot(e.$slots,"split-label",{split:l,view:r.view},()=>[s.createTextVNode(s.toDisplayString(l.label),1)])],2))),128))])):s.createCommentVNode("",!0)]))]),_:2},1032,["name","appear"])],46,t92))],64))),128))])}const bs=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},l92={inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(e,t){e.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=e),this.utils.cell.selectCell(!1,e,t)},cleanupHeading:e=>({label:e.full,date:e.date,...e.today?{today:e.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let e=!1;return this.weekDays.map((a,c)=>{const n=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday&&this.vuecal.hideWeekends?c-1:c);return{hide:a.hide,full:a.label,small:a.short||a.label.substr(0,3),xsmall:a.short||a.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:n.getDate(),date:n,today:!e&&this.utils.date.isToday(n)&&!e++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((e,t)=>e+t.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},$n1=bs(l92,[["render",s92]]),f92={class:"vuecal__header"},u92={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},d92=["onDragenter","onDragleave","onClick","aria-label"],h92={key:1,class:"vuecal__title-bar"},p92=["aria-label"],m92={class:"vuecal__flex vuecal__title",grow:""},v92=["aria-label"],y92={key:0,class:"vuecal__flex vuecal__split-days-headers"};function g92(e,t,a,c,n,r){const i=s.resolveComponent("weekdays-headings");return s.openBlock(),s.createElementBlock("div",f92,[a.options.hideViewSelector?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",u92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.viewProps.views,(o,l)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:l},[o.enabled?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__view-btn",{"vuecal__view-btn--active":r.view.id===l,"vuecal__view-btn--highlighted":e.highlightedControl===l}]),type:"button",onDragenter:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(f,l,e.$data),onDragleave:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(f,l,e.$data),onClick:f=>r.switchView(l,null,!0),"aria-label":`${o.label} view`},s.toDisplayString(o.label),43,d92)):s.createCommentVNode("",!0)],64))),128))])),a.options.hideTitleBar?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",h92,[s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":e.highlightedControl==="previous"}]),type:"button",onClick:t[0]||(t[0]=(...o)=>r.previous&&r.previous(...o)),onDragenter:t[1]||(t[1]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"previous",e.$data)),onDragleave:t[2]||(t[2]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"previous",e.$data)),"aria-label":`Previous ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-prev")],42,p92),s.createElementVNode("div",m92,[s.createVNode(s.Transition,{name:a.options.transitions?`slide-fade--${r.transitionDirection}`:""},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.broaderView?"button":"span"),{type:!!r.broaderView&&"button",key:`${r.view.id}${r.view.startDate.toString()}`,onClick:t[3]||(t[3]=o=>!!r.broaderView&&r.switchToBroaderView()),"aria-label":!!r.broaderView&&`Go to ${r.broaderView} view`},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),a.options.todayButton?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__today-btn",{"vuecal__today-btn--highlighted":e.highlightedControl==="today"}]),type:"button",onClick:t[4]||(t[4]=(...o)=>r.goToToday&&r.goToToday(...o)),onDragenter:t[5]||(t[5]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"today",e.$data)),onDragleave:t[6]||(t[6]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"today",e.$data)),"aria-label":"Today"},[s.renderSlot(e.$slots,"today-button")],34)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":e.highlightedControl==="next"}]),type:"button",onClick:t[7]||(t[7]=(...o)=>r.next&&r.next(...o)),onDragenter:t[8]||(t[8]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"next",e.$data)),onDragleave:t[9]||(t[9]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"next",e.$data)),"aria-label":`Next ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-next")],42,v92)])),a.viewProps.weekDaysInHeader?(s.openBlock(),s.createBlock(i,{key:2,"week-days":a.weekDays,"transition-direction":r.transitionDirection,"switch-to-narrower-view":a.switchToNarrowerView},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:o,view:l})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:o,view:l})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:o})=>[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:`slide-fade--${r.transitionDirection}`},{default:s.withCtx(()=>[r.showDaySplits?(s.openBlock(),s.createElementBlock("div",y92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.daySplits,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",o.class||!1]),key:l},[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view.id},()=>[s.createTextVNode(s.toDisplayString(o.label),1)])],2))),128))])):s.createCommentVNode("",!0)]),_:3},8,["name"])])}const M92={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:$n1},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(e){this.vuecal.transitionDirection=e}},broaderView(){const{enabledViews:e}=this.vuecal;return e[e.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},k92=bs(M92,[["render",g92]]),x92=["draggable"];function b92(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__event",r.eventClasses]),style:s.normalizeStyle(r.eventStyles),tabindex:"0",onFocus:t[4]||(t[4]=(...i)=>r.focusEvent&&r.focusEvent(...i)),onKeypress:t[5]||(t[5]=s.withKeys(s.withModifiers((...i)=>r.onEnterKeypress&&r.onEnterKeypress(...i),["stop"]),["enter"])),onMouseenter:t[6]||(t[6]=(...i)=>r.onMouseEnter&&r.onMouseEnter(...i)),onMouseleave:t[7]||(t[7]=(...i)=>r.onMouseLeave&&r.onMouseLeave(...i)),onTouchstart:t[8]||(t[8]=s.withModifiers((...i)=>r.onTouchStart&&r.onTouchStart(...i),["stop"])),onMousedown:t[9]||(t[9]=i=>r.onMouseDown(i)),onMouseup:t[10]||(t[10]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchend:t[11]||(t[11]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchmove:t[12]||(t[12]=(...i)=>r.onTouchMove&&r.onTouchMove(...i)),onDblclick:t[13]||(t[13]=(...i)=>r.onDblClick&&r.onDblClick(...i)),draggable:r.draggable,onDragstart:t[14]||(t[14]=i=>r.draggable&&r.onDragStart(i)),onDragend:t[15]||(t[15]=i=>r.draggable&&r.onDragEnd())},[r.vuecal.editEvents.delete&&a.event.deletable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=s.withModifiers((...i)=>r.deleteEvent&&r.deleteEvent(...i),["stop"])),onTouchstart:t[1]||(t[1]=s.withModifiers((...i)=>r.touchDeleteEvent&&r.touchDeleteEvent(...i),["stop"]))},s.toDisplayString(r.vuecal.texts.deleteEvent),33)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"event",{event:a.event,view:r.view.id}),r.resizable?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"])),onTouchstart:t[3]||(t[3]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"]))},null,32)):s.createCommentVNode("",!0)],46,x92)}const z92={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(e,t=!1){if("ontouchstart"in window&&!t)return!1;const{clickHoldAnEvent:a,focusAnEvent:c,resizeAnEvent:n,dragAnEvent:r}=this.domEvents;if(c._eid===this.event._eid&&a._eid===this.event._eid)return!0;this.focusEvent(),a._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(a.timeoutId=setTimeout(()=>{!n._eid&&!r._eid&&(a._eid=this.event._eid,this.event.deleting=!0)},a.timeout))},onMouseUp(e){this.domEvents.focusAnEvent._eid===this.event._eid&&!this.touch.dragged&&(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(e){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:t,clientY:a}=e.touches[0],{startX:c,startY:n,dragThreshold:r}=this.touch;(Math.abs(t-c)>r||Math.abs(a-n)>r)&&(this.touch.dragged=!0)},onTouchStart(e){this.touch.startX=e.touches[0].clientX,this.touch.startY=e.touches[0].clientY,this.onMouseDown(e,!0)},onEnterKeypress(e){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,e)},onDblClick(e){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,e)},onDragStart(e){this.dnd&&this.dnd.eventDragStart(e,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(e=!1){if("ontouchstart"in window&&!e)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(e){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:e}=this.domEvents,t=e._eid;if(t!==this.event._eid){if(t){const a=this.view.events.find(c=>c._eid===t);a&&(a.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),e._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:e,endTimeMinutes:t}=this.segment||this.event;let a=e-this.vuecal.timeFrom;const c=Math.max(Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);a=Math.min(t,this.vuecal.timeTo)-this.vuecal.timeFrom;const n=Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),r=Math.max(n-c,5);return{top:c,height:r}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let e=100/Math.min(this.overlaps.length+1,this.overlapsStreak),t=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&e<this.vuecal.minEventWidth&&(e=this.vuecal.minEventWidth,t=(100-this.vuecal.minEventWidth)/this.overlaps.length*this.eventPosition);const{top:a,height:c}=this.eventDimensions;return{top:`${a}px`,height:`${c}px`,width:`${e}%`,left:this.event.left&&`${this.event.left}px`||`${t}%`}},eventClasses(){const{isFirstDay:e,isLastDay:t}=this.segment||{};return{[this.event.class]:!!this.event.class,"vuecal__event--focus":this.event.focused,"vuecal__event--resizing":this.event.resizing,"vuecal__event--background":this.event.background,"vuecal__event--deletable":this.event.deleting,"vuecal__event--all-day":this.event.allDay,"vuecal__event--dragging":!this.event.draggingStatic&&this.event.dragging,"vuecal__event--static":this.event.dragging&&this.event.draggingStatic,"vuecal__event--multiple-days":!!this.segment,"event-start":this.segment&&e&&!t,"event-middle":this.segment&&!e&&!t,"event-end":this.segment&&t&&!e}},segment(){return this.event.segments&&this.event.segments[this.cellFormattedDate]||null},draggable(){const{draggable:e,background:t,daysCount:a}=this.event;return this.vuecal.editEvents.drag&&e&&!t&&a===1},resizable(){const{editEvents:e,time:t}=this.vuecal;return e.resize&&this.event.resizable&&t&&!this.allDay&&(!this.segment||this.segment&&this.segment.isLastDay)&&this.view.id!=="month"},dnd(){return this.modules.dnd}}},C92=bs(z92,[["render",b92]]),_92=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],w92={key:0,class:"cell-time-labels"},H92=["innerHTML"],L92={key:2,class:"vuecal__cell-events"},V92=["title"];function S92(e,t,a,c,n,r){const i=s.resolveComponent("event");return s.openBlock(),s.createBlock(s.TransitionGroup,{class:s.normalizeClass(["vuecal__cell",r.cellClasses]),name:`slide-fade--${r.transitionDirection}`,tag:"div",appear:a.options.transitions,style:s.normalizeStyle(r.cellStyles)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?r.splits:1,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal__cell-content",r.splitsCount&&r.splitClasses(o)]),key:a.options.transitions?`${r.view.id}-${a.data.content}-${l}`:l,"data-split":r.splitsCount?o.id:!1,column:"",tabindex:"0","aria-label":a.data.content,onFocus:t[0]||(t[0]=f=>r.onCellFocus(f)),onKeypress:t[1]||(t[1]=s.withKeys(f=>r.onCellkeyPressEnter(f),["enter"])),onTouchstart:f=>!r.isDisabled&&r.onCellTouchStart(f,r.splitsCount?o.id:null),onMousedown:f=>!r.isDisabled&&r.onCellMouseDown(f,r.splitsCount?o.id:null),onClick:t[2]||(t[2]=f=>!r.isDisabled&&r.onCellClick(f)),onDblclick:t[3]||(t[3]=f=>!r.isDisabled&&r.onCellDblClick(f)),onContextmenu:t[4]||(t[4]=f=>!r.isDisabled&&a.options.cellContextmenu&&r.onCellContextMenu(f)),onDragenter:t[5]||(t[5]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragEnter(f,e.$data,a.data.startDate)),onDragover:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragOver(f,e.$data,a.data.startDate,r.splitsCount?o.id:null),onDragleave:t[6]||(t[6]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragLeave(f,e.$data,a.data.startDate)),onDrop:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragDrop(f,e.$data,a.data.startDate,r.splitsCount?o.id:null)},[a.options.showTimeInCells&&a.options.time&&r.isWeekOrDayView&&!a.allDay?(s.openBlock(),s.createElementBlock("div",w92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.timeCells,(f,u)=>(s.openBlock(),s.createElementBlock("span",{class:"cell-time-label",key:u},s.toDisplayString(f.label),1))),128))])):s.createCommentVNode("",!0),r.isWeekOrDayView&&!a.allDay&&r.specialHours.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.specialHours,(f,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__special-hours",`vuecal__special-hours--day${f.day} ${f.class}`]),style:s.normalizeStyle(`height: ${f.height}px;top: ${f.top}px`)},[f.label?(s.openBlock(),s.createElementBlock("div",{key:0,class:"special-hours-label",innerHTML:f.label},null,8,H92)):s.createCommentVNode("",!0)],6))),256)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"cell-content",{events:r.events,selectCell:f=>r.selectCell(f,!0),split:r.splitsCount?o:!1}),r.eventsCount&&(r.isWeekOrDayView||r.view.id==="month"&&a.options.eventsOnMonthView)?(s.openBlock(),s.createElementBlock("div",L92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?o.events:r.events,(f,u)=>(s.openBlock(),s.createBlock(i,{key:u,"cell-formatted-date":a.data.formattedDate,event:f,"all-day":a.allDay,"cell-events":r.splitsCount?o.events:r.events,overlaps:((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).overlaps,"event-position":((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).position,"overlaps-streak":r.splitsCount?o.overlapsStreak:e.cellOverlapsStreak},{event:s.withCtx(({event:d,view:h})=>[s.renderSlot(e.$slots,"event",{view:h,event:d})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):s.createCommentVNode("",!0)],42,_92))),128)),r.timelineVisible?(s.openBlock(),s.createElementBlock("div",{class:"vuecal__now-line",style:s.normalizeStyle(`top: ${r.todaysTimePosition}px`),key:a.options.transitions?`${r.view.id}-now-line`:"now-line",title:r.utils.date.formatTime(r.vuecal.now)},null,12,V92)):s.createCommentVNode("",!0)]),_:3},8,["class","name","appear","style"])}const N92={inject:["vuecal","utils","modules","view","domEvents"],components:{Event:C92},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:e}){let a=e.classList.contains("vuecal__cell-split")?e:this.vuecal.findAncestor(e,"vuecal__cell-split");return a&&(a=a.attributes["data-split"].value,parseInt(a).toString()===a.toString()&&(a=parseInt(a))),a||null},splitClasses(e){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===e.id,[e.class]:!!e.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(e){return this.vuecal.isDOMElementAnEvent(e)},selectCell(e,t=!1){const a=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.selectCell(t,this.timeAtCursor,a),this.timeAtCursor=null},onCellkeyPressEnter(e){this.isSelected||this.onCellFocus(e);const t=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,t),this.timeAtCursor=null},onCellFocus(e){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const t=this.splitsCount?this.getSplitAtCursor(e):null,a=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",t?{date:a,split:t}:a)}},onCellMouseDown(e,t=null,a=!1){if("ontouchstart"in window&&!a)return!1;this.isSelected||this.onCellFocus(e);const{clickHoldACell:c,focusAnEvent:n}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,c.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:r,cursorCoords:{y:i}}=this.vuecal.minutesAtCursor(e);this.timeAtCursor.setMinutes(r);const o=this.isDOMElementAnEvent(e.target);!o&&n._eid&&((this.view.events.find(l=>l._eid===n._eid)||{}).focused=!1),this.editEvents.create&&!o&&this.setUpEventCreation(e,i)},setUpEventCreation(e,t){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:a}=this.domEvents;if(a.startCursorY=t,a.split=this.splitsCount?this.getSplitAtCursor(e):null,a.start=this.timeAtCursor,this.options.snapToTime){let c=this.timeAtCursor.getHours()*60+this.timeAtCursor.getMinutes();const n=c+this.options.snapToTime/2;c=n-n%this.options.snapToTime,a.start.setHours(0,c,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(e)},setUpCellHoldTimer(e){const{clickHoldACell:t}=this.domEvents;t.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,t.split=this.splitsCount?this.getSplitAtCursor(e):null,t.timeoutId=setTimeout(()=>{if(t.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:a}=this.utils.event.createAnEvent(this.timeAtCursor,null,t.split?{split:t.split}:{});t.eventCreated=a}},t.timeout)},onCellTouchStart(e,t=null){this.onCellMouseDown(e,t,!0)},onCellClick(e){this.isDOMElementAnEvent(e.target)||this.selectCell(e)},onCellDblClick(e){const t=new Date(this.data.startDate);t.setMinutes(this.vuecal.minutesAtCursor(e).minutes);const a=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-dblclick",a?{date:t,split:a}:t),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(e){e.stopPropagation(),e.preventDefault();const t=new Date(this.data.startDate),{cursorCoords:a,minutes:c}=this.vuecal.minutesAtCursor(e);t.setMinutes(c);const n=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-contextmenu",{date:t,...a,...n||{},e})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp<this.data.startDate.getTime()},isDisabled(){const{disableDays:e}=this.options,{isYearsOrYearView:t}=this.vuecal;return e.length&&e.includes(this.data.formattedDate)&&!t?!0:this.isBeforeMinDate||this.isAfterMaxDate},isSelected:{get(){let e=!1;const{selectedDate:t}=this.view;return this.view.id==="years"?e=t.getFullYear()===this.data.startDate.getFullYear():this.view.id==="year"?e=t.getFullYear()===this.data.startDate.getFullYear()&&t.getMonth()===this.data.startDate.getMonth():e=t.getTime()===this.data.startDate.getTime(),e},set(e){this.view.selectedDate=e,this.vuecal.$emit("update:selected-date",this.view.selectedDate)}},isWeekOrDayView(){return["week","day"].includes(this.view.id)},transitionDirection(){return this.vuecal.transitionDirection},specialHours(){return this.data.specialHours.map(e=>{let{from:t,to:a}=e;return t=Math.max(t,this.options.timeFrom),a=Math.min(a,this.options.timeTo),{...e,height:(a-t)*this.timeScale,top:(t-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:e,endDate:t}=this.data;let a=[];if(!(["years","year"].includes(this.view.id)&&!this.options.eventsCountOnYearView)){if(a=this.view.events.slice(0),this.view.id==="month"&&a.push(...this.view.outOfScopeEvents),a=a.filter(c=>this.utils.event.eventInRange(c,e,t)),this.options.showAllDayEvents&&this.view.id!=="month"&&(a=a.filter(c=>!!c.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:c,timeTo:n}=this.options;a=a.filter(r=>{const i=r.daysCount>1&&r.segments[this.data.formattedDate]||{},o=r.daysCount===1&&r.startTimeMinutes<n&&r.endTimeMinutes>c,l=r.daysCount>1&&i.startTimeMinutes<n&&i.endTimeMinutes>c,f=!1;return r.allDay||o||l||f})}this.options.time&&this.isWeekOrDayView&&!(this.options.showAllDayEvents&&this.allDay)&&a.sort((c,n)=>c.start<n.start?-1:1),this.cellSplits.length||this.$nextTick(this.checkCellOverlappingEvents)}return a},eventsCount(){return this.events.length},splits(){return this.cellSplits.map((e,t)=>{const a=this.events.filter(r=>r.split===e.id),[c,n]=this.utils.event.checkCellOverlappingEvents(a.filter(r=>!r.background&&!r.allDay),this.options);return{...e,overlaps:c,overlapsStreak:n,events:a}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:e,timeTo:t}=this.options;return this.data.today&&this.isWeekOrDayView&&e&&!this.allDay&&this.nowInMinutes<=t},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const e=this.nowInMinutes-this.options.timeFrom;return Math.round(e*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},qn1=bs(N92,[["render",S92]]),A92={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function T92(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex vuecal__all-day",style:s.normalizeStyle(a.cellOrSplitMinWidth&&{height:a.height})},[a.cellOrSplitMinWidth?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",A92,[s.createElementVNode("span",null,s.toDisplayString(a.label),1)])),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",style:s.normalizeStyle(a.cellOrSplitMinWidth?`min-width: ${a.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.cells,(o,l)=>(s.openBlock(),s.createBlock(i,{key:l,options:a.options,"edit-events":r.editEvents,data:o,"all-day":!0,"cell-width":a.options.hideWeekdays.length&&(r.vuecal.isWeekView||r.vuecal.isMonthView)&&r.vuecal.cellWidth,"min-timestamp":a.options.minTimestamp,"max-timestamp":a.options.maxTimestamp,"cell-splits":a.daySplits},{event:s.withCtx(({event:f,view:u})=>[s.renderSlot(e.$slots,"event",{view:u,event:f})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}const E92={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":qn1},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},D92=bs(E92,[["render",T92]]),P92=["lang"],O92={class:"default"},I92={key:0,class:"vuecal__flex vuecal__body",grow:""},B92=["onBlur","innerHTML"],R92=["innerHTML"],F92=["innerHTML"],$92={class:"vuecal__flex",row:"",grow:""},q92={key:0,class:"vuecal__time-column"},j92={class:"vuecal__time-cell-label"},U92={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},W92=["wrap","column"],Y92=["onBlur","innerHTML"],G92=["innerHTML"],Z92=["innerHTML"],X92=["wrap"],K92=["innerHTML"],Q92=["innerHTML"],J92={key:2,class:"vuecal__cell-events-count"},el2={key:3,class:"vuecal__no-event"},tl2=["onBlur","innerHTML"],al2=["innerHTML"],cl2={key:2,class:"vuecal__event-time"},nl2={key:0},rl2={key:1,class:"days-to-end"},il2=["innerHTML"],ol2={key:0,class:"vuecal__scrollbar-check"};function sl2(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-header"),o=s.resolveComponent("all-day-bar"),l=s.resolveComponent("weekdays-headings"),f=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal",r.cssClasses]),column:"",ref:"vuecal",lang:a.locale},[s.createVNode(i,{options:e.$props,"edit-events":r.editEvents,"view-props":{views:r.views,weekDaysInHeader:r.weekDaysInHeader},"week-days":r.weekDays,"has-splits":r.hasSplits,"day-splits":r.daySplits,"switch-to-narrower-view":r.switchToNarrowerView},s.createSlots({"arrow-prev":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-prev",{},()=>[t[0]||(t[0]=s.createTextVNode(" ")),t[1]||(t[1]=s.createElementVNode("i",{class:"angle"},null,-1)),t[2]||(t[2]=s.createTextVNode(" "))])]),"arrow-next":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-next",{},()=>[t[3]||(t[3]=s.createTextVNode(" ")),t[4]||(t[4]=s.createElementVNode("i",{class:"angle"},null,-1)),t[5]||(t[5]=s.createTextVNode(" "))])]),"today-button":s.withCtx(()=>[s.renderSlot(e.$slots,"today-button",{},()=>[s.createElementVNode("span",O92,s.toDisplayString(n.texts.today),1)])]),title:s.withCtx(()=>[s.renderSlot(e.$slots,"title",{title:r.viewTitle,view:n.view},()=>[s.createTextVNode(s.toDisplayString(r.viewTitle),1)])]),_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),a.hideBody?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",I92,[s.createVNode(s.Transition,{name:`slide-fade--${n.transitionDirection}`,appear:a.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:a.transitions?n.view.id:!1,column:""},[a.showAllDayEvents&&r.hasTimeColumn&&(!r.cellOrSplitMinWidth||r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:0},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,B92)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,R92)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,F92)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__bg",{vuecal__flex:!r.hasTimeColumn}]),column:""},[s.createElementVNode("div",$92,[r.hasTimeColumn?(s.openBlock(),s.createElementBlock("div",q92,[a.showAllDayEvents&&r.cellOrSplitMinWidth&&!(r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__all-day-text",style:s.normalizeStyle({height:r.allDayBar.height})},[s.createElementVNode("span",null,s.toDisplayString(n.texts.allDay),1)],4)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.timeCells,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:"vuecal__time-cell",key:d,style:s.normalizeStyle(`height: ${a.timeCellHeight}px`)},[s.renderSlot(e.$slots,"time-cell",{hours:u.hours,minutes:u.minutes},()=>[t[6]||(t[6]=s.createElementVNode("span",{class:"vuecal__time-cell-line"},null,-1)),s.createElementVNode("span",j92,s.toDisplayString(u.label),1)])],4))),128))])):s.createCommentVNode("",!0),a.showWeekNumbers&&r.isMonthView?(s.openBlock(),s.createElementBlock("div",U92,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(6,u=>s.createElementVNode("div",{class:"vuecal__flex vuecal__week-number-cell",key:u,grow:""},[s.renderSlot(e.$slots,"week-number-cell",{week:r.getWeekNumber(u-1)},()=>[s.createTextVNode(s.toDisplayString(r.getWeekNumber(u-1)),1)])])),64))])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${n.view.id}-view`]),grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,column:!!r.cellOrSplitMinWidth},[r.cellOrSplitMinWidth&&r.isWeekView?(s.openBlock(),s.createBlock(l,{key:0,"transition-direction":n.transitionDirection,"week-days":r.weekDays,"switch-to-narrower-view":r.switchToNarrowerView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):r.hasSplits&&a.stickySplitLabels&&a.minSplitWidth?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.daySplits,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",u.class||!1]),key:d},[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id},()=>[s.createTextVNode(s.toDisplayString(u.label),1)])],2))),128))],4)):s.createCommentVNode("",!0),a.showAllDayEvents&&r.hasTimeColumn&&(r.isWeekView&&r.cellOrSplitMinWidth||r.isDayView&&r.hasSplits&&a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:2},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,Y92)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,G92)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,Z92)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"vuecal__flex",ref:u=>n.cellsEl=u,grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.viewCells,(u,d)=>(s.openBlock(),s.createBlock(f,{key:d,options:e.$props,"edit-events":r.editEvents,data:u,"cell-width":a.hideWeekdays.length&&(r.isWeekView||r.isMonthView)&&r.cellWidth,"min-timestamp":r.minTimestamp,"max-timestamp":r.maxTimestamp,"cell-splits":r.hasSplits&&r.daySplits||[]},{"cell-content":s.withCtx(({events:h,split:p,selectCell:v})=>[s.renderSlot(e.$slots,"cell-content",{cell:u,view:n.view,goNarrower:v,events:h},()=>[p&&!a.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",{key:0,class:"split-label",innerHTML:p.label},null,8,K92)):s.createCommentVNode("",!0),u.content?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__cell-date",innerHTML:u.content},null,8,Q92)):s.createCommentVNode("",!0),(r.isMonthView&&!a.eventsOnMonthView||r.isYearsOrYearView&&a.eventsCountOnYearView)&&h.length?(s.openBlock(),s.createElementBlock("div",J92,[s.renderSlot(e.$slots,"events-count",{view:n.view,events:h},()=>[s.createTextVNode(s.toDisplayString(h.length),1)])])):s.createCommentVNode("",!0),!r.cellOrSplitHasEvents(h,p)&&r.isWeekOrDayView?(s.openBlock(),s.createElementBlock("div",el2,[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])])):s.createCommentVNode("",!0)])]),event:s.withCtx(({event:h,view:p})=>[s.renderSlot(e.$slots,"event",{view:p,event:h},()=>[r.editEvents.title&&h.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:v=>r.onEventTitleBlur(v,h),innerHTML:h.title},null,40,tl2)):h.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:h.title},null,8,al2)):s.createCommentVNode("",!0),a.time&&!h.allDay&&!(r.isMonthView&&(h.allDay||a.showAllDayEvents==="short"))&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",cl2,[s.createTextVNode(s.toDisplayString(n.utils.date.formatTime(h.start,r.TimeFormat)),1),h.endTimeMinutes?(s.openBlock(),s.createElementBlock("span",nl2," - "+s.toDisplayString(n.utils.date.formatTime(h.end,r.TimeFormat,null,!0)),1)):s.createCommentVNode("",!0),h.daysCount>1&&(h.segments[u.formattedDate]||{}).isFirstDay?(s.openBlock(),s.createElementBlock("small",rl2," +"+s.toDisplayString(h.daysCount-1)+s.toDisplayString((n.texts.day[0]||"").toLowerCase()),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),h.content&&!(r.isMonthView&&h.allDay&&a.showAllDayEvents==="short")&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:3,class:"vuecal__event-content",innerHTML:h.content},null,8,il2)):s.createCommentVNode("",!0)])]),"no-event":s.withCtx(()=>[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,X92)],10,W92)])],2)]))]),_:3},8,["name","appear"]),n.ready?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",ol2,t[7]||(t[7]=[s.createElementVNode("div",null,null,-1)])))]))],10,P92)}const Ws=24*60,AR={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},W31=["years","year","month","week","day"],Y31=new Zs2(AR),ll2={name:"vue-cal",components:{"vuecal-cell":qn1,"vuecal-header":k92,WeekdaysHeadings:$n1,AllDayBar:D92},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:Ws},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...AR},utils:{date:(this.disableDatePrototypes?Y31.removePrototypes():!1)||Y31,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(e){if(typeof this.locale=="object"){this.texts=Object.assign({},AR,e),this.utils.date.updateTexts(this.texts);return}const t=await Gs2(Object.assign({"./i18n/ar.json":()=>Promise.resolve().then(()=>require("./ar.es-490d67d4.cjs")),"./i18n/bg.json":()=>Promise.resolve().then(()=>require("./bg.es-bedb7f61.cjs")),"./i18n/bn.json":()=>Promise.resolve().then(()=>require("./bn.es-ae104b8b.cjs")),"./i18n/bs.json":()=>Promise.resolve().then(()=>require("./bs.es-a97484a8.cjs")),"./i18n/ca.json":()=>Promise.resolve().then(()=>require("./ca.es-b69e2d93.cjs")),"./i18n/cs.json":()=>Promise.resolve().then(()=>require("./cs.es-8ab45a8b.cjs")),"./i18n/da.json":()=>Promise.resolve().then(()=>require("./da.es-20dd8f16.cjs")),"./i18n/de.json":()=>Promise.resolve().then(()=>require("./de.es-ce7009ce.cjs")),"./i18n/el.json":()=>Promise.resolve().then(()=>require("./el.es-81fc2434.cjs")),"./i18n/en.json":()=>Promise.resolve().then(()=>require("./en.es-4459b8a4.cjs")),"./i18n/es.json":()=>Promise.resolve().then(()=>require("./es.es-647dceed.cjs")),"./i18n/et.json":()=>Promise.resolve().then(()=>require("./et.es-482e868f.cjs")),"./i18n/fa.json":()=>Promise.resolve().then(()=>require("./fa.es-2c02433c.cjs")),"./i18n/fi.json":()=>Promise.resolve().then(()=>require("./fi.es-ef678961.cjs")),"./i18n/fr.json":()=>Promise.resolve().then(()=>require("./fr.es-5a023084.cjs")),"./i18n/he.json":()=>Promise.resolve().then(()=>require("./he.es-be02cfd4.cjs")),"./i18n/hr.json":()=>Promise.resolve().then(()=>require("./hr.es-5c9e8373.cjs")),"./i18n/hu.json":()=>Promise.resolve().then(()=>require("./hu.es-642f7e7a.cjs")),"./i18n/id.json":()=>Promise.resolve().then(()=>require("./id.es-ebe22526.cjs")),"./i18n/is.json":()=>Promise.resolve().then(()=>require("./is.es-960071df.cjs")),"./i18n/it.json":()=>Promise.resolve().then(()=>require("./it.es-f0d29f01.cjs")),"./i18n/ja.json":()=>Promise.resolve().then(()=>require("./ja.es-25a3e4cf.cjs")),"./i18n/ka.json":()=>Promise.resolve().then(()=>require("./ka.es-92c6a6ae.cjs")),"./i18n/ko.json":()=>Promise.resolve().then(()=>require("./ko.es-204ba1aa.cjs")),"./i18n/lt.json":()=>Promise.resolve().then(()=>require("./lt.es-afedf093.cjs")),"./i18n/mn.json":()=>Promise.resolve().then(()=>require("./mn.es-ced8667c.cjs")),"./i18n/nl.json":()=>Promise.resolve().then(()=>require("./nl.es-cd172132.cjs")),"./i18n/no.json":()=>Promise.resolve().then(()=>require("./no.es-d5134e5f.cjs")),"./i18n/pl.json":()=>Promise.resolve().then(()=>require("./pl.es-9f065e71.cjs")),"./i18n/pt-br.json":()=>Promise.resolve().then(()=>require("./pt-br.es-e0a38ecf.cjs")),"./i18n/pt-pt.json":()=>Promise.resolve().then(()=>require("./pt-pt.es-e1c57c62.cjs")),"./i18n/ro.json":()=>Promise.resolve().then(()=>require("./ro.es-a7e3858d.cjs")),"./i18n/ru.json":()=>Promise.resolve().then(()=>require("./ru.es-d26a8889.cjs")),"./i18n/sk.json":()=>Promise.resolve().then(()=>require("./sk.es-bfa34829.cjs")),"./i18n/sl.json":()=>Promise.resolve().then(()=>require("./sl.es-c79ab9b5.cjs")),"./i18n/sq.json":()=>Promise.resolve().then(()=>require("./sq.es-a902c2a8.cjs")),"./i18n/sr.json":()=>Promise.resolve().then(()=>require("./sr.es-2e429690.cjs")),"./i18n/sv.json":()=>Promise.resolve().then(()=>require("./sv.es-59b30e12.cjs")),"./i18n/tr.json":()=>Promise.resolve().then(()=>require("./tr.es-11b49d30.cjs")),"./i18n/uk.json":()=>Promise.resolve().then(()=>require("./uk.es-cfb0b466.cjs")),"./i18n/vi.json":()=>Promise.resolve().then(()=>require("./vi.es-daedaaa5.cjs")),"./i18n/zh-cn.json":()=>Promise.resolve().then(()=>require("./zh-cn.es-efbc1299.cjs")),"./i18n/zh-hk.json":()=>Promise.resolve().then(()=>require("./zh-hk.es-b6a4db4a.cjs"))}),`./i18n/${e}.json`,3);this.texts=Object.assign({},AR,t),this.utils.date.updateTexts(this.texts)},loadDragAndDrop(){Promise.resolve().then(()=>require("./drag-and-drop.es-cdb95efc.cjs")).then(e=>{const{DragAndDrop:t}=e;this.modules.dnd=new t(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(e){return W31.includes(e)||(console.error(`Vue Cal: invalid active-view parameter provided: "${e}".
8632
8632
  A valid view must be one of: ${W31.join(", ")}.`),e="week"),this.enabledViews.includes(e)||(console.warn(`Vue Cal: the provided active-view "${e}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),e=this.enabledViews[0]),e},switchToNarrowerView(e=null){this.transitionDirection="right";const t=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];t&&this.switchView(t,e)},switchView(e,t=null,a=!1){e=this.validateView(e);const c=this.utils.date,n=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&a){if(this.view.id===e)return;const o=this.enabledViews;this.transitionDirection=o.indexOf(this.view.id)>o.indexOf(e)?"left":"right"}const r=this.view.id;switch(this.view.events=[],this.view.id=e,this.view.firstCellDate=null,this.view.lastCellDate=null,t||(t=this.view.selectedDate||this.view.startDate),e){case"years":{this.view.startDate=new Date(Math.floor(t.getFullYear()/25)*25||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break}case"year":{this.view.startDate=new Date(t.getFullYear(),0,1),this.view.endDate=new Date(t.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break}case"month":{this.view.startDate=new Date(t.getFullYear(),t.getMonth(),1),this.view.endDate=new Date(t.getFullYear(),t.getMonth()+1,1),this.view.endDate.setSeconds(-1);let o=new Date(this.view.startDate);if(o.getDay()!==(this.startWeekOnSunday?0:1)&&(o=c.getPreviousFirstDayOfWeek(o,this.startWeekOnSunday)),this.view.firstCellDate=o,this.view.lastCellDate=c.addDays(o,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const l=this.view.firstCellDate.getDay()===6&&!this.startWeekOnSunday?2:1;this.view.firstCellDate=c.addDays(this.view.firstCellDate,l)}if([0,6].includes(this.view.startDate.getDay())){const l=this.view.startDate.getDay()===6?2:1;this.view.startDate=c.addDays(this.view.startDate,l)}if([0,6].includes(this.view.lastCellDate.getDay())){const l=this.view.lastCellDate.getDay()===0&&!this.startWeekOnSunday?2:1;this.view.lastCellDate=c.subtractDays(this.view.lastCellDate,l)}if([0,6].includes(this.view.endDate.getDay())){const l=this.view.endDate.getDay()===0?2:1;this.view.endDate=c.subtractDays(this.view.endDate,l)}}break}case"week":{t=c.getPreviousFirstDayOfWeek(t,this.startWeekOnSunday);const o=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?c.addDays(t,1):t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=c.addDays(t,o),this.view.endDate.setSeconds(-1);break}case"day":{this.view.startDate=t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(t),this.view.endDate.setHours(23,59,59,0);break}}this.addEventsToView();const i=this.view.startDate&&this.view.startDate.getTime();if(!(r===e&&i===n)&&(this.$emit("update:activeView",e),this.ready)){const o=this.view.startDate,l={view:e,startDate:o,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:c.getWeek(this.startWeekOnSunday?c.addDays(o,1):o)}:{}};this.$emit("view-change",l)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(e=!0){const t=this.utils.date;this.transitionDirection=e?"right":"left";const a=e?1:-1;let c=null;const{startDate:n,id:r}=this.view;switch(r){case"years":c=new Date(n.getFullYear()+25*a,0,1);break;case"year":c=new Date(n.getFullYear()+1*a,1,1);break;case"month":c=new Date(n.getFullYear(),n.getMonth()+1*a,1);break;case"week":c=t[e?"addDays":"subtractDays"](t.getPreviousFirstDayOfWeek(n,this.startWeekOnSunday),7);break;case"day":c=t[e?"addDays":"subtractDays"](n,1);const i=c.getDay(),o=this.startWeekOnSunday?i:(i||7)-1;if(this.weekDays[o].hide){const f=this.weekDays.map((d,h)=>({...d,i:h}));let u=0;e?([...f.slice(o),...f].find(d=>(u++,!d.hide)).i,u--):[...f,...f.slice(0,o)].reverse().find(d=>(u++,!d.hide)).i,c=t[e?"addDays":"subtractDays"](c,u)}break}c&&this.switchView(r,c)},addEventsToView(e=[]){const t=this.utils.event,{startDate:a,endDate:c,firstCellDate:n,lastCellDate:r}=this.view;if(e.length||(this.view.events=[]),e=e.length?e:[...this.mutableEvents],!e||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let i=e.filter(o=>t.eventInRange(o,a,c));!this.isYearsOrYearView&&!(this.isMonthView&&!this.eventsOnMonthView)&&(i=i.map(o=>o.daysCount>1?t.createEventSegments(o,n||a,r||c):o)),this.view.events.push(...i),this.isMonthView&&(this.view.outOfScopeEvents=[],e.forEach(o=>{(t.eventInRange(o,n,a)||t.eventInRange(o,c,r))&&(this.view.events.some(l=>l._eid===o._eid)||this.view.outOfScopeEvents.push(o))}))},findAncestor(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e},isDOMElementAnEvent(e){return e.classList.contains("vuecal__event")||this.findAncestor(e,"vuecal__event")},onMouseMove(e){const{resizeAnEvent:t,dragAnEvent:a,dragCreateAnEvent:c}=this.domEvents;t._eid===null&&a._eid===null&&!c.start||(e.preventDefault(),t._eid?this.eventResizing(e):this.dragToCreateEvent&&c.start&&this.eventDragCreation(e))},onMouseUp(e){const{focusAnEvent:t,resizeAnEvent:a,clickHoldAnEvent:c,clickHoldACell:n,dragCreateAnEvent:r}=this.domEvents,{_eid:i}=c,{_eid:o}=a;let l=!1;const{event:f,start:u}=r,d=this.isDOMElementAnEvent(e.target),h=t.mousedUp;if(t.mousedUp=!1,d&&(this.domEvents.cancelClickEventCreation=!0),n.eventCreated)return;if(o){const{originalEnd:v,originalEndTimeMinutes:m,endTimeMinutes:y}=a,g=this.view.events.find(M=>M._eid===a._eid);if(l=y&&y!==m,g&&g.end.getTime()!==v.getTime()){const M=this.mutableEvents.find(b=>b._eid===a._eid);M.endTimeMinutes=g.endTimeMinutes,M.end=g.end;const x=this.cleanupEvent(g),k={...this.cleanupEvent(g),end:v,endTimeMinutes:g.originalEndTimeMinutes};this.$emit("event-duration-change",{event:x,oldDate:a.originalEnd,originalEvent:k}),this.$emit("event-change",{event:x,originalEvent:k})}g&&(g.resizing=!1),a._eid=null,a.start=null,a.split=null,a.segment=null,a.originalEndTimeMinutes=null,a.originalEnd=null,a.endTimeMinutes=null,a.startCell=null,a.endCell=null}else u&&(f&&(this.emitWithEvent("event-drag-create",f),r.event.resizing=!1),r.start=null,r.split=null,r.event=null);!d&&!o&&this.unfocusEvent(),c.timeoutId&&!i&&(clearTimeout(c.timeoutId),c.timeoutId=null),n.timeoutId&&(clearTimeout(n.timeoutId),n.timeoutId=null);const p=typeof this.onEventClick=="function";if(h&&!l&&!i&&!f&&p){let v=this.view.events.find(m=>m._eid===t._eid);return!v&&this.isMonthView&&(v=this.view.outOfScopeEvents.find(m=>m._eid===t._eid)),v&&this.onEventClick(v,e)}},onKeyUp(e){e.keyCode===27&&this.cancelDelete()},eventResizing(e){const{resizeAnEvent:t}=this.domEvents,a=this.view.events.find(f=>f._eid===t._eid)||{segments:{}},{minutes:c,cursorCoords:n}=this.minutesAtCursor(e),r=a.segments&&a.segments[t.segment],{date:i,event:o}=this.utils,l=Math.max(c,this.timeFrom+1,(r||a).startTimeMinutes+1);if(a.endTimeMinutes=t.endTimeMinutes=l,this.snapToTime){const f=a.endTimeMinutes+this.snapToTime/2;a.endTimeMinutes=f-f%this.snapToTime}if(r&&(r.endTimeMinutes=a.endTimeMinutes),a.end.setHours(0,a.endTimeMinutes,a.endTimeMinutes===Ws?-1:0,0),this.resizeX&&this.isWeekView){a.daysCount=i.countDays(a.start,a.end);const f=this.cellsEl,u=f.offsetWidth/f.childElementCount,d=Math.floor(n.x/u);if(t.startCell===null&&(t.startCell=d-(a.daysCount-1)),t.endCell!==d){t.endCell=d;const h=i.addDays(a.start,d-t.startCell),p=Math.max(i.countDays(a.start,h),1);if(p!==a.daysCount){let v=null;p>a.daysCount?v=o.addEventSegment(a):v=o.removeEventSegment(a),t.segment=v,a.endTimeMinutes+=.001}}}this.$emit("event-resizing",{_eid:a._eid,end:a.end,endTimeMinutes:a.endTimeMinutes})},eventDragCreation(e){const{dragCreateAnEvent:t}=this.domEvents,{start:a,startCursorY:c,split:n}=t,r=new Date(a),{minutes:i,cursorCoords:{y:o}}=this.minutesAtCursor(e);if(!(!t.event&&Math.abs(c-o)<this.dragToCreateThreshold))if(t.event){if(r.setHours(0,i,i===Ws?-1:0,0),this.snapToTime){let u=r.getHours()*60+r.getMinutes();const d=u+this.snapToTime/2;u=d-d%this.snapToTime,r.setHours(0,u,0,0)}const l=a<r,{event:f}=t;f.start=l?a:r,f.end=l?r:a,f.startTimeMinutes=f.start.getHours()*60+f.start.getMinutes(),f.endTimeMinutes=f.end.getHours()*60+f.end.getMinutes()}else{if(t.event=this.utils.event.createAnEvent(a,1,{split:n}),!t.event){t.start=null,t.split=null,t.event=null;return}t.event.resizing=!0}},unfocusEvent(){const{focusAnEvent:e,clickHoldAnEvent:t}=this.domEvents,a=this.view.events.find(c=>c._eid===(e._eid||t._eid));e._eid=null,t._eid=null,a&&(a.focused=!1,a.deleting=!1)},cancelDelete(){const{clickHoldAnEvent:e}=this.domEvents;if(e._eid){const t=this.view.events.find(a=>a._eid===e._eid);t&&(t.deleting=!1),e._eid=null,e.timeoutId=null}},onEventTitleBlur(e,t){if(t.title===e.target.innerHTML)return;const a=t.title;t.title=e.target.innerHTML;const c=this.cleanupEvent(t);this.$emit("event-title-change",{event:c,oldTitle:a}),this.$emit("event-change",{event:c,originalEvent:{...c,title:a}})},updateMutableEvents(){const e=this.utils.date;this.mutableEvents=[],this.events.forEach(t=>{const a=typeof t.start=="string"?e.stringToDate(t.start):t.start,c=e.formatDateLite(a),n=e.dateToMinutes(a);let r=null;typeof t.end=="string"&&t.end.includes("24:00")?(r=new Date(t.end.replace(" 24:00","")),r.setHours(23,59,59,0)):r=typeof t.end=="string"?e.stringToDate(t.end):t.end;let i=e.formatDateLite(r),o=e.dateToMinutes(r);(!o||o===Ws)&&(!this.time||typeof t.end=="string"&&t.end.length===10?r.setHours(23,59,59,0):r.setSeconds(r.getSeconds()-1),i=e.formatDateLite(r),o=Ws);const l=c!==i;t=Object.assign({...this.utils.event.eventDefaults},t,{_eid:`${this._.uid}_${this.eventIdIncrement++}`,segments:l?{}:null,start:a,startTimeMinutes:n,end:r,endTimeMinutes:o,daysCount:l?e.countDays(a,r):1,class:t.class}),this.mutableEvents.push(t)})},minutesAtCursor(e){return this.utils.cell.minutesAtCursor(e)},createEvent(e,t,a={}){return this.utils.event.createAnEvent(e,t,a)},cleanupEvent(e){return e={...e},["segments","deletable","deleting","titleEditable","resizable","resizing","draggable","dragging","draggingStatic","focused"].forEach(a=>{a in e&&delete e[a]}),e.repeat||delete e.repeat,e},emitWithEvent(e,t){this.$emit(e,this.cleanupEvent(t))},updateSelectedDate(e){if(e&&typeof e=="string"?e=this.utils.date.stringToDate(e):e=new Date(e),e&&e instanceof Date){const{selectedDate:t}=this.view;t&&(this.transitionDirection=t.getTime()>e.getTime()?"left":"right"),e.setHours(0,0,0,0),(!t||t.getTime()!==e.getTime())&&(this.view.selectedDate=e),this.switchView(this.view.id)}this.$emit("update:selected-date",this.view.selectedDate)},getWeekNumber(e){const t=this.utils.date,c=this.firstCellDateWeekNumber+e,n=this.startWeekOnSunday?1:0;return c>52?t.getWeek(t.addDays(this.view.firstCellDate,7*e+n)):c},timeTick(){this.now=new Date,this.timeTickerIds[1]=setTimeout(this.timeTick,60*1e3)},updateDateTexts(){this.utils.date.updateTexts(this.texts)},alignWithScrollbar(){if(document.getElementById("vuecal-align-with-scrollbar"))return;const e=this.$refs.vuecal.getElementsByClassName("vuecal__scrollbar-check")[0],t=e.offsetWidth-e.children[0].offsetWidth;if(t){const a=document.createElement("style");a.id="vuecal-align-with-scrollbar",a.type="text/css",a.innerHTML=`.vuecal--view-with-time .vuecal__weekdays-headings,.vuecal--view-with-time .vuecal__all-day {padding-right: ${t}px}`,document.head.appendChild(a)}},cellOrSplitHasEvents(e,t=null){return e.length&&(!t&&e.length||t&&e.some(a=>a.split===t.id))}},created(){this.utils.cell=new Ks2(this),this.utils.event=new Js2(this,this.utils.date),this.loadLocale(this.locale),this.editEvents.drag&&this.loadDragAndDrop(),this.updateMutableEvents(this.events),this.view.id=this.currentView,this.selectedDate?this.updateSelectedDate(this.selectedDate):(this.view.selectedDate=new Date,this.switchView(this.currentView)),this.time&&this.watchRealTime&&(this.timeTickerIds[0]=setTimeout(this.timeTick,(60-this.now.getSeconds())*1e3))},mounted(){const e=this.utils.date,t="ontouchstart"in window,{resize:a,drag:c,create:n,delete:r,title:i}=this.editEvents,o=this.onEventClick&&typeof this.onEventClick=="function";(a||c||n||r||i||o)&&window.addEventListener(t?"touchend":"mouseup",this.onMouseUp),(a||c||n&&this.dragToCreateEvent)&&window.addEventListener(t?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),i&&window.addEventListener("keyup",this.onKeyUp),t&&(this.$refs.vuecal.oncontextmenu=function(u){u.preventDefault(),u.stopPropagation()}),this.hideBody||this.alignWithScrollbar();const l=this.view.startDate,f={view:this.view.id,startDate:l,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:e.getWeek(this.startWeekOnSunday?e.addDays(l,1):l)}:{}};this.$emit("ready",f),this.ready=!0},beforeUnmount(){const e="ontouchstart"in window;window.removeEventListener(e?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),window.removeEventListener(e?"touchend":"mouseup",this.onMouseUp),window.removeEventListener("keyup",this.onKeyUp),this.timeTickerIds[0]&&clearTimeout(this.timeTickerIds[0]),this.timeTickerIds[1]&&clearTimeout(this.timeTickerIds[1]),this.timeTickerIds=[null,null]},computed:{editEvents(){return this.editableEvents&&typeof this.editableEvents=="object"?{title:!!this.editableEvents.title,drag:!!this.editableEvents.drag,resize:!!this.editableEvents.resize,create:!!this.editableEvents.create,delete:!!this.editableEvents.delete}:{title:!!this.editableEvents,drag:!!this.editableEvents,resize:!!this.editableEvents,create:!!this.editableEvents,delete:!!this.editableEvents}},views(){return{years:{label:this.texts.years,enabled:!this.disableViews.includes("years")},year:{label:this.texts.year,enabled:!this.disableViews.includes("year")},month:{label:this.texts.month,enabled:!this.disableViews.includes("month")},week:{label:this.texts.week,enabled:!this.disableViews.includes("week")},day:{label:this.texts.day,enabled:!this.disableViews.includes("day")}}},currentView(){return this.validateView(this.activeView)},enabledViews(){return Object.keys(this.views).filter(e=>this.views[e].enabled)},hasTimeColumn(){return this.time&&this.isWeekOrDayView},isShortMonthView(){return this.isMonthView&&this.eventsOnMonthView==="short"},firstCellDateWeekNumber(){const e=this.utils.date,t=this.view.firstCellDate;return e.getWeek(this.startWeekOnSunday?e.addDays(t,1):t)},timeCells(){const e=[];for(let t=this.timeFrom,a=this.timeTo;t<a;t+=this.timeStep)e.push({hours:Math.floor(t/60),minutes:t%60,label:this.utils.date.formatTime(t,this.TimeFormat),value:t});return e},TimeFormat(){return this.timeFormat||(this.twelveHour?"h:mm{am}":"HH:mm")},daySplits(){return(this.splitDays.filter(e=>!e.hide)||[]).map((e,t)=>({...e,id:e.id||t+1}))},hasSplits(){return this.daySplits.length&&this.isWeekOrDayView},hasShortEvents(){return this.showAllDayEvents==="short"},cellOrSplitMinWidth(){let e=null;return this.hasSplits&&this.minSplitWidth?e=this.visibleDaysCount*this.minSplitWidth*this.daySplits.length:this.minCellWidth&&this.isWeekView&&(e=this.visibleDaysCount*this.minCellWidth),e},allDayBar(){let e=this.allDayBarHeight||null;return e&&!isNaN(e)&&(e+="px"),{cells:this.viewCells,options:this.$props,label:this.texts.allDay,shortEvents:this.hasShortEvents,daySplits:this.hasSplits&&this.daySplits||[],cellOrSplitMinWidth:this.cellOrSplitMinWidth,height:e}},minTimestamp(){let e=null;return this.minDate&&typeof this.minDate=="string"?e=this.utils.date.stringToDate(this.minDate):this.minDate&&this.minDate instanceof Date&&(e=this.minDate),e?e.getTime():null},maxTimestamp(){let e=null;return this.maxDate&&typeof this.maxDate=="string"?e=this.utils.date.stringToDate(this.maxDate):this.maxDate&&this.maxDate instanceof Date&&(e=this.maxDate),e?e.getTime():null},weekDays(){let{weekDays:e,weekDaysShort:t=[]}=this.texts;return e=e.slice(0).map((a,c)=>({label:a,...t.length?{short:t[c]}:{},hide:this.hideWeekends&&c>=5||this.hideWeekdays.length&&this.hideWeekdays.includes(c+1)})),this.startWeekOnSunday&&e.unshift(e.pop()),e},weekDaysInHeader(){return this.isMonthView||this.isWeekView&&!this.minCellWidth&&!(this.hasSplits&&this.minSplitWidth)},months(){return this.texts.months.map(e=>({label:e}))},specialDayHours(){return!this.specialHours||!Object.keys(this.specialHours).length?{}:Array(7).fill("").map((e,t)=>{let a=this.specialHours[t+1]||[];return Array.isArray(a)||(a=[a]),e=[],a.forEach(({from:c,to:n,class:r,label:i},o)=>{e[o]={day:t+1,from:[null,void 0].includes(c)?null:c*1,to:[null,void 0].includes(n)?null:n*1,class:r||"",label:i||""}}),e})},viewTitle(){const e=this.utils.date;let t="";const a=this.view.startDate,c=a.getFullYear(),n=a.getMonth();switch(this.view.id){case"years":{t=this.texts.years;break}case"year":{t=c;break}case"month":{t=`${this.months[n].label} ${c}`;break}case"week":{const r=this.view.endDate,i=a.getFullYear();let o=this.texts.months[a.getMonth()];this.xsmall&&(o=o.substring(0,3));let l=`${o} ${i}`;if(r.getMonth()!==a.getMonth()){const f=r.getFullYear();let u=this.texts.months[r.getMonth()];this.xsmall&&(u=u.substring(0,3)),i===f?l=`${o} - ${u} ${i}`:this.small?l=`${o.substring(0,3)} ${i} - ${u.substring(0,3)} ${f}`:l=`${o} ${i} - ${u} ${f}`}t=`${this.texts.week} ${e.getWeek(this.startWeekOnSunday?e.addDays(a,1):a)} (${l})`;break}case"day":{t=this.utils.date.formatDate(a,this.texts.dateFormat,this.texts);break}}return t},viewCells(){const e=this.utils.date;let t=[],a=null,c=!1;this.watchRealTime||(this.now=new Date);const n=this.now;switch(this.view.id){case"years":{a=this.view.startDate.getFullYear(),t=Array.apply(null,Array(25)).map((r,i)=>{const o=new Date(a+i,0,1),l=new Date(a+i+1,0,1);return l.setSeconds(-1),{startDate:o,formattedDate:e.formatDateLite(o),endDate:l,content:a+i,current:a+i===n.getFullYear()}});break}case"year":{a=this.view.startDate.getFullYear(),t=Array.apply(null,Array(12)).map((r,i)=>{const o=new Date(a,i,1),l=new Date(a,i+1,1);return l.setSeconds(-1),{startDate:o,formattedDate:e.formatDateLite(o),endDate:l,content:this.xsmall?this.months[i].label.substr(0,3):this.months[i].label,current:i===n.getMonth()&&a===n.getFullYear()}});break}case"month":{const r=this.view.startDate.getMonth(),i=new Date(this.view.firstCellDate);c=!1,t=Array.apply(null,Array(42)).map((o,l)=>{const f=e.addDays(i,l),u=new Date(f);u.setHours(23,59,59,0);const d=!c&&e.isToday(f)&&!c++;return{startDate:f,formattedDate:e.formatDateLite(f),endDate:u,content:f.getDate(),today:d,outOfScope:f.getMonth()!==r,class:`vuecal__cell--day${f.getDay()||7}`}}),(this.hideWeekends||this.hideWeekdays.length)&&(t=t.filter(o=>{const l=o.startDate.getDay()||7;return!(this.hideWeekends&&l>=6||this.hideWeekdays.length&&this.hideWeekdays.includes(l))}));break}case"week":{c=!1;const r=this.view.startDate,i=this.weekDays;t=i.map((o,l)=>{const f=e.addDays(r,this.startWeekOnSunday&&this.hideWeekends?l-1:l),u=new Date(f);u.setHours(23,59,59,0);const d=(f.getDay()||7)-1;return{startDate:f,formattedDate:e.formatDateLite(f),endDate:u,today:!c&&e.isToday(f)&&!c++,specialHours:this.specialDayHours[d]||[]}}).filter((o,l)=>!i[l].hide);break}case"day":{const r=this.view.startDate,i=new Date(this.view.startDate);i.setHours(23,59,59,0);const o=(r.getDay()||7)-1;t=[{startDate:r,formattedDate:e.formatDateLite(r),endDate:i,today:e.isToday(r),specialHours:this.specialDayHours[o]||[]}];break}}return t},visibleDaysCount(){return this.isDayView?1:7-this.weekDays.reduce((e,t)=>e+t.hide,0)},cellWidth(){return 100/this.visibleDaysCount},cssClasses(){const{resizeAnEvent:e,dragAnEvent:t,dragCreateAnEvent:a}=this.domEvents;return{[`vuecal--${this.view.id}-view`]:!0,[`vuecal--${this.locale}`]:this.locale,"vuecal--no-time":!this.time,"vuecal--view-with-time":this.hasTimeColumn,"vuecal--week-numbers":this.showWeekNumbers&&this.isMonthView,"vuecal--twelve-hour":this.twelveHour,"vuecal--click-to-navigate":this.clickToNavigate,"vuecal--hide-weekends":this.hideWeekends,"vuecal--split-days":this.hasSplits,"vuecal--sticky-split-labels":this.hasSplits&&this.stickySplitLabels,"vuecal--overflow-x":this.minCellWidth&&this.isWeekView||this.hasSplits&&this.minSplitWidth,"vuecal--small":this.small,"vuecal--xsmall":this.xsmall,"vuecal--resizing-event":e._eid,"vuecal--drag-creating-event":a.event,"vuecal--dragging-event":t._eid,"vuecal--events-on-month-view":this.eventsOnMonthView,"vuecal--short-events":this.isMonthView&&this.eventsOnMonthView==="short","vuecal--has-touch":typeof window<"u"&&"ontouchstart"in window}},isYearsOrYearView(){return["years","year"].includes(this.view.id)},isYearsView(){return this.view.id==="years"},isYearView(){return this.view.id==="year"},isMonthView(){return this.view.id==="month"},isWeekOrDayView(){return["week","day"].includes(this.view.id)},isWeekView(){return this.view.id==="week"},isDayView(){return this.view.id==="day"}},watch:{events:{handler(e,t){this.updateMutableEvents(e),this.addEventsToView()},deep:!0},locale(e){this.loadLocale(e)},selectedDate(e){this.updateSelectedDate(e)},activeView(e){this.switchView(e)}}},fl2=bs(ll2,[["render",sl2]]);function G31(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,c)}return a}function Y8(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?G31(Object(a),!0).forEach(function(c){ul2(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):G31(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function ul2(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Z31(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((a,c)=>(t.includes(c)||(a[c]=s.unref(e[c])),a),{})}function xF(e){return typeof e=="function"}function dl2(e){return s.isReactive(e)||s.isReadonly(e)}function jn1(e,t,a){let c=e;const n=t.split(".");for(let r=0;r<n.length;r++){if(!c[n[r]])return a;c=c[n[r]]}return c}function mU(e,t,a){return s.computed(()=>e.some(c=>jn1(t,c,{[a]:!1})[a]))}function X31(e,t,a){return s.computed(()=>e.reduce((c,n)=>{const r=jn1(t,n,{[a]:!1})[a]||[];return c.concat(r)},[]))}function Un1(e,t,a,c){return e.call(c,s.unref(t),s.unref(a),c)}function Wn1(e){return e.$valid!==void 0?!e.$valid:!e}function hl2(e,t,a,c,n,r,i){let{$lazy:o,$rewardEarly:l}=n,f=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],u=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,h=arguments.length>10?arguments[10]:void 0;const p=s.ref(!!c.value),v=s.ref(0);a.value=!1;const m=s.watch([t,c].concat(f,h),()=>{if(o&&!c.value||l&&!d.value&&!a.value)return;let y;try{y=Un1(e,t,u,i)}catch(g){y=Promise.reject(g)}v.value++,a.value=!!v.value,p.value=!1,Promise.resolve(y).then(g=>{v.value--,a.value=!!v.value,r.value=g,p.value=Wn1(g)}).catch(g=>{v.value--,a.value=!!v.value,r.value=g,p.value=!0})},{immediate:!0,deep:typeof t=="object"});return{$invalid:p,$unwatch:m}}function pl2(e,t,a,c,n,r,i,o){let{$lazy:l,$rewardEarly:f}=c;const u=()=>({}),d=s.computed(()=>{if(l&&!a.value||f&&!o.value)return!1;let h=!0;try{const p=Un1(e,t,i,r);n.value=p,h=Wn1(p)}catch(p){n.value=p}return h});return{$unwatch:u,$invalid:d}}function ml2(e,t,a,c,n,r,i,o,l,f,u){const d=s.ref(!1),h=e.$params||{},p=s.ref(null);let v,m;e.$async?{$invalid:v,$unwatch:m}=hl2(e.$validator,t,d,a,c,p,n,e.$watchTargets,l,f,u):{$invalid:v,$unwatch:m}=pl2(e.$validator,t,a,c,p,n,l,f);const y=e.$message;return{$message:xF(y)?s.computed(()=>y(Z31({$pending:d,$invalid:v,$params:Z31(h),$model:t,$response:p,$validator:r,$propertyPath:o,$property:i}))):y||"",$params:h,$pending:d,$invalid:v,$response:p,$unwatch:m}}function vl2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=s.unref(e),a=Object.keys(t),c={},n={},r={};let i=null;return a.forEach(o=>{const l=t[o];switch(!0){case xF(l.$validator):c[o]=l;break;case xF(l):c[o]={$validator:l};break;case o==="$validationGroups":i=l;break;case o.startsWith("$"):r[o]=l;break;default:n[o]=l}}),{rules:c,nestedValidators:n,config:r,validationGroups:i}}const yl2="__root";function gl2(e,t,a,c,n,r,i,o,l){const f=Object.keys(e),u=c.get(n,e),d=s.ref(!1),h=s.ref(!1),p=s.ref(0);if(u){if(!u.$partial)return u;u.$unwatch(),d.value=u.$dirty.value}const v={$dirty:d,$path:n,$touch:()=>{d.value||(d.value=!0)},$reset:()=>{d.value&&(d.value=!1)},$commit:()=>{}};return f.length?(f.forEach(m=>{v[m]=ml2(e[m],t,v.$dirty,r,i,m,a,n,l,h,p)}),v.$externalResults=s.computed(()=>o.value?[].concat(o.value).map((m,y)=>({$propertyPath:n,$property:a,$validator:"$externalResults",$uid:`${n}-externalResult-${y}`,$message:m,$params:{},$response:null,$pending:!1})):[]),v.$invalid=s.computed(()=>{const m=f.some(y=>s.unref(v[y].$invalid));return h.value=m,!!v.$externalResults.value.length||m}),v.$pending=s.computed(()=>f.some(m=>s.unref(v[m].$pending))),v.$error=s.computed(()=>v.$dirty.value?v.$pending.value||v.$invalid.value:!1),v.$silentErrors=s.computed(()=>f.filter(m=>s.unref(v[m].$invalid)).map(m=>{const y=v[m];return s.reactive({$propertyPath:n,$property:a,$validator:m,$uid:`${n}-${m}`,$message:y.$message,$params:y.$params,$response:y.$response,$pending:y.$pending})}).concat(v.$externalResults.value)),v.$errors=s.computed(()=>v.$dirty.value?v.$silentErrors.value:[]),v.$unwatch=()=>f.forEach(m=>{v[m].$unwatch()}),v.$commit=()=>{h.value=!0,p.value=Date.now()},c.set(n,e,v),v):(u&&c.set(n,e,v),v)}function Ml2(e,t,a,c,n,r,i){const o=Object.keys(e);return o.length?o.reduce((l,f)=>(l[f]=IY({validations:e[f],state:t,key:f,parentKey:a,resultsCache:c,globalConfig:n,instance:r,externalResults:i}),l),{}):{}}function kl2(e,t,a){const c=s.computed(()=>[t,a].filter(v=>v).reduce((v,m)=>v.concat(Object.values(s.unref(m))),[])),n=s.computed({get(){return e.$dirty.value||(c.value.length?c.value.every(v=>v.$dirty):!1)},set(v){e.$dirty.value=v}}),r=s.computed(()=>{const v=s.unref(e.$silentErrors)||[],m=c.value.filter(y=>(s.unref(y).$silentErrors||[]).length).reduce((y,g)=>y.concat(...g.$silentErrors),[]);return v.concat(m)}),i=s.computed(()=>{const v=s.unref(e.$errors)||[],m=c.value.filter(y=>(s.unref(y).$errors||[]).length).reduce((y,g)=>y.concat(...g.$errors),[]);return v.concat(m)}),o=s.computed(()=>c.value.some(v=>v.$invalid)||s.unref(e.$invalid)||!1),l=s.computed(()=>c.value.some(v=>s.unref(v.$pending))||s.unref(e.$pending)||!1),f=s.computed(()=>c.value.some(v=>v.$dirty)||c.value.some(v=>v.$anyDirty)||n.value),u=s.computed(()=>n.value?l.value||o.value:!1),d=()=>{e.$touch(),c.value.forEach(v=>{v.$touch()})},h=()=>{e.$commit(),c.value.forEach(v=>{v.$commit()})},p=()=>{e.$reset(),c.value.forEach(v=>{v.$reset()})};return c.value.length&&c.value.every(v=>v.$dirty)&&d(),{$dirty:n,$errors:i,$invalid:o,$anyDirty:f,$error:u,$pending:l,$touch:d,$reset:p,$silentErrors:r,$commit:h}}function IY(e){let{validations:t,state:a,key:c,parentKey:n,childResults:r,resultsCache:i,globalConfig:o={},instance:l,externalResults:f}=e;const u=n?`${n}.${c}`:c,{rules:d,nestedValidators:h,config:p,validationGroups:v}=vl2(t),m=Y8(Y8({},o),p),y=c?s.computed(()=>{const W=s.unref(a);return W?s.unref(W[c]):void 0}):a,g=Y8({},s.unref(f)||{}),M=s.computed(()=>{const W=s.unref(f);return c?W?s.unref(W[c]):void 0:W}),x=gl2(d,y,c,i,u,m,l,M,a),k=Ml2(h,y,u,i,m,l,M),b={};v&&Object.entries(v).forEach(W=>{let[O,E]=W;b[O]={$invalid:mU(E,k,"$invalid"),$error:mU(E,k,"$error"),$pending:mU(E,k,"$pending"),$errors:X31(E,k,"$errors"),$silentErrors:X31(E,k,"$silentErrors")}});const{$dirty:_,$errors:C,$invalid:H,$anyDirty:V,$error:N,$pending:L,$touch:w,$reset:P,$silentErrors:j,$commit:T}=kl2(x,k,r),B=c?s.computed({get:()=>s.unref(y),set:W=>{_.value=!0;const O=s.unref(a),E=s.unref(f);E&&(E[c]=g[c]),s.isRef(O[c])?O[c].value=W:O[c]=W}}):null;c&&m.$autoDirty&&s.watch(y,()=>{_.value||w();const W=s.unref(f);W&&(W[c]=g[c])},{flush:"sync"});async function F(){return w(),m.$rewardEarly&&(T(),await s.nextTick()),await s.nextTick(),new Promise(W=>{if(!L.value)return W(!H.value);const O=s.watch(L,()=>{W(!H.value),O()})})}function K(W){return(r.value||{})[W]}function G(){s.isRef(f)?f.value=g:Object.keys(g).length===0?Object.keys(f).forEach(W=>{delete f[W]}):Object.assign(f,g)}return s.reactive(Y8(Y8(Y8({},x),{},{$model:B,$dirty:_,$error:N,$errors:C,$invalid:H,$anyDirty:V,$pending:L,$touch:w,$reset:P,$path:u||yl2,$silentErrors:j,$validate:F,$commit:T},r&&{$getResultsForChild:K,$clearExternalResults:G,$validationGroups:b}),k))}class xl2{constructor(){this.storage=new Map}set(t,a,c){this.storage.set(t,{rules:a,result:c})}checkRulesValidity(t,a,c){const n=Object.keys(c),r=Object.keys(a);return r.length!==n.length||!r.every(o=>n.includes(o))?!1:r.every(o=>a[o].$params?Object.keys(a[o].$params).every(l=>s.unref(c[o].$params[l])===s.unref(a[o].$params[l])):!0)}get(t,a){const c=this.storage.get(t);if(!c)return;const{rules:n,result:r}=c,i=this.checkRulesValidity(t,a,n),o=r.$unwatch?r.$unwatch:()=>({});return i?r:{$dirty:r.$dirty,$partial:!0,$unwatch:o}}}const TR={COLLECT_ALL:!0,COLLECT_NONE:!1},K31=Symbol("vuelidate#injectChildResults"),Q31=Symbol("vuelidate#removeChildResults");function bl2(e){let{$scope:t,instance:a}=e;const c={},n=s.ref([]),r=s.computed(()=>n.value.reduce((u,d)=>(u[d]=s.unref(c[d]),u),{}));function i(u,d){let{$registerAs:h,$scope:p,$stopPropagation:v}=d;v||t===TR.COLLECT_NONE||p===TR.COLLECT_NONE||t!==TR.COLLECT_ALL&&t!==p||(c[h]=u,n.value.push(h))}a.__vuelidateInjectInstances=[].concat(a.__vuelidateInjectInstances||[],i);function o(u){n.value=n.value.filter(d=>d!==u),delete c[u]}a.__vuelidateRemoveInstances=[].concat(a.__vuelidateRemoveInstances||[],o);const l=s.inject(K31,[]);s.provide(K31,a.__vuelidateInjectInstances);const f=s.inject(Q31,[]);return s.provide(Q31,a.__vuelidateRemoveInstances),{childResults:r,sendValidationResultsToParent:l,removeValidationResultsFromParent:f}}function Yn1(e){return new Proxy(e,{get(t,a){return typeof t[a]=="object"?Yn1(t[a]):s.computed(()=>t[a])}})}let J31=0;function Gn1(e,t){var a;let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(c=e,e=void 0,t=void 0);let{$registerAs:n,$scope:r=TR.COLLECT_ALL,$stopPropagation:i,$externalResults:o,currentVueInstance:l}=c;const f=l||((a=s.getCurrentInstance())===null||a===void 0?void 0:a.proxy),u=f?f.$options:{};n||(J31+=1,n=`_vuelidate_${J31}`);const d=s.ref({}),h=new xl2,{childResults:p,sendValidationResultsToParent:v,removeValidationResultsFromParent:m}=f?bl2({$scope:r,instance:f}):{childResults:s.ref({})};if(!e&&u.validations){const y=u.validations;t=s.ref({}),s.onBeforeMount(()=>{t.value=f,s.watch(()=>xF(y)?y.call(t.value,new Yn1(t.value)):y,g=>{d.value=IY({validations:g,state:t,childResults:p,resultsCache:h,globalConfig:c,instance:f,externalResults:o||f.vuelidateExternalResults})},{immediate:!0})}),c=u.validationsConfig||c}else{const y=s.isRef(e)||dl2(e)?e:s.reactive(e||{});s.watch(y,g=>{d.value=IY({validations:g,state:t,childResults:p,resultsCache:h,globalConfig:c,instance:f??{},externalResults:o})},{immediate:!0})}return f&&(v.forEach(y=>y(d,{$registerAs:n,$scope:r,$stopPropagation:i})),s.onBeforeUnmount(()=>m.forEach(y=>y(n)))),s.computed(()=>Y8(Y8({},s.unref(d.value)),p.value))}var zl2=Object.defineProperty,Cl2=(e,t,a)=>t in e?zl2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,A1=(e,t,a)=>(Cl2(e,typeof t!="symbol"?t+"":t,a),a);const _l2={first:{light:"#2a2a2a",dark:"#f5f5f5",contrast:{light:"#fcfcfc",dark:"#202020"}},second:{light:"#363636",dark:"#dfe0df",contrast:{light:"#f4f4f4",dark:"#2b2b2b"}},third:{light:"#484848",dark:"#cfcfcf",contrast:{light:"#e8e8e8",dark:"#262626"}},primary:{light:"#218c5a",dark:"#218c5a",contrast:{light:"#ffffff",dark:"#ffffff"}},secondary:{light:"#218c5a",dark:"#218c5a",contrast:{light:"#ffffff",dark:"#ffffff"}},success:{light:"#4caf50",dark:"#6bbf55",contrast:{light:"#ffffff",dark:"#ffffff"}},warning:{light:"#ff9800",dark:"#ff8f1f",contrast:{light:"#ffffff",dark:"#ffffff"}},danger:{light:"#f44336",dark:"#ff5e50",contrast:{light:"#ffffff",dark:"#ffffff"}},grey:{light:"#6d6d6d",dark:"#a3a3a3",contrast:{light:"#ffffff",dark:"#ffffff"}},red:{light:"#e91e63",dark:"#e64a77",contrast:{light:"#ffffff",dark:"#ffffff"}},purple:{light:"#9c27b0",dark:"#8e24aa",contrast:{light:"#ffffff",dark:"#ffffff"}},sky:{light:"#00acc1",dark:"#40c4ff",contrast:{light:"#ffffff",dark:"#ffffff"}},aqua:{light:"#00bcd4",dark:"#4db6ac",contrast:{light:"#ffffff",dark:"#ffffff"}},beige:{light:"#f4e1a1",dark:"#ffd54f",contrast:{light:"#ffffff",dark:"#ffffff"}},info:{light:"#039be5",dark:"#29b6f6",contrast:{light:"#ffffff",dark:"#ffffff"}},link:{light:"#1976d2",dark:"#2196f3",contrast:{light:"#ffffff",dark:"#ffffff"}},error:{light:"#d32f2f",dark:"#f44336",contrast:{light:"#ffffff",dark:"#ffffff"}},overlay:{light:"#00000080",dark:"#00000055",contrast:{light:"#ffffff",dark:"#ffffff"}}};var wl2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hl2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zn1={exports:{}};(function(e,t){(function(a,c){e.exports=c()})(self,()=>(()=>{var a={423:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.removeDuplicateItems=void 0,i.removeDuplicateItems=function(o,l="id"){return o.filter((f,u,d)=>u===d.findIndex(h=>h[l]===f[l]))}},621:function(r,i,o){var l=this&&this.__awaiter||function(d,h,p,v){return new(p||(p=Promise))(function(m,y){function g(k){try{x(v.next(k))}catch(b){y(b)}}function M(k){try{x(v.throw(k))}catch(b){y(b)}}function x(k){var b;k.done?m(k.value):(b=k.value,b instanceof p?b:new p(function(_){_(b)})).then(g,M)}x((v=v.apply(d,h||[])).next())})},f=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(i,"__esModule",{value:!0}),i.getCoinValueInUsd=void 0;const u=f(o(425));i.getCoinValueInUsd=function(d){return l(this,void 0,void 0,function*(){try{return d==="ARS"?1/(yield u.default.get("https://dolarapi.com/v1/dolares/blue")).data.venta:["BTC","ETH","LTC","USDT"].includes(d)?(yield u.default.get("https://api.coincap.io/v2/assets")).data.data.find(h=>h.symbol===d).priceUsd:1/(yield u.default.get("https://v6.exchangerate-api.com/v6/65057543fdcbb1629e21c3a2/latest/USD")).data.conversion_rates[d]}catch{throw new Error(`Unable to get the value of ${d} at this time. Try again later.`)}})}},985:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.getNextDayStartDate=i.getPreviousDayStartDate=i.getCurrentDayStartDate=i.getNextMonthStartDate=i.getPreviousMonthStartDate=i.getCurrentMonthStartDate=i.getNextYearStartDate=i.getPreviousYearStartDate=i.getCurrentYearStartDate=i.getIsoTime=i.getIsoDate=void 0,i.getIsoDate=function(o){return(o||new Date).toISOString().split("T")[0]},i.getIsoTime=function(o){return(o||new Date).toISOString().split("T")[1]},i.getCurrentYearStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),0,1)},i.getPreviousYearStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear()-1,0,1)},i.getNextYearStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear()+1,0,1)},i.getCurrentMonthStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),1)},i.getPreviousMonthStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth()-1,1)},i.getNextMonthStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth()+1,1)},i.getCurrentDayStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate())},i.getPreviousDayStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate()-1)},i.getNextDayStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate()+1)}},905:(r,i)=>{function o(l,f,u="round"){return Math[u](l/f)*f}Object.defineProperty(i,"__esModule",{value:!0}),i.roundDecimals=i.roundNumber=i.multiplyWithUnits=i.sumWithUnits=void 0,i.sumWithUnits=function(l,...f){var u;const d=((u=l.match(/[a-zA-Z%]+/))===null||u===void 0?void 0:u[0])||"";return`${[l,...f].reduce((h,p)=>h+parseFloat(p),0)}${d}`},i.multiplyWithUnits=function(l,f){var u;const d=((u=l.match(/[a-zA-Z%]+/))===null||u===void 0?void 0:u[0])||"";return`${parseFloat(l)*f}${d}`},i.roundNumber=o,i.roundDecimals=function(l,f=0,u="round"){return o(l,1/Math.pow(10,f),u)}},563:(r,i)=>{function o(u){return JSON.parse(JSON.stringify(u))}function l(u){return!(!u||typeof u!="object"||Array.isArray(u))}function f(u,d){for(const h in d)l(d[h])?(u[h]||(u[h]={}),f(u[h],d[h])):u[h]=d[h]}Object.defineProperty(i,"__esModule",{value:!0}),i.filterKeysDeep=i.filterKeys=i.mergeDeep=i.merge=i.isObject=i.removeProps=i.copyAvailableFields=i.cloneObjectProperties=void 0,i.cloneObjectProperties=o,i.copyAvailableFields=function u(d,h){if(d&&h)for(const p in h)h.hasOwnProperty(p)&&d.hasOwnProperty(p)&&(typeof h[p]=="object"&&h[p]!==null?u(d[p],h[p]):d[p]=h[p])},i.removeProps=function(u,d){const h=o(u);return(Array.isArray(d)?d:[d]).forEach(p=>delete h[p]),h},i.isObject=l,i.merge=f,i.mergeDeep=function(u,d){const h={};return f(h,u),f(h,d),h},i.filterKeys=function(u,d){const h={},p=Object.keys(u);for(const v of p)h[v]=d[v];return h},i.filterKeysDeep=function u(d,h){const p={},v=Object.keys(d);for(const m of v)l(d[m])&&l(h[m])?p[m]=u(d[m],h[m]):p[m]=h[m];return p}},849:(r,i)=>{function o(l){return l.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}Object.defineProperty(i,"__esModule",{value:!0}),i.accentMap=i.generateCode=i.normalizeText=i.camelToKebab=i.camelToUpperSnake=i.camelToSnake=i.getFirstChartInUppercase=i.getFirstChartInLowercase=void 0,i.getFirstChartInLowercase=function(l){return`${l.charAt(0).toLowerCase()}${l.slice(1)}`},i.getFirstChartInUppercase=function(l){return`${l.charAt(0).toUpperCase()}${l.slice(1)}`},i.camelToSnake=o,i.camelToUpperSnake=function(l){return o(l).toUpperCase()},i.camelToKebab=function(l){return l.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/([A-Z])/g,"-$1").replace(/^-/,"").replace(/-+/g,"-").toLowerCase()},i.normalizeText=function(l){return l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()},i.generateCode=function(l){const f=Math.pow(10,l-1),u=Math.pow(10,l)-1;return Math.floor(f+Math.random()*(u-f)).toString()},i.accentMap={a:"[aáàäâãå]",á:"[aáàäâãå]",à:"[aáàäâãå]",ä:"[aáàäâãå]",â:"[aáàäâãå]",ã:"[aáàäâãå]",å:"[aáàäâãå]",e:"[eéèëê]",é:"[eéèëê]",è:"[eéèëê]",ë:"[eéèëê]",ê:"[eéèëê]",i:"[iíìïî]",í:"[iíìïî]",ì:"[iíìïî]",ï:"[iíìïî]",î:"[iíìïî]",o:"[oóòöôõ]",ó:"[oóòöôõ]",ò:"[oóòöôõ]",ö:"[oóòöôõ]",ô:"[oóòöôõ]",õ:"[oóòöôõ]",u:"[uúùüû]",ú:"[uúùüû]",ù:"[uúùüû]",ü:"[uúùüû]",û:"[uúùüû]",n:"[nñ]",ñ:"[nñ]",c:"[cç]",ç:"[cç]"}},927:function(r,i,o){var l=this&&this.__createBinding||(Object.create?function(u,d,h,p){p===void 0&&(p=h);var v=Object.getOwnPropertyDescriptor(d,h);v&&!("get"in v?!d.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(u,p,v)}:function(u,d,h,p){p===void 0&&(p=h),u[p]=d[h]}),f=this&&this.__exportStar||function(u,d){for(var h in u)h==="default"||Object.prototype.hasOwnProperty.call(d,h)||l(d,u,h)};Object.defineProperty(i,"__esModule",{value:!0}),f(o(423),i),f(o(621),i),f(o(985),i),f(o(905),i),f(o(563),i),f(o(849),i),f(o(574),i)},574:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0})},425:(r,i,o)=>{function l(I,D){return function(){return I.apply(D,arguments)}}const{toString:f}=Object.prototype,{getPrototypeOf:u}=Object,d=(h=Object.create(null),I=>{const D=f.call(I);return h[D]||(h[D]=D.slice(8,-1).toLowerCase())});var h;const p=I=>(I=I.toLowerCase(),D=>d(D)===I),v=I=>D=>typeof D===I,{isArray:m}=Array,y=v("undefined"),g=p("ArrayBuffer"),M=v("string"),x=v("function"),k=v("number"),b=I=>I!==null&&typeof I=="object",_=I=>{if(d(I)!=="object")return!1;const D=u(I);return!(D!==null&&D!==Object.prototype&&Object.getPrototypeOf(D)!==null||Symbol.toStringTag in I||Symbol.iterator in I)},C=p("Date"),H=p("File"),V=p("Blob"),N=p("FileList"),L=p("URLSearchParams");function w(I,D,{allOwnKeys:q=!1}={}){if(I==null)return;let X,J;if(typeof I!="object"&&(I=[I]),m(I))for(X=0,J=I.length;X<J;X++)D.call(null,I[X],X,I);else{const n1=q?Object.getOwnPropertyNames(I):Object.keys(I),a1=n1.length;let z1;for(X=0;X<a1;X++)z1=n1[X],D.call(null,I[z1],z1,I)}}function P(I,D){D=D.toLowerCase();const q=Object.keys(I);let X,J=q.length;for(;J-- >0;)if(X=q[J],D===X.toLowerCase())return X;return null}const j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:o.g,T=I=>!y(I)&&I!==j,B=(F=typeof Uint8Array<"u"&&u(Uint8Array),I=>F&&I instanceof F);var F;const K=p("HTMLFormElement"),G=(({hasOwnProperty:I})=>(D,q)=>I.call(D,q))(Object.prototype),W=p("RegExp"),O=(I,D)=>{const q=Object.getOwnPropertyDescriptors(I),X={};w(q,(J,n1)=>{let a1;(a1=D(J,n1,I))!==!1&&(X[n1]=a1||J)}),Object.defineProperties(I,X)},E="abcdefghijklmnopqrstuvwxyz",S="0123456789",U={DIGIT:S,ALPHA:E,ALPHA_DIGIT:E+E.toUpperCase()+S},Z=p("AsyncFunction");var A={isArray:m,isArrayBuffer:g,isBuffer:function(I){return I!==null&&!y(I)&&I.constructor!==null&&!y(I.constructor)&&x(I.constructor.isBuffer)&&I.constructor.isBuffer(I)},isFormData:I=>{let D;return I&&(typeof FormData=="function"&&I instanceof FormData||x(I.append)&&((D=d(I))==="formdata"||D==="object"&&x(I.toString)&&I.toString()==="[object FormData]"))},isArrayBufferView:function(I){let D;return D=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(I):I&&I.buffer&&g(I.buffer),D},isString:M,isNumber:k,isBoolean:I=>I===!0||I===!1,isObject:b,isPlainObject:_,isUndefined:y,isDate:C,isFile:H,isBlob:V,isRegExp:W,isFunction:x,isStream:I=>b(I)&&x(I.pipe),isURLSearchParams:L,isTypedArray:B,isFileList:N,forEach:w,merge:function I(){const{caseless:D}=T(this)&&this||{},q={},X=(J,n1)=>{const a1=D&&P(q,n1)||n1;_(q[a1])&&_(J)?q[a1]=I(q[a1],J):_(J)?q[a1]=I({},J):m(J)?q[a1]=J.slice():q[a1]=J};for(let J=0,n1=arguments.length;J<n1;J++)arguments[J]&&w(arguments[J],X);return q},extend:(I,D,q,{allOwnKeys:X}={})=>(w(D,(J,n1)=>{q&&x(J)?I[n1]=l(J,q):I[n1]=J},{allOwnKeys:X}),I),trim:I=>I.trim?I.trim():I.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:I=>(I.charCodeAt(0)===65279&&(I=I.slice(1)),I),inherits:(I,D,q,X)=>{I.prototype=Object.create(D.prototype,X),I.prototype.constructor=I,Object.defineProperty(I,"super",{value:D.prototype}),q&&Object.assign(I.prototype,q)},toFlatObject:(I,D,q,X)=>{let J,n1,a1;const z1={};if(D=D||{},I==null)return D;do{for(J=Object.getOwnPropertyNames(I),n1=J.length;n1-- >0;)a1=J[n1],X&&!X(a1,I,D)||z1[a1]||(D[a1]=I[a1],z1[a1]=!0);I=q!==!1&&u(I)}while(I&&(!q||q(I,D))&&I!==Object.prototype);return D},kindOf:d,kindOfTest:p,endsWith:(I,D,q)=>{I=String(I),(q===void 0||q>I.length)&&(q=I.length),q-=D.length;const X=I.indexOf(D,q);return X!==-1&&X===q},toArray:I=>{if(!I)return null;if(m(I))return I;let D=I.length;if(!k(D))return null;const q=new Array(D);for(;D-- >0;)q[D]=I[D];return q},forEachEntry:(I,D)=>{const q=(I&&I[Symbol.iterator]).call(I);let X;for(;(X=q.next())&&!X.done;){const J=X.value;D.call(I,J[0],J[1])}},matchAll:(I,D)=>{let q;const X=[];for(;(q=I.exec(D))!==null;)X.push(q);return X},isHTMLForm:K,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:O,freezeMethods:I=>{O(I,(D,q)=>{if(x(I)&&["arguments","caller","callee"].indexOf(q)!==-1)return!1;const X=I[q];x(X)&&(D.enumerable=!1,"writable"in D?D.writable=!1:D.set||(D.set=()=>{throw Error("Can not rewrite read-only method '"+q+"'")}))})},toObjectSet:(I,D)=>{const q={},X=J=>{J.forEach(n1=>{q[n1]=!0})};return m(I)?X(I):X(String(I).split(D)),q},toCamelCase:I=>I.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(D,q,X){return q.toUpperCase()+X}),noop:()=>{},toFiniteNumber:(I,D)=>(I=+I,Number.isFinite(I)?I:D),findKey:P,global:j,isContextDefined:T,ALPHABET:U,generateString:(I=16,D=U.ALPHA_DIGIT)=>{let q="";const{length:X}=D;for(;I--;)q+=D[Math.random()*X|0];return q},isSpecCompliantForm:function(I){return!!(I&&x(I.append)&&I[Symbol.toStringTag]==="FormData"&&I[Symbol.iterator])},toJSONObject:I=>{const D=new Array(10),q=(X,J)=>{if(b(X)){if(D.indexOf(X)>=0)return;if(!("toJSON"in X)){D[J]=X;const n1=m(X)?[]:{};return w(X,(a1,z1)=>{const w1=q(a1,J+1);!y(w1)&&(n1[z1]=w1)}),D[J]=void 0,n1}}return X};return q(I,0)},isAsyncFn:Z,isThenable:I=>I&&(b(I)||x(I))&&x(I.then)&&x(I.catch)};function R(I,D,q,X,J){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=I,this.name="AxiosError",D&&(this.code=D),q&&(this.config=q),X&&(this.request=X),J&&(this.response=J)}A.inherits(R,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Q=R.prototype,c1={};function e1(I){return A.isPlainObject(I)||A.isArray(I)}function s1(I){return A.endsWith(I,"[]")?I.slice(0,-2):I}function Y(I,D,q){return I?I.concat(D).map(function(X,J){return X=s1(X),!q&&J?"["+X+"]":X}).join(q?".":""):D}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(I=>{c1[I]={value:I}}),Object.defineProperties(R,c1),Object.defineProperty(Q,"isAxiosError",{value:!0}),R.from=(I,D,q,X,J,n1)=>{const a1=Object.create(Q);return A.toFlatObject(I,a1,function(z1){return z1!==Error.prototype},z1=>z1!=="isAxiosError"),R.call(a1,I.message,D,q,X,J),a1.cause=I,a1.name=I.name,n1&&Object.assign(a1,n1),a1};const d1=A.toFlatObject(A,{},null,function(I){return/^is[A-Z]/.test(I)});function x1(I,D,q){if(!A.isObject(I))throw new TypeError("target must be an object");D=D||new FormData;const X=(q=A.toFlatObject(q,{metaTokens:!0,dots:!1,indexes:!1},!1,function(P1,Z1){return!A.isUndefined(Z1[P1])})).metaTokens,J=q.visitor||H1,n1=q.dots,a1=q.indexes,z1=(q.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(D);if(!A.isFunction(J))throw new TypeError("visitor must be a function");function w1(P1){if(P1===null)return"";if(A.isDate(P1))return P1.toISOString();if(!z1&&A.isBlob(P1))throw new R("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(P1)||A.isTypedArray(P1)?z1&&typeof Blob=="function"?new Blob([P1]):Buffer.from(P1):P1}function H1(P1,Z1,I1){let J1=P1;if(P1&&!I1&&typeof P1=="object"){if(A.endsWith(Z1,"{}"))Z1=X?Z1:Z1.slice(0,-2),P1=JSON.stringify(P1);else if(A.isArray(P1)&&function(v2){return A.isArray(v2)&&!v2.some(e1)}(P1)||(A.isFileList(P1)||A.endsWith(Z1,"[]"))&&(J1=A.toArray(P1)))return Z1=s1(Z1),J1.forEach(function(v2,X2){!A.isUndefined(v2)&&v2!==null&&D.append(a1===!0?Y([Z1],X2,n1):a1===null?Z1:Z1+"[]",w1(v2))}),!1}return!!e1(P1)||(D.append(Y(I1,Z1,n1),w1(P1)),!1)}const k1=[],O1=Object.assign(d1,{defaultVisitor:H1,convertValue:w1,isVisitable:e1});if(!A.isObject(I))throw new TypeError("data must be an object");return function P1(Z1,I1){if(!A.isUndefined(Z1)){if(k1.indexOf(Z1)!==-1)throw Error("Circular reference detected in "+I1.join("."));k1.push(Z1),A.forEach(Z1,function(J1,v2){(!(A.isUndefined(J1)||J1===null)&&J.call(D,J1,A.isString(v2)?v2.trim():v2,I1,O1))===!0&&P1(J1,I1?I1.concat(v2):[v2])}),k1.pop()}}(I),D}function f1(I){const D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(I).replace(/[!'()~]|%20|%00/g,function(q){return D[q]})}function t1(I,D){this._pairs=[],I&&x1(I,this,D)}const l1=t1.prototype;function i1(I){return encodeURIComponent(I).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p1(I,D,q){if(!D)return I;const X=q&&q.encode||i1,J=q&&q.serialize;let n1;if(n1=J?J(D,q):A.isURLSearchParams(D)?D.toString():new t1(D,q).toString(X),n1){const a1=I.indexOf("#");a1!==-1&&(I=I.slice(0,a1)),I+=(I.indexOf("?")===-1?"?":"&")+n1}return I}l1.append=function(I,D){this._pairs.push([I,D])},l1.toString=function(I){const D=I?function(q){return I.call(this,q,f1)}:f1;return this._pairs.map(function(q){return D(q[0])+"="+D(q[1])},"").join("&")};var b1=class{constructor(){this.handlers=[]}use(I,D,q){return this.handlers.push({fulfilled:I,rejected:D,synchronous:!!q&&q.synchronous,runWhen:q?q.runWhen:null}),this.handlers.length-1}eject(I){this.handlers[I]&&(this.handlers[I]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(I){A.forEach(this.handlers,function(D){D!==null&&I(D)})}},v1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},C1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:t1,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]};const D1=typeof window<"u"&&typeof document<"u",R1=(B1=typeof navigator<"u"&&navigator.product,D1&&["ReactNative","NativeScript","NS"].indexOf(B1)<0);var B1;const Y1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var G1={...Object.freeze({__proto__:null,hasBrowserEnv:D1,hasStandardBrowserWebWorkerEnv:Y1,hasStandardBrowserEnv:R1}),...C1};function n2(I){function D(q,X,J,n1){let a1=q[n1++];if(a1==="__proto__")return!0;const z1=Number.isFinite(+a1),w1=n1>=q.length;return a1=!a1&&A.isArray(J)?J.length:a1,w1?(A.hasOwnProp(J,a1)?J[a1]=[J[a1],X]:J[a1]=X,!z1):(J[a1]&&A.isObject(J[a1])||(J[a1]=[]),D(q,X,J[a1],n1)&&A.isArray(J[a1])&&(J[a1]=function(H1){const k1={},O1=Object.keys(H1);let P1;const Z1=O1.length;let I1;for(P1=0;P1<Z1;P1++)I1=O1[P1],k1[I1]=H1[I1];return k1}(J[a1])),!z1)}if(A.isFormData(I)&&A.isFunction(I.entries)){const q={};return A.forEachEntry(I,(X,J)=>{D(function(n1){return A.matchAll(/\w+|\[(\w*)]/g,n1).map(a1=>a1[0]==="[]"?"":a1[1]||a1[0])}(X),J,q,0)}),q}return null}const o2={transitional:v1,adapter:["xhr","http"],transformRequest:[function(I,D){const q=D.getContentType()||"",X=q.indexOf("application/json")>-1,J=A.isObject(I);if(J&&A.isHTMLForm(I)&&(I=new FormData(I)),A.isFormData(I))return X?JSON.stringify(n2(I)):I;if(A.isArrayBuffer(I)||A.isBuffer(I)||A.isStream(I)||A.isFile(I)||A.isBlob(I))return I;if(A.isArrayBufferView(I))return I.buffer;if(A.isURLSearchParams(I))return D.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),I.toString();let n1;if(J){if(q.indexOf("application/x-www-form-urlencoded")>-1)return function(a1,z1){return x1(a1,new G1.classes.URLSearchParams,Object.assign({visitor:function(w1,H1,k1,O1){return G1.isNode&&A.isBuffer(w1)?(this.append(H1,w1.toString("base64")),!1):O1.defaultVisitor.apply(this,arguments)}},z1))}(I,this.formSerializer).toString();if((n1=A.isFileList(I))||q.indexOf("multipart/form-data")>-1){const a1=this.env&&this.env.FormData;return x1(n1?{"files[]":I}:I,a1&&new a1,this.formSerializer)}}return J||X?(D.setContentType("application/json",!1),function(a1,z1,w1){if(A.isString(a1))try{return(0,JSON.parse)(a1),A.trim(a1)}catch(H1){if(H1.name!=="SyntaxError")throw H1}return(0,JSON.stringify)(a1)}(I)):I}],transformResponse:[function(I){const D=this.transitional||o2.transitional,q=D&&D.forcedJSONParsing,X=this.responseType==="json";if(I&&A.isString(I)&&(q&&!this.responseType||X)){const J=!(D&&D.silentJSONParsing)&&X;try{return JSON.parse(I)}catch(n1){if(J)throw n1.name==="SyntaxError"?R.from(n1,R.ERR_BAD_RESPONSE,this,null,this.response):n1}}return I}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:G1.classes.FormData,Blob:G1.classes.Blob},validateStatus:function(I){return I>=200&&I<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],I=>{o2.headers[I]={}});var q1=o2;const p2=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),T2=Symbol("internals");function h2(I){return I&&String(I).trim().toLowerCase()}function y2(I){return I===!1||I==null?I:A.isArray(I)?I.map(y2):String(I)}function e3(I,D,q,X,J){return A.isFunction(X)?X.call(this,D,q):(J&&(D=q),A.isString(D)?A.isString(X)?D.indexOf(X)!==-1:A.isRegExp(X)?X.test(D):void 0:void 0)}class u1{constructor(D){D&&this.set(D)}set(D,q,X){const J=this;function n1(z1,w1,H1){const k1=h2(w1);if(!k1)throw new Error("header name must be a non-empty string");const O1=A.findKey(J,k1);(!O1||J[O1]===void 0||H1===!0||H1===void 0&&J[O1]!==!1)&&(J[O1||w1]=y2(z1))}const a1=(z1,w1)=>A.forEach(z1,(H1,k1)=>n1(H1,k1,w1));return A.isPlainObject(D)||D instanceof this.constructor?a1(D,q):A.isString(D)&&(D=D.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(D.trim())?a1((z1=>{const w1={};let H1,k1,O1;return z1&&z1.split(`
8633
8633
  `).forEach(function(P1){O1=P1.indexOf(":"),H1=P1.substring(0,O1).trim().toLowerCase(),k1=P1.substring(O1+1).trim(),!H1||w1[H1]&&p2[H1]||(H1==="set-cookie"?w1[H1]?w1[H1].push(k1):w1[H1]=[k1]:w1[H1]=w1[H1]?w1[H1]+", "+k1:k1)}),w1})(D),q):D!=null&&n1(q,D,X),this}get(D,q){if(D=h2(D)){const X=A.findKey(this,D);if(X){const J=this[X];if(!q)return J;if(q===!0)return function(n1){const a1=Object.create(null),z1=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let w1;for(;w1=z1.exec(n1);)a1[w1[1]]=w1[2];return a1}(J);if(A.isFunction(q))return q.call(this,J,X);if(A.isRegExp(q))return q.exec(J);throw new TypeError("parser must be boolean|regexp|function")}}}has(D,q){if(D=h2(D)){const X=A.findKey(this,D);return!(!X||this[X]===void 0||q&&!e3(0,this[X],X,q))}return!1}delete(D,q){const X=this;let J=!1;function n1(a1){if(a1=h2(a1)){const z1=A.findKey(X,a1);!z1||q&&!e3(0,X[z1],z1,q)||(delete X[z1],J=!0)}}return A.isArray(D)?D.forEach(n1):n1(D),J}clear(D){const q=Object.keys(this);let X=q.length,J=!1;for(;X--;){const n1=q[X];D&&!e3(0,this[n1],n1,D,!0)||(delete this[n1],J=!0)}return J}normalize(D){const q=this,X={};return A.forEach(this,(J,n1)=>{const a1=A.findKey(X,n1);if(a1)return q[a1]=y2(J),void delete q[n1];const z1=D?function(w1){return w1.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(H1,k1,O1)=>k1.toUpperCase()+O1)}(n1):String(n1).trim();z1!==n1&&delete q[n1],q[z1]=y2(J),X[z1]=!0}),this}concat(...D){return this.constructor.concat(this,...D)}toJSON(D){const q=Object.create(null);return A.forEach(this,(X,J)=>{X!=null&&X!==!1&&(q[J]=D&&A.isArray(X)?X.join(", "):X)}),q}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([D,q])=>D+": "+q).join(`
8634
8634
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(D){return D instanceof this?D:new this(D)}static concat(D,...q){const X=new this(D);return q.forEach(J=>X.set(J)),X}static accessor(D){const q=(this[T2]=this[T2]={accessors:{}}).accessors,X=this.prototype;function J(n1){const a1=h2(n1);q[a1]||(function(z1,w1){const H1=A.toCamelCase(" "+w1);["get","set","has"].forEach(k1=>{Object.defineProperty(z1,k1+H1,{value:function(O1,P1,Z1){return this[k1].call(this,w1,O1,P1,Z1)},configurable:!0})})}(X,n1),q[a1]=!0)}return A.isArray(D)?D.forEach(J):J(D),this}}u1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(u1.prototype,({value:I},D)=>{let q=D[0].toUpperCase()+D.slice(1);return{get:()=>I,set(X){this[q]=X}}}),A.freezeMethods(u1);var o1=u1;function _1(I,D){const q=this||q1,X=D||q,J=o1.from(X.headers);let n1=X.data;return A.forEach(I,function(a1){n1=a1.call(q,n1,J.normalize(),D?D.status:void 0)}),J.normalize(),n1}function L1(I){return!(!I||!I.__CANCEL__)}function W1(I,D,q){R.call(this,I??"canceled",R.ERR_CANCELED,D,q),this.name="CanceledError"}A.inherits(W1,R,{__CANCEL__:!0});var g2=G1.hasStandardBrowserEnv?{write(I,D,q,X,J,n1){const a1=[I+"="+encodeURIComponent(D)];A.isNumber(q)&&a1.push("expires="+new Date(q).toGMTString()),A.isString(X)&&a1.push("path="+X),A.isString(J)&&a1.push("domain="+J),n1===!0&&a1.push("secure"),document.cookie=a1.join("; ")},read(I){const D=document.cookie.match(new RegExp("(^|;\\s*)("+I+")=([^;]*)"));return D?decodeURIComponent(D[3]):null},remove(I){this.write(I,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function S2(I,D){return I&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(D)?function(q,X){return X?q.replace(/\/?\/$/,"")+"/"+X.replace(/^\/+/,""):q}(I,D):D}var B3=G1.hasStandardBrowserEnv?function(){const I=/(msie|trident)/i.test(navigator.userAgent),D=document.createElement("a");let q;function X(J){let n1=J;return I&&(D.setAttribute("href",n1),n1=D.href),D.setAttribute("href",n1),{href:D.href,protocol:D.protocol?D.protocol.replace(/:$/,""):"",host:D.host,search:D.search?D.search.replace(/^\?/,""):"",hash:D.hash?D.hash.replace(/^#/,""):"",hostname:D.hostname,port:D.port,pathname:D.pathname.charAt(0)==="/"?D.pathname:"/"+D.pathname}}return q=X(window.location.href),function(J){const n1=A.isString(J)?X(J):J;return n1.protocol===q.protocol&&n1.host===q.host}}():function(){return!0};function he(I,D){let q=0;const X=function(J,n1){J=J||10;const a1=new Array(J),z1=new Array(J);let w1,H1=0,k1=0;return n1=n1!==void 0?n1:1e3,function(O1){const P1=Date.now(),Z1=z1[k1];w1||(w1=P1),a1[H1]=O1,z1[H1]=P1;let I1=k1,J1=0;for(;I1!==H1;)J1+=a1[I1++],I1%=J;if(H1=(H1+1)%J,H1===k1&&(k1=(k1+1)%J),P1-w1<n1)return;const v2=Z1&&P1-Z1;return v2?Math.round(1e3*J1/v2):void 0}}(50,250);return J=>{const n1=J.loaded,a1=J.lengthComputable?J.total:void 0,z1=n1-q,w1=X(z1);q=n1;const H1={loaded:n1,total:a1,progress:a1?n1/a1:void 0,bytes:z1,rate:w1||void 0,estimated:w1&&a1&&n1<=a1?(a1-n1)/w1:void 0,event:J};H1[D?"download":"upload"]=!0,I(H1)}}const s2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(I){return new Promise(function(D,q){let X=I.data;const J=o1.from(I.headers).normalize();let n1,a1,{responseType:z1,withXSRFToken:w1}=I;function H1(){I.cancelToken&&I.cancelToken.unsubscribe(n1),I.signal&&I.signal.removeEventListener("abort",n1)}if(A.isFormData(X)){if(G1.hasStandardBrowserEnv||G1.hasStandardBrowserWebWorkerEnv)J.setContentType(!1);else if((a1=J.getContentType())!==!1){const[I1,...J1]=a1?a1.split(";").map(v2=>v2.trim()).filter(Boolean):[];J.setContentType([I1||"multipart/form-data",...J1].join("; "))}}let k1=new XMLHttpRequest;if(I.auth){const I1=I.auth.username||"",J1=I.auth.password?unescape(encodeURIComponent(I.auth.password)):"";J.set("Authorization","Basic "+btoa(I1+":"+J1))}const O1=S2(I.baseURL,I.url);function P1(){if(!k1)return;const I1=o1.from("getAllResponseHeaders"in k1&&k1.getAllResponseHeaders());(function(J1,v2,X2){const Ds=X2.config.validateStatus;X2.status&&Ds&&!Ds(X2.status)?v2(new R("Request failed with status code "+X2.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(X2.status/100)-4],X2.config,X2.request,X2)):J1(X2)})(function(J1){D(J1),H1()},function(J1){q(J1),H1()},{data:z1&&z1!=="text"&&z1!=="json"?k1.response:k1.responseText,status:k1.status,statusText:k1.statusText,headers:I1,config:I,request:k1}),k1=null}if(k1.open(I.method.toUpperCase(),p1(O1,I.params,I.paramsSerializer),!0),k1.timeout=I.timeout,"onloadend"in k1?k1.onloadend=P1:k1.onreadystatechange=function(){k1&&k1.readyState===4&&(k1.status!==0||k1.responseURL&&k1.responseURL.indexOf("file:")===0)&&setTimeout(P1)},k1.onabort=function(){k1&&(q(new R("Request aborted",R.ECONNABORTED,I,k1)),k1=null)},k1.onerror=function(){q(new R("Network Error",R.ERR_NETWORK,I,k1)),k1=null},k1.ontimeout=function(){let I1=I.timeout?"timeout of "+I.timeout+"ms exceeded":"timeout exceeded";const J1=I.transitional||v1;I.timeoutErrorMessage&&(I1=I.timeoutErrorMessage),q(new R(I1,J1.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,I,k1)),k1=null},G1.hasStandardBrowserEnv&&(w1&&A.isFunction(w1)&&(w1=w1(I)),w1||w1!==!1&&B3(O1))){const I1=I.xsrfHeaderName&&I.xsrfCookieName&&g2.read(I.xsrfCookieName);I1&&J.set(I.xsrfHeaderName,I1)}X===void 0&&J.setContentType(null),"setRequestHeader"in k1&&A.forEach(J.toJSON(),function(I1,J1){k1.setRequestHeader(J1,I1)}),A.isUndefined(I.withCredentials)||(k1.withCredentials=!!I.withCredentials),z1&&z1!=="json"&&(k1.responseType=I.responseType),typeof I.onDownloadProgress=="function"&&k1.addEventListener("progress",he(I.onDownloadProgress,!0)),typeof I.onUploadProgress=="function"&&k1.upload&&k1.upload.addEventListener("progress",he(I.onUploadProgress)),(I.cancelToken||I.signal)&&(n1=I1=>{k1&&(q(!I1||I1.type?new W1(null,I,k1):I1),k1.abort(),k1=null)},I.cancelToken&&I.cancelToken.subscribe(n1),I.signal&&(I.signal.aborted?n1():I.signal.addEventListener("abort",n1)));const Z1=function(I1){const J1=/^([-+\w]{1,25})(:?\/\/|:)/.exec(I1);return J1&&J1[1]||""}(O1);Z1&&G1.protocols.indexOf(Z1)===-1?q(new R("Unsupported protocol "+Z1+":",R.ERR_BAD_REQUEST,I)):k1.send(X||null)})}};A.forEach(s2,(I,D)=>{if(I){try{Object.defineProperty(I,"name",{value:D})}catch{}Object.defineProperty(I,"adapterName",{value:D})}});const L2=I=>`- ${I}`,Qe=I=>A.isFunction(I)||I===null||I===!1;var Je=I=>{I=A.isArray(I)?I:[I];const{length:D}=I;let q,X;const J={};for(let n1=0;n1<D;n1++){let a1;if(q=I[n1],X=q,!Qe(q)&&(X=s2[(a1=String(q)).toLowerCase()],X===void 0))throw new R(`Unknown adapter '${a1}'`);if(X)break;J[a1||"#"+n1]=X}if(!X){const n1=Object.entries(J).map(([a1,z1])=>`adapter ${a1} `+(z1===!1?"is not supported by the environment":"is not available in the build"));throw new R("There is no suitable adapter to dispatch the request "+(D?n1.length>1?`since :