PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 1.1.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v1.1.0
2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 1.1.0 All 77 releases
fluent-community / assets / app.js

app.js in FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses 1.1.0, at assets/app.js

511 lines 1.7 MB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var KR=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var sx=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var pt=(e,t,n)=>(sx(e,t,"read from private field"),n?n.call(e):t.get(e)),mi=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Eo=(e,t,n,o)=>(sx(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);var mZe=KR((or,rr)=>{const GR="modulepreload",YR=function(e){return"/"+e},lx={},Wd=function(t,n,o){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=YR(i),i in lx)return;lx[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!o)for(let u=r.length-1;u>=0;u--){const d=r[u];if(d.href===i&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":GR,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})};/**
2 * @vue/shared v3.4.23
3 * (c) 2018-present Yuxi (Evan) You and Vue contributors
4 * @license MIT
5 **//*! #__NO_SIDE_EFFECTS__ */function ur(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const Dt={},iu=[],dt=()=>{},Rm=()=>!1,cc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),V2=e=>e.startsWith("onUpdate:"),Nt=Object.assign,j2=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ZR=Object.prototype.hasOwnProperty,ut=(e,t)=>ZR.call(e,t),$e=Array.isArray,su=e=>sd(e)==="[object Map]",uc=e=>sd(e)==="[object Set]",ax=e=>sd(e)==="[object Date]",JR=e=>sd(e)==="[object RegExp]",Ue=e=>typeof e=="function",je=e=>typeof e=="string",Or=e=>typeof e=="symbol",st=e=>e!==null&&typeof e=="object",ap=e=>(st(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),H9=Object.prototype.toString,sd=e=>H9.call(e),Fm=e=>sd(e).slice(8,-1),Q_=e=>sd(e)==="[object Object]",H2=e=>je(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xl=ur(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),XR=ur("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),r1=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},QR=/-(\w)/g,dn=r1(e=>e.replace(QR,(t,n)=>n?n.toUpperCase():"")),eF=/\B([A-Z])/g,Po=r1(e=>e.replace(eF,"-$1").toLowerCase()),Rl=r1(e=>e.charAt(0).toUpperCase()+e.slice(1)),lu=r1(e=>e?`on${Rl(e)}`:""),ni=(e,t)=>!Object.is(e,t),au=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},U9=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},eg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},tg=e=>{const t=je(e)?Number(e):NaN;return isNaN(t)?e:t};let cx;const W9=()=>cx||(cx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),tF="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",nF=ur(tF);function Be(e){if($e(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=je(o)?q9(o):Be(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(je(e)||st(e))return e}const oF=/;(?![^(]*\))/g,rF=/:([^]+)/,iF=/\/\*[^]*?\*\//g;function q9(e){const t={};return e.replace(iF,"").split(oF).forEach(n=>{if(n){const o=n.split(rF);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function R(e){let t="";if(je(e))t=e;else if($e(e))for(let n=0;n<e.length;n++){const o=R(e[n]);o&&(t+=o+" ")}else if(st(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function U2(e){if(!e)return null;let{class:t,style:n}=e;return t&&!je(t)&&(e.class=R(t)),n&&(e.style=Be(n)),e}const sF="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",lF="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",aF="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",cF="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",uF=ur(sF),dF=ur(lF),fF=ur(aF),pF=ur(cF),hF="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",mF=ur(hF);function K9(e){return!!e||e===""}function _F(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=Al(e[o],t[o]);return n}function Al(e,t){if(e===t)return!0;let n=ax(e),o=ax(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=Or(e),o=Or(t),n||o)return e===t;if(n=$e(e),o=$e(t),n||o)return n&&o?_F(e,t):!1;if(n=st(e),o=st(t),n||o){if(!n||!o)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const s in e){const l=e.hasOwnProperty(s),a=t.hasOwnProperty(s);if(l&&!a||!l&&a||!Al(e[s],t[s]))return!1}}return String(e)===String(t)}function i1(e,t){return e.findIndex(n=>Al(n,t))}const M=e=>je(e)?e:e==null?"":$e(e)||st(e)&&(e.toString===H9||!Ue(e.toString))?JSON.stringify(e,G9,2):String(e),G9=(e,t)=>t&&t.__v_isRef?G9(e,t.value):su(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[O0(o,i)+" =>"]=r,n),{})}:uc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>O0(n))}:Or(t)?O0(t):st(t)&&!$e(t)&&!Q_(t)?String(t):t,O0=(e,t="")=>{var n;return Or(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6 * @vue/reactivity v3.4.23
7 * (c) 2018-present Yuxi (Evan) You and Vue contributors
8 * @license MIT
9 **/let Jo;class W2{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Jo,!t&&Jo&&(this.index=(Jo.scopes||(Jo.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Jo;try{return Jo=this,t()}finally{Jo=n}}}on(){Jo=this}off(){Jo=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Y9(e){return new W2(e)}function Z9(e,t=Jo){t&&t.active&&t.effects.push(e)}function q2(){return Jo}function K2(e){Jo&&Jo.cleanups.push(e)}let Ia;class Eu{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Z9(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Fl();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(gF(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Dl()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Cl,n=Ia;try{return Cl=!0,Ia=this,this._runnings++,ux(this),this.fn()}finally{dx(this),this._runnings--,Ia=n,Cl=t}}stop(){var t;this.active&&(ux(this),dx(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function gF(e){return e.value}function ux(e){e._trackId++,e._depsLength=0}function dx(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)J9(e.deps[t],e);e.deps.length=e._depsLength}}function J9(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}function vF(e,t){e.effect instanceof Eu&&(e=e.effect.fn);const n=new Eu(e,dt,()=>{n.dirty&&n.run()});t&&(Nt(n,t),t.scope&&Z9(n,t.scope)),(!t||!t.lazy)&&n.run();const o=n.run.bind(n);return o.effect=n,o}function bF(e){e.effect.stop()}let Cl=!0,lb=0;const X9=[];function Fl(){X9.push(Cl),Cl=!1}function Dl(){const e=X9.pop();Cl=e===void 0?!0:e}function G2(){lb++}function Y2(){for(lb--;!lb&&ab.length;)ab.shift()()}function Q9(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&J9(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const ab=[];function e$(e,t,n){G2();for(const o of e.keys()){let r;o._dirtyLevel<t&&(r??(r=e.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o._dirtyLevel=t),o._shouldSchedule&&(r??(r=e.get(o)===o._trackId))&&(o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==2&&(o._shouldSchedule=!1,o.scheduler&&ab.push(o.scheduler)))}Y2()}const t$=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},ng=new WeakMap,Oa=Symbol(""),cb=Symbol("");function zo(e,t,n){if(Cl&&Ia){let o=ng.get(e);o||ng.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=t$(()=>o.delete(n))),Q9(Ia,r)}}function _s(e,t,n,o,r,i){const s=ng.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&$e(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Or(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":$e(e)?H2(n)&&l.push(s.get("length")):(l.push(s.get(Oa)),su(e)&&l.push(s.get(cb)));break;case"delete":$e(e)||(l.push(s.get(Oa)),su(e)&&l.push(s.get(cb)));break;case"set":su(e)&&l.push(s.get(Oa));break}G2();for(const a of l)a&&e$(a,4);Y2()}function yF(e,t){var n;return(n=ng.get(e))==null?void 0:n.get(t)}const wF=ur("__proto__,__v_isRef,__isVue"),n$=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Or)),fx=kF();function kF(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=xt(this);for(let i=0,s=this.length;i<s;i++)zo(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(xt)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Fl(),G2();const o=xt(this)[t].apply(this,n);return Y2(),Dl(),o}}),e}function xF(e){Or(e)||(e=String(e));const t=xt(this);return zo(t,"has",e),t.hasOwnProperty(e)}class o${constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?c$:a$:i?l$:s$).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=$e(t);if(!r){if(s&&ut(fx,n))return Reflect.get(fx,n,o);if(n==="hasOwnProperty")return xF}const l=Reflect.get(t,n,o);return(Or(n)?n$.has(n):wF(n))||(r||zo(t,"get",n),i)?l:Zt(l)?s&&H2(n)?l:l.value:st(l)?r?dc(l):jn(l):l}}class r$ extends o${constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._isShallow){const a=Tu(i);if(!cp(o)&&!Tu(o)&&(i=xt(i),o=xt(o)),!$e(t)&&Zt(i)&&!Zt(o))return a?!1:(i.value=o,!0)}const s=$e(t)&&H2(n)?Number(n)<t.length:ut(t,n),l=Reflect.set(t,n,o,r);return t===xt(r)&&(s?ni(o,i)&&_s(t,"set",n,o):_s(t,"add",n,o)),l}deleteProperty(t,n){const o=ut(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&_s(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!Or(n)||!n$.has(n))&&zo(t,"has",n),o}ownKeys(t){return zo(t,"iterate",$e(t)?"length":Oa),Reflect.ownKeys(t)}}class i$ extends o${constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const CF=new r$,SF=new i$,$F=new r$(!0),EF=new i$(!0),Z2=e=>e,s1=e=>Reflect.getPrototypeOf(e);function Wh(e,t,n=!1,o=!1){e=e.__v_raw;const r=xt(e),i=xt(t);n||(ni(t,i)&&zo(r,"get",t),zo(r,"get",i));const{has:s}=s1(r),l=o?Z2:n?Q2:up;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function qh(e,t=!1){const n=this.__v_raw,o=xt(n),r=xt(e);return t||(ni(e,r)&&zo(o,"has",e),zo(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Kh(e,t=!1){return e=e.__v_raw,!t&&zo(xt(e),"iterate",Oa),Reflect.get(e,"size",e)}function px(e){e=xt(e);const t=xt(this);return s1(t).has.call(t,e)||(t.add(e),_s(t,"add",e,e)),this}function hx(e,t){t=xt(t);const n=xt(this),{has:o,get:r}=s1(n);let i=o.call(n,e);i||(e=xt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?ni(t,s)&&_s(n,"set",e,t):_s(n,"add",e,t),this}function mx(e){const t=xt(this),{has:n,get:o}=s1(t);let r=n.call(t,e);r||(e=xt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&_s(t,"delete",e,void 0),i}function _x(){const e=xt(this),t=e.size!==0,n=e.clear();return t&&_s(e,"clear",void 0,void 0),n}function Gh(e,t){return function(o,r){const i=this,s=i.__v_raw,l=xt(s),a=t?Z2:e?Q2:up;return!e&&zo(l,"iterate",Oa),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Yh(e,t,n){return function(...o){const r=this.__v_raw,i=xt(r),s=su(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Z2:t?Q2:up;return!t&&zo(i,"iterate",a?cb:Oa),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:l?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Rs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function TF(){const e={get(i){return Wh(this,i)},get size(){return Kh(this)},has:qh,add:px,set:hx,delete:mx,clear:_x,forEach:Gh(!1,!1)},t={get(i){return Wh(this,i,!1,!0)},get size(){return Kh(this)},has:qh,add:px,set:hx,delete:mx,clear:_x,forEach:Gh(!1,!0)},n={get(i){return Wh(this,i,!0)},get size(){return Kh(this,!0)},has(i){return qh.call(this,i,!0)},add:Rs("add"),set:Rs("set"),delete:Rs("delete"),clear:Rs("clear"),forEach:Gh(!0,!1)},o={get(i){return Wh(this,i,!0,!0)},get size(){return Kh(this,!0)},has(i){return qh.call(this,i,!0)},add:Rs("add"),set:Rs("set"),delete:Rs("delete"),clear:Rs("clear"),forEach:Gh(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Yh(i,!1,!1),n[i]=Yh(i,!0,!1),t[i]=Yh(i,!1,!0),o[i]=Yh(i,!0,!0)}),[e,n,t,o]}const[MF,AF,IF,OF]=TF();function l1(e,t){const n=t?e?OF:IF:e?AF:MF;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ut(n,r)&&r in o?n:o,r,i)}const PF={get:l1(!1,!1)},NF={get:l1(!1,!0)},LF={get:l1(!0,!1)},RF={get:l1(!0,!0)},s$=new WeakMap,l$=new WeakMap,a$=new WeakMap,c$=new WeakMap;function FF(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function DF(e){return e.__v_skip||!Object.isExtensible(e)?0:FF(Fm(e))}function jn(e){return Tu(e)?e:a1(e,!1,CF,PF,s$)}function J2(e){return a1(e,!1,$F,NF,l$)}function dc(e){return a1(e,!0,SF,LF,a$)}function BF(e){return a1(e,!0,EF,RF,c$)}function a1(e,t,n,o,r){if(!st(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=DF(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function cu(e){return Tu(e)?cu(e.__v_raw):!!(e&&e.__v_isReactive)}function Tu(e){return!!(e&&e.__v_isReadonly)}function cp(e){return!!(e&&e.__v_isShallow)}function X2(e){return e?!!e.__v_raw:!1}function xt(e){const t=e&&e.__v_raw;return t?xt(t):e}function oi(e){return Object.isExtensible(e)&&U9(e,"__v_skip",!0),e}const up=e=>st(e)?jn(e):e,Q2=e=>st(e)?dc(e):e;class u${constructor(t,n,o,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Eu(()=>t(this._value),()=>uu(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=xt(this);return(!t._cacheable||t.effect.dirty)&&ni(t._value,t._value=t.effect.run())&&uu(t,4),ew(t),t.effect._dirtyLevel>=2&&uu(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function d$(e,t,n=!1){let o,r;const i=Ue(e);return i?(o=e,r=dt):(o=e.get,r=e.set),new u$(o,r,i||!r,n)}function ew(e){var t;Cl&&Ia&&(e=xt(e),Q9(Ia,(t=e.dep)!=null?t:e.dep=t$(()=>e.dep=void 0,e instanceof u$?e:void 0)))}function uu(e,t=4,n){e=xt(e);const o=e.dep;o&&e$(o,t)}function Zt(e){return!!(e&&e.__v_isRef===!0)}function H(e){return f$(e,!1)}function xn(e){return f$(e,!0)}function f$(e,t){return Zt(e)?e:new zF(e,t)}class zF{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:xt(t),this._value=n?t:up(t)}get value(){return ew(this),this._value}set value(t){const n=this.__v_isShallow||cp(t)||Tu(t);t=n?t:xt(t),ni(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:up(t),uu(this,4))}}function VF(e){uu(e,4)}function C(e){return Zt(e)?e.value:e}function jF(e){return Ue(e)?e():C(e)}const HF={get:(e,t,n)=>C(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Zt(r)&&!Zt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function tw(e){return cu(e)?e:new Proxy(e,HF)}class UF{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>ew(this),()=>uu(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function p$(e){return new UF(e)}function ji(e){const t=$e(e)?new Array(e.length):{};for(const n in e)t[n]=h$(e,n);return t}class WF{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return yF(xt(this._object),this._key)}}class qF{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Nn(e,t,n){return Zt(e)?e:Ue(e)?new qF(e):st(e)&&arguments.length>1?h$(e,t,n):H(e)}function h$(e,t,n){const o=e[t];return Zt(o)?o:new WF(e,t,n)}const KF={GET:"get",HAS:"has",ITERATE:"iterate"},GF={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/**
10 * @vue/runtime-core v3.4.23
11 * (c) 2018-present Yuxi (Evan) You and Vue contributors
12 * @license MIT
13 **/function YF(e,t){}const ZF={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},JF={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function gs(e,t,n,o){try{return o?e(...o):e()}catch(r){fc(r,t,n)}}function ir(e,t,n,o){if(Ue(e)){const r=gs(e,t,n,o);return r&&ap(r)&&r.catch(i=>{fc(i,t,n)}),r}if($e(e)){const r=[];for(let i=0;i<e.length;i++)r.push(ir(e[i],t,n,o));return r}}function fc(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){Fl(),gs(a,null,10,[e,s,l]),Dl();return}}XF(e,n,r,o)}function XF(e,t,n,o=!0){console.error(e)}let dp=!1,ub=!1;const io=[];let Ei=0;const du=[];let rl=null,ma=0;const m$=Promise.resolve();let nw=null;function tt(e){const t=nw||m$;return e?t.then(this?e.bind(this):e):t}function QF(e){let t=Ei+1,n=io.length;for(;t<n;){const o=t+n>>>1,r=io[o],i=fp(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function c1(e){(!io.length||!io.includes(e,dp&&e.allowRecurse?Ei+1:Ei))&&(e.id==null?io.push(e):io.splice(QF(e.id),0,e),_$())}function _$(){!dp&&!ub&&(ub=!0,nw=m$.then(g$))}function eD(e){const t=io.indexOf(e);t>Ei&&io.splice(t,1)}function og(e){$e(e)?du.push(...e):(!rl||!rl.includes(e,e.allowRecurse?ma+1:ma))&&du.push(e),_$()}function gx(e,t,n=dp?Ei+1:0){for(;n<io.length;n++){const o=io[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;io.splice(n,1),n--,o()}}}function rg(e){if(du.length){const t=[...new Set(du)].sort((n,o)=>fp(n)-fp(o));if(du.length=0,rl){rl.push(...t);return}for(rl=t,ma=0;ma<rl.length;ma++)rl[ma]();rl=null,ma=0}}const fp=e=>e.id==null?1/0:e.id,tD=(e,t)=>{const n=fp(e)-fp(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function g$(e){ub=!1,dp=!0,io.sort(tD);const t=dt;try{for(Ei=0;Ei<io.length;Ei++){const n=io[Ei];n&&n.active!==!1&&gs(n,null,14)}}finally{Ei=0,io.length=0,rg(),dp=!1,nw=null,(io.length||du.length)&&g$()}}let Fc,Zh=[];function v$(e,t){var n,o;Fc=e,Fc?(Fc.enabled=!0,Zh.forEach(({event:r,args:i})=>Fc.emit(r,...i)),Zh=[]):typeof window<"u"&&window.HTMLElement&&!((o=(n=window.navigator)==null?void 0:n.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{v$(i,t)}),setTimeout(()=>{Fc||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Zh=[])},3e3)):Zh=[]}function nD(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Dt;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:f}=o[u]||Dt;f&&(r=n.map(p=>je(p)?p.trim():p)),d&&(r=n.map(eg))}let l,a=o[l=lu(t)]||o[l=lu(dn(t))];!a&&i&&(a=o[l=lu(Po(t))]),a&&ir(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ir(c,e,6,r)}}function b$(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!Ue(e)){const a=c=>{const u=b$(c,t,!0);u&&(l=!0,Nt(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(st(e)&&o.set(e,null),null):($e(i)?i.forEach(a=>s[a]=null):Nt(s,i),st(e)&&o.set(e,s),s)}function u1(e,t){return!e||!cc(t)?!1:(t=t.slice(2).replace(/Once$/,""),ut(e,t[0].toLowerCase()+t.slice(1))||ut(e,Po(t))||ut(e,t))}let En=null,d1=null;function pp(e){const t=En;return En=e,d1=e&&e.type.__scopeId||null,t}function y$(e){d1=e}function w$(){d1=null}const oD=e=>x;function x(e,t=En,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&bb(-1);const i=pp(t);let s;try{s=e(...r)}finally{pp(i),o._d&&bb(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Dm(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:f,setupState:p,ctx:h,inheritAttrs:m}=e;let b,v;const E=pp(e);try{if(n.shapeFlag&4){const S=r||o,T=S;b=er(u.call(T,S,d,i,p,f,h)),v=a}else{const S=t;b=er(S.length>1?S(i,{attrs:a,slots:l,emit:c}):S(i,null)),v=t.props?a:iD(a)}}catch(S){Of.length=0,fc(S,e,1),b=y(zn)}let w=b;if(v&&m!==!1){const S=Object.keys(v),{shapeFlag:T}=w;S.length&&T&7&&(s&&S.some(V2)&&(v=sD(v,s)),w=ri(w,v))}return n.dirs&&(w=ri(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),b=w,pp(E),b}function rD(e,t=!0){let n;for(let o=0;o<e.length;o++){const r=e[o];if(uo(r)){if(r.type!==zn||r.children==="v-if"){if(n)return;n=r}}else return}return n}const iD=e=>{let t;for(const n in e)(n==="class"||n==="style"||cc(n))&&((t||(t={}))[n]=e[n]);return t},sD=(e,t)=>{const n={};for(const o in e)(!V2(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function lD(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?vx(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(s[f]!==o[f]&&!u1(c,f))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?vx(o,s,c):!0:!!s;return!1}function vx(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!u1(n,i))return!0}return!1}function ow({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const rw="components",aD="directives";function z(e,t){return iw(rw,e,!0,t)||e}const k$=Symbol.for("v-ndc");function Et(e){return je(e)?iw(rw,e,!1)||e:e||k$}function Mt(e){return iw(aD,e)}function iw(e,t,n=!0,o=!1){const r=En||Pn;if(r){const i=r.type;if(e===rw){const l=Cb(i,!1);if(l&&(l===t||l===dn(t)||l===Rl(dn(t))))return i}const s=bx(r[e]||i[e],t)||bx(r.appContext[e],t);return!s&&o?i:s}}function bx(e,t){return e&&(e[t]||e[dn(t)]||e[Rl(dn(t))])}const x$=e=>e.__isSuspense;let db=0;const cD={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,l,a,c){if(e==null)dD(t,n,o,r,i,s,l,a,c);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}fD(e,t,n,o,r,s,l,a,c)}},hydrate:pD,create:sw,normalize:hD},uD=cD;function hp(e,t){const n=e.props&&e.props[t];Ue(n)&&n()}function dD(e,t,n,o,r,i,s,l,a){const{p:c,o:{createElement:u}}=a,d=u("div"),f=e.suspense=sw(e,r,o,t,d,n,i,s,l,a);c(null,f.pendingBranch=e.ssContent,d,null,o,f,i,s),f.deps>0?(hp(e,"onPending"),hp(e,"onFallback"),c(null,e.ssFallback,t,n,o,null,i,s),fu(f,e.ssFallback)):f.resolve(!1,!0)}function fD(e,t,n,o,r,i,s,l,{p:a,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:b,isHydrating:v}=d;if(m)d.pendingBranch=f,Gr(f,m)?(a(m,f,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():b&&(v||(a(h,p,n,o,r,null,i,s,l),fu(d,p)))):(d.pendingId=db++,v?(d.isHydrating=!1,d.activeBranch=m):c(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),b?(a(null,f,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():(a(h,p,n,o,r,null,i,s,l),fu(d,p))):h&&Gr(f,h)?(a(h,f,n,o,r,d,i,s,l),d.resolve(!0)):(a(null,f,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0&&d.resolve()));else if(h&&Gr(f,h))a(h,f,n,o,r,d,i,s,l),fu(d,f);else if(hp(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=db++,a(null,f,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0)d.resolve();else{const{timeout:E,pendingId:w}=d;E>0?setTimeout(()=>{d.pendingId===w&&d.fallback(p)},E):E===0&&d.fallback(p)}}function sw(e,t,n,o,r,i,s,l,a,c,u=!1){const{p:d,m:f,um:p,n:h,o:{parentNode:m,remove:b}}=c;let v;const E=mD(e);E&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const w=e.props?tg(e.props.timeout):void 0,S=i,T={vnode:e,parent:t,parentComponent:n,namespace:s,container:o,hiddenContainer:r,deps:0,pendingId:db++,timeout:typeof w=="number"?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve($=!1,A=!1){const{vnode:P,activeBranch:N,pendingBranch:I,pendingId:B,effects:V,parentComponent:G,container:ne}=T;let oe=!1;T.isHydrating?T.isHydrating=!1:$||(oe=N&&I.transition&&I.transition.mode==="out-in",oe&&(N.transition.afterLeave=()=>{B===T.pendingId&&(f(I,ne,i===S?h(N):i,0),og(V))}),N&&(m(N.el)!==T.hiddenContainer&&(i=h(N)),p(N,G,T,!0)),oe||f(I,ne,i,0)),fu(T,I),T.pendingBranch=null,T.isInFallback=!1;let Z=T.parent,q=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...V),q=!0;break}Z=Z.parent}!q&&!oe&&og(V),T.effects=[],E&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),hp(P,"onResolve")},fallback($){if(!T.pendingBranch)return;const{vnode:A,activeBranch:P,parentComponent:N,container:I,namespace:B}=T;hp(A,"onFallback");const V=h(P),G=()=>{T.isInFallback&&(d(null,$,I,V,N,null,B,l,a),fu(T,$))},ne=$.transition&&$.transition.mode==="out-in";ne&&(P.transition.afterLeave=G),T.isInFallback=!0,p(P,N,null,!0),ne||G()},move($,A,P){T.activeBranch&&f(T.activeBranch,$,A,P),T.container=$},next(){return T.activeBranch&&h(T.activeBranch)},registerDep($,A){const P=!!T.pendingBranch;P&&T.deps++;const N=$.vnode.el;$.asyncDep.catch(I=>{fc(I,$,0)}).then(I=>{if($.isUnmounted||T.isUnmounted||T.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:B}=$;kb($,I,!1),N&&(B.el=N);const V=!N&&$.subTree.el;A($,B,m(N||$.subTree.el),N?null:h($.subTree),T,s,a),V&&b(V),ow($,B.el),P&&--T.deps===0&&T.resolve()})},unmount($,A){T.isUnmounted=!0,T.activeBranch&&p(T.activeBranch,n,$,A),T.pendingBranch&&p(T.pendingBranch,n,$,A)}};return T}function pD(e,t,n,o,r,i,s,l,a){const c=t.suspense=sw(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,l,!0),u=a(e,c.pendingBranch=t.ssContent,n,c,i,s);return c.deps===0&&c.resolve(!1,!0),u}function hD(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=yx(o?n.default:n),e.ssFallback=o?yx(n.fallback):y(zn)}function yx(e){let t;if(Ue(e)){const n=Ka&&e._c;n&&(e._d=!1,_()),e=e(),n&&(e._d=!0,t=No,n7())}return $e(e)&&(e=rD(e)),e=er(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function C$(e,t){t&&t.pendingBranch?$e(e)?t.effects.push(...e):t.effects.push(e):og(e)}function fu(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,ow(o,r))}function mD(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const S$=Symbol.for("v-scx"),$$=()=>Ne(S$);function Zr(e,t){return qp(e,null,t)}function E$(e,t){return qp(e,null,{flush:"post"})}function T$(e,t){return qp(e,null,{flush:"sync"})}const Jh={};function ke(e,t,n){return qp(e,t,n)}function qp(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=Dt){if(t&&i){const $=t;t=(...A)=>{$(...A),T()}}const a=Pn,c=$=>o===!0?$:ya($,o===!1?1:void 0);let u,d=!1,f=!1;if(Zt(e)?(u=()=>e.value,d=cp(e)):cu(e)?(u=()=>c(e),d=!0):$e(e)?(f=!0,d=e.some($=>cu($)||cp($)),u=()=>e.map($=>{if(Zt($))return $.value;if(cu($))return c($);if(Ue($))return gs($,a,2)})):Ue(e)?t?u=()=>gs(e,a,2):u=()=>(p&&p(),ir(e,a,3,[h])):u=dt,t&&o){const $=u;u=()=>ya($())}let p,h=$=>{p=w.onStop=()=>{gs($,a,4),p=w.onStop=void 0}},m;if(Gp)if(h=dt,t?n&&ir(t,a,3,[u(),f?[]:void 0,h]):u(),r==="sync"){const $=$$();m=$.__watcherHandles||($.__watcherHandles=[])}else return dt;let b=f?new Array(e.length).fill(Jh):Jh;const v=()=>{if(!(!w.active||!w.dirty))if(t){const $=w.run();(o||d||(f?$.some((A,P)=>ni(A,b[P])):ni($,b)))&&(p&&p(),ir(t,a,3,[$,b===Jh?void 0:f&&b[0]===Jh?[]:b,h]),b=$)}else w.run()};v.allowRecurse=!!t;let E;r==="sync"?E=v:r==="post"?E=()=>Gn(v,a&&a.suspense):(v.pre=!0,a&&(v.id=a.uid),E=()=>c1(v));const w=new Eu(u,dt,E),S=q2(),T=()=>{w.stop(),S&&j2(S.effects,w)};return t?n?v():b=w.run():r==="post"?Gn(w.run.bind(w),a&&a.suspense):w.run(),m&&m.push(T),T}function _D(e,t,n){const o=this.proxy,r=je(e)?e.includes(".")?M$(o,e):()=>o[e]:e.bind(o,o);let i;Ue(t)?i=t:(i=t.handler,n=t);const s=Ga(this),l=qp(r,i.bind(o),n);return s(),l}function M$(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function ya(e,t,n=0,o){if(!st(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Zt(e))ya(e.value,t,n,o);else if($e(e))for(let r=0;r<e.length;r++)ya(e[r],t,n,o);else if(uc(e)||su(e))e.forEach(r=>{ya(r,t,n,o)});else if(Q_(e))for(const r in e)ya(e[r],t,n,o);return e}function ze(e,t){if(En===null)return e;const n=h1(En)||En.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=Dt]=t[r];i&&(Ue(i)&&(i={mounted:i,updated:i}),i.deep&&ya(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Si(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(Fl(),ir(a,n,8,[e.el,l,e,t]),Dl())}}const il=Symbol("_leaveCb"),Xh=Symbol("_enterCb");function lw(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mt(()=>{e.isMounted=!0}),yn(()=>{e.isUnmounting=!0}),e}const _r=[Function,Array],aw={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_r,onEnter:_r,onAfterEnter:_r,onEnterCancelled:_r,onBeforeLeave:_r,onLeave:_r,onAfterLeave:_r,onLeaveCancelled:_r,onBeforeAppear:_r,onAppear:_r,onAfterAppear:_r,onAppearCancelled:_r},gD={name:"BaseTransition",props:aw,setup(e,{slots:t}){const n=nt(),o=lw();return()=>{const r=t.default&&f1(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const f of r)if(f.type!==zn){i=f;break}}const s=xt(e),{mode:l}=s;if(o.isLeaving)return P0(i);const a=wx(i);if(!a)return P0(i);const c=Mu(a,s,o,n);qa(a,c);const u=n.subTree,d=u&&wx(u);if(d&&d.type!==zn&&!Gr(a,d)){const f=Mu(d,s,o,n);if(qa(d,f),l==="out-in")return o.isLeaving=!0,f.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},P0(i);l==="in-out"&&a.type!==zn&&(f.delayLeave=(p,h,m)=>{const b=I$(o,d);b[String(d.key)]=d,p[il]=()=>{h(),p[il]=void 0,delete c.delayedLeave},c.delayedLeave=m})}return i}}},A$=gD;function I$(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Mu(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:m,onAppear:b,onAfterAppear:v,onAppearCancelled:E}=t,w=String(e.key),S=I$(n,e),T=(P,N)=>{P&&ir(P,o,9,N)},$=(P,N)=>{const I=N[1];T(P,N),$e(P)?P.every(B=>B.length<=1)&&I():P.length<=1&&I()},A={mode:i,persisted:s,beforeEnter(P){let N=l;if(!n.isMounted)if(r)N=m||l;else return;P[il]&&P[il](!0);const I=S[w];I&&Gr(e,I)&&I.el[il]&&I.el[il](),T(N,[P])},enter(P){let N=a,I=c,B=u;if(!n.isMounted)if(r)N=b||a,I=v||c,B=E||u;else return;let V=!1;const G=P[Xh]=ne=>{V||(V=!0,ne?T(B,[P]):T(I,[P]),A.delayedLeave&&A.delayedLeave(),P[Xh]=void 0)};N?$(N,[P,G]):G()},leave(P,N){const I=String(e.key);if(P[Xh]&&P[Xh](!0),n.isUnmounting)return N();T(d,[P]);let B=!1;const V=P[il]=G=>{B||(B=!0,N(),G?T(h,[P]):T(p,[P]),P[il]=void 0,S[I]===e&&delete S[I])};S[I]=e,f?$(f,[P,V]):V()},clone(P){return Mu(P,t,n,o)}};return A}function P0(e){if(Kp(e))return e=ri(e),e.children=null,e}function wx(e){return Kp(e)?e.children?e.children[0]:void 0:e}function qa(e,t){e.shapeFlag&6&&e.component?qa(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function f1(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Q?(s.patchFlag&128&&r++,o=o.concat(f1(s.children,t,l))):(t||s.type!==zn)&&o.push(l!=null?ri(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function K(e,t){return Ue(e)?(()=>Nt({name:e.name},t,{setup:e}))():e}const Pa=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function vD(e){Ue(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:l}=e;let a=null,c,u=0;const d=()=>(u++,a=null,f()),f=()=>{let p;return a||(p=a=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),l)return new Promise((m,b)=>{l(h,()=>m(d()),()=>b(h),u+1)});throw h}).then(h=>p!==a&&a?a:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),c=h,h)))};return K({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return c},setup(){const p=Pn;if(c)return()=>N0(c,p);const h=E=>{a=null,fc(E,p,13,!o)};if(s&&p.suspense||Gp)return f().then(E=>()=>N0(E,p)).catch(E=>(h(E),()=>o?y(o,{error:E}):null));const m=H(!1),b=H(),v=H(!!r);return r&&setTimeout(()=>{v.value=!1},r),i!=null&&setTimeout(()=>{if(!m.value&&!b.value){const E=new Error(`Async component timed out after ${i}ms.`);h(E),b.value=E}},i),f().then(()=>{m.value=!0,p.parent&&Kp(p.parent.vnode)&&(p.parent.effect.dirty=!0,c1(p.parent.update))}).catch(E=>{h(E),b.value=E}),()=>{if(m.value&&c)return N0(c,p);if(b.value&&o)return y(o,{error:b.value});if(n&&!v.value)return y(n)}}})}function N0(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=y(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const Kp=e=>e.type.__isKeepAlive,bD={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=nt(),o=n.ctx;if(!o.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const r=new Map,i=new Set;let s=null;const l=n.suspense,{renderer:{p:a,m:c,um:u,o:{createElement:d}}}=o,f=d("div");o.activate=(E,w,S,T,$)=>{const A=E.component;c(E,w,S,0,l),a(A.vnode,E,w,S,A,l,T,E.slotScopeIds,$),Gn(()=>{A.isDeactivated=!1,A.a&&au(A.a);const P=E.props&&E.props.onVnodeMounted;P&&Io(P,A.parent,E)},l)},o.deactivate=E=>{const w=E.component;c(E,f,null,1,l),Gn(()=>{w.da&&au(w.da);const S=E.props&&E.props.onVnodeUnmounted;S&&Io(S,w.parent,E),w.isDeactivated=!0},l)};function p(E){L0(E),u(E,n,l,!0)}function h(E){r.forEach((w,S)=>{const T=Cb(w.type);T&&(!E||!E(T))&&m(S)})}function m(E){const w=r.get(E);!s||!Gr(w,s)?p(w):s&&L0(s),r.delete(E),i.delete(E)}ke(()=>[e.include,e.exclude],([E,w])=>{E&&h(S=>qd(E,S)),w&&h(S=>!qd(w,S))},{flush:"post",deep:!0});let b=null;const v=()=>{b!=null&&r.set(b,R0(n.subTree))};return mt(v),Bl(v),yn(()=>{r.forEach(E=>{const{subTree:w,suspense:S}=n,T=R0(w);if(E.type===T.type&&E.key===T.key){L0(T);const $=T.component.da;$&&Gn($,S);return}p(E)})}),()=>{if(b=null,!t.default)return s=null;const E=t.default(),w=E[0];if(E.length>1)return s=null,E;if(!uo(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return s=null,w;let S=R0(w);const T=S.type,$=Cb(Pa(S)?S.type.__asyncResolved||{}:T),{include:A,exclude:P,max:N}=e;if(A&&(!$||!qd(A,$))||P&&$&&qd(P,$))return s=S,w;const I=S.key==null?T:S.key,B=r.get(I);return S.el&&(S=ri(S),w.shapeFlag&128&&(w.ssContent=S)),b=I,B?(S.el=B.el,S.component=B.component,S.transition&&qa(S,S.transition),S.shapeFlag|=512,i.delete(I),i.add(I)):(i.add(I),N&&i.size>parseInt(N,10)&&m(i.values().next().value)),S.shapeFlag|=256,s=S,x$(w.type)?w:S}}},yD=bD;function qd(e,t){return $e(e)?e.some(n=>qd(n,t)):je(e)?e.split(",").includes(t):JR(e)?e.test(t):!1}function O$(e,t){P$(e,"a",t)}function cw(e,t){P$(e,"da",t)}function P$(e,t,n=Pn){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(p1(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Kp(r.parent.vnode)&&wD(o,t,n,r),r=r.parent}}function wD(e,t,n,o){const r=p1(t,e,o,!0);Hi(()=>{j2(o[t],r)},n)}function L0(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function R0(e){return e.shapeFlag&128?e.ssContent:e}function p1(e,t,n=Pn,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Fl();const l=Ga(n),a=ir(t,n,e,s);return l(),Dl(),a});return o?r.unshift(i):r.push(i),i}}const $s=e=>(t,n=Pn)=>(!Gp||e==="sp")&&p1(e,(...o)=>t(...o),n),ld=$s("bm"),mt=$s("m"),N$=$s("bu"),Bl=$s("u"),yn=$s("bum"),Hi=$s("um"),L$=$s("sp"),R$=$s("rtg"),F$=$s("rtc");function D$(e,t=Pn){p1("ec",e,t)}function Te(e,t,n,o){let r;const i=n&&n[o];if($e(e)||je(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(st(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,i&&i[l])}}else r=[];return n&&(n[o]=r),r}function Vo(e,t){for(let n=0;n<t.length;n++){const o=t[n];if($e(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function le(e,t,n={},o,r){if(En.isCE||En.parent&&Pa(En.parent)&&En.parent.isCE)return t!=="default"&&(n.name=t),y("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),_();const s=i&&B$(i(n)),l=L(Q,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function B$(e){return e.some(t=>uo(t)?!(t.type===zn||t.type===Q&&!B$(t.children)):!0)?e:null}function kD(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:lu(o)]=e[o];return n}const fb=e=>e?s7(e)?h1(e)||e.proxy:fb(e.parent):null,Af=Nt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>fb(e.parent),$root:e=>fb(e.root),$emit:e=>e.emit,$options:e=>dw(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,c1(e.update)}),$nextTick:e=>e.n||(e.n=tt.bind(e.proxy)),$watch:e=>_D.bind(e)}),F0=(e,t)=>e!==Dt&&!e.__isScriptSetup&&ut(e,t),pb={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(F0(o,t))return s[t]=1,o[t];if(r!==Dt&&ut(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ut(c,t))return s[t]=3,i[t];if(n!==Dt&&ut(n,t))return s[t]=4,n[t];hb&&(s[t]=0)}}const u=Af[t];let d,f;if(u)return t==="$attrs"&&zo(e.attrs,"get",""),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==Dt&&ut(n,t))return s[t]=4,n[t];if(f=a.config.globalProperties,ut(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return F0(r,t)?(r[t]=n,!0):o!==Dt&&ut(o,t)?(o[t]=n,!0):ut(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==Dt&&ut(e,s)||F0(t,s)||(l=i[0])&&ut(l,s)||ut(o,s)||ut(Af,s)||ut(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ut(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},xD=Nt({},pb,{get(e,t){if(t!==Symbol.unscopables)return pb.get(e,t,e)},has(e,t){return t[0]!=="_"&&!nF(t)}});function CD(){return null}function SD(){return null}function $D(e){}function ED(e){}function TD(){return null}function MD(){}function AD(e,t){return null}function Ui(){return z$().slots}function uw(){return z$().attrs}function z$(){const e=nt();return e.setupContext||(e.setupContext=u7(e))}function mp(e){return $e(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ID(e,t){const n=mp(e);for(const o in t){if(o.startsWith("__skip"))continue;let r=n[o];r?$e(r)||Ue(r)?r=n[o]={type:r,default:t[o]}:r.default=t[o]:r===null&&(r=n[o]={default:t[o]}),r&&t[`__skip_${o}`]&&(r.skipFactory=!0)}return n}function OD(e,t){return!e||!t?e||t:$e(e)&&$e(t)?e.concat(t):Nt({},mp(e),mp(t))}function PD(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ND(e){const t=nt();let n=e();return wb(),ap(n)&&(n=n.catch(o=>{throw Ga(t),o})),[n,()=>Ga(t)]}let hb=!0;function LD(e){const t=dw(e),n=e.proxy,o=e.ctx;hb=!1,t.beforeCreate&&kx(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:h,activated:m,deactivated:b,beforeDestroy:v,beforeUnmount:E,destroyed:w,unmounted:S,render:T,renderTracked:$,renderTriggered:A,errorCaptured:P,serverPrefetch:N,expose:I,inheritAttrs:B,components:V,directives:G,filters:ne}=t;if(c&&RD(c,o,null),s)for(const q in s){const X=s[q];Ue(X)&&(o[q]=X.bind(n))}if(r){const q=r.call(n,n);st(q)&&(e.data=jn(q))}if(hb=!0,i)for(const q in i){const X=i[q],ee=Ue(X)?X.bind(n,n):Ue(X.get)?X.get.bind(n,n):dt,F=!Ue(X)&&Ue(X.set)?X.set.bind(n):dt,be=D({get:ee,set:F});Object.defineProperty(o,q,{enumerable:!0,configurable:!0,get:()=>be.value,set:xe=>be.value=xe})}if(l)for(const q in l)V$(l[q],o,n,q);if(a){const q=Ue(a)?a.call(n):a;Reflect.ownKeys(q).forEach(X=>{wt(X,q[X])})}u&&kx(u,e,"c");function Z(q,X){$e(X)?X.forEach(ee=>q(ee.bind(n))):X&&q(X.bind(n))}if(Z(ld,d),Z(mt,f),Z(N$,p),Z(Bl,h),Z(O$,m),Z(cw,b),Z(D$,P),Z(F$,$),Z(R$,A),Z(yn,E),Z(Hi,S),Z(L$,N),$e(I))if(I.length){const q=e.exposed||(e.exposed={});I.forEach(X=>{Object.defineProperty(q,X,{get:()=>n[X],set:ee=>n[X]=ee})})}else e.exposed||(e.exposed={});T&&e.render===dt&&(e.render=T),B!=null&&(e.inheritAttrs=B),V&&(e.components=V),G&&(e.directives=G)}function RD(e,t,n=dt){$e(e)&&(e=mb(e));for(const o in e){const r=e[o];let i;st(r)?"default"in r?i=Ne(r.from||o,r.default,!0):i=Ne(r.from||o):i=Ne(r),Zt(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function kx(e,t,n){ir($e(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function V$(e,t,n,o){const r=o.includes(".")?M$(n,o):()=>n[o];if(je(e)){const i=t[e];Ue(i)&&ke(r,i)}else if(Ue(e))ke(r,e.bind(n));else if(st(e))if($e(e))e.forEach(i=>V$(i,t,n,o));else{const i=Ue(e.handler)?e.handler.bind(n):t[e.handler];Ue(i)&&ke(r,i,e)}}function dw(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>ig(a,c,s,!0)),ig(a,t,s)),st(t)&&i.set(t,a),a}function ig(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&ig(e,i,n,!0),r&&r.forEach(s=>ig(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=FD[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const FD={data:xx,props:Cx,emits:Cx,methods:Kd,computed:Kd,beforeCreate:_o,created:_o,beforeMount:_o,mounted:_o,beforeUpdate:_o,updated:_o,beforeDestroy:_o,beforeUnmount:_o,destroyed:_o,unmounted:_o,activated:_o,deactivated:_o,errorCaptured:_o,serverPrefetch:_o,components:Kd,directives:Kd,watch:BD,provide:xx,inject:DD};function xx(e,t){return t?e?function(){return Nt(Ue(e)?e.call(this,this):e,Ue(t)?t.call(this,this):t)}:t:e}function DD(e,t){return Kd(mb(e),mb(t))}function mb(e){if($e(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _o(e,t){return e?[...new Set([].concat(e,t))]:t}function Kd(e,t){return e?Nt(Object.create(null),e,t):t}function Cx(e,t){return e?$e(e)&&$e(t)?[...new Set([...e,...t])]:Nt(Object.create(null),mp(e),mp(t??{})):t}function BD(e,t){if(!e)return t;if(!t)return e;const n=Nt(Object.create(null),e);for(const o in t)n[o]=_o(e[o],t[o]);return n}function j$(){return{app:null,config:{isNativeTag:Rm,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zD=0;function VD(e,t){return function(o,r=null){Ue(o)||(o=Nt({},o)),r!=null&&!st(r)&&(r=null);const i=j$(),s=new WeakSet;let l=!1;const a=i.app={_uid:zD++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:f7,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&Ue(c.install)?(s.add(c),c.install(a,...u)):Ue(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,d){if(!l){const f=y(o,r);return f.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(f,c):e(f,c,d),l=!0,a._container=c,c.__vue_app__=a,h1(f.component)||f.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){const u=pu;pu=a;try{return c()}finally{pu=u}}};return a}}let pu=null;function wt(e,t){if(Pn){let n=Pn.provides;const o=Pn.parent&&Pn.parent.provides;o===n&&(n=Pn.provides=Object.create(o)),n[e]=t}}function Ne(e,t,n=!1){const o=Pn||En;if(o||pu){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:pu._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Ue(t)?t.call(o&&o.proxy):t}}function jD(){return!!(Pn||En||pu)}const H$=Object.create(null),_b=()=>Object.create(H$),U$=e=>Object.getPrototypeOf(e)===H$;function HD(e,t,n,o=!1){const r={},i=_b();e.propsDefaults=Object.create(null),W$(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:J2(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function UD(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=xt(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(u1(e.emitsOptions,f))continue;const p=t[f];if(a)if(ut(i,f))p!==i[f]&&(i[f]=p,c=!0);else{const h=dn(f);r[h]=gb(a,l,h,p,e,!1)}else p!==i[f]&&(i[f]=p,c=!0)}}}else{W$(e,t,r,i)&&(c=!0);let u;for(const d in l)(!t||!ut(t,d)&&((u=Po(d))===d||!ut(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=gb(a,l,d,void 0,e,!0)):delete r[d]);if(i!==l)for(const d in i)(!t||!ut(t,d))&&(delete i[d],c=!0)}c&&_s(e.attrs,"set","")}function W$(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(xl(a))continue;const c=t[a];let u;r&&ut(r,u=dn(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:u1(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=xt(n),c=l||Dt;for(let u=0;u<i.length;u++){const d=i[u];n[d]=gb(r,a,d,c[d],e,!ut(c,d))}}return s}function gb(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ut(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&Ue(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=Ga(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Po(n))&&(o=!0))}return o}function q$(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},l=[];let a=!1;if(!Ue(e)){const u=d=>{a=!0;const[f,p]=q$(d,t,!0);Nt(s,f),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return st(e)&&o.set(e,iu),iu;if($e(i))for(let u=0;u<i.length;u++){const d=dn(i[u]);Sx(d)&&(s[d]=Dt)}else if(i)for(const u in i){const d=dn(u);if(Sx(d)){const f=i[u],p=s[d]=$e(f)||Ue(f)?{type:f}:Nt({},f);if(p){const h=Tx(Boolean,p.type),m=Tx(String,p.type);p[0]=h>-1,p[1]=m<0||h<m,(h>-1||ut(p,"default"))&&l.push(d)}}}const c=[s,l];return st(e)&&o.set(e,c),c}function Sx(e){return e[0]!=="$"&&!xl(e)}function $x(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ex(e,t){return $x(e)===$x(t)}function Tx(e,t){return $e(t)?t.findIndex(n=>Ex(n,e)):Ue(t)&&Ex(t,e)?0:-1}const K$=e=>e[0]==="_"||e==="$stable",fw=e=>$e(e)?e.map(er):[er(e)],WD=(e,t,n)=>{if(t._n)return t;const o=x((...r)=>fw(t(...r)),n);return o._c=!1,o},G$=(e,t,n)=>{const o=e._ctx;for(const r in e){if(K$(r))continue;const i=e[r];if(Ue(i))t[r]=WD(r,i,o);else if(i!=null){const s=fw(i);t[r]=()=>s}}},Y$=(e,t)=>{const n=fw(t);e.slots.default=()=>n},qD=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=xt(t),U9(e.slots,"_",n)):G$(t,e.slots=_b())}else e.slots=_b(),t&&Y$(e,t)},KD=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=Dt;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Nt(r,t),!n&&l===1&&delete r._):(i=!t.$stable,G$(t,r)),s=t}else t&&(Y$(e,t),s={default:1});if(i)for(const l in r)!K$(l)&&s[l]==null&&delete r[l]};function sg(e,t,n,o,r=!1){if($e(e)){e.forEach((f,p)=>sg(f,t&&($e(t)?t[p]:t),n,o,r));return}if(Pa(o)&&!r)return;const i=o.shapeFlag&4?h1(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===Dt?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(je(c)?(u[c]=null,ut(d,c)&&(d[c]=null)):Zt(c)&&(c.value=null)),Ue(a))gs(a,l,12,[s,u]);else{const f=je(a),p=Zt(a);if(f||p){const h=()=>{if(e.f){const m=f?ut(d,a)?d[a]:u[a]:a.value;r?$e(m)&&j2(m,i):$e(m)?m.includes(i)||m.push(i):f?(u[a]=[i],ut(d,a)&&(d[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else f?(u[a]=s,ut(d,a)&&(d[a]=s)):p&&(a.value=s,e.k&&(u[e.k]=s))};s?(h.id=-1,Gn(h,n)):h()}}}let Fs=!1;const GD=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",YD=e=>e.namespaceURI.includes("MathML"),Qh=e=>{if(GD(e))return"svg";if(YD(e))return"mathml"},em=e=>e.nodeType===8;function ZD(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:l,insert:a,createComment:c}}=e,u=(w,S)=>{if(!S.hasChildNodes()){n(null,w,S),rg(),S._vnode=w;return}Fs=!1,d(S.firstChild,w,null,null,null),rg(),S._vnode=w,Fs&&console.error("Hydration completed but contains mismatches.")},d=(w,S,T,$,A,P=!1)=>{P=P||!!S.dynamicChildren;const N=em(w)&&w.data==="[",I=()=>m(w,S,T,$,A,N),{type:B,ref:V,shapeFlag:G,patchFlag:ne}=S;let oe=w.nodeType;S.el=w,ne===-2&&(P=!1,S.dynamicChildren=null);let Z=null;switch(B){case ys:oe!==3?S.children===""?(a(S.el=r(""),s(w),w),Z=w):Z=I():(w.data!==S.children&&(Fs=!0,w.data=S.children),Z=i(w));break;case zn:E(w)?(Z=i(w),v(S.el=w.content.firstChild,w,T)):oe!==8||N?Z=I():Z=i(w);break;case Na:if(N&&(w=i(w),oe=w.nodeType),oe===1||oe===3){Z=w;const q=!S.children.length;for(let X=0;X<S.staticCount;X++)q&&(S.children+=Z.nodeType===1?Z.outerHTML:Z.data),X===S.staticCount-1&&(S.anchor=Z),Z=i(Z);return N?i(Z):Z}else I();break;case Q:N?Z=h(w,S,T,$,A,P):Z=I();break;default:if(G&1)(oe!==1||S.type.toLowerCase()!==w.tagName.toLowerCase())&&!E(w)?Z=I():Z=f(w,S,T,$,A,P);else if(G&6){S.slotScopeIds=A;const q=s(w);if(N?Z=b(w):em(w)&&w.data==="teleport start"?Z=b(w,w.data,"teleport end"):Z=i(w),t(S,q,null,T,$,Qh(q),P),Pa(S)){let X;N?(X=y(Q),X.anchor=Z?Z.previousSibling:q.lastChild):X=w.nodeType===3?te(""):y("div"),X.el=w,S.component.subTree=X}}else G&64?oe!==8?Z=I():Z=S.type.hydrate(w,S,T,$,A,P,e,p):G&128&&(Z=S.type.hydrate(w,S,T,$,Qh(s(w)),A,P,e,d))}return V!=null&&sg(V,null,$,S),Z},f=(w,S,T,$,A,P)=>{P=P||!!S.dynamicChildren;const{type:N,props:I,patchFlag:B,shapeFlag:V,dirs:G,transition:ne}=S,oe=N==="input"||N==="option";if(oe||B!==-1){G&&Si(S,null,T,"created");let Z=!1;if(E(w)){Z=Q$($,ne)&&T&&T.vnode.props&&T.vnode.props.appear;const X=w.content.firstChild;Z&&ne.beforeEnter(X),v(X,w,T),S.el=w=X}if(V&16&&!(I&&(I.innerHTML||I.textContent))){let X=p(w.firstChild,S,w,T,$,A,P);for(;X;){Fs=!0;const ee=X;X=X.nextSibling,l(ee)}}else V&8&&w.textContent!==S.children&&(Fs=!0,w.textContent=S.children);if(I)if(oe||!P||B&48)for(const X in I)(oe&&(X.endsWith("value")||X==="indeterminate")||cc(X)&&!xl(X)||X[0]===".")&&o(w,X,null,I[X],void 0,void 0,T);else I.onClick&&o(w,"onClick",null,I.onClick,void 0,void 0,T);let q;(q=I&&I.onVnodeBeforeMount)&&Io(q,T,S),G&&Si(S,null,T,"beforeMount"),((q=I&&I.onVnodeMounted)||G||Z)&&C$(()=>{q&&Io(q,T,S),Z&&ne.enter(w),G&&Si(S,null,T,"mounted")},$)}return w.nextSibling},p=(w,S,T,$,A,P,N)=>{N=N||!!S.dynamicChildren;const I=S.children,B=I.length;for(let V=0;V<B;V++){const G=N?I[V]:I[V]=er(I[V]);if(w)w=d(w,G,$,A,P,N);else{if(G.type===ys&&!G.children)continue;Fs=!0,n(null,G,T,null,$,A,Qh(T),P)}}return w},h=(w,S,T,$,A,P)=>{const{slotScopeIds:N}=S;N&&(A=A?A.concat(N):N);const I=s(w),B=p(i(w),S,I,T,$,A,P);return B&&em(B)&&B.data==="]"?i(S.anchor=B):(Fs=!0,a(S.anchor=c("]"),I,B),B)},m=(w,S,T,$,A,P)=>{if(Fs=!0,S.el=null,P){const B=b(w);for(;;){const V=i(w);if(V&&V!==B)l(V);else break}}const N=i(w),I=s(w);return l(w),n(null,S,I,N,T,$,Qh(I),A),N},b=(w,S="[",T="]")=>{let $=0;for(;w;)if(w=i(w),w&&em(w)&&(w.data===S&&$++,w.data===T)){if($===0)return i(w);$--}return w},v=(w,S,T)=>{const $=S.parentNode;$&&$.replaceChild(w,S);let A=T;for(;A;)A.vnode.el===S&&(A.vnode.el=A.subTree.el=w),A=A.parent},E=w=>w.nodeType===1&&w.tagName.toLowerCase()==="template";return[u,d]}const Gn=C$;function Z$(e){return X$(e)}function J$(e){return X$(e,ZD)}function X$(e,t){const n=W9();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=dt,insertStaticContent:h}=e,m=(j,W,re,pe=null,fe=null,Ce=null,Ie=void 0,ye=null,Se=!!W.dynamicChildren)=>{if(j===W)return;j&&!Gr(j,W)&&(pe=J(j),xe(j,fe,Ce,!0),j=null),W.patchFlag===-2&&(Se=!1,W.dynamicChildren=null);const{type:_e,ref:De,shapeFlag:Ge}=W;switch(_e){case ys:b(j,W,re,pe);break;case zn:v(j,W,re,pe);break;case Na:j==null&&E(W,re,pe,Ie);break;case Q:V(j,W,re,pe,fe,Ce,Ie,ye,Se);break;default:Ge&1?T(j,W,re,pe,fe,Ce,Ie,ye,Se):Ge&6?G(j,W,re,pe,fe,Ce,Ie,ye,Se):(Ge&64||Ge&128)&&_e.process(j,W,re,pe,fe,Ce,Ie,ye,Se,se)}De!=null&&fe&&sg(De,j&&j.ref,Ce,W||j,!W)},b=(j,W,re,pe)=>{if(j==null)o(W.el=l(W.children),re,pe);else{const fe=W.el=j.el;W.children!==j.children&&c(fe,W.children)}},v=(j,W,re,pe)=>{j==null?o(W.el=a(W.children||""),re,pe):W.el=j.el},E=(j,W,re,pe)=>{[j.el,j.anchor]=h(j.children,W,re,pe,j.el,j.anchor)},w=({el:j,anchor:W},re,pe)=>{let fe;for(;j&&j!==W;)fe=f(j),o(j,re,pe),j=fe;o(W,re,pe)},S=({el:j,anchor:W})=>{let re;for(;j&&j!==W;)re=f(j),r(j),j=re;r(W)},T=(j,W,re,pe,fe,Ce,Ie,ye,Se)=>{W.type==="svg"?Ie="svg":W.type==="math"&&(Ie="mathml"),j==null?$(W,re,pe,fe,Ce,Ie,ye,Se):N(j,W,fe,Ce,Ie,ye,Se)},$=(j,W,re,pe,fe,Ce,Ie,ye)=>{let Se,_e;const{props:De,shapeFlag:Ge,transition:ie,dirs:Y}=j;if(Se=j.el=s(j.type,Ce,De&&De.is,De),Ge&8?u(Se,j.children):Ge&16&&P(j.children,Se,null,pe,fe,D0(j,Ce),Ie,ye),Y&&Si(j,null,pe,"created"),A(Se,j,j.scopeId,Ie,pe),De){for(const Oe in De)Oe!=="value"&&!xl(Oe)&&i(Se,Oe,null,De[Oe],Ce,j.children,pe,fe,Fe);"value"in De&&i(Se,"value",null,De.value,Ce),(_e=De.onVnodeBeforeMount)&&Io(_e,pe,j)}Y&&Si(j,null,pe,"beforeMount");const ae=Q$(fe,ie);ae&&ie.beforeEnter(Se),o(Se,W,re),((_e=De&&De.onVnodeMounted)||ae||Y)&&Gn(()=>{_e&&Io(_e,pe,j),ae&&ie.enter(Se),Y&&Si(j,null,pe,"mounted")},fe)},A=(j,W,re,pe,fe)=>{if(re&&p(j,re),pe)for(let Ce=0;Ce<pe.length;Ce++)p(j,pe[Ce]);if(fe){let Ce=fe.subTree;if(W===Ce){const Ie=fe.vnode;A(j,Ie,Ie.scopeId,Ie.slotScopeIds,fe.parent)}}},P=(j,W,re,pe,fe,Ce,Ie,ye,Se=0)=>{for(let _e=Se;_e<j.length;_e++){const De=j[_e]=ye?sl(j[_e]):er(j[_e]);m(null,De,W,re,pe,fe,Ce,Ie,ye)}},N=(j,W,re,pe,fe,Ce,Ie)=>{const ye=W.el=j.el;let{patchFlag:Se,dynamicChildren:_e,dirs:De}=W;Se|=j.patchFlag&16;const Ge=j.props||Dt,ie=W.props||Dt;let Y;if(re&&Xl(re,!1),(Y=ie.onVnodeBeforeUpdate)&&Io(Y,re,W,j),De&&Si(W,j,re,"beforeUpdate"),re&&Xl(re,!0),_e?I(j.dynamicChildren,_e,ye,re,pe,D0(W,fe),Ce):Ie||X(j,W,ye,null,re,pe,D0(W,fe),Ce,!1),Se>0){if(Se&16)B(ye,W,Ge,ie,re,pe,fe);else if(Se&2&&Ge.class!==ie.class&&i(ye,"class",null,ie.class,fe),Se&4&&i(ye,"style",Ge.style,ie.style,fe),Se&8){const ae=W.dynamicProps;for(let Oe=0;Oe<ae.length;Oe++){const We=ae[Oe],ve=Ge[We],He=ie[We];(He!==ve||We==="value")&&i(ye,We,ve,He,fe,j.children,re,pe,Fe)}}Se&1&&j.children!==W.children&&u(ye,W.children)}else!Ie&&_e==null&&B(ye,W,Ge,ie,re,pe,fe);((Y=ie.onVnodeUpdated)||De)&&Gn(()=>{Y&&Io(Y,re,W,j),De&&Si(W,j,re,"updated")},pe)},I=(j,W,re,pe,fe,Ce,Ie)=>{for(let ye=0;ye<W.length;ye++){const Se=j[ye],_e=W[ye],De=Se.el&&(Se.type===Q||!Gr(Se,_e)||Se.shapeFlag&70)?d(Se.el):re;m(Se,_e,De,null,pe,fe,Ce,Ie,!0)}},B=(j,W,re,pe,fe,Ce,Ie)=>{if(re!==pe){if(re!==Dt)for(const ye in re)!xl(ye)&&!(ye in pe)&&i(j,ye,re[ye],null,Ie,W.children,fe,Ce,Fe);for(const ye in pe){if(xl(ye))continue;const Se=pe[ye],_e=re[ye];Se!==_e&&ye!=="value"&&i(j,ye,_e,Se,Ie,W.children,fe,Ce,Fe)}"value"in pe&&i(j,"value",re.value,pe.value,Ie)}},V=(j,W,re,pe,fe,Ce,Ie,ye,Se)=>{const _e=W.el=j?j.el:l(""),De=W.anchor=j?j.anchor:l("");let{patchFlag:Ge,dynamicChildren:ie,slotScopeIds:Y}=W;Y&&(ye=ye?ye.concat(Y):Y),j==null?(o(_e,re,pe),o(De,re,pe),P(W.children||[],re,De,fe,Ce,Ie,ye,Se)):Ge>0&&Ge&64&&ie&&j.dynamicChildren?(I(j.dynamicChildren,ie,re,fe,Ce,Ie,ye),(W.key!=null||fe&&W===fe.subTree)&&pw(j,W,!0)):X(j,W,re,De,fe,Ce,Ie,ye,Se)},G=(j,W,re,pe,fe,Ce,Ie,ye,Se)=>{W.slotScopeIds=ye,j==null?W.shapeFlag&512?fe.ctx.activate(W,re,pe,Ie,Se):ne(W,re,pe,fe,Ce,Ie,Se):oe(j,W,Se)},ne=(j,W,re,pe,fe,Ce,Ie)=>{const ye=j.component=i7(j,pe,fe);if(Kp(j)&&(ye.ctx.renderer=se),l7(ye),ye.asyncDep){if(fe&&fe.registerDep(ye,Z),!j.el){const Se=ye.subTree=y(zn);v(null,Se,W,re)}}else Z(ye,j,W,re,fe,Ce,Ie)},oe=(j,W,re)=>{const pe=W.component=j.component;if(lD(j,W,re))if(pe.asyncDep&&!pe.asyncResolved){q(pe,W,re);return}else pe.next=W,eD(pe.update),pe.effect.dirty=!0,pe.update();else W.el=j.el,pe.vnode=W},Z=(j,W,re,pe,fe,Ce,Ie)=>{const ye=()=>{if(j.isMounted){let{next:De,bu:Ge,u:ie,parent:Y,vnode:ae}=j;{const rt=e7(j);if(rt){De&&(De.el=ae.el,q(j,De,Ie)),rt.asyncDep.then(()=>{j.isUnmounted||ye()});return}}let Oe=De,We;Xl(j,!1),De?(De.el=ae.el,q(j,De,Ie)):De=ae,Ge&&au(Ge),(We=De.props&&De.props.onVnodeBeforeUpdate)&&Io(We,Y,De,ae),Xl(j,!0);const ve=Dm(j),He=j.subTree;j.subTree=ve,m(He,ve,d(He.el),J(He),j,fe,Ce),De.el=ve.el,Oe===null&&ow(j,ve.el),ie&&Gn(ie,fe),(We=De.props&&De.props.onVnodeUpdated)&&Gn(()=>Io(We,Y,De,ae),fe)}else{let De;const{el:Ge,props:ie}=W,{bm:Y,m:ae,parent:Oe}=j,We=Pa(W);if(Xl(j,!1),Y&&au(Y),!We&&(De=ie&&ie.onVnodeBeforeMount)&&Io(De,Oe,W),Xl(j,!0),Ge&&et){const ve=()=>{j.subTree=Dm(j),et(Ge,j.subTree,j,fe,null)};We?W.type.__asyncLoader().then(()=>!j.isUnmounted&&ve()):ve()}else{const ve=j.subTree=Dm(j);m(null,ve,re,pe,j,fe,Ce),W.el=ve.el}if(ae&&Gn(ae,fe),!We&&(De=ie&&ie.onVnodeMounted)){const ve=W;Gn(()=>Io(De,Oe,ve),fe)}(W.shapeFlag&256||Oe&&Pa(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&j.a&&Gn(j.a,fe),j.isMounted=!0,W=re=pe=null}},Se=j.effect=new Eu(ye,dt,()=>c1(_e),j.scope),_e=j.update=()=>{Se.dirty&&Se.run()};_e.id=j.uid,Xl(j,!0),_e()},q=(j,W,re)=>{W.component=j;const pe=j.vnode.props;j.vnode=W,j.next=null,UD(j,W.props,pe,re),KD(j,W.children,re),Fl(),gx(j),Dl()},X=(j,W,re,pe,fe,Ce,Ie,ye,Se=!1)=>{const _e=j&&j.children,De=j?j.shapeFlag:0,Ge=W.children,{patchFlag:ie,shapeFlag:Y}=W;if(ie>0){if(ie&128){F(_e,Ge,re,pe,fe,Ce,Ie,ye,Se);return}else if(ie&256){ee(_e,Ge,re,pe,fe,Ce,Ie,ye,Se);return}}Y&8?(De&16&&Fe(_e,fe,Ce),Ge!==_e&&u(re,Ge)):De&16?Y&16?F(_e,Ge,re,pe,fe,Ce,Ie,ye,Se):Fe(_e,fe,Ce,!0):(De&8&&u(re,""),Y&16&&P(Ge,re,pe,fe,Ce,Ie,ye,Se))},ee=(j,W,re,pe,fe,Ce,Ie,ye,Se)=>{j=j||iu,W=W||iu;const _e=j.length,De=W.length,Ge=Math.min(_e,De);let ie;for(ie=0;ie<Ge;ie++){const Y=W[ie]=Se?sl(W[ie]):er(W[ie]);m(j[ie],Y,re,null,fe,Ce,Ie,ye,Se)}_e>De?Fe(j,fe,Ce,!0,!1,Ge):P(W,re,pe,fe,Ce,Ie,ye,Se,Ge)},F=(j,W,re,pe,fe,Ce,Ie,ye,Se)=>{let _e=0;const De=W.length;let Ge=j.length-1,ie=De-1;for(;_e<=Ge&&_e<=ie;){const Y=j[_e],ae=W[_e]=Se?sl(W[_e]):er(W[_e]);if(Gr(Y,ae))m(Y,ae,re,null,fe,Ce,Ie,ye,Se);else break;_e++}for(;_e<=Ge&&_e<=ie;){const Y=j[Ge],ae=W[ie]=Se?sl(W[ie]):er(W[ie]);if(Gr(Y,ae))m(Y,ae,re,null,fe,Ce,Ie,ye,Se);else break;Ge--,ie--}if(_e>Ge){if(_e<=ie){const Y=ie+1,ae=Y<De?W[Y].el:pe;for(;_e<=ie;)m(null,W[_e]=Se?sl(W[_e]):er(W[_e]),re,ae,fe,Ce,Ie,ye,Se),_e++}}else if(_e>ie)for(;_e<=Ge;)xe(j[_e],fe,Ce,!0),_e++;else{const Y=_e,ae=_e,Oe=new Map;for(_e=ae;_e<=ie;_e++){const _t=W[_e]=Se?sl(W[_e]):er(W[_e]);_t.key!=null&&Oe.set(_t.key,_e)}let We,ve=0;const He=ie-ae+1;let rt=!1,Qe=0;const bt=new Array(He);for(_e=0;_e<He;_e++)bt[_e]=0;for(_e=Y;_e<=Ge;_e++){const _t=j[_e];if(ve>=He){xe(_t,fe,Ce,!0);continue}let Jt;if(_t.key!=null)Jt=Oe.get(_t.key);else for(We=ae;We<=ie;We++)if(bt[We-ae]===0&&Gr(_t,W[We])){Jt=We;break}Jt===void 0?xe(_t,fe,Ce,!0):(bt[Jt-ae]=_e+1,Jt>=Qe?Qe=Jt:rt=!0,m(_t,W[Jt],re,null,fe,Ce,Ie,ye,Se),ve++)}const Gt=rt?JD(bt):iu;for(We=Gt.length-1,_e=He-1;_e>=0;_e--){const _t=ae+_e,Jt=W[_t],an=_t+1<De?W[_t+1].el:pe;bt[_e]===0?m(null,Jt,re,an,fe,Ce,Ie,ye,Se):rt&&(We<0||_e!==Gt[We]?be(Jt,re,an,2):We--)}}},be=(j,W,re,pe,fe=null)=>{const{el:Ce,type:Ie,transition:ye,children:Se,shapeFlag:_e}=j;if(_e&6){be(j.component.subTree,W,re,pe);return}if(_e&128){j.suspense.move(W,re,pe);return}if(_e&64){Ie.move(j,W,re,se);return}if(Ie===Q){o(Ce,W,re);for(let Ge=0;Ge<Se.length;Ge++)be(Se[Ge],W,re,pe);o(j.anchor,W,re);return}if(Ie===Na){w(j,W,re);return}if(pe!==2&&_e&1&&ye)if(pe===0)ye.beforeEnter(Ce),o(Ce,W,re),Gn(()=>ye.enter(Ce),fe);else{const{leave:Ge,delayLeave:ie,afterLeave:Y}=ye,ae=()=>o(Ce,W,re),Oe=()=>{Ge(Ce,()=>{ae(),Y&&Y()})};ie?ie(Ce,ae,Oe):Oe()}else o(Ce,W,re)},xe=(j,W,re,pe=!1,fe=!1)=>{const{type:Ce,props:Ie,ref:ye,children:Se,dynamicChildren:_e,shapeFlag:De,patchFlag:Ge,dirs:ie}=j;if(ye!=null&&sg(ye,null,re,j,!0),De&256){W.ctx.deactivate(j);return}const Y=De&1&&ie,ae=!Pa(j);let Oe;if(ae&&(Oe=Ie&&Ie.onVnodeBeforeUnmount)&&Io(Oe,W,j),De&6)Ze(j.component,re,pe);else{if(De&128){j.suspense.unmount(re,pe);return}Y&&Si(j,null,W,"beforeUnmount"),De&64?j.type.remove(j,W,re,fe,se,pe):_e&&(Ce!==Q||Ge>0&&Ge&64)?Fe(_e,W,re,!1,!0):(Ce===Q&&Ge&384||!fe&&De&16)&&Fe(Se,W,re),pe&&U(j)}(ae&&(Oe=Ie&&Ie.onVnodeUnmounted)||Y)&&Gn(()=>{Oe&&Io(Oe,W,j),Y&&Si(j,null,W,"unmounted")},re)},U=j=>{const{type:W,el:re,anchor:pe,transition:fe}=j;if(W===Q){Ee(re,pe);return}if(W===Na){S(j);return}const Ce=()=>{r(re),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(j.shapeFlag&1&&fe&&!fe.persisted){const{leave:Ie,delayLeave:ye}=fe,Se=()=>Ie(re,Ce);ye?ye(j.el,Ce,Se):Se()}else Ce()},Ee=(j,W)=>{let re;for(;j!==W;)re=f(j),r(j),j=re;r(W)},Ze=(j,W,re)=>{const{bum:pe,scope:fe,update:Ce,subTree:Ie,um:ye}=j;pe&&au(pe),fe.stop(),Ce&&(Ce.active=!1,xe(Ie,j,W,re)),ye&&Gn(ye,W),Gn(()=>{j.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},Fe=(j,W,re,pe=!1,fe=!1,Ce=0)=>{for(let Ie=Ce;Ie<j.length;Ie++)xe(j[Ie],W,re,pe,fe)},J=j=>j.shapeFlag&6?J(j.component.subTree):j.shapeFlag&128?j.suspense.next():f(j.anchor||j.el);let ce=!1;const he=(j,W,re)=>{j==null?W._vnode&&xe(W._vnode,null,null,!0):m(W._vnode||null,j,W,null,null,null,re),ce||(ce=!0,gx(),rg(),ce=!1),W._vnode=j},se={p:m,um:xe,m:be,r:U,mt:ne,mc:P,pc:X,pbc:I,n:J,o:e};let Le,et;return t&&([Le,et]=t(se)),{render:he,hydrate:Le,createApp:VD(he,Le)}}function D0({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Xl({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Q$(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function pw(e,t,n=!1){const o=e.children,r=t.children;if($e(o)&&$e(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=sl(r[i]),l.el=s.el),n||pw(s,l)),l.type===ys&&(l.el=s.el)}}function JD(e){const t=e.slice(),n=[0];let o,r,i,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function e7(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:e7(t)}const XD=e=>e.__isTeleport,If=e=>e&&(e.disabled||e.disabled===""),Mx=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ax=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,vb=(e,t)=>{const n=e&&e.to;return je(n)?t?t(n):null:n},QD={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,s,l,a,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:h,createText:m,createComment:b}}=c,v=If(t.props);let{shapeFlag:E,children:w,dynamicChildren:S}=t;if(e==null){const T=t.el=m(""),$=t.anchor=m("");p(T,n,o),p($,n,o);const A=t.target=vb(t.props,h),P=t.targetAnchor=m("");A&&(p(P,A),s==="svg"||Mx(A)?s="svg":(s==="mathml"||Ax(A))&&(s="mathml"));const N=(I,B)=>{E&16&&u(w,I,B,r,i,s,l,a)};v?N(n,$):A&&N(A,P)}else{t.el=e.el;const T=t.anchor=e.anchor,$=t.target=e.target,A=t.targetAnchor=e.targetAnchor,P=If(e.props),N=P?n:$,I=P?T:A;if(s==="svg"||Mx($)?s="svg":(s==="mathml"||Ax($))&&(s="mathml"),S?(f(e.dynamicChildren,S,N,r,i,s,l),pw(e,t,!0)):a||d(e,t,N,I,r,i,s,l,!1),v)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):tm(t,n,T,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=vb(t.props,h);B&&tm(t,B,null,c,0)}else P&&tm(t,$,A,c,1)}t7(t)},remove(e,t,n,o,{um:r,o:{remove:i}},s){const{shapeFlag:l,children:a,anchor:c,targetAnchor:u,target:d,props:f}=e;if(d&&i(u),s&&i(c),l&16){const p=s||!If(f);for(let h=0;h<a.length;h++){const m=a[h];r(m,t,n,p,!!m.dynamicChildren)}}},move:tm,hydrate:eB};function tm(e,t,n,{o:{insert:o},m:r},i=2){i===0&&o(e.targetAnchor,t,n);const{el:s,anchor:l,shapeFlag:a,children:c,props:u}=e,d=i===2;if(d&&o(s,t,n),(!d||If(u))&&a&16)for(let f=0;f<c.length;f++)r(c[f],t,n,2);d&&o(l,t,n)}function eB(e,t,n,o,r,i,{o:{nextSibling:s,parentNode:l,querySelector:a}},c){const u=t.target=vb(t.props,a);if(u){const d=u._lpa||u.firstChild;if(t.shapeFlag&16)if(If(t.props))t.anchor=c(s(e),t,l(e),n,o,r,i),t.targetAnchor=d;else{t.anchor=s(e);let f=d;for(;f;)if(f=s(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,u._lpa=t.targetAnchor&&s(t.targetAnchor);break}c(d,t,u,n,o,r,i)}t7(t)}return t.anchor&&s(t.anchor)}const sr=QD;function t7(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Q=Symbol.for("v-fgt"),ys=Symbol.for("v-txt"),zn=Symbol.for("v-cmt"),Na=Symbol.for("v-stc"),Of=[];let No=null;function _(e=!1){Of.push(No=e?null:[])}function n7(){Of.pop(),No=Of[Of.length-1]||null}let Ka=1;function bb(e){Ka+=e}function o7(e){return e.dynamicChildren=Ka>0?No||iu:null,n7(),Ka>0&&No&&No.push(e),e}function k(e,t,n,o,r,i){return o7(g(e,t,n,o,r,i,!0))}function L(e,t,n,o,r){return o7(y(e,t,n,o,r,!0))}function uo(e){return e?e.__v_isVNode===!0:!1}function Gr(e,t){return e.type===t.type&&e.key===t.key}function tB(e){}const r7=({key:e})=>e??null,Bm=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?je(e)||Zt(e)||Ue(e)?{i:En,r:e,k:t,f:!!n}:e:null);function g(e,t=null,n=null,o=0,r=null,i=e===Q?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&r7(t),ref:t&&Bm(t),scopeId:d1,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:En};return l?(mw(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=je(n)?8:16),Ka>0&&!s&&No&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&No.push(a),a}const y=nB;function nB(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===k$)&&(e=zn),uo(e)){const l=ri(e,t,!0);return n&&mw(l,n),Ka>0&&!i&&No&&(l.shapeFlag&6?No[No.indexOf(e)]=l:No.push(l)),l.patchFlag|=-2,l}if(aB(e)&&(e=e.__vccOpts),t){t=hw(t);let{class:l,style:a}=t;l&&!je(l)&&(t.class=R(l)),st(a)&&(X2(a)&&!$e(a)&&(a=Nt({},a)),t.style=Be(a))}const s=je(e)?1:x$(e)?128:XD(e)?64:st(e)?4:Ue(e)?2:0;return g(e,t,n,o,r,s,i,!0)}function hw(e){return e?X2(e)||U$(e)?Nt({},e):e:null}function ri(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?hn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&r7(l),ref:t&&t.ref?n&&r?$e(r)?r.concat(Bm(t)):[r,Bm(t)]:Bm(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Q?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ri(e.ssContent),ssFallback:e.ssFallback&&ri(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function te(e=" ",t=0){return y(ys,null,e,t)}function ad(e,t){const n=y(Na,null,e);return n.staticCount=t,n}function O(e="",t=!1){return t?(_(),L(zn,null,e)):y(zn,null,e)}function er(e){return e==null||typeof e=="boolean"?y(zn):$e(e)?y(Q,null,e.slice()):typeof e=="object"?sl(e):y(ys,null,String(e))}function sl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ri(e)}function mw(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if($e(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),mw(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!U$(t)?t._ctx=En:r===3&&En&&(En.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ue(t)?(t={default:t,_ctx:En},n=32):(t=String(t),o&64?(n=16,t=[te(t)]):n=8);e.children=t,e.shapeFlag|=n}function hn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=R([t.class,o.class]));else if(r==="style")t.style=Be([t.style,o.style]);else if(cc(r)){const i=t[r],s=o[r];s&&i!==s&&!($e(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function Io(e,t,n,o=null){ir(e,t,7,[n,o])}const oB=j$();let rB=0;function i7(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||oB,i={uid:rB++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new W2(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:q$(o,r),emitsOptions:b$(o,r),emit:null,emitted:null,propsDefaults:Dt,inheritAttrs:o.inheritAttrs,ctx:Dt,data:Dt,props:Dt,attrs:Dt,slots:Dt,refs:Dt,setupState:Dt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=nD.bind(null,i),e.ce&&e.ce(i),i}let Pn=null;const nt=()=>Pn||En;let lg,yb;{const e=W9(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};lg=t("__VUE_INSTANCE_SETTERS__",n=>Pn=n),yb=t("__VUE_SSR_SETTERS__",n=>Gp=n)}const Ga=e=>{const t=Pn;return lg(e),e.scope.on(),()=>{e.scope.off(),lg(t)}},wb=()=>{Pn&&Pn.scope.off(),lg(null)};function s7(e){return e.vnode.shapeFlag&4}let Gp=!1;function l7(e,t=!1){t&&yb(t);const{props:n,children:o}=e.vnode,r=s7(e);HD(e,n,r,t),qD(e,o);const i=r?iB(e,t):void 0;return t&&yb(!1),i}function iB(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pb);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?u7(e):null,i=Ga(e);Fl();const s=gs(o,e,0,[e.props,r]);if(Dl(),i(),ap(s)){if(s.then(wb,wb),t)return s.then(l=>{kb(e,l,t)}).catch(l=>{fc(l,e,0)});e.asyncDep=s}else kb(e,s,t)}else c7(e,t)}function kb(e,t,n){Ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:st(t)&&(e.setupState=tw(t)),c7(e,n)}let ag,xb;function a7(e){ag=e,xb=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,xD))}}const sB=()=>!ag;function c7(e,t,n){const o=e.type;if(!e.render){if(!t&&ag&&!o.render){const r=o.template||dw(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Nt(Nt({isCustomElement:i,delimiters:l},s),a);o.render=ag(r,c)}}e.render=o.render||dt,xb&&xb(e)}{const r=Ga(e);Fl();try{LD(e)}finally{Dl(),r()}}}const lB={get(e,t){return zo(e,"get",""),e[t]}};function u7(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,lB),slots:e.slots,emit:e.emit,expose:t}}function h1(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tw(oi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Af)return Af[n](e)},has(t,n){return n in t||n in Af}}))}function Cb(e,t=!0){return Ue(e)?e.displayName||e.name:e.name||t&&e.__name}function aB(e){return Ue(e)&&"__vccOpts"in e}const D=(e,t)=>d$(e,t,Gp);function cB(e,t,n=Dt){const o=nt(),r=dn(t),i=Po(t),s=p$((a,c)=>{let u;return T$(()=>{const d=e[t];ni(u,d)&&(u=d,c())}),{get(){return a(),n.get?n.get(u):u},set(d){const f=o.vnode.props;!(f&&(t in f||r in f||i in f)&&(`onUpdate:${t}`in f||`onUpdate:${r}`in f||`onUpdate:${i}`in f))&&ni(d,u)&&(u=d,c()),o.emit(`update:${t}`,n.set?n.set(d):d)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function Xe(e,t,n){const o=arguments.length;return o===2?st(t)&&!$e(t)?uo(t)?y(e,null,[t]):y(e,t):y(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&uo(n)&&(n=[n]),y(e,t,n))}function uB(){}function dB(e,t,n,o){const r=n[o];if(r&&d7(r,e))return r;const i=t();return i.memo=e.slice(),n[o]=i}function d7(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let o=0;o<n.length;o++)if(ni(n[o],t[o]))return!1;return Ka>0&&No&&No.push(e),!0}const f7="3.4.23",p7=dt,fB=JF,pB=Fc,hB=v$,mB={createComponentInstance:i7,setupComponent:l7,renderComponentRoot:Dm,setCurrentRenderingInstance:pp,isVNode:uo,normalizeVNode:er},_B=mB,gB=null,vB=null,bB=null;/**
14 * @vue/runtime-dom v3.4.23
15 * (c) 2018-present Yuxi (Evan) You and Vue contributors
16 * @license MIT
17 **/const yB="http://www.w3.org/2000/svg",wB="http://www.w3.org/1998/Math/MathML",ll=typeof document<"u"?document:null,Ix=ll&&ll.createElement("template"),kB={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?ll.createElementNS(yB,e):t==="mathml"?ll.createElementNS(wB,e):ll.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>ll.createTextNode(e),createComment:e=>ll.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ll.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ix.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Ix.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ds="transition",Rd="animation",Au=Symbol("_vtc"),dr=(e,{slots:t})=>Xe(A$,m7(e),t);dr.displayName="Transition";const h7={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},xB=dr.props=Nt({},aw,h7),Ql=(e,t=[])=>{$e(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ox=e=>e?$e(e)?e.some(t=>t.length>1):e.length>1:!1;function m7(e){const t={};for(const V in e)V in h7||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=CB(r),m=h&&h[0],b=h&&h[1],{onBeforeEnter:v,onEnter:E,onEnterCancelled:w,onLeave:S,onLeaveCancelled:T,onBeforeAppear:$=v,onAppear:A=E,onAppearCancelled:P=w}=t,N=(V,G,ne)=>{Us(V,G?u:l),Us(V,G?c:s),ne&&ne()},I=(V,G)=>{V._isLeaving=!1,Us(V,d),Us(V,p),Us(V,f),G&&G()},B=V=>(G,ne)=>{const oe=V?A:E,Z=()=>N(G,V,ne);Ql(oe,[G,Z]),Px(()=>{Us(G,V?a:i),ns(G,V?u:l),Ox(oe)||Nx(G,o,m,Z)})};return Nt(t,{onBeforeEnter(V){Ql(v,[V]),ns(V,i),ns(V,s)},onBeforeAppear(V){Ql($,[V]),ns(V,a),ns(V,c)},onEnter:B(!1),onAppear:B(!0),onLeave(V,G){V._isLeaving=!0;const ne=()=>I(V,G);ns(V,d),g7(),ns(V,f),Px(()=>{V._isLeaving&&(Us(V,d),ns(V,p),Ox(S)||Nx(V,o,b,ne))}),Ql(S,[V,ne])},onEnterCancelled(V){N(V,!1),Ql(w,[V])},onAppearCancelled(V){N(V,!0),Ql(P,[V])},onLeaveCancelled(V){I(V),Ql(T,[V])}})}function CB(e){if(e==null)return null;if(st(e))return[B0(e.enter),B0(e.leave)];{const t=B0(e);return[t,t]}}function B0(e){return tg(e)}function ns(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Au]||(e[Au]=new Set)).add(t)}function Us(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Au];n&&(n.delete(t),n.size||(e[Au]=void 0))}function Px(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let SB=0;function Nx(e,t,n,o){const r=e._endId=++SB,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=_7(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=p=>{p.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,f)}function _7(e,t){const n=window.getComputedStyle(e),o=h=>(n[h]||"").split(", "),r=o(`${Ds}Delay`),i=o(`${Ds}Duration`),s=Lx(r,i),l=o(`${Rd}Delay`),a=o(`${Rd}Duration`),c=Lx(l,a);let u=null,d=0,f=0;t===Ds?s>0&&(u=Ds,d=s,f=i.length):t===Rd?c>0&&(u=Rd,d=c,f=a.length):(d=Math.max(s,c),u=d>0?s>c?Ds:Rd:null,f=u?u===Ds?i.length:a.length:0);const p=u===Ds&&/\b(transform|all)(,|$)/.test(o(`${Ds}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Lx(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Rx(n)+Rx(e[o])))}function Rx(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function g7(){return document.body.offsetHeight}function $B(e,t,n){const o=e[Au];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const cg=Symbol("_vod"),v7=Symbol("_vsh"),sn={beforeMount(e,{value:t},{transition:n}){e[cg]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Fd(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Fd(e,!0),o.enter(e)):o.leave(e,()=>{Fd(e,!1)}):Fd(e,t))},beforeUnmount(e,{value:t}){Fd(e,t)}};function Fd(e,t){e.style.display=t?e[cg]:"none",e[v7]=!t}function EB(){sn.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const b7=Symbol("");function TB(e){const t=nt();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>$b(i,r))},o=()=>{const r=e(t.proxy);Sb(t.subTree,r),n(r)};mt(()=>{E$(o);const r=new MutationObserver(o);r.observe(t.subTree.el.parentNode,{childList:!0}),Hi(()=>r.disconnect())})}function Sb(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Sb(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)$b(e.el,t);else if(e.type===Q)e.children.forEach(n=>Sb(n,t));else if(e.type===Na){let{el:n,anchor:o}=e;for(;n&&($b(n,t),n!==o);)n=n.nextSibling}}function $b(e,t){if(e.nodeType===1){const n=e.style;let o="";for(const r in t)n.setProperty(`--${r}`,t[r]),o+=`--${r}: ${t[r]};`;n[b7]=o}}const MB=/(^|;)\s*display\s*:/;function AB(e,t,n){const o=e.style,r=je(n);let i=!1;if(n&&!r){if(t)if(je(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&zm(o,l,"")}else for(const s in t)n[s]==null&&zm(o,s,"");for(const s in n)s==="display"&&(i=!0),zm(o,s,n[s])}else if(r){if(t!==n){const s=o[b7];s&&(n+=";"+s),o.cssText=n,i=MB.test(n)}}else t&&e.removeAttribute("style");cg in e&&(e[cg]=i?o.display:"",e[v7]&&(o.display="none"))}const Fx=/\s*!important$/;function zm(e,t,n){if($e(n))n.forEach(o=>zm(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=IB(e,t);Fx.test(n)?e.setProperty(Po(o),n.replace(Fx,""),"important"):e[o]=n}}const Dx=["Webkit","Moz","ms"],z0={};function IB(e,t){const n=z0[t];if(n)return n;let o=dn(t);if(o!=="filter"&&o in e)return z0[t]=o;o=Rl(o);for(let r=0;r<Dx.length;r++){const i=Dx[r]+o;if(i in e)return z0[t]=i}return t}const Bx="http://www.w3.org/1999/xlink";function OB(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Bx,t.slice(6,t.length)):e.setAttributeNS(Bx,t,n);else{const i=mF(t);n==null||i&&!K9(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function PB(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const c=l==="OPTION"?e.getAttribute("value")||"":e.value,u=n??"";(c!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=K9(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function ds(e,t,n,o){e.addEventListener(t,n,o)}function NB(e,t,n,o){e.removeEventListener(t,n,o)}const zx=Symbol("_vei");function LB(e,t,n,o,r=null){const i=e[zx]||(e[zx]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=RB(t);if(o){const c=i[t]=BB(o,r);ds(e,l,c,a)}else s&&(NB(e,l,s,a),i[t]=void 0)}}const Vx=/(?:Once|Passive|Capture)$/;function RB(e){let t;if(Vx.test(e)){t={};let o;for(;o=e.match(Vx);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Po(e.slice(2)),t]}let V0=0;const FB=Promise.resolve(),DB=()=>V0||(FB.then(()=>V0=0),V0=Date.now());function BB(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;ir(zB(o,n.value),t,5,[o])};return n.value=e,n.attached=DB(),n}function zB(e,t){if($e(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const jx=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,VB=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?$B(e,o,c):t==="style"?AB(e,n,o):cc(t)?V2(t)||LB(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jB(e,t,o,c))?PB(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),OB(e,t,o,c))};function jB(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&jx(t)&&Ue(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return jx(t)&&je(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function y7(e,t){const n=K(e);class o extends m1{constructor(i){super(n,i,t)}}return o.def=n,o}/*! #__NO_SIDE_EFFECTS__ */const HB=e=>y7(e,I7),UB=typeof HTMLElement<"u"?HTMLElement:class{};class m1 extends UB{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),tt(()=>{this._connected||(ws(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let l;if(i&&!$e(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=tg(this._props[a])),(l||(l=Object.create(null)))[dn(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=$e(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(dn))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.hasAttribute(t)?this.getAttribute(t):void 0;const o=dn(t);this._numberProps&&this._numberProps[o]&&(n=tg(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Po(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Po(t),n+""):n||this.removeAttribute(Po(t))))}_update(){ws(this._createVNode(),this.shadowRoot)}_createVNode(){const t=y(this._def,Nt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,{detail:s}))};n.emit=(i,...s)=>{o(i,s),Po(i)!==i&&o(Po(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof m1){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}function WB(e="$style"){{const t=nt();if(!t)return Dt;const n=t.type.__cssModules;if(!n)return Dt;const o=n[e];return o||Dt}}const w7=new WeakMap,k7=new WeakMap,ug=Symbol("_moveCb"),Hx=Symbol("_enterCb"),x7={name:"TransitionGroup",props:Nt({},xB,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=nt(),o=lw();let r,i;return Bl(()=>{if(!r.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!ZB(r[0].el,n.vnode.el,s))return;r.forEach(KB),r.forEach(GB);const l=r.filter(YB);g7(),l.forEach(a=>{const c=a.el,u=c.style;ns(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[ug]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[ug]=null,Us(c,s))};c.addEventListener("transitionend",d)})}),()=>{const s=xt(e),l=m7(s);let a=s.tag||Q;if(r=[],i)for(let c=0;c<i.length;c++){const u=i[c];u.el&&u.el instanceof Element&&(r.push(u),qa(u,Mu(u,l,o,n)),w7.set(u,u.el.getBoundingClientRect()))}i=t.default?f1(t.default()):[];for(let c=0;c<i.length;c++){const u=i[c];u.key!=null&&qa(u,Mu(u,l,o,n))}return y(a,null,i)}}},qB=e=>delete e.mode;x7.props;const _1=x7;function KB(e){const t=e.el;t[ug]&&t[ug](),t[Hx]&&t[Hx]()}function GB(e){k7.set(e,e.el.getBoundingClientRect())}function YB(e){const t=w7.get(e),n=k7.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${o}px,${r}px)`,i.transitionDuration="0s",e}}function ZB(e,t,n){const o=e.cloneNode(),r=e[Au];r&&r.forEach(l=>{l.split(/\s+/).forEach(a=>a&&o.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&o.classList.add(l)),o.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(o);const{hasTransform:s}=_7(o);return i.removeChild(o),s}const Il=e=>{const t=e.props["onUpdate:modelValue"]||!1;return $e(t)?n=>au(t,n):t};function JB(e){e.target.composing=!0}function Ux(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Tr=Symbol("_assign"),Iu={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[Tr]=Il(r);const i=o||r.props&&r.props.type==="number";ds(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=eg(l)),e[Tr](l)}),n&&ds(e,"change",()=>{e.value=e.value.trim()}),t||(ds(e,"compositionstart",JB),ds(e,"compositionend",Ux),ds(e,"change",Ux))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[Tr]=Il(i),e.composing)return;const s=(r||e.type==="number")&&!/^0\d/.test(e.value)?eg(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Ya={deep:!0,created(e,t,n){e[Tr]=Il(n),ds(e,"change",()=>{const o=e._modelValue,r=Ou(e),i=e.checked,s=e[Tr];if($e(o)){const l=i1(o,r),a=l!==-1;if(i&&!a)s(o.concat(r));else if(!i&&a){const c=[...o];c.splice(l,1),s(c)}}else if(uc(o)){const l=new Set(o);i?l.add(r):l.delete(r),s(l)}else s(S7(e,i))})},mounted:Wx,beforeUpdate(e,t,n){e[Tr]=Il(n),Wx(e,t,n)}};function Wx(e,{value:t,oldValue:n},o){e._modelValue=t,$e(t)?e.checked=i1(t,o.props.value)>-1:uc(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=Al(t,S7(e,!0)))}const Yp={created(e,{value:t},n){e.checked=Al(t,n.props.value),e[Tr]=Il(n),ds(e,"change",()=>{e[Tr](Ou(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[Tr]=Il(o),t!==n&&(e.checked=Al(t,o.props.value))}},C7={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=uc(t);ds(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?eg(Ou(s)):Ou(s));e[Tr](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,tt(()=>{e._assigning=!1})}),e[Tr]=Il(o)},mounted(e,{value:t,modifiers:{number:n}}){qx(e,t)},beforeUpdate(e,t,n){e[Tr]=Il(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||qx(e,t)}};function qx(e,t,n){const o=e.multiple,r=$e(t);if(!(o&&!r&&!uc(t))){for(let i=0,s=e.options.length;i<s;i++){const l=e.options[i],a=Ou(l);if(o)if(r){const c=typeof a;c==="string"||c==="number"?l.selected=t.some(u=>String(u)===String(a)):l.selected=i1(t,a)>-1}else l.selected=t.has(a);else if(Al(Ou(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ou(e){return"_value"in e?e._value:e.value}function S7(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const $7={created(e,t,n){nm(e,t,n,null,"created")},mounted(e,t,n){nm(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){nm(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){nm(e,t,n,o,"updated")}};function E7(e,t){switch(e){case"SELECT":return C7;case"TEXTAREA":return Iu;default:switch(t){case"checkbox":return Ya;case"radio":return Yp;default:return Iu}}}function nm(e,t,n,o,r){const s=E7(e.tagName,n.props&&n.props.type)[r];s&&s(e,t,n,o)}function XB(){Iu.getSSRProps=({value:e})=>({value:e}),Yp.getSSRProps=({value:e},t)=>{if(t.props&&Al(t.props.value,e))return{checked:!0}},Ya.getSSRProps=({value:e},t)=>{if($e(e)){if(t.props&&i1(e,t.props.value)>-1)return{checked:!0}}else if(uc(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},$7.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=E7(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const QB=["ctrl","shift","alt","meta"],ez={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>QB.some(n=>e[`${n}Key`]&&!t.includes(n))},qe=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s<t.length;s++){const l=ez[t[s]];if(l&&l(r,t))return}return e(r,...i)})},tz={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ut=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Po(r.key);if(t.some(s=>s===i||tz[s]===i))return e(r)})},T7=Nt({patchProp:VB},kB);let Pf,Kx=!1;function M7(){return Pf||(Pf=Z$(T7))}function A7(){return Pf=Kx?Pf:J$(T7),Kx=!0,Pf}const ws=(...e)=>{M7().render(...e)},I7=(...e)=>{A7().hydrate(...e)},_w=(...e)=>{const t=M7().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=P7(o);if(!r)return;const i=t._component;!Ue(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,O7(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t},nz=(...e)=>{const t=A7().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=P7(o);if(r)return n(r,!0,O7(r))},t};function O7(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function P7(e){return je(e)?document.querySelector(e):e}let Gx=!1;const oz=()=>{Gx||(Gx=!0,XB(),EB())},rz=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:A$,BaseTransitionPropsValidators:aw,Comment:zn,DeprecationTypes:bB,EffectScope:W2,ErrorCodes:ZF,ErrorTypeStrings:fB,Fragment:Q,KeepAlive:yD,ReactiveEffect:Eu,Static:Na,Suspense:uD,Teleport:sr,Text:ys,TrackOpTypes:KF,Transition:dr,TransitionGroup:_1,TriggerOpTypes:GF,VueElement:m1,assertNumber:YF,callWithAsyncErrorHandling:ir,callWithErrorHandling:gs,camelize:dn,capitalize:Rl,cloneVNode:ri,compatUtils:vB,computed:D,createApp:_w,createBlock:L,createCommentVNode:O,createElementBlock:k,createElementVNode:g,createHydrationRenderer:J$,createPropsRestProxy:PD,createRenderer:Z$,createSSRApp:nz,createSlots:Vo,createStaticVNode:ad,createTextVNode:te,createVNode:y,customRef:p$,defineAsyncComponent:vD,defineComponent:K,defineCustomElement:y7,defineEmits:SD,defineExpose:$D,defineModel:MD,defineOptions:ED,defineProps:CD,defineSSRCustomElement:HB,defineSlots:TD,devtools:pB,effect:vF,effectScope:Y9,getCurrentInstance:nt,getCurrentScope:q2,getTransitionRawChildren:f1,guardReactiveProps:hw,h:Xe,handleError:fc,hasInjectionContext:jD,hydrate:I7,initCustomFormatter:uB,initDirectivesForSSR:oz,inject:Ne,isMemoSame:d7,isProxy:X2,isReactive:cu,isReadonly:Tu,isRef:Zt,isRuntimeOnly:sB,isShallow:cp,isVNode:uo,markRaw:oi,mergeDefaults:ID,mergeModels:OD,mergeProps:hn,nextTick:tt,normalizeClass:R,normalizeProps:U2,normalizeStyle:Be,onActivated:O$,onBeforeMount:ld,onBeforeUnmount:yn,onBeforeUpdate:N$,onDeactivated:cw,onErrorCaptured:D$,onMounted:mt,onRenderTracked:F$,onRenderTriggered:R$,onScopeDispose:K2,onServerPrefetch:L$,onUnmounted:Hi,onUpdated:Bl,openBlock:_,popScopeId:w$,provide:wt,proxyRefs:tw,pushScopeId:y$,queuePostFlushCb:og,reactive:jn,readonly:dc,ref:H,registerRuntimeCompiler:a7,render:ws,renderList:Te,renderSlot:le,resolveComponent:z,resolveDirective:Mt,resolveDynamicComponent:Et,resolveFilter:gB,resolveTransitionHooks:Mu,setBlockTracking:bb,setDevtoolsHook:hB,setTransitionHooks:qa,shallowReactive:J2,shallowReadonly:BF,shallowRef:xn,ssrContextKey:S$,ssrUtils:_B,stop:bF,toDisplayString:M,toHandlerKey:lu,toHandlers:kD,toRaw:xt,toRef:Nn,toRefs:ji,toValue:jF,transformVNodeArgs:tB,triggerRef:VF,unref:C,useAttrs:uw,useCssModule:WB,useCssVars:TB,useModel:cB,useSSRContext:$$,useSlots:Ui,useTransitionState:lw,vModelCheckbox:Ya,vModelDynamic:$7,vModelRadio:Yp,vModelSelect:C7,vModelText:Iu,vShow:sn,version:f7,warn:p7,watch:ke,watchEffect:Zr,watchPostEffect:E$,watchSyncEffect:T$,withAsyncContext:ND,withCtx:x,withDefaults:AD,withDirectives:ze,withKeys:Ut,withMemo:dB,withModifiers:qe,withScopeId:oD},Symbol.toStringTag,{value:"Module"}));/**
18 * @vue/compiler-core v3.4.23
19 * (c) 2018-present Yuxi (Evan) You and Vue contributors
20 * @license MIT
21 **/const _p=Symbol(""),Nf=Symbol(""),gw=Symbol(""),dg=Symbol(""),N7=Symbol(""),Za=Symbol(""),L7=Symbol(""),R7=Symbol(""),vw=Symbol(""),bw=Symbol(""),Zp=Symbol(""),yw=Symbol(""),F7=Symbol(""),ww=Symbol(""),kw=Symbol(""),xw=Symbol(""),Cw=Symbol(""),Sw=Symbol(""),$w=Symbol(""),D7=Symbol(""),B7=Symbol(""),g1=Symbol(""),fg=Symbol(""),Ew=Symbol(""),Tw=Symbol(""),gp=Symbol(""),Jp=Symbol(""),Mw=Symbol(""),Eb=Symbol(""),iz=Symbol(""),Tb=Symbol(""),pg=Symbol(""),sz=Symbol(""),lz=Symbol(""),Aw=Symbol(""),az=Symbol(""),cz=Symbol(""),Iw=Symbol(""),z7=Symbol(""),Pu={[_p]:"Fragment",[Nf]:"Teleport",[gw]:"Suspense",[dg]:"KeepAlive",[N7]:"BaseTransition",[Za]:"openBlock",[L7]:"createBlock",[R7]:"createElementBlock",[vw]:"createVNode",[bw]:"createElementVNode",[Zp]:"createCommentVNode",[yw]:"createTextVNode",[F7]:"createStaticVNode",[ww]:"resolveComponent",[kw]:"resolveDynamicComponent",[xw]:"resolveDirective",[Cw]:"resolveFilter",[Sw]:"withDirectives",[$w]:"renderList",[D7]:"renderSlot",[B7]:"createSlots",[g1]:"toDisplayString",[fg]:"mergeProps",[Ew]:"normalizeClass",[Tw]:"normalizeStyle",[gp]:"normalizeProps",[Jp]:"guardReactiveProps",[Mw]:"toHandlers",[Eb]:"camelize",[iz]:"capitalize",[Tb]:"toHandlerKey",[pg]:"setBlockTracking",[sz]:"pushScopeId",[lz]:"popScopeId",[Aw]:"withCtx",[az]:"unref",[cz]:"isRef",[Iw]:"withMemo",[z7]:"isMemoSame"};function uz(e){Object.getOwnPropertySymbols(e).forEach(t=>{Pu[t]=e[t]})}const fr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function dz(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:fr}}function vp(e,t,n,o,r,i,s,l=!1,a=!1,c=!1,u=fr){return e&&(l?(e.helper(Za),e.helper(Ru(e.inSSR,c))):e.helper(Lu(e.inSSR,c)),s&&e.helper(Sw)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:i,directives:s,isBlock:l,disableTracking:a,isComponent:c,loc:u}}function Xp(e,t=fr){return{type:17,loc:t,elements:e}}function Cr(e,t=fr){return{type:15,loc:t,properties:e}}function bn(e,t){return{type:16,loc:fr,key:je(e)?gt(e,!0):e,value:t}}function gt(e,t=!1,n=fr,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Jr(e,t=fr){return{type:8,loc:t,children:e}}function On(e,t=[],n=fr){return{type:14,loc:n,callee:e,arguments:t}}function Nu(e,t=void 0,n=!1,o=!1,r=fr){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Mb(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:fr}}function fz(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:fr}}function pz(e){return{type:21,body:e,loc:fr}}function Lu(e,t){return e||t?vw:bw}function Ru(e,t){return e||t?L7:R7}function Ow(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Lu(o,e.isComponent)),t(Za),t(Ru(o,e.isComponent)))}const Yx=new Uint8Array([123,123]),Zx=new Uint8Array([125,125]);function Jx(e){return e>=97&&e<=122||e>=65&&e<=90}function Xo(e){return e===32||e===10||e===9||e===12||e===13}function Bs(e){return e===47||e===62||Xo(e)}function hg(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const to={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class hz{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Yx,this.delimiterClose=Zx,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Yx,this.delimiterClose=Zx}getPos(t){let n=1,o=t+1;for(let r=this.newlines.length-1;r>=0;r--){const i=this.newlines[r];if(t>i){n=r+2,o=t-i;break}}return{column:o,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Bs(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Xo(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const o=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=o}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===to.TitleEnd||this.currentSequence===to.TextareaEnd&&!this.inSFCRoot?t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===to.Cdata[this.sequenceIndex]?++this.sequenceIndex===to.Cdata.length&&(this.state=28,this.currentSequence=to.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===to.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):Jx(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Bs(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Bs(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(hg("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){Xo(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Jx(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||Xo(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Xo(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Xo(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Bs(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Bs(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Bs(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Bs(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Bs(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):Xo(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):Xo(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){Xo(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=to.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===to.ScriptEnd[3]?this.startSpecial(to.ScriptEnd,4):t===to.StyleEnd[3]?this.startSpecial(to.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===to.TitleEnd[3]?this.startSpecial(to.TitleEnd,4):t===to.TextareaEnd[3]?this.startSpecial(to.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===to.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}function Xx(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function La(e,t){const n=Xx("MODE",t),o=Xx(e,t);return n===3?o===!0:o!==!1}function bp(e,t,n,...o){return La(e,t)}function Pw(e){throw e}function V7(e){}function un(e,t,n,o){const r=`https://vuejs.org/error-reference/#compiler-${e}`,i=new SyntaxError(String(r));return i.code=e,i.loc=t,i}const Lo=e=>e.type===4&&e.isStatic;function j7(e){switch(e){case"Teleport":case"teleport":return Nf;case"Suspense":case"suspense":return gw;case"KeepAlive":case"keep-alive":return dg;case"BaseTransition":case"base-transition":return N7}}const mz=/^\d|[^\$\w]/,Nw=e=>!mz.test(e),_z=/[A-Za-z_$\xA0-\uFFFF]/,gz=/[\.\?\w$\xA0-\uFFFF]/,vz=/\s+[.[]\s*|\s*[.[]\s+/g,bz=e=>{e=e.trim().replace(vz,s=>s.trim());let t=0,n=[],o=0,r=0,i=null;for(let s=0;s<e.length;s++){const l=e.charAt(s);switch(t){case 0:if(l==="[")n.push(t),t=1,o++;else if(l==="(")n.push(t),t=2,r++;else if(!(s===0?_z:gz).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(n.push(t),t=3,i=l):l==="["?o++:l==="]"&&(--o||(t=n.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")n.push(t),t=3,i=l;else if(l==="(")r++;else if(l===")"){if(s===e.length-1)return!1;--r||(t=n.pop())}break;case 3:l===i&&(t=n.pop(),i=null);break}}return!o&&!r},H7=bz;function qr(e,t,n=!1){for(let o=0;o<e.props.length;o++){const r=e.props[o];if(r.type===7&&(n||r.exp)&&(je(t)?r.name===t:t.test(r.name)))return r}}function v1(e,t,n=!1,o=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||o))return i}else if(i.name==="bind"&&(i.exp||o)&&wa(i.arg,t))return i}}function wa(e,t){return!!(e&&Lo(e)&&e.content===t)}function yz(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function j0(e){return e.type===5||e.type===2}function wz(e){return e.type===7&&e.name==="slot"}function mg(e){return e.type===1&&e.tagType===3}function _g(e){return e.type===1&&e.tagType===2}const kz=new Set([gp,Jp]);function U7(e,t=[]){if(e&&!je(e)&&e.type===14){const n=e.callee;if(!je(n)&&kz.has(n))return U7(e.arguments[0],t.concat(e))}return[e,t]}function gg(e,t,n){let o,r=e.type===13?e.props:e.arguments[2],i=[],s;if(r&&!je(r)&&r.type===14){const l=U7(r);r=l[0],i=l[1],s=i[i.length-1]}if(r==null||je(r))o=Cr([t]);else if(r.type===14){const l=r.arguments[0];!je(l)&&l.type===15?Qx(t,l)||l.properties.unshift(t):r.callee===Mw?o=On(n.helper(fg),[Cr([t]),r]):r.arguments.unshift(Cr([t])),!o&&(o=r)}else r.type===15?(Qx(t,r)||r.properties.unshift(t),o=r):(o=On(n.helper(fg),[Cr([t]),r]),s&&s.callee===Jp&&(s=i[i.length-2]));e.type===13?s?s.arguments[0]=o:e.props=o:s?s.arguments[0]=o:e.arguments[2]=o}function Qx(e,t){let n=!1;if(e.key.type===4){const o=e.key.content;n=t.properties.some(r=>r.key.type===4&&r.key.content===o)}return n}function yp(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,o)=>n==="-"?"_":e.charCodeAt(o).toString())}`}function xz(e){return e.type===14&&e.callee===Iw?e.arguments[1].returns:e}const Cz=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,W7={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Rm,isPreTag:Rm,isCustomElement:Rm,onError:Pw,onWarn:V7,comments:!1,prefixIdentifiers:!1};let Bt=W7,wp=null,vs="",ro=null,Ot=null,Mo="",rs=-1,sa=-1,vg=0,al=!1,Ab=null;const _n=[],vn=new hz(_n,{onerr:Xi,ontext(e,t){om(qn(e,t),e,t)},ontextentity(e,t,n){om(e,t,n)},oninterpolation(e,t){if(al)return om(qn(e,t),e,t);let n=e+vn.delimiterOpen.length,o=t-vn.delimiterClose.length;for(;Xo(vs.charCodeAt(n));)n++;for(;Xo(vs.charCodeAt(o-1));)o--;let r=qn(n,o);r.includes("&")&&(r=Bt.decodeEntities(r,!1)),Ib({type:5,content:jm(r,!1,In(n,o)),loc:In(e,t)})},onopentagname(e,t){const n=qn(e,t);ro={type:1,tag:n,ns:Bt.getNamespace(n,_n[0],Bt.ns),tagType:0,props:[],children:[],loc:In(e-1,t),codegenNode:void 0}},onopentagend(e){t5(e)},onclosetag(e,t){const n=qn(e,t);if(!Bt.isVoidTag(n)){let o=!1;for(let r=0;r<_n.length;r++)if(_n[r].tag.toLowerCase()===n.toLowerCase()){o=!0,r>0&&Xi(24,_n[0].loc.start.offset);for(let s=0;s<=r;s++){const l=_n.shift();Vm(l,t,s<r)}break}o||Xi(23,q7(e,60))}},onselfclosingtag(e){var t;const n=ro.tag;ro.isSelfClosing=!0,t5(e),((t=_n[0])==null?void 0:t.tag)===n&&Vm(_n.shift(),e)},onattribname(e,t){Ot={type:6,name:qn(e,t),nameLoc:In(e,t),value:void 0,loc:In(e)}},ondirname(e,t){const n=qn(e,t),o=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!al&&o===""&&Xi(26,e),al||o==="")Ot={type:6,name:n,nameLoc:In(e,t),value:void 0,loc:In(e)};else if(Ot={type:7,name:o,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?["prop"]:[],loc:In(e)},o==="pre"){al=vn.inVPre=!0,Ab=ro;const r=ro.props;for(let i=0;i<r.length;i++)r[i].type===7&&(r[i]=Nz(r[i]))}},ondirarg(e,t){if(e===t)return;const n=qn(e,t);if(al)Ot.name+=n,ka(Ot.nameLoc,t);else{const o=n[0]!=="[";Ot.arg=jm(o?n:n.slice(1,-1),o,In(e,t),o?3:0)}},ondirmodifier(e,t){const n=qn(e,t);if(al)Ot.name+="."+n,ka(Ot.nameLoc,t);else if(Ot.name==="slot"){const o=Ot.arg;o&&(o.content+="."+n,ka(o.loc,t))}else Ot.modifiers.push(n)},onattribdata(e,t){Mo+=qn(e,t),rs<0&&(rs=e),sa=t},onattribentity(e,t,n){Mo+=e,rs<0&&(rs=t),sa=n},onattribnameend(e){const t=Ot.loc.start.offset,n=qn(t,e);Ot.type===7&&(Ot.rawName=n),ro.props.some(o=>(o.type===7?o.rawName:o.name)===n)&&Xi(2,t)},onattribend(e,t){if(ro&&Ot){if(ka(Ot.loc,t),e!==0)if(Mo.includes("&")&&(Mo=Bt.decodeEntities(Mo,!0)),Ot.type===6)Ot.name==="class"&&(Mo=G7(Mo).trim()),e===1&&!Mo&&Xi(13,t),Ot.value={type:2,content:Mo,loc:e===1?In(rs,sa):In(rs-1,sa+1)},vn.inSFCRoot&&ro.tag==="template"&&Ot.name==="lang"&&Mo&&Mo!=="html"&&vn.enterRCDATA(hg("</template"),0);else{let n=0;Ot.exp=jm(Mo,!1,In(rs,sa),0,n),Ot.name==="for"&&(Ot.forParseResult=$z(Ot.exp));let o=-1;Ot.name==="bind"&&(o=Ot.modifiers.indexOf("sync"))>-1&&bp("COMPILER_V_BIND_SYNC",Bt,Ot.loc,Ot.rawName)&&(Ot.name="model",Ot.modifiers.splice(o,1))}(Ot.type!==7||Ot.name!=="pre")&&ro.props.push(Ot)}Mo="",rs=sa=-1},oncomment(e,t){Bt.comments&&Ib({type:3,content:qn(e,t),loc:In(e-4,t+3)})},onend(){const e=vs.length;for(let t=0;t<_n.length;t++)Vm(_n[t],e-1),Xi(24,_n[t].loc.start.offset)},oncdata(e,t){_n[0].ns!==0?om(qn(e,t),e,t):Xi(1,e-9)},onprocessinginstruction(e){(_n[0]?_n[0].ns:Bt.ns)===0&&Xi(21,e-1)}}),e5=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Sz=/^\(|\)$/g;function $z(e){const t=e.loc,n=e.content,o=n.match(Cz);if(!o)return;const[,r,i]=o,s=(d,f,p=!1)=>{const h=t.start.offset+f,m=h+d.length;return jm(d,!1,In(h,m),0,p?1:0)},l={source:s(i.trim(),n.indexOf(i,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let a=r.trim().replace(Sz,"").trim();const c=r.indexOf(a),u=a.match(e5);if(u){a=a.replace(e5,"").trim();const d=u[1].trim();let f;if(d&&(f=n.indexOf(d,c+a.length),l.key=s(d,f,!0)),u[2]){const p=u[2].trim();p&&(l.index=s(p,n.indexOf(p,l.key?f+d.length:c+a.length),!0))}}return a&&(l.value=s(a,c,!0)),l}function qn(e,t){return vs.slice(e,t)}function t5(e){vn.inSFCRoot&&(ro.innerLoc=In(e+1,e+1)),Ib(ro);const{tag:t,ns:n}=ro;n===0&&Bt.isPreTag(t)&&vg++,Bt.isVoidTag(t)?Vm(ro,e):(_n.unshift(ro),(n===1||n===2)&&(vn.inXML=!0)),ro=null}function om(e,t,n){var o;{const s=(o=_n[0])==null?void 0:o.tag;s!=="script"&&s!=="style"&&e.includes("&")&&(e=Bt.decodeEntities(e,!1))}const r=_n[0]||wp,i=r.children[r.children.length-1];(i==null?void 0:i.type)===2?(i.content+=e,ka(i.loc,n)):r.children.push({type:2,content:e,loc:In(t,n)})}function Vm(e,t,n=!1){n?ka(e.loc,q7(t,60)):ka(e.loc,Ez(t,62)+1),vn.inSFCRoot&&(e.children.length?e.innerLoc.end=Nt({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Nt({},e.innerLoc.start),e.innerLoc.source=qn(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:r}=e;al||(o==="slot"?e.tagType=2:n5(e)?e.tagType=3:Mz(e)&&(e.tagType=1)),vn.inRCDATA||(e.children=K7(e.children,e.tag)),r===0&&Bt.isPreTag(o)&&vg--,Ab===e&&(al=vn.inVPre=!1,Ab=null),vn.inXML&&(_n[0]?_n[0].ns:Bt.ns)===0&&(vn.inXML=!1);{const i=e.props;if(!vn.inSFCRoot&&La("COMPILER_NATIVE_TEMPLATE",Bt)&&e.tag==="template"&&!n5(e)){const l=_n[0]||wp,a=l.children.indexOf(e);l.children.splice(a,1,...e.children)}const s=i.find(l=>l.type===6&&l.name==="inline-template");s&&bp("COMPILER_INLINE_TEMPLATE",Bt,s.loc)&&e.children.length&&(s.value={type:2,content:qn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:s.loc})}}function Ez(e,t){let n=e;for(;vs.charCodeAt(n)!==t&&n<vs.length-1;)n++;return n}function q7(e,t){let n=e;for(;vs.charCodeAt(n)!==t&&n>=0;)n--;return n}const Tz=new Set(["if","else","else-if","for","slot"]);function n5({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Tz.has(t[n].name))return!0}return!1}function Mz({tag:e,props:t}){var n;if(Bt.isCustomElement(e))return!1;if(e==="component"||Az(e.charCodeAt(0))||j7(e)||(n=Bt.isBuiltInComponent)!=null&&n.call(Bt,e)||Bt.isNativeTag&&!Bt.isNativeTag(e))return!0;for(let o=0;o<t.length;o++){const r=t[o];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(bp("COMPILER_IS_ON_ELEMENT",Bt,r.loc))return!0}}else if(r.name==="bind"&&wa(r.arg,"is")&&bp("COMPILER_IS_ON_ELEMENT",Bt,r.loc))return!0}return!1}function Az(e){return e>64&&e<91}const Iz=/\r\n/g;function K7(e,t){var n,o;const r=Bt.whitespace!=="preserve";let i=!1;for(let s=0;s<e.length;s++){const l=e[s];if(l.type===2)if(vg)l.content=l.content.replace(Iz,`
22 `);else if(Oz(l.content)){const a=(n=e[s-1])==null?void 0:n.type,c=(o=e[s+1])==null?void 0:o.type;!a||!c||r&&(a===3&&(c===3||c===1)||a===1&&(c===3||c===1&&Pz(l.content)))?(i=!0,e[s]=null):l.content=" "}else r&&(l.content=G7(l.content))}if(vg&&t&&Bt.isPreTag(t)){const s=e[0];s&&s.type===2&&(s.content=s.content.replace(/^\r?\n/,""))}return i?e.filter(Boolean):e}function Oz(e){for(let t=0;t<e.length;t++)if(!Xo(e.charCodeAt(t)))return!1;return!0}function Pz(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function G7(e){let t="",n=!1;for(let o=0;o<e.length;o++)Xo(e.charCodeAt(o))?n||(t+=" ",n=!0):(t+=e[o],n=!1);return t}function Ib(e){(_n[0]||wp).children.push(e)}function In(e,t){return{start:vn.getPos(e),end:t==null?t:vn.getPos(t),source:t==null?t:qn(e,t)}}function ka(e,t){e.end=vn.getPos(t),e.source=qn(e.start.offset,t)}function Nz(e){const t={type:6,name:e.rawName,nameLoc:In(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function jm(e,t=!1,n,o=0,r=0){return gt(e,t,n,o)}function Xi(e,t,n){Bt.onError(un(e,In(t,t)))}function Lz(){vn.reset(),ro=null,Ot=null,Mo="",rs=-1,sa=-1,_n.length=0}function Rz(e,t){if(Lz(),vs=e,Bt=Nt({},W7),t){let r;for(r in t)t[r]!=null&&(Bt[r]=t[r])}vn.mode=Bt.parseMode==="html"?1:Bt.parseMode==="sfc"?2:0,vn.inXML=Bt.ns===1||Bt.ns===2;const n=t==null?void 0:t.delimiters;n&&(vn.delimiterOpen=hg(n[0]),vn.delimiterClose=hg(n[1]));const o=wp=dz([],e);return vn.parse(vs),o.loc=In(0,e.length),o.children=K7(o.children),wp=null,o}function Fz(e,t){Hm(e,t,Y7(e,e.children[0]))}function Y7(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!_g(t)}function Hm(e,t,n=!1){const{children:o}=e,r=o.length;let i=0;for(let s=0;s<o.length;s++){const l=o[s];if(l.type===1&&l.tagType===0){const a=n?0:Sr(l,t);if(a>0){if(a>=2){l.codegenNode.patchFlag="-1",l.codegenNode=t.hoist(l.codegenNode),i++;continue}}else{const c=l.codegenNode;if(c.type===13){const u=Q7(c);if((!u||u===512||u===1)&&J7(l,t)>=2){const d=X7(l);d&&(c.props=t.hoist(d))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(l.type===1){const a=l.tagType===1;a&&t.scopes.vSlot++,Hm(l,t),a&&t.scopes.vSlot--}else if(l.type===11)Hm(l,t,l.children.length===1);else if(l.type===9)for(let a=0;a<l.branches.length;a++)Hm(l.branches[a],t,l.branches[a].children.length===1)}if(i&&t.transformHoist&&t.transformHoist(o,t,e),i&&i===r&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&$e(e.codegenNode.children)){const s=t.hoist(Xp(e.codegenNode.children));t.hmr&&(s.content=`[...${s.content}]`),e.codegenNode.children=s}}function Sr(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const o=n.get(e);if(o!==void 0)return o;const r=e.codegenNode;if(r.type!==13||r.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(Q7(r))return n.set(e,0),0;{let l=3;const a=J7(e,t);if(a===0)return n.set(e,0),0;a<l&&(l=a);for(let c=0;c<e.children.length;c++){const u=Sr(e.children[c],t);if(u===0)return n.set(e,0),0;u<l&&(l=u)}if(l>1)for(let c=0;c<e.props.length;c++){const u=e.props[c];if(u.type===7&&u.name==="bind"&&u.exp){const d=Sr(u.exp,t);if(d===0)return n.set(e,0),0;d<l&&(l=d)}}if(r.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(Za),t.removeHelper(Ru(t.inSSR,r.isComponent)),r.isBlock=!1,t.helper(Lu(t.inSSR,r.isComponent))}return n.set(e,l),l}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Sr(e.content,t);case 4:return e.constType;case 8:let s=3;for(let l=0;l<e.children.length;l++){const a=e.children[l];if(je(a)||Or(a))continue;const c=Sr(a,t);if(c===0)return 0;c<s&&(s=c)}return s;default:return 0}}const Dz=new Set([Ew,Tw,gp,Jp]);function Z7(e,t){if(e.type===14&&!je(e.callee)&&Dz.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Sr(n,t);if(n.type===14)return Z7(n,t)}return 0}function J7(e,t){let n=3;const o=X7(e);if(o&&o.type===15){const{properties:r}=o;for(let i=0;i<r.length;i++){const{key:s,value:l}=r[i],a=Sr(s,t);if(a===0)return a;a<n&&(n=a);let c;if(l.type===4?c=Sr(l,t):l.type===14?c=Z7(l,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function X7(e){const t=e.codegenNode;if(t.type===13)return t.props}function Q7(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function Bz(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:r=!1,cacheHandlers:i=!1,nodeTransforms:s=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=dt,isCustomElement:u=dt,expressionPlugins:d=[],scopeId:f=null,slotted:p=!0,ssr:h=!1,inSSR:m=!1,ssrCssVars:b="",bindingMetadata:v=Dt,inline:E=!1,isTS:w=!1,onError:S=Pw,onWarn:T=V7,compatConfig:$}){const A=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),P={filename:t,selfName:A&&Rl(dn(A[1])),prefixIdentifiers:n,hoistStatic:o,hmr:r,cacheHandlers:i,nodeTransforms:s,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:d,scopeId:f,slotted:p,ssr:h,inSSR:m,ssrCssVars:b,bindingMetadata:v,inline:E,isTS:w,onError:S,onWarn:T,compatConfig:$,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(N){const I=P.helpers.get(N)||0;return P.helpers.set(N,I+1),N},removeHelper(N){const I=P.helpers.get(N);if(I){const B=I-1;B?P.helpers.set(N,B):P.helpers.delete(N)}},helperString(N){return`_${Pu[P.helper(N)]}`},replaceNode(N){P.parent.children[P.childIndex]=P.currentNode=N},removeNode(N){const I=P.parent.children,B=N?I.indexOf(N):P.currentNode?P.childIndex:-1;!N||N===P.currentNode?(P.currentNode=null,P.onNodeRemoved()):P.childIndex>B&&(P.childIndex--,P.onNodeRemoved()),P.parent.children.splice(B,1)},onNodeRemoved:dt,addIdentifiers(N){},removeIdentifiers(N){},hoist(N){je(N)&&(N=gt(N)),P.hoists.push(N);const I=gt(`_hoisted_${P.hoists.length}`,!1,N.loc,2);return I.hoisted=N,I},cache(N,I=!1){return fz(P.cached++,N,I)}};return P.filters=new Set,P}function zz(e,t){const n=Bz(e,t);b1(e,n),t.hoistStatic&&Fz(e,n),t.ssr||Vz(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Vz(e,t){const{helper:n}=t,{children:o}=e;if(o.length===1){const r=o[0];if(Y7(e,r)&&r.codegenNode){const i=r.codegenNode;i.type===13&&Ow(i,t),e.codegenNode=i}else e.codegenNode=r}else if(o.length>1){let r=64;e.codegenNode=vp(t,n(_p),void 0,e.children,r+"",void 0,void 0,!0,void 0,!1)}}function jz(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const r=e.children[n];je(r)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=o,b1(r,t))}}function b1(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let i=0;i<n.length;i++){const s=n[i](e,t);if(s&&($e(s)?o.push(...s):o.push(s)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Zp);break;case 5:t.ssr||t.helper(g1);break;case 9:for(let i=0;i<e.branches.length;i++)b1(e.branches[i],t);break;case 10:case 11:case 1:case 0:jz(e,t);break}t.currentNode=e;let r=o.length;for(;r--;)o[r]()}function eE(e,t){const n=je(e)?o=>o===e:o=>e.test(o);return(o,r)=>{if(o.type===1){const{props:i}=o;if(o.tagType===3&&i.some(wz))return;const s=[];for(let l=0;l<i.length;l++){const a=i[l];if(a.type===7&&n(a.name)){i.splice(l,1),l--;const c=t(o,a,r);c&&s.push(c)}}return s}}}const y1="/*#__PURE__*/",tE=e=>`${Pu[e]}: _${Pu[e]}`;function Hz(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:o=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:l="Vue",runtimeModuleName:a="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:f=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:i,optimizeImports:s,runtimeGlobalName:l,runtimeModuleName:a,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:f,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${Pu[m]}`},push(m,b=-2,v){p.code+=m},indent(){h(++p.indentLevel)},deindent(m=!1){m?--p.indentLevel:h(--p.indentLevel)},newline(){h(p.indentLevel)}};function h(m){p.push(`
23 `+" ".repeat(m),0)}return p}function Uz(e,t={}){const n=Hz(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:i,indent:s,deindent:l,newline:a,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,p=!i&&o!=="module";Wz(e,n);const m=u?"ssrRender":"render",v=(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(r(`function ${m}(${v}) {`),s(),p&&(r("with (_ctx) {"),s(),f&&(r(`const { ${d.map(tE).join(", ")} } = _Vue
24 `,-1),a())),e.components.length&&(H0(e.components,"component",n),(e.directives.length||e.temps>0)&&a()),e.directives.length&&(H0(e.directives,"directive",n),e.temps>0&&a()),e.filters&&e.filters.length&&(a(),H0(e.filters,"filter",n),a()),e.temps>0){r("let ");for(let E=0;E<e.temps;E++)r(`${E>0?", ":""}_temp${E}`)}return(e.components.length||e.directives.length||e.temps)&&(r(`
25 `,0),a()),u||r("return "),e.codegenNode?lo(e.codegenNode,n):r("null"),p&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Wz(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:i,runtimeModuleName:s,runtimeGlobalName:l,ssrRuntimeModuleName:a}=t,c=l,u=Array.from(e.helpers);if(u.length>0&&(r(`const _Vue = ${c}
26 `,-1),e.hoists.length)){const d=[vw,bw,Zp,yw,F7].filter(f=>u.includes(f)).map(tE).join(", ");r(`const { ${d} } = _Vue
27 `,-1)}qz(e.hoists,t),i(),r("return ")}function H0(e,t,{helper:n,push:o,newline:r,isTS:i}){const s=n(t==="filter"?Cw:t==="component"?ww:xw);for(let l=0;l<e.length;l++){let a=e[l];const c=a.endsWith("__self");c&&(a=a.slice(0,-6)),o(`const ${yp(a,t)} = ${s}(${JSON.stringify(a)}${c?", true":""})${i?"!":""}`),l<e.length-1&&r()}}function qz(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:i,mode:s}=t;o();for(let l=0;l<e.length;l++){const a=e[l];a&&(n(`const _hoisted_${l+1} = `),lo(a,t),o())}t.pure=!1}function Lw(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Qp(e,t,n),n&&t.deindent(),t.push("]")}function Qp(e,t,n=!1,o=!0){const{push:r,newline:i}=t;for(let s=0;s<e.length;s++){const l=e[s];je(l)?r(l,-3):$e(l)?Lw(l,t):lo(l,t),s<e.length-1&&(n?(o&&r(","),i()):o&&r(", "))}}function lo(e,t){if(je(e)){t.push(e,-3);return}if(Or(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:lo(e.codegenNode,t);break;case 2:Kz(e,t);break;case 4:nE(e,t);break;case 5:Gz(e,t);break;case 12:lo(e.codegenNode,t);break;case 8:oE(e,t);break;case 3:Zz(e,t);break;case 13:Jz(e,t);break;case 14:Qz(e,t);break;case 15:eV(e,t);break;case 17:tV(e,t);break;case 18:nV(e,t);break;case 19:oV(e,t);break;case 20:rV(e,t);break;case 21:Qp(e.body,t,!0,!1);break}}function Kz(e,t){t.push(JSON.stringify(e.content),-3,e)}function nE(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function Gz(e,t){const{push:n,helper:o,pure:r}=t;r&&n(y1),n(`${o(g1)}(`),lo(e.content,t),n(")")}function oE(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];je(o)?t.push(o,-3):lo(o,t)}}function Yz(e,t){const{push:n}=t;if(e.type===8)n("["),oE(e,t),n("]");else if(e.isStatic){const o=Nw(e.content)?e.content:JSON.stringify(e.content);n(o,-2,e)}else n(`[${e.content}]`,-3,e)}function Zz(e,t){const{push:n,helper:o,pure:r}=t;r&&n(y1),n(`${o(Zp)}(${JSON.stringify(e.content)})`,-3,e)}function Jz(e,t){const{push:n,helper:o,pure:r}=t,{tag:i,props:s,children:l,patchFlag:a,dynamicProps:c,directives:u,isBlock:d,disableTracking:f,isComponent:p}=e;u&&n(o(Sw)+"("),d&&n(`(${o(Za)}(${f?"true":""}), `),r&&n(y1);const h=d?Ru(t.inSSR,p):Lu(t.inSSR,p);n(o(h)+"(",-2,e),Qp(Xz([i,s,l,a,c]),t),n(")"),d&&n(")"),u&&(n(", "),lo(u,t),n(")"))}function Xz(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Qz(e,t){const{push:n,helper:o,pure:r}=t,i=je(e.callee)?e.callee:o(e.callee);r&&n(y1),n(i+"(",-2,e),Qp(e.arguments,t),n(")")}function eV(e,t){const{push:n,indent:o,deindent:r,newline:i}=t,{properties:s}=e;if(!s.length){n("{}",-2,e);return}const l=s.length>1||!1;n(l?"{":"{ "),l&&o();for(let a=0;a<s.length;a++){const{key:c,value:u}=s[a];Yz(c,t),n(": "),lo(u,t),a<s.length-1&&(n(","),i())}l&&r(),n(l?"}":" }")}function tV(e,t){Lw(e.elements,t)}function nV(e,t){const{push:n,indent:o,deindent:r}=t,{params:i,returns:s,body:l,newline:a,isSlot:c}=e;c&&n(`_${Pu[Aw]}(`),n("(",-2,e),$e(i)?Qp(i,t):i&&lo(i,t),n(") => "),(a||l)&&(n("{"),o()),s?(a&&n("return "),$e(s)?Lw(s,t):lo(s,t)):l&&lo(l,t),(a||l)&&(r(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function oV(e,t){const{test:n,consequent:o,alternate:r,newline:i}=e,{push:s,indent:l,deindent:a,newline:c}=t;if(n.type===4){const d=!Nw(n.content);d&&s("("),nE(n,t),d&&s(")")}else s("("),lo(n,t),s(")");i&&l(),t.indentLevel++,i||s(" "),s("? "),lo(o,t),t.indentLevel--,i&&c(),i||s(" "),s(": ");const u=r.type===19;u||t.indentLevel++,lo(r,t),u||t.indentLevel--,i&&a(!0)}function rV(e,t){const{push:n,helper:o,indent:r,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(`${o(pg)}(-1),`),s()),n(`_cache[${e.index}] = `),lo(e.value,t),e.isVNode&&(n(","),s(),n(`${o(pg)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const iV=eE(/^(if|else|else-if)$/,(e,t,n)=>sV(e,t,n,(o,r,i)=>{const s=n.parent.children;let l=s.indexOf(o),a=0;for(;l-->=0;){const c=s[l];c&&c.type===9&&(a+=c.branches.length)}return()=>{if(i)o.codegenNode=r5(r,a,n);else{const c=lV(o.codegenNode);c.alternate=r5(r,a+o.branches.length-1,n)}}}));function sV(e,t,n,o){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(un(28,t.loc)),t.exp=gt("true",!1,r)}if(t.name==="if"){const r=o5(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),o)return o(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-->=-1;){const s=r[i];if(s&&s.type===3){n.removeNode(s);continue}if(s&&s.type===2&&!s.content.trim().length){n.removeNode(s);continue}if(s&&s.type===9){t.name==="else-if"&&s.branches[s.branches.length-1].condition===void 0&&n.onError(un(30,e.loc)),n.removeNode();const l=o5(e,t);s.branches.push(l);const a=o&&o(s,l,!1);b1(l,n),a&&a(),n.currentNode=null}else n.onError(un(30,e.loc));break}}}function o5(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!qr(e,"for")?e.children:[e],userKey:v1(e,"key"),isTemplateIf:n}}function r5(e,t,n){return e.condition?Mb(e.condition,i5(e,t,n),On(n.helper(Zp),['""',"true"])):i5(e,t,n)}function i5(e,t,n){const{helper:o}=n,r=bn("key",gt(`${t}`,!1,fr,2)),{children:i}=e,s=i[0];if(i.length!==1||s.type!==1)if(i.length===1&&s.type===11){const a=s.codegenNode;return gg(a,r,n),a}else{let a=64;return vp(n,o(_p),Cr([r]),i,a+"",void 0,void 0,!0,!1,!1,e.loc)}else{const a=s.codegenNode,c=xz(a);return c.type===13&&Ow(c,n),gg(c,r,n),a}}function lV(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const aV=eE("for",(e,t,n)=>{const{helper:o,removeHelper:r}=n;return cV(e,t,n,i=>{const s=On(o($w),[i.source]),l=mg(e),a=qr(e,"memo"),c=v1(e,"key"),u=c&&(c.type===6?gt(c.value.content,!0):c.exp),d=c?bn("key",u):null,f=i.source.type===4&&i.source.constType>0,p=f?64:c?128:256;return i.codegenNode=vp(n,o(_p),void 0,s,p+"",void 0,void 0,!0,!f,!1,e.loc),()=>{let h;const{children:m}=i,b=m.length!==1||m[0].type!==1,v=_g(e)?e:l&&e.children.length===1&&_g(e.children[0])?e.children[0]:null;if(v?(h=v.codegenNode,l&&d&&gg(h,d,n)):b?h=vp(n,o(_p),d?Cr([d]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(h=m[0].codegenNode,l&&d&&gg(h,d,n),h.isBlock!==!f&&(h.isBlock?(r(Za),r(Ru(n.inSSR,h.isComponent))):r(Lu(n.inSSR,h.isComponent))),h.isBlock=!f,h.isBlock?(o(Za),o(Ru(n.inSSR,h.isComponent))):o(Lu(n.inSSR,h.isComponent))),a){const E=Nu(Ob(i.parseResult,[gt("_cached")]));E.body=pz([Jr(["const _memo = (",a.exp,")"]),Jr(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(z7)}(_cached, _memo)) return _cached`]),Jr(["const _item = ",h]),gt("_item.memo = _memo"),gt("return _item")]),s.arguments.push(E,gt("_cache"),gt(String(n.cached++)))}else s.arguments.push(Nu(Ob(i.parseResult),h,!0))}})});function cV(e,t,n,o){if(!t.exp){n.onError(un(31,t.loc));return}const r=t.forParseResult;if(!r){n.onError(un(32,t.loc));return}rE(r);const{addIdentifiers:i,removeIdentifiers:s,scopes:l}=n,{source:a,value:c,key:u,index:d}=r,f={type:11,loc:t.loc,source:a,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:r,children:mg(e)?e.children:[e]};n.replaceNode(f),l.vFor++;const p=o&&o(f);return()=>{l.vFor--,p&&p()}}function rE(e,t){e.finalized||(e.finalized=!0)}function Ob({value:e,key:t,index:n},o=[]){return uV([e,t,n,...o])}function uV(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,o)=>n||gt("_".repeat(o+1),!1))}const s5=gt("undefined",!1),dV=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=qr(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},fV=(e,t,n,o)=>Nu(e,n,!1,!0,n.length?n[0].loc:o);function pV(e,t,n=fV){t.helper(Aw);const{children:o,loc:r}=e,i=[],s=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const a=qr(e,"slot",!0);if(a){const{arg:b,exp:v}=a;b&&!Lo(b)&&(l=!0),i.push(bn(b||gt("default",!0),n(v,void 0,o,r)))}let c=!1,u=!1;const d=[],f=new Set;let p=0;for(let b=0;b<o.length;b++){const v=o[b];let E;if(!mg(v)||!(E=qr(v,"slot",!0))){v.type!==3&&d.push(v);continue}if(a){t.onError(un(37,E.loc));break}c=!0;const{children:w,loc:S}=v,{arg:T=gt("default",!0),exp:$,loc:A}=E;let P;Lo(T)?P=T?T.content:"default":l=!0;const N=qr(v,"for"),I=n($,N,w,S);let B,V;if(B=qr(v,"if"))l=!0,s.push(Mb(B.exp,rm(T,I,p++),s5));else if(V=qr(v,/^else(-if)?$/,!0)){let G=b,ne;for(;G--&&(ne=o[G],ne.type===3););if(ne&&mg(ne)&&qr(ne,"if")){o.splice(b,1),b--;let oe=s[s.length-1];for(;oe.alternate.type===19;)oe=oe.alternate;oe.alternate=V.exp?Mb(V.exp,rm(T,I,p++),s5):rm(T,I,p++)}else t.onError(un(30,V.loc))}else if(N){l=!0;const G=N.forParseResult;G?(rE(G),s.push(On(t.helper($w),[G.source,Nu(Ob(G),rm(T,I),!0)]))):t.onError(un(32,N.loc))}else{if(P){if(f.has(P)){t.onError(un(38,A));continue}f.add(P),P==="default"&&(u=!0)}i.push(bn(T,I))}}if(!a){const b=(v,E)=>{const w=n(v,void 0,E,r);return t.compatConfig&&(w.isNonScopedSlot=!0),bn("default",w)};c?d.length&&d.some(v=>iE(v))&&(u?t.onError(un(39,d[0].loc)):i.push(b(void 0,d))):i.push(b(void 0,o))}const h=l?2:Um(e.children)?3:1;let m=Cr(i.concat(bn("_",gt(h+"",!1))),r);return s.length&&(m=On(t.helper(B7),[m,Xp(s)])),{slots:m,hasDynamicSlots:l}}function rm(e,t,n){const o=[bn("name",e),bn("fn",t)];return n!=null&&o.push(bn("key",gt(String(n),!0))),Cr(o)}function Um(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Um(n.children))return!0;break;case 9:if(Um(n.branches))return!0;break;case 10:case 11:if(Um(n.children))return!0;break}}return!1}function iE(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():iE(e.content)}const sE=new WeakMap,hV=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:o,props:r}=e,i=e.tagType===1;let s=i?mV(e,t):`"${o}"`;const l=st(s)&&s.callee===kw;let a,c,u,d=0,f,p,h,m=l||s===Nf||s===gw||!i&&(o==="svg"||o==="foreignObject");if(r.length>0){const b=lE(e,t,void 0,i,l);a=b.props,d=b.patchFlag,p=b.dynamicPropNames;const v=b.directives;h=v&&v.length?Xp(v.map(E=>gV(E,t))):void 0,b.shouldUseBlock&&(m=!0)}if(e.children.length>0)if(s===dg&&(m=!0,d|=1024),i&&s!==Nf&&s!==dg){const{slots:v,hasDynamicSlots:E}=pV(e,t);c=v,E&&(d|=1024)}else if(e.children.length===1&&s!==Nf){const v=e.children[0],E=v.type,w=E===5||E===8;w&&Sr(v,t)===0&&(d|=1),w||E===2?c=v:c=e.children}else c=e.children;d!==0&&(u=String(d),p&&p.length&&(f=vV(p))),e.codegenNode=vp(t,s,a,c,u,f,h,!!m,!1,i,e.loc)};function mV(e,t,n=!1){let{tag:o}=e;const r=Pb(o),i=v1(e,"is",!1,!0);if(i)if(r||La("COMPILER_IS_ON_ELEMENT",t)){let l;if(i.type===6?l=i.value&&gt(i.value.content,!0):(l=i.exp,l||(l=gt("is",!1,i.loc))),l)return On(t.helper(kw),[l])}else i.type===6&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const s=j7(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(ww),t.components.add(o),yp(o,"component"))}function lE(e,t,n=e.props,o,r,i=!1){const{tag:s,loc:l,children:a}=e;let c=[];const u=[],d=[],f=a.length>0;let p=!1,h=0,m=!1,b=!1,v=!1,E=!1,w=!1,S=!1;const T=[],$=N=>{c.length&&(u.push(Cr(l5(c),l)),c=[]),N&&u.push(N)},A=({key:N,value:I})=>{if(Lo(N)){const B=N.content,V=cc(B);if(V&&(!o||r)&&B.toLowerCase()!=="onclick"&&B!=="onUpdate:modelValue"&&!xl(B)&&(E=!0),V&&xl(B)&&(S=!0),V&&I.type===14&&(I=I.arguments[0]),I.type===20||(I.type===4||I.type===8)&&Sr(I,t)>0)return;B==="ref"?m=!0:B==="class"?b=!0:B==="style"?v=!0:B!=="key"&&!T.includes(B)&&T.push(B),o&&(B==="class"||B==="style")&&!T.includes(B)&&T.push(B)}else w=!0};for(let N=0;N<n.length;N++){const I=n[N];if(I.type===6){const{loc:B,name:V,nameLoc:G,value:ne}=I;let oe=!0;if(V==="ref"&&(m=!0,t.scopes.vFor>0&&c.push(bn(gt("ref_for",!0),gt("true")))),V==="is"&&(Pb(s)||ne&&ne.content.startsWith("vue:")||La("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(bn(gt(V,!0,G),gt(ne?ne.content:"",oe,ne?ne.loc:B)))}else{const{name:B,arg:V,exp:G,loc:ne,modifiers:oe}=I,Z=B==="bind",q=B==="on";if(B==="slot"){o||t.onError(un(40,ne));continue}if(B==="once"||B==="memo"||B==="is"||Z&&wa(V,"is")&&(Pb(s)||La("COMPILER_IS_ON_ELEMENT",t))||q&&i)continue;if((Z&&wa(V,"key")||q&&f&&wa(V,"vue:before-update"))&&(p=!0),Z&&wa(V,"ref")&&t.scopes.vFor>0&&c.push(bn(gt("ref_for",!0),gt("true"))),!V&&(Z||q)){if(w=!0,G)if(Z){if($(),La("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(G);continue}u.push(G)}else $({type:14,loc:ne,callee:t.helper(Mw),arguments:o?[G]:[G,"true"]});else t.onError(un(Z?34:35,ne));continue}Z&&oe.includes("prop")&&(h|=32);const X=t.directiveTransforms[B];if(X){const{props:ee,needRuntime:F}=X(I,e,t);!i&&ee.forEach(A),q&&V&&!Lo(V)?$(Cr(ee,l)):c.push(...ee),F&&(d.push(I),Or(F)&&sE.set(I,F))}else XR(B)||(d.push(I),f&&(p=!0))}}let P;if(u.length?($(),u.length>1?P=On(t.helper(fg),u,l):P=u[0]):c.length&&(P=Cr(l5(c),l)),w?h|=16:(b&&!o&&(h|=2),v&&!o&&(h|=4),T.length&&(h|=8),E&&(h|=32)),!p&&(h===0||h===32)&&(m||S||d.length>0)&&(h|=512),!t.inSSR&&P)switch(P.type){case 15:let N=-1,I=-1,B=!1;for(let ne=0;ne<P.properties.length;ne++){const oe=P.properties[ne].key;Lo(oe)?oe.content==="class"?N=ne:oe.content==="style"&&(I=ne):oe.isHandlerKey||(B=!0)}const V=P.properties[N],G=P.properties[I];B?P=On(t.helper(gp),[P]):(V&&!Lo(V.value)&&(V.value=On(t.helper(Ew),[V.value])),G&&(v||G.value.type===4&&G.value.content.trim()[0]==="["||G.value.type===17)&&(G.value=On(t.helper(Tw),[G.value])));break;case 14:break;default:P=On(t.helper(gp),[On(t.helper(Jp),[P])]);break}return{props:P,directives:d,patchFlag:h,dynamicPropNames:T,shouldUseBlock:p}}function l5(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const r=e[o];if(r.key.type===8||!r.key.isStatic){n.push(r);continue}const i=r.key.content,s=t.get(i);s?(i==="style"||i==="class"||cc(i))&&_V(s,r):(t.set(i,r),n.push(r))}return n}function _V(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Xp([e.value,t.value],e.loc)}function gV(e,t){const n=[],o=sE.get(e);o?n.push(t.helperString(o)):(t.helper(xw),t.directives.add(e.name),n.push(yp(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const i=gt("true",!1,r);n.push(Cr(e.modifiers.map(s=>bn(s,i)),r))}return Xp(n,e.loc)}function vV(e){let t="[";for(let n=0,o=e.length;n<o;n++)t+=JSON.stringify(e[n]),n<o-1&&(t+=", ");return t+"]"}function Pb(e){return e==="component"||e==="Component"}const bV=(e,t)=>{if(_g(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:i}=yV(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(s[2]=i,l=3),n.length&&(s[3]=Nu([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),s.splice(l),e.codegenNode=On(t.helper(D7),s,o)}};function yV(e,t){let n='"default"',o;const r=[];for(let i=0;i<e.props.length;i++){const s=e.props[i];if(s.type===6)s.value&&(s.name==="name"?n=JSON.stringify(s.value.content):(s.name=dn(s.name),r.push(s)));else if(s.name==="bind"&&wa(s.arg,"name")){if(s.exp)n=s.exp;else if(s.arg&&s.arg.type===4){const l=dn(s.arg.content);n=s.exp=gt(l,!1,s.arg.loc)}}else s.name==="bind"&&s.arg&&Lo(s.arg)&&(s.arg.content=dn(s.arg.content)),r.push(s)}if(r.length>0){const{props:i,directives:s}=lE(e,t,r,!1,!1);o=i,s.length&&t.onError(un(36,s[0].loc))}return{slotName:n,slotProps:o}}const wV=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,aE=(e,t,n,o)=>{const{loc:r,modifiers:i,arg:s}=e;!e.exp&&!i.length&&n.onError(un(35,r));let l;if(s.type===4)if(s.isStatic){let d=s.content;d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const f=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?lu(dn(d)):`on:${d}`;l=gt(f,!0,s.loc)}else l=Jr([`${n.helperString(Tb)}(`,s,")"]);else l=s,l.children.unshift(`${n.helperString(Tb)}(`),l.children.push(")");let a=e.exp;a&&!a.content.trim()&&(a=void 0);let c=n.cacheHandlers&&!a&&!n.inVOnce;if(a){const d=H7(a.content),f=!(d||wV.test(a.content)),p=a.content.includes(";");(f||c&&d)&&(a=Jr([`${f?"$event":"(...args)"} => ${p?"{":"("}`,a,p?"}":")"]))}let u={props:[bn(l,a||gt("() => {}",!1,r))]};return o&&(u=o(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(d=>d.key.isHandlerKey=!0),u},kV=(e,t,n)=>{const{modifiers:o,loc:r}=e,i=e.arg;let{exp:s}=e;if(s&&s.type===4&&!s.content.trim()&&(s=void 0),!s){if(i.type!==4||!i.isStatic)return n.onError(un(52,i.loc)),{props:[bn(i,gt("",!0,r))]};const l=dn(i.content);s=e.exp=gt(l,!1,i.loc)}return i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(i.type===4?i.isStatic?i.content=dn(i.content):i.content=`${n.helperString(Eb)}(${i.content})`:(i.children.unshift(`${n.helperString(Eb)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&a5(i,"."),o.includes("attr")&&a5(i,"^")),{props:[bn(i,s)]}},a5=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},xV=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let o,r=!1;for(let i=0;i<n.length;i++){const s=n[i];if(j0(s)){r=!0;for(let l=i+1;l<n.length;l++){const a=n[l];if(j0(a))o||(o=n[i]=Jr([s],s.loc)),o.children.push(" + ",a),n.splice(l,1),l--;else{o=void 0;break}}}}if(!(!r||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const s=n[i];if(j0(s)||s.type===8){const l=[];(s.type!==2||s.content!==" ")&&l.push(s),!t.ssr&&Sr(s,t)===0&&l.push("1"),n[i]={type:12,content:s,loc:s.loc,codegenNode:On(t.helper(yw),l)}}}}},c5=new WeakSet,CV=(e,t)=>{if(e.type===1&&qr(e,"once",!0))return c5.has(e)||t.inVOnce||t.inSSR?void 0:(c5.add(e),t.inVOnce=!0,t.helper(pg),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},cE=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(un(41,e.loc)),im();const i=o.loc.source,s=o.type===4?o.content:i,l=n.bindingMetadata[i];if(l==="props"||l==="props-aliased")return n.onError(un(44,o.loc)),im();const a=!1;if(!s.trim()||!H7(s)&&!a)return n.onError(un(42,o.loc)),im();const c=r||gt("modelValue",!0),u=r?Lo(r)?`onUpdate:${dn(r.content)}`:Jr(['"onUpdate:" + ',r]):"onUpdate:modelValue";let d;const f=n.isTS?"($event: any)":"$event";d=Jr([`${f} => ((`,o,") = $event)"]);const p=[bn(c,e.exp),bn(u,d)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(b=>(Nw(b)?b:JSON.stringify(b))+": true").join(", "),m=r?Lo(r)?`${r.content}Modifiers`:Jr([r,' + "Modifiers"']):"modelModifiers";p.push(bn(m,gt(`{ ${h} }`,!1,e.loc,2)))}return im(p)};function im(e=[]){return{props:e}}const SV=/[\w).+\-_$\]]/,$V=(e,t)=>{La("COMPILER_FILTERS",t)&&(e.type===5&&bg(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&bg(n.exp,t)}))};function bg(e,t){if(e.type===4)u5(e,t);else for(let n=0;n<e.children.length;n++){const o=e.children[n];typeof o=="object"&&(o.type===4?u5(o,t):o.type===8?bg(e,t):o.type===5&&bg(o.content,t))}}function u5(e,t){const n=e.content;let o=!1,r=!1,i=!1,s=!1,l=0,a=0,c=0,u=0,d,f,p,h,m=[];for(p=0;p<n.length;p++)if(f=d,d=n.charCodeAt(p),o)d===39&&f!==92&&(o=!1);else if(r)d===34&&f!==92&&(r=!1);else if(i)d===96&&f!==92&&(i=!1);else if(s)d===47&&f!==92&&(s=!1);else if(d===124&&n.charCodeAt(p+1)!==124&&n.charCodeAt(p-1)!==124&&!l&&!a&&!c)h===void 0?(u=p+1,h=n.slice(0,p).trim()):b();else{switch(d){case 34:r=!0;break;case 39:o=!0;break;case 96:i=!0;break;case 40:c++;break;case 41:c--;break;case 91:a++;break;case 93:a--;break;case 123:l++;break;case 125:l--;break}if(d===47){let v=p-1,E;for(;v>=0&&(E=n.charAt(v),E===" ");v--);(!E||!SV.test(E))&&(s=!0)}}h===void 0?h=n.slice(0,p).trim():u!==0&&b();function b(){m.push(n.slice(u,p).trim()),u=p+1}if(m.length){for(p=0;p<m.length;p++)h=EV(h,m[p],t);e.content=h}}function EV(e,t,n){n.helper(Cw);const o=t.indexOf("(");if(o<0)return n.filters.add(t),`${yp(t,"filter")}(${e})`;{const r=t.slice(0,o),i=t.slice(o+1);return n.filters.add(r),`${yp(r,"filter")}(${e}${i!==")"?","+i:i}`}}const d5=new WeakSet,TV=(e,t)=>{if(e.type===1){const n=qr(e,"memo");return!n||d5.has(e)?void 0:(d5.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&o.type===13&&(e.tagType!==1&&Ow(o,t),e.codegenNode=On(t.helper(Iw),[n.exp,Nu(void 0,o),"_cache",String(t.cached++)]))})}};function MV(e){return[[CV,iV,TV,aV,$V,bV,hV,dV,xV],{on:aE,bind:kV,model:cE}]}function AV(e,t={}){const n=t.onError||Pw,o=t.mode==="module";t.prefixIdentifiers===!0?n(un(47)):o&&n(un(48));const r=!1;t.cacheHandlers&&n(un(49)),t.scopeId&&!o&&n(un(50));const i=Nt({},t,{prefixIdentifiers:r}),s=je(e)?Rz(e,i):e,[l,a]=MV();return zz(s,Nt({},i,{nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:Nt({},a,t.directiveTransforms||{})})),Uz(s,i)}const IV=()=>({props:[]});/**
28 * @vue/compiler-dom v3.4.23
29 * (c) 2018-present Yuxi (Evan) You and Vue contributors
30 * @license MIT
31 **/const uE=Symbol(""),dE=Symbol(""),fE=Symbol(""),pE=Symbol(""),Nb=Symbol(""),hE=Symbol(""),mE=Symbol(""),_E=Symbol(""),gE=Symbol(""),vE=Symbol("");uz({[uE]:"vModelRadio",[dE]:"vModelCheckbox",[fE]:"vModelText",[pE]:"vModelSelect",[Nb]:"vModelDynamic",[hE]:"withModifiers",[mE]:"withKeys",[_E]:"vShow",[gE]:"Transition",[vE]:"TransitionGroup"});let Sc;function OV(e,t=!1){return Sc||(Sc=document.createElement("div")),t?(Sc.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Sc.children[0].getAttribute("foo")):(Sc.innerHTML=e,Sc.textContent)}const PV={parseMode:"html",isVoidTag:pF,isNativeTag:e=>uF(e)||dF(e)||fF(e),isPreTag:e=>e==="pre",decodeEntities:OV,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return gE;if(e==="TransitionGroup"||e==="transition-group")return vE},getNamespace(e,t,n){let o=t?t.ns:n;if(t&&o===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(o=0);else t&&o===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(o=0);if(o===0){if(e==="svg")return 1;if(e==="math")return 2}return o}},NV=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:gt("style",!0,t.loc),exp:LV(t.value.content,t.loc),modifiers:[],loc:t.loc})})},LV=(e,t)=>{const n=q9(e);return gt(JSON.stringify(n),!1,t,3)};function Sl(e,t){return un(e,t)}const RV=(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(Sl(53,r)),t.children.length&&(n.onError(Sl(54,r)),t.children.length=0),{props:[bn(gt("innerHTML",!0,r),o||gt("",!0))]}},FV=(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(Sl(55,r)),t.children.length&&(n.onError(Sl(56,r)),t.children.length=0),{props:[bn(gt("textContent",!0),o?Sr(o,n)>0?o:On(n.helperString(g1),[o],r):gt("",!0))]}},DV=(e,t,n)=>{const o=cE(e,t,n);if(!o.props.length||t.tagType===1)return o;e.arg&&n.onError(Sl(58,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||i){let s=fE,l=!1;if(r==="input"||i){const a=v1(t,"type");if(a){if(a.type===7)s=Nb;else if(a.value)switch(a.value.content){case"radio":s=uE;break;case"checkbox":s=dE;break;case"file":l=!0,n.onError(Sl(59,e.loc));break}}else yz(t)&&(s=Nb)}else r==="select"&&(s=pE);l||(o.needRuntime=n.helper(s))}else n.onError(Sl(57,e.loc));return o.props=o.props.filter(s=>!(s.key.type===4&&s.key.content==="modelValue")),o},BV=ur("passive,once,capture"),zV=ur("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),VV=ur("left,right"),bE=ur("onkeyup,onkeydown,onkeypress",!0),jV=(e,t,n,o)=>{const r=[],i=[],s=[];for(let l=0;l<t.length;l++){const a=t[l];a==="native"&&bp("COMPILER_V_ON_NATIVE",n)||BV(a)?s.push(a):VV(a)?Lo(e)?bE(e.content)?r.push(a):i.push(a):(r.push(a),i.push(a)):zV(a)?i.push(a):r.push(a)}return{keyModifiers:r,nonKeyModifiers:i,eventOptionModifiers:s}},f5=(e,t)=>Lo(e)&&e.content.toLowerCase()==="onclick"?gt(t,!0):e.type!==4?Jr(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,HV=(e,t,n)=>aE(e,t,n,o=>{const{modifiers:r}=e;if(!r.length)return o;let{key:i,value:s}=o.props[0];const{keyModifiers:l,nonKeyModifiers:a,eventOptionModifiers:c}=jV(i,r,n,e.loc);if(a.includes("right")&&(i=f5(i,"onContextmenu")),a.includes("middle")&&(i=f5(i,"onMouseup")),a.length&&(s=On(n.helper(hE),[s,JSON.stringify(a)])),l.length&&(!Lo(i)||bE(i.content))&&(s=On(n.helper(mE),[s,JSON.stringify(l)])),c.length){const u=c.map(Rl).join("");i=Lo(i)?gt(`${i.content}${u}`,!0):Jr(["(",i,`) + "${u}"`])}return{props:[bn(i,s)]}}),UV=(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(Sl(61,r)),{props:[],needRuntime:n.helper(_E)}},WV=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},qV=[NV],KV={cloak:IV,html:RV,text:FV,model:DV,on:HV,show:UV};function GV(e,t={}){return AV(e,Nt({},PV,t,{nodeTransforms:[WV,...qV,...t.nodeTransforms||[]],directiveTransforms:Nt({},KV,t.directiveTransforms||{}),transformHoist:null}))}/**
32 * vue v3.4.23
33 * (c) 2018-present Yuxi (Evan) You and Vue contributors
34 * @license MIT
35 **/const p5=new WeakMap;function YV(e){let t=p5.get(e??Dt);return t||(t=Object.create(null),p5.set(e??Dt,t)),t}function ZV(e,t){if(!je(e))if(e.nodeType)e=e.innerHTML;else return dt;const n=e,o=YV(t),r=o[n];if(r)return r;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const i=Nt({hoistStatic:!0,onError:void 0,onWarn:dt},t);!i.isCustomElement&&typeof customElements<"u"&&(i.isCustomElement=a=>!!customElements.get(a));const{code:s}=GV(e,i),l=new Function("Vue",s)(rz);return l._rc=!0,o[n]=l}a7(ZV);/*!
36 * vue-router v4.3.2
37 * (c) 2024 Eduardo San Martin Morote
38 * @license MIT
39 */const Dc=typeof document<"u";function JV(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ht=Object.assign;function U0(e,t){const n={};for(const o in t){const r=t[o];n[o]=ii(r)?r.map(e):e(r)}return n}const Lf=()=>{},ii=Array.isArray,yE=/#/g,XV=/&/g,QV=/\//g,ej=/=/g,tj=/\?/g,wE=/\+/g,nj=/%5B/g,oj=/%5D/g,kE=/%5E/g,rj=/%60/g,xE=/%7B/g,ij=/%7C/g,CE=/%7D/g,sj=/%20/g;function Rw(e){return encodeURI(""+e).replace(ij,"|").replace(nj,"[").replace(oj,"]")}function lj(e){return Rw(e).replace(xE,"{").replace(CE,"}").replace(kE,"^")}function Lb(e){return Rw(e).replace(wE,"%2B").replace(sj,"+").replace(yE,"%23").replace(XV,"%26").replace(rj,"`").replace(xE,"{").replace(CE,"}").replace(kE,"^")}function aj(e){return Lb(e).replace(ej,"%3D")}function cj(e){return Rw(e).replace(yE,"%23").replace(tj,"%3F")}function uj(e){return e==null?"":cj(e).replace(QV,"%2F")}function kp(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const dj=/\/$/,fj=e=>e.replace(dj,"");function W0(e,t,n="/"){let o,r={},i="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l<a&&l>=0&&(a=-1),a>-1&&(o=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),r=e(i)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=_j(o??t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:kp(s)}}function pj(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function h5(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function hj(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Fu(t.matched[o],n.matched[r])&&SE(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Fu(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function SE(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mj(e[n],t[n]))return!1;return!0}function mj(e,t){return ii(e)?m5(e,t):ii(t)?m5(t,e):e===t}function m5(e,t){return ii(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function _j(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let i=n.length-1,s,l;for(s=0;s<o.length;s++)if(l=o[s],l!==".")if(l==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(s).join("/")}var xp;(function(e){e.pop="pop",e.push="push"})(xp||(xp={}));var Rf;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Rf||(Rf={}));function gj(e){if(!e)if(Dc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),fj(e)}const vj=/^[^#]+#/;function bj(e,t){return e.replace(vj,"#")+t}function yj(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const w1=()=>({left:window.scrollX,top:window.scrollY});function wj(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=yj(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function _5(e,t){return(history.state?history.state.position-t:-1)+e}const Rb=new Map;function kj(e,t){Rb.set(e,t)}function xj(e){const t=Rb.get(e);return Rb.delete(e),t}let Cj=()=>location.protocol+"//"+location.host;function $E(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,a=r.slice(l);return a[0]!=="/"&&(a="/"+a),h5(a,"")}return h5(n,e)+o+r}function Sj(e,t,n,o){let r=[],i=[],s=null;const l=({state:f})=>{const p=$E(e,location),h=n.value,m=t.value;let b=0;if(f){if(n.value=p,t.value=f,s&&s===h){s=null;return}b=m?f.position-m.position:0}else o(p);r.forEach(v=>{v(n.value,h,{delta:b,type:xp.pop,direction:b?b>0?Rf.forward:Rf.back:Rf.unknown})})};function a(){s=n.value}function c(f){r.push(f);const p=()=>{const h=r.indexOf(f);h>-1&&r.splice(h,1)};return i.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(Ht({},f.state,{scroll:w1()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:d}}function g5(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?w1():null}}function $j(e){const{history:t,location:n}=window,o={value:$E(e,n)},r={value:t.state};r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+a:Cj()+e+a;try{t[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function s(a,c){const u=Ht({},t.state,g5(r.value.back,a,r.value.forward,!0),c,{position:r.value.position});i(a,u,!0),o.value=a}function l(a,c){const u=Ht({},r.value,t.state,{forward:a,scroll:w1()});i(u.current,u,!0);const d=Ht({},g5(o.value,a,null),{position:u.position+1},c);i(a,d,!1),o.value=a}return{location:o,state:r,push:l,replace:s}}function EE(e){e=gj(e);const t=$j(e),n=Sj(e,t.state,t.location,t.replace);function o(i,s=!0){s||n.pauseListeners(),history.go(i)}const r=Ht({location:"",base:e,go:o,createHref:bj.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Ej(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),EE(e)}function Tj(e){return typeof e=="string"||e&&typeof e=="object"}function TE(e){return typeof e=="string"||typeof e=="symbol"}const zs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ME=Symbol("");var v5;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(v5||(v5={}));function Du(e,t){return Ht(new Error,{type:e,[ME]:!0},t)}function Qi(e,t){return e instanceof Error&&ME in e&&(t==null||!!(e.type&t))}const b5="[^/]+?",Mj={sensitive:!1,strict:!1,start:!0,end:!0},Aj=/[.+*?^${}()[\]/\\]/g;function Ij(e,t){const n=Ht({},Mj,t),o=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let d=0;d<c.length;d++){const f=c[d];let p=40+(n.sensitive?.25:0);if(f.type===0)d||(r+="/"),r+=f.value.replace(Aj,"\\$&"),p+=40;else if(f.type===1){const{value:h,repeatable:m,optional:b,regexp:v}=f;i.push({name:h,repeatable:m,optional:b});const E=v||b5;if(E!==b5){p+=10;try{new RegExp(`(${E})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${h}" (${E}): `+S.message)}}let w=m?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;d||(w=b&&c.length<2?`(?:/${w})`:"/"+w),b&&(w+="?"),r+=w,p+=20,b&&(p+=-8),m&&(p+=-20),E===".*"&&(p+=-50)}u.push(p)}o.push(u)}if(n.strict&&n.end){const c=o.length-1;o[c][o[c].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const s=new RegExp(r,n.sensitive?"":"i");function l(c){const u=c.match(s),d={};if(!u)return null;for(let f=1;f<u.length;f++){const p=u[f]||"",h=i[f-1];d[h.name]=p&&h.repeatable?p.split("/"):p}return d}function a(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const p of f)if(p.type===0)u+=p.value;else if(p.type===1){const{value:h,repeatable:m,optional:b}=p,v=h in c?c[h]:"";if(ii(v)&&!m)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const E=ii(v)?v.join("/"):v;if(!E)if(b)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${h}"`);u+=E}}return u||"/"}return{re:s,score:o,keys:i,parse:l,stringify:a}}function Oj(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Pj(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const i=Oj(o[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-o.length)===1){if(y5(o))return 1;if(y5(r))return-1}return r.length-o.length}function y5(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Nj={type:0,value:""},Lj=/[a-zA-Z0-9_]/;function Rj(e){if(!e)return[[]];if(e==="/")return[[Nj]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,o=n;const r=[];let i;function s(){i&&r.push(i),i=[]}let l=0,a,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:a==="/"?(c&&d(),s()):a===":"?(d(),n=1):f();break;case 4:f(),n=o;break;case 1:a==="("?n=2:Lj.test(a)?f():(d(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case 2:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:n=3:u+=a;break;case 3:d(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),s(),r}function Fj(e,t,n){const o=Ij(Rj(e.path),n),r=Ht(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Dj(e,t){const n=[],o=new Map;t=x5({strict:!1,end:!0,sensitive:!1},t);function r(u){return o.get(u)}function i(u,d,f){const p=!f,h=Bj(u);h.aliasOf=f&&f.record;const m=x5(t,u),b=[h];if("alias"in u){const w=typeof u.alias=="string"?[u.alias]:u.alias;for(const S of w)b.push(Ht({},h,{components:f?f.record.components:h.components,path:S,aliasOf:f?f.record:h}))}let v,E;for(const w of b){const{path:S}=w;if(d&&S[0]!=="/"){const T=d.record.path,$=T[T.length-1]==="/"?"":"/";w.path=d.record.path+(S&&$+S)}if(v=Fj(w,d,m),f?f.alias.push(v):(E=E||v,E!==v&&E.alias.push(v),p&&u.name&&!k5(v)&&s(u.name)),h.children){const T=h.children;for(let $=0;$<T.length;$++)i(T[$],v,f&&f.children[$])}f=f||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&a(v)}return E?()=>{s(E)}:Lf}function s(u){if(TE(u)){const d=o.get(u);d&&(o.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&o.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return n}function a(u){let d=0;for(;d<n.length&&Pj(u,n[d])>=0&&(u.record.path!==n[d].record.path||!AE(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!k5(u)&&o.set(u.record.name,u)}function c(u,d){let f,p={},h,m;if("name"in u&&u.name){if(f=o.get(u.name),!f)throw Du(1,{location:u});m=f.record.name,p=Ht(w5(d.params,f.keys.filter(E=>!E.optional).concat(f.parent?f.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),u.params&&w5(u.params,f.keys.map(E=>E.name))),h=f.stringify(p)}else if(u.path!=null)h=u.path,f=n.find(E=>E.re.test(h)),f&&(p=f.parse(h),m=f.record.name);else{if(f=d.name?o.get(d.name):n.find(E=>E.re.test(d.path)),!f)throw Du(1,{location:u,currentLocation:d});m=f.record.name,p=Ht({},d.params,u.params),h=f.stringify(p)}const b=[];let v=f;for(;v;)b.unshift(v.record),v=v.parent;return{name:m,path:h,params:p,matched:b,meta:Vj(b)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:r}}function w5(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Bj(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:zj(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function zj(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function k5(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Vj(e){return e.reduce((t,n)=>Ht(t,n.meta),{})}function x5(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function AE(e,t){return t.children.some(n=>n===e||AE(e,n))}function jj(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<o.length;++r){const i=o[r].replace(wE," "),s=i.indexOf("="),l=kp(s<0?i:i.slice(0,s)),a=s<0?null:kp(i.slice(s+1));if(l in t){let c=t[l];ii(c)||(c=t[l]=[c]),c.push(a)}else t[l]=a}return t}function C5(e){let t="";for(let n in e){const o=e[n];if(n=aj(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(ii(o)?o.map(i=>i&&Lb(i)):[o&&Lb(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Hj(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=ii(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const Uj=Symbol(""),S5=Symbol(""),Fw=Symbol(""),IE=Symbol(""),Fb=Symbol("");function Dd(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function cl(e,t,n,o,r,i=s=>s()){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const c=f=>{f===!1?a(Du(4,{from:n,to:t})):f instanceof Error?a(f):Tj(f)?a(Du(2,{from:t,to:f})):(s&&o.enterCallbacks[r]===s&&typeof f=="function"&&s.push(f),l())},u=i(()=>e.call(o&&o.instances[r],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>a(f))})}function q0(e,t,n,o,r=i=>i()){const i=[];for(const s of e)for(const l in s.components){let a=s.components[l];if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(Wj(a)){const u=(a.__vccOpts||a)[t];u&&i.push(cl(u,n,o,s,l,r))}else{let c=a();i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${s.path}"`));const d=JV(u)?u.default:u;s.components[l]=d;const p=(d.__vccOpts||d)[t];return p&&cl(p,n,o,s,l,r)()}))}}return i}function Wj(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $5(e){const t=Ne(Fw),n=Ne(IE),o=D(()=>{const a=C(e.to);return t.resolve(a)}),r=D(()=>{const{matched:a}=o.value,{length:c}=a,u=a[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Fu.bind(null,u));if(f>-1)return f;const p=E5(a[c-2]);return c>1&&E5(u)===p&&d[d.length-1].path!==p?d.findIndex(Fu.bind(null,a[c-2])):f}),i=D(()=>r.value>-1&&Yj(n.params,o.value.params)),s=D(()=>r.value>-1&&r.value===n.matched.length-1&&SE(n.params,o.value.params));function l(a={}){return Gj(a)?t[C(e.replace)?"replace":"push"](C(e.to)).catch(Lf):Promise.resolve()}return{route:o,href:D(()=>o.value.href),isActive:i,isExactActive:s,navigate:l}}const qj=K({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$5,setup(e,{slots:t}){const n=jn($5(e)),{options:o}=Ne(Fw),r=D(()=>({[T5(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[T5(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Xe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),Kj=qj;function Gj(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Yj(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!ii(r)||r.length!==o.length||o.some((i,s)=>i!==r[s]))return!1}return!0}function E5(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const T5=(e,t,n)=>e??t??n,Zj=K({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Ne(Fb),r=D(()=>e.route||o.value),i=Ne(S5,0),s=D(()=>{let c=C(i);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),l=D(()=>r.value.matched[s.value]);wt(S5,D(()=>s.value+1)),wt(Uj,l),wt(Fb,r);const a=H();return ke(()=>[a.value,l.value,e.name],([c,u,d],[f,p,h])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Fu(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=l.value,f=d&&d.components[u];if(!f)return M5(n.default,{Component:f,route:c});const p=d.props[u],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,b=Xe(f,Ht({},h,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(d.instances[u]=null)},ref:a}));return M5(n.default,{Component:b,route:c})||b}}});function M5(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Jj=Zj;function A5(e){const t=Dj(e.routes,e),n=e.parseQuery||jj,o=e.stringifyQuery||C5,r=e.history,i=Dd(),s=Dd(),l=Dd(),a=xn(zs);let c=zs;Dc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=U0.bind(null,J=>""+J),d=U0.bind(null,uj),f=U0.bind(null,kp);function p(J,ce){let he,se;return TE(J)?(he=t.getRecordMatcher(J),se=ce):se=J,t.addRoute(se,he)}function h(J){const ce=t.getRecordMatcher(J);ce&&t.removeRoute(ce)}function m(){return t.getRoutes().map(J=>J.record)}function b(J){return!!t.getRecordMatcher(J)}function v(J,ce){if(ce=Ht({},ce||a.value),typeof J=="string"){const W=W0(n,J,ce.path),re=t.resolve({path:W.path},ce),pe=r.createHref(W.fullPath);return Ht(W,re,{params:f(re.params),hash:kp(W.hash),redirectedFrom:void 0,href:pe})}let he;if(J.path!=null)he=Ht({},J,{path:W0(n,J.path,ce.path).path});else{const W=Ht({},J.params);for(const re in W)W[re]==null&&delete W[re];he=Ht({},J,{params:d(W)}),ce.params=d(ce.params)}const se=t.resolve(he,ce),Le=J.hash||"";se.params=u(f(se.params));const et=pj(o,Ht({},J,{hash:lj(Le),path:se.path})),j=r.createHref(et);return Ht({fullPath:et,hash:Le,query:o===C5?Hj(J.query):J.query||{}},se,{redirectedFrom:void 0,href:j})}function E(J){return typeof J=="string"?W0(n,J,a.value.path):Ht({},J)}function w(J,ce){if(c!==J)return Du(8,{from:ce,to:J})}function S(J){return A(J)}function T(J){return S(Ht(E(J),{replace:!0}))}function $(J){const ce=J.matched[J.matched.length-1];if(ce&&ce.redirect){const{redirect:he}=ce;let se=typeof he=="function"?he(J):he;return typeof se=="string"&&(se=se.includes("?")||se.includes("#")?se=E(se):{path:se},se.params={}),Ht({query:J.query,hash:J.hash,params:se.path!=null?{}:J.params},se)}}function A(J,ce){const he=c=v(J),se=a.value,Le=J.state,et=J.force,j=J.replace===!0,W=$(he);if(W)return A(Ht(E(W),{state:typeof W=="object"?Ht({},Le,W.state):Le,force:et,replace:j}),ce||he);const re=he;re.redirectedFrom=ce;let pe;return!et&&hj(o,se,he)&&(pe=Du(16,{to:re,from:se}),be(se,se,!0,!1)),(pe?Promise.resolve(pe):I(re,se)).catch(fe=>Qi(fe)?Qi(fe,2)?fe:F(fe):X(fe,re,se)).then(fe=>{if(fe){if(Qi(fe,2))return A(Ht({replace:j},E(fe.to),{state:typeof fe.to=="object"?Ht({},Le,fe.to.state):Le,force:et}),ce||re)}else fe=V(re,se,!0,j,Le);return B(re,se,fe),fe})}function P(J,ce){const he=w(J,ce);return he?Promise.reject(he):Promise.resolve()}function N(J){const ce=Ee.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(J):J()}function I(J,ce){let he;const[se,Le,et]=Xj(J,ce);he=q0(se.reverse(),"beforeRouteLeave",J,ce);for(const W of se)W.leaveGuards.forEach(re=>{he.push(cl(re,J,ce))});const j=P.bind(null,J,ce);return he.push(j),Fe(he).then(()=>{he=[];for(const W of i.list())he.push(cl(W,J,ce));return he.push(j),Fe(he)}).then(()=>{he=q0(Le,"beforeRouteUpdate",J,ce);for(const W of Le)W.updateGuards.forEach(re=>{he.push(cl(re,J,ce))});return he.push(j),Fe(he)}).then(()=>{he=[];for(const W of et)if(W.beforeEnter)if(ii(W.beforeEnter))for(const re of W.beforeEnter)he.push(cl(re,J,ce));else he.push(cl(W.beforeEnter,J,ce));return he.push(j),Fe(he)}).then(()=>(J.matched.forEach(W=>W.enterCallbacks={}),he=q0(et,"beforeRouteEnter",J,ce,N),he.push(j),Fe(he))).then(()=>{he=[];for(const W of s.list())he.push(cl(W,J,ce));return he.push(j),Fe(he)}).catch(W=>Qi(W,8)?W:Promise.reject(W))}function B(J,ce,he){l.list().forEach(se=>N(()=>se(J,ce,he)))}function V(J,ce,he,se,Le){const et=w(J,ce);if(et)return et;const j=ce===zs,W=Dc?history.state:{};he&&(se||j?r.replace(J.fullPath,Ht({scroll:j&&W&&W.scroll},Le)):r.push(J.fullPath,Le)),a.value=J,be(J,ce,he,j),F()}let G;function ne(){G||(G=r.listen((J,ce,he)=>{if(!Ze.listening)return;const se=v(J),Le=$(se);if(Le){A(Ht(Le,{replace:!0}),se).catch(Lf);return}c=se;const et=a.value;Dc&&kj(_5(et.fullPath,he.delta),w1()),I(se,et).catch(j=>Qi(j,12)?j:Qi(j,2)?(A(j.to,se).then(W=>{Qi(W,20)&&!he.delta&&he.type===xp.pop&&r.go(-1,!1)}).catch(Lf),Promise.reject()):(he.delta&&r.go(-he.delta,!1),X(j,se,et))).then(j=>{j=j||V(se,et,!1),j&&(he.delta&&!Qi(j,8)?r.go(-he.delta,!1):he.type===xp.pop&&Qi(j,20)&&r.go(-1,!1)),B(se,et,j)}).catch(Lf)}))}let oe=Dd(),Z=Dd(),q;function X(J,ce,he){F(J);const se=Z.list();return se.length?se.forEach(Le=>Le(J,ce,he)):console.error(J),Promise.reject(J)}function ee(){return q&&a.value!==zs?Promise.resolve():new Promise((J,ce)=>{oe.add([J,ce])})}function F(J){return q||(q=!J,ne(),oe.list().forEach(([ce,he])=>J?he(J):ce()),oe.reset()),J}function be(J,ce,he,se){const{scrollBehavior:Le}=e;if(!Dc||!Le)return Promise.resolve();const et=!he&&xj(_5(J.fullPath,0))||(se||!he)&&history.state&&history.state.scroll||null;return tt().then(()=>Le(J,ce,et)).then(j=>j&&wj(j)).catch(j=>X(j,J,ce))}const xe=J=>r.go(J);let U;const Ee=new Set,Ze={currentRoute:a,listening:!0,addRoute:p,removeRoute:h,hasRoute:b,getRoutes:m,resolve:v,options:e,push:S,replace:T,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:Z.add,isReady:ee,install(J){const ce=this;J.component("RouterLink",Kj),J.component("RouterView",Jj),J.config.globalProperties.$router=ce,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>C(a)}),Dc&&!U&&a.value===zs&&(U=!0,S(r.location).catch(Le=>{}));const he={};for(const Le in zs)Object.defineProperty(he,Le,{get:()=>a.value[Le],enumerable:!0});J.provide(Fw,ce),J.provide(IE,J2(he)),J.provide(Fb,a);const se=J.unmount;Ee.add(J),J.unmount=function(){Ee.delete(J),Ee.size<1&&(c=zs,G&&G(),G=null,a.value=zs,U=!1,q=!1),se()}}};function Fe(J){return J.reduce((ce,he)=>ce.then(()=>N(he)),Promise.resolve())}return Ze}function Xj(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const l=t.matched[s];l&&(e.matched.find(c=>Fu(c,l))?o.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Fu(c,a))||r.push(a))}return[n,o,r]}const Qj='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',eH=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,I5=e=>Array.from(e.querySelectorAll(Qj)).filter(t=>tH(t)&&eH(t)),tH=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},$n=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const i=e==null?void 0:e(r);if(n===!1||!i)return t==null?void 0:t(r)},O5=e=>t=>t.pointerType==="mouse"?e(t):void 0;var nH=Object.defineProperty,oH=Object.defineProperties,rH=Object.getOwnPropertyDescriptors,P5=Object.getOwnPropertySymbols,iH=Object.prototype.hasOwnProperty,sH=Object.prototype.propertyIsEnumerable,N5=(e,t,n)=>t in e?nH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lH=(e,t)=>{for(var n in t||(t={}))iH.call(t,n)&&N5(e,n,t[n]);if(P5)for(var n of P5(t))sH.call(t,n)&&N5(e,n,t[n]);return e},aH=(e,t)=>oH(e,rH(t));function L5(e,t){var n;const o=xn();return Zr(()=>{o.value=e()},aH(lH({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),dc(o)}var R5;const kt=typeof window<"u",cH=e=>typeof e<"u",uH=e=>typeof e=="function",dH=e=>typeof e=="string",Bu=()=>{},fH=kt&&((R5=window==null?void 0:window.navigator)==null?void 0:R5.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function zu(e){return typeof e=="function"?e():C(e)}function OE(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function pH(e,t={}){let n,o,r=Bu;const i=l=>{clearTimeout(l),r(),r=Bu};return l=>{const a=zu(e),c=zu(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function hH(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Bu,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Bu)};return d=>{const f=zu(e),p=Date.now()-r,h=()=>a=d();return c(),f<=0?(r=Date.now(),h()):(p>f&&(n||!s)?(r=Date.now(),h()):t&&(a=new Promise((m,b)=>{l=o?b:m,i=setTimeout(()=>{r=Date.now(),s=!0,m(h()),c()},Math.max(0,f-p))})),!n&&!i&&(i=setTimeout(()=>s=!0,f)),s=!1,a)}}function mH(e){return e}function eh(e){return q2()?(K2(e),!0):!1}function _H(e,t=200,n={}){return OE(pH(t,n),e)}function gH(e,t=200,n={}){const o=H(e.value),r=_H(()=>{o.value=e.value},t,n);return ke(e,()=>r()),o}function vH(e,t=200,n=!1,o=!0,r=!1){return OE(hH(t,n,o,r),e)}function bH(e,t=!0){nt()?mt(e):t?e():tt(e)}function Db(e,t,n={}){const{immediate:o=!0}=n,r=H(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){r.value=!1,s()}function a(...c){s(),r.value=!0,i=setTimeout(()=>{r.value=!1,i=null,e(...c)},zu(t))}return o&&(r.value=!0,kt&&a()),eh(l),{isPending:dc(r),start:a,stop:l}}function ps(e){var t;const n=zu(e);return(t=n==null?void 0:n.$el)!=null?t:n}const th=kt?window:void 0,yH=kt?window.document:void 0;function Tn(...e){let t,n,o,r;if(dH(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=th):[t,n,o,r]=e,!t)return Bu;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,d,f,p)=>(u.addEventListener(d,f,p),()=>u.removeEventListener(d,f,p)),a=ke(()=>[ps(t),zu(r)],([u,d])=>{s(),u&&i.push(...n.flatMap(f=>o.map(p=>l(u,f,p,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return eh(c),c}let F5=!1;function wH(e,t,n={}){const{window:o=th,ignore:r=[],capture:i=!0,detectIframe:s=!1}=n;if(!o)return;fH&&!F5&&(F5=!0,Array.from(o.document.body.children).forEach(f=>f.addEventListener("click",Bu)));let l=!0;const a=f=>r.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(h=>h===f.target||f.composedPath().includes(h));{const h=ps(p);return h&&(f.target===h||f.composedPath().includes(h))}}),u=[Tn(o,"click",f=>{const p=ps(e);if(!(!p||p===f.target||f.composedPath().includes(p))){if(f.detail===0&&(l=!a(f)),!l){l=!0;return}t(f)}},{passive:!0,capture:i}),Tn(o,"pointerdown",f=>{const p=ps(e);p&&(l=!f.composedPath().includes(p)&&!a(f))},{passive:!0}),s&&Tn(o,"blur",f=>{var p;const h=ps(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&t(f)})].filter(Boolean);return()=>u.forEach(f=>f())}function PE(e,t=!1){const n=H(),o=()=>n.value=!!e();return o(),bH(o,t),n}function kH(e){return JSON.parse(JSON.stringify(e))}const D5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},B5="__vueuse_ssr_handlers__";D5[B5]=D5[B5]||{};function xH({document:e=yH}={}){if(!e)return H("visible");const t=H(e.visibilityState);return Tn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var z5=Object.getOwnPropertySymbols,CH=Object.prototype.hasOwnProperty,SH=Object.prototype.propertyIsEnumerable,$H=(e,t)=>{var n={};for(var o in e)CH.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&z5)for(var o of z5(e))t.indexOf(o)<0&&SH.call(e,o)&&(n[o]=e[o]);return n};function Oo(e,t,n={}){const o=n,{window:r=th}=o,i=$H(o,["window"]);let s;const l=PE(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=ke(()=>ps(e),d=>{a(),l.value&&r&&d&&(s=new ResizeObserver(t),s.observe(d,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return eh(u),{isSupported:l,stop:u}}var V5=Object.getOwnPropertySymbols,EH=Object.prototype.hasOwnProperty,TH=Object.prototype.propertyIsEnumerable,MH=(e,t)=>{var n={};for(var o in e)EH.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&V5)for(var o of V5(e))t.indexOf(o)<0&&TH.call(e,o)&&(n[o]=e[o]);return n};function AH(e,t,n={}){const o=n,{window:r=th}=o,i=MH(o,["window"]);let s;const l=PE(()=>r&&"MutationObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=ke(()=>ps(e),d=>{a(),l.value&&r&&d&&(s=new MutationObserver(t),s.observe(d,i))},{immediate:!0}),u=()=>{a(),c()};return eh(u),{isSupported:l,stop:u}}var j5;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(j5||(j5={}));var IH=Object.defineProperty,H5=Object.getOwnPropertySymbols,OH=Object.prototype.hasOwnProperty,PH=Object.prototype.propertyIsEnumerable,U5=(e,t,n)=>t in e?IH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NH=(e,t)=>{for(var n in t||(t={}))OH.call(t,n)&&U5(e,n,t[n]);if(H5)for(var n of H5(t))PH.call(t,n)&&U5(e,n,t[n]);return e};const LH={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};NH({linear:mH},LH);function RH(e,t,n,o={}){var r,i,s;const{clone:l=!1,passive:a=!1,eventName:c,deep:u=!1,defaultValue:d}=o,f=nt(),p=n||(f==null?void 0:f.emit)||((r=f==null?void 0:f.$emit)==null?void 0:r.bind(f))||((s=(i=f==null?void 0:f.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(f==null?void 0:f.proxy));let h=c;t||(t="modelValue"),h=c||h||`update:${t.toString()}`;const m=v=>l?uH(l)?l(v):kH(v):v,b=()=>cH(e[t])?m(e[t]):d;if(a){const v=b(),E=H(v);return ke(()=>e[t],w=>E.value=m(w)),ke(E,w=>{(w!==e[t]||u)&&p(h,w)},{deep:u}),E}else return D({get(){return b()},set(v){p(h,v)}})}function FH({window:e=th}={}){if(!e)return H(!1);const t=H(e.document.hasFocus());return Tn(e,"blur",()=>{t.value=!1}),Tn(e,"focus",()=>{t.value=!0}),t}const DH=()=>kt&&/firefox/i.test(window.navigator.userAgent),BH=(e,t)=>{if(!kt||!e||!t)return!1;const n=e.getBoundingClientRect();let o;return t instanceof Element?o=t.getBoundingClientRect():o={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<o.bottom&&n.bottom>o.top&&n.right>o.left&&n.left<o.right},Dw=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};var zH=typeof global=="object"&&global&&global.Object===Object&&global;const NE=zH;var VH=typeof self=="object"&&self&&self.Object===Object&&self,jH=NE||VH||Function("return this")();const ci=jH;var HH=ci.Symbol;const Pr=HH;var LE=Object.prototype,UH=LE.hasOwnProperty,WH=LE.toString,Bd=Pr?Pr.toStringTag:void 0;function qH(e){var t=UH.call(e,Bd),n=e[Bd];try{e[Bd]=void 0;var o=!0}catch{}var r=WH.call(e);return o&&(t?e[Bd]=n:delete e[Bd]),r}var KH=Object.prototype,GH=KH.toString;function YH(e){return GH.call(e)}var ZH="[object Null]",JH="[object Undefined]",W5=Pr?Pr.toStringTag:void 0;function pc(e){return e==null?e===void 0?JH:ZH:W5&&W5 in Object(e)?qH(e):YH(e)}function Ni(e){return e!=null&&typeof e=="object"}var XH="[object Symbol]";function k1(e){return typeof e=="symbol"||Ni(e)&&pc(e)==XH}function RE(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}var QH=Array.isArray;const wo=QH;var eU=1/0,q5=Pr?Pr.prototype:void 0,K5=q5?q5.toString:void 0;function FE(e){if(typeof e=="string")return e;if(wo(e))return RE(e,FE)+"";if(k1(e))return K5?K5.call(e):"";var t=e+"";return t=="0"&&1/e==-eU?"-0":t}var tU=/\s/;function nU(e){for(var t=e.length;t--&&tU.test(e.charAt(t)););return t}var oU=/^\s+/;function rU(e){return e&&e.slice(0,nU(e)+1).replace(oU,"")}function ko(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var G5=0/0,iU=/^[-+]0x[0-9a-f]+$/i,sU=/^0b[01]+$/i,lU=/^0o[0-7]+$/i,aU=parseInt;function Bb(e){if(typeof e=="number")return e;if(k1(e))return G5;if(ko(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ko(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=rU(e);var n=sU.test(e);return n||lU.test(e)?aU(e.slice(2),n?2:8):iU.test(e)?G5:+e}var Y5=1/0,cU=17976931348623157e292;function uU(e){if(!e)return e===0?e:0;if(e=Bb(e),e===Y5||e===-Y5){var t=e<0?-1:1;return t*cU}return e===e?e:0}function dU(e){var t=uU(e),n=t%1;return t===t?n?t-n:t:0}function Bw(e){return e}var fU="[object AsyncFunction]",pU="[object Function]",hU="[object GeneratorFunction]",mU="[object Proxy]";function zw(e){if(!ko(e))return!1;var t=pc(e);return t==pU||t==hU||t==fU||t==mU}var _U=ci["__core-js_shared__"];const K0=_U;var Z5=function(){var e=/[^.]+$/.exec(K0&&K0.keys&&K0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gU(e){return!!Z5&&Z5 in e}var vU=Function.prototype,bU=vU.toString;function hc(e){if(e!=null){try{return bU.call(e)}catch{}try{return e+""}catch{}}return""}var yU=/[\\^$.*+?()[\]{}|]/g,wU=/^\[object .+?Constructor\]$/,kU=Function.prototype,xU=Object.prototype,CU=kU.toString,SU=xU.hasOwnProperty,$U=RegExp("^"+CU.call(SU).replace(yU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function EU(e){if(!ko(e)||gU(e))return!1;var t=zw(e)?$U:wU;return t.test(hc(e))}function TU(e,t){return e==null?void 0:e[t]}function mc(e,t){var n=TU(e,t);return EU(n)?n:void 0}var MU=mc(ci,"WeakMap");const zb=MU;var J5=Object.create,AU=function(){function e(){}return function(t){if(!ko(t))return{};if(J5)return J5(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const IU=AU;function OU(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function DE(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var PU=800,NU=16,LU=Date.now;function RU(e){var t=0,n=0;return function(){var o=LU(),r=NU-(o-n);if(n=o,r>0){if(++t>=PU)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function FU(e){return function(){return e}}var DU=function(){try{var e=mc(Object,"defineProperty");return e({},"",{}),e}catch{}}();const yg=DU;var BU=yg?function(e,t){return yg(e,"toString",{configurable:!0,enumerable:!1,value:FU(t),writable:!0})}:Bw;const zU=BU;var VU=RU(zU);const BE=VU;function jU(e,t){for(var n=-1,o=e==null?0:e.length;++n<o&&t(e[n],n,e)!==!1;);return e}function HU(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1}var UU=9007199254740991,WU=/^(?:0|[1-9]\d*)$/;function x1(e,t){var n=typeof e;return t=t??UU,!!t&&(n=="number"||n!="symbol"&&WU.test(e))&&e>-1&&e%1==0&&e<t}function Vw(e,t,n){t=="__proto__"&&yg?yg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function nh(e,t){return e===t||e!==e&&t!==t}var qU=Object.prototype,KU=qU.hasOwnProperty;function jw(e,t,n){var o=e[t];(!(KU.call(e,t)&&nh(o,n))||n===void 0&&!(t in e))&&Vw(e,t,n)}function oh(e,t,n,o){var r=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var l=t[i],a=o?o(n[l],e[l],l,n,e):void 0;a===void 0&&(a=e[l]),r?Vw(n,l,a):jw(n,l,a)}return n}var X5=Math.max;function zE(e,t,n){return t=X5(t===void 0?e.length-1:t,0),function(){for(var o=arguments,r=-1,i=X5(o.length-t,0),s=Array(i);++r<i;)s[r]=o[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=o[r];return l[t]=n(s),OU(e,this,l)}}function GU(e,t){return BE(zE(e,t,Bw),e+"")}var YU=9007199254740991;function Hw(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=YU}function cd(e){return e!=null&&Hw(e.length)&&!zw(e)}function ZU(e,t,n){if(!ko(n))return!1;var o=typeof t;return(o=="number"?cd(n)&&x1(t,n.length):o=="string"&&t in n)?nh(n[t],e):!1}function JU(e){return GU(function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,s&&ZU(n[0],n[1],s)&&(i=r<3?void 0:i,r=1),t=Object(t);++o<r;){var l=n[o];l&&e(t,l,o,i)}return t})}var XU=Object.prototype;function Uw(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||XU;return e===n}function QU(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var eW="[object Arguments]";function Q5(e){return Ni(e)&&pc(e)==eW}var VE=Object.prototype,tW=VE.hasOwnProperty,nW=VE.propertyIsEnumerable,oW=Q5(function(){return arguments}())?Q5:function(e){return Ni(e)&&tW.call(e,"callee")&&!nW.call(e,"callee")};const Cp=oW;function rW(){return!1}var jE=typeof or=="object"&&or&&!or.nodeType&&or,eC=jE&&typeof rr=="object"&&rr&&!rr.nodeType&&rr,iW=eC&&eC.exports===jE,tC=iW?ci.Buffer:void 0,sW=tC?tC.isBuffer:void 0,lW=sW||rW;const Sp=lW;var aW="[object Arguments]",cW="[object Array]",uW="[object Boolean]",dW="[object Date]",fW="[object Error]",pW="[object Function]",hW="[object Map]",mW="[object Number]",_W="[object Object]",gW="[object RegExp]",vW="[object Set]",bW="[object String]",yW="[object WeakMap]",wW="[object ArrayBuffer]",kW="[object DataView]",xW="[object Float32Array]",CW="[object Float64Array]",SW="[object Int8Array]",$W="[object Int16Array]",EW="[object Int32Array]",TW="[object Uint8Array]",MW="[object Uint8ClampedArray]",AW="[object Uint16Array]",IW="[object Uint32Array]",nn={};nn[xW]=nn[CW]=nn[SW]=nn[$W]=nn[EW]=nn[TW]=nn[MW]=nn[AW]=nn[IW]=!0;nn[aW]=nn[cW]=nn[wW]=nn[uW]=nn[kW]=nn[dW]=nn[fW]=nn[pW]=nn[hW]=nn[mW]=nn[_W]=nn[gW]=nn[vW]=nn[bW]=nn[yW]=!1;function OW(e){return Ni(e)&&Hw(e.length)&&!!nn[pc(e)]}function Ww(e){return function(t){return e(t)}}var HE=typeof or=="object"&&or&&!or.nodeType&&or,Ff=HE&&typeof rr=="object"&&rr&&!rr.nodeType&&rr,PW=Ff&&Ff.exports===HE,G0=PW&&NE.process,NW=function(){try{var e=Ff&&Ff.require&&Ff.require("util").types;return e||G0&&G0.binding&&G0.binding("util")}catch{}}();const Vu=NW;var nC=Vu&&Vu.isTypedArray,LW=nC?Ww(nC):OW;const qw=LW;var RW=Object.prototype,FW=RW.hasOwnProperty;function UE(e,t){var n=wo(e),o=!n&&Cp(e),r=!n&&!o&&Sp(e),i=!n&&!o&&!r&&qw(e),s=n||o||r||i,l=s?QU(e.length,String):[],a=l.length;for(var c in e)(t||FW.call(e,c))&&!(s&&(c=="length"||r&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||x1(c,a)))&&l.push(c);return l}function WE(e,t){return function(n){return e(t(n))}}var DW=WE(Object.keys,Object);const BW=DW;var zW=Object.prototype,VW=zW.hasOwnProperty;function jW(e){if(!Uw(e))return BW(e);var t=[];for(var n in Object(e))VW.call(e,n)&&n!="constructor"&&t.push(n);return t}function rh(e){return cd(e)?UE(e):jW(e)}function HW(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var UW=Object.prototype,WW=UW.hasOwnProperty;function qW(e){if(!ko(e))return HW(e);var t=Uw(e),n=[];for(var o in e)o=="constructor"&&(t||!WW.call(e,o))||n.push(o);return n}function ih(e){return cd(e)?UE(e,!0):qW(e)}var KW=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,GW=/^\w*$/;function Kw(e,t){if(wo(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||k1(e)?!0:GW.test(e)||!KW.test(e)||t!=null&&e in Object(t)}var YW=mc(Object,"create");const $p=YW;function ZW(){this.__data__=$p?$p(null):{},this.size=0}function JW(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var XW="__lodash_hash_undefined__",QW=Object.prototype,eq=QW.hasOwnProperty;function tq(e){var t=this.__data__;if($p){var n=t[e];return n===XW?void 0:n}return eq.call(t,e)?t[e]:void 0}var nq=Object.prototype,oq=nq.hasOwnProperty;function rq(e){var t=this.__data__;return $p?t[e]!==void 0:oq.call(t,e)}var iq="__lodash_hash_undefined__";function sq(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$p&&t===void 0?iq:t,this}function Ja(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ja.prototype.clear=ZW;Ja.prototype.delete=JW;Ja.prototype.get=tq;Ja.prototype.has=rq;Ja.prototype.set=sq;function lq(){this.__data__=[],this.size=0}function C1(e,t){for(var n=e.length;n--;)if(nh(e[n][0],t))return n;return-1}var aq=Array.prototype,cq=aq.splice;function uq(e){var t=this.__data__,n=C1(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():cq.call(t,n,1),--this.size,!0}function dq(e){var t=this.__data__,n=C1(t,e);return n<0?void 0:t[n][1]}function fq(e){return C1(this.__data__,e)>-1}function pq(e,t){var n=this.__data__,o=C1(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Es(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Es.prototype.clear=lq;Es.prototype.delete=uq;Es.prototype.get=dq;Es.prototype.has=fq;Es.prototype.set=pq;var hq=mc(ci,"Map");const Ep=hq;function mq(){this.size=0,this.__data__={hash:new Ja,map:new(Ep||Es),string:new Ja}}function _q(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function S1(e,t){var n=e.__data__;return _q(t)?n[typeof t=="string"?"string":"hash"]:n.map}function gq(e){var t=S1(this,e).delete(e);return this.size-=t?1:0,t}function vq(e){return S1(this,e).get(e)}function bq(e){return S1(this,e).has(e)}function yq(e,t){var n=S1(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}function Ts(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ts.prototype.clear=mq;Ts.prototype.delete=gq;Ts.prototype.get=vq;Ts.prototype.has=bq;Ts.prototype.set=yq;var wq="Expected a function";function Gw(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wq);var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(Gw.Cache||Ts),n}Gw.Cache=Ts;var kq=500;function xq(e){var t=Gw(e,function(o){return n.size===kq&&n.clear(),o}),n=t.cache;return t}var Cq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sq=/\\(\\)?/g,$q=xq(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Cq,function(n,o,r,i){t.push(r?i.replace(Sq,"$1"):o||n)}),t});const Eq=$q;function Tq(e){return e==null?"":FE(e)}function $1(e,t){return wo(e)?e:Kw(e,t)?[e]:Eq(Tq(e))}var Mq=1/0;function sh(e){if(typeof e=="string"||k1(e))return e;var t=e+"";return t=="0"&&1/e==-Mq?"-0":t}function Yw(e,t){t=$1(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[sh(t[n++])];return n&&n==o?e:void 0}function kr(e,t,n){var o=e==null?void 0:Yw(e,t);return o===void 0?n:o}function Zw(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}var oC=Pr?Pr.isConcatSpreadable:void 0;function Aq(e){return wo(e)||Cp(e)||!!(oC&&e&&e[oC])}function Jw(e,t,n,o,r){var i=-1,s=e.length;for(n||(n=Aq),r||(r=[]);++i<s;){var l=e[i];t>0&&n(l)?t>1?Jw(l,t-1,n,o,r):Zw(r,l):o||(r[r.length]=l)}return r}function Iq(e){var t=e==null?0:e.length;return t?Jw(e,1):[]}function Oq(e){return BE(zE(e,void 0,Iq),e+"")}var Pq=WE(Object.getPrototypeOf,Object);const Xw=Pq;var Nq="[object Object]",Lq=Function.prototype,Rq=Object.prototype,qE=Lq.toString,Fq=Rq.hasOwnProperty,Dq=qE.call(Object);function Bq(e){if(!Ni(e)||pc(e)!=Nq)return!1;var t=Xw(e);if(t===null)return!0;var n=Fq.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&qE.call(n)==Dq}function wg(){if(!arguments.length)return[];var e=arguments[0];return wo(e)?e:[e]}function zq(){this.__data__=new Es,this.size=0}function Vq(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function jq(e){return this.__data__.get(e)}function Hq(e){return this.__data__.has(e)}var Uq=200;function Wq(e,t){var n=this.__data__;if(n instanceof Es){var o=n.__data__;if(!Ep||o.length<Uq-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ts(o)}return n.set(e,t),this.size=n.size,this}function Xr(e){var t=this.__data__=new Es(e);this.size=t.size}Xr.prototype.clear=zq;Xr.prototype.delete=Vq;Xr.prototype.get=jq;Xr.prototype.has=Hq;Xr.prototype.set=Wq;function qq(e,t){return e&&oh(t,rh(t),e)}function Kq(e,t){return e&&oh(t,ih(t),e)}var KE=typeof or=="object"&&or&&!or.nodeType&&or,rC=KE&&typeof rr=="object"&&rr&&!rr.nodeType&&rr,Gq=rC&&rC.exports===KE,iC=Gq?ci.Buffer:void 0,sC=iC?iC.allocUnsafe:void 0;function GE(e,t){if(t)return e.slice();var n=e.length,o=sC?sC(n):new e.constructor(n);return e.copy(o),o}function Yq(e,t){for(var n=-1,o=e==null?0:e.length,r=0,i=[];++n<o;){var s=e[n];t(s,n,e)&&(i[r++]=s)}return i}function YE(){return[]}var Zq=Object.prototype,Jq=Zq.propertyIsEnumerable,lC=Object.getOwnPropertySymbols,Xq=lC?function(e){return e==null?[]:(e=Object(e),Yq(lC(e),function(t){return Jq.call(e,t)}))}:YE;const Qw=Xq;function Qq(e,t){return oh(e,Qw(e),t)}var eK=Object.getOwnPropertySymbols,tK=eK?function(e){for(var t=[];e;)Zw(t,Qw(e)),e=Xw(e);return t}:YE;const ZE=tK;function nK(e,t){return oh(e,ZE(e),t)}function JE(e,t,n){var o=t(e);return wo(e)?o:Zw(o,n(e))}function Vb(e){return JE(e,rh,Qw)}function oK(e){return JE(e,ih,ZE)}var rK=mc(ci,"DataView");const jb=rK;var iK=mc(ci,"Promise");const Hb=iK;var sK=mc(ci,"Set");const Ub=sK;var aC="[object Map]",lK="[object Object]",cC="[object Promise]",uC="[object Set]",dC="[object WeakMap]",fC="[object DataView]",aK=hc(jb),cK=hc(Ep),uK=hc(Hb),dK=hc(Ub),fK=hc(zb),la=pc;(jb&&la(new jb(new ArrayBuffer(1)))!=fC||Ep&&la(new Ep)!=aC||Hb&&la(Hb.resolve())!=cC||Ub&&la(new Ub)!=uC||zb&&la(new zb)!=dC)&&(la=function(e){var t=pc(e),n=t==lK?e.constructor:void 0,o=n?hc(n):"";if(o)switch(o){case aK:return fC;case cK:return aC;case uK:return cC;case dK:return uC;case fK:return dC}return t});const Tp=la;var pK=Object.prototype,hK=pK.hasOwnProperty;function mK(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&hK.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _K=ci.Uint8Array;const kg=_K;function e3(e){var t=new e.constructor(e.byteLength);return new kg(t).set(new kg(e)),t}function gK(e,t){var n=t?e3(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var vK=/\w*$/;function bK(e){var t=new e.constructor(e.source,vK.exec(e));return t.lastIndex=e.lastIndex,t}var pC=Pr?Pr.prototype:void 0,hC=pC?pC.valueOf:void 0;function yK(e){return hC?Object(hC.call(e)):{}}function XE(e,t){var n=t?e3(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wK="[object Boolean]",kK="[object Date]",xK="[object Map]",CK="[object Number]",SK="[object RegExp]",$K="[object Set]",EK="[object String]",TK="[object Symbol]",MK="[object ArrayBuffer]",AK="[object DataView]",IK="[object Float32Array]",OK="[object Float64Array]",PK="[object Int8Array]",NK="[object Int16Array]",LK="[object Int32Array]",RK="[object Uint8Array]",FK="[object Uint8ClampedArray]",DK="[object Uint16Array]",BK="[object Uint32Array]";function zK(e,t,n){var o=e.constructor;switch(t){case MK:return e3(e);case wK:case kK:return new o(+e);case AK:return gK(e,n);case IK:case OK:case PK:case NK:case LK:case RK:case FK:case DK:case BK:return XE(e,n);case xK:return new o;case CK:case EK:return new o(e);case SK:return bK(e);case $K:return new o;case TK:return yK(e)}}function QE(e){return typeof e.constructor=="function"&&!Uw(e)?IU(Xw(e)):{}}var VK="[object Map]";function jK(e){return Ni(e)&&Tp(e)==VK}var mC=Vu&&Vu.isMap,HK=mC?Ww(mC):jK;const UK=HK;var WK="[object Set]";function qK(e){return Ni(e)&&Tp(e)==WK}var _C=Vu&&Vu.isSet,KK=_C?Ww(_C):qK;const GK=KK;var YK=1,ZK=2,JK=4,eT="[object Arguments]",XK="[object Array]",QK="[object Boolean]",eG="[object Date]",tG="[object Error]",tT="[object Function]",nG="[object GeneratorFunction]",oG="[object Map]",rG="[object Number]",nT="[object Object]",iG="[object RegExp]",sG="[object Set]",lG="[object String]",aG="[object Symbol]",cG="[object WeakMap]",uG="[object ArrayBuffer]",dG="[object DataView]",fG="[object Float32Array]",pG="[object Float64Array]",hG="[object Int8Array]",mG="[object Int16Array]",_G="[object Int32Array]",gG="[object Uint8Array]",vG="[object Uint8ClampedArray]",bG="[object Uint16Array]",yG="[object Uint32Array]",en={};en[eT]=en[XK]=en[uG]=en[dG]=en[QK]=en[eG]=en[fG]=en[pG]=en[hG]=en[mG]=en[_G]=en[oG]=en[rG]=en[nT]=en[iG]=en[sG]=en[lG]=en[aG]=en[gG]=en[vG]=en[bG]=en[yG]=!0;en[tG]=en[tT]=en[cG]=!1;function Df(e,t,n,o,r,i){var s,l=t&YK,a=t&ZK,c=t&JK;if(n&&(s=r?n(e,o,r,i):n(e)),s!==void 0)return s;if(!ko(e))return e;var u=wo(e);if(u){if(s=mK(e),!l)return DE(e,s)}else{var d=Tp(e),f=d==tT||d==nG;if(Sp(e))return GE(e,l);if(d==nT||d==eT||f&&!r){if(s=a||f?{}:QE(e),!l)return a?nK(e,Kq(s,e)):Qq(e,qq(s,e))}else{if(!en[d])return r?e:{};s=zK(e,d,l)}}i||(i=new Xr);var p=i.get(e);if(p)return p;i.set(e,s),GK(e)?e.forEach(function(b){s.add(Df(b,t,n,b,e,i))}):UK(e)&&e.forEach(function(b,v){s.set(v,Df(b,t,n,v,e,i))});var h=c?a?oK:Vb:a?ih:rh,m=u?void 0:h(e);return jU(m||e,function(b,v){m&&(v=b,b=e[v]),jw(s,v,Df(b,t,n,v,e,i))}),s}var wG=4;function gC(e){return Df(e,wG)}var kG=1,xG=4;function vC(e){return Df(e,kG|xG)}var CG="__lodash_hash_undefined__";function SG(e){return this.__data__.set(e,CG),this}function $G(e){return this.__data__.has(e)}function xg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ts;++t<n;)this.add(e[t])}xg.prototype.add=xg.prototype.push=SG;xg.prototype.has=$G;function EG(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function TG(e,t){return e.has(t)}var MG=1,AG=2;function oT(e,t,n,o,r,i){var s=n&MG,l=e.length,a=t.length;if(l!=a&&!(s&&a>l))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&AG?new xg:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],m=t[d];if(o)var b=s?o(m,h,d,t,e,i):o(h,m,d,e,t,i);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!EG(t,function(v,E){if(!TG(p,E)&&(h===v||r(h,v,n,o,i)))return p.push(E)})){f=!1;break}}else if(!(h===m||r(h,m,n,o,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function IG(e){var t=-1,n=Array(e.size);return e.forEach(function(o,r){n[++t]=[r,o]}),n}function OG(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var PG=1,NG=2,LG="[object Boolean]",RG="[object Date]",FG="[object Error]",DG="[object Map]",BG="[object Number]",zG="[object RegExp]",VG="[object Set]",jG="[object String]",HG="[object Symbol]",UG="[object ArrayBuffer]",WG="[object DataView]",bC=Pr?Pr.prototype:void 0,Y0=bC?bC.valueOf:void 0;function qG(e,t,n,o,r,i,s){switch(n){case WG:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case UG:return!(e.byteLength!=t.byteLength||!i(new kg(e),new kg(t)));case LG:case RG:case BG:return nh(+e,+t);case FG:return e.name==t.name&&e.message==t.message;case zG:case jG:return e==t+"";case DG:var l=IG;case VG:var a=o&PG;if(l||(l=OG),e.size!=t.size&&!a)return!1;var c=s.get(e);if(c)return c==t;o|=NG,s.set(e,t);var u=oT(l(e),l(t),o,r,i,s);return s.delete(e),u;case HG:if(Y0)return Y0.call(e)==Y0.call(t)}return!1}var KG=1,GG=Object.prototype,YG=GG.hasOwnProperty;function ZG(e,t,n,o,r,i){var s=n&KG,l=Vb(e),a=l.length,c=Vb(t),u=c.length;if(a!=u&&!s)return!1;for(var d=a;d--;){var f=l[d];if(!(s?f in t:YG.call(t,f)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=s;++d<a;){f=l[d];var v=e[f],E=t[f];if(o)var w=s?o(E,v,f,t,e,i):o(v,E,f,e,t,i);if(!(w===void 0?v===E||r(v,E,n,o,i):w)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var S=e.constructor,T=t.constructor;S!=T&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof T=="function"&&T instanceof T)&&(m=!1)}return i.delete(e),i.delete(t),m}var JG=1,yC="[object Arguments]",wC="[object Array]",sm="[object Object]",XG=Object.prototype,kC=XG.hasOwnProperty;function QG(e,t,n,o,r,i){var s=wo(e),l=wo(t),a=s?wC:Tp(e),c=l?wC:Tp(t);a=a==yC?sm:a,c=c==yC?sm:c;var u=a==sm,d=c==sm,f=a==c;if(f&&Sp(e)){if(!Sp(t))return!1;s=!0,u=!1}if(f&&!u)return i||(i=new Xr),s||qw(e)?oT(e,t,n,o,r,i):qG(e,t,a,n,o,r,i);if(!(n&JG)){var p=u&&kC.call(e,"__wrapped__"),h=d&&kC.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,b=h?t.value():t;return i||(i=new Xr),r(m,b,n,o,i)}}return f?(i||(i=new Xr),ZG(e,t,n,o,r,i)):!1}function E1(e,t,n,o,r){return e===t?!0:e==null||t==null||!Ni(e)&&!Ni(t)?e!==e&&t!==t:QG(e,t,n,o,E1,r)}var eY=1,tY=2;function nY(e,t,n,o){var r=n.length,i=r,s=!o;if(e==null)return!i;for(e=Object(e);r--;){var l=n[r];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<i;){l=n[r];var a=l[0],c=e[a],u=l[1];if(s&&l[2]){if(c===void 0&&!(a in e))return!1}else{var d=new Xr;if(o)var f=o(c,u,a,e,t,d);if(!(f===void 0?E1(u,c,eY|tY,o,d):f))return!1}}return!0}function rT(e){return e===e&&!ko(e)}function oY(e){for(var t=rh(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,rT(r)]}return t}function iT(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function rY(e){var t=oY(e);return t.length==1&&t[0][2]?iT(t[0][0],t[0][1]):function(n){return n===e||nY(n,e,t)}}function iY(e,t){return e!=null&&t in Object(e)}function sY(e,t,n){t=$1(t,e);for(var o=-1,r=t.length,i=!1;++o<r;){var s=sh(t[o]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++o!=r?i:(r=e==null?0:e.length,!!r&&Hw(r)&&x1(s,r)&&(wo(e)||Cp(e)))}function sT(e,t){return e!=null&&sY(e,t,iY)}var lY=1,aY=2;function cY(e,t){return Kw(e)&&rT(t)?iT(sh(e),t):function(n){var o=kr(n,e);return o===void 0&&o===t?sT(n,e):E1(t,o,lY|aY)}}function uY(e){return function(t){return t==null?void 0:t[e]}}function dY(e){return function(t){return Yw(t,e)}}function fY(e){return Kw(e)?uY(sh(e)):dY(e)}function lT(e){return typeof e=="function"?e:e==null?Bw:typeof e=="object"?wo(e)?cY(e[0],e[1]):rY(e):fY(e)}function pY(e){return function(t,n,o){for(var r=-1,i=Object(t),s=o(t),l=s.length;l--;){var a=s[e?l:++r];if(n(i[a],a,i)===!1)break}return t}}var hY=pY();const aT=hY;function mY(e,t){return e&&aT(e,t,rh)}function _Y(e,t){return function(n,o){if(n==null)return n;if(!cd(n))return e(n,o);for(var r=n.length,i=t?r:-1,s=Object(n);(t?i--:++i<r)&&o(s[i],i,s)!==!1;);return n}}var gY=_Y(mY);const vY=gY;var bY=function(){return ci.Date.now()};const Z0=bY;var yY="Expected a function",wY=Math.max,kY=Math.min;function Xa(e,t,n){var o,r,i,s,l,a,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(yY);t=Bb(t)||0,ko(n)&&(u=!!n.leading,d="maxWait"in n,i=d?wY(Bb(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p($){var A=o,P=r;return o=r=void 0,c=$,s=e.apply(P,A),s}function h($){return c=$,l=setTimeout(v,t),u?p($):s}function m($){var A=$-a,P=$-c,N=t-A;return d?kY(N,i-P):N}function b($){var A=$-a,P=$-c;return a===void 0||A>=t||A<0||d&&P>=i}function v(){var $=Z0();if(b($))return E($);l=setTimeout(v,m($))}function E($){return l=void 0,f&&o?p($):(o=r=void 0,s)}function w(){l!==void 0&&clearTimeout(l),c=0,o=a=r=l=void 0}function S(){return l===void 0?s:E(Z0())}function T(){var $=Z0(),A=b($);if(o=arguments,r=this,a=$,A){if(l===void 0)return h(a);if(d)return clearTimeout(l),l=setTimeout(v,t),p(a)}return l===void 0&&(l=setTimeout(v,t)),s}return T.cancel=w,T.flush=S,T}function Wb(e,t,n){(n!==void 0&&!nh(e[t],n)||n===void 0&&!(t in e))&&Vw(e,t,n)}function xY(e){return Ni(e)&&cd(e)}function qb(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function CY(e){return oh(e,ih(e))}function SY(e,t,n,o,r,i,s){var l=qb(e,n),a=qb(t,n),c=s.get(a);if(c){Wb(e,n,c);return}var u=i?i(l,a,n+"",e,t,s):void 0,d=u===void 0;if(d){var f=wo(a),p=!f&&Sp(a),h=!f&&!p&&qw(a);u=a,f||p||h?wo(l)?u=l:xY(l)?u=DE(l):p?(d=!1,u=GE(a,!0)):h?(d=!1,u=XE(a,!0)):u=[]:Bq(a)||Cp(a)?(u=l,Cp(l)?u=CY(l):(!ko(l)||zw(l))&&(u=QE(a))):d=!1}d&&(s.set(a,u),r(u,a,o,i,s),s.delete(a)),Wb(e,n,u)}function cT(e,t,n,o,r){e!==t&&aT(t,function(i,s){if(r||(r=new Xr),ko(i))SY(e,t,s,n,cT,o,r);else{var l=o?o(qb(e,s),i,s+"",e,t,r):void 0;l===void 0&&(l=i),Wb(e,s,l)}},ih)}var $Y=Math.max,EY=Math.min;function TY(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=o-1;return n!==void 0&&(r=dU(n),r=n<0?$Y(o+r,0):EY(r,o-1)),HU(e,lT(t),r,!0)}function MY(e,t){var n=-1,o=cd(e)?Array(e.length):[];return vY(e,function(r,i,s){o[++n]=t(r,i,s)}),o}function AY(e,t){var n=wo(e)?RE:MY;return n(e,lT(t))}function IY(e,t){return Jw(AY(e,t),1)}function Cg(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var r=e[t];o[r[0]]=r[1]}return o}function Qa(e,t){return E1(e,t)}function Ai(e){return e==null}function uT(e){return e===void 0}var OY=JU(function(e,t,n){cT(e,t,n)});const PY=OY;function dT(e,t,n,o){if(!ko(e))return e;t=$1(t,e);for(var r=-1,i=t.length,s=i-1,l=e;l!=null&&++r<i;){var a=sh(t[r]),c=n;if(a==="__proto__"||a==="constructor"||a==="prototype")return e;if(r!=s){var u=l[a];c=o?o(u,a,l):void 0,c===void 0&&(c=ko(u)?u:x1(t[r+1])?[]:{})}jw(l,a,c),l=l[a]}return e}function NY(e,t,n){for(var o=-1,r=t.length,i={};++o<r;){var s=t[o],l=Yw(e,s);n(l,s)&&dT(i,$1(s,e),l)}return i}function LY(e,t){return NY(e,t,function(n,o){return sT(e,o)})}var RY=Oq(function(e,t){return e==null?{}:LY(e,t)});const FY=RY;function DY(e,t,n){return e==null?e:dT(e,t,n)}var BY="Expected a function";function J0(e,t,n){var o=!0,r=!0;if(typeof e!="function")throw new TypeError(BY);return ko(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),Xa(e,t,{leading:o,maxWait:t,trailing:r})}const ks=e=>e===void 0,ao=e=>typeof e=="boolean",$t=e=>typeof e=="number",si=e=>typeof Element>"u"?!1:e instanceof Element,Mp=e=>Ai(e),zY=e=>je(e)?!Number.isNaN(Number(e)):!1,VY=e=>kt?window.requestAnimationFrame(e):setTimeout(e,16),jY=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),pl=e=>Rl(e),Kb=e=>Object.keys(e),HY=e=>Object.entries(e),Wm=(e,t,n)=>({get value(){return kr(e,t,n)},set value(o){DY(e,t,o)}});class UY extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function ui(e,t){throw new UY(`[${e}] ${t}`)}const fT=(e="")=>e.split(" ").filter(t=>!!t.trim()),hu=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},ec=(e,t)=>{!e||!t.trim()||e.classList.add(...fT(t))},Li=(e,t)=>{!e||!t.trim()||e.classList.remove(...fT(t))},_a=(e,t)=>{var n;if(!kt||!e||!t)return"";let o=dn(t);o==="float"&&(o="cssFloat");try{const r=e.style[o];if(r)return r;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[o]:""}catch{return e.style[o]}};function fo(e,t="px"){if(!e)return"";if($t(e)||zY(e))return`${e}${t}`;if(je(e))return e}const WY=(e,t)=>{if(!kt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=_a(e,n);return["scroll","auto","overlay"].some(r=>o.includes(r))},qY=(e,t)=>{if(!kt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(WY(n,t))return n;n=n.parentNode}return n};let lm;const KY=e=>{var t;if(!kt)return 0;if(lm!==void 0)return lm;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",n.appendChild(r);const i=r.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),lm=o-i,lm};function GY(e,t){if(!kt)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const r=t.offsetTop+n.reduce((a,c)=>a+c.offsetTop,0),i=r+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;r<s?e.scrollTop=r:i>l&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var YY=K({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),lh=YY,ZY=K({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),JY=ZY,XY=K({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),T1=XY,QY=K({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),ud=QY,eZ=K({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),pT=eZ,tZ=K({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),nZ=tZ,oZ=K({name:"Back",__name:"back",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),g("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),rZ=oZ,iZ=K({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),g("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"})]))}}),sZ=iZ,lZ=K({name:"Bell",__name:"bell",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),g("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),g("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),aZ=lZ,cZ=K({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),uZ=cZ,dZ=K({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),fZ=dZ,pZ=K({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),hZ=pZ,mZ=K({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),g("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),_Z=mZ,gZ=K({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),g("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"})]))}}),vZ=gZ,bZ=K({name:"Check",__name:"check",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),t3=bZ,yZ=K({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),g("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),n3=yZ,wZ=K({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),hT=wZ,kZ=K({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),g("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),M1=kZ,xZ=K({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"})]))}}),CZ=xZ,SZ=K({name:"Close",__name:"close",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ri=SZ,$Z=K({name:"Comment",__name:"comment",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),EZ=$Z,TZ=K({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),MZ=TZ,AZ=K({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),IZ=AZ,OZ=K({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),PZ=OZ,NZ=K({name:"Delete",__name:"delete",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),mT=NZ,LZ=K({name:"Document",__name:"document",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),RZ=LZ,FZ=K({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"})]))}}),DZ=FZ,BZ=K({name:"Expand",__name:"expand",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),zZ=BZ,VZ=K({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),_T=VZ,jZ=K({name:"Guide",__name:"guide",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),g("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),HZ=jZ,UZ=K({name:"Hide",__name:"hide",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),g("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),gT=UZ,WZ=K({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),qZ=WZ,KZ=K({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),ah=KZ,GZ=K({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),YZ=GZ,ZZ=K({name:"Loading",__name:"loading",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),A1=ZZ,JZ=K({name:"Lock",__name:"lock",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),g("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),XZ=JZ,QZ=K({name:"Memo",__name:"memo",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),g("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),g("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),eJ=QZ,tJ=K({name:"Message",__name:"message",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),g("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056"})]))}}),nJ=tJ,oJ=K({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Gb=oJ,rJ=K({name:"More",__name:"more",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),iJ=rJ,sJ=K({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),g("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),lJ=sJ,aJ=K({name:"Notification",__name:"notification",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),g("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),cJ=aJ,uJ=K({name:"Operation",__name:"operation",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),dJ=uJ,fJ=K({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),pJ=fJ,hJ=K({name:"Picture",__name:"picture",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),g("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),mJ=hJ,_J=K({name:"Plus",__name:"plus",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),vT=_J,gJ=K({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),g("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),vJ=gJ,bJ=K({name:"Reading",__name:"reading",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"}),g("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),yJ=bJ,wJ=K({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),bT=wJ,kJ=K({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),xJ=kJ,CJ=K({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),SJ=CJ,$J=K({name:"Search",__name:"search",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),ju=$J,EJ=K({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),o3=EJ,TJ=K({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),MJ=TJ,AJ=K({name:"Timer",__name:"timer",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),g("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),g("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),yT=AJ,IJ=K({name:"Top",__name:"top",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),OJ=IJ,PJ=K({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),NJ=PJ,LJ=K({name:"User",__name:"user",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),RJ=LJ,FJ=K({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),DJ=FJ,BJ=K({name:"View",__name:"view",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),wT=BJ,zJ=K({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),r3=zJ,VJ=K({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),kT=VJ,jJ=K({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),HJ=jJ;const xT="__epPropKey",we=e=>e,UJ=e=>st(e)&&!!e[xT],I1=(e,t)=>{if(!st(e)||UJ(e))return e;const{values:n,required:o,default:r,type:i,validator:s}=e,a={type:i,required:!!o,validator:n||s?c=>{let u=!1,d=[];if(n&&(d=Array.from(n),ut(e,"default")&&d.push(r),u||(u=d.includes(c))),s&&(u||(u=s(c))),!u&&d.length>0){const f=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");p7(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[xT]:!0};return ut(e,"default")&&(a.default=r),a},Ke=e=>Cg(Object.entries(e).map(([t,n])=>[t,I1(n,t)])),Ln=we([String,Object,Function]),CT={Close:Ri},WJ={Close:Ri,SuccessFilled:o3,InfoFilled:ah,WarningFilled:r3,CircleCloseFilled:hT},Sg={success:o3,warning:r3,error:hT,info:ah},ST={validating:A1,success:n3,error:M1},Vt=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t??{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},qJ=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),KJ=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Hn=e=>(e.install=dt,e),i3=(...e)=>t=>{e.forEach(n=>{Ue(n)?n(t):n.value=t})},ht={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Kt="update:modelValue",tc="change",Yb="input",_c=["","default","small","large"],$T=e=>["",..._c].includes(e);var qm=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(qm||{});const Km=e=>{const t=$e(e)?e:[e],n=[];return t.forEach(o=>{var r;$e(o)?n.push(...Km(o)):uo(o)&&$e(o.children)?n.push(...Km(o.children)):(n.push(o),uo(o)&&((r=o.component)!=null&&r.subTree)&&n.push(...Km(o.component.subTree)))}),n},ET=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),bo=e=>e,GJ=["class","style"],YJ=/^on[A-Z]/,TT=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=D(()=>((n==null?void 0:n.value)||[]).concat(GJ)),r=nt();return D(r?()=>{var i;return Cg(Object.entries((i=r.proxy)==null?void 0:i.$attrs).filter(([s])=>!o.value.includes(s)&&!(t&&YJ.test(s))))}:()=>({}))},Ra=({from:e,replacement:t,scope:n,version:o,ref:r,type:i="API"},s)=>{ke(()=>C(s),l=>{},{immediate:!0})},MT=(e,t,n,o)=>{let r={offsetX:0,offsetY:0};const i=a=>{const c=a.clientX,u=a.clientY,{offsetX:d,offsetY:f}=r,p=e.value.getBoundingClientRect(),h=p.left,m=p.top,b=p.width,v=p.height,E=document.documentElement.clientWidth,w=document.documentElement.clientHeight,S=-h+d,T=-m+f,$=E-h-b+d,A=w-m-v+f,P=I=>{let B=d+I.clientX-c,V=f+I.clientY-u;o!=null&&o.value||(B=Math.min(Math.max(B,S),$),V=Math.min(Math.max(V,T),A)),r={offsetX:B,offsetY:V},e.value&&(e.value.style.transform=`translate(${fo(B)}, ${fo(V)})`)},N=()=>{document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",N)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",N)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};mt(()=>{Zr(()=>{n.value?s():l()})}),yn(()=>{l()})};var ZJ={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const JJ=e=>(t,n)=>XJ(t,n,C(e)),XJ=(e,t,n)=>kr(n,e,e).replace(/\{(\w+)\}/g,(o,r)=>{var i;return`${(i=t==null?void 0:t[r])!=null?i:`{${r}}`}`}),QJ=e=>{const t=D(()=>C(e).name),n=Zt(e)?e:H(e);return{lang:t,locale:n,t:JJ(e)}},AT=Symbol("localeContextKey"),Dn=e=>{const t=e||Ne(AT,H());return QJ(D(()=>t.value||ZJ))},Bf="el",eX="is-",ea=(e,t,n,o,r)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),o&&(i+=`__${o}`),r&&(i+=`--${r}`),i},IT=Symbol("namespaceContextKey"),s3=e=>{const t=e||(nt()?Ne(IT,H(Bf)):H(Bf));return D(()=>C(t)||Bf)},Ae=(e,t)=>{const n=s3(t);return{namespace:n,b:(m="")=>ea(n.value,e,m,"",""),e:m=>m?ea(n.value,e,"",m,""):"",m:m=>m?ea(n.value,e,"","",m):"",be:(m,b)=>m&&b?ea(n.value,e,m,b,""):"",em:(m,b)=>m&&b?ea(n.value,e,"",m,b):"",bm:(m,b)=>m&&b?ea(n.value,e,m,"",b):"",bem:(m,b,v)=>m&&b&&v?ea(n.value,e,m,b,v):"",is:(m,...b)=>{const v=b.length>=1?b[0]:!0;return m&&v?`${eX}${m}`:""},cssVar:m=>{const b={};for(const v in m)m[v]&&(b[`--${n.value}-${v}`]=m[v]);return b},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const b={};for(const v in m)m[v]&&(b[`--${n.value}-${e}-${v}`]=m[v]);return b},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},OT=(e,t={})=>{Zt(e)||ui("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Ae("popup"),o=d$(()=>n.bm("parent","hidden"));if(!kt||hu(document.body,o.value))return;let r=0,i=!1,s="0";const l=()=>{setTimeout(()=>{Li(document==null?void 0:document.body,o.value),i&&document&&(document.body.style.width=s)},200)};ke(e,a=>{if(!a){l();return}i=!hu(document.body,o.value),i&&(s=document.body.style.width),r=KY(n.namespace.value);const c=document.documentElement.clientHeight<document.body.scrollHeight,u=_a(document.body,"overflowY");r>0&&(c||u==="scroll")&&i&&(document.body.style.width=`calc(100% - ${r}px)`),ec(document.body,o.value)}),K2(()=>l())},tX=I1({type:we(Boolean),default:null}),nX=I1({type:we(Function)}),PT=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],r={[e]:tX,[n]:nX};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:a,shouldProceed:c,onShow:u,onHide:d})=>{const f=nt(),{emit:p}=f,h=f.props,m=D(()=>Ue(h[n])),b=D(()=>h[e]===null),v=A=>{s.value!==!0&&(s.value=!0,l&&(l.value=A),Ue(u)&&u(A))},E=A=>{s.value!==!1&&(s.value=!1,l&&(l.value=A),Ue(d)&&d(A))},w=A=>{if(h.disabled===!0||Ue(c)&&!c())return;const P=m.value&&kt;P&&p(t,!0),(b.value||!P)&&v(A)},S=A=>{if(h.disabled===!0||!kt)return;const P=m.value&&kt;P&&p(t,!1),(b.value||!P)&&E(A)},T=A=>{ao(A)&&(h.disabled&&A?m.value&&p(t,!1):s.value!==A&&(A?v():E()))},$=()=>{s.value?S():w()};return ke(()=>h[e],T),a&&f.appContext.config.globalProperties.$route!==void 0&&ke(()=>({...f.proxy.$route}),()=>{a.value&&s.value&&S()}),mt(()=>{T(h[e])}),{hide:S,show:w,toggle:$,hasUpdateHandler:m}},useModelToggleProps:r,useModelToggleEmits:o}};PT("modelValue");const NT=e=>{const t=nt();return D(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})};var Fo="top",Nr="bottom",Lr="right",Do="left",l3="auto",ch=[Fo,Nr,Lr,Do],Hu="start",Ap="end",oX="clippingParents",LT="viewport",zd="popper",rX="reference",xC=ch.reduce(function(e,t){return e.concat([t+"-"+Hu,t+"-"+Ap])},[]),O1=[].concat(ch,[l3]).reduce(function(e,t){return e.concat([t,t+"-"+Hu,t+"-"+Ap])},[]),iX="beforeRead",sX="read",lX="afterRead",aX="beforeMain",cX="main",uX="afterMain",dX="beforeWrite",fX="write",pX="afterWrite",hX=[iX,sX,lX,aX,cX,uX,dX,fX,pX];function Fi(e){return e?(e.nodeName||"").toLowerCase():null}function di(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Uu(e){var t=di(e).Element;return e instanceof t||e instanceof Element}function Mr(e){var t=di(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a3(e){if(typeof ShadowRoot>"u")return!1;var t=di(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mX(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!Mr(i)||!Fi(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(s){var l=r[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function _X(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=s.reduce(function(a,c){return a[c]="",a},{});!Mr(r)||!Fi(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(a){r.removeAttribute(a)}))})}}var RT={name:"applyStyles",enabled:!0,phase:"write",fn:mX,effect:_X,requires:["computeStyles"]};function Ii(e){return e.split("-")[0]}var Fa=Math.max,$g=Math.min,Wu=Math.round;function qu(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(Mr(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(o=Wu(n.width)/s||1),i>0&&(r=Wu(n.height)/i||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function c3(e){var t=qu(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function FT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a3(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function xs(e){return di(e).getComputedStyle(e)}function gX(e){return["table","td","th"].indexOf(Fi(e))>=0}function zl(e){return((Uu(e)?e.ownerDocument:e.document)||window.document).documentElement}function P1(e){return Fi(e)==="html"?e:e.assignedSlot||e.parentNode||(a3(e)?e.host:null)||zl(e)}function CC(e){return!Mr(e)||xs(e).position==="fixed"?null:e.offsetParent}function vX(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Mr(e)){var o=xs(e);if(o.position==="fixed")return null}var r=P1(e);for(a3(r)&&(r=r.host);Mr(r)&&["html","body"].indexOf(Fi(r))<0;){var i=xs(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function uh(e){for(var t=di(e),n=CC(e);n&&gX(n)&&xs(n).position==="static";)n=CC(n);return n&&(Fi(n)==="html"||Fi(n)==="body"&&xs(n).position==="static")?t:n||vX(e)||t}function u3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zf(e,t,n){return Fa(e,$g(t,n))}function bX(e,t,n){var o=zf(e,t,n);return o>n?n:o}function DT(){return{top:0,right:0,bottom:0,left:0}}function BT(e){return Object.assign({},DT(),e)}function zT(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var yX=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,BT(typeof e!="number"?e:zT(e,ch))};function wX(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Ii(n.placement),a=u3(l),c=[Do,Lr].indexOf(l)>=0,u=c?"height":"width";if(!(!i||!s)){var d=yX(r.padding,n),f=c3(i),p=a==="y"?Fo:Do,h=a==="y"?Nr:Lr,m=n.rects.reference[u]+n.rects.reference[a]-s[a]-n.rects.popper[u],b=s[a]-n.rects.reference[a],v=uh(i),E=v?a==="y"?v.clientHeight||0:v.clientWidth||0:0,w=m/2-b/2,S=d[p],T=E-f[u]-d[h],$=E/2-f[u]/2+w,A=zf(S,$,T),P=a;n.modifiersData[o]=(t={},t[P]=A,t.centerOffset=A-$,t)}}function kX(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!FT(t.elements.popper,r)||(t.elements.arrow=r))}var xX={name:"arrow",enabled:!0,phase:"main",fn:wX,effect:kX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ku(e){return e.split("-")[1]}var CX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SX(e){var t=e.x,n=e.y,o=window,r=o.devicePixelRatio||1;return{x:Wu(t*r)/r||0,y:Wu(n*r)/r||0}}function SC(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,s=e.offsets,l=e.position,a=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,h=s.y,m=h===void 0?0:h,b=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=b.x,m=b.y;var v=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),w=Do,S=Fo,T=window;if(c){var $=uh(n),A="clientHeight",P="clientWidth";if($===di(n)&&($=zl(n),xs($).position!=="static"&&l==="absolute"&&(A="scrollHeight",P="scrollWidth")),$=$,r===Fo||(r===Do||r===Lr)&&i===Ap){S=Nr;var N=d&&$===T&&T.visualViewport?T.visualViewport.height:$[A];m-=N-o.height,m*=a?1:-1}if(r===Do||(r===Fo||r===Nr)&&i===Ap){w=Lr;var I=d&&$===T&&T.visualViewport?T.visualViewport.width:$[P];p-=I-o.width,p*=a?1:-1}}var B=Object.assign({position:l},c&&CX),V=u===!0?SX({x:p,y:m}):{x:p,y:m};if(p=V.x,m=V.y,a){var G;return Object.assign({},B,(G={},G[S]=E?"0":"",G[w]=v?"0":"",G.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",G))}return Object.assign({},B,(t={},t[S]=E?m+"px":"",t[w]=v?p+"px":"",t.transform="",t))}function $X(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,a=l===void 0?!0:l,c={placement:Ii(t.placement),variation:Ku(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,SC(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,SC(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var VT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$X,data:{}},am={passive:!0};function EX(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,s=o.resize,l=s===void 0?!0:s,a=di(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,am)}),l&&a.addEventListener("resize",n.update,am),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,am)}),l&&a.removeEventListener("resize",n.update,am)}}var jT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:EX,data:{}},TX={left:"right",right:"left",bottom:"top",top:"bottom"};function Gm(e){return e.replace(/left|right|bottom|top/g,function(t){return TX[t]})}var MX={start:"end",end:"start"};function $C(e){return e.replace(/start|end/g,function(t){return MX[t]})}function d3(e){var t=di(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function f3(e){return qu(zl(e)).left+d3(e).scrollLeft}function AX(e){var t=di(e),n=zl(e),o=t.visualViewport,r=n.clientWidth,i=n.clientHeight,s=0,l=0;return o&&(r=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,l=o.offsetTop)),{width:r,height:i,x:s+f3(e),y:l}}function IX(e){var t,n=zl(e),o=d3(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Fa(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Fa(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+f3(e),a=-o.scrollTop;return xs(r||n).direction==="rtl"&&(l+=Fa(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function p3(e){var t=xs(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function HT(e){return["html","body","#document"].indexOf(Fi(e))>=0?e.ownerDocument.body:Mr(e)&&p3(e)?e:HT(P1(e))}function Vf(e,t){var n;t===void 0&&(t=[]);var o=HT(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=di(o),s=r?[i].concat(i.visualViewport||[],p3(o)?o:[]):o,l=t.concat(s);return r?l:l.concat(Vf(P1(s)))}function Zb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function OX(e){var t=qu(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function EC(e,t){return t===LT?Zb(AX(e)):Uu(t)?OX(t):Zb(IX(zl(e)))}function PX(e){var t=Vf(P1(e)),n=["absolute","fixed"].indexOf(xs(e).position)>=0,o=n&&Mr(e)?uh(e):e;return Uu(o)?t.filter(function(r){return Uu(r)&&FT(r,o)&&Fi(r)!=="body"}):[]}function NX(e,t,n){var o=t==="clippingParents"?PX(e):[].concat(t),r=[].concat(o,[n]),i=r[0],s=r.reduce(function(l,a){var c=EC(e,a);return l.top=Fa(c.top,l.top),l.right=$g(c.right,l.right),l.bottom=$g(c.bottom,l.bottom),l.left=Fa(c.left,l.left),l},EC(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function UT(e){var t=e.reference,n=e.element,o=e.placement,r=o?Ii(o):null,i=o?Ku(o):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(r){case Fo:a={x:s,y:t.y-n.height};break;case Nr:a={x:s,y:t.y+t.height};break;case Lr:a={x:t.x+t.width,y:l};break;case Do:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var c=r?u3(r):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Hu:a[c]=a[c]-(t[u]/2-n[u]/2);break;case Ap:a[c]=a[c]+(t[u]/2-n[u]/2);break}}return a}function Ip(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.boundary,s=i===void 0?oX:i,l=n.rootBoundary,a=l===void 0?LT:l,c=n.elementContext,u=c===void 0?zd:c,d=n.altBoundary,f=d===void 0?!1:d,p=n.padding,h=p===void 0?0:p,m=BT(typeof h!="number"?h:zT(h,ch)),b=u===zd?rX:zd,v=e.rects.popper,E=e.elements[f?b:u],w=NX(Uu(E)?E:E.contextElement||zl(e.elements.popper),s,a),S=qu(e.elements.reference),T=UT({reference:S,element:v,strategy:"absolute",placement:r}),$=Zb(Object.assign({},v,T)),A=u===zd?$:S,P={top:w.top-A.top+m.top,bottom:A.bottom-w.bottom+m.bottom,left:w.left-A.left+m.left,right:A.right-w.right+m.right},N=e.modifiersData.offset;if(u===zd&&N){var I=N[r];Object.keys(P).forEach(function(B){var V=[Lr,Nr].indexOf(B)>=0?1:-1,G=[Fo,Nr].indexOf(B)>=0?"y":"x";P[B]+=I[G]*V})}return P}function LX(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?O1:a,u=Ku(o),d=u?l?xC:xC.filter(function(h){return Ku(h)===u}):ch,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,m){return h[m]=Ip(e,{placement:m,boundary:r,rootBoundary:i,padding:s})[Ii(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function RX(e){if(Ii(e)===l3)return[];var t=Gm(e);return[$C(e),t,$C(t)]}function FX(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,l=s===void 0?!0:s,a=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,m=n.allowedAutoPlacements,b=t.options.placement,v=Ii(b),E=v===b,w=a||(E||!h?[Gm(b)]:RX(b)),S=[b].concat(w).reduce(function(Ee,Ze){return Ee.concat(Ii(Ze)===l3?LX(t,{placement:Ze,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):Ze)},[]),T=t.rects.reference,$=t.rects.popper,A=new Map,P=!0,N=S[0],I=0;I<S.length;I++){var B=S[I],V=Ii(B),G=Ku(B)===Hu,ne=[Fo,Nr].indexOf(V)>=0,oe=ne?"width":"height",Z=Ip(t,{placement:B,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),q=ne?G?Lr:Do:G?Nr:Fo;T[oe]>$[oe]&&(q=Gm(q));var X=Gm(q),ee=[];if(i&&ee.push(Z[V]<=0),l&&ee.push(Z[q]<=0,Z[X]<=0),ee.every(function(Ee){return Ee})){N=B,P=!1;break}A.set(B,ee)}if(P)for(var F=h?3:1,be=function(Ee){var Ze=S.find(function(Fe){var J=A.get(Fe);if(J)return J.slice(0,Ee).every(function(ce){return ce})});if(Ze)return N=Ze,"break"},xe=F;xe>0;xe--){var U=be(xe);if(U==="break")break}t.placement!==N&&(t.modifiersData[o]._skip=!0,t.placement=N,t.reset=!0)}}var DX={name:"flip",enabled:!0,phase:"main",fn:FX,requiresIfExists:["offset"],data:{_skip:!1}};function TC(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function MC(e){return[Fo,Lr,Nr,Do].some(function(t){return e[t]>=0})}function BX(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,s=Ip(t,{elementContext:"reference"}),l=Ip(t,{altBoundary:!0}),a=TC(s,o),c=TC(l,r,i),u=MC(a),d=MC(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var zX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:BX};function VX(e,t,n){var o=Ii(e),r=[Do,Fo].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*r,[Do,Lr].indexOf(o)>=0?{x:l,y:s}:{x:s,y:l}}function jX(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,s=O1.reduce(function(u,d){return u[d]=VX(d,t.rects,i),u},{}),l=s[t.placement],a=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=s}var HX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jX};function UX(e){var t=e.state,n=e.name;t.modifiersData[n]=UT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var WT={name:"popperOffsets",enabled:!0,phase:"read",fn:UX,data:{}};function WX(e){return e==="x"?"y":"x"}function qX(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,l=s===void 0?!1:s,a=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,m=h===void 0?0:h,b=Ip(t,{boundary:a,rootBoundary:c,padding:d,altBoundary:u}),v=Ii(t.placement),E=Ku(t.placement),w=!E,S=u3(v),T=WX(S),$=t.modifiersData.popperOffsets,A=t.rects.reference,P=t.rects.popper,N=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,I=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if($){if(i){var G,ne=S==="y"?Fo:Do,oe=S==="y"?Nr:Lr,Z=S==="y"?"height":"width",q=$[S],X=q+b[ne],ee=q-b[oe],F=p?-P[Z]/2:0,be=E===Hu?A[Z]:P[Z],xe=E===Hu?-P[Z]:-A[Z],U=t.elements.arrow,Ee=p&&U?c3(U):{width:0,height:0},Ze=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:DT(),Fe=Ze[ne],J=Ze[oe],ce=zf(0,A[Z],Ee[Z]),he=w?A[Z]/2-F-ce-Fe-I.mainAxis:be-ce-Fe-I.mainAxis,se=w?-A[Z]/2+F+ce+J+I.mainAxis:xe+ce+J+I.mainAxis,Le=t.elements.arrow&&uh(t.elements.arrow),et=Le?S==="y"?Le.clientTop||0:Le.clientLeft||0:0,j=(G=B==null?void 0:B[S])!=null?G:0,W=q+he-j-et,re=q+se-j,pe=zf(p?$g(X,W):X,q,p?Fa(ee,re):ee);$[S]=pe,V[S]=pe-q}if(l){var fe,Ce=S==="x"?Fo:Do,Ie=S==="x"?Nr:Lr,ye=$[T],Se=T==="y"?"height":"width",_e=ye+b[Ce],De=ye-b[Ie],Ge=[Fo,Do].indexOf(v)!==-1,ie=(fe=B==null?void 0:B[T])!=null?fe:0,Y=Ge?_e:ye-A[Se]-P[Se]-ie+I.altAxis,ae=Ge?ye+A[Se]+P[Se]-ie-I.altAxis:De,Oe=p&&Ge?bX(Y,ye,ae):zf(p?Y:_e,ye,p?ae:De);$[T]=Oe,V[T]=Oe-ye}t.modifiersData[o]=V}}var KX={name:"preventOverflow",enabled:!0,phase:"main",fn:qX,requiresIfExists:["offset"]};function GX(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function YX(e){return e===di(e)||!Mr(e)?d3(e):GX(e)}function ZX(e){var t=e.getBoundingClientRect(),n=Wu(t.width)/e.offsetWidth||1,o=Wu(t.height)/e.offsetHeight||1;return n!==1||o!==1}function JX(e,t,n){n===void 0&&(n=!1);var o=Mr(t),r=Mr(t)&&ZX(t),i=zl(t),s=qu(e,r),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!n)&&((Fi(t)!=="body"||p3(i))&&(l=YX(t)),Mr(t)?(a=qu(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=f3(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function XX(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&r(a)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function QX(e){var t=XX(e);return hX.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function eQ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function tQ(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var AC={placement:"bottom",modifiers:[],strategy:"absolute"};function IC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function h3(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?AC:r;return function(s,l,a){a===void 0&&(a=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},AC,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},u=[],d=!1,f={state:c,setOptions:function(m){var b=typeof m=="function"?m(c.options):m;h(),c.options=Object.assign({},i,c.options,b),c.scrollParents={reference:Uu(s)?Vf(s):s.contextElement?Vf(s.contextElement):[],popper:Vf(l)};var v=QX(tQ([].concat(o,c.options.modifiers)));return c.orderedModifiers=v.filter(function(E){return E.enabled}),p(),f.update()},forceUpdate:function(){if(!d){var m=c.elements,b=m.reference,v=m.popper;if(IC(b,v)){c.rects={reference:JX(b,uh(v),c.options.strategy==="fixed"),popper:c3(v)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var E=0;E<c.orderedModifiers.length;E++){if(c.reset===!0){c.reset=!1,E=-1;continue}var w=c.orderedModifiers[E],S=w.fn,T=w.options,$=T===void 0?{}:T,A=w.name;typeof S=="function"&&(c=S({state:c,options:$,name:A,instance:f})||c)}}}},update:eQ(function(){return new Promise(function(m){f.forceUpdate(),m(c)})}),destroy:function(){h(),d=!0}};if(!IC(s,l))return f;f.setOptions(a).then(function(m){!d&&a.onFirstUpdate&&a.onFirstUpdate(m)});function p(){c.orderedModifiers.forEach(function(m){var b=m.name,v=m.options,E=v===void 0?{}:v,w=m.effect;if(typeof w=="function"){var S=w({state:c,name:b,instance:f,options:E}),T=function(){};u.push(S||T)}})}function h(){u.forEach(function(m){return m()}),u=[]}return f}}h3();var nQ=[jT,WT,VT,RT];h3({defaultModifiers:nQ});var oQ=[jT,WT,VT,RT,HX,DX,KX,xX,zX],rQ=h3({defaultModifiers:oQ});const iQ=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:a})=>{const c=sQ(a);Object.assign(s.value,c)},requires:["computeStyles"]},r=D(()=>{const{onFirstUpdate:a,placement:c,strategy:u,modifiers:d}=C(n);return{onFirstUpdate:a,placement:c||"bottom",strategy:u||"absolute",modifiers:[...d||[],o,{name:"applyStyles",enabled:!1}]}}),i=xn(),s=H({styles:{popper:{position:C(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return ke(r,a=>{const c=C(i);c&&c.setOptions(a)},{deep:!0}),ke([e,t],([a,c])=>{l(),!(!a||!c)&&(i.value=rQ(a,c,C(r)))}),yn(()=>{l()}),{state:D(()=>{var a;return{...((a=C(i))==null?void 0:a.state)||{}}}),styles:D(()=>C(s).styles),attributes:D(()=>C(s).attributes),update:()=>{var a;return(a=C(i))==null?void 0:a.update()},forceUpdate:()=>{var a;return(a=C(i))==null?void 0:a.forceUpdate()},instanceRef:D(()=>C(i))}};function sQ(e){const t=Object.keys(e.elements),n=Cg(t.map(r=>[r,e.styles[r]||{}])),o=Cg(t.map(r=>[r,e.attributes[r]]));return{styles:n,attributes:o}}const m3=e=>{if(!e)return{onClick:dt,onMousedown:dt,onMouseup:dt};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}},lQ=(e,t=0)=>{if(t===0)return e;const n=H(!1);let o=0;const r=()=>{o&&clearTimeout(o),o=window.setTimeout(()=>{n.value=e.value},t)};return mt(r),ke(()=>e.value,i=>{i?r():n.value=i}),n};function OC(){let e;const t=(o,r)=>{n(),e=window.setTimeout(o,r)},n=()=>window.clearTimeout(e);return eh(()=>n()),{registerTimeout:t,cancelTimeout:n}}const PC={prefix:Math.floor(Math.random()*1e4),current:0},aQ=Symbol("elIdInjection"),qT=()=>nt()?Ne(aQ,PC):PC,Rr=e=>{const t=qT(),n=s3();return D(()=>C(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Bc=[];const NC=e=>{const t=e;t.key===ht.esc&&Bc.forEach(n=>n(t))},cQ=e=>{mt(()=>{Bc.length===0&&document.addEventListener("keydown",NC),kt&&Bc.push(e)}),yn(()=>{Bc=Bc.filter(t=>t!==e),Bc.length===0&&kt&&document.removeEventListener("keydown",NC)})};let LC;const KT=()=>{const e=s3(),t=qT(),n=D(()=>`${e.value}-popper-container-${t.prefix}`),o=D(()=>`#${n.value}`);return{id:n,selector:o}},uQ=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},dQ=()=>{const{id:e,selector:t}=KT();return ld(()=>{kt&&!LC&&!document.body.querySelector(t.value)&&(LC=uQ(e.value))}),{id:e,selector:t}},fQ=Ke({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),pQ=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:r})=>{const{registerTimeout:i}=OC(),{registerTimeout:s,cancelTimeout:l}=OC();return{onOpen:u=>{i(()=>{o(u);const d=C(n);$t(d)&&d>0&&s(()=>{r(u)},d)},C(e))},onClose:u=>{l(),i(()=>{r(u)},C(t))}}},GT=Symbol("elForwardRef"),hQ=e=>{wt(GT,{setForwardRef:n=>{e.value=n}})},mQ=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),RC={current:0},FC=H(0),YT=2e3,DC=Symbol("elZIndexContextKey"),ZT=Symbol("zIndexContextKey"),N1=e=>{const t=nt()?Ne(DC,RC):RC,n=e||(nt()?Ne(ZT,void 0):void 0),o=D(()=>{const s=C(n);return $t(s)?s:YT}),r=D(()=>o.value+FC.value),i=()=>(t.current++,FC.value=t.current,r.value);return!kt&&Ne(DC),{initialZIndex:o,currentZIndex:r,nextZIndex:i}},BC=Math.min,jf=Math.max,Eg=Math.round,Ol=e=>({x:e,y:e}),_Q={left:"right",right:"left",bottom:"top",top:"bottom"},gQ={start:"end",end:"start"};function _3(e,t){return typeof e=="function"?e(t):e}function Gu(e){return e.split("-")[0]}function L1(e){return e.split("-")[1]}function vQ(e){return e==="x"?"y":"x"}function JT(e){return e==="y"?"height":"width"}function g3(e){return["top","bottom"].includes(Gu(e))?"y":"x"}function XT(e){return vQ(g3(e))}function bQ(e,t,n){n===void 0&&(n=!1);const o=L1(e),r=XT(e),i=JT(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Tg(s)),[s,Tg(s)]}function yQ(e){const t=Tg(e);return[Jb(e),t,Jb(t)]}function Jb(e){return e.replace(/start|end/g,t=>gQ[t])}function wQ(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function kQ(e,t,n,o){const r=L1(e);let i=wQ(Gu(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Jb)))),i}function Tg(e){return e.replace(/left|right|bottom|top/g,t=>_Q[t])}function xQ(e){return{top:0,right:0,bottom:0,left:0,...e}}function CQ(e){return typeof e!="number"?xQ(e):{top:e,right:e,bottom:e,left:e}}function Mg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zC(e,t,n){let{reference:o,floating:r}=e;const i=g3(t),s=XT(t),l=JT(s),a=Gu(t),c=i==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[l]/2-r[l]/2;let p;switch(a){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(L1(t)){case"start":p[s]-=f*(n&&c?-1:1);break;case"end":p[s]+=f*(n&&c?-1:1);break}return p}const SQ=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=zC(c,o,a),f=o,p={},h=0;for(let m=0;m<l.length;m++){const{name:b,fn:v}=l[m],{x:E,y:w,data:S,reset:T}=await v({x:u,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=E??u,d=w??d,p={...p,[b]:{...p[b],...S}},T&&h<=50&&(h++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(c=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):T.rects),{x:u,y:d}=zC(c,f,a)),m=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:p}};async function $Q(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=_3(t,e),h=CQ(p),b=l[f?d==="floating"?"reference":"floating":d],v=Mg(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),E=d==="floating"?{...s.floating,x:o,y:r}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},T=Mg(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:w,strategy:a}):E);return{top:(v.top-T.top+h.top)/S.y,bottom:(T.bottom-v.bottom+h.bottom)/S.y,left:(v.left-T.left+h.left)/S.x,right:(T.right-v.right+h.right)/S.x}}const EQ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...b}=_3(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Gu(r),E=Gu(l)===l,w=await(a.isRTL==null?void 0:a.isRTL(c.floating)),S=f||(E||!m?[Tg(l)]:yQ(l));!f&&h!=="none"&&S.push(...kQ(l,m,h,w));const T=[l,...S],$=await $Q(t,b),A=[];let P=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&A.push($[v]),d){const V=bQ(r,s,w);A.push($[V[0]],$[V[1]])}if(P=[...P,{placement:r,overflows:A}],!A.every(V=>V<=0)){var N,I;const V=(((N=i.flip)==null?void 0:N.index)||0)+1,G=T[V];if(G)return{data:{index:V,overflows:P},reset:{placement:G}};let ne=(I=P.filter(oe=>oe.overflows[0]<=0).sort((oe,Z)=>oe.overflows[1]-Z.overflows[1])[0])==null?void 0:I.placement;if(!ne)switch(p){case"bestFit":{var B;const oe=(B=P.map(Z=>[Z.placement,Z.overflows.filter(q=>q>0).reduce((q,X)=>q+X,0)]).sort((Z,q)=>Z[1]-q[1])[0])==null?void 0:B[0];oe&&(ne=oe);break}case"initialPlacement":ne=l;break}if(r!==ne)return{reset:{placement:ne}}}return{}}}};async function TQ(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Gu(n),l=L1(n),a=g3(n)==="y",c=["left","top"].includes(s)?-1:1,u=i&&a?-1:1,d=_3(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),a?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const Xb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:l}=t,a=await TQ(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:s}}}}};function Pl(e){return QT(e)?(e.nodeName||"").toLowerCase():"#document"}function lr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vl(e){var t;return(t=(QT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function QT(e){return e instanceof Node||e instanceof lr(e).Node}function Cs(e){return e instanceof Element||e instanceof lr(e).Element}function Di(e){return e instanceof HTMLElement||e instanceof lr(e).HTMLElement}function VC(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof lr(e).ShadowRoot}function dh(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Fr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function MQ(e){return["table","td","th"].includes(Pl(e))}function v3(e){const t=b3(),n=Fr(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function AQ(e){let t=Yu(e);for(;Di(t)&&!R1(t);){if(v3(t))return t;t=Yu(t)}return null}function b3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function R1(e){return["html","body","#document"].includes(Pl(e))}function Fr(e){return lr(e).getComputedStyle(e)}function F1(e){return Cs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Yu(e){if(Pl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||VC(e)&&e.host||Vl(e);return VC(t)?t.host:t}function eM(e){const t=Yu(e);return R1(t)?e.ownerDocument?e.ownerDocument.body:e.body:Di(t)&&dh(t)?t:eM(t)}function Qb(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=eM(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=lr(r);return i?t.concat(s,s.visualViewport||[],dh(r)?r:[],s.frameElement&&n?Qb(s.frameElement):[]):t.concat(r,Qb(r,[],n))}function tM(e){const t=Fr(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Di(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,l=Eg(n)!==i||Eg(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function nM(e){return Cs(e)?e:e.contextElement}function mu(e){const t=nM(e);if(!Di(t))return Ol(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=tM(t);let s=(i?Eg(n.width):n.width)/o,l=(i?Eg(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const IQ=Ol(0);function oM(e){const t=lr(e);return!b3()||!t.visualViewport?IQ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function OQ(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==lr(e)?!1:t}function Op(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=nM(e);let s=Ol(1);t&&(o?Cs(o)&&(s=mu(o)):s=mu(e));const l=OQ(i,n,o)?oM(i):Ol(0);let a=(r.left+l.x)/s.x,c=(r.top+l.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const f=lr(i),p=o&&Cs(o)?lr(o):o;let h=f,m=h.frameElement;for(;m&&o&&p!==h;){const b=mu(m),v=m.getBoundingClientRect(),E=Fr(m),w=v.left+(m.clientLeft+parseFloat(E.paddingLeft))*b.x,S=v.top+(m.clientTop+parseFloat(E.paddingTop))*b.y;a*=b.x,c*=b.y,u*=b.x,d*=b.y,a+=w,c+=S,h=lr(m),m=h.frameElement}}return Mg({width:u,height:d,x:a,y:c})}const PQ=[":popover-open",":modal"];function rM(e){return PQ.some(t=>{try{return e.matches(t)}catch{return!1}})}function NQ(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Vl(o),l=t?rM(t.floating):!1;if(o===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},c=Ol(1);const u=Ol(0),d=Di(o);if((d||!d&&!i)&&((Pl(o)!=="body"||dh(s))&&(a=F1(o)),Di(o))){const f=Op(o);c=mu(o),u.x=f.x+o.clientLeft,u.y=f.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x,y:n.y*c.y-a.scrollTop*c.y+u.y}}function LQ(e){return Array.from(e.getClientRects())}function iM(e){return Op(Vl(e)).left+F1(e).scrollLeft}function RQ(e){const t=Vl(e),n=F1(e),o=e.ownerDocument.body,r=jf(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=jf(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+iM(e);const l=-n.scrollTop;return Fr(o).direction==="rtl"&&(s+=jf(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function FQ(e,t){const n=lr(e),o=Vl(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,a=0;if(r){i=r.width,s=r.height;const c=b3();(!c||c&&t==="fixed")&&(l=r.offsetLeft,a=r.offsetTop)}return{width:i,height:s,x:l,y:a}}function DQ(e,t){const n=Op(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Di(e)?mu(e):Ol(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=r*i.x,c=o*i.y;return{width:s,height:l,x:a,y:c}}function jC(e,t,n){let o;if(t==="viewport")o=FQ(e,n);else if(t==="document")o=RQ(Vl(e));else if(Cs(t))o=DQ(t,n);else{const r=oM(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Mg(o)}function sM(e,t){const n=Yu(e);return n===t||!Cs(n)||R1(n)?!1:Fr(n).position==="fixed"||sM(n,t)}function BQ(e,t){const n=t.get(e);if(n)return n;let o=Qb(e,[],!1).filter(l=>Cs(l)&&Pl(l)!=="body"),r=null;const i=Fr(e).position==="fixed";let s=i?Yu(e):e;for(;Cs(s)&&!R1(s);){const l=Fr(s),a=v3(s);!a&&l.position==="fixed"&&(r=null),(i?!a&&!r:!a&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||dh(s)&&!a&&sM(e,s))?o=o.filter(u=>u!==s):r=l,s=Yu(s)}return t.set(e,o),o}function zQ(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?BQ(t,this._c):[].concat(n),o],l=s[0],a=s.reduce((c,u)=>{const d=jC(t,u,r);return c.top=jf(d.top,c.top),c.right=BC(d.right,c.right),c.bottom=BC(d.bottom,c.bottom),c.left=jf(d.left,c.left),c},jC(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function VQ(e){const{width:t,height:n}=tM(e);return{width:t,height:n}}function jQ(e,t,n){const o=Di(t),r=Vl(t),i=n==="fixed",s=Op(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Ol(0);if(o||!o&&!i)if((Pl(t)!=="body"||dh(r))&&(l=F1(t)),o){const d=Op(t,!0,i,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else r&&(a.x=iM(r));const c=s.left+l.scrollLeft-a.x,u=s.top+l.scrollTop-a.y;return{x:c,y:u,width:s.width,height:s.height}}function HC(e,t){return!Di(e)||Fr(e).position==="fixed"?null:t?t(e):e.offsetParent}function lM(e,t){const n=lr(e);if(!Di(e)||rM(e))return n;let o=HC(e,t);for(;o&&MQ(o)&&Fr(o).position==="static";)o=HC(o,t);return o&&(Pl(o)==="html"||Pl(o)==="body"&&Fr(o).position==="static"&&!v3(o))?n:o||AQ(e)||n}const HQ=async function(e){const t=this.getOffsetParent||lM,n=this.getDimensions;return{reference:jQ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function UQ(e){return Fr(e).direction==="rtl"}const WQ={convertOffsetParentRelativeRectToViewportRelativeRect:NQ,getDocumentElement:Vl,getClippingRect:zQ,getOffsetParent:lM,getElementRects:HQ,getClientRects:LQ,getDimensions:VQ,getScale:mu,isElement:Cs,isRTL:UQ},ey=EQ,ty=(e,t,n)=>{const o=new Map,r={platform:WQ,...n},i={...r.platform,_c:o};return SQ(e,t,{...r,platform:i})};function qQ(e){const t=H();function n(){if(e.value==null)return;const{selectionStart:r,selectionEnd:i,value:s}=e.value;if(r==null||i==null)return;const l=s.slice(0,Math.max(0,r)),a=s.slice(Math.max(0,i));t.value={selectionStart:r,selectionEnd:i,value:s,beforeTxt:l,afterTxt:a}}function o(){if(e.value==null||t.value==null)return;const{value:r}=e.value,{beforeTxt:i,afterTxt:s,selectionStart:l}=t.value;if(i==null||s==null||l==null)return;let a=r.length;if(r.endsWith(s))a=r.length-s.length;else if(r.startsWith(i))a=i.length;else{const c=i[l-1],u=r.indexOf(c,l-1);u!==-1&&(a=u+1)}e.value.setSelectionRange(a,a)}return[n,o]}const KQ=(e,t,n)=>Km(e.subTree).filter(i=>{var s;return uo(i)&&((s=i.type)==null?void 0:s.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),GQ=(e,t)=>{const n={},o=xn([]);return{children:o,addChild:s=>{n[s.uid]=s,o.value=KQ(e,t,n)},removeChild:s=>{delete n[s],o.value=o.value.filter(l=>l.uid!==s)}}},Ms=I1({type:String,values:_c,required:!1}),aM=Symbol("size"),YQ=()=>{const e=Ne(aM,{});return D(()=>C(e.size)||"")};function y3(e,{afterFocus:t,beforeBlur:n,afterBlur:o}={}){const r=nt(),{emit:i}=r,s=xn(),l=H(!1),a=d=>{l.value||(l.value=!0,i("focus",d),t==null||t())},c=d=>{var f;Ue(n)&&n(d)||d.relatedTarget&&((f=s.value)!=null&&f.contains(d.relatedTarget))||(l.value=!1,i("blur",d),o==null||o())},u=()=>{var d;(d=e.value)==null||d.focus()};return ke(s,d=>{d&&d.setAttribute("tabindex","-1")}),Tn(s,"click",u),{wrapperRef:s,isFocused:l,handleFocus:a,handleBlur:c}}const ZQ=["",void 0,null],JQ=void 0,XQ=Ke({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Ue(e)?!e():!e}}),QQ=(e,t)=>{const n=fh();n.value=n.value||{};const o=D(()=>e.emptyValues||n.value.emptyValues||ZQ),r=D(()=>Ue(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Ue(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:JQ),i=s=>o.value.includes(s);return o.value.includes(r.value),{emptyValues:o,valueOnClear:r,isEmptyValue:i}},cM=Symbol(),Ag=H();function fh(e,t=void 0){const n=nt()?Ne(cM,Ag):Ag;return e?D(()=>{var o,r;return(r=(o=n.value)==null?void 0:o[e])!=null?r:t}):n}function w3(e,t){const n=fh(),o=Ae(e,D(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||Bf})),r=Dn(D(()=>{var l;return(l=n.value)==null?void 0:l.locale})),i=N1(D(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||YT})),s=D(()=>{var l;return C(t)||((l=n.value)==null?void 0:l.size)||""});return eee(D(()=>C(n)||{})),{ns:o,locale:r,zIndex:i,size:s}}const eee=(e,t,n=!1)=>{var o;const r=!!nt(),i=r?fh():void 0,s=(o=t==null?void 0:t.provide)!=null?o:r?wt:void 0;if(!s)return;const l=D(()=>{const a=C(e);return i!=null&&i.value?tee(i.value,a):a});return s(cM,l),s(AT,D(()=>l.value.locale)),s(IT,D(()=>l.value.namespace)),s(ZT,D(()=>l.value.zIndex)),s(aM,{size:D(()=>l.value.size||"")}),(n||!Ag.value)&&(Ag.value=l.value),l},tee=(e,t)=>{const n=[...new Set([...Kb(e),...Kb(t)])],o={};for(const r of n)o[r]=t[r]!==void 0?t[r]:e[r];return o};var Re=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const nee=Ke({size:{type:we([Number,String])},color:{type:String}}),oee=K({name:"ElIcon",inheritAttrs:!1}),ree=K({...oee,props:nee,setup(e){const t=e,n=Ae("icon"),o=D(()=>{const{size:r,color:i}=t;return!r&&!i?{}:{fontSize:ks(r)?void 0:fo(r),"--color":i}});return(r,i)=>(_(),k("i",hn({class:C(n).b(),style:C(o)},r.$attrs),[le(r.$slots,"default")],16))}});var iee=Re(ree,[["__file","icon.vue"]]);const ge=Vt(iee),dd=Symbol("formContextKey"),nc=Symbol("formItemContextKey"),cr=(e,t={})=>{const n=H(void 0),o=t.prop?n:NT("size"),r=t.global?n:YQ(),i=t.form?{size:void 0}:Ne(dd,void 0),s=t.formItem?{size:void 0}:Ne(nc,void 0);return D(()=>o.value||C(e)||(s==null?void 0:s.size)||(i==null?void 0:i.size)||r.value||"")},fi=e=>{const t=NT("disabled"),n=Ne(dd,void 0);return D(()=>t.value||C(e)||(n==null?void 0:n.disabled)||!1)},As=()=>{const e=Ne(dd,void 0),t=Ne(nc,void 0);return{form:e,formItem:t}},gc=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=H(!1)),o||(o=H(!1));const r=H();let i;const s=D(()=>{var l;return!!(!e.label&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return mt(()=>{i=ke([Nn(e,"id"),n],([l,a])=>{const c=l??(a?void 0:Rr().value);c!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(o!=null&&o.value)&&!a&&c&&t.addInputId(c)),r.value=c)},{immediate:!0})}),Hi(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:s,inputId:r}},see=Ke({size:{type:String,values:_c},disabled:Boolean}),lee=Ke({...see,model:Object,rules:{type:we(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),aee={validate:(e,t,n)=>($e(e)||je(e))&&ao(t)&&je(n)};function cee(){const e=H([]),t=D(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const s=e.value.indexOf(i);return s===-1&&t.value,s}function o(i,s){if(i&&s){const l=n(s);e.value.splice(l,1,i)}else i&&e.value.push(i)}function r(i){const s=n(i);s>-1&&e.value.splice(s,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:r}}const cm=(e,t)=>{const n=wg(t);return n.length>0?e.filter(o=>o.prop&&n.includes(o.prop)):e},uee="ElForm",dee=K({name:uee}),fee=K({...dee,props:lee,emits:aee,setup(e,{expose:t,emit:n}){const o=e,r=[],i=cr(),s=Ae("form"),l=D(()=>{const{labelPosition:w,inline:S}=o;return[s.b(),s.m(i.value||"default"),{[s.m(`label-${w}`)]:w,[s.m("inline")]:S}]}),a=w=>r.find(S=>S.prop===w),c=w=>{r.push(w)},u=w=>{w.prop&&r.splice(r.indexOf(w),1)},d=(w=[])=>{o.model&&cm(r,w).forEach(S=>S.resetField())},f=(w=[])=>{cm(r,w).forEach(S=>S.clearValidate())},p=D(()=>!!o.model),h=w=>{if(r.length===0)return[];const S=cm(r,w);return S.length?S:[]},m=async w=>v(void 0,w),b=async(w=[])=>{if(!p.value)return!1;const S=h(w);if(S.length===0)return!0;let T={};for(const $ of S)try{await $.validate("")}catch(A){T={...T,...A}}return Object.keys(T).length===0?!0:Promise.reject(T)},v=async(w=[],S)=>{const T=!Ue(S);try{const $=await b(w);return $===!0&&(S==null||S($)),$}catch($){if($ instanceof Error)throw $;const A=$;return o.scrollToError&&E(Object.keys(A)[0]),S==null||S(!1,A),T&&Promise.reject(A)}},E=w=>{var S;const T=cm(r,w)[0];T&&((S=T.$el)==null||S.scrollIntoView(o.scrollIntoViewOptions))};return ke(()=>o.rules,()=>{o.validateOnRuleChange&&m().catch(w=>void 0)},{deep:!0}),wt(dd,jn({...ji(o),emit:n,resetFields:d,clearValidate:f,validateField:v,getField:a,addField:c,removeField:u,...cee()})),t({validate:m,validateField:v,resetFields:d,clearValidate:f,scrollToField:E}),(w,S)=>(_(),k("form",{class:R(C(l))},[le(w.$slots,"default")],2))}});var pee=Re(fee,[["__file","form.vue"]]);function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xa.apply(this,arguments)}function hee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pp(e,t)}function ny(e){return ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ny(e)}function Pp(e,t){return Pp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},Pp(e,t)}function mee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ym(e,t,n){return mee()?Ym=Reflect.construct.bind():Ym=function(r,i,s){var l=[null];l.push.apply(l,i);var a=Function.bind.apply(r,l),c=new a;return s&&Pp(c,s.prototype),c},Ym.apply(null,arguments)}function _ee(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function oy(e){var t=typeof Map=="function"?new Map:void 0;return oy=function(o){if(o===null||!_ee(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,r)}function r(){return Ym(o,arguments,ny(this).constructor)}return r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Pp(r,o)},oy(e)}var gee=/%[sdj%]/g,vee=function(){};typeof process<"u"&&process.env;function ry(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function nr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(gee,function(l){if(l==="%%")return"%";if(r>=i)return l;switch(l){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return l}});return s}return e}function bee(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||bee(t)&&typeof e=="string"&&!e)}function yee(e,t,n){var o=[],r=0,i=e.length;function s(l){o.push.apply(o,l||[]),r++,r===i&&n(o)}e.forEach(function(l){t(l,s)})}function UC(e,t,n){var o=0,r=e.length;function i(s){if(s&&s.length){n(s);return}var l=o;o=o+1,l<r?t(e[l],i):n([])}i([])}function wee(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var WC=function(e){hee(t,e);function t(n,o){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=n,r.fields=o,r}return t}(oy(Error));function kee(e,t,n,o,r){if(t.first){var i=new Promise(function(f,p){var h=function(v){return o(v),v.length?p(new WC(v,ry(v))):f(r)},m=wee(e);UC(m,n,h)});return i.catch(function(f){return f}),i}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),a=l.length,c=0,u=[],d=new Promise(function(f,p){var h=function(b){if(u.push.apply(u,b),c++,c===a)return o(u),u.length?p(new WC(u,ry(u))):f(r)};l.length||(o(u),f(r)),l.forEach(function(m){var b=e[m];s.indexOf(m)!==-1?UC(b,n,h):yee(b,n,h)})});return d.catch(function(f){return f}),d}function xee(e){return!!(e&&e.message!==void 0)}function Cee(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function qC(e,t){return function(n){var o;return e.fullFields?o=Cee(t,e.fullFields):o=t[n.field||e.fullField],xee(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||e.fullField}}}function KC(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];typeof o=="object"&&typeof e[n]=="object"?e[n]=xa({},e[n],o):e[n]=o}}return e}var uM=function(t,n,o,r,i,s){t.required&&(!o.hasOwnProperty(t.field)||Fn(n,s||t.type))&&r.push(nr(i.messages.required,t.fullField))},See=function(t,n,o,r,i){(/^\s+$/.test(n)||n==="")&&r.push(nr(i.messages.whitespace,t.fullField))},um,$ee=function(){if(um)return um;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=(`
40 (?:
41 (?:`+o+":){7}(?:"+o+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
42 (?:`+o+":){6}(?:"+n+"|:"+o+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
43 (?:`+o+":){5}(?::"+n+"|(?::"+o+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
44 (?:`+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
45 (?:`+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
46 (?:`+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
47 (?:`+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
48 (?::(?:(?::`+o+"){0,5}:"+n+"|(?::"+o+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
49 )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
50 `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),s=new RegExp("^"+n+"$"),l=new RegExp("^"+r+"$"),a=function(S){return S&&S.exact?i:new RegExp("(?:"+t(S)+n+t(S)+")|(?:"+t(S)+r+t(S)+")","g")};a.v4=function(w){return w&&w.exact?s:new RegExp(""+t(w)+n+t(w),"g")},a.v6=function(w){return w&&w.exact?l:new RegExp(""+t(w)+r+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=a.v4().source,f=a.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',E="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+f+"|"+p+h+m+")"+b+v;return um=new RegExp("(?:^"+E+"$)","i"),um},GC={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Gd={integer:function(t){return Gd.number(t)&&parseInt(t,10)===t},float:function(t){return Gd.number(t)&&!Gd.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Gd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(GC.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match($ee())},hex:function(t){return typeof t=="string"&&!!t.match(GC.hex)}},Eee=function(t,n,o,r,i){if(t.required&&n===void 0){uM(t,n,o,r,i);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;s.indexOf(l)>-1?Gd[l](n)||r.push(nr(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&r.push(nr(i.messages.types[l],t.fullField,t.type))},Tee=function(t,n,o,r,i){var s=typeof t.len=="number",l=typeof t.min=="number",a=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",p=typeof n=="string",h=Array.isArray(n);if(f?d="number":p?d="string":h&&(d="array"),!d)return!1;h&&(u=n.length),p&&(u=n.replace(c,"_").length),s?u!==t.len&&r.push(nr(i.messages[d].len,t.fullField,t.len)):l&&!a&&u<t.min?r.push(nr(i.messages[d].min,t.fullField,t.min)):a&&!l&&u>t.max?r.push(nr(i.messages[d].max,t.fullField,t.max)):l&&a&&(u<t.min||u>t.max)&&r.push(nr(i.messages[d].range,t.fullField,t.min,t.max))},$c="enum",Mee=function(t,n,o,r,i){t[$c]=Array.isArray(t[$c])?t[$c]:[],t[$c].indexOf(n)===-1&&r.push(nr(i.messages[$c],t.fullField,t[$c].join(", ")))},Aee=function(t,n,o,r,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(nr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||r.push(nr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},At={required:uM,whitespace:See,type:Eee,range:Tee,enum:Mee,pattern:Aee},Iee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return o();At.required(t,n,r,s,i,"string"),Fn(n,"string")||(At.type(t,n,r,s,i),At.range(t,n,r,s,i),At.pattern(t,n,r,s,i),t.whitespace===!0&&At.whitespace(t,n,r,s,i))}o(s)},Oee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return o();At.required(t,n,r,s,i),n!==void 0&&At.type(t,n,r,s,i)}o(s)},Pee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Fn(n)&&!t.required)return o();At.required(t,n,r,s,i),n!==void 0&&(At.type(t,n,r,s,i),At.range(t,n,r,s,i))}o(s)},Nee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return o();At.required(t,n,r,s,i),n!==void 0&&At.type(t,n,r,s,i)}o(s)},Lee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return o();At.required(t,n,r,s,i),Fn(n)||At.type(t,n,r,s,i)}o(s)},Ree=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return o();At.required(t,n,r,s,i),n!==void 0&&(At.type(t,n,r,s,i),At.range(t,n,r,s,i))}o(s)},Fee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return o();At.required(t,n,r,s,i),n!==void 0&&(At.type(t,n,r,s,i),At.range(t,n,r,s,i))}o(s)},Dee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return o();At.required(t,n,r,s,i,"array"),n!=null&&(At.type(t,n,r,s,i),At.range(t,n,r,s,i))}o(s)},Bee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return o();At.required(t,n,r,s,i),n!==void 0&&At.type(t,n,r,s,i)}o(s)},zee="enum",Vee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return o();At.required(t,n,r,s,i),n!==void 0&&At[zee](t,n,r,s,i)}o(s)},jee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return o();At.required(t,n,r,s,i),Fn(n,"string")||At.pattern(t,n,r,s,i)}o(s)},Hee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Fn(n,"date")&&!t.required)return o();if(At.required(t,n,r,s,i),!Fn(n,"date")){var a;n instanceof Date?a=n:a=new Date(n),At.type(t,a,r,s,i),a&&At.range(t,a.getTime(),r,s,i)}}o(s)},Uee=function(t,n,o,r,i){var s=[],l=Array.isArray(n)?"array":typeof n;At.required(t,n,r,s,i,l),o(s)},X0=function(t,n,o,r,i){var s=t.type,l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Fn(n,s)&&!t.required)return o();At.required(t,n,r,l,i,s),Fn(n,s)||At.type(t,n,r,l,i)}o(l)},Wee=function(t,n,o,r,i){var s=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return o();At.required(t,n,r,s,i)}o(s)},Hf={string:Iee,method:Oee,number:Pee,boolean:Nee,regexp:Lee,integer:Ree,float:Fee,array:Dee,object:Bee,enum:Vee,pattern:jee,date:Hee,url:X0,hex:X0,email:X0,required:Uee,any:Wee};function iy(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var sy=iy(),ph=function(){function e(n){this.rules=null,this._messages=sy,this.define(n)}var t=e.prototype;return t.define=function(o){var r=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var s=o[i];r.rules[i]=Array.isArray(s)?s:[s]})},t.messages=function(o){return o&&(this._messages=KC(iy(),o)),this._messages},t.validate=function(o,r,i){var s=this;r===void 0&&(r={}),i===void 0&&(i=function(){});var l=o,a=r,c=i;if(typeof a=="function"&&(c=a,a={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function u(m){var b=[],v={};function E(S){if(Array.isArray(S)){var T;b=(T=b).concat.apply(T,S)}else b.push(S)}for(var w=0;w<m.length;w++)E(m[w]);b.length?(v=ry(b),c(b,v)):c(null,l)}if(a.messages){var d=this.messages();d===sy&&(d=iy()),KC(d,a.messages),a.messages=d}else a.messages=this.messages();var f={},p=a.keys||Object.keys(this.rules);p.forEach(function(m){var b=s.rules[m],v=l[m];b.forEach(function(E){var w=E;typeof w.transform=="function"&&(l===o&&(l=xa({},l)),v=l[m]=w.transform(v)),typeof w=="function"?w={validator:w}:w=xa({},w),w.validator=s.getValidationMethod(w),w.validator&&(w.field=m,w.fullField=w.fullField||m,w.type=s.getType(w),f[m]=f[m]||[],f[m].push({rule:w,value:v,source:l,field:m}))})});var h={};return kee(f,a,function(m,b){var v=m.rule,E=(v.type==="object"||v.type==="array")&&(typeof v.fields=="object"||typeof v.defaultField=="object");E=E&&(v.required||!v.required&&m.value),v.field=m.field;function w($,A){return xa({},A,{fullField:v.fullField+"."+$,fullFields:v.fullFields?[].concat(v.fullFields,[$]):[$]})}function S($){$===void 0&&($=[]);var A=Array.isArray($)?$:[$];!a.suppressWarning&&A.length&&e.warning("async-validator:",A),A.length&&v.message!==void 0&&(A=[].concat(v.message));var P=A.map(qC(v,l));if(a.first&&P.length)return h[v.field]=1,b(P);if(!E)b(P);else{if(v.required&&!m.value)return v.message!==void 0?P=[].concat(v.message).map(qC(v,l)):a.error&&(P=[a.error(v,nr(a.messages.required,v.field))]),b(P);var N={};v.defaultField&&Object.keys(m.value).map(function(V){N[V]=v.defaultField}),N=xa({},N,m.rule.fields);var I={};Object.keys(N).forEach(function(V){var G=N[V],ne=Array.isArray(G)?G:[G];I[V]=ne.map(w.bind(null,V))});var B=new e(I);B.messages(a.messages),m.rule.options&&(m.rule.options.messages=a.messages,m.rule.options.error=a.error),B.validate(m.value,m.rule.options||a,function(V){var G=[];P&&P.length&&G.push.apply(G,P),V&&V.length&&G.push.apply(G,V),b(G.length?G:null)})}}var T;if(v.asyncValidator)T=v.asyncValidator(v,m.value,S,m.source,a);else if(v.validator){try{T=v.validator(v,m.value,S,m.source,a)}catch($){console.error==null||console.error($),a.suppressValidatorError||setTimeout(function(){throw $},0),S($.message)}T===!0?S():T===!1?S(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||(v.fullField||v.field)+" fails"):T instanceof Array?S(T):T instanceof Error&&S(T.message)}T&&T.then&&T.then(function(){return S()},function($){return S($)})},function(m){u(m)},l)},t.getType=function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!Hf.hasOwnProperty(o.type))throw new Error(nr("Unknown rule type %s",o.type));return o.type||"string"},t.getValidationMethod=function(o){if(typeof o.validator=="function")return o.validator;var r=Object.keys(o),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Hf.required:Hf[this.getType(o)]||void 0},e}();ph.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Hf[t]=n};ph.warning=vee;ph.messages=sy;ph.validators=Hf;const qee=["","error","validating","success"],Kee=Ke({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:we([String,Array])},required:{type:Boolean,default:void 0},rules:{type:we([Object,Array])},error:String,validateStatus:{type:String,values:qee},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:_c}}),YC="ElLabelWrap";var Gee=K({name:YC,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Ne(dd,void 0),o=Ne(nc);o||ui(YC,"usage: <el-form-item><label-wrap /></el-form-item>");const r=Ae("form"),i=H(),s=H(0),l=()=>{var u;if((u=i.value)!=null&&u.firstElementChild){const d=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},a=(u="update")=>{tt(()=>{t.default&&e.isAutoWidth&&(u==="update"?s.value=l():u==="remove"&&(n==null||n.deregisterLabelWidth(s.value)))})},c=()=>a("update");return mt(()=>{c()}),yn(()=>{a("remove")}),Bl(()=>c()),ke(s,(u,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(u,d))}),Oo(D(()=>{var u,d;return(d=(u=i.value)==null?void 0:u.firstElementChild)!=null?d:null}),c),()=>{var u,d;if(!t)return null;const{isAutoWidth:f}=e;if(f){const p=n==null?void 0:n.autoLabelWidth,h=o==null?void 0:o.hasLabel,m={};if(h&&p&&p!=="auto"){const b=Math.max(0,Number.parseInt(p,10)-s.value),v=n.labelPosition==="left"?"marginRight":"marginLeft";b&&(m[v]=`${b}px`)}return y("div",{ref:i,class:[r.be("item","label-wrap")],style:m},[(u=t.default)==null?void 0:u.call(t)])}else return y(Q,{ref:i},[(d=t.default)==null?void 0:d.call(t)])}}});const Yee=["role","aria-labelledby"],Zee=K({name:"ElFormItem"}),Jee=K({...Zee,props:Kee,setup(e,{expose:t}){const n=e,o=Ui(),r=Ne(dd,void 0),i=Ne(nc,void 0),s=cr(void 0,{formItem:!1}),l=Ae("form-item"),a=Rr().value,c=H([]),u=H(""),d=gH(u,100),f=H(""),p=H();let h,m=!1;const b=D(()=>{if((r==null?void 0:r.labelPosition)==="top")return{};const J=fo(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return J?{width:J}:{}}),v=D(()=>{if((r==null?void 0:r.labelPosition)==="top"||r!=null&&r.inline)return{};if(!n.label&&!n.labelWidth&&N)return{};const J=fo(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return!n.label&&!o.label?{marginLeft:J}:{}}),E=D(()=>[l.b(),l.m(s.value),l.is("error",u.value==="error"),l.is("validating",u.value==="validating"),l.is("success",u.value==="success"),l.is("required",ne.value||n.required),l.is("no-asterisk",r==null?void 0:r.hideRequiredAsterisk),(r==null?void 0:r.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:r==null?void 0:r.statusIcon}]),w=D(()=>ao(n.inlineMessage)?n.inlineMessage:(r==null?void 0:r.inlineMessage)||!1),S=D(()=>[l.e("error"),{[l.em("error","inline")]:w.value}]),T=D(()=>n.prop?je(n.prop)?n.prop:n.prop.join("."):""),$=D(()=>!!(n.label||o.label)),A=D(()=>n.for||(c.value.length===1?c.value[0]:void 0)),P=D(()=>!A.value&&$.value),N=!!i,I=D(()=>{const J=r==null?void 0:r.model;if(!(!J||!n.prop))return Wm(J,n.prop).value}),B=D(()=>{const{required:J}=n,ce=[];n.rules&&ce.push(...wg(n.rules));const he=r==null?void 0:r.rules;if(he&&n.prop){const se=Wm(he,n.prop).value;se&&ce.push(...wg(se))}if(J!==void 0){const se=ce.map((Le,et)=>[Le,et]).filter(([Le])=>Object.keys(Le).includes("required"));if(se.length>0)for(const[Le,et]of se)Le.required!==J&&(ce[et]={...Le,required:J});else ce.push({required:J})}return ce}),V=D(()=>B.value.length>0),G=J=>B.value.filter(he=>!he.trigger||!J?!0:Array.isArray(he.trigger)?he.trigger.includes(J):he.trigger===J).map(({trigger:he,...se})=>se),ne=D(()=>B.value.some(J=>J.required)),oe=D(()=>{var J;return d.value==="error"&&n.showMessage&&((J=r==null?void 0:r.showMessage)!=null?J:!0)}),Z=D(()=>`${n.label||""}${(r==null?void 0:r.labelSuffix)||""}`),q=J=>{u.value=J},X=J=>{var ce,he;const{errors:se,fields:Le}=J;(!se||!Le)&&console.error(J),q("error"),f.value=se?(he=(ce=se==null?void 0:se[0])==null?void 0:ce.message)!=null?he:`${n.prop} is required`:"",r==null||r.emit("validate",n.prop,!1,f.value)},ee=()=>{q("success"),r==null||r.emit("validate",n.prop,!0,"")},F=async J=>{const ce=T.value;return new ph({[ce]:J}).validate({[ce]:I.value},{firstFields:!0}).then(()=>(ee(),!0)).catch(se=>(X(se),Promise.reject(se)))},be=async(J,ce)=>{if(m||!n.prop)return!1;const he=Ue(ce);if(!V.value)return ce==null||ce(!1),!1;const se=G(J);return se.length===0?(ce==null||ce(!0),!0):(q("validating"),F(se).then(()=>(ce==null||ce(!0),!0)).catch(Le=>{const{fields:et}=Le;return ce==null||ce(!1,et),he?!1:Promise.reject(et)}))},xe=()=>{q(""),f.value="",m=!1},U=async()=>{const J=r==null?void 0:r.model;if(!J||!n.prop)return;const ce=Wm(J,n.prop);m=!0,ce.value=gC(h),await tt(),xe(),m=!1},Ee=J=>{c.value.includes(J)||c.value.push(J)},Ze=J=>{c.value=c.value.filter(ce=>ce!==J)};ke(()=>n.error,J=>{f.value=J||"",q(J?"error":"")},{immediate:!0}),ke(()=>n.validateStatus,J=>q(J||""));const Fe=jn({...ji(n),$el:p,size:s,validateState:u,labelId:a,inputIds:c,isGroup:P,hasLabel:$,fieldValue:I,addInputId:Ee,removeInputId:Ze,resetField:U,clearValidate:xe,validate:be});return wt(nc,Fe),mt(()=>{n.prop&&(r==null||r.addField(Fe),h=gC(I.value))}),yn(()=>{r==null||r.removeField(Fe)}),t({size:s,validateMessage:f,validateState:u,validate:be,clearValidate:xe,resetField:U}),(J,ce)=>{var he;return _(),k("div",{ref_key:"formItemRef",ref:p,class:R(C(E)),role:C(P)?"group":void 0,"aria-labelledby":C(P)?C(a):void 0},[y(C(Gee),{"is-auto-width":C(b).width==="auto","update-all":((he=C(r))==null?void 0:he.labelWidth)==="auto"},{default:x(()=>[C($)?(_(),L(Et(C(A)?"label":"div"),{key:0,id:C(a),for:C(A),class:R(C(l).e("label")),style:Be(C(b))},{default:x(()=>[le(J.$slots,"label",{label:C(Z)},()=>[te(M(C(Z)),1)])]),_:3},8,["id","for","class","style"])):O("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),g("div",{class:R(C(l).e("content")),style:Be(C(v))},[le(J.$slots,"default"),y(_1,{name:`${C(l).namespace.value}-zoom-in-top`},{default:x(()=>[C(oe)?le(J.$slots,"error",{key:0,error:f.value},()=>[g("div",{class:R(C(S))},M(f.value),3)]):O("v-if",!0)]),_:3},8,["name"])],6)],10,Yee)}}});var dM=Re(Jee,[["__file","form-item.vue"]]);const Wi=Vt(pee,{FormItem:dM}),qi=Hn(dM);let jr;const Xee=`
51 height:0 !important;
52 visibility:hidden !important;
53 ${DH()?"":"overflow:hidden !important;"}
54 position:absolute !important;
55 z-index:-1000 !important;
56 top:0 !important;
57 right:0 !important;
58 `,Qee=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function ete(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Qee.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:o,borderSize:r,boxSizing:n}}function ZC(e,t=1,n){var o;jr||(jr=document.createElement("textarea"),document.body.appendChild(jr));const{paddingSize:r,borderSize:i,boxSizing:s,contextStyle:l}=ete(e);jr.setAttribute("style",`${l};${Xee}`),jr.value=e.value||e.placeholder||"";let a=jr.scrollHeight;const c={};s==="border-box"?a=a+i:s==="content-box"&&(a=a-r),jr.value="";const u=jr.scrollHeight-r;if($t(t)){let d=u*t;s==="border-box"&&(d=d+r+i),a=Math.max(d,a),c.minHeight=`${d}px`}if($t(n)){let d=u*n;s==="border-box"&&(d=d+r+i),a=Math.min(d,a)}return c.height=`${a}px`,(o=jr.parentNode)==null||o.removeChild(jr),jr=void 0,c}const tte=Ke({id:{type:String,default:void 0},size:Ms,disabled:Boolean,modelValue:{type:we([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:we([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Ln},prefixIcon:{type:Ln},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:we([Object,Array,String]),default:()=>bo({})},autofocus:{type:Boolean,default:!1}}),nte={[Kt]:e=>je(e),input:e=>je(e),change:e=>je(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},ote=["role"],rte=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],ite=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],ste=K({name:"ElInput",inheritAttrs:!1}),lte=K({...ste,props:tte,emits:nte,setup(e,{expose:t,emit:n}){const o=e,r=uw(),i=Ui(),s=D(()=>{const ie={};return o.containerRole==="combobox"&&(ie["aria-haspopup"]=r["aria-haspopup"],ie["aria-owns"]=r["aria-owns"],ie["aria-expanded"]=r["aria-expanded"]),ie}),l=D(()=>[o.type==="textarea"?b.b():m.b(),m.m(p.value),m.is("disabled",h.value),m.is("exceed",Ee.value),{[m.b("group")]:i.prepend||i.append,[m.bm("group","append")]:i.append,[m.bm("group","prepend")]:i.prepend,[m.m("prefix")]:i.prefix||o.prefixIcon,[m.m("suffix")]:i.suffix||o.suffixIcon||o.clearable||o.showPassword,[m.bm("suffix","password-clear")]:F.value&&be.value,[m.b("hidden")]:o.type==="hidden"},r.class]),a=D(()=>[m.e("wrapper"),m.is("focus",I.value)]),c=TT({excludeKeys:D(()=>Object.keys(s.value))}),{form:u,formItem:d}=As(),{inputId:f}=gc(o,{formItemContext:d}),p=cr(),h=fi(),m=Ae("input"),b=Ae("textarea"),v=xn(),E=xn(),w=H(!1),S=H(!1),T=H(!1),$=H(),A=xn(o.inputStyle),P=D(()=>v.value||E.value),{wrapperRef:N,isFocused:I,handleFocus:B,handleBlur:V}=y3(P,{afterBlur(){var ie;o.validateEvent&&((ie=d==null?void 0:d.validate)==null||ie.call(d,"blur").catch(Y=>void 0))}}),G=D(()=>{var ie;return(ie=u==null?void 0:u.statusIcon)!=null?ie:!1}),ne=D(()=>(d==null?void 0:d.validateState)||""),oe=D(()=>ne.value&&ST[ne.value]),Z=D(()=>T.value?wT:gT),q=D(()=>[r.style]),X=D(()=>[o.inputStyle,A.value,{resize:o.resize}]),ee=D(()=>Ai(o.modelValue)?"":String(o.modelValue)),F=D(()=>o.clearable&&!h.value&&!o.readonly&&!!ee.value&&(I.value||w.value)),be=D(()=>o.showPassword&&!h.value&&!o.readonly&&!!ee.value&&(!!ee.value||I.value)),xe=D(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!h.value&&!o.readonly&&!o.showPassword),U=D(()=>ee.value.length),Ee=D(()=>!!xe.value&&U.value>Number(o.maxlength)),Ze=D(()=>!!i.suffix||!!o.suffixIcon||F.value||o.showPassword||xe.value||!!ne.value&&G.value),[Fe,J]=qQ(v);Oo(E,ie=>{if(se(),!xe.value||o.resize!=="both")return;const Y=ie[0],{width:ae}=Y.contentRect;$.value={right:`calc(100% - ${ae+15+6}px)`}});const ce=()=>{const{type:ie,autosize:Y}=o;if(!(!kt||ie!=="textarea"||!E.value))if(Y){const ae=st(Y)?Y.minRows:void 0,Oe=st(Y)?Y.maxRows:void 0,We=ZC(E.value,ae,Oe);A.value={overflowY:"hidden",...We},tt(()=>{E.value.offsetHeight,A.value=We})}else A.value={minHeight:ZC(E.value).minHeight}},se=(ie=>{let Y=!1;return()=>{var ae;if(Y||!o.autosize)return;((ae=E.value)==null?void 0:ae.offsetParent)===null||(ie(),Y=!0)}})(ce),Le=()=>{const ie=P.value,Y=o.formatter?o.formatter(ee.value):ee.value;!ie||ie.value===Y||(ie.value=Y)},et=async ie=>{Fe();let{value:Y}=ie.target;if(o.formatter&&(Y=o.parser?o.parser(Y):Y),!S.value){if(Y===ee.value){Le();return}n(Kt,Y),n("input",Y),await tt(),Le(),J()}},j=ie=>{n("change",ie.target.value)},W=ie=>{n("compositionstart",ie),S.value=!0},re=ie=>{var Y;n("compositionupdate",ie);const ae=(Y=ie.target)==null?void 0:Y.value,Oe=ae[ae.length-1]||"";S.value=!ET(Oe)},pe=ie=>{n("compositionend",ie),S.value&&(S.value=!1,et(ie))},fe=()=>{T.value=!T.value,Ce()},Ce=async()=>{var ie;await tt(),(ie=P.value)==null||ie.focus()},Ie=()=>{var ie;return(ie=P.value)==null?void 0:ie.blur()},ye=ie=>{w.value=!1,n("mouseleave",ie)},Se=ie=>{w.value=!0,n("mouseenter",ie)},_e=ie=>{n("keydown",ie)},De=()=>{var ie;(ie=P.value)==null||ie.select()},Ge=()=>{n(Kt,""),n("change",""),n("clear"),n("input","")};return ke(()=>o.modelValue,()=>{var ie;tt(()=>ce()),o.validateEvent&&((ie=d==null?void 0:d.validate)==null||ie.call(d,"change").catch(Y=>void 0))}),ke(ee,()=>Le()),ke(()=>o.type,async()=>{await tt(),Le(),ce()}),mt(()=>{!o.formatter&&o.parser,Le(),tt(ce)}),t({input:v,textarea:E,ref:P,textareaStyle:X,autosize:Nn(o,"autosize"),focus:Ce,blur:Ie,select:De,clear:Ge,resizeTextarea:ce}),(ie,Y)=>(_(),k("div",hn(C(s),{class:C(l),style:C(q),role:ie.containerRole,onMouseenter:Se,onMouseleave:ye}),[O(" input "),ie.type!=="textarea"?(_(),k(Q,{key:0},[O(" prepend slot "),ie.$slots.prepend?(_(),k("div",{key:0,class:R(C(m).be("group","prepend"))},[le(ie.$slots,"prepend")],2)):O("v-if",!0),g("div",{ref_key:"wrapperRef",ref:N,class:R(C(a))},[O(" prefix slot "),ie.$slots.prefix||ie.prefixIcon?(_(),k("span",{key:0,class:R(C(m).e("prefix"))},[g("span",{class:R(C(m).e("prefix-inner"))},[le(ie.$slots,"prefix"),ie.prefixIcon?(_(),L(C(ge),{key:0,class:R(C(m).e("icon"))},{default:x(()=>[(_(),L(Et(ie.prefixIcon)))]),_:1},8,["class"])):O("v-if",!0)],2)],2)):O("v-if",!0),g("input",hn({id:C(f),ref_key:"input",ref:v,class:C(m).e("inner")},C(c),{minlength:ie.minlength,maxlength:ie.maxlength,type:ie.showPassword?T.value?"text":"password":ie.type,disabled:C(h),readonly:ie.readonly,autocomplete:ie.autocomplete,tabindex:ie.tabindex,"aria-label":ie.label,placeholder:ie.placeholder,style:ie.inputStyle,form:ie.form,autofocus:ie.autofocus,onCompositionstart:W,onCompositionupdate:re,onCompositionend:pe,onInput:et,onFocus:Y[0]||(Y[0]=(...ae)=>C(B)&&C(B)(...ae)),onBlur:Y[1]||(Y[1]=(...ae)=>C(V)&&C(V)(...ae)),onChange:j,onKeydown:_e}),null,16,rte),O(" suffix slot "),C(Ze)?(_(),k("span",{key:1,class:R(C(m).e("suffix"))},[g("span",{class:R(C(m).e("suffix-inner"))},[!C(F)||!C(be)||!C(xe)?(_(),k(Q,{key:0},[le(ie.$slots,"suffix"),ie.suffixIcon?(_(),L(C(ge),{key:0,class:R(C(m).e("icon"))},{default:x(()=>[(_(),L(Et(ie.suffixIcon)))]),_:1},8,["class"])):O("v-if",!0)],64)):O("v-if",!0),C(F)?(_(),L(C(ge),{key:1,class:R([C(m).e("icon"),C(m).e("clear")]),onMousedown:qe(C(dt),["prevent"]),onClick:Ge},{default:x(()=>[y(C(M1))]),_:1},8,["class","onMousedown"])):O("v-if",!0),C(be)?(_(),L(C(ge),{key:2,class:R([C(m).e("icon"),C(m).e("password")]),onClick:fe},{default:x(()=>[(_(),L(Et(C(Z))))]),_:1},8,["class"])):O("v-if",!0),C(xe)?(_(),k("span",{key:3,class:R(C(m).e("count"))},[g("span",{class:R(C(m).e("count-inner"))},M(C(U))+" / "+M(ie.maxlength),3)],2)):O("v-if",!0),C(ne)&&C(oe)&&C(G)?(_(),L(C(ge),{key:4,class:R([C(m).e("icon"),C(m).e("validateIcon"),C(m).is("loading",C(ne)==="validating")])},{default:x(()=>[(_(),L(Et(C(oe))))]),_:1},8,["class"])):O("v-if",!0)],2)],2)):O("v-if",!0)],2),O(" append slot "),ie.$slots.append?(_(),k("div",{key:1,class:R(C(m).be("group","append"))},[le(ie.$slots,"append")],2)):O("v-if",!0)],64)):(_(),k(Q,{key:1},[O(" textarea "),g("textarea",hn({id:C(f),ref_key:"textarea",ref:E,class:C(b).e("inner")},C(c),{minlength:ie.minlength,maxlength:ie.maxlength,tabindex:ie.tabindex,disabled:C(h),readonly:ie.readonly,autocomplete:ie.autocomplete,style:C(X),"aria-label":ie.label,placeholder:ie.placeholder,form:ie.form,autofocus:ie.autofocus,onCompositionstart:W,onCompositionupdate:re,onCompositionend:pe,onInput:et,onFocus:Y[2]||(Y[2]=(...ae)=>C(B)&&C(B)(...ae)),onBlur:Y[3]||(Y[3]=(...ae)=>C(V)&&C(V)(...ae)),onChange:j,onKeydown:_e}),null,16,ite),C(xe)?(_(),k("span",{key:0,style:Be($.value),class:R(C(m).e("count"))},M(C(U))+" / "+M(ie.maxlength),7)):O("v-if",!0)],64))],16,ote))}});var ate=Re(lte,[["__file","input.vue"]]);const An=Vt(ate),Ec=4,cte={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ute=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),k3=Symbol("scrollbarContextKey"),dte=Ke({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),fte="Thumb",pte=K({__name:"thumb",props:dte,setup(e){const t=e,n=Ne(k3),o=Ae("scrollbar");n||ui(fte,"can not inject scrollbar context");const r=H(),i=H(),s=H({}),l=H(!1);let a=!1,c=!1,u=kt?document.onselectstart:null;const d=D(()=>cte[t.vertical?"vertical":"horizontal"]),f=D(()=>ute({size:t.size,move:t.move,bar:d.value})),p=D(()=>r.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/i.value[d.value.offset]),h=$=>{var A;if($.stopPropagation(),$.ctrlKey||[1,2].includes($.button))return;(A=window.getSelection())==null||A.removeAllRanges(),b($);const P=$.currentTarget;P&&(s.value[d.value.axis]=P[d.value.offset]-($[d.value.client]-P.getBoundingClientRect()[d.value.direction]))},m=$=>{if(!i.value||!r.value||!n.wrapElement)return;const A=Math.abs($.target.getBoundingClientRect()[d.value.direction]-$[d.value.client]),P=i.value[d.value.offset]/2,N=(A-P)*100*p.value/r.value[d.value.offset];n.wrapElement[d.value.scroll]=N*n.wrapElement[d.value.scrollSize]/100},b=$=>{$.stopImmediatePropagation(),a=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",E),u=document.onselectstart,document.onselectstart=()=>!1},v=$=>{if(!r.value||!i.value||a===!1)return;const A=s.value[d.value.axis];if(!A)return;const P=(r.value.getBoundingClientRect()[d.value.direction]-$[d.value.client])*-1,N=i.value[d.value.offset]-A,I=(P-N)*100*p.value/r.value[d.value.offset];n.wrapElement[d.value.scroll]=I*n.wrapElement[d.value.scrollSize]/100},E=()=>{a=!1,s.value[d.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",E),T(),c&&(l.value=!1)},w=()=>{c=!1,l.value=!!t.size},S=()=>{c=!0,l.value=a};yn(()=>{T(),document.removeEventListener("mouseup",E)});const T=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return Tn(Nn(n,"scrollbarElement"),"mousemove",w),Tn(Nn(n,"scrollbarElement"),"mouseleave",S),($,A)=>(_(),L(dr,{name:C(o).b("fade"),persisted:""},{default:x(()=>[ze(g("div",{ref_key:"instance",ref:r,class:R([C(o).e("bar"),C(o).is(C(d).key)]),onMousedown:m},[g("div",{ref_key:"thumb",ref:i,class:R(C(o).e("thumb")),style:Be(C(f)),onMousedown:h},null,38)],34),[[sn,$.always||l.value]])]),_:1},8,["name"]))}});var JC=Re(pte,[["__file","thumb.vue"]]);const hte=Ke({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),mte=K({__name:"bar",props:hte,setup(e,{expose:t}){const n=e,o=Ne(k3),r=H(0),i=H(0),s=H(""),l=H(""),a=H(1),c=H(1);return t({handleScroll:f=>{if(f){const p=f.offsetHeight-Ec,h=f.offsetWidth-Ec;i.value=f.scrollTop*100/p*a.value,r.value=f.scrollLeft*100/h*c.value}},update:()=>{const f=o==null?void 0:o.wrapElement;if(!f)return;const p=f.offsetHeight-Ec,h=f.offsetWidth-Ec,m=p**2/f.scrollHeight,b=h**2/f.scrollWidth,v=Math.max(m,n.minSize),E=Math.max(b,n.minSize);a.value=m/(p-m)/(v/(p-v)),c.value=b/(h-b)/(E/(h-E)),l.value=v+Ec<p?`${v}px`:"",s.value=E+Ec<h?`${E}px`:""}}),(f,p)=>(_(),k(Q,null,[y(JC,{move:r.value,ratio:c.value,size:s.value,always:f.always},null,8,["move","ratio","size","always"]),y(JC,{move:i.value,ratio:a.value,size:l.value,vertical:"",always:f.always},null,8,["move","ratio","size","always"])],64))}});var _te=Re(mte,[["__file","bar.vue"]]);const gte=Ke({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:we([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),vte={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every($t)},bte="ElScrollbar",yte=K({name:bte}),wte=K({...yte,props:gte,emits:vte,setup(e,{expose:t,emit:n}){const o=e,r=Ae("scrollbar");let i,s;const l=H(),a=H(),c=H(),u=H(),d=D(()=>{const w={};return o.height&&(w.height=fo(o.height)),o.maxHeight&&(w.maxHeight=fo(o.maxHeight)),[o.wrapStyle,w]}),f=D(()=>[o.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!o.native}]),p=D(()=>[r.e("view"),o.viewClass]),h=()=>{var w;a.value&&((w=u.value)==null||w.handleScroll(a.value),n("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function m(w,S){st(w)?a.value.scrollTo(w):$t(w)&&$t(S)&&a.value.scrollTo(w,S)}const b=w=>{$t(w)&&(a.value.scrollTop=w)},v=w=>{$t(w)&&(a.value.scrollLeft=w)},E=()=>{var w;(w=u.value)==null||w.update()};return ke(()=>o.noresize,w=>{w?(i==null||i(),s==null||s()):({stop:i}=Oo(c,E),s=Tn("resize",E))},{immediate:!0}),ke(()=>[o.maxHeight,o.height],()=>{o.native||tt(()=>{var w;E(),a.value&&((w=u.value)==null||w.handleScroll(a.value))})}),wt(k3,jn({scrollbarElement:l,wrapElement:a})),mt(()=>{o.native||tt(()=>{E()})}),Bl(()=>E()),t({wrapRef:a,update:E,scrollTo:m,setScrollTop:b,setScrollLeft:v,handleScroll:h}),(w,S)=>(_(),k("div",{ref_key:"scrollbarRef",ref:l,class:R(C(r).b())},[g("div",{ref_key:"wrapRef",ref:a,class:R(C(f)),style:Be(C(d)),onScroll:h},[(_(),L(Et(w.tag),{id:w.id,ref_key:"resizeRef",ref:c,class:R(C(p)),style:Be(w.viewStyle),role:w.role,"aria-label":w.ariaLabel,"aria-orientation":w.ariaOrientation},{default:x(()=>[le(w.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),w.native?O("v-if",!0):(_(),L(_te,{key:0,ref_key:"barRef",ref:u,always:w.always,"min-size":w.minSize},null,8,["always","min-size"]))],2))}});var kte=Re(wte,[["__file","scrollbar.vue"]]);const $o=Vt(kte),x3=Symbol("popper"),fM=Symbol("popperContent"),xte=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],pM=Ke({role:{type:String,values:xte,default:"tooltip"}}),Cte=K({name:"ElPopper",inheritAttrs:!1}),Ste=K({...Cte,props:pM,setup(e,{expose:t}){const n=e,o=H(),r=H(),i=H(),s=H(),l=D(()=>n.role),a={triggerRef:o,popperInstanceRef:r,contentRef:i,referenceRef:s,role:l};return t(a),wt(x3,a),(c,u)=>le(c.$slots,"default")}});var $te=Re(Ste,[["__file","popper.vue"]]);const hM=Ke({arrowOffset:{type:Number,default:5}}),Ete=K({name:"ElPopperArrow",inheritAttrs:!1}),Tte=K({...Ete,props:hM,setup(e,{expose:t}){const n=e,o=Ae("popper"),{arrowOffset:r,arrowRef:i,arrowStyle:s}=Ne(fM,void 0);return ke(()=>n.arrowOffset,l=>{r.value=l}),yn(()=>{i.value=void 0}),t({arrowRef:i}),(l,a)=>(_(),k("span",{ref_key:"arrowRef",ref:i,class:R(C(o).e("arrow")),style:Be(C(s)),"data-popper-arrow":""},null,6))}});var Mte=Re(Tte,[["__file","arrow.vue"]]);const Ate="ElOnlyChild",mM=K({name:Ate,setup(e,{slots:t,attrs:n}){var o;const r=Ne(GT),i=mQ((o=r==null?void 0:r.setForwardRef)!=null?o:dt);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,n);if(!l||l.length>1)return null;const a=_M(l);return a?ze(ri(a,n),[[i]]):null}}});function _M(e){if(!e)return null;const t=e;for(const n of t){if(st(n))switch(n.type){case zn:continue;case ys:case"svg":return XC(n);case Q:return _M(n.children);default:return n}return XC(n)}return null}function XC(e){const t=Ae("only-child");return y("span",{class:t.e("content")},[e])}const gM=Ke({virtualRef:{type:we(Object)},virtualTriggering:Boolean,onMouseenter:{type:we(Function)},onMouseleave:{type:we(Function)},onClick:{type:we(Function)},onKeydown:{type:we(Function)},onFocus:{type:we(Function)},onBlur:{type:we(Function)},onContextmenu:{type:we(Function)},id:String,open:Boolean}),Ite=K({name:"ElPopperTrigger",inheritAttrs:!1}),Ote=K({...Ite,props:gM,setup(e,{expose:t}){const n=e,{role:o,triggerRef:r}=Ne(x3,void 0);hQ(r);const i=D(()=>l.value?n.id:void 0),s=D(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=D(()=>{if(o&&o.value!=="tooltip")return o.value}),a=D(()=>l.value?`${n.open}`:void 0);let c;return mt(()=>{ke(()=>n.virtualRef,u=>{u&&(r.value=ps(u))},{immediate:!0}),ke(r,(u,d)=>{c==null||c(),c=void 0,si(u)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var p;const h=n[f];h&&(u.addEventListener(f.slice(2).toLowerCase(),h),(p=d==null?void 0:d.removeEventListener)==null||p.call(d,f.slice(2).toLowerCase(),h))}),c=ke([i,s,l,a],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,h)=>{Ai(f[h])?u.removeAttribute(p):u.setAttribute(p,f[h])})},{immediate:!0})),si(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>d.removeAttribute(f))},{immediate:!0})}),yn(()=>{c==null||c(),c=void 0}),t({triggerRef:r}),(u,d)=>u.virtualTriggering?O("v-if",!0):(_(),L(C(mM),hn({key:0},u.$attrs,{"aria-controls":C(i),"aria-describedby":C(s),"aria-expanded":C(a),"aria-haspopup":C(l)}),{default:x(()=>[le(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Pte=Re(Ote,[["__file","trigger.vue"]]);const Q0="focus-trap.focus-after-trapped",ev="focus-trap.focus-after-released",Nte="focus-trap.focusout-prevented",QC={cancelable:!0,bubbles:!1},Lte={cancelable:!0,bubbles:!1},e6="focusAfterTrapped",t6="focusAfterReleased",C3=Symbol("elFocusTrap"),S3=H(),D1=H(0),$3=H(0);let dm=0;const vM=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},n6=(e,t)=>{for(const n of e)if(!Rte(n,t))return n},Rte=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Fte=e=>{const t=vM(e),n=n6(t,e),o=n6(t.reverse(),e);return[n,o]},Dte=e=>e instanceof HTMLInputElement&&"select"in e,Ws=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),$3.value=window.performance.now(),e!==n&&Dte(e)&&t&&e.select()}};function o6(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const Bte=()=>{let e=[];return{push:o=>{const r=e[0];r&&o!==r&&r.pause(),e=o6(e,o),e.unshift(o)},remove:o=>{var r,i;e=o6(e,o),(i=(r=e[0])==null?void 0:r.resume)==null||i.call(r)}}},zte=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(Ws(o,t),document.activeElement!==n)return},r6=Bte(),Vte=()=>D1.value>$3.value,fm=()=>{S3.value="pointer",D1.value=window.performance.now()},i6=()=>{S3.value="keyboard",D1.value=window.performance.now()},jte=()=>(mt(()=>{dm===0&&(document.addEventListener("mousedown",fm),document.addEventListener("touchstart",fm),document.addEventListener("keydown",i6)),dm++}),yn(()=>{dm--,dm<=0&&(document.removeEventListener("mousedown",fm),document.removeEventListener("touchstart",fm),document.removeEventListener("keydown",i6))}),{focusReason:S3,lastUserFocusTimestamp:D1,lastAutomatedFocusTimestamp:$3}),pm=e=>new CustomEvent(Nte,{...Lte,detail:e}),Hte=K({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[e6,t6,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=H();let o,r;const{focusReason:i}=jte();cQ(h=>{e.trapped&&!s.paused&&t("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=h=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:m,altKey:b,ctrlKey:v,metaKey:E,currentTarget:w,shiftKey:S}=h,{loop:T}=e,$=m===ht.tab&&!b&&!v&&!E,A=document.activeElement;if($&&A){const P=w,[N,I]=Fte(P);if(N&&I){if(!S&&A===I){const V=pm({focusReason:i.value});t("focusout-prevented",V),V.defaultPrevented||(h.preventDefault(),T&&Ws(N,!0))}else if(S&&[N,P].includes(A)){const V=pm({focusReason:i.value});t("focusout-prevented",V),V.defaultPrevented||(h.preventDefault(),T&&Ws(I,!0))}}else if(A===P){const V=pm({focusReason:i.value});t("focusout-prevented",V),V.defaultPrevented||h.preventDefault()}}};wt(C3,{focusTrapRef:n,onKeydown:l}),ke(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),ke([n],([h],[m])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",u),h.addEventListener("focusout",d)),m&&(m.removeEventListener("keydown",l),m.removeEventListener("focusin",u),m.removeEventListener("focusout",d))});const a=h=>{t(e6,h)},c=h=>t(t6,h),u=h=>{const m=C(n);if(!m)return;const b=h.target,v=h.relatedTarget,E=b&&m.contains(b);e.trapped||v&&m.contains(v)||(o=v),E&&t("focusin",h),!s.paused&&e.trapped&&(E?r=b:Ws(r,!0))},d=h=>{const m=C(n);if(!(s.paused||!m))if(e.trapped){const b=h.relatedTarget;!Ai(b)&&!m.contains(b)&&setTimeout(()=>{if(!s.paused&&e.trapped){const v=pm({focusReason:i.value});t("focusout-prevented",v),v.defaultPrevented||Ws(r,!0)}},0)}else{const b=h.target;b&&m.contains(b)||t("focusout",h)}};async function f(){await tt();const h=C(n);if(h){r6.push(s);const m=h.contains(document.activeElement)?o:document.activeElement;if(o=m,!h.contains(m)){const v=new Event(Q0,QC);h.addEventListener(Q0,a),h.dispatchEvent(v),v.defaultPrevented||tt(()=>{let E=e.focusStartEl;je(E)||(Ws(E),document.activeElement!==E&&(E="first")),E==="first"&&zte(vM(h),!0),(document.activeElement===m||E==="container")&&Ws(h)})}}}function p(){const h=C(n);if(h){h.removeEventListener(Q0,a);const m=new CustomEvent(ev,{...QC,detail:{focusReason:i.value}});h.addEventListener(ev,c),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!Vte()||h.contains(document.activeElement))&&Ws(o??document.body),h.removeEventListener(ev,c),r6.remove(s)}}return mt(()=>{e.trapped&&f(),ke(()=>e.trapped,h=>{h?f():p()})}),yn(()=>{e.trapped&&p()}),{onKeydown:l}}});function Ute(e,t,n,o,r,i){return le(e.$slots,"default",{handleKeydown:e.onKeydown})}var B1=Re(Hte,[["render",Ute],["__file","focus-trap.vue"]]);const Wte=["fixed","absolute"],qte=Ke({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:we(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:O1,default:"bottom"},popperOptions:{type:we(Object),default:()=>({})},strategy:{type:String,values:Wte,default:"absolute"}}),bM=Ke({...qte,id:String,style:{type:we([String,Array,Object])},className:{type:we([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:we([String,Array,Object])},popperStyle:{type:we([String,Array,Object])},referenceEl:{type:we(Object)},triggerTargetEl:{type:we(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Kte={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Gte=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:r}=e,i={placement:n,strategy:o,...r,modifiers:[...Zte(e),...t]};return Jte(i,r==null?void 0:r.modifiers),i},Yte=e=>{if(kt)return ps(e)};function Zte(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Jte(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Xte=0,Qte=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:r}=Ne(x3,void 0),i=H(),s=H(),l=D(()=>({name:"eventListeners",enabled:!!e.visible})),a=D(()=>{var v;const E=C(i),w=(v=C(s))!=null?v:Xte;return{name:"arrow",enabled:!uT(E),options:{element:E,padding:w}}}),c=D(()=>({onFirstUpdate:()=>{h()},...Gte(e,[C(a),C(l)])})),u=D(()=>Yte(e.referenceEl)||C(o)),{attributes:d,state:f,styles:p,update:h,forceUpdate:m,instanceRef:b}=iQ(u,n,c);return ke(b,v=>t.value=v),mt(()=>{ke(()=>{var v;return(v=C(u))==null?void 0:v.getBoundingClientRect()},()=>{h()})}),{attributes:d,arrowRef:i,contentRef:n,instanceRef:b,state:f,styles:p,role:r,forceUpdate:m,update:h}},ene=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:r}=N1(),i=Ae("popper"),s=D(()=>C(t).popper),l=H($t(e.zIndex)?e.zIndex:r()),a=D(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),c=D(()=>[{zIndex:C(l)},C(n).popper,e.popperStyle||{}]),u=D(()=>o.value==="dialog"?"false":void 0),d=D(()=>C(n).arrow||{});return{ariaModal:u,arrowStyle:d,contentAttrs:s,contentClass:a,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=$t(e.zIndex)?e.zIndex:r()}}},tne=(e,t)=>{const n=H(!1),o=H();return{focusStartRef:o,trapped:n,onFocusAfterReleased:c=>{var u;((u=c.detail)==null?void 0:u.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(o.value=c.target),n.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},nne=K({name:"ElPopperContent"}),one=K({...nne,props:bM,emits:Kte,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:r,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:a,onFocusoutPrevented:c,onReleaseRequested:u}=tne(o,n),{attributes:d,arrowRef:f,contentRef:p,styles:h,instanceRef:m,role:b,update:v}=Qte(o),{ariaModal:E,arrowStyle:w,contentAttrs:S,contentClass:T,contentStyle:$,updateZIndex:A}=ene(o,{styles:h,attributes:d,role:b}),P=Ne(nc,void 0),N=H();wt(fM,{arrowStyle:w,arrowRef:f,arrowOffset:N}),P&&(P.addInputId||P.removeInputId)&&wt(nc,{...P,addInputId:dt,removeInputId:dt});let I;const B=(G=!0)=>{v(),G&&A()},V=()=>{B(!1),o.visible&&o.focusOnShow?i.value=!0:o.visible===!1&&(i.value=!1)};return mt(()=>{ke(()=>o.triggerTargetEl,(G,ne)=>{I==null||I(),I=void 0;const oe=C(G||p.value),Z=C(ne||p.value);si(oe)&&(I=ke([b,()=>o.ariaLabel,E,()=>o.id],q=>{["role","aria-label","aria-modal","id"].forEach((X,ee)=>{Ai(q[ee])?oe.removeAttribute(X):oe.setAttribute(X,q[ee])})},{immediate:!0})),Z!==oe&&si(Z)&&["role","aria-label","aria-modal","id"].forEach(q=>{Z.removeAttribute(q)})},{immediate:!0}),ke(()=>o.visible,V,{immediate:!0})}),yn(()=>{I==null||I(),I=void 0}),t({popperContentRef:p,popperInstanceRef:m,updatePopper:B,contentStyle:$}),(G,ne)=>(_(),k("div",hn({ref_key:"contentRef",ref:p},C(S),{style:C($),class:C(T),tabindex:"-1",onMouseenter:ne[0]||(ne[0]=oe=>G.$emit("mouseenter",oe)),onMouseleave:ne[1]||(ne[1]=oe=>G.$emit("mouseleave",oe))}),[y(C(B1),{trapped:C(i),"trap-on-focus-in":!0,"focus-trap-el":C(p),"focus-start-el":C(r),onFocusAfterTrapped:C(l),onFocusAfterReleased:C(s),onFocusin:C(a),onFocusoutPrevented:C(c),onReleaseRequested:C(u)},{default:x(()=>[le(G.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var rne=Re(one,[["__file","content.vue"]]);const ine=Vt($te),E3=Symbol("elTooltip"),Qo=Ke({...fQ,...bM,appendTo:{type:we([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:we(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Np=Ke({...gM,disabled:Boolean,trigger:{type:we([String,Array]),default:"hover"},triggerKeys:{type:we(Array),default:()=>[ht.enter,ht.space]}}),{useModelToggleProps:sne,useModelToggleEmits:lne,useModelToggle:ane}=PT("visible"),cne=Ke({...pM,...sne,...Qo,...Np,...hM,showArrow:{type:Boolean,default:!0}}),une=[...lne,"before-show","before-hide","show","hide","open","close"],dne=(e,t)=>$e(e)?e.includes(t):e===t,Tc=(e,t,n)=>o=>{dne(C(e),t)&&n(o)},fne=K({name:"ElTooltipTrigger"}),pne=K({...fne,props:Np,setup(e,{expose:t}){const n=e,o=Ae("tooltip"),{controlled:r,id:i,open:s,onOpen:l,onClose:a,onToggle:c}=Ne(E3,void 0),u=H(null),d=()=>{if(C(r)||n.disabled)return!0},f=Nn(n,"trigger"),p=$n(d,Tc(f,"hover",l)),h=$n(d,Tc(f,"hover",a)),m=$n(d,Tc(f,"click",S=>{S.button===0&&c(S)})),b=$n(d,Tc(f,"focus",l)),v=$n(d,Tc(f,"focus",a)),E=$n(d,Tc(f,"contextmenu",S=>{S.preventDefault(),c(S)})),w=$n(d,S=>{const{code:T}=S;n.triggerKeys.includes(T)&&(S.preventDefault(),c(S))});return t({triggerRef:u}),(S,T)=>(_(),L(C(Pte),{id:C(i),"virtual-ref":S.virtualRef,open:C(s),"virtual-triggering":S.virtualTriggering,class:R(C(o).e("trigger")),onBlur:C(v),onClick:C(m),onContextmenu:C(E),onFocus:C(b),onMouseenter:C(p),onMouseleave:C(h),onKeydown:C(w)},{default:x(()=>[le(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var hne=Re(pne,[["__file","trigger.vue"]]);const mne=K({name:"ElTooltipContent",inheritAttrs:!1}),_ne=K({...mne,props:Qo,setup(e,{expose:t}){const n=e,{selector:o}=KT(),r=Ae("tooltip"),i=H(null),s=H(!1),{controlled:l,id:a,open:c,trigger:u,onClose:d,onOpen:f,onShow:p,onHide:h,onBeforeShow:m,onBeforeHide:b}=Ne(E3,void 0),v=D(()=>n.transition||`${r.namespace.value}-fade-in-linear`),E=D(()=>n.persistent);yn(()=>{s.value=!0});const w=D(()=>C(E)?!0:C(c)),S=D(()=>n.disabled?!1:C(c)),T=D(()=>n.appendTo||o.value),$=D(()=>{var q;return(q=n.style)!=null?q:{}}),A=D(()=>!C(c)),P=()=>{h()},N=()=>{if(C(l))return!0},I=$n(N,()=>{n.enterable&&C(u)==="hover"&&f()}),B=$n(N,()=>{C(u)==="hover"&&d()}),V=()=>{var q,X;(X=(q=i.value)==null?void 0:q.updatePopper)==null||X.call(q),m==null||m()},G=()=>{b==null||b()},ne=()=>{p(),Z=wH(D(()=>{var q;return(q=i.value)==null?void 0:q.popperContentRef}),()=>{if(C(l))return;C(u)!=="hover"&&d()})},oe=()=>{n.virtualTriggering||d()};let Z;return ke(()=>C(c),q=>{q||Z==null||Z()},{flush:"post"}),ke(()=>n.content,()=>{var q,X;(X=(q=i.value)==null?void 0:q.updatePopper)==null||X.call(q)}),t({contentRef:i}),(q,X)=>(_(),L(sr,{disabled:!q.teleported,to:C(T)},[y(dr,{name:C(v),onAfterLeave:P,onBeforeEnter:V,onAfterEnter:ne,onBeforeLeave:G},{default:x(()=>[C(w)?ze((_(),L(C(rne),hn({key:0,id:C(a),ref_key:"contentRef",ref:i},q.$attrs,{"aria-label":q.ariaLabel,"aria-hidden":C(A),"boundaries-padding":q.boundariesPadding,"fallback-placements":q.fallbackPlacements,"gpu-acceleration":q.gpuAcceleration,offset:q.offset,placement:q.placement,"popper-options":q.popperOptions,strategy:q.strategy,effect:q.effect,enterable:q.enterable,pure:q.pure,"popper-class":q.popperClass,"popper-style":[q.popperStyle,C($)],"reference-el":q.referenceEl,"trigger-target-el":q.triggerTargetEl,visible:C(S),"z-index":q.zIndex,onMouseenter:C(I),onMouseleave:C(B),onBlur:oe,onClose:C(d)}),{default:x(()=>[s.value?O("v-if",!0):le(q.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[sn,C(S)]]):O("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var gne=Re(_ne,[["__file","content.vue"]]);const vne=["innerHTML"],bne={key:1},yne=K({name:"ElTooltip"}),wne=K({...yne,props:cne,emits:une,setup(e,{expose:t,emit:n}){const o=e;dQ();const r=Rr(),i=H(),s=H(),l=()=>{var v;const E=C(i);E&&((v=E.popperInstanceRef)==null||v.update())},a=H(!1),c=H(),{show:u,hide:d,hasUpdateHandler:f}=ane({indicator:a,toggleReason:c}),{onOpen:p,onClose:h}=pQ({showAfter:Nn(o,"showAfter"),hideAfter:Nn(o,"hideAfter"),autoClose:Nn(o,"autoClose"),open:u,close:d}),m=D(()=>ao(o.visible)&&!f.value);wt(E3,{controlled:m,id:r,open:dc(a),trigger:Nn(o,"trigger"),onOpen:v=>{p(v)},onClose:v=>{h(v)},onToggle:v=>{C(a)?h(v):p(v)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:l}),ke(()=>o.disabled,v=>{v&&a.value&&(a.value=!1)});const b=v=>{var E,w;const S=(w=(E=s.value)==null?void 0:E.contentRef)==null?void 0:w.popperContentRef,T=(v==null?void 0:v.relatedTarget)||document.activeElement;return S&&S.contains(T)};return cw(()=>a.value&&d()),t({popperRef:i,contentRef:s,isFocusInsideContent:b,updatePopper:l,onOpen:p,onClose:h,hide:d}),(v,E)=>(_(),L(C(ine),{ref_key:"popperRef",ref:i,role:v.role},{default:x(()=>[y(hne,{disabled:v.disabled,trigger:v.trigger,"trigger-keys":v.triggerKeys,"virtual-ref":v.virtualRef,"virtual-triggering":v.virtualTriggering},{default:x(()=>[v.$slots.default?le(v.$slots,"default",{key:0}):O("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),y(gne,{ref_key:"contentRef",ref:s,"aria-label":v.ariaLabel,"boundaries-padding":v.boundariesPadding,content:v.content,disabled:v.disabled,effect:v.effect,enterable:v.enterable,"fallback-placements":v.fallbackPlacements,"hide-after":v.hideAfter,"gpu-acceleration":v.gpuAcceleration,offset:v.offset,persistent:v.persistent,"popper-class":v.popperClass,"popper-style":v.popperStyle,placement:v.placement,"popper-options":v.popperOptions,pure:v.pure,"raw-content":v.rawContent,"reference-el":v.referenceEl,"trigger-target-el":v.triggerTargetEl,"show-after":v.showAfter,strategy:v.strategy,teleported:v.teleported,transition:v.transition,"virtual-triggering":v.virtualTriggering,"z-index":v.zIndex,"append-to":v.appendTo},{default:x(()=>[le(v.$slots,"content",{},()=>[v.rawContent?(_(),k("span",{key:0,innerHTML:v.content},null,8,vne)):(_(),k("span",bne,M(v.content),1))]),v.showArrow?(_(),L(C(Mte),{key:0,"arrow-offset":v.arrowOffset},null,8,["arrow-offset"])):O("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var kne=Re(wne,[["__file","tooltip.vue"]]);const fd=Vt(kne),xne=Ke({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,dotStyle:{type:we([String,Object,Array])},offset:{type:we(Array),default:[0,0]},dotClass:{type:String}}),Cne=["textContent"],Sne=K({name:"ElBadge"}),$ne=K({...Sne,props:xne,setup(e,{expose:t}){const n=e,o=Ae("badge"),r=D(()=>n.isDot?"":$t(n.value)&&$t(n.max)?n.max<n.value?`${n.max}+`:n.value===0&&!n.showZero?"":`${n.value}`:`${n.value}`),i=D(()=>{var s,l,a,c,u;return[{backgroundColor:n.color,marginRight:fo(-((l=(s=n.offset)==null?void 0:s[0])!=null?l:0)),marginTop:fo((c=(a=n.offset)==null?void 0:a[1])!=null?c:0)},(u=n.dotStyle)!=null?u:{}]});return t({content:r}),(s,l)=>(_(),k("div",{class:R(C(o).b())},[le(s.$slots,"default"),y(dr,{name:`${C(o).namespace.value}-zoom-in-center`,persisted:""},{default:x(()=>[ze(g("sup",{class:R([C(o).e("content"),C(o).em("content",s.type),C(o).is("fixed",!!s.$slots.default),C(o).is("dot",s.isDot),s.dotClass]),style:Be(C(i)),textContent:M(C(r))},null,14,Cne),[[sn,!s.hidden&&(C(r)||s.isDot)]])]),_:1},8,["name"])],2))}});var Ene=Re($ne,[["__file","badge.vue"]]);const Tne=Vt(Ene),yM=Symbol("breadcrumbKey"),Mne=Ke({separator:{type:String,default:"/"},separatorIcon:{type:Ln}}),Ane=["aria-label"],Ine=K({name:"ElBreadcrumb"}),One=K({...Ine,props:Mne,setup(e){const t=e,{t:n}=Dn(),o=Ae("breadcrumb"),r=H();return wt(yM,t),mt(()=>{const i=r.value.querySelectorAll(`.${o.e("item")}`);i.length&&i[i.length-1].setAttribute("aria-current","page")}),(i,s)=>(_(),k("div",{ref_key:"breadcrumb",ref:r,class:R(C(o).b()),"aria-label":C(n)("el.breadcrumb.label"),role:"navigation"},[le(i.$slots,"default")],10,Ane))}});var Pne=Re(One,[["__file","breadcrumb.vue"]]);const Nne=Ke({to:{type:we([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Lne=K({name:"ElBreadcrumbItem"}),Rne=K({...Lne,props:Nne,setup(e){const t=e,n=nt(),o=Ne(yM,void 0),r=Ae("breadcrumb"),i=n.appContext.config.globalProperties.$router,s=H(),l=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(a,c)=>{var u,d;return _(),k("span",{class:R(C(r).e("item"))},[g("span",{ref_key:"link",ref:s,class:R([C(r).e("inner"),C(r).is("link",!!a.to)]),role:"link",onClick:l},[le(a.$slots,"default")],2),(u=C(o))!=null&&u.separatorIcon?(_(),L(C(ge),{key:0,class:R(C(r).e("separator"))},{default:x(()=>[(_(),L(Et(C(o).separatorIcon)))]),_:1},8,["class"])):(_(),k("span",{key:1,class:R(C(r).e("separator")),role:"presentation"},M((d=C(o))==null?void 0:d.separator),3))],2)}}});var wM=Re(Rne,[["__file","breadcrumb-item.vue"]]);const T3=Vt(Pne,{BreadcrumbItem:wM}),M3=Hn(wM),kM=Symbol("buttonGroupContextKey"),Fne=(e,t)=>{Ra({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},D(()=>e.type==="text"));const n=Ne(kM,void 0),o=fh("button"),{form:r}=As(),i=cr(D(()=>n==null?void 0:n.size)),s=fi(),l=H(),a=Ui(),c=D(()=>e.type||(n==null?void 0:n.type)||""),u=D(()=>{var h,m,b;return(b=(m=e.autoInsertSpace)!=null?m:(h=o.value)==null?void 0:h.autoInsertSpace)!=null?b:!1}),d=D(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),f=D(()=>{var h;const m=(h=a.default)==null?void 0:h.call(a);if(u.value&&(m==null?void 0:m.length)===1){const b=m[0];if((b==null?void 0:b.type)===ys){const v=b.children;return/^\p{Unified_Ideograph}{2}$/u.test(v.trim())}}return!1});return{_disabled:s,_size:i,_type:c,_ref:l,_props:d,shouldAddSpace:f,handleClick:h=>{e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",h)}}},Dne=["default","primary","success","warning","info","danger","text",""],Bne=["button","submit","reset"],ly=Ke({size:Ms,disabled:Boolean,type:{type:String,values:Dne,default:""},icon:{type:Ln},nativeType:{type:String,values:Bne,default:"button"},loading:Boolean,loadingIcon:{type:Ln,default:()=>A1},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:we([String,Object]),default:"button"}}),zne={click:e=>e instanceof MouseEvent};function Qn(e,t){Vne(e)&&(e="100%");var n=jne(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function hm(e){return Math.min(1,Math.max(0,e))}function Vne(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function jne(e){return typeof e=="string"&&e.indexOf("%")!==-1}function xM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mm(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ca(e){return e.length===1?"0"+e:String(e)}function Hne(e,t,n){return{r:Qn(e,255)*255,g:Qn(t,255)*255,b:Qn(n,255)*255}}function s6(e,t,n){e=Qn(e,255),t=Qn(t,255),n=Qn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,s=0,l=(o+r)/2;if(o===r)s=0,i=0;else{var a=o-r;switch(s=l>.5?a/(2-o-r):a/(o+r),o){case e:i=(t-n)/a+(t<n?6:0);break;case t:i=(n-e)/a+2;break;case n:i=(e-t)/a+4;break}i/=6}return{h:i,s,l}}function tv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Une(e,t,n){var o,r,i;if(e=Qn(e,360),t=Qn(t,100),n=Qn(n,100),t===0)r=n,i=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=tv(l,s,e+1/3),r=tv(l,s,e),i=tv(l,s,e-1/3)}return{r:o*255,g:r*255,b:i*255}}function l6(e,t,n){e=Qn(e,255),t=Qn(t,255),n=Qn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,s=o,l=o-r,a=o===0?0:l/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:a,v:s}}function Wne(e,t,n){e=Qn(e,360)*6,t=Qn(t,100),n=Qn(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),s=n*(1-r*t),l=n*(1-(1-r)*t),a=o%6,c=[n,s,i,i,l,n][a],u=[l,n,n,s,i,i][a],d=[i,i,l,n,n,s][a];return{r:c*255,g:u*255,b:d*255}}function a6(e,t,n,o){var r=[Ca(Math.round(e).toString(16)),Ca(Math.round(t).toString(16)),Ca(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function qne(e,t,n,o,r){var i=[Ca(Math.round(e).toString(16)),Ca(Math.round(t).toString(16)),Ca(Math.round(n).toString(16)),Ca(Kne(o))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Kne(e){return Math.round(parseFloat(e)*255).toString(16)}function c6(e){return Go(e)/255}function Go(e){return parseInt(e,16)}function Gne(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ay={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Yne(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=Xne(e)),typeof e=="object"&&(es(e.r)&&es(e.g)&&es(e.b)?(t=Hne(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):es(e.h)&&es(e.s)&&es(e.v)?(o=mm(e.s),r=mm(e.v),t=Wne(e.h,o,r),s=!0,l="hsv"):es(e.h)&&es(e.s)&&es(e.l)&&(o=mm(e.s),i=mm(e.l),t=Une(e.h,o,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=xM(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Zne="[-\\+]?\\d+%?",Jne="[-\\+]?\\d*\\.\\d+%?",yl="(?:".concat(Jne,")|(?:").concat(Zne,")"),nv="[\\s|\\(]+(".concat(yl,")[,|\\s]+(").concat(yl,")[,|\\s]+(").concat(yl,")\\s*\\)?"),ov="[\\s|\\(]+(".concat(yl,")[,|\\s]+(").concat(yl,")[,|\\s]+(").concat(yl,")[,|\\s]+(").concat(yl,")\\s*\\)?"),Hr={CSS_UNIT:new RegExp(yl),rgb:new RegExp("rgb"+nv),rgba:new RegExp("rgba"+ov),hsl:new RegExp("hsl"+nv),hsla:new RegExp("hsla"+ov),hsv:new RegExp("hsv"+nv),hsva:new RegExp("hsva"+ov),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Xne(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ay[e])e=ay[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Hr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Hr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Hr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Hr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Hr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Hr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Hr.hex8.exec(e),n?{r:Go(n[1]),g:Go(n[2]),b:Go(n[3]),a:c6(n[4]),format:t?"name":"hex8"}:(n=Hr.hex6.exec(e),n?{r:Go(n[1]),g:Go(n[2]),b:Go(n[3]),format:t?"name":"hex"}:(n=Hr.hex4.exec(e),n?{r:Go(n[1]+n[1]),g:Go(n[2]+n[2]),b:Go(n[3]+n[3]),a:c6(n[4]+n[4]),format:t?"name":"hex8"}:(n=Hr.hex3.exec(e),n?{r:Go(n[1]+n[1]),g:Go(n[2]+n[2]),b:Go(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function es(e){return!!Hr.CSS_UNIT.exec(String(e))}var Qne=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=Gne(t)),this.originalInput=t;var r=Yne(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,i=t.r/255,s=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=xM(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=l6(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=l6(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=s6(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=s6(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),a6(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),qne(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Qn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Qn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+a6(this.r,this.g,this.b,!1),n=0,o=Object.entries(ay);n<o.length;n++){var r=o[n],i=r[0],s=r[1];if(t===s)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var o=!1,r=this.a<1&&this.a>=0,i=!n&&r&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=hm(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=hm(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=hm(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=hm(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100,s={r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,s=[],l=1/t;t--;)s.push(new e({h:o,s:r,v:i})),i=(i+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],i=360/t,s=1;s<t;s++)r.push(new e({h:(o+s*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Vs(e,t=20){return e.mix("#141414",t).toString()}function eoe(e){const t=fi(),n=Ae("button");return D(()=>{let o={};const r=e.color;if(r){const i=new Qne(r),s=e.dark?i.tint(20).toString():Vs(i,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?Vs(i,90):i.tint(90).toString(),"text-color":r,"border-color":e.dark?Vs(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?Vs(i,90):i.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?Vs(i,50):i.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?Vs(i,80):i.tint(80).toString());else{const l=e.dark?Vs(i,30):i.tint(30).toString(),a=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":r,"text-color":a,"border-color":r,"hover-bg-color":l,"hover-text-color":a,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),t.value){const c=e.dark?Vs(i,50):i.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=c,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=c}}}return o})}const toe=K({name:"ElButton"}),noe=K({...toe,props:ly,emits:zne,setup(e,{expose:t,emit:n}){const o=e,r=eoe(o),i=Ae("button"),{_ref:s,_size:l,_type:a,_disabled:c,_props:u,shouldAddSpace:d,handleClick:f}=Fne(o,n),p=D(()=>[i.b(),i.m(a.value),i.m(l.value),i.is("disabled",c.value),i.is("loading",o.loading),i.is("plain",o.plain),i.is("round",o.round),i.is("circle",o.circle),i.is("text",o.text),i.is("link",o.link),i.is("has-bg",o.bg)]);return t({ref:s,size:l,type:a,disabled:c,shouldAddSpace:d}),(h,m)=>(_(),L(Et(h.tag),hn({ref_key:"_ref",ref:s},C(u),{class:C(p),style:C(r),onClick:C(f)}),{default:x(()=>[h.loading?(_(),k(Q,{key:0},[h.$slots.loading?le(h.$slots,"loading",{key:0}):(_(),L(C(ge),{key:1,class:R(C(i).is("loading"))},{default:x(()=>[(_(),L(Et(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(_(),L(C(ge),{key:1},{default:x(()=>[h.icon?(_(),L(Et(h.icon),{key:0})):le(h.$slots,"icon",{key:1})]),_:3})):O("v-if",!0),h.$slots.default?(_(),k("span",{key:2,class:R({[C(i).em("text","expand")]:C(d)})},[le(h.$slots,"default")],2)):O("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var ooe=Re(noe,[["__file","button.vue"]]);const roe={size:ly.size,type:ly.type},ioe=K({name:"ElButtonGroup"}),soe=K({...ioe,props:roe,setup(e){const t=e;wt(kM,jn({size:Nn(t,"size"),type:Nn(t,"type")}));const n=Ae("button");return(o,r)=>(_(),k("div",{class:R(`${C(n).b("group")}`)},[le(o.$slots,"default")],2))}});var CM=Re(soe,[["__file","button-group.vue"]]);const Ye=Vt(ooe,{ButtonGroup:CM});Hn(CM);var $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const qs=new Map;let u6;kt&&(document.addEventListener("mousedown",e=>u6=e),document.addEventListener("mouseup",e=>{for(const t of qs.values())for(const{documentHandler:n}of t)n(e,u6)}));function d6(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:si(t.arg)&&n.push(t.arg),function(o,r){const i=t.instance.popperRef,s=o.target,l=r==null?void 0:r.target,a=!t||!t.instance,c=!s||!l,u=e.contains(s)||e.contains(l),d=e===s,f=n.length&&n.some(h=>h==null?void 0:h.contains(s))||n.length&&n.includes(l),p=i&&(i.contains(s)||i.contains(l));a||c||u||d||f||p||t.value(o,r)}}const A3={beforeMount(e,t){qs.has(e)||qs.set(e,[]),qs.get(e).push({documentHandler:d6(e,t),bindingFn:t.value})},updated(e,t){qs.has(e)||qs.set(e,[]);const n=qs.get(e),o=n.findIndex(i=>i.bindingFn===t.oldValue),r={documentHandler:d6(e,t),bindingFn:t.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted(e){qs.delete(e)}},cy="_trap-focus-children",Sa=[],f6=e=>{if(Sa.length===0)return;const t=Sa[Sa.length-1][cy];if(t.length>0&&e.code===ht.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],r=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),r&&!n&&(e.preventDefault(),t[0].focus())}},loe={beforeMount(e){e[cy]=I5(e),Sa.push(e),Sa.length<=1&&document.addEventListener("keydown",f6)},updated(e){tt(()=>{e[cy]=I5(e)})},unmounted(){Sa.shift(),Sa.length===0&&document.removeEventListener("keydown",f6)}};var p6=!1,ga,uy,dy,Zm,Jm,SM,Xm,fy,py,hy,$M,my,_y,EM,TM;function To(){if(!p6){p6=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(my=/\b(iPhone|iP[ao]d)/.exec(e),_y=/\b(iP[ao]d)/.exec(e),hy=/Android/i.exec(e),EM=/FBAN\/\w+;/i.exec(e),TM=/Mobile/i.exec(e),$M=!!/Win64/.exec(e),t){ga=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ga&&document&&document.documentMode&&(ga=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(e);SM=o?parseFloat(o[1])+4:ga,uy=t[2]?parseFloat(t[2]):NaN,dy=t[3]?parseFloat(t[3]):NaN,Zm=t[4]?parseFloat(t[4]):NaN,Zm?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Jm=t&&t[1]?parseFloat(t[1]):NaN):Jm=NaN}else ga=uy=dy=Jm=Zm=NaN;if(n){if(n[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Xm=r?parseFloat(r[1].replace("_",".")):!0}else Xm=!1;fy=!!n[2],py=!!n[3]}else Xm=fy=py=!1}}var gy={ie:function(){return To()||ga},ieCompatibilityMode:function(){return To()||SM>ga},ie64:function(){return gy.ie()&&$M},firefox:function(){return To()||uy},opera:function(){return To()||dy},webkit:function(){return To()||Zm},safari:function(){return gy.webkit()},chrome:function(){return To()||Jm},windows:function(){return To()||fy},osx:function(){return To()||Xm},linux:function(){return To()||py},iphone:function(){return To()||my},mobile:function(){return To()||my||_y||hy||TM},nativeApp:function(){return To()||EM},android:function(){return To()||hy},ipad:function(){return To()||_y}},aoe=gy,_m=!!(typeof window<"u"&&window.document&&window.document.createElement),coe={canUseDOM:_m,canUseWorkers:typeof Worker<"u",canUseEventListeners:_m&&!!(window.addEventListener||window.attachEvent),canUseViewport:_m&&!!window.screen,isInWorker:!_m},MM=coe,AM;MM.canUseDOM&&(AM=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function uoe(e,t){if(!MM.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var r=document.createElement("div");r.setAttribute(n,"return;"),o=typeof r[n]=="function"}return!o&&AM&&e==="wheel"&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var doe=uoe,h6=10,m6=40,_6=800;function IM(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=t*h6,r=n*h6,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(e.deltaMode==1?(o*=m6,r*=m6):(o*=_6,r*=_6)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}IM.getEventType=function(){return aoe.firefox()?"DOMMouseScroll":doe("wheel")?"wheel":"mousewheel"};var foe=IM;/**
59 * Checks if an event is supported in the current execution environment.
60 *
61 * NOTE: This will not work correctly for non-generic events such as `change`,
62 * `reset`, `load`, `error`, and `select`.
63 *
64 * Borrows from Modernizr.
65 *
66 * @param {string} eventNameSuffix Event name, e.g. "click".
67 * @param {?boolean} capture Check if the capture phase is supported.
68 * @return {boolean} True if the event is supported.
69 * @internal
70 * @license Modernizr 3.0.0pre (Custom Build) | MIT
71 */const poe=function(e,t){if(e&&e.addEventListener){const n=function(o){const r=foe(o);t&&Reflect.apply(t,this,[o,r])};e.addEventListener("wheel",n,{passive:!0})}},hoe={beforeMount(e,t){poe(e,t.value)}},OM={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Ms,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},PM={[Kt]:e=>je(e)||$t(e)||ao(e),change:e=>je(e)||$t(e)||ao(e)},pd=Symbol("checkboxGroupContextKey"),moe=({model:e,isChecked:t})=>{const n=Ne(pd,void 0),o=D(()=>{var i,s;const l=(i=n==null?void 0:n.max)==null?void 0:i.value,a=(s=n==null?void 0:n.min)==null?void 0:s.value;return!ks(l)&&e.value.length>=l&&!t.value||!ks(a)&&e.value.length<=a&&t.value});return{isDisabled:fi(D(()=>(n==null?void 0:n.disabled.value)||o.value)),isLimitDisabled:o}},_oe=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:r,isLabeledByFormItem:i})=>{const s=Ne(pd,void 0),{formItem:l}=As(),{emit:a}=nt();function c(h){var m,b,v,E;return[!0,e.trueValue,e.trueLabel].includes(h)?(b=(m=e.trueValue)!=null?m:e.trueLabel)!=null?b:!0:(E=(v=e.falseValue)!=null?v:e.falseLabel)!=null?E:!1}function u(h,m){a("change",c(h),m)}function d(h){if(n.value)return;const m=h.target;a("change",c(m.checked),h)}async function f(h){n.value||!o.value&&!r.value&&i.value&&(h.composedPath().some(v=>v.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await tt(),u(t.value,h)))}const p=D(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return ke(()=>e.modelValue,()=>{p.value&&(l==null||l.validate("change").catch(h=>void 0))}),{handleChange:d,onClickRoot:f}},goe=e=>{const t=H(!1),{emit:n}=nt(),o=Ne(pd,void 0),r=D(()=>ks(o)===!1),i=H(!1),s=D({get(){var l,a;return r.value?(l=o==null?void 0:o.modelValue)==null?void 0:l.value:(a=e.modelValue)!=null?a:t.value},set(l){var a,c;r.value&&$e(l)?(i.value=((a=o==null?void 0:o.max)==null?void 0:a.value)!==void 0&&l.length>(o==null?void 0:o.max.value)&&l.length>s.value.length,i.value===!1&&((c=o==null?void 0:o.changeEvent)==null||c.call(o,l))):(n(Kt,l),t.value=l)}});return{model:s,isGroup:r,isLimitExceeded:i}},voe=(e,t,{model:n})=>{const o=Ne(pd,void 0),r=H(!1),i=D(()=>Mp(e.value)?e.label:e.value),s=D(()=>{const u=n.value;return ao(u)?u:$e(u)?st(i.value)?u.map(xt).some(d=>Qa(d,i.value)):u.map(xt).includes(i.value):u!=null?u===e.trueValue||u===e.trueLabel:!!u}),l=cr(D(()=>{var u;return(u=o==null?void 0:o.size)==null?void 0:u.value}),{prop:!0}),a=cr(D(()=>{var u;return(u=o==null?void 0:o.size)==null?void 0:u.value})),c=D(()=>!!t.default||!Mp(i.value));return{checkboxButtonSize:l,isChecked:s,isFocused:r,checkboxSize:a,hasOwnLabel:c,actualValue:i}},NM=(e,t)=>{const{formItem:n}=As(),{model:o,isGroup:r,isLimitExceeded:i}=goe(e),{isFocused:s,isChecked:l,checkboxButtonSize:a,checkboxSize:c,hasOwnLabel:u,actualValue:d}=voe(e,t,{model:o}),{isDisabled:f}=moe({model:o,isChecked:l}),{inputId:p,isLabeledByFormItem:h}=gc(e,{formItemContext:n,disableIdGeneration:u,disableIdManagement:r}),{handleChange:m,onClickRoot:b}=_oe(e,{model:o,isLimitExceeded:i,hasOwnLabel:u,isDisabled:f,isLabeledByFormItem:h});return(()=>{function E(){var w,S;$e(o.value)&&!o.value.includes(d.value)?o.value.push(d.value):o.value=(S=(w=e.trueValue)!=null?w:e.trueLabel)!=null?S:!0}e.checked&&E()})(),Ra({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},D(()=>r.value&&Mp(e.value))),Ra({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},D(()=>!!e.trueLabel)),Ra({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},D(()=>!!e.falseLabel)),{inputId:p,isLabeledByFormItem:h,isChecked:l,isDisabled:f,isFocused:s,checkboxButtonSize:a,checkboxSize:c,hasOwnLabel:u,model:o,actualValue:d,handleChange:m,onClickRoot:b}},boe=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],yoe=["id","indeterminate","disabled","value","name","tabindex"],woe=K({name:"ElCheckbox"}),koe=K({...woe,props:OM,emits:PM,setup(e){const t=e,n=Ui(),{inputId:o,isLabeledByFormItem:r,isChecked:i,isDisabled:s,isFocused:l,checkboxSize:a,hasOwnLabel:c,model:u,actualValue:d,handleChange:f,onClickRoot:p}=NM(t,n),h=Ae("checkbox"),m=D(()=>[h.b(),h.m(a.value),h.is("disabled",s.value),h.is("bordered",t.border),h.is("checked",i.value)]),b=D(()=>[h.e("input"),h.is("disabled",s.value),h.is("checked",i.value),h.is("indeterminate",t.indeterminate),h.is("focus",l.value)]);return(v,E)=>(_(),L(Et(!C(c)&&C(r)?"span":"label"),{class:R(C(m)),"aria-controls":v.indeterminate?v.controls:null,onClick:C(p)},{default:x(()=>{var w,S;return[g("span",{class:R(C(b))},[v.trueValue||v.falseValue||v.trueLabel||v.falseLabel?ze((_(),k("input",{key:0,id:C(o),"onUpdate:modelValue":E[0]||(E[0]=T=>Zt(u)?u.value=T:null),class:R(C(h).e("original")),type:"checkbox",indeterminate:v.indeterminate,name:v.name,tabindex:v.tabindex,disabled:C(s),"true-value":(w=v.trueValue)!=null?w:v.trueLabel,"false-value":(S=v.falseValue)!=null?S:v.falseLabel,onChange:E[1]||(E[1]=(...T)=>C(f)&&C(f)(...T)),onFocus:E[2]||(E[2]=T=>l.value=!0),onBlur:E[3]||(E[3]=T=>l.value=!1),onClick:E[4]||(E[4]=qe(()=>{},["stop"]))},null,42,boe)),[[Ya,C(u)]]):ze((_(),k("input",{key:1,id:C(o),"onUpdate:modelValue":E[5]||(E[5]=T=>Zt(u)?u.value=T:null),class:R(C(h).e("original")),type:"checkbox",indeterminate:v.indeterminate,disabled:C(s),value:C(d),name:v.name,tabindex:v.tabindex,onChange:E[6]||(E[6]=(...T)=>C(f)&&C(f)(...T)),onFocus:E[7]||(E[7]=T=>l.value=!0),onBlur:E[8]||(E[8]=T=>l.value=!1),onClick:E[9]||(E[9]=qe(()=>{},["stop"]))},null,42,yoe)),[[Ya,C(u)]]),g("span",{class:R(C(h).e("inner"))},null,2)],2),C(c)?(_(),k("span",{key:0,class:R(C(h).e("label"))},[le(v.$slots,"default"),v.$slots.default?O("v-if",!0):(_(),k(Q,{key:0},[te(M(v.label),1)],64))],2)):O("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var xoe=Re(koe,[["__file","checkbox.vue"]]);const Coe=["name","tabindex","disabled","true-value","false-value"],Soe=["name","tabindex","disabled","value"],$oe=K({name:"ElCheckboxButton"}),Eoe=K({...$oe,props:OM,emits:PM,setup(e){const t=e,n=Ui(),{isFocused:o,isChecked:r,isDisabled:i,checkboxButtonSize:s,model:l,actualValue:a,handleChange:c}=NM(t,n),u=Ne(pd,void 0),d=Ae("checkbox"),f=D(()=>{var h,m,b,v;const E=(m=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?m:"";return{backgroundColor:E,borderColor:E,color:(v=(b=u==null?void 0:u.textColor)==null?void 0:b.value)!=null?v:"",boxShadow:E?`-1px 0 0 0 ${E}`:void 0}}),p=D(()=>[d.b("button"),d.bm("button",s.value),d.is("disabled",i.value),d.is("checked",r.value),d.is("focus",o.value)]);return(h,m)=>{var b,v;return _(),k("label",{class:R(C(p))},[h.trueValue||h.falseValue||h.trueLabel||h.falseLabel?ze((_(),k("input",{key:0,"onUpdate:modelValue":m[0]||(m[0]=E=>Zt(l)?l.value=E:null),class:R(C(d).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:C(i),"true-value":(b=h.trueValue)!=null?b:h.trueLabel,"false-value":(v=h.falseValue)!=null?v:h.falseLabel,onChange:m[1]||(m[1]=(...E)=>C(c)&&C(c)(...E)),onFocus:m[2]||(m[2]=E=>o.value=!0),onBlur:m[3]||(m[3]=E=>o.value=!1),onClick:m[4]||(m[4]=qe(()=>{},["stop"]))},null,42,Coe)),[[Ya,C(l)]]):ze((_(),k("input",{key:1,"onUpdate:modelValue":m[5]||(m[5]=E=>Zt(l)?l.value=E:null),class:R(C(d).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:C(i),value:C(a),onChange:m[6]||(m[6]=(...E)=>C(c)&&C(c)(...E)),onFocus:m[7]||(m[7]=E=>o.value=!0),onBlur:m[8]||(m[8]=E=>o.value=!1),onClick:m[9]||(m[9]=qe(()=>{},["stop"]))},null,42,Soe)),[[Ya,C(l)]]),h.$slots.default||h.label?(_(),k("span",{key:2,class:R(C(d).be("button","inner")),style:Be(C(r)?C(f):void 0)},[le(h.$slots,"default",{},()=>[te(M(h.label),1)])],6)):O("v-if",!0)],2)}}});var LM=Re(Eoe,[["__file","checkbox-button.vue"]]);const Toe=Ke({modelValue:{type:we(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ms,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Moe={[Kt]:e=>$e(e),change:e=>$e(e)},Aoe=K({name:"ElCheckboxGroup"}),Ioe=K({...Aoe,props:Toe,emits:Moe,setup(e,{emit:t}){const n=e,o=Ae("checkbox"),{formItem:r}=As(),{inputId:i,isLabeledByFormItem:s}=gc(n,{formItemContext:r}),l=async c=>{t(Kt,c),await tt(),t("change",c)},a=D({get(){return n.modelValue},set(c){l(c)}});return wt(pd,{...FY(ji(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:a,changeEvent:l}),ke(()=>n.modelValue,()=>{n.validateEvent&&(r==null||r.validate("change").catch(c=>void 0))}),(c,u)=>{var d;return _(),L(Et(c.tag),{id:C(i),class:R(C(o).b("group")),role:"group","aria-label":C(s)?void 0:c.label||"checkbox-group","aria-labelledby":C(s)?(d=C(r))==null?void 0:d.labelId:void 0},{default:x(()=>[le(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var RM=Re(Ioe,[["__file","checkbox-group.vue"]]);const Dr=Vt(xoe,{CheckboxButton:LM,CheckboxGroup:RM});Hn(LM);Hn(RM);const FM=Ke({modelValue:{type:[String,Number,Boolean],default:void 0},size:Ms,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Ooe=Ke({...FM,border:Boolean}),DM={[Kt]:e=>je(e)||$t(e)||ao(e),[tc]:e=>je(e)||$t(e)||ao(e)},BM=Symbol("radioGroupKey"),zM=(e,t)=>{const n=H(),o=Ne(BM,void 0),r=D(()=>!!o),i=D(()=>Mp(e.value)?e.label:e.value),s=D({get(){return r.value?o.modelValue:e.modelValue},set(d){r.value?o.changeEvent(d):t&&t(Kt,d),n.value.checked=e.modelValue===i.value}}),l=cr(D(()=>o==null?void 0:o.size)),a=fi(D(()=>o==null?void 0:o.disabled)),c=H(!1),u=D(()=>a.value||r.value&&s.value!==i.value?-1:0);return Ra({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},D(()=>r.value&&Mp(e.value))),{radioRef:n,isGroup:r,radioGroup:o,focus:c,size:l,disabled:a,tabIndex:u,modelValue:s,actualValue:i}},Poe=["value","name","disabled"],Noe=K({name:"ElRadio"}),Loe=K({...Noe,props:Ooe,emits:DM,setup(e,{emit:t}){const n=e,o=Ae("radio"),{radioRef:r,radioGroup:i,focus:s,size:l,disabled:a,modelValue:c,actualValue:u}=zM(n,t);function d(){tt(()=>t("change",c.value))}return(f,p)=>{var h;return _(),k("label",{class:R([C(o).b(),C(o).is("disabled",C(a)),C(o).is("focus",C(s)),C(o).is("bordered",f.border),C(o).is("checked",C(c)===C(u)),C(o).m(C(l))])},[g("span",{class:R([C(o).e("input"),C(o).is("disabled",C(a)),C(o).is("checked",C(c)===C(u))])},[ze(g("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":p[0]||(p[0]=m=>Zt(c)?c.value=m:null),class:R(C(o).e("original")),value:C(u),name:f.name||((h=C(i))==null?void 0:h.name),disabled:C(a),type:"radio",onFocus:p[1]||(p[1]=m=>s.value=!0),onBlur:p[2]||(p[2]=m=>s.value=!1),onChange:d,onClick:p[3]||(p[3]=qe(()=>{},["stop"]))},null,42,Poe),[[Yp,C(c)]]),g("span",{class:R(C(o).e("inner"))},null,2)],2),g("span",{class:R(C(o).e("label")),onKeydown:p[4]||(p[4]=qe(()=>{},["stop"]))},[le(f.$slots,"default",{},()=>[te(M(f.label),1)])],34)],2)}}});var Roe=Re(Loe,[["__file","radio.vue"]]);const Foe=Ke({...FM}),Doe=["value","name","disabled"],Boe=K({name:"ElRadioButton"}),zoe=K({...Boe,props:Foe,setup(e){const t=e,n=Ae("radio"),{radioRef:o,focus:r,size:i,disabled:s,modelValue:l,radioGroup:a,actualValue:c}=zM(t),u=D(()=>({backgroundColor:(a==null?void 0:a.fill)||"",borderColor:(a==null?void 0:a.fill)||"",boxShadow:a!=null&&a.fill?`-1px 0 0 0 ${a.fill}`:"",color:(a==null?void 0:a.textColor)||""}));return(d,f)=>{var p;return _(),k("label",{class:R([C(n).b("button"),C(n).is("active",C(l)===C(c)),C(n).is("disabled",C(s)),C(n).is("focus",C(r)),C(n).bm("button",C(i))])},[ze(g("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":f[0]||(f[0]=h=>Zt(l)?l.value=h:null),class:R(C(n).be("button","original-radio")),value:C(c),type:"radio",name:d.name||((p=C(a))==null?void 0:p.name),disabled:C(s),onFocus:f[1]||(f[1]=h=>r.value=!0),onBlur:f[2]||(f[2]=h=>r.value=!1),onClick:f[3]||(f[3]=qe(()=>{},["stop"]))},null,42,Doe),[[Yp,C(l)]]),g("span",{class:R(C(n).be("button","inner")),style:Be(C(l)===C(c)?C(u):{}),onKeydown:f[4]||(f[4]=qe(()=>{},["stop"]))},[le(d.$slots,"default",{},()=>[te(M(d.label),1)])],38)],2)}}});var VM=Re(zoe,[["__file","radio-button.vue"]]);const Voe=Ke({id:{type:String,default:void 0},size:Ms,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),joe=DM,Hoe=["id","aria-label","aria-labelledby"],Uoe=K({name:"ElRadioGroup"}),Woe=K({...Uoe,props:Voe,emits:joe,setup(e,{emit:t}){const n=e,o=Ae("radio"),r=Rr(),i=H(),{formItem:s}=As(),{inputId:l,isLabeledByFormItem:a}=gc(n,{formItemContext:s}),c=d=>{t(Kt,d),tt(()=>t("change",d))};mt(()=>{const d=i.value.querySelectorAll("[type=radio]"),f=d[0];!Array.from(d).some(p=>p.checked)&&f&&(f.tabIndex=0)});const u=D(()=>n.name||r.value);return wt(BM,jn({...ji(n),changeEvent:c,name:u})),ke(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(d=>void 0))}),(d,f)=>(_(),k("div",{id:C(l),ref_key:"radioGroupRef",ref:i,class:R(C(o).b("group")),role:"radiogroup","aria-label":C(a)?void 0:d.label||"radio-group","aria-labelledby":C(a)?C(s).labelId:void 0},[le(d.$slots,"default")],10,Hoe))}});var jM=Re(Woe,[["__file","radio-group.vue"]]);const z1=Vt(Roe,{RadioButton:VM,RadioGroup:jM}),Is=Hn(jM),hh=Hn(VM),HM=Ke({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:_c},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),qoe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Koe=K({name:"ElTag"}),Goe=K({...Koe,props:HM,emits:qoe,setup(e,{emit:t}){const n=e,o=cr(),r=Ae("tag"),i=D(()=>{const{type:a,hit:c,effect:u,closable:d,round:f}=n;return[r.b(),r.is("closable",d),r.m(a||"primary"),r.m(o.value),r.m(u),r.is("hit",c),r.is("round",f)]}),s=a=>{t("close",a)},l=a=>{t("click",a)};return(a,c)=>a.disableTransitions?(_(),k("span",{key:0,class:R(C(i)),style:Be({backgroundColor:a.color}),onClick:l},[g("span",{class:R(C(r).e("content"))},[le(a.$slots,"default")],2),a.closable?(_(),L(C(ge),{key:0,class:R(C(r).e("close")),onClick:qe(s,["stop"])},{default:x(()=>[y(C(Ri))]),_:1},8,["class","onClick"])):O("v-if",!0)],6)):(_(),L(dr,{key:1,name:`${C(r).namespace.value}-zoom-in-center`,appear:""},{default:x(()=>[g("span",{class:R(C(i)),style:Be({backgroundColor:a.color}),onClick:l},[g("span",{class:R(C(r).e("content"))},[le(a.$slots,"default")],2),a.closable?(_(),L(C(ge),{key:0,class:R(C(r).e("close")),onClick:qe(s,["stop"])},{default:x(()=>[y(C(Ri))]),_:1},8,["class","onClick"])):O("v-if",!0)],6)]),_:3},8,["name"]))}});var Yoe=Re(Goe,[["__file","tag.vue"]]);const mh=Vt(Yoe),UM=Symbol("rowContextKey"),Zoe=["start","center","end","space-around","space-between","space-evenly"],Joe=["top","middle","bottom"],Xoe=Ke({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Zoe,default:"start"},align:{type:String,values:Joe}}),Qoe=K({name:"ElRow"}),ere=K({...Qoe,props:Xoe,setup(e){const t=e,n=Ae("row"),o=D(()=>t.gutter);wt(UM,{gutter:o});const r=D(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),i=D(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(s,l)=>(_(),L(Et(s.tag),{class:R(C(i)),style:Be(C(r))},{default:x(()=>[le(s.$slots,"default")]),_:3},8,["class","style"]))}});var tre=Re(ere,[["__file","row.vue"]]);const _h=Vt(tre),nre=Ke({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:we([Number,Object]),default:()=>bo({})},sm:{type:we([Number,Object]),default:()=>bo({})},md:{type:we([Number,Object]),default:()=>bo({})},lg:{type:we([Number,Object]),default:()=>bo({})},xl:{type:we([Number,Object]),default:()=>bo({})}}),ore=K({name:"ElCol"}),rre=K({...ore,props:nre,setup(e){const t=e,{gutter:n}=Ne(UM,{gutter:D(()=>0)}),o=Ae("col"),r=D(()=>{const s={};return n.value&&(s.paddingLeft=s.paddingRight=`${n.value/2}px`),s}),i=D(()=>{const s=[];return["span","offset","pull","push"].forEach(c=>{const u=t[c];$t(u)&&(c==="span"?s.push(o.b(`${t[c]}`)):u>0&&s.push(o.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{$t(t[c])?s.push(o.b(`${c}-${t[c]}`)):st(t[c])&&Object.entries(t[c]).forEach(([u,d])=>{s.push(u!=="span"?o.b(`${c}-${u}-${d}`):o.b(`${c}-${d}`))})}),n.value&&s.push(o.is("guttered")),[o.b(),s]});return(s,l)=>(_(),L(Et(s.tag),{class:R(C(i)),style:Be(C(r))},{default:x(()=>[le(s.$slots,"default")]),_:3},8,["class","style"]))}});var ire=Re(rre,[["__file","col.vue"]]);const gh=Vt(ire),sre=Ke({color:{type:we(Object),required:!0},vertical:{type:Boolean,default:!1}});let rv=!1;function Lp(e,t){if(!kt)return;const n=function(i){var s;(s=t.drag)==null||s.call(t,i)},o=function(i){var s;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",o),document.onselectstart=null,document.ondragstart=null,rv=!1,(s=t.end)==null||s.call(t,i)},r=function(i){var s;rv||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",o),document.addEventListener("touchmove",n),document.addEventListener("touchend",o),rv=!0,(s=t.start)==null||s.call(t,i))};e.addEventListener("mousedown",r),e.addEventListener("touchstart",r)}const lre=e=>{const t=nt(),n=xn(),o=xn();function r(s){s.target!==n.value&&i(s)}function i(s){if(!o.value||!n.value)return;const a=t.vnode.el.getBoundingClientRect(),{clientX:c,clientY:u}=Dw(s);if(e.vertical){let d=u-a.top;d=Math.max(n.value.offsetHeight/2,d),d=Math.min(d,a.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((d-n.value.offsetHeight/2)/(a.height-n.value.offsetHeight)*100))}else{let d=c-a.left;d=Math.max(n.value.offsetWidth/2,d),d=Math.min(d,a.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((d-n.value.offsetWidth/2)/(a.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:o,handleDrag:i,handleClick:r}},are=(e,{bar:t,thumb:n,handleDrag:o})=>{const r=nt(),i=Ae("color-alpha-slider"),s=H(0),l=H(0),a=H();function c(){if(!n.value||e.vertical)return 0;const E=r.vnode.el,w=e.color.get("alpha");return E?Math.round(w*(E.offsetWidth-n.value.offsetWidth/2)/100):0}function u(){if(!n.value)return 0;const E=r.vnode.el;if(!e.vertical)return 0;const w=e.color.get("alpha");return E?Math.round(w*(E.offsetHeight-n.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:E,g:w,b:S}=e.color.toRgb();return`linear-gradient(to right, rgba(${E}, ${w}, ${S}, 0) 0%, rgba(${E}, ${w}, ${S}, 1) 100%)`}return""}function f(){s.value=c(),l.value=u(),a.value=d()}mt(()=>{if(!t.value||!n.value)return;const E={drag:w=>{o(w)},end:w=>{o(w)}};Lp(t.value,E),Lp(n.value,E),f()}),ke(()=>e.color.get("alpha"),()=>f()),ke(()=>e.color.value,()=>f());const p=D(()=>[i.b(),i.is("vertical",e.vertical)]),h=D(()=>i.e("bar")),m=D(()=>i.e("thumb")),b=D(()=>({background:a.value})),v=D(()=>({left:fo(s.value),top:fo(l.value)}));return{rootKls:p,barKls:h,barStyle:b,thumbKls:m,thumbStyle:v,update:f}},cre="ElColorAlphaSlider",ure=K({name:cre}),dre=K({...ure,props:sre,setup(e,{expose:t}){const n=e,{bar:o,thumb:r,handleDrag:i,handleClick:s}=lre(n),{rootKls:l,barKls:a,barStyle:c,thumbKls:u,thumbStyle:d,update:f}=are(n,{bar:o,thumb:r,handleDrag:i});return t({update:f,bar:o,thumb:r}),(p,h)=>(_(),k("div",{class:R(C(l))},[g("div",{ref_key:"bar",ref:o,class:R(C(a)),style:Be(C(c)),onClick:h[0]||(h[0]=(...m)=>C(s)&&C(s)(...m))},null,6),g("div",{ref_key:"thumb",ref:r,class:R(C(u)),style:Be(C(d))},null,6)],2))}});var fre=Re(dre,[["__file","alpha-slider.vue"]]);const pre=K({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Ae("color-hue-slider"),n=nt(),o=H(),r=H(),i=H(0),s=H(0),l=D(()=>e.color.get("hue"));ke(()=>l.value,()=>{f()});function a(p){p.target!==o.value&&c(p)}function c(p){if(!r.value||!o.value)return;const m=n.vnode.el.getBoundingClientRect(),{clientX:b,clientY:v}=Dw(p);let E;if(e.vertical){let w=v-m.top;w=Math.min(w,m.height-o.value.offsetHeight/2),w=Math.max(o.value.offsetHeight/2,w),E=Math.round((w-o.value.offsetHeight/2)/(m.height-o.value.offsetHeight)*360)}else{let w=b-m.left;w=Math.min(w,m.width-o.value.offsetWidth/2),w=Math.max(o.value.offsetWidth/2,w),E=Math.round((w-o.value.offsetWidth/2)/(m.width-o.value.offsetWidth)*360)}e.color.set("hue",E)}function u(){if(!o.value)return 0;const p=n.vnode.el;if(e.vertical)return 0;const h=e.color.get("hue");return p?Math.round(h*(p.offsetWidth-o.value.offsetWidth/2)/360):0}function d(){if(!o.value)return 0;const p=n.vnode.el;if(!e.vertical)return 0;const h=e.color.get("hue");return p?Math.round(h*(p.offsetHeight-o.value.offsetHeight/2)/360):0}function f(){i.value=u(),s.value=d()}return mt(()=>{if(!r.value||!o.value)return;const p={drag:h=>{c(h)},end:h=>{c(h)}};Lp(r.value,p),Lp(o.value,p),f()}),{bar:r,thumb:o,thumbLeft:i,thumbTop:s,hueValue:l,handleClick:a,update:f,ns:t}}});function hre(e,t,n,o,r,i){return _(),k("div",{class:R([e.ns.b(),e.ns.is("vertical",e.vertical)])},[g("div",{ref:"bar",class:R(e.ns.e("bar")),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},null,2),g("div",{ref:"thumb",class:R(e.ns.e("thumb")),style:Be({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var mre=Re(pre,[["render",hre],["__file","hue-slider.vue"]]);const _re=Ke({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Ms,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:we(Array)},validateEvent:{type:Boolean,default:!0}}),gre={[Kt]:e=>je(e)||Ai(e),[tc]:e=>je(e)||Ai(e),activeChange:e=>je(e)||Ai(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},WM=Symbol("colorPickerContextKey"),g6=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},vre=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},bre=function(e){return typeof e=="string"&&e.includes("%")},_u=function(e,t){vre(e)&&(e="100%");const n=bre(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},v6={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Qm=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${v6[t]||t}${v6[n]||n}`},b6=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Qm(e)}${Qm(t)}${Qm(n)}`},iv={A:10,B:11,C:12,D:13,E:14,F:15},ta=function(e){return e.length===2?(iv[e[0].toUpperCase()]||+e[0])*16+(iv[e[1].toUpperCase()]||+e[1]):iv[e[1].toUpperCase()]||+e[1]},yre=function(e,t,n){t=t/100,n=n/100;let o=t;const r=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,o*=r<=1?r:2-r;const i=(n+t)/2,s=n===0?2*o/(r+o):2*t/(n+t);return{h:e,s:s*100,v:i*100}},y6=(e,t,n)=>{e=_u(e,255),t=_u(t,255),n=_u(n,255);const o=Math.max(e,t,n),r=Math.min(e,t,n);let i;const s=o,l=o-r,a=o===0?0:l/o;if(o===r)i=0;else{switch(o){case e:{i=(t-n)/l+(t<n?6:0);break}case t:{i=(n-e)/l+2;break}case n:{i=(e-t)/l+4;break}}i/=6}return{h:i*360,s:a*100,v:s*100}},Vd=function(e,t,n){e=_u(e,360)*6,t=_u(t,100),n=_u(n,100);const o=Math.floor(e),r=e-o,i=n*(1-t),s=n*(1-r*t),l=n*(1-(1-r)*t),a=o%6,c=[n,s,i,i,l,n][a],u=[l,n,n,s,i,i][a],d=[i,i,l,n,n,s][a];return{r:Math.round(c*255),g:Math.round(u*255),b:Math.round(d*255)}};class Uf{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)ut(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const o in t)ut(t,o)&&this.set(o,t[o]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return Vd(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(o,r,i)=>{this._hue=Math.max(0,Math.min(360,o)),this._saturation=Math.max(0,Math.min(100,r)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const o=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,i)=>i>2?Number.parseFloat(r):Number.parseInt(r,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:r,s:i,v:s}=yre(o[0],o[1],o[2]);n(r,i,s)}}else if(t.includes("hsv")){const o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,i)=>i>2?Number.parseFloat(r):Number.parseInt(r,10));o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(t.includes("rgb")){const o=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,i)=>i>2?Number.parseFloat(r):Number.parseInt(r,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:r,s:i,v:s}=y6(o[0],o[1],o[2]);n(r,i,s)}}else if(t.includes("#")){const o=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(o))return;let r,i,s;o.length===3?(r=ta(o[0]+o[0]),i=ta(o[1]+o[1]),s=ta(o[2]+o[2])):(o.length===6||o.length===8)&&(r=ta(o.slice(0,2)),i=ta(o.slice(2,4)),s=ta(o.slice(4,6))),o.length===8?this._alpha=ta(o.slice(6))/255*100:(o.length===3||o.length===6)&&(this._alpha=100);const{h:l,s:a,v:c}=y6(r,i,s);n(l,a,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:o,_alpha:r,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const s=g6(t,n/100,o/100);this.value=`hsla(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(o)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${b6(Vd(t,n,o))}${Qm(r*255/100)}`;break}default:{const{r:s,g:l,b:a}=Vd(t,n,o);this.value=`rgba(${s}, ${l}, ${a}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const s=g6(t,n/100,o/100);this.value=`hsl(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(o)}%)`;break}case"rgb":{const{r:s,g:l,b:a}=Vd(t,n,o);this.value=`rgb(${s}, ${l}, ${a})`;break}default:this.value=b6(Vd(t,n,o))}}}const wre=K({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Ae("color-predefine"),{currentColor:n}=Ne(WM),o=H(i(e.colors,e.color));ke(()=>n.value,s=>{const l=new Uf;l.fromString(s),o.value.forEach(a=>{a.selected=l.compare(a)})}),Zr(()=>{o.value=i(e.colors,e.color)});function r(s){e.color.fromString(e.colors[s])}function i(s,l){return s.map(a=>{const c=new Uf;return c.enableAlpha=!0,c.format="rgba",c.fromString(a),c.selected=c.value===l.value,c})}return{rgbaColors:o,handleSelect:r,ns:t}}}),kre=["onClick"];function xre(e,t,n,o,r,i){return _(),k("div",{class:R(e.ns.b())},[g("div",{class:R(e.ns.e("colors"))},[(_(!0),k(Q,null,Te(e.rgbaColors,(s,l)=>(_(),k("div",{key:e.colors[l],class:R([e.ns.e("color-selector"),e.ns.is("alpha",s._alpha<100),{selected:s.selected}]),onClick:a=>e.handleSelect(l)},[g("div",{style:Be({backgroundColor:s.value})},null,4)],10,kre))),128))],2)],2)}var Cre=Re(wre,[["render",xre],["__file","predefine.vue"]]);const Sre=K({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Ae("color-svpanel"),n=nt(),o=H(0),r=H(0),i=H("hsl(0, 100%, 50%)"),s=D(()=>{const c=e.color.get("hue"),u=e.color.get("value");return{hue:c,value:u}});function l(){const c=e.color.get("saturation"),u=e.color.get("value"),d=n.vnode.el,{clientWidth:f,clientHeight:p}=d;r.value=c*f/100,o.value=(100-u)*p/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function a(c){const d=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:p}=Dw(c);let h=f-d.left,m=p-d.top;h=Math.max(0,h),h=Math.min(h,d.width),m=Math.max(0,m),m=Math.min(m,d.height),r.value=h,o.value=m,e.color.set({saturation:h/d.width*100,value:100-m/d.height*100})}return ke(()=>s.value,()=>{l()}),mt(()=>{Lp(n.vnode.el,{drag:c=>{a(c)},end:c=>{a(c)}}),l()}),{cursorTop:o,cursorLeft:r,background:i,colorValue:s,handleDrag:a,update:l,ns:t}}}),$re=g("div",null,null,-1),Ere=[$re];function Tre(e,t,n,o,r,i){return _(),k("div",{class:R(e.ns.b()),style:Be({backgroundColor:e.background})},[g("div",{class:R(e.ns.e("white"))},null,2),g("div",{class:R(e.ns.e("black"))},null,2),g("div",{class:R(e.ns.e("cursor")),style:Be({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Ere,6)],6)}var Mre=Re(Sre,[["render",Tre],["__file","sv-panel.vue"]]);const Are=["onKeydown"],Ire=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],Ore=K({name:"ElColorPicker"}),Pre=K({...Ore,props:_re,emits:gre,setup(e,{expose:t,emit:n}){const o=e,{t:r}=Dn(),i=Ae("color"),{formItem:s}=As(),l=cr(),a=fi(),{inputId:c,isLabeledByFormItem:u}=gc(o,{formItemContext:s}),d=H(),f=H(),p=H(),h=H(),m=H(),b=H(),{isFocused:v,handleFocus:E,handleBlur:w}=y3(m,{beforeBlur(se){var Le;return(Le=h.value)==null?void 0:Le.isFocusInsideContent(se)},afterBlur(){Z(!1),F()}}),S=se=>{if(a.value)return he();E(se)};let T=!0;const $=jn(new Uf({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue})),A=H(!1),P=H(!1),N=H(""),I=D(()=>!o.modelValue&&!P.value?"transparent":oe($,o.showAlpha)),B=D(()=>!o.modelValue&&!P.value?"":$.value),V=D(()=>u.value?void 0:o.label||r("el.colorpicker.defaultLabel")),G=D(()=>u.value?s==null?void 0:s.labelId:void 0),ne=D(()=>[i.b("picker"),i.is("disabled",a.value),i.bm("picker",l.value),i.is("focused",v.value)]);function oe(se,Le){if(!(se instanceof Uf))throw new TypeError("color should be instance of _color Class");const{r:et,g:j,b:W}=se.toRgb();return Le?`rgba(${et}, ${j}, ${W}, ${se.get("alpha")/100})`:`rgb(${et}, ${j}, ${W})`}function Z(se){A.value=se}const q=Xa(Z,100,{leading:!0});function X(){a.value||Z(!0)}function ee(){q(!1),F()}function F(){tt(()=>{o.modelValue?$.fromString(o.modelValue):($.value="",tt(()=>{P.value=!1}))})}function be(){a.value||q(!A.value)}function xe(){$.fromString(N.value)}function U(){const se=$.value;n(Kt,se),n("change",se),o.validateEvent&&(s==null||s.validate("change").catch(Le=>void 0)),q(!1),tt(()=>{const Le=new Uf({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue});$.compare(Le)||F()})}function Ee(){q(!1),n(Kt,null),n("change",null),o.modelValue!==null&&o.validateEvent&&(s==null||s.validate("change").catch(se=>void 0)),F()}function Ze(se){if(A.value&&(ee(),v.value)){const Le=new FocusEvent("focus",se);w(Le)}}function Fe(se){se.preventDefault(),se.stopPropagation(),Z(!1),F()}function J(se){switch(se.code){case ht.enter:case ht.space:se.preventDefault(),se.stopPropagation(),X(),b.value.focus();break;case ht.esc:Fe(se);break}}function ce(){m.value.focus()}function he(){m.value.blur()}return mt(()=>{o.modelValue&&(N.value=B.value)}),ke(()=>o.modelValue,se=>{se?se&&se!==$.value&&(T=!1,$.fromString(se)):P.value=!1}),ke(()=>B.value,se=>{N.value=se,T&&n("activeChange",se),T=!0}),ke(()=>$.value,()=>{!o.modelValue&&!P.value&&(P.value=!0)}),ke(()=>A.value,()=>{tt(()=>{var se,Le,et;(se=d.value)==null||se.update(),(Le=f.value)==null||Le.update(),(et=p.value)==null||et.update()})}),wt(WM,{currentColor:B}),t({color:$,show:X,hide:ee,focus:ce,blur:he}),(se,Le)=>(_(),L(C(fd),{ref_key:"popper",ref:h,visible:A.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[C(i).be("picker","panel"),C(i).b("dropdown"),se.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${C(i).namespace.value}-zoom-in-top`,persistent:"",onHide:Le[2]||(Le[2]=et=>Z(!1))},{content:x(()=>[ze((_(),k("div",{onKeydown:Ut(Fe,["esc"])},[g("div",{class:R(C(i).be("dropdown","main-wrapper"))},[y(mre,{ref_key:"hue",ref:d,class:"hue-slider",color:C($),vertical:""},null,8,["color"]),y(Mre,{ref_key:"sv",ref:f,color:C($)},null,8,["color"])],2),se.showAlpha?(_(),L(fre,{key:0,ref_key:"alpha",ref:p,color:C($)},null,8,["color"])):O("v-if",!0),se.predefine?(_(),L(Cre,{key:1,ref:"predefine",color:C($),colors:se.predefine},null,8,["color","colors"])):O("v-if",!0),g("div",{class:R(C(i).be("dropdown","btns"))},[g("span",{class:R(C(i).be("dropdown","value"))},[y(C(An),{ref_key:"inputRef",ref:b,modelValue:N.value,"onUpdate:modelValue":Le[0]||(Le[0]=et=>N.value=et),"validate-event":!1,size:"small",onKeyup:Ut(xe,["enter"]),onBlur:xe},null,8,["modelValue","onKeyup"])],2),y(C(Ye),{class:R(C(i).be("dropdown","link-btn")),text:"",size:"small",onClick:Ee},{default:x(()=>[te(M(C(r)("el.colorpicker.clear")),1)]),_:1},8,["class"]),y(C(Ye),{plain:"",size:"small",class:R(C(i).be("dropdown","btn")),onClick:U},{default:x(()=>[te(M(C(r)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,Are)),[[C(A3),Ze]])]),default:x(()=>[g("div",{id:C(c),ref_key:"triggerRef",ref:m,class:R(C(ne)),role:"button","aria-label":C(V),"aria-labelledby":C(G),"aria-description":C(r)("el.colorpicker.description",{color:se.modelValue||""}),"aria-disabled":C(a),tabindex:C(a)?-1:se.tabindex,onKeydown:J,onFocus:S,onBlur:Le[1]||(Le[1]=(...et)=>C(w)&&C(w)(...et))},[C(a)?(_(),k("div",{key:0,class:R(C(i).be("picker","mask"))},null,2)):O("v-if",!0),g("div",{class:R(C(i).be("picker","trigger")),onClick:be},[g("span",{class:R([C(i).be("picker","color"),C(i).is("alpha",se.showAlpha)])},[g("span",{class:R(C(i).be("picker","color-inner")),style:Be({backgroundColor:C(I)})},[ze(y(C(ge),{class:R([C(i).be("picker","icon"),C(i).is("icon-arrow-down")])},{default:x(()=>[y(C(lh))]),_:1},8,["class"]),[[sn,se.modelValue||P.value]]),ze(y(C(ge),{class:R([C(i).be("picker","empty"),C(i).is("icon-close")])},{default:x(()=>[y(C(Ri))]),_:1},8,["class"]),[[sn,!se.modelValue&&!P.value]])],6)],2)],2)],42,Ire)]),_:1},8,["visible","popper-class","transition"]))}});var Nre=Re(Pre,[["__file","color-picker.vue"]]);const qM=Vt(Nre),Lre=K({name:"ElContainer"}),Rre=K({...Lre,props:{direction:{type:String}},setup(e){const t=e,n=Ui(),o=Ae("container"),r=D(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(s=>{const l=s.type.name;return l==="ElHeader"||l==="ElFooter"}):!1);return(i,s)=>(_(),k("section",{class:R([C(o).b(),C(o).is("vertical",C(r))])},[le(i.$slots,"default")],2))}});var Fre=Re(Rre,[["__file","container.vue"]]);const Dre=K({name:"ElAside"}),Bre=K({...Dre,props:{width:{type:String,default:null}},setup(e){const t=e,n=Ae("aside"),o=D(()=>t.width?n.cssVarBlock({width:t.width}):{});return(r,i)=>(_(),k("aside",{class:R(C(n).b()),style:Be(C(o))},[le(r.$slots,"default")],6))}});var KM=Re(Bre,[["__file","aside.vue"]]);const zre=K({name:"ElFooter"}),Vre=K({...zre,props:{height:{type:String,default:null}},setup(e){const t=e,n=Ae("footer"),o=D(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(_(),k("footer",{class:R(C(n).b()),style:Be(C(o))},[le(r.$slots,"default")],6))}});var GM=Re(Vre,[["__file","footer.vue"]]);const jre=K({name:"ElHeader"}),Hre=K({...jre,props:{height:{type:String,default:null}},setup(e){const t=e,n=Ae("header"),o=D(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(_(),k("header",{class:R(C(n).b()),style:Be(C(o))},[le(r.$slots,"default")],6))}});var YM=Re(Hre,[["__file","header.vue"]]);const Ure=K({name:"ElMain"}),Wre=K({...Ure,setup(e){const t=Ae("main");return(n,o)=>(_(),k("main",{class:R(C(t).b())},[le(n.$slots,"default")],2))}});var ZM=Re(Wre,[["__file","main.vue"]]);const hd=Vt(Fre,{Aside:KM,Footer:GM,Header:YM,Main:ZM}),vh=Hn(KM);Hn(GM);const JM=Hn(YM),Os=Hn(ZM),qre=Ke({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:we([String,Array,Object])},zIndex:{type:we([String,Number])}}),Kre={click:e=>e instanceof MouseEvent},Gre="overlay";var Yre=K({name:"ElOverlay",props:qre,emits:Kre,setup(e,{slots:t,emit:n}){const o=Ae(Gre),r=a=>{n("click",a)},{onClick:i,onMousedown:s,onMouseup:l}=m3(e.customMaskEvent?void 0:r);return()=>e.mask?y("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:s,onMouseup:l},[le(t,"default")],qm.STYLE|qm.CLASS|qm.PROPS,["onClick","onMouseup","onMousedown"]):Xe("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[le(t,"default")])}});const I3=Yre,XM=Symbol("dialogInjectionKey"),QM=Ke({center:Boolean,alignCenter:Boolean,closeIcon:{type:Ln},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),Zre={close:()=>!0},Jre=["aria-level"],Xre=["aria-label"],Qre=["id"],eie=K({name:"ElDialogContent"}),tie=K({...eie,props:QM,emits:Zre,setup(e){const t=e,{t:n}=Dn(),{Close:o}=CT,{dialogRef:r,headerRef:i,bodyId:s,ns:l,style:a}=Ne(XM),{focusTrapRef:c}=Ne(C3),u=D(()=>[l.b(),l.is("fullscreen",t.fullscreen),l.is("draggable",t.draggable),l.is("align-center",t.alignCenter),{[l.m("center")]:t.center}]),d=i3(c,r),f=D(()=>t.draggable),p=D(()=>t.overflow);return MT(r,i,f,p),(h,m)=>(_(),k("div",{ref:C(d),class:R(C(u)),style:Be(C(a)),tabindex:"-1"},[g("header",{ref_key:"headerRef",ref:i,class:R([C(l).e("header"),{"show-close":h.showClose}])},[le(h.$slots,"header",{},()=>[g("span",{role:"heading","aria-level":h.ariaLevel,class:R(C(l).e("title"))},M(h.title),11,Jre)]),h.showClose?(_(),k("button",{key:0,"aria-label":C(n)("el.dialog.close"),class:R(C(l).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=b=>h.$emit("close"))},[y(C(ge),{class:R(C(l).e("close"))},{default:x(()=>[(_(),L(Et(h.closeIcon||C(o))))]),_:1},8,["class"])],10,Xre)):O("v-if",!0)],2),g("div",{id:C(s),class:R(C(l).e("body"))},[le(h.$slots,"default")],10,Qre),h.$slots.footer?(_(),k("footer",{key:0,class:R(C(l).e("footer"))},[le(h.$slots,"footer")],2)):O("v-if",!0)],6))}});var nie=Re(tie,[["__file","dialog-content.vue"]]);const eA=Ke({...QM,appendToBody:Boolean,appendTo:{type:we(String),default:"body"},beforeClose:{type:we(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),tA={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Kt]:e=>ao(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},nA=(e,t)=>{var n;const r=nt().emit,{nextZIndex:i}=N1();let s="";const l=Rr(),a=Rr(),c=H(!1),u=H(!1),d=H(!1),f=H((n=e.zIndex)!=null?n:i());let p,h;const m=fh("namespace",Bf),b=D(()=>{const oe={},Z=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(oe[`${Z}-margin-top`]=e.top),e.width&&(oe[`${Z}-width`]=fo(e.width))),oe}),v=D(()=>e.alignCenter?{display:"flex"}:{});function E(){r("opened")}function w(){r("closed"),r(Kt,!1),e.destroyOnClose&&(d.value=!1)}function S(){r("close")}function T(){h==null||h(),p==null||p(),e.openDelay&&e.openDelay>0?{stop:p}=Db(()=>N(),e.openDelay):N()}function $(){p==null||p(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=Db(()=>I(),e.closeDelay):I()}function A(){function oe(Z){Z||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(oe):$()}function P(){e.closeOnClickModal&&A()}function N(){kt&&(c.value=!0)}function I(){c.value=!1}function B(){r("openAutoFocus")}function V(){r("closeAutoFocus")}function G(oe){var Z;((Z=oe.detail)==null?void 0:Z.focusReason)==="pointer"&&oe.preventDefault()}e.lockScroll&&OT(c);function ne(){e.closeOnPressEscape&&A()}return ke(()=>e.modelValue,oe=>{oe?(u.value=!1,T(),d.value=!0,f.value=uT(e.zIndex)?i():f.value++,tt(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):c.value&&$()}),ke(()=>e.fullscreen,oe=>{t.value&&(oe?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),mt(()=>{e.modelValue&&(c.value=!0,d.value=!0,T())}),{afterEnter:E,afterLeave:w,beforeLeave:S,handleClose:A,onModalClick:P,close:$,doClose:I,onOpenAutoFocus:B,onCloseAutoFocus:V,onCloseRequested:ne,onFocusoutPrevented:G,titleId:l,bodyId:a,closed:u,style:b,overlayDialogStyle:v,rendered:d,visible:c,zIndex:f}},oie=["aria-label","aria-labelledby","aria-describedby"],rie=K({name:"ElDialog",inheritAttrs:!1}),iie=K({...rie,props:eA,emits:tA,setup(e,{expose:t}){const n=e,o=Ui();Ra({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},D(()=>!!o.title));const r=Ae("dialog"),i=H(),s=H(),l=H(),{visible:a,titleId:c,bodyId:u,style:d,overlayDialogStyle:f,rendered:p,zIndex:h,afterEnter:m,afterLeave:b,beforeLeave:v,handleClose:E,onModalClick:w,onOpenAutoFocus:S,onCloseAutoFocus:T,onCloseRequested:$,onFocusoutPrevented:A}=nA(n,i);wt(XM,{dialogRef:i,headerRef:s,bodyId:u,ns:r,rendered:p,style:d});const P=m3(w),N=D(()=>n.draggable&&!n.fullscreen);return t({visible:a,dialogContentRef:l}),(I,B)=>(_(),L(sr,{to:I.appendTo,disabled:I.appendTo!=="body"?!1:!I.appendToBody},[y(dr,{name:"dialog-fade",onAfterEnter:C(m),onAfterLeave:C(b),onBeforeLeave:C(v),persisted:""},{default:x(()=>[ze(y(C(I3),{"custom-mask-event":"",mask:I.modal,"overlay-class":I.modalClass,"z-index":C(h)},{default:x(()=>[g("div",{role:"dialog","aria-modal":"true","aria-label":I.title||void 0,"aria-labelledby":I.title?void 0:C(c),"aria-describedby":C(u),class:R(`${C(r).namespace.value}-overlay-dialog`),style:Be(C(f)),onClick:B[0]||(B[0]=(...V)=>C(P).onClick&&C(P).onClick(...V)),onMousedown:B[1]||(B[1]=(...V)=>C(P).onMousedown&&C(P).onMousedown(...V)),onMouseup:B[2]||(B[2]=(...V)=>C(P).onMouseup&&C(P).onMouseup(...V))},[y(C(B1),{loop:"",trapped:C(a),"focus-start-el":"container",onFocusAfterTrapped:C(S),onFocusAfterReleased:C(T),onFocusoutPrevented:C(A),onReleaseRequested:C($)},{default:x(()=>[C(p)?(_(),L(nie,hn({key:0,ref_key:"dialogContentRef",ref:l},I.$attrs,{center:I.center,"align-center":I.alignCenter,"close-icon":I.closeIcon,draggable:C(N),overflow:I.overflow,fullscreen:I.fullscreen,"show-close":I.showClose,title:I.title,"aria-level":I.headerAriaLevel,onClose:C(E)}),Vo({header:x(()=>[I.$slots.title?le(I.$slots,"title",{key:1}):le(I.$slots,"header",{key:0,close:C(E),titleId:C(c),titleClass:C(r).e("title")})]),default:x(()=>[le(I.$slots,"default")]),_:2},[I.$slots.footer?{name:"footer",fn:x(()=>[le(I.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):O("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,oie)]),_:3},8,["mask","overlay-class","z-index"]),[[sn,C(a)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var sie=Re(iie,[["__file","dialog.vue"]]);const bh=Vt(sie),lie=Ke({...eA,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),aie=tA,cie=["aria-label","aria-labelledby","aria-describedby"],uie=["id","aria-level"],die=["aria-label"],fie=["id"],pie=K({name:"ElDrawer",inheritAttrs:!1}),hie=K({...pie,props:lie,emits:aie,setup(e,{expose:t}){const n=e,o=Ui();Ra({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},D(()=>!!o.title));const r=H(),i=H(),s=Ae("drawer"),{t:l}=Dn(),{afterEnter:a,afterLeave:c,beforeLeave:u,visible:d,rendered:f,titleId:p,bodyId:h,zIndex:m,onModalClick:b,onOpenAutoFocus:v,onCloseAutoFocus:E,onFocusoutPrevented:w,onCloseRequested:S,handleClose:T}=nA(n,r),$=D(()=>n.direction==="rtl"||n.direction==="ltr"),A=D(()=>fo(n.size));return t({handleClose:T,afterEnter:a,afterLeave:c}),(P,N)=>(_(),L(sr,{to:"body",disabled:!P.appendToBody},[y(dr,{name:C(s).b("fade"),onAfterEnter:C(a),onAfterLeave:C(c),onBeforeLeave:C(u),persisted:""},{default:x(()=>[ze(y(C(I3),{mask:P.modal,"overlay-class":P.modalClass,"z-index":C(m),onClick:C(b)},{default:x(()=>[y(C(B1),{loop:"",trapped:C(d),"focus-trap-el":r.value,"focus-start-el":i.value,onFocusAfterTrapped:C(v),onFocusAfterReleased:C(E),onFocusoutPrevented:C(w),onReleaseRequested:C(S)},{default:x(()=>[g("div",hn({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":P.title||void 0,"aria-labelledby":P.title?void 0:C(p),"aria-describedby":C(h)},P.$attrs,{class:[C(s).b(),P.direction,C(d)&&"open"],style:C($)?"width: "+C(A):"height: "+C(A),role:"dialog",onClick:N[1]||(N[1]=qe(()=>{},["stop"]))}),[g("span",{ref_key:"focusStartRef",ref:i,class:R(C(s).e("sr-focus")),tabindex:"-1"},null,2),P.withHeader?(_(),k("header",{key:0,class:R(C(s).e("header"))},[P.$slots.title?le(P.$slots,"title",{key:1},()=>[O(" DEPRECATED SLOT ")]):le(P.$slots,"header",{key:0,close:C(T),titleId:C(p),titleClass:C(s).e("title")},()=>[P.$slots.title?O("v-if",!0):(_(),k("span",{key:0,id:C(p),role:"heading","aria-level":P.headerAriaLevel,class:R(C(s).e("title"))},M(P.title),11,uie))]),P.showClose?(_(),k("button",{key:2,"aria-label":C(l)("el.drawer.close"),class:R(C(s).e("close-btn")),type:"button",onClick:N[0]||(N[0]=(...I)=>C(T)&&C(T)(...I))},[y(C(ge),{class:R(C(s).e("close"))},{default:x(()=>[y(C(Ri))]),_:1},8,["class"])],10,die)):O("v-if",!0)],2)):O("v-if",!0),C(f)?(_(),k("div",{key:1,id:C(h),class:R(C(s).e("body"))},[le(P.$slots,"default")],10,fie)):O("v-if",!0),P.$slots.footer?(_(),k("div",{key:2,class:R(C(s).e("footer"))},[le(P.$slots,"footer")],2)):O("v-if",!0)],16,cie)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[sn,C(d)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var mie=Re(hie,[["__file","drawer.vue"]]);const oA=Vt(mie),_ie=K({inheritAttrs:!1});function gie(e,t,n,o,r,i){return le(e.$slots,"default")}var vie=Re(_ie,[["render",gie],["__file","collection.vue"]]);const bie=K({name:"ElCollectionItem",inheritAttrs:!1});function yie(e,t,n,o,r,i){return le(e.$slots,"default")}var wie=Re(bie,[["render",yie],["__file","collection-item.vue"]]);const rA="data-el-collection-item",iA=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),r=Symbol(n),i={...vie,name:t,setup(){const l=H(null),a=new Map;wt(o,{itemMap:a,getItems:()=>{const u=C(l);if(!u)return[];const d=Array.from(u.querySelectorAll(`[${rA}]`));return[...a.values()].sort((p,h)=>d.indexOf(p.ref)-d.indexOf(h.ref))},collectionRef:l})}},s={...wie,name:n,setup(l,{attrs:a}){const c=H(null),u=Ne(o,void 0);wt(r,{collectionItemRef:c}),mt(()=>{const d=C(c);d&&u.itemMap.set(d,{ref:d,...a})}),yn(()=>{const d=C(c);u.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:i,ElCollectionItem:s}},kie=Ke({style:{type:we([String,Array,Object])},currentTabId:{type:we(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:we(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:xie,ElCollectionItem:Cie,COLLECTION_INJECTION_KEY:O3,COLLECTION_ITEM_INJECTION_KEY:Sie}=iA("RovingFocusGroup"),P3=Symbol("elRovingFocusGroup"),sA=Symbol("elRovingFocusGroupItem"),$ie={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Eie=(e,t)=>{if(t!=="rtl")return e;switch(e){case ht.right:return ht.left;case ht.left:return ht.right;default:return e}},Tie=(e,t,n)=>{const o=Eie(e.key,n);if(!(t==="vertical"&&[ht.left,ht.right].includes(o))&&!(t==="horizontal"&&[ht.up,ht.down].includes(o)))return $ie[o]},Mie=(e,t)=>e.map((n,o)=>e[(o+t)%e.length]),N3=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},w6="currentTabIdChange",k6="rovingFocusGroup.entryFocus",Aie={bubbles:!1,cancelable:!0},Iie=K({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:kie,emits:[w6,"entryFocus"],setup(e,{emit:t}){var n;const o=H((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),r=H(!1),i=H(!1),s=H(null),{getItems:l}=Ne(O3,void 0),a=D(()=>[{outline:"none"},e.style]),c=m=>{t(w6,m)},u=()=>{r.value=!0},d=$n(m=>{var b;(b=e.onMousedown)==null||b.call(e,m)},()=>{i.value=!0}),f=$n(m=>{var b;(b=e.onFocus)==null||b.call(e,m)},m=>{const b=!C(i),{target:v,currentTarget:E}=m;if(v===E&&b&&!C(r)){const w=new Event(k6,Aie);if(E==null||E.dispatchEvent(w),!w.defaultPrevented){const S=l().filter(N=>N.focusable),T=S.find(N=>N.active),$=S.find(N=>N.id===C(o)),P=[T,$,...S].filter(Boolean).map(N=>N.ref);N3(P)}}i.value=!1}),p=$n(m=>{var b;(b=e.onBlur)==null||b.call(e,m)},()=>{r.value=!1}),h=(...m)=>{t("entryFocus",...m)};wt(P3,{currentTabbedId:dc(o),loop:Nn(e,"loop"),tabIndex:D(()=>C(r)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:a,orientation:Nn(e,"orientation"),dir:Nn(e,"dir"),onItemFocus:c,onItemShiftTab:u,onBlur:p,onFocus:f,onMousedown:d}),ke(()=>e.currentTabId,m=>{o.value=m??null}),Tn(s,k6,h)}});function Oie(e,t,n,o,r,i){return le(e.$slots,"default")}var Pie=Re(Iie,[["render",Oie],["__file","roving-focus-group-impl.vue"]]);const Nie=K({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:xie,ElRovingFocusGroupImpl:Pie}});function Lie(e,t,n,o,r,i){const s=z("el-roving-focus-group-impl"),l=z("el-focus-group-collection");return _(),L(l,null,{default:x(()=>[y(s,U2(hw(e.$attrs)),{default:x(()=>[le(e.$slots,"default")]),_:3},16)]),_:3})}var Rie=Re(Nie,[["render",Lie],["__file","roving-focus-group.vue"]]);const Fie=K({components:{ElRovingFocusCollectionItem:Cie},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:o,onItemFocus:r,onItemShiftTab:i}=Ne(P3,void 0),{getItems:s}=Ne(O3,void 0),l=Rr(),a=H(null),c=$n(p=>{t("mousedown",p)},p=>{e.focusable?r(C(l)):p.preventDefault()}),u=$n(p=>{t("focus",p)},()=>{r(C(l))}),d=$n(p=>{t("keydown",p)},p=>{const{key:h,shiftKey:m,target:b,currentTarget:v}=p;if(h===ht.tab&&m){i();return}if(b!==v)return;const E=Tie(p);if(E){p.preventDefault();let S=s().filter(T=>T.focusable).map(T=>T.ref);switch(E){case"last":{S.reverse();break}case"prev":case"next":{E==="prev"&&S.reverse();const T=S.indexOf(v);S=o.value?Mie(S,T+1):S.slice(T+1);break}}tt(()=>{N3(S)})}}),f=D(()=>n.value===C(l));return wt(sA,{rovingFocusGroupItemRef:a,tabIndex:D(()=>C(f)?0:-1),handleMousedown:c,handleFocus:u,handleKeydown:d}),{id:l,handleKeydown:d,handleFocus:u,handleMousedown:c}}});function Die(e,t,n,o,r,i){const s=z("el-roving-focus-collection-item");return _(),L(s,{id:e.id,focusable:e.focusable,active:e.active},{default:x(()=>[le(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Bie=Re(Fie,[["render",Die],["__file","roving-focus-item.vue"]]);const e_=Ke({trigger:Np.trigger,effect:{...Qo.effect,default:"light"},type:{type:we(String)},placement:{type:we(String),default:"bottom"},popperOptions:{type:we(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:we([Number,String]),default:0},maxHeight:{type:we([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:we(Object)},teleported:Qo.teleported}),lA=Ke({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ln}}),zie=Ke({onKeydown:{type:we(Function)}}),Vie=[ht.down,ht.pageDown,ht.home],aA=[ht.up,ht.pageUp,ht.end],jie=[...Vie,...aA],{ElCollection:Hie,ElCollectionItem:Uie,COLLECTION_INJECTION_KEY:Wie,COLLECTION_ITEM_INJECTION_KEY:qie}=iA("Dropdown"),V1=Symbol("elDropdown"),{ButtonGroup:Kie}=Ye,Gie=K({name:"ElDropdown",components:{ElButton:Ye,ElButtonGroup:Kie,ElScrollbar:$o,ElDropdownCollection:Hie,ElTooltip:fd,ElRovingFocusGroup:Rie,ElOnlyChild:mM,ElIcon:ge,ArrowDown:lh},props:e_,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=nt(),o=Ae("dropdown"),{t:r}=Dn(),i=H(),s=H(),l=H(null),a=H(null),c=H(null),u=H(null),d=H(!1),f=[ht.enter,ht.space,ht.down],p=D(()=>({maxHeight:fo(e.maxHeight)})),h=D(()=>[o.m(T.value)]),m=D(()=>wg(e.trigger)),b=Rr().value,v=D(()=>e.id||b);ke([i,m],([q,X],[ee])=>{var F,be,xe;(F=ee==null?void 0:ee.$el)!=null&&F.removeEventListener&&ee.$el.removeEventListener("pointerenter",A),(be=q==null?void 0:q.$el)!=null&&be.removeEventListener&&q.$el.removeEventListener("pointerenter",A),(xe=q==null?void 0:q.$el)!=null&&xe.addEventListener&&X.includes("hover")&&q.$el.addEventListener("pointerenter",A)},{immediate:!0}),yn(()=>{var q,X;(X=(q=i.value)==null?void 0:q.$el)!=null&&X.removeEventListener&&i.value.$el.removeEventListener("pointerenter",A)});function E(){w()}function w(){var q;(q=l.value)==null||q.onClose()}function S(){var q;(q=l.value)==null||q.onOpen()}const T=cr();function $(...q){t("command",...q)}function A(){var q,X;(X=(q=i.value)==null?void 0:q.$el)==null||X.focus()}function P(){}function N(){const q=C(a);m.value.includes("hover")&&(q==null||q.focus()),u.value=null}function I(q){u.value=q}function B(q){d.value||(q.preventDefault(),q.stopImmediatePropagation())}function V(){t("visible-change",!0)}function G(q){(q==null?void 0:q.type)==="keydown"&&a.value.focus()}function ne(){t("visible-change",!1)}return wt(V1,{contentRef:a,role:D(()=>e.role),triggerId:v,isUsingKeyboard:d,onItemEnter:P,onItemLeave:N}),wt("elDropdown",{instance:n,dropdownSize:T,handleClick:E,commandHandler:$,trigger:Nn(e,"trigger"),hideOnClick:Nn(e,"hideOnClick")}),{t:r,ns:o,scrollbar:c,wrapStyle:p,dropdownTriggerKls:h,dropdownSize:T,triggerId:v,triggerKeys:f,currentTabId:u,handleCurrentTabIdChange:I,handlerMainButtonClick:q=>{t("click",q)},handleEntryFocus:B,handleClose:w,handleOpen:S,handleBeforeShowTooltip:V,handleShowTooltip:G,handleBeforeHideTooltip:ne,onFocusAfterTrapped:q=>{var X,ee;q.preventDefault(),(ee=(X=a.value)==null?void 0:X.focus)==null||ee.call(X,{preventScroll:!0})},popperRef:l,contentRef:a,triggeringElementRef:i,referenceElementRef:s}}});function Yie(e,t,n,o,r,i){var s;const l=z("el-dropdown-collection"),a=z("el-roving-focus-group"),c=z("el-scrollbar"),u=z("el-only-child"),d=z("el-tooltip"),f=z("el-button"),p=z("arrow-down"),h=z("el-icon"),m=z("el-button-group");return _(),k("div",{class:R([e.ns.b(),e.ns.is("disabled",e.disabled)])},[y(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(s=e.referenceElementRef)==null?void 0:s.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Vo({content:x(()=>[y(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:x(()=>[y(a,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:x(()=>[y(l,null,{default:x(()=>[le(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:x(()=>[y(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:x(()=>[le(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(_(),L(m,{key:0},{default:x(()=>[y(f,hn({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:x(()=>[le(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),y(f,hn({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:x(()=>[y(h,{class:R(e.ns.e("icon"))},{default:x(()=>[y(p)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):O("v-if",!0)],2)}var Zie=Re(Gie,[["render",Yie],["__file","dropdown.vue"]]);const Jie=K({name:"DropdownItemImpl",components:{ElIcon:ge},props:lA,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Ae("dropdown"),{role:o}=Ne(V1,void 0),{collectionItemRef:r}=Ne(qie,void 0),{collectionItemRef:i}=Ne(Sie,void 0),{rovingFocusGroupItemRef:s,tabIndex:l,handleFocus:a,handleKeydown:c,handleMousedown:u}=Ne(sA,void 0),d=i3(r,i,s),f=D(()=>o.value==="menu"?"menuitem":o.value==="navigation"?"link":"button"),p=$n(h=>{const{code:m}=h;if(m===ht.enter||m===ht.space)return h.preventDefault(),h.stopImmediatePropagation(),t("clickimpl",h),!0},c);return{ns:n,itemRef:d,dataset:{[rA]:""},role:f,tabIndex:l,handleFocus:a,handleKeydown:p,handleMousedown:u}}}),Xie=["aria-disabled","tabindex","role"];function Qie(e,t,n,o,r,i){const s=z("el-icon");return _(),k(Q,null,[e.divided?(_(),k("li",hn({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):O("v-if",!0),g("li",hn({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=l=>e.$emit("clickimpl",l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onKeydown:t[2]||(t[2]=qe((...l)=>e.handleKeydown&&e.handleKeydown(...l),["self"])),onMousedown:t[3]||(t[3]=(...l)=>e.handleMousedown&&e.handleMousedown(...l)),onPointermove:t[4]||(t[4]=l=>e.$emit("pointermove",l)),onPointerleave:t[5]||(t[5]=l=>e.$emit("pointerleave",l))}),[e.icon?(_(),L(s,{key:0},{default:x(()=>[(_(),L(Et(e.icon)))]),_:1})):O("v-if",!0),le(e.$slots,"default")],16,Xie)],64)}var ese=Re(Jie,[["render",Qie],["__file","dropdown-item-impl.vue"]]);const cA=()=>{const e=Ne("elDropdown",{}),t=D(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},tse=K({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Uie,ElRovingFocusItem:Bie,ElDropdownItemImpl:ese},inheritAttrs:!1,props:lA,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=cA(),r=nt(),i=H(null),s=D(()=>{var p,h;return(h=(p=C(i))==null?void 0:p.textContent)!=null?h:""}),{onItemEnter:l,onItemLeave:a}=Ne(V1,void 0),c=$n(p=>(t("pointermove",p),p.defaultPrevented),O5(p=>{if(e.disabled){a(p);return}const h=p.currentTarget;h===document.activeElement||h.contains(document.activeElement)||(l(p),p.defaultPrevented||h==null||h.focus())})),u=$n(p=>(t("pointerleave",p),p.defaultPrevented),O5(p=>{a(p)})),d=$n(p=>{if(!e.disabled)return t("click",p),p.type!=="keydown"&&p.defaultPrevented},p=>{var h,m,b;if(e.disabled){p.stopImmediatePropagation();return}(h=o==null?void 0:o.hideOnClick)!=null&&h.value&&((m=o.handleClick)==null||m.call(o)),(b=o.commandHandler)==null||b.call(o,e.command,r,p)}),f=D(()=>({...e,...n}));return{handleClick:d,handlePointerMove:c,handlePointerLeave:u,textContent:s,propsAndAttrs:f}}});function nse(e,t,n,o,r,i){var s;const l=z("el-dropdown-item-impl"),a=z("el-roving-focus-item"),c=z("el-dropdown-collection-item");return _(),L(c,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:x(()=>[y(a,{focusable:!e.disabled},{default:x(()=>[y(l,hn(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:x(()=>[le(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var uA=Re(tse,[["render",nse],["__file","dropdown-item.vue"]]);const ose=K({name:"ElDropdownMenu",props:zie,setup(e){const t=Ae("dropdown"),{_elDropdownSize:n}=cA(),o=n.value,{focusTrapRef:r,onKeydown:i}=Ne(C3,void 0),{contentRef:s,role:l,triggerId:a}=Ne(V1,void 0),{collectionRef:c,getItems:u}=Ne(Wie,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:f,tabIndex:p,onBlur:h,onFocus:m,onMousedown:b}=Ne(P3,void 0),{collectionRef:v}=Ne(O3,void 0),E=D(()=>[t.b("menu"),t.bm("menu",o==null?void 0:o.value)]),w=i3(s,c,r,d,v),S=$n($=>{var A;(A=e.onKeydown)==null||A.call(e,$)},$=>{const{currentTarget:A,code:P,target:N}=$;if(A.contains(N),ht.tab===P&&$.stopImmediatePropagation(),$.preventDefault(),N!==C(s)||!jie.includes(P))return;const B=u().filter(V=>!V.disabled).map(V=>V.ref);aA.includes(P)&&B.reverse(),N3(B)});return{size:o,rovingFocusGroupRootStyle:f,tabIndex:p,dropdownKls:E,role:l,triggerId:a,dropdownListWrapperRef:w,handleKeydown:$=>{S($),i($)},onBlur:h,onFocus:m,onMousedown:b}}}),rse=["role","aria-labelledby"];function ise(e,t,n,o,r,i){return _(),k("ul",{ref:e.dropdownListWrapperRef,class:R(e.dropdownKls),style:Be(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...s)=>e.onBlur&&e.onBlur(...s)),onFocus:t[1]||(t[1]=(...s)=>e.onFocus&&e.onFocus(...s)),onKeydown:t[2]||(t[2]=qe((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=qe((...s)=>e.onMousedown&&e.onMousedown(...s),["self"]))},[le(e.$slots,"default")],46,rse)}var dA=Re(ose,[["render",ise],["__file","dropdown-menu.vue"]]);const fA=Vt(Zie,{DropdownItem:uA,DropdownMenu:dA}),pA=Hn(uA),hA=Hn(dA),sse=Ke({urlList:{type:we(Array),default:()=>bo([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:we(String)}}),lse={close:()=>!0,switch:e=>$t(e),rotate:e=>$t(e)},ase=["src","crossorigin"],cse=K({name:"ElImageViewer"}),use=K({...cse,props:sse,emits:lse,setup(e,{expose:t,emit:n}){var o;const r=e,i={CONTAIN:{name:"contain",icon:oi(_T)},ORIGINAL:{name:"original",icon:oi(SJ)}},{t:s}=Dn(),l=Ae("image-viewer"),{nextZIndex:a}=N1(),c=H(),u=H([]),d=Y9(),f=H(!0),p=H(r.initialIndex),h=xn(i.CONTAIN),m=H({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),b=H((o=r.zIndex)!=null?o:a()),v=D(()=>{const{urlList:F}=r;return F.length<=1}),E=D(()=>p.value===0),w=D(()=>p.value===r.urlList.length-1),S=D(()=>r.urlList[p.value]),T=D(()=>[l.e("btn"),l.e("prev"),l.is("disabled",!r.infinite&&E.value)]),$=D(()=>[l.e("btn"),l.e("next"),l.is("disabled",!r.infinite&&w.value)]),A=D(()=>{const{scale:F,deg:be,offsetX:xe,offsetY:U,enableTransition:Ee}=m.value;let Ze=xe/F,Fe=U/F;switch(be%360){case 90:case-270:[Ze,Fe]=[Fe,-Ze];break;case 180:case-180:[Ze,Fe]=[-Ze,-Fe];break;case 270:case-90:[Ze,Fe]=[-Fe,Ze];break}const J={transform:`scale(${F}) rotate(${be}deg) translate(${Ze}px, ${Fe}px)`,transition:Ee?"transform .3s":""};return h.value.name===i.CONTAIN.name&&(J.maxWidth=J.maxHeight="100%"),J});function P(){I(),n("close")}function N(){const F=J0(xe=>{switch(xe.code){case ht.esc:r.closeOnPressEscape&&P();break;case ht.space:oe();break;case ht.left:q();break;case ht.up:ee("zoomIn");break;case ht.right:X();break;case ht.down:ee("zoomOut");break}}),be=J0(xe=>{const U=xe.deltaY||xe.deltaX;ee(U<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});d.run(()=>{Tn(document,"keydown",F),Tn(document,"wheel",be)})}function I(){d.stop()}function B(){f.value=!1}function V(F){f.value=!1,F.target.alt=s("el.image.error")}function G(F){if(f.value||F.button!==0||!c.value)return;m.value.enableTransition=!1;const{offsetX:be,offsetY:xe}=m.value,U=F.pageX,Ee=F.pageY,Ze=J0(J=>{m.value={...m.value,offsetX:be+J.pageX-U,offsetY:xe+J.pageY-Ee}}),Fe=Tn(document,"mousemove",Ze);Tn(document,"mouseup",()=>{Fe()}),F.preventDefault()}function ne(){m.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function oe(){if(f.value)return;const F=Kb(i),be=Object.values(i),xe=h.value.name,Ee=(be.findIndex(Ze=>Ze.name===xe)+1)%F.length;h.value=i[F[Ee]],ne()}function Z(F){const be=r.urlList.length;p.value=(F+be)%be}function q(){E.value&&!r.infinite||Z(p.value-1)}function X(){w.value&&!r.infinite||Z(p.value+1)}function ee(F,be={}){if(f.value)return;const{minScale:xe,maxScale:U}=r,{zoomRate:Ee,rotateDeg:Ze,enableTransition:Fe}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...be};switch(F){case"zoomOut":m.value.scale>xe&&(m.value.scale=Number.parseFloat((m.value.scale/Ee).toFixed(3)));break;case"zoomIn":m.value.scale<U&&(m.value.scale=Number.parseFloat((m.value.scale*Ee).toFixed(3)));break;case"clockwise":m.value.deg+=Ze,n("rotate",m.value.deg);break;case"anticlockwise":m.value.deg-=Ze,n("rotate",m.value.deg);break}m.value.enableTransition=Fe}return ke(S,()=>{tt(()=>{const F=u.value[0];F!=null&&F.complete||(f.value=!0)})}),ke(p,F=>{ne(),n("switch",F)}),mt(()=>{var F,be;N(),(be=(F=c.value)==null?void 0:F.focus)==null||be.call(F)}),t({setActiveItem:Z}),(F,be)=>(_(),L(sr,{to:"body",disabled:!F.teleported},[y(dr,{name:"viewer-fade",appear:""},{default:x(()=>[g("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:R(C(l).e("wrapper")),style:Be({zIndex:b.value})},[g("div",{class:R(C(l).e("mask")),onClick:be[0]||(be[0]=qe(xe=>F.hideOnClickModal&&P(),["self"]))},null,2),O(" CLOSE "),g("span",{class:R([C(l).e("btn"),C(l).e("close")]),onClick:P},[y(C(ge),null,{default:x(()=>[y(C(Ri))]),_:1})],2),O(" ARROW "),C(v)?O("v-if",!0):(_(),k(Q,{key:0},[g("span",{class:R(C(T)),onClick:q},[y(C(ge),null,{default:x(()=>[y(C(T1))]),_:1})],2),g("span",{class:R(C($)),onClick:X},[y(C(ge),null,{default:x(()=>[y(C(ud))]),_:1})],2)],64)),O(" ACTIONS "),g("div",{class:R([C(l).e("btn"),C(l).e("actions")])},[g("div",{class:R(C(l).e("actions__inner"))},[y(C(ge),{onClick:be[1]||(be[1]=xe=>ee("zoomOut"))},{default:x(()=>[y(C(HJ))]),_:1}),y(C(ge),{onClick:be[2]||(be[2]=xe=>ee("zoomIn"))},{default:x(()=>[y(C(kT))]),_:1}),g("i",{class:R(C(l).e("actions__divider"))},null,2),y(C(ge),{onClick:oe},{default:x(()=>[(_(),L(Et(C(h).icon)))]),_:1}),g("i",{class:R(C(l).e("actions__divider"))},null,2),y(C(ge),{onClick:be[3]||(be[3]=xe=>ee("anticlockwise"))},{default:x(()=>[y(C(bT))]),_:1}),y(C(ge),{onClick:be[4]||(be[4]=xe=>ee("clockwise"))},{default:x(()=>[y(C(xJ))]),_:1})],2)],2),O(" CANVAS "),g("div",{class:R(C(l).e("canvas"))},[(_(!0),k(Q,null,Te(F.urlList,(xe,U)=>ze((_(),k("img",{ref_for:!0,ref:Ee=>u.value[U]=Ee,key:xe,src:xe,style:Be(C(A)),class:R(C(l).e("img")),crossorigin:F.crossorigin,onLoad:B,onError:V,onMousedown:G},null,46,ase)),[[sn,U===p.value]])),128))],2),le(F.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var dse=Re(use,[["__file","image-viewer.vue"]]);const fse=Vt(dse),pse=Ke({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:we([String,Object])},previewSrcList:{type:we(Array),default:()=>bo([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:we(String)}}),hse={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>$t(e),close:()=>!0,show:()=>!0},mse=["src","loading","crossorigin"],_se={key:0},gse=K({name:"ElImage",inheritAttrs:!1}),vse=K({...gse,props:pse,emits:hse,setup(e,{emit:t}){const n=e;let o="";const{t:r}=Dn(),i=Ae("image"),s=uw(),l=TT(),a=H(),c=H(!1),u=H(!0),d=H(!1),f=H(),p=H(),h=kt&&"loading"in HTMLImageElement.prototype;let m,b;const v=D(()=>[i.e("inner"),S.value&&i.e("preview"),u.value&&i.is("loading")]),E=D(()=>s.style),w=D(()=>{const{fit:X}=n;return kt&&X?{objectFit:X}:{}}),S=D(()=>{const{previewSrcList:X}=n;return Array.isArray(X)&&X.length>0}),T=D(()=>{const{previewSrcList:X,initialIndex:ee}=n;let F=ee;return ee>X.length-1&&(F=0),F}),$=D(()=>n.loading==="eager"?!1:!h&&n.loading==="lazy"||n.lazy),A=()=>{kt&&(u.value=!0,c.value=!1,a.value=n.src)};function P(X){u.value=!1,c.value=!1,t("load",X)}function N(X){u.value=!1,c.value=!0,t("error",X)}function I(){BH(f.value,p.value)&&(A(),G())}const B=vH(I,200,!0);async function V(){var X;if(!kt)return;await tt();const{scrollContainer:ee}=n;si(ee)?p.value=ee:je(ee)&&ee!==""?p.value=(X=document.querySelector(ee))!=null?X:void 0:f.value&&(p.value=qY(f.value)),p.value&&(m=Tn(p,"scroll",B),setTimeout(()=>I(),100))}function G(){!kt||!p.value||!B||(m==null||m(),p.value=void 0)}function ne(X){if(X.ctrlKey){if(X.deltaY<0)return X.preventDefault(),!1;if(X.deltaY>0)return X.preventDefault(),!1}}function oe(){S.value&&(b=Tn("wheel",ne,{passive:!1}),o=document.body.style.overflow,document.body.style.overflow="hidden",d.value=!0,t("show"))}function Z(){b==null||b(),document.body.style.overflow=o,d.value=!1,t("close")}function q(X){t("switch",X)}return ke(()=>n.src,()=>{$.value?(u.value=!0,c.value=!1,G(),V()):A()}),mt(()=>{$.value?V():A()}),(X,ee)=>(_(),k("div",{ref_key:"container",ref:f,class:R([C(i).b(),X.$attrs.class]),style:Be(C(E))},[c.value?le(X.$slots,"error",{key:0},()=>[g("div",{class:R(C(i).e("error"))},M(C(r)("el.image.error")),3)]):(_(),k(Q,{key:1},[a.value!==void 0?(_(),k("img",hn({key:0},C(l),{src:a.value,loading:X.loading,style:C(w),class:C(v),crossorigin:X.crossorigin,onClick:oe,onLoad:P,onError:N}),null,16,mse)):O("v-if",!0),u.value?(_(),k("div",{key:1,class:R(C(i).e("wrapper"))},[le(X.$slots,"placeholder",{},()=>[g("div",{class:R(C(i).e("placeholder"))},null,2)])],2)):O("v-if",!0)],64)),C(S)?(_(),k(Q,{key:2},[d.value?(_(),L(C(fse),{key:0,"z-index":X.zIndex,"initial-index":C(T),infinite:X.infinite,"zoom-rate":X.zoomRate,"min-scale":X.minScale,"max-scale":X.maxScale,"url-list":X.previewSrcList,"hide-on-click-modal":X.hideOnClickModal,teleported:X.previewTeleported,"close-on-press-escape":X.closeOnPressEscape,onClose:Z,onSwitch:q},{default:x(()=>[X.$slots.viewer?(_(),k("div",_se,[le(X.$slots,"viewer")])):O("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):O("v-if",!0)],64)):O("v-if",!0)],6))}});var bse=Re(vse,[["__file","image.vue"]]);const Hl=Vt(bse),yse=Ke({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ln}}),wse={click:e=>e instanceof MouseEvent},kse=["href","target"],xse=K({name:"ElLink"}),Cse=K({...xse,props:yse,emits:wse,setup(e,{emit:t}){const n=e,o=Ae("link"),r=D(()=>[o.b(),o.m(n.type),o.is("disabled",n.disabled),o.is("underline",n.underline&&!n.disabled)]);function i(s){n.disabled||t("click",s)}return(s,l)=>(_(),k("a",{class:R(C(r)),href:s.disabled||!s.href?void 0:s.href,target:s.disabled||!s.href?void 0:s.target,onClick:i},[s.icon?(_(),L(C(ge),{key:0},{default:x(()=>[(_(),L(Et(s.icon)))]),_:1})):O("v-if",!0),s.$slots.default?(_(),k("span",{key:1,class:R(C(o).e("inner"))},[le(s.$slots,"default")],2)):O("v-if",!0),s.$slots.icon?le(s.$slots,"icon",{key:2}):O("v-if",!0)],10,kse))}});var Sse=Re(Cse,[["__file","link.vue"]]);const $se=Vt(Sse),mA=Symbol("elPaginationKey"),Ese=Ke({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Ln}}),Tse={click:e=>e instanceof MouseEvent},Mse=["disabled","aria-label","aria-disabled"],Ase={key:0},Ise=K({name:"ElPaginationPrev"}),Ose=K({...Ise,props:Ese,emits:Tse,setup(e){const t=e,{t:n}=Dn(),o=D(()=>t.disabled||t.currentPage<=1);return(r,i)=>(_(),k("button",{type:"button",class:"btn-prev",disabled:C(o),"aria-label":r.prevText||C(n)("el.pagination.prev"),"aria-disabled":C(o),onClick:i[0]||(i[0]=s=>r.$emit("click",s))},[r.prevText?(_(),k("span",Ase,M(r.prevText),1)):(_(),L(C(ge),{key:1},{default:x(()=>[(_(),L(Et(r.prevIcon)))]),_:1}))],8,Mse))}});var Pse=Re(Ose,[["__file","prev.vue"]]);const Nse=Ke({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Ln}}),Lse=["disabled","aria-label","aria-disabled"],Rse={key:0},Fse=K({name:"ElPaginationNext"}),Dse=K({...Fse,props:Nse,emits:["click"],setup(e){const t=e,{t:n}=Dn(),o=D(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,i)=>(_(),k("button",{type:"button",class:"btn-next",disabled:C(o),"aria-label":r.nextText||C(n)("el.pagination.next"),"aria-disabled":C(o),onClick:i[0]||(i[0]=s=>r.$emit("click",s))},[r.nextText?(_(),k("span",Rse,M(r.nextText),1)):(_(),L(C(ge),{key:1},{default:x(()=>[(_(),L(Et(r.nextIcon)))]),_:1}))],8,Lse))}});var Bse=Re(Dse,[["__file","next.vue"]]);const _A=Symbol("ElSelectGroup"),j1=Symbol("ElSelect");function zse(e,t){const n=Ne(j1),o=Ne(_A,{disabled:!1}),r=D(()=>n.props.multiple?u(n.props.modelValue,e.value):u([n.props.modelValue],e.value)),i=D(()=>{if(n.props.multiple){const p=n.props.modelValue||[];return!r.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=D(()=>e.label||(st(e.value)?"":e.value)),l=D(()=>e.value||e.label||""),a=D(()=>e.disabled||t.groupDisabled||i.value),c=nt(),u=(p=[],h)=>{if(st(e.value)){const m=n.props.valueKey;return p&&p.some(b=>xt(kr(b,m))===kr(h,m))}else return p&&p.includes(h)},d=()=>{!e.disabled&&!o.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},f=p=>{const h=new RegExp(jY(p),"i");t.visible=h.test(s.value)||e.created};return ke(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ke(()=>e.value,(p,h)=>{const{remote:m,valueKey:b}=n.props;if(Qa(p,h)||(n.onOptionDestroy(h,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!m){if(b&&st(p)&&st(h)&&p[b]===h[b])return;n.setSelected()}}),ke(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0}),{select:n,currentLabel:s,currentValue:l,itemSelected:r,isDisabled:a,hoverItem:d,updateOption:f}}const Vse=K({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Ae("select"),n=Rr(),o=D(()=>[t.be("dropdown","item"),t.is("disabled",C(l)),t.is("selected",C(s)),t.is("hovering",C(f))]),r=jn({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:s,isDisabled:l,select:a,hoverItem:c,updateOption:u}=zse(e,r),{visible:d,hover:f}=ji(r),p=nt().proxy;a.onOptionCreate(p),yn(()=>{const m=p.value,{selected:b}=a.states,E=(a.props.multiple?b:[b]).some(w=>w.value===p.value);tt(()=>{a.states.cachedOptions.get(m)===p&&!E&&a.states.cachedOptions.delete(m)}),a.onOptionDestroy(m,p)});function h(){e.disabled!==!0&&r.groupDisabled!==!0&&a.handleOptionSelect(p)}return{ns:t,id:n,containerKls:o,currentLabel:i,itemSelected:s,isDisabled:l,select:a,hoverItem:c,updateOption:u,visible:d,hover:f,selectOptionClick:h,states:r}}}),jse=["id","aria-disabled","aria-selected"];function Hse(e,t,n,o,r,i){return ze((_(),k("li",{id:e.id,class:R(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=qe((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[le(e.$slots,"default",{},()=>[g("span",null,M(e.currentLabel),1)])],42,jse)),[[sn,e.visible]])}var L3=Re(Vse,[["render",Hse],["__file","option.vue"]]);const Use=K({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ne(j1),t=Ae("select"),n=D(()=>e.props.popperClass),o=D(()=>e.props.multiple),r=D(()=>e.props.fitInputWidth),i=H("");function s(){var l;i.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return mt(()=>{s(),Oo(e.selectRef,s)}),{ns:t,minWidth:i,popperClass:n,isMultiple:o,isFitInputWidth:r}}});function Wse(e,t,n,o,r,i){return _(),k("div",{class:R([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Be({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(_(),k("div",{key:0,class:R(e.ns.be("dropdown","header"))},[le(e.$slots,"header")],2)):O("v-if",!0),le(e.$slots,"default"),e.$slots.footer?(_(),k("div",{key:1,class:R(e.ns.be("dropdown","footer"))},[le(e.$slots,"footer")],2)):O("v-if",!0)],6)}var qse=Re(Use,[["render",Wse],["__file","select-dropdown.vue"]]);function Kse(e){const t=H(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const s=i.target.value,l=s[s.length-1]||"";t.value=!ET(l)},handleCompositionEnd:i=>{t.value&&(t.value=!1,Ue(e)&&e(i))}}}const Gse=11,Yse=(e,t)=>{const{t:n}=Dn(),o=Rr(),r=Ae("select"),i=Ae("input"),s=jn({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=H(null),a=H(null),c=H(null),u=H(null),d=H(null),f=H(null),p=H(null),h=H(null),m=H(null),b=H(null),v=H(null),E=H(null),{wrapperRef:w,isFocused:S,handleFocus:T,handleBlur:$}=y3(d,{afterFocus(){e.automaticDropdown&&!A.value&&(A.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(ue){var Pe,qt;return((Pe=c.value)==null?void 0:Pe.isFocusInsideContent(ue))||((qt=u.value)==null?void 0:qt.isFocusInsideContent(ue))},afterBlur(){A.value=!1,s.menuVisibleOnFocus=!1}}),A=H(!1),P=H(),{form:N,formItem:I}=As(),{inputId:B}=gc(e,{formItemContext:I}),{valueOnClear:V,isEmptyValue:G}=QQ(e),ne=D(()=>e.disabled||(N==null?void 0:N.disabled)),oe=D(()=>e.multiple?$e(e.modelValue)&&e.modelValue.length>0:!G(e.modelValue)),Z=D(()=>e.clearable&&!ne.value&&s.inputHovering&&oe.value),q=D(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),X=D(()=>r.is("reverse",q.value&&A.value)),ee=D(()=>(I==null?void 0:I.validateState)||""),F=D(()=>ST[ee.value]),be=D(()=>e.remote?300:0),xe=D(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!s.inputValue&&s.options.size===0?!1:e.filterable&&s.inputValue&&s.options.size>0&&U.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),U=D(()=>Ee.value.filter(ue=>ue.visible).length),Ee=D(()=>{const ue=Array.from(s.options.values()),Pe=[];return s.optionValues.forEach(qt=>{const kn=ue.findIndex(Ls=>Ls.value===qt);kn>-1&&Pe.push(ue[kn])}),Pe.length>=ue.length?Pe:ue}),Ze=D(()=>Array.from(s.cachedOptions.values())),Fe=D(()=>{const ue=Ee.value.filter(Pe=>!Pe.created).some(Pe=>Pe.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!ue}),J=()=>{e.filterable&&Ue(e.filterMethod)||e.filterable&&e.remote&&Ue(e.remoteMethod)||Ee.value.forEach(ue=>{var Pe;(Pe=ue.updateOption)==null||Pe.call(ue,s.inputValue)})},ce=cr(),he=D(()=>["small"].includes(ce.value)?"small":"default"),se=D({get(){return A.value&&xe.value!==!1},set(ue){A.value=ue}}),Le=D(()=>$e(e.modelValue)?e.modelValue.length===0&&!s.inputValue:e.filterable?!s.inputValue:!0),et=D(()=>{var ue;const Pe=(ue=e.placeholder)!=null?ue:n("el.select.placeholder");return e.multiple||!oe.value?Pe:s.selectedLabel});ke(()=>e.modelValue,(ue,Pe)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",j("")),re(),!Qa(ue,Pe)&&e.validateEvent&&(I==null||I.validate("change").catch(qt=>void 0))},{flush:"post",deep:!0}),ke(()=>A.value,ue=>{ue?j(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",ue)}),ke(()=>s.options.entries(),()=>{var ue;if(!kt)return;const Pe=((ue=l.value)==null?void 0:ue.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!ks(e.modelValue)||!Array.from(Pe).includes(document.activeElement))&&re(),e.defaultFirstOption&&(e.filterable||e.remote)&&U.value&&W()},{flush:"post"}),ke(()=>s.hoveringIndex,ue=>{$t(ue)&&ue>-1?P.value=Ee.value[ue]||{}:P.value={},Ee.value.forEach(Pe=>{Pe.hover=P.value===Pe})}),Zr(()=>{s.isBeforeHide||J()});const j=ue=>{s.previousQuery!==ue&&(s.previousQuery=ue,e.filterable&&Ue(e.filterMethod)?e.filterMethod(ue):e.filterable&&e.remote&&Ue(e.remoteMethod)&&e.remoteMethod(ue),e.defaultFirstOption&&(e.filterable||e.remote)&&U.value?tt(W):tt(fe))},W=()=>{const ue=Ee.value.filter(kn=>kn.visible&&!kn.disabled&&!kn.states.groupDisabled),Pe=ue.find(kn=>kn.created),qt=ue[0];s.hoveringIndex=rt(Ee.value,Pe||qt)},re=()=>{if(e.multiple)s.selectedLabel="";else{const Pe=pe(e.modelValue);s.selectedLabel=Pe.currentLabel,s.selected=Pe;return}const ue=[];$e(e.modelValue)&&e.modelValue.forEach(Pe=>{ue.push(pe(Pe))}),s.selected=ue},pe=ue=>{let Pe;const qt=Fm(ue).toLowerCase()==="object",kn=Fm(ue).toLowerCase()==="null",Ls=Fm(ue).toLowerCase()==="undefined";for(let Jl=s.cachedOptions.size-1;Jl>=0;Jl--){const hi=Ze.value[Jl];if(qt?kr(hi.value,e.valueKey)===kr(ue,e.valueKey):hi.value===ue){Pe={value:ue,currentLabel:hi.currentLabel,isDisabled:hi.isDisabled};break}}if(Pe)return Pe;const Cc=qt?ue.label:!kn&&!Ls?ue:"";return{value:ue,currentLabel:Cc}},fe=()=>{e.multiple?s.hoveringIndex=Ee.value.findIndex(ue=>s.selected.some(Pe=>Ld(Pe)===Ld(ue))):s.hoveringIndex=Ee.value.findIndex(ue=>Ld(ue)===Ld(s.selected))},Ce=()=>{s.selectionWidth=a.value.getBoundingClientRect().width},Ie=()=>{s.calculatorWidth=f.value.getBoundingClientRect().width},ye=()=>{s.collapseItemWidth=v.value.getBoundingClientRect().width},Se=()=>{var ue,Pe;(Pe=(ue=c.value)==null?void 0:ue.updatePopper)==null||Pe.call(ue)},_e=()=>{var ue,Pe;(Pe=(ue=u.value)==null?void 0:ue.updatePopper)==null||Pe.call(ue)},De=()=>{s.inputValue.length>0&&!A.value&&(A.value=!0),j(s.inputValue)},Ge=ue=>{if(s.inputValue=ue.target.value,e.remote)ie();else return De()},ie=Xa(()=>{De()},be.value),Y=ue=>{Qa(e.modelValue,ue)||t(tc,ue)},ae=ue=>TY(ue,Pe=>!s.disabledOptions.has(Pe)),Oe=ue=>{if(e.multiple&&ue.code!==ht.delete&&ue.target.value.length<=0){const Pe=e.modelValue.slice(),qt=ae(Pe);if(qt<0)return;Pe.splice(qt,1),t(Kt,Pe),Y(Pe)}},We=(ue,Pe)=>{const qt=s.selected.indexOf(Pe);if(qt>-1&&!ne.value){const kn=e.modelValue.slice();kn.splice(qt,1),t(Kt,kn),Y(kn),t("remove-tag",Pe.value)}ue.stopPropagation(),xc()},ve=ue=>{ue.stopPropagation();const Pe=e.multiple?[]:V.value;if(e.multiple)for(const qt of s.selected)qt.isDisabled&&Pe.push(qt.value);t(Kt,Pe),Y(Pe),s.hoveringIndex=-1,A.value=!1,t("clear"),xc()},He=ue=>{if(e.multiple){const Pe=(e.modelValue||[]).slice(),qt=rt(Pe,ue.value);qt>-1?Pe.splice(qt,1):(e.multipleLimit<=0||Pe.length<e.multipleLimit)&&Pe.push(ue.value),t(Kt,Pe),Y(Pe),ue.created&&j(""),e.filterable&&!e.reserveKeyword&&(s.inputValue="")}else t(Kt,ue.value),Y(ue.value),A.value=!1;xc(),!A.value&&tt(()=>{Qe(ue)})},rt=(ue=[],Pe)=>{if(!st(Pe))return ue.indexOf(Pe);const qt=e.valueKey;let kn=-1;return ue.some((Ls,Cc)=>xt(kr(Ls,qt))===kr(Pe,qt)?(kn=Cc,!0):!1),kn},Qe=ue=>{var Pe,qt,kn,Ls,Cc;const Uh=$e(ue)?ue[0]:ue;let Jl=null;if(Uh!=null&&Uh.value){const hi=Ee.value.filter(ix=>ix.value===Uh.value);hi.length>0&&(Jl=hi[0].$el)}if(c.value&&Jl){const hi=(Ls=(kn=(qt=(Pe=c.value)==null?void 0:Pe.popperRef)==null?void 0:qt.contentRef)==null?void 0:kn.querySelector)==null?void 0:Ls.call(kn,`.${r.be("dropdown","wrap")}`);hi&&GY(hi,Jl)}(Cc=E.value)==null||Cc.handleScroll()},bt=ue=>{s.options.set(ue.value,ue),s.cachedOptions.set(ue.value,ue),ue.disabled&&s.disabledOptions.set(ue.value,ue)},Gt=(ue,Pe)=>{s.options.get(ue)===Pe&&s.options.delete(ue)},{handleCompositionStart:_t,handleCompositionUpdate:Jt,handleCompositionEnd:an}=Kse(ue=>Ge(ue)),M0=D(()=>{var ue,Pe;return(Pe=(ue=c.value)==null?void 0:ue.popperRef)==null?void 0:Pe.contentRef}),A0=()=>{s.isBeforeHide=!1,tt(()=>Qe(s.selected))},xc=()=>{var ue;(ue=d.value)==null||ue.focus()},Nd=()=>{nx()},I0=ue=>{ve(ue)},nx=ue=>{if(A.value=!1,S.value){const Pe=new FocusEvent("focus",ue);tt(()=>$(Pe))}},DR=()=>{s.inputValue.length>0?s.inputValue="":A.value=!1},ox=()=>{ne.value||(s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:A.value=!A.value)},BR=()=>{A.value?Ee.value[s.hoveringIndex]&&He(Ee.value[s.hoveringIndex]):ox()},Ld=ue=>st(ue.value)?kr(ue.value,e.valueKey):ue.value,zR=D(()=>Ee.value.filter(ue=>ue.visible).every(ue=>ue.disabled)),VR=D(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),jR=D(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),rx=ue=>{if(!A.value){A.value=!0;return}if(!(s.options.size===0||U.value===0)&&!zR.value){ue==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):ue==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const Pe=Ee.value[s.hoveringIndex];(Pe.disabled===!0||Pe.states.groupDisabled===!0||!Pe.visible)&&rx(ue),tt(()=>Qe(P.value))}},HR=()=>{if(!a.value)return 0;const ue=window.getComputedStyle(a.value);return Number.parseFloat(ue.gap||"6px")},UR=D(()=>{const ue=HR();return{maxWidth:`${v.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-ue:s.selectionWidth}px`}}),WR=D(()=>({maxWidth:`${s.selectionWidth}px`})),qR=D(()=>({width:`${Math.max(s.calculatorWidth,Gse)}px`}));return e.multiple&&!$e(e.modelValue)&&t(Kt,[]),!e.multiple&&$e(e.modelValue)&&t(Kt,""),Oo(a,Ce),Oo(f,Ie),Oo(m,Se),Oo(w,Se),Oo(b,_e),Oo(v,ye),mt(()=>{re()}),{inputId:B,contentId:o,nsSelect:r,nsInput:i,states:s,isFocused:S,expanded:A,optionsArray:Ee,hoverOption:P,selectSize:ce,filteredOptionsCount:U,resetCalculatorWidth:Ie,updateTooltip:Se,updateTagTooltip:_e,debouncedOnInputChange:ie,onInput:Ge,deletePrevTag:Oe,deleteTag:We,deleteSelected:ve,handleOptionSelect:He,scrollToOption:Qe,hasModelValue:oe,shouldShowPlaceholder:Le,currentPlaceholder:et,showClose:Z,iconComponent:q,iconReverse:X,validateState:ee,validateIcon:F,showNewOption:Fe,updateOptions:J,collapseTagSize:he,setSelected:re,selectDisabled:ne,emptyText:xe,handleCompositionStart:_t,handleCompositionUpdate:Jt,handleCompositionEnd:an,onOptionCreate:bt,onOptionDestroy:Gt,handleMenuEnter:A0,handleFocus:T,focus:xc,blur:Nd,handleBlur:$,handleClearClick:I0,handleClickOutside:nx,handleEsc:DR,toggleMenu:ox,selectOption:BR,getValueKey:Ld,navigateOptions:rx,dropdownMenuVisible:se,showTagList:VR,collapseTagList:jR,tagStyle:UR,collapseTagStyle:WR,inputStyle:qR,popperRef:M0,inputRef:d,tooltipRef:c,tagTooltipRef:u,calculatorRef:f,prefixRef:p,suffixRef:h,selectRef:l,wrapperRef:w,selectionRef:a,scrollbarRef:E,menuRef:m,tagMenuRef:b,collapseItemRef:v}};var Zse=K({name:"ElOptions",setup(e,{slots:t}){const n=Ne(j1);let o=[];return()=>{var r,i;const s=(r=t.default)==null?void 0:r.call(t),l=[];function a(c){$e(c)&&c.forEach(u=>{var d,f,p,h;const m=(d=(u==null?void 0:u.type)||{})==null?void 0:d.name;m==="ElOptionGroup"?a(!je(u.children)&&!$e(u.children)&&Ue((f=u.children)==null?void 0:f.default)?(p=u.children)==null?void 0:p.default():u.children):m==="ElOption"?l.push((h=u.props)==null?void 0:h.value):$e(u.children)&&a(u.children)})}return s.length&&a((i=s[0])==null?void 0:i.children),Qa(l,o)||(o=l,n&&(n.states.optionValues=l)),s}}});const Jse=Ke({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Ms,effect:{type:we(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:we(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Qo.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ln,default:M1},fitInputWidth:Boolean,suffixIcon:{type:Ln,default:lh},tagType:{...HM.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:we(String),values:O1,default:"bottom-start"},fallbackPlacements:{type:we(Array),default:["bottom-start","top-start","right","left"]},ariaLabel:{type:String,default:void 0},...XQ}),x6="ElSelect",Xse=K({name:x6,componentName:x6,components:{ElInput:An,ElSelectMenu:qse,ElOption:L3,ElOptions:Zse,ElTag:mh,ElScrollbar:$o,ElTooltip:fd,ElIcon:ge},directives:{ClickOutside:A3},props:Jse,emits:[Kt,tc,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=Yse(e,t);return wt(j1,jn({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),Qse=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],ele=["textContent"];function tle(e,t,n,o,r,i){const s=z("el-tag"),l=z("el-tooltip"),a=z("el-icon"),c=z("el-option"),u=z("el-options"),d=z("el-scrollbar"),f=z("el-select-menu"),p=Mt("click-outside");return ze((_(),k("div",{ref:"selectRef",class:R([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[16]||(t[16]=h=>e.states.inputHovering=!0),onMouseleave:t[17]||(t[17]=h=>e.states.inputHovering=!1),onClick:t[18]||(t[18]=qe((...h)=>e.toggleMenu&&e.toggleMenu(...h),["prevent","stop"]))},[y(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[15]||(t[15]=h=>e.states.isBeforeHide=!1)},{default:x(()=>{var h;return[g("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(_(),k("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[le(e.$slots,"prefix")],2)):O("v-if",!0),g("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?le(e.$slots,"tag",{key:0},()=>[(_(!0),k(Q,null,Te(e.showTagList,m=>(_(),k("div",{key:e.getValueKey(m),class:R(e.nsSelect.e("selected-item"))},[y(s,{closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:Be(e.tagStyle),onClose:b=>e.deleteTag(b,m)},{default:x(()=>[g("span",{class:R(e.nsSelect.e("tags-text"))},M(m.currentLabel),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(_(),L(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:x(()=>[g("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[y(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:Be(e.collapseTagStyle)},{default:x(()=>[g("span",{class:R(e.nsSelect.e("tags-text"))}," + "+M(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:x(()=>[g("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(_(!0),k(Q,null,Te(e.collapseTagList,m=>(_(),k("div",{key:e.getValueKey(m),class:R(e.nsSelect.e("selected-item"))},[y(s,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:b=>e.deleteTag(b,m)},{default:x(()=>[g("span",{class:R(e.nsSelect.e("tags-text"))},M(m.currentLabel),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):O("v-if",!0)]):O("v-if",!0),e.selectDisabled?O("v-if",!0):(_(),k("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[ze(g("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=m=>e.states.inputValue=m),type:"text",class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Be(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((h=e.hoverOption)==null?void 0:h.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...m)=>e.handleFocus&&e.handleFocus(...m)),onBlur:t[2]||(t[2]=(...m)=>e.handleBlur&&e.handleBlur(...m)),onKeydown:[t[3]||(t[3]=Ut(qe(m=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[4]||(t[4]=Ut(qe(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),t[5]||(t[5]=Ut(qe((...m)=>e.handleEsc&&e.handleEsc(...m),["stop","prevent"]),["esc"])),t[6]||(t[6]=Ut(qe((...m)=>e.selectOption&&e.selectOption(...m),["stop","prevent"]),["enter"])),t[7]||(t[7]=Ut(qe((...m)=>e.deletePrevTag&&e.deletePrevTag(...m),["stop"]),["delete"]))],onCompositionstart:t[8]||(t[8]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[9]||(t[9]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[10]||(t[10]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onInput:t[11]||(t[11]=(...m)=>e.onInput&&e.onInput(...m)),onClick:t[12]||(t[12]=qe((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},null,46,Qse),[[Iu,e.states.inputValue]]),e.filterable?(_(),k("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:M(e.states.inputValue)},null,10,ele)):O("v-if",!0)],2)),e.shouldShowPlaceholder?(_(),k("div",{key:2,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[g("span",null,M(e.currentPlaceholder),1)],2)):O("v-if",!0)],2),g("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(_(),L(a,{key:0,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:x(()=>[(_(),L(Et(e.iconComponent)))]),_:1},8,["class"])):O("v-if",!0),e.showClose&&e.clearIcon?(_(),L(a,{key:1,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:x(()=>[(_(),L(Et(e.clearIcon)))]),_:1},8,["class","onClick"])):O("v-if",!0),e.validateState&&e.validateIcon?(_(),L(a,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:x(()=>[(_(),L(Et(e.validateIcon)))]),_:1},8,["class"])):O("v-if",!0)],2)],2)]}),content:x(()=>[y(f,{ref:"menuRef"},{default:x(()=>[e.$slots.header?(_(),k("div",{key:0,class:R(e.nsSelect.be("dropdown","header")),onClick:t[13]||(t[13]=qe(()=>{},["stop"]))},[le(e.$slots,"header")],2)):O("v-if",!0),ze(y(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:R([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:x(()=>[e.showNewOption?(_(),L(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):O("v-if",!0),y(u,null,{default:x(()=>[le(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[sn,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(_(),k("div",{key:1,class:R(e.nsSelect.be("dropdown","loading"))},[le(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(_(),k("div",{key:2,class:R(e.nsSelect.be("dropdown","empty"))},[le(e.$slots,"empty",{},()=>[g("span",null,M(e.emptyText),1)])],2)):O("v-if",!0),e.$slots.footer?(_(),k("div",{key:3,class:R(e.nsSelect.be("dropdown","footer")),onClick:t[14]||(t[14]=qe(()=>{},["stop"]))},[le(e.$slots,"footer")],2)):O("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],34)),[[p,e.handleClickOutside,e.popperRef]])}var nle=Re(Xse,[["render",tle],["__file","select.vue"]]);const ole=K({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Ae("select"),n=H(null),o=nt(),r=H([]);wt(_A,jn({...ji(e)}));const i=D(()=>r.value.some(a=>a.visible===!0)),s=a=>{const c=[];return $e(a.children)&&a.children.forEach(u=>{var d,f;u.type&&u.type.name==="ElOption"&&u.component&&u.component.proxy?c.push(u.component.proxy):(d=u.children)!=null&&d.length?c.push(...s(u)):(f=u.component)!=null&&f.subTree&&c.push(...s(u.component.subTree))}),c},l=()=>{r.value=s(o.subTree)};return mt(()=>{l()}),AH(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function rle(e,t,n,o,r,i){return ze((_(),k("ul",{ref:"groupRef",class:R(e.ns.be("group","wrap"))},[g("li",{class:R(e.ns.be("group","title"))},M(e.label),3),g("li",null,[g("ul",{class:R(e.ns.b("group"))},[le(e.$slots,"default")],2)])],2)),[[sn,e.visible]])}var gA=Re(ole,[["render",rle],["__file","option-group.vue"]]);const jo=Vt(nle,{Option:L3,OptionGroup:gA}),Ho=Hn(L3),vA=Hn(gA),R3=()=>Ne(mA,{}),ile=Ke({pageSize:{type:Number,required:!0},pageSizes:{type:we(Array),default:()=>bo([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:_c}}),sle=K({name:"ElPaginationSizes"}),lle=K({...sle,props:ile,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:o}=Dn(),r=Ae("pagination"),i=R3(),s=H(n.pageSize);ke(()=>n.pageSizes,(c,u)=>{if(!Qa(c,u)&&Array.isArray(c)){const d=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",d)}}),ke(()=>n.pageSize,c=>{s.value=c});const l=D(()=>n.pageSizes);function a(c){var u;c!==s.value&&(s.value=c,(u=i.handleSizeChange)==null||u.call(i,Number(c)))}return(c,u)=>(_(),k("span",{class:R(C(r).e("sizes"))},[y(C(jo),{"model-value":s.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,teleported:c.teleported,"validate-event":!1,onChange:a},{default:x(()=>[(_(!0),k(Q,null,Te(C(l),d=>(_(),L(C(Ho),{key:d,value:d,label:d+C(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var ale=Re(lle,[["__file","sizes.vue"]]);const cle=Ke({size:{type:String,values:_c}}),ule=["disabled"],dle=K({name:"ElPaginationJumper"}),fle=K({...dle,props:cle,setup(e){const{t}=Dn(),n=Ae("pagination"),{pageCount:o,disabled:r,currentPage:i,changeEvent:s}=R3(),l=H(),a=D(()=>{var d;return(d=l.value)!=null?d:i==null?void 0:i.value});function c(d){l.value=d?+d:""}function u(d){d=Math.trunc(+d),s==null||s(d),l.value=void 0}return(d,f)=>(_(),k("span",{class:R(C(n).e("jump")),disabled:C(r)},[g("span",{class:R([C(n).e("goto")])},M(C(t)("el.pagination.goto")),3),y(C(An),{size:d.size,class:R([C(n).e("editor"),C(n).is("in-pagination")]),min:1,max:C(o),disabled:C(r),"model-value":C(a),"validate-event":!1,label:C(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:u},null,8,["size","class","max","disabled","model-value","label"]),g("span",{class:R([C(n).e("classifier")])},M(C(t)("el.pagination.pageClassifier")),3)],10,ule))}});var ple=Re(fle,[["__file","jumper.vue"]]);const hle=Ke({total:{type:Number,default:1e3}}),mle=["disabled"],_le=K({name:"ElPaginationTotal"}),gle=K({..._le,props:hle,setup(e){const{t}=Dn(),n=Ae("pagination"),{disabled:o}=R3();return(r,i)=>(_(),k("span",{class:R(C(n).e("total")),disabled:C(o)},M(C(t)("el.pagination.total",{total:r.total})),11,mle))}});var vle=Re(gle,[["__file","total.vue"]]);const ble=Ke({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),yle=["onKeyup"],wle=["aria-current","aria-label","tabindex"],kle=["tabindex","aria-label"],xle=["aria-current","aria-label","tabindex"],Cle=["tabindex","aria-label"],Sle=["aria-current","aria-label","tabindex"],$le=K({name:"ElPaginationPager"}),Ele=K({...$le,props:ble,emits:["change"],setup(e,{emit:t}){const n=e,o=Ae("pager"),r=Ae("icon"),{t:i}=Dn(),s=H(!1),l=H(!1),a=H(!1),c=H(!1),u=H(!1),d=H(!1),f=D(()=>{const S=n.pagerCount,T=(S-1)/2,$=Number(n.currentPage),A=Number(n.pageCount);let P=!1,N=!1;A>S&&($>S-T&&(P=!0),$<A-T&&(N=!0));const I=[];if(P&&!N){const B=A-(S-2);for(let V=B;V<A;V++)I.push(V)}else if(!P&&N)for(let B=2;B<S;B++)I.push(B);else if(P&&N){const B=Math.floor(S/2)-1;for(let V=$-B;V<=$+B;V++)I.push(V)}else for(let B=2;B<A;B++)I.push(B);return I}),p=D(()=>["more","btn-quickprev",r.b(),o.is("disabled",n.disabled)]),h=D(()=>["more","btn-quicknext",r.b(),o.is("disabled",n.disabled)]),m=D(()=>n.disabled?-1:0);Zr(()=>{const S=(n.pagerCount-1)/2;s.value=!1,l.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-S&&(s.value=!0),n.currentPage<n.pageCount-S&&(l.value=!0))});function b(S=!1){n.disabled||(S?a.value=!0:c.value=!0)}function v(S=!1){S?u.value=!0:d.value=!0}function E(S){const T=S.target;if(T.tagName.toLowerCase()==="li"&&Array.from(T.classList).includes("number")){const $=Number(T.textContent);$!==n.currentPage&&t("change",$)}else T.tagName.toLowerCase()==="li"&&Array.from(T.classList).includes("more")&&w(S)}function w(S){const T=S.target;if(T.tagName.toLowerCase()==="ul"||n.disabled)return;let $=Number(T.textContent);const A=n.pageCount,P=n.currentPage,N=n.pagerCount-2;T.className.includes("more")&&(T.className.includes("quickprev")?$=P-N:T.className.includes("quicknext")&&($=P+N)),Number.isNaN(+$)||($<1&&($=1),$>A&&($=A)),$!==P&&t("change",$)}return(S,T)=>(_(),k("ul",{class:R(C(o).b()),onClick:w,onKeyup:Ut(E,["enter"])},[S.pageCount>0?(_(),k("li",{key:0,class:R([[C(o).is("active",S.currentPage===1),C(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===1,"aria-label":C(i)("el.pagination.currentPage",{pager:1}),tabindex:C(m)}," 1 ",10,wle)):O("v-if",!0),s.value?(_(),k("li",{key:1,class:R(C(p)),tabindex:C(m),"aria-label":C(i)("el.pagination.prevPages",{pager:S.pagerCount-2}),onMouseenter:T[0]||(T[0]=$=>b(!0)),onMouseleave:T[1]||(T[1]=$=>a.value=!1),onFocus:T[2]||(T[2]=$=>v(!0)),onBlur:T[3]||(T[3]=$=>u.value=!1)},[(a.value||u.value)&&!S.disabled?(_(),L(C(MZ),{key:0})):(_(),L(C(Gb),{key:1}))],42,kle)):O("v-if",!0),(_(!0),k(Q,null,Te(C(f),$=>(_(),k("li",{key:$,class:R([[C(o).is("active",S.currentPage===$),C(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===$,"aria-label":C(i)("el.pagination.currentPage",{pager:$}),tabindex:C(m)},M($),11,xle))),128)),l.value?(_(),k("li",{key:2,class:R(C(h)),tabindex:C(m),"aria-label":C(i)("el.pagination.nextPages",{pager:S.pagerCount-2}),onMouseenter:T[4]||(T[4]=$=>b()),onMouseleave:T[5]||(T[5]=$=>c.value=!1),onFocus:T[6]||(T[6]=$=>v()),onBlur:T[7]||(T[7]=$=>d.value=!1)},[(c.value||d.value)&&!S.disabled?(_(),L(C(IZ),{key:0})):(_(),L(C(Gb),{key:1}))],42,Cle)):O("v-if",!0),S.pageCount>1?(_(),k("li",{key:3,class:R([[C(o).is("active",S.currentPage===S.pageCount),C(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===S.pageCount,"aria-label":C(i)("el.pagination.currentPage",{pager:S.pageCount}),tabindex:C(m)},M(S.pageCount),11,Sle)):O("v-if",!0)],42,yle))}});var Tle=Re(Ele,[["__file","pager.vue"]]);const mo=e=>typeof e!="number",Mle=Ke({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>$t(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:we(Array),default:()=>bo([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Ln,default:()=>T1},nextText:{type:String,default:""},nextIcon:{type:Ln,default:()=>ud},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),Ale={"update:current-page":e=>$t(e),"update:page-size":e=>$t(e),"size-change":e=>$t(e),change:(e,t)=>$t(e)&&$t(t),"current-change":e=>$t(e),"prev-click":e=>$t(e),"next-click":e=>$t(e)},C6="ElPagination";var Ile=K({name:C6,props:Mle,emits:Ale,setup(e,{emit:t,slots:n}){const{t:o}=Dn(),r=Ae("pagination"),i=nt().vnode.props||{},s="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,l="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,a=D(()=>{if(mo(e.total)&&mo(e.pageCount)||!mo(e.currentPage)&&!s)return!1;if(e.layout.includes("sizes")){if(mo(e.pageCount)){if(!mo(e.total)&&!mo(e.pageSize)&&!l)return!1}else if(!l)return!1}return!0}),c=H(mo(e.defaultPageSize)?10:e.defaultPageSize),u=H(mo(e.defaultCurrentPage)?1:e.defaultCurrentPage),d=D({get(){return mo(e.pageSize)?c.value:e.pageSize},set(w){mo(e.pageSize)&&(c.value=w),l&&(t("update:page-size",w),t("size-change",w))}}),f=D(()=>{let w=0;return mo(e.pageCount)?mo(e.total)||(w=Math.max(1,Math.ceil(e.total/d.value))):w=e.pageCount,w}),p=D({get(){return mo(e.currentPage)?u.value:e.currentPage},set(w){let S=w;w<1?S=1:w>f.value&&(S=f.value),mo(e.currentPage)&&(u.value=S),s&&(t("update:current-page",S),t("current-change",S))}});ke(f,w=>{p.value>w&&(p.value=w)}),ke([p,d],w=>{t("change",...w)},{flush:"post"});function h(w){p.value=w}function m(w){d.value=w;const S=f.value;p.value>S&&(p.value=S)}function b(){e.disabled||(p.value-=1,t("prev-click",p.value))}function v(){e.disabled||(p.value+=1,t("next-click",p.value))}function E(w,S){w&&(w.props||(w.props={}),w.props.class=[w.props.class,S].join(" "))}return wt(mA,{pageCount:f,disabled:D(()=>e.disabled),currentPage:p,changeEvent:h,handleSizeChange:m}),()=>{var w,S;if(!a.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&f.value<=1)return null;const T=[],$=[],A=Xe("div",{class:r.e("rightwrapper")},$),P={prev:Xe(Pse,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:b}),jumper:Xe(ple,{size:e.small?"small":"default"}),pager:Xe(Tle,{currentPage:p.value,pageCount:f.value,pagerCount:e.pagerCount,onChange:h,disabled:e.disabled}),next:Xe(Bse,{disabled:e.disabled,currentPage:p.value,pageCount:f.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:v}),sizes:Xe(ale,{pageSize:d.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(S=(w=n==null?void 0:n.default)==null?void 0:w.call(n))!=null?S:null,total:Xe(vle,{total:mo(e.total)?0:e.total})},N=e.layout.split(",").map(B=>B.trim());let I=!1;return N.forEach(B=>{if(B==="->"){I=!0;return}I?$.push(P[B]):T.push(P[B])}),E(T[0],r.is("first")),E(T[T.length-1],r.is("last")),I&&$.length>0&&(E($[0],r.is("first")),E($[$.length-1],r.is("last")),T.push(A)),Xe("div",{class:[r.b(),r.is("background",e.background),{[r.m("small")]:e.small}]},T)}}});const Ole=Vt(Ile),Ple=Ke({trigger:Np.trigger,placement:e_.placement,disabled:Np.disabled,visible:Qo.visible,transition:Qo.transition,popperOptions:e_.popperOptions,tabindex:e_.tabindex,content:Qo.content,popperStyle:Qo.popperStyle,popperClass:Qo.popperClass,enterable:{...Qo.enterable,default:!0},effect:{...Qo.effect,default:"light"},teleported:Qo.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Nle={"update:visible":e=>ao(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Lle="onUpdate:visible",Rle=K({name:"ElPopover"}),Fle=K({...Rle,props:Ple,emits:Nle,setup(e,{expose:t,emit:n}){const o=e,r=D(()=>o[Lle]),i=Ae("popover"),s=H(),l=D(()=>{var b;return(b=C(s))==null?void 0:b.popperRef}),a=D(()=>[{width:fo(o.width)},o.popperStyle]),c=D(()=>[i.b(),o.popperClass,{[i.m("plain")]:!!o.content}]),u=D(()=>o.transition===`${i.namespace.value}-fade-in-linear`),d=()=>{var b;(b=s.value)==null||b.hide()},f=()=>{n("before-enter")},p=()=>{n("before-leave")},h=()=>{n("after-enter")},m=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:l,hide:d}),(b,v)=>(_(),L(C(fd),hn({ref_key:"tooltipRef",ref:s},b.$attrs,{trigger:b.trigger,placement:b.placement,disabled:b.disabled,visible:b.visible,transition:b.transition,"popper-options":b.popperOptions,tabindex:b.tabindex,content:b.content,offset:b.offset,"show-after":b.showAfter,"hide-after":b.hideAfter,"auto-close":b.autoClose,"show-arrow":b.showArrow,"aria-label":b.title,effect:b.effect,enterable:b.enterable,"popper-class":C(c),"popper-style":C(a),teleported:b.teleported,persistent:b.persistent,"gpu-acceleration":C(u),"onUpdate:visible":C(r),onBeforeShow:f,onBeforeHide:p,onShow:h,onHide:m}),{content:x(()=>[b.title?(_(),k("div",{key:0,class:R(C(i).e("title")),role:"title"},M(b.title),3)):O("v-if",!0),le(b.$slots,"default",{},()=>[te(M(b.content),1)])]),default:x(()=>[b.$slots.reference?le(b.$slots,"reference",{key:0}):O("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Dle=Re(Fle,[["__file","popover.vue"]]);const S6=(e,t)=>{const n=t.arg||t.value,o=n==null?void 0:n.popperRef;o&&(o.triggerRef=e)};var Ble={mounted(e,t){S6(e,t)},updated(e,t){S6(e,t)}};const zle="popover",Vle=KJ(Ble,zle),po=Vt(Dle,{directive:Vle}),jle=Ke({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:we(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:we([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:we(Function),default:e=>`${e}%`}}),Hle=["aria-valuenow"],Ule={viewBox:"0 0 100 100"},Wle=["d","stroke","stroke-linecap","stroke-width"],qle=["d","stroke","opacity","stroke-linecap","stroke-width"],Kle={key:0},Gle=K({name:"ElProgress"}),Yle=K({...Gle,props:jle,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=Ae("progress"),r=D(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:E(t.percentage)})),i=D(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=D(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),l=D(()=>{const w=s.value,S=t.type==="dashboard";return`
72 M 50 50
73 m 0 ${S?"":"-"}${w}
74 a ${w} ${w} 0 1 1 0 ${S?"-":""}${w*2}
75 a ${w} ${w} 0 1 1 0 ${S?"":"-"}${w*2}
76 `}),a=D(()=>2*Math.PI*s.value),c=D(()=>t.type==="dashboard"?.75:1),u=D(()=>`${-1*a.value*(1-c.value)/2}px`),d=D(()=>({strokeDasharray:`${a.value*c.value}px, ${a.value}px`,strokeDashoffset:u.value})),f=D(()=>({strokeDasharray:`${a.value*c.value*(t.percentage/100)}px, ${a.value}px`,strokeDashoffset:u.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=D(()=>{let w;return t.color?w=E(t.percentage):w=n[t.status]||n.default,w}),h=D(()=>t.status==="warning"?r3:t.type==="line"?t.status==="success"?n3:M1:t.status==="success"?t3:Ri),m=D(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),b=D(()=>t.format(t.percentage));function v(w){const S=100/w.length;return w.map(($,A)=>je($)?{color:$,percentage:(A+1)*S}:$).sort(($,A)=>$.percentage-A.percentage)}const E=w=>{var S;const{color:T}=t;if(Ue(T))return T(w);if(je(T))return T;{const $=v(T);for(const A of $)if(A.percentage>w)return A.color;return(S=$[$.length-1])==null?void 0:S.color}};return(w,S)=>(_(),k("div",{class:R([C(o).b(),C(o).m(w.type),C(o).is(w.status),{[C(o).m("without-text")]:!w.showText,[C(o).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(_(),k("div",{key:0,class:R(C(o).b("bar"))},[g("div",{class:R(C(o).be("bar","outer")),style:Be({height:`${w.strokeWidth}px`})},[g("div",{class:R([C(o).be("bar","inner"),{[C(o).bem("bar","inner","indeterminate")]:w.indeterminate},{[C(o).bem("bar","inner","striped")]:w.striped},{[C(o).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:Be(C(r))},[(w.showText||w.$slots.default)&&w.textInside?(_(),k("div",{key:0,class:R(C(o).be("bar","innerText"))},[le(w.$slots,"default",{percentage:w.percentage},()=>[g("span",null,M(C(b)),1)])],2)):O("v-if",!0)],6)],6)],2)):(_(),k("div",{key:1,class:R(C(o).b("circle")),style:Be({height:`${w.width}px`,width:`${w.width}px`})},[(_(),k("svg",Ule,[g("path",{class:R(C(o).be("circle","track")),d:C(l),stroke:`var(${C(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":C(i),fill:"none",style:Be(C(d))},null,14,Wle),g("path",{class:R(C(o).be("circle","path")),d:C(l),stroke:C(p),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":C(i),style:Be(C(f))},null,14,qle)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(_(),k("div",{key:2,class:R(C(o).e("text")),style:Be({fontSize:`${C(m)}px`})},[le(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(_(),L(C(ge),{key:1},{default:x(()=>[(_(),L(Et(C(h))))]),_:1})):(_(),k("span",Kle,M(C(b)),1))])],6)):O("v-if",!0)],10,Hle))}});var Zle=Re(Yle,[["__file","progress.vue"]]);const bA=Vt(Zle),Jle=Ke({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Xle=Ke({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Qle=K({name:"ElSkeletonItem"}),eae=K({...Qle,props:Xle,setup(e){const t=Ae("skeleton");return(n,o)=>(_(),k("div",{class:R([C(t).e("item"),C(t).e(n.variant)])},[n.variant==="image"?(_(),L(C(pJ),{key:0})):O("v-if",!0)],2))}});var Ig=Re(eae,[["__file","skeleton-item.vue"]]);const tae=K({name:"ElSkeleton"}),nae=K({...tae,props:Jle,setup(e,{expose:t}){const n=e,o=Ae("skeleton"),r=lQ(Nn(n,"loading"),n.throttle);return t({uiLoading:r}),(i,s)=>C(r)?(_(),k("div",hn({key:0,class:[C(o).b(),C(o).is("animated",i.animated)]},i.$attrs),[(_(!0),k(Q,null,Te(i.count,l=>(_(),k(Q,{key:l},[i.loading?le(i.$slots,"template",{key:l},()=>[y(Ig,{class:R(C(o).is("first")),variant:"p"},null,8,["class"]),(_(!0),k(Q,null,Te(i.rows,a=>(_(),L(Ig,{key:a,class:R([C(o).e("paragraph"),C(o).is("last",a===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):O("v-if",!0)],64))),128))],16)):le(i.$slots,"default",U2(hn({key:1},i.$attrs)))}});var oae=Re(nae,[["__file","skeleton.vue"]]);const Wt=Vt(oae,{SkeletonItem:Ig});Hn(Ig);const rae=Ke({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:$T},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:Ln},activeActionIcon:{type:Ln},activeIcon:{type:Ln},inactiveIcon:{type:Ln},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:we(Function)},id:String,tabindex:{type:[String,Number]},label:{type:String,default:void 0}}),iae={[Kt]:e=>ao(e)||je(e)||$t(e),[tc]:e=>ao(e)||je(e)||$t(e),[Yb]:e=>ao(e)||je(e)||$t(e)},sae=["onClick"],lae=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],aae=["aria-hidden"],cae=["aria-hidden"],uae=["aria-hidden"],yA="ElSwitch",dae=K({name:yA}),fae=K({...dae,props:rae,emits:iae,setup(e,{expose:t,emit:n}){const o=e,{formItem:r}=As(),i=cr(),s=Ae("switch"),{inputId:l}=gc(o,{formItemContext:r}),a=fi(D(()=>o.loading)),c=H(o.modelValue!==!1),u=H(),d=H(),f=D(()=>[s.b(),s.m(i.value),s.is("disabled",a.value),s.is("checked",v.value)]),p=D(()=>[s.e("label"),s.em("label","left"),s.is("active",!v.value)]),h=D(()=>[s.e("label"),s.em("label","right"),s.is("active",v.value)]),m=D(()=>({width:fo(o.width)}));ke(()=>o.modelValue,()=>{c.value=!0});const b=D(()=>c.value?o.modelValue:!1),v=D(()=>b.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(b.value)||(n(Kt,o.inactiveValue),n(tc,o.inactiveValue),n(Yb,o.inactiveValue)),ke(v,T=>{var $;u.value.checked=T,o.validateEvent&&(($=r==null?void 0:r.validate)==null||$.call(r,"change").catch(A=>void 0))});const E=()=>{const T=v.value?o.inactiveValue:o.activeValue;n(Kt,T),n(tc,T),n(Yb,T),tt(()=>{u.value.checked=v.value})},w=()=>{if(a.value)return;const{beforeChange:T}=o;if(!T){E();return}const $=T();[ap($),ao($)].includes(!0)||ui(yA,"beforeChange must return type `Promise<boolean>` or `boolean`"),ap($)?$.then(P=>{P&&E()}).catch(P=>{}):$&&E()},S=()=>{var T,$;($=(T=u.value)==null?void 0:T.focus)==null||$.call(T)};return mt(()=>{u.value.checked=v.value}),t({focus:S,checked:v}),(T,$)=>(_(),k("div",{class:R(C(f)),onClick:qe(w,["prevent"])},[g("input",{id:C(l),ref_key:"input",ref:u,class:R(C(s).e("input")),type:"checkbox",role:"switch","aria-checked":C(v),"aria-disabled":C(a),"aria-label":T.label,name:T.name,"true-value":T.activeValue,"false-value":T.inactiveValue,disabled:C(a),tabindex:T.tabindex,onChange:E,onKeydown:Ut(w,["enter"])},null,42,lae),!T.inlinePrompt&&(T.inactiveIcon||T.inactiveText)?(_(),k("span",{key:0,class:R(C(p))},[T.inactiveIcon?(_(),L(C(ge),{key:0},{default:x(()=>[(_(),L(Et(T.inactiveIcon)))]),_:1})):O("v-if",!0),!T.inactiveIcon&&T.inactiveText?(_(),k("span",{key:1,"aria-hidden":C(v)},M(T.inactiveText),9,aae)):O("v-if",!0)],2)):O("v-if",!0),g("span",{ref_key:"core",ref:d,class:R(C(s).e("core")),style:Be(C(m))},[T.inlinePrompt?(_(),k("div",{key:0,class:R(C(s).e("inner"))},[T.activeIcon||T.inactiveIcon?(_(),L(C(ge),{key:0,class:R(C(s).is("icon"))},{default:x(()=>[(_(),L(Et(C(v)?T.activeIcon:T.inactiveIcon)))]),_:1},8,["class"])):T.activeText||T.inactiveText?(_(),k("span",{key:1,class:R(C(s).is("text")),"aria-hidden":!C(v)},M(C(v)?T.activeText:T.inactiveText),11,cae)):O("v-if",!0)],2)):O("v-if",!0),g("div",{class:R(C(s).e("action"))},[T.loading?(_(),L(C(ge),{key:0,class:R(C(s).is("loading"))},{default:x(()=>[y(C(A1))]),_:1},8,["class"])):C(v)?le(T.$slots,"active-action",{key:1},()=>[T.activeActionIcon?(_(),L(C(ge),{key:0},{default:x(()=>[(_(),L(Et(T.activeActionIcon)))]),_:1})):O("v-if",!0)]):C(v)?O("v-if",!0):le(T.$slots,"inactive-action",{key:2},()=>[T.inactiveActionIcon?(_(),L(C(ge),{key:0},{default:x(()=>[(_(),L(Et(T.inactiveActionIcon)))]),_:1})):O("v-if",!0)])],2)],6),!T.inlinePrompt&&(T.activeIcon||T.activeText)?(_(),k("span",{key:1,class:R(C(h))},[T.activeIcon?(_(),L(C(ge),{key:0},{default:x(()=>[(_(),L(Et(T.activeIcon)))]),_:1})):O("v-if",!0),!T.activeIcon&&T.activeText?(_(),k("span",{key:1,"aria-hidden":!C(v)},M(T.activeText),9,uae)):O("v-if",!0)],2)):O("v-if",!0)],10,sae))}});var pae=Re(fae,[["__file","switch.vue"]]);const wA=Vt(pae),sv=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},hae=function(e,t,n,o,r){if(!t&&!o&&(!r||Array.isArray(r)&&!r.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=o?null:function(l,a){return r?(Array.isArray(r)||(r=[r]),r.map(c=>typeof c=="string"?kr(l,c):c(l,a,e))):(t!=="$key"&&st(l)&&"$value"in l&&(l=l.$value),[st(l)?kr(l,t):l])},s=function(l,a){if(o)return o(l.value,a.value);for(let c=0,u=l.key.length;c<u;c++){if(l.key[c]<a.key[c])return-1;if(l.key[c]>a.key[c])return 1}return 0};return e.map((l,a)=>({value:l,index:a,key:i?i(l,a):null})).sort((l,a)=>{let c=s(l,a);return c||(c=l.index-a.index),c*+n}).map(l=>l.value)},kA=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},mae=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const r=e.columns[o];if(r.columnKey===t){n=r;break}}return n||ui("ElTable",`No column matching with column-key: ${t}`),n},$6=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?kA(e,o[0]):null},Xn=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const r of n)o=o[r];return`${o}`}else if(typeof t=="function")return t.call(null,e)},$a=function(e,t){const n={};return(e||[]).forEach((o,r)=>{n[Xn(o,t)]={row:o,index:r}}),n};function _ae(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(ut(t,o)){const r=t[o];typeof r<"u"&&(n[o]=r)}return n}function F3(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function xA(e){return e===""||e!==void 0&&(e=F3(e),Number.isNaN(e)&&(e=80)),e}function gae(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function vae(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Wf(e,t,n){let o=!1;const r=e.indexOf(t),i=r!==-1,s=l=>{l==="add"?e.push(t):e.splice(r,1),o=!0,$e(t.children)&&t.children.forEach(a=>{Wf(e,a,n??!i)})};return ao(n)?n&&!i?s("add"):!n&&i&&s("remove"):s(i?"remove":"add"),o}function bae(e,t,n="children",o="hasChildren"){const r=s=>!(Array.isArray(s)&&s.length);function i(s,l,a){t(s,l,a),l.forEach(c=>{if(c[o]){t(c,null,a+1);return}const u=c[n];r(u)||i(c,u,a+1)})}e.forEach(s=>{if(s[o]){t(s,null,0);return}const l=s[n];r(l)||i(s,l,0)})}let gr=null;function yae(e,t,n,o){if((gr==null?void 0:gr.trigger)===n)return;gr==null||gr();const r=o==null?void 0:o.refs.tableWrapper,i=r==null?void 0:r.dataset.prefix,s={strategy:"fixed",...e.popperOptions},l=y(fd,{content:t,virtualTriggering:!0,virtualRef:n,appendTo:r,placement:"top",transition:"none",offset:0,hideAfter:0,...e,popperOptions:s,onHide:()=>{gr==null||gr()}});l.appContext={...o.appContext,...o};const a=document.createElement("div");ws(l,a),l.component.exposed.onOpen();const c=r==null?void 0:r.querySelector(`.${i}-scrollbar__wrap`);gr=()=>{ws(null,a),c==null||c.removeEventListener("scroll",gr),gr=null},gr.trigger=n,c==null||c.addEventListener("scroll",gr)}function CA(e){return e.children?IY(e.children,CA):[e]}function E6(e,t){return e+t.colSpan}const SA=(e,t,n,o)=>{let r=0,i=e;const s=n.states.columns.value;if(o){const a=CA(o[e]);r=s.slice(0,s.indexOf(a[0])).reduce(E6,0),i=r+a.reduce(E6,0)-1}else r=e;let l;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(l="left");break;case"right":r>=s.length-n.states.rightFixedLeafColumnsLength.value&&(l="right");break;default:i<n.states.fixedLeafColumnsLength.value?l="left":r>=s.length-n.states.rightFixedLeafColumnsLength.value&&(l="right")}return l?{direction:l,start:r,after:i}:{}},D3=(e,t,n,o,r,i=0)=>{const s=[],{direction:l,start:a,after:c}=SA(t,n,o,r);if(l){const u=l==="left";s.push(`${e}-fixed-column--${l}`),u&&c+i===o.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!u&&a-i===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function T6(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const B3=(e,t,n,o)=>{const{direction:r,start:i=0,after:s=0}=SA(e,t,n,o);if(!r)return;const l={},a=r==="left",c=n.states.columns.value;return a?l.left=c.slice(0,i).reduce(T6,0):l.right=c.slice(s+1).reverse().reduce(T6,0),l},Zu=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function wae(e){const t=nt(),n=H(!1),o=H([]);return{updateExpandRows:()=>{const a=e.data.value||[],c=e.rowKey.value;if(n.value)o.value=a.slice();else if(c){const u=$a(o.value,c);o.value=a.reduce((d,f)=>{const p=Xn(f,c);return u[p]&&d.push(f),d},[])}else o.value=[]},toggleRowExpansion:(a,c)=>{Wf(o.value,a,c)&&t.emit("expand-change",a,o.value.slice())},setExpandRowKeys:a=>{t.store.assertRowKey();const c=e.data.value||[],u=e.rowKey.value,d=$a(c,u);o.value=a.reduce((f,p)=>{const h=d[p];return h&&f.push(h.row),f},[])},isRowExpanded:a=>{const c=e.rowKey.value;return c?!!$a(o.value,c)[Xn(a,c)]:o.value.includes(a)},states:{expandRows:o,defaultExpandAll:n}}}function kae(e){const t=nt(),n=H(null),o=H(null),r=c=>{t.store.assertRowKey(),n.value=c,s(c)},i=()=>{n.value=null},s=c=>{const{data:u,rowKey:d}=e;let f=null;d.value&&(f=(C(u)||[]).find(p=>Xn(p,d.value)===c)),o.value=f,t.emit("current-change",o.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:i,setCurrentRowByKey:s,updateCurrentRow:c=>{const u=o.value;if(c&&c!==u){o.value=c,t.emit("current-change",o.value,u);return}!c&&u&&(o.value=null,t.emit("current-change",null,u))},updateCurrentRowData:()=>{const c=e.rowKey.value,u=e.data.value||[],d=o.value;if(!u.includes(d)&&d){if(c){const f=Xn(d,c);s(f)}else o.value=null;o.value===null&&t.emit("current-change",null,d)}else n.value&&(s(n.value),i())},states:{_currentRowKey:n,currentRow:o}}}function xae(e){const t=H([]),n=H({}),o=H(16),r=H(!1),i=H({}),s=H("hasChildren"),l=H("children"),a=nt(),c=D(()=>{if(!e.rowKey.value)return{};const v=e.data.value||[];return d(v)}),u=D(()=>{const v=e.rowKey.value,E=Object.keys(i.value),w={};return E.length&&E.forEach(S=>{if(i.value[S].length){const T={children:[]};i.value[S].forEach($=>{const A=Xn($,v);T.children.push(A),$[s.value]&&!w[A]&&(w[A]={children:[]})}),w[S]=T}}),w}),d=v=>{const E=e.rowKey.value,w={};return bae(v,(S,T,$)=>{const A=Xn(S,E);Array.isArray(T)?w[A]={children:T.map(P=>Xn(P,E)),level:$}:r.value&&(w[A]={children:[],lazy:!0,level:$})},l.value,s.value),w},f=(v=!1,E=(w=>(w=a.store)==null?void 0:w.states.defaultExpandAll.value)())=>{var w;const S=c.value,T=u.value,$=Object.keys(S),A={};if($.length){const P=C(n),N=[],I=(V,G)=>{if(v)return t.value?E||t.value.includes(G):!!(E||V!=null&&V.expanded);{const ne=E||t.value&&t.value.includes(G);return!!(V!=null&&V.expanded||ne)}};$.forEach(V=>{const G=P[V],ne={...S[V]};if(ne.expanded=I(G,V),ne.lazy){const{loaded:oe=!1,loading:Z=!1}=G||{};ne.loaded=!!oe,ne.loading=!!Z,N.push(V)}A[V]=ne});const B=Object.keys(T);r.value&&B.length&&N.length&&B.forEach(V=>{const G=P[V],ne=T[V].children;if(N.includes(V)){if(A[V].children.length!==0)throw new Error("[ElTable]children must be an empty array.");A[V].children=ne}else{const{loaded:oe=!1,loading:Z=!1}=G||{};A[V]={lazy:!0,loaded:!!oe,loading:!!Z,expanded:I(G,V),children:ne,level:""}}})}n.value=A,(w=a.store)==null||w.updateTableScrollY()};ke(()=>t.value,()=>{f(!0)}),ke(()=>c.value,()=>{f()}),ke(()=>u.value,()=>{f()});const p=v=>{t.value=v,f()},h=(v,E)=>{a.store.assertRowKey();const w=e.rowKey.value,S=Xn(v,w),T=S&&n.value[S];if(S&&T&&"expanded"in T){const $=T.expanded;E=typeof E>"u"?!T.expanded:E,n.value[S].expanded=E,$!==E&&a.emit("expand-change",v,E),a.store.updateTableScrollY()}},m=v=>{a.store.assertRowKey();const E=e.rowKey.value,w=Xn(v,E),S=n.value[w];r.value&&S&&"loaded"in S&&!S.loaded?b(v,w,S):h(v,void 0)},b=(v,E,w)=>{const{load:S}=a.props;S&&!n.value[E].loaded&&(n.value[E].loading=!0,S(v,w,T=>{if(!Array.isArray(T))throw new TypeError("[ElTable] data must be an array");n.value[E].loading=!1,n.value[E].loaded=!0,n.value[E].expanded=!0,T.length&&(i.value[E]=T),a.emit("expand-change",v,!0)}))};return{loadData:b,loadOrToggle:m,toggleTreeExpansion:h,updateTreeExpandKeys:p,updateTreeData:f,normalize:d,states:{expandRowKeys:t,treeData:n,indent:o,lazy:r,lazyTreeNodeMap:i,lazyColumnIdentifier:s,childrenColumnName:l}}}const Cae=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:hae(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},t_=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,t_(n.children)):t.push(n)}),t};function Sae(){var e;const t=nt(),{size:n}=ji((e=t.proxy)==null?void 0:e.$props),o=H(null),r=H([]),i=H([]),s=H(!1),l=H([]),a=H([]),c=H([]),u=H([]),d=H([]),f=H([]),p=H([]),h=H([]),m=[],b=H(0),v=H(0),E=H(0),w=H(!1),S=H([]),T=H(!1),$=H(!1),A=H(null),P=H({}),N=H(null),I=H(null),B=H(null),V=H(null),G=H(null);ke(r,()=>t.state&&q(!1),{deep:!0});const ne=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},oe=ve=>{var He;(He=ve.children)==null||He.forEach(rt=>{rt.fixed=ve.fixed,oe(rt)})},Z=()=>{l.value.forEach(bt=>{oe(bt)}),u.value=l.value.filter(bt=>bt.fixed===!0||bt.fixed==="left"),d.value=l.value.filter(bt=>bt.fixed==="right"),u.value.length>0&&l.value[0]&&l.value[0].type==="selection"&&!l.value[0].fixed&&(l.value[0].fixed=!0,u.value.unshift(l.value[0]));const ve=l.value.filter(bt=>!bt.fixed);a.value=[].concat(u.value).concat(ve).concat(d.value);const He=t_(ve),rt=t_(u.value),Qe=t_(d.value);b.value=He.length,v.value=rt.length,E.value=Qe.length,c.value=[].concat(rt).concat(He).concat(Qe),s.value=u.value.length>0||d.value.length>0},q=(ve,He=!1)=>{ve&&Z(),He?t.state.doLayout():t.state.debouncedUpdateLayout()},X=ve=>S.value.includes(ve),ee=()=>{w.value=!1,S.value.length&&(S.value=[],t.emit("selection-change",[]))},F=()=>{let ve;if(o.value){ve=[];const He=$a(S.value,o.value),rt=$a(r.value,o.value);for(const Qe in He)ut(He,Qe)&&!rt[Qe]&&ve.push(He[Qe].row)}else ve=S.value.filter(He=>!r.value.includes(He));if(ve.length){const He=S.value.filter(rt=>!ve.includes(rt));S.value=He,t.emit("selection-change",He.slice())}},be=()=>(S.value||[]).slice(),xe=(ve,He=void 0,rt=!0)=>{if(Wf(S.value,ve,He)){const bt=(S.value||[]).slice();rt&&t.emit("select",bt,ve),t.emit("selection-change",bt)}},U=()=>{var ve,He;const rt=$.value?!w.value:!(w.value||S.value.length);w.value=rt;let Qe=!1,bt=0;const Gt=(He=(ve=t==null?void 0:t.store)==null?void 0:ve.states)==null?void 0:He.rowKey.value;r.value.forEach((_t,Jt)=>{const an=Jt+bt;A.value?A.value.call(null,_t,an)&&Wf(S.value,_t,rt)&&(Qe=!0):Wf(S.value,_t,rt)&&(Qe=!0),bt+=Fe(Xn(_t,Gt))}),Qe&&t.emit("selection-change",S.value?S.value.slice():[]),t.emit("select-all",S.value)},Ee=()=>{const ve=$a(S.value,o.value);r.value.forEach(He=>{const rt=Xn(He,o.value),Qe=ve[rt];Qe&&(S.value[Qe.index]=He)})},Ze=()=>{var ve,He,rt;if(((ve=r.value)==null?void 0:ve.length)===0){w.value=!1;return}let Qe;o.value&&(Qe=$a(S.value,o.value));const bt=function(an){return Qe?!!Qe[Xn(an,o.value)]:S.value.includes(an)};let Gt=!0,_t=0,Jt=0;for(let an=0,M0=(r.value||[]).length;an<M0;an++){const A0=(rt=(He=t==null?void 0:t.store)==null?void 0:He.states)==null?void 0:rt.rowKey.value,xc=an+Jt,Nd=r.value[an],I0=A.value&&A.value.call(null,Nd,xc);if(bt(Nd))_t++;else if(!A.value||I0){Gt=!1;break}Jt+=Fe(Xn(Nd,A0))}_t===0&&(Gt=!1),w.value=Gt},Fe=ve=>{var He;if(!t||!t.store)return 0;const{treeData:rt}=t.store.states;let Qe=0;const bt=(He=rt.value[ve])==null?void 0:He.children;return bt&&(Qe+=bt.length,bt.forEach(Gt=>{Qe+=Fe(Gt)})),Qe},J=(ve,He)=>{Array.isArray(ve)||(ve=[ve]);const rt={};return ve.forEach(Qe=>{P.value[Qe.id]=He,rt[Qe.columnKey||Qe.id]=He}),rt},ce=(ve,He,rt)=>{I.value&&I.value!==ve&&(I.value.order=null),I.value=ve,B.value=He,V.value=rt},he=()=>{let ve=C(i);Object.keys(P.value).forEach(He=>{const rt=P.value[He];if(!rt||rt.length===0)return;const Qe=kA({columns:c.value},He);Qe&&Qe.filterMethod&&(ve=ve.filter(bt=>rt.some(Gt=>Qe.filterMethod.call(null,Gt,bt,Qe))))}),N.value=ve},se=()=>{r.value=Cae(N.value,{sortingColumn:I.value,sortProp:B.value,sortOrder:V.value})},Le=(ve=void 0)=>{ve&&ve.filter||he(),se()},et=ve=>{const{tableHeaderRef:He}=t.refs;if(!He)return;const rt=Object.assign({},He.filterPanels),Qe=Object.keys(rt);if(Qe.length)if(typeof ve=="string"&&(ve=[ve]),Array.isArray(ve)){const bt=ve.map(Gt=>mae({columns:c.value},Gt));Qe.forEach(Gt=>{const _t=bt.find(Jt=>Jt.id===Gt);_t&&(_t.filteredValue=[])}),t.store.commit("filterChange",{column:bt,values:[],silent:!0,multi:!0})}else Qe.forEach(bt=>{const Gt=c.value.find(_t=>_t.id===bt);Gt&&(Gt.filteredValue=[])}),P.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},j=()=>{I.value&&(ce(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:W,toggleRowExpansion:re,updateExpandRows:pe,states:fe,isRowExpanded:Ce}=wae({data:r,rowKey:o}),{updateTreeExpandKeys:Ie,toggleTreeExpansion:ye,updateTreeData:Se,loadOrToggle:_e,states:De}=xae({data:r,rowKey:o}),{updateCurrentRowData:Ge,updateCurrentRow:ie,setCurrentRowKey:Y,states:ae}=kae({data:r,rowKey:o});return{assertRowKey:ne,updateColumns:Z,scheduleLayout:q,isSelected:X,clearSelection:ee,cleanSelection:F,getSelectionRows:be,toggleRowSelection:xe,_toggleAllSelection:U,toggleAllSelection:null,updateSelectionByRowKey:Ee,updateAllSelected:Ze,updateFilters:J,updateCurrentRow:ie,updateSort:ce,execFilter:he,execSort:se,execQuery:Le,clearFilter:et,clearSort:j,toggleRowExpansion:re,setExpandRowKeysAdapter:ve=>{W(ve),Ie(ve)},setCurrentRowKey:Y,toggleRowExpansionAdapter:(ve,He)=>{c.value.some(({type:Qe})=>Qe==="expand")?re(ve,He):ye(ve,He)},isRowExpanded:Ce,updateExpandRows:pe,updateCurrentRowData:Ge,loadOrToggle:_e,updateTreeData:Se,states:{tableSize:n,rowKey:o,data:r,_data:i,isComplex:s,_columns:l,originColumns:a,columns:c,fixedColumns:u,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:p,rightFixedLeafColumns:h,updateOrderFns:m,leafColumnsLength:b,fixedLeafColumnsLength:v,rightFixedLeafColumnsLength:E,isAllSelected:w,selection:S,reserveSelection:T,selectOnIndeterminate:$,selectable:A,filters:P,filteredData:N,sortingColumn:I,sortProp:B,sortOrder:V,hoverRow:G,...fe,...De,...ae}}}function vy(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=vy(n.children,t)),n)})}function by(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&by(t.children)}),e.sort((t,n)=>t.no-n.no)}function $ae(){const e=nt(),t=Sae();return{ns:Ae("table"),...t,mutations:{setData(s,l){const a=C(s._data)!==l;s.data.value=l,s._data.value=l,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),C(s.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):a?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,l,a,c){const u=C(s._columns);let d=[];a?(a&&!a.children&&(a.children=[]),a.children.push(l),d=vy(u,a)):(u.push(l),d=u),by(d),s._columns.value=d,s.updateOrderFns.push(c),l.type==="selection"&&(s.selectable.value=l.selectable,s.reserveSelection.value=l.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,l){var a;((a=l.getColumnIndex)==null?void 0:a.call(l))!==l.no&&(by(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,l,a,c){const u=C(s._columns)||[];if(a)a.children.splice(a.children.findIndex(f=>f.id===l.id),1),tt(()=>{var f;((f=a.children)==null?void 0:f.length)===0&&delete a.children}),s._columns.value=vy(u,a);else{const f=u.indexOf(l);f>-1&&(u.splice(f,1),s._columns.value=u)}const d=s.updateOrderFns.indexOf(c);d>-1&&s.updateOrderFns.splice(d,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,l){const{prop:a,order:c,init:u}=l;if(a){const d=C(s.columns).find(f=>f.property===a);d&&(d.order=c,e.store.updateSort(d,a,c),e.store.commit("changeSortCondition",{init:u}))}},changeSortCondition(s,l){const{sortingColumn:a,sortProp:c,sortOrder:u}=s,d=C(a),f=C(c),p=C(u);p===null&&(s.sortingColumn.value=null,s.sortProp.value=null);const h={filter:!0};e.store.execQuery(h),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:d,prop:f,order:p}),e.store.updateTableScrollY()},filterChange(s,l){const{column:a,values:c,silent:u}=l,d=e.store.updateFilters(a,c);e.store.execQuery(),u||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(s,l){e.store.toggleRowSelection(l),e.store.updateAllSelected()},setHoverRow(s,l){s.hoverRow.value=l},setCurrentRow(s,l){e.store.updateCurrentRow(l)}},commit:function(s,...l){const a=e.store.mutations;if(a[s])a[s].apply(e,[e.store.states].concat(l));else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){tt(()=>e.layout.updateScrollY.apply(e.layout))}}}const qf={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function Eae(e,t){if(!e)throw new Error("Table is required.");const n=$ae();return n.toggleAllSelection=Xa(n._toggleAllSelection,10),Object.keys(qf).forEach(o=>{$A(EA(t,o),o,n)}),Tae(n,t),n}function Tae(e,t){Object.keys(qf).forEach(n=>{ke(()=>EA(t,n),o=>{$A(o,n,e)})})}function $A(e,t,n){let o=e,r=qf[t];typeof qf[t]=="object"&&(r=r.key,o=o||qf[t].default),n.states[r].value=o}function EA(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(r=>{o=o[r]}),o}else return e[t]}class Mae{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=H(null),this.scrollX=H(!1),this.scrollY=H(!1),this.bodyWidth=H(null),this.fixedWidth=H(null),this.rightFixedWidth=H(null),this.gutterWidth=0;for(const n in t)ut(t,n)&&(Zt(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let o=!0;const r=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,r!==o}return!1}setHeight(t,n="height"){if(!kt)return;const o=this.table.vnode.el;if(t=gae(t),this.height.value=Number(t),!o&&(t||t===0))return tt(()=>this.setHeight(t,n));typeof t=="number"?(o.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!kt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let o=0;const r=this.getFlattenColumns(),i=r.filter(a=>typeof a.width!="number");if(r.forEach(a=>{typeof a.width=="number"&&a.realWidth&&(a.realWidth=null)}),i.length>0&&t){if(r.forEach(a=>{o+=Number(a.width||a.minWidth||80)}),o<=n){this.scrollX.value=!1;const a=n-o;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+a;else{const c=i.reduce((f,p)=>f+Number(p.minWidth||80),0),u=a/c;let d=0;i.forEach((f,p)=>{if(p===0)return;const h=Math.floor(Number(f.minWidth||80)*u);d+=h,f.realWidth=Number(f.minWidth||80)+h}),i[0].realWidth=Number(i[0].minWidth||80)+a-d}}else this.scrollX.value=!0,i.forEach(a=>{a.realWidth=Number(a.minWidth)});this.bodyWidth.value=Math.max(o,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach(a=>{!a.width&&!a.minWidth?a.realWidth=80:a.realWidth=Number(a.width||a.minWidth),o+=a.realWidth}),this.scrollX.value=o>n,this.bodyWidth.value=o;const s=this.store.states.fixedColumns.value;if(s.length>0){let a=0;s.forEach(c=>{a+=Number(c.realWidth||c.width)}),this.fixedWidth.value=a}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let a=0;l.forEach(c=>{a+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=a}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var r,i;switch(t){case"columns":(r=o.state)==null||r.onColumnsChange(this);break;case"scrollable":(i=o.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:Aae}=Dr,Iae=K({name:"ElTableFilterPanel",components:{ElCheckbox:Dr,ElCheckboxGroup:Aae,ElScrollbar:$o,ElTooltip:fd,ElIcon:ge,ArrowDown:lh,ArrowUp:pT},directives:{ClickOutside:A3},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=nt(),{t:n}=Dn(),o=Ae("table-filter"),r=t==null?void 0:t.parent;r.filterPanels.value[e.column.id]||(r.filterPanels.value[e.column.id]=t);const i=H(!1),s=H(null),l=D(()=>e.column&&e.column.filters),a=D(()=>e.column.filterClassName?`${o.b()} ${e.column.filterClassName}`:o.b()),c=D({get:()=>{var T;return(((T=e.column)==null?void 0:T.filteredValue)||[])[0]},set:T=>{u.value&&(typeof T<"u"&&T!==null?u.value.splice(0,1,T):u.value.splice(0,1))}}),u=D({get(){return e.column?e.column.filteredValue||[]:[]},set(T){e.column&&e.upDataColumn("filteredValue",T)}}),d=D(()=>e.column?e.column.filterMultiple:!0),f=T=>T.value===c.value,p=()=>{i.value=!1},h=T=>{T.stopPropagation(),i.value=!i.value},m=()=>{i.value=!1},b=()=>{w(u.value),p()},v=()=>{u.value=[],w(u.value),p()},E=T=>{c.value=T,w(typeof T<"u"&&T!==null?u.value:[]),p()},w=T=>{e.store.commit("filterChange",{column:e.column,values:T}),e.store.updateAllSelected()};ke(i,T=>{e.column&&e.upDataColumn("filterOpened",T)},{immediate:!0});const S=D(()=>{var T,$;return($=(T=s.value)==null?void 0:T.popperRef)==null?void 0:$.contentRef});return{tooltipVisible:i,multiple:d,filterClassName:a,filteredValue:u,filterValue:c,filters:l,handleConfirm:b,handleReset:v,handleSelect:E,isActive:f,t:n,ns:o,showFilterPanel:h,hideFilterPanel:m,popperPaneRef:S,tooltip:s}}}),Oae={key:0},Pae=["disabled"],Nae=["label","onClick"];function Lae(e,t,n,o,r,i){const s=z("el-checkbox"),l=z("el-checkbox-group"),a=z("el-scrollbar"),c=z("arrow-up"),u=z("arrow-down"),d=z("el-icon"),f=z("el-tooltip"),p=Mt("click-outside");return _(),L(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:""},{content:x(()=>[e.multiple?(_(),k("div",Oae,[g("div",{class:R(e.ns.e("content"))},[y(a,{"wrap-class":e.ns.e("wrap")},{default:x(()=>[y(l,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=h=>e.filteredValue=h),class:R(e.ns.e("checkbox-group"))},{default:x(()=>[(_(!0),k(Q,null,Te(e.filters,h=>(_(),L(s,{key:h.value,value:h.value},{default:x(()=>[te(M(h.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),g("div",{class:R(e.ns.e("bottom"))},[g("button",{class:R({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...h)=>e.handleConfirm&&e.handleConfirm(...h))},M(e.t("el.table.confirmFilter")),11,Pae),g("button",{type:"button",onClick:t[2]||(t[2]=(...h)=>e.handleReset&&e.handleReset(...h))},M(e.t("el.table.resetFilter")),1)],2)])):(_(),k("ul",{key:1,class:R(e.ns.e("list"))},[g("li",{class:R([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=h=>e.handleSelect(null))},M(e.t("el.table.clearFilter")),3),(_(!0),k(Q,null,Te(e.filters,h=>(_(),k("li",{key:h.value,class:R([e.ns.e("list-item"),e.ns.is("active",e.isActive(h))]),label:h.value,onClick:m=>e.handleSelect(h.value)},M(h.text),11,Nae))),128))],2))]),default:x(()=>[ze((_(),k("span",{class:R([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...h)=>e.showFilterPanel&&e.showFilterPanel(...h))},[y(d,null,{default:x(()=>[e.column.filterOpened?(_(),L(c,{key:0})):(_(),L(u,{key:1}))]),_:1})],2)),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var Rae=Re(Iae,[["render",Lae],["__file","filter-panel.vue"]]);function TA(e){const t=nt();ld(()=>{n.value.addObserver(t)}),mt(()=>{o(n.value),r(n.value)}),Bl(()=>{o(n.value),r(n.value)}),Hi(()=>{n.value.removeObserver(t)});const n=D(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),o=i=>{var s;const l=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col"))||[];if(!l.length)return;const a=i.getFlattenColumns(),c={};a.forEach(u=>{c[u.id]=u});for(let u=0,d=l.length;u<d;u++){const f=l[u],p=f.getAttribute("name"),h=c[p];h&&f.setAttribute("width",h.realWidth||h.width)}},r=i=>{var s,l;const a=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let u=0,d=a.length;u<d;u++)a[u].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const c=((l=e.vnode.el)==null?void 0:l.querySelectorAll("th.gutter"))||[];for(let u=0,d=c.length;u<d;u++){const f=c[u];f.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",f.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:r}}const Ki=Symbol("ElTable");function Fae(e,t){const n=nt(),o=Ne(Ki),r=m=>{m.stopPropagation()},i=(m,b)=>{!b.filters&&b.sortable?h(m,b,!1):b.filterable&&!b.sortable&&r(m),o==null||o.emit("header-click",b,m)},s=(m,b)=>{o==null||o.emit("header-contextmenu",b,m)},l=H(null),a=H(!1),c=H({}),u=(m,b)=>{if(kt&&!(b.children&&b.children.length>0)&&l.value&&e.border){a.value=!0;const v=o;t("set-drag-visible",!0);const w=(v==null?void 0:v.vnode.el).getBoundingClientRect().left,S=n.vnode.el.querySelector(`th.${b.id}`),T=S.getBoundingClientRect(),$=T.left-w+30;ec(S,"noclick"),c.value={startMouseLeft:m.clientX,startLeft:T.right-w,startColumnLeft:T.left-w,tableLeft:w};const A=v==null?void 0:v.refs.resizeProxy;A.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const P=I=>{const B=I.clientX-c.value.startMouseLeft,V=c.value.startLeft+B;A.style.left=`${Math.max($,V)}px`},N=()=>{if(a.value){const{startColumnLeft:I,startLeft:B}=c.value,G=Number.parseInt(A.style.left,10)-I;b.width=b.realWidth=G,v==null||v.emit("header-dragend",b.width,B-I,b,m),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",a.value=!1,l.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",N),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Li(S,"noclick")},0)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",N)}},d=(m,b)=>{if(b.children&&b.children.length>0)return;const v=m.target;if(!si(v))return;const E=v==null?void 0:v.closest("th");if(!(!b||!b.resizable)&&!a.value&&e.border){const w=E.getBoundingClientRect(),S=document.body.style;w.width>12&&w.right-m.pageX<8?(S.cursor="col-resize",hu(E,"is-sortable")&&(E.style.cursor="col-resize"),l.value=b):a.value||(S.cursor="",hu(E,"is-sortable")&&(E.style.cursor="pointer"),l.value=null)}},f=()=>{kt&&(document.body.style.cursor="")},p=({order:m,sortOrders:b})=>{if(m==="")return b[0];const v=b.indexOf(m||null);return b[v>b.length-2?0:v+1]},h=(m,b,v)=>{var E;m.stopPropagation();const w=b.order===v?null:v||p(b),S=(E=m.target)==null?void 0:E.closest("th");if(S&&hu(S,"noclick")){Li(S,"noclick");return}if(!b.sortable)return;const T=e.store.states;let $=T.sortProp.value,A;const P=T.sortingColumn.value;(P!==b||P===b&&P.order===null)&&(P&&(P.order=null),T.sortingColumn.value=b,$=b.property),w?A=b.order=w:A=b.order=null,T.sortProp.value=$,T.sortOrder.value=A,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:s,handleMouseDown:u,handleMouseMove:d,handleMouseOut:f,handleSortClick:h,handleFilterClick:r}}function Dae(e){const t=Ne(Ki),n=Ae("table");return{getHeaderRowStyle:l=>{const a=t==null?void 0:t.props.headerRowStyle;return typeof a=="function"?a.call(null,{rowIndex:l}):a},getHeaderRowClass:l=>{const a=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?a.push(c):typeof c=="function"&&a.push(c.call(null,{rowIndex:l})),a.join(" ")},getHeaderCellStyle:(l,a,c,u)=>{var d;let f=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};typeof f=="function"&&(f=f.call(null,{rowIndex:l,columnIndex:a,row:c,column:u}));const p=B3(a,u.fixed,e.store,c);return Zu(p,"left"),Zu(p,"right"),Object.assign({},f,p)},getHeaderCellClass:(l,a,c,u)=>{const d=D3(n.b(),a,u.fixed,e.store,c),f=[u.id,u.order,u.headerAlign,u.className,u.labelClassName,...d];u.children||f.push("is-leaf"),u.sortable&&f.push("is-sortable");const p=t==null?void 0:t.props.headerCellClassName;return typeof p=="string"?f.push(p):typeof p=="function"&&f.push(p.call(null,{rowIndex:l,columnIndex:a,row:c,column:u})),f.push(n.e("cell")),f.filter(h=>!!h).join(" ")}}}const MA=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,MA(n.children))):t.push(n)}),t},Bae=e=>{let t=1;const n=(i,s)=>{if(s&&(i.level=s.level+1,t<i.level&&(t=i.level)),i.children){let l=0;i.children.forEach(a=>{n(a,i),l+=a.colSpan}),i.colSpan=l}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const o=[];for(let i=0;i<t;i++)o.push([]);return MA(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(s=>s.isSubColumn=!0)):i.rowSpan=t-i.level+1,o[i.level-1].push(i)}),o};function zae(e){const t=Ne(Ki),n=D(()=>Bae(e.store.states.originColumns.value));return{isGroup:D(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var Vae=K({name:"ElTableHeader",components:{ElCheckbox:Dr},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=nt(),o=Ne(Ki),r=Ae("table"),i=H({}),{onColumnsChange:s,onScrollableChange:l}=TA(o);mt(async()=>{await tt(),await tt();const{prop:$,order:A}=e.defaultSort;o==null||o.store.commit("sort",{prop:$,order:A,init:!0})});const{handleHeaderClick:a,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleMouseOut:f,handleSortClick:p,handleFilterClick:h}=Fae(e,t),{getHeaderRowStyle:m,getHeaderRowClass:b,getHeaderCellStyle:v,getHeaderCellClass:E}=Dae(e),{isGroup:w,toggleAllSelection:S,columnRows:T}=zae(e);return n.state={onColumnsChange:s,onScrollableChange:l},n.filterPanels=i,{ns:r,filterPanels:i,onColumnsChange:s,onScrollableChange:l,columnRows:T,getHeaderRowClass:b,getHeaderRowStyle:m,getHeaderCellClass:E,getHeaderCellStyle:v,handleHeaderClick:a,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleMouseOut:f,handleSortClick:p,handleFilterClick:h,isGroup:w,toggleAllSelection:S}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:o,getHeaderCellClass:r,getHeaderRowClass:i,getHeaderRowStyle:s,handleHeaderClick:l,handleHeaderContextMenu:a,handleMouseDown:c,handleMouseMove:u,handleSortClick:d,handleMouseOut:f,store:p,$parent:h}=this;let m=1;return Xe("thead",{class:{[e.is("group")]:t}},n.map((b,v)=>Xe("tr",{class:i(v),key:v,style:s(v)},b.map((E,w)=>(E.rowSpan>m&&(m=E.rowSpan),Xe("th",{class:r(v,w,b,E),colspan:E.colSpan,key:`${E.id}-thead`,rowspan:E.rowSpan,style:o(v,w,b,E),onClick:S=>l(S,E),onContextmenu:S=>a(S,E),onMousedown:S=>c(S,E),onMousemove:S=>u(S,E),onMouseout:f},[Xe("div",{class:["cell",E.filteredValue&&E.filteredValue.length>0?"highlight":""]},[E.renderHeader?E.renderHeader({column:E,$index:w,store:p,_self:h}):E.label,E.sortable&&Xe("span",{onClick:S=>d(S,E),class:"caret-wrapper"},[Xe("i",{onClick:S=>d(S,E,"ascending"),class:"sort-caret ascending"}),Xe("i",{onClick:S=>d(S,E,"descending"),class:"sort-caret descending"})]),E.filterable&&Xe(Rae,{store:p,placement:E.filterPlacement||"bottom-start",column:E,upDataColumn:(S,T)=>{E[S]=T}})])]))))))}});function jae(e){const t=Ne(Ki),n=H(""),o=H(Xe("div")),r=(h,m,b)=>{var v;const E=t,w=sv(h);let S;const T=(v=E==null?void 0:E.vnode.el)==null?void 0:v.dataset.prefix;w&&(S=$6({columns:e.store.states.columns.value},w,T),S&&(E==null||E.emit(`cell-${b}`,m,S,w,h))),E==null||E.emit(`row-${b}`,m,S,h)},i=(h,m)=>{r(h,m,"dblclick")},s=(h,m)=>{e.store.commit("setCurrentRow",m),r(h,m,"click")},l=(h,m)=>{r(h,m,"contextmenu")},a=Xa(h=>{e.store.commit("setHoverRow",h)},30),c=Xa(()=>{e.store.commit("setHoverRow",null)},30),u=h=>{const m=window.getComputedStyle(h,null),b=Number.parseInt(m.paddingLeft,10)||0,v=Number.parseInt(m.paddingRight,10)||0,E=Number.parseInt(m.paddingTop,10)||0,w=Number.parseInt(m.paddingBottom,10)||0;return{left:b,right:v,top:E,bottom:w}},d=(h,m,b)=>{let v=m.target.parentNode;for(;h>1&&(v=v==null?void 0:v.nextSibling,!(!v||v.nodeName!=="TR"));)b(v,"hover-row hover-fixed-row"),h--};return{handleDoubleClick:i,handleClick:s,handleContextMenu:l,handleMouseEnter:a,handleMouseLeave:c,handleCellMouseEnter:(h,m,b)=>{var v;const E=t,w=sv(h),S=(v=E==null?void 0:E.vnode.el)==null?void 0:v.dataset.prefix;if(w){const q=$6({columns:e.store.states.columns.value},w,S);w.rowSpan>1&&d(w.rowSpan,h,ec);const X=E.hoverState={cell:w,column:q,row:m};E==null||E.emit("cell-mouse-enter",X.row,X.column,X.cell,h)}if(!b)return;const T=h.target.querySelector(".cell");if(!(hu(T,`${S}-tooltip`)&&T.childNodes.length))return;const $=document.createRange();$.setStart(T,0),$.setEnd(T,T.childNodes.length);let A=$.getBoundingClientRect().width,P=$.getBoundingClientRect().height;A-Math.floor(A)<.001&&(A=Math.floor(A)),P-Math.floor(P)<.001&&(P=Math.floor(P));const{top:B,left:V,right:G,bottom:ne}=u(T),oe=V+G,Z=B+ne;(A+oe>T.offsetWidth||P+Z>T.offsetHeight||T.scrollWidth>T.offsetWidth)&&yae(b,w.innerText||w.textContent,w,E)},handleCellMouseLeave:h=>{const m=sv(h);if(!m)return;m.rowSpan>1&&d(m.rowSpan,h,Li);const b=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",b==null?void 0:b.row,b==null?void 0:b.column,b==null?void 0:b.cell,h)},tooltipContent:n,tooltipTrigger:o}}function Hae(e){const t=Ne(Ki),n=Ae("table");return{getRowStyle:(c,u)=>{const d=t==null?void 0:t.props.rowStyle;return typeof d=="function"?d.call(null,{row:c,rowIndex:u}):d||null},getRowClass:(c,u)=>{const d=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===e.store.states.currentRow.value&&d.push("current-row"),e.stripe&&u%2===1&&d.push(n.em("row","striped"));const f=t==null?void 0:t.props.rowClassName;return typeof f=="string"?d.push(f):typeof f=="function"&&d.push(f.call(null,{row:c,rowIndex:u})),d},getCellStyle:(c,u,d,f)=>{const p=t==null?void 0:t.props.cellStyle;let h=p??{};typeof p=="function"&&(h=p.call(null,{rowIndex:c,columnIndex:u,row:d,column:f}));const m=B3(u,e==null?void 0:e.fixed,e.store);return Zu(m,"left"),Zu(m,"right"),Object.assign({},h,m)},getCellClass:(c,u,d,f,p)=>{const h=D3(n.b(),u,e==null?void 0:e.fixed,e.store,void 0,p),m=[f.id,f.align,f.className,...h],b=t==null?void 0:t.props.cellClassName;return typeof b=="string"?m.push(b):typeof b=="function"&&m.push(b.call(null,{rowIndex:c,columnIndex:u,row:d,column:f})),m.push(n.e("cell")),m.filter(v=>!!v).join(" ")},getSpan:(c,u,d,f)=>{let p=1,h=1;const m=t==null?void 0:t.props.spanMethod;if(typeof m=="function"){const b=m({row:c,column:u,rowIndex:d,columnIndex:f});Array.isArray(b)?(p=b[0],h=b[1]):typeof b=="object"&&(p=b.rowspan,h=b.colspan)}return{rowspan:p,colspan:h}},getColspanRealWidth:(c,u,d)=>{if(u<1)return c[d].realWidth;const f=c.map(({realWidth:p,width:h})=>p||h).slice(d,d+u);return Number(f.reduce((p,h)=>Number(p)+Number(h),-1))}}}function Uae(e){const t=Ne(Ki),n=Ae("table"),{handleDoubleClick:o,handleClick:r,handleContextMenu:i,handleMouseEnter:s,handleMouseLeave:l,handleCellMouseEnter:a,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:d}=jae(e),{getRowStyle:f,getRowClass:p,getCellStyle:h,getCellClass:m,getSpan:b,getColspanRealWidth:v}=Hae(e),E=D(()=>e.store.states.columns.value.findIndex(({type:A})=>A==="default")),w=(A,P)=>{const N=t.props.rowKey;return N?Xn(A,N):P},S=(A,P,N,I=!1)=>{const{tooltipEffect:B,tooltipOptions:V,store:G}=e,{indent:ne,columns:oe}=G.states,Z=p(A,P);let q=!0;return N&&(Z.push(n.em("row",`level-${N.level}`)),q=N.display),Xe("tr",{style:[q?null:{display:"none"},f(A,P)],class:Z,key:w(A,P),onDblclick:ee=>o(ee,A),onClick:ee=>r(ee,A),onContextmenu:ee=>i(ee,A),onMouseenter:()=>s(P),onMouseleave:l},oe.value.map((ee,F)=>{const{rowspan:be,colspan:xe}=b(A,ee,P,F);if(!be||!xe)return null;const U=Object.assign({},ee);U.realWidth=v(oe.value,xe,F);const Ee={store:e.store,_self:e.context||t,column:U,row:A,$index:P,cellIndex:F,expanded:I};F===E.value&&N&&(Ee.treeNode={indent:N.level*ne.value,level:N.level},typeof N.expanded=="boolean"&&(Ee.treeNode.expanded=N.expanded,"loading"in N&&(Ee.treeNode.loading=N.loading),"noLazyChildren"in N&&(Ee.treeNode.noLazyChildren=N.noLazyChildren)));const Ze=`${P},${F}`,Fe=U.columnKey||U.rawColumnKey||"",J=T(F,ee,Ee),ce=ee.showOverflowTooltip&&PY({effect:B},V,ee.showOverflowTooltip);return Xe("td",{style:h(P,F,A,ee),class:m(P,F,A,ee,xe-1),key:`${Fe}${Ze}`,rowspan:be,colspan:xe,onMouseenter:he=>a(he,A,ce),onMouseleave:c},[J])}))},T=(A,P,N)=>P.renderCell(N);return{wrappedRowRender:(A,P)=>{const N=e.store,{isRowExpanded:I,assertRowKey:B}=N,{treeData:V,lazyTreeNodeMap:G,childrenColumnName:ne,rowKey:oe}=N.states,Z=N.states.columns.value;if(Z.some(({type:X})=>X==="expand")){const X=I(A),ee=S(A,P,void 0,X),F=t.renderExpanded;return X?F?[[ee,Xe("tr",{key:`expanded-row__${ee.key}`},[Xe("td",{colspan:Z.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[F({row:A,$index:P,store:N,expanded:X})])])]]:(console.error("[Element Error]renderExpanded is required."),ee):[[ee]]}else if(Object.keys(V.value).length){B();const X=Xn(A,oe.value);let ee=V.value[X],F=null;ee&&(F={expanded:ee.expanded,level:ee.level,display:!0},typeof ee.lazy=="boolean"&&(typeof ee.loaded=="boolean"&&ee.loaded&&(F.noLazyChildren=!(ee.children&&ee.children.length)),F.loading=ee.loading));const be=[S(A,P,F)];if(ee){let xe=0;const U=(Ze,Fe)=>{Ze&&Ze.length&&Fe&&Ze.forEach(J=>{const ce={display:Fe.display&&Fe.expanded,level:Fe.level+1,expanded:!1,noLazyChildren:!1,loading:!1},he=Xn(J,oe.value);if(he==null)throw new Error("For nested data item, row-key is required.");if(ee={...V.value[he]},ee&&(ce.expanded=ee.expanded,ee.level=ee.level||ce.level,ee.display=!!(ee.expanded&&ce.display),typeof ee.lazy=="boolean"&&(typeof ee.loaded=="boolean"&&ee.loaded&&(ce.noLazyChildren=!(ee.children&&ee.children.length)),ce.loading=ee.loading)),xe++,be.push(S(J,P+xe,ce)),ee){const se=G.value[he]||J[ne.value];U(se,ee)}})};ee.display=!0;const Ee=G.value[X]||A[ne.value];U(Ee,ee)}return be}else return S(A,P,void 0)},tooltipContent:u,tooltipTrigger:d}}const Wae={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var qae=K({name:"ElTableBody",props:Wae,setup(e){const t=nt(),n=Ne(Ki),o=Ae("table"),{wrappedRowRender:r,tooltipContent:i,tooltipTrigger:s}=Uae(e),{onColumnsChange:l,onScrollableChange:a}=TA(n),c=[];return ke(e.store.states.hoverRow,(u,d)=>{var f;const p=t==null?void 0:t.vnode.el,h=Array.from((p==null?void 0:p.children)||[]).filter(v=>v==null?void 0:v.classList.contains(`${o.e("row")}`));let m=u;const b=(f=h[m])==null?void 0:f.childNodes;if(b!=null&&b.length){let v=0;Array.from(b).reduce((w,S,T)=>{var $,A;return(($=b[T])==null?void 0:$.colSpan)>1&&(v=(A=b[T])==null?void 0:A.colSpan),S.nodeName!=="TD"&&v===0&&w.push(T),v>0&&v--,w},[]).forEach(w=>{for(var S;m>0;){const T=(S=h[m-1])==null?void 0:S.childNodes;if(T[w]&&T[w].nodeName==="TD"&&T[w].rowSpan>1){ec(T[w],"hover-cell"),c.push(T[w]);break}m--}})}else c.forEach(v=>Li(v,"hover-cell")),c.length=0;!e.store.states.isComplex.value||!kt||VY(()=>{const v=h[d],E=h[u];v&&!v.classList.contains("hover-fixed-row")&&Li(v,"hover-row"),E&&ec(E,"hover-row")})}),Hi(()=>{var u;(u=gr)==null||u()}),{ns:o,onColumnsChange:l,onScrollableChange:a,wrappedRowRender:r,tooltipContent:i,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Xe("tbody",{tabIndex:-1},[n.reduce((o,r)=>o.concat(e(r,o.length)),[])])}});function Kae(){const e=Ne(Ki),t=e==null?void 0:e.store,n=D(()=>t.states.fixedLeafColumnsLength.value),o=D(()=>t.states.rightFixedColumns.value.length),r=D(()=>t.states.columns.value.length),i=D(()=>t.states.fixedColumns.value.length),s=D(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:r,leftFixedCount:i,rightFixedCount:s,columns:t.states.columns}}function Gae(e){const{columns:t}=Kae(),n=Ae("table");return{getCellClasses:(i,s)=>{const l=i[s],a=[n.e("cell"),l.id,l.align,l.labelClassName,...D3(n.b(),s,l.fixed,e.store)];return l.className&&a.push(l.className),l.children||a.push(n.is("leaf")),a},getCellStyles:(i,s)=>{const l=B3(s,i.fixed,e.store);return Zu(l,"left"),Zu(l,"right"),l},columns:t}}var Yae=K({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:o}=Gae(e);return{ns:Ae("table"),getCellClasses:t,getCellStyles:n,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:r}=this,i=this.store.states.data.value;let s=[];return o?s=o({columns:e,data:i}):e.forEach((l,a)=>{if(a===0){s[a]=r;return}const c=i.map(p=>Number(p[l.property])),u=[];let d=!0;c.forEach(p=>{if(!Number.isNaN(+p)){d=!1;const h=`${p}`.split(".")[1];u.push(h?h.length:0)}});const f=Math.max.apply(null,u);d?s[a]="":s[a]=c.reduce((p,h)=>{const m=Number(h);return Number.isNaN(+m)?p:Number.parseFloat((p+h).toFixed(Math.min(f,20)))},0)}),Xe(Xe("tfoot",[Xe("tr",{},[...e.map((l,a)=>Xe("td",{key:a,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,a),style:t(l,a)},[Xe("div",{class:["cell",l.labelClassName]},[s[a]])]))])]))}});function Zae(e){return{setCurrentRow:u=>{e.commit("setCurrentRow",u)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(u,d)=>{e.toggleRowSelection(u,d,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:u=>{e.clearFilter(u)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(u,d)=>{e.toggleRowExpansionAdapter(u,d)},clearSort:()=>{e.clearSort()},sort:(u,d)=>{e.commit("sort",{prop:u,order:d})}}}function Jae(e,t,n,o){const r=H(!1),i=H(null),s=H(!1),l=ee=>{s.value=ee},a=H({width:null,height:null,headerHeight:null}),c=H(!1),u={display:"inline-block",verticalAlign:"middle"},d=H(),f=H(0),p=H(0),h=H(0),m=H(0),b=H(0);Zr(()=>{t.setHeight(e.height)}),Zr(()=>{t.setMaxHeight(e.maxHeight)}),ke(()=>[e.currentRowKey,n.states.rowKey],([ee,F])=>{!C(F)||!C(ee)||n.setCurrentRowKey(`${ee}`)},{immediate:!0}),ke(()=>e.data,ee=>{o.store.commit("setData",ee)},{immediate:!0,deep:!0}),Zr(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const v=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},E=(ee,F)=>{const{pixelX:be,pixelY:xe}=F;Math.abs(be)>=Math.abs(xe)&&(o.refs.bodyWrapper.scrollLeft+=F.pixelX/5)},w=D(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),S=D(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),T=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(N)};mt(async()=>{await tt(),n.updateColumns(),I(),requestAnimationFrame(T);const ee=o.vnode.el,F=o.refs.headerWrapper;e.flexible&&ee&&ee.parentElement&&(ee.parentElement.style.minWidth="0"),a.value={width:d.value=ee.offsetWidth,height:ee.offsetHeight,headerHeight:e.showHeader&&F?F.offsetHeight:null},n.states.columns.value.forEach(be=>{be.filteredValue&&be.filteredValue.length&&o.store.commit("filterChange",{column:be,values:be.filteredValue,silent:!0})}),o.$ready=!0});const $=(ee,F)=>{if(!ee)return;const be=Array.from(ee.classList).filter(xe=>!xe.startsWith("is-scrolling-"));be.push(t.scrollX.value?F:"is-scrolling-none"),ee.className=be.join(" ")},A=ee=>{const{tableWrapper:F}=o.refs;$(F,ee)},P=ee=>{const{tableWrapper:F}=o.refs;return!!(F&&F.classList.contains(ee))},N=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const Fe="is-scrolling-none";P(Fe)||A(Fe);return}const ee=o.refs.scrollBarRef.wrapRef;if(!ee)return;const{scrollLeft:F,offsetWidth:be,scrollWidth:xe}=ee,{headerWrapper:U,footerWrapper:Ee}=o.refs;U&&(U.scrollLeft=F),Ee&&(Ee.scrollLeft=F);const Ze=xe-be-1;F>=Ze?A("is-scrolling-right"):A(F===0?"is-scrolling-left":"is-scrolling-middle")},I=()=>{o.refs.scrollBarRef&&(o.refs.scrollBarRef.wrapRef&&Tn(o.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?Oo(o.vnode.el,B):Tn(window,"resize",B),Oo(o.refs.bodyWrapper,()=>{var ee,F;B(),(F=(ee=o.refs)==null?void 0:ee.scrollBarRef)==null||F.update()}))},B=()=>{var ee,F,be,xe;const U=o.vnode.el;if(!o.$ready||!U)return;let Ee=!1;const{width:Ze,height:Fe,headerHeight:J}=a.value,ce=d.value=U.offsetWidth;Ze!==ce&&(Ee=!0);const he=U.offsetHeight;(e.height||w.value)&&Fe!==he&&(Ee=!0);const se=e.tableLayout==="fixed"?o.refs.headerWrapper:(ee=o.refs.tableHeaderRef)==null?void 0:ee.$el;e.showHeader&&(se==null?void 0:se.offsetHeight)!==J&&(Ee=!0),f.value=((F=o.refs.tableWrapper)==null?void 0:F.scrollHeight)||0,h.value=(se==null?void 0:se.scrollHeight)||0,m.value=((be=o.refs.footerWrapper)==null?void 0:be.offsetHeight)||0,b.value=((xe=o.refs.appendWrapper)==null?void 0:xe.offsetHeight)||0,p.value=f.value-h.value-m.value-b.value,Ee&&(a.value={width:ce,height:he,headerHeight:e.showHeader&&(se==null?void 0:se.offsetHeight)||0},T())},V=cr(),G=D(()=>{const{bodyWidth:ee,scrollY:F,gutterWidth:be}=t;return ee.value?`${ee.value-(F.value?be:0)}px`:""}),ne=D(()=>e.maxHeight?"fixed":e.tableLayout),oe=D(()=>{if(e.data&&e.data.length)return null;let ee="100%";e.height&&p.value&&(ee=`${p.value}px`);const F=d.value;return{width:F?`${F}px`:"",height:ee}}),Z=D(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),q=D(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${h.value+m.value}px)`}:{maxHeight:`${e.maxHeight-h.value-m.value}px`}:{});return{isHidden:r,renderExpanded:i,setDragVisible:l,isGroup:c,handleMouseLeave:v,handleHeaderFooterMousewheel:E,tableSize:V,emptyBlockStyle:oe,handleFixedMousewheel:(ee,F)=>{const be=o.refs.bodyWrapper;if(Math.abs(F.spinY)>0){const xe=be.scrollTop;F.pixelY<0&&xe!==0&&ee.preventDefault(),F.pixelY>0&&be.scrollHeight-be.clientHeight>xe&&ee.preventDefault(),be.scrollTop+=Math.ceil(F.pixelY/5)}else be.scrollLeft+=Math.ceil(F.pixelX/5)},resizeProxyVisible:s,bodyWidth:G,resizeState:a,doLayout:T,tableBodyStyles:S,tableLayout:ne,scrollbarViewStyle:u,tableInnerStyle:Z,scrollbarStyle:q}}function Xae(e){const t=H(),n=()=>{const r=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},s=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{s.forEach(l=>l())}),t.value.observe(r,i)};mt(()=>{n()}),Hi(()=>{var o;(o=t.value)==null||o.disconnect()})}var Qae={data:{type:Array,default:()=>[]},size:Ms,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function AA(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(r=>r.width===void 0)&&(n=[]);const o=r=>{const i={key:`${e.tableLayout}_${r.id}`,style:{},name:void 0};return t?i.style={width:`${r.width}px`}:i.name=r.id,i};return Xe("colgroup",{},n.map(r=>Xe("col",o(r))))}AA.props=["columns","tableLayout"];const ece=()=>{const e=H(),t=(i,s)=>{const l=e.value;l&&l.scrollTo(i,s)},n=(i,s)=>{const l=e.value;l&&$t(s)&&["Top","Left"].includes(i)&&l[`setScroll${i}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let tce=1;const nce=K({name:"ElTable",directives:{Mousewheel:hoe},components:{TableHeader:Vae,TableBody:qae,TableFooter:Yae,ElScrollbar:$o,hColgroup:AA},props:Qae,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Dn(),n=Ae("table"),o=nt();wt(Ki,o);const r=Eae(o,e);o.store=r;const i=new Mae({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=i;const s=D(()=>(r.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:a,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:p,clearSort:h,sort:m}=Zae(r),{isHidden:b,renderExpanded:v,setDragVisible:E,isGroup:w,handleMouseLeave:S,handleHeaderFooterMousewheel:T,tableSize:$,emptyBlockStyle:A,handleFixedMousewheel:P,resizeProxyVisible:N,bodyWidth:I,resizeState:B,doLayout:V,tableBodyStyles:G,tableLayout:ne,scrollbarViewStyle:oe,tableInnerStyle:Z,scrollbarStyle:q}=Jae(e,i,r,o),{scrollBarRef:X,scrollTo:ee,setScrollLeft:F,setScrollTop:be}=ece(),xe=Xa(V,50),U=`${n.namespace.value}-table_${tce++}`;o.tableId=U,o.state={isGroup:w,resizeState:B,doLayout:V,debouncedUpdateLayout:xe};const Ee=D(()=>e.sumText||t("el.table.sumText")),Ze=D(()=>e.emptyText||t("el.table.emptyText"));return Xae(o),{ns:n,layout:i,store:r,handleHeaderFooterMousewheel:T,handleMouseLeave:S,tableId:U,tableSize:$,isHidden:b,isEmpty:s,renderExpanded:v,resizeProxyVisible:N,resizeState:B,isGroup:w,bodyWidth:I,tableBodyStyles:G,emptyBlockStyle:A,debouncedUpdateLayout:xe,handleFixedMousewheel:P,setCurrentRow:l,getSelectionRows:a,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:p,clearSort:h,doLayout:V,sort:m,t,setDragVisible:E,context:o,computedSumText:Ee,computedEmptyText:Ze,tableLayout:ne,scrollbarViewStyle:oe,tableInnerStyle:Z,scrollbarStyle:q,scrollBarRef:X,scrollTo:ee,setScrollLeft:F,setScrollTop:be}}}),oce=["data-prefix"],rce={ref:"hiddenColumns",class:"hidden-columns"};function ice(e,t,n,o,r,i){const s=z("hColgroup"),l=z("table-header"),a=z("table-body"),c=z("table-footer"),u=z("el-scrollbar"),d=Mt("mousewheel");return _(),k("div",{ref:"tableWrapper",class:R([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Be(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...f)=>e.handleMouseLeave&&e.handleMouseLeave(...f))},[g("div",{class:R(e.ns.e("inner-wrapper")),style:Be(e.tableInnerStyle)},[g("div",rce,[le(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ze((_(),k("div",{key:0,ref:"headerWrapper",class:R(e.ns.e("header-wrapper"))},[g("table",{ref:"tableHeader",class:R(e.ns.e("header")),style:Be(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[y(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),y(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):O("v-if",!0),g("div",{ref:"bodyWrapper",class:R(e.ns.e("body-wrapper"))},[y(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:x(()=>[g("table",{ref:"tableBody",class:R(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Be({width:e.bodyWidth,tableLayout:e.tableLayout})},[y(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(_(),L(l,{key:0,ref:"tableHeaderRef",class:R(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):O("v-if",!0),y(a,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(_(),L(c,{key:1,class:R(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):O("v-if",!0)],6),e.isEmpty?(_(),k("div",{key:0,ref:"emptyBlock",style:Be(e.emptyBlockStyle),class:R(e.ns.e("empty-block"))},[g("span",{class:R(e.ns.e("empty-text"))},[le(e.$slots,"empty",{},()=>[te(M(e.computedEmptyText),1)])],2)],6)):O("v-if",!0),e.$slots.append?(_(),k("div",{key:1,ref:"appendWrapper",class:R(e.ns.e("append-wrapper"))},[le(e.$slots,"append")],2)):O("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?ze((_(),k("div",{key:1,ref:"footerWrapper",class:R(e.ns.e("footer-wrapper"))},[g("table",{class:R(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Be(e.tableBodyStyles)},[y(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),y(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[sn,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):O("v-if",!0),e.border||e.isGroup?(_(),k("div",{key:2,class:R(e.ns.e("border-left-patch"))},null,2)):O("v-if",!0)],6),ze(g("div",{ref:"resizeProxy",class:R(e.ns.e("column-resize-proxy"))},null,2),[[sn,e.resizeProxyVisible]])],46,oce)}var sce=Re(nce,[["render",ice],["__file","table.vue"]]);const lce={selection:"table-column--selection",expand:"table__expand-column"},ace={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},cce=e=>lce[e]||"",uce={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Xe(Dr,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:o}){return Xe(Dr,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:r=>r.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return typeof o=="number"?n=t+o:typeof o=="function"&&(n=o(t)),Xe("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:o}=t,r=[o.e("expand-icon")];return n&&r.push(o.em("expand-icon","expanded")),Xe("div",{class:r,onClick:function(s){s.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Xe(ge,null,{default:()=>[Xe(ud)]})]})},sortable:!1,resizable:!1}};function dce({row:e,column:t,$index:n}){var o;const r=t.property,i=r&&Wm(e,r).value;return t&&t.formatter?t.formatter(e,t,i,n):((o=i==null?void 0:i.toString)==null?void 0:o.call(i))||""}function fce({row:e,treeNode:t,store:n},o=!1){const{ns:r}=n;if(!t)return o?[Xe("span",{class:r.e("placeholder")})]:null;const i=[],s=function(l){l.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(Xe("span",{class:r.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const l=[r.e("expand-icon"),t.expanded?r.em("expand-icon","expanded"):""];let a=ud;t.loading&&(a=A1),i.push(Xe("div",{class:l,onClick:s},{default:()=>[Xe(ge,{class:{[r.is("loading")]:t.loading}},{default:()=>[Xe(a)]})]}))}else i.push(Xe("span",{class:r.e("placeholder")}));return i}function M6(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function pce(e,t){const n=nt();return{registerComplexWatchers:()=>{const i=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},l=M6(i,s);Object.keys(l).forEach(a=>{const c=s[a];ut(t,c)&&ke(()=>t[c],u=>{let d=u;c==="width"&&a==="realWidth"&&(d=F3(u)),c==="minWidth"&&a==="realMinWidth"&&(d=xA(u)),n.columnConfig.value[c]=d,n.columnConfig.value[a]=d;const f=c==="fixed";e.value.store.scheduleLayout(f)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=M6(i,s);Object.keys(l).forEach(a=>{const c=s[a];ut(t,c)&&ke(()=>t[c],u=>{n.columnConfig.value[a]=u})})}}}function hce(e,t,n){const o=nt(),r=H(""),i=H(!1),s=H(),l=H(),a=Ae("table");Zr(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),Zr(()=>{l.value=e.headerAlign?`is-${e.headerAlign}`:s.value,l.value});const c=D(()=>{let S=o.vnode.vParent||o.parent;for(;S&&!S.tableId&&!S.columnId;)S=S.vnode.vParent||S.parent;return S}),u=D(()=>{const{store:S}=o.parent;if(!S)return!1;const{treeData:T}=S.states,$=T.value;return $&&Object.keys($).length>0}),d=H(F3(e.width)),f=H(xA(e.minWidth)),p=S=>(d.value&&(S.width=d.value),f.value&&(S.minWidth=f.value),!d.value&&f.value&&(S.width=void 0),S.minWidth||(S.minWidth=80),S.realWidth=Number(S.width===void 0?S.minWidth:S.width),S),h=S=>{const T=S.type,$=uce[T]||{};Object.keys($).forEach(P=>{const N=$[P];P!=="className"&&N!==void 0&&(S[P]=N)});const A=cce(T);if(A){const P=`${C(a.namespace)}-${A}`;S.className=S.className?`${S.className} ${P}`:P}return S},m=S=>{Array.isArray(S)?S.forEach($=>T($)):T(S);function T($){var A;((A=$==null?void 0:$.type)==null?void 0:A.name)==="ElTableColumn"&&($.vParent=o)}};return{columnId:r,realAlign:s,isSubColumn:i,realHeaderAlign:l,columnOrTableParent:c,setColumnWidth:p,setColumnForcedProps:h,setColumnRenders:S=>{e.renderHeader||S.type!=="selection"&&(S.renderHeader=$=>(o.columnConfig.value.label,le(t,"header",$,()=>[S.label])));let T=S.renderCell;return S.type==="expand"?(S.renderCell=$=>Xe("div",{class:"cell"},[T($)]),n.value.renderExpanded=$=>t.default?t.default($):t.default):(T=T||dce,S.renderCell=$=>{let A=null;if(t.default){const G=t.default($);A=G.some(ne=>ne.type!==zn)?G:T($)}else A=T($);const{columns:P}=n.value.store.states,N=P.value.findIndex(G=>G.type==="default"),I=u.value&&$.cellIndex===N,B=fce($,I),V={class:"cell",style:{}};return S.showOverflowTooltip&&(V.class=`${V.class} ${C(a.namespace)}-tooltip`,V.style={width:`${($.column.realWidth||Number($.column.width))-1}px`}),m(A),Xe("div",V,[B,A])}),S},getPropsData:(...S)=>S.reduce((T,$)=>(Array.isArray($)&&$.forEach(A=>{T[A]=e[A]}),T),{}),getColumnElIndex:(S,T)=>Array.prototype.indexOf.call(S,T),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",o.columnConfig.value)}}}var mce={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let _ce=1;var IA=K({name:"ElTableColumn",components:{ElCheckbox:Dr},props:mce,setup(e,{slots:t}){const n=nt(),o=H({}),r=D(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:i,registerComplexWatchers:s}=pce(r,e),{columnId:l,isSubColumn:a,realHeaderAlign:c,columnOrTableParent:u,setColumnWidth:d,setColumnForcedProps:f,setColumnRenders:p,getPropsData:h,getColumnElIndex:m,realAlign:b,updateColumnOrder:v}=hce(e,t,r),E=u.value;l.value=`${E.tableId||E.columnId}_column_${_ce++}`,ld(()=>{a.value=r.value!==E;const w=e.type||"default",S=e.sortable===""?!0:e.sortable,T=ks(e.showOverflowTooltip)?E.props.showOverflowTooltip:e.showOverflowTooltip,$={...ace[w],id:l.value,type:w,property:e.prop||e.property,align:b,headerAlign:c,showOverflowTooltip:T,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key};let B=h(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);B=_ae($,B),B=vae(p,d,f)(B),o.value=B,i(),s()}),mt(()=>{var w;const S=u.value,T=a.value?S.vnode.el.children:(w=S.refs.hiddenColumns)==null?void 0:w.children,$=()=>m(T||[],n.vnode.el);o.value.getColumnIndex=$,$()>-1&&r.value.store.commit("insertColumn",o.value,a.value?S.columnConfig.value:null,v)}),yn(()=>{r.value.store.commit("removeColumn",o.value,a.value?E.columnConfig.value:null,v)}),n.columnId=l.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),r=[];if(Array.isArray(o))for(const s of o)((n=s.type)==null?void 0:n.name)==="ElTableColumn"||s.shapeFlag&2?r.push(s):s.type===Q&&Array.isArray(s.children)&&s.children.forEach(l=>{(l==null?void 0:l.patchFlag)!==1024&&!je(l==null?void 0:l.children)&&r.push(l)});return Xe("div",r)}catch{return Xe("div",[])}}});const gce=Vt(sce,{TableColumn:IA}),vce=Hn(IA),H1=Symbol("tabsRootContextKey"),bce=Ke({tabs:{type:we(Array),default:()=>bo([])}}),OA="ElTabBar",yce=K({name:OA}),wce=K({...yce,props:bce,setup(e,{expose:t}){const n=e,o=nt(),r=Ne(H1);r||ui(OA,"<el-tabs><el-tab-bar /></el-tabs>");const i=Ae("tabs"),s=H(),l=H(),a=()=>{let u=0,d=0;const f=["top","bottom"].includes(r.props.tabPosition)?"width":"height",p=f==="width"?"x":"y",h=p==="x"?"left":"top";return n.tabs.every(m=>{var b,v;const E=(v=(b=o.parent)==null?void 0:b.refs)==null?void 0:v[`tab-${m.uid}`];if(!E)return!1;if(!m.active)return!0;u=E[`offset${pl(h)}`],d=E[`client${pl(f)}`];const w=window.getComputedStyle(E);return f==="width"&&(n.tabs.length>1&&(d-=Number.parseFloat(w.paddingLeft)+Number.parseFloat(w.paddingRight)),u+=Number.parseFloat(w.paddingLeft)),!1}),{[f]:`${d}px`,transform:`translate${pl(p)}(${u}px)`}},c=()=>l.value=a();return ke(()=>n.tabs,async()=>{await tt(),c()},{immediate:!0}),Oo(s,()=>c()),t({ref:s,update:c}),(u,d)=>(_(),k("div",{ref_key:"barRef",ref:s,class:R([C(i).e("active-bar"),C(i).is(C(r).props.tabPosition)]),style:Be(l.value)},null,6))}});var kce=Re(wce,[["__file","tab-bar.vue"]]);const xce=Ke({panes:{type:we(Array),default:()=>bo([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Cce={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},A6="ElTabNav",Sce=K({name:A6,props:xce,emits:Cce,setup(e,{expose:t,emit:n}){const o=nt(),r=Ne(H1);r||ui(A6,"<el-tabs><tab-nav /></el-tabs>");const i=Ae("tabs"),s=xH(),l=FH(),a=H(),c=H(),u=H(),d=H(),f=H(!1),p=H(0),h=H(!1),m=H(!0),b=D(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),v=D(()=>({transform:`translate${b.value==="width"?"X":"Y"}(-${p.value}px)`})),E=()=>{if(!a.value)return;const N=a.value[`offset${pl(b.value)}`],I=p.value;if(!I)return;const B=I>N?I-N:0;p.value=B},w=()=>{if(!a.value||!c.value)return;const N=c.value[`offset${pl(b.value)}`],I=a.value[`offset${pl(b.value)}`],B=p.value;if(N-B<=I)return;const V=N-B>I*2?B+I:N-I;p.value=V},S=async()=>{const N=c.value;if(!f.value||!u.value||!a.value||!N)return;await tt();const I=u.value.querySelector(".is-active");if(!I)return;const B=a.value,V=["top","bottom"].includes(r.props.tabPosition),G=I.getBoundingClientRect(),ne=B.getBoundingClientRect(),oe=V?N.offsetWidth-ne.width:N.offsetHeight-ne.height,Z=p.value;let q=Z;V?(G.left<ne.left&&(q=Z-(ne.left-G.left)),G.right>ne.right&&(q=Z+G.right-ne.right)):(G.top<ne.top&&(q=Z-(ne.top-G.top)),G.bottom>ne.bottom&&(q=Z+(G.bottom-ne.bottom))),q=Math.max(q,0),p.value=Math.min(q,oe)},T=()=>{var N;if(!c.value||!a.value)return;e.stretch&&((N=d.value)==null||N.update());const I=c.value[`offset${pl(b.value)}`],B=a.value[`offset${pl(b.value)}`],V=p.value;B<I?(f.value=f.value||{},f.value.prev=V,f.value.next=V+B<I,I-V<B&&(p.value=I-B)):(f.value=!1,V>0&&(p.value=0))},$=N=>{const I=N.code,{up:B,down:V,left:G,right:ne}=ht;if(![B,V,G,ne].includes(I))return;const oe=Array.from(N.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Z=oe.indexOf(N.target);let q;I===G||I===B?Z===0?q=oe.length-1:q=Z-1:Z<oe.length-1?q=Z+1:q=0,oe[q].focus({preventScroll:!0}),oe[q].click(),A()},A=()=>{m.value&&(h.value=!0)},P=()=>h.value=!1;return ke(s,N=>{N==="hidden"?m.value=!1:N==="visible"&&setTimeout(()=>m.value=!0,50)}),ke(l,N=>{N?setTimeout(()=>m.value=!0,50):m.value=!1}),Oo(u,T),mt(()=>setTimeout(()=>S(),0)),Bl(()=>T()),t({scrollToActiveTab:S,removeFocus:P}),ke(()=>e.panes,()=>o.update(),{flush:"post",deep:!0}),()=>{const N=f.value?[y("span",{class:[i.e("nav-prev"),i.is("disabled",!f.value.prev)],onClick:E},[y(ge,null,{default:()=>[y(T1,null,null)]})]),y("span",{class:[i.e("nav-next"),i.is("disabled",!f.value.next)],onClick:w},[y(ge,null,{default:()=>[y(ud,null,null)]})])]:null,I=e.panes.map((B,V)=>{var G,ne,oe,Z;const q=B.uid,X=B.props.disabled,ee=(ne=(G=B.props.name)!=null?G:B.index)!=null?ne:`${V}`,F=!X&&(B.isClosable||e.editable);B.index=`${V}`;const be=F?y(ge,{class:"is-icon-close",onClick:Ee=>n("tabRemove",B,Ee)},{default:()=>[y(Ri,null,null)]}):null,xe=((Z=(oe=B.slots).label)==null?void 0:Z.call(oe))||B.props.label,U=!X&&B.active?0:-1;return y("div",{ref:`tab-${q}`,class:[i.e("item"),i.is(r.props.tabPosition),i.is("active",B.active),i.is("disabled",X),i.is("closable",F),i.is("focus",h.value)],id:`tab-${ee}`,key:`tab-${q}`,"aria-controls":`pane-${ee}`,role:"tab","aria-selected":B.active,tabindex:U,onFocus:()=>A(),onBlur:()=>P(),onClick:Ee=>{P(),n("tabClick",B,ee,Ee)},onKeydown:Ee=>{F&&(Ee.code===ht.delete||Ee.code===ht.backspace)&&n("tabRemove",B,Ee)}},[xe,be])});return y("div",{ref:u,class:[i.e("nav-wrap"),i.is("scrollable",!!f.value),i.is(r.props.tabPosition)]},[N,y("div",{class:i.e("nav-scroll"),ref:a},[y("div",{class:[i.e("nav"),i.is(r.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:c,style:v.value,role:"tablist",onKeydown:$},[e.type?null:y(kce,{ref:d,tabs:[...e.panes]},null),I])])])}}}),$ce=Ke({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:we(Function),default:()=>!0},stretch:Boolean}),lv=e=>je(e)||$t(e),Ece={[Kt]:e=>lv(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>lv(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>lv(e),tabAdd:()=>!0},Tce=K({name:"ElTabs",props:$ce,emits:Ece,setup(e,{emit:t,slots:n,expose:o}){var r;const i=Ae("tabs"),{children:s,addChild:l,removeChild:a}=GQ(nt(),"ElTabPane"),c=H(),u=H((r=e.modelValue)!=null?r:"0"),d=async(m,b=!1)=>{var v,E,w;if(!(u.value===m||ks(m)))try{await((v=e.beforeLeave)==null?void 0:v.call(e,m,u.value))!==!1&&(u.value=m,b&&(t(Kt,m),t("tabChange",m)),(w=(E=c.value)==null?void 0:E.removeFocus)==null||w.call(E))}catch{}},f=(m,b,v)=>{m.props.disabled||(d(b,!0),t("tabClick",m,v))},p=(m,b)=>{m.props.disabled||ks(m.props.name)||(b.stopPropagation(),t("edit",m.props.name,"remove"),t("tabRemove",m.props.name))},h=()=>{t("edit",void 0,"add"),t("tabAdd")};return ke(()=>e.modelValue,m=>d(m)),ke(u,async()=>{var m;await tt(),(m=c.value)==null||m.scrollToActiveTab()}),wt(H1,{props:e,currentName:u,registerPane:l,unregisterPane:a}),o({currentName:u}),()=>{const m=n["add-icon"],b=e.editable||e.addable?y("span",{class:i.e("new-tab"),tabindex:"0",onClick:h,onKeydown:w=>{w.code===ht.enter&&h()}},[m?le(n,"add-icon"):y(ge,{class:i.is("icon-plus")},{default:()=>[y(vT,null,null)]})]):null,v=y("div",{class:[i.e("header"),i.is(e.tabPosition)]},[b,y(Sce,{ref:c,currentName:u.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:f,onTabRemove:p},null)]),E=y("div",{class:i.e("content")},[le(n,"default")]);return y("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[v,E]:[E,v]])}}}),Mce=Ke({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Ace=["id","aria-hidden","aria-labelledby"],PA="ElTabPane",Ice=K({name:PA}),Oce=K({...Ice,props:Mce,setup(e){const t=e,n=nt(),o=Ui(),r=Ne(H1);r||ui(PA,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Ae("tab-pane"),s=H(),l=D(()=>t.closable||r.props.closable),a=L5(()=>{var p;return r.currentName.value===((p=t.name)!=null?p:s.value)}),c=H(a.value),u=D(()=>{var p;return(p=t.name)!=null?p:s.value}),d=L5(()=>!t.lazy||c.value||a.value);ke(a,p=>{p&&(c.value=!0)});const f=jn({uid:n.uid,slots:o,props:t,paneName:u,active:a,index:s,isClosable:l});return mt(()=>{r.registerPane(f)}),Hi(()=>{r.unregisterPane(f.uid)}),(p,h)=>C(d)?ze((_(),k("div",{key:0,id:`pane-${C(u)}`,class:R(C(i).b()),role:"tabpanel","aria-hidden":!C(a),"aria-labelledby":`tab-${C(u)}`},[le(p.$slots,"default")],10,Ace)),[[sn,C(a)]]):O("v-if",!0)}});var NA=Re(Oce,[["__file","tab-pane.vue"]]);const z3=Vt(Tce,{TabPane:NA}),V3=Hn(NA),LA=Symbol("uploadContextKey"),Pce="ElUpload";class Nce extends Error{constructor(t,n,o,r){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=r}}function I6(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new Nce(o,n.status,t.method,e)}function Lce(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Rce=e=>{typeof XMLHttpRequest>"u"&&ui(Pce,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const s=i;s.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(s)});const o=new FormData;if(e.data)for(const[i,s]of Object.entries(e.data))$e(s)&&s.length?o.append(i,...s):o.append(i,s);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(I6(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(I6(n,e,t));e.onSuccess(Lce(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};if(r instanceof Headers)r.forEach((i,s)=>t.setRequestHeader(s,i));else for(const[i,s]of Object.entries(r))Ai(s)||t.setRequestHeader(i,String(s));return t.send(o),t},RA=["text","picture","picture-card"];let Fce=1;const yy=()=>Date.now()+Fce++,FA=Ke({action:{type:String,default:"#"},headers:{type:we(Object)},method:{type:String,default:"post"},data:{type:we([Object,Function,Promise]),default:()=>bo({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:we(Array),default:()=>bo([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:RA,default:"text"},httpRequest:{type:we(Function),default:Rce},disabled:Boolean,limit:Number}),Dce=Ke({...FA,beforeUpload:{type:we(Function),default:dt},beforeRemove:{type:we(Function)},onRemove:{type:we(Function),default:dt},onChange:{type:we(Function),default:dt},onPreview:{type:we(Function),default:dt},onSuccess:{type:we(Function),default:dt},onProgress:{type:we(Function),default:dt},onError:{type:we(Function),default:dt},onExceed:{type:we(Function),default:dt},crossorigin:{type:we(String)}}),Bce=Ke({files:{type:we(Array),default:()=>bo([])},disabled:{type:Boolean,default:!1},handlePreview:{type:we(Function),default:dt},listType:{type:String,values:RA,default:"text"},crossorigin:{type:we(String)}}),zce={remove:e=>!!e},Vce=["onKeydown"],jce=["src","crossorigin"],Hce=["onClick"],Uce=["title"],Wce=["onClick"],qce=["onClick"],Kce=K({name:"ElUploadList"}),Gce=K({...Kce,props:Bce,emits:zce,setup(e,{emit:t}){const n=e,{t:o}=Dn(),r=Ae("upload"),i=Ae("icon"),s=Ae("list"),l=fi(),a=H(!1),c=D(()=>[r.b("list"),r.bm("list",n.listType),r.is("disabled",n.disabled)]),u=d=>{t("remove",d)};return(d,f)=>(_(),L(_1,{tag:"ul",class:R(C(c)),name:C(s).b()},{default:x(()=>[(_(!0),k(Q,null,Te(d.files,p=>(_(),k("li",{key:p.uid||p.name,class:R([C(r).be("list","item"),C(r).is(p.status),{focusing:a.value}]),tabindex:"0",onKeydown:Ut(h=>!C(l)&&u(p),["delete"]),onFocus:f[0]||(f[0]=h=>a.value=!0),onBlur:f[1]||(f[1]=h=>a.value=!1),onClick:f[2]||(f[2]=h=>a.value=!1)},[le(d.$slots,"default",{file:p},()=>[d.listType==="picture"||p.status!=="uploading"&&d.listType==="picture-card"?(_(),k("img",{key:0,class:R(C(r).be("list","item-thumbnail")),src:p.url,crossorigin:d.crossorigin,alt:""},null,10,jce)):O("v-if",!0),p.status==="uploading"||d.listType!=="picture-card"?(_(),k("div",{key:1,class:R(C(r).be("list","item-info"))},[g("a",{class:R(C(r).be("list","item-name")),onClick:qe(h=>d.handlePreview(p),["prevent"])},[y(C(ge),{class:R(C(i).m("document"))},{default:x(()=>[y(C(RZ))]),_:1},8,["class"]),g("span",{class:R(C(r).be("list","item-file-name")),title:p.name},M(p.name),11,Uce)],10,Hce),p.status==="uploading"?(_(),L(C(bA),{key:0,type:d.listType==="picture-card"?"circle":"line","stroke-width":d.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:Be(d.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):O("v-if",!0)],2)):O("v-if",!0),g("label",{class:R(C(r).be("list","item-status-label"))},[d.listType==="text"?(_(),L(C(ge),{key:0,class:R([C(i).m("upload-success"),C(i).m("circle-check")])},{default:x(()=>[y(C(n3))]),_:1},8,["class"])):["picture-card","picture"].includes(d.listType)?(_(),L(C(ge),{key:1,class:R([C(i).m("upload-success"),C(i).m("check")])},{default:x(()=>[y(C(t3))]),_:1},8,["class"])):O("v-if",!0)],2),C(l)?O("v-if",!0):(_(),L(C(ge),{key:2,class:R(C(i).m("close")),onClick:h=>u(p)},{default:x(()=>[y(C(Ri))]),_:2},1032,["class","onClick"])),O(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),O(" This is a bug which needs to be fixed "),O(" TODO: Fix the incorrect navigation interaction "),C(l)?O("v-if",!0):(_(),k("i",{key:3,class:R(C(i).m("close-tip"))},M(C(o)("el.upload.deleteTip")),3)),d.listType==="picture-card"?(_(),k("span",{key:4,class:R(C(r).be("list","item-actions"))},[g("span",{class:R(C(r).be("list","item-preview")),onClick:h=>d.handlePreview(p)},[y(C(ge),{class:R(C(i).m("zoom-in"))},{default:x(()=>[y(C(kT))]),_:1},8,["class"])],10,Wce),C(l)?O("v-if",!0):(_(),k("span",{key:0,class:R(C(r).be("list","item-delete")),onClick:h=>u(p)},[y(C(ge),{class:R(C(i).m("delete"))},{default:x(()=>[y(C(mT))]),_:1},8,["class"])],10,qce))],2)):O("v-if",!0)])],42,Vce))),128)),le(d.$slots,"append")]),_:3},8,["class","name"]))}});var O6=Re(Gce,[["__file","upload-list.vue"]]);const Yce=Ke({disabled:{type:Boolean,default:!1}}),Zce={file:e=>$e(e)},Jce=["onDrop","onDragover"],DA="ElUploadDrag",Xce=K({name:DA}),Qce=K({...Xce,props:Yce,emits:Zce,setup(e,{emit:t}){Ne(LA)||ui(DA,"usage: <el-upload><el-upload-dragger /></el-upload>");const o=Ae("upload"),r=H(!1),i=fi(),s=a=>{if(i.value)return;r.value=!1,a.stopPropagation();const c=Array.from(a.dataTransfer.files);t("file",c)},l=()=>{i.value||(r.value=!0)};return(a,c)=>(_(),k("div",{class:R([C(o).b("dragger"),C(o).is("dragover",r.value)]),onDrop:qe(s,["prevent"]),onDragover:qe(l,["prevent"]),onDragleave:c[0]||(c[0]=qe(u=>r.value=!1,["prevent"]))},[le(a.$slots,"default")],42,Jce))}});var eue=Re(Qce,[["__file","upload-dragger.vue"]]);const tue=Ke({...FA,beforeUpload:{type:we(Function),default:dt},onRemove:{type:we(Function),default:dt},onStart:{type:we(Function),default:dt},onSuccess:{type:we(Function),default:dt},onProgress:{type:we(Function),default:dt},onError:{type:we(Function),default:dt},onExceed:{type:we(Function),default:dt}}),nue=["onKeydown"],oue=["name","multiple","accept"],rue=K({name:"ElUploadContent",inheritAttrs:!1}),iue=K({...rue,props:tue,setup(e,{expose:t}){const n=e,o=Ae("upload"),r=fi(),i=xn({}),s=xn(),l=m=>{if(m.length===0)return;const{autoUpload:b,limit:v,fileList:E,multiple:w,onStart:S,onExceed:T}=n;if(v&&E.length+m.length>v){T(m,E);return}w||(m=m.slice(0,1));for(const $ of m){const A=$;A.uid=yy(),S(A),b&&a(A)}},a=async m=>{if(s.value.value="",!n.beforeUpload)return u(m);let b,v={};try{const w=n.data,S=n.beforeUpload(m);v=Q_(n.data)?vC(n.data):n.data,b=await S,Q_(n.data)&&Qa(w,v)&&(v=vC(n.data))}catch{b=!1}if(b===!1){n.onRemove(m);return}let E=m;b instanceof Blob&&(b instanceof File?E=b:E=new File([b],m.name,{type:m.type})),u(Object.assign(E,{uid:m.uid}),v)},c=async(m,b)=>Ue(m)?m(b):m,u=async(m,b)=>{const{headers:v,data:E,method:w,withCredentials:S,name:T,action:$,onProgress:A,onSuccess:P,onError:N,httpRequest:I}=n;try{b=await c(b??E,m)}catch{n.onRemove(m);return}const{uid:B}=m,V={headers:v||{},withCredentials:S,file:m,data:b,method:w,filename:T,action:$,onProgress:ne=>{A(ne,m)},onSuccess:ne=>{P(ne,m),delete i.value[B]},onError:ne=>{N(ne,m),delete i.value[B]}},G=I(V);i.value[B]=G,G instanceof Promise&&G.then(V.onSuccess,V.onError)},d=m=>{const b=m.target.files;b&&l(Array.from(b))},f=()=>{r.value||(s.value.value="",s.value.click())},p=()=>{f()};return t({abort:m=>{HY(i.value).filter(m?([v])=>String(m.uid)===v:()=>!0).forEach(([v,E])=>{E instanceof XMLHttpRequest&&E.abort(),delete i.value[v]})},upload:a}),(m,b)=>(_(),k("div",{class:R([C(o).b(),C(o).m(m.listType),C(o).is("drag",m.drag)]),tabindex:"0",onClick:f,onKeydown:Ut(qe(p,["self"]),["enter","space"])},[m.drag?(_(),L(eue,{key:0,disabled:C(r),onFile:l},{default:x(()=>[le(m.$slots,"default")]),_:3},8,["disabled"])):le(m.$slots,"default",{key:1}),g("input",{ref_key:"inputRef",ref:s,class:R(C(o).e("input")),name:m.name,multiple:m.multiple,accept:m.accept,type:"file",onChange:d,onClick:b[0]||(b[0]=qe(()=>{},["stop"]))},null,42,oue)],42,nue))}});var P6=Re(iue,[["__file","upload-content.vue"]]);const N6="ElUpload",L6=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},sue=(e,t)=>{const n=RH(e,"fileList",void 0,{passive:!0}),o=f=>n.value.find(p=>p.uid===f.uid);function r(f){var p;(p=t.value)==null||p.abort(f)}function i(f=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!f.includes(p.status))}const s=(f,p)=>{const h=o(p);h&&(console.error(f),h.status="fail",n.value.splice(n.value.indexOf(h),1),e.onError(f,h,n.value),e.onChange(h,n.value))},l=(f,p)=>{const h=o(p);h&&(e.onProgress(f,h,n.value),h.status="uploading",h.percentage=Math.round(f.percent))},a=(f,p)=>{const h=o(p);h&&(h.status="success",h.response=f,e.onSuccess(f,h,n.value),e.onChange(h,n.value))},c=f=>{Ai(f.uid)&&(f.uid=yy());const p={name:f.name,percentage:0,status:"ready",size:f.size,raw:f,uid:f.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(f)}catch(h){h.message,e.onError(h,p,n.value)}n.value=[...n.value,p],e.onChange(p,n.value)},u=async f=>{const p=f instanceof File?o(f):f;p||ui(N6,"file to be removed not found");const h=m=>{r(m);const b=n.value;b.splice(b.indexOf(m),1),e.onRemove(m,b),L6(m)};e.beforeRemove?await e.beforeRemove(p,n.value)!==!1&&h(p):h(p)};function d(){n.value.filter(({status:f})=>f==="ready").forEach(({raw:f})=>{var p;return f&&((p=t.value)==null?void 0:p.upload(f))})}return ke(()=>e.listType,f=>{f!=="picture-card"&&f!=="picture"||(n.value=n.value.map(p=>{const{raw:h,url:m}=p;if(!m&&h)try{p.url=URL.createObjectURL(h)}catch(b){e.onError(b,p,n.value)}return p}))}),ke(n,f=>{for(const p of f)p.uid||(p.uid=yy()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:r,clearFiles:i,handleError:s,handleProgress:l,handleStart:c,handleSuccess:a,handleRemove:u,submit:d,revokeFileObjectURL:L6}},lue=K({name:"ElUpload"}),aue=K({...lue,props:Dce,setup(e,{expose:t}){const n=e,o=fi(),r=xn(),{abort:i,submit:s,clearFiles:l,uploadFiles:a,handleStart:c,handleError:u,handleRemove:d,handleSuccess:f,handleProgress:p,revokeFileObjectURL:h}=sue(n,r),m=D(()=>n.listType==="picture-card"),b=D(()=>({...n,fileList:a.value,onStart:c,onProgress:p,onSuccess:f,onError:u,onRemove:d}));return yn(()=>{a.value.forEach(h)}),wt(LA,{accept:Nn(n,"accept")}),t({abort:i,submit:s,clearFiles:l,handleStart:c,handleRemove:d}),(v,E)=>(_(),k("div",null,[C(m)&&v.showFileList?(_(),L(O6,{key:0,disabled:C(o),"list-type":v.listType,files:C(a),crossorigin:v.crossorigin,"handle-preview":v.onPreview,onRemove:C(d)},Vo({append:x(()=>[y(P6,hn({ref_key:"uploadRef",ref:r},C(b)),{default:x(()=>[v.$slots.trigger?le(v.$slots,"trigger",{key:0}):O("v-if",!0),!v.$slots.trigger&&v.$slots.default?le(v.$slots,"default",{key:1}):O("v-if",!0)]),_:3},16)]),_:2},[v.$slots.file?{name:"default",fn:x(({file:w})=>[le(v.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):O("v-if",!0),!C(m)||C(m)&&!v.showFileList?(_(),L(P6,hn({key:1,ref_key:"uploadRef",ref:r},C(b)),{default:x(()=>[v.$slots.trigger?le(v.$slots,"trigger",{key:0}):O("v-if",!0),!v.$slots.trigger&&v.$slots.default?le(v.$slots,"default",{key:1}):O("v-if",!0)]),_:3},16)):O("v-if",!0),v.$slots.trigger?le(v.$slots,"default",{key:2}):O("v-if",!0),le(v.$slots,"tip"),!C(m)&&v.showFileList?(_(),L(O6,{key:3,disabled:C(o),"list-type":v.listType,files:C(a),crossorigin:v.crossorigin,"handle-preview":v.onPreview,onRemove:C(d)},Vo({_:2},[v.$slots.file?{name:"default",fn:x(({file:w})=>[le(v.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):O("v-if",!0)]))}});var cue=Re(aue,[["__file","upload.vue"]]);const BA=Vt(cue);function uue(e){let t;const n=H(!1),o=jn({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(f){o.text=f}function i(){const f=o.parent,p=d.ns;if(!f.vLoadingAddClassList){let h=f.getAttribute("loading-number");h=Number.parseInt(h)-1,h?f.setAttribute("loading-number",h.toString()):(Li(f,p.bm("parent","relative")),f.removeAttribute("loading-number")),Li(f,p.bm("parent","hidden"))}s(),u.unmount()}function s(){var f,p;(p=(f=d.$el)==null?void 0:f.parentNode)==null||p.removeChild(d.$el)}function l(){var f;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(a,400),o.visible=!1,(f=e.closed)==null||f.call(e))}function a(){if(!n.value)return;const f=o.parent;n.value=!1,f.vLoadingAddClassList=void 0,i()}const u=_w(K({name:"ElLoading",setup(f,{expose:p}){const{ns:h,zIndex:m}=w3("loading");return p({ns:h,zIndex:m}),()=>{const b=o.spinner||o.svg,v=Xe("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[Xe("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),E=o.text?Xe("p",{class:h.b("text")},[o.text]):void 0;return Xe(dr,{name:h.b("fade"),onAfterLeave:a},{default:x(()=>[ze(y("div",{style:{backgroundColor:o.background||""},class:[h.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[Xe("div",{class:h.b("spinner")},[v,E])]),[[sn,o.visible]])])})}}})),d=u.mount(document.createElement("div"));return{...ji(o),setText:r,removeElLoadingChild:s,close:l,handleAfterLeave:a,vm:d,get $el(){return d.$el}}}let gm;const wy=function(e={}){if(!kt)return;const t=due(e);if(t.fullscreen&&gm)return gm;const n=uue({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(gm=void 0)}});fue(t,t.parent,n),R6(t,t.parent,n),t.parent.vLoadingAddClassList=()=>R6(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),tt(()=>n.visible.value=t.visible),t.fullscreen&&(gm=n),n},due=e=>{var t,n,o,r;let i;return je(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(r=e.visible)!=null?r:!0,target:i}},fue=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,r={};if(e.fullscreen)n.originalPosition.value=_a(document.body,"position"),n.originalOverflow.value=_a(document.body,"overflow"),r.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=_a(document.body,"position"),await tt();for(const i of["top","left"]){const s=i==="top"?"scrollTop":"scrollLeft";r[i]=`${e.target.getBoundingClientRect()[i]+document.body[s]+document.documentElement[s]-Number.parseInt(_a(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])r[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=_a(t,"position");for(const[i,s]of Object.entries(r))n.$el.style[i]=s},R6=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Li(t,o.bm("parent","relative")):ec(t,o.bm("parent","relative")),e.fullscreen&&e.lock?ec(t,o.bm("parent","hidden")):Li(t,o.bm("parent","hidden"))},n_=Symbol("ElLoading"),F6=(e,t)=>{var n,o,r,i;const s=t.instance,l=f=>st(t.value)?t.value[f]:void 0,a=f=>{const p=je(f)&&(s==null?void 0:s[f])||f;return p&&H(p)},c=f=>a(l(f)||e.getAttribute(`element-loading-${Po(f)}`)),u=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(o=l("target"))!=null?o:u?void 0:e,body:(r=l("body"))!=null?r:t.modifiers.body,lock:(i=l("lock"))!=null?i:t.modifiers.lock};e[n_]={options:d,instance:wy(d)}},pue=(e,t)=>{for(const n of Object.keys(t))Zt(t[n])&&(t[n].value=e[n])},D6={mounted(e,t){t.value&&F6(e,t)},updated(e,t){const n=e[n_];t.oldValue!==t.value&&(t.value&&!t.oldValue?F6(e,t):t.value&&t.oldValue?st(t.value)&&pue(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[n_])==null||t.instance.close(),e[n_]=null}},hue={install(e){e.directive("loading",D6),e.config.globalProperties.$loading=wy},directive:D6,service:wy},mue=K({name:"ElMessageBox",directives:{TrapFocus:loe},components:{ElButton:Ye,ElFocusTrap:B1,ElInput:An,ElOverlay:I3,ElIcon:ge,...WJ},inheritAttrs:!1,props:{buttonSize:{type:String,validator:$T},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:r,size:i}=w3("message-box",D(()=>e.buttonSize)),{t:s}=n,{nextZIndex:l}=o,a=H(!1),c=jn({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),u=D(()=>{const Z=c.type;return{[r.bm("icon",Z)]:Z&&Sg[Z]}}),d=Rr(),f=Rr(),p=D(()=>c.icon||Sg[c.type]||""),h=D(()=>!!c.message),m=H(),b=H(),v=H(),E=H(),w=H(),S=D(()=>c.confirmButtonClass);ke(()=>c.inputValue,async Z=>{await tt(),e.boxType==="prompt"&&Z!==null&&V()},{immediate:!0}),ke(()=>a.value,Z=>{var q,X;Z&&(e.boxType!=="prompt"&&(c.autofocus?v.value=(X=(q=w.value)==null?void 0:q.$el)!=null?X:m.value:v.value=m.value),c.zIndex=l()),e.boxType==="prompt"&&(Z?tt().then(()=>{var ee;E.value&&E.value.$el&&(c.autofocus?v.value=(ee=G())!=null?ee:m.value:v.value=m.value)}):(c.editorErrorMessage="",c.validateError=!1))});const T=D(()=>e.draggable),$=D(()=>e.overflow);MT(m,b,T,$),mt(async()=>{await tt(),e.closeOnHashChange&&window.addEventListener("hashchange",A)}),yn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",A)});function A(){a.value&&(a.value=!1,tt(()=>{c.action&&t("action",c.action)}))}const P=()=>{e.closeOnClickModal&&B(c.distinguishCancelAndClose?"close":"cancel")},N=m3(P),I=Z=>{if(c.inputType!=="textarea")return Z.preventDefault(),B("confirm")},B=Z=>{var q;e.boxType==="prompt"&&Z==="confirm"&&!V()||(c.action=Z,c.beforeClose?(q=c.beforeClose)==null||q.call(c,Z,c,A):A())},V=()=>{if(e.boxType==="prompt"){const Z=c.inputPattern;if(Z&&!Z.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;const q=c.inputValidator;if(typeof q=="function"){const X=q(c.inputValue);if(X===!1)return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;if(typeof X=="string")return c.editorErrorMessage=X,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},G=()=>{const Z=E.value.$refs;return Z.input||Z.textarea},ne=()=>{B("close")},oe=()=>{e.closeOnPressEscape&&ne()};return e.lockScroll&&OT(a),{...ji(c),ns:r,overlayEvent:N,visible:a,hasMessage:h,typeClass:u,contentId:d,inputId:f,btnSize:i,iconComponent:p,confirmButtonClasses:S,rootRef:m,focusStartRef:v,headerRef:b,inputRef:E,confirmRef:w,doClose:A,handleClose:ne,onCloseRequested:oe,handleWrapperClick:P,handleInputEnter:I,handleAction:B,t:s}}}),_ue=["aria-label","aria-describedby"],gue=["aria-label"],vue=["id"];function bue(e,t,n,o,r,i){const s=z("el-icon"),l=z("close"),a=z("el-input"),c=z("el-button"),u=z("el-focus-trap"),d=z("el-overlay");return _(),L(dr,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:x(()=>[ze(y(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:x(()=>[g("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:R(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[y(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:x(()=>[g("div",{ref:"rootRef",class:R([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Be(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=qe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(_(),k("div",{key:0,ref:"headerRef",class:R([e.ns.e("header"),{"show-close":e.showClose}])},[g("div",{class:R(e.ns.e("title"))},[e.iconComponent&&e.center?(_(),L(s,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:x(()=>[(_(),L(Et(e.iconComponent)))]),_:1},8,["class"])):O("v-if",!0),g("span",null,M(e.title),1)],2),e.showClose?(_(),k("button",{key:0,type:"button",class:R(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Ut(qe(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[y(s,{class:R(e.ns.e("close"))},{default:x(()=>[y(l)]),_:1},8,["class"])],42,gue)):O("v-if",!0)],2)):O("v-if",!0),g("div",{id:e.contentId,class:R(e.ns.e("content"))},[g("div",{class:R(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(_(),L(s,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:x(()=>[(_(),L(Et(e.iconComponent)))]),_:1},8,["class"])):O("v-if",!0),e.hasMessage?(_(),k("div",{key:1,class:R(e.ns.e("message"))},[le(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),L(Et(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(_(),L(Et(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:x(()=>[te(M(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):O("v-if",!0)],2),ze(g("div",{class:R(e.ns.e("input"))},[y(a,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:R({invalid:e.validateError}),onKeydown:Ut(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),g("div",{class:R(e.ns.e("errormsg")),style:Be({visibility:e.editorErrorMessage?"visible":"hidden"})},M(e.editorErrorMessage),7)],2),[[sn,e.showInput]])],10,vue),g("div",{class:R(e.ns.e("btns"))},[e.showCancelButton?(_(),L(c,{key:0,loading:e.cancelButtonLoading,class:R([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Ut(qe(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:x(()=>[te(M(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):O("v-if",!0),ze(y(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:R([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Ut(qe(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:x(()=>[te(M(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[sn,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_ue)]),_:3},8,["z-index","overlay-class","mask"]),[[sn,e.visible]])]),_:3})}var yue=Re(mue,[["render",bue],["__file","index.vue"]]);const Rp=new Map,wue=e=>{let t=document.body;return e.appendTo&&(je(e.appendTo)&&(t=document.querySelector(e.appendTo)),si(e.appendTo)&&(t=e.appendTo),si(t)||(t=document.body)),t},kue=(e,t,n=null)=>{const o=y(yue,e,Ue(e.message)||uo(e.message)?{default:Ue(e.message)?e.message:()=>e.message}:null);return o.appContext=n,ws(o,t),wue(e).appendChild(t.firstElementChild),o.component},xue=()=>document.createElement("div"),Cue=(e,t)=>{const n=xue();e.onVanish=()=>{ws(null,n),Rp.delete(r)},e.onAction=i=>{const s=Rp.get(r);let l;e.showInput?l={value:r.inputValue,action:i}:l=i,e.callback?e.callback(l,o.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(l)};const o=kue(e,n,t),r=o.proxy;for(const i in e)ut(e,i)&&!ut(r.$props,i)&&(r[i]=e[i]);return r.visible=!0,r};function md(e,t=null){if(!kt)return Promise.reject();let n;return je(e)||uo(e)?e={message:e}:n=e.callback,new Promise((o,r)=>{const i=Cue(e,t??md._context);Rp.set(i,{options:e,callback:n,resolve:o,reject:r})})}const Sue=["alert","confirm","prompt"],$ue={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Sue.forEach(e=>{md[e]=Eue(e)});function Eue(e){return(t,n,o,r)=>{let i="";return st(n)?(o=n,i=""):ks(n)?i="":i=n,md(Object.assign({title:i,message:t,type:"",...$ue[e]},o,{boxType:e}),r)}}md.close=()=>{Rp.forEach((e,t)=>{t.doClose()}),Rp.clear()};md._context=null;const Ks=md;Ks.install=e=>{Ks._context=e._context,e.config.globalProperties.$msgbox=Ks,e.config.globalProperties.$messageBox=Ks,e.config.globalProperties.$alert=Ks.alert,e.config.globalProperties.$confirm=Ks.confirm,e.config.globalProperties.$prompt=Ks.prompt};const av=Ks,zA=["success","info","warning","error"],Tue=Ke({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Ln},id:{type:String,default:""},message:{type:we([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:we(Function),default:()=>{}},onClose:{type:we(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...zA,""],default:""},zIndex:Number}),Mue={destroy:()=>!0},Aue=["id"],Iue=["textContent"],Oue={key:0},Pue=["innerHTML"],Nue=K({name:"ElNotification"}),Lue=K({...Nue,props:Tue,emits:Mue,setup(e,{expose:t}){const n=e,{ns:o,zIndex:r}=w3("notification"),{nextZIndex:i,currentZIndex:s}=r,{Close:l}=CT,a=H(!1);let c;const u=D(()=>{const w=n.type;return w&&Sg[n.type]?o.m(w):""}),d=D(()=>n.type&&Sg[n.type]||n.icon),f=D(()=>n.position.endsWith("right")?"right":"left"),p=D(()=>n.position.startsWith("top")?"top":"bottom"),h=D(()=>{var w;return{[p.value]:`${n.offset}px`,zIndex:(w=n.zIndex)!=null?w:s.value}});function m(){n.duration>0&&({stop:c}=Db(()=>{a.value&&v()},n.duration))}function b(){c==null||c()}function v(){a.value=!1}function E({code:w}){w===ht.delete||w===ht.backspace?b():w===ht.esc?a.value&&v():m()}return mt(()=>{m(),i(),a.value=!0}),Tn(document,"keydown",E),t({visible:a,close:v}),(w,S)=>(_(),L(dr,{name:C(o).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:S[1]||(S[1]=T=>w.$emit("destroy")),persisted:""},{default:x(()=>[ze(g("div",{id:w.id,class:R([C(o).b(),w.customClass,C(f)]),style:Be(C(h)),role:"alert",onMouseenter:b,onMouseleave:m,onClick:S[0]||(S[0]=(...T)=>w.onClick&&w.onClick(...T))},[C(d)?(_(),L(C(ge),{key:0,class:R([C(o).e("icon"),C(u)])},{default:x(()=>[(_(),L(Et(C(d))))]),_:1},8,["class"])):O("v-if",!0),g("div",{class:R(C(o).e("group"))},[g("h2",{class:R(C(o).e("title")),textContent:M(w.title)},null,10,Iue),ze(g("div",{class:R(C(o).e("content")),style:Be(w.title?void 0:{margin:0})},[le(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(_(),k(Q,{key:1},[O(" Caution here, message could've been compromised, never use user's input as message "),g("p",{innerHTML:w.message},null,8,Pue)],2112)):(_(),k("p",Oue,M(w.message),1))])],6),[[sn,w.message]]),w.showClose?(_(),L(C(ge),{key:0,class:R(C(o).e("closeBtn")),onClick:qe(v,["stop"])},{default:x(()=>[y(C(l))]),_:1},8,["class","onClick"])):O("v-if",!0)],2)],46,Aue),[[sn,a.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Rue=Re(Lue,[["__file","notification.vue"]]);const Og={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},ky=16;let Fue=1;const Ju=function(e={},t=null){if(!kt)return{close:()=>{}};(typeof e=="string"||uo(e))&&(e={message:e});const n=e.position||"top-right";let o=e.offset||0;Og[n].forEach(({vm:u})=>{var d;o+=(((d=u.el)==null?void 0:d.offsetHeight)||0)+ky}),o+=ky;const r=`notification_${Fue++}`,i=e.onClose,s={...e,offset:o,id:r,onClose:()=>{Due(r,n,i)}};let l=document.body;si(e.appendTo)?l=e.appendTo:je(e.appendTo)&&(l=document.querySelector(e.appendTo)),si(l)||(l=document.body);const a=document.createElement("div"),c=y(Rue,s,uo(s.message)?{default:()=>s.message}:null);return c.appContext=t??Ju._context,c.props.onDestroy=()=>{ws(null,a)},ws(c,a),Og[n].push({vm:c}),l.appendChild(a.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};zA.forEach(e=>{Ju[e]=(t={})=>((typeof t=="string"||uo(t))&&(t={message:t}),Ju({...t,type:e}))});function Due(e,t,n){const o=Og[t],r=o.findIndex(({vm:c})=>{var u;return((u=c.component)==null?void 0:u.props.id)===e});if(r===-1)return;const{vm:i}=o[r];if(!i)return;n==null||n(i);const s=i.el.offsetHeight,l=t.split("-")[0];o.splice(r,1);const a=o.length;if(!(a<1))for(let c=r;c<a;c++){const{el:u,component:d}=o[c].vm,f=Number.parseInt(u.style[l],10)-s-ky;d.props.offset=f}}function Bue(){for(const e of Object.values(Og))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}Ju.closeAll=Bue;Ju._context=null;const zue=qJ(Ju,"$notify"),de=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Vue={name:"NewFeedTicker",data(){return{new_items_count:0,period:6e3,isScheduled:!1,lastTimeStamp:null,dismissed:!1}},methods:{scheduleTicker(){if(this.isScheduled||!this.auth.user_id){console.log("Already scheduled or no user id");return}this.isScheduled=!0,setTimeout(()=>{this.initTicker(),this.period=Math.floor(Math.random()*3e4)+6e4},this.period)},initTicker(){if(this.new_items_count)return;let e=this.$getLocalData("tickerData",{});if(e||(e={}),e.new_items_count&&parseInt(e.new_items_count)>0){this.new_items_count=e.new_items_count;return}this.$get("feeds/ticker",{last_fetched_timestamp:e.last_fetched_timestamp}).then(t=>{this.handleResponse(t),e.new_items_count=t.new_items_count,e.last_fetched_timestamp=t.last_fetched_timestamp,this.$storeLocalData("tickerData",e)}).catch(t=>{this.isScheduled=!1,this.scheduleTicker()})},handleResponse(e){e.new_items_count?this.new_items_count=e.new_items_count:this.new_items_count=0,this.isScheduled=!1,this.scheduleTicker(),this.$eventBus.emit("ticker_updated",e),this.new_items_count&&this.changeTitle(this.$t("🔔 new post available"))},routeToAllFeeds(){this.changeTitle(this.$t("Feeds")),this.dismissed=!0,this.new_items_count=0,this.$router.push({name:"dashboard",query:{stamp:new Date().getTime(),sort_by:"latest"}})},handleDismiss(){this.dismissed=!0,this.changeTitle(this.$t(""))}},mounted(){let e=this.$getLocalData("tickerData",{});e.last_fetched_timestamp="",e.new_items_count=0,this.$storeLocalData("tickerData",e),this.scheduleTicker(),this.$eventBus.on("newest_feed_fetched",t=>{if(t.last_fetched_timestamp){let n=this.$getLocalData("tickerData",{});n||(n={}),n.new_items_count=0,this.new_items_count=0,n.last_fetched_timestamp=t.last_fetched_timestamp,this.$storeLocalData("tickerData",n)}})}},jue={key:0,class:"fcom_new_ticker"};function Hue(e,t,n,o,r,i){return r.new_items_count&&!r.dismissed?(_(),k("div",jue,[g("div",{onClick:t[0]||(t[0]=s=>i.routeToAllFeeds()),class:"fcom_ticker_menu"},M(e.$_n("a new post available","%s new posts available",r.new_items_count)),1),g("div",{onClick:t[1]||(t[1]=s=>i.handleDismiss()),class:"fcom_ticker_dismiss"}," x ")])):O("",!0)}const Uue=de(Vue,[["render",Hue]]),Wue={name:"NotificationsBlock",emits:["close"],props:["notifications"],methods:{markRead(e,t){e.subscriber&&!e.subscriber.is_read||(this.notifications.splice(t,1),this.$post("notifications/mark-read/"+e.id).then(n=>{this.$eventBus.emit("notification-read",n.unread_count)}))},getNotificationRoute(e){const t=e.route;return e.action=="comment_added"&&(t.query={comment_id:e.object_id}),t}}},que={class:"notification_avatar"},Kue={class:"notification_content"},Gue=["innerHTML"],Yue={class:"notification_time_stamp"};function Zue(e,t,n,o,r,i){const s=z("UserAvatar"),l=z("router-link");return _(!0),k(Q,null,Te(n.notifications,(a,c)=>{var u;return _(),k("div",{class:R(["notification_wrap",{notification_wrap_unread:((u=a==null?void 0:a.subscriber)==null?void 0:u.is_read)=="0"}])},[y(l,{onClick:d=>i.markRead(a,c),to:i.getNotificationRoute(a),class:"notification_item"},{default:x(()=>[g("div",que,[y(s,{xprofile:a.xprofile},null,8,["xprofile"])]),g("div",Kue,[g("div",{innerHTML:a.content},null,8,Gue),g("span",Yue,M(e.humanDateDiff(a.updated_at)),1)])]),_:2},1032,["onClick","to"])],2)}),256)}const VA=de(Wue,[["render",Zue]]),Jue={name:"NotificationIcon"},Xue={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Que=g("path",{d:"M2.10794 11.9954C1.93073 13.1229 2.72301 13.9055 3.69305 14.2955C7.41201 15.7908 12.5873 15.7908 16.3063 14.2955C17.2763 13.9055 18.0686 13.1229 17.8914 11.9954C17.7825 11.3024 17.244 10.7254 16.845 10.162C16.3224 9.41493 16.2705 8.60009 16.2704 7.73317C16.2704 4.38291 13.4629 1.66699 9.99968 1.66699C6.53645 1.66699 3.72895 4.38291 3.72895 7.73317C3.72887 8.60009 3.67694 9.41493 3.15435 10.162C2.75537 10.7254 2.21685 11.3024 2.10794 11.9954Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),ede=g("path",{d:"M7.5 17.5C8.16345 18.0182 9.03956 18.3333 10 18.3333C10.9604 18.3333 11.8366 18.0182 12.5 17.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),tde=[Que,ede];function nde(e,t,n,o,r,i){return _(),k("svg",Xue,tde)}const ode=de(Jue,[["render",nde]]),rde={name:"Notifications",components:{NotificationsBlock:VA,NotificationIcon:ode},data(){return{unread_notifications:[],unread_count:parseInt(this.appVars.unread_notification_count),loading:!1,working:!1,visible:!1,notification_type:"all"}},methods:{switchType(e){this.notification_type=e,this.fetchUnread()},toggleNotifications(){this.loading=!0,this.visible=!this.visible,this.visible?this.fetchUnread():this.loading=!1},handleClose(){this.$refs.notification_pop.hide(),this.visible=!1},fetchUnread(){this.loading=!0,this.$get("notifications/unread",{notification_type:this.notification_type}).then(e=>{this.unread_notifications=e.notifications,this.appVars.unread_notification_count=e.unread_count,this.unread_count=e.unread_count}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},markAllRead(){this.working=!0,this.$post("notifications/mark-all-read").then(e=>{this.$notify.success(e.message),this.fetchUnread()}).catch(e=>{this.$handleError(e)}).finally(()=>{this.working=!1})},gotoAll(){this.handleClose(),this.$router.push({name:"notifications"})},keyBind(e){e.code==="KeyN"&&e.altKey&&this.$refs.notification_icon.click()}},mounted(){document.addEventListener("keydown",this.keyBind),this.$eventBus.on("ticker_updated",e=>{this.appVars.unread_notification_count=e.unread_notification_count,this.unread_count=e.unread_notification_count}),this.$eventBus.on("notification_count_updated",e=>{this.appVars.unread_notification_count=e,this.unread_count=e}),this.$eventBus.on("feed_interaction",e=>{e=e+"",this.appVars.unread_feed_ids&&this.appVars.unread_feed_ids.indexOf(e)!==-1&&this.$post("notifications/mark-read/"+e+"/by-feed-id").then(t=>{this.unread_count=t.unread_notification_count,this.appVars.unread_feed_ids=t.unread_feed_ids})})},beforeUnmount(){document.removeEventListener("keydown",this.keyBind)}},ide={ref:"notification_icon",class:"notification_icon"},sde={class:"notifications_wrap unread_notifications"},lde={class:"norification_pop_header"},ade={class:"fcom_filter_menu"},cde={class:"fcom_filter_menu_ul"},ude={key:2};function dde(e,t,n,o,r,i){const s=z("NotificationIcon"),l=ge,a=Tne,c=Ye,u=Wt,d=z("notifications-block"),f=po,p=Mt("loading");return _(),L(f,{popperClass:"notification_pop",onBeforeEnter:t[7]||(t[7]=h=>i.toggleNotifications()),ref:"notification_pop",trigger:"click",placement:"bottom",width:500},{reference:x(()=>[y(a,{max:20,hidden:!r.unread_count,value:r.unread_count,class:"item"},{default:x(()=>[g("div",ide,[y(l,null,{default:x(()=>[y(s)]),_:1})],512)]),_:1},8,["hidden","value"])]),default:x(()=>[g("div",sde,[g("div",lde,[g("h3",null,M(e.$t("Unread Notifications")),1),g("div",null,[ze((_(),L(c,{disabled:r.working,size:"small",onClick:t[0]||(t[0]=h=>i.markAllRead())},{default:x(()=>[te(M(e.$t("Mark all as read")),1)]),_:1},8,["disabled"])),[[p,r.working]])])]),g("div",ade,[g("ul",cde,[g("li",null,[g("a",{onClick:t[1]||(t[1]=qe(h=>i.switchType("all"),["prevent"])),class:R({"router-link-exact-active":r.notification_type=="all"}),href:"#"},M(e.$t("All")),3)]),g("li",null,[g("a",{onClick:t[2]||(t[2]=qe(h=>i.switchType("mentioned"),["prevent"])),class:R({"router-link-exact-active":r.notification_type=="mentioned"}),href:"#"},M(e.$t("Mentions")),3)]),g("li",null,[g("a",{onClick:t[3]||(t[3]=qe(h=>i.switchType("following"),["prevent"])),class:R({"router-link-exact-active":r.notification_type=="following"}),href:"#"},M(e.$t("Following")),3)])])]),r.loading?(_(),L(u,{key:0,animated:!0,rows:2})):r.unread_notifications.length?(_(),k("div",{key:1,onClick:t[5]||(t[5]=h=>e.$refs.notification_pop.hide()),class:"notifications"},[y(d,{onClose:t[4]||(t[4]=h=>i.handleClose()),notifications:r.unread_notifications},null,8,["notifications"])])):(_(),k("div",ude,[g("p",null,M(e.$t("No unread notifications found")),1)])),y(c,{style:{"margin-top":"10px"},onClick:t[6]||(t[6]=h=>i.gotoAll())},{default:x(()=>[te(M(e.$t("View All")),1)]),_:1})])]),_:1},512)}const fde=de(rde,[["render",dde]]),pde={name:"ImageUploader",emits:["uploaded","completed","uploading"],data(){return{loading:!1}},props:{button_text:{type:String,default:"Upload Photo"},additionalData:{type:Object,default:()=>({})},isMultiple:{type:Boolean,default:!1},can_remove:{type:Boolean,default:!1},isTextBtn:{type:Boolean,default:!0},removeIcon:{type:Boolean,default:!0},className:{type:String,default:"image-uploader"}},methods:{handleSuccess(e){this.$emit("uploaded",e.media.url),this.$emit("completed",e),this.loading=!1},handleError(e){this.$handleError(JSON.parse(e.message)),this.$emit("completed",e),this.loading=!1},inProgress(e){this.$emit("uploading"),this.loading=!0}},computed:{action_url(){return this.appVars.rest.url+"/feeds/media-upload"},headers(){return{"X-WP-Nonce":this.appVars.rest.nonce}}}};function hde(e,t,n,o,r,i){const s=Ye,l=BA,a=z("CloseBold"),c=ge,u=Mt("loading");return _(),k(Q,null,[y(l,{class:R(n.className),multiple:n.isMultiple,action:i.action_url,headers:i.headers,accept:"image/*",data:n.additionalData,"on-success":i.handleSuccess,"on-progress":i.inProgress,"on-error":i.handleError,"show-file-list":!1},{default:x(()=>[le(e.$slots,"trigger",{},()=>[le(e.$slots,"default",{},()=>[ze((_(),L(s,{disabled:r.loading,text:n.isTextBtn,class:"fcom_plain_button"},{default:x(()=>[te(M(n.button_text),1)]),_:1},8,["disabled","text"])),[[u,r.loading]])])])]),_:3},8,["class","multiple","action","headers","data","on-success","on-progress","on-error"]),n.can_remove?(_(),L(s,{key:0,class:"remove_img",size:"small",type:"danger",plain:"",onClick:t[0]||(t[0]=d=>e.$emit("uploaded","")),text:n.isTextBtn},{default:x(()=>[le(e.$slots,"remove",{},()=>[n.removeIcon?(_(),L(c,{key:0},{default:x(()=>[y(a)]),_:1})):O("",!0),g("span",null,M(e.$t("Remove")),1)])]),_:3},8,["text"])):O("",!0)],64)}const vc=de(pde,[["render",hde]]),mde={name:"SurveyEditForm",props:["form"],emits:["cancel"],data(){return{}},methods:{addOption(){this.form.options.push({label:"",slug:""})},removeOption(e){this.form.options.splice(e,1)}}},_de={class:"fcom_compose_app_form"},gde={class:"fcom_app_header"},vde={class:"fcom_app_options"},bde={class:"fcom_app_pref"},yde={class:"fcom_app_footer"};function wde(e,t,n,o,r,i){const s=Ye,l=An,a=z("Plus"),c=ge,u=Dr;return _(),k("div",_de,[g("div",gde,[g("h5",null,M(e.$t("Poll Options")),1),g("div",null,[y(s,{onClick:t[0]||(t[0]=d=>e.$emit("cancel")),size:"small",text:""},{default:x(()=>[te(M(e.$t("cancel")),1)]),_:1})])]),g("div",vde,[(_(!0),k(Q,null,Te(n.form.options,(d,f)=>(_(),k("div",{class:"fcom_app_option",key:"option_"+f},[y(l,{modelValue:d.label,"onUpdate:modelValue":p=>d.label=p,type:"text",placeholder:e.$t("Your option text")},Vo({_:2},[!d.slug&&f!==0?{name:"suffix",fn:x(()=>[y(s,{onClick:p=>i.removeOption(f),text:"",size:"small"},{default:x(()=>[te("x")]),_:2},1032,["onClick"])]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","placeholder"])]))),128)),g("div",bde,[y(s,{onClick:i.addOption,text:"",size:"small"},{default:x(()=>[y(c,null,{default:x(()=>[y(a)]),_:1}),g("span",null,M(e.$t("Add More")),1)]),_:1},8,["onClick"])])]),g("div",yde,[g("h5",null,M(e.$t("Poll Settings")),1),y(u,{modelValue:n.form.type,"onUpdate:modelValue":t[1]||(t[1]=d=>n.form.type=d),"true-value":"multi_choice","false-value":"single_choice"},{default:x(()=>[te(M(e.$t("Users can choose multiple options")),1)]),_:1},8,["modelValue"])])])}const kde=de(mde,[["render",wde]]),xde={name:"GiphyIcon"},Cde={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},Sde=ad('<path d="M12.9287 10.09H14.7095" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M15.0781 8.20333H12.9277V11.98" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10.3458 8.19998V11.98" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7.74961 8.2H6.48961C5.44549 8.2 4.59961 9.04588 4.59961 10.09V10.09C4.59961 11.1341 5.44549 11.98 6.48961 11.98H7.74961V10.09H6.69961" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.5 19C2.567 19 1 17.433 1 15.5L1 4.49999C1 2.567 2.567 0.999992 4.5 0.999992H15.5C17.433 0.999992 19 2.567 19 4.49999V15.5C19 17.433 17.433 19 15.5 19H4.5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>',5),$de=[Sde];function Ede(e,t,n,o,r,i){return _(),k("svg",Cde,$de)}const Tde=de(xde,[["render",Ede]]);function Mde(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _d=Mde,Ade=typeof $r=="object"&&$r&&$r.Object===Object&&$r,jA=Ade,Ide=jA,Ode=typeof self=="object"&&self&&self.Object===Object&&self,Pde=Ide||Ode||Function("return this")(),Gi=Pde,Nde=Gi,Lde=function(){return Nde.Date.now()},Rde=Lde,Fde=/\s/;function Dde(e){for(var t=e.length;t--&&Fde.test(e.charAt(t)););return t}var Bde=Dde,zde=Bde,Vde=/^\s+/;function jde(e){return e&&e.slice(0,zde(e)+1).replace(Vde,"")}var Hde=jde,Ude=Gi,Wde=Ude.Symbol,U1=Wde,B6=U1,HA=Object.prototype,qde=HA.hasOwnProperty,Kde=HA.toString,jd=B6?B6.toStringTag:void 0;function Gde(e){var t=qde.call(e,jd),n=e[jd];try{e[jd]=void 0;var o=!0}catch{}var r=Kde.call(e);return o&&(t?e[jd]=n:delete e[jd]),r}var Yde=Gde,Zde=Object.prototype,Jde=Zde.toString;function Xde(e){return Jde.call(e)}var Qde=Xde,z6=U1,efe=Yde,tfe=Qde,nfe="[object Null]",ofe="[object Undefined]",V6=z6?z6.toStringTag:void 0;function rfe(e){return e==null?e===void 0?ofe:nfe:V6&&V6 in Object(e)?efe(e):tfe(e)}var yh=rfe;function ife(e){return e!=null&&typeof e=="object"}var wh=ife,sfe=yh,lfe=wh,afe="[object Symbol]";function cfe(e){return typeof e=="symbol"||lfe(e)&&sfe(e)==afe}var W1=cfe,ufe=Hde,j6=_d,dfe=W1,H6=0/0,ffe=/^[-+]0x[0-9a-f]+$/i,pfe=/^0b[01]+$/i,hfe=/^0o[0-7]+$/i,mfe=parseInt;function _fe(e){if(typeof e=="number")return e;if(dfe(e))return H6;if(j6(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=j6(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ufe(e);var n=pfe.test(e);return n||hfe.test(e)?mfe(e.slice(2),n?2:8):ffe.test(e)?H6:+e}var gfe=_fe,vfe=_d,cv=Rde,U6=gfe,bfe="Expected a function",yfe=Math.max,wfe=Math.min;function kfe(e,t,n){var o,r,i,s,l,a,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(bfe);t=U6(t)||0,vfe(n)&&(u=!!n.leading,d="maxWait"in n,i=d?yfe(U6(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p($){var A=o,P=r;return o=r=void 0,c=$,s=e.apply(P,A),s}function h($){return c=$,l=setTimeout(v,t),u?p($):s}function m($){var A=$-a,P=$-c,N=t-A;return d?wfe(N,i-P):N}function b($){var A=$-a,P=$-c;return a===void 0||A>=t||A<0||d&&P>=i}function v(){var $=cv();if(b($))return E($);l=setTimeout(v,m($))}function E($){return l=void 0,f&&o?p($):(o=r=void 0,s)}function w(){l!==void 0&&clearTimeout(l),c=0,o=a=r=l=void 0}function S(){return l===void 0?s:E(cv())}function T(){var $=cv(),A=b($);if(o=arguments,r=this,a=$,A){if(l===void 0)return h(a);if(d)return clearTimeout(l),l=setTimeout(v,t),p(a)}return l===void 0&&(l=setTimeout(v,t)),s}return T.cancel=w,T.flush=S,T}var UA=kfe;const xfe=jl(UA),Cfe={name:"Giphy",components:{GiphyIcon:Tde},data(){return{gifs:[],searchQuery:"",offset:0,limit:20,loading:!1}},methods:{loadGifs(){var t,n;if(((n=(t=this.$gloablStorage)==null?void 0:t.gifs)==null?void 0:n.length)>0&&!this.searchQuery){this.gifs=this.$gloablStorage.gifs;return}this.loading=!0;const e={limit:this.limit,offset:this.offset,q:this.searchQuery.trim()};this.$get("giphy",e).then(o=>{this.gifs=this.offset===0?o.gifs:this.gifs.concat(o.gifs),!this.searchQuery&&this.offset===0&&(this.$gloablStorage.gifs=this.gifs),this.offset+=this.limit}).catch(o=>{this.$handleError(o)}).finally(()=>{this.loading=!1})},handleGiphyClick(){this.offset=0,this.searchQuery="",this.loadGifs()},handleSearch:xfe(function(){this.offset=0,this.loadGifs()},300),handleScroll(e){e.target.scrollHeight-e.target.scrollTop===e.target.clientHeight&&!this.loading&&this.loadGifs()},selectGiphy(e){this.$emit("selected-giphy",e),this.$refs.popover.hide()}}},Sfe={class:"fcom_giphy_composer"},$fe={class:"search-container"},Efe=["onLoad","src","alt","onClick"],Tfe={key:0,class:"img_loading"},Mfe={key:1,class:"no_result"},Afe=g("div",{class:"fcom_giphy_powered_by"},[g("span",{class:"powered_by"},"POWERED BY "),g("span",null,"GIPHY")],-1);function Ife(e,t,n,o,r,i){const s=An,l=gh,a=_h,c=z("GiphyIcon"),u=ge,d=Ye,f=po,p=Mt("loading");return _(),k("div",Sfe,[y(f,{placement:"top-end",width:300,persistent:!1,trigger:"click","popper-class":"fcom_giphy_popover",ref:"popover"},{reference:x(()=>[y(d,{"aria-label":"Pick GIF",text:"",onClick:i.handleGiphyClick},{default:x(()=>[y(u,{class:R(["fcom_apps_icon"])},{default:x(()=>[y(c)]),_:1})]),_:1},8,["onClick"])]),default:x(()=>[ze((_(),k("div",$fe,[y(s,{modelValue:r.searchQuery,"onUpdate:modelValue":t[0]||(t[0]=h=>r.searchQuery=h),placeholder:e.$t("Search Gifs"),onInput:i.handleSearch},null,8,["modelValue","placeholder","onInput"]),g("div",{class:"gif_container",onScroll:t[1]||(t[1]=(...h)=>i.handleScroll&&i.handleScroll(...h))},[r.gifs.length>0?(_(),L(a,{key:0,gutter:5},{default:x(()=>[(_(!0),k(Q,null,Te(r.gifs,h=>(_(),L(l,{span:12,key:h.id,class:"gif_item"},{default:x(()=>[g("img",{alt:"",onLoad:m=>h.loaded=!0,src:h.images.preview_gif.url,onClick:m=>i.selectGiphy(h)},null,40,Efe),h.loaded?O("",!0):(_(),k("p",Tfe))]),_:2},1024))),128))]),_:1})):(_(),k("p",Mfe,M(e.$t("No results")),1))],32),Afe])),[[p,r.loading]])]),_:1},512)])}const Ofe=de(Cfe,[["render",Ife]]),Pfe={name:"VideoIcon"},Nfe={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},Lfe=g("rect",{x:"1",y:"1",width:"18",height:"18",rx:"3.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Rfe=g("path",{d:"M8.90484 7.14604L12.663 9.3589C13.1383 9.6384 13.1383 10.3237 12.663 10.6032L8.90484 12.816C8.4208 13.1013 7.80896 12.7534 7.80896 12.1934V7.76865C7.80896 7.20869 8.4208 6.86076 8.90484 7.14604Z",fill:"currentColor"},null,-1),Ffe=[Lfe,Rfe];function Dfe(e,t,n,o,r,i){return _(),k("svg",Nfe,Ffe)}const Bfe=de(Pfe,[["render",Dfe]]),zfe={name:"MediaPreview",components:{Postcard:vJ},props:["feed","media_item"],computed:{media(){return this.feed?this.feed.meta.media_preview:this.media_item}},data(){return{is_error:!1}},methods:{getDomainName(e){return e?e.split("/")[2].replace("www.",""):""},getAspectRatio(e,t){if(e&&t){let n=e/t;return n<1?16/9:n}return 16/9},handleImageError(){this.is_error=!0}}},Vfe={key:0},jfe=["innerHTML"],Hfe=["href"],Ufe={key:0,class:"feed_media_image"},Wfe=g("span",null,null,-1),qfe={key:1,class:"feed_media_content"},Kfe={class:"media_domain"},Gfe={class:"feed_media_title"},Yfe={key:0,class:"feed_media_description"},Zfe={class:"feed_meta_desc"};function Jfe(e,t,n,o,r,i){const s=Wt,l=Hl;return _(),k("div",{class:R(["feed_media","feed_media_"+i.media.type])},[i.media.type=="oembed"||i.media.type=="iframe_html"?(_(),k(Q,{key:0},[i.media.content_type=="video"?(_(),k("div",Vfe,[g("div",{class:"feed_media_ext_video",innerHTML:i.media.html},null,8,jfe)])):O("",!0)],64)):i.media.type=="image"||i.media.is_uploaded?(_(),k("div",{key:1,class:R(["feed_media_provider_"+i.media.provider,"feed_media_image feed_custom_uploaded"])},[i.media.image&&!r.is_error?(_(),L(l,{key:0,alt:"",style:Be({width:"100%",aspectRatio:i.getAspectRatio(i.media.width,i.media.height)}),src:i.media.image,lazy:!0,previewSrcList:[i.media.image],loading:"lazy",onError:i.handleImageError,"zoom-rate":1.2,"max-scale":7,"preview-teleported":!0,"min-scale":.2,"initial-index":1,class:R("fcom_media_provider_"+i.media.provider),fit:"scale-down"},{placeholder:x(()=>[y(s,{animated:!0})]),_:1},8,["style","src","previewSrcList","onError","class"])):O("",!0)],2)):(_(),k("a",{key:2,href:i.media.url,target:"_blank",rel:"noopener",class:"feed_media_link"},[i.media.image&&!r.is_error?(_(),k("div",Ufe,[y(l,{onError:t[0]||(t[0]=a=>i.handleImageError()),style:{width:"100%"},src:i.media.image},{error:x(()=>[Wfe]),_:1},8,["src"])])):O("",!0),i.media.title?(_(),k("div",qfe,[g("div",Kfe,M(i.getDomainName(i.media.url)),1),g("div",Gfe,M(e.getExcerpt(i.media.title,88)),1),i.media.description?(_(),k("div",Yfe,[g("div",Zfe,M(e.getExcerpt(i.media.description,160)),1)])):O("",!0)])):O("",!0)],8,Hfe))],2)}const gd=de(zfe,[["render",Jfe]]),Xfe={name:"MediaEmbeder",emits:["embeded"],props:{media:{type:Object,default:()=>({type:"oembed",url:"",inner_html:"",content_type:"video"})},box_title:{type:String,default:""},box_description:{type:String,default:""},has_iframe:{type:Boolean,default:!0}},components:{MediaPreview:gd},computed:{showPreview(){return this.media.html&&!this.showInput}},data(){return{appReady:!1,showInput:!1,fetching:!1}},methods:{fetchData(){this.media.url&&(this.fetching=!0,this.$get("feeds/oembed",{url:this.media.url}).then(e=>{this.media.html=e.oembed.html,this.media.provider=e.oembed.provider,this.media.title=e.oembed.title,this.media.author_name=e.oembed.author_name,this.media.type=e.oembed.type,this.media.content_type="video",this.$emit("embeded",this.media),this.showInput=!1}).catch(e=>{this.$handleError(e)}).finally(()=>{this.fetching=!1}))}},mounted(){typeof this.media!="object"&&(this.media={type:"oembed",url:"",inner_html:""}),this.appReady=!0,this.media.html||this.fetchData()}},Qfe={key:0},epe={key:0,class:"fcom_media_editor_actions"},tpe={key:1,class:"fcom_media_editor fcom_media_embeder"},npe={key:2,class:"fcom_course_media"};function ope(e,t,n,o,r,i){const s=Ye,l=hh,a=Is,c=An,u=z("media-preview"),d=Mt("loading");return r.appReady?ze((_(),k("div",Qfe,[n.has_iframe?(_(),k("div",epe,[i.showPreview?(_(),L(s,{key:0,onClick:t[0]||(t[0]=f=>r.showInput=!0),type:"danger",size:"small",text:""},{default:x(()=>[te(M(e.$t("Edit media")),1)]),_:1})):(_(),L(a,{key:1,onChange:t[1]||(t[1]=f=>{n.media.html="",n.media.url=""}),size:"small",modelValue:n.media.type,"onUpdate:modelValue":t[2]||(t[2]=f=>n.media.type=f)},{default:x(()=>[y(l,{label:e.$t("Oembed"),value:"oembed"},null,8,["label"]),y(l,{label:e.$t("Custom HTML Code"),value:"iframe_html"},null,8,["label"])]),_:1},8,["modelValue"]))])):O("",!0),i.showPreview?(_(),k("div",npe,[y(u,{media_item:n.media},null,8,["media_item"])])):(_(),k("div",tpe,[n.media.type=="iframe_html"&&n.has_iframe?(_(),k(Q,{key:0},[g("h3",null,M(e.$t("Add Video from custom HTML Code")),1),y(c,{rows:5,modelValue:n.media.html,"onUpdate:modelValue":t[3]||(t[3]=f=>n.media.html=f),type:"textarea",placeholder:e.$t("Paste an iframe code")},null,8,["modelValue","placeholder"]),y(s,{style:{"margin-top":"20px"},onClick:t[4]||(t[4]=f=>r.showInput=!1),class:"fcom_secondary_button"},{default:x(()=>[te(M(e.$t("Embed")),1)]),_:1})],64)):(_(),k(Q,{key:1},[g("h3",null,M(n.box_title||e.$t("Featured media")),1),g("p",null,M(n.box_description||e.$t("Embed from Vimeo, YouTube, Wistia and more")),1),y(c,{onKeydown:Ut(i.fetchData,["enter"]),size:"large",modelValue:n.media.url,"onUpdate:modelValue":t[5]||(t[5]=f=>n.media.url=f),type:"url",placeholder:e.$t("Paste a URL to embed")},{append:x(()=>[y(s,{onClick:i.fetchData,class:"fcom_primary_button"},{default:x(()=>[te(M(e.$t("Embed")),1)]),_:1},8,["onClick"])]),_:1},8,["onKeydown","modelValue","placeholder"])],64))]))])),[[d,r.fetching]]):O("",!0)}const j3=de(Xfe,[["render",ope]]),rpe={name:"VideoEmbeder",emits:["embeded"],components:{MediaEmbeder:j3,VideoIcon:Bfe},data(){return{videoUrl:"",showVideoPop:!1,media:{type:"oembed",url:"",inner_html:"",content_type:"video"}}},methods:{show(){this.showVideoPop=!0},embeded(e){this.$emit("embeded",e),this.showVideoPop=!1,this.media={type:"oembed",url:"",inner_html:"",content_type:"video"}}}},ipe={class:"fcom_video_embeder"};function spe(e,t,n,o,r,i){const s=z("VideoIcon"),l=ge,a=Ye,c=z("media-embeder"),u=bh;return _(),k("div",ipe,[y(a,{"aria-label":"Add Video",text:"",onClick:i.show},{default:x(()=>[y(l,{class:R(["fcom_apps_icon"])},{default:x(()=>[y(s)]),_:1})]),_:1},8,["onClick"]),r.showVideoPop?(_(),L(u,{key:0,title:e.$t("Attach video"),modelValue:r.showVideoPop,"onUpdate:modelValue":t[0]||(t[0]=d=>r.showVideoPop=d),width:e.dialogWidth,style:{"max-width":"600px"},"append-to-body":!0},{default:x(()=>[y(c,{box_title:e.$t("Add Featured Video for this post"),has_iframe:!1,onEmbeded:i.embeded,media:r.media},null,8,["box_title","onEmbeded","media"])]),_:1},8,["title","modelValue","width"])):O("",!0)])}const lpe=de(rpe,[["render",spe]]);var Uo=(e=>(e.docTypeError="docTypeError",e.contextNotFound="contextNotFound",e.timerNotFound="timerNotFound",e.ctxCallOutOfScope="ctxCallOutOfScope",e.createNodeInParserFail="createNodeInParserFail",e.stackOverFlow="stackOverFlow",e.parserMatchError="parserMatchError",e.serializerMatchError="serializerMatchError",e.getAtomFromSchemaFail="getAtomFromSchemaFail",e.expectDomTypeError="expectDomTypeError",e.callCommandBeforeEditorView="callCommandBeforeEditorView",e.missingRootElement="missingRootElement",e.missingNodeInSchema="missingNodeInSchema",e.missingMarkInSchema="missingMarkInSchema",e.ctxNotBind="ctxNotBind",e.missingYjsDoc="missingYjsDoc",e))(Uo||{});let pr=class extends Error{constructor(t,n){super(n),this.name="MilkdownError",this.code=t}};const ape=(e,t)=>typeof t=="function"?"[Function]":t,Xu=e=>JSON.stringify(e,ape);function cpe(e){return new pr(Uo.docTypeError,`Doc type error, unsupported type: ${Xu(e)}`)}function upe(e){return new pr(Uo.contextNotFound,`Context "${e}" not found, do you forget to inject it?`)}function dpe(e){return new pr(Uo.timerNotFound,`Timer "${e}" not found, do you forget to record it?`)}function H3(){return new pr(Uo.ctxCallOutOfScope,"Should not call a context out of the plugin.")}function fpe(...e){const t=e.reduce((n,o)=>{if(!o)return n;const r=i=>Array.isArray(i)?i.map(s=>r(s)).join(", "):i.toJSON?Xu(i.toJSON()):i.spec?Xu(i.spec):i.toString();return`${n}, ${r(o)}`},"Create prosemirror node from remark failed in parser");return new pr(Uo.createNodeInParserFail,t)}function WA(){return new pr(Uo.stackOverFlow,"Stack over flow, cannot pop on an empty stack.")}function ppe(e){return new pr(Uo.parserMatchError,`Cannot match target parser for node: ${Xu(e)}.`)}function hpe(e){return new pr(Uo.serializerMatchError,`Cannot match target serializer for node: ${Xu(e)}.`)}function mpe(e,t){return new pr(Uo.getAtomFromSchemaFail,`Cannot get ${e}: ${t} from schema.`)}function Yi(e){return new pr(Uo.expectDomTypeError,`Expect to be a dom, but get: ${Xu(e)}.`)}function _pe(){return new pr(Uo.callCommandBeforeEditorView,"You're trying to call a command before editor view initialized, make sure to get commandManager from ctx after editor view has been initialized")}function qA(e){return new pr(Uo.missingNodeInSchema,`Missing node in schema, milkdown cannot find "${e}" in schema.`)}function gpe(e){return new pr(Uo.missingMarkInSchema,`Missing mark in schema, milkdown cannot find "${e}" in schema.`)}var KA=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Je=(e,t,n)=>(KA(e,t,"read from private field"),n?n.call(e):t.get(e)),gn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ft=(e,t,n,o)=>(KA(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);let GA=class{constructor(){this.sliceMap=new Map,this.get=t=>{const n=typeof t=="string"?[...this.sliceMap.values()].find(o=>o.type.name===t):this.sliceMap.get(t.id);if(!n){const o=typeof t=="string"?t:t.name;throw upe(o)}return n},this.remove=t=>{const n=typeof t=="string"?[...this.sliceMap.values()].find(o=>o.type.name===t):this.sliceMap.get(t.id);n&&this.sliceMap.delete(n.type.id)},this.has=t=>typeof t=="string"?[...this.sliceMap.values()].some(n=>n.type.name===t):this.sliceMap.has(t.id)}};var vi,Gs,Yd;let vpe=class{constructor(t,n,o){gn(this,vi,void 0),gn(this,Gs,void 0),gn(this,Yd,void 0),Ft(this,vi,[]),Ft(this,Yd,()=>{Je(this,vi).forEach(r=>r(Je(this,Gs)))}),this.set=r=>{Ft(this,Gs,r),Je(this,Yd).call(this)},this.get=()=>Je(this,Gs),this.update=r=>{Ft(this,Gs,r(Je(this,Gs))),Je(this,Yd).call(this)},this.type=o,Ft(this,Gs,n),t.set(o.id,this)}on(t){return Je(this,vi).push(t),()=>{Ft(this,vi,Je(this,vi).filter(n=>n!==t))}}once(t){const n=this.on(o=>{t(o),n()});return n}off(t){Ft(this,vi,Je(this,vi).filter(n=>n!==t))}offAll(){Ft(this,vi,[])}};vi=new WeakMap,Gs=new WeakMap,Yd=new WeakMap;let bpe=class{constructor(t,n){this.id=Symbol(`Context-${n}`),this.name=n,this._defaultValue=t,this._typeInfo=()=>{throw H3()}}create(t,n=this._defaultValue){return new vpe(t,n,this)}};const Lt=(e,t)=>new bpe(e,t);var o_,r_,i_,zc,Zd,aa,Jd,Xd,Qd;let ype=class{constructor(t,n,o){gn(this,o_,void 0),gn(this,r_,void 0),gn(this,i_,void 0),gn(this,zc,void 0),gn(this,Zd,void 0),gn(this,aa,void 0),gn(this,Jd,void 0),gn(this,Xd,void 0),gn(this,Qd,void 0),Ft(this,zc,new Set),Ft(this,Zd,new Set),Ft(this,aa,new Map),Ft(this,Jd,new Map),this.read=()=>({metadata:Je(this,o_),injectedSlices:[...Je(this,zc)].map(r=>({name:typeof r=="string"?r:r.name,value:Je(this,Xd).call(this,r)})),consumedSlices:[...Je(this,Zd)].map(r=>({name:typeof r=="string"?r:r.name,value:Je(this,Xd).call(this,r)})),recordedTimers:[...Je(this,aa)].map(([r,{duration:i}])=>({name:r.name,duration:i,status:Je(this,Qd).call(this,r)})),waitTimers:[...Je(this,Jd)].map(([r,{duration:i}])=>({name:r.name,duration:i,status:Je(this,Qd).call(this,r)}))}),this.onRecord=r=>{Je(this,aa).set(r,{start:Date.now(),duration:0})},this.onClear=r=>{Je(this,aa).delete(r)},this.onDone=r=>{const i=Je(this,aa).get(r);i&&(i.duration=Date.now()-i.start)},this.onWait=(r,i)=>{const s=Date.now();i.finally(()=>{Je(this,Jd).set(r,{duration:Date.now()-s})})},this.onInject=r=>{Je(this,zc).add(r)},this.onRemove=r=>{Je(this,zc).delete(r)},this.onUse=r=>{Je(this,Zd).add(r)},Ft(this,Xd,r=>Je(this,r_).get(r).get()),Ft(this,Qd,r=>Je(this,i_).get(r).status),Ft(this,r_,t),Ft(this,i_,n),Ft(this,o_,o)}};o_=new WeakMap,r_=new WeakMap,i_=new WeakMap,zc=new WeakMap,Zd=new WeakMap,aa=new WeakMap,Jd=new WeakMap,Xd=new WeakMap,Qd=new WeakMap;var Ys,Zs,s_,Ur;const wpe=class YA{constructor(t,n,o){gn(this,Ys,void 0),gn(this,Zs,void 0),gn(this,s_,void 0),gn(this,Ur,void 0),this.produce=r=>r&&Object.keys(r).length?new YA(Je(this,Ys),Je(this,Zs),{...r}):this,this.inject=(r,i)=>{var s;const l=r.create(Je(this,Ys).sliceMap);return i!=null&&l.set(i),(s=Je(this,Ur))==null||s.onInject(r),this},this.remove=r=>{var i;return Je(this,Ys).remove(r),(i=Je(this,Ur))==null||i.onRemove(r),this},this.record=r=>{var i;return r.create(Je(this,Zs).store),(i=Je(this,Ur))==null||i.onRecord(r),this},this.clearTimer=r=>{var i;return Je(this,Zs).remove(r),(i=Je(this,Ur))==null||i.onClear(r),this},this.isInjected=r=>Je(this,Ys).has(r),this.isRecorded=r=>Je(this,Zs).has(r),this.use=r=>{var i;return(i=Je(this,Ur))==null||i.onUse(r),Je(this,Ys).get(r)},this.get=r=>this.use(r).get(),this.set=(r,i)=>this.use(r).set(i),this.update=(r,i)=>this.use(r).update(i),this.timer=r=>Je(this,Zs).get(r),this.done=r=>{var i;this.timer(r).done(),(i=Je(this,Ur))==null||i.onDone(r)},this.wait=r=>{var i;const s=this.timer(r).start();return(i=Je(this,Ur))==null||i.onWait(r,s),s},this.waitTimers=async r=>{await Promise.all(this.get(r).map(i=>this.wait(i)))},Ft(this,Ys,t),Ft(this,Zs,n),Ft(this,s_,o),o&&Ft(this,Ur,new ype(t,n,o))}get meta(){return Je(this,s_)}get inspector(){return Je(this,Ur)}};Ys=new WeakMap,Zs=new WeakMap,s_=new WeakMap,Ur=new WeakMap;let kpe=wpe,xpe=class{constructor(){this.store=new Map,this.get=t=>{const n=this.store.get(t.id);if(!n)throw dpe(t.name);return n},this.remove=t=>{this.store.delete(t.id)},this.has=t=>this.store.has(t.id)}};var Vc,ca,ef,Js,tf,l_;let Cpe=class{constructor(t,n){gn(this,Vc,void 0),gn(this,ca,void 0),gn(this,ef,void 0),gn(this,Js,void 0),gn(this,tf,void 0),gn(this,l_,void 0),Ft(this,Vc,null),Ft(this,ca,null),Ft(this,Js,"pending"),this.start=()=>(Je(this,Vc)??Ft(this,Vc,new Promise((o,r)=>{Ft(this,ca,i=>{i instanceof CustomEvent&&i.detail.id===Je(this,ef)&&(Ft(this,Js,"resolved"),Je(this,tf).call(this),i.stopImmediatePropagation(),o())}),Je(this,l_).call(this,()=>{Je(this,Js)==="pending"&&Ft(this,Js,"rejected"),Je(this,tf).call(this),r(new Error(`Timing ${this.type.name} timeout.`))}),Ft(this,Js,"pending"),addEventListener(this.type.name,Je(this,ca))})),Je(this,Vc)),this.done=()=>{const o=new CustomEvent(this.type.name,{detail:{id:Je(this,ef)}});dispatchEvent(o)},Ft(this,tf,()=>{Je(this,ca)&&removeEventListener(this.type.name,Je(this,ca))}),Ft(this,l_,o=>{setTimeout(()=>{o()},this.type.timeout)}),Ft(this,ef,Symbol(n.name)),this.type=n,t.set(n.id,this)}get status(){return Je(this,Js)}};Vc=new WeakMap,ca=new WeakMap,ef=new WeakMap,Js=new WeakMap,tf=new WeakMap,l_=new WeakMap;let Spe=class{constructor(t,n=3e3){this.create=o=>new Cpe(o,this),this.id=Symbol(`Timer-${t}`),this.name=t,this.timeout=n}};const Ul=(e,t=3e3)=>new Spe(e,t);function Kn(e){this.content=e}Kn.prototype={constructor:Kn,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var o=n&&n!=e?this.remove(n):this,r=o.find(e),i=o.content.slice();return r==-1?i.push(n||e,t):(i[r+1]=t,n&&(i[r]=n)),new Kn(i)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new Kn(n)},addToStart:function(e,t){return new Kn([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new Kn(n)},addBefore:function(e,t,n){var o=this.remove(t),r=o.content.slice(),i=o.find(e);return r.splice(i==-1?r.length:i,0,t,n),new Kn(r)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=Kn.from(e),e.size?new Kn(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=Kn.from(e),e.size?new Kn(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=Kn.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}};Kn.from=function(e){if(e instanceof Kn)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Kn(t)};function ZA(e,t,n){for(let o=0;;o++){if(o==e.childCount||o==t.childCount)return e.childCount==t.childCount?null:n;let r=e.child(o),i=t.child(o);if(r==i){n+=r.nodeSize;continue}if(!r.sameMarkup(i))return n;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)n++;return n}if(r.content.size||i.content.size){let s=ZA(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function JA(e,t,n,o){for(let r=e.childCount,i=t.childCount;;){if(r==0||i==0)return r==i?null:{a:n,b:o};let s=e.child(--r),l=t.child(--i),a=s.nodeSize;if(s==l){n-=a,o-=a;continue}if(!s.sameMarkup(l))return{a:n,b:o};if(s.isText&&s.text!=l.text){let c=0,u=Math.min(s.text.length,l.text.length);for(;c<u&&s.text[s.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,o--;return{a:n,b:o}}if(s.content.size||l.content.size){let c=JA(s.content,l.content,n-1,o-1);if(c)return c}n-=a,o-=a}}let Me=class go{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let o=0;o<t.length;o++)this.size+=t[o].nodeSize}nodesBetween(t,n,o,r=0,i){for(let s=0,l=0;l<n;s++){let a=this.content[s],c=l+a.nodeSize;if(c>t&&o(a,r+l,i||null,s)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,t-u),Math.min(a.content.size,n-u),o,r+u)}l=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,o,r){let i="",s=!0;return this.nodesBetween(t,n,(l,a)=>{let c=l.isText?l.text.slice(Math.max(t,a)-a,n-a):l.isLeaf?r?typeof r=="function"?r(l):r:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&o&&(s?s=!1:i+=o),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,o=t.firstChild,r=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(o)&&(r[r.length-1]=n.withText(n.text+o.text),i=1);i<t.content.length;i++)r.push(t.content[i]);return new go(r,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let o=[],r=0;if(n>t)for(let i=0,s=0;s<n;i++){let l=this.content[i],a=s+l.nodeSize;a>t&&((s<t||a>n)&&(l.isText?l=l.cut(Math.max(0,t-s),Math.min(l.text.length,n-s)):l=l.cut(Math.max(0,t-s-1),Math.min(l.content.size,n-s-1))),o.push(l),r+=l.nodeSize),s=a}return new go(o,r)}cutByIndex(t,n){return t==n?go.empty:t==0&&n==this.content.length?this:new go(this.content.slice(t,n))}replaceChild(t,n){let o=this.content[t];if(o==n)return this;let r=this.content.slice(),i=this.size+n.nodeSize-o.nodeSize;return r[t]=n,new go(r,i)}addToStart(t){return new go([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new go(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(t.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let n=this.content[t];if(!n)throw new RangeError("Index "+t+" out of range for "+this);return n}maybeChild(t){return this.content[t]||null}forEach(t){for(let n=0,o=0;n<this.content.length;n++){let r=this.content[n];t(r,o,n),o+=r.nodeSize}}findDiffStart(t,n=0){return ZA(this,t,n)}findDiffEnd(t,n=this.size,o=t.size){return JA(this,t,n,o)}findIndex(t,n=-1){if(t==0)return vm(0,t);if(t==this.size)return vm(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let o=0,r=0;;o++){let i=this.child(o),s=r+i.nodeSize;if(s>=t)return s==t||n>0?vm(o+1,s):vm(o,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return go.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new go(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return go.empty;let n,o=0;for(let r=0;r<t.length;r++){let i=t[r];o+=i.nodeSize,r&&i.isText&&t[r-1].sameMarkup(i)?(n||(n=t.slice(0,r)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new go(n||t,o)}static from(t){if(!t)return go.empty;if(t instanceof go)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new go([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};Me.empty=new Me([],0);const uv={index:0,offset:0};function vm(e,t){return uv.index=e,uv.offset=t,uv}function Pg(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let o=0;o<e.length;o++)if(!Pg(e[o],t[o]))return!1}else{for(let o in e)if(!(o in t)||!Pg(e[o],t[o]))return!1;for(let o in t)if(!(o in e))return!1}return!0}let zt=class xy{constructor(t,n){this.type=t,this.attrs=n}addToSet(t){let n,o=!1;for(let r=0;r<t.length;r++){let i=t[r];if(this.eq(i))return t;if(this.type.excludes(i.type))n||(n=t.slice(0,r));else{if(i.type.excludes(this.type))return t;!o&&i.type.rank>this.type.rank&&(n||(n=t.slice(0,r)),n.push(this),o=!0),n&&n.push(i)}}return n||(n=t.slice()),o||n.push(this),n}removeFromSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return t.slice(0,n).concat(t.slice(n+1));return t}isInSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return!0;return!1}eq(t){return this==t||this.type==t.type&&Pg(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let o=t.marks[n.type];if(!o)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=o.create(n.attrs);return o.checkAttrs(r.attrs),r}static sameSet(t,n){if(t==n)return!0;if(t.length!=n.length)return!1;for(let o=0;o<t.length;o++)if(!t[o].eq(n[o]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return xy.none;if(t instanceof xy)return[t];let n=t.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};zt.none=[];class Ng extends Error{}class Ve{constructor(t,n,o){this.content=t,this.openStart=n,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let o=QA(this.content,t+this.openStart,n);return o&&new Ve(o,this.openStart,this.openEnd)}removeBetween(t,n){return new Ve(XA(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Ve.empty;let o=n.openStart||0,r=n.openEnd||0;if(typeof o!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ve(Me.fromJSON(t,n.content),o,r)}static maxOpen(t,n=!0){let o=0,r=0;for(let i=t.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)o++;for(let i=t.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)r++;return new Ve(t,o,r)}}Ve.empty=new Ve(Me.empty,0,0);function XA(e,t,n){let{index:o,offset:r}=e.findIndex(t),i=e.maybeChild(o),{index:s,offset:l}=e.findIndex(n);if(r==t||i.isText){if(l!=n&&!e.child(s).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(o!=s)throw new RangeError("Removing non-flat range");return e.replaceChild(o,i.copy(XA(i.content,t-r-1,n-r-1)))}function QA(e,t,n,o){let{index:r,offset:i}=e.findIndex(t),s=e.maybeChild(r);if(i==t||s.isText)return o&&!o.canReplace(r,r,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=QA(s.content,t-i-1,n);return l&&e.replaceChild(r,s.copy(l))}function $pe(e,t,n){if(n.openStart>e.depth)throw new Ng("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Ng("Inconsistent open depths");return eI(e,t,n,0)}function eI(e,t,n,o){let r=e.index(o),i=e.node(o);if(r==t.index(o)&&o<e.depth-n.openStart){let s=eI(e,t,n,o+1);return i.copy(i.content.replaceChild(r,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==o&&t.depth==o){let s=e.parent,l=s.content;return Ba(s,l.cut(0,e.parentOffset).append(n.content).append(l.cut(t.parentOffset)))}else{let{start:s,end:l}=Epe(n,e);return Ba(i,nI(e,s,l,t,o))}else return Ba(i,Lg(e,t,o))}function tI(e,t){if(!t.type.compatibleContent(e.type))throw new Ng("Cannot join "+t.type.name+" onto "+e.type.name)}function Cy(e,t,n){let o=e.node(n);return tI(o,t.node(n)),o}function Da(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Kf(e,t,n,o){let r=(t||e).node(n),i=0,s=t?t.index(n):r.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(Da(e.nodeAfter,o),i++));for(let l=i;l<s;l++)Da(r.child(l),o);t&&t.depth==n&&t.textOffset&&Da(t.nodeBefore,o)}function Ba(e,t){return e.type.checkContent(t),e.copy(t)}function nI(e,t,n,o,r){let i=e.depth>r&&Cy(e,t,r+1),s=o.depth>r&&Cy(n,o,r+1),l=[];return Kf(null,e,r,l),i&&s&&t.index(r)==n.index(r)?(tI(i,s),Da(Ba(i,nI(e,t,n,o,r+1)),l)):(i&&Da(Ba(i,Lg(e,t,r+1)),l),Kf(t,n,r,l),s&&Da(Ba(s,Lg(n,o,r+1)),l)),Kf(o,null,r,l),new Me(l)}function Lg(e,t,n){let o=[];if(Kf(null,e,n,o),e.depth>n){let r=Cy(e,t,n+1);Da(Ba(r,Lg(e,t,n+1)),o)}return Kf(t,null,n,o),new Me(o)}function Epe(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let i=n-1;i>=0;i--)r=t.node(i).copy(Me.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}class Fp{constructor(t,n,o){this.pos=t,this.path=n,this.parentOffset=o,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let o=this.pos-this.path[this.path.length-1],r=t.child(n);return o?t.child(n).cut(o):r}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let o=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let i=0;i<t;i++)r+=o.child(i).nodeSize;return r}marks(){let t=this.parent,n=this.index();if(t.content.size==0)return zt.none;if(this.textOffset)return t.child(n).marks;let o=t.maybeChild(n-1),r=t.maybeChild(n);if(!o){let l=o;o=r,r=l}let i=o.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(t){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let o=n.marks,r=t.parent.maybeChild(t.index());for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!r||!o[i].isInSet(r.marks))&&(o=o[i--].removeFromSet(o));return o}sharedDepth(t){for(let n=this.depth;n>0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos<this.pos)return t.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);o>=0;o--)if(t.pos<=this.end(o)&&(!n||n(this.node(o))))return new oI(this,t,o);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let n=1;n<=this.depth;n++)t+=(t?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return t+":"+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let o=[],r=0,i=n;for(let s=t;;){let{index:l,offset:a}=s.content.findIndex(i),c=i-a;if(o.push(s,l,r+a),!c||(s=s.child(l),s.isText))break;i=c-1,r+=a+1}return new Fp(n,o,i)}static resolveCached(t,n){let o=W6.get(t);if(o)for(let i=0;i<o.elts.length;i++){let s=o.elts[i];if(s.pos==n)return s}else W6.set(t,o=new Tpe);let r=o.elts[o.i]=Fp.resolve(t,n);return o.i=(o.i+1)%Mpe,r}}class Tpe{constructor(){this.elts=[],this.i=0}}const Mpe=12,W6=new WeakMap;class oI{constructor(t,n,o){this.$from=t,this.$to=n,this.depth=o}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Ape=Object.create(null);let $l=class Sy{constructor(t,n,o,r=zt.none){this.type=t,this.attrs=n,this.marks=r,this.content=o||Me.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,n,o,r=0){this.content.nodesBetween(t,n,o,r,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,n,o,r){return this.content.textBetween(t,n,o,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,n,o){return this.type==t&&Pg(this.attrs,n||t.defaultAttrs||Ape)&&zt.sameSet(this.marks,o||zt.none)}copy(t=null){return t==this.content?this:new Sy(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new Sy(this.type,this.attrs,this.content,t)}cut(t,n=this.content.size){return t==0&&n==this.content.size?this:this.copy(this.content.cut(t,n))}slice(t,n=this.content.size,o=!1){if(t==n)return Ve.empty;let r=this.resolve(t),i=this.resolve(n),s=o?0:r.sharedDepth(n),l=r.start(s),c=r.node(s).content.cut(r.pos-l,i.pos-l);return new Ve(c,r.depth-s,i.depth-s)}replace(t,n,o){return $pe(this.resolve(t),this.resolve(n),o)}nodeAt(t){for(let n=this;;){let{index:o,offset:r}=n.content.findIndex(t);if(n=n.maybeChild(o),!n)return null;if(r==t||n.isText)return n;t-=r+1}}childAfter(t){let{index:n,offset:o}=this.content.findIndex(t);return{node:this.content.maybeChild(n),index:n,offset:o}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:n,offset:o}=this.content.findIndex(t);if(o<t)return{node:this.content.child(n),index:n,offset:o};let r=this.content.child(n-1);return{node:r,index:n-1,offset:o-r.nodeSize}}resolve(t){return Fp.resolveCached(this,t)}resolveNoCache(t){return Fp.resolve(this,t)}rangeHasMark(t,n,o){let r=!1;return n>t&&this.nodesBetween(t,n,i=>(o.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),rI(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,o=Me.empty,r=0,i=o.childCount){let s=this.contentMatchAt(t).matchFragment(o,r,i),l=s&&s.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=r;a<i;a++)if(!this.type.allowsMarks(o.child(a).marks))return!1;return!0}canReplaceWith(t,n,o,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(t).matchType(o),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=zt.none;for(let n=0;n<this.marks.length;n++){let o=this.marks[n];o.type.checkAttrs(o.attrs),t=o.addToSet(t)}if(!zt.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let o;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,o)}let r=Me.fromJSON(t,n.content),i=t.nodeType(n.type).create(n.attrs,r,o);return i.type.checkAttrs(i.attrs),i}};$l.prototype.text=void 0;class Rg extends $l{constructor(t,n,o,r){if(super(t,n,null,r),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):rI(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Rg(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Rg(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function rI(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class oc{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let o=new Ipe(t,n);if(o.next==null)return oc.empty;let r=iI(o);o.next&&o.err("Unexpected trailing text");let i=Dpe(Fpe(r));return Bpe(i,o),i}matchType(t){for(let n=0;n<this.next.length;n++)if(this.next[n].type==t)return this.next[n].next;return null}matchFragment(t,n=0,o=t.childCount){let r=this;for(let i=n;r&&i<o;i++)r=r.matchType(t.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:n}=this.next[t];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(t){for(let n=0;n<this.next.length;n++)for(let o=0;o<t.next.length;o++)if(this.next[n].type==t.next[o].type)return!0;return!1}fillBefore(t,n=!1,o=0){let r=[this];function i(s,l){let a=s.matchFragment(t,o);if(a&&(!n||a.validEnd))return Me.from(l.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:d}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let f=i(d,l.concat(u));if(f)return f}}return null}return i(this,[])}findWrapping(t){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==t)return this.wrapCache[o+1];let n=this.computeWrapping(t);return this.wrapCache.push(t,n),n}computeWrapping(t){let n=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let r=o.shift(),i=r.match;if(i.matchType(t)){let s=[];for(let l=r;l.type;l=l.via)s.push(l.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:l,next:a}=i.next[s];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!r.type||a.validEnd)&&(o.push({match:l.contentMatch,type:l,via:r}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(o){t.push(o);for(let r=0;r<o.next.length;r++)t.indexOf(o.next[r].next)==-1&&n(o.next[r].next)}return n(this),t.map((o,r)=>{let i=r+(o.validEnd?"*":" ")+" ";for(let s=0;s<o.next.length;s++)i+=(s?", ":"")+o.next[s].type.name+"->"+t.indexOf(o.next[s].next);return i}).join(`
77 `)}}oc.empty=new oc(!0);class Ipe{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function iI(e){let t=[];do t.push(Ope(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function Ope(e){let t=[];do t.push(Ppe(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function Ppe(e){let t=Rpe(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=Npe(e,t);else break;return t}function q6(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function Npe(e,t){let n=q6(e),o=n;return e.eat(",")&&(e.next!="}"?o=q6(e):o=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:t}}function Lpe(e,t){let n=e.nodeTypes,o=n[t];if(o)return[o];let r=[];for(let i in n){let s=n[i];s.groups.indexOf(t)>-1&&r.push(s)}return r.length==0&&e.err("No node type or group '"+t+"' found"),r}function Rpe(e){if(e.eat("(")){let t=iI(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=Lpe(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function Fpe(e){let t=[[]];return r(i(e,0),n()),t;function n(){return t.push([])-1}function o(s,l,a){let c={term:a,to:l};return t[s].push(c),c}function r(s,l){s.forEach(a=>a.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((a,c)=>a.concat(i(c,l)),[]);if(s.type=="seq")for(let a=0;;a++){let c=i(s.exprs[a],l);if(a==s.exprs.length-1)return c;r(c,l=n())}else if(s.type=="star"){let a=n();return o(l,a),r(i(s.expr,a),a),[o(a)]}else if(s.type=="plus"){let a=n();return r(i(s.expr,l),a),r(i(s.expr,a),a),[o(a)]}else{if(s.type=="opt")return[o(l)].concat(i(s.expr,l));if(s.type=="range"){let a=l;for(let c=0;c<s.min;c++){let u=n();r(i(s.expr,a),u),a=u}if(s.max==-1)r(i(s.expr,a),a);else for(let c=s.min;c<s.max;c++){let u=n();o(a,u),r(i(s.expr,a),u),a=u}return[o(a)]}else{if(s.type=="name")return[o(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function sI(e,t){return t-e}function K6(e,t){let n=[];return o(t),n.sort(sI);function o(r){let i=e[r];if(i.length==1&&!i[0].term)return o(i[0].to);n.push(r);for(let s=0;s<i.length;s++){let{term:l,to:a}=i[s];!l&&n.indexOf(a)==-1&&o(a)}}}function Dpe(e){let t=Object.create(null);return n(K6(e,0));function n(o){let r=[];o.forEach(s=>{e[s].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<r.length;u++)r[u][0]==l&&(c=r[u][1]);K6(e,a).forEach(u=>{c||r.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=t[o.join(",")]=new oc(o.indexOf(e.length-1)>-1);for(let s=0;s<r.length;s++){let l=r[s][1].sort(sI);i.next.push({type:r[s][0],next:t[l.join(",")]||n(l)})}return i}}function Bpe(e,t){for(let n=0,o=[e];n<o.length;n++){let r=o[n],i=!r.validEnd,s=[];for(let l=0;l<r.next.length;l++){let{type:a,next:c}=r.next[l];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),o.indexOf(c)==-1&&o.push(c)}i&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function lI(e){let t=Object.create(null);for(let n in e){let o=e[n];if(!o.hasDefault)return null;t[n]=o.default}return t}function aI(e,t){let n=Object.create(null);for(let o in e){let r=t&&t[o];if(r===void 0){let i=e[o];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+o)}n[o]=r}return n}function cI(e,t,n,o){for(let r in t)if(!(r in e))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in e){let i=e[r];i.validate&&i.validate(t[r])}}function uI(e,t){let n=Object.create(null);if(t)for(let o in t)n[o]=new Vpe(e,o,t[o]);return n}let G6=class dI{constructor(t,n,o){this.name=t,this.schema=n,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=uI(t,o.attrs),this.defaultAttrs=lI(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==oc.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:aI(this.attrs,t)}create(t=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new $l(this,this.computeAttrs(t),Me.from(n),zt.setFrom(o))}createChecked(t=null,n,o){return n=Me.from(n),this.checkContent(n),new $l(this,this.computeAttrs(t),n,zt.setFrom(o))}createAndFill(t=null,n,o){if(t=this.computeAttrs(t),n=Me.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let r=this.contentMatch.matchFragment(n),i=r&&r.fillBefore(Me.empty,!0);return i?new $l(this,t,n.append(i),zt.setFrom(o)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let o=0;o<t.childCount;o++)if(!this.allowsMarks(t.child(o).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){cI(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;n<t.length;n++)if(!this.allowsMarkType(t[n].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let n;for(let o=0;o<t.length;o++)this.allowsMarkType(t[o].type)?n&&n.push(t[o]):n||(n=t.slice(0,o));return n?n.length?n:zt.none:t}static compile(t,n){let o=Object.create(null);t.forEach((i,s)=>o[i]=new dI(i,n,s));let r=n.spec.topNode||"doc";if(!o[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function zpe(e,t,n){let o=n.split("|");return r=>{let i=r===null?"null":typeof r;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${t} on type ${e}, got ${i}`)}}class Vpe{constructor(t,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?zpe(t,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class q1{constructor(t,n,o,r){this.name=t,this.rank=n,this.schema=o,this.spec=r,this.attrs=uI(t,r.attrs),this.excluded=null;let i=lI(this.attrs);this.instance=i?new zt(this,i):null}create(t=null){return!t&&this.instance?this.instance:new zt(this,aI(this.attrs,t))}static compile(t,n){let o=Object.create(null),r=0;return t.forEach((i,s)=>o[i]=new q1(i,r++,n,s)),o}removeFromSet(t){for(var n=0;n<t.length;n++)t[n].type==this&&(t=t.slice(0,n).concat(t.slice(n+1)),n--);return t}isInSet(t){for(let n=0;n<t.length;n++)if(t[n].type==this)return t[n]}checkAttrs(t){cI(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class jpe{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in t)n[r]=t[r];n.nodes=Kn.from(t.nodes),n.marks=Kn.from(t.marks||{}),this.nodes=G6.compile(this.spec.nodes,this),this.marks=q1.compile(this.spec.marks,this);let o=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=o[s]||(o[s]=oc.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=l=="_"?null:l?Y6(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Y6(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,o,r){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof G6){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,o,r)}text(t,n){let o=this.nodes.text;return new Rg(o,o.defaultAttrs,t,zt.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return $l.fromJSON(this,t)}markFromJSON(t){return zt.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function Y6(e,t){let n=[];for(let o=0;o<t.length;o++){let r=t[o],i=e.marks[r],s=i;if(i)n.push(i);else for(let l in e.marks){let a=e.marks[l];(r=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(r)>-1)&&n.push(s=a)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[o]+"'")}return n}function Hpe(e){return e.tag!=null}function Upe(e){return e.style!=null}class rc{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(Hpe(r))this.tags.push(r);else if(Upe(r)){let i=/[^=]*/.exec(r.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=t.nodes[r.node];return i.contentMatch.matchType(i)})}parse(t,n={}){let o=new J6(this,n,!1);return o.addAll(t,zt.none,n.from,n.to),o.finish()}parseSlice(t,n={}){let o=new J6(this,n,!0);return o.addAll(t,zt.none,n.from,n.to),Ve.maxOpen(o.finish())}matchTag(t,n,o){for(let r=o?this.tags.indexOf(o)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(Kpe(t,i.tag)&&(i.namespace===void 0||t.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(t);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(t,n,o,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],l=s.style;if(!(l.indexOf(t)!=0||s.context&&!o.matchesContext(s.context)||l.length>t.length&&(l.charCodeAt(t.length)!=61||l.slice(t.length+1)!=n))){if(s.getAttrs){let a=s.getAttrs(n);if(a===!1)continue;s.attrs=a||void 0}return s}}}static schemaRules(t){let n=[];function o(r){let i=r.priority==null?50:r.priority,s=0;for(;s<n.length;s++){let l=n[s];if((l.priority==null?50:l.priority)<i)break}n.splice(s,0,r)}for(let r in t.marks){let i=t.marks[r].spec.parseDOM;i&&i.forEach(s=>{o(s=X6(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in t.nodes){let i=t.nodes[r].spec.parseDOM;i&&i.forEach(s=>{o(s=X6(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new rc(t,rc.schemaRules(t)))}}const fI={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Wpe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},pI={ol:!0,ul:!0},Fg=1,Dg=2,Gf=4;function Z6(e,t,n){return t!=null?(t?Fg:0)|(t==="full"?Dg:0):e&&e.whitespace=="pre"?Fg|Dg:n&~Gf}class bm{constructor(t,n,o,r,i,s){this.type=t,this.attrs=n,this.marks=o,this.solid=r,this.options=s,this.content=[],this.activeMarks=zt.none,this.match=i||(s&Gf?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Me.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let o=this.type.contentMatch,r;return(r=o.findWrapping(t.type))?(this.match=o,r):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Fg)){let o=this.content[this.content.length-1],r;if(o&&o.isText&&(r=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let n=Me.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(Me.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!fI.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class J6{constructor(t,n,o){this.parser=t,this.options=n,this.isOpen=o,this.open=0;let r=n.topNode,i,s=Z6(null,n.preserveWhitespace,0)|(o?Gf:0);r?i=new bm(r.type,r.attrs,zt.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new bm(null,null,zt.none,!0,null,s):i=new bm(t.schema.topNodeType,null,zt.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let o=t.nodeValue,r=this.top;if(r.options&Dg||r.inlineContext(t)||/[^ \t\r\n\u000c]/.test(o)){if(r.options&Fg)r.options&Dg?o=o.replace(/\r\n?/g,`
78 `):o=o.replace(/\r?\n|\r/g," ");else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let i=r.content[r.content.length-1],s=t.previousSibling;(!i||s&&s.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(o=o.slice(1))}o&&this.insertNode(this.parser.schema.text(o),n),this.findInText(t)}else this.findInside(t)}addElement(t,n,o){let r=t.nodeName.toLowerCase(),i;pI.hasOwnProperty(r)&&this.parser.normalizeLists&&qpe(t);let s=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(i=this.parser.matchTag(t,this,o));if(s?s.ignore:Wpe.hasOwnProperty(r))this.findInside(t),this.ignoreFallback(t,n);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(t=s.skip);let l,a=this.top,c=this.needsBlock;if(fI.hasOwnProperty(r))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),l=!0,a.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);return}let u=s&&s.skip?n:this.readStyles(t,n);u&&this.addAll(t,u),l&&this.sync(a),this.needsBlock=c}else{let l=this.readStyles(t,n);l&&this.addElementByRule(t,s,l,s.consuming===!1?i:void 0)}}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(`
79 `),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(t,n){let o=t.style;if(o&&o.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let i=this.parser.matchedStyles[r],s=o.getPropertyValue(i);if(s)for(let l=void 0;;){let a=this.parser.matchStyle(i,s,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?n=n.filter(c=>!a.clearMark(c)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(t,n,o,r){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),o)||this.leafFallback(t,o);else{let a=this.enter(s,n.attrs||null,o,n.preserveWhitespace);a&&(i=!0,o=a)}else{let a=this.parser.schema.marks[n.mark];o=o.concat(a.create(n.attrs))}let l=this.top;if(s&&s.isLeaf)this.findInside(t);else if(r)this.addElement(t,o,r);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(a=>this.insertNode(a,o));else{let a=t;typeof n.contentElement=="string"?a=t.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(t):n.contentElement&&(a=n.contentElement),this.findAround(t,a,!0),this.addAll(a,o)}i&&this.sync(l)&&this.open--}addAll(t,n,o,r){let i=o||0;for(let s=o?t.childNodes[o]:t.firstChild,l=r==null?null:t.childNodes[r];s!=l;s=s.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(s,n);this.findAtPoint(t,i)}findPlace(t,n){let o,r;for(let i=this.open;i>=0;i--){let s=this.nodes[i],l=s.findWrapping(t);if(l&&(!o||o.length>l.length)&&(o=l,r=s,!l.length)||s.solid)break}if(!o)return null;this.sync(r);for(let i=0;i<o.length;i++)n=this.enterInner(o[i],null,n,!1);return n}insertNode(t,n){if(t.isInline&&this.needsBlock&&!this.top.type){let r=this.textblockFromContext();r&&(n=this.enterInner(r,null,n))}let o=this.findPlace(t,n);if(o){this.closeExtra();let r=this.top;r.match&&(r.match=r.match.matchType(t.type));let i=zt.none;for(let s of o.concat(t.marks))(r.type?r.type.allowsMarkType(s.type):Q6(s.type,t.type))&&(i=s.addToSet(i));return r.content.push(t.mark(i)),!0}return!1}enter(t,n,o,r){let i=this.findPlace(t.create(n),o);return i&&(i=this.enterInner(t,n,o,!0,r)),i}enterInner(t,n,o,r=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(t);let l=Z6(t,i,s.options);s.options&Gf&&s.content.length==0&&(l|=Gf);let a=zt.none;return o=o.filter(c=>(s.type?s.type.allowsMarkType(c.type):Q6(c.type,t))?(a=c.addToSet(a),!1):!0),this.nodes.push(new bm(t,n,a,r,null,l)),this.open++,o}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let n=this.open;n>=0;n--)if(this.nodes[n]==t)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let o=this.nodes[n].content;for(let r=o.length-1;r>=0;r--)t+=o[r].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==t&&this.find[o].offset==n&&(this.find[o].pos=this.currentPos)}findInside(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(t,n,o){if(t!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&t.nodeType==1&&t.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(o?2:4)&&(this.find[r].pos=this.currentPos)}findInText(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&(this.find[n].pos=this.currentPos-(t.nodeValue.length-this.find[n].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),o=this.options.context,r=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),i=-(o?o.depth+1:0)+(r?0:1),s=(l,a)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;a>=i;a--)if(s(l-1,a))return!0;return!1}else{let u=a>0||a==0&&r?this.nodes[a].type:o&&a>=i?o.node(a-i).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;a--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let o=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let n in this.parser.schema.nodes){let o=this.parser.schema.nodes[n];if(o.isTextblock&&o.defaultAttrs)return o}}}function qpe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let o=t.nodeType==1?t.nodeName.toLowerCase():null;o&&pI.hasOwnProperty(o)&&n?(n.appendChild(t),t=n):o=="li"?n=t:o&&(n=null)}}function Kpe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function X6(e){let t={};for(let n in e)t[n]=e[n];return t}function Q6(e,t){let n=t.schema.nodes;for(let o in n){let r=n[o];if(!r.allowsMarkType(e))continue;let i=[],s=l=>{i.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:u}=l.edge(a);if(c==t||i.indexOf(u)<0&&s(u))return!0}};if(s(r.contentMatch))return!0}}class Wl{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},o){o||(o=dv(n).createDocumentFragment());let r=o,i=[];return t.forEach(s=>{if(i.length||s.marks.length){let l=0,a=0;for(;l<i.length&&a<s.marks.length;){let c=s.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(i[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<i.length;)r=i.pop()[1];for(;a<s.marks.length;){let c=s.marks[a++],u=this.serializeMark(c,s.isInline,n);u&&(i.push([c,r]),r.appendChild(u.dom),r=u.contentDOM||u.dom)}}r.appendChild(this.serializeNodeInner(s,n))}),o}serializeNodeInner(t,n){let{dom:o,contentDOM:r}=a_(dv(n),this.nodes[t.type.name](t),null,t.attrs);if(r){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,r)}return o}serializeNode(t,n={}){let o=this.serializeNodeInner(t,n);for(let r=t.marks.length-1;r>=0;r--){let i=this.serializeMark(t.marks[r],t.isInline,n);i&&((i.contentDOM||i.dom).appendChild(o),o=i.dom)}return o}serializeMark(t,n,o={}){let r=this.marks[t.type.name];return r&&a_(dv(o),r(t,n),null,t.attrs)}static renderSpec(t,n,o=null,r){return a_(t,n,o,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Wl(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=e8(t.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(t){return e8(t.marks)}}function e8(e){let t={};for(let n in e){let o=e[n].spec.toDOM;o&&(t[n]=o)}return t}function dv(e){return e.document||window.document}const t8=new WeakMap;function Gpe(e){let t=t8.get(e);return t===void 0&&t8.set(e,t=Ype(e)),t}function Ype(e){let t=null;function n(o){if(o&&typeof o=="object")if(Array.isArray(o))if(typeof o[0]=="string")t||(t=[]),t.push(o);else for(let r=0;r<o.length;r++)n(o[r]);else for(let r in o)n(o[r])}return n(e),t}function a_(e,t,n,o){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let r=t[0],i;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(o&&(i=Gpe(o))&&i.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=r.indexOf(" ");s>0&&(n=r.slice(0,s),r=r.slice(s+1));let l,a=n?e.createElementNS(n,r):e.createElement(r),c=t[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):a.setAttribute(d,c[d])}}for(let d=u;d<t.length;d++){let f=t[d];if(f===0){if(d<t.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:p,contentDOM:h}=a_(e,f,n,o);if(a.appendChild(p),h){if(l)throw new RangeError("Multiple content holes");l=h}}}return{dom:a,contentDOM:l}}const Zpe={};function U3(e,t){const n=t||Zpe,o=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return hI(e,o,r)}function hI(e,t,n){if(Jpe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return n8(e.children,t,n)}return Array.isArray(e)?n8(e,t,n):""}function n8(e,t,n){const o=[];let r=-1;for(;++r<e.length;)o[r]=hI(e[r],t,n);return o.join("")}function Jpe(e){return!!(e&&typeof e=="object")}const o8=document.createElement("i");function W3(e){const t="&"+e+";";o8.innerHTML=t;const n=o8.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ar(e,t,n,o){const r=e.length;let i=0,s;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,o.length<1e4)s=Array.from(o),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<o.length;)s=o.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function yr(e,t){return e.length>0?(Ar(e,e.length,0,t),e):t}const r8={}.hasOwnProperty;function mI(e){const t={};let n=-1;for(;++n<e.length;)Xpe(t,e[n]);return t}function Xpe(e,t){let n;for(n in t){const r=(r8.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){r8.call(r,s)||(r[s]=[]);const l=i[s];Qpe(r[s],Array.isArray(l)?l:l?[l]:[])}}}function Qpe(e,t){let n=-1;const o=[];for(;++n<t.length;)(t[n].add==="after"?e:o).push(t[n]);Ar(e,0,0,o)}function _I(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Qr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yo=ql(/[A-Za-z]/),Ro=ql(/[\dA-Za-z]/),ehe=ql(/[#-'*+\--9=?A-Z^-~]/);function Bg(e){return e!==null&&(e<32||e===127)}const $y=ql(/\d/),the=ql(/[\dA-Fa-f]/),nhe=ql(/[!-/:-@[-`{-~]/);function it(e){return e!==null&&e<-2}function Yt(e){return e!==null&&(e<0||e===32)}function Tt(e){return e===-2||e===-1||e===32}const K1=ql(/\p{P}|\p{S}/u),ic=ql(/\s/);function ql(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Pt(e,t,n,o){const r=o?o-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(a){return Tt(a)?(e.enter(n),l(a)):t(a)}function l(a){return Tt(a)&&i++<r?(e.consume(a),l):(e.exit(n),t(a))}}const ohe={tokenize:rhe};function rhe(e){const t=e.attempt(this.parser.constructs.contentInitial,o,r);let n;return t;function o(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Pt(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),i(l)}function i(l){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return it(l)?(e.consume(l),e.exit("chunkText"),i):(e.consume(l),s)}}const ihe={tokenize:she},i8={tokenize:lhe};function she(e){const t=this,n=[];let o=0,r,i,s;return l;function l(w){if(o<n.length){const S=n[o];return t.containerState=S[1],e.attempt(S[0].continuation,a,c)(w)}return c(w)}function a(w){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&E();const S=t.events.length;let T=S,$;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){$=t.events[T][1].end;break}v(o);let A=S;for(;A<t.events.length;)t.events[A][1].end=Object.assign({},$),A++;return Ar(t.events,T+1,0,t.events.slice(S)),t.events.length=A,c(w)}return l(w)}function c(w){if(o===n.length){if(!r)return f(w);if(r.currentConstruct&&r.currentConstruct.concrete)return h(w);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(i8,u,d)(w)}function u(w){return r&&E(),v(o),f(w)}function d(w){return t.parser.lazy[t.now().line]=o!==n.length,s=t.now().offset,h(w)}function f(w){return t.containerState={},e.attempt(i8,p,h)(w)}function p(w){return o++,n.push([t.currentConstruct,t.containerState]),f(w)}function h(w){if(w===null){r&&E(),v(0),e.consume(w);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),m(w)}function m(w){if(w===null){b(e.exit("chunkFlow"),!0),v(0),e.consume(w);return}return it(w)?(e.consume(w),b(e.exit("chunkFlow")),o=0,t.interrupt=void 0,l):(e.consume(w),m)}function b(w,S){const T=t.sliceStream(w);if(S&&T.push(null),w.previous=i,i&&(i.next=w),i=w,r.defineSkip(w.start),r.write(T),t.parser.lazy[w.start.line]){let $=r.events.length;for(;$--;)if(r.events[$][1].start.offset<s&&(!r.events[$][1].end||r.events[$][1].end.offset>s))return;const A=t.events.length;let P=A,N,I;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(N){I=t.events[P][1].end;break}N=!0}for(v(o),$=A;$<t.events.length;)t.events[$][1].end=Object.assign({},I),$++;Ar(t.events,P+1,0,t.events.slice(A)),t.events.length=$}}function v(w){let S=n.length;for(;S-- >w;){const T=n[S];t.containerState=T[1],T[0].exit.call(t,e)}n.length=w}function E(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}function lhe(e,t,n){return Pt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function zg(e){if(e===null||Yt(e)||ic(e))return 1;if(K1(e))return 2}function G1(e,t,n){const o=[];let r=-1;for(;++r<e.length;){const i=e[r].resolveAll;i&&!o.includes(i)&&(t=i(t,n),o.push(i))}return t}const Ey={name:"attention",tokenize:che,resolveAll:ahe};function ahe(e,t){let n=-1,o,r,i,s,l,a,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(o=n;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[o][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[o][1].end.offset-e[o][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[o][1].end),f=Object.assign({},e[n][1].start);s8(d,-a),s8(f,a),s={type:a>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[o][1].end)},l={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[o][1].end),end:Object.assign({},e[n][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},l.end)},e[o][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},l.end),c=[],e[o][1].end.offset-e[o][1].start.offset&&(c=yr(c,[["enter",e[o][1],t],["exit",e[o][1],t]])),c=yr(c,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=yr(c,G1(t.parser.constructs.insideSpan.null,e.slice(o+1,n),t)),c=yr(c,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=yr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Ar(e,o-1,n-o+3,c),n=o+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function che(e,t){const n=this.parser.constructs.attentionMarkers.null,o=this.previous,r=zg(o);let i;return s;function s(a){return i=a,e.enter("attentionSequence"),l(a)}function l(a){if(a===i)return e.consume(a),l;const c=e.exit("attentionSequence"),u=zg(a),d=!u||u===2&&r||n.includes(a),f=!r||r===2&&u||n.includes(o);return c._open=!!(i===42?d:d&&(r||!f)),c._close=!!(i===42?f:f&&(u||!d)),t(a)}}function s8(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const uhe={name:"autolink",tokenize:dhe};function dhe(e,t,n){let o=0;return r;function r(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return yo(p)?(e.consume(p),s):p===64?n(p):c(p)}function s(p){return p===43||p===45||p===46||Ro(p)?(o=1,l(p)):c(p)}function l(p){return p===58?(e.consume(p),o=0,a):(p===43||p===45||p===46||Ro(p))&&o++<32?(e.consume(p),l):(o=0,c(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Bg(p)?n(p):(e.consume(p),a)}function c(p){return p===64?(e.consume(p),u):ehe(p)?(e.consume(p),c):n(p)}function u(p){return Ro(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),o=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Ro(p))&&o++<63){const h=p===45?f:d;return e.consume(p),h}return n(p)}}const kh={tokenize:fhe,partial:!0};function fhe(e,t,n){return o;function o(i){return Tt(i)?Pt(e,r,"linePrefix")(i):r(i)}function r(i){return i===null||it(i)?t(i):n(i)}}const gI={name:"blockQuote",tokenize:phe,continuation:{tokenize:hhe},exit:mhe};function phe(e,t,n){const o=this;return r;function r(s){if(s===62){const l=o.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return Tt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function hhe(e,t,n){const o=this;return r;function r(s){return Tt(s)?Pt(e,i,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(gI,t,n)(s)}}function mhe(e){e.exit("blockQuote")}const vI={name:"characterEscape",tokenize:_he};function _he(e,t,n){return o;function o(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),r}function r(i){return nhe(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const bI={name:"characterReference",tokenize:ghe};function ghe(e,t,n){const o=this;let r=0,i,s;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),a}function a(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=Ro,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=the,u):(e.enter("characterReferenceValue"),i=7,s=$y,u(d))}function u(d){if(d===59&&r){const f=e.exit("characterReferenceValue");return s===Ro&&!W3(o.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&r++<i?(e.consume(d),u):n(d)}}const l8={tokenize:bhe,partial:!0},a8={name:"codeFenced",tokenize:vhe,concrete:!0};function vhe(e,t,n){const o=this,r={tokenize:T,partial:!0};let i=0,s=0,l;return a;function a($){return c($)}function c($){const A=o.events[o.events.length-1];return i=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=$,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u($)}function u($){return $===l?(s++,e.consume($),u):s<3?n($):(e.exit("codeFencedFenceSequence"),Tt($)?Pt(e,d,"whitespace")($):d($))}function d($){return $===null||it($)?(e.exit("codeFencedFence"),o.interrupt?t($):e.check(l8,m,S)($)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f($))}function f($){return $===null||it($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d($)):Tt($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Pt(e,p,"whitespace")($)):$===96&&$===l?n($):(e.consume($),f)}function p($){return $===null||it($)?d($):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h($))}function h($){return $===null||it($)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d($)):$===96&&$===l?n($):(e.consume($),h)}function m($){return e.attempt(r,S,b)($)}function b($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),v}function v($){return i>0&&Tt($)?Pt(e,E,"linePrefix",i+1)($):E($)}function E($){return $===null||it($)?e.check(l8,m,S)($):(e.enter("codeFlowValue"),w($))}function w($){return $===null||it($)?(e.exit("codeFlowValue"),E($)):(e.consume($),w)}function S($){return e.exit("codeFenced"),t($)}function T($,A,P){let N=0;return I;function I(oe){return $.enter("lineEnding"),$.consume(oe),$.exit("lineEnding"),B}function B(oe){return $.enter("codeFencedFence"),Tt(oe)?Pt($,V,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(oe):V(oe)}function V(oe){return oe===l?($.enter("codeFencedFenceSequence"),G(oe)):P(oe)}function G(oe){return oe===l?(N++,$.consume(oe),G):N>=s?($.exit("codeFencedFenceSequence"),Tt(oe)?Pt($,ne,"whitespace")(oe):ne(oe)):P(oe)}function ne(oe){return oe===null||it(oe)?($.exit("codeFencedFence"),A(oe)):P(oe)}}}function bhe(e,t,n){const o=this;return r;function r(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return o.parser.lazy[o.now().line]?n(s):t(s)}}const fv={name:"codeIndented",tokenize:whe},yhe={tokenize:khe,partial:!0};function whe(e,t,n){const o=this;return r;function r(c){return e.enter("codeIndented"),Pt(e,i,"linePrefix",4+1)(c)}function i(c){const u=o.events[o.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?a(c):it(c)?e.attempt(yhe,s,a)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||it(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),l)}function a(c){return e.exit("codeIndented"),t(c)}}function khe(e,t,n){const o=this;return r;function r(s){return o.parser.lazy[o.now().line]?n(s):it(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):Pt(e,i,"linePrefix",4+1)(s)}function i(s){const l=o.events[o.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):it(s)?r(s):n(s)}}const xhe={name:"codeText",tokenize:$he,resolve:Che,previous:She};function Che(e){let t=e.length-4,n=3,o,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=n;++o<t;)if(e[o][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(o=n-1,t++;++o<=t;)r===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(r=o):(o===t||e[o][1].type==="lineEnding")&&(e[r][1].type="codeTextData",o!==r+2&&(e[r][1].end=e[o-1][1].end,e.splice(r+2,o-r-2),t-=o-r-2,o=r+2),r=void 0);return e}function She(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $he(e,t,n){let o=0,r,i;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),l(d)}function l(d){return d===96?(e.consume(d),o++,l):(e.exit("codeTextSequence"),a(d))}function a(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),a):d===96?(i=e.enter("codeTextSequence"),r=0,u(d)):it(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||it(d)?(e.exit("codeTextData"),a(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),r++,u):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}class Ehe{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const o=n??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,n,o){const r=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return o&&Hd(this.left,o),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Hd(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Hd(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Hd(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Hd(this.left,n.reverse())}}}function Hd(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function yI(e){const t={};let n=-1,o,r,i,s,l,a,c;const u=new Ehe(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(o=u.get(n),n&&o[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(a=o[1]._tokenizer.events,i=0,i<a.length&&a[i][1].type==="lineEndingBlank"&&(i+=2),i<a.length&&a[i][1].type==="content"))for(;++i<a.length&&a[i][1].type!=="content";)a[i][1].type==="chunkText"&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,The(u,n)),n=t[n],c=!0);else if(o[1]._container){for(i=n,r=void 0;i--&&(s=u.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(r&&(u.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=i);r&&(o[1].end=Object.assign({},u.get(r)[1].start),l=u.slice(r,n),l.unshift(o),u.splice(r,n-r+1,l))}}return Ar(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function The(e,t){const n=e.get(t)[1],o=e.get(t)[2];let r=t-1;const i=[],s=n._tokenizer||o.parser[n.contentType](n.start),l=s.events,a=[],c={};let u,d,f=-1,p=n,h=0,m=0;const b=[m];for(;p;){for(;e.get(++r)[1]!==p;);i.push(r),p._tokenizer||(u=o.sliceStream(p),p.next||u.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<l.length;)l[f][0]==="exit"&&l[f-1][0]==="enter"&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(m=f+1,b.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),f=b.length;f--;){const v=l.slice(b[f],b[f+1]),E=i.pop();a.push([E,E+v.length-1]),e.splice(E,2,v)}for(a.reverse(),f=-1;++f<a.length;)c[h+a[f][0]]=h+a[f][1],h+=a[f][1]-a[f][0]-1;return c}const Mhe={tokenize:Ohe,resolve:Ihe},Ahe={tokenize:Phe,partial:!0};function Ihe(e){return yI(e),e}function Ohe(e,t){let n;return o;function o(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?i(l):it(l)?e.check(Ahe,s,i)(l):(e.consume(l),r)}function i(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function s(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function Phe(e,t,n){const o=this;return r;function r(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Pt(e,i,"linePrefix")}function i(s){if(s===null||it(s))return n(s);const l=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):e.interrupt(o.parser.constructs.flow,n,t)(s)}}function wI(e,t,n,o,r,i,s,l,a){const c=a||Number.POSITIVE_INFINITY;let u=0;return d;function d(v){return v===60?(e.enter(o),e.enter(r),e.enter(i),e.consume(v),e.exit(i),f):v===null||v===32||v===41||Bg(v)?n(v):(e.enter(o),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(v))}function f(v){return v===62?(e.enter(i),e.consume(v),e.exit(i),e.exit(r),e.exit(o),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(l),f(v)):v===null||v===60||it(v)?n(v):(e.consume(v),v===92?h:p)}function h(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function m(v){return!u&&(v===null||v===41||Yt(v))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(o),t(v)):u<c&&v===40?(e.consume(v),u++,m):v===41?(e.consume(v),u--,m):v===null||v===32||v===40||Bg(v)?n(v):(e.consume(v),v===92?b:m)}function b(v){return v===40||v===41||v===92?(e.consume(v),m):m(v)}}function kI(e,t,n,o,r,i){const s=this;let l=0,a;return c;function c(p){return e.enter(o),e.enter(r),e.consume(p),e.exit(r),e.enter(i),u}function u(p){return l>999||p===null||p===91||p===93&&!a||p===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(i),e.enter(r),e.consume(p),e.exit(r),e.exit(o),t):it(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||it(p)||l++>999?(e.exit("chunkString"),u(p)):(e.consume(p),a||(a=!Tt(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),l++,d):d(p)}}function xI(e,t,n,o,r,i){let s;return l;function l(f){return f===34||f===39||f===40?(e.enter(o),e.enter(r),e.consume(f),e.exit(r),s=f===40?41:f,a):n(f)}function a(f){return f===s?(e.enter(r),e.consume(f),e.exit(r),e.exit(o),t):(e.enter(i),c(f))}function c(f){return f===s?(e.exit(i),a(s)):f===null?n(f):it(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Pt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===s||f===null||it(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:u)}function d(f){return f===s||f===92?(e.consume(f),u):u(f)}}function Yf(e,t){let n;return o;function o(r){return it(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,o):Tt(r)?Pt(e,o,n?"linePrefix":"lineSuffix")(r):t(r)}}const Nhe={name:"definition",tokenize:Rhe},Lhe={tokenize:Fhe,partial:!0};function Rhe(e,t,n){const o=this;let r;return i;function i(p){return e.enter("definition"),s(p)}function s(p){return kI.call(o,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return r=Qr(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return Yt(p)?Yf(e,c)(p):c(p)}function c(p){return wI(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(Lhe,d,d)(p)}function d(p){return Tt(p)?Pt(e,f,"whitespace")(p):f(p)}function f(p){return p===null||it(p)?(e.exit("definition"),o.parser.defined.push(r),t(p)):n(p)}}function Fhe(e,t,n){return o;function o(l){return Yt(l)?Yf(e,r)(l):n(l)}function r(l){return xI(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function i(l){return Tt(l)?Pt(e,s,"whitespace")(l):s(l)}function s(l){return l===null||it(l)?t(l):n(l)}}const Dhe={name:"hardBreakEscape",tokenize:Bhe};function Bhe(e,t,n){return o;function o(i){return e.enter("hardBreakEscape"),e.consume(i),r}function r(i){return it(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const zhe={name:"headingAtx",tokenize:jhe,resolve:Vhe};function Vhe(e,t){let n=e.length-2,o=3,r,i;return e[o][1].type==="whitespace"&&(o+=2),n-2>o&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(o===n-1||n-4>o&&e[n-2][1].type==="whitespace")&&(n-=o+1===n?2:4),n>o&&(r={type:"atxHeadingText",start:e[o][1].start,end:e[n][1].end},i={type:"chunkText",start:e[o][1].start,end:e[n][1].end,contentType:"text"},Ar(e,o,n-o+1,[["enter",r,t],["enter",i,t],["exit",i,t],["exit",r,t]])),e}function jhe(e,t,n){let o=0;return r;function r(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&o++<6?(e.consume(u),s):u===null||Yt(u)?(e.exit("atxHeadingSequence"),l(u)):n(u)}function l(u){return u===35?(e.enter("atxHeadingSequence"),a(u)):u===null||it(u)?(e.exit("atxHeading"),t(u)):Tt(u)?Pt(e,l,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function a(u){return u===35?(e.consume(u),a):(e.exit("atxHeadingSequence"),l(u))}function c(u){return u===null||u===35||Yt(u)?(e.exit("atxHeadingText"),l(u)):(e.consume(u),c)}}const Hhe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],c8=["pre","script","style","textarea"],Uhe={name:"htmlFlow",tokenize:Ghe,resolveTo:Khe,concrete:!0},Whe={tokenize:Zhe,partial:!0},qhe={tokenize:Yhe,partial:!0};function Khe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ghe(e,t,n){const o=this;let r,i,s,l,a;return c;function c(U){return u(U)}function u(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),d}function d(U){return U===33?(e.consume(U),f):U===47?(e.consume(U),i=!0,m):U===63?(e.consume(U),r=3,o.interrupt?t:F):yo(U)?(e.consume(U),s=String.fromCharCode(U),b):n(U)}function f(U){return U===45?(e.consume(U),r=2,p):U===91?(e.consume(U),r=5,l=0,h):yo(U)?(e.consume(U),r=4,o.interrupt?t:F):n(U)}function p(U){return U===45?(e.consume(U),o.interrupt?t:F):n(U)}function h(U){const Ee="CDATA[";return U===Ee.charCodeAt(l++)?(e.consume(U),l===Ee.length?o.interrupt?t:V:h):n(U)}function m(U){return yo(U)?(e.consume(U),s=String.fromCharCode(U),b):n(U)}function b(U){if(U===null||U===47||U===62||Yt(U)){const Ee=U===47,Ze=s.toLowerCase();return!Ee&&!i&&c8.includes(Ze)?(r=1,o.interrupt?t(U):V(U)):Hhe.includes(s.toLowerCase())?(r=6,Ee?(e.consume(U),v):o.interrupt?t(U):V(U)):(r=7,o.interrupt&&!o.parser.lazy[o.now().line]?n(U):i?E(U):w(U))}return U===45||Ro(U)?(e.consume(U),s+=String.fromCharCode(U),b):n(U)}function v(U){return U===62?(e.consume(U),o.interrupt?t:V):n(U)}function E(U){return Tt(U)?(e.consume(U),E):I(U)}function w(U){return U===47?(e.consume(U),I):U===58||U===95||yo(U)?(e.consume(U),S):Tt(U)?(e.consume(U),w):I(U)}function S(U){return U===45||U===46||U===58||U===95||Ro(U)?(e.consume(U),S):T(U)}function T(U){return U===61?(e.consume(U),$):Tt(U)?(e.consume(U),T):w(U)}function $(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),a=U,A):Tt(U)?(e.consume(U),$):P(U)}function A(U){return U===a?(e.consume(U),a=null,N):U===null||it(U)?n(U):(e.consume(U),A)}function P(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||Yt(U)?T(U):(e.consume(U),P)}function N(U){return U===47||U===62||Tt(U)?w(U):n(U)}function I(U){return U===62?(e.consume(U),B):n(U)}function B(U){return U===null||it(U)?V(U):Tt(U)?(e.consume(U),B):n(U)}function V(U){return U===45&&r===2?(e.consume(U),Z):U===60&&r===1?(e.consume(U),q):U===62&&r===4?(e.consume(U),be):U===63&&r===3?(e.consume(U),F):U===93&&r===5?(e.consume(U),ee):it(U)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Whe,xe,G)(U)):U===null||it(U)?(e.exit("htmlFlowData"),G(U)):(e.consume(U),V)}function G(U){return e.check(qhe,ne,xe)(U)}function ne(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),oe}function oe(U){return U===null||it(U)?G(U):(e.enter("htmlFlowData"),V(U))}function Z(U){return U===45?(e.consume(U),F):V(U)}function q(U){return U===47?(e.consume(U),s="",X):V(U)}function X(U){if(U===62){const Ee=s.toLowerCase();return c8.includes(Ee)?(e.consume(U),be):V(U)}return yo(U)&&s.length<8?(e.consume(U),s+=String.fromCharCode(U),X):V(U)}function ee(U){return U===93?(e.consume(U),F):V(U)}function F(U){return U===62?(e.consume(U),be):U===45&&r===2?(e.consume(U),F):V(U)}function be(U){return U===null||it(U)?(e.exit("htmlFlowData"),xe(U)):(e.consume(U),be)}function xe(U){return e.exit("htmlFlow"),t(U)}}function Yhe(e,t,n){const o=this;return r;function r(s){return it(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return o.parser.lazy[o.now().line]?n(s):t(s)}}function Zhe(e,t,n){return o;function o(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(kh,t,n)}}const Jhe={name:"htmlText",tokenize:Xhe};function Xhe(e,t,n){const o=this;let r,i,s;return l;function l(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),a}function a(F){return F===33?(e.consume(F),c):F===47?(e.consume(F),T):F===63?(e.consume(F),w):yo(F)?(e.consume(F),P):n(F)}function c(F){return F===45?(e.consume(F),u):F===91?(e.consume(F),i=0,h):yo(F)?(e.consume(F),E):n(F)}function u(F){return F===45?(e.consume(F),p):n(F)}function d(F){return F===null?n(F):F===45?(e.consume(F),f):it(F)?(s=d,q(F)):(e.consume(F),d)}function f(F){return F===45?(e.consume(F),p):d(F)}function p(F){return F===62?Z(F):F===45?f(F):d(F)}function h(F){const be="CDATA[";return F===be.charCodeAt(i++)?(e.consume(F),i===be.length?m:h):n(F)}function m(F){return F===null?n(F):F===93?(e.consume(F),b):it(F)?(s=m,q(F)):(e.consume(F),m)}function b(F){return F===93?(e.consume(F),v):m(F)}function v(F){return F===62?Z(F):F===93?(e.consume(F),v):m(F)}function E(F){return F===null||F===62?Z(F):it(F)?(s=E,q(F)):(e.consume(F),E)}function w(F){return F===null?n(F):F===63?(e.consume(F),S):it(F)?(s=w,q(F)):(e.consume(F),w)}function S(F){return F===62?Z(F):w(F)}function T(F){return yo(F)?(e.consume(F),$):n(F)}function $(F){return F===45||Ro(F)?(e.consume(F),$):A(F)}function A(F){return it(F)?(s=A,q(F)):Tt(F)?(e.consume(F),A):Z(F)}function P(F){return F===45||Ro(F)?(e.consume(F),P):F===47||F===62||Yt(F)?N(F):n(F)}function N(F){return F===47?(e.consume(F),Z):F===58||F===95||yo(F)?(e.consume(F),I):it(F)?(s=N,q(F)):Tt(F)?(e.consume(F),N):Z(F)}function I(F){return F===45||F===46||F===58||F===95||Ro(F)?(e.consume(F),I):B(F)}function B(F){return F===61?(e.consume(F),V):it(F)?(s=B,q(F)):Tt(F)?(e.consume(F),B):N(F)}function V(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),r=F,G):it(F)?(s=V,q(F)):Tt(F)?(e.consume(F),V):(e.consume(F),ne)}function G(F){return F===r?(e.consume(F),r=void 0,oe):F===null?n(F):it(F)?(s=G,q(F)):(e.consume(F),G)}function ne(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===47||F===62||Yt(F)?N(F):(e.consume(F),ne)}function oe(F){return F===47||F===62||Yt(F)?N(F):n(F)}function Z(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):n(F)}function q(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),X}function X(F){return Tt(F)?Pt(e,ee,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):ee(F)}function ee(F){return e.enter("htmlTextData"),s(F)}}const q3={name:"labelEnd",tokenize:rme,resolveTo:ome,resolveAll:nme},Qhe={tokenize:ime},eme={tokenize:sme},tme={tokenize:lme};function nme(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function ome(e,t){let n=e.length,o=0,r,i,s,l;for(;n--;)if(r=e[n][1],i){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(i=n,r.type!=="labelLink")){o=2;break}}else r.type==="labelEnd"&&(s=n);const a={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[s][1].end)},u={type:"labelText",start:Object.assign({},e[i+o+2][1].end),end:Object.assign({},e[s-2][1].start)};return l=[["enter",a,t],["enter",c,t]],l=yr(l,e.slice(i+1,i+o+3)),l=yr(l,[["enter",u,t]]),l=yr(l,G1(t.parser.constructs.insideSpan.null,e.slice(i+o+4,s-3),t)),l=yr(l,[["exit",u,t],e[s-2],e[s-1],["exit",c,t]]),l=yr(l,e.slice(s+1)),l=yr(l,[["exit",a,t]]),Ar(e,i,e.length,l),e}function rme(e,t,n){const o=this;let r=o.events.length,i,s;for(;r--;)if((o.events[r][1].type==="labelImage"||o.events[r][1].type==="labelLink")&&!o.events[r][1]._balanced){i=o.events[r][1];break}return l;function l(f){return i?i._inactive?d(f):(s=o.parser.defined.includes(Qr(o.sliceSerialize({start:i.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),a):n(f)}function a(f){return f===40?e.attempt(Qhe,u,s?u:d)(f):f===91?e.attempt(eme,u,s?c:d)(f):s?u(f):d(f)}function c(f){return e.attempt(tme,u,d)(f)}function u(f){return t(f)}function d(f){return i._balanced=!0,n(f)}}function ime(e,t,n){return o;function o(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return Yt(d)?Yf(e,i)(d):i(d)}function i(d){return d===41?u(d):wI(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Yt(d)?Yf(e,a)(d):u(d)}function l(d){return n(d)}function a(d){return d===34||d===39||d===40?xI(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return Yt(d)?Yf(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function sme(e,t,n){const o=this;return r;function r(l){return kI.call(o,e,i,s,"reference","referenceMarker","referenceString")(l)}function i(l){return o.parser.defined.includes(Qr(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function s(l){return n(l)}}function lme(e,t,n){return o;function o(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),r}function r(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const ame={name:"labelStartImage",tokenize:cme,resolveAll:q3.resolveAll};function cme(e,t,n){const o=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),i}function i(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),s):n(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in o.parser.constructs?n(l):t(l)}}const ume={name:"labelStartLink",tokenize:dme,resolveAll:q3.resolveAll};function dme(e,t,n){const o=this;return r;function r(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in o.parser.constructs?n(s):t(s)}}const pv={name:"lineEnding",tokenize:fme};function fme(e,t){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Pt(e,t,"linePrefix")}}const c_={name:"thematicBreak",tokenize:pme};function pme(e,t,n){let o=0,r;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return r=c,l(c)}function l(c){return c===r?(e.enter("thematicBreakSequence"),a(c)):o>=3&&(c===null||it(c))?(e.exit("thematicBreak"),t(c)):n(c)}function a(c){return c===r?(e.consume(c),o++,a):(e.exit("thematicBreakSequence"),Tt(c)?Pt(e,l,"whitespace")(c):l(c))}}const Ao={name:"list",tokenize:_me,continuation:{tokenize:gme},exit:bme},hme={tokenize:yme,partial:!0},mme={tokenize:vme,partial:!0};function _me(e,t,n){const o=this,r=o.events[o.events.length-1];let i=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,s=0;return l;function l(p){const h=o.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!o.containerState.marker||p===o.containerState.marker:$y(p)){if(o.containerState.type||(o.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(c_,n,c)(p):c(p);if(!o.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return $y(p)&&++s<10?(e.consume(p),a):(!o.interrupt||s<2)&&(o.containerState.marker?p===o.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||p,e.check(kh,o.interrupt?n:u,e.attempt(hme,f,d))}function u(p){return o.containerState.initialBlankLine=!0,i++,f(p)}function d(p){return Tt(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return o.containerState.size=i+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function gme(e,t,n){const o=this;return o.containerState._closeFlow=void 0,e.check(kh,r,i);function r(l){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Pt(e,t,"listItemIndent",o.containerState.size+1)(l)}function i(l){return o.containerState.furtherBlankLines||!Tt(l)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,s(l)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(mme,t,s)(l))}function s(l){return o.containerState._closeFlow=!0,o.interrupt=void 0,Pt(e,e.attempt(Ao,t,n),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function vme(e,t,n){const o=this;return Pt(e,r,"listItemIndent",o.containerState.size+1);function r(i){const s=o.events[o.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===o.containerState.size?t(i):n(i)}}function bme(e){e.exit(this.containerState.type)}function yme(e,t,n){const o=this;return Pt(e,r,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function r(i){const s=o.events[o.events.length-1];return!Tt(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const u8={name:"setextUnderline",tokenize:kme,resolveTo:wme};function wme(e,t){let n=e.length,o,r,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){o=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[o][1],t]),e[o][1].end=Object.assign({},e[i][1].end)):e[o][1]=s,e.push(["exit",s,t]),e}function kme(e,t,n){const o=this;let r;return i;function i(c){let u=o.events.length,d;for(;u--;)if(o.events[u][1].type!=="lineEnding"&&o.events[u][1].type!=="linePrefix"&&o.events[u][1].type!=="content"){d=o.events[u][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||d)?(e.enter("setextHeadingLine"),r=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===r?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),Tt(c)?Pt(e,a,"lineSuffix")(c):a(c))}function a(c){return c===null||it(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const xme={tokenize:Cme};function Cme(e){const t=this,n=e.attempt(kh,o,e.attempt(this.parser.constructs.flowInitial,r,Pt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Mhe,r)),"linePrefix")));return n;function o(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Sme={resolveAll:SI()},$me=CI("string"),Eme=CI("text");function CI(e){return{tokenize:t,resolveAll:SI(e==="text"?Tme:void 0)};function t(n){const o=this,r=this.parser.constructs[e],i=n.attempt(r,s,l);return s;function s(u){return c(u)?i(u):l(u)}function l(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),a}function a(u){return c(u)?(n.exit("data"),i(u)):(n.consume(u),a)}function c(u){if(u===null)return!0;const d=r[u];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(o,o.previous))return!0}return!1}}}function SI(e){return t;function t(n,o){let r=-1,i;for(;++r<=n.length;)i===void 0?n[r]&&n[r][1].type==="data"&&(i=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==i+2&&(n[i][1].end=n[r-1][1].end,n.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(n,o):n}}function Tme(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const o=e[n-1][1],r=t.sliceStream(o);let i=r.length,s=-1,l=0,a;for(;i--;){const c=r[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(c===-2)a=!0,l++;else if(c!==-1){i++;break}}if(l){const c={type:n===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-l,offset:o.end.offset-l,_index:o.start._index+i,_bufferIndex:i?s:o.start._bufferIndex+s},end:Object.assign({},o.end)};o.end=Object.assign({},c.start),o.start.offset===o.end.offset?Object.assign(o,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function Mme(e,t,n){let o=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const r={},i=[];let s=[],l=[];const a={consume:E,enter:w,exit:S,attempt:A(T),check:A($),interrupt:A($,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:f,now:h,defineSkip:m,write:d};let u=t.tokenize.call(c,a);return t.resolveAll&&i.push(t),c;function d(B){return s=yr(s,B),b(),s[s.length-1]!==null?[]:(P(t,0),c.events=G1(i,c.events,c),c.events)}function f(B,V){return Ime(p(B),V)}function p(B){return Ame(s,B)}function h(){const{line:B,column:V,offset:G,_index:ne,_bufferIndex:oe}=o;return{line:B,column:V,offset:G,_index:ne,_bufferIndex:oe}}function m(B){r[B.line]=B.column,I()}function b(){let B;for(;o._index<s.length;){const V=s[o._index];if(typeof V=="string")for(B=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===B&&o._bufferIndex<V.length;)v(V.charCodeAt(o._bufferIndex));else v(V)}}function v(B){u=u(B)}function E(B){it(B)?(o.line++,o.column=1,o.offset+=B===-3?2:1,I()):B!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===s[o._index].length&&(o._bufferIndex=-1,o._index++)),c.previous=B}function w(B,V){const G=V||{};return G.type=B,G.start=h(),c.events.push(["enter",G,c]),l.push(G),G}function S(B){const V=l.pop();return V.end=h(),c.events.push(["exit",V,c]),V}function T(B,V){P(B,V.from)}function $(B,V){V.restore()}function A(B,V){return G;function G(ne,oe,Z){let q,X,ee,F;return Array.isArray(ne)?xe(ne):"tokenize"in ne?xe([ne]):be(ne);function be(Fe){return J;function J(ce){const he=ce!==null&&Fe[ce],se=ce!==null&&Fe.null,Le=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(se)?se:se?[se]:[]];return xe(Le)(ce)}}function xe(Fe){return q=Fe,X=0,Fe.length===0?Z:U(Fe[X])}function U(Fe){return J;function J(ce){return F=N(),ee=Fe,Fe.partial||(c.currentConstruct=Fe),Fe.name&&c.parser.constructs.disable.null.includes(Fe.name)?Ze():Fe.tokenize.call(V?Object.assign(Object.create(c),V):c,a,Ee,Ze)(ce)}}function Ee(Fe){return B(ee,F),oe}function Ze(Fe){return F.restore(),++X<q.length?U(q[X]):Z}}}function P(B,V){B.resolveAll&&!i.includes(B)&&i.push(B),B.resolve&&Ar(c.events,V,c.events.length-V,B.resolve(c.events.slice(V),c)),B.resolveTo&&(c.events=B.resolveTo(c.events,c))}function N(){const B=h(),V=c.previous,G=c.currentConstruct,ne=c.events.length,oe=Array.from(l);return{restore:Z,from:ne};function Z(){o=B,c.previous=V,c.currentConstruct=G,c.events.length=ne,l=oe,I()}}function I(){o.line in r&&o.column<2&&(o.column=r[o.line],o.offset+=r[o.line]-1)}}function Ame(e,t){const n=t.start._index,o=t.start._bufferIndex,r=t.end._index,i=t.end._bufferIndex;let s;if(n===r)s=[e[n].slice(o,i)];else{if(s=e.slice(n,r),o>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(o):s.shift()}i>0&&s.push(e[r].slice(0,i))}return s}function Ime(e,t){let n=-1;const o=[];let r;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
80 `;break}case-3:{s=`\r
81 `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&r)continue;s=" ";break}default:s=String.fromCharCode(i)}r=i===-2,o.push(s)}return o.join("")}const Ome={42:Ao,43:Ao,45:Ao,48:Ao,49:Ao,50:Ao,51:Ao,52:Ao,53:Ao,54:Ao,55:Ao,56:Ao,57:Ao,62:gI},Pme={91:Nhe},Nme={[-2]:fv,[-1]:fv,32:fv},Lme={35:zhe,42:c_,45:[u8,c_],60:Uhe,61:u8,95:c_,96:a8,126:a8},Rme={38:bI,92:vI},Fme={[-5]:pv,[-4]:pv,[-3]:pv,33:ame,38:bI,42:Ey,60:[uhe,Jhe],91:ume,92:[Dhe,vI],93:q3,95:Ey,96:xhe},Dme={null:[Ey,Sme]},Bme={null:[42,95]},zme={null:[]},Vme=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Bme,contentInitial:Pme,disable:zme,document:Ome,flow:Lme,flowInitial:Nme,insideSpan:Dme,string:Rme,text:Fme},Symbol.toStringTag,{value:"Module"}));function jme(e){const n=mI([Vme,...(e||{}).extensions||[]]),o={defined:[],lazy:{},constructs:n,content:r(ohe),document:r(ihe),flow:r(xme),string:r($me),text:r(Eme)};return o;function r(i){return s;function s(l){return Mme(o,i,l)}}}function Hme(e){for(;!yI(e););return e}const d8=/[\0\t\n\r]/g;function Ume(){let e=1,t="",n=!0,o;return r;function r(i,s,l){const a=[];let c,u,d,f,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(d8.lastIndex=d,c=d8.exec(i),f=c&&c.index!==void 0?c.index:i.length,p=i.charCodeAt(f),!c){t=i.slice(d);break}if(p===10&&d===f&&o)a.push(-3),o=void 0;else switch(o&&(a.push(-5),o=void 0),d<f&&(a.push(i.slice(d,f)),e+=f-d),p){case 0:{a.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,a.push(-2);e++<u;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:o=!0,e=1}d=f+1}return l&&(o&&a.push(-5),t&&a.push(t),a.push(null)),a}}const Wme=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $I(e){return e.replace(Wme,qme)}function qme(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),i=r===120||r===88;return _I(n.slice(i?2:1),i?16:10)}return W3(n)||e}function Zf(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?f8(e.position):"start"in e||"end"in e?f8(e):"line"in e||"column"in e?Ty(e):""}function Ty(e){return p8(e&&e.line)+":"+p8(e&&e.column)}function f8(e){return Ty(e&&e.start)+"-"+Ty(e&&e.end)}function p8(e){return e&&typeof e=="number"?e:1}const EI={}.hasOwnProperty;function Kme(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Gme(n)(Hme(jme(n).document().write(Ume()(e,t,!0))))}function Gme(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Ie),autolinkProtocol:N,autolinkEmail:N,atxHeading:i(re),blockQuote:i(se),characterEscape:N,characterReference:N,codeFenced:i(Le),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(Le,s),codeText:i(et,s),codeTextData:N,data:N,codeFlowValue:N,definition:i(j),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(W),hardBreakEscape:i(pe),hardBreakTrailing:i(pe),htmlFlow:i(fe,s),htmlFlowData:N,htmlText:i(fe,s),htmlTextData:N,image:i(Ce),label:s,link:i(Ie),listItem:i(Se),listItemValue:f,listOrdered:i(ye,d),listUnordered:i(ye),paragraph:i(_e),reference:U,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(re),strong:i(De),thematicBreak:i(ie)},exit:{atxHeading:a(),atxHeadingSequence:T,autolink:a(),autolinkEmail:he,autolinkProtocol:ce,blockQuote:a(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:Ze,characterReferenceMarkerNumeric:Ze,characterReferenceValue:Fe,characterReference:J,codeFenced:a(b),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:I,codeIndented:a(v),codeText:a(oe),codeTextData:I,data:I,definition:a(),definitionDestinationString:S,definitionLabelString:E,definitionTitleString:w,emphasis:a(),hardBreakEscape:a(V),hardBreakTrailing:a(V),htmlFlow:a(G),htmlFlowData:I,htmlText:a(ne),htmlTextData:I,image:a(q),label:ee,labelText:X,lineEnding:B,link:a(Z),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:Ee,resourceDestinationString:F,resourceTitleString:be,resource:xe,setextHeading:a(P),setextHeadingLineSequence:A,setextHeadingText:$,strong:a(),thematicBreak:a()}};TI(t,(e||{}).mdastExtensions||[]);const n={};return o;function o(Y){let ae={type:"root",children:[]};const Oe={stack:[ae],tokenStack:[],config:t,enter:l,exit:c,buffer:s,resume:u,data:n},We=[];let ve=-1;for(;++ve<Y.length;)if(Y[ve][1].type==="listOrdered"||Y[ve][1].type==="listUnordered")if(Y[ve][0]==="enter")We.push(ve);else{const He=We.pop();ve=r(Y,He,ve)}for(ve=-1;++ve<Y.length;){const He=t[Y[ve][0]];EI.call(He,Y[ve][1].type)&&He[Y[ve][1].type].call(Object.assign({sliceSerialize:Y[ve][2].sliceSerialize},Oe),Y[ve][1])}if(Oe.tokenStack.length>0){const He=Oe.tokenStack[Oe.tokenStack.length-1];(He[1]||h8).call(Oe,void 0,He[0])}for(ae.position={start:js(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:js(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)ae=t.transforms[ve](ae)||ae;return ae}function r(Y,ae,Oe){let We=ae-1,ve=-1,He=!1,rt,Qe,bt,Gt;for(;++We<=Oe;){const _t=Y[We];switch(_t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{_t[0]==="enter"?ve++:ve--,Gt=void 0;break}case"lineEndingBlank":{_t[0]==="enter"&&(rt&&!Gt&&!ve&&!bt&&(bt=We),Gt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gt=void 0}if(!ve&&_t[0]==="enter"&&_t[1].type==="listItemPrefix"||ve===-1&&_t[0]==="exit"&&(_t[1].type==="listUnordered"||_t[1].type==="listOrdered")){if(rt){let Jt=We;for(Qe=void 0;Jt--;){const an=Y[Jt];if(an[1].type==="lineEnding"||an[1].type==="lineEndingBlank"){if(an[0]==="exit")continue;Qe&&(Y[Qe][1].type="lineEndingBlank",He=!0),an[1].type="lineEnding",Qe=Jt}else if(!(an[1].type==="linePrefix"||an[1].type==="blockQuotePrefix"||an[1].type==="blockQuotePrefixWhitespace"||an[1].type==="blockQuoteMarker"||an[1].type==="listItemIndent"))break}bt&&(!Qe||bt<Qe)&&(rt._spread=!0),rt.end=Object.assign({},Qe?Y[Qe][1].start:_t[1].end),Y.splice(Qe||We,0,["exit",rt,_t[2]]),We++,Oe++}if(_t[1].type==="listItemPrefix"){const Jt={type:"listItem",_spread:!1,start:Object.assign({},_t[1].start),end:void 0};rt=Jt,Y.splice(We,0,["enter",Jt,_t[2]]),We++,Oe++,bt=void 0,Gt=!0}}}return Y[ae][1]._spread=He,Oe}function i(Y,ae){return Oe;function Oe(We){l.call(this,Y(We),We),ae&&ae.call(this,We)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(Y,ae,Oe){this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([ae,Oe]),Y.position={start:js(ae.start),end:void 0}}function a(Y){return ae;function ae(Oe){Y&&Y.call(this,Oe),c.call(this,Oe)}}function c(Y,ae){const Oe=this.stack.pop(),We=this.tokenStack.pop();if(We)We[0].type!==Y.type&&(ae?ae.call(this,Y,We[0]):(We[1]||h8).call(this,Y,We[0]));else throw new Error("Cannot close `"+Y.type+"` ("+Zf({start:Y.start,end:Y.end})+"): it’s not open");Oe.position.end=js(Y.end)}function u(){return U3(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(Y){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(Y),10),this.data.expectingFirstListItemValue=void 0}}function p(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=Y}function h(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=Y}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.value=Y.replace(/(\r?\n|\r)$/g,"")}function E(Y){const ae=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=ae,Oe.identifier=Qr(this.sliceSerialize(Y)).toLowerCase()}function w(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.title=Y}function S(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.url=Y}function T(Y){const ae=this.stack[this.stack.length-1];if(!ae.depth){const Oe=this.sliceSerialize(Y).length;ae.depth=Oe}}function $(){this.data.setextHeadingSlurpLineEnding=!0}function A(Y){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(Y).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function N(Y){const Oe=this.stack[this.stack.length-1].children;let We=Oe[Oe.length-1];(!We||We.type!=="text")&&(We=Ge(),We.position={start:js(Y.start),end:void 0},Oe.push(We)),this.stack.push(We)}function I(Y){const ae=this.stack.pop();ae.value+=this.sliceSerialize(Y),ae.position.end=js(Y.end)}function B(Y){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Oe=ae.children[ae.children.length-1];Oe.position.end=js(Y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ae.type)&&(N.call(this,Y),I.call(this,Y))}function V(){this.data.atHardBreak=!0}function G(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.value=Y}function ne(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.value=Y}function oe(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.value=Y}function Z(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=ae,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function q(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=ae,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function X(Y){const ae=this.sliceSerialize(Y),Oe=this.stack[this.stack.length-2];Oe.label=$I(ae),Oe.identifier=Qr(ae).toLowerCase()}function ee(){const Y=this.stack[this.stack.length-1],ae=this.resume(),Oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Oe.type==="link"){const We=Y.children;Oe.children=We}else Oe.alt=ae}function F(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.url=Y}function be(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.title=Y}function xe(){this.data.inReference=void 0}function U(){this.data.referenceType="collapsed"}function Ee(Y){const ae=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=ae,Oe.identifier=Qr(this.sliceSerialize(Y)).toLowerCase(),this.data.referenceType="full"}function Ze(Y){this.data.characterReferenceType=Y.type}function Fe(Y){const ae=this.sliceSerialize(Y),Oe=this.data.characterReferenceType;let We;Oe?(We=_I(ae,Oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):We=W3(ae);const ve=this.stack[this.stack.length-1];ve.value+=We}function J(Y){const ae=this.stack.pop();ae.position.end=js(Y.end)}function ce(Y){I.call(this,Y);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(Y)}function he(Y){I.call(this,Y);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(Y)}function se(){return{type:"blockquote",children:[]}}function Le(){return{type:"code",lang:null,meta:null,value:""}}function et(){return{type:"inlineCode",value:""}}function j(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function W(){return{type:"emphasis",children:[]}}function re(){return{type:"heading",depth:0,children:[]}}function pe(){return{type:"break"}}function fe(){return{type:"html",value:""}}function Ce(){return{type:"image",title:null,url:"",alt:null}}function Ie(){return{type:"link",title:null,url:"",children:[]}}function ye(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function Se(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function _e(){return{type:"paragraph",children:[]}}function De(){return{type:"strong",children:[]}}function Ge(){return{type:"text",value:""}}function ie(){return{type:"thematicBreak"}}}function js(e){return{line:e.line,column:e.column,offset:e.offset}}function TI(e,t){let n=-1;for(;++n<t.length;){const o=t[n];Array.isArray(o)?TI(e,o):Yme(e,o)}}function Yme(e,t){let n;for(n in t)if(EI.call(t,n))switch(n){case"canContainEols":{const o=t[n];o&&e[n].push(...o);break}case"transforms":{const o=t[n];o&&e[n].push(...o);break}case"enter":case"exit":{const o=t[n];o&&Object.assign(e[n],o);break}}}function h8(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Zf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Zf({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Zf({start:t.start,end:t.end})+") is still open")}function My(e){const t=this;t.parser=n;function n(o){return Kme(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const m8={}.hasOwnProperty;function Zme(e,t){const n=t||{};function o(r,...i){let s=o.invalid;const l=o.handlers;if(r&&m8.call(r,e)){const a=String(r[e]);s=m8.call(l,a)?l[a]:o.unknown}if(s)return s.call(this,r,...i)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}const Jme={}.hasOwnProperty;function MI(e,t){let n=-1,o;if(t.extensions)for(;++n<t.extensions.length;)MI(e,t.extensions[n]);for(o in t)if(Jme.call(t,o))switch(o){case"extensions":break;case"unsafe":{_8(e[o],t[o]);break}case"join":{_8(e[o],t[o]);break}case"handlers":{Xme(e[o],t[o]);break}default:e.options[o]=t[o]}return e}function _8(e,t){t&&e.push(...t)}function Xme(e,t){t&&Object.assign(e,t)}function Qme(e,t,n,o){const r=n.enter("blockquote"),i=n.createTracker(o);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),e_e);return r(),s}function e_e(e,t,n){return">"+(n?"":" ")+e}function AI(e,t){return g8(e,t.inConstruct,!0)&&!g8(e,t.notInConstruct,!1)}function g8(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let o=-1;for(;++o<t.length;)if(e.includes(t[o]))return!0;return!1}function v8(e,t,n,o){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
82 `&&AI(n.stack,n.unsafe[r]))return/[ \t]/.test(o.before)?"":" ";return`\\
83 `}function t_e(e,t){const n=String(e);let o=n.indexOf(t),r=o,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===r?++i>s&&(s=i):i=1,r=o+t.length,o=n.indexOf(t,r);return s}function Ay(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function n_e(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function o_e(e,t,n,o){const r=n_e(n),i=e.value||"",s=r==="`"?"GraveAccent":"Tilde";if(Ay(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(i,r_e);return d(),f}const l=n.createTracker(o),a=r.repeat(Math.max(t_e(i,r)+1,3)),c=n.enter("codeFenced");let u=l.move(a);if(e.lang){const d=n.enter(`codeFencedLang${s}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:`
84 `,encode:["`"],...l.current()})),d()}return u+=l.move(`
85 `),i&&(u+=l.move(i+`
86 `)),u+=l.move(a),c(),u}function r_e(e,t,n){return(n?"":" ")+e}function K3(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function i_e(e,t,n,o){const r=K3(n),i=r==='"'?"Quote":"Apostrophe",s=n.enter("definition");let l=n.enter("label");const a=n.createTracker(o);let c=a.move("[");return c+=a.move(n.safe(n.associationId(e),{before:c,after:"]",...a.current()})),c+=a.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":`
87 `,...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=a.move(" "+r),c+=a.move(n.safe(e.title,{before:c,after:r,...a.current()})),c+=a.move(r),l()),s(),c}function s_e(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}II.peek=l_e;function II(e,t,n,o){const r=s_e(n),i=n.enter("emphasis"),s=n.createTracker(o);let l=s.move(r);return l+=s.move(n.containerPhrasing(e,{before:l,after:r,...s.current()})),l+=s.move(r),i(),l}function l_e(e,t,n){return n.options.emphasis||"*"}const Y1=function(e){if(e==null)return d_e;if(typeof e=="function")return Z1(e);if(typeof e=="object")return Array.isArray(e)?a_e(e):c_e(e);if(typeof e=="string")return u_e(e);throw new Error("Expected function, string, or object as test")};function a_e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Y1(e[n]);return Z1(o);function o(...r){let i=-1;for(;++i<t.length;)if(t[i].apply(this,r))return!0;return!1}}function c_e(e){const t=e;return Z1(n);function n(o){const r=o;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function u_e(e){return Z1(t);function t(n){return n&&n.type===e}}function Z1(e){return t;function t(n,o,r){return!!(f_e(n)&&e.call(this,n,typeof o=="number"?o:void 0,r||void 0))}}function d_e(){return!0}function f_e(e){return e!==null&&typeof e=="object"&&"type"in e}const OI=[],p_e=!0,Iy=!1,Oy="skip";function PI(e,t,n,o){let r;typeof t=="function"&&typeof n!="function"?(o=n,n=t):r=t;const i=Y1(r),s=o?-1:1;l(e,void 0,[])();function l(a,c,u){const d=a&&typeof a=="object"?a:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(a.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=OI,h,m,b;if((!t||i(a,c,u[u.length-1]||void 0))&&(p=h_e(n(a,u)),p[0]===Iy))return p;if("children"in a&&a.children){const v=a;if(v.children&&p[0]!==Oy)for(m=(o?v.children.length:-1)+s,b=u.concat(v);m>-1&&m<v.children.length;){const E=v.children[m];if(h=l(E,m,b)(),h[0]===Iy)return h;m=typeof h[1]=="number"?h[1]:m+s}}return p}}}function h_e(e){return Array.isArray(e)?e:typeof e=="number"?[p_e,e]:e==null?OI:[e]}function vd(e,t,n,o){let r,i,s;typeof t=="function"&&typeof n!="function"?(i=void 0,s=t,r=n):(i=t,s=n,r=o),PI(e,i,l,r);function l(a,c){const u=c[c.length-1],d=u?u.children.indexOf(a):void 0;return s(a,d,u)}}function NI(e,t){let n=!1;return vd(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return n=!0,Iy}),!!((!e.depth||e.depth<3)&&U3(e)&&(t.options.setext||n))}function m_e(e,t,n,o){const r=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(o);if(NI(e,n)){const u=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...i.current(),before:`
88 `,after:`
89 `});return d(),u(),f+`
90 `+(r===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
91 `))+1))}const s="#".repeat(r),l=n.enter("headingAtx"),a=n.enter("phrasing");i.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
92 `,...i.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),a(),l(),c}LI.peek=__e;function LI(e){return e.value||""}function __e(){return"<"}RI.peek=g_e;function RI(e,t,n,o){const r=K3(n),i=r==='"'?"Quote":"Apostrophe",s=n.enter("image");let l=n.enter("label");const a=n.createTracker(o);let c=a.move("![");return c+=a.move(n.safe(e.alt,{before:c,after:"]",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=a.move(" "+r),c+=a.move(n.safe(e.title,{before:c,after:r,...a.current()})),c+=a.move(r),l()),c+=a.move(")"),s(),c}function g_e(){return"!"}FI.peek=v_e;function FI(e,t,n,o){const r=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const l=n.createTracker(o);let a=l.move("![");const c=n.safe(e.alt,{before:a,after:"]",...l.current()});a+=l.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:a,after:"]",...l.current()});return s(),n.stack=u,i(),r==="full"||!c||c!==d?a+=l.move(d+"]"):r==="shortcut"?a=a.slice(0,-1):a+=l.move("]"),a}function v_e(){return"!"}DI.peek=b_e;function DI(e,t,n){let o=e.value||"",r="`",i=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(o);)r+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++i<n.unsafe.length;){const s=n.unsafe[i],l=n.compilePattern(s);let a;if(s.atBreak)for(;a=l.exec(o);){let c=a.index;o.charCodeAt(c)===10&&o.charCodeAt(c-1)===13&&c--,o=o.slice(0,c)+" "+o.slice(a.index+1)}}return r+o+r}function b_e(){return"`"}function BI(e,t){const n=U3(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}zI.peek=y_e;function zI(e,t,n,o){const r=K3(n),i=r==='"'?"Quote":"Apostrophe",s=n.createTracker(o);let l,a;if(BI(e,n)){const u=n.stack;n.stack=[],l=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),l(),n.stack=u,d}l=n.enter("link"),a=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(a=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),c+=s.move(" "+r),c+=s.move(n.safe(e.title,{before:c,after:r,...s.current()})),c+=s.move(r),a()),c+=s.move(")"),l(),c}function y_e(e,t,n){return BI(e,n)?"<":"["}VI.peek=w_e;function VI(e,t,n,o){const r=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const l=n.createTracker(o);let a=l.move("[");const c=n.containerPhrasing(e,{before:a,after:"]",...l.current()});a+=l.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:a,after:"]",...l.current()});return s(),n.stack=u,i(),r==="full"||!c||c!==d?a+=l.move(d+"]"):r==="shortcut"?a=a.slice(0,-1):a+=l.move("]"),a}function w_e(){return"["}function G3(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function k_e(e){const t=G3(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function x_e(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function jI(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function C_e(e,t,n,o){const r=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?x_e(n):G3(n);const l=e.ordered?s==="."?")":".":k_e(n);let a=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),jI(n)===s&&u){let d=-1;for(;++d<e.children.length;){const f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(s=l),n.bulletCurrent=s;const c=n.containerFlow(e,o);return n.bulletLastUsed=s,n.bulletCurrent=i,r(),c}function S_e(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function $_e(e,t,n,o){const r=S_e(n);let i=n.bulletCurrent||G3(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const l=n.createTracker(o);l.move(i+" ".repeat(s-i.length)),l.shift(s);const a=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),u);return a(),c;function u(d,f,p){return f?(p?"":" ".repeat(s))+d:(p?i:i+" ".repeat(s-i.length))+d}}function E_e(e,t,n,o){const r=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,o);return i(),r(),s}const T_e=Y1(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function M_e(e,t,n,o){return(e.children.some(function(s){return T_e(s)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function A_e(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}HI.peek=I_e;function HI(e,t,n,o){const r=A_e(n),i=n.enter("strong"),s=n.createTracker(o);let l=s.move(r+r);return l+=s.move(n.containerPhrasing(e,{before:l,after:r,...s.current()})),l+=s.move(r+r),i(),l}function I_e(e,t,n){return n.options.strong||"*"}function O_e(e,t,n,o){return n.safe(e.value,o)}function P_e(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function N_e(e,t,n){const o=(jI(n)+(n.options.ruleSpaces?" ":"")).repeat(P_e(n));return n.options.ruleSpaces?o.slice(0,-1):o}const Y3={blockquote:Qme,break:v8,code:o_e,definition:i_e,emphasis:II,hardBreak:v8,heading:m_e,html:LI,image:RI,imageReference:FI,inlineCode:DI,link:zI,linkReference:VI,list:C_e,listItem:$_e,paragraph:E_e,root:M_e,strong:HI,text:O_e,thematicBreak:N_e},L_e=[R_e];function R_e(e,t,n,o){if(t.type==="code"&&Ay(t,o)&&(e.type==="list"||e.type===t.type&&Ay(e,o)))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&NI(t,o))?void 0:n.spread?1:0}const na=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],F_e=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
93 `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:na},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
94 ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:na},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
95 *])`},{character:"*",inConstruct:"phrasing",notInConstruct:na},{atBreak:!0,character:"+",after:`(?:[ \r
96 ])`},{atBreak:!0,character:"-",after:`(?:[ \r
97 -])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
98 ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:na},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:na},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:na},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:na},{atBreak:!0,character:"~"}];function D_e(e){return e.label||!e.identifier?e.label||"":$I(e.identifier)}function B_e(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function z_e(e,t,n){const o=t.indexStack,r=e.children||[],i=[];let s=-1,l=n.before;o.push(-1);let a=t.createTracker(n);for(;++s<r.length;){const c=r[s];let u;if(o[o.length-1]=s,s+1<r.length){let d=t.handle.handlers[r[s+1].type];d&&d.peek&&(d=d.peek),u=d?d(r[s+1],e,t,{before:"",after:"",...a.current()}).charAt(0):""}else u=n.after;i.length>0&&(l==="\r"||l===`
99 `)&&c.type==="html"&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),l=" ",a=t.createTracker(n),a.move(i.join(""))),i.push(a.move(t.handle(c,e,t,{...a.current(),before:l,after:u}))),l=i[i.length-1].slice(-1)}return o.pop(),i.join("")}function V_e(e,t,n){const o=t.indexStack,r=e.children||[],i=t.createTracker(n),s=[];let l=-1;for(o.push(-1);++l<r.length;){const a=r[l];o[o.length-1]=l,s.push(i.move(t.handle(a,e,t,{before:`
100 `,after:`
101 `,...i.current()}))),a.type!=="list"&&(t.bulletLastUsed=void 0),l<r.length-1&&s.push(i.move(j_e(a,r[l+1],e,t)))}return o.pop(),s.join("")}function j_e(e,t,n,o){let r=o.join.length;for(;r--;){const i=o.join[r](e,t,n,o);if(i===!0||i===1)break;if(typeof i=="number")return`
102 `.repeat(1+i);if(i===!1)return`
103
104 <!---->
105
106 `}return`
107
108 `}const H_e=/\r?\n|\r/g;function U_e(e,t){const n=[];let o=0,r=0,i;for(;i=H_e.exec(e);)s(e.slice(o,i.index)),n.push(i[0]),o=i.index+i[0].length,r++;return s(e.slice(o)),n.join("");function s(l){n.push(t(l,r,!l))}}function W_e(e,t,n){const o=(n.before||"")+(t||"")+(n.after||""),r=[],i=[],s={};let l=-1;for(;++l<e.unsafe.length;){const u=e.unsafe[l];if(!AI(e.stack,u))continue;const d=e.compilePattern(u);let f;for(;f=d.exec(o);){const p="before"in u||!!u.atBreak,h="after"in u,m=f.index+(p?f[1].length:0);r.includes(m)?(s[m].before&&!p&&(s[m].before=!1),s[m].after&&!h&&(s[m].after=!1)):(r.push(m),s[m]={before:p,after:h})}}r.sort(q_e);let a=n.before?n.before.length:0;const c=o.length-(n.after?n.after.length:0);for(l=-1;++l<r.length;){const u=r[l];u<a||u>=c||u+1<c&&r[l+1]===u+1&&s[u].after&&!s[u+1].before&&!s[u+1].after||r[l-1]===u-1&&s[u].before&&!s[u-1].before&&!s[u-1].after||(a!==u&&i.push(b8(o.slice(a,u),"\\")),a=u,/[!-/:-@[-`{-~]/.test(o.charAt(u))&&(!n.encode||!n.encode.includes(o.charAt(u)))?i.push("\\"):(i.push("&#x"+o.charCodeAt(u).toString(16).toUpperCase()+";"),a++))}return i.push(b8(o.slice(a,c),n.after)),i.join("")}function q_e(e,t){return e-t}function b8(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,o=[],r=[],i=e+t;let s=-1,l=0,a;for(;a=n.exec(i);)o.push(a.index);for(;++s<o.length;)l!==o[s]&&r.push(e.slice(l,o[s])),r.push("\\"),l=o[s];return r.push(e.slice(l)),r.join("")}function K_e(e){const t=e||{},n=t.now||{};let o=t.lineShift||0,r=n.line||1,i=n.column||1;return{move:a,current:s,shift:l};function s(){return{now:{line:r,column:i},lineShift:o}}function l(c){o+=c}function a(c){const u=c||"",d=u.split(/\r?\n|\r/g),f=d[d.length-1];return r+=d.length-1,i=d.length===1?i+f.length:1+f.length+o,u}}function G_e(e,t={}){const n={enter:r,indentLines:U_e,associationId:D_e,containerPhrasing:X_e,containerFlow:Q_e,createTracker:K_e,compilePattern:B_e,safe:ege,stack:[],unsafe:[...F_e],join:[...L_e],handlers:{...Y3},options:{},indexStack:[],handle:void 0};MI(n,t),n.options.tightDefinitions&&n.join.push(J_e),n.handle=Zme("type",{invalid:Y_e,unknown:Z_e,handlers:n.handlers});let o=n.handle(e,void 0,n,{before:`
109 `,after:`
110 `,now:{line:1,column:1},lineShift:0});return o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
111 `),o;function r(i){return n.stack.push(i),s;function s(){n.stack.pop()}}}function Y_e(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function Z_e(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function J_e(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function X_e(e,t){return z_e(e,this,t)}function Q_e(e,t){return V_e(e,this,t)}function ege(e,t){return W_e(this,e,t)}function Py(e){const t=this;t.compiler=n;function n(o){return G_e(o,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function y8(e){if(e)throw e}var u_=Object.prototype.hasOwnProperty,UI=Object.prototype.toString,w8=Object.defineProperty,k8=Object.getOwnPropertyDescriptor,x8=function(t){return typeof Array.isArray=="function"?Array.isArray(t):UI.call(t)==="[object Array]"},C8=function(t){if(!t||UI.call(t)!=="[object Object]")return!1;var n=u_.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&u_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!o)return!1;var r;for(r in t);return typeof r>"u"||u_.call(t,r)},S8=function(t,n){w8&&n.name==="__proto__"?w8(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},$8=function(t,n){if(n==="__proto__")if(u_.call(t,n)){if(k8)return k8(t,n).value}else return;return t[n]},tge=function e(){var t,n,o,r,i,s,l=arguments[0],a=1,c=arguments.length,u=!1;for(typeof l=="boolean"&&(u=l,l=arguments[1]||{},a=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});a<c;++a)if(t=arguments[a],t!=null)for(n in t)o=$8(l,n),r=$8(t,n),l!==r&&(u&&r&&(C8(r)||(i=x8(r)))?(i?(i=!1,s=o&&x8(o)?o:[]):s=o&&C8(o)?o:{},S8(l,{name:n,newValue:e(u,s,r)})):typeof r<"u"&&S8(l,{name:n,newValue:r}));return l};const hv=jl(tge);function Ny(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function nge(){const e=[],t={run:n,use:o};return t;function n(...r){let i=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...r);function l(a,...c){const u=e[++i];let d=-1;if(a){s(a);return}for(;++d<r.length;)(c[d]===null||c[d]===void 0)&&(c[d]=r[d]);r=c,u?oge(u,l)(...c):s(null,...c)}}function o(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function oge(e,t){let n;return o;function o(...s){const l=e.length>s.length;let a;l&&s.push(r);try{a=e.apply(this,s)}catch(c){const u=c;if(l&&n)throw u;return r(u)}l||(a&&a.then&&typeof a.then=="function"?a.then(i,r):a instanceof Error?r(a):i(a))}function r(s,...l){n||(n=!0,t(s,...l))}function i(s){r(null,s)}}class Wo extends Error{constructor(t,n,o){super(),typeof n=="string"&&(o=n,n=void 0);let r="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?r=t:!i.cause&&t&&(s=!0,r=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof o=="string"){const a=o.indexOf(":");a===-1?i.ruleId=o:(i.source=o.slice(0,a),i.ruleId=o.slice(a+1))}if(!i.place&&i.ancestors&&i.ancestors){const a=i.ancestors[i.ancestors.length-1];a&&(i.place=a.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=l?l.line:void 0,this.name=Zf(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Wo.prototype.file="";Wo.prototype.name="";Wo.prototype.reason="";Wo.prototype.message="";Wo.prototype.stack="";Wo.prototype.column=void 0;Wo.prototype.line=void 0;Wo.prototype.ancestors=void 0;Wo.prototype.cause=void 0;Wo.prototype.fatal=void 0;Wo.prototype.place=void 0;Wo.prototype.ruleId=void 0;Wo.prototype.source=void 0;const xi={basename:rge,dirname:ige,extname:sge,join:lge,sep:"/"};function rge(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xh(e);let n=0,o=-1,r=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(i){n=r+1;break}}else o<0&&(i=!0,o=r+1);return o<0?"":e.slice(n,o)}if(t===e)return"";let s=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(i){n=r+1;break}}else s<0&&(i=!0,s=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(o=r):(l=-1,o=s));return n===o?o=s:o<0&&(o=e.length),e.slice(n,o)}function ige(e){if(xh(e),e.length===0)return".";let t=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){t=n;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function sge(e){xh(e);let t=e.length,n=-1,o=0,r=-1,i=0,s;for(;t--;){const l=e.codePointAt(t);if(l===47){if(s){o=t+1;break}continue}n<0&&(s=!0,n=t+1),l===46?r<0?r=t:i!==1&&(i=1):r>-1&&(i=-1)}return r<0||n<0||i===0||i===1&&r===n-1&&r===o+1?"":e.slice(r,n)}function lge(...e){let t=-1,n;for(;++t<e.length;)xh(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":age(n)}function age(e){xh(e);const t=e.codePointAt(0)===47;let n=cge(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function cge(e,t){let n="",o=0,r=-1,i=0,s=-1,l,a;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(r===s-1||i===1))if(r!==s-1&&i===2){if(n.length<2||o!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",o=0):(n=n.slice(0,a),o=n.length-1-n.lastIndexOf("/")),r=s,i=0;continue}}else if(n.length>0){n="",o=0,r=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(r+1,s):n=e.slice(r+1,s),o=s-r-1;r=s,i=0}else l===46&&i>-1?i++:i=-1}return n}function xh(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const uge={cwd:dge};function dge(){return"/"}function Ly(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function fge(e){if(typeof e=="string")e=new URL(e);else if(!Ly(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return pge(e)}function pge(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const o=t.codePointAt(n+2);if(o===70||o===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const mv=["history","path","basename","stem","extname","dirname"];class hge{constructor(t){let n;t?Ly(t)?n={path:t}:typeof t=="string"||mge(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":uge.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<mv.length;){const i=mv[o];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let r;for(r in n)mv.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?xi.basename(this.path):void 0}set basename(t){gv(t,"basename"),_v(t,"basename"),this.path=xi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?xi.dirname(this.path):void 0}set dirname(t){E8(this.basename,"dirname"),this.path=xi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?xi.extname(this.path):void 0}set extname(t){if(_v(t,"extname"),E8(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ly(t)&&(t=fge(t)),gv(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?xi.basename(this.path,this.extname):void 0}set stem(t){gv(t,"stem"),_v(t,"stem"),this.path=xi.join(this.dirname||"",t+(this.extname||""))}fail(t,n,o){const r=this.message(t,n,o);throw r.fatal=!0,r}info(t,n,o){const r=this.message(t,n,o);return r.fatal=void 0,r}message(t,n,o){const r=new Wo(t,n,o);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function _v(e,t){if(e&&e.includes(xi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+xi.sep+"`")}function gv(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function E8(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function mge(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _ge=function(e){const o=this.constructor.prototype,r=o[e],i=function(){return r.apply(i,arguments)};return Object.setPrototypeOf(i,o),i},gge={}.hasOwnProperty;class Z3 extends _ge{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=nge()}copy(){const t=new Z3;let n=-1;for(;++n<this.attachers.length;){const o=this.attachers[n];t.use(...o)}return t.data(hv(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(yv("data",this.frozen),this.namespace[t]=n,this):gge.call(this.namespace,t)&&this.namespace[t]||void 0:t?(yv("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const r=n.call(t,...o);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ym(t),o=this.parser||this.Parser;return vv("parse",o),o(String(n),n)}process(t,n){const o=this;return this.freeze(),vv("process",this.parser||this.Parser),bv("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(i,s){const l=ym(t),a=o.parse(l);o.run(a,l,function(u,d,f){if(u||!d||!f)return c(u);const p=d,h=o.stringify(p,f);bge(h)?f.value=h:f.result=h,c(u,f)});function c(u,d){u||!d?s(u):i?i(d):n(void 0,d)}}}processSync(t){let n=!1,o;return this.freeze(),vv("processSync",this.parser||this.Parser),bv("processSync",this.compiler||this.Compiler),this.process(t,r),M8("processSync","process",n),o;function r(i,s){n=!0,y8(i),o=s}}run(t,n,o){T8(t),this.freeze();const r=this.transformers;return!o&&typeof n=="function"&&(o=n,n=void 0),o?i(void 0,o):new Promise(i);function i(s,l){const a=ym(n);r.run(t,a,c);function c(u,d,f){const p=d||t;u?l(u):s?s(p):o(void 0,p,f)}}}runSync(t,n){let o=!1,r;return this.run(t,n,i),M8("runSync","run",o),r;function i(s,l){y8(s),r=l,o=!0}}stringify(t,n){this.freeze();const o=ym(n),r=this.compiler||this.Compiler;return bv("stringify",r),T8(t),r(t,o)}use(t,...n){const o=this.attachers,r=this.namespace;if(yv("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")a(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...d]=c;a(u,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(r.settings=hv(!0,r.settings,c.settings))}function l(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const d=c[u];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function a(c,u){let d=-1,f=-1;for(;++d<o.length;)if(o[d][0]===c){f=d;break}if(f===-1)o.push([c,...u]);else if(u.length>0){let[p,...h]=u;const m=o[f][1];Ny(m)&&Ny(p)&&(p=hv(!0,m,p)),o[f]=[c,p,...h]}}}}const Ry=new Z3().freeze();function vv(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bv(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function yv(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function T8(e){if(!Ny(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function M8(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ym(e){return vge(e)?e:new hge(e)}function vge(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function bge(e){return typeof e=="string"||yge(e)}function yge(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var WI=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},St=(e,t,n)=>(WI(e,t,"read from private field"),n?n.call(e):t.get(e)),Sn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},on=(e,t,n,o)=>(WI(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);let qI=class{},KI=class{constructor(){this.elements=[],this.size=()=>this.elements.length,this.top=()=>this.elements.at(-1),this.push=t=>{var n;(n=this.top())==null||n.push(t)},this.open=t=>{this.elements.push(t)},this.close=()=>{const t=this.elements.pop();if(!t)throw WA();return t}}},wge=class GI extends qI{constructor(t,n,o){super(),this.type=t,this.content=n,this.attrs=o}push(t,...n){this.content.push(t,...n)}pop(){return this.content.pop()}static create(t,n,o){return new GI(t,n,o)}};var bi,nf,d_,f_,p_,of,rf;const Fy=class extends KI{constructor(t){super(),Sn(this,bi,void 0),Sn(this,nf,void 0),Sn(this,d_,void 0),Sn(this,f_,void 0),Sn(this,p_,void 0),Sn(this,of,void 0),Sn(this,rf,void 0),on(this,bi,zt.none),on(this,nf,n=>n.isText),on(this,d_,(n,o)=>{if(St(this,nf).call(this,n)&&St(this,nf).call(this,o)&&zt.sameSet(n.marks,o.marks))return this.schema.text(n.text+o.text,n.marks)}),on(this,f_,n=>{const o=Object.values({...this.schema.nodes,...this.schema.marks}).find(r=>r.spec.parseMarkdown.match(n));if(!o)throw ppe(n);return o}),on(this,p_,n=>{const o=St(this,f_).call(this,n);o.spec.parseMarkdown.runner(this,n,o)}),this.injectRoot=(n,o,r)=>(this.openNode(o,r),this.next(n.children),this),this.openNode=(n,o)=>(this.open(wge.create(n,[],o)),this),on(this,of,()=>{on(this,bi,zt.none);const n=this.close();return St(this,rf).call(this,n.type,n.attrs,n.content)}),this.closeNode=()=>(St(this,of).call(this),this),on(this,rf,(n,o,r)=>{const i=n.createAndFill(o,r,St(this,bi));if(!i)throw fpe(n,o,r);return this.push(i),i}),this.addNode=(n,o,r)=>(St(this,rf).call(this,n,o,r),this),this.openMark=(n,o)=>{const r=n.create(o);return on(this,bi,r.addToSet(St(this,bi))),this},this.closeMark=n=>(on(this,bi,n.removeFromSet(St(this,bi))),this),this.addText=n=>{const o=this.top();if(!o)throw WA();const r=o.pop(),i=this.schema.text(n,St(this,bi));if(!r)return o.push(i),this;const s=St(this,d_).call(this,r,i);return s?(o.push(s),this):(o.push(r,i),this)},this.build=()=>{let n;do n=St(this,of).call(this);while(this.size());return n},this.next=(n=[])=>([n].flat().forEach(o=>St(this,p_).call(this,o)),this),this.toDoc=()=>this.build(),this.run=(n,o)=>{const r=n.runSync(n.parse(o),o);return this.next(r),this},this.schema=t}};bi=new WeakMap,nf=new WeakMap,d_=new WeakMap,f_=new WeakMap,p_=new WeakMap,of=new WeakMap,rf=new WeakMap,Fy.create=(e,t)=>{const n=new Fy(e);return o=>(n.run(t,o),n.toDoc())};let kge=Fy;const Dy=class extends qI{constructor(t,n,o,r={}){super(),this.type=t,this.children=n,this.value=o,this.props=r,this.push=(i,...s)=>{this.children||(this.children=[]),this.children.push(i,...s)},this.pop=()=>{var i;return(i=this.children)==null?void 0:i.pop()}}};Dy.create=(e,t,n,o={})=>new Dy(e,t,n,o);let A8=Dy;const xge=e=>Object.prototype.hasOwnProperty.call(e,"size");var is,sf,h_,m_,lf,__,af,g_,v_,jc,ua,b_,cf;const By=class extends KI{constructor(t){super(),Sn(this,is,void 0),Sn(this,sf,void 0),Sn(this,h_,void 0),Sn(this,m_,void 0),Sn(this,lf,void 0),Sn(this,__,void 0),Sn(this,af,void 0),Sn(this,g_,void 0),Sn(this,v_,void 0),Sn(this,jc,void 0),Sn(this,ua,void 0),Sn(this,b_,void 0),Sn(this,cf,void 0),on(this,is,zt.none),on(this,sf,n=>{const o=Object.values({...this.schema.nodes,...this.schema.marks}).find(r=>r.spec.toMarkdown.match(n));if(!o)throw hpe(n.type);return o}),on(this,h_,n=>St(this,sf).call(this,n).spec.toMarkdown.runner(this,n)),on(this,m_,(n,o)=>St(this,sf).call(this,n).spec.toMarkdown.runner(this,n,o)),on(this,lf,n=>{const{marks:o}=n,r=i=>i.type.spec.priority??50;[...o].sort((i,s)=>r(i)-r(s)).every(i=>!St(this,m_).call(this,i,n))&&St(this,h_).call(this,n),o.forEach(i=>St(this,cf).call(this,i))}),on(this,__,(n,o)=>{var r;if(n.type===o||((r=n.children)==null?void 0:r.length)!==1)return n;const i=c=>{var u;if(c.type===o)return c;if(((u=c.children)==null?void 0:u.length)!==1)return null;const[d]=c.children;return d?i(d):null},s=i(n);if(!s)return n;const l=s.children?[...s.children]:void 0,a={...n,children:l};return a.children=l,s.children=[a],s}),on(this,af,n=>{const{children:o}=n;return o&&(n.children=o.reduce((r,i,s)=>{if(s===0)return[i];const l=r.at(-1);if(l&&l.isMark&&i.isMark){i=St(this,__).call(this,i,l.type);const{children:a,...c}=i,{children:u,...d}=l;if(i.type===l.type&&a&&u&&JSON.stringify(c)===JSON.stringify(d)){const f={...d,children:[...u,...a]};return r.slice(0,-1).concat(St(this,af).call(this,f))}}return r.concat(i)},[])),n}),on(this,g_,n=>{const o={...n.props,type:n.type};return n.children&&(o.children=n.children),n.value&&(o.value=n.value),o}),this.openNode=(n,o,r)=>(this.open(A8.create(n,void 0,o,r)),this),on(this,v_,(n,o)=>{let r="",i="";const s=n.children;let l=-1,a=-1;const c=d=>{d&&d.forEach((f,p)=>{f.type==="text"&&f.value&&(l<0&&(l=p),a=p)})};if(s){c(s);const d=s==null?void 0:s[a],f=s==null?void 0:s[l];d&&d.value.endsWith(" ")&&(i=d.value.match(/ +$/)[0],d.value=d.value.trimEnd()),f&&f.value.startsWith(" ")&&(r=f.value.match(/^ +/)[0],f.value=f.value.trimStart())}r.length&&St(this,ua).call(this,"text",void 0,r);const u=o();return i.length&&St(this,ua).call(this,"text",void 0,i),u}),on(this,jc,(n=!1)=>{const o=this.close(),r=()=>St(this,ua).call(this,o.type,o.children,o.value,o.props);return n?St(this,v_).call(this,o,r):r()}),this.closeNode=()=>(St(this,jc).call(this),this),on(this,ua,(n,o,r,i)=>{const s=A8.create(n,o,r,i),l=St(this,af).call(this,St(this,g_).call(this,s));return this.push(l),l}),this.addNode=(n,o,r,i)=>(St(this,ua).call(this,n,o,r,i),this),on(this,b_,(n,o,r,i)=>n.isInSet(St(this,is))?this:(on(this,is,n.addToSet(St(this,is))),this.openNode(o,r,{...i,isMark:!0}))),on(this,cf,n=>{n.isInSet(St(this,is))&&(on(this,is,n.type.removeFromSet(St(this,is))),St(this,jc).call(this,!0))}),this.withMark=(n,o,r,i)=>(St(this,b_).call(this,n,o,r,i),this),this.closeMark=n=>(St(this,cf).call(this,n),this),this.build=()=>{let n=null;do n=St(this,jc).call(this);while(this.size());return n},this.next=n=>xge(n)?(n.forEach(o=>{St(this,lf).call(this,o)}),this):(St(this,lf).call(this,n),this),this.toString=n=>n.stringify(this.build()),this.run=n=>(this.next(n),this),this.schema=t}};is=new WeakMap,sf=new WeakMap,h_=new WeakMap,m_=new WeakMap,lf=new WeakMap,__=new WeakMap,af=new WeakMap,g_=new WeakMap,v_=new WeakMap,jc=new WeakMap,ua=new WeakMap,b_=new WeakMap,cf=new WeakMap,By.create=(e,t)=>{const n=new By(e);return o=>(n.run(o),n.toString(t))};let Cge=By;const YI=65535,ZI=Math.pow(2,16);function Sge(e,t){return e+t*ZI}function I8(e){return e&YI}function $ge(e){return(e-(e&YI))/ZI}const JI=1,XI=2,y_=4,QI=8;class zy{constructor(t,n,o){this.pos=t,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&QI)>0}get deletedBefore(){return(this.delInfo&(JI|y_))>0}get deletedAfter(){return(this.delInfo&(XI|y_))>0}get deletedAcross(){return(this.delInfo&y_)>0}}class tr{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&tr.empty)return tr.empty}recover(t){let n=0,o=I8(t);if(!this.inverted)for(let r=0;r<o;r++)n+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[o*3]+n+$ge(t)}mapResult(t,n=1){return this._map(t,n,!1)}map(t,n=1){return this._map(t,n,!0)}_map(t,n,o){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>t)break;let c=this.ranges[l+i],u=this.ranges[l+s],d=a+c;if(t<=d){let f=c?t==a?-1:t==d?1:n:n,p=a+r+(f<0?0:u);if(o)return p;let h=t==(n<0?a:d)?null:Sge(l/3,t-a),m=t==a?XI:t==d?JI:y_;return(n<0?t!=a:t!=d)&&(m|=QI),new zy(p,m,h)}r+=u-c}return o?t+r:new zy(t+r,0,null)}touches(t,n){let o=0,r=I8(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?o:0);if(a>t)break;let c=this.ranges[l+i],u=a+c;if(t<=u&&l==r*3)return!0;o+=this.ranges[l+s]-c}return!1}forEach(t){let n=this.inverted?2:1,o=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let s=this.ranges[r],l=s-(this.inverted?i:0),a=s+(this.inverted?0:i),c=this.ranges[r+n],u=this.ranges[r+o];t(l,l+c,a,a+u),i+=u-c}}invert(){return new tr(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?tr.empty:new tr(t<0?[0,-t,0]:[0,0,t])}}tr.empty=new tr([]);class gu{constructor(t=[],n,o=0,r=t.length){this.maps=t,this.mirror=n,this.from=o,this.to=r}slice(t=0,n=this.maps.length){return new gu(this.maps,this.mirror,t,n)}copy(){return new gu(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(t,n){this.to=this.maps.push(t),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(t){for(let n=0,o=this.maps.length;n<t.maps.length;n++){let r=t.getMirror(n);this.appendMap(t.maps[n],r!=null&&r<n?o+r:void 0)}}getMirror(t){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==t)return this.mirror[n+(n%2?-1:1)]}}setMirror(t,n){this.mirror||(this.mirror=[]),this.mirror.push(t,n)}appendMappingInverted(t){for(let n=t.maps.length-1,o=this.maps.length+t.maps.length;n>=0;n--){let r=t.getMirror(n);this.appendMap(t.maps[n].invert(),r!=null&&r>n?o-r-1:void 0)}}invert(){let t=new gu;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let o=this.from;o<this.to;o++)t=this.maps[o].map(t,n);return t}mapResult(t,n=1){return this._map(t,n,!1)}_map(t,n,o){let r=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],l=s.mapResult(t,n);if(l.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,t=this.maps[a].recover(l.recover);continue}}r|=l.delInfo,t=l.pos}return o?t:new zy(t,r,null)}}const wv=Object.create(null);class ho{getMap(){return tr.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=wv[n.stepType];if(!o)throw new RangeError(`No step type ${n.stepType} defined`);return o.fromJSON(t,n)}static jsonID(t,n){if(t in wv)throw new RangeError("Duplicate use of step JSON ID "+t);return wv[t]=n,n.prototype.jsonID=t,n}}class Mn{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new Mn(t,null)}static fail(t){return new Mn(null,t)}static fromReplace(t,n,o,r){try{return Mn.ok(t.replace(n,o,r))}catch(i){if(i instanceof Ng)return Mn.fail(i.message);throw i}}}function J3(e,t,n){let o=[];for(let r=0;r<e.childCount;r++){let i=e.child(r);i.content.size&&(i=i.copy(J3(i.content,t,i))),i.isInline&&(i=t(i,n,r)),o.push(i)}return Me.fromArray(o)}class hs extends ho{constructor(t,n,o){super(),this.from=t,this.to=n,this.mark=o}apply(t){let n=t.slice(this.from,this.to),o=t.resolve(this.from),r=o.node(o.sharedDepth(this.to)),i=new Ve(J3(n.content,(s,l)=>!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),r),n.openStart,n.openEnd);return Mn.fromReplace(t,this.from,this.to,i)}invert(){return new Mi(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),o=t.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new hs(n.pos,o.pos,this.mark)}merge(t){return t instanceof hs&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new hs(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new hs(n.from,n.to,t.markFromJSON(n.mark))}}ho.jsonID("addMark",hs);class Mi extends ho{constructor(t,n,o){super(),this.from=t,this.to=n,this.mark=o}apply(t){let n=t.slice(this.from,this.to),o=new Ve(J3(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),t),n.openStart,n.openEnd);return Mn.fromReplace(t,this.from,this.to,o)}invert(){return new hs(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),o=t.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new Mi(n.pos,o.pos,this.mark)}merge(t){return t instanceof Mi&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Mi(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Mi(n.from,n.to,t.markFromJSON(n.mark))}}ho.jsonID("removeMark",Mi);class wl extends ho{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Mn.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Mn.fromReplace(t,this.pos,this.pos+1,new Ve(Me.from(o),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let o=this.mark.addToSet(n.marks);if(o.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(o))return new wl(this.pos,n.marks[r]);return new wl(this.pos,this.mark)}}return new Qu(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new wl(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new wl(n.pos,t.markFromJSON(n.mark))}}ho.jsonID("addNodeMark",wl);class Qu extends ho{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Mn.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Mn.fromReplace(t,this.pos,this.pos+1,new Ve(Me.from(o),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new wl(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Qu(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Qu(n.pos,t.markFromJSON(n.mark))}}ho.jsonID("removeNodeMark",Qu);class Yn extends ho{constructor(t,n,o,r=!1){super(),this.from=t,this.to=n,this.slice=o,this.structure=r}apply(t){return this.structure&&Vy(t,this.from,this.to)?Mn.fail("Structure replace would overwrite content"):Mn.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new tr([this.from,this.to-this.from,this.slice.size])}invert(t){return new Yn(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.from,1),o=t.mapResult(this.to,-1);return n.deletedAcross&&o.deletedAcross?null:new Yn(n.pos,Math.max(n.pos,o.pos),this.slice)}merge(t){if(!(t instanceof Yn)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?Ve.empty:new Ve(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new Yn(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?Ve.empty:new Ve(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new Yn(t.from,this.to,n,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Yn(n.from,n.to,Ve.fromJSON(t,n.slice),!!n.structure)}}ho.jsonID("replace",Yn);class co extends ho{constructor(t,n,o,r,i,s,l=!1){super(),this.from=t,this.to=n,this.gapFrom=o,this.gapTo=r,this.slice=i,this.insert=s,this.structure=l}apply(t){if(this.structure&&(Vy(t,this.from,this.gapFrom)||Vy(t,this.gapTo,this.to)))return Mn.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Mn.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?Mn.fromReplace(t,this.from,this.to,o):Mn.fail("Content does not fit in gap")}getMap(){return new tr([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new co(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),o=t.mapResult(this.to,-1),r=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),i=this.to==this.gapTo?o.pos:t.map(this.gapTo,1);return n.deletedAcross&&o.deletedAcross||r<n.pos||i>o.pos?null:new co(n.pos,o.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new co(n.from,n.to,n.gapFrom,n.gapTo,Ve.fromJSON(t,n.slice),n.insert,!!n.structure)}}ho.jsonID("replaceAround",co);function Vy(e,t,n){let o=e.resolve(t),r=n-t,i=o.depth;for(;r>0&&i>0&&o.indexAfter(i)==o.node(i).childCount;)i--,r--;if(r>0){let s=o.node(i).maybeChild(o.indexAfter(i));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function Ege(e,t,n,o){let r=[],i=[],s,l;e.doc.nodesBetween(t,n,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!o.isInSet(d)&&u.type.allowsMarkType(o.type)){let f=Math.max(c,t),p=Math.min(c+a.nodeSize,n),h=o.addToSet(d);for(let m=0;m<d.length;m++)d[m].isInSet(h)||(s&&s.to==f&&s.mark.eq(d[m])?s.to=p:r.push(s=new Mi(f,p,d[m])));l&&l.to==f?l.to=p:i.push(l=new hs(f,p,o))}}),r.forEach(a=>e.step(a)),i.forEach(a=>e.step(a))}function Tge(e,t,n,o){let r=[],i=0;e.doc.nodesBetween(t,n,(s,l)=>{if(!s.isInline)return;i++;let a=null;if(o instanceof q1){let c=s.marks,u;for(;u=o.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else o?o.isInSet(s.marks)&&(a=[o]):a=s.marks;if(a&&a.length){let c=Math.min(l+s.nodeSize,n);for(let u=0;u<a.length;u++){let d=a[u],f;for(let p=0;p<r.length;p++){let h=r[p];h.step==i-1&&d.eq(r[p].style)&&(f=h)}f?(f.to=c,f.step=i):r.push({style:d,from:Math.max(l,t),to:c,step:i})}}}),r.forEach(s=>e.step(new Mi(s.from,s.to,s.style)))}function eO(e,t,n,o=n.contentMatch,r=!0){let i=e.doc.nodeAt(t),s=[],l=t+1;for(let a=0;a<i.childCount;a++){let c=i.child(a),u=l+c.nodeSize,d=o.matchType(c.type);if(!d)s.push(new Yn(l,u,Ve.empty));else{o=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||e.step(new Mi(l,u,c.marks[f]));if(r&&c.isText&&n.whitespace!="pre"){let f,p=/\r?\n|\r/g,h;for(;f=p.exec(c.text);)h||(h=new Ve(Me.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new Yn(l+f.index,l+f.index+f[0].length,h))}}l=u}if(!o.validEnd){let a=o.fillBefore(Me.empty,!0);e.replace(l,l,new Ve(a,0,0))}for(let a=s.length-1;a>=0;a--)e.step(s[a])}function Mge(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function J1(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let o=e.depth;;--o){let r=e.$from.node(o),i=e.$from.index(o),s=e.$to.indexAfter(o);if(o<e.depth&&r.canReplace(i,s,n))return o;if(o==0||r.type.spec.isolating||!Mge(r,i,s))break}return null}function Age(e,t,n){let{$from:o,$to:r,depth:i}=t,s=o.before(i+1),l=r.after(i+1),a=s,c=l,u=Me.empty,d=0;for(let h=i,m=!1;h>n;h--)m||o.index(h)>0?(m=!0,u=Me.from(o.node(h).copy(u)),d++):a--;let f=Me.empty,p=0;for(let h=i,m=!1;h>n;h--)m||r.after(h+1)<r.end(h)?(m=!0,f=Me.from(r.node(h).copy(f)),p++):c++;e.step(new co(a,c,s,l,new Ve(u.append(f),d,p),u.size-d,!0))}function X3(e,t,n=null,o=e){let r=Ige(e,t),i=r&&Oge(o,t);return i?r.map(O8).concat({type:t,attrs:n}).concat(i.map(O8)):null}function O8(e){return{type:e,attrs:null}}function Ige(e,t){let{parent:n,startIndex:o,endIndex:r}=e,i=n.contentMatchAt(o).findWrapping(t);if(!i)return null;let s=i.length?i[0]:t;return n.canReplaceWith(o,r,s)?i:null}function Oge(e,t){let{parent:n,startIndex:o,endIndex:r}=e,i=n.child(o),s=t.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let c=o;a&&c<r;c++)a=a.matchType(n.child(c).type);return!a||!a.validEnd?null:s}function Pge(e,t,n){let o=Me.empty;for(let s=n.length-1;s>=0;s--){if(o.size){let l=n[s].type.contentMatch.matchFragment(o);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=Me.from(n[s].type.create(n[s].attrs,o))}let r=t.start,i=t.end;e.step(new co(r,i,r,i,new Ve(o,0,0),n.length,!0))}function Nge(e,t,n,o,r){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,n,(s,l)=>{let a=typeof r=="function"?r(s):r;if(s.isTextblock&&!s.hasMarkup(o,a)&&Fge(e.doc,e.mapping.slice(i).map(l),o)){let c=null;if(o.schema.linebreakReplacement){let p=o.whitespace=="pre",h=!!o.contentMatch.matchType(o.schema.linebreakReplacement);p&&!h?c=!1:!p&&h&&(c=!0)}c===!1&&Rge(e,s,l,i),eO(e,e.mapping.slice(i).map(l,1),o,void 0,c===null);let u=e.mapping.slice(i),d=u.map(l,1),f=u.map(l+s.nodeSize,1);return e.step(new co(d,f,d+1,f-1,new Ve(Me.from(o.create(a,null,s.marks)),0,0),1,!0)),c===!0&&Lge(e,s,l,i),!1}})}function Lge(e,t,n,o){t.forEach((r,i)=>{if(r.isText){let s,l=/\r?\n|\r/g;for(;s=l.exec(r.text);){let a=e.mapping.slice(o).map(n+1+i+s.index);e.replaceWith(a,a+1,t.type.schema.linebreakReplacement.create())}}})}function Rge(e,t,n,o){t.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=e.mapping.slice(o).map(n+1+i);e.replaceWith(s,s+1,t.type.schema.text(`
112 `))}})}function Fge(e,t,n){let o=e.resolve(t),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function Dge(e,t,n,o,r){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(o,null,r||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new co(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new Ve(Me.from(s),0,0),1,!0))}function Jf(e,t,n=1,o){let r=e.resolve(t),i=r.depth-n,s=o&&o[o.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let c=r.depth-1,u=n-2;c>i;c--,u--){let d=r.node(c),f=r.index(c);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(f,d.childCount),h=o&&o[u+1];h&&(p=p.replaceChild(0,h.type.create(h.attrs)));let m=o&&o[u]||d;if(!d.canReplace(f+1,d.childCount)||!m.type.validContent(p))return!1}let l=r.indexAfter(i),a=o&&o[0];return r.node(i).canReplaceWith(l,l,a?a.type:r.node(i+1).type)}function Bge(e,t,n=1,o){let r=e.doc.resolve(t),i=Me.empty,s=Me.empty;for(let l=r.depth,a=r.depth-n,c=n-1;l>a;l--,c--){i=Me.from(r.node(l).copy(i));let u=o&&o[c];s=Me.from(u?u.type.create(u.attrs,s):r.node(l).copy(s))}e.step(new Yn(t,t,new Ve(i.append(s),n,n),!0))}function X1(e,t){let n=e.resolve(t),o=n.index();return zge(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function zge(e,t){return!!(e&&t&&!e.isLeaf&&e.canAppend(t))}function Vge(e,t,n){let o=new Yn(t-n,t+n,Ve.empty,!0);e.step(o)}function jge(e,t,n){let o=e.resolve(t);if(o.parent.canReplaceWith(o.index(),o.index(),n))return t;if(o.parentOffset==0)for(let r=o.depth-1;r>=0;r--){let i=o.index(r);if(o.node(r).canReplaceWith(i,i,n))return o.before(r+1);if(i>0)return null}if(o.parentOffset==o.parent.content.size)for(let r=o.depth-1;r>=0;r--){let i=o.indexAfter(r);if(o.node(r).canReplaceWith(i,i,n))return o.after(r+1);if(i<o.node(r).childCount)return null}return null}function Hge(e,t,n){let o=e.resolve(t);if(!n.content.size)return t;let r=n.content;for(let i=0;i<n.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=o.depth;s>=0;s--){let l=s==o.depth?0:o.pos<=(o.start(s+1)+o.end(s+1))/2?-1:1,a=o.index(s)+(l>0?1:0),c=o.node(s),u=!1;if(i==1)u=c.canReplace(a,a,r);else{let d=c.contentMatchAt(a).findWrapping(r.firstChild.type);u=d&&c.canReplaceWith(a,a,d[0])}if(u)return l==0?o.pos:l<0?o.before(s+1):o.after(s+1)}return null}function Q3(e,t,n=t,o=Ve.empty){if(t==n&&!o.size)return null;let r=e.resolve(t),i=e.resolve(n);return tO(r,i,o)?new Yn(t,n,o):new Uge(r,i,o).fit()}function tO(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class Uge{constructor(t,n,o){this.$from=t,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=Me.empty;for(let r=0;r<=t.depth;r++){let i=t.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(t.indexAfter(r))})}for(let r=t.depth;r>0;r--)this.placed=Me.from(t.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,r=this.close(t<0?this.$to:o.doc.resolve(t));if(!r)return null;let i=this.placed,s=o.depth,l=r.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let a=new Ve(i,s,l);return t>-1?new co(o.pos,t,this.$to.pos,this.$to.end(),a,n):a.size||o.pos!=this.$to.pos?new Yn(o.pos,r.pos,a):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,o=0,r=this.unplaced.openEnd;o<t;o++){let i=n.firstChild;if(n.childCount>1&&(r=0),i.type.spec.isolating&&r<=o){t=o;break}n=i.content}for(let n=1;n<=2;n++)for(let o=n==1?t:this.unplaced.openStart;o>=0;o--){let r,i=null;o?(i=kv(this.unplaced.content,o-1).firstChild,r=i.content):r=this.unplaced.content;let s=r.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:c}=this.frontier[l],u,d=null;if(n==1&&(s?c.matchType(s.type)||(d=c.fillBefore(Me.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:l,parent:i,inject:d};if(n==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:l,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:t,openStart:n,openEnd:o}=this.unplaced,r=kv(t,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new Ve(t,n+1,Math.max(o,r.size+n>=t.size-o?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:o}=this.unplaced,r=kv(t,n);if(r.childCount<=1&&n>0){let i=t.size-n<=n+r.size;this.unplaced=new Ve(uf(t,n-1,1),n-1,i?n-1:o)}else this.unplaced=new Ve(uf(t,n,1),n,o)}placeNodes({sliceDepth:t,frontierDepth:n,parent:o,inject:r,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let m=0;m<i.length;m++)this.openFrontierNode(i[m]);let s=this.unplaced,l=o?o.content:s.content,a=s.openStart-t,c=0,u=[],{match:d,type:f}=this.frontier[n];if(r){for(let m=0;m<r.childCount;m++)u.push(r.child(m));d=d.matchFragment(r)}let p=l.size+t-(s.content.size-s.openEnd);for(;c<l.childCount;){let m=l.child(c),b=d.matchType(m.type);if(!b)break;c++,(c>1||a==0||m.content.size)&&(d=b,u.push(nO(m.mark(f.allowedMarks(m.marks)),c==1?a:0,c==l.childCount?p:-1)))}let h=c==l.childCount;h||(p=-1),this.placed=df(this.placed,n,Me.from(u)),this.frontier[n].match=d,h&&p<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,b=l;m<p;m++){let v=b.lastChild;this.frontier.push({type:v.type,match:v.contentMatchAt(v.childCount)}),b=v.content}this.unplaced=h?t==0?Ve.empty:new Ve(uf(s.content,t-1,1),t-1,p<0?s.openEnd:t-1):new Ve(uf(s.content,t,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],n;if(!t.type.isTextblock||!xv(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:o}=this.$to,r=this.$to.after(o);for(;o>1&&r==this.$to.end(--o);)++r;return r}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:o,type:r}=this.frontier[n],i=n<t.depth&&t.end(n+1)==t.pos+(t.depth-(n+1)),s=xv(t,n,r,o,i);if(s){for(let l=n-1;l>=0;l--){let{match:a,type:c}=this.frontier[l],u=xv(t,l,c,a,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:i?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=df(this.placed,n.depth,n.fit)),t=n.move;for(let o=n.depth+1;o<=t.depth;o++){let r=t.node(o),i=r.type.contentMatch.fillBefore(r.content,!0,t.index(o));this.openFrontierNode(r.type,r.attrs,i)}return t}openFrontierNode(t,n=null,o){let r=this.frontier[this.depth];r.match=r.match.matchType(t),this.placed=df(this.placed,this.depth,Me.from(t.create(n,o))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Me.empty,!0);n.childCount&&(this.placed=df(this.placed,this.frontier.length,n))}}function uf(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(uf(e.firstChild.content,t-1,n)))}function df(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(df(e.lastChild.content,t-1,n)))}function kv(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function nO(e,t,n){if(t<=0)return e;let o=e.content;return t>1&&(o=o.replaceChild(0,nO(o.firstChild,t-1,o.childCount==1?n-1:0))),t>0&&(o=e.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(e.type.contentMatch.matchFragment(o).fillBefore(Me.empty,!0)))),e.copy(o)}function xv(e,t,n,o,r){let i=e.node(t),s=r?e.indexAfter(t):e.index(t);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let l=o.fillBefore(i.content,!0,s);return l&&!Wge(n,i.content,s)?l:null}function Wge(e,t,n){for(let o=n;o<t.childCount;o++)if(!e.allowsMarks(t.child(o).marks))return!0;return!1}function qge(e){return e.spec.defining||e.spec.definingForContent}function Kge(e,t,n,o){if(!o.size)return e.deleteRange(t,n);let r=e.doc.resolve(t),i=e.doc.resolve(n);if(tO(r,i,o))return e.step(new Yn(t,n,o));let s=rO(r,e.doc.resolve(n));s[s.length-1]==0&&s.pop();let l=-(r.depth+1);s.unshift(l);for(let f=r.depth,p=r.pos-1;f>0;f--,p--){let h=r.node(f).type.spec;if(h.defining||h.definingAsContext||h.isolating)break;s.indexOf(f)>-1?l=f:r.before(f)==p&&s.splice(1,0,-f)}let a=s.indexOf(l),c=[],u=o.openStart;for(let f=o.content,p=0;;p++){let h=f.firstChild;if(c.push(h),p==o.openStart)break;f=h.content}for(let f=u-1;f>=0;f--){let p=c[f],h=qge(p.type);if(h&&!p.sameMarkup(r.node(Math.abs(l)-1)))u=f;else if(h||!p.type.isTextblock)break}for(let f=o.openStart;f>=0;f--){let p=(f+u+1)%(o.openStart+1),h=c[p];if(h)for(let m=0;m<s.length;m++){let b=s[(m+a)%s.length],v=!0;b<0&&(v=!1,b=-b);let E=r.node(b-1),w=r.index(b-1);if(E.canReplaceWith(w,w,h.type,h.marks))return e.replace(r.before(b),v?i.after(b):n,new Ve(oO(o.content,0,o.openStart,p),p,o.openEnd))}}let d=e.steps.length;for(let f=s.length-1;f>=0&&(e.replace(t,n,o),!(e.steps.length>d));f--){let p=s[f];p<0||(t=r.before(p),n=i.after(p))}}function oO(e,t,n,o,r){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(oO(i.content,t+1,n,o,i)))}if(t>o){let i=r.contentMatchAt(0),s=i.fillBefore(e).append(e);e=s.append(i.matchFragment(s).fillBefore(Me.empty,!0))}return e}function Gge(e,t,n,o){if(!o.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=jge(e.doc,t,o.type);r!=null&&(t=n=r)}e.replaceRange(t,n,new Ve(Me.from(o),0,0))}function Yge(e,t,n){let o=e.doc.resolve(t),r=e.doc.resolve(n),i=rO(o,r);for(let s=0;s<i.length;s++){let l=i[s],a=s==i.length-1;if(a&&l==0||o.node(l).type.contentMatch.validEnd)return e.delete(o.start(l),r.end(l));if(l>0&&(a||o.node(l-1).canReplace(o.index(l-1),r.indexAfter(l-1))))return e.delete(o.before(l),r.after(l))}for(let s=1;s<=o.depth&&s<=r.depth;s++)if(t-o.start(s)==o.depth-s&&n>o.end(s)&&r.end(s)-n!=r.depth-s)return e.delete(o.before(s),n);e.delete(t,n)}function rO(e,t){let n=[],o=Math.min(e.depth,t.depth);for(let r=o;r>=0;r--){let i=e.start(r);if(i<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(i==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==i-1)&&n.push(r)}return n}class vu extends ho{constructor(t,n,o){super(),this.pos=t,this.attr=n,this.value=o}apply(t){let n=t.nodeAt(this.pos);if(!n)return Mn.fail("No node at attribute step's position");let o=Object.create(null);for(let i in n.attrs)o[i]=n.attrs[i];o[this.attr]=this.value;let r=n.type.create(o,null,n.marks);return Mn.fromReplace(t,this.pos,this.pos+1,new Ve(Me.from(r),0,n.isLeaf?0:1))}getMap(){return tr.empty}invert(t){return new vu(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new vu(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new vu(n.pos,n.attr,n.value)}}ho.jsonID("attr",vu);class Dp extends ho{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;let o=t.type.create(n,t.content,t.marks);return Mn.ok(o)}getMap(){return tr.empty}invert(t){return new Dp(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Dp(n.attr,n.value)}}ho.jsonID("docAttr",Dp);let ed=class extends Error{};ed=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};ed.prototype=Object.create(Error.prototype);ed.prototype.constructor=ed;ed.prototype.name="TransformError";class iO{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new gu}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new ed(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,o=Ve.empty){let r=Q3(this.doc,t,n,o);return r&&this.step(r),this}replaceWith(t,n,o){return this.replace(t,n,new Ve(Me.from(o),0,0))}delete(t,n){return this.replace(t,n,Ve.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,o){return Kge(this,t,n,o),this}replaceRangeWith(t,n,o){return Gge(this,t,n,o),this}deleteRange(t,n){return Yge(this,t,n),this}lift(t,n){return Age(this,t,n),this}join(t,n=1){return Vge(this,t,n),this}wrap(t,n){return Pge(this,t,n),this}setBlockType(t,n=t,o,r=null){return Nge(this,t,n,o,r),this}setNodeMarkup(t,n,o=null,r){return Dge(this,t,n,o,r),this}setNodeAttribute(t,n,o){return this.step(new vu(t,n,o)),this}setDocAttribute(t,n){return this.step(new Dp(t,n)),this}addNodeMark(t,n){return this.step(new wl(t,n)),this}removeNodeMark(t,n){if(!(n instanceof zt)){let o=this.doc.nodeAt(t);if(!o)throw new RangeError("No node at position "+t);if(n=n.isInSet(o.marks),!n)return this}return this.step(new Qu(t,n)),this}split(t,n=1,o){return Bge(this,t,n,o),this}addMark(t,n,o){return Ege(this,t,n,o),this}removeMark(t,n,o){return Tge(this,t,n,o),this}clearIncompatible(t,n,o){return eO(this,t,n,o),this}}const Cv=Object.create(null);class ft{constructor(t,n,o){this.$anchor=t,this.$head=n,this.ranges=o||[new Vg(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n<t.length;n++)if(t[n].$from.pos!=t[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,n=Ve.empty){let o=n.content.lastChild,r=null;for(let l=0;l<n.openEnd;l++)r=o,o=o.lastChild;let i=t.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:a,$to:c}=s[l],u=t.mapping.slice(i);t.replaceRange(u.map(a.pos),u.map(c.pos),l?Ve.empty:n),l==0&&L8(t,i,(o?o.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(t,n){let o=t.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:l}=r[i],a=t.mapping.slice(o),c=a.map(s.pos),u=a.map(l.pos);i?t.deleteRange(c,u):(t.replaceRangeWith(c,u,n),L8(t,o,n.isInline?-1:1))}}static findFrom(t,n,o=!1){let r=t.parent.inlineContent?new lt(t):Hc(t.node(0),t.parent,t.pos,t.index(),n,o);if(r)return r;for(let i=t.depth-1;i>=0;i--){let s=n<0?Hc(t.node(0),t.node(i),t.before(i+1),t.index(i),n,o):Hc(t.node(0),t.node(i),t.after(i+1),t.index(i)+1,n,o);if(s)return s}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new ar(t.node(0))}static atStart(t){return Hc(t,t,0,0,1)||new ar(t)}static atEnd(t){return Hc(t,t,t.content.size,t.childCount,-1)||new ar(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=Cv[n.type];if(!o)throw new RangeError(`No selection type ${n.type} defined`);return o.fromJSON(t,n)}static jsonID(t,n){if(t in Cv)throw new RangeError("Duplicate use of selection JSON ID "+t);return Cv[t]=n,n.prototype.jsonID=t,n}getBookmark(){return lt.between(this.$anchor,this.$head).getBookmark()}}ft.prototype.visible=!0;class Vg{constructor(t,n){this.$from=t,this.$to=n}}let P8=!1;function N8(e){!P8&&!e.parent.inlineContent&&(P8=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class lt extends ft{constructor(t,n=t){N8(t),N8(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let o=t.resolve(n.map(this.head));if(!o.parent.inlineContent)return ft.near(o);let r=t.resolve(n.map(this.anchor));return new lt(r.parent.inlineContent?r:o,o)}replace(t,n=Ve.empty){if(super.replace(t,n),n==Ve.empty){let o=this.$from.marksAcross(this.$to);o&&t.ensureMarks(o)}}eq(t){return t instanceof lt&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Q1(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new lt(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,o=n){let r=t.resolve(n);return new this(r,o==n?r:t.resolve(o))}static between(t,n,o){let r=t.pos-n.pos;if((!o||r)&&(o=r>=0?1:-1),!n.parent.inlineContent){let i=ft.findFrom(n,o,!0)||ft.findFrom(n,-o,!0);if(i)n=i.$head;else return ft.near(n,o)}return t.parent.inlineContent||(r==0?t=n:(t=(ft.findFrom(t,-o,!0)||ft.findFrom(t,o,!0)).$anchor,t.pos<n.pos!=r<0&&(t=n))),new lt(t,n)}}ft.jsonID("text",lt);class Q1{constructor(t,n){this.anchor=t,this.head=n}map(t){return new Q1(t.map(this.anchor),t.map(this.head))}resolve(t){return lt.between(t.resolve(this.anchor),t.resolve(this.head))}}class at extends ft{constructor(t){let n=t.nodeAfter,o=t.node(0).resolve(t.pos+n.nodeSize);super(t,o),this.node=n}map(t,n){let{deleted:o,pos:r}=n.mapResult(this.anchor),i=t.resolve(r);return o?ft.near(i):new at(i)}content(){return new Ve(Me.from(this.node),0,0)}eq(t){return t instanceof at&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new ek(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new at(t.resolve(n.anchor))}static create(t,n){return new at(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}at.prototype.visible=!1;ft.jsonID("node",at);class ek{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:o}=t.mapResult(this.anchor);return n?new Q1(o,o):new ek(o)}resolve(t){let n=t.resolve(this.anchor),o=n.nodeAfter;return o&&at.isSelectable(o)?new at(n):ft.near(n)}}class ar extends ft{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=Ve.empty){if(n==Ve.empty){t.delete(0,t.doc.content.size);let o=ft.atStart(t.doc);o.eq(t.selection)||t.setSelection(o)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new ar(t)}map(t){return new ar(t)}eq(t){return t instanceof ar}getBookmark(){return Zge}}ft.jsonID("all",ar);const Zge={map(){return this},resolve(e){return new ar(e)}};function Hc(e,t,n,o,r,i=!1){if(t.inlineContent)return lt.create(e,n);for(let s=o-(r>0?0:1);r>0?s<t.childCount:s>=0;s+=r){let l=t.child(s);if(l.isAtom){if(!i&&at.isSelectable(l))return at.create(e,n-(r<0?l.nodeSize:0))}else{let a=Hc(e,l,n+r,r<0?l.childCount:0,r,i);if(a)return a}n+=l.nodeSize*r}return null}function L8(e,t,n){let o=e.steps.length-1;if(o<t)return;let r=e.steps[o];if(!(r instanceof Yn||r instanceof co))return;let i=e.mapping.maps[o],s;i.forEach((l,a,c,u)=>{s==null&&(s=u)}),e.setSelection(ft.near(e.doc.resolve(s),n))}const R8=1,wm=2,F8=4;class Jge extends iO{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|R8)&~wm,this.storedMarks=null,this}get selectionSet(){return(this.updated&R8)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=wm,this}ensureMarks(t){return zt.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&wm)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~wm,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let o=this.selection;return n&&(t=t.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||zt.none))),o.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,o){let r=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(o==null&&(o=n),o=o??n,!t)return this.deleteRange(n,o);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=o==n?s.marks():s.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(n,o,r.text(t,i)),this.selection.empty||this.setSelection(ft.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=F8,this}get scrolledIntoView(){return(this.updated&F8)>0}}function D8(e,t){return!t||!e?e:e.bind(t)}class ff{constructor(t,n,o){this.name=t,this.init=D8(n.init,o),this.apply=D8(n.apply,o)}}const Xge=[new ff("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new ff("selection",{init(e,t){return e.selection||ft.atStart(t.doc)},apply(e){return e.selection}}),new ff("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,o){return o.selection.$cursor?e.storedMarks:null}}),new ff("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class Sv{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Xge.slice(),n&&n.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new ff(o.key,o.spec.state,o))})}}class Ea{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=n){let r=this.config.plugins[o];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let n=[t],o=this.applyInner(t),r=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let l=this.config.plugins[s];if(l.spec.appendTransaction){let a=r?r[s].n:0,c=r?r[s].state:this,u=a<n.length&&l.spec.appendTransaction.call(l,a?n.slice(a):n,c,o);if(u&&o.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",t),!r){r=[];for(let d=0;d<this.config.plugins.length;d++)r.push(d<s?{state:o,n:n.length}:{state:this,n:0})}n.push(u),o=o.applyInner(u),i=!0}r&&(r[s]={state:o,n:n.length})}}if(!i)return{state:o,transactions:n}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Ea(this.config),o=this.config.fields;for(let r=0;r<o.length;r++){let i=o[r];n[i.name]=i.apply(t,this[i.name],this,n)}return n}get tr(){return new Jge(this)}static create(t){let n=new Sv(t.doc?t.doc.type.schema:t.schema,t.plugins),o=new Ea(n);for(let r=0;r<n.fields.length;r++)o[n.fields[r].name]=n.fields[r].init(t,o);return o}reconfigure(t){let n=new Sv(this.schema,t.plugins),o=n.fields,r=new Ea(n);for(let i=0;i<o.length;i++){let s=o[i].name;r[s]=this.hasOwnProperty(s)?this[s]:o[i].init(t,r)}return r}toJSON(t){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(o=>o.toJSON())),t&&typeof t=="object")for(let o in t){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[o],i=r.spec.state;i&&i.toJSON&&(n[o]=i.toJSON.call(r,this[r.key]))}return n}static fromJSON(t,n,o){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let r=new Sv(t.schema,t.plugins),i=new Ea(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=$l.fromJSON(t.schema,n.doc);else if(s.name=="selection")i.selection=ft.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(o)for(let l in o){let a=o[l],c=a.spec.state;if(a.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){i[s.name]=c.fromJSON.call(a,t,n[l],i);return}}i[s.name]=s.init(t,i)}}),i}}function sO(e,t,n){for(let o in e){let r=e[o];r instanceof Function?r=r.bind(t):o=="handleDOMEvents"&&(r=sO(r,t,{})),n[o]=r}return n}class wn{constructor(t){this.spec=t,this.props={},t.props&&sO(t.props,this,this.props),this.key=t.key?t.key.key:lO("plugin")}getState(t){return t[this.key]}}const $v=Object.create(null);function lO(e){return e in $v?e+"$"+ ++$v[e]:($v[e]=0,e+"$")}class mn{constructor(t="key"){this.key=lO(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}class hr{constructor(t,n,o={}){this.match=t,this.match=t,this.handler=typeof n=="string"?Qge(n):n,this.undoable=o.undoable!==!1,this.inCode=o.inCode||!1}}function Qge(e){return function(t,n,o,r){let i=e;if(n[1]){let s=n[0].lastIndexOf(n[1]);i+=n[0].slice(s+n[1].length),o+=s;let l=o-r;l>0&&(i=n[0].slice(s-l,s)+i,o=r)}return t.tr.insertText(i,o,r)}}const e1e=(e,t)=>{let n=e.plugins;for(let o=0;o<n.length;o++){let r=n[o],i;if(r.spec.isInputRules&&(i=r.getState(e))){if(t){let s=e.tr,l=i.transform;for(let a=l.steps.length-1;a>=0;a--)s.step(l.steps[a].invert(l.docs[a]));if(i.text){let a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,e.schema.text(i.text,a))}else s.delete(i.from,i.to);t(s)}return!0}}return!1};new hr(/--$/,"—");new hr(/\.\.\.$/,"…");new hr(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“");new hr(/"$/,"”");new hr(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘");new hr(/'$/,"’");function tk(e,t,n=null,o){return new hr(e,(r,i,s,l)=>{let a=n instanceof Function?n(i):n,c=r.tr.delete(s,l),u=c.doc.resolve(s),d=u.blockRange(),f=d&&X3(d,t,a);if(!f)return null;c.wrap(d,f);let p=c.doc.resolve(s-1).nodeBefore;return p&&p.type==t&&X1(c.doc,s-1)&&(!o||o(i,p))&&c.join(s-1),c})}function aO(e,t,n=null){return new hr(e,(o,r,i,s)=>{let l=o.doc.resolve(i),a=n instanceof Function?n(r):n;return l.node(-1).canReplaceWith(l.index(-1),l.indexAfter(-1),t)?o.tr.delete(i,s).setBlockType(i,i,t,a):null})}const Nl=typeof navigator<"u"?navigator:null,B8=typeof document<"u"?document:null,Kl=Nl&&Nl.userAgent||"",jy=/Edge\/(\d+)/.exec(Kl),cO=/MSIE \d/.exec(Kl),Hy=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kl),e0=!!(cO||Hy||jy),t1e=cO?document.documentMode:Hy?+Hy[1]:jy?+jy[1]:0,uO=!e0&&/gecko\/(\d+)/i.test(Kl),n1e=uO&&+(/Firefox\/(\d+)/.exec(Kl)||[0,0])[1],Uy=!e0&&/Chrome\/(\d+)/.exec(Kl),o1e=!!Uy,r1e=Uy?+Uy[1]:0,dO=!e0&&!!Nl&&/Apple Computer/.test(Nl.vendor),fO=dO&&(/Mobile\/\w+/.test(Kl)||!!Nl&&Nl.maxTouchPoints>2),i1e=fO||(Nl?/Mac/.test(Nl.platform):!1),s1e=/Android \d/.test(Kl),pO=!!B8&&"webkitFontSmoothing"in B8.documentElement.style,l1e=pO?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;var km=Object.freeze({__proto__:null,android:s1e,chrome:o1e,chrome_version:r1e,gecko:uO,gecko_version:n1e,ie:e0,ie_version:t1e,ios:fO,mac:i1e,safari:dO,webkit:pO,webkit_version:l1e});function Ev(e,t,n,o,r,i){if(e.composing)return!1;const s=e.state,l=s.doc.resolve(t);if(l.parent.type.spec.code)return!1;const a=l.parent.textBetween(Math.max(0,l.parentOffset-500),l.parentOffset,void 0,"")+o;for(let c=0;c<r.length;c++){const u=r[c].match.exec(a),d=u&&u[0]&&r[c].handler(s,u,t-(u[0].length-o.length),n);if(d)return e.dispatch(d.setMeta(i,{transform:d,from:t,to:n,text:o})),!0}return!1}const a1e=new mn("MILKDOWN_CUSTOM_INPUTRULES");function c1e({rules:e}){const t=new wn({key:a1e,isInputRules:!0,state:{init(){return null},apply(n,o){const r=n.getMeta(this);return r||(n.selectionSet||n.docChanged?null:o)}},props:{handleTextInput(n,o,r,i){return Ev(n,o,r,i,e,t)},handleDOMEvents:{compositionend:n=>(setTimeout(()=>{const{$cursor:o}=n.state.selection;o&&Ev(n,o.pos,o.pos,"",e,t)}),!1)},handleKeyDown(n,o){if(o.key!=="Enter")return!1;const{$cursor:r}=n.state.selection;return r?Ev(n,r.pos,r.pos,`
113 `,e,t):!1}}});return t}function Ch(e,t,n={}){return new hr(e,(o,r,i,s)=>{var l,a,c,u;const{tr:d}=o,f=r.length;let p=r[f-1],h=r[0],m=[],b=s;const v={group:p,fullMatch:h,start:i,end:s},E=(l=n.updateCaptured)==null?void 0:l.call(n,v);if(Object.assign(v,E),{group:p,fullMatch:h,start:i,end:s}=v,h===null||(p==null?void 0:p.trim())==="")return null;if(p){const w=h.search(/\S/),S=i+h.indexOf(p),T=S+p.length;m=(a=d.storedMarks)!=null?a:[],T<s&&d.delete(T,s),S>i&&d.delete(i+w,S),b=i+w+p.length;const $=(c=n.getAttr)==null?void 0:c.call(n,r);d.addMark(i,b,t.create($)),d.setStoredMarks(m),(u=n.beforeDispatch)==null||u.call(n,{match:r,start:i,end:s,tr:d})}return d})}var u1e=Object.defineProperty,d1e=Object.defineProperties,f1e=Object.getOwnPropertyDescriptors,z8=Object.getOwnPropertySymbols,p1e=Object.prototype.hasOwnProperty,h1e=Object.prototype.propertyIsEnumerable,V8=(e,t,n)=>t in e?u1e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m1e=(e,t)=>{for(var n in t||(t={}))p1e.call(t,n)&&V8(e,n,t[n]);if(z8)for(var n of z8(t))h1e.call(t,n)&&V8(e,n,t[n]);return e},_1e=(e,t)=>d1e(e,f1e(t));function j8(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function t0(e,t,n){const r=e.state.doc.content.size,i=j8(t,0,r),s=j8(n,0,r),l=e.coordsAtPos(i),a=e.coordsAtPos(s,-1),c=Math.min(l.top,a.top),u=Math.max(l.bottom,a.bottom),d=Math.min(l.left,a.left),f=Math.max(l.right,a.right),p=f-d,h=u-c,v={top:c,bottom:u,left:d,right:f,width:p,height:h,x:d,y:c};return _1e(m1e({},v),{toJSON:()=>v})}function n0(e){return Object.assign(Object.create(e),e).setTime(Date.now())}function g1e(e,t){return Array.isArray(e)&&e.includes(t.type)||t.type===e}function nk(e){return t=>{for(let n=t.depth;n>0;n-=1){const o=t.node(n);if(e(o)){const r=t.before(n),i=t.after(n);return{from:r,to:i,node:o}}}}}function v1e(e,t){return nk(n=>n.type===t)(e)}function b1e(e,t){const n=t.nodes[e];if(!n)throw mpe("node",e);return n}function ok(e){return t=>{for(let n=t.depth;n>0;n--){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}}function y1e(e){return t=>ok(e)(t.$from)}function w1e(e,t){if(!(e instanceof at))return;const{node:n,$from:o}=e;if(g1e(t,n))return{node:n,pos:o.pos,start:o.start(o.depth),depth:o.depth}}const rk=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function k1e(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const hO=(e,t,n)=>{let o=k1e(e,n);if(!o)return!1;let r=_O(o);if(!r){let s=o.blockRange(),l=s&&J1(s);return l==null?!1:(t&&t(e.tr.lift(s,l).scrollIntoView()),!0)}let i=r.nodeBefore;if(vO(e,r,t,-1))return!0;if(o.parent.content.size==0&&(td(i,"end")||at.isSelectable(i)))for(let s=o.depth;;s--){let l=Q3(e.doc,o.before(s),o.after(s),Ve.empty);if(l&&l.slice.size<l.to-l.from){if(t){let a=e.tr.step(l);a.setSelection(td(i,"end")?ft.findFrom(a.doc.resolve(a.mapping.map(r.pos,-1)),-1):at.create(a.doc,r.pos-i.nodeSize)),t(a.scrollIntoView())}return!0}if(s==1||o.node(s-1).childCount>1)break}return i.isAtom&&r.depth==o.depth-1?(t&&t(e.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1};function td(e,t,n=!1){for(let o=e;o;o=t=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(n&&o.childCount!=1)return!1}return!1}const mO=(e,t,n)=>{let{$head:o,empty:r}=e.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):o.parentOffset>0)return!1;i=_O(o)}let s=i&&i.nodeBefore;return!s||!at.isSelectable(s)?!1:(t&&t(e.tr.setSelection(at.create(e.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function _O(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function x1e(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const C1e=(e,t,n)=>{let o=x1e(e,n);if(!o)return!1;let r=gO(o);if(!r)return!1;let i=r.nodeAfter;if(vO(e,r,t,1))return!0;if(o.parent.content.size==0&&(td(i,"start")||at.isSelectable(i))){let s=Q3(e.doc,o.before(),o.after(),Ve.empty);if(s&&s.slice.size<s.to-s.from){if(t){let l=e.tr.step(s);l.setSelection(td(i,"start")?ft.findFrom(l.doc.resolve(l.mapping.map(r.pos)),1):at.create(l.doc,l.mapping.map(r.pos))),t(l.scrollIntoView())}return!0}}return i.isAtom&&r.depth==o.depth-1?(t&&t(e.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},S1e=(e,t,n)=>{let{$head:o,empty:r}=e.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):o.parentOffset<o.parent.content.size)return!1;i=gO(o)}let s=i&&i.nodeAfter;return!s||!at.isSelectable(s)?!1:(t&&t(e.tr.setSelection(at.create(e.doc,i.pos)).scrollIntoView()),!0)};function gO(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const $1e=(e,t)=>{let{$head:n,$anchor:o}=e.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(t&&t(e.tr.insertText(`
114 `).scrollIntoView()),!0)};function ik(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const E1e=(e,t)=>{let{$head:n,$anchor:o}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(o))return!1;let r=n.node(-1),i=n.indexAfter(-1),s=ik(r.contentMatchAt(i));if(!s||!r.canReplaceWith(i,i,s))return!1;if(t){let l=n.after(),a=e.tr.replaceWith(l,l,s.createAndFill());a.setSelection(ft.near(a.doc.resolve(l),1)),t(a.scrollIntoView())}return!0},T1e=(e,t)=>{let n=e.selection,{$from:o,$to:r}=n;if(n instanceof ar||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=ik(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let s=(!o.parentOffset&&r.index()<r.parent.childCount?o:r).pos,l=e.tr.insert(s,i.createAndFill());l.setSelection(lt.create(l.doc,s+1)),t(l.scrollIntoView())}return!0},M1e=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Jf(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let o=n.blockRange(),r=o&&J1(o);return r==null?!1:(t&&t(e.tr.lift(o,r).scrollIntoView()),!0)};function A1e(e){return(t,n)=>{let{$from:o,$to:r}=t.selection;if(t.selection instanceof at&&t.selection.node.isBlock)return!o.parentOffset||!Jf(t.doc,o.pos)?!1:(n&&n(t.tr.split(o.pos).scrollIntoView()),!0);if(!o.parent.isBlock)return!1;if(n){let i=r.parentOffset==r.parent.content.size,s=t.tr;(t.selection instanceof lt||t.selection instanceof ar)&&s.deleteSelection();let l=o.depth==0?null:ik(o.node(-1).contentMatchAt(o.indexAfter(-1))),a=e&&e(r.parent,i,o),c=a?[a]:i&&l?[{type:l}]:void 0,u=Jf(s.doc,s.mapping.map(o.pos),1,c);if(!c&&!u&&Jf(s.doc,s.mapping.map(o.pos),1,l?[{type:l}]:void 0)&&(l&&(c=[{type:l}]),u=!0),u&&(s.split(s.mapping.map(o.pos),1,c),!i&&!o.parentOffset&&o.parent.type!=l)){let d=s.mapping.map(o.before()),f=s.doc.resolve(d);l&&o.node(-1).canReplaceWith(f.index(),f.index()+1,l)&&s.setNodeMarkup(s.mapping.map(o.before()),l)}n(s.scrollIntoView())}return!0}}const I1e=A1e(),O1e=(e,t)=>(t&&t(e.tr.setSelection(new ar(e.doc))),!0);function P1e(e,t,n){let o=t.nodeBefore,r=t.nodeAfter,i=t.index();return!o||!r||!o.type.compatibleContent(r.type)?!1:!o.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-o.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(i,i+1)||!(r.isTextblock||X1(e.doc,t.pos))?!1:(n&&n(e.tr.clearIncompatible(t.pos,o.type,o.contentMatchAt(o.childCount)).join(t.pos).scrollIntoView()),!0)}function vO(e,t,n,o){let r=t.nodeBefore,i=t.nodeAfter,s,l,a=r.type.spec.isolating||i.type.spec.isolating;if(!a&&P1e(e,t,n))return!0;let c=!a&&t.parent.canReplace(t.index(),t.index()+1);if(c&&(s=(l=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&l.matchType(s[0]||i.type).validEnd){if(n){let p=t.pos+i.nodeSize,h=Me.empty;for(let v=s.length-1;v>=0;v--)h=Me.from(s[v].create(null,h));h=Me.from(r.copy(h));let m=e.tr.step(new co(t.pos-1,p,t.pos,p,new Ve(h,1,0),s.length,!0)),b=p+2*s.length;X1(m.doc,b)&&m.join(b),n(m.scrollIntoView())}return!0}let u=i.type.spec.isolating||o>0&&a?null:ft.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&J1(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(c&&td(i,"start",!0)&&td(r,"end")){let p=r,h=[];for(;h.push(p),!p.isTextblock;)p=p.lastChild;let m=i,b=1;for(;!m.isTextblock;m=m.firstChild)b++;if(p.canReplace(p.childCount,p.childCount,m.content)){if(n){let v=Me.empty;for(let w=h.length-1;w>=0;w--)v=Me.from(h[w].copy(v));let E=e.tr.step(new co(t.pos-h.length,t.pos+i.nodeSize,t.pos+b,t.pos+i.nodeSize-b,new Ve(v,h.length,0),0,!0));n(E.scrollIntoView())}return!0}}return!1}function bO(e){return function(t,n){let o=t.selection,r=e<0?o.$from:o.$to,i=r.depth;for(;r.node(i).isInline;){if(!i)return!1;i--}return r.node(i).isTextblock?(n&&n(t.tr.setSelection(lt.create(t.doc,e<0?r.start(i):r.end(i)))),!0):!1}}const N1e=bO(-1),L1e=bO(1);function sk(e,t=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),l=s&&X3(s,e,t);return l?(o&&o(n.tr.wrap(s,l).scrollIntoView()),!0):!1}}function Bp(e,t=null){return function(n,o){let r=!1;for(let i=0;i<n.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:l}}=n.selection.ranges[i];n.doc.nodesBetween(s,l,(a,c)=>{if(r)return!1;if(!(!a.isTextblock||a.hasMarkup(e,t)))if(a.type==e)r=!0;else{let u=n.doc.resolve(c),d=u.index();r=u.parent.canReplaceWith(d,d+1,e)}})}if(!r)return!1;if(o){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:a}}=n.selection.ranges[s];i.setBlockType(l,a,e,t)}o(i.scrollIntoView())}return!0}}function R1e(e,t,n,o){for(let r=0;r<t.length;r++){let{$from:i,$to:s}=t[r],l=i.depth==0?e.inlineContent&&e.type.allowsMarkType(n):!1;if(e.nodesBetween(i.pos,s.pos,(a,c)=>{if(l||!o&&a.isAtom&&a.isInline&&c>=i.pos&&c+a.nodeSize<=s.pos)return!1;l=a.inlineContent&&a.type.allowsMarkType(n)}),l)return!0}return!1}function F1e(e){let t=[];for(let n=0;n<e.length;n++){let{$from:o,$to:r}=e[n];o.doc.nodesBetween(o.pos,r.pos,(i,s)=>{if(i.isAtom&&i.content.size&&i.isInline&&s>=o.pos&&s+i.nodeSize<=r.pos)return s+1>o.pos&&t.push(new Vg(o,o.doc.resolve(s+1))),o=o.doc.resolve(s+1+i.content.size),!1}),o.pos<r.pos&&t.push(new Vg(o,r))}return t}function o0(e,t=null,n){let o=(n&&n.removeWhenPresent)!==!1,r=(n&&n.enterInlineAtoms)!==!1;return function(i,s){let{empty:l,$cursor:a,ranges:c}=i.selection;if(l&&!a||!R1e(i.doc,c,e,r))return!1;if(s)if(a)e.isInSet(i.storedMarks||a.marks())?s(i.tr.removeStoredMark(e)):s(i.tr.addStoredMark(e.create(t)));else{let u,d=i.tr;r||(c=F1e(c)),o?u=!c.some(f=>i.doc.rangeHasMark(f.$from.pos,f.$to.pos,e)):u=!c.every(f=>{let p=!1;return d.doc.nodesBetween(f.$from.pos,f.$to.pos,(h,m,b)=>{if(p)return!1;p=!e.isInSet(h.marks)&&!!b&&b.type.allowsMarkType(e)&&!(h.isText&&/^\s*$/.test(h.textBetween(Math.max(0,f.$from.pos-m),Math.min(h.nodeSize,f.$to.pos-m))))}),!p});for(let f=0;f<c.length;f++){let{$from:p,$to:h}=c[f];if(!u)d.removeMark(p.pos,h.pos,e);else{let m=p.pos,b=h.pos,v=p.nodeAfter,E=h.nodeBefore,w=v&&v.isText?/^\s*/.exec(v.text)[0].length:0,S=E&&E.isText?/\s*$/.exec(E.text)[0].length:0;m+w<b&&(m+=w,b-=S),d.addMark(m,b,e.create(t))}}s(d.scrollIntoView())}return!0}}function r0(...e){return function(t,n,o){for(let r=0;r<e.length;r++)if(e[r](t,n,o))return!0;return!1}}let Tv=r0(rk,hO,mO),H8=r0(rk,C1e,S1e);const cs={Enter:r0($1e,T1e,M1e,I1e),"Mod-Enter":E1e,Backspace:Tv,"Mod-Backspace":Tv,"Shift-Backspace":Tv,Delete:H8,"Mod-Delete":H8,"Mod-a":O1e},yO={"Ctrl-h":cs.Backspace,"Alt-Backspace":cs["Mod-Backspace"],"Ctrl-d":cs.Delete,"Ctrl-Alt-Backspace":cs["Mod-Delete"],"Alt-Delete":cs["Mod-Delete"],"Alt-d":cs["Mod-Delete"],"Ctrl-a":N1e,"Ctrl-e":L1e};for(let e in cs)yO[e]=cs[e];const D1e=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform?os.platform()=="darwin":!1,B1e=D1e?yO:cs;var Ll={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},jg={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},z1e=typeof navigator<"u"&&/Mac/.test(navigator.platform),V1e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Zn=0;Zn<10;Zn++)Ll[48+Zn]=Ll[96+Zn]=String(Zn);for(var Zn=1;Zn<=24;Zn++)Ll[Zn+111]="F"+Zn;for(var Zn=65;Zn<=90;Zn++)Ll[Zn]=String.fromCharCode(Zn+32),jg[Zn]=String.fromCharCode(Zn);for(var Mv in Ll)jg.hasOwnProperty(Mv)||(jg[Mv]=Ll[Mv]);function j1e(e){var t=z1e&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||V1e&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?jg:Ll)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const H1e=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function U1e(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let o,r,i,s;for(let l=0;l<t.length-1;l++){let a=t[l];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))o=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))H1e?s=!0:r=!0;else throw new Error("Unrecognized modifier name: "+a)}return o&&(n="Alt-"+n),r&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function W1e(e){let t=Object.create(null);for(let n in e)t[U1e(n)]=e[n];return t}function Av(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function wO(e){return new wn({props:{handleKeyDown:kO(e)}})}function kO(e){let t=W1e(e);return function(n,o){let r=j1e(o),i,s=t[Av(r,o)];if(s&&s(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let l=t[Av(r,o,!1)];if(l&&l(n.state,n.dispatch,n))return!0}if((o.shiftKey||o.altKey||o.metaKey||r.charCodeAt(0)>127)&&(i=Ll[o.keyCode])&&i!=r){let l=t[Av(i,o)];if(l&&l(n.state,n.dispatch,n))return!0}}return!1}}const Jn=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},zp=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let Wy=null;const as=function(e,t,n){let o=Wy||(Wy=document.createRange());return o.setEnd(e,n??e.nodeValue.length),o.setStart(e,t||0),o},q1e=function(){Wy=null},sc=function(e,t,n,o){return n&&(U8(e,t,n,o,-1)||U8(e,t,n,o,1))},K1e=/^(img|br|input|textarea|hr)$/i;function U8(e,t,n,o,r){for(;;){if(e==n&&t==o)return!0;if(t==(r<0?0:Ti(e))){let i=e.parentNode;if(!i||i.nodeType!=1||Sh(e)||K1e.test(e.nodeName)||e.contentEditable=="false")return!1;t=Jn(e)+(r<0?0:1),e=i}else if(e.nodeType==1){if(e=e.childNodes[t+(r<0?-1:0)],e.contentEditable=="false")return!1;t=r<0?Ti(e):0}else return!1}}function Ti(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function G1e(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=Ti(e)}else if(e.parentNode&&!Sh(e))t=Jn(e),e=e.parentNode;else return null}}function Y1e(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!Sh(e))t=Jn(e)+1,e=e.parentNode;else return null}}function Z1e(e,t,n){for(let o=t==0,r=t==Ti(e);o||r;){if(e==n)return!0;let i=Jn(e);if(e=e.parentNode,!e)return!1;o=o&&i==0,r=r&&i==Ti(e)}}function Sh(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const i0=function(e){return e.focusNode&&sc(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function va(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function J1e(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function X1e(e,t,n){if(e.caretPositionFromPoint)try{let o=e.caretPositionFromPoint(t,n);if(o)return{node:o.offsetNode,offset:o.offset}}catch{}if(e.caretRangeFromPoint){let o=e.caretRangeFromPoint(t,n);if(o)return{node:o.startContainer,offset:o.startOffset}}}const Bi=typeof navigator<"u"?navigator:null,W8=typeof document<"u"?document:null,Gl=Bi&&Bi.userAgent||"",qy=/Edge\/(\d+)/.exec(Gl),xO=/MSIE \d/.exec(Gl),Ky=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Gl),Bo=!!(xO||Ky||qy),El=xO?document.documentMode:Ky?+Ky[1]:qy?+qy[1]:0,li=!Bo&&/gecko\/(\d+)/i.test(Gl);li&&+(/Firefox\/(\d+)/.exec(Gl)||[0,0])[1];const Gy=!Bo&&/Chrome\/(\d+)/.exec(Gl),so=!!Gy,CO=Gy?+Gy[1]:0,xo=!Bo&&!!Bi&&/Apple Computer/.test(Bi.vendor),nd=xo&&(/Mobile\/\w+/.test(Gl)||!!Bi&&Bi.maxTouchPoints>2),br=nd||(Bi?/Mac/.test(Bi.platform):!1),Q1e=Bi?/Win/.test(Bi.platform):!1,Kr=/Android \d/.test(Gl),$h=!!W8&&"webkitFontSmoothing"in W8.documentElement.style,e0e=$h?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function t0e(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function ts(e,t){return typeof e=="number"?e:e[t]}function n0e(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*o}}function q8(e,t,n){let o=e.someProp("scrollThreshold")||0,r=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let s=n||e.dom;s;s=zp(s)){if(s.nodeType!=1)continue;let l=s,a=l==i.body,c=a?t0e(i):n0e(l),u=0,d=0;if(t.top<c.top+ts(o,"top")?d=-(c.top-t.top+ts(r,"top")):t.bottom>c.bottom-ts(o,"bottom")&&(d=t.bottom-t.top>c.bottom-c.top?t.top+ts(r,"top")-c.top:t.bottom-c.bottom+ts(r,"bottom")),t.left<c.left+ts(o,"left")?u=-(c.left-t.left+ts(r,"left")):t.right>c.right-ts(o,"right")&&(u=t.right-c.right+ts(r,"right")),u||d)if(a)i.defaultView.scrollBy(u,d);else{let f=l.scrollLeft,p=l.scrollTop;d&&(l.scrollTop+=d),u&&(l.scrollLeft+=u);let h=l.scrollLeft-f,m=l.scrollTop-p;t={left:t.left-h,top:t.top-m,right:t.right-h,bottom:t.bottom-m}}if(a||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function o0e(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),o,r;for(let i=(t.left+t.right)/2,s=n+1;s<Math.min(innerHeight,t.bottom);s+=5){let l=e.root.elementFromPoint(i,s);if(!l||l==e.dom||!e.dom.contains(l))continue;let a=l.getBoundingClientRect();if(a.top>=n-20){o=l,r=a.top;break}}return{refDOM:o,refTop:r,stack:SO(e.dom)}}function SO(e){let t=[],n=e.ownerDocument;for(let o=e;o&&(t.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),e!=n);o=zp(o));return t}function r0e({refDOM:e,refTop:t,stack:n}){let o=e?e.getBoundingClientRect().top:0;$O(n,o==0?0:o-t)}function $O(e,t){for(let n=0;n<e.length;n++){let{dom:o,top:r,left:i}=e[n];o.scrollTop!=r+t&&(o.scrollTop=r+t),o.scrollLeft!=i&&(o.scrollLeft=i)}}let Mc=null;function i0e(e){if(e.setActive)return e.setActive();if(Mc)return e.focus(Mc);let t=SO(e);e.focus(Mc==null?{get preventScroll(){return Mc={preventScroll:!0},!0}}:void 0),Mc||(Mc=!1,$O(t,0))}function EO(e,t){let n,o=2e8,r,i=0,s=t.top,l=t.top,a,c;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let f;if(u.nodeType==1)f=u.getClientRects();else if(u.nodeType==3)f=as(u).getClientRects();else continue;for(let p=0;p<f.length;p++){let h=f[p];if(h.top<=s&&h.bottom>=l){s=Math.max(h.bottom,s),l=Math.min(h.top,l);let m=h.left>t.left?h.left-t.left:h.right<t.left?t.left-h.right:0;if(m<o){n=u,o=m,r=m&&n.nodeType==3?{left:h.right<t.left?h.right:h.left,top:t.top}:t,u.nodeType==1&&m&&(i=d+(t.left>=(h.left+h.right)/2?1:0));continue}}else h.top>t.top&&!a&&h.left<=t.left&&h.right>=t.left&&(a=u,c={left:Math.max(h.left,Math.min(h.right,t.left)),top:h.top});!n&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(i=d+1)}}return!n&&a&&(n=a,r=c,o=0),n&&n.nodeType==3?s0e(n,r):!n||o&&n.nodeType==1?{node:e,offset:i}:EO(n,r)}function s0e(e,t){let n=e.nodeValue.length,o=document.createRange();for(let r=0;r<n;r++){o.setEnd(e,r+1),o.setStart(e,r);let i=Xs(o,1);if(i.top!=i.bottom&&lk(t,i))return{node:e,offset:r+(t.left>=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}function lk(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function l0e(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function a0e(e,t,n){let{node:o,offset:r}=EO(t,n),i=-1;if(o.nodeType==1&&!o.firstChild){let s=o.getBoundingClientRect();i=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(o,r,i)}function c0e(e,t,n,o){let r=-1;for(let i=t,s=!1;i!=e.dom;){let l=e.docView.nearestDesc(i,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)){let a=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&(!s&&a.left>o.left||a.top>o.top?r=l.posBefore:(!s&&a.right<o.left||a.bottom<o.top)&&(r=l.posAfter),s=!0),!l.contentDOM&&r<0&&!l.node.isText)return(l.node.isBlock?o.top<(a.top+a.bottom)/2:o.left<(a.left+a.right)/2)?l.posBefore:l.posAfter}i=l.dom.parentNode}return r>-1?r:e.docView.posFromDOM(t,n,-1)}function TO(e,t,n){let o=e.childNodes.length;if(o&&n.top<n.bottom)for(let r=Math.max(0,Math.min(o-1,Math.floor(o*(t.top-n.top)/(n.bottom-n.top))-2)),i=r;;){let s=e.childNodes[i];if(s.nodeType==1){let l=s.getClientRects();for(let a=0;a<l.length;a++){let c=l[a];if(lk(t,c))return TO(s,t,c)}}if((i=(i+1)%o)==r)break}return e}function u0e(e,t){let n=e.dom.ownerDocument,o,r=0,i=X1e(n,t.left,t.top);i&&({node:o,offset:r}=i);let s=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),l;if(!s||!e.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=e.dom.getBoundingClientRect();if(!lk(t,c)||(s=TO(e.dom,t,c),!s))return null}if(xo)for(let c=s;o&&c;c=zp(c))c.draggable&&(o=void 0);if(s=l0e(s,t),o){if(li&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let u=o.childNodes[r],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=t.left&&d.bottom>t.top&&r++}let c;$h&&r&&o.nodeType==1&&(c=o.childNodes[r-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=t.top&&r--,o==e.dom&&r==o.childNodes.length-1&&o.lastChild.nodeType==1&&t.top>o.lastChild.getBoundingClientRect().bottom?l=e.state.doc.content.size:(r==0||o.nodeType!=1||o.childNodes[r-1].nodeName!="BR")&&(l=c0e(e,o,r,t))}l==null&&(l=a0e(e,s,t));let a=e.docView.nearestDesc(s,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function K8(e){return e.top<e.bottom||e.left<e.right}function Xs(e,t){let n=e.getClientRects();if(n.length){let o=n[t<0?0:n.length-1];if(K8(o))return o}return Array.prototype.find.call(n,K8)||e.getBoundingClientRect()}const d0e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function MO(e,t,n){let{node:o,offset:r,atom:i}=e.docView.domFromPos(t,n<0?-1:1),s=$h||li;if(o.nodeType==3)if(s&&(d0e.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let a=Xs(as(o,r,r),n);if(li&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let c=Xs(as(o,r-1,r-1),-1);if(c.top==a.top){let u=Xs(as(o,r,r+1),-1);if(u.top!=a.top)return Ud(u,u.left<c.left)}}return a}else{let a=r,c=r,u=n<0?1:-1;return n<0&&!r?(c++,u=-1):n>=0&&r==o.nodeValue.length?(a--,u=1):n<0?a--:c++,Ud(Xs(as(o,a,c),u),u<0)}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(i==null&&r&&(n<0||r==Ti(o))){let a=o.childNodes[r-1];if(a.nodeType==1)return Iv(a.getBoundingClientRect(),!1)}if(i==null&&r<Ti(o)){let a=o.childNodes[r];if(a.nodeType==1)return Iv(a.getBoundingClientRect(),!0)}return Iv(o.getBoundingClientRect(),n>=0)}if(i==null&&r&&(n<0||r==Ti(o))){let a=o.childNodes[r-1],c=a.nodeType==3?as(a,Ti(a)-(s?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(c)return Ud(Xs(c,1),!1)}if(i==null&&r<Ti(o)){let a=o.childNodes[r];for(;a.pmViewDesc&&a.pmViewDesc.ignoreForCoords;)a=a.nextSibling;let c=a?a.nodeType==3?as(a,0,s?0:1):a.nodeType==1?a:null:null;if(c)return Ud(Xs(c,-1),!0)}return Ud(Xs(o.nodeType==3?as(o):o,-n),n>=0)}function Ud(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function Iv(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function AO(e,t,n){let o=e.state,r=e.root.activeElement;o!=t&&e.updateState(t),r!=e.dom&&e.focus();try{return n()}finally{o!=t&&e.updateState(o),r!=e.dom&&r&&r.focus()}}function f0e(e,t,n){let o=t.selection,r=n=="up"?o.$from:o.$to;return AO(e,t,()=>{let{node:i}=e.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let l=e.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let s=MO(e,r.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let a;if(l.nodeType==1)a=l.getClientRects();else if(l.nodeType==3)a=as(l,0,l.nodeValue.length).getClientRects();else continue;for(let c=0;c<a.length;c++){let u=a[c];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const p0e=/[\u0590-\u08ac]/;function h0e(e,t,n){let{$head:o}=t.selection;if(!o.parent.isTextblock)return!1;let r=o.parentOffset,i=!r,s=r==o.parent.content.size,l=e.domSelection();return l?!p0e.test(o.parent.textContent)||!l.modify?n=="left"||n=="backward"?i:s:AO(e,t,()=>{let{focusNode:a,focusOffset:c,anchorNode:u,anchorOffset:d}=e.domSelectionRange(),f=l.caretBidiLevel;l.modify("move",n,"character");let p=o.depth?e.docView.domAfterPos(o.before()):e.dom,{focusNode:h,focusOffset:m}=e.domSelectionRange(),b=h&&!p.contains(h.nodeType==1?h:h.parentNode)||a==h&&c==m;try{l.collapse(u,d),a&&(a!=u||c!=d)&&l.extend&&l.extend(a,c)}catch{}return f!=null&&(l.caretBidiLevel=f),b}):o.pos==o.start()||o.pos==o.end()}let G8=null,Y8=null,Z8=!1;function m0e(e,t,n){return G8==t&&Y8==n?Z8:(G8=t,Y8=n,Z8=n=="up"||n=="down"?f0e(e,t,n):h0e(e,t,n))}const Ir=0,J8=1,Ta=2,zi=3;class Eh{constructor(t,n,o,r){this.parent=t,this.children=n,this.dom=o,this.contentDOM=r,this.dirty=Ir,o.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,o){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,o=this.posAtStart;;n++){let r=this.children[n];if(r==t)return o;o+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,o){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(o<0){let i,s;if(t==this.contentDOM)i=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;i=t.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(t==this.contentDOM)i=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;i=t.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let r;if(t==this.dom&&this.contentDOM)r=n>Jn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=t;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&n==t.childNodes.length)for(let i=t;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??o>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let o=!0,r=t;r;r=r.parentNode){let i=this.getDesc(r),s;if(i&&(!n||i.node))if(o&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(t.nodeType==1?t:t.parentNode):s==t))o=!1;else return i}}getDesc(t){let n=t.pmViewDesc;for(let o=n;o;o=o.parent)if(o==this)return n}posFromDOM(t,n,o){for(let r=t;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(t,n,o)}return-1}descAt(t){for(let n=0,o=0;n<this.children.length;n++){let r=this.children[n],i=o+r.size;if(o==t&&i!=o){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(t<i)return r.descAt(t-o-r.border);o=i}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let o=0,r=0;for(let i=0;o<this.children.length;o++){let s=this.children[o],l=i+s.size;if(l>t||s instanceof OO){r=t-i;break}i=l}if(r)return this.children[o].domFromPos(r-this.children[o].border,n);for(let i;o&&!(i=this.children[o-1]).size&&i instanceof IO&&i.side>=0;o--);if(n<=0){let i,s=!0;for(;i=o?this.children[o-1]:null,!(!i||i.dom.parentNode==this.contentDOM);o--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?Jn(i.dom)+1:0}}else{let i,s=!0;for(;i=o<this.children.length?this.children[o]:null,!(!i||i.dom.parentNode==this.contentDOM);o++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?Jn(i.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,o=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let s=o,l=0;;l++){let a=this.children[l],c=s+a.size;if(r==-1&&t<=c){let u=s+a.border;if(t>=u&&n<=c-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(t,n,u);t=s;for(let d=l;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){r=Jn(f.dom)+1;break}t-=f.size}r==-1&&(r=0)}if(r>-1&&(c>n||l==this.children.length-1)){n=c;for(let u=l+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){i=Jn(d.dom);break}n+=d.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:t,to:n,fromOffset:r,toOffset:i}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:o}=this.domFromPos(t,0);if(n.nodeType!=1||o==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[o]}setSelection(t,n,o,r=!1){let i=Math.min(t,n),s=Math.max(t,n);for(let f=0,p=0;f<this.children.length;f++){let h=this.children[f],m=p+h.size;if(i>p&&s<m)return h.setSelection(t-p-h.border,n-p-h.border,o,r);p=m}let l=this.domFromPos(t,t?-1:1),a=n==t?l:this.domFromPos(n,n?-1:1),c=o.getSelection(),u=!1;if((li||xo)&&t==n){let{node:f,offset:p}=l;if(f.nodeType==3){if(u=!!(p&&f.nodeValue[p-1]==`
115 `),u&&p==f.nodeValue.length)for(let h=f,m;h;h=h.parentNode){if(m=h.nextSibling){m.nodeName=="BR"&&(l=a={node:m.parentNode,offset:Jn(m)+1});break}let b=h.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{let h=f.childNodes[p-1];u=h&&(h.nodeName=="BR"||h.contentEditable=="false")}}if(li&&c.focusNode&&c.focusNode!=a.node&&c.focusNode.nodeType==1){let f=c.focusNode.childNodes[c.focusOffset];f&&f.contentEditable=="false"&&(r=!0)}if(!(r||u&&xo)&&sc(l.node,l.offset,c.anchorNode,c.anchorOffset)&&sc(a.node,a.offset,c.focusNode,c.focusOffset))return;let d=!1;if((c.extend||t==n)&&!u){c.collapse(l.node,l.offset);try{t!=n&&c.extend(a.node,a.offset),d=!0}catch{}}if(!d){if(t>n){let p=l;l=a,a=p}let f=document.createRange();f.setEnd(a.node,a.offset),f.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(f)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let o=0,r=0;r<this.children.length;r++){let i=this.children[r],s=o+i.size;if(o==s?t<=s&&n>=o:t<s&&n>o){let l=o+i.border,a=s-i.border;if(t>=l&&n<=a){this.dirty=t==o||n==s?Ta:J8,t==l&&n==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=zi:i.markDirty(t-l,n-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Ta:zi}o=s}this.dirty=Ta}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let o=t==1?Ta:J8;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(t){return!1}}class IO extends Eh{constructor(t,n,o,r){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(o,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let l=document.createElement("span");l.appendChild(s),s=l}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(t,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(t){return this.dirty==Ir&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class _0e extends Eh{constructor(t,n,o,r){super(t,[],n,null),this.textDOM=o,this.text=r}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class lc extends Eh{constructor(t,n,o,r){super(t,[],o,r),this.mark=n}static create(t,n,o,r){let i=r.nodeViews[n.type.name],s=i&&i(n,r,o);return(!s||!s.dom)&&(s=Wl.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new lc(t,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&zi||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=zi&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=Ir){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=Ir}}slice(t,n,o){let r=lc.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;n<s&&(i=Jy(i,n,s,o)),t>0&&(i=Jy(i,0,t,o));for(let l=0;l<i.length;l++)i[l].parent=r;return r.children=i,r}}class Tl extends Eh{constructor(t,n,o,r,i,s,l,a,c){super(t,[],i,s),this.node=n,this.outerDeco=o,this.innerDeco=r,this.nodeDOM=l}static create(t,n,o,r,i,s){let l=i.nodeViews[n.type.name],a,c=l&&l(n,i,()=>{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},o,r),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Wl.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=LO(u,o,n),c?a=new g0e(t,n,o,r,u,d||null,f,c,i,s+1):n.isText?new s0(t,n,o,r,u,f,i):new Tl(t,n,o,r,u,d||null,f,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let o=this.children[n];if(this.dom.contains(o.dom.parentNode)){t.contentElement=o.dom.parentNode;break}}t.contentElement||(t.getContent=()=>Me.empty)}return t}matchesNode(t,n,o){return this.dirty==Ir&&t.eq(this.node)&&Zy(n,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let o=this.node.inlineContent,r=n,i=t.composing?this.localCompositionInfo(t,n):null,s=i&&i.pos>-1?i:null,l=i&&i.pos<0,a=new b0e(this,s&&s.node,t);k0e(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?a.syncToMarks(c.spec.marks,o,t):c.type.side>=0&&!d&&a.syncToMarks(u==this.node.childCount?zt.none:this.node.child(u).marks,o,t),a.placeWidget(c,t,r)},(c,u,d,f)=>{a.syncToMarks(c.marks,o,t);let p;a.findNodeMatch(c,u,d,f)||l&&t.state.selection.from>r&&t.state.selection.to<r+c.nodeSize&&(p=a.findIndexWithChild(i.node))>-1&&a.updateNodeAt(c,u,d,p,t)||a.updateNextNode(c,u,d,t,f,r)||a.addNode(c,u,d,t,r),r+=c.nodeSize}),a.syncToMarks([],o,t),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==Ta)&&(s&&this.protectLocalComposition(t,s),PO(this.contentDOM,this.children,t),nd&&x0e(this.dom))}localCompositionInfo(t,n){let{from:o,to:r}=t.state.selection;if(!(t.state.selection instanceof lt)||o<n||r>n+this.node.content.size)return null;let i=t.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,l=C0e(this.node.content,s,o-n,r-n);return l<0?null:{node:i,pos:l,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:o,text:r}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new _0e(this,i,n,r);t.input.compositionNodes.push(s),this.children=Jy(this.children,o,o+r.length,t,s)}update(t,n,o,r){return this.dirty==zi||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,o,r),!0)}updateInner(t,n,o,r){this.updateOuterDeco(n),this.node=t,this.innerDeco=o,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Ir}updateOuterDeco(t){if(Zy(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=NO(this.dom,this.nodeDOM,Yy(this.outerDeco,this.node,n),Yy(t,this.node,n)),this.dom!=o&&(o.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function X8(e,t,n,o,r){LO(o,t,e);let i=new Tl(void 0,e,t,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class s0 extends Tl{constructor(t,n,o,r,i,s,l){super(t,n,o,r,i,null,s,l,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,o,r){return this.dirty==zi||this.dirty!=Ir&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Ir||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=Ir,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,o){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,o)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,o){let r=this.node.cut(t,n),i=document.createTextNode(r.text);return new s0(this.parent,r,this.outerDeco,this.innerDeco,i,i,o)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=zi)}get domAtom(){return!1}isText(t){return this.node.text==t}}class OO extends Eh{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Ir&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class g0e extends Tl{constructor(t,n,o,r,i,s,l,a,c,u){super(t,n,o,r,i,s,l,c,u),this.spec=a}update(t,n,o,r){if(this.dirty==zi)return!1;if(this.spec.update){let i=this.spec.update(t,n,o);return i&&this.updateInner(t,n,o,r),i}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,o,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,o,r){this.spec.setSelection?this.spec.setSelection(t,n,o):super.setSelection(t,n,o,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function PO(e,t,n){let o=e.firstChild,r=!1;for(let i=0;i<t.length;i++){let s=t[i],l=s.dom;if(l.parentNode==e){for(;l!=o;)o=Q8(o),r=!0;o=o.nextSibling}else r=!0,e.insertBefore(l,o);if(s instanceof lc){let a=o?o.previousSibling:e.lastChild;PO(s.contentDOM,s.children,n),o=a?a.nextSibling:e.firstChild}}for(;o;)o=Q8(o),r=!0;r&&n.trackWrites==e&&(n.trackWrites=null)}const Xf=function(e){e&&(this.nodeName=e)};Xf.prototype=Object.create(null);const Ma=[new Xf];function Yy(e,t,n){if(e.length==0)return Ma;let o=n?Ma[0]:new Xf,r=[o];for(let i=0;i<e.length;i++){let s=e[i].type.attrs;if(s){s.nodeName&&r.push(o=new Xf(s.nodeName));for(let l in s){let a=s[l];a!=null&&(n&&r.length==1&&r.push(o=new Xf(t.isInline?"span":"div")),l=="class"?o.class=(o.class?o.class+" ":"")+a:l=="style"?o.style=(o.style?o.style+";":"")+a:l!="nodeName"&&(o[l]=a))}}}return r}function NO(e,t,n,o){if(n==Ma&&o==Ma)return t;let r=t;for(let i=0;i<o.length;i++){let s=o[i],l=n[i];if(i){let a;l&&l.nodeName==s.nodeName&&r!=e&&(a=r.parentNode)&&a.nodeName.toLowerCase()==s.nodeName||(a=document.createElement(s.nodeName),a.pmIsDeco=!0,a.appendChild(r),l=Ma[0]),r=a}v0e(r,l||Ma[0],s)}return r}function v0e(e,t,n){for(let o in t)o!="class"&&o!="style"&&o!="nodeName"&&!(o in n)&&e.removeAttribute(o);for(let o in n)o!="class"&&o!="style"&&o!="nodeName"&&n[o]!=t[o]&&e.setAttribute(o,n[o]);if(t.class!=n.class){let o=t.class?t.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&e.classList.remove(o[i]);for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&e.classList.add(r[i]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=o.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function LO(e,t,n){return NO(e,e,Ma,Yy(t,n,e.nodeType!=1))}function Zy(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function Q8(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class b0e{constructor(t,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=y0e(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let o=t;o<n;o++)this.top.children[o].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,o){let r=0,i=this.stack.length>>1,s=Math.min(i,t.length);for(;r<s&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(t[r])&&t[r].type.spec.spanning!==!1;)r++;for(;r<i;)this.destroyRest(),this.top.dirty=Ir,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<t.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let a=this.index;a<Math.min(this.index+3,this.top.children.length);a++){let c=this.top.children[a];if(c.matchesMark(t[i])&&!this.isLocked(c.dom)){l=a;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let a=lc.create(this.top,t[i],n,o);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,i++}}findNodeMatch(t,n,o,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(t,n,o))i=this.top.children.indexOf(s,this.index);else for(let l=this.index,a=Math.min(this.top.children.length,l+5);l<a;l++){let c=this.top.children[l];if(c.matchesNode(t,n,o)&&!this.preMatch.matched.has(c)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(t,n,o,r,i){let s=this.top.children[r];return s.dirty==zi&&s.dom==s.contentDOM&&(s.dirty=Ta),s.update(t,n,o,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let o=t.pmViewDesc;if(o){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==o)return r}return-1}t=n}}updateNextNode(t,n,o,r,i,s){for(let l=this.index;l<this.top.children.length;l++){let a=this.top.children[l];if(a instanceof Tl){let c=this.preMatch.matched.get(a);if(c!=null&&c!=i)return!1;let u=a.dom,d,f=this.isLocked(u)&&!(t.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==t.text&&a.dirty!=zi&&Zy(n,a.outerDeco));if(!f&&a.update(t,n,o,r))return this.destroyBetween(this.index,l),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!f&&(d=this.recreateWrapper(a,t,n,o,r,s)))return this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Ta,d.updateChildren(r,s+1),d.dirty=Ir),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,n,o,r,i,s){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content))return null;let l=Tl.create(this.top,n,o,r,i,s);if(l.contentDOM){l.children=t.children,t.children=[];for(let a of l.children)a.parent=l}return t.destroy(),l}addNode(t,n,o,r,i){let s=Tl.create(this.top,t,n,o,r,i);s.contentDOM&&s.updateChildren(r,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(t,n,o){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(t)&&(t==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let i=new IO(this.top,t,n,o);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof lc;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof s0)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((xo||so)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let o=document.createElement(t);t=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),t=="BR"&&(o.className="ProseMirror-trailingBreak");let r=new OO(this.top,[],o,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function y0e(e,t){let n=t,o=n.children.length,r=e.childCount,i=new Map,s=[];e:for(;r>0;){let l;for(;;)if(o){let c=n.children[o-1];if(c instanceof lc)n=c,o=c.children.length;else{l=c,o--;break}}else{if(n==t)break e;o=n.parent.children.indexOf(n),n=n.parent}let a=l.node;if(a){if(a!=e.child(r-1))break;--r,i.set(l,r),s.push(l)}}return{index:r,matched:i,matches:s.reverse()}}function w0e(e,t){return e.type.side-t.type.side}function k0e(e,t,n,o){let r=t.locals(e),i=0;if(r.length==0){for(let c=0;c<e.childCount;c++){let u=e.child(c);o(u,r,t.forChild(i,u),c),i+=u.nodeSize}return}let s=0,l=[],a=null;for(let c=0;;){let u,d;for(;s<r.length&&r[s].to==i;){let b=r[s++];b.widget&&(u?(d||(d=[u])).push(b):u=b)}if(u)if(d){d.sort(w0e);for(let b=0;b<d.length;b++)n(d[b],c,!!a)}else n(u,c,!!a);let f,p;if(a)p=-1,f=a,a=null;else if(c<e.childCount)p=c,f=e.child(c++);else break;for(let b=0;b<l.length;b++)l[b].to<=i&&l.splice(b--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)l.push(r[s++]);let h=i+f.nodeSize;if(f.isText){let b=h;s<r.length&&r[s].from<b&&(b=r[s].from);for(let v=0;v<l.length;v++)l[v].to<b&&(b=l[v].to);b<h&&(a=f.cut(b-i),f=f.cut(0,b-i),h=b,p=-1)}else for(;s<r.length&&r[s].to<h;)s++;let m=f.isInline&&!f.isLeaf?l.filter(b=>!b.inline):l.slice();o(f,m,t.forChild(i,f),p),i=h}}function x0e(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function C0e(e,t,n,o){for(let r=0,i=0;r<e.childCount&&i<=o;){let s=e.child(r++),l=i;if(i+=s.nodeSize,!s.isText)continue;let a=s.text;for(;r<e.childCount;){let c=e.child(r++);if(i+=c.nodeSize,!c.isText)break;a+=c.text}if(i>=n){if(i>=o&&a.slice(o-t.length-l,o-l)==t)return o-t.length;let c=l<o?a.lastIndexOf(t,o-l-1):-1;if(c>=0&&c+t.length+l>=n)return l+c;if(n==o&&a.length>=o+t.length-l&&a.slice(o-l,o-l+t.length)==t)return o}}return-1}function Jy(e,t,n,o,r){let i=[];for(let s=0,l=0;s<e.length;s++){let a=e[s],c=l,u=l+=a.size;c>=n||u<=t?i.push(a):(c<t&&i.push(a.slice(0,t-c,o)),r&&(i.push(r),r=void 0),u>n&&i.push(a.slice(n-c,a.size,o)))}return i}function ak(e,t=null){let n=e.domSelectionRange(),o=e.state.doc;if(!n.focusNode)return null;let r=e.docView.nearestDesc(n.focusNode),i=r&&r.size==0,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let l=o.resolve(s),a,c;if(i0(n)){for(a=l;r&&!r.node;)r=r.parent;let u=r.node;if(r&&u.isAtom&&at.isSelectable(u)&&r.parent&&!(u.isInline&&Z1e(n.focusNode,n.focusOffset,r.dom))){let d=r.posBefore;c=new at(s==d?l:o.resolve(d))}}else{let u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;a=o.resolve(u)}if(!c){let u=t=="pointer"||e.state.selection.head<l.pos&&!i?1:-1;c=ck(e,a,l,u)}return c}function RO(e){return e.editable?e.hasFocus():DO(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function bs(e,t=!1){let n=e.state.selection;if(FO(e,n),!!RO(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&so){let o=e.domSelectionRange(),r=e.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&sc(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)$0e(e);else{let{anchor:o,head:r}=n,i,s;eS&&!(n instanceof lt)&&(n.$from.parent.inlineContent||(i=tS(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=tS(e,n.to))),e.docView.setSelection(o,r,e.root,t),eS&&(i&&nS(i),s&&nS(s)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&S0e(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const eS=xo||so&&CO<63;function tS(e,t){let{node:n,offset:o}=e.docView.domFromPos(t,0),r=o<n.childNodes.length?n.childNodes[o]:null,i=o?n.childNodes[o-1]:null;if(xo&&r&&r.contentEditable=="false")return Ov(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Ov(r);if(i)return Ov(i)}}function Ov(e){return e.contentEditable="true",xo&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function nS(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function S0e(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),o=n.anchorNode,r=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=o||n.anchorOffset!=r)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!RO(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function $0e(e){let t=e.domSelection(),n=document.createRange();if(!t)return;let o=e.cursorWrapper.dom,r=o.nodeName=="IMG";r?n.setStart(o.parentNode,Jn(o)+1):n.setStart(o,0),n.collapse(!0),t.removeAllRanges(),t.addRange(n),!r&&!e.state.selection.visible&&Bo&&El<=11&&(o.disabled=!0,o.disabled=!1)}function FO(e,t){if(t instanceof at){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(oS(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else oS(e)}function oS(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function ck(e,t,n,o){return e.someProp("createSelectionBetween",r=>r(e,t,n))||lt.between(t,n,o)}function rS(e){return e.editable&&!e.hasFocus()?!1:DO(e)}function DO(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function E0e(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return sc(t.node,t.offset,n.anchorNode,n.anchorOffset)}function Xy(e,t){let{$anchor:n,$head:o}=e.selection,r=t>0?n.max(o):n.min(o),i=r.parent.inlineContent?r.depth?e.doc.resolve(t>0?r.after():r.before()):null:r;return i&&ft.findFrom(i,t)}function ul(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function iS(e,t,n){let o=e.state.selection;if(o instanceof lt)if(n.indexOf("s")>-1){let{$head:r}=o,i=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=e.state.doc.resolve(r.pos+i.nodeSize*(t<0?-1:1));return ul(e,new lt(o.$anchor,s))}else if(o.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let r=Xy(e.state,t);return r&&r instanceof at?ul(e,r):!1}else if(!(br&&n.indexOf("m")>-1)){let r=o.$head,i=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter,s;if(!i||i.isText)return!1;let l=t<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(s=e.docView.descAt(l))&&!s.contentDOM?at.isSelectable(i)?ul(e,new at(t<0?e.state.doc.resolve(r.pos-i.nodeSize):r)):$h?ul(e,new lt(e.state.doc.resolve(t<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof at&&o.node.isInline)return ul(e,new lt(t>0?o.$to:o.$from));{let r=Xy(e.state,t);return r?ul(e,r):!1}}}function Hg(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Qf(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function Ac(e,t){return t<0?T0e(e):M0e(e)}function T0e(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let r,i,s=!1;for(li&&n.nodeType==1&&o<Hg(n)&&Qf(n.childNodes[o],-1)&&(s=!0);;)if(o>0){if(n.nodeType!=1)break;{let l=n.childNodes[o-1];if(Qf(l,-1))r=n,i=--o;else if(l.nodeType==3)n=l,o=n.nodeValue.length;else break}}else{if(BO(n))break;{let l=n.previousSibling;for(;l&&Qf(l,-1);)r=n.parentNode,i=Jn(l),l=l.previousSibling;if(l)n=l,o=Hg(n);else{if(n=n.parentNode,n==e.dom)break;o=0}}}s?Qy(e,n,o):r&&Qy(e,r,i)}function M0e(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let r=Hg(n),i,s;for(;;)if(o<r){if(n.nodeType!=1)break;let l=n.childNodes[o];if(Qf(l,1))i=n,s=++o;else break}else{if(BO(n))break;{let l=n.nextSibling;for(;l&&Qf(l,1);)i=l.parentNode,s=Jn(l)+1,l=l.nextSibling;if(l)n=l,o=0,r=Hg(n);else{if(n=n.parentNode,n==e.dom)break;o=r=0}}}i&&Qy(e,i,s)}function BO(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function A0e(e,t){for(;e&&t==e.childNodes.length&&!Sh(e);)t=Jn(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function I0e(e,t){for(;e&&!t&&!Sh(e);)t=Jn(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function Qy(e,t,n){if(t.nodeType!=3){let i,s;(s=A0e(t,n))?(t=s,n=0):(i=I0e(t,n))&&(t=i,n=i.nodeValue.length)}let o=e.domSelection();if(!o)return;if(i0(o)){let i=document.createRange();i.setEnd(t,n),i.setStart(t,n),o.removeAllRanges(),o.addRange(i)}else o.extend&&o.extend(t,n);e.domObserver.setCurSelection();let{state:r}=e;setTimeout(()=>{e.state==r&&bs(e)},50)}function sS(e,t){let n=e.state.doc.resolve(t);if(!(so||Q1e)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let i=e.coordsAtPos(t-1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(t<n.end()){let i=e.coordsAtPos(t+1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function lS(e,t,n){let o=e.state.selection;if(o instanceof lt&&!o.empty||n.indexOf("s")>-1||br&&n.indexOf("m")>-1)return!1;let{$from:r,$to:i}=o;if(!r.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let s=Xy(e.state,t);if(s&&s instanceof at)return ul(e,s)}if(!r.parent.inlineContent){let s=t<0?r:i,l=o instanceof ar?ft.near(s,t):ft.findFrom(s,t);return l?ul(e,l):!1}return!1}function aS(e,t){if(!(e.state.selection instanceof lt))return!0;let{$head:n,$anchor:o,empty:r}=e.state.selection;if(!n.sameParent(o))return!0;if(!r)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=e.state.tr;return t<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),e.dispatch(s),!0}return!1}function cS(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function O0e(e){if(!xo||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let o=t.firstChild;cS(e,o,"true"),setTimeout(()=>cS(e,o,"false"),20)}return!1}function P0e(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function N0e(e,t){let n=t.keyCode,o=P0e(t);if(n==8||br&&n==72&&o=="c")return aS(e,-1)||Ac(e,-1);if(n==46&&!t.shiftKey||br&&n==68&&o=="c")return aS(e,1)||Ac(e,1);if(n==13||n==27)return!0;if(n==37||br&&n==66&&o=="c"){let r=n==37?sS(e,e.state.selection.from)=="ltr"?-1:1:-1;return iS(e,r,o)||Ac(e,r)}else if(n==39||br&&n==70&&o=="c"){let r=n==39?sS(e,e.state.selection.from)=="ltr"?1:-1:1;return iS(e,r,o)||Ac(e,r)}else{if(n==38||br&&n==80&&o=="c")return lS(e,-1,o)||Ac(e,-1);if(n==40||br&&n==78&&o=="c")return O0e(e)||lS(e,1,o)||Ac(e,1);if(o==(br?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function zO(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:o,openStart:r,openEnd:i}=t;for(;r>1&&i>1&&o.childCount==1&&o.firstChild.childCount==1;){r--,i--;let p=o.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),o=p.content}let s=e.someProp("clipboardSerializer")||Wl.fromSchema(e.state.schema),l=qO(),a=l.createElement("div");a.appendChild(s.serializeFragment(o,{document:l}));let c=a.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=WO[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let h=l.createElement(u[p]);for(;a.firstChild;)h.appendChild(a.firstChild);a.appendChild(h),d++}c=a.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${r} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,`
116
117 `);return{dom:a,text:f,slice:t}}function VO(e,t,n,o,r){let i=r.parent.type.spec.code,s,l;if(!n&&!t)return null;let a=t&&(o||i||!n);if(a){if(e.someProp("transformPastedText",f=>{t=f(t,i||o,e)}),i)return t?new Ve(Me.from(e.state.schema.text(t.replace(/\r\n?/g,`
118 `))),0,0):Ve.empty;let d=e.someProp("clipboardTextParser",f=>f(t,r,o,e));if(d)l=d;else{let f=r.marks(),{schema:p}=e.state,h=Wl.fromSchema(p);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let b=s.appendChild(document.createElement("p"));m&&b.appendChild(h.serializeNode(p.text(m,f)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),s=F0e(n),$h&&D0e(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let f=s.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;s=f}if(l||(l=(e.someProp("clipboardParser")||e.someProp("domParser")||rc.fromSchema(e.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||u),context:r,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!L0e.test(f.parentNode.nodeName)?{ignore:!0}:null}})),u)l=B0e(uS(l,+u[1],+u[2]),u[4]);else if(l=Ve.maxOpen(R0e(l.content,r),!0),l.openStart||l.openEnd){let d=0,f=0;for(let p=l.content.firstChild;d<l.openStart&&!p.type.spec.isolating;d++,p=p.firstChild);for(let p=l.content.lastChild;f<l.openEnd&&!p.type.spec.isolating;f++,p=p.lastChild);l=uS(l,d,f)}return e.someProp("transformPasted",d=>{l=d(l,e)}),l}const L0e=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function R0e(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,s=[];if(e.forEach(l=>{if(!s)return;let a=r.findWrapping(l.type),c;if(!a)return s=null;if(c=s.length&&i.length&&HO(a,i,l,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=UO(s[s.length-1],i.length));let u=jO(l,a);s.push(u),r=r.matchType(u.type),i=a}}),s)return Me.from(s)}return e}function jO(e,t,n=0){for(let o=t.length-1;o>=n;o--)e=t[o].create(null,Me.from(e));return e}function HO(e,t,n,o,r){if(r<e.length&&r<t.length&&e[r]==t[r]){let i=HO(e,t,n,o.lastChild,r+1);if(i)return o.copy(o.content.replaceChild(o.childCount-1,i));if(o.contentMatchAt(o.childCount).matchType(r==e.length-1?n.type:e[r+1]))return o.copy(o.content.append(Me.from(jO(n,e,r+1))))}}function UO(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,UO(e.lastChild,t-1)),o=e.contentMatchAt(e.childCount).fillBefore(Me.empty,!0);return e.copy(n.append(o))}function e2(e,t,n,o,r,i){let s=t<0?e.firstChild:e.lastChild,l=s.content;return e.childCount>1&&(i=0),r<o-1&&(l=e2(l,t,n,o,r+1,i)),r>=n&&(l=t<0?s.contentMatchAt(0).fillBefore(l,i<=r).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(Me.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}function uS(e,t,n){return t<e.openStart&&(e=new Ve(e2(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new Ve(e2(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const WO={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let dS=null;function qO(){return dS||(dS=document.implementation.createHTMLDocument("title"))}function F0e(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=qO().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e),r;if((r=o&&WO[o[1].toLowerCase()])&&(e=r.map(i=>"<"+i+">").join("")+e+r.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=e,r)for(let i=0;i<r.length;i++)n=n.querySelector(r[i])||n;return n}function D0e(e){let t=e.querySelectorAll(so?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let o=t[n];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),o)}}function B0e(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,o;try{o=JSON.parse(t)}catch{return e}let{content:r,openStart:i,openEnd:s}=e;for(let l=o.length-2;l>=0;l-=2){let a=n.nodes[o[l]];if(!a||a.hasRequiredAttrs())break;r=Me.from(a.create(o[l+1],r)),i++,s++}return new Ve(r,i,s)}const Co={},So={},z0e={touchstart:!0,touchmove:!0};class V0e{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function j0e(e){for(let t in Co){let n=Co[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=o=>{U0e(e,o)&&!uk(e,o)&&(e.editable||!(o.type in So))&&n(e,o)},z0e[t]?{passive:!0}:void 0)}xo&&e.dom.addEventListener("input",()=>null),t2(e)}function kl(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function H0e(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function t2(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=o=>uk(e,o))})}function uk(e,t){return e.someProp("handleDOMEvents",n=>{let o=n[t.type];return o?o(e,t)||t.defaultPrevented:!1})}function U0e(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function W0e(e,t){!uk(e,t)&&Co[t.type]&&(e.editable||!(t.type in So))&&Co[t.type](e,t)}So.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!GO(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Kr&&so&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),nd&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let o=Date.now();e.input.lastIOSEnter=o,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==o&&(e.someProp("handleKeyDown",r=>r(e,va(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",o=>o(e,n))||N0e(e,n)?n.preventDefault():kl(e,"key")};So.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};So.keypress=(e,t)=>{let n=t;if(GO(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||br&&n.metaKey)return;if(e.someProp("handleKeyPress",r=>r(e,n))){n.preventDefault();return}let o=e.state.selection;if(!(o instanceof lt)||!o.$from.sameParent(o.$to)){let r=String.fromCharCode(n.charCode);!/[\r\n]/.test(r)&&!e.someProp("handleTextInput",i=>i(e,o.$from.pos,o.$to.pos,r))&&e.dispatch(e.state.tr.insertText(r).scrollIntoView()),n.preventDefault()}};function l0(e){return{left:e.clientX,top:e.clientY}}function q0e(e,t){let n=t.x-e.clientX,o=t.y-e.clientY;return n*n+o*o<100}function dk(e,t,n,o,r){if(o==-1)return!1;let i=e.state.doc.resolve(o);for(let s=i.depth+1;s>0;s--)if(e.someProp(t,l=>s>i.depth?l(e,n,i.nodeAfter,i.before(s),r,!0):l(e,n,i.node(s),i.before(s),r,!1)))return!0;return!1}function bu(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let o=e.state.tr.setSelection(t);n=="pointer"&&o.setMeta("pointer",!0),e.dispatch(o)}function K0e(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),o=n.nodeAfter;return o&&o.isAtom&&at.isSelectable(o)?(bu(e,new at(n),"pointer"),!0):!1}function G0e(e,t){if(t==-1)return!1;let n=e.state.selection,o,r;n instanceof at&&(o=n.node);let i=e.state.doc.resolve(t);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(at.isSelectable(l)){o&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?r=i.before(n.$from.depth):r=i.before(s);break}}return r!=null?(bu(e,at.create(e.state.doc,r),"pointer"),!0):!1}function Y0e(e,t,n,o,r){return dk(e,"handleClickOn",t,n,o)||e.someProp("handleClick",i=>i(e,t,o))||(r?G0e(e,n):K0e(e,n))}function Z0e(e,t,n,o){return dk(e,"handleDoubleClickOn",t,n,o)||e.someProp("handleDoubleClick",r=>r(e,t,o))}function J0e(e,t,n,o){return dk(e,"handleTripleClickOn",t,n,o)||e.someProp("handleTripleClick",r=>r(e,t,o))||X0e(e,n,o)}function X0e(e,t,n){if(n.button!=0)return!1;let o=e.state.doc;if(t==-1)return o.inlineContent?(bu(e,lt.create(o,0,o.content.size),"pointer"),!0):!1;let r=o.resolve(t);for(let i=r.depth+1;i>0;i--){let s=i>r.depth?r.nodeAfter:r.node(i),l=r.before(i);if(s.inlineContent)bu(e,lt.create(o,l+1,l+1+s.content.size),"pointer");else if(at.isSelectable(s))bu(e,at.create(o,l),"pointer");else continue;return!0}}function fk(e){return Ug(e)}const KO=br?"metaKey":"ctrlKey";Co.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let o=fk(e),r=Date.now(),i="singleClick";r-e.input.lastClick.time<500&&q0e(n,e.input.lastClick)&&!n[KO]&&(e.input.lastClick.type=="singleClick"?i="doubleClick":e.input.lastClick.type=="doubleClick"&&(i="tripleClick")),e.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:i};let s=e.posAtCoords(l0(n));s&&(i=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new Q0e(e,s,n,!!o)):(i=="doubleClick"?Z0e:J0e)(e,s.pos,s.inside,n)?n.preventDefault():kl(e,"pointer"))};class Q0e{constructor(t,n,o,r){this.view=t,this.pos=n,this.event=o,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!o[KO],this.allowDefault=o.shiftKey;let i,s;if(n.inside>-1)i=t.state.doc.nodeAt(n.inside),s=n.inside;else{let u=t.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const l=r?null:o.target,a=l?t.docView.nearestDesc(l,!0):null;this.target=a&&a.dom.nodeType==1?a.dom:null;let{selection:c}=t.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof at&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&li&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),kl(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>bs(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(l0(t))),this.updateAllowDefault(t),this.allowDefault||!n?kl(this.view,"pointer"):Y0e(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||xo&&this.mightDrag&&!this.mightDrag.node.isAtom||so&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(bu(this.view,ft.near(this.view.state.doc.resolve(n.pos)),"pointer"),t.preventDefault()):kl(this.view,"pointer")}move(t){this.updateAllowDefault(t),kl(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Co.touchstart=e=>{e.input.lastTouch=Date.now(),fk(e),kl(e,"pointer")};Co.touchmove=e=>{e.input.lastTouch=Date.now(),kl(e,"pointer")};Co.contextmenu=e=>fk(e);function GO(e,t){return e.composing?!0:xo&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const eve=Kr?5e3:-1;So.compositionstart=So.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof lt&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),Ug(e,!0),e.markCursor=null;else if(Ug(e,!t.selection.empty),li&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let o=e.domSelectionRange();for(let r=o.focusNode,i=o.focusOffset;r&&r.nodeType==1&&i!=0;){let s=i<0?r.lastChild:r.childNodes[i-1];if(!s)break;if(s.nodeType==3){let l=e.domSelection();l&&l.collapse(s,s.nodeValue.length);break}else r=s,i=-1}}e.input.composing=!0}YO(e,eve)};So.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,YO(e,20))};function YO(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Ug(e),t))}function ZO(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=nve());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function tve(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=G1e(t.focusNode,t.focusOffset),o=Y1e(t.focusNode,t.focusOffset);if(n&&o&&n!=o){let r=o.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||o==i)return i;if(!r||!r.isText(o.nodeValue))return o;if(e.input.compositionNode==o){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return o}}return n||o}function nve(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Ug(e,t=!1){if(!(Kr&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),ZO(e),t||e.docView&&e.docView.dirty){let n=ak(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!e.state.selection.empty?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function ove(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),o.removeAllRanges(),o.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const Vp=Bo&&El<15||nd&&e0e<604;Co.copy=So.cut=(e,t)=>{let n=t,o=e.state.selection,r=n.type=="cut";if(o.empty)return;let i=Vp?null:n.clipboardData,s=o.content(),{dom:l,text:a}=zO(e,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",a)):ove(e,l),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function rve(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function ive(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,o=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let r=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),o.parentNode&&o.parentNode.removeChild(o),n?jp(e,o.value,null,r,t):jp(e,o.textContent,o.innerHTML,r,t)},50)}function jp(e,t,n,o,r){let i=VO(e,t,n,o,e.state.selection.$from);if(e.someProp("handlePaste",a=>a(e,r,i||Ve.empty)))return!0;if(!i)return!1;let s=rve(i),l=s?e.state.tr.replaceSelectionWith(s,o):e.state.tr.replaceSelection(i);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function JO(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}So.paste=(e,t)=>{let n=t;if(e.composing&&!Kr)return;let o=Vp?null:n.clipboardData,r=e.input.shiftKey&&e.input.lastKeyCode!=45;o&&jp(e,JO(o),o.getData("text/html"),r,n)?n.preventDefault():ive(e,n)};class XO{constructor(t,n,o){this.slice=t,this.move=n,this.node=o}}const QO=br?"altKey":"ctrlKey";Co.dragstart=(e,t)=>{let n=t,o=e.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let r=e.state.selection,i=r.empty?null:e.posAtCoords(l0(n)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof at?r.to-1:r.to))){if(o&&o.mightDrag)s=at.create(e.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(s=at.create(e.state.doc,d.posBefore))}}let l=(s||e.state.selection).content(),{dom:a,text:c,slice:u}=zO(e,l);(!n.dataTransfer.files.length||!so||CO>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Vp?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",Vp||n.dataTransfer.setData("text/plain",c),e.dragging=new XO(u,!n[QO],s)};Co.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};So.dragover=So.dragenter=(e,t)=>t.preventDefault();So.drop=(e,t)=>{let n=t,o=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let r=e.posAtCoords(l0(n));if(!r)return;let i=e.state.doc.resolve(r.pos),s=o&&o.slice;s?e.someProp("transformPasted",h=>{s=h(s,e)}):s=VO(e,JO(n.dataTransfer),Vp?null:n.dataTransfer.getData("text/html"),!1,i);let l=!!(o&&!n[QO]);if(e.someProp("handleDrop",h=>h(e,n,s||Ve.empty,l))){n.preventDefault();return}if(!s)return;n.preventDefault();let a=s?Hge(e.state.doc,i.pos,s):i.pos;a==null&&(a=i.pos);let c=e.state.tr;if(l){let{node:h}=o;h?h.replace(c):c.deleteSelection()}let u=c.mapping.map(a),d=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,f=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(f))return;let p=c.doc.resolve(u);if(d&&at.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new at(p));else{let h=c.mapping.map(a);c.mapping.maps[c.mapping.maps.length-1].forEach((m,b,v,E)=>h=E),c.setSelection(ck(e,p,c.doc.resolve(h)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))};Co.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&bs(e)},20))};Co.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Co.beforeinput=(e,t)=>{if(so&&Kr&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:o}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=o||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",i=>i(e,va(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let e in So)Co[e]=So[e];function Hp(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Wg{constructor(t,n){this.toDOM=t,this.spec=n||za,this.side=this.spec.side||0}map(t,n,o,r){let{pos:i,deleted:s}=t.mapResult(n.from+r,this.side<0?-1:1);return s?null:new Rn(i-o,i-o,this)}valid(){return!0}eq(t){return this==t||t instanceof Wg&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Hp(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Ml{constructor(t,n){this.attrs=t,this.spec=n||za}map(t,n,o,r){let i=t.map(n.from+r,this.spec.inclusiveStart?-1:1)-o,s=t.map(n.to+r,this.spec.inclusiveEnd?1:-1)-o;return i>=s?null:new Rn(i,s,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof Ml&&Hp(this.attrs,t.attrs)&&Hp(this.spec,t.spec)}static is(t){return t.type instanceof Ml}destroy(){}}class pk{constructor(t,n){this.attrs=t,this.spec=n||za}map(t,n,o,r){let i=t.mapResult(n.from+r,1);if(i.deleted)return null;let s=t.mapResult(n.to+r,-1);return s.deleted||s.pos<=i.pos?null:new Rn(i.pos-o,s.pos-o,this)}valid(t,n){let{index:o,offset:r}=t.content.findIndex(n.from),i;return r==n.from&&!(i=t.child(o)).isText&&r+i.nodeSize==n.to}eq(t){return this==t||t instanceof pk&&Hp(this.attrs,t.attrs)&&Hp(this.spec,t.spec)}destroy(){}}class Rn{constructor(t,n,o){this.from=t,this.to=n,this.type=o}copy(t,n){return new Rn(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,o){return this.type.map(t,this,n,o)}static widget(t,n,o){return new Rn(t,t,new Wg(n,o))}static inline(t,n,o,r){return new Rn(t,n,new Ml(o,r))}static node(t,n,o,r){return new Rn(t,n,new pk(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof Ml}get widget(){return this.type instanceof Wg}}const Uc=[],za={};class tn{constructor(t,n){this.local=t.length?t:Uc,this.children=n.length?n:Uc}static create(t,n){return n.length?qg(n,t,0,za):oo}find(t,n,o){let r=[];return this.findInner(t??0,n??1e9,r,0,o),r}findInner(t,n,o,r,i){for(let s=0;s<this.local.length;s++){let l=this.local[s];l.from<=n&&l.to>=t&&(!i||i(l.spec))&&o.push(l.copy(l.from+r,l.to+r))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>t){let l=this.children[s]+1;this.children[s+2].findInner(t-l,n-l,o,r+l,i)}}map(t,n,o){return this==oo||t.maps.length==0?this:this.mapInner(t,n,0,0,o||za)}mapInner(t,n,o,r,i){let s;for(let l=0;l<this.local.length;l++){let a=this.local[l].map(t,o,r);a&&a.type.valid(n,a)?(s||(s=[])).push(a):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?sve(this.children,s||[],t,n,o,r,i):s?new tn(s.sort(Va),Uc):oo}add(t,n){return n.length?this==oo?tn.create(t,n):this.addInner(t,n,0):this}addInner(t,n,o){let r,i=0;t.forEach((l,a)=>{let c=a+o,u;if(u=tP(n,l,c)){for(r||(r=this.children.slice());i<r.length&&r[i]<a;)i+=3;r[i]==a?r[i+2]=r[i+2].addInner(l,u,c+1):r.splice(i,0,a,a+l.nodeSize,qg(u,l,c+1,za)),i+=3}});let s=eP(i?nP(n):n,-o);for(let l=0;l<s.length;l++)s[l].type.valid(t,s[l])||s.splice(l--,1);return new tn(s.length?this.local.concat(s).sort(Va):this.local,r||this.children)}remove(t){return t.length==0||this==oo?this:this.removeInner(t,0)}removeInner(t,n){let o=this.children,r=this.local;for(let i=0;i<o.length;i+=3){let s,l=o[i]+n,a=o[i+1]+n;for(let u=0,d;u<t.length;u++)(d=t[u])&&d.from>l&&d.to<a&&(t[u]=null,(s||(s=[])).push(d));if(!s)continue;o==this.children&&(o=this.children.slice());let c=o[i+2].removeInner(s,l+1);c!=oo?o[i+2]=c:(o.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<t.length;i++)if(s=t[i])for(let l=0;l<r.length;l++)r[l].eq(s,n)&&(r==this.local&&(r=this.local.slice()),r.splice(l--,1))}return o==this.children&&r==this.local?this:r.length||o.length?new tn(r,o):oo}forChild(t,n){if(this==oo)return this;if(n.isLeaf)return tn.empty;let o,r;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=t){this.children[l]==t&&(o=this.children[l+2]);break}let i=t+1,s=i+n.content.size;for(let l=0;l<this.local.length;l++){let a=this.local[l];if(a.from<s&&a.to>i&&a.type instanceof Ml){let c=Math.max(i,a.from)-i,u=Math.min(s,a.to)-i;c<u&&(r||(r=[])).push(a.copy(c,u))}}if(r){let l=new tn(r.sort(Va),Uc);return o?new hl([l,o]):l}return o||oo}eq(t){if(this==t)return!0;if(!(t instanceof tn)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return hk(this.localsInner(t))}localsInner(t){if(this==oo)return Uc;if(t.inlineContent||!this.local.some(Ml.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof Ml||n.push(this.local[o]);return n}forEachSet(t){t(this)}}tn.empty=new tn([],[]);tn.removeOverlap=hk;const oo=tn.empty;class hl{constructor(t){this.members=t}map(t,n){const o=this.members.map(r=>r.map(t,n,za));return hl.from(o)}forChild(t,n){if(n.isLeaf)return tn.empty;let o=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(t,n);i!=oo&&(i instanceof hl?o=o.concat(i.members):o.push(i))}return hl.from(o)}eq(t){if(!(t instanceof hl)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,o=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(t);if(i.length)if(!n)n=i;else{o&&(n=n.slice(),o=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?hk(o?n:n.sort(Va)):Uc}static from(t){switch(t.length){case 0:return oo;case 1:return t[0];default:return new hl(t.every(n=>n instanceof tn)?t:t.reduce((n,o)=>n.concat(o instanceof tn?o:o.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(t)}}function sve(e,t,n,o,r,i,s){let l=e.slice();for(let c=0,u=i;c<n.maps.length;c++){let d=0;n.maps[c].forEach((f,p,h,m)=>{let b=m-h-(p-f);for(let v=0;v<l.length;v+=3){let E=l[v+1];if(E<0||f>E+u-d)continue;let w=l[v]+u-d;p>=w?l[v+1]=f<=w?-2:-1:f>=u&&b&&(l[v]+=b,l[v+1]+=b)}d+=b}),u=n.maps[c].map(u,-1)}let a=!1;for(let c=0;c<l.length;c+=3)if(l[c+1]<0){if(l[c+1]==-2){a=!0,l[c+1]=-1;continue}let u=n.map(e[c]+i),d=u-r;if(d<0||d>=o.content.size){a=!0;continue}let f=n.map(e[c+1]+i,-1),p=f-r,{index:h,offset:m}=o.content.findIndex(d),b=o.maybeChild(h);if(b&&m==d&&m+b.nodeSize==p){let v=l[c+2].mapInner(n,b,u+1,e[c]+i+1,s);v!=oo?(l[c]=d,l[c+1]=p,l[c+2]=v):(l[c+1]=-2,a=!0)}else a=!0}if(a){let c=lve(l,e,t,n,r,i,s),u=qg(c,o,0,s);t=u.local;for(let d=0;d<l.length;d+=3)l[d+1]<0&&(l.splice(d,3),d-=3);for(let d=0,f=0;d<u.children.length;d+=3){let p=u.children[d];for(;f<l.length&&l[f]<p;)f+=3;l.splice(f,0,u.children[d],u.children[d+1],u.children[d+2])}}return new tn(t.sort(Va),l)}function eP(e,t){if(!t||!e.length)return e;let n=[];for(let o=0;o<e.length;o++){let r=e[o];n.push(new Rn(r.from+t,r.to+t,r.type))}return n}function lve(e,t,n,o,r,i,s){function l(a,c){for(let u=0;u<a.local.length;u++){let d=a.local[u].map(o,r,c);d?n.push(d):s.onRemove&&s.onRemove(a.local[u].spec)}for(let u=0;u<a.children.length;u+=3)l(a.children[u+2],a.children[u]+c+1)}for(let a=0;a<e.length;a+=3)e[a+1]==-1&&l(e[a+2],t[a]+i+1);return n}function tP(e,t,n){if(t.isLeaf)return null;let o=n+t.nodeSize,r=null;for(let i=0,s;i<e.length;i++)(s=e[i])&&s.from>n&&s.to<o&&((r||(r=[])).push(s),e[i]=null);return r}function nP(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function qg(e,t,n,o){let r=[],i=!1;t.forEach((l,a)=>{let c=tP(e,l,a+n);if(c){i=!0;let u=qg(c,l,n+a+1,o);u!=oo&&r.push(a,a+l.nodeSize,u)}});let s=eP(i?nP(e):e,-n).sort(Va);for(let l=0;l<s.length;l++)s[l].type.valid(t,s[l])||(o.onRemove&&o.onRemove(s[l].spec),s.splice(l--,1));return s.length||r.length?new tn(s,r):oo}function Va(e,t){return e.from-t.from||e.to-t.to}function hk(e){let t=e;for(let n=0;n<t.length-1;n++){let o=t[n];if(o.from!=o.to)for(let r=n+1;r<t.length;r++){let i=t[r];if(i.from==o.from){i.to!=o.to&&(t==e&&(t=e.slice()),t[r]=i.copy(i.from,o.to),fS(t,r+1,i.copy(o.to,i.to)));continue}else{i.from<o.to&&(t==e&&(t=e.slice()),t[n]=o.copy(o.from,i.from),fS(t,r,o.copy(i.from,o.to)));break}}}return t}function fS(e,t,n){for(;t<e.length&&Va(n,e[t])>0;)t++;e.splice(t,0,n)}function Pv(e){let t=[];return e.someProp("decorations",n=>{let o=n(e.state);o&&o!=oo&&t.push(o)}),e.cursorWrapper&&t.push(tn.create(e.state.doc,[e.cursorWrapper.deco])),hl.from(t)}const ave={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},cve=Bo&&El<=11;class uve{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class dve{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new uve,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let r=0;r<o.length;r++)this.queue.push(o[r]);Bo&&El<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),cve&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,ave)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(rS(this.view)){if(this.suppressingSelectionUpdates)return bs(this.view);if(Bo&&El<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&sc(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,o;for(let i=t.focusNode;i;i=zp(i))n.add(i);for(let i=t.anchorNode;i;i=zp(i))if(n.has(i)){o=i;break}let r=o&&this.view.docView.nearestDesc(o);if(r&&r.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let o=t.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&rS(t)&&!this.ignoreSelectionChange(o),i=-1,s=-1,l=!1,a=[];if(t.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],a);d&&(i=i<0?d.from:Math.min(d.from,i),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(l=!0))}if(li&&a.length){let u=a.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,f]=u;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of u){let p=f.parentNode;p&&p.nodeName=="LI"&&(!d||hve(t,d)!=p)&&f.remove()}}}let c=null;i<0&&r&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&i0(o)&&(c=ak(t))&&c.eq(ft.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,bs(t),this.currentSelection.set(o),t.scrollToSelection()):(i>-1||r)&&(i>-1&&(t.docView.markDirty(i,s),fve(t)),this.handleDOMChange(i,s,l,a),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(o)||bs(t),this.currentSelection.set(o))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let o=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(o==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!o||o.ignoreMutation(t))return null;if(t.type=="childList"){for(let u=0;u<t.addedNodes.length;u++){let d=t.addedNodes[u];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(t.target))return{from:o.posBefore,to:o.posAfter};let r=t.previousSibling,i=t.nextSibling;if(Bo&&El<=11&&t.addedNodes.length)for(let u=0;u<t.addedNodes.length;u++){let{previousSibling:d,nextSibling:f}=t.addedNodes[u];(!d||Array.prototype.indexOf.call(t.addedNodes,d)<0)&&(r=d),(!f||Array.prototype.indexOf.call(t.addedNodes,f)<0)&&(i=f)}let s=r&&r.parentNode==t.target?Jn(r)+1:0,l=o.localPosFromDOM(t.target,s,-1),a=i&&i.parentNode==t.target?Jn(i):t.target.childNodes.length,c=o.localPosFromDOM(t.target,a,1);return{from:l,to:c}}else return t.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=t.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let pS=new WeakMap,hS=!1;function fve(e){if(!pS.has(e)&&(pS.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=li,hS)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),hS=!0}}function mS(e,t){let n=t.startContainer,o=t.startOffset,r=t.endContainer,i=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return sc(s.node,s.offset,r,i)&&([n,o,r,i]=[r,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}}function pve(e,t){if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return mS(e,r)}let n;function o(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",o,!0),n?mS(e,n):null}function hve(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let o=e.docView.nearestDesc(n,!0);if(o&&o.node.isBlock)return n}return null}function mve(e,t,n){let{node:o,fromOffset:r,toOffset:i,from:s,to:l}=e.docView.parseRange(t,n),a=e.domSelectionRange(),c,u=a.anchorNode;if(u&&e.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:a.anchorOffset}],i0(a)||c.push({node:a.focusNode,offset:a.focusOffset})),so&&e.input.lastKeyCode===8)for(let b=i;b>r;b--){let v=o.childNodes[b-1],E=v.pmViewDesc;if(v.nodeName=="BR"&&!E){i=b;break}if(!E||E.size)break}let d=e.state.doc,f=e.someProp("domParser")||rc.fromSchema(e.state.schema),p=d.resolve(s),h=null,m=f.parse(o,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:r,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:_ve,context:p});if(c&&c[0].pos!=null){let b=c[0].pos,v=c[1]&&c[1].pos;v==null&&(v=b),h={anchor:b+s,head:v+s}}return{doc:m,sel:h,from:s,to:l}}function _ve(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(xo&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||xo&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const gve=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function vve(e,t,n,o,r){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let N=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,I=ak(e,N);if(I&&!e.state.selection.eq(I)){if(so&&Kr&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",V=>V(e,va(13,"Enter"))))return;let B=e.state.tr.setSelection(I);N=="pointer"?B.setMeta("pointer",!0):N=="key"&&B.scrollIntoView(),i&&B.setMeta("composition",i),e.dispatch(B)}return}let s=e.state.doc.resolve(t),l=s.sharedDepth(n);t=s.before(l+1),n=e.state.doc.resolve(n).after(l+1);let a=e.state.selection,c=mve(e,t,n),u=e.state.doc,d=u.slice(c.from,c.to),f,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,p="end"):(f=e.state.selection.from,p="start"),e.input.lastKeyCode=null;let h=wve(d.content,c.doc.content,c.from,f,p);if((nd&&e.input.lastIOSEnter>Date.now()-225||Kr)&&r.some(N=>N.nodeType==1&&!gve.test(N.nodeName))&&(!h||h.endA>=h.endB)&&e.someProp("handleKeyDown",N=>N(e,va(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!h)if(o&&a instanceof lt&&!a.empty&&a.$head.sameParent(a.$anchor)&&!e.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))h={start:a.from,endA:a.to,endB:a.to};else{if(c.sel){let N=_S(e,e.state.doc,c.sel);if(N&&!N.eq(e.state.selection)){let I=e.state.tr.setSelection(N);i&&I.setMeta("composition",i),e.dispatch(I)}}return}e.input.domChangeCount++,e.state.selection.from<e.state.selection.to&&h.start==h.endB&&e.state.selection instanceof lt&&(h.start>e.state.selection.from&&h.start<=e.state.selection.from+2&&e.state.selection.from>=c.from?h.start=e.state.selection.from:h.endA<e.state.selection.to&&h.endA>=e.state.selection.to-2&&e.state.selection.to<=c.to&&(h.endB+=e.state.selection.to-h.endA,h.endA=e.state.selection.to)),Bo&&El<=11&&h.endB==h.start+1&&h.endA==h.start&&h.start>c.from&&c.doc.textBetween(h.start-c.from-1,h.start-c.from+1)=="  "&&(h.start--,h.endA--,h.endB--);let m=c.doc.resolveNoCache(h.start-c.from),b=c.doc.resolveNoCache(h.endB-c.from),v=u.resolve(h.start),E=m.sameParent(b)&&m.parent.inlineContent&&v.end()>=h.endA,w;if((nd&&e.input.lastIOSEnter>Date.now()-225&&(!E||r.some(N=>N.nodeName=="DIV"||N.nodeName=="P"))||!E&&m.pos<c.doc.content.size&&!m.sameParent(b)&&(w=ft.findFrom(c.doc.resolve(m.pos+1),1,!0))&&w.head==b.pos)&&e.someProp("handleKeyDown",N=>N(e,va(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>h.start&&yve(u,h.start,h.endA,m,b)&&e.someProp("handleKeyDown",N=>N(e,va(8,"Backspace")))){Kr&&so&&e.domObserver.suppressSelectionUpdates();return}so&&Kr&&h.endB==h.start&&(e.input.lastAndroidDelete=Date.now()),Kr&&!E&&m.start()!=b.start()&&b.parentOffset==0&&m.depth==b.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==h.endA&&(h.endB-=2,b=c.doc.resolveNoCache(h.endB-c.from),setTimeout(()=>{e.someProp("handleKeyDown",function(N){return N(e,va(13,"Enter"))})},20));let S=h.start,T=h.endA,$,A,P;if(E){if(m.pos==b.pos)Bo&&El<=11&&m.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>bs(e),20)),$=e.state.tr.delete(S,T),A=u.resolve(h.start).marksAcross(u.resolve(h.endA));else if(h.endA==h.endB&&(P=bve(m.parent.content.cut(m.parentOffset,b.parentOffset),v.parent.content.cut(v.parentOffset,h.endA-v.start()))))$=e.state.tr,P.type=="add"?$.addMark(S,T,P.mark):$.removeMark(S,T,P.mark);else if(m.parent.child(m.index()).isText&&m.index()==b.index()-(b.textOffset?0:1)){let N=m.parent.textBetween(m.parentOffset,b.parentOffset);if(e.someProp("handleTextInput",I=>I(e,S,T,N)))return;$=e.state.tr.insertText(N,S,T)}}if($||($=e.state.tr.replace(S,T,c.doc.slice(h.start-c.from,h.endB-c.from))),c.sel){let N=_S(e,$.doc,c.sel);N&&!(so&&Kr&&e.composing&&N.empty&&(h.start!=h.endB||e.input.lastAndroidDelete<Date.now()-100)&&(N.head==S||N.head==$.mapping.map(T)-1)||Bo&&N.empty&&N.head==S)&&$.setSelection(N)}A&&$.ensureMarks(A),i&&$.setMeta("composition",i),e.dispatch($.scrollIntoView())}function _S(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:ck(e,t.resolve(n.anchor),t.resolve(n.head))}function bve(e,t){let n=e.firstChild.marks,o=t.firstChild.marks,r=n,i=o,s,l,a;for(let u=0;u<o.length;u++)r=o[u].removeFromSet(r);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(r.length==1&&i.length==0)l=r[0],s="add",a=u=>u.mark(l.addToSet(u.marks));else if(r.length==0&&i.length==1)l=i[0],s="remove",a=u=>u.mark(l.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<t.childCount;u++)c.push(a(t.child(u)));if(Me.from(c).eq(e))return{mark:l,type:s}}function yve(e,t,n,o,r){if(n-t<=r.pos-o.pos||Nv(o,!0,!1)<r.pos)return!1;let i=e.resolve(t);if(!o.parent.isTextblock){let l=i.nodeAfter;return l!=null&&n==t+l.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=e.resolve(Nv(i,!0,!0));return!s.parent.isTextblock||s.pos>n||Nv(s,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function Nv(e,t,n){let o=e.depth,r=t?e.end():e.pos;for(;o>0&&(t||e.indexAfter(o)==e.node(o).childCount);)o--,r++,t=!1;if(n){let i=e.node(o).maybeChild(e.indexAfter(o));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function wve(e,t,n,o,r){let i=e.findDiffStart(t,n);if(i==null)return null;let{a:s,b:l}=e.findDiffEnd(t,n+e.size,n+t.size);if(r=="end"){let a=Math.max(0,i-Math.min(s,l));o-=s+a-i}if(s<i&&e.size<t.size){let a=o<=i&&o>=s?i-o:0;i-=a,i&&i<t.size&&gS(t.textBetween(i-1,i+1))&&(i+=a?1:-1),l=i+(l-s),s=i}else if(l<i){let a=o<=i&&o>=l?i-o:0;i-=a,i&&i<e.size&&gS(e.textBetween(i-1,i+1))&&(i+=a?1:-1),s=i+(s-l),l=i}return{start:i,endA:s,endB:l}}function gS(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class kve{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new V0e,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(kS),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=yS(this),bS(this),this.nodeViews=wS(this),this.docView=X8(this.state.doc,vS(this),Pv(this),this.dom,this),this.domObserver=new dve(this,(o,r,i,s)=>vve(this,o,r,i,s)),this.domObserver.start(),j0e(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&t2(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(kS),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let o in this._props)n[o]=this._props[o];n.state=this.state;for(let o in t)n[o]=t[o];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var o;let r=this.state,i=!1,s=!1;t.storedMarks&&this.composing&&(ZO(this),s=!0),this.state=t;let l=r.plugins!=t.plugins||this._props.plugins!=n.plugins;if(l||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=wS(this);Cve(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(l||n.handleDOMEvents!=this._props.handleDOMEvents)&&t2(this),this.editable=yS(this),bS(this);let a=Pv(this),c=vS(this),u=r.plugins!=t.plugins&&!r.doc.eq(t.doc)?"reset":t.scrollToSelection>r.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(t.doc,c,a);(d||!t.selection.eq(r.selection))&&(s=!0);let f=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&o0e(this);if(s){this.domObserver.stop();let p=d&&(Bo||so)&&!this.composing&&!r.selection.empty&&!t.selection.empty&&xve(r.selection,t.selection);if(d){let h=so?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=tve(this)),(i||!this.docView.update(t.doc,c,a,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=X8(t.doc,c,a,this.dom,this)),h&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&E0e(this))?bs(this,p):(FO(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((o=this.dragging)===null||o===void 0)&&o.node&&!r.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,r),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():f&&r0e(f)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof at){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&q8(this,n.getBoundingClientRect(),t)}else q8(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let o=this.directPlugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let o=this.state.plugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let o=this.pluginViews[n];o.update&&o.update(this,t)}}updateDraggedNode(t,n){let o=t.node,r=-1;if(this.state.doc.nodeAt(o.from)==o.node)r=o.from;else{let i=o.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==o.node&&(r=i)}this.dragging=new XO(t.slice,t.move,r<0?void 0:at.create(this.state.doc,r))}someProp(t,n){let o=this._props&&this._props[t],r;if(o!=null&&(r=n?n(o):o))return r;for(let s=0;s<this.directPlugins.length;s++){let l=this.directPlugins[s].props[t];if(l!=null&&(r=n?n(l):l))return r}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let l=i[s].props[t];if(l!=null&&(r=n?n(l):l))return r}}hasFocus(){if(Bo){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&i0e(this.dom),bs(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return u0e(this,t)}coordsAtPos(t,n=1){return MO(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,o=-1){let r=this.docView.posFromDOM(t,n,o);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,n){return m0e(this,n||this.state,t)}pasteHTML(t,n){return jp(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return jp(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(H0e(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Pv(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,q1e())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return W0e(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){let t=this.domSelection();return t?xo&&this.root.nodeType===11&&J1e(this.dom.ownerDocument)==this.dom&&pve(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function vS(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let o in n)o=="class"?t.class+=" "+n[o]:o=="style"?t.style=(t.style?t.style+";":"")+n[o]:!t[o]&&o!="contenteditable"&&o!="nodeName"&&(t[o]=String(n[o]))}),t.translate||(t.translate="no"),[Rn.node(0,e.state.doc.content.size,t)]}function bS(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Rn.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function yS(e){return!e.someProp("editable",t=>t(e.state)===!1)}function xve(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function wS(e){let t=Object.create(null);function n(o){for(let r in o)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=o[r])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Cve(e,t){let n=0,o=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let r in t)o++;return n!=o}function kS(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var oP=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ot=(e,t,n)=>(oP(e,t,"read from private field"),n?n.call(e):t.get(e)),Wn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},fn=(e,t,n,o)=>(oP(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);function Yl(e,t){return e.meta={package:"@milkdown/core",group:"System",...t},e}const rP={strong:(e,t,n,o)=>{const r=e.marker||n.options.strong||"*",i=n.enter("strong"),s=n.createTracker(o);let l=s.move(r+r);return l+=s.move(n.containerPhrasing(e,{before:l,after:r,...s.current()})),l+=s.move(r+r),i(),l},emphasis:(e,t,n,o)=>{const r=e.marker||n.options.emphasis||"*",i=n.enter("emphasis"),s=n.createTracker(o);let l=s.move(r);return l+=s.move(n.containerPhrasing(e,{before:l,after:r,...s.current()})),l+=s.move(r),i(),l}},pn=Lt({},"editorView"),pf=Lt({},"editorState"),Lv=Lt([],"initTimer"),xS=Lt({},"editor"),Up=Lt([],"inputRules"),ai=Lt([],"prosePlugins"),Wp=Lt([],"remarkPlugins"),n2=Lt([],"nodeView"),o2=Lt([],"markView"),ja=Lt(Ry().use(My).use(Py),"remark"),ep=Lt({handlers:rP},"remarkStringifyOptions"),w_=Ul("ConfigReady");function Sve(e){const t=n=>(n.record(w_),async()=>(await e(n),n.done(w_),()=>{n.clearTimer(w_)}));return Yl(t,{displayName:"Config"}),t}const Ha=Ul("InitReady");function $ve(e){const t=n=>(n.inject(xS,e).inject(ai,[]).inject(Wp,[]).inject(Up,[]).inject(n2,[]).inject(o2,[]).inject(ep,{handlers:rP}).inject(ja,Ry().use(My).use(Py)).inject(Lv,[w_]).record(Ha),async()=>{await n.waitTimers(Lv);const o=n.get(ep);return n.set(ja,Ry().use(My).use(Py,o)),n.done(Ha),()=>{n.remove(xS).remove(ai).remove(Wp).remove(Up).remove(n2).remove(o2).remove(ep).remove(ja).remove(Lv).clearTimer(Ha)}});return Yl(t,{displayName:"Init"}),t}const Oi=Ul("SchemaReady"),Rv=Lt([],"schemaTimer"),ei=Lt({},"schema"),yu=Lt([],"nodes"),wu=Lt([],"marks");function CS(e){var t;return{...e,parseDOM:(t=e.parseDOM)==null?void 0:t.map(n=>({priority:e.priority,...n}))}}const iP=e=>(e.inject(ei,{}).inject(yu,[]).inject(wu,[]).inject(Rv,[Ha]).record(Oi),async()=>{await e.waitTimers(Rv);const t=e.get(ja),n=e.get(Wp).reduce((s,l)=>s.use(l.plugin,l.options),t);e.set(ja,n);const o=Object.fromEntries(e.get(yu).map(([s,l])=>[s,CS(l)])),r=Object.fromEntries(e.get(wu).map(([s,l])=>[s,CS(l)])),i=new jpe({nodes:o,marks:r});return e.set(ei,i),e.done(Oi),()=>{e.remove(ei).remove(yu).remove(wu).remove(Rv).clearTimer(Oi)}});Yl(iP,{displayName:"Schema"});var Wc,da;let sP=class{constructor(){Wn(this,Wc,void 0),Wn(this,da,void 0),fn(this,Wc,new GA),fn(this,da,null),this.setCtx=t=>{fn(this,da,t)}}get ctx(){return ot(this,da)}create(t,n){const o=t.create(ot(this,Wc).sliceMap);return o.set(n),o}get(t){return ot(this,Wc).get(t).get()}remove(t){return ot(this,Wc).remove(t)}call(t,n){if(ot(this,da)==null)throw _pe();const o=this.get(t)(n),r=ot(this,da).get(pn);return o(r.state,r.dispatch,r)}};Wc=new WeakMap,da=new WeakMap;function Eve(e="cmdKey"){return Lt(()=>()=>!1,e)}const It=Lt(new sP,"commands"),Fv=Lt([Oi],"commandsTimer"),tp=Ul("CommandsReady"),lP=e=>{const t=new sP;return t.setCtx(e),e.inject(It,t).inject(Fv,[Oi]).record(tp),async()=>(await e.waitTimers(Fv),e.done(tp),()=>{e.remove(It).remove(Fv).clearTimer(tp)})};Yl(lP,{displayName:"Commands"});const k_=Ul("ParserReady"),aP=()=>{throw H3()},ku=Lt(aP,"parser"),Dv=Lt([],"parserTimer"),cP=e=>(e.inject(ku,aP).inject(Dv,[Oi]).record(k_),async()=>{await e.waitTimers(Dv);const t=e.get(ja),n=e.get(ei);return e.set(ku,kge.create(n,t)),e.done(k_),()=>{e.remove(ku).remove(Dv).clearTimer(k_)}});Yl(cP,{displayName:"Parser"});const np=Ul("SerializerReady"),Bv=Lt([],"serializerTimer"),uP=()=>{throw H3()},xu=Lt(uP,"serializer"),dP=e=>(e.inject(xu,uP).inject(Bv,[Oi]).record(np),async()=>{await e.waitTimers(Bv);const t=e.get(ja),n=e.get(ei);return e.set(xu,Cge.create(n,t)),e.done(np),()=>{e.remove(xu).remove(Bv).clearTimer(np)}});Yl(dP,{displayName:"Serializer"});const x_=Lt("","defaultValue"),C_=Lt(e=>e,"stateOptions"),zv=Lt([],"editorStateTimer"),S_=Ul("EditorStateReady");function Tve(e,t,n){if(typeof e=="string")return t(e);if(e.type==="html")return rc.fromSchema(n).parse(e.dom);if(e.type==="json")return $l.fromJSON(n,e.value);throw cpe(e)}const Mve=new mn("MILKDOWN_STATE_TRACKER");function Ave(e){const t=r0(e1e,rk,hO,mO);return e.Backspace=t,e}const fP=e=>(e.inject(x_,"").inject(pf,{}).inject(C_,t=>t).inject(zv,[k_,np,tp]).record(S_),async()=>{await e.waitTimers(zv);const t=e.get(ei),n=e.get(ku),o=e.get(Up),r=e.get(C_),i=e.get(ai),s=e.get(x_),l=Tve(s,n,t),a=[...i,new wn({key:Mve,state:{init:()=>{},apply:(d,f,p,h)=>{e.set(pf,h)}}}),c1e({rules:o}),wO(Ave(B1e))];e.set(ai,a);const c=r({schema:t,doc:l,plugins:a}),u=Ea.create(c);return e.set(pf,u),e.done(S_),()=>{e.remove(x_).remove(pf).remove(C_).remove(zv).clearTimer(S_)}});Yl(fP,{displayName:"EditorState"});const $_=Ul("EditorViewReady"),Vv=Lt([],"editorViewTimer"),op=Lt({},"editorViewOptions"),E_=Lt(null,"root"),r2=Lt(null,"rootDOM"),i2=Lt({},"rootAttrs");function Ive(e,t){const n=document.createElement("div");n.className="milkdown",e.appendChild(n),t.set(r2,n);const o=t.get(i2);return Object.entries(o).forEach(([r,i])=>n.setAttribute(r,i)),n}function Ove(e){e.classList.add("editor"),e.setAttribute("role","textbox")}const Pve=new mn("MILKDOWN_VIEW_CLEAR"),pP=e=>(e.inject(E_,document.body).inject(pn,{}).inject(op,{}).inject(r2,null).inject(i2,{}).inject(Vv,[S_]).record($_),async()=>{await e.wait(Ha);const t=e.get(E_)||document.body,n=typeof t=="string"?document.querySelector(t):t;e.update(ai,a=>[new wn({key:Pve,view:c=>{const u=n?Ive(n,e):void 0;return(()=>{if(u&&n){const d=c.dom;n.replaceChild(u,d),u.appendChild(d)}})(),{destroy:()=>{u!=null&&u.parentNode&&(u==null||u.parentNode.replaceChild(c.dom,u)),u==null||u.remove()}}}}),...a]),await e.waitTimers(Vv);const o=e.get(pf),r=e.get(op),i=Object.fromEntries(e.get(n2)),s=Object.fromEntries(e.get(o2)),l=new kve(n,{state:o,nodeViews:i,markViews:s,...r});return Ove(l.dom),e.set(pn,l),e.done($_),()=>{l==null||l.destroy(),e.remove(E_).remove(pn).remove(op).remove(r2).remove(i2).remove(Vv).clearTimer($_)}});Yl(pP,{displayName:"EditorView"});var qc,vr,Qs,hf,T_,M_,Yo,el,Kc,A_,Gc,mf,I_,fa,_f;const Nve=class hP{constructor(){Wn(this,qc,void 0),Wn(this,vr,void 0),Wn(this,Qs,void 0),Wn(this,hf,void 0),Wn(this,T_,void 0),Wn(this,M_,void 0),Wn(this,Yo,void 0),Wn(this,el,void 0),Wn(this,Kc,void 0),Wn(this,A_,void 0),Wn(this,Gc,void 0),Wn(this,mf,void 0),Wn(this,I_,void 0),Wn(this,fa,void 0),Wn(this,_f,void 0),fn(this,qc,!1),fn(this,vr,"Idle"),fn(this,Qs,[]),fn(this,hf,()=>{}),fn(this,T_,new GA),fn(this,M_,new xpe),fn(this,Yo,new Map),fn(this,el,new Map),fn(this,Kc,new kpe(ot(this,T_),ot(this,M_))),fn(this,A_,()=>{const t=Sve(async o=>{await Promise.all(ot(this,Qs).map(r=>r(o)))}),n=[iP,cP,dP,lP,fP,pP,$ve(this),t];ot(this,Gc).call(this,n,ot(this,el))}),fn(this,Gc,(t,n)=>{t.forEach(o=>{const r=ot(this,Kc).produce(ot(this,qc)?o.meta:void 0),i=o(r);n.set(o,{ctx:r,handler:i,cleanup:void 0})})}),fn(this,mf,(t,n=!1)=>Promise.all([t].flat().map(o=>{const r=ot(this,Yo).get(o),i=r==null?void 0:r.cleanup;return n?ot(this,Yo).delete(o):ot(this,Yo).set(o,{ctx:void 0,handler:void 0,cleanup:void 0}),typeof i=="function"?i():i}))),fn(this,I_,async()=>{await Promise.all([...ot(this,el).entries()].map(([t,{cleanup:n}])=>typeof n=="function"?n():n)),ot(this,el).clear()}),fn(this,fa,t=>{fn(this,vr,t),ot(this,hf).call(this,t)}),fn(this,_f,t=>[...t.entries()].map(async([n,o])=>{const{ctx:r,handler:i}=o;if(!i)return;const s=await i();t.set(n,{ctx:r,handler:i,cleanup:s})})),this.enableInspector=(t=!0)=>(fn(this,qc,t),this),this.onStatusChange=t=>(fn(this,hf,t),this),this.config=t=>(ot(this,Qs).push(t),this),this.removeConfig=t=>(fn(this,Qs,ot(this,Qs).filter(n=>n!==t)),this),this.use=t=>{const n=[t].flat();return n.flat().forEach(o=>{ot(this,Yo).set(o,{ctx:void 0,handler:void 0,cleanup:void 0})}),ot(this,vr)==="Created"&&ot(this,Gc).call(this,n,ot(this,Yo)),this},this.remove=async t=>ot(this,vr)==="OnCreate"?(console.warn("[Milkdown]: You are trying to remove plugins when the editor is creating, this is not recommended, please check your code."),new Promise(n=>{setTimeout(()=>{n(this.remove(t))},50)})):(await ot(this,mf).call(this,[t].flat(),!0),this),this.create=async()=>ot(this,vr)==="OnCreate"?this:(ot(this,vr)==="Created"&&await this.destroy(),ot(this,fa).call(this,"OnCreate"),ot(this,A_).call(this),ot(this,Gc).call(this,[...ot(this,Yo).keys()],ot(this,Yo)),await Promise.all([ot(this,_f).call(this,ot(this,el)),ot(this,_f).call(this,ot(this,Yo))].flat()),ot(this,fa).call(this,"Created"),this),this.destroy=async(t=!1)=>ot(this,vr)==="Destroyed"||ot(this,vr)==="OnDestroy"?this:ot(this,vr)==="OnCreate"?new Promise(n=>{setTimeout(()=>{n(this.destroy(t))},50)}):(t&&fn(this,Qs,[]),ot(this,fa).call(this,"OnDestroy"),await ot(this,mf).call(this,[...ot(this,Yo).keys()],t),await ot(this,I_).call(this),ot(this,fa).call(this,"Destroyed"),this),this.action=t=>t(ot(this,Kc)),this.inspect=()=>ot(this,qc)?[...ot(this,el).values(),...ot(this,Yo).values()].map(({ctx:t})=>{var n;return(n=t==null?void 0:t.inspector)==null?void 0:n.read()}).filter(t=>!!t):(console.warn("[Milkdown]: You are trying to collect inspection when inspector is disabled, please enable inspector by `editor.enableInspector()` first."),[])}static make(){return new hP}get ctx(){return ot(this,Kc)}get status(){return ot(this,vr)}};qc=new WeakMap,vr=new WeakMap,Qs=new WeakMap,hf=new WeakMap,T_=new WeakMap,M_=new WeakMap,Yo=new WeakMap,el=new WeakMap,Kc=new WeakMap,A_=new WeakMap,Gc=new WeakMap,mf=new WeakMap,I_=new WeakMap,fa=new WeakMap,_f=new WeakMap;let Lve=Nve,Rve=e=>crypto.getRandomValues(new Uint8Array(e)),Fve=(e,t,n)=>{let o=(2<<Math.log(e.length-1)/Math.LN2)-1,r=-~(1.6*o*t/e.length);return(i=t)=>{let s="";for(;;){let l=n(r),a=r;for(;a--;)if(s+=e[l[a]&o]||"",s.length===i)return s}}},Dve=(e,t=21)=>Fve(e,t,Rve);Dve("abcedfghicklmn",10);function Ct(e,t){const n=Eve(e),o=r=>async()=>{o.key=n,await r.wait(tp);const i=t(r);return r.get(It).create(n,i),o.run=s=>r.get(It).call(e,s),()=>{r.get(It).remove(n)}};return o}function qo(e){const t=n=>async()=>{await n.wait(Oi);const o=e(n);return n.update(Up,r=>[...r,o]),t.inputRule=o,()=>{n.update(Up,r=>r.filter(i=>i!==o))}};return t}function Bve(e,t){const n=o=>async()=>{const r=t(o);return o.update(wu,i=>[...i.filter(s=>s[0]!==e),[e,r]]),n.id=e,n.schema=r,()=>{o.update(wu,i=>i.filter(([s])=>s!==e))}};return n.type=o=>{const r=o.get(ei).marks[e];if(!r)throw gpe(e);return r},n}function mk(e,t){const n=o=>async()=>{const r=t(o);return o.update(yu,i=>[...i.filter(s=>s[0]!==e),[e,r]]),n.id=e,n.schema=r,()=>{o.update(yu,i=>i.filter(([s])=>s!==e))}};return n.type=o=>{const r=o.get(ei).nodes[e];if(!r)throw qA(e);return r},n}function eo(e){let t;const n=o=>async()=>(await o.wait(Oi),t=e(o),o.update(ai,r=>[...r,t]),()=>{o.update(ai,r=>r.filter(i=>i!==t))});return n.plugin=()=>t,n.key=()=>t.spec.key,n}function zve(e){const t=n=>async()=>{await n.wait(Oi);const o=e(n),r=wO(o);return n.update(ai,i=>[...i,r]),t.keymap=o,()=>{n.update(ai,i=>i.filter(s=>s!==r))}};return t}function Cn(e,t){const n=Lt(e,t),o=r=>(r.inject(n),()=>()=>{r.remove(n)});return o.key=n,o}function Un(e,t){const n=Cn(t,e),o=mk(e,i=>i.get(n.key)(i)),r=[n,o];return r.id=o.id,r.node=o,r.type=i=>o.type(i),r.schema=o.schema,r.ctx=n,r.key=n.key,r.extendSchema=i=>s=>()=>{const l=s.get(n.key),a=i(l)(s);s.update(yu,c=>[...c.filter(u=>u[0]!==e),[e,a]]),r.schema=a},r}function Th(e,t){const n=Cn(t,e),o=Bve(e,i=>i.get(n.key)(i)),r=[n,o];return r.id=o.id,r.mark=o,r.type=o.type,r.schema=o.schema,r.ctx=n,r.key=n.key,r.extendSchema=i=>s=>()=>{const l=s.get(n.key),a=i(l)(s);s.update(wu,c=>[...c.filter(u=>u[0]!==e),[e,a]]),r.schema=a},r}function Ko(e,t){const n=Object.fromEntries(Object.entries(t).map(([s,{shortcuts:l}])=>[s,l])),o=Cn(n,`${e}Keymap`),r=zve(s=>{const l=s.get(o.key),a=Object.entries(t).flatMap(([c,{command:u}])=>[l[c]].flat().map(d=>[d,u(s)]));return Object.fromEntries(a)}),i=[o,r];return i.ctx=o,i.shortcuts=r,i.key=o.key,i.keymap=r.keymap,i}const pi=(e,t=()=>({}))=>Cn(t,`${e}Attr`),Mh=(e,t=()=>({}))=>Cn(t,`${e}Attr`);function bd(e,t,n){const o=Cn(n??{},e),r=s=>async()=>{await s.wait(Ha);const l={plugin:t(s),options:s.get(o.key)};return s.update(Wp,a=>[...a,l]),()=>{s.update(Wp,a=>a.filter(c=>c!==l))}},i=[o,r];return i.id=e,i.plugin=r,i.options=o,i}function Vve(){return e=>{const t=e.get(pn);return e.get(xu)(t.state.doc)}}function jve(e,t=!1){return n=>{const o=n.get(pn),r=n.get(ku)(e);if(!r)return;if(!t){const{state:c}=o;return o.dispatch(c.tr.replace(0,c.doc.content.size,new Ve(r.content,0,0)))}const i=n.get(ei),s=n.get(C_),l=n.get(ai),a=Ea.create({schema:i,doc:r,plugins:l,...s});o.updateState(a)}}function a0(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Hve=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ő","O"],["Ø","O"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ő","o"],["ø","o"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["ẞ","SS"],["à","a"],["À","A"],["á","a"],["Á","A"],["â","a"],["Â","A"],["ã","a"],["Ã","A"],["è","e"],["È","E"],["é","e"],["É","E"],["ê","e"],["Ê","E"],["ì","i"],["Ì","I"],["í","i"],["Í","I"],["ò","o"],["Ò","O"],["ó","o"],["Ó","O"],["ô","o"],["Ô","O"],["õ","o"],["Õ","O"],["ù","u"],["Ù","U"],["ú","u"],["Ú","U"],["ý","y"],["Ý","Y"],["ă","a"],["Ă","A"],["Đ","D"],["đ","d"],["ĩ","i"],["Ĩ","I"],["ũ","u"],["Ũ","U"],["ơ","o"],["Ơ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["ậ","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["ề","e"],["Ề","E"],["ể","e"],["Ể","E"],["ễ","e"],["Ễ","E"],["ệ","e"],["Ệ","E"],["ỉ","i"],["Ỉ","I"],["ị","i"],["Ị","I"],["ọ","o"],["Ọ","O"],["ỏ","o"],["Ỏ","O"],["ố","o"],["Ố","O"],["ồ","o"],["Ồ","O"],["ổ","o"],["Ổ","O"],["ỗ","o"],["Ỗ","O"],["ộ","o"],["Ộ","O"],["ớ","o"],["Ớ","O"],["ờ","o"],["Ờ","O"],["ở","o"],["Ở","O"],["ỡ","o"],["Ỡ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["ủ","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["ử","u"],["Ử","U"],["ữ","u"],["Ữ","U"],["ự","u"],["Ự","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["Ỵ","Y"],["ỷ","y"],["Ỷ","Y"],["ỹ","y"],["Ỹ","Y"],["ء","e"],["آ","a"],["أ","a"],["ؤ","w"],["إ","i"],["ئ","y"],["ا","a"],["ب","b"],["ة","t"],["ت","t"],["ث","th"],["ج","j"],["ح","h"],["خ","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","z"],["ع","e"],["غ","gh"],["ـ","_"],["ف","f"],["ق","q"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","w"],["ى","a"],["ي","y"],["َ‎","a"],["ُ","u"],["ِ‎","i"],["٠","0"],["١","1"],["٢","2"],["٣","3"],["٤","4"],["٥","5"],["٦","6"],["٧","7"],["٨","8"],["٩","9"],["چ","ch"],["ک","k"],["گ","g"],["پ","p"],["ژ","zh"],["ی","y"],["۰","0"],["۱","1"],["۲","2"],["۳","3"],["۴","4"],["۵","5"],["۶","6"],["۷","7"],["۸","8"],["۹","9"],["ټ","p"],["ځ","z"],["څ","c"],["ډ","d"],["ﺫ","d"],["ﺭ","r"],["ړ","r"],["ﺯ","z"],["ږ","g"],["ښ","x"],["ګ","g"],["ڼ","n"],["ۀ","e"],["ې","e"],["ۍ","ai"],["ٹ","t"],["ڈ","d"],["ڑ","r"],["ں","n"],["ہ","h"],["ھ","h"],["ے","e"],["А","A"],["а","a"],["Б","B"],["б","b"],["В","V"],["в","v"],["Г","G"],["г","g"],["Д","D"],["д","d"],["ъе","ye"],["Ъе","Ye"],["ъЕ","yE"],["ЪЕ","YE"],["Е","E"],["е","e"],["Ё","Yo"],["ё","yo"],["Ж","Zh"],["ж","zh"],["З","Z"],["з","z"],["И","I"],["и","i"],["ый","iy"],["Ый","Iy"],["ЫЙ","IY"],["ыЙ","iY"],["Й","Y"],["й","y"],["К","K"],["к","k"],["Л","L"],["л","l"],["М","M"],["м","m"],["Н","N"],["н","n"],["О","O"],["о","o"],["П","P"],["п","p"],["Р","R"],["р","r"],["С","S"],["с","s"],["Т","T"],["т","t"],["У","U"],["у","u"],["Ф","F"],["ф","f"],["Х","Kh"],["х","kh"],["Ц","Ts"],["ц","ts"],["Ч","Ch"],["ч","ch"],["Ш","Sh"],["ш","sh"],["Щ","Sch"],["щ","sch"],["Ъ",""],["ъ",""],["Ы","Y"],["ы","y"],["Ь",""],["ь",""],["Э","E"],["э","e"],["Ю","Yu"],["ю","yu"],["Я","Ya"],["я","ya"],["ă","a"],["Ă","A"],["ș","s"],["Ș","S"],["ț","t"],["Ț","T"],["ţ","t"],["Ţ","T"],["ş","s"],["Ş","S"],["ç","c"],["Ç","C"],["ğ","g"],["Ğ","G"],["ı","i"],["İ","I"],["ա","a"],["Ա","A"],["բ","b"],["Բ","B"],["գ","g"],["Գ","G"],["դ","d"],["Դ","D"],["ե","ye"],["Ե","Ye"],["զ","z"],["Զ","Z"],["է","e"],["Է","E"],["ը","y"],["Ը","Y"],["թ","t"],["Թ","T"],["ժ","zh"],["Ժ","Zh"],["ի","i"],["Ի","I"],["լ","l"],["Լ","L"],["խ","kh"],["Խ","Kh"],["ծ","ts"],["Ծ","Ts"],["կ","k"],["Կ","K"],["հ","h"],["Հ","H"],["ձ","dz"],["Ձ","Dz"],["ղ","gh"],["Ղ","Gh"],["ճ","tch"],["Ճ","Tch"],["մ","m"],["Մ","M"],["յ","y"],["Յ","Y"],["ն","n"],["Ն","N"],["շ","sh"],["Շ","Sh"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["ու","u"],["ՈՒ","U"],["Ու","U"],["փ","p"],["Փ","P"],["ք","q"],["Ք","Q"],["օ","o"],["Օ","O"],["ֆ","f"],["Ֆ","F"],["և","yev"],["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","zh"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","ph"],["ქ","q"],["ღ","gh"],["ყ","k"],["შ","sh"],["ჩ","ch"],["ც","ts"],["ძ","dz"],["წ","ts"],["ჭ","tch"],["ხ","kh"],["ჯ","j"],["ჰ","h"],["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"],["ހ","h"],["ށ","sh"],["ނ","n"],["ރ","r"],["ބ","b"],["ޅ","lh"],["ކ","k"],["އ","a"],["ވ","v"],["މ","m"],["ފ","f"],["ދ","dh"],["ތ","th"],["ލ","l"],["ގ","g"],["ޏ","gn"],["ސ","s"],["ޑ","d"],["ޒ","z"],["ޓ","t"],["ޔ","y"],["ޕ","p"],["ޖ","j"],["ޗ","ch"],["ޘ","tt"],["ޙ","hh"],["ޚ","kh"],["ޛ","th"],["ޜ","z"],["ޝ","sh"],["ޞ","s"],["ޟ","d"],["ޠ","t"],["ޡ","z"],["ޢ","a"],["ޣ","gh"],["ޤ","q"],["ޥ","w"],["ަ","a"],["ާ","aa"],["ި","i"],["ީ","ee"],["ު","u"],["ޫ","oo"],["ެ","e"],["ޭ","ey"],["ޮ","o"],["ޯ","oa"],["ް",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","o"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","i"],["ώ","o"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","I"],["Θ","TH"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","KS"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","I"],["Ώ","O"],["Ϊ","I"],["Ϋ","Y"],["ā","a"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["ū","u"],["Ā","A"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Ū","U"],["č","c"],["š","s"],["ž","z"],["Č","C"],["Š","S"],["Ž","Z"],["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ќ","Kj"],["ќ","kj"],["Љ","Lj"],["љ","lj"],["Њ","Nj"],["њ","nj"],["Тс","Ts"],["тс","ts"],["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ś","S"],["Ź","Z"],["Ż","Z"],["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["¥","Y"],["߿","b"],["৳","t"],["૱","Bo"],["฿","B"],["₠","CE"],["₡","C"],["₢","Cr"],["₣","F"],["₥","m"],["₦","N"],["₧","Pt"],["₨","Rs"],["₩","W"],["₫","s"],["€","E"],["₭","K"],["₮","T"],["₯","Dp"],["₰","S"],["₱","P"],["₲","G"],["₳","A"],["₴","S"],["₵","C"],["₶","tt"],["₷","S"],["₸","T"],["₹","R"],["₺","L"],["₽","P"],["₿","B"],["﹩","$"],["¢","c"],["¥","Y"],["₩","W"],["𝐀","A"],["𝐁","B"],["𝐂","C"],["𝐃","D"],["𝐄","E"],["𝐅","F"],["𝐆","G"],["𝐇","H"],["𝐈","I"],["𝐉","J"],["𝐊","K"],["𝐋","L"],["𝐌","M"],["𝐍","N"],["𝐎","O"],["𝐏","P"],["𝐐","Q"],["𝐑","R"],["𝐒","S"],["𝐓","T"],["𝐔","U"],["𝐕","V"],["𝐖","W"],["𝐗","X"],["𝐘","Y"],["𝐙","Z"],["𝐚","a"],["𝐛","b"],["𝐜","c"],["𝐝","d"],["𝐞","e"],["𝐟","f"],["𝐠","g"],["𝐡","h"],["𝐢","i"],["𝐣","j"],["𝐤","k"],["𝐥","l"],["𝐦","m"],["𝐧","n"],["𝐨","o"],["𝐩","p"],["𝐪","q"],["𝐫","r"],["𝐬","s"],["𝐭","t"],["𝐮","u"],["𝐯","v"],["𝐰","w"],["𝐱","x"],["𝐲","y"],["𝐳","z"],["𝐴","A"],["𝐵","B"],["𝐶","C"],["𝐷","D"],["𝐸","E"],["𝐹","F"],["𝐺","G"],["𝐻","H"],["𝐼","I"],["𝐽","J"],["𝐾","K"],["𝐿","L"],["𝑀","M"],["𝑁","N"],["𝑂","O"],["𝑃","P"],["𝑄","Q"],["𝑅","R"],["𝑆","S"],["𝑇","T"],["𝑈","U"],["𝑉","V"],["𝑊","W"],["𝑋","X"],["𝑌","Y"],["𝑍","Z"],["𝑎","a"],["𝑏","b"],["𝑐","c"],["𝑑","d"],["𝑒","e"],["𝑓","f"],["𝑔","g"],["𝑖","i"],["𝑗","j"],["𝑘","k"],["𝑙","l"],["𝑚","m"],["𝑛","n"],["𝑜","o"],["𝑝","p"],["𝑞","q"],["𝑟","r"],["𝑠","s"],["𝑡","t"],["𝑢","u"],["𝑣","v"],["𝑤","w"],["𝑥","x"],["𝑦","y"],["𝑧","z"],["𝑨","A"],["𝑩","B"],["𝑪","C"],["𝑫","D"],["𝑬","E"],["𝑭","F"],["𝑮","G"],["𝑯","H"],["𝑰","I"],["𝑱","J"],["𝑲","K"],["𝑳","L"],["𝑴","M"],["𝑵","N"],["𝑶","O"],["𝑷","P"],["𝑸","Q"],["𝑹","R"],["𝑺","S"],["𝑻","T"],["𝑼","U"],["𝑽","V"],["𝑾","W"],["𝑿","X"],["𝒀","Y"],["𝒁","Z"],["𝒂","a"],["𝒃","b"],["𝒄","c"],["𝒅","d"],["𝒆","e"],["𝒇","f"],["𝒈","g"],["𝒉","h"],["𝒊","i"],["𝒋","j"],["𝒌","k"],["𝒍","l"],["𝒎","m"],["𝒏","n"],["𝒐","o"],["𝒑","p"],["𝒒","q"],["𝒓","r"],["𝒔","s"],["𝒕","t"],["𝒖","u"],["𝒗","v"],["𝒘","w"],["𝒙","x"],["𝒚","y"],["𝒛","z"],["𝒜","A"],["𝒞","C"],["𝒟","D"],["𝒢","g"],["𝒥","J"],["𝒦","K"],["𝒩","N"],["𝒪","O"],["𝒫","P"],["𝒬","Q"],["𝒮","S"],["𝒯","T"],["𝒰","U"],["𝒱","V"],["𝒲","W"],["𝒳","X"],["𝒴","Y"],["𝒵","Z"],["𝒶","a"],["𝒷","b"],["𝒸","c"],["𝒹","d"],["𝒻","f"],["𝒽","h"],["𝒾","i"],["𝒿","j"],["𝓀","h"],["𝓁","l"],["𝓂","m"],["𝓃","n"],["𝓅","p"],["𝓆","q"],["𝓇","r"],["𝓈","s"],["𝓉","t"],["𝓊","u"],["𝓋","v"],["𝓌","w"],["𝓍","x"],["𝓎","y"],["𝓏","z"],["𝓐","A"],["𝓑","B"],["𝓒","C"],["𝓓","D"],["𝓔","E"],["𝓕","F"],["𝓖","G"],["𝓗","H"],["𝓘","I"],["𝓙","J"],["𝓚","K"],["𝓛","L"],["𝓜","M"],["𝓝","N"],["𝓞","O"],["𝓟","P"],["𝓠","Q"],["𝓡","R"],["𝓢","S"],["𝓣","T"],["𝓤","U"],["𝓥","V"],["𝓦","W"],["𝓧","X"],["𝓨","Y"],["𝓩","Z"],["𝓪","a"],["𝓫","b"],["𝓬","c"],["𝓭","d"],["𝓮","e"],["𝓯","f"],["𝓰","g"],["𝓱","h"],["𝓲","i"],["𝓳","j"],["𝓴","k"],["𝓵","l"],["𝓶","m"],["𝓷","n"],["𝓸","o"],["𝓹","p"],["𝓺","q"],["𝓻","r"],["𝓼","s"],["𝓽","t"],["𝓾","u"],["𝓿","v"],["𝔀","w"],["𝔁","x"],["𝔂","y"],["𝔃","z"],["𝔄","A"],["𝔅","B"],["𝔇","D"],["𝔈","E"],["𝔉","F"],["𝔊","G"],["𝔍","J"],["𝔎","K"],["𝔏","L"],["𝔐","M"],["𝔑","N"],["𝔒","O"],["𝔓","P"],["𝔔","Q"],["𝔖","S"],["𝔗","T"],["𝔘","U"],["𝔙","V"],["𝔚","W"],["𝔛","X"],["𝔜","Y"],["𝔞","a"],["𝔟","b"],["𝔠","c"],["𝔡","d"],["𝔢","e"],["𝔣","f"],["𝔤","g"],["𝔥","h"],["𝔦","i"],["𝔧","j"],["𝔨","k"],["𝔩","l"],["𝔪","m"],["𝔫","n"],["𝔬","o"],["𝔭","p"],["𝔮","q"],["𝔯","r"],["𝔰","s"],["𝔱","t"],["𝔲","u"],["𝔳","v"],["𝔴","w"],["𝔵","x"],["𝔶","y"],["𝔷","z"],["𝔸","A"],["𝔹","B"],["𝔻","D"],["𝔼","E"],["𝔽","F"],["𝔾","G"],["𝕀","I"],["𝕁","J"],["𝕂","K"],["𝕃","L"],["𝕄","M"],["𝕆","N"],["𝕊","S"],["𝕋","T"],["𝕌","U"],["𝕍","V"],["𝕎","W"],["𝕏","X"],["𝕐","Y"],["𝕒","a"],["𝕓","b"],["𝕔","c"],["𝕕","d"],["𝕖","e"],["𝕗","f"],["𝕘","g"],["𝕙","h"],["𝕚","i"],["𝕛","j"],["𝕜","k"],["𝕝","l"],["𝕞","m"],["𝕟","n"],["𝕠","o"],["𝕡","p"],["𝕢","q"],["𝕣","r"],["𝕤","s"],["𝕥","t"],["𝕦","u"],["𝕧","v"],["𝕨","w"],["𝕩","x"],["𝕪","y"],["𝕫","z"],["𝕬","A"],["𝕭","B"],["𝕮","C"],["𝕯","D"],["𝕰","E"],["𝕱","F"],["𝕲","G"],["𝕳","H"],["𝕴","I"],["𝕵","J"],["𝕶","K"],["𝕷","L"],["𝕸","M"],["𝕹","N"],["𝕺","O"],["𝕻","P"],["𝕼","Q"],["𝕽","R"],["𝕾","S"],["𝕿","T"],["𝖀","U"],["𝖁","V"],["𝖂","W"],["𝖃","X"],["𝖄","Y"],["𝖅","Z"],["𝖆","a"],["𝖇","b"],["𝖈","c"],["𝖉","d"],["𝖊","e"],["𝖋","f"],["𝖌","g"],["𝖍","h"],["𝖎","i"],["𝖏","j"],["𝖐","k"],["𝖑","l"],["𝖒","m"],["𝖓","n"],["𝖔","o"],["𝖕","p"],["𝖖","q"],["𝖗","r"],["𝖘","s"],["𝖙","t"],["𝖚","u"],["𝖛","v"],["𝖜","w"],["𝖝","x"],["𝖞","y"],["𝖟","z"],["𝖠","A"],["𝖡","B"],["𝖢","C"],["𝖣","D"],["𝖤","E"],["𝖥","F"],["𝖦","G"],["𝖧","H"],["𝖨","I"],["𝖩","J"],["𝖪","K"],["𝖫","L"],["𝖬","M"],["𝖭","N"],["𝖮","O"],["𝖯","P"],["𝖰","Q"],["𝖱","R"],["𝖲","S"],["𝖳","T"],["𝖴","U"],["𝖵","V"],["𝖶","W"],["𝖷","X"],["𝖸","Y"],["𝖹","Z"],["𝖺","a"],["𝖻","b"],["𝖼","c"],["𝖽","d"],["𝖾","e"],["𝖿","f"],["𝗀","g"],["𝗁","h"],["𝗂","i"],["𝗃","j"],["𝗄","k"],["𝗅","l"],["𝗆","m"],["𝗇","n"],["𝗈","o"],["𝗉","p"],["𝗊","q"],["𝗋","r"],["𝗌","s"],["𝗍","t"],["𝗎","u"],["𝗏","v"],["𝗐","w"],["𝗑","x"],["𝗒","y"],["𝗓","z"],["𝗔","A"],["𝗕","B"],["𝗖","C"],["𝗗","D"],["𝗘","E"],["𝗙","F"],["𝗚","G"],["𝗛","H"],["𝗜","I"],["𝗝","J"],["𝗞","K"],["𝗟","L"],["𝗠","M"],["𝗡","N"],["𝗢","O"],["𝗣","P"],["𝗤","Q"],["𝗥","R"],["𝗦","S"],["𝗧","T"],["𝗨","U"],["𝗩","V"],["𝗪","W"],["𝗫","X"],["𝗬","Y"],["𝗭","Z"],["𝗮","a"],["𝗯","b"],["𝗰","c"],["𝗱","d"],["𝗲","e"],["𝗳","f"],["𝗴","g"],["𝗵","h"],["𝗶","i"],["𝗷","j"],["𝗸","k"],["𝗹","l"],["𝗺","m"],["𝗻","n"],["𝗼","o"],["𝗽","p"],["𝗾","q"],["𝗿","r"],["𝘀","s"],["𝘁","t"],["𝘂","u"],["𝘃","v"],["𝘄","w"],["𝘅","x"],["𝘆","y"],["𝘇","z"],["𝘈","A"],["𝘉","B"],["𝘊","C"],["𝘋","D"],["𝘌","E"],["𝘍","F"],["𝘎","G"],["𝘏","H"],["𝘐","I"],["𝘑","J"],["𝘒","K"],["𝘓","L"],["𝘔","M"],["𝘕","N"],["𝘖","O"],["𝘗","P"],["𝘘","Q"],["𝘙","R"],["𝘚","S"],["𝘛","T"],["𝘜","U"],["𝘝","V"],["𝘞","W"],["𝘟","X"],["𝘠","Y"],["𝘡","Z"],["𝘢","a"],["𝘣","b"],["𝘤","c"],["𝘥","d"],["𝘦","e"],["𝘧","f"],["𝘨","g"],["𝘩","h"],["𝘪","i"],["𝘫","j"],["𝘬","k"],["𝘭","l"],["𝘮","m"],["𝘯","n"],["𝘰","o"],["𝘱","p"],["𝘲","q"],["𝘳","r"],["𝘴","s"],["𝘵","t"],["𝘶","u"],["𝘷","v"],["𝘸","w"],["𝘹","x"],["𝘺","y"],["𝘻","z"],["𝘼","A"],["𝘽","B"],["𝘾","C"],["𝘿","D"],["𝙀","E"],["𝙁","F"],["𝙂","G"],["𝙃","H"],["𝙄","I"],["𝙅","J"],["𝙆","K"],["𝙇","L"],["𝙈","M"],["𝙉","N"],["𝙊","O"],["𝙋","P"],["𝙌","Q"],["𝙍","R"],["𝙎","S"],["𝙏","T"],["𝙐","U"],["𝙑","V"],["𝙒","W"],["𝙓","X"],["𝙔","Y"],["𝙕","Z"],["𝙖","a"],["𝙗","b"],["𝙘","c"],["𝙙","d"],["𝙚","e"],["𝙛","f"],["𝙜","g"],["𝙝","h"],["𝙞","i"],["𝙟","j"],["𝙠","k"],["𝙡","l"],["𝙢","m"],["𝙣","n"],["𝙤","o"],["𝙥","p"],["𝙦","q"],["𝙧","r"],["𝙨","s"],["𝙩","t"],["𝙪","u"],["𝙫","v"],["𝙬","w"],["𝙭","x"],["𝙮","y"],["𝙯","z"],["𝙰","A"],["𝙱","B"],["𝙲","C"],["𝙳","D"],["𝙴","E"],["𝙵","F"],["𝙶","G"],["𝙷","H"],["𝙸","I"],["𝙹","J"],["𝙺","K"],["𝙻","L"],["𝙼","M"],["𝙽","N"],["𝙾","O"],["𝙿","P"],["𝚀","Q"],["𝚁","R"],["𝚂","S"],["𝚃","T"],["𝚄","U"],["𝚅","V"],["𝚆","W"],["𝚇","X"],["𝚈","Y"],["𝚉","Z"],["𝚊","a"],["𝚋","b"],["𝚌","c"],["𝚍","d"],["𝚎","e"],["𝚏","f"],["𝚐","g"],["𝚑","h"],["𝚒","i"],["𝚓","j"],["𝚔","k"],["𝚕","l"],["𝚖","m"],["𝚗","n"],["𝚘","o"],["𝚙","p"],["𝚚","q"],["𝚛","r"],["𝚜","s"],["𝚝","t"],["𝚞","u"],["𝚟","v"],["𝚠","w"],["𝚡","x"],["𝚢","y"],["𝚣","z"],["𝚤","l"],["𝚥","j"],["𝛢","A"],["𝛣","B"],["𝛤","G"],["𝛥","D"],["𝛦","E"],["𝛧","Z"],["𝛨","I"],["𝛩","TH"],["𝛪","I"],["𝛫","K"],["𝛬","L"],["𝛭","M"],["𝛮","N"],["𝛯","KS"],["𝛰","O"],["𝛱","P"],["𝛲","R"],["𝛳","TH"],["𝛴","S"],["𝛵","T"],["𝛶","Y"],["𝛷","F"],["𝛸","x"],["𝛹","PS"],["𝛺","O"],["𝛻","D"],["𝛼","a"],["𝛽","b"],["𝛾","g"],["𝛿","d"],["𝜀","e"],["𝜁","z"],["𝜂","i"],["𝜃","th"],["𝜄","i"],["𝜅","k"],["𝜆","l"],["𝜇","m"],["𝜈","n"],["𝜉","ks"],["𝜊","o"],["𝜋","p"],["𝜌","r"],["𝜍","s"],["𝜎","s"],["𝜏","t"],["𝜐","y"],["𝜑","f"],["𝜒","x"],["𝜓","ps"],["𝜔","o"],["𝜕","d"],["𝜖","E"],["𝜗","TH"],["𝜘","K"],["𝜙","f"],["𝜚","r"],["𝜛","p"],["𝜜","A"],["𝜝","V"],["𝜞","G"],["𝜟","D"],["𝜠","E"],["𝜡","Z"],["𝜢","I"],["𝜣","TH"],["𝜤","I"],["𝜥","K"],["𝜦","L"],["𝜧","M"],["𝜨","N"],["𝜩","KS"],["𝜪","O"],["𝜫","P"],["𝜬","S"],["𝜭","TH"],["𝜮","S"],["𝜯","T"],["𝜰","Y"],["𝜱","F"],["𝜲","X"],["𝜳","PS"],["𝜴","O"],["𝜵","D"],["𝜶","a"],["𝜷","v"],["𝜸","g"],["𝜹","d"],["𝜺","e"],["𝜻","z"],["𝜼","i"],["𝜽","th"],["𝜾","i"],["𝜿","k"],["𝝀","l"],["𝝁","m"],["𝝂","n"],["𝝃","ks"],["𝝄","o"],["𝝅","p"],["𝝆","r"],["𝝇","s"],["𝝈","s"],["𝝉","t"],["𝝊","y"],["𝝋","f"],["𝝌","x"],["𝝍","ps"],["𝝎","o"],["𝝏","a"],["𝝐","e"],["𝝑","i"],["𝝒","k"],["𝝓","f"],["𝝔","r"],["𝝕","p"],["𝝖","A"],["𝝗","B"],["𝝘","G"],["𝝙","D"],["𝝚","E"],["𝝛","Z"],["𝝜","I"],["𝝝","TH"],["𝝞","I"],["𝝟","K"],["𝝠","L"],["𝝡","M"],["𝝢","N"],["𝝣","KS"],["𝝤","O"],["𝝥","P"],["𝝦","R"],["𝝧","TH"],["𝝨","S"],["𝝩","T"],["𝝪","Y"],["𝝫","F"],["𝝬","X"],["𝝭","PS"],["𝝮","O"],["𝝯","D"],["𝝰","a"],["𝝱","v"],["𝝲","g"],["𝝳","d"],["𝝴","e"],["𝝵","z"],["𝝶","i"],["𝝷","th"],["𝝸","i"],["𝝹","k"],["𝝺","l"],["𝝻","m"],["𝝼","n"],["𝝽","ks"],["𝝾","o"],["𝝿","p"],["𝞀","r"],["𝞁","s"],["𝞂","s"],["𝞃","t"],["𝞄","y"],["𝞅","f"],["𝞆","x"],["𝞇","ps"],["𝞈","o"],["𝞉","a"],["𝞊","e"],["𝞋","i"],["𝞌","k"],["𝞍","f"],["𝞎","r"],["𝞏","p"],["𝞐","A"],["𝞑","V"],["𝞒","G"],["𝞓","D"],["𝞔","E"],["𝞕","Z"],["𝞖","I"],["𝞗","TH"],["𝞘","I"],["𝞙","K"],["𝞚","L"],["𝞛","M"],["𝞜","N"],["𝞝","KS"],["𝞞","O"],["𝞟","P"],["𝞠","S"],["𝞡","TH"],["𝞢","S"],["𝞣","T"],["𝞤","Y"],["𝞥","F"],["𝞦","X"],["𝞧","PS"],["𝞨","O"],["𝞩","D"],["𝞪","av"],["𝞫","g"],["𝞬","d"],["𝞭","e"],["𝞮","z"],["𝞯","i"],["𝞰","i"],["𝞱","th"],["𝞲","i"],["𝞳","k"],["𝞴","l"],["𝞵","m"],["𝞶","n"],["𝞷","ks"],["𝞸","o"],["𝞹","p"],["𝞺","r"],["𝞻","s"],["𝞼","s"],["𝞽","t"],["𝞾","y"],["𝞿","f"],["𝟀","x"],["𝟁","ps"],["𝟂","o"],["𝟃","a"],["𝟄","e"],["𝟅","i"],["𝟆","k"],["𝟇","f"],["𝟈","r"],["𝟉","p"],["𝟊","F"],["𝟋","f"],["⒜","(a)"],["⒝","(b)"],["⒞","(c)"],["⒟","(d)"],["⒠","(e)"],["⒡","(f)"],["⒢","(g)"],["⒣","(h)"],["⒤","(i)"],["⒥","(j)"],["⒦","(k)"],["⒧","(l)"],["⒨","(m)"],["⒩","(n)"],["⒪","(o)"],["⒫","(p)"],["⒬","(q)"],["⒭","(r)"],["⒮","(s)"],["⒯","(t)"],["⒰","(u)"],["⒱","(v)"],["⒲","(w)"],["⒳","(x)"],["⒴","(y)"],["⒵","(z)"],["Ⓐ","(A)"],["Ⓑ","(B)"],["Ⓒ","(C)"],["Ⓓ","(D)"],["Ⓔ","(E)"],["Ⓕ","(F)"],["Ⓖ","(G)"],["Ⓗ","(H)"],["Ⓘ","(I)"],["Ⓙ","(J)"],["Ⓚ","(K)"],["Ⓛ","(L)"],["Ⓝ","(N)"],["Ⓞ","(O)"],["Ⓟ","(P)"],["Ⓠ","(Q)"],["Ⓡ","(R)"],["Ⓢ","(S)"],["Ⓣ","(T)"],["Ⓤ","(U)"],["Ⓥ","(V)"],["Ⓦ","(W)"],["Ⓧ","(X)"],["Ⓨ","(Y)"],["Ⓩ","(Z)"],["ⓐ","(a)"],["ⓑ","(b)"],["ⓒ","(b)"],["ⓓ","(c)"],["ⓔ","(e)"],["ⓕ","(f)"],["ⓖ","(g)"],["ⓗ","(h)"],["ⓘ","(i)"],["ⓙ","(j)"],["ⓚ","(k)"],["ⓛ","(l)"],["ⓜ","(m)"],["ⓝ","(n)"],["ⓞ","(o)"],["ⓟ","(p)"],["ⓠ","(q)"],["ⓡ","(r)"],["ⓢ","(s)"],["ⓣ","(t)"],["ⓤ","(u)"],["ⓥ","(v)"],["ⓦ","(w)"],["ⓧ","(x)"],["ⓨ","(y)"],["ⓩ","(z)"],["Ċ","C"],["ċ","c"],["Ġ","G"],["ġ","g"],["Ħ","H"],["ħ","h"],["Ż","Z"],["ż","z"],["𝟎","0"],["𝟏","1"],["𝟐","2"],["𝟑","3"],["𝟒","4"],["𝟓","5"],["𝟔","6"],["𝟕","7"],["𝟖","8"],["𝟗","9"],["𝟘","0"],["𝟙","1"],["𝟚","2"],["𝟛","3"],["𝟜","4"],["𝟝","5"],["𝟞","6"],["𝟟","7"],["𝟠","8"],["𝟡","9"],["𝟢","0"],["𝟣","1"],["𝟤","2"],["𝟥","3"],["𝟦","4"],["𝟧","5"],["𝟨","6"],["𝟩","7"],["𝟪","8"],["𝟫","9"],["𝟬","0"],["𝟭","1"],["𝟮","2"],["𝟯","3"],["𝟰","4"],["𝟱","5"],["𝟲","6"],["𝟳","7"],["𝟴","8"],["𝟵","9"],["𝟶","0"],["𝟷","1"],["𝟸","2"],["𝟹","3"],["𝟺","4"],["𝟻","5"],["𝟼","6"],["𝟽","7"],["𝟾","8"],["𝟿","9"],["①","1"],["②","2"],["③","3"],["④","4"],["⑤","5"],["⑥","6"],["⑦","7"],["⑧","8"],["⑨","9"],["⑩","10"],["⑪","11"],["⑫","12"],["⑬","13"],["⑭","14"],["⑮","15"],["⑯","16"],["⑰","17"],["⑱","18"],["⑲","19"],["⑳","20"],["⑴","1"],["⑵","2"],["⑶","3"],["⑷","4"],["⑸","5"],["⑹","6"],["⑺","7"],["⑻","8"],["⑼","9"],["⑽","10"],["⑾","11"],["⑿","12"],["⒀","13"],["⒁","14"],["⒂","15"],["⒃","16"],["⒄","17"],["⒅","18"],["⒆","19"],["⒇","20"],["⒈","1."],["⒉","2."],["⒊","3."],["⒋","4."],["⒌","5."],["⒍","6."],["⒎","7."],["⒏","8."],["⒐","9."],["⒑","10."],["⒒","11."],["⒓","12."],["⒔","13."],["⒕","14."],["⒖","15."],["⒗","16."],["⒘","17."],["⒙","18."],["⒚","19."],["⒛","20."],["⓪","0"],["⓫","11"],["⓬","12"],["⓭","13"],["⓮","14"],["⓯","15"],["⓰","16"],["⓱","17"],["⓲","18"],["⓳","19"],["⓴","20"],["⓵","1"],["⓶","2"],["⓷","3"],["⓸","4"],["⓹","5"],["⓺","6"],["⓻","7"],["⓼","8"],["⓽","9"],["⓾","10"],["⓿","0"],["🙰","&"],["🙱","&"],["🙲","&"],["🙳","&"],["🙴","&"],["🙵","&"],["🙶",'"'],["🙷",'"'],["🙸",'"'],["‽","?!"],["🙹","?!"],["🙺","?!"],["🙻","?!"],["🙼","/"],["🙽","\\"],["🜇","AR"],["🜈","V"],["🜉","V"],["🜆","VR"],["🜅","VF"],["🜩","2"],["🜪","5"],["🝡","f"],["🝢","W"],["🝣","U"],["🝧","V"],["🝨","T"],["🝪","V"],["🝫","MB"],["🝬","VB"],["🝲","3B"],["🝳","3B"],["💯","100"],["🔙","BACK"],["🔚","END"],["🔛","ON!"],["🔜","SOON"],["🔝","TOP"],["🔞","18"],["🔤","abc"],["🔠","ABCD"],["🔡","abcd"],["🔢","1234"],["🔣","T&@%"],["#️⃣","#"],["*️⃣","*"],["0️⃣","0"],["1️⃣","1"],["2️⃣","2"],["3️⃣","3"],["4️⃣","4"],["5️⃣","5"],["6️⃣","6"],["7️⃣","7"],["8️⃣","8"],["9️⃣","9"],["🔟","10"],["🅰️","A"],["🅱️","B"],["🆎","AB"],["🆑","CL"],["🅾️","O"],["🅿","P"],["🆘","SOS"],["🅲","C"],["🅳","D"],["🅴","E"],["🅵","F"],["🅶","G"],["🅷","H"],["🅸","I"],["🅹","J"],["🅺","K"],["🅻","L"],["🅼","M"],["🅽","N"],["🆀","Q"],["🆁","R"],["🆂","S"],["🆃","T"],["🆄","U"],["🆅","V"],["🆆","W"],["🆇","X"],["🆈","Y"],["🆉","Z"]],Uve=(e,t)=>{for(const[n,o]of t)e=e.replace(new RegExp(a0(n),"g"),o);return e};function Wve(e,t){if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};const n=new Map([...Hve,...t.customReplacements]);return e=e.normalize(),e=Uve(e,n),e=e.normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize(),e}const qve=[["&"," and "],["🦄"," unicorn "],["♥"," love "]],Kve=e=>e.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"),Gve=(e,t)=>{const n=a0(t);return e.replace(new RegExp(`${n}{2,}`,"g"),t).replace(new RegExp(`^${n}|${n}$`,"g"),"")},Yve=e=>{let t="a-z\\d";if(t+=e.lowercase?"":"A-Z",e.preserveCharacters.length>0)for(const n of e.preserveCharacters){if(n===e.separator)throw new Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=a0(n)}return new RegExp(`[^${t}]+`,"g")};function Zve(e,t){if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);t={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...t};const n=t.preserveLeadingUnderscore&&e.startsWith("_"),o=t.preserveTrailingDash&&e.endsWith("-"),r=new Map([...qve,...t.customReplacements]);e=Wve(e,{customReplacements:r}),t.decamelize&&(e=Kve(e));const i=Yve(t);return t.lowercase&&(e=e.toLowerCase()),e=e.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3"),e=e.replace(i,t.separator),e=e.replace(/\\/g,""),t.separator&&(e=Gve(e,t.separator)),n&&(e=`_${e}`),o&&(e=`${e}-`),e}function Jve(e,t){return function(n,o){let{$from:r,$to:i,node:s}=n.selection;if(s&&s.isBlock||r.depth<2||!r.sameParent(i))return!1;let l=r.node(-1);if(l.type!=e)return!1;if(r.parent.content.size==0&&r.node(-1).childCount==r.indexAfter(-1)){if(r.depth==3||r.node(-3).type!=e||r.index(-2)!=r.node(-2).childCount-1)return!1;if(o){let d=Me.empty,f=r.index(-1)?1:r.index(-2)?2:3;for(let v=r.depth-f;v>=r.depth-3;v--)d=Me.from(r.node(v).copy(d));let p=r.indexAfter(-1)<r.node(-2).childCount?1:r.indexAfter(-2)<r.node(-3).childCount?2:3;d=d.append(Me.from(e.createAndFill()));let h=r.before(r.depth-(f-1)),m=n.tr.replace(h,r.after(-p),new Ve(d,4-f,0)),b=-1;m.doc.nodesBetween(h,m.doc.content.size,(v,E)=>{if(b>-1)return!1;v.isTextblock&&v.content.size==0&&(b=E+1)}),b>-1&&m.setSelection(ft.near(m.doc.resolve(b))),o(m.scrollIntoView())}return!0}let a=i.pos==r.end()?l.contentMatchAt(0).defaultType:null,c=n.tr.delete(r.pos,i.pos),u=a?[t?{type:e,attrs:t}:null,{type:a}]:void 0;return Jf(c.doc,r.pos,2,u)?(o&&o(c.split(r.pos,2,u).scrollIntoView()),!0):!1}}function mP(e){return function(t,n){let{$from:o,$to:r}=t.selection,i=o.blockRange(r,s=>s.childCount>0&&s.firstChild.type==e);return i?n?o.node(i.depth-1).type==e?Xve(t,n,e,i):Qve(t,n,i):!0:!1}}function Xve(e,t,n,o){let r=e.tr,i=o.end,s=o.$to.end(o.depth);i<s&&(r.step(new co(i-1,s,i,s,new Ve(Me.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new oI(r.doc.resolve(o.$from.pos),r.doc.resolve(s),o.depth));const l=J1(o);if(l==null)return!1;r.lift(o,l);let a=r.mapping.map(i,-1)-1;return X1(r.doc,a)&&r.join(a),t(r.scrollIntoView()),!0}function Qve(e,t,n){let o=e.tr,r=n.parent;for(let p=n.end,h=n.endIndex-1,m=n.startIndex;h>m;h--)p-=r.child(h).nodeSize,o.delete(p-1,p+1);let i=o.doc.resolve(n.start),s=i.nodeAfter;if(o.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,a=n.endIndex==r.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(l?0:1),u+1,s.content.append(a?Me.empty:Me.from(r))))return!1;let d=i.pos,f=d+s.nodeSize;return o.step(new co(d-(l?1:0),f+(a?1:0),d+1,f-1,new Ve((l?Me.empty:Me.from(r.copy(Me.empty))).append(a?Me.empty:Me.from(r.copy(Me.empty))),l?0:1,a?0:1),l?0:1)),t(o.scrollIntoView()),!0}function ebe(e){return function(t,n){let{$from:o,$to:r}=t.selection,i=o.blockRange(r,c=>c.childCount>0&&c.firstChild.type==e);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let l=i.parent,a=l.child(s-1);if(a.type!=e)return!1;if(n){let c=a.lastChild&&a.lastChild.type==l.type,u=Me.from(c?e.create():null),d=new Ve(Me.from(e.create(null,Me.from(l.type.create(null,u)))),c?3:1,0),f=i.start,p=i.end;n(t.tr.step(new co(f-(c?3:1),p,f,p,d,1,!0)).scrollIntoView())}return!0}}function tbe(e){const t=new Map;if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return vd(e,"definition",function(o){const r=SS(o.identifier);r&&!t.get(r)&&t.set(r,o)}),n;function n(o){const r=SS(o);return t.get(r)}}function SS(e){return String(e||"").toUpperCase()}function nbe(){return function(e){const t=tbe(e);vd(e,function(n,o,r){if(n.type==="definition"&&r!==void 0&&typeof o=="number")return r.children.splice(o,1),[Oy,o];if(n.type==="imageReference"||n.type==="linkReference"){const i=t(n.identifier);if(i&&r&&typeof o=="number")return r.children[o]=n.type==="imageReference"?{type:"image",url:i.url,title:i.title,alt:n.alt}:{type:"link",url:i.url,title:i.title,children:n.children},[Oy,o]}})}}function _P(e,t){var n;if(!(t.childCount>=1&&((n=t.lastChild)==null?void 0:n.type.name)==="hardbreak")){e.next(t.content);return}const o=[];t.content.forEach((r,i,s)=>{s!==t.childCount-1&&o.push(r)}),e.next(Me.fromArray(o))}function me(e,t){return Object.assign(e,{meta:{package:"@milkdown/preset-commonmark",...t}}),e}const _k=Mh("emphasis");me(_k,{displayName:"Attr<emphasis>",group:"Emphasis"});const bc=Th("emphasis",e=>({attrs:{marker:{default:e.get(ep).emphasis||"*"}},parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style",getAttrs:t=>t==="italic"}],toDOM:t=>["em",e.get(_k.key)(t)],parseMarkdown:{match:t=>t.type==="emphasis",runner:(t,n,o)=>{t.openMark(o,{marker:n.marker}),t.next(n.children),t.closeMark(o)}},toMarkdown:{match:t=>t.type.name==="emphasis",runner:(t,n)=>{t.withMark(n,"emphasis",void 0,{marker:n.attrs.marker})}}}));me(bc.mark,{displayName:"MarkSchema<emphasis>",group:"Emphasis"});me(bc.ctx,{displayName:"MarkSchemaCtx<emphasis>",group:"Emphasis"});const c0=Ct("ToggleEmphasis",e=>()=>o0(bc.type(e)));me(c0,{displayName:"Command<toggleEmphasisCommand>",group:"Emphasis"});const gP=qo(e=>Ch(/(?:^|[^*])\*([^*]+)\*$/,bc.type(e),{getAttr:()=>({marker:"*"}),updateCaptured:({fullMatch:t,start:n})=>t.startsWith("*")?{}:{fullMatch:t.slice(1),start:n+1}}));me(gP,{displayName:"InputRule<emphasis>|Star",group:"Emphasis"});const vP=qo(e=>Ch(/(?:^|[^_])_([^_]+)_$/,bc.type(e),{getAttr:()=>({marker:"_"}),updateCaptured:({fullMatch:t,start:n})=>t.startsWith("_")?{}:{fullMatch:t.slice(1),start:n+1}}));me(vP,{displayName:"InputRule<emphasis>|Underscore",group:"Emphasis"});const gk=Ko("emphasisKeymap",{ToggleEmphasis:{shortcuts:"Mod-i",command:e=>{const t=e.get(It);return()=>t.call(c0.key)}}});me(gk.ctx,{displayName:"KeymapCtx<emphasis>",group:"Emphasis"});me(gk.shortcuts,{displayName:"Keymap<emphasis>",group:"Emphasis"});const vk=Mh("strong");me(vk,{displayName:"Attr<strong>",group:"Strong"});const yd=Th("strong",e=>({attrs:{marker:{default:e.get(ep).strong||"*"}},parseDOM:[{tag:"b"},{tag:"strong"},{style:"font-style",getAttrs:t=>t==="bold"}],toDOM:t=>["strong",e.get(vk.key)(t)],parseMarkdown:{match:t=>t.type==="strong",runner:(t,n,o)=>{t.openMark(o,{marker:n.marker}),t.next(n.children),t.closeMark(o)}},toMarkdown:{match:t=>t.type.name==="strong",runner:(t,n)=>{t.withMark(n,"strong",void 0,{marker:n.attrs.marker})}}}));me(yd.mark,{displayName:"MarkSchema<strong>",group:"Strong"});me(yd.ctx,{displayName:"MarkSchemaCtx<strong>",group:"Strong"});const u0=Ct("ToggleStrong",e=>()=>o0(yd.type(e)));me(u0,{displayName:"Command<toggleStrongCommand>",group:"Strong"});const bP=qo(e=>Ch(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,yd.type(e),{getAttr:t=>({marker:t[0].startsWith("*")?"*":"_"})}));me(bP,{displayName:"InputRule<strong>",group:"Strong"});const bk=Ko("strongKeymap",{ToggleBold:{shortcuts:["Mod-b"],command:e=>{const t=e.get(It);return()=>t.call(u0.key)}}});me(bk.ctx,{displayName:"KeymapCtx<strong>",group:"Strong"});me(bk.shortcuts,{displayName:"Keymap<strong>",group:"Strong"});const yk=Mh("inlineCode");me(yk,{displayName:"Attr<inlineCode>",group:"InlineCode"});const ms=Th("inlineCode",e=>({priority:100,code:!0,inclusive:!1,parseDOM:[{tag:"code"}],toDOM:t=>["code",e.get(yk.key)(t)],parseMarkdown:{match:t=>t.type==="inlineCode",runner:(t,n,o)=>{t.openMark(o),t.addText(n.value),t.closeMark(o)}},toMarkdown:{match:t=>t.type.name==="inlineCode",runner:(t,n,o)=>{t.withMark(n,"inlineCode",o.text||"")}}}));me(ms.mark,{displayName:"MarkSchema<inlineCode>",group:"InlineCode"});me(ms.ctx,{displayName:"MarkSchemaCtx<inlineCode>",group:"InlineCode"});const d0=Ct("ToggleInlineCode",e=>()=>(t,n)=>{const{selection:o,tr:r}=t;if(o.empty)return!1;const{from:i,to:s}=o;return t.doc.rangeHasMark(i,s,ms.type(e))?(n==null||n(r.removeMark(i,s,ms.type(e))),!0):(Object.keys(t.schema.marks).filter(l=>l!==ms.type.name).map(l=>t.schema.marks[l]).forEach(l=>{r.removeMark(i,s,l)}),n==null||n(r.addMark(i,s,ms.type(e).create())),!0)});me(d0,{displayName:"Command<toggleInlineCodeCommand>",group:"InlineCode"});const yP=qo(e=>Ch(/(?:\`)([^\`]+)(?:\`)$/,ms.type(e)));me(yP,{displayName:"InputRule<inlineCodeInputRule>",group:"InlineCode"});const wk=Ko("inlineCodeKeymap",{ToggleInlineCode:{shortcuts:"Mod-e",command:e=>{const t=e.get(It);return()=>t.call(d0.key)}}});me(wk.ctx,{displayName:"KeymapCtx<inlineCode>",group:"InlineCode"});me(wk.shortcuts,{displayName:"Keymap<inlineCode>",group:"InlineCode"});const kk=Mh("link");me(kk,{displayName:"Attr<link>",group:"Link"});const ti=Th("link",e=>({attrs:{href:{},title:{default:null}},parseDOM:[{tag:"a[href]",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Yi(t);return{href:t.getAttribute("href"),title:t.getAttribute("title")}}}],toDOM:t=>["a",{...e.get(kk.key)(t),...t.attrs}],parseMarkdown:{match:t=>t.type==="link",runner:(t,n,o)=>{const r=n.url,i=n.title;t.openMark(o,{href:r,title:i}),t.next(n.children),t.closeMark(o)}},toMarkdown:{match:t=>t.type.name==="link",runner:(t,n)=>{t.withMark(n,"link",void 0,{title:n.attrs.title,url:n.attrs.href})}}}));me(ti.mark,{displayName:"MarkSchema<link>",group:"Link"});const wP=Ct("ToggleLink",e=>(t={})=>o0(ti.type(e),t));me(wP,{displayName:"Command<toggleLinkCommand>",group:"Link"});const kP=Ct("UpdateLink",e=>(t={})=>(n,o)=>{if(!o)return!1;let r,i=-1;const{selection:s}=n,{from:l,to:a}=s;if(n.doc.nodesBetween(l,l===a?a+1:a,(h,m)=>{if(ti.type(e).isInSet(h.marks))return r=h,i=m,!1}),!r)return!1;const c=r.marks.find(({type:h})=>h===ti.type(e));if(!c)return!1;const u=i,d=i+r.nodeSize,{tr:f}=n,p=ti.type(e).create({...c.attrs,...t});return p?(o(f.removeMark(u,d,c).addMark(u,d,p).setSelection(new lt(f.selection.$anchor)).scrollIntoView()),!0):!1});me(kP,{displayName:"Command<updateLinkCommand>",group:"Link"});const xP=mk("doc",()=>({content:"block+",parseMarkdown:{match:({type:e})=>e==="root",runner:(e,t,n)=>{e.injectRoot(t,n)}},toMarkdown:{match:e=>e.type.name==="doc",runner:(e,t)=>{e.openNode("root"),e.next(t.content)}}}));me(xP,{displayName:"NodeSchema<doc>",group:"Doc"});const xk=pi("paragraph");me(xk,{displayName:"Attr<paragraph>",group:"Paragraph"});const Ps=Un("paragraph",e=>({content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:t=>["p",e.get(xk.key)(t),0],parseMarkdown:{match:t=>t.type==="paragraph",runner:(t,n,o)=>{t.openNode(o),n.children?t.next(n.children):t.addText(n.value||""),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="paragraph",runner:(t,n)=>{t.openNode("paragraph"),_P(t,n),t.closeNode()}}}));me(Ps.node,{displayName:"NodeSchema<paragraph>",group:"Paragraph"});me(Ps.ctx,{displayName:"NodeSchemaCtx<paragraph>",group:"Paragraph"});const Ck=Ct("TurnIntoText",e=>()=>Bp(Ps.type(e)));me(Ck,{displayName:"Command<turnIntoTextCommand>",group:"Paragraph"});const Sk=Ko("paragraphKeymap",{TurnIntoText:{shortcuts:"Mod-Alt-0",command:e=>{const t=e.get(It);return()=>t.call(Ck.key)}}});me(Sk.ctx,{displayName:"KeymapCtx<paragraph>",group:"Paragraph"});me(Sk.shortcuts,{displayName:"Keymap<paragraph>",group:"Paragraph"});const obe=Array(6).fill(0).map((e,t)=>t+1);function rbe(e){return Zve(e.textContent)}const f0=Cn(rbe,"headingIdGenerator");me(f0,{displayName:"Ctx<HeadingIdGenerator>",group:"Heading"});const $k=pi("heading");me($k,{displayName:"Attr<heading>",group:"Heading"});const Pi=Un("heading",e=>{const t=e.get(f0.key);return{content:"inline*",group:"block",defining:!0,attrs:{id:{default:""},level:{default:1}},parseDOM:obe.map(n=>({tag:`h${n}`,getAttrs:o=>{if(!(o instanceof HTMLElement))throw Yi(o);return{level:n,id:o.id}}})),toDOM:n=>[`h${n.attrs.level}`,{...e.get($k.key)(n),id:n.attrs.id||t(n)},0],parseMarkdown:{match:({type:n})=>n==="heading",runner:(n,o,r)=>{const i=o.depth;n.openNode(r,{level:i}),n.next(o.children),n.closeNode()}},toMarkdown:{match:n=>n.type.name==="heading",runner:(n,o)=>{n.openNode("heading",void 0,{depth:o.attrs.level}),_P(n,o),n.closeNode()}}}});me(Pi.node,{displayName:"NodeSchema<heading>",group:"Heading"});me(Pi.ctx,{displayName:"NodeSchemaCtx<heading>",group:"Heading"});const CP=qo(e=>aO(/^(?<hashes>#+)\s$/,Pi.type(e),t=>{var n,o;const r=((o=(n=t.groups)==null?void 0:n.hashes)==null?void 0:o.length)||0,i=e.get(pn),{$from:s}=i.state.selection,l=s.node();if(l.type.name==="heading"){let a=Number(l.attrs.level)+Number(r);return a>6&&(a=6),{level:a}}return{level:r}}));me(CP,{displayName:"InputRule<wrapInHeadingInputRule>",group:"Heading"});const dl=Ct("WrapInHeading",e=>t=>(t??(t=1),t<1?Bp(Ps.type(e)):Bp(Pi.type(e),{level:t})));me(dl,{displayName:"Command<wrapInHeadingCommand>",group:"Heading"});const Ek=Ct("DowngradeHeading",e=>()=>(t,n,o)=>{const{$from:r}=t.selection,i=r.node();if(i.type!==Pi.type(e)||!t.selection.empty||r.parentOffset!==0)return!1;const s=i.attrs.level-1;return s?(n==null||n(t.tr.setNodeMarkup(t.selection.$from.before(),void 0,{...i.attrs,level:s})),!0):Bp(Ps.type(e))(t,n,o)});me(Ek,{displayName:"Command<downgradeHeadingCommand>",group:"Heading"});const Tk=Ko("headingKeymap",{TurnIntoH1:{shortcuts:"Mod-Alt-1",command:e=>{const t=e.get(It);return()=>t.call(dl.key,1)}},TurnIntoH2:{shortcuts:"Mod-Alt-2",command:e=>{const t=e.get(It);return()=>t.call(dl.key,2)}},TurnIntoH3:{shortcuts:"Mod-Alt-3",command:e=>{const t=e.get(It);return()=>t.call(dl.key,3)}},TurnIntoH4:{shortcuts:"Mod-Alt-4",command:e=>{const t=e.get(It);return()=>t.call(dl.key,4)}},TurnIntoH5:{shortcuts:"Mod-Alt-5",command:e=>{const t=e.get(It);return()=>t.call(dl.key,5)}},TurnIntoH6:{shortcuts:"Mod-Alt-6",command:e=>{const t=e.get(It);return()=>t.call(dl.key,6)}},DowngradeHeading:{shortcuts:["Delete","Backspace"],command:e=>{const t=e.get(It);return()=>t.call(Ek.key)}}});me(Tk.ctx,{displayName:"KeymapCtx<heading>",group:"Heading"});me(Tk.shortcuts,{displayName:"Keymap<heading>",group:"Heading"});const Mk=pi("blockquote");me(Mk,{displayName:"Attr<blockquote>",group:"Blockquote"});const wd=Un("blockquote",e=>({content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:t=>["blockquote",e.get(Mk.key)(t),0],parseMarkdown:{match:({type:t})=>t==="blockquote",runner:(t,n,o)=>{t.openNode(o).next(n.children).closeNode()}},toMarkdown:{match:t=>t.type.name==="blockquote",runner:(t,n)=>{t.openNode("blockquote").next(n.content).closeNode()}}}));me(wd.node,{displayName:"NodeSchema<blockquote>",group:"Blockquote"});me(wd.ctx,{displayName:"NodeSchemaCtx<blockquote>",group:"Blockquote"});const SP=qo(e=>tk(/^\s*>\s$/,wd.type(e)));me(SP,{displayName:"InputRule<wrapInBlockquoteInputRule>",group:"Blockquote"});const Ak=Ct("WrapInBlockquote",e=>()=>sk(wd.type(e)));me(Ak,{displayName:"Command<wrapInBlockquoteCommand>",group:"Blockquote"});const Ik=Ko("blockquoteKeymap",{WrapInBlockquote:{shortcuts:"Mod-Shift-b",command:e=>{const t=e.get(It);return()=>t.call(Ak.key)}}});me(Ik.ctx,{displayName:"KeymapCtx<blockquote>",group:"Blockquote"});me(Ik.shortcuts,{displayName:"Keymap<blockquote>",group:"Blockquote"});const Ok=pi("codeBlock",()=>({pre:{},code:{}}));me(Ok,{displayName:"Attr<codeBlock>",group:"CodeBlock"});const kd=Un("code_block",e=>({content:"text*",group:"block",marks:"",defining:!0,code:!0,attrs:{language:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Yi(t);return{language:t.dataset.language}}}],toDOM:t=>{const n=e.get(Ok.key)(t);return["pre",{...n.pre,"data-language":t.attrs.language},["code",n.code,0]]},parseMarkdown:{match:({type:t})=>t==="code",runner:(t,n,o)=>{const r=n.lang,i=n.value;t.openNode(o,{language:r}),i&&t.addText(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="code_block",runner:(t,n)=>{var o;t.addNode("code",void 0,((o=n.content.firstChild)==null?void 0:o.text)||"",{lang:n.attrs.language})}}}));me(kd.node,{displayName:"NodeSchema<codeBlock>",group:"CodeBlock"});me(kd.ctx,{displayName:"NodeSchemaCtx<codeBlock>",group:"CodeBlock"});const $P=qo(e=>aO(/^```(?<language>[a-z]*)?[\s\n]$/,kd.type(e),t=>{var n;return{language:((n=t.groups)==null?void 0:n.language)??""}}));me($P,{displayName:"InputRule<createCodeBlockInputRule>",group:"CodeBlock"});const Pk=Ct("CreateCodeBlock",e=>(t="")=>Bp(kd.type(e),{language:t}));me(Pk,{displayName:"Command<createCodeBlockCommand>",group:"CodeBlock"});const ibe=Ct("UpdateCodeBlockLanguage",()=>({pos:e,language:t}={pos:-1,language:""})=>(n,o)=>e>=0?(o==null||o(n.tr.setNodeAttribute(e,"language",t)),!0):!1);me(ibe,{displayName:"Command<updateCodeBlockLanguageCommand>",group:"CodeBlock"});const Nk=Ko("codeBlockKeymap",{CreateCodeBlock:{shortcuts:"Mod-Alt-c",command:e=>{const t=e.get(It);return()=>t.call(Pk.key)}}});me(Nk.ctx,{displayName:"KeymapCtx<codeBlock>",group:"CodeBlock"});me(Nk.shortcuts,{displayName:"Keymap<codeBlock>",group:"CodeBlock"});const Lk=pi("image");me(Lk,{displayName:"Attr<image>",group:"Image"});const xd=Un("image",e=>({inline:!0,group:"inline",selectable:!0,draggable:!0,marks:"",atom:!0,defining:!0,isolating:!0,attrs:{src:{default:""},alt:{default:""},title:{default:""}},parseDOM:[{tag:"img[src]",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Yi(t);return{src:t.getAttribute("src")||"",alt:t.getAttribute("alt")||"",title:t.getAttribute("title")||t.getAttribute("alt")||""}}}],toDOM:t=>["img",{...e.get(Lk.key)(t),...t.attrs}],parseMarkdown:{match:({type:t})=>t==="image",runner:(t,n,o)=>{const r=n.url,i=n.alt,s=n.title;t.addNode(o,{src:r,alt:i,title:s})}},toMarkdown:{match:t=>t.type.name==="image",runner:(t,n)=>{t.addNode("image",void 0,void 0,{title:n.attrs.title,url:n.attrs.src,alt:n.attrs.alt})}}}));me(xd.node,{displayName:"NodeSchema<image>",group:"Image"});me(xd.ctx,{displayName:"NodeSchemaCtx<image>",group:"Image"});const EP=Ct("InsertImage",e=>(t={})=>(n,o)=>{if(!o)return!0;const{src:r="",alt:i="",title:s=""}=t,l=xd.type(e).create({src:r,alt:i,title:s});return l&&o(n.tr.replaceSelectionWith(l).scrollIntoView()),!0});me(EP,{displayName:"Command<insertImageCommand>",group:"Image"});const TP=Ct("UpdateImage",e=>(t={})=>(n,o)=>{const r=w1e(n.selection,xd.type(e));if(!r)return!1;const{node:i,pos:s}=r,l={...i.attrs},{src:a,alt:c,title:u}=t;return a!==void 0&&(l.src=a),c!==void 0&&(l.alt=c),u!==void 0&&(l.title=u),o==null||o(n.tr.setNodeMarkup(s,void 0,l).scrollIntoView()),!0});me(TP,{displayName:"Command<updateImageCommand>",group:"Image"});const sbe=qo(e=>new hr(/!\[(?<alt>.*?)]\((?<filename>.*?)\s*(?="|\))"?(?<title>[^"]+)?"?\)/,(t,n,o,r)=>{const[i,s,l="",a]=n;return i?t.tr.replaceWith(o,r,xd.type(e).create({src:l,alt:s,title:a})):null}));me(sbe,{displayName:"InputRule<insertImageInputRule>",group:"Image"});const Kg=pi("hardbreak",e=>({"data-type":"hardbreak","data-is-inline":e.attrs.isInline}));me(Kg,{displayName:"Attr<hardbreak>",group:"Hardbreak"});const Ua=Un("hardbreak",e=>({inline:!0,group:"inline",attrs:{isInline:{default:!1}},selectable:!1,parseDOM:[{tag:"br"},{tag:'span[data-type="hardbreak"]',getAttrs:()=>({isInline:!0})}],toDOM:t=>t.attrs.isInline?["span",e.get(Kg.key)(t)," "]:["br",e.get(Kg.key)(t)],parseMarkdown:{match:({type:t})=>t==="break",runner:(t,n,o)=>{var r;t.addNode(o,{isInline:!!((r=n.data)!=null&&r.isInline)})}},leafText:()=>`
119 `,toMarkdown:{match:t=>t.type.name==="hardbreak",runner:(t,n)=>{n.attrs.isInline?t.addNode("text",void 0,`
120 `):t.addNode("break")}}}));me(Ua.node,{displayName:"NodeSchema<hardbreak>",group:"Hardbreak"});me(Ua.ctx,{displayName:"NodeSchemaCtx<hardbreak>",group:"Hardbreak"});const Rk=Ct("InsertHardbreak",e=>()=>(t,n)=>{var o;const{selection:r,tr:i}=t;if(!(r instanceof lt))return!1;if(r.empty){const s=r.$from.node();if(s.childCount>0&&((o=s.lastChild)==null?void 0:o.type.name)==="hardbreak")return n==null||n(i.replaceRangeWith(r.to-1,r.to,t.schema.node("paragraph")).setSelection(ft.near(i.doc.resolve(r.to))).scrollIntoView()),!0}return n==null||n(i.setMeta("hardbreak",!0).replaceSelectionWith(Ua.type(e).create()).scrollIntoView()),!0});me(Rk,{displayName:"Command<insertHardbreakCommand>",group:"Hardbreak"});const Fk=Ko("hardbreakKeymap",{InsertHardbreak:{shortcuts:"Shift-Enter",command:e=>{const t=e.get(It);return()=>t.call(Rk.key)}}});me(Fk.ctx,{displayName:"KeymapCtx<hardbreak>",group:"Hardbreak"});me(Fk.shortcuts,{displayName:"Keymap<hardbreak>",group:"Hardbreak"});const Dk=pi("hr");me(Dk,{displayName:"Attr<hr>",group:"Hr"});const Ah=Un("hr",e=>({group:"block",parseDOM:[{tag:"hr"}],toDOM:t=>["hr",e.get(Dk.key)(t)],parseMarkdown:{match:({type:t})=>t==="thematicBreak",runner:(t,n,o)=>{t.addNode(o)}},toMarkdown:{match:t=>t.type.name==="hr",runner:t=>{t.addNode("thematicBreak")}}}));me(Ah.node,{displayName:"NodeSchema<hr>",group:"Hr"});me(Ah.ctx,{displayName:"NodeSchemaCtx<hr>",group:"Hr"});const MP=qo(e=>new hr(/^(?:---|___\s|\*\*\*\s)$/,(t,n,o,r)=>{const{tr:i}=t;return n[0]&&i.replaceWith(o-1,r,Ah.type(e).create()),i}));me(MP,{displayName:"InputRule<insertHrInputRule>",group:"Hr"});const AP=Ct("InsertHr",e=>()=>(t,n)=>{if(!n)return!0;const o=Ps.node.type(e).create(),{tr:r,selection:i}=t,{from:s}=i,l=Ah.type(e).create();if(!l)return!0;const a=r.replaceSelectionWith(l).insert(s,o),c=ft.findFrom(a.doc.resolve(s),1,!0);return c&&n(a.setSelection(c).scrollIntoView()),!0});me(AP,{displayName:"Command<insertHrCommand>",group:"Hr"});const Bk=pi("bulletList");me(Bk,{displayName:"Attr<bulletList>",group:"BulletList"});const yc=Un("bullet_list",e=>({content:"listItem+",group:"block",attrs:{spread:{default:!1}},parseDOM:[{tag:"ul",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Yi(t);return{spread:t.dataset.spread}}}],toDOM:t=>["ul",{...e.get(Bk.key)(t),"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:t,ordered:n})=>t==="list"&&!n,runner:(t,n,o)=>{const r=n.spread!=null?`${n.spread}`:"false";t.openNode(o,{spread:r}).next(n.children).closeNode()}},toMarkdown:{match:t=>t.type.name==="bullet_list",runner:(t,n)=>{t.openNode("list",void 0,{ordered:!1,spread:n.attrs.spread==="true"}).next(n.content).closeNode()}}}));me(yc.node,{displayName:"NodeSchema<bulletList>",group:"BulletList"});me(yc.ctx,{displayName:"NodeSchemaCtx<bulletList>",group:"BulletList"});const IP=qo(e=>tk(/^\s*([-+*])\s$/,yc.type(e)));me(IP,{displayName:"InputRule<wrapInBulletListInputRule>",group:"BulletList"});const zk=Ct("WrapInBulletList",e=>()=>sk(yc.type(e)));me(zk,{displayName:"Command<wrapInBulletListCommand>",group:"BulletList"});const Vk=Ko("bulletListKeymap",{WrapInBulletList:{shortcuts:"Mod-Alt-8",command:e=>{const t=e.get(It);return()=>t.call(zk.key)}}});me(Vk.ctx,{displayName:"KeymapCtx<bulletListKeymap>",group:"BulletList"});me(Vk.shortcuts,{displayName:"Keymap<bulletListKeymap>",group:"BulletList"});const jk=pi("orderedList");me(jk,{displayName:"Attr<orderedList>",group:"OrderedList"});const wc=Un("ordered_list",e=>({content:"listItem+",group:"block",attrs:{order:{default:1},spread:{default:!1}},parseDOM:[{tag:"ol",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Yi(t);return{spread:t.dataset.spread,order:t.hasAttribute("start")?Number(t.getAttribute("start")):1}}}],toDOM:t=>["ol",{...e.get(jk.key)(t),...t.attrs.order===1?{}:t.attrs.order,"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:t,ordered:n})=>t==="list"&&!!n,runner:(t,n,o)=>{const r=n.spread!=null?`${n.spread}`:"true";t.openNode(o,{spread:r}).next(n.children).closeNode()}},toMarkdown:{match:t=>t.type.name==="ordered_list",runner:(t,n)=>{t.openNode("list",void 0,{ordered:!0,start:1,spread:n.attrs.spread==="true"}),t.next(n.content),t.closeNode()}}}));me(wc.node,{displayName:"NodeSchema<orderedList>",group:"OrderedList"});me(wc.ctx,{displayName:"NodeSchemaCtx<orderedList>",group:"OrderedList"});const OP=qo(e=>tk(/^\s*(\d+)\.\s$/,wc.type(e),t=>({order:Number(t[1])}),(t,n)=>n.childCount+n.attrs.order===Number(t[1])));me(OP,{displayName:"InputRule<wrapInOrderedListInputRule>",group:"OrderedList"});const Hk=Ct("WrapInOrderedList",e=>()=>sk(wc.type(e)));me(Hk,{displayName:"Command<wrapInOrderedListCommand>",group:"OrderedList"});const Uk=Ko("orderedListKeymap",{WrapInOrderedList:{shortcuts:"Mod-Alt-7",command:e=>{const t=e.get(It);return()=>t.call(Hk.key)}}});me(Uk.ctx,{displayName:"KeymapCtx<orderedList>",group:"OrderedList"});me(Uk.shortcuts,{displayName:"Keymap<orderedList>",group:"OrderedList"});const Wk=pi("listItem");me(Wk,{displayName:"Attr<listItem>",group:"ListItem"});const Vi=Un("list_item",e=>({group:"listItem",content:"(paragraph|blockquote) block*",attrs:{label:{default:"•"},listType:{default:"bullet"},spread:{default:"true"}},defining:!0,parseDOM:[{tag:"li",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Yi(t);return{label:t.dataset.label,listType:t.dataset.listType,spread:t.dataset.spread}}}],toDOM:t=>["li",{...e.get(Wk.key)(t),"data-label":t.attrs.label,"data-list-type":t.attrs.listType,"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:t})=>t==="listItem",runner:(t,n,o)=>{const r=n.label!=null?`${n.label}.`:"•",i=n.label!=null?"ordered":"bullet",s=n.spread!=null?`${n.spread}`:"true";t.openNode(o,{label:r,listType:i,spread:s}),t.next(n.children),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="list_item",runner:(t,n)=>{t.openNode("listItem",void 0,{spread:n.attrs.spread==="true"}),t.next(n.content),t.closeNode()}}}));me(Vi.node,{displayName:"NodeSchema<listItem>",group:"ListItem"});me(Vi.ctx,{displayName:"NodeSchemaCtx<listItem>",group:"ListItem"});const qk=Ct("SinkListItem",e=>()=>ebe(Vi.type(e)));me(qk,{displayName:"Command<sinkListItemCommand>",group:"ListItem"});const Kk=Ct("LiftListItem",e=>()=>mP(Vi.type(e)));me(Kk,{displayName:"Command<liftListItemCommand>",group:"ListItem"});const Gk=Ct("SplitListItem",e=>()=>Jve(Vi.type(e)));me(Gk,{displayName:"Command<splitListItemCommand>",group:"ListItem"});function lbe(e){return(t,n,o)=>{const{selection:r}=t;if(!(r instanceof lt))return!1;const{empty:i,$from:s}=r;if(!i||s.parentOffset!==0)return!1;const l=s.node(-1);return l.type!==Vi.type(e)||l.firstChild!==s.node()||s.node(-2).childCount>1?!1:mP(Vi.type(e))(t,n,o)}}const Yk=Ct("LiftFirstListItem",e=>()=>lbe(e));me(Yk,{displayName:"Command<liftFirstListItemCommand>",group:"ListItem"});const Zk=Ko("listItemKeymap",{NextListItem:{shortcuts:"Enter",command:e=>{const t=e.get(It);return()=>t.call(Gk.key)}},SinkListItem:{shortcuts:["Tab","Mod-]"],command:e=>{const t=e.get(It);return()=>t.call(qk.key)}},LiftListItem:{shortcuts:["Shift-Tab","Mod-["],command:e=>{const t=e.get(It);return()=>t.call(Kk.key)}},LiftFirstListItem:{shortcuts:["Backspace","Delete"],command:e=>{const t=e.get(It);return()=>t.call(Yk.key)}}});me(Zk.ctx,{displayName:"KeymapCtx<listItem>",group:"ListItem"});me(Zk.shortcuts,{displayName:"Keymap<listItem>",group:"ListItem"});const PP=mk("text",()=>({group:"inline",parseMarkdown:{match:({type:e})=>e==="text",runner:(e,t)=>{e.addText(t.value)}},toMarkdown:{match:e=>e.type.name==="text",runner:(e,t)=>{e.addNode("text",void 0,t.text)}}}));me(PP,{displayName:"NodeSchema<text>",group:"Text"});const Jk=pi("html");me(Jk,{displayName:"Attr<html>",group:"Html"});const Xk=Un("html",e=>({atom:!0,group:"inline",inline:!0,attrs:{value:{default:""}},toDOM:t=>{const n=document.createElement("span"),o={...e.get(Jk.key)(t),"data-value":t.attrs.value,"data-type":"html"};return n.textContent=t.attrs.value,["span",o,t.attrs.value]},parseDOM:[{tag:'span[data-type="html"]',getAttrs:t=>({value:t.dataset.value??""})}],parseMarkdown:{match:({type:t})=>t==="html",runner:(t,n,o)=>{t.addNode(o,{value:n.value})}},toMarkdown:{match:t=>t.type.name==="html",runner:(t,n)=>{t.addNode("html",void 0,n.attrs.value)}}}));me(Xk.node,{displayName:"NodeSchema<html>",group:"Html"});me(Xk.ctx,{displayName:"NodeSchemaCtx<html>",group:"Html"});const abe=[xP,xk,Ps,f0,$k,Pi,Kg,Ua,Mk,wd,Ok,kd,Dk,Ah,Lk,xd,Bk,yc,jk,wc,Wk,Vi,_k,bc,vk,yd,yk,ms,kk,ti,Jk,Xk,PP].flat(),cbe=[SP,IP,OP,$P,MP,CP].flat(),ube=[gP,vP,yP,bP],dbe=[Ck,Ak,dl,Ek,Pk,Rk,AP,EP,TP,Hk,zk,qk,Gk,Kk,Yk,c0,d0,u0,wP,kP],fbe=[Ik,Nk,Fk,Tk,Zk,Uk,Vk,Sk,gk,wk,bk].flat(),Qk=bd("remarkAddOrderInList",()=>()=>e=>{vd(e,"list",t=>{if(t.ordered){const n=t.start??1;t.children.forEach((o,r)=>{o.label=r+n})}})});me(Qk.plugin,{displayName:"Remark<remarkAddOrderInListPlugin>",group:"Remark"});me(Qk.options,{displayName:"RemarkConfig<remarkAddOrderInListPlugin>",group:"Remark"});const e4=bd("remarkLineBreak",()=>()=>e=>{const t=/[\t ]*(?:\r?\n|\r)/g;vd(e,"text",(n,o,r)=>{if(!n.value||typeof n.value!="string")return;const i=[];let s=0;t.lastIndex=0;let l=t.exec(n.value);for(;l;){const a=l.index;s!==a&&i.push({type:"text",value:n.value.slice(s,a)}),i.push({type:"break",data:{isInline:!0}}),s=a+l[0].length,l=t.exec(n.value)}if(i.length>0&&r&&typeof o=="number")return s<n.value.length&&i.push({type:"text",value:n.value.slice(s)}),r.children.splice(o,1,...i),o+i.length})});me(e4.plugin,{displayName:"Remark<remarkLineBreak>",group:"Remark"});me(e4.options,{displayName:"RemarkConfig<remarkLineBreak>",group:"Remark"});const t4=bd("remarkInlineLink",()=>nbe);me(t4.plugin,{displayName:"Remark<remarkInlineLinkPlugin>",group:"Remark"});me(t4.options,{displayName:"RemarkConfig<remarkInlineLinkPlugin>",group:"Remark"});const pbe=e=>!!e.children,hbe=e=>e.type==="html";function mbe(e,t){return n(e,0,null)[0];function n(o,r,i){if(pbe(o)){const s=[];for(let l=0,a=o.children.length;l<a;l++){const c=o.children[l];if(c){const u=n(c,l,o);if(u)for(let d=0,f=u.length;d<f;d++){const p=u[d];p&&s.push(p)}}}o.children=s}return t(o,r,i)}}const n4=bd("remarkHTMLTransformer",()=>()=>e=>{mbe(e,(t,n,o)=>hbe(t)?((o==null?void 0:o.type)==="root"&&(t.children=[{...t}],delete t.value,t.type="paragraph"),[t]):[t])});me(n4.plugin,{displayName:"Remark<remarkHtmlTransformer>",group:"Remark"});me(n4.options,{displayName:"RemarkConfig<remarkHtmlTransformer>",group:"Remark"});const o4=bd("remarkMarker",()=>()=>(e,t)=>{const n=o=>t.value.charAt(o.position.start.offset);vd(e,o=>["strong","emphasis"].includes(o.type),o=>{o.marker=n(o)})});me(o4.plugin,{displayName:"Remark<remarkMarker>",group:"Remark"});me(o4.options,{displayName:"RemarkConfig<remarkMarker>",group:"Remark"});const NP=eo(()=>{let e=!1;const t=new mn("MILKDOWN_INLINE_NODES_CURSOR"),n=new wn({key:t,state:{init(){return!1},apply(o){if(!o.selection.empty)return!1;const r=o.selection.$from,i=r.nodeBefore,s=r.nodeAfter;return!!(i&&s&&i.isInline&&!i.isText&&s.isInline&&!s.isText)}},props:{handleDOMEvents:{compositionend:(o,r)=>e?(e=!1,requestAnimationFrame(()=>{if(n.getState(o.state)){const i=o.state.selection.from;r.preventDefault(),o.dispatch(o.state.tr.insertText(r.data||"",i))}}),!0):!1,compositionstart:o=>(n.getState(o.state)&&(e=!0),!1),beforeinput:(o,r)=>{if(n.getState(o.state)&&r instanceof InputEvent&&r.data&&!e){const i=o.state.selection.from;return r.preventDefault(),o.dispatch(o.state.tr.insertText(r.data||"",i)),!0}return!1}},decorations(o){if(n.getState(o)){const r=o.selection.$from.pos,i=document.createElement("span"),s=Rn.widget(r,i,{side:-1}),l=document.createElement("span"),a=Rn.widget(r,l);return setTimeout(()=>{i.contentEditable="true",l.contentEditable="true"}),tn.create(o.doc,[s,a])}return tn.empty}}});return n});me(NP,{displayName:"Prose<inlineNodesCursorPlugin>",group:"Prose"});const LP=eo(e=>new wn({key:new mn("MILKDOWN_HARDBREAK_MARKS"),appendTransaction:(t,n,o)=>{if(!t.length)return;const[r]=t;if(!r)return;const[i]=r.steps;if(r.getMeta("hardbreak")){if(!(i instanceof Yn))return;const{from:s}=i;return o.tr.setNodeMarkup(s,Ua.type(e),void 0,[])}if(i instanceof hs){let s=o.tr;const{from:l,to:a}=i;return o.doc.nodesBetween(l,a,(c,u)=>{c.type===Ua.type(e)&&(s=s.setNodeMarkup(u,Ua.type(e),void 0,[]))}),s}}}));me(LP,{displayName:"Prose<hardbreakClearMarkPlugin>",group:"Prose"});const r4=Cn(["table","code_block"],"hardbreakFilterNodes");me(r4,{displayName:"Ctx<hardbreakFilterNodes>",group:"Prose"});const RP=eo(e=>{const t=e.get(r4.key);return new wn({key:new mn("MILKDOWN_HARDBREAK_FILTER"),filterTransaction:(n,o)=>{const r=n.getMeta("hardbreak"),[i]=n.steps;if(r&&i){const{from:s}=i,l=o.doc.resolve(s);let a=l.depth,c=!0;for(;a>0;)t.includes(l.node(a).type.name)&&(c=!1),a--;return c}return!0}})});me(RP,{displayName:"Prose<hardbreakFilterPlugin>",group:"Prose"});const FP=eo(e=>{const t=new mn("MILKDOWN_HEADING_ID"),n=o=>{if(o.composing)return;const r=e.get(f0.key),i=o.state.tr.setMeta("addToHistory",!1);let s=!1;o.state.doc.descendants((l,a)=>{if(l.type===Pi.type(e)){if(l.textContent.trim().length===0)return;const c=l.attrs,u=r(l);c.id!==u&&(s=!0,i.setMeta(t,!0).setNodeMarkup(a,void 0,{...c,id:u}))}}),s&&o.dispatch(i)};return new wn({key:t,view:o=>(n(o),{update:(r,i)=>{r.state.doc.eq(i.doc)||n(r)}})})});me(FP,{displayName:"Prose<syncHeadingIdPlugin>",group:"Prose"});const DP=eo(e=>{const t=n=>{if(n.composing||!n.editable)return;const o=wc.type(e),r=yc.type(e),i=Vi.type(e),s=n.state,l=(u,d)=>{let f=!1;const p=`${d+1}.`;return u.label!==p&&(u.label=p,f=!0),f};let a=s.tr,c=!1;s.doc.descendants((u,d,f,p)=>{if(u.type===r){const h=u.maybeChild(0);(h==null?void 0:h.type)===i&&h.attrs.listType==="ordered"&&(c=!0,a.setNodeMarkup(d,o,{spread:"true"}),u.descendants((m,b,v,E)=>{if(m.type===i){const w={...m.attrs};l(w,E)&&(a=a.setNodeMarkup(b,void 0,w))}return!1}))}else if(u.type===i&&(f==null?void 0:f.type)===o){const h={...u.attrs};let m=!1;h.listType!=="ordered"&&(h.listType="ordered",m=!0),f!=null&&f.maybeChild(0)&&(m=l(h,p)),m&&(a=a.setNodeMarkup(d,void 0,h),c=!0)}}),c&&n.dispatch(a.setMeta("addToHistory",!1))};return new wn({key:new mn("MILKDOWN_KEEP_LIST_ORDER"),view:n=>(t(n),{update:o=>{t(o)}})})});me(DP,{displayName:"Prose<syncListOrderPlugin>",group:"Prose"});const _be=[LP,r4,RP,NP,Qk,t4,e4,n4,o4,FP,DP].flat(),gbe=[abe,cbe,ube,dbe,fbe,_be].flat();var s2,l2;if(typeof WeakMap<"u"){let e=new WeakMap;s2=t=>e.get(t),l2=(t,n)=>(e.set(t,n),n)}else{const e=[];let n=0;s2=o=>{for(let r=0;r<e.length;r+=2)if(e[r]==o)return e[r+1]},l2=(o,r)=>(n==10&&(n=0),e[n++]=o,e[n++]=r)}var jt=class{constructor(e,t,n,o){this.width=e,this.height=t,this.map=n,this.problems=o}findCell(e){for(let t=0;t<this.map.length;t++){const n=this.map[t];if(n!=e)continue;const o=t%this.width,r=t/this.width|0;let i=o+1,s=r+1;for(let l=1;i<this.width&&this.map[t+l]==n;l++)i++;for(let l=1;s<this.height&&this.map[t+this.width*l]==n;l++)s++;return{left:o,top:r,right:i,bottom:s}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){const{left:o,right:r,top:i,bottom:s}=this.findCell(e);return t=="horiz"?(n<0?o==0:r==this.width)?null:this.map[i*this.width+(n<0?o-1:r)]:(n<0?i==0:s==this.height)?null:this.map[o+this.width*(n<0?i-1:s)]}rectBetween(e,t){const{left:n,right:o,top:r,bottom:i}=this.findCell(e),{left:s,right:l,top:a,bottom:c}=this.findCell(t);return{left:Math.min(n,s),top:Math.min(r,a),right:Math.max(o,l),bottom:Math.max(i,c)}}cellsInRect(e){const t=[],n={};for(let o=e.top;o<e.bottom;o++)for(let r=e.left;r<e.right;r++){const i=o*this.width+r,s=this.map[i];n[s]||(n[s]=!0,!(r==e.left&&r&&this.map[i-1]==s||o==e.top&&o&&this.map[i-this.width]==s)&&t.push(s))}return t}positionAt(e,t,n){for(let o=0,r=0;;o++){const i=r+n.child(o).nodeSize;if(o==e){let s=t+e*this.width;const l=(e+1)*this.width;for(;s<l&&this.map[s]<r;)s++;return s==l?i-1:this.map[s]}r=i}}static get(e){return s2(e)||l2(e,vbe(e))}};function vbe(e){if(e.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+e.type.name);const t=bbe(e),n=e.childCount,o=[];let r=0,i=null;const s=[];for(let c=0,u=t*n;c<u;c++)o[c]=0;for(let c=0,u=0;c<n;c++){const d=e.child(c);u++;for(let h=0;;h++){for(;r<o.length&&o[r]!=0;)r++;if(h==d.childCount)break;const m=d.child(h),{colspan:b,rowspan:v,colwidth:E}=m.attrs;for(let w=0;w<v;w++){if(w+c>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:u,n:v-w});break}const S=r+w*t;for(let T=0;T<b;T++){o[S+T]==0?o[S+T]=u:(i||(i=[])).push({type:"collision",row:c,pos:u,n:b-T});const $=E&&E[T];if($){const A=(S+T)%t*2,P=s[A];P==null||P!=$&&s[A+1]==1?(s[A]=$,s[A+1]=1):P==$&&s[A+1]++}}}r+=b,u+=m.nodeSize}const f=(c+1)*t;let p=0;for(;r<f;)o[r++]==0&&p++;p&&(i||(i=[])).push({type:"missing",row:c,n:p}),u++}const l=new jt(t,n,o,i);let a=!1;for(let c=0;!a&&c<s.length;c+=2)s[c]!=null&&s[c+1]<n&&(a=!0);return a&&ybe(l,s,e),l}function bbe(e){let t=-1,n=!1;for(let o=0;o<e.childCount;o++){const r=e.child(o);let i=0;if(n)for(let s=0;s<o;s++){const l=e.child(s);for(let a=0;a<l.childCount;a++){const c=l.child(a);s+c.attrs.rowspan>o&&(i+=c.attrs.colspan)}}for(let s=0;s<r.childCount;s++){const l=r.child(s);i+=l.attrs.colspan,l.attrs.rowspan>1&&(n=!0)}t==-1?t=i:t!=i&&(t=Math.max(t,i))}return t}function ybe(e,t,n){e.problems||(e.problems=[]);const o={};for(let r=0;r<e.map.length;r++){const i=e.map[r];if(o[i])continue;o[i]=!0;const s=n.nodeAt(i);if(!s)throw new RangeError(`No cell with offset ${i} found`);let l=null;const a=s.attrs;for(let c=0;c<a.colspan;c++){const u=(r+c)%e.width,d=t[u*2];d!=null&&(!a.colwidth||a.colwidth[c]!=d)&&((l||(l=wbe(a)))[c]=d)}l&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:l})}}function wbe(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function $S(e,t){if(typeof e=="string")return{};const n=e.getAttribute("data-colwidth"),o=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(s=>Number(s)):null,r=Number(e.getAttribute("colspan")||1),i={colspan:r,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:o&&o.length==r?o:null};for(const s in t){const l=t[s].getFromDOM,a=l&&l(e);a!=null&&(i[s]=a)}return i}function ES(e,t){const n={};e.attrs.colspan!=1&&(n.colspan=e.attrs.colspan),e.attrs.rowspan!=1&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(","));for(const o in t){const r=t[o].setDOMAttr;r&&r(e.attrs[o],n)}return n}function kbe(e){const t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(const o in t)n[o]={default:t[o].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:o=>$S(o,t)}],toDOM(o){return["td",ES(o,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:o=>$S(o,t)}],toDOM(o){return["th",ES(o,t),0]}}}}function Br(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const n in e.nodes){const o=e.nodes[n],r=o.spec.tableRole;r&&(t[r]=o)}}return t}var ml=new mn("selectingCells");function Ih(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole=="row")return e.node(0).resolve(e.before(t+1));return null}function zr(e){const t=e.selection.$head;for(let n=t.depth;n>0;n--)if(t.node(n).type.spec.tableRole=="row")return!0;return!1}function p0(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&t.node.type.spec.tableRole=="cell")return t.$anchor;const n=Ih(t.$head)||xbe(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function xbe(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const o=t.type.spec.tableRole;if(o=="cell"||o=="header_cell")return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const o=t.type.spec.tableRole;if(o=="cell"||o=="header_cell")return e.doc.resolve(n-t.nodeSize)}}function a2(e){return e.parent.type.spec.tableRole=="row"&&!!e.nodeAfter}function Cbe(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function i4(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function BP(e,t,n){const o=e.node(-1),r=jt.get(o),i=e.start(-1),s=r.nextCell(e.pos-i,t,n);return s==null?null:e.node(0).resolve(i+s)}function ac(e,t,n=1){const o={...e,colspan:e.colspan-n};return o.colwidth&&(o.colwidth=o.colwidth.slice(),o.colwidth.splice(t,n),o.colwidth.some(r=>r>0)||(o.colwidth=null)),o}function Sbe(e,t,n=1){const o={...e,colspan:e.colspan+n};if(o.colwidth){o.colwidth=o.colwidth.slice();for(let r=0;r<n;r++)o.colwidth.splice(t,0,0)}return o}function $be(e,t,n){const o=Br(t.type.schema).header_cell;for(let r=0;r<e.height;r++)if(t.nodeAt(e.map[n+r*e.width]).type!=o)return!1;return!0}var ln=class ss extends ft{constructor(t,n=t){const o=t.node(-1),r=jt.get(o),i=t.start(-1),s=r.rectBetween(t.pos-i,n.pos-i),l=t.node(0),a=r.cellsInRect(s).filter(u=>u!=n.pos-i);a.unshift(n.pos-i);const c=a.map(u=>{const d=o.nodeAt(u);if(!d)throw RangeError(`No cell with offset ${u} found`);const f=i+u+1;return new Vg(l.resolve(f),l.resolve(f+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=n}map(t,n){const o=t.resolve(n.map(this.$anchorCell.pos)),r=t.resolve(n.map(this.$headCell.pos));if(a2(o)&&a2(r)&&i4(o,r)){const i=this.$anchorCell.node(-1)!=o.node(-1);return i&&this.isRowSelection()?ss.rowSelection(o,r):i&&this.isColSelection()?ss.colSelection(o,r):new ss(o,r)}return lt.between(o,r)}content(){const t=this.$anchorCell.node(-1),n=jt.get(t),o=this.$anchorCell.start(-1),r=n.rectBetween(this.$anchorCell.pos-o,this.$headCell.pos-o),i={},s=[];for(let a=r.top;a<r.bottom;a++){const c=[];for(let u=a*n.width+r.left,d=r.left;d<r.right;d++,u++){const f=n.map[u];if(i[f])continue;i[f]=!0;const p=n.findCell(f);let h=t.nodeAt(f);if(!h)throw RangeError(`No cell with offset ${f} found`);const m=r.left-p.left,b=p.right-r.right;if(m>0||b>0){let v=h.attrs;if(m>0&&(v=ac(v,0,m)),b>0&&(v=ac(v,v.colspan-b,b)),p.left<r.left){if(h=h.type.createAndFill(v),!h)throw RangeError(`Could not create cell with attrs ${JSON.stringify(v)}`)}else h=h.type.create(v,h.content)}if(p.top<r.top||p.bottom>r.bottom){const v={...h.attrs,rowspan:Math.min(p.bottom,r.bottom)-Math.max(p.top,r.top)};p.top<r.top?h=h.type.createAndFill(v):h=h.type.create(v,h.content)}c.push(h)}s.push(t.child(a).copy(Me.from(c)))}const l=this.isColSelection()&&this.isRowSelection()?t:s;return new Ve(Me.from(l),1,1)}replace(t,n=Ve.empty){const o=t.steps.length,r=this.ranges;for(let s=0;s<r.length;s++){const{$from:l,$to:a}=r[s],c=t.mapping.slice(o);t.replace(c.map(l.pos),c.map(a.pos),s?Ve.empty:n)}const i=ft.findFrom(t.doc.resolve(t.mapping.slice(o).map(this.to)),-1);i&&t.setSelection(i)}replaceWith(t,n){this.replace(t,new Ve(Me.from(n),0,0))}forEachCell(t){const n=this.$anchorCell.node(-1),o=jt.get(n),r=this.$anchorCell.start(-1),i=o.cellsInRect(o.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let s=0;s<i.length;s++)t(n.nodeAt(i[s]),r+i[s])}isColSelection(){const t=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(t,n)>0)return!1;const o=t+this.$anchorCell.nodeAfter.attrs.rowspan,r=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(o,r)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){const o=t.node(-1),r=jt.get(o),i=t.start(-1),s=r.findCell(t.pos-i),l=r.findCell(n.pos-i),a=t.node(0);return s.top<=l.top?(s.top>0&&(t=a.resolve(i+r.map[s.left])),l.bottom<r.height&&(n=a.resolve(i+r.map[r.width*(r.height-1)+l.right-1]))):(l.top>0&&(n=a.resolve(i+r.map[l.left])),s.bottom<r.height&&(t=a.resolve(i+r.map[r.width*(r.height-1)+s.right-1]))),new ss(t,n)}isRowSelection(){const t=this.$anchorCell.node(-1),n=jt.get(t),o=this.$anchorCell.start(-1),r=n.colCount(this.$anchorCell.pos-o),i=n.colCount(this.$headCell.pos-o);if(Math.min(r,i)>0)return!1;const s=r+this.$anchorCell.nodeAfter.attrs.colspan,l=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(s,l)==n.width}eq(t){return t instanceof ss&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){const o=t.node(-1),r=jt.get(o),i=t.start(-1),s=r.findCell(t.pos-i),l=r.findCell(n.pos-i),a=t.node(0);return s.left<=l.left?(s.left>0&&(t=a.resolve(i+r.map[s.top*r.width])),l.right<r.width&&(n=a.resolve(i+r.map[r.width*(l.top+1)-1]))):(l.left>0&&(n=a.resolve(i+r.map[l.top*r.width])),s.right<r.width&&(t=a.resolve(i+r.map[r.width*(s.top+1)-1]))),new ss(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new ss(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,o=n){return new ss(t.resolve(n),t.resolve(o))}getBookmark(){return new Ebe(this.$anchorCell.pos,this.$headCell.pos)}};ln.prototype.visible=!1;ft.jsonID("cell",ln);var Ebe=class zP{constructor(t,n){this.anchor=t,this.head=n}map(t){return new zP(t.map(this.anchor),t.map(this.head))}resolve(t){const n=t.resolve(this.anchor),o=t.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&o.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&o.index()<o.parent.childCount&&i4(n,o)?new ln(n,o):ft.near(o,1)}};function Tbe(e){if(!(e.selection instanceof ln))return null;const t=[];return e.selection.forEachCell((n,o)=>{t.push(Rn.node(o,o+n.nodeSize,{class:"selectedCell"}))}),tn.create(e.doc,t)}function Mbe({$from:e,$to:t}){if(e.pos==t.pos||e.pos<e.pos-6)return!1;let n=e.pos,o=t.pos,r=e.depth;for(;r>=0&&!(e.after(r+1)<e.end(r));r--,n++);for(let i=t.depth;i>=0&&!(t.before(i+1)>t.start(i));i--,o--);return n==o&&/row|table/.test(e.node(r).type.spec.tableRole)}function Abe({$from:e,$to:t}){let n,o;for(let r=e.depth;r>0;r--){const i=e.node(r);if(i.type.spec.tableRole==="cell"||i.type.spec.tableRole==="header_cell"){n=i;break}}for(let r=t.depth;r>0;r--){const i=t.node(r);if(i.type.spec.tableRole==="cell"||i.type.spec.tableRole==="header_cell"){o=i;break}}return n!==o&&t.parentOffset===0}function Ibe(e,t,n){const o=(t||e).selection,r=(t||e).doc;let i,s;if(o instanceof at&&(s=o.node.type.spec.tableRole)){if(s=="cell"||s=="header_cell")i=ln.create(r,o.from);else if(s=="row"){const l=r.resolve(o.from+1);i=ln.rowSelection(l,l)}else if(!n){const l=jt.get(o.node),a=o.from+1,c=a+l.map[l.width*l.height-1];i=ln.create(r,a+1,c)}}else o instanceof lt&&Mbe(o)?i=lt.create(r,o.from):o instanceof lt&&Abe(o)&&(i=lt.create(r,o.$from.start(),o.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}var Obe=new mn("fix-tables");function VP(e,t,n,o){const r=e.childCount,i=t.childCount;e:for(let s=0,l=0;s<i;s++){const a=t.child(s);for(let c=l,u=Math.min(r,s+3);c<u;c++)if(e.child(c)==a){l=c+1,n+=a.nodeSize;continue e}o(a,n),l<r&&e.child(l).sameMarkup(a)?VP(e.child(l),a,n+1,o):a.nodesBetween(0,a.content.size,o,n+1),n+=a.nodeSize}}function Pbe(e,t){let n;const o=(r,i)=>{r.type.spec.tableRole=="table"&&(n=Nbe(e,r,i,n))};return t?t.doc!=e.doc&&VP(t.doc,e.doc,0,o):e.doc.descendants(o),n}function Nbe(e,t,n,o){const r=jt.get(t);if(!r.problems)return o;o||(o=e.tr);const i=[];for(let a=0;a<r.height;a++)i.push(0);for(let a=0;a<r.problems.length;a++){const c=r.problems[a];if(c.type=="collision"){const u=t.nodeAt(c.pos);if(!u)continue;const d=u.attrs;for(let f=0;f<d.rowspan;f++)i[c.row+f]+=c.n;o.setNodeMarkup(o.mapping.map(n+1+c.pos),null,ac(d,d.colspan-c.n,c.n))}else if(c.type=="missing")i[c.row]+=c.n;else if(c.type=="overlong_rowspan"){const u=t.nodeAt(c.pos);if(!u)continue;o.setNodeMarkup(o.mapping.map(n+1+c.pos),null,{...u.attrs,rowspan:u.attrs.rowspan-c.n})}else if(c.type=="colwidth mismatch"){const u=t.nodeAt(c.pos);if(!u)continue;o.setNodeMarkup(o.mapping.map(n+1+c.pos),null,{...u.attrs,colwidth:c.colwidth})}}let s,l;for(let a=0;a<i.length;a++)i[a]&&(s==null&&(s=a),l=a);for(let a=0,c=n+1;a<r.height;a++){const u=t.child(a),d=c+u.nodeSize,f=i[a];if(f>0){let p="cell";u.firstChild&&(p=u.firstChild.type.spec.tableRole);const h=[];for(let b=0;b<f;b++){const v=Br(e.schema)[p].createAndFill();v&&h.push(v)}const m=(a==0||s==a-1)&&l==a?c+1:d-1;o.insert(o.mapping.map(m),h)}c=d}return o.setMeta(Obe,{fixTables:!0})}function Zl(e){const t=e.selection,n=p0(e),o=n.node(-1),r=n.start(-1),i=jt.get(o);return{...t instanceof ln?i.rectBetween(t.$anchorCell.pos-r,t.$headCell.pos-r):i.findCell(n.pos-r),tableStart:r,map:i,table:o}}function jP(e,{map:t,tableStart:n,table:o},r){let i=r>0?-1:0;$be(t,o,r+i)&&(i=r==0||r==t.width?null:0);for(let s=0;s<t.height;s++){const l=s*t.width+r;if(r>0&&r<t.width&&t.map[l-1]==t.map[l]){const a=t.map[l],c=o.nodeAt(a);e.setNodeMarkup(e.mapping.map(n+a),null,Sbe(c.attrs,r-t.colCount(a))),s+=c.attrs.rowspan-1}else{const a=i==null?Br(o.type.schema).cell:o.nodeAt(t.map[l+i]).type,c=t.positionAt(s,r,o);e.insert(e.mapping.map(n+c),a.createAndFill())}}return e}function Lbe(e,t){if(!zr(e))return!1;if(t){const n=Zl(e);t(jP(e.tr,n,n.left))}return!0}function Rbe(e,t){if(!zr(e))return!1;if(t){const n=Zl(e);t(jP(e.tr,n,n.right))}return!0}function Fbe(e,{map:t,table:n,tableStart:o},r){const i=e.mapping.maps.length;for(let s=0;s<t.height;){const l=s*t.width+r,a=t.map[l],c=n.nodeAt(a),u=c.attrs;if(r>0&&t.map[l-1]==a||r<t.width-1&&t.map[l+1]==a)e.setNodeMarkup(e.mapping.slice(i).map(o+a),null,ac(u,r-t.colCount(a)));else{const d=e.mapping.slice(i).map(o+a);e.delete(d,d+c.nodeSize)}s+=u.rowspan}}function Dbe(e,t){if(!zr(e))return!1;if(t){const n=Zl(e),o=e.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let r=n.right-1;Fbe(o,n,r),r!=n.left;r--){const i=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!i)throw RangeError("No table found");n.table=i,n.map=jt.get(i)}t(o)}return!0}function Bbe(e,{map:t,table:n,tableStart:o},r){let i=0;for(let c=0;c<r;c++)i+=n.child(c).nodeSize;const s=i+n.child(r).nodeSize,l=e.mapping.maps.length;e.delete(i+o,s+o);const a=new Set;for(let c=0,u=r*t.width;c<t.width;c++,u++){const d=t.map[u];if(!a.has(d)){if(a.add(d),r>0&&d==t.map[u-t.width]){const f=n.nodeAt(d).attrs;e.setNodeMarkup(e.mapping.slice(l).map(d+o),null,{...f,rowspan:f.rowspan-1}),c+=f.colspan-1}else if(r<t.height&&d==t.map[u+t.width]){const f=n.nodeAt(d),p=f.attrs,h=f.type.create({...p,rowspan:f.attrs.rowspan-1},f.content),m=t.positionAt(r+1,c,n);e.insert(e.mapping.slice(l).map(o+m),h),c+=p.colspan-1}}}}function zbe(e,t){if(!zr(e))return!1;if(t){const n=Zl(e),o=e.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let r=n.bottom-1;Bbe(o,n,r),r!=n.top;r--){const i=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!i)throw RangeError("No table found");n.table=i,n.map=jt.get(n.table)}t(o)}return!0}function Vbe(e,t){return function(n,o){if(!zr(n))return!1;const r=p0(n);if(r.nodeAfter.attrs[e]===t)return!1;if(o){const i=n.tr;n.selection instanceof ln?n.selection.forEachCell((s,l)=>{s.attrs[e]!==t&&i.setNodeMarkup(l,null,{...s.attrs,[e]:t})}):i.setNodeMarkup(r.pos,null,{...r.nodeAfter.attrs,[e]:t}),o(i)}return!0}}function jbe(e){return function(t,n){if(!zr(t))return!1;if(n){const o=Br(t.schema),r=Zl(t),i=t.tr,s=r.map.cellsInRect(e=="column"?{left:r.left,top:0,right:r.right,bottom:r.map.height}:e=="row"?{left:0,top:r.top,right:r.map.width,bottom:r.bottom}:r),l=s.map(a=>r.table.nodeAt(a));for(let a=0;a<s.length;a++)l[a].type==o.header_cell&&i.setNodeMarkup(r.tableStart+s[a],o.cell,l[a].attrs);if(i.steps.length==0)for(let a=0;a<s.length;a++)i.setNodeMarkup(r.tableStart+s[a],o.header_cell,l[a].attrs);n(i)}return!0}}function TS(e,t,n){const o=t.map.cellsInRect({left:0,top:0,right:e=="row"?t.map.width:1,bottom:e=="column"?t.map.height:1});for(let r=0;r<o.length;r++){const i=t.table.nodeAt(o[r]);if(i&&i.type!==n.header_cell)return!1}return!0}function s4(e,t){return t=t||{useDeprecatedLogic:!1},t.useDeprecatedLogic?jbe(e):function(n,o){if(!zr(n))return!1;if(o){const r=Br(n.schema),i=Zl(n),s=n.tr,l=TS("row",i,r),a=TS("column",i,r),u=(e==="column"?l:e==="row"?a:!1)?1:0,d=e=="column"?{left:0,top:u,right:1,bottom:i.map.height}:e=="row"?{left:u,top:0,right:i.map.width,bottom:1}:i,f=e=="column"?a?r.cell:r.header_cell:e=="row"?l?r.cell:r.header_cell:r.cell;i.map.cellsInRect(d).forEach(p=>{const h=p+i.tableStart,m=s.doc.nodeAt(h);m&&s.setNodeMarkup(h,f,m.attrs)}),o(s)}return!0}}s4("row",{useDeprecatedLogic:!0});s4("column",{useDeprecatedLogic:!0});s4("cell",{useDeprecatedLogic:!0});function Hbe(e,t){if(t<0){const n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(let o=e.index(-1)-1,r=e.before();o>=0;o--){const i=e.node(-1).child(o),s=i.lastChild;if(s)return r-1-s.nodeSize;r-=i.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;const n=e.node(-1);for(let o=e.indexAfter(-1),r=e.after();o<n.childCount;o++){const i=n.child(o);if(i.childCount)return r+1;r+=i.nodeSize}}return null}function HP(e){return function(t,n){if(!zr(t))return!1;const o=Hbe(p0(t),e);if(o==null)return!1;if(n){const r=t.doc.resolve(o);n(t.tr.setSelection(lt.between(r,Cbe(r))).scrollIntoView())}return!0}}function Ube(e,t){const n=e.selection.$anchor;for(let o=n.depth;o>0;o--)if(n.node(o).type.spec.tableRole=="table")return t&&t(e.tr.delete(n.before(o),n.after(o)).scrollIntoView()),!0;return!1}function xm(e,t){const n=e.selection;if(!(n instanceof ln))return!1;if(t){const o=e.tr,r=Br(e.schema).cell.createAndFill().content;n.forEachCell((i,s)=>{i.content.eq(r)||o.replace(o.mapping.map(s+1),o.mapping.map(s+i.nodeSize-1),new Ve(r,0,0))}),o.docChanged&&t(o)}return!0}function Wbe(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:o}=e;for(;t.childCount==1&&(n>0&&o>0||t.child(0).type.spec.tableRole=="table");)n--,o--,t=t.child(0).content;const r=t.child(0),i=r.type.spec.tableRole,s=r.type.schema,l=[];if(i=="row")for(let a=0;a<t.childCount;a++){let c=t.child(a).content;const u=a?0:Math.max(0,n-1),d=a<t.childCount-1?0:Math.max(0,o-1);(u||d)&&(c=c2(Br(s).row,new Ve(c,u,d)).content),l.push(c)}else if(i=="cell"||i=="header_cell")l.push(n||o?c2(Br(s).row,new Ve(t,n,o)).content:t);else return null;return qbe(s,l)}function qbe(e,t){const n=[];for(let r=0;r<t.length;r++){const i=t[r];for(let s=i.childCount-1;s>=0;s--){const{rowspan:l,colspan:a}=i.child(s).attrs;for(let c=r;c<r+l;c++)n[c]=(n[c]||0)+a}}let o=0;for(let r=0;r<n.length;r++)o=Math.max(o,n[r]);for(let r=0;r<n.length;r++)if(r>=t.length&&t.push(Me.empty),n[r]<o){const i=Br(e).cell.createAndFill(),s=[];for(let l=n[r];l<o;l++)s.push(i);t[r]=t[r].append(Me.from(s))}return{height:t.length,width:o,rows:t}}function c2(e,t){const n=e.createAndFill();return new iO(n).replace(0,n.content.size,t).doc}function Kbe({width:e,height:t,rows:n},o,r){if(e!=o){const i=[],s=[];for(let l=0;l<n.length;l++){const a=n[l],c=[];for(let u=i[l]||0,d=0;u<o;d++){let f=a.child(d%a.childCount);u+f.attrs.colspan>o&&(f=f.type.createChecked(ac(f.attrs,f.attrs.colspan,u+f.attrs.colspan-o),f.content)),c.push(f),u+=f.attrs.colspan;for(let p=1;p<f.attrs.rowspan;p++)i[l+p]=(i[l+p]||0)+f.attrs.colspan}s.push(Me.from(c))}n=s,e=o}if(t!=r){const i=[];for(let s=0,l=0;s<r;s++,l++){const a=[],c=n[l%t];for(let u=0;u<c.childCount;u++){let d=c.child(u);s+d.attrs.rowspan>r&&(d=d.type.create({...d.attrs,rowspan:Math.max(1,r-d.attrs.rowspan)},d.content)),a.push(d)}i.push(Me.from(a))}n=i,t=r}return{width:e,height:t,rows:n}}function Gbe(e,t,n,o,r,i,s){const l=e.doc.type.schema,a=Br(l);let c,u;if(r>t.width)for(let d=0,f=0;d<t.height;d++){const p=n.child(d);f+=p.nodeSize;const h=[];let m;p.lastChild==null||p.lastChild.type==a.cell?m=c||(c=a.cell.createAndFill()):m=u||(u=a.header_cell.createAndFill());for(let b=t.width;b<r;b++)h.push(m);e.insert(e.mapping.slice(s).map(f-1+o),h)}if(i>t.height){const d=[];for(let h=0,m=(t.height-1)*t.width;h<Math.max(t.width,r);h++){const b=h>=t.width?!1:n.nodeAt(t.map[m+h]).type==a.header_cell;d.push(b?u||(u=a.header_cell.createAndFill()):c||(c=a.cell.createAndFill()))}const f=a.row.create(null,Me.from(d)),p=[];for(let h=t.height;h<i;h++)p.push(f);e.insert(e.mapping.slice(s).map(o+n.nodeSize-2),p)}return!!(c||u)}function MS(e,t,n,o,r,i,s,l){if(s==0||s==t.height)return!1;let a=!1;for(let c=r;c<i;c++){const u=s*t.width+c,d=t.map[u];if(t.map[u-t.width]==d){a=!0;const f=n.nodeAt(d),{top:p,left:h}=t.findCell(d);e.setNodeMarkup(e.mapping.slice(l).map(d+o),null,{...f.attrs,rowspan:s-p}),e.insert(e.mapping.slice(l).map(t.positionAt(s,h,n)),f.type.createAndFill({...f.attrs,rowspan:p+f.attrs.rowspan-s})),c+=f.attrs.colspan-1}}return a}function AS(e,t,n,o,r,i,s,l){if(s==0||s==t.width)return!1;let a=!1;for(let c=r;c<i;c++){const u=c*t.width+s,d=t.map[u];if(t.map[u-1]==d){a=!0;const f=n.nodeAt(d),p=t.colCount(d),h=e.mapping.slice(l).map(d+o);e.setNodeMarkup(h,null,ac(f.attrs,s-p,f.attrs.colspan-(s-p))),e.insert(h+f.nodeSize,f.type.createAndFill(ac(f.attrs,0,s-p))),c+=f.attrs.rowspan-1}}return a}function IS(e,t,n,o,r){let i=n?e.doc.nodeAt(n-1):e.doc;if(!i)throw new Error("No table found");let s=jt.get(i);const{top:l,left:a}=o,c=a+r.width,u=l+r.height,d=e.tr;let f=0;function p(){if(i=n?d.doc.nodeAt(n-1):d.doc,!i)throw new Error("No table found");s=jt.get(i),f=d.mapping.maps.length}Gbe(d,s,i,n,c,u,f)&&p(),MS(d,s,i,n,a,c,l,f)&&p(),MS(d,s,i,n,a,c,u,f)&&p(),AS(d,s,i,n,l,u,a,f)&&p(),AS(d,s,i,n,l,u,c,f)&&p();for(let h=l;h<u;h++){const m=s.positionAt(h,a,i),b=s.positionAt(h,c,i);d.replace(d.mapping.slice(f).map(m+n),d.mapping.slice(f).map(b+n),new Ve(r.rows[h-l],0,0))}p(),d.setSelection(new ln(d.doc.resolve(n+s.positionAt(l,a,i)),d.doc.resolve(n+s.positionAt(u-1,c-1,i)))),t(d)}var Ybe=kO({ArrowLeft:Cm("horiz",-1),ArrowRight:Cm("horiz",1),ArrowUp:Cm("vert",-1),ArrowDown:Cm("vert",1),"Shift-ArrowLeft":Sm("horiz",-1),"Shift-ArrowRight":Sm("horiz",1),"Shift-ArrowUp":Sm("vert",-1),"Shift-ArrowDown":Sm("vert",1),Backspace:xm,"Mod-Backspace":xm,Delete:xm,"Mod-Delete":xm});function O_(e,t,n){return n.eq(e.selection)?!1:(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Cm(e,t){return(n,o,r)=>{if(!r)return!1;const i=n.selection;if(i instanceof ln)return O_(n,o,ft.near(i.$headCell,t));if(e!="horiz"&&!i.empty)return!1;const s=UP(r,e,t);if(s==null)return!1;if(e=="horiz")return O_(n,o,ft.near(n.doc.resolve(i.head+t),t));{const l=n.doc.resolve(s),a=BP(l,e,t);let c;return a?c=ft.near(a,1):t<0?c=ft.near(n.doc.resolve(l.before(-1)),-1):c=ft.near(n.doc.resolve(l.after(-1)),1),O_(n,o,c)}}}function Sm(e,t){return(n,o,r)=>{if(!r)return!1;const i=n.selection;let s;if(i instanceof ln)s=i;else{const a=UP(r,e,t);if(a==null)return!1;s=new ln(n.doc.resolve(a))}const l=BP(s.$headCell,e,t);return l?O_(n,o,new ln(s.$anchorCell,l)):!1}}function Zbe(e,t){const n=e.state.doc,o=Ih(n.resolve(t));return o?(e.dispatch(e.state.tr.setSelection(new ln(o))),!0):!1}function Jbe(e,t,n){if(!zr(e.state))return!1;let o=Wbe(n);const r=e.state.selection;if(r instanceof ln){o||(o={width:1,height:1,rows:[Me.from(c2(Br(e.state.schema).cell,n))]});const i=r.$anchorCell.node(-1),s=r.$anchorCell.start(-1),l=jt.get(i).rectBetween(r.$anchorCell.pos-s,r.$headCell.pos-s);return o=Kbe(o,l.right-l.left,l.bottom-l.top),IS(e.state,e.dispatch,s,l,o),!0}else if(o){const i=p0(e.state),s=i.start(-1);return IS(e.state,e.dispatch,s,jt.get(i.node(-1)).findCell(i.pos-s),o),!0}else return!1}function Xbe(e,t){var n;if(t.ctrlKey||t.metaKey)return;const o=OS(e,t.target);let r;if(t.shiftKey&&e.state.selection instanceof ln)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&o&&(r=Ih(e.state.selection.$anchor))!=null&&((n=jv(e,t))==null?void 0:n.pos)!=r.pos)i(r,t),t.preventDefault();else if(!o)return;function i(a,c){let u=jv(e,c);const d=ml.getState(e.state)==null;if(!u||!i4(a,u))if(d)u=a;else return;const f=new ln(a,u);if(d||!e.state.selection.eq(f)){const p=e.state.tr.setSelection(f);d&&p.setMeta(ml,a.pos),e.dispatch(p)}}function s(){e.root.removeEventListener("mouseup",s),e.root.removeEventListener("dragstart",s),e.root.removeEventListener("mousemove",l),ml.getState(e.state)!=null&&e.dispatch(e.state.tr.setMeta(ml,-1))}function l(a){const c=a,u=ml.getState(e.state);let d;if(u!=null)d=e.state.doc.resolve(u);else if(OS(e,c.target)!=o&&(d=jv(e,t),!d))return s();d&&i(d,c)}e.root.addEventListener("mouseup",s),e.root.addEventListener("dragstart",s),e.root.addEventListener("mousemove",l)}function UP(e,t,n){if(!(e.state.selection instanceof lt))return null;const{$head:o}=e.state.selection;for(let r=o.depth-1;r>=0;r--){const i=o.node(r);if((n<0?o.index(r):o.indexAfter(r))!=(n<0?0:i.childCount))return null;if(i.type.spec.tableRole=="cell"||i.type.spec.tableRole=="header_cell"){const l=o.before(r),a=t=="vert"?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?l:null}}return null}function OS(e,t){for(;t&&t!=e.dom;t=t.parentNode)if(t.nodeName=="TD"||t.nodeName=="TH")return t;return null}function jv(e,t){const n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?Ih(e.state.doc.resolve(n.pos)):null}var Qbe=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),u2(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,u2(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function u2(e,t,n,o,r,i){var s;let l=0,a=!0,c=t.firstChild;const u=e.firstChild;if(u){for(let d=0,f=0;d<u.childCount;d++){const{colspan:p,colwidth:h}=u.child(d).attrs;for(let m=0;m<p;m++,f++){const b=r==f?i:h&&h[m],v=b?b+"px":"";l+=b||o,b||(a=!1),c?(c.style.width!=v&&(c.style.width=v),c=c.nextSibling):t.appendChild(document.createElement("col")).style.width=v}}for(;c;){const d=c.nextSibling;(s=c.parentNode)==null||s.removeChild(c),c=d}a?(n.style.width=l+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=l+"px")}}var xr=new mn("tableColumnResizing");function eye({handleWidth:e=5,cellMinWidth:t=25,View:n=Qbe,lastColumnResizable:o=!0}={}){const r=new wn({key:xr,state:{init(i,s){var l,a;const c=(a=(l=r.spec)==null?void 0:l.props)==null?void 0:a.nodeViews,u=Br(s.schema).table.name;return n&&c&&(c[u]=(d,f)=>new n(d,t,f)),new tye(-1,!1)},apply(i,s){return s.apply(i)}},props:{attributes:i=>{const s=xr.getState(i);return s&&s.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(i,s)=>{nye(i,s,e,t,o)},mouseleave:i=>{oye(i)},mousedown:(i,s)=>{rye(i,s,t)}},decorations:i=>{const s=xr.getState(i);if(s&&s.activeHandle>-1)return uye(i,s.activeHandle)},nodeViews:{}}});return r}var tye=class P_{constructor(t,n){this.activeHandle=t,this.dragging=n}apply(t){const n=this,o=t.getMeta(xr);if(o&&o.setHandle!=null)return new P_(o.setHandle,!1);if(o&&o.setDragging!==void 0)return new P_(n.activeHandle,o.setDragging);if(n.activeHandle>-1&&t.docChanged){let r=t.mapping.map(n.activeHandle,-1);return a2(t.doc.resolve(r))||(r=-1),new P_(r,n.dragging)}return n}};function nye(e,t,n,o,r){const i=xr.getState(e.state);if(i&&!i.dragging){const s=sye(t.target);let l=-1;if(s){const{left:a,right:c}=s.getBoundingClientRect();t.clientX-a<=n?l=PS(e,t,"left",n):c-t.clientX<=n&&(l=PS(e,t,"right",n))}if(l!=i.activeHandle){if(!r&&l!==-1){const a=e.state.doc.resolve(l),c=a.node(-1),u=jt.get(c),d=a.start(-1);if(u.colCount(a.pos-d)+a.nodeAfter.attrs.colspan-1==u.width-1)return}WP(e,l)}}}function oye(e){const t=xr.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&WP(e,-1)}function rye(e,t,n){var o;const r=(o=e.dom.ownerDocument.defaultView)!=null?o:window,i=xr.getState(e.state);if(!i||i.activeHandle==-1||i.dragging)return!1;const s=e.state.doc.nodeAt(i.activeHandle),l=iye(e,i.activeHandle,s.attrs);e.dispatch(e.state.tr.setMeta(xr,{setDragging:{startX:t.clientX,startWidth:l}}));function a(u){r.removeEventListener("mouseup",a),r.removeEventListener("mousemove",c);const d=xr.getState(e.state);d!=null&&d.dragging&&(lye(e,d.activeHandle,NS(d.dragging,u,n)),e.dispatch(e.state.tr.setMeta(xr,{setDragging:null})))}function c(u){if(!u.which)return a(u);const d=xr.getState(e.state);if(d&&d.dragging){const f=NS(d.dragging,u,n);aye(e,d.activeHandle,f,n)}}return r.addEventListener("mouseup",a),r.addEventListener("mousemove",c),t.preventDefault(),!0}function iye(e,t,{colspan:n,colwidth:o}){const r=o&&o[o.length-1];if(r)return r;const i=e.domAtPos(t);let l=i.node.childNodes[i.offset].offsetWidth,a=n;if(o)for(let c=0;c<n;c++)o[c]&&(l-=o[c],a--);return l/a}function sye(e){for(;e&&e.nodeName!="TD"&&e.nodeName!="TH";)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function PS(e,t,n,o){const r=n=="right"?-o:o,i=e.posAtCoords({left:t.clientX+r,top:t.clientY});if(!i)return-1;const{pos:s}=i,l=Ih(e.state.doc.resolve(s));if(!l)return-1;if(n=="right")return l.pos;const a=jt.get(l.node(-1)),c=l.start(-1),u=a.map.indexOf(l.pos-c);return u%a.width==0?-1:c+a.map[u-1]}function NS(e,t,n){const o=t.clientX-e.startX;return Math.max(n,e.startWidth+o)}function WP(e,t){e.dispatch(e.state.tr.setMeta(xr,{setHandle:t}))}function lye(e,t,n){const o=e.state.doc.resolve(t),r=o.node(-1),i=jt.get(r),s=o.start(-1),l=i.colCount(o.pos-s)+o.nodeAfter.attrs.colspan-1,a=e.state.tr;for(let c=0;c<i.height;c++){const u=c*i.width+l;if(c&&i.map[u]==i.map[u-i.width])continue;const d=i.map[u],f=r.nodeAt(d).attrs,p=f.colspan==1?0:l-i.colCount(d);if(f.colwidth&&f.colwidth[p]==n)continue;const h=f.colwidth?f.colwidth.slice():cye(f.colspan);h[p]=n,a.setNodeMarkup(s+d,null,{...f,colwidth:h})}a.docChanged&&e.dispatch(a)}function aye(e,t,n,o){const r=e.state.doc.resolve(t),i=r.node(-1),s=r.start(-1),l=jt.get(i).colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1;let a=e.domAtPos(r.start(-1)).node;for(;a&&a.nodeName!="TABLE";)a=a.parentNode;a&&u2(i,a.firstChild,a,o,l,n)}function cye(e){return Array(e).fill(0)}function uye(e,t){const n=[],o=e.doc.resolve(t),r=o.node(-1);if(!r)return tn.empty;const i=jt.get(r),s=o.start(-1),l=i.colCount(o.pos-s)+o.nodeAfter.attrs.colspan-1;for(let a=0;a<i.height;a++){const c=l+a*i.width;if((l==i.width-1||i.map[c]!=i.map[c+1])&&(a==0||i.map[c]!=i.map[c-i.width])){const u=i.map[c],d=s+u+r.nodeAt(u).nodeSize-1,f=document.createElement("div");f.className="column-resize-handle",n.push(Rn.widget(d,f))}}return tn.create(e.doc,n)}function dye({allowTableNodeSelection:e=!1}={}){return new wn({key:ml,state:{init(){return null},apply(t,n){const o=t.getMeta(ml);if(o!=null)return o==-1?null:o;if(n==null||!t.docChanged)return n;const{deleted:r,pos:i}=t.mapping.mapResult(n);return r?null:i}},props:{decorations:Tbe,handleDOMEvents:{mousedown:Xbe},createSelectionBetween(t){return ml.getState(t.state)!=null?t.state.selection:null},handleTripleClick:Zbe,handleKeyDown:Ybe,handlePaste:Jbe},appendTransaction(t,n,o){return Ibe(o,Pbe(o,n),e)}})}var Gg=typeof navigator<"u"?navigator:null,l4=Gg&&Gg.userAgent||"",fye=/Edge\/(\d+)/.exec(l4),pye=/MSIE \d/.exec(l4),hye=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l4),mye=!!(pye||hye||fye),_ye=!mye&&!!Gg&&/Apple Computer/.test(Gg.vendor),qP=new mn("safari-ime-span"),d2=!1,gye={key:qP,props:{decorations:vye,handleDOMEvents:{compositionstart:()=>{d2=!0},compositionend:()=>{d2=!1}}}};function vye(e){const{$from:t,$to:n,to:o}=e.selection;if(d2&&t.sameParent(n)){const r=Rn.widget(o,bye,{ignoreSelection:!0,key:"safari-ime-span"});return tn.create(e.doc,[r])}}function bye(e){const t=e.dom.ownerDocument.createElement("span");return t.className="ProseMirror-safari-ime-span",t}var yye=new wn(_ye?gye:{key:qP});function LS(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,r=n.indexOf(t);for(;r!==-1;)o++,r=n.indexOf(t,r+t.length);return o}function wye(e,t,n){const r=Y1((n||{}).ignore||[]),i=kye(t);let s=-1;for(;++s<i.length;)PI(e,"text",l);function l(c,u){let d=-1,f;for(;++d<u.length;){const p=u[d],h=f?f.children:void 0;if(r(p,h?h.indexOf(p):void 0,f))return;f=p}if(f)return a(c,u)}function a(c,u){const d=u[u.length-1],f=i[s][0],p=i[s][1];let h=0;const b=d.children.indexOf(c);let v=!1,E=[];f.lastIndex=0;let w=f.exec(c.value);for(;w;){const S=w.index,T={index:w.index,input:w.input,stack:[...u,c]};let $=p(...w,T);if(typeof $=="string"&&($=$.length>0?{type:"text",value:$}:void 0),$===!1?f.lastIndex=S+1:(h!==S&&E.push({type:"text",value:c.value.slice(h,S)}),Array.isArray($)?E.push(...$):$&&E.push($),h=S+w[0].length,v=!0),!f.global)break;w=f.exec(c.value)}return v?(h<c.value.length&&E.push({type:"text",value:c.value.slice(h)}),d.children.splice(b,1,...E)):E=[c],b+E.length}}function kye(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<n.length;){const r=n[o];t.push([xye(r[0]),Cye(r[1])])}return t}function xye(e){return typeof e=="string"?new RegExp(a0(e),"g"):e}function Cye(e){return typeof e=="function"?e:function(){return e}}const Hv="phrasing",Uv=["autolink","link","image","label"];function Sye(){return{transforms:[Oye],enter:{literalAutolink:Eye,literalAutolinkEmail:Wv,literalAutolinkHttp:Wv,literalAutolinkWww:Wv},exit:{literalAutolink:Iye,literalAutolinkEmail:Aye,literalAutolinkHttp:Tye,literalAutolinkWww:Mye}}}function $ye(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Hv,notInConstruct:Uv},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Hv,notInConstruct:Uv},{character:":",before:"[ps]",after:"\\/",inConstruct:Hv,notInConstruct:Uv}]}}function Eye(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Wv(e){this.config.enter.autolinkProtocol.call(this,e)}function Tye(e){this.config.exit.autolinkProtocol.call(this,e)}function Mye(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Aye(e){this.config.exit.autolinkEmail.call(this,e)}function Iye(e){this.exit(e)}function Oye(e){wye(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Pye],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Nye]],{ignore:["link","linkReference"]})}function Pye(e,t,n,o,r){let i="";if(!KP(r)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!Lye(n)))return!1;const s=Rye(n+o);if(!s[0])return!1;const l={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function Nye(e,t,n,o){return!KP(o,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Lye(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Rye(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],o=n.indexOf(")");const r=LS(e,"(");let i=LS(e,")");for(;o!==-1&&r>i;)e+=n.slice(0,o+1),n=n.slice(o+1),o=n.indexOf(")"),i++;return[e,n]}function KP(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ic(n)||K1(n))&&(!t||n!==47)}GP.peek=Kye;function Fye(){return{enter:{gfmFootnoteDefinition:Bye,gfmFootnoteDefinitionLabelString:zye,gfmFootnoteCall:Hye,gfmFootnoteCallString:Uye},exit:{gfmFootnoteDefinition:jye,gfmFootnoteDefinitionLabelString:Vye,gfmFootnoteCall:qye,gfmFootnoteCallString:Wye}}}function Dye(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Gye,footnoteReference:GP}}}function Bye(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zye(){this.buffer()}function Vye(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Qr(this.sliceSerialize(e)).toLowerCase()}function jye(e){this.exit(e)}function Hye(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Uye(){this.buffer()}function Wye(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Qr(this.sliceSerialize(e)).toLowerCase()}function qye(e){this.exit(e)}function GP(e,t,n,o){const r=n.createTracker(o);let i=r.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return i+=r.move(n.safe(n.associationId(e),{...r.current(),before:i,after:"]"})),l(),s(),i+=r.move("]"),i}function Kye(){return"["}function Gye(e,t,n,o){const r=n.createTracker(o);let i=r.move("[^");const s=n.enter("footnoteDefinition"),l=n.enter("label");return i+=r.move(n.safe(n.associationId(e),{...r.current(),before:i,after:"]"})),l(),i+=r.move("]:"+(e.children&&e.children.length>0?" ":"")),r.shift(4),i+=r.move(n.indentLines(n.containerFlow(e,r.current()),Yye)),s(),i}function Yye(e,t,n){return t===0?e:(n?"":" ")+e}const Zye=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];YP.peek=t2e;function Jye(){return{canContainEols:["delete"],enter:{strikethrough:Qye},exit:{strikethrough:e2e}}}function Xye(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Zye}],handlers:{delete:YP}}}function Qye(e){this.enter({type:"delete",children:[]},e)}function e2e(e){this.exit(e)}function YP(e,t,n,o){const r=n.createTracker(o),i=n.enter("strikethrough");let s=r.move("~~");return s+=n.containerPhrasing(e,{...r.current(),before:s,after:"~"}),s+=r.move("~~"),i(),s}function t2e(){return"~"}function n2e(e,t={}){const n=(t.align||[]).concat(),o=t.stringLength||r2e,r=[],i=[],s=[],l=[];let a=0,c=-1;for(;++c<e.length;){const h=[],m=[];let b=-1;for(e[c].length>a&&(a=e[c].length);++b<e[c].length;){const v=o2e(e[c][b]);if(t.alignDelimiters!==!1){const E=o(v);m[b]=E,(l[b]===void 0||E>l[b])&&(l[b]=E)}h.push(v)}i[c]=h,s[c]=m}let u=-1;if(typeof n=="object"&&"length"in n)for(;++u<a;)r[u]=RS(n[u]);else{const h=RS(n);for(;++u<a;)r[u]=h}u=-1;const d=[],f=[];for(;++u<a;){const h=r[u];let m="",b="";h===99?(m=":",b=":"):h===108?m=":":h===114&&(b=":");let v=t.alignDelimiters===!1?1:Math.max(1,l[u]-m.length-b.length);const E=m+"-".repeat(v)+b;t.alignDelimiters!==!1&&(v=m.length+v+b.length,v>l[u]&&(l[u]=v),f[u]=v),d[u]=E}i.splice(1,0,d),s.splice(1,0,f),c=-1;const p=[];for(;++c<i.length;){const h=i[c],m=s[c];u=-1;const b=[];for(;++u<a;){const v=h[u]||"";let E="",w="";if(t.alignDelimiters!==!1){const S=l[u]-(m[u]||0),T=r[u];T===114?E=" ".repeat(S):T===99?S%2?(E=" ".repeat(S/2+.5),w=" ".repeat(S/2-.5)):(E=" ".repeat(S/2),w=E):w=" ".repeat(S)}t.delimiterStart!==!1&&!u&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&v==="")&&(t.delimiterStart!==!1||u)&&b.push(" "),t.alignDelimiters!==!1&&b.push(E),b.push(v),t.alignDelimiters!==!1&&b.push(w),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||u!==a-1)&&b.push("|")}p.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return p.join(`
121 `)}function o2e(e){return e==null?"":String(e)}function r2e(e){return e.length}function RS(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function i2e(){return{enter:{table:s2e,tableData:FS,tableHeader:FS,tableRow:a2e},exit:{codeText:c2e,table:l2e,tableData:qv,tableHeader:qv,tableRow:qv}}}function s2e(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function l2e(e){this.exit(e),this.data.inTable=void 0}function a2e(e){this.enter({type:"tableRow",children:[]},e)}function qv(e){this.exit(e)}function FS(e){this.enter({type:"tableCell",children:[]},e)}function c2e(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,u2e));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function u2e(e,t){return t==="|"?t:e}function d2e(e){const t=e||{},n=t.tableCellPadding,o=t.tablePipeAlign,r=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
122 `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:a,tableRow:l}};function s(p,h,m,b){return c(u(p,m,b),p.align)}function l(p,h,m,b){const v=d(p,m,b),E=c([v]);return E.slice(0,E.indexOf(`
123 `))}function a(p,h,m,b){const v=m.enter("tableCell"),E=m.enter("phrasing"),w=m.containerPhrasing(p,{...b,before:i,after:i});return E(),v(),w}function c(p,h){return n2e(p,{align:h,alignDelimiters:o,padding:n,stringLength:r})}function u(p,h,m){const b=p.children;let v=-1;const E=[],w=h.enter("table");for(;++v<b.length;)E[v]=d(b[v],h,m);return w(),E}function d(p,h,m){const b=p.children;let v=-1;const E=[],w=h.enter("tableRow");for(;++v<b.length;)E[v]=a(b[v],p,h,m);return w(),E}function f(p,h,m){let b=Y3.inlineCode(p,h,m);return m.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function f2e(){return{exit:{taskListCheckValueChecked:DS,taskListCheckValueUnchecked:DS,paragraph:h2e}}}function p2e(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:m2e}}}function DS(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function h2e(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const o=n.children[0];if(o&&o.type==="text"){const r=t.children;let i=-1,s;for(;++i<r.length;){const l=r[i];if(l.type==="paragraph"){s=l;break}}s===n&&(o.value=o.value.slice(1),o.value.length===0?n.children.shift():n.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,n.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function m2e(e,t,n,o){const r=e.children[0],i=typeof e.checked=="boolean"&&r&&r.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",l=n.createTracker(o);i&&l.move(s);let a=Y3.listItem(e,t,n,{...o,...l.current()});return i&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),a;function c(u){return u+s}}function _2e(){return[Sye(),Fye(),Jye(),i2e(),f2e()]}function g2e(e){return{extensions:[$ye(),Dye(),Xye(),d2e(e),p2e()]}}const v2e={tokenize:C2e,partial:!0},ZP={tokenize:S2e,partial:!0},JP={tokenize:$2e,partial:!0},XP={tokenize:E2e,partial:!0},b2e={tokenize:T2e,partial:!0},QP={name:"wwwAutolink",tokenize:k2e,previous:tN},eN={name:"protocolAutolink",tokenize:x2e,previous:nN},Ns={name:"emailAutolink",tokenize:w2e,previous:oN},Zi={};function y2e(){return{text:Zi}}let oa=48;for(;oa<123;)Zi[oa]=Ns,oa++,oa===58?oa=65:oa===91&&(oa=97);Zi[43]=Ns;Zi[45]=Ns;Zi[46]=Ns;Zi[95]=Ns;Zi[72]=[Ns,eN];Zi[104]=[Ns,eN];Zi[87]=[Ns,QP];Zi[119]=[Ns,QP];function w2e(e,t,n){const o=this;let r,i;return s;function s(d){return!f2(d)||!oN.call(o,o.previous)||a4(o.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(d))}function l(d){return f2(d)?(e.consume(d),l):d===64?(e.consume(d),a):n(d)}function a(d){return d===46?e.check(b2e,u,c)(d):d===45||d===95||Ro(d)?(i=!0,e.consume(d),a):u(d)}function c(d){return e.consume(d),r=!0,a}function u(d){return i&&r&&yo(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function k2e(e,t,n){const o=this;return r;function r(s){return s!==87&&s!==119||!tN.call(o,o.previous)||a4(o.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(v2e,e.attempt(ZP,e.attempt(JP,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function x2e(e,t,n){const o=this;let r="",i=!1;return s;function s(d){return(d===72||d===104)&&nN.call(o,o.previous)&&!a4(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),l):n(d)}function l(d){if(yo(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),l;if(d===58){const f=r.toLowerCase();if(f==="http"||f==="https")return e.consume(d),a}return n(d)}function a(d){return d===47?(e.consume(d),i?c:(i=!0,a)):n(d)}function c(d){return d===null||Bg(d)||Yt(d)||ic(d)||K1(d)?n(d):e.attempt(ZP,e.attempt(JP,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function C2e(e,t,n){let o=0;return r;function r(s){return(s===87||s===119)&&o<3?(o++,e.consume(s),r):s===46&&o===3?(e.consume(s),i):n(s)}function i(s){return s===null?n(s):t(s)}}function S2e(e,t,n){let o,r,i;return s;function s(c){return c===46||c===95?e.check(XP,a,l)(c):c===null||Yt(c)||ic(c)||c!==45&&K1(c)?a(c):(i=!0,e.consume(c),s)}function l(c){return c===95?o=!0:(r=o,o=void 0),e.consume(c),s}function a(c){return r||o||!i?n(c):t(c)}}function $2e(e,t){let n=0,o=0;return r;function r(s){return s===40?(n++,e.consume(s),r):s===41&&o<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(XP,t,i)(s):s===null||Yt(s)||ic(s)?t(s):(e.consume(s),r)}function i(s){return s===41&&o++,e.consume(s),r}}function E2e(e,t,n){return o;function o(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),o):l===38?(e.consume(l),i):l===93?(e.consume(l),r):l===60||l===null||Yt(l)||ic(l)?t(l):n(l)}function r(l){return l===null||l===40||l===91||Yt(l)||ic(l)?t(l):o(l)}function i(l){return yo(l)?s(l):n(l)}function s(l){return l===59?(e.consume(l),o):yo(l)?(e.consume(l),s):n(l)}}function T2e(e,t,n){return o;function o(i){return e.consume(i),r}function r(i){return Ro(i)?n(i):t(i)}}function tN(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Yt(e)}function nN(e){return!yo(e)}function oN(e){return!(e===47||f2(e))}function f2(e){return e===43||e===45||e===46||e===95||Ro(e)}function a4(e){let t=e.length,n=!1;for(;t--;){const o=e[t][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){n=!0;break}if(o._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const M2e={tokenize:F2e,partial:!0};function A2e(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:N2e,continuation:{tokenize:L2e},exit:R2e}},text:{91:{name:"gfmFootnoteCall",tokenize:P2e},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:I2e,resolveTo:O2e}}}}function I2e(e,t,n){const o=this;let r=o.events.length;const i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let s;for(;r--;){const a=o.events[r][1];if(a.type==="labelImage"){s=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return l;function l(a){if(!s||!s._balanced)return n(a);const c=Qr(o.sliceSerialize({start:s.end,end:o.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function O2e(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...l),e}function P2e(e,t,n){const o=this,r=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i=0,s;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),a}function a(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(i>999||d===93&&!s||d===null||d===91||Yt(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return r.includes(Qr(o.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Yt(d)||(s=!0),i++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),i++,c):c(d)}}function N2e(e,t,n){const o=this,r=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i,s=0,l;return a;function a(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(h)}function u(h){if(s>999||h===93&&!l||h===null||h===91||Yt(h))return n(h);if(h===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return i=Qr(o.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Yt(h)||(l=!0),s++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,u):u(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),r.includes(i)||r.push(i),Pt(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function L2e(e,t,n){return e.check(kh,t,e.attempt(M2e,t,n))}function R2e(e){e.exit("gfmFootnoteDefinition")}function F2e(e,t,n){const o=this;return Pt(e,r,"gfmFootnoteDefinitionIndent",4+1);function r(i){const s=o.events[o.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):n(i)}}function D2e(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:i,resolveAll:r};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function r(s,l){let a=-1;for(;++a<s.length;)if(s[a][0]==="enter"&&s[a][1].type==="strikethroughSequenceTemporary"&&s[a][1]._close){let c=a;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[a][1].end.offset-s[a][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[a][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[a][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[a][1].start)},f=[["enter",u,l],["enter",s[c][1],l],["exit",s[c][1],l],["enter",d,l]],p=l.parser.constructs.insideSpan.null;p&&Ar(f,f.length,0,G1(p,s.slice(c+1,a),l)),Ar(f,f.length,0,[["exit",d,l],["enter",s[a][1],l],["exit",s[a][1],l],["exit",u,l]]),Ar(s,c-1,a-c+3,f),a=c+f.length-2;break}}for(a=-1;++a<s.length;)s[a][1].type==="strikethroughSequenceTemporary"&&(s[a][1].type="data");return s}function i(s,l,a){const c=this.previous,u=this.events;let d=0;return f;function f(h){return c===126&&u[u.length-1][1].type!=="characterEscape"?a(h):(s.enter("strikethroughSequenceTemporary"),p(h))}function p(h){const m=zg(c);if(h===126)return d>1?a(h):(s.consume(h),d++,p);if(d<2&&!n)return a(h);const b=s.exit("strikethroughSequenceTemporary"),v=zg(h);return b._open=!v||v===2&&!!m,b._close=!m||m===2&&!!v,l(h)}}}class B2e{constructor(){this.map=[]}add(t,n,o){z2e(this,t,n,o)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];o.push([...t]),t.length=0;let r=o.pop();for(;r;)t.push(...r),r=o.pop();this.map.length=0}}function z2e(e,t,n,o){let r=0;if(!(n===0&&o.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...o);return}r+=1}e.map.push([t,n,o])}}function V2e(e,t){let n=!1;const o=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&o.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=o.length-1;o[i]=o[i]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return o}function j2e(){return{flow:{null:{name:"table",tokenize:H2e,resolveAll:U2e}}}}function H2e(e,t,n){const o=this;let r=0,i=0,s;return l;function l(I){let B=o.events.length-1;for(;B>-1;){const ne=o.events[B][1].type;if(ne==="lineEnding"||ne==="linePrefix")B--;else break}const V=B>-1?o.events[B][1].type:null,G=V==="tableHead"||V==="tableRow"?$:a;return G===$&&o.parser.lazy[o.now().line]?n(I):G(I)}function a(I){return e.enter("tableHead"),e.enter("tableRow"),c(I)}function c(I){return I===124||(s=!0,i+=1),u(I)}function u(I){return I===null?n(I):it(I)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),p):n(I):Tt(I)?Pt(e,u,"whitespace")(I):(i+=1,s&&(s=!1,r+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),s=!0,u):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||Yt(I)?(e.exit("data"),u(I)):(e.consume(I),I===92?f:d)}function f(I){return I===92||I===124?(e.consume(I),d):d(I)}function p(I){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(I):(e.enter("tableDelimiterRow"),s=!1,Tt(I)?Pt(e,h,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):h(I))}function h(I){return I===45||I===58?b(I):I===124?(s=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),m):T(I)}function m(I){return Tt(I)?Pt(e,b,"whitespace")(I):b(I)}function b(I){return I===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),v):I===45?(i+=1,v(I)):I===null||it(I)?S(I):T(I)}function v(I){return I===45?(e.enter("tableDelimiterFiller"),E(I)):T(I)}function E(I){return I===45?(e.consume(I),E):I===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(I))}function w(I){return Tt(I)?Pt(e,S,"whitespace")(I):S(I)}function S(I){return I===124?h(I):I===null||it(I)?!s||r!==i?T(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):T(I)}function T(I){return n(I)}function $(I){return e.enter("tableRow"),A(I)}function A(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),A):I===null||it(I)?(e.exit("tableRow"),t(I)):Tt(I)?Pt(e,A,"whitespace")(I):(e.enter("data"),P(I))}function P(I){return I===null||I===124||Yt(I)?(e.exit("data"),A(I)):(e.consume(I),I===92?N:P)}function N(I){return I===92||I===124?(e.consume(I),P):P(I)}}function U2e(e,t){let n=-1,o=!0,r=0,i=[0,0,0,0],s=[0,0,0,0],l=!1,a=0,c,u,d;const f=new B2e;for(;++n<e.length;){const p=e[n],h=p[1];p[0]==="enter"?h.type==="tableHead"?(l=!1,a!==0&&(BS(f,t,a,c,u),u=void 0,a=0),c={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",c,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(o=!0,d=void 0,i=[0,0,0,0],s=[0,n+1,0,0],l&&(l=!1,u={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",u,t]])),r=h.type==="tableDelimiterRow"?2:u?3:1):r&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(o=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],d=$m(f,t,i,r,void 0,d),i=[0,0,0,0]),s[2]=n)):h.type==="tableCellDivider"&&(o?o=!1:(i[1]!==0&&(s[0]=s[1],d=$m(f,t,i,r,void 0,d)),i=s,s=[i[1],n,0,0])):h.type==="tableHead"?(l=!0,a=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(a=n,i[1]!==0?(s[0]=s[1],d=$m(f,t,i,r,n,d)):s[1]!==0&&(d=$m(f,t,s,r,n,d)),r=0):r&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(s[3]=n)}for(a!==0&&BS(f,t,a,c,u),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=V2e(t.events,n))}return e}function $m(e,t,n,o,r,i){const s=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(i.end=Object.assign({},Yc(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const a=Yc(t.events,n[1]);if(i={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const c=Yc(t.events,n[2]),u=Yc(t.events,n[3]),d={type:l,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),o!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,m=n[3]-n[2]-1;e.add(h,m,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return r!==void 0&&(i.end=Object.assign({},Yc(t.events,r)),e.add(r,0,[["exit",i,t]]),i=void 0),i}function BS(e,t,n,o,r){const i=[],s=Yc(t.events,n);r&&(r.end=Object.assign({},s),i.push(["exit",r,t])),o.end=Object.assign({},s),i.push(["exit",o,t]),e.add(n+1,0,i)}function Yc(e,t){const n=e[t],o=n[0]==="enter"?"start":"end";return n[1][o]}const W2e={name:"tasklistCheck",tokenize:K2e};function q2e(){return{text:{91:W2e}}}function K2e(e,t,n){const o=this;return r;function r(a){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),i)}function i(a){return Yt(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),s):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),s):n(a)}function s(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(a)}function l(a){return it(a)?t(a):Tt(a)?e.check({tokenize:G2e},t,n)(a):n(a)}}function G2e(e,t,n){return Pt(e,o,"whitespace");function o(r){return r===null?n(r):t(r)}}function Y2e(e){return mI([y2e(),A2e(),D2e(e),j2e(),q2e()])}const Z2e={};function J2e(e){const t=this,n=e||Z2e,o=t.data(),r=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),s=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);r.push(Y2e(n)),i.push(_2e()),s.push(g2e(n))}function ct(e,t){return Object.assign(e,{meta:{package:"@milkdown/preset-gfm",...t}}),e}const c4=Mh("strike_through");ct(c4,{displayName:"Attr<strikethrough>",group:"Strikethrough"});const Cd=Th("strike_through",e=>({parseDOM:[{tag:"del"},{style:"text-decoration",getAttrs:t=>t==="line-through"}],toDOM:t=>["del",e.get(c4.key)(t)],parseMarkdown:{match:t=>t.type==="delete",runner:(t,n,o)=>{t.openMark(o),t.next(n.children),t.closeMark(o)}},toMarkdown:{match:t=>t.type.name==="strike_through",runner:(t,n)=>{t.withMark(n,"delete")}}}));ct(Cd.mark,{displayName:"MarkSchema<strikethrough>",group:"Strikethrough"});ct(Cd.ctx,{displayName:"MarkSchemaCtx<strikethrough>",group:"Strikethrough"});const h0=Ct("ToggleStrikeThrough",e=>()=>o0(Cd.type(e)));ct(h0,{displayName:"Command<ToggleStrikethrough>",group:"Strikethrough"});const rN=qo(e=>Ch(/~([^~]+)~$/,Cd.type(e)));ct(rN,{displayName:"InputRule<strikethrough>",group:"Strikethrough"});const u4=Ko("strikeThroughKeymap",{ToggleStrikethrough:{shortcuts:"Mod-Alt-x",command:e=>{const t=e.get(It);return()=>t.call(h0.key)}}});ct(u4.ctx,{displayName:"KeymapCtx<strikethrough>",group:"Strikethrough"});ct(u4.shortcuts,{displayName:"Keymap<strikethrough>",group:"Strikethrough"});const Oh=kbe({tableGroup:"block",cellContent:"paragraph",cellAttributes:{alignment:{default:"left",getFromDOM:e=>e.style.textAlign||"left",setDOMAttr:(e,t)=>{t.style=`text-align: ${e||"left"}`}}}}),Sd=Un("table",()=>({...Oh.table,content:"table_header_row table_row+",disableDropCursor:!0,parseMarkdown:{match:e=>e.type==="table",runner:(e,t,n)=>{const o=t.align,r=t.children.map((i,s)=>({...i,align:o,isHeader:s===0}));e.openNode(n),e.next(r),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="table",runner:(e,t)=>{var n;const o=(n=t.content.firstChild)==null?void 0:n.content;if(!o)return;const r=[];o.forEach(i=>{r.push(i.attrs.alignment)}),e.openNode("table",void 0,{align:r}),e.next(t.content),e.closeNode()}}}));ct(Sd.node,{displayName:"NodeSchema<table>",group:"Table"});ct(Sd.ctx,{displayName:"NodeSchemaCtx<table>",group:"Table"});const m0=Un("table_header_row",()=>({...Oh.table_row,disableDropCursor:!0,content:"(table_header)*",parseDOM:[{tag:"tr[data-is-header]"}],toDOM(){return["tr",{"data-is-header":!0},0]},parseMarkdown:{match:e=>!!(e.type==="tableRow"&&e.isHeader),runner:(e,t,n)=>{const o=t.align,r=t.children.map((i,s)=>({...i,align:o[s],isHeader:t.isHeader}));e.openNode(n),e.next(r),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="table_header_row",runner:(e,t)=>{e.openNode("tableRow",void 0,{isHeader:!0}),e.next(t.content),e.closeNode()}}}));ct(m0.node,{displayName:"NodeSchema<tableHeaderRow>",group:"Table"});ct(m0.ctx,{displayName:"NodeSchemaCtx<tableHeaderRow>",group:"Table"});const Ph=Un("table_row",()=>({...Oh.table_row,disableDropCursor:!0,content:"(table_cell)*",parseMarkdown:{match:e=>e.type==="tableRow",runner:(e,t,n)=>{const o=t.align,r=t.children.map((i,s)=>({...i,align:o[s]}));e.openNode(n),e.next(r),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="table_row",runner:(e,t)=>{e.openNode("tableRow"),e.next(t.content),e.closeNode()}}}));ct(Ph.node,{displayName:"NodeSchema<tableRow>",group:"Table"});ct(Ph.ctx,{displayName:"NodeSchemaCtx<tableRow>",group:"Table"});const Nh=Un("table_cell",()=>({...Oh.table_cell,disableDropCursor:!0,parseMarkdown:{match:e=>e.type==="tableCell"&&!e.isHeader,runner:(e,t,n)=>{const o=t.align;e.openNode(n,{alignment:o}).openNode(e.schema.nodes.paragraph).next(t.children).closeNode().closeNode()}},toMarkdown:{match:e=>e.type.name==="table_cell",runner:(e,t)=>{e.openNode("tableCell").next(t.content).closeNode()}}}));ct(Nh.node,{displayName:"NodeSchema<tableCell>",group:"Table"});ct(Nh.ctx,{displayName:"NodeSchemaCtx<tableCell>",group:"Table"});const _0=Un("table_header",()=>({...Oh.table_header,disableDropCursor:!0,parseMarkdown:{match:e=>e.type==="tableCell"&&!!e.isHeader,runner:(e,t,n)=>{const o=t.align;e.openNode(n,{alignment:o}),e.openNode(e.schema.nodes.paragraph),e.next(t.children),e.closeNode(),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="table_header",runner:(e,t)=>{e.openNode("tableCell"),e.next(t.content),e.closeNode()}}}));ct(_0.node,{displayName:"NodeSchema<tableHeader>",group:"Table"});ct(_0.ctx,{displayName:"NodeSchemaCtx<tableHeader>",group:"Table"});function iN(e,t=3,n=3){const o=Array(n).fill(0).map(()=>Nh.type(e).createAndFill()),r=Array(n).fill(0).map(()=>_0.type(e).createAndFill()),i=Array(t).fill(0).map((s,l)=>l===0?m0.type(e).create(null,r):Ph.type(e).create(null,o));return Sd.type(e).create(null,i)}function Lh(e){return ok(t=>t.type.spec.tableRole==="table")(e)}function Zc(e,t){const n=Lh(t.$from);if(!n)return;const o=jt.get(n.node);if(!(e<0||e>=o.width))return o.cellsInRect({left:e,right:e+1,top:0,bottom:o.height}).map(r=>{const i=n.node.nodeAt(r);if(!i)return;const s=r+n.start;return{pos:s,start:s+1,node:i}}).filter(r=>r!=null)}function Jc(e,t){const n=Lh(t.$from);if(!n)return;const o=jt.get(n.node);if(!(e<0||e>=o.height))return o.cellsInRect({left:0,right:o.width,top:e,bottom:e+1}).map(r=>{const i=n.node.nodeAt(r);if(!i)return;const s=r+n.start;return{pos:s,start:s+1,node:i}}).filter(r=>r!=null)}function X2e(e){const t=Lh(e.$from);if(!t)return;const n=jt.get(t.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map(o=>{const r=t.node.nodeAt(o),i=o+t.start;return{pos:i,start:i+1,node:r}})}function Q2e(e){const t=X2e(e.selection);if(t&&t[0]){const n=e.doc.resolve(t[0].pos),o=t[t.length-1];if(o){const r=e.doc.resolve(o.pos);return n0(e.setSelection(new ln(r,n)))}}return e}function sN(e,t,{map:n,tableStart:o,table:r},i){const s=Array(i).fill(0).reduce((a,c,u)=>a+r.child(u).nodeSize,o),l=Array(n.width).fill(0).map((a,c)=>{const u=r.nodeAt(n.map[c]);return Nh.type(e).createAndFill({alignment:u==null?void 0:u.attrs.alignment})});return t.insert(s,Ph.type(e).create(null,l)),t}function lN(e){return(t,n)=>o=>{n=n??o.selection.from;const r=o.doc.resolve(n),i=ok(a=>a.type.name==="table")(r),s=i?{node:i.node,from:i.start}:void 0,l=e==="row";if(s){const a=jt.get(s.node);if(t>=0&&t<(l?a.height:a.width)){const c=a.positionAt(l?t:a.height-1,l?a.width-1:t,s.node),u=o.doc.resolve(s.from+c),d=l?ln.rowSelection:ln.colSelection,f=a.positionAt(l?t:0,l?0:t,s.node),p=o.doc.resolve(s.from+f);return n0(o.setSelection(d(u,p)))}}return o}}const ewe=lN("row"),twe=lN("col");function zS(e){return e[0].map((t,n)=>e.map(o=>o[n]))}function aN(e,t){const n=[],o=jt.get(e);for(let r=0;r<o.height;r++){const i=e.child(r),s=[];for(let l=0;l<o.width;l++){if(!t[r][l])continue;const a=o.map[r*o.width+l],c=t[r][l],u=e.nodeAt(a).type.createChecked(Object.assign({},c.attrs),c.content,c.marks);s.push(u)}n.push(i.type.createChecked(i.attrs,s,i.marks))}return e.type.createChecked(e.attrs,n,e.marks)}function cN(e){const t=jt.get(e),n=[];for(let o=0;o<t.height;o++){const r=[],i={};for(let s=0;s<t.width;s++){const l=t.map[o*t.width+s],a=e.nodeAt(l),c=t.findCell(l);if(i[l]||c.top!==o){r.push(null);continue}i[l]=!0,r.push(a)}n.push(r)}return n}function uN(e,t,n,o){const r=t[0]>n[0]?-1:1,i=e.splice(t[0],t.length),s=i.length%2===0?1:0;let l;return o===-1&&r===1?l=n[0]-1:o===1&&r===-1?l=n[n.length-1]-s+1:l=r===-1?n[0]:n[n.length-1]-s,e.splice(l,0,...i),e}function nwe(e,t,n,o){let r=zS(cN(e.node));return r=uN(r,t,n,o),r=zS(r),aN(e.node,r)}function owe(e,t,n,o){let r=cN(e.node);return r=uN(r,t,n,o),aN(e.node,r)}function VS(e,t){let n=e,o=e;for(let u=e;u>=0;u--){const d=Zc(u,t.selection);d&&d.forEach(f=>{const p=f.node.attrs.colspan+u-1;p>=n&&(n=u),p>o&&(o=p)})}for(let u=e;u<=o;u++){const d=Zc(u,t.selection);d&&d.forEach(f=>{const p=f.node.attrs.colspan+u-1;f.node.attrs.colspan>1&&p>o&&(o=p)})}const r=[];for(let u=n;u<=o;u++){const d=Zc(u,t.selection);d&&d.length&&r.push(u)}n=r[0],o=r[r.length-1];const i=Zc(n,t.selection),s=Jc(0,t.selection),l=t.doc.resolve(i[i.length-1].pos);let a;for(let u=o;u>=n;u--){const d=Zc(u,t.selection);if(d&&d.length){for(let f=s.length-1;f>=0;f--)if(s[f].pos===d[0].pos){a=d[0];break}if(a)break}}const c=t.doc.resolve(a.pos);return{$anchor:l,$head:c,indexes:r}}function jS(e,t){let n=e,o=e;for(let u=e;u>=0;u--)Jc(u,t.selection).forEach(d=>{const f=d.node.attrs.rowspan+u-1;f>=n&&(n=u),f>o&&(o=f)});for(let u=e;u<=o;u++)Jc(u,t.selection).forEach(d=>{const f=d.node.attrs.rowspan+u-1;d.node.attrs.rowspan>1&&f>o&&(o=f)});const r=[];for(let u=n;u<=o;u++){const d=Jc(u,t.selection);d&&d.length&&r.push(u)}n=r[0],o=r[r.length-1];const i=Jc(n,t.selection),s=Zc(0,t.selection),l=t.doc.resolve(i[i.length-1].pos);let a;for(let u=o;u>=n;u--){const d=Jc(u,t.selection);if(d&&d.length){for(let f=s.length-1;f>=0;f--)if(s[f].pos===d[0].pos){a=d[0];break}if(a)break}}const c=t.doc.resolve(a.pos);return{$anchor:l,$head:c,indexes:r}}function rwe(e){const{tr:t,origin:n,target:o,select:r=!0,pos:i}=e,s=i!=null?t.doc.resolve(i):t.selection.$from,l=Lh(s);if(!l)return t;const{indexes:a}=VS(n,t),{indexes:c}=VS(o,t);if(a.includes(o))return t;const u=nwe(l,a,c,0),d=n0(t).replaceWith(l.pos,l.pos+l.node.nodeSize,u);if(!r)return d;const f=jt.get(u),p=l.start,h=o,m=f.positionAt(f.height-1,h,u),b=d.doc.resolve(p+m),v=ln.colSelection,E=f.positionAt(0,h,u),w=d.doc.resolve(p+E);return d.setSelection(v(b,w))}function iwe(e){const{tr:t,origin:n,target:o,select:r=!0,pos:i}=e,s=i!=null?t.doc.resolve(i):t.selection.$from,l=Lh(s);if(!l)return t;const{indexes:a}=jS(n,t),{indexes:c}=jS(o,t);if(a.includes(o))return t;const u=owe(l,a,c,0),d=n0(t).replaceWith(l.pos,l.pos+l.node.nodeSize,u);if(!r)return d;const f=jt.get(u),p=l.start,h=o,m=f.positionAt(h,f.width-1,u),b=d.doc.resolve(p+m),v=ln.rowSelection,E=f.positionAt(h,0,u),w=d.doc.resolve(p+E);return d.setSelection(v(b,w))}const d4=Ct("GoToPrevTableCell",()=>()=>HP(-1));ct(d4,{displayName:"Command<goToPrevTableCellCommand>",group:"Table"});const f4=Ct("GoToNextTableCell",()=>()=>HP(1));ct(f4,{displayName:"Command<goToNextTableCellCommand>",group:"Table"});const p4=Ct("ExitTable",e=>()=>(t,n)=>{if(!zr(t))return!1;const{$head:o}=t.selection,r=v1e(o,Sd.type(e));if(!r)return!1;const{to:i}=r,s=t.tr.replaceWith(i,i,Ps.type(e).createAndFill());return s.setSelection(ft.near(s.doc.resolve(i),1)).scrollIntoView(),n==null||n(s),!0});ct(p4,{displayName:"Command<breakTableCommand>",group:"Table"});const dN=Ct("InsertTable",e=>({row:t,col:n}={})=>(o,r)=>{const{selection:i,tr:s}=o,{from:l}=i,a=iN(e,t,n),c=s.replaceSelectionWith(a),u=ft.findFrom(c.doc.resolve(l),1,!0);return u&&c.setSelection(u),r==null||r(c),!0});ct(dN,{displayName:"Command<insertTableCommand>",group:"Table"});const fN=Ct("MoveRow",()=>({from:e,to:t,pos:n}={})=>(o,r)=>{const{tr:i}=o;return!!(r!=null&&r(iwe({tr:i,origin:e??0,target:t??0,pos:n,select:!0})))});ct(fN,{displayName:"Command<moveRowCommand>",group:"Table"});const pN=Ct("MoveCol",()=>({from:e,to:t,pos:n}={})=>(o,r)=>{const{tr:i}=o;return!!(r!=null&&r(rwe({tr:i,origin:e??0,target:t??0,pos:n,select:!0})))});ct(pN,{displayName:"Command<moveColCommand>",group:"Table"});const hN=Ct("SelectRow",()=>(e={index:0})=>(t,n)=>{const{tr:o}=t;return!!(n!=null&&n(ewe(e.index,e.pos)(o)))});ct(hN,{displayName:"Command<selectRowCommand>",group:"Table"});const mN=Ct("SelectCol",()=>(e={index:0})=>(t,n)=>{const{tr:o}=t;return!!(n!=null&&n(twe(e.index,e.pos)(o)))});ct(mN,{displayName:"Command<selectColCommand>",group:"Table"});const _N=Ct("SelectTable",()=>()=>(e,t)=>{const{tr:n}=e;return!!(t!=null&&t(Q2e(n)))});ct(_N,{displayName:"Command<selectTableCommand>",group:"Table"});const gN=Ct("DeleteSelectedCells",()=>()=>(e,t)=>{const{selection:n}=e;if(!(n instanceof ln))return!1;const o=n.isRowSelection(),r=n.isColSelection();return o&&r?Ube(e,t):r?Dbe(e,t):zbe(e,t)});ct(gN,{displayName:"Command<deleteSelectedCellsCommand>",group:"Table"});const vN=Ct("AddColBefore",()=>()=>Lbe);ct(vN,{displayName:"Command<addColBeforeCommand>",group:"Table"});const bN=Ct("AddColAfter",()=>()=>Rbe);ct(bN,{displayName:"Command<addColAfterCommand>",group:"Table"});const yN=Ct("AddRowBefore",e=>()=>(t,n)=>{if(!zr(t))return!1;if(n){const o=Zl(t);n(sN(e,t.tr,o,o.top))}return!0});ct(yN,{displayName:"Command<addRowBeforeCommand>",group:"Table"});const wN=Ct("AddRowAfter",e=>()=>(t,n)=>{if(!zr(t))return!1;if(n){const o=Zl(t);n(sN(e,t.tr,o,o.bottom))}return!0});ct(wN,{displayName:"Command<addRowAfterCommand>",group:"Table"});const kN=Ct("SetAlign",()=>(e="left")=>Vbe("alignment",e));ct(kN,{displayName:"Command<setAlignCommand>",group:"Table"});const xN=qo(e=>new hr(/^\|(?<col>\d+)[xX](?<row>\d+)\|\s$/,(t,n,o,r)=>{var i,s;const l=t.doc.resolve(o);if(!l.node(-1).canReplaceWith(l.index(-1),l.indexAfter(-1),Sd.type(e)))return null;const a=iN(e,Number((i=n.groups)==null?void 0:i.row),Number((s=n.groups)==null?void 0:s.col)),c=t.tr.replaceRangeWith(o,r,a);return c.setSelection(lt.create(c.doc,o+3)).scrollIntoView()}));ct(xN,{displayName:"InputRule<insertTableInputRule>",group:"Table"});const h4=Ko("tableKeymap",{NextCell:{shortcuts:["Mod-]","Tab"],command:e=>{const t=e.get(It);return()=>t.call(f4.key)}},PrevCell:{shortcuts:["Mod-[","Shift-Tab"],command:e=>{const t=e.get(It);return()=>t.call(d4.key)}},ExitTable:{shortcuts:["Mod-Enter"],command:e=>{const t=e.get(It);return()=>t.call(p4.key)}}});ct(h4.ctx,{displayName:"KeymapCtx<table>",group:"Table"});ct(h4.shortcuts,{displayName:"Keymap<table>",group:"Table"});const Kv="footnote_definition",HS="footnoteDefinition",m4=Un("footnote_definition",()=>({group:"block",content:"block+",defining:!0,attrs:{label:{default:""}},parseDOM:[{tag:`dl[data-type="${Kv}"]`,getAttrs:e=>{if(!(e instanceof HTMLElement))throw Yi(e);return{label:e.dataset.label}},contentElement:"dd"}],toDOM:e=>{const t=e.attrs.label;return["dl",{"data-label":t,"data-type":Kv},["dt",t],["dd",0]]},parseMarkdown:{match:({type:e})=>e===HS,runner:(e,t,n)=>{e.openNode(n,{label:t.label}).next(t.children).closeNode()}},toMarkdown:{match:e=>e.type.name===Kv,runner:(e,t)=>{e.openNode(HS,void 0,{label:t.attrs.label,identifier:t.attrs.label}).next(t.content).closeNode()}}}));ct(m4.ctx,{displayName:"NodeSchemaCtx<footnodeDef>",group:"footnote"});ct(m4.node,{displayName:"NodeSchema<footnodeDef>",group:"footnote"});const Gv="footnote_reference",_4=Un("footnote_reference",()=>({group:"inline",inline:!0,atom:!0,attrs:{label:{default:""}},parseDOM:[{tag:`sup[data-type="${Gv}"]`,getAttrs:e=>{if(!(e instanceof HTMLElement))throw Yi(e);return{label:e.dataset.label}}}],toDOM:e=>{const t=e.attrs.label;return["sup",{"data-label":t,"data-type":Gv},t]},parseMarkdown:{match:({type:e})=>e==="footnoteReference",runner:(e,t,n)=>{e.addNode(n,{label:t.label})}},toMarkdown:{match:e=>e.type.name===Gv,runner:(e,t)=>{e.addNode("footnoteReference",void 0,void 0,{label:t.attrs.label,identifier:t.attrs.label})}}}));ct(_4.ctx,{displayName:"NodeSchemaCtx<footnodeRef>",group:"footnote"});ct(_4.node,{displayName:"NodeSchema<footnodeRef>",group:"footnote"});const CN=Vi.extendSchema(e=>t=>{const n=e(t);return{...n,attrs:{...n.attrs,checked:{default:null}},parseDOM:[{tag:'li[data-item-type="task"]',getAttrs:o=>{if(!(o instanceof HTMLElement))throw Yi(o);return{label:o.dataset.label,listType:o.dataset.listType,spread:o.dataset.spread,checked:o.dataset.checked?o.dataset.checked==="true":null}}},...(n==null?void 0:n.parseDOM)||[]],toDOM:o=>n.toDOM&&o.attrs.checked==null?n.toDOM(o):["li",{"data-item-type":"task","data-label":o.attrs.label,"data-list-type":o.attrs.listType,"data-spread":o.attrs.spread,"data-checked":o.attrs.checked},0],parseMarkdown:{match:({type:o})=>o==="listItem",runner:(o,r,i)=>{if(r.checked==null){n.parseMarkdown.runner(o,r,i);return}const s=r.label!=null?`${r.label}.`:"•",l=r.checked!=null?!!r.checked:null,a=r.label!=null?"ordered":"bullet",c=r.spread!=null?`${r.spread}`:"true";o.openNode(i,{label:s,listType:a,spread:c,checked:l}),o.next(r.children),o.closeNode()}},toMarkdown:{match:o=>o.type.name==="list_item",runner:(o,r)=>{if(r.attrs.checked==null){n.toMarkdown.runner(o,r);return}const i=r.attrs.label,s=r.attrs.listType,l=r.attrs.spread==="true",a=r.attrs.checked;o.openNode("listItem",void 0,{label:i,listType:s,spread:l,checked:a}),o.next(r.content),o.closeNode()}}}});ct(CN,{displayName:"NodeSchema<listItem>",group:"ListItem"});const SN=qo(()=>new hr(/^\[(?<checked>\s|x)\]\s$/,(e,t,n,o)=>{var r;const i=e.doc.resolve(n);let s=0,l=i.node(s);for(;l&&l.type.name!=="list_item";)s--,l=i.node(s);if(!l||l.attrs.checked!=null)return null;const a=((r=t.groups)==null?void 0:r.checked)==="x",c=i.before(s),u=e.tr;return u.deleteRange(n,o).setNodeMarkup(c,void 0,{...l.attrs,checked:a}),u}));ct(SN,{displayName:"InputRule<wrapInTaskListInputRule>",group:"ListItem"});const swe=[u4,h4].flat(),lwe=[xN,SN],awe=[rN],$N=eo(()=>yye);ct($N,{displayName:"Prose<autoInsertSpanPlugin>",group:"Prose"});const cwe=eo(()=>eye({}));ct(cwe,{displayName:"Prose<columnResizingPlugin>",group:"Prose"});const EN=eo(()=>dye({allowTableNodeSelection:!0}));ct(EN,{displayName:"Prose<tableEditingPlugin>",group:"Prose"});const g4=bd("remarkGFM",()=>J2e);ct(g4.plugin,{displayName:"Remark<remarkGFMPlugin>",group:"Remark"});ct(g4.options,{displayName:"RemarkConfig<remarkGFMPlugin>",group:"Remark"});const uwe=new mn("MILKDOWN_KEEP_TABLE_ALIGN_PLUGIN");function dwe(e,t){let n=0;return t.forEach((o,r,i)=>{o===e&&(n=i)}),n}const TN=eo(()=>new wn({key:uwe,appendTransaction:(e,t,n)=>{let o;const r=(i,s)=>{if(o||(o=n.tr),i.type.name!=="table_cell")return;const l=n.doc.resolve(s),a=l.node(l.depth),c=l.node(l.depth-1).firstChild;if(!c)return;const u=dwe(i,a),d=c.maybeChild(u);if(!d)return;const f=d.attrs.alignment,p=i.attrs.alignment;f!==p&&o.setNodeMarkup(s,void 0,{...i.attrs,alignment:f})};return t.doc!==n.doc&&n.doc.descendants(r),o}}));ct(TN,{displayName:"Prose<keepTableAlignPlugin>",group:"Prose"});const fwe=[TN,$N,g4,EN].flat(),pwe=[CN,Sd,m0,Ph,_0,Nh,m4,_4,c4,Cd].flat(),hwe=[f4,d4,p4,dN,fN,pN,hN,mN,_N,gN,yN,wN,vN,bN,kN,h0],mwe=[pwe,lwe,awe,swe,hwe,fwe].flat();var Yg=200,Vn=function(){};Vn.prototype.append=function(t){return t.length?(t=Vn.from(t),!this.length&&t||t.length<Yg&&this.leafAppend(t)||this.length<Yg&&t.leafPrepend(this)||this.appendInner(t)):this};Vn.prototype.prepend=function(t){return t.length?Vn.from(t).append(this):this};Vn.prototype.appendInner=function(t){return new _we(this,t)};Vn.prototype.slice=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=this.length),t>=n?Vn.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Vn.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Vn.prototype.forEach=function(t,n,o){n===void 0&&(n=0),o===void 0&&(o=this.length),n<=o?this.forEachInner(t,n,o,0):this.forEachInvertedInner(t,n,o,0)};Vn.prototype.map=function(t,n,o){n===void 0&&(n=0),o===void 0&&(o=this.length);var r=[];return this.forEach(function(i,s){return r.push(t(i,s))},n,o),r};Vn.from=function(t){return t instanceof Vn?t:t&&t.length?new MN(t):Vn.empty};var MN=function(e){function t(o){e.call(this),this.values=o}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,i){return r==0&&i==this.length?this:new t(this.values.slice(r,i))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,i,s,l){for(var a=i;a<s;a++)if(r(this.values[a],l+a)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,s,l){for(var a=i-1;a>=s;a--)if(r(this.values[a],l+a)===!1)return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=Yg)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=Yg)return new t(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Vn);Vn.empty=new MN([]);var _we=function(e){function t(n,o){e.call(this),this.left=n,this.right=o,this.length=n.length+o.length,this.depth=Math.max(n.depth,o.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(o){return o<this.left.length?this.left.get(o):this.right.get(o-this.left.length)},t.prototype.forEachInner=function(o,r,i,s){var l=this.left.length;if(r<l&&this.left.forEachInner(o,r,Math.min(i,l),s)===!1||i>l&&this.right.forEachInner(o,Math.max(r-l,0),Math.min(this.length,i)-l,s+l)===!1)return!1},t.prototype.forEachInvertedInner=function(o,r,i,s){var l=this.left.length;if(r>l&&this.right.forEachInvertedInner(o,r-l,Math.max(i,l)-l,s+l)===!1||i<l&&this.left.forEachInvertedInner(o,Math.min(r,l),i,s)===!1)return!1},t.prototype.sliceInner=function(o,r){if(o==0&&r==this.length)return this;var i=this.left.length;return r<=i?this.left.slice(o,r):o>=i?this.right.slice(o-i,r-i):this.left.slice(o,i).append(this.right.slice(0,r-i))},t.prototype.leafAppend=function(o){var r=this.right.leafAppend(o);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(o){var r=this.left.leafPrepend(o);if(r)return new t(r,this.right)},t.prototype.appendInner=function(o){return this.left.depth>=Math.max(this.right.depth,o.depth)+1?new t(this.left,new t(this.right,o)):new t(this,o)},t}(Vn);const gwe=500;class Yr{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}let r,i;n&&(r=this.remapping(o,this.items.length),i=r.maps.length);let s=t.tr,l,a,c=[],u=[];return this.items.forEach((d,f)=>{if(!d.step){r||(r=this.remapping(o,f+1),i=r.maps.length),i--,u.push(d);return}if(r){u.push(new Ci(d.map));let p=d.step.map(r.slice(i)),h;p&&s.maybeStep(p).doc&&(h=s.mapping.maps[s.mapping.maps.length-1],c.push(new Ci(h,void 0,void 0,c.length+u.length))),i--,h&&r.appendMap(h,i)}else s.maybeStep(d.step);if(d.selection)return l=r?d.selection.map(r.slice(i)):d.selection,a=new Yr(this.items.slice(0,o).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:s,selection:l}}addTransform(t,n,o,r){let i=[],s=this.eventCount,l=this.items,a=!r&&l.length?l.get(l.length-1):null;for(let u=0;u<t.steps.length;u++){let d=t.steps[u].invert(t.docs[u]),f=new Ci(t.mapping.maps[u],d,n),p;(p=a&&a.merge(f))&&(f=p,u?i.pop():l=l.slice(0,l.length-1)),i.push(f),n&&(s++,n=void 0),r||(a=f)}let c=s-o.depth;return c>bwe&&(l=vwe(l,c),s-=c),new Yr(l.append(i),s)}remapping(t,n){let o=new gu;return this.items.forEach((r,i)=>{let s=r.mirrorOffset!=null&&i-r.mirrorOffset>=t?o.maps.length-r.mirrorOffset:void 0;o.appendMap(r.map,s)},t,n),o}addMaps(t){return this.eventCount==0?this:new Yr(this.items.append(t.map(n=>new Ci(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let o=[],r=Math.max(0,this.items.length-n),i=t.mapping,s=t.steps.length,l=this.eventCount;this.items.forEach(f=>{f.selection&&l--},r);let a=n;this.items.forEach(f=>{let p=i.getMirror(--a);if(p==null)return;s=Math.min(s,p);let h=i.maps[p];if(f.step){let m=t.steps[p].invert(t.docs[p]),b=f.selection&&f.selection.map(i.slice(a+1,p));b&&l++,o.push(new Ci(h,m,b))}else o.push(new Ci(h))},r);let c=[];for(let f=n;f<s;f++)c.push(new Ci(i.maps[f]));let u=this.items.slice(0,r).append(c).append(o),d=new Yr(u,l);return d.emptyItemCount()>gwe&&(d=d.compress(this.items.length-o.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),o=n.maps.length,r=[],i=0;return this.items.forEach((s,l)=>{if(l>=t)r.push(s),s.selection&&i++;else if(s.step){let a=s.step.map(n.slice(o)),c=a&&a.getMap();if(o--,c&&n.appendMap(c,o),a){let u=s.selection&&s.selection.map(n.slice(o));u&&i++;let d=new Ci(c.invert(),a,u),f,p=r.length-1;(f=r.length&&r[p].merge(d))?r[p]=f:r.push(d)}}else s.map&&o--},this.items.length,0),new Yr(Vn.from(r.reverse()),i)}}Yr.empty=new Yr(Vn.empty,0);function vwe(e,t){let n;return e.forEach((o,r)=>{if(o.selection&&t--==0)return n=r,!1}),e.slice(n)}class Ci{constructor(t,n,o,r){this.map=t,this.step=n,this.selection=o,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Ci(n.getMap().invert(),n,this.selection)}}}class fl{constructor(t,n,o,r,i){this.done=t,this.undone=n,this.prevRanges=o,this.prevTime=r,this.prevComposition=i}}const bwe=20;function ywe(e,t,n,o){let r=n.getMeta(Wa),i;if(r)return r.historyState;n.getMeta(xwe)&&(e=new fl(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(s&&s.getMeta(Wa))return s.getMeta(Wa).redo?new fl(e.done.addTransform(n,void 0,o,N_(t)),e.undone,US(n.mapping.maps),e.prevTime,e.prevComposition):new fl(e.done,e.undone.addTransform(n,void 0,o,N_(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),a=e.prevTime==0||!s&&e.prevComposition!=l&&(e.prevTime<(n.time||0)-o.newGroupDelay||!wwe(n,e.prevRanges)),c=s?Yv(e.prevRanges,n.mapping):US(n.mapping.maps);return new fl(e.done.addTransform(n,a?t.selection.getBookmark():void 0,o,N_(t)),Yr.empty,c,n.time,l??e.prevComposition)}else return(i=n.getMeta("rebased"))?new fl(e.done.rebased(n,i),e.undone.rebased(n,i),Yv(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new fl(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),Yv(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function wwe(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((o,r)=>{for(let i=0;i<t.length;i+=2)o<=t[i+1]&&r>=t[i]&&(n=!0)}),n}function US(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((o,r,i,s)=>t.push(i,s));return t}function Yv(e,t){if(!e)return null;let n=[];for(let o=0;o<e.length;o+=2){let r=t.map(e[o],1),i=t.map(e[o+1],-1);r<=i&&n.push(r,i)}return n}function kwe(e,t,n){let o=N_(t),r=Wa.get(t).spec.config,i=(n?e.undone:e.done).popEvent(t,o);if(!i)return null;let s=i.selection.resolve(i.transform.doc),l=(n?e.done:e.undone).addTransform(i.transform,t.selection.getBookmark(),r,o),a=new fl(n?l:i.remaining,n?i.remaining:l,null,0,-1);return i.transform.setSelection(s).setMeta(Wa,{redo:n,historyState:a})}let Zv=!1,WS=null;function N_(e){let t=e.plugins;if(WS!=t){Zv=!1,WS=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){Zv=!0;break}}return Zv}const Wa=new mn("history"),xwe=new mn("closeHistory");function Cwe(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new wn({key:Wa,state:{init(){return new fl(Yr.empty,Yr.empty,null,0,-1)},apply(t,n,o){return ywe(n,o,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,n){let o=n.inputType,r=o=="historyUndo"?IN:o=="historyRedo"?ON:null;return r?(n.preventDefault(),r(t.state,t.dispatch)):!1}}}})}function AN(e,t){return(n,o)=>{let r=Wa.getState(n);if(!r||(e?r.undone:r.done).eventCount==0)return!1;if(o){let i=kwe(r,n,e);i&&o(t?i.scrollIntoView():i)}return!0}}const IN=AN(!1,!0),ON=AN(!0,!0);function $d(e,t){return Object.assign(e,{meta:{package:"@milkdown/plugin-history",...t}}),e}const v4=Ct("Undo",()=>()=>IN);$d(v4,{displayName:"Command<undo>"});const b4=Ct("Redo",()=>()=>ON);$d(b4,{displayName:"Command<redo>"});const y4=Cn({},"historyProviderConfig");$d(y4,{displayName:"Ctx<historyProviderConfig>"});const PN=eo(e=>Cwe(e.get(y4.key)));$d(PN,{displayName:"Ctx<historyProviderPlugin>"});const w4=Ko("historyKeymap",{Undo:{shortcuts:"Mod-z",command:e=>{const t=e.get(It);return()=>t.call(v4.key)}},Redo:{shortcuts:["Mod-y","Shift-Mod-z"],command:e=>{const t=e.get(It);return()=>t.call(b4.key)}}});$d(w4.ctx,{displayName:"KeymapCtx<history>"});$d(w4.shortcuts,{displayName:"Keymap<history>"});const Swe=[y4,PN,w4,v4,b4].flat();function p2(e){if(!e)return!1;if(Array.isArray(e))return e.length>1?!1:p2(e[0]);const t=e.content;return t?p2(t):e.type==="text"}function $we(e){if(e.content.childCount===1){const t=e.content.firstChild;if((t==null?void 0:t.type.name)==="text"&&t.marks.length===0)return t;if((t==null?void 0:t.type.name)==="paragraph"&&t.childCount===1){const n=t.firstChild;if((n==null?void 0:n.type.name)==="text"&&n.marks.length===0)return n}}return!1}const NN=eo(e=>{const t=e.get(ei);e.update(op,o=>({...o,editable:o.editable??(()=>!0)}));const n=new mn("MILKDOWN_CLIPBOARD");return new wn({key:n,props:{handlePaste:(o,r)=>{var i,s;const l=e.get(ku),a=(s=(i=o.props).editable)==null?void 0:s.call(i,o.state),{clipboardData:c}=r;if(!a||!c||o.state.selection.$from.node().type.spec.code)return!1;const u=c.getData("text/plain"),d=c.getData("vscode-editor-data");if(d){const v=JSON.parse(d),E=v==null?void 0:v.mode;if(u&&E){const{tr:w}=o.state,S=b1e("code_block",t);return w.replaceSelectionWith(S.create({language:E})).setSelection(lt.near(w.doc.resolve(Math.max(0,w.selection.from-2)))).insertText(u.replace(/\r\n?/g,`
124 `)),o.dispatch(w),!0}}const f=c.getData("text/html");if(f.length===0&&u.length===0)return!1;const p=rc.fromSchema(t);let h;if(f.length===0){const v=l(u);if(!v||typeof v=="string")return!1;h=Wl.fromSchema(t).serializeFragment(v.content)}else{const v=document.createElement("template");v.innerHTML=f,h=v.content.cloneNode(!0),v.remove()}const m=p.parseSlice(h),b=$we(m);return b?(o.dispatch(o.state.tr.replaceSelectionWith(b,!0)),!0):(o.dispatch(o.state.tr.replaceSelection(m)),!0)},clipboardTextSerializer:o=>{const r=e.get(xu);if(p2(o.content.toJSON()))return o.content.textBetween(0,o.content.size,`
125
126 `);const i=t.topNodeType.createAndFill(void 0,o.content);return i?r(i):""}}})});NN.meta={displayName:"Prose<clipboard>",package:"@milkdown/plugin-clipboard"};const k4=Cn({shouldAppend:e=>!(!e||["heading","paragraph"].includes(e.type.name)),getNode:e=>e.schema.nodes.paragraph.create()},"trailingConfig");k4.meta={package:"@milkdown/plugin-trailing",displayName:"Ctx<trailingConfig>"};const LN=eo(e=>{const t=new mn("MILKDOWN_TRAILING"),{shouldAppend:n,getNode:o}=e.get(k4.key),r=new wn({key:t,state:{init:(i,s)=>{const l=s.tr.doc.lastChild;return n(l,s)},apply:(i,s,l,a)=>{if(!i.docChanged)return s;const c=i.doc.lastChild;return n(c,a)}},appendTransaction:(i,s,l)=>{const{doc:a,tr:c}=l,u=o==null?void 0:o(l),d=r.getState(l),f=a.content.size;if(!(!d||!u))return c.insert(f,u)}});return r});LN.meta={package:"@milkdown/plugin-trailing",displayName:"Prose<trailing>"};const Ewe=[k4,LN];var RN=(e=>(e.CodeMirror="code-mirror",e.LinkTooltip="link-tooltip",e.Cursor="cursor",e.BlockEdit="block-edit",e.Toolbar="toolbar",e.Placeholder="placeholder",e))(RN||{});const Twe={cursor:!0,"link-tooltip":!0,"block-edit":!0,placeholder:!0,toolbar:!0,"code-mirror":!0};async function Mwe(e,t,n){switch(e){case"link-tooltip":{const{defineFeature:o}=await Wd(()=>Promise.resolve().then(()=>wYe),void 0);return o(t,n)}case"block-edit":{const{defineFeature:o}=await Wd(()=>Promise.resolve().then(()=>iZe),void 0);return o(t,n)}case"placeholder":{const{defineFeature:o}=await Wd(()=>Promise.resolve().then(()=>cZe),void 0);return o(t,n)}case"toolbar":{const{defineFeature:o}=await Wd(()=>Promise.resolve().then(()=>fZe),void 0);return o(t,n)}}}const Awe=Lt([],"FeaturesCtx");function Iwe(e){return t=>{t.inject(Awe,e)}}var Owe="Expected a function",qS=0/0,Pwe="[object Symbol]",Nwe=/^\s+|\s+$/g,Lwe=/^[-+]0x[0-9a-f]+$/i,Rwe=/^0b[01]+$/i,Fwe=/^0o[0-7]+$/i,Dwe=parseInt,Bwe=typeof $r=="object"&&$r&&$r.Object===Object&&$r,zwe=typeof self=="object"&&self&&self.Object===Object&&self,Vwe=Bwe||zwe||Function("return this")(),jwe=Object.prototype,Hwe=jwe.toString,Uwe=Math.max,Wwe=Math.min,Jv=function(){return Vwe.Date.now()};function qwe(e,t,n){var o,r,i,s,l,a,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Owe);t=KS(t)||0,h2(n)&&(u=!!n.leading,d="maxWait"in n,i=d?Uwe(KS(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p($){var A=o,P=r;return o=r=void 0,c=$,s=e.apply(P,A),s}function h($){return c=$,l=setTimeout(v,t),u?p($):s}function m($){var A=$-a,P=$-c,N=t-A;return d?Wwe(N,i-P):N}function b($){var A=$-a,P=$-c;return a===void 0||A>=t||A<0||d&&P>=i}function v(){var $=Jv();if(b($))return E($);l=setTimeout(v,m($))}function E($){return l=void 0,f&&o?p($):(o=r=void 0,s)}function w(){l!==void 0&&clearTimeout(l),c=0,o=a=r=l=void 0}function S(){return l===void 0?s:E(Jv())}function T(){var $=Jv(),A=b($);if(o=arguments,r=this,a=$,A){if(l===void 0)return h(a);if(d)return l=setTimeout(v,t),p(a)}return l===void 0&&(l=setTimeout(v,t)),s}return T.cancel=w,T.flush=S,T}function h2(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Kwe(e){return!!e&&typeof e=="object"}function Gwe(e){return typeof e=="symbol"||Kwe(e)&&Hwe.call(e)==Pwe}function KS(e){if(typeof e=="number")return e;if(Gwe(e))return qS;if(h2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=h2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Nwe,"");var n=Rwe.test(e);return n||Fwe.test(e)?Dwe(e.slice(2),n?2:8):Lwe.test(e)?qS:+e}var Ywe=qwe;const g0=jl(Ywe);let FN=class{constructor(){this.beforeMountedListeners=[],this.mountedListeners=[],this.updatedListeners=[],this.markdownUpdatedListeners=[],this.blurListeners=[],this.focusListeners=[],this.destroyListeners=[],this.beforeMount=t=>(this.beforeMountedListeners.push(t),this),this.mounted=t=>(this.mountedListeners.push(t),this),this.updated=t=>(this.updatedListeners.push(t),this)}get listeners(){return{beforeMount:this.beforeMountedListeners,mounted:this.mountedListeners,updated:this.updatedListeners,markdownUpdated:this.markdownUpdatedListeners,blur:this.blurListeners,focus:this.focusListeners,destroy:this.destroyListeners}}markdownUpdated(t){return this.markdownUpdatedListeners.push(t),this}blur(t){return this.blurListeners.push(t),this}focus(t){return this.focusListeners.push(t),this}destroy(t){return this.destroyListeners.push(t),this}};const m2=Lt(new FN,"listener"),Zwe=new mn("MILKDOWN_LISTENER"),DN=e=>(e.inject(m2,new FN),async()=>{await e.wait(Ha);const t=e.get(m2),{listeners:n}=t;n.beforeMount.forEach(l=>l(e)),await e.wait(np);const o=e.get(xu);let r=null,i=null;const s=new wn({key:Zwe,view:()=>({destroy:()=>{n.destroy.forEach(l=>l(e))}}),props:{handleDOMEvents:{focus:()=>(n.focus.forEach(l=>l(e)),!1),blur:()=>(n.blur.forEach(l=>l(e)),!1)}},state:{init:(l,a)=>{r=a.doc,i=o(a.doc)},apply:l=>!l.docChanged||l.getMeta("addToHistory")===!1?void 0:g0(()=>{const{doc:a}=l;if(n.updated.length>0&&r&&!r.eq(a)&&n.updated.forEach(c=>{c(e,a,r)}),n.markdownUpdated.length>0&&r&&!r.eq(a)){const c=o(a);n.markdownUpdated.forEach(u=>{u(e,c,i)}),i=c}r=a},200)()}});e.update(ai,l=>l.concat(s)),await e.wait($_),n.mounted.forEach(l=>l(e))});DN.meta={package:"@milkdown/plugin-listener",displayName:"Listener"};function Jwe(e){return new Promise(t=>{const n=new FileReader;n.addEventListener("load",()=>{t({alt:e.name,src:n.result})},!1),n.readAsDataURL(e)})}const Xwe=async(e,t)=>{const n=[];for(let r=0;r<e.length;r++){const i=e.item(r);i&&i.type.includes("image")&&n.push(i)}const{image:o}=t.nodes;if(!o)throw qA("image");return(await Promise.all(n.map(r=>Jwe(r)))).map(({alt:r,src:i})=>o.createAndFill({src:i,alt:r}))},Cu=Cn({uploader:Xwe,enableHtmlFileUploader:!1,uploadWidgetFactory:(e,t)=>{const n=document.createElement("span");return n.textContent="Upload in progress...",Rn.widget(e,n,t)}},"uploadConfig");Cu.meta={package:"@milkdown/plugin-upload",displayName:"Ctx<uploadConfig>"};const BN=eo(e=>{const t=new mn("MILKDOWN_UPLOAD"),n=(r,i)=>{var s;const l=t.getState(r);if(!l)return-1;const a=l.find(void 0,void 0,c=>c.id===i);return a.length?((s=a[0])==null?void 0:s.from)??-1:-1},o=(r,i,s)=>{var l;if(!s||s.length<=0)return!1;const a=Symbol("upload symbol"),c=e.get(ei),{tr:u}=r.state,d=i instanceof DragEvent?((l=r.posAtCoords({left:i.clientX,top:i.clientY}))==null?void 0:l.pos)??u.selection.from:u.selection.from;r.dispatch(u.setMeta(t,{add:{id:a,pos:d}}));const{uploader:f}=e.get(Cu.key);return f(s,c).then(p=>{const h=n(r.state,a);h<0||r.dispatch(r.state.tr.replaceWith(h,h,p).setMeta(t,{remove:{id:a}}))}).catch(p=>{console.error(p)}),!0};return new wn({key:t,state:{init(){return tn.empty},apply(r,i){const s=i.map(r.mapping,r.doc),l=r.getMeta(this);if(!l)return s;if(l.add){const{uploadWidgetFactory:a}=e.get(Cu.key),c=a(l.add.pos,{id:l.add.id});return s.add(r.doc,[c])}if(l.remove){const a=s.find(void 0,void 0,c=>c.id===l.remove.id);return s.remove(a)}return s}},props:{decorations(r){return this.getState(r)},handlePaste:(r,i)=>{var s,l;const{enableHtmlFileUploader:a}=e.get(Cu.key);return!(i instanceof ClipboardEvent)||!a&&(s=i.clipboardData)!=null&&s.getData("text/html")?!1:o(r,i,(l=i.clipboardData)==null?void 0:l.files)},handleDrop:(r,i)=>{var s;return i instanceof DragEvent?o(r,i,(s=i.dataTransfer)==null?void 0:s.files):!1}}})});BN.meta={package:"@milkdown/plugin-upload",displayName:"Prose<upload>"};const Qwe=[Cu,BN];var zN=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},_i=(e,t,n)=>(zN(e,t,"read from private field"),n?n.call(e):t.get(e)),Em=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Tm=(e,t,n,o)=>(zN(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),ls,gf,L_,R_;class VN{constructor({root:t,features:n={},featureConfigs:o={},defaultValue:r="",onUpdate:i=l=>{},handleCommonActions:s=(l,a)=>{}}){Em(this,ls,void 0),Em(this,gf,void 0),Em(this,L_,void 0),Em(this,R_,!0);const l=Object.entries({...Twe,...n}).filter(([,c])=>c).map(([c])=>c);Tm(this,L_,(typeof t=="string"?document.querySelector(t):t)??document.body),Tm(this,ls,Lve.make().config(Iwe(l)).config(c=>{c.set(E_,_i(this,L_)),c.set(x_,r),c.set(op,{editable:()=>_i(this,R_)})}).config(c=>{const u=async(d,f)=>await s("handleFileUpload",{ctx:c,files:d,schema:f});c.update(Cu.key,d=>({...d,uploader:u}))}).config(c=>{const u=c.get(m2);u.markdownUpdated((d,f,p)=>{f!==p&&i(f)}),u.updated((d,f,p)=>{s("editor_updated",d)})}).use(gbe).use(Swe).use(Ewe).use(NN).use(DN).use(Qwe).use(mwe));const a=[];l.forEach(c=>{const u=o[c];a.push(Mwe(c,_i(this,ls),u))}),Tm(this,gf,Promise.all(a))}async create(){return await _i(this,gf),_i(this,ls).create()}async destroy(){return await _i(this,gf),_i(this,ls).destroy()}get editor(){return _i(this,ls)}setReadonly(t){return Tm(this,R_,!t),this}getMarkdown(){return _i(this,ls).action(Vve())}getEditor(){return _i(this,ls)}destroyEditor(){this.destroy()}}ls=new WeakMap;gf=new WeakMap;L_=new WeakMap;R_=new WeakMap;VN.Feature=RN;const e3e=Symbol("editorInfoCtxKey"),t3e=K({name:"MilkdownProvider",setup:(e,{slots:t})=>{const n=H(null),o=H(void 0),r=H(void 0),i=H(!0);return wt(e3e,{loading:i,dom:n,editor:r,editorFactory:o}),()=>{var s;return y(Q,null,[(s=t.default)==null?void 0:s.call(t)])}}});var n3e=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},jN=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},_2=(e,t,n)=>(n3e(e,t,"access private method"),n),F_,g2;let o3e=class{constructor({node:t,view:n,getPos:o,decorations:r,innerDecorations:i,options:s}){jN(this,F_),this.selected=!1,this.selectNode=()=>{var l,a;this.selected=!0,(a=(l=this.options).selectNode)==null||a.call(l)},this.deselectNode=()=>{var l,a;this.selected=!1,(a=(l=this.options).deselectNode)==null||a.call(l)},this.shouldUpdate=l=>!(l.type!==this.node.type||l.sameMarkup(this.node)&&l.content.eq(this.node.content)),this.update=(l,a,c)=>{var u,d;const f=this.options.update;let p;return f&&(p=f(l,a,c)),typeof p!="boolean"&&(p=this.shouldUpdate(l)),this.node=l,this.decorations=a,this.innerDecorations=c,p&&((d=(u=this.options).onUpdate)==null||d.call(u)),p},this.shouldIgnoreMutation=l=>!this.dom||!this.contentDOM||this.node.isLeaf||this.node.isAtom?!0:l.type==="selection"?!1:this.contentDOM===l.target&&l.type==="attributes"?!0:!this.contentDOM.contains(l.target),this.ignoreMutation=l=>{if(!this.dom||!this.contentDOM)return!0;let a;const c=this.options.ignoreMutation;return c&&(a=c(l)),typeof a!="boolean"&&(a=this.shouldIgnoreMutation(l)),a},this.destroy=()=>{var l,a,c;(a=(l=this.options).destroy)==null||a.call(l),this.dom.remove(),(c=this.contentDOM)==null||c.remove()},this.setAttrs=l=>{const{dispatch:a,state:c}=this.view,u=this.getPos();if(typeof u=="number")return a(c.tr.setNodeMarkup(u,void 0,{...this.node.attrs,...l}))},this.node=t,this.view=n,this.getPos=o,this.decorations=r,this.innerDecorations=i,this.options=s,this.dom=this.createDOM(s.as),this.contentDOM=t.isLeaf?null:this.createContentDOM(s.contentAs),this.dom.setAttribute("data-node-view-root","true"),this.contentDOM&&(this.contentDOM.setAttribute("data-node-view-content","true"),this.contentDOM.style.whiteSpace="inherit"),this.setSelection=s.setSelection,this.stopEvent=s.stopEvent}createDOM(t){return _2(this,F_,g2).call(this,t)}createContentDOM(t){return _2(this,F_,g2).call(this,t)}get component(){return this.options.component}};F_=new WeakSet,g2=function(e){const{node:t}=this;return e==null?document.createElement(t.isInline?"span":"div"):e instanceof HTMLElement?e:e instanceof Function?e(t):document.createElement(e)};let r3e=class{constructor(t){this.view=t.view,this.options=t.options}get component(){return this.options.component}get root(){var t,n;let o=(n=(t=this.options).root)==null?void 0:n.call(t,this.view.dom);return o||(o=this.view.dom.parentElement??document.body),o}update(t,n){var o,r;this.view=t,this.prevState=n,(r=(o=this.options).update)==null||r.call(o,t,n)}destroy(){var t,n;(n=(t=this.options).destroy)==null||n.call(t)}};var v2,HN;let i3e=class{constructor({pos:t,spec:n,options:o}){jN(this,v2),this.pos=t,this.options=o,this.spec=n,this.dom=_2(this,v2,HN).call(this,o.as),this.dom.setAttribute("data-widget-view-root","true")}bind(t,n){this.view=t,this.getPos=n}get component(){return this.options.component}};v2=new WeakSet,HN=function(e){return e instanceof HTMLElement?e:document.createElement(e)};let x4=(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 s3e=Object.defineProperty,l3e=(e,t,n)=>t in e?s3e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Er=(e,t,n)=>(l3e(e,typeof t!="symbol"?t+"":t,n),n);const a3e=Symbol("[ProsemirrorAdapter]nodeViewContext"),c3e=Symbol("[ProsemirrorAdapter]useNodeViewFactory");let u3e=class extends o3e{constructor(){super(...arguments),Er(this,"key",x4()),Er(this,"context",{contentRef:t=>{t&&t instanceof HTMLElement&&this.contentDOM&&t.firstChild!==this.contentDOM&&t.appendChild(this.contentDOM)},view:this.view,getPos:this.getPos,setAttrs:this.setAttrs,node:xn(this.node),selected:xn(this.selected),decorations:xn(this.decorations),innerDecorations:xn(this.innerDecorations)}),Er(this,"updateContext",()=>{Object.entries({node:this.node,selected:this.selected,decorations:this.decorations,innerDecorations:this.innerDecorations}).forEach(([t,n])=>{const o=this.context[t];o.value!==n&&(o.value=n)})}),Er(this,"render",()=>{const t=this.component;return oi(K({name:"ProsemirrorNodeView",setup:()=>(wt(a3e,this.context),()=>y(sr,{key:this.key,to:this.dom},{default:()=>[y(t,null,null)]}))}))})}};const d3e=(e,t)=>n=>(o,r,i,s,l)=>{const a=new u3e({node:o,view:r,getPos:i,decorations:s,innerDecorations:l,options:{...n,onUpdate(){var c;(c=n.onUpdate)==null||c.call(n),a.updateContext()},selectNode(){var c;(c=n.selectNode)==null||c.call(n),a.updateContext()},deselectNode(){var c;(c=n.deselectNode)==null||c.call(n),a.updateContext()},destroy(){var c;(c=n.destroy)==null||c.call(n),t(a)}}});return e(a),a},f3e=Symbol("[ProsemirrorAdapter]nodeViewContext"),p3e=Symbol("[ProsemirrorAdapter]usePluginViewFactory");let h3e=class extends r3e{constructor(){super(...arguments),Er(this,"key",x4()),Er(this,"context",{view:xn(this.view),prevState:xn(this.prevState)}),Er(this,"updateContext",()=>{Object.entries({view:this.view,prevState:this.prevState}).forEach(([t,n])=>{const o=this.context[t];if(t==="view"){const r=Object.assign(Object.create(Object.getPrototypeOf(n)),n);o.value=r;return}o.value=n})}),Er(this,"render",()=>{const t=this.component;return oi(K({name:"ProsemirrorNodeView",setup:()=>(wt(f3e,this.context),()=>y(sr,{key:this.key,to:this.root},{default:()=>[y(t,null,null)]}))}))})}};const m3e=(e,t)=>n=>o=>{const r=new h3e({view:o,options:{...n,update:(i,s)=>{var l;(l=n.update)==null||l.call(n,i,s),r.updateContext()},destroy:()=>{var i;(i=n.destroy)==null||i.call(n),t(r)}}});return e(r),r},_3e=()=>{const e=H({}),t=nt(),n=oi({});return ld(()=>{n.updater=()=>{t==null||t.update()}}),Hi(()=>{n.updater=void 0}),{portals:e,renderVueRenderer:o=>{var r;e.value[o.key]=o.render(),(r=n.updater)==null||r.call(n)},removeVueRenderer:o=>{delete e.value[o.key]}}},g3e=Symbol("[ProsemirrorAdapter]widgetViewContext"),v3e=Symbol("[ProsemirrorAdapter]useWidgetViewFactory");class b3e extends i3e{constructor(){super(...arguments),Er(this,"key",x4()),Er(this,"context",{view:this.view,getPos:this.getPos,spec:this.spec}),Er(this,"updateContext",()=>{Object.assign(this.context,{view:this.view,getPos:this.getPos,spec:this.spec})}),Er(this,"render",()=>{const t=this.component;return oi(K({name:"ProsemirrorWidgetView",setup:()=>(wt(g3e,this.context),()=>y(sr,{key:this.key,to:this.dom},{default:()=>[y(t,null,null)]}))}))})}}const y3e=(e,t)=>n=>(o,r={})=>{const i=new b3e({pos:o,options:n}),s={...r,destroy:l=>{var a;(a=r.destroy)==null||a.call(r,l),t(i)}};return i.spec=s,Rn.widget(o,(l,a)=>(i.bind(l,a),i.updateContext(),e(i),i.dom),s)},w3e=K({name:"ProsemirrorAdapterProvider",setup:(e,{slots:t})=>{const{portals:n,renderVueRenderer:o,removeVueRenderer:r}=_3e(),i=d3e(o,r),s=m3e(o,r),l=y3e(o,r);return wt(c3e,i),wt(p3e,s),wt(v3e,l),()=>{var a;return y(Q,null,[(a=t.default)==null?void 0:a.call(t),Object.values(n.value).map(c=>Xe(c))])}}}),k3e={name:"CrepeEditor",emits:["update:modelValue","handleMediaUpload","editorCreated"],props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},autofocus:{type:Boolean,default:!1},mentionQuery:{type:Object,default:()=>({})},autofocus_changed:{type:Boolean,default:!1},disable_mention:{type:Boolean,default:!1},disable_media:{type:Boolean,default:!1},defaultMentions:{type:Array,default:()=>[]},hasEveyoneMention:{type:Boolean,default:!1}},components:{MilkdownProvider:t3e,ProsemirrorAdapterProvider:w3e},data(){return{editor:null,currentContent:"",showMentionPop:!1,currentMentionSearch:"",mentionResults:[],justReplaced:!1,searchingMention:!1}},watch:{autofocus_changed(e){e&&this.focusOnEditor()}},methods:{updateContent(e){this.editor.action(t=>{const n=t.get(pn),{state:o}=n,{from:r}=o.selection,i=e,s=o.tr.insertText(i,r),l=r+i.length,a=s.setSelection(lt.create(s.doc,l));n.dispatch(a),n.focus()})},initEditor(){const e=this,t=new VN({root:this.$refs.crepe_editor_vue,defaultValue:this.modelValue,featureConfigs:{placeholder:{text:this.placeholder||this.$t("Type your message here!"),mode:"doc"}},onUpdate(n){e.$emit("update:modelValue",n),e.currentContent=n},async handleCommonActions(n,o){if(n==="editor_updated"){if(e.disable_mention)return!1;e.checkforMention(o)}else if(n="handleFileUpload")return e.disable_media?[]:await e.handleFileUpload(o)}});t.create().then(()=>{this.focusOnEditor(),this.$emit("editorCreated"),this.editor=t.getEditor()})},focusOnEditor(){if(!this.autofocus)return;const e=this.$refs.crepe_editor_vue;if(e.querySelector(".ProseMirror")){let t=e.querySelector(".ProseMirror");if(t.focus(),t.hasChildNodes()){let n=window.getSelection(),o=document.createRange(),r=t.childElementCount>0?t.lastChild:t;o.setStart(r,1),o.setEnd(r,1),n.removeAllRanges(),n.addRange(o)}}},checkforMention(e){if(!this.currentContent.includes("@")||this.justReplaced){this.showMentionPop=!1,this.currentMentionSearch="";return}const n=e.get(pn),{state:o}=n,{selection:r}=o;if(!r)return;const s=o.doc.textBetween(0,r.to," ").match(/@([\w-_]+)$/);if(!s){this.showMentionPop=!1,this.currentMentionSearch="";return}let l=s[1];if(!l||l.length<3){if(this.defaultMentions&&this.defaultMentions.length){let a=l.toLowerCase(),c=this.defaultMentions.filter(u=>u.username.toLowerCase().includes(a)||u.display_name.toLowerCase().includes(a));c.length&&(this.currentMentionSearch=l,this.mentionResults=c,this.showMentionPop=!0)}return}if(this.currentMentionSearch&&(this.currentMentionSearch=l,this.searchingMention))return!1;if(l=="everyone"&&this.isAdmin()){this.mentionResults=[{username:"everyone",display_name:this.$t("Tag Everyone")}],this.showMentionPop=!0;return}this.searchingMention=!0,this.currentMentionSearch=l,this.$get("members",{mention:this.currentMentionSearch,...this.mentionQuery}).then(a=>{this.mentionResults=a.members.data,this.showMentionPop=!0}).finally(()=>{this.searchingMention=!1})},addMention(e){this.disable_mention||(this.currentContent=this.currentContent.replace("@"+this.currentMentionSearch,e+"&nbsp;"),this.editor.action(jve(this.currentContent)),this.focusOnEditor(),this.showMentionPop=!1,this.currentMentionSearch="",this.justReplaced=!0,setTimeout(()=>{this.justReplaced=!1},2e3))},async handleFileUpload(e){const t=e.files;for(let n=0;n<t.length;n++){const o=t.item(n);o&&o.type.includes("image")&&this.$emit("handleMediaUpload",o)}return[]}},mounted(){this.initEditor()},beforeUnmount(){this.editor&&this.editor.destroy()}},x3e={style:{position:"relative"},class:"fcom_md_editor"},C3e={ref:"crepe_editor_vue",class:"crepe-editor feed_md_content fcom_md_seditor_wrapper"},S3e={class:"fcom_mention_pop_wrap"},$3e=g("span",{style:{}},null,-1),E3e={key:0},T3e={key:0},M3e=["onClick"],A3e=["src"],I3e={key:1},O3e={key:0};function P3e(e,t,n,o,r,i){const s=z("ProsemirrorAdapterProvider"),l=z("MilkdownProvider"),a=po;return _(),k(Q,null,[y(l,null,{default:x(()=>[y(s,null,{default:x(()=>[g("div",x3e,[g("div",C3e,null,512)])]),_:1})]),_:1}),g("div",S3e,[y(a,{"popper-class":"fcom_mention_pop",ref:"mentionPopoverRef",placement:"bottom",visible:r.showMentionPop,width:300,persistent:!1},{reference:x(()=>[$3e]),default:x(()=>[r.justReplaced?O("",!0):(_(),k("div",E3e,[r.mentionResults.length?(_(),k("ul",T3e,[(_(!0),k(Q,null,Te(r.mentionResults,c=>(_(),k("li",{key:c.user_id,onClick:u=>i.addMention("@"+c.username)},[c.avatar?(_(),k("img",{key:0,alt:"",src:c.avatar},null,8,A3e)):O("",!0),g("span",null,M(c.display_name)+" (@"+M(c.username)+")",1)],8,M3e))),128))])):r.searchingMention?O("",!0):(_(),k("div",I3e,[g("p",null,[te(M(e.$t("No results found. Please search by username"))+" ",1),e.isAdmin()&&n.hasEveyoneMention?(_(),k("span",O3e,M(e.$t("You can use @everyone to tag everyone.")),1)):O("",!0)])]))]))]),_:1},8,["visible"])])],64)}const C4=de(k3e,[["render",P3e]]);var S4="emoji-mart";const N3e=JSON;var UN=typeof window<"u"&&"localStorage"in window;let b2,y2;function L3e(e){e||(e={}),b2=e.getter,y2=e.setter}function R3e(e){S4=e}function F3e(e){for(let t in e){let n=e[t];WN(t,n)}}function WN(e,t){if(y2)y2(e,t);else{if(!UN)return;try{window.localStorage[`${S4}.${e}`]=N3e.stringify(t)}catch{}}}function D3e(e){if(b2)return b2(e);if(!UN)return;try{var t=window.localStorage[`${S4}.${e}`]}catch{return}if(t)return JSON.parse(t)}const od={update:F3e,set:WN,get:D3e,setNamespace:R3e,setHandlers:L3e},Xv={name:"a",unified:"b",non_qualified:"c",has_img_apple:"d",has_img_google:"e",has_img_twitter:"f",has_img_facebook:"h",keywords:"j",sheet:"k",emoticons:"l",text:"m",short_names:"n",added_in:"o"},qN=e=>{const t=[];var n=(o,r)=>{o&&(Array.isArray(o)?o:[o]).forEach(i=>{(r?i.split(/[-|_|\s]+/):[i]).forEach(s=>{s=s.toLowerCase(),t.indexOf(s)==-1&&t.push(s)})})};return n(e.short_names,!0),n(e.name,!0),n(e.keywords,!1),n(e.emoticons,!1),t.join(",")};function KN(e){var t=Object.getOwnPropertyNames(e);for(let n of t){let o=e[n];e[n]=o&&typeof o=="object"?KN(o):o}return Object.freeze(e)}const B3e=e=>{if(!e.compressed)return e;e.compressed=!1;for(let t in e.emojis){let n=e.emojis[t];for(let o in Xv)n[o]=n[Xv[o]],delete n[Xv[o]];n.short_names||(n.short_names=[]),n.short_names.unshift(t),n.sheet_x=n.sheet[0],n.sheet_y=n.sheet[1],delete n.sheet,n.text||(n.text=""),n.added_in||(n.added_in=6),n.added_in=n.added_in.toFixed(1),n.search=qN(n)}return e=KN(e),e},Qv=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart","hankey"];let wr,$4,w2={};function GN(){$4=!0,wr=od.get("frequently")}function z3e(e){$4||GN();var{id:t}=e;wr||(wr=w2),wr[t]||(wr[t]=0),wr[t]+=1,od.set("last",t),od.set("frequently",wr)}function V3e(e){if($4||GN(),!wr){w2={};const s=[];let l=Math.min(e,Qv.length);for(let a=0;a<l;a++)w2[Qv[a]]=parseInt((l-a)/4,10)+1,s.push(Qv[a]);return s}const t=e,n=[];for(let s in wr)wr.hasOwnProperty(s)&&n.push(s);const r=n.sort((s,l)=>wr[s]-wr[l]).reverse().slice(0,t),i=od.get("last");return i&&r.indexOf(i)==-1&&(r.pop(),r.push(i)),r}const k2={add:z3e,get:V3e},j3e={activity:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"/></svg>',custom:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><g transform="translate(2.000000, 1.000000)"><rect id="Rectangle" x="8" y="0" width="3" height="21" rx="1.5"></rect><rect id="Rectangle" transform="translate(9.843, 10.549) rotate(60) translate(-9.843, -10.549) " x="8.343" y="0.049" width="3" height="21" rx="1.5"></rect><rect id="Rectangle" transform="translate(9.843, 10.549) rotate(-60) translate(-9.843, -10.549) " x="8.343" y="0.049" width="3" height="21" rx="1.5"></rect></g></svg>',flags:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"/></svg>',foods:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"/></svg>',nature:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"/><path d="M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"/></svg>',objects:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"/><path d="M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"/></svg>',smileys:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"/><path d="M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"/></svg>',people:'<svg xmlns:svg="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24"> <path id="path3814" d="m 3.3591089,21.17726 c 0.172036,0.09385 4.265994,2.29837 8.8144451,2.29837 4.927767,0 8.670894,-2.211883 8.82782,-2.306019 0.113079,-0.06785 0.182268,-0.190051 0.182267,-0.321923 0,-3.03119 -0.929494,-5.804936 -2.617196,-7.810712 -1.180603,-1.403134 -2.661918,-2.359516 -4.295699,-2.799791 4.699118,-2.236258 3.102306,-9.28617162 -2.097191,-9.28617162 -5.1994978,0 -6.7963103,7.04991362 -2.097192,9.28617162 -1.6337821,0.440275 -3.1150971,1.396798 -4.2956991,2.799791 -1.687703,2.005776 -2.617196,4.779522 -2.617196,7.810712 1.2e-6,0.137378 0.075039,0.263785 0.195641,0.329572 z M 8.0439319,5.8308783 C 8.0439309,2.151521 12.492107,0.30955811 15.093491,2.9109411 17.694874,5.5123241 15.852911,9.9605006 12.173554,9.9605 9.8938991,9.9579135 8.0465186,8.1105332 8.0439319,5.8308783 Z m -1.688782,7.6894977 c 1.524535,-1.811449 3.5906601,-2.809035 5.8184041,-2.809035 2.227744,0 4.293869,0.997586 5.818404,2.809035 1.533639,1.822571 2.395932,4.339858 2.439152,7.108301 -0.803352,0.434877 -4.141636,2.096112 -8.257556,2.096112 -3.8062921,0 -7.3910861,-1.671043 -8.2573681,-2.104981 0.04505,-2.765017 0.906968,-5.278785 2.438964,-7.099432 z" /> <path id="path3816" d="M 12.173828 0.38867188 C 9.3198513 0.38867187 7.3770988 2.3672285 6.8652344 4.6308594 C 6.4218608 6.5916015 7.1153562 8.7676117 8.9648438 10.126953 C 7.6141249 10.677376 6.3550511 11.480944 5.3496094 12.675781 C 3.5629317 14.799185 2.6015625 17.701475 2.6015625 20.847656 C 2.6015654 21.189861 2.7894276 21.508002 3.0898438 21.671875 C 3.3044068 21.788925 7.4436239 24.039062 12.173828 24.039062 C 17.269918 24.039062 21.083568 21.776786 21.291016 21.652344 C 21.57281 21.483266 21.746097 21.176282 21.746094 20.847656 C 21.746094 17.701475 20.78277 14.799185 18.996094 12.675781 C 17.990455 11.480591 16.733818 10.675362 15.382812 10.125 C 17.231132 8.7655552 17.925675 6.5910701 17.482422 4.6308594 C 16.970557 2.3672285 15.027805 0.38867188 12.173828 0.38867188 z M 12.792969 2.3007812 C 13.466253 2.4161792 14.125113 2.7383941 14.695312 3.3085938 C 15.835712 4.4489931 15.985604 5.9473549 15.46875 7.1953125 C 14.951896 8.4432701 13.786828 9.3984378 12.173828 9.3984375 C 10.197719 9.3961954 8.607711 7.806187 8.6054688 5.8300781 C 8.6054683 4.2170785 9.5606362 3.0520102 10.808594 2.5351562 C 11.432573 2.2767293 12.119685 2.1853833 12.792969 2.3007812 z M 12.173828 11.273438 C 14.233647 11.273438 16.133674 12.185084 17.5625 13.882812 C 18.93069 15.508765 19.698347 17.776969 19.808594 20.283203 C 18.807395 20.800235 15.886157 22.162109 12.173828 22.162109 C 8.7614632 22.162109 5.6245754 20.787069 4.5390625 20.265625 C 4.6525896 17.766717 5.4203315 15.504791 6.7851562 13.882812 C 8.2139827 12.185084 10.11401 11.273438 12.173828 11.273438 z " /> </svg>',places:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"/><path d="M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"/></svg>',recent:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"/><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"/></svg>',symbols:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"/></svg>'},H3e={props:{i18n:{type:Object,required:!0},color:{type:String},categories:{type:Array,required:!0},activeCategory:{type:Object,default(){return{}}}},emits:["click"],created(){this.svgs=j3e}},U3e={role:"tablist",class:"emoji-mart-anchors"},W3e=["aria-label","aria-selected","data-title","onClick"],q3e=["innerHTML"];function K3e(e,t,n,o,r,i){return _(),k("div",U3e,[(_(!0),k(Q,null,Te(n.categories,s=>(_(),k("button",{role:"tab",type:"button","aria-label":s.name,"aria-selected":s.id==n.activeCategory.id,key:s.id,class:R({"emoji-mart-anchor":!0,"emoji-mart-anchor-selected":s.id==n.activeCategory.id}),style:Be({color:s.id==n.activeCategory.id?n.color:""}),"data-title":n.i18n.categories[s.id],onClick:l=>e.$emit("click",s)},[g("div",{"aria-hidden":"true",innerHTML:e.svgs[s.id]},null,8,q3e),g("span",{"aria-hidden":"true",class:"emoji-mart-anchor-bar",style:Be({backgroundColor:n.color})},null,4)],14,W3e))),128))])}const G3e=de(H3e,[["render",K3e]]),Y3e=String,Z3e=Y3e.fromCodePoint||function(){var t=16384,n=[],o,r,i=-1,s=arguments.length;if(!s)return"";for(var l="";++i<s;){var a=Number(arguments[i]);if(!isFinite(a)||a<0||a>1114111||Math.floor(a)!=a)throw RangeError("Invalid code point: "+a);a<=65535?n.push(a):(a-=65536,o=(a>>10)+55296,r=a%1024+56320,n.push(o,r)),(i+1===s||n.length>t)&&(l+=String.fromCharCode.apply(null,n),n.length=0)}return l};function J3e(e){var t=e.split("-"),n=t.map(o=>`0x${o}`);return Z3e.apply(null,n)}function GS(e){return e.reduce((t,n)=>(t.indexOf(n)===-1&&t.push(n),t),[])}function X3e(e,t){const n=GS(e),o=GS(t);return n.filter(r=>o.indexOf(r)>=0)}function YN(e,t){var n={};for(let o in e){let r=e[o],i=r;t.hasOwnProperty(o)&&(i=t[o]),typeof i=="object"&&(i=YN(r,i)),n[o]=i}return n}function Q3e(){if(typeof document>"u")return 0;const e=document.createElement("div");e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}const eke=61,tke=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,YS=["1F3FA","1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"];class nke{constructor(t,{emojisToShowFilter:n,include:o,exclude:r,custom:i,recent:s,recentLength:l=20}={}){this._data=B3e(t),this._emojisFilter=n||null,this._include=o||null,this._exclude=r||null,this._custom=i||[],this._recent=s||k2.get(l),this._emojis={},this._nativeEmojis={},this._emoticons={},this._categories=[],this._recentCategory={id:"recent",name:"Recent",emojis:[]},this._customCategory={id:"custom",name:"Custom",emojis:[]},this._searchIndex={},this.buildIndex(),Object.freeze(this)}buildIndex(){let t=this._data.categories;if(this._include&&(t=t.filter(n=>this._include.includes(n.id)),t=t.sort((n,o)=>{const r=this._include.indexOf(n.id),i=this._include.indexOf(o.id);return r<i?-1:r>i?1:0})),t.forEach(n=>{if(!this.isCategoryNeeded(n.id))return;let o={id:n.id,name:n.name,emojis:[]};n.emojis.forEach(r=>{let i=this.addEmoji(r);i&&o.emojis.push(i)}),o.emojis.length&&this._categories.push(o)}),this.isCategoryNeeded("custom")){if(this._custom.length>0)for(let n of this._custom)this.addCustomEmoji(n);this._customCategory.emojis.length&&this._categories.push(this._customCategory)}this.isCategoryNeeded("recent")&&(this._recent.length&&this._recent.map(n=>{for(let o of this._customCategory.emojis)if(o.id===n){this._recentCategory.emojis.push(o);return}this.hasEmoji(n)&&this._recentCategory.emojis.push(this.emoji(n))}),this._recentCategory.emojis.length&&this._categories.unshift(this._recentCategory))}findEmoji(t,n){let o=t.match(tke);if(o&&(t=o[1],o[2]&&(n=parseInt(o[2],10))),this._data.aliases.hasOwnProperty(t)&&(t=this._data.aliases[t]),this._emojis.hasOwnProperty(t)){let r=this._emojis[t];return n?r.getSkin(n):r}return this._nativeEmojis.hasOwnProperty(t)?this._nativeEmojis[t]:null}categories(){return this._categories}emoji(t){this._data.aliases.hasOwnProperty(t)&&(t=this._data.aliases[t]);let n=this._emojis[t];if(!n)throw new Error("Can not find emoji by id: "+t);return n}firstEmoji(){let t=this._emojis[Object.keys(this._emojis)[0]];if(!t)throw new Error("Can not get first emoji");return t}hasEmoji(t){return this._data.aliases.hasOwnProperty(t)&&(t=this._data.aliases[t]),!!this._emojis[t]}nativeEmoji(t){return this._nativeEmojis.hasOwnProperty(t)?this._nativeEmojis[t]:null}search(t,n){if(n||(n=75),!t.length)return null;if(t=="-"||t=="-1")return[this.emoji("-1")];let o=t.toLowerCase().split(/[\s|,|\-|_]+/),r=[];o.length>2&&(o=[o[0],o[1]]),r=o.map(s=>{let l=this._emojis,a=this._searchIndex,c=0;for(let u=0;u<s.length;u++){const d=s[u];if(c++,a[d]||(a[d]={}),a=a[d],!a.results){let f={};a.results=[],a.emojis={};for(let p in l){let h=l[p],m=h._data.search,b=s.substr(0,c),v=m.indexOf(b);if(v!=-1){let E=v+1;b==p&&(E=0),a.results.push(h),a.emojis[p]=h,f[p]=E}}a.results.sort((p,h)=>{var m=f[p.id],b=f[h.id];return m-b})}l=a.emojis}return a.results}).filter(s=>s);var i=null;return r.length>1?i=X3e.apply(null,r):r.length?i=r[0]:i=[],i&&i.length>n&&(i=i.slice(0,n)),i}addCustomEmoji(t){let n=Object.assign({},t,{id:t.short_names[0],custom:!0});n.search||(n.search=qN(n));let o=new Zg(n);return this._emojis[o.id]=o,this._customCategory.emojis.push(o),o}addEmoji(t){let n=this._data.emojis[t];if(!this.isEmojiNeeded(n))return!1;let o=new Zg(n);if(this._emojis[t]=o,o.native&&(this._nativeEmojis[o.native]=o),o._skins)for(let r in o._skins){let i=o._skins[r];i.native&&(this._nativeEmojis[i.native]=i)}return o.emoticons&&o.emoticons.forEach(r=>{this._emoticons[r]||(this._emoticons[r]=t)}),o}isCategoryNeeded(t){let n=this._include&&this._include.length?this._include.indexOf(t)>-1:!0,o=this._exclude&&this._exclude.length?this._exclude.indexOf(t)>-1:!1;return!(!n||o)}isEmojiNeeded(t){return this._emojisFilter?this._emojisFilter(t):!0}}class Zg{constructor(t){if(this._data=Object.assign({},t),this._skins=null,this._data.skin_variations){this._skins=[];for(var n in YS){let o=YS[n],r=this._data.skin_variations[o],i=Object.assign({},t);for(let s in r)i[s]=r[s];delete i.skin_variations,i.skin_tone=parseInt(n)+1,this._skins.push(new Zg(i))}}this._sanitized=oke(this._data);for(let o in this._sanitized)this[o]=this._sanitized[o];this.short_names=this._data.short_names,this.short_name=this._data.short_names[0],Object.freeze(this)}getSkin(t){return t&&t!="native"&&this._skins?this._skins[t-1]:this}getPosition(){let t=eke-1,n=+(100/t*this._data.sheet_x).toFixed(2),o=+(100/t*this._data.sheet_y).toFixed(2);return`${n}% ${o}%`}ariaLabel(){return[this.native].concat(this.short_names).filter(Boolean).join(", ")}}class ZN{constructor(t,n,o,r,i,s,l){this._emoji=t,this._native=r,this._skin=n,this._set=o,this._fallback=i,this.canRender=this._canRender(),this.cssClass=this._cssClass(),this.cssStyle=this._cssStyle(l),this.content=this._content(),this.title=s===!0?t.short_name:null,this.ariaLabel=t.ariaLabel(),Object.freeze(this)}getEmoji(){return this._emoji.getSkin(this._skin)}_canRender(){return this._isCustom()||this._isNative()||this._hasEmoji()||this._fallback}_cssClass(){return["emoji-set-"+this._set,"emoji-type-"+this._emojiType()]}_cssStyle(t){let n={};return this._isCustom()?n={backgroundImage:"url("+this.getEmoji()._data.imageUrl+")",backgroundSize:"100%",width:t+"px",height:t+"px"}:this._hasEmoji()&&!this._isNative()&&(n={backgroundPosition:this.getEmoji().getPosition()}),t&&(this._isNative()?n=Object.assign(n,{fontSize:Math.round(t*.95*10)/10+"px"}):n=Object.assign(n,{width:t+"px",height:t+"px"})),n}_content(){return this._isCustom()?"":this._isNative()?this.getEmoji().native:this._hasEmoji()?"":this._fallback?this._fallback(this.getEmoji()):null}_isNative(){return this._native}_isCustom(){return this.getEmoji().custom}_hasEmoji(){if(!this.getEmoji()._data)return!1;const t=this.getEmoji()._data["has_img_"+this._set];return t===void 0?!0:t}_emojiType(){return this._isCustom()?"custom":this._isNative()?"native":this._hasEmoji()?"image":"fallback"}}function oke(e){var{name:t,short_names:n,skin_tone:o,skin_variations:r,emoticons:i,unified:s,custom:l,imageUrl:a}=e,c=e.id||n[0],u=`:${c}:`;return l?{id:c,name:t,colons:u,emoticons:i,custom:l,imageUrl:a}:(o&&(u+=`:skin-tone-${o}:`),{id:c,name:t,colons:u,emoticons:i,unified:s.toLowerCase(),skin:o||(r?1:null),native:J3e(s)})}const rke={native:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!1},fallback:{type:Function},skin:{type:Number,default:1},set:{type:String,default:"apple"},emoji:{type:[String,Object],required:!0},size:{type:Number,default:null},tag:{type:String,default:"span"}},ike={perLine:{type:Number,default:9},maxSearchResults:{type:Number,default:75},emojiSize:{type:Number,default:24},title:{type:String,default:"Emoji Mart™"},emoji:{type:String,default:"department_store"},color:{type:String,default:"#ae65c5"},set:{type:String,default:"apple"},skin:{type:Number,default:null},defaultSkin:{type:Number,default:1},native:{type:Boolean,default:!1},emojiTooltip:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},i18n:{type:Object,default(){return{}}},showPreview:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showCategories:{type:Boolean,default:!0},showSkinTones:{type:Boolean,default:!0},infiniteScroll:{type:Boolean,default:!0},pickerStyles:{type:Object,default(){return{}}}},ske={props:{...rke,data:{type:Object,required:!0}},emits:["click","mouseenter","mouseleave"],computed:{view(){return new ZN(this.emojiObject,this.skin,this.set,this.native,this.fallback,this.tooltip,this.size)},sanitizedData(){return this.emojiObject._sanitized},title(){return this.tooltip?this.emojiObject.short_name:null},emojiObject(){return typeof this.emoji=="string"?this.data.findEmoji(this.emoji):this.emoji}},created(){},methods:{onClick(){this.$emit("click",this.emojiObject)},onMouseEnter(){this.$emit("mouseenter",this.emojiObject)},onMouseLeave(){this.$emit("mouseleave",this.emojiObject)}}};function lke(e,t,n,o,r,i){return i.view.canRender?(_(),L(Et(e.tag),{key:0,title:i.view.title,"aria-label":i.view.ariaLabel,"data-title":i.title,class:"emoji-mart-emoji",onMouseenter:i.onMouseEnter,onMouseleave:i.onMouseLeave,onClick:i.onClick},{default:x(()=>[g("span",{class:R(i.view.cssClass),style:Be(i.view.cssStyle)},M(i.view.content),7)]),_:1},40,["title","aria-label","data-title","onMouseenter","onMouseleave","onClick"])):O("",!0)}const JN=de(ske,[["render",lke]]),ake={props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},id:{type:String,required:!0},name:{type:String,required:!0},emojis:{type:Array},emojiProps:{type:Object,required:!0}},methods:{activeClass:function(e){return!this.emojiProps.selectedEmoji||!this.emojiProps.selectedEmojiCategory?"":this.emojiProps.selectedEmoji.id==e.id&&this.emojiProps.selectedEmojiCategory.id==this.id?"emoji-mart-emoji-selected":""}},computed:{isVisible(){return!!this.emojis},isSearch(){return this.name=="Search"},hasResults(){return this.emojis.length>0},emojiObjects(){return this.emojis.map(e=>{let t=e,n=new ZN(e,this.emojiProps.skin,this.emojiProps.set,this.emojiProps.native,this.emojiProps.fallback,this.emojiProps.emojiTooltip,this.emojiProps.emojiSize);return{emojiObject:t,emojiView:n}})}},components:{Emoji:JN}},cke=["aria-label"],uke={class:"emoji-mart-category-label"},dke={class:"emoji-mart-category-label"},fke=["aria-label","data-title","title","onMouseenter","onMouseleave","onClick"],pke={key:0},hke={class:"emoji-mart-no-results-label"};function mke(e,t,n,o,r,i){const s=z("emoji");return i.isVisible&&(i.isSearch||i.hasResults)?(_(),k("section",{key:0,class:R({"emoji-mart-category":!0,"emoji-mart-no-results":!i.hasResults}),"aria-label":n.i18n.categories[n.id]},[g("div",uke,[g("h3",dke,M(n.i18n.categories[n.id]),1)]),(_(!0),k(Q,null,Te(i.emojiObjects,({emojiObject:l,emojiView:a})=>(_(),k(Q,null,[a.canRender?(_(),k("button",{"aria-label":a.ariaLabel,role:"option","aria-selected":"false","aria-posinset":"1","aria-setsize":"1812",type:"button","data-title":l.short_name,key:l.id,title:a.title,class:R(["emoji-mart-emoji",i.activeClass(l)]),onMouseenter:c=>n.emojiProps.onEnter(a.getEmoji()),onMouseleave:c=>n.emojiProps.onLeave(a.getEmoji()),onClick:c=>n.emojiProps.onClick(a.getEmoji())},[g("span",{class:R(a.cssClass),style:Be(a.cssStyle)},M(a.content),7)],42,fke)):O("",!0)],64))),256)),i.hasResults?O("",!0):(_(),k("div",pke,[y(s,{data:n.data,emoji:"sleuth_or_spy",native:n.emojiProps.native,skin:n.emojiProps.skin,set:n.emojiProps.set},null,8,["data","native","skin","set"]),g("div",hke,M(n.i18n.notfound),1)]))],10,cke)):O("",!0)}const _ke=de(ake,[["render",mke]]),gke={props:{skin:{type:Number,required:!0}},emits:["change"],data(){return{opened:!1}},methods:{onClick(e){this.opened&&e!=this.skin&&this.$emit("change",e),this.opened=!this.opened}}},vke=["onClick"];function bke(e,t,n,o,r,i){return _(),k("div",{class:R({"emoji-mart-skin-swatches":!0,"emoji-mart-skin-swatches-opened":r.opened})},[(_(),k(Q,null,Te(6,s=>g("span",{key:s,class:R({"emoji-mart-skin-swatch":!0,"emoji-mart-skin-swatch-selected":n.skin==s})},[g("span",{class:R("emoji-mart-skin emoji-mart-skin-tone-"+s),onClick:l=>i.onClick(s)},null,10,vke)],2)),64))],2)}const yke=de(gke,[["render",bke]]),wke={props:{data:{type:Object,required:!0},title:{type:String,required:!0},emoji:{type:[String,Object]},idleEmoji:{type:[String,Object],required:!0},showSkinTones:{type:Boolean,default:!0},emojiProps:{type:Object,required:!0},skinProps:{type:Object,required:!0},onSkinChange:{type:Function,required:!0}},computed:{emojiData(){return this.emoji?this.emoji:{}},emojiShortNames(){return this.emojiData.short_names},emojiEmoticons(){return this.emojiData.emoticons}},components:{Emoji:JN,Skins:yke}},kke={class:"emoji-mart-preview"},xke={class:"emoji-mart-preview-emoji"},Cke={class:"emoji-mart-preview-data"},Ske={class:"emoji-mart-preview-name"},$ke={class:"emoji-mart-preview-shortnames"},Eke={class:"emoji-mart-preview-emoticons"},Tke={class:"emoji-mart-preview-emoji"},Mke={class:"emoji-mart-preview-data"},Ake={class:"emoji-mart-title-label"},Ike={key:0,class:"emoji-mart-preview-skins"};function Oke(e,t,n,o,r,i){const s=z("emoji"),l=z("skins");return _(),k("div",kke,[n.emoji?(_(),k(Q,{key:0},[g("div",xke,[y(s,{data:n.data,emoji:n.emoji,native:n.emojiProps.native,skin:n.emojiProps.skin,set:n.emojiProps.set},null,8,["data","emoji","native","skin","set"])]),g("div",Cke,[g("div",Ske,M(n.emoji.name),1),g("div",$ke,[(_(!0),k(Q,null,Te(i.emojiShortNames,a=>(_(),k("span",{key:a,class:"emoji-mart-preview-shortname"},":"+M(a)+":",1))),128))]),g("div",Eke,[(_(!0),k(Q,null,Te(i.emojiEmoticons,a=>(_(),k("span",{key:a,class:"emoji-mart-preview-emoticon"},M(a),1))),128))])])],64)):(_(),k(Q,{key:1},[g("div",Tke,[y(s,{data:n.data,emoji:n.idleEmoji,native:n.emojiProps.native,skin:n.emojiProps.skin,set:n.emojiProps.set},null,8,["data","emoji","native","skin","set"])]),g("div",Mke,[g("span",Ake,M(n.title),1)]),n.showSkinTones?(_(),k("div",Ike,[y(l,{skin:n.skinProps.skin,onChange:t[0]||(t[0]=a=>n.onSkinChange(a))},null,8,["skin"])])):O("",!0)],64))])}const Pke=de(wke,[["render",Oke]]),Nke={props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},autoFocus:{type:Boolean,default:!1},onSearch:{type:Function,required:!0},onArrowLeft:{type:Function,required:!1},onArrowRight:{type:Function,required:!1},onArrowDown:{type:Function,required:!1},onArrowUp:{type:Function,required:!1},onEnter:{type:Function,required:!1}},emits:["search","enter","arrowUp","arrowDown","arrowRight","arrowLeft"],data(){return{value:""}},computed:{emojiIndex(){return this.data}},watch:{value(){this.$emit("search",this.value)}},methods:{clear(){this.value=""}},mounted(){let e=this.$el.querySelector("input");this.autoFocus&&e.focus()}},Lke={class:"emoji-mart-search"},Rke=["placeholder"],Fke=g("span",{class:"hidden",id:"emoji-picker-search-description"},"Use the left, right, up and down arrow keys to navigate the emoji search results.",-1);function Dke(e,t,n,o,r,i){return _(),k("div",Lke,[ze(g("input",{type:"text",placeholder:n.i18n.search,role:"textbox","aria-autocomplete":"list","aria-owns":"emoji-mart-list","aria-label":"Search for an emoji","aria-describedby":"emoji-mart-search-description",onKeydown:[t[0]||(t[0]=Ut(s=>e.$emit("arrowLeft",s),["left"])),t[1]||(t[1]=Ut(()=>e.$emit("arrowRight"),["right"])),t[2]||(t[2]=Ut(()=>e.$emit("arrowDown"),["down"])),t[3]||(t[3]=Ut(s=>e.$emit("arrowUp",s),["up"])),t[4]||(t[4]=Ut(()=>e.$emit("enter"),["enter"]))],"onUpdate:modelValue":t[5]||(t[5]=s=>r.value=s)},null,40,Rke),[[Iu,r.value]]),Fke])}const Bke=de(Nke,[["render",Dke]]);var zke=typeof window<"u";zke&&function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(o,r){var i=new Date().getTime(),s=Math.max(0,16-(i-e)),l=window.setTimeout(function(){o(i+s)},s);return e=i+s,l}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(o){clearTimeout(o)})}();class Vke{constructor(t){this._vm=t,this._data=t.data,this._perLine=t.perLine,this._categories=[],this._categories.push(...this._data.categories()),this._categories=this._categories.filter(n=>n.emojis.length>0),this._categories[0].first=!0,Object.freeze(this._categories),this.activeCategory=this._categories[0],this.searchEmojis=null,this.previewEmoji=null,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=-1}onScroll(){const n=this._vm.$refs.scroll.scrollTop;let o=this.filteredCategories[0];for(let r=0,i=this.filteredCategories.length;r<i;r++){let s=this.filteredCategories[r],l=this._vm.getCategoryComponent(r);if(l&&l.$el.offsetTop-50>n)break;o=s}this.activeCategory=o}get allCategories(){return this._categories}get filteredCategories(){return this.searchEmojis?[{id:"search",name:"Search",emojis:this.searchEmojis}]:this._categories.filter(t=>t.emojis.length>0)}get previewEmojiCategory(){return this.previewEmojiCategoryIdx>=0?this.filteredCategories[this.previewEmojiCategoryIdx]:null}onAnchorClick(t){if(this.searchEmojis)return;let n=this.filteredCategories.indexOf(t),o=this._vm.getCategoryComponent(n),r=()=>{if(o){let i=o.$el.offsetTop;t.first&&(i=0),this._vm.$refs.scroll.scrollTop=i}};this._vm.infiniteScroll?r():this.activeCategory=this.filteredCategories[n]}onSearch(t){let n=this._data.search(t,this.maxSearchResults);this.searchEmojis=n,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=0,this.updatePreviewEmoji()}onEmojiEnter(t){this.previewEmoji=t,this.previewEmojiIdx=-1,this.previewEmojiCategoryIdx=-1}onEmojiLeave(t){this.previewEmoji=null}onArrowLeft(){this.previewEmojiIdx>0?this.previewEmojiIdx-=1:(this.previewEmojiCategoryIdx-=1,this.previewEmojiCategoryIdx<0?this.previewEmojiCategoryIdx=0:this.previewEmojiIdx=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length-1),this.updatePreviewEmoji()}onArrowRight(){this.previewEmojiIdx<this.emojisLength(this.previewEmojiCategoryIdx)-1?this.previewEmojiIdx+=1:(this.previewEmojiCategoryIdx+=1,this.previewEmojiCategoryIdx>=this.filteredCategories.length?this.previewEmojiCategoryIdx=this.filteredCategories.length-1:this.previewEmojiIdx=0),this.updatePreviewEmoji()}onArrowDown(){if(this.previewEmojiIdx==-1)return this.onArrowRight();const t=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length;let n=this._perLine;this.previewEmojiIdx+n>t&&(n=t%this._perLine);for(let o=0;o<n;o++)this.onArrowRight();this.updatePreviewEmoji()}onArrowUp(){let t=this._perLine;this.previewEmojiIdx-t<0&&(this.previewEmojiCategoryIdx>0?t=this.filteredCategories[this.previewEmojiCategoryIdx-1].emojis.length%this._perLine:t=0);for(let n=0;n<t;n++)this.onArrowLeft();this.updatePreviewEmoji()}updatePreviewEmoji(){this.previewEmoji=this.filteredCategories[this.previewEmojiCategoryIdx].emojis[this.previewEmojiIdx],this._vm.$nextTick(()=>{const t=this._vm.$refs.scroll,n=t.querySelector(".emoji-mart-emoji-selected"),o=t.offsetTop-t.offsetHeight;n&&n.offsetTop+n.offsetHeight>o+t.scrollTop&&(t.scrollTop+=n.offsetHeight),n&&n.offsetTop<t.scrollTop&&(t.scrollTop-=n.offsetHeight)})}emojisLength(t){return t==-1?0:this.filteredCategories[t].emojis.length}}const jke={search:"Search",notfound:"No Emoji Found",categories:{search:"Search Results",recent:"Frequently Used",smileys:"Smileys & Emotion",people:"People & Body",nature:"Animals & Nature",foods:"Food & Drink",activity:"Activity",places:"Travel & Places",objects:"Objects",symbols:"Symbols",flags:"Flags",custom:"Custom"}},Hke={props:{...ike,data:{type:Object,required:!0}},emits:["select","skin-change"],data(){return{activeSkin:this.skin||od.get("skin")||this.defaultSkin,view:new Vke(this)}},computed:{customStyles(){return{width:this.calculateWidth+"px",...this.pickerStyles}},emojiProps(){return{native:this.native,skin:this.activeSkin,set:this.set,emojiTooltip:this.emojiTooltip,emojiSize:this.emojiSize,selectedEmoji:this.view.previewEmoji,selectedEmojiCategory:this.view.previewEmojiCategory,onEnter:this.onEmojiEnter.bind(this),onLeave:this.onEmojiLeave.bind(this),onClick:this.onEmojiClick.bind(this)}},skinProps(){return{skin:this.activeSkin}},calculateWidth(){return this.perLine*(this.emojiSize+12)+12+2+Q3e()},filteredCategories(){return this.view.filteredCategories},mergedI18n(){return Object.freeze(YN(jke,this.i18n))},idleEmoji(){try{return this.data.emoji(this.emoji)}catch(e){return console.error("Default preview emoji `"+this.emoji+"` is not available, check the Picker `emoji` property"),console.error(e),this.data.firstEmoji()}}},watch:{skin(){this.onSkinChange(this.skin)}},methods:{onScroll(){this.infiniteScroll&&!this.waitingForPaint&&(this.waitingForPaint=!0,window.requestAnimationFrame(this.onScrollPaint.bind(this)))},onScrollPaint(){this.waitingForPaint=!1,this.view.onScroll()},onAnchorClick(e){this.view.onAnchorClick(e)},onSearch(e){this.view.onSearch(e)},onEmojiEnter(e){this.view.onEmojiEnter(e)},onEmojiLeave(e){this.view.onEmojiLeave(e)},onArrowLeft(e){const t=this.view.previewEmojiIdx;this.view.onArrowLeft(),e&&this.view.previewEmojiIdx!==t&&e.preventDefault()},onArrowRight(){this.view.onArrowRight()},onArrowDown(){this.view.onArrowDown()},onArrowUp(e){this.view.onArrowUp(),e.preventDefault()},onEnter(){this.view.previewEmoji&&(this.$emit("select",this.view.previewEmoji),k2.add(this.view.previewEmoji))},onEmojiClick(e){this.$emit("select",e),k2.add(e)},onTextSelect(e){e.stopPropagation()},onSkinChange(e){this.activeSkin=e,od.update({skin:e}),this.$emit("skin-change",e)},getCategoryComponent(e){let t=this.$refs["categories_"+e];return t&&"0"in t?t[0]:t}},components:{Anchors:G3e,Category:_ke,Preview:Pke,Search:Bke}},Uke={key:0,class:"emoji-mart-bar emoji-mart-bar-anchors"},Wke={id:"emoji-mart-list",ref:"scrollContent",role:"listbox","aria-expanded":"true"},qke={key:0,class:"emoji-mart-bar emoji-mart-bar-preview"};function Kke(e,t,n,o,r,i){const s=z("anchors"),l=z("search"),a=z("category"),c=z("preview");return _(),k("section",{class:"emoji-mart emoji-mart-static",style:Be(i.customStyles)},[e.showCategories?(_(),k("div",Uke,[y(s,{data:n.data,i18n:i.mergedI18n,color:e.color,categories:r.view.allCategories,"active-category":r.view.activeCategory,onClick:i.onAnchorClick},null,8,["data","i18n","color","categories","active-category","onClick"])])):O("",!0),le(e.$slots,"searchTemplate",{data:n.data,i18n:e.i18n,autoFocus:e.autoFocus,onSearch:i.onSearch},()=>[e.showSearch?(_(),L(l,{key:0,ref:"search",data:n.data,i18n:i.mergedI18n,"auto-focus":e.autoFocus,"on-search":i.onSearch,onSearch:i.onSearch,onArrowLeft:i.onArrowLeft,onArrowRight:i.onArrowRight,onArrowDown:i.onArrowDown,onArrowUp:i.onArrowUp,onEnter:i.onEnter,onSelect:i.onTextSelect},null,8,["data","i18n","auto-focus","on-search","onSearch","onArrowLeft","onArrowRight","onArrowDown","onArrowUp","onEnter","onSelect"])):O("",!0)]),g("div",{role:"tabpanel",class:"emoji-mart-scroll",ref:"scroll",onScroll:t[0]||(t[0]=(...u)=>i.onScroll&&i.onScroll(...u))},[g("div",Wke,[le(e.$slots,"customCategory"),(_(!0),k(Q,null,Te(r.view.filteredCategories,(u,d)=>ze((_(),L(a,{ref_for:!0,ref:"categories_"+d,key:u.id,data:n.data,i18n:i.mergedI18n,id:u.id,name:u.name,emojis:u.emojis,"emoji-props":i.emojiProps},null,8,["data","i18n","id","name","emojis","emoji-props"])),[[sn,e.infiniteScroll||u==r.view.activeCategory]])),128))],512)],544),le(e.$slots,"previewTemplate",{data:n.data,title:e.title,emoji:r.view.previewEmoji,idleEmoji:i.idleEmoji,showSkinTones:e.showSkinTones,emojiProps:i.emojiProps,skinProps:i.skinProps,onSkinChange:i.onSkinChange},()=>[e.showPreview?(_(),k("div",qke,[y(c,{data:n.data,title:e.title,emoji:r.view.previewEmoji,"idle-emoji":i.idleEmoji,"show-skin-tones":e.showSkinTones,"emoji-props":i.emojiProps,"skin-props":i.skinProps,"on-skin-change":i.onSkinChange},null,8,["data","title","emoji","idle-emoji","show-skin-tones","emoji-props","skin-props","on-skin-change"])])):O("",!0)])],4)}const Gke=de(Hke,[["render",Kke]]),Yke={name:"EmojiPicker",components:{Picker:Gke},emits:["emoji-selected"],props:{close_on_select:{type:Boolean,default:!1}},data(){return{isEmojiPickerVisible:!1,emojiIndex:null,imojiLoading:!1,errorMessage:"",isLoading:!1}},methods:{onEmojiSelect(e){this.$emit("emoji-selected",e.native),this.close_on_select&&this.$refs.fcom_emoji_popover.hide()},handleClickOutside(e){if(this.isEmojiPickerVisible){const t=this.$refs.container;t&&!t.contains(e.target)&&(this.isEmojiPickerVisible=!1)}},loadEmojiAssets(){if(this.isLoading)return;this.isLoading=!0,window.fcomEmojiIndex&&(this.emojiIndex=window.fcomEmojiIndex);let e=this.appVars.assets_url+"libs/static/tw_emojis.json";this.imojiLoading=!0,fetch(e).then(t=>t.json()).then(t=>{t?(window.fcomEmojiIndex=new nke(t),this.emojiIndex=window.fcomEmojiIndex,this.imojiLoading=!1):this.errorMessage="Emoji loading failed"}).catch(t=>{this.errorMessage="Emoji loading failed"}).finally(()=>{this.isLoading=!1})}}},Zke={style:{position:"relative"},ref:"container"},Jke=g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[g("g",null,[g("circle",{cx:"9.99996",cy:"10.0013",r:"8.33333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),g("path",{d:"M6.66663 12.5C7.42673 13.512 8.6369 14.1667 9.99996 14.1667C11.363 14.1667 12.5732 13.512 13.3333 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),g("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.6741 7.5L6.66663 7.5Z",fill:"currentColor"}),g("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.3333 7.5L13.3258 7.5Z",fill:"currentColor"}),g("path",{d:"M6.6741 7.5L6.66663 7.5M13.3333 7.5L13.3258 7.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1),Xke={key:0,class:"emoji-mart emoji-mart-static",style:{width:"320px",padding:"10px 20px"}},Qke={key:0},e4e={style:{"text-align":"center","margin-bottom":"20px"}},t4e={key:1,class:"fcom_emoji_holder"};function n4e(e,t,n,o,r,i){const s=ge,l=Ye,a=Wt,c=z("Picker"),u=po;return _(),k("div",Zke,[y(u,{placement:"bottom",width:320,trigger:"click",persistent:!1,ref:"fcom_emoji_popover",onShow:i.loadEmojiAssets,"popper-class":"fcom_emoji_popover ffcom_emoji"},{reference:x(()=>[y(l,{"aria-label":"Pick Imoji",text:""},{default:x(()=>[y(s,null,{default:x(()=>[Jke]),_:1})]),_:1})]),default:x(()=>[r.imojiLoading?(_(),k("div",Xke,[r.errorMessage?(_(),k("div",Qke,M(r.errorMessage),1)):(_(),k(Q,{key:1},[g("div",e4e,M(e.$t("Loading.....")),1),y(a,{animated:!0,rows:3})],64))])):r.emojiIndex?(_(),k("div",t4e,[y(c,{title:e.$t("Space Emoji"),color:"#66b1ff",showPreview:!1,ref:"picker",data:r.emojiIndex,set:"twitter",onSelect:i.onEmojiSelect,emojiSize:22,sheetSize:32,emojiTooltip:!1},null,8,["title","data","onSelect"])])):O("",!0)]),_:1},8,["onShow"])],512)}const XN=de(Yke,[["render",n4e]]),o4e=window.fluentComAdmin.auth,r4e={name:"FeedTextComposer",components:{MediaPreview:gd,Giphy:Ofe,ImageUploader:vc,SurveyEditForm:kde,MarkdownEditor:C4,EmojiPicker:XN,VideoEmbeder:lpe},emits:["editorCreated"],props:{placeholder:{type:String,default(){return"What's happening, "+o4e.first_name}},disabled:{type:Boolean,default(){return!1}},autofocus:{type:Boolean,default(){return!0}},content:{type:Object,default(){return{message:"",media_images:[]}}},mentionQuery:{type:Object,default(){return{}}},autofocus_changed:{type:Boolean,default(){return!1}},multipleMedia:{type:Boolean,default(){return!1}},surveyApp:{type:Boolean,default(){return!1}},videoApp:{type:Boolean,default(){return!1}},defaultMentions:{type:Array,default(){return[]}},hasEveyoneMention:{type:Boolean,default(){return!1}}},computed:{hasActiveApp(){return!!this.content.survey}},data(){return{mentionResults:[],mentionSearch:"",uploading:!1,isEmojiPickerVisible:!1}},methods:{insertEmoji(e){this.$refs.markdownEditor&&this.$refs.markdownEditor.updateContent(e)},checkHasImageForCommentsEdit(e){return e.media&&e.media.media_url},removeImageFromComments(){this.content.media=null},checkForImage(e){for(let t=0;t<e.clipboardData.items.length;++t){let n=e.clipboardData.items[t];if(n.kind=="file"&&n.type.startsWith("image/")){const o=n.getAsFile(),r=e.clipboardData.getData("text")||"clipboard-image.png";this.uploadImage(new File([o],r,{type:o.type}))}}},uploadImage(e){this.uploading=!0;var t=new FormData;t.append("file",e),t.append("max_width",1e3),t.append("resize",!0),this.$uploadFile("feeds/media-upload",t).then(n=>{this.handleMediaUpload(n.media.url)}).catch(n=>{this.$handleError(n)}).finally(()=>{this.uploading=!1})},handleMediaUpload(e,t="uploader"){var n,o;if(this.content.media_images||(this.content.media_images=[]),(o=(n=this.content)==null?void 0:n.meta)!=null&&o.media_preview&&(this.content.meta.media_preview=null),this.multipleMedia||(this.content.media_images=[]),this.content.media_images.length>=this.appVars.features.max_media_per_post){this.$notify.error(this.$t("You can upload a maximum of %s images per post.",this.appVars.features.max_media_per_post));return}this.content.media_images.push({url:e,provider:t,type:"image",height:0,width:0}),this.content.media=null},initSurveyForm(){this.content.survey||(this.content.survey={type:"single_choice",options:[{slug:"",label:this.$t("First choice")},{slug:"",label:""}]})},selectedGiphy(e){var n,o;this.content.meta||(this.content.meta=[]),(n=this.content)!=null&&n.media_images&&(this.content.media_images=[]),(o=this.content)!=null&&o.media&&(this.content.media=null);const t={image:e.images.downsized_medium.url,height:e.images.downsized_medium.height,width:e.images.downsized_medium.width,type:"image",provider:"giphy"};this.content.meta={media_preview:t}},handleVideoAttachment(e){this.content.media_images=[],this.content.meta=[],this.content.media=e}},mounted(){this.autofocus&&this.$nextTick(()=>{this.$refs.create_status&&this.$refs.create_status.focus()})}},i4e={class:"fcom_text_composer"},s4e={class:"fcom_editor status_text_input"},l4e={key:0,style:{position:"relative","text-align":"center"}},a4e={key:1,class:"fcom_media_items"},c4e={key:0,class:"fcom_media_images"},u4e=["src","alt"],d4e={key:1},f4e={class:"fcom_media_images"},p4e=["src","alt"],h4e={key:2,class:"fcrom_media_images"},m4e=["src","alt"],_4e={key:3,class:"fcrom_media_images"},g4e={class:"fcrom_media_image"},v4e=["src","alt"],b4e={class:"fcom_composer_footer"},y4e={class:"fcom_composer_apps"},w4e=g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[g("path",{d:"M7.49996 18.3327H12.5C16.6666 18.3327 18.3333 16.666 18.3333 12.4993V7.49935C18.3333 3.33268 16.6666 1.66602 12.5 1.66602H7.49996C3.33329 1.66602 1.66663 3.33268 1.66663 7.49935V12.4993C1.66663 16.666 3.33329 18.3327 7.49996 18.3327Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),g("path",{d:"M7.50004 8.33333C8.42052 8.33333 9.16671 7.58714 9.16671 6.66667C9.16671 5.74619 8.42052 5 7.50004 5C6.57957 5 5.83337 5.74619 5.83337 6.66667C5.83337 7.58714 6.57957 8.33333 7.50004 8.33333Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),g("path",{d:"M2.22498 15.7918L6.33331 13.0335C6.99164 12.5918 7.94164 12.6418 8.53331 13.1501L8.80831 13.3918C9.45831 13.9501 10.5083 13.9501 11.1583 13.3918L14.625 10.4168C15.275 9.85846 16.325 9.85846 16.975 10.4168L18.3333 11.5835",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1),k4e={key:0},x4e=g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[g("path",{d:"M1.66663 18.334H18.3333",stroke:"#525866","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),g("path",{d:"M8.125 3.33268V18.3327H11.875V3.33268C11.875 2.41602 11.5 1.66602 10.375 1.66602H9.625C8.5 1.66602 8.125 2.41602 8.125 3.33268Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),g("path",{d:"M2.5 8.33268V18.3327H5.83333V8.33268C5.83333 7.41602 5.5 6.66602 4.5 6.66602H3.83333C2.83333 6.66602 2.5 7.41602 2.5 8.33268Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),g("path",{d:"M14.1666 12.5007V18.334H17.5V12.5007C17.5 11.584 17.1666 10.834 16.1666 10.834H15.5C14.5 10.834 14.1666 11.584 14.1666 12.5007Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1),C4e={class:"fcom_composer_actions"};function S4e(e,t,n,o,r,i){var b,v,E,w,S,T,$,A,P;const s=z("MarkdownEditor"),l=z("SurveyEditForm"),a=Ye,c=z("media-preview"),u=ge,d=z("image-uploader"),f=z("video-embeder"),p=z("EmojiPicker"),h=z("Giphy"),m=Mt("loading");return _(),k(Q,null,[g("div",i4e,[g("div",s4e,[le(e.$slots,"before_input"),y(s,{ref:"markdownEditor",hasEveyoneMention:n.hasEveyoneMention,placeholder:n.placeholder,onEditorCreated:t[0]||(t[0]=()=>{e.$emit("editorCreated")}),autofocus:n.autofocus,onHandleMediaUpload:i.uploadImage,defaultMentions:n.defaultMentions,mentionQuery:n.mentionQuery,autofocus_changed:n.autofocus_changed,modelValue:n.content.message,"onUpdate:modelValue":t[1]||(t[1]=N=>n.content.message=N)},null,8,["hasEveyoneMention","placeholder","autofocus","onHandleMediaUpload","defaultMentions","mentionQuery","autofocus_changed","modelValue"]),le(e.$slots,"after_input")]),n.content.survey?(_(),L(l,{key:0,onCancel:t[2]||(t[2]=N=>n.content.survey=null),form:n.content.survey},null,8,["form"])):(_(),k(Q,{key:1},[(v=(b=n.content)==null?void 0:b.media)!=null&&v.type?(_(),k("div",l4e,[y(a,{onClick:t[3]||(t[3]=N=>{n.content.media=null}),text:"",type:"danger"},{default:x(()=>[te(M(e.$t("Remove Media")),1)]),_:1}),y(c,{media_item:n.content.media},null,8,["media_item"])])):(E=n.content)!=null&&E.meta?(_(),k("div",a4e,[(S=(w=n.content.meta)==null?void 0:w.media_items)!=null&&S.length?(_(!0),k(Q,{key:0},Te(n.content.meta.media_items,(N,I)=>(_(),k("div",{key:I},[N.type=="image"?(_(),k("div",c4e,[g("img",{class:"fcom_media_image",src:N.url,alt:e.$t("Media image")},null,8,u4e),y(a,{class:"fcom_media_images_cross_button",link:"",onClick:B=>n.content.meta.media_items.splice(I,1)},{default:x(()=>[te(" x ")]),_:2},1032,["onClick"])])):O("",!0)]))),128)):(($=(T=n.content.meta)==null?void 0:T.media_preview)==null?void 0:$.type)=="image"||(P=(A=n.content.meta)==null?void 0:A.media_preview)!=null&&P.image?(_(),k("div",d4e,[g("div",f4e,[g("img",{class:"fcom_media_image",src:n.content.meta.media_preview.image,alt:e.$t("Media Preview image")},null,8,p4e),y(a,{class:"fcom_media_images_cross_button",link:"",onClick:t[4]||(t[4]=N=>n.content.meta.media_preview=null)},{default:x(()=>[te(" x ")]),_:1})])])):O("",!0)])):n.content.media_images&&n.content.media_images.length?(_(),k("div",h4e,[(_(!0),k(Q,null,Te(n.content.media_images,(N,I)=>(_(),k("div",{class:"fcrom_media_image",key:I},[g("img",{src:N.url,alt:e.$t("Media image")},null,8,m4e),y(a,{link:"",onClick:B=>n.content.media_images.splice(I,1)},{default:x(()=>[te(" x ")]),_:2},1032,["onClick"])]))),128))])):i.checkHasImageForCommentsEdit(n.content)?(_(),k("div",_4e,[g("div",g4e,[g("img",{src:n.content.media.media_url,alt:e.$t("Media image")},null,8,v4e),y(a,{link:"",onClick:t[5]||(t[5]=N=>i.removeImageFromComments())},{default:x(()=>[te(" x ")]),_:1})])])):O("",!0)],64))]),ze((_(),k("div",b4e,[g("div",y4e,[i.hasActiveApp?O("",!0):(_(),k(Q,{key:0},[e.appVars.features.max_media_per_post?(_(),L(d,{key:0,additionalData:{resize:!0,max_width:1e3},isMultiple:n.multipleMedia,onUploading:t[6]||(t[6]=()=>{r.uploading=!0}),onCompleted:t[7]||(t[7]=()=>{r.uploading=!1}),onUploaded:i.handleMediaUpload},{default:x(()=>[ze((_(),L(a,{"aria-label":"Upload Media",text:""},{default:x(()=>[y(u,{class:"fcom_status_img_icon"},{default:x(()=>[w4e]),_:1}),r.uploading?(_(),k("span",k4e,M(e.$t("Uploading...")),1)):O("",!0)]),_:1})),[[m,r.uploading]])]),_:1},8,["isMultiple","onUploaded"])):O("",!0),n.videoApp&&e.hasFeature("video_embeder")?(_(),L(f,{key:1,onEmbeded:i.handleVideoAttachment},null,8,["onEmbeded"])):O("",!0),n.surveyApp&&e.hasFeature("has_survey_poll")?(_(),L(a,{key:2,"aria-label":"Create Poll",onClick:i.initSurveyForm,text:""},{default:x(()=>[y(u,{class:"fcom_apps_icon"},{default:x(()=>[x4e]),_:1})]),_:1},8,["onClick"])):O("",!0),e.hasFeature("emoji_app")?(_(),L(p,{key:3,onEmojiSelected:i.insertEmoji},null,8,["onEmojiSelected"])):O("",!0),e.hasFeature("giphy_app")?(_(),L(h,{key:4,onSelectedGiphy:i.selectedGiphy},null,8,["onSelectedGiphy"])):O("",!0)],64))]),g("div",C4e,[le(e.$slots,"default")])])),[[m,r.uploading]])],64)}const Rh=de(r4e,[["render",S4e]]),$4e={name:"SingleComment",components:{FeedTextComposer:Rh,MediaPreview:gd},props:["comment"],emits:["deleted","updated","copyLink"],data(){return{working:!1,isEdit:!1}},methods:{maybeSave(e){(e.metaKey||e.ctrlKey)&&e.keyCode===13&&this.updateComment()},deleteComment(){this.$confirm(this.$t("Are you sure you want to delete this comment and associated data?"),this.$t("Warning"),{confirmButtonText:this.$t("Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(()=>{this.working=!0,this.$del("feeds/"+this.comment.post_id+"/comments/"+this.comment.id).then(e=>{this.$emit("deleted"),this.$notify.success(e.message)}).catch(e=>{this.$handleError(e)}).finally(()=>{this.working=!1})})},editComment(){this.working=!0,this.$get(`comments/${this.comment.id}`).then(e=>{Object.assign(this.comment,e.comment),this.isEdit=!0}).catch(e=>{this.$handleError(e)}).finally(()=>{this.working=!1,this.$refs.comment_actions.hide()})},updateComment(){this.comment.message&&(this.working=!0,this.isEdit=!0,this.$post(`feeds/${this.comment.post_id}/comments/${this.comment.id}`,{comment:this.comment.message,media_images:this.comment.media_images,meta:this.comment.meta}).then(e=>{this.$notify.success((e==null?void 0:e.message)||this.$t("Comment updated successfully")),Object.assign(this.comment,e.comment),this.comment.media_images=[]}).catch(e=>{this.$handleError(e)}).finally(()=>{this.isEdit=!1,this.working=!1}))},renderedComment(e){const n=/(?:https?:\/\/)?(?:www\.)?youtube\.com\/watch\?v=([a-zA-Z0-9_-]+)/.exec(e);if(n&&n[1]){let i=n[1];if(i){let s=`<div class="feed_media_ext_video"><iframe src="https://www.youtube.com/embed/${i}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`;e+=s}}let o=window.location.origin,r=new RegExp(o,"g");return e=e.replace(/<a(.*?)href="(.*?)"(.*?)>/g,(i,s,l,a)=>l.match(r)?`<a${s}href="${l}"${a}>`:`<a${s}href="${l}" target="_blank"${a}>`),e},copyCommentLink(e){this.$emit("copyLink",e),this.$refs.comment_actions.hide()}}},E4e={key:0,class:"person_avatar"},T4e={class:"comment_wrap"},M4e={key:0,class:"comment_text"},A4e={class:"comment_text_head"},I4e={class:"comment_text_head_name"},O4e=["title"],P4e={style:{"margin-left":"auto"},class:"comment_actions"},N4e={class:"actions_items"},L4e=["innerHTML"],R4e={key:0,class:"comment_text_media"};function F4e(e,t,n,o,r,i){const s=z("UserAvatar"),l=z("UserRouteLink"),a=z("MoreFilled"),c=ge,u=Ye,d=po,f=z("MediaPreview"),p=z("feed-text-composer"),h=Mt("loading");return _(),k(Q,null,[n.comment.xprofile?(_(),k("div",E4e,[y(s,{with_level:!1,xprofile:n.comment.xprofile,is_rounded:!0},null,8,["xprofile"])])):O("",!0),ze((_(),k("div",T4e,[r.isEdit?(_(),k("div",{key:1,onKeydown:t[6]||(t[6]=Ut((...m)=>i.maybeSave&&i.maybeSave(...m),["enter"])),class:"comment_text"},[y(p,{multipleMedia:!1,content:n.comment,autofocus:!0,onUpdated:t[5]||(t[5]=m=>r.isEdit=!1)},{default:x(()=>[g("div",null,[y(u,{onClick:t[3]||(t[3]=m=>r.isEdit=!1)},{default:x(()=>[te(M(e.$t("Cancel")),1)]),_:1}),y(u,{type:"primary",onClick:t[4]||(t[4]=m=>i.updateComment(n.comment))},{default:x(()=>[te(M(e.$t("Update")),1)]),_:1})])]),_:1},8,["content"])],32)):(_(),k("div",M4e,[g("div",A4e,[g("div",I4e,[y(l,{show_badge:!0,xprofile:n.comment.xprofile},null,8,["xprofile"])]),g("div",{title:n.comment.created_at,class:"comment_text_head_time"},M(e.humanDateDiff(n.comment.created_at)),9,O4e),g("div",P4e,[y(d,{persistent:!1,placement:"bottom",ref:"comment_actions",width:200,trigger:"click"},{reference:x(()=>[y(u,{"aria-label":e.$t("View comment actions"),class:"fcom_dot_menu",size:"small",text:""},{default:x(()=>[y(c,null,{default:x(()=>[y(a)]),_:1})]),_:1},8,["aria-label"])]),default:x(()=>[g("ul",N4e,[g("li",{onClick:t[0]||(t[0]=m=>i.copyCommentLink(n.comment))},M(e.$t("Copy Link")),1),e.canEditComment(n.comment)?(_(),k("li",{key:0,onClick:t[1]||(t[1]=m=>i.editComment())},M(e.$t("Edit")),1)):O("",!0),e.canDeleteComment(n.comment)?(_(),k("li",{key:1,onClick:t[2]||(t[2]=m=>i.deleteComment())},M(e.$t("Delete")),1)):O("",!0)])]),_:1},512)])]),g("div",{class:"comment_text_body feed_md_content",innerHTML:i.renderedComment(n.comment.message_rendered)},null,8,L4e),n.comment.meta.media_preview?(_(),k("div",R4e,[y(f,{media_item:n.comment.meta.media_preview},null,8,["media_item"])])):O("",!0)])),le(e.$slots,"after_comment_text")])),[[h,r.working]])],64)}const QN=de($4e,[["render",F4e]]);function D4e(e,t){for(var n=-1,o=e==null?0:e.length;++n<o&&t(e[n],n,e)!==!1;);return e}var B4e=D4e;function z4e(e){return function(t,n,o){for(var r=-1,i=Object(t),s=o(t),l=s.length;l--;){var a=s[e?l:++r];if(n(i[a],a,i)===!1)break}return t}}var V4e=z4e,j4e=V4e,H4e=j4e(),U4e=H4e;function W4e(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var q4e=W4e,K4e=yh,G4e=wh,Y4e="[object Arguments]";function Z4e(e){return G4e(e)&&K4e(e)==Y4e}var J4e=Z4e,ZS=J4e,X4e=wh,eL=Object.prototype,Q4e=eL.hasOwnProperty,exe=eL.propertyIsEnumerable,txe=ZS(function(){return arguments}())?ZS:function(e){return X4e(e)&&Q4e.call(e,"callee")&&!exe.call(e,"callee")},E4=txe,nxe=Array.isArray,Ji=nxe,Jg={exports:{}};function oxe(){return!1}var rxe=oxe;Jg.exports;(function(e,t){var n=Gi,o=rxe,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,l=s?n.Buffer:void 0,a=l?l.isBuffer:void 0,c=a||o;e.exports=c})(Jg,Jg.exports);var T4=Jg.exports,ixe=9007199254740991,sxe=/^(?:0|[1-9]\d*)$/;function lxe(e,t){var n=typeof e;return t=t??ixe,!!t&&(n=="number"||n!="symbol"&&sxe.test(e))&&e>-1&&e%1==0&&e<t}var tL=lxe,axe=9007199254740991;function cxe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=axe}var M4=cxe,uxe=yh,dxe=M4,fxe=wh,pxe="[object Arguments]",hxe="[object Array]",mxe="[object Boolean]",_xe="[object Date]",gxe="[object Error]",vxe="[object Function]",bxe="[object Map]",yxe="[object Number]",wxe="[object Object]",kxe="[object RegExp]",xxe="[object Set]",Cxe="[object String]",Sxe="[object WeakMap]",$xe="[object ArrayBuffer]",Exe="[object DataView]",Txe="[object Float32Array]",Mxe="[object Float64Array]",Axe="[object Int8Array]",Ixe="[object Int16Array]",Oxe="[object Int32Array]",Pxe="[object Uint8Array]",Nxe="[object Uint8ClampedArray]",Lxe="[object Uint16Array]",Rxe="[object Uint32Array]",rn={};rn[Txe]=rn[Mxe]=rn[Axe]=rn[Ixe]=rn[Oxe]=rn[Pxe]=rn[Nxe]=rn[Lxe]=rn[Rxe]=!0;rn[pxe]=rn[hxe]=rn[$xe]=rn[mxe]=rn[Exe]=rn[_xe]=rn[gxe]=rn[vxe]=rn[bxe]=rn[yxe]=rn[wxe]=rn[kxe]=rn[xxe]=rn[Cxe]=rn[Sxe]=!1;function Fxe(e){return fxe(e)&&dxe(e.length)&&!!rn[uxe(e)]}var Dxe=Fxe;function Bxe(e){return function(t){return e(t)}}var zxe=Bxe,Xg={exports:{}};Xg.exports;(function(e,t){var n=jA,o=t&&!t.nodeType&&t,r=o&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===o,s=i&&n.process,l=function(){try{var a=r&&r.require&&r.require("util").types;return a||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(Xg,Xg.exports);var Vxe=Xg.exports,jxe=Dxe,Hxe=zxe,JS=Vxe,XS=JS&&JS.isTypedArray,Uxe=XS?Hxe(XS):jxe,A4=Uxe,Wxe=q4e,qxe=E4,Kxe=Ji,Gxe=T4,Yxe=tL,Zxe=A4,Jxe=Object.prototype,Xxe=Jxe.hasOwnProperty;function Qxe(e,t){var n=Kxe(e),o=!n&&qxe(e),r=!n&&!o&&Gxe(e),i=!n&&!o&&!r&&Zxe(e),s=n||o||r||i,l=s?Wxe(e.length,String):[],a=l.length;for(var c in e)(t||Xxe.call(e,c))&&!(s&&(c=="length"||r&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Yxe(c,a)))&&l.push(c);return l}var e5e=Qxe,t5e=Object.prototype;function n5e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||t5e;return e===n}var nL=n5e;function o5e(e,t){return function(n){return e(t(n))}}var r5e=o5e,i5e=r5e,s5e=i5e(Object.keys,Object),l5e=s5e,a5e=nL,c5e=l5e,u5e=Object.prototype,d5e=u5e.hasOwnProperty;function f5e(e){if(!a5e(e))return c5e(e);var t=[];for(var n in Object(e))d5e.call(e,n)&&n!="constructor"&&t.push(n);return t}var oL=f5e,p5e=yh,h5e=_d,m5e="[object AsyncFunction]",_5e="[object Function]",g5e="[object GeneratorFunction]",v5e="[object Proxy]";function b5e(e){if(!h5e(e))return!1;var t=p5e(e);return t==_5e||t==g5e||t==m5e||t==v5e}var rL=b5e,y5e=rL,w5e=M4;function k5e(e){return e!=null&&w5e(e.length)&&!y5e(e)}var I4=k5e,x5e=e5e,C5e=oL,S5e=I4;function $5e(e){return S5e(e)?x5e(e):C5e(e)}var O4=$5e,E5e=U4e,T5e=O4;function M5e(e,t){return e&&E5e(e,t,T5e)}var A5e=M5e,I5e=I4;function O5e(e,t){return function(n,o){if(n==null)return n;if(!I5e(n))return e(n,o);for(var r=n.length,i=t?r:-1,s=Object(n);(t?i--:++i<r)&&o(s[i],i,s)!==!1;);return n}}var P5e=O5e,N5e=A5e,L5e=P5e,R5e=L5e(N5e),F5e=R5e;function D5e(e){return e}var iL=D5e,B5e=iL;function z5e(e){return typeof e=="function"?e:B5e}var V5e=z5e,j5e=B4e,H5e=F5e,U5e=V5e,W5e=Ji;function q5e(e,t){var n=W5e(e)?j5e:H5e;return n(e,U5e(t))}var K5e=q5e,G5e=K5e;const ba=jl(G5e);function yt(e){return window.fluentComAdmin.i18n[e]||e}const sL={public:{label:yt("Public"),description:yt("__PUBLIC_SPACE_DESC"),space_description:yt("__PIBLIC_SPACE_DESC_2")},private:{label:yt("Private"),description:yt("__PRIVATE_SPACE_DESC"),space_description:yt("__PRIVATE_SPACE_DESC_2")},secret:{label:yt("Secret"),description:yt("Only invited members can view and post."),space_description:yt("__SECRET_SPACE_DESC_2")}},Y5e={public:{label:yt("Public"),description:yt("Anyone can view and enroll the course for free")},private:{label:yt("Private"),description:yt("__PRIVATE_COURSE_DESC")},secret:{label:yt("Secret"),description:yt("Only invited students can view and enroll the course content.")}},Z5e={self_paced:{label:yt("Self Paced"),description:yt("__SELF_PAED_COURSE_DESC")},structured:{label:yt("Structured"),description:yt("__STRUCTURED_COURSE_DESC")},scheduled:{label:yt("Scheduled"),description:yt("Course starts on a specific date. Sections are dripped relative to that date.")}};yt("Leaderboard Settings"),yt("Settings for Leaderboard & Gamification features"),yt("Get Leaderboard & Gamification Module"),yt("Unlock potential by creating new feeds and earning points for likes. Advance in rank based on your total points using this module"),yt("Emoji Module"),yt("Settings for Emoji & Reaction features"),yt("Get Emoji & Reaction Module"),yt("Use emojis to add a personal touch and make your new article, post, or comment more expressive"),yt("Giphy Module"),yt("Customize Your Giphy Module Settings"),yt("Get Giphy Module"),yt("Want to use awesome GIF, upgrade to pro plan now and enjoy your surfing on Fluent community"),yt("User Badge Module"),yt("Add a badge next to user profile name to highlight valued users"),yt("Get User Badge Module"),yt("Show a customized badge on user profiles beside their names to easily recognize your admins or moderators, or to give appreciation to your power users."),yt("Media Module"),yt("Add a badge next to user profile name to highlight valued users"),yt("Get Media Module"),yt("Choose where to store your media files. Options include Local File System, Amazon S3, or Cloudflare R2 for storing and serving your media assets");const _l=e=>{e=parseInt(e);const t=Object.values(window.fluentComAdmin.leaderboard_levels);if(!e)return t[0];for(let n=0;n<t.length;n++)if(e>=t[n].min_points&&e<=t[n].max_points)return t[n];return t[t-1]};var J5e=Gi,X5e=J5e["__core-js_shared__"],Q5e=X5e,eb=Q5e,QS=function(){var e=/[^.]+$/.exec(eb&&eb.keys&&eb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function eCe(e){return!!QS&&QS in e}var tCe=eCe,nCe=Function.prototype,oCe=nCe.toString;function rCe(e){if(e!=null){try{return oCe.call(e)}catch{}try{return e+""}catch{}}return""}var lL=rCe,iCe=rL,sCe=tCe,lCe=_d,aCe=lL,cCe=/[\\^$.*+?()[\]{}|]/g,uCe=/^\[object .+?Constructor\]$/,dCe=Function.prototype,fCe=Object.prototype,pCe=dCe.toString,hCe=fCe.hasOwnProperty,mCe=RegExp("^"+pCe.call(hCe).replace(cCe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _Ce(e){if(!lCe(e)||sCe(e))return!1;var t=iCe(e)?mCe:uCe;return t.test(aCe(e))}var gCe=_Ce;function vCe(e,t){return e==null?void 0:e[t]}var bCe=vCe,yCe=gCe,wCe=bCe;function kCe(e,t){var n=wCe(e,t);return yCe(n)?n:void 0}var Ed=kCe,xCe=Ed,CCe=Gi,SCe=xCe(CCe,"DataView"),$Ce=SCe,ECe=Ed,TCe=Gi,MCe=ECe(TCe,"Map"),P4=MCe,ACe=Ed,ICe=Gi,OCe=ACe(ICe,"Promise"),PCe=OCe,NCe=Ed,LCe=Gi,RCe=NCe(LCe,"Set"),aL=RCe,FCe=Ed,DCe=Gi,BCe=FCe(DCe,"WeakMap"),zCe=BCe,x2=$Ce,C2=P4,S2=PCe,$2=aL,E2=zCe,cL=yh,Td=lL,e9="[object Map]",VCe="[object Object]",t9="[object Promise]",n9="[object Set]",o9="[object WeakMap]",r9="[object DataView]",jCe=Td(x2),HCe=Td(C2),UCe=Td(S2),WCe=Td($2),qCe=Td(E2),pa=cL;(x2&&pa(new x2(new ArrayBuffer(1)))!=r9||C2&&pa(new C2)!=e9||S2&&pa(S2.resolve())!=t9||$2&&pa(new $2)!=n9||E2&&pa(new E2)!=o9)&&(pa=function(e){var t=cL(e),n=t==VCe?e.constructor:void 0,o=n?Td(n):"";if(o)switch(o){case jCe:return r9;case HCe:return e9;case UCe:return t9;case WCe:return n9;case qCe:return o9}return t});var uL=pa,KCe=oL,GCe=uL,YCe=E4,ZCe=Ji,JCe=I4,XCe=T4,QCe=nL,e6e=A4,t6e="[object Map]",n6e="[object Set]",o6e=Object.prototype,r6e=o6e.hasOwnProperty;function i6e(e){if(e==null)return!0;if(JCe(e)&&(ZCe(e)||typeof e=="string"||typeof e.splice=="function"||XCe(e)||e6e(e)||YCe(e)))return!e.length;var t=GCe(e);if(t==t6e||t==n6e)return!e.size;if(QCe(e))return!KCe(e).length;for(var n in e)if(r6e.call(e,n))return!1;return!0}var s6e=i6e;const dL=jl(s6e),l6e={name:"SocialLinks",props:["xprofile","isOwn"],computed:{socialLinks(){var o,r;if(!this.xprofile)return[];const e=[];this.xprofile.website?e.push({title:this.$t("Website"),icon:'<svg viewBox="0 0 40 20" fill="currentColor"><path d="M3.8 10C3.8 6.58 6.58 3.8 10 3.8H18V0H10C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20H18V16.2H10C6.58 16.2 3.8 13.42 3.8 10ZM12 12H28V8H12V12ZM30 0H22V3.8H30C33.42 3.8 36.2 6.58 36.2 10C36.2 13.42 33.42 16.2 30 16.2H22V20H30C35.52 20 40 15.52 40 10C40 4.48 35.52 0 30 0Z"></path></svg>',url:this.xprofile.website}):(o=this.xprofile.meta)!=null&&o.website&&e.push({title:this.$t("Website"),icon:'<svg viewBox="0 0 40 20" fill="currentColor"><path d="M3.8 10C3.8 6.58 6.58 3.8 10 3.8H18V0H10C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20H18V16.2H10C6.58 16.2 3.8 13.42 3.8 10ZM12 12H28V8H12V12ZM30 0H22V3.8H30C33.42 3.8 36.2 6.58 36.2 10C36.2 13.42 33.42 16.2 30 16.2H22V20H30C35.52 20 40 15.52 40 10C40 4.48 35.52 0 30 0Z"></path></svg>',url:this.xprofile.meta.website});let t=this.xprofile.social_links;if(t||(t=(r=this.xprofile.meta)==null?void 0:r.social_links),dL(t))return e;const n=this.appVars.socialLinkProviders;return n&&this.each(n,(i,s)=>{t[s]&&e.push({title:i.title,icon:i.icon_svg,url:i.domain+t[s]})}),e}}},a6e={class:"fcom_social_links"},c6e=["href","title"];function u6e(e,t,n,o,r,i){const s=ge,l=z("router-link");return _(),k("div",a6e,[(_(!0),k(Q,null,Te(i.socialLinks,a=>(_(),k("a",{rel:"noopener nofollow",target:"_blank",href:a.url,key:a.title,title:a.title},[y(s,{innerHTML:a.icon},null,8,["innerHTML"])],8,c6e))),128)),n.isOwn&&!i.socialLinks.length?(_(),L(l,{key:0,to:{name:"update_profile",params:{username:n.xprofile.username}}},{default:x(()=>[te(M("+ "+e.$t("Add social links")),1)]),_:1},8,["to"])):O("",!0)])}const N4=de(l6e,[["render",u6e]]),d6e={name:"UserRouteLink",props:{xprofile:{default:()=>({})},show_pop:{type:Boolean,default(){return!0}},show_badge:{type:Boolean,default(){return!1}}},components:{SocialLinks:N4},data(){return{showingPop:!1,userLevel:null}},methods:{initShow(){this.showingPop=!0,this.has_leaderboard&&!this.userLevel&&(this.userLevel=_l(this.xprofile.total_points))}}},f6e=["href"],p6e=["href"],h6e={key:0,class:"fcom_profile_pop"},m6e={class:"fcom_profile_pop_avatar"},_6e={key:0,class:"fcom_prfile_tagline"},g6e={class:"fcom_level_name"},v6e={style:{display:"block"},class:"fcoml_level_sub meta_line"},b6e={class:"fcom_profile_pop_info"},y6e=["href"],w6e={class:"fcom_user_name"},k6e={key:0,class:"fcom_profile_pop_bio"},x6e={class:"meta_line"},C6e={key:1,class:"meta_line"},S6e={class:"fcom_profile_btns"},$6e=["href"],E6e=["href"];function T6e(e,t,n,o,r,i){const s=z("verified-sign"),l=z("UserBadge"),a=z("UserAvatar"),c=gh,u=z("SocialLinks"),d=_h,f=po;return n.show_pop?(_(),L(f,{key:1,width:500,"show-after":500,trigger:"hover",onShow:i.initShow,persistent:!1,"popper-class":"fcom_profile_popper","popper-style":"padding: 20px;"},{reference:x(()=>[le(e.$slots,"default",{},()=>[g("a",{href:e.$getRouteLink("u/:username",{username:n.xprofile.username}),class:"user_route"},[te(M(n.xprofile.display_name||e.$t("No name"))+" ",1),n.xprofile.is_verified?(_(),L(s,{key:0})):O("",!0),n.show_badge?(_(),L(l,{key:1,profile:n.xprofile},null,8,["profile"])):O("",!0)],8,p6e)])]),default:x(()=>[r.showingPop?(_(),k("div",h6e,[y(d,{gutter:20},{default:x(()=>[y(c,{sm:24,md:8},{default:x(()=>[g("div",m6e,[y(a,{xprofile:n.xprofile},null,8,["xprofile"]),r.userLevel?(_(),k("div",_6e,[g("div",g6e,M(r.userLevel.title),1),g("div",v6e,M(r.userLevel.tagline),1)])):O("",!0)])]),_:1}),y(c,{sm:24,md:16},{default:x(()=>[g("div",b6e,[g("a",{href:e.$getRouteLink("u/:username",{username:n.xprofile.username}),class:"user_route"},[te(M(n.xprofile.display_name)+" ",1),n.xprofile.is_verified?(_(),L(s,{key:0})):O("",!0),n.show_badge?(_(),L(l,{key:1,profile:n.xprofile},null,8,["profile"])):O("",!0)],8,y6e),g("span",w6e," @"+M(n.xprofile.username),1),n.xprofile.short_description?(_(),k("div",k6e,M(e.getExcerpt(n.xprofile.short_description,160)),1)):O("",!0),g("div",x6e,M(e.$t("Joined: %s",e.humanDateDiff(n.xprofile.created_at))),1),n.xprofile.last_activity?(_(),k("div",C6e,M(e.$t("Last seen: %s",e.humanDateDiff(n.xprofile.last_activity))),1)):O("",!0),g("div",S6e,[g("a",{class:"el-button el-button--primary is-text is-has-bg",href:e.$getRouteLink("u/:username",{username:n.xprofile.username})},M(e.$t("View Profile")),9,$6e),e.appVars.has_chat?(_(),k("a",{key:0,class:"el-button el-button--primary is-text is-has-bg",href:e.$getRouteLink("chat/?user_id=:user_id",{user_id:n.xprofile.user_id})},M(e.$t("Message")),9,E6e)):O("",!0)]),y(u,{style:{"justify-content":"left"},xprofile:n.xprofile,isOwn:!1},null,8,["xprofile"])])]),_:1})]),_:1})])):O("",!0)]),_:3},8,["onShow"])):(_(),k("a",{key:0,href:e.$getRouteLink("u/:username",{username:n.xprofile.username}),class:"user_route"},[le(e.$slots,"default",{},()=>[te(M(n.xprofile.display_name)+" ",1),n.xprofile.is_verified?(_(),L(s,{key:0})):O("",!0),n.show_badge?(_(),L(l,{key:1,profile:n.xprofile},null,8,["profile"])):O("",!0)])],8,f6e))}const Md=de(d6e,[["render",T6e]]),M6e={name:"CommentReacts",components:{UserRouteLink:Md},data(){return{centerDialogVisible:!1,reactions:null,loading:!1}},props:{comment:{required:!0,default:null}},methods:{getReactions(){this.reactions||(this.loading=!0,this.$get("comments/"+this.comment.id+"/reactions").then(e=>{this.reactions=e.reactions}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1}))}}},A6e={style:{"margin-left":"5px"}},I6e={key:0},O6e={key:1},P6e={class:"fcom_user_lists"},N6e={key:2};function L6e(e,t,n,o,r,i){const s=Wt,l=z("UserAvatar"),a=z("UserRouteLink"),c=$o,u=po;return _(),L(u,{persistent:!1,placement:"bottom",title:e.$t("Likes"),width:200,trigger:"click",onShow:i.getReactions},{reference:x(()=>[g("span",A6e,M(n.comment.reactions_count),1)]),default:x(()=>[r.loading?(_(),k("div",I6e,[y(s,{animated:!0,rows:1})])):r.reactions?(_(),k("div",O6e,[y(c,{"max-height":"300px"},{default:x(()=>[g("ul",P6e,[(_(!0),k(Q,null,Te(r.reactions,d=>(_(),k("li",null,[d.xprofile?(_(),k(Q,{key:0},[y(l,{with_level:!1,xprofile:d.xprofile},null,8,["xprofile"]),y(a,{show_badge:!0,xprofile:d.xprofile},null,8,["xprofile"])],64)):O("",!0)]))),256))])]),_:1})])):(_(),k("div",N6e,[g("p",null,M(e.$t("Failed to load the list")),1)]))]),_:1},8,["title","onShow"])}const R6e=de(M6e,[["render",L6e]]),F6e={name:"HeartIcon",props:{filled:{default:!1}}},D6e={key:0,viewBox:"0 0 24 24","aria-hidden":"true"},B6e=g("g",null,[g("path",{d:"M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})],-1),z6e=[B6e],V6e={key:1,viewBox:"0 0 24 24","aria-hidden":"true"},j6e=g("g",null,[g("path",{d:"M16.697 5.5c-1.222-.06-2.679.51-3.89 2.16l-.805 1.09-.806-1.09C9.984 6.01 8.526 5.44 7.304 5.5c-1.243.07-2.349.78-2.91 1.91-.552 1.12-.633 2.78.479 4.82 1.074 1.97 3.257 4.27 7.129 6.61 3.87-2.34 6.052-4.64 7.126-6.61 1.111-2.04 1.03-3.7.477-4.82-.561-1.13-1.666-1.84-2.908-1.91zm4.187 7.69c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})],-1),H6e=[j6e];function U6e(e,t,n,o,r,i){return n.filled?(_(),k("svg",D6e,z6e)):(_(),k("svg",V6e,H6e))}const L4=de(F6e,[["render",U6e]]),W6e={name:"NestedReplyBox",components:{SingleComment:QN,FeedTextComposer:Rh,CommentReactions:R6e,HeartIcon:L4},props:["comment","feed","checkPermission","show_reacts_only","defaultMentions"],emits:["commented","copyLink"],data(){return{open:!1,commentReply:{message:"",media_images:[]},submitting:!1}},computed:{canComment(){return this.hasCommentPermission(this.feed)||!this.checkPermission}},methods:{maybeSave(e){(e.metaKey||e.ctrlKey)&&e.keyCode===13&&this.addComment()},addComment(){this.commentReply.message&&(this.submitting=!0,this.$post("feeds/"+this.feed.id+"/comments",{comment:this.commentReply.message,parent_id:this.comment.id,media_images:this.commentReply.media_images,meta:this.commentReply.meta}).then(e=>{this.comment.comments||(this.comment.comments=[]),this.commentReply={message:"",media_images:[]},this.comment.comments.push(e.comment),this.$emit("commented",e.comment),this.feed.comments_count=parseInt(this.feed.comments_count)+1,this.open=!1}).catch(e=>{this.$handleError(e)}).finally(()=>{this.submitting=!1}))},toggleCommentBox(e){if(!this.hasCommentPermission(this.feed)){this.$notify({title:this.$t("Please login"),message:this.$t("Please login to reply to this post"),type:"warning"});return}this.open=!this.open;let t=e==null?void 0:e.xprofile.username;this.open&&t&&e.user_id!=this.auth.user_id&&(this.commentReply.message=`@${t}&nbsp;`),this.open},handleCommentDelete(e){this.comment.comments.splice(e,1),this.feed.comments_count--},toggleLike(e){let t=!e.liked;e.liked=t,this.$post("feeds/"+this.feed.id+"/comments/"+e.id+"/reactions",{state:t?1:0}).then(n=>{e.liked=n.liked,e.reactions_count=n.reactions_count}).catch(n=>{this.$handleError(n)})},emitCopyLink(e){this.$emit("copyLink",e)}}},q6e={key:0,class:"reply_box"},K6e={class:"fcom_comments_react fcom_reaction_list"},G6e={class:"child_comments"},Y6e=["id"],Z6e={key:0,class:"reply_box"},J6e=["onClick"],X6e={class:"fcom_comments_react fcom_reaction_list"},Q6e={key:0,class:"child_reply_wrap"},e8e={class:"feed_commenting"},t8e={class:"person_avatar"},n8e=["alt","src"];function o8e(e,t,n,o,r,i){var p;const s=z("HeartIcon"),l=ge,a=z("CommentReactions"),c=z("single-comment"),u=Ye,d=z("feed-text-composer"),f=Mt("loading");return _(),k(Q,null,[i.canComment?(_(),k("div",q6e,[((p=n.feed.meta)==null?void 0:p.comments_disabled)!=="yes"?(_(),k("span",{key:0,onClick:t[0]||(t[0]=h=>i.toggleCommentBox(n.comment)),class:"reply_btn"},M(e.$t("Reply")),1)):O("",!0),g("span",{style:{"margin-left":"14px"},class:R([{fcom_is_liked:n.comment.liked},"reply_btn"])},[g("div",K6e,[y(l,{class:R({user_reacted:n.comment.liked}),onClick:t[1]||(t[1]=h=>i.toggleLike(n.comment))},{default:x(()=>[y(s,{filled:n.comment.liked},null,8,["filled"])]),_:1},8,["class"]),parseInt(n.comment.reactions_count)?(_(),L(a,{key:0,comment:n.comment},null,8,["comment"])):O("",!0)])],2),le(e.$slots,"after_reply_box_text")])):O("",!0),!n.show_reacts_only||r.open?(_(),k(Q,{key:1},[g("div",G6e,[(_(!0),k(Q,null,Te(n.comment.comments,(h,m)=>(_(),k("div",{id:"comment_"+h.id,class:"each_comment"},[y(c,{onCopyLink:i.emitCopyLink,onDeleted:b=>i.handleCommentDelete(m),comment:h},{after_comment_text:x(()=>[i.canComment?(_(),k("div",Z6e,[g("span",{onClick:b=>i.toggleCommentBox(h),class:"reply_btn"},M(e.$t("Reply")),9,J6e),g("span",{style:{"margin-left":"14px"},class:R([{fcom_is_liked:h.liked},"reply_btn"])},[g("div",X6e,[y(l,{class:R({user_reacted:h.liked}),onClick:b=>i.toggleLike(h)},{default:x(()=>[y(s,{filled:h.liked},null,8,["filled"])]),_:2},1032,["class","onClick"]),parseInt(h.reactions_count)?(_(),L(a,{key:0,comment:h},null,8,["comment"])):O("",!0)])],2)])):O("",!0)]),_:2},1032,["onCopyLink","onDeleted","comment"])],8,Y6e))),256))]),r.open?(_(),k("div",Q6e,[g("div",e8e,[g("div",t8e,[g("img",{alt:e.$t("Your Photo"),src:e.auth.avatar},null,8,n8e)]),g("div",{onKeydown:t[3]||(t[3]=Ut((...h)=>i.maybeSave&&i.maybeSave(...h),["enter"])),class:"feed_comment_input comment_text"},[y(d,{defaultMentions:n.defaultMentions?n.defaultMentions:[],disabled:r.submitting,autofocus:r.open,mentionQuery:{space_id:n.feed.space_id},content:r.commentReply,placeholder:e.$t("Leave a reply")},{default:x(()=>[ze((_(),L(u,{disabled:r.submitting,onClick:t[2]||(t[2]=h=>i.addComment()),class:"fcom_primary_button"},{default:x(()=>[te(M(e.$t("Reply")),1)]),_:1},8,["disabled"])),[[f,r.submitting]])]),_:1},8,["defaultMentions","disabled","autofocus","mentionQuery","content","placeholder"])],32)])])):O("",!0)],64)):O("",!0)],64)}const r8e=de(W6e,[["render",o8e]]),i8e={name:"FeedComments",components:{SingleComment:QN,NestedReplyBox:r8e},props:["feed","show_all","checkPermission","defaultMentions","sortBy"],emits:["forceShowAll"],data(){return{lastComment:null,loading:!1}},watch:{sortBy(){this.sortComments()}},methods:{fetchComments(){this.loading=!0,this.$get("feeds/"+this.feed.id+"/comments").then(e=>{this.feed.comments=e.comments,this.formatComments(),this.$eventBus.emit("feed_interaction",this.feed.id)}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},formatComments(){let e={},t=this.feed.comments,n=[];t.forEach(o=>{o.parent_id?n.push(o):e[o.id]=o}),n.forEach(o=>{e[o.parent_id]&&(e[o.parent_id].comments||(e[o.parent_id].comments=[]),e[o.parent_id].comments.push(o))}),this.feed.comments=Object.values(e),this.lastComment=this.feed.comments[this.feed.comments.length-1]},handleCommentDelete(e){this.feed.comments.splice(e,1),this.feed.comments_count--,this.formatComments()},copyCommentLink(e){let t={name:"single_feed",params:{feed_slug:this.feed.slug},query:{comment_id:e.id}};this.space_slug&&(t={name:"space_feed",params:{feed_slug:this.feed.slug,space:this.space_slug}});let n=this.$router.resolve(t),o=this.appVars.urls.portal_base;o=o.replace(/\/$/,"");let r=o+n.fullPath;navigator.clipboard.writeText(r).then(()=>{this.$notify.success(this.$t("Link copied to clipboard"))}).catch(i=>{this.$notify.error(this.$t("Failed to copy the link"))})},sortComments(){if(this.sortBy=="oldest"||!this.sortBy)this.feed.comments=this.feed.comments.sort((e,t)=>e.id-t.id);else if(this.sortBy=="latest")this.feed.comments=this.feed.comments.sort((e,t)=>t.id-e.id);else if(this.sortBy=="popular")this.feed.comments=this.feed.comments.sort((e,t)=>t.reactions_count-e.reactions_count);else if(this.sortBy=="most_replied")return console.log("Hello"),this.feed.comments=this.feed.comments.sort((e,t)=>{var n,o;return(((n=t.comments)==null?void 0:n.length)||0)-(((o=e.comments)==null?void 0:o.length)||0)});return this.feed.comments}},mounted(){this.feed.comments?this.formatComments():this.feed.comments_count&&this.fetchComments()}},s8e={key:0,class:"feed_comments"},l8e=["id"],a8e={key:1,class:"feed_comments"},c8e={class:"each_comment"};function u8e(e,t,n,o,r,i){const s=Wt,l=z("nested-reply-box"),a=z("single-comment");return n.show_all?(_(),k("div",s8e,[r.loading?(_(),L(s,{key:0,row:5,class:"feed_comments_skeleton"})):(_(),k(Q,{key:1},[le(e.$slots,"before_comments_start"),(_(!0),k(Q,null,Te(n.feed.comments,(c,u)=>(_(),k("div",{class:"each_comment",key:c.id,id:"comment_"+c.id},[y(a,{onCopyLink:i.copyCommentLink,onDeleted:d=>i.handleCommentDelete(u),comment:c},Vo({_:2},[c.parent_id?void 0:{name:"after_comment_text",fn:x(()=>[y(l,{defaultMentions:n.defaultMentions?n.defaultMentions:[],onCopyLink:i.copyCommentLink,checkPermission:n.checkPermission,feed:n.feed,comment:c},null,8,["defaultMentions","onCopyLink","checkPermission","feed","comment"])]),key:"0"}]),1032,["onCopyLink","onDeleted","comment"])],8,l8e))),128))],64))])):r.lastComment?(_(),k("div",a8e,[g("div",c8e,[y(a,{onCopyLink:i.copyCommentLink,onDeleted:t[1]||(t[1]=c=>i.handleCommentDelete(n.feed.comments.length-1)),comment:r.lastComment},Vo({_:2},[r.lastComment.parent_id?void 0:{name:"after_comment_text",fn:x(()=>[y(l,{defaultMentions:n.defaultMentions?n.defaultMentions:[],onCopyLink:i.copyCommentLink,show_reacts_only:!0,checkPermission:n.checkPermission,feed:n.feed,comment:r.lastComment},{after_reply_box_text:x(()=>[r.lastComment.comments&&r.lastComment.comments.length?(_(),k("span",{key:0,onClick:t[0]||(t[0]=c=>e.$emit("forceShowAll")),class:"reply_btn last_comment_reply_txt"},M(e.$_n("%d reply","%d replies",r.lastComment.comments.length)),1)):O("",!0)]),_:1},8,["defaultMentions","onCopyLink","checkPermission","feed","comment"])]),key:"0"}]),1032,["onCopyLink","comment"])]),n.feed.comments_count>1?(_(),k("div",{key:0,onClick:t[2]||(t[2]=c=>e.$emit("forceShowAll")),class:"each_comment show_all_comments"},M(e.$t("View more comments")),1)):O("",!0)])):O("",!0)}const fL=de(i8e,[["render",u8e]]),d8e={name:"ReactedUsers",components:{UserRouteLink:Md},data(){return{centerDialogVisible:!1,reactions:null,loading:!1}},props:{feed:{type:Object,required:!0,default:()=>({})}},computed:{reactedProfiles(){let e=[],t=null;return this.feed.has_user_react&&(t=this.auth.user_id,e.push({user_id:t,avatar:this.auth.avatar})),this.each(this.feed.reactions,n=>{n.user_id!=t&&n.xprofile&&e.push({user_id:n.user_id,avatar:n.xprofile.avatar})}),e.slice(0,3)}},methods:{getReactions(){this.reactions||(this.loading=!0,this.$get("feeds/"+this.feed.id+"/reactions").then(e=>{this.reactions=e.reactions}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1}))}}},f8e=["title"],p8e={key:0,class:"reactions_avatars"},h8e=["alt","src"],m8e={key:0},_8e={key:1},g8e={class:"fcom_user_lists"},v8e={key:2};function b8e(e,t,n,o,r,i){const s=Wt,l=z("UserAvatar"),a=z("UserRouteLink"),c=$o,u=po;return _(),L(u,{persistent:!1,placement:"bottom",title:e.$t("Likes"),width:200,trigger:"click",onShow:i.getReactions},{reference:x(()=>[g("div",{title:e.$t("Click to view"),class:"fcom_reactions"},[i.reactedProfiles&&i.reactedProfiles.length?(_(),k("div",p8e,[(_(!0),k(Q,null,Te(i.reactedProfiles,d=>(_(),k("span",{key:d.id,class:"fcom_reaction_avatar fcom_avatar_is_rounded fcom_user_avatar"},[d!=null&&d.avatar?(_(),k("img",{key:0,alt:e.$t("Reacted Users"),src:d.avatar},null,8,h8e)):O("",!0)]))),128))])):O("",!0),g("span",null,M(e.$_n("%s like","%s likes",n.feed.reactions_count)),1)],8,f8e)]),default:x(()=>[r.loading?(_(),k("div",m8e,[y(s,{animated:!0,rows:3})])):r.reactions?(_(),k("div",_8e,[y(c,{"max-height":"300px"},{default:x(()=>[g("ul",g8e,[(_(!0),k(Q,null,Te(r.reactions,d=>(_(),k("li",null,[d.xprofile?(_(),k(Q,{key:0},[y(l,{with_level:!1,xprofile:d.xprofile},null,8,["xprofile"]),y(a,{show_badge:!0,xprofile:d.xprofile},null,8,["xprofile"])],64)):O("",!0)]))),256))])]),_:1})])):(_(),k("div",v8e,[g("p",null,M(e.$t("Failed to load the list")),1)]))]),_:1},8,["title","onShow"])}const y8e=de(d8e,[["render",b8e]]),w8e={name:"ChatIcon"},k8e={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x8e=g("path",{d:"M6.66732 11.25H13.334M6.66732 7.08333H10.0007",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),C8e=g("path",{d:"M5.08267 15.833C3.99924 15.7264 3.18762 15.401 2.6433 14.8567C1.66699 13.8804 1.66699 12.309 1.66699 9.16634V8.74967C1.66699 5.60698 1.66699 4.03563 2.6433 3.05932C3.61961 2.08301 5.19096 2.08301 8.33366 2.08301H11.667C14.8097 2.08301 16.381 2.08301 17.3573 3.05932C18.3337 4.03563 18.3337 5.60698 18.3337 8.74967V9.16634C18.3337 12.309 18.3337 13.8804 17.3573 14.8567C16.381 15.833 14.8097 15.833 11.667 15.833C11.1999 15.8434 10.8279 15.879 10.4625 15.9622C9.46385 16.1921 8.5391 16.7031 7.62522 17.1487C6.32307 17.7837 5.67199 18.1012 5.2634 17.8039C4.48174 17.2218 5.24577 15.4179 5.41699 14.583",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),S8e=[x8e,C8e];function $8e(e,t,n,o,r,i){return _(),k("svg",k8e,S8e)}const R4=de(w8e,[["render",$8e]]);function E8e(){this.__data__=[],this.size=0}var T8e=E8e;function M8e(e,t){return e===t||e!==e&&t!==t}var pL=M8e,A8e=pL;function I8e(e,t){for(var n=e.length;n--;)if(A8e(e[n][0],t))return n;return-1}var v0=I8e,O8e=v0,P8e=Array.prototype,N8e=P8e.splice;function L8e(e){var t=this.__data__,n=O8e(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():N8e.call(t,n,1),--this.size,!0}var R8e=L8e,F8e=v0;function D8e(e){var t=this.__data__,n=F8e(t,e);return n<0?void 0:t[n][1]}var B8e=D8e,z8e=v0;function V8e(e){return z8e(this.__data__,e)>-1}var j8e=V8e,H8e=v0;function U8e(e,t){var n=this.__data__,o=H8e(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var W8e=U8e,q8e=T8e,K8e=R8e,G8e=B8e,Y8e=j8e,Z8e=W8e;function Ad(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ad.prototype.clear=q8e;Ad.prototype.delete=K8e;Ad.prototype.get=G8e;Ad.prototype.has=Y8e;Ad.prototype.set=Z8e;var b0=Ad,J8e=b0;function X8e(){this.__data__=new J8e,this.size=0}var Q8e=X8e;function eSe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var tSe=eSe;function nSe(e){return this.__data__.get(e)}var oSe=nSe;function rSe(e){return this.__data__.has(e)}var iSe=rSe,sSe=Ed,lSe=sSe(Object,"create"),y0=lSe,i9=y0;function aSe(){this.__data__=i9?i9(null):{},this.size=0}var cSe=aSe;function uSe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var dSe=uSe,fSe=y0,pSe="__lodash_hash_undefined__",hSe=Object.prototype,mSe=hSe.hasOwnProperty;function _Se(e){var t=this.__data__;if(fSe){var n=t[e];return n===pSe?void 0:n}return mSe.call(t,e)?t[e]:void 0}var gSe=_Se,vSe=y0,bSe=Object.prototype,ySe=bSe.hasOwnProperty;function wSe(e){var t=this.__data__;return vSe?t[e]!==void 0:ySe.call(t,e)}var kSe=wSe,xSe=y0,CSe="__lodash_hash_undefined__";function SSe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xSe&&t===void 0?CSe:t,this}var $Se=SSe,ESe=cSe,TSe=dSe,MSe=gSe,ASe=kSe,ISe=$Se;function Id(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Id.prototype.clear=ESe;Id.prototype.delete=TSe;Id.prototype.get=MSe;Id.prototype.has=ASe;Id.prototype.set=ISe;var OSe=Id,s9=OSe,PSe=b0,NSe=P4;function LSe(){this.size=0,this.__data__={hash:new s9,map:new(NSe||PSe),string:new s9}}var RSe=LSe;function FSe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var DSe=FSe,BSe=DSe;function zSe(e,t){var n=e.__data__;return BSe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var w0=zSe,VSe=w0;function jSe(e){var t=VSe(this,e).delete(e);return this.size-=t?1:0,t}var HSe=jSe,USe=w0;function WSe(e){return USe(this,e).get(e)}var qSe=WSe,KSe=w0;function GSe(e){return KSe(this,e).has(e)}var YSe=GSe,ZSe=w0;function JSe(e,t){var n=ZSe(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}var XSe=JSe,QSe=RSe,e9e=HSe,t9e=qSe,n9e=YSe,o9e=XSe;function Od(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Od.prototype.clear=QSe;Od.prototype.delete=e9e;Od.prototype.get=t9e;Od.prototype.has=n9e;Od.prototype.set=o9e;var F4=Od,r9e=b0,i9e=P4,s9e=F4,l9e=200;function a9e(e,t){var n=this.__data__;if(n instanceof r9e){var o=n.__data__;if(!i9e||o.length<l9e-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new s9e(o)}return n.set(e,t),this.size=n.size,this}var c9e=a9e,u9e=b0,d9e=Q8e,f9e=tSe,p9e=oSe,h9e=iSe,m9e=c9e;function Pd(e){var t=this.__data__=new u9e(e);this.size=t.size}Pd.prototype.clear=d9e;Pd.prototype.delete=f9e;Pd.prototype.get=p9e;Pd.prototype.has=h9e;Pd.prototype.set=m9e;var hL=Pd,_9e="__lodash_hash_undefined__";function g9e(e){return this.__data__.set(e,_9e),this}var v9e=g9e;function b9e(e){return this.__data__.has(e)}var y9e=b9e,w9e=F4,k9e=v9e,x9e=y9e;function Qg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new w9e;++t<n;)this.add(e[t])}Qg.prototype.add=Qg.prototype.push=k9e;Qg.prototype.has=x9e;var mL=Qg;function C9e(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}var S9e=C9e;function $9e(e,t){return e.has(t)}var _L=$9e,E9e=mL,T9e=S9e,M9e=_L,A9e=1,I9e=2;function O9e(e,t,n,o,r,i){var s=n&A9e,l=e.length,a=t.length;if(l!=a&&!(s&&a>l))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&I9e?new E9e:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],m=t[d];if(o)var b=s?o(m,h,d,t,e,i):o(h,m,d,e,t,i);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!T9e(t,function(v,E){if(!M9e(p,E)&&(h===v||r(h,v,n,o,i)))return p.push(E)})){f=!1;break}}else if(!(h===m||r(h,m,n,o,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var gL=O9e,P9e=Gi,N9e=P9e.Uint8Array,L9e=N9e;function R9e(e){var t=-1,n=Array(e.size);return e.forEach(function(o,r){n[++t]=[r,o]}),n}var F9e=R9e;function D9e(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var D4=D9e,l9=U1,a9=L9e,B9e=pL,z9e=gL,V9e=F9e,j9e=D4,H9e=1,U9e=2,W9e="[object Boolean]",q9e="[object Date]",K9e="[object Error]",G9e="[object Map]",Y9e="[object Number]",Z9e="[object RegExp]",J9e="[object Set]",X9e="[object String]",Q9e="[object Symbol]",e$e="[object ArrayBuffer]",t$e="[object DataView]",c9=l9?l9.prototype:void 0,tb=c9?c9.valueOf:void 0;function n$e(e,t,n,o,r,i,s){switch(n){case t$e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case e$e:return!(e.byteLength!=t.byteLength||!i(new a9(e),new a9(t)));case W9e:case q9e:case Y9e:return B9e(+e,+t);case K9e:return e.name==t.name&&e.message==t.message;case Z9e:case X9e:return e==t+"";case G9e:var l=V9e;case J9e:var a=o&H9e;if(l||(l=j9e),e.size!=t.size&&!a)return!1;var c=s.get(e);if(c)return c==t;o|=U9e,s.set(e,t);var u=z9e(l(e),l(t),o,r,i,s);return s.delete(e),u;case Q9e:if(tb)return tb.call(e)==tb.call(t)}return!1}var o$e=n$e;function r$e(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}var i$e=r$e,s$e=i$e,l$e=Ji;function a$e(e,t,n){var o=t(e);return l$e(e)?o:s$e(o,n(e))}var c$e=a$e;function u$e(e,t){for(var n=-1,o=e==null?0:e.length,r=0,i=[];++n<o;){var s=e[n];t(s,n,e)&&(i[r++]=s)}return i}var d$e=u$e;function f$e(){return[]}var p$e=f$e,h$e=d$e,m$e=p$e,_$e=Object.prototype,g$e=_$e.propertyIsEnumerable,u9=Object.getOwnPropertySymbols,v$e=u9?function(e){return e==null?[]:(e=Object(e),h$e(u9(e),function(t){return g$e.call(e,t)}))}:m$e,b$e=v$e,y$e=c$e,w$e=b$e,k$e=O4;function x$e(e){return y$e(e,k$e,w$e)}var C$e=x$e,d9=C$e,S$e=1,$$e=Object.prototype,E$e=$$e.hasOwnProperty;function T$e(e,t,n,o,r,i){var s=n&S$e,l=d9(e),a=l.length,c=d9(t),u=c.length;if(a!=u&&!s)return!1;for(var d=a;d--;){var f=l[d];if(!(s?f in t:E$e.call(t,f)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=s;++d<a;){f=l[d];var v=e[f],E=t[f];if(o)var w=s?o(E,v,f,t,e,i):o(v,E,f,e,t,i);if(!(w===void 0?v===E||r(v,E,n,o,i):w)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var S=e.constructor,T=t.constructor;S!=T&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof T=="function"&&T instanceof T)&&(m=!1)}return i.delete(e),i.delete(t),m}var M$e=T$e,nb=hL,A$e=gL,I$e=o$e,O$e=M$e,f9=uL,p9=Ji,h9=T4,P$e=A4,N$e=1,m9="[object Arguments]",_9="[object Array]",Mm="[object Object]",L$e=Object.prototype,g9=L$e.hasOwnProperty;function R$e(e,t,n,o,r,i){var s=p9(e),l=p9(t),a=s?_9:f9(e),c=l?_9:f9(t);a=a==m9?Mm:a,c=c==m9?Mm:c;var u=a==Mm,d=c==Mm,f=a==c;if(f&&h9(e)){if(!h9(t))return!1;s=!0,u=!1}if(f&&!u)return i||(i=new nb),s||P$e(e)?A$e(e,t,n,o,r,i):I$e(e,t,a,n,o,r,i);if(!(n&N$e)){var p=u&&g9.call(e,"__wrapped__"),h=d&&g9.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,b=h?t.value():t;return i||(i=new nb),r(m,b,n,o,i)}}return f?(i||(i=new nb),O$e(e,t,n,o,r,i)):!1}var F$e=R$e,D$e=F$e,v9=wh;function vL(e,t,n,o,r){return e===t?!0:e==null||t==null||!v9(e)&&!v9(t)?e!==e&&t!==t:D$e(e,t,n,o,vL,r)}var bL=vL,B$e=hL,z$e=bL,V$e=1,j$e=2;function H$e(e,t,n,o){var r=n.length,i=r,s=!o;if(e==null)return!i;for(e=Object(e);r--;){var l=n[r];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<i;){l=n[r];var a=l[0],c=e[a],u=l[1];if(s&&l[2]){if(c===void 0&&!(a in e))return!1}else{var d=new B$e;if(o)var f=o(c,u,a,e,t,d);if(!(f===void 0?z$e(u,c,V$e|j$e,o,d):f))return!1}}return!0}var U$e=H$e,W$e=_d;function q$e(e){return e===e&&!W$e(e)}var yL=q$e,K$e=yL,G$e=O4;function Y$e(e){for(var t=G$e(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,K$e(r)]}return t}var Z$e=Y$e;function J$e(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var wL=J$e,X$e=U$e,Q$e=Z$e,e7e=wL;function t7e(e){var t=Q$e(e);return t.length==1&&t[0][2]?e7e(t[0][0],t[0][1]):function(n){return n===e||X$e(n,e,t)}}var n7e=t7e,o7e=Ji,r7e=W1,i7e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s7e=/^\w*$/;function l7e(e,t){if(o7e(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||r7e(e)?!0:s7e.test(e)||!i7e.test(e)||t!=null&&e in Object(t)}var B4=l7e,kL=F4,a7e="Expected a function";function z4(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(a7e);var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(z4.Cache||kL),n}z4.Cache=kL;var c7e=z4,u7e=c7e,d7e=500;function f7e(e){var t=u7e(e,function(o){return n.size===d7e&&n.clear(),o}),n=t.cache;return t}var p7e=f7e,h7e=p7e,m7e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_7e=/\\(\\)?/g,g7e=h7e(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(m7e,function(n,o,r,i){t.push(r?i.replace(_7e,"$1"):o||n)}),t}),v7e=g7e;function b7e(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}var y7e=b7e,b9=U1,w7e=y7e,k7e=Ji,x7e=W1,C7e=1/0,y9=b9?b9.prototype:void 0,w9=y9?y9.toString:void 0;function xL(e){if(typeof e=="string")return e;if(k7e(e))return w7e(e,xL)+"";if(x7e(e))return w9?w9.call(e):"";var t=e+"";return t=="0"&&1/e==-C7e?"-0":t}var S7e=xL,$7e=S7e;function E7e(e){return e==null?"":$7e(e)}var T7e=E7e,M7e=Ji,A7e=B4,I7e=v7e,O7e=T7e;function P7e(e,t){return M7e(e)?e:A7e(e,t)?[e]:I7e(O7e(e))}var CL=P7e,N7e=W1,L7e=1/0;function R7e(e){if(typeof e=="string"||N7e(e))return e;var t=e+"";return t=="0"&&1/e==-L7e?"-0":t}var k0=R7e,F7e=CL,D7e=k0;function B7e(e,t){t=F7e(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[D7e(t[n++])];return n&&n==o?e:void 0}var SL=B7e,z7e=SL;function V7e(e,t,n){var o=e==null?void 0:z7e(e,t);return o===void 0?n:o}var j7e=V7e;function H7e(e,t){return e!=null&&t in Object(e)}var U7e=H7e,W7e=CL,q7e=E4,K7e=Ji,G7e=tL,Y7e=M4,Z7e=k0;function J7e(e,t,n){t=W7e(t,e);for(var o=-1,r=t.length,i=!1;++o<r;){var s=Z7e(t[o]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++o!=r?i:(r=e==null?0:e.length,!!r&&Y7e(r)&&G7e(s,r)&&(K7e(e)||q7e(e)))}var X7e=J7e,Q7e=U7e,eEe=X7e;function tEe(e,t){return e!=null&&eEe(e,t,Q7e)}var nEe=tEe,oEe=bL,rEe=j7e,iEe=nEe,sEe=B4,lEe=yL,aEe=wL,cEe=k0,uEe=1,dEe=2;function fEe(e,t){return sEe(e)&&lEe(t)?aEe(cEe(e),t):function(n){var o=rEe(n,e);return o===void 0&&o===t?iEe(n,e):oEe(t,o,uEe|dEe)}}var pEe=fEe;function hEe(e){return function(t){return t==null?void 0:t[e]}}var mEe=hEe,_Ee=SL;function gEe(e){return function(t){return _Ee(t,e)}}var vEe=gEe,bEe=mEe,yEe=vEe,wEe=B4,kEe=k0;function xEe(e){return wEe(e)?bEe(kEe(e)):yEe(e)}var CEe=xEe,SEe=n7e,$Ee=pEe,EEe=iL,TEe=Ji,MEe=CEe;function AEe(e){return typeof e=="function"?e:e==null?EEe:typeof e=="object"?TEe(e)?$Ee(e[0],e[1]):SEe(e):MEe(e)}var IEe=AEe;function OEe(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1}var PEe=OEe;function NEe(e){return e!==e}var LEe=NEe;function REe(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1}var FEe=REe,DEe=PEe,BEe=LEe,zEe=FEe;function VEe(e,t,n){return t===t?zEe(e,t,n):DEe(e,BEe,n)}var jEe=VEe,HEe=jEe;function UEe(e,t){var n=e==null?0:e.length;return!!n&&HEe(e,t,0)>-1}var WEe=UEe;function qEe(e,t,n){for(var o=-1,r=e==null?0:e.length;++o<r;)if(n(t,e[o]))return!0;return!1}var KEe=qEe;function GEe(){}var YEe=GEe,ob=aL,ZEe=YEe,JEe=D4,XEe=1/0,QEe=ob&&1/JEe(new ob([,-0]))[1]==XEe?function(e){return new ob(e)}:ZEe,eTe=QEe,tTe=mL,nTe=WEe,oTe=KEe,rTe=_L,iTe=eTe,sTe=D4,lTe=200;function aTe(e,t,n){var o=-1,r=nTe,i=e.length,s=!0,l=[],a=l;if(n)s=!1,r=oTe;else if(i>=lTe){var c=t?null:iTe(e);if(c)return sTe(c);s=!1,r=rTe,a=new tTe}else a=t?[]:l;e:for(;++o<i;){var u=e[o],d=t?t(u):u;if(u=n||u!==0?u:0,s&&d===d){for(var f=a.length;f--;)if(a[f]===d)continue e;t&&a.push(d),l.push(u)}else r(a,d,n)||(a!==l&&a.push(d),l.push(u))}return l}var cTe=aTe,uTe=IEe,dTe=cTe;function fTe(e,t){return e&&e.length?dTe(e,uTe(t)):[]}var pTe=fTe;const hTe=jl(pTe),mTe={name:"FeedFooter",components:{ReactedUsers:y8e,FeedComments:fL,FeedTextComposer:Rh,ChatIcon:R4,HeartIcon:L4},props:["feed","is_single","space_slug"],emits:["commented","removeFromBookmark"],data(){return{commenting:!1,comment:{message:"",media_images:[]},saving:!1,show_all_comments:this.is_single,reactions:[],isAutoFocus:!1,showCommentBox:!0,defaultMentions:[],sortBy:"oldest"}},methods:{maybeSave(e){(e.metaKey||e.ctrlKey)&&e.keyCode===13&&this.postComment()},postComment(){this.saving=!0,this.$post("feeds/"+this.feed.id+"/comments",{comment:this.comment.message,media_images:this.comment.media_images,meta:this.comment.meta}).then(e=>{this.feed.comments||(this.feed.comments=[]),this.feed.comments.push(e.comment),this.$emit("commented",e.comment),this.feed.comments_count=parseInt(this.feed.comments_count)+1,this.comment={message:"",media_images:[]},this.commenting=!1,this.showCommentBox=!1,this.$nextTick(()=>{this.showCommentBox=!0})}).catch(e=>{this.$handleError(e)}).finally(()=>{this.saving=!1})},showCommentForm(){this.show_all_comments=!0,this.commenting?(this.commenting=!1,setTimeout(()=>{this.commenting=!0,this.isAutoFocus=!0},100)):(this.commenting=!0,this.isAutoFocus=!0),this.prepareDefaultMentions()},showAll(){this.show_all_comments=!this.show_all_comments,this.commenting=!this.commenting,this.isAutoFocus=!1,this.prepareDefaultMentions()},toggleReact(){const e={react_type:"like"};this.feed.has_user_react&&(e.remove=!0),this.feed.has_user_react=!this.feed.has_user_react,this.$post("feeds/"+this.feed.id+"/react",e).then(t=>{this.feed.reactions_count=t.new_count}).catch(t=>{this.$handleError(t),this.feed.has_user_react=!this.feed.has_user_react})},prepareDefaultMentions(){if(!this.auth.user_id||this.defaultMentions.length)return;let e=this.auth.user_id,t=[];this.feed.user_id!=e&&t.push(this.feed.xprofile);let n=this.feed.comments.slice(-30);this.each(n,o=>{o.user_id!=e&&t.push(o.xprofile)}),this.defaultMentions=hTe(t,"user_id")},changeCommentsShortBy(){this.$storeLocalData("comments_sort_by",this.sortBy)}},mounted(){this.sortBy=this.$getLocalData("comments_sort_by","oldest"),this.is_single&&this.prepareDefaultMentions()}},_Te={ref:"feed_footer",class:"feed_footer"},gTe={class:"fcom_feed_footer_actions"},vTe={class:"fcom_sr_only"},bTe={class:"fcom_feed_footer_meta"},yTe={key:0},wTe={key:0,class:"fcom_reactions_count feed_reaction_meta"},kTe={key:1,class:"feed_reaction_meta"},xTe={key:2,class:"feed_reaction_meta"},CTe={key:0,ref:"fcom_comment_sorting",style:{margin:"-15px 0 5px"},class:"fcom_comment_sorting"},STe=["id"],$Te={key:0,style:{padding:"0",margin:"0","text-align":"center"}},ETe={key:1,class:"feed_commenting"},TTe={class:"person_avatar"},MTe=["src"],ATe={key:2,class:""},ITe={style:{padding:"0",margin:"0","text-align":"center"}},OTe=["href"];function PTe(e,t,n,o,r,i){var v,E,w,S;const s=z("HeartIcon"),l=ge,a=z("ChatIcon"),c=z("ReactedUsers"),u=Ho,d=jo,f=z("feed-comments"),p=Ye,h=z("feed-text-composer"),m=z("router-link"),b=Mt("loading");return _(),k(Q,null,[g("div",_Te,[g("div",gTe,[g("ul",null,[g("li",{class:R(["fcom_reaction fcom_reaction_list",{react_active:n.feed.has_user_react}]),onClick:t[0]||(t[0]=T=>i.toggleReact())},[y(l,{class:R({user_reacted:n.feed.has_user_react})},{default:x(()=>[y(s,{filled:n.feed.has_user_react},null,8,["filled"])]),_:1},8,["class"])],2),((v=n.feed.meta)==null?void 0:v.comments_disabled)!=="yes"?(_(),k("li",{key:0,class:"fcom_comment_btn_wrap",onClick:t[1]||(t[1]=T=>i.showCommentForm())},[y(l,null,{default:x(()=>[y(a)]),_:1}),g("span",null,[g("span",vTe,M(e.$t("Comment")),1)])])):O("",!0)])]),g("div",bTe,[n.feed.reactions_count||n.feed.comments_count||((E=n.feed.meta)==null?void 0:E.comments_disabled)==="yes"?(_(),k("ul",yTe,[n.feed.reactions_count?(_(),k("li",wTe,[y(c,{feed:n.feed},null,8,["feed"])])):O("",!0),n.feed.comments_count?(_(),k("li",kTe,[g("div",{class:"feed_comment_count",onClick:t[2]||(t[2]=T=>i.showAll())},M(e.$_n("%d comment","%d comments",n.feed.comments_count)),1)])):((w=n.feed.meta)==null?void 0:w.comments_disabled)==="yes"?(_(),k("li",xTe,M(e.$t("comments disabled")),1)):O("",!0)])):O("",!0)])],512),y(f,{sortBy:r.sortBy,defaultMentions:r.defaultMentions,onForceShowAll:i.showAll,show_all:r.show_all_comments,feed:n.feed},{before_comments_start:x(()=>[n.feed.comments_count>=2?(_(),k("div",CTe,[y(d,{style:{width:"95px","padding-left":"0"},"aria-label":e.$t("Sort comments by"),onChange:t[3]||(t[3]=T=>i.changeCommentsShortBy()),modelValue:r.sortBy,"onUpdate:modelValue":t[4]||(t[4]=T=>r.sortBy=T),class:"fcom_off_color fcom_minimal_select","popper-class":"plain_select",placeholder:e.$t("Sort by")},{default:x(()=>[y(u,{value:"oldest",label:e.$t("Earliest")},null,8,["label"]),y(u,{value:"latest",label:e.$t("Latest")},null,8,["label"]),y(u,{value:"popular",label:e.$t("Popular")},null,8,["label"]),y(u,{value:"most_replied",label:e.$t("Most Replied")},null,8,["label"])]),_:1},8,["aria-label","modelValue","placeholder"])],512)):O("",!0)]),_:1},8,["sortBy","defaultMentions","onForceShowAll","show_all","feed"]),r.commenting||n.is_single?(_(),k("div",{key:0,id:"feed_comment_form_"+n.feed.id,class:"feed_comment feed_commentbox_main"},[((S=n.feed.meta)==null?void 0:S.comments_disabled)==="yes"?(_(),k(Q,{key:0},[n.feed.comments_count?(_(),k("p",$Te,M(e.$t("Comments are disabled for this post.")),1)):O("",!0)],64)):e.hasCommentPermission(n.feed)?(_(),k("div",ETe,[g("div",TTe,[g("img",{alt:"",src:e.auth.photo},null,8,MTe)]),r.showCommentBox?(_(),k("div",{key:0,onKeydown:t[6]||(t[6]=Ut((...T)=>i.maybeSave&&i.maybeSave(...T),["enter"])),class:"feed_comment_input"},[y(h,{mentionQuery:{space_id:n.feed.space_id},autofocus_changed:r.commenting,defaultMentions:r.defaultMentions,autofocus:r.isAutoFocus,disabled:r.saving,placeholder:e.$t("Write a comment"),content:r.comment},{default:x(()=>[ze((_(),L(p,{disabled:r.saving,class:"fcom_primary_button",onClick:t[5]||(t[5]=T=>i.postComment())},{default:x(()=>[te(M(e.$t("Reply")),1)]),_:1},8,["disabled"])),[[b,r.saving]])]),_:1},8,["mentionQuery","autofocus_changed","defaultMentions","autofocus","disabled","placeholder","content"])],32)):O("",!0)])):(_(),k("div",ATe,[g("p",ITe,[te(M(e.$t("Please join the Space to post a comment."))+" ",1),e.appVars.auth.user_id?(_(),k(Q,{key:0},[n.feed.space?(_(),L(m,{key:0,to:{name:"space_feeds",params:{space:n.feed.space.slug}}},{default:x(()=>[te(M(e.$t("Go to community")),1)]),_:1},8,["to"])):O("",!0)],64)):(_(),k("a",{key:1,href:e.getCurrentAuthUrl()},M(e.appVars.allow_signup?e.$t("Login / Signup"):e.$t("Login")),9,OTe))])]))],8,STe)):O("",!0)],64)}const NTe=de(mTe,[["render",PTe]]),LTe={name:"ImageCarousel",props:["feed"],computed:{srcList(){return this.feed.meta.media_items.map(e=>e.url)}}},RTe={class:"fcom_image_carousel"},FTe={class:"fcom_image_carousel__container"},DTe={class:"fcom_carousel__image"};function BTe(e,t,n,o,r,i){const s=Hl;return _(),k("div",RTe,[g("div",FTe,[(_(!0),k(Q,null,Te(n.feed.meta.media_items,(l,a)=>(_(),k("div",DTe,[y(s,{lazy:"",alt:"",src:l.url,"zoom-rate":1.2,"max-scale":7,"min-scale":.5,"preview-teleported":!0,"initial-index":a,"preview-src-list":i.srcList,fit:"cover"},null,8,["src","initial-index","preview-src-list"])]))),256))])])}const zTe=de(LTe,[["render",BTe]]),VTe={name:"SpaceIcon",props:["space_profile"]},jTe=["alt","src"],HTe={key:1,class:"fcom_emoji"},UTe={key:2,class:"fcom_shape"},WTe={key:3,class:"fcom_no_avatar"};function qTe(e,t,n,o,r,i){var l,a,c,u;const s=ge;return n.space_profile.logo?(_(),k("img",{key:0,alt:e.$t("Space Logo"),src:n.space_profile.logo},null,8,jTe)):(l=n.space_profile.settings)!=null&&l.emoji?(_(),k("span",HTe,M((a=n.space_profile.settings)==null?void 0:a.emoji),1)):(c=n.space_profile.settings)!=null&&c.shape_svg?(_(),k("span",UTe,[y(s,{innerHTML:(u=n.space_profile.settings)==null?void 0:u.shape_svg},null,8,["innerHTML"])])):(_(),k("span",WTe))}const V4=de(VTe,[["render",qTe]]),KTe={name:"SingleLineTextarea",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},maxlength:{type:Number,default:500}},emits:["update:modelValue","enter"],methods:{onInput(e){const t=e.target.value.replace(/\n/g,"");this.$emit("update:modelValue",t),this.$nextTick(this.adjustTextareaHeight)},adjustTextareaHeight(){const e=this.$refs.textarea;e.style.height="auto",e.style.height=e.scrollHeight+"px"}},mounted(){this.adjustTextareaHeight()},watch:{modelValue(){this.$nextTick(this.adjustTextareaHeight)}}},GTe=["value","maxlength","placeholder"];function YTe(e,t,n,o,r,i){return _(),k("textarea",{value:n.modelValue,onInput:t[0]||(t[0]=(...s)=>i.onInput&&i.onInput(...s)),onKeydown:t[1]||(t[1]=Ut(qe(s=>e.$emit("enter"),["prevent"]),["enter"])),ref:"textarea",maxlength:n.maxlength,class:"fcom_status_title_input",rows:"1",placeholder:n.placeholder},null,40,GTe)}const ZTe=de(KTe,[["render",YTe]]),JTe={name:"CreateStatusForm",emits:["updatePost"],props:{space:{type:String,default:""},btn_text:{type:String,default:"Post"},editing_feed:{type:Object,default:()=>({title:"",type:"text",message:"",media_image:"",topic_ids:[]})},defaultState:{type:String,default:"idle"},disableSpace:{type:Boolean,default:!1}},components:{SpaceIcon:V4,FeedTextComposer:Rh,SingleLineTextarea:ZTe},data(){return{feed:this.editing_feed,isAutoFocus:!1,state:this.defaultState,posting:!1,doingOembed:!1,oembed:null,postableSpaces:[],autofocus_changed:!1,globalDisabled:this.appVars.features.disable_global_posts,hasPostTitle:this.hasFeature("has_post_title")}},computed:{canPost(){var e,t;return this.space?(t=(e=this.appVars.auth.spaces[this.space])==null?void 0:e.permissions)==null?void 0:t.can_create_post:this.appVars.auth.user_id},currentPlaceHolder(){return this.state=="active"?this.$t("Write something here..."):this.$t("What's happening, %s",this.auth.first_name)},currentTopics(){var n;let e=this.space;e||(e=this.feed.space);let t=((n=this.appVars.auth.spaces[e])==null?void 0:n.topics)||[];return t=Object.values(t),this.isModerator(e)?t:t.filter(o=>o.admin_only!="yes")}},emits:["added"],methods:{changeAutoFocus(){this.feed.title=this.feed.title.replace(/\n/g,""),this.autofocus_changed=!1,setTimeout(()=>{this.autofocus_changed=!0},100)},makeActive(){this.prepareData(),this.state="active"},post(){if(this.state!="active")return;if(this.feed.id){this.$emit("updatePost",this.feed);return}const e=this.feed;if(this.space&&(e.space=this.space),!e.space){this.$refs.fcom_posting_space.classList.add("fcon_shake"),setTimeout(()=>{this.$refs.fcom_posting_space.classList.remove("fcon_shake")},500),this.$notify({title:this.$t("Error"),message:this.$t("Please select a space to post in."),type:"error"});return}e.space!="__self__post__"&&new RegExp("(?<!\\S)@everyone(?!\\S)").test(e.message)&&this.isCommunityModerator()?this.$confirm(this.$t("Are you sure you want to mention everyone? An automated email will be sent to all the members of the space after 5 minutes for this post"),this.$t("Mention all members?"),{confirmButtonText:this.$t("Yes"),cancelButtonText:this.$t("No"),type:"warning"}).then(()=>{this.postStatus(e)}).catch(()=>{this.state="active",this.$notify({title:this.$t("Cancelled"),message:this.$t("You have cancelled the action."),type:"info"})}):this.postStatus(e)},feedSpaceChanged(){this.feed.topic_ids=""},postStatus(e){this.posting=!0,this.$post("feeds",e).then(t=>{this.$emit("added",t.feed),this.feed={type:"text",message:"",media_image:"",topic_ids:[]},this.state="idle",t.last_fetched_timestamp&&this.$eventBus.emit("newest_feed_fetched",{last_fetched_timestamp:t.last_fetched_timestamp})}).catch(t=>{this.$handleError(t)}).finally(()=>{this.posting=!1})},prepareData(){if(this.space)return[];let e=this.appVars.auth.spaces;e=Object.values(e);let t=this.appVars.space_groups,n=[],o=[];this.each(t,r=>{let i=e.filter(s=>{let l=s.parent_id==r.id&&s.permissions&&s.permissions.can_create_post;return l&&o.push(s.slug),l});i.length&&n.push({label:r.title,spaces:i})}),this.globalDisabled||n.unshift({label:"",spaces:[{title:this.$t("On my profile"),slug:"__self__post__"}]}),this.postableSpaces=n}}},XTe={class:"create_header"},QTe={class:"person_avatar"},eMe=["alt","src"],tMe={key:0,ref:"fcom_topics_input",class:"fcom_topics_input"},nMe={style:{margin:"0",display:"block",width:"100%",padding:"5px 0","font-weight":"500"}},oMe={key:0,class:"fcom_meta_text"},rMe={class:"fcom_post_actions"},iMe={key:0,style:{color:"var(--fcom-text-off)","font-size":"80%","margin-right":"20px"}},sMe={class:"target_label"},lMe={ref:"fcom_posting_space",style:{"margin-right":"10px"}},aMe={key:0,class:"fcom_space_title"},cMe={key:1};function uMe(e,t,n,o,r,i){const s=z("SingleLineTextarea"),l=Ho,a=jo,c=z("SpaceIcon"),u=vA,d=Ye,f=z("feed-text-composer"),p=Mt("loading");return i.canPost?(_(),k("div",{key:0,class:R([{state_active:r.state=="active"},"create_status_holder"])},[g("div",XTe,[g("div",QTe,[g("img",{alt:e.$t("Your Photo"),src:e.auth.avatar},null,8,eMe)]),r.state!="active"?(_(),k("div",{key:0,onClick:t[0]||(t[0]=h=>i.makeActive()),class:"form_placeholder"},M(i.currentPlaceHolder),1)):(_(),k("div",{key:1,class:R([{fcom_editor_with_title:r.hasPostTitle},"fcom_create_status_box"])},[y(f,{placeholder:i.currentPlaceHolder,multipleMedia:!0,surveyApp:!0,videoApp:!0,autofocus:r.isAutoFocus||!r.hasPostTitle,onEditorCreated:t[7]||(t[7]=()=>{r.isAutoFocus=!0}),mentionQuery:{space:n.space},hasEveyoneMention:!0,disabled:r.posting,autofocus_changed:r.autofocus_changed,content:r.feed},{before_input:x(()=>[r.hasPostTitle?(_(),L(s,{key:0,maxlength:120,autofocus:!0,modelValue:r.feed.title,"onUpdate:modelValue":t[1]||(t[1]=h=>r.feed.title=h),onEnter:t[2]||(t[2]=h=>i.changeAutoFocus()),placeholder:r.hasPostTitle=="required"?e.$t("Short title of this post"):e.$t("Title (optional)")},null,8,["modelValue","placeholder"])):O("",!0)]),after_input:x(()=>[e.has_pro&&i.currentTopics.length?(_(),k("div",tMe,[y(a,{"popper-class":"fcom_topics_select","multiple-limit":e.appVars.topicsConfig.max_topics_per_post,modelValue:r.feed.topic_ids,"onUpdate:modelValue":t[3]||(t[3]=h=>r.feed.topic_ids=h),multiple:e.appVars.topicsConfig.max_topics_per_post>1,placeholder:e.$_n("Select a topic","Choose up to %s topics (optional)",e.appVars.topicsConfig.max_topics_per_post)},{default:x(()=>[(_(!0),k(Q,null,Te(i.currentTopics,h=>(_(),L(l,{key:h.slug,label:h.title,value:h.id},{default:x(()=>[g("span",nMe,M(h.title),1),h.description?(_(),k("span",oMe,M(h.description),1)):O("",!0)]),_:2},1032,["label","value"]))),128))]),_:1},8,["multiple-limit","modelValue","multiple","placeholder"])],512)):O("",!0)]),default:x(()=>[g("div",rMe,[n.space&&r.state=="active"?(_(),k("span",iMe," #"+M(n.space),1)):O("",!0),!n.space&&!n.disableSpace?(_(),k(Q,{key:1},[g("span",sMe,M(e.$t("Posting in:")),1),g("span",lMe,[y(a,{onChange:t[4]||(t[4]=h=>i.feedSpaceChanged()),class:"fcom_minimal_select",modelValue:r.feed.space,"onUpdate:modelValue":t[5]||(t[5]=h=>r.feed.space=h),placeholder:e.$t("Select Space"),style:{width:"170px"}},{default:x(()=>[(_(!0),k(Q,null,Te(r.postableSpaces,h=>(_(),L(u,{key:h.label,label:h.label},{default:x(()=>[(_(!0),k(Q,null,Te(h.spaces,m=>(_(),L(l,{key:m.slug,label:m.title,value:m.slug},{default:x(()=>[m.id?(_(),k("span",aMe,[y(c,{space_profile:m},null,8,["space_profile"]),g("span",null,M(e.getExcerpt(m.title,30)),1)])):(_(),k("span",cMe,M(e.getExcerpt(m.title,30)),1))]),_:2},1032,["label","value"]))),128))]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","placeholder"])],512)],64)):O("",!0),ze((_(),L(d,{onClick:t[6]||(t[6]=h=>i.post()),disabled:r.posting,class:"fcom_primary_button"},{default:x(()=>[te(M(n.btn_text),1)]),_:1},8,["disabled"])),[[p,r.posting]])])]),_:1},8,["placeholder","autofocus","mentionQuery","disabled","autofocus_changed","content"])],2))])],2)):O("",!0)}const j4=de(JTe,[["render",uMe]]),dMe={name:"EditFeed",components:{CreateStatusForm:j4},data(){return{loading:!1,saving:!1,localDialogVisible:this.dialogVisible,feed:{},autofocus_changed:!1,hasPostTitle:this.hasFeature("has_post_title")}},props:{dialogVisible:{type:Boolean,required:!0},feedSlug:{type:String,required:!0}},methods:{getFeed(){this.loading=!0,this.$get("feeds/"+this.feedSlug+"/by-slug",{context:"edit"}).then(e=>{this.feed=e.feed}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},handleUpdatePost(e){var n;console.log(e);let t={id:e.id,title:e.title,message:e.message,space:(n=e==null?void 0:e.space)==null?void 0:n.slug,meta:e.meta,media:e.media,media_images:e.media_images,survey:e.survey,topic_ids:e.topic_ids};this.saving=!0,this.$post(`feeds/${e.id}`,t).then(o=>{this.$notify.success(o.message);let r={name:"single_feed",params:{feed_slug:o.feed.slug},query:{updated:new Date().getTime()}};o.feed.space&&(r={name:"space_feed",params:{feed_slug:o.feed.slug,space:o.feed.space.slug},query:{updated:new Date().getTime()}}),this.$router.push(r),setTimeout(()=>{document.location.reload()},100)}).catch(o=>{this.$handleError(o)}).finally(()=>{this.saving=!1})},handleClose(){this.localDialogVisible=!1,this.$emit("close")}},mounted(){this.getFeed()}},fMe={class:"fcom_feed_edit"},pMe={class:"fcom_feed_edit_dialog_header"},hMe={key:0,class:"fcom_feed_edit_dialog_body"};function mMe(e,t,n,o,r,i){const s=Ye,l=z("create-status-form"),a=Wt,c=bh,u=Mt("loading");return _(),k("div",fMe,[y(c,{class:"fcom_feed_edit_dialog",modelValue:r.localDialogVisible,"onUpdate:modelValue":t[0]||(t[0]=d=>r.localDialogVisible=d),width:e.dialogWidth,"append-to-body":!0,overflow:"","before-close":()=>{},"show-close":!1},{default:x(()=>{var d,f;return[ze((_(),k("div",null,[g("div",pMe,[g("span",null,M(e.$t("Edit Feed")),1),y(s,{class:"cross_btn",circle:"",onClick:i.handleClose},{default:x(()=>[te("X")]),_:1},8,["onClick"])]),r.feed.id?(_(),k("div",hMe,[!e.hide_create_form&&e.auth.user_id?(_(),L(l,{key:0,onUpdatePost:i.handleUpdatePost,disableSpace:!0,space:(f=(d=r.feed)==null?void 0:d.space)==null?void 0:f.slug,"default-state":"active",btn_text:e.$t("Update"),editing_feed:r.feed},null,8,["onUpdatePost","space","btn_text","editing_feed"])):O("",!0)])):(_(),L(a,{key:1,rows:5,animated:!0}))])),[[u,r.loading]])]}),_:1},8,["modelValue","width"])])}const _Me=de(dMe,[["render",mMe]]),gMe={name:"Avatar",props:{xprofile:{default:()=>({})},with_level:{type:Boolean,default(){return!0}},is_rounded:{type:Boolean,default(){return!0}},with_completion:{type:Boolean,default(){return!1}},is_online:{type:Boolean,default(){return!1}}},computed:{level(){if(!this.with_level||!this.has_leaderboard)return"";const e=_l(this.xprofile.total_points);return e?e.level:0},withCompletion(){var n;if(!this.with_completion||!((n=this.xprofile)!=null&&n.total_points))return!1;const e=_l(this.xprofile.total_points),t=_l(e.max_points+1);return e.level!==t.level},getOutlineStyle(){if(!this.withCompletion)return{};const e=_l(this.xprofile.total_points),t=_l(e.max_points+1),n=this.xprofile.total_points-e.min_points,o=t.min_points-e.min_points,i=n/o*100/100*360;return{backgroundImage:`conic-gradient(rgb(56, 117, 223) ${i}deg, #D9D9D9 ${i}deg)`}}},methods:{setAltImg(e){e.target.src=this.appVars.assets_url+"images/placeholder.png"}}},vMe=["src"],bMe={key:1,class:"fcom_no_image"},yMe={key:0,role:"region","aria-label":"User Level",class:"fcom_user_level_mark"};function wMe(e,t,n,o,r,i){return _(),k("div",{class:R([{fcom_avatar_is_rounded:n.is_rounded,is_member_online:n.is_online},"fcom_user_avatar"])},[g("span",{style:Be(i.getOutlineStyle),class:R({fcom_compilation_avatar:i.withCompletion})},[n.xprofile?(_(),k("img",{key:0,onError:t[0]||(t[0]=(...s)=>i.setAltImg&&i.setAltImg(...s)),src:n.xprofile.avatar,alt:""},null,40,vMe)):(_(),k("span",bMe))],6),i.level||n.is_online?(_(),k("div",yMe,[g("span",null,M(i.level),1)])):O("",!0)],2)}const $L=de(gMe,[["render",wMe]]),kMe={name:"SurveyVoters",props:["feed","option","options","totalCount"],components:{UserRouteLink:Md,UserAvatar:$L},data(){return{voters:[],loading:!1,showVotersDialog:!0}},watch:{option(){this.loadVoters()}},computed:{getVotePercentage(){return this.option.vote_counts?Math.floor(this.option.vote_counts/this.totalCount*100)+"%":"0%"}},methods:{switchOption(e){this.$emit("updateOption",e)},closeDialog(){this.showVotersDialog=!1,this.$emit("close")},loadVoters(){var e;this.loading=!0,this.$get(`feeds/${this.feed.id}/apps/survey-voters/${(e=this.option)==null?void 0:e.slug}`).then(t=>{this.voters=t.voters}).catch(t=>{this.$handleError(t)}).finally(()=>{this.loading=!1})}},mounted(){this.loadVoters()}},xMe={class:"dialog_header"},CMe={class:"fcom_filter_menu"},SMe={class:"fcom_filter_menu_ul"},$Me=["onClick"],EMe={key:1},TMe={class:"feed_meta_info survey_voters_meta"},MMe={class:"meta_line"},AMe={class:"meta_line"},IMe={class:"voters_list"},OMe={class:"voter_avatar"},PMe={class:"voter_info"},NMe={class:"voter_time"},LMe={key:2,class:"not_found"};function RMe(e,t,n,o,r,i){const s=Wt,l=z("UserAvatar"),a=z("UserRouteLink"),c=$o,u=bh;return _(),L(u,{modelValue:r.showVotersDialog,"onUpdate:modelValue":t[0]||(t[0]=d=>r.showVotersDialog=d),"modal-class":"fcom_common_dialog menu_dialog","close-on-click-modal":!0,"append-to-body":!0,width:e.dialogWidth,style:{"max-width":"800px"},direction:"rtl",onClose:i.closeDialog},{header:x(({close:d})=>[g("div",xMe,[g("div",CMe,[g("ul",SMe,[(_(!0),k(Q,null,Te(n.options,f=>(_(),k("li",{key:f.slug},[g("a",{onClick:qe(p=>i.switchOption(f.slug),["prevent"]),class:R({"router-link-exact-active":n.option.slug==f.slug}),href:"#"},M(f.label),11,$Me)]))),128))])])])]),default:x(()=>[r.loading?(_(),L(s,{key:0,animated:"",rows:4})):r.voters.length?(_(),k("div",EMe,[g("div",TMe,[g("span",MMe,M(i.getVotePercentage),1),g("span",AMe,M(e.$_n("%s Vote","%s Votes",n.option.vote_counts)),1)]),y(c,{"max-height":"800px"},{default:x(()=>[g("div",IMe,[(_(!0),k(Q,null,Te(r.voters,d=>(_(),k("div",{key:d.id,class:"voter_item"},[d.xprofile?(_(),k(Q,{key:0},[g("div",OMe,[y(l,{with_level:!1,xprofile:d.xprofile},null,8,["xprofile"])]),g("div",PMe,[y(a,{show_badge:!0,xprofile:d.xprofile},null,8,["xprofile"]),g("div",NMe,M(e.$t("Joined %s",e.humanDateDiff(d.xprofile.created_at))),1)])],64)):O("",!0)]))),128))])]),_:1})])):(_(),k("div",LMe,[g("p",null,M(e.$t("No voters yet")),1)]))]),_:1},8,["modelValue","width","onClose"])}const FMe=de(kMe,[["render",RMe]]),DMe={name:"SurveyRenderer",props:["feed"],components:{SurveyVoters:FMe},data(){var e,t;return{inputType:(t=(e=this.feed.meta)==null?void 0:e.survey_config)==null?void 0:t.type,formattedOptions:[],working:!1,totalCount:0,showVotersDialog:!1,selectedOption:null}},methods:{getVoteStyle(e){const t=e/this.totalCount*100,n={width:t+"%"};return t>0&&t<100&&(n["border-top-right-radius"]=0,n["border-bottom-right-radius"]=0),n},showVoters(e){this.selectedOption=e,this.showVotersDialog=!0},updateOption(e){this.selectedOption=this.formattedOptions.find(t=>t.slug===e)},toggoleVote(e){if(this.showVotersDialog)return;let t=this.formattedOptions[e].voted;this.inputType=="single_choice"&&this.each(this.formattedOptions,n=>{n.voted=!1}),this.formattedOptions[e].voted=!t,this.syncVotes()},syncVotes(){let e=[];this.each(this.formattedOptions,t=>{t.voted&&e.push(t.slug)}),this.working=!0,this.$post(`feeds/${this.feed.id}/apps/survey-vote`,{vote_indexes:e}).then(t=>{this.feed.meta.survey_config=t.survey_config,this.setupData()}).catch(t=>{this.$handleError(t)}).finally(()=>{this.working=!1})},setupData(){let e=[],t=0;this.feed.meta.survey_config&&(this.each(this.feed.meta.survey_config.options,n=>{e.push(n),n.vote_counts&&(t+=parseInt(n.vote_counts))}),this.formattedOptions=e,this.totalCount=t)}},watch:{"feed.meta.survey_config":{handler(e,t){JSON.stringify(e)!==JSON.stringify(t)&&(this.inputType=t.type,this.setupData())},deep:!0}},mounted(){this.setupData()}},BMe={class:"fcom_app_render"},zMe={class:"fcom_app_options"},VMe=["onClick"],jMe={class:"fcom_app_text"},HMe={class:"fcom_app_input_wrap"},UMe={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 6"},WMe=g("circle",{cx:"3",cy:"3",r:"2.5",fill:"currentColor"},null,-1),qMe=[WMe],KMe={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 8 8"},GMe=g("path",{fill:"currentColor",d:"M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z"},null,-1),YMe=[GMe],ZMe=["onClick"],JMe={key:0};function XMe(e,t,n,o,r,i){const s=z("ArrowRight"),l=ge,a=z("SurveyVoters");return _(),k(Q,null,[g("div",BMe,[g("div",zMe,[(_(!0),k(Q,null,Te(r.formattedOptions,(c,u)=>(_(),k("div",{key:c.slug,onClick:d=>i.toggoleVote(u),class:R([c.voted?"fcom_is_voted":"","fcom_app_option"])},[g("div",jMe,[g("span",HMe,[g("span",{class:R("fcom_input_"+r.inputType)},[r.inputType=="single_choice"?(_(),k("svg",UMe,qMe)):(_(),k("svg",KMe,YMe))],2)]),g("span",null,M(c.label),1)]),g("div",{class:"fcom_app_counts",onClick:d=>i.showVoters(c)},[te(M(c.vote_counts?Math.floor(c.vote_counts/r.totalCount*100)+"%":"")+" ",1),c.vote_counts?(_(),k("span",JMe,"("+M(c.vote_counts)+")",1)):O("",!0),c.vote_counts?(_(),L(l,{key:1},{default:x(()=>[y(s)]),_:1})):O("",!0)],8,ZMe),r.totalCount?(_(),k("span",{key:0,style:Be(i.getVoteStyle(c.vote_counts)),class:"fc_app_shadow"},null,4)):O("",!0)],10,VMe))),128))])]),r.showVotersDialog?(_(),L(a,{key:0,feed:n.feed,option:r.selectedOption,options:r.formattedOptions,totalCount:r.totalCount,onUpdateOption:i.updateOption,onClose:t[0]||(t[0]=c=>r.showVotersDialog=!1)},null,8,["feed","option","options","totalCount","onUpdateOption"])):O("",!0)],64)}const QMe=de(DMe,[["render",XMe]]),eAe={name:"BookmarkIcon",props:["is_active"]},tAe={key:0,style:{color:"#1d9bf0"},class:"bookmark_icon_active",width:"16",height:"20",viewBox:"0 0 16 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},nAe=g("path",{d:"M1.33331 14.9839V8.08944C1.33331 5.06164 1.33331 3.54774 2.30962 2.60712C3.28593 1.6665 4.85728 1.6665 7.99998 1.6665C11.1427 1.6665 12.714 1.6665 13.6903 2.60712C14.6666 3.54774 14.6666 5.06164 14.6666 8.08944V14.9839C14.6666 16.9054 14.6666 17.8662 14.0226 18.2101C12.7754 18.876 10.436 16.6542 9.32498 15.9852C8.68064 15.5972 8.35847 15.4032 7.99998 15.4032C7.64148 15.4032 7.31932 15.5972 6.67498 15.9852C5.56398 16.6542 3.22454 18.876 1.97735 18.2101C1.33331 17.8662 1.33331 16.9054 1.33331 14.9839Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),oAe=[nAe],rAe={key:1,width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iAe=g("path",{d:"M1.33331 14.9839V8.08944C1.33331 5.06164 1.33331 3.54774 2.30962 2.60712C3.28593 1.6665 4.85728 1.6665 7.99998 1.6665C11.1427 1.6665 12.714 1.6665 13.6903 2.60712C14.6666 3.54774 14.6666 5.06164 14.6666 8.08944V14.9839C14.6666 16.9054 14.6666 17.8662 14.0226 18.2101C12.7754 18.876 10.436 16.6542 9.32498 15.9852C8.68064 15.5972 8.35847 15.4032 7.99998 15.4032C7.64148 15.4032 7.31932 15.5972 6.67498 15.9852C5.56398 16.6542 3.22454 18.876 1.97735 18.2101C1.33331 17.8662 1.33331 16.9054 1.33331 14.9839Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),sAe=[iAe];function lAe(e,t,n,o,r,i){return n.is_active?(_(),k("svg",tAe,oAe)):(_(),k("svg",rAe,sAe))}const EL=de(eAe,[["render",lAe]]),aAe={name:"CustomAppMeta",props:{feed:{type:Object,required:!0}},mounted(){}},cAe={ref:"fcom_custom_app"},uAe=["innerHTML"];function dAe(e,t,n,o,r,i){return _(),k("div",cAe,[g("div",{innerHTML:n.feed.meta.custom_app_preview.custom_html},null,8,uAe)],512)}const fAe=de(aAe,[["render",dAe]]),pAe={name:"Feed",components:{CustomAppMeta:fAe,BookmarkIcon:EL,UserRouteLink:Md,EditFeed:_Me,FeedFooter:NTe,MediaPreview:gd,ImageCarousel:zTe,SurveyRenderer:QMe},emits:["updated","deleted","reload"],props:{feed:{type:Object,required:!0},is_single:{type:Boolean,default:!1},show_footer:{type:Boolean,default:!0}},data(){return{in_space:this.$route.params.space,working:!1,isEdit:!1,hasOverflowContent:!1,isExpanded:!1}},computed:{space_slug(){let e=!1;return this.feed.space?e=this.feed.space.slug:this.$route.params.space&&(e=this.$route.params.space),e},feedClasses(){let e=[];return e.push("feed_type_"+this.feed.type),this.feed.type=="article"&&e.push(this.feed.featured_image?"feed_has_image":"feed_no_image"),this.is_single?e.push("feed_single"):e.push("feed_list_item"),this.hasTopMedia&&e.push("feed_modern_layout"),e},feedRoute(){let e={name:"single_feed",params:{feed_slug:this.feed.slug}};return this.space_slug&&(e={name:"space_feed",params:{feed_slug:this.feed.slug,space:this.space_slug}}),e},hasTopMedia(){var t,n,o,r,i,s;if(this.appVars.features.post_layout!="modern")return!1;let e=((n=(t=this.feed.meta)==null?void 0:t.media_preview)==null?void 0:n.type)=="oembed";return e||(e=(r=(o=this.feed.meta)==null?void 0:o.media_preview)==null?void 0:r.is_uploaded),e||(e=((s=(i=this.feed.meta)==null?void 0:i.media_items)==null?void 0:s.length)==1),e}},methods:{getTopicRoute(e){return this.space_slug?{name:"space_feeds",params:{space:this.space_slug},query:{topic:e}}:{name:"all_feeds",query:{topic:e}}},gotoTopicUrl(e){let t=this.getTopicRoute(e);this.$router.push(t)},deleteItem(){this.$refs.popover.hide(),this.$confirm(this.$t("Are you sure you want to delete this feed?"),this.$t("Warning"),{confirmButtonText:this.$t("Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(()=>{this.working=!0,this.$del("feeds/"+this.feed.id).then(e=>{this.$emit("deleted"),(this.$route.name==="space_feed"||this.$route.name=="single_feed")&&this.$router.push({name:"all_feeds"})}).catch(e=>{this.$handleError(e)}).finally(()=>{this.working=!1})})},getSpaceRoute(e){return{name:"space_feeds",params:{space:e}}},getFeedContent(){return this.feed.title},goToFeedView(){if(!this.is_single){if(window.__showing_feed=this.feed,this.feed.type=="topic"){this.$router.push({name:"topic",params:{slug:this.feed.slug}});return}this.space_slug?this.$router.push({name:"space_feed",params:{feed_slug:this.feed.slug,space:this.space_slug}}):this.$router.push({name:this.feed.status==="draft"?"edit_article":"single_feed",params:{feed_slug:this.feed.slug}})}},removePreview(){this.working=!0,this.$del("feeds/"+this.feed.id+"/media-preview").then(e=>{this.feed.meta.media_preview=null}).catch(e=>{this.$handleError(e)}).finally(()=>{this.working=!1})},parseMessage(e){if(!e)return"";const t=this.$route.params.space?`${this.appVars.urls.portal_base}space/${this.$route.params.space}/home`:this.appVars.urls.global_search;return e.replace(/<a\s(?:(?!target="_blank")[^>])*>|<[^>]+>|#([a-zA-Z0-9_-]+)/gi,(n,o,r,i)=>n.startsWith("<a")&&!n.includes('target="_blank"')?n.includes(window.location.origin)?n:n.replace("<a",'<a target="_blank" rel="noopener noreferrer nofollow"'):o&&!this.isInsideHtmlTag(i,r)?`<a onclick="window.FluentCommunityUtil.handleSearchClick(event)" href="${t}?search=%23${o}">#${o}</a>`:n)},isInsideHtmlTag(e,t){let n=!1;for(let o=0;o<t;o++)e[o]==="<"&&(n=!0),e[o]===">"&&(n=!1);return n},editItem(){this.$refs.popover.hide(),this.isEdit=!0},handleUpdate(e){this.$emit("updated",e),this.$router.push(this.feedRoute),setTimeout(()=>{document.location.reload()})},handleRemoveBookmark(){this.$emit("deleted")},toggleBookmark(){const e={react_type:"bookmark"};this.feed.bookmarked&&(e.remove=!0),this.feed.bookmarked=!this.feed.bookmarked,this.$post("feeds/"+this.feed.id+"/react",e).then(t=>{this.$notify.success(this.feed.bookmarked?this.$t("Bookmarked"):this.$t("Removed from bookmark")),!this.feed.bookmarked&&this.$route.name==="bookmarks"&&this.$emit("removeFromBookmark")}).catch(t=>{this.$handleError(t),this.feed.bookmarked=!this.feed.bookmarked})},toggleCommentStatus(){var t;let e=((t=this.feed.meta)==null?void 0:t.comments_disabled)=="yes";this.$refs.popover.hide(),this.$patch("feeds/"+this.feed.id,{comments_disabled:e?0:1}).then(n=>{var r;let o=((r=n.feed.meta)==null?void 0:r.comments_disabled)=="yes";this.$notify.success(o?this.$t("Comments have been disabled."):this.$t("Comments have been enabled.")),this.feed.meta.comments_disabled=n.feed.meta.comments_disabled}).catch(n=>{this.$handleError(n)})},copyFeedLink(){const e=this.$router.resolve(this.feedRoute);let t=this.appVars.urls.portal_base;t=t.replace(/\/$/,"");let n=t+e.fullPath;navigator.clipboard.writeText(n).then(()=>{this.$notify.success(this.$t("Link copied to clipboard")),this.$refs.popover.hide()}).catch(o=>{this.$notify.error(this.$t("Failed to copy"))})},toggleSticky(){!this.feed.space_id||!this.isAdmin()||(this.feed.is_sticky=!this.feed.is_sticky,this.$refs.popover.hide(),this.$patch("feeds/"+this.feed.id,{is_sticky:this.feed.is_sticky?1:0}).then(e=>{this.feed.is_sticky=e.feed.is_sticky,this.$emit("reload")}).catch(e=>{this.$handleError(e)}))},toggleSidebarPin(){!this.feed.space_id||!this.isAdmin()||(this.feed.priority=!this.feed.priority,this.$refs.popover.hide(),this.$patch("feeds/"+this.feed.id,{priority:this.feed.priority?1:0}).then(e=>{this.$notify.success(e.feed.priority?this.$t("Pinned to sidebar"):this.$t("Unpinned from sidebar")),this.feed.priority=e.feed.priority,this.$eventBus.emit("updateSpaceSidebar",this.feed.space_id)}).catch(e=>{this.$handleError(e)}))}},mounted(){if(document.dispatchEvent(new CustomEvent("fcomFeedMounted",{detail:{isSingle:this.is_single,feed:this.feed,feedBody:this.$refs.feed_body}})),this.is_single||this.feed.is_sticky||this.feed.priority){this.isExpanded=!0;return}let e=this.$refs.feed_body;if(!e)return;e.scrollHeight>400&&(this.hasOverflowContent=!0)}},hAe=["id"],mAe={key:0,class:"fcom_top_media"},_Ae={class:"fcom_feed_header_wrap"},gAe={class:"feed_actions fcom_concat_buttons"},vAe=g("svg",{viewBox:"0 0 24 24","aria-hidden":"true",class:"r-4qtqp9 r-yyyyoo r-dnmrzs r-bnwqim r-lrvibr r-m6rgpd r-14j79pv r-10ptun7 r-1janqcz"},[g("g",null,[g("path",{d:"M7 4.5C7 3.12 8.12 2 9.5 2h5C15.88 2 17 3.12 17 4.5v5.26L20.12 16H13v5l-1 2-1-2v-5H3.88L7 9.76V4.5z"})])],-1),bAe={class:"actions_items"},yAe={key:0},wAe={key:1},kAe={key:0},xAe={key:1},CAe={key:0},SAe={key:1},$Ae={key:0,class:"fcom_feed_topics"},EAe={class:"feed_header"},TAe={key:0,class:"feed_user"},MAe={class:"feed_user_name"},AAe={class:"feed_meta_info"},IAe={key:0,class:"meta_line"},OAe={key:1},PAe={key:0,class:"feed_title"},NAe={key:0,class:"feed_title_heading"},LAe={key:1,class:"feed_title_heading"},RAe=["innerHTML"];function FAe(e,t,n,o,r,i){var T;const s=z("media-preview"),l=ge,a=Ye,c=z("BookmarkIcon"),u=z("MoreFilled"),d=po,f=z("router-link"),p=z("UserAvatar"),h=z("UserRouteLink"),m=z("SurveyRenderer"),b=z("ImageCarousel"),v=z("CustomAppMeta"),E=z("feed-footer"),w=z("edit-feed"),S=Mt("loading");return ze((_(),k("div",{id:"feed_id_"+n.feed.id,class:R([i.feedClasses,"feed"])},[i.hasTopMedia?(_(),k("div",mAe,[n.feed.meta&&n.feed.meta.media_preview?(_(),L(s,{key:0,feed:n.feed},null,8,["feed"])):O("",!0)])):O("",!0),g("div",_Ae,[g("div",gAe,[n.feed.is_sticky&&r.in_space?(_(),L(a,{key:0,"aria-label":e.$t("Toggle Sticky"),class:"no_pad_btn",onClick:t[0]||(t[0]=$=>i.toggleSticky()),text:"",size:"small"},{default:x(()=>[y(l,{class:"fcom_sticky"},{default:x(()=>[vAe]),_:1})]),_:1},8,["aria-label"])):O("",!0),e.auth.user_id?(_(),L(a,{key:1,"aria-label":e.$t("Toggle Bookmark"),size:"small",text:"",onClick:t[1]||(t[1]=$=>i.toggleBookmark()),class:R([{bookmark_active:n.feed.bookmarked},"feed_bookmark no_pad_btn"]),title:n.feed.bookmarked?e.$t("Remove From Bookmark"):e.$t("Bookmark this post")},{default:x(()=>[y(l,{style:{"font-size":"14px"}},{default:x(()=>[y(c,{is_active:n.feed.bookmarked},null,8,["is_active"])]),_:1})]),_:1},8,["aria-label","class","title"])):O("",!0),y(d,{persistent:!1,ref:"popover",placement:"bottom",width:200,trigger:"click"},{reference:x(()=>[y(a,{"aria-label":e.$t("View Post actions"),class:"fcom_dot_menu",size:"small",text:""},{default:x(()=>[y(l,null,{default:x(()=>[y(u)]),_:1})]),_:1},8,["aria-label"])]),default:x(()=>{var $,A;return[g("ul",bAe,[g("li",{onClick:t[2]||(t[2]=P=>i.copyFeedLink())},M(e.$t("Copy Link")),1),e.canEditFeed(n.feed)?(_(),k(Q,{key:0},[g("li",{onClick:t[3]||(t[3]=P=>i.editItem())},M(e.$t("Edit")),1),n.feed.space&&e.isAdmin()?(_(),k(Q,{key:0},[g("li",{onClick:t[4]||(t[4]=P=>i.toggleSticky())},[n.feed.is_sticky?(_(),k("span",yAe,M(e.$t("Unpin from Top")),1)):(_(),k("span",wAe,M(e.$t("Pin to Top")),1))]),g("li",{onClick:t[5]||(t[5]=P=>i.toggleSidebarPin())},[n.feed.priority?(_(),k("span",xAe,M(e.$t("Unpin from sidebar")),1)):(_(),k("span",kAe,M(e.$t("Pin to sidebar")),1))])],64)):O("",!0),($=n.feed.meta)!=null&&$.media_preview?(_(),k("li",{key:1,onClick:t[6]||(t[6]=P=>i.removePreview())},M(e.$t("Remove Preview")),1)):O("",!0),g("li",{onClick:t[7]||(t[7]=P=>i.toggleCommentStatus())},[((A=n.feed.meta)==null?void 0:A.comments_disabled)=="yes"?(_(),k("span",CAe,M(e.$t("Enable Comments")),1)):(_(),k("span",SAe,M(e.$t("Disable Comments")),1))])],64)):O("",!0),e.canDeleteFeed(n.feed)?(_(),k("li",{key:1,onClick:t[8]||(t[8]=P=>i.deleteItem())},M(e.$t("Delete")),1)):O("",!0)])]}),_:1},512)]),((T=e.appVars.topicsConfig)==null?void 0:T.show_on_post_card)=="yes"&&n.feed.terms&&n.feed.terms.length?(_(),k("div",$Ae,[(_(!0),k(Q,null,Te(n.feed.terms,$=>(_(),L(f,{onClick:qe(A=>i.gotoTopicUrl($.slug),["prevent"]),key:$.slug,to:i.getTopicRoute($.slug),class:"feed_timestamp"},{default:x(()=>[te("#"+M($.title),1)]),_:2},1032,["onClick","to"]))),128))])):O("",!0),g("div",EAe,[n.feed.xprofile?(_(),k("div",TAe,[y(p,{with_level:!1,xprofile:n.feed.xprofile},null,8,["xprofile"]),g("div",null,[g("div",MAe,[y(h,{show_badge:!0,xprofile:n.feed.xprofile},null,8,["xprofile"])]),g("div",AAe,[n.feed.content_type=="survey"?(_(),k("span",IAe,M(e.$t("created a poll")),1)):O("",!0),y(f,{to:i.feedRoute,class:"feed_timestamp"},{default:x(()=>[te(M(e.humanDateDiff(n.feed.created_at)),1)]),_:1},8,["to"]),!r.in_space&&n.feed.space?(_(),k("span",OAe,[y(f,{to:i.getSpaceRoute(n.feed.space.slug),class:"feed_timestamp"},{default:x(()=>[te(M(e.$t("Posted in %s",e.getExcerpt(n.feed.space.title,30))),1)]),_:1},8,["to"])])):O("",!0)])])])):O("",!0)])]),g("div",{ref:"feed_body",class:R([{feed_is_overflow_content:r.hasOverflowContent},"feed_body"])},[n.feed.title?(_(),k("div",PAe,[n.is_single?(_(),k("h2",LAe,M(n.feed.title),1)):(_(),k("h2",NAe,[y(f,{to:i.feedRoute},{default:x(()=>[te(M(n.feed.title),1)]),_:1},8,["to"])]))])):O("",!0),g("div",{class:"feed_texts feed_md_content",innerHTML:i.parseMessage(n.feed.message_rendered)},null,8,RAe),r.hasOverflowContent&&!r.isExpanded?(_(),k("div",{key:1,onClick:t[9]||(t[9]=$=>{r.hasOverflowContent=!1,r.isExpanded=!0}),class:"expand-button"},[y(a,{class:"btn_expand"},{default:x(()=>[te(M(e.$t("Show More")),1)]),_:1})])):O("",!0)],2),n.feed.content_type=="survey"?(_(),L(m,{key:1,feed:n.feed},null,8,["feed"])):n.feed.meta?(_(),k(Q,{key:2},[n.feed.meta.media_items?(_(),L(b,{key:0,feed:n.feed},null,8,["feed"])):!i.hasTopMedia&&n.feed.meta.media_preview?(_(),L(s,{key:1,feed:n.feed},null,8,["feed"])):O("",!0),n.feed.meta.custom_app_preview?(_(),L(v,{key:2,feed:n.feed},null,8,["feed"])):O("",!0)],64)):O("",!0),n.show_footer?(_(),L(E,{key:3,onRemoveFromBookmark:i.handleRemoveBookmark,space_slug:i.space_slug,is_single:n.is_single,feed:n.feed},null,8,["onRemoveFromBookmark","space_slug","is_single","feed"])):O("",!0),r.isEdit?(_(),L(w,{key:4,feedSlug:n.feed.slug,dialogVisible:r.isEdit,onUpdated:i.handleUpdate,onClose:t[10]||(t[10]=$=>r.isEdit=!1)},null,8,["feedSlug","dialogVisible","onUpdated"])):O("",!0)],10,hAe)),[[S,r.working]])}const TL=de(pAe,[["render",FAe]]),DAe={name:"FeedListItem",components:{UserRouteLink:Md,ChatIcon:R4,HeartIcon:L4},props:["feed"],computed:{feedRoute(){let e={name:"single_feed",params:{feed_slug:this.feed.slug}};return this.feed.space&&(e={name:"space_feed",params:{feed_slug:this.feed.slug,space:this.feed.space.slug}}),e}},data(){return{in_space:this.$route.params.space}},methods:{parseMessage(e){if(!e)return"";const t=this.$route.params.space?`${this.appVars.urls.portal_base}space/${this.$route.params.space}/home`:this.appVars.urls.global_search;return e.replace(/<a\s(?:(?!target="_blank")[^>])*>|<[^>]+>|#(\w+)/gi,(n,o,r,i)=>n.startsWith("<a")&&!n.includes('target="_blank"')?n.includes(window.location.origin)?n:n.replace("<a",'<a target="_blank" rel="noopener"'):o&&!this.isInsideHtmlTag(i,r)?`<a onclick="window.FluentCommunityUtil.handleSearchClick(event)" href="${t}?search=%23${o}">#${o}</a>`:n)},isInsideHtmlTag(e,t){let n=!1;for(let o=0;o<t;o++)e[o]==="<"&&(n=!0),e[o]===">"&&(n=!1);return n},goToFeedView(e){e.ctrlKey||e.metaKey||(e.preventDefault(),window.__showing_feed=this.feed,this.$router.push(this.feedRoute))},toggleReact(){const e={react_type:"like"};this.feed.has_user_react&&(e.remove=!0),this.feed.has_user_react=!this.feed.has_user_react,this.$post("feeds/"+this.feed.id+"/react",e).then(t=>{this.feed.reactions_count=t.new_count}).catch(t=>{this.$handleError(t),this.feed.has_user_react=!this.feed.has_user_react})}}},BAe={class:"fcom_feed_list"},zAe={class:"fcom_feed_data"},VAe={key:0,class:"fcom_sticky"},jAe=g("svg",{viewBox:"0 0 24 24","aria-hidden":"true",class:"r-4qtqp9 r-yyyyoo r-dnmrzs r-bnwqim r-lrvibr r-m6rgpd r-14j79pv r-10ptun7 r-1janqcz"},[g("g",null,[g("path",{d:"M7 4.5C7 3.12 8.12 2 9.5 2h5C15.88 2 17 3.12 17 4.5v5.26L20.12 16H13v5l-1 2-1-2v-5H3.88L7 9.76V4.5z"})])],-1),HAe={class:"feed_user"},UAe=["href"],WAe=["innerHTML"],qAe={class:"fcom_feed_meta"},KAe={key:0},GAe={class:"feed_actions"},YAe={class:"num_label"},ZAe={class:"num_label"};function JAe(e,t,n,o,r,i){var f;const s=ge,l=z("UserAvatar"),a=z("user-route-link"),c=z("HeartIcon"),u=Ye,d=z("ChatIcon");return _(),k("div",BAe,[g("div",zAe,[n.feed.is_sticky?(_(),k("div",VAe,[y(s,{class:"fcom_sticky"},{default:x(()=>[jAe]),_:1})])):O("",!0),g("div",HAe,[y(a,{show_pop:!1,xprofile:n.feed.xprofile},{default:x(()=>[y(l,{with_level:!1,xprofile:n.feed.xprofile},null,8,["xprofile"])]),_:1},8,["xprofile"])]),g("a",{href:e.$router.resolve(i.feedRoute).href,onClick:t[0]||(t[0]=(...p)=>i.goToFeedView&&i.goToFeedView(...p)),class:"feed_body"},[g("div",{class:"feed_texts feed_md_content",innerHTML:e.getExcerpt(n.feed.title||n.feed.message_rendered,250)},null,8,WAe),g("div",qAe,[te(M(((f=n.feed)==null?void 0:f.xprofile.display_name)||"No Name")+" • "+M(e.humanDateDiff(n.feed.created_at))+" ",1),!r.in_space&&n.feed.space?(_(),k("span",KAe,"• #"+M(n.feed.space.slug),1)):O("",!0)])],8,UAe)]),g("div",GAe,[y(u,{text:""},{default:x(()=>[y(s,{class:R({user_reacted:n.feed.has_user_react}),onClick:t[1]||(t[1]=p=>i.toggleReact())},{default:x(()=>[y(c,{filled:n.feed.has_user_react},null,8,["filled"])]),_:1},8,["class"]),g("span",YAe,M(n.feed.reactions_count),1)]),_:1}),y(u,{onClick:t[2]||(t[2]=p=>e.$router.push(i.feedRoute)),text:""},{default:x(()=>[y(s,null,{default:x(()=>[y(d)]),_:1}),g("span",ZAe,M(n.feed.comments_count),1)]),_:1})])])}const XAe=de(DAe,[["render",JAe]]),QAe={name:"SwitchTimelineIcon"},eIe={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tIe=g("path",{d:"M4 1H13.75V2.5H4V1ZM1.375 2.875C1.07663 2.875 0.790483 2.75647 0.579505 2.5455C0.368526 2.33452 0.25 2.04837 0.25 1.75C0.25 1.45163 0.368526 1.16548 0.579505 0.954505C0.790483 0.743526 1.07663 0.625 1.375 0.625C1.67337 0.625 1.95952 0.743526 2.1705 0.954505C2.38147 1.16548 2.5 1.45163 2.5 1.75C2.5 2.04837 2.38147 2.33452 2.1705 2.5455C1.95952 2.75647 1.67337 2.875 1.375 2.875ZM1.375 8.125C1.07663 8.125 0.790483 8.00647 0.579505 7.7955C0.368526 7.58452 0.25 7.29837 0.25 7C0.25 6.70163 0.368526 6.41548 0.579505 6.2045C0.790483 5.99353 1.07663 5.875 1.375 5.875C1.67337 5.875 1.95952 5.99353 2.1705 6.2045C2.38147 6.41548 2.5 6.70163 2.5 7C2.5 7.29837 2.38147 7.58452 2.1705 7.7955C1.95952 8.00647 1.67337 8.125 1.375 8.125ZM1.375 13.3C1.07663 13.3 0.790483 13.1815 0.579505 12.9705C0.368526 12.7595 0.25 12.4734 0.25 12.175C0.25 11.8766 0.368526 11.5905 0.579505 11.3795C0.790483 11.1685 1.07663 11.05 1.375 11.05C1.67337 11.05 1.95952 11.1685 2.1705 11.3795C2.38147 11.5905 2.5 11.8766 2.5 12.175C2.5 12.4734 2.38147 12.7595 2.1705 12.9705C1.95952 13.1815 1.67337 13.3 1.375 13.3ZM4 6.25H13.75V7.75H4V6.25ZM4 11.5H13.75V13H4V11.5Z",fill:"currentColor"},null,-1),nIe=[tIe];function oIe(e,t,n,o,r,i){return _(),k("svg",eIe,nIe)}const ML=de(QAe,[["render",oIe]]),rIe={name:"SwitchListIcon"},iIe={width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",role:"img",color:"#666666"},sIe=g("path",{d:"M2.53168 9.32334C2.79738 9.26497 3.0942 9.25 3.4 9.25H20.6C20.9058 9.25 21.2026 9.26497 21.4683 9.32334C21.7425 9.38357 22.0291 9.49978 22.2647 9.73532C22.5002 9.97086 22.6164 10.2575 22.6767 10.5317C22.735 10.7974 22.75 11.0942 22.75 11.4V12.6C22.75 12.9058 22.735 13.2026 22.6767 13.4683C22.6164 13.7425 22.5002 14.0291 22.2647 14.2647C22.0291 14.5002 21.7425 14.6164 21.4683 14.6767C21.2026 14.735 20.9058 14.75 20.6 14.75H3.4C3.0942 14.75 2.79738 14.735 2.53168 14.6767C2.25749 14.6164 1.97086 14.5002 1.73532 14.2647C1.49978 14.0291 1.38357 13.7425 1.32334 13.4683C1.26497 13.2026 1.25 12.9058 1.25 12.6V11.4C1.25 11.0942 1.26497 10.7974 1.32334 10.5317C1.38357 10.2575 1.49978 9.97086 1.73532 9.73532C1.97086 9.49978 2.25749 9.38357 2.53168 9.32334Z",fill:"var(--fcom-primary-text)"},null,-1),lIe=g("path",{opacity:"0.4",d:"M2.53168 1.32334C2.79738 1.26497 3.0942 1.25 3.4 1.25H20.6C20.9058 1.25 21.2026 1.26497 21.4683 1.32334C21.7425 1.38357 22.0291 1.49978 22.2647 1.73532C22.5002 1.97086 22.6164 2.25749 22.6767 2.53168C22.735 2.79738 22.75 3.0942 22.75 3.4V4.6C22.75 4.9058 22.735 5.20262 22.6767 5.46832C22.6164 5.74251 22.5002 6.02914 22.2647 6.26468C22.0291 6.50022 21.7425 6.61643 21.4683 6.67666C21.2026 6.73503 20.9058 6.75 20.6 6.75H3.4C3.0942 6.75 2.79738 6.73503 2.53168 6.67666C2.25749 6.61643 1.97086 6.50022 1.73532 6.26468C1.49978 6.02914 1.38357 5.74251 1.32334 5.46832C1.26497 5.20262 1.25 4.9058 1.25 4.6V3.4C1.25 3.0942 1.26497 2.79738 1.32334 2.53168C1.38357 2.25749 1.49978 1.97086 1.73532 1.73532C1.97086 1.49978 2.25749 1.38357 2.53168 1.32334Z",fill:"var(--fcom-primary-text)"},null,-1),aIe=g("path",{opacity:"0.4",d:"M2.53168 17.3233C2.79738 17.265 3.0942 17.25 3.4 17.25H20.6C20.9058 17.25 21.2026 17.265 21.4683 17.3233C21.7425 17.3836 22.0291 17.4998 22.2647 17.7353C22.5002 17.9709 22.6164 18.2575 22.6767 18.5317C22.735 18.7974 22.75 19.0942 22.75 19.4V20.6C22.75 20.9058 22.735 21.2026 22.6767 21.4683C22.6164 21.7425 22.5002 22.0291 22.2647 22.2647C22.0291 22.5002 21.7425 22.6164 21.4683 22.6767C21.2026 22.735 20.9058 22.75 20.6 22.75H3.4C3.0942 22.75 2.79738 22.735 2.53168 22.6767C2.25749 22.6164 1.97086 22.5002 1.73532 22.2647C1.49978 22.0291 1.38357 21.7425 1.32334 21.4683C1.26497 21.2026 1.25 20.9058 1.25 20.6V19.4C1.25 19.0942 1.26497 18.7974 1.32334 18.5317C1.38357 18.2575 1.49978 17.9709 1.73532 17.7353C1.97086 17.4998 2.25749 17.3836 2.53168 17.3233Z",fill:"var(--fcom-primary-text)"},null,-1),cIe=[sIe,lIe,aIe];function uIe(e,t,n,o,r,i){return _(),k("svg",iIe,cIe)}const AL=de(rIe,[["render",uIe]]),dIe={name:"AllFeeds",emits:["refetch"],inheritAttrs:!1,props:{space:{type:[String,Number],default(){return null}},user_id:{type:[String,Number],default(){return null}},hide_create_form:{type:Boolean,default(){return!1}},hide_filters:{type:Boolean,default(){return!1}},feed_base_url:{type:String,default(){return"feeds"}},default_search:{type:String,default(){return""}},layout_style:{type:String,default(){return"timeline"}},feed_name:{type:String,default(){return""}},topic_slug:{type:[String,Number],default(){return null}}},components:{CreateStatusForm:j4,Feed:TL,FeedListItem:XAe,SwitchTimelineIcon:ML,SwitchListIcon:AL},watch:{space(e){this.pagination.page=1,this.feeds=[],this.fetchFeeds()},search(){this.pagination.page=1,this.feeds=[],this.fetchFeeds()},topic_slug(){this.pagination.page=1,this.feeds=[],this.fetchFeeds()}},computed:{disableAutoLoad(){return this.loading||this.pagination.page*this.pagination.per_page>=this.pagination.total&&this.pagination.total},currentLayoutStyle(){return this.custom_layout_style}},data(){return{feeds:[],sticky:null,loading:!0,pagination:{total:0,page:1,per_page:10,last_page:1},appReady:!0,sort_by:"",search:this.$route.query.search||"",custom_layout_style:this.layout_style,disable_sticky:!1}},methods:{fetchFeeds(e=!1){this.loading=!0,this.$get(this.feed_base_url,{page:this.pagination.page,per_page:this.pagination.per_page,space:this.space,user_id:this.user_id,type:this.sort_by,search:this.search,disable_sticky:this.disable_sticky,topic_slug:this.topic_slug}).then(t=>{t.sticky?window["viewed_sticky_posts_"+t.sticky.id]?t.feeds.data.unshift(t.sticky):this.sticky=t.sticky:this.pagination.page==1&&(this.sticky=null),e?this.feeds=this.feeds.concat(t.feeds.data):this.feeds=t.feeds.data,t.last_fetched_timestamp&&this.$eventBus.emit("newest_feed_fetched",{last_fetched_timestamp:t.last_fetched_timestamp}),this.pagination.total=t.feeds.total,this.pagination.last_page=t.feeds.last_page}).catch(t=>{this.$handleError(t)}).finally(()=>{this.loading=!1})},handleSortByChange(){this.resetFetch()},feedAdded(e){this.sticky&&(this.feeds.unshift(this.sticky),this.sticky=null),this.feeds.unshift(e)},handleDelete(e){this.feeds.splice(e,1)},handleUpdate(e,t){this.feeds.splice(t,1,e)},handleLoadMore(e){var i;if(this.disableAutoLoad)return!1;if(this.pagination.last_page==this.pagination.page)return;let t=document.querySelector(".all_feeds_holder .feed_outer:last-child");if(!t)return;let n=t.getBoundingClientRect(),o=(i=window.fcomLayoutRef)==null?void 0:i.wrapRef;!o||n.bottom-o.getBoundingClientRect().bottom-n.height>100||this.loading||(this.loading=!0,this.pagination.page++,this.fetchFeeds(!0))},resetFetch(){!this.hide_filters&&!this.default_search&&this.$storeLocalData("feed_sort_by",this.sort_by),this.disable_sticky="yes",this.sticky=null,this.pagination.page=1,this.feeds=[],this.fetchFeeds()},spaceChanged(){this.pagination.page=1,this.feeds=[],this.fetchFeeds()},routeNewArticle(){this.space?this.$router.push({name:"space_write_article",params:{space:this.space}}):this.$router.push({name:"write_article"})},switchView(e){this.sticky&&(window["viewed_sticky_posts_"+this.sticky.id]=!0,this.feeds.unshift(this.sticky),this.sticky=null),this.custom_layout_style=e,this.feed_name&&this.hasFeature("can_switch_layout")&&this.$storeLocalData("feed_layout_style_"+this.feed_name,e),this.$notify.success(this.$t("Layout changed"))}},created(){this.default_search&&(this.search=this.default_search),!this.hide_filters&&!this.default_search&&(this.sort_by=this.$getLocalData("feed_sort_by")||""),this.$route.query.sort_by&&(this.$route.query.sort_by=="latest"?this.sort_by="":this.sort_by=this.$route.query.sort_by),this.loading=!0,this.fetchFeeds()},mounted(){if(this.feed_name&&this.hasFeature("can_switch_layout")){let e=this.$getLocalData("feed_layout_style_"+this.feed_name);e&&(this.custom_layout_style=e)}document.addEventListener("fcom_layout_scroll",this.handleLoadMore),this.$eventBus.on("doGlobalSearch",e=>{this.loading||this.search!=e&&(this.search=e,this.pagination.page=1,this.$router.push({query:{search:e}}))})},beforeUnmount(){this.$eventBus.emit("leaving_all_feeds"),window.removeEventListener("fcom_layout_scroll",this.handleLoadMore),this.$eventBus.off("doGlobalSearch"),this.sticky&&(window["viewed_sticky_posts_"+this.sticky.id]=!0)}},fIe={key:1,class:"feed_filters"},pIe=g("div",{class:"fcom_feed_divider"},null,-1),hIe={id:"feed_short_by",class:"fcom_feed_filter_label"},mIe={key:0,class:"fcom_layout_switch"},_Ie={key:2,style:{margin:"0 0 10px"},class:"fcom_search_result_num"},gIe={key:3,class:"fcom_sticky_feed"},vIe={class:"all_feeds_holder"},bIe={key:0,style:{"margin-top":"20px","text-align":"center"}},yIe={key:5},wIe={class:"feed_outer"},kIe={class:"feed"},xIe={style:{"text-align":"center"},class:"feed_body"},CIe={key:0},SIe={key:1},$Ie={key:2};function EIe(e,t,n,o,r,i){const s=z("create-status-form"),l=Ho,a=jo,c=z("SwitchListIcon"),u=ge,d=Ye,f=z("SwitchTimelineIcon"),p=z("feed"),h=z("FeedListItem"),m=Wt;return _(),k(Q,null,[le(e.$slots,"before_create_form"),!n.hide_create_form&&e.auth.user_id?(_(),L(s,{key:0,btn_text:e.$t("Post"),space:n.space,onAdded:i.feedAdded},null,8,["btn_text","space","onAdded"])):O("",!0),le(e.$slots,"before_feeds"),n.hide_filters?O("",!0):(_(),k("div",fIe,[pIe,g("span",hIe,M(e.$t("Sort by:")),1),y(a,{"aria-label":e.$t("Sort posts by"),modelValue:r.sort_by,"onUpdate:modelValue":t[0]||(t[0]=b=>r.sort_by=b),class:"fcom_minimal_select","popper-class":"plain_select",placeholder:e.$t("Latest Posts"),onChange:t[1]||(t[1]=b=>i.handleSortByChange())},{default:x(()=>[y(l,{label:e.$t("Latest Posts"),value:""},null,8,["label"]),y(l,{value:"new_activity",label:e.$t("New Activity")},null,8,["label"]),y(l,{value:"oldest",label:e.$t("Oldest")},null,8,["label"]),y(l,{value:"popular",label:e.$t("Popular")},null,8,["label"]),y(l,{value:"likes",label:e.$t("Likes")},null,8,["label"]),y(l,{value:"alphabetical",label:e.$t("Alphabetical")},null,8,["label"]),y(l,{value:"unanswered",label:e.$t("Unanswered")},null,8,["label"])]),_:1},8,["aria-label","modelValue","placeholder"]),n.feed_name&&e.hasFeature("can_switch_layout")?(_(),k("div",mIe,[r.custom_layout_style=="list"?(_(),L(d,{key:0,type:"info",title:e.$t("Switch to List View"),text:"",onClick:t[2]||(t[2]=b=>i.switchView("timeline"))},{default:x(()=>[y(u,{style:{color:"var(--fcom-primary-text)"}},{default:x(()=>[y(c)]),_:1})]),_:1},8,["title"])):(_(),L(d,{key:1,title:e.$t("Switch to Timeline View"),type:"info",text:"",onClick:t[3]||(t[3]=b=>i.switchView("list"))},{default:x(()=>[y(u,{style:{color:"var(--fcom-primary-text)"}},{default:x(()=>[y(f)]),_:1})]),_:1},8,["title"]))])):O("",!0)])),r.pagination.total&&r.search?(_(),k("div",_Ie,M(e.$_n("%s result found","%s results found",r.pagination.total)),1)):O("",!0),r.sticky?(_(),k("div",gIe,[y(p,{onReload:t[4]||(t[4]=b=>{r.sticky=null,i.fetchFeeds()}),onDeleted:t[5]||(t[5]=()=>{r.sticky=null}),feed:r.sticky},null,8,["feed"])])):O("",!0),r.feeds.length?(_(),k("div",{key:4,ref:"all_feeds_wrap",class:R(["fcom_feed_style_"+i.currentLayoutStyle,"all_feeds"])},[g("div",vIe,[(_(!0),k(Q,null,Te(r.feeds,(b,v)=>(_(),k("div",{key:b.id,class:"feed_outer"},[i.currentLayoutStyle=="list"?(_(),L(h,{key:0,feed:b},null,8,["feed"])):(_(),L(p,{key:1,layout_style:i.currentLayoutStyle,onUpdated:E=>i.handleUpdate(E,v),onDeleted:E=>i.handleDelete(v),feed:b},null,8,["layout_style","onUpdated","onDeleted","feed"]))]))),128))]),i.disableAutoLoad?O("",!0):(_(),k("div",bIe,[y(d,{disabled:r.loading,onClick:t[6]||(t[6]=b=>{r.pagination.page++,i.fetchFeeds(!0)})},{default:x(()=>[te(M(e.$t("Load more")),1)]),_:1},8,["disabled"])]))],2)):r.loading?O("",!0):(_(),k("div",yIe,[g("div",wIe,[g("div",kIe,[g("div",xIe,[r.search?(_(),k("p",CIe,M(e.$t("No results found based on your search criteria")),1)):n.topic_slug?(_(),k("p",SIe,M(e.$t("No posts found for the selected topic")),1)):(_(),k("p",$Ie,M(e.$t("No posts found!")),1))])])])])),r.loading?(_(),k(Q,{key:6},[y(m,{style:{"margin-top":"20px"},class:"white_loaded",animated:!0,rows:5}),r.pagination.page==1?(_(),k(Q,{key:0},[y(m,{style:{"margin-top":"20px"},class:"white_loaded",animated:!0,rows:5}),y(m,{style:{"margin-top":"20px"},class:"white_loaded",animated:!0,rows:5})],64)):O("",!0)],64)):O("",!0)],64)}const Fh=de(dIe,[["render",EIe]]),TIe={name:"SearchBar",components:{SpaceIcon:V4,AllFeeds:Fh,SearchIcon:ju},data(){return{search:"",SearchIcon:oi(ju),showingSearch:!1,persoform_search:!1,searchGroups:[],search_space:"__all__"}},computed:{placeholder(){return this.search_space!="__all__"?this.$t("Search in %s","#"+this.search_space):this.$t("Search here...")}},methods:{initSearch(){this.$route.params.space?this.search_space=this.$route.params.space:this.search_space="__all__",this.showingSearch=!0,this.handleOpen()},toSearch(){this.search&&(this.persoform_search?(this.persoform_search=!1,this.$nextTick(()=>{this.persoform_search=!0})):this.persoform_search=!0)},handleScroll(e){if(this.$refs.feedsScroller.wrapRef.scrollHeight-this.$refs.feedsScroller.wrapRef.clientHeight-e.scrollTop<100){let n=this.$refs.feedsRef;!n.loading&&n.pagination.page<n.pagination.last_page&&(n.pagination.page++,n.fetchFeeds(!0))}},keyBind(e){e.key==="k"&&(e.ctrlKey||e.metaKey)&&(this.showingSearch=!this.showingSearch,this.showingSearch&&this.handleOpen())},handleOpen(){this.formatSearchGroups(),this.$nextTick(()=>{this.$refs.seatch_input.focus()})},formatSearchGroups(){if(this.searchGroups.length)return;let e=this.appVars.auth.spaces;e=Object.values(e);let t=this.appVars.space_groups,n=[];this.each(t,o=>{let r=e.filter(i=>i.parent_id==o.id&&i.permissions&&i.permissions.can_view_posts);r.length&&n.push({label:o.title,spaces:r})}),this.searchGroups=n}},mounted(){document.addEventListener("keydown",this.keyBind),this.$eventBus.on("route_updated",()=>{this.showingSearch=!1})},beforeUnmount(){document.removeEventListener("keydown",this.keyBind)}},MIe={class:"fcom_search_header"},AIe={key:0,class:"fcom_space_title"},IIe={key:1},OIe={key:0,class:"fcom_search_results"},PIe={key:1,class:"fcom_search_welcome"},NIe=g("b",null,"⌘ + K",-1),LIe=g("b",null,"Ctrl + K",-1);function RIe(e,t,n,o,r,i){const s=z("SearchIcon"),l=ge,a=Ho,c=z("SpaceIcon"),u=vA,d=jo,f=An,p=z("all-feeds"),h=$o,m=bh;return _(),k(Q,null,[y(l,{id:"fcom_search_icon",class:"fcom_search_icon",onClick:t[0]||(t[0]=b=>i.initSearch())},{default:x(()=>[y(s)]),_:1}),r.showingSearch?(_(),L(m,{key:0,top:"60px",onClose:t[5]||(t[5]=b=>{r.persoform_search=!1}),"append-to-body":!0,"lock-scroll":!0,"modal-class":"fcom_search_bar_visible",modelValue:r.showingSearch,"onUpdate:modelValue":t[6]||(t[6]=b=>r.showingSearch=b),"show-close":!1,style:{"max-width":"700px"},width:e.drawerWidth},{header:x(()=>[g("div",MIe,[y(f,{ref:"seatch_input",size:"large",onClear:t[2]||(t[2]=b=>r.persoform_search=!1),modelValue:r.search,"onUpdate:modelValue":t[3]||(t[3]=b=>r.search=b),placeholder:i.placeholder,onKeyup:Ut(i.toSearch,["enter"]),onInput:t[4]||(t[4]=b=>r.persoform_search=!1),clearable:""},{prefix:x(()=>[y(l,{onClick:i.toSearch},{default:x(()=>[y(s)]),_:1},8,["onClick"])]),append:x(()=>[y(d,{class:"fcom_minimal_select fcom_global_search_append",modelValue:r.search_space,"onUpdate:modelValue":t[1]||(t[1]=b=>r.search_space=b),placeholder:e.$t("All Posts"),style:{width:"100px"}},{default:x(()=>[y(a,{label:e.$t("All Posts"),value:"__all__"},null,8,["label"]),(_(!0),k(Q,null,Te(r.searchGroups,b=>(_(),L(u,{key:b.label,label:b.label},{default:x(()=>[(_(!0),k(Q,null,Te(b.spaces,v=>(_(),L(a,{key:v.slug,label:v.title,value:v.slug},{default:x(()=>[v.id?(_(),k("span",AIe,[y(c,{space_profile:v},null,8,["space_profile"]),g("span",null,M(e.getExcerpt(v.title,30)),1)])):(_(),k("span",IIe,M(e.getExcerpt(v.title,30)),1))]),_:2},1032,["label","value"]))),128))]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["modelValue","placeholder","onKeyup"])])]),default:x(()=>[r.persoform_search&&r.search?(_(),k("div",OIe,[y(h,{ref:"feedsScroller",onScroll:i.handleScroll,style:{"padding-right":"20px"},height:"70vh"},{default:x(()=>[y(p,{layout_style:"list",feed_name:"search_results",space:r.search_space!="__all__"?r.search_space:"",ref:"feedsRef",default_search:r.search,hide_filters:!1,hide_create_form:!0},null,8,["space","default_search"])]),_:1},8,["onScroll"])])):(_(),k("div",PIe,[y(l,null,{default:x(()=>[y(s)]),_:1}),g("h3",null,M(e.$t("Search for anything")),1),g("p",null,M(e.$t("Try searching for keywords in posts")),1),g("p",null,[te(M(e.$t("Tip: Quick-launch search with"))+" ",1),NIe,te(" (Mac) "+M(e.$t("or"))+" ",1),LIe,te(" (Windows/Linux)")])]))]),_:1},8,["modelValue","width"])):O("",!0)],64)}const FIe=de(TIe,[["render",RIe]]),DIe={name:"SvgShapeGenerator",emits:["update"],data(){return{currentColor:"",selectedShape:"circle"}},computed:{svgShapes(){return{circle:`<svg class="fcom_shape fcom_shape_circle" viewBox="0 0 24 24" fill="${this.currentColor}" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="12" r="12"/></svg>`,square:`<svg class="fcom_shape fcom_shape_square" viewBox="0 0 24 24" fill="${this.currentColor}" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><rect x="0" y="0" width="24" height="24"/></svg>`,triangle:`<svg class="fcom_shape fcom_shape_triangle" viewBox="0 0 24 24" fill="${this.currentColor}" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M21 12L2 2v20z"/></svg>`,star:`<svg class="fcom_shape fcom_shape_star" viewBox="0 0 24 24" width="24" height="24"><polygon points="12,2.4 14.6,8.4 21.6,8.4 15.6,13.2 18,19.6 12,15.6 6,19.6 8.4,13.2 2.4,8.4 9.4,8.4" fill="${this.currentColor}"/></svg>`,heart:`<svg class="fcom_shape fcom_shape_heart" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z" fill="${this.currentColor}"/></svg>`,diamond:`<svg class="fcom_shape fcom_shape_diamond" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><polygon points="12,2 22,12 12,22 2,12" fill="${this.currentColor}"/></svg>`}}},methods:{selectShape(e){this.selectedShape=e,this.$emit("update",this.svgShapes[e])},colorChanged(e){this.currentColor=e,this.$emit("update",this.svgShapes[this.selectedShape])}}},BIe={class:"fcom_svg_generator"},zIe={class:"fcom_form_item"},VIe={class:"fcom_form_item"},jIe=["innerHTML"];function HIe(e,t,n,o,r,i){const s=qM,l=hh,a=Is;return _(),k("div",BIe,[g("div",zIe,[g("label",null,M(e.$t("Select Shape Color:")),1),y(s,{predefine:e.appVars.suggestedColors,modelValue:r.currentColor,"onUpdate:modelValue":t[0]||(t[0]=c=>r.currentColor=c),onActiveChange:i.colorChanged,size:"large","show-alpha":""},null,8,["predefine","modelValue","onActiveChange"])]),g("div",VIe,[g("label",null,M(e.$t("Select Shape:")),1),y(a,{onChange:t[1]||(t[1]=c=>i.selectShape(r.selectedShape)),modelValue:r.selectedShape,"onUpdate:modelValue":t[2]||(t[2]=c=>r.selectedShape=c)},{default:x(()=>[(_(!0),k(Q,null,Te(i.svgShapes,(c,u)=>(_(),L(l,{key:u,value:u},{default:x(()=>[g("div",{innerHTML:c},null,8,jIe)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])])}const UIe=de(DIe,[["render",HIe]]),WIe={name:"LogoEmojiSelector",components:{EmojiPicker:XN,ImageUploader:vc,SvgShapeGenerator:UIe},props:{config:{type:Object,required:!0,default:()=>({emoji:"",logo:"",shape_svg:""})},fallback_mark:{type:String,default:'<span class="fcom_no_avatar"></span>'},custom_svg:{type:Boolean,default:!1}},data(){return{emoji:this.config.emoji||"",logo:this.config.logo||"",shape_svg:this.config.shape_svg||"",visible:!1,selectedTab:"emoji"}},methods:{setData(e){e=="emoji"?(this.logo="",this.shape_svg=""):e=="shape_svg"?(this.emoji="",this.logo=""):(this.emoji="",this.shape_svg=""),this.$emit("update",{logo:this.logo,emoji:this.emoji,shape_svg:this.shape_svg})},handleLogoPhotoUpload(e){this.logo=e,this.setData("logo")},handleShapeChanged(e){this.shape_svg=e,this.setData("shape_svg")}},computed:{currentMark(){return this.logo?`<img alt="" src="${this.logo}" style="width: 20px; height: 20px; aspect-ratio: 1/1;">`:this.emoji.trim()?`<span style="font-size: 20px">${this.emoji.trim()}</span>`:this.shape_svg?'<i class="fcom_shape el-icon">'+this.shape_svg+"</i>":this.fallback_mark}},mounted(){if(this.logo)this.selectedTab="logo";else if(this.emoji)this.selectedTab="emoji";else if(this.shape_svg){if(this.custom_svg&&!/fcom_shape/.test(this.shape_svg)){this.selectedTab="shape_svg";return}this.selectedTab="shape"}}},qIe=["innerHTML"];function KIe(e,t,n,o,r,i){const s=Ye,l=z("EmojiPicker"),a=An,c=V3,u=z("SvgShapeGenerator"),d=Hl,f=z("ImageUploader"),p=z3,h=po;return _(),L(h,{placement:"bottom",width:450,persistent:!1,style:{padding:"0"},visible:r.visible,ref:"logo_emoji_pop",class:"logo_emoji_pop"},{reference:x(()=>[y(s,{onClick:t[0]||(t[0]=m=>r.visible=!r.visible),text:""},{default:x(()=>[g("span",{class:"logo_emoji_holder",style:{cursor:"pointer"},innerHTML:i.currentMark||""},null,8,qIe)]),_:1})]),default:x(()=>[y(p,{modelValue:r.selectedTab,"onUpdate:modelValue":t[6]||(t[6]=m=>r.selectedTab=m),type:"border-card"},{default:x(()=>[y(c,{name:"emoji",label:e.$t("Emoji")},{default:x(()=>[y(a,{onChange:t[2]||(t[2]=m=>i.setData("emoji")),modelValue:r.emoji,"onUpdate:modelValue":t[3]||(t[3]=m=>r.emoji=m),placeholder:e.$t("Select or paste your emoji here"),style:{width:"100%"}},{append:x(()=>[y(l,{close_on_select:!0,onEmojiSelected:t[1]||(t[1]=m=>{r.emoji=m,i.setData("emoji")})})]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),y(c,{name:"shape",label:e.$t("Shape")},{default:x(()=>[y(u,{onUpdate:i.handleShapeChanged},null,8,["onUpdate"])]),_:1},8,["label"]),n.custom_svg?(_(),L(c,{key:0,name:"shape_svg",label:e.$t("Custom SVG")},{default:x(()=>[y(a,{rows:4,type:"textarea",onChange:t[4]||(t[4]=m=>i.setData("shape_svg")),modelValue:r.shape_svg,"onUpdate:modelValue":t[5]||(t[5]=m=>r.shape_svg=m),placeholder:e.$t("Paste your SVG here"),style:{width:"100%"}},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):O("",!0),y(c,{name:"logo",label:e.$t("Custom Image")},{default:x(()=>[r.logo?(_(),L(d,{key:0,alt:e.$t("Logo"),src:r.logo,style:{"max-width":"100px"}},null,8,["alt","src"])):O("",!0),y(f,{additionalData:{resize:!0,max_width:400},onUploaded:i.handleLogoPhotoUpload},null,8,["onUploaded"])]),_:1},8,["label"])]),_:1},8,["modelValue"]),y(s,{onClick:t[7]||(t[7]=m=>{r.visible=!1}),type:"success",plain:"",style:{"margin-top":"20px"}},{default:x(()=>[te(M(e.$t("Close")),1)]),_:1})]),_:1},8,["visible"])}const H4=de(WIe,[["render",KIe]]),GIe={name:"SlugInput",emits:["update:modelValue"],props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},is_inital_inactive:{type:Boolean,default:!1},edit_notice:{type:String,default:""},popMessage:{type:String,default:""},prefix:{type:String,default:""}},data(){return{model:this.modelValue,showEdit:this.is_inital_inactive}},methods:{updateSlug(){this.model=this.model.replace(/\s/g,"-"),this.model=this.model.replace(/[^a-zA-Z0-9-_]/g,""),this.$emit("update:modelValue",this.model)},confirmEditInit(){this.$messageBox.confirm(this.popMessage,this.$t("Warning"),{confirmButtonText:this.$t("Yes"),cancelButtonText:this.$t("No"),type:"warning"}).then(()=>{this.showEdit=!1,this.$refs.input.focus()})}}},YIe={key:0,class:"fcom_slug_input_info"},ZIe=["innerHTML"];function JIe(e,t,n,o,r,i){const s=Ye,l=An;return _(),k(Q,null,[y(l,{disabled:n.disabled,readonly:r.showEdit,modelValue:r.model,"onUpdate:modelValue":t[1]||(t[1]=a=>r.model=a),ref:"input",placeholder:n.placeholder,onInput:i.updateSlug},Vo({_:2},[n.prefix?{name:"prepend",fn:x(()=>[g("span",null,M(n.prefix),1)]),key:"0"}:void 0,r.showEdit?{name:"append",fn:x(()=>[y(s,{onClick:t[0]||(t[0]=a=>i.confirmEditInit()),text:"",type:"info"},{default:x(()=>[te(M(e.$t("change")),1)]),_:1})]),key:"1"}:void 0]),1032,["disabled","readonly","modelValue","placeholder","onInput"]),!r.showEdit&&n.edit_notice?(_(),k("div",YIe,[g("p",{innerHTML:n.edit_notice},null,8,ZIe)])):O("",!0)],64)}const x0=de(GIe,[["render",JIe]]),XIe={name:"TopicSelector",props:["modelValue","creatable"],emits:["update:modelValue"],components:{SlugInput:x0},data(){return{topics:[],selected:this.modelValue,loading:!1,creatingTopic:!1,newTopic:{title:"OK"}}},methods:{initCreatetopic(){this.newTopic={title:"",description:"",slug:""}},fetchTopics(){this.loading=!0,this.$get("admin/topics",{optionsOnly:!0}).then(e=>{this.topics=e.topics}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},createTopic(){if(!this.newTopic.title||this.newTopic.title.length<2){this.$notify.error(this.$t("Title must be at least 2 characters long"));return}this.creatingTopic=!0;let e={title:this.newTopic.title,description:this.newTopic.description,slug:this.newTopic.slug,is_inline:!0};this.$post("admin/topics",e).then(t=>{this.$notify.success(t.message),this.fetchTopics(),this.selected.push(t.topic.id),this.$refs.creating_topic_ref.hide()}).catch(t=>{this.$handleError(t)}).finally(()=>{this.creatingTopic=!1})}},watch:{selected(){this.$emit("update:modelValue",this.selected)}},mounted(){this.fetchTopics()}},QIe={class:"fcom_topic_selector"};function eOe(e,t,n,o,r,i){const s=Ho,l=jo,a=z("Plus"),c=ge,u=Ye,d=An,f=qi,p=z("slug-input"),h=Wi,m=po,b=Mt("loading");return _(),k("div",QIe,[ze((_(),L(l,{style:{width:"100%"},"multiple-limit":20,modelValue:r.selected,"onUpdate:modelValue":t[0]||(t[0]=v=>r.selected=v),filterable:!0,multiple:!0,clearable:"",placeholder:e.$t("Choose up to 20 topics")},{default:x(()=>[(_(!0),k(Q,null,Te(r.topics,v=>(_(),L(s,{key:v.slug,label:v.title,value:v.id},{default:x(()=>[g("span",null,M(v.title),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])),[[b,r.loading]]),n.creatable?(_(),L(m,{key:0,ref:"creating_topic_ref",onShow:i.initCreatetopic,placement:"bottom",width:400,trigger:"click"},{reference:x(()=>[y(u,{class:"fcom_secondary_button"},{default:x(()=>[y(c,null,{default:x(()=>[y(a)]),_:1}),g("span",null,M(e.$t("New")),1)]),_:1})]),default:x(()=>[y(h,{modelValue:r.newTopic,"onUpdate:modelValue":t[5]||(t[5]=v=>r.newTopic=v),"label-position":"top"},{default:x(()=>[y(f,{label:e.$t("Title")},{default:x(()=>[y(d,{modelValue:r.newTopic.title,"onUpdate:modelValue":t[1]||(t[1]=v=>r.newTopic.title=v),placeholder:e.$t("Title of the topic")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),y(f,{label:e.$t("Slug (optional)")},{default:x(()=>[y(p,{modelValue:r.newTopic.slug,"onUpdate:modelValue":t[2]||(t[2]=v=>r.newTopic.slug=v),placeholder:e.$t("Slug of the topic")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),y(f,{label:e.$t("Description (optional)")},{default:x(()=>[y(d,{modelValue:r.newTopic.description,"onUpdate:modelValue":t[3]||(t[3]=v=>r.newTopic.description=v),type:"textarea",rows:3,placeholder:e.$t("Description of the topic")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),y(f,null,{default:x(()=>[y(u,{type:"primary",onClick:t[4]||(t[4]=v=>i.createTopic()),loading:r.creatingTopic},{default:x(()=>[te(M(e.$t("Create")),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["onShow"])):O("",!0)])}const IL=de(XIe,[["render",eOe]]),tOe={name:"ListViewIcon"},nOe={width:"160",height:"158",viewBox:"0 0 160 158",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oOe=ad('<rect x="0.5" y="0.5" width="159" height="157" rx="5.5" fill="transparent"></rect><rect x="0.5" y="0.5" width="159" height="157" rx="5.5" stroke="var(--fcom-primary-border)"></rect><rect x="12.5" y="12.5" width="135" height="27" rx="3.5" fill="transparent"></rect><rect x="12.5" y="12.5" width="135" height="27" rx="3.5" stroke="var(--fcom-primary-border)"></rect><path d="M20 26C20 21.5817 23.5817 18 28 18C32.4183 18 36 21.5817 36 26C36 30.4183 32.4183 34 28 34C23.5817 34 20 30.4183 20 26Z" fill="var(--fcom-active-bg)"></path><g clip-path="url(#clip0_3601_59265)"><ellipse cx="27.9996" cy="33.6" rx="6.4" ry="4.8" fill="var(--fcom-primary-bg)" fill-opacity="0.72"></ellipse><circle opacity="0.9" cx="27.9998" cy="24.4" r="3.2" fill="var(--fcom-primary-bg)"></circle></g><path d="M44 26C44 24.3431 45.3431 23 47 23H137C138.657 23 140 24.3431 140 26C140 27.6569 138.657 29 137 29H47C45.3431 29 44 27.6569 44 26Z" fill="var(--fcom-active-bg)"></path><rect x="12.5" y="48.5" width="135" height="27" rx="3.5" fill="transparent"></rect><rect x="12.5" y="48.5" width="135" height="27" rx="3.5" stroke="var(--fcom-primary-border)"></rect><path d="M20 62C20 57.5817 23.5817 54 28 54C32.4183 54 36 57.5817 36 62C36 66.4183 32.4183 70 28 70C23.5817 70 20 66.4183 20 62Z" fill="var(--fcom-active-bg)"></path><g clip-path="url(#clip1_3601_59265)"><ellipse cx="27.9996" cy="69.6001" rx="6.4" ry="4.8" fill="var(--fcom-primary-bg)" fill-opacity="0.72"></ellipse><circle opacity="0.9" cx="27.9998" cy="60.4" r="3.2" fill="var(--fcom-primary-bg)"></circle></g><path d="M44 62C44 60.3431 45.3431 59 47 59H137C138.657 59 140 60.3431 140 62C140 63.6569 138.657 65 137 65H47C45.3431 65 44 63.6569 44 62Z" fill="var(--fcom-active-bg)"></path><rect x="12.5" y="84.5" width="135" height="27" rx="3.5" fill="transparent"></rect><rect x="12.5" y="84.5" width="135" height="27" rx="3.5" stroke="var(--fcom-primary-border)"></rect><path d="M20 98C20 93.5817 23.5817 90 28 90C32.4183 90 36 93.5817 36 98C36 102.418 32.4183 106 28 106C23.5817 106 20 102.418 20 98Z" fill="var(--fcom-active-bg)"></path><g clip-path="url(#clip2_3601_59265)"><ellipse cx="27.9996" cy="105.6" rx="6.4" ry="4.8" fill="var(--fcom-primary-bg)" fill-opacity="0.72"></ellipse><circle opacity="0.9" cx="27.9998" cy="96.3999" r="3.2" fill="var(--fcom-primary-bg)"></circle></g><path d="M44 98C44 96.3431 45.3431 95 47 95H137C138.657 95 140 96.3431 140 98C140 99.6569 138.657 101 137 101H47C45.3431 101 44 99.6569 44 98Z" fill="var(--fcom-active-bg)"></path><rect x="12.5" y="120.5" width="135" height="27" rx="3.5" fill="transparent"></rect><rect x="12.5" y="120.5" width="135" height="27" rx="3.5" stroke="var(--fcom-primary-border)"></rect><path d="M20 134C20 129.582 23.5817 126 28 126C32.4183 126 36 129.582 36 134C36 138.418 32.4183 142 28 142C23.5817 142 20 138.418 20 134Z" fill="var(--fcom-active-bg)"></path><g clip-path="url(#clip3_3601_59265)"><ellipse cx="27.9996" cy="141.6" rx="6.4" ry="4.8" fill="var(--fcom-primary-bg)" fill-opacity="0.72"></ellipse><circle opacity="0.9" cx="27.9998" cy="132.4" r="3.2" fill="var(--fcom-primary-bg)"></circle></g><path d="M44 134C44 132.343 45.3431 131 47 131H137C138.657 131 140 132.343 140 134C140 135.657 138.657 137 137 137H47C45.3431 137 44 135.657 44 134Z" fill="var(--fcom-active-bg)"></path><defs><clipPath id="clip0_3601_59265"><rect x="20" y="18" width="16" height="16" rx="8" fill="transparent"></rect></clipPath><clipPath id="clip1_3601_59265"><rect x="20" y="54" width="16" height="16" rx="8" fill="transparent"></rect></clipPath><clipPath id="clip2_3601_59265"><rect x="20" y="90" width="16" height="16" rx="8" fill="transparent"></rect></clipPath><clipPath id="clip3_3601_59265"><rect x="20" y="126" width="16" height="16" rx="8" fill="transparent"></rect></clipPath></defs>',23),rOe=[oOe];function iOe(e,t,n,o,r,i){return _(),k("svg",nOe,rOe)}const sOe=de(tOe,[["render",iOe]]),lOe={name:"TimelineViewIcon"},aOe={width:"160",height:"158",viewBox:"0 0 160 158",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cOe=ad('<rect x="0.5" y="0.5" width="159" height="157" rx="5.5" fill="transparent"></rect><rect x="0.5" y="0.5" width="159" height="157" rx="5.5" stroke="var(--fcom-primary-border)"></rect><rect x="12.5" y="12.5" width="135" height="60" rx="3.5" fill="transparent"></rect><rect x="12.5" y="12.5" width="135" height="60" rx="3.5" stroke="var(--fcom-primary-border)"></rect><path d="M20 24C20 21.7909 21.7909 20 24 20H136C138.209 20 140 21.7909 140 24C140 26.2091 138.209 28 136 28H24C21.7909 28 20 26.2091 20 24Z" fill="var(--fcom-active-bg)"></path><path d="M20 37C20 34.7909 21.7909 33 24 33H130.286C132.495 33 134.286 34.7909 134.286 37C134.286 39.2091 132.495 41 130.286 41H24C21.7909 41 20 39.2091 20 37Z" fill="var(--fcom-active-bg)"></path><path d="M20 57C20 52.5817 23.5817 49 28 49C32.4183 49 36 52.5817 36 57C36 61.4183 32.4183 65 28 65C23.5817 65 20 61.4183 20 57Z" fill="var(--fcom-active-bg)"></path><g clip-path="url(#clip0_3601_59186)"><ellipse cx="27.9996" cy="64.6001" rx="6.4" ry="4.8" fill="var(--fcom-primary-bg)" fill-opacity="0.72"></ellipse><circle opacity="0.9" cx="27.9998" cy="55.4" r="3.2" fill="var(--fcom-primary-bg)"></circle></g><path d="M44 53C44 51.3431 45.3431 50 47 50H81C82.6569 50 84 51.3431 84 53C84 54.6569 82.6569 56 81 56H47C45.3431 56 44 54.6569 44 53Z" fill="var(--fcom-active-bg)"></path><path d="M44 62C44 60.8954 44.8954 60 46 60H66C67.1046 60 68 60.8954 68 62C68 63.1046 67.1046 64 66 64H46C44.8954 64 44 63.1046 44 62Z" fill="var(--fcom-active-bg)"></path><rect x="12.5" y="85.5" width="135" height="60" rx="3.5" fill="transparent"></rect><rect x="12.5" y="85.5" width="135" height="60" rx="3.5" stroke="var(--fcom-primary-border)"></rect><path d="M20 97C20 94.7909 21.7909 93 24 93H136C138.209 93 140 94.7909 140 97C140 99.2091 138.209 101 136 101H24C21.7909 101 20 99.2091 20 97Z" fill="var(--fcom-active-bg)"></path><path d="M20 110C20 107.791 21.7909 106 24 106H130.286C132.495 106 134.286 107.791 134.286 110C134.286 112.209 132.495 114 130.286 114H24C21.7909 114 20 112.209 20 110Z" fill="var(--fcom-active-bg)"></path><path d="M20 130C20 125.582 23.5817 122 28 122C32.4183 122 36 125.582 36 130C36 134.418 32.4183 138 28 138C23.5817 138 20 134.418 20 130Z" fill="var(--fcom-active-bg)"></path><g clip-path="url(#clip1_3601_59186)"><ellipse cx="27.9996" cy="137.6" rx="6.4" ry="4.8" fill="var(--fcom-primary-bg)" fill-opacity="0.72"></ellipse><circle opacity="0.9" cx="27.9998" cy="128.4" r="3.2" fill="var(--fcom-primary-bg)"></circle></g><path d="M44 126C44 124.343 45.3431 123 47 123H81C82.6569 123 84 124.343 84 126C84 127.657 82.6569 129 81 129H47C45.3431 129 44 127.657 44 126Z" fill="var(--fcom-active-bg)"></path><path d="M44 135C44 133.895 44.8954 133 46 133H66C67.1046 133 68 133.895 68 135C68 136.105 67.1046 137 66 137H46C44.8954 137 44 136.105 44 135Z" fill="var(--fcom-active-bg)"></path><defs><clipPath id="clip0_3601_59186"><rect x="20" y="49" width="16" height="16" rx="8" fill="transparent"></rect></clipPath><clipPath id="clip1_3601_59186"><rect x="20" y="122" width="16" height="16" rx="8" fill="transparent"></rect></clipPath></defs>',19),uOe=[cOe];function dOe(e,t,n,o,r,i){return _(),k("svg",aOe,uOe)}const fOe=de(lOe,[["render",dOe]]),pOe={name:"CreateSpaceForm",emits:["completed"],components:{SlugInput:x0,ImageUploader:vc,LogoEmojiSelector:H4,TopicSelector:IL,ListViewIcon:sOe,TimelineViewIcon:fOe},props:{community:{required:!1,default:null},parent_id:{required:!1,default:null},savingCount:{required:!1,default:0}},data(){return{saving:!1,privacies:sL,form:{title:"",slug:"",privacy:"private",parent_id:"",description:"",settings:{custom_lock_screen:"no",restricted_post_only:"no",emoji:"🚀",shape_svg:"",can_request_join:"yes",layout_style:"timeline",show_sidebar:"yes",members_page_status:"members_only"},topic_ids:[]},dataLoaded:!1,showingSections:["basic"]}},watch:{savingCount(){this.submit()}},methods:{submit(){this.saving=!0;let e="spaces",t={space:this.form},n=this.$post;this.form.id&&(e+="/"+this.form.slug+"/by-slug",t={data:{title:this.form.title,privacy:this.form.privacy,description:this.form.description,group_chat_support:this.form.group_chat_support,settings:this.form.settings,logo:this.form.logo,parent_id:this.form.parent_id,cover_photo:this.form.cover_photo,topic_ids:this.form.topic_ids}},n=this.$put),n(e,t).then(o=>{if(this.$eventBus.emit("reloadMenu"),!this.form.id){let r=this.$router.resolve({name:"space_feeds",params:{space:o.space.slug}}).href;window.location.href=r;return}this.$notify.success(o.message),this.$emit("completed",o.space)}).catch(o=>{this.form.id||(this.showingSections=["basic"]),this.$handleError(o)}).finally(()=>{this.saving=!1})},handleCoverPhotoUpload(e){this.form.cover_photo=e},handleLogoPhotoUpload(e){this.form.logo=e}},mounted(){if(this.community&&this.community.id){this.community.chat_thread_id&&(this.community.group_chat_support="yes"),this.form=this.community;let e=[];this.community.topics&&this.each(this.community.topics,t=>{e.push(t.id)}),this.form.topic_ids=e}else this.parent_id?(this.form.parent_id=this.parent_id,this.$route.query.parent_id):this.$route.query.parent_id&&(this.form.parent_id=this.$route.query.parent_id);this.form.id&&(this.showingSections=["basic","customization"]),this.dataLoaded=!0}},hOe={key:0},mOe={style:{"font-weight":"bold"}},_Oe=["innerHTML"],gOe={key:0},vOe={class:"fcom_lined_checkboxes"},bOe={class:"fcom_svg_radio_item"},yOe={class:"svg_radio_label"},wOe={class:"fcom_svg_radio_item"},kOe={class:"svg_radio_label"},xOe={class:"fcom_help_text"},COe={class:"fcom_help_text"},SOe=["href"],$Oe={class:"fcom_image_uploader_wrapper"},EOe={class:"fcom_help_text"},TOe={class:"fcom_image_uploader_wrapper"},MOe={class:"fcom_help_text"},AOe={key:0},IOe={key:1},OOe={class:"fcom_space_form_bottom"};function POe(e,t,n,o,r,i){const s=z("logo-emoji-selector"),l=An,a=qi,c=z("SlugInput"),u=Ho,d=jo,f=z1,p=Is,h=Dr,m=z("TimelineViewIcon"),b=z("ListViewIcon"),v=z("topic-selector"),E=Hl,w=z("EditPen"),S=ge,T=Ye,$=z("Delete"),A=z("ImageUploader"),P=Wi,N=Mt("loading");return _(),L(P,{onSubmit:t[19]||(t[19]=qe(I=>e.doNothing(),["prevent"])),modelValue:r.form,"onUpdate:modelValue":t[20]||(t[20]=I=>r.form=I),"label-position":"top",class:"fcom_space_form"},{default:x(()=>[r.showingSections.indexOf("basic")!==-1?(_(),k(Q,{key:0},[r.form.id?O("",!0):(_(),k("h4",hOe,M(e.$t("Basic Info")),1)),y(a,{label:e.$t("Space Title")},{default:x(()=>[y(l,{type:"text",placeholder:e.$t("Your Space Title"),modelValue:r.form.title,"onUpdate:modelValue":t[1]||(t[1]=I=>r.form.title=I)},{prepend:x(()=>{var I,B;return[r.dataLoaded?(_(),L(s,{key:0,custom_svg:!0,onUpdate:t[0]||(t[0]=V=>{r.form.settings.emoji=V.emoji,r.form.logo=V.logo,r.form.settings.shape_svg=V.shape_svg}),config:{logo:r.form.logo,emoji:((I=r.form.settings)==null?void 0:I.emoji)||"",shape_svg:(B=r.form.settings)==null?void 0:B.shape_svg}},null,8,["config"])):O("",!0)]}),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"]),r.dataLoaded?(_(),L(a,{key:1,label:e.$t("Slug (optional)")},{default:x(()=>[y(c,{disabled:!!r.form.id,modelValue:r.form.slug,"onUpdate:modelValue":t[2]||(t[2]=I=>r.form.slug=I),placeholder:e.$t("Space Slug (no space or special chars)")},null,8,["disabled","modelValue","placeholder"])]),_:1},8,["label"])):O("",!0),y(a,{label:e.$t("Description")},{default:x(()=>[y(l,{type:"textarea",rows:3,placeholder:e.$t("Space Description"),modelValue:r.form.description,"onUpdate:modelValue":t[3]||(t[3]=I=>r.form.description=I)},null,8,["placeholder","modelValue"])]),_:1},8,["label"]),y(a,{label:e.$t("Privacy")},{default:x(()=>[y(d,{"popper-class":"rich_select",modelValue:r.form.privacy,"onUpdate:modelValue":t[4]||(t[4]=I=>r.form.privacy=I),placeholder:e.$t("Select Privacy")},{default:x(()=>[(_(!0),k(Q,null,Te(r.privacies,(I,B)=>(_(),L(u,{key:B,label:I.label,value:B},{default:x(()=>[g("span",mOe,M(e.$labelize(I.label)),1),g("p",{innerHTML:I.description},null,8,_Oe)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),r.form.privacy=="private"?(_(),L(a,{key:2,label:e.$t("Lock Screen Type")},{default:x(()=>[y(p,{modelValue:r.form.settings.custom_lock_screen,"onUpdate:modelValue":t[5]||(t[5]=I=>r.form.settings.custom_lock_screen=I),class:"fcom_radio_group"},{default:x(()=>[y(f,{value:"yes"},{default:x(()=>[te(M(e.$t("Custom Lock Screen")),1)]),_:1}),y(f,{value:"no"},{default:x(()=>[te(M(e.$t("Default Lock Screen")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):O("",!0),r.form.settings.custom_lock_screen=="no"&&r.form.privacy!="secret"?(_(),L(a,{key:3},{default:x(()=>[y(h,{"true-value":"yes","false-value":"no",modelValue:r.form.settings.can_request_join,"onUpdate:modelValue":t[6]||(t[6]=I=>r.form.settings.can_request_join=I)},{default:x(()=>[te(M(e.$t("Allow users to request to join this Space")),1)]),_:1},8,["modelValue"])]),_:1})):O("",!0),y(a,{label:e.$t("Menu Group")},{default:x(()=>[y(d,{modelValue:r.form.parent_id,"onUpdate:modelValue":t[7]||(t[7]=I=>r.form.parent_id=I)},{default:x(()=>[(_(!0),k(Q,null,Te(e.appVars.space_groups,I=>(_(),L(u,{key:I.id,value:I.id.toString(),label:I.title},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),y(a,{label:e.$t("Who can view space members")},{default:x(()=>[y(d,{modelValue:r.form.settings.members_page_status,"onUpdate:modelValue":t[8]||(t[8]=I=>r.form.settings.members_page_status=I)},{default:x(()=>[y(u,{value:"members_only",label:e.$t("Members Only")},null,8,["label"]),y(u,{value:"admin_only",label:e.$t("Admin/Moderators Only")},null,8,["label"]),y(u,{value:"logged_in",label:e.$t("Any Logged in users")},null,8,["label"]),y(u,{value:"everybody",label:e.$t("Anyone")},null,8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["label"])],64)):O("",!0),r.showingSections.indexOf("customization")!==-1?(_(),k(Q,{key:1},[r.form.id?O("",!0):(_(),k("h4",gOe,M(e.$t("Customization")),1)),r.form.settings?(_(),L(a,{key:1,label:e.$t("Features Customizations")},{default:x(()=>[g("div",vOe,[y(h,{"true-value":"yes","false-value":"no",modelValue:r.form.settings.restricted_post_only,"onUpdate:modelValue":t[9]||(t[9]=I=>r.form.settings.restricted_post_only=I)},{default:x(()=>[te(M(e.$t("Only admin or moderators can create post")),1)]),_:1},8,["modelValue"]),y(h,{"true-value":"yes","false-value":"no",modelValue:r.form.settings.show_sidebar,"onUpdate:modelValue":t[10]||(t[10]=I=>r.form.settings.show_sidebar=I)},{default:x(()=>[te(M(e.$t("Show Right Sidebar on Space")),1)]),_:1},8,["modelValue"]),y(h,{"true-value":"yes","false-value":"no",modelValue:r.form.settings.hide_members_count,"onUpdate:modelValue":t[11]||(t[11]=I=>r.form.settings.hide_members_count=I)},{default:x(()=>[te(M(e.$t("Hide Members count from spaces page (when members' page access unavailable)")),1)]),_:1},8,["modelValue"])])]),_:1},8,["label"])):O("",!0),y(a,{label:e.$t("Default Layout Styles")},{default:x(()=>[y(p,{modelValue:r.form.settings.layout_style,"onUpdate:modelValue":t[12]||(t[12]=I=>r.form.settings.layout_style=I),class:"fcom_svg_radio_group"},{default:x(()=>[g("div",bOe,[y(f,{value:"timeline"},{default:x(()=>[y(m),g("p",yOe,M(e.$t("Timeline")),1)]),_:1})]),g("div",wOe,[y(f,{value:"list"},{default:x(()=>[y(b),g("p",kOe,M(e.$t("List")),1)]),_:1})])]),_:1},8,["modelValue"]),g("div",xOe,[g("p",null,M(e.$t("User can change the layout style to their own preference.")),1)])]),_:1},8,["label"]),e.has_pro&&r.form.id?(_(),L(a,{key:2,label:e.$t("Topic navigation")},{default:x(()=>[y(v,{creatable:!0,space_id:r.form.id,modelValue:r.form.topic_ids,"onUpdate:modelValue":t[13]||(t[13]=I=>r.form.topic_ids=I)},null,8,["space_id","modelValue"]),g("div",COe,[g("p",null,[te(M(e.$t("Categorize your posts and allow members to filter spaces with the topic navigation bar. You can define up to 20 topics per space."))+" ",1),g("a",{target:"_blank",rel:"noopener",href:e.$getRouteLink("admin/settings/topics-settings")},M(e.$t("Manage all topics.")),9,SOe)])])]),_:1},8,["label"])):O("",!0),e.appVars.has_chat?(_(),L(a,{key:3,label:e.$t("Group Chat?")},{default:x(()=>[y(h,{"true-value":"yes","false-value":"no",modelValue:r.form.group_chat_support,"onUpdate:modelValue":t[14]||(t[14]=I=>r.form.group_chat_support=I)},{default:x(()=>[te(M(e.$t("Enable group chat for this space members")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"])):O("",!0),y(a,{label:e.$t("Thumbnail / Open Graph Image (Recommended Size: 1200 x 630)")},{default:x(()=>[r.form.settings.og_image?(_(),L(E,{key:0,alt:e.$t("Thumbnail / Open Graph Image"),src:r.form.settings.og_image,style:{"max-width":"100px",height:"auto"}},null,8,["alt","src"])):O("",!0),g("div",$Oe,[y(A,{isTextBtn:!1,removeIcon:!0,can_remove:!!r.form.settings.og_image,additionalData:{resize:!0,max_width:1200,max_height:630},onUploaded:t[15]||(t[15]=I=>{r.form.settings.og_image=I})},Vo({remove:x(()=>[y(S,null,{default:x(()=>[y($)]),_:1})]),_:2},[r.form.settings.og_image?{name:"trigger",fn:x(()=>[y(T,{class:"fcom_plain_button"},{default:x(()=>[y(S,null,{default:x(()=>[y(w)]),_:1})]),_:1})]),key:"0"}:void 0]),1032,["can_remove"])]),g("div",EOe,[g("p",null,M(e.$t("Will be used on card preview and social sharing preview.")),1)])]),_:1},8,["label"]),y(a,{label:e.$t("Featured Image (Recommended size: 1600x500) - Optional")},{default:x(()=>[r.form.cover_photo?(_(),L(E,{key:0,alt:e.$t("Featured Image Preview"),src:r.form.cover_photo,style:{"max-width":"100px",height:"auto"}},null,8,["alt","src"])):O("",!0),g("div",TOe,[y(A,{isTextBtn:!1,removeIcon:!0,can_remove:!!r.form.cover_photo,additionalData:{resize:!0,max_width:1600},onUploaded:i.handleCoverPhotoUpload},Vo({remove:x(()=>[y(S,null,{default:x(()=>[y($)]),_:1})]),_:2},[r.form.cover_photo?{name:"trigger",fn:x(()=>[y(T,{class:"fcom_plain_button"},{default:x(()=>[y(S,null,{default:x(()=>[y(w)]),_:1})]),_:1})]),key:"0"}:void 0]),1032,["can_remove","onUploaded"])]),g("div",MOe,[g("p",null,M(e.$t("If you add this image, it will be shown on the space homepage")),1)])]),_:1},8,["label"]),y(a,{style:{"margin-top":"45px"}},{default:x(()=>[r.showingSections.indexOf("basic")===-1?(_(),L(T,{key:0,class:"plain_button",text:"",onClick:t[16]||(t[16]=()=>{r.showingSections=["basic"]})},{default:x(()=>[g("span",null,M(e.$t("Go Back")),1)]),_:1})):O("",!0),ze((_(),L(T,{class:"fcom_primary_button",disabled:r.saving,onClick:t[17]||(t[17]=I=>i.submit())},{default:x(()=>[r.form.id?(_(),k("span",AOe,M(e.$t("Update Info")),1)):(_(),k("span",IOe,M(e.$t("Create")),1))]),_:1},8,["disabled"])),[[N,r.saving]])]),_:1})],64)):(_(),L(a,{key:2},{default:x(()=>[g("div",OOe,[y(T,{onClick:t[18]||(t[18]=()=>{r.showingSections=["customization"]}),class:"fcom_primary_button"},{default:x(()=>[g("span",null,M(e.$t("Continue")),1)]),_:1})])]),_:1}))]),_:1},8,["modelValue"])}const C0=de(pOe,[["render",POe]]),NOe={name:"CreateSpaceForm",components:{TopicSelector:IL,SlugInput:x0,ImageUploader:vc,LogoEmojiSelector:H4},emits:["completed","close"],props:{course:{required:!1,default:{title:"",description:"",privacy:"public",course_type:"self_paced",cover_photo:"",parent_id:"",status:"draft",category_ids:[],settings:{emoji:"",custom_lock_screen:"no",shape_svg:""}}},savingCount:{required:!1,default:0},parent_id:{required:!1,default:null}},data(){return{saving:!1,privacies:Y5e,form:{slug:"",title:"",description:"",privacy:"public",course_type:"self_paced",cover_photo:"",parent_id:"",status:"draft",category_ids:[],settings:{emoji:"",custom_lock_screen:"no",shape_svg:""}},courseTypes:Z5e,dataLoaded:!1}},watch:{savingCount(){this.submit(!0)}},methods:{submit(e=!1){this.saving=!0;let t="admin/courses",n=this.form,o=this.$post;this.form.id&&(t+="/"+this.form.id,n={title:this.form.title,privacy:this.form.privacy,course_type:this.form.course_type,description:this.form.description,status:this.form.status,logo:this.form.logo,cover_photo:this.form.cover_photo,parent_id:this.form.parent_id,settings:this.form.settings,category_ids:this.form.category_ids},o=this.$put),o(t,n).then(r=>{if(!this.form.id){let i=this.$getRouteLink("admin/manage-courses/edit/"+r.course.id+"/lessons");window.location.href=i,this.form={};return}this.$eventBus.emit("reloadMenu"),this.$notify.success(r.message),this.$emit("completed",r.course),e&&this.$emit("close")}).catch(r=>{this.$handleError(r)}).finally(()=>{this.saving=!1})},handlePhotoUpload(e){this.form.cover_photo=e}},mounted(){this.course.id?this.form=this.course:this.parent_id&&(this.form.parent_id=this.parent_id),this.dataLoaded=!0}},LOe={style:{"font-weight":"bold"}},ROe={style:{"font-weight":"bold"}},FOe={class:"fcom_help_text"},DOe=["href"],BOe={class:"fcom_image_uploader_wrapper"},zOe={class:"fcom_help_text"},VOe={key:0},jOe={key:1},HOe={key:1},UOe=["href"];function WOe(e,t,n,o,r,i){const s=z("logo-emoji-selector"),l=An,a=qi,c=z("SlugInput"),u=Ho,d=jo,f=z1,p=Is,h=z("topic-selector"),m=Hl,b=z("EditPen"),v=ge,E=Ye,w=z("Delete"),S=z("ImageUploader"),T=Wi,$=Mt("loading");return e.hasFeature("has_course")?(_(),L(T,{key:0,onSubmit:t[11]||(t[11]=qe(A=>e.doNothing(),["prevent"])),modelValue:r.form,"onUpdate:modelValue":t[12]||(t[12]=A=>r.form=A),"label-position":"top"},{default:x(()=>[y(a,{label:e.$t("Course Title")},{default:x(()=>[y(l,{type:"text",placeholder:e.$t("Your Course Title"),modelValue:r.form.title,"onUpdate:modelValue":t[1]||(t[1]=A=>r.form.title=A)},{prepend:x(()=>{var A,P;return[r.dataLoaded?(_(),L(s,{key:0,custom_svg:!0,onUpdate:t[0]||(t[0]=N=>{r.form.settings.emoji=N.emoji,r.form.logo=N.logo,r.form.settings.shape_svg=N.shape_svg}),config:{logo:r.form.logo,emoji:(A=r.form.settings)==null?void 0:A.emoji,shape_svg:((P=r.form.settings)==null?void 0:P.shape_svg)||""}},null,8,["config"])):O("",!0)]}),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"]),y(a,{label:e.$t("Slug (optional)")},{default:x(()=>[y(c,{disabled:!!r.form.id,modelValue:r.form.slug,"onUpdate:modelValue":t[2]||(t[2]=A=>r.form.slug=A),placeholder:e.$t("Course Slug (no spaces or special characters)")},null,8,["disabled","modelValue","placeholder"]),g("pre",null,M(r.form.slug),1)]),_:1},8,["label"]),y(a,{label:e.$t("Short Description")},{default:x(()=>[y(l,{type:"textarea",rows:3,placeholder:e.$t("Course Description"),modelValue:r.form.description,"onUpdate:modelValue":t[3]||(t[3]=A=>r.form.description=A)},null,8,["placeholder","modelValue"])]),_:1},8,["label"]),y(a,{label:e.$t("Privacy")},{default:x(()=>[y(d,{"popper-class":"rich_select",modelValue:r.form.privacy,"onUpdate:modelValue":t[4]||(t[4]=A=>r.form.privacy=A),placeholder:e.$t("Select Privacy")},{default:x(()=>[(_(!0),k(Q,null,Te(r.privacies,(A,P)=>(_(),L(u,{key:P,label:A.label,value:P},{default:x(()=>[g("span",LOe,M(A.label),1),g("p",null,M(A.description),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),r.form.privacy!="public"?(_(),L(a,{key:0,label:e.$t("Lock Screen Type")},{default:x(()=>[y(p,{modelValue:r.form.settings.custom_lock_screen,"onUpdate:modelValue":t[5]||(t[5]=A=>r.form.settings.custom_lock_screen=A)},{default:x(()=>[y(f,{value:"yes"},{default:x(()=>[te(M(e.$t("Custom")),1)]),_:1}),y(f,{value:"no"},{default:x(()=>[te(M(e.$t("Default")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):O("",!0),y(a,{label:e.$t("Menu Group")},{default:x(()=>[y(d,{modelValue:r.form.parent_id,"onUpdate:modelValue":t[6]||(t[6]=A=>r.form.parent_id=A)},{default:x(()=>[(_(!0),k(Q,null,Te(e.appVars.space_groups,A=>(_(),L(u,{key:A.id,value:A.id.toString(),label:A.title},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),y(a,{label:e.$t("Enrollment Type")},{default:x(()=>[y(d,{"popper-class":"rich_select",modelValue:r.form.course_type,"onUpdate:modelValue":t[7]||(t[7]=A=>r.form.course_type=A),placeholder:e.$t("Select Type")},{default:x(()=>[(_(!0),k(Q,null,Te(r.courseTypes,(A,P)=>(_(),L(u,{key:P,label:A.label,value:P},{default:x(()=>[g("span",ROe,M(A.label),1),g("p",null,M(A.description),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),y(a,{label:e.$t("Status")},{default:x(()=>[y(p,{modelValue:r.form.status,"onUpdate:modelValue":t[8]||(t[8]=A=>r.form.status=A)},{default:x(()=>[y(f,{value:"published"},{default:x(()=>[te(M(e.$t("Published")),1)]),_:1}),y(f,{value:"draft"},{default:x(()=>[te(M(e.$t("Draft")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.has_pro&&r.form.id?(_(),L(a,{key:1,label:e.$t("Topic navigation")},{default:x(()=>[y(h,{modelValue:r.form.category_ids,"onUpdate:modelValue":t[9]||(t[9]=A=>r.form.category_ids=A)},null,8,["modelValue"]),g("div",FOe,[g("p",null,[te(M(e.$t("Categorize your course and allow members to filter courses with the topic navigation bar in the courses directory. You can define up to 20 topics per course."))+" ",1),g("a",{target:"_blank",rel:"noopener",href:e.$getRouteLink("admin/settings/topics-settings")},M(e.$t("Manage all topics.")),9,DOe)])])]),_:1},8,["label"])):O("",!0),y(a,{label:e.$t("Thumbnail / Open Graph Image (Recommended Size: 1200 x 630)")},{default:x(()=>[r.form.cover_photo?(_(),L(m,{key:0,alt:e.$t("Cover Photo"),src:r.form.cover_photo,style:{"max-width":"100px",height:"auto"}},null,8,["alt","src"])):O("",!0),g("div",BOe,[y(S,{isTextBtn:!1,can_remove:!!r.form.cover_photo,additionalData:{resize:!0,max_width:1200,max_height:630},onUploaded:i.handlePhotoUpload},Vo({remove:x(()=>[y(v,null,{default:x(()=>[y(w)]),_:1})]),_:2},[r.form.cover_photo?{name:"trigger",fn:x(()=>[y(E,{class:"fcom_plain_button"},{default:x(()=>[y(v,null,{default:x(()=>[y(b)]),_:1})]),_:1})]),key:"0"}:void 0]),1032,["can_remove","onUploaded"])]),g("div",zOe,[g("p",null,M(e.$t("Will be used on course card preview and social sharing preview.")),1)])]),_:1},8,["label"]),y(a,null,{default:x(()=>[ze((_(),L(E,{class:"fcom_primary_button",disabled:r.saving,onClick:t[10]||(t[10]=A=>i.submit())},{default:x(()=>[r.form.id?(_(),k("span",VOe,M(e.$t("Update Info")),1)):(_(),k("span",jOe,M(e.$t("Create")),1))]),_:1},8,["disabled"])),[[$,r.saving]])]),_:1})]),_:1},8,["modelValue"])):(_(),k("div",HOe,[g("p",null,M(e.$t("Course Module is disabled. Please enable the course module first")),1),g("a",{class:"el-button el-button--default fcom_primary_button",href:e.$getRouteLink("admin/settings/features")},M(e.$t("Go to features settings")),9,UOe)]))}const qOe=de(NOe,[["render",WOe]]),KOe={name:"SpaceIcon"},GOe={version:"1.1",viewBox:"0 0 128 128","xml:space":"preserve"},YOe=ad('<g><path d="M64,42c-13.2,0-24,10.8-24,24s10.8,24,24,24s24-10.8,24-24S77.2,42,64,42z M64,82c-8.8,0-16-7.2-16-16s7.2-16,16-16 s16,7.2,16,16S72.8,82,64,82z"></path><path d="M64,100.8c-14.9,0-29.2,6.2-39.4,17.1l-2.7,2.9l5.8,5.5l2.7-2.9c8.8-9.4,20.7-14.6,33.6-14.6s24.8,5.2,33.6,14.6l2.7,2.9 l5.8-5.5l-2.7-2.9C93.2,107.1,78.9,100.8,64,100.8z"></path><path d="M97,47.9v8c9.4,0,18.1,3.8,24.6,10.7l5.8-5.5C119.6,52.7,108.5,47.9,97,47.9z"></path><path d="M116.1,20c0-10.5-8.6-19.1-19.1-19.1S77.9,9.5,77.9,20S86.5,39.1,97,39.1S116.1,30.5,116.1,20z M85.9,20 c0-6.1,5-11.1,11.1-11.1s11.1,5,11.1,11.1s-5,11.1-11.1,11.1S85.9,26.1,85.9,20z"></path><path d="M31,47.9c-11.5,0-22.6,4.8-30.4,13.2l5.8,5.5c6.4-6.9,15.2-10.7,24.6-10.7V47.9z"></path><path d="M50.1,20C50.1,9.5,41.5,0.9,31,0.9S11.9,9.5,11.9,20S20.5,39.1,31,39.1S50.1,30.5,50.1,20z M31,31.1 c-6.1,0-11.1-5-11.1-11.1S24.9,8.9,31,8.9s11.1,5,11.1,11.1S37.1,31.1,31,31.1z"></path></g>',1),ZOe=[YOe];function JOe(e,t,n,o,r,i){return _(),k("svg",GOe,ZOe)}const XOe=de(KOe,[["render",JOe]]),QOe={name:"CourseIcon"},ePe={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},tPe=g("path",{d:"M10.734 5.84746L14.7114 6.9072M9.88139 9.01146L11.8701 9.54132M9.98031 14.9723L10.7758 15.1843C13.0258 15.7838 14.1508 16.0835 15.037 15.5747C15.9233 15.0659 16.2247 13.9473 16.8276 11.71L17.6802 8.54599C18.2831 6.3087 18.5845 5.19006 18.0728 4.30879C17.5611 3.42752 16.4362 3.12778 14.1862 2.52831L13.3907 2.31636C11.1407 1.71688 10.0157 1.41714 9.12948 1.92594C8.24322 2.43474 7.94178 3.55338 7.3389 5.79067L6.4863 8.95466C5.88342 11.1919 5.58198 12.3106 6.09367 13.1919C6.60536 14.0731 7.73034 14.3729 9.98031 14.9723Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),nPe=g("path",{d:"M9.99996 17.4559L9.20634 17.672C6.96165 18.2832 5.83931 18.5889 4.95512 18.0701C4.07093 17.5513 3.7702 16.4107 3.16874 14.1295L2.31814 10.9035C1.71668 8.62232 1.41595 7.48174 1.92643 6.58318C2.36802 5.80591 3.33329 5.83421 4.58329 5.83411",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),oPe=[tPe,nPe];function rPe(e,t,n,o,r,i){return _(),k("svg",ePe,oPe)}const iPe=de(QOe,[["render",rPe]]),sPe={name:"SpaceCreateModal",components:{CreateCourseForm:qOe,ArrowLeftBold:JY,CreateSpaceForm:C0,SpaceIcon:XOe,CourseIcon:iPe},data(){return{step:"choose_type",spaceConfig:null,parent_id:null,createSpaceModal:!1,select_type:"space_form"}},computed:{currentTitle(){return this.step==="choose_type"?this.$t("Choose a Space Type"):this.step==="space_form"?this.$t("Create a Discussion Space"):this.step==="course_form"?this.$t("Create a Course"):""}},methods:{handleNextStep(){this.step=this.select_type},handleClose(){this.createSpaceModal=!1,this.step="choose_type",this.select_type="space_form"}},created(){this.$eventBus.on("createSpaceModal",e=>{this.createSpaceModal=!0,e&&(e.parent_id&&(this.parent_id=e.parent_id),e.spaceConfig?(this.step="space_form",this.select_type="space_form"):e.course_config&&(this.select_type="course_form",this.step="course_form"))})}},lPe={class:"dialog_header"},aPe={class:"dialog_left"},cPe={class:"dialog_body"},uPe={key:0,class:"fcom_choose_space_type"},dPe={class:"fcom_space_choices"},fPe={class:"fcom_space_choice_btn"},pPe={class:"fcom_space_choice_btn"},hPe={key:0},mPe={class:"dialog_footer"};function _Pe(e,t,n,o,r,i){const s=z("ArrowLeftBold"),l=ge,a=Ye,c=z("SpaceIcon"),u=z("CourseIcon"),d=z("create-space-form"),f=z("create-course-form"),p=bh;return r.createSpaceModal?(_(),L(p,{key:0,top:"100px","modal-class":"fcom_common_dialog","append-to-body":!0,"close-on-click-modal":!1,width:e.drawerWidth,modelValue:r.createSpaceModal,"onUpdate:modelValue":t[5]||(t[5]=h=>r.createSpaceModal=h),direction:"rtl",onClose:i.handleClose},Vo({header:x(()=>[g("div",lPe,[g("div",aPe,[r.step!="choose_type"?(_(),L(a,{key:0,onClick:t[0]||(t[0]=h=>r.step="choose_type"),text:""},{default:x(()=>[y(l,null,{default:x(()=>[y(s)]),_:1})]),_:1})):O("",!0),g("h4",null,M(i.currentTitle),1)])])]),default:x(()=>[g("div",cPe,[r.step=="choose_type"?(_(),k("div",uPe,[g("div",dPe,[g("div",{onClick:t[1]||(t[1]=h=>r.select_type="space_form"),class:R([{fcom_space_choice_active:r.select_type=="space_form"},"fcom_space_choice"])},[g("div",fPe,[y(l,null,{default:x(()=>[y(c)]),_:1}),g("h4",null,M(e.$t("Discussion Space")),1)])],2),g("div",{onClick:t[2]||(t[2]=h=>r.select_type="course_form"),class:R([{fcom_space_choice_active:r.select_type=="course_form"},"fcom_space_choice"])},[g("div",pPe,[y(l,null,{default:x(()=>[y(u)]),_:1}),g("h4",null,M(e.$t("Course")),1)]),e.hasFeature("has_course")?O("",!0):(_(),k("p",hPe,M(e.$t("Course Module is disabled")),1))],2)])])):O("",!0),r.step=="space_form"?(_(),L(d,{key:1,parent_id:r.parent_id,onCompleted:t[3]||(t[3]=h=>{r.createSpaceModal=!1})},null,8,["parent_id"])):O("",!0),r.step=="course_form"?(_(),L(f,{key:2,parent_id:r.parent_id},null,8,["parent_id"])):O("",!0)])]),_:2},[r.step=="choose_type"?{name:"footer",fn:x(()=>[g("div",mPe,[y(a,{disabled:!r.select_type,class:"fcom_primary_button",onClick:t[4]||(t[4]=h=>i.handleNextStep())},{default:x(()=>[te(M(e.$t("Next")),1)]),_:1},8,["disabled"])])]),key:"0"}:void 0]),1032,["width","modelValue","onClose"])):O("",!0)}const gPe=de(sPe,[["render",_Pe]]),vPe={name:"PortalApplication",components:{NotificationsPop:fde,NewFeedTicker:Uue,SearchBar:FIe,SpaceCreateModal:gPe},data(){return{loading:!1,mobileMenuItems:this.appVars.mobileMenuItems,hasSearchHolder:!1,hasNotificationHolder:!1,isSmallScreen:!1}},watch:{$route(e,t){if(e.name==t.name&&e.query.topic!=t.query.topic){this.$eventBus.emit("topic_changed",e.query.topic);return}this.$eventBus.emit("route_updated",{to:e,from:t});const n=e.name;document.body.setAttribute("data-route",n),document.dispatchEvent(new CustomEvent("route_updated",{detail:{to:e,from:t}})),document.querySelectorAll(".feed_layout").forEach(i=>{i.classList.remove("space_opened")}),this.isSmallScreen&&document.querySelector(".feed_layout")&&document.querySelector(".feed_layout").classList.remove("space_opened");const o=e.meta.active_menu;document.querySelectorAll(".fcom_general_menu a").forEach(i=>{i.classList.remove("router-link-exact-active")}),o&&document.querySelectorAll(".fcom_general_menu a.fcom_"+o).forEach(i=>{i.classList.add("router-link-exact-active")}),document.querySelectorAll(".fcom_sidebar_contents a").forEach(i=>{i.classList.remove("router-link-exact-active")}),o&&document.querySelectorAll(".fcom_sidebar_contents a.fcom_"+o).forEach(i=>{i.classList.add("router-link-exact-active")});const r=(i,s)=>{var l;if(s)try{(l=document.querySelector(i+s))==null||l.classList.add("router-link-exact-active")}catch(a){console.error(a)}};e.meta.in_course&&r(".fcom_space_",e.params.course_slug),e.meta.in_space&&r(".space_contents a.fcom_space_",e.params.space)}},methods:{reloadSidebarMenu(){this.$get("options/sidebar-menu-html").then(e=>{e.sidebar_html&&document.getElementById("fcom_sidebar_wrap")&&(document.getElementById("fcom_sidebar_wrap").innerHTML=e.sidebar_html,document.dispatchEvent(new CustomEvent("sidebar_menu_reloaded"))),e.auth_spaces&&(this.auth=e.auth_spaces)})}},created(){this.hasNotificationHolder=this.auth.user_id&&document.getElementsByClassName("fcom_notification_holder").length,this.hasSearchHolder=!!document.getElementsByClassName("fcom_search_holder").length,this.$eventBus.on("fresh_feeds_loaded",e=>{let t=e.space;t||(t="__all"),this.feedMonitorCache[t]=e.feeds[0].id}),document.addEventListener("doCustomGlobalSearch",e=>{this.$eventBus.emit("doGlobalSearch",e.detail.search)}),this.$eventBus.on("reloadMenu",()=>{this.reloadSidebarMenu()}),this.$eventBus.on("toTop",e=>{window.fcomLayoutRef&&(e||(e=0),window.fcomLayoutRef.scrollTo({top:e,behavior:"instant"}))}),this.isSmallScreen=window.innerWidth<=1024},mounted(){}},bPe={class:"fcom_mobile_menu"},yPe={class:"focm_menu_items"},wPe=["innerHTML"],kPe=["innerHTML"],xPe=["href"],CPe=["innerHTML"],SPe=["innerHTML"];function $Pe(e,t,n,o,r,i){const s=z("router-view"),l=z("new-feed-ticker"),a=ge,c=z("router-link"),u=z("search-bar"),d=z("notifications-pop"),f=z("space-create-modal");return _(),k(Q,null,[y(s,{class:R(e.appVars.route_classes)},null,8,["class"]),(_(),L(sr,{to:"body"},[y(l),g("div",bPe,[g("div",yPe,[(_(!0),k(Q,null,Te(r.mobileMenuItems,p=>(_(),k("div",null,[p.route?(_(),L(c,{key:0,"aria-label":e.$t("Go to %s",p.title),class:"focm_menu_item",to:p.route},{default:x(()=>[y(a,null,{default:x(()=>[p.icon?(_(),L(Et(p.icon),{key:0})):p.icon_svg?(_(),k("span",{key:1,innerHTML:p.icon_svg},null,8,wPe)):O("",!0)]),_:2},1024),p.html?(_(),k("span",{key:0,innerHTML:p.html},null,8,kPe)):O("",!0)]),_:2},1032,["aria-label","to"])):(_(),k("a",{key:1,href:p.permalink,class:"focm_menu_item"},[p.icon_svg?(_(),L(a,{key:0},{default:x(()=>[g("span",{innerHTML:p.icon_svg},null,8,CPe)]),_:2},1024)):O("",!0),g("span",{innerHTML:p.html},null,8,SPe)],8,xPe))]))),256))])])])),r.hasSearchHolder?(_(),L(sr,{key:0,to:".fcom_search_holder"},[y(u)])):O("",!0),r.hasNotificationHolder?(_(),L(sr,{key:1,to:".fcom_notification_holder"},[y(d)])):O("",!0),e.isAdmin?(_(),L(f,{key:2})):O("",!0)],64)}const EPe=de(vPe,[["render",$Pe]]);var TPe=UA,MPe=_d,APe="Expected a function";function IPe(e,t,n){var o=!0,r=!0;if(typeof e!="function")throw new TypeError(APe);return MPe(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),TPe(e,t,{leading:o,maxWait:t,trailing:r})}var OPe=IPe;const PPe=jl(OPe),NPe={name:"ContentLayout",props:["title","content_class","wrapper_class"],data(){return{throttledScrollHandler:null}},created(){this.throttledScrollHandler=PPe(e=>{document.dispatchEvent(new CustomEvent("fcom_layout_scroll",{detail:{scrollTop:e}}))},1e3)},methods:{handleLayoutScroll(e){this.throttledScrollHandler(e.scrollTop)}},mounted(){window.fcomLayoutRef=this.$refs.layoutScrollbarRef}},LPe={key:0,class:"fhr_content_layout_header"},RPe={role:"region","aria-label":"Actions",class:"fhr_page_actions"};function FPe(e,t,n,o,r,i){const s=$o;return _(),k("div",{class:R([n.wrapper_class,"fhr_content_layout"])},[y(s,{"min-size":100,always:!0,noresize:!0,native:!0,onScroll:i.handleLayoutScroll,ref:"layoutScrollbarRef",height:"calc(100vh - var(--fcom-header-height, 0px)"},{default:x(()=>[le(e.$slots,"header",{},()=>[n.title?(_(),k("div",LPe,[le(e.$slots,"title",{},()=>[g("h1",{role:"region","aria-label":"Page Title",style:{cursor:"pointer"},onClick:t[0]||(t[0]=l=>e.$eventBus.emit("toTop")),class:"fhr_page_title"},M(n.title),1)]),g("div",RPe,[le(e.$slots,"actions")])])):O("",!0)]),le(e.$slots,"sub_header"),g("div",{class:R([n.content_class,"fhr_content_layout_body"])},[le(e.$slots,"default")],2)]),_:3},8,["onScroll"])],2)}const mr=de(NPe,[["render",FPe]]),DPe={name:"Dashboard",components:{Layout:mr},data(){return{greetings:"",notices:[]}},mounted(){this.$route.query.sort_by=="latest"&&this.$storeLocalData("feed_sort_by",""),this.$router.push({name:"all_feeds"})}},BPe={key:0,class:"dashboard_actions"},zPe=["innerHTML"],VPe={key:1};function jPe(e,t,n,o,r,i){const s=z("layout");return _(),L(s,{title:r.greetings},{default:x(()=>[r.notices.length?(_(),k("div",BPe,[g("h4",null,M(e.$t("Action required")),1),g("ul",null,[(_(!0),k(Q,null,Te(r.notices,l=>(_(),k("li",{innerHTML:l},null,8,zPe))),256))])])):(_(),k("div",VPe,[g("p",null,M(e.$t("All is well! This dashboard will be updated with something awesome!")),1)]))]),_:1},8,["title"])}const HPe=de(DPe,[["render",jPe]]),UPe={name:"AppLayout",props:["wrapper_class"]},WPe={class:"feeds_main"};function qPe(e,t,n,o,r,i){const s=z("router-view");return _(),k("div",{class:R([n.wrapper_class,"feeds"])},[g("div",WPe,[le(e.$slots,"before_route_view"),le(e.$slots,"default",{},()=>[y(s)]),le(e.$slots,"after_route_view")])],2)}const Vr=de(UPe,[["render",qPe]]),KPe={name:"RecentActivities",props:{context:{default(){return{}}},widget_title:{type:String,default(){return""}},pinned_widget_title:{type:String,default(){return""}},with_pins:{type:Boolean,default(){return!1}},is_trending:{type:Boolean,default(){return!1}},with_pening_count:{type:Boolean,default(){return!1}}},data(){return{activities:[],loading:!1,pinned_posts:[],pending_count:0,after_contents:""}},methods:{getActivities(){this.loading=!0,this.$get("activities",{page:1,per_page:5,context:this.context,with_pins:this.with_pins?1:0,is_trending:this.is_trending?1:0,with_pening_count:this.with_pening_count?1:0}).then(e=>{this.activities=e.activities.data,this.after_contents=e.after_contents,e.pinned_posts&&(this.pinned_posts=e.pinned_posts),e.pending_count&&(this.pending_count=e.pending_count)}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},goToActivity(e){this.$router.push(e.route)},getActivityLink(e){const t=this.$router.resolve(e.route);let n=this.appVars.urls.portal_base;return n=n.replace(/\/$/,""),n+t.fullPath}},mounted(){this.getActivities()}},GPe={key:0,class:"app_side_widget fcom_widget_highlight"},YPe={class:"widget_header"},ZPe={role:"region","aria-label":"Pending Members"},JPe={class:"widget_body"},XPe={key:1,role:"region","aria-label":"Featured Posts",class:"app_side_widget widget_recent_activities"},QPe={class:"widget_header"},eNe={class:"widget_body notifications_wrap"},tNe={class:"notification_wrap"},nNe=["href"],oNe={class:"notification_item"},rNe={class:"notification_avatar"},iNe={class:"notification_content"},sNe=["innerHTML"],lNe={style:{"margin-top":"5px"},class:"feed_timestamp"},aNe={role:"region","aria-label":"Space Activities",class:"app_side_widget widget_recent_activities"},cNe={class:"widget_header"},uNe={class:"widget_body notifications_wrap"},dNe={class:"notification_wrap"},fNe=["href"],pNe={class:"notification_avatar"},hNe={class:"notification_content"},mNe=["innerHTML"],_Ne={class:"notification_time_stamp"},gNe={key:2,class:"notification_wrap"},vNe={class:"notification_item"},bNe={class:"notification_content"},yNe={class:"no_notifications"},wNe=["innerHTML"];function kNe(e,t,n,o,r,i){const s=Ye,l=z("UserAvatar"),a=Wt;return _(),k(Q,null,[r.pending_count&&n.with_pening_count?(_(),k("div",GPe,[g("div",YPe,[g("h3",ZPe,M(e.$t("Pending Members")),1)]),g("div",JPe,[g("p",null,M(e.$t("%s people requested to join the community.",r.pending_count)),1)]),y(s,{role:"link","aria-label":"View pending members",onClick:t[0]||(t[0]=c=>e.$router.push({name:"space_members",query:{view_pending:"yes"}})),type:"danger"},{default:x(()=>[te(M(e.$t("View pending members")),1)]),_:1})])):O("",!0),n.with_pins&&r.pinned_posts.length?(_(),k("div",XPe,[g("div",QPe,[g("h3",null,M(n.pinned_widget_title||e.$t("Featured Posts")),1)]),g("div",eNe,[(_(!0),k(Q,null,Te(r.pinned_posts,c=>(_(),k("div",tNe,[g("a",{class:"no_style_link",href:c.permalink},[g("div",oNe,[g("div",rNe,[y(l,{with_level:!1,xprofile:c.xprofile},null,8,["xprofile"])]),g("div",iNe,[g("div",{innerHTML:c.message},null,8,sNe),g("span",lNe,M(c.xprofile.display_name),1)])])],8,nNe)]))),256))])])):O("",!0),g("div",aNe,[g("div",cNe,[g("h3",null,M(n.widget_title||e.$t("Recent Activities")),1)]),g("div",uNe,[r.loading?(_(),L(a,{key:0,style:{"min-width":"320px"},animated:!0,rows:5})):r.activities.length?(_(!0),k(Q,{key:1},Te(r.activities,c=>(_(),k("div",dNe,[g("a",{href:i.getActivityLink(c),class:"notification_item"},[g("div",pNe,[y(l,{with_level:!1,xprofile:c.xprofile},null,8,["xprofile"])]),g("div",hNe,[g("div",{innerHTML:c.message},null,8,mNe),g("span",_Ne,M(e.humanDateDiff(c.updated_at)),1)])],8,fNe)]))),256)):(_(),k("div",gNe,[g("div",vNe,[g("div",bNe,[g("div",yNe,M(e.$t("No recent activities found")),1)])])]))])]),r.after_contents?(_(),k("div",{key:2,innerHTML:r.after_contents},null,8,wNe)):O("",!0)],64)}const S0=de(KPe,[["render",kNe]]),xNe={name:"BgImageUpload",emits:["update:modelValue"],props:{modelValue:{type:String,required:!1},button_text:{type:String,default:"Upload Image"},can_remove:{type:Boolean,default:!1},is_multiple:{type:Boolean,default:!1},additional_data:{type:Object,default:()=>({})}},data(){return{imageUrl:this.modelValue}},computed:{action_url(){return this.appVars.rest.url+"/feeds/media-upload"},headers(){return{"X-WP-Nonce":this.appVars.rest.nonce}}},methods:{handleSuccess(e){this.imageUrl=e.media.url,this.$emit("update:modelValue",this.imageUrl)},handleError(e){this.$handleError(JSON.parse(e.message))},removeImage(){this.imageUrl="",this.$emit("update:modelValue","")}}};function CNe(e,t,n,o,r,i){const s=Hl,l=Ye,a=BA,c=z("CloseBold"),u=ge;return _(),k(Q,null,[y(a,{action:i.action_url,headers:i.headers,accept:"image/*",class:"fcom_bg_upload",multiple:n.is_multiple,data:n.additional_data,"show-file-list":!1,"on-success":i.handleSuccess,"on-error":i.handleError},{default:x(()=>[le(e.$slots,"trigger",{},()=>[le(e.$slots,"default",{},()=>[r.imageUrl?(_(),L(s,{key:0,alt:e.$t("Image Preview"),src:r.imageUrl},null,8,["alt","src"])):(_(),L(l,{key:1,class:"fcom_btn_upload",text:""},{default:x(()=>[te(M(n.button_text),1)]),_:1}))])])]),_:3},8,["action","headers","multiple","data","on-success","on-error"]),r.imageUrl&&n.can_remove?(_(),L(l,{key:0,class:"fcom_bg_remove",text:"",size:"small",onClick:i.removeImage},{default:x(()=>[y(u,null,{default:x(()=>[y(c)]),_:1})]),_:1},8,["onClick"])):O("",!0)],64)}const OL=de(xNe,[["render",CNe]]),SNe={name:"WelcomeBannerConfig",props:["savingCount"],emits:["saved"],components:{MediaEmbeder:j3,BgImageUpload:OL,CrepeEditor:C4},data(){return{saving:!1,loading:!1,currentTab:"login",appReady:!1,bannerData:{login:{enable:"no",mediaType:"image",title:"",description:"",allowClose:"yes",bannerImage:"",ctaButtons:[],bannerVideo:{}},logout:{enable:"no",mediaType:"image",title:"",description:"",bannerImage:"",ctaButtons:[],bannerVideo:{}}}}},watch:{savingCount(){this.saveSettings()}},computed:{isEnabled(){return this.bannerData[this.currentTab].enabled=="yes"}},methods:{switchOption(e){this.appReady=!1,this.currentTab=e,this.$nextTick(()=>{this.appReady=!0})},addButton(){this.bannerData[this.currentTab].ctaButtons.push({label:"",link:"",type:"primary",newTab:"yes"})},removeButton(e){this.bannerData[this.currentTab].ctaButtons.splice(e,1)},getSettings(){this.loading=!0,this.$get("admin/welcome-banner").then(e=>{this.bannerData=e.settings,this.appReady=!0}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},saveSettings(){this.saving=!0,this.$post("admin/welcome-banner",{settings:this.bannerData}).then(e=>{this.$notify.success(e.message),this.$emit("saved"),this.Storage.remove("fcom_welcome_banner_closed_auth"),this.Storage.remove("fcom_welcome_banner_closed_guest")}).catch(e=>{this.$handleError(e)}).finally(()=>{this.saving=!1})}},mounted(){this.getSettings()}},$Ne={class:"fcom_customizer_container"},ENe={class:"fcom_wc_banner_header"},TNe={class:"fcom_wc_banner_options"},MNe={class:"fcom_filter_menu"},ANe={class:"fcom_filter_menu_ul"},INe={key:0,class:"fcom_wc_banner_content"},ONe={class:"fcom_wc_banner_content_header"},PNe={class:"fcom_wc_banner_media_type"},NNe={key:0,class:"fcom_wc_banner_media_image"},LNe={key:1,class:"fcom_wc_banner_media_preview"},RNe={key:0,class:"fcom_wc_banner_cta_buttons"},FNe={class:"fcom_wc_help_text"},DNe={class:"fcom_wc_banner_content_footer"};function BNe(e,t,n,o,r,i){const s=wA,l=z1,a=Is,c=z("BgImageUpload"),u=Hl,d=z("CloseBold"),f=ge,p=Ye,h=z("media-embeder"),m=An,b=qi,v=z("crepe-editor"),E=Ho,w=jo,S=$se,T=Dr,$=Wi,A=Wt,P=Mt("loading");return _(),k("div",$Ne,[g("div",ENe,[g("h4",null,M(e.$t("Welcome Banner")),1)]),g("div",TNe,[g("div",MNe,[g("ul",ANe,[g("li",null,[g("a",{onClick:t[0]||(t[0]=qe(N=>i.switchOption("login"),["prevent"])),class:R({"router-link-exact-active":r.currentTab=="login"}),href:"#"},M(e.$t("Logged in")),3)]),g("li",null,[g("a",{onClick:t[1]||(t[1]=qe(N=>i.switchOption("logout"),["prevent"])),class:R({"router-link-exact-active":r.currentTab=="logout"}),href:"#"},M(e.$t("Logged out")),3)])])])]),r.loading?(_(),L(A,{key:1,rows:5})):(_(),k("div",INe,[g("div",ONe,[g("h4",null,M(r.currentTab==="login"?e.$t("Enable for logged in members"):e.$t("Enable for logged out members")),1),y(s,{modelValue:r.bannerData[r.currentTab].enabled,"onUpdate:modelValue":t[2]||(t[2]=N=>r.bannerData[r.currentTab].enabled=N),"active-value":"yes","inactive-value":"no"},null,8,["modelValue"])]),g("div",{class:R(["fcom_wc_banner_content_body",{fcom_wc_disabled:!i.isEnabled}])},[g("div",PNe,[g("p",null,M(e.$t("Media type")),1),y(a,{modelValue:r.bannerData[r.currentTab].mediaType,"onUpdate:modelValue":t[3]||(t[3]=N=>r.bannerData[r.currentTab].mediaType=N)},{default:x(()=>[y(l,{label:e.$t("Image"),value:"image"},null,8,["label"]),y(l,{label:e.$t("Video"),value:"video"},null,8,["label"])]),_:1},8,["modelValue"])]),r.bannerData[r.currentTab].mediaType==="image"?(_(),k(Q,{key:0},[r.bannerData[r.currentTab].bannerImage?(_(),k("div",LNe,[y(u,{alt:e.$t("Image Preview"),src:r.bannerData[r.currentTab].bannerImage},null,8,["alt","src"]),y(p,{class:"fcom_secondary_button",text:"",onClick:t[5]||(t[5]=N=>r.bannerData[r.currentTab].bannerImage="")},{default:x(()=>[y(f,null,{default:x(()=>[y(d)]),_:1})]),_:1})])):(_(),k("div",NNe,[g("h4",null,M(e.$t("Featured Image")),1),g("p",null,M(e.$t("Set a featured image at the top of the welcome banner. Recommended image dimension: 1680x600")),1),y(c,{modelValue:r.bannerData[r.currentTab].bannerImage,"onUpdate:modelValue":t[4]||(t[4]=N=>r.bannerData[r.currentTab].bannerImage=N)},null,8,["modelValue"])]))],64)):O("",!0),r.bannerData[r.currentTab].mediaType==="video"?(_(),L(h,{key:1,media:r.bannerData[r.currentTab].bannerVideo},null,8,["media"])):O("",!0),y($,{onSubmit:t[9]||(t[9]=qe(N=>e.doNothing(),["prevent"])),"label-position":"top",class:"fcom_form_container"},{default:x(()=>[y(b,{label:e.$t("Title")},{default:x(()=>[y(m,{modelValue:r.bannerData[r.currentTab].title,"onUpdate:modelValue":t[6]||(t[6]=N=>r.bannerData[r.currentTab].title=N)},null,8,["modelValue"])]),_:1},8,["label"]),y(b,{label:e.$t("Description")},{default:x(()=>[r.appReady?(_(),L(v,{key:0,modelValue:r.bannerData[r.currentTab].description,"onUpdate:modelValue":t[7]||(t[7]=N=>r.bannerData[r.currentTab].description=N)},null,8,["modelValue"])):O("",!0)]),_:1},8,["label"]),y(b,{label:e.$t("Call to Action")},{default:x(()=>{var N;return[((N=r.bannerData[r.currentTab].ctaButtons)==null?void 0:N.length)>0?(_(),k("div",RNe,[(_(!0),k(Q,null,Te(r.bannerData[r.currentTab].ctaButtons,(I,B)=>{var V;return _(),k("div",{key:B,class:"fcom_wc_banner_cta_button"},[y(b,{label:B?"":e.$t("Button Label")},{default:x(()=>[y(m,{modelValue:I.label,"onUpdate:modelValue":G=>I.label=G},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),y(b,{label:B?"":e.$t("Button Link")},{default:x(()=>[y(m,{modelValue:I.link,"onUpdate:modelValue":G=>I.link=G},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),y(b,{label:B?"":e.$t("Button Type"),class:"fcom_wc_banner_select"},{default:x(()=>[y(w,{modelValue:I.type,"onUpdate:modelValue":G=>I.type=G,class:"fcom_select",placeholder:e.$t("Select type")},{default:x(()=>[y(E,{label:e.$t("Primary"),value:"primary"},null,8,["label"]),y(E,{label:e.$t("Secondary"),value:"secondary"},null,8,["label"]),y(E,{label:e.$t("Text"),value:"text"},null,8,["label"]),y(E,{label:e.$t("Link"),value:"link"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label"]),y(b,{label:B?"":e.$t("Open in new tab"),class:"fcom_wc_banner_select"},{default:x(()=>[y(w,{modelValue:I.newTab,"onUpdate:modelValue":G=>I.newTab=G,class:"fcom_select"},{default:x(()=>[y(E,{label:e.$t("Yes"),value:"yes"},null,8,["label"]),y(E,{label:e.$t("No"),value:"no"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),((V=r.bannerData[r.currentTab].ctaButtons)==null?void 0:V.length)>1?(_(),L(p,{key:0,text:"",class:"wc_button_remove",onClick:G=>i.removeButton(B)},{default:x(()=>[y(f,null,{default:x(()=>[y(d)]),_:1})]),_:2},1032,["onClick"])):O("",!0)])}),128)),y(S,{underline:!1,onClick:i.addButton},{default:x(()=>[te(M("+ "+e.$t("Add button")),1)]),_:1},8,["onClick"])])):(_(),L(S,{key:1,underline:!1,onClick:i.addButton},{default:x(()=>[te(M("+ "+e.$t("Add button")),1)]),_:1},8,["onClick"]))]}),_:1},8,["label"]),r.currentTab=="login"?(_(),L(b,{key:0},{default:x(()=>[y(T,{modelValue:r.bannerData[r.currentTab].allowClose,"onUpdate:modelValue":t[8]||(t[8]=N=>r.bannerData[r.currentTab].allowClose=N),"true-value":"yes","false-value":"no"},{default:x(()=>[te(M(e.$t("Allow members to close the welcome banner")),1)]),_:1},8,["modelValue"]),g("span",FNe,M(e.$t("If allowed, members will be able to hide the banner")),1)]),_:1})):O("",!0)]),_:1})],2),g("div",DNe,[ze((_(),L(p,{class:"fcom_primary_button",disabled:r.saving,onClick:i.saveSettings},{default:x(()=>[te(M(e.$t("Update Info")),1)]),_:1},8,["disabled","onClick"])),[[P,r.saving]])])]))])}const zNe=de(SNe,[["render",BNe]]),VNe={name:"FluentDnD",props:{items:{type:Array,required:!0},itemClass:{type:String},itemStyle:{type:String},rowKey:{type:String,default:"id"}},emits:["dragStart","dragEnd","drop"],data(){return{draggingIndex:null,startIndex:null}},methods:{dragStart(e,t){this.draggingIndex=t,this.startIndex=t,e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",""),this.$emit("dragEnd",t)},dragEnd(){this.draggingIndex=null,this.startIndex=null},dragOver(e,t){if(e.preventDefault(),this.draggingIndex===null)return;const n=this.items[this.draggingIndex],o=this.items[t];if(n===o)return;const r=e.currentTarget.getBoundingClientRect(),i=r.top+r.height/2,s=e.clientY;(this.draggingIndex<t&&s>i||this.draggingIndex>t&&s<i)&&(this.reorderItems(this.draggingIndex,t),this.draggingIndex=t)},dropEnd(e,t){this.draggingIndex===null||this.startIndex===t||(this.draggingIndex=null,this.$emit("drop",{index:t,newItems:this.items}))},reorderItems(e,t){const n=this.items.splice(e,1)[0];this.items.splice(t,0,n)}}},jNe={class:"drag-container"},HNe=["onDragstart","onDragover","onDrop"];function UNe(e,t,n,o,r,i){return _(),k("div",jNe,[y(_1,{name:"flip-list",tag:"div",class:"drag-group"},{default:x(()=>[(_(!0),k(Q,null,Te(n.items,(s,l)=>(_(),k("div",{key:s[n.rowKey],onDragstart:a=>i.dragStart(a,l),onDragend:t[0]||(t[0]=(...a)=>i.dragEnd&&i.dragEnd(...a)),onDragover:qe(a=>i.dragOver(a,l),["prevent"]),onDrop:qe(a=>i.dropEnd(a,l),["prevent"]),draggable:!0,class:R(["drag-item",`${n.itemClass} hello_${l}`,{dragging:r.draggingIndex===l}]),style:Be(n.itemStyle)},[le(e.$slots,"item",{data:s,index:l},void 0,!0)],46,HNe))),128))]),_:3})])}const WNe=de(VNe,[["render",UNe],["__scopeId","data-v-51d9f44b"]]),qNe={name:"MenuGroupSettings",components:{FluentDnD:WNe,LogoEmojiSelector:H4},data(){return{loading:!1,saving:!1,editingItem:null,editLinkModal:!1,isDragging:!1,isSpaceDragging:!1,draggingIndex:null,draggedSpaceIndex:null}},emits:["save"],props:{menuItems:{type:Array,required:!0},title:{type:String,required:!0},has_svg:{type:Boolean,default:!0},use_icon_selector:{type:Boolean,default:!1},has_enable_disable:{type:Boolean,default:!0},custom_svg:{type:Boolean,default:!1}},methods:{initEditLink(e){this.editingItem=e,this.editLinkModal=!0},removeLink(e){this.$confirm(this.$t("Are you sure you want to remove this link?"),this.$t("Warning"),{confirmButtonText:this.$t("Yes"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(()=>{this.menuItems.splice(e,1),this.saveMenuItems()}).catch(()=>{})},createOrUpdateLink(){this.editingItem.slug||(this.editingItem.slug="fcom_custom_"+this.editingItem.title.toLowerCase().replace(/[^a-z0-9]/g,"_"),this.menuItems.push(this.editingItem)),this.editLinkModal=!1,this.saveMenuItems(),this.editingItem=null},saveMenuItems(){this.$emit("save")},drop({index:e}){this.draggingIndex=null,this.saveMenuItems()}}},KNe={key:0,class:"fcom_section_primary"},GNe={class:"fcom_section_primary_item"},YNe={class:"fcom_section_primary_item_title"},ZNe={class:"fcom_heading_item"},JNe={class:"fcom_section_item_actions"},XNe={class:"fcom_section_items menu-items-container"},QNe={key:0,style:{padding:"1rem"}},eLe={class:"fcom_section_item_title"},tLe={class:"fcom_heading_item"},nLe=g("div",{class:"fcom_drag_handle"}," ⋮⋮ ",-1),oLe={key:0,class:"community_avatar"},rLe=["src"],iLe={key:1,class:"fcom_emoji"},sLe={key:2,class:"fcom_shape"},lLe=["innerHTML"],aLe={class:"fcom_section_item_actions"},cLe={key:0},uLe={key:1},dLe={key:0};function fLe(e,t,n,o,r,i){const s=Ye,l=ge,a=mh,c=z("FluentDnD"),u=z("logo-emoji-selector"),d=An,f=qi,p=Dr,h=Wi,m=oA;return _(),k(Q,null,[n.menuItems?(_(),k("div",KNe,[g("div",GNe,[g("div",YNe,[g("div",ZNe,[le(e.$slots,"title",{},()=>[g("h4",null,M(n.title),1)])])]),g("div",JNe,[y(s,{class:"fcom_primary_button",onClick:t[0]||(t[0]=b=>i.initEditLink({enabled:"yes",new_tab:"yes"}))},{default:x(()=>[te(M(e.$t("Add New Link")),1)]),_:1})])]),g("div",XNe,[n.menuItems.length?O("",!0):(_(),k("div",QNe,[g("p",null,M(e.$t("No link has been added for this section")),1)])),y(c,{items:n.menuItems,"row-key":"slug",onDrop:i.drop,"item-class":"fcom_section_item","item-style":"padding: 15px 15px 15px 35px"},{item:x(({data:b,index:v})=>[g("div",eLe,[g("p",tLe,[n.use_icon_selector?(_(),k(Q,{key:0},[nLe,b.icon_image?(_(),k("div",oLe,[y(l,null,{default:x(()=>[g("img",{alt:"",style:{"max-width":"16px","max-height":"16px"},src:b.icon_image},null,8,rLe)]),_:2},1024)])):b.emoji?(_(),k("span",iLe,M(b.emoji),1)):b.shape_svg?(_(),k("span",sLe,[y(l,{innerHTML:b.shape_svg},null,8,["innerHTML"])])):O("",!0)],64)):b.icon_svg?(_(),L(l,{key:1},{default:x(()=>[g("span",{innerHTML:b.icon_svg},null,8,lLe)]),_:2},1024)):O("",!0),g("span",null,M(b.title),1),b.is_unavailable=="yes"?(_(),L(a,{key:2,type:"danger"},{default:x(()=>[te(M(e.$t("unavailable")),1)]),_:1})):b.enabled=="yes"?(_(),L(a,{key:3,type:"success"},{default:x(()=>[te(M(e.$t("enabled")),1)]),_:1})):(_(),L(a,{key:4,type:"info"},{default:x(()=>[te(M(e.$t("disabled")),1)]),_:1}))])]),g("div",aLe,[g("div",null,[y(s,{onClick:E=>i.initEditLink(b),size:"small"},{default:x(()=>[te(M(e.$t("Edit")),1)]),_:2},1032,["onClick"]),b.is_system!="yes"?(_(),L(s,{key:0,onClick:E=>i.removeLink(v),type:"danger",plain:"",size:"small"},{default:x(()=>[te(M(e.$t("Delete")),1)]),_:2},1032,["onClick"])):O("",!0)])])]),_:1},8,["items","onDrop"])])])):O("",!0),y(m,{"modal-class":"fcom_common_dialog",id:"fluent_comminity_body",class:"fcom_high_drawer","close-on-click-modal":!1,size:e.drawerWidth,modelValue:r.editLinkModal,"onUpdate:modelValue":t[9]||(t[9]=b=>r.editLinkModal=b),direction:"rtl"},{header:x(()=>[r.editLinkModal&&r.editLinkModal.slug?(_(),k("h4",cLe,M(e.$t("Edit Link")),1)):(_(),k("h4",uLe,M(e.$t("Add Custom Link")),1))]),default:x(()=>[r.editingItem?(_(),k("div",dLe,[y(h,{onSubmit:t[8]||(t[8]=qe(b=>e.doNothing(),["prevent"])),"label-position":"top"},{default:x(()=>[y(f,{label:e.$t("Name of the Link")},{default:x(()=>[y(d,{placeholder:e.$t("Public Name of the item"),modelValue:r.editingItem.title,"onUpdate:modelValue":t[2]||(t[2]=b=>r.editingItem.title=b)},Vo({_:2},[n.use_icon_selector&&r.editingItem.is_system!="yesw"?{name:"prepend",fn:x(()=>[y(u,{custom_svg:n.custom_svg,fallback_mark:"",onUpdate:t[1]||(t[1]=b=>{r.editingItem.emoji=b.emoji,r.editingItem.icon_image=b.logo,r.editingItem.shape_svg=b.shape_svg}),config:{logo:r.editingItem.icon_image,emoji:r.editingItem.emoji||"",shape_svg:r.editingItem.shape_svg||""}},null,8,["custom_svg","config"])]),key:"0"}:void 0]),1032,["placeholder","modelValue"])]),_:1},8,["label"]),y(f,{label:e.$t("URL")},{default:x(()=>[y(d,{disabled:r.editingItem.is_system,type:"url",placeholder:e.$t("Url of the item"),modelValue:r.editingItem.permalink,"onUpdate:modelValue":t[3]||(t[3]=b=>r.editingItem.permalink=b)},null,8,["disabled","placeholder","modelValue"])]),_:1},8,["label"]),n.has_svg?(_(),L(f,{key:0,label:e.$t("SVG Code for Icon (Simplified SVG Code) / Emoji")},{default:x(()=>[y(d,{placeholder:e.$t("SVG Code. No url please / You can use emoji"),type:"textarea",rows:3,modelValue:r.editingItem.icon_svg,"onUpdate:modelValue":t[4]||(t[4]=b=>r.editingItem.icon_svg=b)},null,8,["placeholder","modelValue"])]),_:1},8,["label"])):O("",!0),n.has_enable_disable?(_(),L(f,{key:1},{default:x(()=>[y(p,{"true-value":"yes","false-value":"no",modelValue:r.editingItem.enabled,"onUpdate:modelValue":t[5]||(t[5]=b=>r.editingItem.enabled=b)},{default:x(()=>[te(M(e.$t("Enable this link")),1)]),_:1},8,["modelValue"])]),_:1})):O("",!0),r.editingItem.is_system?O("",!0):(_(),L(f,{key:2},{default:x(()=>[y(p,{"true-value":"yes","false-value":"no",modelValue:r.editingItem.new_tab,"onUpdate:modelValue":t[6]||(t[6]=b=>r.editingItem.new_tab=b)},{default:x(()=>[te(M(e.$t("Open this link in a new tab.")),1)]),_:1},8,["modelValue"])]),_:1})),y(f,null,{default:x(()=>[y(s,{class:"fcom_primary_button",onClick:t[7]||(t[7]=b=>i.createOrUpdateLink())},{default:x(()=>[te(M(e.$t("Save")),1)]),_:1})]),_:1})]),_:1})])):O("",!0)]),_:1},8,["size","modelValue"])],64)}const PL=de(qNe,[["render",fLe]]),pLe={name:"ManageFeedLinks",components:{MenuGroupSettings:PL},props:["savingCount"],emits:["saved"],data(){return{loading:!1,menuItems:[]}},watch:{savingCount(){this.saveMenuItems()}},methods:{getMenuItems(){this.loading=!0,this.$get("feeds/links").then(e=>{this.menuItems=e.links}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},saveMenuItems(){let e="feeds/links";this.$post(e,{links:this.menuItems}).then(t=>{this.$notify.success(t.message),this.menuItems=t.links,this.$emit("saved")}).catch(t=>{this.$handleError(t)})}},mounted(){this.getMenuItems()}},hLe={class:"fcom_customizer_container"},mLe={key:0,class:"fcom_card_sections"};function _Le(e,t,n,o,r,i){const s=z("menu-group-settings"),l=Wt;return _(),k("div",hLe,[r.loading?O("",!0):(_(),k("div",mLe,[y(s,{custom_svg:!0,use_icon_selector:!0,has_svg:!1,title:e.$t("Manage Links"),menuItems:r.menuItems,onSave:t[0]||(t[0]=a=>i.saveMenuItems())},null,8,["title","menuItems"])])),r.loading?(_(),L(l,{key:1,rows:5,animated:""})):O("",!0)])}const gLe=de(pLe,[["render",_Le]]),vLe={name:"FeedCustomizer",props:["customize_tab"],components:{WelcomeBannerConfig:zNe,ManageFeedLinks:gLe},data(){return{saving:!1,savingCount:0,changesExist:!1,currentTab:this.customize_tab}},methods:{savedData(){this.saving=!1,this.changesExist=!0},saveChanges(){this.changesExist=!0,this.savingCount=this.savingCount+1},handleBack(){this.$emit("updated",this.changesExist)}}},bLe={class:"fcom_full_editor"},yLe={class:"fcom_full_editor_header"},wLe={class:"fcom_editor_menu object_menu"},kLe={class:"fcom_space_menu_ul"},xLe={class:"full_editor_actions"};function CLe(e,t,n,o,r,i){const s=z("ArrowLeft"),l=ge,a=Ye,c=JM,u=z("welcome-banner-config"),d=$o,f=Os,p=z("manage-feed-links"),h=hd,m=Mt("loading");return _(),k("div",bLe,[y(h,null,{default:x(()=>[y(c,{class:"fcom_full_editor_header_wrap"},{default:x(()=>[g("div",yLe,[g("div",{onClick:t[0]||(t[0]=(...b)=>i.handleBack&&i.handleBack(...b)),class:"fcom_back_header"},[y(l,null,{default:x(()=>[y(s)]),_:1}),te(" "+M(e.$t("Feed")),1)]),g("div",wLe,[g("ul",kLe,[e.has_pro?(_(),k("li",{key:0,onClick:t[1]||(t[1]=b=>r.currentTab="welcome")},[g("a",{class:R({"router-link-exact-active":r.currentTab==="welcome"}),href:"#"},M(e.$t("Welcome Banner")),3)])):O("",!0),g("li",{onClick:t[2]||(t[2]=b=>r.currentTab="manage_links")},[g("a",{class:R({"router-link-exact-active":r.currentTab==="manage_links"}),href:"#"},M(e.$t("Feed Links")),3)])])]),g("div",xLe,[ze((_(),L(a,{class:"fcom_primary_button",disabled:r.saving,onClick:i.saveChanges},{default:x(()=>[te(M(e.$t("Save Changes")),1)]),_:1},8,["disabled","onClick"])),[[m,r.saving]])])])]),_:1}),y(h,{class:"fcom_full_editor_container"},{default:x(()=>[r.currentTab=="welcome"?(_(),L(f,{key:0,class:"fcom_full_editor_main"},{default:x(()=>[y(d,null,{default:x(()=>[y(u,{savingCount:r.savingCount,onSaved:i.savedData},null,8,["savingCount","onSaved"])]),_:1})]),_:1})):r.currentTab=="manage_links"?(_(),L(f,{key:1,class:"fcom_full_editor_main"},{default:x(()=>[y(d,null,{default:x(()=>[y(p,{savingCount:r.savingCount,onSaved:i.savedData},null,8,["savingCount","onSaved"])]),_:1})]),_:1})):O("",!0)]),_:1})]),_:1})])}const SLe=de(vLe,[["render",CLe]]),$Le={name:"FeedMenu",components:{FeedCustomizer:SLe},data(){return{customizeTab:"welcome",customizeSpace:!1,popoverVisible:!1}},methods:{openCustomizer(e){this.popoverVisible=!1,this.customizeTab=e,this.customizeSpace=!0},togglePopover(){this.popoverVisible=!this.popoverVisible},updatedFeedSettings(e){this.customizeSpace=!1,e&&location.reload()}}},ELe={class:"actions_items"},TLe={key:0};function MLe(e,t,n,o,r,i){const s=z("MoreFilled"),l=ge,a=Ye,c=po,u=z("feed-customizer");return _(),k(Q,null,[g("div",null,[y(c,{placement:"bottom",ref:"feed_actions",persistent:!1,visible:r.popoverVisible,onHide:t[2]||(t[2]=d=>r.popoverVisible=!1)},{reference:x(()=>[y(a,{"aria-label":e.$t("View actions"),class:"fcom_dot_menu",size:"small",text:"",onClick:i.togglePopover},{default:x(()=>[y(l,null,{default:x(()=>[y(s)]),_:1})]),_:1},8,["aria-label","onClick"])]),default:x(()=>[g("ul",ELe,[e.has_pro?(_(),k("li",{key:0,onClick:t[0]||(t[0]=d=>i.openCustomizer("welcome"))},M(e.$t("Welcome Banner")),1)):O("",!0),g("li",{onClick:t[1]||(t[1]=d=>i.openCustomizer("manage_links"))},M(e.$t("Manage Links")),1)])]),_:1},8,["visible"])]),r.customizeSpace?(_(),k("div",TLe,[(_(),L(sr,{to:"body"},[y(u,{customize_tab:r.customizeTab,onClose:t[3]||(t[3]=d=>r.customizeSpace=!1),onUpdated:i.updatedFeedSettings},null,8,["customize_tab","onUpdated"])]))])):O("",!0)],64)}const ALe=de($Le,[["render",MLe]]),ILe={name:"RenderSpaceLinks",props:{links:{type:Array,required:!0}}},OLe={class:"object_menu"},PLe={class:"fcom_space_menu_ul"},NLe=["target","href"],LLe=["src"],RLe={key:1,class:"fcom_emoji"},FLe={key:2,style:{"font-size":"120%"},class:"fcom_shape"};function DLe(e,t,n,o,r,i){const s=ge;return _(),k("div",OLe,[g("ul",PLe,[(_(!0),k(Q,null,Te(n.links,l=>(_(),k("li",{key:l.slug},[g("a",{target:l.new_tab=="yes"?"_blank":"",rel:"noopener nofollow",href:l.permalink},[l.icon_image?(_(),k("img",{key:0,alt:"",src:l.icon_image},null,8,LLe)):l.emoji?(_(),k("span",RLe,M(l.emoji),1)):l.shape_svg?(_(),k("span",FLe,[y(s,{innerHTML:l.shape_svg},null,8,["innerHTML"])])):O("",!0),g("span",null,M(l.title),1)],8,NLe)]))),128))])])}const U4=de(ILe,[["render",DLe]]),BLe={name:"FeedsRoute",components:{Layout:mr,AppLayout:Vr,RecentActivities:S0,FeedMenu:ALe,RenderSpaceLinks:U4},methods:{goToProfile(){this.$router.push({name:"update_profile",params:{username:this.auth.username}})}},mounted(){window.scrollTo(0,0)}},zLe={key:0,"aria-label":"Feed Links",class:"fcom_sub_header"},VLe={key:0},jLe={key:1},HLe={class:"fcom_feed_box"},ULe={key:0,class:"fcom_main_side_wrap"},WLe={class:"fcom_side_box"};function qLe(e,t,n,o,r,i){const s=z("render-space-links"),l=Ye,a=z("feed-menu"),c=z("router-view"),u=Os,d=z("recent-activities"),f=vh,p=hd,h=z("layout"),m=z("app-layout");return _(),L(m,{wrapper_class:"fcom_single_layout fcom_max_layout"},{default:x(()=>[y(h,{wrapper_class:"no_bg_layout",title:e.$t("Feed")},{sub_header:x(()=>{var b;return[((b=e.appVars.feed_links)==null?void 0:b.length)>0?(_(),k("nav",zLe,[y(s,{links:e.appVars.feed_links},null,8,["links"])])):O("",!0)]}),actions:x(()=>[e.auth.compilation_score<100?(_(),k("div",VLe,[y(l,{onClick:i.goToProfile,type:"danger"},{default:x(()=>[te(M(e.$t("Complete your profile"))+" ("+M(e.auth.compilation_score)+"%)",1)]),_:1},8,["onClick"])])):O("",!0),e.isAdmin()?(_(),k("div",jLe,[y(a)])):O("",!0)]),default:x(()=>[y(p,{class:"fcom_resp_container fcom_space_container fcom_main_container"},{default:x(()=>[y(u,{class:"fcom_main"},{default:x(()=>[g("div",HLe,[y(c)])]),_:1}),y(f,{class:"fcom_resp_side",width:"306px"},{default:x(()=>[e.isMobile?O("",!0):(_(),k("div",ULe,[g("div",WLe,[y(d,{is_trending:!0,pinned_widget_title:e.$t("Trending Posts"),with_pins:!0},null,8,["pinned_widget_title"])])]))]),_:1})]),_:1})]),_:1},8,["title"])]),_:1})}const KLe=de(BLe,[["render",qLe]]),GLe={name:"AllFeeds",components:{Feeds:Fh},mounted(){this.changeTitle(this.$t("All Feeds"))}},YLe={key:0,class:"notices fcom_notice_wrap"},ZLe=["innerHTML"];function JLe(e,t,n,o,r,i){const s=z("WelcomeBanner"),l=z("feeds");return _(),k(Q,null,[e.appVars.portal_notices&&e.appVars.portal_notices.length?(_(),k("div",YLe,[(_(!0),k(Q,null,Te(e.appVars.portal_notices,a=>(_(),k("div",{innerHTML:a},null,8,ZLe))),256))])):O("",!0),e.appVars.welcome_banner?(_(),L(s,{key:1})):O("",!0),y(l,{feed_name:"all_feeds",space:""})],64)}const XLe=de(GLe,[["render",JLe]]),QLe={name:"ViewFeed",components:{Feed:TL},props:["feed_slug"],data(){return{loading:!0,feed:null,notFound:!1}},watch:{feed_slug(){this.feed=null,this.$nextTick(()=>{this.getFeed()})}},methods:{getFeed(){this.loading=!0,this.$get("feeds/"+this.feed_slug+"/by-slug").then(e=>{this.feed=e.feed,this.appVars.last_feed_id<e.feed.id&&(this.appVars.last_feed_id=e.feed.id),this.changeFeedTitle(),this.$nextTick(()=>{this.checkCommentScroll()}),this.$eventBus.emit("feed_interaction",this.feed.id)}).catch(e=>{this.$handleError(e),typeof e=="object"&&e.xhr_status==404&&(this.notFound=!0)}).finally(()=>{this.loading=!1})},changeFeedTitle(){this.changeTitle(this.feed.title||"Feed")},checkCommentScroll(){this.$route.query.comment_id?setTimeout(()=>{const e=document.getElementById("comment_"+this.$route.query.comment_id);e?(e.classList.add("fcom_highlight_comment"),e.style.scrollMarginTop="100px",e.scrollIntoView({behavior:"instant"})):this.$eventBus.emit("toTop",0)},100):this.$eventBus.emit("toTop",0)}},mounted(){window.__showing_feed?(this.feed=window.__showing_feed,window.__showing_feed=null,this.$nextTick(()=>{this.changeFeedTitle(),this.checkCommentScroll()}),this.$eventBus.emit("feed_interaction",this.feed.id)):this.getFeed()}},eRe={key:2,class:"error-container"},tRe={style:{padding:"20px",background:"var(--fcom-primary-bg)","border-radius":"8px"},class:"error-content"},nRe={class:"error-title"},oRe={class:"error-message"},rRe={class:"error-explanation"},iRe={style:{"list-style":"disc",margin:"0 0 0 20px"},class:"error-reasons"},sRe={style:{"margin-top":"20px"},class:"error-actions"},lRe=["href"];function aRe(e,t,n,o,r,i){const s=z("feed"),l=Wt;return _(),k("div",null,[r.feed?(_(),L(s,{key:0,is_single:!0,feed:r.feed},null,8,["feed"])):r.loading?(_(),L(l,{key:1,rows:5,animated:!0,class:"white_loaded"})):r.notFound?(_(),k("div",eRe,[g("div",tRe,[g("h1",nRe,M(e.$t("Post Not Found")),1),g("p",oRe,M(e.$t("Sorry, the requested post could not be found.")),1),g("p",rRe,M(e.$t("This may be due to one of the following reasons:")),1),g("ul",iRe,[g("li",null,M(e.$t("You do not have permission to view this post")),1),g("li",null,M(e.$t("The post URL may be incorrect")),1),g("li",null,M(e.$t("The post has been deleted")),1)]),g("div",sRe,[g("a",{href:e.$getRouteLink(""),class:"el-button fcom_primary_button"},M(e.$t("Back to home")),9,lRe)])])])):O("",!0)])}const k9=de(QLe,[["render",aRe]]),cRe={name:"SpaceHeader",emits:["refetch","doSearch"],components:{ImageUploader:vc},props:{space:{type:String,required:!0},space_profile:{required:!1}},data(){return{updating:!1}},computed:{profile(){return this.space_profile?(this.search="",this.space_profile):{title:".......",slug:"..",cover_photo:this.appVars.assets_url+"images/placeholer.png",permissions:{}}},isMod(){return this.profile.permissions.community_moderator}},methods:{handleCoverPhotoUpload(e){this.space_profile.cover_photo=e,this.updateSpace({cover_photo:e})},updateSpace(e){this.space_profile.id&&(this.updating=!0,this.$put("spaces/"+this.space+"/by-slug",{data:e}).then(t=>{this.$notify.success(t.message),this.$emit("refetch"),this.$eventBus.emit("reloadMenu")}).catch(t=>{this.$handleError(t)}).finally(()=>{this.updating=!1}))}},mounted(){this.$eventBus.on("doGlobalSearch",e=>{this.search_term=e})}},uRe={key:0,class:"object_header space_header"},dRe={key:0,style:{"text-align":"right"},class:"object_media_uploader"};function fRe(e,t,n,o,r,i){const s=Ye,l=z("image-uploader"),a=Mt("loading");return i.profile.cover_photo?ze((_(),k("div",uRe,[g("div",{style:Be({backgroundImage:"url("+i.profile.cover_photo+")"}),class:"object_cover"},[i.isMod?(_(),k("div",dRe,[y(l,{additionalData:{resize:!0,max_width:1500},onUploaded:i.handleCoverPhotoUpload},{default:x(()=>[y(s,{size:"small",plain:"",type:"primary"},{default:x(()=>[te(M(e.$t("Change Cover")),1)]),_:1})]),_:1},8,["onUploaded"]),y(s,{style:{"margin-top":"10px"},size:"small",plain:"",type:"danger",onClick:t[0]||(t[0]=qe(c=>i.updateSpace({cover_photo:""}),["prevent"]))},{default:x(()=>[te(M(e.$t("Remove")),1)]),_:1})])):O("",!0)],4)])),[[a,r.updating]]):O("",!0)}const pRe=de(cRe,[["render",fRe]]),hRe={name:"SpaceMenuItems",props:["space","profile"]},mRe={"aria-label":"Space menu"},_Re={class:"fcom_space_menu_ul"},gRe={key:0},vRe={key:1},bRe={key:2};function yRe(e,t,n,o,r,i){const s=z("router-link");return _(),k("nav",mRe,[g("ul",_Re,[g("li",null,[y(s,{to:{name:"space_feeds",params:{space:n.space}}},{default:x(()=>[te(M(e.$t("Posts")),1)]),_:1},8,["to"])]),n.profile.permissions.can_view_members?(_(),k("li",gRe,[y(s,{to:{name:"space_members",params:{space:n.space}}},{default:x(()=>[te(M(e.$t("Members")),1)]),_:1},8,["to"])])):O("",!0),n.profile.chat_thread_id&&n.profile.permissions.can_create_post?(_(),k("li",vRe,[y(s,{to:{name:"chat_app",query:{thread_id:n.profile.chat_thread_id}}},{default:x(()=>[te(M(e.$t("Chat")),1)]),_:1},8,["to"])])):O("",!0),e.isMobile?(_(),k("li",bRe,[y(s,{to:{name:"space_about"}},{default:x(()=>[te(M(e.$t("About")),1)]),_:1})])):O("",!0)])])}const wRe=de(hRe,[["render",yRe]]),kRe={name:"LockscreenMeta",components:{BgImageUpload:OL},props:["lockscreen"],emits:["editField"],data(){return{editing:!1,editTab:"content",editingField:null}},computed:{lockscreenFields(){return this.lockscreen},getFieldIcon(){return e=>{const t={image:"Picture",block:"Tickets",lesson:"Memo"};return e.name=="action"?"Iphone":t[e.type]}}},methods:{toggleHidden(e){e.hidden=!e.hidden},updateField(e){this.editing=!0,this.editingField=e;const t=e.type=="block"?e:null;this.$emit("editField",t)},backToFields(){this.editing=!1,this.editingField=null,this.$emit("editField",null)},moveUp(e){if(e==0)return;const t=this.lockscreen[e],n=this.lockscreen[e-1];this.lockscreen.splice(e-1,2,t,n)},moveDown(e){if(e==this.lockscreen.length-1)return;const t=this.lockscreen[e],n=this.lockscreen[e+1];this.lockscreen.splice(e,2,n,t)},handlePhotoUpload(e){this.editingField.background_image=e}}},xRe={key:0,class:"fcom_lockscreen_meta"},CRe={class:"fcom_meta_section lockscreen_meta"},SRe={class:"fcom_description"},$Re={class:"fcom_meta_section lockscreen_meta"},ERe={class:"fcom_meta_label"},TRe={class:"fcom_meta_content"},MRe={class:"fcom_meta_block"},ARe={class:"fcom_block_label"},IRe={class:"fcom_meta_sorting"},ORe={class:"fcom_block_action"},PRe={key:1,class:"fcom_lockscreen_meta"},NRe={class:"fcom_edit_title"},LRe={class:"fcom_edit_content"},RRe={class:"fcom_color_input_wrap"},FRe={class:"fcom_color_input_wrap"},DRe={class:"fcom_color_input_wrap"},BRe={class:"fcom_color_input_wrap"},zRe={class:"fcom_color_input_wrap"},VRe={key:1,class:"fcom_description"};function jRe(e,t,n,o,r,i){const s=ge,l=z("Top"),a=z("Bottom"),c=z("EditPen"),u=z("Hide"),d=z("View"),f=z("Back"),p=An,h=qi,m=Wi,b=V3,v=z("BgImageUpload"),E=qM,w=z3;return r.editing?(_(),k("div",PRe,[g("div",NRe,[y(s,{onClick:i.backToFields},{default:x(()=>[y(f)]),_:1},8,["onClick"]),g("p",null,M(r.editingField.label),1)]),g("div",LRe,[r.editingField.type=="image"?(_(),L(w,{key:0,modelValue:r.editTab,"onUpdate:modelValue":t[17]||(t[17]=S=>r.editTab=S)},{default:x(()=>[y(b,{label:e.$t("Content"),name:"content"},{default:x(()=>[y(m,{onSubmit:t[4]||(t[4]=qe(S=>e.doNothing(),["prevent"])),model:r.editingField,"label-position":"top",class:"fcom_form_container"},{default:x(()=>[y(h,{label:e.$t("Heading")},{default:x(()=>[y(p,{modelValue:r.editingField.heading,"onUpdate:modelValue":t[0]||(t[0]=S=>r.editingField.heading=S),placeholder:e.$t("Heading")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),y(h,{label:e.$t("Description")},{default:x(()=>[y(p,{modelValue:r.editingField.description,"onUpdate:modelValue":t[1]||(t[1]=S=>r.editingField.description=S),type:"textarea",placeholder:e.$t("Description")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),y(h,{label:e.$t("Button Label")},{default:x(()=>[y(p,{modelValue:r.editingField.button_text,"onUpdate:modelValue":t[2]||(t[2]=S=>r.editingField.button_text=S),placeholder:e.$t("Button Label")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),y(h,{label:e.$t("Button Link")},{default:x(()=>[y(p,{modelValue:r.editingField.button_link,"onUpdate:modelValue":t[3]||(t[3]=S=>r.editingField.button_link=S)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["label"]),y(b,{label:e.$t("Design"),name:"design"},{default:x(()=>[y(m,{onSubmit:t[16]||(t[16]=qe(S=>e.doNothing(),["prevent"])),model:r.editingField,"label-position":"top",class:"fcom_form_container"},{default:x(()=>[y(h,{label:e.$t("Background Image"),class:"fcom_bg_image"},{default:x(()=>[y(v,{modelValue:r.editingField.background_image,"onUpdate:modelValue":t[5]||(t[5]=S=>r.editingField.background_image=S),can_remove:!0},null,8,["modelValue"])]),_:1},8,["label"]),y(h,{label:e.$t("Overlay Color")},{default:x(()=>[g("div",RRe,[y(E,{predefine:e.appVars.suggestedColors,modelValue:r.editingField.overlay_color,"onUpdate:modelValue":t[6]||(t[6]=S=>r.editingField.overlay_color=S)},null,8,["predefine","modelValue"]),y(p,{modelValue:r.editingField.overlay_color,"onUpdate:modelValue":t[7]||(t[7]=S=>r.editingField.overlay_color=S)},null,8,["modelValue"])])]),_:1},8,["label"]),y(h,{label:e.$t("Heading Color")},{default:x(()=>[g("div",FRe,[y(E,{predefine:e.appVars.suggestedColors,modelValue:r.editingField.heading_color,"onUpdate:modelValue":t[8]||(t[8]=S=>r.editingField.heading_color=S)},null,8,["predefine","modelValue"]),y(p,{modelValue:r.editingField.heading_color,"onUpdate:modelValue":t[9]||(t[9]=S=>r.editingField.heading_color=S)},null,8,["modelValue"])])]),_:1},8,["label"]),y(h,{label:e.$t("Text Color")},{default:x(()=>[g("div",DRe,[y(E,{predefine:e.appVars.suggestedColors,modelValue:r.editingField.text_color,"onUpdate:modelValue":t[10]||(t[10]=S=>r.editingField.text_color=S)},null,8,["predefine","modelValue"]),y(p,{modelValue:r.editingField.text_color,"onUpdate:modelValue":t[11]||(t[11]=S=>r.editingField.text_color=S)},null,8,["modelValue"])])]),_:1},8,["label"]),y(h,{label:e.$t("Button Label")},{default:x(()=>[g("div",BRe,[y(E,{predefine:e.appVars.suggestedColors,modelValue:r.editingField.button_text_color,"onUpdate:modelValue":t[12]||(t[12]=S=>r.editingField.button_text_color=S)},null,8,["predefine","modelValue"]),y(p,{modelValue:r.editingField.button_text_color,"onUpdate:modelValue":t[13]||(t[13]=S=>r.editingField.button_text_color=S)},null,8,["modelValue"])])]),_:1},8,["label"]),y(h,{label:e.$t("Button Background")},{default:x(()=>[g("div",zRe,[y(E,{predefine:e.appVars.suggestedColors,modelValue:r.editingField.button_color,"onUpdate:modelValue":t[14]||(t[14]=S=>r.editingField.button_color=S),"show-alpha":""},null,8,["predefine","modelValue"]),y(p,{modelValue:r.editingField.button_color,"onUpdate:modelValue":t[15]||(t[15]=S=>r.editingField.button_color=S)},null,8,["modelValue"])])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["label"])]),_:1},8,["modelValue"])):r.editingField.type=="block"?(_(),k("div",VRe,M(e.$t("Edit the field from block editor ")),1)):O("",!0)])])):(_(),k("div",xRe,[g("div",CRe,[g("div",SRe,[g("p",null,M(e.$t("This page is only visible to non-members viewing a private space.")),1)])]),g("div",$Re,[g("div",ERe,M(e.$t("Page Blocks")),1),g("div",TRe,[g("ul",MRe,[(_(!0),k(Q,null,Te(i.lockscreenFields,(S,T)=>(_(),k("li",{class:R(["fcom_block_list",{block_hidden:S.hidden}])},[g("div",ARe,[y(s,{class:"fcom_el_icon"},{default:x(()=>[(_(),L(Et(i.getFieldIcon(S))))]),_:2},1024),g("p",null,M(S.label),1)]),g("div",IRe,[y(s,{onClick:$=>i.moveUp(T)},{default:x(()=>[y(l)]),_:2},1032,["onClick"]),y(s,{onClick:$=>i.moveDown(T)},{default:x(()=>[y(a)]),_:2},1032,["onClick"])]),g("div",ORe,[y(s,{onClick:$=>i.updateField(S)},{default:x(()=>[y(c)]),_:2},1032,["onClick"]),S.hidden?(_(),L(s,{key:0,onClick:$=>i.toggleHidden(S)},{default:x(()=>[y(u)]),_:2},1032,["onClick"])):(_(),L(s,{key:1,onClick:$=>i.toggleHidden(S)},{default:x(()=>[y(d)]),_:2},1032,["onClick"]))])],2))),256))])])])]))}const HRe=de(kRe,[["render",jRe]]),URe={name:"BlockEditor",emits:["update:modelValue"],props:{modelValue:{type:String,required:!1}},data(){return{loading:!0,has_error:!1,all_loaded:!1,html:this.modelValue}},methods:{attach(){const e=this.$refs.block_editor;this.loading=!1,this.all_loaded=!0,window.wp.attachEditor(e,{iso:{toolbar:{undo:!0,navigation:!0,documentInspector:null},blocks:{allowBlocks:["core/button","core/buttons","core/code","core/column","core/columns","core/embed","core/group","core/heading","core/image","core/list","core/list-item","core/missing","core/paragraph","core/preformatted","core/pullquote","core/quote","core/separator","core/spacer","core/table","core/verse"]},__experimentalOnChange:function(t){console.log(t)},sidebar:{inserter:!1,inspector:!0}},editor:{__experimentalOnChange:function(t){console.log(t)},__experimentalOnInput(t){console.log(t)},__experimentalOnSelection(t){console.log(t)},onSaveContent:function(t){console.log(t)}}}),e.addEventListener("change",t=>{this.html=t.target.value,this.$emit("update:modelValue",t.target.value)})},loadScript(e){return new Promise((t,n)=>{const o=document.createElement("script");o.src=e,o.onload=t,o.onerror=n,document.head.append(o)})},async loadScripts(){const e=this.appVars.block_editor_assets.scripts;for(const t in e)try{await this.loadScript(e[t]),console.log(`${t} JS loaded`)}catch(n){this.has_error=!0,console.error(`Failed to load js ${t}:`,n)}this.attach()},loadCSSFile(e){return new Promise((t,n)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=e,o.onload=t,o.onerror=n,document.head.append(o)})},async loadCSSFiles(){const t=this.appVars.block_editor_assets.styles.map(this.loadCSSFile);try{await Promise.all(t),console.log("All CSS files loaded")}catch(n){console.error("Failed to load some CSS files:",n)}}},mounted(){window.fl_block_editor_loaded?this.attach():(this.loadCSSFiles(),this.loadScripts(),window.fl_block_editor_loaded=!0)},beforeUnmount(){window.wp.detachEditor(this.$refs.block_editor)}},WRe={class:"fcom_block_editor"};function qRe(e,t,n,o,r,i){const s=Wt;return _(),k("div",WRe,[ze(g("div",null,[g("textarea",{ref:"block_editor",id:"fcom_block_editor",name:"block_editor"},M(r.html),513)],512),[[sn,r.all_loaded]]),r.all_loaded?O("",!0):(_(),L(s,{key:0,class:"white_loaded",rows:7,animated:!0}))])}const KRe=de(URe,[["render",qRe]]),GRe={name:"_LessonEditor",props:["sections"],computed:{lessonsCount(){return this.sections.reduce((e,t)=>e+t.lessons.length,0)},sectionsCount(){return this.sections.reduce((e,t)=>e+(t.lessons.length?1:0),0)}}},YRe={class:"fcom_course_sections"},ZRe={class:"fcom_course_intro"},JRe={class:"fcom_course_labels"},XRe={class:"fcom_course_info"},QRe=g("span",null," • ",-1),eFe={class:"fcom_card_sections"},tFe={class:"fcom_section_items"},nFe={key:0,class:"fcom_section_primary_item"},oFe={class:"fcom_section_primary_item_title"},rFe={class:"fcom_section_primary_item_actions"},iFe={class:"fcom_meta_text"},sFe={class:"fcom_section_item_title"},lFe={class:"fcom_heading_item clickable"};function aFe(e,t,n,o,r,i){const s=z("ArrowRight"),l=z("ArrowDown"),a=ge,c=z("Lock");return _(),k("div",YRe,[g("div",ZRe,[g("div",JRe,[g("h3",null,M(e.$t("Course content")),1),g("p",XRe,[te(M(e.$t("%s topics",i.sectionsCount))+" ",1),QRe,te(" "+M(e.$t("%s lessons",i.lessonsCount)),1)])])]),g("div",eFe,[g("div",tFe,[(_(!0),k(Q,null,Te(n.sections,u=>(_(),k("div",{key:u.id,class:"fcom_section_primary"},[u.lessons.length?(_(),k("div",nFe,[g("div",oFe,[y(a,{class:"clickable",onClick:d=>u.is_closed=!u.is_closed},{default:x(()=>[u.is_closed?(_(),L(s,{key:0})):(_(),L(l,{key:1}))]),_:2},1032,["onClick"]),g("h4",null,M(u.title),1)]),g("div",rFe,[g("span",iFe,M(e.$t("%d lessons",u.lessons.length)),1)])])):O("",!0),u.is_closed?O("",!0):(_(!0),k(Q,{key:1},Te(u.lessons,d=>(_(),k("div",{key:d.id,class:"fcom_section_item"},[g("div",sFe,[g("p",lFe,[y(a,null,{default:x(()=>[y(c)]),_:1}),te(" "+M(d.title),1)])])]))),128))]))),128))])])])}const NL=de(GRe,[["render",aFe]]),cFe={name:"LockScreenEditor",props:["title","lockscreen","sections","saving","loading"],emits:["save","close"],components:{LessonEditor:NL,MediaEmbeder:j3,BlockEditor:KRe,LockscreenMeta:HRe},data(){return{editingField:null}},computed:{lockscreenFields(){return this.lockscreen.filter(e=>!e.hidden)},imageStyles(){return e=>({backgroundImage:`url(${e.background_image})`,backgroundColor:e.overlay_color})},headingStyles(){return e=>({color:e.heading_color})},descriptionStyles(){return e=>({color:e.text_color})},buttonStyles(){return e=>({backgroundColor:e.button_color,color:e.button_text_color})}},methods:{updateHeading(e,t){t.heading=e.target.innerText},updateDescription(e,t){t.description=e.target.innerText},updateButtonLabel(e,t){t.button_text=e.target.innerText},visibleBlock(e){this.editingField=e},updateEditField(e){this.editingField=e,(e==null?void 0:e.type)==="block"&&setTimeout(()=>{const t=document.getElementById("fcomBlockContent");t&&t.scrollIntoView({behavior:"smooth"})},300)},saveChanges(){this.editingField=null,this.$emit("save")}}},uFe={class:"fcom_editor_topbar"},dFe={class:"fcom_editor_content"},fFe={class:"fcom_item"},pFe={class:"fcom_content"},hFe=["onInput"],mFe=["onInput"],_Fe=["onInput"],gFe={key:1,class:"fcom_content_wrap"},vFe={key:0,id:"fcomBlockContent"},bFe=["onClick","innerHTML"],yFe={key:2,class:"fcom_content_wrap"};function wFe(e,t,n,o,r,i){const s=z("lockscreen-meta"),l=vh,a=z("Lock"),c=ge,u=z("block-editor"),d=z("lesson-editor"),f=Wt,p=$o,h=Os;return _(),k(Q,null,[y(l,{class:"fcom_full_editor_side lockscreen_editor",width:"250px"},{default:x(()=>[le(e.$slots,"before_meta"),y(s,{lockscreen:n.lockscreen,onEditField:i.updateEditField},null,8,["lockscreen","onEditField"])]),_:3}),y(h,{class:"fcom_full_editor_main lockscreen_editor"},{default:x(()=>[y(p,null,{default:x(()=>[g("div",uFe,[y(c,null,{default:x(()=>[y(a)]),_:1}),g("h3",null,M(n.title),1)]),g("div",dFe,[(_(!0),k(Q,null,Te(i.lockscreenFields,m=>{var b;return _(),k("div",fFe,[m.type=="image"?(_(),k("div",{key:0,class:"fcom_image_wrap",style:Be(i.imageStyles(m))},[g("div",pFe,[g("h2",{style:Be(i.headingStyles(m)),contenteditable:"true",onInput:v=>i.updateHeading(v,m)},M(m.heading),45,hFe),g("p",{style:Be(i.descriptionStyles(m)),contenteditable:"true",onInput:v=>i.updateDescription(v,m)},M(m.description),45,mFe),g("button",{class:"fcom_btn",style:Be(i.buttonStyles(m)),contenteditable:"true",onInput:v=>i.updateButtonLabel(v,m)},M(m.button_text),45,_Fe)])],4)):O("",!0),m.type=="block"?(_(),k("div",gFe,[((b=r.editingField)==null?void 0:b.type)=="block"?(_(),k("div",vFe,[y(u,{modelValue:m.content,"onUpdate:modelValue":v=>m.content=v},null,8,["modelValue","onUpdate:modelValue"])])):(_(),k("div",{key:1,onClick:v=>i.visibleBlock(m),innerHTML:m.content},null,8,bFe))])):O("",!0),m.type=="lesson"?(_(),k("div",yFe,[n.loading?(_(),L(f,{key:1,rows:5,animated:!0})):(_(),L(d,{key:0,sections:n.sections},null,8,["sections"]))])):O("",!0)])}),256))])]),_:1})]),_:1})],64)}const kFe=de(cFe,[["render",wFe]]),xFe={name:"SpaceLockscreen",props:["spaceProfile","savingCount"],emits:["close"],components:{LockScreenEditor:kFe},data(){return{saving:!1,loading:!1,lockscreen:null}},watch:{savingCount(){this.saveChanges()}},methods:{saveChanges(){this.lockscreen&&(this.saving=!0,this.$put("spaces/"+this.spaceProfile.slug+"/lockscreens",{lockscreen:this.lockscreen}).then(e=>{this.$notify.success(e.message)}).catch(e=>{this.$handleError(e)}).finally(()=>{this.saving=!1}))},getLockscreen(){this.loading=!0,this.$get("spaces/"+this.spaceProfile.slug+"/lockscreens").then(e=>{this.lockscreen=e.lockscreen}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})}},mounted(){this.getLockscreen()}},CFe={key:0,class:"fcom_lockscreen_meta"},SFe={class:"fcom_description"},$Fe={class:"white_loaded"};function EFe(e,t,n,o,r,i){const s=z("lock-screen-editor"),l=Wt,a=Os;return r.lockscreen?(_(),L(s,{key:0,title:n.spaceProfile.title,lockscreen:r.lockscreen,saving:r.saving,loading:r.loading,onSave:i.saveChanges,onClose:t[0]||(t[0]=c=>e.$emit("close"))},{before_meta:x(()=>[n.spaceProfile.settings.custom_lock_screen!="yes"?(_(),k("div",CFe,[g("div",SFe,[g("p",null,M(e.$t("__LOCK_SCRREN_DESC")),1)])])):O("",!0)]),_:1},8,["title","lockscreen","saving","loading","onSave"])):r.loading?(_(),L(a,{key:1,class:"fcom_full_editor_main lockscreen_editor"},{default:x(()=>[g("div",$Fe,[y(l,{animated:!0,rows:10})])]),_:1})):O("",!0)}const TFe=de(xFe,[["render",EFe]]),MFe={name:"ManageSpaceLinks",components:{MenuGroupSettings:PL},props:["spaceProfile","savingCount"],emits:["close"],data(){return{saving:!1}},watch:{savingCount(){this.saveMenuItems(!0)}},methods:{saveMenuItems(e=!1){this.saving=!0;let t="spaces/"+this.spaceProfile.slug+"/links";this.spaceProfile.type=="course"&&(t="admin/courses/"+this.spaceProfile.id+"/links"),this.$post(t,{links:this.spaceProfile.settings.links}).then(n=>{this.$notify.success(n.message),this.spaceProfile.settings.links=n.links,e&&this.$emit("close")}).catch(n=>{this.$handleError(n)}).finally(()=>{this.saving=!1})}}},AFe={style:{"max-width":"800px",padding:"20px",margin:"0 auto"}},IFe={class:"fcom_card_sections"};function OFe(e,t,n,o,r,i){const s=z("menu-group-settings"),l=$o,a=Os;return _(),L(a,{class:"fcom_full_editor_main lockscreen_editor"},{default:x(()=>[y(l,null,{default:x(()=>[g("div",AFe,[g("div",IFe,[y(s,{custom_svg:!0,use_icon_selector:!0,has_svg:!1,onSave:t[0]||(t[0]=c=>i.saveMenuItems()),title:e.$t("Manage Links"),menuItems:n.spaceProfile.settings.links},null,8,["title","menuItems"])])])]),_:1})]),_:1})}const PFe=de(MFe,[["render",OFe]]),NFe={name:"SpaceCustomizer",props:["space_profile"],emits:["close","completed"],components:{SpaceLockscreen:TFe,CreateSpaceForm:C0,ManageSpaceLinks:PFe},data(){return{saving:!1,currentTab:"general",savingCount:0}},methods:{saveChanges(){this.savingCount=this.savingCount+1}}},LFe={key:0,class:"fcom_full_editor"},RFe={class:"fcom_full_editor_header"},FFe={class:"fcom_editor_menu object_menu"},DFe={class:"fcom_space_menu_ul"},BFe={class:"full_editor_actions"},zFe={style:{"max-width":"800px",margin:"0 auto"},class:"fcom_full_editor_content"};function VFe(e,t,n,o,r,i){const s=z("ArrowLeft"),l=ge,a=Ye,c=JM,u=z("create-space-form"),d=$o,f=Os,p=z("space-lockscreen"),h=z("manage-space-links"),m=hd,b=Mt("loading");return n.space_profile?(_(),k("div",LFe,[y(m,null,{default:x(()=>[y(c,{class:"fcom_full_editor_header_wrap"},{default:x(()=>[g("div",RFe,[g("div",{onClick:t[0]||(t[0]=v=>e.$emit("completed")),class:"fcom_back_header"},[y(l,null,{default:x(()=>[y(s)]),_:1}),te(" "+M(n.space_profile.title),1)]),g("div",FFe,[g("ul",DFe,[g("li",{onClick:t[1]||(t[1]=v=>r.currentTab="general")},[g("a",{class:R({"router-link-exact-active":r.currentTab==="general"}),href:"#"},M(e.$t("General Settings")),3)]),n.space_profile.privacy=="private"?(_(),k("li",{key:0,onClick:t[2]||(t[2]=v=>r.currentTab="lock_screen")},[g("a",{class:R({"router-link-exact-active":r.currentTab==="lock_screen"}),href:"#"},M(e.$t("Lock Screen")),3)])):O("",!0),g("li",{onClick:t[3]||(t[3]=v=>r.currentTab="manage_links")},[g("a",{class:R({"router-link-exact-active":r.currentTab==="manage_links"}),href:"#"},M(e.$t("Space Links")),3)])])]),g("div",BFe,[ze((_(),L(a,{class:"fcom_primary_button",disabled:r.saving,onClick:i.saveChanges},{default:x(()=>[te(M(e.$t("Save Changes")),1)]),_:1},8,["disabled","onClick"])),[[b,r.saving]]),y(a,{onClick:t[4]||(t[4]=v=>e.$emit("completed")),text:""},{default:x(()=>[te(" X ")]),_:1})])])]),_:1}),y(m,{class:"fcom_full_editor_container"},{default:x(()=>[r.currentTab=="general"?(_(),L(f,{key:0,class:"fcom_full_editor_main lockscreen_editor"},{default:x(()=>[y(d,null,{default:x(()=>[g("div",zFe,[y(u,{savingCount:r.savingCount,community:n.space_profile},null,8,["savingCount","community"])])]),_:1})]),_:1})):r.currentTab=="lock_screen"?(_(),L(p,{key:1,savingCount:r.savingCount,onClose:t[5]||(t[5]=v=>e.$emit("close")),spaceProfile:n.space_profile},null,8,["savingCount","spaceProfile"])):r.currentTab=="manage_links"?(_(),L(h,{key:2,savingCount:r.savingCount,onClose:t[6]||(t[6]=v=>e.$emit("close")),spaceProfile:n.space_profile},null,8,["savingCount","spaceProfile"])):O("",!0)]),_:1})]),_:1})])):O("",!0)}const jFe=de(NFe,[["render",VFe]]),HFe={name:"SpaceMenu",emits:["refetch","doSearch"],components:{ImageUploader:vc,SpaceMenuItems:wRe,SpaceCustomizer:jFe},props:{space:{type:String,required:!0},space_profile:{required:!1}},data(){return{joining:!1,updating:!1,editLockscreen:!1,search_term:this.$route.query.search||"",SearchIcon:oi(ju),customizeSpace:!1,drawerVisible:!1}},computed:{profile(){return this.space_profile?(this.search="",this.space_profile):{title:".......",slug:"..",cover_photo:this.appVars.assets_url+"images/placeholer.png",permissions:{}}},isMod(){return this.profile.permissions.community_moderator}},methods:{join(){this.joining=!0,this.$post("spaces/"+this.space+"/join").then(e=>{this.appVars.user_membership_slugs.push(this.space),this.$notify.success(e.message),this.profile.membership=e.membership,this.$emit("refetch"),this.$eventBus.emit("reloadMenu")}).catch(e=>{this.$handleError(e)}).finally(()=>{this.joining=!1})},leave(){this.$confirm(this.$t("Are you sure you want to leave this community?"),this.$t("Leave Space"),{confirmButtonText:this.$t("Leave Space"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(()=>{this.joining=!0,this.$post("spaces/"+this.space+"/leave").then(e=>{this.appVars.user_membership_slugs.splice(this.appVars.user_membership_slugs.indexOf(this.space),1),this.$notify.success(e.message),this.profile.membership=null,this.$emit("refetch"),this.$eventBus.emit("leaveCommunity",this.space),this.$eventBus.emit("reloadMenu")}).catch(e=>{this.$handleError(e)}).finally(()=>{this.joining=!1})})},initDeleteSpace(){this.$refs.space_actions.hide(),this.$confirm(this.$t("Are you sure you want to delete this space?"),this.$t("Warning"),{confirmButtonText:this.$t("Yes, Delete the Space"),cancelButtonText:this.$t("No"),type:"warning"}).then(()=>{this.$promt('Please Type "DELETE" to confirm. Please note, all the posts, comments, activities of this Space will be delete.',this.$t("Delete Space"),{confirmButtonText:this.$t("Confirm Delete"),cancelButtonText:this.$t("Cancel")}).then(e=>{e.value==="DELETE"?this.deleteSpace():this.$notify.error(this.$t("The verification string does not match"))})})},deleteSpace(){this.$del("spaces/"+this.space_profile.slug).then(e=>{this.$notify.success(e.message),this.$router.push({name:"all_feeds"}),this.$eventBus.emit("reloadMenu")}).catch(e=>{this.$handleError(e)})},handleCoverPhotoUpload(e){this.space_profile.cover_photo=e,this.updateSpace({cover_photo:e})},handlePhotoUpload(e){this.profile.logo=e,this.updateSpace({logo:e})},updateSpace(e){this.space_profile.id&&(this.updating=!0,this.$put("spaces/"+this.space+"/by-slug",{data:e}).then(t=>{this.$notify.success(t.message),this.$emit("refetch"),this.$eventBus.emit("reloadMenu")}).catch(t=>{this.$handleError(t)}).finally(()=>{this.updating=!1}))},initEdit(){this.customizeSpace=!0},performSearch(){this.$eventBus.emit("doGlobalSearch",this.search_term)}},mounted(){this.$eventBus.on("doGlobalSearch",e=>{this.search_term=e})}},UFe={class:"space_header"},WFe={class:"object_menu"},qFe={key:0,class:"menu_actions"},KFe={class:"actions_items"},GFe=g("li",{class:"fcom_li_separator"},null,-1),YFe={key:0};function ZFe(e,t,n,o,r,i){const s=z("space-menu-items"),l=Ye,a=z("MoreFilled"),c=ge,u=po,d=z("space-customizer"),f=Mt("loading");return _(),k(Q,null,[ze((_(),k("div",UFe,[g("div",WFe,[y(s,{space:n.space,profile:i.profile,class:"fcom_desktop_only"},null,8,["space","profile"]),i.profile.id?(_(),k("div",qFe,[e.auth.user_id&&!i.profile.membership?ze((_(),L(l,{key:0,disabled:r.joining,onClick:t[0]||(t[0]=p=>i.join()),class:"fcom_primary_button"},{default:x(()=>[te(M(e.$t("Join")),1)]),_:1},8,["disabled"])),[[f,r.joining]]):e.auth.user_id?(_(),L(u,{key:1,persistent:!1,ref:"space_actions",placement:"bottom",width:200,trigger:"click"},{reference:x(()=>[y(l,{"aria-label":e.$t("View actions"),class:"fcom_dot_menu",size:"small",text:""},{default:x(()=>[y(c,null,{default:x(()=>[y(a)]),_:1})]),_:1},8,["aria-label"])]),default:x(()=>[y(s,{space:n.space,profile:i.profile,class:"fcom_linked_menus fcom_sm_only"},null,8,["space","profile"]),g("ul",KFe,[e.hasCurrentSpacePermission("community_admin")?(_(),k(Q,{key:0},[g("li",{onClick:t[1]||(t[1]=()=>{i.initEdit(),e.$refs.space_actions.hide()})},M(e.$t("Space Settings")),1),GFe],64)):O("",!0),g("li",{onClick:t[2]||(t[2]=()=>{e.$refs.space_actions.hide(),i.leave()})},M(e.$t("Leave Space")),1),e.hasPermission("super_admin")?(_(),k("li",{key:1,onClick:t[3]||(t[3]=(...p)=>i.initDeleteSpace&&i.initDeleteSpace(...p))},M(e.$t("Delete")),1)):O("",!0)])]),_:1},512)):O("",!0)])):O("",!0)])])),[[f,r.updating]]),r.customizeSpace&&n.space_profile?(_(),k("div",YFe,[(_(),L(sr,{to:"body"},[y(d,{space_profile:n.space_profile,onClose:t[4]||(t[4]=p=>r.customizeSpace=null),onCompleted:t[5]||(t[5]=p=>{r.customizeSpace=!1,e.$emit("refetch")})},null,8,["space_profile"])]))])):O("",!0)],64)}const LL=de(HFe,[["render",ZFe]]),JFe={name:"AboutSpace",components:{RecentActivities:S0},props:["space_profile","has_permission"],data(){return{privacies:sL}}},XFe={class:"fcom_main_side_wrap"},QFe={role:"region","aria-label":"About Space",class:"app_side_widget widget_recent_activities"},eDe={class:"widget_header"},tDe={key:0,class:"widget_body"},nDe=["innerHTML"],oDe={class:"space_meta"},rDe={class:"space_meta_item"},iDe={class:"meta_label"},sDe={class:"meta_desc"};function lDe(e,t,n,o,r,i){var u,d,f;const s=z("Guide"),l=ge,a=Wt,c=z("recent-activities");return _(),k("div",XFe,[g("div",QFe,[g("div",eDe,[g("h3",null,M(e.$t("About")),1)]),n.space_profile?(_(),k("div",tDe,[g("div",{class:"space_description",innerHTML:n.space_profile.description_rendered},null,8,nDe),g("div",oDe,[g("div",rDe,[g("div",iDe,[y(l,null,{default:x(()=>[y(s)]),_:1}),g("span",null,M((u=r.privacies[n.space_profile.privacy])==null?void 0:u.label),1)]),g("div",sDe,M((d=r.privacies[n.space_profile.privacy])==null?void 0:d.space_description),1)])])])):(_(),L(a,{key:1,animated:!0}))]),n.space_profile&&n.has_permission?(_(),L(c,{key:0,with_pins:!0,with_pening_count:!0,widget_title:e.$t("Recent Space Activities"),context:{type:"space",space_slug:(f=n.space_profile)==null?void 0:f.slug,space_id:n.space_profile.id}},null,8,["widget_title","context"])):O("",!0)])}const RL=de(JFe,[["render",lDe]]),aDe={name:"CustomLockscreenView",props:["profile","sections"],components:{LessonEditor:NL},computed:{lockscreenFields(){var e,t;return(t=(e=this.profile)==null?void 0:e.lockscreen_config.lockScreen)==null?void 0:t.filter(n=>!n.hidden)},buttonLink(){return e=>e.button_link||"javascript:void(0)"},imageStyles(){return e=>({backgroundImage:`url(${e.background_image})`,backgroundColor:e.overlay_color})},headingStyles(){return e=>({color:e.heading_color})},descriptionStyles(){return e=>({color:e.text_color})},buttonStyles(){return e=>({backgroundColor:e.button_color,color:e.button_text_color})}}},cDe={class:"fcom_custom_lockscreen"},uDe={class:"fcom_lockscreen_content"},dDe={class:"fcom_item"},fDe={class:"fcom_content"},pDe=["href"],hDe={key:1,class:"fcom_content_wrap"},mDe=["innerHTML"],_De={key:2,class:"fcom_content_wrap"};function gDe(e,t,n,o,r,i){const s=z("lesson-editor");return _(),k("div",cDe,[g("div",uDe,[(_(!0),k(Q,null,Te(i.lockscreenFields,l=>(_(),k("div",dDe,[l.type=="image"?(_(),k("div",{key:0,class:"fcom_image_wrap",style:Be(i.imageStyles(l))},[g("div",fDe,[g("h2",{style:Be(i.headingStyles(l))},M(l.heading),5),g("p",{style:Be(i.descriptionStyles(l))},M(l.description),5),g("a",{href:i.buttonLink(l),class:"fcom_btn",style:Be(i.buttonStyles(l))},M(l.button_text),13,pDe)])],4)):O("",!0),l.type=="block"?(_(),k("div",hDe,[g("div",{innerHTML:l.content},null,8,mDe)])):O("",!0),l.type=="lesson"?(_(),k("div",_De,[y(s,{sections:n.sections},null,8,["sections"])])):O("",!0)]))),256))])])}const FL=de(aDe,[["render",gDe]]),vDe={name:"LockscreenView",components:{CustomLockscreenView:FL},props:["space_profile","joining"],emits:["join"],computed:{isDefaultScreen(){return this.space_profile},isNonMember(){var e;return(e=this.space_profile.permissions)==null?void 0:e.is_non_member}}},bDe={key:0,class:"space_lock_box space_default_lock_box"},yDe={key:1,class:"space_lock_box space_default_lock_box"},wDe=["href"],kDe=["href"],xDe={key:2},CDe={key:1,class:"space_lock_box"},SDe=["href"];function $De(e,t,n,o,r,i){const s=z("Lock"),l=ge,a=Ye,c=z("custom-lockscreen-view"),u=Mt("loading");return n.space_profile.lockscreen_config?(_(),k(Q,{key:0},[n.space_profile.permissions&&n.space_profile.permissions.is_pending?(_(),k("div",bDe,[y(l,null,{default:x(()=>[y(s)]),_:1}),g("h4",null,M(e.$t("Membership Request Under Review")),1)])):n.space_profile.lockscreen_config.showCustom?(_(),k("div",xDe,[y(c,{profile:n.space_profile},null,8,["profile"])])):(_(),k("div",yDe,[y(l,null,{default:x(()=>[y(s)]),_:1}),g("h4",null,M(e.$t("This is a private space")),1),n.space_profile.lockscreen_config.canSendRequest?(_(),k(Q,{key:0},[g("p",null,M(e.$t("Please send a join request and an admin will review your join request.")),1),e.auth.user_id?ze((_(),L(a,{key:0,disabled:n.joining,type:"primary",onClick:t[0]||(t[0]=d=>e.$emit("join"))},{default:x(()=>[te(M(e.$t("Request Access")),1)]),_:1},8,["disabled"])),[[u,n.joining]]):(_(),k("a",{key:1,href:e.getCurrentAuthUrl(),class:"fcom_btn el-button el-button--primary"},M(e.$t("Login or Signup")),9,wDe))],64)):(_(),k(Q,{key:1},[g("p",null,M(e.$t("Members have to be invited to this space.")),1),e.auth.user_id?O("",!0):(_(),k("a",{key:0,href:e.getCurrentAuthUrl(),class:"fcom_btn el-button el-button--primary"},M(e.$t("Login or Signup")),9,kDe))],64))]))],64)):e.auth.user_id?O("",!0):(_(),k("div",CDe,[y(l,null,{default:x(()=>[y(s)]),_:1}),g("h4",null,M(e.$t("Please login/signup to join this community")),1),g("p",null,M(e.$t("To join the discussion of this community, please login or signup")),1),g("a",{href:e.getCurrentAuthUrl(),class:"fcom_btn el-button el-button--primary"},M(e.appVars.allow_signup?e.$t("Login / Signup"):e.$t("Login")),9,SDe)]))}const EDe=de(vDe,[["render",$De]]),TDe={name:"SpaceView",components:{RenderSpaceLinks:U4,AboutSpace:RL,Layout:mr,AppLayout:Vr,SpaceHeader:pRe,RecentActivities:S0,CreateSpaceForm:C0,SpaceMenu:LL,LockscreenView:EDe,SpaceIcon:V4},props:["space"],data(){return{loading:!0,space_profile:null,search:"",joining:!1,pending_count:0}},computed:{has_permission(){return this.space_profile?!!this.space_profile.permissions.can_view_posts:!1},isDefaultScreen(){var e,t;return((t=(e=this.space_profile)==null?void 0:e.settings)==null?void 0:t.custom_lock_screen)=="no"},isCustomLockScreen(){var e;return!!((e=this.space_profile)!=null&&e.lockscreen_config)&&!this.isAdmin()},isNonMember(){var e,t;return(t=(e=this.space_profile)==null?void 0:e.permissions)==null?void 0:t.is_non_member},showSpaceHeader(){var e;return!this.isCustomLockScreen&&this.$route.name=="space_feeds"&&((e=this.space_profile)==null?void 0:e.cover_photo)},showSideBar(){var e,t;return!this.isCustomLockScreen&&this.$route.meta.show_sidebar&&((t=(e=this.space_profile)==null?void 0:e.settings)==null?void 0:t.show_sidebar)!="no"},showSpaceMenu(){return!this.isCustomLockScreen},showProfileLogo(){return!this.isCustomLockScreen},feedCssClasses(){var n,o;const e=[];e.push(this.showSideBar?"fcom_has_space_sidebar":"fcom_hide_space_sidebar");let t=((o=(n=this.space_profile)==null?void 0:n.settings)==null?void 0:o.layout_style)||"timeline";return e.push("fcom_layout_"+t),e.push("fcom_route_"+this.$route.name),e}},watch:{space(){this.space_profile=null,this.search="",this.getSpaceProfile()}},methods:{getSpaceProfile(){this.loading=!0,this.$get("spaces/"+this.space+"/by-slug").then(e=>{window.fcom_current_community=e.space,this.space_profile=e.space,this.auth.spaces[e.space.slug]=e.space,this.changeTitle(e.space.title),this.pending_count=e.pending_count,window.scrollTo({top:0,behavior:"smooth"})}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},processJoin(){this.joining=!0,this.$post("spaces/"+this.space_profile.slug+"/join").then(e=>{this.$notify.success(e.message),this.getSpaceProfile()}).catch(e=>{this.$handleError(e)}).finally(()=>{this.joining=!1})}},mounted(){if(this.auth.spaces[this.space]){let e=this.auth.spaces[this.space];window.fcom_current_community=e,this.space_profile=e,this.changeTitle(e.title),this.loading=!1,window.scrollTo({top:0,behavior:"smooth"});return}else this.getSpaceProfile()},beforeUnmount(){window.fcom_current_community=null}},MDe={key:0,"aria-label":"Space Links",class:"fcom_sub_header"},ADe={class:"space_route"},IDe={key:0},ODe={key:1,class:"space_holder"},PDe={key:2};function NDe(e,t,n,o,r,i){const s=z("Lock"),l=ge,a=z("space-icon"),c=z("router-link"),u=z("space-menu"),d=z("render-space-links"),f=z("space-header"),p=Wt,h=z("lockscreen-view"),m=z("router-view"),b=Os,v=z("AboutSpace"),E=vh,w=hd,S=z("layout"),T=z("app-layout");return _(),L(T,{wrapper_class:"fcom_single_layout fcom_max_layout"},{default:x(()=>[y(S,{wrapper_class:["no_bg_layout",{custom_lockscreen:i.isCustomLockScreen},"fcom_route_"+e.$route.name],title:"...."},{title:x(()=>[g("h1",{onClick:t[0]||(t[0]=$=>e.$eventBus.emit("toTop")),class:"fcom_page_title"},[r.space_profile?(_(),L(c,{key:0,class:"fcom_space_title",to:{name:"space_feeds",params:{space:n.space}}},{default:x(()=>[i.isCustomLockScreen?(_(),L(l,{key:0},{default:x(()=>[y(s)]),_:1})):i.showProfileLogo?(_(),L(a,{key:1,space_profile:r.space_profile},null,8,["space_profile"])):O("",!0),g("span",null,M(r.space_profile.title),1)]),_:1},8,["to"])):O("",!0)])]),actions:x(()=>[i.showSpaceMenu?(_(),L(u,{key:0,space:n.space,space_profile:r.space_profile,onDoSearch:t[1]||(t[1]=$=>{r.search=$}),onRefetch:t[2]||(t[2]=$=>i.getSpaceProfile())},null,8,["space","space_profile"])):O("",!0)]),sub_header:x(()=>{var $,A;return[r.space_profile&&!i.isCustomLockScreen&&((A=($=r.space_profile)==null?void 0:$.settings)!=null&&A.links.length)?(_(),k("nav",MDe,[y(d,{links:r.space_profile.settings.links},null,8,["links"])])):O("",!0)]}),default:x(()=>[i.showSpaceHeader?(_(),L(f,{key:0,onRefetch:t[3]||(t[3]=$=>i.getSpaceProfile()),space:n.space,space_profile:r.space_profile},null,8,["space","space_profile"])):O("",!0),y(w,{class:"fcom_resp_container fcom_space_container fcom_main_container"},{default:x(()=>[y(b,{class:"fcom_main"},{default:x(()=>[g("div",{class:R([i.feedCssClasses,"fcom_feed_box"])},[g("div",ADe,[r.loading?(_(),k("div",IDe,[y(p,{class:"white_loaded",rows:10,animated:!0})])):r.space_profile?(_(),k("div",ODe,[i.isCustomLockScreen?(_(),L(h,{key:0,space_profile:r.space_profile,joining:r.joining,onJoin:t[4]||(t[4]=$=>i.processJoin())},null,8,["space_profile","joining"])):O("",!0),i.has_permission?(_(),L(m,{key:1,search:r.search,onRefetch:t[5]||(t[5]=$=>i.getSpaceProfile()),space_profile:r.space_profile,space_slug:n.space},null,8,["search","space_profile","space_slug"])):O("",!0)])):(_(),k("div",PDe,[g("h4",null,M(e.$t("Sorry! this community could not be loaded")),1)]))])],2)]),_:1}),i.showSideBar?(_(),L(E,{key:0,class:"fcom_resp_side",width:"306px"},{default:x(()=>[y(v,{has_permission:i.has_permission,space_profile:r.space_profile},null,8,["has_permission","space_profile"])]),_:1})):O("",!0)]),_:1})]),_:1},8,["wrapper_class"])]),_:1})}const LDe=de(TDe,[["render",NDe]]),RDe={name:"CreateFeed",props:["space_slug","space_profile"],emits:["refetch"],components:{CreateStatusForm:j4,Feeds:Fh},data(){return{topic_slug:null}},methods:{setTopic(e){if(this.topic_slug=e,e)this.$router.push({query:{topic:e}});else{let t=this.$route.query;delete t.topic,this.$router.push({query:t});return}},watchTopicUrlChanged(e){this.topic_slug==e||!e||(this.topic_slug=e,this.$nextTick(()=>{window.fcomLayoutRef&&window.fcomLayoutRef.scrollTo({top:0,behavior:"smooth"})}))}},computed:{layout_style(){var e,t;return((t=(e=this.space_profile)==null?void 0:e.settings)==null?void 0:t.layout_style)||"timeline"},spaceTopics(){var e,t;return dL((e=this.space_profile)==null?void 0:e.topics)?null:((t=this.space_profile)==null?void 0:t.topics)||null}},created(){this.$route.query.topic&&(this.topic_slug=this.$route.query.topic),this.$eventBus.on("topic_changed",this.watchTopicUrlChanged)},beforeUnmount(){this.$eventBus.off("topic_changed",this.watchTopicUrlChanged)}},FDe={key:0,class:"fcom_space_topics"},DDe={ref:"fcom_topics_filters",class:"fcom_topics_filters"};function BDe(e,t,n,o,r,i){const s=Ye,l=$o,a=z("feeds");return _(),k(Q,null,[i.spaceTopics?(_(),k("div",FDe,[y(l,null,{default:x(()=>[g("div",DDe,[y(s,{onClick:t[0]||(t[0]=c=>i.setTopic("")),class:R({fcom_active_topic:!r.topic_slug})},{default:x(()=>[te(M(e.$t("All")),1)]),_:1},8,["class"]),(_(!0),k(Q,null,Te(i.spaceTopics,c=>(_(),L(s,{onClick:u=>i.setTopic(c.slug),class:R({fcom_active_topic:c.slug==r.topic_slug}),key:c.slug},{default:x(()=>[te(M(c.title),1)]),_:2},1032,["onClick","class"]))),128))],512)]),_:1})])):O("",!0),y(a,{feed_name:"space_feed_"+n.space_slug,layout_style:i.layout_style,topic_slug:r.topic_slug,hide_create_form:!n.space_profile.permissions.can_create_post,space:n.space_slug},null,8,["feed_name","layout_style","topic_slug","hide_create_form","space"])],64)}const zDe=de(RDe,[["render",BDe]]),VDe={name:"InviationForm",emits:["completed"],data(){return{saving:!1,inviatation:{email:"",invitee_name:""}}},props:{space_id:{type:Number,default:null},default_value:{type:Object,default:()=>""}},methods:{sendInvitation(){this.saving=!0,this.$post("invitations",{...this.inviatation,space_id:this.space_id}).then(e=>{this.$notify.success(e.message),this.$emit("completed"),this.inviatation={email:"",invitee_name:""}}).catch(e=>{this.$handleError(e)}).finally(()=>{this.saving=!1})}},mounted(){this.default_value&&(this.inviatation.email=this.default_value)}},jDe={class:"fcom_invitation_form",ref:"inviteForm"};function HDe(e,t,n,o,r,i){const s=An,l=qi,a=gh,c=_h,u=Ye,d=Wi,f=Mt("loading");return _(),k("div",jDe,[y(d,{onSubmit:t[2]||(t[2]=qe(p=>e.doNothing(),["prevent"])),modelValue:r.inviatation,"onUpdate:modelValue":t[3]||(t[3]=p=>r.inviatation=p),"label-position":"top"},{default:x(()=>[y(c,{gutter:30},{default:x(()=>[y(a,{sm:24,md:12},{default:x(()=>[y(l,{label:e.$t("Invitee email")},{default:x(()=>[y(s,{modelValue:r.inviatation.email,"onUpdate:modelValue":t[0]||(t[0]=p=>r.inviatation.email=p),placeholder:e.$t("Enter invitee email"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),y(a,{sm:24,md:12},{default:x(()=>[y(l,{label:e.$t("Invitee Name (optional)")},{default:x(()=>[y(s,{modelValue:r.inviatation.invitee_name,"onUpdate:modelValue":t[1]||(t[1]=p=>r.inviatation.invitee_name=p),placeholder:e.$t("Enter invitee Name"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),y(l,null,{default:x(()=>[ze((_(),L(u,{disabled:r.saving,class:"fcom_primary_button",onClick:i.sendInvitation},{default:x(()=>[te(M(e.$t("Send Invitation")),1)]),_:1},8,["disabled","onClick"])),[[f,r.saving]])]),_:1})]),_:1},8,["modelValue"])],512)}const DL=de(VDe,[["render",HDe]]),UDe={name:"AddMemberForm",components:{InviationForm:DL},props:["modelValue","space_profile"],emits:["completed"],data(){return{users:[],loading:!1,form:this.modelValue||{user_id:"",role:"",editing_user:null},adding:!1,invite_search:"",showingForm:"addByUser"}},methods:{fetchUsers(e=""){this.loading=!0,this.$get("spaces/users/search",{context:"add_member",search:e,space_id:this.space_profile.id}).then(t=>{this.users=t.users.data}).catch(t=>{this.$handleError(t)}).finally(()=>{this.loading=!1})},addMember(){if(!this.form.user_id||!this.form.role){this.$notify.error(this.$t("Please select a user and role"));return}this.adding=!0,this.$post("spaces/"+this.space_profile.slug+"/members",{user_id:this.form.user_id,role:this.form.role}).then(e=>{this.$notify.success(e.message),this.$emit("completed")}).catch(e=>{this.$handleError(e)}).finally(()=>{this.adding=!1})},invitePerson(){const e=this.$refs.invite_member.inputRef.value;if(!e){this.$notify.error(this.$t("Please enter an email address"));return}this.invite_search=e,this.showingForm="addByInvitations"}},mounted(){var e;(e=this.modelValue)!=null&&e.editing_user||this.fetchUsers()}},WDe={style:{float:"left",display:"flex","align-items":"center"}},qDe={key:0},KDe=["src"],GDe={style:{float:"right",color:"#8492a6","font-size":"13px"}},YDe={key:1},ZDe={class:"fcom_spaced_flex"},JDe={key:0},XDe={key:1},QDe={key:1},eBe={key:0},tBe={key:1},nBe=g("p",null,"Member Invitation feature is only available on the Pro version",-1),oBe=[nBe];function rBe(e,t,n,o,r,i){const s=Ho,l=Ye,a=jo,c=qi,u=Wi,d=z("InviationForm"),f=Mt("loading");return r.showingForm=="addByUser"?(_(),L(u,{key:0,onSubmit:t[4]||(t[4]=qe(p=>e.doNothing(),["prevent"])),"label-position":"top",modelValue:r.form,"onUpdate:modelValue":t[5]||(t[5]=p=>r.form=p)},{default:x(()=>[r.form.editing_user?(_(),k("p",YDe,M(e.$t("Editing manager role for"))+" "+M(r.form.editing_user.display_name),1)):(_(),L(c,{key:0,label:e.$t("Search for an existing user or Invite by Email")},{default:x(()=>[ze((_(),L(a,{ref:"invite_member",class:"rich_select",filterable:"",remote:"","remote-method":i.fetchUsers,placeholder:e.$t("Select User"),modelValue:r.form.user_id,"onUpdate:modelValue":t[1]||(t[1]=p=>r.form.user_id=p)},{empty:x(()=>[g("p",null,M(e.$t("No existing users found based on your search.")),1),ze((_(),L(l,{disabled:r.adding,type:"success",onClick:t[0]||(t[0]=p=>i.invitePerson())},{default:x(()=>[te(M(e.$t("Send Email Invitation")),1)]),_:1},8,["disabled"])),[[f,r.adding]])]),default:x(()=>[(_(!0),k(Q,null,Te(r.users,p=>(_(),L(s,{key:p.ID,label:p.display_name+" ("+(p.user_email??p.ID)+")",value:p.ID},{default:x(()=>[g("span",WDe,[p.photo?(_(),k("span",qDe,[g("img",{alt:"",src:p.photo,style:{width:"16px",height:"16px","border-radius":"50%","margin-right":"10px"}},null,8,KDe)])):O("",!0),g("span",null,M(p.display_name),1)]),g("span",GDe,M(p.user_email??p.ID),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["remote-method","placeholder","modelValue"])),[[f,r.loading]])]),_:1},8,["label"])),y(c,{label:e.$t("Membership Role")},{default:x(()=>[y(a,{placeholder:e.$t("Select Role"),modelValue:r.form.role,"onUpdate:modelValue":t[2]||(t[2]=p=>r.form.role=p)},{default:x(()=>[y(s,{label:e.$t("Member"),value:"member"},null,8,["label"]),y(s,{label:e.$t("Moderator"),value:"moderator"},null,8,["label"]),y(s,{label:e.$t("Admin"),value:"admin"},null,8,["label"])]),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"]),le(e.$slots,"after_form",{},()=>[g("div",ZDe,[ze((_(),L(l,{class:"fcom_primary_button",disabled:r.adding,onClick:t[3]||(t[3]=p=>i.addMember())},{default:x(()=>[r.form.editing_user?(_(),k("span",JDe,M(e.$t("Update Role")),1)):(_(),k("span",XDe,M(e.$t("Add as %s",r.form.role)),1))]),_:1},8,["disabled"])),[[f,r.adding]])])])]),_:3},8,["modelValue"])):(_(),k("div",QDe,[e.has_pro?(_(),k("div",eBe,[y(d,{space_id:n.space_profile.id,default_value:r.invite_search,onCompleted:t[6]||(t[6]=p=>e.$emit("completed"))},null,8,["space_id","default_value"])])):(_(),k("div",tBe,oBe))]))}const BL=de(UDe,[["render",rBe]]),iBe={name:"Pagination",emits:["fetch","per_page_change"],props:{pagination:{required:!0,type:Object},extra_sizes:{required:!1,type:Array,default(){return[]}},hide_on_single:{required:!1,type:Boolean,default(){return!0}}},computed:{page_sizes(){const e=[];this.pagination.per_page<10&&e.push(this.pagination.per_page);const t=[10,20,50,80,100,120,150];return[...e,...t,...this.extra_sizes]},pager_layout(){return this.isMobile?"total, sizes, jumper, prev, next":"total, sizes, jumper , prev, pager, next"}},methods:{changePage(e){this.pagination.page=e,this.$emit("fetch")},changeSize(e){this.pagination.per_page=e,this.$emit("per_page_change",e),this.$emit("fetch")}}},sBe={class:"fcom_pagination_wrap"};function lBe(e,t,n,o,r,i){const s=Ole;return _(),k("div",sBe,[y(s,{background:!1,size:"small","pager-count":3,layout:i.pager_layout,onCurrentChange:i.changePage,onSizeChange:i.changeSize,"hide-on-single-page":n.hide_on_single,"current-page":n.pagination.page,"page-sizes":i.page_sizes,"page-size":n.pagination.per_page,total:n.pagination.total},null,8,["layout","onCurrentChange","onSizeChange","hide-on-single-page","current-page","page-sizes","page-size","total"])])}const Dh=de(iBe,[["render",lBe]]),aBe={name:"SpaceMembers",props:["space","space_profile"],components:{Search:ju,Pagination:Dh,AddMemberForm:BL},emits:["refetch"],inheritAttrs:!1,data(){return{members:[],loading:!1,pagination:{page:1,per_page:20,total:0},status:"active",pending_count:0,working:!1,addingMember:!1,editing_member:{user_id:"",role:"member"},search:"",SearchIcon:oi(ju),permission_failed:!1}},methods:{fetch(){this.loading=!0,this.$get("spaces/"+this.space+"/members",{page:this.pagination.page,per_page:this.pagination.per_page,status:this.status,search:this.search}).then(e=>{this.members=e.members.data,this.pagination.total=e.members.total,e.pending_count&&(this.pending_count=e.pending_count),this.pagination.page!=1&&this.$nextTick(()=>{this.$refs.space_members&&this.$refs.space_members.scrollIntoView({behavior:"smooth"})})}).catch(e=>{e.permission_failed?this.permission_failed=!0:this.$handleError(e)}).finally(()=>{this.loading=!1})},removeMemberPrompt(e,t){this.$confirm(this.$t("Are you sure you want to remove this member from this community?"),this.$t("Remove Member?"),{confirmButtonText:this.$t("Remove"),cancelButtonText:this.$t("Cancel"),type:"error"}).then(()=>{this.removeMember(e,t)})},removeMember(e,t){this.working=!0,this.$post("spaces/"+this.space+"/members/remove",{user_id:e.user_id}).then(n=>{this.$notify.success(n.message),this.members.splice(t,1),this.members.length||this.fetch()}).catch(n=>{this.$handleError(n)}).finally(()=>{this.working=!1})},approveMember(e,t=null){this.working=!0,this.$post("spaces/"+this.space+"/members",{user_id:e.user_id}).then(n=>{if(this.$notify.success(n.message),t===null){this.fetch();return}this.members.splice(t,1),this.members.length||this.fetch()}).catch(n=>{this.$handleError(n)}).finally(()=>{this.working=!1})},initAddMember(e,t=null){this.editing_member=e?{user_id:e.user_id,role:e.role,editing_user:e.xprofile}:{user_id:"",role:""},e&&this.$refs.edit_member_pop&&this.$refs.edit_member_pop.hide(),this.addingMember=!0},handleSearch(){this.search&&this.search.length<3||this.toSearch()},toSearch(){this.pagination.page=1,this.fetch()}},mounted(){this.$route.query.view_pending&&(this.status="pending"),this.fetch()}},cBe={ref:"space_members"},uBe={key:0,class:"member_header"},dBe={class:"member_status"},fBe={class:"add_member"},pBe={key:1,style:{"text-align":"center",padding:"20px 20px 40px"},class:"space_members"},hBe={class:"permission_failed"},mBe=["href"],_Be={key:2},gBe={class:"search_member"},vBe={class:"space_members"},bBe={class:"card_list"},yBe={class:"card_content"},wBe={class:"card_avatar"},kBe={class:"card_info"},xBe={class:"card_name"},CBe={class:"info_header"},SBe={key:0,class:"meta_line"},$Be={key:1,class:"meta_line"},EBe={class:"meta_line"},TBe=g("div",{class:"card_break"},null,-1),MBe={class:"card_footer"},ABe={key:0,class:"card_action"},IBe={class:"actions_items"},OBe=["onClick"],PBe=["onClick"],NBe={class:"pagination_wrap"},LBe={key:0,class:"loading"},RBe={key:1,class:"no_members"},FBe={key:0},DBe={key:1};function BBe(e,t,n,o,r,i){const s=hh,l=Is,a=Ye,c=z("Search"),u=ge,d=An,f=z("UserAvatar"),p=z("UserRouteLink"),h=mh,m=z("MoreFilled"),b=po,v=z("Pagination"),E=Wt,w=z("add-member-form"),S=oA,T=Mt("loading");return _(),k(Q,null,[g("div",cBe,null,512),e.isSpaceModerator(n.space_profile)?(_(),k("div",uBe,[g("div",dBe,[r.pending_count?(_(),L(l,{key:0,onChange:i.toSearch,modelValue:r.status,"onUpdate:modelValue":t[0]||(t[0]=$=>r.status=$),class:"status_group"},{default:x(()=>[y(s,{value:"active"},{default:x(()=>[te(M(e.$t("Active")),1)]),_:1}),y(s,{value:"pending"},{default:x(()=>[te(M(e.$t("Pending"))+" ("+M(r.pending_count)+")",1)]),_:1})]),_:1},8,["onChange","modelValue"])):O("",!0)]),g("div",fBe,[y(a,{class:"fcom_primary_button",onClick:t[1]||(t[1]=$=>e.$router.push({name:"space_invitations"}))},{default:x(()=>[te(M(e.$t("Invitations")),1)]),_:1})])])):O("",!0),r.permission_failed?(_(),k("div",pBe,[g("div",hBe,[g("h3",null,M(e.$t("Permission Denied")),1),g("p",null,M(e.$t("You do not have permission to view all members")),1),g("a",{href:e.$getRouteLink("space/:space_slug/home",{space_slug:n.space_profile.slug}),class:"el-button fcom_primary_button"},M(e.$t("Go to Space Home")),9,mBe)])])):(_(),k("div",_Be,[g("div",gBe,[y(d,{clearable:"",onClear:i.toSearch,onKeydown:Ut(i.toSearch,["enter"]),onInput:i.handleSearch,modelValue:r.search,"onUpdate:modelValue":t[2]||(t[2]=$=>r.search=$),placeholder:e.$t("Search...")},{prefix:x(()=>[y(u,null,{default:x(()=>[y(c)]),_:1})]),_:1},8,["onClear","onKeydown","onInput","modelValue","placeholder"])]),g("div",vBe,[ze((_(),k("div",bBe,[(_(!0),k(Q,null,Te(r.members,($,A)=>{var P;return ze((_(),k("div",{key:$.id,class:"each_card"},[g("div",yBe,[g("div",wBe,[y(f,{is_online:e.isOnline($.xprofile.last_activity),xprofile:$.xprofile},null,8,["is_online","xprofile"])]),g("div",kBe,[g("div",xBe,[g("div",CBe,[y(p,{xprofile:$.xprofile},null,8,["xprofile"]),r.status!="pending"?(_(),k("div",SBe,M(e.$t("Joined %1s",e.humanDateDiff($.created_at))),1)):(_(),k("div",$Be,M(e.$t("Requested %s",e.humanDateDiff($.created_at))),1))]),g("div",EBe,M(e.getExcerpt((P=$.xprofile)==null?void 0:P.short_description,120)),1),$.role!="member"?(_(),L(h,{key:0,type:"success"},{default:x(()=>[te(M(e.$labelize($.role)),1)]),_:2},1024)):O("",!0)]),r.status=="pending"?(_(),k(Q,{key:0},[TBe,g("div",MBe,[y(a,{class:"fcom_primary_button",onClick:N=>i.approveMember($,A)},{default:x(()=>[te(M(e.$t("Approve")),1)]),_:2},1032,["onClick"]),y(a,{class:"fcom_secondary_button",onClick:N=>i.removeMember($,A)},{default:x(()=>[te(M(e.$t("Decline")),1)]),_:2},1032,["onClick"])])],64)):O("",!0)])]),r.status!="pending"&&n.space_profile&&e.hasInPermission("can_remove_member",n.space_profile.permissions)?(_(),k("div",ABe,[y(b,{placement:"bottom",width:200,trigger:"click",persistent:!1,ref_for:!0,ref:"userPopoverRef_"+$.user_id},{reference:x(()=>[y(a,{"aria-label":e.$t("View actions"),size:"small",text:""},{default:x(()=>[y(u,{class:"fcom_more_icon"},{default:x(()=>[y(m)]),_:1})]),_:1},8,["aria-label"])]),default:x(()=>[g("ul",IBe,[g("li",{onClick:N=>i.removeMemberPrompt($,A)},M(e.$t("Remove Member")),9,OBe),g("li",{onClick:N=>i.initAddMember($,N)},M(e.$t("Change Membership")),9,PBe)])]),_:2},1536)])):O("",!0)])),[[T,r.working]])}),128))])),[[T,r.loading]]),g("div",NBe,[y(v,{hide_on_single:!0,onFetch:t[3]||(t[3]=$=>i.fetch()),pagination:r.pagination},null,8,["pagination"])]),r.loading&&!r.pagination.total?(_(),k("div",LBe,[y(E,{class:"white_loaded",rows:3,animated:!0}),y(E,{style:{"margin-top":"20px"},class:"white_loaded",rows:3,animated:!0})])):!r.loading&&!r.members.length?(_(),k("div",RBe,M(e.$t("No %s members found in this community.",r.status)),1)):O("",!0)])])),r.addingMember?(_(),L(S,{key:3,modelValue:r.addingMember,"onUpdate:modelValue":t[6]||(t[6]=$=>r.addingMember=$),"close-on-click-modal":!1,"append-to-body":!0,size:e.dialogWidth,direction:"rtl"},{header:x(()=>[r.editing_member.editing_user?(_(),k("h4",FBe,M(e.$t("Update Role")),1)):(_(),k("h4",DBe,M(e.$t("Add Member")),1))]),default:x(()=>[r.addingMember?(_(),L(w,{key:0,space_profile:n.space_profile,modelValue:r.editing_member,"onUpdate:modelValue":t[4]||(t[4]=$=>r.editing_member=$),onCompleted:t[5]||(t[5]=()=>{i.fetch(),r.addingMember=!1})},null,8,["space_profile","modelValue"])):O("",!0)]),_:1},8,["modelValue","size"])):O("",!0)],64)}const zBe=de(aBe,[["render",BBe]]),VBe={name:"PendingInvitations",components:{Pagination:Dh},data(){return{loading:!1,loadingMore:!1,invitations:[],status:"all",pagination:{page:1,total:0,per_page:10},is_mod:!1}},props:{space_id:{type:Number,default:null}},methods:{getInvitations(){this.loading=!0,this.$get("invitations",{space_id:this.space_id,page:this.pagination.page,per_page:this.pagination.per_page,status:this.status}).then(e=>{this.invitations=e.invitations.data,this.pagination.total=e.invitations.total,this.is_mod=e.is_mod}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},handleResend(e){this.loading=!0,this.$post("invitations/"+e.id+"/resend").then(t=>{this.$notify.success(t.message||this.$t("Invitation resent successfully"))}).catch(t=>{this.$handleError(t)}).finally(()=>{this.loading=!1})},handleDelete(e){this.$confirm(this.$t("Are you sure you want to delete this invitation?"),this.$t("Warning"),{confirmButtonText:this.$t("OK"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(()=>{this.loading=!0,this.$del("invitations/"+e.id).then(t=>{this.getInvitations()}).catch(t=>{this.$handleError(t)}).finally(()=>{this.loading=!1})})}},mounted(){this.getInvitations()}},jBe={class:"fcom_invitations"},HBe={style:{margin:"20px 0"},class:"fcom_spaced_flex"},UBe={class:"fcom_person_name"},WBe={class:"fcom_person_name"};function qBe(e,t,n,o,r,i){const s=Ho,l=jo,a=vce,c=z("UserRouteLink"),u=Ye,d=gce,f=z("Pagination"),p=Mt("loading");return _(),k("div",jBe,[g("div",HBe,[g("h4",null,M(e.$t("Invitations")),1),g("div",null,[y(l,{style:{"min-width":"150px"},onChange:t[0]||(t[0]=h=>{r.pagination.page=1,i.getInvitations()}),modelValue:r.status,"onUpdate:modelValue":t[1]||(t[1]=h=>r.status=h)},{default:x(()=>[(_(),k(Q,null,Te(["all","pending","accepted"],h=>y(s,{key:h,label:e.ucFirst(h),value:h},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),ze((_(),L(d,{data:r.invitations,border:"",style:{width:"100%"}},{default:x(()=>[y(a,{prop:"message",label:e.$t("Invitee"),"min-width":"180"},{default:x(h=>[g("span",UBe,M(h.row.meta.invitee_name)+" <"+M(h.row.message)+"> ",1)]),_:1},8,["label"]),r.is_mod?(_(),L(a,{key:0,prop:"user_id",label:e.$t("Invited By"),width:"180"},{default:x(h=>[g("span",WBe,[y(c,{xprofile:h.row.xprofile},null,8,["xprofile"])])]),_:1},8,["label"])):O("",!0),y(a,{prop:"status",label:e.$t("Status"),width:"120"},{default:x(h=>[te(M(e.ucFirst(h.row.status)),1)]),_:1},8,["label"]),y(a,{label:e.$t("Actions")},{default:x(h=>[h.row.status=="pending"?ze((_(),L(u,{key:0,type:"primary",text:"",onClick:m=>i.handleResend(h.row)},{default:x(()=>[te(M(e.$t("Resend")),1)]),_:2},1032,["onClick"])),[[p,r.loading]]):O("",!0),y(u,{onClick:m=>i.handleDelete(h.row),text:"",type:"danger"},{default:x(()=>[te(M(e.$t("Delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[p,r.loading]]),y(f,{hide_on_single:!1,pagination:r.pagination,onFetch:i.getInvitations},null,8,["pagination","onFetch"])])}const KBe=de(VBe,[["render",qBe]]),GBe={name:"SpaceInviations",components:{AddMemberForm:BL,InviationForm:DL,PendingInvitations:KBe},props:["space_profile"],data(){return{showInvitations:!0,currentTab:"invitations",defaultEmail:""}},methods:{handleCompleted(){this.showInvitations=!1,this.$nextTick(()=>{this.showInvitations=!0})}}},YBe={key:0,class:"member_header"},ZBe={class:"permission_failed"},JBe=["href"],XBe={key:1},QBe=g("h3",null,"Coming soon",-1);function eze(e,t,n,o,r,i){const s=z("pending-invitations"),l=V3,a=z("AddMemberForm"),c=z3;return e.isSpaceModerator(n.space_profile)?(_(),k("div",XBe,[y(c,{modelValue:r.currentTab,"onUpdate:modelValue":t[0]||(t[0]=u=>r.currentTab=u),type:"border-card"},{default:x(()=>[y(l,{name:"invitations",label:e.$t("Invitations")},{default:x(()=>[r.currentTab=="invitations"?(_(),L(s,{key:0,space_id:n.space_profile.id},null,8,["space_id"])):O("",!0)]),_:1},8,["label"]),y(l,{name:"by_user",label:e.$t("New Invite")},{default:x(()=>[r.currentTab=="by_user"?(_(),L(a,{key:0,space_profile:n.space_profile},null,8,["space_profile"])):O("",!0)]),_:1},8,["label"]),y(l,{name:"invitation_links",label:e.$t("Invitation Links")},{default:x(()=>[QBe]),_:1},8,["label"])]),_:1},8,["modelValue"])])):(_(),k("div",YBe,[g("div",ZBe,[g("h3",null,M(e.$t("Permission Denied")),1),g("p",null,M(e.$t("You do not have permission to view all members")),1),g("a",{href:e.$getRouteLink("space/:space_slug/home",{space_slug:n.space_profile.slug}),class:"el-button fcom_primary_button"},M(e.$t("Go to Space Home")),9,JBe)])]))}const tze=de(GBe,[["render",eze]]),nze={name:"GlobIcon"},oze={width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},rze=g("path",{d:"M3.1564 3.30236C2.23368 4.26115 1.66634 5.5644 1.66634 7.00016C1.66634 9.9457 4.05415 12.3335 6.99967 12.3335C7.72021 12.3335 8.40741 12.1906 9.03441 11.9316C9.11107 11.4313 8.94287 10.9512 8.87407 10.7832C8.72101 10.4102 8.21574 9.7723 7.37227 8.88736C7.14714 8.6507 7.16161 8.46916 7.24207 7.9297L7.25134 7.86876C7.30601 7.49923 7.39774 7.28076 8.64114 7.08336C9.27281 6.98323 9.43894 7.2357 9.66921 7.5853C9.69467 7.62403 9.72014 7.66203 9.74621 7.7001C9.96494 8.01996 10.127 8.0931 10.3718 8.20443C10.4815 8.25416 10.6183 8.3169 10.8017 8.4211C11.2364 8.6695 11.2364 8.94996 11.2364 9.56496V9.6347C11.2364 9.89576 11.2109 10.125 11.1707 10.3241C11.8982 9.4125 12.333 8.2571 12.333 7.00016C12.333 4.80076 11.0017 2.9123 9.10094 2.09671C8.73214 2.34558 8.22621 2.69834 8.04967 2.94016C7.95941 3.06375 7.83181 3.6946 7.41681 3.74667C7.30807 3.76032 7.16221 3.75076 7.00767 3.74081C6.59334 3.71388 6.02647 3.67754 5.84501 4.17013C5.72981 4.4823 5.70954 5.3298 6.08227 5.7697C6.14194 5.83996 6.15347 5.96996 6.11294 6.11583C6.05967 6.30736 5.95207 6.4239 5.91854 6.44796C5.85427 6.41103 5.72607 6.26223 5.63926 6.16096C5.43003 5.91783 5.16904 5.61505 4.83165 5.52134C4.70897 5.48738 4.57411 5.45928 4.44333 5.43174C4.07727 5.35501 3.66263 5.26772 3.56629 5.06218C3.49595 4.91163 3.49626 4.7043 3.49653 4.48526C3.49653 4.20763 3.49653 3.89369 3.36053 3.58854C3.30798 3.47044 3.2376 3.37647 3.1564 3.30236ZM6.99967 13.6668C3.31777 13.6668 0.333008 10.682 0.333008 7.00016C0.333008 3.31826 3.31777 0.333496 6.99967 0.333496C10.6815 0.333496 13.6663 3.31826 13.6663 7.00016C13.6663 10.682 10.6815 13.6668 6.99967 13.6668Z",fill:"currentColor"},null,-1),ize=[rze];function sze(e,t,n,o,r,i){return _(),k("svg",oze,ize)}const zL=de(nze,[["render",sze]]),lze={name:"GroupIcon"},aze={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cze=g("path",{d:"M13.8494 12C14.3489 12 14.7462 11.6856 15.103 11.2461C15.8333 10.3463 14.6342 9.62723 14.1769 9.27507C13.712 8.91708 13.1929 8.71428 12.6667 8.66667M12 7.33333C12.9205 7.33333 13.6667 6.58714 13.6667 5.66667C13.6667 4.74619 12.9205 4 12 4",stroke:"currentColor","stroke-linecap":"round"},null,-1),uze=g("path",{d:"M2.15096 12C1.65143 12 1.2541 11.6856 0.897356 11.2461C0.167051 10.3463 1.36611 9.62723 1.82342 9.27507C2.28831 8.91708 2.80738 8.71428 3.33366 8.66667M3.66699 7.33333C2.74652 7.33333 2.00033 6.58714 2.00033 5.66667C2.00033 4.74619 2.74652 4 3.66699 4",stroke:"currentColor","stroke-linecap":"round"},null,-1),dze=g("path",{d:"M5.38953 10.0738C4.70834 10.495 2.92232 11.3551 4.01013 12.4313C4.54151 12.957 5.13334 13.333 5.87741 13.333H10.1232C10.8673 13.333 11.4591 12.957 11.9905 12.4313C13.0783 11.3551 11.2923 10.495 10.6111 10.0738C9.01375 9.08608 6.9869 9.08608 5.38953 10.0738Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),fze=g("path",{d:"M10.3337 4.99984C10.3337 6.2885 9.28899 7.33317 8.00033 7.33317C6.71166 7.33317 5.66699 6.2885 5.66699 4.99984C5.66699 3.71117 6.71166 2.6665 8.00033 2.6665C9.28899 2.6665 10.3337 3.71117 10.3337 4.99984Z",stroke:"currentColor"},null,-1),pze=[cze,uze,dze,fze];function hze(e,t,n,o,r,i){return _(),k("svg",aze,pze)}const W4=de(lze,[["render",hze]]),mze={name:"AllCommunities",components:{User:RJ,GlobIcon:zL,Layout:mr,AppLayout:Vr,CreateSpaceForm:C0,GroupIcon:W4},data(){return{communities:[],loading:!0,joining:!1}},methods:{getCommunities(){this.loading=!0,this.$get("spaces/discover").then(e=>{this.communities=e.spaces,this.loading=!1})},goToSpaceFeeds(e){this.$router.push({name:"space_feeds",params:{space:e}})},getSpaceFeedsRoute(e){return{name:"space_feeds",params:{space:e}}},getExcerpt(e,t=50){if(!e)return"";let n=e.replace(/(<([^>]+)>)/ig,"");return n.length>t&&(n=n.substring(0,t)+"..."),n},join(e){if(e.privacy!="public"||!this.auth.user_id){this.$router.push({name:"space_feeds",params:{space:e.slug}});return}this.joining=!0,this.$post("spaces/"+e.slug+"/join").then(t=>{this.$notify.success(t.message),this.$eventBus.emit("reloadMenu"),this.$router.push({name:"space_feeds",params:{space:e.slug}})}).catch(t=>{this.$handleError(t)}).finally(()=>{this.joining=!1})},fireCreateSpace(e=null){this.$eventBus.emit("createSpaceModal",e)}},mounted(){this.getCommunities(),this.$route.query.create_space=="yes"&&this.fireCreateSpace(),this.changeTitle(this.$t("All Spaces"))}},_ze={key:0,class:"object_menu"},gze={class:"fcom_space_menu_ul"},vze=["href"],bze={class:"fcom_communities"},yze={class:"fcom_box_card_list"},wze={class:"fcom_box_card_avatar"},kze=["src"],xze=["src"],Cze=["alt","src"],Sze={class:"fcom_box_card_info"},$ze={class:"fcom_box_card_name"},Eze={key:0},Tze={class:"fcom_box_card_details"},Mze={class:"details_item"},Aze={key:0,class:"details_item"},Ize={key:0,class:"fcom_box_card_description"},Oze={class:"fcom_box_card_action"},Pze=["disabled","onClick"],Nze=["onClick"];function Lze(e,t,n,o,r,i){const s=Ye,l=z("router-link"),a=mh,c=z("GlobIcon"),u=ge,d=z("Lock"),f=z("GroupIcon"),p=z("layout"),h=z("app-layout"),m=Mt("loading");return _(),L(h,{wrapper_class:"fcom_single_layout fcom_max_layout"},{default:x(()=>[y(p,{content_class:"no_bg_layout",title:e.$t("All Spaces")},{actions:x(()=>[e.hasPermission("community_admin")?(_(),k("div",_ze,[g("ul",gze,[g("li",null,[g("a",{href:e.$getRouteLink("admin/settings/space_groups")},M(e.$t("Space Groups")),9,vze)]),g("li",null,[y(s,{onClick:t[0]||(t[0]=b=>i.fireCreateSpace()),class:"fcom_primary_button"},{default:x(()=>[te(M(e.$t("New Space")),1)]),_:1})])])])):O("",!0)]),default:x(()=>[ze((_(),k("div",bze,[g("div",yze,[(_(!0),k(Q,null,Te(r.communities,b=>(_(),k("div",{role:"region","aria-label":"Space Lists",key:b.id,class:"fcom_each_box_card"},[g("div",wze,[y(l,{"aria-label":"Go to Spapce",to:i.getSpaceFeedsRoute(b.slug)},{default:x(()=>{var v;return[(v=b.settings)!=null&&v.og_image?(_(),k("img",{key:0,src:b.settings.og_image,alt:""},null,8,kze)):b.cover_photo?(_(),k("img",{key:1,src:b.cover_photo,alt:""},null,8,xze)):(_(),k("img",{key:2,alt:e.$t("Placeholder image"),src:e.appVars.assets_url+"images/space-placeholder.jpg"},null,8,Cze))]}),_:2},1032,["to"])]),g("div",Sze,[g("div",$ze,[y(l,{to:i.getSpaceFeedsRoute(b.slug)},{default:x(()=>[te(M(i.getExcerpt(b.title,24))+" ",1),b.space_pivot?(_(),L(a,{key:0,type:"success"},{default:x(()=>[te(M(e.$labelize(b.space_pivot.role))+" ",1),b.space_pivot.status!="active"?(_(),k("span",Eze," ("+M(e.$labelize(b.space_pivot.status))+") ",1)):O("",!0)]),_:2},1024)):O("",!0)]),_:2},1032,["to"])]),g("div",Tze,[g("div",Mze,[b.privacy==="public"?(_(),L(u,{key:0},{default:x(()=>[y(c)]),_:1})):(_(),L(u,{key:1},{default:x(()=>[y(d)]),_:1})),g("span",null,M(e.$labelize(b.privacy)),1)]),b.members_count?(_(),k("div",Aze,[y(u,null,{default:x(()=>[y(f)]),_:1}),g("span",null,M(e.$_n("%s Member","%s Members",e.$formatNumber(b.members_count))),1)])):O("",!0)]),b.description?(_(),k("div",Ize,M(i.getExcerpt(b.description,85)),1)):O("",!0),g("div",Oze,[b.space_pivot?(_(),k("button",{key:1,class:"fcom_card_button",onClick:v=>i.goToSpaceFeeds(b.slug)},M(e.$t("View Space")),9,Nze)):ze((_(),k("button",{key:0,class:"fcom_card_button",disabled:r.joining,onClick:v=>i.join(b)},[te(M(e.$t("Join")),1)],8,Pze)),[[m,r.joining]])])])]))),128))])])),[[m,r.loading]])]),_:1},8,["title"])]),_:1})}const Rze=de(mze,[["render",Lze]]),Fze={name:"UserBadge",props:["badge","is_preview","profile"],computed:{renderingBadge(){var e;if(!this.appVars.user_badges&&!this.is_preview)return null;if(this.profile){let t=this.profile.badge_slug;return t||(t=(e=this.profile.meta)==null?void 0:e.badge_slug),t?this.appVars.user_badges[t]:null}return this.badge}}},Dze=["title"],Bze=["src"],zze={key:1,class:"fcom_emoji"},Vze={key:2,class:"fcom_shape"},jze={key:1};function Hze(e,t,n,o,r,i){const s=ge;return i.renderingBadge?(_(),k("div",{key:0,class:R([{user_icon_only:i.renderingBadge.show_label!="yes"},"user_badge"])},[g("div",{style:Be({backgroundColor:i.renderingBadge.background_color,color:i.renderingBadge.color,borderColor:i.renderingBadge.color}),title:i.renderingBadge.title,class:"user_badge_inner"},[i.renderingBadge.config?(_(),k(Q,{key:0},[i.renderingBadge.config.logo?(_(),k("img",{key:0,alt:"",src:i.renderingBadge.config.logo},null,8,Bze)):i.renderingBadge.config.emoji?(_(),k("span",zze,M(i.renderingBadge.config.emoji),1)):i.renderingBadge.config.shape_svg?(_(),k("span",Vze,[y(s,{innerHTML:i.renderingBadge.config.shape_svg},null,8,["innerHTML"])])):O("",!0)],64)):O("",!0),i.renderingBadge.show_label=="yes"?(_(),k("span",jze,M(i.renderingBadge.title),1)):O("",!0)],12,Dze)],2)):O("",!0)}const VL=de(Fze,[["render",Hze]]),Uze={name:"ProfileHeader",emits:["refetch"],components:{UserBadge:VL,ImageUploader:vc,BookmarkIcon:EL},props:{profile:{required:!1},username:{required:!1},isOwn:{required:!1}},data(){return{updating:!1,fcomChatVars:window.fcomChatVars}},computed:{user_profile(){return this.profile?this.profile:{ID:0,title:".......",slug:"..",cover_photo:""}},isOwnProfile(){return this.auth&&this.user_profile.username==this.auth.username},level(){if(!this.has_leaderboard)return"";const e=_l(this.user_profile.total_points);return e?e.level:0},getCoverPhotoButtonText(){return this.user_profile.cover_photo?this.$t("Change Cover"):this.$t("Upload Cover")}},methods:{handleCoverPhotoUpload(e){this.profile.cover_photo=e,this.updateProfile({cover_photo:e})},handlePhotoUpload(e){this.profile.avatar=e,this.updateProfile({avatar:e})},removeCoverPhoto(){this.profile.cover_photo="",this.updateProfile({cover_photo:""})},updateProfile(e){this.user_profile.username&&(this.updating=!0,this.$put("profile/"+this.user_profile.username,{data:e}).then(t=>{this.$notify.success(t.message),this.$emit("refetch")}).catch(t=>{this.$handleError(t)}).finally(()=>{this.updating=!1}))}}},Wze={ref:"fcom_user_profile",class:"object_header user_header"},qze={key:0,class:"object_media_uploader"},Kze={class:"object_info"},Gze={class:"object_avatar"},Yze=["alt","src"],Zze={key:0,class:"object_avatar_uploader"},Jze={key:1,style:{position:"absolute",right:"calc(12.5% - 9px)",bottom:"calc(36.5% - 5px)","line-height":"0",background:"rgb(67, 87, 173)",width:"20px",height:"20px","font-size":"12px",display:"flex","align-items":"center","justify-content":"center","border-radius":"50%",color:"#fff",border:"1px solid white"},role:"region","aria-label":"User Level",class:"fcom_user_level_mark"},Xze={class:"object_name"},Qze={class:"object_meta"},eVe={class:"object_menu"},tVe={key:0},nVe={class:"fcom_profile_menu_actions"},oVe=["href"],rVe=g("svg",{viewBox:"0 0 24 24","aria-hidden":"true"},[g("g",null,[g("path",{d:"M1.998 5.5c0-1.381 1.119-2.5 2.5-2.5h15c1.381 0 2.5 1.119 2.5 2.5v13c0 1.381-1.119 2.5-2.5 2.5h-15c-1.381 0-2.5-1.119-2.5-2.5v-13zm2.5-.5c-.276 0-.5.224-.5.5v2.764l8 3.638 8-3.636V5.5c0-.276-.224-.5-.5-.5h-15zm15.5 5.463l-8 3.636-8-3.638V18.5c0 .276.224.5.5.5h15c.276 0 .5-.224.5-.5v-8.037z"})])],-1);function iVe(e,t,n,o,r,i){const s=Ye,l=z("image-uploader"),a=z("UploadFilled"),c=ge,u=z("verified-sign"),d=z("UserBadge"),f=z("router-link"),p=Mt("loading");return ze((_(),k("div",Wze,[g("div",{style:Be({backgroundImage:`url('${i.user_profile.cover_photo||""}')`}),class:R(["object_cover",{no_cover:!i.user_profile.cover_photo}])},[i.isOwnProfile?(_(),k("div",qze,[y(l,{additionalData:{resize:!0,max_width:1500},onUploaded:i.handleCoverPhotoUpload},{default:x(()=>[y(s,{title:e.$t("Recommended Size: 1200 x 375px"),size:"small",plain:"",type:"primary"},{default:x(()=>[te(M(i.getCoverPhotoButtonText),1)]),_:1},8,["title"])]),_:1},8,["onUploaded"]),i.user_profile.cover_photo?(_(),L(s,{key:0,style:{"margin-top":"10px"},size:"small",plain:"",type:"danger",onClick:qe(i.removeCoverPhoto,["prevent"])},{default:x(()=>[te(M(e.$t("Remove")),1)]),_:1},8,["onClick"])):O("",!0)])):O("",!0)],6),g("div",Kze,[g("div",Gze,[g("img",{alt:e.$t("Placeholder Photo"),src:i.user_profile.avatar||e.appVars.assets_url+"/images/placeholder.png"},null,8,Yze),i.isOwnProfile?(_(),k("div",Zze,[y(l,{additionalData:{resize:!0,max_width:200},button_text:e.$t("Change"),onUploaded:i.handlePhotoUpload},{trigger:x(()=>[y(c,{class:"object_avatar_upload"},{default:x(()=>[y(a)]),_:1})]),_:1},8,["button_text","onUploaded"])])):O("",!0),i.level?(_(),k("div",Jze,[g("span",null,M(i.level),1)])):O("",!0)]),g("div",Xze,[g("h3",null,[te(M(i.user_profile.display_name)+" ",1),i.user_profile.is_verified?(_(),L(u,{key:0})):O("",!0),y(d,{profile:i.user_profile},null,8,["profile"])]),g("p",Qze,"@"+M(i.user_profile.username),1)])]),g("div",eVe,[g("ul",null,[g("li",null,[y(f,{to:{name:"user_profile",params:{username:i.user_profile.username}}},{default:x(()=>[te(M(e.$t("About")),1)]),_:1},8,["to"])]),g("li",null,[y(f,{to:{name:"user_profile_feeds",params:{username:i.user_profile.username}}},{default:x(()=>[te(M(e.$t("Posts")),1)]),_:1},8,["to"])]),i.user_profile&&i.user_profile.canViewUserSpaces?(_(),k("li",tVe,[y(f,{to:{name:"user_spaces",params:{username:i.user_profile.username}}},{default:x(()=>[te(M(e.$t("Spaces")),1)]),_:1},8,["to"])])):O("",!0),g("li",null,[y(f,{to:{name:"user_comments",params:{username:i.user_profile.username}}},{default:x(()=>[te(M(e.$t("Comments")),1)]),_:1},8,["to"])])]),g("div",nVe,[r.fcomChatVars&&n.profile&&e.auth.user_id&&n.profile.user_id&&n.profile.user_id!=r.fcomChatVars.user.ID?(_(),k("a",{key:0,class:"fcom_chat_button fcom_route el-button fcom_primary_button",href:e.appVars.urls.portal_base+"chat?user_id="+n.profile.user_id},[y(c,null,{default:x(()=>[rVe]),_:1}),g("span",null,M(e.$t("Message")),1)],8,oVe)):O("",!0)])])])),[[p,r.updating]])}const sVe=de(Uze,[["render",iVe]]),lVe={name:"ProfileAbout",components:{SocialLinks:N4},props:["profile","isOwn"]},aVe={class:"app_side_widget"},cVe={class:"widget_header"},uVe={key:0,class:"widget_actions"},dVe={key:0,class:"widget_body"},fVe=["innerHTML"],pVe={key:1,style:{"text-align":"center"}},hVe=g("hr",null,null,-1),mVe=g("hr",null,null,-1),_Ve={class:"meta_line"},gVe={key:2,class:"meta_line"};function vVe(e,t,n,o,r,i){const s=z("EditPen"),l=ge,a=Ye,c=z("SocialLinks"),u=Wt;return _(),k("div",aVe,[g("div",cVe,[g("h3",null,M(e.$t("About")),1),n.isOwn?(_(),k("div",uVe,[y(a,{"aria-label":"Edit Your Profile",onClick:t[0]||(t[0]=d=>e.$router.push({name:"update_profile",params:{username:n.profile.username}})),text:""},{default:x(()=>[y(l,null,{default:x(()=>[y(s)]),_:1})]),_:1})])):O("",!0)]),n.profile?(_(),k("div",dVe,[n.profile.short_description_rendered?(_(),k("div",{key:0,class:"space_description feed_md_content",innerHTML:n.profile.short_description_rendered},null,8,fVe)):n.isOwn?(_(),k("div",pVe,[hVe,y(a,{"aria-label":"Add your profile description",onClick:t[1]||(t[1]=d=>e.$router.push({name:"update_profile",params:{username:n.profile.username}})),type:"info"},{default:x(()=>[y(l,null,{default:x(()=>[y(s)]),_:1}),g("span",null,M(e.$t("Add your profile description")),1)]),_:1})])):O("",!0),mVe,g("div",_Ve,M(e.$t("Joined: %s",e.humanDateDiff(n.profile.created_at))),1),n.profile.last_activity?(_(),k("div",gVe,M(e.$t("Last seen: %s",e.humanDateDiff(n.profile.last_activity))),1)):O("",!0),y(c,{xprofile:n.profile,isOwn:n.isOwn},null,8,["xprofile","isOwn"])])):(_(),L(u,{key:1,animated:!0}))])}const jL=de(lVe,[["render",vVe]]),bVe={name:"FeedProfile",props:["username"],components:{SpaceMenu:LL,Layout:mr,AppLayout:Vr,UserHeader:sVe,ProfileAbout:jL,RecentActivities:S0},data(){return{profile:null,loading:!0}},computed:{isOwn(){return this.profile&&this.profile.user_id==this.auth.user_id}},watch:{username(){this.profile=null,this.getProfile()}},methods:{getProfile(){this.loading=!0,this.$get("profile/"+this.username).then(e=>{this.profile=e.profile,this.loading=!1,this.changeTitle(e.profile.display_name),e.profile.user_id==this.auth.user_id&&(this.auth.compilation_score=e.profile.compilation_score)}).catch(e=>{this.$handleError(e)}).finally(()=>{this.saving=!1})},approveUser(){this.loading=!0,this.$patch("members/"+this.profile.user_id,{status:"active"}).then(e=>{this.$notify.success(e.message),this.profile.status="active"}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})}},mounted(){this.getProfile()}},yVe={key:0},wVe={key:1},kVe=g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[g("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),g("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})],-1),xVe={class:"edit_profile"},CVe={class:"fcom_profile_box"},SVe={key:0,class:"profile_holder"},$Ve={class:"fcom_main_side_wrap"},EVe={class:"widget_recent_activities"};function TVe(e,t,n,o,r,i){const s=z("router-link"),l=M3,a=T3,c=Ye,u=ge,d=z("EditPen"),f=z("user-header"),p=z("router-view"),h=Os,m=z("ProfileAbout"),b=z("RecentActivities"),v=vh,E=hd,w=z("layout"),S=z("app-layout");return _(),L(S,{wrapper_class:"fcom_single_layout fcom_member_profile fcom_max_layout"},{default:x(()=>[y(w,{wrapper_class:"no_bg_layout",title:"...."},{title:x(()=>[y(a,null,{default:x(()=>[y(l,null,{default:x(()=>[y(s,{to:{name:"all_members"}},{default:x(()=>[te(M(e.$t("Members")),1)]),_:1})]),_:1}),r.profile?(_(),L(l,{key:0},{default:x(()=>[i.isOwn?(_(),k("span",yVe,M(e.$t("My Profile")),1)):(_(),k("span",wVe,M(r.profile.display_name),1))]),_:1})):O("",!0)]),_:1})]),actions:x(()=>[r.profile&&e.hasPermission("super_admin")&&r.profile.status!="active"?(_(),k(Q,{key:0},[g("span",null,M(e.$labelize(r.profile.status)),1),y(c,{type:"success",onClick:t[0]||(t[0]=T=>this.$confirm(e.$t("Are you sure you want to approve this user?"),e.$t("Warning"),{type:"warning"}).then(()=>{i.approveUser()}))},{default:x(()=>[te(M(e.$t("Approve Account")),1)]),_:1})],64)):O("",!0),r.profile&&(i.isOwn||this.hasPermission("super_admin"))?(_(),k(Q,{key:1},[y(s,{to:{name:"user_notification_settings",params:{username:r.profile.username}},class:"el-button el-button--text fcom_secondary_button"},{default:x(()=>[y(u,null,{default:x(()=>[kVe]),_:1}),g("span",null,M(e.$t("Notification Settings")),1)]),_:1},8,["to"]),e.$route.name!=="update_profile"?(_(),L(c,{key:0,onClick:t[1]||(t[1]=T=>e.$router.push({name:"update_profile",params:{username:r.profile.username}})),class:"fcom_primary_button edit_profile_button"},{default:x(()=>[y(u,null,{default:x(()=>[y(d)]),_:1}),g("span",xVe,M(e.$t("Edit Profile")),1)]),_:1})):O("",!0)],64)):O("",!0)]),default:x(()=>[y(f,{username:n.username,onRefetch:i.getProfile,isOwn:i.isOwn,profile:r.profile},null,8,["username","onRefetch","isOwn","profile"]),y(E,{class:"fcom_resp_container fcom_space_container fcom_main_container"},{default:x(()=>[y(h,{class:"fcom_main"},{default:x(()=>[g("div",CVe,[r.profile?(_(),k("div",SVe,[y(p,{isOwn:i.isOwn,username:n.username,onRefetch:i.getProfile,profile:r.profile},null,8,["isOwn","username","onRefetch","profile"])])):O("",!0)])]),_:1}),e.$route.meta.disable_sidebar?O("",!0):(_(),L(v,{key:0,class:"fcom_resp_side",width:"306px"},{default:x(()=>[g("div",$Ve,[g("div",EVe,[e.$route.name!=="user_profile"?(_(),L(m,{key:0,isOwn:i.isOwn,profile:r.profile},null,8,["isOwn","profile"])):r.profile?(_(),L(b,{key:1,widget_title:e.$t("Recent Activities"),context:{user_id:r.profile.user_id}},null,8,["widget_title","context"])):O("",!0)])])]),_:1}))]),_:1})]),_:1})]),_:1})}const MVe=de(bVe,[["render",TVe]]),AVe={name:"ProfileFeeds",components:{AllFeeds:Fh},props:["profile"]};function IVe(e,t,n,o,r,i){const s=z("all-feeds");return _(),L(s,{feed_name:"profile_feed",require_space_selection:e.appVars.features.disable_global_posts,user_id:n.profile.user_id,hide_create_form:n.profile.user_id!=e.auth.user_id},null,8,["require_space_selection","user_id","hide_create_form"])}const OVe=de(AVe,[["render",IVe]]),PVe={name:"UserSpaces",props:["profile"],components:{Calendar:fZ,Baseball:sZ,GroupIcon:W4,GlobIcon:zL},data(){return{communities:[],loading:!1}},methods:{getBtnLevel(e){return e=="course"?this.$t("View Course"):this.$t("View Space")},goToSpaceFeeds(e){this.$router.push({name:"space_feeds",params:{space:e}})},getExcerpt(e,t){return e.length>t?e.substring(0,t)+"...":e},removeMembership(e){this.$confirm(this.$t("Are you sure you want to remove this space?"),this.$t("Remove Space")).then(()=>{this.$post("spaces/"+e+"/members/remove",{user_id:this.profile.user_id}).then(()=>{this.fetch()}).catch(t=>{this.$handleError(t)})})},fetch(){this.loading=!0,this.$get("profile/"+this.profile.username+"/spaces").then(e=>{this.communities=e.spaces}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})}},mounted(){this.profile.canViewUserSpaces&&this.fetch()}},NVe={class:"user_spaces"},LVe={class:"fcom_box_card_list"},RVe=["onClick"],FVe=["src"],DVe=["src"],BVe={key:2,class:"fcom_no_image"},zVe={class:"fcom_box_card_info"},VVe={class:"fcom_box_card_name"},jVe={class:"fcom_box_card_details"},HVe={class:"details_item"},UVe={class:"details_item"},WVe={class:"fcom_box_card_action"},qVe=["onClick"],KVe={key:0,class:"loading"},GVe={key:1},YVe={class:"no_members"},ZVe={key:2,class:"no_members"};function JVe(e,t,n,o,r,i){const s=z("router-link"),l=z("MoreFilled"),a=ge,c=Ye,u=pA,d=hA,f=fA,p=z("GlobIcon"),h=z("Lock"),m=z("GroupIcon"),b=Wt;return _(),k("div",NVe,[g("div",LVe,[(_(!0),k(Q,null,Te(r.communities,v=>{var E;return _(),k("div",{key:v.id,class:"fcom_each_box_card"},[g("div",{class:"fcom_box_card_avatar",onClick:w=>e.$router.push({name:"space_feeds",params:{space:v.slug}})},[(E=v.settings)!=null&&E.og_image?(_(),k("img",{key:0,src:v.settings.og_image,alt:""},null,8,FVe)):v.cover_photo?(_(),k("img",{key:1,src:v.cover_photo,alt:""},null,8,DVe)):(_(),k("div",BVe))],8,RVe),g("div",zVe,[g("div",VVe,[y(s,{class:"user_route",to:{name:"space_feeds",params:{space:v.slug}}},{default:x(()=>[te(M(i.getExcerpt(v.title,30)),1)]),_:2},1032,["to"]),e.isAdmin()?(_(),L(f,{key:0,trigger:"click"},{dropdown:x(()=>[y(d,null,{default:x(()=>[y(u,{onClick:w=>i.removeMembership(v.slug)},{default:x(()=>[te(M(e.$t("Remove from space")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),default:x(()=>[y(c,{"aria-label":e.$t("View actions"),class:"fcom_dot_menu",size:"small",text:""},{default:x(()=>[y(a,null,{default:x(()=>[y(l)]),_:1})]),_:1},8,["aria-label"])]),_:2},1024)):O("",!0)]),g("div",jVe,[g("div",HVe,[v.privacy==="public"?(_(),L(a,{key:0},{default:x(()=>[y(p)]),_:1})):(_(),L(a,{key:1},{default:x(()=>[y(h)]),_:1})),g("span",null,M(v.privacy==="public"?e.$t("Public"):e.$t("Private")),1)]),g("div",UVe,[y(a,null,{default:x(()=>[y(m)]),_:1}),g("span",null,M(e.$_n("%s Member","%s Members",e.$formatNumber(v.members_count))),1)])]),g("div",WVe,[g("button",{class:"fcom_card_button",onClick:w=>i.goToSpaceFeeds(v.slug)},M(i.getBtnLevel(v.type)),9,qVe)])])])}),128))]),r.loading?(_(),k("div",KVe,[y(b,{class:"white_loaded",rows:3,animated:!0}),y(b,{style:{"margin-top":"20px"},class:"white_loaded",rows:3,animated:!0})])):n.profile.canViewUserSpaces?!r.loading&&!r.communities.length?(_(),k("div",ZVe,M(e.$t("No Spaces found.")),1)):O("",!0):(_(),k("div",GVe,[g("div",YVe,M(e.$t("Sorry, you do not have permission to view this page")),1)]))])}const XVe=de(PVe,[["render",JVe]]),QVe={name:"UserProfileUpdate",props:["profile","username"],components:{SlugInput:x0,MarkdownEditor:C4},data(){return{updating:!1,loading:!1,notification_settings:{email_on_comment:!1},profileData:{username:this.profile.username,display_name:this.profile.display_name,first_name:this.profile.first_name,last_name:this.profile.last_name,email:this.profile.email,website:this.profile.website,short_description:this.profile.short_description,user_id:this.profile.user_id,is_verified:this.profile.is_verified,social_links:this.profile.social_links||{},badge_slug:this.profile.badge_slug,status:this.profile.status},fcom_is_dirty:!1}},methods:{updateProfile(){this.updating=!0,this.$post("profile/"+this.username,{data:this.profileData}).then(e=>{if(this.fcom_is_dirty=!1,this.$notify.success(e.message),e.redirect_url){window.location.href=e.redirect_url;return}e.profile.user_id==this.auth.user_id&&(this.auth.compilation_score=e.profile.compilation_score),this.$router.push({name:"update_profile",params:{username:e.profile.username}}),this.$emit("refetch")}).catch(e=>{console.log(e),this.$handleError(e)}).finally(()=>{this.updating=!1})}},mounted(){this.$nextTick(()=>{const e=document.querySelector(".object_info");e&&window.scrollTo({top:e.offsetTop-100,behavior:"smooth"})})}},eje={key:0,class:"fcom_sub_group"},tje={class:"fcom_sub_group_header"},nje={class:"fcom_sub_group_content"},oje={key:1,style:{"margin-bottom":"20px"}},rje={key:0,class:"fcom_sub_group"},ije={class:"fcom_sub_group_header"},sje={key:1,class:"help_msg"},lje={class:"fcom_fixed_bottom_overlay"};function aje(e,t,n,o,r,i){const s=An,l=qi,a=gh,c=_h,u=z("markdown-editor"),d=ge,f=Dr,p=z("UserBadge"),h=Ho,m=jo,b=z1,v=Is,E=z("slug-input"),w=Ye,S=Wi,T=Mt("loading");return _(),k("div",{class:R([{fcom_is_dirty:r.fcom_is_dirty},"fcom_update_profile"])},[y(S,{onSubmit:t[9]||(t[9]=qe($=>e.doNothing(),["prevent"])),onInput:t[10]||(t[10]=$=>r.fcom_is_dirty=!0),"label-position":"top",modelValue:r.profileData,"onUpdate:modelValue":t[11]||(t[11]=$=>r.profileData=$)},{default:x(()=>[y(c,{gutter:30},{default:x(()=>[y(a,{xs:24,md:12},{default:x(()=>[y(l,{label:e.$t("First Name")},{default:x(()=>[y(s,{modelValue:r.profileData.first_name,"onUpdate:modelValue":t[0]||(t[0]=$=>r.profileData.first_name=$)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),y(a,{xs:24,md:12},{default:x(()=>[y(l,{label:e.$t("Last Name")},{default:x(()=>[y(s,{modelValue:r.profileData.last_name,"onUpdate:modelValue":t[1]||(t[1]=$=>r.profileData.last_name=$)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),y(c,{gutter:30},{default:x(()=>[y(a,{xs:24,md:12},{default:x(()=>[y(l,{label:e.$t("Email")},{default:x(()=>[y(s,{disabled:"",readonly:"",modelValue:r.profileData.email,"onUpdate:modelValue":t[2]||(t[2]=$=>r.profileData.email=$)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),y(a,{xs:24,md:12},{default:x(()=>[y(l,{label:e.$t("Website URL")},{default:x(()=>[y(s,{type:"url",modelValue:r.profileData.website,"onUpdate:modelValue":t[3]||(t[3]=$=>r.profileData.website=$)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),y(l,{class:"fcom_editor_input_wrap",label:e.$t("Short Bio")},{default:x(()=>[y(u,{disable_mention:!0,disable_media:!0,modelValue:r.profileData.short_description,"onUpdate:modelValue":t[4]||(t[4]=$=>r.profileData.short_description=$)},null,8,["modelValue"])]),_:1},8,["label"]),e.appVars.socialLinkProviders?(_(),k("div",eje,[g("div",tje,[g("h5",null,M(e.$t("Social Links")),1),g("p",null,M(e.$t("Add your social media profile link.")),1)]),g("div",nje,[(_(!0),k(Q,null,Te(e.appVars.socialLinkProviders,($,A)=>(_(),L(l,{key:A,label:$.title},{default:x(()=>[y(s,{placeholder:$.placeholder,modelValue:r.profileData.social_links[A],"onUpdate:modelValue":P=>r.profileData.social_links[A]=P},{prepend:x(()=>[y(d,{style:{"margin-right":"10px"},innerHTML:$.icon_svg},null,8,["innerHTML"]),g("span",null,M($.domain),1)]),_:2},1032,["placeholder","modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]))),128))])])):O("",!0),n.profile.can_change_username?(_(),k("div",oje,[this.hasPermission("super_admin")?(_(),k("div",rje,[g("div",ije,[g("h5",null,M(e.$t("Admin Actions")),1),g("p",null,M(e.$t("Admin tools for account verification and status management.")),1)]),y(l,{label:e.$t("Account Verification"),class:"checkbox_label"},{default:x(()=>[y(f,{"true-value":1,"false-value":0,modelValue:r.profileData.is_verified,"onUpdate:modelValue":t[5]||(t[5]=$=>r.profileData.is_verified=$)},{default:x(()=>[te(M(e.$t("Mark this account as verified")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.appVars.user_badges?(_(),L(l,{key:0,label:e.$t("Badge")},{default:x(()=>[y(m,{clearable:"",modelValue:r.profileData.badge_slug,"onUpdate:modelValue":t[6]||(t[6]=$=>r.profileData.badge_slug=$),placeholder:e.$t("User Profile Badge")},{default:x(()=>[(_(!0),k(Q,null,Te(e.appVars.user_badges,$=>(_(),L(h,{key:$.slug,label:$.title,value:$.slug},{default:x(()=>[y(p,{badge:$,is_preview:!0},null,8,["badge"])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):O("",!0),y(l,{label:e.$t("Access Status")},{default:x(()=>[y(v,{modelValue:r.profileData.status,"onUpdate:modelValue":t[7]||(t[7]=$=>r.profileData.status=$),class:"fcom_radio_group"},{default:x(()=>[y(b,{value:"active"},{default:x(()=>[te(M(e.$t("Active")),1)]),_:1}),y(b,{value:"pending"},{default:x(()=>[te(M(e.$t("Pending")),1)]),_:1}),y(b,{value:"blocked"},{default:x(()=>[te(M(e.$t("Blocked")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),r.profileData.status!="active"?(_(),k("div",sje,[g("p",null,M(e.$t("The user cannot access the portal.")),1)])):O("",!0)])):O("",!0),y(l,{label:e.$t("Community Account Username")},{default:x(()=>[y(E,{is_inital_inactive:!0,modelValue:r.profileData.username,"onUpdate:modelValue":t[8]||(t[8]=$=>r.profileData.username=$),prefix:"@","pop-message":e.$t("Are you sure you want to change username?"),edit_notice:e.$t("Please choose a username matching with your first/last name or full name"),placeholder:e.$t("Username")},null,8,["modelValue","pop-message","edit_notice","placeholder"])]),_:1},8,["label"])])):O("",!0),y(l,null,{default:x(()=>[g("div",lje,[ze((_(),L(w,{class:"fcom_primary_button",onClick:i.updateProfile,disabled:r.updating},{default:x(()=>[te(M(e.$t("Save Changes")),1)]),_:1},8,["onClick","disabled"])),[[T,r.updating]])])]),_:1})]),_:1},8,["modelValue"])],2)}const cje=de(QVe,[["render",aje]]),uje={name:"CalendarIcon"},dje={width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fje=ad('<path d="M11 1.3335V2.66683M3 1.3335V2.66683" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6.99766 8.66699H7.00364M6.99766 11.3337H7.00364M9.66134 8.66699H9.66732M4.33398 8.66699H4.33997M4.33398 11.3337H4.33997" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.33398 5.3335H12.6673" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M0.666992 8.16216C0.666992 5.25729 0.666992 3.80486 1.50174 2.90243C2.33648 2 3.67999 2 6.36699 2H7.63366C10.3207 2 11.6642 2 12.4989 2.90243C13.3337 3.80486 13.3337 5.25729 13.3337 8.16216V8.5045C13.3337 11.4094 13.3337 12.8618 12.4989 13.7642C11.6642 14.6667 10.3207 14.6667 7.63366 14.6667H6.36699C3.67999 14.6667 2.33648 14.6667 1.50174 13.7642C0.666992 12.8618 0.666992 11.4094 0.666992 8.5045V8.16216Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1 5.3335H13" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>',5),pje=[fje];function hje(e,t,n,o,r,i){return _(),k("svg",dje,pje)}const mje=de(uje,[["render",hje]]),_je={name:"UserAbout",props:["profile","isOwn"],components:{Timer:yT,SocialLinks:N4,CalendarIcon:mje},computed:{hasSocialLinks(){return this.socialLinks.length>0},socialLinks(){var o,r;let e=(o=this.profile)==null?void 0:o.social_links;if(e||(e=(r=this.profile.meta)==null?void 0:r.social_links),!e||Object.keys(e).length===0)return[];const t=[];this.profile.website&&t.push({title:this.$t("Website"),icon:'<svg viewBox="0 0 40 20" fill="currentColor"><path d="M3.8 10C3.8 6.58 6.58 3.8 10 3.8H18V0H10C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20H18V16.2H10C6.58 16.2 3.8 13.42 3.8 10ZM12 12H28V8H12V12ZM30 0H22V3.8H30C33.42 3.8 36.2 6.58 36.2 10C36.2 13.42 33.42 16.2 30 16.2H22V20H30C35.52 20 40 15.52 40 10C40 4.48 35.52 0 30 0Z"></path></svg>',text:this.profile.website,url:this.profile.website});const n=this.appVars.socialLinkProviders;return Object.entries(n).forEach(([i,s])=>{e[i]&&t.push({title:s.title,icon:s.icon_svg,text:e[i],url:s.domain+e[i]})}),t}},methods:{goToUpdateProfile(){this.$router.push({name:"update_profile",params:{username:this.profile.username}})}}},gje={class:"about_wrap"},vje={class:"about_header"},bje={key:0,class:"about_body"},yje=["innerHTML"],wje={key:1},kje={class:"about_items"},xje={class:"about_item"},Cje={key:0,class:"about_item"},Sje={key:2,class:"about_items"},$je={key:0,class:"items_title"},Eje=["href","title"];function Tje(e,t,n,o,r,i){const s=z("EditPen"),l=ge,a=Ye,c=z("CalendarIcon"),u=z("Timer"),d=Wt;return _(),k("div",gje,[g("div",vje,[g("h3",null,M(e.$t("About")),1),n.isOwn?(_(),L(a,{key:0,"aria-label":"Edit your profile description",onClick:i.goToUpdateProfile,text:""},{default:x(()=>[y(l,null,{default:x(()=>[y(s)]),_:1})]),_:1},8,["onClick"])):O("",!0)]),n.profile?(_(),k("div",bje,[n.profile.short_description_rendered?(_(),k("div",{key:0,class:"about_description feed_texts feed_md_content",innerHTML:n.profile.short_description_rendered},null,8,yje)):n.isOwn?(_(),k("div",wje,[y(a,{class:"fcom_plain_button",onClick:t[0]||(t[0]=f=>e.$router.push({name:"update_profile",params:{username:n.profile.username}}))},{default:x(()=>[g("span",null,M("+ "+e.$t("Add your profile description")),1)]),_:1})])):O("",!0),g("div",kje,[g("div",xje,[y(l,null,{default:x(()=>[y(c)]),_:1}),te(" "+M(e.$t("Joined %s",e.humanDateDiff(n.profile.created_at))),1)]),n.profile.last_activity?(_(),k("div",Cje,[y(l,null,{default:x(()=>[y(u)]),_:1}),te(" "+M(e.$t("Last seen %s",e.humanDateDiff(n.profile.last_activity))),1)])):O("",!0)]),i.hasSocialLinks||n.isOwn?(_(),k("div",Sje,[i.hasSocialLinks?(_(),k("div",$je,M(e.$t("Social Links")),1)):O("",!0),(_(!0),k(Q,null,Te(i.socialLinks,f=>(_(),k("a",{class:"about_item",target:"_blank",href:f.url,key:f.title,title:f.title},[y(l,{innerHTML:f.icon},null,8,["innerHTML"]),te(" "+M(f.text),1)],8,Eje))),128)),n.isOwn&&!i.hasSocialLinks?(_(),L(a,{key:1,class:"fcom_plain_button",onClick:i.goToUpdateProfile},{default:x(()=>[g("span",null,M("+ "+e.$t("Add social links")),1)]),_:1},8,["onClick"])):O("",!0)])):O("",!0)])):(_(),L(d,{key:1,animated:!0}))])}const Mje=de(_je,[["render",Tje]]),Aje={name:"UserComments",props:["profile","username","isOwn"],components:{Pagination:Dh,Check:t3},data(){return{comments:[],loading:!0,pagination:{page:1,per_page:10,total:0},working:!1,replyingComemnt:null,isReplying:!1}},methods:{fetchComments(){this.loading=!0,this.$get("profile/"+this.username+"/comments",{page:this.pagination.page,per_page:this.pagination.per_page}).then(e=>{this.comments=e.comments.data,this.pagination.total=e.comments.total,window.scrollTo(0,0)}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},deleteComment(e,t){this.$confirm(this.$t("Are you sure you want to delete this comment and associated data?"),"Warning",{confirmButtonText:this.$t("Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(()=>{this.working=!0,this.$del("feeds/"+e.post_id+"/comments/"+e.id).then(n=>{this.comments.splice(t,1),this.$notify.success(n.message)}).catch(n=>{this.$handleError(n)}).finally(()=>{this.working=!1})})},initCommentReply(e){this.replyingComemnt=e,this.$nextTick(()=>{this.isReplying=!0})},limitCharacters(e,t){return e.slice(0,t)+(e.length>t?"...":"")},getPostRoute(e){var n;let t=(n=e.post)==null?void 0:n.type;return!t||!e.post?{name:"all_feeds"}:t=="text"||t=="article"?{name:"single_feed",params:{feed_slug:e.post.slug},query:{comment_id:e.id}}:t=="course_lesson"&&e.post.space?{name:"view_lesson",params:{course_slug:e.post.space.slug,lesson_slug:e.post.slug},query:{comment_id:e.id}}:{name:"all_feeds",query:{comment_id:e.id,post_id:e.post.id}}},getPostExcerpt(e){let t=e.type;t=="text"&&(t="");let n="";return e.title?n=e.title:n=this.getExcerpt(e.message,50),n+(t?" ("+t+")":"")}},mounted(){this.fetchComments()}},Ije={key:0,class:"white_loaded"},Oje={class:"course_comments feed_comments user_comments"},Pje=g("span",{class:"comment_icon"},null,-1),Nje={class:"comment_text_head"},Lje={class:"comment_text_head_time"},Rje={class:"comment_action"},Fje={class:"comment_text_head_post"},Dje={class:"comment_text"},Bje=["innerHTML"],zje={key:0};function Vje(e,t,n,o,r,i){const s=Wt,l=z("Delete"),a=ge,c=Ye,u=z("router-link"),d=z("pagination");return r.loading?(_(),k("div",Ije,[y(s,{row:5})])):(_(),k(Q,{key:1},[g("div",Oje,[(_(!0),k(Q,null,Te(r.comments,(f,p)=>(_(),k("div",{key:f.id,class:"fcom_course_comment each_comment"},[Pje,g("div",Nje,[g("div",Lje,M(e.humanDateDiff(f.created_at)),1),g("div",Rje,[n.isOwn?(_(),L(c,{key:0,class:"fcom_plain_button",onClick:h=>i.deleteComment(f,p)},{default:x(()=>[y(a,null,{default:x(()=>[y(l)]),_:1})]),_:2},1032,["onClick"])):O("",!0)])]),g("div",Fje,[y(u,{class:"post_link",to:i.getPostRoute(f)},{default:x(()=>[te(M(i.getPostExcerpt(f.post)),1)]),_:2},1032,["to"])]),g("div",Dje,[g("div",{innerHTML:f.message_rendered,class:"comment_text_body feed_md_content"},null,8,Bje)])]))),128)),r.pagination.total?O("",!0):(_(),k("div",zje,[g("h5",null,M(e.$t("%s did not add any comment to any posts yet",n.profile.display_name)),1)]))]),y(d,{pagination:r.pagination,onFetch:i.fetchComments},null,8,["pagination","onFetch"])],64))}const jje=de(Aje,[["render",Vje]]),Hje={name:"NotificationPref",components:{Notification:cJ},props:["username"],data(){return{pref:{},spaceGroups:[],is_custom:!1,loading:!1,error:"",saving:!1,digestEmailDay:"",initialState:null}},computed:{fcom_is_dirty(){return this.initialState?JSON.stringify(this.pref)+JSON.stringify(this.spaceGroups)!=this.initialState:!1}},methods:{getPrefs(){this.loading=!0,this.$get(`profile/${this.username}/notificatin-preferance`).then(e=>{this.pref=e.user_globals,this.spaceGroups=e.spaceGroups,this.digestEmailDay=e.digestEmailDay,this.initialState=JSON.stringify(this.pref)+JSON.stringify(this.spaceGroups)}).catch(e=>{this.error=e==null?void 0:e.message,this.$handleError(e)}).finally(()=>{this.loading=!1})},saveSettings(){this.saving=!0;let e={};this.spaceGroups.forEach(t=>{t.spaces.forEach(n=>{e[n.id]=n.pref})}),this.$post(`profile/${this.username}/notificatin-preferance`,{user_globals:this.pref,space_prefs:e}).then(t=>{this.$notify.success(t.message),this.initialState=JSON.stringify(this.pref)+JSON.stringify(this.spaceGroups)}).catch(t=>{this.$handleError(t)}).finally(()=>{this.saving=!1})}},mounted(){(this.auth.user_id||this.hasPermission("super_admin"))&&this.getPrefs()}},Uje={class:"fcom_notification_config"},Wje={key:0},qje=["innerHTML"],Kje={key:1,class:"white_loaded"},Gje={class:"fcom_notification_card"},Yje={class:"fcom_notification_card__header"},Zje={class:"fcom_notification_card__title"},Jje={class:"fcom_notification_card__body"},Xje={class:"fcom_input_wrap"},Qje={key:0},eHe={key:1,class:"fcom_not_enabled"},tHe={class:"fcom_input_wrap"},nHe={key:0},oHe={key:1,class:"fcom_not_enabled"},rHe={class:"fcom_input_wrap"},iHe={key:0},sHe={key:1,class:"fcom_not_enabled"},lHe={class:"fcom_input_wrap"},aHe={key:0},cHe={key:1,class:"fcom_not_enabled"},uHe={class:"fcom_notification_card"},dHe={class:"fcom_notification_card__header"},fHe=g("svg",{version:"1.1",viewBox:"0 0 128 128","xml:space":"preserve"},[g("g",null,[g("path",{d:"M64,42c-13.2,0-24,10.8-24,24s10.8,24,24,24s24-10.8,24-24S77.2,42,64,42z M64,82c-8.8,0-16-7.2-16-16s7.2-16,16-16 s16,7.2,16,16S72.8,82,64,82z"}),g("path",{d:"M64,100.8c-14.9,0-29.2,6.2-39.4,17.1l-2.7,2.9l5.8,5.5l2.7-2.9c8.8-9.4,20.7-14.6,33.6-14.6s24.8,5.2,33.6,14.6l2.7,2.9 l5.8-5.5l-2.7-2.9C93.2,107.1,78.9,100.8,64,100.8z"}),g("path",{d:"M97,47.9v8c9.4,0,18.1,3.8,24.6,10.7l5.8-5.5C119.6,52.7,108.5,47.9,97,47.9z"}),g("path",{d:"M116.1,20c0-10.5-8.6-19.1-19.1-19.1S77.9,9.5,77.9,20S86.5,39.1,97,39.1S116.1,30.5,116.1,20z M85.9,20 c0-6.1,5-11.1,11.1-11.1s11.1,5,11.1,11.1s-5,11.1-11.1,11.1S85.9,26.1,85.9,20z"}),g("path",{d:"M31,47.9c-11.5,0-22.6,4.8-30.4,13.2l5.8,5.5c6.4-6.9,15.2-10.7,24.6-10.7V47.9z"}),g("path",{d:"M50.1,20C50.1,9.5,41.5,0.9,31,0.9S11.9,9.5,11.9,20S20.5,39.1,31,39.1S50.1,30.5,50.1,20z M31,31.1 c-6.1,0-11.1-5-11.1-11.1S24.9,8.9,31,8.9s11.1,5,11.1,11.1S37.1,31.1,31,31.1z"})])],-1),pHe={class:"fcom_notification_card__title"},hHe={class:"fcom_card_sections fcom_course_type_structured"},mHe={class:"fcom_section_labels"},_He={class:"fcom_lebel fcom_label_lesson"},gHe={style:{"text-align":"right"},class:"fcom_lebel fcom_label_actions"},vHe={class:"fcom_section_primary"},bHe={class:"fcom_section_primary_item"},yHe={class:"fcom_section_primary_item_title"},wHe={class:"fcom_section_items"},kHe={class:"fcom_section_item"},xHe={class:"fcom_section_item_title"},CHe=["innerHTML"],SHe=["innerHTML"],$He={key:2,class:"fcom_no_avatar"},EHe={class:"fcom_section_item_actions"},THe={class:"fcom_notification_card fcom_fixed_bottom_overlay"},MHe={key:3},AHe={key:0},IHe=["href"];function OHe(e,t,n,o,r,i){const s=Wt,l=z("Notification"),a=ge,c=Dr,u=Ho,d=jo,f=Ye,p=Mt("loading");return _(),k("div",Uje,[r.error?(_(),k("div",Wje,[g("p",{innerHTML:r.error},null,8,qje)])):r.loading?(_(),k("div",Kje,[y(s,{rows:10,animated:!0})])):e.auth.user_id||e.hasPermission("super_admin")&&r.pref?(_(),k("div",{key:2,class:R([{fcom_is_dirty:i.fcom_is_dirty},"fcom_notification_config_body"])},[g("div",Gje,[g("div",Yje,[y(a,{style:{"font-size":"30px"}},{default:x(()=>[y(l)]),_:1}),g("div",Zje,[g("h3",null,M(e.$t("Global Email Notifications")),1),g("p",null,M(e.$t("These settings will be applied across all spaces you're a member of.")),1)])]),g("div",Jje,[g("div",Xje,[y(c,{"true-value":"yes","false-value":"no",modelValue:r.pref.com_my_post_mail,"onUpdate:modelValue":t[0]||(t[0]=h=>r.pref.com_my_post_mail=h)},{default:x(()=>[te(M(e.$t("Email me when someone comments on my post")),1)]),_:1},8,["modelValue"]),r.pref.com_my_post_mail=="yes"?(_(),k("p",Qje,M(e.$t("You will receive an email when someone leaves a comment on your post.")),1)):(_(),k("p",eHe,M(e.$t("No email will be sent for comments on your post.")),1))]),g("div",tHe,[y(c,{"true-value":"yes","false-value":"no",modelValue:r.pref.reply_my_com_mail,"onUpdate:modelValue":t[1]||(t[1]=h=>r.pref.reply_my_com_mail=h)},{default:x(()=>[te(M(e.$t("Email me when someone replies to my comments")),1)]),_:1},8,["modelValue"]),r.pref.reply_my_com_mail=="yes"?(_(),k("p",nHe,M(e.$t("You will receive an email when someone replies to your comments.")),1)):(_(),k("p",oHe,M(e.$t("No email will be sent when someone replies to your comments.")),1))]),g("div",rHe,[y(c,{"true-value":"yes","false-value":"no",modelValue:r.pref.mention_mail,"onUpdate:modelValue":t[2]||(t[2]=h=>r.pref.mention_mail=h)},{default:x(()=>[te(M(e.$t("Email me when someone mentions me in a post or comment")),1)]),_:1},8,["modelValue"]),r.pref.mention_mail=="yes"?(_(),k("p",iHe,M(e.$t("You will receive an email when someone mentions you in a comment or post.")),1)):(_(),k("p",sHe,M(e.$t("No emails will be sent when someone mentions you.")),1))]),g("div",lHe,[y(c,{"true-value":"yes","false-value":"no",modelValue:r.pref.digest_mail,"onUpdate:modelValue":t[3]||(t[3]=h=>r.pref.digest_mail=h)},{default:x(()=>[te(M(e.$t("Weekly digest on %s",r.digestEmailDay)),1)]),_:1},8,["modelValue"]),r.pref.digest_mail=="yes"?(_(),k("p",aHe,M(e.$t("You will get a digest email with curated activities in the community")),1)):(_(),k("p",cHe,M(e.$t("No digest email will be sent.")),1))])])]),g("div",uHe,[g("div",dHe,[y(a,{style:{"font-size":"30px"}},{default:x(()=>[fHe]),_:1}),g("div",pHe,[g("h3",null,M(e.$t("New Posts Notifications")),1),g("p",null,M(e.$t("Subscribe to new posts notifications by space")),1)])]),g("div",hHe,[g("div",mHe,[g("div",_He,M(e.$t("Space")),1),g("div",gHe,M(e.$t("Notification")),1)]),(_(!0),k(Q,null,Te(r.spaceGroups,h=>(_(),k("div",{key:h.id},[g("div",vHe,[g("div",bHe,[g("div",yHe,[g("h4",null,M(h.title),1)])])]),g("div",wHe,[(_(!0),k(Q,null,Te(h.spaces,m=>(_(),k("div",kHe,[g("div",xHe,[m.icon?(_(),L(a,{key:0},{default:x(()=>[g("span",{innerHTML:m.icon},null,8,CHe)]),_:2},1024)):m.shape_svg?(_(),k("span",{key:1,innerHTML:m.shape_svg},null,8,SHe)):(_(),k("span",$He)),g("span",null,M(m.title),1)]),g("div",EHe,[y(d,{size:"small",placeholder:e.$t("Email Disabled"),style:{width:"100%","max-width":"200px"},modelValue:m.pref,"onUpdate:modelValue":b=>m.pref=b},{default:x(()=>[y(u,{label:e.$t("Email Disabled"),value:""},null,8,["label"]),y(u,{label:e.$t("Notify only for Admin Posts"),value:"admin_only_posts"},null,8,["label"]),y(u,{label:e.$t("Notify for all posts"),value:"all_member_posts"},null,8,["label"])]),_:2},1032,["placeholder","modelValue","onUpdate:modelValue"])])]))),256))])]))),128))])]),g("div",THe,[ze((_(),L(f,{onClick:i.saveSettings,disabled:r.saving,class:"fcom_primary_button"},{default:x(()=>[te(M(e.$t("Save Changes")),1)]),_:1},8,["onClick","disabled"])),[[p,r.saving]])])],2)):(_(),k("div",MHe,[g("h3",null,M(e.$t("Sorry you do not have permission to access this.")),1),e.auth.user_id?O("",!0):(_(),k("div",AHe,[g("p",null,M(e.$t("Please login to access this page.")),1),g("a",{href:e.appVars.auth_url,class:"el-button fcom_primary_button link_button"},M(e.$t("Login")),9,IHe)]))]))])}const PHe=de(Hje,[["render",OHe]]),NHe={name:"UserNotificationSettings",props:["username"],components:{NotificationPrefForm:PHe},mounted(){this.$nextTick(()=>{const e=document.querySelector(".object_info");e&&window.scrollTo({top:e.offsetTop-100,behavior:"smooth"})})}},LHe={class:"fcom_routed_notification_settings"};function RHe(e,t,n,o,r,i){const s=z("notification-pref-form");return _(),k("div",LHe,[y(s,{username:n.username},null,8,["username"])])}const FHe=de(NHe,[["render",RHe]]),DHe={name:"MemberAction",props:["member","openedMemberId"],data(){return{status:this.member.status,working:!1,isOpened:!1}},watch:{openedMemberId(e){this.isOpened=e===this.member.user_id}},methods:{changeMemberStatus(){this.working=!0,this.$patch("members/"+this.member.user_id,{status:this.status}).then(e=>{this.member.status=this.status,this.$notify.success(e.message)}).catch(e=>{this.$handleError(e)}).finally(()=>{this.working=!1,this.isOpened=!1})},togglePopover(){this.$emit("togglePopover")}}},BHe={class:"card_action"};function zHe(e,t,n,o,r,i){const s=z("MoreFilled"),l=ge,a=Ye,c=hh,u=Is,d=qi,f=Wi,p=po,h=Mt("loading");return _(),k("div",BHe,[y(p,{persistent:!1,placement:"bottom",width:270,visible:r.isOpened,onHide:t[2]||(t[2]=m=>r.isOpened=!1)},{reference:x(()=>[y(a,{"aria-label":e.$t("View actions"),onClick:i.togglePopover,size:"small",text:""},{default:x(()=>[y(l,{class:"fcom_more_icon"},{default:x(()=>[y(s)]),_:1})]),_:1},8,["aria-label","onClick"])]),default:x(()=>[y(f,{onSubmit:t[1]||(t[1]=qe(m=>e.doNothing(),["prevent"])),"label-position":"top"},{default:x(()=>[y(d,{label:e.$t("Status")},{default:x(()=>[y(u,{modelValue:r.status,"onUpdate:modelValue":t[0]||(t[0]=m=>r.status=m)},{default:x(()=>[y(c,{label:e.$t("Active"),value:"active"},null,8,["label"]),y(c,{label:e.$t("Pending"),value:"pending"},null,8,["label"]),y(c,{label:e.$t("Blocked"),value:"blocked"},null,8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["label"]),y(d,null,{default:x(()=>[ze((_(),L(a,{disabled:r.working,onClick:i.changeMemberStatus,class:"fcom_primary_button"},{default:x(()=>[te(M(e.$t("Update Status")),1)]),_:1},8,["disabled","onClick"])),[[h,r.working]])]),_:1})]),_:1})]),_:1},8,["visible"])])}const VHe=de(DHe,[["render",zHe]]),jHe={name:"AllMembers",components:{SwitchListIcon:AL,SwitchTimelineIcon:ML,Search:ju,Layout:mr,AppLayout:Vr,Pagination:Dh,MemberAction:VHe},data(){return{loading:!1,members:[],pagination:{page:1,per_page:20,total:0},permission_failed:!1,search:"",status:"active",sort_by:"last_activity",working:!1,openedMemberId:null}},methods:{fetch(){this.loading=!0,this.$get("members",{per_page:this.pagination.per_page,page:this.pagination.page,search:this.search,status:this.status,sort_by:this.sort_by}).then(e=>{window.scrollTo({top:0,behavior:"smooth"}),this.members=e.members.data,this.pagination.total=e.members.total}).catch(e=>{e.permission_failed?this.permission_failed=!0:this.$handleError(e)}).finally(()=>{this.loading=!1})},changeMemberStatus(e,t){this.working=!0,this.$patch("members/"+e.user_id,{status:t}).then(n=>{this.$notify.success(n.message),e.status=t}).catch(n=>{this.$handleError(n)}).finally(()=>{this.working=!1})},handleSearch(){this.search&&this.search.length<3||this.toSearch()},toSearch(){this.pagination.page=1,this.fetch()},handleTogglePopover(e){this.openedMemberId=this.openedMemberId===e?null:e}},mounted(){this.$route.query.inactives&&(this.status="in_active"),this.fetch(),this.changeTitle(this.$t("All Members"))}},HHe={key:0,class:"member_header"},UHe={role:"region","aria-label":"Member Navigation",class:"member_status"},WHe={key:1,style:{"text-align":"center",padding:"20px 20px 40px"},class:"space_members"},qHe={class:"permission_failed"},KHe=["href"],GHe={class:"search_member"},YHe={class:"feed_filters"},ZHe=g("div",{class:"fcom_feed_divider"},null,-1),JHe={id:"feed_short_by",class:"fcom_feed_filter_label"},XHe={class:"space_members"},QHe={key:0,class:"loading"},eUe={key:1,class:"no_members"},tUe={key:2,class:"card_list"},nUe={role:"region","aria-label":"User Info",class:"card_content"},oUe={class:"card_avatar"},rUe={class:"card_info"},iUe={class:"info_header"},sUe={class:"meta_line"},lUe={class:"meta_line"},aUe={class:"meta_line"},cUe={key:0,class:"card_footer"},uUe={style:{color:"red",display:"flex",gap:"10px"},class:"meta_line"},dUe={role:"region","aria-label":"Pagination",class:"pagination_wrap"};function fUe(e,t,n,o,r,i){const s=hh,l=Is,a=Ye,c=z("Search"),u=ge,d=An,f=Ho,p=jo,h=Wt,m=z("UserAvatar"),b=z("UserRouteLink"),v=z("MemberAction"),E=z("Pagination"),w=z("layout"),S=z("app-layout");return _(),L(S,{wrapper_class:"fcom_single_layout fcom_max_layout"},{default:x(()=>[y(w,{use_scroll:!0,class:"no_bg_layout",title:e.$t("All Members")+" "+(r.pagination.total?" ("+e.$formatNumber(r.pagination.total)+")":"")},{default:x(()=>[e.isAdmin()?(_(),k("div",HHe,[g("div",UHe,[y(l,{onChange:i.toSearch,modelValue:r.status,"onUpdate:modelValue":t[0]||(t[0]=T=>r.status=T),class:"status_group"},{default:x(()=>[y(s,{value:"active"},{default:x(()=>[te(M(e.$t("Active")),1)]),_:1}),y(s,{value:"in_active"},{default:x(()=>[te(M(e.$t("Blocked")),1)]),_:1})]),_:1},8,["onChange","modelValue"])]),O("",!0)])):O("",!0),r.permission_failed?(_(),k("div",WHe,[g("div",qHe,[g("h3",null,M(e.$t("Permission Denied")),1),g("p",null,M(e.$t("You do not have permission to view all members")),1),g("a",{href:e.$getRouteLink("/"),class:"el-button fcom_primary_button"},M(e.$t("Go To All Feeds")),9,KHe)])])):(_(),k(Q,{key:2},[g("div",GHe,[y(d,{clearable:"",onClear:i.toSearch,onKeydown:Ut(i.toSearch,["enter"]),onInput:i.handleSearch,modelValue:r.search,"onUpdate:modelValue":t[2]||(t[2]=T=>r.search=T),placeholder:e.$t("Search Members...")},{prefix:x(()=>[y(u,null,{default:x(()=>[y(c)]),_:1})]),_:1},8,["onClear","onKeydown","onInput","modelValue","placeholder"])]),g("div",YHe,[ZHe,g("span",JHe,M(e.$t("Sort by:")),1),y(p,{"aria-label":e.$t("Sort members by"),modelValue:r.sort_by,"onUpdate:modelValue":t[3]||(t[3]=T=>r.sort_by=T),class:"fcom_minimal_select","popper-class":"plain_select",placeholder:e.$t("Latest Posts"),onChange:t[4]||(t[4]=T=>i.fetch())},{default:x(()=>[y(f,{value:"last_activity",label:e.$t("Last Activity")},null,8,["label"]),y(f,{value:"display_name",label:e.$t("Display Name")},null,8,["label"]),y(f,{value:"created_at",label:e.$t("Joining Date")},null,8,["label"])]),_:1},8,["aria-label","modelValue","placeholder"])]),g("div",XHe,[r.loading?(_(),k("div",QHe,[y(h,{class:"white_loaded",rows:3,animated:!0})])):!r.loading&&!r.members.length?(_(),k("div",eUe,M(e.$t("No members found")),1)):(_(),k("div",tUe,[(_(!0),k(Q,null,Te(r.members,(T,$)=>(_(),k("div",{key:T.user_id,class:"each_card"},[g("div",nUe,[g("div",oUe,[y(m,{is_online:e.isOnline(T.last_activity),xprofile:T},null,8,["is_online","xprofile"])]),g("div",rUe,[g("div",iUe,[y(b,{show_pop:!0,show_badge:!0,xprofile:T},null,8,["xprofile"]),g("div",sUe,M(e.$t("Joined %s",e.humanDateDiff(T.created_at))),1)]),g("div",lUe,[g("p",null,"@"+M(T.username),1)]),g("div",aUe,M(e.getExcerpt(T.short_description,120)),1),T.status!="active"?(_(),k("div",cUe,[g("div",uUe,[g("span",null,M(e.$t("Status:"))+" "+M(e.$labelize(T.status)),1),y(a,{onClick:A=>i.changeMemberStatus(T,"active"),type:"danger"},{default:x(()=>[te(M(e.$t("Approve Access")),1)]),_:2},1032,["onClick"])])])):O("",!0)])]),e.isAdmin()?(_(),L(v,{key:0,member:T,openedMemberId:r.openedMemberId,onTogglePopover:A=>i.handleTogglePopover(T.user_id)},null,8,["member","openedMemberId","onTogglePopover"])):O("",!0)]))),128))])),g("div",dUe,[y(E,{hide_on_single:!0,onFetch:t[5]||(t[5]=T=>i.fetch()),pagination:r.pagination},null,8,["pagination"])])])],64))]),_:1},8,["title"])]),_:1})}const pUe=de(jHe,[["render",fUe]]),hUe={name:"Notifications",components:{AppLayout:Vr,Layout:mr,NotificationsBlock:VA,Pagination:Dh},data(){return{status:"all",loading:!1,notifications:[],pagination:{page:1,per_page:20,total:0},working:!1,notification_type:"all"}},methods:{switchType(e){this.notification_type=e,this.fetch()},fetch(){this.loading=!0,this.$get("notifications",{per_page:this.pagination.per_page,page:this.pagination.page,status:this.status,notification_type:this.notification_type}).then(e=>{this.notifications=e.notifications.data,this.pagination.total=e.notifications.total}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1,window.scrollTo(0,0)})},markAllRead(){this.working=!0,this.$post("notifications/mark-all-read").then(e=>{this.$notify.success(e.message),this.fetch()}).catch(e=>{this.$handleError(e)}).finally(()=>{this.working=!1})}},mounted(){this.fetch(),this.changeTitle(this.$t("All Notifications")),window.scrollTo(0,0)}},mUe={class:"fcom_filter_menu"},_Ue={class:"fcom_filter_menu_ul"},gUe={style:{"border-top-left-radius":"0","border-top-right-radius":"0"},class:"space_members"},vUe={key:0,class:"notifications notifications_wrap"},bUe={class:"pagination_wrap"},yUe={key:1},wUe={key:2};function kUe(e,t,n,o,r,i){const s=Ye,l=wA,a=z("notifications-block"),c=z("Pagination"),u=Wt,d=z("layout"),f=z("app-layout"),p=Mt("loading");return _(),L(f,{wrapper_class:"fcom_single_layout"},{default:x(()=>[y(d,{content_class:"no_bg_layout",title:e.$t("Notifications")},{actions:x(()=>[y(s,{class:"fcom_primary_button",disabled:r.working,onClick:t[0]||(t[0]=h=>i.markAllRead())},{default:x(()=>[te(M(e.$t("Mark all as read")),1)]),_:1},8,["disabled"])]),default:x(()=>[g("div",mUe,[g("ul",_Ue,[g("li",null,[g("a",{onClick:t[1]||(t[1]=qe(h=>i.switchType("all"),["prevent"])),class:R({"router-link-exact-active":r.notification_type=="all"}),href:"#"},M(e.$t("All")),3)]),g("li",null,[g("a",{onClick:t[2]||(t[2]=qe(h=>i.switchType("mentioned"),["prevent"])),class:R({"router-link-exact-active":r.notification_type=="mentioned"}),href:"#"},M(e.$t("Mentions")),3)]),g("li",null,[g("a",{onClick:t[3]||(t[3]=qe(h=>i.switchType("following"),["prevent"])),class:R({"router-link-exact-active":r.notification_type=="following"}),href:"#"},M(e.$t("Following")),3)])]),y(l,{onChange:t[4]||(t[4]=h=>i.fetch()),style:{"--el-switch-on-color":"#2271b1"},"active-value":"unread","inactive-value":"all","active-text":e.$t("Unread only"),modelValue:r.status,"onUpdate:modelValue":t[5]||(t[5]=h=>r.status=h)},null,8,["active-text","modelValue"])]),g("div",gUe,[r.notifications.length?ze((_(),k("div",vUe,[y(a,{notifications:r.notifications},null,8,["notifications"]),g("div",bUe,[y(c,{hide_on_single:!0,onFetch:t[6]||(t[6]=h=>i.fetch()),pagination:r.pagination},null,8,["pagination"])])])),[[p,r.loading]]):r.loading?(_(),k("div",wUe,[y(u,{animated:!0,rows:5})])):(_(),k("div",yUe,[g("p",null,M(e.$t("No notifications found")),1)]))])]),_:1},8,["title"])]),_:1})}const xUe=de(hUe,[["render",kUe]]),CUe={name:"Bookmarks",components:{Feeds:Fh,AppLayout:Vr,Layout:mr},computed:{feed_base_url(){return"feeds/bookmarks"}},mounted(){this.changeTitle(this.$t("Your Bookmarks"))}},SUe={key:1};function $Ue(e,t,n,o,r,i){const s=z("feeds"),l=z("layout"),a=z("app-layout");return _(),L(a,{wrapper_class:"fcom_single_layout fcom_compact_layout"},{default:x(()=>[y(l,{wrapper_class:"no_bg_layout",title:e.$t("Your Bookmarks")},{default:x(()=>[g("p",null,M(e.$t("Your saved posts")),1),e.appVars.auth.user_id?(_(),L(s,{key:0,feed_base_url:i.feed_base_url,hide_filters:!0,hide_create_form:!0,space:""},null,8,["feed_base_url"])):(_(),k("div",SUe,[g("p",null,M(e.$t("Please login to view your bookmarks")),1)]))]),_:1},8,["title"])]),_:1})}const EUe=de(CUe,[["render",$Ue]]),TUe={name:"AllCourses",components:{AppLayout:Vr,Layout:mr,GroupIcon:W4},data(){return{courses:[],loading:!0,pagination:{current_page:1,per_page:50,total:0},type:"all",newCourseModal:!1,is_admin:!1,courseCategories:null,topic_slug:null}},methods:{fetchCourses(){this.loading=!0,this.$get("courses",{page:this.pagination.current_page,per_page:this.pagination.per_page,type:this.type,topic_slug:this.topic_slug,with_categories:!this.courseCategories}).then(e=>{this.courses=e.courses.data,this.is_admin=e.is_admin,this.pagination.total=e.courses.total,e.course_categories&&e.course_categories.length&&(this.courseCategories=e.course_categories)}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},setTopic(e){this.topic_slug=e;let t=JSON.parse(JSON.stringify(this.$route.query));e?(t.topic=e,this.$router.push({query:t})):(delete t.topic,this.$router.push({query:t})),console.log(t),this.fetchCourses()},SwitchToCourseView(e){this.type=e,this.$router.push({name:"courses",query:{type:e}}),this.fetchCourses()},getExcerpt(e){if(!e)return"";let t=e.replace(/(<([^>]+)>)/ig,"");return t.length>200&&(t=t.substring(0,200)+"..."),t},emitCreateCourse(){this.$eventBus.emit("createSpaceModal",{course_config:!0})}},mounted(){this.$route.query.type&&(this.type=this.$route.query.type),this.fetchCourses(),this.changeTitle(this.$t("Courses"))}},MUe=e=>(y$("data-v-531a639d"),e=e(),w$(),e),AUe={class:"object_menu"},IUe={class:"fcom_space_menu_ul"},OUe={key:0},PUe={key:0,class:"fcom_space_topics"},NUe={class:"fcom_topics_filters"},LUe={class:"fcom_courses"},RUe={class:"fcom_box_card_list"},FUe=["onClick"],DUe=["src"],BUe={key:1,class:"fcom_no_image"},zUe={class:"fcom_box_card_info"},VUe={class:"fcom_box_card_name"},jUe={class:"fcom_box_card_details"},HUe={class:"inline_details"},UUe=MUe(()=>g("span",{class:"fcom_inline_separator"},null,-1)),WUe={key:0,class:"inline_details"},qUe={key:0,class:"fcom_box_card_description"},KUe={class:"fcom_box_card_action"},GUe=["onClick"],YUe=["onClick"];function ZUe(e,t,n,o,r,i){const s=Ye,l=mh,a=z("router-link"),c=z("GroupIcon"),u=ge,d=z("layout"),f=z("app-layout"),p=Mt("loading");return _(),L(f,{wrapper_class:"fcom_single_layout fcom_max_layout"},{default:x(()=>[y(d,{wrapper_class:"no_bg_layout",title:e.$t("Courses")},{actions:x(()=>[g("div",AUe,[g("ul",IUe,[g("li",null,[g("a",{onClick:t[0]||(t[0]=qe(h=>i.SwitchToCourseView("all"),["prevent"])),class:R(r.type=="all"?"router-link-active router-link-exact-active":""),href:"#"},M(e.$t("All Courses")),3)]),g("li",null,[g("a",{onClick:t[1]||(t[1]=qe(h=>i.SwitchToCourseView("enrolled"),["prevent"])),class:R(r.type=="enrolled"?"router-link-active router-link-exact-active":""),href:"#"},M(e.$t("My Courses")),3)]),e.isAdmin()?(_(),k("li",OUe,[y(s,{onClick:t[2]||(t[2]=h=>i.emitCreateCourse()),class:"fcom_primary_button"},{default:x(()=>[te(M(e.$t("New Course")),1)]),_:1})])):O("",!0)])])]),default:x(()=>[r.courseCategories&&r.courseCategories.length?(_(),k("div",PUe,[g("div",NUe,[y(s,{onClick:t[3]||(t[3]=h=>i.setTopic("")),class:R({fcom_active_topic:!r.topic_slug})},{default:x(()=>[te(M(e.$t("All")),1)]),_:1},8,["class"]),(_(!0),k(Q,null,Te(r.courseCategories,h=>(_(),L(s,{onClick:m=>i.setTopic(h.slug),class:R({fcom_active_topic:h.slug==r.topic_slug}),key:h.slug},{default:x(()=>[te(M(h.title),1)]),_:2},1032,["onClick","class"]))),128))])])):O("",!0),ze((_(),k("div",LUe,[g("div",RUe,[(_(!0),k(Q,null,Te(r.courses,h=>(_(),k("div",{key:h.id,class:"fcom_each_box_card"},[g("div",{class:"fcom_box_card_avatar",onClick:m=>e.$router.push({name:"view_course",params:{course_slug:h.slug}})},[h.cover_photo?(_(),k("img",{key:0,src:h.cover_photo,alt:""},null,8,DUe)):(_(),k("div",BUe))],8,FUe),g("div",zUe,[g("div",VUe,[y(a,{class:"course_route",to:{name:"view_course",params:{course_slug:h.slug}}},{default:x(()=>[te(M(h.title)+" ",1),h.status=="draft"?(_(),L(l,{key:0,type:"info"},{default:x(()=>[te(M(h.status),1)]),_:2},1024)):O("",!0)]),_:2},1032,["to"])]),g("div",jUe,[g("div",HUe,[g("span",null,M(e.$_n("%d Section","%d Sections",h.sectionsCount)),1),UUe,g("span",null,M(e.$_n("%d Lesson","%d Lessons",h.lessonsCount)),1)]),h.studentsCount?(_(),k("div",WUe,[y(u,null,{default:x(()=>[y(c)]),_:1}),te(" "+M(e.$_n("%s student","%s students",e.$formatNumber(h.studentsCount))),1)])):O("",!0)]),h.description?(_(),k("div",qUe,M(i.getExcerpt(h.description)),1)):O("",!0),g("div",KUe,[h.isEnrolled?(_(),k("button",{key:0,class:"fcom_card_button",onClick:m=>e.$router.push({name:"view_course",params:{course_slug:h.slug}})},M(e.$t("%s Completed",h.progress+"%")),9,GUe)):(_(),k("button",{key:1,class:"fcom_card_button",onClick:m=>e.$router.push({name:"view_course",params:{course_slug:h.slug}})},M(e.$t("View Course")),9,YUe))])])]))),128))])])),[[p,r.loading]])]),_:1},8,["title"])]),_:1})}const JUe=de(TUe,[["render",ZUe],["__scopeId","data-v-531a639d"]]),XUe={name:"ViewCoursesRoute",components:{Layout:mr,AppLayout:Vr},props:["course_slug"],data(){return{course:{},sections:[],track:{},loading:!1,currentLessonIndex:null,currentLesson:null}},watch:{course_slug(){this.fetchCourse()}},computed:{allLessons(){let e=[];return ba(this.sections,t=>{ba(t.lessons,n=>{e.push(n)})}),e},lessonsCount(){return this.allLessons.length}},methods:{fetchCourse(){this.loading=!0,this.$get("courses/"+this.course_slug+"/by-slug").then(e=>{this.sections=e.sections,this.track=e.track,this.$route.params.lesson_slug&&this.goToLesson(this.$route.params.lesson_slug,!0),this.course=e.course,this.changeTitle(this.course.title)}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})},handleNextLesson(){let e=null,t=null;if(this.currentLessonIndex===null){if(ba(this.allLessons,(n,o)=>{if(!this.track.completed_lessons.includes(n.id.toString()))return e=n,t=o,!1}),!e)if(this.allLessons.length)e=this.allLessons[0],t=0;else return this.$notify.error(this.$t("Sorry, no lesson found")),!1}else ba(this.allLessons,(n,o)=>{if(o>this.currentLessonIndex)return e=n,t=o,!1});e&&(this.currentLesson=null,this.$nextTick(()=>{this.currentLessonIndex=t,this.currentLesson=e,this.changeTitle(this.currentLesson.title),this.$router.push({name:"view_lesson",params:{lesson_slug:e.slug}})}))},setPrevLesson(){let e=this.currentLessonIndex-1;if(e<0||!this.allLessons[e])return this.$notify.error(this.$t("Sorry, no lesson found")),!1;let t=this.allLessons[e];t&&(this.loading=!0,this.currentLesson=null,this.currentLessonIndex=null,this.$nextTick(()=>{this.currentLessonIndex=e,this.currentLesson=t,this.changeTitle(this.currentLesson.title),this.$router.push({name:"view_lesson",params:{lesson_slug:t.slug}}),this.loading=!1}))},goToLesson(e,t=!1){let n=null,o=null;ba(this.allLessons,(r,i)=>{if(r.slug==e)return n=r,o=i,!1}),n&&(this.currentLesson=null,this.$nextTick(()=>{this.currentLessonIndex=o,this.currentLesson=n,this.changeTitle(this.currentLesson.title),this.$router.push({name:"view_lesson",params:{lesson_slug:n.slug},query:t?this.$route.query:{}})}))}},created(){this.fetchCourse()}},QUe={key:0},eWe={style:{padding:"20px"},class:"fcom_course_sections fcom_white_loaded"},tWe={key:1},nWe={key:2};function oWe(e,t,n,o,r,i){const s=M3,l=T3,a=Wt,c=z("layout"),u=z("app-layout"),d=z("router-view");return r.loading?(_(),k("div",QUe,[y(u,{wrapper_class:"fcom_single_layout fcom_max_layout"},{default:x(()=>[y(c,{title:"...."},{title:x(()=>[y(l,{"separator-class":"el-icon-arrow-right"},{default:x(()=>[y(s,{to:{name:"courses"}},{default:x(()=>[te(M(e.$t("Courses")),1)]),_:1}),y(s,null,{default:x(()=>[te("....")]),_:1})]),_:1})]),default:x(()=>[g("div",eWe,[y(a,{rows:10,animated:!0})])]),_:1})]),_:1})])):r.course.id?(_(),k("div",tWe,[y(d,{onSetNextLesson:i.handleNextLesson,onSetPrevLesson:i.setPrevLesson,onGoToLesson:i.goToLesson,currentLessonIndex:r.currentLessonIndex,currentLesson:r.currentLesson,course:r.course,onReload:i.fetchCourse,onUpdateTrack:t[0]||(t[0]=f=>{r.track=f}),lessonsCount:i.lessonsCount,sections:r.sections,track:r.track},null,8,["onSetNextLesson","onSetPrevLesson","onGoToLesson","currentLessonIndex","currentLesson","course","onReload","lessonsCount","sections","track"])])):(_(),k("div",nWe,[g("h3",null,M(e.$t("Sorry, the course could not be loaded.")),1)]))}const rWe=de(XUe,[["render",oWe]]),iWe={name:"CircleIcon",props:{fill:{type:String,default:"currentColor"}}},sWe=["fill"],lWe=g("path",{id:"XMLID_520_",d:`M165,0C74.019,0,0,74.019,0,165s74.019,165,165,165s165-74.019,165-165S255.982,0,165,0z M165,300
127 C90.561,300,30,239.44,30,165S90.561,30,165,30c74.439,0,135,60.561,135,135S239.439,300,165,300z`},null,-1),aWe=[lWe];function cWe(e,t,n,o,r,i){return _(),k("svg",{fill:n.fill,version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330","xml:space":"preserve"},aWe,8,sWe)}const HL=de(iWe,[["render",cWe]]),uWe={name:"LockscreenView",components:{CustomLockscreenView:FL},props:["space_profile","sections"],emits:["join"]},dWe={key:0,class:"space_lock_box space_default_lock_box"},fWe=["href"],pWe={key:1},hWe={key:1,class:"space_lock_box"},mWe={key:2,class:"space_lock_box"},_We=["href"];function gWe(e,t,n,o,r,i){const s=z("Lock"),l=ge,a=z("custom-lockscreen-view");return n.space_profile.lockscreen_config?(_(),k(Q,{key:0},[n.space_profile.lockscreen_config.showCustom?(_(),k("div",pWe,[y(a,{sections:n.sections,profile:n.space_profile},null,8,["sections","profile"])])):(_(),k("div",dWe,[y(l,null,{default:x(()=>[y(s)]),_:1}),g("h4",null,M(e.$t("This is a private course")),1),g("p",null,M(e.$t("Members have to be invited to this course.")),1),e.auth.user_id?O("",!0):(_(),k("a",{key:0,href:e.getCurrentAuthUrl(),class:"fcom_btn el-button el-button--primary"},M(e.$t("Login or Signup")),9,fWe))]))],64)):n.space_profile.permissions.is_pending?(_(),k("div",hWe,[y(l,null,{default:x(()=>[y(s)]),_:1}),g("h4",null,M(e.$t("Your request to join this course is pending")),1)])):e.auth.user_id?O("",!0):(_(),k("div",mWe,[y(l,null,{default:x(()=>[y(s)]),_:1}),g("h4",null,M(e.$t("Please login/signup to enroll this course")),1),g("a",{href:e.getCurrentAuthUrl(),class:"fcom_btn el-button el-button--primary"},M(e.appVars.allow_signup?e.$t("Login / Signup"):e.$t("Login")),9,_We)]))}const vWe=de(uWe,[["render",gWe]]),bWe={name:"ViewCourse",components:{VideoPlay:DJ,RenderSpaceLinks:U4,LockScreenView:vWe,AppLayout:Vr,Layout:mr,CircleIcon:HL},props:["course","sections","track","lessonsCount"],$emit:["setNextLesson","goToLesson","reload"],data(){return{enrolling:!1}},computed:{sectionsCount(){return this.sections.reduce((e,t)=>e+(t.lessons.length?1:0),0)},isCustomLockScreen(){var e,t;return((t=(e=this.course)==null?void 0:e.settings)==null?void 0:t.custom_lock_screen)==="yes"},showCourseSections(){return this.track.isEnrolled||this.hasCourseCreatorAccess()||!this.course.lockscreen_config}},methods:{editLessonLink(){return this.$getRouteLink("admin/manage-courses/edit/:course_id/lessons",{course_id:this.course.id})},enroll(){this.enrolling=!0,this.$post("courses/"+this.course.id+"/enroll").then(e=>{this.$emit("reload"),this.$notify.success(e.message)}).catch(e=>{this.$handleError(e)}).finally(()=>{this.enrolling=!1})},continueCourse(){this.$emit("setNextLesson")},maybeGotoLesson(e,t,n){if(!t.isEnrolled||n.is_locked){n.unlock_date&&this.$notify.info({message:`This lesson will be unlocked on ${n.unlock_date}`,type:"info"});return}this.$emit("goToLesson",e.slug)},formatSeconds(e){let t=Math.floor(e/60),n=e%60;return n=n<10?"0"+n:n,t=t<10?"0"+t:t,`${t}:${n}`}}},yWe=["href"],wWe={key:0,class:"fcom_sub_header"},kWe={key:0,class:"fcom_notice"},xWe={key:1,class:"fcom_section"},CWe={class:"fcom_section_item_title"},SWe={class:"fcom_section_body"},$We={class:"fcom_section_item_content"},EWe={key:0,style:{margin:"20px 0"}},TWe={key:2,class:"fcom_course_sections"},MWe={class:"fcom_course_intro"},AWe={class:"fcom_course_labels"},IWe={class:"fcom_course_info"},OWe=g("span",null," • ",-1),PWe={class:"fcom_course_actions"},NWe=["href"],LWe={class:"fcom_card_sections"},RWe={class:"fcom_section_items"},FWe={class:"fcom_section_primary_item"},DWe=["onClick"],BWe={key:0,class:"section_lock_badge"},zWe={class:"fcom_section_primary_item_actions"},VWe={class:"fcom_meta_text"},jWe=["onClick"],HWe={class:"fcom_heading_item clickable"},UWe={key:0,class:"fcom_section_item_actions"},WWe={class:"fcom_meta_text"},qWe={key:3};function KWe(e,t,n,o,r,i){const s=M3,l=T3,a=z("render-space-links"),c=bA,u=Ye,d=z("ArrowRight"),f=z("ArrowDown"),p=ge,h=z("Lock"),m=z("SuccessFilled"),b=z("CircleIcon"),v=z("VideoPlay"),E=z("LockScreenView"),w=z("layout"),S=z("app-layout"),T=Mt("loading");return _(),L(S,{wrapper_class:"fcom_single_layout fcom_max_layout"},{default:x(()=>[y(w,{wrapper_class:["no_bg_layout",{custom_lockscreen:!i.showCourseSections}],title:e.$t("Courses")},{title:x(()=>[y(l,{"separator-class":"el-icon-arrow-right"},{default:x(()=>[y(s,{to:{name:"courses"}},{default:x(()=>[te(M(e.$t("Courses")),1)]),_:1}),y(s,null,{default:x(()=>[te(M(n.course.title),1)]),_:1})]),_:1})]),actions:x(()=>[e.hasCourseCreatorAccess()?(_(),k("a",{key:0,href:i.editLessonLink(),class:"el-button link_button fcom_primary_button"},M(e.$t("Edit Lessons")),9,yWe)):O("",!0)]),sub_header:x(()=>{var $,A;return[n.course&&!i.isCustomLockScreen&&((A=($=n.course)==null?void 0:$.settings)!=null&&A.links.length)?(_(),k("div",wWe,[y(a,{links:n.course.settings.links},null,8,["links"])])):O("",!0)]}),default:x(()=>[n.course.status==="draft"?(_(),k("div",kWe,[g("p",null,M(e.$t("This course is in Draft status and only visible to Admin / Moderators")),1)])):O("",!0),n.track.isEnrolled?(_(),k("div",xWe,[g("div",CWe,[g("h3",null,M(e.$t("Course progress")),1)]),g("div",SWe,[g("div",$We,[g("p",null,M(e.$t("Completed %1s of %2s",n.track.completed_lessons.length,n.lessonsCount)),1),y(c,{"stroke-width":15,percentage:parseInt(n.track.progress)},null,8,["percentage"])]),n.track.progress==100?(_(),k("div",EWe,[g("h5",null,M(e.$t("Congratulations! Course completed! 🎉")),1)])):O("",!0)])])):O("",!0),i.showCourseSections?(_(),k("div",TWe,[g("div",MWe,[g("div",AWe,[g("h3",null,M(e.$t("Course content")),1),g("p",IWe,[te(M(e.$_n("%s topic","%s topics",i.sectionsCount))+" ",1),OWe,te(" "+M(e.$_n("%s lesson","%s lessons",n.lessonsCount)),1)])]),g("div",PWe,[e.auth.user_id?!n.track.isEnrolled&&n.course.id?ze((_(),L(u,{key:1,disabled:r.enrolling,onClick:i.enroll,class:"fcom_primary_button"},{default:x(()=>[te(M(e.$t("Enroll this course")),1)]),_:1},8,["disabled","onClick"])),[[T,r.enrolling]]):n.track.progress!=100?(_(),L(u,{key:2,class:"fcom_primary_button",onClick:i.continueCourse},{default:x(()=>[te(M(e.$t("Continue Course")),1)]),_:1},8,["onClick"])):O("",!0):(_(),k("a",{key:0,href:e.getCurrentAuthUrl(),class:"fcom_btn el-button el-button--primary fcom_primary_button"},M(e.$t("Login to enroll this course")),9,NWe))])]),g("div",LWe,[g("div",RWe,[(_(!0),k(Q,null,Te(n.sections,$=>(_(),k("div",{key:$.id,class:"fcom_section_primary"},[g("div",FWe,[g("div",{onClick:A=>$.is_closed=!$.is_closed,class:"clickable fcom_section_primary_item_title"},[y(p,null,{default:x(()=>[$.is_closed?(_(),L(d,{key:0})):(_(),L(f,{key:1}))]),_:2},1024),g("h4",null,M($.title),1),$.unlock_date?(_(),k("span",BWe,[$.is_locked?(_(),L(p,{key:0},{default:x(()=>[y(h)]),_:1})):O("",!0),g("span",null," ("+M(e.$t("will unlock at %s",e.smartDate($.unlock_date,!0,!0)))+") ",1)])):O("",!0)],8,DWe),g("div",zWe,[g("span",VWe,M(e.$_n("%s lesson","%s lessons",$.lessons.length)),1)])]),$.is_closed?O("",!0):(_(!0),k(Q,{key:0},Te($.lessons,A=>(_(),k("div",{key:A.id,class:"fcom_section_item"},[g("div",{onClick:P=>i.maybeGotoLesson(A,n.track,$),class:"fcom_section_item_title"},[g("p",HWe,[n.track.completed_lessons.includes(A.id.toString())?(_(),L(p,{key:0,style:{color:"#008a2e"}},{default:x(()=>[y(m)]),_:1})):$.is_locked||!n.track.isEnrolled?(_(),L(p,{key:1},{default:x(()=>[y(h)]),_:1})):(_(),L(p,{key:2},{default:x(()=>[y(b)]),_:1})),te(" "+M(A.title),1)])],8,jWe),A.meta.enable_media=="yes"&&A.meta.video_length?(_(),k("div",UWe,[g("span",WWe,[A.meta.video_length?(_(),L(u,{key:0,onClick:P=>i.maybeGotoLesson(A,n.track,$),text:""},{default:x(()=>[y(p,null,{default:x(()=>[y(v)]),_:1}),g("span",null,M(i.formatSeconds(A.meta.video_length)),1)]),_:2},1032,["onClick"])):O("",!0)])])):O("",!0)]))),128))]))),128))])])])):(_(),k("div",qWe,[y(E,{space_profile:n.course,sections:n.sections},null,8,["space_profile","sections"])]))]),_:1},8,["wrapper_class","title"])]),_:1})}const GWe=de(bWe,[["render",KWe]]),YWe={name:"CommentBox",components:{FeedComments:fL,FeedTextComposer:Rh},props:{feed:{type:Object,required:!0},showAll:{type:Boolean,default:!0},checkPermission:{type:Boolean,default:!0},is_single:{type:Boolean,default:!0}},data(){return{show_all_comments:this.showAll,commenting:!1,comment:{message:"",media_images:[]},saving:!1,showCommentBox:!0}},methods:{postComment(){this.comment.message&&(this.saving=!0,this.$post("feeds/"+this.feed.id+"/comments",{comment:this.comment.message,media_images:this.comment.media_images,meta:this.comment.meta}).then(e=>{this.feed.comments||(this.feed.comments=[]),this.feed.comments.push(e.comment),this.$emit("commented",e.comment),this.feed.comments_count=parseInt(this.feed.comments_count)+1,this.commenting=!1,this.comment=null,this.showCommentBox=!1,this.$nextTick(()=>{this.comment={message:"",media_image:""}}),this.showCommentBox=!0}).catch(e=>{this.$handleError(e)}).finally(()=>{this.saving=!1}))},showCommentForm(){this.show_all_comments=!0,this.commenting=!0,this.$nextTick(()=>{this.$refs.commentInput&&this.$refs.commentInput.focus()})},showAllComments(){this.show_all_comments=!0,this.commenting=!0}}},ZWe=["id"],JWe={key:0,class:"feed_commenting"},XWe={class:"person_avatar"},QWe=["src"],eqe={key:0,class:"feed_comment_input"},tqe={key:1,class:""},nqe={style:{padding:"0",margin:"0","text-align":"center"}};function oqe(e,t,n,o,r,i){const s=z("feed-comments"),l=Ye,a=z("feed-text-composer"),c=z("router-link"),u=Mt("loading");return _(),k("div",{class:R(["fcom_comment_box","fcom_comment_box_"+n.feed.type])},[le(e.$slots,"before_comment_box"),y(s,{checkPermission:n.checkPermission,onForceShowAll:i.showAllComments,show_all:r.show_all_comments,feed:n.feed},null,8,["checkPermission","onForceShowAll","show_all","feed"]),r.commenting||n.is_single?(_(),k("div",{key:0,id:"feed_comment_form_"+n.feed.id,class:"feed_comment"},[!n.checkPermission||e.hasCommentPermission(n.feed)?(_(),k(Q,{key:0},[r.comment?(_(),k("div",JWe,[g("div",XWe,[g("img",{alt:"",src:e.auth.avatar},null,8,QWe)]),r.showCommentBox?(_(),k("div",eqe,[y(a,{mentionQuery:{space_id:n.feed.space_id},autofocus_changed:r.commenting,autofocus:r.commenting,disabled:r.saving,placeholder:e.$t("Write a comment"),content:r.comment},{default:x(()=>[ze((_(),L(l,{disabled:r.saving,class:"fcom_primary_button",size:"small",onClick:t[0]||(t[0]=d=>i.postComment())},{default:x(()=>[te(M(e.$t("Reply")),1)]),_:1},8,["disabled"])),[[u,r.saving]])]),_:1},8,["mentionQuery","autofocus_changed","autofocus","disabled","placeholder","content"])])):O("",!0)])):O("",!0)],64)):(_(),k("div",tqe,[g("p",nqe,[te(M(e.$t("Please join the Space to post a comment."))+" ",1),n.feed.space?(_(),L(c,{key:0,to:{name:"space_feeds",params:{space:n.feed.space.slug}}},{default:x(()=>[te(M(e.$t("Go to community")),1)]),_:1},8,["to"])):O("",!0)])]))],8,ZWe)):O("",!0),le(e.$slots,"after_comment_box")],2)}const rqe=de(YWe,[["render",oqe]]),iqe={name:"ViewLesson",components:{CircleIcon:HL,AppLayout:Vr,Layout:mr,MediaPreview:gd,CommentBox:rqe,ChatIcon:R4},props:["course","sections","track","currentLesson","lessonsCount","currentLessonIndex","lessonsCount"],data(){return{completing:!1,isFullScreen:!1,sm_side_show:!1,isTransiting:!1}},watch:{currentLessonIndex(){this.sm_side_show=!1}},computed:{isCompleted(){return this.track.completed_lessons.includes(this.currentLesson.id.toString())}},methods:{markAsComplete(){this.completing=!0;let e=this.isCompleted?"incomplete":"completed";this.$put("courses/"+this.course.id+"/lessons/"+this.currentLesson.id+"/completion",{state:e}).then(t=>{this.track.completed_lessons=t.track.completed_lessons,this.$emit("updateTrack",t.track),e=="completed"&&this.$emit("setNextLesson")}).catch(t=>{this.$handleError(t)}).finally(()=>{this.completing=!1})},toggleFullScreen(){this.isFullScreen=!this.isFullScreen,this.$storeLocalData("lesson_fs",this.isFullScreen?"yes":"no")},scrollToComments(){this.$refs.lesson_scroller&&this.$refs.lesson_scroller.scrollTo({top:this.$refs.fcom_course_comments.offsetTop})},gotoLesson(e){this.isTransiting=!0,this.$emit("goToLesson",e.slug),setTimeout(()=>{this.isTransiting=!1},300)}},mounted(){this.isFullScreen=this.$getLocalData("lesson_fs")=="yes",window.scrollTo(0,0),this.$refs.lesson_scroller.setScrollTop(0),this.$route.query.comment_id&&setTimeout(()=>{let e=document.getElementById("comment_"+this.$route.query.comment_id);e&&(this.$refs.lesson_scroller.setScrollTop(e.offsetTop),e.classList.add("fcom_highlight_comment"))},500),document.body.classList.add("fcom-no-scroll")},beforeUnmount(){document.body.classList.remove("fcom-no-scroll")}},sqe={key:0},lqe={style:{padding:"2rem"}},aqe={class:"fcom_back_space"},cqe={class:"fcom_lesson_name"},uqe={class:"fcom_lesson_nav"},dqe={key:1},fqe={class:"fcom_lesson_details"},pqe={class:"fcom_lesson_header"},hqe={class:"fcom_lesson_title"},mqe={class:"fcom_lesson_number"},_qe={class:"fcom_lesson_nav"},gqe={key:0,class:"fcom_locked_container"},vqe={class:"fcom_locker"},bqe={class:"fcom_lesson_body feed_texts"},yqe=["innerHTML"],wqe={key:0,ref:"fcom_course_comments",class:"fcom_lesson_comments"},kqe={class:"fcom_lesson_comment_box"},xqe={class:"fcom_section_sidebar_title"},Cqe={class:"fcom_section_items"},Sqe={class:"fcom_section_primary_item"},$qe={class:"fcom_section_primary_item_title"},Eqe=["onClick"],Tqe={class:"fcom_heading_item clickable"};function Mqe(e,t,n,o,r,i){const s=Wt,l=z("ArrowLeft"),a=ge,c=z("FullScreen"),u=Ye,d=z("ChatIcon"),f=z("ArrowRight"),p=z("Operation"),h=z("media-preview"),m=z("CommentBox"),b=$o,v=Os,E=z("ArrowDown"),w=z("SuccessFilled"),S=z("Lock"),T=z("CircleIcon"),$=vh,A=hd,P=z("layout"),N=z("app-layout");return _(),L(N,{class:R({fcom_full_screen:r.isFullScreen,fcom_show_right_aside:r.sm_side_show}),wrapper_class:"fcom_single_layout fcom_full_layout"},{default:x(()=>[n.course&&n.currentLesson?(_(),L(P,{key:0,wrapper_class:"no_bg_layout"},{default:x(()=>[y(A,{class:"fcom_lesson_container fcom_resp_container"},{default:x(()=>[y(v,{style:{height:"calc(100vh - 50px)"},class:"fcom_lesson_wrap"},{default:x(()=>[r.isTransiting?(_(),k("div",sqe,[g("div",lqe,[y(s,{rows:10,animated:!0})])])):(_(),L(b,{key:1,ref:"lesson_scroller"},{default:x(()=>[g("div",aqe,[g("div",{class:"clickable fcom_go_back",onClick:t[0]||(t[0]=I=>e.$router.push({name:"view_course"}))},[y(a,null,{default:x(()=>[y(l)]),_:1}),g("span",cqe,M(n.course.title),1)]),g("div",uqe,[y(u,{title:"Go Full Screen",onClick:i.toggleFullScreen,size:"small",text:""},{default:x(()=>[y(a,null,{default:x(()=>[y(c)]),_:1})]),_:1},8,["onClick"]),n.currentLesson.is_locked?O("",!0):(_(),k(Q,{key:0},[n.currentLesson.meta.enable_comments==="yes"?(_(),L(u,{key:0,onClick:i.scrollToComments,bg:"",size:"small",text:""},{default:x(()=>[y(a,null,{default:x(()=>[y(d)]),_:1})]),_:1},8,["onClick"])):O("",!0),y(u,{class:R(i.isCompleted?"":"fcom_primary_button"),style:{"margin-left":"15px"},type:"info",onClick:i.markAsComplete,size:"small"},{default:x(()=>[i.isCompleted?(_(),k("span",dqe,M(e.$t("Completed")),1)):(_(),k(Q,{key:0},[g("span",null,M(e.$t("Complete Lesson")),1),y(a,null,{default:x(()=>[y(f)]),_:1})],64))]),_:1},8,["class","onClick"])],64)),y(u,{style:{"margin-left":"15px"},size:"small",text:"",class:"fcom_sm_only",onClick:t[1]||(t[1]=I=>r.sm_side_show=!r.sm_side_show)},{default:x(()=>[y(a,null,{default:x(()=>[y(p)]),_:1})]),_:1})])]),g("div",fqe,[g("div",pqe,[g("div",hqe,[g("p",mqe,M(e.$t("Lesson %1s of %2s",n.currentLessonIndex+1,n.lessonsCount)),1),g("h1",null,M(n.currentLesson.title),1)]),g("div",_qe,[y(u,{onClick:t[2]||(t[2]=I=>e.$emit("setPrevLesson")),disabled:n.currentLessonIndex===0,size:"small"},{default:x(()=>[y(a,null,{default:x(()=>[y(l)]),_:1})]),_:1},8,["disabled"]),y(u,{onClick:t[3]||(t[3]=I=>e.$emit("setNextLesson")),disabled:n.currentLessonIndex+1===n.lessonsCount,size:"small"},{default:x(()=>[y(a,null,{default:x(()=>[y(f)]),_:1})]),_:1},8,["disabled"])])]),n.currentLesson.is_locked?(_(),k("div",gqe,[g("div",vqe,[g("h1",null,M(e.$t("This lesson is not published for you yet")),1),g("p",null,M(e.$t("This lesson will be available to you on %s",e.smartDate(n.currentLesson.unclock_date,!0))),1),y(u,{type:"info",onClick:t[4]||(t[4]=I=>e.$router.push({name:"view_course"}))},{default:x(()=>[te(M(e.$t("Back to course index")),1)]),_:1})])])):(_(),k(Q,{key:1},[y(h,{media_item:n.currentLesson.meta.media},null,8,["media_item"]),g("div",bqe,[g("div",{class:"fcom_lesson_content feed_md_content",innerHTML:n.currentLesson.content},null,8,yqe)])],64))]),!n.currentLesson.is_locked&&n.currentLesson.meta.enable_comments==="yes"?(_(),k("div",wqe,[g("div",kqe,[y(m,{feed:n.currentLesson,showAll:!0,checkPermission:!1},{before_comment_box:x(()=>[g("h3",null,M(e.$t("Lesson discussions")),1)]),_:1},8,["feed"])])],512)):O("",!0)]),_:1},512))]),_:1}),y($,{class:"fcom_lesson_sidebar fcom_resp_side",width:"320px"},{default:x(()=>[g("div",xqe,[g("h3",null,M(e.$t("Lessons")),1)]),g("div",Cqe,[(_(!0),k(Q,null,Te(n.sections,I=>(_(),k("div",{key:I.id,class:"fcom_section_primary"},[g("div",Sqe,[g("div",$qe,[y(a,{class:"clickable",onClick:B=>I.is_closed=!I.is_closed},{default:x(()=>[I.is_closed?(_(),L(f,{key:0})):(_(),L(E,{key:1}))]),_:2},1032,["onClick"]),g("h4",null,M(I.title),1)])]),I.is_closed?O("",!0):(_(!0),k(Q,{key:0},Te(I.lessons,B=>(_(),k("div",{class:R([{fcom_current_lesson:B.id==n.currentLesson.id},"fcom_section_item"]),key:B.id},[g("div",{onClick:V=>i.gotoLesson(B),class:"fcom_section_item_title"},[g("p",Tqe,[n.track.completed_lessons.includes(B.id.toString())?(_(),L(a,{key:0,style:{color:"#008a2e"}},{default:x(()=>[y(w)]),_:1})):I.is_locked||!n.track.isEnrolled?(_(),L(a,{key:1},{default:x(()=>[y(S)]),_:1})):(_(),L(a,{key:2},{default:x(()=>[y(T)]),_:1})),te(" "+M(B.title),1)])],8,Eqe)],2))),128))]))),128))])]),_:1})]),_:1})]),_:1})):O("",!0)]),_:1},8,["class"])}const Aqe=de(iqe,[["render",Mqe]]),Iqe={name:"LeaderLists",props:["leaders"],computed:{isAll(){return this.leaders.key==="all_time"}}},Oqe={class:"fcom_box_list"},Pqe={class:"fcom_box_list_header"},Nqe={class:"fcom_box_list_body"},Lqe={class:"fcom_person_lists"},Rqe={class:"fcom_leader"},Fqe={key:0,class:"fcom_serial_suffix"},Dqe=g("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[g("path",{d:"M0 0L11 0V10.0442L5.73392 6.32786L0 10.0442L0 0Z",fill:"currentColor"})],-1),Bqe=[Dqe],zqe={key:0,class:"fcom_leader_stat"};function Vqe(e,t,n,o,r,i){const s=z("UserAvatar"),l=z("UserRouteLink");return _(),k("div",Oqe,[g("div",Pqe,M(n.leaders.title),1),g("div",Nqe,[g("ul",Lqe,[(_(!0),k(Q,null,Te(n.leaders.items,(a,c)=>(_(),k("li",{key:a.user_id},[g("div",Rqe,[g("div",{class:R(["fcom_serial_"+(c+1),"fcom_serial"])},[g("span",null,M(c+1),1),c<3?(_(),k("div",Fqe,Bqe)):O("",!0)],2),y(s,{with_level:!1,xprofile:a.xprofile},null,8,["xprofile"]),y(l,{show_badge:!0,xprofile:a.xprofile},null,8,["xprofile"])]),parseInt(a.total_points)?(_(),k("div",zqe,[ze(g("span",null,"+",512),[[sn,!i.isAll]]),te(" "+M(a.total_points),1)])):O("",!0)]))),128))])])])}const jqe=de(Iqe,[["render",Vqe]]),Hqe={name:"LeaderTooltip",components:{InfoFilled:ah},props:{levelChunks:{type:Array,required:!0}}},Uqe={class:"fcoml_tooltip_content"},Wqe={class:"fcoml_tooltip_title"},qqe={class:"fcoml_tooltip_subtitle"},Kqe=["innerHTML"],Gqe={class:"fcoml_tooltip_subtitle"},Yqe={class:"fcoml_tooltip_desc"},Zqe={class:"fcoml_tooltip_levels"},Jqe={class:"levels_list"},Xqe={class:"level_title"},Qqe={class:"level_points"};function eKe(e,t,n,o,r,i){const s=z("InfoFilled"),l=ge,a=Ye,c=po;return _(),L(c,{persistent:!1,"popper-class":"fcoml_tooltip_popover",width:550,effect:"dark",trigger:"click"},{reference:x(()=>[y(a,{text:""},{default:x(()=>[y(l,null,{default:x(()=>[y(s)]),_:1})]),_:1})]),default:x(()=>[g("div",Uqe,[g("h5",Wqe,M(e.$t("Leaderboard Points")),1),g("p",qqe,M(e.$t("1 Like = 1 Point")),1),g("p",{class:"fcoml_tooltip_desc",innerHTML:e.$t("__LEADERBOARD_DESC_INS")},null,8,Kqe),g("p",Gqe,M(e.$t("Levels")),1),g("p",Yqe,M(e.$t("As you gain points, you level up. Your level is shown at the bottom right of your avatar.")),1),g("div",Zqe,[(_(!0),k(Q,null,Te(n.levelChunks,(u,d)=>(_(),k("div",{key:d},[g("ul",Jqe,[(_(!0),k(Q,null,Te(u,f=>(_(),k("li",{key:f.level,class:"level_item"},[g("div",Xqe,M(f.title),1),g("div",Qqe,M(e.$t("%d points",f.min_points)),1)]))),128))])]))),128))])])]),_:1})}const tKe=de(Hqe,[["render",eKe]]),nKe={name:"LeaderBoard",components:{InfoFilled:ah,LeaderLists:jqe,AppLayout:Vr,Layout:mr,LeaderTooltip:tKe},data(){return{leaderboard:[],loading:!1}},computed:{userLevel(){return this.appVars.auth.user_id?_l(this.appVars.auth.total_points):null},requiredPoints(){return parseInt(this.userLevel.max_points)-parseInt(this.appVars.auth.total_points)+1},levelChunks(){let e=Object.values(this.appVars.leaderboard_levels);const t=Math.ceil(e.length/3);return e.reduce((n,o,r)=>{const i=Math.floor(r/t);return n[i]||(n[i]=[]),n[i].push(o),n},[])}},methods:{fetchLeaders(){this.loading=!0,this.$get("leaderboard").then(e=>{this.leaderboard=e.leaderboard}).catch(e=>{this.$handleError(e)}).finally(()=>{this.loading=!1})}},mounted(){this.fetchLeaders(),this.changeTitle(this.$t("Leaderboard"))}},oKe={key:0,class:"fcom_leaderboard_profile"},rKe={class:"fcom_leaderboard_profile_inner"},iKe={class:"fcom_profile_header"},sKe={class:"fcom_profile_info"},lKe={class:"info_avatar"},aKe={class:"info_user"},cKe={class:"fcom_level_name"},uKe={class:"fcoml_level_sub"},dKe={class:"fcoml_level_sub_icon"},fKe={class:"fcoml_level_sub_text"},pKe={class:"fcom_leaderboard_profile_avatar"},hKe={class:"fcom_leaderboard_levels"},mKe=["title"],_Ke={key:1},gKe={class:"fcoml_level_detail"},vKe={class:"fcoml_level_title"},bKe={class:"fcoml_level_sub"},yKe={class:"fcom_leaderboard_items"},wKe={key:1,class:"white_loaded"};function kKe(e,t,n,o,r,i){const s=z("UserAvatar"),l=z("UserRouteLink"),a=z("LeaderTooltip"),c=z("Lock"),u=ge,d=gh,f=_h,p=z("leader-lists"),h=Wt,m=z("layout"),b=z("app-layout");return _(),L(b,{wrapper_class:"fcom_single_layout fcom_max_layout"},{default:x(()=>[y(m,{wrapper_class:"no_bg_layout",title:e.$t("Leaderboards")},{default:x(()=>[i.userLevel?(_(),k("div",oKe,[g("div",rKe,[g("div",iKe,[g("div",sKe,[g("div",lKe,[y(s,{with_level:!0,with_completion:!0,xprofile:e.appVars.auth},null,8,["xprofile"])]),g("div",aKe,[y(l,{show_badge:!0,show_pop:!1,xprofile:e.appVars.auth},null,8,["xprofile"]),g("div",cKe,M(i.userLevel.title),1)])]),g("div",uKe,[g("div",dKe,[g("span",null,"🏆 "+M(e.auth.total_points),1),te(" | "),g("span",null,M(e.$t("Level %d",i.userLevel.level)),1)]),g("div",fKe,[te(M(e.$t("%d points to level up!",i.requiredPoints))+" ",1),y(a,{levelChunks:i.levelChunks},null,8,["levelChunks"])])])]),g("div",pKe,[y(f,{gutter:20},{default:x(()=>[(_(!0),k(Q,null,Te(i.levelChunks,v=>(_(),L(d,{sm:24,md:8},{default:x(()=>[g("ul",hKe,[(_(!0),k(Q,null,Te(v,E=>(_(),k("li",null,[g("div",{title:`${E.min_points} points`,class:R(["fcom_level_icon",{fcom_is_in_level:i.userLevel.max_points>=E.max_points}])},[i.userLevel.max_points<E.max_points?(_(),L(u,{key:0},{default:x(()=>[y(c)]),_:1})):(_(),k("span",_Ke,M(E.level),1))],10,mKe),g("div",gKe,[g("div",vKe,M(E.title),1),g("div",bKe,M(E.tagline),1)])]))),256))])]),_:2},1024))),256))]),_:1})])])])):O("",!0),g("div",yKe,[y(f,{gutter:30},{default:x(()=>[(_(!0),k(Q,null,Te(r.leaderboard,v=>(_(),L(d,{key:v.key,md:8,sm:24},{default:x(()=>[y(p,{leaders:v},null,8,["leaders"])]),_:2},1024))),128))]),_:1})]),r.loading?(_(),k("div",wKe,[y(h,{rows:16,animated:!0})])):O("",!0)]),_:1},8,["title"])]),_:1})}const xKe=de(nKe,[["render",kKe]]),CKe=[{name:"dashboard",path:"/dashboard",component:HPe,meta:{active_menu:"dashboard",title:"Dashboard"}},{path:"/",component:KLe,meta:{active_menu:"dashboard"},children:[{name:"all_feeds",path:"",component:XLe},{name:"single_feed",path:"post/:feed_slug",component:k9,props:!0}]},{path:"/space/:space/",component:LDe,props:!0,meta:{in_space:!0},children:[{name:"space_feeds",path:"home",component:zDe,props:!0,meta:{in_space:!0,show_sidebar:!0}},{name:"space_about",path:"about",component:RL,props:!0,meta:{in_space:!0,show_sidebar:!0}},{name:"space_feed",path:"post/:feed_slug",component:k9,props:!0,meta:{in_space:!0,show_sidebar:!0}},{name:"space_members",path:"members",component:zBe,props:!0,meta:{in_space:!0,show_sidebar:!1}},{name:"space_invitations",path:"invitations",component:tze,props:!0,meta:{in_space:!0,show_sidebar:!1}}]},{path:"/discover/spaces",name:"spaces",component:Rze,meta:{active_menu:"spaces"}},{name:"all_members",path:"/members",component:pUe,props:!0,meta:{active_menu:"all_members"}},{path:"/u/:username/",component:MVe,props:!0,meta:{active_menu:"all_members"},children:[{name:"user_profile",path:"",component:Mje,meta:{active_menu:"all_members"}},{name:"user_spaces",path:"spaces",component:XVe,meta:{active_menu:"all_members",disable_sidebar:!0}},{name:"update_profile",path:"update",component:cje,meta:{active_menu:"all_members",disable_sidebar:!0}},{name:"user_profile_about",path:"about",component:jL,meta:{active_menu:"all_members"}},{name:"user_profile_feeds",path:"posts",component:OVe,meta:{active_menu:"all_members"}},{name:"user_comments",path:"comments",component:jje,meta:{active_menu:"all_members"}},{name:"user_notification_settings",path:"notification-settings",component:FHe,meta:{active_menu:"all_members",disable_sidebar:!0}}]},{path:"/notifications",name:"notifications",component:xUe,meta:{}},{name:"bookmarks",path:"/bookmarks",component:EUe,meta:{active_menu:"bookmarks"}},{name:"courses",path:"/courses",component:JUe,meta:{active_menu:"courses"}},{path:"/course/:course_slug",component:rWe,props:!0,meta:{active_menu:"courses",in_course:!0},children:[{props:!0,path:"lessons",component:GWe,name:"view_course",meta:{in_course:!0}},{props:!0,path:"lessons/:lesson_slug/view",component:Aqe,name:"view_lesson",meta:{in_course:!0}}]},{name:"leaderboards",path:"/leaderboards",component:xKe,meta:{active_menu:"leaderboards"}}],SKe={name:"NotFound",data(){return{message:"Please wait while we redirect you to the appropriate page..",is404:!1,require_auth:!1}},methods:{lookForPost(e){this.$get("feeds/"+e+"/by-slug").then(t=>{this.$router.push({name:"single_feed",params:{feed_slug:e}})}).catch(t=>{this.$router.push({name:"all_feeds"}),this.is404=!0})}},mounted(){let e=this.$route.path;if(!e){this.message="The requested page could not be found";return}e=e.replace(/^\/+/,"");let n=e.split("/")[0];if(n=="community"){e=e.replace(/^community\//,"/space/"),this.$router.push(e);return}else if(n=="fcom_route"){if(this.$route.query.route=="user_notification_settings")if(this.auth.username){this.$router.push({name:"user_notification_settings",params:{username:this.auth.username}});return}else{window.location.href=this.getCurrentAuthUrl();return}}else if(n=="u")if(this.auth.username){this.$router.push({name:"user_profile",params:{username:this.auth.username}});return}else{window.location.href=this.appVars.auth_url;return}this.lookForPost(n)}};function $Ke(e,t,n,o,r,i){return _(),k("h1",null,M(r.message),1)}const EKe=de(SKe,[["render",$Ke]]),TKe={name:"VerifiedSign"},MKe={class:"fcom_verified"},AKe=g("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img","data-testid":"icon-verified"},[g("g",null,[g("path",{d:"M20.396 11c-.018-.646-.215-1.275-.57-1.816-.354-.54-.852-.972-1.438-1.246.223-.607.27-1.264.14-1.897-.131-.634-.437-1.218-.882-1.687-.47-.445-1.053-.75-1.687-.882-.633-.13-1.29-.083-1.897.14-.273-.587-.704-1.086-1.245-1.44S11.647 1.62 11 1.604c-.646.017-1.273.213-1.813.568s-.969.854-1.24 1.44c-.608-.223-1.267-.272-1.902-.14-.635.13-1.22.436-1.69.882-.445.47-.749 1.055-.878 1.688-.13.633-.08 1.29.144 1.896-.587.274-1.087.705-1.443 1.245-.356.54-.555 1.17-.574 1.817.02.647.218 1.276.574 1.817.356.54.856.972 1.443 1.245-.224.606-.274 1.263-.144 1.896.13.634.433 1.218.877 1.688.47.443 1.054.747 1.687.878.633.132 1.29.084 1.897-.136.274.586.705 1.084 1.246 1.439.54.354 1.17.551 1.816.569.647-.016 1.276-.213 1.817-.567s.972-.854 1.245-1.44c.604.239 1.266.296 1.903.164.636-.132 1.22-.447 1.68-.907.46-.46.776-1.044.908-1.681s.075-1.299-.165-1.903c.586-.274 1.084-.705 1.439-1.246.354-.54.551-1.17.569-1.816zM9.662 14.85l-3.429-3.428 1.293-1.302 2.072 2.072 4.4-4.794 1.347 1.246z"})])],-1),IKe=[AKe];function OKe(e,t,n,o,r,i){return _(),k("span",MKe,IKe)}const PKe=de(TKe,[["render",OKe]]),NKe={name:"WelcomeBanner",components:{MediaPreview:gd},data(){return{config:this.appVars.welcome_banner}},computed:{showMedia(){return this.config&&this.config.mediaType=="video"&&this.config.bannerVideo},showCtaButtons(){var e;return this.config&&((e=this.config.ctaButtons)==null?void 0:e.length)&&this.config.ctaButtons.some(t=>t.link&&t.label)},isRemovable(){return this.config&&this.config.allowClose=="yes"},showBanner(){if(!this.isRemovable)return!0;let e=this.Storage.get(this.getCloseKey,!1);return e?new Date().getTime()>e:!0},getCloseKey(){return this.appVars.user_id?"fcom_welcome_banner_closed_auth":"fcom_welcome_banner_closed_guest"}},methods:{closeBanner(){this.config=null;let e=new Date().getTime()+7*24*60*60*1e3;this.Storage.set(this.getCloseKey,e)}}},LKe={key:0,class:"fcom_welcome_box"},RKe={key:2,class:"fcom_welcome_title"},FKe=["innerHTML"],DKe={key:4,class:"fcom_welcome_cta_buttons"},BKe=["href","target"];function zKe(e,t,n,o,r,i){const s=z("media-preview"),l=Hl,a=z("MoreFilled"),c=ge,u=Ye,d=pA,f=hA,p=fA;return r.config&&i.showBanner?(_(),k("div",LKe,[i.showMedia?(_(),L(s,{key:0,media_item:r.config.bannerVideo},null,8,["media_item"])):r.config.bannerImage?(_(),L(l,{key:1,class:"feed_media",alt:e.$t("Image Preview"),src:r.config.bannerImage},null,8,["alt","src"])):O("",!0),r.config.title?(_(),k("h2",RKe,M(r.config.title),1)):O("",!0),r.config.description_rendered?(_(),k("div",{key:3,class:"fcom_welcome_sub",innerHTML:r.config.description_rendered},null,8,FKe)):O("",!0),i.showCtaButtons?(_(),k("div",DKe,[(_(!0),k(Q,null,Te(r.config.ctaButtons,h=>(_(),k(Q,null,[h.link&&h.label?(_(),k("a",{key:0,href:h.link,target:h.newTab=="yes"?"_blank":"",class:R({"el-button fcom_primary_button":h.type=="primary","el-button fcom_secondary_button":h.type=="secondary","el-button is-text":h.type=="text","el-link fcom_link_button":h.type=="link"})},M(h.label),11,BKe)):O("",!0)],64))),256))])):O("",!0),i.isRemovable?(_(),L(p,{key:5,trigger:"click",class:"fcom_welcome_close"},{dropdown:x(()=>[y(f,null,{default:x(()=>[y(d,{onClick:i.closeBanner},{default:x(()=>[te(M(e.$t("Hide Banner")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[y(u,{"aria-label":e.$t("Hide Banner"),class:"fcom_dot_menu",size:"small",text:""},{default:x(()=>[y(c,null,{default:x(()=>[y(a)]),_:1})]),_:1},8,["aria-label"])]),_:1})):O("",!0)])):O("",!0)}const VKe=de(NKe,[["render",zKe]]);Wd(()=>Promise.resolve().then(()=>hZe),void 0);const jKe=[_Z,PZ,DZ,mJ,MJ,YZ,eJ,OJ,uZ,hZ,wT,gT,iJ,rZ,nJ,pT,_T,XZ,o3,ud,yT,T1,lh,vZ,Gb,NJ,zZ,qZ,yJ,nZ,CZ,dJ,vT,HZ,aZ,EZ,lJ,mT,bT,ah];function rp(e){const t=[];if(typeof e=="object"&&e.join===void 0)for(const n in e)t.push(rp(e[n]));else if(typeof e=="object"&&e.join!==void 0)for(const n in e)t.push(rp(e[n]));else typeof e=="function"||typeof e=="string"&&t.push(e);return t.join("<br />")}function HKe(e){let t;try{t=new URL(e)}catch{t=new URL(e,"https://fluentcommunity.co")}let n=t.pathname;return n=n.replace(/^\//,""),n.split("/")[0]||""}const Bn=_w(EPe);Bn.use(hue);Bn.config.globalProperties.appVars=window.fluentComAdmin;Bn.config.globalProperties.auth=window.fluentComAdmin.auth;Bn.config.globalProperties.has_pro=!!window.fluentComAdmin.pro;let T2="40%",M2="60%";window.innerWidth<600?(M2="95%",T2="90%"):window.innerWidth<800&&(M2="80%",T2="80%");jKe.forEach(e=>{Bn.component(e.name,e)});Bn.component("VerifiedSign",PKe);Bn.component("UserAvatar",$L);Bn.component("UserRouteLink",Md);Bn.component("WelcomeBanner",VKe);Bn.component("UserBadge",VL);function x9(){Bn.use(window.FluentCommunityUtil.eventBus);const e=window.FluentCommunityUtil.Rest;Bn.mixin({data(){return{Storage:window.FluentCommunityUtil.Storage,is_rtl:!1,drawerWidth:T2,dialogWidth:M2,feedMonitorCache:{},mounted:!1,isMobile:window.innerWidth<=768,has_leaderboard:this.appVars.features.leaderboard}},methods:{$get:e.get,$post:e.post,$uploadFile:e.uploadFile,$put:e.put,$del:e.delete,$patch:e.patch,changeTitle(r){document.title=r+" - "+this.appVars.site_title},$handleError(r){let i="";typeof r=="string"?i=r:r&&r.message?i=r.message:i=rp(r),i||(i="Something is wrong!"),typeof i!="string"&&(i=rp(i)),this.$notify({type:"error",title:"Error",message:i,dangerouslyUseHTMLString:!0})},convertToText:rp,$t(r){r=window.fluentComAdmin.i18n[r]||r;const i=Array.prototype.slice.call(arguments,1);if(i.length===0)return r;const s=/%(\d*)s|%d/g;let l=0;return r=r.replace(s,(a,c)=>{if(c){const u=parseInt(c,10)-1;return u<i.length?i[u]:a}else return l<i.length?i[l++]:a}),r},$_n(r,i,s){return parseInt(s.toString().replace(/,/g,""),10)>1?this.$t(i,s):this.$t(r,s)},$labelize(r){return r?(r=r.charAt(0).toUpperCase()+r.slice(1),window.fluentComAdmin.i18n[r]?window.fluentComAdmin.i18n[r]:r.replace(/_/g," ").replace(/\b\w/g,i=>i.toUpperCase())):""},dayjs,relativeTimeFromUtc(r){return dayjs.utc(r).local().fromNow()},$storeLocalData(r,i){this.Storage.set(r,i)},$getLocalData(r,i=""){return this.Storage.get(r,i)},ucFirst(r){return r?r.charAt(0).toUpperCase()+r.slice(1):""},ucWords(r){return r?r.replace(/\b[a-z]/g,function(i){return i.toUpperCase()}):""},smartDate(r,i=!1,s=!1){if(!r)return"";let l="D MMM, YYYY";dayjs(r).isSame(new Date,"year")?(l="D MMM",i&&(Math.abs(dayjs(r).diff(new Date,"days"))<=5||s)&&(dayjs(r).minute()==0?l="D MMM, ha":l="D MMM, hh:mma")):i&&s&&(l="D MMM, YYYY, hh:mma");const a=dayjs(r);return a.isValid()?a.format(l):null},hasPermission(r){return this.appVars.permissions[r]},isAdmin(){return!!this.appVars.permissions.community_admin},hasCourseAdminAccess(){return!!this.appVars.permissions.course_admin},hasCourseCreatorAccess(){return!!this.appVars.permissions.course_creator},canDeleteFeed(r){return this.auth.user_id&&(r.user_id==this.auth.user_id||this.hasPermission("delete_any_feed"))},canEditFeed(r){return this.auth.user_id&&(r.user_id==this.auth.user_id||this.hasPermission("edit_any_feed"))},canDeleteComment(r){return this.auth&&(r.user_id==this.auth.user_id||this.hasPermission("delete_any_comment"))},canEditComment(r){return this.auth.user_id&&(r.user_id==this.auth.user_id||this.hasPermission("edit_any_comment"))},hasSpaceAccess(r){return r?this.appVars.user_membership_slugs.indexOf(r)!==-1:!0},hasInPermission(r,i){return!i||typeof i!="object"?!1:i[r]},hasCurrentSpacePermission(r){return window.fcom_current_community?this.hasInPermission(r,window.fcom_current_community.permissions):!1},hasPermissionOrInCurrentSpace(r){return this.hasPermission(r)?!0:this.hasCurrentSpacePermission(r)},humanDateDiff(r){if(!r)return"";const i=dayjs.utc(r,"YYYY-MM-DD HH:mm:ss");if(!i.isValid())return"";const s=i.add(this.appVars.date_offset,"s");return dayjs(s.format("YYYY-MM-DD HH:mm:ss")).from(dayjs(dayjs.utc().format("YYYY-MM-DD HH:mm:ss")))},hasCommentPermission(r){var i;return this.auth.user_id?!r.space_id&&!r.course_id?this.auth.user_id&&(r.user_id==this.auth.user_id||r.privacy=="public"):this.hasSpaceAccess((i=r.space)==null?void 0:i.slug):!1},getExcerpt(r,i=250){if(!r)return"";let s=r.replace(/(<([^>]+)>)/ig,"");return s=s.replace(/(\*\*|__)(.*?)\1/g,"$2"),s=s.replace(/(#+)(.*)/g,"$2"),s=s.replace(/\[(.*?)\]\((.*?)\)/g,"$1"),s.length>i&&(s=s.substring(0,i)+"..."),s},$convertToBoolean(r){return r==="true"||r===!0||r===1||r==="1"||r==="yes"||r==="on"},each:ba,hasFeature(r){return this.appVars.features[r]},isCommunityModerator(){return window.fluentComAdmin.auth.community_roles.some(r=>r==="admin"||r==="moderator")},isSpaceModerator(r){var s,l;return["admin","moderator"].includes((l=(s=r==null?void 0:r.membership)==null?void 0:s.pivot)==null?void 0:l.role)},isModerator(r){if(this.isCommunityModerator)return!0;if(!r)return!1;const i=this.auth.spaces[r];return this.isSpaceModerator(i)},getCurrentAuthUrl(){let r=window.location.href,i=this.appVars.auth_url;return i=i.replace(/(\?|&)redirect_to=[^&]+/,""),i.indexOf("?")===-1?i+="?":i+="&",i+"redirect_to="+encodeURIComponent(r)},$formatNumber(r){return r&&r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},$getRouteLink(r,i={}){return ba(i,(s,l)=>{r=r.replace(":"+l,s)}),this.appVars.portal_url+r},isOnline(r){if(!r)return!1;const s=dayjs.utc(r,"YYYY-MM-DD HH:mm:ss").add(this.appVars.date_offset,"seconds").diff(dayjs.utc(),"minutes");return s<=5&&s>=0},doNothing(){console.log("OK")}},mounted(){if(window.fcom_mounted)return;window.fcom_mounted=!0,document.addEventListener("click",i=>{if(i.metaKey||i.ctrlKey)return;let s=i.target.getAttribute("href");if(!s){const l=i.target.closest("a");l&&(s=l.getAttribute("href"))}if(s){if(window.fluentComAdmin.is_absolute_url){let l=HKe(s);if(l&&window.fluentComAdmin.portal_paths.indexOf(l)===-1){document.dispatchEvent(new CustomEvent("fcomExternalLinkClicked",{detail:{href:s}}));return}}if(s.startsWith(window.fluentComAdmin.urls.portal_base)){if(s.indexOf("fcom_action")!==-1||s.startsWith(window.fluentComAdmin.urls.portal_base+"admin"))return;i.preventDefault(),s=s.replace(window.fluentComAdmin.urls.portal_base,"/"),this.$router.push(s)}else document.dispatchEvent(new CustomEvent("fcomExternalLinkClicked",{detail:{href:s}}))}});let r=window.fluentComAdmin.dateTime18n;dayjs.updateLocale("en",{weekdays:r.weekdays.split("_"),months:r.months.split("_"),weekdaysShort:r.weekdaysShort.split("_"),monthsShort:r.monthsShort.split("_"),weekdaysMin:r.weekdaysMin.split("_"),formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},relativeTime:this.isMobile?r.relativeTimeMobile:r.relativeTime})}}),Bn.config.globalProperties.$notify=zue,Bn.config.globalProperties.$confirm=av.confirm,Bn.config.globalProperties.$promt=av.prompt,Bn.config.globalProperties.$messageBox=av,Bn.config.globalProperties.$gloablStorage={};const t=window.FluentCommunityUtil.hooks.applyFilters("fluent_com_portal_routes",CKe);t.push({path:"/:catchAll(.*)",name:"not-found",component:EKe});let n=null;window.fluentComAdmin.routing_system=="hash"?n=A5({routes:t,history:Ej()}):n=A5({routes:t,history:EE(window.fluentComAdmin.portal_slug)});const o=window.FluentCommunityUtil.hooks.applyFilters("fluent_com_portal_app",Bn);window.fluentFrameworkApp=o.use(n).mount("#fluent_com_portal"),document.dispatchEvent(new Event("fluentComPortalAppReady")),window.fluentFrameworkAppRouter=n}window.FluentCommunityUtil?x9():document.addEventListener("fluentCommunityUtilReady",function(){x9()});var Aa,Su;class UKe{constructor(t){mi(this,Aa,void 0);mi(this,Su,new Set);Eo(this,Aa,t)}get current(){return pt(this,Aa)}set current(t){pt(this,Aa)!=t&&(Eo(this,Aa,t),pt(this,Su).forEach(n=>n(t)))}on(t){return pt(this,Su).add(t),()=>pt(this,Su).delete(t)}}Aa=new WeakMap,Su=new WeakMap;const UL=e=>new UKe(e),A2=Symbol.for("atomico.hooks");globalThis[A2]=globalThis[A2]||{};let rd=globalThis[A2];const WKe=Symbol.for("Atomico.suspense"),WL=Symbol.for("Atomico.effect"),qKe=Symbol.for("Atomico.layoutEffect"),qL=Symbol.for("Atomico.insertionEffect"),Bh=(e,t,n)=>{const{i:o,hooks:r}=rd.c,i=r[o]=r[o]||{};return i.value=e(i.value),i.effect=t,i.tag=n,rd.c.i++,r[o].value},q4=e=>Bh((t=UL(e))=>t),KL=()=>Bh((e=UL(rd.c.host))=>e),GL=()=>rd.c.update,KKe=(e,t,n=0)=>{let o={},r=!1;const i=()=>r,s=(c,u)=>{for(const d in o){const f=o[d];f.effect&&f.tag===c&&(f.value=f.effect(f.value,u))}};return{load:c=>{rd.c={host:t,hooks:o,update:e,i:0,id:n};let u;try{r=!1,u=c()}catch(d){if(d!==WKe)throw d;r=!0}finally{rd.c=null}return u},cleanEffects:c=>(s(qL,c),()=>(s(qKe,c),()=>{s(WL,c)})),isSuspense:i}},zh=Symbol.for;function YL(e,t){const n=e.length;if(n!==t.length)return!1;for(let o=0;o<n;o++){let r=e[o],i=t[o];if(r!==i)return!1}return!0}const fs=e=>typeof e=="function",ip=e=>typeof e=="object",{isArray:GKe}=Array,I2=(e,t)=>(t?e instanceof HTMLStyleElement:!0)&&"hydrate"in((e==null?void 0:e.dataset)||{});function ZL(e,t){let n;const o=r=>{let{length:i}=r;for(let s=0;s<i;s++){const l=r[s];if(l&&Array.isArray(l))o(l);else{const a=typeof l;if(l==null||a==="function"||a==="boolean")continue;a==="string"||a==="number"?(n==null&&(n=""),n+=l):(n!=null&&(t(n),n=null),t(l))}}};o(e),n!=null&&t(n)}const JL=(e,t,n)=>(e.addEventListener(t,n),()=>e.removeEventListener(t,n));let XL=class{constructor(t,n,o){this.message=n,this.target=t,this.value=o}};class YKe extends XL{}class ZKe extends XL{}const e1="Custom",JKe=null,XKe={true:1,"":1,1:1};function QKe(e,t,n,o,r){const{type:i,reflect:s,event:l,value:a,attr:c=tGe(t)}=(n==null?void 0:n.name)!=e1&&ip(n)&&n!=JKe?n:{type:n},u=(i==null?void 0:i.name)===e1&&i.map,d=a!=null?i==Function||!fs(a)?()=>a:a:null;Object.defineProperty(e,t,{configurable:!0,set(f){const p=this[t];d&&i!=Boolean&&f==null&&(f=d());const{error:h,value:m}=(u?rGe:iGe)(i,f);if(h&&m!=null)throw new YKe(this,`The value defined for prop '${t}' must be of type '${i.name}'`,m);p!=m&&(this._props[t]=m??void 0,this.update(),l&&eGe(this,l),this.updated.then(()=>{s&&(this._ignoreAttr=c,nGe(this,i,c,this[t]),this._ignoreAttr=null)}))},get(){return this._props[t]}}),d&&(r[t]=d()),o[c]={prop:t,type:i}}const eGe=(e,{type:t,base:n=CustomEvent,...o})=>e.dispatchEvent(new n(t,o)),tGe=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),nGe=(e,t,n,o)=>o==null||t==Boolean&&!o?e.removeAttribute(n):e.setAttribute(n,(t==null?void 0:t.name)===e1&&(t!=null&&t.serialize)?t==null?void 0:t.serialize(o):ip(o)?JSON.stringify(o):t==Boolean?"":o),oGe=(e,t)=>e==Boolean?!!XKe[t]:e==Number?Number(t):e==String?t:e==Array||e==Object?JSON.parse(t):e.name==e1?t:new e(t),rGe=({map:e},t)=>{try{return{value:e(t),error:!1}}catch{return{value:t,error:!0}}},iGe=(e,t)=>e==null||t==null?{value:t,error:!1}:e!=String&&t===""?{value:void 0,error:!1}:e==Object||e==Array||e==Symbol?{value:t,error:{}.toString.call(t)!==`[object ${e.name}]`}:t instanceof e?{value:t,error:e==Number&&Number.isNaN(t.valueOf())}:e==String||e==Number||e==Boolean?{value:t,error:e==Number?typeof t!="number"?!0:Number.isNaN(t):e==String?typeof t!="string":typeof t!="boolean"}:{value:t,error:!0};let sGe=0;const lGe=e=>{var n;const t=((n=(e==null?void 0:e.dataset)||{})==null?void 0:n.hydrate)||"";return t||"c"+sGe++},Vh=(e,t=HTMLElement)=>{const n={},o={},r="prototype"in t&&t.prototype instanceof Element,i=r?t:"base"in t?t.base:HTMLElement,{props:s,styles:l}=r?e:t;class a extends i{constructor(){super(),this._setup(),this._render=()=>e({...this._props});for(const u in o)this[u]=o[u]}static get styles(){return[super.styles,l]}async _setup(){if(this._props)return;this._props={};let u,d;this.mounted=new Promise(b=>this.mount=()=>{b(),u!=this.parentNode&&(d!=u?this.unmounted.then(this.update):this.update()),u=this.parentNode}),this.unmounted=new Promise(b=>this.unmount=()=>{b(),(u!=this.parentNode||!this.isConnected)&&(f.cleanEffects(!0)()(),d=this.parentNode,u=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const f=KKe(()=>this.update(),this,lGe(this));let p,h=!0;const m=I2(this);this.update=()=>(p||(p=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const b=f.load(this._render),v=f.cleanEffects();return b&&b.render(this,this.symbolId,m),p=!1,h&&!f.isSuspense()&&(h=!1,!m&&aGe(this)),v()}finally{p=!1}}).then(b=>{b&&b()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(u,d,f){if(n[u]){if(u===this._ignoreAttr||d===f)return;const{prop:p,type:h}=n[u];try{this[p]=oGe(h,f)}catch{throw new ZKe(this,`The value defined as attr '${u}' cannot be parsed by type '${h.name}'`,f)}}else super.attributeChangedCallback(u,d,f)}static get props(){return{...super.props,...s}}static get observedAttributes(){const u=super.observedAttributes||[];for(const d in s)QKe(this.prototype,d,s[d],n,o);return Object.keys(n).concat(u)}}return a};function aGe(e){const{styles:t}=e.constructor,{shadowRoot:n}=e;if(n&&t.length){const o=[];ZL(t,r=>{r&&(r instanceof Element?n.appendChild(r.cloneNode(!0)):o.push(r))}),o.length&&(n.adoptedStyleSheets=o)}}const QL=e=>(t,n)=>{Bh(([o,r]=[])=>((r||!r)&&(r&&YL(r,n)?o=o||!0:(fs(o)&&o(),o=null)),[o,n]),([o,r],i)=>i?(fs(o)&&o(),[]):[o||t(),r],e)},t1=QL(WL),cGe=QL(qL);class uGe extends Array{constructor(t,n){let o=!0;const r=i=>{try{n(i,this,o)}finally{o=!1}};super(void 0,r,n),r(t)}}const eR=e=>{const t=GL();return Bh((n=new uGe(e,(o,r,i)=>{o=fs(o)?o(r[0]):o,o!==r[0]&&(r[0]=o,i||t())}))=>n)},O2=(e,t)=>{const[n]=Bh(([o,r,i=0]=[])=>((!r||r&&!YL(r,t))&&(o=e()),[o,t,i]));return n},Ic=(e,t)=>O2(()=>e,t),P2=zh("atomico/options");globalThis[P2]=globalThis[P2]||{sheet:!!document.adoptedStyleSheets};const tR=globalThis[P2];new Promise(e=>{tR.ssr||(document.readyState==="loading"?JL(document,"DOMContentLoaded",e):e())});const dGe={checked:1,value:1,selected:1},fGe={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},pGe={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},D_={},N2=[];class L2 extends Text{}const hGe=zh("atomico/id"),sp=zh("atomico/type"),rb=zh("atomico/ref"),nR=zh("atomico/vnode"),mGe=()=>{};function _Ge(e,t,n){return rR(this,e,t,n)}const oR=(e,t,...n)=>{const o=t||D_;let{children:r}=o;if(r=r??(n.length?n:N2),e===mGe)return r;const i=e?e instanceof Node?1:e.prototype instanceof HTMLElement&&2:0;if(i===!1&&e instanceof Function)return e(r!=N2?{children:r,...o}:o);const s=tR.render||_Ge;return{[sp]:nR,type:e,props:o,children:r,key:o.key,shadow:o.shadowDom,static:o.staticNode,raw:i,is:o.is,clone:o.cloneNode,render:s}};function rR(e,t,n=hGe,o,r){let i;if(t&&t[n]&&t[n].vnode==e||e[sp]!=nR)return t;(e||!t)&&(r=r||e.type=="svg",i=e.type!="host"&&(e.raw==1?(t&&e.clone?t[rb]:t)!=e.type:e.raw==2?!(t instanceof e.type):t?t[rb]||t.localName!=e.type:!t),i&&e.type!=null&&(e.raw==1&&e.clone?(o=!0,t=e.type.cloneNode(!0),t[rb]=e.type):t=e.raw==1?e.type:e.raw==2?new e.type:r?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type,e.is?{is:e.is}:void 0)));const s=t[n]?t[n]:D_,{vnode:l=D_,cycle:a=0}=s;let{fragment:c,handlers:u}=s;const{children:d=N2,props:f=D_}=l;if(u=i?{}:u||{},e.static&&!i)return t;if(e.shadow&&!t.shadowRoot&&t.attachShadow({mode:"open",...e.shadow}),e.props!=f&&bGe(t,f,e.props,u,r),e.children!==d){const p=e.shadow?t.shadowRoot:t;c=vGe(e.children,c,p,n,!a&&o,r&&e.type=="foreignObject"?!1:r)}return t[n]={vnode:e,handlers:u,fragment:c,cycle:a+1},t}function gGe(e,t){const n=new L2(""),o=new L2("");let r;if(e[t?"prepend":"append"](n),t){let{lastElementChild:i}=e;for(;i;){const{previousElementSibling:s}=i;if(I2(i,!0)&&!I2(s,!0)){r=i;break}i=s}}return r?r.before(o):e.append(o),{markStart:n,markEnd:o}}function vGe(e,t,n,o,r,i){e=e==null?null:GKe(e)?e:[e];const s=t||gGe(n,r),{markStart:l,markEnd:a,keyes:c}=s;let u;const d=c&&new Set;let f=l;if(e&&ZL(e,p=>{if(typeof p=="object"&&!p[sp])return;const h=p[sp]&&p.key,m=c&&h!=null&&c.get(h);f!=a&&f===m?d.delete(f):f=f==a?a:f.nextSibling;const b=c?m:f;let v=b;if(p[sp])v=rR(p,b,o,r,i);else{const E=p+"";!(v instanceof Text)||v instanceof L2?v=new Text(E):v.data!=E&&(v.data=E)}v!=f&&(c&&d.delete(v),!b||c?(n.insertBefore(v,f),c&&f!=a&&d.add(f)):b==a?n.insertBefore(v,a):(n.replaceChild(v,b),f=v)),h!=null&&(u=u||new Map,u.set(h,v))}),f=f==a?a:f.nextSibling,t&&f!=a)for(;f!=a;){const p=f;f=f.nextSibling,p.remove()}return d&&d.forEach(p=>p.remove()),s.keyes=u,s}function bGe(e,t,n,o,r){for(const i in t)!(i in n)&&C9(e,i,t[i],null,r,o);for(const i in n)C9(e,i,t[i],n[i],r,o)}function C9(e,t,n,o,r,i){if(t=t=="class"&&!r?"className":t,n=n??null,o=o??null,t in e&&dGe[t]&&(n=e[t]),!(o===n||pGe[t]||t[0]=="_"))if(e.localName==="slot"&&t==="assignNode"&&"assign"in e)e.assign(o);else if(t[0]=="o"&&t[1]=="n"&&(fs(o)||fs(n)))yGe(e,t.slice(2),o,i);else if(t=="ref")o&&(fs(o)?o(e):o.current=e);else if(t=="style"){const{style:s}=e;n=n||"",o=o||"";const l=ip(n),a=ip(o);if(l)for(const c in n)if(a)!(c in o)&&S9(s,c,null);else break;if(a)for(const c in o){const u=o[c];l&&n[c]===u||S9(s,c,u)}else s.cssText=o}else{const s=t[0]=="$"?t.slice(1):t;s===t&&(!r&&!fGe[t]&&t in e||fs(o)||fs(n))?e[t]=o??"":o==null?e.removeAttribute(s):e.setAttribute(s,ip(o)?JSON.stringify(o):o)}}function yGe(e,t,n,o){if(o.handleEvent||(o.handleEvent=r=>o[r.type].call(e,r)),n){if(!o[t]){const r=n.capture||n.once||n.passive?Object.assign({},n):null;e.addEventListener(t,o,r)}o[t]=n}else o[t]&&(e.removeEventListener(t,o),delete o[t])}function S9(e,t,n){let o="setProperty";n==null&&(o="removeProperty",n=null),~t.indexOf("-")?e[o](t,n):e[t]=n}const wGe=oR("host",{style:"display: contents"}),kGe="value",xGe=(e,t)=>{const n=KL(),o=q4();cGe(()=>JL(n.current,"ConnectContext",r=>{r.composedPath().at(0)!==r.currentTarget&&e===r.detail.id&&(r.stopPropagation(),r.detail.connect(o))}),[e]),o.current=t},CGe=e=>{const t=Vh(({value:n})=>(xGe(t,n),wGe),{props:{value:{type:Object,value:()=>e}}});return t[kGe]=e,t};CGe({dispatch(e,t){}});const SGe=0,Oc=1,Am=2,Im=3,$9=4,vf=5,R2=6,iR=0,$Ge=2,sR=3,lR=4,aR=vf,EGe=R2,cR=(e,t,n,o)=>{let r;t[0]=0;for(let i=1;i<t.length;i++){const s=t[i++],l=t[i]?(t[0]|=s?1:2,n[t[i++]]):t[++i];s===sR?o[0]=l:s===lR?o[1]=Object.assign(o[1]||{},l):s===aR?(o[1]=o[1]||{})[t[++i]]=l:s===EGe?o[1][t[++i]]+=l+"":s?(r=e.apply(l,cR(e,l,n,["",null])),o.push(r),l[0]?t[0]|=2:(t[i-2]=iR,t[i]=r)):o.push(l)}return o},TGe=function(e){let t=Oc,n="",o="",r=[0],i,s;const l=a=>{t===Oc&&(a||(n=n.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?r.push(iR,a,n):t===Im&&(a||n)?(r.push(sR,a,n),t=Am):t===Am&&n==="..."&&a?r.push(lR,a,0):t===Am&&n&&!a?r.push(aR,0,!0,n):t>=vf&&((n||!a&&t===vf)&&(r.push(t,0,n,s),t=R2),a&&(r.push(t,a,0,s),t=R2)),n=""};for(let a=0;a<e.length;a++){a&&(t===Oc&&l(),l(a));for(let c=0;c<e[a].length;c++)i=e[a][c],t===Oc?i==="<"?(l(),r=[r],t=Im):n+=i:t===$9?n==="--"&&i===">"?(t=Oc,n=""):n=i+n[0]:o?i===o?o="":n+=i:i==='"'||i==="'"?o=i:i===">"?(l(),t=Oc):t&&(i==="="?(t=vf,s=n,n=""):i==="/"&&(t<vf||e[a][c+1]===">")?(l(),t===Im&&(r=r[0]),t=r,(r=r[0]).push($Ge,0,t),t=SGe):i===" "||i===" "||i===`
128 `||i==="\r"?(l(),t=Am):n+=i),t===Im&&n==="!--"&&(t=$9,r=r[0])}return l(),r},MGe=new Map;function vt(e){let t=MGe;return t=cR(oR,t.get(e)||(t.set(e,t=TGe(e)),t),arguments,[]),t.length>1?t:t[0]}var K4=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Pc=(e,t,n)=>(K4(e,t,"read from private field"),n?n.call(e):t.get(e)),Nc=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Lc=(e,t,n,o)=>(K4(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),AGe=(e,t,n)=>(K4(e,t,"access private method"),n),B_,z_,bf,yf,V_,F2,uR;let G4=class{constructor(t){Nc(this,F2),Nc(this,B_,void 0),Nc(this,z_,void 0),Nc(this,bf,void 0),Nc(this,yf,void 0),Nc(this,V_,void 0),Lc(this,bf,!1),this.onShow=()=>{},this.onHide=()=>{},Lc(this,V_,(n,o)=>{var r;const{state:i,composing:s}=n,{selection:l,doc:a}=i,{ranges:c}=l,u=Math.min(...c.map(p=>p.$from.pos)),d=Math.max(...c.map(p=>p.$to.pos)),f=o&&o.doc.eq(a)&&o.selection.eq(l);if(Pc(this,bf)||((r=n.dom.parentElement)==null||r.appendChild(this.element),Lc(this,bf,!0)),!(s||f)){if(!Pc(this,z_).call(this,n,o)){this.hide();return}ty({getBoundingClientRect:()=>t0(n,u,d)},this.element,{placement:"top",middleware:[ey(),Xb(Pc(this,yf))]}).then(({x:p,y:h})=>{Object.assign(this.element.style,{left:`${p}px`,top:`${h}px`})}),this.show()}}),this.update=(n,o)=>{g0(Pc(this,V_),Pc(this,B_))(n,o)},this.destroy=()=>{},this.show=n=>{this.element.dataset.show="true",n&&ty(n,this.element,{placement:"top",middleware:[ey(),Xb(Pc(this,yf))]}).then(({x:o,y:r})=>{Object.assign(this.element.style,{left:`${o}px`,top:`${r}px`})}),this.onShow()},this.hide=()=>{this.element.dataset.show!=="false"&&(this.element.dataset.show="false",this.onHide())},this.element=t.content,Lc(this,B_,t.debounce??200),Lc(this,z_,t.shouldShow??AGe(this,F2,uR)),Lc(this,yf,t.offset),this.element.dataset.show="false"}};B_=new WeakMap,z_=new WeakMap,bf=new WeakMap,yf=new WeakMap,V_=new WeakMap,F2=new WeakSet,uR=function(e){const{doc:t,selection:n}=e.state,{empty:o,from:r,to:i}=n,s=!t.textBetween(r,i).length&&e.state.selection instanceof lt,l=this.element.contains(document.activeElement),a=!e.hasFocus()&&!l,c=!e.editable;return!(a||o||s||c)};function Y4(e){const t=Cn({},`${e}_TOOLTIP_SPEC`),n=eo(r=>{const i=r.get(t.key);return new wn({key:new mn(`${e}_TOOLTIP`),...i})}),o=[t,n];return o.key=t.key,o.pluginKey=n.key,t.meta={package:"@milkdown/plugin-tooltip",displayName:`Ctx<tooltipSpec>|${e}`},n.meta={package:"@milkdown/plugin-tooltip",displayName:`Prose<tooltip>|${e}`},o}function dR(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=dR(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Xc(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=dR(e))&&(o&&(o+=" "),o+=t);return o}var IGe=Object.defineProperty,E9=Object.getOwnPropertySymbols,OGe=Object.prototype.hasOwnProperty,PGe=Object.prototype.propertyIsEnumerable,T9=(e,t,n)=>t in e?IGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NGe=(e,t)=>{for(var n in t||(t={}))OGe.call(t,n)&&T9(e,n,t[n]);if(E9)for(var n of E9(t))PGe.call(t,n)&&T9(e,n,t[n]);return e};function kc(e,t){return Object.assign(e,{meta:NGe({package:"@milkdown/components"},t)}),e}var LGe=Object.defineProperty,M9=Object.getOwnPropertySymbols,RGe=Object.prototype.hasOwnProperty,FGe=Object.prototype.propertyIsEnumerable,A9=(e,t,n)=>t in e?LGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z4=(e,t)=>{for(var n in t||(t={}))RGe.call(t,n)&&A9(e,n,t[n]);if(M9)for(var n of M9(t))FGe.call(t,n)&&A9(e,n,t[n]);return e};const DGe={mode:"preview"},Ss=Cn(Z4({},DGe),"linkTooltipStateCtx");kc(Ss,{displayName:"State<link-tooltip>",group:"LinkTooltip"});const BGe={addLink:()=>{},editLink:()=>{},removeLink:()=>{}},id=Cn(Z4({},BGe),"linkTooltipAPICtx");kc(Ss,{displayName:"API<link-tooltip>",group:"LinkTooltip"});const zGe={linkIcon:()=>"🔗",editButton:()=>"✎",removeButton:()=>"⌫",confirmButton:()=>vt`Confirm ⏎`,onCopyLink:()=>{},inputPlaceholder:"Paste link..."},$0=Cn(Z4({},zGe),"linkTooltipConfigCtx");kc(Ss,{displayName:"Config<link-tooltip>",group:"LinkTooltip"});const jh=Y4("LINK_PREVIEW");kc(jh[0],{displayName:"PreviewTooltipSpec<link-tooltip>",group:"LinkTooltip"});kc(jh[1],{displayName:"PreviewTooltipPlugin<link-tooltip>",group:"LinkTooltip"});const E0=Y4("LINK_EDIT");kc(E0[0],{displayName:"EditTooltipSpec<link-tooltip>",group:"LinkTooltip"});kc(E0[1],{displayName:"EditTooltipPlugin<link-tooltip>",group:"LinkTooltip"});function VGe(e,t,n,o,r){let i={start:-1,end:-1};return n.nodesBetween(o,r,(s,l)=>{if(i.start>-1)return!1;i.start===-1&&e.isInSet(s.marks)&&t===s&&(i={start:l,end:l+Math.max(s.textContent.length,1)})}),i}function jGe(e,t,n){const o=t.posAtCoords({left:n.clientX,top:n.clientY});if(!o)return;const{pos:r}=o,i=t.state.doc.nodeAt(r);if(!i)return;const s=i.marks.find(a=>a.type===ti.mark.type(e));if(!(!s||!jh.pluginKey()))return{show:!0,pos:r,node:i,mark:s}}function fR(e,t){const n=customElements.get(e);if(n==null){customElements.define(e,t);return}n!==t&&console.warn(`Custom element ${e} has been defined before.`)}const pR=({config:e,src:t,onEdit:n,onRemove:o})=>{const r=l=>{l.stopPropagation(),l.preventDefault(),n==null||n()},i=l=>{l.stopPropagation(),l.preventDefault(),o==null||o()};return vt`
129 <host>
130 <div class="link-preview" onmousedown=${l=>{l.preventDefault(),navigator.clipboard&&t&&navigator.clipboard.writeText(t).then(()=>{e==null||e.onCopyLink(t)}).catch(a=>{throw a})}}>
131 <span class="link-icon">
132 ${e==null?void 0:e.linkIcon()}
133 </span>
134 <a href=${t} target="_blank" class="link-display">${t}</a>
135 <span class="button link-edit-button" onmousedown=${r}>
136 ${e==null?void 0:e.editButton()}
137 </span>
138 <span class="button link-remove-button" onmousedown=${i}>
139 ${e==null?void 0:e.removeButton()}
140 </span>
141 </div>
142 </host>
143 `};pR.props={config:Object,src:String,onEdit:Function,onRemove:Function};const hR=Vh(pR);var mR=e=>{throw TypeError(e)},_R=(e,t,n)=>t.has(e)||mR("Cannot "+n),Xt=(e,t,n)=>(_R(e,t,"read from private field"),n?n.call(e):t.get(e)),Hs=(e,t,n)=>t.has(e)?mR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Om=(e,t,n,o)=>(_R(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),tl,Wr,wf,kf,j_,H_,U_,xf;class HGe{constructor(t,n){this.ctx=t,Hs(this,tl,new hR),Hs(this,Wr),Hs(this,wf,this.ctx.use(Ss.key)),Hs(this,kf,!1),Hs(this,j_,({mode:o})=>{o==="edit"&&Xt(this,xf).call(this)}),Hs(this,H_,()=>{Om(this,kf,!0)}),Hs(this,U_,()=>{Om(this,kf,!1)}),Hs(this,xf,()=>{Xt(this,Wr).hide(),Xt(this,Wr).element.removeEventListener("mouseenter",Xt(this,H_)),Xt(this,Wr).element.removeEventListener("mouseleave",Xt(this,U_))}),this.show=(o,r,i,s)=>{Xt(this,tl).config=this.ctx.get($0.key),Xt(this,tl).src=o.attrs.href,Xt(this,tl).onEdit=()=>{this.ctx.get(id.key).editLink(o,r,i)},Xt(this,tl).onRemove=()=>{this.ctx.get(id.key).removeLink(r,i),Xt(this,xf).call(this)},Xt(this,Wr).show({getBoundingClientRect:()=>s}),Xt(this,Wr).element.addEventListener("mouseenter",Xt(this,H_)),Xt(this,Wr).element.addEventListener("mouseleave",Xt(this,U_))},this.hide=()=>{Xt(this,kf)||Xt(this,xf).call(this)},this.update=()=>{},this.destroy=()=>{Xt(this,wf).off(Xt(this,j_)),Xt(this,Wr).destroy(),Xt(this,tl).remove()},Om(this,Wr,new G4({debounce:0,content:Xt(this,tl),shouldShow:()=>!1})),Xt(this,Wr).update(n),Om(this,wf,t.use(Ss.key)),Xt(this,wf).on(Xt(this,j_))}}tl=new WeakMap;Wr=new WeakMap;wf=new WeakMap;kf=new WeakMap;j_=new WeakMap;H_=new WeakMap;U_=new WeakMap;xf=new WeakMap;fR("milkdown-link-preview",hR);function UGe(e){let t;const o=g0((i,s)=>{if(!t||!i.hasFocus()||e.get(Ss.key).mode==="edit")return;const a=jGe(e,i,s);if(a){const c=i.state.doc.resolve(a.pos),u=VGe(a.mark,a.node,i.state.doc,c.before(),c.after()),d=u.start,f=u.end;t.show(a.mark,d,f,t0(i,d,f));return}t.hide()},200),r=()=>{setTimeout(()=>{t==null||t.hide()},200)};e.set(jh.key,{props:{handleDOMEvents:{mousemove:o,mouseleave:r}},view:i=>(t=new HGe(e,i),t)})}const gR=({src:e,onConfirm:t,onCancel:n,config:o})=>{const r=q4(),[i,s]=eR(e);t1(()=>{s(e??"")},[e]);const l=()=>{var c,u;t==null||t((u=(c=r.current)==null?void 0:c.value)!=null?u:"")},a=c=>{var u,d;c.stopPropagation(),c.key==="Enter"&&(t==null||t((d=(u=r.current)==null?void 0:u.value)!=null?d:""),c.preventDefault()),c.key==="Escape"&&(n==null||n(),c.preventDefault())};return vt`
144 <host>
145 <div class="link-edit">
146 <input
147 class="input-area"
148 placeholder=${o==null?void 0:o.inputPlaceholder}
149 ref=${r}
150 onkeydown=${a}
151 oninput=${c=>s(c.target.value)}
152 value=${i}
153 />
154 <span class=${Xc("button confirm",!i&&"hidden")} onclick=${l}>
155 ${o==null?void 0:o.confirmButton()}
156 </span>
157 </div>
158 </host>
159 `};gR.props={config:Object,src:String,onConfirm:Function,onCancel:Function};const vR=Vh(gR);var WGe=Object.defineProperty,qGe=Object.defineProperties,KGe=Object.getOwnPropertyDescriptors,I9=Object.getOwnPropertySymbols,GGe=Object.prototype.hasOwnProperty,YGe=Object.prototype.propertyIsEnumerable,bR=e=>{throw TypeError(e)},O9=(e,t,n)=>t in e?WGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pm=(e,t)=>{for(var n in t||(t={}))GGe.call(t,n)&&O9(e,n,t[n]);if(I9)for(var n of I9(t))YGe.call(t,n)&&O9(e,n,t[n]);return e},P9=(e,t)=>qGe(e,KGe(t)),yR=(e,t,n)=>t.has(e)||bR("Cannot "+n),cn=(e,t,n)=>(yR(e,t,"read from private field"),n?n.call(e):t.get(e)),Rc=(e,t,n)=>t.has(e)?bR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Nm=(e,t,n,o)=>(yR(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),yi,nl,ol,ha,D2,W_;const N9={from:-1,to:-1,mark:null};class ZGe{constructor(t,n){this.ctx=t,Rc(this,yi,new vR),Rc(this,nl),Rc(this,ol,Pm({},N9)),Rc(this,ha,()=>{cn(this,nl).hide(),this.ctx.update(Ss.key,o=>P9(Pm({},o),{mode:"preview"})),Nm(this,ol,Pm({},N9))}),Rc(this,D2,o=>{const r=this.ctx.get(pn),{from:i,to:s,mark:l}=cn(this,ol),a=ti.type(this.ctx);if(l&&l.attrs.href===o){cn(this,ha).call(this);return}const c=r.state.tr;l&&c.removeMark(i,s,l),c.addMark(i,s,a.create({href:o})),r.dispatch(c),cn(this,ha).call(this)}),Rc(this,W_,(o,r,i)=>{const s=this.ctx.get($0.key);cn(this,yi).config=s,cn(this,yi).src=o,this.ctx.update(Ss.key,a=>P9(Pm({},a),{mode:"edit"}));const l=this.ctx.get(pn);l.dispatch(l.state.tr.setSelection(lt.create(l.state.doc,r,i))),cn(this,nl).show({getBoundingClientRect:()=>t0(l,r,i)}),requestAnimationFrame(()=>{var a;(a=cn(this,yi).querySelector("input"))==null||a.focus()})}),this.update=o=>{const{state:r}=o,{selection:i}=r;if(!(i instanceof lt))return;const{from:s,to:l}=i;s===cn(this,ol).from&&l===cn(this,ol).to||cn(this,ha).call(this)},this.destroy=()=>{cn(this,nl).destroy(),cn(this,yi).remove()},this.addLink=(o,r)=>{Nm(this,ol,{from:o,to:r,mark:null}),cn(this,W_).call(this,"",o,r)},this.editLink=(o,r,i)=>{Nm(this,ol,{from:r,to:i,mark:o}),cn(this,W_).call(this,o.attrs.href,r,i)},this.removeLink=(o,r)=>{const i=this.ctx.get(pn),s=i.state.tr;s.removeMark(o,r,ti.type(this.ctx)),i.dispatch(s),cn(this,ha).call(this)},Nm(this,nl,new G4({content:cn(this,yi),debounce:0,shouldShow:()=>!1})),cn(this,nl).onHide=()=>{cn(this,yi).update().catch(o=>{throw o}),n.dom.focus({preventScroll:!0})},cn(this,nl).update(n),cn(this,yi).onConfirm=cn(this,D2),cn(this,yi).onCancel=cn(this,ha)}}yi=new WeakMap;nl=new WeakMap;ol=new WeakMap;ha=new WeakMap;D2=new WeakMap;W_=new WeakMap;var JGe=Object.defineProperty,XGe=Object.defineProperties,QGe=Object.getOwnPropertyDescriptors,L9=Object.getOwnPropertySymbols,eYe=Object.prototype.hasOwnProperty,tYe=Object.prototype.propertyIsEnumerable,R9=(e,t,n)=>t in e?JGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nYe=(e,t)=>{for(var n in t||(t={}))eYe.call(t,n)&&R9(e,n,t[n]);if(L9)for(var n of L9(t))tYe.call(t,n)&&R9(e,n,t[n]);return e},oYe=(e,t)=>XGe(e,QGe(t));fR("milkdown-link-edit",vR);function rYe(e){let t;e.update(id.key,n=>oYe(nYe({},n),{addLink:(o,r)=>{t==null||t.addLink(o,r)},editLink:(o,r,i)=>{t==null||t.editLink(o,r,i)},removeLink:(o,r)=>{t==null||t.removeLink(o,r)}})),e.set(E0.key,{view:n=>(t=new ZGe(e,n),t)})}function iYe(e){UGe(e),rYe(e)}const sYe=[Ss,id,$0,jh,E0].flat();vt`
160 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
161 <path d="M4.25 20.5C4.0375 20.5 3.85942 20.4281 3.71575 20.2843C3.57192 20.1404 3.5 19.9622 3.5 19.7498C3.5 19.5371 3.57192 19.359 3.71575 19.2155C3.85942 19.0718 4.0375 19 4.25 19H19.75C19.9625 19 20.1406 19.0719 20.2843 19.2158C20.4281 19.3596 20.5 19.5378 20.5 19.7502C20.5 19.9629 20.4281 20.141 20.2843 20.2845C20.1406 20.4282 19.9625 20.5 19.75 20.5H4.25ZM8.25 16.625C8.0375 16.625 7.85942 16.5531 7.71575 16.4093C7.57192 16.2654 7.5 16.0872 7.5 15.8748C7.5 15.6621 7.57192 15.484 7.71575 15.3405C7.85942 15.1968 8.0375 15.125 8.25 15.125H15.75C15.9625 15.125 16.1406 15.1969 16.2843 15.3408C16.4281 15.4846 16.5 15.6628 16.5 15.8753C16.5 16.0879 16.4281 16.266 16.2843 16.4095C16.1406 16.5532 15.9625 16.625 15.75 16.625H8.25ZM4.25 12.75C4.0375 12.75 3.85942 12.6781 3.71575 12.5343C3.57192 12.3904 3.5 12.2122 3.5 11.9998C3.5 11.7871 3.57192 11.609 3.71575 11.4655C3.85942 11.3218 4.0375 11.25 4.25 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2843 11.4658C20.4281 11.6096 20.5 11.7878 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2843 12.5345C20.1406 12.6782 19.9625 12.75 19.75 12.75H4.25ZM8.25 8.875C8.0375 8.875 7.85942 8.80308 7.71575 8.65925C7.57192 8.51542 7.5 8.33725 7.5 8.12475C7.5 7.91208 7.57192 7.734 7.71575 7.5905C7.85942 7.44683 8.0375 7.375 8.25 7.375H15.75C15.9625 7.375 16.1406 7.44692 16.2843 7.59075C16.4281 7.73458 16.5 7.91275 16.5 8.12525C16.5 8.33792 16.4281 8.516 16.2843 8.6595C16.1406 8.80317 15.9625 8.875 15.75 8.875H8.25ZM4.25 5C4.0375 5 3.85942 4.92808 3.71575 4.78425C3.57192 4.64042 3.5 4.46225 3.5 4.24975C3.5 4.03708 3.57192 3.859 3.71575 3.7155C3.85942 3.57183 4.0375 3.5 4.25 3.5H19.75C19.9625 3.5 20.1406 3.57192 20.2843 3.71575C20.4281 3.85958 20.5 4.03775 20.5 4.25025C20.5 4.46292 20.4281 4.641 20.2843 4.7845C20.1406 4.92817 19.9625 5 19.75 5H4.25Z"/>
162 </svg>
163 `;vt`
164 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
165 <path d="M4.25 20.5C4.0375 20.5 3.85942 20.4281 3.71575 20.2843C3.57192 20.1404 3.5 19.9622 3.5 19.7498C3.5 19.5371 3.57192 19.359 3.71575 19.2155C3.85942 19.0718 4.0375 19 4.25 19H19.75C19.9625 19 20.1406 19.0719 20.2843 19.2158C20.4281 19.3596 20.5 19.5378 20.5 19.7502C20.5 19.9629 20.4281 20.141 20.2843 20.2845C20.1406 20.4282 19.9625 20.5 19.75 20.5H4.25ZM4.25 16.625C4.0375 16.625 3.85942 16.5531 3.71575 16.4093C3.57192 16.2654 3.5 16.0872 3.5 15.8748C3.5 15.6621 3.57192 15.484 3.71575 15.3405C3.85942 15.1968 4.0375 15.125 4.25 15.125H13.75C13.9625 15.125 14.1406 15.1969 14.2843 15.3408C14.4281 15.4846 14.5 15.6628 14.5 15.8753C14.5 16.0879 14.4281 16.266 14.2843 16.4095C14.1406 16.5532 13.9625 16.625 13.75 16.625H4.25ZM4.25 12.75C4.0375 12.75 3.85942 12.6781 3.71575 12.5343C3.57192 12.3904 3.5 12.2122 3.5 11.9998C3.5 11.7871 3.57192 11.609 3.71575 11.4655C3.85942 11.3218 4.0375 11.25 4.25 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2843 11.4658C20.4281 11.6096 20.5 11.7878 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2843 12.5345C20.1406 12.6782 19.9625 12.75 19.75 12.75H4.25ZM4.25 8.875C4.0375 8.875 3.85942 8.80308 3.71575 8.65925C3.57192 8.51542 3.5 8.33725 3.5 8.12475C3.5 7.91208 3.57192 7.734 3.71575 7.5905C3.85942 7.44683 4.0375 7.375 4.25 7.375H13.75C13.9625 7.375 14.1406 7.44692 14.2843 7.59075C14.4281 7.73458 14.5 7.91275 14.5 8.12525C14.5 8.33792 14.4281 8.516 14.2843 8.6595C14.1406 8.80317 13.9625 8.875 13.75 8.875H4.25ZM4.25 5C4.0375 5 3.85942 4.92808 3.71575 4.78425C3.57192 4.64042 3.5 4.46225 3.5 4.24975C3.5 4.03708 3.57192 3.859 3.71575 3.7155C3.85942 3.57183 4.0375 3.5 4.25 3.5H19.75C19.9625 3.5 20.1406 3.57192 20.2843 3.71575C20.4281 3.85958 20.5 4.03775 20.5 4.25025C20.5 4.46292 20.4281 4.641 20.2843 4.7845C20.1406 4.92817 19.9625 5 19.75 5H4.25Z"/>
166 </svg>
167 `;vt`
168 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
169 <path d="M4.25 5C4.0375 5 3.85942 4.92808 3.71575 4.78425C3.57192 4.64042 3.5 4.46225 3.5 4.24975C3.5 4.03708 3.57192 3.859 3.71575 3.7155C3.85942 3.57183 4.0375 3.5 4.25 3.5H19.75C19.9625 3.5 20.1406 3.57192 20.2843 3.71575C20.4281 3.85958 20.5 4.03775 20.5 4.25025C20.5 4.46292 20.4281 4.641 20.2843 4.7845C20.1406 4.92817 19.9625 5 19.75 5H4.25ZM10.25 8.875C10.0375 8.875 9.85942 8.80308 9.71575 8.65925C9.57192 8.51542 9.5 8.33725 9.5 8.12475C9.5 7.91208 9.57192 7.734 9.71575 7.5905C9.85942 7.44683 10.0375 7.375 10.25 7.375H19.75C19.9625 7.375 20.1406 7.44692 20.2843 7.59075C20.4281 7.73458 20.5 7.91275 20.5 8.12525C20.5 8.33792 20.4281 8.516 20.2843 8.6595C20.1406 8.80317 19.9625 8.875 19.75 8.875H10.25ZM4.25 12.75C4.0375 12.75 3.85942 12.6781 3.71575 12.5343C3.57192 12.3904 3.5 12.2122 3.5 11.9998C3.5 11.7871 3.57192 11.609 3.71575 11.4655C3.85942 11.3218 4.0375 11.25 4.25 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2843 11.4658C20.4281 11.6096 20.5 11.7878 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2843 12.5345C20.1406 12.6782 19.9625 12.75 19.75 12.75H4.25ZM10.25 16.625C10.0375 16.625 9.85942 16.5531 9.71575 16.4093C9.57192 16.2654 9.5 16.0872 9.5 15.8748C9.5 15.6621 9.57192 15.484 9.71575 15.3405C9.85942 15.1968 10.0375 15.125 10.25 15.125H19.75C19.9625 15.125 20.1406 15.1969 20.2843 15.3408C20.4281 15.4846 20.5 15.6628 20.5 15.8753C20.5 16.0879 20.4281 16.266 20.2843 16.4095C20.1406 16.5532 19.9625 16.625 19.75 16.625H10.25ZM4.25 20.5C4.0375 20.5 3.85942 20.4281 3.71575 20.2843C3.57192 20.1404 3.5 19.9622 3.5 19.7498C3.5 19.5371 3.57192 19.359 3.71575 19.2155C3.85942 19.0718 4.0375 19 4.25 19H19.75C19.9625 19 20.1406 19.0719 20.2843 19.2158C20.4281 19.3596 20.5 19.5378 20.5 19.7502C20.5 19.9629 20.4281 20.141 20.2843 20.2845C20.1406 20.4282 19.9625 20.5 19.75 20.5H4.25Z"/>
170 </svg>
171 `;const lYe=vt`
172 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
173 <path d="M8.85758 18.625C8.4358 18.625 8.07715 18.4772 7.78163 18.1817C7.48613 17.8862 7.33838 17.5275 7.33838 17.1058V6.8942C7.33838 6.47242 7.48613 6.11377 7.78163 5.81825C8.07715 5.52275 8.4358 5.375 8.85758 5.375H12.1999C13.2191 5.375 14.1406 5.69231 14.9643 6.32693C15.788 6.96154 16.1999 7.81603 16.1999 8.89038C16.1999 9.63779 16.0194 10.2471 15.6585 10.7183C15.2976 11.1894 14.9088 11.5314 14.4922 11.7442C15.005 11.9211 15.4947 12.2708 15.9614 12.7933C16.428 13.3157 16.6614 14.0192 16.6614 14.9038C16.6614 16.182 16.1902 17.1217 15.2479 17.723C14.3056 18.3243 13.3563 18.625 12.3999 18.625H8.85758ZM9.4883 16.6327H12.3191C13.1063 16.6327 13.6627 16.4141 13.9884 15.9769C14.314 15.5397 14.4768 15.1205 14.4768 14.7192C14.4768 14.3179 14.314 13.8987 13.9884 13.4615C13.6627 13.0243 13.0909 12.8057 12.273 12.8057H9.4883V16.6327ZM9.4883 10.875H12.0826C12.6903 10.875 13.172 10.7013 13.5278 10.3539C13.8836 10.0064 14.0615 9.59037 14.0615 9.10575C14.0615 8.59035 13.8733 8.16918 13.497 7.84225C13.1207 7.51533 12.6595 7.35188 12.1133 7.35188H9.4883V10.875Z"/>
174 </svg>
175 `;vt`
176 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
177 <g clip-path="url(#clip0_952_6527)">
178 <circle cx="12" cy="12" r="3"/>
179 </g>
180 <defs>
181 <clipPath id="clip0_952_6527">
182 <rect width="24" height="24"/>
183 </clipPath>
184 </defs>
185 </svg>
186 `;const aYe=vt`
187 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
188 <g clip-path="url(#clip0_977_8070)">
189 <path d="M4 10.5C3.17 10.5 2.5 11.17 2.5 12C2.5 12.83 3.17 13.5 4 13.5C4.83 13.5 5.5 12.83 5.5 12C5.5 11.17 4.83 10.5 4 10.5ZM4 4.5C3.17 4.5 2.5 5.17 2.5 6C2.5 6.83 3.17 7.5 4 7.5C4.83 7.5 5.5 6.83 5.5 6C5.5 5.17 4.83 4.5 4 4.5ZM4 16.5C3.17 16.5 2.5 17.18 2.5 18C2.5 18.82 3.18 19.5 4 19.5C4.82 19.5 5.5 18.82 5.5 18C5.5 17.18 4.83 16.5 4 16.5ZM8 19H20C20.55 19 21 18.55 21 18C21 17.45 20.55 17 20 17H8C7.45 17 7 17.45 7 18C7 18.55 7.45 19 8 19ZM8 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H8C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13ZM7 6C7 6.55 7.45 7 8 7H20C20.55 7 21 6.55 21 6C21 5.45 20.55 5 20 5H8C7.45 5 7 5.45 7 6Z"/>
190 </g>
191 <defs>
192 <clipPath id="clip0_977_8070">
193 <rect width="24" height="24"/>
194 </clipPath>
195 </defs>
196 </svg>
197 `;vt`
198 <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
199 <path fill="currentColor" d="M9 22a1 1 0 0 1-1-1v-3H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6.1l-3.7 3.71c-.2.19-.45.29-.7.29zm1-6v3.08L13.08 16H20V4H4v12z"/>
200 </svg>
201 `;vt`
202 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
203 <g clip-path="url(#clip0_1803_1151)">
204 <path d="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM10.71 16.29C10.32 16.68 9.69 16.68 9.3 16.29L5.71 12.7C5.32 12.31 5.32 11.68 5.71 11.29C6.1 10.9 6.73 10.9 7.12 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.71 16.29Z"/>
205 </g>
206 <defs>
207 <clipPath id="clip0_1803_1151">
208 <rect width="24" height="24"/>
209 </clipPath>
210 </defs>
211 </svg>
212 `;vt`
213 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
214 <g clip-path="url(#clip0_1803_535)">
215 <path d="M18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z"/>
216 </g>
217 <defs>
218 <clipPath id="clip0_1803_535">
219 <rect width="24" height="24"/>
220 </clipPath>
221 </defs>
222 </svg>
223 `;vt`
224 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
225 <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
226 </svg>
227 `;vt`
228 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
229 <g clip-path="url(#clip0_1098_15553)">
230 <path d="M18.3007 5.70973C17.9107 5.31973 17.2807 5.31973 16.8907 5.70973L12.0007 10.5897L7.1107 5.69973C6.7207 5.30973 6.0907 5.30973 5.7007 5.69973C5.3107 6.08973 5.3107 6.71973 5.7007 7.10973L10.5907 11.9997L5.7007 16.8897C5.3107 17.2797 5.3107 17.9097 5.7007 18.2997C6.0907 18.6897 6.7207 18.6897 7.1107 18.2997L12.0007 13.4097L16.8907 18.2997C17.2807 18.6897 17.9107 18.6897 18.3007 18.2997C18.6907 17.9097 18.6907 17.2797 18.3007 16.8897L13.4107 11.9997L18.3007 7.10973C18.6807 6.72973 18.6807 6.08973 18.3007 5.70973Z"/>
231 </g>
232 <defs>
233 <clipPath id="clip0_1098_15553">
234 <rect width="24" height="24"/>
235 </clipPath>
236 </defs>
237 </svg>
238 `;const wR=vt`
239 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
240 <g clip-path="url(#clip0_977_8081)">
241 <path d="M9.4 16.6L4.8 12L9.4 7.4L8 6L2 12L8 18L9.4 16.6ZM14.6 16.6L19.2 12L14.6 7.4L16 6L22 12L16 18L14.6 16.6Z"/>
242 </g>
243 <defs>
244 <clipPath id="clip0_977_8081">
245 <rect width="24" height="24"/>
246 </clipPath>
247 </defs>
248 </svg>
249 `,cYe=vt`
250 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
251 <g clip-path="url(#clip0_1013_1606)">
252 <path d="M9.00012 16.1998L5.50012 12.6998C5.11012 12.3098 4.49012 12.3098 4.10012 12.6998C3.71012 13.0898 3.71012 13.7098 4.10012 14.0998L8.29012 18.2898C8.68012 18.6798 9.31012 18.6798 9.70012 18.2898L20.3001 7.69982C20.6901 7.30982 20.6901 6.68982 20.3001 6.29982C19.9101 5.90982 19.2901 5.90982 18.9001 6.29982L9.00012 16.1998Z" fill="#817567"/>
253 </g>
254 <defs>
255 <clipPath id="clip0_1013_1606">
256 <rect width="24" height="24" />
257 </clipPath>
258 </defs>
259 </svg>
260 `;vt`
261 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
262 <g clip-path="url(#clip0_977_7900)">
263 <path fill-rule="evenodd" clip-rule="evenodd" d="M19 13H5C4.45 13 4 12.55 4 12C4 11.45 4.45 11 5 11H19C19.55 11 20 11.45 20 12C20 12.55 19.55 13 19 13Z"/>
264 </g>
265 <defs>
266 <clipPath id="clip0_977_7900">
267 <rect width="24" height="24"/>
268 </clipPath>
269 </defs>
270 </svg>
271 `;vt`
272 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
273 <path d="M3.5 9.83366C3.35833 9.83366 3.23961 9.78571 3.14383 9.68983C3.04794 9.59394 3 9.47516 3 9.33349C3 9.19171 3.04794 9.07299 3.14383 8.97733C3.23961 8.88155 3.35833 8.83366 3.5 8.83366H12.5C12.6417 8.83366 12.7604 8.8816 12.8562 8.97749C12.9521 9.07338 13 9.19216 13 9.33383C13 9.4756 12.9521 9.59433 12.8562 9.68999C12.7604 9.78577 12.6417 9.83366 12.5 9.83366H3.5ZM3.5 7.16699C3.35833 7.16699 3.23961 7.11905 3.14383 7.02316C3.04794 6.92727 3 6.80849 3 6.66683C3 6.52505 3.04794 6.40633 3.14383 6.31066C3.23961 6.21488 3.35833 6.16699 3.5 6.16699H12.5C12.6417 6.16699 12.7604 6.21494 12.8562 6.31083C12.9521 6.40671 13 6.52549 13 6.66716C13 6.80894 12.9521 6.92766 12.8562 7.02333C12.7604 7.1191 12.6417 7.16699 12.5 7.16699H3.5Z"/>
274 </svg>
275 `;const uYe=vt`
276 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
277 <g clip-path="url(#clip0_1013_1585)">
278 <path d="M14.06 9.02L14.98 9.94L5.92 19H5V18.08L14.06 9.02ZM17.66 3C17.41 3 17.15 3.1 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04C21.1 6.65 21.1 6.02 20.71 5.63L18.37 3.29C18.17 3.09 17.92 3 17.66 3ZM14.06 6.19L3 17.25V21H6.75L17.81 9.94L14.06 6.19Z"/>
279 </g>
280 <defs>
281 <clipPath id="clip0_1013_1585">
282 <rect width="24" height="24"/>
283 </clipPath>
284 </defs>
285 </svg>
286 `;vt`
287 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
288 <g clip-path="url(#clip0_992_5553)">
289 <path d="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM12 17H14V7H10V9H12V17Z"/>
290 </g>
291 <defs>
292 <clipPath id="clip0_992_5553">
293 <rect width="24" height="24"/>
294 </clipPath>
295 </defs>
296 </svg>
297 `;const dYe=vt`
298 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
299 <g clip-path="url(#clip0_992_5559)">
300 <path d="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM15 15H11V13H13C14.1 13 15 12.11 15 11V9C15 7.89 14.1 7 13 7H9V9H13V11H11C9.9 11 9 11.89 9 13V17H15V15Z"/>
301 </g>
302 <defs>
303 <clipPath id="clip0_992_5559">
304 <rect width="24" height="24"/>
305 </clipPath>
306 </defs>
307 </svg>
308 `,fYe=vt`
309 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
310 <g clip-path="url(#clip0_992_5565)">
311 <path d="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM15 15V13.5C15 12.67 14.33 12 13.5 12C14.33 12 15 11.33 15 10.5V9C15 7.89 14.1 7 13 7H9V9H13V11H11V13H13V15H9V17H13C14.1 17 15 16.11 15 15Z"/>
312 </g>
313 <defs>
314 <clipPath id="clip0_992_5565">
315 <rect width="24" height="24"/>
316 </clipPath>
317 </defs>
318 </svg>
319 `,pYe=vt`
320 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
321 <g clip-path="url(#clip0_977_7757)">
322 <path d="M19.04 3H5.04004C3.94004 3 3.04004 3.9 3.04004 5V19C3.04004 20.1 3.94004 21 5.04004 21H19.04C20.14 21 21.04 20.1 21.04 19V5C21.04 3.9 20.14 3 19.04 3ZM19.04 19H5.04004V5H19.04V19ZM13.04 17H15.04V7H13.04V11H11.04V7H9.04004V13H13.04V17Z"/>
323 </g>
324 <defs>
325 <clipPath id="clip0_977_7757">
326 <rect width="24" height="24"/>
327 </clipPath>
328 </defs>
329 </svg>
330 `;vt`
331 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
332 <g clip-path="url(#clip0_977_7760)">
333 <path d="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM15 15V13C15 11.89 14.1 11 13 11H11V9H15V7H9V13H13V15H9V17H13C14.1 17 15 16.11 15 15Z"/>
334 </g>
335 <defs>
336 <clipPath id="clip0_977_7760">
337 <rect width="24" height="24"/>
338 </clipPath>
339 </defs>
340 </svg>
341 `;vt`
342 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
343 <g clip-path="url(#clip0_977_7763)">
344 <path d="M11 17H13C14.1 17 15 16.11 15 15V13C15 11.89 14.1 11 13 11H11V9H15V7H11C9.9 7 9 7.89 9 9V15C9 16.11 9.9 17 11 17ZM11 13H13V15H11V13ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19Z"/>
345 </g>
346 <defs>
347 <clipPath id="clip0_977_7763">
348 <rect width="24" height="24"/>
349 </clipPath>
350 </defs>
351 </svg>
352 `;vt`
353 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
354 <g clip-path="url(#clip0_977_8075)">
355 <path d="M19 5V19H5V5H19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM14.14 11.86L11.14 15.73L9 13.14L6 17H18L14.14 11.86Z"/>
356 </g>
357 <defs>
358 <clipPath id="clip0_977_8075">
359 <rect width="24" height="24"/>
360 </clipPath>
361 </defs>
362 </svg>
363 `;const hYe=vt`
364 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
365 <path d="M6.29811 18.625C6.04505 18.625 5.83115 18.5375 5.65641 18.3626C5.48166 18.1877 5.39429 17.9736 5.39429 17.7203C5.39429 17.467 5.48166 17.2532 5.65641 17.0788C5.83115 16.9045 6.04505 16.8173 6.29811 16.8173H9.21159L12.452 7.18265H9.53851C9.28545 7.18265 9.07155 7.0952 8.89681 6.9203C8.72206 6.7454 8.63469 6.5313 8.63469 6.278C8.63469 6.02472 8.72206 5.81089 8.89681 5.63652C9.07155 5.46217 9.28545 5.375 9.53851 5.375H16.8847C17.1377 5.375 17.3516 5.46245 17.5264 5.63735C17.7011 5.81225 17.7885 6.02634 17.7885 6.27962C17.7885 6.53293 17.7011 6.74676 17.5264 6.92113C17.3516 7.09548 17.1377 7.18265 16.8847 7.18265H14.2789L11.0385 16.8173H13.6443C13.8973 16.8173 14.1112 16.9048 14.286 17.0797C14.4607 17.2546 14.5481 17.4687 14.5481 17.722C14.5481 17.9752 14.4607 18.1891 14.286 18.3634C14.1112 18.5378 13.8973 18.625 13.6443 18.625H6.29811Z"/>
366 </svg>
367 `,kR=vt`
368 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
369 <path d="M17.0385 19.5003V16.5388H14.0769V15.0388H17.0385V12.0773H18.5384V15.0388H21.5V16.5388H18.5384V19.5003H17.0385ZM10.8077 16.5388H7.03845C5.78282 16.5388 4.7125 16.0963 3.8275 15.2114C2.9425 14.3266 2.5 13.2564 2.5 12.0009C2.5 10.7454 2.9425 9.67504 3.8275 8.78979C4.7125 7.90454 5.78282 7.46191 7.03845 7.46191H10.8077V8.96186H7.03845C6.1987 8.96186 5.48235 9.25834 4.8894 9.85129C4.29645 10.4442 3.99998 11.1606 3.99998 12.0003C3.99998 12.8401 4.29645 13.5564 4.8894 14.1494C5.48235 14.7423 6.1987 15.0388 7.03845 15.0388H10.8077V16.5388ZM8.25 12.7503V11.2504H15.75V12.7503H8.25ZM21.5 12.0003H20C20 11.1606 19.7035 10.4442 19.1106 9.85129C18.5176 9.25834 17.8013 8.96186 16.9615 8.96186H13.1923V7.46191H16.9615C18.2171 7.46191 19.2875 7.90441 20.1725 8.78939C21.0575 9.67439 21.5 10.7447 21.5 12.0003Z"/>
370 </svg>
371 `;vt`
372 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
373 <g clip-path="url(#clip0_971_7680)">
374 <path d="M11 18C11 19.1 10.1 20 9 20C7.9 20 7 19.1 7 18C7 16.9 7.9 16 9 16C10.1 16 11 16.9 11 18ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 8C16.1 8 17 7.1 17 6C17 4.9 16.1 4 15 4C13.9 4 13 4.9 13 6C13 7.1 13.9 8 15 8ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16Z" />
375 </g>
376 <defs>
377 <clipPath id="clip0_971_7680">
378 <rect width="24" height="24"/>
379 </clipPath>
380 </defs>
381 </svg>
382 `;const mYe=vt`
383 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
384 <g clip-path="url(#clip0_977_8067)">
385 <path d="M8 7H20C20.55 7 21 6.55 21 6C21 5.45 20.55 5 20 5H8C7.45 5 7 5.45 7 6C7 6.55 7.45 7 8 7ZM20 17H8C7.45 17 7 17.45 7 18C7 18.55 7.45 19 8 19H20C20.55 19 21 18.55 21 18C21 17.45 20.55 17 20 17ZM20 11H8C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11ZM4.5 16H2.5C2.22 16 2 16.22 2 16.5C2 16.78 2.22 17 2.5 17H4V17.5H3.5C3.22 17.5 3 17.72 3 18C3 18.28 3.22 18.5 3.5 18.5H4V19H2.5C2.22 19 2 19.22 2 19.5C2 19.78 2.22 20 2.5 20H4.5C4.78 20 5 19.78 5 19.5V16.5C5 16.22 4.78 16 4.5 16ZM2.5 5H3V7.5C3 7.78 3.22 8 3.5 8C3.78 8 4 7.78 4 7.5V4.5C4 4.22 3.78 4 3.5 4H2.5C2.22 4 2 4.22 2 4.5C2 4.78 2.22 5 2.5 5ZM4.5 10H2.5C2.22 10 2 10.22 2 10.5C2 10.78 2.22 11 2.5 11H3.8L2.12 12.96C2.04 13.05 2 13.17 2 13.28V13.5C2 13.78 2.22 14 2.5 14H4.5C4.78 14 5 13.78 5 13.5C5 13.22 4.78 13 4.5 13H3.2L4.88 11.04C4.96 10.95 5 10.83 5 10.72V10.5C5 10.22 4.78 10 4.5 10Z"/>
386 </g>
387 <defs>
388 <clipPath id="clip0_977_8067">
389 <rect width="24" height="24"/>
390 </clipPath>
391 </defs>
392 </svg>
393 `;vt`
394 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
395 <g clip-path="url(#clip0_971_7676)">
396 <path d="M18 13H13V18C13 18.55 12.55 19 12 19C11.45 19 11 18.55 11 18V13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H11V6C11 5.45 11.45 5 12 5C12.55 5 13 5.45 13 6V11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z"/>
397 </g>
398 <defs>
399 <clipPath id="clip0_971_7676">
400 <rect width="24" height="24"/>
401 </clipPath>
402 </defs>
403 </svg>
404 `;const _Ye=vt`
405 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
406 <g clip-path="url(#clip0_977_7897)">
407 <path d="M7.17 17C7.68 17 8.15 16.71 8.37 16.26L9.79 13.42C9.93 13.14 10 12.84 10 12.53V8C10 7.45 9.55 7 9 7H5C4.45 7 4 7.45 4 8V12C4 12.55 4.45 13 5 13H7L5.97 15.06C5.52 15.95 6.17 17 7.17 17ZM17.17 17C17.68 17 18.15 16.71 18.37 16.26L19.79 13.42C19.93 13.14 20 12.84 20 12.53V8C20 7.45 19.55 7 19 7H15C14.45 7 14 7.45 14 8V12C14 12.55 14.45 13 15 13H17L15.97 15.06C15.52 15.95 16.17 17 17.17 17Z"/>
408 </g>
409 <defs>
410 <clipPath id="clip0_977_7897">
411 <rect width="24" height="24"/>
412 </clipPath>
413 </defs>
414 </svg>
415 `,gYe=vt`
416 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
417 <path d="M7.30775 20.4997C6.81058 20.4997 6.385 20.3227 6.031 19.9687C5.677 19.6147 5.5 19.1892 5.5 18.692V5.99973H5.25C5.0375 5.99973 4.85942 5.92782 4.71575 5.78398C4.57192 5.64015 4.5 5.46198 4.5 5.24948C4.5 5.03682 4.57192 4.85873 4.71575 4.71523C4.85942 4.57157 5.0375 4.49973 5.25 4.49973H9C9 4.2549 9.08625 4.04624 9.25875 3.87374C9.43108 3.7014 9.63967 3.61523 9.8845 3.61523H14.1155C14.3603 3.61523 14.5689 3.7014 14.7413 3.87374C14.9138 4.04624 15 4.2549 15 4.49973H18.75C18.9625 4.49973 19.1406 4.57165 19.2843 4.71548C19.4281 4.85932 19.5 5.03748 19.5 5.24998C19.5 5.46265 19.4281 5.64073 19.2843 5.78423C19.1406 5.9279 18.9625 5.99973 18.75 5.99973H18.5V18.692C18.5 19.1892 18.323 19.6147 17.969 19.9687C17.615 20.3227 17.1894 20.4997 16.6923 20.4997H7.30775ZM17 5.99973H7V18.692C7 18.7818 7.02883 18.8556 7.0865 18.9132C7.14417 18.9709 7.21792 18.9997 7.30775 18.9997H16.6923C16.7821 18.9997 16.8558 18.9709 16.9135 18.9132C16.9712 18.8556 17 18.7818 17 18.692V5.99973ZM10.1543 16.9997C10.3668 16.9997 10.5448 16.9279 10.6885 16.7842C10.832 16.6404 10.9037 16.4622 10.9037 16.2497V8.74973C10.9037 8.53723 10.8318 8.35907 10.688 8.21523C10.5443 8.07157 10.3662 7.99973 10.1535 7.99973C9.941 7.99973 9.76292 8.07157 9.61925 8.21523C9.47575 8.35907 9.404 8.53723 9.404 8.74973V16.2497C9.404 16.4622 9.47583 16.6404 9.6195 16.7842C9.76333 16.9279 9.94158 16.9997 10.1543 16.9997ZM13.8465 16.9997C14.059 16.9997 14.2371 16.9279 14.3807 16.7842C14.5243 16.6404 14.596 16.4622 14.596 16.2497V8.74973C14.596 8.53723 14.5242 8.35907 14.3805 8.21523C14.2367 8.07157 14.0584 7.99973 13.8458 7.99973C13.6333 7.99973 13.4552 8.07157 13.3115 8.21523C13.168 8.35907 13.0962 8.53723 13.0962 8.74973V16.2497C13.0962 16.4622 13.1682 16.6404 13.312 16.7842C13.4557 16.9279 13.6338 16.9997 13.8465 16.9997Z"/>
418 </svg>
419 `;vt`
420 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
421 <path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z" />
422 </svg>
423 `;const vYe=vt`
424 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
425 <path d="M3.25 13.7404C3.0375 13.7404 2.85938 13.6684 2.71563 13.5246C2.57188 13.3808 2.5 13.2026 2.5 12.99C2.5 12.7774 2.57188 12.5993 2.71563 12.4558C2.85938 12.3122 3.0375 12.2404 3.25 12.2404H20.75C20.9625 12.2404 21.1406 12.3123 21.2843 12.4561C21.4281 12.5999 21.5 12.7781 21.5 12.9907C21.5 13.2033 21.4281 13.3814 21.2843 13.525C21.1406 13.6686 20.9625 13.7404 20.75 13.7404H3.25ZM10.9423 10.2596V6.62495H6.5673C6.2735 6.62495 6.02377 6.52201 5.8181 6.31613C5.61245 6.11026 5.50963 5.86027 5.50963 5.56615C5.50963 5.27205 5.61245 5.02083 5.8181 4.8125C6.02377 4.60417 6.2735 4.5 6.5673 4.5H17.4423C17.7361 4.5 17.9858 4.60294 18.1915 4.80883C18.3971 5.01471 18.5 5.2647 18.5 5.5588C18.5 5.85292 18.3971 6.10413 18.1915 6.31245C17.9858 6.52078 17.7361 6.62495 17.4423 6.62495H13.0673V10.2596H10.9423ZM10.9423 15.7211H13.0673V18.4423C13.0673 18.7361 12.9643 18.9858 12.7584 19.1915C12.5526 19.3971 12.3026 19.5 12.0085 19.5C11.7144 19.5 11.4631 19.3962 11.2548 19.1887C11.0465 18.9811 10.9423 18.7291 10.9423 18.4327V15.7211Z"/>
426 </svg>
427 `;vt`
428 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
429 <g clip-path="url(#clip0_977_8078)">
430 <path d="M20 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H20C21.1 21 22 20.1 22 19V5C22 3.9 21.1 3 20 3ZM20 5V8H5V5H20ZM15 19H10V10H15V19ZM5 10H8V19H5V10ZM17 19V10H20V19H17Z"/>
431 </g>
432 <defs>
433 <clipPath id="clip0_977_8078">
434 <rect width="24" height="24"/>
435 </clipPath>
436 </defs>
437 </svg>
438 `;const bYe=vt`
439 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
440 <g clip-path="url(#clip0_992_5547)">
441 <path d="M5 5.5C5 6.33 5.67 7 6.5 7H10.5V17.5C10.5 18.33 11.17 19 12 19C12.83 19 13.5 18.33 13.5 17.5V7H17.5C18.33 7 19 6.33 19 5.5C19 4.67 18.33 4 17.5 4H6.5C5.67 4 5 4.67 5 5.5Z"/>
442 </g>
443 <defs>
444 <clipPath id="clip0_992_5547">
445 <rect width="24" height="24"/>
446 </clipPath>
447 </defs>
448 </svg>
449 `;vt`
450 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
451 <path d="M5.66936 16.3389L9.39244 12.6158C9.54115 12.4671 9.71679 12.3937 9.91936 12.3957C10.1219 12.3976 10.2975 12.4761 10.4463 12.6312C10.5847 12.7823 10.654 12.9585 10.654 13.1599C10.654 13.3613 10.5847 13.5363 10.4463 13.6851L6.32704 17.8197C6.14627 18.0004 5.93538 18.0908 5.69436 18.0908C5.45333 18.0908 5.24243 18.0004 5.06166 17.8197L3.01744 15.7754C2.87899 15.637 2.81136 15.4629 2.81456 15.2533C2.81776 15.0437 2.88859 14.8697 3.02706 14.7312C3.16551 14.5928 3.34008 14.5235 3.55076 14.5235C3.76144 14.5235 3.93494 14.5928 4.07126 14.7312L5.66936 16.3389ZM5.66936 8.72359L9.39244 5.00049C9.54115 4.85177 9.71679 4.77838 9.91936 4.78031C10.1219 4.78223 10.2975 4.86075 10.4463 5.01586C10.5847 5.16691 10.654 5.34314 10.654 5.54454C10.654 5.74592 10.5847 5.92097 10.4463 6.06969L6.32704 10.2043C6.14627 10.3851 5.93538 10.4755 5.69436 10.4755C5.45333 10.4755 5.24243 10.3851 5.06166 10.2043L3.01744 8.16009C2.87899 8.02162 2.81136 7.84759 2.81456 7.63799C2.81776 7.42837 2.88859 7.25433 3.02706 7.11586C3.16551 6.97741 3.34008 6.90819 3.55076 6.90819C3.76144 6.90819 3.93494 6.97741 4.07126 7.11586L5.66936 8.72359ZM13.7597 16.5581C13.5472 16.5581 13.3691 16.4862 13.2253 16.3424C13.0816 16.1986 13.0097 16.0204 13.0097 15.8078C13.0097 15.5952 13.0816 15.4171 13.2253 15.2735C13.3691 15.13 13.5472 15.0582 13.7597 15.0582H20.7597C20.9722 15.0582 21.1503 15.1301 21.2941 15.2739C21.4378 15.4177 21.5097 15.5959 21.5097 15.8085C21.5097 16.0211 21.4378 16.1992 21.2941 16.3427C21.1503 16.4863 20.9722 16.5581 20.7597 16.5581H13.7597ZM13.7597 8.94276C13.5472 8.94276 13.3691 8.87085 13.2253 8.72704C13.0816 8.58324 13.0097 8.40504 13.0097 8.19244C13.0097 7.97985 13.0816 7.80177 13.2253 7.65819C13.3691 7.5146 13.5472 7.44281 13.7597 7.44281H20.7597C20.9722 7.44281 21.1503 7.51471 21.2941 7.65851C21.4378 7.80233 21.5097 7.98053 21.5097 8.19311C21.5097 8.40571 21.4378 8.5838 21.2941 8.72739C21.1503 8.87097 20.9722 8.94276 20.7597 8.94276H13.7597Z"/>
452 </svg>
453 `;const yYe=(e,t)=>{e.config(iYe).config(n=>{n.update($0.key,o=>({...o,linkIcon:(t==null?void 0:t.linkIcon)??(()=>kR),editButton:(t==null?void 0:t.editButton)??(()=>uYe),removeButton:(t==null?void 0:t.removeButton)??(()=>gYe),confirmButton:(t==null?void 0:t.confirmButton)??(()=>cYe),inputPlaceholder:(t==null?void 0:t.inputPlaceholder)??"Paste link...",onCopyLink:(t==null?void 0:t.onCopyLink)??(()=>{})}))}).use(sYe)},wYe=Object.freeze(Object.defineProperty({__proto__:null,defineFeature:yYe},Symbol.toStringTag,{value:"Module"}));var xR="Expected a function",F9=0/0,kYe="[object Symbol]",xYe=/^\s+|\s+$/g,CYe=/^[-+]0x[0-9a-f]+$/i,SYe=/^0b[01]+$/i,$Ye=/^0o[0-7]+$/i,EYe=parseInt,TYe=typeof $r=="object"&&$r&&$r.Object===Object&&$r,MYe=typeof self=="object"&&self&&self.Object===Object&&self,AYe=TYe||MYe||Function("return this")(),IYe=Object.prototype,OYe=IYe.toString,PYe=Math.max,NYe=Math.min,ib=function(){return AYe.Date.now()};function LYe(e,t,n){var o,r,i,s,l,a,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(xR);t=D9(t)||0,n1(n)&&(u=!!n.leading,d="maxWait"in n,i=d?PYe(D9(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p($){var A=o,P=r;return o=r=void 0,c=$,s=e.apply(P,A),s}function h($){return c=$,l=setTimeout(v,t),u?p($):s}function m($){var A=$-a,P=$-c,N=t-A;return d?NYe(N,i-P):N}function b($){var A=$-a,P=$-c;return a===void 0||A>=t||A<0||d&&P>=i}function v(){var $=ib();if(b($))return E($);l=setTimeout(v,m($))}function E($){return l=void 0,f&&o?p($):(o=r=void 0,s)}function w(){l!==void 0&&clearTimeout(l),c=0,o=a=r=l=void 0}function S(){return l===void 0?s:E(ib())}function T(){var $=ib(),A=b($);if(o=arguments,r=this,a=$,A){if(l===void 0)return h(a);if(d)return l=setTimeout(v,t),p(a)}return l===void 0&&(l=setTimeout(v,t)),s}return T.cancel=w,T.flush=S,T}function RYe(e,t,n){var o=!0,r=!0;if(typeof e!="function")throw new TypeError(xR);return n1(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),LYe(e,t,{leading:o,maxWait:t,trailing:r})}function n1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function FYe(e){return!!e&&typeof e=="object"}function DYe(e){return typeof e=="symbol"||FYe(e)&&OYe.call(e)==kYe}function D9(e){if(typeof e=="number")return e;if(DYe(e))return F9;if(n1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=n1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(xYe,"");var n=SYe.test(e);return n||$Ye.test(e)?EYe(e.slice(2),n?2:8):CYe.test(e)?F9:+e}var BYe=RYe;const zYe=jl(BYe);var CR=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Rt=(e,t,n)=>(CR(e,t,"read from private field"),n?n.call(e):t.get(e)),no=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qt=(e,t,n,o)=>(CR(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);function T0(e,t){return Object.assign(e,{meta:{package:"@milkdown/plugin-block",...t}}),e}const VYe=e=>!nk(t=>t.type.name==="table")(e),Hh=Cn({filterNodes:VYe},"blockConfig");T0(Hh,{displayName:"Ctx<blockConfig>"});function jYe(e,t,n){var o;if(!e.dom.parentElement)return null;const r=(o=e.posAtCoords({left:t.x,top:t.y}))==null?void 0:o.inside;if(r==null||r<0)return null;let i=e.state.doc.resolve(r),s=e.state.doc.nodeAt(r),l=e.nodeDOM(r);const a=u=>{const d=i.depth>=1&&i.index(i.depth)===0;if(!(u||d))return;const f=i.before(i.depth);s=e.state.doc.nodeAt(f),l=e.nodeDOM(f),i=e.state.doc.resolve(f),n(i,s)||a(!0)},c=n(i,s);return a(!c),!l||!s?null:{node:s,$pos:i,el:l}}let B9=null;function HYe(){return B9||(B9=document.implementation.createHTMLDocument("title"))}const UYe={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};function WYe(e,t){const n=[];let{openStart:o,openEnd:r,content:i}=t;for(;o>1&&r>1&&i.childCount===1&&i.firstChild.childCount===1;){o-=1,r-=1;const p=i.firstChild;n.push(p.type.name,p.attrs!==p.type.defaultAttrs?p.attrs:null),i=p.content}const s=e.someProp("clipboardSerializer")||Wl.fromSchema(e.state.schema),l=HYe(),a=l.createElement("div");a.appendChild(s.serializeFragment(i,{document:l}));let c=a.firstChild,u,d=0;for(;c&&c.nodeType===1&&(u=UYe[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){const h=l.createElement(u[p]);for(;a.firstChild;)h.appendChild(a.firstChild);a.appendChild(h),d++}c=a.firstChild}c&&c.nodeType===1&&c.setAttribute("data-pm-slice",`${o} ${r}${d?` -${d}`:""} ${JSON.stringify(n)}`);const f=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,`
454
455 `);return{dom:a,text:f}}const z9=km.ie&&km.ie_version<15||km.ios&&km.webkit_version<604,V9=20;var lp,q_,Qc,wi,Cf,ki,B2,SR,eu,Sf,tu,nu,K_,$f,Ef,Tf,G_,ou;class qYe{constructor(){no(this,B2),no(this,eu),no(this,lp,void 0),no(this,q_,void 0),no(this,Qc,void 0),no(this,wi,void 0),no(this,Cf,void 0),no(this,ki,void 0),no(this,tu,void 0),no(this,nu,void 0),no(this,K_,void 0),no(this,$f,void 0),no(this,Ef,void 0),no(this,Tf,void 0),no(this,G_,void 0),no(this,ou,void 0),Qt(this,q_,()=>{if(!Rt(this,wi))return null;const t=Rt(this,wi),n=Rt(this,eu,Sf);if(n&&at.isSelectable(t.node)){const o=at.create(n.state.doc,t.$pos.pos);return n.dispatch(n.state.tr.setSelection(o)),n.focus(),Qt(this,Qc,o),o}return null}),Qt(this,Qc,null),Qt(this,wi,null),Qt(this,Cf,void 0),Qt(this,ki,!1),Qt(this,nu,()=>{var t;(t=Rt(this,tu))==null||t.call(this,{type:"hide"}),Qt(this,wi,null)}),Qt(this,K_,t=>{var n;Qt(this,wi,t),(n=Rt(this,tu))==null||n.call(this,{type:"show",active:t})}),this.bind=(t,n)=>{Qt(this,lp,t),Qt(this,tu,n)},this.addEvent=t=>{t.addEventListener("mousedown",Rt(this,$f)),t.addEventListener("mouseup",Rt(this,Ef)),t.addEventListener("dragstart",Rt(this,Tf))},this.removeEvent=t=>{t.removeEventListener("mousedown",Rt(this,$f)),t.removeEventListener("mouseup",Rt(this,Ef)),t.removeEventListener("dragstart",Rt(this,Tf))},this.unBind=()=>{Qt(this,tu,void 0)},Qt(this,$f,()=>{var t;Qt(this,Cf,(t=Rt(this,wi))==null?void 0:t.el.getBoundingClientRect()),Rt(this,q_).call(this)}),Qt(this,Ef,()=>{if(!Rt(this,ki)){requestAnimationFrame(()=>{var t;Rt(this,Cf)&&((t=Rt(this,eu,Sf))==null||t.focus())});return}Qt(this,ki,!1),Qt(this,Qc,null)}),Qt(this,Tf,t=>{var n;Qt(this,ki,!0);const o=Rt(this,eu,Sf);if(!o)return;o.dom.dataset.dragging="true";const r=Rt(this,Qc);if(t.dataTransfer&&r){const i=r.content();t.dataTransfer.effectAllowed="copyMove";const{dom:s,text:l}=WYe(o,i);t.dataTransfer.clearData(),t.dataTransfer.setData(z9?"Text":"text/html",s.innerHTML),z9||t.dataTransfer.setData("text/plain",l);const a=(n=Rt(this,wi))==null?void 0:n.el;a&&t.dataTransfer.setDragImage(a,0,0),o.dragging={slice:i,move:!0}}}),this.keydownCallback=t=>(Rt(this,nu).call(this),Qt(this,ki,!1),t.dom.dataset.dragging="false",!1),Qt(this,G_,zYe((t,n)=>{if(!t.editable)return;const o=t.dom.getBoundingClientRect(),r=o.left+o.width/2;if(!(t.root.elementFromPoint(r,n.clientY)instanceof Element)){Rt(this,nu).call(this);return}const i=Rt(this,B2,SR);if(!i)return;const s=jYe(t,{x:r,y:n.clientY},i);if(!s){Rt(this,nu).call(this);return}Rt(this,K_).call(this,s)},200)),this.mousemoveCallback=(t,n)=>(t.composing||!t.editable||Rt(this,G_).call(this,t,n),!1),this.dragoverCallback=(t,n)=>{var o;if(Rt(this,ki)){const r=(o=Rt(this,eu,Sf))==null?void 0:o.dom.parentElement;if(!r)return!1;const i=r.scrollHeight>r.clientHeight,s=r.getBoundingClientRect();if(i){if(r.scrollTop>0&&Math.abs(n.y-s.y)<V9){const a=r.scrollTop>10?r.scrollTop-10:0;return r.scrollTop=a,!1}const l=Math.round(t.dom.getBoundingClientRect().height);if(Math.round(r.scrollTop+s.height)<l&&Math.abs(n.y-(s.height+s.y))<V9){const a=r.scrollTop+10;return r.scrollTop=a,!1}}}return!1},this.dragenterCallback=t=>{t.dragging&&(Qt(this,ki,!0),t.dom.dataset.dragging="true")},this.dragleaveCallback=(t,n)=>{const o=n.clientX,r=n.clientY;(o<0||r<0||o>window.innerWidth||r>window.innerHeight)&&(Qt(this,wi,null),Rt(this,ou).call(this,t))},this.dropCallback=t=>(Rt(this,ou).call(this,t),!1),this.dragendCallback=t=>{Rt(this,ou).call(this,t)},Qt(this,ou,t=>{Qt(this,ki,!1),t.dom.dataset.dragging="false"})}}lp=new WeakMap,q_=new WeakMap,Qc=new WeakMap,wi=new WeakMap,Cf=new WeakMap,ki=new WeakMap,B2=new WeakSet,SR=function(){var e;return(e=Rt(this,lp))==null?void 0:e.get(Hh.key).filterNodes},eu=new WeakSet,Sf=function(){var e;return(e=Rt(this,lp))==null?void 0:e.get(pn)},tu=new WeakMap,nu=new WeakMap,K_=new WeakMap,$f=new WeakMap,Ef=new WeakMap,Tf=new WeakMap,G_=new WeakMap,ou=new WeakMap;const $R=Cn(new qYe,"blockService");T0(Hh,{displayName:"Ctx<blockService>"});const J4=Cn({},"blockSpec");T0(Hh,{displayName:"Ctx<blockSpec>"});const X4=eo(e=>{const t=new mn("MILKDOWN_BLOCK"),n=e.get($R.key),o=e.get(J4.key);return new wn({key:t,...o,props:{...o.props,handleDOMEvents:{drop:r=>n.dropCallback(r),pointermove:(r,i)=>n.mousemoveCallback(r,i),keydown:r=>n.keydownCallback(r),dragover:(r,i)=>n.dragoverCallback(r,i),dragleave:(r,i)=>n.dragleaveCallback(r,i),dragenter:r=>n.dragenterCallback(r),dragend:r=>n.dragendCallback(r)}}})});T0(X4,{displayName:"Prose<block>"});const Q4=[J4,Hh,$R,X4];Q4.key=J4.key;Q4.pluginKey=X4.key;var ex=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},gl=(e,t,n)=>(ex(e,t,"read from private field"),n?n.call(e):t.get(e)),ra=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},ia=(e,t,n,o)=>(ex(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),KYe=(e,t,n)=>(ex(e,t,"access private method"),n);function GYe(e){const t=Cn({},`${e}_SLASH_SPEC`),n=eo(r=>{const i=r.get(t.key);return new wn({key:new mn(`${e}_SLASH`),...i})}),o=[t,n];return o.key=t.key,o.pluginKey=n.key,t.meta={package:"@milkdown/plugin-slash",displayName:`Ctx<slashSpec>|${e}`},n.meta={package:"@milkdown/plugin-slash",displayName:`Prose<slash>|${e}`},o}var Mf,Y_,ru,Z_,J_,X_,z2,ER;class YYe{constructor(t){ra(this,z2),ra(this,Mf,void 0),ra(this,Y_,void 0),ra(this,ru,void 0),ra(this,Z_,void 0),ra(this,J_,void 0),ra(this,X_,void 0),ia(this,Mf,!1),this.onShow=()=>{},this.onHide=()=>{},ia(this,X_,(n,o)=>{var r;const{state:i,composing:s}=n,{selection:l,doc:a}=i,{ranges:c}=l,u=Math.min(...c.map(p=>p.$from.pos)),d=Math.max(...c.map(p=>p.$to.pos)),f=o&&o.doc.eq(a)&&o.selection.eq(l);if(gl(this,Mf)||((r=n.dom.parentElement)==null||r.appendChild(this.element),ia(this,Mf,!0)),!(s||f)){if(!gl(this,Z_).call(this,n,o)){this.hide();return}ty({getBoundingClientRect:()=>t0(n,u,d)},this.element,{placement:"bottom-start",middleware:[ey(),Xb(gl(this,J_))]}).then(({x:p,y:h})=>{Object.assign(this.element.style,{left:`${p}px`,top:`${h}px`})}),this.show()}}),this.update=(n,o)=>{g0(gl(this,X_),gl(this,Y_))(n,o)},this.getContent=(n,o=r=>r.type.name==="paragraph")=>{const{selection:r}=n.state,{empty:i,$from:s}=r,l=n.state.selection instanceof lt,a=this.element.contains(document.activeElement),c=!n.hasFocus()&&!a,u=!n.editable,d=!y1e(o)(n.state.selection);if(!(c||u||!i||!l||d))return s.parent.textBetween(Math.max(0,s.parentOffset-500),s.parentOffset,void 0,"")},this.destroy=()=>{},this.show=()=>{this.element.dataset.show="true",this.onShow()},this.hide=()=>{this.element.dataset.show="false",this.onHide()},this.element=t.content,ia(this,Y_,t.debounce??200),ia(this,Z_,t.shouldShow??KYe(this,z2,ER)),ia(this,ru,t.trigger??"/"),ia(this,J_,t.offset)}}Mf=new WeakMap,Y_=new WeakMap,ru=new WeakMap,Z_=new WeakMap,J_=new WeakMap,X_=new WeakMap,z2=new WeakSet,ER=function(e){const t=this.getContent(e);if(!t)return!1;const n=t.at(-1);return n?Array.isArray(gl(this,ru))?gl(this,ru).includes(n):gl(this,ru)===n:!1};function TR(e){return e.$from.parent.type.name==="code_block"}function MR(e){var n;const t=(n=e.$from.node(e.$from.depth-1))==null?void 0:n.type;return(t==null?void 0:t.name)==="list_item"}function AR(e,t){customElements.get(e)==null&&customElements.define(e,t)}function tx(e){const{$from:t,$to:n}=e.selection,{pos:o}=t,{pos:r}=n;return e=e.deleteRange(o-t.node().content.size,r),e}function ZYe(e,t,n=null){const{from:o,to:r}=e.selection;return e.setBlockType(o,r,t,n)}function JYe(e,t,n=null){const{$from:o,$to:r}=e.selection,i=o.blockRange(r),s=i&&X3(i,t,n);return s?e.wrap(i,s):null}function XYe(e,t,n=null){const o=t.createAndFill(n);return o?e.replaceSelectionWith(o):null}function Lm(e,t=null){return(n,o)=>{if(o){const r=ZYe(tx(n.tr),e,t);o(r.scrollIntoView())}return!0}}function sb(e,t=null){return(n,o)=>{const r=JYe(tx(n.tr),e,t);return r?(o&&o(r.scrollIntoView()),!0):!1}}function QYe(e,t=null){return(n,o)=>{const r=XYe(tx(n.tr),e,t);return r?(o&&o(r.scrollIntoView()),!0):!1}}var vl,$u;class eZe{constructor(){mi(this,vl,void 0);mi(this,$u,void 0);Eo(this,vl,[]),this.clear=()=>(Eo(this,vl,[]),this),Eo(this,$u,t=>{const n={group:t,addItem:(o,r)=>{const i={key:o,...r};return t.items.push(i),n},clear:()=>(t.items=[],n)};return n}),this.addGroup=(t,n)=>{const r={key:t,label:n,items:[]};return pt(this,vl).push(r),pt(this,$u).call(this,r)},this.getGroup=t=>{const n=pt(this,vl).find(o=>o.key===t);if(!n)throw new Error(`Group with key ${t} not found`);return pt(this,$u).call(this,n)},this.build=()=>pt(this,vl)}}vl=new WeakMap,$u=new WeakMap;function gi(e){return window.fluentComAdmin.i18n[e]||e}function tZe(e,t){var i,s,l,a,c,u,d,f,p;const n=new eZe;n.addGroup("text",(t==null?void 0:t.slashMenuTextGroupLabel)??gi("Text")).addItem("text",{label:(t==null?void 0:t.slashMenuTextGroupLabel)??gi("Text"),icon:((i=t==null?void 0:t.slashMenuTextIcon)==null?void 0:i.call(t))??bYe,onRun:h=>{const m=h.get(pn),{dispatch:b,state:v}=m;Lm(Ps.type(h))(v,b)}}).addItem("h2",{label:(t==null?void 0:t.slashMenuH2Label)??gi("Heading 2"),icon:((s=t==null?void 0:t.slashMenuH2Icon)==null?void 0:s.call(t))??dYe,onRun:h=>{const m=h.get(pn),{dispatch:b,state:v}=m;Lm(Pi.type(h),{level:2})(v,b)}}).addItem("h3",{label:(t==null?void 0:t.slashMenuH3Label)??gi("Heading 3"),icon:((l=t==null?void 0:t.slashMenuH3Icon)==null?void 0:l.call(t))??fYe,onRun:h=>{const m=h.get(pn),{dispatch:b,state:v}=m;Lm(Pi.type(h),{level:3})(v,b)}}).addItem("h4",{label:(t==null?void 0:t.slashMenuH4Label)??gi("Heading 4"),icon:((a=t==null?void 0:t.slashMenuH4Icon)==null?void 0:a.call(t))??pYe,onRun:h=>{const m=h.get(pn),{dispatch:b,state:v}=m;Lm(Pi.type(h),{level:4})(v,b)}}).addItem("quote",{label:(t==null?void 0:t.slashMenuQuoteLabel)??gi("Quote"),icon:((c=t==null?void 0:t.slashMenuQuoteIcon)==null?void 0:c.call(t))??_Ye,onRun:h=>{const m=h.get(pn),{dispatch:b,state:v}=m;sb(wd.type(h))(v,b)}}).addItem("code",{label:(t==null?void 0:t.slashMenuCodeBlockLabel)??gi("Code"),icon:((u=t==null?void 0:t.slashMenuCodeBlockIcon)==null?void 0:u.call(t))??wR,onRun:h=>{const m=h.get(pn),{dispatch:b,state:v}=m;QYe(kd.type(h))(v,b)}}),n.addGroup("list",(t==null?void 0:t.slashMenuListGroupLabel)??gi("List")).addItem("bullet-list",{label:(t==null?void 0:t.slashMenuBulletListLabel)??gi("Bullet List"),icon:((d=t==null?void 0:t.slashMenuBulletListIcon)==null?void 0:d.call(t))??aYe,onRun:h=>{const m=h.get(pn),{dispatch:b,state:v}=m;sb(yc.type(h))(v,b)}}).addItem("ordered-list",{label:(t==null?void 0:t.slashMenuOrderedListLabel)??gi("Ordered List"),icon:((f=t==null?void 0:t.slashMenuOrderedListIcon)==null?void 0:f.call(t))??mYe,onRun:h=>{const m=h.get(pn),{dispatch:b,state:v}=m;sb(wc.type(h))(v,b)}}),(p=t==null?void 0:t.buildMenu)==null||p.call(t,n);let o=n.build();e&&(o=o.map(h=>{const m=h.items.filter(b=>b.label.toLowerCase().includes(e.toLowerCase()));return{...h,items:m}}).filter(h=>h.items.length>0));const r=o.flatMap(h=>h.items);return r.forEach((h,m)=>{Object.assign(h,{index:m})}),o.reduce((h,m)=>{const b=h+m.items.length;return Object.assign(m,{range:[h,b]}),b},0),{groups:o,size:r.length}}const IR=({show:e,hide:t,ctx:n,filter:o,config:r})=>{const{groups:i,size:s}=O2(()=>tZe(o,r),[o]),l=KL(),[a,c]=eR(0),u=O2(()=>l.current.getRootNode(),[l]),d=q4({x:-999,y:-999}),f=Ic(E=>{const w=d.current;if(!w)return;const{x:S,y:T}=E;w.x=S,w.y=T},[]);t1(()=>{s===0&&e&&(t==null||t())},[s,e]);const p=Ic((E,w)=>{c(S=>{const T=typeof E=="function"?E(S):E;return w==null||w(T),T})},[]),h=Ic(E=>{const w=l.current.querySelector(`[data-index="${E}"]`),S=l.current.querySelector(".menu-groups");!w||!S||(S.scrollTop=w.offsetTop-S.offsetTop)},[]),m=Ic(E=>{const w=i.flatMap(S=>S.items).at(E);w&&n&&w.onRun(n),t==null||t()},[i]),b=Ic(E=>{if(E.key==="Escape"){E.preventDefault(),t==null||t();return}if(E.key==="ArrowDown")return E.preventDefault(),p(w=>w<s-1?w+1:w,h);if(E.key==="ArrowUp")return E.preventDefault(),p(w=>w<=0?w:w-1,h);if(E.key==="ArrowLeft")return E.preventDefault(),p(w=>{const S=i.find($=>$.range[0]<=w&&$.range[1]>w);if(!S)return w;const T=i[i.indexOf(S)-1];return T?T.range[1]-1:w},h);if(E.key==="ArrowRight")return E.preventDefault(),p(w=>{const S=i.find($=>$.range[0]<=w&&$.range[1]>w);if(!S)return w;const T=i[i.indexOf(S)+1];return T?T.range[0]:w},h);E.key==="Enter"&&(E.preventDefault(),m(a))},[t,i,a]),v=Ic(E=>w=>{const S=d.current;if(!S)return;const{x:T,y:$}=w;T===S.x&&$===S.y||p(E)},[]);return t1(()=>(e?u.addEventListener("keydown",b,{capture:!0}):u.removeEventListener("keydown",b,{capture:!0}),()=>{u.removeEventListener("keydown",b,{capture:!0})}),[e,b]),vt`
456 <host onmousedown=${E=>E.preventDefault()}>
457 <div class="menu-groups" onmousemove=${f}>
458 ${i.map(E=>vt`
459 <div key=${E.key} class="menu-group">
460 <ul>
461 ${E.items.map(w=>vt`<li
462 key=${w.key}
463 data-index=${w.index}
464 class=${a===w.index?"hover":""}
465 onmouseenter=${v(w.index)}
466 onmousedown=${()=>{var S;(S=l.current.querySelector(`[data-index="${w.index}"]`))==null||S.classList.add("active")}}
467 onmouseup=${()=>{var S;(S=l.current.querySelector(`[data-index="${w.index}"]`))==null||S.classList.remove("active"),m(w.index)}}
468 >
469 ${w.icon}
470 <span>${w.label}</span>
471 </li>`)}
472 </ul>
473 </div>
474 `)}
475 </div>
476 </host>
477 `};IR.props={ctx:Object,config:Object,show:Boolean,filter:String,hide:Function};const OR=Vh(IR),PR=GYe("CREPE_MENU"),NR=Cn({show:()=>{},hide:()=>{}},"menuAPICtx");AR("milkdown-slash-menu",OR);function nZe(e,t){e.set(PR.key,{view:n=>new oZe(e,n,t)})}var Zo,$i,bl;class oZe{constructor(t,n,o){mi(this,Zo,void 0);mi(this,$i,void 0);mi(this,bl,void 0);Eo(this,bl,null),this.update=i=>{pt(this,$i).update(i)},this.show=i=>{Eo(this,bl,i),pt(this,Zo).filter="",pt(this,$i).show()},this.hide=()=>{Eo(this,bl,null),pt(this,$i).hide()},this.destroy=()=>{pt(this,$i).destroy(),pt(this,Zo).remove()},Eo(this,Zo,new OR),pt(this,Zo).hide=this.hide,pt(this,Zo).ctx=t,pt(this,Zo).config=o;const r=this;Eo(this,$i,new YYe({content:pt(this,Zo),debounce:20,shouldShow(i){if(TR(i.state.selection)||MR(i.state.selection))return!1;const s=this.getContent(i,a=>["paragraph","heading"].includes(a.type.name));if(s==null)return!1;const l=pt(r,bl);return pt(r,Zo).filter=s.startsWith("/")?s.slice(1):s,typeof l=="number"?i.state.doc.resolve(l).node()!==i.state.doc.resolve(i.state.selection.from).node()?(Eo(r,bl,null),!1):!0:!!s.startsWith("/")},offset:10})),pt(this,$i).onShow=()=>{pt(this,Zo).show=!0},pt(this,$i).onHide=()=>{pt(this,Zo).show=!1},this.update(n),t.set(NR.key,{show:i=>this.show(i),hide:()=>this.hide()})}}Zo=new WeakMap,$i=new WeakMap,bl=new WeakMap;const rZe=(e,t)=>{e.config(n=>nZe(n,t)).use(NR).use(Q4).use(PR)},iZe=Object.freeze(Object.defineProperty({__proto__:null,defineFeature:rZe},Symbol.toStringTag,{value:"Module"}));function sZe(e){var t;return e.childCount<=1&&!((t=e.firstChild)!=null&&t.content.size)}function lZe(e,t){const{selection:n}=e;if(!n.empty)return null;const o=n.$anchor,r=o.parent;if(r.content.size>0||nk(l=>l.type.name==="table")(o))return null;const s=o.before();return Rn.node(s,s+r.nodeSize,{class:"crepe-placeholder","data-placeholder":t})}const o1=Cn({text:"Please enter...",mode:"block"},"placeholderConfigCtx"),LR=eo(e=>new wn({key:new mn("CREPE_PLACEHOLDER"),props:{decorations:t=>{const n=e.get(o1.key);if(n.mode==="doc"&&!sZe(t.doc)||TR(t.selection)||MR(t.selection))return null;const o=n.text??"Please enter...",r=lZe(t,o);return r?tn.create(t.doc,[r]):null}}})),aZe=(e,t)=>{e.config(n=>{t&&n.update(o1.key,o=>({...o,...t}))}).use(LR).use(o1)},cZe=Object.freeze(Object.defineProperty({__proto__:null,defineFeature:aZe,placeholderConfig:o1,placeholderPlugin:LR},Symbol.toStringTag,{value:"Module"})),RR=({ctx:e,hide:t,show:n,config:o})=>{var l,a,c,u,d;const r=GL();t1(()=>{r()},[n]);const i=f=>p=>{p.preventDefault(),e&&f(e),r()},s=f=>{if(!e)return!1;const p=e.get(pn),{state:{doc:h,selection:m}}=p;return h.rangeHasMark(m.from,m.to,f)};return vt`<host>
478 <button
479 class=${Xc("toolbar-item",e&&s(yd.type(e))&&"active")}
480 onmousedown=${i(f=>{f.get(It).call(u0.key)})}
481 >
482 ${((l=o==null?void 0:o.boldIcon)==null?void 0:l.call(o))??lYe}
483 </button>
484 <button
485 class=${Xc("toolbar-item",e&&s(bc.type(e))&&"active")}
486 onmousedown=${i(f=>{f.get(It).call(c0.key)})}
487 >
488 ${((a=o==null?void 0:o.italicIcon)==null?void 0:a.call(o))??hYe}
489 </button>
490 <button
491 class=${Xc("toolbar-item",e&&s(Cd.type(e))&&"active")}
492 onmousedown=${i(f=>{f.get(It).call(h0.key)})}
493 >
494 ${((c=o==null?void 0:o.strikethroughIcon)==null?void 0:c.call(o))??vYe}
495 </button>
496 <div class="divider"></div>
497 <button
498 class=${Xc("toolbar-item",e&&s(ms.type(e))&&"active")}
499 onmousedown=${i(f=>{f.get(It).call(d0.key)})}
500 >
501 ${((u=o==null?void 0:o.codeIcon)==null?void 0:u.call(o))??wR}
502 </button>
503 <button
504 class=${Xc("toolbar-item",e&&s(ti.type(e))&&"active")}
505 onmousedown=${i(f=>{const p=f.get(pn),{selection:h}=p.state;if(s(ti.type(f))){f.get(id.key).removeLink(h.from,h.to);return}f.get(id.key).addLink(h.from,h.to),t==null||t()})}
506 >
507 ${((d=o==null?void 0:o.linkIcon)==null?void 0:d.call(o))??kR}
508 </button>
509 </host>`};RR.props={ctx:Object,hide:Function,show:Boolean,config:Object};const FR=Vh(RR),j9=Y4("CREPE_TOOLBAR");var us,vo;class uZe{constructor(t,n,o){mi(this,us,void 0);mi(this,vo,void 0);this.update=(i,s)=>{pt(this,us).update(i,s)},this.destroy=()=>{pt(this,us).destroy(),pt(this,vo).remove()},this.hide=()=>{pt(this,us).hide()};const r=new FR;Eo(this,vo,r),pt(this,vo).ctx=t,pt(this,vo).hide=this.hide,pt(this,vo).config=o,Eo(this,us,new G4({content:pt(this,vo),debounce:20,offset:10,shouldShow(i){const{doc:s,selection:l}=i.state,{empty:a,from:c,to:u}=l,d=!s.textBetween(c,u).length&&l instanceof lt,f=!(l instanceof lt),p=i.dom.getRootNode().activeElement,h=r.contains(p),m=!i.hasFocus()&&!h,b=!i.editable;return!(m||f||a||d||b)}})),pt(this,us).onShow=()=>{pt(this,vo).show=!0,setTimeout(()=>{let i=pt(this,vo).style.left;i=parseInt(i),console.log(i),i<0?(pt(this,vo).style.left=0,console.log(pt(this,vo))):i>350&&(pt(this,vo).style.left="350px")},0)},pt(this,us).onHide=()=>{pt(this,vo).show=!1},this.update(n)}}us=new WeakMap,vo=new WeakMap;AR("milkdown-toolbar",FR);const dZe=(e,t)=>{e.config(n=>{n.set(j9.key,{view:o=>new uZe(n,o,t)})}).use(j9)},fZe=Object.freeze(Object.defineProperty({__proto__:null,defineFeature:dZe},Symbol.toStringTag,{value:"Module"})),pZe=`@charset "UTF-8";:root{--el-color-white: #ffffff;--el-color-black: #000000;--el-color-primary-rgb: 64, 158, 255;--el-color-success-rgb: 103, 194, 58;--el-color-warning-rgb: 230, 162, 60;--el-color-danger-rgb: 245, 108, 108;--el-color-error-rgb: 245, 108, 108;--el-color-info-rgb: 144, 147, 153;--el-font-size-extra-large: 20px;--el-font-size-large: 18px;--el-font-size-medium: 16px;--el-font-size-base: 14px;--el-font-size-small: 13px;--el-font-size-extra-small: 12px;--el-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;--el-font-weight-primary: 500;--el-font-line-height-primary: 24px;--el-index-normal: 1;--el-index-top: 1000;--el-index-popper: 2000;--el-border-radius-base: 4px;--el-border-radius-small: 2px;--el-border-radius-round: 20px;--el-border-radius-circle: 100%;--el-transition-duration: .3s;--el-transition-duration-fast: .2s;--el-transition-function-ease-in-out-bezier: cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier: cubic-bezier(.23, 1, .32, 1);--el-transition-all: all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade: opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade: transform var(--el-transition-duration) var(--el-transition-function-fast-bezier), opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear: opacity var(--el-transition-duration-fast) linear;--el-transition-border: border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow: box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color: color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large: 40px;--el-component-size: 32px;--el-component-size-small: 24px }:root{color-scheme:light;--el-color-primary: #409eff;--el-color-primary-light-3: #79bbff;--el-color-primary-light-5: #a0cfff;--el-color-primary-light-7: #c6e2ff;--el-color-primary-light-8: #d9ecff;--el-color-primary-light-9: #ecf5ff;--el-color-primary-dark-2: #337ecc;--el-color-success: #67c23a;--el-color-success-light-3: #95d475;--el-color-success-light-5: #b3e19d;--el-color-success-light-7: #d1edc4;--el-color-success-light-8: #e1f3d8;--el-color-success-light-9: #f0f9eb;--el-color-success-dark-2: #529b2e;--el-color-warning: #e6a23c;--el-color-warning-light-3: #eebe77;--el-color-warning-light-5: #f3d19e;--el-color-warning-light-7: #f8e3c5;--el-color-warning-light-8: #faecd8;--el-color-warning-light-9: #fdf6ec;--el-color-warning-dark-2: #b88230;--el-color-danger: #f56c6c;--el-color-danger-light-3: #f89898;--el-color-danger-light-5: #fab6b6;--el-color-danger-light-7: #fcd3d3;--el-color-danger-light-8: #fde2e2;--el-color-danger-light-9: #fef0f0;--el-color-danger-dark-2: #c45656;--el-color-error: #f56c6c;--el-color-error-light-3: #f89898;--el-color-error-light-5: #fab6b6;--el-color-error-light-7: #fcd3d3;--el-color-error-light-8: #fde2e2;--el-color-error-light-9: #fef0f0;--el-color-error-dark-2: #c45656;--el-color-info: #909399;--el-color-info-light-3: #b1b3b8;--el-color-info-light-5: #c8c9cc;--el-color-info-light-7: #dedfe0;--el-color-info-light-8: #e9e9eb;--el-color-info-light-9: #f4f4f5;--el-color-info-dark-2: #73767a;--el-bg-color: #ffffff;--el-bg-color-page: #f2f3f5;--el-bg-color-overlay: #ffffff;--el-text-color-primary: #303133;--el-text-color-regular: #606266;--el-text-color-secondary: #909399;--el-text-color-placeholder: #a8abb2;--el-text-color-disabled: #c0c4cc;--el-border-color: #dcdfe6;--el-border-color-light: #e4e7ed;--el-border-color-lighter: #ebeef5;--el-border-color-extra-light: #f2f6fc;--el-border-color-dark: #d4d7de;--el-border-color-darker: #cdd0d6;--el-fill-color: #f0f2f5;--el-fill-color-light: #f5f7fa;--el-fill-color-lighter: #fafafa;--el-fill-color-extra-light: #fafcff;--el-fill-color-dark: #ebedf0;--el-fill-color-darker: #e6e8eb;--el-fill-color-blank: #ffffff;--el-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .08), 0px 12px 32px rgba(0, 0, 0, .12), 0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color: var(--el-fill-color-light);--el-disabled-text-color: var(--el-text-color-placeholder);--el-disabled-border-color: var(--el-border-color-light);--el-overlay-color: rgba(0, 0, 0, .8);--el-overlay-color-light: rgba(0, 0, 0, .7);--el-overlay-color-lighter: rgba(0, 0, 0, .5);--el-mask-color: rgba(255, 255, 255, .9);--el-mask-color-extra-light: rgba(255, 255, 255, .3);--el-border-width: 1px;--el-border-style: solid;--el-border-color-hover: var(--el-text-color-disabled);--el-border: var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey: var(--el-border-color) }.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:var(--el-transition-md-fade)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:var(--el-transition-md-fade)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:var(--el-transition-md-fade)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-icon{--color: inherit;align-items:center;display:inline-flex;height:1em;justify-content:center;line-height:1em;position:relative;width:1em;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}html.dark{color-scheme:dark;--el-color-primary: #409eff;--el-color-primary-light-3: #3375b9;--el-color-primary-light-5: #2a598a;--el-color-primary-light-7: #213d5b;--el-color-primary-light-8: #1d3043;--el-color-primary-light-9: #18222c;--el-color-primary-dark-2: #66b1ff;--el-color-success: #67c23a;--el-color-success-light-3: #4e8e2f;--el-color-success-light-5: #3e6b27;--el-color-success-light-7: #2d481f;--el-color-success-light-8: #25371c;--el-color-success-light-9: #1c2518;--el-color-success-dark-2: #85ce61;--el-color-warning: #e6a23c;--el-color-warning-light-3: #a77730;--el-color-warning-light-5: #7d5b28;--el-color-warning-light-7: #533f20;--el-color-warning-light-8: #3e301c;--el-color-warning-light-9: #292218;--el-color-warning-dark-2: #ebb563;--el-color-danger: #f56c6c;--el-color-danger-light-3: #b25252;--el-color-danger-light-5: #854040;--el-color-danger-light-7: #582e2e;--el-color-danger-light-8: #412626;--el-color-danger-light-9: #2b1d1d;--el-color-danger-dark-2: #f78989;--el-color-error: #f56c6c;--el-color-error-light-3: #b25252;--el-color-error-light-5: #854040;--el-color-error-light-7: #582e2e;--el-color-error-light-8: #412626;--el-color-error-light-9: #2b1d1d;--el-color-error-dark-2: #f78989;--el-color-info: #909399;--el-color-info-light-3: #6b6d71;--el-color-info-light-5: #525457;--el-color-info-light-7: #393a3c;--el-color-info-light-8: #2d2d2f;--el-color-info-light-9: #202121;--el-color-info-dark-2: #a6a9ad;--el-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .36), 0px 8px 20px rgba(0, 0, 0, .72);--el-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .72);--el-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .72);--el-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .72), 0px 12px 32px #000000, 0px 8px 16px -8px #000000;--el-bg-color-page: #0a0a0a;--el-bg-color: #141414;--el-bg-color-overlay: #1d1e1f;--el-text-color-primary: #E5EAF3;--el-text-color-regular: #CFD3DC;--el-text-color-secondary: #A3A6AD;--el-text-color-placeholder: #8D9095;--el-text-color-disabled: #6C6E72;--el-border-color-darker: #636466;--el-border-color-dark: #58585B;--el-border-color: #4C4D4F;--el-border-color-light: #414243;--el-border-color-lighter: #363637;--el-border-color-extra-light: #2B2B2C;--el-fill-color-darker: #424243;--el-fill-color-dark: #39393A;--el-fill-color: #303030;--el-fill-color-light: #262727;--el-fill-color-lighter: #1D1D1D;--el-fill-color-extra-light: #191919;--el-fill-color-blank: transparent;--el-mask-color: rgba(0, 0, 0, .8);--el-mask-color-extra-light: rgba(0, 0, 0, .3) }html.dark .el-button{--el-button-disabled-text-color: rgba(255, 255, 255, .5) }html.dark .el-card{--el-card-bg-color: var(--el-bg-color-overlay) }html.dark .el-empty{--el-empty-fill-color-0: var(--el-color-black);--el-empty-fill-color-1: #4b4b52;--el-empty-fill-color-2: #36383d;--el-empty-fill-color-3: #1e1e20;--el-empty-fill-color-4: #262629;--el-empty-fill-color-5: #202124;--el-empty-fill-color-6: #212224;--el-empty-fill-color-7: #1b1c1f;--el-empty-fill-color-8: #1c1d1f;--el-empty-fill-color-9: #18181a }.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size,16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular);background-color:var(--el-bg-color-overlay);border:1px solid var(--el-notification-border-color);border-radius:var(--el-notification-radius);box-shadow:var(--el-notification-shadow);box-sizing:border-box;display:flex;overflow:hidden;overflow-wrap:break-word;padding:var(--el-notification-padding);position:fixed;transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);width:var(--el-notification-width);z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right)}.el-notification__title{color:var(--el-notification-title-color);font-size:var(--el-notification-title-font-size);font-weight:700;line-height:var(--el-notification-icon-size);margin:0}.el-notification__content{color:var(--el-notification-content-color);font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0}.el-notification__content p{margin:0}.el-notification .el-notification__icon{font-size:var(--el-notification-icon-size);height:var(--el-notification-icon-size);width:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{color:var(--el-notification-close-color);cursor:pointer;font-size:var(--el-notification-close-font-size);position:absolute;right:15px;top:18px}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{background-color:var(--el-mask-color);bottom:0;left:0;margin:0;position:absolute;right:0;top:0;transition:opacity var(--el-transition-duration);z-index:2000}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{margin-top:calc((0px - var(--el-loading-spinner-size))/2);position:absolute;text-align:center;top:50%;width:100%}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);font-size:14px;margin:3px 0}.el-loading-spinner .circular{-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite;display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size)}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@-webkit-keyframes loading-rotate{to{transform:rotate(1turn)}}@keyframes loading-rotate{to{transform:rotate(1turn)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-box-shadow:var(--el-box-shadow);--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:12px;--el-messagebox-font-line-height:var(--el-font-line-height-primary);-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);box-shadow:var(--el-messagebox-box-shadow);box-sizing:border-box;display:inline-block;font-size:var(--el-messagebox-font-size);max-width:var(--el-messagebox-width);overflow:hidden;overflow-wrap:break-word;padding:var(--el-messagebox-padding-primary);position:relative;text-align:left;vertical-align:middle;width:100%}.el-message-box:focus{outline:none!important}.el-overlay.is-message-box .el-overlay-message-box{bottom:0;left:0;overflow:auto;padding:16px;position:fixed;right:0;text-align:center;top:0}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;vertical-align:middle;width:0}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-message-box__header{padding-bottom:var(--el-messagebox-padding-primary)}.el-message-box__header.show-close{padding-right:calc(var(--el-messagebox-padding-primary) + var(--el-message-close-size, 16px))}.el-message-box__title{color:var(--el-messagebox-title-color);font-size:var(--el-messagebox-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:40px;outline:none;padding:0;position:absolute;right:0;top:0;width:40px}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{align-items:center;display:flex;gap:12px}.el-message-box__input{padding-top:12px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{font-size:24px}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{line-height:var(--el-messagebox-font-line-height);margin:0}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__btns{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding-top:var(--el-messagebox-padding-primary)}.el-message-box--center .el-message-box__title{align-items:center;display:flex;gap:6px;justify-content:center}.el-message-box--center .el-message-box__status{font-size:inherit}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__container{justify-content:center}.fade-in-linear-enter-active .el-overlay-message-box{-webkit-animation:msgbox-fade-in var(--el-transition-duration);animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@-webkit-keyframes msgbox-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes msgbox-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}.ProseMirror{position:relative}.ProseMirror{word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;font-feature-settings:"liga" 0}.ProseMirror pre{white-space:pre-wrap}.ProseMirror li{position:relative}.ProseMirror-hideselection *::selection{background:transparent}.ProseMirror-hideselection *::-moz-selection{background:transparent}.ProseMirror-hideselection{caret-color:transparent}.ProseMirror [draggable][contenteditable=false]{-webkit-user-select:text;user-select:text}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid #8cf;pointer-events:none}img.ProseMirror-separator{display:inline!important;border:none!important;margin:0!important}.fcom_common_dialog .el-dialog{border-radius:8px;padding:20px}.fcom_common_dialog .el-dialog .el-dialog__header{margin:0;padding:0}.fcom_common_dialog .el-dialog .dialog_header{margin-bottom:20px;padding:0 0 15px;border-bottom:1px solid var(--fcom-primary-border);display:flex;justify-content:space-between}.fcom_common_dialog .el-dialog .dialog_header .dialog_left{display:flex;align-items:center}.fcom_common_dialog .el-dialog .dialog_header .dialog_left h4,.fcom_common_dialog .el-dialog .dialog_header .dialog_left p{margin:0}.fcom_common_dialog .el-dialog .dialog_header .dialog_left h4{font-size:16px;font-weight:500;color:var(--fcom-primary-text, #19283a)}.fcom_common_dialog .el-dialog .dialog_header .dialog_left p{font-size:12px;color:var(--fcom-feed-text-light)}.fcom_common_dialog .el-dialog .dialog_header .dialog_left .header_icon{padding:17px 18px;display:flex;border-radius:50%;border:1px solid var(--fcom-primary-border);align-items:center;margin-right:10px}.fcom_common_dialog .el-dialog .dialog_header .closable_icon{cursor:pointer}.fcom_common_dialog .el-dialog .el-row{margin-right:0!important;margin-left:0!important}.fcom_common_dialog .el-dialog .el-dialog__footer{padding:0;margin-top:20px}.fcom_common_dialog .el-dialog .el-dialog__footer .dialog_footer{display:flex;justify-content:end;padding:20px 0 0;border-top:1px solid var(--fcom-primary-border)}.fcom_common_dialog.menu_dialog .el-dialog .dialog_header{overflow:auto;scrollbar-width:none;margin-bottom:0;border-bottom:none}.fcom_common_dialog.menu_dialog .el-dialog .dialog_header .fcom_filter_menu{width:100%}.fcom_common_dialog.menu_dialog .el-dialog__body .not_found p{margin:0;padding:0 15px}.fcom_upgrade_dialog .el-drawer__header .fcom_upgrade_header{display:flex;gap:8px;flex-direction:column;align-items:flex-start}.fcom_upgrade_dialog .el-drawer__header .fcom_upgrade_header p{margin:0;font-size:14px;line-height:20px;color:var(--fcom-secondary-text)}.fcom_upgrade_dialog .el-drawer__header .fcom_upgrade_header h4{margin:0;font-size:20px;line-height:24px;font-weight:500}.fcom_upgrade_dialog .dialog_body .fcom_upgrade_banner{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:8px;border:1px solid #7D52F4;background:#EFEBFF;padding:10px 16px}.fcom_upgrade_dialog .dialog_body .fcom_upgrade_banner p,.fcom_upgrade_dialog .dialog_body .fcom_upgrade_banner a{margin:0;font-size:14px;line-height:20px;font-weight:500;color:#2b2e33}.fcom_upgrade_dialog .dialog_body .fcom_upgrade_content{text-align:center;padding:20px 0}.fcom_upgrade_dialog .dialog_body .fcom_upgrade_content .fcom_feature_image{margin:20px auto;max-width:100%}.fcom_upgrade_dialog .dialog_body .fcom_upgrade_content .fcom_feature_image img{width:100%;height:auto;display:block;border:1px solid var(--fcom-primary-border);border-radius:16px;overflow:hidden}.fcom_upgrade_dialog .dialog_body .fcom_upgrade_content .fcom_upgrade_body h4{margin:8px;font-size:20px;line-height:24px;font-weight:500;color:var(--fcom-primary-text)}.fcom_upgrade_dialog .dialog_body .fcom_upgrade_content .fcom_upgrade_body p{margin:8px;font-size:16px;line-height:24px;color:var(--fcom-secondary-text)}.fcom_upgrade_dialog .dialog_body .fcom_upgrade_content .fcom_upgrade_body .fcom_primary_button{margin-top:16px}.fcom_manager_table .el-table th.el-table__cell.is-leaf{background:var(--fcom-secondary-bg);color:var(--fcom-menu-text);font-weight:600;font-size:14px;border-bottom:none}.fcom_manager_table .el-table th:first-of-type{border-radius:8px 0 0 8px}.fcom_manager_table .el-table th:last-of-type{border-radius:0 8px 8px 0}.fcom_manager_table .el-table .el-checkbox__inner{border:1px solid lightgray;border-radius:4px;box-shadow:1px 2px 1px #d3d3d3}.fcom_manager_table .el-table .ascending .sort-caret.ascending{border-bottom-color:#335cff!important}.fcom_manager_table .el-table .descending .sort-caret.descending{border-top-color:#335cff!important}.fcom_manager_table .el-table .el-scrollbar__view{width:100%}.fcom_manager_table .el-table .el-table__empty-block{width:100%!important}.milkdown{--crepe-color-background: var(--fcom-active-bg, #f0f2f5);--crepe-color-on-background: var(--fcom-primary-text, #19283a);--crepe-color-surface: var(--fcom-active-bg, #f0f2f5);--crepe-color-surface-low: #EDEDED;--crepe-color-on-surface: #1C1C1C;--crepe-color-on-surface-variant: #4D4D4D;--crepe-color-outline: #A8A8A8;--crepe-color-primary: #333333;--crepe-color-secondary: #CFCFCF;--crepe-color-on-secondary: #000000;--crepe-color-inverse: #F0F0F0;--crepe-color-on-inverse: #1A1A1A;--crepe-color-inline-code: #BA1A1A;--crepe-color-error: #BA1A1A;--crepe-color-hover: #E0E0E0;--crepe-color-selected: #D5D5D5;--crepe-color-inline-area: #CACACA;--crepe-font-title: "Noto Serif", Cambria, "Times New Roman", Times, serif;--crepe-font-default: "Noto Sans", Arial, Helvetica, sans-serif;--crepe-font-code: "Space Mono", Fira Code, Menlo, Monaco, "Courier New", Courier, monospace;--crepe-shadow-1: 0px 1px 3px 1px rgba(0, 0, 0, .15), 0px 1px 2px 0px rgba(0, 0, 0, .3);--crepe-shadow-2: 0px 2px 6px 2px rgba(0, 0, 0, .15), 0px 1px 2px 0px rgba(0, 0, 0, .3)}.milkdown milkdown-block-handle{display:none!important}.milkdown{position:relative}.milkdown *{margin:0;padding:0;box-sizing:border-box}.milkdown button{border:none;background:none;box-shadow:none}.milkdown button:focus{outline:none}.milkdown input{border:none;background:none;box-shadow:none}.milkdown input:focus{outline:none}.milkdown:focus-visible{outline:none}.milkdown .ProseMirror-focused{outline:none}.milkdown .ProseMirror{padding:10px 15px}.milkdown .ProseMirror.ProseMirror-focused{box-shadow:0 0 0 1px var(--fcom-secondary-border) inset;border-radius:8px}.milkdown .ProseMirror img{max-width:100%}.milkdown .ProseMirror[data-dragging=true]::-moz-selection{background:transparent}.milkdown .ProseMirror[data-dragging=true] *::-moz-selection{background:transparent}.milkdown .ProseMirror[data-dragging=true] *::selection{background:transparent}.milkdown .ProseMirror[data-dragging=true] .ProseMirror-selectednode{background:transparent}.milkdown .ProseMirror[data-dragging=true]::selection{background:transparent}.milkdown .ProseMirror[data-dragging=true] input::-moz-selection{background:var(--crepe-color-selected)}.milkdown .ProseMirror[data-dragging=true] input::selection{background:var(--crepe-color-selected)}.milkdown milkdown-slash-menu{z-index:999999999;position:absolute;display:block;font-family:var(--crepe-font-default);color:var(--fcom-text-off);background:var(--crepe-color-surface);border-radius:12px;box-shadow:var(--crepe-shadow-1)}.milkdown milkdown-slash-menu[data-show=false]{display:none}.milkdown milkdown-slash-menu ul{list-style-type:none}.milkdown milkdown-slash-menu ul li{cursor:pointer;border-radius:8px}.milkdown milkdown-slash-menu .tab-group{display:none!important}.milkdown milkdown-slash-menu .menu-groups{padding:12px;max-height:420px;overflow:auto;overscroll-behavior:contain;scroll-behavior:smooth;list-style:none}.milkdown milkdown-slash-menu .menu-groups .menu-group h6{display:none}.milkdown milkdown-slash-menu .menu-groups .menu-group ul{margin:0}.milkdown milkdown-slash-menu .menu-groups .menu-group li{min-width:220px;display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:5px 10px}.milkdown milkdown-slash-menu .menu-groups .menu-group li.hover{background:var(--fcom-primary-bg);color:var(--fcom-primary-text, #19283a)}.milkdown milkdown-slash-menu .menu-groups .menu-group li.active{background:var(--fcom-primary-bg)}.milkdown milkdown-slash-menu .menu-groups .menu-group li>svg{width:20px;height:20px;color:var(--fcom-text-off);fill:var(--fcom-text-off)}.milkdown milkdown-slash-menu .menu-groups .menu-group li>span{font-size:12px;font-style:normal;font-weight:500;line-height:20px}.milkdown milkdown-slash-menu .menu-groups .menu-group+.menu-group:before{content:"";display:block;height:1px;background:color-mix(in srgb,var(--crepe-color-outline),transparent 80%);margin:0 10px}.milkdown milkdown-slash-menu ul{margin:0;padding:0;list-style:none}.milkdown ul li p{margin:0;padding:0}.milkdown milkdown-toolbar{position:absolute;display:flex;background:var(--crepe-color-surface);box-shadow:var(--crepe-shadow-1);border-radius:8px;overflow:hidden}.milkdown milkdown-toolbar[data-show=false]{display:none}.milkdown milkdown-toolbar .divider{width:1px;background:color-mix(in srgb,var(--crepe-color-outline),transparent 80%);height:24px;margin:10px}.milkdown milkdown-toolbar .toolbar-item{width:32px;height:32px;margin:6px;padding:4px;cursor:pointer;border-radius:4px}.milkdown milkdown-toolbar .toolbar-item:hover{background:var(--crepe-color-hover)}.milkdown milkdown-toolbar .toolbar-item:active{background:var(--crepe-color-selected)}.milkdown milkdown-toolbar .toolbar-item svg{height:24px;width:24px;color:var(--crepe-color-outline);fill:var(--crepe-color-outline)}.milkdown milkdown-toolbar .toolbar-item.active svg{color:var(--crepe-color-primary);fill:var(--crepe-color-primary)}.milkdown .crepe-placeholder:before{position:absolute;color:color-mix(in srgb,var(--crepe-color-on-background),transparent 60%);pointer-events:none;height:0;content:attr(data-placeholder)}.milkdown milkdown-link-preview{position:absolute;z-index:10}.milkdown milkdown-link-preview[data-show=false]{display:none}.milkdown milkdown-link-preview>.link-preview{height:32px;display:flex;justify-content:center;padding:4px 10px;background:var(--crepe-color-surface);gap:10px;border-radius:8px;cursor:pointer;box-shadow:var(--crepe-shadow-1)}.milkdown milkdown-link-preview>.link-preview>.link-display{text-decoration:none;color:unset}.milkdown milkdown-link-preview>.link-preview>.link-display:hover:before{display:block}.milkdown milkdown-link-preview>.link-preview>.link-icon{padding:3px;line-height:24px}.milkdown milkdown-link-preview>.link-preview>.link-icon>svg{width:18px;height:18px;color:var(--crepe-color-outline);fill:var(--crepe-color-outline)}.milkdown milkdown-link-preview>.link-preview>.link-display{width:240px;line-height:24px;overflow:hidden;text-overflow:ellipsis;font-size:14px}.milkdown milkdown-link-preview>.link-preview>.link-display:hover{text-decoration:underline}.milkdown milkdown-link-preview>.link-preview>.button{padding:3px;border-radius:8px;line-height:24px}.milkdown milkdown-link-preview>.link-preview>.button>svg{width:18px;height:18px;color:var(--crepe-color-outline);fill:var(--crepe-color-outline)}.milkdown milkdown-link-preview>.link-preview>.button:hover{background:var(--crepe-color-hover)}.milkdown milkdown-link-edit{position:absolute;z-index:10}.milkdown milkdown-link-edit[data-show=false]{display:none}.milkdown milkdown-link-edit>.link-edit{height:32px;display:flex;justify-content:center;padding:4px 10px 4px 20px;background:var(--crepe-color-surface);gap:8px;border-radius:8px;box-shadow:var(--crepe-shadow-1)}.milkdown milkdown-link-edit>.link-edit>.input-area{outline:none;background:transparent;width:200px;font-size:14px;color:var(--crepe-color-on-background)}.milkdown milkdown-link-edit>.link-edit>.button{padding:3px;cursor:pointer;border-radius:8px;font-size:12px;line-height:24px}.milkdown milkdown-link-edit>.link-edit>.button>svg{width:18px;height:18px;color:var(--crepe-color-outline);fill:var(--crepe-color-outline)}.milkdown milkdown-link-edit>.link-edit>.button:hover{background:var(--crepe-color-hover)}.milkdown milkdown-link-edit>.link-edit>.button.hidden{visibility:hidden}.create_status_holder{margin-bottom:20px;display:block;background:var(--fcom-primary-bg, white);border-radius:8px}.create_status_holder .create_header{display:flex;padding:10px;align-items:center;column-gap:10px}.create_status_holder .create_header .person_avatar img{width:3rem;border-radius:50%;aspect-ratio:1/1;object-fit:cover}@media (max-width: 768px){.create_status_holder .create_header .person_avatar img{width:2rem}}.create_status_holder .create_header .form_placeholder{font-size:1rem;width:100%;padding:1rem;border-radius:8px;background:var(--fcom-secondary-content-bg, var(--fcom-active-bg, #f0f2f5));color:var(--fcom-text-off, #525866);cursor:pointer;border:1px solid transparent;transition:all .1s}.create_status_holder .create_header .form_placeholder:hover{background:var(--fcom-primary-bg, #2B2E33);border-color:var(--fcom-secondary-border, #9CA3AF)}.create_status_holder .status_text_input{font-size:1.2rem;width:100%;border-radius:8px;border:none;transition:all .1s;box-shadow:0 0 0 1px var(--fcom-secondary-border, #9CA3AF) inset}.create_status_holder .status_text_input .el-textarea__inner{background:white;box-shadow:none;border:none}.create_status_holder .create_footer{padding:0 10px 10px;opacity:.5;display:flex;align-items:center;justify-content:space-between}.create_status_holder.state_active .create_footer{opacity:1}.create_status_holder.state_active .create_footer button{padding-left:30px;padding-right:30px}.create_status_holder.state_active .create_header{align-items:flex-start}.fcom_space_topics{margin-bottom:10px}.fcom_space_topics .fcom_topics_filters{display:flex;padding-bottom:10px}.fcom_space_topics .el-button:hover{color:var(--fcom-text-link);border-color:inherit}.fcom_space_topics .fcom_active_topic{color:var(--fcom-text-link);border-color:inherit;outline:none}.fcom_topics_input{border-top:1px solid var(--fcom-secondary-border, #9CA3AF);padding:0 5px}.fcom_topics_input .el-select{--el-select-border-color-hover: transparent;--el-fill-color-blank: transparent;--el-border-color-hover: transparent}.fcom_topics_input .el-select .el-select__wrapper{box-shadow:none;border-radius:0}.fcom_topics_input .el-select .el-select__wrapper.is-focused{box-shadow:none}.fcom_topics_input .el-select .el-tag.el-tag--info{background:var(--fcom-primary-bg, #2B2E33)}.fcom_topics_input .el-select__suffix{display:none}.fcom_topics_select .el-select-dropdown__item{height:auto;padding:5px 15px;line-height:100%}.fcom_topics_select .el-select-dropdown__item .fcom_meta_text{padding-bottom:5px;line-height:1.2;display:block}.fcom_feed_topics{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 10px}.fcom_feed_topics a{text-decoration:none;border:1px solid var(--fcom-primary-border, #e4e7eb);padding:5px 10px;border-radius:5px;font-size:80%;color:var(--fcom-text-off, #959595);display:flex;align-items:center;gap:5px;cursor:pointer}.fcom_feed_topics a:hover{background:var(--fcom-active-bg, #f0f2f5)}.fcrom_media_images{display:flex;gap:10px;margin:10px 0 0;background:#f0f0f1;border-radius:5px}.fcrom_media_image{border:5px solid #f0f0f1;position:relative;text-align:center;border-radius:8px}.fcrom_media_image img{border-radius:8px;max-width:100%}.fcrom_media_image button{position:absolute;right:0;background:rgba(255,255,255,.84)}.white_loaded{padding:20px;background:var(--fcom-primary-bg, white);border-radius:10px;width:100%}.fcom_feed_style_list .feed_outer{border-bottom:1px solid var(--fcom-primary-border, #e4e7eb);background:var(--fcom-primary-bg, white)}.fcom_feed_style_list .feed_outer:hover{background:var(--fcom-active-bg, #f0f2f5)}.fcom_feed_style_list .feed_outer:first-child{border-top-left-radius:10px;border-top-right-radius:10px}.fcom_feed_style_list .feed_outer:last-child{border-bottom-left-radius:10px;border-bottom-right-radius:10px;border-bottom:none}.fcom_feed_style_list .fcom_feed_data{display:flex;align-content:center;gap:5px;align-items:center}.fcom_feed_style_list .fcom_feed_list{display:flex;column-gap:10px;padding:15px;align-items:center;justify-content:space-between}.fcom_feed_style_list .fcom_feed_list .fcom_feed_data{position:relative}.fcom_feed_style_list .fcom_feed_list .fcom_feed_data .fcom_sticky{position:absolute;top:-4px;left:-4px;z-index:999}.fcom_feed_style_list .fcom_feed_list .feed_actions{display:flex}.fcom_feed_style_list .fcom_feed_list .feed_actions .el-button{padding:10px}.fcom_feed_style_list .fcom_feed_list .feed_actions .el-button .num_label{font-size:80%}.fcom_feed_style_list .fcom_feed_list .feed_actions .el-button+.el-button{margin-left:0}.fcom_feed_style_list .fcom_feed_list .feed_body{color:var(--fcom-primary-text, #19283a);text-decoration:none}.fcom_feed_style_list .fcom_feed_list .feed_user img{max-width:44px}.fcom_feed_style_list .fcom_feed_list .feed_texts.feed_md_content{padding:0;overflow-wrap:break-word;word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.fcom_feed_style_list .fcom_feed_list .fcom_feed_meta{font-size:.8rem;color:var(--fcom-text-off, #959595);line-height:1;text-decoration:none;display:block;cursor:pointer;margin-top:4px}@media (max-width: 768px){.fcom_feed_style_list .fcom_feed_list{padding:10px}.fcom_feed_style_list .fcom_feed_list .feed_user img{max-width:32px}.fcom_feed_style_list .fcom_feed_list .fcom_feed_data{align-items:start}.fcom_feed_style_list .fcom_feed_list .fcom_feed_data .feed_texts.feed_md_content{-webkit-line-clamp:2;font-size:.8rem;line-height:1.2}.fcom_feed_style_list .fcom_feed_list .feed_actions{flex-direction:column}.fcom_feed_style_list .fcom_feed_list .feed_actions .el-button{padding:5px 0;height:auto}}.fcom_feed_style_list .all_feeds_holder{border:1px solid var(--fcom-primary-border, #e4e7eb);border-radius:10px}.fcom_feed_edit_dialog{max-width:800px}.fcom_feed_edit_dialog .person_avatar{display:none}.fcom_route_space_feeds .fcom_hide_space_sidebar.fcom_layout_list{width:100%;max-width:100%}.feed{background:var(--fcom-primary-bg, white);border-radius:10px;padding:16px 20px 0;margin-bottom:20px;position:relative;border:1px solid var(--fcom-primary-border, #e4e7eb);color:var(--fcom-primary-text, #19283a);content-visibility:auto;contain-intrinsic-size:0 500px}.feed:has(.fcom_image_carousel) .feed_body{border-bottom:none}.feed:has(.fcom_image_carousel) .fcom_image_carousel .fcom_image_carousel__container{padding-top:0}.feed .fcom_sticky{font-size:14px;transform:rotate(45deg);font-weight:700;color:var(--el-button-text-color)}.feed .feed_body{margin:0 -20px;padding:0 20px;border-bottom:1px solid var(--fcom-primary-border, #e4e7eb);position:relative}.feed .feed_body:has(+.fcom_app_render){border-bottom:none}.feed .feed_body .feed_title_heading{font-size:24px;line-height:1.4;margin:.7em 0 0}.feed .feed_body .feed_title_heading a{color:var(--fcom-primary-text, #19283a);text-decoration:none}.feed .feed_body .feed_title_heading a:hover{text-decoration:underline}.feed .expand-button{position:absolute;bottom:0;left:0;width:100%;text-align:center;padding:30px 0 10px;cursor:pointer;color:#84c7fe;text-shadow:0 1px 0 var(--fcom-primary-bg, white);background:linear-gradient(to bottom,transparent 0%,color-mix(in srgb,var(--fcom-primary-bg) 70%,transparent) 50%,var(--fcom-primary-bg) 100%)}.feed .expand-button:hover{color:#007cba;background:linear-gradient(to bottom,transparent 0%,color-mix(in srgb,var(--fcom-primary-bg) 95%,transparent) 50%,var(--fcom-primary-bg) 100%)}.feed .expand-button:hover .btn_expand{color:#007cba}.feed .expand-button .btn_expand{color:#84c7fe;border:none;padding:0 8px;height:27px;font-size:16px;font-weight:400;background:linear-gradient(to bottom,transparent 0%,color-mix(in srgb,var(--fcom-primary-bg) 95%,transparent) 50%,var(--fcom-primary-bg) 100%)}.feed .expand-button .btn_expand:hover{color:#007cba;border:none;background:inherit}.feed .feed_header{display:flex;align-items:center;justify-content:space-between}.feed .feed_header .feed_user{display:flex;align-items:center;column-gap:10px}.feed .feed_header .feed_user img{max-width:32px;border-radius:50%;aspect-ratio:1/1;object-fit:cover}.feed .feed_header .feed_user .user_icon_only .user_badge_inner img{max-width:12px}.feed .feed_space_name{color:var(--fcom-text-off, #959595);font-size:80%;text-decoration:none}.feed .feed_space_name:hover{text-decoration:underline}.feed_timestamp{font-size:.7rem;color:var(--fcom-text-off, #959595);line-height:1;text-decoration:none;display:flex;align-items:center;cursor:pointer}.notice_card{margin-bottom:25px}.notice_card .notice_header{font-size:1.0625rem;font-weight:600;margin-bottom:10px}.notice_card.notice_danger .notice_header{color:#ff6969}.notice_card .notice_body ul{list-style:disc;margin-left:15px}ul.actions_items{margin:0;padding:0;list-style:none}ul.actions_items li{display:block;cursor:pointer}ul.actions_items li:hover{color:#007cba}.feed_reaction_meta{display:flex;align-items:center;justify-content:space-between;color:var(--fcom-text-off, #959595);font-size:80%}.feed_reaction_meta .feed_comment_count{cursor:pointer;-webkit-user-select:none;user-select:none}.feed_reaction_meta .feed_comment_count:hover{color:#007cba}.meta_line{display:flex;align-items:center;gap:5px;color:#959595;font-size:80%}.meta_line p{margin:0}.meta_line .fcom_online{margin-top:2px}.show_all_comments{cursor:pointer;-webkit-user-select:none;user-select:none;font-size:80%;padding-top:0!important;padding-bottom:5px!important}.show_all_comments:hover{color:#007cba}.feed_footer{display:flex;align-items:center;justify-content:space-between}.feed_footer ul{list-style:none;margin:0!important;padding:5px 0;margin:0;display:flex;align-items:center;column-gap:0;justify-content:space-between}.feed_footer ul li{display:flex;align-items:center;column-gap:0px;padding:5px 8px;margin:0;cursor:pointer;transition:all .3s}.feed_footer ul li:first-child{margin-left:-5px}.feed_footer ul li:hover{background:var(--fcom-active-bg, #f0f2f5);border-radius:5px}.feed_footer ul li.react_active{color:#fb3748;font-weight:600}.feed_footer ul li .el-icon{font-size:22px}.feed_footer .fcom_reactions{display:flex;column-gap:10px}.feed_footer .fcom_reactions_count{column-gap:10px}.feed_footer .fcom_reactions_count span{margin-left:-4px}.feed_footer .fcom_reactions_count .reactions_avatars{display:flex}.feed_footer .fcom_reactions_count .reactions_avatars span img{width:20px;border:1px solid var(--fcom-primary-bg, #959595)}.last_comment_reply_txt{margin-left:auto}.feed_comment{padding:10px;background:var(--fcom-secondary-content-bg, var(--fcom-active-bg, #f0f2f5));margin:10px -20px 0}.feed_comment .editor{box-shadow:0 0 0 1px var(--fcom-secondary-border, #9CA3AF) inset;border-radius:8px}.feed_comment .feed_comment_actions{margin-top:10px;text-align:right;display:flex;align-items:center;justify-content:space-between;margin-left:50px}.feed_commenting{display:flex;column-gap:10px;align-items:flex-start}.feed_commenting .person_avatar img{max-width:40px;border-radius:50%;aspect-ratio:1/1;object-fit:cover}.feed_commenting .feed_comment_input{width:100%}.feed_commenting .feed_comment_input .fcom_composer_footer{margin-top:10px}a.user_route{text-decoration:none;color:var(--fcom-primary-text, #19283a)}a.user_route:hover{text-decoration:underline}.flex_break{flex-basis:100%;height:0}.feed_comments{border-top:1px solid var(--fcom-primary-border, #e4e7eb);padding-top:15px;margin-left:-20px;margin-right:-20px;padding-left:15px;padding-right:15px}.feed_comments:empty{display:none}.each_comment{display:flex;column-gap:10px;align-items:flex-start;padding:5px 0;transition:background-color .3s}.each_comment .comment_wrap{flex-grow:1;min-width:0}.each_comment .person_avatar{width:32px}.each_comment .person_avatar img{width:32px;border-radius:50%;object-fit:cover;aspect-ratio:1/1}.each_comment .comment_text_head{display:flex;column-gap:15px}.each_comment .comment_text_head .comment_text_head_name{font-weight:500}.each_comment .comment_text_head .comment_text_head_time{color:var(--fcom-text-off);font-size:80%}.each_comment .comment_text_head .comment_text_head_time a{color:var(--fcom-text-off);text-decoration:none}.each_comment .comment_text_head .comment_actions>*:last-child{padding-right:0}.each_comment .comment_text_head .comment_actions .is-text{padding:4px;height:auto;border-radius:8px}.each_comment .comment_text_head .comment_actions .fcom_dot_menu{margin-left:4px}.each_comment .comment_text_head_post a.post_link{font-size:15px;font-weight:500;text-decoration:none;color:var(--fcom-primary-text, #19283a)}.each_comment .comment_text_body{font-size:100%;overflow-wrap:break-word}.each_comment .comment_text_body a{overflow-wrap:anywhere}.each_comment .comment_text_body>p{margin:5px 0}.each_comment .comment_text_body p:last-child{margin-bottom:0}.each_comment .comment_text{width:100%;background:var(--fcom-secondary-content-bg, var(--fcom-active-bg, #f0f2f5));color:var(--fcom-primary-text, #19283a);padding:8px 12px 10px;border-radius:10px}.each_comment .reply_btn{color:var(--fcom-text-off);font-size:11px;font-weight:600;cursor:pointer;-webkit-user-select:none;user-select:none}.each_comment .reply_btn:hover{color:#007cba}.child_reply_wrap{margin:10px 0}.fcom_update_profile{background:var(--fcom-primary-bg, white);padding:15px 20px;border-radius:10px;border:1px solid var(--fcom-primary-border, #e4e7eb)}.fcom_update_profile .fcom_sub_group{background:var(--fcom-active-bg, #f0f2f5);padding:20px;margin-bottom:20px;width:100%;border-radius:8px}.fcom_update_profile .fcom_sub_group .el-input .el-input__wrapper{box-shadow:0 0 0 .5px var(--fcom-secondary-border) inset}.fcom_update_profile .fcom_sub_group .el-input .el-input-group__prepend{padding:0 16px;box-shadow:.5px 0 0 0 var(--fcom-secondary-border) inset,0 .5px 0 0 var(--fcom-secondary-border) inset,0 -.5px 0 0 var(--fcom-secondary-border) inset}.fcom_update_profile .fcom_sub_group .el-select .el-select__wrapper{box-shadow:0 0 0 .5px var(--fcom-secondary-border) inset}.fcom_update_profile .fcom_sub_group .el-form-item .el-form-item__label{font-size:14px;font-weight:500;line-height:20px;color:var(--fcom-primary-text, #19283a)}.fcom_update_profile .fcom_sub_group .el-form-item:last-child{margin-bottom:0}.fcom_update_profile .fcom_sub_group .el-form-item.checkbox_label .el-form-item__label{margin-bottom:4px}.fcom_update_profile .fcom_sub_group .fcom_sub_group_header{margin-bottom:16px}.fcom_update_profile .fcom_sub_group .fcom_sub_group_header h5{font-size:16px;font-weight:500;line-height:24px}.fcom_update_profile .fcom_sub_group .fcom_sub_group_header p{margin:0;font-size:14px;font-weight:400;line-height:20px;color:var(--fcom-secondary-text)}.fcom_update_profile .fcom_sub_group .fcom_sub_group_content{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.fcom_update_profile .fcom_sub_group .fcom_sub_group_content .el-form-item{margin-bottom:0}.fcom_space_title{display:flex;column-gap:8px;align-items:center;text-decoration:none}.fcom_space_title img{width:24px;border-radius:50%;aspect-ratio:1/1;object-fit:cover}.member_header{display:flex;align-items:center;justify-content:space-between}.member_header .member_status .el-radio-group.status_group{border:1px solid var(--el-input-border-color, var(--el-border-color));border-radius:8px;overflow:hidden}.member_header .member_status .el-radio-group.status_group .el-radio-button .el-radio-button__inner{border:none;background:transparent}.member_header .member_status .el-radio-group.status_group .el-radio-button.is-active .el-radio-button__inner{background:var(--fcom-primary-bg, #FFFFFF);color:var(--fcom-primary-text, #19283a);box-shadow:none}.search_member{position:relative;margin:10px 0}.search_member .el-input .el-input__wrapper{border-radius:8px;padding:6px 20px}.search_member .el-input .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--fcom-primary-text) inset}.space_members{padding:16px;border-radius:8px;background:var(--fcom-primary-bg, white)}.space_members .card_list{display:flex;flex-direction:column;padding:0 12px}.space_members .card_list.card_list_3_col{grid-template-columns:1fr 1fr 1fr}@media (max-width: 768px){.space_members .card_list{grid-template-columns:1fr!important}}.space_members .card_list .each_card{display:flex;justify-content:space-between;align-items:center;padding:10px 0;min-height:72px;border-bottom:1px solid var(--fcom-primary-border)}.space_members .card_list .each_card:last-child{border-bottom:none}.space_members .card_list .each_card .card_content{display:flex;gap:12px}.space_members .card_list .each_card .card_content .card_avatar{display:flex;align-items:center;justify-content:center}.space_members .card_list .each_card .card_content .card_avatar img{width:48px;height:48px;border-radius:50%;object-fit:cover;aspect-ratio:1/1}.space_members .card_list .each_card .card_content .card_info{display:flex;flex-direction:column;justify-content:center}.space_members .card_list .each_card .card_content .card_info .info_header{display:flex;align-items:center;font-weight:500;gap:4px}.space_members .card_list .each_card .card_content .card_info .info_header .user_route{font-size:14px;line-height:20px}.space_members .card_list .each_card .card_content .card_info .info_header .meta_line{font-size:12px;font-weight:400}.space_members .card_list .each_card .card_content .card_info .el-tag{padding:8px;height:20px;border-radius:8px}.space_members .card_list .each_card .card_content .card_action{opacity:.5}.space_members .card_list .each_card .card_content .card_description{margin-top:5px;font-size:90%}.space_members .card_list .each_card .card_break{flex-basis:100%;width:0}.space_members .card_list .each_card .card_footer{margin-top:10px;flex-basis:100%;width:100%}.space_members .no_members{text-align:center}.space_members .pagination_wrap{margin:0 12px;padding-bottom:10px}.space_members .pagination_wrap:has(.fcom-pagination){border-top:1px solid var(--fcom-primary-border)}.space_members .pagination_wrap .fcom-pagination{margin:0;padding:15px 12px 0}.feed_user_name a{color:var(--fcom-primary-text, #19283a);text-decoration:none;margin-right:10px}.feed_user_name a:hover{text-decoration:underline}.feed_meta_info{display:flex;align-items:center}.feed_meta_info>*:not(:last-child):after{font-size:14px;content:"";background:var(--fcom-secondary-text);margin:2px 4px 0;width:4px;height:4px;display:block;border-radius:50%}.feed_meta_info a.feed_space_name{color:var(--fcom-secondary-text)}.feed_meta_info.survey_voters_meta .meta_line{gap:0;font-size:16px;color:var(--fcom-primary-text, #19283a)}.fcom_new_ticker{position:fixed;top:var(--fcom-header-height, 55px);left:50%;transform:translate(-50%);transition-timing-function:ease,ease,step-start;z-index:999;background-color:#1d9bf0;color:#fff;box-shadow:#65778633 0 0 8px,#65778640 0 1px 3px 1px;border-radius:20px;display:flex;align-items:center;font-size:80%}.fcom_new_ticker:hover{background-color:#428ad2}.fcom_new_ticker .fcom_ticker_dismiss{padding:3px 15px 5px 10px;cursor:pointer}.fcom_new_ticker .fcom_ticker_menu{border-right:1px solid var(--fcom-primary-border, #e3e8ee);cursor:pointer;padding:5px 10px 5px 15px}.meta_lines .meta_line{margin-right:10px}.meta_lines .meta_line:last-child{margin-right:0}.meta_lines .meta_line:not(:last-child):after{content:"•";margin-left:10px;vertical-align:top;line-height:18px;font-weight:700}.object_cover{position:relative}.object_no_photo .object_media_uploader{display:flex;align-items:center;justify-content:center;background-color:#e4e5e8;padding:20px}.object_has_photo .feed_featured{margin:0}.object_has_photo .feed_featured img{border-top-left-radius:10px;border-top-right-radius:10px}.object_has_photo .object_media_uploader{position:absolute;z-index:9999;top:50%;left:50%;display:none;transform:translate(-50%,-50%)}.object_has_photo:hover .object_media_uploader{display:flex}.space_sidebar{padding-top:20px;padding-right:20px}.space_sidebar .space_widget{padding:0 15px 15px;background-color:#f7f9f9;border-radius:5px;position:relative}.space_sidebar .space_widget h4{margin:0;padding:10px 0}.space_sidebar .space_widget_content{line-height:110%;color:#65676b}.space_sidebar .space_widget_content p:first-child{margin-top:0}.space_meta_item{margin-top:15px;display:block}.space_meta_item .meta_label{display:flex;align-items:center;gap:5px;font-weight:700}.space_meta_item .meta_desc{font-size:90%;line-height:110%;margin-top:5px;color:var(--fcom-text-off, rgb(101, 103, 107))}.notifications_wrap{display:block;position:relative}.notifications_wrap h3{padding:0;font-size:18px;margin:0 0 10px;color:var(--fcom-primary-text, #19283a)}.notifications_wrap .notification_item{cursor:pointer;display:flex;gap:10px;align-items:flex-start;padding:10px;word-break:normal;margin:0 -10px;text-align:left;opacity:.9;text-decoration:none;color:var(--fcom-primary-text, #19283a)}.notifications_wrap .notification_item:hover{opacity:1;background:var(--fcom-active-bg, #f0f2f5);border-radius:5px;color:var(--fcom-primary-text, #19283a)}.notifications_wrap .notification_item .notification_avatar{width:44px!important;background:#f0f2f5;margin:0;padding:0;height:44px;border-radius:50%}.notifications_wrap .notification_item .notification_avatar .fcom_user_avatar{width:44px}.notifications_wrap .notification_item .notification_time_stamp{font-size:90%;color:var(--fcom-text-link, #2078f4)}.notifications_wrap .notification_item img{width:44px;aspect-ratio:1/1;border-radius:50%;object-fit:cover}.notifications_wrap .notification_item .notification_content{font-size:90%}.notifications_wrap .notification_wrap_unread{position:relative}.notifications_wrap .notification_wrap_unread:before{content:"";position:absolute;width:10px;height:10px;background:var(--fcom-text-link, #2078f4);border-radius:50%;top:50%;right:-5px;transform:translateY(-50%)}.feed_media{margin:0 -20px;padding:0;border-radius:0;border-bottom:1px solid var(--fcom-primary-border, #e4e7eb)}.feed_media .feed_media_content{padding:5px 20px 15px;background-color:var(--fcom-secondary-content-bg, var(--fcom-active-bg, #f0f2f5))}.feed_media .feed_media_content .media_domain{text-transform:uppercase;font-size:80%;color:var(--fcom-text-off)}.feed_media .feed_media_content .feed_media_description{font-size:80%;margin:0;padding:0}.feed_media .feed_media_title{color:var(--fcom-primary-text, #19283a)}.feed_media a{text-decoration:none;color:var(--fcom-text-off, rgb(5, 5, 5))}.feed_modern_layout .fcom_top_media .feed_media{margin:-16px -20px 20px}.feed_media_ext_video{width:100%;margin-bottom:0;line-height:100%;padding-bottom:0}.feed_media_ext_video iframe{aspect-ratio:16/9;width:100%;height:auto}.feed_media_image{margin:0;padding:0;max-width:100%;line-height:0}.feed_media_image.feed_custom_uploaded{text-align:center;display:block}.feed_media_image.feed_custom_uploaded img{display:inline-block;max-width:100%;aspect-ratio:unset}.feed_media_image.fcom_comment_media{text-align:left}.feed_media_image img{margin:0;padding:0;width:100%;aspect-ratio:1.91;object-fit:cover}.feed_media_image .el-image{max-height:80vh}.fcom_image_carousel .fcom_image_carousel__container{display:grid;gap:10px;margin:0 -20px;padding:20px;grid-template-columns:repeat(2,1fr);break-inside:avoid;align-items:start;border-bottom:1px solid var(--fcom-primary-border, #e4e7eb)}.fcom_image_carousel .fcom_image_carousel__container.fcom_image_carousel_count_1{grid-template-columns:1fr;padding:0}.fcom_image_carousel .fcom_image_carousel__container.fcom_image_carousel_count_1 .fcom_carousel__image{line-height:1}.fcom_image_carousel .fcom_image_carousel__container.fcom_image_carousel_count_1 .fcom_carousel__image img{border-radius:0}.fcom_image_carousel .fcom_image_carousel__container .fcom_carousel__image img{border-radius:8px}.fcom_nested_reply_actions{margin-top:5px;display:flex;align-items:center;justify-content:space-between}.block-editor-writing-flow .wp-block-embed__wrapper iframe,.feed_body .wp-block-embed__wrapper iframe{width:100%;aspect-ratio:16/9;height:auto}.block-editor-writing-flow video,.feed_body video{width:100%;height:auto;margin:10px 0}span.fcom_is_liked.reply_btn{color:var(--fcom-primary-text, #19283a)}.reply_box{display:flex;align-items:center;padding:0 12px}.reply_box .fcom_comments_react{display:flex;align-items:center;column-gap:2px}.reply_box .fcom_comments_react .el-icon{font-size:15px}.feed_md_content{word-break:break-word;font-size:1rem}.feed_md_content.feed_texts{padding:10px 0}.feed_md_content table{border-collapse:collapse;width:100%}.feed_md_content table td,.feed_md_content table th{border:1px solid var(--fcom-primary-border, #e4e7eb);padding:8px}.feed_md_content table tr:hover{background-color:var(--fcom-primary-border, #e4e7eb)}.feed_md_content table th{padding:8px 10px;text-align:left;font-weight:700}.feed_md_content pre{margin:10px 0;background:rgba(0,0,0,.07);font-family:monospace;padding:10px;overflow:auto;white-space:pre-wrap;word-break:break-word;max-height:40vh;max-width:100%;box-sizing:border-box}.feed_md_content pre code{background:transparent;white-space:pre-wrap;word-break:break-word}.feed_md_content code{overflow:auto}.feed_md_content a{color:var(--fcom-text-link, #2271b1)}.feed_md_content .wp-block-code,.feed_md_content blockquote{margin:10px 0;padding:8px 15px;border-left:2px solid #a2adbe;font-style:italic;position:relative}.feed_md_content .wp-block-code:hover,.feed_md_content blockquote:hover{border-color:#333;transition:all .3s}.feed_md_content .wp-block-code p,.feed_md_content blockquote p{margin:5px 0}.feed_md_content .wp-block-code cite,.feed_md_content blockquote cite{display:block;text-align:right;color:#666;font-style:normal;font-size:.8em}.feed_md_content .wp-block-code cite:before,.feed_md_content blockquote cite:before{content:"— "}.feed_md_content video{width:100%;height:auto;margin:10px 0}.feed_md_content img{max-width:100%;height:auto}.feed_md_content h1{font-size:24px;line-height:1.4;margin:.8em 0}.feed_md_content h2{font-size:22px;line-height:1.4;margin:.7em 0}.feed_md_content h3{font-size:20px;line-height:1.4;margin:.6em 0}.feed_md_content h4{font-size:18px;line-height:1.4;margin:.5em 0}.feed_md_content h5{font-size:16px;line-height:1.4;margin:.5em 0}.feed_md_content h6{font-size:14px;line-height:1.4;margin:.5em 0}.feed_md_content ul{margin:7px 0 10px 20px;list-style:disc}.feed_md_content li{margin:0 0 7px}.feed_md_content li:last-child{margin-bottom:0}.feed_md_content li::marker{color:#959595}.feed_md_content p{margin-bottom:1rem;line-height:1.5rem}.feed_md_content ol{margin:7px 0 10px 20px;list-style:decimal}.feed_md_content>*:last-child{margin-bottom:0!important}.feed_md_content>*:first-child{margin-top:0!important}.fcom_feed_box{max-width:680px;margin:0 auto}.fcom_feed_header_wrap{position:relative}.fcom_feed_header_wrap .feed_actions.fcom_concat_buttons{position:absolute;right:0;top:0}.fcom_feed_edit .el-overlay{z-index:9999!important}.fcom_feed_edit_dialog{padding:0!important}.fcom_feed_edit_dialog .el-dialog__header{padding:0}.fcom_feed_edit_dialog_header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e4e7eb;padding:10px;margin-bottom:5px}.fcom_feed_edit_dialog_header .cross_btn:hover{background-color:#fff;color:#606266}.fcom_feed_edit_dialog_header span{font-size:1.2rem;font-weight:600}.fcom_feed_edit_dialog_body{padding:10px}.fcom_feed_edit .fcom_media_items{display:flex;flex-wrap:wrap;margin-top:10px}.fcom_feed_edit .fcom_media_images{position:relative}.fcom_feed_edit .fcom_media_images img{max-width:100%}.fcom_feed_edit .fcom_media_images_cross_button{position:absolute}.fcom_feed_edit .fcom_media_images .fcom_media_image{max-width:80%}.comment_text_media{margin-top:10px}.comment_text_media .feed_media_provider_giphy{text-align:left}.comment_text_media .fcom_media_provider_giphy{text-align:left;max-width:50%}.fcom_text_composer{background:var(--fcom-secondary-content-bg, var(--fcom-active-bg, #f0f2f5));color:var(--fcom-primary-text, #19283a);border-radius:8px}.fcom_text_composer:has(.fcrom_media_images),.fcom_text_composer:has(.fcom_compose_app_form){border:1px solid var(--fcom-secondary-border, #9CA3AF)}.fcom_text_composer:has(.fcrom_media_images) .status_text_input,.fcom_text_composer:has(.fcom_compose_app_form) .status_text_input{box-shadow:none}.fcom_text_composer .fcom_media_images img{max-width:100%}.fcom_text_composer .feed_media_oembed{margin:0}.feed_comment_input .fcom_text_composer{background:var(--fcom-primary-bg, #f0f2f5)}.feed_comment_input .fcom_text_composer .milkdown .ProseMirror{min-height:44px}.fcom_title_input{font-size:2rem;background:white;padding:15px;line-height:120%;min-height:2.5rem;position:relative}.fcom_title_input:empty:not(:focus):before{content:attr(data-ph);color:gray;font-style:italic;z-index:0;position:absolute;height:0}.block-editor-writing-flow{min-height:400px}.fcom_write_article{max-width:1100px;margin:30px auto;display:flex}.fcom_write_article .writing_wrap{width:100%}.fcom_write_article .form_writing_footer{margin-top:20px;display:flex;justify-content:flex-end}.writing_side_meta{display:block;margin-bottom:30px;position:relative}.writing_side_meta .side_meta_body{background:white;padding:10px;border-bottom:1px solid #e0e0e0}.writing_side_meta .side_meta_title{padding:10px;border-bottom:1px solid #dddfe6;background:#e4e5e8;border-top-left-radius:5px;border-top-right-radius:5px;font-weight:500}.writing_side_meta .side_meta_footer{background:rgb(228,229,232);padding:10px;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.writing_side_meta .object_cover{aspect-ratio:16/9;background-position:center center;background-size:cover;margin-bottom:40px}.writing_side_meta .object_cover.object_no_photo{height:0;aspect-ratio:auto}.writing_side_meta .object_cover .object_media_uploader{position:absolute;bottom:10px}.feed_featured{margin:-10px -15px 0;border-top-left-radius:5px;cursor:pointer;text-align:center}.feed_featured img{max-width:100%;overflow:hidden;border-top-left-radius:10px;border-top-right-radius:10px}.feed_article{margin-bottom:10px}.feed_article .article_title{font-size:1.5rem;line-height:1.2;margin:0;padding:10px 0}.feed_has_image .feed_header{margin-left:-10px;position:absolute;top:0;width:100%;padding:10px 15px}.feed_has_image .feed_header .feed_user{cursor:pointer;background:rgba(255,255,255,.8196078431);border-radius:16px;padding-right:16px;opacity:.4}.feed_has_image .feed_header .feed_user:hover{background:white;opacity:1}.feed_has_image .feed_header .feed_user .feed_user_name{line-height:1}.feed_has_image .feed_header .feed_user img{border:2px solid white}.feed_has_image .feed_header .feed_timestamp{font-size:60%!important}.feed_type_article.feed_list_item .feed_body{cursor:pointer}.feed_type_article.feed_list_item .feed_body:hover h3{color:#007cba}.article_content{padding:0 1.5rem}.edit-post-header__settings,.edit-post-header-toolbar__inserter-toggle{display:none!important}.article_content img{max-width:100%}.feed_single .article_title{font-size:1.9rem;line-height:1.2;text-align:center;border-bottom:1px solid #dedede}h1,h2,h3,h4,h5,h6{line-height:1.1}h1,h2,h3,h4,h5,h6{display:block;font-weight:600}h1{font-size:2em;margin:.4em 0}h2{font-size:1.8em;margin:.3em 0}h3{font-size:1.5em;margin:.3em 0}h4{font-size:1.3em;margin:.25em 0}h5{font-size:1.2em;margin:.2em 0}h6{font-size:1.1em;margin:.15em 0}.feed ul{list-style:disc;margin-left:20px;margin-bottom:15px}.wp-block-heading{margin-bottom:15px}.fhr_shadow{box-shadow:0 2px 4px #0003,0 25px 50px #0000001a}.has_icon_link{display:flex;align-items:center;column-gap:5px}.is_filled_link{background-color:#fff8b7}.is_filled_link.fcom_work_status_started{background-color:#b7f8b7}em{font-style:italic}sup{font-size:.8em;vertical-align:super;line-height:0}sub{font-size:.8em;vertical-align:sub;line-height:0}ul.fcom_inner_menu{margin:0;padding:0;list-style:none;display:flex;background:white;border-radius:8px}ul.fcom_inner_menu li{margin:0;padding:0;background:white;border-radius:8px}ul.fcom_inner_menu li:last-child{border-right:none}ul.fcom_inner_menu li a{text-decoration:none;padding:6px 20px;display:block;color:#6180a0;border-radius:8px}ul.fcom_inner_menu li a.router-link-exact-active{color:#000;background:#F0F3F5}.fcom_filter_menu{border-bottom:2px solid var(--fcom-primary-border, #e3e8ee);display:flex;align-items:center;justify-content:space-between}.fcom_filter_menu .fcom_filter_menu_ul{list-style:none;margin:0;padding:0;display:flex;column-gap:10px}.fcom_filter_menu .fcom_filter_menu_ul li{display:inline-block;margin:0;padding:0}.fcom_filter_menu .fcom_filter_menu_ul li a{padding:7px 15px;display:block;text-decoration:none;color:var(--fcom-primary-text, #19283a)}.fcom_filter_menu .fcom_filter_menu_ul li a:hover{color:var(--fcom-text-link, #2078f4)}.fcom_filter_menu .fcom_filter_menu_ul li a.router-link-exact-active{margin-bottom:-2px;font-weight:500;color:var(--fcom-text-link, #2078f4);border-bottom:2px solid var(--fcom-text-link, #2078f4)}.fcom_card_sections{background:var(--fcom-primary-bg, white);border-radius:10px;margin-bottom:20px;border:1px solid var(--fcom-primary-border, #e5e7eb)}.fcom_card_sections .fcom_section_labels{display:none}.fcom_card_sections.fcom_course_type_scheduled .fcom_section_labels,.fcom_card_sections.fcom_course_type_structured .fcom_section_labels{border:1px solid transparent;border-bottom:1px solid var(--fcom-primary-border, #e5e7eb);padding:15px 10px 15px 40px;display:flex;align-items:center;justify-content:space-between;color:var(--fcom-primary-text, #19283a);font-weight:300;font-size:80%}.fcom_card_sections.fcom_course_type_scheduled .fcom_label_lesson,.fcom_card_sections.fcom_course_type_structured .fcom_label_lesson{width:40%}.fcom_card_sections.fcom_course_type_scheduled .fcom_label_schedule,.fcom_card_sections.fcom_course_type_structured .fcom_label_schedule{width:20%}.fcom_card_sections.fcom_course_type_scheduled .fcom_label_email,.fcom_card_sections.fcom_course_type_structured .fcom_label_email{width:10%}.fcom_card_sections.fcom_course_type_scheduled .fcom_label_actions,.fcom_card_sections.fcom_course_type_structured .fcom_label_actions{width:30%}.fcom_card_sections .fcom_input_select_btn{border:1px solid var(--fcom-primary-border, #e5e7eb);border-radius:4px;padding:8px 10px;background:white;display:flex;align-items:center;gap:7px;font-size:12px;cursor:pointer;color:#7f8188}.fcom_card_sections .fcom_input_select_btn:hover{background:#f5f7fa;border-color:#cfd2d6}.fcom_card_sections .fcom_card_section_heading{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid var(--fcom-primary-border)}.fcom_card_sections .fcom_section_sub{padding:10px 15px}.fcom_card_sections .fcom_section_sub p{margin:0;padding:0}.fcom_card_sections .fcom_section_primary_item{padding:1rem;border-bottom:1px solid var(--fcom-primary-border);border-top:1px solid var(--fcom-primary-border);display:flex;align-items:center;justify-content:space-between}.fcom_card_sections .fcom_section_primary_item h4{margin:0;padding:0;font-size:1rem;line-height:1.25rem}.fcom_card_sections .fcom_section_primary_item .el-button.fcom_secondary_button{border:1px solid var(--fcom-primary-border)}.fcom_card_sections .fcom_section_primary_item .el-button.fcom_dot_menu{padding:14px 6px;border:1px solid var(--fcom-primary-border)}.fcom_card_sections .fcom_section_items p{margin:0;padding:0;line-height:1.1}.fcom_card_sections .fcom_section_items .fcom_section_item{border:1px solid transparent;border-bottom:1px solid var(--fcom-primary-border);padding:10px 15px 10px 40px;gap:4px;display:flex;align-items:center;justify-content:space-between}.fcom_card_sections .fcom_section_items .fcom_section_item .fcom_show_hover{visibility:hidden;margin-right:20px}.fcom_card_sections .fcom_section_items .fcom_section_item:last-child{border-bottom:1px solid transparent}.fcom_card_sections .fcom_section_items .fcom_section_item:hover{border:1px solid var(--fcom-secondary-border);transition:all .3s}.fcom_card_sections .fcom_section_items .fcom_section_item:hover .fcom_show_hover{transition:all .2s;visibility:visible}.fcom_card_sections .fcom_section_items .fcom_section_primary:first-child .fcom_section_primary_item{border-top:0}.fcom_card_sections .fcom_section_items .fcom_section_primary:last-child .fcom_section_primary_item{border-bottom:0}.fcom_card_sections .fcom_title_editing{width:70%}.fcom_card_sections .fcom_title_editable:hover .fcom_heading_item span{cursor:pointer;border-bottom:1px dotted var(--fcom-secondary-border)}.fcom_card_sections .fcom_section_primary_item_actions{display:flex;align-items:center;justify-content:flex-end}.fcom_card_sections .fcom_section_item_title{display:flex;align-items:center;gap:8px}.fcom_card_sections .fcom_section_item_title .fcom_drag{margin:0;padding:0}.fcom_card_sections .fcom_section_item_title .fcom_drag svg{width:20px;height:20px;display:flex}.fcom_card_sections .fcom_section_item_actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}.fcom_cards{display:grid;gap:20px}.fcom_cards.fcom_cards_2{grid-template-columns:1fr 1fr}.fcom_cards.fcom_cards_3{grid-template-columns:1fr 1fr 1fr}.fcom_cards .fcom_card{background:var(--fcom-primary-bg, white);border-radius:10px;border:1px solid var(--fcom-primary-border, #e5e7eb);margin:0 0 20px}.fcom_cards .fcom_card .fcom_card_header{padding:15px 20px;border-bottom:1px solid var(--fcom-primary-border, #e5e7eb);display:flex;align-items:center;justify-content:space-between}.fcom_cards .fcom_card .fcom_card_header h3{margin:0;padding:0;font-size:20px;color:var(--fcom-primary-text, #19283a)}.fcom_cards .fcom_card .fcom_card_body{padding:20px}.fcom_cards .fcom_card .fcom_card_body p{margin:0;padding:0;color:var(--fcom-primary-text, #19283a)}.fcom_cards .fcom_card .fcom_card_footer{padding:15px 20px;border-top:1px solid var(--fcom-primary-border, #e5e7eb);display:flex;align-items:center;justify-content:space-between}.fcom_course_lessons .fcom_card_sections .fcom_section_primary_item{padding:1rem}.fcom_course_comments_header{padding:16px 20px;background:var(--fcom-primary-bg, white);border-top-left-radius:8px;border-top-right-radius:8px}.fcom_course_comments_header h5{margin:0;font-size:18px;font-weight:500;color:var(--fcom-primary-text, #19283a)}.fcom_settings_header{margin-bottom:20px}.fcom_full_editor{position:fixed;top:0;left:0;right:0;bottom:0;background:white;z-index:999}.fcom_full_editor .fcom_full_editor_header_wrap{background-color:var(--fcom-primary-bg, #2B2E33);border-bottom:1px solid var(--fcom-primary-border, #e5e7eb)}.fcom_full_editor .fcom_full_editor_side{background:var(--fcom-active-bg, #f8f8f8);padding:20px}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor{width:350px;max-height:calc(100vh - 60px);background:var(--fcom-primary-bg, #f8f8f8)}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_title{display:flex;gap:4px;align-items:center}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_title p{margin:10px 0}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_title .el-icon{cursor:pointer}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-tabs .el-tabs__header .el-tabs__item.is-active,.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-tabs .el-tabs__header .el-tabs__item:hover{color:var(--fcom-primary-text, #19283a)}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-tabs .el-tabs__header .el-tabs__active-bar{background-color:var(--fcom-primary-text, #19283a)}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item.fcom_bg_image .el-form-item__content .fcom_bg_upload{width:95%;position:relative}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item.fcom_bg_image .el-form-item__content .fcom_bg_upload .el-upload,.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item.fcom_bg_image .el-form-item__content .fcom_bg_upload .el-upload .el-image{width:100%}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item.fcom_bg_image .el-form-item__content .fcom_bg_upload .el-upload .el-image img{width:100%;height:100px;object-fit:cover}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item.fcom_bg_image .el-form-item__content .fcom_bg_upload .el-upload .fcom_btn_upload{width:100%;padding:1.5rem;border:1px solid #dcdfe6}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item.fcom_bg_image .el-form-item__content .fcom_bg_remove{cursor:pointer;position:absolute;display:flex;color:#fff;background-color:#42454d;top:-8px;right:8px;border-radius:50%;padding:0;width:20px;height:20px;font-size:11px;align-items:center;justify-content:center;line-height:1}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item__label{color:var(--fcom-primary-text, #19283a)}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item__content .el-input__wrapper,.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item__content .el-textarea__inner{padding:8px 12px;border-radius:8px}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item__content .fcom_color_input_wrap{display:flex;width:95%}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item__content .fcom_color_input_wrap .el-input__wrapper{box-shadow:none;border:1px solid #dcdfe6;border-left:none;padding-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item__content .fcom_color_input_wrap .el-color-picker.is-focused .el-color-picker__trigger,.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item__content .fcom_color_input_wrap .el-color-picker:hover .el-color-picker__trigger{border-color:#dcdfe6}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item__content .fcom_color_input_wrap .el-color-picker .el-color-picker__trigger{height:100%;width:48px;padding:12px;border:1px solid #dcdfe6;border-radius:8px 0 0 8px;border-right:none}.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item__content .fcom_color_input_wrap .el-color-picker .el-color-picker__trigger .el-color-picker__color .el-color-picker__icon,.fcom_full_editor .fcom_full_editor_side.lockscreen_editor .fcom_edit_content .el-form .el-form-item__content .fcom_color_input_wrap .el-color-picker .el-color-picker__trigger .el-color-picker__color .el-color-picker__empty{display:none}.fcom_full_editor .fcom_full_editor_container{padding:0}.fcom_full_editor .fcom_full_editor_main{padding-top:0;height:calc(100vh - 60px);background:var(--fcom-primary-bg, #f8f8f8)}.fcom_full_editor .fcom_full_editor_main.lockscreen_editor{padding:2rem;background:var(--fcom-secondary-bg, #f0f2f5)}.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar{border-radius:8px;background:var(--fcom-primary-bg, #FFFFFF)}.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar .fcom_editor_topbar{display:flex;gap:8px;align-items:center;padding:1rem 2rem;position:sticky}.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar .fcom_editor_topbar h3{font-size:1.25rem;font-weight:500}.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar .fcom_editor_topbar .el-icon{font-size:1.125rem}.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar .fcom_editor_content .fcom_item .fcom_image_wrap{padding:3rem 0;display:flex;flex-direction:column;align-items:center;background-size:cover;background-position:center;background-blend-mode:multiply}.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar .fcom_editor_content .fcom_item .fcom_image_wrap .fcom_content{text-align:center}.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar .fcom_editor_content .fcom_item .fcom_image_wrap .fcom_content h2,.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar .fcom_editor_content .fcom_item .fcom_image_wrap .fcom_content p,.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar .fcom_editor_content .fcom_item .fcom_image_wrap .fcom_content button{outline:none}.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar .fcom_editor_content .fcom_item .fcom_image_wrap .fcom_btn{display:inline-block;padding:6px 12px;font-size:.875rem;font-weight:600;border-radius:4px;border:none}.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar .fcom_editor_content .fcom_item .fcom_content_wrap{margin:0 auto;padding:2rem 0;max-width:800px}.fcom_full_editor .fcom_full_editor_main.lockscreen_editor .el-scrollbar .fcom_editor_content .fcom_item .fcom_content_wrap img{max-width:100%}.fcom_full_editor .fcom_full_editor_main .fcom_editor_wrap{max-width:840px;padding:0 20px 20px;margin:0 auto}.fcom_full_editor .fcom_full_editor_main .fcom_full_editor_content{max-width:600px;padding:20px;margin:0 auto}.fcom_full_editor .fcom_full_editor_header{display:flex;padding:10px 20px;align-items:center;justify-content:space-between}.fcom_full_editor .fcom_full_editor_header .full_editor_actions .fcom_primary_button{margin-left:15px;border-radius:8px}.fcom_full_editor .fcom_media_editor_actions{display:flex;justify-content:flex-end}.fcom_full_editor .fcom_media_editor_actions .el-select{max-width:200px}.fcom_full_editor .fcom_primary_button{color:var(--fcom-primary-button-text, var(--fcom-primary-bg, #FFFFFF));background:var(--fcom-primary-button, #FFFFFF);border:1px solid var(--fcom-primary-button, #2B2E33)}.fcom_full_editor .fcom_primary_button:hover{opacity:.8;color:var(--fcom-primary-bg, #FFFFFF);background:var(--fcom-primary-button, #FFFFFF);border:1px solid var(--fcom-primary-button, #2B2E33)}.fcom_full_editor .fcom_secondary_button{color:var(--fcom-primary-text, #19283a);background:var(--fcom-primary-bg, #FFFFFF);border:1px solid var(--fcom-primary-button, #2B2E33)}.fcom_full_editor .fcom_secondary_button:hover{opacity:.8}.fcom_lesson_camp{margin:20px 0 0;font-size:12px;display:flex;align-items:center;justify-content:space-between}.interface-interface-skeleton__header{z-index:99999999!important;position:sticky!important;top:0!important}.interface-interface-skeleton__header .edit-post-header *{background:#6180a0;fill:#fff}.iso-editor .editor-list-view-sidebar__list-view-container{width:320px;padding:10px 15px}.iso-editor .editor-list-view-sidebar__list-view-container .document-outline{margin-top:10px}.iso-editor .editor-list-view-sidebar__list-view-container .document-outline ul{list-style:disc;padding-left:20px}.iso-editor .editor-list-view-sidebar__list-view-container .document-outline ul li{margin-bottom:5px}.iso-editor .editor-list-view-sidebar__list-view-container .document-outline ul li a{color:#6180a0;text-decoration:none}.iso-editor .editor-list-view-sidebar__list-view-container .document-outline ul li a:hover{text-decoration:underline}.iso-editor .editor-document-tools__left .editor-document-tools__inserter-toggle{display:none!important}.fcom_section{margin-bottom:20px}.fcom_section .fcom_section_body{padding:15px 20px;background:var(--fcom-primary-bg, white);border-radius:10px}.fcom_section .fcom_section_body p{margin:0 0 5px;padding:0}.fcom_section .fcom_section_item_title{margin-bottom:15px}.fcom_section .fcom_section_item_title h3{margin:0;font-size:20px;color:var(--fcom-primary-text, #19283a)}.fcom_course_intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.fcom_course_intro .fcom_course_labels h3{font-size:1.25rem}.fcom_course_intro .fcom_course_labels .fcom_course_info{margin:0;font-size:.875rem;line-height:1.25rem;font-weight:400}.fcom_course_intro .fcom_course_labels .fcom_course_info span{font-size:1rem;font-weight:800}.fcom_back_header{color:var(--fcom-primary-text, #19283a);cursor:pointer;display:flex;align-items:center;gap:10px}.fcom_back_header:hover{color:#000;transition:all .3s}.fcom_lesson_container{background:var(--fcom-primary-bg, white)}.fcom_lesson_container .fcom_lesson_wrap{padding:0}.fcom_lesson_container .fcom_lesson_details{max-width:740px;margin:0 auto;padding:20px}.fcom_lesson_container .fcom_lesson_details .fcom_lesson_body{margin-top:20px}.fcom_lesson_container .fcom_lesson_details .fcom_lesson_body img{width:100%}.fcom_lesson_container .fcom_lesson_sidebar{background:var(--fcom-active-bg, #f8f8f8);border-left:1px solid var(--fcom-primary-border, #e5e7eb)}.fcom_lesson_container .fcom_lesson_sidebar .fcom_section_primary{margin-bottom:15px}.fcom_lesson_container .fcom_lesson_sidebar .fcom_section_sidebar_title{padding:10px 20px;border-bottom:1px solid var(--fcom-primary-border, #e3e8ee);height:55px}.fcom_lesson_container .fcom_lesson_sidebar .fcom_section_sidebar_title h3{margin:0;padding:0;font-size:17px;line-height:23px;color:#919399}.fcom_lesson_container .fcom_lesson_sidebar .fcom_section_primary_item_title{gap:5px}.fcom_lesson_container .fcom_lesson_sidebar .fcom_section_primary_item_title h4{font-size:14px;margin:0;padding:5px 5px 5px 0}.fcom_lesson_container .fcom_lesson_sidebar .fcom_section_primary_item{padding:5px 7px}.fcom_lesson_container .fcom_lesson_sidebar .fcom_section_item{padding:8px 8px 8px 22px}.fcom_lesson_container .fcom_lesson_sidebar .fcom_section_item p{margin:0;padding:0;font-size:12px}.fcom_lesson_container .fcom_lesson_sidebar .fcom_current_lesson{background:var(--fcom-primary-bg, #2B2E33)}.fcom_lesson_container .feed_media_oembed,.fcom_lesson_container .feed_media_iframe_html{margin:0 -60px;border-bottom:none;background:transparent}.fcom_lesson_container .fcom_lesson_header{display:flex;align-items:flex-start;justify-content:space-between}.fcom_lesson_title{margin-bottom:20px}.fcom_lesson_title p.fcom_lesson_number{margin:0;padding:0;font-size:90%;color:var(--fcom-text-off, #919399)}.fcom_lesson_title h1{margin:0;padding:5px 0;font-size:28px;color:var(--fcom-primary-text, #19283a)}@media (max-width: 768px){.fcom_lesson_title h1{font-size:1rem}}.fcom_course_sections .fcom_section_item p{padding:6px 0!important}.fcom_lesson_nav{display:flex;align-items:center}.fcom_section_item .fcom_move_nav_lessons{margin-left:-30px;margin-right:5px;visibility:hidden}.fcom_section_item .fcom_move_nav_lessons .el-button-group{display:flex;flex-direction:column}.fcom_section_item .fcom_move_nav_lessons .el-button-group .el-button{--el-button-size: 14px;margin:0;padding:0 7px}.fcom_section_item .fcom_move_nav_lessons .el-button-group .el-button:first-child{margin-right:0;border-bottom:0;border-top-right-radius:calc(var(--el-border-radius-base) - 1px);border-bottom-right-radius:0;border-bottom-left-radius:0}.fcom_section_item .fcom_move_nav_lessons .el-button-group .el-button:last-child{border-bottom-right-radius:calc(var(--el-border-radius-base) - 1px);border-bottom-left-radius:calc(var(--el-border-radius-base) - 1px);border-top-right-radius:0;border-top-left-radius:0}.fcom_section_item:hover .fcom_move_nav_lessons{visibility:visible}#fluent_comminity_body .feed_layout .fcom_full_screen{position:absolute;top:0;left:0;right:0;z-index:9999999;bottom:0;background:var(--fcom-primary-bg, white);margin:0!important;padding:0!important}#fluent_comminity_body .feed_layout .fcom_full_screen .fcom_back_space{margin:0;padding-top:15px;position:sticky;top:0;background:var(--fcom-primary-bg, white)}#fluent_comminity_body .feed_layout .fcom_full_screen .fcom_lesson_container .fcom_lesson_sidebar .fcom_section_sidebar_title{display:flex;align-items:center;height:70px}#fluent_comminity_body .feed_layout .fcom_full_screen .fcom_lesson_container .fcom_lesson_wrap{height:calc(100vh + 15px)!important}#fluent_comminity_body .feed_layout .fcom_full_screen .fhr_content_layout .el-scrollbar>.el-scrollbar__wrap{height:100vh!important}.fcom_lesson_comments{padding:20px 20px 100px;background:var(--fcom-active-bg, white)}.fcom_lesson_comments .fcom_lesson_comment_box{max-width:670px;margin:0 auto}.fcom_lesson_comments .fcom_lesson_comment_box .comment_text{background-color:var(--fcom-primary-bg, white)}.fcom_lesson_comments .fcom_lesson_comment_box .feed_comment{background:transparent}.course_comments{background:var(--fcom-primary-bg, white);padding:20px;border-radius:8px;margin:0!important}.course_comments.overview_comments{padding:0;border-top-left-radius:0;border-top-right-radius:0}.course_comments.overview_comments h5{padding:20px}.course_comments.overview_comments .each_comment{margin:0;padding:20px;column-gap:16px;border-bottom:1px solid var(--fcom-primary-border, #e3e8ee)}.course_comments.overview_comments .each_comment .comment_text{padding:0;background-color:transparent}.course_comments.overview_comments .each_comment .comment_text .comment_actions{margin-left:auto}.course_comments.overview_comments .each_comment .comment_text .comment_text_details{font-size:13px;font-weight:400}.course_comments.overview_comments .each_comment .comment_text .comment_text_details a{text-decoration:none;color:var(--fcom-secondary-text, #959595)}.course_comments.overview_comments .each_comment .comment_text .comment_text_details a b{color:var(--fcom-primary-text, #19283a)}.course_comments.overview_comments .each_comment .comment_text .comment_text_body{font-size:14px;font-weight:400;color:var(--fcom-secondary-text, #959595)}.course_comments.overview_comments .each_comment .comment_text .comment_text_actions .el-button{cursor:pointer;padding:0}.course_comments.overview_comments .each_comment .comment_text .comment_text_actions .el-button:hover{background-color:transparent}.course_comments.overview_comments .each_comment .comment_text .comment_text_actions .el-button span{font-size:14px;font-weight:400}.course_comments.user_comments .each_comment{display:flex;align-items:flex-start;flex-direction:column;padding:12px 0;margin-bottom:0;margin-left:32px;border-bottom:1px solid var(--fcom-primary-border, #e3e8ee);position:relative}.course_comments.user_comments .each_comment:first-child{padding-top:0}.course_comments.user_comments .each_comment:first-child .comment_icon{top:29px}.course_comments.user_comments .each_comment:last-child{border-bottom:none;padding-bottom:0}.course_comments.user_comments .each_comment:not(:last-child):before{content:"";width:1px;height:100%;position:absolute;left:-24px;top:41px;border-left:1px dashed var(--fcom-primary-border, #e3e8ee)}.course_comments.user_comments .each_comment .comment_icon{color:#959595;background:var(--fcom-active-bg, #f0f3f5);border-radius:50%;font-size:10px;height:18px;width:18px;left:-32px;position:absolute;top:43px;z-index:2}.course_comments.user_comments .each_comment .comment_icon .el-icon{height:14px;width:14px}.course_comments.user_comments .each_comment .comment_icon:before{content:"";width:6px;height:6px;position:absolute;left:50%;top:50%;background:var(--fcom-bg-soft-200, #E1E4EA);transform:translate(-50%,-50%);border-radius:50%}.course_comments.user_comments .each_comment .comment_text_head{align-items:center;justify-content:space-between;width:100%}.course_comments.user_comments .each_comment .comment_text_body p{color:var(--fcom-secondary-text, #959595);margin:0}.course_comments .each_comment{margin-bottom:20px}.fcom_move_nav{display:flex;flex-direction:column;border:1px solid var(--fcom-primary-border, #e5e7eb);border-radius:4px;background:#f5f7fa;position:absolute;left:-20px;visibility:hidden}.fcom_move_nav button{margin:0!important;padding:2px 10px;height:auto;background:white!important;color:#000!important;font-weight:700;font-size:16px}.fcom_move_nav button:first-child{border-bottom:1px solid var(--fcom-primary-border, #e5e7eb);border-bottom-left-radius:0;border-bottom-right-radius:0}.fcom_move_nav button:last-child{border-top-left-radius:0;border-top-right-radius:0}.fcom_move_nav button:hover{background:black!important;color:#fff!important}.fcom_section_primary{position:relative}.fcom_section_primary:hover .fcom_move_nav{visibility:visible}.fcom_highlight_comment>.comment_wrap>.comment_text{background:var(--fcom-highlight-bg, #E6A23C);border:1px solid #f0e68c}.fcom_box_card_item{margin-bottom:30px;background:var(--fcom-primary-bg, white);border-radius:10px}.fcom_box_card_item .box_header{align-items:center;justify-content:space-between;gap:15px}.fcom_box_card_item .box_header .meta_lines{display:flex}.fcom_box_card_item .box_heading a{text-decoration:none;font-size:120%}.fcom_box_card_item .object_header .object_cover{border-radius:10px 10px 0 0}.fcom_box_card_item .box_card_name{padding:0 15px 10px;border-bottom:1px solid var(--fcom-primary-border, #e5e7eb)}.fcom_box_card_item .box_card_name a{color:var(--fcom-primary-text, #19283a)}.fcom_box_card_item .box_card_description{padding:10px 15px;color:var(--fcom-text-soft, #606266);font-size:14px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.section_lock_badge{display:flex;align-items:center;gap:7px;margin-left:10px;color:var(--fcom-menu-text, #545861);background:var(--fcom-active-bg, #f0f3f5);border:1px solid var(--fcom-menu-text, #545861);border-radius:5px;padding:0 8px;font-size:80%}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-embed iframe{width:100%}.wp-block-embed__wrapper{position:relative}.wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.fcom_compose_app_form{border-radius:5px;position:relative;padding:15px;margin-top:15px;background:var(--fcom-active-bg, #f0f2f5)}.fcom_compose_app_form .fcom_app_header{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;padding:0}.fcom_compose_app_form .fcom_app_options{margin-bottom:16px}.fcom_compose_app_form .fcom_app_options .fcom_app_option{margin-bottom:10px}.fcom_compose_app_form .fcom_app_footer h5{margin-bottom:8px}.fcom_compose_app_form .fcom_app_pref{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.fcom_compose_app_form h5{color:var(--fcom-primary-text, #19283a);font-size:15px}.fcom_app_render{position:relative;padding:0 20px 20px;margin:0 -20px;border-bottom:1px solid var(--fcom-primary-border, #e4e7eb)}.fcom_app_render .fcom_app_option{display:flex;padding:10px 15px;margin:0 0 10px;align-items:center;justify-content:space-between;cursor:pointer;gap:10px;position:relative;border:1px solid var(--fcom-primary-border, #e4e7eb);border-radius:8px}.fcom_app_render .fcom_app_option span.fc_app_shadow{display:block;position:absolute;background:var(--fcom-active-bg, #f0f3f5);left:0;top:0;right:0;height:100%;z-index:1;border-radius:8px;max-width:100%!important}.fcom_app_render .fcom_app_option.fcom_is_voted{border-color:var(--fcom-secondary-border, #e1e4ea)}.fcom_app_render .fcom_app_option.fcom_is_voted .fcom_app_input_wrap .fcom_input_single_choice svg{transform:scale(1)}.fcom_app_render .fcom_app_option.fcom_is_voted .fcom_app_input_wrap .fcom_input_multi_choice{color:var(--fcom-primary-bg, white);background:var(--fcom-primary-text, #19283a)}.fcom_app_render .fcom_app_option.fcom_is_voted .fcom_app_input_wrap .fcom_input_multi_choice svg{transform:scale(1)}.fcom_app_render .fcom_app_option .fcom_app_input_wrap .fcom_input_multi_choice,.fcom_app_render .fcom_app_option .fcom_app_input_wrap .fcom_input_single_choice{width:15px;height:15px;border:1px solid var(--fcom-primary-text, #19283a);display:flex;align-items:center;justify-content:center;border-radius:50%;transition:.2s;-webkit-transition:.2s}.fcom_app_render .fcom_app_option .fcom_app_input_wrap .fcom_input_multi_choice svg,.fcom_app_render .fcom_app_option .fcom_app_input_wrap .fcom_input_single_choice svg{width:8px;transform:scale(0);transition:.2s;-webkit-transition:.2s}.fcom_app_render .fcom_app_option .fcom_app_input_wrap .fcom_input_multi_choice{border-radius:4px}.fcom_app_render .fcom_app_option .fcom_app_text{display:flex;align-items:center;gap:10px;z-index:10}.fcom_app_render .fcom_app_option .fcom_app_counts{display:flex;align-items:center;gap:5px;z-index:10;font-size:80%}.fcom_app_render .fcom_app_option .fcom_app_counts .el-icon{margin-top:2px}.fcom_box_card_list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.fcom_box_card_list .fcom_each_box_card{display:flex;flex-direction:column;border-radius:8px}.fcom_box_card_list .fcom_each_box_card:hover{box-shadow:0 8px 30px #1b253333}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_avatar{cursor:pointer;width:100%;height:177px;overflow:hidden;border-top-left-radius:8px;border-top-right-radius:8px}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_avatar img{width:100%;height:100%;object-fit:cover;aspect-ratio:1.91/1}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_avatar .fcom_no_image{width:100%;height:100%;border-bottom-left-radius:0;border-bottom-right-radius:0}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_info{display:flex;flex-direction:column;border:1px solid var(--fcom-primary-border, #e5e7eb);border-bottom-left-radius:8px;border-bottom-right-radius:8px;background:var(--fcom-primary-bg, #fff);flex:1;gap:12px;padding:12px}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_name{display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:600;color:var(--fcom-primary-text, #19283a)}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_name a{display:flex;align-items:center;text-decoration:none;color:var(--fcom-primary-text, #19283a);gap:8px}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_name a:hover{text-decoration:none}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_name a .el-tag{height:auto;padding:4px 8px}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_name .fcom_dot_menu{margin-right:-8px;padding:5px}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_name .fcom_box_card_by{font-size:14px;font-weight:400;color:var(--fcom-secondary-text, #697386)}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_details{display:flex;justify-content:space-between;gap:12px}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_details .details_item{display:flex;align-items:center;gap:4px;font-size:14px;color:var(--fcom-secondary-text)}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_details .inline_details{font-size:14px;display:flex;align-items:center;color:var(--fcom-secondary-text, #697386);gap:5px}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_details .inline_details .fcom_inline_separator{background:var(--fcom-secondary-text, #697386)}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_description{font-size:14px;color:var(--fcom-secondary-text, #697386)}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_action{display:flex;align-items:center;justify-content:center;margin-top:auto}.fcom_box_card_list .fcom_each_box_card .fcom_box_card_action .fcom_card_button{cursor:pointer;border:none;border-radius:8px;width:100%;padding:8px;background:var(--fcom-active-bg, #f0f2f5)}@media (max-width: 1160px){.fcom_resp_container .feed_media_oembed{margin:0 -20px}}@media (max-width: 768px){.fcom_resp_container .fcom_resp_side{display:none}.feed_footer ul{column-gap:0}.fcom_top_menu{padding:10px}.fcom_top_menu .top_menu_left{gap:5px}.fcom_top_menu .top_menu_left .fhr_logo img{max-height:32px;width:auto}.fcom_sm_only{display:block!important}.fcom_full_screen .fcom_back_space{line-height:1.1}.feed_layout .fhr_content_layout_header,.feed_layout .fcom_sub_header{padding:10px;min-height:auto}.feed_layout .fcom_single_layout.fcom_max_layout.feeds .fhr_content_layout .fhr_content_layout_body{padding:20px 10px 40px;margin:0}.feed_layout .fcom_single_layout.fcom_max_layout.feeds .fhr_content_layout .fhr_content_layout_body .fcom_space_container.el-container{padding-top:0}.feed_layout .fcom_single_layout.fcom_compact_layout .fhr_content_layout_body{padding:20px 10px 40px;margin:0 auto!important}.create_status_holder .create_header .form_placeholder{padding:.5rem}.spaces .space_contents{height:calc(100vh - var(--fcom-header-height, 55px));top:0}.fcom_full_editor .fcom_full_editor_main .fcom_editor_wrap{padding:0}.fcom_show_right_aside aside.fcom_resp_side{display:block;position:absolute;top:95px;right:0;bottom:0;box-shadow:0 0 10px #0000001a}.fcom_full_screen.fcom_show_right_aside aside.fcom_resp_side{top:70px}.state_active.create_status_holder .create_header .person_avatar,.feed_commneting .person_avatar{display:none}.feed_layout .fcom_space_container.el-container .el-main .fcom_feed_box{margin:0 auto}.user_header .object_menu ul li{padding:0}.user_header .object_menu ul li a{padding:4px 9px}}@media (max-width: 425px){.fcom_top_menu{padding:10px}.fcom_top_menu .top_menu_left{gap:5px}.fcom_top_menu .top_menu_left .fhr_logo img{max-height:32px;width:auto;max-width:100px;height:auto}.user_header .object_menu .fcom_profile_menu_actions .fcom_chat_button{padding:2px 10px}.user_header .object_menu .fcom_profile_menu_actions .fcom_chat_button span{display:none}.fhr_content_layout_header .edit_profile_button{padding:2px 10px}.fhr_content_layout_header .edit_profile_button span.edit_profile{display:none}.fhr_content_layout_body .object_header.user_header .object_info{padding:0 8px 10px}.fhr_content_layout_body .object_header.user_header .object_menu{padding:12px 8px}}.fcom_box_list{display:block;background:var(--fcom-primary-bg, white);border-radius:8px;margin-bottom:15px}.fcom_box_list .fcom_box_list_header{border-bottom:1px solid var(--fcom-primary-border, #e4e4e4);padding:10px 20px;font-weight:500}.fcom_box_list .fcom_box_list_header h2{margin:0;padding:0;font-size:20px}.fcom_box_list .fcom_box_list_body{padding:0}.fcom_box_list ul.fcom_person_lists{list-style:none;margin:0;padding:0}.fcom_box_list ul.fcom_person_lists li{margin:0;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}.fcom_box_list ul.fcom_person_lists li .fcom_leader_stat{min-width:40px;text-align:right;color:var(--fcom-secondary-text, #666666)}.fcom_box_list ul.fcom_person_lists .fcom_leader{display:flex;align-items:center;gap:8px}.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial{min-width:22px;font-size:12px;position:relative;margin-right:5px;font-weight:700;color:var(--fcom-menu-text, rgb(56, 117, 223));background:var(--fcom-active-bg, #f0f2f5);border-radius:50%;text-align:center}.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial .fcom_serial_suffix{display:none}.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_1,.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_2,.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_3{flex-shrink:0;width:22px;height:22px;border-radius:50%;margin-bottom:3px;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;color:#fff}.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_1 .fcom_serial_suffix,.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_2 .fcom_serial_suffix,.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_3 .fcom_serial_suffix{display:block;position:absolute;bottom:-15px}.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_1{background-color:#f8d481}.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_1 .fcom_serial_suffix svg{color:#f8d481}.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_2{background-color:#909090}.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_2 .fcom_serial_suffix svg{color:#909090}.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_3{background-color:#a77b53}.fcom_box_list ul.fcom_person_lists .fcom_leader .fcom_serial.fcom_serial_3 .fcom_serial_suffix svg{color:#a77b53}.fcom_box_list ul.fcom_person_lists .fcom_leader img{width:40px;height:40px}.fcom_leaderboard_profile{background:var(--fcom-primary-bg, white);padding:30px;border-radius:8px;margin-bottom:30px;border:1px solid var(--fcom-primary-border, #e4e4e4)}.fcom_leaderboard_levels{margin:0;padding:0;list-style:none}.fcom_leaderboard_levels li{margin:0;min-height:100px;padding:12px 0;display:flex;gap:10px;align-items:center}.fcom_leaderboard_levels li .fcom_level_icon{text-align:center;border-radius:50%;background-color:transparent;border:2px solid var(--fcom-active-bg, #f0f2f5)}.fcom_leaderboard_levels li .fcom_level_icon span,.fcom_leaderboard_levels li .fcom_level_icon .el-icon{width:48px;height:48px;font-size:20px;display:flex;align-items:center;justify-content:center;color:var(--fcom-primary-text, #19283a)}.fcom_leaderboard_levels li .fcom_level_icon.fcom_is_in_level{background-color:var(--fcom-active-bg, #f0f2f5);font-size:12px;line-height:20px;color:#000}.fcom_leaderboard_levels li .fcoml_level_detail .fcoml_level_title{font-weight:500;font-size:16px}.fcom_leaderboard_levels li .fcoml_level_detail .fcoml_level_sub{font-size:14px;font-weight:350;color:var(--fcom-secondary-text, #666666)}.fcom_profile_header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.fcom_profile_header .fcom_profile_info{display:flex;align-items:center;justify-content:center;gap:1rem}.fcom_profile_header .fcom_profile_info .info_avatar .fcom_user_avatar img{width:96px;height:96px;border:3px solid #ffffff;outline:3px solid #e4e4e4}.fcom_profile_header .fcom_profile_info .info_avatar .fcom_user_avatar .fcom_compilation_avatar{outline:transparent solid 3px;background-clip:padding-box;border:3px solid transparent;padding:3px;border-radius:50%}.fcom_profile_header .fcom_profile_info .info_avatar .fcom_user_avatar .fcom_compilation_avatar img{background:var(--fcom-primary-bg, white);outline:transparent solid 3px;border:none}.fcom_profile_header .fcom_profile_info .info_avatar img{width:100%}.fcom_profile_header .fcom_profile_info .info_user{flex-grow:1}.fcom_profile_header .fcoml_level_sub{font-size:14px;line-height:16px;display:flex;align-items:flex-end;flex-direction:column;gap:8px}.fcom_profile_header .fcoml_level_sub .fcoml_level_sub_icon{font-size:12px;font-weight:100;display:flex;align-items:center;gap:16px;background:var(--fcom-active-bg, #f0f2f5);padding:8px 16px;border-radius:16px}.fcom_profile_header .fcoml_level_sub .fcoml_level_sub_icon span{font-size:14px;font-weight:450}.fcom_profile_header .fcoml_level_sub .fcoml_level_sub_text{font-size:13px}.fcom_profile_header .fcoml_level_sub .fcoml_level_sub_text .el-button{font-size:12px;padding:0;height:auto;line-height:16px}.fcom_profile_header .fcom_user_avatar .fcom_user_level_mark{width:24px;height:24px;font-size:14px;font-weight:700;border-width:2px;background:var(--fcom-primary-text, #19283a);color:var(--fcom-primary-bg, #FFFFFF);border:none}.fcom_profile_header .fcom_user_avatar .fcom_user_level_mark span{font-weight:400}.fcom_profile_header .user_route{font-size:18px;margin:15px 0 5px}.fcom_profile_header .fcom_level_name{font-size:14px;color:var(--fcom-secondary-text, #666666)}.fcom_features_module{display:flex;flex-wrap:wrap}.fcom_features_module .el-card{border-radius:0;border-bottom:3px solid transparent;transition:background .5s;background:var(--fcom-primary-bg)}.fcom_features_module .el-card:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.fcom_features_module .el-card:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-bottom:1px solid var(--fcom-primary-border)}.fcom_features_module .el-card:hover{background:var(--fcom-active-bg)}.fcom_features_module .el-card .feature_title,.fcom_features_module .el-card .feature_title a{text-decoration:none;color:var(--fcom-primary-text, #19283a);margin:0}.fcom_features_module .el-card .feature_title span,.fcom_features_module .el-card .feature_title a span{font-size:13px;margin-left:5px}.fcom_features_module .el-card .feature_module{display:flex;align-items:center;justify-content:space-between;column-gap:10px}.fcom_features_module .el-card .feature_module .feature_block{display:flex;align-items:flex-start;column-gap:20px}.fcom_features_module .el-card .feature_module .feature_block img{max-width:96px}.fcom_features_module .el-card .feature_module p{margin:10px 0 0;font-size:90%}.fcom_module_popover_content{display:flex;justify-content:space-between}.fcom_giphy_popover .search-container{display:flex;flex-direction:column;align-items:center;width:100%}.fcom_giphy_popover .gif_container{width:100%;height:300px;overflow:auto;display:flex;flex-wrap:wrap;gap:10px;padding:10px}.fcom_giphy_popover .gif_container .no_result{margin:0 auto}.fcom_giphy_popover .gif_item{width:48%}.fcom_giphy_popover .gif_item img{width:100%;height:auto;cursor:pointer}.fcom_giphy_popover .gif_item .img_loading{width:115px;height:100px;background-color:#ddd}.fcom_giphy_powered_by{display:flex;margin-top:10px;font-size:14px;line-height:20px;font-weight:900;color:#999;align-items:center;justify-content:flex-start;width:100%;font-family:Roboto,Helvetica,Arial,sans-serif}.fcom_giphy_powered_by .powered_by{font-size:7px;margin-right:3px;font-weight:200}.el-image.fcom_media_provider_giphy img{object-fit:cover!important;width:100%}.fcom_giphy_composer>button.el-button.is-text{font-size:30px;padding:0}.fcom_media_images_cross_button{position:absolute;margin-left:-13px}.fcom_setting_route .manager_section .bulk_search{display:flex;justify-content:end}.fcom_setting_route .manager_section .fcom_manager_table .user_col{display:flex;align-items:center}.fcom_setting_route .manager_section .fcom_manager_table .user_col .user_info{margin-left:10px}.fcom_setting_route .manager_section .fcom_manager_table .user_col .user_info .user_name{color:var(--fcom-primary-text, #19283a);text-decoration:none}.fcom_setting_route .manager_section .fcom_manager_table .user_col .user_info .user_id{color:var(--fcom-feed-text-light);margin-left:10px}.fcom_setting_route .manager_section .fcom_manager_table .user_col .user_info .user_email{color:var(--fcom-text-soft)}.fcom_setting_route .manager_section .fcom_manager_table .fcom_table_action_col{display:flex;justify-content:flex-end;gap:4px}.fcom_setting_route .manager_section .fcom_manager_actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-bottom:16px}.fcom_setting_route .setting_body{padding:10px 18px}.fcom_setting_route .setting_body .setting_header{border-bottom:1px solid var(--fcom-primary-border);display:flex;justify-content:space-between}.fcom_setting_route .setting_body .setting_header h2{font-size:18px;color:var(--fcom-primary-text, #19283a)}.fcom_setting_route .setting_body .setting_item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 0;border-bottom:1px solid var(--fcom-primary-border)}@media (max-width: 768px){.fcom_setting_route .setting_body .setting_item{flex-direction:column;align-items:flex-start;gap:5px;padding:10px 0}}.fcom_setting_route .setting_body .setting_item:first-child{padding-top:0}.fcom_setting_route .setting_body .setting_item:last-child{border-bottom:none}.fcom_setting_route .setting_body .setting_field_placeholder .title{font-size:16px;color:var(--fcom-primary-text, #19283a);font-weight:500}.fcom_setting_route .setting_body .setting_field_placeholder .recommend_plugin{display:flex}.fcom_setting_route .setting_body .setting_field_placeholder .recommend_plugin .avatar{margin-right:15px}.fcom_setting_route .setting_body .setting_field_placeholder .recommend_plugin a{color:var(--fcom-primary-text, #19283a);text-decoration:none}.fcom_setting_route .setting_body .setting_field_placeholder .recommend_plugin a:hover{text-decoration:underline}.fcom_setting_route .setting_body .setting_field_placeholder .info{font-size:14px;color:var(--fcom-menu-text);font-weight:400}.fcom_setting_route .setting_body .align-right{display:flex;justify-content:flex-end}.fcom_setting_route .ffcom_settings_tabs .el-tabs__nav-wrap .ffcom_settings_tab_label{text-decoration:none;color:var(--fcom-feed-text-light);font-size:14px;font-weight:500}.fcom_setting_route .ffcom_settings_tabs .el-tabs__nav-wrap .is-active .ffcom_settings_tab_label{text-decoration:none;color:var(--fcom-menu-text);font-size:14px;font-weight:500}.fcom_setting_route .ffcom_settings_tabs .el-tabs__nav-wrap:after{height:1px}.fcom_setting_route .ffcom_settings_tabs .el-tabs__nav-wrap .el-tabs__active-bar{background:var(--fcom-menu-text)}.fcom_storage_setting .storage_menu .menu_label{color:var(--fcom-primary-text, #19283a);font-weight:400;margin-bottom:5px}.fcom_storage_setting .storage_menu .menu_options{display:flex;padding:5px 6px;border-radius:8px;justify-content:space-between;background:var(--fcom-bg-weak)}.fcom_storage_setting .storage_menu .menu_options .menu_options_item{padding:3px 20px;border-radius:8px;cursor:pointer}.fcom_storage_setting .storage_menu .menu_options .active{background:var(--fcom-primary-bg)}.fcom_storage_setting .local_info{display:flex;align-items:center;padding:7px 8px;border:1px solid var(--fcom-primary-border);border-radius:8px;margin:10px 0}.fcom_screen_editor{margin-top:-16px}.fcom_screen_editor .fcom_screen_editor_side{padding:32px 20px 20px;border-left:1px solid var(--fcom-primary-border)}.fcom_screen_editor .el-row{margin-bottom:16px}.fcom_screen_editor .el-row .el-col{padding-left:24px!important;padding-right:0!important}.fcom_full_editor_main.auth_editor .fcom_editor_content{display:flex;background:var(--fcom-primary-bg, #f8f8f8);min-height:calc(100vh - 125px);border-radius:8px}.fcom_full_editor_main.auth_editor .fcom_editor_content .fcom_auth_wrap{flex:1;display:flex;align-items:center;background-size:cover;background-position:center;background-blend-mode:multiply}.fcom_full_editor_main.auth_editor .fcom_editor_content .fcom_auth_wrap .fcom_auth_content{padding:20px;text-align:center;margin:0 auto;min-width:400px;max-width:600px}.fcom_full_editor_main.auth_editor .fcom_editor_content .fcom_auth_wrap .fcom_auth_content.form_content{text-align:left}.fcom_full_editor_main.auth_editor .fcom_editor_content .fcom_auth_wrap .fcom_auth_content .el-input__wrapper{background:transparent}.fcom_full_editor_main.auth_editor .fcom_editor_content .fcom_auth_wrap .fcom_auth_content .fcom_auth_form_header{display:flex;align-items:center;flex-direction:column;margin-bottom:30px}.fcom_full_editor_main.auth_editor .fcom_editor_content .fcom_auth_wrap .fcom_auth_content .fcom_auth_image img{max-width:200px;max-height:80px}.fcom_full_editor_main.auth_editor .fcom_editor_content .fcom_auth_wrap .fcom_auth_content .fcom_auth_title h2{font-size:24px;margin:8px 0;line-height:1.2}.fcom_full_editor_main.auth_editor .fcom_editor_content .fcom_auth_wrap .fcom_auth_content .fcom_auth_title h2:focus{outline:none}.fcom_full_editor_main.auth_editor .fcom_editor_content .fcom_auth_wrap .fcom_auth_content .fcom_auth_description p{margin:0}.fcom_full_editor_main.auth_editor .fcom_editor_content .fcom_auth_wrap .fcom_auth_content .el-form-item__label{display:block}.fcom_full_editor_main.auth_editor .fcom_editor_content .fcom_auth_wrap .fcom_auth_content .el-button{border-radius:8px}.fcom_full_editor .fcom_full_editor_side.auth_editor .el-form-item__content .fcom_bg_upload .el-upload .el-image{width:auto!important}.fcom_full_editor .fcom_full_editor_side .ProseMirror{box-shadow:0 0 0 .5px var(--fcom-secondary-border) inset;border-radius:8px}.fcom_notice{background:var(--fcom-highlight-bg, #E6A23C);padding:10px 15px;margin-bottom:20px;border-radius:5px;border:1px solid var(--fcom-secondary-border)}.fcom_wrap{position:relative;display:block;width:100%}.feeds_main h1,.feeds_main h2,.feeds_main h3,.feeds_main h4,.feeds_main h5,.fcom_search_welcome h1,.fcom_search_welcome h2,.fcom_search_welcome h3,.fcom_search_welcome h4,.fcom_search_welcome h5{color:var(--fcom-primary-text, #606266)}.feed_layout .feeds{width:680px;margin:0 auto}.feed_layout .feeds.fcom_2_col_main{width:100%;display:flex;gap:2rem;margin:0 auto;padding:2rem;justify-content:center}.feed_layout .feeds.fcom_2_col_main .feeds_main{max-width:680px;width:100%}.feed_layout .feeds.fcom_single_layout{width:100%;background:var(--fcom-secondary-bg, #f0f0f1);position:relative}.feed_layout .feeds.fcom_single_layout .fhr_content_layout{display:block;width:100%;max-width:100%;margin-top:0}.feed_layout .feeds.fcom_single_layout .fhr_content_layout .fhr_content_layout_header .fcom_edit_course{margin:5px;padding:2px 10px;font-size:12px;border-radius:8px;border:1px solid var(--fcom-secondary-border)}.feed_layout .feeds.fcom_single_layout .fhr_content_layout .fhr_content_layout_body{max-width:680px;margin:2rem auto}.feed_layout .feeds.fcom_single_layout .fhr_content_layout .fhr_content_layout_body .fcom_course_members .fcom_course_member_header{margin:1rem 0;display:flex;justify-content:space-between}.feed_layout .feeds.fcom_single_layout .fhr_content_layout .fhr_content_layout_body .fcom_course_members .fcom_course_member_header h3{font-size:1.2rem}.feed_layout .feeds.fcom_single_layout .fhr_content_layout .fhr_content_layout_body .fcom_course_members .fcom_course_member_header .fcom_course_member_actions{gap:1rem;display:flex}.feed_layout .feeds.fcom_single_layout .fhr_content_layout .fhr_content_layout_body .fcom_course_members .fcom_course_member_header .fcom_course_member_actions .fcom_primary_button{height:95%}.feed_layout .feeds.fcom_single_layout .fhr_content_layout .fhr_content_layout_body .fcom_course_members .el-table .el-table__inner-wrapper .el-table__body-wrapper .el-table__row .el-icon{cursor:pointer}.feed_layout .feeds.fcom_single_layout.fcom_max_layout .fhr_content_layout_body{max-width:1080px;padding:0 2rem 2rem}.feed_layout .feeds.fcom_single_layout.fcom_full_layout .fhr_content_layout_body{max-width:100%;padding:0;margin:0}.feed_layout .feeds .el-radio-button .el-radio-button__inner:hover{color:var(--fcom-primary-button, #2B2E33)}.feed_layout .feeds .el-radio-button.is-active .el-radio-button__inner{color:var(--fcom-primary-bg, #FFFFFF);background:var(--fcom-primary-button, #2B2E33);border-color:var(--fcom-primary-button, #2B2E33)}.feed_layout .feeds .el-radio-button.is-active .el-radio-button__inner:hover{opacity:.8}.feed_layout .feeds .app_side_widgets{width:320px}ul.fcom_user_lists{margin:0;padding:0}ul.fcom_user_lists li{display:flex;align-items:center;justify-content:flex-start;margin-bottom:10px;column-gap:10px}ul.fcom_user_lists li img{width:20px;height:20px}.object_header{margin-bottom:10px;display:block;width:100%}.object_header .object_cover{width:100%;background-size:cover;background-repeat:no-repeat;background-color:var(--fcom-active-bg, #FFFFFF);background-position:center center;aspect-ratio:3.2/1;position:relative;border-radius:15px}.object_header .object_cover.no_cover{aspect-ratio:5.2/1;background:var(--fcom-bg-soft-200, #E1E4EA)}.object_header .object_cover .object_media_uploader{position:absolute;right:5px;top:5px;display:none}.object_header .object_cover:hover .object_media_uploader{display:block}.object_header.user_header .object_cover{border-bottom-left-radius:0;border-bottom-right-radius:0}.object_header .object_info{display:flex;margin-top:0;column-gap:15px;align-items:center;background:var(--fcom-primary-bg, white);padding:10px 15px}.object_header .object_info .object_avatar{position:relative}.object_header .object_info .object_avatar img{width:64px;max-width:64px;border-radius:5px;aspect-ratio:1/1;object-fit:cover}.object_header .object_info .object_name{color:var(--fcom-primary-text, #19283a);text-align:left}.object_header .object_info .object_name h3{margin:0;padding:0;font-size:1.5rem;line-height:1.2}.object_header .object_info .object_name .object_meta{margin:0;color:var(--fcom-text-off, #959595);font-size:.7rem}.object_header .object_avatar_uploader{position:absolute;left:5px;bottom:5px}.object_header.space_header .object_avatar_uploader{left:0;bottom:0}.object_header.space_header .object_avatar_uploader i{color:#2196f3}.object_header.user_header .object_info .object_avatar img{width:128px;max-width:128px;border-radius:50%;margin-top:-60px;position:relative;border:3px solid white}.object_header.user_header .object_info{padding:0 15px 10px}.object_menu{padding:0;display:flex;align-items:center;justify-content:space-between;gap:4px}.object_menu ul{padding:0;margin:0;list-style:none;overflow:hidden}.object_menu ul.fcom_space_menu_ul{display:flex;align-items:center;gap:4px}.object_menu ul li{display:inline-block;margin:0;padding:0 5px 0 0}.object_menu ul li a{display:flex;text-decoration:none;color:var(--fcom-menu-text, #545861);padding:6px 12px;border-radius:8px;cursor:pointer}.object_menu ul li a:hover{background:var(--fcom-active-bg, #f0f3f5);color:var(--fcom-menu-text-active, var(--fcom-menu-text, #545861))}.object_menu ul li a.router-link-exact-active{color:var(--fcom-menu-text-active, var(--fcom-menu-text, #545861));background:var(--fcom-active-bg, #f0f3f5)}.user_header{text-align:right}.user_header .object_menu{background:var(--fcom-primary-bg, white);padding:12px 15px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;border-top:1px solid var(--fcom-primary-border, #e3e8ee)}.user_header .object_menu ul{display:flex;flex-wrap:wrap}.space_lock_box{padding:3rem 1rem;text-align:center;border-radius:10px;background:var(--fcom-primary-bg, white);border:1px solid var(--fcom-primary-border);margin:0 0 20px}.space_lock_box .el-icon{font-size:3rem;color:var(--fcom-text-off, #959595)}.fluent_com{min-height:100vh}.fhr_wrap{hyphenate-character:""}.fhr_wrap img{margin:0}.fcom_composer_apps{display:flex}.fcom_composer_apps .el-button.is-text{padding:5px;margin:0 2px;color:var(--fcom-secondary-text, #959595)}.fcom_composer_actions{display:flex;align-items:center;gap:20px}.fhr_content_layout{max-width:1000px;margin:0 auto}.fcom_linked_menus a{color:#697386;text-decoration:none}.fhr_content_layout_body{background-color:var(--fcom-primary-bg, #fff);border:1px solid var(--fcom-primary-border, #e3e8ee);border-top:0;clear:both;margin:0;padding:15px;width:auto}.fhr_content_layout_body.no_bg_layout{padding:0;border:none;background:transparent}.no_bg_layout .fhr_content_layout_body{background:transparent;border:none;padding:15px 0}.no_bg_layout.custom_lockscreen.fhr_content_layout .fhr_content_layout_body{max-width:100%!important;padding:0!important;margin:0!important}.no_bg_layout.custom_lockscreen.fhr_content_layout .fhr_content_layout_body .fcom_main_container{padding-top:0}.no_bg_layout.custom_lockscreen.fhr_content_layout .fcom_feed_box{max-width:100%}.fcom_custom_lockscreen .fcom_lockscreen_content .fcom_item{background:var(--fcom-primary-bg, #f8f8f8)}.fcom_custom_lockscreen .fcom_lockscreen_content .fcom_item .fcom_image_wrap{padding:3rem 0;display:flex;flex-direction:column;align-items:center;background-size:cover;background-position:center;background-blend-mode:multiply}.fcom_custom_lockscreen .fcom_lockscreen_content .fcom_item .fcom_image_wrap .fcom_content{text-align:center}.fcom_custom_lockscreen .fcom_lockscreen_content .fcom_item .fcom_image_wrap .fcom_content .fcom_btn{cursor:pointer;display:inline-block;text-decoration:none;padding:6px 12px;font-size:.875rem;font-weight:600;border-radius:4px;border:none}.fcom_custom_lockscreen .fcom_lockscreen_content .fcom_item .fcom_content_wrap{margin:0 auto;padding:2rem 1rem;max-width:800px}.fcom_custom_lockscreen .fcom_lockscreen_content .fcom_item .fcom_content_wrap img{max-width:100%}.fc_date_parts_picker{display:flex;gap:10px}.fc_date_parts_picker>div{max-width:100px}.fc_date_parts_picker>div p{margin:0;font-size:10px;padding-left:10px;color:#7d7f82}.pagination_wrap{margin-top:15px;display:flex;align-items:center;justify-content:flex-end}header.el-drawer__header{border-bottom:1px solid var(--fcom-primary-border, #e3e8ee);clear:both;color:var(--fcom-primary-text, #19283a);padding-bottom:15px;margin-bottom:10px}header.el-drawer__header h4{margin:0}.el-button.fcom_primary_button{border-radius:8px;color:var(--fcom-primary-button-text, var(--fcom-primary-bg, #FFFFFF));background:var(--fcom-primary-button, #2B2E33);border:1px solid var(--fcom-primary-button, #2B2E33)}.el-button.fcom_primary_button:hover{opacity:.8;color:var(--fcom-primary-button-text, var(--fcom-primary-bg, #FFFFFF));background:var(--fcom-primary-button, #2B2E33);border:1px solid var(--fcom-primary-button, #2B2E33)}.el-button.fcom_primary_button.link_button{color:var(--fcom-primary-bg, #FFFFFF)}.el-button.fcom_secondary_button{border-radius:8px;color:var(--fcom-primary-text, #FFFFFF);background:var(--fcom-primary-bg, #FFFFFF);border:1px solid var(--fcom-secondary-border, #2B2E33)}.el-button.fcom_secondary_button:hover{opacity:.8;background:var(--fcom-secondary-bg, #FFFFFF);border:1px solid var(--fcom-secondary-border, #2B2E33)}.el-button.fcom_secondary_button.el-button--text{border:none}.el-button.fcom_secondary_button.el-button--text:hover{color:inherit;opacity:.8}.el-button.fcom_plain_button{width:max-content;font-size:14px;font-weight:350;text-decoration:none;padding:6px 8px;border:1px solid var(--fcom-primary-border);border-radius:8px;color:#909090;background:transparent;cursor:pointer}.el-button.fcom_plain_button:hover{border-color:var(--fcom-primary-text, #19283a);background-color:transparent}.el-button.fcom_plain_button .el-icon{display:block}.el-button.fcom_dot_menu{border-radius:8px}.el-button.fcom_dot_menu .el-icon svg{transform:rotate(90deg)}.el-button.fcom_dot_menu.edit_action{margin-left:0;padding:3px}.el-link.fcom_link_button{color:var(--fcom-text-link, #2078f4)}.el-button.fcom_button_success{border-radius:8px;color:#67c23a!important;background-color:#dcfce7!important}.el-button.fcom_button_info{border-radius:8px;color:#909399!important}.el-button.el-button--small,.el-button.is-text{border-radius:8px}.el-icon.user_reacted svg{color:#fb3748}.el-input.el-input-group .el-input-group__prepend{background:var(--fcom-primary-bg, #fff);border-top-left-radius:8px;border-bottom-left-radius:8px}.el-input.el-input-group .el-input-group__append{border-top-right-radius:8px;border-bottom-right-radius:8px}.el-input .el-input__wrapper{border-radius:8px;padding:4px 12px;box-shadow:0 0 0 .5px var(--fcom-secondary-border) inset}.el-textarea .el-textarea__inner{border-radius:8px}.el-select .el-select__wrapper{min-height:32px;border-radius:8px;box-shadow:0 0 0 .5px var(--fcom-secondary-border) inset}.el-select.fcom_select .el-select__wrapper{min-height:38px}.el-select.fcom_minimal_select{cursor:pointer;max-width:120px;padding-left:10px}.el-select.fcom_minimal_select:hover .el-select__wrapper{box-shadow:none!important}.el-select.fcom_minimal_select .el-select__wrapper{background:transparent;border:none;box-shadow:none;padding:0;box-shadow:none!important}.el-select.fcom_minimal_select .el-select__wrapper.is-focus{box-shadow:none!important}.el-select.fcom_minimal_select .el-select__wrapper .el-select__selection .el-select__selected-item{font-size:14px;font-weight:500;color:var(--fcom-primary-text)}.el-select.fcom_minimal_select .el-select__wrapper .el-select__caret{color:var(--fcom-primary-text);margin-left:0}.el-select.fcom_minimal_select.fcom_off_color .el-select__wrapper .el-select__caret,.el-select.fcom_minimal_select.fcom_off_color .el-select__wrapper .el-select__selection .el-select__selected-item{font-size:12px;color:var(--fcom-text-off)}.el-radio-group.fcom_radio_group .el-radio .el-radio__input.is-checked .el-radio__inner:after{width:6px;height:6px}.el-popover.el-popper{border-radius:8px!important}.fcom_concat_buttons button{margin:0!important}.fcom_concat_buttons button.el-button--small{padding:6px}.fcom_drag_handle{cursor:move}.fhr_secondary_menu ul{list-style:none;margin:0 0 10px;padding:0;background:white}.fhr_secondary_menu ul li{display:inline-block;padding:13px 15px;margin:0;cursor:pointer}.fhr_secondary_menu ul li.hr_menu_active{color:#007eff;background:#f8fafc}.fhr_secondary_menu ul li:hover{color:#007eff}.dashboard_actions{background:#ffff8f;padding:15px 20px;border-radius:5px}.dashboard_actions h4{margin:0 0 10px;font-size:1.2rem}.dashboard_actions ul{list-style:disc;margin-left:30px}.fhr_secondary_menu{max-width:1000px;margin:20px auto 0}.el-select .el-input__inner{background:transparent;border:0}.el-select .el-input__inner:focus{box-shadow:none}.el-select{width:100%}.rich_select .el-select-dropdown__item{height:auto;line-height:1.1;padding:10px}.rich_select .el-select-dropdown__item p{margin:0;color:var(--el-text-color-secondary);font-size:13px}.feed_filters{margin-bottom:10px;display:flex;align-items:center;justify-content:flex-end}.feed_filters .fcom_feed_divider{flex:1;height:1px;opacity:.5;margin-right:10px;background:var(--fcom-secondary-border)}.feed_filters .fcom_feed_filter_label{font-size:14px;line-height:20px;color:var(--fcom-secondary-text)}.el-select.plain_select .el-input .el-input__inner,.el-select.plain_select .el-input .el-input__wrapper{background:transparent;border:none}.plain_select .el-select-dropdown__item{padding:0 15px;height:30px;line-height:30px;margin-bottom:0}.feed_layout .feeds.wide_wrap{width:100%}.feed_layout .feeds.wide_wrap .feeds_main{padding-left:10px}.feed_layout .feeds.wide_wrap .feeds_main .settings_menu{margin-left:-10px}.el-notification__content{text-align:left!important}.el-pager li{margin:0}.fcom_space_container.el-container{padding-top:20px;column-gap:30px}.fcom_space_container.el-container .el-main{padding:0}.fcom_space_container.el-container .el-main .fcom_feed_box{margin:0}.fcom_space_container.el-container .el-main .fcom_feed_box.fcom_hide_space_sidebar{margin:0 auto}.fcom_no_image{background:#dddddd;border-radius:8px;width:64px;height:64px}.fcom_full_form_item .el-form-item__content{display:block}.el-form .el-form-item__label{font-weight:700}.fcom_block_editor .edit-post-header{height:auto}.app_side_widget{display:block;overflow:hidden;background:var(--fcom-primary-bg, white);border-radius:8px;padding:15px;margin-bottom:20px}.app_side_widget .widget_header{display:flex;align-items:center;justify-content:space-between}.app_side_widget .widget_header h3{font-size:1rem}.about_wrap{display:block;background:var(--fcom-primary-bg, white);color:var(--fcom-menu-text, #545861);border-radius:5px;padding:20px;margin-bottom:20px}.about_wrap .about_header{display:flex;align-items:center;justify-content:space-between}.about_wrap .about_header h3{font-size:1rem}.about_wrap .about_body .about_items{display:flex;flex-direction:column;gap:8px;padding-top:20px}.about_wrap .about_body .about_items .items_title{font-size:14px;font-weight:500;color:var(--fcom-primary-text, #606266)}.about_wrap .about_body .about_items .about_item{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--fcom-menu-text, #545861);text-decoration:none}.about_wrap .about_body .about_items .about_item .el-icon{font-size:16px}a.el-button{text-decoration:none}.fhr_page_actions{display:flex;align-items:center;gap:10px}span.fcom_verified svg{width:16px;height:16px;vertical-align:middle;fill:#1d9bf0;opacity:.7}span.fcom_verified svg:hover{opacity:1}.widget_recent_activities span.fcom_user_name,.widget_recent_activities .fcom_feed_excerpt{font-weight:500}.widget_recent_activities .notification_content{line-height:1.2}.fcom_notice_wrap{background:var(--fcom-highlight-bg, #fffce3);padding:10px 15px;margin-bottom:20px;border-radius:8px;border:1px solid var(--fcom-primary-border);color:var(--fcom-primary-text, #19283a)}.el-notification.right{bottom:10px;top:unset!important}.fcom_create_status_box{flex-grow:1;min-width:0}.fcom_create_status_box .fcom_post_actions{display:flex;align-items:center}.fcom_create_status_box .fcom_post_actions .target_label{color:var(--fcom-secondary-text);font-size:90%}.fcom_create_status_box .fcom_post_actions .fcom_primary_button{margin-left:10px}@media (max-width: 425px){.fcom_create_status_box .fcom_composer_footer{flex-direction:column;gap:5px;align-items:flex-start}}.fcom_mention_pop_wrap{position:relative;width:100px;display:inline-block;height:0;position:absolute}.fcom_mention_pop{max-height:250px;overflow-y:auto}.fcom_mention_pop ul{list-style:none;padding:0;margin:0}.fcom_mention_pop ul li{cursor:pointer;padding:7px 10px;display:flex;align-items:center;flex-direction:row;gap:6px}.fcom_mention_pop ul li img{width:30px;height:30px;border-radius:50%}.fcom_mention_pop ul li:hover{background:#4e4e4e}a.fcom_mention{text-decoration:none;font-weight:500}.fcom_status_img_icon{width:24px;height:24px;cursor:pointer;opacity:.7}.fcom_status_img_icon:hover{opacity:1}.fcom_composer_footer{margin-top:15px;display:flex;align-items:center;justify-content:space-between}.fcom_composer_footer .fcom_composer_apps .el-button{border-radius:8px}.fcom_composer_footer .fcom_composer_apps .el-icon{font-size:20px}.unread_notifications .notifications{max-height:50vh;overflow-y:auto;overflow-x:hidden}span.fcom_nft{font-weight:500}.fcom-no-scroll{overflow:hidden}.fcom_no_border_input{text-align:left;width:100%}.fcom_no_border_input .el-input__wrapper{all:unset;background:transparent;border:none;box-shadow:none;width:100%}.fcom_no_border_input input{all:unset;border:none;box-shadow:none;width:100%;color:#000}.fcom_input_h1{font-size:22px}.is-vertical .block-list-appender{width:auto!important}.fcom_media_embeder{padding:60px 30px;text-align:center;margin:20px 0;border:2px dashed var(--fcom-primary-border, #d2d7db);border-radius:8px;background:var(--fcom-secondary-bg, #f0f3f5)}.fcom_course_media{position:relative;margin:20px 0}.fcom_course_media .feed_media{margin:0}.el-notification,.el-popper{z-index:9999999999!important}.fcom_radio_blocks{display:flex;flex-direction:column;align-items:flex-start}.fcom_radio_blocks>div{margin-left:0}.fcom_meta_section{margin-bottom:20px;border-bottom:1px solid var(--fcom-secondary-border, #e5e7eb);padding-bottom:10px}.fcom_meta_section:last-child{border-bottom:none}.fcom_meta_section.lockscreen_meta{border-bottom:none;margin-bottom:1rem;padding-bottom:.25rem}.fcom_meta_section.lockscreen_meta .fcom_meta_label{color:var(--fcom-menu-text, #545861);line-height:1.5;font-weight:600;font-size:1.125rem;margin-bottom:1rem}.fcom_meta_section.lockscreen_meta .fcom_meta_content{margin-top:1rem}.fcom_meta_section.lockscreen_meta .fcom_meta_content ul.fcom_meta_block{gap:.5rem;display:flex;flex-direction:column}.fcom_meta_section.lockscreen_meta .fcom_meta_content ul.fcom_meta_block li.fcom_block_list{cursor:pointer;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--fcom-primary-border, #e3e8ee);border-radius:6px;padding:6px 12px;position:relative}.fcom_meta_section.lockscreen_meta .fcom_meta_content ul.fcom_meta_block li.fcom_block_list:hover .fcom_meta_sorting{transform:translate(-50%) scale(1)}.fcom_meta_section.lockscreen_meta .fcom_meta_content ul.fcom_meta_block li.fcom_block_list .fcom_meta_sorting{position:absolute;display:flex;align-items:center;gap:4px;left:50%;transform:translate(-50%) scale(0);bottom:-8px;transition:.3s}.fcom_meta_section.lockscreen_meta .fcom_meta_content ul.fcom_meta_block li.fcom_block_list .fcom_meta_sorting i{background:var(--fcom-active-bg, #f0f2f5);border:1px solid var(--fcom-primary-border, #e3e8ee);border-radius:4px;cursor:pointer;height:18px;text-align:center;transition:.3s;width:18px;font-size:10px;display:flex;align-items:center;justify-content:center}.fcom_meta_section.lockscreen_meta .fcom_meta_content ul.fcom_meta_block li.fcom_block_list .fcom_meta_sorting i:hover{border-color:#19283a}.fcom_meta_section.lockscreen_meta .fcom_meta_content ul.fcom_meta_block li.fcom_block_list .fcom_block_label{display:flex;align-items:center;gap:8px}.fcom_meta_section.lockscreen_meta .fcom_meta_content ul.fcom_meta_block li.fcom_block_list .fcom_block_label p{margin:0}.fcom_meta_section.lockscreen_meta .fcom_meta_content ul.fcom_meta_block li.fcom_block_list .fcom_block_action{display:flex;visibility:hidden;gap:8px}.fcom_meta_section.lockscreen_meta .fcom_meta_content ul.fcom_meta_block li.fcom_block_list.block_hidden{opacity:.6;background-color:var(--fcom-active-bg, #f0f2f5)}.fcom_meta_section.lockscreen_meta .fcom_meta_content ul.fcom_meta_block li.fcom_block_list:hover .fcom_block_action{visibility:visible}.fcom_meta_section .fcom_meta_label{font-weight:500;color:var(--fcom-menu-text, #545861);margin-bottom:5px}.fcom_length_input{display:flex;gap:10px}.fcom_length_input .el-input-group__append{padding:0 5px}.fcom_lockscreen_meta .fcom_description{padding:1rem;font-size:16px;color:var(--fcom-primary-text, #19283a);background-color:var(--fcom-active-bg, #f0f3f5);border-radius:8px;margin-top:14px;margin-bottom:1.5rem}.fcom_lockscreen_meta .fcom_description p{margin:0}.fcom_lockscreen_meta .fcom_color_item{display:flex;align-items:center;column-gap:10px;margin:0 -10px;padding:10px;border-bottom:1px solid #f0f2f5}.fcom_lockscreen_meta .fcom_color_item:hover .fcom_tip{opacity:1}.fcom_lockscreen_meta .fcom_color_item .fcom_color_label{color:var(--fcom-primary-text, #19283a);font-size:14px;font-weight:700;height:auto;line-height:22px;text-align:left;vertical-align:middle}.fcom_lockscreen_meta .fcom_color_item .el-color-picker__trigger,.fcom_lockscreen_meta .fcom_color_item .el-color-picker__trigger .el-color-picker__color{border:none}.fcom_lockscreen_meta .fcom_color_item .el-color-picker__trigger .el-color-picker__color .el-color-picker__color-inner{border:1px solid var(--fcom-primary-border, #e3e8ee);border-radius:50%}.fcom_lockscreen_meta .fcom_color_item .fcom_tip{opacity:.2}.fcom_section_primary_item_title,.fcom_heading_item{display:flex;align-items:center;gap:.5rem}.clickable{cursor:pointer;-webkit-user-select:none;user-select:none}.fcom_meta_text{font-size:12px;color:#7d7f82}.fcom_back_space{padding:15px 20px;border-bottom:1px solid var(--fcom-primary-border, #e3e8ee);display:flex;min-height:55px;justify-content:space-between;align-items:center;top:0;position:sticky;background:var(--fcom-primary-bg, white);z-index:99;flex-wrap:wrap;gap:10px}.fcom_back_space .fcom_go_back{display:flex;align-items:center;gap:5px}.components-popover{z-index:9999999999!important}.fcoml_tooltip_popover{border-radius:8px!important;padding:1rem 1.5rem!important;box-shadow:#0e121659 0 10px 38px -10px,#0e121633 0 10px 20px -15px!important}.fcoml_tooltip_popover .fcoml_tooltip_content .fcoml_tooltip_title{font-size:16px;font-weight:500}.fcoml_tooltip_popover .fcoml_tooltip_content .fcoml_tooltip_subtitle{font-size:14px;font-weight:500}.fcoml_tooltip_popover .fcoml_tooltip_content .fcoml_tooltip_desc{font-size:14px;font-weight:400;line-height:20px}.fcoml_tooltip_popover .fcoml_tooltip_content .fcoml_tooltip_levels{display:flex;justify-content:space-between}.fcoml_tooltip_popover .fcoml_tooltip_content .fcoml_tooltip_levels .levels_list{display:flex;flex-direction:column;gap:8px}.fcoml_tooltip_popover .fcoml_tooltip_content .fcoml_tooltip_levels .levels_list .level_item{display:flex;flex-direction:column;gap:4px}.fcoml_tooltip_popover .fcoml_tooltip_content .fcoml_tooltip_levels .levels_list .level_item .level_points{color:#99a0ae}.fcom_main_container{position:relative}.fcom_main_container .fcom_main_side{position:sticky;top:50px;margin-right:20px;background:transparent;padding-top:20px}.fcom-pagination{display:flex;justify-content:right;margin-top:20px}.table_user_card{display:flex;align-items:flex-start;gap:10px}.table_user_card .card_info{line-height:100%}.table_user_card img{width:40px;height:40px;border-radius:50%;aspect-ratio:1/1;object-fit:cover}.focm_menu_item{display:flex;align-items:center;gap:5px;text-decoration:none;justify-content:center}.fcom_clickable_hover{cursor:pointer}.fcom_clickable_hover:hover{opacity:.8}.fcom_social_links{display:flex;width:100%;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;margin-top:20px}.fcom_social_links a{text-decoration:none;padding:5px 10px;border:1px solid transparent;color:#909090}.fcom_social_links a:hover{border-radius:5px;color:#202124;background-color:#e4e4e4}.fcom_user_avatar{display:flex;align-items:center;justify-content:center;position:relative}.fcom_user_avatar span{line-height:0}.fcom_user_avatar .fcom_user_level_mark{position:absolute;right:calc(12.5% - 9px);bottom:calc(12.5% - 5px);line-height:0;background:rgb(67,87,173);width:16px;height:16px;font-size:9px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;border:1px solid white}.fcom_user_avatar.fcom_avatar_is_rounded img{border-radius:50%;aspect-ratio:1/1;object-fit:cover}.fcom_profile_pop .fcom_user_avatar img{width:100px;border:3px solid #ffffff}.fcom_profile_pop .fcom_user_avatar .fcom_user_level_mark{width:30px;height:30px;font-size:14px;font-weight:700;bottom:calc(12.5% - 4px);right:calc(12.5% - 16px);border-width:2px}.fcom_profile_pop .fcom_profile_pop_info .user_route{font-size:20px}.fcom_profile_pop .fcom_profile_pop_avatar{text-align:center}.fcom_profile_pop .fcom_profile_pop_avatar .fcom_user_avatar{display:inline-block;position:relative}.fcom_profile_pop .meta_line{margin:10px 0}.fcom_profile_pop .fcom_user_name{font-size:12px;font-weight:500;text-decoration:none;margin-bottom:10px;color:#959595}.fcom_profile_pop .fcom_profile_pop_bio,.fcom_profile_pop .fcom_prfile_tagline{margin:10px 0}.fcom_profile_pop .fcom_prfile_tagline .fcom_level_name{font-size:14px;color:#3875df}.fcom_input_group{margin-bottom:20px}.fcom_input_group .fcom_label{display:block;margin-bottom:8px;font-weight:700}.el_inline_date_picker .el-date-editor{display:none!important}.el_inline_date_picker .el_inline_date_picker_box.el-picker__popper.el-popper{display:inline-block!important;position:static!important;box-shadow:none}.el_inline_date_picker .el_inline_date_picker_box.el-picker__popper.el-popper .el-popper__arrow{display:none}.fcom_locked_container{margin:50px auto;padding:150px 20px;text-align:center;background:var(--fcom-active-bg, #f0f2f5);border-radius:5px;border:1px solid var(--fcom-primary-border, #e3e8ee)}.settings_router .fhr_content_layout_body{background:var(--fcom-primary-bg, #f0f0f1);padding:0!important;border:1px solid var(--fcom-primary-border);margin:0!important;border-radius:10px}.settings_router .fhr_content_layout_body .setting_body{padding:20px}.settings_router .fhr_content_layout_body .setting_header{padding:10px 18px;border-bottom:1px solid var(--fcom-primary-border);display:flex;justify-content:space-between}.settings_router .fhr_content_layout_body .setting_header h2{font-size:18px;color:var(--fcom-primary-text)}.settings_router .fhr_content_layout_body .settings_title{margin:0;font-size:16px;font-weight:500;color:var(--fcom-primary-text, #606266)}.settings_router .fhr_content_layout_body .settings_subtitle{font-size:14px;color:var(--fcom-secondary-text, #959595)}.settings_router .fhr_content_layout_body .settings_img{width:auto;max-height:40px;margin-right:8px}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row{display:flex;align-items:center;margin:0!important;padding:16px 0;border-bottom:1px solid var(--fcom-primary-border, #e3e8ee)}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row:first-child{padding-top:0}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col{padding:4px 0!important}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item{margin:0}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-input.el-input-group--append .el-input__wrapper{background:transparent;border-top-right-radius:0;border-bottom-right-radius:0}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-input .el-input__wrapper{padding:4px 12px;border-radius:8px}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-input .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--fcom-primary-button, #2B2E33) inset}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-input .el-input-group__append{cursor:pointer;border-top-right-radius:8px;border-bottom-right-radius:8px}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-input .el-input-group__append .el-icon{font-weight:400;margin-right:4px}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-input .el-input-group__append span{font-weight:400}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-checkbox.is-checked .el-checkbox__label{color:var(--fcom-primary-text, #606266)}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-checkbox.is-checked .el-checkbox__inner{border-color:var(--fcom-primary-button, #2B2E33);background-color:var(--fcom-primary-button, #2B2E33)}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-checkbox.is-checked .el-checkbox__inner:after{border-color:var(--fcom-primary-bg, #FFFFFF)}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-checkbox:hover .el-checkbox__inner{border-color:1px solid var(--fcom-primary-button, #2B2E33)}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-textarea .el-textarea__inner{padding:4px 12px;border-radius:8px}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-textarea .el-textarea__inner:focus{box-shadow:0 0 0 1px var(--fcom-primary-button) inset}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-radio.is-checked .el-radio__label{color:var(--fcom-primary-text, #606266)}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-radio.is-checked .el-radio__inner{border-color:var(--fcom-primary-button, #2B2E33);background-color:var(--fcom-primary-button, #2B2E33)}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-radio.is-checked .el-radio__inner:after{width:6px;height:6px;background-color:var(--fcom-primary-bg, #FFFFFF)}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-radio:hover .el-radio__inner{border-color:1px solid var(--fcom-primary-button, #2B2E33)}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .el-radio-group{display:flex;flex-direction:column;align-items:flex-start}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .setting_img_upload .el-upload .el-button{padding:4px 12px;border-radius:8px}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .setting_img_upload .el-upload .el-button:hover{background:transparent;color:var(--fcom-text-off, #959595);border:1px solid var(--fcom-primary-border, #e3e8ee)}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .remove_img{height:32px;margin-left:8px;font-size:14px;padding:4px 12px;border-radius:8px;background:transparent}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .remove_img:hover{color:var(--el-button-hover-border-color)}.settings_router .fhr_content_layout_body .el-form .el-row.setting_row .el-col .el-form-item .help_text{padding-top:6px;font-size:14px;line-height:16px}.settings_router .fhr_content_layout_body .el-form .el-row .fcom_primary_button{margin:16px 16px 0}html.dark .el-checkbox{--el-checkbox-bg-color: var(--fcom-primary-text, white)}.logo_emoji_holder{display:flex;align-items:center;gap:5px}.fcom_search_welcome{text-align:center;padding:20px}.fcom_search_welcome .el-icon{font-size:30px}.el-button.fcom_search_btn{color:var(--fcom-text-off)}.dark .el-overlay{background-color:#000000ba}.notification_pop.el-popper{max-width:90%}.fcom_search_bar_visible .el-dialog{border-radius:6px}.fcom_search_bar_visible .fcom_search_header{margin:-16px -16px 0}.fcom_search_bar_visible .fcom_search_header .el-input--large .el-input__wrapper{padding:12px 15px;border-radius:8px 8px 0 0;box-shadow:none;border-bottom:1px solid var(--fcom-primary-border, #e3e8ee)}.fcom_search_bar_visible .fcom_search_header .el-input-group__append{background:transparent;padding-right:30px;border-bottom-right-radius:0}.fcom_full_dialog{max-width:100%;width:100%;border-radius:0;box-shadow:none;min-height:calc(100vh - 100px)}.fcom_welcome_box{position:relative;max-width:680px;margin:0 auto 20px;padding:0 20px;border-radius:10px;background:var(--fcom-primary-bg, #f0f0f1);border:1px solid var(--fcom-primary-border, #e3e8ee)}.fcom_welcome_box .fcom_welcome_title{font-size:1.5rem;font-weight:600;margin:16px 0 12px;color:var(--fcom-primary-text, #606266)}.fcom_welcome_box .fcom_welcome_sub{margin:6px 0 20px}.fcom_welcome_box .fcom_welcome_sub p{margin:0}.fcom_welcome_box .fcom_welcome_cta_buttons{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;margin:10px 0 20px;gap:8px}.fcom_welcome_box .fcom_welcome_cta_buttons .el-button{margin-left:0}.fcom_welcome_box .fcom_welcome_close{position:absolute;color:var(--fcom-secondary-text);top:2px;right:2px;background-color:var(--fcom-active-bg, #f0f2f5);border:1px solid var(--fcom-primary-border, #e3e8ee);border-radius:8px}.fcom_welcome_box .fcom_welcome_close .fcom_dot_menu{padding:3px 6px}.fcom_welcome_box .el-image{border-top-left-radius:8px;border-top-right-radius:8px}.fcom_welcome_box .feed_media{border-bottom:none}.el-popper .el-radio-button .el-radio-button__inner:hover{color:var(--fcom-primary-button, #2B2E33)}.el-popper .el-radio-button.is-active .el-radio-button__inner{color:var(--fcom-primary-bg, #FFFFFF);background:var(--fcom-primary-button, #2B2E33);border-color:var(--fcom-primary-button, #2B2E33)}.el-popper .el-radio-button.is-active .el-radio-button__inner:hover{opacity:.8}li.fcom_li_separator{border-bottom:1px solid var(--el-popover-border-color)}.space_default_lock_box{max-width:980px;margin:20px auto}.fcom_route_space_members .fcom_feed_box,.fcom_route_space_invitations .fcom_feed_box{width:100%;max-width:100%}.fcom_space_form h4{font-size:16px;font-weight:600;line-height:24px;margin:0 0 20px}.fcom_space_form .el-form-item label{font-size:14px;font-weight:500;margin-bottom:6px}.fcom_space_form .el-form-item .el-form-item__content .el-input.el-input-group--prepend .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.fcom_space_form .el-form-item .el-form-item__content .el-input .el-input-group__prepend{border-top-left-radius:8px;border-bottom-left-radius:8px}.fcom_space_form .el-form-item .el-form-item__content .el-input .el-input__wrapper{padding:5px 12px;border-radius:8px}.fcom_space_form .el-form-item .el-form-item__content .el-input .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--fcom-secondary-border, #e3e8ee) inset}.fcom_space_form .el-form-item .el-form-item__content .el-textarea .el-textarea__inner{padding:5px 12px;border-radius:8px}.fcom_space_form .el-form-item .el-form-item__content .el-textarea .el-textarea__inner.is-focus,.fcom_space_form .el-form-item .el-form-item__content .el-select .el-select__wrapper.is-focused{box-shadow:0 0 0 1px var(--fcom-secondary-border, #e3e8ee) inset}.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_radio_group{display:flex;flex-direction:column;align-items:flex-start}.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_radio_group .el-radio{margin-bottom:0}.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_svg_radio_group{gap:16px;box-sizing:border-box}.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_svg_radio_group *,.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_svg_radio_group *:after,.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_svg_radio_group *:before{box-sizing:border-box}.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_svg_radio_group .fcom_svg_radio_item .el-radio{height:auto}.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_svg_radio_group .fcom_svg_radio_item .el-radio.is-checked .svg_radio_label:before{border-width:4px;border-color:var(--fcom-primary-button, #2B2E33);background:var(--fcom-primary-bg, #FFFFFF)}.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_svg_radio_group .fcom_svg_radio_item .el-radio .svg_radio_label{margin:0;display:flex;align-items:center;gap:6px}.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_svg_radio_group .fcom_svg_radio_item .el-radio .svg_radio_label:before{content:"";height:14px;width:14px;border-radius:50%;flex:none;border:1px solid var(--fcom-primary-border, #e3e8ee);display:block}.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_svg_radio_group .fcom_svg_radio_item .el-radio__input{display:none}.fcom_space_form .el-form-item .el-form-item__content .el-radio-group.fcom_svg_radio_group .fcom_svg_radio_item .el-radio__label{display:flex;flex-direction:column;gap:8px;padding-left:0}.fcom_space_form .el-form-item .el-form-item__content .el-button.plain_button{border-radius:8px;border:1px solid var(--fcom-secondary-border, #e3e8ee)}.fcom_space_form .el-form-item .el-form-item__content .el-image img{min-height:64px}.fcom_spaced_flex{display:flex;gap:10px;align-items:center;justify-content:space-between}.no_style_link{text-decoration:none;color:inherit}.fcom_lined_checkboxes>label{width:100%}.fcom_help_text{display:block;width:100%}.fcom_help_text p{font-size:13px;margin:0;color:var(--fcom-text-off, #959595)}.fcom_sub_header{background:var(--fcom-primary-bg, white);padding:0 2rem;min-height:41px;border-bottom:1px solid var(--fcom-primary-border, #e3e8ee);clear:both;color:var(--fcom-primary-text, #697386);margin:0;overflow:hidden;width:auto;display:flex;align-items:center;overflow-x:auto;max-width:calc(100vw - 280px);-ms-overflow-style:none;scrollbar-width:none}.fcom_sub_header::-webkit-scrollbar{display:none}.fcom_sub_header .object_menu{margin-left:-8px;display:block}.fcom_sub_header .object_menu ul{display:flex;overflow-x:auto;white-space:nowrap;-ms-overflow-style:none;scrollbar-width:none;padding:0;margin:0;list-style-type:none}.fcom_sub_header .object_menu ul::-webkit-scrollbar{display:none}.fcom_sub_header .object_menu ul li{zoom:1;*display: inline}.fcom_sub_header .object_menu ul a{padding:3px 8px;opacity:.9;column-gap:5px;font-size:80%;display:flex;align-items:center}.fcom_sub_header .object_menu ul a:hover{opacity:1}.user_icon_only.user_badge{font-size:100%}.user_icon_only.user_badge .user_badge_inner{background:transparent!important;border:none!important;padding:0!important;font-size:100%}.user_icon_only.user_badge .user_badge_inner img{max-width:13px}.user_badge_inner{display:flex;align-items:center;gap:4px;padding:4px 6px;border:1px solid var(--fcom-primary-border, #e3e8ee);justify-content:flex-start;flex-direction:row;font-size:80%;line-height:1;border-radius:5px}.user_badge_inner img{max-width:10px}.fcom_online{color:#706d6d;background:#77dd7b;width:10px;display:inline-block;height:10px;border-radius:50%;box-shadow:0 0 1px 1px #14a01a}.user_badge{display:inline-block;vertical-align:middle;font-size:10px;margin-left:5px}.feed_header .user_badge{margin-left:5px}.feed_header .user_badge .user_badge_inner{padding:3px 4px;border-radius:3px}.voters_list{display:flex;flex-direction:column;gap:10px;margin-top:16px}.voters_list .voter_item{display:flex;align-items:center;gap:10px}.voters_list .voter_item .voter_avatar .fcom_user_avatar{justify-content:flex-start}.voters_list .voter_item .voter_avatar .fcom_user_avatar img{width:40px;height:40px}.voters_list .voter_item .voter_info{display:flex;flex-direction:column}.voters_list .voter_item .voter_info .voter_time{font-size:12px;color:var(--fcom-secondary-text)}a.wp-block-button__link,.wp-element-button{cursor:pointer;display:inline-block;text-decoration:none;padding:6px 12px;font-size:.875rem;font-weight:600;border-radius:4px;border:none;background:var(--fcom-primary-button, #2B2E33);color:var(--fcom-primary-bg, #FFFFFF)}.fcom_top_menu a.el-badge.fcom_chat_menu{all:unset;border-radius:0;vertical-align:middle;padding:0!important;margin:0;--el-badge-bg-color: var(--el-color-danger);--el-badge-radius: 10px;--el-badge-font-size: 12px;--el-badge-padding: 6px;--el-badge-size: 18px;display:inline-block;position:relative;width:fit-content}.fcom_top_menu a.el-badge.fcom_chat_menu sup.fcomc_unread_badge{line-height:1.2;position:absolute}.fcom_top_menu a.el-badge.fcom_chat_menu sup.fcomc_unread_badge:empty{display:none}.fcom_top_menu a.el-badge.fcom_chat_menu sup.fcomc_unread_badge.fcom_has_unread{display:inline-flex}.fcom_mobile_menu .focm_menu_item{position:relative}.fcom_mobile_menu .focm_menu_item span.fcomc_unread_badge{background:var(--el-color-danger);width:15px;height:15px;text-align:center;align-items:center;justify-content:center;font-size:10px;line-height:15px;border-radius:50%;top:3px;position:absolute;right:10px;color:#fff}.fcom_mobile_menu .focm_menu_item span.fcomc_unread_badge:empty{display:none!important}.fcom_editor_input_wrap .milkdown{border-radius:8px;box-shadow:0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset}.fcom_editor_input_wrap .milkdown .ProseMirror-focused{border-radius:8px}.el-image-viewer__wrapper .el-image-viewer__mask{opacity:.8}.el-image-viewer__wrapper .el-image-viewer__actions{background:var(--fcom-primary-bg, #FFFFFF)}.el-image-viewer__wrapper .el-image-viewer__close{background:var(--fcom-primary-bg, #FFFFFF);color:var(--fcom-primary-text, #19283a)}li.el-select-group__title{line-height:22px;margin-bottom:0}ul.el-select-group__wrap:not(:last-of-type){padding-bottom:6px}.fcom_md_editor{width:100%}@keyframes shake_key_frame{0%{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%,to{transform:translate(10px)}}.fcon_shake{animation:shake_key_frame .7s}.is_member_online.fcom_user_avatar .fcom_user_level_mark{background:#14a01a;border:1px solid var(--fcom-primary-border)}.norification_pop_header{display:flex;align-items:center;justify-content:space-between}.norification_pop_header h3{font-size:16px;margin:0;padding:0}.el-image-viewer__wrapper .el-image-viewer__actions{background:var(--fcom-active-bg, #FFFFFF);color:var(--fcom-primary-text, #19283a)}.el-image-viewer__wrapper .el-image-viewer__actions .el-image-viewer__actions__inner{color:var(--fcom-primary-text, #19283a)}.fcom_sticky_header .fhr_content_layout_header{position:sticky;top:0;z-index:90}.fcom_is_dirty .fcom_fixed_bottom_overlay{position:fixed;z-index:99;background:var(--fcom-primary-bg, white);border-top:2px solid var(--fcom-primary-border, #e3e8ee);left:0;right:0;text-align:center;padding:12px;bottom:0;margin-bottom:0!important}.fcom_profile_popper{max-width:95%}.el-checkbox.is-checked .el-checkbox__inner:after{border-width:2px;left:3.5px;top:.5px}.fluent_com a:focus-visible{outline:2px solid var(--el-button-outline-color, #2a598a);outline-offset:1px;transition:outline-offset 0s,outline 0s}a.fcom_pro_tag{text-decoration:none;font-size:80%;padding:2px 8px;border:1px solid #FB3748;border-radius:5px;background:#FB3748;color:#fff}a.fcom_pro_tag:hover{background:#f02d3a;border-color:#f02d3a}.fcom_image_uploader_wrapper{margin-left:8px}.fcom_image_uploader_wrapper .remove_img{padding:4px 9px;margin-top:4px;height:32px;color:#909090;background:transparent;border-color:var(--fcom-primary-border)}.fcom_image_uploader_wrapper .remove_img:hover{background:transparent;color:var(--el-color-danger)}.fcom_customizer_container{max-width:700px;padding:10px 20px;margin:20px auto}.fcom_customizer_container .fcom_wc_banner_header{margin:0;padding:8px 0;font-weight:500;font-size:1.25rem;line-height:1.75rem}.fcom_customizer_container .fcom_wc_banner_header h4{font-weight:500}.fcom_customizer_container .fcom_wc_banner_options{margin-bottom:10px}.fcom_customizer_container .fcom_wc_banner_options .fcom_filter_menu .fcom_filter_menu_ul{column-gap:20px}.fcom_customizer_container .fcom_wc_banner_options .fcom_filter_menu .fcom_filter_menu_ul li a{padding:7px 0}.fcom_customizer_container .fcom_wc_banner_content{padding:10px 0}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_header{display:flex;align-items:center;justify-content:space-between}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_header h4{font-size:1.25rem;font-weight:500;color:var(--fcom-secondary-text)}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body{position:relative;margin-top:40px}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body.fcom_wc_disabled{pointer-events:none;opacity:.4}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_wc_banner_media_type{position:absolute;top:-24px}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_wc_banner_media_type p{margin:0;color:var(--fcom-secondary-text);font-size:16px;font-weight:450}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_wc_banner_media_image{position:relative;top:40px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;background:var(--fcom-secondary-bg, #FFFFFF);border:1px solid var(--fcom-primary-border, #d2d7db);border-radius:8px;padding:60px 80px}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_wc_banner_media_image h4{font-size:1.125rem;font-weight:500;line-height:1.5rem}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_wc_banner_media_image p{text-align:center;font-weight:300;margin:0;color:var(--fcom-secondary-text)}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_wc_banner_media_image .fcom_bg_upload{margin-top:10px}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_wc_banner_media_image .fcom_bg_upload .fcom_btn_upload{background-color:var(--fcom-primary-bg);border:1px solid var(--fcom-primary-text)}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_wc_banner_media_image .fcom_bg_upload .fcom_btn_upload:hover{background-color:var(--fcom-secondary-bg)}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_wc_banner_media_preview{position:relative;top:40px}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_wc_banner_media_preview .el-image{border-radius:8px}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_wc_banner_media_preview .fcom_secondary_button{height:20px;width:20px;font-size:11px;padding:8px;position:absolute;top:-10px;right:-10px;border-radius:50%;background-color:var(--fcom-secondary-bg)}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_media_embeder h3{font-size:1.125rem;font-weight:500;line-height:1.5rem;margin-bottom:8px}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_media_embeder p{text-align:center;font-weight:300;margin:0 0 16px;color:var(--fcom-secondary-text)}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_body .fcom_form_container{position:relative;top:40px;margin-top:20px}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_banner_content_footer{margin-top:60px;display:flex;align-items:center}.fcom_customizer_container .fcom_wc_banner_content .fcom_wc_help_text{margin-left:20px;line-height:20px;color:var(--fcom-secondary-text)}.fcom_customizer_container .fcom_wc_banner_cta_buttons{display:flex;align-items:center;flex-direction:column;gap:10px;border:.5px solid var(--fcom-secondary-border);border-radius:8px;padding:16px;width:100%}.fcom_customizer_container .fcom_wc_banner_cta_buttons .fcom_wc_banner_cta_button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.fcom_customizer_container .fcom_wc_banner_cta_buttons .fcom_wc_banner_cta_button .el-form-item{flex:1}.fcom_customizer_container .fcom_wc_banner_cta_buttons .fcom_wc_banner_cta_button .el-form-item.fcom_wc_banner_select{flex:.8}.fcom_customizer_container .fcom_wc_banner_cta_buttons .fcom_wc_banner_cta_button .wc_button_remove{color:red;padding:0;align-self:flex-end}.fcom_customizer_container .fcom_wc_banner_cta_buttons .fcom_wc_banner_cta_button .wc_button_remove:hover{background-color:transparent}.fcom_customizer_container .fcom_wc_banner_cta_buttons .el-link{align-self:baseline}.fcom_customizer_container .ProseMirror{box-shadow:0 0 0 .5px var(--fcom-secondary-border) inset;border-radius:8px}label.el-checkbox{white-space:break-spaces}.el-input__inner:read-only{color:var(--el-color-info)}.fcom_pagination_wrap .el-pagination{margin:15px 0;flex-wrap:wrap}.fcom_pagination_wrap .el-pagination .el-input__wrapper{padding:0}
510 `,hZe=Object.freeze(Object.defineProperty({__proto__:null,default:pZe},Symbol.toStringTag,{value:"Module"}))});export default mZe();
511