fluency-v8-components 1.5.4 → 1.5.6

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.
@@ -1,4 +1,4 @@
1
- import { I as t, N as r, bw as o, aC as n, aH as i, bi as l, b4 as C, bj as g, b5 as b, aV as u, aU as P, X as d, W as p, aK as h, aL as c, $ as m, Y as S, ad as T, ae as I, af as f, ac as y, az as D, bk as B, b6 as k, C as A, u as G, aW as F, aB as H, s as L, t as w, bl as M, b7 as E, aI as v, au as x, av as N, aq as R, aZ as V, D as z, E as W, aA as j, aS as q, V as K, Z as O, b1 as Q, b2 as U, b3 as J, aw as X, aY as Y, ay as Z, ai as $, l as _, m as aa, n as sa, aD as ea, aM as ta, o as ra, G as oa, a as na, d as ia, b as la, e as Ca, f as ga, i as ba, j as ua, k as Pa, h as da, a_ as pa, p as ha, aE as ca, bn as ma, b9 as Sa, a7 as Ta, bm as Ia, b8 as fa, K as ya, L as Da, bo as Ba, ba as ka, H as Aa, aa as Ga, r as Fa, aX as Ha, aJ as La, as as wa, at as Ma, a$ as Ea, b0 as va, bp as xa, bb as Na, w as Ra, v as Va, x as za, y as Wa, a3 as ja, a4 as qa, bx as Ka, aP as Oa, bq as Qa, bc as Ua, ar as Ja, F as Xa, aF as Ya, a1 as Za, a2 as $a, aQ as _a, z as as, ab as ss, R as es, B as ts, aG as rs, ax as os, U as ns, a0 as is, ah as ls, ap as Cs, aj as gs, ag as bs, br as us, bd as Ps, bs as ds, be as ps, aN as hs, aO as cs, O as ms, a9 as Ss, M as Ts, ak as Is, bt as fs, al as ys, am as Ds, bf as Bs, an as ks, a5 as As, S as Gs, Q as Fs, J as Hs, bu as Ls, bg as ws, a8 as Ms, T as Es, aR as vs, a6 as xs, bv as Ns, bh as Rs, P as Vs, q as zs, ao as Ws, A as js, aT as qs } from "./index-rDGKIIQS.mjs";
1
+ import { I as t, N as r, bw as o, aC as n, aH as i, bi as l, b4 as C, bj as g, b5 as b, aV as u, aU as P, X as d, W as p, aK as h, aL as c, $ as m, Y as S, ad as T, ae as I, af as f, ac as y, az as D, bk as B, b6 as k, C as A, u as G, aW as F, aB as H, s as L, t as w, bl as M, b7 as E, aI as v, au as x, av as N, aq as R, aZ as V, D as z, E as W, aA as j, aS as q, V as K, Z as O, b1 as Q, b2 as U, b3 as J, aw as X, aY as Y, ay as Z, ai as $, l as _, m as aa, n as sa, aD as ea, aM as ta, o as ra, G as oa, a as na, d as ia, b as la, e as Ca, f as ga, i as ba, j as ua, k as Pa, h as da, a_ as pa, p as ha, aE as ca, bn as ma, b9 as Sa, a7 as Ta, bm as Ia, b8 as fa, K as ya, L as Da, bo as Ba, ba as ka, H as Aa, aa as Ga, r as Fa, aX as Ha, aJ as La, as as wa, at as Ma, a$ as Ea, b0 as va, bp as xa, bb as Na, w as Ra, v as Va, x as za, y as Wa, a3 as ja, a4 as qa, bx as Ka, aP as Oa, bq as Qa, bc as Ua, ar as Ja, F as Xa, aF as Ya, a1 as Za, a2 as $a, aQ as _a, z as as, ab as ss, R as es, B as ts, aG as rs, ax as os, U as ns, a0 as is, ah as ls, ap as Cs, aj as gs, ag as bs, br as us, bd as Ps, bs as ds, be as ps, aN as hs, aO as cs, O as ms, a9 as Ss, M as Ts, ak as Is, bt as fs, al as ys, am as Ds, bf as Bs, an as ks, a5 as As, S as Gs, Q as Fs, J as Hs, bu as Ls, bg as ws, a8 as Ms, T as Es, aR as vs, a6 as xs, bv as Ns, bh as Rs, P as Vs, q as zs, ao as Ws, A as js, aT as qs } from "./index-DE5ti6O6.mjs";
2
2
  import "vue";
