vendor: 4,320 bytes, line 1
1import{ai as Kt,aQ as qe,az as I,F as fe,at as X,f as Qn,Q as Ao,P as Lf,O as Nf,ay as ve,aD as R,e as Fr,X as jf,C as $f,x as Rf,D as ye,h as O,ah as Ve,ak as D,t as Df,A as _n,aB as Ce,q as S,a1 as Q,a3 as Y,j as _,aP as q,ac as _e,u as Vr,aA as Yc,y as Ff,a8 as bt,aj as Hr,a5 as te,aG as $t,ab as Bn,ae as Vf,b as Hf,c as Yt,ap as Uf,a2 as me,aU as Fe,av as Ze,d as Ur,aO as eo,_ as zf,a7 as ti,g as Wf,T as qf,aN as Gf,af as Xe,m as Ft,aT as G,p as Ne,l as $i,al as Ri,k as co}from"./runtime-dom.esm-bundler-Dw83Txt9.js";function lC(e){}function Xc(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const ue=typeof window<"u",zr=ue&&"IntersectionObserver"in window,Kf=ue&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),cC=ue&&"EyeDropper"in window,Wr=ue&&"matchMedia"in window&&typeof window.matchMedia=="function",Gn=()=>Wr&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function Al(e,t,n){Yf(e,t),t.set(e,n)}function Yf(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ll(e,t,n){return e.set(Zc(e,t),n),n}function ct(e,t){return e.get(Zc(e,t))}function Zc(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Jc(e,t,n){const o=t.length-1;if(o<0)return e===void 0?n:e;for(let i=0;i<o;i++){if(e==null)return n;e=e[t[i]]}return e==null||e[t[o]]===void 0?n:e[t[o]]}function cr(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),Jc(e,t.split("."),n))}function nt(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const i=t(e,n);return typeof i>"u"?n:i}if(typeof t=="string")return cr(e,t,n);if(Array.isArray(t))return Jc(e,t,n);if(typeof t!="function")return n;const o=t(e,n);return typeof o>"u"?n:o}function Xf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,o)=>t+o)}function z(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(e==null||e==="")return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?`${n}${t}`:void 0}function ur(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function dr(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function Zf(e){if(e&&"$el"in e){const t=e.$el;return t?.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}const uC=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function dC(e){return Object.keys(e)}function Di(e,t){return t.every(n=>e.hasOwnProperty(n))}function ni(e,t){const n={};for(const o of t)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function Nl(e,t,n){const o=Object.create(null),i=Object.create(null);for(const r in e)t.some(s=>s instanceof RegExp?s.test(r):s===r)?o[r]=e[r]:i[r]=e[r];return[o,i]}function On(e,t){const n={...e};return t.forEach(o=>delete n[o]),n}const Qc=/^on[^a-z]/,eu=e=>Qc.test(e),Jf=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],Qf=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];
1function hC(e){return e.isComposing&&Qf.includes(e.key)}function oi(e){const[t,n]=Nl(e,[Qc]),o=On(t,Jf),[i,r]=Nl(n,["class","style","id","inert",/^data-/]);return Object.assign(i,t),Object.assign(r,o),[i,r]}function rt(e){return e==null?[]:Array.isArray(e)?e:[e]}function fC(e,t){let n=0;const o=function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];clearTimeout(n),n=setTimeout(()=>e(...r),R(t))};return o.clear=()=>{clearTimeout(n)},o.immediate=e,o}function At(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function pC(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function jl(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function mC(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function ep(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let o=0;for(;o<e.length;)n.push(e.substr(o,t)),o+=t;return n}function gC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(e<t)return`${e} B`;const n=t===1024?["Ki","Mi","Gi"]:["k","M","G"];let o=-1;for(;Math.abs(e)>=t&&o<n.length-1;)e/=t,++o;return`${e.toFixed(1)} ${n[o]}B`}function pt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o={};for(const i in e)o[i]=e[i];for(const i in t){const r=e[i],s=t[i];if(dr(r)&&dr(s)){o[i]=pt(r,s,n);continue}if(n&&Array.isArray(r)&&Array.isArray(s)){o[i]=n(r,s);continue}o[i]=s}return o}function tu(e){return e.map(t=>t.type===fe?tu(t.children):t).flat()}function qt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(qt.cache.has(e))return qt.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return qt.cache.set(e,t),t}qt.cache=new Map;function Vn(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Vn(e,n)).flat(1);if(t.suspense)return Vn(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Vn(e,n)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return Vn(e,t.component.subTree).flat(1)}return[]}var un=new WeakMap,Vt=new WeakMap;class tp{constructor(t){Al(this,un,[]),Al(this,Vt,0),this.size=t}get isFull(){return ct(un,this).length===this.size}push(t){ct(un,this)[ct(Vt,this)]=t,Ll(Vt,this,(ct(Vt,this)+1)%this.size)}values(){return ct(un,this).slice(ct(Vt,this)).concat(ct(un,this).slice(0,ct(Vt,this)))}clear(){ct(un,this).length=0,Ll(Vt,this,0)}}function vC(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function qr(e){const t=Kt({});qe(()=>{const o=e();for(const i in o)t[i]=o[i]},{flush:"sync"});const n={};for(const o in t)n[o]=I(()=>t[o]);return n}function Lo(e,t){return e.includes(t)}function nu(e){return e[2].toLowerCase()+e.slice(3)}const We=()=>[Function,Array];function $l(e,t){return t="on"+Qn(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function Gr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(Array.isArray(e))for(const i of e)i(...n);else typeof e=="function"&&e(...n)}function zn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map(i=>`${i}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let o;try{o=[...e.querySelectorAll(n)]}catch{return[]}return o.filter(i=>!i.closest("[inert]")).filter(i=>!!i.offsetParent||i.getClientRects().length>0).filter(i=>!i.parentElement?.closest("details:not([open])")||i.tagName==="SUMMARY"&&i.parentElement?.tagName==="DETAILS")}
1function np(e,t,n){let o,i=e.indexOf(document.activeElement);const r=t==="next"?1:-1;do i+=r,o=e[i];while((!o||o.offsetParent==null||!(n?.(o)??!0))&&i<e.length&&i>=0);return o}function ou(e,t){const n=zn(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&n[0]?.focus();else if(t==="first")n[0]?.focus();else if(t==="last")n.at(-1)?.focus();else if(typeof t=="number")n[t]?.focus();else{const o=np(n,t);o?o.focus():ou(e,t==="next"?"first":"last")}}function bC(e){return e==null||typeof e=="string"&&e.trim()===""}function yC(){}function iu(e,t){if(!(ue&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function op(e){return e.some(t=>jf(t)?t.type===$f?!1:t.type!==fe||op(t.children):!0)?e:null}function ip(e,t){if(!ue||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function kC(e,t){const n=e.clientX,o=e.clientY,i=t.getBoundingClientRect(),r=i.left,s=i.top,a=i.right,l=i.bottom;return n>=r&&n<=a&&o>=s&&o<=l}function hr(){const e=X(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>Zf(e.value)}),t}function wC(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function Xt(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function Rl(e){return"\\^$*+?.()|{}[]".includes(e)?`\\${e}`:e}function xC(e,t,n){const o=new RegExp(`[\\d\\-${Rl(n)}]`),i=e.split("").filter(s=>o.test(s)).filter((s,a,l)=>a===0&&/[-]/.test(s)||s===n&&a===l.indexOf(s)||/\d/.test(s)).join("");if(t===0)return i.split(n)[0];const r=new RegExp(`${Rl(n)}\\d`);if(t!==null&&r.test(i)){const s=i.split(n);return[s[0],s[1].substring(0,t)].join(n)}return i}function CC(e){const t={};for(const n in e)t[Fr(n)]=e[n];return t}function rp(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(n=>{let[o,i]=n;return t.includes(o)?!!i:i!==void 0}))}function SC(e){const t=n=>Array.isArray(n)?n.map(o=>t(o)):Ao(n)||Lf(n)||Nf(n)?t(ve(n)):dr(n)?Object.keys(n).reduce((o,i)=>(o[i]=t(n[i]),o),{}):n;return t(e)}const ru=["top","bottom"],sp=["start","end","left","right"];function fr(e,t){let[n,o]=e.split(" ");return o||(o=Lo(ru,n)?"start":Lo(sp,n)?"top":"center"),{side:Dl(n,t),align:Dl(o,t)}}function Dl(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function Fi(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Vi(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Fl(e){return{side:e.align,align:e.side}}function Vl(e){return Lo(ru,e.side)?"y":"x"}class ze{constructor(t){const n=document.body.currentCSSZoom??1,o=t instanceof Element,i=o?1+(1-n)/n:1,{x:r,y:s,width:a,height:l}=o?t.getBoundingClientRect():t;this.x=r*i,this.y=s*i,this.width=a*i,this.height=l*i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Hl(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function su(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new ze({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}else return new ze(e)}function ap(e){if(e===document.documentElement)if(visualViewport){const t=document.body.currentCSSZoom??1;return new ze({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale/t,height:visualViewport.height*visualViewport.scale/t})}else return new ze({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else return new ze(e)}function Kr(e){const t=new ze(e),n=getComputedStyle(e),o=n.transform;if(o){let i,r,s,a,l;if(o.startsWith("matrix3d("))i=o.slice(9,-1).split(/, /),r=Number(i[0]),s=Number(i[5]),a=Number(i[12]),l=Number(i[13]);else if(o.startsWith("matrix("))i=o.slice(7,-1).split(/, /),r=Number(i[0]),s=Number(i[3]),a=Number(i[4]),l=Number(i[5]);else return new ze(t);const c=n.transformOrigin,u=t.x-a-(1-r)*parseFloat(c),d=t.y-l-(1-s)*parseFloat(c.slice(c.indexOf(" ")+1)),h=r?t.width/r:e.offsetWidth+1,p=s?t.height/s:e.offsetHeight+1;return new ze({x:u,y:d,width:h,height:p})}else return new ze(t)}function Ot(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let o;try{o=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof o.finished>"u"&&(o.finished=new Promise(i=>{o.onfinish=()=>{i(o)}})),o}const ko=new WeakMap;function lp(e,t){Object.keys(t).forEach(n=>{if(eu(n)){const o=nu(n),i=ko.get(e);if(t[n]==null)i?.forEach(r=>{const[s,a]=r;s===o&&(e.removeEventListener(o,a),i.delete(r))});else if(!i||![...i].some(r=>r[0]===o&&r[1]===t[n])){e.addEventListener(o,t[n]);const r=i||new Set;r.add([o,t[n]]),ko.has(e)||ko.set(e,r)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function cp(e,t){Object.keys(t).forEach(n=>{if(eu(n)){const o=nu(n),i=ko.get(e);i?.forEach(r=>{const[s,a]=r;s===o&&(e.removeEventListener(o,a),i.delete(r))})}else e.removeAttribute(n)})}const dn=2.4,Ul=.2126729,zl=.7151522,Wl=.072175,up=.55,dp=.58,hp=.57,fp=.62,uo=.03,ql=1.45,pp=5e-4,mp=1.25,gp=1.25,Gl=.078,Kl=12.82051282051282,ho=.06,Yl=.001;function Xl(e,t){const n=(e.r/255)**dn,o=(e.g/255)**dn,i=(e.b/255)**dn,r=(t.r/255)**dn,s=(t.g/255)**dn,a=(t.b/255)**dn;let l=n*Ul+o*zl+i*Wl,c=r*Ul+s*zl+a*Wl;if(l<=uo&&(l+=(uo-l)**ql),c<=uo&&(c+=(uo-c)**ql),Math.abs(c-l)<pp)return 0;let u;if(c>l){const d=(c**up-l**dp)*mp;u=d<Yl?0:d<Gl?d-d*Kl*ho:d-ho}else{const d=(c**fp-l**hp)*gp;u=d>-Yl?0:d>-Gl?d-d*Kl*ho:d+ho}return u*100}const No=.20689655172413793,vp=e=>e>No**3?Math.cbrt(e):e/(3*No**2)+4/29,bp=e=>e>No?e**3:3*No**2*(e-4/29);function au(e){const t=vp,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function lu(e){const t=bp,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const yp=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],
vendor: 4,592 bytes, lines 1-2
1kp=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,wp=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],xp=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function cu(e){const t=Array(3),n=kp,o=yp;for(let i=0;i<3;++i)t[i]=Math.round(At(n(o[i][0]*e[0]+o[i][1]*e[1]+o[i][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function Yr(e){let{r:t,g:n,b:o}=e;const i=[0,0,0],r=xp,s=wp;t=r(t/255),n=r(n/255),o=r(o/255);for(let a=0;a<3;++a)i[a]=s[a][0]*t+s[a][1]*n+s[a][2]*o;return i}function pr(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function Cp(e){return pr(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Zl=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,Sp={rgb:(e,t,n,o)=>({r:e,g:t,b:n,a:o}),rgba:(e,t,n,o)=>({r:e,g:t,b:n,a:o}),hsl:(e,t,n,o)=>Jl({h:e,s:t,l:n,a:o}),hsla:(e,t,n,o)=>Jl({h:e,s:t,l:n,a:o}),hsv:(e,t,n,o)=>Zt({h:e,s:t,v:n,a:o}),hsva:(e,t,n,o)=>Zt({h:e,s:t,v:n,a:o})};function ot(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Zl.test(e)){const{groups:t}=e.match(Zl),{fn:n,values:o}=t,i=o.split(/,\s*|\s*\/\s*|\s+/).map((r,s)=>r.endsWith("%")||s>0&&s<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(r)/100:parseFloat(r));return Sp[n](...i)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),hu(t)}else if(typeof e=="object"){if(Di(e,["r","g","b"]))return e;if(Di(e,["h","s","l"]))return Zt(uu(e));if(Di(e,["h","s","v"]))return Zt(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} 2Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Zt(e){const{h:t,s:n,v:o,a:i}=e,r=a=>{const l=(a+t/60)%6;return o-o*n*Math.max(Math.min(l,4-l,1),0)},s=[r(5),r(3),r(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:i}}function Jl(e){return Zt(uu(e))}function Ep(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,o=e.b/255,i=Math.max(t,n,o),r=Math.min(t,n,o);let s=0;i!==r&&(i===t?s=60*(0+(n-o)/(i-r)):i===n?s=60*(2+(o-t)/(i-r)):i===o&&(s=60*(4+(t-n)/(i-r)))),s<0&&(s=s+360);const a=i===0?0:(i-r)/i,l=[s,a,i];return{h:l[0],s:l[1],v:l[2],a:e.a}}function EC(e){const{h:t,s:n,v:o,a:i}=e,r=o-o*n/2,s=r===1||r===0?0:(o-r)/Math.min(r,1-r);return{h:t,s,l:r,a:i}}function uu(e){const{h:t,s:n,l:o,a:i}=e,r=o+n*Math.min(o,1-o),s=r===0?0:2-2*o/r;return{h:t,s,v:r,a:i}}function Tp(e){let{r:t,g:n,b:o,a:i}=e;return i===void 0?`rgb(${t}, ${n}, ${o})`:`rgba(${t}, ${n}, ${o}, ${i})`}function TC(e){return Tp(Zt(e))}function fo(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function du(e){let{r:t,g:n,b:o,a:i}=e;return`#${[fo(t),fo(n),fo(o),i!==void 0?fo(Math.round(i*255)):""].join("")}`}function hu(e){e=_p(e);let[t,n,o,i]=ep(e,2).map(r=>parseInt(r,16));return i=i===void 0?i:i/255,{r:t,g:n,b:o,a:i}}function _C(e){const t=hu(e);return Ep(t)}function BC(e){return du(Zt(e))}function _p(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=jl(jl(e,6),8,"F")),e}function Bp(e,t){const n=au(Yr(e));return n[0]=n[0]+t*10,cu(lu(n))}function Op(e,t){const n=au(Yr(e));return n[0]=n[0]-t*10,cu(lu(n))}function mr(e){const t=ot(e);return Yr(t)[1]}function OC(e,t){const n=mr(e),o=mr(t),i=Math.max(n,o),r=Math.min(n,o);return(i+.05)/(r+.05)}function fu(e){const t=Math.abs(Xl(ot(0),ot(e)));return Math.abs(Xl(ot(16777215),ot(e)))>Math.min(t,50)?"#fff":"#000"}function $(e,t){return n=>Object.keys(e).reduce((o,i)=>{const s=typeof e[i]=="object"&&e[i]!=null&&!Array.isArray(e[i])?e[i]:{type:e[i]};return n&&i in n?o[i]={...s,default:n[i]}:o[i]=s,t&&!o[i].source&&(o[i].source=t),o},{})}const ie=$({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function we(e,t){const n=Rf();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function at(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=we(e).type;return qt(t?.aliasName||t?.name)}function Ip(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const jo=Symbol.for("vuetify:defaults");function IC(e){return D(e)}function Xr(){const e=ye(jo);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function to(e,t){const n=Xr(),o=D(e),i=O(()=>{if(R(t?.disabled))return n.value;const s=R(t?.scoped),a=R(t?.reset),l=R(t?.root);if(o.value==null&&!(s||a||l))return n.value;
2let c=pt(o.value,{prev:n.value});if(s)return c;if(a||l){const u=Number(a||1/0);for(let d=0;d<=u&&!(!c||!("prev"in c));d++)c=c.prev;return c&&typeof l=="string"&&l in c&&(c=pt(pt(c,{prev:c}),c[l])),c}return c.prev?pt(c.prev,c):c});return Ve(jo,i),i}function Pp(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[qt(t)]<"u")}function Mp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xr();const o=we("useDefaults");if(t=t??o.type.name??o.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const i=O(()=>n.value?.[e._as??t]),r=new Proxy(e,{get(l,c){const u=Reflect.get(l,c);if(c==="class"||c==="style")return[i.value?.[c],u].filter(p=>p!=null);if(Pp(o.vnode,c))return u;const d=i.value?.[c];if(d!==void 0)return d;const h=n.value?.global?.[c];return h!==void 0?h:u}}),s=X();qe(()=>{if(i.value){const l=Object.entries(i.value).filter(c=>{let[u]=c;return u.startsWith(u[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=Ip(jo,o);Ve(jo,O(()=>s.value?pt(l?.value??{},s.value):l?.value))}return{props:r,provideSubDefaults:a}}function no(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=$(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(o){return ni(o,t)},e.props._as=String,e.setup=function(o,i){const r=Xr();if(!r.value)return e._setup(o,i);const{props:s,provideSubDefaults:a}=Mp(o,o._as??e.name,r),l=e._setup(s,i);return a(),l}}return e}function Z(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?no:Df)(t)}function PC(e,t){return t.props=e,t}function pu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return Z()({name:n??Qn(Fr(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...ie()},setup(o,i){let{slots:r}=i;return()=>_n(o.tag,{class:[e,o.class],style:o.style},r.default?.())}})}function Ap(e,t,n,o){if(!n||Xt(e)||Xt(t))return;const i=n.get(e);if(i)i.set(t,o);else{const r=new WeakMap;r.set(t,o),n.set(e,r)}}
2function Lp(e,t,n){if(!n||Xt(e)||Xt(t))return null;const o=n.get(e)?.get(t);if(typeof o=="boolean")return o;const i=n.get(t)?.get(e);return typeof i=="boolean"?i:null}function Pt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new WeakMap;if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const o=Object.keys(e);if(o.length!==Object.keys(t).length)return!1;const i=Lp(e,t,n);return i||(Ap(e,t,n,!0),o.every(r=>Pt(e[r],t[r],n)))}function mu(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const $o="cubic-bezier(0.4, 0, 0.2, 1)",Ql="cubic-bezier(0.0, 0, 0.2, 1)",ec="cubic-bezier(0.4, 0, 1, 1)",MC={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1};function Np(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?jp(e):Zr(e))return e;e=e.parentElement}return document.scrollingElement}function Ro(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(Zr(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function Zr(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e),n=t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight,o=t.overflowX==="scroll"||t.overflowX==="auto"&&e.scrollWidth>e.clientWidth;return n||o}function jp(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function $p(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function ne(e){const t=we("useRender");t.render=e}function Rp(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},o=0,i=0,r=!1,s=0;function a(){clearTimeout(o),r=!1,s=0}const l=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];clearTimeout(o);const h=Date.now();s||(s=h);const p=h-Math.max(s,i);function m(){i=Date.now(),o=setTimeout(a,t),e(...u)}r?p>=t?m():n.trailing&&(o=setTimeout(m,t-p)):(r=!0,n.leading&&m())};return l.clear=a,l.immediate=e,l}const ce=[String,Function,Object,Array],Dp=Symbol.for("vuetify:icons"),ii=$({icon:{type:ce},tag:{type:[String,Object,Function],required:!0}},"icon"),tc=Z()({name:"VComponentIcon",props:ii(),setup(e,t){let{slots:n}=t;return()=>{const o=e.icon;return S(e.tag,null,{default:()=>[e.icon?S(o,null,null):n.default?.()]})}}}),Fp=no({name:"VSvgIcon",inheritAttrs:!1,props:ii(),setup(e,t){let{attrs:n}=t;return()=>S(e.tag,Q(n,{style:null}),{default:()=>[_("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(o=>Array.isArray(o)?_("path",{d:o[0],"fill-opacity":o[1]},null):_("path",{d:o},null)):_("path",{d:e.icon},null)])]})}});no({name:"VLigatureIcon",props:ii(),setup(e){return()=>S(e.tag,null,{default:()=>[e.icon]})}});const AC=no({name:"VClassIcon",props:ii(),setup(e){return()=>S(e.tag,{class:Y(e.icon)},null)}}),Vp=e=>{const t=ye(Dp);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:O(()=>{const o=Ce(e);if(!o)return{component:tc};let i=o;if(typeof i=="string"&&(i=i.trim(),i.startsWith("$")&&(i=t.aliases?.[i.slice(1)])),Array.isArray(i))return{component:Fp,icon:i};if(typeof i!="string")return{component:tc,icon:i};const r=Object.keys(t.sets).find(l=>typeof i=="string"&&i.startsWith(`${l}:`)),s=r?i.slice(r.length+1):i;return{component:t.sets[r??t.defaultSet].component,icon:s}})}};function Jt(e,t){let n;function o(){n=Vr(),n.run(()=>t.length?t(()=>{n?.stop(),o()}):t())}q(e,i=>{i&&!n?o():i||(n?.stop(),n=void 0)},{immediate:!0}),_e(()=>{n?.stop()})}function Se(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const r=we("useProxiedModel"),s=D(e[t]!==void 0?e[t]:n),a=qt(t),c=a!==t?O(()=>(e[t],!!((r.vnode.props?.hasOwnProperty(t)||r.vnode.props?.hasOwnProperty(a))&&(r.vnode.props?.hasOwnProperty(`onUpdate:${t}`)||r.vnode.props?.hasOwnProperty(`onUpdate:${a}`))))):O(()=>(e[t],!!(r.vnode.props?.hasOwnProperty(t)&&r.vnode.props?.hasOwnProperty(`onUpdate:${t}`))));Jt(()=>!c.value,()=>{q(()=>e[t],d=>{s.value=d})});const u=O({get(){const d=e[t];return o(c.value?d:s.value)},set(d){const h=i(d),p=ve(c.value?e[t]:s.value);p===h||o(p)===d||(s.value=h,r?.emit(`update:${t}`,h))}});return Object.defineProperty(u,"externalValue",{get:()=>c.value?e[t]:s.value}),u}const Hp={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"}
2,dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",previousYear:"Previous year",nextYear:"Next year",selectMonth:"Select month",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time",hour:"Hour",minute:"Minute",second:"Second"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}",or:"or"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},nc="$vuetify.",oc=(e,t)=>e.replace(/\{(\d+)\}/g,(n,o)=>String(t[Number(o)])),gu=(e,t,n)=>function(o){for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];if(!o.startsWith(nc))return oc(o,r);const a=o.replace(nc,""),l=e.value&&n.value[e.value],c=t.value&&n.value[t.value];let u=cr(l,a,null);return u||(`${o}${e.value}`,u=cr(c,a,null)),u||(u=o),typeof u!="string"&&(u=o),oc(u,r)};function Jr(e,t){return(n,o)=>new Intl.NumberFormat([e.value,t.value],o).format(n)}function vu(e,t){return Jr(e,t)(.1).includes(",")?",":"."}function Hi(e,t,n){const o=Se(e,t,e[t]??n.value);return o.value=e[t]??n.value,q(n,i=>{e[t]==null&&(o.value=n.value)}),o}function bu(e){return t=>{const n=Hi(t,"locale",e.current),o=Hi(t,"fallback",e.fallback),i=Hi(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:o,messages:i,decimalSeparator:I(()=>vu(n,o)),t:gu(n,o,i),n:Jr(n,o),provide:bu({current:n,fallback:o,messages:i})}}}function Up(e){const t=X(e?.locale??"en"),n=X(e?.fallback??"en"),o=D({en:Hp,...e?.messages});return{name:"vuetify",current:t,fallback:n,messages:o,decimalSeparator:I(()=>e?.decimalSeparator??vu(t,n)),t:gu(t,n,o),n:Jr(t,n),provide:bu({current:t,fallback:n,messages:o})}}const Do=Symbol.for("vuetify:locale");function zp(e){return e.name!=null}function LC(e){const t=e?.adapter&&zp(e?.adapter)?e?.adapter:Up(e),n=Gp(t,e);return{...t,...n}}function Wp(){const e=ye(Do);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function NC(e){const t=ye(Do);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");const n=t.provide(e),o=Kp(n,t.rtl,e),i={...n,...o};return Ve(Do,i),i}function qp(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function Gp(e,t){const n=D(t?.rtl??qp()),o=O(()=>n.value[e.current.value]??!1);return{isRtl:o,rtl:n,rtlClasses:I(()=>`v-locale--is-${o.value?"rtl":"ltr"}`)}}
vendor: 6,707 bytes, lines 2-5
2function Kp(e,t,n){const o=O(()=>n.rtl??t.value[e.current.value]??!1);return{isRtl:o,rtl:t,rtlClasses:I(()=>`v-locale--is-${o.value?"rtl":"ltr"}`)}}function oo(){const e=ye(Do);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const ri=["sm","md","lg","xl","xxl"],Yp=Symbol.for("vuetify:display"),ic={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},Xp=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ic;return pt(ic,e)};function rc(e){return ue&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function sc(e){return ue&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function ac(e){const t=ue&&!e?window.navigator.userAgent:"ssr";function n(m){return!!t.match(m)}const o=n(/android/i),i=n(/iphone|ipad|ipod/i),r=n(/cordova/i),s=n(/electron/i),a=n(/chrome/i),l=n(/edge/i),c=n(/firefox/i),u=n(/opera/i),d=n(/win/i),h=n(/mac/i),p=n(/linux/i);return{android:o,ios:i,cordova:r,electron:s,chrome:a,edge:l,firefox:c,opera:u,win:d,mac:h,linux:p,touch:Kf,ssr:t==="ssr"}}function jC(e,t){const{thresholds:n,mobileBreakpoint:o}=Xp(e),i=X(sc(t)),r=X(ac(t)),s=Kt({}),a=X(rc(t));function l(){i.value=sc(),a.value=rc()}function c(){l(),r.value=ac()}return qe(()=>{const u=a.value<n.sm,d=a.value<n.md&&!u,h=a.value<n.lg&&!(d||u),p=a.value<n.xl&&!(h||d||u),m=a.value<n.xxl&&!(p||h||d||u),f=a.value>=n.xxl,b=u?"xs":d?"sm":h?"md":p?"lg":m?"xl":"xxl",v=typeof o=="number"?o:n[o],y=a.value<v;s.xs=u,s.sm=d,s.md=h,s.lg=p,s.xl=m,s.xxl=f,s.smAndUp=!u,s.mdAndUp=!(u||d),s.lgAndUp=!(u||d||h),s.xlAndUp=!(u||d||h||p),s.smAndDown=!(h||p||m||f),s.mdAndDown=!(p||m||f),s.lgAndDown=!(m||f),s.xlAndDown=!f,s.name=b,s.height=i.value,s.width=a.value,s.mobile=y,s.mobileBreakpoint=o,s.platform=r.value,s.thresholds=n}),ue&&(window.addEventListener("resize",l,{passive:!0}),_e(()=>{window.removeEventListener("resize",l)},!0)),{...Yc(s),update:c,ssr:!!t}}const $C=$({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function yu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at();const n=ye(Yp);if(!n)throw new Error("Could not find Vuetify display injection");const o=O(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.value<e.mobileBreakpoint:e.mobileBreakpoint?n.width.value<n.thresholds.value[e.mobileBreakpoint]:e.mobile===null?n.mobile.value:!1),i=I(()=>t?{[`${t}--mobile`]:o.value}:{});return{...n,displayClasses:i,mobile:o}}const gr=Symbol.for("vuetify:theme"),Ae=$({theme:String},"theme");function lc(){return{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0}}function Zp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lc();const t=lc();if(!e)return{...t,isDisabled:!0};const n={};for(const[o,i]of Object.entries(e.themes??{})){const r=i.dark||o==="dark"?t.themes?.dark:t.themes?.light;n[o]=pt(r,i)}return pt(t,{...e,themes:n})}function Ht(e,t,n,o){e.push(`${tm(t,o)} { 3`,...n.map(i=>` ${i}; 4`),`} 5`)}function cc(e,t){const n=e.dark?2:1,o=e.dark?1:2,i=[];for(const[r,s]of Object.entries(e.colors)){const a=ot(s);i.push(`--${t}theme-${r}: ${a.r},${a.g},${a.b}`),r.startsWith("on-")||i.push(`--${t}theme-${r}-overlay-multiplier: ${mr(s)>.18?n:o}`)}for(const[r,s]of Object.entries(e.variables)){const a=typeof s=="string"&&s.startsWith("#")?ot(s):void 0,l=a?`${a.r}, ${a.g}, ${a.b}`:void 0;i.push(`--${t}${r}: ${l??s}`)}return i}function Jp(e,t,n){const o={};if(n)for(const i of["lighten","darken"]){const r=i==="lighten"?Bp:Op;for(const s of Xf(n[i],1))o[`${e}-${i}-${s}`]=du(r(ot(t),s))}return o}function Qp(e,t){if(!t)return{};let n={};for(const o of t.colors){const i=e[o];i&&(n={...n,...Jp(o,i,t)})}return n}function em(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const o=`on-${n}`,i=ot(e[n]);t[o]=fu(i)}return t}function tm(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function nm(e,t,n){const o=om(e,t);o&&(o.innerHTML=n)}function om(e,t){if(!ue)return null;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n)),n}function RC(e){const t=Zp(e),n=X(t.defaultTheme),o=D(t.themes),i=X("light"),r=O({get(){return n.value==="system"?i.value:n.value},set(v){n.value=v}}),s=O(()=>{const v={};for(const[y,k]of Object.entries(o.value)){const w={...k.colors,...Qp(k.colors,t.variations)};v[y]={...k,colors:{...w,...em(w)}}}return v}),a=I(()=>s.value[r.value]),l=I(()=>n.value==="system"),c=O(()=>{const v=[],y=t.unimportant?"":" !important",k=t.scoped?t.prefix:"";a.value?.dark&&Ht(v,":root",["color-scheme: dark"],t.scope),Ht(v,":root",cc(a.value,t.prefix),t.scope);for(const[x,E]of Object.entries(s.value))Ht(v,`.${t.prefix}theme--${x}`,[`color-scheme: ${E.dark?"dark":"normal"}`,...cc(E,t.prefix)],t.scope);if(t.utilities){const x=[],E=[],T=new Set(Object.values(s.value).flatMap(g=>Object.keys(g.colors)));for(const g of T)g.startsWith("on-")?Ht(E,`.${g}`,[`color: rgb(var(--${t.prefix}theme-${g}))${y}
5`],t.scope):(Ht(x,`.${k}bg-${g}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${g}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${g}))${y}`,`color: rgb(var(--${t.prefix}theme-on-${g}))${y}`],t.scope),Ht(E,`.${k}text-${g}`,[`color: rgb(var(--${t.prefix}theme-${g}))${y}`],t.scope),Ht(E,`.${k}border-${g}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${g})`],t.scope));t.layers?v.push(`@layer background { 6`,...x.map(g=>` ${g}`),`} 7`,`@layer foreground { 8`,...E.map(g=>` ${g}`),`} 9`):v.push(...x,...E)}let w=v.map((x,E)=>E===0?x:` ${x}`).join("");return t.layers&&(w=`@layer vuetify.theme { 10`+v.map(x=>` ${x}`).join("")+` 11}`),w}),u=I(()=>t.isDisabled?void 0:`${t.prefix}theme--${r.value}`),d=I(()=>Object.keys(s.value));if(Wr){let y=function(){i.value=v.matches?"dark":"light"};const v=window.matchMedia("(prefers-color-scheme: dark)");y(),v.addEventListener("change",y,{passive:!0}),Ff()&&_e(()=>{v.removeEventListener("change",y)})}function h(v){if(t.isDisabled)return;const y=v._context.provides.usehead;if(y){let k=function(){return{style:[{textContent:c.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};if(y.push){const w=y.push(k);ue&&q(c,()=>{w.patch(k)})}else ue?(y.addHeadObjs(I(k)),qe(()=>y.updateDOM())):y.addHeadObjs(k())}else{let k=function(){nm(t.stylesheetId,t.cspNonce,c.value)};ue?q(c,k,{immediate:!0}):k()}}function p(v){v!=="system"&&!d.value.includes(v)||(r.value=v)}function m(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.value;const y=v.indexOf(r.value),k=y===-1?0:(y+1)%v.length;p(v[k])}function f(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["light","dark"];m(v)}const b=new Proxy(r,{get(v,y){return Reflect.get(v,y)},set(v,y,k){return y==="value"&&Xc(`theme.global.name.value = ${k}`,`theme.change('${k}')`),Reflect.set(v,y,k)}});return{install:h,change:p,cycle:m,toggle:f,isDisabled:t.isDisabled,isSystem:l,name:r,themes:o,current:a,computedThemes:s,prefix:t.prefix,themeClasses:u,styles:c,global:{name:b,current:a}}}function Ke(e){we("provideTheme");const t=ye(gr,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=I(()=>e.theme??t.name.value),o=I(()=>t.themes.value[n.value]),i=I(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`),r={...t,name:n,current:o,themeClasses:i};return Ve(gr,r),r}function im(){we("useTheme");const e=ye(gr,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function ku(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=hr(),o=D();if(ue){const i=new ResizeObserver(r=>{e?.(r,i),r.length&&(t==="content"?o.value=r[0].contentRect:o.value=r[0].target.getBoundingClientRect())});bt(()=>{i.disconnect()}),q(()=>n.el,(r,s)=>{s&&(i.unobserve(s),o.value=void 0),r&&i.observe(r)},{flush:"post"})}return{resizeRef:n,contentRect:Hr(o)}}const In=$({border:[Boolean,Number,String]},"border");function Pn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at();return{borderClasses:O(()=>{const o=e.border;return o===!0||o===""?`${t}--border`:typeof o=="string"||o===0?String(o).split(" ").map(i=>`border-${i}`):[]})}}const rm=[null,"default","comfortable","compact"],yt=$({density:{type:String,default:"default",validator:e=>rm.includes(e)}},"density");function Rt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at();return{densityClasses:I(()=>`${t}--density-${e.density}`)}}const io=$({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function ro(e){return{elevationClasses:I(()=>{const n=Ao(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const kt=$({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function wt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at();
11return{roundedClasses:O(()=>{const o=Ao(e)?e.value:e.rounded,i=Ao(e)?!1:e.tile,r=[];if(i||o===!1)r.push("rounded-0");else if(o===!0||o==="")r.push(`${t}--rounded`);else if(typeof o=="string"||o===0)for(const s of String(o).split(" "))r.push(`rounded-${s}`);return r})}}const xe=$({tag:{type:[String,Object,Function],default:"div"}},"tag");function Qr(e){return qr(()=>{const{class:t,style:n}=sm(e);return{colorClasses:t,colorStyles:n}})}function gt(e){const{colorClasses:t,colorStyles:n}=Qr(()=>({text:Ce(e)}));return{textColorClasses:t,textColorStyles:n}}function Mt(e){const{colorClasses:t,colorStyles:n}=Qr(()=>({background:Ce(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function sm(e){const t=Ce(e),n=[],o={};if(t.background)if(pr(t.background)){if(o.backgroundColor=t.background,!t.text&&Cp(t.background)){const i=ot(t.background);if(i.a==null||i.a===1){const r=fu(i);o.color=r,o.caretColor=r}}}else n.push(`bg-${t.background}`);return t.text&&(pr(t.text)?(o.color=t.text,o.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:o}}const am=["elevated","flat","tonal","outlined","text","plain"];function si(e,t){return _(fe,null,[e&&_("span",{key:"overlay",class:Y(`${t}__overlay`)},null),_("span",{key:"underlay",class:Y(`${t}__underlay`)},null)])}const Mn=$({color:String,variant:{type:String,default:"elevated",validator:e=>am.includes(e)}},"variant");function ai(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at();const n=I(()=>{const{variant:r}=Ce(e);return`${t}--variant-${r}`}),{colorClasses:o,colorStyles:i}=Qr(()=>{const{variant:r,color:s}=Ce(e);return{[["elevated","flat"].includes(r)?"background":"text"]:s}});return{colorClasses:o,colorStyles:i,variantClasses:n}}const wu=$({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...In(),...ie(),...yt(),...io(),...kt(),...xe(),...Ae(),...Mn()},"VBtnGroup"),uc=Z()({name:"VBtnGroup",props:wu(),setup(e,t){let{slots:n}=t;const{themeClasses:o}=Ke(e),{densityClasses:i}=Rt(e),{borderClasses:r}=Pn(e),{elevationClasses:s}
11=ro(e),{roundedClasses:a}=wt(e);to({VBtn:{height:I(()=>e.direction==="horizontal"?"auto":null),baseColor:I(()=>e.baseColor),color:I(()=>e.color),density:I(()=>e.density),flat:!0,variant:I(()=>e.variant)}}),ne(()=>S(e.tag,{class:Y(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},o.value,r.value,i.value,s.value,a.value,e.class]),style:te(e.style)},n))}}),lm=$({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),cm=$({value:null,disabled:Boolean,selectedClass:String},"group-item");function um(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const o=we("useGroupItem");if(!o)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=$t();Ve(Symbol.for(`${t.description}:id`),i);const r=ye(t,null);if(!r){if(!n)return r;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const s=I(()=>e.value),a=O(()=>!!(r.disabled.value||e.disabled));function l(){r?.register({id:i,value:s,disabled:a},o)}function c(){r?.unregister(i)}l(),bt(()=>c());const u=O(()=>r.isSelected(i)),d=O(()=>r.items.value[0].id===i),h=O(()=>r.items.value[r.items.value.length-1].id===i),p=O(()=>u.value&&[r.selectedClass.value,e.selectedClass]);return q(u,m=>{o.emit("group:selected",{value:m})},{flush:"sync"}),{id:i,isSelected:u,isFirst:d,isLast:h,toggle:()=>r.select(i,!u.value),select:m=>r.select(i,m),selectedClass:p,value:s,disabled:a,group:r,register:l,unregister:c}}function dm(e,t){let n=!1;const o=Kt([]),i=Se(e,"modelValue",[],h=>h===void 0?[]:xu(o,h===null?[null]:rt(h)),h=>{const p=fm(o,h);return e.multiple?p:p[0]}),r=we("useGroup");function s(h,p){const m=h,f=Symbol.for(`${t.description}:id`),v=Vn(f,r?.vnode).indexOf(p);R(m.value)===void 0&&(m.value=v,m.useIndexAsValue=!0),v>-1?o.splice(v,0,m):o.push(m)}function a(h){if(n)return;l();const p=o.findIndex(m=>m.id===h);o.splice(p,1)}function l(){const h=o.find(p=>!p.disabled);h&&e.mandatory==="force"&&!i.value.length&&(i.value=[h.id])}Bn(()=>
11{l()}),bt(()=>{n=!0}),Vf(()=>{for(let h=0;h<o.length;h++)o[h].useIndexAsValue&&(o[h].value=h)});function c(h,p){const m=o.find(f=>f.id===h);if(!(p&&m?.disabled))if(e.multiple){const f=i.value.slice(),b=f.findIndex(y=>y===h),v=~b;if(p=p??!v,v&&e.mandatory&&f.length<=1||!v&&e.max!=null&&f.length+1>e.max)return;b<0&&p?f.push(h):b>=0&&!p&&f.splice(b,1),i.value=f}else{const f=i.value.includes(h);if(e.mandatory&&f||!f&&!p)return;i.value=p??!f?[h]:[]}}function u(h){if(e.multiple,i.value.length){const p=i.value[0],m=o.findIndex(v=>v.id===p);let f=(m+h)%o.length,b=o[f];for(;b.disabled&&f!==m;)f=(f+h)%o.length,b=o[f];if(b.disabled)return;i.value=[o[f].id]}else{const p=o.find(m=>!m.disabled);p&&(i.value=[p.id])}}const d={register:s,unregister:a,selected:i,select:c,disabled:I(()=>e.disabled),prev:()=>u(o.length-1),next:()=>u(1),isSelected:h=>i.value.includes(h),selectedClass:I(()=>e.selectedClass),items:I(()=>o),getItemIndex:h=>hm(o,h)};return Ve(t,d),d}function hm(e,t){const n=xu(e,[t]);return n.length?e.findIndex(o=>o.id===n[0]):-1}function xu(e,t){const n=[];return t.forEach(o=>{const i=e.find(s=>Pt(o,s.value)),r=e[o];i?.value!==void 0?n.push(i.id):r?.useIndexAsValue&&n.push(r.id)}),n}function fm(e,t){const n=[];return t.forEach(o=>{const i=e.findIndex(r=>
11r.id===o);if(~i){const r=e[i];n.push(r.value!==void 0?r.value:i)}}),n}const Cu=Symbol.for("vuetify:v-btn-toggle"),pm=$({...wu(),...lm()},"VBtnToggle"),DC=Z()({name:"VBtnToggle",props:pm(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:o,next:i,prev:r,select:s,selected:a}=dm(e,Cu);return ne(()=>{const l=uc.filterProps(e);return S(uc,Q({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>[n.default?.({isSelected:o,next:i,prev:r,select:s,selected:a})]})}),{next:i,prev:r,select:s}}}),mm=$({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),De=Z(!1)({name:"VDefaultsProvider",props:mm(),setup(e,t){let{slots:n}=t;const{defaults:o,disabled:i,reset:r,root:s,scoped:a}=Yc(e);return to(o,{reset:r,root:s,scoped:a,disabled:i}),()=>n.default?.()}}),gm=["x-small","small","default","large","x-large"],li=$({size:{type:[String,Number],default:"default"}},"size");function ci(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at();return qr(()=>{const n=e.size;let o,i;return Lo(gm,n)?o=`${t}--size-${n}`:n&&(i={width:z(n),height:z(n)}),{sizeClasses:o,sizeStyles:i}})}const vm=$({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:ce,opacity:[String,Number],...ie(),...li(),...xe({tag:"i"}),...Ae()},"VIcon"),Je=Z()({name:"VIcon",props:vm(),setup(e,t){let{attrs:n,slots:o}=t;const i=X(),{themeClasses:r}=im(),{iconData:s}=Vp(()=>i.value||e.icon),{sizeClasses:a}=ci(e),{textColorClasses:l,textColorStyles:c}=gt(()=>e.color);return ne(()=>{const u=o.default?.();u&&(i.value=tu(u).filter(h=>h.type===Hf&&h.children&&typeof h.children=="string")[0]?.children);const d=!!(n.onClick||n.onClickOnce);return S(s.value.component,{tag:e.tag,icon:s.value.icon,class:Y(["v-icon","notranslate",r.value,a.value,l.value,{"v-icon--clickable":d,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:te([{"--v-icon-opacity":e.opacity},a.value?void 0:{fontSize:z(e.size),height:z(e.size),width:z(e.size)},c.value,e.style]),role:d?"button":void 0,"aria-hidden":!d,tabindex:d?e.disabled?-1:0:void 0},{default:()=>[u]})}),{}}});function Su(e,t){const n=D(),o=X(!1);if(zr){const i=new IntersectionObserver(r=>{o.value=!!r.find(s=>s.isIntersecting)},t);_e(()=>{i.disconnect()}),q(n,(r,s)=>{s&&(i.unobserve(s),o.value=!1),r&&i.observe(r)},{flush:"post"})}return{intersectionRef:n,isIntersecting:o}}const bm=$({bgColor:String,color:String,indeterminate:[Boolean,String],rounded:Boolean,modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ie(),...li(),...xe({tag:"div"}),...Ae()},"VProgressCircular"),Eu=Z()({name:"VProgressCircular",props:bm(),setup(e,t){let{slots:n}=t;const o=20,i=2*Math.PI*o,r=D(),{themeClasses:s}=Ke(e),{sizeClasses:a,sizeStyles:l}=ci(e),{textColorClasses:c,textColorStyles:u}=gt(()=>e.color),{textColorClasses:d,textColorStyles:h}=gt(()=>e.bgColor),{intersectionRef:p,isIntersecting:m}=Su(),{resizeRef:f,contentRect:b}=ku(),v=I(()=>At(parseFloat(e.modelValue),0,100)),y=I(()=>Number(e.width)),k=I(()=>l.value?Number(e.size):b.value?b.value.width:Math.max(y.value,32)),w=I(()=>o/(1-y.value/k.value)*2),x=I(()=>y.value/k.value*w.value),E=I(()=>{const g=(100-v.value)/100*i;return e.rounded&&v.value>0&&v.value<100?z(Math.min(i-.01,g+x.value)):z(g)}),T=O(()=>{const g=Number(e.rotate);return e.rounded?g+x.value/2/i*360:g});return qe(()=>{p.value=r.value,f.value=r.value}),ne(()=>S(e.tag,{ref:r,class:Y(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":m.value,"v-progress-circular--disable-shrink":e.indeterminate&&(e.indeterminate==="disable-shrink"||Gn())},s.value,a.value,c.value,e.class]),style:te([l.value,u.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:v.value},{default:()=>[_("svg",{style:{transform:`rotate(calc(-90deg + ${T.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${w.value} ${w.value}`},[_("circle",{class:Y(["v-progress-circular__underlay",d.value]),style:te(h.value),fill:"transparent",cx:"50%",cy:"50%",r:o,"stroke-width":x.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),_("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:o,"stroke-width":x.value,"stroke-dasharray":i,"stroke-dashoffset":E.value,"stroke-linecap":e.rounded?"round":void 0},null)]),n.default&&_("div",{class:"v-progress-circular__content"},[n.default({value:v.value})])]})),{}}}),tn=$({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function nn(e){return{dimensionStyles:O(()=>{const n={},o=z(e.height),i=z(e.maxHeight),r=z(e.maxWidth),s=z(e.minHeight),a=z(e.minWidth),l=z(e.width);
11return o!=null&&(n.height=o),i!=null&&(n.maxHeight=i),r!=null&&(n.maxWidth=r),s!=null&&(n.minHeight=s),a!=null&&(n.minWidth=a),l!=null&&(n.width=l),n})}}const dc={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},es=$({location:String},"location");function ts(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:o}=oo();return{locationStyles:O(()=>{if(!e.location)return{};const{side:r,align:s}=fr(e.location.split(" ").length>1?e.location:`${e.location} center`,o.value);function a(c){return n?n(c):0}const l={};return r!=="center"&&(t?l[dc[r]]=`calc(100% - ${a(r)}px)`:l[r]=0),s!=="center"?t?l[dc[s]]=`calc(100% - ${a(s)}px)`:l[s]=0:(r==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[r]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[r]),l})}}const ym=$({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function km(e,t){const n=I(()=>!!e.chunkCount||!!e.chunkWidth),o=O(()=>{const a=Ce(t);if(!a)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const l=Number(e.chunkCount);return(a-Number(e.chunkGap)*(l-1))/l}),i=I(()=>Number(e.chunkGap)),r=O(()=>{if(!n.value)return{};const a=z(i.value),l=z(o.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${l}, transparent ${l}, transparent)`,maskSize:`calc(${l} + ${a}) 100%`}});function s(a){const l=Ce(t);if(!l)return a;const c=100*i.value/l,u=100*(o.value+i.value)/l,d=Math.floor((a+c)/u);return At(0,d*u-c/2,100)}return{hasChunks:n,chunksMaskStyles:r,snapValueToChunk:s}}const wm=$({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ym(),...ie(),...es({location:"top"}),...kt(),...xe(),...Ae()},"VProgressLinear"),xm=Z()({name:"VProgressLinear",props:wm(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const o=D(),i=Se(e,"modelValue"),{isRtl:r,rtlClasses:s}=oo(),{themeClasses:a}=Ke(e),{locationStyles:l}=ts(e),{textColorClasses:c,textColorStyles:u}=gt(()=>e.color),{backgroundColorClasses:d,backgroundColorStyles:h}=Mt(()=>e.bgColor||e.color),{backgroundColorClasses:p,backgroundColorStyles:m}=Mt(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:f,backgroundColorStyles:b}=Mt(()=>
11e.color),{roundedClasses:v}=wt(e),{intersectionRef:y,isIntersecting:k}=Su(),w=O(()=>parseFloat(e.max)),x=O(()=>parseFloat(e.height)),E=O(()=>At(parseFloat(e.bufferValue)/w.value*100,0,100)),T=O(()=>At(parseFloat(i.value)/w.value*100,0,100)),g=O(()=>r.value!==e.reverse),C=O(()=>e.indeterminate?"fade-transition":"slide-x-transition"),P=X(0),{hasChunks:N,chunksMaskStyles:j,snapValueToChunk:L}=km(e,P);Jt(N,()=>{const{resizeRef:H}=ku(W=>P.value=W[0].contentRect.width);qe(()=>H.value=o.value)});const A=O(()=>N.value?L(E.value):E.value),M=O(()=>N.value?L(T.value):T.value);function F(H){if(!y.value)return;const{left:W,right:oe,width:J}=y.value.getBoundingClientRect(),re=g.value?J-H.clientX+(oe-J):H.clientX-W;i.value=Math.round(re/J*w.value)}return qe(()=>{y.value=o.value}),ne(()=>S(e.tag,{ref:o,class:Y(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&k.value,"v-progress-linear--reverse":g.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},v.value,a.value,s.value,e.class]),style:te([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?z(x.value):0,"--v-progress-linear-height":z(x.value),...e.absolute?l.value:{}},j.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(i.value),w.value),onClick:e.clickable&&F},{default:()=>[e.stream&&_("div",{key:"stream",class:Y(["v-progress-linear__stream",c.value]),style:{...u.value,[g.value?"left":"right"]:z(-x.value),borderTop:`${z(x.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${z(x.value/4)})`,width:z(100-E.value,"%"),"--v-progress-linear-stream-to":z(x.value*(g.value?1:-1))}},null),_("div",{class:Y(["v-progress-linear__background",d.value]),style:te([h.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),_("div",{class:Y(["v-progress-linear__buffer",p.value]),style:te([m.value,{opacity:parseFloat(e.bufferOpacity),width:z(A.value,"%")}])},null),S(Yt,{name:C.value},{default:()=>[e.indeterminate?_("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(H=>_("div",{key:H,class:Y(["v-progress-linear__indeterminate",H,f.value]),style:te(b.value)},null))]):_("div",{class:Y(["v-progress-linear__determinate",f.value]),style:te([b.value,{width:z(M.value,"%")}])},null)]}),n.default&&_("div",{class:"v-progress-linear__content"},[n.default({value:T.value,buffer:E.value})])]})),{}}}),ns=$({loading:[Boolean,String]},"loader");function ui(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at();return{loaderClasses:I(()=>({[`${t}--loading`]:e.loading}))}}function os(e,t){let{slots:n}=t;return _("div",{class:Y(`${e.name}__loader`)},[n.default?.({color:e.color,isActive:e.active})||S(xm,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const Cm=["static","relative","fixed","absolute","sticky"],Tu=$({position:{type:String,validator:e=>Cm.includes(e)}},"position");function _u(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at();return{positionClasses:I(()=>e.position?`${t}--${e.position}`:void 0)}}function Sm(){const e=we("useRoute");return O(()=>e?.proxy?.$route)}function Em(){return we("useRouter")?.proxy?.$router}function is(e,t){const n=Uf("RouterLink"),o=I(()=>!!(e.href||e.to)),i=O(()=>o?.value||$l(t,"click")||$l(e,"click"));if(typeof n=="string"||!("useLink"in n)){const d=I(()=>e.href);return{isLink:o,isRouterLink:I(()=>!1),isClickable:i,href:d,linkProps:Kt({href:d})}}const r=n.useLink({to:I(()=>e.to||""),replace:I(()=>e.replace)}),s=O(()=>e.to?r:void 0),a=Sm(),l=O(()=>s.value?e.exact?a.value?s.value.isExactActive?.value&&Pt(s.value.route.value.query,a.value.query):s.value.isExactActive?.value??!1:s.value.isActive?.value??!1:!1),c=O(()=>e.to?s.value?.route.value.href:e.href),u=I(()=>!!e.to);return{isLink:o,isRouterLink:u,isClickable:i,isActive:l,route:s.value?.route,navigate:s.value?.navigate,href:c,linkProps:Kt({href:c,"aria-current":I(()=>l.value?"page":void 0),"aria-disabled":I(()=>e.disabled&&o.value?"true":void 0),tabindex:I(()=>e.disabled&&o.value?"-1":void 0)})}}const rs=$({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Ui=!1;function Tm(e,t){let n=!1,o,i;ue&&e?.beforeEach&&(me(()=>{window.addEventListener("popstate",r),o=e.beforeEach((s,a,l)=>{Ui?n?t(l):l():setTimeout(()=>n?t(l):l()),Ui=!0}),i=e?.afterEach(()=>{Ui=!1})}),_e(()=>{window.removeEventListener("popstate",r),o?.(),i?.()}));function r(s){s.state?.replaced||(n=!0,setTimeout(()=>n=!1))}}function _m(e,t){q(()=>e.isActive?.value,n=>{e.isLink.value&&n!=null&&t&&me(()=>{t(n)})},{immediate:!0})}const vr=Symbol("rippleStop"),Bm=80;function hc(e,t){e.style.transform=t,e.style.webkitTransform=t}function br(e){return e.constructor.name==="TouchEvent"}function Bu(e){return e.constructor.name==="KeyboardEvent"}const Om=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=0,i=0;if(!Bu(e)){const d=t.getBoundingClientRect(),h=br(e)?e.touches[e.touches.length-1]:e;o=h.clientX-d.left,i=h.clientY-d.top}let r=0,s=.3;t._ripple?.circle?(s=.15,r=t.clientWidth/2,r=n.center?r:r+Math.sqrt((o-r)**2+(i-r)**2)/4):r=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-r*2)/2}
11px`,l=`${(t.clientHeight-r*2)/2}px`,c=n.center?a:`${o-r}px`,u=n.center?l:`${i-r}px`;return{radius:r,scale:s,x:c,y:u,centerX:a,centerY:l}},Fo={show(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t?._ripple?.enabled)return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className="v-ripple__container",n.class&&(o.className+=` ${n.class}`);const{radius:r,scale:s,x:a,y:l,centerX:c,centerY:u}=Om(e,t,n),d=`${r*2}px`;i.className="v-ripple__animation",i.style.width=d,i.style.height=d,t.appendChild(o);const h=window.getComputedStyle(t);h&&h.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),hc(i,`translate(${a}, ${l}) scale3d(${s},${s},${s})`),i.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),hc(i,`translate(${c}, ${u}) scale3d(1,1,1)`)})})},hide(e){if(!e?._ripple?.enabled)return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=Array.from(t).findLast(r=>!r.dataset.isHiding);if(n)n.dataset.isHiding="true";else return;const o=performance.now()-Number(n.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)},300)},i)}};function Ou(e){return typeof e>"u"||!!e}function Kn(e){const t={},n=e.currentTarget;if(!(!n?._ripple||n._ripple.touched||e[vr])){if(e[vr]=!0,br(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||Bu(e),n._ripple.class&&(t.class=n._ripple.class),br(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Fo.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n?._ripple?.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},Bm)}else Fo.show(e,n,t)}}function Vo(e){e[vr]=!0}function $e(e){const t=e.currentTarget;if(t?._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{$e(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Fo.hide(t)}}function Iu(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Yn=!1;function Im(e,t){!Yn&&t.includes(e.key)&&(Yn=!0,Kn(e))}function Pu(e){Yn=!1,$e(e)}function Mu(e){Yn&&(Yn=!1,$e(e))}function Au(e,t,n){const{value:o,modifiers:i}=t,r=Ou(o);r||Fo.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=r,e._ripple.centered=i.center,e._ripple.circle=i.circle;const s=ur(o)?o:{};s.class&&(e._ripple.class=s.class);const a=s.keys??["Enter","Space"];if(e._ripple.keyDownHandler=l=>
11Im(l,a),r&&!n){if(i.stop){e.addEventListener("touchstart",Vo,{passive:!0}),e.addEventListener("mousedown",Vo);return}e.addEventListener("touchstart",Kn,{passive:!0}),e.addEventListener("touchend",$e,{passive:!0}),e.addEventListener("touchmove",Iu,{passive:!0}),e.addEventListener("touchcancel",$e),e.addEventListener("mousedown",Kn),e.addEventListener("mouseup",$e),e.addEventListener("mouseleave",$e),e.addEventListener("keydown",e._ripple.keyDownHandler),e.addEventListener("keyup",Pu),e.addEventListener("blur",Mu),e.addEventListener("dragstart",$e,{passive:!0})}else!r&&n&&Lu(e)}function Lu(e){e.removeEventListener("touchstart",Vo),e.removeEventListener("mousedown",Vo),e.removeEventListener("touchstart",Kn),e.removeEventListener("touchend",$e),e.removeEventListener("touchmove",Iu),e.removeEventListener("touchcancel",$e),e.removeEventListener("mousedown",Kn),e.removeEventListener("mouseup",$e),e.removeEventListener("mouseleave",$e),e._ripple?.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",Pu),e.removeEventListener("blur",Mu),e.removeEventListener("dragstart",$e)}function Pm(e,t){Au(e,t,!1)}function Mm(e){Lu(e),delete e._ripple}function Am(e,t){if(t.value===t.oldValue)return;const n=Ou(t.oldValue);Au(e,t,n)}const Qt={mounted:Pm,unmounted:Mm,updated:Am},Lm=$({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:Cu},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:ce,appendIcon:ce,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...In(),...ie(),...yt(),...tn(),...io(),...cm(),...ns(),...es(),...Tu(),...kt(),...rs(),...li(),...xe({tag:"button"}),...Ae(),...Mn({variant:"elevated"})},"VBtn"),ut=Z()({name:"VBtn",props:Lm(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:o}=t;const{themeClasses:i}=Ke(e),{borderClasses:r}=Pn(e),{densityClasses:s}=Rt(e),{dimensionStyles:a}=nn(e),{elevationClasses:l}=ro(e),{loaderClasses:c}=ui(e),{locationStyles:u}=ts(e),{positionClasses:d}
11=_u(e),{roundedClasses:h}=wt(e),{sizeClasses:p,sizeStyles:m}=ci(e),f=um(e,e.symbol,!1),b=is(e,n),v=O(()=>e.active!==void 0?e.active:b.isRouterLink.value?b.isActive?.value:f?.isSelected.value),y=I(()=>v.value?e.activeColor??e.color:e.color),k=O(()=>({color:f?.isSelected.value&&(!b.isLink.value||b.isActive?.value)||!f||b.isActive?.value?y.value??e.baseColor:e.baseColor,variant:e.variant})),{colorClasses:w,colorStyles:x,variantClasses:E}=ai(k),T=O(()=>f?.disabled.value||e.disabled),g=I(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),C=O(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function P(N){T.value||b.isLink.value&&(N.metaKey||N.ctrlKey||N.shiftKey||N.button!==0||n.target==="_blank")||(b.isRouterLink.value?b.navigate?.(N):f?.toggle())}return _m(b,f?.select),ne(()=>{const N=b.isLink.value?"a":e.tag,j=!!(e.prependIcon||o.prepend),L=!!(e.appendIcon||o.append),A=!!(e.icon&&e.icon!==!0);return Fe(S(N,Q(b.linkProps,{type:N==="a"?void 0:"button",class:["v-btn",f?.selectedClass.value,{"v-btn--active":v.value,"v-btn--block":e.block,"v-btn--disabled":T.value,"v-btn--elevated":g.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},e.spaced?["v-btn--spaced",`v-btn--spaced-${e.spaced}`]:[],i.value,r.value,w.value,s.value,l.value,c.value,d.value,h.value,p.value,E.value,e.class],style:[x.value,a.value,u.value,m.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:T.value&&N!=="a"||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:P,value:C.value}),{default:()=>[si(!0,"v-btn"),!e.icon&&j&&_("span",{key:"prepend",class:"v-btn__prepend"},[o.prepend?S(De,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},o.prepend):S(Je,{key:"prepend-icon",icon:e.prependIcon},null)]),_("span",{class:"v-btn__content","data-no-activator":""}
11,[!o.default&&A?S(Je,{key:"content-icon",icon:e.icon},null):S(De,{key:"content-defaults",disabled:!A,defaults:{VIcon:{icon:e.icon}}},{default:()=>[o.default?.()??Ze(e.text)]})]),!e.icon&&L&&_("span",{key:"append",class:"v-btn__append"},[o.append?S(De,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},o.append):S(Je,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&_("span",{key:"loader",class:"v-btn__loader"},[o.loader?.()??S(Eu,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[Qt,!T.value&&e.ripple,"",{center:!!e.icon}]])}),{group:f}}}),Nm=$({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function He(e,t,n){return Z()({name:e,props:Nm({mode:n,origin:t}),setup(o,i){let{slots:r}=i;const s={onBeforeEnter(a){o.origin&&(a.style.transformOrigin=o.origin)},onLeave(a){if(o.leaveAbsolute){const{offsetTop:l,offsetLeft:c,offsetWidth:u,offsetHeight:d}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${l}px`,a.style.left=`${c}px`,a.style.width=`${u}px`,a.style.height=`${d}px`}o.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(o.leaveAbsolute&&a?._transitionInitialStyles){const{position:l,top:c,left:u,width:d,height:h}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=l||"",a.style.top=c||"",a.style.left=u||"",a.style.width=d||"",a.style.height=h||""}}};return()=>{const a=o.group?Ur:Yt;return _n(a,{name:o.disabled?"":e,css:!o.disabled,...o.group?void 0:{mode:o.mode},...o.disabled?{}:s},r.default)}}})}function Nu(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Z()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:Gn()},group:Boolean},setup(o,i){let{slots:r}=i;const s=o.group?Ur:Yt;return()=>_n(s,{name:o.disabled?"":e,css:!o.disabled,...o.disabled?{}:t},r.default)}})}function ju(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",o=Fr(`offset-${n}`);return{onBeforeEnter(s){s._parent=s.parentNode,s._initialStyle={transition:s.style.transition,overflow:s.style.overflow,[n]:s.style[n]}},onEnter(s){const a=s._initialStyle;if(!a)return;s.style.setProperty("transition","none","important"),s.style.overflow="hidden";const l=`${s[o]}px`;s.style[n]="0",s.offsetHeight,s.style.transition=a.transition,e&&s._parent&&s._parent.classList.add(e),requestAnimationFrame(()=>{s.style[n]=l})},onAfterEnter:r,onEnterCancelled:r,onLeave(s){s._initialStyle={transition:"",overflow:s.style.overflow,[n]:s.style[n]},s.style.overflow="hidden",s.style[n]=`${s[o]}px`,s.offsetHeight,requestAnimationFrame(()=>s.style[n]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(s){e&&s._parent&&s._parent.classList.remove(e),r(s)}function r(s){if(!s._initialStyle)return;const a=s._initialStyle[n];s.style.overflow=s._initialStyle.overflow,a!=null&&(s.style[n]=a),delete s._initialStyle}}const jm=$({target:[Object,Array]},"v-dialog-transition"),zi=new WeakMap,$m=Z()({name:"VDialogTransition",props:jm(),setup(e,t){let{slots:n}=t;const o={onBeforeEnter(i){i.style.pointerEvents="none",i.style.visibility="hidden"},async onEnter(i,r){await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),i.style.visibility="";const s=pc(e.target,i),{x:a,y:l,sx:c,sy:u,speed:d}=s;if(zi.set(i,s),Gn())Ot(i,[{opacity:0},{}],{duration:125*d,easing:Ql}).finished.then(()=>r());else{const h=Ot(i,[{transform:`translate(${a}px, ${l}px) scale(${c}, ${u})`,opacity:0},{}],{duration:225*d,easing:Ql});fc(i)?.forEach(p=>{Ot(p,[{opacity:0},{opacity:0,offset:.33},{}],{duration:450*d,easing:$o})}),h.finished.then(()=>r())}},onAfterEnter(i){i.style.removeProperty("pointer-events")},onBeforeLeave(i){i.style.pointerEvents="none"},async onLeave(i,r){await new Promise(h=>requestAnimationFrame(h));let s;!zi.has(i)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?s=pc(e.target,i
11):s=zi.get(i);const{x:a,y:l,sx:c,sy:u,speed:d}=s;Gn()?Ot(i,[{},{opacity:0}],{duration:85*d,easing:ec}).finished.then(()=>r()):(Ot(i,[{},{transform:`translate(${a}px, ${l}px) scale(${c}, ${u})`,opacity:0}],{duration:125*d,easing:ec}).finished.then(()=>r()),fc(i)?.forEach(p=>{Ot(p,[{},{opacity:0,offset:.2},{opacity:0}],{duration:250*d,easing:$o})}))},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>e.target?S(Yt,Q({name:"dialog-transition"},o,{css:!1}),n):S(Yt,{name:"dialog-transition"},n)}});function fc(e){const t=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")?.children;return t&&[...t]}function pc(e,t){const n=su(e),o=Kr(t),[i,r]=getComputedStyle(t).transformOrigin.split(" ").map(v=>parseFloat(v)),[s,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;s==="left"||a==="left"?l-=n.width/2:(s==="right"||a==="right")&&(l+=n.width/2);let c=n.top+n.height/2;s==="top"||a==="top"?c-=n.height/2:(s==="bottom"||a==="bottom")&&(c+=n.height/2);const u=n.width/o.width,d=n.height/o.height,h=Math.max(1,u,d),p=u/h||0,m=d/h||0,f=o.width*o.height/(window.innerWidth*window.innerHeight),b=f>.12?Math.min(1.5,(f-.12)*10+1):1;return{x:l-(i+o.left),y:c-(r+o.top),sx:p,sy:m,speed:b}}He("fab-transition","center center","out-in");He("dialog-bottom-transition");He("dialog-top-transition");const FC=He("fade-transition"),Rm=He("scale-transition");He("scroll-x-transition");He("scroll-x-reverse-transition");He("scroll-y-transition");He("scroll-y-reverse-transition");He("slide-x-transition");He("slide-x-reverse-transition");const $u=He("slide-y-transition");He("slide-y-reverse-transition");const Dm=Nu("expand-transition",ju()),Fm=Nu("expand-x-transition",ju("",!0)),Vm=$({text:String,onClick:We(),...ie(),...Ae()},"VLabel"),Ru=Z()({name:"VLabel",props:Vm(),setup(e,t){let{slots:n}=t;return ne(()=>_("label",{class:Y(["v-label",{"v-label--clickable":!!e.onClick},e.class]),style:te(e.style),onClick:e.onClick},[e.text,n.default?.()])),{}}}),di=$({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),It=(e,t)=>{let{slots:n}=t;const{transition:o,disabled:i,group:r,...s}=e,{component:a=r?Ur:Yt,...l}=ur(o)?o:{};let c;return ur(o)?c=Q(l,rp({disabled:i,group:r}),s):c=Q({name:i||!o?"":o},s),_n(a,c,n)},Hm=$({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...ie(),...di({transition:{component:$u}})},"VCounter"),Du=Z()({name:"VCounter",functional:!0,props:Hm(),setup(e,t){let{slots:n}=t;const o=I(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return ne(()=>S(It,{transition:e.transition},{default:()=>[Fe(_("div",{class:Y(["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class]),style:te(e.style)},[n.default?n.default({counter:o.value,max:e.max,value:e.value}):o.value]),[[eo,e.active]])]})),{}}}),Um=$({floating:Boolean,...ie()},"VFieldLabel"),po=Z()({name:"VFieldLabel",props:Um(),setup(e,t){let{slots:n}=t;return ne(()=>S(Ru,{class:Y(["v-field-label",{"v-field-label--floating":e.floating},e.class]),style:te(e.style)},n)),{}}});function Fu(e){const{t}=Wp();function n(o){let{name:i,color:r,...s}=o;const a={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[i],l=e[`onClick:${i}`];function c(d){d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.stopPropagation(),Gr(l,new PointerEvent("click",d)))}const u=l&&a?t(`$vuetify.input.${a}`,e.label??""):void 0;return S(Je,Q({icon:e[`${i}Icon`],"aria-label":u,onClick:l,onKeydown:c,color:r},s),null)}return{InputIcon:n}}const Vu=$({focused:Boolean,"onUpdate:focused":We()},"focus");function hi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at();const n=Se(e,"focused"),o=I(()=>({[`${t}--focused`]:n.value}));function i(){n.value=!0}function r(){n.value=!1}return{focusClasses:o,isFocused:n,focus:i,blur:r}}const zm=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],ss=$({appendInnerIcon:ce,bgColor:String,clearable:Boolean,clearIcon:{type:ce,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},glow:Boolean,error:Boolean,flat:Boolean,iconColor:[Boolean,String],label:String,persistentClear:Boolean,prependInnerIcon:ce,reverse:B
11oolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>zm.includes(e)},"onClick:clear":We(),"onClick:appendInner":We(),"onClick:prependInner":We(),...ie(),...ns(),...kt(),...Ae()},"VField"),Ho=Z()({name:"VField",inheritAttrs:!1,props:{id:String,details:Boolean,labelId:String,...Vu(),...ss()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:o,slots:i}=t;const{themeClasses:r}=Ke(e),{loaderClasses:s}=ui(e),{focusClasses:a,isFocused:l,focus:c,blur:u}=hi(e),{InputIcon:d}=Fu(e),{roundedClasses:h}=wt(e),{rtlClasses:p}=oo(),m=I(()=>e.dirty||e.active),f=I(()=>!!(e.label||i.label)),b=I(()=>!e.singleLine&&f.value),v=$t(),y=O(()=>e.id||`input-${v}`),k=I(()=>e.details?`${y.value}-messages`:void 0),w=D(),x=D(),E=D(),T=O(()=>["plain","underlined"].includes(e.variant)),g=O(()=>e.error||e.disabled?void 0:m.value&&l.value?e.color:e.baseColor),C=O(()=>{if(!(!e.iconColor||e.glow&&!l.value))return e.iconColor===!0?g.value:e.iconColor}),{backgroundColorClasses:P,backgroundColorStyles:N}=Mt(()=>e.bgColor),{textColorClasses:j,textColorStyles:L}=gt(g);q(m,F=>{if(b.value&&!Gn()){const H=w.value.$el,W=x.value.$el;requestAnimationFrame(()=>{const oe=Kr(H),J=W.getBoundingClientRect(),re=J.x-oe.x,be=J.y-oe.y-(oe.height/2-J.height/2),ke=J.width/.75,Be=Math.abs(ke-oe.width)>1?{maxWidth:z(ke)}:void 0,lt=getComputedStyle(H),Ye=getComputedStyle(W),V=parseFloat(lt.transitionDuration)*1e3||150,Le=parseFloat(Ye.getPropertyValue("--v-field-label-scale")),ln=Ye.getPropertyValue("color");H.style.visibility="visible",W.style.visibility="hidden",Ot(H,{transform:`translate(${re}px, ${be}px) scale(${Le})`,color:ln,...Be},{duration:V,easing:$o,direction:F?"normal":"reverse"}).finished.then(()=>{H.style.removeProperty("visibility"),W.style.removeProperty("visibility")})})}},{flush:"post"});const A=O(()=>({isActive:m,isFocused:l,controlRef:E,iconColor:C,blur:u,focus:c}));function M(F){F.target!==document.activeElement&&F.preventDefault()}return ne(()=>{const F=e.variant==="outlined",H=!!(i["prepend-inner"]||e.prependInnerIcon),W=!!(e.clearable||i.clear)&&!e.disabled,oe=!!(i["append-inner"]||e.appendInnerIcon||W),J=()=>i.label?i.label({...A.value,label:e.label,props:{for:y.value}}):e.label;return _("div",Q({class:["v-field",{"v-field--active":m.value,"v-field--appended":oe,"v-field--center-affix":e.centerAffix??!T.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":H,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!J(),[`v-field--variant-${e.variant}`]:!0},r.value,P.value,a.value,s.value,h.value,p.value,e.class],style:[N.value,e.style],onClick:M},n),[_("div",{class:"v-field__overlay"},null),S(os,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:i.loader}),H&&_("div",{key:"prepend",class:"v-field__prepend-inner"},[i["prepend-inner"]?i["prepend-inner"](A.value):e.prependInnerIcon&&S(d,{key:"prepend-icon",name:"prependInner",color:C.value},null)]),_("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&b.value&&S(po,{key:"floating-label",ref:x,class:Y([j.value]),floating:!0,for:y.value,"aria-hidden":!m.value,style:te(L.value)},{default:()=>[J()]}),f.value&&S(po,{key:"label",ref:w,id:e.labelId,for:y.value,"aria-hidden":b.value&&m.value},{default:()=>[J()]}),i.default?.({...A.value,props:{id:y.value,class:"v-field__input","aria-describedby":k.value},focus:c,blur:u})??_("div",{id:y.value,class:"v-field__input","aria-describedby":k.value},null)]),W&&S(Fm,{key:"clear"},{default:()=>[Fe(_("div",{class:"v-field__clearable",onMousedown:re=>{re.preventDefault(),re.stopPropagation()}},[S(De,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[i.clear?i.clear({...A.value,props:{onFocus:c,onBlur:u,onClick:e["onClick:clear"],tabindex:-1}}):S(d,{name:"clear",onFocus:c,onBlur:u,tabindex:-1},null)]})]),[[eo,e.dirty]])]}),oe&&_("div",{key:"append",class:"v-field__append-inner"},[i["append-inner"]?i["append-inner"](A.value):e.appendInnerIcon&&S(d,{key:"append-icon",name:"appendInner",color:C.value},null)]),_("div",{class:Y(["v-field__outline",j.value]),style:te(L.value)},[F&&_(fe,null,[_("div",{class:"v-field__outline__start"},null),b.value&&_("div",{class:"v-field__outline__notch"},[S(po,{ref:x,floating:!0,for:y.value,"aria-hidden":!m.value},{default:()=>[J()]})]),_("div",{class:"v-field__outline__end"},null)]),T.value&&b.value&&S(po,{ref:x,floating:!0,for:y.value,"aria-hidden":!m.value},{default:()=>[J()]})])])}),{controlRef:E,fieldIconColor:C}}}),Wm=$({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...ie(),...di({transition:{component:$u,leaveAbsolute:!0,group:!0}
11})},"VMessages"),qm=Z()({name:"VMessages",props:Wm(),setup(e,t){let{slots:n}=t;const o=O(()=>rt(e.messages)),{textColorClasses:i,textColorStyles:r}=gt(()=>e.color);return ne(()=>S(It,{transition:e.transition,tag:"div",class:Y(["v-messages",i.value,e.class]),style:te([r.value,e.style])},{default:()=>[e.active&&o.value.map((s,a)=>_("div",{class:"v-messages__message",key:`${a}-${o.value}`},[n.message?n.message({message:s}):s]))]})),{}}}),Hu=Symbol.for("vuetify:form"),VC=$({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function HC(e){const t=Se(e,"modelValue"),n=I(()=>e.disabled),o=I(()=>e.readonly),i=X(!1),r=D([]),s=D([]);async function a(){const u=[];let d=!0;s.value=[],i.value=!0;for(const h of r.value){const p=await h.validate();if(p.length>0&&(d=!1,u.push({id:h.id,errorMessages:p})),!d&&e.fastFail)break}return s.value=u,i.value=!1,{valid:d,errors:s.value}}function l(){r.value.forEach(u=>u.reset())}function c(){r.value.forEach(u=>u.resetValidation())}return q(r,()=>{let u=0,d=0;const h=[];for(const p of r.value)p.isValid===!1?(d++,h.push({id:p.id,errorMessages:p.errorMessages})):p.isValid===!0&&u++;s.value=h,t.value=d>0?!1:u===r.value.length?!0:null},{deep:!0,flush:"post"}),Ve(Hu,{register:u=>{let{id:d,vm:h,validate:p,reset:m,resetValidation:f}=u;r.value.some(b=>b.id===d),r.value.push({id:d,validate:p,reset:m,resetValidation:f,vm:zf(h),isValid:null,errorMessages:[]})},unregister:u=>{r.value=r.value.filter(d=>d.id!==u)},update:(u,d,h)=>{const p=r.value.find(m=>m.id===u);p&&(p.isValid=d,p.errorMessages=h)},isDisabled:n,isReadonly:o,isValidating:i,isValid:t,items:r,validateOn:I(()=>e.validateOn)}),{errors:s,isDisabled:n,isReadonly:o,isValidating:i,isValid:t,items:r,validate:a,reset:l,resetValidation:c}}function Gm(e){const t=ye(Hu,null);return{...t,isReadonly:O(()=>!!(e?.readonly??t?.isReadonly.value)),isDisabled:O(()=>!!(e?.disabled??t?.isDisabled.value))}}const Km=Symbol.for("vuetify:rules");function Ym(e){const t=ye(Km,null);if(!e){if(!t)throw new Error("Could not find Vuetify rules injection");return t.aliases}return t?.resolve(e)??I(e)}const Xm=$({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Vu()},"validation");function Zm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$t();const o=Se(e,"modelValue"),i=O(()=>e.validationValue===void 0?o.value:e.validationValue),r=Gm(e),s=Ym(()=>e.rules),a=D([]),l=X(!0),c=O(()=>!!(rt(o.value===""?null:o.value).length||rt(i.value===""?null:i.value).length)),u=O(()=>e.errorMessages?.length?rt(e.errorMessages).concat(a.value).slice(0,Math.max(0,Number(e.maxErrors))):a.value),d=O(()=>{let w=(e.validateOn??r.validateOn?.value)||"input";w==="lazy"&&(w="input lazy"),w==="eager"&&(w="input eager");const x=new Set(w?.split(" ")??[]);return{input:x.has("input"),blur:x.has("blur")||x.has("input")||x.has("invalid-input"),invalidInput:x.has("invalid-input"),lazy:x.has("lazy"),eager:x.has("eager")}}),h=O(()=>e.error||e.errorMessages?.length?!1:e.rules.length?l.value?a.value.length||d.value.lazy?null:!0:!a.value.length:!0),p=X(!1),m=O(()=>({[`${t}--error`]:h.value===!1,[`${t}--dirty`]:c.value,[`${t}--disabled`]:r.isDisabled.value,[`${t}--readonly`]:r.isReadonly.value})),f=we("validation"),b=O(()=>e.name??R(n));ti(()=>{r.register?.({id:b.value,vm:f,validate:k,reset:v,resetValidation:y})}),bt(()=>{r.unregister?.(b.value)}),Bn(async()=>{d.value.lazy||await k(!d.value.eager),r.update?.(b.value,h.value,u.value)}),Jt(()=>d.value.input||d.value.invalidInput&&h.value===!1,()=>{q(i,()=>{if(i.value!=null)k();else if(e.focused){const w=q(()=>e.focused,x=>{x||k(),w()})}})}),Jt(()=>d.value.blur,()=>{q(()=>e.focused,w=>{w||k()})}),q([h,u],()=>{r.update?.(b.value,h.value,u.value)});async function v(){o.value=null,await me(),await y()}async function y(){l.value=!0,d.value.lazy?a.value=[]:await k(!d.value.eager)}async function k(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const x=[];p.value=!0;for(const E of s.value){if(x.length>=Number(e.maxErrors??1))break;const g=await(typeof E=="function"?E:()=>E)(i.value);if(g!==!0){if(g!==!1&&typeof g!="string"){console.warn(`${g} is not a valid value. Rule functions must return boolean true or a string.`);continue}x.push(g||"")}}return a.value=x,p.value=!1,l.value=w,a.value}return{errorMessages:u,isDirty:c,isDisabled:r.isDisabled,isReadonly:r.isReadonly,isPristine:l,isValid:h,isValidating:p,reset:v,resetValidation:y,validate:k,validationClasses:m}}const fi=$({id:String,appendIcon:ce,baseColor:String,centerAffix:{type:Boolean,default:!0},color:String,glow:Boolean,iconColor:[Boolean,String],prependIcon:ce,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":We(),"onClick:append":We(),...ie(),...yt(),...ni(tn(),["maxWidth","minWidth","width"]),...Ae(),...Xm()},"VInput"),Cn=Z()({name:"VInput",props:{...fi()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:o,emit:i}=t;const{densityClasses:r}
vendor: 1,062 bytes, line 11
11=Rt(e),{dimensionStyles:s}=nn(e),{themeClasses:a}=Ke(e),{rtlClasses:l}=oo(),{InputIcon:c}=Fu(e),u=$t(),d=O(()=>e.id||`input-${u}`),{errorMessages:h,isDirty:p,isDisabled:m,isReadonly:f,isPristine:b,isValid:v,isValidating:y,reset:k,resetValidation:w,validate:x,validationClasses:E}=Zm(e,"v-input",d),T=O(()=>e.errorMessages?.length||!b.value&&h.value.length?h.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages),g=I(()=>T.value.length>0),C=I(()=>!e.hideDetails||e.hideDetails==="auto"&&(g.value||!!o.details)),P=O(()=>C.value?`${d.value}-messages`:void 0),N=O(()=>({id:d,messagesId:P,isDirty:p,isDisabled:m,isReadonly:f,isPristine:b,isValid:v,isValidating:y,hasDetails:C,reset:k,resetValidation:w,validate:x})),j=I(()=>e.error||e.disabled?void 0:e.focused?e.color:e.baseColor),L=I(()=>{if(e.iconColor)return e.iconColor===!0?j.value:e.iconColor});return ne(()=>{const A=!!(o.prepend||e.prependIcon),M=!!(o.append||e.appendIcon);return _("div",{class:Y(["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--focused":e.focu
11sed,"v-input--glow":e.glow,"v-input--hide-spin-buttons":e.hideSpinButtons},r.value,a.value,l.value,E.value,e.class]),style:te([s.value,e.style])},[A&&_("div",{key:"prepend",class:"v-input__prepend"},[o.prepend?o.prepend(N.value):e.prependIcon&&S(c,{key:"prepend-icon",name:"prepend",color:L.value},null)]),o.default&&_("div",{class:"v-input__control"},[o.default?.(N.value)]),M&&_("div",{key:"append",class:"v-input__append"},[o.append?o.append(N.value):e.appendIcon&&S(c,{key:"append-icon",name:"append",color:L.value},null)]),C.value&&_("div",{id:P.value,class:"v-input__details",role:"alert","aria-live":"polite"},[S(qm,{active:g.value,messages:T.value},{message:o.message}),o.details?.(N.value)])])}),{reset:k,resetValidation:w,validate:x,isValid:v,errorMessages:h}}}),Uu=$({autocomplete:String},"autocomplete");function zu(e){const t=$t(),n=X(0),o=I(()=>e.autocomplete==="suppress"),i=I(()=>{if(e.name)return o.value?`${e.name}-${t}-${n.value}`:e.name}),r=I(()=>o.value?"off":e.autocomplete);return{isSuppressing:o,fieldAutocomplete:r,fieldName:i,update:()=>n.value=new Date().getTime()}}function Wu(e){function t(n,o){if(!e.autofocus||!n)return;const i=o[0].target;(i.matches("input,textarea")?i:i.querySelector("input,textarea"))?.focus()}return{onIntersect:t}}const Wi=Symbol("Forwarded refs");function qi(e,t){let n=e;for(;n;){const o=Reflect.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}function pi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return e[Wi]=n,new Proxy(e,{get(i,r){if(Reflect.has(i,r))return Reflect.get(i,r);if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const s of n)if(s.value&&Reflect.has(s.value,r)){const a=Reflect.get(s.value,r);return typeof a=="function"?a.bind(s.value):a}}},has(i,r){if(Reflect.has(i,r))return!0;if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const s of n)if(s.value&&Reflect.has(s.value,r))return!0;return!1},set(i,r,s){if(Reflect.has(i,r))return Reflect.set(i,r,s);if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const a of n)if(a.value&&Reflect.has(a.value,r))return Reflect.set(a.value,r,s);return!1},getOwnPropertyDescriptor(i,r){const s=Reflect.getOwnPropertyDescriptor(i,r);if(s)return s;if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const a of n){if(!a.value)continue;const l=qi(a.value,r)??("_"in a.value?qi(a.value._?.setupState,r):void 0);if(l)return l}for(const a of n){const l=a.value&&a.value[Wi];if(!l)continue;const c=l.slice();for(;c.length;){const u=c.shift(),d=qi(u.value,r);if(d)return d;const h=u.value&&u.value[Wi];h&&c.push(...h)}}}}})}function Jm(e,t){if(!zr)return;const n=t.modifiers||{},o=t.value,{handler:i,options:r}=typeof o=="object"?o:{handler:o,options:{}},s=new IntersectionObserver(function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const c=e._observe?.[t.instance.$.uid];if(!c)return;const u=a.some(d=>d.isIntersecting);i&&(!n.quiet||c.init)&&(!n.once||u||c.init)&&i(u,a,l),u&&n.once?qu(e,t):c.init=!0},r);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:s},s.observe(e)}function qu(e,t){const n=e._observe?.[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const Sn={mounted:Jm,unmounted:qu},Qm=["color","file","time","date","datetime-local","week","month"],eg=$({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...Uu(),...fi(),...ss()},"VTextField"),xt=Z()({name:"VTextField",directives:{vIntersect:Sn},inheritAttrs:!1,props:eg(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:o,slots:i}=t;const r=Se(e,"modelValue"),{isFocused:s,focus:a,blur:l}=hi(e),{onIntersect:c}=Wu(e),u=O(()=>typeof e.counterValue=="function"?e.counterValue(r.value):typeof e.counterValue=="number"?e.counterValue:(r.value??"").toString().length),d=O(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),h=O(()=>["plain","underlined"].includes(e.variant)),p=D(),m=D(),f=D(),b=zu(e),v=O(()=>Qm.includes(e.type)||e.persistentPlaceholder||s.value||e.active);
vendor: 7,017 bytes, line 11
11function y(){b.isSuppressing.value&&b.update(),s.value||a(),me(()=>{f.value!==document.activeElement&&f.value?.focus()})}function k(T){o("mousedown:control",T),T.target!==f.value&&(y(),T.preventDefault())}function w(T){o("click:control",T)}function x(T,g){T.stopPropagation(),y(),me(()=>{g(),Gr(e["onClick:clear"],T)})}function E(T){const g=T.target;if(!(e.modelModifiers?.trim&&["text","search","password","tel","url"].includes(e.type))){r.value=g.value;return}const C=g.value,P=g.selectionStart,N=g.selectionEnd;r.value=C,me(()=>{let j=0;C.trimStart().length===g.value.length&&(j=C.length-g.value.length),P!=null&&(g.selectionStart=P-j),N!=null&&(g.selectionEnd=N-j)})}return ne(()=>{const T=!!(i.counter||e.counter!==!1&&e.counter!=null),g=!!(T||i.details),[C,P]=oi(n),{modelValue:N,...j}=Cn.filterProps(e),L=Ho.filterProps(e);return S(Cn,Q({ref:p,modelValue:r.value,"onUpdate:modelValue":A=>r.value=A,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":h.value},e.class],style:e.style},C,j,{centerAffix:!h.value,focused:s.value}),{...i,default:A=>{let{id:M,isDisabled:F,isDirty:H,isReadonly:W,isValid:oe,hasDetails:J,reset:re}=A;return S(Ho,Q({ref:m,onMousedown:k,onClick:w,"onClick:clear":be=>x(be,re),role:e.role},On(L,["onClick:clear"]),{id:M.value,labelId:`${M.value}-label`,active:v.value||H.value,dirty:H.value||e.dirty,disabled:F.value,focused:s.value,details:J.value,error:oe.value===!1}),{...i,default:be=>{let{props:{class:ke,...Be},controlRef:lt}=be;const Ye=_("input",Q({ref:V=>f.value=lt.value=V,value:r.value,onInput:E,autofocus:e.autofocus,readonly:W.value,disabled:F.value,name:b.fieldName.value,autocomplete:b.fieldAutocomplete.value,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:a,onBlur:l,"aria-labelledby":`${M.value}-label`},Be,P),null);return _(fe,null,[e.prefix&&_("span",{class:"v-text-field__prefix"},[_("span",{class:"v-text-field__prefix__text"},[e.prefix])]),Fe(i.default?_("div",{class:Y(ke),"data-no-activator":""},[i.default({id:M}),Ye]):Wf(Ye,{class:ke}),[[Sn,c,null,{once:!0}]]),e.suffix&&_("span",{class:"v-text-field__suffix"},[_("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:g?A=>_(fe,null,[i.details?.(A),T&&_(fe,null,[_("span",null,null),S(Du,{active:e.persistentCounter||s.value,value:u.value,max:d.value,disabled:e.disabled},i.counter)])]):void 0})}),pi({},p,m,f)}}),Gu=Symbol.for("vuetify:selection-control-group"),Ku=$({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:ce,trueIcon:ce,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Pt},...ie(),...yt(),...Ae()},"SelectionControlGroup"),tg=$({...Ku({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),UC=Z()({name:"VSelectionControlGroup",props:tg(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const o=Se(e,"modelValue"),i=$t(),r=I(()=>e.id||`v-selection-control-group-${i}`),s=I(()=>e.name||r.value),a=new Set;return Ve(Gu,{modelValue:o,forceUpdate:()=>{a.forEach(l=>l())},onForceUpdate:l=>{a.add(l),_e(()=>{a.delete(l)})}}),to({[e.defaultsTarget]:{color:I(()=>e.color),disabled:I(()=>e.disabled),density:I(()=>e.density),error:I(()=>e.error),inline:I(()=>e.inline),modelValue:o,multiple:I(()=>!!e.multiple||e.multiple==null&&Array.isArray(o.value)),name:s,falseIcon:I(()=>e.falseIcon),trueIcon:I(()=>e.trueIcon),readonly:I(()=>e.readonly),ripple:I(()=>e.ripple),type:I(()=>e.type),valueComparator:I(()=>e.valueComparator)}}),ne(()=>_("div",{class:Y(["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class]),style:te(e.style),role:e.type==="radio"?"radiogroup":void 0},[n.default?.()])),{}}}),Yu=$({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...ie(),...Ku()},"VSelectionControl");function ng(e){const t=ye(Gu,void 0),{densityClasses:n}=Rt(e),o=Se(e,"modelValue"),i=O(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),r=O(()=>e.falseValue!==void 0?e.falseValue:!1),s=O(()=>!!e.multiple||e.multiple==null&&Array.isArray(o.value)),a=O({get(){const p=t?t.modelValue.value:o.value;return s.value?rt(p).some(m=>e.valueComparator(m,i.value)):e.valueComparator(p,i.value)},set(p){if(e.readonly)return;const m=p?i.value:r.value;let f=m;s.value&&(f=p?[...rt(o.value),m]:rt(o.value).filter(b=>!e.valueComparator(b,i.value))),t?t.modelValue.value=f:o.value=f}}),{textColorClasses:l,textColorStyles:c}=gt(()=>{if(!(e.error||e.disabled))return a.value?e.color:e.baseColor}),{backgroundColorClasses:u,backgroundColorStyles:d}=Mt(()=>a.value&&!e.error&&!e.disabled?e.color:e.baseColor),h=O(()=>a.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:i,falseValue:r,model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:u,backgroundColorStyles:d,icon:h}}const mc=Z()({name:"VSelectionControl",directives:{vRipple:Qt},inheritAttrs:!1,props:Yu(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:o}=t;const{group:i,densityClasses:r,icon:s,model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:u,backgroundColorStyles:d,trueValue:h}=ng(e),p=$t(),m=X(!1),f=X(!1),b=D(),v=I(()=>e.id||`input-${p}`),y=I(()=>!e.disabled&&!e.readonly);i?.onForceUpdate(()=>{b.value&&(b.value.checked=a.value)});function k(T){y.value&&(m.value=!0,iu(T.target,":focus-visible")!==!1&&(f.value=!0))}function w(){m.value=!1,f.value=!1}function x(T){T.stopPropagation()}function E(T){if(!y.value){b.value&&(b.value.checked=a.value);return}e.readonly&&i&&me(()=>i.forceUpdate()),a.value=T.target.checked}return ne(()=>{const T=o.label?o.label({label:e.label,props:{for:v.value}}):e.label,[g,C]=oi(n),P=_("input",Q({ref:b,checked:a.value,disabled:!!e.disabled,id:v.value,onBlur:w,onFocus:k,onInput:E,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:h.value,name:e.name,"aria-checked":e.type==="checkbox"?a.value:void 0},C),null);return _("div",Q({class:["v-selection-control",{"v-selection-control--dirty":a.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":m.value,"v-selection-control--focus-visible":f.value,"v-selection-control--inline":e.inline},r.value,e.class]},g,{style:e.style}),[_("div",{class:Y(["v-selection-control__wrapper",l.value]),style:te(c.value)},[o.default?.({backgroundColorClasses:u,backgroundColorStyles:d}),Fe(_("div",{class:Y(["v-selection-control__input"])},[o.input?.({model:a,textColorClasses:l,textColorStyles:c,backgroundColorClasses:u,backgroundColorStyles:d,inputNode:P,icon:s.value,props:{onFocus:k,onBlur:w,id:v.value}})??_(fe,null,[s.value&&S(Je,{key:"icon",icon:s.value},null),P])]),[[Qt,!e.disabled&&!e.readonly&&e.ripple,null,{center:!0,circle:!0}]])]),T&&S(Ru,{for:v.value,onClick:x},{default:()=>[T]})])}),{isFocused:m,input:b}}}),Xu=ri.reduce((e,t)=>
11(e[t]={type:[Boolean,String,Number],default:!1},e),{}),Zu=ri.reduce((e,t)=>{const n="offset"+Qn(t);return e[n]={type:[String,Number],default:null},e},{}),Ju=ri.reduce((e,t)=>{const n="order"+Qn(t);return e[n]={type:[String,Number],default:null},e},{}),gc={col:Object.keys(Xu),offset:Object.keys(Zu),order:Object.keys(Ju)};function og(e,t,n){let o=e;if(!(n==null||n===!1)){if(t){const i=t.replace(e,"");o+=`-${i}`}return e==="col"&&(o="v-"+o),e==="col"&&(n===""||n===!0)||(o+=`-${n}`),o.toLowerCase()}}const ig=["auto","start","end","center","baseline","stretch"],rg=$({cols:{type:[Boolean,String,Number],default:!1},...Xu,offset:{type:[String,Number],default:null},...Zu,order:{type:[String,Number],default:null},...Ju,alignSelf:{type:String,default:null,validator:e=>ig.includes(e)},...ie(),...xe()},"VCol"),et=Z()({name:"VCol",props:rg(),setup(e,t){let{slots:n}=t;const o=O(()=>{const i=[];let r;for(r in gc)gc[r].forEach(a=>{const l=e[a],c=og(r,a,l);c&&i.push(c)});const s=i.some(a=>a.startsWith("v-col-"));return i.push({"v-col":!s||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),i});return()=>_n(e.tag,{class:[o.value,e.class],style:e.style},n.default?.())}}),as=["start","end","center"],Qu=["space-between","space-around","space-evenly"];function ls(e,t){return ri.reduce((n,o)=>{const i=e+Qn(o);return n[i]=t(),n},{})}const sg=[...as,"baseline","stretch"],ed=e=>sg.includes(e),td=ls("align",()=>({type:String,default:null,validator:ed})),ag=[...as,...Qu],nd=e=>ag.includes(e),od=ls("justify",()=>({type:String,default:null,validator:nd})),lg=[...as,...Qu,"stretch"],id=e=>lg.includes(e),rd=ls("alignContent",()=>({type:String,default:null,validator:id})),vc={align:Object.keys(td),justify:Object.keys(od),alignContent:Object.keys(rd)},cg={align:"align",justify:"justify",alignContent:"align-content"};function ug(e,t,n){let o=cg[e];if(n!=null){if(t){const i=t.replace(e,"");o+=`-${i}`}return o+=`-${n}`,o.toLowerCase()}}const dg=$({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:ed},...td,justify:{type:String,default:null,validator:nd},...od,alignContent:{type:String,default:null,validator:id},...rd,...ie(),...xe()},"VRow"),hn=Z()({name:"VRow",props:dg(),setup(e,t){let{slots:n}=t;const o=O(()=>{const i=[];let r;for(r in vc)vc[r].forEach(s=>{const a=e[s],l=ug(r,s,a);l&&i.push(l)});return i.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),i});return()=>_n(e.tag,{class:["v-row",o.value,e.class],style:e.style},n.default?.())}}),hg=$({...ie(),...xe()},"VCardActions"),fg=Z()({name:"VCardActions",props:hg(),setup(e,t){let{slots:n}=t;return to({VBtn:{slim:!0,variant:"text"}}),ne(()=>S(e.tag,{class:Y(["v-card-actions",e.class]),style:te(e.style)},n)),{}}}),pg=$({opacity:[Number,String],...ie(),...xe()},"VCardSubtitle"),mg=Z()({name:"VCardSubtitle",props:pg(),setup(e,t){let{slots:n}=t;return ne(()=>S(e.tag,{class:Y(["v-card-subtitle",e.class]),style:te([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),yr=pu("v-card-title");function gg(e){return{aspectStyles:O(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const sd=$({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...ie(),...tn()},"VResponsive"),bc=Z()({name:"VResponsive",props:sd(),setup(e,t){let{slots:n}=t;const{aspectStyles:o}=gg(e),{dimensionStyles:i}=nn(e);return ne(()=>_("div",{class:Y(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:te([i.value,e.style])},[_("div",{class:"v-responsive__sizer",style:te(o.value)},null),n.additional?.(),n.default&&_("div",{class:Y(["v-responsive__content",e.contentClass])},[n.default()])])),{}}}),vg=$({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...sd(),...ie(),...kt(),...di()},"VImg"),ad=Z()({name:"VImg",directives:{vIntersect:Sn},props:vg(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:o}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=Mt(()=>
11e.color),{roundedClasses:s}=wt(e),a=we("VImg"),l=X(""),c=D(),u=X(e.eager?"loading":"idle"),d=X(),h=X(),p=O(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),m=O(()=>p.value.aspect||d.value/h.value||0);q(()=>e.src,()=>{f(u.value!=="idle")}),q(m,(j,L)=>{!j&&L&&c.value&&w(c.value)}),ti(()=>f());function f(j){if(!(e.eager&&j)&&!(zr&&!j&&!e.eager)){if(u.value="loading",p.value.lazySrc){const L=new Image;L.src=p.value.lazySrc,w(L,null)}p.value.src&&me(()=>{n("loadstart",c.value?.currentSrc||p.value.src),setTimeout(()=>{if(!a.isUnmounted)if(c.value?.complete){if(c.value.naturalWidth||v(),u.value==="error")return;m.value||w(c.value,null),u.value==="loading"&&b()}else m.value||w(c.value),y()})})}}function b(){a.isUnmounted||(y(),w(c.value),u.value="loaded",n("load",c.value?.currentSrc||p.value.src))}function v(){a.isUnmounted||(u.value="error",n("error",c.value?.currentSrc||p.value.src))}function y(){const j=c.value;j&&(l.value=j.currentSrc||j.src)}let k=-1;bt(()=>{clearTimeout(k)});function w(j){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const A=()=>{if(clearTimeout(k),a.isUnmounted)return;const{naturalHeight:M,naturalWidth:F}=j;M||F?(d.value=F,h.value=M):!j.complete&&u.value==="loading"&&L!=null?k=window.setTimeout(A,L):(j.currentSrc.endsWith(".svg")||j.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,h.value=1)};A()}const x=I(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),E=()=>
11{if(!p.value.src||u.value==="idle")return null;const j=_("img",{class:Y(["v-img__img",x.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:p.value.src,srcset:p.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:c,onLoad:b,onError:v},null),L=o.sources?.();return S(It,{transition:e.transition,appear:!0},{default:()=>[Fe(L?_("picture",{class:"v-img__picture"},[L,j]):j,[[eo,u.value==="loaded"]])]})},T=()=>S(It,{transition:e.transition},{default:()=>[p.value.lazySrc&&u.value!=="loaded"&&_("img",{class:Y(["v-img__img","v-img__img--preload",x.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:p.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),g=()=>o.placeholder?S(It,{transition:e.transition,appear:!0},{default:()=>[(u.value==="loading"||u.value==="error"&&!o.error)&&_("div",{class:"v-img__placeholder"},[o.placeholder()])]}):null,C=()=>o.error?S(It,{transition:e.transition,appear:!0},{default:()=>[u.value==="error"&&_("div",{class:"v-img__error"},[o.error()])]}):null,P=()=>e.gradient?_("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,N=X(!1);{const j=q(m,L=>{L&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{N.value=!0})}),j())})}return ne(()=>{const j=bc.filterProps(e);return Fe(S(bc,Q({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!N.value},i.value,s.value,e.class],style:[{width:z(e.width==="auto"?d.value:e.width)},r.value,e.style]},j,{aspectRatio:m.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>_(fe,null,[S(E,null,null),S(T,null,null),S(P,null,null),S(g,null,null),S(C,null,null)]),default:o.default}),[[Sn,{handler:f,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:c,state:u,naturalWidth:d,naturalHeight:h}}}),bg=$({start:Boolean,end:Boolean,icon:ce,image:String,text:String,...In(),...ie(),...yt(),...kt(),...li(),...xe(),...Ae(),...Mn({variant:"flat"})},"VAvatar"),Uo=Z()({name:"VAvatar",props:bg(),setup(e,t){let{slots:n}=t;const{themeClasses:o}=Ke(e),{borderClasses:i}=Pn(e),{colorClasses:r,colorStyles:s,variantClasses:a}=ai(e),{densityClasses:l}
11=Rt(e),{roundedClasses:c}=wt(e),{sizeClasses:u,sizeStyles:d}=ci(e);return ne(()=>S(e.tag,{class:Y(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},o.value,i.value,r.value,l.value,c.value,u.value,a.value,e.class]),style:te([s.value,d.value,e.style])},{default:()=>[n.default?S(De,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?S(ad,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?S(Je,{key:"icon",icon:e.icon},null):e.text,si(!1,"v-avatar")]})),{}}}),yg=$({appendAvatar:String,appendIcon:ce,prependAvatar:String,prependIcon:ce,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...ie(),...yt(),...xe()},"VCardItem"),kg=Z()({name:"VCardItem",props:yg(),setup(e,t){let{slots:n}=t;return ne(()=>{const o=!!(e.prependAvatar||e.prependIcon),i=!!(o||n.prepend),r=!!(e.appendAvatar||e.appendIcon),s=!!(r||n.append),a=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return S(e.tag,{class:Y(["v-card-item",e.class]),style:te(e.style)},{default:()=>[i&&_("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?S(De,{key:"prepend-defaults",disabled:!o,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):_(fe,null,[e.prependAvatar&&S(Uo,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&S(Je,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),_("div",{class:"v-card-item__content"},[a&&S(yr,{key:"title"},{default:()=>[n.title?.()??Ze(e.title)]}),l&&S(mg,{key:"subtitle"},{default:()=>[n.subtitle?.()??Ze(e.subtitle)]}),n.default?.()]),s&&_("div",{key:"append",class:"v-card-item__append"},[n.append?S(De,{key:"append-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):_(fe,null,[e.appendIcon&&S(Je,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&S(Uo,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]})}),{}}}),wg=$({opacity:[Number,String],...ie(),...xe()},"VCardText"),Ct=Z()({name:"VCardText",props:wg(),setup(e,t){let{slots:n}=t;return ne(()=>S(e.tag,{class:Y(["v-card-text",e.class]),style:te([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),xg=$({appendAvatar:String,appendIcon:ce,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:ce,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...In(),...ie(),...yt(),...tn(),...io(),...ns(),...es(),...Tu(),...kt(),...rs(),...xe(),...Ae(),...Mn({variant:"elevated"})},"VCard"),fn=Z()({name:"VCard",directives:{vRipple:Qt},props:xg(),setup(e,t){let{attrs:n,slots:o}=t;const{themeClasses:i}=Ke(e),{borderClasses:r}=Pn(e),{colorClasses:s,colorStyles:a,variantClasses:l}=ai(e),{densityClasses:c}=Rt(e),{dimensionStyles:u}=nn(e),{elevationClasses:d}=ro(e),{loaderClasses:h}=ui(e),{locationStyles:p}=ts(e),{positionClasses:m}
11=_u(e),{roundedClasses:f}=wt(e),b=is(e,n),v=X(void 0);return q(()=>e.loading,(y,k)=>{v.value=!y&&typeof k=="string"?k:typeof y=="boolean"?void 0:y},{immediate:!0}),ne(()=>{const y=e.link!==!1&&b.isLink.value,k=!e.disabled&&e.link!==!1&&(e.link||b.isClickable.value),w=y?"a":e.tag,x=!!(o.title||e.title!=null),E=!!(o.subtitle||e.subtitle!=null),T=x||E,g=!!(o.append||e.appendAvatar||e.appendIcon),C=!!(o.prepend||e.prependAvatar||e.prependIcon),P=!!(o.image||e.image),N=T||C||g,j=!!(o.text||e.text!=null);return Fe(S(w,Q(b.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":k},i.value,r.value,s.value,c.value,d.value,h.value,m.value,f.value,l.value,e.class],style:[a.value,u.value,p.value,e.style],onClick:k&&b.navigate,tabindex:e.disabled?-1:void 0}),{default:()=>[P&&_("div",{key:"image",class:"v-card__image"},[o.image?S(De,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},o.image):S(ad,{key:"image-img",cover:!0,src:e.image},null)]),S(os,{name:"v-card",active:!!e.loading,color:v.value},{default:o.loader}),N&&S(kg,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:o.item,prepend:o.prepend,title:o.title,subtitle:o.subtitle,append:o.append}),j&&S(Ct,{key:"text"},{default:()=>[o.text?.()??e.text]}),o.default?.(),o.actions&&S(fg,null,{default:o.actions}),si(k,"v-card")]}),[[Qt,k&&e.ripple]])}),{}}}),kr=Symbol.for("vuetify:list");function ld(){let{filterable:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const t=ye(kr,{filterable:!1,hasPrepend:X(!1),updateHasPrepend:()=>null}),n={filterable:t.filterable||e,hasPrepend:X(!1),updateHasPrepend:o=>{o&&(n.hasPrepend.value=o)}};return Ve(kr,n),t}function cd(){return ye(kr,null)}const cs=e=>{const t={activate:n=>{let{id:o,value:i,activated:r}=n;return o=ve(o),e&&!i&&r.size===1&&r.has(o)||(i?r.add(o):r.delete(o)),r},in:(n,o,i)=>{let r=new Set;if(n!=null)for(const s of rt(n))r=t.activate({id:s,value:!0,activated:new Set(r),children:o,parents:i});return r},out:n=>Array.from(n)};return t},ud=e=>{const t=cs(e);return{activate:o=>{let{activated:i,id:r,...s}=o;r=ve(r);const a=i.has(r)?new Set([r]):new Set;return t.activate({...s,id:r,activated:a})},in:(o,i,r)=>{let s=new Set;if(o!=null){const a=rt(o);a.length&&(s=t.in(a.slice(0,1),i,r))}return s},out:(o,i,r)=>t.out(o,i,r)}},Cg=e=>{const t=cs(e);return{activate:o=>{let{id:i,activated:r,children:s,...a}=o;return i=ve(i),s.has(i)?r:t.activate({id:i,activated:r,children:s,...a})},in:t.in,out:t.out}},Sg=e=>{const t=ud(e);return{activate:o=>{let{id:i,activated:r,children:s,...a}=o;return i=ve(i),s.has(i)?r:t.activate({id:i,activated:r,children:s,...a})},in:t.in,out:t.out}},Eg={open:e=>{let{id:t,value:n,opened:o,parents:i}=e;if(n){const r=new Set;r.add(t);let s=i.get(t);for(;s!=null;)r.add(s),s=i.get(s);return r}else return o.delete(t),o},select:()=>null},dd={open:e=>{let{id:t,value:n,opened:o,parents:i}=e;if(n){let r=i.get(t);for(o.add(t);r!=null&&r!==t;)o.add(r),r=i.get(r);return o}else o.delete(t);return o},select:()=>null},Tg={open:dd.open,select:e=>{let{id:t,value:n,opened:o,parents:i}=e;if(!n)return o;const r=[];let s=i.get(t);for(;s!=null;)r.push(s),s=i.get(s);return new Set(r)}},us=e=>{const t={select:n=>{let{id:o,value:i,selected:r}=n;if(o=ve(o),e&&!i){const s=Array.from(r.entries()).reduce((a,l)=>{let[c,u]=l;return u==="on"&&a.push(c),a},[]);if(s.length===1&&s[0]===o)return r}return r.set(o,i?"on":"off"),r},in:(n,o,i,r)=>{const s=new Map;for(const a of n||[])t.select({id:a,value:!0,selected:s,children:o,parents:i,disabled:r});return s},out:n=>{const o=[];for(const[i,r]of n.entries())r==="on"&&o.push(i);return o}};return t},hd=e=>{const t=us(e);return{select:o=>{let{selected:i,id:r,...s}=o;r=ve(r);const a=i.has(r)?new Map([[r,i.get(r)]]):new Map;return t.select({...s,id:r,selected:a})},in:(o,i,r,s)=>o?.length?t.in(o.slice(0,1),i,r,s):new Map,out:(o,i,r)=>t.out(o,i,r)}},_g=e=>{const t=us(e);return{select:o=>{let{id:i,selected:r,children:s,...a}=o;return i=ve(i),s.has(i)?r:t.select({id:i,selected:r,children:s,...a})},in:t.in,out:t.out}},Bg=e=>{const t=hd(e);return{select:o=>{let{id:i,selected:r,children:s,...a}=o;return i=ve(i),s.has(i)?r:t.select({id:i,selected:r,children:s,...a})},in:t.in,out:t.out}},fd=e=>{const t={select:n=>{let{id:o,value:i,selected:r,children:s,parents:a,disabled:l}=n;o=ve(o);const c=new Map(r),u=[o];for(;u.length;){const h=u.shift();l.has(h)||r.set(ve(h),i?"on":"off"),s.has(h)&&u.push(...s.get(h))}let d=ve(a.get(o));for(;d;){let h=!0,p=!0;for(const m of s.get(d)){const f=ve(m);if(!l.has(f)&&(r.get(f)!=="on"&&(h=!1),r.has(f)&&r.get(f)!=="off"&&(p=!1),!h&&
11!p))break}r.set(d,h?"on":p?"off":"indeterminate"),d=ve(a.get(d))}return e&&!i&&Array.from(r.entries()).reduce((p,m)=>{let[f,b]=m;return b==="on"&&p.push(f),p},[]).length===0?c:r},in:(n,o,i)=>{let r=new Map;for(const s of n||[])r=t.select({id:s,value:!0,selected:r,children:o,parents:i,disabled:new Set});return r},out:(n,o)=>{const i=[];for(const[r,s]of n.entries())s==="on"&&!o.has(r)&&i.push(r);return i}};return t},Og=e=>{const t=fd(e);return{select:t.select,in:t.in,out:(o,i,r)=>{const s=[];for(const[a,l]of o.entries())if(l==="on"){if(r.has(a)){const c=r.get(a);if(o.get(c)==="on")continue}s.push(a)}return s}}},En=Symbol.for("vuetify:nested"),pd={id:X(),root:{itemsRegistration:D("render"),register:()=>null,unregister:()=>null,updateDisabled:()=>null,children:D(new Map),parents:D(new Map),disabled:D(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:D(!1),selectable:D(!1),opened:D(new Set),activated:D(new Set),selected:D(new Map),selectedValues:D([]),getPath:()=>[]}},Ig=$({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean,itemsRegistration:{type:String,default:"render"}},"nested"),Pg=(e,t,n)=>{let o=!1;const i=X(new Map),r=X(new Map),s=X(new Set),a=Se(e,"opened",e.opened,k=>new Set(Array.isArray(k)?k.map(w=>ve(w)):k),k=>[...k.values()]),l=O(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return Cg(e.mandatory);case"single-leaf":return Sg(e.mandatory);case"independent":return cs(e.mandatory);case"single-independent":default:return ud(e.mandatory)}}),c=O(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return Bg(e.mandatory);case"leaf":return _g(e.mandatory);case"independent":return us(e.mandatory);case"single-independent":return hd(e.mandatory);case"trunk":return Og(e.mandatory);case"classic":default:return fd(e.mandatory)}}),u=O(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return Tg;case"single":return Eg;case"multiple":default:return dd}}),d=Se(e,"activated",e.activated,k=>l.value.in(k,i.value,r.value),k=>l.value.out(k,i.value,r.value)),h=Se(e,"selected",e.selected,k=>c.value.in(k,i.value,r.value,s.value),k=>c.value.out(k,i.value,r.value));bt(()=>{o=!0});function p(k){const w=[];let x=ve(k);for(;x!==void 0;)w.unshift(x),x=r.value.get(x);return w}const m=we("nested"),f=new Set,b=Rp(()=>{me(()=>{i.value=new Map(i.value),r.value=new Map(r.value)})},100);q(()=>[t.value,Ce(n)],()=>{e.itemsRegistration==="props"&&v()},{immediate:!0});function v(){const k=new Map,w=new Map,x=new Set,E=Ce(n)?C=>ve(C.raw):C=>C.value,T=[...t.value];let g=0;for(;g<T.length;){const C=T[g++],P=E(C);if(C.children){const N=[];for(const j of C.children){const L=E(j);k.set(L,P),N.push(L),T.push(j)}w.set(P,N)}C.props.disabled&&x.add(P)}i.value=w,r.value=k,s.value=x}const y={id:X(),root:{opened:a,activatable:I(()=>e.activatable),selectable:I(()=>e.selectable),activated:d,selected:h,selectedValues:O(()=>{const k=[];for(const[w,x]of h.value.entries())x==="on"&&k.push(w);return k}),itemsRegistration:I(()=>e.itemsRegistration),register:(k,w,x,E)=>{if(f.has(k)){p(k).map(String).join(" -> "),p(w).concat(k).map(String).join(" -> ");return}else f.add(k);w&&k!==w&&r.value.set(k,w),x&&s.value.add(k),E&&i.value.set(k,[]),w!=null&&i.value.set(w,[...i.value.get(w)||[],k]),b()},unregister:k=>{if(o)return;f.delete(k),i.value.delete(k),s.value.delete(k);const w=r.value.get(k);if(w){const x=i.value.get(w)??[];i.value.set(w,x.filter(E=>E!==k))}r.value.delete(k),b()},updateDisabled:(k,w)=>{w?s.value.add(k):s.value.delete(k)},open:(k,w,x)=>{m.emit("click:open",{id:k,value:w,path:p(k),event:x});const E=u.value.open({id:k,value:w,opened:new Set(a.value),children:i.value,parents:r.value,event:x});E&&(a.value=E)},openOnSelect:(k,w,x)=>{const E=u.value.select({id:k,value:w,selected:new Map(h.value),opened:new Set(a.value),
11children:i.value,parents:r.value,event:x});E&&(a.value=E)},select:(k,w,x)=>{m.emit("click:select",{id:k,value:w,path:p(k),event:x});const E=c.value.select({id:k,value:w,selected:new Map(h.value),children:i.value,parents:r.value,disabled:s.value,event:x});E&&(h.value=E),y.root.openOnSelect(k,w,x)},activate:(k,w,x)=>{if(!e.activatable)return y.root.select(k,!0,x);m.emit("click:activate",{id:k,value:w,path:p(k),event:x});const E=l.value.activate({id:k,value:w,activated:new Set(d.value),children:i.value,parents:r.value,event:x});if(E.size!==d.value.size)d.value=E;else{for(const T of E)if(!d.value.has(T)){d.value=E;return}for(const T of d.value)if(!E.has(T)){d.value=E;return}}},children:i,parents:r,disabled:s,getPath:p}};return Ve(En,y),y.root},md=(e,t,n)=>{const o=ye(En,pd),i=Symbol("nested item"),r=O(()=>{const a=ve(Ce(e));return a!==void 0?a:i}),s={...o,id:r,open:(a,l)=>o.root.open(r.value,a,l),openOnSelect:(a,l)=>o.root.openOnSelect(r.value,a,l),isOpen:O(()=>o.root.opened.value.has(r.value)),parent:O(()=>o.root.parents.value.get(r.value)),activate:(a,l)=>o.root.activate(r.value,a,l),isActivated:O(()=>o.root.activated.value.has(r.value)),select:(a,l)=>o.root.select(r.value,a,l),isSelected:O(()=>o.root.selected.value.get(r.value)==="on"),isIndeterminate:O(()=>o.root.selected.value.get(r.value)==="indeterminate"),isLeaf:O(()=>!o.root.children.value.get(r.value)),isGroupActivator:o.isGroupActivator};return ti(()=>{o.isGroupActivator||o.root.itemsRegistration.value==="props"||me(()=>{o.root.register(r.value,o.id.value,Ce(t),n)})}),bt(()=>{o.isGroupActivator||o.root.itemsRegistration.value==="props"||o.root.unregister(r.value)}),q(r,(a,l)=>{o.isGroupActivator||o.root.itemsRegistration.value==="props"||(o.root.unregister(l),me(()=>{o.root.register(a,o.id.value,Ce(t),n)}))}),q(()=>Ce(t),a=>{o.root.updateDisabled(r.value,a)}),n&&Ve(En,s),s},Mg=()=>{const e=ye(En,pd);Ve(En,{...e,isGroupActivator:!0})};function Ag(){const e=X(!1);return Bn(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:I(()=>e.value?void 0:{transition:"none !important"}),isBooted:Hr(e)}}const Lg=no({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return Mg(),()=>n.default?.()}}),Ng=$({activeColor:String,baseColor:String,color:String,collapseIcon:{type:ce,default:"$collapse"},disabled:Boolean,expandIcon:{type:ce,default:"$expand"},rawId:[String,Number],prependIcon:ce,appendIcon:ce,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ie(),...xe()},"VListGroup"),yc=Z()({name:"VListGroup",props:Ng(),setup(e,t){let{slots:n}=t;const{isOpen:o,open:i,id:r}=md(()=>e.value,()=>e.disabled,!0),s=O(()=>`v-list-group--id-${String(e.rawId??r.value)}`),a=cd(),{isBooted:l}=Ag(),c=ye(En),u=I(()=>c?.root?.itemsRegistration.value==="render");function d(f){["INPUT","TEXTAREA"].includes(f.target?.tagName)||i(!o.value,f)}const h=O(()=>({onClick:d,class:"v-list-group__header",id:s.value})),p=O(()=>o.value?e.collapseIcon:e.expandIcon),m=O(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&p.value,appendIcon:e.appendIcon||!e.subgroup&&p.value,title:e.title,value:e.value}}));return ne(()=>S(e.tag,{class:Y(["v-list-group",{"v-list-group--prepend":a?.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":o.value},e.class]),style:te(e.style)},{default:()=>[n.activator&&S(De,{defaults:m.value},{default:()=>[S(Lg,null,{default:()=>[n.activator({props:h.value,isOpen:o.value})]})]}),S(It,{transition:{component:Dm},disabled:!l.value},{default:()=>[u.value?Fe(_("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[n.default?.()]),[[eo,o.value]]):o.value&&_("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[n.default?.()])]})]})),{isOpen:o}}}),jg=$({opacity:[Number,String],...ie(),...xe()},"VListItemSubtitle"),gd=Z()({name:"VListItemSubtitle",props:jg(),setup(e,t){let{slots:n}=t;return ne(()=>S(e.tag,{class:Y(["v-list-item-subtitle",e.class]),style:te([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),vd=pu("v-list-item-title"),$g=$({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:ce,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0}
11,nav:Boolean,prependAvatar:String,prependIcon:ce,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,prependGap:[Number,String],subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,onClick:We(),onClickOnce:We(),...In(),...ie(),...yt(),...tn(),...io(),...kt(),...rs(),...xe(),...Ae(),...Mn({variant:"text"})},"VListItem"),wr=Z()({name:"VListItem",directives:{vRipple:Qt},props:$g(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:o,emit:i}=t;const r=is(e,n),s=O(()=>e.value===void 0?r.href.value:e.value),{activate:a,isActivated:l,select:c,isOpen:u,isSelected:d,isIndeterminate:h,isGroupActivator:p,root:m,parent:f,openOnSelect:b,id:v}=md(s,()=>e.disabled,!1),y=cd(),k=O(()=>e.active!==!1&&(e.active||r.isActive?.value||(m.activatable.value?l.value:d.value))),w=I(()=>e.link!==!1&&r.isLink.value),x=O(()=>!!y&&(m.selectable.value||m.activatable.value||e.value!=null)),E=O(()=>!e.disabled&&e.link!==!1&&(e.link||r.isClickable.value||x.value)),T=O(()=>y?w.value?"link":x.value?"option":"listitem":void 0),g=O(()=>{if(x.value)return m.activatable.value?l.value:m.selectable.value?d.value:k.value}),C=I(()=>e.rounded||e.nav),P=I(()=>e.color??e.activeColor),N=I(()=>({color:k.value?P.value??e.baseColor:e.baseColor,variant:e.variant}));q(()=>r.isActive?.value,V=>{V&&j()}),ti(()=>{r.isActive?.value&&me(()=>j())});function j(){f.value!=null&&m.open(f.value,!0),b(!0)}const{themeClasses:L}=Ke(e),{borderClasses:A}=Pn(e),{colorClasses:M,colorStyles:F,variantClasses:H}=ai(N),{densityClasses:W}=Rt(e),{dimensionStyles:oe}=nn(e),{elevationClasses:J}
11=ro(e),{roundedClasses:re}=wt(C),be=I(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),ke=I(()=>e.ripple!==void 0&&e.ripple&&y?.filterable?{keys:["Enter"]}:e.ripple),Be=O(()=>({isActive:k.value,select:c,isOpen:u.value,isSelected:d.value,isIndeterminate:h.value}));function lt(V){i("click",V),!["INPUT","TEXTAREA"].includes(V.target?.tagName)&&E.value&&(r.navigate?.(V),!p&&(m.activatable.value?a(!l.value,V):(m.selectable.value||e.value!=null&&!w.value)&&c(!d.value,V)))}function Ye(V){const Le=V.target;["INPUT","TEXTAREA"].includes(Le.tagName)||(V.key==="Enter"||V.key===" "&&!y?.filterable)&&(V.preventDefault(),V.stopPropagation(),V.target.dispatchEvent(new MouseEvent("click",V)))}return ne(()=>{const V=w.value?"a":e.tag,Le=o.title||e.title!=null,ln=o.subtitle||e.subtitle!=null,Nn=!!(e.appendAvatar||e.appendIcon),ji=!!(Nn||o.append),cn=!!(e.prependAvatar||e.prependIcon),Ml=!!(cn||o.prepend);return y?.updateHasPrepend(Ml),e.activeColor&&Xc("active-color",["color","base-color"]),Fe(S(V,Q(r.linkProps,{class:["v-list-item",{"v-list-item--active":k.value,"v-list-item--disabled":e.disabled,"v-list-item--link":E.value,"v-list-item--nav":e.nav,"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&k.value},L.value,A.value,M.value,W.value,J.value,be.value,re.value,H.value,e.class],style:[{"--v-list-prepend-gap":z(e.prependGap)},F.value,oe.value,e.style],tabindex:E.value?y?-2:0:void 0,"aria-selected":g.value,role:T.value,onClick:lt,onKeydown:E.value&&!w.value&&Ye}),{default:()=>[si(E.value||k.value,"v-list-item"),Ml&&_("div",{key:"prepend",class:"v-list-item__prepend"},[o.prepend?S(De,{key:"prepend-defaults",disabled:!cn,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>[o.prepend?.(Be.value)]}):_(fe,null,[e.prependAvatar&&S(Uo,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&S(Je,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),_("div",{class:"v-list-item__spacer"},null)]),_("div",{class:"v-list-item__content","data-no-activator":""},[Le&&S(vd,{key:"title"},{default:()=>[o.title?.({title:e.title})??Ze(e.title)]}),ln&&S(gd,{key:"subtitle"},{default:()=>[o.subtitle?.({subtitle:e.subtitle})??Ze(e.subtitle)]}),o.default?.(Be.value)]),ji&&_("div",{key:"append",class:"v-list-item__append"},[o.append?S(De,{key:"append-defaults",disabled:!Nn,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>[o.append?.(Be.value)]}):_(fe,null,[e.appendIcon&&S(Je,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&S(Uo,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),_("div",{class:"v-list-item__spacer"},null)])]}),[[Qt,E.value&&ke.value]])}),{activate:a,isActivated:l,isGroupActivator:p,isSelected:d,list:y,select:c,root:m,id:v,link:r}}}),Rg=$({color:String,inset:Boolean,sticky:Boolean,title:String,...ie(),...xe()},"VListSubheader"),Dg=Z()({name:"VListSubheader",props:Rg(),setup(e,t){let{slots:n}=t;const{textColorClasses:o,textColorStyles:i}=gt(()=>e.color);return ne(()=>{const r=!!(n.default||e.title);return S(e.tag,{class:Y(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},o.value,e.class]),style:te([{textColorStyles:i},e.style])},{default:()=>[r&&_("div",{class:"v-list-subheader__text"},[n.default?.()??e.title])]})}),{}}}),Fg=["dotted","dashed","solid","double"],Vg=$({color:String,contentOffset:[Number,String,Array],gradient:Boolean,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,variant:{type:String,default:"solid",validator:e=>Fg.includes(e)},...ie(),...Ae()},"VDivider"),xr=Z()({name:"VDivider",props:Vg(),setup(e,t){let{attrs:n,slots:o}=t;const{themeClasses:i}=Ke(e),{textColorClasses:r,textColorStyles:s}=gt(()=>e.color),a=O(()=>{const c={};return e.length&&(c[e.vertical?"height":"width"]=z(e.length)),e.thickness&&(c[e.vertical?"borderRightWidth":"borderTopWidth"]=z(e.thickness)),c}),l=I(()=>{const c=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,u=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&c?z(c):void 0,marginInline:!e.vertical&&c?z(c):void 0,transform:u?`translate${e.vertical?"X":"Y"}(${z(u)})`:void 0}});return ne(()=>{const c=_("hr",{class:Y([{"v-divider":!0,"v-divider--gradient":e.gradient&&!o.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},i.value,r.value,e.class]),style:te([a.value,s.value,{"--v-border-opacity":e.opacity},{"border-style":e.variant},e.style]),"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return o.default?_("div",{class:Y(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[c,_("div",{class:"v-divider__content",style:te(l.value)},[o.default()]),c]):c}),{}}}),Hg=$({items:Array,returnObject:Boolean},"VListChildren"),bd=Z()({name:"VListChildren",props:Hg(),setup(e,t){let{slots:n}=t;return ld(),()=>n.default?.()??e.items?.map(o=>{let{children:i,props:r,type:s,raw:a}=o;if(s==="divider")return n.divider?.({props:r})??S(xr,r,null);if(s==="subheader")return n.subheader?.({props:r})??S(Dg,r,null);const l={subtitle:n.subtitle?u=>n.subtitle?.({...u,item:a}):void 0,prepend:n.prepend?u=>n.prepend?.({...u,item:a}):void 0,append:n.append?u=>n.append?.({...u,item:a}):void 0,title:n.title?u=>n.title?.({...u,item:a}):void 0},c=yc.filterProps(r);return i?S(yc,Q(c,{value:e.returnObject?a:r?.value,rawId:r?.value}),{activator:u=>{let{props:d}=u;const h=Q(r,d,{value:e.returnObject?a:r.value});return n.header?n.header({props:h}):S(wr,h,l)},default:()=>S(bd,{items:i,returnObject:e.returnObject},n)}):n.item?n.item({props:r}):S(wr,Q(r,{value:e.returnObject?a:r.value}),l)})}}),Ug=$({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),zg=new Set(["item","divider","subheader"]);function wn(e,t){const n=nt(t,e.itemTitle,t),o=nt(t,e.itemValue,n),i=nt(t,e.itemChildren),r=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?On(t,["children"]):t:void 0:nt(t,e.itemProps);let s=nt(t,e.itemType,"item");zg.has(s)||(s="item");const a={title:n,value:o,...r};return{type:s,title:String(a.title??""),value:a.value,props:a,children:s==="item"&&Array.isArray(i)?yd(e,i):void 0,raw:t}}wn.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function yd(e,t){const n=ni(e,wn.neededProps),o=[];for(const i of t)o.push(wn(n,i));return o}function zC(e){const t=O(()=>yd(e,e.items)),n=O(()=>t.value.some(a=>a.value===null)),o=X(new Map),i=X([]);qe(()=>{const a=t.value,l=new Map,c=[];for(let u=0;u<a.length;u++){const d=a[u];if(Xt(d.value)||d.value===null){let h=l.get(d.value);h||(h=[],l.set(d.value,h)),h.push(d)}else c.push(d)}o.value=l,i.value=c});function r(a){const l=o.value,c=t.value,u=i.value,d=n.value,h=e.returnObject,p=!!e.valueComparator,m=e.valueComparator||Pt,f=ni(e,wn.neededProps),b=[];e:for(const v of a){if(!d&&v===null)continue;if(h&&typeof v=="string"){b.push(wn(f,v));continue}const y=l.get(v);if(p||!y){for(const k of p?c:u)if(m(v,k.value)){b.push(k);continue e}b.push(wn(f,v));continue}b.push(...y)}return b}function s(a){return e.returnObject?a.map(l=>{let{raw:c}=l;return c}
11):a.map(l=>{let{value:c}=l;return c})}return{items:t,transformIn:r,transformOut:s}}const Wg=new Set(["item","divider","subheader"]);function qg(e,t){const n=Xt(t)?t:nt(t,e.itemTitle),o=Xt(t)?t:nt(t,e.itemValue,void 0),i=nt(t,e.itemChildren),r=e.itemProps===!0?On(t,["children"]):nt(t,e.itemProps);let s=nt(t,e.itemType,"item");Wg.has(s)||(s="item");const a={title:n,value:o,...r};return{type:s,title:a.title,value:a.value,props:a,children:s==="item"&&i?kd(e,i):void 0,raw:t}}function kd(e,t){const n=[];for(const o of t)n.push(qg(e,o));return n}function Gg(e){return{items:O(()=>kd(e,e.items))}}const Kg=$({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:ce,collapseIcon:ce,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,"onClick:open":We(),"onClick:select":We(),"onUpdate:opened":We(),...Ig({selectStrategy:"single-leaf",openStrategy:"list"}),...In(),...ie(),...yt(),...tn(),...io(),...Ug(),...kt(),...xe(),...Ae(),...Mn({variant:"text"})},"VList"),Yg=Z()({name:"VList",props:Kg(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:o}=Gg(e),{themeClasses:i}=Ke(e),{backgroundColorClasses:r,backgroundColorStyles:s}=Mt(()=>e.bgColor),{borderClasses:a}=Pn(e),{densityClasses:l}=Rt(e),{dimensionStyles:c}=nn(e),{elevationClasses:u}
11=ro(e),{roundedClasses:d}=wt(e),{children:h,open:p,parents:m,select:f,getPath:b}=Pg(e,o,()=>e.returnObject),v=I(()=>e.lines?`v-list--${e.lines}-line`:void 0),y=I(()=>e.activeColor),k=I(()=>e.baseColor),w=I(()=>e.color),x=I(()=>e.selectable||e.activatable);ld({filterable:e.filterable}),to({VListGroup:{activeColor:y,baseColor:k,color:w,expandIcon:I(()=>e.expandIcon),collapseIcon:I(()=>e.collapseIcon)},VListItem:{activeClass:I(()=>e.activeClass),activeColor:y,baseColor:k,color:w,density:I(()=>e.density),disabled:I(()=>e.disabled),lines:I(()=>e.lines),nav:I(()=>e.nav),slim:I(()=>e.slim),variant:I(()=>e.variant)}});const E=X(!1),T=D();function g(A){E.value=!0}function C(A){E.value=!1}function P(A){!E.value&&!(A.relatedTarget&&T.value?.contains(A.relatedTarget))&&L()}function N(A){const M=A.target;if(!(!T.value||M.tagName==="INPUT"&&["Home","End"].includes(A.key)||M.tagName==="TEXTAREA")){if(A.key==="ArrowDown")L("next");else if(A.key==="ArrowUp")L("prev");else if(A.key==="Home")L("first");else if(A.key==="End")L("last");else return;A.preventDefault()}}function j(A){E.value=!0}function L(A){if(T.value)return ou(T.value,A)}return ne(()=>{const A=e.indent??(e.prependGap?Number(e.prependGap)+24:void 0);return S(e.tag,{ref:T,class:Y(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},i.value,r.value,a.value,l.value,u.value,v.value,d.value,e.class]),style:te([{"--v-list-indent":z(A),"--v-list-group-prepend":A?"0px":void 0,"--v-list-prepend-gap":z(e.prependGap)},s.value,c.value,e.style]),tabindex:e.disabled?-1:0,role:x.value?"listbox":"list","aria-activedescendant":void 0,onFocusin:g,onFocusout:C,onFocus:P,onKeydown:N,onMousedown:j},{default:()=>[S(bd,{items:o.value,returnObject:e.returnObject},n)]})}),{open:p,select:f,focus:L,children:h,parents:m,getPath:b}}});function Gi(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Xg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function kc(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:o}=e,i=o==="left"?0:o==="center"?t.width/2:o==="right"?t.width:o,r=n==="top"?0:n==="bottom"?t.height:n;return Gi({x:i,y:r},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:o}=e,i=n==="left"?0:n==="right"?t.width:n,r=o==="top"?0:o==="center"?t.height/2:o==="bottom"?t.height:o;return Gi({x:i,y:r},t)}return Gi({x:t.width/2,y:t.height/2},t)}const wd={static:Qg,connected:tv},Zg=$({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in wd},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean,viewportMargin:{type:[Number,String],default:12}},"VOverlay-location-strategies");function Jg(e,t){const n=D({}),o=D();ue&&Jt(()=>!!(t.isActive.value&&e.locationStrategy),a=>{q(()=>e.locationStrategy,a),_e(()=>{window.removeEventListener("resize",i),visualViewport?.removeEventListener("resize",r),visualViewport?.removeEventListener("scroll",s),o.value=void 0}),window.addEventListener("resize",i,{passive:!0}),visualViewport?.addEventListener("resize",r,{passive:!0}),visualViewport?.addEventListener("scroll",s,{passive:!0}),typeof e.locationStrategy=="function"?o.value=e.locationStrategy(t,e,n)?.updateLocation:o.value=wd[e.locationStrategy](t,e,n)?.updateLocation});function i(a){o.value?.(a)}function r(a){o.value?.(a)}function s(a){o.value?.(a)}return{contentStyles:n,updateLocation:o}}function Qg(){}function ev(e,t){const n=Kr(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function tv(e,t,n){(Array.isArray(e.target.value)||$p(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:i,preferredOrigin:r}=qr(()=>{const v=fr(t.location,e.isRtl.value),y=t.origin==="overlap"?v:t.origin==="auto"?Fi(v):fr(t.origin,e.isRtl.value);return v.side===y.side&&v.align===Vi(y).align?{preferredAnchor:Fl(v),preferredOrigin:Fl(y)}:{preferredAnchor:v,preferredOrigin:y}}),[s,a,l,c]=["minWidth","minHeight","maxWidth","maxHeight"].map(v=>O(()=>{const y=parseFloat(t[v]);return isNaN(y)?1/0:y})),u=O(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const v=t.offset.split(" ").map(parseFloat);return v.length<2&&v.push(0),v}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let d=!1,h=-1;const p=new tp(4),m=new ResizeObserver(()=>{if(!d)return;if(requestAnimationFrame(y=>{y!==h&&p.clear(),requestAnimationFrame(k=>{h=k})}),p.isFull){const y=p.values();if(Pt(y.at(-1),y.at(-3))&&!Pt(y.at(-1),y.at(-2)))return}const v=b();v&&p.push(v.flipped)});let f=new ze({x:0,y:0,width:0,height:0});q(e.target,(v,y)=>{y&&!Array.isArray(y)&&m.unobserve(y),Array.isArray(v)?Pt(v,y)||b():v&&m.observe(v)},{immediate:!0}),q(e.contentEl,(v,y)=>{y&&m.unobserve(y),v&&m.observe(v)},{immediate:!0}),_e(()=>{m.disconnect()});function b(){if(d=!1,requestAnimationFrame(()=>d=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(f=su(e.target.value));const v=ev(e.contentEl.value,e.isRtl.value),y=Ro(e.contentEl.value),k=Number(t.viewportMargin);y.length||(y.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(v.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),v.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const w=y.reduce((L,A)=>{const M=ap(A);return L?new ze({x:Math.max(L.left,M.left),y:Math.max(L.top,M.top),width:Math.min(L.right,M.right)-Math.max(L.left,M.left),height:Math.min(L.bottom,M.bottom)-Math.max(L.top,M.top)}):M},void 0);t.stickToTarget?(w.x+=Math.min(k,f.x),w.y+=Math.min(k,f.y),w.width=Math.max(w.width-k*2,f.x+f.width-k),w.height=Math.max(w.height-k*2,f.y+f.height-k)):(w.x+=k,w.y+=k,w.width-=k*2,w.height-=k*2);let x={anchor:i.value,origin:r.value};function E(L){const A=new ze(v),M=kc(L.anchor,f),F=kc(L.origin,A);let{x:H,y:W}=Xg(M,F);switch(L.anchor.side){case"top":W-=u.value[0];break;case"bottom":W+=u.value[0];break;case"left":H-=u.value[0];break;case"right":H+=u.value[0];break}switch(L.anchor.align){case"top":W-=u.value[1];break;case"bottom":W+=u.value[1];break;case"left":H-=u.value[1];break;case"right":H+=u.value[1];break}return A.x+=H,A.y+=W,A.width=Math.min(A.width,l.value),A.height=Math.min(A.height,c.value),{overflows:Hl(A,w),x:
11H,y:W}}let T=0,g=0;const C={x:0,y:0},P={x:!1,y:!1};let N=-1;for(;!(N++>10);){const{x:L,y:A,overflows:M}=E(x);T+=L,g+=A,v.x+=L,v.y+=A;{const F=Vl(x.anchor),H=M.x.before||M.x.after,W=M.y.before||M.y.after;let oe=!1;if(["x","y"].forEach(J=>{if(J==="x"&&H&&!P.x||J==="y"&&W&&!P.y){const re={anchor:{...x.anchor},origin:{...x.origin}},be=J==="x"?F==="y"?Vi:Fi:F==="y"?Fi:Vi;re.anchor=be(re.anchor),re.origin=be(re.origin);const{overflows:ke}=E(re);(ke[J].before<=M[J].before&&ke[J].after<=M[J].after||ke[J].before+ke[J].after<(M[J].before+M[J].after)/2)&&(x=re,oe=P[J]=!0)}}),oe)continue}M.x.before&&(T+=M.x.before,v.x+=M.x.before),M.x.after&&(T-=M.x.after,v.x-=M.x.after),M.y.before&&(g+=M.y.before,v.y+=M.y.before),M.y.after&&(g-=M.y.after,v.y-=M.y.after);{const F=Hl(v,w);C.x=w.width-F.x.before-F.x.after,C.y=w.height-F.y.before-F.y.after,T+=F.x.before,v.x+=F.x.before,g+=F.y.before,v.y+=F.y.before}break}const j=Vl(x.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${x.anchor.side} ${x.anchor.align}`,transformOrigin:`${x.origin.side} ${x.origin.align}`,top:z(Ki(g)),left:e.isRtl.value?void 0:z(Ki(T)),right:e.isRtl.value?z(Ki(-T)):void 0,minWidth:z(j==="y"?Math.min(s.value,f.width):s.value),maxWidth:z(wc(At(C.x,s.value===1/0?0:s.value,l.value))),maxHeight:z(wc(At(C.y,a.value===1/0?0:a.value,c.value)))}),{available:C,contentBox:v,flipped:P}}return q(()=>[i.value,r.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>b()),me(()=>{const v=b();if(!v)return;const{available:y,contentBox:k}=v;k.height>y.y&&requestAnimationFrame(()=>{b(),requestAnimationFrame(()=>{b()})})}),{updateLocation:b}}function Ki(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function wc(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let Cr=!0;const zo=[];function nv(e){!Cr||zo.length?(zo.push(e),Sr()):(Cr=!1,e(),Sr())}let xc=-1;function Sr(){cancelAnimationFrame(xc),xc=requestAnimationFrame(()=>{const e=zo.shift();e&&e(),zo.length?Sr():Cr=!0})}const xd={none:null,close:rv,block:sv,reposition:av},ov=$({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in xd}},"VOverlay-scroll-strategies");function iv(e,t){if(!ue)return;let n;qe(async()=>{n?.stop(),t.isActive.value&&e.scrollStrategy&&(n=Vr(),await new Promise(o=>setTimeout(o)),n.active&&n.run(()=>{typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):xd[e.scrollStrategy]?.(t,e,n)}))}),_e(()=>{n?.stop()})}function rv(e){function t(n){e.isActive.value=!1}Cd(ds(e.target.value,e.contentEl.value),t)}function sv(e,t){const n=e.root.value?.offsetParent,o=ds(e.target.value,e.contentEl.value),i=[...new Set([...Ro(o,t.contained?n:void 0),...Ro(e.contentEl.value,t.contained?n:void 0)])].filter(a=>!a.classList.contains("v-overlay-scroll-blocked")),r=window.innerWidth-document.documentElement.offsetWidth,s=(a=>Zr(a)&&a)(n||document.documentElement);s&&e.root.value.classList.add("v-overlay--scroll-blocked"),i.forEach((a,l)=>{a.style.setProperty("--v-body-scroll-x",z(-a.scrollLeft)),a.style.setProperty("--v-body-scroll-y",z(-a.scrollTop)),a!==document.documentElement&&a.style.setProperty("--v-scrollbar-offset",z(r)),a.classList.add("v-overlay-scroll-blocked")}),_e(()=>{i.forEach((a,l)=>{const c=parseFloat(a.style.getPropertyValue("--v-body-scroll-x")),u=parseFloat(a.style.getPropertyValue("--v-body-scroll-y")),d=a.style.scrollBehavior;a.style.scrollBehavior="auto",a.style.removeProperty("--v-body-scroll-x"),a.style.removeProperty("--v-body-scroll-y"),a.style.removeProperty("--v-scrollbar-offset"),a.classList.remove("v-overlay-scroll-blocked"),a.scrollLeft=-c,a.scrollTop=-u,a.style.scrollBehavior=d}),s&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function av(e,t,n){let o=!1,i=-1,r=-1;function s(a){nv(()=>{const l=performance.now();e.updateLocation.value?.(a),o=(performance.now()-l)/(1e3/60)>2})}r=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{Cd(ds(e.target.value,e.contentEl.value),a=>{o?(cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{s(a)})})):s(a)})})}),_e(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(r),cancelAnimationFrame(i)})}function ds(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(n=>!t?.contains(n)):e??t}function Cd(e,t){const n=[document,...Ro(e)];
11n.forEach(o=>{o.addEventListener("scroll",t,{passive:!0})}),_e(()=>{n.forEach(o=>{o.removeEventListener("scroll",t)})})}const lv=Symbol.for("vuetify:v-menu"),cv=$({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function uv(e,t){let n=()=>{};function o(s,a){n?.();const l=s?e.openDelay:e.closeDelay,c=Math.max(a?.minDelay??0,Number(l??0));return new Promise(u=>{n=ip(c,()=>{t?.(s),u(s)})})}function i(){return o(!0)}function r(s){return o(!1,s)}return{clearDelay:n,runOpenDelay:i,runCloseDelay:r}}const dv=$({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...cv()},"VOverlay-activator");function hv(e,t){let{isActive:n,isTop:o,contentEl:i}=t;const r=we("useActivator"),s=D();let a=!1,l=!1,c=!0;const u=O(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),d=O(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!u.value),{runOpenDelay:h,runCloseDelay:p}=uv(e,g=>{g===(e.openOnHover&&a||u.value&&l)&&!(e.openOnHover&&n.value&&!o.value)&&(n.value!==g&&(c=!0),n.value=g)}),m=D(),f={onClick:g=>{g.stopPropagation(),s.value=g.currentTarget||g.target,n.value||(m.value=[g.clientX,g.clientY]),n.value=!n.value},onMouseenter:g=>{a=!0,s.value=g.currentTarget||g.target,h()},onMouseleave:g=>{a=!1,p()},onFocus:g=>{iu(g.target,":focus-visible")!==!1&&(l=!0,g.stopPropagation(),s.value=g.currentTarget||g.target,h())},onBlur:g=>{l=!1,g.stopPropagation(),p({minDelay:1})}},b=O(()=>{const g={};return d.value&&(g.onClick=f.onClick),e.openOnHover&&(g.onMouseenter=f.onMouseenter,g.onMouseleave=f.onMouseleave),u.value&&(g.onFocus=f.onFocus,g.onBlur=f.onBlur),g}),v=O(()=>{const g={};if(e.openOnHover&&(g.onMouseenter=()=>{a=!0,h()},g.onMouseleave=()=>{a=!1,p()}),u.value&&(g.onFocusin=C=>{C.target.matches(":focus-visible")&&(l=!0,h())},g.onFocusout=()=>{l=!1,p({minDelay:1})}),e.closeOnContentClick){const C=ye(lv,null);g.onClick=()=>{n.value=!1,C?.closeParents()}}return g}),y=O(()=>{const g={};return e.openOnHover&&(g.onMouseenter=()=>{c&&(a=!0,c=!1,h())},g.onMouseleave=()=>{a=!1,p()}),g});q(o,g=>{g&&(e.openOnHover&&!a&&(!u.value||!l)||u.value&&!l&&(!e.openOnHover||!a))&&!i.value?.contains(document.activeElement)&&(n.value=!1)}),q(n,g=>{g||setTimeout(()=>{m.value=void 0})},{flush:"post"});const k=hr();qe(()=>{k.value&&me(()=>{s.value=k.el})});const w=hr(),x=O(()=>e.target==="cursor"&&m.value?m.value:w.value?w.el:Sd(e.target,r)||s.value),E=O(()=>Array.isArray(x.value)?void 0:x.value);let T;return q(()=>!!e.activator,g=>{g&&ue?(T=Vr(),T.run(()=>{fv(e,r,{activatorEl:s,activatorEvents:b})})):T&&T.stop()},{flush:"post",immediate:!0}),_e(()=>{T?.stop()}),{activatorEl:s,activatorRef:k,target:x,targetEl:E,targetRef:w,activatorEvents:b,contentEvents:v,scrimEvents:y}}function fv(e,t,n){let{activatorEl:o,activatorEvents:i}=n;q(()=>e.activator,(l,c)=>{if(c&&l!==c){const u=a(c);u&&s(u)}l&&me(()=>r())},{immediate:!0}),q(()=>e.activatorProps,()=>{r()}),_e(()=>{s()});function r(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&lp(l,Q(i.value,c))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&cp(l,Q(i.value,c))}function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const c=Sd(l,t);return o.value=c?.nodeType===Node.ELEMENT_NODE?c:void 0,o.value}}function Sd(e,t){if(!e)return;let n;if(e==="parent"){let o=t?.proxy?.$el?.parentNode;for(;o?.hasAttribute("data-no-activator");)o=o.parentNode;n=o}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}const pv=$({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),wo=new Map;let Cc=0;function Sc(e){const t=document.activeElement;if(e.key!=="Tab"||!t)return;const n=Array.from(wo.values()).filter(c=>{let{isActive:u,contentEl:d}=c;return u.value&&d.value?.contains(t)}).map(c=>c.contentEl.value);let o,i=t.parentElement;for(;i;){if(n.includes(i)){o=i;break}i=i.parentElement}if(!o)return;const r=zn(o).filter(c=>c.tabIndex>=0);if(!r.length)return;const s=document.activeElement;if(r.length===1&&r[0].classList.contains("v-list")&&r[0].contains(s)){e.preventDefault();return}const a=r[0],l=r[r.length-1];e.shiftKey&&(s===a||a.classList.contains("v-list")&&a.contains(s))&&(e.preventDefault(),l.focus()),!e.shiftKey&&(s===l||l.classList.contains("v-list")&&l.contains(s))&&(e.preventDefault(),a.focus())}function mv(e,t){let{isActive:n,localTop:o,activatorEl:i,contentEl:r}=t;const s=Symbol("trap");let a=!1,l=-1;async function c(){a=!0,l=window.setTimeout(()=>{a=!1},100)}async function u(p){const m=p.relatedTarget,f=p.target;document.removeEventListener("pointerdown",c),document.removeEventListener("keydown",d),await me(),n.value&&!a&&m!==f&&r.value&&Ce(o)&&![document,r.value].includes(f)&&!r.value.contains(f)&&zn(r.value)[0]?.focu
11s()}function d(p){if(p.key==="Tab"&&(document.removeEventListener("keydown",d),n.value&&r.value&&p.target&&!r.value.contains(p.target))){const m=zn(document.documentElement);if(p.shiftKey&&p.target===m.at(0)||!p.shiftKey&&p.target===m.at(-1)){const f=zn(r.value);f.length>0&&(p.preventDefault(),f[0].focus())}}}const h=I(()=>n.value&&e.captureFocus&&!e.disableInitialFocus);ue&&(q(()=>e.retainFocus,p=>{p?wo.set(s,{isActive:n,contentEl:r}):wo.delete(s)},{immediate:!0}),q(h,p=>{p?(document.addEventListener("pointerdown",c),document.addEventListener("focusin",u,{once:!0}),document.addEventListener("keydown",d)):(document.removeEventListener("pointerdown",c),document.removeEventListener("focusin",u),document.removeEventListener("keydown",d))},{immediate:!0}),Cc++<1&&document.addEventListener("keydown",Sc)),_e(()=>{wo.delete(s),clearTimeout(l),document.removeEventListener("pointerdown",c),document.removeEventListener("focusin",u),document.removeEventListener("keydown",d),--Cc<1&&document.removeEventListener("keydown",Sc)})}function gv(){if(!ue)return X(!1);const{ssr:e}=yu();if(e){const t=X(!1);return Bn(()=>{t.value=!0}),t}else return X(!0)}const vv=$({eager:Boolean},"lazy");function bv(e,t){const n=X(!1),o=I(()=>n.value||e.eager||t.value);q(t,()=>n.value=!0);function i(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:o,onAfterLeave:i}}function Ed(){const t=we("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const Ec=Symbol.for("vuetify:stack"),jn=Kt([]);function yv(e,t,n){const o=we("useStack"),i=!n,r=ye(Ec,void 0),s=Kt({activeChildren:new Set});Ve(Ec,s);const a=X(Number(Ce(t)));Jt(e,()=>{const u=jn.at(-1)?.[1];a.value=u?u+10:Number(Ce(t)),i&&jn.push([o.uid,a.value]),r?.activeChildren.add(o.uid),_e(()=>{if(i){const d=ve(jn).findIndex(h=>h[0]===o.uid);jn.splice(d,1)}r?.activeChildren.delete(o.uid)})});const l=X(!0);i&&qe(()=>{const u=jn.at(-1)?.[0]===o.uid;setTimeout(()=>l.value=u)});const c=I(()=>!s.activeChildren.size);return{globalTop:Hr(l),localTop:c,stackStyles:I(()=>({zIndex:a.value}))}}function kv(e){return{teleportTarget:O(()=>{const n=e();if(n===!0||!ue)return;const o=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(o==null)return;let i=[...o.children].find(r=>r.matches(".v-overlay-container"));return i||(i=document.createElement("div"),i.className="v-overlay-container",o.appendChild(i)),i})}}function wv(){return!0}function Td(e,t,n){if(!e||_d(e,n)===!1)return!1;const o=mu(t);if(typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&o.host===e.target)return!1;const i=(typeof n.value=="object"&&n.value.include||(()=>[]))();return i.push(t),!i.some(r=>r?.contains(e.target))}function _d(e,t){return(typeof t.value=="object"&&t.value.closeConditional||wv)(e)}function xv(e,t,n){const o=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&Td(e,t,n)&&setTimeout(()=>{_d(e,n)&&o&&o(e)},0)}function Tc(e,t){const n=mu(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const _c={mounted(e,t){const n=i=>xv(i,e,t),o=i=>{e._clickOutside.lastMousedownWasOutside=Td(i,e,t)};Tc(e,i=>{i.addEventListener("click",n,!0),i.addEventListener("mousedown",o,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:o}},beforeUnmount(e,t){e._clickOutside&&(Tc(e,n=>{if(!n||!e._clickOutside?.[t.instance.$.uid])return;const{onClick:o,onMousedown:i}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",o,!0),n.removeEventListener("mousedown",i,!0)}),delete e._clickOutside[t.instance.$.uid])}};function Cv(e){const{modelValue:t,color:n,...o}=e;return S(Yt,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&_("div",Q({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},o),null)]})}const Bd=$({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...dv(),...ie(),...tn(),...vv(),...Zg(),...ov(),...pv(),...Ae(),...di()},"VOverlay"),Bc=Z()({name:"VOverlay",directives:{vClickOutside:_c},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...On(Bd(),["disableInitialFocus"])},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,keydown:e=>
11!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:o,emit:i}=t;const r=we("VOverlay"),s=D(),a=D(),l=D(),c=Se(e,"modelValue"),u=O({get:()=>c.value,set:V=>{V&&e.disabled||(c.value=V)}}),{themeClasses:d}=Ke(e),{rtlClasses:h,isRtl:p}=oo(),{hasContent:m,onAfterLeave:f}=bv(e,u),b=Mt(()=>typeof e.scrim=="string"?e.scrim:null),{globalTop:v,localTop:y,stackStyles:k}=yv(u,()=>e.zIndex,e._disableGlobalStack),{activatorEl:w,activatorRef:x,target:E,targetEl:T,targetRef:g,activatorEvents:C,contentEvents:P,scrimEvents:N}=hv(e,{isActive:u,isTop:y,contentEl:l}),{teleportTarget:j}=kv(()=>{const V=e.attach||e.contained;if(V)return V;const Le=w?.value?.getRootNode()||r.proxy?.$el?.getRootNode();return Le instanceof ShadowRoot?Le:!1}),{dimensionStyles:L}=nn(e),A=gv(),{scopeId:M}=Ed();q(()=>e.disabled,V=>{V&&(u.value=!1)});const{contentStyles:F,updateLocation:H}=Jg(e,{isRtl:p,contentEl:l,target:E,isActive:u});iv(e,{root:s,contentEl:l,targetEl:T,target:E,isActive:u,updateLocation:H});function W(V){i("click:outside",V),e.persistent?Be():u.value=!1}function oe(V){return u.value&&y.value&&(!e.scrim||V.target===a.value||V instanceof MouseEvent&&V.shadowTarget===a.value)}mv(e,{isActive:u,localTop:y,contentEl:l,activatorEl:w}),ue&&q(u,V=>{V?window.addEventListener("keydown",J):window.removeEventListener("keydown",J)},{immediate:!0}),bt(()=>{ue&&window.removeEventListener("keydown",J)});function J(V){V.key==="Escape"&&v.value&&(l.value?.contains(document.activeElement)||i("keydown",V),e.persistent?Be():(u.value=!1,l.value?.contains(document.activeElement)&&w.value?.focus()))}function re(V){V.key==="Escape"&&!v.value||i("keydown",V)}const be=Em();Jt(()=>e.closeOnBack,()=>{Tm(be,V=>{v.value&&u.value?(V(!1),e.persistent?Be():u.value=!1):V()})});const ke=D();q(()=>u.value&&(e.absolute||e.contained)&&j.value==null,V=>{if(V){const Le=Np(s.value);Le&&Le!==document.scrollingElement&&(ke.value=Le.scrollTop)}});function Be(){e.noClickAnimation||l.value&&Ot(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:$o})}function lt(){i("afterEnter")}function Ye(){f(),i("afterLeave")}return ne(()=>_(fe,null,[n.activator?.({isActive:u.value,targetRef:g,props:Q({ref:x},C.value,e.activatorProps)}),A.value&&m.value&&S(qf,{disabled:!j.value,to:j.value},{default:()=>[_("div",Q({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":u.value,"v-overlay--contained":e.contained},d.value,h.value,e.class],style:[k.value,{"--v-overlay-opacity":e.opacity,top:z(ke.value)},e.style],ref:s,onKeydown:re},M,o),[S(Cv,Q({color:b,modelValue:u.value&&!!e.scrim,ref:a},N.value),null),S(It,{appear:!0,persisted:!0,transition:e.transition,target:E.value,onAfterEnter:lt,onAfterLeave:Ye},{default:()=>[Fe(_("div",Q({ref:l,class:["v-overlay__content",e.contentClass],style:[L.value,F.value]},P.value,e.contentProps),[n.default?.({isActive:u})]),[[eo,u.value],[_c,{handler:W,closeConditional:oe,include:()=>[w.value]}]])]})])]})])),{activatorEl:w,scrimEl:a,target:E,animateClick:Be,contentEl:l,rootEl:s,globalTop:v,localTop:y,updateLocation:H}}}),Sv=$({fullscreen:Boolean,scrollable:Boolean,...On(Bd({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:$m},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),Ev=Z()({name:"VDialog",props:Sv(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:o}=t;const i=Se(e,"modelValue"),{scopeId:r}=Ed(),s=D();function a(){n("afterEnter"),(e.scrim||e.retainFocus)&&s.value?.contentEl&&!s.value.contentEl.contains(document.activeElement)&&s.value.contentEl.focus({preventScroll:!0})}function l(){n("afterLeave")}return q(i,async c=>{c||(await me(),s.value.activatorEl?.focus({preventScroll:!0}))}),ne(()=>{const c=Bc.filterProps(e),u=Q({"aria-haspopup":"dialog"},e.activatorProps),d=Q({tabindex:-1},e.contentProps);return S(Bc,Q({ref:s,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},c,{modelValue:i.value,"onUpdate:modelValue":h=>i.value=h,"aria-modal":"true",activatorProps:u,contentProps:d,height:e.fullscreen?void 0:e.he
11ight,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:a,onAfterLeave:l},r),{activator:o.activator,default:function(){for(var h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return S(De,{root:"VDialog"},{default:()=>[o.default?.(...p)]})}})}),pi({},s)}}),Tv=$({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...fi(),...Yu()},"VSwitch"),_v=Z()({name:"VSwitch",inheritAttrs:!1,props:Tv(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:o}=t;const i=Se(e,"indeterminate"),r=Se(e,"modelValue"),{loaderClasses:s}=ui(e),{isFocused:a,focus:l,blur:c}=hi(e),u=D(),d=D(),h=Wr&&window.matchMedia("(forced-colors: active)").matches,p=I(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),m=$t(),f=I(()=>e.id||`switch-${m}`);function b(){i.value&&(i.value=!1)}function v(y){y.stopPropagation(),y.preventDefault(),u.value?.input?.click()}return ne(()=>{const[y,k]=oi(n),w=Cn.filterProps(e),x=mc.filterProps(e);return S(Cn,Q({ref:d,class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":i.value},s.value,e.class]},y,w,{modelValue:r.value,"onUpdate:modelValue":E=>r.value=E,id:f.value,focused:a.value,style:e.style}),{...o,default:E=>{let{id:T,messagesId:g,isDisabled:C,isReadonly:P,isValid:N}=E;const j={model:r,isValid:N};return S(mc,Q({ref:u},x,{modelValue:r.value,"onUpdate:modelValue":[L=>r.value=L,b],id:T.value,"aria-describedby":g.value,type:"checkbox","aria-checked":i.value?"mixed":void 0,disabled:C.value,readonly:P.value,onFocus:l,onBlur:c},k),{...o,default:L=>{let{backgroundColorClasses:A,backgroundColorStyles:M}=L;return _("div",{class:Y(["v-switch__track",h?void 0:A.value]),style:te(M.value),onClick:v},[o["track-true"]&&_("div",{key:"prepend",class:"v-switch__track-true"},[o["track-true"](j)]),o["track-false"]&&_("div",{key:"append",class:"v-switch__track-false"},[o["track-false"](j)])])},input:L=>{let{inputNode:A,icon:M,backgroundColorClasses:F,backgroundColorStyles:H}=L;return _(fe,null,[A,_("div",{class:Y(["v-switch__thumb",{"v-switch__thumb--filled":M||e.loading},e.inset||h?void 0:F.value]),style:te(e.inset?void 0:H.value)},[o.thumb?S(De,{defaults:{VIcon:{icon:M,size:"x-small"}}},{default:()=>[o.thumb({...j,icon:M})]}):S(Rm,null,{default:()=>[e.loading?S(os,{name:"v-switch",active:!0,color:N.value===!1?void 0:p.value},{default:W=>o.loader?o.loader(W):S(Eu,{active:W.isActive,color:W.color,indeterminate:!0,size:"16",width:"2"},null)}):M&&S(Je,{key:String(M),icon:M,size:"x-small"},null)]})])])}})}})}),pi({},d)}}),Bv=$({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...Uu(),...fi(),...ss()},"VTextarea"),Yi=Z()({name:"VTextarea",directives:{vIntersect:Sn},inheritAttrs:!1,props:Bv(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,t){let{attrs:n,emit:o,slots:i}=t;const r=Se(e,"modelValue"),{isFocused:s,focus:a,blur:l}=hi(e),{onIntersect:c}=Wu(e),u=O(()=>typeof e.counterValue=="function"?e.counterValue(r.value):(r.value||"").toString().length),d=O(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),h=D(),p=D(),m=X(""),f=D(),b=D(0),{platform:v}=yu(),y=zu(e),k=O(()=>e.persistentPlaceholder||s.value||e.active);function w(){y.isSuppressing.value&&y.update(),f.value!==document.activeElement&&f.value?.focus(),s.value||a()}function x(A){w(),o("click:control",A)}function E(A){o("mousedown:control",A)}function T(A){A.stopPropagation(),w(),me(()=>{r.value="",Gr(e["onClick:clear"],A)})}function g(A){const M=A.target;if(!e.modelModifiers?.trim){r.value=M.value;return}const F=M.value,H=M.selectionStart,W=M.selectionEnd;r.value=F,me(()=>{let oe=0;F.trimStart().length===M.value.length&&(oe=F.length-M.value.length),H!=null&&(M.selectionStart=H-oe),W!=null&&(M.selectionEnd=W-oe)}
11)}const C=D(),P=D(Number(e.rows)),N=O(()=>["plain","underlined"].includes(e.variant));qe(()=>{e.autoGrow||(P.value=Number(e.rows))});function j(){me(()=>{if(!f.value)return;if(v.value.firefox){b.value=12;return}const{offsetWidth:A,clientWidth:M}=f.value;b.value=Math.max(0,A-M)}),e.autoGrow&&me(()=>{if(!C.value||!p.value)return;const A=getComputedStyle(C.value),M=getComputedStyle(p.value.$el),F=parseFloat(A.getPropertyValue("--v-field-padding-top"))+parseFloat(A.getPropertyValue("--v-input-padding-top"))+parseFloat(A.getPropertyValue("--v-field-padding-bottom")),H=C.value.scrollHeight,W=parseFloat(A.lineHeight),oe=Math.max(parseFloat(e.rows)*W+F,parseFloat(M.getPropertyValue("--v-input-control-height"))),J=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*W+F||1/0,re=At(H??0,oe,J);P.value=Math.floor((re-F)/W),m.value=z(re)})}Bn(j),q(r,j),q(()=>e.rows,j),q(()=>e.maxHeight,j),q(()=>e.maxRows,j),q(()=>e.density,j),q(P,A=>{o("update:rows",A)});let L;return q(C,A=>{A?(L=new ResizeObserver(j),L.observe(C.value)):L?.disconnect()}),bt(()=>{L?.disconnect()}),ne(()=>{const A=!!(i.counter||e.counter||e.counterValue),M=!!(A||i.details),[F,H]=oi(n),{modelValue:W,...oe}=Cn.filterProps(e),J={...Ho.filterProps(e),"onClick:clear":T};return S(Cn,Q({ref:h,modelValue:r.value,"onUpdate:modelValue":re=>r.value=re,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":N.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?z(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":z(b.value)},e.style]},F,oe,{centerAffix:P.value===1&&!N.value,focused:s.value}),{...i,default:re=>{let{id:be,isDisabled:ke,isDirty:Be,isReadonly:lt,isValid:Ye,hasDetails:V}=re;return S(Ho,Q({ref:p,style:{"--v-textarea-control-height":m.value},onClick:x,onMousedown:E,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},J,{id:be.value,active:k.value||Be.value,labelId:`${be.value}-label`,centerAffix:P.value===1&&!N.value,dirty:Be.value||e.dirty,disabled:ke.value,focused:s.value,details:V.value,error:Ye.value===!1}),{...i,default:Le=>{let{props:{class:ln,...Nn},controlRef:ji}=Le;return _(fe,null,[e.prefix&&_("span",{class:"v-text-field__prefix"},[e.prefix]),Fe(_("textarea",Q({ref:cn=>f.value=ji.value=cn,class:ln,value:r.value,onInput:g,autofocus:e.autofocus,readonly:lt.value,disabled:ke.value,placeholder:e.placeholder,rows:e.rows,name:y.fieldName.value,autocomplete:y.fieldAutocomplete.value,onFocus:w,onBlur:l,"aria-labelledby":`${be.value}-label`},Nn,H),null),[[Sn,{handler:c},null,{once:!0}]]),e.autoGrow&&Fe(_("textarea",{class:Y([ln,"v-textarea__sizer"]),id:`${Nn.id}-sizer`,"onUpdate:modelValue":cn=>r.value=cn,ref:C,readonly:!0,"aria-hidden":"true"},null),[[Gf,r.value]]),e.suffix&&_("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:M?re=>_(fe,null,[i.details?.(re),A&&_(fe,null,[_("span",null,null),S(Du,{active:e.persistentCounter||s.value,value:u.value,max:d.value,disabled:e.disabled},i.counter)])]):void 0})}),pi({},h,p,f)}});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ce-hint--align-start{text-align:left}.ce-hint--align-center{text-align:center}.ce-hint__description{opacity:.6;margin-top:3px}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var Xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ov(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),n}function Xi(){}Object.assign(Xi,{default:Xi,register:Xi,revert:function(){},__esModule:!0});Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){const t=(this.document||this.ownerDocument).querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1});Element.prototype.closest||(Element.prototype.closest=function(e){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null);return null});Element.prototype.prepend||(Element.prototype.prepend=function(e){const t=document.createDocumentFragment();Array.isArray(e)||(e=[e]),e.forEach(n=>{const o=n instanceof Node;t.appendChild(o?n:document.createTextNode(n))}),this.insertBefore(t,this.firstChild)});Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(e){e=arguments.length===0?!0:!!e;const t=this.parentNode,n=window.getComputedStyle(t,null),o=parseInt(n.getPropertyValue("border-top-width")),i=parseInt(n.getPropertyValue("border-left-width")),r=this.offsetTop-t.offsetTop<t.scrollTop,s=this.offsetTop-t.offsetTop+this.clientHeight-o>t.scrollTop+t.clientHeight,a=this.offsetLeft-t.offsetLeft<t.scrollLeft,l=this.offsetLeft-t.offsetLeft+this.clientWidth-i>t.scrollLeft+t.clientWidth,c=r&&!s;(r||s)&&e&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-o+this.clientHeight/2),(a||l)&&e&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-i+this.clientWidth/2),(r||s||a||l)&&!e&&this.scrollIntoView(c)});window.requestIdleCallback=window.requestIdleCallback||function(e){const t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)};window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)};let Iv=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var Od=(e=>(e.VERBOSE="VERBOSE",e.INFO="INFO",e.WARN="WARN",e.ERROR="ERROR",e))(Od||{});const K={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46},Pv={LEFT:0};function so(e,t,n="log",o,i="color: inherit"){if(!("console"in window)||!window.console[n])return;
vendor: 20,317 bytes, lines 11-20
11const r=["info","log","warn","error"].includes(n),s=[];switch(so.logLevel){case"ERROR":if(n!=="error")return;break;case"WARN":if(!["error","warn"].includes(n))return;break;case"INFO":if(!r||e)return;break}o&&s.push(o);const a="Editor.js 2.31.6";e&&(r?(s.unshift(`line-height: 1em; 12 color: #006FEA; 13 display: inline-block; 14 font-size: 11px; 15 line-height: 1em; 16 background-color: #fff; 17 padding: 4px 9px; 18 border-radius: 30px; 19 border: 1px solid rgba(56, 138, 229, 0.16); 20 margin: 4px 5px 4px 0;`,i),t=`%c${a}%c ${t}`):t=`( ${a} )${t}`);try{r?o?console[n](`${t} %o`,...s):console[n](t,...s):console[n](t)}catch{}}so.logLevel="VERBOSE";function Mv(e){so.logLevel=e}const se=so.bind(window,!1),Ue=so.bind(window,!0);function en(e){return Object.prototype.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function de(e){return en(e)==="function"||en(e)==="asyncfunction"}function Ee(e){return en(e)==="object"}function vt(e){return en(e)==="string"}function Av(e){return en(e)==="boolean"}function Oc(e){return en(e)==="number"}function Ic(e){return en(e)==="undefined"}function Ge(e){return e?Object.keys(e).length===0&&e.constructor===Object:!0}function Id(e){return e>47&&e<58||e===32||e===13||e===229||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223}async function Lv(e,t=()=>{},n=()=>{}){async function o(i,r,s){try{await i.function(i.data),await r(Ic(i.data)?{}:i.data)}catch{s(Ic(i.data)?{}:i.data)}}return e.reduce(async(i,r)=>(await i,o(r,t,n)),Promise.resolve())}function Pd(e){return Array.prototype.slice.call(e)}function Wo(e,t){return function(){const n=this,o=arguments;window.setTimeout(()=>e.apply(n,o),t)}}function Nv(e){return e.name.split(".").pop()}function jv(e){return/^[-\w]+\/([-+\w]+|\*)$/.test(e)}function Pc(e,t,n){let o;return(...i)=>{const r=this,s=()=>{o=null,e.apply(r,i)};window.clearTimeout(o),o=window.setTimeout(s,t)}}function Er(e,t,n=void 0){let o,i,r,s=null,a=0;n||(n={});const l=function(){a=n.leading===!1?0:Date.now(),s=null,r=e.apply(o,i),s||(o=i=null)};return function(){const c=Date.now();!a&&n.leading===!1&&(a=c);const u=t-(c-a);return o=this,i=arguments,u<=0||u>t?(s&&(clearTimeout(s),s=null),a=c,r=e.apply(o,i),s||(o=i=null)):!s&&n.trailing!==!1&&(s=setTimeout(l,u)),r}}function $v(){const e={win:!1,mac:!1,x11:!1,linux:!1},t=Object.keys(e).find(n=>window.navigator.appVersion.toLowerCase().indexOf(n)!==-1);return t&&(e[t]=!0),e}function qo(e){return e[0].toUpperCase()+e.slice(1)}function Tr(e,...t){if(!t.length)return e;const n=t.shift();if(Ee(e)&&Ee(n))for(const o in n)Ee(n[o])?(e[o]||Object.assign(e,{[o]:{}}),Tr(e[o],n[o])):Object.assign(e,{[o]:n[o]});return Tr(e,...t)}function hs(e){const t=$v();return e=e.replace(/shift/gi,"â§").replace(/backspace/gi,"â«").replace(/enter/gi,"â").replace(/up/gi,"â").replace(/left/gi,"â").replace(/down/gi,"â").replace(/right/gi,"â").replace(/escape/gi,"â").replace(/insert/gi,"Ins").replace(/delete/gi,"â¡").replace(/\+/gi," + "),t.mac?e=e.replace(/ctrl|cmd/gi,"â").replace(/alt/gi,"â¥"):e=e.replace(/cmd/gi,"Ctrl").replace(/windows/gi,"WIN"),e}function Rv(e){try{return new URL(e).href}catch{}return e.substring(0,2)==="//"?window.location.protocol+e:window.location.origin+e}function Dv(){return Iv(10)}function Fv(e){window.open(e,"_blank")}function Vv(e=""){return`${e}${Math.floor(Math.random()*1e8).toString(16)}`}function _r(e,t,n){const o=`«${t}» is deprecated and will be removed in the next major release. Please use the «${n}» instead.`;e&&Ue(o,"warn")}function An(e,t,n){const o=n.value?"value":"get",i=n[o],r=`#${t}Cache`;if(n[o]=function(...s){return this[r]===void 0&&(this[r]=i.apply(this,...s)),this[r]},o==="get"&&n.set){const s=n.set;n.set=function(a){delete e[r],s.apply(this,a)}}return n}const Md=650;function Ln(){return window.matchMedia(`(max-width: ${Md}px)`).matches}const Br=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1);function Hv(e,t){const n=Array.isArray(e)||Ee(e),o=Array.isArray(t)||Ee(t);return n||o?JSON.stringify(e)===JSON.stringify(t):e===t}let B=class Ie{static isSingleTag(t){return t.tagName&&["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"].includes(t.tagName)}static isLineBreakTag(t){return t&&t.tagName&&["BR","WBR"].includes(t.tagName)}static make(t,n=null,o={}){const i=document.createElement(t);if(Array.isArray(n)){const r=n.filter(s=>s!==void 0);i.classList.add(...r)}else n&&i.classList.add(n);for(const r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o[r]);return i}static text(t){return document.createTextNode(t)}static append(t,n){Array.isArray(n)?n.forEach(o=>t.appendChild(o)):t.appendChild(n)}static prepend(t,n){Array.isArray(n)?(n=n.reverse(),n.forEach(o=>t.prepend(o))):t.prepend(n)}static swap(t,n){const o=document.createElement("div"),i=t.parentNode;i.insertBefore(o,t),i.insertBefore(t,n),i.insertBefore(n,o),i.removeChild(o)}static find(t=document,n){return t.querySelector(n)}static get(t){return document.getElementById(t)}static findAll(t=document,n){return t.querySelectorAll(n)}static get allInputsSelector(){return"[contenteditable=true], textarea, input:not([type]), "+["text","password","email","number","search","tel","url"].map(t=>`input[type="${t}"]`).join(", ")}static findAllInputs(t){return Pd(t.querySelectorAll(Ie.allInputsSelector)).reduce((n,o)=>Ie.isNativeInput(o)||Ie.containsOnlyInlineElements(o)?[...n,o]:[...n,...Ie.getDeepestBlockElements(o)],[])}static getDeepestNode(t,n=!1){const o=n?"lastChild":"firstChild",i=n?"previousSibling":"nextSibling";if(t&&t.nodeType===Node.ELEMENT_NODE&&t[o]){let r=t[o];if(Ie.isSingleTag(r)&&!Ie.isNativeInput(r)&&!Ie.isLineBreakTag(r))if(r[i])r=r[i];else if(r.parentNode[i])r=r.parentNode[i];else return r.parentNode;return this.getDeepestNode(r,n)}return t}static isElement(t){return Oc(t)?!1:t&&t.nodeType&&t.nodeType===Node.ELEMENT_NODE}static isFragment(t){return Oc(t)?!1:t&&t.nodeType&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isContentEditable(t){return t.contentEditable==="true"}static isNativeInput(t){const n=["INPUT","TEXTAREA"];return t&&t.tagName?n.includes(t.tagName):!1}static canSetCaret(t){let n=!0;if(Ie.isNativeInput(t))switch(t.type){case"file":case"checkbox":case"radio":case"hidden":case"submit":case"button":case"image":case"reset":n=!1;break}else n=Ie.isContentEditable(t);return n}static isNodeEmpty(t,n){let o;return this.isSingleTag(t)&&!this.isLineBreakTag(t)?!1:(this.isElement(t)&&this.isNativeInput(t)?o=t.value:o=t.textContent.replace("â",""),n&&(o=o.replace(new RegExp(n,"g"),"")),o.length===0)}static isLeaf(t){return t?t.childNodes.length===0:!1}static isEmpty(t,n){const o=[t];for(;o.length>0;)if(t=o.shift(),!!t){if(this.isLeaf(t)&&!this.isNodeEmpty(t,n))return!1;t.childNodes&&o.push(...Array.from(t.childNodes))}return!0}static isHTMLString(t){const n=Ie.make("div");return n.innerHTML=t,n.childElementCount>0}static getContentLength(t){return Ie.isNativeInput(t)?t.value.length:t.nodeType===Node.TEXT_NODE?t.length:t.textContent.length}static get blockElements(){return["address","article","aside","blockquote","canvas","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","ruby","section","table","tbody","thead","tr","tfoot","ul","video"]}static containsOnlyInlineElements(t){let n;vt(t)?(n=document.createElement("div"),n.innerHTML=t):n=t;const o=i=>!Ie.blockElements.includes(i.tagName.toLowerCase())&&Array.from(i.children).every(o);return Array.from(n.children).every(o)}static getDeepestBlockElements(t){return Ie.containsOnlyInlineElements(t)?[t]:Array.from(t.children).reduce((n,o)=>[...n,...Ie.getDeepestBlockElements(o)],[])}static getHolder(t){return vt(t)?document.getElementById(t):t}static isAnchor(t){return t.tagName.toLowerCase()==="a"}static getClosestAnchor(t){return t.closest("a")}static offset(t){const n=t.getBoundingClientRect(),o=window.pageXOffset||document.documentElement.scrollLeft,i=window.pageYOffset||document.documentElement.scrollTop,r=n.top+i,s=n.left+o;return{top:r,left:s,bottom:r+n.height,right:s+n.width}}static getNodeByOffset(t,n){let o=0,i=null;const r=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null);let s=r.nextNode();for(;s;){const c=s.textContent,u=c===null?0:c.length;if(i=s,o+u>=n)break;o+=u,s=r.nextNode()}if(!i)return{node:null,offset:0};const a=i.textContent;if(a===null||a.length===0)return{node:null,offset:0};const l=Math.min(n-o,a.length);return{node:i,offset:l}}};function Uv(e){return!/[^\t\n\r ]/.test(e)}function zv(e){const t=window.getComputedStyle(e),n=parseFloat(t.fontSize),o=parseFloat(t.lineHeight)||n*1.2,i=parseFloat(t.paddingTop),r=parseFloat(t.borderTopWidth),s=parseFloat(t.marginTop),a=n*.8,l=(o-n)/2;return s+r+i+l+a}function Ad(e){e.dataset.empty=B.isEmpty(e)?"true":"false"}const Wv={blockTunes:{toggler:{"Click to tune":"","or drag to move":""}},inlineToolbar:{converter:{"Convert to":""}},toolbar:{toolbox:{Add:""}},popover:{Filter:"","Nothing found":"","Convert to":""}},qv={Text:"",Link:"",Bold:"",Italic:""},Gv={link:{"Add a link":""},stub:{"The block can not be displayed correctly.":""}},Kv={delete:{Delete:"","Click to delete":""},moveUp:{"Move up":""},moveDown:{"Move down":""}},Ld={ui:Wv,toolNames:qv,tools:Gv,blockTunes:Kv},Nd=class bn{static ui(t,n){return bn._t(t,n)}static t(t,n){return bn._t(t,n)}static setDictionary(t){bn.currentDictionary=t}static _t(t,n){const o=bn.getNamespace(t);return!o||!o[n]?n:o[n]}static getNamespace(t){return t.split(".").reduce((n,o)=>!n||!Object.keys(n).length?{}:n[o],bn.currentDictionary)}};Nd.currentDictionary=Ld;let Me=Nd;class jd extends Error{}let ao=class{constructor(){this.subscribers={}}on(t,n){t in this.subscribers||(this.subscribers[t]=[]),this.subscribers[t].push(n)}once(t,n){t in this.subscribers||(this.subscribers[t]=[]);const o=i=>{const r=n(i),s=this.subscribers[t].indexOf(o);return s!==-1&&this.subscribers[t].splice(s,1),r};this.subscribers[t].push(o)}emit(t,n){Ge(this.subscribers)||!this.subscribers[t]||this.subscribers[t].reduce((o,i)=>{const r=i(o);return r!==void 0?r:o},n)}off(t,n){if(this.subscribers[t]===void 0){console.warn(`EventDispatcher .off(): there is no subscribers for event "${t.toString()}". Probably, .off() called before .on()`);return}for(let o=0;o<this.subscribers[t].length;o++)if(this.subscribers[t][o]===n){delete this.subscribers[t][o];break}}destroy(){this.subscribers={}}};function ht(e){Object.setPrototypeOf(this,{get id(){return e.id},get name(){return e.name},get config(){return e.config},get holder(){return e.holder},get isEmpty(){return e.isEmpty},get selected(){return e.selected},set stretched(t){e.stretched=t},get stretched(){return e.stretched},get focusable(){return e.focusable},call(t,n){return e.call(t,n)},save(){return e.save()},validate(t){return e.validate(t)},dispatchChange(){e.dispatchChange()},getActiveToolboxEntry(){return e.getActiveToolboxEntry()}})}let lo=class{constructor(){this.allListeners=[]}on(t,n,o,i=!1){const r=Vv("l"),s={id:r,element:t,eventType:n,handler:o,options:i};if(!this.findOne(t,n,o))return this.allListeners.push(s),t.addEventListener(n,o,i),r}off(t,n,o,i){const r=this.findAll(t,n,o);r.forEach((s,a)=>{const l=this.allListeners.indexOf(r[a]);l>-1&&(this.allListeners.splice(l,1),s.element.removeEventListener(s.eventType,s.handler,s.options))})}offById(t){const n=this.findById(t);n&&n.element.removeEventListener(n.eventType,n.handler,n.options)}findOne(t,n,o){const i=this.findAll(t,n,o);return i.length>0?i[0]:null}findAll(t,n,o){let i;const r=t?this.findByEventTarget(t):[];return t&&n&&o?i=r.filter(s=>s.eventType===n&&s.handler===o):t&&n?i=r.filter(s=>s.eventType===n):i=r,i}removeAll(){this.allListeners.map(t=>{t.element.removeEventListener(t.eventType,t.handler,t.options)}),this.allListeners=[]}destroy(){this.removeAll()}findByEventTarget(t){return this.allListeners.filter(n=>{if(n.element===t)return n})}findByType(t){return this.allListeners.filter(n=>{if(n.eventType===t)return n})}findByHandler(t){return this.allListeners.filter(n=>{if(n.handler===t)return n})}findById(t){return this.allListeners.find(n=>n.id===t)}},ee=class $d{constructor({config:t,eventsDispatcher:n}){if(this.nodes={},this.listeners=new lo,this.readOnlyMutableListeners={on:(o,i,r,s=!1)=>{this.mutableListenerIds.push(this.listeners.on(o,i,r,s))},clearAll:()=>{for(const o of this.mutableListenerIds)this.listeners.offById(o);this.mutableListenerIds=[]}},this.mutableListenerIds=[],new.target===$d)throw new TypeError("Constructors for abstract class Module are not allowed.");this.config=t,this.eventsDispatcher=n}set state(t){this.Editor=t}removeAllNodes(){for(const t in this.nodes){const n=this.nodes[t];n instanceof HTMLElement&&n.remove()}}get isRtl(){return this.config.i18n.direction==="rtl"}},U=class St{constructor(){this.instance=null,this.selection=null,this.savedSelectionRange=null,this.isFakeBackgroundEnabled=!1,this.commandBackground="backColor"}static get CSS(){return{editorWrapper:"codex-editor",editorZone:"codex-editor__redactor"}}static get anchorNode(){const t=window.getSelection();return t?t.anchorNode:null}static get anchorElement(){const t=window.getSelection();if(!t)return null;const n=t.anchorNode;return n?B.isElement(n)?n:n.parentElement:null}static get anchorOffset(){const t=window.getSelection();return t?t.anchorOffset:null}static get isCollapsed(){const t=window.getSelection();return t?t.isCollapsed:null}static get isAtEditor(){return this.isSelectionAtEditor(St.get())}static isSelectionAtEditor(t){if(!t)return!1;let n=t.anchorNode||t.focusNode;n&&n.nodeType===Node.TEXT_NODE&&(n=n.parentNode);let o=null;return n&&n instanceof Element&&(o=n.closest(`.${St.CSS.editorZone}`)),o?o.nodeType===Node.ELEMENT_NODE:!1}static isRangeAtEditor(t){if(!t)return;let n=t.startContainer;n&&n.nodeType===Node.TEXT_NODE&&(n=n.parentNode);let o=null;return n&&n instanceof Element&&(o=n.closest(`.${St.CSS.editorZone}`)),o?o.nodeType===Node.ELEMENT_NODE:!1}static get isSelectionExists(){return!!St.get().anchorNode}static get range(){return this.getRangeFromSelection(this.get())}static getRangeFromSelection(t){return t&&t.rangeCount?t.getRangeAt(0):null}static get rect(){let t=document.selection,n,o={x:0,y:0,width:0,height:0};if(t&&t.type!=="Control")return t=t,n=t.createRange(),o.x=n.boundingLeft,o.y=n.boundingTop,o.width=n.boundingWidth,o.height=n.boundingHeight,o;if(!window.getSelection)return se("Method window.getSelection is not supported","warn"),o;if(t=window.getSelection(),t.rangeCount===null||isNaN(t.rangeCount))return se("Method SelectionUtils.rangeCount is not supported","warn"),o;if(t.rangeCount===0)return o;if(n=t.getRangeAt(0).cloneRange(),n.getBoundingClientRect&&(o=n.getBoundingClientRect()),o.x===0&&o.y===0){const i=document.createElement("span");if(i.getBoundingClientRect){i.appendChild(document.createTextNode("â")),n.insertNode(i),o=i.getBoundingClientRect();const r=i.parentNode;r.removeChild(i),r.normalize()}}return o}static get text(){return window.getSelection?window.getSelection().toString():""}static get(){return window.getSelection()}static setCursor(t,n=0){const o=document.createRange(),i=window.getSelection();return B.isNativeInput(t)?B.canSetCaret(t)?(t.focus(),t.selectionStart=t.selectionEnd=n,t.getBoundingClientRect()):void 0:(o.setStart(t,n),o.setEnd(t,n),i.removeAllRanges(),i.addRange(o),o.getBoundingClientRect())}static isRangeInsideContainer(t){const n=St.range;return n===null?!1:t.contains(n.startContainer)}static addFakeCursor(){const t=St.range;if(t===null)return;const n=B.make("span","codex-editor__fake-cursor");n.dataset.mutationFree="true",t.collapse(),t.insertNode(n)}static isFakeCursorInsideContainer(t){return B.find(t,".codex-editor__fake-cursor")!==null}static removeFakeCursor(t=document.body){const n=B.find(t,".codex-editor__fake-cursor");n&&n.remove()}removeFakeBackground(){this.isFakeBackgroundEnabled&&(document.execCommand(this.commandBackground,!1,"transparent"),this.isFakeBackgroundEnabled=!1)}setFakeBackground(){document.execCommand(this.commandBackground,!1,"#a8d6ff"),this.isFakeBackgroundEnabled=!0}save(){this.savedSelectionRange=St.range}restore(){if(!this.savedSelectionRange)return;const t=window.getSelection();t.removeAllRanges(),t.addRange(this.savedSelectionRange)}clearSaved(){this.savedSelectionRange=null}collapseToEnd(){const t=window.getSelection(),n=document.createRange();n.selectNodeContents(t.focusNode),n.collapse(!1),t.removeAllRanges(),t.addRange(n)}findParentTag(t,n,o=10){const i=window.getSelection();let r=null;return!i||!i.anchorNode||!i.focusNode?null:([i.anchorNode,i.focusNode].forEach(s=>{let a=o;for(;a>0&&s.parentNode&&!(s.tagName===t&&(r=s,n&&s.classList&&!s.classList.contains(n)&&(r=null),r));)s=s.parentNode,a--}),r)}expandToTag(t){const n=window.getSelection();n.removeAllRanges();const o=document.createRange();o.selectNodeContents(t),n.addRange(o)}};function Yv(e,t){const{type:n,target:o,addedNodes:i,removedNodes:r}=e;return e.type==="attributes"&&e.attributeName==="data-empty"?!1:!!(t.contains(o)||n==="childList"&&(Array.from(i).some(s=>s===t)||Array.from(r).some(s=>s===t)))}const Or="redactor dom changed",Rd="block changed",Dd="fake cursor is about to be toggled",Fd="fake cursor have been set",Zn="editor mobile layout toggled";function Ir(e,t){if(!e.conversionConfig)return!1;const n=e.conversionConfig[t];return de(n)||vt(n)}function Go(e,t){return Ir(e.tool,t)}function Vd(e,t){return Object.entries(e).some(([n,o])=>t[n]&&Hv(t[n],o))}async function Hd(e,t){const n=(await e.save()).data,o=t.find(i=>i.name===e.name);return o!==void 0&&!Ir(o,"export")?[]:t.reduce((i,r)=>{if(!Ir(r,"import")||r.toolbox===void 0)return i;const s=r.toolbox.filter(a=>{if(Ge(a)||a.icon===void 0)return!1;if(a.data!==void 0){if(Vd(a.data,n))return!1}else if(r.name===e.name)return!1;return!0});return i.push({...r,toolbox:s}),i},[])}function Mc(e,t){return e.mergeable?e.name===t.name?!0:Go(t,"export")&&Go(e,"import"):!1}function Xv(e,t){const n=t?.export;return de(n)?n(e):vt(n)?e[n]:(n!==void 0&&se("Conversion «export» property must be a string or function. String means key of saved data object to export. Function should export processed string to export."),"")}function Ac(e,t,n){const o=t?.import;return de(o)?o(e,n):vt(o)?{[o]:e}:(o!==void 0&&se("Conversion «import» property must be a string or function. String means key of tool data to import. Function accepts a imported string and return composed tool data."),{})}var le=(e=>(e.Default="default",e.Separator="separator",e.Html="html",e))(le||{}),ft=(e=>(e.APPEND_CALLBACK="appendCallback",e.RENDERED="rendered",e.MOVED="moved",e.UPDATED="updated",e.REMOVED="removed",e.ON_PASTE="onPaste",e))(ft||{});let mt=class Et extends ao{constructor({id:t=Dv(),data:n,tool:o,readOnly:i,tunesData:r},s){super(),this.cachedInputs=[],this.toolRenderedElement=null,this.tunesInstances=new Map,this.defaultTunesInstances=new Map,this.unavailableTunesData={},this.inputIndex=0,this.editorEventBus=null,this.handleFocus=()=>{this.dropInputsCache(),this.updateCurrentInput()},this.didMutated=(a=void 0)=>{const l=a===void 0,c=a instanceof InputEvent;!l&&!c&&this.detectToolRootChange(a);let u;l||c?u=!0:u=!(a.length>0&&a.every(d=>{const{addedNodes:h,removedNodes:p,target:m}=d;return[...Array.from(h),...Array.from(p),m].some(f=>(B.isElement(f)||(f=f.parentElement),f&&f.closest('[data-mutation-free="true"]')!==null))})),u&&(this.dropInputsCache(),this.updateCurrentInput(),this.toggleInputsEmptyMark(),this.call("updated"),this.emit("didMutated",this))},this.name=o.name,this.id=t,this.settings=o.settings,this.config=o.settings.config||{},this.editorEventBus=s||null,this.blockAPI=new ht(this),this.tool=o,this.toolInstance=o.create(n,this.blockAPI,i),this.tunes=o.tunes,this.composeTunes(r),this.holder=this.compose(),window.requestIdleCallback(()=>{this.watchBlockMutations(),this.addInputEvents(),this.toggleInputsEmptyMark()})}static get CSS(){return{wrapper:"ce-block",wrapperStretched:"ce-block--stretched",content:"ce-block__content",selected:"ce
20-block--selected",dropTarget:"ce-block--drop-target"}}get inputs(){if(this.cachedInputs.length!==0)return this.cachedInputs;const t=B.findAllInputs(this.holder);return this.inputIndex>t.length-1&&(this.inputIndex=t.length-1),this.cachedInputs=t,t}get currentInput(){return this.inputs[this.inputIndex]}set currentInput(t){const n=this.inputs.findIndex(o=>o===t||o.contains(t));n!==-1&&(this.inputIndex=n)}get firstInput(){return this.inputs[0]}get lastInput(){const t=this.inputs;return t[t.length-1]}get nextInput(){return this.inputs[this.inputIndex+1]}get previousInput(){return this.inputs[this.inputIndex-1]}get data(){return this.save().then(t=>t&&!Ge(t.data)?t.data:{})}get sanitize(){return this.tool.sanitizeConfig}get mergeable(){return de(this.toolInstance.merge)}get focusable(){return this.inputs.length!==0}get isEmpty(){const t=B.isEmpty(this.pluginsContent,"/"),n=!this.hasMedia;return t&&n}get hasMedia(){const t=["img","iframe","video","audio","source","input","textarea","twitterwidget"];return!!this.holder.querySelector(t.join(","))}set selected(t){var n,o;this.holder.classList.toggle(Et.CSS.selected,t);const i=t===!0&&U.isRangeInsideContainer(this.holder),r=t===!1&&U.isFakeCursorInsideContainer(this.holder);(i||r)&&((n=this.editorEventBus)==null||n.emit(Dd,{state:t}),i?U.addFakeCursor():U.removeFakeCursor(this.holder),(o=this.editorEventBus)==null||o.emit(Fd,{state:t}))}get selected(){return this.holder.classList.contains(Et.CSS.selected)}set stretched(t){this.holder.classList.toggle(Et.CSS.wrapperStretched,t)}get stretched(){return this.holder.classList.contains(Et.CSS.wrapperStretched)}set dropTarget(t){this.holder.classList.toggle(Et.CSS.dropTarget,t)}get pluginsContent(){return this.toolRenderedElement}call(t,n){if(de(this.toolInstance[t])){t==="appendCallback"&&se("`appendCallback` hook is deprecated and will be removed in the next major release. Use `rendered` hook instead","warn");try{this.toolInstance[t].call(this.toolInstance,n)}catch(o){se(`Error during '${t}' call: ${o.message}`,"error")}}}async mergeWith(t){await this.toolInstance.merge(t)}async save(){const t=await this.toolInstance.save(this.pluginsContent),n=this.unavailableTunesData;[...this.tunesInstances.entries(),...this.defaultTunesInstances.entries()].forEach(([r,s])=>{if(de(s.save))try{n[r]=s.save()}catch(a){se(`Tune ${s.constructor.name} save method throws an Error %o`,"warn",a)}});const o=window.performance.now();let i;return Promise.resolve(t).then(r=>(i=window.performance.now(),{id:this.id,tool:this.name,data:r,tunes:n,time:i-o})).catch(r=>{se(`Saving process for ${this.name} tool failed due to the ${r}`,"log","red")})}async validate(t){let n=!0;return this.toolInstance.validate instanceof Function&&(n=await this.toolInstance.validate(t)),n}getTunes(){const t=[],n=[],o=typeof this.toolInstance.renderSettings=="function"?this.toolInstance.renderSettings():[];return B.isElement(o)?t.push({type:le.Html,element:o}):Array.isArray(o)?t.push(...o):t.push(o),[...this.tunesInstances.values(),...this.defaultTunesInstances.values()].map(i=>i.render()).forEach(i=>{B.isElement(i)?n.push({type:le.Html,element:i}):Array.isArray(i)?n.push(...i):n.push(i)}),{toolTunes:t,commonTunes:n}}updateCurrentInput(){this.currentInput=B.isNativeInput(document.activeElement)||!U.anchorNode?document.activeElement:U.anchorNode}dispatchChange(){this.didMutated()}destroy(){this.unwatchBlockMutations(),this.removeInputEvents(),super.destroy(),de(this.toolInstance.destroy)&&this.toolInstance.destroy()}async getActiveToolboxEntry(){const t=this.tool.toolbox;if(t.length===1)return Promise.resolve(this.tool.toolbox[0]);const n=await this.data,o=t;return o?.find(i=>Vd(i.data,n))}async exportDataAsString(){const t=await this.data;return Xv(t,this.tool.conversionConfig)}compose(){const t=B.make("div",Et.CSS.wrapper),n=B.make("div",Et.CSS.content),o=this.toolInstance.render();t.dataset.id=this.id,this.toolRenderedElement=o,n.appendChild(this.toolRenderedElement);let i=n;return[...this.tunesInstances.values(),...this.defaultTunesInstances.values()].forEach(r=>{if(de(r.wrap))try{i=r.wrap(i)}catch(s){se(`Tune ${r.constructor.name} wrap method throws an Error %o`,"warn",s)}}),t.appendChild(i),t}
vendor: 7,256 bytes, line 20
20composeTunes(t){Array.from(this.tunes.values()).forEach(n=>{(n.isInternal?this.defaultTunesInstances:this.tunesInstances).set(n.name,n.create(t[n.name],this.blockAPI))}),Object.entries(t).forEach(([n,o])=>{this.tunesInstances.has(n)||(this.unavailableTunesData[n]=o)})}addInputEvents(){this.inputs.forEach(t=>{t.addEventListener("focus",this.handleFocus),B.isNativeInput(t)&&t.addEventListener("input",this.didMutated)})}removeInputEvents(){this.inputs.forEach(t=>{t.removeEventListener("focus",this.handleFocus),B.isNativeInput(t)&&t.removeEventListener("input",this.didMutated)})}watchBlockMutations(){var t;this.redactorDomChangedCallback=n=>{const{mutations:o}=n;o.some(i=>Yv(i,this.toolRenderedElement))&&this.didMutated(o)},(t=this.editorEventBus)==null||t.on(Or,this.redactorDomChangedCallback)}unwatchBlockMutations(){var t;(t=this.editorEventBus)==null||t.off(Or,this.redactorDomChangedCallback)}detectToolRootChange(t){t.forEach(n=>{if(Array.from(n.removedNodes).includes(this.toolRenderedElement)){const o=n.addedNodes[n.addedNodes.length-1];this.toolRenderedElement=o}})}dropInputsCache(){this.cachedInputs=[]}toggleInputsEmptyMark(){this.inputs.forEach(Ad)}};class Zv extends ee{constructor(){super(...arguments),this.insert=(t=this.config.defaultBlock,n={},o={},i,r,s,a)=>{const l=this.Editor.BlockManager.insert({id:a,tool:t,data:n,index:i,needToFocus:r,replace:s});return new ht(l)},this.composeBlockData=async t=>{const n=this.Editor.Tools.blockTools.get(t);return new mt({tool:n,api:this.Editor.API,readOnly:!0,data:{},tunesData:{}}).data},this.update=async(t,n,o)=>{const{BlockManager:i}=this.Editor,r=i.getBlockById(t);if(r===void 0)throw new Error(`Block with id "${t}" not found`);const s=await i.update(r,n,o);return new ht(s)},this.convert=async(t,n,o)=>{var i,r;const{BlockManager:s,Tools:a}=this.Editor,l=s.getBlockById(t);if(!l)throw new Error(`Block with id "${t}" not found`);const c=a.blockTools.get(l.name),u=a.blockTools.get(n);if(!u)throw new Error(`Block Tool with type "${n}" not found`);const d=((i=c?.conversionConfig)==null?void 0:i.export)!==void 0,h=((r=u.conversionConfig)==null?void 0:r.import)!==void 0;if(d&&h){const p=await s.convert(l,n,o);return new ht(p)}else{const p=[d?!1:qo(l.name),h?!1:qo(n)].filter(Boolean).join(" and ");throw new Error(`Conversion from "${l.name}" to "${n}" is not possible. ${p} tool(s) should provide a "conversionConfig"`)}},this.insertMany=(t,n=this.Editor.BlockManager.blocks.length-1)=>{this.validateIndex(n);const o=t.map(({id:i,type:r,data:s})=>this.Editor.BlockManager.composeBlock({id:i,tool:r||this.config.defaultBlock,data:s}));return this.Editor.BlockManager.insertMany(o,n),o.map(i=>new ht(i))}}get methods(){return{clear:()=>this.clear(),render:t=>this.render(t),renderFromHTML:t=>this.renderFromHTML(t),delete:t=>this.delete(t),swap:(t,n)=>this.swap(t,n),move:(t,n)=>this.move(t,n),getBlockByIndex:t=>this.getBlockByIndex(t),getById:t=>this.getById(t),getCurrentBlockIndex:()=>this.getCurrentBlockIndex(),getBlockIndex:t=>this.getBlockIndex(t),getBlocksCount:()=>this.getBlocksCount(),getBlockByElement:t=>this.getBlockByElement(t),stretchBlock:(t,n=!0)=>this.stretchBlock(t,n),insertNewBlock:()=>this.insertNewBlock(),insert:this.insert,insertMany:this.insertMany,update:this.update,composeBlockData:this.composeBlockData,convert:this.convert}}getBlocksCount(){return this.Editor.BlockManager.blocks.length}getCurrentBlockIndex(){return this.Editor.BlockManager.currentBlockIndex}getBlockIndex(t){const n=this.Editor.BlockManager.getBlockById(t);if(!n){Ue("There is no block with id `"+t+"`","warn");return}return this.Editor.BlockManager.getBlockIndex(n)}getBlockByIndex(t){const n=this.Editor.BlockManager.getBlockByIndex(t);if(n===void 0){Ue("There is no block at index `"+t+"`","warn");return}return new ht(n)}getById(t){const n=this.Editor.BlockManager.getBlockById(t);return n===void 0?(Ue("There is no block with id `"+t+"`","warn"),null):new ht(n)}getBlockByElement(t){const n=this.Editor.BlockManager.getBlock(t);if(n===void 0){Ue("There is no block corresponding to element `"+t+"`","warn");return}return new ht(n)}swap(t,n){se("`blocks.swap()` method is deprecated and will be removed in the next major release. Use `block.move()` method instead","info"),this.Editor.BlockManager.swap(t,n)}move(t,n){this.Editor.BlockManager.move(t,n)}delete(t=this.Editor.BlockManager.currentBlockIndex){try{const n=this.Editor.BlockManager.getBlockByIndex(t);this.Editor.BlockManager.removeBlock(n)}catch(n){Ue(n,"warn");return}this.Editor.BlockManager.blocks.length===0&&this.Editor.BlockManager.insert(),this.Editor.BlockManager.currentBlock&&this.Editor.Caret.setToBlock(this.Editor.BlockManager.currentBlock,this.Editor.Caret.positions.END),this.Editor.Toolbar.close()}async clear(){await this.Editor.BlockManager.clear(!0),this.Editor.InlineToolbar.close()}async render(t){if(t===void 0||t.blocks===void 0)throw new Error("Incorrect data passed to the render() method");this.Editor.ModificationsObserver.disable(),await this.Editor.BlockManager.clear(),await this.Editor.Renderer.render(t.blocks),this.Editor.ModificationsObserver.enable()}async renderFromHTML(t){return await this.Editor.BlockManager.clear(),this.Editor.Paste.processText(t,!0)}stretchBlock(t,n=!0){_r(!0,"blocks.stretchBlock()","BlockAPI");const o=this.Editor.BlockManager.getBlockByIndex(t);o&&(o.stretched=n)}insertNewBlock(){se("Method blocks.insertNewBlock() is deprecated and it will be removed in the next major release. Use blocks.insert() instead.","warn"),this.insert()}validateIndex(t){if(typeof t!="number")throw new Error("Index should be a number");if(t<0)throw new Error("Index should be greater than or equal to 0");if(t===null)throw new Error("Index should be greater than or equal to 0")}}function Jv(e,t){return typeof e=="number"?t.BlockManager.getBlockByIndex(e):typeof e=="string"?t.BlockManager.getBlockById(e):t.BlockManager.getBlockById(e.id)}class Qv extends ee{constructor(){super(...arguments),this.setToFirstBlock=(t=this.Editor.Caret.positions.DEFAULT,n=0)=>this.Editor.BlockManager.firstBlock?(this.Editor.Caret.setToBlock(this.Editor.BlockManager.firstBlock,t,n),!0):!1,this.setToLastBlock=(t=this.Editor.Caret.positions.DEFAULT,n=0)=>this.Editor.BlockManager.lastBlock?(this.Editor.Caret.setToBlock(this.Editor.BlockManager.lastBlock,t,n),!0):!1,this.setToPreviousBlock=(t=this.Editor.Caret.positions.DEFAULT,n=0)=>this.Editor.BlockManager.previousBlock?(this.Editor.Caret.setToBlock(this.Editor.BlockManager.previousBlock,t,n),!0):!1,this.setToNextBlock=(t=this.Editor.Caret.positions.DEFAULT,n=0)=>this.Editor.BlockManager.nextBlock?(this.Editor.Caret.setToBlock(this.Editor.BlockManager.nextBlock,t,n),!0):!1,this.setToBlock=(t,n=this.Editor.Caret.positions.DEFAULT,o=0)=>{const i=Jv(t,this.Editor);return i===void 0?!1:(this.Editor.Caret.setToBlock(i,n,o),!0)},this.focus=(t=!1)=>t?this.setToLastBlock(this.Editor.Caret.positions.END):this.setToFirstBlock(this.Editor.Caret.positions.START)}get methods(){return{setToFirstBlock:this.setToFirstBlock,setToLastBlock:this.setToLastBlock,setToPreviousBlock:this.setToPreviousBlock,setToNextBlock:this.setToNextBlock,setToBlock:this.setToBlock,focus:this.focus}}}class eb extends ee{get methods(){return{emit:(t,n)=>
20this.emit(t,n),off:(t,n)=>this.off(t,n),on:(t,n)=>this.on(t,n)}}on(t,n){this.eventsDispatcher.on(t,n)}emit(t,n){this.eventsDispatcher.emit(t,n)}off(t,n){this.eventsDispatcher.off(t,n)}}let tb=class Ud extends ee{static getNamespace(t,n){return n?`blockTunes.${t}`:`tools.${t}`}get methods(){return{t:()=>{Ue("I18n.t() method can be accessed only from Tools","warn")}}}getMethodsForTool(t,n){return Object.assign(this.methods,{t:o=>Me.t(Ud.getNamespace(t,n),o)})}};class nb extends ee{get methods(){return{blocks:this.Editor.BlocksAPI.methods,caret:this.Editor.CaretAPI.methods,tools:this.Editor.ToolsAPI.methods,events:this.Editor.EventsAPI.methods,listeners:this.Editor.ListenersAPI.methods,notifier:this.Editor.NotifierAPI.methods,sanitizer:this.Editor.SanitizerAPI.methods,saver:this.Editor.SaverAPI.methods,selection:this.Editor.SelectionAPI.methods,styles:this.Editor.StylesAPI.classes,toolbar:this.Editor.ToolbarAPI.methods,inlineToolbar:this.Editor.InlineToolbarAPI.methods,tooltip:this.Editor.TooltipAPI.methods,i18n:this.Editor.I18nAPI.methods,readOnly:this.Editor.ReadOnlyAPI.methods,ui:this.Editor.UiAPI.methods}}getMethodsForTool(t,n){return Object.assign(this.methods,{i18n:this.Editor.I18nAPI.getMethodsForTool(t,n)})}}class ob extends ee{get methods(){return{close:()=>this.close(),open:()=>this.open()}}open(){this.Editor.InlineToolbar.tryToShow()}close(){this.Editor.InlineToolbar.close()}}class ib extends ee{get methods(){return{on:(t,n,o,i)=>this.on(t,n,o,i),off:(t,n,o,i)=>this.off(t,n,o,i),offById:t=>this.offById(t)}}on(t,n,o,i){return this.listeners.on(t,n,o,i)}off(t,n,o,i){this.listeners.off(t,n,o,i)}offById(t){this.listeners.offById(t)}}var zd={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(window,function(){return(function(n){var o={};function i(r){if(o[r])return o[r].exports;var s=o[r]={i:r,l:!1,exports:{}};return n[r].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=o,i.d=function(r,s,a){i.o(r,s)||Object.defineProperty(r,s,{enumerable:!0,get:a})},i.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},i.t=function(r,s){if(1&s&&(r=i(r)),8&s||4&s&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&s&&typeof r!="string")for(var l in r)i.d(a,l,(function(c){return r[c]}).bind(null,l));return a},i.n=function(r){var s=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(s,"a",s),s},i.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s)},i.p="/",i(i.s=0)})([function(n,o,i){i(1),n.exports=(function(){var r=i(6),s="cdx-notify--bounce-in",a=null;return{show:function(l){if(l.message){(function(){if(a)return!0;a=r.getWrapper(),document.body.appendChild(a)})();var c=null,u=l.time||8e3;switch(l.type){case"confirm":c=r.confirm(l);break;case"prompt":c=r.prompt(l);break;default:c=r.alert(l),window.setTimeout(function(){c.remove()},u)}a.appendChild(c),c.classList.add(s)}}}})()},function(n,o,i){var r=i(2);typeof r=="string"&&(r=[[n.i,r,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};i(4)(r,s),r.locals&&(n.exports=r.locals)},function(n,o,i){(n.exports=i(3)(!1)).push([n.i,`.cdx-notify--error{background:#fffbfb!important}.cdx-notify--error::before{background:#fb5d5d!important}.cdx-notify__input{max-width:130px;padding:5px 10px;background:#f7f7f7;border:0;border-radius:3px;font-size:13px;color:#656b7c;outline:0}.cdx-notify__input:-ms-input-placeholder{color:#656b7c}.cdx-notify__input::placeholder{color:#656b7c}.cdx-notify__input:focus:-ms-input-placeholder{color:rgba(101,107,124,.3)}.cdx-notify__input:focus::placeholder{color:rgba(101,107,124,.3)}.cdx-notify__button{border:none;border-radius:3px;font-size:13px;padding:5px 10px;cursor:pointer}.cdx-notify__button:last-child{margin-left:10px}.cdx-notify__button--cancel{background:#f2f5f7;box-shadow:0 2px 1px 0 rgba(16,19,29,0);color:#656b7c}.cdx-notify__button--cancel:hover{background:#eee}.cdx-notify__button--confirm{background:#34c992;box-shadow:0 1px 1px 0 rgba(18,49,35,.05);color:#fff}.cdx-notify__button--confirm:hover{background:#33b082}.cdx-notify__btns-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;margin-top:5px}.cdx-notify__cross{position:absolute;top:5px;right:5px;width:10px;height:10px;padding:5px;opacity:.54;cursor:pointer}.cdx-notify__cross::after,.cdx-notify__cross::before{content:'';position:absolute;
20left:9px;top:5px;height:12px;width:2px;background:#575d67}.cdx-notify__cross::before{transform:rotate(-45deg)}.cdx-notify__cross::after{transform:rotate(45deg)}.cdx-notify__cross:hover{opacity:1}.cdx-notifies{position:fixed;z-index:2;bottom:20px;left:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.cdx-notify{position:relative;width:220px;margin-top:15px;padding:13px 16px;background:#fff;box-shadow:0 11px 17px 0 rgba(23,32,61,.13);border-radius:5px;font-size:14px;line-height:1.4em;word-wrap:break-word}.cdx-notify::before{content:'';position:absolute;display:block;top:0;left:0;width:3px;height:calc(100% - 6px);margin:3px;border-radius:5px;background:0 0}@keyframes bounceIn{0%{opacity:0;transform:scale(.3)}50%{opacity:1;transform:scale(1.05)}70%{transform:scale(.9)}100%{transform:scale(1)}}.cdx-notify--bounce-in{animation-name:bounceIn;animation-duration:.6s;animation-iteration-count:1}.cdx-notify--success{background:#fafffe!important}.cdx-notify--success::before{background:#41ffb1!important}`,""])},function(n,o){n.exports=function(i){var r=[];return r.toString=function(){return this.map(function(s){var a=(function(l,c){var u=l[1]||"",d=l[3];if(!d)return u;if(c&&typeof btoa=="function"){var h=(m=d,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(m))))+" */"),p=d.sources.map(function(f){return"/*# sourceURL="+d.sourceRoot+f+" */"});return[u].concat(p).concat([h]).join(` 21`)}var m;return[u].join(` 22`)})(s,i);return s[2]?"@media "+s[2]+"{"+a+"}":a}).join("")},r.i=function(s,a){typeof s=="string"&&(s=[[null,s,""]]);for(var l={},c=0;c<this.length;c++){var u=this[c][0];typeof u=="number"&&(l[u]=!0)}for(c=0;c<s.length;c++){var d=s[c];typeof d[0]=="number"&&l[d[0]]||(a&&!d[2]?d[2]=a:a&&(d[2]="("+d[2]+") and ("+a+")"),r.push(d))}},r}},function(n,o,i){var r,s,a={},l=(r=function(){return window&&document&&document.all&&!window.atob},function(){return s===void 0&&(s=r.apply(this,arguments)),s}),c=(function(g){var C={};return function(P){if(typeof P=="function")return P();if(C[P]===void 0){var N=(function(j){return document.querySelector(j)}).call(this,P);if(window.HTMLIFrameElement&&N instanceof window.HTMLIFrameElement)try{N=N.contentDocument.head}catch{N=null}C[P]=N}return C[P]}})(),u=null,d=0,h=[],p=i(5);function m(g,C){for(var P=0;P<g.length;P++){var N=g[P],j=a[N.id];if(j){j.refs++;for(var L=0;L<j.parts.length;L++)j.parts[L](N.parts[L]);for(;L<N.parts.length;L++)j.parts.push(w(N.parts[L],C))}else{var A=[];for(L=0;L<N.parts.length;L++)A.push(w(N.parts[L],C));a[N.id]={id:N.id,refs:1,parts:A}}}}function f(g,C){for(var P=[],N={},j=0;j<g.length;j++){var L=g[j],A=C.base?L[0]+C.base:L[0],M={css:L[1],media:L[2],sourceMap:L[3]};N[A]?N[A].parts.push(M):P.push(N[A]={id:A,parts:[M]})}return P}function b(g,C){var P=c(g.insertInto);if(!P)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var N=h[h.length-1];if(g.insertAt==="top")N?N.nextSibling?P.insertBefore(C,N.nextSibling):P.appendChild(C):P.insertBefore(C,P.firstChild),h.push(C);else if(g.insertAt==="bottom")P.appendChild(C);else{if(typeof g.insertAt!="object"||!g.insertAt.before)throw new Error(`[Style Loader] 23 24 Invalid value for parameter 'insertAt' ('options.insertAt') found. 25 Must be 'top', 'bottom', or Object. 26 (https://github.com/webpack-contrib/style-loader#insertat) 27`);var j=c(g.insertInto+" "+g.insertAt.before);P.insertBefore(C,j)}}function v(g){if(g.parentNode===null)return!1;g.parentNode.removeChild(g);var C=h.indexOf(g);C>=0&&h.splice(C,1)}function y(g){var C=document.createElement("style");return g.attrs.type===void 0&&(g.attrs.type="text/css"),k(C,g.attrs),b(g,C),C}function k(g,C){Object.keys(C).forEach(function(P){g.setAttribute(P,C[P])})}function w(g,C){var P,N,j,L;if(C.transform&&g.css){if(!(L=C.transform(g.css)))return function(){};g.css=L}if(C.singleton){var A=d++;P=u||(u=y(C)),N=T.bind(null,P,A,!1),j=T.bind(null,P,A,!0)}else g.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(P=(function(M){var F=document.createElement("link");return M.attrs.type===void 0&&(M.attrs.type="text/css"),M.attrs.rel="stylesheet",k(F,M.attrs),b(M,F),F}
vendor: 20,882 bytes, lines 27-38
27)(C),N=(function(M,F,H){var W=H.css,oe=H.sourceMap,J=F.convertToAbsoluteUrls===void 0&&oe;(F.convertToAbsoluteUrls||J)&&(W=p(W)),oe&&(W+=` 28/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(oe))))+" */");var re=new Blob([W],{type:"text/css"}),be=M.href;M.href=URL.createObjectURL(re),be&&URL.revokeObjectURL(be)}).bind(null,P,C),j=function(){v(P),P.href&&URL.revokeObjectURL(P.href)}):(P=y(C),N=(function(M,F){var H=F.css,W=F.media;if(W&&M.setAttribute("media",W),M.styleSheet)M.styleSheet.cssText=H;else{for(;M.firstChild;)M.removeChild(M.firstChild);M.appendChild(document.createTextNode(H))}}).bind(null,P),j=function(){v(P)});return N(g),function(M){if(M){if(M.css===g.css&&M.media===g.media&&M.sourceMap===g.sourceMap)return;N(g=M)}else j()}}n.exports=function(g,C){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(C=C||{}).attrs=typeof C.attrs=="object"?C.attrs:{},C.singleton||typeof C.singleton=="boolean"||(C.singleton=l()),C.insertInto||(C.insertInto="head"),C.insertAt||(C.insertAt="bottom");var P=f(g,C);return m(P,C),function(N){for(var j=[],L=0;L<P.length;L++){var A=P[L];(M=a[A.id]).refs--,j.push(M)}for(N&&m(f(N,C),C),L=0;L<j.length;L++){var M;if((M=j[L]).refs===0){for(var F=0;F<M.parts.length;F++)M.parts[F]();delete a[M.id]}}}};var x,E=(x=[],function(g,C){return x[g]=C,x.filter(Boolean).join(` 29`)});function T(g,C,P,N){var j=P?"":N.css;if(g.styleSheet)g.styleSheet.cssText=E(C,j);else{var L=document.createTextNode(j),A=g.childNodes;A[C]&&g.removeChild(A[C]),A.length?g.insertBefore(L,A[C]):g.appendChild(L)}}},function(n,o){n.exports=function(i){var r=typeof window<"u"&&window.location;if(!r)throw new Error("fixUrls requires window.location");if(!i||typeof i!="string")return i;var s=r.protocol+"//"+r.host,a=s+r.pathname.replace(/\/[^\/]*$/,"/");return i.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(l,c){var u,d=c.trim().replace(/^"(.*)"$/,function(h,p){return p}).replace(/^'(.*)'$/,function(h,p){return p});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(d)?l:(u=d.indexOf("//")===0?d:d.indexOf("/")===0?s+d:a+d.replace(/^\.\//,""),"url("+JSON.stringify(u)+")")})}},function(n,o,i){var r,s,a,l,c,u,d,h,p;n.exports=(r="cdx-notifies",s="cdx-notify",a="cdx-notify__cross",l="cdx-notify__button--confirm",c="cdx-notify__button--cancel",u="cdx-notify__input",d="cdx-notify__button",h="cdx-notify__btns-wrapper",{alert:p=function(m){var f=document.createElement("DIV"),b=document.createElement("DIV"),v=m.message,y=m.style;return f.classList.add(s),y&&f.classList.add(s+"--"+y),f.innerHTML=v,b.classList.add(a),b.addEventListener("click",f.remove.bind(f)),f.appendChild(b),f},confirm:function(m){var f=p(m),b=document.createElement("div"),v=document.createElement("button"),y=document.createElement("button"),k=f.querySelector("."+a),w=m.cancelHandler,x=m.okHandler;return b.classList.add(h),v.innerHTML=m.okText||"Confirm",y.innerHTML=m.cancelText||"Cancel",v.classList.add(d),y.classList.add(d),v.classList.add(l),y.classList.add(c),w&&typeof w=="function"&&(y.addEventListener("click",w),k.addEventListener("click",w)),x&&typeof x=="function"&&v.addEventListener("click",x),v.addEventListener("click",f.remove.bind(f)),y.addEventListener("click",f.remove.bind(f)),b.appendChild(v),b.appendChild(y),f.appendChild(b),f},prompt:function(m){var f=p(m),b=document.createElement("div"),v=document.createElement("button"),y=document.createElement("input"),k=f.querySelector("."+a),w=m.cancelHandler,x=m.okHandler;return b.classList.add(h),v.innerHTML=m.okText||"Ok",v.classList.add(d),v.classList.add(l),y.classList.add(u),m.placeholder&&y.setAttribute("placeholder",m.placeholder),m.default&&(y.value=m.default),m.inputType&&(y.type=m.inputType),w&&typeof w=="function"&&k.addEventListener("click",w),x&&typeof x=="function"&&v.addEventListener("click",function(){x(y.value)}),v.addEventListener("click",f.remove.bind(f)),b.appendChild(y),b.appendChild(v),f.appendChild(b),f},getWrapper:function(){var m=document.createElement("DIV");return m.classList.add(r),m}})}])})})(zd);var rb=zd.exports;const sb=mi(rb);class ab{show(t){sb.show(t)}}class lb extends ee{constructor({config:t,eventsDispatcher:n}){super({config:t,eventsDispatcher:n}),this.notifier=new ab}get methods(){return{show:t=>this.show(t)}}show(t){return this.notifier.show(t)}}class cb extends ee{get methods(){const t=()=>this.isEnabled;return{toggle:n=>this.toggle(n),get isEnabled(){return t()}}}toggle(t){return this.Editor.ReadOnly.toggle(t)}get isEnabled(){return this.Editor.ReadOnly.isEnabled}}var Wd={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Xn,function(){function n(d){var h=d.tags,p=Object.keys(h),m=p.map(function(f){return typeof h[f]}).every(function(f){return f==="object"||f==="boolean"||f==="function"});if(!m)throw new Error("The configuration was invalid");this.config=d}var o=["P","LI","TD","TH","DIV","H1","H2","H3","H4","H5","H6","PRE"];function i(d){return o.indexOf(d.nodeName)!==-1}var r=["A","B","STRONG","I","EM","SUB","SUP","U","STRIKE"];function s(d){return r.indexOf(d.nodeName)!==-1}n.prototype.clean=function(d){const h=document.implementation.createHTMLDocument(),p=h.createElement("div");return p.innerHTML=d,this._sanitize(h,p),p.innerHTML},n.prototype._sanitize=function(d,h){var p=a(d,h),m=p.firstChild();if(m)do{if(m.nodeType===Node.TEXT_NODE)if(m.data.trim()===""&&(m.previousElementSibling&&i(m.previousElementSibling)||m.nextElementSibling&&i(m.nextElementSibling))){h.removeChild(m),this._sanitize(d,h);break}else continue;if(m.nodeType===Node.COMMENT_NODE){h.removeChild(m),this._sanitize(d,h);break}var f=s(m),b;f&&(b=Array.prototype.some.call(m.childNodes,i));var v=!!h.parentNode,y=i(h)&&i(m)&&v,k=m.nodeName.toLowerCase(),w=l(this.config,k,m),x=f&&b;if(x||c(m,w)||!this.config.keepNestedBlockElements&&y){if(!(m.nodeName==="SCRIPT"||m.nodeName==="STYLE"))for(;m.childNodes.length>0;)h.insertBefore(m.childNodes[0],m);h.removeChild(m),this._sanitize(d,h);break}for(var E=0;E<m.attributes.length;E+=1){var T=m.attributes[E];u(T,w,m)&&(m.removeAttribute(T.name),E=E-1)}this._sanitize(d,m)}while(m=p.nextSibling())};function a(d,h){return d.createTreeWalker(h,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT,null,!1)}function l(d,h,p){return typeof d.tags[h]=="function"?d.tags[h](p):d.tags[h]}function c(d,h){return typeof h>"u"?!0:typeof h=="boolean"?!h:!1}function u(d,h,p){var m=d.name.toLowerCase();return h===!0?!1:typeof h[m]=="function"?!h[m](d.value,p):typeof h[m]>"u"||h[m]===!1?!0:typeof h[m]=="string"?h[m]!==d.value:!1}return n})})(Wd);var ub=Wd.exports;const db=mi(ub);function fs(e,t){return e.map(n=>{const o=de(t)?t(n.tool):t;return Ge(o)||(n.data=ps(n.data,o)),n})}function it(e,t={}){const n={tags:t};return new db(n).clean(e)}function ps(e,t){return Array.isArray(e)?hb(e,t):Ee(e)?fb(e,t):vt(e)?pb(e,t):e}function hb(e,t){return e.map(n=>ps(n,t))}function fb(e,t){const n={};for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o],r=mb(t[o])?t[o]:t;n[o]=ps(i,r)}return n}function pb(e,t){return Ee(t)?it(e,t):t===!1?it(e,{}):e}function mb(e){return Ee(e)||Av(e)||de(e)}class gb extends ee{get methods(){return{clean:(t,n)=>this.clean(t,n)}}clean(t,n){return it(t,n)}}class vb extends ee{get methods(){return{save:()=>this.save()}}save(){const t="Editor's content can not be saved in read-only mode";return this.Editor.ReadOnly.isEnabled?(Ue(t,"warn"),Promise.reject(new Error(t))):this.Editor.Saver.save()}}class bb extends ee{constructor(){super(...arguments),this.selectionUtils=new U}get methods(){return{findParentTag:(t,n)=>this.findParentTag(t,n),expandToTag:t=>this.expandToTag(t),save:()=>this.selectionUtils.save(),restore:()=>this.selectionUtils.restore(),setFakeBackground:()=>this.selectionUtils.setFakeBackground(),removeFakeBackground:()=>this.selectionUtils.removeFakeBackground()}}findParentTag(t,n){return this.selectionUtils.findParentTag(t,n)}expandToTag(t){this.selectionUtils.expandToTag(t)}}class yb extends ee{get methods(){return{getBlockTools:()=>Array.from(this.Editor.Tools.blockTools.values())}}}class kb extends ee{get classes(){return{block:"cdx-block",inlineToolButton:"ce-inline-tool",inlineToolButtonActive:"ce-inline-tool--active",input:"cdx-input",loader:"cdx-loader",button:"cdx-button",settingsButton:"cdx-settings-button",settingsButtonActive:"cdx-settings-button--active"}}}class wb extends ee{get methods(){return{close:()=>this.close(),open:()=>this.open(),toggleBlockSettings:t=>this.toggleBlockSettings(t),toggleToolbox:t=>this.toggleToolbox(t)}}open(){this.Editor.Toolbar.moveAndOpen()}close(){this.Editor.Toolbar.close()}toggleBlockSettings(t){if(this.Editor.BlockManager.currentBlockIndex===-1){Ue("Could't toggle the Toolbar because there is no block selected ","warn");return}t??!this.Editor.BlockSettings.opened?(this.Editor.Toolbar.moveAndOpen(),this.Editor.BlockSettings.open()):this.Editor.BlockSettings.close()}toggleToolbox(t){if(this.Editor.BlockManager.currentBlockIndex===-1){Ue("Could't toggle the Toolbox because there is no block selected ","warn");return}t??!this.Editor.Toolbar.toolbox.opened?(this.Editor.Toolbar.moveAndOpen(),this.Editor.Toolbar.toolbox.open()):this.Editor.Toolbar.toolbox.close()}}var qd={exports:{}};/*! 30 * CodeX.Tooltips 31 * 32 * @version 1.0.5 33 * 34 * @licence MIT 35 * @author CodeX <https://codex.so> 36 * 37 * 38 */(function(e,t){(function(n,o){e.exports=o()})(window,function(){return(function(n){var o={};function i(r){if(o[r])return o[r].exports;var s=o[r]={i:r,l:!1,exports:{}};return n[r].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=o,i.d=function(r,s,a){i.o(r,s)||Object.defineProperty(r,s,{enumerable:!0,get:a})},i.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},i.t=function(r,s){if(1&s&&(r=i(r)),8&s||4&s&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&s&&typeof r!="string")for(var l in r)i.d(a,l,(function(c){return r[c]}).bind(null,l));return a},i.n=function(r){var s=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(s,"a",s),s},i.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s)},i.p="",i(i.s=0)})([function(n,o,i){n.exports=i(1)},function(n,o,i){i.r(o),i.d(o,"default",function(){return r});class r{constructor(){this.nodes={wrapper:null,content:null},this.showed=!1,this.offsetTop=10,this.offsetLeft=10,this.offsetRight=10,this.hidingDelay=0,this.handleWindowScroll=()=>{this.showed&&this.hide(!0)},this.loadStyles(),this.prepare(),window.addEventListener("scroll",this.handleWindowScroll,{passive:!0})}get CSS(){return{tooltip:"ct",tooltipContent:"ct__content",tooltipShown:"ct--shown",placement:{left:"ct--left",bottom:"ct--bottom",right:"ct--right",top:"ct--top"}}}show(a,l,c){this.nodes.wrapper||this.prepare(),this.hidingTimeout&&clearTimeout(this.hidingTimeout);const u=Object.assign({placement:"bottom",marginTop:0,marginLeft:0,marginRight:0,marginBottom:0,delay:70,hidingDelay:0},c);if(u.hidingDelay&&(this.hidingDelay=u.hidingDelay),this.nodes.content.innerHTML="",typeof l=="string")this.nodes.content.appendChild(document.createTextNode(l));else{if(!(l instanceof Node))throw Error("[CodeX Tooltip] Wrong type of «content» passed. It should be an instance of Node or String. But "+typeof l+" given.");this.nodes.content.appendChild(l)}switch(this.nodes.wrapper.classList.remove(...Object.values(this.CSS.placement)),u.placement){case"top":this.placeTop(a,u);break;case"left":this.placeLeft(a,u);break;case"right":this.placeRight(a,u);break;case"bottom":default:this.placeBottom(a,u)}u&&u.delay?this.showingTimeout=setTimeout(()=>{this.nodes.wrapper.classList.add(this.CSS.tooltipShown),this.showed=!0},u.delay):(this.nodes.wrapper.classList.add(this.CSS.tooltipShown),this.showed=!0)}hide(a=!1){if(this.hidingDelay&&!a)return this.hidingTimeout&&clearTimeout(this.hidingTimeout),void(this.hidingTimeout=setTimeout(()=>{this.hide(!0)},this.hidingDelay));this.nodes.wrapper.classList.remove(this.CSS.tooltipShown),this.showed=!1,this.showingTimeout&&clearTimeout(this.showingTimeout)}onHover(a,l,c){a.addEventListener("mouseenter",()=>{this.show(a,l,c)}),a.addEventListener("mouseleave",()=>{this.hide()})}destroy(){this.nodes.wrapper.remove(),window.removeEventListener("scroll",this.handleWindowScroll)}prepare(){this.nodes.wrapper=this.make("div",this.CSS.tooltip),this.nodes.content=this.make("div",this.CSS.tooltipContent),this.append(this.nodes.wrapper,this.nodes.content),this.append(document.body,this.nodes.wrapper)}loadStyles(){const a="codex-tooltips-style";if(document.getElementById(a))return;const l=i(2),c=this.make("style",null,{textContent:l.toString(),id:a});this.prepend(document.head,c)}placeBottom(a,l){const c=a.getBoundingClientRect(),u=c.left+a.clientWidth/2-this.nodes.wrapper.offsetWidth/2,d=c.bottom+window.pageYOffset+this.offsetTop+l.marginTop;this.applyPlacement("bottom",u,d)}placeTop(a,l){const c=a.getBoundingClientRect(),u=c.left+a.clientWidth/2-this.nodes.wrapper.offsetWidth/2,d=c.top+window.pageYOffset-this.nodes.wrapper.clientHeight-this.offsetTop;this.applyPlacement("top",u,d)}placeLeft(a,l){const c=a.getBoundingClientRect(),u=c.left-this.nodes.wrapper.offsetWidth-this.offsetLeft-l.marginLeft,d=c.top+window.pageYOffset+a.clientHeight/2-this.nodes.wrapper.offsetHeight/2;this.applyPlacement("left",u,d)}placeRight(a,l){const c=a.getBoundingClientRect(),u=c.right+this.offsetRight+l.marginRight,d=c.top+window.pageYOffset+a.clientHeight/2-this.nodes.wrapper.offsetHeight/2;this.applyPlacement("right",u,d)}applyPlacement(a,l,c){this.nodes.wrapper.classList.add(this.CSS.placement[a]),this.nodes.wrapper.style.left=l+"px",this.nodes.wrapper.style.top=c+"px"}make(a,l=null,c={}){const u=document.createElement(a);Array.isArray(l)?u.classList.add(...l):l&&u.classList.add(l);for(const d in c)c.hasOwnProperty(d)&&(u[d]=c[d]);return u}append(a,l){Array.isArray(l)?l.forEach(c=>a.appendChild(c)):a.appendChild(l)}prepend(a,l){Array.isArray(l)?(l=l.reverse()).forEach(c=>a.prepend(c)):a.prepend(l)}}},function(n,o){n.exports=`.ct{z-index:999;opacity:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-transition:opacity 50ms ease-in,-webkit-transform 70ms cubic-bezier(.215,.61,.355,1);transition:opacity 50ms ease-in,-webkit-transform 70ms cubic-bezier(.215,.61,.355,1);transition:opacity 50ms ease-in,transform 70ms cubic-bezier(.215,.61,.355,1);transition:opacity 50ms ease-in,transform 70ms cubic-bezier(.215,.61,.355,1),-webkit-transform 70ms cubic-bezier(.215,.61,.355,1);will-change:opacity,top,left;-webkit-box-shadow:0 8px 12px 0 rgba(29,32,43,.17),0 4px 5px -3px rgba(5,6,12,.49);box-shadow:0 8px 12px 0 rgba(29,32,43,.17),0 4px 5px -3px rgba(5,6,12,.49);border-radius:9px}.ct,.ct:before{position:absolute;top:0;left:0}.ct:before{content:"";bottom:0;right:0;background-color:#1d202b;z-index:-1;border-radius:4px}@supports(-webkit-mask-box-image:url("")){.ct:before{border-radius:0;-webkit-mask-box-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M10.71 0h2.58c3.02 0 4.64.42 6.1 1.2a8.18 8.18 0 013.4 3.4C23.6 6.07 24 7.7 24 10.71v2.58c0 3.02-.42 4.64-1.2 6.1a8.18 8.18 0 01-3.4 3.4c-1.47.8-3.1 1.21-6.11 1.21H10.7c-3.02 0-4.64-.42-6.1-1.2a8.18 8.18 0 01-3.4-3.4C.4 17.93 0 16.3 0 13.29V10.7c0-3.02.42-4.64 1.2-6.1a8.18 8.18 0 013.4-3.4C6.07.4 7.7 0 10.71 0z"/></svg>') 48% 41% 37.9% 53.3%}}@media (--mobile){.ct{display:none}}.ct__content{padding:6px 10px;color:#cdd1e0;font-size:12px;text-align:center;letter-spacing:.02em;line-height:1em}.ct:after{content:"";width:8px;height:8px;position:absolute;background-color:#1d202b;z-index:-1}.ct--bottom{-webkit-transform:translateY(5px);transform:translateY(5px)}.ct--bottom:after{top:-3px;left:50%;-webkit-transform:translateX(-50%) rotate(-45deg);transform:translateX(-50%) rotate(-45deg)}.ct--top{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.ct--top:after{top:auto;bottom:-3px;left:50%;-webkit-transform:translateX(-50%) rotate(-45deg);transform:translateX(-50%) rotate(-45deg)}.ct--left{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.ct--left:after{top:50%;left:auto;right:0;-webkit-transform:translate(41.6%,-50%) rotate(-45deg);transform:translate(41.6%,-50%) rotate(-45deg)}.ct--right{-webkit-transform:translateX(5px);transform:translateX(5px)}.ct--right:after{top:50%;left:0;-webkit-transform:translate(-41.6%,-50%) rotate(-45deg);transform:translate(-41.6%,-50%) rotate(-45deg)}.ct--shown{opacity:1;-webkit-transform:none;transform:none}`}]).default})})(qd);var xb=qd.exports;const Cb=mi(xb);let Qe=null;function ms(){Qe||(Qe=new Cb)}function Sb(e,t,n){ms(),Qe?.show(e,t,n)}function Ko(e=!1){ms(),Qe?.hide(e)}function Yo(e,t,n){ms(),Qe?.onHover(e,t,n)}function Eb(){Qe?.destroy(),Qe=null}class Tb extends ee{constructor({config:t,eventsDispatcher:n}){super({config:t,eventsDispatcher:n})}get methods(){return{show:(t,n,o)=>this.show(t,n,o),hide:()=>this.hide(),onHover:(t,n,o)=>this.onHover(t,n,o)}}show(t,n,o){Sb(t,n,o)}hide(){Ko()}onHover(t,n,o){Yo(t,n,o)}}class _b extends ee{get methods(){return{nodes:this.editorNodes}}get editorNodes(){return{wrapper:this.Editor.UI.nodes.wrapper,redactor:this.Editor.UI.nodes.redactor}}}function Gd(e,t){const n={};return Object.entries(e).forEach(([o,i])=>{if(Ee(i)){const r=t?`${t}.${o}`:o;Object.values(i).every(s=>vt(s))?n[o]=r:n[o]=Gd(i,r);return}n[o]=i}),n}const Re=Gd(Ld);function Bb(e,t){const n={};return Object.keys(e).forEach(o=>{const i=t[o];i!==void 0?n[i]=e[o]:n[o]=e[o]}),n}const Kd=class Hn{constructor(t,n){this.cursor=-1,this.items=[],this.items=t||[],this.focusedCssClass=n}get currentItem(){return this.cursor===-1?null:this.items[this.cursor]}setCursor(t){t<this.items.length&&t>=-1&&(this.dropCursor(),this.cursor=t,this.items[this.cursor].classList.add(this.focusedCssClass))}setItems(t){this.items=t}next(){this.cursor=this.leafNodesAndReturnIndex(Hn.directions.RIGHT)}previous(){this.cursor=this.leafNodesAndReturnIndex(Hn.directions.LEFT)}dropCursor(){this.cursor!==-1&&(this.items[this.cursor].classList.remove(this.focusedCssClass),this.cursor=-1)}leafNodesAndReturnIndex(t){if(this.items.length===0)return this.cursor;let n=this.cursor;return n===-1?n=t===Hn.directions.RIGHT?-1:0:this.items[n].classList.remove(this.focusedCssClass),t===Hn.directions.RIGHT?n=(n+1)%this.items.length:n=(this.items.length+n-1)%this.items.length,B.canSetCaret(this.items[n])&&Wo(()=>U.setCursor(this.items[n]),50)(),this.items[n].classList.add(this.focusedCssClass),n}};Kd.directions={RIGHT:"right",LEFT:"left"};let $n=Kd,Xo=class Pr{constructor(t){this.iterator=null,this.activated=!1,this.flipCallbacks=[],this.onKeyDown=n=>{if(!(!this.isEventReadyForHandling(n)||n.shiftKey===!0))switch(Pr.usedKeys.includes(n.keyCode)&&n.preventDefault(),n.keyCode){case K.TAB:this.handleTabPress(n);break;case K.LEFT:case K.UP:this.flipLeft();break;case K.RIGHT:case K.DOWN:this.flipRight();break;case K.ENTER:this.handleEnterPress(n);break}},this.iterator=new $n(t.items,t.focusedItemClass),this.activateCallback=t.activateCallback,this.allowedKeys=t.allowedKeys||Pr.usedKeys}get isActivated(){return this.activated}static get usedKeys(){return[K.TAB,K.LEFT,K.RIGHT,K.ENTER,K.UP,K.DOWN]}activate(t,n){this.activated=!0,t&&this.iterator.setItems(t),n!==void 0&&this.iterator.setCursor(n),document.addEventListener("keydown",this.onKeyDown,!0)}deactivate(){this.activated=!1,this.dropCursor(),document.removeEventListener("keydown",this.onKeyDown)}focusFirst(){this.dropCursor(),this.flipRight()}flipLeft(){this.iterator.previous(),this.flipCallback()}flipRight(){this.iterator.next(),this.flipCallback()}hasFocus(){return!!this.iterator.currentItem}onFlip(t){this.flipCallbacks.push(t)}removeOnFlip(t){this.flipCallbacks=this.flipCallbacks.filter(n=>n!==t)}dropCursor(){this.iterator.dropCursor()}isEventReadyForHandling(t){return this.activated&&this.allowedKeys.includes(t.keyCode)}handleTabPress(t){switch(t.shiftKey?$n.directions.LEFT:$n.directions.RIGHT){case $n.directions.RIGHT:this.flipRight();break;case $n.directions.LEFT:this.flipLeft();break}}handleEnterPress(t){this.activated&&(this.iterator.currentItem&&(t.stopPropagation(),t.preventDefault(),this.iterator.currentItem.click()),de(this.activateCallback)&&this.activateCallback(this.iterator.currentItem))}flipCallback(){this.iterator.currentItem&&this.iterator.currentItem.scrollIntoViewIfNeeded(),this.flipCallbacks.forEach(t=>t())}};const Ob='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
38<path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9 12L9 7.1C9 7.04477 9.04477 7 9.1 7H10.4C11.5 7 14 7.1 14 9.5C14 9.5 14 12 11 12M9 12V16.8C9 16.9105 9.08954 17 9.2 17H12.5C14 17 15 16 15 14.5C15 11.7046 11 12 11 12M9 12H11"/></svg>',Ib='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7 10L11.8586 14.8586C11.9367 14.9367 12.0633 14.9367 12.1414 14.8586L17 10"/></svg>',Pb='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M14.5 17.5L9.64142 12.6414C9.56331 12.5633 9.56331 12.4367 9.64142 12.3586L14.5 7.5"/></svg>',Mb='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.58284 17.5L14.4414 12.6414C14.5195 12.5633 14.5195 12.4367 14.4414 12.3586L9.58284 7.5"/></svg>',Ab='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7 15L11.8586 10.1414C11.9367 10.0633 12.0633 10.0633 12.1414 10.1414L17 15"/></svg>',Lb='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16"/></svg>',Nb='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4" stroke="currentColor" stroke-width="2"/></svg>',jb='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M13.34 10C12.4223 12.7337 11 17 11 17"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M14.21 7H14.2"/></svg>',Lc='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.69998 12.6L7.67896 12.62C6.53993 13.7048 6.52012 15.5155 7.63516 16.625V16.625C8.72293 17.7073 10.4799 17.7102 11.5712 16.6314L13.0263 15.193C14.0703 14.1609 14.2141 12.525 13.3662 11.3266L13.22 11.12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16.22 11.12L16.3564 10.9805C17.2895 10.0265 17.3478 8.5207 16.4914 7.49733V7.49733C15.5691 6.39509 13.9269 6.25143 12.8271 7.17675L11.3901 8.38588C10.0935 9.47674 9.95706 11.4241 11.0888 12.6852L11.12 12.72"/></svg>',$b='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.40999 7.29999H9.4"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 7.29999H14.59"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.30999 12H9.3"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 12H14.59"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.40999 16.7H9.4"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 16.7H14.59"/></svg>',Rb='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M12 7V12M12 17V12M17 12H12M12 12H7"/></svg>',Yd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M11.5 17.5L5 11M5 11V15.5M5 11H9.5"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M12.5 6.5L19 13M19 13V8.5M19 13H14.5"/></svg>',Db='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="5.5" stroke="currentColor" stroke-width="2"/><line x1="15.4142" x2="19" y1="15" y2="18.5858" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>',Fb='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
38<path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M15.7795 11.5C15.7795 11.5 16.053 11.1962 16.5497 10.6722C17.4442 9.72856 17.4701 8.2475 16.5781 7.30145V7.30145C15.6482 6.31522 14.0873 6.29227 13.1288 7.25073L11.8796 8.49999"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8.24517 12.3883C8.24517 12.3883 7.97171 12.6922 7.47504 13.2161C6.58051 14.1598 6.55467 15.6408 7.44666 16.5869V16.5869C8.37653 17.5731 9.93744 17.5961 10.8959 16.6376L12.1452 15.3883"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M17.7802 15.1032L16.597 14.9422C16.0109 14.8624 15.4841 15.3059 15.4627 15.8969L15.4199 17.0818"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6.39064 9.03238L7.58432 9.06668C8.17551 9.08366 8.6522 8.58665 8.61056 7.99669L8.5271 6.81397"/><line x1="12.1142" x2="11.7" y1="12.2" y2="11.7858" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>',Vb='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/><line x1="12" x2="12" y1="9" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M12 15.02V15.01"/></svg>',Hb="__",Ub="--";function Dt(e){return(t,n)=>[[e,t].filter(o=>!!o).join(Hb),n].filter(o=>!!o).join(Ub)}const Rn=Dt("ce-hint"),Dn={root:Rn(),alignedStart:Rn(null,"align-left"),alignedCenter:Rn(null,"align-center"),title:Rn("title"),description:Rn("description")};class zb{constructor(t){this.nodes={root:B.make("div",[Dn.root,t.alignment==="center"?Dn.alignedCenter:Dn.alignedStart]),title:B.make("div",Dn.title,{textContent:t.title})},this.nodes.root.appendChild(this.nodes.title),t.description!==void 0&&(this.nodes.description=B.make("div",Dn.description,{textContent:t.description}),this.nodes.root.appendChild(this.nodes.description))}getElement(){return this.nodes.root}}let gs=class{constructor(t){this.params=t}get name(){if(this.params!==void 0&&"name"in this.params)return this.params.name}destroy(){Ko()}onChildrenOpen(){var t;this.params!==void 0&&"children"in this.params&&typeof((t=this.params.children)==null?void 0:t.onOpen)=="function"&&this.params.children.onOpen()}onChildrenClose(){var t;this.params!==void 0&&"children"in this.params&&typeof((t=this.params.children)==null?void 0:t.onClose)=="function"&&this.params.children.onClose()}handleClick(){var t,n;this.params!==void 0&&"onActivate"in this.params&&((n=(t=this.params).onActivate)==null||n.call(t,this.params))}addHint(t,n){const o=new zb(n);Yo(t,o.getElement(),{placement:n.position,hidingDelay:100})}get children(){var t;return this.params!==void 0&&"children"in this.params&&((t=this.params.children)==null?void 0:t.items)!==void 0?this.params.children.items:[]}get hasChildren(){return this.children.length>0}get isChildrenOpen(){var t;return this.params!==void 0&&"children"in this.params&&((t=this.params.children)==null?void 0:t.isOpen)===!0}get isChildrenFlippable(){var t;return!(this.params===void 0||!("children"in this.params)||((t=this.params.children)==null?void 0:t.isFlippable)===!1)}get isChildrenSearchable(){var t;return this.params!==void 0&&"children"in this.params&&((t=this.params.children)==null?void 0:t.searchable)===!0}get closeOnActivate(){return this.params!==void 0&&"closeOnActivate"in this.params&&this.params.closeOnActivate}get isActive(){return this.params===void 0||!("isActive"in this.params)?!1:typeof this.params.isActive=="function"?this.params.isActive():this.params.isActive===!0}};const je=Dt("ce-popover-item"),he={container:je(),active:je(null,"active"),disabled:je(null,"disabled"),focused:je(null,"focused"),hidden:je(null,"hidden"),confirmationState:je(null,"confirmation"),noHover:je(null,"no-hover"),noFocus:je(null,"no-focus"),title:je("title"),secondaryTitle:je("secondary-title"),icon:je("icon"),iconTool:je("icon","tool"),iconChevronRight:je("icon","chevron-right"),wobbleAnimation:Dt("wobble")()};let Wt=class extends gs{constructor(t,n){super(t),this.params=t,this.nodes={root:null,icon:null},this.confirmationState=null,this.removeSpecialFocusBehavior=()=>{var o;(o=this.nodes.root)==null||o.classList.remove(he.noFocus)},this.removeSpecialHoverBehavior=()=>{var o;(o=this.nodes.root)==null||o.classList.remove(he.noHover)},this.onErrorAnimationEnd=()=>{var o,i;
vendor: 56,162 bytes, lines 38-44
38(o=this.nodes.icon)==null||o.classList.remove(he.wobbleAnimation),(i=this.nodes.icon)==null||i.removeEventListener("animationend",this.onErrorAnimationEnd)},this.nodes.root=this.make(t,n)}get isDisabled(){return this.params.isDisabled===!0}get toggle(){return this.params.toggle}get title(){return this.params.title}get isConfirmationStateEnabled(){return this.confirmationState!==null}get isFocused(){return this.nodes.root===null?!1:this.nodes.root.classList.contains(he.focused)}getElement(){return this.nodes.root}handleClick(){if(this.isConfirmationStateEnabled&&this.confirmationState!==null){this.activateOrEnableConfirmationMode(this.confirmationState);return}this.activateOrEnableConfirmationMode(this.params)}toggleActive(t){var n;(n=this.nodes.root)==null||n.classList.toggle(he.active,t)}toggleHidden(t){var n;(n=this.nodes.root)==null||n.classList.toggle(he.hidden,t)}reset(){this.isConfirmationStateEnabled&&this.disableConfirmationMode()}onFocus(){this.disableSpecialHoverAndFocusBehavior()}make(t,n){var o,i;const r=n?.wrapperTag||"div",s=B.make(r,he.container,{type:r==="button"?"button":void 0});return t.name&&(s.dataset.itemName=t.name),this.nodes.icon=B.make("div",[he.icon,he.iconTool],{innerHTML:t.icon||Nb}),s.appendChild(this.nodes.icon),t.title!==void 0&&s.appendChild(B.make("div",he.title,{innerHTML:t.title||""})),t.secondaryLabel&&s.appendChild(B.make("div",he.secondaryTitle,{textContent:t.secondaryLabel})),this.hasChildren&&s.appendChild(B.make("div",[he.icon,he.iconChevronRight],{innerHTML:Mb})),this.isActive&&s.classList.add(he.active),t.isDisabled&&s.classList.add(he.disabled),t.hint!==void 0&&((o=n?.hint)==null?void 0:o.enabled)!==!1&&this.addHint(s,{...t.hint,position:((i=n?.hint)==null?void 0:i.position)||"right"}),s}enableConfirmationMode(t){if(this.nodes.root===null)return;const n={...this.params,...t,confirmation:"confirmation"in t?t.confirmation:void 0},o=this.make(n);this.nodes.root.innerHTML=o.innerHTML,this.nodes.root.classList.add(he.confirmationState),this.confirmationState=t,this.enableSpecialHoverAndFocusBehavior()}disableConfirmationMode(){if(this.nodes.root===null)return;const t=this.make(this.params);this.nodes.root.innerHTML=t.innerHTML,this.nodes.root.classList.remove(he.confirmationState),this.confirmationState=null,this.disableSpecialHoverAndFocusBehavior()}enableSpecialHoverAndFocusBehavior(){var t,n,o;(t=this.nodes.root)==null||t.classList.add(he.noHover),(n=this.nodes.root)==null||n.classList.add(he.noFocus),(o=this.nodes.root)==null||o.addEventListener("mouseleave",this.removeSpecialHoverBehavior,{once:!0})}disableSpecialHoverAndFocusBehavior(){var t;this.removeSpecialFocusBehavior(),this.removeSpecialHoverBehavior(),(t=this.nodes.root)==null||t.removeEventListener("mouseleave",this.removeSpecialHoverBehavior)}activateOrEnableConfirmationMode(t){var n;if(!("confirmation"in t)||t.confirmation===void 0)try{(n=t.onActivate)==null||n.call(t,t),this.disableConfirmationMode()}catch{this.animateError()}else this.enableConfirmationMode(t.confirmation)}animateError(){var t,n,o;(t=this.nodes.icon)!=null&&t.classList.contains(he.wobbleAnimation)||((n=this.nodes.icon)==null||n.classList.add(he.wobbleAnimation),(o=this.nodes.icon)==null||o.addEventListener("animationend",this.onErrorAnimationEnd))}};const Zi=Dt("ce-popover-item-separator"),Ji={container:Zi(),line:Zi("line"),hidden:Zi(null,"hidden")};class Xd extends gs{constructor(){super(),this.nodes={root:B.make("div",Ji.container),line:B.make("div",Ji.line)},this.nodes.root.appendChild(this.nodes.line)}getElement(){return this.nodes.root}toggleHidden(t){var n;(n=this.nodes.root)==null||n.classList.toggle(Ji.hidden,t)}}var st=(e=>(e.Closed="closed",e.ClosedOnActivate="closed-on-activate",e))(st||{});const Oe=Dt("ce-popover"),pe={popover:Oe(),popoverContainer:Oe("container"),popoverOpenTop:Oe(null,"open-top"),popoverOpenLeft:Oe(null,"open-left"),popoverOpened:Oe(null,"opened"),search:Oe("search"),nothingFoundMessage:Oe("nothing-found-message"),nothingFoundMessageDisplayed:Oe("nothing-found-message","displayed"),items:Oe("items"),overlay:Oe("overlay"),overlayHidden:Oe("overlay","hidden"),popoverNested:Oe(null,"nested"),getPopoverNestedClass:e=>Oe(null,`nested-level-${e.toString()}`),popoverInline:Oe(null,"inline"),popoverHeader:Oe("header")};var xn=(e=>(e.NestingLevel="--nesting-level",e.PopoverHeight="--popover-height",e.InlinePopoverWidth="--inline-popover-width",e.TriggerItemLeft="--trigger-item-left",e.TriggerItemTop="--trigger-item-top",e))(xn||{});const Nc=Dt("ce-popover-item-html"),jc={root:Nc(),hidden:Nc(null,"hidden")};let Jn=class extends gs{constructor(t,n){var o,i;super(t),this.nodes={root:B.make("div",jc.root)},this.nodes.root.appendChild(t.element),t.name&&(this.nodes.root.dataset.itemName=t.name),t.hint!==void 0&&((o=n?.hint)==null?void 0:o.enabled)!==!1&&this.addHint(this.nodes.root,{...t.hint,position:((i=n?.hint)==null?void 0:i.position)||"right"})}getElement(){return this.nodes.root}toggleHidden(t){var n;(n=this.nodes.root)==null||n.classList.toggle(jc.hidden,t)}getControls(){const t=this.nodes.root.querySelectorAll(`button, ${B.allInputsSelector}`);return Array.from(t)}};class Zd extends ao{constructor(t,n={}){super(),this.params=t,this.itemsRenderParams=n,this.listeners=new lo,this.messages={nothingFound:"Nothing found",search:"Search"},this.items=this.buildItems(t.items),t.messages&&(this.messages={...this.messages,...t.messages}),this.nodes={},this.nodes.popoverContainer=B.make("div",[pe.popoverContainer]),this.nodes.nothingFoundMessage=B.make("div",[pe.nothingFoundMessage],{textContent:this.messages.nothingFound}),this.nodes.popoverContainer.appendChild(this.nodes.nothingFoundMessage),this.nodes.items=B.make("div",[pe.items]),this.items.forEach(o=>{const i=o.getElement();i!==null&&this.nodes.items.appendChild(i)}),this.nodes.popoverContainer.appendChild(this.nodes.items),this.listeners.on(this.nodes.popoverContainer,"click",o=>this.handleClick(o)),this.nodes.popover=B.make("div",[pe.popover,this.params.class]),this.nodes.popover.appendChild(this.nodes.popoverContainer)}get itemsDefault(){return this.items.filter(t=>t instanceof Wt)}getElement(){return this.nodes.popover}show(){this.nodes.popover.classList.add(pe.popoverOpened),this.search!==void 0&&this.search.focus()}hide(){this.nodes.popover.classList.remove(pe.popoverOpened),this.nodes.popover.classList.remove(pe.popoverOpenTop),this.itemsDefault.forEach(t=>t.reset()),this.search!==void 0&&this.search.clear(),this.emit(st.Closed)}destroy(){var t;this.items.forEach(n=>n.destroy()),this.nodes.popover.remove(),this.listeners.removeAll(),(t=this.search)==null||t.destroy()}activateItemByName(t){const n=this.items.find(o=>o.name===t);this.handleItemClick(n)}buildItems(t){return t.map(n=>{switch(n.type){case le.Separator:return new Xd;case le.Html:return new Jn(n,this.itemsRenderParams[le.Html]);default:return new Wt(n,this.itemsRenderParams[le.Default])}})}getTargetItem(t){return this.items.filter(n=>n instanceof Wt||n instanceof Jn).find(n=>{const o=n.getElement();return o===null?!1:t.composedPath().includes(o)})}handleItemClick(t){if(!("isDisabled"in t&&t.isDisabled)){if(t.hasChildren){this.showNestedItems(t),"handleClick"in t&&typeof t.handleClick=="function"&&t.handleClick();return}this.itemsDefault.filter(n=>n!==t).forEach(n=>n.reset()),"handleClick"in t&&typeof t.handleClick=="function"&&t.handleClick(),this.toggleItemActivenessIfNeeded(t),t.closeOnActivate&&(this.hide(),this.emit(st.ClosedOnActivate))}}handleClick(t){const n=this.getTargetItem(t);n!==void 0&&this.handleItemClick(n)}toggleItemActivenessIfNeeded(t){if(t instanceof Wt&&(t.toggle===!0&&t.toggleActive(),typeof t.toggle=="string")){const n=this.itemsDefault.filter(o=>o.toggle===t.toggle);if(n.length===1){t.toggleActive();return}n.forEach(o=>{o.toggleActive(o===t)})}}}var Zo=(e=>(e.Search="search",e))(Zo||{});const Qi=Dt("cdx-search-field"),er={wrapper:Qi(),icon:Qi("icon"),input:Qi("input")};class Wb extends ao{constructor({items:t,placeholder:n}){super(),this.listeners=new lo,this.items=t,this.wrapper=B.make("div",er.wrapper);const o=B.make("div",er.icon,{innerHTML:Db});this.input=B.make("input",er.input,{placeholder:n,tabIndex:-1}),this.wrapper.appendChild(o),this.wrapper.appendChild(this.input),this.listeners.on(this.input,"input",()=>{this.searchQuery=this.input.value,this.emit(Zo.Search,{query:this.searchQuery,items:this.foundItems})})}getElement(){return this.wrapper}focus(){this.input.focus()}clear(){this.input.value="",this.searchQuery="",this.emit(Zo.Search,{query:"",items:this.foundItems})}destroy(){this.listeners.removeAll()}get foundItems(){return this.items.filter(t=>this.checkItem(t))}checkItem(t){var n,o;const i=((n=t.title)==null?void 0:n.toLowerCase())||"",r=(o=this.searchQuery)==null?void 0:o.toLowerCase();return r!==void 0?i.includes(r):!1}}var qb=Object.defineProperty,Gb=Object.getOwnPropertyDescriptor,Kb=(e,t,n,o)=>{for(var i=Gb(t,n),r=e.length-1,s;r>=0;r--)(s=e[r])&&(i=s(t,n,i)||i);return i&&qb(t,n,i),i};const Jd=class Qd extends Zd{constructor(t,n){super(t,n),this.nestingLevel=0,this.nestedPopoverTriggerItem=null,this.previouslyHoveredItem=null,this.scopeElement=document.body,this.hide=()=>{var o;super.hide(),this.destroyNestedPopoverIfExists(),(o=this.flipper)==null||o.deactivate(),this.previouslyHoveredItem=null},this.onFlip=()=>{const o=this.itemsDefault.find(i=>i.isFocused);o?.onFocus()},this.onSearch=o=>{var i;const r=o.query==="",s=o.items.length===0;this.items.forEach(l=>{let c=!1;l instanceof Wt?c=!o.items.includes(l):(l instanceof Xd||l instanceof Jn)&&(c=s||!r),l.toggleHidden(c)}),this.toggleNothingFoundMessage(s);const a=o.query===""?this.flippableElements:o.items.map(l=>l.getElement());(i=this.flipper)!=null&&i.isActivated&&(this.flipper.deactivate(),this.flipper.activate(a))},t.nestingLevel!==void 0&&(this.nestingLevel=t.nestingLevel),this.nestingLevel>0&&this.nodes.popover.classList.add(pe.popoverNested),t.scopeElement!==void 0&&(this.scopeElement=t.scopeElement),this.nodes.popoverContainer!==null&&this.listeners.on(this.nodes.popoverContainer,"mouseover",o=>this.handleHover(o)),t.searchable&&this.addSearch(),t.flippable!==!1&&(this.flipper=new Xo({items:this.flippableElements,focusedItemClass:he.focused,allowedKeys:[K.TAB,K.UP,K.DOWN,K.ENTER]}),this.flipper.onFlip(this.onFlip))}hasFocus(){return this.flipper===void 0?!1:this.flipper.hasFocus()}get scrollTop(){return this.nodes.items===null?0:this.nodes.items.scrollTop}get offsetTop(){return this.nodes.popoverContainer===null?0:this.nodes.popoverContainer.offsetTop}show(){var t;this.nodes.popover.style.setProperty(xn.PopoverHeight,this.size.height+"px"),this.shouldOpenBottom||this.nodes.popover.classList.add(pe.popoverOpenTop),this.shouldOpenRight||this.nodes.popover.classList.add(pe.popoverOpenLeft),super.show(),(t=this.flipper)==null||t.activate(this.flippableElements)}destroy(){this.hide(),super.destroy()}showNestedItems(t){this.nestedPopover!==null&&this.nestedPopover!==void 0||(this.nestedPopoverTriggerItem=t,this.showNestedPopoverForItem(t))}handleHover(t){const n=this.getTargetItem(t);n!==void 0&&this.previouslyHoveredItem!==n&&(this.destroyNestedPopoverIfExists(),this.previouslyHoveredItem=n,n.hasChildren&&this.showNestedPopoverForItem(n))}setTriggerItemPosition(t,n){const o=n.getElement(),i=(o?o.offsetTop:0)-this.scrollTop,r=this.offsetTop+i;t.style.setProperty(xn.TriggerItemTop,r+"px")}destroyNestedPopoverIfExists(){var t,n;this.nestedPopover===void 0||this.nestedPopover===null||(this.nestedPopover.off(st.ClosedOnActivate,this.hide),this.nestedPopover.hide(),this.nestedPopover.destroy(),this.nestedPopover.getElement().remove(),this.nestedPopover=null,(t=this.flipper)==null||t.activate(this.flippableElements),(n=this.nestedPopoverTriggerItem)==null||n.onChildrenClose())}showNestedPopoverForItem(t){var n;this.nestedPopover=new Qd({searchable:t.isChildrenSearchable,items:t.children,nestingLevel:this.nestingLevel+1,flippable:t.isChildrenFlippable,messages:this.messages}),t.onChildrenOpen(),this.nestedPopover.on(st.ClosedOnActivate,this.hide);const o=this.nestedPopover.getElement();return this.nodes.popover.appendChild(o),this.setTriggerItemPosition(o,t),o.style.setProperty(xn.NestingLevel,this.nestedPopover.nestingLevel.toString()),this.nestedPopover.show(),(n=this.flipper)==null||n.deactivate(),this.nestedPopover}get shouldOpenBottom(){if(this.nodes.popover===void 0||this.nodes.popover===null)return!1;const t=this.nodes.popoverContainer.getBoundingClientRect(),n=this.scopeElement.getBoundingClientRect(),o=this.size.height,i=t.top+o,r=t.top-o,s=Math.min(window.innerHeight,n.bottom);return r<n.top||i<=s}get shouldOpenRight(){if(this.nodes.popover===void 0||this.nodes.popover===null)return!1;const t=this.nodes.popover.getBoundingClientRect(),n=this.scopeElement.getBoundingClientRect(),o=this.size.width,i=t.right+o,r=t.left-o,s=Math.min(window.innerWidth,n.right);return r<n.left||i<=s}get size(){var t;const n={height:0,width:0};if(this.nodes.popover===null)return n;const o=this.nodes.popover.cloneNode(!0);o.style.visibility="hidden",o.style.position="absolute",o.style.top="-1000px",o.classList.add(pe.popoverOpened),(t=o.querySelector("."+pe.popoverNested))==null||t.remove(),document.body.appendChild(o);const i=o.querySelector("."+pe.popoverContainer);return n.height=i.offsetHeight,n.width=i.offsetWidth,o.remove(),n}get flippableElements(){return this.items.map(t=>{if(t instanceof Wt)return t.getElement();if(t instanceof Jn)return t.getControls()}).flat().filter(t=>t!=null)}addSearch(){this.search=new Wb({items:this.itemsDefault,placeholder:this.messages.search}),this.search.on(Zo.Search,this.onSearch);const t=this.search.getElement();t.classList.add(pe.search),this.nodes.popoverContainer.insertBefore(t,this.nodes.popoverContainer.firstChild)}toggleNothingFoundMessage(t){this.nodes.nothingFoundMessage.classList.toggle(pe.nothingFoundMessageDisplayed,t)}};Kb([An],Jd.prototype,"size");let vs=Jd;class Yb extends vs{constructor(t){const n=!Ln();super({...t,class:pe.popoverInline},{[le.Default]:{wrapperTag:"button",hint:{position:"top",alignment:"center",enabled:n}},[le.Html]:{hint:{position:"top",alignment:"center",enabled:n}}}),this.items.forEach(o=>{!(o instanceof Wt)&&!(o instanceof Jn)||o.hasChildren&&o.isChildrenOpen&&this.showNestedItems(o)})}get offsetLeft(){return this.nodes.popoverContainer===null?0:this.nodes.popoverContainer.offsetLeft}show(){this.nestingLevel===0&&this.nodes.popover.style.setProperty(xn.InlinePopoverWidth,this.size.width+"px"),super.show()}handleHover(){}setTriggerItemPosition(t,n){const o=n.getElement(),i=o?o.offsetLeft:0,r=this.offsetLeft+i;t.style.setProperty(xn.TriggerItemLeft,r+"px")}showNestedItems(t){if(this.nestedPopoverTriggerItem===t){this.destroyNestedPopoverIfExists(),this.nestedPopoverTriggerItem=null;return}super.showNestedItems(t)}showNestedPopoverForItem(t){const n=super.showNestedPopoverForItem(t);return n.getElement().classList.add(pe.getPopoverNestedClass(n.nestingLevel)),n}handleItemClick(t){var n;t!==this.nestedPopoverTriggerItem&&((n=this.nestedPopoverTriggerItem)==null||n.handleClick(),super.destroyNestedPopoverIfExists()),super.handleItemClick(t)}}const eh=class Un{constructor(){this.scrollPosition=null}lock(){Br?this.lockHard():document.body.classList.add(Un.CSS.scrollLocked)}unlock(){Br?this.unlockHard():document.body.classList.remove(Un.CSS.scrollLocked)}lockHard(){this.scrollPosition=window.pageYOffset,document.documentElement.style.setProperty("--window-scroll-offset",`${this.scrollPosition}px`),document.body.classList.add(Un.CSS.scrollLockedHard)}unlockHard(){document.body.classList.remove(Un.CSS.scrollLockedHard),this.scrollPosition!==null&&window.scrollTo(0,this.scrollPosition),this.scrollPosition=null}};eh.CSS={scrollLocked:"ce-scroll-locked",scrollLockedHard:"ce-scroll-locked--hard"};let Xb=eh;const tr=Dt("ce-popover-header"),nr={root:tr(),text:tr("text"),backButton:tr("back-button")};class Zb{constructor({text:t,onBackButtonClick:n}){this.listeners=new lo,this.text=t,this.onBackButtonClick=n,this.nodes={root:B.make("div",[nr.root]),backButton:B.make("button",[nr.backButton]),text:B.make("div",[nr.text])},this.nodes.backButton.innerHTML=Pb,this.nodes.root.appendChild(this.nodes.backButton),this.listeners.on(this.nodes.backButton,"click",this.onBackButtonClick),this.nodes.text.innerText=this.text,this.nodes.root.appendChild(this.nodes.text)}getElement(){return this.nodes.root}destroy(){this.nodes.root.remove(),this.listeners.destroy()}}class Jb{constructor(){this.history=[]}push(t){this.history.push(t)}pop(){return this.history.pop()}get currentTitle(){return this.history.length===0?"":this.history[this.history.length-1].title}get currentItems(){return this.history.length===0?[]:this.history[this.history.length-1].items}reset(){for(;this.history.length>1;)this.pop()}}let th=class extends Zd{constructor(t){super(t,{[le.Default]:{hint:{enabled:!1}},[le.Html]:{hint:{enabled:!1}}}),this.scrollLocker=new Xb,this.history=new Jb,this.isHidden=!0,this.nodes.overlay=B.make("div",[pe.overlay,pe.overlayHidden]),this.nodes.popover.insertBefore(this.nodes.overlay,this.nodes.popover.firstChild),this.listeners.on(this.nodes.overlay,"click",()=>{this.hide()}),this.history.push({items:t.items})}show(){this.nodes.overlay.classList.remove(pe.overlayHidden),super.show(),this.scrollLocker.lock(),this.isHidden=!1}hide(){this.isHidden||(super.hide(),this.nodes.overlay.classList.add(pe.overlayHidden),this.scrollLocker.unlock(),this.history.reset(),this.isHidden=!0)}destroy(){super.destroy(),this.scrollLocker.unlock()}showNestedItems(t){this.updateItemsAndHeader(t.children,t.title),this.history.push({title:t.title,items:t.children})}updateItemsAndHeader(t,n){if(this.header!==null&&this.header!==void 0&&(this.header.destroy(),this.header=null),n!==void 0){this.header=new Zb({text:n,onBackButtonClick:()=>{this.history.pop(),this.updateItemsAndHeader(this.history.currentItems,this.history.currentTitle)}});const o=this.header.getElement();o!==null&&this.nodes.popoverContainer.insertBefore(o,this.nodes.popoverContainer.firstChild)}this.items.forEach(o=>{var i;return(i=o.getElement())==null?void 0:i.remove()}),this.items=this.buildItems(t),this.items.forEach(o=>{var i;const r=o.getElement();r!==null&&((i=this.nodes.items)==null||i.appendChild(r))})}};class Qb extends ee{constructor(){super(...arguments),this.opened=!1,this.hasMobileLayoutToggleListener=!1,this.selection=new U,this.popover=null,this.close=()=>{this.opened&&(this.opened=!1,U.isAtEditor||this.selection.restore(),this.selection.clearSaved(),!this.Editor.CrossBlockSelection.isCrossBlockSelectionStarted&&this.Editor.BlockManager.currentBlock&&this.Editor.BlockSelection.unselectBlock(this.Editor.BlockManager.currentBlock),this.eventsDispatcher.emit(this.events.closed),this.popover&&(this.popover.off(st.Closed,this.onPopoverClose),this.popover.destroy(),this.popover.getElement().remove(),this.popover=null))},this.onPopoverClose=()=>{this.close()}}get events(){return{opened:"block-settings-opened",closed:"block-settings-closed"}}get CSS(){return{settings:"ce-settings"}}get flipper(){var t;if(this.popover!==null)return"flipper"in this.popover?(t=this.popover)==null?void 0:t.flipper:void 0}make(){this.nodes.wrapper=B.make("div",[this.CSS.settings]),this.eventsDispatcher.on(Zn,this.close),this.hasMobileLayoutToggleListener=!0}destroy(){this.removeAllNodes(),this.listeners.destroy(),this.hasMobileLayoutToggleListener&&(this.eventsDispatcher.off(Zn,this.close),this.hasMobileLayoutToggleListener=!1)}async open(t=this.Editor.BlockManager.currentBlock){var n;this.opened=!0,this.selection.save(),this.Editor.BlockSelection.selectBlock(t),this.Editor.BlockSelection.clearCache();const{toolTunes:o,commonTunes:i}=t.getTunes();this.eventsDispatcher.emit(this.events.opened);const r=Ln()?th:vs;this.popover=new r({searchable:!0,items:await this.getTunesItems(t,i,o),scopeElement:this.Editor.API.methods.ui.nodes.redactor,messages:{nothingFound:Me.ui(Re.ui.popover,"Nothing found"),search:Me.ui(Re.ui.popover,"Filter")}}),this.popover.on(st.Closed,this.onPopoverClose),(n=this.nodes.wrapper)==null||n.append(this.popover.getElement()),this.popover.show()}getElement(){return this.nodes.wrapper}async getTunesItems(t,n,o){const i=[];o!==void 0&&o.length>0&&(i.push(...o),i.push({type:le.Separator}));const r=Array.from(this.Editor.Tools.blockTools.values()),s=(await Hd(t,r)).reduce((a,l)=>(l.toolbox.forEach(c=>{a.push({icon:c.icon,title:Me.t(Re.toolNames,c.title),name:l.name,closeOnActivate:!0,onActivate:async()=>{const{BlockManager:u,Caret:d,Toolbar:h}=this.Editor,p=await u.convert(t,l.name,c.data);h.close(),d.setToBlock(p,d.positions.END)}})}),a),[]);return s.length>0&&(i.push({icon:Yd,name:"convert-to",title:Me.ui(Re.ui.popover,"Convert to"),children:{searchable:!0,items:s}}),i.push({type:le.Separator})),i.push(...n),i.map(a=>this.resolveTuneAliases(a))}resolveTuneAliases(t){if(t.type===le.Separator||t.type===le.Html)return t;const n=Bb(t,{label:"title"});return t.confirmation&&(n.confirmation=this.resolveTuneAliases(t.confirmation)),n}}var nh={exports:{}};/*! 39 * Library for handling keyboard shortcuts 40 * @copyright CodeX (https://codex.so) 41 * @license MIT 42 * @author CodeX (https://codex.so) 43 * @version 1.2.0 44 */(function(e,t){(function(n,o){e.exports=o()})(window,function(){return(function(n){var o={};function i(r){if(o[r])return o[r].exports;var s=o[r]={i:r,l:!1,exports:{}};return n[r].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=o,i.d=function(r,s,a){i.o(r,s)||Object.defineProperty(r,s,{enumerable:!0,get:a})},i.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},i.t=function(r,s){if(1&s&&(r=i(r)),8&s||4&s&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&s&&typeof r!="string")for(var l in r)i.d(a,l,(function(c){return r[c]}).bind(null,l));return a},i.n=function(r){var s=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(s,"a",s),s},i.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s)},i.p="",i(i.s=0)})([function(n,o,i){function r(l,c){for(var u=0;u<c.length;u++){var d=c[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function s(l,c,u){return c&&r(l.prototype,c),u&&r(l,u),l}i.r(o);var a=(function(){function l(c){var u=this;(function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")})(this,l),this.commands={},this.keys={},this.name=c.name,this.parseShortcutName(c.name),this.element=c.on,this.callback=c.callback,this.executeShortcut=function(d){u.execute(d)},this.element.addEventListener("keydown",this.executeShortcut,!1)}return s(l,null,[{key:"supportedCommands",get:function(){return{SHIFT:["SHIFT"],CMD:["CMD","CONTROL","COMMAND","WINDOWS","CTRL"],ALT:["ALT","OPTION"]}}},{key:"keyCodes",get:function(){return{0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,BACKSPACE:8,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DELETE:46,".":190}}}]),s(l,[{key:"parseShortcutName",value:function(c){c=c.split("+");for(var u=0;u<c.length;u++){c[u]=c[u].toUpperCase();var d=!1;for(var h in l.supportedCommands)if(l.supportedCommands[h].includes(c[u])){d=this.commands[h]=!0;break}d||(this.keys[c[u]]=!0)}for(var p in l.supportedCommands)this.commands[p]||(this.commands[p]=!1)}},{key:"execute",value:function(c){var u,d={CMD:c.ctrlKey||c.metaKey,SHIFT:c.shiftKey,ALT:c.altKey},h=!0;for(u in this.commands)this.commands[u]!==d[u]&&(h=!1);var p,m=!0;for(p in this.keys)m=m&&c.keyCode===l.keyCodes[p];h&&m&&this.callback(c)}},{key:"remove",value:function(){this.element.removeEventListener("keydown",this.executeShortcut)}}]),l})();o.default=a}]).default})})(nh);var ey=nh.exports;const ty=mi(ey);class ny{constructor(){this.registeredShortcuts=new Map}add(t){if(this.findShortcut(t.on,t.name))throw Error(`Shortcut ${t.name} is already registered for ${t.on}. Please remove it before add a new handler.`);const n=new ty({name:t.name,on:t.on,callback:t.handler}),o=this.registeredShortcuts.get(t.on)||[];this.registeredShortcuts.set(t.on,[...o,n])}remove(t,n){const o=this.findShortcut(t,n);if(!o)return;o.remove();const i=this.registeredShortcuts.get(t).filter(r=>r!==o);if(i.length===0){this.registeredShortcuts.delete(t);return}this.registeredShortcuts.set(t,i)}findShortcut(t,n){return(this.registeredShortcuts.get(t)||[]).find(({name:o})=>o===n)}}const Tn=new ny;var oy=Object.defineProperty,iy=Object.getOwnPropertyDescriptor,oh=(e,t,n,o)=>{for(var i=iy(t,n),r=e.length-1,s;r>=0;r--)(s=e[r])&&(i=s(t,n,i)||i);return i&&oy(t,n,i),i},xo=(e=>(e.Opened="toolbox-opened",e.Closed="toolbox-closed",e.BlockAdded="toolbox-block-added",e))(xo||{});const bs=class ih extends ao{constructor({api:t,tools:n,i18nLabels:o}){super(),this.opened=!1,this.listeners=new lo,this.popover=null,this.handleMobileLayoutToggle=()=>{this.destroyPopover(),this.initPopover()},this.onPopoverClose=()=>{this.opened=!1,this.emit("toolbox-closed")},this.api=t,this.tools=n,this.i18nLabels=o,this.enableShortcuts(),this.nodes={toolbox:B.make("div",ih.CSS.toolbox)},this.initPopover(),this.api.events.on(Zn,this.handleMobileLayoutToggle)}get isEmpty(){return this.toolsToBeDisplayed.length===0}static get CSS(){return{toolbox:"ce-toolbox"}}getElement(){return this.nodes.toolbox}hasFocus(){if(this.popover!==null)return"hasFocus"in this.popover?this.popover.hasFocus():void 0}destroy(){var t;super.destroy(),this.nodes&&this.nodes.toolbox&&this.nodes.toolbox.remove(),this.removeAllShortcuts(),(t=this.popover)==null||t.off(st.Closed,this.onPopoverClose),this.listeners.destroy(),this.api.events.off(Zn,this.handleMobileLayoutToggle)}toolButtonActivated(t,n){this.insertNewBlock(t,n)}open(){var t;this.isEmpty||((t=this.popover)==null||t.show(),this.opened=!0,this.emit("toolbox-opened"))}close(){var t;(t=this.popover)==null||t.hide(),this.opened=!1,this.emit("toolbox-closed")}toggle(){this.opened?this.close():this.open()}initPopover(){var t;const n=Ln()?th:vs;this.popover=new n({scopeElement:this.api.ui.nodes.redactor,searchable:!0,messages:{nothingFound:this.i18nLabels.nothingFound,search:this.i18nLabels.filter},items:this.toolboxItemsToBeDisplayed}),this.popover.on(st.Closed,this.onPopoverClose),(t=this.nodes.toolbox)==null||t.append(this.popover.getElement())}destroyPopover(){this.popover!==null&&(this.popover.hide(),this.popover.off(st.Closed,this.onPopoverClose),this.popover.destroy(),this.popover=null),this.nodes.toolbox!==null&&(this.nodes.toolbox.innerHTML="")}get toolsToBeDisplayed(){const t=[];return this.tools.forEach(n=>{n.toolbox&&t.push(n)}),t}get toolboxItemsToBeDisplayed(){const t=(n,o,i=!0)=>({icon:n.icon,title:Me.t(Re.toolNames,n.title||qo(o.name)),name:o.name,onActivate:()=>{this.toolButtonActivated(o.name,n.data)},secondaryLabel:o.shortcut&&i?hs(o.shortcut):""});return this.toolsToBeDisplayed.reduce((n,o)=>(Array.isArray(o.toolbox)?o.toolbox.forEach((i,r)=>{n.push(t(i,o,r===0))}):o.toolbox!==void 0&&n.push(t(o.toolbox,o)),n),[])}enableShortcuts(){this.toolsToBeDisplayed.forEach(t=>{const n=t.shortcut;n&&this.enableShortcutForTool(t.name,n)})}enableShortcutForTool(t,n){Tn.add({name:n,on:this.api.ui.nodes.redactor,handler:async o=>{o.preventDefault();const i=this.api.blocks.getCurrentBlockIndex(),r=this.api.blocks.getBlockByIndex(i);if(r)try{const s=await this.api.blocks.convert(r.id,t);this.api.caret.setToBlock(s,"end");return}catch{}this.insertNewBlock(t)}})}removeAllShortcuts(){this.toolsToBeDisplayed.forEach(t=>{const n=t.shortcut;n&&Tn.remove(this.api.ui.nodes.redactor,n)})}async insertNewBlock(t,n){const o=this.api.blocks.getCurrentBlockIndex(),i=this.api.blocks.getBlockByIndex(o);if(!i)return;const r=i.isEmpty?o:o+1;let s;if(n){const l=await this.api.blocks.composeBlockData(t);s=Object.assign(l,n)}const a=this.api.blocks.insert(t,s,void 0,r,void 0,i.isEmpty);a.call(ft.APPEND_CALLBACK),this.api.caret.setToBlock(r),this.emit("toolbox-block-added",{block:a}),this.api.toolbar.close()}};oh([An],bs.prototype,"toolsToBeDisplayed");oh([An],bs.prototype,"toolboxItemsToBeDisplayed");let ry=bs;const rh="block hovered";async function sy(e,t){const n=navigator.keyboard;if(!n)return t;try{return(await n.getLayoutMap()).get(e)||t}catch(o){return console.error(o),t}}class ay extends ee{constructor({config:t,eventsDispatcher:n}){super({config:t,eventsDispatcher:n}),this.toolboxInstance=null}get CSS(){return{toolbar:"ce-toolbar",content:"ce-toolbar__content",actions:"ce-toolbar__actions",actionsOpened:"ce-toolbar__actions--opened",toolbarOpened:"ce-toolbar--opened",openedToolboxHolderModifier:"codex-editor--toolbox-opened",plusButton:"ce-toolbar__plus",plusButtonShortcut:"ce-toolbar__plus-shortcut",settingsToggler:"ce-toolbar__settings-btn",settingsTogglerHidden:"ce-toolbar__settings-btn--hidden"}}get opened(){return this.nodes.wrapper.classList.contains(this.CSS.toolbarOpened)}get toolbox(){var t;return{opened:(t=this.toolboxInstance)==null?void 0:t.opened,close:()=>{var n;(n=this.toolboxInstance)==null||n.close()},open:()=>{if(this.toolboxInstance===null){se("toolbox.open() called before initialization is finished","warn");return}this.Editor.BlockManager.currentBlock=this.hoveredBlock,this.toolboxInstance.open()},toggle:()=>{if(this.toolboxInstance===null){se("toolbox.toggle() called before initialization is finished","warn");return}this.toolboxInstance.toggle()},hasFocus:()=>{var n;return(n=this.toolboxInstance)==null?void 0:n.hasFocus()}}}get blockActions(){return{hide:()=>{this.nodes.actions.classList.remove(this.CSS.actionsOpened)},show:()=>{this.nodes.actions.classList.add(this.CSS.actionsOpened)}}}get blockTunesToggler(){return{hide:()=>this.nodes.settingsToggler.classList.add(this.CSS.settingsTogglerHidden),show:()=>this.nodes.settingsToggler.classList.remove(this.CSS.settingsTogglerHidden)}}toggleReadOnly(t){t?(this.destroy(),this.Editor.BlockSettings.destroy(),this.disableModuleBindings()):window.requestIdleCallback(()=>{this.drawUI(),this.enableModuleBindings()},{timeout:2e3})}moveAndOpen(t=this.Editor.BlockManager.currentBlock){if(this.toolboxInstance===null){se("Can't open Toolbar since Editor initialization is not finished yet","warn");return}if(this.toolboxInstance.opened&&this.toolboxInstance.close(),this.Editor.BlockSettings.opened&&this.Editor.BlockSettings.close(),!t)return;this.hoveredBlock=t;const n=t.holder,{isMobile:o}=this.Editor.UI;let i;const r=20,s=t.firstInput,a=n.getBoundingClientRect(),l=s!==void 0?s.getBoundingClientRect():null,c=l!==null?l.top-a.top:null,u=c!==null?c>r:void 0;if(o)i=n.offsetTop+n.offsetHeight;else if(s===void 0||u){const d=parseInt(window.getComputedStyle(t.pluginsContent).paddingTop);i=n.offsetTop+d}else{const d=zv(s),h=parseInt(window.getComputedStyle(this.nodes.plusButton).height,10);i=n.offsetTop+d-h+8+c}this.nodes.wrapper.style.top=`${Math.floor(i)}px`,this.Editor.BlockManager.blocks.length===1&&t.isEmpty?this.blockTunesToggler.hide():this.blockTunesToggler.show(),this.open()}close(){var t,n;this.Editor.ReadOnly.isEnabled||((t=this.nodes.wrapper)==null||t.classList.remove(this.CSS.toolbarOpened),this.blockActions.hide(),(n=this.toolboxInstance)==null||n.close(),this.Editor.BlockSettings.close(),this.reset())}reset(){this.nodes.wrapper.style.top="unset"}open(t=!0){this.nodes.wrapper.classList.add(this.CSS.toolbarOpened),t?this.blockActions.show():this.blockActions.hide()}async make(){this.nodes.wrapper=B.make("div",this.CSS.toolbar),["content","actions"].forEach(r=>{this.nodes[r]=B.make("div",this.CSS[r])}),B.append(this.nodes.wrapper,this.nodes.content),B.append(this.nodes.content,this.nodes.actions),this.nodes.plusButton=B.make("div",this.CSS.plusButton,{innerHTML:Rb}),B.append(this.nodes.actions,this.nodes.plusButton),this.readOnlyMutableListeners.on(this.nodes.plusButton,"click",()=>{Ko(!0),this.plusButtonClicked()},!1);const t=B.make("div");t.appendChild(document.createTextNode(Me.ui(Re.ui.toolbar.toolbox,"Add"))),t.appendChild(B.make("div",this.CSS.plusButtonShortcut,{textContent:"/"})),Yo(this.nodes.plusButton,t,{hidingDelay:400}),this.nodes.settingsToggler=B.make("span",this.CSS.settingsToggler,{innerHTML:$b}),B.append(this.nodes.actions,this.nodes.settingsToggler);const n=B.make("div"),o=B.text(Me.ui(Re.ui.blockTunes.toggler,"Click to tune")),i=await sy("Slash","/");n.appendChild(o),n.appendChild(B.make("div",this.CSS.plusButtonShortcut,{textContent:hs(`CMD + ${i}`)})),Yo(this.nodes.settingsToggler,n,{hidingDelay:400}),B.append(this.nodes.actions,this.makeToolbox()),B.append(this.nodes.actions,this.Editor.BlockSettings.getElement()),B.append(this.Editor.UI.nodes.wrapper,this.nodes.wrapper)}makeToolbox(){return this.toolboxInstance=new ry({api:this.Editor.API.methods,tools:this.Editor.Tools.blockTools,i18nLabels:{filter:Me.ui(Re.ui.popover,"Filter"),nothingFound:Me.ui(Re.ui.popover,"Nothing found")}}),this.toolboxInstance.on(xo.Opened,()=>{this.Editor.UI.nodes.wrapper.classList.add(this.CSS.openedToolboxHolderModifier)}),this.toolboxInstance.on(xo.Closed,()=>{this.Editor.UI.nodes.wrapper.classList.remove(this.CSS.openedToolboxHolderModifier)}),this.toolboxInstance.on(xo.BlockAdded,({block:t})=>{const{BlockManager:n,Caret:o}=this.Editor,i=n.getBlockById(t.id);i.inputs.length===0&&(i===n.lastBlock?(n.insertAtEnd(),o.setToBlock(n.lastBlock)):o.setToBlock(n.nextBlock))}),this.toolboxInstance.getElement()}plusButtonClicked(){var t;this.Editor.BlockManager.currentBlock=this.hoveredBlock,(t=this.toolboxInstance)==null||t.toggle()}enableModuleBindings(){this.readOnlyMutableListeners.on(this.nodes.settingsToggler,"mousedown",t=>{var n;t.stopPropagation(),this.settingsTogglerClicked(),(n=this.toolboxInstance)!=null&&n.opened&&this.toolboxInstance.close(),Ko(!0)},!0),Ln()||this.eventsDispatcher.on(rh,t=>{var n;this.Editor.BlockSettings.opened||(n=this.toolboxInstance)!=null&&n.opened||this.moveAndOpen(t.block)})}disableModuleBindings(){this.readOnlyMutableListeners.clearAll()}settingsTogglerClicked(){this.Editor.BlockManager.currentBlock=this.hoveredBlock,this.Editor.BlockSettings.opened?this.Editor.BlockSettings.close():this.Editor.BlockSettings.open(this.hoveredBlock)}drawUI(){this.Editor.BlockSettings.make(),this.make()}destroy(){this.removeAllNodes(),this.toolboxInstance&&this.toolboxInstance.destroy()}}var Gt=(e=>(e[e.Block=0]="Block",e[e.Inline=1]="Inline",e[e.Tune=2]="Tune",e))(Gt||{}),Co=(e=>(e.Shortcut="shortcut",e.Toolbox="toolbox",e.EnabledInlineTools="inlineToolbar",e.EnabledBlockTunes="tunes",e.Config="config",e))(Co||{}),sh=(e=>(e.Shortcut="shortcut",e.SanitizeConfig="sanitize",e))(sh||{}),yn=(e=>(e.IsEnabledLineBreaks="enableLineBreaks",e.Toolbox="toolbox",e.ConversionConfig="conversionConfig",e.IsReadOnlySupported="isReadOnlySupported",e.PasteConfig="pasteConfig",e))(yn||{}),Jo=(e=>(e.IsInline="isInline",e.Title="title",e.IsReadOnlySupported="isReadOnlySupported",e))(Jo||{}),Mr=(e=>(e.IsTune="isTune",e))(Mr||{});let ys=class{constructor({name:t,constructable:n,config:o,api:i,isDefault:r,isInternal:s=!1,defaultPlaceholder:a}){this.api=i,this.name=t,this.constructable=n,this.config=o,this.isDefault=r,this.isInternal=s,this.defaultPlaceholder=a}get settings(){const t=this.config.config||{};return this.isDefault&&!("placeholder"in t)&&this.defaultPlaceholder&&(t.placeholder=this.defaultPlaceholder),t}reset(){if(de(this.constructable.reset))return this.constructable.reset()}prepare(){if(de(this.constructable.prepare))return this.constructable.prepare({toolName:this.name,config:this.settings})}get shortcut(){const t=this.constructable.shortcut;return this.config.shortcut||t}get sanitizeConfig(){return this.constructable.sanitize||{}}isInline(){return this.type===Gt.Inline}isBlock(){return this.type===Gt.Block}isTune(){return this.type===Gt.Tune}};class ly extends ee{constructor({config:t,eventsDispatcher:n}){super({config:t,eventsDispatcher:n}),this.CSS={inlineToolbar:"ce-inline-toolbar"},this.opened=!1,this.popover=null,this.toolbarVerticalMargin=Ln()?20:6,this.tools=new Map,window.requestIdleCallback(()=>{this.make()},{timeout:2e3})}async tryToShow(t=!1){t&&this.close(),this.allowedToShow()&&(await this.open(),this.Editor.Toolbar.close())}close(){var t,n;if(this.opened){for(const[o,i]of this.tools){const r=this.getToolShortcut(o.name);r!==void 0&&Tn.remove(this.Editor.UI.nodes.redactor,r),de(i.clear)&&i.clear()}this.tools=new Map,this.reset(),this.opened=!1,(t=this.popover)==null||t.hide(),(n=this.popover)==null||n.destroy(),this.popover=null}}containsNode(t){return this.nodes.wrapper===void 0?!1:this.nodes.wrapper.contains(t)}destroy(){var t;this.removeAllNodes(),(t=this.popover)==null||t.destroy(),this.popover=null}make(){this.nodes.wrapper=B.make("div",[this.CSS.inlineToolbar,...this.isRtl?[this.Editor.UI.CSS.editorRtlFix]:[]]),B.append(this.Editor.UI.nodes.wrapper,this.nodes.wrapper)}async open(){var t;if(this.opened)return;this.opened=!0,this.popover!==null&&this.popover.destroy(),this.createToolsInstances();const n=await this.getPopoverItems();this.popover=new Yb({items:n,scopeElement:this.Editor.API.methods.ui.nodes.redactor,messages:{nothingFound:Me.ui(Re.ui.popover,"Nothing found"),search:Me.ui(Re.ui.popover,"Filter")}}),this.move(this.popover.size.width),(t=this.nodes.wrapper)==null||t.append(this.popover.getElement()),this.popover.show()}move(t){const n=U.rect,o=this.Editor.UI.nodes.wrapper.getBoundingClientRect(),i={x:n.x-o.x,y:n.y+n.height-o.top+this.toolbarVerticalMargin};i.x+t+o.x>this.Editor.UI.contentRect.right&&(i.x=this.Editor.UI.contentRect.right-t-o.x),this.nodes.wrapper.style.left=Math.floor(i.x)+"px",this.nodes.wrapper.style.top=Math.floor(i.y)+"px"}reset(){this.nodes.wrapper.style.left="0",this.nodes.wrapper.style.top="0"}allowedToShow(){const t=["IMG","INPUT"],n=U.get(),o=U.text;if(!n||!n.anchorNode||n.isCollapsed||o.length<1)return!1;const i=B.isElement(n.anchorNode)?n.anchorNode:n.anchorNode.parentElement;if(i===null||n!==null&&t.includes(i.tagName))return!1;const r=this.Editor.BlockManager.getBlock(n.anchorNode);return!r||this.getTools().some(s=>r.tool.inlineTools.has(s.name))===!1?!1:i.closest("[contenteditable]")!==null}getTools(){const t=this.Editor.BlockManager.currentBlock;return t?Array.from(t.tool.inlineTools.values()).filter(n=>!(this.Editor.ReadOnly.isEnabled&&n.isReadOnlySupported!==!0)):[]}createToolsInstances(){this.tools=new Map,this.getTools().forEach(t=>{const n=t.create();this.tools.set(t,n)})}async getPopoverItems(){const t=[];let n=0;for(const[o,i]of this.tools){const r=await i.render(),s=this.getToolShortcut(o.name);if(s!==void 0)try{this.enableShortcuts(o.name,s)}catch{}const a=s!==void 0?hs(s):void 0,l=Me.t(Re.toolNames,o.title||qo(o.name));[r].flat().forEach(c=>{var u,d;const h={name:o.name,onActivate:()=>{this.toolClicked(i)},hint:{title:l,description:a}};if(B.isElement(c)){const p={...h,element:c,type:le.Html};if(de(i.renderActions)){const m=i.renderActions();p.children={isOpen:(u=i.checkState)==null?void 0:u.call(i,U.get()),isFlippable:!1,items:[{type:le.Html,element:m}]}}else(d=i.checkState)==null||d.call(i,U.get());t.push(p)}else if(c.type===le.Html)t.push({...h,...c,type:le.Html});else if(c.type===le.Separator)t.push({type:le.Separator});else{const p={...h,...c,type:le.Default};"children"in p&&n!==0&&t.push({type:le.Separator}),t.push(p),"children"in p&&n<this.tools.size-1&&t.push({type:le.Separator})}}),n++}return t}getToolShortcut(t){const{Tools:n}=this.Editor,o=n.inlineTools.get(t),i=n.internal.inlineTools;return Array.from(i.keys()).includes(t)?this.inlineTools[t][sh.Shortcut]:o?.shortcut}enableShortcuts(t,n){Tn.add({name:n,handler:o=>{var i;const{currentBlock:r}=this.Editor.BlockManager;r&&r.tool.enabledInlineTools&&(o.preventDefault(),(i=this.popover)==null||i.activateItemByName(t))},on:document})}toolClicked(t){var n;const o=U.range;(n=t.surround)==null||n.call(t,o),this.checkToolsState()}checkToolsState(){var t;(t=this.tools)==null||t.forEach(n=>{var o;(o=n.checkState)==null||o.call(n,U.get())})}get inlineTools(){const t={};return Array.from(this.Editor.Tools.inlineTools.entries()).forEach(([n,o])=>{t[n]=o.create()}),t}}function ah(){const e=window.getSelection();if(e===null)return[null,0];let t=e.focusNode,n=e.focusOffset;return t===null?[null,0]:(t.nodeType!==Node.TEXT_NODE&&t.childNodes.length>0&&(t.childNodes[n]?(t=t.childNodes[n],n=0):(t=t.childNodes[n-1],n=t.textContent.length)),[t,n])}function lh(e,t,n,o){const i=document.createRange();o==="left"?(i.setStart(e,0),i.setEnd(t,n)):(i.setStart(t,n),i.setEnd(e,e.childNodes.length));const r=i.cloneContents(),s=document.createElement("div");s.appendChild(r);const a=s.textContent||"";return Uv(a)}function So(e){const t=B.getDeepestNode(e);if(t===null||B.isEmpty(e))return!0;if(B.isNativeInput(t))return t.selectionEnd===0;if(B.isEmpty(e))return!0;const[n,o]=ah();return n===null?!1:lh(e,n,o,"left")}function Eo(e){const t=B.getDeepestNode(e,!0);if(t===null)return!0;if(B.isNativeInput(t))return t.selectionEnd===t.value.length;const[n,o]=ah();return n===null?!1:lh(e,n,o,"right")}var ch={},ks={},gi={},on={},ws={},xs={};Object.defineProperty(xs,"__esModule",{value:!0});xs.allInputsSelector=cy;function cy(){var e=["text","password","email","number","search","tel","url"];return"[contenteditable=true], textarea, input:not([type]), "+e.map(function(t){return'input[type="'.concat(t,'"]')}).join(", ")}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.allInputsSelector=void 0;var t=xs;Object.defineProperty(e,"allInputsSelector",{enumerable:!0,get:function(){return t.allInputsSelector}})})(ws);var rn={},Cs={};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.isNativeInput=uy;function uy(e){var t=["INPUT","TEXTAREA"];return e&&e.tagName?t.includes(e.tagName):!1}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isNativeInput=void 0;var t=Cs;Object.defineProperty(e,"isNativeInput",{enumerable:!0,get:function(){return t.isNativeInput}})})(rn);var uh={},Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});Ss.append=dy;function dy(e,t){Array.isArray(t)?t.forEach(function(n){e.appendChild(n)}):e.appendChild(t)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.append=void 0;var t=Ss;Object.defineProperty(e,"append",{enumerable:!0,get:function(){return t.append}})})(uh);var Es={},Ts={};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.blockElements=hy;function hy(){return["address","article","aside","blockquote","canvas","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","ruby","section","table","tbody","thead","tr","tfoot","ul","video"]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.blockElements=void 0;var t=Ts;Object.defineProperty(e,"blockElements",{enumerable:!0,get:function(){return t.blockElements}})})(Es);var dh={},_s={};Object.defineProperty(_s,"__esModule",{value:!0});_s.calculateBaseline=fy;function fy(e){var t=window.getComputedStyle(e),n=parseFloat(t.fontSize),o=parseFloat(t.lineHeight)||n*1.2,i=parseFloat(t.paddingTop),r=parseFloat(t.borderTopWidth),s=parseFloat(t.marginTop),a=n*.8,l=(o-n)/2,c=s+r+i+l+a;return c}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateBaseline=void 0;var t=_s;Object.defineProperty(e,"calculateBaseline",{enumerable:!0,get:function(){return t.calculateBaseline}})})(dh);var hh={},Bs={},Os={},Is={};Object.defineProperty(Is,"__esModule",{value:!0});Is.isContentEditable=py;function py(e){return e.contentEditable==="true"}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isContentEditable=void 0;var t=Is;Object.defineProperty(e,"isContentEditable",{enumerable:!0,get:function(){return t.isContentEditable}})})(Os);Object.defineProperty(Bs,"__esModule",{value:!0});Bs.canSetCaret=vy;var my=rn,gy=Os;function vy(e){var t=!0;if((0,my.isNativeInput)(e))switch(e.type){case"file":case"checkbox":case"radio":case"hidden":case"submit":case"button":case"image":case"reset":t=!1;break}else t=(0,gy.isContentEditable)(e);return t}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.canSetCaret=void 0;var t=Bs;Object.defineProperty(e,"canSetCaret",{enumerable:!0,get:function(){return t.canSetCaret}})})(hh);var vi={},Ps={};function by(e,t,n){const o=n.value!==void 0?"value":"get",i=n[o],r=`#${t}Cache`;if(n[o]=function(...s){return this[r]===void 0&&(this[r]=i.apply(this,s)),this[r]},o==="get"&&n.set){const s=n.set;n.set=function(a){delete e[r],s.apply(this,a)}}return n}function fh(){const e={win:!1,mac:!1,x11:!1,linux:!1},t=Object.keys(e).find(n=>window.navigator.appVersion.toLowerCase().indexOf(n)!==-1);return t!==void 0&&(e[t]=!0),e}function Ms(e){return e!=null&&e!==""&&(typeof e!="object"||Object.keys(e).length>0)}function yy(e){return!Ms(e)}const ky=()=>typeof window<"u"&&window.navigator!==null&&Ms(window.navigator.platform)&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1);function wy(e){const t=fh();return e=e.replace(/shift/gi,"â§").replace(/backspace/gi,"â«").replace(/enter/gi,"â").replace(/up/gi,"â").replace(/left/gi,"â").replace(/down/gi,"â").replace(/right/gi,"â").replace(/escape/gi,"â").replace(/insert/gi,"Ins").replace(/delete/gi,"â¡").replace(/\+/gi,"+"),t.mac?e=e.replace(/ctrl|cmd/gi,"â").replace(/alt/gi,"â¥"):e=e.replace(/cmd/gi,"Ctrl").replace(/windows/gi,"WIN"),e}function xy(e){return e[0].toUpperCase()+e.slice(1)}function Cy(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="-999px",t.style.bottom="-999px",t.innerHTML=e,document.body.appendChild(t);const n=window.getSelection(),o=document.createRange();if(o.selectNode(t),n===null)throw new Error("Cannot copy text to clipboard");n.removeAllRanges(),n.addRange(o),document.execCommand("copy"),document.body.removeChild(t)}function Sy(e,t,n){let o;return(...i)=>{const r=this,s=()=>{o=void 0,n!==!0&&e.apply(r,i)},a=n===!0&&o!==void 0;window.clearTimeout(o),o=window.setTimeout(s,t),a&&e.apply(r,i)}}function Lt(e){return Object.prototype.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function Ey(e){return Lt(e)==="boolean"}function ph(e){return Lt(e)==="function"||Lt(e)==="asyncfunction"}function Ty(e){return ph(e)&&/^\s*class\s+/.test(e.toString())}function _y(e){return Lt(e)==="number"}function To(e){return Lt(e)==="object"}function By(e){return Promise.resolve(e)===e}function Oy(e){return Lt(e)==="string"}function Iy(e){return Lt(e)==="undefined"}function Ar(e,...t){if(!t.length)return e;const n=t.shift();if(To(e)&&To(n))for(const o in n)To(n[o])?(e[o]===void 0&&Object.assign(e,{[o]:{}}),Ar(e[o],n[o])):Object.assign(e,{[o]:n[o]});return Ar(e,...t)}function Py(e,t,n){const o=`«${t}» is deprecated and will be removed in the next major release. Please use the «${n}» instead.`;e&&console.warn(o)}function My(e){try{return new URL(e).href}catch{}return e.substring(0,2)==="//"?window.location.protocol+e:window.location.origin+e}function Ay(e){return e>47&&e<58||e===32||e===13||e===229||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223}const Ly={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,META:91,SLASH:191},Ny={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4};let jy=class{constructor(){this.completed=Promise.resolve()}add(e){return new Promise((t,n)=>{this.completed=this.completed.then(e).then(t).catch(n)})}};function $y(e,t,n=void 0){let o,i,r,s=null,a=0;n||(n={});const l=function(){a=n.leading===!1?0:Date.now(),s=null,r=e.apply(o,i),s===null&&(o=i=null)};return function(){const c=Date.now();!a&&n.leading===!1&&(a=c);const u=t-(c-a);return o=this,i=arguments,u<=0||u>t?(s&&(clearTimeout(s),s=null),a=c,r=e.apply(o,i),s===null&&(o=i=null)):!s&&n.trailing!==!1&&(s=setTimeout(l,u)),r}}const Ry=Object.freeze(Object.defineProperty({__proto__:null,PromiseQueue:jy,beautifyShortcut:wy,cacheable:by,capitalize:xy,copyTextToClipboard:Cy,debounce:Sy,deepMerge:Ar,deprecationAssert:Py,getUserOS:fh,getValidUrl:My,isBoolean:Ey,isClass:Ty,isEmpty:yy,isFunction:ph,isIosDevice:ky,isNumber:_y,isObject:To,isPrintableKey:Ay,isPromise:By,isString:Oy,isUndefined:Iy,keyCodes:Ly,mouseButtons:Ny,notEmpty:Ms,throttle:$y,typeOf:Lt},Symbol.toStringTag,{value:"Module"})),As=Ov(Ry);Object.defineProperty(Ps,"__esModule",{value:!0});Ps.containsOnlyInlineElements=Vy;var Dy=As,Fy=Es;function Vy(e){var t;(0,Dy.isString)(e)?(t=document.createElement("div"),t.innerHTML=e):t=e;var n=function(o){return!(0,Fy.blockElements)().includes(o.tagName.toLowerCase())&&Array.from(o.children).every(n)};return Array.from(t.children).every(n)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.containsOnlyInlineElements=void 0;var t=Ps;Object.defineProperty(e,"containsOnlyInlineElements",{enumerable:!0,get:function(){return t.containsOnlyInlineElements}})})(vi);var mh={},Ls={},bi={},Ns={};Object.defineProperty(Ns,"__esModule",{value:!0});Ns.make=Hy;function Hy(e,t,n){var o;t===void 0&&(t=null),n===void 0&&(n={});var i=document.createElement(e);if(Array.isArray(t)){var r=t.filter(function(a){return a!==void 0});(o=i.classList).add.apply(o,r)}else t!==null&&i.classList.add(t);for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s]);return i}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.make=void 0;var t=Ns;Object.defineProperty(e,"make",{enumerable:!0,get:function(){return t.make}})})(bi);Object.defineProperty(Ls,"__esModule",{value:!0});Ls.fragmentToString=zy;var Uy=bi;function zy(e){var t=(0,Uy.make)("div");return t.appendChild(e),t.innerHTML}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fragmentToString=void 0;var t=Ls;Object.defineProperty(e,"fragmentToString",{enumerable:!0,get:function(){return t.fragmentToString}})})(mh);var gh={},js={};Object.defineProperty(js,"__esModule",{value:!0});js.getContentLength=qy;var Wy=rn;function qy(e){var t,n;return(0,Wy.isNativeInput)(e)?e.value.length:e.nodeType===Node.TEXT_NODE?e.length:(n=(t=e.textContent)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getContentLength=void 0;var t=js;Object.defineProperty(e,"getContentLength",{enumerable:!0,get:function(){return t.getContentLength}})})(gh);var $s={},Rs={},$c=Xn&&Xn.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,r;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.getDeepestBlockElements=vh;var Gy=vi;function vh(e){return(0,Gy.containsOnlyInlineElements)(e)?[e]:Array.from(e.children).reduce(function(t,n){return $c($c([],t,!0),vh(n),!0)},[])}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepestBlockElements=void 0;var t=Rs;Object.defineProperty(e,"getDeepestBlockElements",{enumerable:!0,get:function(){return t.getDeepestBlockElements}})})($s);var bh={},Ds={},yi={},Fs={};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.isLineBreakTag=Ky;function Ky(e){return["BR","WBR"].includes(e.tagName)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isLineBreakTag=void 0;var t=Fs;Object.defineProperty(e,"isLineBreakTag",{enumerable:!0,get:function(){return t.isLineBreakTag}})})(yi);var ki={},Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.isSingleTag=Yy;function Yy(e){return["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"].includes(e.tagName)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSingleTag=void 0;var t=Vs;Object.defineProperty(e,"isSingleTag",{enumerable:!0,get:function(){return t.isSingleTag}})})(ki);Object.defineProperty(Ds,"__esModule",{value:!0});Ds.getDeepestNode=yh;var Xy=rn,Zy=yi,Jy=ki;function yh(e,t){t===void 0&&(t=!1);var n=t?"lastChild":"firstChild",o=t?"previousSibling":"nextSibling";if(e.nodeType===Node.ELEMENT_NODE&&e[n]){var i=e[n];if((0,Jy.isSingleTag)(i)&&!(0,Xy.isNativeInput)(i)&&!(0,Zy.isLineBreakTag)(i))if(i[o])i=i[o];else if(i.parentNode!==null&&i.parentNode[o])i=i.parentNode[o];else return i.parentNode;return yh(i,t)}return e}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepestNode=void 0;var t=Ds;Object.defineProperty(e,"getDeepestNode",{enumerable:!0,get:function(){return t.getDeepestNode}})})(bh);var kh={},Hs={},mo=Xn&&Xn.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,r;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.findAllInputs=ok;var Qy=vi,ek=$s,tk=ws,nk=rn;function ok(e){return Array.from(e.querySelectorAll((0,tk.allInputsSelector)())).reduce(function(t,n){return(0,nk.isNativeInput)(n)||(0,Qy.containsOnlyInlineElements)(n)?mo(mo([],t,!0),[n],!1):mo(mo([],t,!0),(0,ek.getDeepestBlockElements)(n),!0)},[])}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.findAllInputs=void 0;var t=Hs;Object.defineProperty(e,"findAllInputs",{enumerable:!0,get:function(){return t.findAllInputs}})})(kh);var wh={},Us={};Object.defineProperty(Us,"__esModule",{value:!0});Us.isCollapsedWhitespaces=ik;function ik(e){return!/[^\t\n\r ]/.test(e)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isCollapsedWhitespaces=void 0;var t=Us;Object.defineProperty(e,"isCollapsedWhitespaces",{enumerable:!0,get:function(){return t.isCollapsedWhitespaces}})})(wh);var zs={},Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.isElement=sk;var rk=As;function sk(e){return(0,rk.isNumber)(e)?!1:!!e&&!!e.nodeType&&e.nodeType===Node.ELEMENT_NODE}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isElement=void 0;var t=Ws;Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return t.isElement}})})(zs);var xh={},qs={},Gs={},Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});Ks.isLeaf=ak;function ak(e){return e===null?!1:e.childNodes.length===0}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isLeaf=void 0;var t=Ks;Object.defineProperty(e,"isLeaf",{enumerable:!0,get:function(){return t.isLeaf}})})(Gs);var Ys={},Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.isNodeEmpty=hk;var lk=yi,ck=zs,uk=rn,dk=ki;function hk(e,t){var n="";return(0,dk.isSingleTag)(e)&&!(0,lk.isLineBreakTag)(e)?!1:((0,ck.isElement)(e)&&(0,uk.isNativeInput)(e)?n=e.value:e.textContent!==null&&(n=e.textContent.replace("â","")),t!==void 0&&(n=n.replace(new RegExp(t,"g"),"")),n.trim().length===0)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isNodeEmpty=void 0;var t=Xs;Object.defineProperty(e,"isNodeEmpty",{enumerable:!0,get:function(){return t.isNodeEmpty}})})(Ys);Object.defineProperty(qs,"__esModule",{value:!0});qs.isEmpty=mk;var fk=Gs,pk=Ys;function mk(e,t){e.normalize();for(var n=[e];n.length>0;){var o=n.shift();if(o){if(e=o,(0,fk.isLeaf)(e)&&!(0,pk.isNodeEmpty)(e,t))return!1;n.push.apply(n,Array.from(e.childNodes))}}return!0}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=void 0;var t=qs;Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return t.isEmpty}})})(xh);var Ch={},Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.isFragment=vk;var gk=As;function vk(e){return(0,gk.isNumber)(e)?!1:!!e&&!!e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isFragment=void 0;var t=Zs;Object.defineProperty(e,"isFragment",{enumerable:!0,get:function(){return t.isFragment}})})(Ch);var Sh={},Js={};Object.defineProperty(Js,"__esModule",{value:!0});Js.isHTMLString=yk;var bk=bi;function yk(e){var t=(0,bk.make)("div");return t.innerHTML=e,t.childElementCount>0}
44(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isHTMLString=void 0;var t=Js;Object.defineProperty(e,"isHTMLString",{enumerable:!0,get:function(){return t.isHTMLString}})})(Sh);var Eh={},Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.offset=kk;function kk(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop,i=t.top+o,r=t.left+n;return{top:i,left:r,bottom:i+t.height,right:r+t.width}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.offset=void 0;var t=Qs;Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return t.offset}})})(Eh);var Th={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.prepend=wk;function wk(e,t){Array.isArray(t)?(t=t.reverse(),t.forEach(function(n){return e.prepend(n)})):e.prepend(t)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.prepend=void 0;var t=ea;Object.defineProperty(e,"prepend",{enumerable:!0,get:function(){return t.prepend}})})(Th);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.prepend=e.offset=e.make=e.isLineBreakTag=e.isSingleTag=e.isNodeEmpty=e.isLeaf=e.isHTMLString=e.isFragment=e.isEmpty=e.isElement=e.isContentEditable=e.isCollapsedWhitespaces=e.findAllInputs=e.isNativeInput=e.allInputsSelector=e.getDeepestNode=e.getDeepestBlockElements=e.getContentLength=e.fragmentToString=e.containsOnlyInlineElements=e.canSetCaret=e.calculateBaseline=e.blockElements=e.append=void 0;var t=ws;Object.defineProperty(e,"allInputsSelector",{enumerable:!0,get:function(){return t.allInputsSelector}});var n=rn;Object.defineProperty(e,"isNativeInput",{enumerable:!0,get:function(){return n.isNativeInput}});var o=uh;Object.defineProperty(e,"append",{enumerable:!0,get:function(){return o.append}});var i=Es;Object.defineProperty(e,"blockElements",{enumerable:!0,get:function(){return i.blockElements}});var r=dh;Object.defineProperty(e,"calculateBaseline",{enumerable:!0,get:function(){return r.calculateBaseline}});var s=hh;Object.defineProperty(e,"canSetCaret",{enumerable:!0,get:function(){return s.canSetCaret}});var a=vi;Object.defineProperty(e,"containsOnlyInlineElements",{enumerable:!0,get:function(){return a.containsOnlyInlineElements}});var l=mh;Object.defineProperty(e,"fragmentToString",{enumerable:!0,get:function(){return l.fragmentToString}});var c=gh;Object.defineProperty(e,"getContentLength",{enumerable:!0,get:function(){return c.getContentLength}});var u=$s;Object.defineProperty(e,"getDeepestBlockElements",{enumerable:!0,get:function(){return u.getDeepestBlockElements}});var d=bh;Object.defineProperty(e,"getDeepestNode",{enumerable:!0,get:function(){return d.getDeepestNode}});var h=kh;Object.defineProperty(e,"findAllInputs",{enumerable:!0,get:function(){return h.findAllInputs}});var p=wh;Object.defineProperty(e,"isCollapsedWhitespaces",{enumerable:!0,get:function(){return p.isCollapsedWhitespaces}});var m=Os;Object.defineProperty(e,"isContentEditable",{enumerable:!0,get:function(){return m.isContentEditable}});var f=zs;Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return f.isElement}});var b=xh;Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return b.isEmpty}});var v=Ch;Object.defineProperty(e,"isFragment",{enumerable:!0,get:function(){return v.isFragment}});var y=Sh;Object.defineProperty(e,"isHTMLString",{enumerable:!0,get:function(){return y.isHTMLString}});var k=Gs;Object.defineProperty(e,"isLeaf",{enumerable:!0,get:function(){return k.isLeaf}});var w=Ys;Object.defineProperty(e,"isNodeEmpty",{enumerable:!0,get:function(){return w.isNodeEmpty}});var x=yi;Object.defineProperty(e,"isLineBreakTag",{enumerable:!0,get:function(){return x.isLineBreakTag}});var E=ki;Object.defineProperty(e,"isSingleTag",{enumerable:!0,get:function(){return E.isSingleTag}});var T=bi;Object.defineProperty(e,"make",{enumerable:!0,get:function(){return T.make}});var g=Eh;Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return g.offset}});var C=Th;Object.defineProperty(e,"prepend",{enumerable:!0,get:function(){return C.prepend}})})(on);var wi={};Object.defineProperty(wi,"__esModule",{value:!0});
vendor: 6,936 bytes, line 44
44wi.getContenteditableSlice=Ck;var xk=on;function Ck(e,t,n,o,i){var r;i===void 0&&(i=!1);var s=document.createRange();if(o==="left"?(s.setStart(e,0),s.setEnd(t,n)):(s.setStart(t,n),s.setEnd(e,e.childNodes.length)),i===!0){var a=s.extractContents();return(0,xk.fragmentToString)(a)}var l=s.cloneContents(),c=document.createElement("div");c.appendChild(l);var u=(r=c.textContent)!==null&&r!==void 0?r:"";return u}Object.defineProperty(gi,"__esModule",{value:!0});gi.checkContenteditableSliceForEmptiness=Tk;var Sk=on,Ek=wi;function Tk(e,t,n,o){var i=(0,Ek.getContenteditableSlice)(e,t,n,o);return(0,Sk.isCollapsedWhitespaces)(i)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkContenteditableSliceForEmptiness=void 0;var t=gi;Object.defineProperty(e,"checkContenteditableSliceForEmptiness",{enumerable:!0,get:function(){return t.checkContenteditableSliceForEmptiness}})})(ks);var _h={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getContenteditableSlice=void 0;var t=wi;Object.defineProperty(e,"getContenteditableSlice",{enumerable:!0,get:function(){return t.getContenteditableSlice}})})(_h);var Bh={},ta={};Object.defineProperty(ta,"__esModule",{value:!0});ta.focus=Bk;var _k=on;function Bk(e,t){var n,o;if(t===void 0&&(t=!0),(0,_k.isNativeInput)(e)){e.focus();var i=t?0:e.value.length;e.setSelectionRange(i,i)}else{var r=document.createRange(),s=window.getSelection();if(!s)return;var a=function(h){var p=document.createTextNode("");h.appendChild(p),r.setStart(p,0),r.setEnd(p,0)},l=function(h){return h!=null},c=e.childNodes,u=t?c[0]:c[c.length-1];if(l(u)){for(;l(u)&&u.nodeType!==Node.TEXT_NODE;)u=t?u.firstChild:u.lastChild;if(l(u)&&u.nodeType===Node.TEXT_NODE){var d=(o=(n=u.textContent)===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0,i=t?0:d;r.setStart(u,i),r.setEnd(u,i)}else a(e)}else a(e);s.removeAllRanges(),s.addRange(r)}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.focus=void 0;var t=ta;Object.defineProperty(e,"focus",{enumerable:!0,get:function(){return t.focus}})})(Bh);var na={},xi={};Object.defineProperty(xi,"__esModule",{value:!0});xi.getCaretNodeAndOffset=Ok;function Ok(){var e=window.getSelection();if(e===null)return[null,0];var t=e.focusNode,n=e.focusOffset;return t===null?[null,0]:(t.nodeType!==Node.TEXT_NODE&&t.childNodes.length>0&&(t.childNodes[n]!==void 0?(t=t.childNodes[n],n=0):(t=t.childNodes[n-1],t.textContent!==null&&(n=t.textContent.length))),[t,n])}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getCaretNodeAndOffset=void 0;var t=xi;Object.defineProperty(e,"getCaretNodeAndOffset",{enumerable:!0,get:function(){return t.getCaretNodeAndOffset}})})(na);var Oh={},Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});Ci.getRange=Ik;function Ik(){var e=window.getSelection();return e&&e.rangeCount?e.getRangeAt(0):null}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getRange=void 0;var t=Ci;Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return t.getRange}})})(Oh);var Ih={},oa={};Object.defineProperty(oa,"__esModule",{value:!0});oa.isCaretAtEndOfInput=Ak;var Rc=on,Pk=na,Mk=ks;function Ak(e){var t=(0,Rc.getDeepestNode)(e,!0);if(t===null)return!0;if((0,Rc.isNativeInput)(t))return t.selectionEnd===t.value.length;var n=(0,Pk.getCaretNodeAndOffset)(),o=n[0],i=n[1];return o===null?!1:(0,Mk.checkContenteditableSliceForEmptiness)(e,o,i,"right")}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isCaretAtEndOfInput=void 0;var t=oa;Object.defineProperty(e,"isCaretAtEndOfInput",{enumerable:!0,get:function(){return t.isCaretAtEndOfInput}})})(Ih);var Ph={},ia={};Object.defineProperty(ia,"__esModule",{value:!0});ia.isCaretAtStartOfInput=jk;var go=on,Lk=xi,Nk=gi;function jk(e){var t=(0,go.getDeepestNode)(e);if(t===null||(0,go.isEmpty)(e))return!0;if((0,go.isNativeInput)(t))return t.selectionEnd===0;if((0,go.isEmpty)(e))return!0;var n=(0,Lk.getCaretNodeAndOffset)(),o=n[0],i=n[1];return o===null?!1:(0,Nk.checkContenteditableSliceForEmptiness)(e,o,i,"left")}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isCaretAtStartOfInput=void 0;var t=ia;Object.defineProperty(e,"isCaretAtStartOfInput",{enumerable:!0,get:function(){return t.isCaretAtStartOfInput}})})(Ph);var Mh={},ra={};Object.defineProperty(ra,"__esModule",{value:!0});ra.save=Dk;var $k=on,Rk=Ci;function Dk(){var e=(0,Rk.getRange)(),t=(0,$k.make)("span");if(t.id="cursor",t.hidden=!0,!!e)return e.insertNode(t),function(){var n=window.getSelection();n&&(e.setStartAfter(t),e.setEndAfter(t),n.removeAllRanges(),n.addRange(e),setTimeout(function(){t.remove()},150))}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.save=void 0;var t=ra;Object.defineProperty(e,"save",{enumerable:!0,get:function(){return t.save}})})(Mh);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.save=e.isCaretAtStartOfInput=e.isCaretAtEndOfInput=e.getRange=e.getCaretNodeAndOffset=e.focus=e.getContenteditableSlice=e.checkContenteditableSliceForEmptiness=void 0;var t=ks;Object.defineProperty(e,"checkContenteditableSliceForEmptiness",{enumerable:!0,get:function(){return t.checkContenteditableSliceForEmptiness}});var n=_h;Object.defineProperty(e,"getContenteditableSlice",{enumerable:!0,get:function(){return n.getContenteditableSlice}});var o=Bh;Object.defineProperty(e,"focus",{enumerable:!0,get:function(){return o.focus}});var i=na;Object.defineProperty(e,"getCaretNodeAndOffset",{enumerable:!0,get:function(){return i.getCaretNodeAndOffset}});var r=Oh;Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return r.getRange}});var s=Ih;Object.defineProperty(e,"isCaretAtEndOfInput",{enumerable:!0,get:function(){return s.isCaretAtEndOfInput}});var a=Ph;Object.defineProperty(e,"isCaretAtStartOfInput",{enumerable:!0,get:function(){return a.isCaretAtStartOfInput}});var l=Mh;Object.defineProperty(e,"save",{enumerable:!0,get:function(){return l.save}})})(ch);class Fk extends ee{keydown(t){switch(this.beforeKeydownProcessing(t),t.keyCode){case K.BACKSPACE:this.backspace(t);break;case K.DELETE:this.delete(t);break;case K.ENTER:this.enter(t);break;case K.DOWN:case K.RIGHT:this.arrowRightAndDown(t);break;case K.UP:case K.LEFT:this.arrowLeftAndUp(t);break;case K.TAB:this.tabPressed(t);break}t.key==="/"&&!t.ctrlKey&&!t.metaKey&&this.slashPressed(t),t.code==="Slash"&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),this.commandSlashPressed())}beforeKeydownProcessing(t){this.needToolbarClosing(t)&&Id(t.keyCode)&&(this.Editor.Toolbar.close(),t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||this.Editor.BlockSelection.clearSelection(t))}keyup(t){t.shiftKey||this.Editor.UI.checkEmptiness()}dragOver(t){const n=this.Editor.BlockManager.getBlockByChildNode(t.target);n.dropTarget=!0}dragLeave(t){const n=this.Editor.BlockManager.getBlockByChildNode(t.target);n.dropTarget=!1}handleCommandC(t){const{BlockSelection:n}=this.Editor;n.anyBlockSelected&&n.copySelectedBlocks(t)}
44handleCommandX(t){const{BlockSelection:n,BlockManager:o,Caret:i}=this.Editor;n.anyBlockSelected&&n.copySelectedBlocks(t).then(()=>{const r=o.removeSelectedBlocks(),s=o.insertDefaultBlockAtIndex(r,!0);i.setToBlock(s,i.positions.START),n.clearSelection(t)})}tabPressed(t){const{InlineToolbar:n,Caret:o}=this.Editor;n.opened||(t.shiftKey?o.navigatePrevious(!0):o.navigateNext(!0))&&t.preventDefault()}commandSlashPressed(){this.Editor.BlockSelection.selectedBlocks.length>1||this.activateBlockSettings()}slashPressed(t){!this.Editor.UI.nodes.wrapper.contains(t.target)||!this.Editor.BlockManager.currentBlock.isEmpty||(t.preventDefault(),this.Editor.Caret.insertContentAtCaretPosition("/"),this.activateToolbox())}enter(t){const{BlockManager:n,UI:o}=this.Editor,i=n.currentBlock;if(i===void 0||i.tool.isLineBreaksEnabled||o.someToolbarOpened&&o.someFlipperButtonFocused||t.shiftKey&&!Br)return;let r=i;i.currentInput!==void 0&&So(i.currentInput)&&!i.hasMedia?this.Editor.BlockManager.insertDefaultBlockAtIndex(this.Editor.BlockManager.currentBlockIndex):i.currentInput&&Eo(i.currentInput)?r=this.Editor.BlockManager.insertDefaultBlockAtIndex(this.Editor.BlockManager.currentBlockIndex+1):r=this.Editor.BlockManager.split(),this.Editor.Caret.setToBlock(r),this.Editor.Toolbar.moveAndOpen(r),t.preventDefault()}backspace(t){const{BlockManager:n,Caret:o}=this.Editor,{currentBlock:i,previousBlock:r}=n;if(!(i===void 0||!U.isCollapsed||!i.currentInput||!So(i.currentInput))){if(t.preventDefault(),this.Editor.Toolbar.close(),i.currentInput!==i.firstInput){o.navigatePrevious();return}if(r!==null){if(r.isEmpty){n.removeBlock(r);return}if(i.isEmpty){n.removeBlock(i);const s=n.currentBlock;o.setToBlock(s,o.positions.END);return}Mc(r,i)?this.mergeBlocks(r,i):o.setToBlock(r,o.positions.END)}}}delete(t){const{BlockManager:n,Caret:o}=this.Editor,{currentBlock:i,nextBlock:r}=n;if(!(!U.isCollapsed||!Eo(i.currentInput))){if(t.preventDefault(),this.Editor.Toolbar.close(),i.currentInput!==i.lastInput){o.navigateNext();return}if(r!==null){if(r.isEmpty){n.removeBlock(r);return}if(i.isEmpty){n.removeBlock(i),o.setToBlock(r,o.positions.START);return}Mc(i,r)?this.mergeBlocks(i,r):o.setToBlock(r,o.positions.START)}}}mergeBlocks(t,n){const{BlockManager:o,Toolbar:i}=this.Editor;t.lastInput!==void 0&&(ch.focus(t.lastInput,!1),o.mergeBlocks(t,n).then(()=>{i.close()}))}arrowRightAndDown(t){const n=Xo.usedKeys.includes(t.keyCode)&&(!t.shiftKey||t.keyCode===K.TAB);if(this.Editor.UI.someToolbarOpened&&n)return;this.Editor.Toolbar.close();const{currentBlock:o}=this.Editor.BlockManager,i=(o?.currentInput!==void 0?Eo(o.currentInput):void 0)||this.Editor.BlockSelection.anyBlockSelected;if(t.shiftKey&&t.keyCode===K.DOWN&&i){this.Editor.CrossBlockSelection.toggleBlockSelectedState();return}if(t.keyCode===K.DOWN||t.keyCode===K.RIGHT&&!this.isRtl?this.Editor.Caret.navigateNext():this.Editor.Caret.navigatePrevious()){t.preventDefault();return}Wo(()=>{this.Editor.BlockManager.currentBlock&&this.Editor.BlockManager.currentBlock.updateCurrentInput()},20)(),this.Editor.BlockSelection.clearSelection(t)}arrowLeftAndUp(t){if(this.Editor.UI.someToolbarOpened){if(Xo.usedKeys.includes(t.keyCode)&&(!t.shiftKey||t.keyCode===K.TAB))return;this.Editor.UI.closeAllToolbars()}this.Editor.Toolbar.close();const{currentBlock:n}=this.Editor.BlockManager,o=(n?.currentInput!==void 0?So(n.currentInput):void 0)||this.Editor.BlockSelection.anyBlockSelected;if(t.shiftKey&&t.keyCode===K.UP&&o){this.Editor.CrossBlockSelection.toggleBlockSelectedState(!1);return}if(t.keyCode===K.UP||t.keyCode===K.LEFT&&!this.isRtl?this.Editor.Caret.navigatePrevious():this.Editor.Caret.navigateNext()){t.preventDefault();return}Wo(()=>{this.Editor.BlockManager.currentBlock&&this.Editor.BlockManager.currentBlock.updateCurrentInput()},20)(),this.Editor.BlockSelection.clearSelection(t)}needToolbarClosing(t){const n=t.keyCode===K.ENTER&&this.Editor.Toolbar.toolbox.opened,o=t.keyCode===K.ENTER&&this.Editor.BlockSettings.opened,i=t.keyCode===K.ENTER&&this.Editor.InlineToolbar.opened,r=t.keyCode===K.TAB;return!(t.shiftKey||r||n||o||i)}activateToolbox(){this.Editor.Toolbar.opened||this.Editor.Toolbar.moveAndOpe
vendor: 47,471 bytes, lines 44-53
44n(),this.Editor.Toolbar.toolbox.open()}activateBlockSettings(){this.Editor.Toolbar.opened||this.Editor.Toolbar.moveAndOpen(),this.Editor.BlockSettings.opened||this.Editor.BlockSettings.open()}}let or=class{constructor(t){this.blocks=[],this.workingArea=t}get length(){return this.blocks.length}get array(){return this.blocks}get nodes(){return Pd(this.workingArea.children)}static set(t,n,o){return isNaN(Number(n))?(Reflect.set(t,n,o),!0):(t.insert(+n,o),!0)}static get(t,n){return isNaN(Number(n))?Reflect.get(t,n):t.get(+n)}push(t){this.blocks.push(t),this.insertToDOM(t)}swap(t,n){const o=this.blocks[n];B.swap(this.blocks[t].holder,o.holder),this.blocks[n]=this.blocks[t],this.blocks[t]=o}move(t,n){const o=this.blocks.splice(n,1)[0],i=t-1,r=Math.max(0,i),s=this.blocks[r];t>0?this.insertToDOM(o,"afterend",s):this.insertToDOM(o,"beforebegin",s),this.blocks.splice(t,0,o);const a=this.composeBlockEvent("move",{fromIndex:n,toIndex:t});o.call(ft.MOVED,a)}insert(t,n,o=!1){if(!this.length){this.push(n);return}t>this.length&&(t=this.length),o&&(this.blocks[t].holder.remove(),this.blocks[t].call(ft.REMOVED));const i=o?1:0;if(this.blocks.splice(t,i,n),t>0){const r=this.blocks[t-1];this.insertToDOM(n,"afterend",r)}else{const r=this.blocks[t+1];r?this.insertToDOM(n,"beforebegin",r):this.insertToDOM(n)}}replace(t,n){if(this.blocks[t]===void 0)throw Error("Incorrect index");this.blocks[t].holder.replaceWith(n.holder),this.blocks[t]=n}insertMany(t,n){const o=new DocumentFragment;for(const i of t)o.appendChild(i.holder);if(this.length>0){if(n>0){const i=Math.min(n-1,this.length-1);this.blocks[i].holder.after(o)}else n===0&&this.workingArea.prepend(o);this.blocks.splice(n,0,...t)}else this.blocks.push(...t),this.workingArea.appendChild(o);t.forEach(i=>i.call(ft.RENDERED))}remove(t){isNaN(t)&&(t=this.length-1),this.blocks[t].holder.remove(),this.blocks[t].call(ft.REMOVED),this.blocks.splice(t,1)}removeAll(){this.workingArea.innerHTML="",this.blocks.forEach(t=>t.call(ft.REMOVED)),this.blocks.length=0}insertAfter(t,n){const o=this.blocks.indexOf(t);this.insert(o+1,n)}get(t){return this.blocks[t]}indexOf(t){return this.blocks.indexOf(t)}insertToDOM(t,n,o){n?o.holder.insertAdjacentElement(n,t.holder):this.workingArea.appendChild(t.holder),t.call(ft.RENDERED)}composeBlockEvent(t,n){return new CustomEvent(t,{detail:n})}};const Dc="block-removed",Fc="block-added",Vk="block-moved",Vc="block-changed";class Hk{constructor(){this.completed=Promise.resolve()}add(t){return new Promise((n,o)=>{this.completed=this.completed.then(t).then(n).catch(o)})}}class Uk extends ee{constructor(){super(...arguments),this._currentBlockIndex=-1,this._blocks=null}get currentBlockIndex(){return this._currentBlockIndex}set currentBlockIndex(t){this._currentBlockIndex=t}get firstBlock(){return this._blocks[0]}get lastBlock(){return this._blocks[this._blocks.length-1]}get currentBlock(){return this._blocks[this.currentBlockIndex]}set currentBlock(t){this.currentBlockIndex=this.getBlockIndex(t)}get nextBlock(){return this.currentBlockIndex===this._blocks.length-1?null:this._blocks[this.currentBlockIndex+1]}get nextContentfulBlock(){return this.blocks.slice(this.currentBlockIndex+1).find(t=>!!t.inputs.length)}get previousContentfulBlock(){return this.blocks.slice(0,this.currentBlockIndex).reverse().find(t=>!!t.inputs.length)}get previousBlock(){return this.currentBlockIndex===0?null:this._blocks[this.currentBlockIndex-1]}get blocks(){return this._blocks.array}get isEditorEmpty(){return this.blocks.every(t=>t.isEmpty)}prepare(){const t=new or(this.Editor.UI.nodes.redactor);this._blocks=new Proxy(t,{set:or.set,get:or.get}),this.listeners.on(document,"copy",n=>this.Editor.BlockEvents.handleCommandC(n))}toggleReadOnly(t){t?this.disableModuleBindings():this.enableModuleBindings()}composeBlock({tool:t,data:n={},id:o=void 0,tunes:i={}}){const r=this.Editor.ReadOnly.isEnabled,s=this.Editor.Tools.blockTools.get(t),a=new mt({id:o,data:n,tool:s,api:this.Editor.API,readOnly:r,tunesData:i},this.eventsDispatcher);return r||window.requestIdleCallback(()=>{this.bindBlockEvents(a)},{timeout:2e3}),a}insert({id:t=void 0,tool:n=this.config.defaultBlock,data:o={},index:i,needToFocus:r=!0,replace:s=!1,tunes:a={}}={}){let l=i;l===void 0&&(l=this.currentBlockIndex+(s?0:1));const c=this.composeBlock({id:t,tool:n,data:o,tunes:a});return s&&this.blockDidMutated(Dc,this.getBlockByIndex(l),{index:l}),this._blocks.insert(l,c,s),this.blockDidMutated(Fc,c,{index:l}),r?this.currentBlockIndex=l:l<=this.currentBlockIndex&&this.currentBlockIndex++,c}insertMany(t,n=0){this._blocks.insertMany(t,n)}async update(t,n,o){if(!n&&!o)return t;const i=await t.data,r=this.composeBlock({id:t.id,tool:t.name,data:Object.assign({},i,n??{}),tunes:o??t.tunes}),s=this.getBlockIndex(t);return this._blocks.replace(s,r),this.blockDidMutated(Vc,r,{index:s}),r}replace(t,n,o){const i=this.getBlockIndex(t);return this.insert({tool:n,data:o,index:i,replace:!0})}paste(t,n,o=!1){const i=this.insert({tool:t,replace:o});try{window.requestIdleCallback(()=>{i.call(ft.ON_PASTE,n)})}catch(r){se(`${t}: onPaste callback call is failed`,"error",r)}return i}insertDefaultBlockAtIndex(t,n=!1){const o=this.composeBlock({tool:this.config.defaultBlock});return this._blocks[t]=o,this.blockDidMutated(Fc,o,{index:t}),n?this.currentBlockIndex=t:t<=this.currentBlockIndex&&this.currentBlockIndex++,o}insertAtEnd(){return this.currentBlockIndex=this.blocks.length-1,this.insert()}async mergeBlocks(t,n){let o;if(t.name===n.name&&t.mergeable){const i=await n.data;if(Ge(i)){console.error("Could not merge Block. Failed to extract original Block data.");return}const[r]=fs([i],t.tool.sanitizeConfig);o=r}else if(t.mergeable&&Go(n,"export")&&Go(t,"import")){const i=await n.exportDataAsString(),r=it(i,t.tool.sanitizeConfig);o=Ac(r,t.tool.conversionConfig)}o!==void 0&&(await t.mergeWith(o),this.removeBlock(n),this.currentBlockIndex=this._blocks.indexOf(t))}removeBlock(t,n=!0){return new Promise(o=>{const i=this._blocks.indexOf(t);if(!this.validateIndex(i))throw new Error("Can't find a Block to remove");this._blocks.remove(i),t.destroy(),this.blockDidMutated(Dc,t,{index:i}),this.currentBlockIndex>=i&&this.currentBlockIndex--,this.blocks.length?i===0&&(this.currentBlockIndex=0):(this.unsetCurrentBlock(),n&&this.insert()),o()})}removeSelectedBlocks(){let t;for(let n=this.blocks.length-1;n>=0;n--)this.blocks[n].selected&&(this.removeBlock(this.blocks[n]),t=n);return t}removeAllBlocks(){for(let t=this.blocks.length-1;t>=0;t--)this._blocks.remove(t);this.unsetCurrentBlock(),this.insert(),this.currentBlock.firstInput.focus()}split(){const t=this.Editor.Caret.extractFragmentFromCaretPosition(),n=B.make("div");n.appendChild(t);const o={text:B.isEmpty(n)?"":n.innerHTML};return this.insert({data:o})}getBlockByIndex(t){return t===-1&&(t=this._blocks.length-1),this._blocks[t]}getBlockIndex(t){return this._blocks.indexOf(t)}getBlockById(t){return this._blocks.array.find(n=>n.id===t)}getBlock(t){B.isElement(t)||(t=t.parentNode);const n=this._blocks.nodes,o=t.closest(`.${mt.CSS.wrapper}`),i=n.indexOf(o);if(i>=0)return this._blocks[i]}setCurrentBlockByChildNode(t){B.isElement(t)||(t=t.parentNode);const n=t.closest(`.${mt.CSS.wrapper}`);if(!n)return;const o=n.closest(`.${this.Editor.UI.CSS.editorWrapper}`);if(o!=null&&o.isEqualNode(this.Editor.UI.nodes.wrapper))return this.currentBlockIndex=this._blocks.nodes.indexOf(n),this.currentBlock.updateCurrentInput(),this.currentBlock}getBlockByChildNode(t){if(!t||!(t instanceof Node))return;B.isElement(t)||(t=t.parentNode);const n=t.closest(`.${mt.CSS.wrapper}`);return this.blocks.find(o=>o.holder===n)}swap(t,n){this._blocks.swap(t,n),this.currentBlockIndex=n}move(t,n=this.currentBlockIndex){if(isNaN(t)||isNaN(n)){se("Warning during 'move' call: incorrect indices provided.","warn");return}if(!this.validateIndex(t)||!this.validateIndex(n)){se("Warning during 'move' call: indices cannot be lower than 0 or greater than the amount of blocks.","warn");return}this._blocks.move(t,n),this.currentBlockIndex=t,this.blockDidMutated(Vk,this.currentBlock,{fromIndex:n,toIndex:t})}async convert(t,n,o){if(!await t.save())throw new Error("Could not convert Block. Failed to extract original Block data.");const i=this.Editor.Tools.blockTools.get(n);if(!i)throw new Error(`Could not convert Block. Tool «${n}» not found.`);const r=await t.exportDataAsString(),s=it(r,i.sanitizeConfig);let a=Ac(s,i.conversionConfig,i.settings);return o&&(a=Object.assign(a,o)),this.replace(t,i.name,a)}unsetCurrentBlock(){this.currentBlockIndex=-1}async clear(t=!1){const n=new Hk;[...this.blocks].forEach(o=>{n.add(async()=>{await this.removeBlock(o,!1)})}),await n.completed,this.unsetCurrentBlock(),t&&this.insert(),this.Editor.UI.checkEmptiness()}async destroy(){await Promise.all(this.blocks.map(t=>t.destroy()))}bindBlockEvents(t){const{BlockEvents:n}=this.Editor;this.readOnlyMutableListeners.on(t.holder,"keydown",o=>{n.keydown(o)}),this.readOnlyMutableListeners.on(t.holder,"keyup",o=>{n.keyup(o)}),this.readOnlyMutableListeners.on(t.holder,"dragover",o=>{n.dragOver(o)}),this.readOnlyMutableListeners.on(t.holder,"dragleave",o=>{n.dragLeave(o)}),t.on("didMutated",o=>this.blockDidMutated(Vc,o,{index:this.getBlockIndex(o)}))}disableModuleBindings(){this.readOnlyMutableListeners.clearAll()}enableModuleBindings(){this.readOnlyMutableListeners.on(document,"cut",t=>this.Editor.BlockEvents.handleCommandX(t)),this.blocks.forEach(t=>{this.bindBlockEvents(t)})}validateIndex(t){return!(t<0||t>=this._blocks.length)}blockDidMutated(t,n,o){const i=new CustomEvent(t,{detail:{target:new ht(n),...o}});return this.eventsDispatcher.emit(Rd,{event:i}),n}}class zk extends ee{constructor(){super(...arguments),this.anyBlockSelectedCache=null,this.needToSelectAll=!1,this.nativeInputSelected=!1,this.readyToBlockSelection=!1}get sanitizerConfig(){return{p:{},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},ol:{},ul:{},li:{},br:!0,img:{src:!0,width:!0,height:!0},a:{href:!0},b:{},i:{},u:{}}}get allBlocksSelected(){const{BlockManager:t}=this.Editor;return t.blocks.every(n=>n.selected===!0)}set allBlocksSelected(t){const{BlockManager:n}=this.Editor;n.blocks.forEach(o=>{o.selected=t}),this.clearCache()}get anyBlockSelected(){const{BlockManager:t}=this.Editor;return this.anyBlockSelectedCache===null&&(this.anyBlockSelectedCache=t.blocks.some(n=>n.selected===!0)),this.anyBlockSelectedCache}get selectedBlocks(){return this.Editor.BlockManager.blocks.filter(t=>t.selected)}prepare(){this.selection=new U,Tn.add({name:"CMD+A",handler:t=>{const{BlockManager:n,ReadOnly:o}=this.Editor;if(o.isEnabled){t.preventDefault(),this.selectAllBlocks();return}n.currentBlock&&this.handleCommandA(t)},on:this.Editor.UI.nodes.redactor})}toggleReadOnly(){U.get().removeAllRanges(),this.allBlocksSelected=!1}unSelectBlockByIndex(t){const{BlockManager:n}=this.Editor;let o;isNaN(t)?o=n.currentBlock:o=n.getBlockByIndex(t),o.selected=!1,this.clearCache()}clearSelection(t,n=!1){const{BlockManager:o,Caret:i,RectangleSelection:r}=this.Editor;this.needToSelectAll=!1,this.nativeInputSelected=!1,this.readyToBlockSelection=!1;const s=t&&t instanceof KeyboardEvent,a=s&&Id(t.keyCode);if(this.anyBlockSelected&&s&&a&&!U.isSelectionExists){const l=o.removeSelectedBlocks();o.insertDefaultBlockAtIndex(l,!0),i.setToBlock(o.currentBlock),Wo(()=>{const c=t.key;i.insertContentAtCaretPosition(c.length>1?"":c)},20)()}if(this.Editor.CrossBlockSelection.clear(t),!this.anyBlockSelected||r.isRectActivated()){this.Editor.RectangleSelection.clearSelection();return}n&&this.selection.restore(),this.allBlocksSelected=!1}copySelectedBlocks(t){t.preventDefault();const n=B.make("div");this.selectedBlocks.forEach(r=>{const s=it(r.holder.innerHTML,this.sanitizerConfig),a=B.make("p");a.innerHTML=s,n.appendChild(a)});const o=Array.from(n.childNodes).map(r=>r.textContent).join(` 45 46`),i=n.innerHTML;return t.clipboardData.setData("text/plain",o),t.clipboardData.setData("text/html",i),Promise.all(this.selectedBlocks.map(r=>r.save())).then(r=>{try{t.clipboardData.setData(this.Editor.Paste.MIME_TYPE,JSON.stringify(r))}catch{}})}selectBlockByIndex(t){const{BlockManager:n}=this.Editor,o=n.getBlockByIndex(t);o!==void 0&&this.selectBlock(o)}selectBlock(t){this.selection.save(),U.get().removeAllRanges(),t.selected=!0,this.clearCache(),this.Editor.InlineToolbar.close()}unselectBlock(t){t.selected=!1,this.clearCache()}clearCache(){this.anyBlockSelectedCache=null}destroy(){Tn.remove(this.Editor.UI.nodes.redactor,"CMD+A")}handleCommandA(t){if(this.Editor.RectangleSelection.clearSelection(),B.isNativeInput(t.target)&&!this.readyToBlockSelection){this.readyToBlockSelection=!0;return}const n=this.Editor.BlockManager.getBlock(t.target),o=n.inputs;if(o.length>1&&!this.readyToBlockSelection){this.readyToBlockSelection=!0;return}if(o.length===1&&!this.needToSelectAll){this.needToSelectAll=!0;return}this.needToSelectAll?(t.preventDefault(),this.selectAllBlocks(),this.needToSelectAll=!1,this.readyToBlockSelection=!1):this.readyToBlockSelection&&(t.preventDefault(),this.selectBlock(n),this.needToSelectAll=!0)}selectAllBlocks(){this.selection.save(),U.get().removeAllRanges(),this.allBlocksSelected=!0,this.Editor.InlineToolbar.close()}}let Wk=class Lr extends ee{get positions(){return{START:"start",END:"end",DEFAULT:"default"}}static get CSS(){return{shadowCaret:"cdx-shadow-caret"}}setToBlock(t,n=this.positions.DEFAULT,o=0){var i;const{BlockManager:r,BlockSelection:s}=this.Editor;if(s.clearSelection(),!t.focusable){(i=window.getSelection())==null||i.removeAllRanges(),s.selectBlock(t),r.currentBlock=t;return}let a;switch(n){case this.positions.START:a=t.firstInput;break;case this.positions.END:a=t.lastInput;break;default:a=t.currentInput}if(!a)return;let l,c=o;if(n===this.positions.START)l=B.getDeepestNode(a,!1),c=0;else if(n===this.positions.END)l=B.getDeepestNode(a,!0),c=B.getContentLength(l);else{const{node:u,offset:d}=B.getNodeByOffset(a,o);u?(l=u,c=d):(l=B.getDeepestNode(a,!1),c=0)}this.set(l,c),r.setCurrentBlockByChildNode(t.holder),r.currentBlock.currentInput=a}setToInput(t,n=this.positions.DEFAULT,o=0){const{currentBlock:i}=this.Editor.BlockManager,r=B.getDeepestNode(t);switch(n){case this.positions.START:this.set(r,0);break;case this.positions.END:this.set(r,B.getContentLength(r));break;default:o&&this.set(r,o)}i.currentInput=t}set(t,n=0){const{top:o,bottom:i}=U.setCursor(t,n),{innerHeight:r}=window;o<0?window.scrollBy(0,o-30):i>r&&window.scrollBy(0,i-r+30)}setToTheLastBlock(){const t=this.Editor.BlockManager.lastBlock;if(t)if(t.tool.isDefault&&t.isEmpty)this.setToBlock(t);else{const n=this.Editor.BlockManager.insertAtEnd();this.setToBlock(n)}}extractFragmentFromCaretPosition(){const t=U.get();if(t.rangeCount){const n=t.getRangeAt(0),o=this.Editor.BlockManager.currentBlock.currentInput;if(n.deleteContents(),o)if(B.isNativeInput(o)){const i=o,r=document.createDocumentFragment(),s=i.value.substring(0,i.selectionStart),a=i.value.substring(i.selectionStart);return r.textContent=a,i.value=s,r}else{const i=n.cloneRange();return i.selectNodeContents(o),i.setStart(n.endContainer,n.endOffset),i.extractContents()}}}navigateNext(t=!1){const{BlockManager:n}=this.Editor,{currentBlock:o,nextBlock:i}=n;if(o===void 0)return!1;const{nextInput:r,currentInput:s}=o,a=s!==void 0?Eo(s):void 0;let l=i;const c=t||a||!o.focusable;if(r&&c)return this.setToInput(r,this.positions.START),!0;if(l===null){if(o.tool.isDefault||!c)return!1;l=n.insertAtEnd()}return c?(this.setToBlock(l,this.positions.START),!0):!1}navigatePrevious(t=!1){const{currentBlock:n,previousBlock:o}=this.Editor.BlockManager;if(!n)return!1;const{previousInput:i,currentInput:r}=n,s=r!==void 0?So(r):void 0,a=t||s||!n.focusable;return i&&a?(this.setToInput(i,this.positions.END),!0):o!==null&&a?(this.setToBlock(o,this.positions.END),!0):!1}createShadow(t){const n=document.createElement("span");n.classList.add(Lr.CSS.shadowCaret),t.insertAdjacentElement("beforeend",n)}restoreCaret(t){const n=t.querySelector(`.${Lr.CSS.shadowCaret}`);if(!n)return;new U().expandToTag(n);const o=document.createRange();o.selectNode(n),o.extractContents()}insertContentAtCaretPosition(t){const n=document.createDocumentFragment(),o=document.createElement("div"),i=U.get(),r=U.range;o.innerHTML=t,Array.from(o.childNodes).forEach(c=>n.appendChild(c)),n.childNodes.length===0&&n.appendChild(new Text);const s=n.lastChild;r.deleteContents(),r.insertNode(n);const a=document.createRange(),l=s.nodeType===Node.TEXT_NODE?s:s.firstChild;l!==null&&l.textContent!==null&&a.setStart(l,l.textContent.length),i.removeAllRanges(),i.addRange(a)}};class qk extends ee{constructor(){super(...arguments),this.onMouseUp=()=>{this.listeners.off(document,"mouseover",this.onMouseOver),this.listeners.off(document,"mouseup",this.onMouseUp)},this.onMouseOver=t=>{const{BlockManager:n,BlockSelection:o}=this.Editor;if(t.relatedTarget===null&&t.target===null)return;const i=n.getBlockByChildNode(t.relatedTarget)||this.lastSelectedBlock,r=n.getBlockByChildNode(t.target);if(!(!i||!r)&&r!==i){if(i===this.firstSelectedBlock){U.get().removeAllRanges(),i.selected=!0,r.selected=!0,o.clearCache();return}if(r===this.firstSelectedBlock){i.selected=!1,r.selected=!1,o.clearCache();return}this.Editor.InlineToolbar.close(),this.toggleBlocksSelectedState(i,r),this.lastSelectedBlock=r}}}async prepare(){this.listeners.on(document,"mousedown",t=>{this.enableCrossBlockSelection(t)})}watchSelection(t){if(t.button!==Pv.LEFT)return;const{BlockManager:n}=this.Editor;this.firstSelectedBlock=n.getBlock(t.target),this.lastSelectedBlock=this.firstSelectedBlock,this.listeners.on(document,"mouseover",this.onMouseOver),this.listeners.on(document,"mouseup",this.onMouseUp)}get isCrossBlockSelectionStarted(){return!!this.firstSelectedBlock&&!!this.lastSelectedBlock&&this.firstSelectedBlock!==this.lastSelectedBlock}toggleBlockSelectedState(t=!0){const{BlockManager:n,BlockSelection:o}=this.Editor;this.lastSelectedBlock||(this.lastSelectedBlock=this.firstSelectedBlock=n.currentBlock),this.firstSelectedBlock===this.lastSelectedBlock&&(this.firstSelectedBlock.selected=!0,o.clearCache(),U.get().removeAllRanges());const i=n.blocks.indexOf(this.lastSelectedBlock)+(t?1:-1),r=n.blocks[i];r&&(this.lastSelectedBlock.selected!==r.selected?(r.selected=!0,o.clearCache()):(this.lastSelectedBlock.selected=!1,o.clearCache()),this.lastSelectedBlock=r,this.Editor.InlineToolbar.close(),r.holder.scrollIntoView({block:"nearest"}))}clear(t){const{BlockManager:n,BlockSelection:o,Caret:i}=this.Editor,r=n.blocks.indexOf(this.firstSelectedBlock),s=n.blocks.indexOf(this.lastSelectedBlock);if(o.anyBlockSelected&&r>-1&&s>-1&&t&&t instanceof KeyboardEvent)switch(t.keyCode){case K.DOWN:case K.RIGHT:i.setToBlock(n.blocks[Math.max(r,s)],i.positions.END);break;case K.UP:case K.LEFT:i.setToBlock(n.blocks[Math.min(r,s)],i.positions.START);break;default:i.setToBlock(n.blocks[Math.max(r,s)],i.positions.END)}this.firstSelectedBlock=this.lastSelectedBlock=null}enableCrossBlockSelection(t){const{UI:n}=this.Editor;U.isCollapsed||this.Editor.BlockSelection.clearSelection(t),n.nodes.redactor.contains(t.target)?this.watchSelection(t):this.Editor.BlockSelection.clearSelection(t)}toggleBlocksSelectedState(t,n){const{BlockManager:o,BlockSelection:i}=this.Editor,r=o.blocks.indexOf(t),s=o.blocks.indexOf(n),a=t.selected!==n.selected;for(let l=Math.min(r,s);l<=Math.max(r,s);l++){const c=o.blocks[l];c!==this.firstSelectedBlock&&c!==(a?t:n)&&(o.blocks[l].selected=!o.blocks[l].selected,i.clearCache())}}}class Gk extends ee{constructor(){super(...arguments),this.isStartedAtEditor=!1}toggleReadOnly(t){t?this.disableModuleBindings():this.enableModuleBindings()}enableModuleBindings(){const{UI:t}=this.Editor;this.readOnlyMutableListeners.on(t.nodes.holder,"drop",async n=>{await this.processDrop(n)},!0),this.readOnlyMutableListeners.on(t.nodes.holder,"dragstart",()=>{this.processDragStart()}),this.readOnlyMutableListeners.on(t.nodes.holder,"dragover",n=>{this.processDragOver(n)},!0)}disableModuleBindings(){this.readOnlyMutableListeners.clearAll()}async processDrop(t){const{BlockManager:n,Paste:o,Caret:i}=this.Editor;t.preventDefault(),n.blocks.forEach(s=>{s.dropTarget=!1}),U.isAtEditor&&!U.isCollapsed&&this.isStartedAtEditor&&document.execCommand("delete"),this.isStartedAtEditor=!1;const r=n.setCurrentBlockByChildNode(t.target);if(r)this.Editor.Caret.setToBlock(r,i.positions.END);else{const s=n.setCurrentBlockByChildNode(n.lastBlock.holder);this.Editor.Caret.setToBlock(s,i.positions.END)}await o.processDataTransfer(t.dataTransfer,!0)}processDragStart(){U.isAtEditor&&!U.isCollapsed&&(this.isStartedAtEditor=!0),this.Editor.InlineToolbar.close()}processDragOver(t){t.preventDefault()}}const Kk=180,Yk=400;class Xk extends ee{constructor({config:t,eventsDispatcher:n}){super({config:t,eventsDispatcher:n}),this.disabled=!1,this.batchingTimeout=null,this.batchingOnChangeQueue=new Map,this.batchTime=Yk,this.mutationObserver=new MutationObserver(o=>{this.redactorChanged(o)}),this.eventsDispatcher.on(Rd,o=>{this.particularBlockChanged(o.event)}),this.eventsDispatcher.on(Dd,()=>{this.disable()}),this.eventsDispatcher.on(Fd,()=>{this.enable()})}enable(){this.mutationObserver.observe(this.Editor.UI.nodes.redactor,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),this.disabled=!1}disable(){this.mutationObserver.disconnect(),this.disabled=!0}particularBlockChanged(t){this.disabled||!de(this.config.onChange)||(this.batchingOnChangeQueue.set(`block:${t.detail.target.id}:event:${t.type}`,t),this.batchingTimeout&&clearTimeout(this.batchingTimeout),this.batchingTimeout=setTimeout(()=>{let n;this.batchingOnChangeQueue.size===1?n=this.batchingOnChangeQueue.values().next().value:n=Array.from(this.batchingOnChangeQueue.values()),this.config.onChange&&this.config.onChange(this.Editor.API.methods,n),this.batchingOnChangeQueue.clear()},this.batchTime))}redactorChanged(t){this.eventsDispatcher.emit(Or,{mutations:t})}}const Ah=class Lh extends ee{constructor(){super(...arguments),this.MIME_TYPE="application/x-editor-js",this.toolsTags={},this.tagsByTool={},this.toolsPatterns=[],this.toolsFiles={},this.exceptionList=[],this.processTool=t=>{try{const n=t.create({},{},!1);if(t.pasteConfig===!1){this.exceptionList.push(t.name);return}if(!de(n.onPaste))return;this.getTagsConfig(t),this.getFilesConfig(t),this.getPatternsConfig(t)}catch(n){se(`Paste handling for «${t.name}» Tool hasn't been set up because of the error`,"warn",n)}},this.handlePasteEvent=async t=>{const{BlockManager:n,Toolbar:o}=this.Editor,i=n.setCurrentBlockByChildNode(t.target);!i||this.isNativeBehaviour(t.target)&&!t.clipboardData.types.includes("Files")||i&&this.exceptionList.includes(i.name)||(t.preventDefault(),this.processDataTransfer(t.clipboardData),o.close())}}async prepare(){this.processTools()}toggleReadOnly(t){t?this.unsetCallback():this.setCallback()}async processDataTransfer(t,n=!1){const{Tools:o}=this.Editor,i=t.types;if((i.includes?i.includes("Files"):i.contains("Files"))&&!Ge(this.toolsFiles)){await this.processFiles(t.files);return}const r=t.getData(this.MIME_TYPE),s=t.getData("text/plain");let a=t.getData("text/html");if(r)try{this.insertEditorJSData(JSON.parse(r));return}catch{}n&&s.trim()&&a.trim()&&(a="<p>"+(a.trim()?a:s)+"</p>");const l=Object.keys(this.toolsTags).reduce((d,h)=>(d[h.toLowerCase()]=this.toolsTags[h].sanitizationConfig??{},d),{}),c=Object.assign({},l,o.getAllInlineToolsSanitizeConfig(),{br:{}}),u=it(a,c);!u.trim()||u.trim()===s||!B.isHTMLString(u)?await this.processText(s):await this.processText(u,!0)}async processText(t,n=!1){const{Caret:o,BlockManager:i}=this.Editor,r=n?this.processHTML(t):this.processPlain(t);if(!r.length)return;if(r.length===1){r[0].isBlock?this.processSingleBlock(r.pop()):this.processInlinePaste(r.pop());return}const s=i.currentBlock&&i.currentBlock.tool.isDefault&&i.currentBlock.isEmpty;r.map(async(a,l)=>this.insertBlock(a,l===0&&s)),i.currentBlock&&o.setToBlock(i.currentBlock,o.positions.END)}setCallback(){this.listeners.on(this.Editor.UI.nodes.holder,"paste",this.handlePasteEvent)}unsetCallback(){this.listeners.off(this.Editor.UI.nodes.holder,"paste",this.handlePasteEvent)}processTools(){const t=this.Editor.Tools.blockTools;Array.from(t.values()).forEach(this.processTool)}collectTagNames(t){return vt(t)?[t]:Ee(t)?Object.keys(t):[]}getTagsConfig(t){if(t.pasteConfig===!1)return;const n=t.pasteConfig.tags||[],o=[];n.forEach(i=>{const r=this.collectTagNames(i);o.push(...r),r.forEach(s=>{if(Object.prototype.hasOwnProperty.call(this.toolsTags,s)){se(`Paste handler for «${t.name}» Tool on «${s}» tag is skipped because it is already used by «${this.toolsTags[s].tool.name}» Tool.`,"warn");return}const a=Ee(i)?i[s]:null;this.toolsTags[s.toUpperCase()]={tool:t,sanitizationConfig:a}})}),this.tagsByTool[t.name]=o.map(i=>i.toUpperCase())}getFilesConfig(t){if(t.pasteConfig===!1)return;const{files:n={}}=t.pasteConfig;let{extensions:o,mimeTypes:i}=n;!o&&!i||(o&&!Array.isArray(o)&&(se(`«extensions» property of the onDrop config for «${t.name}» Tool should be an array`),o=[]),i&&!Array.isArray(i)&&(se(`«mimeTypes» property of the onDrop config for «${t.name}» Tool should be an array`),i=[]),i&&(i=i.filter(r=>jv(r)?!0:(se(`MIME type value «${r}» for the «${t.name}» Tool is not a valid MIME type`,"warn"),!1))),this.toolsFiles[t.name]={extensions:o||[],mimeTypes:i||[]})}getPatternsConfig(t){t.pasteConfig===!1||!t.pasteConfig.patterns||Ge(t.pasteConfig.patterns)||Object.entries(t.pasteConfig.patterns).forEach(([n,o])=>{o instanceof RegExp||se(`Pattern ${o} for «${t.name}» Tool is skipped because it should be a Regexp instance.`,"warn"),this.toolsPatterns.push({key:n,pattern:o,tool:t})})}isNativeBehaviour(t){return B.isNativeInput(t)}async processFiles(t){const{BlockManager:n}=this.Editor;let o;o=await Promise.all(Array.from(t).map(r=>this.processFile(r))),o=o.filter(r=>!!r);const i=n.currentBlock.tool.isDefault&&n.currentBlock.isEmpty;o.forEach((r,s)=>{n.paste(r.type,r.event,s===0&&i)})}async processFile(t){const n=Nv(t),o=Object.entries(this.toolsFiles).find(([r,{mimeTypes:s,extensions:a}])=>{const[l,c]=t.type.split("/"),u=a.find(h=>h.toLowerCase()===n.toLowerCase()),d=s.find(h=>{const[p,m]=h.split("/");return p===l&&(m===c||m==="*")});return!!u||!!d});if(!o)return;const[i]=o;return{event:this.composePasteEvent("file",{file:t}),type:i}}processHTML(t){const{Tools:n}=this.Editor,o=B.make("DIV");return o.innerHTML=t,this.getNodes(o).map(i=>{let r,s=n.defaultTool,a=!1;switch(i.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:r=B.make("div"),r.appendChild(i);break;case Node.ELEMENT_NODE:r=i,a=!0,this.toolsTags[r.tagName]&&(s=this.toolsTags[r.tagName].tool);break}const{tags:l}=s.pasteConfig||{tags:[]},c=l.reduce((h,p)=>(this.collectTagNames(p).forEach(m=>{const f=Ee(p)?p[m]:null;h[m.toLowerCase()]=f||{}}),h),{}),u=Object.assign({},c,s.baseSanitizeConfig);if(r.tagName.toLowerCase()==="table"){const h=it(r.outerHTML,u);r=B.make("div",void 0,{innerHTML:h}).firstChild}else r.innerHTML=it(r.innerHTML,u);const d=this.composePasteEvent("tag",{data:r});return{content:r,isBlock:a,tool:s.name,event:d}}).filter(i=>{const r=B.isEmpty(i.content),s=B.isSingleTag(i.content);return!r||s})}processPlain(t){const{defaultBlock:n}=this.config;if(!t)return[];const o=n;return t.split(/\r?\n/).filter(i=>i.trim()).map(i=>{const r=B.make("div");r.textContent=i;const s=this.composePasteEvent("tag",{data:r});return{content:r,tool:o,isBlock:!1,event:s}})}async processSingleBlock(t){const{Caret:n,BlockManager:o}=this.Editor,{currentBlock:i}=o;if(!i||t.tool!==i.name||!B.containsOnlyInlineElements(t.content.innerHTML)){this.insertBlock(t,i?.tool.isDefault&&i.isEmpty);return}n.insertContentAtCaretPosition(t.content.innerHTML)}async processInlinePaste(t){const{BlockManager:n,Caret:o}=this.Editor,{content:i}=t;if(n.currentBlock&&n.currentBlock.tool.isDefault&&i.textContent.length<Lh.PATTERN_PROCESSING_MAX_LENGTH){const r=await this.processPattern(i.textContent);if(r){const s=n.currentBlock&&n.currentBlock.tool.isDefault&&n.currentBlock.isEmpty,a=n.paste(r.tool,r.event,s);o.setToBlock(a,o.positions.END);return}}if(n.currentBlock&&n.currentBlock.currentInput){const r=n.currentBlock.tool.baseSanitizeConfig;document.execCommand("insertHTML",!1,it(i.innerHTML,r))}else this.insertBlock(t)}async processPattern(t){const n=this.toolsPatterns.find(o=>{const i=o.pattern.exec(t);return i?t===i.shift():!1});return n?{event:this.composePasteEvent("pattern",{key:n.key,data:t}),tool:n.tool.name}:void 0}insertBlock(t,n=!1){const{BlockManager:o,Caret:i}=this.Editor,{currentBlock:r}=o;let s;if(n&&r&&r.isEmpty){s=o.paste(t.tool,t.event,!0),i.setToBlock(s,i.positions.END);return}s=o.paste(t.tool,t.event),i.setToBlock(s,i.positions.END)}insertEditorJSData(t){const{BlockManager:n,Caret:o,Tools:i}=this.Editor;fs(t,r=>i.blockTools.get(r).sanitizeConfig).forEach(({tool:r,data:s},a)=>{let l=!1;a===0&&(l=n.currentBlock&&n.currentBlock.tool.isDefault&&n.currentBlock.isEmpty);const c=n.insert({tool:r,data:s,replace:l});o.setToBlock(c,o.positions.END)})}processElementNode(t,n,o){const i=Object.keys(this.toolsTags),r=t,{tool:s}=this.toolsTags[r.tagName]||{},a=this.tagsByTool[s?.name]||[],l=i.includes(r.tagName),c=B.blockElements.includes(r.tagName.toLowerCase()),u=Array.from(r.children).some(({tagName:h})=>i.includes(h)&&!a.includes(h)),d=Array.from(r.children).some(({tagName:h})=>B.blockElements.includes(h.toLowerCase()));if(!c&&!l&&!u)return o.appendChild(r),[...n,o];if(l&&!u||c&&!d&&!u)return[...n,o,r]}getNodes(t){const n=Array.from(t.childNodes);let o;const i=(r,s)=>{if(B.isEmpty(s)&&!B.isSingleTag(s))return r;const a=r[r.length-1];let l=new DocumentFragment;switch(a&&B.isFragment(a)&&(l=r.pop()),s.nodeType){case Node.ELEMENT_NODE:if(o=this.processElementNode(s,r,l),o)return o;break;case Node.TEXT_NODE:return l.appendChild(s),[...r,l];default:return[...r,l]}return[...r,...Array.from(s.childNodes).reduce(i,[])]};return n.reduce(i,[])}composePasteEvent(t,n){return new CustomEvent(t,{detail:n})}};Ah.PATTERN_PROCESSING_MAX_LENGTH=450;let Zk=Ah;class Jk extends ee{constructor(){super(...arguments),this.toolsDontSupportReadOnly=[],this.readOnlyEnabled=!1}get isEnabled(){return this.readOnlyEnabled}async prepare(){const{Tools:t}=this.Editor,{blockTools:n}=t,o=[];Array.from(n.entries()).forEach(([i,r])=>{r.isReadOnlySupported||o.push(i)}),this.toolsDontSupportReadOnly=o,this.config.readOnly&&o.length>0&&this.throwCriticalError(),this.toggle(this.config.readOnly,!0)}async toggle(t=!this.readOnlyEnabled,n=!1){t&&this.toolsDontSupportReadOnly.length>0&&this.throwCriticalError();const o=this.readOnlyEnabled;this.readOnlyEnabled=t;for(const r in this.Editor)this.Editor[r].toggleReadOnly&&this.Editor[r].toggleReadOnly(t);if(o===t)return this.readOnlyEnabled;if(n)return this.readOnlyEnabled;this.Editor.ModificationsObserver.disable();const i=await this.Editor.Saver.save();return await this.Editor.BlockManager.clear(),await this.Editor.Renderer.render(i.blocks),this.Editor.ModificationsObserver.enable(),this.readOnlyEnabled}throwCriticalError(){throw new jd(`To enable read-only mode all connected tools should support it. Tools ${this.toolsDontSupportReadOnly.join(", ")} don't support read-only mode.`)}}let Qk=class _o extends ee{constructor(){super(...arguments),this.isRectSelectionActivated=!1,this.SCROLL_SPEED=3,this.HEIGHT_OF_SCROLL_ZONE=40,this.BOTTOM_SCROLL_ZONE=1,this.TOP_SCROLL_ZONE=2,this.MAIN_MOUSE_BUTTON=0,this.mousedown=!1,this.isScrolling=!1,this.inScrollZone=null,this.startX=0,this.startY=0,this.mouseX=0,this.mouseY=0,this.stackOfSelected=[],this.listenerIds=[]}static get CSS(){return{overlay:"codex-editor-overlay",overlayContainer:"codex-editor-overlay__container",rect:"codex-editor-overlay__rectangle",topScrollZone:"codex-editor-overlay__scroll-zone--top",bottomScrollZone:"codex-editor-overlay__scroll-zone--bottom"}}prepare(){this.enableModuleBindings()}startSelection(t,n){const o=document.elementFromPoint(t-window.pageXOffset,n-window.pageYOffset);o.closest(`.${this.Editor.Toolbar.CSS.toolbar}`)||(this.Editor.BlockSelection.allBlocksSelected=!1,this.clearSelection(),this.stackOfSelected=[]);const i=[`.${mt.CSS.content}`,`.${this.Editor.Toolbar.CSS.toolbar}`,`.${this.Editor.InlineToolbar.CSS.inlineToolbar}`],r=o.closest("."+this.Editor.UI.CSS.editorWrapper),s=i.some(a=>!!o.closest(a));!r||s||(this.mousedown=!0,this.startX=t,this.startY=n)}endSelection(){this.mousedown=!1,this.startX=0,this.startY=0,this.overlayRectangle.style.display="none"}isRectActivated(){return this.isRectSelectionActivated}clearSelection(){this.isRectSelectionActivated=!1}enableModuleBindings(){const{container:t}=this.genHTML();this.listeners.on(t,"mousedown",n=>{this.processMouseDown(n)},!1),this.listeners.on(document.body,"mousemove",Er(n=>{this.processMouseMove(n)},10),{passive:!0}),this.listeners.on(document.body,"mouseleave",()=>{this.processMouseLeave()}),this.listeners.on(window,"scroll",Er(n=>{this.processScroll(n)},10),{passive:!0}),this.listeners.on(document.body,"mouseup",()=>{this.processMouseUp()},!1)}processMouseDown(t){t.button===this.MAIN_MOUSE_BUTTON&&(t.target.closest(B.allInputsSelector)!==null||this.startSelection(t.pageX,t.pageY))}processMouseMove(t){this.changingRectangle(t),this.scrollByZones(t.clientY)}processMouseLeave(){this.clearSelection(),this.endSelection()}processScroll(t){this.changingRectangle(t)}processMouseUp(){this.clearSelection(),this.endSelection()}scrollByZones(t){if(this.inScrollZone=null,t<=this.HEIGHT_OF_SCROLL_ZONE&&(this.inScrollZone=this.TOP_SCROLL_ZONE),document.documentElement.clientHeight-t<=this.HEIGHT_OF_SCROLL_ZONE&&(this.inScrollZone=this.BOTTOM_SCROLL_ZONE),!this.inScrollZone){this.isScrolling=!1;return}this.isScrolling||(this.scrollVertical(this.inScrollZone===this.TOP_SCROLL_ZONE?-this.SCROLL_SPEED:this.SCROLL_SPEED),this.isScrolling=!0)}genHTML(){const{UI:t}=this.Editor,n=t.nodes.holder.querySelector("."+t.CSS.editorWrapper),o=B.make("div",_o.CSS.overlay,{}),i=B.make("div",_o.CSS.overlayContainer,{}),r=B.make("div",_o.CSS.rect,{});return i.appendChild(r),o.appendChild(i),n.appendChild(o),this.overlayRectangle=r,{container:n,overlay:o}}scrollVertical(t){if(!(this.inScrollZone&&this.mousedown))return;const n=window.pageYOffset;window.scrollBy(0,t),this.mouseY+=window.pageYOffset-n,setTimeout(()=>{this.scrollVertical(t)},0)}changingRectangle(t){if(!this.mousedown)return;t.pageY!==void 0&&(this.mouseX=t.pageX,this.mouseY=t.pageY);const{rightPos:n,leftPos:o,index:i}=this.genInfoForMouseSelection(),r=this.startX>n&&this.mouseX>n,s=this.startX<o&&this.mouseX<o;this.rectCrossesBlocks=!(r||s),this.isRectSelectionActivated||(this.rectCrossesBlocks=!1,this.isRectSelectionActivated=!0,this.shrinkRectangleToPoint(),this.overlayRectangle.style.display="block"),this.updateRectangleSize(),this.Editor.Toolbar.close(),i!==void 0&&(this.trySelectNextBlock(i),this.inverseSelection(),U.get().removeAllRanges())}shrinkRectangleToPoint(){this.overlayRectangle.style.left=`${this.startX-window.pageXOffset}px`,this.overlayRectangle.style.top=`${this.startY-window.pageYOffset}px`,this.overlayRectangle.style.bottom=`calc(100% - ${this.startY-window.pageYOffset}px`,this.overlayRectangle.style.right=`calc(100% - ${this.startX-window.pageXOffset}px`}inverseSelection(){const t=this.Editor.BlockManager.getBlockByIndex(this.stackOfSelected[0]).selected;if(this.rectCrossesBlocks&&!t)for(const n of this.stackOfSelected)this.Editor.BlockSelection.selectBlockByIndex(n);if(!this.rectCrossesBlocks&&t)for(const n of this.stackOfSelected)this.Editor.BlockSelection.unSelectBlockByIndex(n)}updateRectangleSize(){this.mouseY>=this.startY?(this.overlayRectangle.style.top=`${this.startY-window.pageYOffset}px`,this.overlayRectangle.style.bottom=`calc(100% - ${this.mouseY-window.pageYOffset}px`):(this.overlayRectangle.style.bottom=`calc(100% - ${this.startY-window.pageYOffset}px`,this.overlayRectangle.style.top=`${this.mouseY-window.pageYOffset}px`),this.mouseX>=this.startX?(this.overlayRectangle.style.left=`${this.startX-window.pageXOffset}px`,this.overlayRectangle.style.right=`calc(100% - ${this.mouseX-window.pageXOffset}px`):(this.overlayRectangle.style.right=`calc(100% - ${this.startX-window.pageXOffset}px`,this.overlayRectangle.style.left=`${this.mouseX-window.pageXOffset}px`)}genInfoForMouseSelection(){const t=document.body.offsetWidth/2,n=this.mouseY-window.pageYOffset,o=document.elementFromPoint(t,n),i=this.Editor.BlockManager.getBlockByChildNode(o);let r;i!==void 0&&(r=this.Editor.BlockManager.blocks.findIndex(u=>u.holder===i.holder));const s=this.Editor.BlockManager.lastBlock.holder.querySelector("."+mt.CSS.content),a=Number.parseInt(window.getComputedStyle(s).width,10)/2,l=t-a,c=t+a;return{index:r,leftPos:l,rightPos:c}}addBlockInSelection(t){this.rectCrossesBlocks&&this.Editor.BlockSelection.selectBlockByIndex(t),this.stackOfSelected.push(t)}trySelectNextBlock(t){const n=this.stackOfSelected[this.stackOfSelected.length-1]===t,o=this.stackOfSelected.length,i=1,r=-1,s=0;if(n)return;const a=this.stackOfSelected[o-1]-this.stackOfSelected[o-2]>0;let l=s;o>1&&(l=a?i:r);const c=t>this.stackOfSelected[o-1]&&l===i,u=t<this.stackOfSelected[o-1]&&l===r,d=!(c||u||l===s);if(!d&&(t>this.stackOfSelected[o-1]||this.stackOfSelected[o-1]===void 0)){let m=this.stackOfSelected[o-1]+1||t;for(m;m<=t;m++)this.addBlockInSelection(m);return}if(!d&&t<this.stackOfSelected[o-1]){for(let m=this.stackOfSelected[o-1]-1;m>=t;m--)this.addBlockInSelection(m);return}if(!d)return;let h=o-1,p;for(t>this.stackOfSelected[o-1]?p=()=>t>this.stackOfSelected[h]:p=()=>t<this.stackOfSelected[h];p();)this.rectCrossesBlocks&&this.Editor.BlockSelection.unSelectBlockByIndex(this.stackOfSelected[h]),this.stackOfSelected.pop(),h--}};class e0 extends ee{async render(t){return new Promise(n=>{const{Tools:o,BlockManager:i}=this.Editor;if(t.length===0)i.insert();else{const r=t.map(({type:s,data:a,tunes:l,id:c})=>{o.available.has(s)===!1&&(Ue(`Tool «${s}» is not found. Check 'tools' property at the Editor.js config.`,"warn"),a=this.composeStubDataForTool(s,a,c),s=o.stubTool);let u;try{u=i.composeBlock({id:c,tool:s,data:a,tunes:l})}catch(d){se(`Block «${s}» skipped because of plugins error`,"error",{data:a,error:d}),a=this.composeStubDataForTool(s,a,c),s=o.stubTool,u=i.composeBlock({id:c,tool:s,data:a,tunes:l})}return u});i.insertMany(r)}window.requestIdleCallback(()=>{n()},{timeout:2e3})})}composeStubDataForTool(t,n,o){const{Tools:i}=this.Editor;let r=t;if(i.unavailable.has(t)){const s=i.unavailable.get(t).toolbox;s!==void 0&&s[0].title!==void 0&&(r=s[0].title)}return{savedData:{id:o,type:t,data:n},title:r}}}class t0 extends ee{async save(){const{BlockManager:t,Tools:n}=this.Editor,o=t.blocks,i=[];try{o.forEach(a=>{i.push(this.getSavedData(a))});const r=await Promise.all(i),s=await fs(r,a=>n.blockTools.get(a).sanitizeConfig);return this.makeOutput(s)}catch(r){Ue("Saving failed due to the Error %o","error",r)}}async getSavedData(t){const n=await t.save(),o=n&&await t.validate(n.data);return{...n,isValid:o}}makeOutput(t){const n=[];return t.forEach(({id:o,tool:i,data:r,tunes:s,isValid:a})=>{if(!a){se(`Block «${i}» skipped because saved data is invalid`);return}if(i===this.Editor.Tools.stubTool){n.push(r);return}const l={id:o,type:i,data:r,...!Ge(s)&&{tunes:s}};n.push(l)}),{time:+new Date,blocks:n,version:"2.31.6"}}}(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ce-paragraph{line-height:1.6em;outline:none}.ce-block:only-of-type .ce-paragraph[data-placeholder-active]:empty:before,.ce-block:only-of-type .ce-paragraph[data-placeholder-active][data-empty=true]:before{content:attr(data-placeholder-active)}.ce-paragraph p:first-of-type{margin-top:0}.ce-paragraph p:last-of-type{margin-bottom:0}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const n0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 9V7.2C8 7.08954 8.08954 7 8.2 7L12 7M16 9V7.2C16 7.08954 15.9105 7 15.8 7L12 7M12 7L12 17M12 17H10M12 17H14"/></svg>';function o0(e){const t=document.createElement("div");t.innerHTML=e.trim();const n=document.createDocumentFragment();return n.append(...Array.from(t.childNodes)),n}/** 47 * Base Paragraph Block for the Editor.js. 48 * Represents a regular text block 49 * 50 * @author CodeX ([email protected]) 51 * @copyright CodeX 2018 52 * @license The MIT License (MIT) 53 */class sa{static get DEFAULT_PLACEHOLDER(){return""}constructor({data:t,config:n,api:o,readOnly:i}){this.api=o,this.readOnly=i,this._CSS={block:this.api.styles.block,wrapper:"ce-paragraph"},this.readOnly||(this.onKeyUp=this.onKeyUp.bind(this)),this._placeholder=n.placeholder?n.placeholder:sa.DEFAULT_PLACEHOLDER,this._data=t??{},this._element=null,this._preserveBlank=n.preserveBlank??!1}onKeyUp(t){if(t.code!=="Backspace"&&t.code!=="Delete"||!this._element)return;const{textContent:n}=this._element;n===""&&(this._element.innerHTML="")}drawView(){const t=document.createElement("DIV");return t.classList.add(this._CSS.wrapper,this._CSS.block),t.contentEditable="false",t.dataset.placeholderActive=this.api.i18n.t(this._placeholder),this._data.text&&(t.innerHTML=this._data.text),this.readOnly||(t.contentEditable="true",t.addEventListener("keyup",this.onKeyUp)),t}render(){return this._element=this.drawView(),this._element}merge(t){if(!this._element)return;this._data.text+=t.text;const n=o0(t.text);this._element.appendChild(n),this._element.normalize()}validate(t){return!(t.text.trim()===""&&!this._preserveBlank)}save(t){return{text:t.innerHTML}}onPaste(t){const n={text:t.detail.data.innerHTML};this._data=n,window.requestAnimationFrame(()=>{this._element&&(this._element.innerHTML=this._data.text||"")})}static get conversionConfig(){return{export:"text",import:"text"}}static get sanitize(){return{text:{br:!0}}}static get isReadOnlySupported(){return!0}static get pasteConfig(){return{tags:["P"]}}static get toolbox(){return{icon:n0,title:"Text"}}}class aa{constructor(){this.commandName="bold"}static get sanitize(){return{b:{}}}render(){return{icon:Ob,name:"bold",onActivate:()=>{document.execCommand(this.commandName)},isActive:()=>document.queryCommandState(this.commandName)}}get shortcut(){return"CMD+B"}}aa.isInline=!0;aa.title="Bold";class la{constructor(){this.commandName="italic",this.CSS={button:"ce-inline-tool",buttonActive:"ce-inline-tool--active",buttonModifier:"ce-inline-tool--italic"},this.nodes={button:null}}static get sanitize(){return{i:{}}}render(){return this.nodes.button=document.createElement("button"),this.nodes.button.type="button",this.nodes.button.classList.add(this.CSS.button,this.CSS.buttonModifier),this.nodes.button.innerHTML=jb,this.nodes.button}surround(){document.execCommand(this.commandName)}checkState(){const t=document.queryCommandState(this.commandName);return this.nodes.button.classList.toggle(this.CSS.buttonActive,t),t}get shortcut(){return"CMD+I"}}la.isInline=!0;la.title="Italic";class ca{constructor({api:t}){this.commandLink="createLink",this.commandUnlink="unlink",this.ENTER_KEY=13,this.CSS={button:"ce-inline-tool",buttonActive:"ce-inline-tool--active",buttonModifier:"ce-inline-tool--link",buttonUnlink:"ce-inline-tool--unlink",input:"ce-inline-tool-input",inputShowed:"ce-inline-tool-input--showed"},this.nodes={button:null,input:null},this.inputOpened=!1,this.toolbar=t.toolbar,this.inlineToolbar=t.inlineToolbar,this.notifier=t.notifier,this.i18n=t.i18n,this.selection=new U}static get sanitize(){return{a:{href:!0,target:"_blank",rel:"nofollow"}}}render(){return this.nodes.button=document.createElement("button"),this.nodes.button.type="button",this.nodes.button.classList.add(this.CSS.button,this.CSS.buttonModifier),this.nodes.button.innerHTML=Lc,this.nodes.button}renderActions(){return this.nodes.input=document.createElement("input"),this.nodes.input.placeholder=this.i18n.t("Add a link"),this.nodes.input.enterKeyHint="done",this.nodes.input.classList.add(this.CSS.input),this.nodes.input.addEventListener("keydown",t=>{t.keyCode===this.ENTER_KEY&&this.enterPressed(t)}),this.nodes.input}surround(t){if(t){this.inputOpened?(this.selection.restore(),this.selection.removeFakeBackground()):(this.selection.setFakeBackground(),this.selection.save());const n=this.selection.findParentTag("A");if(n){this.inputOpened?(this.closeActions(!1),this.checkState()):(this.selection.expandToTag(n),this.unlink(),this.closeActions(),this.checkState(),this.toolbar.close());return}}this.toggleActions()}checkState(){const t=this.selection.findParentTag("A");if(t){this.nodes.button.innerHTML=Fb,this.nodes.button.classList.add(this.CSS.buttonUnlink),this.nodes.button.classList.add(this.CSS.buttonActive),this.openActions();const n=t.getAttribute("href");this.nodes.input.defaultValue=n!=="null"?n:"",this.selection.save()}else this.nodes.button.innerHTML=Lc,this.nodes.button.classList.remove(this.CSS.buttonUnlink),this.nodes.button.classList.remove(this.CSS.buttonActive);return!!t}clear(){this.closeActions()}get shortcut(){return"CMD+K"}toggleActions(){this.inputOpened?this.closeActions(!1):this.openActions(!0)}openActions(t=!1){this.nodes.input.classList.add(this.CSS.inputShowed),t&&this.nodes.input.focus(),this.inputOpened=!0}closeActions(t=!0){if(this.selection.isFakeBackgroundEnabled){const n=new U;n.save(),this.selection.restore(),this.selection.removeFakeBackground(),n.restore()}this.nodes.input.classList.remove(this.CSS.inputShowed),this.nodes.input.value="",t&&this.selection.clearSaved(),this.inputOpened=!1}enterPressed(t){let n=this.nodes.input.value||"";if(!n.trim()){this.selection.restore(),this.unlink(),t.preventDefault(),this.closeActions();return}if(!this.validateURL(n)){this.notifier.show({message:"Pasted link is not valid.",style:"error"}),se("Incorrect Link pasted","warn",n);return}n=this.prepareLink(n),this.selection.restore(),this.selection.removeFakeBackground(),this.insertLink(n),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.selection.collapseToEnd(),this.inlineToolbar.close()}validateURL(t){return!/\s/.test(t)}prepareLink(t){return t=t.trim(),t=this.addProtocol(t),t}addProtocol(t){if(/^(\w+):(\/\/)?/.test(t))return t;const n=/^\/[^/\s]/.test(t),o=t.substring(0,1)==="#",i=/^\/\/[^/\s]/.test(t);return!n&&!o&&!i&&(t="http://"+t),t}insertLink(t){const n=this.selection.findParentTag("A");n&&this.selection.expandToTag(n),document.execCommand(this.commandLink,!1,t)}unlink(){document.execCommand(this.commandUnlink)}}ca.isInline=!0;ca.title="Link";let Nh=class{constructor({api:t}){this.i18nAPI=t.i18n,this.blocksAPI=t.blocks,this.selectionAPI=t.selection,this.toolsAPI=t.tools,this.caretAPI=t.caret}async render(){const t=U.get(),n=this.blocksAPI.getBlockByElement(t.anchorNode);if(n===void 0)return[];const o=this.toolsAPI.getBlockTools(),i=await Hd(n,o);if(i.length===0)return[];const r=i.reduce((c,u)=>{var d;return(d=u.toolbox)==null||d.forEach(h=>{c.push({icon:h.icon,title:Me.t(Re.toolNames,h.title),name:u.name,closeOnActivate:!0,onActivate:async()=>{const p=await this.blocksAPI.convert(n.id,u.name,h.data);this.caretAPI.setToBlock(p,"end")}})}),c},[]),s=await n.getActiveToolboxEntry(),a=s!==void 0?s.icon:Yd,l=!Ln();return{icon:a,name:"convert-to",hint:{title:this.i18nAPI.t("Convert to")},children:{searchable:l,items:r,onOpen:()=>{l&&(this.selectionAPI.setFakeBackground(),this.selectionAPI.save())},onClose:()=>
53{l&&(this.selectionAPI.restore(),this.selectionAPI.removeFakeBackground())}}}}};Nh.isInline=!0;let jh=class{constructor({data:t,api:n}){this.CSS={wrapper:"ce-stub",info:"ce-stub__info",title:"ce-stub__title",subtitle:"ce-stub__subtitle"},this.api=n,this.title=t.title||this.api.i18n.t("Error"),this.subtitle=this.api.i18n.t("The block can not be displayed correctly."),this.savedData=t.savedData,this.wrapper=this.make()}render(){return this.wrapper}save(){return this.savedData}make(){const t=B.make("div",this.CSS.wrapper),n=Vb,o=B.make("div",this.CSS.info),i=B.make("div",this.CSS.title,{textContent:this.title}),r=B.make("div",this.CSS.subtitle,{textContent:this.subtitle});return t.innerHTML=n,o.appendChild(i),o.appendChild(r),t.appendChild(o),t}};jh.isReadOnlySupported=!0;class i0 extends ys{constructor(){super(...arguments),this.type=Gt.Inline}get title(){return this.constructable[Jo.Title]}create(){return new this.constructable({api:this.api,config:this.settings})}get isReadOnlySupported(){return this.constructable[Jo.IsReadOnlySupported]??!1}}class r0 extends ys{constructor(){super(...arguments),this.type=Gt.Tune}create(t,n){return new this.constructable({api:this.api,config:this.settings,block:n,data:t})}}let tt=class kn extends Map{get blockTools(){const t=Array.from(this.entries()).filter(([,n])=>n.isBlock());return new kn(t)}get inlineTools(){const t=Array.from(this.entries()).filter(([,n])=>n.isInline());return new kn(t)}get blockTunes(){const t=Array.from(this.entries()).filter(([,n])=>n.isTune());return new kn(t)}get internalTools(){const t=Array.from(this.entries()).filter(([,n])=>n.isInternal);return new kn(t)}get externalTools(){const t=Array.from(this.entries()).filter(([,n])=>!n.isInternal);return new kn(t)}};var s0=Object.defineProperty,a0=Object.getOwnPropertyDescriptor,$h=(e,t,n,o)=>{for(var i=a0(t,n),r=e.length-1,s;r>=0;r--)(s=e[r])&&(i=s(t,n,i)||i);return i&&s0(t,n,i),i};class ua extends ys{constructor(){super(...arguments),this.type=Gt.Block,this.inlineTools=new tt,this.tunes=new tt}create(t,n,o){return new this.constructable({data:t,block:n,readOnly:o,api:this.api,config:this.settings})}get isReadOnlySupported(){return this.constructable[yn.IsReadOnlySupported]===!0}get isLineBreaksEnabled(){return this.constructable[yn.IsEnabledLineBreaks]}get toolbox(){const t=this.constructable[yn.Toolbox],n=this.config[Co.Toolbox];if(!Ge(t)&&n!==!1)return n?Array.isArray(t)?Array.isArray(n)?n.map((o,i)=>{const r=t[i];return r?{...r,...o}:o}):[n]:Array.isArray(n)?n:[{...t,...n}]:Array.isArray(t)?t:[t]}get conversionConfig(){return this.constructable[yn.ConversionConfig]}get enabledInlineTools(){return this.config[Co.EnabledInlineTools]||!1}get enabledBlockTunes(){return this.config[Co.EnabledBlockTunes]}get pasteConfig(){return this.constructable[yn.PasteConfig]??{}}get sanitizeConfig(){const t=super.sanitizeConfig,n=this.baseSanitizeConfig;if(Ge(t))return n;const o={};for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const r=t[i];Ee(r)?o[i]=Object.assign({},n,r):o[i]=r}return o}get baseSanitizeConfig(){const t={};return Array.from(this.inlineTools.values()).forEach(n=>Object.assign(t,n.sanitizeConfig)),Array.from(this.tunes.values()).forEach(n=>Object.assign(t,n.sanitizeConfig)),t}}$h([An],ua.prototype,"sanitizeConfig");$h([An],ua.prototype,"baseSanitizeConfig");class l0{constructor(t,n,o){this.api=o,this.config=t,this.editorConfig=n}get(t){const{class:n,isInternal:o=!1,...i}=this.config[t],r=this.getConstructor(n),s=n[Mr.IsTune];return new r({name:t,constructable:n,config:i,api:this.api.getMethodsForTool(t,s),isDefault:t===this.editorConfig.defaultBlock,defaultPlaceholder:this.editorConfig.placeholder,isInternal:o})}getConstructor(t){switch(!0){case t[Jo.IsInline]:return i0;case t[Mr.IsTune]:return r0;default:return ua}}}let Rh=class{constructor({api:t}){this.CSS={animation:"wobble"},this.api=t}render(){return{icon:Ib,title:this.api.i18n.t("Move down"),onActivate:()=>this.handleClick(),name:"move-down"}}handleClick(){const t=this.api.blocks.getCurrentBlockIndex(),n=this.api.blocks.getBlockByIndex(t+1);if(!n)throw new Error("Unable to move Block down since it is already the last");const o=n.holder,i=o.getBoundingClientRect();let r=Math.abs(window.innerHeight-o.offsetHeight);i.top<window.innerHeight&&(r=window.scrollY+o.offsetHeight),window.scrollTo(0,r),this.api.blocks.move(t+1),this.api.toolbar.toggleBlockSettings(!0)}};Rh.isTune=!0;let Dh=class{constructor({api:t}){this.api=t}render(){return{icon:Lb,title:this.api.i18n.t("Delete"),name:"delete",confirmation:{title:this.api.i18n.t("Click to delete"),onActivate:()=>this.handleClick()}}}handleClick(){this.api.blocks.delete()}};Dh.isTune=!0;let Fh=class{constructor({api:t}){this.CSS={animation:"wobble"},this.api=t}render(){return{icon:Ab,title:this.api.i18n.t("Move up"),onActivate:()=>this.handleClick(),name:"move-up"}}handleClick(){const t=this.api.blocks.getCurrentBlockIndex(),n=this.api.blocks.getBlockByIndex(t),o=this.api.blocks.getBlockByIndex(t-1);if(t===0||!n||!o)throw new Error("Unable to move Block up since it is already the first");const i=n.holder,r=o.holder,s=i.getBoundingClientRect(),a=r.getBoundingClientRect();let l;a.top>0?l=Math.abs(s.top)-Math.abs(a.top):l=Math.abs(s.top)+a.height,window.scrollBy(0,-1*l),this.api.blocks.move(t-1),this.api.toolbar.toggleBlockSettings(!0)}};Fh.isTune=!0;var c0=Object.defineProperty,u0=Object.getOwnPropertyDescriptor,d0=(e,t,n,o)=>{for(var i=u0(t,n),r=e.length-1,s;r>=0;r--)(s=e[r])&&(i=s(t,n,i)||i);return i&&c0(t,n,i),i};let Vh=class extends ee{constructor(){super(...arguments),this.stubTool="stub",this.toolsAvailable=new tt,this.toolsUnavailable=new tt}get available(){return this.toolsAvailable}get unavailable(){return this.toolsUnavailable}get inlineTools(){return this.available.inlineTools}get blockTools(){return this.available.blockTools}get blockTunes(){return this.available.blockTunes}get defaultTool(){return this.blockTools.get(this.config.defaultBlock)}get internal(){return this.available.internalTools}async prepare(){if(this.validateTools(),this.config.tools=Tr({},this.internalTools,this.config.tools),!Object.prototype.hasOwnProperty.call(this.config,"tools")||Object.keys(this.config.tools).length===0)throw Error("Can't start without tools");const t=this.prepareConfig();this.factory=new l0(t,this.config,this.Editor.API);const n=this.getListOfPrepareFunctions(t);if(n.length===0)return Promise.resolve();await Lv(n,o=>{this.toolPrepareMethodSuccess(o)},o=>{this.toolPrepareMethodFallback(o)}),this.prepareBlockTools()}getAllInlineToolsSanitizeConfig(){const t={};
vendor: 2,634 bytes, line 53
53return Array.from(this.inlineTools.values()).forEach(n=>{Object.assign(t,n.sanitizeConfig)}),t}destroy(){Object.values(this.available).forEach(async t=>{de(t.reset)&&await t.reset()})}get internalTools(){return{convertTo:{class:Nh,isInternal:!0},link:{class:ca,isInternal:!0},bold:{class:aa,isInternal:!0},italic:{class:la,isInternal:!0},paragraph:{class:sa,inlineToolbar:!0,isInternal:!0},stub:{class:jh,isInternal:!0},moveUp:{class:Fh,isInternal:!0},delete:{class:Dh,isInternal:!0},moveDown:{class:Rh,isInternal:!0}}}toolPrepareMethodSuccess(t){const n=this.factory.get(t.toolName);if(n.isInline()){const o=["render"].filter(i=>!n.create()[i]);if(o.length){se(`Incorrect Inline Tool: ${n.name}. Some of required methods is not implemented %o`,"warn",o),this.toolsUnavailable.set(n.name,n);return}}this.toolsAvailable.set(n.name,n)}toolPrepareMethodFallback(t){this.toolsUnavailable.set(t.toolName,this.factory.get(t.toolName))}getListOfPrepareFunctions(t){const n=[];return Object.entries(t).forEach(([o,i])=>{n.push({function:de(i.class.prepare)?i.class.prepare:()=>{},data:{toolName:o,config:i.config}})}),n}prepareBlockTools(){Array.from(this.blockTools.values()).forEach(t=>{this.assignInlineToolsToBlockTool(t),this.assignBlockTunesToBlockTool(t)})}assignInlineToolsToBlockTool(t){if(this.config.inlineToolbar!==!1){if(t.enabledInlineTools===!0){t.inlineTools=new tt(Array.isArray(this.config.inlineToolbar)?this.config.inlineToolbar.map(n=>[n,this.inlineTools.get(n)]):Array.from(this.inlineTools.entries()));return}Array.isArray(t.enabledInlineTools)&&(t.inlineTools=new tt(["convertTo",...t.enabledInlineTools].map(n=>[n,this.inlineTools.get(n)])))}}assignBlockTunesToBlockTool(t){if(t.enabledBlockTunes!==!1){if(Array.isArray(t.enabledBlockTunes)){const n=new tt(t.enabledBlockTunes.map(o=>[o,this.blockTunes.get(o)]));t.tunes=new tt([...n,...this.blockTunes.internalTools]);return}if(Array.isArray(this.config.tunes)){const n=new tt(this.config.tunes.map(o=>[o,this.blockTunes.get(o)]));t.tunes=new tt([...n,...this.blockTunes.internalTools]);return}t.tunes=this.blockTunes.internalTools}}validateTools(){for(const t in this.config.tools)if(Object.prototype.hasOwnProperty.call(this.config.tools,t)){if(t in this.internalTools)return;const n=this.config.tools[t];if(!de(n)&&!de(n.class))throw Error(`Tool «${t}» must be a constructor function or an object with function in the «class» property`)}}prepareConfig(){const t={};for(const n in this.config.tools)Ee(this.config.tools[n])?t[n]=this.config.tools[n]:t[n]={class:this.config.tools[n]};return t}};d0([An],Vh.prototype,"getAllInlineToolsSanitizeConfig");const h0=
vendor: 29,155 bytes, lines 53-54
53`:root{--selectionColor: #e1f2ff;--inlineSelectionColor: #d4ecff;--bg-light: #eff2f5;--grayText: #707684;--color-dark: #1D202B;--color-active-icon: #388AE5;--color-gray-border: rgba(201, 201, 204, .48);--content-width: 650px;--narrow-mode-right-padding: 50px;--toolbox-buttons-size: 26px;--toolbox-buttons-size--mobile: 36px;--icon-size: 20px;--icon-size--mobile: 28px;--block-padding-vertical: .4em;--color-line-gray: #EFF0F1 }.codex-editor{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}.codex-editor .hide{display:none}.codex-editor__redactor [contenteditable]:empty:after{content:"\\feff"}@media (min-width: 651px){.codex-editor--narrow .codex-editor__redactor{margin-right:50px}}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .codex-editor__redactor{margin-left:50px;margin-right:0}}@media (min-width: 651px){.codex-editor--narrow .ce-toolbar__actions{right:-5px}}.codex-editor-copyable{position:absolute;height:1px;width:1px;top:-400%;opacity:.001}.codex-editor-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:999;pointer-events:none;overflow:hidden}.codex-editor-overlay__container{position:relative;pointer-events:auto;z-index:0}.codex-editor-overlay__rectangle{position:absolute;pointer-events:none;background-color:#2eaadc33;border:1px solid transparent}.codex-editor svg{max-height:100%}.codex-editor path{stroke:currentColor}.codex-editor ::-moz-selection{background-color:#d4ecff}.codex-editor ::selection{background-color:#d4ecff}.codex-editor--toolbox-opened [contentEditable=true][data-placeholder]:focus:before{opacity:0!important}.ce-scroll-locked{overflow:hidden}.ce-scroll-locked--hard{overflow:hidden;top:calc(-1 * var(--window-scroll-offset));position:fixed;width:100%}.ce-toolbar{position:absolute;left:0;right:0;top:0;-webkit-transition:opacity .1s ease;transition:opacity .1s ease;will-change:opacity,top;display:none}.ce-toolbar--opened{display:block}.ce-toolbar__content{max-width:650px;margin:0 auto;position:relative}.ce-toolbar__plus{color:#1d202b;cursor:pointer;width:26px;height:26px;border-radius:7px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-negative:0;flex-shrink:0}@media (max-width: 650px){.ce-toolbar__plus{width:36px;height:36px}}@media (hover: hover){.ce-toolbar__plus:hover{background-color:#eff2f5}}.ce-toolbar__plus--active{background-color:#eff2f5;-webkit-animation:bounceIn .75s 1;animation:bounceIn .75s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.ce-toolbar__plus-shortcut{opacity:.6;word-spacing:-2px;margin-top:5px}@media (max-width: 650px){.ce-toolbar__plus{position:absolute;background-color:#fff;border:1px solid #E8E8EB;-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.13);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;z-index:2;position:static}.ce-toolbar__plus--left-oriented:before{left:15px;margin-left:0}.ce-toolbar__plus--right-oriented:before{left:auto;right:15px;margin-left:0}}.ce-toolbar__actions{position:absolute;right:100%;opacity:0;display:-webkit-box;display:-ms-flexbox;display:flex;padding-right:5px}.ce-toolbar__actions--opened{opacity:1}@media (max-width: 650px){.ce-toolbar__actions{right:auto}}.ce-toolbar__settings-btn{color:#1d202b;width:26px;height:26px;border-radius:7px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;margin-left:3px;cursor:pointer;user-select:none}@media (max-width: 650px){.ce-toolbar__settings-btn{width:36px;height:36px}}@media (hover: hover){.ce-toolbar__settings-btn:hover{background-color:#eff2f5}}.ce-toolbar__settings-btn--active{background-color:#eff2f5;-webkit-animation:bounceIn .75s 1;animation:bounceIn .75s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (min-width: 651px){.ce-toolbar__settings-btn{width:24px}}.ce-toolbar__settings-btn--hidden{display:none}@media (max-width: 650px){.ce-toolbar__settings-btn{position:absolute;background-color:#fff;border:1px solid #E8E8EB;-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.13);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;z-index:2;position:static}.ce-toolbar__settings-btn--left-oriented:before{left:15px;margin-left:0}.ce-toolbar__settings-btn--right-oriented:before{left:auto;right:15px;margin-left:0}}.ce-toolbar__plus svg,.ce-toolbar__settings-btn svg{width:24px;height:24px}@media (min-width: 651px){.codex-editor--narrow .ce-toolbar__plus{left:5px}}@media (min-width: 651px){.codex-editor--narrow .ce-toolbox .ce-popover{right:0;left:auto;left:initial}}.ce-inline-toolbar{--y-offset: 8px;--color-background-icon-active: rgba(56, 138, 229, .1);--color-text-icon-active: #388AE5;--color-text-primary: black;position:absolute;visibility:hidden;-webkit-transition:opacity .25s ease;transition:opacity .25s ease;will-change:opacity,left,top;top:0;left:0;z-index:3;opacity:1;visibility:visible}.ce-inline-toolbar [hidden]{display:none!important}.ce-inline-toolbar__toggler-and-button-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;padding:0 6px}.ce-inline-toolbar__buttons{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-inline-toolbar__dropdown{display:-webkit-box;display:-ms-flexbox;display:flex;padding:6px;margin:0 6px 0 -6px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-right:1px solid rgba(201,201,204,.48);-webkit-box-sizing:border-box;box-sizing:border-box}@media (hover: hover){.ce-inline-toolbar__dropdown:hover{background:#eff2f5}}.ce-inline-toolbar__dropdown--hidden{display:none}.ce-inline-toolbar__dropdown-content,.ce-inline-toolbar__dropdown-arrow{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-inline-toolbar__dropdown-content svg,.ce-inline-toolbar__dropdown-arrow svg{width:20px;height:20px}.ce-inline-toolbar__shortcut{opacity:.6;word-spacing:-3px;margin-top:3px}.ce-inline-tool{color:var(--color-text-primary);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:0;border-radius:4px;line-height:normal;height:100%;padding:0;width:28px;background-color:transparent;cursor:pointer}@media (max-width: 650px){.ce-inline-tool{width:36px;height:36px}}@media (hover: hover){.ce-inline-tool:hover{background-color:#f8f8f8}}.ce-inline-tool svg{display:block;width:20px;height:20px}@media (max-width: 650px){.ce-inline-tool svg{width:28px;height:28px}}.ce-inline-tool--link .icon--unlink,.ce-inline-tool--unlink .icon--link{display:none}.ce-inline-tool--unlink .icon--unlink{display:inline-block;margin-bottom:-1px}.ce-inline-tool-input{background:#F8F8F8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;font-size:14px;line-height:22px;outline:none;margin:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:none;font-weight:500;-webkit-appearance:none;font-family:inherit}@media (max-width: 650px){.ce-inline-tool-input{font-size:15px;font-weight:500}}.ce-inline-tool-input::-webkit-input-placeholder{color:#707684}.ce-inline-tool-input::-moz-placeholder{color:#707684}.ce-inline-tool-input:-ms-input-placeholder{color:#707684}.ce-inline-tool-input::-ms-input-placeholder{color:#707684}.ce-inline-tool-input::placeholder{color:#707684}.ce-inline-tool-input--showed{display:block}.ce-inline-tool--active{background:var(--color-background-icon-active);color:var(--color-text-icon-active)}@-webkit-keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.ce-block{-webkit-animation:fade-in .3s ease;animation:fade-in .3s ease;-webkit-animation-fill-mode:none;animation-fill-mode:none;-webkit-animation-fill-mode:initial;animation-fill-mode:initial}.ce-block:first-of-type{margin-top:0}.ce-block--selected .ce-block__content{background:#e1f2ff}.ce-block--selected .ce-block__content [contenteditable]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ce-block--selected .ce-block__content img,.ce-block--selected .ce-block__content .ce-stub{opacity:.55}.ce-block--stretched .ce-block__content{max-width:none}.ce-block__content{position:relative;max-width:650px;margin:0 auto;-webkit-transition:background-color .15s ease;transition:background-color .15s ease}.ce-block--drop-target .ce-block__content:before{content:"";position:absolute;top:100%;left:-20px;margin-top:-1px;height:8px;width:8px;border:solid #388AE5;border-width:1px 1px 0 0;-webkit-transform-origin:right;transform-origin:right;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ce-block--drop-target .ce-block__content:after{content:"";position:absolute;top:100%;height:1px;width:100%;color:#388ae5;background:repeating-linear-gradient(90deg,#388AE5,#388AE5 1px,#fff 1px,#fff 6px)}.ce-block a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.ce-block b{font-weight:700}.ce-block i{font-style:italic}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}20%{-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}60%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}20%{-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}60%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@-webkit-keyframes selectionBounce{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}50%{-webkit-transform:scale3d(1.01,1.01,1.01);transform:scale3d(1.01,1.01,1.01)}70%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes selectionBounce{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}50%{-webkit-transform:scale3d(1.01,1.01,1.01);transform:scale3d(1.01,1.01,1.01)}70%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@-webkit-keyframes buttonClicked{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.95,.95,.95);transform:scale3d(.95,.95,.95)}60%{-webkit-transform:scale3d(1.02,1.02,1.02);transform:scale3d(1.02,1.02,1.02)}80%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes buttonClicked{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.95,.95,.95);transform:scale3d(.95,.95,.95)}60%{-webkit-transform:scale3d(1.02,1.02,1.02);transform:scale3d(1.02,1.02,1.02)}80%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.cdx-block{padding:.4em 0}.cdx-block::-webkit-input-placeholder{line-height:normal!important}.cdx-input{border:1px solid rgba(201,201,204,.48);-webkit-box-shadow:inset 0 1px 2px 0 rgba(35,44,72,.06);box-shadow:inset 0 1px 2px #232c480f;border-radius:3px;padding:10px 12px;outline:none;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.cdx-input[data-placeholder]:before{position:static!important}.cdx-input[data-placeholder]:before{display:inline-block;width:0;white-space:nowrap;pointer-events:none}.cdx-settings-button{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:3px;cursor:pointer;border:0;outline:none;background-color:transparent;vertical-align:bottom;color:inherit;margin:0;min-width:26px;min-height:26px}.cdx-settings-button--focused{background:rgba(34,186,255,.08)!important}.cdx-settings-button--focused{-webkit-box-shadow:inset 0 0 0px 1px rgba(7,161,227,.08);box-shadow:inset 0 0 0 1px #07a1e314}.cdx-settings-button--focused-animated{-webkit-animation-name:buttonClicked;animation-name:buttonClicked;-webkit-animation-duration:.25s;animation-duration:.25s}.cdx-settings-button--active{color:#388ae5}.cdx-settings-button svg{width:auto;height:auto}@media (max-width: 650px){.cdx-settings-button svg{width:28px;height:28px}}@media (max-width: 650px){.cdx-settings-button{width:36px;height:36px;border-radius:8px}}@media (hover: hover){.cdx-settings-button:hover{background-color:#eff2f5}}.cdx-loader{position:relative;border:1px solid rgba(201,201,204,.48)}.cdx-loader:before{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-11px 0 0 -11px;border:2px solid rgba(201,201,204,.48);border-left-color:#388ae5;border-radius:50%;-webkit-animation:cdxRotation 1.2s infinite linear;animation:cdxRotation 1.2s infinite linear}@-webkit-keyframes cdxRotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes cdxRotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.cdx-button{padding:13px;border-radius:3px;border:1px solid rgba(201,201,204,.48);font-size:14.9px;background:#fff;-webkit-box-shadow:0 2px 2px 0 rgba(18,30,57,.04);box-shadow:0 2px 2px #121e390a;color:#707684;text-align:center;cursor:pointer}@media (hover: hover){.cdx-button:hover{background:#FBFCFE;-webkit-box-shadow:0 1px 3px 0 rgba(18,30,57,.08);box-shadow:0 1px 3px #121e3914}}.cdx-button svg{height:20px;margin-right:.2em;margin-top:-2px}.ce-stub{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:12px 18px;margin:10px 0;border-radius:10px;background:#eff2f5;border:1px solid #EFF0F1;color:#707684;font-size:14px}.ce-stub svg{width:20px;height:20px}.ce-stub__info{margin-left:14px}.ce-stub__title{font-weight:500;text-transform:capitalize}.codex-editor.codex-editor--rtl{direction:rtl}.codex-editor.codex-editor--rtl .cdx-list{padding-left:0;padding-right:40px}.codex-editor.codex-editor--rtl .ce-toolbar__plus{right:-26px;left:auto}.codex-editor.codex-editor--rtl .ce-toolbar__actions{right:auto;left:-26px}@media (max-width: 650px){.codex-editor.codex-editor--rtl .ce-toolbar__actions{margin-left:0;margin-right:auto;padding-right:0;padding-left:10px}}.codex-editor.codex-editor--rtl .ce-settings{left:5px;right:auto}.codex-editor.codex-editor--rtl .ce-settings:before{right:auto;left:25px}.codex-editor.codex-editor--rtl .ce-settings__button:not(:nth-child(3n+3)){margin-left:3px;margin-right:0}.codex-editor.codex-editor--rtl .ce-conversion-tool__icon{margin-right:0;margin-left:10px}.codex-editor.codex-editor--rtl .ce-inline-toolbar__dropdown{border-right:0px solid transparent;border-left:1px solid rgba(201,201,204,.48);margin:0 -6px 0 6px}.codex-editor.codex-editor--rtl .ce-inline-toolbar__dropdown .icon--toggler-down{margin-left:0;margin-right:4px}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .ce-toolbar__plus{left:0;right:5px}}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .ce-toolbar__actions{left:-5px}}.cdx-search-field{--icon-margin-right: 10px;background:#F8F8F8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:2px;display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto}.cdx-search-field__icon{width:26px;height:26px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:var(--icon-margin-right)}.cdx-search-field__icon svg{width:20px;height:20px;color:#707684}.cdx-search-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;padding:0;line-height:22px;min-width:calc(100% - 26px - var(--icon-margin-right))}.cdx-search-field__input::-webkit-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::-moz-placeholder{color:#707684;font-weight:500}.cdx-search-field__input:-ms-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::-ms-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::placeholder{color:#707684;font-weight:500}.ce-popover{--border-radius: 6px;--width: 200px;--max-height: 270px;--padding: 6px;--offset-from-target: 8px;--color-border: #EFF0F1;--color-shadow: rgba(13, 20, 33, .1);--color-background: white;--color-text-primary: black;--color-text-secondary: #707684;--color-border-icon: rgba(201, 201, 204, .48);--color-border-icon-disabled: #EFF0F1;--color-text-icon-active: #388AE5;--color-background-icon-active: rgba(56, 138, 229, .1);--color-background-item-focus: rgba(34, 186, 255, .08);--color-shadow-item-focus: rgba(7, 161, 227, .08);--color-background-item-hover: #F8F8F8;--color-background-item-confirm: #E24A4A;--color-background-item-confirm-hover: #CE4343;--popover-top: calc(100% + var(--offset-from-target));--popover-left: 0;--nested-popover-overlap: 4px;--icon-size: 20px;--item-padding: 3px;--item-height: calc(var(--icon-size) + 2 * var(--item-padding))}.ce-popover__container{min-width:var(--width);width:var(--width);max-height:var(--max-height);border-radius:var(--border-radius);overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0px 3px 15px -3px var(--color-shadow);box-shadow:0 3px 15px -3px var(--color-shadow);position:absolute;left:var(--popover-left);top:var(--popover-top);background:var(--color-background);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;z-index:4;opacity:0;max-height:0;pointer-events:none;padding:0;border:none}.ce-popover--opened>.ce-popover__container{opacity:1;padding:var(--padding);max-height:var(--max-height);pointer-events:auto;-webkit-animation:panelShowing .1s ease;animation:panelShowing .1s ease;border:1px solid var(--color-border)}@media (max-width: 650px){.ce-popover--opened>.ce-popover__container{-webkit-animation:panelShowingMobile .25s ease;animation:panelShowingMobile .25s ease}}.ce-popover--open-top .ce-popover__container{--popover-top: calc(-1 * (var(--offset-from-target) + var(--popover-height)))}.ce-popover--open-left .ce-popover__container{--popover-left: calc(-1 * var(--width) + 100%)}.ce-popover__items{overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:contain}@media (max-width: 650px){.ce-popover__overlay{position:fixed;top:0;bottom:0;left:0;right:0;background:#1D202B;z-index:3;opacity:.5;-webkit-transition:opacity .12s ease-in;transition:opacity .12s ease-in;will-change:opacity;visibility:visible}}.ce-popover__overlay--hidden{display:none}@media (max-width: 650px){.ce-popover .ce-popover__container{--offset: 5px;position:fixed;max-width:none;min-width:calc(100% - var(--offset) * 2);left:var(--offset);right:var(--offset);bottom:calc(var(--offset) + env(safe-area-inset-bottom));top:auto;border-radius:10px}}.ce-popover__search{margin-bottom:5px}.ce-popover__nothing-found-message{color:#707684;display:none;cursor:default;padding:3px;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ce-popover__nothing-found-message--displayed{display:block}.ce-popover--nested .ce-popover__container{--popover-left: calc(var(--nesting-level) * (var(--width) - var(--nested-popover-overlap)));top:calc(var(--trigger-item-top) - var(--nested-popover-overlap));position:absolute}.ce-popover--open-top.ce-popover--nested .ce-popover__container{top:calc(var(--trigger-item-top) - var(--popover-height) + var(--item-height) + var(--offset-from-target) + var(--nested-popover-overlap))}.ce-popover--open-left .ce-popover--nested .ce-popover__container{--popover-left: calc(-1 * (var(--nesting-level) + 1) * var(--width) + 100%)}.ce-popover-item-separator{padding:4px 3px}.ce-popover-item-separator--hidden{display:none}.ce-popover-item-separator__line{height:1px;background:var(--color-border);width:100%}.ce-popover-item-html--hidden{display:none}.ce-popover-item{--border-radius: 6px;border-radius:var(--border-radius);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:var(--item-padding);color:var(--color-text-primary);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;background:transparent}@media (max-width: 650px){.ce-popover-item{padding:4px}}.ce-popover-item:not(:last-of-type){margin-bottom:1px}.ce-popover-item__icon{width:26px;height:26px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ce-popover-item__icon svg{width:20px;height:20px}@media (max-width: 650px){.ce-popover-item__icon{width:36px;height:36px;border-radius:8px}.ce-popover-item__icon svg{width:28px;height:28px}}.ce-popover-item__icon--tool{margin-right:4px}.ce-popover-item__title{font-size:14px;line-height:20px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:auto}@media (max-width: 650px){.ce-popover-item__title{font-size:16px}}.ce-popover-item__secondary-title{color:var(--color-text-secondary);font-size:12px;white-space:nowrap;letter-spacing:-.1em;padding-right:5px;opacity:.6}@media (max-width: 650px){.ce-popover-item__secondary-title{display:none}}.ce-popover-item--active{background:var(--color-background-icon-active);color:var(--color-text-icon-active)}.ce-popover-item--disabled{color:var(--color-text-secondary);cursor:default;pointer-events:none}.ce-popover-item--focused:not(.ce-popover-item--no-focus){background:var(--color-background-item-focus)!important}.ce-popover-item--hidden{display:none}@media (hover: hover){.ce-popover-item:hover{cursor:pointer}.ce-popover-item:hover:not(.ce-popover-item--no-hover){background-color:var(--color-background-item-hover)}}.ce-popover-item--confirmation{background:var(--color-background-item-confirm)}.ce-popover-item--confirmation .ce-popover-item__title,.ce-popover-item--confirmation .ce-popover-item__icon{color:#fff}@media (hover: hover){.ce-popover-item--confirmation:not(.ce-popover-item--no-hover):hover{background:var(--color-background-item-confirm-hover)}}.ce-popover-item--confirmation:not(.ce-popover-item--no-focus).ce-popover-item--focused{background:var(--color-background-item-confirm-hover)!important}@-webkit-keyframes panelShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes panelShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes panelShowingMobile{0%{opacity:0;-webkit-transform:translateY(14px) scale(.98);transform:translateY(14px) scale(.98)}70%{opacity:1;-webkit-transform:translateY(-4px);transform:translateY(-4px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes panelShowingMobile{0%{opacity:0;-webkit-transform:translateY(14px) scale(.98);transform:translateY(14px) scale(.98)}70%{opacity:1;-webkit-transform:translateY(-4px);transform:translateY(-4px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble;-webkit-animation-duration:.4s;animation-duration:.4s}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-9%,0,0);transform:translate3d(-9%,0,0)}30%{-webkit-transform:translate3d(9%,0,0);transform:translate3d(9%,0,0)}45%{-webkit-transform:translate3d(-4%,0,0);transform:translate3d(-4%,0,0)}60%{-webkit-transform:translate3d(4%,0,0);transform:translate3d(4%,0,0)}75%{-webkit-transform:translate3d(-1%,0,0);transform:translate3d(-1%,0,0)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-9%,0,0);transform:translate3d(-9%,0,0)}30%{-webkit-transform:translate3d(9%,0,0);transform:translate3d(9%,0,0)}45%{-webkit-transform:translate3d(-4%,0,0);transform:translate3d(-4%,0,0)}60%{-webkit-transform:translate3d(4%,0,0);transform:translate3d(4%,0,0)}75%{-webkit-transform:translate3d(-1%,0,0);transform:translate3d(-1%,0,0)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.ce-popover-header{margin-bottom:8px;margin-top:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ce-popover-header__text{font-size:18px;font-weight:600}.ce-popover-header__back-button{border:0;background:transparent;width:36px;height:36px;color:var(--color-text-primary)}.ce-popover-header__back-button svg{display:block;width:28px;height:28px}.ce-popover--inline{--height: 38px;--height-mobile: 46px;--container-padding: 4px;position:relative}.ce-popover--inline .ce-popover__custom-content{margin-bottom:0}.ce-popover--inline .ce-popover__items{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-popover--inline .ce-popover__container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding:var(--container-padding);height:var(--height);top:0;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content;width:-webkit-max-content;width:-moz-max-content;width:max-content;-webkit-animation:none;animation:none}@media (max-width: 650px){.ce-popover--inline .ce-popover__container{height:var(--height-mobile);position:absolute}}.ce-popover--inline .ce-popover-item-separator{padding:0 4px}.ce-popover--inline .ce-popover-item-separator__line{height:100%;width:1px}.ce-popover--inline .ce-popover-item{border-radius:4px;padding:4px}.ce-popover--inline .ce-popover-item__icon--tool{-webkit-box-shadow:none;box-shadow:none;background:transparent;margin-right:0}.ce-popover--inline .ce-popover-item__icon{width:auto;width:initial;height:auto;height:initial}.ce-popover--inline .ce-popover-item__icon svg{width:20px;height:20px}@media (max-width: 650px){.ce-popover--inline .ce-popover-item__icon svg{width:28px;height:28px}}.ce-popover--inline .ce-popover-item:not(:last-of-type){margin-bottom:0;margin-bottom:initial}.ce-popover--inline .ce-popover-item-html{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ce-popover--inline .ce-popover-item__icon--chevron-right{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ce-popover--inline .ce-popover--nested-level-1 .ce-popover__container{--offset: 3px;left:0;top:calc(var(--height) + var(--offset))}@media (max-width: 650px){.ce-popover--inline .ce-popover--nested-level-1 .ce-popover__container{top:calc(var(--height-mobile) + var(--offset))}}.ce-popover--inline .ce-popover--nested .ce-popover__container{min-width:var(--width);width:var(--width);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:6px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ce-popover--inline .ce-popover--nested .ce-popover__items{display:block;width:100%}.ce-popover--inline .ce-popover--nested .ce-popover-item{border-radius:6px;padding:3px}@media (max-width: 650px){.ce-popover--inline .ce-popover--nested .ce-popover-item{padding:4px}}.ce-popover--inline .ce-popover--nested .ce-popover-item__icon--tool{margin-right:4px}.ce-popover--inline .ce-popover--nested .ce-popover-item__icon{width:26px;height:26px}.ce-popover--inline .ce-popover--nested .ce-popover-item-separator{padding:4px 3px}.ce-popover--inline .ce-popover--nested .ce-popover-item-separator__line{width:100%;height:1px}.codex-editor [data-placeholder]:empty:before,.codex-editor [data-placeholder][data-empty=true]:before{pointer-events:none;color:#707684;cursor:text;content:attr(data-placeholder)}.codex-editor [data-placeholder-active]:empty:before,.codex-editor [data-placeholder-active][data-empty=true]:before{pointer-events:none;color:#707684;cursor:text}.codex-editor [data-placeholder-active]:empty:focus:before,.codex-editor [data-placeholder-active][data-empty=true]:focus:before{content:attr(data-placeholder-active)} 54`;
vendor: 12,890 bytes, lines 54-60
54class f0 extends ee{constructor(){super(...arguments),this.isMobile=!1,this.contentRectCache=null,this.resizeDebouncer=Pc(()=>{this.windowResize()},200),this.selectionChangeDebounced=Pc(()=>{this.selectionChanged()},Kk),this.documentTouchedListener=t=>{this.documentTouched(t)}}get CSS(){return{editorWrapper:"codex-editor",editorWrapperNarrow:"codex-editor--narrow",editorZone:"codex-editor__redactor",editorZoneHidden:"codex-editor__redactor--hidden",editorEmpty:"codex-editor--empty",editorRtlFix:"codex-editor--rtl"}}get contentRect(){if(this.contentRectCache!==null)return this.contentRectCache;const t=this.nodes.wrapper.querySelector(`.${mt.CSS.content}`);return t?(this.contentRectCache=t.getBoundingClientRect(),this.contentRectCache):{width:650,left:0,right:0}}async prepare(){this.setIsMobile(),this.make(),this.loadStyles()}toggleReadOnly(t){t?this.unbindReadOnlySensitiveListeners():window.requestIdleCallback(()=>{this.bindReadOnlySensitiveListeners()},{timeout:2e3})}checkEmptiness(){const{BlockManager:t}=this.Editor;this.nodes.wrapper.classList.toggle(this.CSS.editorEmpty,t.isEditorEmpty)}get someToolbarOpened(){const{Toolbar:t,BlockSettings:n,InlineToolbar:o}=this.Editor;return!!(n.opened||o.opened||t.toolbox.opened)}get someFlipperButtonFocused(){return this.Editor.Toolbar.toolbox.hasFocus()?!0:Object.entries(this.Editor).filter(([t,n])=>n.flipper instanceof Xo).some(([t,n])=>n.flipper.hasFocus())}destroy(){this.nodes.holder.innerHTML="",this.unbindReadOnlyInsensitiveListeners()}closeAllToolbars(){const{Toolbar:t,BlockSettings:n,InlineToolbar:o}=this.Editor;n.close(),o.close(),t.toolbox.close()}setIsMobile(){const t=window.innerWidth<Md;t!==this.isMobile&&this.eventsDispatcher.emit(Zn,{isEnabled:this.isMobile}),this.isMobile=t}make(){this.nodes.holder=B.getHolder(this.config.holder),this.nodes.wrapper=B.make("div",[this.CSS.editorWrapper,...this.isRtl?[this.CSS.editorRtlFix]:[]]),this.nodes.redactor=B.make("div",this.CSS.editorZone),this.nodes.holder.offsetWidth<this.contentRect.width&&this.nodes.wrapper.classList.add(this.CSS.editorWrapperNarrow),this.nodes.redactor.style.paddingBottom=this.config.minHeight+"px",this.nodes.wrapper.appendChild(this.nodes.redactor),this.nodes.holder.appendChild(this.nodes.wrapper),this.bindReadOnlyInsensitiveListeners()}loadStyles(){const t="editor-js-styles";if(B.get(t))return;const n=B.make("style",null,{id:t,textContent:h0.toString()});this.config.style&&!Ge(this.config.style)&&this.config.style.nonce&&n.setAttribute("nonce",this.config.style.nonce),B.prepend(document.head,n)}bindReadOnlyInsensitiveListeners(){this.listeners.on(document,"selectionchange",this.selectionChangeDebounced),this.listeners.on(window,"resize",this.resizeDebouncer,{passive:!0}),this.listeners.on(this.nodes.redactor,"mousedown",this.documentTouchedListener,{capture:!0,passive:!0}),this.listeners.on(this.nodes.redactor,"touchstart",this.documentTouchedListener,{capture:!0,passive:!0})}unbindReadOnlyInsensitiveListeners(){this.listeners.off(document,"selectionchange",this.selectionChangeDebounced),this.listeners.off(window,"resize",this.resizeDebouncer),this.listeners.off(this.nodes.redactor,"mousedown",this.documentTouchedListener),this.listeners.off(this.nodes.redactor,"touchstart",this.documentTouchedListener)}bindReadOnlySensitiveListeners(){this.readOnlyMutableListeners.on(this.nodes.redactor,"click",t=>{this.redactorClicked(t)},!1),this.readOnlyMutableListeners.on(document,"keydown",t=>{this.documentKeydown(t)},!0),this.readOnlyMutableListeners.on(document,"mousedown",t=>{this.documentClicked(t)},!0),this.watchBlockHoveredEvents(),this.enableInputsEmptyMark()}watchBlockHoveredEvents(){let t;this.readOnlyMutableListeners.on(this.nodes.redactor,"mousemove",Er(n=>{const o=n.target.closest(".ce-block");this.Editor.BlockSelection.anyBlockSelected||o&&t!==o&&(t=o,this.eventsDispatcher.emit(rh,{block:this.Editor.BlockManager.getBlockByChildNode(o)}))},20),{passive:!0})}unbindReadOnlySensitiveListeners(){this.readOnlyMutableListeners.clearAll()}windowResize(){this.contentRectCache=null,this.setIsMobile()}documentKeydown(t){switch(t.keyCode){case K.ENTER:this.enterPressed(t);break;case K.BACKSPACE:case K.DELETE:this.backspacePressed(t);break;case K.ESC:this.escapePressed(t);break;default:this.defaultBehaviour(t);break}}defaultBehaviour(t){const{currentBlock:n}=this.Editor.BlockManager,o=t.target.closest(`.${this.CSS.editorWrapper}`),i=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;if(n!==void 0&&o===null){this.Editor.BlockEvents.keydown(t);return}o||n&&i||(this.Editor.BlockManager.unsetCurrentBlock(),this.Editor.Toolbar.close())}backspacePressed(t){const{BlockManager:n,BlockSelection:o,Caret:i}=this.Editor;if(o.anyBlockSelected&&!U.isSelectionExists){const r=n.removeSelectedBlocks(),s=n.insertDefaultBlockAtIndex(r,!0);i.setToBlock(s,i.positions.START),o.clearSelection(t),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()}}escapePressed(t){this.Editor.BlockSelection.clearSelection(t),this.Editor.Toolbar.toolbox.opened?(this.Editor.Toolbar.toolbox.close(),this.Editor.Caret.setToBlock(this.Editor.BlockManager.currentBlock,this.Editor.Caret.positions.END)):this.Editor.BlockSettings.opened?this.Editor.BlockSettings.close():this.Editor.InlineToolbar.opened?this.Editor.InlineToolbar.close():this.Editor.Toolbar.close()}enterPressed(t){const{BlockManager:n,BlockSelection:o}=this.Editor;if(this.someToolbarOpened)return;const i=n.currentBlockIndex>=0;if(o.anyBlockSelected&&!U.isSelectionExists){o.clearSelection(t),t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation();return}if(!this.someToolbarOpened&&i&&t.target.tagName==="BODY"){const r=this.Editor.BlockManager.insert();t.preventDefault(),this.Editor.Caret.setToBlock(r),this.Editor.Toolbar.moveAndOpen(r)}this.Editor.BlockSelection.clearSelection(t)}documentClicked(t){var n,o;if(!t.isTrusted)return;const i=t.target;this.nodes.holder.contains(i)||U.isAtEditor||(this.Editor.BlockManager.unsetCurrentBlock(),this.Editor.Toolbar.close());const r=(n=this.Editor.BlockSettings.nodes.wrapper)==null?void 0:n.contains(i),s=(o=this.Editor.Toolbar.nodes.settingsToggler)==null?void 0:o.contains(i),a=r||s;if(this.Editor.BlockSettings.opened&&!a){this.Editor.BlockSettings.close();const l=this.Editor.BlockManager.getBlockByChildNode(i);this.Editor.Toolbar.moveAndOpen(l)}this.Editor.BlockSelection.clearSelection(t)}documentTouched(t){let n=t.target;if(n===this.nodes.redactor){const o=t instanceof MouseEvent?t.clientX:t.touches[0].clientX,i=t instanceof MouseEvent?t.clientY:t.touches[0].clientY;n=document.elementFromPoint(o,i)}try{this.Editor.BlockManager.setCurrentBlockByChildNode(n)}catch{this.Editor.RectangleSelection.isRectActivated()||this.Editor.Caret.setToTheLastBlock()}this.Editor.ReadOnly.isEnabled||this.Editor.Toolbar.moveAndOpen()}redactorClicked(t){if(!U.isCollapsed)return;const n=t.target,o=t.metaKey||t.ctrlKey,i=B.getClosestAnchor(n);if(i&&o){t.stopImmediatePropagation(),t.stopPropagation();const r=i.getAttribute("href"),s=Rv(r);Fv(s);return}this.processBottomZoneClick(t)}processBottomZoneClick(t){const n=this.Editor.BlockManager.getBlockByIndex(-1),o=B.offset(n.holder).bottom,i=t.pageY,{BlockSelection:r}=this.Editor;if(t.target instanceof Element&&t.target.isEqualNode(this.nodes.redactor)&&!r.anyBlockSelected&&o<i){t.stopImmediatePropagation(),t.stopPropagation();const{BlockManager:s,Caret:a,Toolbar:l}=this.Editor;(!s.lastBlock.tool.isDefault||!s.lastBlock.isEmpty)&&s.insertAtEnd(),a.setToTheLastBlock(),l.moveAndOpen(s.lastBlock)}}selectionChanged(){const{CrossBlockSelection:t,BlockSelection:n}=this.Editor,o=U.anchorElement;if(t.isCrossBlockSelectionStarted&&n.anyBlockSelected&&U.get().removeAllRanges(),!o){U.range||this.Editor.InlineToolbar.close();return}const i=o.closest(`.${mt.CSS.content}`);(i===null||i.closest(`.${U.CSS.editorWrapper}`)!==this.nodes.wrapper)&&(this.Editor.InlineToolbar.containsNode(o)||this.Editor.InlineToolbar.close(),o.dataset.inlineToolbar!=="true")||(this.Editor.BlockManager.currentBlock||this.Editor.BlockManager.setCurrentBlockByChildNode(o),this.Editor.InlineToolbar.tryToShow(!0))}enableInputsEmptyMark(){function t(n){const o=n.target;Ad(o)}this.readOnlyMutableListeners.on(this.nodes.wrapper,"input",t),this.readOnlyMutableListeners.on(this.nodes.wrapper,"focusin",t),this.readOnlyMutableListeners.on(this.nodes.wrapper,"focusout",t)}}const p0={BlocksAPI:Zv,CaretAPI:Qv,EventsAPI:eb,I18nAPI:tb,API:nb,InlineToolbarAPI:ob,ListenersAPI:ib,NotifierAPI:lb,ReadOnlyAPI:cb,SanitizerAPI:gb,SaverAPI:vb,SelectionAPI:bb,ToolsAPI:yb,StylesAPI:kb,ToolbarAPI:wb,TooltipAPI:Tb,UiAPI:_b,BlockSettings:Qb,Toolbar:ay,InlineToolbar:ly,BlockEvents:Fk,BlockManager:Uk,BlockSelection:zk,Caret:Wk,CrossBlockSelection:qk,DragNDrop:Gk,ModificationsObserver:Xk,Paste:Zk,ReadOnly:Jk,RectangleSelection:Qk,Renderer:e0,Saver:t0,Tools:Vh,UI:f0};class m0{constructor(t){this.moduleInstances={},this.eventsDispatcher=new ao;let n,o;this.isReady=new Promise((i,r)=>{n=i,o=r}),Promise.resolve().then(async()=>{this.configuration=t,this.validate(),this.init(),await this.start(),await this.render();const{BlockManager:i,Caret:r,UI:s,ModificationsObserver:a}=this.moduleInstances;s.checkEmptiness(),a.enable(),this.configuration.autofocus===!0&&this.configuration.readOnly!==!0&&r.setToBlock(i.blocks[0],r.positions.START),n()}).catch(i=>{se(`Editor.js is not ready because of ${i}`,"error"),o(i)})}set configuration(t){var n,o;Ee(t)?this.config={...t}:this.config={holder:t},_r(!!this.config.holderId,"config.holderId","config.holder"),this.config.holderId&&!this.config.holder&&(this.config.holder=this.config.holderId,this.config.holderId=null),this.config.holder==null&&(this.config.holder="editorjs"),this.config.logLevel||(this.config.logLevel=Od.VERBOSE),Mv(this.config.logLevel),_r(!!this.config.initialBlock,"config.initialBlock","config.defaultBlock"),this.config.defaultBlock=this.config.defaultBlock||this.config.initialBlock||"paragraph",this.config.minHeight=this.config.minHeight!==void 0?this.config.minHeight:300;const i={type:this.config.defaultBlock,data:{}};this.config.placeholder=this.config.placeholder||!1,this.config.sanitizer=this.config.sanitizer||{p:!0,b:!0,a:!0},this.config.hideToolbar=this.config.hideToolbar?this.config.hideToolbar:!1,this.config.tools=this.config.tools||{},this.config.i18n=this.config.i18n||{},this.config.data=this.config.data||{blocks:[]},this.config.onReady=this.config.onReady||(()=>{}),this.config.onChange=this.config.onChange||(()=>{}),this.config.inlineToolbar=this.config.inlineToolbar!==void 0?this.config.inlineToolbar:!0,(Ge(this.config.data)||!this.config.data.blocks||this.config.data.blocks.length===0)&&(this.config.data={blocks:[i]}),this.config.readOnly=this.config.readOnly||!1,(n=this.config.i18n)!=null&&n.messages&&Me.setDictionary(this.config.i18n.messages),this.config.i18n.direction=((o=this.config.i18n)==null?void 0:o.direction)||"ltr"}get configuration(){return this.config}validate(){const{holderId:t,holder:n}=this.config;if(t&&n)throw Error("«holderId» and «holder» param can't assign at the same time.");if(vt(n)&&!B.get(n))throw Error(`element with ID «${n}» is missing. Pass correct holder's ID.`);if(n&&Ee(n)&&!B.isElement(n))throw Error("«holder» value must be an Element node")}init(){this.constructModules(),this.configureModules()}async start(){await["Tools","UI","BlockManager","Paste","BlockSelection","RectangleSelection","CrossBlockSelection","ReadOnly"].reduce((t,n)=>t.then(async()=>{try{await this.moduleInstances[n].prepare()}catch(o){if(o instanceof jd)throw new Error(o.message);se(`Module ${n} was skipped because of %o`,"warn",o)}}),Promise.resolve())}render(){return this.moduleInstances.Renderer.render(this.config.data.blocks)}constructModules(){Object.entries(p0).forEach(([t,n])=>{try{this.moduleInstances[t]=new n({config:this.configuration,eventsDispatcher:this.eventsDispatcher})}catch(o){se("[constructModules]",`Module ${t} skipped because`,"error",o)}})}configureModules(){for(const t in this.moduleInstances)Object.prototype.hasOwnProperty.call(this.moduleInstances,t)&&(this.moduleInstances[t].state=this.getModulesDiff(t))}getModulesDiff(t){const n={};for(const o in this.moduleInstances)o!==t&&(n[o]=this.moduleInstances[o]);return n}}/** 55 * Editor.js 56 * 57 * @license Apache-2.0 58 * @see Editor.js <https://editorjs.io> 59 * @author CodeX Team <https://codex.so> 60 */class g0{static get version(){return"2.31.6"}constructor(t){let n=()=>{};Ee(t)&&de(t.onReady)&&(n=t.onReady);const o=new m0(t);this.isReady=o.isReady.then(()=>{this.exportAPI(o),n()})}exportAPI(t){const n=["configuration"],o=()=>{Object.values(t.moduleInstances).forEach(i=>{de(i.destroy)&&i.destroy(),i.listeners.removeAll()}),Eb(),t=null;for(const i in this)Object.prototype.hasOwnProperty.call(this,i)&&delete this[i];Object.setPrototypeOf(this,null)};n.forEach(i=>{this[i]=t[i]}
60),this.destroy=o,Object.setPrototypeOf(this,t.moduleInstances.API.methods),delete this.exportAPI,Object.entries({blocks:{clear:"clear",render:"render"},caret:{focus:"focus"},events:{on:"on",off:"off",emit:"emit"},saver:{save:"save"}}).forEach(([i,r])=>{Object.entries(r).forEach(([s,a])=>{this[a]=t.moduleInstances.API.methods[i][s]})})}}(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.ce-delimiter{line-height:1.6em;width:100%;text-align:center}.ce-delimiter:before{display:inline-block;content:"***";font-size:30px;line-height:65px;height:30px;letter-spacing:.2em}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const v0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="6" x2="10" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="14" x2="18" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>';/** 61 * Delimiter Block for the Editor.js. 62 * 63 * @author CodeX ([email protected]) 64 * @copyright CodeX 2018 65 * @license The MIT License (MIT) 66 * @version 2.0.0 67 */let b0=class{static get isReadOnlySupported(){return!0}static get contentless(){return!0}constructor({data:t,config:n,api:o}){this.api=o,this._CSS={block:this.api.styles.block,wrapper:"ce-delimiter"},this._element=this.drawView(),this.data=t}drawView(){let t=document.createElement("div");return t.classList.add(this._CSS.wrapper,this._CSS.block),t}render(){return this._element}save(t){return{}}static get toolbox(){return{icon:v0,title:"Delimiter"}}static get pasteConfig(){return{tags:["HR"]}}onPaste(t){this.data={}}};(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.embed-tool--loading .embed-tool__caption{display:none}.embed-tool--loading .embed-tool__preloader{display:block}.embed-tool--loading .embed-tool__content{display:none}.embed-tool__preloader{display:none;position:relative;height:200px;box-sizing:border-box;border-radius:5px;border:1px solid #e6e9eb}.embed-tool__preloader:before{content:"";position:absolute;z-index:3;left:50%;top:50%;width:30px;height:30px;margin-top:-25px;margin-left:-15px;border-radius:50%;border:2px solid #cdd1e0;border-top-color:#388ae5;box-sizing:border-box;animation:embed-preloader-spin 2s infinite linear}.embed-tool__url{position:absolute;bottom:20px;left:50%;transform:translate(-50%);max-width:250px;color:#7b7e89;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.embed-tool__content{width:100%}.embed-tool__caption{margin-top:7px}.embed-tool__caption[contentEditable=true][data-placeholder]:before{position:absolute;content:attr(data-placeholder);color:#707684;font-weight:400;opacity:0}
67.embed-tool__caption[contentEditable=true][data-placeholder]:empty:before{opacity:1}.embed-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before{opacity:0}@keyframes embed-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const y0={vimeo:{regex:/(?:http[s]?:\/\/)?(?:www.)?(?:player.)?vimeo\.co(?:.+\/([^\/]\d+)(?:#t=[\d]+)?s?$)/,embedUrl:"https://player.vimeo.com/video/<%= remote_id %>?title=0&byline=0",html:'<iframe style="width:100%;" height="320" frameborder="0"></iframe>',height:320,width:580},youtube:{regex:/(?:https?:\/\/)?(?:www\.)?(?:(?:youtu\.be\/)|(?:youtube\.com)\/(?:v\/|u\/\w\/|embed\/|watch|shorts\/))(?:(?:\?v=)?([^#&?=]*))?((?:[?&]\w*=\w*)*)/,embedUrl:"https://www.youtube.com/embed/<%= remote_id %>",html:'<iframe style="width:100%;" height="320" frameborder="0" allowfullscreen></iframe>',height:320,width:580,id:([e,t])=>{if(!t&&e)return e;const n={start:"start",end:"end",t:"start",time_continue:"start",list:"list"};let o=t.slice(1).split("&").map(i=>{const[r,s]=i.split("=");return!e&&r==="v"?(e=s,null):!n[r]||s==="LL"||s.startsWith("RDMM")||s.startsWith("FL")?null:`${n[r]}=${s}`}).filter(i=>!!i);return e+"?"+o.join("&")}},coub:{regex:/https?:\/\/coub\.com\/view\/([^\/\?\&]+)/,embedUrl:"https://coub.com/embed/<%= remote_id %>",html:'<iframe style="width:100%;" height="320" frameborder="0" allowfullscreen></iframe>',height:320,width:580},vine:{regex:/https?:\/\/vine\.co\/v\/([^\/\?\&]+)/,embedUrl:"https://vine.co/v/<%= remote_id %>/embed/simple/",html:'<iframe style="width:100%;" height="320" frameborder="0" allowfullscreen></iframe>',height:320,width:580},imgur:{regex:/https?:\/\/(?:i\.)?imgur\.com.*\/([a-zA-Z0-9]+)(?:\.gifv)?/,embedUrl:"http://imgur.com/<%= remote_id %>/embed",html:'<iframe allowfullscreen="true" scrolling="no" id="imgur-embed-iframe-pub-<%= remote_id %>" class="imgur-embed-iframe-pub" style="height: 500px; width: 100%; border: 1px solid #000"></iframe>',height:500,width:540},gfycat:{regex:/https?:\/\/gfycat\.com(?:\/detail)?\/([a-zA-Z]+)/,embedUrl:"https://gfycat.com/ifr/<%= remote_id %>",html:`<iframe frameborder='0' scrolling='no' style="width:100%;" height='436' allowfullscreen ></iframe>`,height:436,width:580},"twitch-channel":{regex:/https?:\/\/www\.twitch\.tv\/([^\/\?\&]*)\/?$/,embedUrl:"https://player.twitch.tv/?channel=<%= remote_id %>",html:'<iframe frameborder="0" allowfullscreen="true" scrolling="no" height="366" style="width:100%;"></iframe>',height:366,width:600},"twitch-video":{regex:/https?:\/\/www\.twitch\.tv\/(?:[^\/\?\&]*\/v|videos)\/([0-9]*)/,embedUrl:"https://player.twitch.tv/?video=v<%= remote_id %>",html:'<iframe frameborder="0" allowfullscreen="true" scrolling="no" height="366" style="width:100%;"></iframe>',height:366,width:600},"yandex-music-album":{regex:/https?:\/\/music\.yandex\.ru\/album\/([0-9]*)\/?$/,embedUrl:"https://music.yandex.ru/iframe/#album/<%= remote_id %>/",html:'<iframe frameborder="0" style="border:none;width:540px;height:400px;" style="width:100%;" height="400"></iframe>',height:400,width:540},"yandex-music-track":{regex:/https?:\/\/music\.yandex\.ru\/album\/([0-9]*)\/track\/([0-9]*)/,embedUrl:"https://music.yandex.ru/iframe/#track/<%= remote_id %>/",html:'<iframe frameborder="0" style="border:none;width:540px;height:100px;" style="width:100%;" height="100"></iframe>',height:100,width:540,id:e=>e.join("/")},"yandex-music-playlist":{regex:/https?:\/\/music\.yandex\.ru\/users\/([^\/\?\&]*)\/playlists\/([0-9]*)/,embedUrl:"https://music.yandex.ru/iframe/#playlist/<%= remote_id %>/show/cover/description/",html:'<iframe frameborder="0" style="border:none;width:540px;height:400px;" width="540" height="400"></iframe>',height:400,width:540,id:e=>e.join("/")},codepen:{regex:/https?:\/\/codepen\.io\/([^\/\?\&]*)\/pen\/([^\/\?\&]*)/,embedUrl:"https://codepen.io/<%= remote_id %>?height=300&theme-id=0&default-tab=css,result&embed-version=2",html:"<iframe height='300' scrolling='no' frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'></iframe>",height:300,width:600,id:e=>e.join("/embed/")},instagram:{regex:/^https:\/\/(?:www\.)?instagram\.com\/(?:reel|p)\/(.*)/,embedUrl:"https://www.instagram.com/p/<%= remote_id %>/embed",html:'<iframe width="400" height="505" style="margin: 0 auto;" frameborder="0" scrolling="no" allowtransparency="true"></iframe>',height:505,width:400,id:e=>{var t;return(t=e?.[0])==null?void 0:t.split("/")[0]}},twitter:{regex:/^https?:\/\/(www\.)?(?:twitter\.com|x\.com)\/.+\/status\/(\d+)/,embedUrl:"https://platform.twitter.com/embed/Tweet.html?id=<%= remote_id %>",html:'<iframe width="600" height="600" style="margin: 0 auto;" frameborder="0" scrolling="no" allowtransparency="true"></iframe>',height:300,width:600,id:e=>e[1]},reddit:{regex:/https:\/\/www\.reddit\.com\/(.*)/,embedUrl:"https://www.redditmedia.com/<%= remote_id %>?ref_source=embed&ref=share&embed=true",html:"<iframe height='300' width='100%' scrolling='no' frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'></iframe>",width:600,height:300,id:e=>e[0]},pinterest:{regex:/https?:\/\/([^\/\?\&]*).pinterest.com\/pin\/([^\/\?\&]*)\/?$/,embedUrl:"https://assets.pinterest.com/ext/embed.html?id=<%= remote_id %>",html:"<iframe scrolling='no' frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%; min-height: 400px; max-height: 1000px;'></iframe>",id:e=>e[1]},facebook:{regex:/https?:\/\/www.facebook.com\/([^\/\?\&]*)\/(.*)/,embedUrl:"https://www.facebook.com/plugins/post.php?href=https://www.facebook.com/<%= remote_id %>&width=500",html:"<iframe scrolling='no' frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%; min-height: 500px; max-height: 1000px;'></iframe>",id:e=>e.join("/")},aparat:{regex:/(?:http[s]?:\/\/)?(?:www.)?aparat\.com\/v\/([^\/\?\&]+)\/?/,embedUrl:"https://www.aparat.com/video/video/embed/videohash/<%= remote_id %>/vt/frame",html:'<iframe width="600" height="300" style="margin: 0 auto;" frameborder="0" scrolling="no" allowtransparency="true"></iframe>',height:300,width:600},miro:{regex:/https:\/\/miro.com\/\S+(\S{12})\/(\S+)?/,embedUrl:"https://miro.com/app/live-embed/<%= remote_id %>",html:'<iframe width="700" height="500" style="margin: 0 auto;" allowFullScreen frameBorder="0" scrolling="no"></iframe>'},github:{regex:/https?:\/\/gist.github.com\/([^\/\?\&]*)\/([^\/\?\&]*)/,embedUrl:'data:text/html;charset=utf-8,<head><base target="_blank" /></head><body><script src="https://gist.github.com/<%= remote_id %>" ><\/script></body>',html:'<iframe width="100%" height="350" frameborder="0" style="margin: 0 auto;"></iframe>',height:300,width:600,id:e=>`${e.join("/")}.js`},whimsical:{regex:/(https:\/\/)?whimsical.com\/(?:[a-zA-Z0-9\-]+\-)?([a-km-zA-HJ-NP-Z1-9]{16,22})(@[a-km-zA-HJ-NP-Z1-9]+)?/,embedUrl:"https://whimsical.com/embed/<%= remote_id %>",html:"<iframe height='300' scrolling='no' frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'></iframe>",height:300,width:600,id:e=>e[1]},figma:{regex:/(https:\/\/www\.figma\.com\/.*)?/,embedUrl:"https://www.figma.com/embed?embed_host=share&url=<%= remote_id %>",html:"<iframe height='450' scrolling='no' frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'></iframe>",height:300,width:600}};function Nr(e,t,n){var o,i,r,s,a;t==null&&(t=100);function l(){var u=Date.now()-s;u<t&&u>=0?o=setTimeout(l,t-u):(o=null,n||(a=e.apply(r,i),r=i=null))}var c=function(){r=this,i=arguments,s=Date.now();var u=n&&!o;return o||(o=setTimeout(l,t)),u&&(a=e.apply(r,i),r=i=null),a};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.flush=function(){o&&(a=e.apply(r,i),r=i=null,clearTimeout(o),o=null)},c}Nr.debounce=Nr;var k0=Nr;let w0=class zt{constructor({data:t,api:n,readOnly:o}){this.api=n,this._data={},this.element=null,this.readOnly=o,this.data=t}set data(t){var n;if(!(t instanceof Object))throw Error("Embed Tool data should be object");const{service:o,source:i,embed:r,width:s,height:a,caption:l=""}=t;this._data={service:o||this.data.service,source:i||this.data.source,embed:r||this.data.embed,width:s||this.data.width,height:a||this.data.height,caption:l||this.data.caption||""};const c=this.element;c&&((n=c.parentNode)==null||n.replaceChild(this.render(),c))}get data(){if(this.element){const t=this.element.querySelector(`.${this.api.styles.input}`);this._data.caption=t?t.innerHTML:""}return this._data}get CSS(){return{baseClass:this.api.styles.block,input:this.api.styles.input,container:"embed-tool",containerLoading:"embed-tool--loading",preloader:"embed-tool__preloader",caption:"embed-tool__caption",url:"embed-tool__url",content:"embed-tool__content"}}
vendor: 4,330 bytes, line 67
67render(){if(!this.data.service){const a=document.createElement("div");return this.element=a,a}const{html:t}=zt.services[this.data.service],n=document.createElement("div"),o=document.createElement("div"),i=document.createElement("template"),r=this.createPreloader();n.classList.add(this.CSS.baseClass,this.CSS.container,this.CSS.containerLoading),o.classList.add(this.CSS.input,this.CSS.caption),n.appendChild(r),o.contentEditable=(!this.readOnly).toString(),o.dataset.placeholder=this.api.i18n.t("Enter a caption"),o.innerHTML=this.data.caption||"",i.innerHTML=t,i.content.firstChild.setAttribute("src",this.data.embed),i.content.firstChild.classList.add(this.CSS.content);const s=this.embedIsReady(n);return i.content.firstChild&&n.appendChild(i.content.firstChild),n.appendChild(o),s.then(()=>{n.classList.remove(this.CSS.containerLoading)}),this.element=n,n}createPreloader(){const t=document.createElement("preloader"),n=document.createElement("div");return n.textContent=this.data.source,t.classList.add(this.CSS.preloader),n.classList.add(this.CSS.url),t.appendChild(n),t}save(){return this.data}onPaste(t){var n;const{key:o,data:i}=t.detail,{regex:r,embedUrl:s,width:a,height:l,id:c=h=>h.shift()||""}=zt.services[o],u=(n=r.exec(i))==null?void 0:n.slice(1),d=u?s.replace(/<%= remote_id %>/g,c(u)):"";this.data={service:o,source:i,embed:d,width:a,height:l}}static prepare({config:t={}}){const{services:n={}}=t;let o=Object.entries(y0);const i=Object.entries(n).filter(([s,a])=>typeof a=="boolean"&&a===!0).map(([s])=>s),r=Object.entries(n).filter(([s,a])=>typeof a=="object").filter(([s,a])=>zt.checkServiceConfig(a)).map(([s,a])=>{const{regex:l,embedUrl:c,html:u,height:d,width:h,id:p}=a;return[s,{regex:l,embedUrl:c,html:u,height:d,width:h,id:p}]});i.length&&(o=o.filter(([s])=>i.includes(s))),o=o.concat(r),zt.services=o.reduce((s,[a,l])=>a in s?(s[a]=Object.assign({},s[a],l),s):(s[a]=l,s),{}),zt.patterns=o.reduce((s,[a,l])=>(l&&typeof l!="boolean"&&(s[a]=l.regex),s),{})}static checkServiceConfig(t){const{regex:n,embedUrl:o,html:i,height:r,width:s,id:a}=t;let l=!!(n&&n instanceof RegExp)&&!!(o&&typeof o=="string")&&!!(i&&typeof i=="string");return l=l&&(a!==void 0?a instanceof Function:!0),l=l&&(r!==void 0?Number.isFinite(r):!0),l=l&&(s!==void 0?Number.isFinite(s):!0),l}static get pasteConfig(){return{patterns:zt.patterns}}static get isReadOnlySupported(){return!0}embedIsReady(t){let n;return new Promise((o,i)=>{n=new MutationObserver(k0.debounce(o,450)),n.observe(t,{childList:!0,subtree:!0})}).then(()=>{n.disconnect()})}};(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ce-header{padding:.6em 0 3px;margin:0;line-height:1.25em;outline:none}.ce-header p,.ce-header div{padding:0!important;margin:0!important}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const x0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19 17V10.2135C19 10.1287 18.9011 10.0824 18.836 10.1367L16 12.5"/></svg>',C0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10 19 9.5 19 12C19 13.9771 16.0684 13.9997 16.0012 16.8981C15.9999 16.9533 16.0448 17 16.1 17L19.3 17"/></svg>',S0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10.5 16.8323 10 17.6 10C18.3677 10 19.5 10.311 19.5 11.5C19.5 12.5315 18.7474 12.9022 18.548 12.9823C18.5378 12.9864 18.5395 13.0047 18.5503 13.0063C18.8115 13.0456 20 13.3065 20 14.8C20 16 19.5 17 17.8 17C17.8 17 16 17 16 16.3"/></svg>',E0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
67<path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M18 10L15.2834 14.8511C15.246 14.9178 15.294 15 15.3704 15C16.8489 15 18.7561 15 20.2 15M19 17C19 15.7187 19 14.8813 19 13.6"/></svg>',T0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 15.9C16 15.9 16.3768 17 17.8 17C19.5 17 20 15.6199 20 14.7C20 12.7323 17.6745 12.0486 16.1635 12.9894C16.094 13.0327 16 12.9846 16 12.9027V10.1C16 10.0448 16.0448 10 16.1 10H19.8"/></svg>',_0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19.5 10C16.5 10.5 16 13.3285 16 15M16 15V15C16 16.1046 16.8954 17 18 17H18.3246C19.3251 17 20.3191 16.3492 20.2522 15.3509C20.0612 12.4958 16 12.6611 16 15Z"/></svg>',B0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9 7L9 12M9 17V12M9 12L15 12M15 7V12M15 17L15 12"/></svg>';/** 68 * Header block for the Editor.js. 69 * 70 * @author CodeX ([email protected]) 71 * @copyright CodeX 2018 72 * @license MIT 73 * @version 2.0.0 74 */let O0=class{constructor({data:t,config:n,api:o,readOnly:i}){this.api=o,this.readOnly=i,this._config=n??null,this._data=this.normalizeData(t),this._element=this.getTag()}get _CSS(){return{block:this.api.styles.block,wrapper:"ce-header"}}isHeaderData(t){return t.text!==void 0}normalizeData(t){const n={text:"",level:this.defaultLevel.number};return this.isHeaderData(t)&&(n.text=t.text||"",t.level!==void 0&&!isNaN(parseInt(t.level.toString()))&&(n.level=parseInt(t.level.toString()))),n}render(){return this._element}renderSettings(){return this.levels.map(t=>({icon:t.svg,label:this.api.i18n.t(`Heading ${t.number}`),onActivate:()=>this.setLevel(t.number),closeOnActivate:!0,isActive:this.currentLevel.number===t.number,render:()=>document.createElement("div")}))}setLevel(t){this.data={level:t,text:this.data.text}}merge(t){this._element.insertAdjacentHTML("beforeend",t.text)}validate(t){return t.text.trim()!==""}save(t){return{text:t.innerHTML,level:this.currentLevel.number}}static get conversionConfig(){return{export:"text",import:"text"}}static get sanitize(){return{level:!1,text:{}}}static get isReadOnlySupported(){return!0}get data(){return this._data.text=this._element.innerHTML,this._data.level=this.currentLevel.number,this._data}set data(t){if(this._data=this.normalizeData(t),t.level!==void 0&&this._element.parentNode){const n=this.getTag();n.innerHTML=this._element.innerHTML,this._element.parentNode.replaceChild(n,this._element),this._element=n}t.text!==void 0&&(this._element.innerHTML=this._data.text||"")}getTag(){var t;const n=document.createElement(this.currentLevel.tag);return n.innerHTML=this._data.text||"",n.classList.add(this._CSS.wrapper),n.contentEditable=this.readOnly?"false":"true",n.dataset.placeholder=this.api.i18n.t(((t=this._config)==null?void 0:t.placeholder)||""),n}get currentLevel(){let t=this.levels.find(n=>n.number===this._data.level);return t||(t=this.defaultLevel),t}get defaultLevel(){var t;if((t=this._config)!=null&&t.defaultLevel){const n=this.levels.find(o=>{var i;return o.number===((i=this._config)==null?void 0:i.defaultLevel)});if(n)return n;console.warn("(à¸'Ì-'Ì)ภHeading Tool: the default level specified was not found in available levels")}return this.levels[1]}get levels(){var t;const n=[{number:1,tag:"H1",svg:x0},{number:2,tag:"H2",svg:C0},{number:3,tag:"H3",svg:S0},{number:4,tag:"H4",svg:E0},{number:5,tag:"H5",svg:T0},{number:6,tag:"H6",svg:_0}];return(t=this._config)!=null&&t.levels?n.filter(o=>{var i;return(i=this._config)==null?void 0:i.levels.includes(o.number)}):n}onPaste(t){var n,o;const i=t.detail;if("data"in i){const r=i.data;let s=this.defaultLevel.number;switch(r.tagName){case"H1":s=1;break;case"H2":s=2;break;case"H3":s=3;break;case"H4":s=4;break;case"H5":s=5;break;case"H6":s=6;break}(n=this._config)!=null&&n.levels&&(s=(o=this._config)==null?void 0:o.levels.reduce((a,l)=>Math.abs(l-s)<Math.abs(a-s)?l:a)),this.data={level:s,text:r.innerHTML}}}static get pasteConfig(){return{tags:["H1","H2","H3","H4","H5","H6"]}}static get toolbox(){return{icon:B0,title:"Heading"}}};(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.image-tool{--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb}.image-tool__image{border-radius:3px;overflow:hidden;margin-bottom:10px;padding-bottom:0}.image-tool__image-picture{max-width:100%;vertical-align:bottom;display:block}.image-tool__image-preloader{width:50px;height:50px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--bg-color);background-position:center center}.image-tool__image-preloader:after{content:"";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--bg-color);border-top-color:var(--front-color);left:50%;
74top:50%;margin-top:-30px;margin-left:-30px;animation:image-preloader-spin 2s infinite linear;box-sizing:border-box}.image-tool__caption{visibility:hidden;position:absolute;bottom:0;left:0;margin-bottom:10px}.image-tool__caption[contentEditable=true][data-placeholder]:before{position:absolute!important;content:attr(data-placeholder);color:#707684;font-weight:400;display:none}.image-tool__caption[contentEditable=true][data-placeholder]:empty:before{display:block}.image-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before{display:none}.image-tool--empty .image-tool__image,.image-tool--empty .image-tool__image-preloader{display:none}.image-tool--empty .image-tool__caption,.image-tool--uploading .image-tool__caption{visibility:hidden!important}.image-tool .cdx-button{display:flex;align-items:center;justify-content:center}.image-tool .cdx-button svg{height:auto;margin:0 6px 0 0}.image-tool--filled .cdx-button,.image-tool--filled .image-tool__image-preloader{display:none}.image-tool--uploading .image-tool__image{min-height:200px;display:flex;border:1px solid var(--border-color);background-color:#fff}.image-tool--uploading .image-tool__image-picture,.image-tool--uploading .cdx-button{display:none}.image-tool--withBorder .image-tool__image{border:1px solid var(--border-color)}.image-tool--withBackground .image-tool__image{padding:15px;background:var(--bg-color)}.image-tool--withBackground .image-tool__image-picture{max-width:60%;margin:0 auto}.image-tool--stretched .image-tool__image-picture{width:100%}.image-tool--caption .image-tool__caption{visibility:visible}.image-tool--caption{padding-bottom:50px}@keyframes image-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const I0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 19V19C9.13623 19 8.20435 19 7.46927 18.6955C6.48915 18.2895 5.71046 17.5108 5.30448 16.5307C5 15.7956 5 14.8638 5 13V12C5 9.19108 5 7.78661 5.67412 6.77772C5.96596 6.34096 6.34096 5.96596 6.77772 5.67412C7.78661 5 9.19108 5 12 5H13.5C14.8956 5 15.5933 5 16.1611 5.17224C17.4395 5.56004 18.44 6.56046 18.8278 7.83886C19 8.40666 19 9.10444 19 10.5V10.5"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 13V16M16 19V16M19 16H16M16 16H13"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6.5 17.5L17.5 6.5"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18.9919 10.5H19.0015"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.9919 19H11.0015"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13L13 5"/></svg>',P0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18.9919 9.5H19.0015"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.5 5H14.5096"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M14.625 5H15C17.2091 5 19 6.79086 19 9V9.375"/><path stroke="currentColor" stroke-width="2" d="M9.375 5L9 5C6.79086 5 5 6.79086 5 9V9.375"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.3725 5H9.38207"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 9.5H5.00957"/><path stroke="currentColor" stroke-width="2" d="M9.375 19H9C6.79086 19 5 17.2091 5 15V14.625"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.3725 19H9.38207"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 14.55H5.00957"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 13V16M16 19V16M19 16H16M16 16H13"/></svg>',Hh='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.13968 15.32L8.69058 11.5661C9.02934 11.2036 9.48873 11 9.96774 11C10.4467 11 10.9061 11.2036 11.2449 11.5661L15.3871 16M13.5806 14.0664L15.0132 12.533C15.3519 12.1705 15.8113 11.9668 16.2903 11.9668C16.7693 11.9668 17.2287 12.1705 17.5675 12.533L18.841 13.9634"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.7778 9.33331H13.7867"/></svg>',M0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
74<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 9L20 12L17 15"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 12H20"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 9L4 12L7 15"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 12H10"/></svg>',A0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 9V7.2C8 7.08954 8.08954 7 8.2 7L12 7M16 9V7.2C16 7.08954 15.9105 7 15.8 7L12 7M12 7L12 17M12 17H10M12 17H14"/></svg>';function pn(e,t=null,n={}){const o=document.createElement(e);Array.isArray(t)?o.classList.add(...t):t!==null&&o.classList.add(t);for(const i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);return o}var Bo=(e=>(e.Empty="empty",e.Uploading="uploading",e.Filled="filled",e))(Bo||{});let L0=class{constructor({api:t,config:n,onSelectFile:o,readOnly:i}){this.api=t,this.config=n,this.onSelectFile=o,this.readOnly=i,this.nodes={wrapper:pn("div",[this.CSS.baseClass,this.CSS.wrapper]),imageContainer:pn("div",[this.CSS.imageContainer]),fileButton:this.createFileButton(),imageEl:void 0,imagePreloader:pn("div",this.CSS.imagePreloader),caption:pn("div",[this.CSS.input,this.CSS.caption],{contentEditable:!this.readOnly})},this.nodes.caption.dataset.placeholder=this.config.captionPlaceholder,this.nodes.imageContainer.appendChild(this.nodes.imagePreloader),this.nodes.wrapper.appendChild(this.nodes.imageContainer),this.nodes.wrapper.appendChild(this.nodes.caption),this.nodes.wrapper.appendChild(this.nodes.fileButton)}applyTune(t,n){this.nodes.wrapper.classList.toggle(`${this.CSS.wrapper}--${t}`,n)}render(){return this.toggleStatus("empty"),this.nodes.wrapper}showPreloader(t){this.nodes.imagePreloader.style.backgroundImage=`url(${t})`,this.toggleStatus("uploading")}hidePreloader(){this.nodes.imagePreloader.style.backgroundImage="",this.toggleStatus("empty")}fillImage(t){const n=/\.mp4$/.test(t)?"VIDEO":"IMG",o={src:t};let i="load";n==="VIDEO"&&(o.autoplay=!0,o.loop=!0,o.muted=!0,o.playsinline=!0,i="loadeddata"),this.nodes.imageEl=pn(n,this.CSS.imageEl,o),this.nodes.imageEl.addEventListener(i,()=>{this.toggleStatus("filled"),this.nodes.imagePreloader!==void 0&&(this.nodes.imagePreloader.style.backgroundImage="")}),this.nodes.imageContainer.appendChild(this.nodes.imageEl)}fillCaption(t){this.nodes.caption!==void 0&&(this.nodes.caption.innerHTML=t)}toggleStatus(t){for(const n in Bo)if(Object.prototype.hasOwnProperty.call(Bo,n)){const o=Bo[n];this.nodes.wrapper.classList.toggle(`${this.CSS.wrapper}--${o}`,o===t)}}get CSS(){return{baseClass:this.api.styles.block,loading:this.api.styles.loader,input:this.api.styles.input,button:this.api.styles.button,wrapper:"image-tool",imageContainer:"image-tool__image",imagePreloader:"image-tool__image-preloader",imageEl:"image-tool__image-picture",caption:"image-tool__caption"}}createFileButton(){const t=pn("div",[this.CSS.button]);return t.innerHTML=this.config.buttonContent??`${Hh} ${this.api.i18n.t("Select an Image")}`,t.addEventListener("click",()=>{this.onSelectFile()}),t}};function N0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uh={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(window,function(){return(function(n){var o={};function i(r){if(o[r])return o[r].exports;var s=o[r]={i:r,l:!1,exports:{}};return n[r].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=o,i.d=function(r,s,a){i.o(r,s)||Object.defineProperty(r,s,{enumerable:!0,get:a})},i.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},i.t=function(r,s){if(1&s&&(r=i(r)),8&s||4&s&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&s&&typeof r!="string")for(var l in r)i.d(a,l,(function(c){return r[c]}).bind(null,l));return a},i.n=function(r){var s=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(s,"a",s),s},i.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s)},i.p="",i(i.s=3)})([function(n,o){var i;i=(function(){return this})();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}n.exports=i},function(n,o,i){(function(r){var s=i(2),a=setTimeout;function l(){}function c(b){if(!(this instanceof c))throw new TypeError("Promises must be constructed via new");if(typeof b!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(b,this)}function u(b,v){for(;b._state===3;)b=b._value;b._state!==0?(b._handled=!0,c._immediateFn(function(){var y=b._state===1?v.onFulfilled:v.onRejected;if(y!==null){var k;try{k=y(b._value)}catch(w){return void h(v.promise,w)}d(v.promise,k)}else(b._state===1?d:h)(v.promise,b._value)})):b._deferreds.push(v)}function d(b,v){try{if(v===b)throw new TypeError("A promise cannot be resolved with itself.");if(v&&(typeof v=="object"||typeof v=="function")){var y=v.then;if(v instanceof c)return b._state=3,b._value=v,void p(b);if(typeof y=="function")return void f((k=y,w=v,function(){k.apply(w,arguments)}),b)}b._state=1,b._value=v,p(b)}catch(x){h(b,x)}var k,w}function h(b,v){b._state=2,b._value=v,p(b)}
vendor: 17,048 bytes, lines 74-102
74function p(b){b._state===2&&b._deferreds.length===0&&c._immediateFn(function(){b._handled||c._unhandledRejectionFn(b._value)});for(var v=0,y=b._deferreds.length;v<y;v++)u(b,b._deferreds[v]);b._deferreds=null}function m(b,v,y){this.onFulfilled=typeof b=="function"?b:null,this.onRejected=typeof v=="function"?v:null,this.promise=y}function f(b,v){var y=!1;try{b(function(k){y||(y=!0,d(v,k))},function(k){y||(y=!0,h(v,k))})}catch(k){if(y)return;y=!0,h(v,k)}}c.prototype.catch=function(b){return this.then(null,b)},c.prototype.then=function(b,v){var y=new this.constructor(l);return u(this,new m(b,v,y)),y},c.prototype.finally=s.a,c.all=function(b){return new c(function(v,y){if(!b||b.length===void 0)throw new TypeError("Promise.all accepts an array");var k=Array.prototype.slice.call(b);if(k.length===0)return v([]);var w=k.length;function x(T,g){try{if(g&&(typeof g=="object"||typeof g=="function")){var C=g.then;if(typeof C=="function")return void C.call(g,function(P){x(T,P)},y)}k[T]=g,--w==0&&v(k)}catch(P){y(P)}}for(var E=0;E<k.length;E++)x(E,k[E])})},c.resolve=function(b){return b&&typeof b=="object"&&b.constructor===c?b:new c(function(v){v(b)})},c.reject=function(b){return new c(function(v,y){y(b)})},c.race=function(b){return new c(function(v,y){for(var k=0,w=b.length;k<w;k++)b[k].then(v,y)})},c._immediateFn=typeof r=="function"&&function(b){r(b)}||function(b){a(b,0)},c._unhandledRejectionFn=function(b){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",b)},o.a=c}).call(this,i(5).setImmediate)},function(n,o,i){o.a=function(r){var s=this.constructor;return this.then(function(a){return s.resolve(r()).then(function(){return a})},function(a){return s.resolve(r()).then(function(){return s.reject(a)})})}},function(n,o,i){function r(f){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(f)}i(4);var s,a,l,c,u,d,h,p=i(8),m=(a=function(f){return new Promise(function(b,v){f=c(f),(f=u(f)).beforeSend&&f.beforeSend();var y=window.XMLHttpRequest?new window.XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");y.open(f.method,f.url),y.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(f.headers).forEach(function(w){var x=f.headers[w];y.setRequestHeader(w,x)});var k=f.ratio;y.upload.addEventListener("progress",function(w){var x=Math.round(w.loaded/w.total*100),E=Math.ceil(x*k/100);f.progress(Math.min(E,100))},!1),y.addEventListener("progress",function(w){var x=Math.round(w.loaded/w.total*100),E=Math.ceil(x*(100-k)/100)+k;f.progress(Math.min(E,100))},!1),y.onreadystatechange=function(){if(y.readyState===4){var w=y.response;try{w=JSON.parse(w)}catch{}var x=p.parseHeaders(y.getAllResponseHeaders()),E={body:w,code:y.status,headers:x};h(y.status)?b(E):v(E)}},y.send(f.data)})},l=function(f){return f.method="POST",a(f)},c=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(f.url&&typeof f.url!="string")throw new Error("Url must be a string");if(f.url=f.url||"",f.method&&typeof f.method!="string")throw new Error("`method` must be a string or null");if(f.method=f.method?f.method.toUpperCase():"GET",f.headers&&r(f.headers)!=="object")throw new Error("`headers` must be an object or null");if(f.headers=f.headers||{},f.type&&(typeof f.type!="string"||!Object.values(s).includes(f.type)))throw new Error("`type` must be taken from module's «contentType» library");if(f.progress&&typeof f.progress!="function")throw new Error("`progress` must be a function or null");if(f.progress=f.progress||function(b){},f.beforeSend=f.beforeSend||function(b){},f.ratio&&typeof f.ratio!="number")throw new Error("`ratio` must be a number");if(f.ratio<0||f.ratio>100)throw new Error("`ratio` must be in a 0-100 interval");if(f.ratio=f.ratio||90,f.accept&&typeof f.accept!="string")throw new Error("`accept` must be a string with a list of allowed mime-types");if(f.accept=f.accept||"*/*",f.multiple&&typeof f.multiple!="boolean")throw new Error("`multiple` must be a true or false");if(f.multiple=f.multiple||!1,f.fieldName&&typeof f.fieldName!="string")throw new Error("`fieldName` must be a string");return f.fieldName=f.fieldName||"files",f},u=function(f){switch(f.method){case"GET":var b=d(f.data,s.URLENCODED);delete f.data,f.url=/\?/.test(f.url)?f.url+"&"+b:f.url+"?"+b;break;case"POST":case"PUT":case"DELETE":case"UPDATE":var v=(function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).type||s.JSON})(f);(p.isFormData(f.data)||p.isFormElement(f.data))&&(v=s.FORM),f.data=d(f.data,v),v!==m.contentType.FORM&&(f.headers["content-type"]=v)}return f},d=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};switch(arguments.length>1?arguments[1]:void 0){case s.URLENCODED:return p.urlEncode(f);case s.JSON:return p.jsonEncode(f);case s.FORM:return p.formEncode(f);default:return f}},h=function(f){return f>=200&&f<300},{contentType:s={URLENCODED:"application/x-www-form-urlencoded; charset=utf-8",FORM:"multipart/form-data",JSON:"application/json; charset=utf-8"},request:a,get:function(f){return f.method="GET",a(f)},post:l,transport:function(f){return f=c(f),p.selectFiles(f).then(function(b){for(var v=new FormData,y=0;y<b.length;y++)v.append(f.fieldName,b[y],b[y].name);p.isObject(f.data)&&Object.keys(f.data).forEach(function(w){var x=f.data[w];v.append(w,x)});var k=f.beforeSend;return f.beforeSend=function(){return k(b)},f.data=v,l(f)})},selectFiles:function(f){return delete(f=c(f)).beforeSend,p.selectFiles(f)}});n.exports=m},function(n,o,i){i.r(o);var r=i(1);window.Promise=window.Promise||r.a},function(n,o,i){(function(r){var s=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function l(c,u){this._id=c,this._clearFn=u}o.setTimeout=function(){return new l(a.call(setTimeout,s,arguments),clearTimeout)},o.setInterval=function(){return new l(a.call(setInterval,s,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(c){c&&c.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(s,this._id)},o.enroll=function(c,u){clearTimeout(c._idleTimeoutId),c._idleTimeout=u},o.unenroll=function(c){clearTimeout(c._idleTimeoutId),c._idleTimeout=-1},o._unrefActive=o.active=function(c){clearTimeout(c._idleTimeoutId);var u=c._idleTimeout;u>=0&&(c._idleTimeoutId=setTimeout(function(){c._onTimeout&&c._onTimeout()},u))},i(6),o.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,o.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,i(0))},function(n,o,i){(function(r,s){(function(a,l){if(!a.setImmediate){var c,u,d,h,p,m=1,f={},b=!1,v=a.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(a);y=y&&y.setTimeout?y:a,{}.toString.call(a.process)==="[object process]"?c=function(x){s.nextTick(function(){w(x)})}:(function(){if(a.postMessage&&!a.importScripts){var x=!0,E=a.onmessage;return a.onmessage=function(){x=!1},a.postMessage("","*"),a.onmessage=E,x}})()?(h="setImmediate$"+Math.random()+"$",p=function(x){x.source===a&&typeof x.data=="string"&&x.data.indexOf(h)===0&&w(+x.data.slice(h.length))},a.addEventListener?a.addEventListener("message",p,!1):a.attachEvent("onmessage",p),c=function(x){a.postMessage(h+x,"*")}):a.MessageChannel?((d=new MessageChannel).port1.onmessage=function(x){w(x.data)},c=function(x){d.port2.postMessage(x)}):v&&"onreadystatechange"in v.createElement("script")?(u=v.documentElement,c=function(x){var E=v.createElement("script");E.onreadystatechange=function(){w(x),E.onreadystatechange=null,u.removeChild(E),E=null},u.appendChild(E)}):c=function(x){setTimeout(w,0,x)},y.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var E=new Array(arguments.length-1),T=0;T<E.length;T++)E[T]=arguments[T+1];var g={callback:x,args:E};return f[m]=g,c(m),m++},y.clearImmediate=k}function k(x){delete f[x]}function w(x){if(b)setTimeout(w,0,x);else{var E=f[x];if(E){b=!0;try{(function(T){var g=T.callback,C=T.args;switch(C.length){case 0:g();break;case 1:g(C[0]);break;case 2:g(C[0],C[1]);break;case 3:g(C[0],C[1],C[2]);break;default:g.apply(l,C)}})(E)}finally{k(x),b=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,i(0),i(7))},function(n,o){var i,r,s=n.exports={};function a(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function c(y){if(i===setTimeout)return setTimeout(y,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(y,0);try{return i(y,0)}catch{try{return i.call(null,y,0)}catch{return i.call(this,y,0)}}}(function(){try{i=typeof setTimeout=="function"?setTimeout:a}catch{i=a}try{r=typeof clearTimeout=="function"?clearTimeout:l}catch{r=l}})();var u,d=[],h=!1,p=-1;function m(){h&&u&&(h=!1,u.length?d=u.concat(d):p=-1,d.length&&f())}function f(){if(!h){var y=c(m);h=!0;for(var k=d.length;k;){for(u=d,d=[];++p<k;)u&&u[p].run();p=-1,k=d.length}u=null,h=!1,(function(w){if(r===clearTimeout)return clearTimeout(w);if((r===l||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(w);try{r(w)}catch{try{return r.call(null,w)}catch{return r.call(this,w)}}})(y)}}function b(y,k){this.fun=y,this.array=k}function v(){}s.nextTick=function(y){var k=new Array(arguments.length-1);if(arguments.length>1)for(var w=1;w<arguments.length;w++)k[w-1]=arguments[w];d.push(new b(y,k)),d.length!==1||h||c(f)},b.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=v,s.addListener=v,s.once=v,s.off=v,s.removeListener=v,s.removeAllListeners=v,s.emit=v,s.prependListener=v,s.prependOnceListener=v,s.listeners=function(y){return[]},s.binding=function(y){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(y){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(n,o,i){function r(a,l){for(var c=0;c<l.length;c++){var u=l[c];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(a,u.key,u)}}var s=i(9);n.exports=(function(){function a(){(function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")})(this,a)}var l,c,u;return l=a,u=[{key:"urlEncode",value:function(d){return s(d)}},{key:"jsonEncode",value:function(d){return JSON.stringify(d)}},{key:"formEncode",value:function(d){if(this.isFormData(d))return d;if(this.isFormElement(d))return new FormData(d);if(this.isObject(d)){var h=new FormData;return Object.keys(d).forEach(function(p){var m=d[p];h.append(p,m)}),h}throw new Error("`data` must be an instance of Object, FormData or <FORM> HTMLElement")}},{key:"isObject",value:function(d){return Object.prototype.toString.call(d)==="[object Object]"}},{key:"isFormData",value:function(d){return d instanceof FormData}},{key:"isFormElement",value:function(d){return d instanceof HTMLFormElement}},{key:"selectFiles",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Promise(function(h,p){var m=document.createElement("INPUT");m.type="file",d.multiple&&m.setAttribute("multiple","multiple"),d.accept&&m.setAttribute("accept",d.accept),m.style.display="none",document.body.appendChild(m),m.addEventListener("change",function(f){var b=f.target.files;h(b),document.body.removeChild(m)},!1),m.click()})}},{key:"parseHeaders",value:function(d){var h=d.trim().split(/[\r\n]+/),p={};return h.forEach(function(m){var f=m.split(": "),b=f.shift(),v=f.join(": ");b&&(p[b]=v)}),p}}],(c=null)&&r(l.prototype,c),u&&r(l,u),a})()},function(n,o){var i=function(s){return encodeURIComponent(s).replace(/[!'()*]/g,escape).replace(/%20/g,"+")},r=function(s,a,l,c){return a=a||null,l=l||"&",c=c||null,s?(function(u){for(var d=new Array,h=0;h<u.length;h++)u[h]&&d.push(u[h]);return d})(Object.keys(s).map(function(u){var d,h,p=u;if(c&&(p=c+"["+p+"]"),typeof s[u]=="object"&&s[u]!==null)d=r(s[u],null,l,p);else{a&&(h=p,p=!isNaN(parseFloat(h))&&isFinite(h)?a+Number(p):p);var m=s[u];m=(m=(m=(m=m===!0?"1":m)===!1?"0":m)===0?"0":m)||"",d=i(p)+"="+i(m)}return d})).join(l).replace(/[!'()*]/g,""):""};n.exports=r}])})})(Uh);var j0=Uh.exports;const mn=N0(j0);function ir(e){return e!==void 0&&typeof e.then=="function"}let $0=class{constructor({config:t,onUpload:n,onError:o}){this.config=t,this.onUpload=n,this.onError=o}uploadSelectedFile({onPreview:t}){const n=function(i){const r=new FileReader;r.readAsDataURL(i),r.onload=s=>{t(s.target.result)}};let o;if(this.config.uploader&&typeof this.config.uploader.uploadByFile=="function"){const i=this.config.uploader.uploadByFile;o=mn.selectFiles({accept:this.config.types??"image/*"}).then(r=>{n(r[0]);const s=i(r[0]);return ir(s)||console.warn("Custom uploader method uploadByFile should return a Promise"),s})}else o=mn.transport({url:this.config.endpoints.byFile,data:this.config.additionalRequestData,accept:this.config.types??"image/*",headers:this.config.additionalRequestHeaders,beforeSend:i=>{n(i[0])},fieldName:this.config.field??"image"}).then(i=>i.body);o.then(i=>{this.onUpload(i)}).catch(i=>{this.onError(i)})}uploadByUrl(t){let n;this.config.uploader&&typeof this.config.uploader.uploadByUrl=="function"?(n=this.config.uploader.uploadByUrl(t),ir(n)||console.warn("Custom uploader method uploadByUrl should return a Promise")):n=mn.post({url:this.config.endpoints.byUrl,data:Object.assign({url:t},this.config.additionalRequestData),type:mn.contentType.JSON,headers:this.config.additionalRequestHeaders}).then(o=>o.body),n.then(o=>{this.onUpload(o)}).catch(o=>{this.onError(o)})}uploadByFile(t,{onPreview:n}){const o=new FileReader;o.readAsDataURL(t),o.onload=r=>{n(r.target.result)};let i;if(this.config.uploader&&typeof this.config.uploader.uploadByFile=="function")i=this.config.uploader.uploadByFile(t),ir(i)||console.warn("Custom uploader method uploadByFile should return a Promise");else{const r=new FormData;r.append(this.config.field??"image",t),this.config.additionalRequestData&&Object.keys(this.config.additionalRequestData).length&&Object.entries(this.config.additionalRequestData).forEach(([s,a])=>{r.append(s,a)}),i=mn.post({url:this.config.endpoints.byFile,data:r,type:mn.contentType.JSON,headers:this.config.additionalRequestHeaders}).then(s=>s.body)}i.then(r=>{this.onUpload(r)}).catch(r=>{this.onError(r)})}};/** 75 * Image Tool for the Editor.js 76 * @author CodeX <[email protected]> 77 * @license MIT 78 * @see {@link https://github.com/editor-js/image} 79 * 80 * To developers. 81 * To simplify Tool structure, we split it to 4 parts: 82 * 1) index.ts â main Tool's interface, public API and methods for working with data 83 * 2) uploader.ts â module that has methods for sending files via AJAX: from device, by URL or File pasting 84 * 3) ui.ts â module for UI manipulations: render, showing preloader, etc 85 * 86 * For debug purposes there is a testing server 87 * that can save uploaded files and return a Response {@link UploadResponseFormat} 88 * 89 * $ node dev/server.js 90 * 91 * It will expose 8008 port, so you can pass http://localhost:8008 with the Tools config: 92 * 93 * image: { 94 * class: ImageTool, 95 * config: { 96 * endpoints: { 97 * byFile: 'http://localhost:8008/uploadFile', 98 * byUrl: 'http://localhost:8008/fetchUrl', 99 * } 100 * }, 101 * }, 102 */let R0=class jr{constructor({data:t,config:n,api:o,readOnly:i,block:r}){this.isCaptionEnabled=null,this.api=o,this.block=r,this.config={endpoints:n.endpoints,additionalRequestData:n.additionalRequestData,additionalRequestHeaders:n.additionalRequestHeaders,field:n.field,types:n.types,captionPlaceholder:this.api.i18n.t(n.captionPlaceholder??"Caption"),buttonContent:n.buttonContent,uploader:n.uploader,actions:n.actions,features:n.features||{}},this.uploader=new $0({config:this.config,onUpload:s=>this.onUpload(s),onError:s=>this.uploadingFailed(s)}),this.ui=new L0({api:o,config:this.config,onSelectFile:()=>{this.uploader.uploadSelectedFile({onPreview:s=>{this.ui.showPreloader(s)}})},readOnly:i}),this._data={caption:"",withBorder:!1,withBackground:!1,stretched:!1,file:{url:""}},this.data=t}static get isReadOnlySupported(){return!0}static get toolbox(){return{icon:Hh,title:"Image"}}static get tunes(){return[{name:"withBorder",icon:P0,title:"With border",toggle:!0},{name:"stretched",icon:M0,title:"Stretch image",toggle:!0},{name:"withBackground",icon:I0,title:"With background",toggle:!0}]}render(){var t,n,o;return(((t=this.config.features)==null?void 0:t.caption)===!0||((n=this.config.features)==null?void 0:n.caption)===void 0||((o=this.config.features)==null?void 0:o.caption)==="optional"&&this.data.caption)&&(this.isCaptionEnabled=!0,this.ui.applyTune("caption",!0)),this.ui.render()}validate(t){return!!t.file.url}save(){const t=this.ui.nodes.caption;return this._data.caption=t.innerHTML,this.data}renderSettings(){var t;const n=jr.tunes.concat(this.config.actions||[]),o={border:"withBorder",background:"withBackgroun
102d",stretch:"stretched",caption:"caption"};((t=this.config.features)==null?void 0:t.caption)==="optional"&&n.push({name:"caption",icon:A0,title:"With caption",toggle:!0});const i=n.filter(s=>{var a,l;const c=Object.keys(o).find(u=>o[u]===s.name);return c==="caption"?((a=this.config.features)==null?void 0:a.caption)!==!1:c==null||((l=this.config.features)==null?void 0:l[c])!==!1}),r=s=>{let a=this.data[s.name];return s.name==="caption"&&(a=this.isCaptionEnabled??a),a};return i.map(s=>({icon:s.icon,label:this.api.i18n.t(s.title),name:s.name,toggle:s.toggle,isActive:r(s),onActivate:()=>{if(typeof s.action=="function"){s.action(s.name);return}let a=!r(s);s.name==="caption"&&(this.isCaptionEnabled=!(this.isCaptionEnabled??!1),a=this.isCaptionEnabled),this.tuneToggled(s.name,a)}}))}appendCallback(){this.ui.nodes.fileButton.click()}static get pasteConfig(){return{tags:[{img:{src:!0}}],patterns:{image:/https?:\/\/\S+\.(gif|jpe?g|tiff|png|svg|webp)(\?[a-z0-9=]*)?$/i},files:{mimeTypes:["image/*"]}}}async onPaste(t){switch(t.type){case"tag":{const n=t.detail.data;if(/^blob:/.test(n.src)){const o=await(await fetch(n.src)).blob();this.uploadFile(o);break}this.uploadUrl(n.src);break}case"pattern":{const n=t.detail.data;this.uploadUrl(n);break}case"file":{const n=t.detail.file;this.uploadFile(n);break}}}set data(t){var n;this.image=t.file,this._data.caption=t.caption||"",this.ui.fillCaption(this._data.caption),jr.tunes.forEach(({name:o})=>{const i=typeof t[o]<"u"?t[o]===!0||t[o]==="true":!1;this.setTune(o,i)}),t.caption?this.setTune("caption",!0):((n=this.config.features)==null?void 0:n.caption)===!0&&this.setTune("caption",!0)}get data(){return this._data}set image(t){this._data.file=t||{url:""},t&&t.url&&this.ui.fillImage(t.url)}onUpload(t){t.success&&t.file?this.image=t.file:this.uploadingFailed("incorrect response: "+JSON.stringify(t))}uploadingFailed(t){console.log("Image Tool: uploading failed because of",t),this.api.notifier.show({message:this.api.i18n.t("Couldnât upload image. Please try another."),style:"error"}),this.ui.hidePreloader()}tuneToggled(t,n){t==="caption"?(this.ui.applyTune(t,n),n==!1&&(this._data.caption="",this.ui.fillCaption(""))):this.setTune(t,n)}setTune(t,n){this._data[t]=n,this.ui.applyTune(t,n),t==="stretched"&&Promise.resolve().then(()=>{this.block.stretched=n}).catch(o=>{console.error(o)})}uploadFile(t){this.uploader.uploadByFile(t,{onPreview:n=>{this.ui.showPreloader(n)}})}uploadUrl(t){this.ui.showPreloader(t),this.uploader.uploadByUrl(t)}};(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.cdx-list{margin:0;padding:0;outline:none;display:grid;counter-reset:item;gap:var(--spacing-s);padding:var(--spacing-xs);--spacing-s: 8px;--spacing-xs: 6px;--list-counter-type: numeric;--radius-border: 5px;--checkbox-background: #fff;--color-border: #C9C9C9;--color-bg-checked: #369FFF;--line-height: 1.45em;--color-bg-checked-hover: #0059AB;--color-tick: #fff;--size-checkbox: 1.2em}.cdx-list__item{line-height:var(--line-height);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:"checkbox content" ". child"}.cdx-list__item-children{display:grid;grid-area:child;gap:var(--spacing-s);padding-top:var(--spacing-s)}.cdx-list__item [contenteditable]{outline:none}.cdx-list__item-content{word-break:break-word;white-space:pre-wrap;grid-area:content;padding-left:var(--spacing-s)}.cdx-list__item:before{counter-increment:item;white-space:nowrap}.cdx-list-ordered .cdx-list__item:before{content:counters(item,".",var(--list-counter-type)) "."}.cdx-list-ordered{counter-reset:item}.cdx-list-unordered .cdx-list__item:before{content:"â¢"}.cdx-list-checklist .cdx-list__item:before{content:""}.cdx-list__settings .cdx-settings-button{width:50%}.cdx-list__checkbox{padding-top:calc((var(--line-height) - var(--size-checkbox)) / 2);grid-area:checkbox;width:var(--size-checkbox);height:var(--size-checkbox);display:flex;cursor:pointer}.cdx-list__checkbox svg{opacity:0;height:var(--size-checkbox);width:var(--size-checkbox);left:-1px;top:-1px;position:absolute}@media (hover: hover){.cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-l
102ist__checkbox-check svg{opacity:1}}.cdx-list__checkbox--checked{line-height:var(--line-height)}@media (hover: hover){.cdx-list__checkbox--checked:not(.cdx-list__checkbox--checked--no-hover):hover .cdx-checklist__checkbox-check{background:var(--color-bg-checked-hover);border-color:var(--color-bg-checked-hover)}}.cdx-list__checkbox--checked .cdx-list__checkbox-check{background:var(--color-bg-checked);border-color:var(--color-bg-checked)}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg{opacity:1}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg path{stroke:var(--color-tick)}.cdx-list__checkbox--checked .cdx-list__checkbox-check:before{opacity:0;visibility:visible;transform:scale(2.5)}.cdx-list__checkbox-check{cursor:pointer;display:inline-block;position:relative;margin:0 auto;width:var(--size-checkbox);height:var(--size-checkbox);box-sizing:border-box;border-radius:var(--radius-border);border:1px solid var(--color-border);background:var(--checkbox-background)}.cdx-list__checkbox-check:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:100%;background-color:var(--color-bg-checked);visibility:hidden;pointer-events:none;transform:scale(1);transition:transform .4s ease-out,opacity .4s}.cdx-list__checkbox-check--disabled{pointer-events:none}.cdx-list-start-with-field{background:#F8F8F8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:2px;display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto}.cdx-list-start-with-field--invalid{background:#FFECED;border:1px solid #E13F3F}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input{color:#e13f3f}.cdx-list-start-with-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;padding:0;line-height:22px;min-width:calc(100% - var(--toolbox-buttons-size) - var(--icon-margin-right))}.cdx-list-start-with-field__input::placeholder{color:var(--grayText);font-weight:500}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const D0='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9"/></svg>',Hc='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.2 12L11.0586 13.8586C11.1367 13.9367 11.2633 13.9367 11.3414 13.8586L14.7 10.5"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>',Uc='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="9" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 17H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 12H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 7H4.99002"/></svg>',zc='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="12" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.79999 14L7.79999 7.2135C7.79999 7.12872 7.7011 7.0824 7.63597 7.13668L4.79999 9.5"/></svg>',F0='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 14.2L10 7.4135C10 7.32872 9.90111 7.28241 9.83598 7.33668L7 9.7" stroke="black" stroke-width="1.6" stroke-linecap="round"/>
102<path d="M13.2087 14.2H13.2" stroke="black" stroke-width="1.6" stroke-linecap="round"/></svg>',V0='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2087 14.2H13.2" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M10 14.2L10 9.5" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M10 7.01L10 7" stroke="black" stroke-width="1.8" stroke-linecap="round"/></svg>',H0='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2087 14.2H13.2" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M10 14.2L10 7.2" stroke="black" stroke-width="1.6" stroke-linecap="round"/></svg>',U0='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.0087 14.2H16" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M7 14.2L7.78865 12M13 14.2L12.1377 12M7.78865 12C7.78865 12 9.68362 7 10 7C10.3065 7 12.1377 12 12.1377 12M7.78865 12L12.1377 12" stroke="black" stroke-width="1.6" stroke-linecap="round"/></svg>',z0='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.2087 14.2H14.2" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M11.5 14.5C11.5 14.5 11 13.281 11 12.5M7 9.5C7 9.5 7.5 8.5 9 8.5C10.5 8.5 11 9.5 11 10.5L11 11.5M11 11.5L11 12.5M11 11.5C11 11.5 7 11 7 13C7 15.3031 11 15 11 12.5" stroke="black" stroke-width="1.6" stroke-linecap="round"/></svg>',W0='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 14.2L8 7.4135C8 7.32872 7.90111 7.28241 7.83598 7.33668L5 9.7" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M14 13L16.4167 10.7778M16.4167 10.7778L14 8.5M16.4167 10.7778H11.6562" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>';var Qo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),n}var ae={},da={},ha={};Object.defineProperty(ha,"__esModule",{value:!0});ha.allInputsSelector=G0;function G0(){var e=["text","password","email","number","search","tel","url"];return"[contenteditable=true], textarea, input:not([type]), "+e.map(function(t){return'input[type="'.concat(t,'"]')}).join(", ")}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.allInputsSelector=void 0;var t=ha;Object.defineProperty(e,"allInputsSelector",{enumerable:!0,get:function(){return t.allInputsSelector}})})(da);var sn={},fa={};Object.defineProperty(fa,"__esModule",{value:!0});fa.isNativeInput=K0;function K0(e){var t=["INPUT","TEXTAREA"];return e&&e.tagName?t.includes(e.tagName):!1}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isNativeInput=void 0;var t=fa;Object.defineProperty(e,"isNativeInput",{enumerable:!0,get:function(){return t.isNativeInput}})})(sn);var zh={},pa={};Object.defineProperty(pa,"__esModule",{value:!0});pa.append=Y0;function Y0(e,t){Array.isArray(t)?t.forEach(function(n){e.appendChild(n)}):e.appendChild(t)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.append=void 0;var t=pa;Object.defineProperty(e,"append",{enumerable:!0,get:function(){return t.append}})})(zh);var ma={},ga={};Object.defineProperty(ga,"__esModule",{value:!0});ga.blockElements=X0;function X0(){return["address","article","aside","blockquote","canvas","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","ruby","section","table","tbody","thead","tr","tfoot","ul","video"]}
vendor: 4,067 bytes, line 102
102(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.blockElements=void 0;var t=ga;Object.defineProperty(e,"blockElements",{enumerable:!0,get:function(){return t.blockElements}})})(ma);var Wh={},va={};Object.defineProperty(va,"__esModule",{value:!0});va.calculateBaseline=Z0;function Z0(e){var t=window.getComputedStyle(e),n=parseFloat(t.fontSize),o=parseFloat(t.lineHeight)||n*1.2,i=parseFloat(t.paddingTop),r=parseFloat(t.borderTopWidth),s=parseFloat(t.marginTop),a=n*.8,l=(o-n)/2,c=s+r+i+l+a;return c}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateBaseline=void 0;var t=va;Object.defineProperty(e,"calculateBaseline",{enumerable:!0,get:function(){return t.calculateBaseline}})})(Wh);var qh={},ba={},ya={},ka={};Object.defineProperty(ka,"__esModule",{value:!0});ka.isContentEditable=J0;function J0(e){return e.contentEditable==="true"}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isContentEditable=void 0;var t=ka;Object.defineProperty(e,"isContentEditable",{enumerable:!0,get:function(){return t.isContentEditable}})})(ya);Object.defineProperty(ba,"__esModule",{value:!0});ba.canSetCaret=tw;var Q0=sn,ew=ya;function tw(e){var t=!0;if((0,Q0.isNativeInput)(e))switch(e.type){case"file":case"checkbox":case"radio":case"hidden":case"submit":case"button":case"image":case"reset":t=!1;break}else t=(0,ew.isContentEditable)(e);return t}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.canSetCaret=void 0;var t=ba;Object.defineProperty(e,"canSetCaret",{enumerable:!0,get:function(){return t.canSetCaret}})})(qh);var Si={},wa={};function nw(e,t,n){const o=n.value!==void 0?"value":"get",i=n[o],r=`#${t}Cache`;if(n[o]=function(...s){return this[r]===void 0&&(this[r]=i.apply(this,s)),this[r]},o==="get"&&n.set){const s=n.set;n.set=function(a){delete e[r],s.apply(this,a)}}return n}function Gh(){const e={win:!1,mac:!1,x11:!1,linux:!1},t=Object.keys(e).find(n=>window.navigator.appVersion.toLowerCase().indexOf(n)!==-1);return t!==void 0&&(e[t]=!0),e}function xa(e){return e!=null&&e!==""&&(typeof e!="object"||Object.keys(e).length>0)}function ow(e){return!xa(e)}const iw=()=>typeof window<"u"&&window.navigator!==null&&xa(window.navigator.platform)&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1);function rw(e){const t=Gh();return e=e.replace(/shift/gi,"â§").replace(/backspace/gi,"â«").replace(/enter/gi,"â").replace(/up/gi,"â").replace(/left/gi,"â").replace(/down/gi,"â").replace(/right/gi,"â").replace(/escape/gi,"â").replace(/insert/gi,"Ins").replace(/delete/gi,"â¡").replace(/\+/gi,"+"),t.mac?e=e.replace(/ctrl|cmd/gi,"â").replace(/alt/gi,"â¥"):e=e.replace(/cmd/gi,"Ctrl").replace(/windows/gi,"WIN"),e}function sw(e){return e[0].toUpperCase()+e.slice(1)}function aw(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="-999px",t.style.bottom="-999px",t.innerHTML=e,document.body.appendChild(t);const n=window.getSelection(),o=document.createRange();if(o.selectNode(t),n===null)throw new Error("Cannot copy text to clipboard");n.removeAllRanges(),n.addRange(o),document.execCommand("copy"),document.body.removeChild(t)}function lw(e,t,n){let o;return(...i)=>{const r=this,s=()=>{o=void 0,n!==!0&&e.apply(r,i)},a=n===!0&&o!==void 0;window.clearTimeout(o),o=window.setTimeout(s,t),a&&e.apply(r,i)}}function Nt(e){return Object.prototype.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function cw(e){return Nt(e)==="boolean"}function Kh(e){return Nt(e)==="function"||Nt(e)==="asyncfunction"}function uw(e){return Kh(e)&&/^\s*class\s+/.test(e.toString())}function dw(e){return Nt(e)==="number"}function Oo(e){return Nt(e)==="object"}function hw(e){return Promise.resolve(e)===e}function fw(e){return Nt(e)==="string"}function pw(e){return Nt(e)==="undefined"}function $r(e,...t){if(!t.length)return e;const n=t.shift();if(Oo(e)&&Oo(n))for(const o in n)Oo(n[o])?(e[o]===void 0&&Object.assign(e,{[o]:{}}),$r(e[o],n[o])):Object.assign(e,{[o]:n[o]});return $r(e,...t)}
vendor: 4,056 bytes, line 102
102function mw(e,t,n){const o=`«${t}» is deprecated and will be removed in the next major release. Please use the «${n}» instead.`;e&&console.warn(o)}function gw(e){try{return new URL(e).href}catch{}return e.substring(0,2)==="//"?window.location.protocol+e:window.location.origin+e}function vw(e){return e>47&&e<58||e===32||e===13||e===229||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223}const bw={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,META:91,SLASH:191},yw={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4};class kw{constructor(){this.completed=Promise.resolve()}add(t){return new Promise((n,o)=>{this.completed=this.completed.then(t).then(n).catch(o)})}}function ww(e,t,n=void 0){let o,i,r,s=null,a=0;n||(n={});const l=function(){a=n.leading===!1?0:Date.now(),s=null,r=e.apply(o,i),s===null&&(o=i=null)};return function(){const c=Date.now();!a&&n.leading===!1&&(a=c);const u=t-(c-a);return o=this,i=arguments,u<=0||u>t?(s&&(clearTimeout(s),s=null),a=c,r=e.apply(o,i),s===null&&(o=i=null)):!s&&n.trailing!==!1&&(s=setTimeout(l,u)),r}}const xw=Object.freeze(Object.defineProperty({__proto__:null,PromiseQueue:kw,beautifyShortcut:rw,cacheable:nw,capitalize:sw,copyTextToClipboard:aw,debounce:lw,deepMerge:$r,deprecationAssert:mw,getUserOS:Gh,getValidUrl:gw,isBoolean:cw,isClass:uw,isEmpty:ow,isFunction:Kh,isIosDevice:iw,isNumber:dw,isObject:Oo,isPrintableKey:vw,isPromise:hw,isString:fw,isUndefined:pw,keyCodes:bw,mouseButtons:yw,notEmpty:xa,throttle:ww,typeOf:Nt},Symbol.toStringTag,{value:"Module"})),Ca=q0(xw);Object.defineProperty(wa,"__esModule",{value:!0});wa.containsOnlyInlineElements=Ew;var Cw=Ca,Sw=ma;function Ew(e){var t;(0,Cw.isString)(e)?(t=document.createElement("div"),t.innerHTML=e):t=e;var n=function(o){return!(0,Sw.blockElements)().includes(o.tagName.toLowerCase())&&Array.from(o.children).every(n)};return Array.from(t.children).every(n)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.containsOnlyInlineElements=void 0;var t=wa;Object.defineProperty(e,"containsOnlyInlineElements",{enumerable:!0,get:function(){return t.containsOnlyInlineElements}})})(Si);var Yh={},Sa={},Ei={},Ea={};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.make=Tw;function Tw(e,t,n){var o;t===void 0&&(t=null),n===void 0&&(n={});var i=document.createElement(e);if(Array.isArray(t)){var r=t.filter(function(a){return a!==void 0});(o=i.classList).add.apply(o,r)}else t!==null&&i.classList.add(t);for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s]);return i}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.make=void 0;var t=Ea;Object.defineProperty(e,"make",{enumerable:!0,get:function(){return t.make}})})(Ei);Object.defineProperty(Sa,"__esModule",{value:!0});Sa.fragmentToString=Bw;var _w=Ei;function Bw(e){var t=(0,_w.make)("div");return t.appendChild(e),t.innerHTML}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fragmentToString=void 0;var t=Sa;Object.defineProperty(e,"fragmentToString",{enumerable:!0,get:function(){return t.fragmentToString}})})(Yh);var Xh={},Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.getContentLength=Iw;var Ow=sn;function Iw(e){var t,n;return(0,Ow.isNativeInput)(e)?e.value.length:e.nodeType===Node.TEXT_NODE?e.length:(n=(t=e.textContent)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getContentLength=void 0;var t=Ta;Object.defineProperty(e,"getContentLength",{enumerable:!0,get:function(){return t.getContentLength}})})(Xh);var _a={},Ba={},Wc=Qo&&Qo.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,r;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(Ba,"__esModule",{value:!0});Ba.getDeepestBlockElements=Zh;var Pw=Si;function Zh(e){return(0,Pw.containsOnlyInlineElements)(e)?[e]:Array.from(e.children).reduce(function(t,n){return Wc(Wc([],t,!0),Zh(n),!0)},[])}
vendor: 4,340 bytes, line 102
102(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepestBlockElements=void 0;var t=Ba;Object.defineProperty(e,"getDeepestBlockElements",{enumerable:!0,get:function(){return t.getDeepestBlockElements}})})(_a);var Jh={},Oa={},Ti={},Ia={};Object.defineProperty(Ia,"__esModule",{value:!0});Ia.isLineBreakTag=Mw;function Mw(e){return["BR","WBR"].includes(e.tagName)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isLineBreakTag=void 0;var t=Ia;Object.defineProperty(e,"isLineBreakTag",{enumerable:!0,get:function(){return t.isLineBreakTag}})})(Ti);var _i={},Pa={};Object.defineProperty(Pa,"__esModule",{value:!0});Pa.isSingleTag=Aw;function Aw(e){return["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"].includes(e.tagName)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSingleTag=void 0;var t=Pa;Object.defineProperty(e,"isSingleTag",{enumerable:!0,get:function(){return t.isSingleTag}})})(_i);Object.defineProperty(Oa,"__esModule",{value:!0});Oa.getDeepestNode=Qh;var Lw=sn,Nw=Ti,jw=_i;function Qh(e,t){t===void 0&&(t=!1);var n=t?"lastChild":"firstChild",o=t?"previousSibling":"nextSibling";if(e.nodeType===Node.ELEMENT_NODE&&e[n]){var i=e[n];if((0,jw.isSingleTag)(i)&&!(0,Lw.isNativeInput)(i)&&!(0,Nw.isLineBreakTag)(i))if(i[o])i=i[o];else if(i.parentNode!==null&&i.parentNode[o])i=i.parentNode[o];else return i.parentNode;return Qh(i,t)}return e}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepestNode=void 0;var t=Oa;Object.defineProperty(e,"getDeepestNode",{enumerable:!0,get:function(){return t.getDeepestNode}})})(Jh);var ef={},Ma={},vo=Qo&&Qo.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,r;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(Ma,"__esModule",{value:!0});Ma.findAllInputs=Vw;var $w=Si,Rw=_a,Dw=da,Fw=sn;function Vw(e){return Array.from(e.querySelectorAll((0,Dw.allInputsSelector)())).reduce(function(t,n){return(0,Fw.isNativeInput)(n)||(0,$w.containsOnlyInlineElements)(n)?vo(vo([],t,!0),[n],!1):vo(vo([],t,!0),(0,Rw.getDeepestBlockElements)(n),!0)},[])}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.findAllInputs=void 0;var t=Ma;Object.defineProperty(e,"findAllInputs",{enumerable:!0,get:function(){return t.findAllInputs}})})(ef);var tf={},Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.isCollapsedWhitespaces=Hw;function Hw(e){return!/[^\t\n\r ]/.test(e)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isCollapsedWhitespaces=void 0;var t=Aa;Object.defineProperty(e,"isCollapsedWhitespaces",{enumerable:!0,get:function(){return t.isCollapsedWhitespaces}})})(tf);var La={},Na={};Object.defineProperty(Na,"__esModule",{value:!0});Na.isElement=zw;var Uw=Ca;function zw(e){return(0,Uw.isNumber)(e)?!1:!!e&&!!e.nodeType&&e.nodeType===Node.ELEMENT_NODE}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isElement=void 0;var t=Na;Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return t.isElement}})})(La);var nf={},ja={},$a={},Ra={};Object.defineProperty(Ra,"__esModule",{value:!0});Ra.isLeaf=Ww;function Ww(e){return e===null?!1:e.childNodes.length===0}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isLeaf=void 0;var t=Ra;Object.defineProperty(e,"isLeaf",{enumerable:!0,get:function(){return t.isLeaf}})})($a);var Da={},Fa={};Object.defineProperty(Fa,"__esModule",{value:!0});Fa.isNodeEmpty=Xw;var qw=Ti,Gw=La,Kw=sn,Yw=_i;function Xw(e,t){var n="";return(0,Yw.isSingleTag)(e)&&!(0,qw.isLineBreakTag)(e)?!1:((0,Gw.isElement)(e)&&(0,Kw.isNativeInput)(e)?n=e.value:e.textContent!==null&&(n=e.textContent.replace("â","")),t!==void 0&&(n=n.replace(new RegExp(t,"g"),"")),n.trim().length===0)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isNodeEmpty=void 0;var t=Fa;Object.defineProperty(e,"isNodeEmpty",{enumerable:!0,get:function(){return t.isNodeEmpty}})})(Da);Object.defineProperty(ja,"__esModule",{value:!0});ja.isEmpty=Qw;var Zw=$a,Jw=Da;function Qw(e,t){e.normalize();for(var n=[e];n.length>0;){var o=n.shift();if(o){if(e=o,(0,Zw.isLeaf)(e)&&!(0,Jw.isNodeEmpty)(e,t))return!1;n.push.apply(n,Array.from(e.childNodes))}}return!0}
102(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=void 0;var t=ja;Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return t.isEmpty}})})(nf);var of={},Va={};Object.defineProperty(Va,"__esModule",{value:!0});Va.isFragment=t1;var e1=Ca;function t1(e){return(0,e1.isNumber)(e)?!1:!!e&&!!e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isFragment=void 0;var t=Va;Object.defineProperty(e,"isFragment",{enumerable:!0,get:function(){return t.isFragment}})})(of);var rf={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0});Ha.isHTMLString=o1;var n1=Ei;function o1(e){var t=(0,n1.make)("div");return t.innerHTML=e,t.childElementCount>0}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isHTMLString=void 0;var t=Ha;Object.defineProperty(e,"isHTMLString",{enumerable:!0,get:function(){return t.isHTMLString}})})(rf);var sf={},Ua={};Object.defineProperty(Ua,"__esModule",{value:!0});Ua.offset=i1;function i1(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop,i=t.top+o,r=t.left+n;return{top:i,left:r,bottom:i+t.height,right:r+t.width}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.offset=void 0;var t=Ua;Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return t.offset}})})(sf);var af={},za={};Object.defineProperty(za,"__esModule",{value:!0});za.prepend=r1;function r1(e,t){Array.isArray(t)?(t=t.reverse(),t.forEach(function(n){return e.prepe
102nd(n)})):e.prepend(t)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.prepend=void 0;var t=za;Object.defineProperty(e,"prepend",{enumerable:!0,get:function(){return t.prepend}})})(af);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.prepend=e.offset=e.make=e.isLineBreakTag=e.isSingleTag=e.isNodeEmpty=e.isLeaf=e.isHTMLString=e.isFragment=e.isEmpty=e.isElement=e.isContentEditable=e.isCollapsedWhitespaces=e.findAllInputs=e.isNativeInput=e.allInputsSelector=e.getDeepestNode=e.getDeepestBlockElements=e.getContentLength=e.fragmentToString=e.containsOnlyInlineElements=e.canSetCaret=e.calculateBaseline=e.blockElements=e.append=void 0;var t=da;Object.defineProperty(e,"allInputsSelector",{enumerable:!0,get:function(){return t.allInputsSelector}});var n=sn;Object.defineProperty(e,"isNativeInput",{enumerable:!0,get:function(){return n.isNativeInput}});var o=zh;Object.defineProperty(e,"append",{enumerable:!0,get:function(){return o.append}});var i=ma;Object.defineProperty(e,"blockElements",{enumerable:!0,get:function(){return i.blockElements}});var r=Wh;Object.defineProperty(e,"calculateBaseline",{enumerable:!0,get:function(){return r.calculateBaseline}});var s=qh;Object.defineProperty(e,"canSetCaret",{enumerable:!0,get:function(){return s.canSetCaret}});var a=Si;Object.defineProperty(e,"containsOnlyInlineElements",{enumerable:!0,get:function(){return a.containsOnlyInlineElements}});var l=Yh;Object.defineProperty(e,"fragmentToString",{enumerable:!0,get:function(){return l.fragmentToString}});var c=Xh;Object.defineProperty(e,"getContentLength",{enumerable:!0,get:function(){return c.getContentLength}});var u=_a;Object.defineProperty(e,"getDeepestBlockElements",{enumerable:!0,get:function(){return u.getDeepestBlockElements}});var d=Jh;Object.defineProperty(e,"getDeepestNode",{enumerable:!0,get:function(){return d.getDeepestNode}});var h=ef;Object.defineProperty(e,"findAllInputs",{enumerable:!0,get:function(){return h.findAllInputs}});var p=tf;Object.defineProperty(e,"isCollapsedWhitespaces",{enumerable:!0,get:function(){return p.isCollapsedWhitespaces}});var m=ya;Object.defineProperty(e,"isContentEditable",{enumerable:!0,get:function(){return m.isContentEditable}});var f=La;Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return f.isElement}});var b=nf;Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return b.isEmpty}});var v=of;Object.defineProperty(e,"isFragment",{enumerable:!0,get:function(){return v.isFragment}});var y=rf;Object.defineProperty(e,"isHTMLString",{enumerable:!0,get:function(){return y.isHTMLString}});var k=$a;Object.defineProperty(e,"isLeaf",{enumerable:!0,get:function(){return k.isLeaf}});var w=Da;Object.defineProperty(e,"isNodeEmpty",{enumerable:!0,get:function(){return w.isNodeEmpty}});var x=Ti;Object.defineProperty(e,"isLineBreakTag",{enumerable:!0,get:function(){return x.isLineBreakTag}});var E=_i;Object.defineProperty(e,"isSingleTag",{enumerable:!0,get:function(){return E.isSingleTag}});var T=Ei;Object.defineProperty(e,"make",{enumerable:!0,get:function(){return T.make}});var g=sf;Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return g.offset}});var C=af;Object.defineProperty(e,"prepend",{enumerable:!0,get:function(){return C.prepend}})})(ae);const Pe="cdx-list",Te={wrapper:Pe,item:`${Pe}__item`,itemContent:`${Pe}__item-content`,itemChildren:`${Pe}__item-children`};let lf=class Tt{static get CSS(){return{...Te,orderedList:`${Pe}-ordered`}}constructor(t,n){this.config=n,this.readOnly=t}renderWrapper(t){let n;return t===!0?n=ae.make("ol",[Tt.CSS.wrapper,Tt.CSS.orderedList]):n=ae.make("ol",[Tt.CSS.orderedList,Tt.CSS.itemChildren]),n}renderItem(t,n){const o=ae.make("li",Tt.CSS.item),i=ae.make("div",Tt.CSS.itemContent,{innerHTML:t,contentEditable:(!this.readOnly).toString()});return o.appendChild(i),o}getItemContent(t){const n=t.querySelector(`.${Tt.CSS.itemContent}`);return!n||ae.isEmpty(n)?"":n.innerHTML}getItemMeta(){return{}}composeDefaultMeta(){return{}}},cf=class _t{static get CSS(){return{...Te,unorderedList:`${Pe}-unordered`}}constructor(t,n){this.config=n,this.readOnly=t}renderWrapper(t){let n;return t===!0?n=ae.make("ul",[_t.CSS.wrapper,_t.CSS.unorderedList]):n=ae.make("ul",[_t.CSS.unorderedList,_t.CSS.itemChildren]),n}renderItem(t,n){const o=ae.make("li",_t.CSS.item),i=ae.make("div",_t.CSS.itemContent,{innerHTML:t,contentEditable:(!this.readOnly).toString()});return o.appendChild(i),o}getItemContent(t){const n=t.querySelector(`.${_t.CSS.itemContent}`);return!n||ae.isEmpty(n)?"":n.innerHTML}getItemMeta(){return{}}composeDefaultMeta(){return{}}};
vendor: 21,298 bytes, line 102
102function Ut(e){return e.nodeType===Node.ELEMENT_NODE}var Wn={},Wa={},Bi={},Oi={};Object.defineProperty(Oi,"__esModule",{value:!0});Oi.getContenteditableSlice=a1;var s1=ae;function a1(e,t,n,o,i){var r;i===void 0&&(i=!1);var s=document.createRange();if(o==="left"?(s.setStart(e,0),s.setEnd(t,n)):(s.setStart(t,n),s.setEnd(e,e.childNodes.length)),i===!0){var a=s.extractContents();return(0,s1.fragmentToString)(a)}var l=s.cloneContents(),c=document.createElement("div");c.appendChild(l);var u=(r=c.textContent)!==null&&r!==void 0?r:"";return u}Object.defineProperty(Bi,"__esModule",{value:!0});Bi.checkContenteditableSliceForEmptiness=u1;var l1=ae,c1=Oi;function u1(e,t,n,o){var i=(0,c1.getContenteditableSlice)(e,t,n,o);return(0,l1.isCollapsedWhitespaces)(i)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkContenteditableSliceForEmptiness=void 0;var t=Bi;Object.defineProperty(e,"checkContenteditableSliceForEmptiness",{enumerable:!0,get:function(){return t.checkContenteditableSliceForEmptiness}})})(Wa);var uf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getContenteditableSlice=void 0;var t=Oi;Object.defineProperty(e,"getContenteditableSlice",{enumerable:!0,get:function(){return t.getContenteditableSlice}})})(uf);var df={},qa={};Object.defineProperty(qa,"__esModule",{value:!0});qa.focus=h1;var d1=ae;function h1(e,t){var n,o;if(t===void 0&&(t=!0),(0,d1.isNativeInput)(e)){e.focus();var i=t?0:e.value.length;e.setSelectionRange(i,i)}else{var r=document.createRange(),s=window.getSelection();if(!s)return;var a=function(h,p){p===void 0&&(p=!1);var m=document.createTextNode("");p?h.insertBefore(m,h.firstChild):h.appendChild(m),r.setStart(m,0),r.setEnd(m,0)},l=function(h){return h!=null},c=e.childNodes,u=t?c[0]:c[c.length-1];if(l(u)){for(;l(u)&&u.nodeType!==Node.TEXT_NODE;)u=t?u.firstChild:u.lastChild;if(l(u)&&u.nodeType===Node.TEXT_NODE){var d=(o=(n=u.textContent)===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0,i=t?0:d;r.setStart(u,i),r.setEnd(u,i)}else a(e,t)}else a(e);s.removeAllRanges(),s.addRange(r)}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.focus=void 0;var t=qa;Object.defineProperty(e,"focus",{enumerable:!0,get:function(){return t.focus}})})(df);var Ga={},Ii={};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.getCaretNodeAndOffset=f1;function f1(){var e=window.getSelection();if(e===null)return[null,0];var t=e.focusNode,n=e.focusOffset;return t===null?[null,0]:(t.nodeType!==Node.TEXT_NODE&&t.childNodes.length>0&&(t.childNodes[n]!==void 0?(t=t.childNodes[n],n=0):(t=t.childNodes[n-1],t.textContent!==null&&(n=t.textContent.length))),[t,n])}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getCaretNodeAndOffset=void 0;var t=Ii;Object.defineProperty(e,"getCaretNodeAndOffset",{enumerable:!0,get:function(){return t.getCaretNodeAndOffset}})})(Ga);var hf={},Pi={};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.getRange=p1;function p1(){var e=window.getSelection();return e&&e.rangeCount?e.getRangeAt(0):null}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getRange=void 0;var t=Pi;Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return t.getRange}})})(hf);var ff={},Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.isCaretAtEndOfInput=v1;var qc=ae,m1=Ga,g1=Wa;function v1(e){var t=(0,qc.getDeepestNode)(e,!0);if(t===null)return!0;if((0,qc.isNativeInput)(t))return t.selectionEnd===t.value.length;var n=(0,m1.getCaretNodeAndOffset)(),o=n[0],i=n[1];return o===null?!1:(0,g1.checkContenteditableSliceForEmptiness)(e,o,i,"right")}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isCaretAtEndOfInput=void 0;var t=Ka;Object.defineProperty(e,"isCaretAtEndOfInput",{enumerable:!0,get:function(){return t.isCaretAtEndOfInput}})})(ff);var pf={},Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});Ya.isCaretAtStartOfInput=k1;var bo=ae,b1=Ii,y1=Bi;function k1(e){var t=(0,bo.getDeepestNode)(e);if(t===null||(0,bo.isEmpty)(e))return!0;if((0,bo.isNativeInput)(t))return t.selectionEnd===0;if((0,bo.isEmpty)(e))return!0;var n=(0,b1.getCaretNodeAndOffset)(),o=n[0],i=n[1];return o===null?!1:(0,y1.checkContenteditableSliceForEmptiness)(e,o,i,"left")}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isCaretAtStartOfInput=void 0;var t=Ya;Object.defineProperty(e,"isCaretAtStartOfInput",{enumerable:!0,get:function(){return t.isCaretAtStartOfInput}})})(pf);var mf={},Xa={};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.save=C1;var w1=ae,x1=Pi;function C1(){var e=(0,x1.getRange)(),t=(0,w1.make)("span");if(t.id="cursor",t.hidden=!0,!!e)return e.insertNode(t),function(){var n=window.getSelection();n&&(e.setStartAfter(t),e.setEndAfter(t),n.removeAllRanges(),n.addRange(e),setTimeout(function(){t.remove()},150))}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.save=void 0;var t=Xa;Object.defineProperty(e,"save",{enumerable:!0,get:function(){return t.save}})})(mf);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.save=e.isCaretAtStartOfInput=e.isCaretAtEndOfInput=e.getRange=e.getCaretNodeAndOffset=e.focus=e.getContenteditableSlice=e.checkContenteditableSliceForEmptiness=void 0;var t=Wa;Object.defineProperty(e,"checkContenteditableSliceForEmptiness",{enumerable:!0,get:function(){return t.checkContenteditableSliceForEmptiness}});var n=uf;Object.defineProperty(e,"getContenteditableSlice",{enumerable:!0,get:function(){return n.getContenteditableSlice}});var o=df;Object.defineProperty(e,"focus",{enumerable:!0,get:function(){return o.focus}});var i=Ga;Object.defineProperty(e,"getCaretNodeAndOffset",{enumerable:!0,get:function(){return i.getCaretNodeAndOffset}});var r=hf;Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return r.getRange}});var s=ff;Object.defineProperty(e,"isCaretAtEndOfInput",{enumerable:!0,get:function(){return s.isCaretAtEndOfInput}});var a=pf;Object.defineProperty(e,"isCaretAtStartOfInput",{enumerable:!0,get:function(){return a.isCaretAtStartOfInput}});var l=mf;Object.defineProperty(e,"save",{enumerable:!0,get:function(){return l.save}})})(Wn);class ge{static get CSS(){return{...Te,checklist:`${Pe}-checklist`,itemChecked:`${Pe}__checkbox--checked`,noHover:`${Pe}__checkbox--no-hover`,checkbox:`${Pe}__checkbox-check`,checkboxContainer:`${Pe}__checkbox`,checkboxCheckDisabled:`${Pe}__checkbox-check--disabled`}}constructor(t,n){this.config=n,this.readOnly=t}renderWrapper(t){let n;return t===!0?(n=ae.make("ul",[ge.CSS.wrapper,ge.CSS.checklist]),n.addEventListener("click",o=>{const i=o.target;if(i){const r=i.closest(`.${ge.CSS.checkboxContainer}`);r&&r.contains(i)&&this.toggleCheckbox(r)}})):n=ae.make("ul",[ge.CSS.checklist,ge.CSS.itemChildren]),n}renderItem(t,n){const o=ae.make("li",[ge.CSS.item,ge.CSS.item]),i=ae.make("div",ge.CSS.itemContent,{innerHTML:t,contentEditable:(!this.readOnly).toString()}),r=ae.make("span",ge.CSS.checkbox),s=ae.make("div",ge.CSS.checkboxContainer);return n.checked===!0&&s.classList.add(ge.CSS.itemChecked),this.readOnly&&s.classList.add(ge.CSS.checkboxCheckDisabled),r.innerHTML=D0,s.appendChild(r),o.appendChild(s),o.appendChild(i),o}getItemContent(t){const n=t.querySelector(`.${ge.CSS.itemContent}`);return!n||ae.isEmpty(n)?"":n.innerHTML}getItemMeta(t){const n=t.querySelector(`.${ge.CSS.checkboxContainer}`);return{checked:n?n.classList.contains(ge.CSS.itemChecked):!1}}composeDefaultMeta(){return{checked:!1}}toggleCheckbox(t){t.classList.toggle(ge.CSS.itemChecked),t.classList.add(ge.CSS.noHover),t.addEventListener("mouseleave",()=>this.removeSpecialHoverBehavior(t),{once:!0})}removeSpecialHoverBehavior(t){t.classList.remove(ge.CSS.noHover)}}function rr(e,t="after"){const n=[];let o;function i(r){switch(t){case"after":return r.nextElementSibling;case"before":return r.previousElementSibling}}for(o=i(e);o!==null;)n.push(o),o=i(o);return n.length!==0?n:null}function dt(e,t=!0){let n=e;return e.classList.contains(Te.item)&&(n=e.querySelector(`.${Te.itemChildren}`)),n===null?[]:Array.from(t?n.querySelectorAll(`:scope > .${Te.item}`):n.querySelectorAll(`.${Te.item}`))}function S1(e){return e.nextElementSibling===null}function E1(e){return e.querySelector(`.${Te.itemChildren}`)!==null}function Bt(e){return e.querySelector(`.${Te.itemChildren}`)}function sr(e){let t=e;e.classList.contains(Te.item)&&(t=Bt(e)),t!==null&&dt(t).length===0&&t.remove()}function Io(e){return e.querySelector(`.${Te.itemContent}`)}function gn(e,t=!0){const n=Io(e);n&&Wn.focus(n,t)}let ar=class{get currentItem(){const t=window.getSelection();if(!t)return null;let n=t.anchorNode;return!n||(Ut(n)||(n=n.parentNode),!n)||!Ut(n)?null:n.closest(`.${Te.item}`)}get currentItemLevel(){const t=this.currentItem;if(t===null)return null;let n=t.parentNode,o=0;for(;n!==null&&n!==this.listWrapper;)Ut(n)&&n.classList.contains(Te.item)&&(o+=1),n=n.parentNode;return o+1}constructor({data:t,config:n,api:o,readOnly:i,block:r},s){this.config=n,this.data=t,this.readOnly=i,this.api=o,this.block=r,this.renderer=s}render(){return this.listWrapper=this.renderer.renderWrapper(!0),this.data.items.length?this.appendItems(this.data.items,this.listWrapper):this.appendItems([{content:"",meta:{},items:[]}],this.listWrapper),this.readOnly||this.listWrapper.addEventListener("keydown",t=>{switch(t.key){case"Enter":t.shiftKey||this.enterPressed(t);break;case"Backspace":this.backspace(t);break;case"Tab":t.shiftKey?this.shiftTab(t):this.addTab(t);break}},!1),"start"in this.data.meta&&this.data.meta.start!==void 0&&this.changeStartWith(this.data.meta.start),"counterType"in this.data.meta&&this.data.meta.counterType!==void 0&&this.changeCounters(this.data.meta.counterType),this.listWrapper}save(t){const n=t??this.listWrapper,o=s=>dt(s).map(a=>{const l=Bt(a),c=this.renderer.getItemContent(a),u=this.renderer.getItemMeta(a),d=l?o(l):[];return{content:c,meta:u,items:d}}),i=n?o(n):[];let r={style:this.data.style,meta:{},items:i};return this.data.style==="ordered"&&(r.meta={start:this.data.meta.start,counterType:this.data.meta.counterType}),r}static get pasteConfig(){return{tags:["OL","UL","LI"]}}merge(t){const n=this.block.holder.querySelectorAll(`.${Te.item}`),o=n[n.length-1],i=Io(o);if(o===null||i===null||(i.insertAdjacentHTML("beforeend",t.items[0].content),this.listWrapper===void 0))return;const r=dt(this.listWrapper);if(r.length===0)return;const s=r[r.length-1];let a=Bt(s);const l=t.items.shift();l!==void 0&&(l.items.length!==0&&(a===null&&(a=this.renderer.renderWrapper(!1)),this.appendItems(l.items,a)),t.items.length>0&&this.appendItems(t.items,this.listWrapper))}onPaste(t){const n=t.detail.data;this.data=this.pasteHandler(n);const o=this.listWrapper;o&&o.parentNode&&o.parentNode.replaceChild(this.render(),o)}pasteHandler(t){const{tagName:n}=t;let o="unordered",i;switch(n){case"OL":o="ordered",i="ol";break;case"UL":case"LI":o="unordered",i="ul"}const r={style:o,meta:{},items:[]};o==="ordered"&&(this.data.meta.counterType="numeric",this.data.meta.start=1);const s=a=>Array.from(a.querySelectorAll(":scope > li")).map(l=>{const c=l.querySelector(`:scope > ${i}`),u=c?s(c):[];return{content:l.innerHTML??"",meta:{},items:u}});return r.items=s(t),r}changeStartWith(t){this.listWrapper.style.setProperty("counter-reset",`item ${t-1}`),this.data.meta.start=t}changeCounters(t){this.listWrapper.style.setProperty("--list-counter-type",t),this.data.meta.counterType=t}enterPressed(t){var n;const o=this.currentItem;if(t.stopPropagation(),t.preventDefault(),t.isComposing||o===null)return;const i=((n=this.renderer)==null?void 0:n.getItemContent(o).trim().length)===0,r=o.parentNode===this.listWrapper,s=o.previousElementSibling===null,a=this.api.blocks.getCurrentBlockIndex();if(r&&i)if(S1(o)&&!E1(o)){s?this.convertItemToDefaultBlock(a,!0):this.convertItemToDefaultBlock();return}else{this.splitList(o);return}else if(i){this.unshiftItem(o);return}else this.splitItem(o)}backspace(t){var n;const o=this.currentItem;if(o!==null&&Wn.isCaretAtStartOfInput(o)&&((n=window.getSelection())==null?void 0:n.isCollapsed)!==!1){if(t.stopPropagation(),o.parentNode===this.listWrapper&&o.previousElementSibling===null){this.convertFirstItemToDefaultBlock();return}t.preventDefault(),this.mergeItemWithPrevious(o)}}shiftTab(t){t.stopPropagation(),t.preventDefault(),this.currentItem!==null&&this.unshiftItem(this.currentItem)}unshiftItem(t){if(!t.parentNode||!Ut(t.parentNode))return;const n=t.parentNode.closest(`.${Te.item}`);if(!n)return;let o=Bt(t);if(t.parentElement===null)return;const i=rr(t);i!==null&&(o===null&&(o=this.renderer.renderWrapper(!1)),i.forEach(r=>{o.appendChild(r)}),t.appendChild(o)),n.after(t),gn(t,!1),sr(n)}splitList(t){const n=dt(t),o=this.block,i=this.api.blocks.getCurrentBlockIndex();if(n.length!==0){const l=n[0];this.unshiftItem(l),gn(t,!1)}if(t.previousElementSibling===null&&t.parentNode===this.listWrapper){this.convertItemToDefaultBlock(i);return}const r=rr(t);if(r===null)return;const s=this.renderer.renderWrapper(!0);r.forEach(l=>{s.appendChild(l)});const a=this.save(s);a.meta.start=this.data.style=="ordered"?1:void 0,this.api.blocks.insert(o?.name,a,this.config,i+1),this.convertItemToDefaultBlock(i+1),s.remove()}splitItem(t){const[n,o]=Wn.getCaretNodeAndOffset();if(n===null)return;const i=Io(t);let r;i===null?r="":r=Wn.getContenteditableSlice(i,n,o,"right",!0);const s=Bt(t),a=this.renderItem(r);t?.after(a),s&&a.appendChild(s),gn(a)}mergeItemWithPrevious(t){const n=t.previousElementSibling,o=t.parentNode;if(o===null||!Ut(o))return;const i=o.closest(`.${Te.item}`);if(!n&&!i||n&&!Ut(n))return;let r;if(n){const d=dt(n,!1);d.length!==0&&d.length!==0?r=d[d.length-1]:r=n}else r=i;const s=this.renderer.getItemContent(t);if(!r)return;gn(r,!1);const a=Io(r);if(a===null)return;a.insertAdjacentHTML("beforeend",s);const l=dt(t);if(l.length===0){t.remove(),sr(r);return}const c=n||i,u=Bt(c)??this.renderer.renderWrapper(!1);n?l.forEach(d=>{u.appendChild(d)}):l.forEach(d=>{u.prepend(d)}),Bt(c)===null&&r.appendChild(u),t.remove()}addTab(t){var n;t.stopPropagation(),t.preventDefault();const o=this.currentItem;if(!o)return;if(((n=this.config)==null?void 0:n.maxLevel)!==void 0){const s=this.currentItemLevel;if(s!==null&&s===this.config.maxLevel)return}const i=o.previousSibling;if(i===null||!Ut(i))return;const r=Bt(i);if(r)r.appendChild(o),dt(o).forEach(s=>{r.appendChild(s)});else{const s=this.renderer.renderWrapper(!1);s.appendChild(o),dt(o).forEach(a=>{s.appendChild(a)}),i.appendChild(s)}sr(o),gn(o,!1)}convertItemToDefaultBlock(t,n){let o;const i=this.currentItem,r=i!==null?this.renderer.getItemContent(i):"";n===!0&&this.api.blocks.delete(),t!==void 0?o=this.api.blocks.insert(void 0,{text:r},void 0,t):o=this.api.blocks.insert(),i?.remove(),this.api.caret.setToBlock(o,"start")}convertFirstItemToDefaultBlock(){const t=this.currentItem;if(t===null)return;const n=dt(t);if(n.length!==0){const s=n[0];this.unshiftItem(s),gn(t)}const o=rr(t),i=this.api.blocks.getCurrentBlockIndex(),r=o===null;this.convertItemToDefaultBlock(i,r)}renderItem(t,n){const o=n??this.renderer.composeDefaultMeta();switch(!0){case this.renderer instanceof lf:return this.renderer.renderItem(t,o);case this.renderer instanceof cf:return this.renderer.renderItem(t,o);default:return this.renderer.renderItem(t,o)}}appendItems(t,n){t.forEach(o=>{var i;const r=this.renderItem(o.content,o.meta);if(n.appendChild(r),o.items.length){const s=(i=this.renderer)==null?void 0:i.renderWrapper(!1);this.appendItems(o.items,s),r.appendChild(s)}})}};const vn={wrapper:`${Pe}-start-with-field`,input:`${Pe}-start-with-field__input`,startWithElementWrapperInvalid:`${Pe}-start-with-field--invalid`};function T1(e,{value:t,placeholder:n,attributes:o,sanitize:i}){const r=ae.make("div",vn.wrapper),s=ae.make("input",vn.input,{placeholder:n,tabIndex:-1,value:t});for(const a in o)s.setAttribute(a,o[a]);return r.appendChild(s),s.addEventListener("input",()=>{i!==void 0&&(s.value=i(s.value));const a=s.checkValidity();!a&&!r.classList.contains(vn.startWithElementWrapperInvalid)&&r.classList.add(vn.startWithElementWrapperInvalid),a&&r.classList.contains(vn.startWithElementWrapperInvalid)&&r.classList.remove(vn.startWithElementWrapperInvalid),a&&e(s.value)}),r}const Fn=new Map([["Numeric","numeric"],["Lower Roman","lower-roman"],["Upper Roman","upper-roman"],["Lower Alpha","lower-alpha"],["Upper Alpha","upper-alpha"]]),Gc=new Map([["numeric",F0],["lower-roman",V0],["upper-roman",H0],["lower-alpha",z0],["upper-alpha",U0]]);function _1(e){return e.replace(/\D+/g,"")}function B1(e){return typeof e.items[0]=="string"}function O1(e){return!("meta"in e)}function I1(e){return typeof e.items[0]!="string"&&"text"in e.items[0]&&"checked"in e.items[0]&&typeof e.items[0].text=="string"&&typeof e.items[0].checked=="boolean"}function P1(e){const t=[];return B1(e)?(e.items.forEach(n=>{t.push({content:n,meta:{},items:[]})}),{style:e.style,meta:{},items:t}):I1(e)?(e.items.forEach(n=>{t.push({content:n.text,meta:{checked:n.checked},items:[]})}),{style:"checklist",meta:{},items:t}):O1(e)?{style:e.style,meta:{},items:e.items}:structuredClone(e)}let lr=class Rr{static get isReadOnlySupported(){return!0}static get enableLineBreaks(){return!0}static get toolbox(){return[{icon:Uc,title:"Unordered List",data:{style:"unordered"}},{icon:zc,title:"Ordered List",data:{style:"ordered"}},{icon:Hc,title:"Checklist",data:{style:"checklist"}}]}static get pasteConfig(){return{tags:["OL","UL","LI"]}}static get conversionConfig(){return{export:t=>Rr.joinRecursive(t),import:(t,n)=>({meta:{},items:[{content:t,meta:{},items:[]}],style:n?.defaultStyle!==void 0?n.defaultStyle:"unordered"})}}get listStyle(){return this.data.style||this.defaultListStyle}set listStyle(t){var n;this.data.style=t,this.changeTabulatorByStyle();const o=this.list.render();(n=this.listElement)==null||n.replaceWith(o),this.listElement=o}constructor({data:t,config:n,api:o,readOnly:i,block:r}){var s;this.api=o,this.readOnly=i,this.config=n,this.block=r,this.defaultListStyle=((s=this.config)==null?void 0:s.defaultStyle)||"unordered",this.defaultCounterTypes=this.config.counterTypes||Array.from(Fn.values());const a={style:this.defaultListStyle,meta:{},items:[]};this.data=Object.keys(t).length?P1(t):a,this.listStyle==="ordered"&&this.data.meta.counterType===void 0&&(this.data.meta.counterType="numeric"),this.changeTabulatorByStyle()}static joinRecursive(t){return t.items.map(n=>`${n.content} ${Rr.joinRecursive(n)}`).join("")}render(){return this.listElement=this.list.render(),this.listElement}save(){return this.data=this.list.save(),this.data}merge(t){this.list.merge(t)}renderSettings(){const t=[{label:this.api.i18n.t("Unordered"),icon:Uc,closeOnActivate:!0,isActive:this.listStyle=="unordered",onActivate:()=>{this.listStyle="unordered"}},{label:this.api.i18n.t("Ordered"),icon:zc,closeOnActivate:!0,isActive:this.listStyle=="ordered",onActivate:()=>{this.listStyle="ordered"}},{label:this.api.i18n.t("Checklist"),icon:Hc,closeOnActivate:!0,isActive:this.listStyle=="checklist",onActivate:()=>{this.listStyle="checklist"}}];if(this.listStyle==="ordered"){const n=T1(r=>this.changeStartWith(Number(r)),{value:String(this.data.meta.start??1),placeholder:"",attributes:{required:"true"},sanitize:r=>_1(r)}),o=[{label:this.api.i18n.t("Start with"),icon:W0,children:{items:[{element:n,type:"html"}]}}],i={label:this.api.i18n.t("Counter type"),icon:Gc.get(this.data.meta.counterType),children:{items:[]}};Fn.forEach((r,s)=>{const a=Fn.get(s);this.defaultCounterTypes.includes(a)&&i.children.items.push({title:this.api.i18n.t(s),icon:Gc.get(a),isActive:this.data.meta.counterType===Fn.get(s),closeOnActivate:!0,onActivate:()=>{this.changeCounters(Fn.get(s))}})}),i.children.items.length>1&&o.push(i),t.push({type:"separator"},...o)}return t}onPaste(t){const{tagName:n}=t.detail.data;switch(n){case"OL":this.listStyle="ordered";break;case"UL":case"LI":this.listStyle="unordered"}this.list.onPaste(t)}pasteHandler(t){return this.list.pasteHandler(t)}changeCounters(t){var n;(n=this.list)==null||n.changeCounters(t),this.data.meta.counterType=t}changeStartWith(t){var n;(n=this.list)==null||n.changeStartWith(t),this.data.meta.start=t}changeTabulatorByStyle(){switch(this.listStyle){case"ordered":this.list=new ar({data:this.data,readOnly:this.readOnly,api:this.api,config:this.config,block:this.block},new lf(this.readOnly,this.config));break;case"unordered":this.list=new ar({data:this.data,readOnly:this.readOnly,api:this.api,config:this.config,block:this.block},new cf(this.readOnly,this.config));break;case"checklist":this.list=new ar({data:this.data,readOnly:this.readOnly,api:this.api,config:this.config,block:this.block},new ge(this.readOnly,this.config));break}}};(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ce-paragraph{line-height:1.6em;outline:none}.ce-block:only-of-type .ce-paragraph[data-placeholder-active]:empty:before,.ce-block:only-of-type .ce-paragraph[data-placeholder-active][data-empty=true]:before{content:attr(data-placeholder-active)}.ce-paragraph p:first-of-type{margin-top:0}.ce-paragraph p:last-of-type{margin-bottom:0}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const M1='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
102<path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 9V7.2C8 7.08954 8.08954 7 8.2 7L12 7M16 9V7.2C16 7.08954 15.9105 7 15.8 7L12 7M12 7L12 17M12 17H10M12 17H14"/></svg>';function A1(e){const t=document.createElement("div");t.innerHTML=e.trim();const n=document.createDocumentFragment();return n.append(...Array.from(t.childNodes)),n}/** 103 * Base Paragraph Block for the Editor.js. 104 * Represents a regular text block 105 * 106 * @author CodeX ([email protected]) 107 * @copyright CodeX 2018 108 * @license The MIT License (MIT) 109 */class Za{static get DEFAULT_PLACEHOLDER(){return""}constructor({data:t,config:n,api:o,readOnly:i}){this.api=o,this.readOnly=i,this._CSS={block:this.api.styles.block,wrapper:"ce-paragraph"},this.readOnly||(this.onKeyUp=this.onKeyUp.bind(this)),this._placeholder=n.placeholder?n.placeholder:Za.DEFAULT_PLACEHOLDER,this._data=t??{},this._element=null,this._preserveBlank=n.preserveBlank??!1}onKeyUp(t){if(t.code!=="Backspace"&&t.code!=="Delete"||!this._element)return;const{textContent:n}=this._element;n===""&&(this._element.innerHTML="")}drawView(){const t=document.createElement("DIV");return t.classList.add(this._CSS.wrapper,this._CSS.block),t.contentEditable="false",t.dataset.placeholderActive=this.api.i18n.t(this._placeholder),this._data.text&&(t.innerHTML=this._data.text),this.readOnly||(t.contentEditable="true",t.addEventListener("keyup",this.onKeyUp)),t}render(){return this._element=this.drawView(),this._element}merge(t){if(!this._element)return;this._data.text+=t.text;const n=A1(t.text);this._element.appendChild(n),this._element.normalize()}validate(t){return!(t.text.trim()===""&&!this._preserveBlank)}save(t){return{text:t.innerHTML}}onPaste(t){const n={text:t.detail.data.innerHTML};this._data=n,window.requestAnimationFrame(()=>{this._element&&(this._element.innerHTML=this._data.text||"")})}static get conversionConfig(){return{export:"text",import:"text"}}static get sanitize(){return{text:{br:!0}}}static get isReadOnlySupported(){return!0}static get pasteConfig(){return{tags:["P"]}}static get toolbox(){return{icon:M1,title:"Text"}}}(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".cdx-quote-icon svg{transform:rotate(180deg)}.cdx-quote{margin:0}.cdx-quote__text{min-height:158px;margin-bottom:10px}.cdx-quote [contentEditable=true][data-placeholder]:before{position:absolute;content:attr(data-placeholder);color:#707684;font-weight:400;opacity:0}
109.cdx-quote [contentEditable=true][data-placeholder]:empty:before{opacity:1}.cdx-quote [contentEditable=true][data-placeholder]:empty:focus:before{opacity:0}.cdx-quote-settings{display:flex}.cdx-quote-settings .cdx-settings-button{width:50%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const L1='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M18 7L6 7"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M18 17H6"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 12L8 12"/></svg>',N1='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M17 7L5 7"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M17 17H5"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M13 12L5 12"/></svg>',j1='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 10.8182L9 10.8182C8.80222 10.8182 8.60888 10.7649 8.44443 10.665C8.27998 10.5651 8.15181 10.4231 8.07612 10.257C8.00043 10.0909 7.98063 9.90808 8.01922 9.73174C8.0578 9.55539 8.15304 9.39341 8.29289 9.26627C8.43275 9.13913 8.61093 9.05255 8.80491 9.01747C8.99889 8.98239 9.19996 9.00039 9.38268 9.0692C9.56541 9.13801 9.72159 9.25453 9.83147 9.40403C9.94135 9.55353 10 9.72929 10 9.90909L10 12.1818C10 12.664 9.78929 13.1265 9.41421 13.4675C9.03914 13.8084 8.53043 14 8 14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 10.8182L15 10.8182C14.8022 10.8182 14.6089 10.7649 14.4444 10.665C14.28 10.5651 14.1518 10.4231 14.0761 10.257C14.0004 10.0909 13.9806 9.90808 14.0192 9.73174C14.0578 9.55539 14.153 9.39341 14.2929 9.26627C14.4327 9.13913 14.6109 9.05255 14.8049 9.01747C14.9989 8.98239 15.2 9.00039 15.3827 9.0692C15.5654 9.13801 15.7216 9.25453 15.8315 9.40403C15.9414 9.55353 16 9.72929 16 9.90909L16 12.1818C16 12.664 15.7893 13.1265 15.4142 13.4675C15.0391 13.8084 14.5304 14 14 14"/></svg>';var ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),n}var Po={},Ja={},Qa={};Object.defineProperty(Qa,"__esModule",{value:!0});Qa.allInputsSelector=R1;function R1(){var e=["text","password","email","number","search","tel","url"];return"[contenteditable=true], textarea, input:not([type]), "+e.map(function(t){return'input[type="'.concat(t,'"]')}).join(", ")}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.allInputsSelector=void 0;var t=Qa;Object.defineProperty(e,"allInputsSelector",{enumerable:!0,get:function(){return t.allInputsSelector}})})(Ja);var an={},el={};
vendor: 5,742 bytes, line 109
109Object.defineProperty(el,"__esModule",{value:!0});el.isNativeInput=D1;function D1(e){var t=["INPUT","TEXTAREA"];return e&&e.tagName?t.includes(e.tagName):!1}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isNativeInput=void 0;var t=el;Object.defineProperty(e,"isNativeInput",{enumerable:!0,get:function(){return t.isNativeInput}})})(an);var gf={},tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.append=F1;function F1(e,t){Array.isArray(t)?t.forEach(function(n){e.appendChild(n)}):e.appendChild(t)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.append=void 0;var t=tl;Object.defineProperty(e,"append",{enumerable:!0,get:function(){return t.append}})})(gf);var nl={},ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.blockElements=V1;function V1(){return["address","article","aside","blockquote","canvas","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","ruby","section","table","tbody","thead","tr","tfoot","ul","video"]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.blockElements=void 0;var t=ol;Object.defineProperty(e,"blockElements",{enumerable:!0,get:function(){return t.blockElements}})})(nl);var vf={},il={};Object.defineProperty(il,"__esModule",{value:!0});il.calculateBaseline=H1;function H1(e){var t=window.getComputedStyle(e),n=parseFloat(t.fontSize),o=parseFloat(t.lineHeight)||n*1.2,i=parseFloat(t.paddingTop),r=parseFloat(t.borderTopWidth),s=parseFloat(t.marginTop),a=n*.8,l=(o-n)/2,c=s+r+i+l+a;return c}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateBaseline=void 0;var t=il;Object.defineProperty(e,"calculateBaseline",{enumerable:!0,get:function(){return t.calculateBaseline}})})(vf);var bf={},rl={},sl={},al={};Object.defineProperty(al,"__esModule",{value:!0});al.isContentEditable=U1;function U1(e){return e.contentEditable==="true"}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isContentEditable=void 0;var t=al;Object.defineProperty(e,"isContentEditable",{enumerable:!0,get:function(){return t.isContentEditable}})})(sl);Object.defineProperty(rl,"__esModule",{value:!0});rl.canSetCaret=q1;var z1=an,W1=sl;function q1(e){var t=!0;if((0,z1.isNativeInput)(e))switch(e.type){case"file":case"checkbox":case"radio":case"hidden":case"submit":case"button":case"image":case"reset":t=!1;break}else t=(0,W1.isContentEditable)(e);return t}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.canSetCaret=void 0;var t=rl;Object.defineProperty(e,"canSetCaret",{enumerable:!0,get:function(){return t.canSetCaret}})})(bf);var Mi={},ll={};function G1(e,t,n){const o=n.value!==void 0?"value":"get",i=n[o],r=`#${t}Cache`;if(n[o]=function(...s){return this[r]===void 0&&(this[r]=i.apply(this,s)),this[r]},o==="get"&&n.set){const s=n.set;n.set=function(a){delete e[r],s.apply(this,a)}}return n}function yf(){const e={win:!1,mac:!1,x11:!1,linux:!1},t=Object.keys(e).find(n=>window.navigator.appVersion.toLowerCase().indexOf(n)!==-1);return t!==void 0&&(e[t]=!0),e}function cl(e){return e!=null&&e!==""&&(typeof e!="object"||Object.keys(e).length>0)}function K1(e){return!cl(e)}const Y1=()=>typeof window<"u"&&window.navigator!==null&&cl(window.navigator.platform)&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1);function X1(e){const t=yf();return e=e.replace(/shift/gi,"â§").replace(/backspace/gi,"â«").replace(/enter/gi,"â").replace(/up/gi,"â").replace(/left/gi,"â").replace(/down/gi,"â").replace(/right/gi,"â").replace(/escape/gi,"â").replace(/insert/gi,"Ins").replace(/delete/gi,"â¡").replace(/\+/gi,"+"),t.mac?e=e.replace(/ctrl|cmd/gi,"â").replace(/alt/gi,"â¥"):e=e.replace(/cmd/gi,"Ctrl").replace(/windows/gi,"WIN"),e}function Z1(e){return e[0].toUpperCase()+e.slice(1)}function J1(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="-999px",t.style.bottom="-999px",t.innerHTML=e,document.body.appendChild(t);const n=window.getSelection(),o=document.createRange();if(o.selectNode(t),n===null)throw new Error("Cannot copy text to clipboard");n.removeAllRanges(),n.addRange(o),document.execCommand("copy"),document.body.removeChild(t)}function Q1(e,t,n){let o;return(...i)=>{const r=this,s=()=>{o=void 0,n!==!0&&e.apply(r,i)},a=n===!0&&o!==void 0;window.clearTimeout(o),o=window.setTimeout(s,t),a&&e.apply(r,i)}}function jt(e){return Object.prototype.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function ex(e){return jt(e)==="boolean"}function kf(e){return jt(e)==="function"||jt(e)==="asyncfunction"}function tx(e){return kf(e)&&/^\s*class\s+/.test(e.toString())}function nx(e){return jt(e)==="number"}function Mo(e){return jt(e)==="object"}function ox(e){return Promise.resolve(e)===e}function ix(e){return jt(e)==="string"}function rx(e){return jt(e)==="undefined"}function Dr(e,...t){if(!t.length)return e;const n=t.shift();if(Mo(e)&&Mo(n))for(const o in n)Mo(n[o])?(e[o]===void 0&&Object.assign(e,{[o]:{}}),Dr(e[o],n[o])):Object.assign(e,{[o]:n[o]});return Dr(e,...t)}function sx(e,t,n){const o=`«${t}» is deprecated and will be removed in the next major release. Please use the «${n}» instead.`;e&&console.warn(o)}function ax(e){try{return new URL(e).href}catch{}return e.substring(0,2)==="//"?window.location.protocol+e:window.location.origin+e}function lx(e){return e>47&&e<58||e===32||e===13||e===229||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223}const cx={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,META:91,SLASH:191},ux={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4};
vendor: 1,037 bytes, line 109
109class dx{constructor(){this.completed=Promise.resolve()}add(t){return new Promise((n,o)=>{this.completed=this.completed.then(t).then(n).catch(o)})}}function hx(e,t,n=void 0){let o,i,r,s=null,a=0;n||(n={});const l=function(){a=n.leading===!1?0:Date.now(),s=null,r=e.apply(o,i),s===null&&(o=i=null)};return function(){const c=Date.now();!a&&n.leading===!1&&(a=c);const u=t-(c-a);return o=this,i=arguments,u<=0||u>t?(s&&(clearTimeout(s),s=null),a=c,r=e.apply(o,i),s===null&&(o=i=null)):!s&&n.trailing!==!1&&(s=setTimeout(l,u)),r}}const fx=Object.freeze(Object.defineProperty({__proto__:null,PromiseQueue:dx,beautifyShortcut:X1,cacheable:G1,capitalize:Z1,copyTextToClipboard:J1,debounce:Q1,deepMerge:Dr,deprecationAssert:sx,getUserOS:yf,getValidUrl:ax,isBoolean:ex,isClass:tx,isEmpty:K1,isFunction:kf,isIosDevice:Y1,isNumber:nx,isObject:Mo,isPrintableKey:lx,isPromise:ox,isString:ix,isUndefined:rx,keyCodes:cx,mouseButtons:ux,notEmpty:cl,throttle:hx,typeOf:jt},Symbol.toStringTag,{value:"Module"})),ul=$1(fx);Object.defineProperty(ll,"__esMo
109dule",{value:!0});ll.containsOnlyInlineElements=gx;var px=ul,mx=nl;function gx(e){var t;(0,px.isString)(e)?(t=document.createElement("div"),t.innerHTML=e):t=e;var n=function(o){return!(0,mx.blockElements)().includes(o.tagName.toLowerCase())&&Array.from(o.children).every(n)};return Array.from(t.children).every(n)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.containsOnlyInlineElements=void 0;var t=ll;Object.defineProperty(e,"containsOnlyInlineElements",{enumerable:!0,get:function(){return t.containsOnlyInlineElements}})})(Mi);var wf={},dl={},Ai={},hl={};Object.defineProperty(hl,"__esModule",{value:!0});hl.make=vx;function vx(e,t,n){var o;t===void 0&&(t=null),n===void 0&&(n={});var i=document.createElement(e);if(Array.isArray(t)){var r=t.filter(function(a){return a!==void 0});(o=i.classList).add.apply(o,r)}else t!==null&&i.classList.add(t);for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s]);return i}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.make=void 0;var t=hl;Object.defineProperty(e,"make",{enumerable:!0,get:function(){return t.make}})})(Ai);Object.defineProperty(dl,"__esModule",{value:!0});dl.fragmentToString=yx;var bx=Ai;function yx(e){var t=(0,bx.make)("div");return t.appendChild(e),t.innerHTML}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fragmentToString=void 0;var t=dl;Object.defineProperty(e,"fragmentToString",{enumerable:!0,get:function(){return t.fragmentToString}})})(wf);var xf={},fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.getContentLength=wx;var kx=an;function wx(e){var t,n;return(0,kx.isNativeInput)(e)?e.value.length:e.nodeType===Node.TEXT_NODE?e.length:(n=(t=e.textContent)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getContentLength=void 0;var t=fl;Object.defineProperty(e,"getContentLength",{enumerable:!0,get:function(){return t.getContentLength}})})(xf);var pl={},ml={},Kc=ei&&ei.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,r;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(ml,"__esModule",{value:!0});ml.getDeepestBlockElements=Cf;var xx=Mi;function Cf(e){return(0,xx.containsOnlyInlineElements)(e)?[e]:Array.from(e.children).reduce(function(t,n){return Kc(Kc([],t,!0),Cf(n),!0)},[])}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepestBlockElements=void 0;var t=ml;Object.defineProperty(e,"getDeepestBlockElements",{enumerable:!0,get:function(){return t.getDeepestBlockElements}})})(pl);var Sf={},gl={},Li={},vl={};
vendor: 5,675 bytes, line 109
109Object.defineProperty(vl,"__esModule",{value:!0});vl.isLineBreakTag=Cx;function Cx(e){return["BR","WBR"].includes(e.tagName)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isLineBreakTag=void 0;var t=vl;Object.defineProperty(e,"isLineBreakTag",{enumerable:!0,get:function(){return t.isLineBreakTag}})})(Li);var Ni={},bl={};Object.defineProperty(bl,"__esModule",{value:!0});bl.isSingleTag=Sx;function Sx(e){return["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"].includes(e.tagName)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSingleTag=void 0;var t=bl;Object.defineProperty(e,"isSingleTag",{enumerable:!0,get:function(){return t.isSingleTag}})})(Ni);Object.defineProperty(gl,"__esModule",{value:!0});gl.getDeepestNode=Ef;var Ex=an,Tx=Li,_x=Ni;function Ef(e,t){t===void 0&&(t=!1);var n=t?"lastChild":"firstChild",o=t?"previousSibling":"nextSibling";if(e.nodeType===Node.ELEMENT_NODE&&e[n]){var i=e[n];if((0,_x.isSingleTag)(i)&&!(0,Ex.isNativeInput)(i)&&!(0,Tx.isLineBreakTag)(i))if(i[o])i=i[o];else if(i.parentNode!==null&&i.parentNode[o])i=i.parentNode[o];else return i.parentNode;return Ef(i,t)}return e}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepestNode=void 0;var t=gl;Object.defineProperty(e,"getDeepestNode",{enumerable:!0,get:function(){return t.getDeepestNode}})})(Sf);var Tf={},yl={},yo=ei&&ei.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,r;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(yl,"__esModule",{value:!0});yl.findAllInputs=Mx;var Bx=Mi,Ox=pl,Ix=Ja,Px=an;function Mx(e){return Array.from(e.querySelectorAll((0,Ix.allInputsSelector)())).reduce(function(t,n){return(0,Px.isNativeInput)(n)||(0,Bx.containsOnlyInlineElements)(n)?yo(yo([],t,!0),[n],!1):yo(yo([],t,!0),(0,Ox.getDeepestBlockElements)(n),!0)},[])}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.findAllInputs=void 0;var t=yl;Object.defineProperty(e,"findAllInputs",{enumerable:!0,get:function(){return t.findAllInputs}})})(Tf);var _f={},kl={};Object.defineProperty(kl,"__esModule",{value:!0});kl.isCollapsedWhitespaces=Ax;function Ax(e){return!/[^\t\n\r ]/.test(e)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isCollapsedWhitespaces=void 0;var t=kl;Object.defineProperty(e,"isCollapsedWhitespaces",{enumerable:!0,get:function(){return t.isCollapsedWhitespaces}})})(_f);var wl={},xl={};Object.defineProperty(xl,"__esModule",{value:!0});xl.isElement=Nx;var Lx=ul;function Nx(e){return(0,Lx.isNumber)(e)?!1:!!e&&!!e.nodeType&&e.nodeType===Node.ELEMENT_NODE}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isElement=void 0;var t=xl;Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return t.isElement}})})(wl);var Bf={},Cl={},Sl={},El={};Object.defineProperty(El,"__esModule",{value:!0});El.isLeaf=jx;function jx(e){return e===null?!1:e.childNodes.length===0}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isLeaf=void 0;var t=El;Object.defineProperty(e,"isLeaf",{enumerable:!0,get:function(){return t.isLeaf}})})(Sl);var Tl={},_l={};Object.defineProperty(_l,"__esModule",{value:!0});_l.isNodeEmpty=Vx;var $x=Li,Rx=wl,Dx=an,Fx=Ni;function Vx(e,t){var n="";return(0,Fx.isSingleTag)(e)&&!(0,$x.isLineBreakTag)(e)?!1:((0,Rx.isElement)(e)&&(0,Dx.isNativeInput)(e)?n=e.value:e.textContent!==null&&(n=e.textContent.replace("â","")),t!==void 0&&(n=n.replace(new RegExp(t,"g"),"")),n.trim().length===0)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isNodeEmpty=void 0;var t=_l;Object.defineProperty(e,"isNodeEmpty",{enumerable:!0,get:function(){return t.isNodeEmpty}})})(Tl);Object.defineProperty(Cl,"__esModule",{value:!0});Cl.isEmpty=zx;var Hx=Sl,Ux=Tl;function zx(e,t){e.normalize();for(var n=[e];n.length>0;){var o=n.shift();if(o){if(e=o,(0,Hx.isLeaf)(e)&&!(0,Ux.isNodeEmpty)(e,t))return!1;n.push.apply(n,Array.from(e.childNodes))}}return!0}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=void 0;var t=Cl;Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return t.isEmpty}})})(Bf);var Of={},Bl={};Object.defineProperty(Bl,"__esModule",{value:!0});Bl.isFragment=qx;var Wx=ul;function qx(e){return(0,Wx.isNumber)(e)?!1:!!e&&!!e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isFragment=void 0;var t=Bl;Object.defineProperty(e,"isFragment",{enumerable:!0,get:function(){return t.isFragment}})})(Of);var If={},Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});Ol.isHTMLString=Kx;var Gx=Ai;function Kx(e){var t=(0,Gx.make)("div");return t.innerHTML=e,t.childElementCount>0}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isHTMLString=void 0;var t=Ol;Object.defineProperty(e,"isHTMLString",{enumerable:!0,get:function(){return t.isHTMLString}})})(If);var Pf={},Il={};Object.defineProperty(Il,"__esModule",{value:!0});Il.offset=Yx;function Yx(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop,i=t.top+o,r=t.left+n;return{top:i,left:r,bottom:i+t.height,right:r+t.width}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.offset=void 0;var t=Il;Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return t.offset}})})(Pf);var Mf={},Pl={};Object.defineProperty(Pl,"__esModule",{value:!0});Pl.prepend=Xx;function Xx(e,t){Array.isArray(t)?(t=t.reverse(),t.forEach(function(n){return e.prepe
109nd(n)})):e.prepend(t)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.prepend=void 0;var t=Pl;Object.defineProperty(e,"prepend",{enumerable:!0,get:function(){return t.prepend}})})(Mf);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.prepend=e.offset=e.make=e.isLineBreakTag=e.isSingleTag=e.isNodeEmpty=e.isLeaf=e.isHTMLString=e.isFragment=e.isEmpty=e.isElement=e.isContentEditable=e.isCollapsedWhitespaces=e.findAllInputs=e.isNativeInput=e.allInputsSelector=e.getDeepestNode=e.getDeepestBlockElements=e.getContentLength=e.fragmentToString=e.containsOnlyInlineElements=e.canSetCaret=e.calculateBaseline=e.blockElements=e.append=void 0;var t=Ja;Object.defineProperty(e,"allInputsSelector",{enumerable:!0,get:function(){return t.allInputsSelector}});var n=an;Object.defineProperty(e,"isNativeInput",{enumerable:!0,get:function(){return n.isNativeInput}});var o=gf;Object.defineProperty(e,"append",{enumerable:!0,get:function(){return o.append}});var i=nl;Object.defineProperty(e,"blockElements",{enumerable:!0,get:function(){return i.blockElements}});var r=vf;Object.defineProperty(e,"calculateBaseline",{enumerable:!0,get:function(){return r.calculateBaseline}});var s=bf;Object.defineProperty(e,"canSetCaret",{enumerable:!0,get:function(){return s.canSetCaret}});var a=Mi;Object.defineProperty(e,"containsOnlyInlineElements",{enumerable:!0,get:function(){return a.containsOnlyInlineElements}});var l=wf;Object.defineProperty(e,"fragmentToString",{enumerable:!0,get:function(){return l.fragmentToString}});var c=xf;Object.defineProperty(e,"getContentLength",{enumerable:!0,get:function(){return c.getContentLength}});var u=pl;Object.defineProperty(e,"getDeepestBlockElements",{enumerable:!0,get:function(){return u.getDeepestBlockElements}});var d=Sf;Object.defineProperty(e,"getDeepestNode",{enumerable:!0,get:function(){return d.getDeepestNode}});var h=Tf;Object.defineProperty(e,"findAllInputs",{enumerable:!0,get:function(){return h.findAllInputs}});var p=_f;Object.defineProperty(e,"isCollapsedWhitespaces",{enumerable:!0,get:function(){return p.isCollapsedWhitespaces}});var m=sl;Object.defineProperty(e,"isContentEditable",{enumerable:!0,get:function(){return m.isContentEditable}});var f=wl;Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return f.isElement}});var b=Bf;Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return b.isEmpty}});var v=Of;Object.defineProperty(e,"isFragment",{enumerable:!0,get:function(){return v.isFragment}});var y=If;Object.defineProperty(e,"isHTMLString",{enumerable:!0,get:function(){return y.isHTMLString}});var k=Sl;Object.defineProperty(e,"isLeaf",{enumerable:!0,get:function(){return k.isLeaf}});var w=Tl;Object.defineProperty(e,"isNodeEmpty",{enumerable:!0,get:function(){return w.isNodeEmpty}});var x=Li;Object.defineProperty(e,"isLineBreakTag",{enumerable:!0,get:function(){return x.isLineBreakTag}});var E=Ni;Object.defineProperty(e,"isSingleTag",{enumerable:!0,get:function(){return E.isSingleTag}});var T=Ai;Object.defineProperty(e,"make",{enumerable:!0,get:function(){return T.make}});var g=Pf;Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return g.offset}});var C=Mf;Object.defineProperty(e,"prepend",{enumerable:!0,get:function(){return C.prepend}})})(Po);var Af=(e=>(e.Left="left",e.Center="center",e))(Af||{});class qn{constructor({data:t,config:n,api:o,readOnly:i,block:r}){const{DEFAULT_ALIGNMENT:s}=qn;this.api=o,this.readOnly=i,this.quotePlaceholder=o.i18n.t(n?.quotePlaceholder??qn.DEFAULT_QUOTE_PLACEHOLDER),this.captionPlaceholder=o.i18n.t(n?.captionPlaceholder??qn.DEFAULT_CAPTION_PLACEHOLDER),this.data={text:t.text||"",caption:t.caption||"",alignment:Object.values(Af).includes(t.alignment)?t.alignment:n?.defaultAlignment??s},this.css={baseClass:this.api.styles.block,wrapper:"cdx-quote",text:"cdx-quote__text",input:this.api.styles.input,caption:"cdx-quote__caption"},this.block=r}static get isReadOnlySupported(){return!0}static get toolbox(){return{icon:j1,title:"Quote"}}static get contentless(){return!0}static get enableLineBreaks(){return!0}static get DEFAULT_QUOTE_PLACEHOLDER(){return"Enter a quote"}static get DEFAULT_CAPTION_PLACEHOLDER(){return"Enter a caption"}static get DEFAULT_ALIGNMENT(){return"left"}static get conversionConfig(){return{import:"text",export:function(t){return t.caption?`${t.text} â ${t.caption}`:t.text}}}get CSS(){return{baseClass:this.api.styles.block,wrapper:"cdx-quote",text:"cdx-quote__text",input:this.api.styles.input,caption:"cdx-quote__c
109aption"}}get settings(){return[{name:"left",icon:N1},{name:"center",icon:L1}]}render(){const t=Po.make("blockquote",[this.css.baseClass,this.css.wrapper]),n=Po.make("div",[this.css.input,this.css.text],{contentEditable:!this.readOnly,innerHTML:this.data.text}),o=Po.make("div",[this.css.input,this.css.caption],{contentEditable:!this.readOnly,innerHTML:this.data.caption});return n.dataset.placeholder=this.quotePlaceholder,o.dataset.placeholder=this.captionPlaceholder,t.appendChild(n),t.appendChild(o),t}save(t){const n=t.querySelector(`.${this.css.text}`),o=t.querySelector(`.${this.css.caption}`);return Object.assign(this.data,{text:n?.innerHTML??"",caption:o?.innerHTML??""})}static get sanitize(){return{text:{br:!0},caption:{br:!0},alignment:{}}}renderSettings(){const t=n=>n&&n[0].toUpperCase()+n.slice(1);return this.settings.map(n=>({icon:n.icon,label:this.api.i18n.t(`Align ${t(n.name)}`),onActivate:()=>this._toggleTune(n.name),isActive:this.data.alignment===n.name,closeOnActivate:!0}))}_toggleTune(t){this.data.alignment=t,this.block.dispatchChange()}}const Zx={class:"d-flex align-center justify-space-between mb-4"},Jx={class:"mt-4"},Qx={key:0,class:"text-caption text-disabled"},eC={key:1,class:"text-caption text-disabled"},tC={class:"text-h5 font-weight-medium"},nC={class:"d-flex gap-2"},oC={key:0,class:"rounded-lg border border-error text-error bg-error-light pa-4 mb-4"},iC={class:"d-flex align-center justify-space-between mb-3"},rC={class:"d-flex gap-3"},sC={class:"d-flex align-center justify-space-between mb-3"},uS={__name:"AdminPlaybookApp",setup(e){const t=D([]),n=D(null),o=D({key:"",title:"",eyebrow:"",icon:"ShieldCheck",tagline:"",description:"",points:[""],next_step:"",panel_items:[{title:"",body:""}],content_json:{time:Date.now(),blocks:[]},is_active:!0,sort_order:0}),i=D(null),r=D(null),s=D(!1),a=D(!1),l=D(!1),c=D(!1),u=D("");O(()=>t.value.find(T=>T.id===n.value)??null);async function d(){s.value=!0,u.value="";try{const g=await(await fetch("/administrant/dashboard/playbook/data")).json();t.value=g.data??[],t.value.length&&p(t.value[0].id??null)}catch{u.value="Unable to load playbook pages."}finally{s.value=!1}}async function h(){o.value={key:"",title:"",eyebrow:"",icon:"ShieldCheck",tagline:"",description:"",points:[""],next_step:"",panel_items:[{title:"",body:""}],content_json:{time:Date.now(),blocks:[]},is_active:!0,sort_order:0},n.value=null,await E()}function p(T){n.value=T;const g=t.value.find(C=>C.id===T);if(!g){h();return}o.value={...g,points:g.points??[""],panel_items:g.panel_items??[{title:"",body:""}],content_json:g.content_json??{time:Date.now(),blocks:[]},is_active:g.is_active??!0,sort_order:g.sort_order??0},E()}function m(){o.value.points.push("")}function f(T){o.value.points.splice(T,1)}function b(){o.value.panel_items.push({title:"",body:""})}function v(T){o.value.panel_items.splice(T,1)}async function y(){a.value=!0,u.value="";try{const T={...o.value,content_json:await i.value?.save(),points:o.value.points.filter(Boolean),panel_items:o.value.panel_items.filter(A=>A.title||A.body)},g={"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]')?.getAttribute("content")??""},C=o.value.id?"PUT":"POST",P=o.value.id?`/administrant/dashboard/playbook/${o.value.id}`:"/administrant/dashboard/playbook",N=await fetch(P,{method:C,headers:g,body:JSON.stringify(T)}),j=await N.text();let L=null;try{L=JSON.parse(j)}catch{throw new Error(`Unexpected response from server (${N.status}).`)}if(!N.ok)throw new Error(L?.message||L?.error||"Unable to save playbook page.");if(await d(),!o.value.id&&L.data?.id){const A=t.value.find(M=>M.id===L.data.id);A&&p(A.id??null)}}catch(T){u.value=T instanceof Error?T.message:"Unable to save playbook page."}finally{a.value=!1}}function k(){o.value.id&&(c.value=!0)}async function w(){if(o.value.id){l.value=!0,u.value="",c.value=!1;try{const T={"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]')?.getAttribute("content")??""},g=await fetch(`/administrant/dashboard/playbook/${o.value.id}`,{method:"DELETE",headers:T}),C=await g.text();let P=null;try{P=JSON.parse(C)}catch{throw new Error(`Unexpected response from server (${g.status}).`)}if(!g.ok)throw new Error(P?.message||P?.error||"Unable to delete playbook page.");await d(),t.value.length?p(t.value[0].id??null):await h()}catch(T){u.value=T instanceof Error?T.message:"Unable to delete playbook page."}finally{l.value=!1}}}function x(T){return new Promise((g,C)=>{const P=new FileReader;P.onload=()=>g(P.result),P.onerror=()=>
109C(new Error("Unable to read the selected file.")),P.readAsDataURL(T)})}async function E(){r.value&&(i.value&&i.value.destroy(),i.value=new g0({holder:r.value,data:o.value.content_json??{time:Date.now(),blocks:[]},placeholder:"Start writing your playbook section content...",tools:{paragraph:{class:Za},header:{class:O0},list:{class:lr,inlineToolbar:!0,config:{defaultStyle:"unordered",toolbox:{title:"Unordered List"}}},orderedList:{class:lr,inlineToolbar:!0,config:{defaultStyle:"ordered",toolbox:{title:"Ordered List"}}},checklist:{class:lr,inlineToolbar:!0,config:{defaultStyle:"checklist",toolbox:{title:"Checklist"}}},quote:{class:qn},delimiter:{class:b0},embed:{class:w0},image:{class:R0,config:{uploader:{uploadByFile:async T=>({success:1,file:{url:await x(T)}})}}}},inlineToolbar:["bold","italic","link"]}))}return Bn(async()=>{await E(),await d()}),(T,g)=>(Xe(),Ft(fe,null,[S(R(hn),{class:"min-h-screen pa-6"},{default:G(()=>[S(R(et),{cols:"12",lg:"3"},{default:G(()=>[S(R(fn),{elevation:"1",class:"rounded-lg"},{default:G(()=>[S(R(Ct),null,{default:G(()=>[_("div",Zx,[g[12]||(g[12]=_("div",null,[_("div",{class:"text-h6 font-weight-medium"},"Playbook Manager")],-1)),S(R(ut),{size:"small",variant:"tonal",color:"primary",onClick:h},{default:G(()=>[...g[11]||(g[11]=[Ne("New",-1)])]),_:1})]),S(R(xr)),_("div",Jx,[s.value?(Xe(),Ft("div",Qx,"Loading pagesâ¦")):t.value.length===0?(Xe(),Ft("div",eC,"No playbook pages available.")):$i("",!0),S(R(Yg),{density:"compact",nav:"",class:"mt-2"},{default:G(()=>[(Xe(!0),Ft(fe,null,Ri(t.value,C=>(Xe(),co(R(wr),{key:C.id,active:n.value===C.id,value:C.id,color:"primary",variant:"tonal",class:"rounded-lg",onClick:P=>p(C.id??null)},{default:G(()=>[S(R(vd),null,{default:G(()=>[Ne(Ze(C.title),1)]),_:2},1024),S(R(gd),null,{default:G(()=>[Ne(Ze(C.key),1)]),_:2},1024)]),_:2},1032,["active","value","onClick"]))),128))]),_:1})])]),_:1})]),_:1})]),_:1}),S(R(et),{cols:"12",lg:"9"},{default:G(()=>[S(R(fn),{elevation:"1",class:"rounded-lg"},{default:G(()=>[S(R(yr),{class:"d-flex align-center justify-space-between"},{default:G(()=>[_("div",null,[_("div",tC,Ze(o.value.id?"Edit playbook":"Create a playbook section"),1)]),_("div",nC,[o.value.id?(Xe(),co(R(ut),{key:0,variant:"outlined",color:"error",loading:l.value,onClick:k},{default:G(()=>[Ne(Ze(l.value?"Deletingâ¦":"Delete"),1)]),_:1},8,["loading"])):$i("",!0),S(R(ut),{color:"primary",loading:a.value,onClick:y,elevation:"0"},{default:G(()=>[Ne(Ze(a.value?"Savingâ¦":"Save Playbook"),1)]),_:1},8,["loading"])])]),_:1}),S(R(xr)),S(R(Ct),null,{default:G(()=>[u.value?(Xe(),Ft("div",oC,Ze(u.value),1)):$i("",!0),S(R(hn),{class:"mb-4",dense:""},{default:G(()=>[S(R(et),{cols:"12",md:"6"},{default:G(()=>[S(R(xt),{label:"Section key",modelValue:o.value.key,"onUpdate:modelValue":g[0]||(g[0]=C=>o.value.key=C),density:"comfortable"},null,8,["modelValue"])]),_:1}),S(R(et),{cols:"12",md:"6"},{default:G(()=>[S(R(xt),{label:"Title",modelValue:o.value.title,"onUpdate:modelValue":g[1]||(g[1]=C=>o.value.title=C),density:"comfortable"},null,8,["modelValue"])]),_:1})]),_:1}),S(R(hn),{class:"mb-4",dense:""},{default:G(()=>[S(R(et),{cols:"12",md:"6"},{default:G(()=>[S(R(xt),{label:"Eyebrow",modelValue:o.value.eyebrow,"onUpdate:modelValue":g[2]||(g[2]=C=>o.value.eyebrow=C),density:"comfortable"},null,8,["modelValue"])]),_:1}),S(R(et),{cols:"12",md:"6"},{default:G(()=>[S(R(xt),{label:"Icon",modelValue:o.value.icon,"onUpdate:modelValue":g[3]||(g[3]=C=>o.value.icon=C),density:"comfortable"},null,8,["modelValue"])]),_:1})]),_:1}),S(R(xt),{label:"Tagline",modelValue:o.value.tagline,"onUpdate:modelValue":g[4]||(g[4]=C=>o.value.tagline=C),density:"comfortable",class:"mb-4"},null,8,["modelValue"]),S(R(Yi),{label:"Description",modelValue:o.value.description,"onUpdate:modelValue":g[5]||(g[5]=C=>o.value.description=C),rows:"4",class:"mb-4",density:"comfortable"},null,8,["modelValue"]),S(R(Yi),{label:"Suggested next step",modelValue:o.value.next_step,"onUpdate:modelValue":g[6]||(g[6]=C=>o.value.next_step=C),rows:"3",class:"mb-4",density:"comfortable"},null,8,["modelValue"]),S(R(fn),{class:"rounded-lg outlined mb-4"},{default:G(()=>[S(R(Ct),null,{default:G(()=>[_("div",iC,[g[14]||(g[14]=_("div",{class:"text-subtitle-2 font-weight-medium"},"Checklist points",-1)),S(R(ut),{variant:"text",size:"small",color:"primary",onClick:m},{default:G(()=>[...g[13]||(g[13]=[Ne("Add point",-1)])]),_:1})]),S(R(hn),{dense:""},{default:G(()=>[(Xe(!0),Ft(fe,null,Ri(o.value.points,(C,P)=>
109(Xe(),co(R(et),{cols:"12",key:P,class:"pb-3"},{default:G(()=>[_("div",rC,[S(R(xt),{modelValue:o.value.points[P],"onUpdate:modelValue":N=>o.value.points[P]=N,dense:"",class:"flex-grow-1"},null,8,["modelValue","onUpdate:modelValue"]),S(R(ut),{variant:"tonal",size:"small",color:"error",onClick:N=>f(P)},{default:G(()=>[...g[15]||(g[15]=[Ne("Remove",-1)])]),_:1},8,["onClick"])])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),S(R(fn),{class:"rounded-lg outlined mb-4"},{default:G(()=>[S(R(Ct),null,{default:G(()=>[_("div",sC,[g[17]||(g[17]=_("div",{class:"text-subtitle-2 font-weight-medium"},"Panel items",-1)),S(R(ut),{variant:"text",size:"small",color:"primary",onClick:b},{default:G(()=>[...g[16]||(g[16]=[Ne("Add item",-1)])]),_:1})]),S(R(hn),{dense:""},{default:G(()=>[(Xe(!0),Ft(fe,null,Ri(o.value.panel_items,(C,P)=>(Xe(),co(R(et),{cols:"12",key:P,class:"pb-3"},{default:G(()=>[S(R(xt),{modelValue:C.title,"onUpdate:modelValue":N=>C.title=N,dense:"",class:"mb-3"},null,8,["modelValue","onUpdate:modelValue"]),S(R(Yi),{modelValue:C.body,"onUpdate:modelValue":N=>C.body=N,rows:"2",dense:"",class:"mb-3"},null,8,["modelValue","onUpdate:modelValue"]),S(R(ut),{variant:"tonal",size:"small",color:"error",onClick:N=>v(P)},{default:G(()=>[...g[18]||(g[18]=[Ne("Remove",-1)])]),_:1},8,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),S(R(hn),{dense:""},{default:G(()=>[S(R(et),{cols:"12",md:"6"},{default:G(()=>[S(R(xt),{label:"Sort order",modelValue:o.value.sort_order,"onUpdate:modelValue":g[7]||(g[7]=C=>o.value.sort_order=C),modelModifiers:{number:!0},type:"number",density:"comfortable"},null,8,["modelValue"])]),_:1}),S(R(et),{cols:"12",md:"6",class:"d-flex align-center"},{default:G(()=>[S(R(_v),{label:"Publish this section",modelValue:o.value.is_active,"onUpdate:modelValue":g[8]||(g[8]=C=>o.value.is_active=C)},null,8,["modelValue"])]),_:1})]),_:1}),S(R(fn),{class:"rounded-lg outlined"},{default:G(()=>[S(R(Ct),null,{default:G(()=>[g[19]||(g[19]=_("div",{class:"text-subtitle-2 font-weight-medium mb-3"},"Editor",-1)),_("div",{ref_key:"editorContainer",ref:r,class:"min-h-80 rounded-lg border border-outline p-3"},null,512)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),S(R(Ev),{modelValue:c.value,"onUpdate:modelValue":g[10]||(g[10]=C=>c.value=C),"max-width":"420"},{default:G(()=>[S(R(fn),null,{default:G(()=>[S(R(yr),{class:"text-h6"},{default:G(()=>[...g[20]||(g[20]=[Ne("Delete playbook section?",-1)])]),_:1}),S(R(Ct),null,{default:G(()=>[...g[21]||(g[21]=[Ne(" This action will permanently remove the selected playbook section. ",-1)])]),_:1}),S(R(Ct),{class:"d-flex justify-end gap-2"},{default:G(()=>[S(R(ut),{variant:"text",onClick:g[9]||(g[9]=C=>c.value=!1)},{default:G(()=>[...g[22]||(g[22]=[Ne("Cancel",-1)])]),_:1}),S(R(ut),{color:"error",loading:l.value,onClick:w},{default:G(()=>[...g[23]||(g[23]=[Ne("Delete",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}};export{Bc as $,xr as A,Dm as B,tp as C,jo as D,We as E,Fm as F,FC as G,uu as H,ue as I,Ho as J,Je as K,os as L,It as M,ad as N,Cn as O,Gn as P,Ru as Q,Tp as R,cC as S,gr as T,Yg as U,Uo as V,wr as W,gd as X,vd as Y,Dg as Z,lv as _,Yp as a,tn as a$,Eu as a0,xm as a1,hn as a2,Rm as a3,mc as a4,UC as a5,Fp as a6,_v as a7,xt as a8,Yi as a9,ou as aA,zn as aB,pi as aC,si as aD,Z as aE,OC as aF,we as aG,pC as aH,vC as aI,np as aJ,cr as aK,nt as aL,Np as aM,Di as aN,gC as aO,kC as aP,hC as aQ,bC as aR,ur as aS,eu as aT,Xt as aU,uC as aV,dC as aW,In as aX,ie as aY,cv as aZ,yt as a_,uS as aa,Ot as ab,Gr as ac,CC as ad,wC as ae,At as af,lC as ag,z as ah,IC as ai,jC as aj,HC as ak,LC as al,Xf as am,pu as an,RC as ao,fC as ap,Pt as aq,SC as ar,no as as,PC as at,MC as au,op as av,Rl as aw,xC as ax,oi as ay,Vn as az,TC as b,ui as b$,$C as b0,io as b1,Vu as b2,pv as b3,VC as b4,cm as b5,lm as b6,Ug as b7,vv as b8,ns as b9,$ as bA,to as bB,NC as bC,Ke as bD,Zf as bE,$o as bF,hr as bG,Dl as bH,wn as bI,zu as bJ,Mt as bK,Pn as bL,uv as bM,Rt as bN,nn as bO,yu as bP,ro as bQ,hi as bR,mv as bS,Gm as bT,dm as bU,um as bV,Fu as bW,Su as bX,zC as bY,bv as bZ,is as b_,es as ba,Tu as bb,kt as bc,rs as bd,Ku as be,li as bf,xe as bg,Ae as bh,di as bi,Lm as bj,Sv as bk,ss as bl,vg as bm,fi as bn,Bd as bo,Yu as bp,eg as bq,Mn as br,iu as bs,pt as bt,yC as bu,On as bv,mC as bw,ot as bx,ni as by,Nl as bz,EC as c,Wp as c0,ts as c1,_u as c2,Se as c3,ne as c4,ku as c5,wt as c6,Em as c7,oo as c8,Ed as c9,ci as ca,Ag as cb,gt as cc,im as cd,Jt as ce,ai as cf,rt as cg,BC as d,Zt as e,_C as f,D
109p as g,ce as h,Sn as i,Do as j,Ep as k,Qt as l,ut as m,DC as n,fn as o,fg as p,kg as q,mg as r,Ct as s,yr as t,AC as u,et as v,Du as w,De as x,Ev as y,$m as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.