pangea-lib 4.0.204 → 4.0.206
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 +1 -1
- package/dist/main.css +1 -1
- package/dist/main.es.js +2 -2
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -820,7 +820,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
820
820
|
`),d1}function l1(r1,d1){if(A(r1)&&r1.nextElementSibling!=null&&!G(d1,`
|
|
821
821
|
|
|
822
822
|
`)){var x1=r1.offsetHeight+parseFloat(q(r1).marginTop)+parseFloat(q(r1).marginBottom);r1.nextElementSibling.offsetTop>r1.offsetTop+x1*1.5&&d1.insert(`
|
|
823
|
-
`)}return d1}function e1(r1,d1){var x1={},p1=r1.style||{};return p1.fontStyle&&q(r1).fontStyle==="italic"&&(x1.italic=!0),p1.fontWeight&&(q(r1).fontWeight.startsWith("bold")||parseInt(q(r1).fontWeight)>=700)&&(x1.bold=!0),Object.keys(x1).length>0&&(d1=k(d1,x1)),parseFloat(p1.textIndent||0)>0&&(d1=new h.default().insert(" ").concat(d1)),d1}function o1(r1,d1){var x1=r1.data;if(r1.parentNode.tagName==="O:P")return d1.insert(x1.trim());if(x1.trim().length===0&&r1.parentNode.classList.contains("ql-clipboard"))return d1;if(!q(r1.parentNode).whiteSpace.startsWith("pre")){var p1=function(E1,R1){return R1=R1.replace(/[^\u00a0]/g,""),R1.length<1&&E1?" ":R1};x1=x1.replace(/\r\n/g," ").replace(/\n/g," "),x1=x1.replace(/\s\s+/g,p1.bind(p1,!0)),(r1.previousSibling==null&&A(r1.parentNode)||r1.previousSibling!=null&&A(r1.previousSibling))&&(x1=x1.replace(/^\s+/,p1.bind(p1,!1))),(r1.nextSibling==null&&A(r1.parentNode)||r1.nextSibling!=null&&A(r1.nextSibling))&&(x1=x1.replace(/\s+$/,p1.bind(p1,!1)))}return d1.insert(x1)}c.default=T,c.matchAttributor=a1,c.matchBlot=J,c.matchNewline=z1,c.matchSpacing=l1,c.matchText=o1},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(6),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return r(p,[{key:"optimize",value:function(y){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(l.default);m.blotName="bold",m.tagName=["STRONG","B"],c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.addControls=c.default=void 0;var r=function(){function _(V,O){var j=[],N=!0,B=!1,F=void 0;try{for(var X=V[Symbol.iterator](),Y;!(N=(Y=X.next()).done)&&(j.push(Y.value),!(O&&j.length===O));N=!0);}catch(U){B=!0,F=U}finally{try{!N&&X.return&&X.return()}finally{if(B)throw F}}return j}return function(V,O){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return _(V,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function _(V,O){for(var j=0;j<O.length;j++){var N=O[j];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(V,N.key,N)}}return function(V,O,j){return O&&_(V.prototype,O),j&&_(V,j),V}}(),s=n(2),l=y(s),f=n(0),u=y(f),h=n(5),d=y(h),m=n(10),v=y(m),p=n(9),g=y(p);function y(_){return _&&_.__esModule?_:{default:_}}function b(_,V,O){return V in _?Object.defineProperty(_,V,{value:O,enumerable:!0,configurable:!0,writable:!0}):_[V]=O,_}function x(_,V){if(!(_ instanceof V))throw new TypeError("Cannot call a class as a function")}function z(_,V){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:_}function M(_,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);_.prototype=Object.create(V&&V.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(_,V):_.__proto__=V)}var H=(0,v.default)("quill:toolbar"),C=function(_){M(V,_);function V(O,j){x(this,V);var N=z(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,O,j));if(Array.isArray(N.options.container)){var B=document.createElement("div");L(B,N.options.container),O.container.parentNode.insertBefore(B,O.container),N.container=B}else typeof N.options.container=="string"?N.container=document.querySelector(N.options.container):N.container=N.options.container;if(!(N.container instanceof HTMLElement)){var F;return F=H.error("Container required for toolbar",N.options),z(N,F)}return N.container.classList.add("ql-toolbar"),N.controls=[],N.handlers={},Object.keys(N.options.handlers).forEach(function(X){N.addHandler(X,N.options.handlers[X])}),[].forEach.call(N.container.querySelectorAll("button, select"),function(X){N.attach(X)}),N.quill.on(d.default.events.EDITOR_CHANGE,function(X,Y){X===d.default.events.SELECTION_CHANGE&&N.update(Y)}),N.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){var X=N.quill.selection.getRange(),Y=r(X,1),U=Y[0];N.update(U)}),N}return i(V,[{key:"addHandler",value:function(j,N){this.handlers[j]=N}},{key:"attach",value:function(j){var N=this,B=[].find.call(j.classList,function(X){return X.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){H.warn("ignoring attaching to disabled format",B,j);return}if(u.default.query(B)==null){H.warn("ignoring attaching to nonexistent format",B,j);return}}var F=j.tagName==="SELECT"?"change":"click";j.addEventListener(F,function(X){var Y=void 0;if(j.tagName==="SELECT"){if(j.selectedIndex<0)return;var U=j.options[j.selectedIndex];U.hasAttribute("selected")?Y=!1:Y=U.value||!1}else j.classList.contains("ql-active")?Y=!1:Y=j.value||!j.hasAttribute("value"),X.preventDefault();N.quill.focus();var D=N.quill.selection.getRange(),T=r(D,1),k=T[0];if(N.handlers[B]!=null)N.handlers[B].call(N,Y);else if(u.default.query(B).prototype instanceof u.default.Embed){if(Y=prompt("Enter "+B),!Y)return;N.quill.updateContents(new l.default().retain(k.index).delete(k.length).insert(b({},B,Y)),d.default.sources.USER)}else N.quill.format(B,Y,d.default.sources.USER);N.update(k)}),this.controls.push([B,j])}}},{key:"update",value:function(j){var N=j==null?{}:this.quill.getFormat(j);this.controls.forEach(function(B){var F=r(B,2),X=F[0],Y=F[1];if(Y.tagName==="SELECT"){var U=void 0;if(j==null)U=null;else if(N[X]==null)U=Y.querySelector("option[selected]");else if(!Array.isArray(N[X])){var D=N[X];typeof D=="string"&&(D=D.replace(/\"/g,'\\"')),U=Y.querySelector('option[value="'+D+'"]')}U==null?(Y.value="",Y.selectedIndex=-1):U.selected=!0}else if(j==null)Y.classList.remove("ql-active");else if(Y.hasAttribute("value")){var T=N[X]===Y.getAttribute("value")||N[X]!=null&&N[X].toString()===Y.getAttribute("value")||N[X]==null&&!Y.getAttribute("value");Y.classList.toggle("ql-active",T)}else Y.classList.toggle("ql-active",N[X]!=null)})}}]),V}(g.default);C.DEFAULTS={};function w(_,V,O){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+V),O!=null&&(j.value=O),_.appendChild(j)}function L(_,V){Array.isArray(V[0])||(V=[V]),V.forEach(function(O){var j=document.createElement("span");j.classList.add("ql-formats"),O.forEach(function(N){if(typeof N=="string")w(j,N);else{var B=Object.keys(N)[0],F=N[B];Array.isArray(F)?S(j,B,F):w(j,B,F)}}),_.appendChild(j)})}function S(_,V,O){var j=document.createElement("select");j.classList.add("ql-"+V),O.forEach(function(N){var B=document.createElement("option");N!==!1?B.setAttribute("value",N):B.setAttribute("selected","selected"),j.appendChild(B)}),_.appendChild(j)}C.DEFAULTS={container:null,handlers:{clean:function(){var V=this,O=this.quill.getSelection();if(O!=null)if(O.length==0){var j=this.quill.getFormat();Object.keys(j).forEach(function(N){u.default.query(N,u.default.Scope.INLINE)!=null&&V.quill.format(N,!1)})}else this.quill.removeFormat(O,d.default.sources.USER)},direction:function(V){var O=this.quill.getFormat().align;V==="rtl"&&O==null?this.quill.format("align","right",d.default.sources.USER):!V&&O==="right"&&this.quill.format("align",!1,d.default.sources.USER),this.quill.format("direction",V,d.default.sources.USER)},indent:function(V){var O=this.quill.getSelection(),j=this.quill.getFormat(O),N=parseInt(j.indent||0);if(V==="+1"||V==="-1"){var B=V==="+1"?1:-1;j.direction==="rtl"&&(B*=-1),this.quill.format("indent",N+B,d.default.sources.USER)}},link:function(V){V===!0&&(V=prompt("Enter link URL:")),this.quill.format("link",V,d.default.sources.USER)},list:function(V){var O=this.quill.getSelection(),j=this.quill.getFormat(O);V==="check"?j.list==="checked"||j.list==="unchecked"?this.quill.format("list",!1,d.default.sources.USER):this.quill.format("list","unchecked",d.default.sources.USER):this.quill.format("list",V,d.default.sources.USER)}}},c.default=C,c.addControls=L},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(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(28),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(g,y){u(this,p);var b=h(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,g));return b.label.innerHTML=y,b.container.classList.add("ql-color-picker"),[].slice.call(b.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),b}return r(p,[{key:"buildItem",value:function(y){var b=i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,y);return b.style.backgroundColor=y.getAttribute("value")||"",b}},{key:"selectItem",value:function(y,b){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,b);var x=this.label.querySelector(".ql-color-label"),z=y&&y.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=z:x.style.fill=z)}}]),p}(l.default);c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(28),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(g,y){u(this,p);var b=h(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,g));return b.container.classList.add("ql-icon-picker"),[].forEach.call(b.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=y[x.getAttribute("data-value")||""]}),b.defaultItem=b.container.querySelector(".ql-selected"),b.selectItem(b.defaultItem),b}return r(p,[{key:"selectItem",value:function(y,b){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,b),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),p}(l.default);c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function l(f,u){for(var h=0;h<u.length;h++){var d=u[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,d.key,d)}}return function(f,u,h){return u&&l(f.prototype,u),h&&l(f,h),f}}();function i(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(f,u){var h=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(){h.root.style.marginTop=-1*h.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 h=u.left+u.width/2-this.root.offsetWidth/2,d=u.bottom+this.quill.root.scrollTop;this.root.style.left=h+"px",this.root.style.top=d+"px",this.root.classList.remove("ql-flip");var m=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),p=0;if(v.right>m.right&&(p=m.right-v.right,this.root.style.left=h+p+"px"),v.left<m.left&&(p=m.left-v.left,this.root.style.left=h+p+"px"),v.bottom>m.bottom){var g=v.bottom-v.top,y=u.bottom-u.top+g;this.root.style.top=d-y+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();c.default=s},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function S(_,V){var O=[],j=!0,N=!1,B=void 0;try{for(var F=_[Symbol.iterator](),X;!(j=(X=F.next()).done)&&(O.push(X.value),!(V&&O.length===V));j=!0);}catch(Y){N=!0,B=Y}finally{try{!j&&F.return&&F.return()}finally{if(N)throw B}}return O}return function(_,V){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return S(_,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function S(_,V,O){_===null&&(_=Function.prototype);var j=Object.getOwnPropertyDescriptor(_,V);if(j===void 0){var N=Object.getPrototypeOf(_);return N===null?void 0:S(N,V,O)}else{if("value"in j)return j.value;var B=j.get;return B===void 0?void 0:B.call(O)}},s=function(){function S(_,V){for(var O=0;O<V.length;O++){var j=V[O];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(_,j.key,j)}}return function(_,V,O){return V&&S(_.prototype,V),O&&S(_,O),_}}(),l=n(3),f=x(l),u=n(8),h=x(u),d=n(43),m=x(d),v=n(27),p=x(v),g=n(15),y=n(41),b=x(y);function x(S){return S&&S.__esModule?S:{default:S}}function z(S,_){if(!(S instanceof _))throw new TypeError("Cannot call a class as a function")}function M(S,_){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:S}function H(S,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);S.prototype=Object.create(_&&_.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(S,_):S.__proto__=_)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],w=function(S){H(_,S);function _(V,O){z(this,_),O.modules.toolbar!=null&&O.modules.toolbar.container==null&&(O.modules.toolbar.container=C);var j=M(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,V,O));return j.quill.container.classList.add("ql-snow"),j}return s(_,[{key:"extendToolbar",value:function(O){O.container.classList.add("ql-snow"),this.buildButtons([].slice.call(O.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(O.container.querySelectorAll("select")),b.default),this.tooltip=new L(this.quill,this.options.bounds),O.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(j,N){O.handlers.link.call(O,!N.format.link)})}}]),_}(m.default);w.DEFAULTS=(0,f.default)(!0,{},m.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){if(_){var V=this.quill.getSelection();if(V==null||V.length==0)return;var O=this.quill.getText(V);/^\S+@\S+\.\S+$/.test(O)&&O.indexOf("mailto:")!==0&&(O="mailto:"+O);var j=this.quill.theme.tooltip;j.edit("link",O)}else this.quill.format("link",!1)}}}}});var L=function(S){H(_,S);function _(V,O){z(this,_);var j=M(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,V,O));return j.preview=j.root.querySelector("a.ql-preview"),j}return s(_,[{key:"listen",value:function(){var O=this;i(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(j){O.root.classList.contains("ql-editing")?O.save():O.edit("link",O.preview.textContent),j.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(j){if(O.linkRange!=null){var N=O.linkRange;O.restoreFocus(),O.quill.formatText(N,"link",!1,h.default.sources.USER),delete O.linkRange}j.preventDefault(),O.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(j,N,B){if(j!=null){if(j.length===0&&B===h.default.sources.USER){var F=O.quill.scroll.descendant(p.default,j.index),X=r(F,2),Y=X[0],U=X[1];if(Y!=null){O.linkRange=new g.Range(j.index-U,Y.length());var D=p.default.formats(Y.domNode);O.preview.textContent=D,O.preview.setAttribute("href",D),O.show(),O.position(O.quill.getBounds(O.linkRange));return}}else delete O.linkRange;O.hide()}})}},{key:"show",value:function(){i(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),_}(d.BaseTooltip);L.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=w},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(29),i=C1(r),s=n(36),l=n(38),f=n(64),u=n(65),h=C1(u),d=n(66),m=C1(d),v=n(67),p=C1(v),g=n(37),y=n(26),b=n(39),x=n(40),z=n(56),M=C1(z),H=n(68),C=C1(H),w=n(27),L=C1(w),S=n(69),_=C1(S),V=n(70),O=C1(V),j=n(71),N=C1(j),B=n(72),F=C1(B),X=n(73),Y=C1(X),U=n(13),D=C1(U),T=n(74),k=C1(T),q=n(75),G=C1(q),A=n(57),R=C1(A),K=n(41),a1=C1(K),J=n(28),s1=C1(J),W=n(59),u1=C1(W),z1=n(60),l1=C1(z1),e1=n(61),o1=C1(e1),r1=n(108),d1=C1(r1),x1=n(62),p1=C1(x1);function C1(E1){return E1&&E1.__esModule?E1:{default:E1}}i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":x.SizeStyle},!0),i.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":b.FontClass,"formats/size":x.SizeClass,"formats/blockquote":h.default,"formats/code-block":D.default,"formats/header":m.default,"formats/list":p.default,"formats/bold":M.default,"formats/code":U.Code,"formats/italic":C.default,"formats/link":L.default,"formats/script":_.default,"formats/strike":O.default,"formats/underline":N.default,"formats/image":F.default,"formats/video":Y.default,"formats/list/item":v.ListItem,"modules/formula":k.default,"modules/syntax":G.default,"modules/toolbar":R.default,"themes/bubble":d1.default,"themes/snow":p1.default,"ui/icons":a1.default,"ui/picker":s1.default,"ui/icon-picker":l1.default,"ui/color-picker":u1.default,"ui/tooltip":o1.default},!0),c.default=i.default},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.IndentClass=void 0;var r=function(){function p(g,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return function(g,y,b){return y&&p(g.prototype,y),b&&p(g,b),g}}(),i=function p(g,y,b){g===null&&(g=Function.prototype);var x=Object.getOwnPropertyDescriptor(g,y);if(x===void 0){var z=Object.getPrototypeOf(g);return z===null?void 0:p(z,y,b)}else{if("value"in x)return x.value;var M=x.get;return M===void 0?void 0:M.call(b)}},s=n(0),l=f(s);function f(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=function(p){d(g,p);function g(){return u(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"add",value:function(b,x){if(x==="+1"||x==="-1"){var z=this.value(b)||0;x=x==="+1"?z+1:z-1}return x===0?(this.remove(b),!0):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"add",this).call(this,b,x)}},{key:"canAdd",value:function(b,x){return i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,x)||i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,parseInt(x))}},{key:"value",value:function(b){return parseInt(i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,b))||void 0}}]),g}(l.default.Attributor.Class),v=new m("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=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="blockquote",h.tagName="blockquote",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function m(v,p){for(var g=0;g<p.length;g++){var y=p[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,p,g){return p&&m(v.prototype,p),g&&m(v,g),v}}(),i=n(4),s=l(i);function l(m){return m&&m.__esModule?m:{default:m}}function f(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function u(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function h(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var d=function(m){h(v,m);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"formats",value:function(g){return this.tagName.indexOf(g.tagName)+1}}]),v}(s.default);d.blotName="header",d.tagName=["H1","H2","H3","H4","H5","H6"],c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.ListItem=void 0;var r=function(){function z(M,H){for(var C=0;C<H.length;C++){var w=H[C];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(M,w.key,w)}}return function(M,H,C){return H&&z(M.prototype,H),C&&z(M,C),M}}(),i=function z(M,H,C){M===null&&(M=Function.prototype);var w=Object.getOwnPropertyDescriptor(M,H);if(w===void 0){var L=Object.getPrototypeOf(M);return L===null?void 0:z(L,H,C)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(C)}},s=n(0),l=m(s),f=n(4),u=m(f),h=n(25),d=m(h);function m(z){return z&&z.__esModule?z:{default:z}}function v(z,M,H){return M in z?Object.defineProperty(z,M,{value:H,enumerable:!0,configurable:!0,writable:!0}):z[M]=H,z}function p(z,M){if(!(z instanceof M))throw new TypeError("Cannot call a class as a function")}function g(z,M){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:z}function y(z,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);z.prototype=Object.create(M&&M.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(z,M):z.__proto__=M)}var b=function(z){y(M,z);function M(){return p(this,M),g(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return r(M,[{key:"format",value:function(C,w){C===x.blotName&&!w?this.replaceWith(l.default.create(this.statics.scope)):i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"format",this).call(this,C,w)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,w){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,w),this):(this.parent.unwrap(),i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replaceWith",this).call(this,C,w))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:i(M.__proto__||Object.getPrototypeOf(M),"formats",this).call(this,C)}}]),M}(u.default);b.blotName="list-item",b.tagName="LI";var x=function(z){y(M,z),r(M,null,[{key:"create",value:function(C){var w=C==="ordered"?"OL":"UL",L=i(M.__proto__||Object.getPrototypeOf(M),"create",this).call(this,w);return(C==="checked"||C==="unchecked")&&L.setAttribute("data-checked",C==="checked"),L}},{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 M(H){p(this,M);var C=g(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,H)),w=function(S){if(S.target.parentNode===H){var _=C.statics.formats(H),V=l.default.find(S.target);_==="checked"?V.format("list","unchecked"):_==="unchecked"&&V.format("list","checked")}};return H.addEventListener("touchstart",w),H.addEventListener("mousedown",w),C}return r(M,[{key:"format",value:function(C,w){this.children.length>0&&this.children.tail.format(C,w)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,w){if(C instanceof b)i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertBefore",this).call(this,C,w);else{var L=w==null?this.length():w.offset(this),S=this.split(L);S.parent.insertBefore(C,S)}}},{key:"optimize",value:function(C){i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,C);var w=this.next;w!=null&&w.prev===this&&w.statics.blotName===this.statics.blotName&&w.domNode.tagName===this.domNode.tagName&&w.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(w.moveChildren(this),w.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var w=l.default.create(this.statics.defaultChild);C.moveChildren(w),this.appendChild(w)}i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replace",this).call(this,C)}}]),M}(d.default);x.blotName="list",x.scope=l.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[b],c.ListItem=b,c.default=x},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(56),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="italic",h.tagName=["EM","I"],c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(6),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return r(p,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):i(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),p}(l.default);m.blotName="script",m.tagName=["SUB","SUP"],c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="strike",h.tagName="S",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="underline",h.tagName="U",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function g(y,b){for(var x=0;x<b.length;x++){var z=b[x];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(y,z.key,z)}}return function(y,b,x){return b&&g(y.prototype,b),x&&g(y,x),y}}(),i=function g(y,b,x){y===null&&(y=Function.prototype);var z=Object.getOwnPropertyDescriptor(y,b);if(z===void 0){var M=Object.getPrototypeOf(y);return M===null?void 0:g(M,b,x)}else{if("value"in z)return z.value;var H=z.get;return H===void 0?void 0:H.call(x)}},s=n(0),l=u(s),f=n(27);function u(g){return g&&g.__esModule?g:{default:g}}function h(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function d(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function m(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["alt","height","width"],p=function(g){m(y,g);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(x,z){v.indexOf(x)>-1?z?this.domNode.setAttribute(x,z):this.domNode.removeAttribute(x):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,z)}}],[{key:"create",value:function(x){var z=i(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return typeof x=="string"&&z.setAttribute("src",this.sanitize(x)),z}},{key:"formats",value:function(x){return v.reduce(function(z,M){return x.hasAttribute(M)&&(z[M]=x.getAttribute(M)),z},{})}},{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")}}]),y}(l.default.Embed);p.blotName="image",p.tagName="IMG",c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function g(y,b){for(var x=0;x<b.length;x++){var z=b[x];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(y,z.key,z)}}return function(y,b,x){return b&&g(y.prototype,b),x&&g(y,x),y}}(),i=function g(y,b,x){y===null&&(y=Function.prototype);var z=Object.getOwnPropertyDescriptor(y,b);if(z===void 0){var M=Object.getPrototypeOf(y);return M===null?void 0:g(M,b,x)}else{if("value"in z)return z.value;var H=z.get;return H===void 0?void 0:H.call(x)}},s=n(4),l=n(27),f=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function h(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function d(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function m(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["height","width"],p=function(g){m(y,g);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(x,z){v.indexOf(x)>-1?z?this.domNode.setAttribute(x,z):this.domNode.removeAttribute(x):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,z)}}],[{key:"create",value:function(x){var z=i(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return z.setAttribute("frameborder","0"),z.setAttribute("allowfullscreen",!0),z.setAttribute("src",this.sanitize(x)),z}},{key:"formats",value:function(x){return v.reduce(function(z,M){return x.hasAttribute(M)&&(z[M]=x.getAttribute(M)),z},{})}},{key:"sanitize",value:function(x){return f.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),y}(s.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.FormulaBlot=void 0;var r=function(){function x(z,M){for(var H=0;H<M.length;H++){var C=M[H];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(z,C.key,C)}}return function(z,M,H){return M&&x(z.prototype,M),H&&x(z,H),z}}(),i=function x(z,M,H){z===null&&(z=Function.prototype);var C=Object.getOwnPropertyDescriptor(z,M);if(C===void 0){var w=Object.getPrototypeOf(z);return w===null?void 0:x(w,M,H)}else{if("value"in C)return C.value;var L=C.get;return L===void 0?void 0:L.call(H)}},s=n(35),l=m(s),f=n(5),u=m(f),h=n(9),d=m(h);function m(x){return x&&x.__esModule?x:{default:x}}function v(x,z){if(!(x instanceof z))throw new TypeError("Cannot call a class as a function")}function p(x,z){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:x}function g(x,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);x.prototype=Object.create(z&&z.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(x,z):x.__proto__=z)}var y=function(x){g(z,x);function z(){return v(this,z),p(this,(z.__proto__||Object.getPrototypeOf(z)).apply(this,arguments))}return r(z,null,[{key:"create",value:function(H){var C=i(z.__proto__||Object.getPrototypeOf(z),"create",this).call(this,H);return typeof H=="string"&&(window.katex.render(H,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",H)),C}},{key:"value",value:function(H){return H.getAttribute("data-value")}}]),z}(l.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var b=function(x){g(z,x),r(z,null,[{key:"register",value:function(){u.default.register(y,!0)}}]);function z(){v(this,z);var M=p(this,(z.__proto__||Object.getPrototypeOf(z)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return M}return z}(d.default);c.FormulaBlot=y,c.default=b},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.CodeToken=c.CodeBlock=void 0;var r=function(){function H(C,w){for(var L=0;L<w.length;L++){var S=w[L];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}return function(C,w,L){return w&&H(C.prototype,w),L&&H(C,L),C}}(),i=function H(C,w,L){C===null&&(C=Function.prototype);var S=Object.getOwnPropertyDescriptor(C,w);if(S===void 0){var _=Object.getPrototypeOf(C);return _===null?void 0:H(_,w,L)}else{if("value"in S)return S.value;var V=S.get;return V===void 0?void 0:V.call(L)}},s=n(0),l=p(s),f=n(5),u=p(f),h=n(9),d=p(h),m=n(13),v=p(m);function p(H){return H&&H.__esModule?H:{default:H}}function g(H,C){if(!(H instanceof C))throw new TypeError("Cannot call a class as a function")}function y(H,C){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:H}function b(H,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);H.prototype=Object.create(C&&C.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(H,C):H.__proto__=C)}var x=function(H){b(C,H);function C(){return g(this,C),y(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var S=this.domNode.textContent;this.cachedText!==S&&((S.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(S),this.domNode.normalize(),this.attach()),this.cachedText=S)}}]),C}(v.default);x.className="ql-syntax";var z=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),M=function(H){b(C,H),r(C,null,[{key:"register",value:function(){u.default.register(z,!0),u.default.register(x,!0)}}]);function C(w,L){g(this,C);var S=y(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,w,L));if(typeof S.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var _=null;return S.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(_),_=setTimeout(function(){S.highlight(),_=null},S.options.interval)}),S.highlight(),S}return r(C,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var S=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(_){_.highlight(L.options.highlight)}),this.quill.update(u.default.sources.SILENT),S!=null&&this.quill.setSelection(S,u.default.sources.SILENT)}}}]),C}(d.default);M.DEFAULTS={highlight:function(){return window.hljs==null?null:function(H){var C=window.hljs.highlightAuto(H);return C.value}}(),interval:1e3},c.CodeBlock=x,c.CodeToken=z,c.default=M},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(w,L,S){w===null&&(w=Function.prototype);var _=Object.getOwnPropertyDescriptor(w,L);if(_===void 0){var V=Object.getPrototypeOf(w);return V===null?void 0:C(V,L,S)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(S)}},i=function(){function C(w,L){for(var S=0;S<L.length;S++){var _=L[S];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(w,_.key,_)}}return function(w,L,S){return L&&C(w.prototype,L),S&&C(w,S),w}}(),s=n(3),l=g(s),f=n(8),u=g(f),h=n(43),d=g(h),m=n(15),v=n(41),p=g(v);function g(C){return C&&C.__esModule?C:{default:C}}function y(C,w){if(!(C instanceof w))throw new TypeError("Cannot call a class as a function")}function b(C,w){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:C}function x(C,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);C.prototype=Object.create(w&&w.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(C,w):C.__proto__=w)}var z=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],M=function(C){x(w,C);function w(L,S){y(this,w),S.modules.toolbar!=null&&S.modules.toolbar.container==null&&(S.modules.toolbar.container=z);var _=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,L,S));return _.quill.container.classList.add("ql-bubble"),_}return i(w,[{key:"extendToolbar",value:function(S){this.tooltip=new H(this.quill,this.options.bounds),this.tooltip.root.appendChild(S.container),this.buildButtons([].slice.call(S.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(S.container.querySelectorAll("select")),p.default)}}]),w}(d.default);M.DEFAULTS=(0,l.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(w){w?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var H=function(C){x(w,C);function w(L,S){y(this,w);var _=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,L,S));return _.quill.on(u.default.events.EDITOR_CHANGE,function(V,O,j,N){if(V===u.default.events.SELECTION_CHANGE)if(O!=null&&O.length>0&&N===u.default.sources.USER){_.show(),_.root.style.left="0px",_.root.style.width="",_.root.style.width=_.root.offsetWidth+"px";var B=_.quill.getLines(O.index,O.length);if(B.length===1)_.position(_.quill.getBounds(O));else{var F=B[B.length-1],X=_.quill.getIndex(F),Y=Math.min(F.length()-1,O.index+O.length-X),U=_.quill.getBounds(new m.Range(X,Y));_.position(U)}}else document.activeElement!==_.textbox&&_.quill.hasFocus()&&_.hide()}),_}return i(w,[{key:"listen",value:function(){var S=this;r(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){S.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!S.root.classList.contains("ql-hidden")){var _=S.quill.getSelection();_!=null&&S.position(S.quill.getBounds(_))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(S){var _=r(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"position",this).call(this,S),V=this.root.querySelector(".ql-tooltip-arrow");if(V.style.marginLeft="",_===0)return _;V.style.marginLeft=-1*_-V.offsetWidth/2+"px"}}]),w}(h.BaseTooltip);H.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=H,c.default=M},function(a,c,n){a.exports=n(63)}]).default})})(IO);var Al1=IO.exports;const Nl1=k51(Al1);const Tl1={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},El1={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="";o.watch(()=>e.value,s=>{a.quill&&(s&&s!==c?(c=s,a.quill.pasteHTML(s)):s||a.quill.setText(""))}),o.watch(()=>e.content,s=>{a.quill&&(s&&s!==c?(c=s,a.quill.pasteHTML(s)):s||a.quill.setText(""))}),o.watch(()=>e.disabled,s=>{a.quill&&a.quill.enable(!s)});const n=o.ref(null),r=(s,l)=>{for(const f in l)!s[f]||f!=="modules"?s[f]=l[f]:r(s[f],l[f]);return s},i=()=>{n.value&&(a.editorOption=r(Tl1,e.options),a.editorOption.readOnly=!!e.disabled,a.quill=new Nl1(n.value,a.editorOption),e.value&&a.quill.pasteHTML(e.value),a.quill.on("selection-change",s=>{s?t.emit("focus",a.quill):t.emit("blur",a.quill)}),a.quill.on("text-change",()=>{e.disabled&&a.quill.enable(!1);let s=n.value.children[0].innerHTML;const l=a.quill,f=a.quill.getText();s==="<p><br></p>"&&(s=""),c=s,t.emit("update:value",c),t.emit("change",{html:s,text:f,quill:l})}),t.emit("ready",a.quill))};return o.onBeforeUnmount(()=>{const s=n.value.previousSibling;s&&s.nodeType===1&&s.className.indexOf("ql-toolbar")>-1&&s.parentNode.removeChild(s)}),o.onMounted(()=>{i()}),o.onUnmounted(()=>{a.quill=null}),{editor:n}}},Ol1={ref:"editor"};function Dl1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("section",Ol1,null,512)}const cl=K1(El1,[["render",Dl1]]);cl.install=function(e){e.component(cl.name,cl)};const Pl1=o.defineComponent({__name:"PgaMaxLength",props:{content:{},maxLength:{}},setup(e){const t=e,a=o.computed(()=>{var n;return((n=t.content)==null?void 0:n.length)||0}),c=o.computed(()=>a.value>t.maxLength);return(n,r)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["pga-max-length",{"pga-max-length--error":c.value}])},o.toDisplayString(`${a.value} / ${n.maxLength}`),3))}});const yb=K1(Pl1,[["__scopeId","data-v-4e8a2dd8"]]),Bl1={class:"pga-editor"},Rl1={class:"editor__container"},Fl1={class:"editor__footer"},Il1=o.defineComponent({__name:"PgaEditor",props:o.mergeModels({saveFn:{type:Function},maxContentLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=e,c=N4.getConfig(),n=I2("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=o.ref(t.value),s=o.ref(!1);let l;const f=o.ref(!1),u=o.ref(!1),h=o.computed(()=>a.maxContentLength||c.stringLengths.hyperLong),d=o.computed(()=>PT(t.value)),m=o.computed(()=>d.value.length),v=o.computed(()=>m.value>h.value);o.watch(t,()=>{f.value=!1,u.value=!1,clearTimeout(l),l=setTimeout(()=>p(),1e3*3)});async function p(){if(i.value!==t.value){if(v.value){u.value=!0;return}try{s.value=!0,i.value=await a.saveFn(t.value),f.value=!0,setTimeout(()=>f.value=!1,1e3*3)}finally{s.value=!1}}}return(g,y)=>(o.openBlock(),o.createElementBlock("div",Bl1,[o.createElementVNode("div",Rl1,[o.createVNode(o.unref(cl),{value:t.value,"onUpdate:value":y[0]||(y[0]=b=>t.value=b),options:r},null,8,["value"])]),o.createElementVNode("div",Fl1,[o.createVNode(yb,{content:d.value,maxLength:h.value},null,8,["content","maxLength"]),s.value?(o.openBlock(),o.createBlock(y8,{key:0,size:"m",preventCenter:""})):f.value?(o.openBlock(),o.createBlock(E3,{key:1,icon:"save",text:o.unref(n)("savedMsg"),color:"success"},null,8,["text"])):u.value?(o.openBlock(),o.createBlock(E3,{key:2,icon:"circle-xmark",text:o.unref(n)("saveErrorMsg"),color:"danger"},null,8,["text"])):o.createCommentVNode("",!0)])]))}});const $l1=K1(Il1,[["__scopeId","data-v-4b498289"]]),jl1={class:"pga-info-card"},ql1={key:1,class:"info-card__content"},Ul1=o.defineComponent({__name:"PgaInfoCard",props:{type:{default:"success"},title:{},description:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("div",jl1,[t.isLoading?(o.openBlock(),o.createBlock(y8,{key:0})):(o.openBlock(),o.createElementBlock("div",ql1,[o.createVNode(A4,{icon:t.type==="success"?"circle-check":"circle-xmark",color:t.type,size:"1.9rem"},null,8,["icon","color"]),o.createVNode(E3,{class:"info-card__title",text:t.title},null,8,["text"]),t.description?(o.openBlock(),o.createBlock(E3,{key:0,class:"info-card__description",text:t.description},null,8,["text"])):o.createCommentVNode("",!0),o.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const Wl1=K1(Ul1,[["__scopeId","data-v-48bac905"]]),Du=o.defineComponent({__name:"PgaInfoTooltip",props:{info:{},size:{default:"0.9rem"}},setup(e){const t=e,a=o.computed(()=>b4(t.info));return(c,n)=>{const r=o.resolveDirective("tooltip");return a.value?o.withDirectives((o.openBlock(),o.createBlock(A4,{key:0,icon:["far","circle-question"],size:c.size},null,8,["size"])),[[r,{content:a.value,html:!0}]]):o.createCommentVNode("",!0)}}}),Yl1=o.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const t=e;return(a,c)=>(o.openBlock(),o.createBlock(A4,{icon:t.isEnabled?"circle-check":"circle-xmark",color:t.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),Gl1=o.defineComponent({__name:"PgaItemSelected",props:o.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const a=o.useModel(e,"modelValue"),c=e;t({toggleItemSelected:r});const n=o.computed({get(){if(c.item)return!!a.value.find(s=>s.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(s=>s.id!==c.item.id):i?a.value=[...c.items]:a.value=[]}});function r(){n.value=!n.value}return(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["item-selected",{"item-selected--selected":n.value}]),onClick:s[0]||(s[0]=l=>r())},[n.value?(o.openBlock(),o.createBlock(A4,{key:0,class:"item-selected__check-icon",icon:"check"})):o.createCommentVNode("",!0)],2))}});const Cv=K1(Gl1,[["__scopeId","data-v-1c9cee8f"]]),Zl1={class:"modal__header"},Xl1=["textContent"],Kl1={class:"modal__body"},Ql1={key:0,class:"modal__footer"},Jl1=o.defineComponent({__name:"PgaModal",props:o.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean},width:{default:"auto"},acceptText:{},cancelText:{},acceptIcon:{default:"save"}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:t}){o.useCssVars(r=>({"98d6d882":r.width}));const a=o.useModel(e,"modelValue"),c=t,n=I2("pgaModal");return o.watch(a,r=>oi(!r)),(r,i)=>a.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"modal",onMousedown:i[4]||(i[4]=s=>a.value=!1)},[o.createElementVNode("div",{class:"modal__content",onMousedown:i[3]||(i[3]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("div",Zl1,[o.createElementVNode("span",{class:"modal__title",textContent:o.toDisplayString(r.title)},null,8,Xl1),o.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=s=>a.value=!1)},[o.createVNode(A4,{icon:"xmark"})])]),o.createElementVNode("div",Kl1,[o.renderSlot(r.$slots,"default",{},void 0,!0)]),r.confirmButtons?(o.openBlock(),o.createElementBlock("div",Ql1,[r.isLoading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(P2,{key:0,text:r.cancelText||o.unref(n)("cancelBtn"),color:"danger",variant:"flat",onClick:i[1]||(i[1]=s=>a.value=!1)},null,8,["text"])),o.createVNode(P2,{icon:r.acceptIcon,text:r.acceptText||o.unref(n)("acceptBtn"),color:"success",variant:"filled",isLoading:r.isLoading,onClick:i[2]||(i[2]=s=>c("accept"))},null,8,["icon","text","isLoading"])])):o.createCommentVNode("",!0)],32)],32)):o.createCommentVNode("",!0)}});const ef1=K1(Jl1,[["__scopeId","data-v-35379c34"]]),tf1={class:"pga-flex-row"},af1=o.defineComponent({__name:"PgaMonthSelector",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=o.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:ue.getNextMonthStartDate(i)}}});function c(){t.value={datetimeFrom:ue.getPreviousMonthStartDate(t.value.datetimeFrom),datetimeTo:ue.getPreviousMonthStartDate(t.value.datetimeTo)}}function n(){t.value={datetimeFrom:ue.getNextMonthStartDate(t.value.datetimeFrom),datetimeTo:ue.getNextMonthStartDate(t.value.datetimeTo)}}return(r,i)=>{const s=o.resolveComponent("PgaButton"),l=o.resolveComponent("PgaMonthPicker");return o.openBlock(),o.createElementBlock("div",tf1,[o.createVNode(s,{icon:"arrow-left",variant:"flat",color:"first",onClick:i[0]||(i[0]=f=>c())}),o.createVNode(l,{modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=f=>a.value=f),notClearable:""},null,8,["modelValue"]),o.createVNode(s,{icon:"arrow-right",variant:"flat",color:"first",onClick:i[2]||(i[2]=f=>n())})])}}}),cf1=o.defineComponent({__name:"PgaSeparator",props:{vertical:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["separator",{"separator--vertical":t.vertical}])},null,2))}});const nf1=K1(cf1,[["__scopeId","data-v-12540ee5"]]),rf1={class:"pga-tabs"},if1={class:"tabs__nav",role:"tablist"},sf1=["onClick"],of1={class:"tabs__section",role:"tabpanel"},lf1=o.defineComponent({__name:"PgaTabs",props:{tabs:{}},setup(e){o.useCssVars(i=>({"427d71d8":n.value}));const t=e,a=o.ref(0),c=o.ref([]),n=o.ref("");o.watch(()=>t.tabs,()=>{c.value=[],o.nextTick(r)},{immediate:!0,deep:!0});function r(){const i=Math.max(0,...c.value.map(s=>s.offsetWidth));n.value=`${i}px`}return(i,s)=>{const l=o.resolveComponent("PgaIcon"),f=o.resolveComponent("PgaDisplayText");return o.openBlock(),o.createElementBlock("div",rf1,[o.createElementVNode("nav",if1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.tabs,(u,h)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["tabs__button",{"tabs__button--active":a.value===h}]),key:`tab-${h}`,ref_for:!0,ref:d=>c.value[h]=d,role:"tab",onClick:d=>a.value=h},[u.icon?(o.openBlock(),o.createBlock(l,{key:0,class:"tabs__icon",icon:u.icon},null,8,["icon"])):o.createCommentVNode("",!0),o.createVNode(f,{class:"tabs__label",text:u.label},null,8,["text"])],10,sf1))),128))]),o.createElementVNode("section",of1,[o.renderSlot(i.$slots,`panel${a.value+1}`,{},void 0,!0)])])}}});const ff1=K1(lf1,[["__scopeId","data-v-5a7a781a"]]),uf1=["accept","multiple","disabled"],hf1={class:"input-file__label-container"},df1=o.defineComponent({__name:"PgaInputFile",props:{type:{},multiple:{type:Boolean},label:{},disabled:{type:Boolean},isLoading:{type:Boolean}},emits:["newFile","newFiles"],setup(e,{expose:t,emit:a}){o.useCssVars(M=>({"6241915b":o.unref(r).input.borderColor,"027f6ccc":o.unref(r).input.borderRadius,b4ce00ce:o.unref(r).input.backgroundColor,"466eb123":o.unref(r).input.backgroundColorHover,"6910f535":o.unref(r).input.backgroundColorDisabled}));const c=e,n=a;t({click:b,resetInput:x});const{form:r}=Ce(),i=I2("pgaForm"),s=(()=>c.type==="image"?["jpeg","jpg","png","webp","gif","svg","bmp","tiff","heic"]:c.type==="video"?["mp4","mov","avi","webm","mkv"]:["xls","xlsx"])(),l=s.map(M=>`.${M}`).join(","),f=o.ref(),u=o.ref([]),h=o.ref(!1),d=o.ref(!1),m=o.computed(()=>c.disabled||c.isLoading),v=o.computed(()=>!!u.value.length),p=o.computed(()=>{for(const M of u.value){const H=M.name.split(".").pop();if(!s.includes(H))return!1}return!0}),g=o.computed(()=>{const M={icon:"upload"};return!v.value||h.value&&!d.value&&!m.value?M:p.value?{icon:"circle-check",color:"success"}:{icon:"circle-xmark",color:"danger"}}),y=o.computed(()=>v.value?u.value.map(M=>M.name).join(", "):c.label?c.label:c.multiple?i("selectFilesLabel"):i("selectFileLabel"));function b(){var M;(M=f.value)==null||M.click()}function x(){u.value=[],f.value&&(f.value.value="")}function z(M){h.value=!1;const C=M.target.files;if(C.length){if(u.value=[...C],!p.value){w6("danger",()=>i("newFileError"));return}n("newFile",C[0]),n("newFiles",[...C])}}return(M,H)=>(o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass(["pga-input-file",{"pga-input-file--disabled":m.value}]),onMouseenter:H[4]||(H[4]=C=>h.value=!0),onMouseleave:H[5]||(H[5]=C=>h.value=!1)},[M.isLoading?(o.openBlock(),o.createBlock(y8,{key:0})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("input",{ref_key:"inputRef",ref:f,class:"input-file__input",type:"file",accept:o.unref(l),multiple:M.multiple,disabled:m.value,onChange:H[0]||(H[0]=C=>z(C))},null,40,uf1),o.createVNode(A4,{class:"input-file__icon",icon:g.value.icon,color:g.value.color},null,8,["icon","color"]),o.createElementVNode("div",hf1,[o.createVNode(E3,{text:y.value},null,8,["text"])]),v.value?(o.openBlock(),o.createBlock(P2,{key:0,text:o.unref(i)("removeBtn"),variant:"flat",color:"danger",size:"s",disabled:m.value,onMouseenter:H[1]||(H[1]=C=>d.value=!0),onMouseleave:H[2]||(H[2]=C=>d.value=!1),onClick:H[3]||(H[3]=o.withModifiers(C=>x(),["prevent"]))},null,8,["text","disabled"])):o.createCommentVNode("",!0)],64))],34))}});const ks=K1(df1,[["__scopeId","data-v-cbccd13c"]]),mf1={class:"pga-videos"},pf1={class:"videos"},vf1=["src"],gf1={key:0,class:"videos__input-container"},yf1=o.defineComponent({__name:"PgaVideos",props:o.mergeModels({maxVideosQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=e,c=I2("pgaFile"),n=o.ref(),r=o.ref(!1),i=o.ref(-1),s=o.computed(()=>t.value.length),l=o.computed(()=>t.value.map(h=>typeof h=="string"?h:URL.createObjectURL(h)));async function f(h){var d;if((d=n.value)==null||d.resetInput(),s.value+h.length>a.maxVideosQuantity&&(h=h.slice(0,a.maxVideosQuantity-s.value),w6("warning",()=>c("maxVideosQuantityAlert",{maxQuantity:a.maxVideosQuantity}))),!a.uploadFn){t.value.push(...h);return}try{r.value=!0,t.value=await a.uploadFn({file:h})}finally{r.value=!1}}async function u(h){if(a.deleteFn)try{i.value=h,await a.deleteFn({index:h})}finally{i.value=-1}t.value.splice(h,1)}return(h,d)=>{const m=o.resolveComponent("PgaDeleteButton");return o.openBlock(),o.createElementBlock("div",mf1,[o.createElementVNode("div",pf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(v,p)=>(o.openBlock(),o.createElementBlock("div",{key:v,class:"videos__video-container"},[o.createElementVNode("video",{class:"videos__video",src:v,controls:""},null,8,vf1),o.createVNode(m,{class:"videos__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===p,onDeleteConfirmed:g=>u(p)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),s.value<h.maxVideosQuantity?(o.openBlock(),o.createElementBlock("div",gf1,[o.createVNode(ks,{ref_key:"inputFileRef",ref:n,class:"videos__input",type:"video",multiple:"",label:o.unref(c)("selectVideos"),isLoading:r.value,onNewFiles:d[0]||(d[0]=v=>f(v))},null,8,["label","isLoading"])])):o.createCommentVNode("",!0)]),o.createElementVNode("span",null,o.toDisplayString(`${s.value} / ${h.maxVideosQuantity}`),1)])}}});const bf1=K1(yf1,[["__scopeId","data-v-ee4ebd19"]]),zf1=o.defineComponent({__name:"PgaBackButton",setup(e){const t=I2("pgaButton");return(a,c)=>(o.openBlock(),o.createBlock(P2,{text:o.unref(t)("backBtn"),icon:"arrow-left",color:"first",size:"s"},null,8,["text"]))}}),xf1={class:"pga-copy"},Mf1=o.defineComponent({__name:"PgaCopy",props:{text:{}},setup(e){const t=e,a=I2("pgaButton"),c=o.ref(!1),n=o.computed(()=>b4(t.text));async function r(){await navigator.clipboard.writeText(n.value),c.value=!0,setTimeout(()=>c.value=!1,3e3)}return(i,s)=>{const l=o.resolveDirective("tooltip");return o.openBlock(),o.createElementBlock("div",xf1,[o.createElementVNode("span",null,o.toDisplayString(n.value),1),c.value?(o.openBlock(),o.createBlock(A4,{key:1,icon:["far","circle-check"],color:"success"})):o.withDirectives((o.openBlock(),o.createBlock(P2,{key:0,color:"first",icon:"copy",size:"s",onClick:s[0]||(s[0]=f=>r())},null,512)),[[l,o.unref(a)("copyBtn")]])])}}});const Cf1=K1(Mf1,[["__scopeId","data-v-c4835bae"]]),Hf1=o.defineComponent({__name:"PgaCopyButton",props:{text:{},label:{}},setup(e){const t=e,a=I2("pgaButton"),c=o.computed(()=>b4(t.text)),n=o.computed(()=>t.label||a("copyBtn"));async function r(){await navigator.clipboard.writeText(c.value),w6("success",()=>a("textCopied"))}return(i,s)=>{const l=o.resolveDirective("tooltip");return o.withDirectives((o.openBlock(),o.createBlock(P2,{color:"first",icon:"copy",text:n.value,onClick:s[0]||(s[0]=f=>r())},null,8,["text"])),[[l,c.value]])}}}),Vf1={class:"alert"},wf1={class:"alert__content"},_f1=["textContent"],Lf1={class:"alert__buttons"},kf1=o.defineComponent({__name:"Alert",props:{message:{},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const t=dO.directive,a=I2("alert");return o.onMounted(()=>oi(!1)),o.onUnmounted(()=>oi(!0)),(c,n)=>(o.openBlock(),o.createElementBlock("div",Vf1,[o.withDirectives((o.openBlock(),o.createElementBlock("div",wf1,[o.createVNode(A4,{class:"alert__icon",icon:"land-mine-on"}),o.createElementVNode("span",{class:"alert__title",textContent:o.toDisplayString(o.unref(a)("alertTitle"))},null,8,_f1),c.message?(o.openBlock(),o.createBlock(E3,{key:0,class:"alert__message",text:c.message},null,8,["text"])):o.createCommentVNode("",!0),o.createElementVNode("div",Lf1,[o.createVNode(P2,{class:"alert__button",text:o.unref(a)("cancelBtn"),variant:"filled",color:"grey",onClick:n[0]||(n[0]=r=>c.handleCloseFn())},null,8,["text"]),o.createVNode(P2,{class:"alert__button",text:o.unref(a)("acceptBtn"),variant:"filled",color:"danger",onClick:n[1]||(n[1]=r=>c.handleAcceptFn())},null,8,["text"])])])),[[o.unref(t),c.handleCloseFn]])]))}});const Sf1=K1(kf1,[["__scopeId","data-v-969d5446"]]);function $O(e,t){const a=document.createElement("div");document.body.appendChild(a);const c=o.createApp({render(){return o.h(Sf1,{message:e,handleAcceptFn:r,handleCloseFn:n})}});c.mount(a);function n(){c.unmount(),document.body.removeChild(a)}function r(){n(),t()}}const Pu=o.defineComponent({__name:"PgaDeleteButton",props:{variant:{default:"flat"},icon:{default:"trash"},text:{},withoutText:{type:Boolean},withoutConfirm:{type:Boolean},confirmDeleteText:{}},emits:["deleteConfirmed"],setup(e,{emit:t}){const a=e,c=t,n=I2("pgaButton");function r(){if(a.withoutConfirm){c("deleteConfirmed");return}const i=a.confirmDeleteText||n("confirmDeleteText");$O(i,()=>c("deleteConfirmed"))}return(i,s)=>(o.openBlock(),o.createBlock(P2,{class:"delete-button",variant:i.variant,icon:i.icon,text:i.withoutText?void 0:i.text||o.unref(n)("deleteBtn"),size:"s",align:"left",color:"danger",onClick:s[0]||(s[0]=l=>r())},null,8,["variant","icon","text"]))}}),Hv=o.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean},fullWidth:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>{const n=o.resolveDirective("tooltip");return o.withDirectives((o.openBlock(),o.createBlock(P2,{class:"edit-button",variant:"flat",color:"sky",icon:["far","pen-to-square"],text:a.withoutText?void 0:o.unref(t)("editBtn"),size:"s",fullWidth:a.fullWidth,align:"left"},null,8,["text","fullWidth"])),[[n,a.withoutText?o.unref(t)("editBtn"):""]])}}}),Af1=["href","target"],Nf1=o.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("a",{class:"hyperlink",href:t.href,target:t.target},[o.createVNode(E3,{text:t.text,withUnderlineOnHover:""},null,8,["text"])],8,Af1))}});const jO=K1(Nf1,[["__scopeId","data-v-ec435fa7"]]),Tf1=o.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:t}){const a=t,c=I2("pgaButton");return(n,r)=>(o.openBlock(),o.createBlock(P2,{icon:["fas","right-from-bracket"],text:o.unref(c)("logoutBtn"),color:"danger",onClick:r[0]||(r[0]=i=>a("click",i))},null,8,["text"]))}}),Ef1=o.defineComponent({__name:"PgaRouterLink",props:{name:{},params:{},query:{},color:{default:"var(--pga-color-first)"},noFitContent:{type:Boolean},underline:{type:Boolean},noUnderlineOnHover:{type:Boolean}},setup(e){o.useCssVars(n=>({"040e9024":a.value,"75a55a4c":c.value}));const t=e,a=o.computed(()=>`var(--pga-color-${t.color})`),c=o.computed(()=>`var(--pga-color-${t.color}-09)`);return(n,r)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(i,{class:o.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]=s=>o.unref(oi)(!0))},{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["class","to"])}}});const Ss=K1(Ef1,[["__scopeId","data-v-6046ce2c"]]),qO=o.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)=>(o.openBlock(),o.createBlock(Ss,{name:t.name,params:t.params,query:t.query,noFitContent:t.noFitContent,noUnderlineOnHover:""},{default:o.withCtx(()=>[t.$slots.default?o.renderSlot(t.$slots,"default",{key:0}):(o.openBlock(),o.createBlock(P2,{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"]))}}),UO=o.defineComponent({__name:"PgaNavigateToButton",props:{id:{},toName:{},withoutText:{type:Boolean},noFitContent:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>a.toName?(o.openBlock(),o.createBlock(qO,{key:0,name:a.toName,params:{id:a.id},icon:"arrow-up-right-from-square",text:a.withoutText?void 0:o.unref(t)("navigateToBtn"),variant:"flat",size:"s",align:"left",color:"link",noFitContent:a.noFitContent},null,8,["name","params","text","noFitContent"])):o.createCommentVNode("",!0)}}),Of1=o.defineComponent({__name:"PgaRemoveButton",props:{size:{default:"s"},disabled:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createBlock(P2,{variant:"flat",icon:"xmark",size:t.size,color:"danger",disabled:t.disabled},null,8,["size","disabled"]))}}),Df1=o.defineComponent({__name:"PgaSeeDetailsButton",props:{withoutText:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>(o.openBlock(),o.createBlock(P2,{class:"edit-button",variant:"flat",color:"grey",icon:"eye",text:a.withoutText?void 0:o.unref(t)("seeDetailsBtn"),size:"s",align:"left"},null,8,["text"]))}}),Pf1=o.defineComponent({__name:"PgaToggleButton",props:o.mergeModels({text:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=o.useModel(e,"modelValue"),c=t,n=o.computed(()=>a.value?"outlined":"flat"),r=o.computed(()=>a.value?"primary":"grey");return o.watch(a,i=>c("change",i)),(i,s)=>(o.openBlock(),o.createBlock(P2,{variant:n.value,color:r.value,icon:"circle-check",text:i.text,size:"s",borderRadius:"1rem",onClick:s[0]||(s[0]=l=>a.value=!a.value)},null,8,["variant","color","text"]))}});var Bf1=Object.defineProperty,Rf1=(e,t,a)=>t in e?Bf1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Pt=(e,t,a)=>Rf1(e,typeof t!="symbol"?t+"":t,a);const Ff1=(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 Vn,UV,WV,g6,wn={},Ac={};class If1{constructor(t,a=!1){Pt(this,"texts",{}),Pt(this,"dateToMinutes",c=>c.getHours()*60+c.getMinutes()),g6=this,this._texts=t,!a&&Date&&!Date.prototype.addDays&&this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return g6.addDays(this,t)},Date.prototype.subtractDays=function(t){return g6.subtractDays(this,t)},Date.prototype.addHours=function(t){return g6.addHours(this,t)},Date.prototype.subtractHours=function(t){return g6.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return g6.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return g6.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return g6.getWeek(this)},Date.prototype.isToday=function(){return g6.isToday(this)},Date.prototype.isLeapYear=function(){return g6.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return g6.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return g6.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 UV!==new Date().getDate()&&(Vn=new Date,UV=Vn.getDate(),WV=`${Vn.getFullYear()}-${Vn.getMonth()}-${Vn.getDate()}`),WV}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);wn={},Ac={};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 s=n[i.replace(/\{|\}/g,"")];return s!==void 0?s():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);Ac={},c||(c=this._texts);const i=this._hydrateTimeObject(t,c),s=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?s.replace("23:59","24:00"):s}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(wn.D)return wn;const c=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),s=(t.getDay()-1+7)%7;return wn={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:s+1,dd:()=>a.weekDays[s][0],ddd:()=>a.weekDays[s].substr(0,3),dddd:()=>a.weekDays[s]},wn}_hydrateTimeObject(t,a){if(Ac.am)return Ac;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 Ac={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},Ac}}const $f1=24*60;class jf1{constructor(t){Pt(this,"_vuecal",null),Pt(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)))}),Pt(this,"keyPressEnterCell",(a,c)=>{this._vuecal.$emit("cell-keypress-enter",c?{date:a,split:c}:a),this._vuecal.switchToNarrowerView()}),Pt(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}}),Pt(this,"minutesAtCursor",a=>{let c=0,n={x:0,y:0};const{timeStep:r,timeCellHeight:i,timeFrom:s}=this._vuecal.$props;return typeof a=="number"?c=a:typeof a=="object"&&(n=this.getPosition(a),c=Math.round(n.y*r/parseInt(i)+s)),{minutes:Math.max(Math.min(c,$f1),0),cursorCoords:n}}),this._vuecal=t}}const qf1=2,Ud=24*60;let q3,U3,Wd;class Uf1{constructor(t,a){Pt(this,"_vuecal",null),Pt(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,q3=a}createAnEvent(t,a,c){if(typeof t=="string"&&(t=q3.stringToDate(t)),!(t instanceof Date))return!1;const n=q3.dateToMinutes(t);a=a*1||qf1*60;const r=n+a,i=q3.addMinutes(new Date(t),a);c.end&&(typeof c.end=="string"&&(c.end=q3.stringToDate(c.end)),c.endTimeMinutes=q3.dateToMinutes(c.end));const s={...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(s,()=>this.deleteAnEvent(s))))return s.startDateF!==s.endDateF&&(s.daysCount=q3.countDays(s.start,s.end)),this._vuecal.mutableEvents.push(s),this._vuecal.addEventsToView([s]),this._vuecal.emitWithEvent("event-create",s),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(s),originalEvent:null}),s}addEventSegment(t){t.segments||(t.segments={},t.segments[q3.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:Ud,isFirstDay:!0,isLastDay:!1});const a=t.segments[q3.formatDateLite(t.end)];a&&(a.isLastDay=!1,a.endTimeMinutes=Ud);const c=q3.addDays(t.end,1),n=q3.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=q3.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 q3.formatDateLite(t.end);delete t.segments[q3.formatDateLite(t.end)],a--;const c=q3.subtractDays(t.end,1),n=q3.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(),s=t.end.getTime(),l=!1,f,u,h;for(!t.end.getHours()&&!t.end.getMinutes()&&(s-=1e3),t.segments={},t.repeat?(f=n,u=Math.min(r,t.repeat.until?q3.stringToDate(t.repeat.until).getTime():r)):(f=Math.max(n,i),u=Math.min(r,s));f<=u;){let d=!1;const m=q3.addDays(new Date(f),1).setHours(0,0,0,0);let v,p,g,y;if(t.repeat){const b=new Date(f),x=q3.formatDateLite(b);(l||t.occurrences&&t.occurrences[x])&&(l||(i=t.occurrences[x].start,h=new Date(i).setHours(0,0,0,0),s=t.occurrences[x].end),l=!0,d=!0),v=f===h,p=x===q3.formatDateLite(new Date(s)),g=new Date(v?i:f),y=q3.formatDateLite(g),p&&(l=!1)}else d=!0,v=f===i,p=u===s&&m>u,g=v?t.start:new Date(f),y=q3.formatDateLite(v?t.start:g);d&&(t.segments[y]={start:g,startTimeMinutes:v?t.startTimeMinutes:0,endTimeMinutes:p?t.endTimeMinutes:Ud,isFirstDay:v,isLastDay:p}),f=m}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){Wd=t.slice(0),U3={},t.forEach(n=>{Wd.shift(),U3[n._eid]||(U3[n._eid]={overlaps:[],start:n.start,position:0}),U3[n._eid].position=0,Wd.forEach(r=>{U3[r._eid]||(U3[r._eid]={overlaps:[],start:r.start,position:0});const i=this.eventInRange(r,n.start,n.end),s=a.overlapsPerTimeStep?q3.datesInSameTimeStep(n.start,r.start,a.timeStep):1;if(!n.background&&!n.allDay&&!r.background&&!r.allDay&&i&&s)U3[n._eid].overlaps.push(r._eid),U3[n._eid].overlaps=[...new Set(U3[n._eid].overlaps)],U3[r._eid].overlaps.push(n._eid),U3[r._eid].overlaps=[...new Set(U3[r._eid].overlaps)],U3[r._eid].position++;else{let l,f;(l=(U3[n._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&U3[n._eid].overlaps.splice(l,1),(f=(U3[r._eid]||{overlaps:[]}).overlaps.indexOf(n._eid))>-1&&U3[r._eid].overlaps.splice(f,1),U3[r._eid].position--}})});let c=0;for(const n in U3){const r=U3[n],i=r.overlaps.map(s=>({id:s,start:U3[s].start}));i.push({id:n,start:r.start}),i.sort((s,l)=>s.start<l.start?-1:s.start>l.start?1:s.id>l.id?-1:1),r.position=i.findIndex(s=>s.id===n),c=Math.max(this.getOverlapsStreak(r,U3),c)}return[U3,c]}getOverlapsStreak(t,a={}){let c=t.overlaps.length+1,n=[];return t.overlaps.forEach(r=>{n.includes(r)||t.overlaps.filter(s=>s!==r).forEach(s=>{a[s].overlaps.includes(r)||n.push(s)})}),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 Wf1={class:"vuecal__flex vuecal__weekdays-headings"},Yf1=["onClick"],Gf1={class:"vuecal__flex weekday-label",grow:""},Zf1={class:"full"},Xf1={class:"small"},Kf1={class:"xsmall"},Qf1={key:0},Jf1={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function eu1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("div",Wf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.headings,(i,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:s},[i.hide?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["vuecal__flex vuecal__heading",{today:i.today,clickable:r.cellHeadingsClickable}]),style:o.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())},[o.createVNode(o.Transition,{name:`slide-fade--${a.transitionDirection}`,appear:r.vuecal.transitions},{default:o.withCtx(()=>[(o.openBlock(),o.createElementBlock("div",{class:"vuecal__flex",column:"",key:r.vuecal.transitions?`${s}-${i.dayOfMonth}`:!1},[o.createElementVNode("div",Gf1,[o.renderSlot(e.$slots,"weekday-heading",{heading:r.cleanupHeading(i),view:r.view},()=>[o.createElementVNode("span",Zf1,o.toDisplayString(i.full),1),o.createElementVNode("span",Xf1,o.toDisplayString(i.small),1),o.createElementVNode("span",Kf1,o.toDisplayString(i.xsmall),1),i.dayOfMonth?(o.openBlock(),o.createElementBlock("span",Qf1," "+o.toDisplayString(i.dayOfMonth),1)):o.createCommentVNode("",!0)])]),r.vuecal.hasSplits&&r.vuecal.stickySplitLabels?(o.openBlock(),o.createElementBlock("div",Jf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.vuecal.daySplits,(l,f)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",l.class||!1]),key:f},[o.renderSlot(e.$slots,"split-label",{split:l,view:r.view},()=>[o.createTextVNode(o.toDisplayString(l.label),1)])],2))),128))])):o.createCommentVNode("",!0)]))]),_:2},1032,["name","appear"])],46,Yf1))],64))),128))])}const cn=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},tu1={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)}}},WO=cn(tu1,[["render",eu1]]),au1={class:"vuecal__header"},cu1={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},nu1=["onDragenter","onDragleave","onClick","aria-label"],ru1={key:1,class:"vuecal__title-bar"},iu1=["aria-label"],su1={class:"vuecal__flex vuecal__title",grow:""},ou1=["aria-label"],lu1={key:0,class:"vuecal__flex vuecal__split-days-headers"};function fu1(e,t,a,c,n,r){const i=o.resolveComponent("weekdays-headings");return o.openBlock(),o.createElementBlock("div",au1,[a.options.hideViewSelector?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",cu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.viewProps.views,(s,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:l},[s.enabled?(o.openBlock(),o.createElementBlock("button",{key:0,class:o.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":`${s.label} view`},o.toDisplayString(s.label),43,nu1)):o.createCommentVNode("",!0)],64))),128))])),a.options.hideTitleBar?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ru1,[o.createElementVNode("button",{class:o.normalizeClass(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":e.highlightedControl==="previous"}]),type:"button",onClick:t[0]||(t[0]=(...s)=>r.previous&&r.previous(...s)),onDragenter:t[1]||(t[1]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"previous",e.$data)),onDragleave:t[2]||(t[2]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"previous",e.$data)),"aria-label":`Previous ${r.view.id}`},[o.renderSlot(e.$slots,"arrow-prev")],42,iu1),o.createElementVNode("div",su1,[o.createVNode(o.Transition,{name:a.options.transitions?`slide-fade--${r.transitionDirection}`:""},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.broaderView?"button":"span"),{type:!!r.broaderView&&"button",key:`${r.view.id}${r.view.startDate.toString()}`,onClick:t[3]||(t[3]=s=>!!r.broaderView&&r.switchToBroaderView()),"aria-label":!!r.broaderView&&`Go to ${r.broaderView} view`},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),a.options.todayButton?(o.openBlock(),o.createElementBlock("button",{key:0,class:o.normalizeClass(["vuecal__today-btn",{"vuecal__today-btn--highlighted":e.highlightedControl==="today"}]),type:"button",onClick:t[4]||(t[4]=(...s)=>r.goToToday&&r.goToToday(...s)),onDragenter:t[5]||(t[5]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"today",e.$data)),onDragleave:t[6]||(t[6]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"today",e.$data)),"aria-label":"Today"},[o.renderSlot(e.$slots,"today-button")],34)):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":e.highlightedControl==="next"}]),type:"button",onClick:t[7]||(t[7]=(...s)=>r.next&&r.next(...s)),onDragenter:t[8]||(t[8]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"next",e.$data)),onDragleave:t[9]||(t[9]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"next",e.$data)),"aria-label":`Next ${r.view.id}`},[o.renderSlot(e.$slots,"arrow-next")],42,ou1)])),a.viewProps.weekDaysInHeader?(o.openBlock(),o.createBlock(i,{key:2,"week-days":a.weekDays,"transition-direction":r.transitionDirection,"switch-to-narrower-view":a.switchToNarrowerView},o.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:s,view:l})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:s,view:l})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:s})=>[o.renderSlot(e.$slots,"split-label",{split:s,view:r.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:`slide-fade--${r.transitionDirection}`},{default:o.withCtx(()=>[r.showDaySplits?(o.openBlock(),o.createElementBlock("div",lu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.daySplits,(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",s.class||!1]),key:l},[o.renderSlot(e.$slots,"split-label",{split:s,view:r.view.id},()=>[o.createTextVNode(o.toDisplayString(s.label),1)])],2))),128))])):o.createCommentVNode("",!0)]),_:3},8,["name"])])}const uu1={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:WO},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}}},hu1=cn(uu1,[["render",fu1]]),du1=["draggable"];function mu1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__event",r.eventClasses]),style:o.normalizeStyle(r.eventStyles),tabindex:"0",onFocus:t[4]||(t[4]=(...i)=>r.focusEvent&&r.focusEvent(...i)),onKeypress:t[5]||(t[5]=o.withKeys(o.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]=o.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?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=o.withModifiers((...i)=>r.deleteEvent&&r.deleteEvent(...i),["stop"])),onTouchstart:t[1]||(t[1]=o.withModifiers((...i)=>r.touchDeleteEvent&&r.touchDeleteEvent(...i),["stop"]))},o.toDisplayString(r.vuecal.texts.deleteEvent),33)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"event",{event:a.event,view:r.view.id}),r.resizable?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=o.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"])),onTouchstart:t[3]||(t[3]=o.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"]))},null,32)):o.createCommentVNode("",!0)],46,du1)}const pu1={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}}},vu1=cn(pu1,[["render",mu1]]),gu1=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],yu1={key:0,class:"cell-time-labels"},bu1=["innerHTML"],zu1={key:2,class:"vuecal__cell-events"},xu1=["title"];function Mu1(e,t,a,c,n,r){const i=o.resolveComponent("event");return o.openBlock(),o.createBlock(o.TransitionGroup,{class:o.normalizeClass(["vuecal__cell",r.cellClasses]),name:`slide-fade--${r.transitionDirection}`,tag:"div",appear:a.options.transitions,style:o.normalizeStyle(r.cellStyles)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.splitsCount?r.splits:1,(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__flex vuecal__cell-content",r.splitsCount&&r.splitClasses(s)]),key:a.options.transitions?`${r.view.id}-${a.data.content}-${l}`:l,"data-split":r.splitsCount?s.id:!1,column:"",tabindex:"0","aria-label":a.data.content,onFocus:t[0]||(t[0]=f=>r.onCellFocus(f)),onKeypress:t[1]||(t[1]=o.withKeys(f=>r.onCellkeyPressEnter(f),["enter"])),onTouchstart:f=>!r.isDisabled&&r.onCellTouchStart(f,r.splitsCount?s.id:null),onMousedown:f=>!r.isDisabled&&r.onCellMouseDown(f,r.splitsCount?s.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?s.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?s.id:null)},[a.options.showTimeInCells&&a.options.time&&r.isWeekOrDayView&&!a.allDay?(o.openBlock(),o.createElementBlock("div",yu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.vuecal.timeCells,(f,u)=>(o.openBlock(),o.createElementBlock("span",{class:"cell-time-label",key:u},o.toDisplayString(f.label),1))),128))])):o.createCommentVNode("",!0),r.isWeekOrDayView&&!a.allDay&&r.specialHours.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(r.specialHours,(f,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__special-hours",`vuecal__special-hours--day${f.day} ${f.class}`]),style:o.normalizeStyle(`height: ${f.height}px;top: ${f.top}px`)},[f.label?(o.openBlock(),o.createElementBlock("div",{key:0,class:"special-hours-label",innerHTML:f.label},null,8,bu1)):o.createCommentVNode("",!0)],6))),256)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"cell-content",{events:r.events,selectCell:f=>r.selectCell(f,!0),split:r.splitsCount?s:!1}),r.eventsCount&&(r.isWeekOrDayView||r.view.id==="month"&&a.options.eventsOnMonthView)?(o.openBlock(),o.createElementBlock("div",zu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.splitsCount?s.events:r.events,(f,u)=>(o.openBlock(),o.createBlock(i,{key:u,"cell-formatted-date":a.data.formattedDate,event:f,"all-day":a.allDay,"cell-events":r.splitsCount?s.events:r.events,overlaps:((r.splitsCount?s.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).overlaps,"event-position":((r.splitsCount?s.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).position,"overlaps-streak":r.splitsCount?s.overlapsStreak:e.cellOverlapsStreak},{event:o.withCtx(({event:h,view:d})=>[o.renderSlot(e.$slots,"event",{view:d,event:h})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):o.createCommentVNode("",!0)],42,gu1))),128)),r.timelineVisible?(o.openBlock(),o.createElementBlock("div",{class:"vuecal__now-line",style:o.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,xu1)):o.createCommentVNode("",!0)]),_:3},8,["class","name","appear","style"])}const Cu1={inject:["vuecal","utils","modules","view","domEvents"],components:{Event:vu1},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 s=this.isDOMElementAnEvent(e.target);!s&&n._eid&&((this.view.events.find(l=>l._eid===n._eid)||{}).focused=!1),this.editEvents.create&&!s&&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]||{},s=r.daysCount===1&&r.startTimeMinutes<n&&r.endTimeMinutes>c,l=r.daysCount>1&&i.startTimeMinutes<n&&i.endTimeMinutes>c,f=!1;return r.allDay||s||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}}},YO=cn(Cu1,[["render",Mu1]]),Hu1={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function Vu1(e,t,a,c,n,r){const i=o.resolveComponent("vuecal-cell");return o.openBlock(),o.createElementBlock("div",{class:"vuecal__flex vuecal__all-day",style:o.normalizeStyle(a.cellOrSplitMinWidth&&{height:a.height})},[a.cellOrSplitMinWidth?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Hu1,[o.createElementVNode("span",null,o.toDisplayString(a.label),1)])),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",style:o.normalizeStyle(a.cellOrSplitMinWidth?`min-width: ${a.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.cells,(s,l)=>(o.openBlock(),o.createBlock(i,{key:l,options:a.options,"edit-events":r.editEvents,data:s,"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:o.withCtx(({event:f,view:u})=>[o.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 wu1={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":YO},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)}}},_u1=cn(wu1,[["render",Vu1]]),Lu1=["lang"],ku1={class:"default"},Su1={key:0,class:"vuecal__flex vuecal__body",grow:""},Au1=["onBlur","innerHTML"],Nu1=["innerHTML"],Tu1=["innerHTML"],Eu1={class:"vuecal__flex",row:"",grow:""},Ou1={key:0,class:"vuecal__time-column"},Du1={class:"vuecal__time-cell-label"},Pu1={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},Bu1=["wrap","column"],Ru1=["onBlur","innerHTML"],Fu1=["innerHTML"],Iu1=["innerHTML"],$u1=["wrap"],ju1=["innerHTML"],qu1=["innerHTML"],Uu1={key:2,class:"vuecal__cell-events-count"},Wu1={key:3,class:"vuecal__no-event"},Yu1=["onBlur","innerHTML"],Gu1=["innerHTML"],Zu1={key:2,class:"vuecal__event-time"},Xu1={key:0},Ku1={key:1,class:"days-to-end"},Qu1=["innerHTML"],Ju1={key:0,class:"vuecal__scrollbar-check"};function eh1(e,t,a,c,n,r){const i=o.resolveComponent("vuecal-header"),s=o.resolveComponent("all-day-bar"),l=o.resolveComponent("weekdays-headings"),f=o.resolveComponent("vuecal-cell");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__flex vuecal",r.cssClasses]),column:"",ref:"vuecal",lang:a.locale},[o.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},o.createSlots({"arrow-prev":o.withCtx(()=>[o.renderSlot(e.$slots,"arrow-prev",{},()=>[t[0]||(t[0]=o.createTextVNode(" ")),t[1]||(t[1]=o.createElementVNode("i",{class:"angle"},null,-1)),t[2]||(t[2]=o.createTextVNode(" "))])]),"arrow-next":o.withCtx(()=>[o.renderSlot(e.$slots,"arrow-next",{},()=>[t[3]||(t[3]=o.createTextVNode(" ")),t[4]||(t[4]=o.createElementVNode("i",{class:"angle"},null,-1)),t[5]||(t[5]=o.createTextVNode(" "))])]),"today-button":o.withCtx(()=>[o.renderSlot(e.$slots,"today-button",{},()=>[o.createElementVNode("span",ku1,o.toDisplayString(n.texts.today),1)])]),title:o.withCtx(()=>[o.renderSlot(e.$slots,"title",{title:r.viewTitle,view:n.view},()=>[o.createTextVNode(o.toDisplayString(r.viewTitle),1)])]),_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:u,view:h})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:u,view:h})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:u})=>[o.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?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Su1,[o.createVNode(o.Transition,{name:`slide-fade--${n.transitionDirection}`,appear:a.transitions},{default:o.withCtx(()=>[(o.openBlock(),o.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)?(o.openBlock(),o.createBlock(s,o.normalizeProps(o.mergeProps({key:0},r.allDayBar)),{event:o.withCtx(({event:u,view:h})=>[o.renderSlot(e.$slots,"event",{view:h,event:u},()=>[r.editEvents.title&&u.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:d=>r.onEventTitleBlur(d,u),innerHTML:u.title},null,40,Au1)):u.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,Nu1)):o.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,Tu1)):o.createCommentVNode("",!0)])]),_:3},16)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__bg",{vuecal__flex:!r.hasTimeColumn}]),column:""},[o.createElementVNode("div",Eu1,[r.hasTimeColumn?(o.openBlock(),o.createElementBlock("div",Ou1,[a.showAllDayEvents&&r.cellOrSplitMinWidth&&!(r.isDayView&&!a.minSplitWidth)?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__all-day-text",style:o.normalizeStyle({height:r.allDayBar.height})},[o.createElementVNode("span",null,o.toDisplayString(n.texts.allDay),1)],4)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.timeCells,(u,h)=>(o.openBlock(),o.createElementBlock("div",{class:"vuecal__time-cell",key:h,style:o.normalizeStyle(`height: ${a.timeCellHeight}px`)},[o.renderSlot(e.$slots,"time-cell",{hours:u.hours,minutes:u.minutes},()=>[t[6]||(t[6]=o.createElementVNode("span",{class:"vuecal__time-cell-line"},null,-1)),o.createElementVNode("span",Du1,o.toDisplayString(u.label),1)])],4))),128))])):o.createCommentVNode("",!0),a.showWeekNumbers&&r.isMonthView?(o.openBlock(),o.createElementBlock("div",Pu1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(6,u=>o.createElementVNode("div",{class:"vuecal__flex vuecal__week-number-cell",key:u,grow:""},[o.renderSlot(e.$slots,"week-number-cell",{week:r.getWeekNumber(u-1)},()=>[o.createTextVNode(o.toDisplayString(r.getWeekNumber(u-1)),1)])])),64))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__flex vuecal__cells",`${n.view.id}-view`]),grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,column:!!r.cellOrSplitMinWidth},[r.cellOrSplitMinWidth&&r.isWeekView?(o.openBlock(),o.createBlock(l,{key:0,"transition-direction":n.transitionDirection,"week-days":r.weekDays,"switch-to-narrower-view":r.switchToNarrowerView,style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},o.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:u,view:h})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:u,view:h})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:u})=>[o.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?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.daySplits,(u,h)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",u.class||!1]),key:h},[o.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id},()=>[o.createTextVNode(o.toDisplayString(u.label),1)])],2))),128))],4)):o.createCommentVNode("",!0),a.showAllDayEvents&&r.hasTimeColumn&&(r.isWeekView&&r.cellOrSplitMinWidth||r.isDayView&&r.hasSplits&&a.minSplitWidth)?(o.openBlock(),o.createBlock(s,o.normalizeProps(o.mergeProps({key:2},r.allDayBar)),{event:o.withCtx(({event:u,view:h})=>[o.renderSlot(e.$slots,"event",{view:h,event:u},()=>[r.editEvents.title&&u.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:d=>r.onEventTitleBlur(d,u),innerHTML:u.title},null,40,Ru1)):u.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,Fu1)):o.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,Iu1)):o.createCommentVNode("",!0)])]),_:3},16)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"vuecal__flex",ref:u=>n.cellsEl=u,grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.viewCells,(u,h)=>(o.openBlock(),o.createBlock(f,{key:h,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":o.withCtx(({events:d,split:m,selectCell:v})=>[o.renderSlot(e.$slots,"cell-content",{cell:u,view:n.view,goNarrower:v,events:d},()=>[m&&!a.stickySplitLabels?(o.openBlock(),o.createElementBlock("div",{key:0,class:"split-label",innerHTML:m.label},null,8,ju1)):o.createCommentVNode("",!0),u.content?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__cell-date",innerHTML:u.content},null,8,qu1)):o.createCommentVNode("",!0),(r.isMonthView&&!a.eventsOnMonthView||r.isYearsOrYearView&&a.eventsCountOnYearView)&&d.length?(o.openBlock(),o.createElementBlock("div",Uu1,[o.renderSlot(e.$slots,"events-count",{view:n.view,events:d},()=>[o.createTextVNode(o.toDisplayString(d.length),1)])])):o.createCommentVNode("",!0),!r.cellOrSplitHasEvents(d,m)&&r.isWeekOrDayView?(o.openBlock(),o.createElementBlock("div",Wu1,[o.renderSlot(e.$slots,"no-event",{},()=>[o.createTextVNode(o.toDisplayString(n.texts.noEvent),1)])])):o.createCommentVNode("",!0)])]),event:o.withCtx(({event:d,view:m})=>[o.renderSlot(e.$slots,"event",{view:m,event:d},()=>[r.editEvents.title&&d.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:v=>r.onEventTitleBlur(v,d),innerHTML:d.title},null,40,Yu1)):d.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:d.title},null,8,Gu1)):o.createCommentVNode("",!0),a.time&&!d.allDay&&!(r.isMonthView&&(d.allDay||a.showAllDayEvents==="short"))&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",Zu1,[o.createTextVNode(o.toDisplayString(n.utils.date.formatTime(d.start,r.TimeFormat)),1),d.endTimeMinutes?(o.openBlock(),o.createElementBlock("span",Xu1," - "+o.toDisplayString(n.utils.date.formatTime(d.end,r.TimeFormat,null,!0)),1)):o.createCommentVNode("",!0),d.daysCount>1&&(d.segments[u.formattedDate]||{}).isFirstDay?(o.openBlock(),o.createElementBlock("small",Ku1," +"+o.toDisplayString(d.daysCount-1)+o.toDisplayString((n.texts.day[0]||"").toLowerCase()),1)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),d.content&&!(r.isMonthView&&d.allDay&&a.showAllDayEvents==="short")&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:3,class:"vuecal__event-content",innerHTML:d.content},null,8,Qu1)):o.createCommentVNode("",!0)])]),"no-event":o.withCtx(()=>[o.renderSlot(e.$slots,"no-event",{},()=>[o.createTextVNode(o.toDisplayString(n.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,$u1)],10,Bu1)])],2)]))]),_:3},8,["name","appear"]),n.ready?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Ju1,t[7]||(t[7]=[o.createElementVNode("div",null,null,-1)])))]))],10,Lu1)}const _n=24*60,nl={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"},YV=["years","year","month","week","day"],GV=new If1(nl),th1={name:"vue-cal",components:{"vuecal-cell":YO,"vuecal-header":hu1,WeekdaysHeadings:WO,AllDayBar:_u1},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:_n},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:{...nl},utils:{date:(this.disableDatePrototypes?GV.removePrototypes():!1)||GV,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({},nl,e),this.utils.date.updateTexts(this.texts);return}const t=await Ff1(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({},nl,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 YV.includes(e)||(console.error(`Vue Cal: invalid active-view parameter provided: "${e}".
|
|
823
|
+
`)}return d1}function e1(r1,d1){var x1={},p1=r1.style||{};return p1.fontStyle&&q(r1).fontStyle==="italic"&&(x1.italic=!0),p1.fontWeight&&(q(r1).fontWeight.startsWith("bold")||parseInt(q(r1).fontWeight)>=700)&&(x1.bold=!0),Object.keys(x1).length>0&&(d1=k(d1,x1)),parseFloat(p1.textIndent||0)>0&&(d1=new h.default().insert(" ").concat(d1)),d1}function o1(r1,d1){var x1=r1.data;if(r1.parentNode.tagName==="O:P")return d1.insert(x1.trim());if(x1.trim().length===0&&r1.parentNode.classList.contains("ql-clipboard"))return d1;if(!q(r1.parentNode).whiteSpace.startsWith("pre")){var p1=function(E1,R1){return R1=R1.replace(/[^\u00a0]/g,""),R1.length<1&&E1?" ":R1};x1=x1.replace(/\r\n/g," ").replace(/\n/g," "),x1=x1.replace(/\s\s+/g,p1.bind(p1,!0)),(r1.previousSibling==null&&A(r1.parentNode)||r1.previousSibling!=null&&A(r1.previousSibling))&&(x1=x1.replace(/^\s+/,p1.bind(p1,!1))),(r1.nextSibling==null&&A(r1.parentNode)||r1.nextSibling!=null&&A(r1.nextSibling))&&(x1=x1.replace(/\s+$/,p1.bind(p1,!1)))}return d1.insert(x1)}c.default=T,c.matchAttributor=a1,c.matchBlot=J,c.matchNewline=z1,c.matchSpacing=l1,c.matchText=o1},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(6),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return r(p,[{key:"optimize",value:function(y){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(l.default);m.blotName="bold",m.tagName=["STRONG","B"],c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.addControls=c.default=void 0;var r=function(){function _(V,O){var j=[],N=!0,B=!1,F=void 0;try{for(var X=V[Symbol.iterator](),Y;!(N=(Y=X.next()).done)&&(j.push(Y.value),!(O&&j.length===O));N=!0);}catch(U){B=!0,F=U}finally{try{!N&&X.return&&X.return()}finally{if(B)throw F}}return j}return function(V,O){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return _(V,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function _(V,O){for(var j=0;j<O.length;j++){var N=O[j];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(V,N.key,N)}}return function(V,O,j){return O&&_(V.prototype,O),j&&_(V,j),V}}(),s=n(2),l=y(s),f=n(0),u=y(f),h=n(5),d=y(h),m=n(10),v=y(m),p=n(9),g=y(p);function y(_){return _&&_.__esModule?_:{default:_}}function b(_,V,O){return V in _?Object.defineProperty(_,V,{value:O,enumerable:!0,configurable:!0,writable:!0}):_[V]=O,_}function x(_,V){if(!(_ instanceof V))throw new TypeError("Cannot call a class as a function")}function z(_,V){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:_}function M(_,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);_.prototype=Object.create(V&&V.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(_,V):_.__proto__=V)}var H=(0,v.default)("quill:toolbar"),C=function(_){M(V,_);function V(O,j){x(this,V);var N=z(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,O,j));if(Array.isArray(N.options.container)){var B=document.createElement("div");L(B,N.options.container),O.container.parentNode.insertBefore(B,O.container),N.container=B}else typeof N.options.container=="string"?N.container=document.querySelector(N.options.container):N.container=N.options.container;if(!(N.container instanceof HTMLElement)){var F;return F=H.error("Container required for toolbar",N.options),z(N,F)}return N.container.classList.add("ql-toolbar"),N.controls=[],N.handlers={},Object.keys(N.options.handlers).forEach(function(X){N.addHandler(X,N.options.handlers[X])}),[].forEach.call(N.container.querySelectorAll("button, select"),function(X){N.attach(X)}),N.quill.on(d.default.events.EDITOR_CHANGE,function(X,Y){X===d.default.events.SELECTION_CHANGE&&N.update(Y)}),N.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){var X=N.quill.selection.getRange(),Y=r(X,1),U=Y[0];N.update(U)}),N}return i(V,[{key:"addHandler",value:function(j,N){this.handlers[j]=N}},{key:"attach",value:function(j){var N=this,B=[].find.call(j.classList,function(X){return X.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){H.warn("ignoring attaching to disabled format",B,j);return}if(u.default.query(B)==null){H.warn("ignoring attaching to nonexistent format",B,j);return}}var F=j.tagName==="SELECT"?"change":"click";j.addEventListener(F,function(X){var Y=void 0;if(j.tagName==="SELECT"){if(j.selectedIndex<0)return;var U=j.options[j.selectedIndex];U.hasAttribute("selected")?Y=!1:Y=U.value||!1}else j.classList.contains("ql-active")?Y=!1:Y=j.value||!j.hasAttribute("value"),X.preventDefault();N.quill.focus();var D=N.quill.selection.getRange(),T=r(D,1),k=T[0];if(N.handlers[B]!=null)N.handlers[B].call(N,Y);else if(u.default.query(B).prototype instanceof u.default.Embed){if(Y=prompt("Enter "+B),!Y)return;N.quill.updateContents(new l.default().retain(k.index).delete(k.length).insert(b({},B,Y)),d.default.sources.USER)}else N.quill.format(B,Y,d.default.sources.USER);N.update(k)}),this.controls.push([B,j])}}},{key:"update",value:function(j){var N=j==null?{}:this.quill.getFormat(j);this.controls.forEach(function(B){var F=r(B,2),X=F[0],Y=F[1];if(Y.tagName==="SELECT"){var U=void 0;if(j==null)U=null;else if(N[X]==null)U=Y.querySelector("option[selected]");else if(!Array.isArray(N[X])){var D=N[X];typeof D=="string"&&(D=D.replace(/\"/g,'\\"')),U=Y.querySelector('option[value="'+D+'"]')}U==null?(Y.value="",Y.selectedIndex=-1):U.selected=!0}else if(j==null)Y.classList.remove("ql-active");else if(Y.hasAttribute("value")){var T=N[X]===Y.getAttribute("value")||N[X]!=null&&N[X].toString()===Y.getAttribute("value")||N[X]==null&&!Y.getAttribute("value");Y.classList.toggle("ql-active",T)}else Y.classList.toggle("ql-active",N[X]!=null)})}}]),V}(g.default);C.DEFAULTS={};function w(_,V,O){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+V),O!=null&&(j.value=O),_.appendChild(j)}function L(_,V){Array.isArray(V[0])||(V=[V]),V.forEach(function(O){var j=document.createElement("span");j.classList.add("ql-formats"),O.forEach(function(N){if(typeof N=="string")w(j,N);else{var B=Object.keys(N)[0],F=N[B];Array.isArray(F)?S(j,B,F):w(j,B,F)}}),_.appendChild(j)})}function S(_,V,O){var j=document.createElement("select");j.classList.add("ql-"+V),O.forEach(function(N){var B=document.createElement("option");N!==!1?B.setAttribute("value",N):B.setAttribute("selected","selected"),j.appendChild(B)}),_.appendChild(j)}C.DEFAULTS={container:null,handlers:{clean:function(){var V=this,O=this.quill.getSelection();if(O!=null)if(O.length==0){var j=this.quill.getFormat();Object.keys(j).forEach(function(N){u.default.query(N,u.default.Scope.INLINE)!=null&&V.quill.format(N,!1)})}else this.quill.removeFormat(O,d.default.sources.USER)},direction:function(V){var O=this.quill.getFormat().align;V==="rtl"&&O==null?this.quill.format("align","right",d.default.sources.USER):!V&&O==="right"&&this.quill.format("align",!1,d.default.sources.USER),this.quill.format("direction",V,d.default.sources.USER)},indent:function(V){var O=this.quill.getSelection(),j=this.quill.getFormat(O),N=parseInt(j.indent||0);if(V==="+1"||V==="-1"){var B=V==="+1"?1:-1;j.direction==="rtl"&&(B*=-1),this.quill.format("indent",N+B,d.default.sources.USER)}},link:function(V){V===!0&&(V=prompt("Enter link URL:")),this.quill.format("link",V,d.default.sources.USER)},list:function(V){var O=this.quill.getSelection(),j=this.quill.getFormat(O);V==="check"?j.list==="checked"||j.list==="unchecked"?this.quill.format("list",!1,d.default.sources.USER):this.quill.format("list","unchecked",d.default.sources.USER):this.quill.format("list",V,d.default.sources.USER)}}},c.default=C,c.addControls=L},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(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(28),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(g,y){u(this,p);var b=h(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,g));return b.label.innerHTML=y,b.container.classList.add("ql-color-picker"),[].slice.call(b.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),b}return r(p,[{key:"buildItem",value:function(y){var b=i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,y);return b.style.backgroundColor=y.getAttribute("value")||"",b}},{key:"selectItem",value:function(y,b){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,b);var x=this.label.querySelector(".ql-color-label"),z=y&&y.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=z:x.style.fill=z)}}]),p}(l.default);c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(28),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(g,y){u(this,p);var b=h(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,g));return b.container.classList.add("ql-icon-picker"),[].forEach.call(b.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=y[x.getAttribute("data-value")||""]}),b.defaultItem=b.container.querySelector(".ql-selected"),b.selectItem(b.defaultItem),b}return r(p,[{key:"selectItem",value:function(y,b){i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,b),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),p}(l.default);c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function l(f,u){for(var h=0;h<u.length;h++){var d=u[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,d.key,d)}}return function(f,u,h){return u&&l(f.prototype,u),h&&l(f,h),f}}();function i(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(f,u){var h=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(){h.root.style.marginTop=-1*h.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 h=u.left+u.width/2-this.root.offsetWidth/2,d=u.bottom+this.quill.root.scrollTop;this.root.style.left=h+"px",this.root.style.top=d+"px",this.root.classList.remove("ql-flip");var m=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),p=0;if(v.right>m.right&&(p=m.right-v.right,this.root.style.left=h+p+"px"),v.left<m.left&&(p=m.left-v.left,this.root.style.left=h+p+"px"),v.bottom>m.bottom){var g=v.bottom-v.top,y=u.bottom-u.top+g;this.root.style.top=d-y+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();c.default=s},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function S(_,V){var O=[],j=!0,N=!1,B=void 0;try{for(var F=_[Symbol.iterator](),X;!(j=(X=F.next()).done)&&(O.push(X.value),!(V&&O.length===V));j=!0);}catch(Y){N=!0,B=Y}finally{try{!j&&F.return&&F.return()}finally{if(N)throw B}}return O}return function(_,V){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return S(_,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function S(_,V,O){_===null&&(_=Function.prototype);var j=Object.getOwnPropertyDescriptor(_,V);if(j===void 0){var N=Object.getPrototypeOf(_);return N===null?void 0:S(N,V,O)}else{if("value"in j)return j.value;var B=j.get;return B===void 0?void 0:B.call(O)}},s=function(){function S(_,V){for(var O=0;O<V.length;O++){var j=V[O];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(_,j.key,j)}}return function(_,V,O){return V&&S(_.prototype,V),O&&S(_,O),_}}(),l=n(3),f=x(l),u=n(8),h=x(u),d=n(43),m=x(d),v=n(27),p=x(v),g=n(15),y=n(41),b=x(y);function x(S){return S&&S.__esModule?S:{default:S}}function z(S,_){if(!(S instanceof _))throw new TypeError("Cannot call a class as a function")}function M(S,_){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:S}function H(S,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);S.prototype=Object.create(_&&_.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(S,_):S.__proto__=_)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],w=function(S){H(_,S);function _(V,O){z(this,_),O.modules.toolbar!=null&&O.modules.toolbar.container==null&&(O.modules.toolbar.container=C);var j=M(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,V,O));return j.quill.container.classList.add("ql-snow"),j}return s(_,[{key:"extendToolbar",value:function(O){O.container.classList.add("ql-snow"),this.buildButtons([].slice.call(O.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(O.container.querySelectorAll("select")),b.default),this.tooltip=new L(this.quill,this.options.bounds),O.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(j,N){O.handlers.link.call(O,!N.format.link)})}}]),_}(m.default);w.DEFAULTS=(0,f.default)(!0,{},m.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){if(_){var V=this.quill.getSelection();if(V==null||V.length==0)return;var O=this.quill.getText(V);/^\S+@\S+\.\S+$/.test(O)&&O.indexOf("mailto:")!==0&&(O="mailto:"+O);var j=this.quill.theme.tooltip;j.edit("link",O)}else this.quill.format("link",!1)}}}}});var L=function(S){H(_,S);function _(V,O){z(this,_);var j=M(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,V,O));return j.preview=j.root.querySelector("a.ql-preview"),j}return s(_,[{key:"listen",value:function(){var O=this;i(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(j){O.root.classList.contains("ql-editing")?O.save():O.edit("link",O.preview.textContent),j.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(j){if(O.linkRange!=null){var N=O.linkRange;O.restoreFocus(),O.quill.formatText(N,"link",!1,h.default.sources.USER),delete O.linkRange}j.preventDefault(),O.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(j,N,B){if(j!=null){if(j.length===0&&B===h.default.sources.USER){var F=O.quill.scroll.descendant(p.default,j.index),X=r(F,2),Y=X[0],U=X[1];if(Y!=null){O.linkRange=new g.Range(j.index-U,Y.length());var D=p.default.formats(Y.domNode);O.preview.textContent=D,O.preview.setAttribute("href",D),O.show(),O.position(O.quill.getBounds(O.linkRange));return}}else delete O.linkRange;O.hide()}})}},{key:"show",value:function(){i(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),_}(d.BaseTooltip);L.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=w},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(29),i=C1(r),s=n(36),l=n(38),f=n(64),u=n(65),h=C1(u),d=n(66),m=C1(d),v=n(67),p=C1(v),g=n(37),y=n(26),b=n(39),x=n(40),z=n(56),M=C1(z),H=n(68),C=C1(H),w=n(27),L=C1(w),S=n(69),_=C1(S),V=n(70),O=C1(V),j=n(71),N=C1(j),B=n(72),F=C1(B),X=n(73),Y=C1(X),U=n(13),D=C1(U),T=n(74),k=C1(T),q=n(75),G=C1(q),A=n(57),R=C1(A),K=n(41),a1=C1(K),J=n(28),s1=C1(J),W=n(59),u1=C1(W),z1=n(60),l1=C1(z1),e1=n(61),o1=C1(e1),r1=n(108),d1=C1(r1),x1=n(62),p1=C1(x1);function C1(E1){return E1&&E1.__esModule?E1:{default:E1}}i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":x.SizeStyle},!0),i.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":b.FontClass,"formats/size":x.SizeClass,"formats/blockquote":h.default,"formats/code-block":D.default,"formats/header":m.default,"formats/list":p.default,"formats/bold":M.default,"formats/code":U.Code,"formats/italic":C.default,"formats/link":L.default,"formats/script":_.default,"formats/strike":O.default,"formats/underline":N.default,"formats/image":F.default,"formats/video":Y.default,"formats/list/item":v.ListItem,"modules/formula":k.default,"modules/syntax":G.default,"modules/toolbar":R.default,"themes/bubble":d1.default,"themes/snow":p1.default,"ui/icons":a1.default,"ui/picker":s1.default,"ui/icon-picker":l1.default,"ui/color-picker":u1.default,"ui/tooltip":o1.default},!0),c.default=i.default},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.IndentClass=void 0;var r=function(){function p(g,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return function(g,y,b){return y&&p(g.prototype,y),b&&p(g,b),g}}(),i=function p(g,y,b){g===null&&(g=Function.prototype);var x=Object.getOwnPropertyDescriptor(g,y);if(x===void 0){var z=Object.getPrototypeOf(g);return z===null?void 0:p(z,y,b)}else{if("value"in x)return x.value;var M=x.get;return M===void 0?void 0:M.call(b)}},s=n(0),l=f(s);function f(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=function(p){d(g,p);function g(){return u(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"add",value:function(b,x){if(x==="+1"||x==="-1"){var z=this.value(b)||0;x=x==="+1"?z+1:z-1}return x===0?(this.remove(b),!0):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"add",this).call(this,b,x)}},{key:"canAdd",value:function(b,x){return i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,x)||i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,parseInt(x))}},{key:"value",value:function(b){return parseInt(i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,b))||void 0}}]),g}(l.default.Attributor.Class),v=new m("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=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="blockquote",h.tagName="blockquote",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function m(v,p){for(var g=0;g<p.length;g++){var y=p[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,p,g){return p&&m(v.prototype,p),g&&m(v,g),v}}(),i=n(4),s=l(i);function l(m){return m&&m.__esModule?m:{default:m}}function f(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function u(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function h(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var d=function(m){h(v,m);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"formats",value:function(g){return this.tagName.indexOf(g.tagName)+1}}]),v}(s.default);d.blotName="header",d.tagName=["H1","H2","H3","H4","H5","H6"],c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.ListItem=void 0;var r=function(){function z(M,H){for(var C=0;C<H.length;C++){var w=H[C];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(M,w.key,w)}}return function(M,H,C){return H&&z(M.prototype,H),C&&z(M,C),M}}(),i=function z(M,H,C){M===null&&(M=Function.prototype);var w=Object.getOwnPropertyDescriptor(M,H);if(w===void 0){var L=Object.getPrototypeOf(M);return L===null?void 0:z(L,H,C)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(C)}},s=n(0),l=m(s),f=n(4),u=m(f),h=n(25),d=m(h);function m(z){return z&&z.__esModule?z:{default:z}}function v(z,M,H){return M in z?Object.defineProperty(z,M,{value:H,enumerable:!0,configurable:!0,writable:!0}):z[M]=H,z}function p(z,M){if(!(z instanceof M))throw new TypeError("Cannot call a class as a function")}function g(z,M){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:z}function y(z,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);z.prototype=Object.create(M&&M.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(z,M):z.__proto__=M)}var b=function(z){y(M,z);function M(){return p(this,M),g(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return r(M,[{key:"format",value:function(C,w){C===x.blotName&&!w?this.replaceWith(l.default.create(this.statics.scope)):i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"format",this).call(this,C,w)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,w){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,w),this):(this.parent.unwrap(),i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replaceWith",this).call(this,C,w))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:i(M.__proto__||Object.getPrototypeOf(M),"formats",this).call(this,C)}}]),M}(u.default);b.blotName="list-item",b.tagName="LI";var x=function(z){y(M,z),r(M,null,[{key:"create",value:function(C){var w=C==="ordered"?"OL":"UL",L=i(M.__proto__||Object.getPrototypeOf(M),"create",this).call(this,w);return(C==="checked"||C==="unchecked")&&L.setAttribute("data-checked",C==="checked"),L}},{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 M(H){p(this,M);var C=g(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,H)),w=function(S){if(S.target.parentNode===H){var _=C.statics.formats(H),V=l.default.find(S.target);_==="checked"?V.format("list","unchecked"):_==="unchecked"&&V.format("list","checked")}};return H.addEventListener("touchstart",w),H.addEventListener("mousedown",w),C}return r(M,[{key:"format",value:function(C,w){this.children.length>0&&this.children.tail.format(C,w)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,w){if(C instanceof b)i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertBefore",this).call(this,C,w);else{var L=w==null?this.length():w.offset(this),S=this.split(L);S.parent.insertBefore(C,S)}}},{key:"optimize",value:function(C){i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,C);var w=this.next;w!=null&&w.prev===this&&w.statics.blotName===this.statics.blotName&&w.domNode.tagName===this.domNode.tagName&&w.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(w.moveChildren(this),w.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var w=l.default.create(this.statics.defaultChild);C.moveChildren(w),this.appendChild(w)}i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replace",this).call(this,C)}}]),M}(d.default);x.blotName="list",x.scope=l.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[b],c.ListItem=b,c.default=x},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(56),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="italic",h.tagName=["EM","I"],c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,g,y){return g&&v(p.prototype,g),y&&v(p,y),p}}(),i=function v(p,g,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,g);if(b===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:v(x,g,y)}else{if("value"in b)return b.value;var z=b.get;return z===void 0?void 0:z.call(y)}},s=n(6),l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function h(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function d(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var m=function(v){d(p,v);function p(){return u(this,p),h(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return r(p,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):i(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),p}(l.default);m.blotName="script",m.tagName=["SUB","SUP"],c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="strike",h.tagName="S",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function f(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function u(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=function(d){u(m,d);function m(){return l(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(i.default);h.blotName="underline",h.tagName="U",c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function g(y,b){for(var x=0;x<b.length;x++){var z=b[x];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(y,z.key,z)}}return function(y,b,x){return b&&g(y.prototype,b),x&&g(y,x),y}}(),i=function g(y,b,x){y===null&&(y=Function.prototype);var z=Object.getOwnPropertyDescriptor(y,b);if(z===void 0){var M=Object.getPrototypeOf(y);return M===null?void 0:g(M,b,x)}else{if("value"in z)return z.value;var H=z.get;return H===void 0?void 0:H.call(x)}},s=n(0),l=u(s),f=n(27);function u(g){return g&&g.__esModule?g:{default:g}}function h(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function d(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function m(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["alt","height","width"],p=function(g){m(y,g);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(x,z){v.indexOf(x)>-1?z?this.domNode.setAttribute(x,z):this.domNode.removeAttribute(x):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,z)}}],[{key:"create",value:function(x){var z=i(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return typeof x=="string"&&z.setAttribute("src",this.sanitize(x)),z}},{key:"formats",value:function(x){return v.reduce(function(z,M){return x.hasAttribute(M)&&(z[M]=x.getAttribute(M)),z},{})}},{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")}}]),y}(l.default.Embed);p.blotName="image",p.tagName="IMG",c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function g(y,b){for(var x=0;x<b.length;x++){var z=b[x];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(y,z.key,z)}}return function(y,b,x){return b&&g(y.prototype,b),x&&g(y,x),y}}(),i=function g(y,b,x){y===null&&(y=Function.prototype);var z=Object.getOwnPropertyDescriptor(y,b);if(z===void 0){var M=Object.getPrototypeOf(y);return M===null?void 0:g(M,b,x)}else{if("value"in z)return z.value;var H=z.get;return H===void 0?void 0:H.call(x)}},s=n(4),l=n(27),f=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function h(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function d(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function m(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["height","width"],p=function(g){m(y,g);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(x,z){v.indexOf(x)>-1?z?this.domNode.setAttribute(x,z):this.domNode.removeAttribute(x):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,z)}}],[{key:"create",value:function(x){var z=i(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return z.setAttribute("frameborder","0"),z.setAttribute("allowfullscreen",!0),z.setAttribute("src",this.sanitize(x)),z}},{key:"formats",value:function(x){return v.reduce(function(z,M){return x.hasAttribute(M)&&(z[M]=x.getAttribute(M)),z},{})}},{key:"sanitize",value:function(x){return f.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),y}(s.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.FormulaBlot=void 0;var r=function(){function x(z,M){for(var H=0;H<M.length;H++){var C=M[H];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(z,C.key,C)}}return function(z,M,H){return M&&x(z.prototype,M),H&&x(z,H),z}}(),i=function x(z,M,H){z===null&&(z=Function.prototype);var C=Object.getOwnPropertyDescriptor(z,M);if(C===void 0){var w=Object.getPrototypeOf(z);return w===null?void 0:x(w,M,H)}else{if("value"in C)return C.value;var L=C.get;return L===void 0?void 0:L.call(H)}},s=n(35),l=m(s),f=n(5),u=m(f),h=n(9),d=m(h);function m(x){return x&&x.__esModule?x:{default:x}}function v(x,z){if(!(x instanceof z))throw new TypeError("Cannot call a class as a function")}function p(x,z){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:x}function g(x,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);x.prototype=Object.create(z&&z.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(x,z):x.__proto__=z)}var y=function(x){g(z,x);function z(){return v(this,z),p(this,(z.__proto__||Object.getPrototypeOf(z)).apply(this,arguments))}return r(z,null,[{key:"create",value:function(H){var C=i(z.__proto__||Object.getPrototypeOf(z),"create",this).call(this,H);return typeof H=="string"&&(window.katex.render(H,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",H)),C}},{key:"value",value:function(H){return H.getAttribute("data-value")}}]),z}(l.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var b=function(x){g(z,x),r(z,null,[{key:"register",value:function(){u.default.register(y,!0)}}]);function z(){v(this,z);var M=p(this,(z.__proto__||Object.getPrototypeOf(z)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return M}return z}(d.default);c.FormulaBlot=y,c.default=b},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.CodeToken=c.CodeBlock=void 0;var r=function(){function H(C,w){for(var L=0;L<w.length;L++){var S=w[L];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}return function(C,w,L){return w&&H(C.prototype,w),L&&H(C,L),C}}(),i=function H(C,w,L){C===null&&(C=Function.prototype);var S=Object.getOwnPropertyDescriptor(C,w);if(S===void 0){var _=Object.getPrototypeOf(C);return _===null?void 0:H(_,w,L)}else{if("value"in S)return S.value;var V=S.get;return V===void 0?void 0:V.call(L)}},s=n(0),l=p(s),f=n(5),u=p(f),h=n(9),d=p(h),m=n(13),v=p(m);function p(H){return H&&H.__esModule?H:{default:H}}function g(H,C){if(!(H instanceof C))throw new TypeError("Cannot call a class as a function")}function y(H,C){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:H}function b(H,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);H.prototype=Object.create(C&&C.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(H,C):H.__proto__=C)}var x=function(H){b(C,H);function C(){return g(this,C),y(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var S=this.domNode.textContent;this.cachedText!==S&&((S.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(S),this.domNode.normalize(),this.attach()),this.cachedText=S)}}]),C}(v.default);x.className="ql-syntax";var z=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),M=function(H){b(C,H),r(C,null,[{key:"register",value:function(){u.default.register(z,!0),u.default.register(x,!0)}}]);function C(w,L){g(this,C);var S=y(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,w,L));if(typeof S.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var _=null;return S.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(_),_=setTimeout(function(){S.highlight(),_=null},S.options.interval)}),S.highlight(),S}return r(C,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var S=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(_){_.highlight(L.options.highlight)}),this.quill.update(u.default.sources.SILENT),S!=null&&this.quill.setSelection(S,u.default.sources.SILENT)}}}]),C}(d.default);M.DEFAULTS={highlight:function(){return window.hljs==null?null:function(H){var C=window.hljs.highlightAuto(H);return C.value}}(),interval:1e3},c.CodeBlock=x,c.CodeToken=z,c.default=M},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(w,L,S){w===null&&(w=Function.prototype);var _=Object.getOwnPropertyDescriptor(w,L);if(_===void 0){var V=Object.getPrototypeOf(w);return V===null?void 0:C(V,L,S)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(S)}},i=function(){function C(w,L){for(var S=0;S<L.length;S++){var _=L[S];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(w,_.key,_)}}return function(w,L,S){return L&&C(w.prototype,L),S&&C(w,S),w}}(),s=n(3),l=g(s),f=n(8),u=g(f),h=n(43),d=g(h),m=n(15),v=n(41),p=g(v);function g(C){return C&&C.__esModule?C:{default:C}}function y(C,w){if(!(C instanceof w))throw new TypeError("Cannot call a class as a function")}function b(C,w){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:C}function x(C,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);C.prototype=Object.create(w&&w.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(C,w):C.__proto__=w)}var z=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],M=function(C){x(w,C);function w(L,S){y(this,w),S.modules.toolbar!=null&&S.modules.toolbar.container==null&&(S.modules.toolbar.container=z);var _=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,L,S));return _.quill.container.classList.add("ql-bubble"),_}return i(w,[{key:"extendToolbar",value:function(S){this.tooltip=new H(this.quill,this.options.bounds),this.tooltip.root.appendChild(S.container),this.buildButtons([].slice.call(S.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(S.container.querySelectorAll("select")),p.default)}}]),w}(d.default);M.DEFAULTS=(0,l.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(w){w?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var H=function(C){x(w,C);function w(L,S){y(this,w);var _=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,L,S));return _.quill.on(u.default.events.EDITOR_CHANGE,function(V,O,j,N){if(V===u.default.events.SELECTION_CHANGE)if(O!=null&&O.length>0&&N===u.default.sources.USER){_.show(),_.root.style.left="0px",_.root.style.width="",_.root.style.width=_.root.offsetWidth+"px";var B=_.quill.getLines(O.index,O.length);if(B.length===1)_.position(_.quill.getBounds(O));else{var F=B[B.length-1],X=_.quill.getIndex(F),Y=Math.min(F.length()-1,O.index+O.length-X),U=_.quill.getBounds(new m.Range(X,Y));_.position(U)}}else document.activeElement!==_.textbox&&_.quill.hasFocus()&&_.hide()}),_}return i(w,[{key:"listen",value:function(){var S=this;r(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){S.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!S.root.classList.contains("ql-hidden")){var _=S.quill.getSelection();_!=null&&S.position(S.quill.getBounds(_))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(S){var _=r(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"position",this).call(this,S),V=this.root.querySelector(".ql-tooltip-arrow");if(V.style.marginLeft="",_===0)return _;V.style.marginLeft=-1*_-V.offsetWidth/2+"px"}}]),w}(h.BaseTooltip);H.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=H,c.default=M},function(a,c,n){a.exports=n(63)}]).default})})(IO);var Al1=IO.exports;const Nl1=k51(Al1);const Tl1={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},El1={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="";o.watch(()=>e.value,s=>{a.quill&&(s&&s!==c?(c=s,a.quill.pasteHTML(s)):s||a.quill.setText(""))}),o.watch(()=>e.content,s=>{a.quill&&(s&&s!==c?(c=s,a.quill.pasteHTML(s)):s||a.quill.setText(""))}),o.watch(()=>e.disabled,s=>{a.quill&&a.quill.enable(!s)});const n=o.ref(null),r=(s,l)=>{for(const f in l)!s[f]||f!=="modules"?s[f]=l[f]:r(s[f],l[f]);return s},i=()=>{n.value&&(a.editorOption=r(Tl1,e.options),a.editorOption.readOnly=!!e.disabled,a.quill=new Nl1(n.value,a.editorOption),e.value&&a.quill.pasteHTML(e.value),a.quill.on("selection-change",s=>{s?t.emit("focus",a.quill):t.emit("blur",a.quill)}),a.quill.on("text-change",()=>{e.disabled&&a.quill.enable(!1);let s=n.value.children[0].innerHTML;const l=a.quill,f=a.quill.getText();s==="<p><br></p>"&&(s=""),c=s,t.emit("update:value",c),t.emit("change",{html:s,text:f,quill:l})}),t.emit("ready",a.quill))};return o.onBeforeUnmount(()=>{const s=n.value.previousSibling;s&&s.nodeType===1&&s.className.indexOf("ql-toolbar")>-1&&s.parentNode.removeChild(s)}),o.onMounted(()=>{i()}),o.onUnmounted(()=>{a.quill=null}),{editor:n}}},Ol1={ref:"editor"};function Dl1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("section",Ol1,null,512)}const cl=K1(El1,[["render",Dl1]]);cl.install=function(e){e.component(cl.name,cl)};const Pl1=o.defineComponent({__name:"PgaMaxLength",props:{content:{},maxLength:{}},setup(e){const t=e,a=o.computed(()=>{var n;return((n=t.content)==null?void 0:n.length)||0}),c=o.computed(()=>a.value>t.maxLength);return(n,r)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["pga-max-length",{"pga-max-length--error":c.value}])},o.toDisplayString(`${a.value} / ${n.maxLength}`),3))}});const yb=K1(Pl1,[["__scopeId","data-v-4e8a2dd8"]]),Bl1={class:"pga-editor"},Rl1={class:"editor__container"},Fl1={class:"editor__footer"},Il1=o.defineComponent({__name:"PgaEditor",props:o.mergeModels({saveFn:{type:Function},maxContentLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=e,c=N4.getConfig(),n=I2("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=o.ref(t.value),s=o.ref(!1);let l;const f=o.ref(!1),u=o.ref(!1),h=o.computed(()=>a.maxContentLength||c.stringLengths.hyperLong),d=o.computed(()=>PT(t.value)),m=o.computed(()=>d.value.length),v=o.computed(()=>m.value>h.value);o.watch(t,()=>{f.value=!1,u.value=!1,clearTimeout(l),l=setTimeout(()=>p(),1e3*3)});async function p(){if(i.value!==t.value){if(v.value){u.value=!0;return}try{s.value=!0,i.value=await a.saveFn(t.value),f.value=!0,setTimeout(()=>f.value=!1,1e3*3)}finally{s.value=!1}}}return(g,y)=>(o.openBlock(),o.createElementBlock("div",Bl1,[o.createElementVNode("div",Rl1,[o.createVNode(o.unref(cl),{value:t.value,"onUpdate:value":y[0]||(y[0]=b=>t.value=b),options:r},null,8,["value"])]),o.createElementVNode("div",Fl1,[o.createVNode(yb,{content:d.value,maxLength:h.value},null,8,["content","maxLength"]),s.value?(o.openBlock(),o.createBlock(y8,{key:0,size:"m",preventCenter:""})):f.value?(o.openBlock(),o.createBlock(E3,{key:1,icon:"save",text:o.unref(n)("savedMsg"),color:"success"},null,8,["text"])):u.value?(o.openBlock(),o.createBlock(E3,{key:2,icon:"circle-xmark",text:o.unref(n)("saveErrorMsg"),color:"danger"},null,8,["text"])):o.createCommentVNode("",!0)])]))}});const $l1=K1(Il1,[["__scopeId","data-v-4b498289"]]),jl1={class:"pga-info-card"},ql1={key:1,class:"info-card__content"},Ul1=o.defineComponent({__name:"PgaInfoCard",props:{type:{default:"success"},title:{},description:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("div",jl1,[t.isLoading?(o.openBlock(),o.createBlock(y8,{key:0})):(o.openBlock(),o.createElementBlock("div",ql1,[o.createVNode(A4,{icon:t.type==="success"?"circle-check":"circle-xmark",color:t.type,size:"1.9rem"},null,8,["icon","color"]),o.createVNode(E3,{class:"info-card__title",text:t.title},null,8,["text"]),t.description?(o.openBlock(),o.createBlock(E3,{key:0,class:"info-card__description",text:t.description},null,8,["text"])):o.createCommentVNode("",!0),o.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const Wl1=K1(Ul1,[["__scopeId","data-v-48bac905"]]),Du=o.defineComponent({__name:"PgaInfoTooltip",props:{info:{},size:{default:"0.9rem"}},setup(e){const t=e,a=o.computed(()=>b4(t.info));return(c,n)=>{const r=o.resolveDirective("tooltip");return a.value?o.withDirectives((o.openBlock(),o.createBlock(A4,{key:0,icon:["far","circle-question"],size:c.size},null,8,["size"])),[[r,{content:a.value,html:!0}]]):o.createCommentVNode("",!0)}}}),Yl1=o.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const t=e;return(a,c)=>(o.openBlock(),o.createBlock(A4,{icon:t.isEnabled?"circle-check":"circle-xmark",color:t.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),Gl1=o.defineComponent({__name:"PgaItemSelected",props:o.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const a=o.useModel(e,"modelValue"),c=e;t({toggleItemSelected:r});const n=o.computed({get(){if(c.item)return!!a.value.find(s=>s.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(s=>s.id!==c.item.id):i?a.value=[...c.items]:a.value=[]}});function r(){n.value=!n.value}return(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["item-selected",{"item-selected--selected":n.value}]),onClick:s[0]||(s[0]=l=>r())},[n.value?(o.openBlock(),o.createBlock(A4,{key:0,class:"item-selected__check-icon",icon:"check"})):o.createCommentVNode("",!0)],2))}});const Cv=K1(Gl1,[["__scopeId","data-v-1c9cee8f"]]),Zl1={class:"modal__header"},Xl1=["textContent"],Kl1={class:"modal__body"},Ql1={key:0,class:"modal__footer"},Jl1=o.defineComponent({__name:"PgaModal",props:o.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean},width:{default:"auto"},acceptText:{},cancelText:{},acceptIcon:{default:"save"}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:t}){o.useCssVars(r=>({"98d6d882":r.width}));const a=o.useModel(e,"modelValue"),c=t,n=I2("pgaModal");return o.watch(a,r=>oi(!r)),(r,i)=>a.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"modal",onMousedown:i[4]||(i[4]=s=>a.value=!1)},[o.createElementVNode("div",{class:"modal__content",onMousedown:i[3]||(i[3]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("div",Zl1,[o.createElementVNode("span",{class:"modal__title",textContent:o.toDisplayString(r.title)},null,8,Xl1),o.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=s=>a.value=!1)},[o.createVNode(A4,{icon:"xmark"})])]),o.createElementVNode("div",Kl1,[o.renderSlot(r.$slots,"default",{},void 0,!0)]),r.confirmButtons?(o.openBlock(),o.createElementBlock("div",Ql1,[r.isLoading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(P2,{key:0,text:r.cancelText||o.unref(n)("cancelBtn"),color:"danger",variant:"flat",onClick:i[1]||(i[1]=s=>a.value=!1)},null,8,["text"])),o.createVNode(P2,{icon:r.acceptIcon,text:r.acceptText||o.unref(n)("acceptBtn"),color:"success",variant:"filled",isLoading:r.isLoading,onClick:i[2]||(i[2]=s=>c("accept"))},null,8,["icon","text","isLoading"])])):o.createCommentVNode("",!0)],32)],32)):o.createCommentVNode("",!0)}});const ef1=K1(Jl1,[["__scopeId","data-v-35379c34"]]),tf1={class:"pga-flex-row"},af1=o.defineComponent({__name:"PgaMonthSelector",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=o.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:ue.getNextMonthStartDate(i)}}});function c(){t.value={datetimeFrom:ue.getPreviousMonthStartDate(t.value.datetimeFrom),datetimeTo:ue.getPreviousMonthStartDate(t.value.datetimeTo)}}function n(){t.value={datetimeFrom:ue.getNextMonthStartDate(t.value.datetimeFrom),datetimeTo:ue.getNextMonthStartDate(t.value.datetimeTo)}}return(r,i)=>{const s=o.resolveComponent("PgaButton"),l=o.resolveComponent("PgaMonthPicker");return o.openBlock(),o.createElementBlock("div",tf1,[o.createVNode(s,{icon:"arrow-left",variant:"flat",color:"first",onClick:i[0]||(i[0]=f=>c())}),o.createVNode(l,{modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=f=>a.value=f),notClearable:""},null,8,["modelValue"]),o.createVNode(s,{icon:"arrow-right",variant:"flat",color:"first",onClick:i[2]||(i[2]=f=>n())})])}}}),cf1=o.defineComponent({__name:"PgaSeparator",props:{vertical:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["separator",{"separator--vertical":t.vertical}])},null,2))}});const nf1=K1(cf1,[["__scopeId","data-v-12540ee5"]]),rf1={class:"pga-tabs"},if1={class:"tabs__nav",role:"tablist"},sf1=["onClick"],of1={class:"tabs__section",role:"tabpanel"},lf1=o.defineComponent({__name:"PgaTabs",props:{tabs:{}},setup(e){o.useCssVars(i=>({"67dbfb04":n.value}));const t=e,a=o.ref(0),c=o.ref([]),n=o.ref("");o.watch(()=>t.tabs,()=>{c.value=[],o.nextTick(r)},{immediate:!0,deep:!0});function r(){const i=Math.max(0,...c.value.map(s=>s.offsetWidth));n.value=`${i}px`}return(i,s)=>{const l=o.resolveComponent("PgaIcon"),f=o.resolveComponent("PgaDisplayText");return o.openBlock(),o.createElementBlock("div",rf1,[o.createElementVNode("nav",if1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.tabs,(u,h)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["tabs__button",{"tabs__button--active":a.value===h}]),key:`tab-${h}`,ref_for:!0,ref:d=>c.value[h]=d,role:"tab",onClick:d=>a.value=h},[u.icon?(o.openBlock(),o.createBlock(l,{key:0,class:"tabs__icon",icon:u.icon},null,8,["icon"])):o.createCommentVNode("",!0),o.createVNode(f,{class:"tabs__label",text:u.label},null,8,["text"])],10,sf1))),128))]),o.createElementVNode("section",of1,[o.renderSlot(i.$slots,`panel${a.value+1}`,{},void 0,!0)])])}}});const ff1=K1(lf1,[["__scopeId","data-v-3628aef4"]]),uf1=["accept","multiple","disabled"],hf1={class:"input-file__label-container"},df1=o.defineComponent({__name:"PgaInputFile",props:{type:{},multiple:{type:Boolean},label:{},disabled:{type:Boolean},isLoading:{type:Boolean}},emits:["newFile","newFiles"],setup(e,{expose:t,emit:a}){o.useCssVars(M=>({"6241915b":o.unref(r).input.borderColor,"027f6ccc":o.unref(r).input.borderRadius,b4ce00ce:o.unref(r).input.backgroundColor,"466eb123":o.unref(r).input.backgroundColorHover,"6910f535":o.unref(r).input.backgroundColorDisabled}));const c=e,n=a;t({click:b,resetInput:x});const{form:r}=Ce(),i=I2("pgaForm"),s=(()=>c.type==="image"?["jpeg","jpg","png","webp","gif","svg","bmp","tiff","heic"]:c.type==="video"?["mp4","mov","avi","webm","mkv"]:["xls","xlsx"])(),l=s.map(M=>`.${M}`).join(","),f=o.ref(),u=o.ref([]),h=o.ref(!1),d=o.ref(!1),m=o.computed(()=>c.disabled||c.isLoading),v=o.computed(()=>!!u.value.length),p=o.computed(()=>{for(const M of u.value){const H=M.name.split(".").pop();if(!s.includes(H))return!1}return!0}),g=o.computed(()=>{const M={icon:"upload"};return!v.value||h.value&&!d.value&&!m.value?M:p.value?{icon:"circle-check",color:"success"}:{icon:"circle-xmark",color:"danger"}}),y=o.computed(()=>v.value?u.value.map(M=>M.name).join(", "):c.label?c.label:c.multiple?i("selectFilesLabel"):i("selectFileLabel"));function b(){var M;(M=f.value)==null||M.click()}function x(){u.value=[],f.value&&(f.value.value="")}function z(M){h.value=!1;const C=M.target.files;if(C.length){if(u.value=[...C],!p.value){w6("danger",()=>i("newFileError"));return}n("newFile",C[0]),n("newFiles",[...C])}}return(M,H)=>(o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass(["pga-input-file",{"pga-input-file--disabled":m.value}]),onMouseenter:H[4]||(H[4]=C=>h.value=!0),onMouseleave:H[5]||(H[5]=C=>h.value=!1)},[M.isLoading?(o.openBlock(),o.createBlock(y8,{key:0})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("input",{ref_key:"inputRef",ref:f,class:"input-file__input",type:"file",accept:o.unref(l),multiple:M.multiple,disabled:m.value,onChange:H[0]||(H[0]=C=>z(C))},null,40,uf1),o.createVNode(A4,{class:"input-file__icon",icon:g.value.icon,color:g.value.color},null,8,["icon","color"]),o.createElementVNode("div",hf1,[o.createVNode(E3,{text:y.value},null,8,["text"])]),v.value?(o.openBlock(),o.createBlock(P2,{key:0,text:o.unref(i)("removeBtn"),variant:"flat",color:"danger",size:"s",disabled:m.value,onMouseenter:H[1]||(H[1]=C=>d.value=!0),onMouseleave:H[2]||(H[2]=C=>d.value=!1),onClick:H[3]||(H[3]=o.withModifiers(C=>x(),["prevent"]))},null,8,["text","disabled"])):o.createCommentVNode("",!0)],64))],34))}});const ks=K1(df1,[["__scopeId","data-v-cbccd13c"]]),mf1={class:"pga-videos"},pf1={class:"videos"},vf1=["src"],gf1={key:0,class:"videos__input-container"},yf1=o.defineComponent({__name:"PgaVideos",props:o.mergeModels({maxVideosQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),a=e,c=I2("pgaFile"),n=o.ref(),r=o.ref(!1),i=o.ref(-1),s=o.computed(()=>t.value.length),l=o.computed(()=>t.value.map(h=>typeof h=="string"?h:URL.createObjectURL(h)));async function f(h){var d;if((d=n.value)==null||d.resetInput(),s.value+h.length>a.maxVideosQuantity&&(h=h.slice(0,a.maxVideosQuantity-s.value),w6("warning",()=>c("maxVideosQuantityAlert",{maxQuantity:a.maxVideosQuantity}))),!a.uploadFn){t.value.push(...h);return}try{r.value=!0,t.value=await a.uploadFn({file:h})}finally{r.value=!1}}async function u(h){if(a.deleteFn)try{i.value=h,await a.deleteFn({index:h})}finally{i.value=-1}t.value.splice(h,1)}return(h,d)=>{const m=o.resolveComponent("PgaDeleteButton");return o.openBlock(),o.createElementBlock("div",mf1,[o.createElementVNode("div",pf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(v,p)=>(o.openBlock(),o.createElementBlock("div",{key:v,class:"videos__video-container"},[o.createElementVNode("video",{class:"videos__video",src:v,controls:""},null,8,vf1),o.createVNode(m,{class:"videos__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===p,onDeleteConfirmed:g=>u(p)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),s.value<h.maxVideosQuantity?(o.openBlock(),o.createElementBlock("div",gf1,[o.createVNode(ks,{ref_key:"inputFileRef",ref:n,class:"videos__input",type:"video",multiple:"",label:o.unref(c)("selectVideos"),isLoading:r.value,onNewFiles:d[0]||(d[0]=v=>f(v))},null,8,["label","isLoading"])])):o.createCommentVNode("",!0)]),o.createElementVNode("span",null,o.toDisplayString(`${s.value} / ${h.maxVideosQuantity}`),1)])}}});const bf1=K1(yf1,[["__scopeId","data-v-ee4ebd19"]]),zf1=o.defineComponent({__name:"PgaBackButton",setup(e){const t=I2("pgaButton");return(a,c)=>(o.openBlock(),o.createBlock(P2,{text:o.unref(t)("backBtn"),icon:"arrow-left",color:"first",size:"s"},null,8,["text"]))}}),xf1={class:"pga-copy"},Mf1=o.defineComponent({__name:"PgaCopy",props:{text:{}},setup(e){const t=e,a=I2("pgaButton"),c=o.ref(!1),n=o.computed(()=>b4(t.text));async function r(){await navigator.clipboard.writeText(n.value),c.value=!0,setTimeout(()=>c.value=!1,3e3)}return(i,s)=>{const l=o.resolveDirective("tooltip");return o.openBlock(),o.createElementBlock("div",xf1,[o.createElementVNode("span",null,o.toDisplayString(n.value),1),c.value?(o.openBlock(),o.createBlock(A4,{key:1,icon:["far","circle-check"],color:"success"})):o.withDirectives((o.openBlock(),o.createBlock(P2,{key:0,color:"first",icon:"copy",size:"s",onClick:s[0]||(s[0]=f=>r())},null,512)),[[l,o.unref(a)("copyBtn")]])])}}});const Cf1=K1(Mf1,[["__scopeId","data-v-c4835bae"]]),Hf1=o.defineComponent({__name:"PgaCopyButton",props:{text:{},label:{}},setup(e){const t=e,a=I2("pgaButton"),c=o.computed(()=>b4(t.text)),n=o.computed(()=>t.label||a("copyBtn"));async function r(){await navigator.clipboard.writeText(c.value),w6("success",()=>a("textCopied"))}return(i,s)=>{const l=o.resolveDirective("tooltip");return o.withDirectives((o.openBlock(),o.createBlock(P2,{color:"first",icon:"copy",text:n.value,onClick:s[0]||(s[0]=f=>r())},null,8,["text"])),[[l,c.value]])}}}),Vf1={class:"alert"},wf1={class:"alert__content"},_f1=["textContent"],Lf1={class:"alert__buttons"},kf1=o.defineComponent({__name:"Alert",props:{message:{},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const t=dO.directive,a=I2("alert");return o.onMounted(()=>oi(!1)),o.onUnmounted(()=>oi(!0)),(c,n)=>(o.openBlock(),o.createElementBlock("div",Vf1,[o.withDirectives((o.openBlock(),o.createElementBlock("div",wf1,[o.createVNode(A4,{class:"alert__icon",icon:"land-mine-on"}),o.createElementVNode("span",{class:"alert__title",textContent:o.toDisplayString(o.unref(a)("alertTitle"))},null,8,_f1),c.message?(o.openBlock(),o.createBlock(E3,{key:0,class:"alert__message",text:c.message},null,8,["text"])):o.createCommentVNode("",!0),o.createElementVNode("div",Lf1,[o.createVNode(P2,{class:"alert__button",text:o.unref(a)("cancelBtn"),variant:"filled",color:"grey",onClick:n[0]||(n[0]=r=>c.handleCloseFn())},null,8,["text"]),o.createVNode(P2,{class:"alert__button",text:o.unref(a)("acceptBtn"),variant:"filled",color:"danger",onClick:n[1]||(n[1]=r=>c.handleAcceptFn())},null,8,["text"])])])),[[o.unref(t),c.handleCloseFn]])]))}});const Sf1=K1(kf1,[["__scopeId","data-v-969d5446"]]);function $O(e,t){const a=document.createElement("div");document.body.appendChild(a);const c=o.createApp({render(){return o.h(Sf1,{message:e,handleAcceptFn:r,handleCloseFn:n})}});c.mount(a);function n(){c.unmount(),document.body.removeChild(a)}function r(){n(),t()}}const Pu=o.defineComponent({__name:"PgaDeleteButton",props:{variant:{default:"flat"},icon:{default:"trash"},text:{},withoutText:{type:Boolean},withoutConfirm:{type:Boolean},confirmDeleteText:{}},emits:["deleteConfirmed"],setup(e,{emit:t}){const a=e,c=t,n=I2("pgaButton");function r(){if(a.withoutConfirm){c("deleteConfirmed");return}const i=a.confirmDeleteText||n("confirmDeleteText");$O(i,()=>c("deleteConfirmed"))}return(i,s)=>(o.openBlock(),o.createBlock(P2,{class:"delete-button",variant:i.variant,icon:i.icon,text:i.withoutText?void 0:i.text||o.unref(n)("deleteBtn"),size:"s",align:"left",color:"danger",onClick:s[0]||(s[0]=l=>r())},null,8,["variant","icon","text"]))}}),Hv=o.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean},fullWidth:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>{const n=o.resolveDirective("tooltip");return o.withDirectives((o.openBlock(),o.createBlock(P2,{class:"edit-button",variant:"flat",color:"sky",icon:["far","pen-to-square"],text:a.withoutText?void 0:o.unref(t)("editBtn"),size:"s",fullWidth:a.fullWidth,align:"left"},null,8,["text","fullWidth"])),[[n,a.withoutText?o.unref(t)("editBtn"):""]])}}}),Af1=["href","target"],Nf1=o.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(t,a)=>(o.openBlock(),o.createElementBlock("a",{class:"hyperlink",href:t.href,target:t.target},[o.createVNode(E3,{text:t.text,withUnderlineOnHover:""},null,8,["text"])],8,Af1))}});const jO=K1(Nf1,[["__scopeId","data-v-ec435fa7"]]),Tf1=o.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:t}){const a=t,c=I2("pgaButton");return(n,r)=>(o.openBlock(),o.createBlock(P2,{icon:["fas","right-from-bracket"],text:o.unref(c)("logoutBtn"),color:"danger",onClick:r[0]||(r[0]=i=>a("click",i))},null,8,["text"]))}}),Ef1=o.defineComponent({__name:"PgaRouterLink",props:{name:{},params:{},query:{},color:{default:"var(--pga-color-first)"},noFitContent:{type:Boolean},underline:{type:Boolean},noUnderlineOnHover:{type:Boolean}},setup(e){o.useCssVars(n=>({"040e9024":a.value,"75a55a4c":c.value}));const t=e,a=o.computed(()=>`var(--pga-color-${t.color})`),c=o.computed(()=>`var(--pga-color-${t.color}-09)`);return(n,r)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(i,{class:o.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]=s=>o.unref(oi)(!0))},{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["class","to"])}}});const Ss=K1(Ef1,[["__scopeId","data-v-6046ce2c"]]),qO=o.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)=>(o.openBlock(),o.createBlock(Ss,{name:t.name,params:t.params,query:t.query,noFitContent:t.noFitContent,noUnderlineOnHover:""},{default:o.withCtx(()=>[t.$slots.default?o.renderSlot(t.$slots,"default",{key:0}):(o.openBlock(),o.createBlock(P2,{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"]))}}),UO=o.defineComponent({__name:"PgaNavigateToButton",props:{id:{},toName:{},withoutText:{type:Boolean},noFitContent:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>a.toName?(o.openBlock(),o.createBlock(qO,{key:0,name:a.toName,params:{id:a.id},icon:"arrow-up-right-from-square",text:a.withoutText?void 0:o.unref(t)("navigateToBtn"),variant:"flat",size:"s",align:"left",color:"link",noFitContent:a.noFitContent},null,8,["name","params","text","noFitContent"])):o.createCommentVNode("",!0)}}),Of1=o.defineComponent({__name:"PgaRemoveButton",props:{size:{default:"s"},disabled:{type:Boolean}},setup(e){return(t,a)=>(o.openBlock(),o.createBlock(P2,{variant:"flat",icon:"xmark",size:t.size,color:"danger",disabled:t.disabled},null,8,["size","disabled"]))}}),Df1=o.defineComponent({__name:"PgaSeeDetailsButton",props:{withoutText:{type:Boolean}},setup(e){const t=I2("pgaButton");return(a,c)=>(o.openBlock(),o.createBlock(P2,{class:"edit-button",variant:"flat",color:"grey",icon:"eye",text:a.withoutText?void 0:o.unref(t)("seeDetailsBtn"),size:"s",align:"left"},null,8,["text"]))}}),Pf1=o.defineComponent({__name:"PgaToggleButton",props:o.mergeModels({text:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=o.useModel(e,"modelValue"),c=t,n=o.computed(()=>a.value?"outlined":"flat"),r=o.computed(()=>a.value?"primary":"grey");return o.watch(a,i=>c("change",i)),(i,s)=>(o.openBlock(),o.createBlock(P2,{variant:n.value,color:r.value,icon:"circle-check",text:i.text,size:"s",borderRadius:"1rem",onClick:s[0]||(s[0]=l=>a.value=!a.value)},null,8,["variant","color","text"]))}});var Bf1=Object.defineProperty,Rf1=(e,t,a)=>t in e?Bf1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Pt=(e,t,a)=>Rf1(e,typeof t!="symbol"?t+"":t,a);const Ff1=(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 Vn,UV,WV,g6,wn={},Ac={};class If1{constructor(t,a=!1){Pt(this,"texts",{}),Pt(this,"dateToMinutes",c=>c.getHours()*60+c.getMinutes()),g6=this,this._texts=t,!a&&Date&&!Date.prototype.addDays&&this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return g6.addDays(this,t)},Date.prototype.subtractDays=function(t){return g6.subtractDays(this,t)},Date.prototype.addHours=function(t){return g6.addHours(this,t)},Date.prototype.subtractHours=function(t){return g6.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return g6.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return g6.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return g6.getWeek(this)},Date.prototype.isToday=function(){return g6.isToday(this)},Date.prototype.isLeapYear=function(){return g6.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return g6.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return g6.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 UV!==new Date().getDate()&&(Vn=new Date,UV=Vn.getDate(),WV=`${Vn.getFullYear()}-${Vn.getMonth()}-${Vn.getDate()}`),WV}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);wn={},Ac={};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 s=n[i.replace(/\{|\}/g,"")];return s!==void 0?s():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);Ac={},c||(c=this._texts);const i=this._hydrateTimeObject(t,c),s=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?s.replace("23:59","24:00"):s}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(wn.D)return wn;const c=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),s=(t.getDay()-1+7)%7;return wn={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:s+1,dd:()=>a.weekDays[s][0],ddd:()=>a.weekDays[s].substr(0,3),dddd:()=>a.weekDays[s]},wn}_hydrateTimeObject(t,a){if(Ac.am)return Ac;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 Ac={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},Ac}}const $f1=24*60;class jf1{constructor(t){Pt(this,"_vuecal",null),Pt(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)))}),Pt(this,"keyPressEnterCell",(a,c)=>{this._vuecal.$emit("cell-keypress-enter",c?{date:a,split:c}:a),this._vuecal.switchToNarrowerView()}),Pt(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}}),Pt(this,"minutesAtCursor",a=>{let c=0,n={x:0,y:0};const{timeStep:r,timeCellHeight:i,timeFrom:s}=this._vuecal.$props;return typeof a=="number"?c=a:typeof a=="object"&&(n=this.getPosition(a),c=Math.round(n.y*r/parseInt(i)+s)),{minutes:Math.max(Math.min(c,$f1),0),cursorCoords:n}}),this._vuecal=t}}const qf1=2,Ud=24*60;let q3,U3,Wd;class Uf1{constructor(t,a){Pt(this,"_vuecal",null),Pt(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,q3=a}createAnEvent(t,a,c){if(typeof t=="string"&&(t=q3.stringToDate(t)),!(t instanceof Date))return!1;const n=q3.dateToMinutes(t);a=a*1||qf1*60;const r=n+a,i=q3.addMinutes(new Date(t),a);c.end&&(typeof c.end=="string"&&(c.end=q3.stringToDate(c.end)),c.endTimeMinutes=q3.dateToMinutes(c.end));const s={...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(s,()=>this.deleteAnEvent(s))))return s.startDateF!==s.endDateF&&(s.daysCount=q3.countDays(s.start,s.end)),this._vuecal.mutableEvents.push(s),this._vuecal.addEventsToView([s]),this._vuecal.emitWithEvent("event-create",s),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(s),originalEvent:null}),s}addEventSegment(t){t.segments||(t.segments={},t.segments[q3.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:Ud,isFirstDay:!0,isLastDay:!1});const a=t.segments[q3.formatDateLite(t.end)];a&&(a.isLastDay=!1,a.endTimeMinutes=Ud);const c=q3.addDays(t.end,1),n=q3.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=q3.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 q3.formatDateLite(t.end);delete t.segments[q3.formatDateLite(t.end)],a--;const c=q3.subtractDays(t.end,1),n=q3.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(),s=t.end.getTime(),l=!1,f,u,h;for(!t.end.getHours()&&!t.end.getMinutes()&&(s-=1e3),t.segments={},t.repeat?(f=n,u=Math.min(r,t.repeat.until?q3.stringToDate(t.repeat.until).getTime():r)):(f=Math.max(n,i),u=Math.min(r,s));f<=u;){let d=!1;const m=q3.addDays(new Date(f),1).setHours(0,0,0,0);let v,p,g,y;if(t.repeat){const b=new Date(f),x=q3.formatDateLite(b);(l||t.occurrences&&t.occurrences[x])&&(l||(i=t.occurrences[x].start,h=new Date(i).setHours(0,0,0,0),s=t.occurrences[x].end),l=!0,d=!0),v=f===h,p=x===q3.formatDateLite(new Date(s)),g=new Date(v?i:f),y=q3.formatDateLite(g),p&&(l=!1)}else d=!0,v=f===i,p=u===s&&m>u,g=v?t.start:new Date(f),y=q3.formatDateLite(v?t.start:g);d&&(t.segments[y]={start:g,startTimeMinutes:v?t.startTimeMinutes:0,endTimeMinutes:p?t.endTimeMinutes:Ud,isFirstDay:v,isLastDay:p}),f=m}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){Wd=t.slice(0),U3={},t.forEach(n=>{Wd.shift(),U3[n._eid]||(U3[n._eid]={overlaps:[],start:n.start,position:0}),U3[n._eid].position=0,Wd.forEach(r=>{U3[r._eid]||(U3[r._eid]={overlaps:[],start:r.start,position:0});const i=this.eventInRange(r,n.start,n.end),s=a.overlapsPerTimeStep?q3.datesInSameTimeStep(n.start,r.start,a.timeStep):1;if(!n.background&&!n.allDay&&!r.background&&!r.allDay&&i&&s)U3[n._eid].overlaps.push(r._eid),U3[n._eid].overlaps=[...new Set(U3[n._eid].overlaps)],U3[r._eid].overlaps.push(n._eid),U3[r._eid].overlaps=[...new Set(U3[r._eid].overlaps)],U3[r._eid].position++;else{let l,f;(l=(U3[n._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&U3[n._eid].overlaps.splice(l,1),(f=(U3[r._eid]||{overlaps:[]}).overlaps.indexOf(n._eid))>-1&&U3[r._eid].overlaps.splice(f,1),U3[r._eid].position--}})});let c=0;for(const n in U3){const r=U3[n],i=r.overlaps.map(s=>({id:s,start:U3[s].start}));i.push({id:n,start:r.start}),i.sort((s,l)=>s.start<l.start?-1:s.start>l.start?1:s.id>l.id?-1:1),r.position=i.findIndex(s=>s.id===n),c=Math.max(this.getOverlapsStreak(r,U3),c)}return[U3,c]}getOverlapsStreak(t,a={}){let c=t.overlaps.length+1,n=[];return t.overlaps.forEach(r=>{n.includes(r)||t.overlaps.filter(s=>s!==r).forEach(s=>{a[s].overlaps.includes(r)||n.push(s)})}),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 Wf1={class:"vuecal__flex vuecal__weekdays-headings"},Yf1=["onClick"],Gf1={class:"vuecal__flex weekday-label",grow:""},Zf1={class:"full"},Xf1={class:"small"},Kf1={class:"xsmall"},Qf1={key:0},Jf1={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function eu1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("div",Wf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.headings,(i,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:s},[i.hide?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["vuecal__flex vuecal__heading",{today:i.today,clickable:r.cellHeadingsClickable}]),style:o.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())},[o.createVNode(o.Transition,{name:`slide-fade--${a.transitionDirection}`,appear:r.vuecal.transitions},{default:o.withCtx(()=>[(o.openBlock(),o.createElementBlock("div",{class:"vuecal__flex",column:"",key:r.vuecal.transitions?`${s}-${i.dayOfMonth}`:!1},[o.createElementVNode("div",Gf1,[o.renderSlot(e.$slots,"weekday-heading",{heading:r.cleanupHeading(i),view:r.view},()=>[o.createElementVNode("span",Zf1,o.toDisplayString(i.full),1),o.createElementVNode("span",Xf1,o.toDisplayString(i.small),1),o.createElementVNode("span",Kf1,o.toDisplayString(i.xsmall),1),i.dayOfMonth?(o.openBlock(),o.createElementBlock("span",Qf1," "+o.toDisplayString(i.dayOfMonth),1)):o.createCommentVNode("",!0)])]),r.vuecal.hasSplits&&r.vuecal.stickySplitLabels?(o.openBlock(),o.createElementBlock("div",Jf1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.vuecal.daySplits,(l,f)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",l.class||!1]),key:f},[o.renderSlot(e.$slots,"split-label",{split:l,view:r.view},()=>[o.createTextVNode(o.toDisplayString(l.label),1)])],2))),128))])):o.createCommentVNode("",!0)]))]),_:2},1032,["name","appear"])],46,Yf1))],64))),128))])}const cn=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},tu1={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)}}},WO=cn(tu1,[["render",eu1]]),au1={class:"vuecal__header"},cu1={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},nu1=["onDragenter","onDragleave","onClick","aria-label"],ru1={key:1,class:"vuecal__title-bar"},iu1=["aria-label"],su1={class:"vuecal__flex vuecal__title",grow:""},ou1=["aria-label"],lu1={key:0,class:"vuecal__flex vuecal__split-days-headers"};function fu1(e,t,a,c,n,r){const i=o.resolveComponent("weekdays-headings");return o.openBlock(),o.createElementBlock("div",au1,[a.options.hideViewSelector?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",cu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.viewProps.views,(s,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:l},[s.enabled?(o.openBlock(),o.createElementBlock("button",{key:0,class:o.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":`${s.label} view`},o.toDisplayString(s.label),43,nu1)):o.createCommentVNode("",!0)],64))),128))])),a.options.hideTitleBar?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ru1,[o.createElementVNode("button",{class:o.normalizeClass(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":e.highlightedControl==="previous"}]),type:"button",onClick:t[0]||(t[0]=(...s)=>r.previous&&r.previous(...s)),onDragenter:t[1]||(t[1]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"previous",e.$data)),onDragleave:t[2]||(t[2]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"previous",e.$data)),"aria-label":`Previous ${r.view.id}`},[o.renderSlot(e.$slots,"arrow-prev")],42,iu1),o.createElementVNode("div",su1,[o.createVNode(o.Transition,{name:a.options.transitions?`slide-fade--${r.transitionDirection}`:""},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.broaderView?"button":"span"),{type:!!r.broaderView&&"button",key:`${r.view.id}${r.view.startDate.toString()}`,onClick:t[3]||(t[3]=s=>!!r.broaderView&&r.switchToBroaderView()),"aria-label":!!r.broaderView&&`Go to ${r.broaderView} view`},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),a.options.todayButton?(o.openBlock(),o.createElementBlock("button",{key:0,class:o.normalizeClass(["vuecal__today-btn",{"vuecal__today-btn--highlighted":e.highlightedControl==="today"}]),type:"button",onClick:t[4]||(t[4]=(...s)=>r.goToToday&&r.goToToday(...s)),onDragenter:t[5]||(t[5]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"today",e.$data)),onDragleave:t[6]||(t[6]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"today",e.$data)),"aria-label":"Today"},[o.renderSlot(e.$slots,"today-button")],34)):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":e.highlightedControl==="next"}]),type:"button",onClick:t[7]||(t[7]=(...s)=>r.next&&r.next(...s)),onDragenter:t[8]||(t[8]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(s,"next",e.$data)),onDragleave:t[9]||(t[9]=s=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(s,"next",e.$data)),"aria-label":`Next ${r.view.id}`},[o.renderSlot(e.$slots,"arrow-next")],42,ou1)])),a.viewProps.weekDaysInHeader?(o.openBlock(),o.createBlock(i,{key:2,"week-days":a.weekDays,"transition-direction":r.transitionDirection,"switch-to-narrower-view":a.switchToNarrowerView},o.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:s,view:l})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:s,view:l})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:s})=>[o.renderSlot(e.$slots,"split-label",{split:s,view:r.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:`slide-fade--${r.transitionDirection}`},{default:o.withCtx(()=>[r.showDaySplits?(o.openBlock(),o.createElementBlock("div",lu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.daySplits,(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",s.class||!1]),key:l},[o.renderSlot(e.$slots,"split-label",{split:s,view:r.view.id},()=>[o.createTextVNode(o.toDisplayString(s.label),1)])],2))),128))])):o.createCommentVNode("",!0)]),_:3},8,["name"])])}const uu1={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:WO},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}}},hu1=cn(uu1,[["render",fu1]]),du1=["draggable"];function mu1(e,t,a,c,n,r){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__event",r.eventClasses]),style:o.normalizeStyle(r.eventStyles),tabindex:"0",onFocus:t[4]||(t[4]=(...i)=>r.focusEvent&&r.focusEvent(...i)),onKeypress:t[5]||(t[5]=o.withKeys(o.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]=o.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?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=o.withModifiers((...i)=>r.deleteEvent&&r.deleteEvent(...i),["stop"])),onTouchstart:t[1]||(t[1]=o.withModifiers((...i)=>r.touchDeleteEvent&&r.touchDeleteEvent(...i),["stop"]))},o.toDisplayString(r.vuecal.texts.deleteEvent),33)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"event",{event:a.event,view:r.view.id}),r.resizable?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=o.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"])),onTouchstart:t[3]||(t[3]=o.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"]))},null,32)):o.createCommentVNode("",!0)],46,du1)}const pu1={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}}},vu1=cn(pu1,[["render",mu1]]),gu1=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],yu1={key:0,class:"cell-time-labels"},bu1=["innerHTML"],zu1={key:2,class:"vuecal__cell-events"},xu1=["title"];function Mu1(e,t,a,c,n,r){const i=o.resolveComponent("event");return o.openBlock(),o.createBlock(o.TransitionGroup,{class:o.normalizeClass(["vuecal__cell",r.cellClasses]),name:`slide-fade--${r.transitionDirection}`,tag:"div",appear:a.options.transitions,style:o.normalizeStyle(r.cellStyles)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.splitsCount?r.splits:1,(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__flex vuecal__cell-content",r.splitsCount&&r.splitClasses(s)]),key:a.options.transitions?`${r.view.id}-${a.data.content}-${l}`:l,"data-split":r.splitsCount?s.id:!1,column:"",tabindex:"0","aria-label":a.data.content,onFocus:t[0]||(t[0]=f=>r.onCellFocus(f)),onKeypress:t[1]||(t[1]=o.withKeys(f=>r.onCellkeyPressEnter(f),["enter"])),onTouchstart:f=>!r.isDisabled&&r.onCellTouchStart(f,r.splitsCount?s.id:null),onMousedown:f=>!r.isDisabled&&r.onCellMouseDown(f,r.splitsCount?s.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?s.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?s.id:null)},[a.options.showTimeInCells&&a.options.time&&r.isWeekOrDayView&&!a.allDay?(o.openBlock(),o.createElementBlock("div",yu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.vuecal.timeCells,(f,u)=>(o.openBlock(),o.createElementBlock("span",{class:"cell-time-label",key:u},o.toDisplayString(f.label),1))),128))])):o.createCommentVNode("",!0),r.isWeekOrDayView&&!a.allDay&&r.specialHours.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(r.specialHours,(f,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__special-hours",`vuecal__special-hours--day${f.day} ${f.class}`]),style:o.normalizeStyle(`height: ${f.height}px;top: ${f.top}px`)},[f.label?(o.openBlock(),o.createElementBlock("div",{key:0,class:"special-hours-label",innerHTML:f.label},null,8,bu1)):o.createCommentVNode("",!0)],6))),256)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"cell-content",{events:r.events,selectCell:f=>r.selectCell(f,!0),split:r.splitsCount?s:!1}),r.eventsCount&&(r.isWeekOrDayView||r.view.id==="month"&&a.options.eventsOnMonthView)?(o.openBlock(),o.createElementBlock("div",zu1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.splitsCount?s.events:r.events,(f,u)=>(o.openBlock(),o.createBlock(i,{key:u,"cell-formatted-date":a.data.formattedDate,event:f,"all-day":a.allDay,"cell-events":r.splitsCount?s.events:r.events,overlaps:((r.splitsCount?s.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).overlaps,"event-position":((r.splitsCount?s.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).position,"overlaps-streak":r.splitsCount?s.overlapsStreak:e.cellOverlapsStreak},{event:o.withCtx(({event:h,view:d})=>[o.renderSlot(e.$slots,"event",{view:d,event:h})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):o.createCommentVNode("",!0)],42,gu1))),128)),r.timelineVisible?(o.openBlock(),o.createElementBlock("div",{class:"vuecal__now-line",style:o.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,xu1)):o.createCommentVNode("",!0)]),_:3},8,["class","name","appear","style"])}const Cu1={inject:["vuecal","utils","modules","view","domEvents"],components:{Event:vu1},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 s=this.isDOMElementAnEvent(e.target);!s&&n._eid&&((this.view.events.find(l=>l._eid===n._eid)||{}).focused=!1),this.editEvents.create&&!s&&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]||{},s=r.daysCount===1&&r.startTimeMinutes<n&&r.endTimeMinutes>c,l=r.daysCount>1&&i.startTimeMinutes<n&&i.endTimeMinutes>c,f=!1;return r.allDay||s||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}}},YO=cn(Cu1,[["render",Mu1]]),Hu1={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function Vu1(e,t,a,c,n,r){const i=o.resolveComponent("vuecal-cell");return o.openBlock(),o.createElementBlock("div",{class:"vuecal__flex vuecal__all-day",style:o.normalizeStyle(a.cellOrSplitMinWidth&&{height:a.height})},[a.cellOrSplitMinWidth?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Hu1,[o.createElementVNode("span",null,o.toDisplayString(a.label),1)])),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",style:o.normalizeStyle(a.cellOrSplitMinWidth?`min-width: ${a.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.cells,(s,l)=>(o.openBlock(),o.createBlock(i,{key:l,options:a.options,"edit-events":r.editEvents,data:s,"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:o.withCtx(({event:f,view:u})=>[o.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 wu1={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":YO},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)}}},_u1=cn(wu1,[["render",Vu1]]),Lu1=["lang"],ku1={class:"default"},Su1={key:0,class:"vuecal__flex vuecal__body",grow:""},Au1=["onBlur","innerHTML"],Nu1=["innerHTML"],Tu1=["innerHTML"],Eu1={class:"vuecal__flex",row:"",grow:""},Ou1={key:0,class:"vuecal__time-column"},Du1={class:"vuecal__time-cell-label"},Pu1={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},Bu1=["wrap","column"],Ru1=["onBlur","innerHTML"],Fu1=["innerHTML"],Iu1=["innerHTML"],$u1=["wrap"],ju1=["innerHTML"],qu1=["innerHTML"],Uu1={key:2,class:"vuecal__cell-events-count"},Wu1={key:3,class:"vuecal__no-event"},Yu1=["onBlur","innerHTML"],Gu1=["innerHTML"],Zu1={key:2,class:"vuecal__event-time"},Xu1={key:0},Ku1={key:1,class:"days-to-end"},Qu1=["innerHTML"],Ju1={key:0,class:"vuecal__scrollbar-check"};function eh1(e,t,a,c,n,r){const i=o.resolveComponent("vuecal-header"),s=o.resolveComponent("all-day-bar"),l=o.resolveComponent("weekdays-headings"),f=o.resolveComponent("vuecal-cell");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuecal__flex vuecal",r.cssClasses]),column:"",ref:"vuecal",lang:a.locale},[o.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},o.createSlots({"arrow-prev":o.withCtx(()=>[o.renderSlot(e.$slots,"arrow-prev",{},()=>[t[0]||(t[0]=o.createTextVNode(" ")),t[1]||(t[1]=o.createElementVNode("i",{class:"angle"},null,-1)),t[2]||(t[2]=o.createTextVNode(" "))])]),"arrow-next":o.withCtx(()=>[o.renderSlot(e.$slots,"arrow-next",{},()=>[t[3]||(t[3]=o.createTextVNode(" ")),t[4]||(t[4]=o.createElementVNode("i",{class:"angle"},null,-1)),t[5]||(t[5]=o.createTextVNode(" "))])]),"today-button":o.withCtx(()=>[o.renderSlot(e.$slots,"today-button",{},()=>[o.createElementVNode("span",ku1,o.toDisplayString(n.texts.today),1)])]),title:o.withCtx(()=>[o.renderSlot(e.$slots,"title",{title:r.viewTitle,view:n.view},()=>[o.createTextVNode(o.toDisplayString(r.viewTitle),1)])]),_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:u,view:h})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:u,view:h})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:u})=>[o.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?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Su1,[o.createVNode(o.Transition,{name:`slide-fade--${n.transitionDirection}`,appear:a.transitions},{default:o.withCtx(()=>[(o.openBlock(),o.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)?(o.openBlock(),o.createBlock(s,o.normalizeProps(o.mergeProps({key:0},r.allDayBar)),{event:o.withCtx(({event:u,view:h})=>[o.renderSlot(e.$slots,"event",{view:h,event:u},()=>[r.editEvents.title&&u.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:d=>r.onEventTitleBlur(d,u),innerHTML:u.title},null,40,Au1)):u.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,Nu1)):o.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,Tu1)):o.createCommentVNode("",!0)])]),_:3},16)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__bg",{vuecal__flex:!r.hasTimeColumn}]),column:""},[o.createElementVNode("div",Eu1,[r.hasTimeColumn?(o.openBlock(),o.createElementBlock("div",Ou1,[a.showAllDayEvents&&r.cellOrSplitMinWidth&&!(r.isDayView&&!a.minSplitWidth)?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__all-day-text",style:o.normalizeStyle({height:r.allDayBar.height})},[o.createElementVNode("span",null,o.toDisplayString(n.texts.allDay),1)],4)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.timeCells,(u,h)=>(o.openBlock(),o.createElementBlock("div",{class:"vuecal__time-cell",key:h,style:o.normalizeStyle(`height: ${a.timeCellHeight}px`)},[o.renderSlot(e.$slots,"time-cell",{hours:u.hours,minutes:u.minutes},()=>[t[6]||(t[6]=o.createElementVNode("span",{class:"vuecal__time-cell-line"},null,-1)),o.createElementVNode("span",Du1,o.toDisplayString(u.label),1)])],4))),128))])):o.createCommentVNode("",!0),a.showWeekNumbers&&r.isMonthView?(o.openBlock(),o.createElementBlock("div",Pu1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(6,u=>o.createElementVNode("div",{class:"vuecal__flex vuecal__week-number-cell",key:u,grow:""},[o.renderSlot(e.$slots,"week-number-cell",{week:r.getWeekNumber(u-1)},()=>[o.createTextVNode(o.toDisplayString(r.getWeekNumber(u-1)),1)])])),64))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["vuecal__flex vuecal__cells",`${n.view.id}-view`]),grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,column:!!r.cellOrSplitMinWidth},[r.cellOrSplitMinWidth&&r.isWeekView?(o.openBlock(),o.createBlock(l,{key:0,"transition-direction":n.transitionDirection,"week-days":r.weekDays,"switch-to-narrower-view":r.switchToNarrowerView,style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},o.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:o.withCtx(({heading:u,view:h})=>[o.renderSlot(e.$slots,"weekday-heading",{heading:u,view:h})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:o.withCtx(({split:u})=>[o.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?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.daySplits,(u,h)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["day-split-header",u.class||!1]),key:h},[o.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id},()=>[o.createTextVNode(o.toDisplayString(u.label),1)])],2))),128))],4)):o.createCommentVNode("",!0),a.showAllDayEvents&&r.hasTimeColumn&&(r.isWeekView&&r.cellOrSplitMinWidth||r.isDayView&&r.hasSplits&&a.minSplitWidth)?(o.openBlock(),o.createBlock(s,o.normalizeProps(o.mergeProps({key:2},r.allDayBar)),{event:o.withCtx(({event:u,view:h})=>[o.renderSlot(e.$slots,"event",{view:h,event:u},()=>[r.editEvents.title&&u.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:d=>r.onEventTitleBlur(d,u),innerHTML:u.title},null,40,Ru1)):u.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,Fu1)):o.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,Iu1)):o.createCommentVNode("",!0)])]),_:3},16)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"vuecal__flex",ref:u=>n.cellsEl=u,grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,style:o.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.viewCells,(u,h)=>(o.openBlock(),o.createBlock(f,{key:h,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":o.withCtx(({events:d,split:m,selectCell:v})=>[o.renderSlot(e.$slots,"cell-content",{cell:u,view:n.view,goNarrower:v,events:d},()=>[m&&!a.stickySplitLabels?(o.openBlock(),o.createElementBlock("div",{key:0,class:"split-label",innerHTML:m.label},null,8,ju1)):o.createCommentVNode("",!0),u.content?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__cell-date",innerHTML:u.content},null,8,qu1)):o.createCommentVNode("",!0),(r.isMonthView&&!a.eventsOnMonthView||r.isYearsOrYearView&&a.eventsCountOnYearView)&&d.length?(o.openBlock(),o.createElementBlock("div",Uu1,[o.renderSlot(e.$slots,"events-count",{view:n.view,events:d},()=>[o.createTextVNode(o.toDisplayString(d.length),1)])])):o.createCommentVNode("",!0),!r.cellOrSplitHasEvents(d,m)&&r.isWeekOrDayView?(o.openBlock(),o.createElementBlock("div",Wu1,[o.renderSlot(e.$slots,"no-event",{},()=>[o.createTextVNode(o.toDisplayString(n.texts.noEvent),1)])])):o.createCommentVNode("",!0)])]),event:o.withCtx(({event:d,view:m})=>[o.renderSlot(e.$slots,"event",{view:m,event:d},()=>[r.editEvents.title&&d.titleEditable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:v=>r.onEventTitleBlur(v,d),innerHTML:d.title},null,40,Yu1)):d.title?(o.openBlock(),o.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:d.title},null,8,Gu1)):o.createCommentVNode("",!0),a.time&&!d.allDay&&!(r.isMonthView&&(d.allDay||a.showAllDayEvents==="short"))&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",Zu1,[o.createTextVNode(o.toDisplayString(n.utils.date.formatTime(d.start,r.TimeFormat)),1),d.endTimeMinutes?(o.openBlock(),o.createElementBlock("span",Xu1," - "+o.toDisplayString(n.utils.date.formatTime(d.end,r.TimeFormat,null,!0)),1)):o.createCommentVNode("",!0),d.daysCount>1&&(d.segments[u.formattedDate]||{}).isFirstDay?(o.openBlock(),o.createElementBlock("small",Ku1," +"+o.toDisplayString(d.daysCount-1)+o.toDisplayString((n.texts.day[0]||"").toLowerCase()),1)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),d.content&&!(r.isMonthView&&d.allDay&&a.showAllDayEvents==="short")&&!r.isShortMonthView?(o.openBlock(),o.createElementBlock("div",{key:3,class:"vuecal__event-content",innerHTML:d.content},null,8,Qu1)):o.createCommentVNode("",!0)])]),"no-event":o.withCtx(()=>[o.renderSlot(e.$slots,"no-event",{},()=>[o.createTextVNode(o.toDisplayString(n.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,$u1)],10,Bu1)])],2)]))]),_:3},8,["name","appear"]),n.ready?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Ju1,t[7]||(t[7]=[o.createElementVNode("div",null,null,-1)])))]))],10,Lu1)}const _n=24*60,nl={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"},YV=["years","year","month","week","day"],GV=new If1(nl),th1={name:"vue-cal",components:{"vuecal-cell":YO,"vuecal-header":hu1,WeekdaysHeadings:WO,AllDayBar:_u1},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:_n},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:{...nl},utils:{date:(this.disableDatePrototypes?GV.removePrototypes():!1)||GV,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({},nl,e),this.utils.date.updateTexts(this.texts);return}const t=await Ff1(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({},nl,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 YV.includes(e)||(console.error(`Vue Cal: invalid active-view parameter provided: "${e}".
|
|
824
824
|
A valid view must be one of: ${YV.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 s=this.enabledViews;this.transitionDirection=s.indexOf(this.view.id)>s.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 s=new Date(this.view.startDate);if(s.getDay()!==(this.startWeekOnSunday?0:1)&&(s=c.getPreviousFirstDayOfWeek(s,this.startWeekOnSunday)),this.view.firstCellDate=s,this.view.lastCellDate=c.addDays(s,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 s=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,s),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 s=this.view.startDate,l={view:e,startDate:s,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(s,1):s)}:{}};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(),s=this.startWeekOnSunday?i:(i||7)-1;if(this.weekDays[s].hide){const f=this.weekDays.map((h,d)=>({...h,i:d}));let u=0;e?([...f.slice(s),...f].find(h=>(u++,!h.hide)).i,u--):[...f,...f.slice(0,s)].reverse().find(h=>(u++,!h.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(s=>t.eventInRange(s,a,c));!this.isYearsOrYearView&&!(this.isMonthView&&!this.eventsOnMonthView)&&(i=i.map(s=>s.daysCount>1?t.createEventSegments(s,n||a,r||c):s)),this.view.events.push(...i),this.isMonthView&&(this.view.outOfScopeEvents=[],e.forEach(s=>{(t.eventInRange(s,n,a)||t.eventInRange(s,c,r))&&(this.view.events.some(l=>l._eid===s._eid)||this.view.outOfScopeEvents.push(s))}))},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:s}=a;let l=!1;const{event:f,start:u}=r,h=this.isDOMElementAnEvent(e.target),d=t.mousedUp;if(t.mousedUp=!1,h&&(this.domEvents.cancelClickEventCreation=!0),n.eventCreated)return;if(s){const{originalEnd:v,originalEndTimeMinutes:p,endTimeMinutes:g}=a,y=this.view.events.find(b=>b._eid===a._eid);if(l=g&&g!==p,y&&y.end.getTime()!==v.getTime()){const b=this.mutableEvents.find(M=>M._eid===a._eid);b.endTimeMinutes=y.endTimeMinutes,b.end=y.end;const x=this.cleanupEvent(y),z={...this.cleanupEvent(y),end:v,endTimeMinutes:y.originalEndTimeMinutes};this.$emit("event-duration-change",{event:x,oldDate:a.originalEnd,originalEvent:z}),this.$emit("event-change",{event:x,originalEvent:z})}y&&(y.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);!h&&!s&&this.unfocusEvent(),c.timeoutId&&!i&&(clearTimeout(c.timeoutId),c.timeoutId=null),n.timeoutId&&(clearTimeout(n.timeoutId),n.timeoutId=null);const m=typeof this.onEventClick=="function";if(d&&!l&&!i&&!f&&m){let v=this.view.events.find(p=>p._eid===t._eid);return!v&&this.isMonthView&&(v=this.view.outOfScopeEvents.find(p=>p._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:s}=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===_n?-1:0,0),this.resizeX&&this.isWeekView){a.daysCount=i.countDays(a.start,a.end);const f=this.cellsEl,u=f.offsetWidth/f.childElementCount,h=Math.floor(n.x/u);if(t.startCell===null&&(t.startCell=h-(a.daysCount-1)),t.endCell!==h){t.endCell=h;const d=i.addDays(a.start,h-t.startCell),m=Math.max(i.countDays(a.start,d),1);if(m!==a.daysCount){let v=null;m>a.daysCount?v=s.addEventSegment(a):v=s.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:s}}=this.minutesAtCursor(e);if(!(!t.event&&Math.abs(c-s)<this.dragToCreateThreshold))if(t.event){if(r.setHours(0,i,i===_n?-1:0,0),this.snapToTime){let u=r.getHours()*60+r.getMinutes();const h=u+this.snapToTime/2;u=h-h%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),s=e.dateToMinutes(r);(!s||s===_n)&&(!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),s=_n);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:s,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 jf1(this),this.utils.event=new Uf1(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,s=this.onEventClick&&typeof this.onEventClick=="function";(a||c||n||r||i||s)&&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},s)=>{e[s]={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 s=this.texts.months[a.getMonth()];this.xsmall&&(s=s.substring(0,3));let l=`${s} ${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=`${s} - ${u} ${i}`:this.small?l=`${s.substring(0,3)} ${i} - ${u.substring(0,3)} ${f}`:l=`${s} ${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 s=new Date(a+i,0,1),l=new Date(a+i+1,0,1);return l.setSeconds(-1),{startDate:s,formattedDate:e.formatDateLite(s),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 s=new Date(a,i,1),l=new Date(a,i+1,1);return l.setSeconds(-1),{startDate:s,formattedDate:e.formatDateLite(s),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((s,l)=>{const f=e.addDays(i,l),u=new Date(f);u.setHours(23,59,59,0);const h=!c&&e.isToday(f)&&!c++;return{startDate:f,formattedDate:e.formatDateLite(f),endDate:u,content:f.getDate(),today:h,outOfScope:f.getMonth()!==r,class:`vuecal__cell--day${f.getDay()||7}`}}),(this.hideWeekends||this.hideWeekdays.length)&&(t=t.filter(s=>{const l=s.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((s,l)=>{const f=e.addDays(r,this.startWeekOnSunday&&this.hideWeekends?l-1:l),u=new Date(f);u.setHours(23,59,59,0);const h=(f.getDay()||7)-1;return{startDate:f,formattedDate:e.formatDateLite(f),endDate:u,today:!c&&e.isToday(f)&&!c++,specialHours:this.specialDayHours[h]||[]}}).filter((s,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 s=(r.getDay()||7)-1;t=[{startDate:r,formattedDate:e.formatDateLite(r),endDate:i,today:e.isToday(r),specialHours:this.specialDayHours[s]||[]}];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)}}},ah1=cn(th1,[["render",eh1]]);function ZV(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 B8(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?ZV(Object(a),!0).forEach(function(c){ch1(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ZV(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function ch1(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function XV(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((a,c)=>(t.includes(c)||(a[c]=o.unref(e[c])),a),{})}function Xl(e){return typeof e=="function"}function nh1(e){return o.isReactive(e)||o.isReadonly(e)}function GO(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 Yd(e,t,a){return o.computed(()=>e.some(c=>GO(t,c,{[a]:!1})[a]))}function KV(e,t,a){return o.computed(()=>e.reduce((c,n)=>{const r=GO(t,n,{[a]:!1})[a]||[];return c.concat(r)},[]))}function ZO(e,t,a,c){return e.call(c,o.unref(t),o.unref(a),c)}function XO(e){return e.$valid!==void 0?!e.$valid:!e}function rh1(e,t,a,c,n,r,i){let{$lazy:s,$rewardEarly:l}=n,f=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],u=arguments.length>8?arguments[8]:void 0,h=arguments.length>9?arguments[9]:void 0,d=arguments.length>10?arguments[10]:void 0;const m=o.ref(!!c.value),v=o.ref(0);a.value=!1;const p=o.watch([t,c].concat(f,d),()=>{if(s&&!c.value||l&&!h.value&&!a.value)return;let g;try{g=ZO(e,t,u,i)}catch(y){g=Promise.reject(y)}v.value++,a.value=!!v.value,m.value=!1,Promise.resolve(g).then(y=>{v.value--,a.value=!!v.value,r.value=y,m.value=XO(y)}).catch(y=>{v.value--,a.value=!!v.value,r.value=y,m.value=!0})},{immediate:!0,deep:typeof t=="object"});return{$invalid:m,$unwatch:p}}function ih1(e,t,a,c,n,r,i,s){let{$lazy:l,$rewardEarly:f}=c;const u=()=>({}),h=o.computed(()=>{if(l&&!a.value||f&&!s.value)return!1;let d=!0;try{const m=ZO(e,t,i,r);n.value=m,d=XO(m)}catch(m){n.value=m}return d});return{$unwatch:u,$invalid:h}}function sh1(e,t,a,c,n,r,i,s,l,f,u){const h=o.ref(!1),d=e.$params||{},m=o.ref(null);let v,p;e.$async?{$invalid:v,$unwatch:p}=rh1(e.$validator,t,h,a,c,m,n,e.$watchTargets,l,f,u):{$invalid:v,$unwatch:p}=ih1(e.$validator,t,a,c,m,n,l,f);const g=e.$message;return{$message:Xl(g)?o.computed(()=>g(XV({$pending:h,$invalid:v,$params:XV(d),$model:t,$response:m,$validator:r,$propertyPath:s,$property:i}))):g||"",$params:d,$pending:h,$invalid:v,$response:m,$unwatch:p}}function oh1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=o.unref(e),a=Object.keys(t),c={},n={},r={};let i=null;return a.forEach(s=>{const l=t[s];switch(!0){case Xl(l.$validator):c[s]=l;break;case Xl(l):c[s]={$validator:l};break;case s==="$validationGroups":i=l;break;case s.startsWith("$"):r[s]=l;break;default:n[s]=l}}),{rules:c,nestedValidators:n,config:r,validationGroups:i}}const lh1="__root";function fh1(e,t,a,c,n,r,i,s,l){const f=Object.keys(e),u=c.get(n,e),h=o.ref(!1),d=o.ref(!1),m=o.ref(0);if(u){if(!u.$partial)return u;u.$unwatch(),h.value=u.$dirty.value}const v={$dirty:h,$path:n,$touch:()=>{h.value||(h.value=!0)},$reset:()=>{h.value&&(h.value=!1)},$commit:()=>{}};return f.length?(f.forEach(p=>{v[p]=sh1(e[p],t,v.$dirty,r,i,p,a,n,l,d,m)}),v.$externalResults=o.computed(()=>s.value?[].concat(s.value).map((p,g)=>({$propertyPath:n,$property:a,$validator:"$externalResults",$uid:`${n}-externalResult-${g}`,$message:p,$params:{},$response:null,$pending:!1})):[]),v.$invalid=o.computed(()=>{const p=f.some(g=>o.unref(v[g].$invalid));return d.value=p,!!v.$externalResults.value.length||p}),v.$pending=o.computed(()=>f.some(p=>o.unref(v[p].$pending))),v.$error=o.computed(()=>v.$dirty.value?v.$pending.value||v.$invalid.value:!1),v.$silentErrors=o.computed(()=>f.filter(p=>o.unref(v[p].$invalid)).map(p=>{const g=v[p];return o.reactive({$propertyPath:n,$property:a,$validator:p,$uid:`${n}-${p}`,$message:g.$message,$params:g.$params,$response:g.$response,$pending:g.$pending})}).concat(v.$externalResults.value)),v.$errors=o.computed(()=>v.$dirty.value?v.$silentErrors.value:[]),v.$unwatch=()=>f.forEach(p=>{v[p].$unwatch()}),v.$commit=()=>{d.value=!0,m.value=Date.now()},c.set(n,e,v),v):(u&&c.set(n,e,v),v)}function uh1(e,t,a,c,n,r,i){const s=Object.keys(e);return s.length?s.reduce((l,f)=>(l[f]=Vv({validations:e[f],state:t,key:f,parentKey:a,resultsCache:c,globalConfig:n,instance:r,externalResults:i}),l),{}):{}}function hh1(e,t,a){const c=o.computed(()=>[t,a].filter(v=>v).reduce((v,p)=>v.concat(Object.values(o.unref(p))),[])),n=o.computed({get(){return e.$dirty.value||(c.value.length?c.value.every(v=>v.$dirty):!1)},set(v){e.$dirty.value=v}}),r=o.computed(()=>{const v=o.unref(e.$silentErrors)||[],p=c.value.filter(g=>(o.unref(g).$silentErrors||[]).length).reduce((g,y)=>g.concat(...y.$silentErrors),[]);return v.concat(p)}),i=o.computed(()=>{const v=o.unref(e.$errors)||[],p=c.value.filter(g=>(o.unref(g).$errors||[]).length).reduce((g,y)=>g.concat(...y.$errors),[]);return v.concat(p)}),s=o.computed(()=>c.value.some(v=>v.$invalid)||o.unref(e.$invalid)||!1),l=o.computed(()=>c.value.some(v=>o.unref(v.$pending))||o.unref(e.$pending)||!1),f=o.computed(()=>c.value.some(v=>v.$dirty)||c.value.some(v=>v.$anyDirty)||n.value),u=o.computed(()=>n.value?l.value||s.value:!1),h=()=>{e.$touch(),c.value.forEach(v=>{v.$touch()})},d=()=>{e.$commit(),c.value.forEach(v=>{v.$commit()})},m=()=>{e.$reset(),c.value.forEach(v=>{v.$reset()})};return c.value.length&&c.value.every(v=>v.$dirty)&&h(),{$dirty:n,$errors:i,$invalid:s,$anyDirty:f,$error:u,$pending:l,$touch:h,$reset:m,$silentErrors:r,$commit:d}}function Vv(e){let{validations:t,state:a,key:c,parentKey:n,childResults:r,resultsCache:i,globalConfig:s={},instance:l,externalResults:f}=e;const u=n?`${n}.${c}`:c,{rules:h,nestedValidators:d,config:m,validationGroups:v}=oh1(t),p=B8(B8({},s),m),g=c?o.computed(()=>{const U=o.unref(a);return U?o.unref(U[c]):void 0}):a,y=B8({},o.unref(f)||{}),b=o.computed(()=>{const U=o.unref(f);return c?U?o.unref(U[c]):void 0:U}),x=fh1(h,g,c,i,u,p,l,b,a),z=uh1(d,g,u,i,p,l,b),M={};v&&Object.entries(v).forEach(U=>{let[D,T]=U;M[D]={$invalid:Yd(T,z,"$invalid"),$error:Yd(T,z,"$error"),$pending:Yd(T,z,"$pending"),$errors:KV(T,z,"$errors"),$silentErrors:KV(T,z,"$silentErrors")}});const{$dirty:H,$errors:C,$invalid:w,$anyDirty:L,$error:S,$pending:_,$touch:V,$reset:O,$silentErrors:j,$commit:N}=hh1(x,z,r),B=c?o.computed({get:()=>o.unref(g),set:U=>{H.value=!0;const D=o.unref(a),T=o.unref(f);T&&(T[c]=y[c]),o.isRef(D[c])?D[c].value=U:D[c]=U}}):null;c&&p.$autoDirty&&o.watch(g,()=>{H.value||V();const U=o.unref(f);U&&(U[c]=y[c])},{flush:"sync"});async function F(){return V(),p.$rewardEarly&&(N(),await o.nextTick()),await o.nextTick(),new Promise(U=>{if(!_.value)return U(!w.value);const D=o.watch(_,()=>{U(!w.value),D()})})}function X(U){return(r.value||{})[U]}function Y(){o.isRef(f)?f.value=y:Object.keys(y).length===0?Object.keys(f).forEach(U=>{delete f[U]}):Object.assign(f,y)}return o.reactive(B8(B8(B8({},x),{},{$model:B,$dirty:H,$error:S,$errors:C,$invalid:w,$anyDirty:L,$pending:_,$touch:V,$reset:O,$path:u||lh1,$silentErrors:j,$validate:F,$commit:N},r&&{$getResultsForChild:X,$clearExternalResults:Y,$validationGroups:M}),z))}class dh1{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(s=>n.includes(s))?!1:r.every(s=>a[s].$params?Object.keys(a[s].$params).every(l=>o.unref(c[s].$params[l])===o.unref(a[s].$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),s=r.$unwatch?r.$unwatch:()=>({});return i?r:{$dirty:r.$dirty,$partial:!0,$unwatch:s}}}const rl={COLLECT_ALL:!0,COLLECT_NONE:!1},QV=Symbol("vuelidate#injectChildResults"),JV=Symbol("vuelidate#removeChildResults");function mh1(e){let{$scope:t,instance:a}=e;const c={},n=o.ref([]),r=o.computed(()=>n.value.reduce((u,h)=>(u[h]=o.unref(c[h]),u),{}));function i(u,h){let{$registerAs:d,$scope:m,$stopPropagation:v}=h;v||t===rl.COLLECT_NONE||m===rl.COLLECT_NONE||t!==rl.COLLECT_ALL&&t!==m||(c[d]=u,n.value.push(d))}a.__vuelidateInjectInstances=[].concat(a.__vuelidateInjectInstances||[],i);function s(u){n.value=n.value.filter(h=>h!==u),delete c[u]}a.__vuelidateRemoveInstances=[].concat(a.__vuelidateRemoveInstances||[],s);const l=o.inject(QV,[]);o.provide(QV,a.__vuelidateInjectInstances);const f=o.inject(JV,[]);return o.provide(JV,a.__vuelidateRemoveInstances),{childResults:r,sendValidationResultsToParent:l,removeValidationResultsFromParent:f}}function KO(e){return new Proxy(e,{get(t,a){return typeof t[a]=="object"?KO(t[a]):o.computed(()=>t[a])}})}let ew=0;function QO(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=rl.COLLECT_ALL,$stopPropagation:i,$externalResults:s,currentVueInstance:l}=c;const f=l||((a=o.getCurrentInstance())===null||a===void 0?void 0:a.proxy),u=f?f.$options:{};n||(ew+=1,n=`_vuelidate_${ew}`);const h=o.ref({}),d=new dh1,{childResults:m,sendValidationResultsToParent:v,removeValidationResultsFromParent:p}=f?mh1({$scope:r,instance:f}):{childResults:o.ref({})};if(!e&&u.validations){const g=u.validations;t=o.ref({}),o.onBeforeMount(()=>{t.value=f,o.watch(()=>Xl(g)?g.call(t.value,new KO(t.value)):g,y=>{h.value=Vv({validations:y,state:t,childResults:m,resultsCache:d,globalConfig:c,instance:f,externalResults:s||f.vuelidateExternalResults})},{immediate:!0})}),c=u.validationsConfig||c}else{const g=o.isRef(e)||nh1(e)?e:o.reactive(e||{});o.watch(g,y=>{h.value=Vv({validations:y,state:t,childResults:m,resultsCache:d,globalConfig:c,instance:f??{},externalResults:s})},{immediate:!0})}return f&&(v.forEach(g=>g(h,{$registerAs:n,$scope:r,$stopPropagation:i})),o.onBeforeUnmount(()=>p.forEach(g=>g(n)))),o.computed(()=>B8(B8({},o.unref(h.value)),m.value))}var ph1=Object.defineProperty,vh1=(e,t,a)=>t in e?ph1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,A1=(e,t,a)=>(vh1(e,typeof t!="symbol"?t+"":t,a),a);const gh1={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"}},required:{light:"#e53935",dark:"#ff5252",contrast:{light:"#ffffff",dark:"#ffffff"}},overlay:{light:"#00000080",dark:"#00000055",contrast:{light:"#ffffff",dark:"#ffffff"}}};var yh1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bh1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var JO={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(s,l="id"){return s.filter((f,u,h)=>u===h.findIndex(d=>d[l]===f[l]))}},621:function(r,i,s){var l=this&&this.__awaiter||function(h,d,m,v){return new(m||(m=Promise))(function(p,g){function y(z){try{x(v.next(z))}catch(M){g(M)}}function b(z){try{x(v.throw(z))}catch(M){g(M)}}function x(z){var M;z.done?p(z.value):(M=z.value,M instanceof m?M:new m(function(H){H(M)})).then(y,b)}x((v=v.apply(h,d||[])).next())})},f=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(i,"__esModule",{value:!0}),i.getCoinValueInUsd=void 0;const u=f(s(425));i.getCoinValueInUsd=function(h){return l(this,void 0,void 0,function*(){try{return h==="ARS"?1/(yield u.default.get("https://dolarapi.com/v1/dolares/blue")).data.venta:["BTC","ETH","LTC","USDT"].includes(h)?(yield u.default.get("https://api.coincap.io/v2/assets")).data.data.find(d=>d.symbol===h).priceUsd:1/(yield u.default.get("https://v6.exchangerate-api.com/v6/65057543fdcbb1629e21c3a2/latest/USD")).data.conversion_rates[h]}catch{throw new Error(`Unable to get the value of ${h} 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(s){return(s||new Date).toISOString().split("T")[0]},i.getIsoTime=function(s){return(s||new Date).toISOString().split("T")[1]},i.getCurrentYearStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),0,1)},i.getPreviousYearStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear()-1,0,1)},i.getNextYearStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear()+1,0,1)},i.getCurrentMonthStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth(),1)},i.getPreviousMonthStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth()-1,1)},i.getNextMonthStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth()+1,1)},i.getCurrentDayStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate())},i.getPreviousDayStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate()-1)},i.getNextDayStartDate=function(s){const l=s||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate()+1)}},905:(r,i)=>{function s(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 h=((u=l.match(/[a-zA-Z%]+/))===null||u===void 0?void 0:u[0])||"";return`${[l,...f].reduce((d,m)=>d+parseFloat(m),0)}${h}`},i.multiplyWithUnits=function(l,f){var u;const h=((u=l.match(/[a-zA-Z%]+/))===null||u===void 0?void 0:u[0])||"";return`${parseFloat(l)*f}${h}`},i.roundNumber=s,i.roundDecimals=function(l,f=0,u="round"){return s(l,1/Math.pow(10,f),u)}},563:(r,i)=>{function s(u){return JSON.parse(JSON.stringify(u))}function l(u){return!(!u||typeof u!="object"||Array.isArray(u))}function f(u,h){for(const d in h)l(h[d])?(u[d]||(u[d]={}),f(u[d],h[d])):u[d]=h[d]}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=s,i.copyAvailableFields=function u(h,d){if(h&&d)for(const m in d)d.hasOwnProperty(m)&&h.hasOwnProperty(m)&&(typeof d[m]=="object"&&d[m]!==null?u(h[m],d[m]):h[m]=d[m])},i.removeProps=function(u,h){const d=s(u);return(Array.isArray(h)?h:[h]).forEach(m=>delete d[m]),d},i.isObject=l,i.merge=f,i.mergeDeep=function(u,h){const d={};return f(d,u),f(d,h),d},i.filterKeys=function(u,h){const d={},m=Object.keys(u);for(const v of m)d[v]=h[v];return d},i.filterKeysDeep=function u(h,d){const m={},v=Object.keys(h);for(const p of v)l(h[p])&&l(d[p])?m[p]=u(h[p],d[p]):m[p]=d[p];return m}},849:(r,i)=>{function s(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=s,i.camelToUpperSnake=function(l){return s(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,s){var l=this&&this.__createBinding||(Object.create?function(u,h,d,m){m===void 0&&(m=d);var v=Object.getOwnPropertyDescriptor(h,d);v&&!("get"in v?!h.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(u,m,v)}:function(u,h,d,m){m===void 0&&(m=d),u[m]=h[d]}),f=this&&this.__exportStar||function(u,h){for(var d in u)d==="default"||Object.prototype.hasOwnProperty.call(h,d)||l(h,u,d)};Object.defineProperty(i,"__esModule",{value:!0}),f(s(423),i),f(s(621),i),f(s(985),i),f(s(905),i),f(s(563),i),f(s(849),i),f(s(574),i)},574:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0})},425:(r,i,s)=>{function l(P,E){return function(){return P.apply(E,arguments)}}const{toString:f}=Object.prototype,{getPrototypeOf:u}=Object,h=(d=Object.create(null),P=>{const E=f.call(P);return d[E]||(d[E]=E.slice(8,-1).toLowerCase())});var d;const m=P=>(P=P.toLowerCase(),E=>h(E)===P),v=P=>E=>typeof E===P,{isArray:p}=Array,g=v("undefined"),y=m("ArrayBuffer"),b=v("string"),x=v("function"),z=v("number"),M=P=>P!==null&&typeof P=="object",H=P=>{if(h(P)!=="object")return!1;const E=u(P);return!(E!==null&&E!==Object.prototype&&Object.getPrototypeOf(E)!==null||Symbol.toStringTag in P||Symbol.iterator in P)},C=m("Date"),w=m("File"),L=m("Blob"),S=m("FileList"),_=m("URLSearchParams");function V(P,E,{allOwnKeys:I=!1}={}){if(P==null)return;let Z,Q;if(typeof P!="object"&&(P=[P]),p(P))for(Z=0,Q=P.length;Z<Q;Z++)E.call(null,P[Z],Z,P);else{const c1=I?Object.getOwnPropertyNames(P):Object.keys(P),t1=c1.length;let M1;for(Z=0;Z<t1;Z++)M1=c1[Z],E.call(null,P[M1],M1,P)}}function O(P,E){E=E.toLowerCase();const I=Object.keys(P);let Z,Q=I.length;for(;Q-- >0;)if(Z=I[Q],E===Z.toLowerCase())return Z;return null}const j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:s.g,N=P=>!g(P)&&P!==j,B=(F=typeof Uint8Array<"u"&&u(Uint8Array),P=>F&&P instanceof F);var F;const X=m("HTMLFormElement"),Y=(({hasOwnProperty:P})=>(E,I)=>P.call(E,I))(Object.prototype),U=m("RegExp"),D=(P,E)=>{const I=Object.getOwnPropertyDescriptors(P),Z={};V(I,(Q,c1)=>{let t1;(t1=E(Q,c1,P))!==!1&&(Z[c1]=t1||Q)}),Object.defineProperties(P,Z)},T="abcdefghijklmnopqrstuvwxyz",k="0123456789",q={DIGIT:k,ALPHA:T,ALPHA_DIGIT:T+T.toUpperCase()+k},G=m("AsyncFunction");var A={isArray:p,isArrayBuffer:y,isBuffer:function(P){return P!==null&&!g(P)&&P.constructor!==null&&!g(P.constructor)&&x(P.constructor.isBuffer)&&P.constructor.isBuffer(P)},isFormData:P=>{let E;return P&&(typeof FormData=="function"&&P instanceof FormData||x(P.append)&&((E=h(P))==="formdata"||E==="object"&&x(P.toString)&&P.toString()==="[object FormData]"))},isArrayBufferView:function(P){let E;return E=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(P):P&&P.buffer&&y(P.buffer),E},isString:b,isNumber:z,isBoolean:P=>P===!0||P===!1,isObject:M,isPlainObject:H,isUndefined:g,isDate:C,isFile:w,isBlob:L,isRegExp:U,isFunction:x,isStream:P=>M(P)&&x(P.pipe),isURLSearchParams:_,isTypedArray:B,isFileList:S,forEach:V,merge:function P(){const{caseless:E}=N(this)&&this||{},I={},Z=(Q,c1)=>{const t1=E&&O(I,c1)||c1;H(I[t1])&&H(Q)?I[t1]=P(I[t1],Q):H(Q)?I[t1]=P({},Q):p(Q)?I[t1]=Q.slice():I[t1]=Q};for(let Q=0,c1=arguments.length;Q<c1;Q++)arguments[Q]&&V(arguments[Q],Z);return I},extend:(P,E,I,{allOwnKeys:Z}={})=>(V(E,(Q,c1)=>{I&&x(Q)?P[c1]=l(Q,I):P[c1]=Q},{allOwnKeys:Z}),P),trim:P=>P.trim?P.trim():P.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:P=>(P.charCodeAt(0)===65279&&(P=P.slice(1)),P),inherits:(P,E,I,Z)=>{P.prototype=Object.create(E.prototype,Z),P.prototype.constructor=P,Object.defineProperty(P,"super",{value:E.prototype}),I&&Object.assign(P.prototype,I)},toFlatObject:(P,E,I,Z)=>{let Q,c1,t1;const M1={};if(E=E||{},P==null)return E;do{for(Q=Object.getOwnPropertyNames(P),c1=Q.length;c1-- >0;)t1=Q[c1],Z&&!Z(t1,P,E)||M1[t1]||(E[t1]=P[t1],M1[t1]=!0);P=I!==!1&&u(P)}while(P&&(!I||I(P,E))&&P!==Object.prototype);return E},kindOf:h,kindOfTest:m,endsWith:(P,E,I)=>{P=String(P),(I===void 0||I>P.length)&&(I=P.length),I-=E.length;const Z=P.indexOf(E,I);return Z!==-1&&Z===I},toArray:P=>{if(!P)return null;if(p(P))return P;let E=P.length;if(!z(E))return null;const I=new Array(E);for(;E-- >0;)I[E]=P[E];return I},forEachEntry:(P,E)=>{const I=(P&&P[Symbol.iterator]).call(P);let Z;for(;(Z=I.next())&&!Z.done;){const Q=Z.value;E.call(P,Q[0],Q[1])}},matchAll:(P,E)=>{let I;const Z=[];for(;(I=P.exec(E))!==null;)Z.push(I);return Z},isHTMLForm:X,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:D,freezeMethods:P=>{D(P,(E,I)=>{if(x(P)&&["arguments","caller","callee"].indexOf(I)!==-1)return!1;const Z=P[I];x(Z)&&(E.enumerable=!1,"writable"in E?E.writable=!1:E.set||(E.set=()=>{throw Error("Can not rewrite read-only method '"+I+"'")}))})},toObjectSet:(P,E)=>{const I={},Z=Q=>{Q.forEach(c1=>{I[c1]=!0})};return p(P)?Z(P):Z(String(P).split(E)),I},toCamelCase:P=>P.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(E,I,Z){return I.toUpperCase()+Z}),noop:()=>{},toFiniteNumber:(P,E)=>(P=+P,Number.isFinite(P)?P:E),findKey:O,global:j,isContextDefined:N,ALPHABET:q,generateString:(P=16,E=q.ALPHA_DIGIT)=>{let I="";const{length:Z}=E;for(;P--;)I+=E[Math.random()*Z|0];return I},isSpecCompliantForm:function(P){return!!(P&&x(P.append)&&P[Symbol.toStringTag]==="FormData"&&P[Symbol.iterator])},toJSONObject:P=>{const E=new Array(10),I=(Z,Q)=>{if(M(Z)){if(E.indexOf(Z)>=0)return;if(!("toJSON"in Z)){E[Q]=Z;const c1=p(Z)?[]:{};return V(Z,(t1,M1)=>{const V1=I(t1,Q+1);!g(V1)&&(c1[M1]=V1)}),E[Q]=void 0,c1}}return Z};return I(P,0)},isAsyncFn:G,isThenable:P=>P&&(M(P)||x(P))&&x(P.then)&&x(P.catch)};function R(P,E,I,Z,Q){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=P,this.name="AxiosError",E&&(this.code=E),I&&(this.config=I),Z&&(this.request=Z),Q&&(this.response=Q)}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 K=R.prototype,a1={};function J(P){return A.isPlainObject(P)||A.isArray(P)}function s1(P){return A.endsWith(P,"[]")?P.slice(0,-2):P}function W(P,E,I){return P?P.concat(E).map(function(Z,Q){return Z=s1(Z),!I&&Q?"["+Z+"]":Z}).join(I?".":""):E}["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(P=>{a1[P]={value:P}}),Object.defineProperties(R,a1),Object.defineProperty(K,"isAxiosError",{value:!0}),R.from=(P,E,I,Z,Q,c1)=>{const t1=Object.create(K);return A.toFlatObject(P,t1,function(M1){return M1!==Error.prototype},M1=>M1!=="isAxiosError"),R.call(t1,P.message,E,I,Z,Q),t1.cause=P,t1.name=P.name,c1&&Object.assign(t1,c1),t1};const u1=A.toFlatObject(A,{},null,function(P){return/^is[A-Z]/.test(P)});function z1(P,E,I){if(!A.isObject(P))throw new TypeError("target must be an object");E=E||new FormData;const Z=(I=A.toFlatObject(I,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O1,G1){return!A.isUndefined(G1[O1])})).metaTokens,Q=I.visitor||w1,c1=I.dots,t1=I.indexes,M1=(I.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(E);if(!A.isFunction(Q))throw new TypeError("visitor must be a function");function V1(O1){if(O1===null)return"";if(A.isDate(O1))return O1.toISOString();if(!M1&&A.isBlob(O1))throw new R("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(O1)||A.isTypedArray(O1)?M1&&typeof Blob=="function"?new Blob([O1]):Buffer.from(O1):O1}function w1(O1,G1,P1){let Q1=O1;if(O1&&!P1&&typeof O1=="object"){if(A.endsWith(G1,"{}"))G1=Z?G1:G1.slice(0,-2),O1=JSON.stringify(O1);else if(A.isArray(O1)&&function(p2){return A.isArray(p2)&&!p2.some(J)}(O1)||(A.isFileList(O1)||A.endsWith(G1,"[]"))&&(Q1=A.toArray(O1)))return G1=s1(G1),Q1.forEach(function(p2,Z2){!A.isUndefined(p2)&&p2!==null&&E.append(t1===!0?W([G1],Z2,c1):t1===null?G1:G1+"[]",V1(p2))}),!1}return!!J(O1)||(E.append(W(P1,G1,c1),V1(O1)),!1)}const b1=[],D1=Object.assign(u1,{defaultVisitor:w1,convertValue:V1,isVisitable:J});if(!A.isObject(P))throw new TypeError("data must be an object");return function O1(G1,P1){if(!A.isUndefined(G1)){if(b1.indexOf(G1)!==-1)throw Error("Circular reference detected in "+P1.join("."));b1.push(G1),A.forEach(G1,function(Q1,p2){(!(A.isUndefined(Q1)||Q1===null)&&Q.call(E,Q1,A.isString(p2)?p2.trim():p2,P1,D1))===!0&&O1(Q1,P1?P1.concat(p2):[p2])}),b1.pop()}}(P),E}function l1(P){const E={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(P).replace(/[!'()~]|%20|%00/g,function(I){return E[I]})}function e1(P,E){this._pairs=[],P&&z1(P,this,E)}const o1=e1.prototype;function r1(P){return encodeURIComponent(P).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function d1(P,E,I){if(!E)return P;const Z=I&&I.encode||r1,Q=I&&I.serialize;let c1;if(c1=Q?Q(E,I):A.isURLSearchParams(E)?E.toString():new e1(E,I).toString(Z),c1){const t1=P.indexOf("#");t1!==-1&&(P=P.slice(0,t1)),P+=(P.indexOf("?")===-1?"?":"&")+c1}return P}o1.append=function(P,E){this._pairs.push([P,E])},o1.toString=function(P){const E=P?function(I){return P.call(this,I,l1)}:l1;return this._pairs.map(function(I){return E(I[0])+"="+E(I[1])},"").join("&")};var x1=class{constructor(){this.handlers=[]}use(P,E,I){return this.handlers.push({fulfilled:P,rejected:E,synchronous:!!I&&I.synchronous,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(P){this.handlers[P]&&(this.handlers[P]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(P){A.forEach(this.handlers,function(E){E!==null&&P(E)})}},p1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},C1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:e1,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]};const E1=typeof window<"u"&&typeof document<"u",R1=(B1=typeof navigator<"u"&&navigator.product,E1&&["ReactNative","NativeScript","NS"].indexOf(B1)<0);var B1;const W1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var Y1={...Object.freeze({__proto__:null,hasBrowserEnv:E1,hasStandardBrowserWebWorkerEnv:W1,hasStandardBrowserEnv:R1}),...C1};function c2(P){function E(I,Z,Q,c1){let t1=I[c1++];if(t1==="__proto__")return!0;const M1=Number.isFinite(+t1),V1=c1>=I.length;return t1=!t1&&A.isArray(Q)?Q.length:t1,V1?(A.hasOwnProp(Q,t1)?Q[t1]=[Q[t1],Z]:Q[t1]=Z,!M1):(Q[t1]&&A.isObject(Q[t1])||(Q[t1]=[]),E(I,Z,Q[t1],c1)&&A.isArray(Q[t1])&&(Q[t1]=function(w1){const b1={},D1=Object.keys(w1);let O1;const G1=D1.length;let P1;for(O1=0;O1<G1;O1++)P1=D1[O1],b1[P1]=w1[P1];return b1}(Q[t1])),!M1)}if(A.isFormData(P)&&A.isFunction(P.entries)){const I={};return A.forEachEntry(P,(Z,Q)=>{E(function(c1){return A.matchAll(/\w+|\[(\w*)]/g,c1).map(t1=>t1[0]==="[]"?"":t1[1]||t1[0])}(Z),Q,I,0)}),I}return null}const i2={transitional:p1,adapter:["xhr","http"],transformRequest:[function(P,E){const I=E.getContentType()||"",Z=I.indexOf("application/json")>-1,Q=A.isObject(P);if(Q&&A.isHTMLForm(P)&&(P=new FormData(P)),A.isFormData(P))return Z?JSON.stringify(c2(P)):P;if(A.isArrayBuffer(P)||A.isBuffer(P)||A.isStream(P)||A.isFile(P)||A.isBlob(P))return P;if(A.isArrayBufferView(P))return P.buffer;if(A.isURLSearchParams(P))return E.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),P.toString();let c1;if(Q){if(I.indexOf("application/x-www-form-urlencoded")>-1)return function(t1,M1){return z1(t1,new Y1.classes.URLSearchParams,Object.assign({visitor:function(V1,w1,b1,D1){return Y1.isNode&&A.isBuffer(V1)?(this.append(w1,V1.toString("base64")),!1):D1.defaultVisitor.apply(this,arguments)}},M1))}(P,this.formSerializer).toString();if((c1=A.isFileList(P))||I.indexOf("multipart/form-data")>-1){const t1=this.env&&this.env.FormData;return z1(c1?{"files[]":P}:P,t1&&new t1,this.formSerializer)}}return Q||Z?(E.setContentType("application/json",!1),function(t1,M1,V1){if(A.isString(t1))try{return(0,JSON.parse)(t1),A.trim(t1)}catch(w1){if(w1.name!=="SyntaxError")throw w1}return(0,JSON.stringify)(t1)}(P)):P}],transformResponse:[function(P){const E=this.transitional||i2.transitional,I=E&&E.forcedJSONParsing,Z=this.responseType==="json";if(P&&A.isString(P)&&(I&&!this.responseType||Z)){const Q=!(E&&E.silentJSONParsing)&&Z;try{return JSON.parse(P)}catch(c1){if(Q)throw c1.name==="SyntaxError"?R.from(c1,R.ERR_BAD_RESPONSE,this,null,this.response):c1}}return P}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Y1.classes.FormData,Blob:Y1.classes.Blob},validateStatus:function(P){return P>=200&&P<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],P=>{i2.headers[P]={}});var $1=i2;const d2=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"]),A2=Symbol("internals");function h2(P){return P&&String(P).trim().toLowerCase()}function v2(P){return P===!1||P==null?P:A.isArray(P)?P.map(v2):String(P)}function J2(P,E,I,Z,Q){return A.isFunction(Z)?Z.call(this,E,I):(Q&&(E=I),A.isString(E)?A.isString(Z)?E.indexOf(Z)!==-1:A.isRegExp(Z)?Z.test(E):void 0:void 0)}class f1{constructor(E){E&&this.set(E)}set(E,I,Z){const Q=this;function c1(M1,V1,w1){const b1=h2(V1);if(!b1)throw new Error("header name must be a non-empty string");const D1=A.findKey(Q,b1);(!D1||Q[D1]===void 0||w1===!0||w1===void 0&&Q[D1]!==!1)&&(Q[D1||V1]=v2(M1))}const t1=(M1,V1)=>A.forEach(M1,(w1,b1)=>c1(w1,b1,V1));return A.isPlainObject(E)||E instanceof this.constructor?t1(E,I):A.isString(E)&&(E=E.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(E.trim())?t1((M1=>{const V1={};let w1,b1,D1;return M1&&M1.split(`
|
|
825
825
|
`).forEach(function(O1){D1=O1.indexOf(":"),w1=O1.substring(0,D1).trim().toLowerCase(),b1=O1.substring(D1+1).trim(),!w1||V1[w1]&&d2[w1]||(w1==="set-cookie"?V1[w1]?V1[w1].push(b1):V1[w1]=[b1]:V1[w1]=V1[w1]?V1[w1]+", "+b1:b1)}),V1})(E),I):E!=null&&c1(I,E,Z),this}get(E,I){if(E=h2(E)){const Z=A.findKey(this,E);if(Z){const Q=this[Z];if(!I)return Q;if(I===!0)return function(c1){const t1=Object.create(null),M1=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let V1;for(;V1=M1.exec(c1);)t1[V1[1]]=V1[2];return t1}(Q);if(A.isFunction(I))return I.call(this,Q,Z);if(A.isRegExp(I))return I.exec(Q);throw new TypeError("parser must be boolean|regexp|function")}}}has(E,I){if(E=h2(E)){const Z=A.findKey(this,E);return!(!Z||this[Z]===void 0||I&&!J2(0,this[Z],Z,I))}return!1}delete(E,I){const Z=this;let Q=!1;function c1(t1){if(t1=h2(t1)){const M1=A.findKey(Z,t1);!M1||I&&!J2(0,Z[M1],M1,I)||(delete Z[M1],Q=!0)}}return A.isArray(E)?E.forEach(c1):c1(E),Q}clear(E){const I=Object.keys(this);let Z=I.length,Q=!1;for(;Z--;){const c1=I[Z];E&&!J2(0,this[c1],c1,E,!0)||(delete this[c1],Q=!0)}return Q}normalize(E){const I=this,Z={};return A.forEach(this,(Q,c1)=>{const t1=A.findKey(Z,c1);if(t1)return I[t1]=v2(Q),void delete I[c1];const M1=E?function(V1){return V1.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(w1,b1,D1)=>b1.toUpperCase()+D1)}(c1):String(c1).trim();M1!==c1&&delete I[c1],I[M1]=v2(Q),Z[M1]=!0}),this}concat(...E){return this.constructor.concat(this,...E)}toJSON(E){const I=Object.create(null);return A.forEach(this,(Z,Q)=>{Z!=null&&Z!==!1&&(I[Q]=E&&A.isArray(Z)?Z.join(", "):Z)}),I}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([E,I])=>E+": "+I).join(`
|
|
826
826
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(E){return E instanceof this?E:new this(E)}static concat(E,...I){const Z=new this(E);return I.forEach(Q=>Z.set(Q)),Z}static accessor(E){const I=(this[A2]=this[A2]={accessors:{}}).accessors,Z=this.prototype;function Q(c1){const t1=h2(c1);I[t1]||(function(M1,V1){const w1=A.toCamelCase(" "+V1);["get","set","has"].forEach(b1=>{Object.defineProperty(M1,b1+w1,{value:function(D1,O1,G1){return this[b1].call(this,V1,D1,O1,G1)},configurable:!0})})}(Z,c1),I[t1]=!0)}return A.isArray(E)?E.forEach(Q):Q(E),this}}f1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(f1.prototype,({value:P},E)=>{let I=E[0].toUpperCase()+E.slice(1);return{get:()=>P,set(Z){this[I]=Z}}}),A.freezeMethods(f1);var i1=f1;function H1(P,E){const I=this||$1,Z=E||I,Q=i1.from(Z.headers);let c1=Z.data;return A.forEach(P,function(t1){c1=t1.call(I,c1,Q.normalize(),E?E.status:void 0)}),Q.normalize(),c1}function _1(P){return!(!P||!P.__CANCEL__)}function U1(P,E,I){R.call(this,P??"canceled",R.ERR_CANCELED,E,I),this.name="CanceledError"}A.inherits(U1,R,{__CANCEL__:!0});var g2=Y1.hasStandardBrowserEnv?{write(P,E,I,Z,Q,c1){const t1=[P+"="+encodeURIComponent(E)];A.isNumber(I)&&t1.push("expires="+new Date(I).toGMTString()),A.isString(Z)&&t1.push("path="+Z),A.isString(Q)&&t1.push("domain="+Q),c1===!0&&t1.push("secure"),document.cookie=t1.join("; ")},read(P){const E=document.cookie.match(new RegExp("(^|;\\s*)("+P+")=([^;]*)"));return E?decodeURIComponent(E[3]):null},remove(P){this.write(P,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function L2(P,E){return P&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(E)?function(I,Z){return Z?I.replace(/\/?\/$/,"")+"/"+Z.replace(/^\/+/,""):I}(P,E):E}var B3=Y1.hasStandardBrowserEnv?function(){const P=/(msie|trident)/i.test(navigator.userAgent),E=document.createElement("a");let I;function Z(Q){let c1=Q;return P&&(E.setAttribute("href",c1),c1=E.href),E.setAttribute("href",c1),{href:E.href,protocol:E.protocol?E.protocol.replace(/:$/,""):"",host:E.host,search:E.search?E.search.replace(/^\?/,""):"",hash:E.hash?E.hash.replace(/^#/,""):"",hostname:E.hostname,port:E.port,pathname:E.pathname.charAt(0)==="/"?E.pathname:"/"+E.pathname}}return I=Z(window.location.href),function(Q){const c1=A.isString(Q)?Z(Q):Q;return c1.protocol===I.protocol&&c1.host===I.host}}():function(){return!0};function f4(P,E){let I=0;const Z=function(Q,c1){Q=Q||10;const t1=new Array(Q),M1=new Array(Q);let V1,w1=0,b1=0;return c1=c1!==void 0?c1:1e3,function(D1){const O1=Date.now(),G1=M1[b1];V1||(V1=O1),t1[w1]=D1,M1[w1]=O1;let P1=b1,Q1=0;for(;P1!==w1;)Q1+=t1[P1++],P1%=Q;if(w1=(w1+1)%Q,w1===b1&&(b1=(b1+1)%Q),O1-V1<c1)return;const p2=G1&&O1-G1;return p2?Math.round(1e3*Q1/p2):void 0}}(50,250);return Q=>{const c1=Q.loaded,t1=Q.lengthComputable?Q.total:void 0,M1=c1-I,V1=Z(M1);I=c1;const w1={loaded:c1,total:t1,progress:t1?c1/t1:void 0,bytes:M1,rate:V1||void 0,estimated:V1&&t1&&c1<=t1?(t1-c1)/V1:void 0,event:Q};w1[E?"download":"upload"]=!0,P(w1)}}const s2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(P){return new Promise(function(E,I){let Z=P.data;const Q=i1.from(P.headers).normalize();let c1,t1,{responseType:M1,withXSRFToken:V1}=P;function w1(){P.cancelToken&&P.cancelToken.unsubscribe(c1),P.signal&&P.signal.removeEventListener("abort",c1)}if(A.isFormData(Z)){if(Y1.hasStandardBrowserEnv||Y1.hasStandardBrowserWebWorkerEnv)Q.setContentType(!1);else if((t1=Q.getContentType())!==!1){const[P1,...Q1]=t1?t1.split(";").map(p2=>p2.trim()).filter(Boolean):[];Q.setContentType([P1||"multipart/form-data",...Q1].join("; "))}}let b1=new XMLHttpRequest;if(P.auth){const P1=P.auth.username||"",Q1=P.auth.password?unescape(encodeURIComponent(P.auth.password)):"";Q.set("Authorization","Basic "+btoa(P1+":"+Q1))}const D1=L2(P.baseURL,P.url);function O1(){if(!b1)return;const P1=i1.from("getAllResponseHeaders"in b1&&b1.getAllResponseHeaders());(function(Q1,p2,Z2){const vn=Z2.config.validateStatus;Z2.status&&vn&&!vn(Z2.status)?p2(new R("Request failed with status code "+Z2.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(Z2.status/100)-4],Z2.config,Z2.request,Z2)):Q1(Z2)})(function(Q1){E(Q1),w1()},function(Q1){I(Q1),w1()},{data:M1&&M1!=="text"&&M1!=="json"?b1.response:b1.responseText,status:b1.status,statusText:b1.statusText,headers:P1,config:P,request:b1}),b1=null}if(b1.open(P.method.toUpperCase(),d1(D1,P.params,P.paramsSerializer),!0),b1.timeout=P.timeout,"onloadend"in b1?b1.onloadend=O1:b1.onreadystatechange=function(){b1&&b1.readyState===4&&(b1.status!==0||b1.responseURL&&b1.responseURL.indexOf("file:")===0)&&setTimeout(O1)},b1.onabort=function(){b1&&(I(new R("Request aborted",R.ECONNABORTED,P,b1)),b1=null)},b1.onerror=function(){I(new R("Network Error",R.ERR_NETWORK,P,b1)),b1=null},b1.ontimeout=function(){let P1=P.timeout?"timeout of "+P.timeout+"ms exceeded":"timeout exceeded";const Q1=P.transitional||p1;P.timeoutErrorMessage&&(P1=P.timeoutErrorMessage),I(new R(P1,Q1.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,P,b1)),b1=null},Y1.hasStandardBrowserEnv&&(V1&&A.isFunction(V1)&&(V1=V1(P)),V1||V1!==!1&&B3(D1))){const P1=P.xsrfHeaderName&&P.xsrfCookieName&&g2.read(P.xsrfCookieName);P1&&Q.set(P.xsrfHeaderName,P1)}Z===void 0&&Q.setContentType(null),"setRequestHeader"in b1&&A.forEach(Q.toJSON(),function(P1,Q1){b1.setRequestHeader(Q1,P1)}),A.isUndefined(P.withCredentials)||(b1.withCredentials=!!P.withCredentials),M1&&M1!=="json"&&(b1.responseType=P.responseType),typeof P.onDownloadProgress=="function"&&b1.addEventListener("progress",f4(P.onDownloadProgress,!0)),typeof P.onUploadProgress=="function"&&b1.upload&&b1.upload.addEventListener("progress",f4(P.onUploadProgress)),(P.cancelToken||P.signal)&&(c1=P1=>{b1&&(I(!P1||P1.type?new U1(null,P,b1):P1),b1.abort(),b1=null)},P.cancelToken&&P.cancelToken.subscribe(c1),P.signal&&(P.signal.aborted?c1():P.signal.addEventListener("abort",c1)));const G1=function(P1){const Q1=/^([-+\w]{1,25})(:?\/\/|:)/.exec(P1);return Q1&&Q1[1]||""}(D1);G1&&Y1.protocols.indexOf(G1)===-1?I(new R("Unsupported protocol "+G1+":",R.ERR_BAD_REQUEST,P)):b1.send(Z||null)})}};A.forEach(s2,(P,E)=>{if(P){try{Object.defineProperty(P,"name",{value:E})}catch{}Object.defineProperty(P,"adapterName",{value:E})}});const _2=P=>`- ${P}`,K4=P=>A.isFunction(P)||P===null||P===!1;var Q4=P=>{P=A.isArray(P)?P:[P];const{length:E}=P;let I,Z;const Q={};for(let c1=0;c1<E;c1++){let t1;if(I=P[c1],Z=I,!K4(I)&&(Z=s2[(t1=String(I)).toLowerCase()],Z===void 0))throw new R(`Unknown adapter '${t1}'`);if(Z)break;Q[t1||"#"+c1]=Z}if(!Z){const c1=Object.entries(Q).map(([t1,M1])=>`adapter ${t1} `+(M1===!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 "+(E?c1.length>1?`since :
|