3
3
  export {
4
4
  t as ActionButtons,
@@ -54,7 +54,7 @@ ${Gv(this.code(t,n))}
54
54
  `).reduce((o,s,u)=>(u!==0&&o.insert(`
55
55
  `,{[Ua.blotName]:n}),o.insert(s)),a)],new WeakMap)}}F8.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Av=class Av extends ga{static create(t){const n=super.create();return t?n.setAttribute("data-row",t):n.setAttribute("data-row",C5()),n}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,n){t===Av.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(t,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};mt(Av,"blotName","table"),mt(Av,"tagName","TD");let rl=Av;class Wu extends Hd{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),i=this.next.children.tail.formats();return t.table===n.table&&t.table===r.table&&t.table===i.table}return!1}optimize(t){super.optimize(t),this.children.forEach(n=>{if(n.next==null)return;const r=n.formats(),i=n.next.formats();if(r.table!==i.table){const a=this.splitAfter(n);a&&a.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}mt(Wu,"blotName","table-row"),mt(Wu,"tagName","TR");class iu extends Hd{}mt(iu,"blotName","table-body"),mt(iu,"tagName","TBODY");class bh extends Hd{balanceCells(){const t=this.descendants(Wu),n=t.reduce((r,i)=>Math.max(i.children.length,r),0);t.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let i;r.children.head!=null&&(i=rl.formats(r.children.head.domNode));const a=this.scroll.create(rl.blotName,i);r.appendChild(a),a.optimize()})})}cells(t){return this.rows().map(n=>n.children.at(t))}deleteColumn(t){const[n]=this.descendant(iu);n==null||n.children.head==null||n.children.forEach(r=>{const i=r.children.at(t);i!=null&&i.remove()})}insertColumn(t){const[n]=this.descendant(iu);n==null||n.children.head==null||n.children.forEach(r=>{const i=r.children.at(t),a=rl.formats(r.children.head.domNode),o=this.scroll.create(rl.blotName,a);r.insertBefore(o,i)})}insertRow(t){const[n]=this.descendant(iu);if(n==null||n.children.head==null)return;const r=C5(),i=this.scroll.create(Wu.blotName);n.children.head.children.forEach(()=>{const o=this.scroll.create(rl.blotName,r);i.appendChild(o)});const a=n.children.at(t);n.insertBefore(i,a)}rows(){const t=this.children.head;return t==null?[]:t.children.map(n=>n)}}mt(bh,"blotName","table-container"),mt(bh,"tagName","TABLE"),bh.allowedChildren=[iu],iu.requiredContainer=bh,iu.allowedChildren=[Wu],Wu.requiredContainer=iu,Wu.allowedChildren=[rl],rl.requiredContainer=Wu;function C5(){return`row-${Math.random().toString(36).slice(2,6)}`}class Nce extends tl{static register(){at.register(rl),at.register(Wu),at.register(iu),at.register(bh)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(bh).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,n]=this.getTable();n!=null&&(t.deleteColumn(n.cellOffset()),this.quill.update(at.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(at.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const n=t.offset();t.remove(),this.quill.update(at.sources.USER),this.quill.setSelection(n,at.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[n,r]=this.quill.getLine(t.index);if(n==null||n.statics.blotName!==rl.blotName)return[null,null,null,-1];const i=n.parent;return[i.parent.parent,i,n,r]}insertColumn(t){const n=this.quill.getSelection();if(!n)return;const[r,i,a]=this.getTable(n);if(a==null)return;const o=a.cellOffset();r.insertColumn(o+t),this.quill.update(at.sources.USER);let s=i.rowOffset();t===0&&(s+=1),this.quill.setSelection(n.index+s,n.length,at.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const n=this.quill.getSelection();if(!n)return;const[r,i,a]=this.getTable(n);if(a==null)return;const o=i.rowOffset();r.insertRow(o+t),this.quill.update(at.sources.USER),t>0?this.quill.setSelection(n,at.sources.SILENT):this.quill.setSelection(n.index+i.children.length,n.length,at.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,n){const r=this.quill.getSelection();if(r==null)return;const i=new Array(t).fill(0).reduce(a=>{const o=new Array(n).fill(`
56
56
  `).join("");return a.insert(o,{table:C5()})},new Wt().retain(r.index));this.quill.updateContents(i,at.sources.USER),this.quill.setSelection(r.index,at.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(at.events.SCROLL_OPTIMIZE,t=>{t.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(at.events.TEXT_CHANGE,(r,i,a)=>{a===at.sources.USER&&this.balanceTables()}),!0):!1)})}}const O8=qu("quill:toolbar");class S5 extends tl{constructor(t,n){var r,i;if(super(t,n),Array.isArray(this.options.container)){const a=document.createElement("div");a.setAttribute("role","toolbar"),Fce(a,this.options.container),(i=(r=t.container)==null?void 0:r.parentNode)==null||i.insertBefore(a,t.container),this.container=a}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){O8.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(a=>{var s;const o=(s=this.options.handlers)==null?void 0:s[a];o&&this.addHandler(a,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(a=>{this.attach(a)}),this.quill.on(at.events.EDITOR_CHANGE,()=>{const[a]=this.quill.selection.getRange();this.update(a)})}addHandler(t,n){this.handlers[t]=n}attach(t){let n=Array.from(t.classList).find(i=>i.indexOf("ql-")===0);if(!n)return;if(n=n.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[n]==null&&this.quill.scroll.query(n)==null){O8.warn("ignoring attaching to nonexistent format",n,t);return}const r=t.tagName==="SELECT"?"change":"click";t.addEventListener(r,i=>{let a;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const s=t.options[t.selectedIndex];s.hasAttribute("selected")?a=!1:a=s.value||!1}else t.classList.contains("ql-active")?a=!1:a=t.value||!t.hasAttribute("value"),i.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,a);else if(this.quill.scroll.query(n).prototype instanceof Ko){if(a=prompt(`Enter ${n}`),!a)return;this.quill.updateContents(new Wt().retain(o.index).delete(o.length).insert({[n]:a}),at.sources.USER)}else this.quill.format(n,a,at.sources.USER);this.update(o)}),this.controls.push([n,t])}update(t){const n=t==null?{}:this.quill.getFormat(t);this.controls.forEach(r=>{const[i,a]=r;if(a.tagName==="SELECT"){let o=null;if(t==null)o=null;else if(n[i]==null)o=a.querySelector("option[selected]");else if(!Array.isArray(n[i])){let s=n[i];typeof s=="string"&&(s=s.replace(/"/g,'\\"')),o=a.querySelector(`option[value="${s}"]`)}o==null?(a.value="",a.selectedIndex=-1):o.selected=!0}else if(t==null)a.classList.remove("ql-active"),a.setAttribute("aria-pressed","false");else if(a.hasAttribute("value")){const o=n[i],s=o===a.getAttribute("value")||o!=null&&o.toString()===a.getAttribute("value")||o==null&&!a.getAttribute("value");a.classList.toggle("ql-active",s),a.setAttribute("aria-pressed",s.toString())}else{const o=n[i]!=null;a.classList.toggle("ql-active",o),a.setAttribute("aria-pressed",o.toString())}})}}S5.DEFAULTS={};function I8(e,t,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${t}`),r.setAttribute("aria-pressed","false"),n!=null?(r.value=n,r.setAttribute("aria-label",`${t}: ${n}`)):r.setAttribute("aria-label",t),e.appendChild(r)}function Fce(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(n=>{const r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(i=>{if(typeof i=="string")I8(r,i);else{const a=Object.keys(i)[0],o=i[a];Array.isArray(o)?Oce(r,a,o):I8(r,a,o)}}),e.appendChild(r)})}function Oce(e,t,n){const r=document.createElement("select");r.classList.add(`ql-${t}`),n.forEach(i=>{const a=document.createElement("option");i!==!1?a.setAttribute("value",String(i)):a.setAttribute("selected","selected"),r.appendChild(a)}),e.appendChild(r)}S5.DEFAULTS={container:null,handlers:{clean(){const e=this.quill.getSelection();if(e!=null)if(e.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(n=>{this.quill.scroll.query(n,Zt.INLINE)!=null&&this.quill.format(n,!1,at.sources.USER)})}else this.quill.removeFormat(e.index,e.length,at.sources.USER)},direction(e){const{align:t}=this.quill.getFormat();e==="rtl"&&t==null?this.quill.format("align","right",at.sources.USER):!e&&t==="right"&&this.quill.format("align",!1,at.sources.USER),this.quill.format("direction",e,at.sources.USER)},indent(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0,10);if(e==="+1"||e==="-1"){let i=e==="+1"?1:-1;n.direction==="rtl"&&(i*=-1),this.quill.format("indent",r+i,at.sources.USER)}},link(e){e===!0&&(e=prompt("Enter link URL:")),this.quill.format("link",e,at.sources.USER)},list(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t);e==="check"?n.list==="checked"||n.list==="unchecked"?this.quill.format("list",!1,at.sources.USER):this.quill.format("list","unchecked",at.sources.USER):this.quill.format("list",e,at.sources.USER)}}};const Ice='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Dce='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Uce='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Pce='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',Hce='<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"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><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"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Yce='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',Rce='<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 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"/></svg>',Qce='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',D8='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Dm={align:{"":Ice,center:Dce,right:Uce,justify:Pce},background:Hce,blockquote:Yce,bold:Rce,clean:Qce,code:D8,"code-block":D8,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<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"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><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"/></svg>',header:{1:'<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>',2:'<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>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,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>',4:'<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,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,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>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><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 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"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><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 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 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"/></svg>'},script:{sub:'<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>',super:'<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>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><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 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"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<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"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'},jce='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let U8=0;function P8(e,t){e.setAttribute(t,`${e.getAttribute(t)!=="true"}`)}class r1{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),n.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),P8(this.label,"aria-expanded"),P8(this.options,"aria-hidden")}buildItem(t){const n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");const r=t.getAttribute("value");return r&&n.setAttribute("data-value",r),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",()=>{this.selectItem(n,!0)}),n.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(n,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),n}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=jce,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${U8}`,U8+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(n=>{const r=this.buildItem(n);t.appendChild(r),n.selected===!0&&this.selectItem(r)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");t!==r&&(r!=null&&r.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),n&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const n=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}class H8 extends r1{constructor(t,n){super(t),this.label.innerHTML=n,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(t){const n=super.buildItem(t);return n.style.backgroundColor=t.getAttribute("value")||"",n}selectItem(t,n){super.selectItem(t,n);const r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=i:r.style.fill=i)}}class Y8 extends r1{constructor(t,n){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=n[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,n){super.selectItem(t,n);const r=t||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const Vce=e=>{const{overflowY:t}=getComputedStyle(e,null);return t!=="visible"&&t!=="clip"};class R8{constructor(t,n){this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Vce(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const n=t.left+t.width/2-this.root.offsetWidth/2,r=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${n}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),a=this.root.getBoundingClientRect();let o=0;if(a.right>i.right&&(o=i.right-a.right,this.root.style.left=`${n+o}px`),a.left<i.left&&(o=i.left-a.left,this.root.style.left=`${n+o}px`),a.bottom>i.bottom){const s=a.bottom-a.top,u=t.bottom-t.top+s;this.root.style.top=`${r-u}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const zce=[!1,"center","right","justify"],qce=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Kce=[!1,"serif","monospace"],Gce=["1","2","3",!1],Wce=["small",!1,"large","huge"];class Um extends vh{constructor(t,n){super(t,n);const r=i=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(a=>{a.container.contains(i.target)||a.close()})};t.emitter.listenDOM("click",document.body,r)}addModule(t){const n=super.addModule(t);return t==="toolbar"&&this.extendToolbar(n),n}buildButtons(t,n){Array.from(t).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(a=>{if(a.startsWith("ql-")&&(a=a.slice(3),n[a]!=null))if(a==="direction")r.innerHTML=n[a][""]+n[a].rtl;else if(typeof n[a]=="string")r.innerHTML=n[a];else{const o=r.value||"";o!=null&&n[a][o]&&(r.innerHTML=n[a][o])}})})}buildPickers(t,n){this.pickers=Array.from(t).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&Pm(i,zce),typeof n.align=="object"))return new Y8(i,n.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const a=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&Pm(i,qce,a==="background"?"#ffffff":"#000000"),new H8(i,n[a])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?Pm(i,Kce):i.classList.contains("ql-header")?Pm(i,Gce):i.classList.contains("ql-size")&&Pm(i,Wce)),new r1(i)});const r=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Vt.events.EDITOR_CHANGE,r)}}Um.DEFAULTS=uA({},vh.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");e==null&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""}),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Q8 extends R8{constructor(t,n){super(t,n),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;n!=null?this.textbox.value=n:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:n}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,Vt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,Vt.sources.USER)),this.quill.root.scrollTop=n;break}case"video":t=Xce(t);case"formula":{if(!t)break;const n=this.quill.getSelection(!0);if(n!=null){const r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,Vt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Vt.sources.USER),this.quill.setSelection(r+2,Vt.sources.USER)}break}}this.textbox.value="",this.hide()}}function Xce(e){let t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:e}function Pm(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(r=>{const i=document.createElement("option");r===n?i.setAttribute("selected","selected"):i.setAttribute("value",String(r)),e.appendChild(i)})}const Jce=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class j8 extends Q8{constructor(t,n){super(t,n),this.quill.on(Vt.events.EDITOR_CHANGE,(r,i,a,o)=>{if(r===Vt.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&o===Vt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const s=this.quill.getLines(i.index,i.length);if(s.length===1){const u=this.quill.getBounds(i);u!=null&&this.position(u)}else{const u=s[s.length-1],c=this.quill.getIndex(u),A=Math.min(u.length()-1,i.index+i.length-c),f=this.quill.getBounds(new Pd(c,A));f!=null&&this.position(f)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Vt.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const n=this.quill.getBounds(t);n!=null&&this.position(n)}},1)})}cancel(){this.show()}position(t){const n=super.position(t),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",n!==0&&(r.style.marginLeft=`${-1*n-r.offsetWidth/2}px`),n}}mt(j8,"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(""));class V8 extends Um{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Jce),super(t,n),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new j8(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),Dm),this.buildPickers(t.container.querySelectorAll("select"),Dm))}}V8.DEFAULTS=uA({},Um.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,at.sources.USER)}}}}});const Zce=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class z8 extends Q8{constructor(){super(...arguments);mt(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",n=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),n.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",n=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,Vt.sources.USER),delete this.linkRange}n.preventDefault(),this.hide()}),this.quill.on(Vt.events.SELECTION_CHANGE,(n,r,i)=>{if(n!=null){if(n.length===0&&i===Vt.sources.USER){const[a,o]=this.quill.scroll.descendant(dA,n.index);if(a!=null){this.linkRange=new Pd(n.index-o,a.length());const s=dA.formats(a.domNode);this.preview.textContent=s,this.preview.setAttribute("href",s),this.show();const u=this.quill.getBounds(this.linkRange);u!=null&&this.position(u);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}mt(z8,"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(""));class q8 extends Um{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Zce),super(t,n),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),Dm),this.buildPickers(t.container.querySelectorAll("select"),Dm),this.tooltip=new z8(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(n,r)=>{t.handlers.link.call(t,!r.format.link)}))}}q8.DEFAULTS=uA({},Um.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){const t=this.quill.getSelection();if(t==null||t.length===0)return;let n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&n.indexOf("mailto:")!==0&&(n=`mailto:${n}`);const{tooltip:r}=this.quill.theme;r.edit("link",n)}else this.quill.format("link",!1,at.sources.USER)}}}}}),at.register({"attributors/attribute/direction":d8,"attributors/class/align":u8,"attributors/class/background":Hue,"attributors/class/color":Pue,"attributors/class/direction":f8,"attributors/class/font":m8,"attributors/class/size":v8,"attributors/style/align":c8,"attributors/style/background":A5,"attributors/style/color":c5,"attributors/style/direction":h8,"attributors/style/font":g8,"attributors/style/size":y8},!0),at.register({"formats/align":u8,"formats/direction":f8,"formats/indent":Ece,"formats/background":A5,"formats/color":c5,"formats/font":m8,"formats/size":v8,"formats/blockquote":y5,"formats/code-block":Ua,"formats/header":_5,"formats/list":Nm,"formats/bold":Fm,"formats/code":d5,"formats/italic":b5,"formats/link":dA,"formats/script":w5,"formats/strike":B5,"formats/underline":x5,"formats/formula":t1,"formats/image":Lce,"formats/video":n1,"modules/syntax":F8,"modules/table":Nce,"modules/toolbar":S5,"themes/bubble":V8,"themes/snow":q8,"ui/icons":Dm,"ui/picker":r1,"ui/icon-picker":Y8,"ui/color-picker":H8,"ui/tooltip":R8},!0);const $ce={props:{modelValue:{type:String,default:""}},data(){return{editor:null}},mounted(){if(this.editor=new at("#editor",{modules:{toolbar:"#toolbar"},theme:"snow",formats:["font","size","bold","underline","header","italic","strike","link","color","background","list","align"]}),this.modelValue){let e="";this.modelValue.startsWith("<p>")?e=this.modelValue:e=this.editor.clipboard.convertHTML(this.modelValue).ops[0].insert.split(`
57
- `).map(i=>`<p>${i}</p>`).join("");const t=document.querySelector("#editor .ql-editor");t.innerHTML=e}this.editor.on("text-change",()=>{this.$emit("update:modelValue",this.editor.root.innerHTML)})}};function eAe(e,t,n,r,i,a){return t[0]||(t[0]=l.createStaticVNode('<div id="toolbar" class="std-light"><span class="ql-formats"><select class="ql-font"></select><select class="ql-size"></select></span><span class="ql-formats"><button class="ql-bold"></button><button class="ql-italic"></button><button class="ql-underline"></button><button class="ql-strike"></button></span><span class="ql-formats"><select class="ql-color"></select><select class="ql-background"></select></span><span class="ql-formats"><button class="ql-list" value="ordered"></button><button class="ql-list" value="bullet"></button><select class="ql-align"></select></span><span class="ql-formats"><button class="ql-link"></button></span></div><div id="editor" class="min-h-40"></div>',2))}const K8=cr($ce,[["render",eAe]]),tAe="data:image/svg+xml,%3csvg%20viewBox='0%200%20512%20512'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3eai%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='icon'%20fill='%230097f5'%20transform='translate(64.000000,%2064.000000)'%3e%3cpath%20d='M320,64%20L320,320%20L64,320%20L64,64%20L320,64%20Z%20M171.749388,128%20L146.817842,128%20L99.4840387,256%20L121.976629,256%20L130.913039,230.977%20L187.575039,230.977%20L196.319607,256%20L220.167172,256%20L171.749388,128%20Z%20M260.093778,128%20L237.691519,128%20L237.691519,256%20L260.093778,256%20L260.093778,128%20Z%20M159.094727,149.47526%20L181.409039,213.333%20L137.135039,213.333%20L159.094727,149.47526%20Z%20M341.333333,256%20L384,256%20L384,298.666667%20L341.333333,298.666667%20L341.333333,256%20Z%20M85.3333333,341.333333%20L128,341.333333%20L128,384%20L85.3333333,384%20L85.3333333,341.333333%20Z%20M170.666667,341.333333%20L213.333333,341.333333%20L213.333333,384%20L170.666667,384%20L170.666667,341.333333%20Z%20M85.3333333,0%20L128,0%20L128,42.6666667%20L85.3333333,42.6666667%20L85.3333333,0%20Z%20M256,341.333333%20L298.666667,341.333333%20L298.666667,384%20L256,384%20L256,341.333333%20Z%20M170.666667,0%20L213.333333,0%20L213.333333,42.6666667%20L170.666667,42.6666667%20L170.666667,0%20Z%20M256,0%20L298.666667,0%20L298.666667,42.6666667%20L256,42.6666667%20L256,0%20Z%20M341.333333,170.666667%20L384,170.666667%20L384,213.333333%20L341.333333,213.333333%20L341.333333,170.666667%20Z%20M0,256%20L42.6666667,256%20L42.6666667,298.666667%20L0,298.666667%20L0,256%20Z%20M341.333333,85.3333333%20L384,85.3333333%20L384,128%20L341.333333,128%20L341.333333,85.3333333%20Z%20M0,170.666667%20L42.6666667,170.666667%20L42.6666667,213.333333%20L0,213.333333%20L0,170.666667%20Z%20M0,85.3333333%20L42.6666667,85.3333333%20L42.6666667,128%20L0,128%20L0,85.3333333%20Z'%20id='Combined-Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nAe="data:image/svg+xml,%3csvg%20viewBox='0%200%2017%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%23fff'%20fill-rule='evenodd'%3e%3cpath%20d='m8.20003216%200c-4.5281696%200-8.20003216%203.67233045-8.20003216%208.2025137%200%203.6241466%202.34955472%206.6987785%205.60770169%207.7833978.40979259.0759104.5602814-.1779394.5602814-.3946059%200-.195566-.00765306-.84177-.01112588-1.5271516-2.28132027.4961843-2.76269151-.9677944-2.76269151-.9677944-.37300645-.948109-.91045728-1.2001576-.91045728-1.2001576-.74395492-.5091149.05607959-.4986933.05607959-.4986933.82344388.0578979%201.25703171.8453083%201.25703171.8453083.73134987%201.2540026%201.9182821.8914335%202.38621225.6819077.07357231-.5302154.28612167-.8920125.52060124-1.0968421-1.82130043-.2074672-3.73598109-.9107972-3.73598109-4.05374848%200-.89548638.32033536-1.62725057.84492391-2.20166134-.08514837-.20663091-.36580356-1.04087425.07942464-2.17071817%200%200%20.68858276-.22046205%202.25559569.8408051.6540475-.18179917%201.35555686-.27289175%202.0524358-.27597964.69687893.00308789%201.39890278.09418047%202.05423654.27597964%201.5651479-1.06126715%202.252766-.8408051%202.252766-.8408051.4463215%201.12984392.1655376%201.96408726.0803893%202.17071817.5257461.57441077.8438949%201.30611063.8438949%202.20166134%200%203.15041368-1.9182821%203.84415838-3.74421295%204.04718668.29409628.2545575.55616545.7537654.55616545%201.5189817%200%201.0974854-.0095181%201.9808133-.0095181%202.2510031%200%20.2182748.1475948.4740546.5633041.3935122%203.2563462-1.0858415%205.6029426-4.1593798%205.6029426-7.7823041%200-4.53018325-3.6713481-8.2025137-8.19996784-8.2025137'/%3e%3cpath%20d='m3.07518929%2011.6824029c-.01787762.0408541-.08159856.0531168-.13950928.0251063-.05905999-.0268489-.09226129-.0826118-.07310669-.1236596.01755837-.0420803.08127932-.0538267.14021161-.025558.05918769.0267843.09289978.0830636.07240436.1241113m.40045868.3611685c-.03881997.0364008-.11473601.0194912-.16626186-.0380143-.05324977-.0573765-.06321015-.1340506-.02381554-.1710323.0400331-.0363363.11365058-.0193621.16702804.0380789.05324977.0580219.06359325.1342442.02298552.1710322m.27480455.4620452c-.04992964.0350455-.1315282.0021944-.18190478-.0709945-.04986579-.0731243-.04986579-.1608994.00108543-.1960739.05056812-.0351746.13088971-.0035497.18196863.0690583.04980194.0744151.04980194.1621902-.00121313.1980747m.46462657.5351695c-.0446302.0496962-.13963698.0364009-.209232-.0314957-.07112739-.0663476-.09098432-.1605121-.04622642-.2102728.04514099-.0498253.14072241-.03582.21082822.0314957.07068044.0662185.09226128.161093.04469405.2102728m.60036877.1807134c-.01960153.0644113-.11116048.0937127-.20335792.0663476-.09206974-.0282042-.15234286-.1037166-.1337629-.1688379.01915459-.0648632.11109663-.0953908.20399641-.0660894.09194204.0280751.15234286.1030065.13318826.1685797m.68337202.0766095c.00229855.0678966-.07591604.1241759-.17271058.1254021-.09736918.0021299-.17609455-.0527941-.17711613-.1195289%200-.068542.07642682-.124305.17373215-.1259185.09679454-.0019362.17609456.0526005.17609456.1200453m.67130462-.0260098c.01162045.0662185-.05567602.1342442-.15176823.1523155-.09449599.0174259-.18196862-.0234282-.19403602-.0890659-.01174815-.0678965.05682529-.1358576.15112974-.1534772.09628375-.0169096.18241557.0229119.19467451.0902276'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e",rAe="data:image/svg+xml,%3csvg%20width='98'%20height='96'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M48.854%200C21.839%200%200%2022%200%2049.217c0%2021.756%2013.993%2040.172%2033.405%2046.69%202.427.49%203.316-1.059%203.316-2.362%200-1.141-.08-5.052-.08-9.127-13.59%202.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015%204.934.326%207.523%205.052%207.523%205.052%204.367%207.496%2011.404%205.378%2014.235%204.074.404-3.178%201.699-5.378%203.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283%200-5.378%201.94-9.778%205.014-13.2-.485-1.222-2.184-6.275.486-13.038%200%200%204.125-1.304%2013.426%205.052a46.97%2046.97%200%200%201%2012.214-1.63c4.125%200%208.33.571%2012.213%201.63%209.302-6.356%2013.427-5.052%2013.427-5.052%202.67%206.763.97%2011.816.485%2013.038%203.155%203.422%205.015%207.822%205.015%2013.2%200%2018.905-11.404%2023.06-22.324%2024.283%201.78%201.548%203.316%204.481%203.316%209.126%200%206.6-.08%2011.897-.08%2013.526%200%201.304.89%202.853%203.316%202.364%2019.412-6.52%2033.405-24.935%2033.405-46.691C97.707%2022%2075.788%200%2048.854%200z'%20fill='%2324292f'/%3e%3c/svg%3e",iAe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M480-120q-33%200-56.5-23.5T400-200q0-33%2023.5-56.5T480-280q33%200%2056.5%2023.5T560-200q0%2033-23.5%2056.5T480-120Zm-80-240v-480h160v480H400Z'/%3e%3c/svg%3e",aAe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M380-120v-120L240-380v-220q0-24%2011-45t32-32l77%2077h-40v186l140%20140v74h40v-74l37-37L56-792l56-56%20736%20736-56%2056-198-198-14%2014v120H380Zm306-268-46-46v-166H474L320-754v-86h80v160h160v-160h80v200l-40-40h40q33%200%2056.5%2023.5T720-600v178l-34%2034ZM558-516Zm-130%2097Z'/%3e%3c/svg%3e",oAe="data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%205.75C3%204.23122%204.23122%203%205.75%203H15.7145C16.5764%203%2017.4031%203.34241%2018.0126%203.9519L20.0481%205.98744C20.6576%206.59693%2021%207.42358%2021%208.28553V18.25C21%2019.7688%2019.7688%2021%2018.25%2021H5.75C4.23122%2021%203%2019.7688%203%2018.25V5.75ZM5.75%204.5C5.05964%204.5%204.5%205.05964%204.5%205.75V18.25C4.5%2018.9404%205.05964%2019.5%205.75%2019.5H6V14.25C6%2013.0074%207.00736%2012%208.25%2012H15.75C16.9926%2012%2018%2013.0074%2018%2014.25V19.5H18.25C18.9404%2019.5%2019.5%2018.9404%2019.5%2018.25V8.28553C19.5%207.8214%2019.3156%207.37629%2018.9874%207.0481L16.9519%205.01256C16.6918%204.75246%2016.3582%204.58269%2016%204.52344V7.25C16%208.49264%2014.9926%209.5%2013.75%209.5H9.25C8.00736%209.5%207%208.49264%207%207.25V4.5H5.75ZM16.5%2019.5V14.25C16.5%2013.8358%2016.1642%2013.5%2015.75%2013.5H8.25C7.83579%2013.5%207.5%2013.8358%207.5%2014.25V19.5H16.5ZM8.5%204.5V7.25C8.5%207.66421%208.83579%208%209.25%208H13.75C14.1642%208%2014.5%207.66421%2014.5%207.25V4.5H8.5Z'%20fill='%23FFFFFF'/%3e%3c/svg%3e",sAe=["src"],lAe={__name:"AiIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(tAe),alt:"avatar"},null,8,sAe))}},uAe=["src"],cAe={__name:"GithubIcon",props:{theme:{type:String,default:"light"}},setup(e){const t=e,n=l.computed(()=>t.theme==="dark"?nAe:rAe);return(r,i)=>(l.openBlock(),l.createElementBlock("img",{src:n.value,alt:"avatar"},null,8,uAe))}},AAe=["src"],dAe=l.defineComponent({__name:"HighPriorityIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(iAe),alt:"avatar"},null,8,AAe))}}),fAe={},hAe={height:"20px",viewBox:"0 0 24 24",width:"20px",fill:"#16a34a"};function pAe(e,t){return l.openBlock(),l.createElementBlock("svg",hAe,t[0]||(t[0]=[l.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),l.createElementVNode("path",{d:"M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"},null,-1)]))}const mAe=cr(fAe,[["render",pAe]]),gAe={},vAe={height:"20px",viewBox:"0 0 24 24",width:"20px",fill:"#ef4444"};function yAe(e,t){return l.openBlock(),l.createElementBlock("svg",vAe,t[0]||(t[0]=[l.createElementVNode("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),l.createElementVNode("path",{d:"M18 14.49V9c0-1-1.01-2.01-2-2V3h-2v4h-4V3H8v2.48l9.51 9.5.49-.49zm-1.76 1.77L7.2 7.2l-.01.01L3.98 4 2.71 5.25l3.36 3.36C6.04 8.74 6 8.87 6 9v5.48L9.5 18v3h5v-3l.48-.48L19.45 22l1.26-1.28-4.47-4.46z"},null,-1)]))}const _Ae=cr(gAe,[["render",yAe]]),bAe=["src"],wAe=l.defineComponent({__name:"PowerOffIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(aAe),alt:"avatar"},null,8,bAe))}}),BAe=["src"],G8=l.defineComponent({__name:"SaveIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(oAe),alt:"avatar"},null,8,BAe))}}),xAe={class:"fixed inset-0 overflow-y-auto"},CAe={class:"flex min-h-full items-center justify-center p-4 text-center"},SAe={key:0,class:"mx-2 inline-block spinner"},kAe={class:"absolute right-2 top-0"},MAe={class:"text-xs"},EAe={class:"pt-4"},LAe={class:"mt-4 space-x-3"},ys=l.defineComponent({__name:"Dialog",props:{open:Boolean,title:String,description:{type:String,default:""},size:{type:String,default:"small"},loading:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,i=l.computed(()=>n.open),a=l.computed(()=>n.title);return(o,s)=>(l.openBlock(),l.createBlock(l.unref(iA),{appear:"",show:i.value,as:"template"},{default:l.withCtx(()=>[l.createVNode(l.unref(oh),{as:"div",onClose:s[0]||(s[0]=u=>r("close")),class:"relative z-40"},{default:l.withCtx(()=>[l.createVNode(l.unref(Td),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:l.withCtx(()=>s[1]||(s[1]=[l.createElementVNode("div",{class:"fixed inset-0 bg-gray-500/75 transition-opacity"},null,-1)])),_:1,__:[1]}),l.createElementVNode("div",xAe,[l.createElementVNode("div",CAe,[l.createVNode(l.unref(Td),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(kv),{class:l.normalizeClass(["white-bg dark:dark-bg transform rounded-2xl p-6 text-left align-middle shadow-xl transition-all",{"w-full max-w-md":e.size==="small"},{"min-w-150 px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-lg sm:p-6":e.size==="medium"},{"px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-4xl sm:p-6":e.size==="large"},{"px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-7xl sm:p-6":e.size==="xlarge"}])},{default:l.withCtx(()=>[l.createVNode(l.unref(pw),{as:"h3",class:"relative text-lg font-medium leading-6"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.value)+" ",1),e.loading?(l.openBlock(),l.createElementBlock("div",SAe)):l.createCommentVNode("",!0),l.createElementVNode("div",kAe,[l.renderSlot(o.$slots,"header")])]),_:3}),l.createElementVNode("p",MAe,l.toDisplayString(e.description),1),l.createElementVNode("div",EAe,[l.renderSlot(o.$slots,"content")]),l.createElementVNode("div",LAe,[l.renderSlot(o.$slots,"footer")])]),_:3},8,["class"])]),_:3})])])]),_:3})]),_:3},8,["show"]))}}),TAe={class:"mt-2"},NAe={class:"text-sm overflow-x-auto text-ellipsis"},FAe=l.defineComponent({__name:"ConfirmDialog",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(""),a=l.ref(()=>{}),o=l.ref(()=>{}),s=l.ref("Yes"),u=l.ref("No"),c=l.ref(!1);function A(m,p,g,y,v="Yes",_="No"){i.value=m,r.value=p,a.value=g,o.value=y,n.value=!0,s.value=v,u.value=_}async function f(){c.value=!0,await a.value(),c.value=!1,d()}function h(){o.value&&o.value(),d()}function d(){n.value=!1}return t({openModal:A}),(m,p)=>(l.openBlock(),l.createBlock(ys,{open:n.value,title:i.value,onClose:d},{content:l.withCtx(()=>[l.createElementVNode("div",TAe,[l.createElementVNode("p",NAe,l.toDisplayString(r.value),1)])]),footer:l.withCtx(()=>[l.createVNode(qo,{text:s.value,loading:c.value,onClick:f},null,8,["text","loading"]),l.createVNode(qo,{text:u.value,color:"red",onClick:h},null,8,["text"])]),_:1},8,["open","title"]))}}),OAe={class:"mt-2"},IAe={class:"break-all text-sm std-white-text font-bold"},DAe={class:"text-sm font-light"},UAe=l.defineComponent({__name:"CopyDialog",emits:["notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref(""),o=l.ref(""),s=l.ref("");function u(f,h,d){o.value=f,a.value=h,s.value=d,i.value=!0}function c(){navigator.clipboard.writeText(s.value),r("notify","Token copied to clipboard","",!0)}function A(){i.value=!1}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:o.value,onClose:A},{content:l.withCtx(()=>[l.createElementVNode("div",OAe,[l.createElementVNode("p",IAe,l.toDisplayString(s.value),1),l.createElementVNode("p",DAe,l.toDisplayString(a.value),1)])]),footer:l.withCtx(()=>[l.createVNode(qo,{text:"Copy",color:"green",onClick:c}),l.createVNode(qo,{text:"Close",color:"red",onClick:A})]),_:1},8,["open","title"]))}}),Qd={__name:"SubmitButtons",props:{saveText:{type:String,default:"Save"},disableSave:{type:[Boolean,Number],default:!1},isRun:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["save","close"],setup(e,{emit:t}){const n=e,r=t;function i(){!n.loading&&!n.disableSave&&r("save")}function a(){n.loading||r("close")}return(o,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(qo,{text:e.saveText,color:e.isRun?"green":"blue",disabled:e.disableSave||e.loading,loading:e.loading,onClick:i},null,8,["text","color","disabled","loading"]),l.createVNode(qo,{color:"red",text:"Cancel",loading:e.loading,disabled:e.loading,onClick:a},null,8,["loading","disabled"])],64))}},W8={__name:"ChooseValueDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"},values:{type:Array,default:()=>[]}},emits:["save"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=l.ref(!1),o=l.ref({}),s=l.computed(()=>{const f=r.values.find(h=>h.value===o.value.key);return f?f.values.map(h=>({label:h,value:h})):[]});function u(f){const h=r.values.find(d=>d.value===f);h&&(o.value.val=h.values[0])}function c(){a.value=!1}function A(f){a.value=!0,o.value={}}return t({open:a,openModal:A,close:c}),(f,h)=>(l.openBlock(),l.createBlock(ys,{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(qi,{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:o.value.key,"onUpdate:modelValue":[h[0]||(h[0]=d=>o.value.key=d),h[1]||(h[1]=d=>u(d))],options:e.values},null,8,["modelValue","options"])]),_:1},8,["fieldName"]),s.value.length>1?(l.openBlock(),l.createBlock(qi,{key:0,fieldName:"Select Attribute Value"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:o.value.val,"onUpdate:modelValue":h[2]||(h[2]=d=>o.value.val=d),options:s.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),l.createVNode(qi,{fieldName:"Selected Value"},{default:l.withCtx(()=>[l.createVNode(L6,{value:o.value.val,readonly:""},null,8,["value"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(Qd,{saveText:e.saveButtonText,onSave:h[3]||(h[3]=d=>i("save",o.value)),onClose:c},null,8,["saveText"])]),_:1},8,["open","title"]))}},PAe={__name:"NameDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"}},emits:["save"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({});function o(){i.value=!1}function s(u){i.value=!0,a.value={name:u.name}}return t({open:i,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(qi,{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(oo,{modelValue:a.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>a.value.name=A)},null,8,["modelValue"])]),_:1},8,["fieldName"])]),footer:l.withCtx(()=>[l.createVNode(Qd,{saveText:e.saveButtonText,onSave:c[1]||(c[1]=A=>r("save",a.value)),onClose:o},null,8,["saveText"])]),_:1},8,["open","title"]))}},HAe={__name:"NameDescDialog",props:{title:{type:String,default:"Add"},saveButtonText:{type:String,default:"Save"},loading:{type:Boolean,default:!1}},emits:["save","notifyList"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({}),o=l.ref({});function s(){o.value={},i.value=!1}function u(){if(o.value={},!a.value.name){o.value.name="Name is required",r("notifyList","Error",["Name is required"],!1);return}r("save",a.value)}function c(A){i.value=!0,a.value={name:A.name,description:A.description||""}}return t({open:i,openModal:c,close:s}),(A,f)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(qi,{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(oo,{modelValue:a.value.name,"onUpdate:modelValue":f[0]||(f[0]=h=>a.value.name=h),error:o.value.name},null,8,["modelValue","error"])]),_:1}),l.createVNode(qi,{fieldName:"Description"},{default:l.withCtx(()=>[l.createVNode(oo,{modelValue:a.value.description,"onUpdate:modelValue":f[1]||(f[1]=h=>a.value.description=h)},null,8,["modelValue"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(Qd,{saveText:e.saveButtonText,loading:e.loading,onSave:u,onClose:s},null,8,["saveText","loading"])]),_:1},8,["open","title"]))}};function X8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})])}function YAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5M12 17.25h8.25"})])}function RAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function QAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function i1(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function J8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function a1(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function Z8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function jAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function $8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function eN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function jd(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function k5(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const VAe={class:"flex"},zAe={class:"flex-shrink-0"},qAe={class:"ml-3"},KAe={key:0,class:"text-sm font-medium std-green-text"},GAe={key:1,class:"text-sm font-medium std-red-text"},WAe={key:2,class:"mt-2 text-sm std-green-text"},XAe={key:3,class:"mt-2 text-sm std-red-text"},JAe={class:"ml-auto pl-3"},ZAe={class:"-mx-1.5 -my-1.5"},$Ae={class:"flex"},ede={class:"flex-shrink-0"},tde={class:"ml-3"},nde={key:0,class:"text-sm font-medium std-green-text"},rde={key:1,class:"text-sm font-medium std-red-text"},ide={key:2,class:"mt-2 text-sm std-green-text"},ade={key:3,class:"mt-2 text-sm std-red-text"},ode={class:"ml-auto pl-3"},sde={class:"-mx-1.5 -my-1.5"},lde=l.defineComponent({__name:"Notify",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(f,h,d){clearTimeout(o.value),a.value=f,r.value=h,i.value=d,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},3e3)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(l.unref(iA),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(oh),{key:0,as:"div",class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",VAe,[l.createElementVNode("div",zAe,[i.value?(l.openBlock(),l.createBlock(l.unref(i1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(jd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",qAe,[i.value?(l.openBlock(),l.createElementBlock("h3",KAe,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",GAe,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",WAe,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",XAe,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",JAe,[l.createElementVNode("div",ZAe,[l.createVNode(l.unref(oA),{color:A(),onClick:l.withModifiers(c,["stop"])},{default:l.withCtx(()=>[l.createVNode(l.unref(Nd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-80"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",$Ae,[l.createElementVNode("div",ede,[i.value?(l.openBlock(),l.createBlock(l.unref(i1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(jd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",tde,[i.value?(l.openBlock(),l.createElementBlock("h3",nde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",rde,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",ide,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",ade,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",ode,[l.createElementVNode("div",sde,[l.createVNode(l.unref(oA),{color:A(),onClick:l.withModifiers(c,["stop"])},{default:l.withCtx(()=>[l.createVNode(l.unref(Nd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),ude={class:"flex"},cde={class:"flex-shrink-0"},Ade={class:"ml-3"},dde={key:0,class:"text-sm font-medium std-green-text"},fde={key:1,class:"text-sm font-medium std-red-text"},hde={key:2,class:"mt-2 text-sm std-green-text"},pde={role:"list",class:"list-disc space-y-1 pl-5"},mde={key:3,class:"mt-2 text-sm std-red-text"},gde={role:"list",class:"list-disc space-y-1 pl-5"},vde={class:"ml-auto pl-3"},yde={class:"-mx-1.5 -my-1.5"},_de={class:"flex"},bde={class:"flex-shrink-0"},wde={class:"ml-3"},Bde={key:0,class:"text-sm font-medium std-green-text"},xde={key:1,class:"text-sm font-medium std-red-text"},Cde={key:2,class:"mt-2 text-sm std-green-text"},Sde={role:"list",class:"list-disc space-y-1 pl-5"},kde={key:3,class:"mt-2 text-sm std-red-text"},Mde={role:"list",class:"list-disc space-y-1 pl-5"},Ede={class:"ml-auto pl-3"},Lde={class:"-mx-1.5 -my-1.5"},tN=l.defineComponent({__name:"NotifyList",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(f,h,d){clearTimeout(o.value),a.value=f,r.value=h,i.value=d,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},5e3)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(l.unref(iA),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(oh),{key:0,as:"div",class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",ude,[l.createElementVNode("div",cde,[i.value?(l.openBlock(),l.createBlock(l.unref(i1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(jd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",Ade,[i.value?(l.openBlock(),l.createElementBlock("h3",dde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",fde,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",hde,[l.createElementVNode("ul",pde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])])):(l.openBlock(),l.createElementBlock("div",mde,[l.createElementVNode("ul",gde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])]))]),l.createElementVNode("div",vde,[l.createElementVNode("div",yde,[l.createVNode(l.unref(oA),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(Nd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",_de,[l.createElementVNode("div",bde,[i.value?(l.openBlock(),l.createBlock(l.unref(i1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(jd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",wde,[i.value?(l.openBlock(),l.createElementBlock("h3",Bde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",xde,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",Cde,[l.createElementVNode("ul",Sde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])])):(l.openBlock(),l.createElementBlock("div",kde,[l.createElementVNode("ul",Mde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])]))]),l.createElementVNode("div",Ede,[l.createElementVNode("div",Lde,[l.createVNode(l.unref(oA),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(Nd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),Tde={class:"slider-inactive rounded-xl shadow-xs overflow-hidden p-1"},Nde={key:0,class:"relative text-green-900 font-medium text-sm"},nN={__name:"ProgressBar",props:{progress:Number,hideProgress:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("div",Tde,[l.createElementVNode("div",{class:l.normalizeClass(["relative flex items-center justify-center",{"h-2":e.hideProgress},{"h-6":!e.hideProgress}])},[l.createElementVNode("div",{class:"absolute top-0 bottom-0 left-0 rounded-lg std-green-hover",style:l.normalizeStyle({width:`${t.progress}%`})},null,4),e.hideProgress?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Nde,l.toDisplayString(t.progress)+"% ",1))],2)]))}},Fde={__name:"ProgressDialog",emits:["close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Loading"),o=l.ref(0),s=l.ref(()=>{}),u=l.ref(),c=d=>{o.value+=1,o.value<100?u.value=setTimeout(()=>{s.value(d)},d):(A(),r("close"))};function A(){clearTimeout(u.value),i.value=!1}function f(d,m=0,p=100,g=c){i.value=!0,a.value=d,o.value=m,p?(s.value=c,s.value(p)):(s.value=g,s.value())}function h(d){o.value=d}return t({openModal:f,updateProgress:h,close:A}),(d,m)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:a.value,loading:!0},{content:l.withCtx(()=>[l.createVNode(nN,{progress:o.value},null,8,["progress"])]),_:1},8,["open","title"]))}},Ode={class:"w-full px-4"},rN={__name:"Stepper",props:{steps:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",Ode,[l.createElementVNode("div",{class:l.normalizeClass(`w-full grid grid-cols-${e.steps.length} pb-8 md:pb-4 gap-x-2`)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["h-2 text-sm px-1",{"opacity-75":r.status!=="current"},{"font-semibold":r.status==="current"}])},l.toDisplayString(r.name),3))),256))],2),l.createElementVNode("div",{class:l.normalizeClass(`w-full grid grid-cols-${e.steps.length} gap-x-2`)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["h-2 rounded-lg flex-none",{"slider-inactive":r.status==="upcoming"},{"std-blue":r.status!=="upcoming"}])},null,2))),256))],2)]))}},Ide={class:"flow-root"},Dde={class:"float-left"},Ude={class:"float-right space-x-4"},Pde={__name:"Wizard",props:{open:Boolean,title:String,steps:Array,proceed:Boolean,saveButton:{type:String,default:"Save"},preventSave:{type:[Boolean,Number],default:!1},size:{type:String,default:"large"}},emits:["close","next","moved","clickout"],setup(e,{emit:t}){const n=e,r=l.ref(n.steps),i=l.ref(0),a=t;l.watch(()=>n.open,()=>{r.value=n.steps,i.value=0}),l.watch(()=>n.proceed,()=>{n.proceed&&(r.value[i.value].status="completed",i.value+=1,r.value[i.value].status="current",a("moved"))}),l.watch(()=>n.steps,()=>{r.value=n.steps});function o(){i.value===0?(i.value=0,a("close")):(r.value[i.value].status="upcoming",i.value-=1,r.value[i.value].status="current")}function s(){a("next")}return(u,c)=>(l.openBlock(),l.createBlock(ys,{open:e.open,title:e.title,size:e.size,onClose:c[1]||(c[1]=A=>u.$emit("clickout"))},{header:l.withCtx(()=>[l.renderSlot(u.$slots,"header")]),content:l.withCtx(()=>[l.createVNode(rN,{steps:r.value},null,8,["steps"]),l.renderSlot(u.$slots,"content")]),footer:l.withCtx(()=>[l.createElementVNode("div",Ide,[l.createElementVNode("div",Dde,[l.renderSlot(u.$slots,"footer")]),l.createElementVNode("div",Ude,[l.createVNode(qo,{text:i.value===0?"Cancel":"Back",color:"red",onClick:o},null,8,["text"]),i.value!==r.value.length-1?(l.openBlock(),l.createBlock(qo,{key:0,text:"Next",onClick:s})):(l.openBlock(),l.createBlock(qo,{key:1,text:e.preventSave?"Close":e.saveButton,color:"blue",onClick:c[0]||(c[0]=A=>e.preventSave?a("close"):s())},null,8,["text"]))])])]),_:3},8,["open","title","size"]))}},Hde={__name:"ResetPasswordDialog",emits:["save","notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({}),o=l.ref({});function s(){if(o.value={},!a.value.password||a.value.password.length<8){o.value.password="Password needs to be at least 8 characters long",r("notify","Error",[o.value.password],!1);return}if(a.value.password!==a.value.confirm){o.value.confirm="Passwords do not match",r("notify","Error",[o.value.confirm],!1);return}r("save",a.value),u()}function u(){i.value=!1}function c(A){i.value=!0,a.value={username:A}}return t({open:i,openModal:c,close:u}),(A,f)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:"Reset Password"},{content:l.withCtx(()=>[l.createVNode(qi,{fieldName:"Password"},{default:l.withCtx(()=>[l.createVNode(Cw,{modelValue:a.value.password,"onUpdate:modelValue":f[0]||(f[0]=h=>a.value.password=h),error:o.value.password},null,8,["modelValue","error"])]),_:1}),l.createVNode(qi,{fieldName:"Confirm Password"},{default:l.withCtx(()=>[l.createVNode(Cw,{modelValue:a.value.confirm,"onUpdate:modelValue":f[1]||(f[1]=h=>a.value.confirm=h),error:o.value.confirm},null,8,["modelValue","error"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(Qd,{saveText:"Reset",onSave:s,onClose:u})]),_:1},8,["open"]))}},Yde={__name:"DownloadDialog",props:{},emits:["notify","notifyList","close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Title"),o=l.ref(null);function s(A,f){i.value=!0,a.value=A,o.value=f}function u(){window.open(o.value,"_blank"),c()}function c(){i.value=!1,a.value="Title",o.value=null,r("close")}return t({openModal:s,closeModal:c}),(A,f)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:a.value,size:"medium"},{footer:l.withCtx(()=>[l.createVNode(Qd,{saveText:"Download",onSave:u,onClose:c})]),_:1},8,["open","title"]))}};function Hm(){return Hm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hm.apply(this,arguments)}var Rde=13,Qde=9,jde=8,Vde=89,o1=90,zde=77,iN=57,aN=219,oN=222,sN=192,qde=27,lN=100,Kde=3e3,Gde=typeof window<"u"&&navigator&&/Win/i.test(navigator.platform),M5=typeof window<"u"&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Wde=l.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(t){t?this.codeData=t:this.codeData=""}},content:{immediate:!0,handler:function(){var t=this;this.lineNumbers&&this.$nextTick(function(){t.setLineNumbersHeight()})}},lineNumbers:function(){var t=this;this.$nextTick(function(){t.styleLineNumbers(),t.setLineNumbersHeight()})}},computed:{isEmpty:function(){return this.codeData.length===0},content:function(){var t=this.highlight(this.codeData)+"<br />";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),r=window.getComputedStyle(t);this.$nextTick(function(){var i="border-top-left-radius",a="border-bottom-left-radius";if(n){n.style[i]=r[i],n.style[a]=r[a],t.style[i]="0",t.style[a]="0";var o=["background-color","margin-top","padding-top","font-family","font-size","line-height"];o.forEach(function(s){n.style[s]=r[s]}),n.style["margin-bottom"]="-"+r["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,r=t.selectionStart,i=t.selectionEnd;this._recordChange({value:n,selectionStart:r,selectionEnd:i})}},_getLines:function(t,n){return t.substring(0,n).split(`
57
+ `).map(i=>`<p>${i}</p>`).join("");const t=document.querySelector("#editor .ql-editor");t.innerHTML=e}this.editor.on("text-change",()=>{this.$emit("update:modelValue",this.editor.root.innerHTML)})}};function eAe(e,t,n,r,i,a){return t[0]||(t[0]=l.createStaticVNode('<div id="toolbar" class="std-light"><span class="ql-formats"><select class="ql-font"></select><select class="ql-size"></select></span><span class="ql-formats"><button class="ql-bold"></button><button class="ql-italic"></button><button class="ql-underline"></button><button class="ql-strike"></button></span><span class="ql-formats"><select class="ql-color"></select><select class="ql-background"></select></span><span class="ql-formats"><button class="ql-list" value="ordered"></button><button class="ql-list" value="bullet"></button><select class="ql-align"></select></span><span class="ql-formats"><button class="ql-link"></button></span></div><div id="editor" class="min-h-40"></div>',2))}const K8=cr($ce,[["render",eAe]]),tAe="data:image/svg+xml,%3csvg%20viewBox='0%200%20512%20512'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3eai%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='icon'%20fill='%230097f5'%20transform='translate(64.000000,%2064.000000)'%3e%3cpath%20d='M320,64%20L320,320%20L64,320%20L64,64%20L320,64%20Z%20M171.749388,128%20L146.817842,128%20L99.4840387,256%20L121.976629,256%20L130.913039,230.977%20L187.575039,230.977%20L196.319607,256%20L220.167172,256%20L171.749388,128%20Z%20M260.093778,128%20L237.691519,128%20L237.691519,256%20L260.093778,256%20L260.093778,128%20Z%20M159.094727,149.47526%20L181.409039,213.333%20L137.135039,213.333%20L159.094727,149.47526%20Z%20M341.333333,256%20L384,256%20L384,298.666667%20L341.333333,298.666667%20L341.333333,256%20Z%20M85.3333333,341.333333%20L128,341.333333%20L128,384%20L85.3333333,384%20L85.3333333,341.333333%20Z%20M170.666667,341.333333%20L213.333333,341.333333%20L213.333333,384%20L170.666667,384%20L170.666667,341.333333%20Z%20M85.3333333,0%20L128,0%20L128,42.6666667%20L85.3333333,42.6666667%20L85.3333333,0%20Z%20M256,341.333333%20L298.666667,341.333333%20L298.666667,384%20L256,384%20L256,341.333333%20Z%20M170.666667,0%20L213.333333,0%20L213.333333,42.6666667%20L170.666667,42.6666667%20L170.666667,0%20Z%20M256,0%20L298.666667,0%20L298.666667,42.6666667%20L256,42.6666667%20L256,0%20Z%20M341.333333,170.666667%20L384,170.666667%20L384,213.333333%20L341.333333,213.333333%20L341.333333,170.666667%20Z%20M0,256%20L42.6666667,256%20L42.6666667,298.666667%20L0,298.666667%20L0,256%20Z%20M341.333333,85.3333333%20L384,85.3333333%20L384,128%20L341.333333,128%20L341.333333,85.3333333%20Z%20M0,170.666667%20L42.6666667,170.666667%20L42.6666667,213.333333%20L0,213.333333%20L0,170.666667%20Z%20M0,85.3333333%20L42.6666667,85.3333333%20L42.6666667,128%20L0,128%20L0,85.3333333%20Z'%20id='Combined-Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nAe="data:image/svg+xml,%3csvg%20viewBox='0%200%2017%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%23fff'%20fill-rule='evenodd'%3e%3cpath%20d='m8.20003216%200c-4.5281696%200-8.20003216%203.67233045-8.20003216%208.2025137%200%203.6241466%202.34955472%206.6987785%205.60770169%207.7833978.40979259.0759104.5602814-.1779394.5602814-.3946059%200-.195566-.00765306-.84177-.01112588-1.5271516-2.28132027.4961843-2.76269151-.9677944-2.76269151-.9677944-.37300645-.948109-.91045728-1.2001576-.91045728-1.2001576-.74395492-.5091149.05607959-.4986933.05607959-.4986933.82344388.0578979%201.25703171.8453083%201.25703171.8453083.73134987%201.2540026%201.9182821.8914335%202.38621225.6819077.07357231-.5302154.28612167-.8920125.52060124-1.0968421-1.82130043-.2074672-3.73598109-.9107972-3.73598109-4.05374848%200-.89548638.32033536-1.62725057.84492391-2.20166134-.08514837-.20663091-.36580356-1.04087425.07942464-2.17071817%200%200%20.68858276-.22046205%202.25559569.8408051.6540475-.18179917%201.35555686-.27289175%202.0524358-.27597964.69687893.00308789%201.39890278.09418047%202.05423654.27597964%201.5651479-1.06126715%202.252766-.8408051%202.252766-.8408051.4463215%201.12984392.1655376%201.96408726.0803893%202.17071817.5257461.57441077.8438949%201.30611063.8438949%202.20166134%200%203.15041368-1.9182821%203.84415838-3.74421295%204.04718668.29409628.2545575.55616545.7537654.55616545%201.5189817%200%201.0974854-.0095181%201.9808133-.0095181%202.2510031%200%20.2182748.1475948.4740546.5633041.3935122%203.2563462-1.0858415%205.6029426-4.1593798%205.6029426-7.7823041%200-4.53018325-3.6713481-8.2025137-8.19996784-8.2025137'/%3e%3cpath%20d='m3.07518929%2011.6824029c-.01787762.0408541-.08159856.0531168-.13950928.0251063-.05905999-.0268489-.09226129-.0826118-.07310669-.1236596.01755837-.0420803.08127932-.0538267.14021161-.025558.05918769.0267843.09289978.0830636.07240436.1241113m.40045868.3611685c-.03881997.0364008-.11473601.0194912-.16626186-.0380143-.05324977-.0573765-.06321015-.1340506-.02381554-.1710323.0400331-.0363363.11365058-.0193621.16702804.0380789.05324977.0580219.06359325.1342442.02298552.1710322m.27480455.4620452c-.04992964.0350455-.1315282.0021944-.18190478-.0709945-.04986579-.0731243-.04986579-.1608994.00108543-.1960739.05056812-.0351746.13088971-.0035497.18196863.0690583.04980194.0744151.04980194.1621902-.00121313.1980747m.46462657.5351695c-.0446302.0496962-.13963698.0364009-.209232-.0314957-.07112739-.0663476-.09098432-.1605121-.04622642-.2102728.04514099-.0498253.14072241-.03582.21082822.0314957.07068044.0662185.09226128.161093.04469405.2102728m.60036877.1807134c-.01960153.0644113-.11116048.0937127-.20335792.0663476-.09206974-.0282042-.15234286-.1037166-.1337629-.1688379.01915459-.0648632.11109663-.0953908.20399641-.0660894.09194204.0280751.15234286.1030065.13318826.1685797m.68337202.0766095c.00229855.0678966-.07591604.1241759-.17271058.1254021-.09736918.0021299-.17609455-.0527941-.17711613-.1195289%200-.068542.07642682-.124305.17373215-.1259185.09679454-.0019362.17609456.0526005.17609456.1200453m.67130462-.0260098c.01162045.0662185-.05567602.1342442-.15176823.1523155-.09449599.0174259-.18196862-.0234282-.19403602-.0890659-.01174815-.0678965.05682529-.1358576.15112974-.1534772.09628375-.0169096.18241557.0229119.19467451.0902276'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e",rAe="data:image/svg+xml,%3csvg%20width='98'%20height='96'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M48.854%200C21.839%200%200%2022%200%2049.217c0%2021.756%2013.993%2040.172%2033.405%2046.69%202.427.49%203.316-1.059%203.316-2.362%200-1.141-.08-5.052-.08-9.127-13.59%202.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015%204.934.326%207.523%205.052%207.523%205.052%204.367%207.496%2011.404%205.378%2014.235%204.074.404-3.178%201.699-5.378%203.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283%200-5.378%201.94-9.778%205.014-13.2-.485-1.222-2.184-6.275.486-13.038%200%200%204.125-1.304%2013.426%205.052a46.97%2046.97%200%200%201%2012.214-1.63c4.125%200%208.33.571%2012.213%201.63%209.302-6.356%2013.427-5.052%2013.427-5.052%202.67%206.763.97%2011.816.485%2013.038%203.155%203.422%205.015%207.822%205.015%2013.2%200%2018.905-11.404%2023.06-22.324%2024.283%201.78%201.548%203.316%204.481%203.316%209.126%200%206.6-.08%2011.897-.08%2013.526%200%201.304.89%202.853%203.316%202.364%2019.412-6.52%2033.405-24.935%2033.405-46.691C97.707%2022%2075.788%200%2048.854%200z'%20fill='%2324292f'/%3e%3c/svg%3e",iAe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M480-120q-33%200-56.5-23.5T400-200q0-33%2023.5-56.5T480-280q33%200%2056.5%2023.5T560-200q0%2033-23.5%2056.5T480-120Zm-80-240v-480h160v480H400Z'/%3e%3c/svg%3e",aAe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M380-120v-120L240-380v-220q0-24%2011-45t32-32l77%2077h-40v186l140%20140v74h40v-74l37-37L56-792l56-56%20736%20736-56%2056-198-198-14%2014v120H380Zm306-268-46-46v-166H474L320-754v-86h80v160h160v-160h80v200l-40-40h40q33%200%2056.5%2023.5T720-600v178l-34%2034ZM558-516Zm-130%2097Z'/%3e%3c/svg%3e",oAe="data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%205.75C3%204.23122%204.23122%203%205.75%203H15.7145C16.5764%203%2017.4031%203.34241%2018.0126%203.9519L20.0481%205.98744C20.6576%206.59693%2021%207.42358%2021%208.28553V18.25C21%2019.7688%2019.7688%2021%2018.25%2021H5.75C4.23122%2021%203%2019.7688%203%2018.25V5.75ZM5.75%204.5C5.05964%204.5%204.5%205.05964%204.5%205.75V18.25C4.5%2018.9404%205.05964%2019.5%205.75%2019.5H6V14.25C6%2013.0074%207.00736%2012%208.25%2012H15.75C16.9926%2012%2018%2013.0074%2018%2014.25V19.5H18.25C18.9404%2019.5%2019.5%2018.9404%2019.5%2018.25V8.28553C19.5%207.8214%2019.3156%207.37629%2018.9874%207.0481L16.9519%205.01256C16.6918%204.75246%2016.3582%204.58269%2016%204.52344V7.25C16%208.49264%2014.9926%209.5%2013.75%209.5H9.25C8.00736%209.5%207%208.49264%207%207.25V4.5H5.75ZM16.5%2019.5V14.25C16.5%2013.8358%2016.1642%2013.5%2015.75%2013.5H8.25C7.83579%2013.5%207.5%2013.8358%207.5%2014.25V19.5H16.5ZM8.5%204.5V7.25C8.5%207.66421%208.83579%208%209.25%208H13.75C14.1642%208%2014.5%207.66421%2014.5%207.25V4.5H8.5Z'%20fill='%23FFFFFF'/%3e%3c/svg%3e",sAe=["src"],lAe={__name:"AiIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(tAe),alt:"avatar"},null,8,sAe))}},uAe=["src"],cAe={__name:"GithubIcon",props:{theme:{type:String,default:"light"}},setup(e){const t=e,n=l.computed(()=>t.theme==="dark"?nAe:rAe);return(r,i)=>(l.openBlock(),l.createElementBlock("img",{src:n.value,alt:"avatar"},null,8,uAe))}},AAe=["src"],dAe=l.defineComponent({__name:"HighPriorityIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(iAe),alt:"avatar"},null,8,AAe))}}),fAe={},hAe={height:"20px",viewBox:"0 0 24 24",width:"20px",fill:"#16a34a"};function pAe(e,t){return l.openBlock(),l.createElementBlock("svg",hAe,t[0]||(t[0]=[l.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),l.createElementVNode("path",{d:"M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"},null,-1)]))}const mAe=cr(fAe,[["render",pAe]]),gAe={},vAe={height:"20px",viewBox:"0 0 24 24",width:"20px",fill:"#ef4444"};function yAe(e,t){return l.openBlock(),l.createElementBlock("svg",vAe,t[0]||(t[0]=[l.createElementVNode("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),l.createElementVNode("path",{d:"M18 14.49V9c0-1-1.01-2.01-2-2V3h-2v4h-4V3H8v2.48l9.51 9.5.49-.49zm-1.76 1.77L7.2 7.2l-.01.01L3.98 4 2.71 5.25l3.36 3.36C6.04 8.74 6 8.87 6 9v5.48L9.5 18v3h5v-3l.48-.48L19.45 22l1.26-1.28-4.47-4.46z"},null,-1)]))}const _Ae=cr(gAe,[["render",yAe]]),bAe=["src"],wAe=l.defineComponent({__name:"PowerOffIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(aAe),alt:"avatar"},null,8,bAe))}}),BAe=["src"],G8=l.defineComponent({__name:"SaveIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(oAe),alt:"avatar"},null,8,BAe))}}),xAe={class:"fixed inset-0 overflow-y-auto"},CAe={class:"flex min-h-full items-center justify-center p-4 text-center"},SAe={key:0,class:"mx-2 inline-block spinner"},kAe={class:"absolute right-2 top-0"},MAe={class:"text-xs"},EAe={class:"pt-4"},LAe={class:"mt-4 space-x-3"},ys=l.defineComponent({__name:"Dialog",props:{open:Boolean,title:String,description:{type:String,default:""},size:{type:String,default:"small"},loading:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,i=l.computed(()=>n.open),a=l.computed(()=>n.title);return(o,s)=>(l.openBlock(),l.createBlock(l.unref(iA),{appear:"",show:i.value,as:"template"},{default:l.withCtx(()=>[l.createVNode(l.unref(oh),{as:"div",onClose:s[0]||(s[0]=u=>r("close")),class:"relative z-40"},{default:l.withCtx(()=>[l.createVNode(l.unref(Td),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:l.withCtx(()=>s[1]||(s[1]=[l.createElementVNode("div",{class:"fixed inset-0 bg-gray-500/75 transition-opacity"},null,-1)])),_:1,__:[1]}),l.createElementVNode("div",xAe,[l.createElementVNode("div",CAe,[l.createVNode(l.unref(Td),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(kv),{class:l.normalizeClass(["white-bg dark:dark-bg transform rounded-2xl p-6 text-left align-middle shadow-xl transition-all",{"w-full max-w-md":e.size==="small"},{"min-w-150 px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-lg sm:p-6":e.size==="medium"},{"px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-4xl sm:p-6":e.size==="large"},{"px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-7xl sm:p-6":e.size==="xlarge"}])},{default:l.withCtx(()=>[l.createVNode(l.unref(pw),{as:"h3",class:"relative text-lg font-medium leading-6"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.value)+" ",1),e.loading?(l.openBlock(),l.createElementBlock("div",SAe)):l.createCommentVNode("",!0),l.createElementVNode("div",kAe,[l.renderSlot(o.$slots,"header")])]),_:3}),l.createElementVNode("p",MAe,l.toDisplayString(e.description),1),l.createElementVNode("div",EAe,[l.renderSlot(o.$slots,"content")]),l.createElementVNode("div",LAe,[l.renderSlot(o.$slots,"footer")])]),_:3},8,["class"])]),_:3})])])]),_:3})]),_:3},8,["show"]))}}),TAe={class:"mt-2"},NAe={class:"text-sm overflow-x-auto text-ellipsis"},FAe=l.defineComponent({__name:"ConfirmDialog",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(""),a=l.ref(()=>{}),o=l.ref(()=>{}),s=l.ref("Yes"),u=l.ref("No"),c=l.ref(!1);function A(m,p,g,y,v="Yes",_="No"){i.value=m,r.value=p,a.value=g,o.value=y,n.value=!0,s.value=v,u.value=_}async function f(){c.value=!0,await a.value(),c.value=!1,d()}function h(){o.value&&o.value(),d()}function d(){n.value=!1}return t({openModal:A}),(m,p)=>(l.openBlock(),l.createBlock(ys,{open:n.value,title:i.value,onClose:d},{content:l.withCtx(()=>[l.createElementVNode("div",TAe,[l.createElementVNode("p",NAe,l.toDisplayString(r.value),1)])]),footer:l.withCtx(()=>[l.createVNode(qo,{text:s.value,loading:c.value,onClick:f},null,8,["text","loading"]),l.createVNode(qo,{text:u.value,color:"red",onClick:h},null,8,["text"])]),_:1},8,["open","title"]))}}),OAe={class:"mt-2"},IAe={class:"break-all text-sm std-white-text font-bold"},DAe={class:"text-sm font-light"},UAe=l.defineComponent({__name:"CopyDialog",emits:["notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref(""),o=l.ref(""),s=l.ref("");function u(f,h,d){o.value=f,a.value=h,s.value=d,i.value=!0}function c(){navigator.clipboard.writeText(s.value),r("notify","Token copied to clipboard","",!0)}function A(){i.value=!1}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:o.value,onClose:A},{content:l.withCtx(()=>[l.createElementVNode("div",OAe,[l.createElementVNode("p",IAe,l.toDisplayString(s.value),1),l.createElementVNode("p",DAe,l.toDisplayString(a.value),1)])]),footer:l.withCtx(()=>[l.createVNode(qo,{text:"Copy",color:"green",onClick:c}),l.createVNode(qo,{text:"Close",color:"red",onClick:A})]),_:1},8,["open","title"]))}}),Qd={__name:"SubmitButtons",props:{saveText:{type:String,default:"Save"},disableSave:{type:[Boolean,Number],default:!1},isRun:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["save","close"],setup(e,{emit:t}){const n=e,r=t;function i(){!n.loading&&!n.disableSave&&r("save")}function a(){n.loading||r("close")}return(o,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(qo,{text:e.saveText,color:e.isRun?"green":"blue",disabled:e.disableSave||e.loading,loading:e.loading,onClick:i},null,8,["text","color","disabled","loading"]),l.createVNode(qo,{color:"red",text:"Cancel",loading:e.loading,disabled:e.loading,onClick:a},null,8,["loading","disabled"])],64))}},W8={__name:"ChooseValueDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"},values:{type:Array,default:()=>[]}},emits:["save"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=l.ref(!1),o=l.ref({}),s=l.computed(()=>{const f=r.values.find(h=>h.value===o.value.key);return f?f.values.map(h=>({label:h,value:h})):[]});function u(f){const h=r.values.find(d=>d.value===f);h&&(o.value.val=h.values[0])}function c(){a.value=!1}function A(f){a.value=!0,o.value={}}return t({open:a,openModal:A,close:c}),(f,h)=>(l.openBlock(),l.createBlock(ys,{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(qi,{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:o.value.key,"onUpdate:modelValue":[h[0]||(h[0]=d=>o.value.key=d),h[1]||(h[1]=d=>u(d))],options:e.values},null,8,["modelValue","options"])]),_:1},8,["fieldName"]),s.value.length>1?(l.openBlock(),l.createBlock(qi,{key:0,fieldName:"Select Attribute Value"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:o.value.val,"onUpdate:modelValue":h[2]||(h[2]=d=>o.value.val=d),options:s.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),l.createVNode(qi,{fieldName:"Selected Value"},{default:l.withCtx(()=>[l.createVNode(L6,{value:o.value.val,readonly:""},null,8,["value"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(Qd,{saveText:e.saveButtonText,onSave:h[3]||(h[3]=d=>i("save",o.value)),onClose:c},null,8,["saveText"])]),_:1},8,["open","title"]))}},PAe={__name:"NameDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"}},emits:["save"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({});function o(){i.value=!1}function s(u){i.value=!0,a.value={name:u.name}}return t({open:i,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(qi,{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(oo,{modelValue:a.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>a.value.name=A)},null,8,["modelValue"])]),_:1},8,["fieldName"])]),footer:l.withCtx(()=>[l.createVNode(Qd,{saveText:e.saveButtonText,onSave:c[1]||(c[1]=A=>r("save",a.value)),onClose:o},null,8,["saveText"])]),_:1},8,["open","title"]))}},HAe={__name:"NameDescDialog",props:{title:{type:String,default:"Add"},saveButtonText:{type:String,default:"Save"},loading:{type:Boolean,default:!1}},emits:["save","notifyList"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({}),o=l.ref({});function s(){o.value={},i.value=!1}function u(){if(o.value={},!a.value.name){o.value.name="Name is required",r("notifyList","Error",["Name is required"],!1);return}r("save",a.value)}function c(A){i.value=!0,a.value={name:A.name,description:A.description||""}}return t({open:i,openModal:c,close:s}),(A,f)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(qi,{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(oo,{modelValue:a.value.name,"onUpdate:modelValue":f[0]||(f[0]=h=>a.value.name=h),error:o.value.name},null,8,["modelValue","error"])]),_:1}),l.createVNode(qi,{fieldName:"Description"},{default:l.withCtx(()=>[l.createVNode(oo,{modelValue:a.value.description,"onUpdate:modelValue":f[1]||(f[1]=h=>a.value.description=h)},null,8,["modelValue"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(Qd,{saveText:e.saveButtonText,loading:e.loading,onSave:u,onClose:s},null,8,["saveText","loading"])]),_:1},8,["open","title"]))}};function X8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})])}function YAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5M12 17.25h8.25"})])}function RAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function QAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function i1(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function J8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function a1(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function Z8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function jAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function $8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function eN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function jd(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function k5(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const VAe={class:"flex"},zAe={class:"flex-shrink-0"},qAe={class:"ml-3"},KAe={key:0,class:"text-sm font-medium std-green-text"},GAe={key:1,class:"text-sm font-medium std-red-text"},WAe={key:2,class:"mt-2 text-sm std-green-text"},XAe={key:3,class:"mt-2 text-sm std-red-text"},JAe={class:"ml-auto pl-3"},ZAe={class:"-mx-1.5 -my-1.5"},$Ae={class:"flex"},ede={class:"flex-shrink-0"},tde={class:"ml-3"},nde={key:0,class:"text-sm font-medium std-green-text"},rde={key:1,class:"text-sm font-medium std-red-text"},ide={key:2,class:"mt-2 text-sm std-green-text"},ade={key:3,class:"mt-2 text-sm std-red-text"},ode={class:"ml-auto pl-3"},sde={class:"-mx-1.5 -my-1.5"},lde=l.defineComponent({__name:"Notify",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(f,h,d){clearTimeout(o.value),a.value=f,r.value=h,i.value=d,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},3e3)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(l.unref(iA),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(oh),{key:0,as:"div",class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",VAe,[l.createElementVNode("div",zAe,[i.value?(l.openBlock(),l.createBlock(l.unref(i1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(jd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",qAe,[i.value?(l.openBlock(),l.createElementBlock("h3",KAe,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",GAe,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",WAe,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",XAe,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",JAe,[l.createElementVNode("div",ZAe,[l.createVNode(l.unref(oA),{color:A(),onClick:l.withModifiers(c,["stop"])},{default:l.withCtx(()=>[l.createVNode(l.unref(Nd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-80"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",$Ae,[l.createElementVNode("div",ede,[i.value?(l.openBlock(),l.createBlock(l.unref(i1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(jd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",tde,[i.value?(l.openBlock(),l.createElementBlock("h3",nde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",rde,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",ide,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",ade,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",ode,[l.createElementVNode("div",sde,[l.createVNode(l.unref(oA),{color:A(),onClick:l.withModifiers(c,["stop"])},{default:l.withCtx(()=>[l.createVNode(l.unref(Nd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),ude={class:"flex"},cde={class:"flex-shrink-0"},Ade={class:"ml-3"},dde={key:0,class:"text-sm font-medium std-green-text"},fde={key:1,class:"text-sm font-medium std-red-text"},hde={key:2,class:"mt-2 text-sm std-green-text"},pde={role:"list",class:"list-disc space-y-1 pl-5"},mde={key:3,class:"mt-2 text-sm std-red-text"},gde={role:"list",class:"list-disc space-y-1 pl-5"},vde={class:"ml-auto pl-3"},yde={class:"-mx-1.5 -my-1.5"},_de={class:"flex"},bde={class:"flex-shrink-0"},wde={class:"ml-3"},Bde={key:0,class:"text-sm font-medium std-green-text"},xde={key:1,class:"text-sm font-medium std-red-text"},Cde={key:2,class:"mt-2 text-sm std-green-text"},Sde={role:"list",class:"list-disc space-y-1 pl-5"},kde={key:3,class:"mt-2 text-sm std-red-text"},Mde={role:"list",class:"list-disc space-y-1 pl-5"},Ede={class:"ml-auto pl-3"},Lde={class:"-mx-1.5 -my-1.5"},tN=l.defineComponent({__name:"NotifyList",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(f,h,d){clearTimeout(o.value),a.value=f,r.value=h,i.value=d,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},5e3)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(l.unref(iA),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(oh),{key:0,as:"div",class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",ude,[l.createElementVNode("div",cde,[i.value?(l.openBlock(),l.createBlock(l.unref(i1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(jd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",Ade,[i.value?(l.openBlock(),l.createElementBlock("h3",dde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",fde,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",hde,[l.createElementVNode("ul",pde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])])):(l.openBlock(),l.createElementBlock("div",mde,[l.createElementVNode("ul",gde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])]))]),l.createElementVNode("div",vde,[l.createElementVNode("div",yde,[l.createVNode(l.unref(oA),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(Nd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",_de,[l.createElementVNode("div",bde,[i.value?(l.openBlock(),l.createBlock(l.unref(i1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(jd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",wde,[i.value?(l.openBlock(),l.createElementBlock("h3",Bde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",xde,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",Cde,[l.createElementVNode("ul",Sde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])])):(l.openBlock(),l.createElementBlock("div",kde,[l.createElementVNode("ul",Mde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])]))]),l.createElementVNode("div",Ede,[l.createElementVNode("div",Lde,[l.createVNode(l.unref(oA),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(Nd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),Tde={class:"slider-inactive rounded-xl shadow-xs overflow-hidden p-1"},Nde={key:0,class:"relative text-green-900 font-medium text-sm"},nN={__name:"ProgressBar",props:{progress:Number,hideProgress:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("div",Tde,[l.createElementVNode("div",{class:l.normalizeClass(["relative flex items-center justify-center",{"h-2":e.hideProgress},{"h-6":!e.hideProgress}])},[l.createElementVNode("div",{class:"absolute top-0 bottom-0 left-0 rounded-lg std-green-hover",style:l.normalizeStyle({width:`${t.progress}%`})},null,4),e.hideProgress?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Nde,l.toDisplayString(t.progress)+"% ",1))],2)]))}},Fde={__name:"ProgressDialog",emits:["close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Loading"),o=l.ref(0),s=l.ref(()=>{}),u=l.ref(),c=d=>{o.value+=1,o.value<100?u.value=setTimeout(()=>{s.value(d)},d):(A(),r("close"))};function A(){clearTimeout(u.value),i.value=!1}function f(d,m=0,p=100,g=c){i.value=!0,a.value=d,o.value=m,p?(s.value=c,s.value(p)):(s.value=g,s.value())}function h(d){o.value=d}return t({openModal:f,updateProgress:h,close:A}),(d,m)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:a.value,loading:!0},{content:l.withCtx(()=>[l.createVNode(nN,{progress:o.value},null,8,["progress"])]),_:1},8,["open","title"]))}},Ode={class:"w-full px-4"},rN={__name:"Stepper",props:{steps:Array},setup(e){const t=e,n=l.computed(()=>({gridTemplateColumns:`repeat(${t.steps.length}, minmax(0, 1fr))`}));return(r,i)=>(l.openBlock(),l.createElementBlock("div",Ode,[l.createElementVNode("div",{class:"'w-full grid pb-8 md:pb-4 gap-x-2",style:l.normalizeStyle(n.value)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(a,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["h-2 text-sm px-1",{"opacity-75":a.status!=="current"},{"font-semibold":a.status==="current"}])},l.toDisplayString(a.name),3))),256))],4),l.createElementVNode("div",{class:"w-full grid gap-x-2",style:l.normalizeStyle(n.value)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(a,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["h-2 rounded-lg flex-none",{"slider-inactive":a.status==="upcoming"},{"std-blue":a.status!=="upcoming"}])},null,2))),256))],4)]))}},Ide={class:"flow-root"},Dde={class:"float-left"},Ude={class:"float-right space-x-4"},Pde={__name:"Wizard",props:{open:Boolean,title:String,steps:Array,proceed:Boolean,saveButton:{type:String,default:"Save"},preventSave:{type:[Boolean,Number],default:!1},size:{type:String,default:"large"}},emits:["close","next","moved","clickout"],setup(e,{emit:t}){const n=e,r=l.ref(n.steps),i=l.ref(0),a=t;l.watch(()=>n.open,()=>{r.value=n.steps,i.value=0}),l.watch(()=>n.proceed,()=>{n.proceed&&(r.value[i.value].status="completed",i.value+=1,r.value[i.value].status="current",a("moved"))}),l.watch(()=>n.steps,()=>{r.value=n.steps});function o(){i.value===0?(i.value=0,a("close")):(r.value[i.value].status="upcoming",i.value-=1,r.value[i.value].status="current")}function s(){a("next")}return(u,c)=>(l.openBlock(),l.createBlock(ys,{open:e.open,title:e.title,size:e.size,onClose:c[1]||(c[1]=A=>u.$emit("clickout"))},{header:l.withCtx(()=>[l.renderSlot(u.$slots,"header")]),content:l.withCtx(()=>[l.createVNode(rN,{steps:r.value},null,8,["steps"]),l.renderSlot(u.$slots,"content")]),footer:l.withCtx(()=>[l.createElementVNode("div",Ide,[l.createElementVNode("div",Dde,[l.renderSlot(u.$slots,"footer")]),l.createElementVNode("div",Ude,[l.createVNode(qo,{text:i.value===0?"Cancel":"Back",color:"red",onClick:o},null,8,["text"]),i.value!==r.value.length-1?(l.openBlock(),l.createBlock(qo,{key:0,text:"Next",onClick:s})):(l.openBlock(),l.createBlock(qo,{key:1,text:e.preventSave?"Close":e.saveButton,color:"blue",onClick:c[0]||(c[0]=A=>e.preventSave?a("close"):s())},null,8,["text"]))])])]),_:3},8,["open","title","size"]))}},Hde={__name:"ResetPasswordDialog",emits:["save","notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({}),o=l.ref({});function s(){if(o.value={},!a.value.password||a.value.password.length<8){o.value.password="Password needs to be at least 8 characters long",r("notify","Error",[o.value.password],!1);return}if(a.value.password!==a.value.confirm){o.value.confirm="Passwords do not match",r("notify","Error",[o.value.confirm],!1);return}r("save",a.value),u()}function u(){i.value=!1}function c(A){i.value=!0,a.value={username:A}}return t({open:i,openModal:c,close:u}),(A,f)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:"Reset Password"},{content:l.withCtx(()=>[l.createVNode(qi,{fieldName:"Password"},{default:l.withCtx(()=>[l.createVNode(Cw,{modelValue:a.value.password,"onUpdate:modelValue":f[0]||(f[0]=h=>a.value.password=h),error:o.value.password},null,8,["modelValue","error"])]),_:1}),l.createVNode(qi,{fieldName:"Confirm Password"},{default:l.withCtx(()=>[l.createVNode(Cw,{modelValue:a.value.confirm,"onUpdate:modelValue":f[1]||(f[1]=h=>a.value.confirm=h),error:o.value.confirm},null,8,["modelValue","error"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(Qd,{saveText:"Reset",onSave:s,onClose:u})]),_:1},8,["open"]))}},Yde={__name:"DownloadDialog",props:{},emits:["notify","notifyList","close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Title"),o=l.ref(null);function s(A,f){i.value=!0,a.value=A,o.value=f}function u(){window.open(o.value,"_blank"),c()}function c(){i.value=!1,a.value="Title",o.value=null,r("close")}return t({openModal:s,closeModal:c}),(A,f)=>(l.openBlock(),l.createBlock(ys,{open:i.value,title:a.value,size:"medium"},{footer:l.withCtx(()=>[l.createVNode(Qd,{saveText:"Download",onSave:u,onClose:c})]),_:1},8,["open","title"]))}};function Hm(){return Hm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hm.apply(this,arguments)}var Rde=13,Qde=9,jde=8,Vde=89,o1=90,zde=77,iN=57,aN=219,oN=222,sN=192,qde=27,lN=100,Kde=3e3,Gde=typeof window<"u"&&navigator&&/Win/i.test(navigator.platform),M5=typeof window<"u"&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Wde=l.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(t){t?this.codeData=t:this.codeData=""}},content:{immediate:!0,handler:function(){var t=this;this.lineNumbers&&this.$nextTick(function(){t.setLineNumbersHeight()})}},lineNumbers:function(){var t=this;this.$nextTick(function(){t.styleLineNumbers(),t.setLineNumbersHeight()})}},computed:{isEmpty:function(){return this.codeData.length===0},content:function(){var t=this.highlight(this.codeData)+"<br />";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),r=window.getComputedStyle(t);this.$nextTick(function(){var i="border-top-left-radius",a="border-bottom-left-radius";if(n){n.style[i]=r[i],n.style[a]=r[a],t.style[i]="0",t.style[a]="0";var o=["background-color","margin-top","padding-top","font-family","font-size","line-height"];o.forEach(function(s){n.style[s]=r[s]}),n.style["margin-bottom"]="-"+r["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,r=t.selectionStart,i=t.selectionEnd;this._recordChange({value:n,selectionStart:r,selectionEnd:i})}},_getLines:function(t,n){return t.substring(0,n).split(`
58
58
  `)},_applyEdits:function(t){var n=this.$refs.textarea,r=this.history.stack[this.history.offset];r&&n&&(this.history.stack[this.history.offset]=Hm({},r,{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),this._recordChange(t),this._updateInput(t)},_recordChange:function(t,n){n===void 0&&(n=!1);var r=this.history,i=r.stack,a=r.offset;if(i.length&&a>-1){this.history.stack=i.slice(0,a+1);var o=this.history.stack.length;if(o>lN){var s=o-lN;this.history.stack=i.slice(s,o),this.history.offset=Math.max(this.history.offset-s,0)}}var u=Date.now();if(n){var c=this.history.stack[this.history.offset];if(c&&u-c.timestamp<Kde){var A,f,h=/[^a-z0-9]([a-z0-9]+)$/i,d=(A=this._getLines(c.value,c.selectionStart).pop())===null||A===void 0?void 0:A.match(h),m=(f=this._getLines(t.value,t.selectionStart).pop())===null||f===void 0?void 0:f.match(h);if(d&&m&&m[1].startsWith(d[1])){this.history.stack[this.history.offset]=Hm({},t,{timestamp:u});return}}}this.history.stack.push(Hm({},t,{timestamp:u})),this.history.offset++},_updateInput:function(t){var n=this.$refs.textarea;n&&(n.value=t.value,n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd,this.$emit("update:modelValue",t.value))},handleChange:function(t){var n=t.target,r=n.value,i=n.selectionStart,a=n.selectionEnd;this._recordChange({value:r,selectionStart:i,selectionEnd:a},!0),this.$emit("update:modelValue",r)},_undoEdit:function(){var t=this.history,n=t.stack,r=t.offset,i=n[r-1];i&&(this._updateInput(i),this.history.offset=Math.max(r-1,0))},_redoEdit:function(){var t=this.history,n=t.stack,r=t.offset,i=n[r+1];i&&(this._updateInput(i),this.history.offset=Math.min(r+1,n.length-1))},handleKeyDown:function(t){var n=this.tabSize,r=this.insertSpaces,i=this.ignoreTabKey;if(this.$emit("keydown",t),!t.defaultPrevented){t.keyCode===qde&&(t.target.blur(),this.$emit("blur",t));var a=t.target,o=a.value,s=a.selectionStart,u=a.selectionEnd,c=(r?" ":" ").repeat(n);if(t.keyCode===Qde&&!i&&this.capture)if(t.preventDefault(),t.shiftKey){var A=this._getLines(o,s),f=A.length-1,h=this._getLines(o,u).length-1,d=o.split(`
59
59
  `).map(function(F,I){return I>=f&&I<=h&&F.startsWith(c)?F.substring(c.length):F}).join(`
60
60
  `);if(o!==d){var m=A[f];this._applyEdits({value:d,selectionStart:m.startsWith(c)?s-c.length:s,selectionEnd:u-(o.length-d.length)})}}else if(s!==u){var p=this._getLines(o,s),g=p.length-1,y=this._getLines(o,u).length-1,v=p[g];this._applyEdits({value:o.split(`