@quoreadmin/ui 0.22.18 → 0.22.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,8 +73,8 @@ ${u}`:c)}else throw s},onCacheKey:s=>aE(e,n,s)}}function iT(t){if(z(t))return t;
73
73
  * vue-i18n v9.9.1
74
74
  * (c) 2024 kazuya kawaguchi
75
75
  * Released under the MIT License.
76
- */const aT="9.9.1";function lT(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Fc().__INTLIFY_PROD_DEVTOOLS__=!1)}const yg=lt.__EXTEND_POINT__,sr=Hc(yg),Ft={FALLBACK_TO_ROOT:yg,NOT_SUPPORTED_PRESERVE:sr(),NOT_SUPPORTED_FORMATTER:sr(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:sr(),NOT_SUPPORTED_GET_CHOICE_INDEX:sr(),COMPONENT_NAME_LEGACY_COMPATIBLE:sr(),NOT_FOUND_PARENT_SCOPE:sr(),IGNORE_OBJ_FLATTEN:sr(),NOTICE_DROP_ALLOW_COMPOSITION:sr()},cT={[Ft.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ft.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Ft.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Ft.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Ft.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Ft.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Ft.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ft.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ft.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see šŸ‘‰ https://tinyurl.com/2p97mcze"};function Kc(t,...e){return Vm(cT[t],...e)}const bg=We.__EXTEND_POINT__,bt=Hc(bg),Ie={UNEXPECTED_RETURN_TYPE:bg,INVALID_ARGUMENT:bt(),MUST_BE_CALL_SETUP_TOP:bt(),NOT_INSTALLED:bt(),NOT_AVAILABLE_IN_LEGACY_MODE:bt(),REQUIRED_VALUE:bt(),INVALID_VALUE:bt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:bt(),NOT_INSTALLED_WITH_PROVIDE:bt(),UNEXPECTED_ERROR:bt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:bt(),BRIDGE_SUPPORT_VUE_2_ONLY:bt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:bt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:bt(),__EXTEND_POINT__:bt()};function ms(t,...e){return Zm(t,null,process.env.NODE_ENV!=="production"?{messages:uT,args:e}:void 0)}const uT={[Ie.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Ie.INVALID_ARGUMENT]:"Invalid argument",[Ie.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Ie.NOT_INSTALLED]:"Need to install with `app.use` function",[Ie.UNEXPECTED_ERROR]:"Unexpected error",[Ie.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Ie.REQUIRED_VALUE]:"Required in value: {0}",[Ie.INVALID_VALUE]:"Invalid value",[Ie.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Ie.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Ie.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Ie.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Ie.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ā€˜i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Ie.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Gc=Bn("__translateVNode"),qc=Bn("__datetimeParts"),Yc=Bn("__numberParts"),Jc=Bn("__enableEmitter"),Qc=Bn("__disableEmitter"),dT=Bn("__setPluralRules"),fT=Bn("__injectWithOption"),Xc=Bn("__dispose");function gs(t){if(!de(t))return t;for(const e in t)if(pl(t,e))if(!e.includes("."))de(t[e])&&gs(t[e]);else{const n=e.split("."),r=n.length-1;let o=t,i=!1;for(let s=0;s<r;s++){if(n[s]in o||(o[n[s]]={}),!de(o[n[s]])){process.env.NODE_ENV!=="production"&&jo(Kc(Ft.IGNORE_OBJ_FLATTEN,{key:n[s]})),i=!0;break}o=o[n[s]]}i||(o[n[r]]=t[e],delete t[e]),de(o[n[r]])&&gs(o[n[r]])}return t}function wg(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=e,s=le(n)?n:Be(r)?{}:{[t]:{}};if(Be(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:u}=l;c?(s[c]=s[c]||{},ml(u,s[c])):ml(u,s)}else z(l)&&ml(JSON.parse(l),s)}),o==null&&i)for(const l in s)pl(s,l)&&gs(s[l]);return s}function vg(t){return t.type}function pT(t,e,n){let r=de(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=wg(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(de(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(de(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function Cg(t){return a.createVNode(a.Text,null,t,0)}const Sg="__INTLIFY_META__",kg=()=>[],hT=()=>!1;let Og=0;function Eg(t){return(e,n,r,o)=>t(n,r,a.getCurrentInstance()||void 0,o)}const mT=()=>{const t=a.getCurrentInstance();let e=null;return t&&(e=vg(t)[Sg])?{[Sg]:e}:null};function gT(t={},e){const{__root:n,__injectWithOption:r}=t,o=n===void 0,i=t.flatJson,s=Nn?a.ref:a.shallowRef;let l=Ae(t.inheritLocale)?t.inheritLocale:!0;const c=s(n&&l?n.locale.value:z(t.locale)?t.locale:yl),u=s(n&&l?n.fallbackLocale.value:z(t.fallbackLocale)||Be(t.fallbackLocale)||le(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:c.value),d=s(wg(c.value,t)),f=s(le(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),p=s(le(t.numberFormats)?t.numberFormats:{[c.value]:{}});let h=n?n.missingWarn:Ae(t.missingWarn)||dl(t.missingWarn)?t.missingWarn:!0,m=n?n.fallbackWarn:Ae(t.fallbackWarn)||dl(t.fallbackWarn)?t.fallbackWarn:!0,y=n?n.fallbackRoot:Ae(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,b=Se(t.missing)?t.missing:null,w=Se(t.missing)?Eg(t.missing):null,C=Se(t.postTranslation)?t.postTranslation:null,v=n?n.warnHtmlMessage:Ae(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const S=n?n.modifiers:le(t.modifiers)?t.modifiers:{};let k=t.pluralRules||n&&n.pluralRules,T;T=(()=>{o&&ng(null);const x={version:aT,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:S,pluralRules:k,missing:w===null?void 0:w,missingWarn:h,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:C===null?void 0:C,warnHtmlMessage:v,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};x.datetimeFormats=f.value,x.numberFormats=p.value,x.__datetimeFormatters=le(T)?T.__datetimeFormatters:void 0,x.__numberFormatters=le(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(x.__v_emitter=le(T)?T.__v_emitter:void 0);const I=tT(x);return o&&ng(I),I})(),hs(T,c.value,u.value);function N(){return[c.value,u.value,d.value,f.value,p.value]}const B=a.computed({get:()=>c.value,set:x=>{c.value=x,T.locale=c.value}}),$=a.computed({get:()=>u.value,set:x=>{u.value=x,T.fallbackLocale=u.value,hs(T,c.value,x)}}),j=a.computed(()=>d.value),ee=a.computed(()=>f.value),F=a.computed(()=>p.value);function W(){return Se(C)?C:null}function te(x){C=x,T.postTranslation=x}function se(){return b}function qe(x){x!==null&&(w=Eg(x)),b=x,T.missing=w}function pt(x,I){return x!=="translate"||!I.resolvedMessage}const rt=(x,I,ne,Ee,Zn,Ei)=>{N();let Nr;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(T.fallbackContext=n?eT():void 0),Nr=x(T)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(T.fallbackContext=void 0)}if(ne!=="translate exists"&&Je(Nr)&&Nr===gl||ne==="translate exists"&&!Nr){const[Wn,P]=I();if(process.env.NODE_ENV!=="production"&&n&&z(Wn)&&pt(ne,P)&&(y&&(wl(m,Wn)||og(h,Wn))&&jo(Kc(Ft.FALLBACK_TO_ROOT,{key:Wn,type:ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:_}=T;_&&y&&_.emit("fallback",{type:ne,key:Wn,to:"global",groupId:`${ne}:${Wn}`})}return n&&y?Ee(n):Zn(Wn)}else{if(Ei(Nr))return Nr;throw ms(Ie.UNEXPECTED_RETURN_TYPE)}};function ot(...x){return rt(I=>Reflect.apply(sg,null,[I,...x]),()=>Zc(...x),"translate",I=>Reflect.apply(I.t,I,[...x]),I=>I,I=>z(I))}function rn(...x){const[I,ne,Ee]=x;if(Ee&&!de(Ee))throw ms(Ie.INVALID_ARGUMENT);return ot(I,ne,Qe({resolvedMessage:!0},Ee||{}))}function It(...x){return rt(I=>Reflect.apply(dg,null,[I,...x]),()=>Wc(...x),"datetime format",I=>Reflect.apply(I.d,I,[...x]),()=>bl,I=>z(I))}function Nt(...x){return rt(I=>Reflect.apply(hg,null,[I,...x]),()=>Uc(...x),"number format",I=>Reflect.apply(I.n,I,[...x]),()=>bl,I=>z(I))}function on(x){return x.map(I=>z(I)||Je(I)||Ae(I)?Cg(String(I)):I)}const sn={normalize:on,interpolate:x=>x,type:"vnode"};function Dr(...x){return rt(I=>{let ne;const Ee=I;try{Ee.processor=sn,ne=Reflect.apply(sg,null,[Ee,...x])}finally{Ee.processor=null}return ne},()=>Zc(...x),"translate",I=>I[Gc](...x),I=>[Cg(I)],I=>Be(I))}function kn(...x){return rt(I=>Reflect.apply(hg,null,[I,...x]),()=>Uc(...x),"number format",I=>I[Yc](...x),kg,I=>z(I)||Be(I))}function Ar(...x){return rt(I=>Reflect.apply(dg,null,[I,...x]),()=>Wc(...x),"datetime format",I=>I[qc](...x),kg,I=>z(I)||Be(I))}function vi(x){k=x,T.pluralRules=k}function bo(x,I){return rt(()=>{if(!x)return!1;const ne=z(I)?I:c.value,Ee=Ir(ne),Zn=T.messageResolver(Ee,x);return Zo(Zn)||$t(Zn)||z(Zn)},()=>[x],"translate exists",ne=>Reflect.apply(ne.te,ne,[x,I]),hT,ne=>Ae(ne))}function Ci(x){let I=null;const ne=qm(T,u.value,c.value);for(let Ee=0;Ee<ne.length;Ee++){const Zn=d.value[ne[Ee]]||{},Ei=T.messageResolver(Zn,x);if(Ei!=null){I=Ei;break}}return I}function Si(x){const I=Ci(x);return I??(n?n.tm(x)||{}:{})}function Ir(x){return d.value[x]||{}}function wo(x,I){if(i){const ne={[x]:I};for(const Ee in ne)pl(ne,Ee)&&gs(ne[Ee]);I=ne[x]}d.value[x]=I,T.messages=d.value}function ki(x,I){d.value[x]=d.value[x]||{};const ne={[x]:I};if(i)for(const Ee in ne)pl(ne,Ee)&&gs(ne[Ee]);I=ne[x],ml(I,d.value[x]),T.messages=d.value}function Oi(x){return f.value[x]||{}}function an(x,I){f.value[x]=I,T.datetimeFormats=f.value,pg(T,x,I)}function On(x,I){f.value[x]=Qe(f.value[x]||{},I),T.datetimeFormats=f.value,pg(T,x,I)}function vo(x){return p.value[x]||{}}function jn(x,I){p.value[x]=I,T.numberFormats=p.value,gg(T,x,I)}function Co(x,I){p.value[x]=Qe(p.value[x]||{},I),T.numberFormats=p.value,gg(T,x,I)}Og++,n&&Nn&&(a.watch(n.locale,x=>{l&&(c.value=x,T.locale=x,hs(T,c.value,u.value))}),a.watch(n.fallbackLocale,x=>{l&&(u.value=x,T.fallbackLocale=x,hs(T,c.value,u.value))}));const ye={id:Og,locale:B,fallbackLocale:$,get inheritLocale(){return l},set inheritLocale(x){l=x,x&&n&&(c.value=n.locale.value,u.value=n.fallbackLocale.value,hs(T,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:j,get modifiers(){return S},get pluralRules(){return k||{}},get isGlobal(){return o},get missingWarn(){return h},set missingWarn(x){h=x,T.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(x){m=x,T.fallbackWarn=m},get fallbackRoot(){return y},set fallbackRoot(x){y=x},get fallbackFormat(){return g},set fallbackFormat(x){g=x,T.fallbackFormat=g},get warnHtmlMessage(){return v},set warnHtmlMessage(x){v=x,T.warnHtmlMessage=x},get escapeParameter(){return E},set escapeParameter(x){E=x,T.escapeParameter=x},t:ot,getLocaleMessage:Ir,setLocaleMessage:wo,mergeLocaleMessage:ki,getPostTranslationHandler:W,setPostTranslationHandler:te,getMissingHandler:se,setMissingHandler:qe,[dT]:vi};return ye.datetimeFormats=ee,ye.numberFormats=F,ye.rt=rn,ye.te=bo,ye.tm=Si,ye.d=It,ye.n=Nt,ye.getDateTimeFormat=Oi,ye.setDateTimeFormat=an,ye.mergeDateTimeFormat=On,ye.getNumberFormat=vo,ye.setNumberFormat=jn,ye.mergeNumberFormat=Co,ye[fT]=r,ye[Gc]=Dr,ye[qc]=Ar,ye[Yc]=kn,process.env.NODE_ENV!=="production"&&(ye[Jc]=x=>{T.__v_emitter=x},ye[Qc]=()=>{T.__v_emitter=void 0}),ye}const eu={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function yT({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,o)=>[...r,...o.type===a.Fragment?o.children:[o]],[]):e.reduce((n,r)=>{const o=t[r];return o&&(n[r]=o()),n},{})}function Tg(t){return a.Fragment}Qe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Je(t)||!isNaN(t)}},eu);function bT(t){return Be(t)&&!z(t[0])}function Mg(t,e,n,r){const{slots:o,attrs:i}=e;return()=>{const s={part:!0};let l={};t.locale&&(s.locale=t.locale),z(t.format)?s.key=t.format:de(t.format)&&(z(t.format.key)&&(s.key=t.format.key),l=Object.keys(t.format).reduce((p,h)=>n.includes(h)?Qe({},p,{[h]:t.format[h]}):p,{}));const c=r(t.value,s,l);let u=[s.key];Be(c)?u=c.map((p,h)=>{const m=o[p.type],y=m?m({[p.type]:p.value,index:h,parts:c}):[p.value];return bT(y)&&(y[0].key=`${p.type}-${h}`),y}):z(c)&&(u=[c]);const d=Qe({},i),f=z(t.tag)||de(t.tag)?t.tag:Tg();return a.h(f,d,u)}}Qe({value:{type:Number,required:!0},format:{type:[String,Object]}},eu),Qe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},eu);function xg(t,e){}const wT=Bn("global-vue-i18n");function ys(t={}){const e=a.getCurrentInstance();if(e==null)throw ms(Ie.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw ms(Ie.NOT_INSTALLED);const n=vT(e),r=ST(n),o=vg(e),i=CT(t,o);if(i==="global")return pT(r,t,o),r;if(i==="parent"){let c=kT(n,e,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&jo(Kc(Ft.NOT_FOUND_PARENT_SCOPE)),c=r),c}const s=n;let l=s.__getInstance(e);if(l==null){const c=Qe({},t);"__i18n"in o&&(c.__i18n=o.__i18n),r&&(c.__root=r),l=gT(c),s.__composerExtend&&(l[Xc]=s.__composerExtend(l)),ET(s,e,l),s.__setInstance(e,l)}return l}function vT(t){{const e=a.inject(t.isCE?wT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw ms(t.isCE?Ie.NOT_INSTALLED_WITH_PROVIDE:Ie.UNEXPECTED_ERROR);return e}}function CT(t,e){return fl(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function ST(t){return t.mode==="composition"?t.global:t.global.__composer}function kT(t,e,n=!1){let r=null;const o=e.root;let i=OT(e,n);for(;i!=null;){const s=t;if(t.mode==="composition"&&(r=s.__getInstance(i)),r!=null||o===i)break;i=i.parent}return r}function OT(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function ET(t,e,n){let r=null;a.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=gE();const o=n;o[Jc]&&o[Jc](r),r.on("*",xg)}},e),a.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",xg),o[Qc]&&o[Qc](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=o[Xc];i&&(i(),delete o[Xc])},e)}if(lT(),YE(PE),JE(qm),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Fc();t.__INTLIFY__=!0,$E(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Pg={content:["./index.html","./src/App.vue","./src/**/*.{vue,js,ts,jsx,tsx}"],darkMode:"class",important:!1,theme:{fontFamily:{sans:["Lato","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue","sans-serif"],gellar:["GellerHeadline","-apple-system","BlinkMacSystemFont","Georgia","Times",'"Times New Roman"',"serif"]},fontSize:{tiniest:"0.5rem",tiny:"0.625rem",xxs:"0.6875rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",md:"1.25rem",lg:"1.5rem",xl:"2.25rem","2xl":"3rem","3xl":"3.75rem","4xl":"4.5rem"},colors:{success:"#0f6a13","success-light":"#e9f7da","idle-pass":"#d6ecc1",error:"#c20017","error-light":"#ffe4e8",warning:"#ab9b00","warning-light":"#fef8de",info:"#004494","info-light":"#dbf3ff","green-quore":"#5db407","blue-sky":"#2898e0","blue-quore":"#2f363c",complaint:"#c20017",recurring:"#006b00",workorder:"#F67B00",gray:{0:"#f9f9fa","00":"#f4f4f4",7:"#eff1f2",10:"#ebeef0",20:"#dde1e4",30:"#cdd4d8",40:"#bcc5cb"},inkwell:{0:"#8d9aa5",10:"#6c7b89",20:"#515d67",30:"#2f363c",40:"#121517"},maroon:{0:"#f7d7db",10:"#d27989",20:"#ad314e",30:"#880028",40:"#630023"},pink:{0:"#ffdbe5",10:"#ff89ae",20:"#ff377a",30:"#cd0059",40:"#9c0053"},red:{0:"#ffe4e8",10:"#ffa9b2",20:"#ff6e76",30:"#ff3333",40:"#c20017"},orange:{0:"#FFF7DB",10:"#FCD379",20:"#F89F1B",30:"#F67B00",40:"#F56200"},yellow:{0:"#fff8de",10:"#f9e991",20:"#eedc00",30:"#ccbb00",40:"#ab9b00"},green:{0:"#e9f7da",10:"#9cd662",20:"#5db407",30:"#249000",40:"#006b00"},teal:{0:"#dcf2f1",10:"#64c7c0",20:"#0f9b8f",30:"#007667",40:"#005244"},blue:{0:"#dbf3ff",10:"#7cc7f0",20:"#2898e0",30:"#0a69ba",40:"#004594"},purple:{0:"#f2e3f2",10:"#d29cd5",20:"#b062b7",30:"#8d3399",40:"#430675"},transparent:"transparent",current:"currentColor",white:"#ffffff",black:"#000000"},screens:{sm:"576px",md:"768px",lg:"992px",xl:"1200px"},configViewer:{typographyExample:"Smarter Team, Happier Guest"},extend:{boxShadow:{solid:"0 0 0 2px rgba(255, 255, 255, 1)"},maxHeight:{none:"none"},colors:{"primary-50":"rgb(var(--primary-50))","primary-100":"rgb(var(--primary-100))","primary-200":"rgb(var(--primary-200))","primary-300":"rgb(var(--primary-300))","primary-400":"rgb(var(--primary-400))","primary-500":"rgb(var(--primary-500))","primary-600":"rgb(var(--primary-600))","primary-700":"rgb(var(--primary-700))","primary-800":"rgb(var(--primary-800))","primary-900":"rgb(var(--primary-900))","primary-950":"rgb(var(--primary-950))","surface-0":"rgb(var(--surface-0))","surface-50":"rgb(var(--surface-50))","surface-100":"rgb(var(--surface-100))","surface-200":"rgb(var(--surface-200))","surface-300":"rgb(var(--surface-300))","surface-400":"rgb(var(--surface-400))","surface-500":"rgb(var(--surface-500))","surface-600":"rgb(var(--surface-600))","surface-700":"rgb(var(--surface-700))","surface-800":"rgb(var(--surface-800))","surface-900":"rgb(var(--surface-900))","surface-950":"rgb(var(--surface-950))"}}},safelist:["border-solid","border-dashed","border-dotted","border-double","border-gray-20","border-gray-30","border-gray-40","border-inkwell-0","border-inkwell-10","border-inkwell-20","border-inkwell-30","border-inkwell-40",{pattern:/(bg|text)-+/,variants:["hover"]}],variants:{extend:{}},plugins:[]},vl={...Pg.theme.screens},TT={sm:Number(vl.sm.replace("px","")),md:Number(vl.md.replace("px","")),lg:Number(vl.lg.replace("px","")),xl:Number(vl.xl.replace("px",""))},ar=M6(TT),Yr=a.reactive({xs:ar.smaller("sm"),sm:ar.greaterOrEqual("sm"),md:ar.greaterOrEqual("md"),lg:ar.greaterOrEqual("lg"),xl:ar.greaterOrEqual("xl"),"sm-md":ar.between("sm","md"),"md-lg":ar.between("md","lg"),"lg-xl":ar.between("lg","xl")}),MT=a.defineComponent({name:"QGrid",components:{QBadge:xi},props:{id:{type:String,default:""},columns:{type:Number,default:4},exclude:{type:Array,default:()=>[]},filters:{type:Array,default:()=>[]},filtersAction:{type:Function,default:()=>{}},filtersCount:{type:Number,default:0},gridData:{type:Array,default:()=>[]},hasSearch:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},noResultMessage:{type:String,default:""},searchPlaceholder:{type:String,default:""},skeletonRows:{type:Number,default:6},statusClasses:{type:Object}},emits:["select-grid-item","filters-updated"],setup(t,{emit:e}){const{t:n}=ys(),r=a.ref(""),o=a.computed(()=>{const f=t.filters,p=$c(t.gridData,r.value,f,void 0,void 0,t.exclude);return e("filters-updated",p),p}),i=a.computed(()=>t.columns?`q-grid-cols-${t.columns}`:""),s=a.computed(()=>o.value.length%t.columns===0),l=a.computed(()=>t.noResultMessage||n("HC_NO_RESULTS_FOUND")),c=a.computed(()=>{const f=[],p={};return[...Array(t.skeletonRows*t.columns)].forEach(()=>{f.push(p)}),f});return{searchBy:r,filteredGridData:o,gridColumnCount:i,lastRowWillBeFilled:s,noResultsText:l,skeletonData:c,getCellClasses:f=>{const p=o.value.length?o.value:c.value,h=Math.ceil(p.length/t.columns),m=Math.floor(f/t.columns),y=m===0,g=m===h-1,b=f===p.length-1,w=m===h-2,C=f+t.columns>=p.length;return{"!border-t-[0.09375rem]":y,"!border-b-[0.09375rem]":g||C&&w,"!border-l-[0.09375rem]":f%t.columns===0,"!border-r-[0.09375rem]":f%t.columns===t.columns-1||b,"!rounded-tl-md":y&&f%t.columns===0,"!rounded-tr-md":y&&(f%t.columns===t.columns-1||b),"!rounded-bl-md":g&&f%t.columns===0,"!rounded-br-md":b||w&&p.length%t.columns!==0&&f%t.columns===t.columns-1}},selectGridItem:f=>{o.value.find(p=>{p.active&&(p.active=!1)}),f.active=!0,e("select-grid-item",f)},mq:Yr}}}),xT=["id"],PT={key:0,class:"grid-filters"},DT={class:"grid-search"},AT={for:"grid-search",class:"search-label"},IT={key:0,class:"grid-filter-actions"},NT={class:"relative flex"},BT={class:"grid-wrapper"},RT=["onClick"],LT={key:1,class:"no-grid-result"};function VT(t,e,n,r,o,i){const s=a.resolveComponent("q-icon"),l=a.resolveComponent("q-input"),c=a.resolveComponent("q-badge");return a.openBlock(),a.createElementBlock("div",{id:t.id,class:a.normalizeClass(["grid-container h-full w-full",{"is-loading":t.loading}])},[t.hasSearch?a.renderSlot(t.$slots,"search-and-filters",{key:0},()=>[a.createElementVNode("div",{class:a.normalizeClass(["search-and-filters !pr-0",{"bg-gray-30 animate-shimmer":t.loading}])},[t.loading?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",PT,[a.createElementVNode("div",DT,[t.hasSearch?a.renderSlot(t.$slots,"grid-search",{key:0},()=>[a.createElementVNode("label",AT,[a.createVNode(l,{id:"grid-search",modelValue:t.searchBy,"onUpdate:modelValue":e[0]||(e[0]=u=>t.searchBy=u),"hide-clear":!!t.mq.md,placeholder:t.searchPlaceholder||t.$t("HC_SEARCH"),class:"text-base placeholder-inkwell-0","control-class":"!border-0","icon-position":"left"},{default:a.withCtx(()=>[a.createVNode(s,{color:"inkwell-0",icon:"search",size:"md",type:"",class:"cursor-default"})]),_:1},8,["modelValue","hide-clear","placeholder"])])],!0):a.createCommentVNode("",!0)]),Object.keys(t.filters).length?(a.openBlock(),a.createElementBlock("div",IT,[a.renderSlot(t.$slots,"filters",{},()=>[a.createElementVNode("div",NT,[a.createVNode(s,{class:"filters-icon",color:"inkwell-0",icon:"filter",size:"md",onClick:t.filtersAction},null,8,["onClick"]),t.filtersCount?(a.openBlock(),a.createBlock(c,{key:0,class:"filters-count",color:t.mq.md?"white":"gray-0"},{text:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.filtersCount),1)]),_:1},8,["color"])):a.createCommentVNode("",!0)])],!0)])):a.createCommentVNode("",!0)]))],2)],!0):a.createCommentVNode("",!0),a.createElementVNode("div",BT,[t.filteredGridData.length||t.loading?(a.openBlock(),a.createElementBlock("ul",{key:0,class:a.normalizeClass(["grid mb-4 md:mb-0",t.gridColumnCount])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.loading?t.skeletonData:t.filteredGridData,(u,d)=>(a.openBlock(),a.createElementBlock("li",{key:u.id,class:a.normalizeClass(["cursor-pointer truncate","cell",t.statusClasses&&t.statusClasses[u.status],u.active==!0?"active":"",t.mq.md&&t.getCellClasses(d),{"bg-gray-10 animate-shimmer":t.loading}]),onClick:a.withModifiers(f=>t.selectGridItem(u),["prevent"])},a.toDisplayString(u.name),11,RT))),128))],2)):(a.openBlock(),a.createElementBlock("p",LT,a.toDisplayString(t.noResultsText),1))])],10,xT)}const $T=ce(MT,[["render",VT],["__scopeId","data-v-cfe195f6"]]),Dg="eye",Ag="eye-slash",FT=a.defineComponent({name:"QInput",inheritAttrs:!1,props:{modelValue:{type:[Number,Object,String],default:""},type:{type:String,default:"text",validator:t=>["email","number","password","phone","search","text"].includes(t)},placeholder:{type:String,default:""},maxlength:{type:Number,default:null},size:{type:String,default:"md"},status:{type:String,default:""},controlClass:{type:String,default:""},inputClass:{type:String,default:""},disabled:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},hideClear:{type:Boolean,default:!1},iconPosition:{type:String,default:"right"}},emits:["update:model-value","update-type"],setup(t,{emit:e}){const n=a.useSlots(),r=a.ref(null),o=a.ref(!1),i=a.ref(t.type==="password"?Dg:""),s=a.computed(()=>!!t.disabled),l=a.computed(()=>{const m=i.value;return!!t.modelValue&&!s.value&&(d.value&&t.iconPosition==="left"||!m)}),c=a.computed(()=>["control flex items-center",{focused:!!o.value},{disabled:s.value},{[`has-icon-${t.iconPosition}`]:!!t.iconPosition},t.controlClass,{["size-"+t.size]:t.size}]),u=a.computed(()=>["input",{[t.status]:t.status&&!s.value},{[t.inputClass]:!!t.inputClass},{populated:!!t.modelValue}]),d=a.computed(()=>!!(n!=null&&n.default)),f=()=>{const m=t.type==="password",y=t.type==="text"&&i.value===Ag;(m||y)&&p()},p=()=>{const m=t.type==="text"?"password":"text";i.value=m==="text"?Ag:Dg,e("update-type",m)};return{currentInput:r,focused:o,icon:i,rootClasses:c,inputClasses:u,isDisabled:s,showClearIcon:l,isSlotAvailable:d,onClickIcon:f,togglePasswordVisibility:p,updateValue:m=>{e("update:model-value",m.target.value)},mq:Yr}}}),HT=["id","type","disabled","autocomplete","maxlength","value","placeholder"];function _T(t,e,n,r,o,i){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createElementBlock("div",{ref:"currentInput",class:a.normalizeClass(t.rootClasses)},[a.createElementVNode("input",a.mergeProps({id:String(t.$attrs.id),ref:String(t.$attrs.id),type:t.type,disabled:t.isDisabled,class:t.inputClasses,autocomplete:t.autocomplete,maxlength:t.maxlength,value:t.modelValue,placeholder:t.placeholder},t.$attrs,{onInput:e[0]||(e[0]=l=>t.updateValue(l)),onFocusin:e[1]||(e[1]=l=>t.focused=!t.focused),onFocusout:e[2]||(e[2]=l=>t.focused=!t.focused),onBlur:e[3]||(e[3]=l=>t.focused=!0)}),null,16,HT),t.isSlotAvailable||t.icon?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["flex",{"order-first pr-2":t.iconPosition==="left"}])},[a.renderSlot(t.$slots,"default",a.normalizeProps(a.guardReactiveProps({icon:t.icon,onClickIcon:t.onClickIcon})),()=>[a.createVNode(s,{icon:t.icon,size:"md",class:"cursor-pointer",onClick:t.onClickIcon},null,8,["icon","onClick"])],!0)],2)):a.createCommentVNode("",!0),t.showClearIcon&&!t.hideClear?(a.openBlock(),a.createElementBlock("div",{key:1,class:"close cursor-pointer flex order-3",onClick:e[4]||(e[4]=l=>t.$emit("update:model-value","")),onMousedown:e[5]||(e[5]=a.withModifiers(()=>{},["prevent"]))},[t.mq.md?(a.openBlock(),a.createBlock(s,{key:0,icon:"close",size:"sm",type:"line"})):(a.openBlock(),a.createBlock(s,{key:1,icon:"delete-circle",color:"inkwell-0",size:"md",type:"fill"}))],32)):a.createCommentVNode("",!0)],2)}const zT=ce(FT,[["render",_T],["__scopeId","data-v-320db1d7"]]),jT=a.defineComponent({name:"QList",components:{QBadge:xi},props:{id:{type:String,default:""},data:{type:Array,default:()=>[]},dragSearch:{type:Boolean,default:!1},exclude:{type:Array,default:()=>[]},filters:{type:Array,default:()=>[]},filtersCount:{type:Number,default:0},hasSearch:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},noResultMessage:{type:String,default:""},searchText:{type:String,default:""},searchPlaceholder:{type:String,default:""},skeletonRows:{type:Number,default:6},type:{type:String,default:"row"}},emits:["filters-action","filters-updated","click:list-item"],setup(t,{emit:e}){const{y:n}=P6(),r=a.ref(0),o=a.ref(!1),i=a.ref(Yr.md?!0:!t.dragSearch),s={type:"keyframe",ease:"linear",duration:0,delay:0},l=a.ref(null),c=a.ref(null),{motionProperties:u}=L2(l),{push:d}=I2(),f=a.ref(""),p=a.ref(window.innerHeight),h=a.computed(()=>{const v=$c(t.data,m.value,t.filters,void 0,void 0,t.exclude);return e("filters-updated",v),v}),m=a.computed(()=>t.searchText||f.value),y=()=>{p.value=window.innerHeight},g=v=>{const{dragging:E}=v;E?b(v):w(v)};t.dragSearch&&!Yr.md&&Lf(g,{domTarget:l,filterTaps:!0,useTouch:!0,delay:100});const b=v=>{if(v.tap)return;o.value=!0;const{movement:[,E]}=v;E<0},w=v=>{if(v.tap||v.direction[0]===1||v.direction[0]===-1)return;const{movement:[,E]}=v;if(r.value=r.value+E,!i.value&&v.direction[1]>0){C(),o.value=!1;return}else n.value>p.value/3?(i.value=!1,d("y",0,u,s)):n.value===0&&i.value===!1&&d("y",0,u,s)},C=async()=>{i.value=!0,await a.nextTick(),d("y",c.value.offsetHeight,u,s)};return a.onMounted(()=>{i.value||window.addEventListener("resize",y)}),a.onUnmounted(()=>{i.value||window.removeEventListener("resize",y)}),{isDragging:o,isSearchVisible:i,listRef:l,searchRef:c,searchValue:f,windowHeight:p,filteredData:h,searchBy:m,onDragged:C,onWindowResize:y,mq:Yr}}}),bs=t=>(a.pushScopeId("data-v-72fcbfb6"),t=t(),a.popScopeId(),t),ZT=["id"],WT={key:0},UT={class:"search-and-filters"},KT={class:"list-search"},GT={for:"list-search",class:"search-label"},qT={key:0,class:"list-filters"},YT={class:"relative flex"},JT={key:1,class:"search-and-filters loading-state"},QT=[bs(()=>a.createElementVNode("div",{class:"loading-search"},null,-1)),bs(()=>a.createElementVNode("div",{class:"loading-filters"},null,-1))],XT=bs(()=>a.createElementVNode("hr",{class:"search-separator"},null,-1)),eM={key:1},tM={key:0,ref:"listRef",class:"list-wrapper"},nM=["onClick"],rM={key:1,class:"list ordered-list"},oM=["onClick"],iM={key:1,class:"no-results"},sM={key:2,class:"list-wrapper"},aM={class:"list loading-list"},lM=[bs(()=>a.createElementVNode("div",{class:"loading-top mb-3"},null,-1)),bs(()=>a.createElementVNode("div",{class:"loading-bottom"},null,-1))];function cM(t,e,n,r,o,i){const s=a.resolveComponent("q-icon"),l=a.resolveComponent("q-input"),c=a.resolveComponent("q-badge");return a.openBlock(),a.createElementBlock("div",{id:t.id,class:"q-list"},[t.hasSearch||t.filters.length?a.renderSlot(t.$slots,"search-and-filters",{key:0},()=>[a.createVNode(a.Transition,{name:"slide-down"},{default:a.withCtx(()=>[t.isSearchVisible||!t.dragSearch?(a.openBlock(),a.createElementBlock("div",{key:0,ref:"searchRef",class:a.normalizeClass(["search-and-filter-wrapper",{"fixed right-4 left-4 z-10 bg-white":t.isSearchVisible&&t.dragSearch}])},[t.loading?(a.openBlock(),a.createElementBlock("div",JT,QT)):(a.openBlock(),a.createElementBlock("div",WT,[a.createElementVNode("div",UT,[a.createElementVNode("div",KT,[t.hasSearch?a.renderSlot(t.$slots,"list-search",{key:0},()=>[a.createElementVNode("label",GT,[a.createVNode(l,{id:"list-search",modelValue:t.searchValue,"onUpdate:modelValue":e[0]||(e[0]=u=>t.searchValue=u),"hide-clear":!!t.mq.md,placeholder:t.searchPlaceholder||t.$t("HC_SEARCH"),class:"text-base placeholder-inkwell-0","control-class":"!border-0 !pl-2 !pr-1.5 md:!px-3","icon-position":"left",size:"xs"},{default:a.withCtx(()=>[a.createVNode(s,{color:"inkwell-0",icon:"search",size:"md",type:"",class:"cursor-default"})]),_:1},8,["modelValue","hide-clear","placeholder"])])],!0):a.createCommentVNode("",!0)]),t.filters.length&&t.type==="row"?(a.openBlock(),a.createElementBlock("div",qT,[a.renderSlot(t.$slots,"list-filters",{},()=>[a.createElementVNode("div",YT,[a.createVNode(s,{class:"filters-icon",color:"inkwell-0",icon:"filter",size:"md",onClick:e[1]||(e[1]=u=>t.$emit("filters-action"))}),t.filtersCount?(a.openBlock(),a.createBlock(c,{key:0,class:"filters-count",color:"gray-0"},{text:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.filtersCount),1)]),_:1})):a.createCommentVNode("",!0)])],!0)])):a.createCommentVNode("",!0)])])),a.renderSlot(t.$slots,"search-separator",{},()=>[XT],!0)],2)):a.createCommentVNode("",!0)]),_:3})],!0):a.createCommentVNode("",!0),t.loading?(a.openBlock(),a.createElementBlock("div",sM,[a.createElementVNode("ul",aM,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.skeletonRows,u=>(a.openBlock(),a.createElementBlock("li",{key:u,class:"list-item"},lM))),128))])])):(a.openBlock(),a.createElementBlock("div",eM,[t.filteredData.length?(a.openBlock(),a.createElementBlock("div",tM,[t.type!=="ordered"?(a.openBlock(),a.createElementBlock("ul",{key:0,class:a.normalizeClass(["list",`${t.type}-list`,{"select-none":t.isDragging}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.filteredData,(u,d)=>(a.openBlock(),a.createElementBlock("li",{key:d,class:"list-item",onClick:f=>t.$emit("click:list-item",u)},[a.renderSlot(t.$slots,"list-item",a.normalizeProps(a.guardReactiveProps({item:u})),()=>[a.createTextVNode(a.toDisplayString(u),1)],!0)],8,nM))),128))],2)):(a.openBlock(),a.createElementBlock("ol",rM,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.filteredData,(u,d)=>(a.openBlock(),a.createElementBlock("li",{key:d,class:"list-item",onClick:f=>t.$emit("click:list-item",u)},[a.renderSlot(t.$slots,"list-item",a.normalizeProps(a.guardReactiveProps({item:u})),()=>[a.createTextVNode(a.toDisplayString(u),1)],!0)],8,oM))),128))]))],512)):(a.openBlock(),a.createElementBlock("div",iM,[a.renderSlot(t.$slots,"no-results",{},()=>[a.createElementVNode("p",null,a.toDisplayString(t.noResultMessage||t.$t("HC_NO_RESULTS_FOUND")),1)],!0)]))]))],8,ZT)}const uM=ce(jT,[["render",cM],["__scopeId","data-v-72fcbfb6"]]),dM=a.defineComponent({name:"QModal",components:{QIcon:J2},props:{id:{type:String,default:"q-modal"},closeButtonClass:{type:String,default:""},containerClass:{type:String,default:"h-fit min-h-fit"},dismissible:{type:Boolean,default:!0},dismissibleOverlay:{type:Boolean,default:!0},dismissText:{type:String,default:""},overlay:{type:String,default:"white-transparent"},size:{type:String,default:"md"},showCancelLink:{type:Boolean,default:!1},hasBuildingBg:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){a.provide("size",t.size);const n=()=>{t.dismissible&&e("close")};return a.onUnmounted(()=>{document.body.classList.remove("scroll-disabled")}),a.onMounted(()=>{document.body.classList.add("scroll-disabled")}),{onCloseModal:n}}});function fM(t,e,n,r,o,i){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createElementBlock("div",{ref:"currentModal",class:a.normalizeClass(["q-modal",t.overlay]),onKeydown:e[3]||(e[3]=a.withKeys((...l)=>t.onCloseModal&&t.onCloseModal(...l),["escape"]))},[a.createElementVNode("div",a.mergeProps({class:"overlay"},{[a.toHandlerKey(t.dismissibleOverlay&&"click")]:e[0]||(e[0]=(...l)=>t.onCloseModal&&t.onCloseModal(...l))}),null,16),a.createElementVNode("div",{class:a.normalizeClass(["modal-container flex flex-col relative","modal-"+t.size,t.containerClass,{"building-background":t.hasBuildingBg}])},[t.dismissible?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["modal-close-button",t.closeButtonClass]),onClick:e[1]||(e[1]=(...l)=>t.onCloseModal&&t.onCloseModal(...l))},[a.createVNode(s,{icon:"close",type:"line",color:"gray-40"})],2)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default",{},void 0,!0),t.showCancelLink?(a.openBlock(),a.createElementBlock("a",{key:1,class:"modal-close-link",href:"#",onClick:e[2]||(e[2]=a.withModifiers(l=>t.$emit("close"),["prevent"]))},a.toDisplayString(t.$t("HC_CANCEL")),1)):a.createCommentVNode("",!0)],2)],34)}const pM=ce(dM,[["render",fM],["__scopeId","data-v-8867a052"]]),hM=a.defineComponent({name:"QModalContent",props:{useFlex:{type:Boolean,default:!1},contentClass:{type:String,default:""},footerClass:{type:String,default:""}},setup(t,{slots:e}){const n=a.inject("size"),r=a.computed(()=>!!e.header),o=a.computed(()=>!!e.footer);return{modalSize:n,hasHeader:r,hasFooter:o}}}),mM={key:0,class:"modal-title"},gM={class:"text-lg pb-3 font-bold leading-6"};function yM(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["modal-content",t.useFlex?"flex flex-col min-h-full":"","modal-"+t.modalSize])},[t.hasHeader?(a.openBlock(),a.createElementBlock("div",mM,[a.createElementVNode("h2",gM,[a.renderSlot(t.$slots,"header",{},void 0,!0)])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["modal-body",t.useFlex?"flex-grow":"",t.contentClass])},[a.renderSlot(t.$slots,"body",{},void 0,!0)],2),t.hasFooter?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["modal-actions",t.footerClass])},[a.renderSlot(t.$slots,"footer",{},void 0,!0)],2)):a.createCommentVNode("",!0)],2)}const bM=ce(hM,[["render",yM],["__scopeId","data-v-be874eda"]]),wM=a.defineComponent({name:"QPageHeading",props:{backgroundColor:{type:String,default:"green-20"},color:{type:String,default:"white"},fixedTopOffset:{type:Number,default:0}},setup(t){const e=a.ref(!1),n=a.ref(),r=a.ref(),o=()=>{if(r.value){const i=r.value.offsetTop-t.fixedTopOffset;e.value=!!t.fixedTopOffset&&r.value&&window.scrollY>=i,n.value.style.top=e.value?`${t.fixedTopOffset}px`:"",n.value.style.width=e.value?`${r.value.clientWidth}px`:""}};return a.onMounted(()=>{window.addEventListener("resize",o),window.addEventListener("scroll",o)}),{isFixed:e,pageHeading:n,pageHeadingContainer:r,determineFixed:o}}}),vM={class:"flex-grow mb-0"};function CM(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["page-heading-container",{"pt-[4.5rem]":t.isFixed}]),ref:"pageHeadingContainer"},[a.createElementVNode("div",{class:a.normalizeClass(["page-heading flex items-center text-left",`background-${t.backgroundColor}`,`text-${t.color}`,{fixed:t.isFixed}]),ref:"pageHeading"},[a.createElementVNode("h1",vM,[a.renderSlot(t.$slots,"default",{},void 0,!0)]),a.renderSlot(t.$slots,"actions",{},void 0,!0)],2)],2)}const SM=ce(wM,[["render",CM],["__scopeId","data-v-bf9f21a9"]]),kM=a.defineComponent({name:"QPageNavigation",props:{fixedTopOffset:{type:Number,default:0}},setup(){return{}}}),OM={class:"navigation-links"};function EM(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{id:"page-navigation",style:a.normalizeStyle(`top: ${t.fixedTopOffset}px;`)},[a.createElementVNode("div",OM,[a.renderSlot(t.$slots,"default",{},void 0,!0)])],4)}const TM=ce(kM,[["render",EM],["__scopeId","data-v-bddbe9bd"]]),MM=a.defineComponent({name:"QPopover",props:{align:{type:String,default:"left"},hasCaret:{type:Boolean,default:!0},modelValue:{type:Boolean,default:!1},position:{type:String,default:"bottom"},reposition:{type:Boolean,default:!0},size:{type:String,default:"md"},trigger:{type:String,default:"click"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=a.ref(!1),r=a.ref(""),o=a.ref(null),i=a.computed(()=>n.value===!0&&t.reposition===!0?l(t.align):t.align),s=a.computed(()=>n.value===!0&&t.reposition===!0?c(t.position):t.position),l=g=>{if(!o.value||u(o.value.children[1]))return g;const b=o.value.children[0].getBoundingClientRect(),w=o.value.children[1].getBoundingClientRect();if(g==="left"||g==="right"||g==="center"){const C=b.left;return window.innerWidth-C<w.width?"right":"left"}else{const C=b.top;return window.innerHeight-C<w.height?"bottom":"top"}},c=g=>{if(!o.value||u(o.value.children[1]))return g;const b=o.value.children[0].getBoundingClientRect(),w=o.value.children[1].getBoundingClientRect();if(g==="top"||g==="bottom"){const C=b.top;return window.innerHeight-C<w.height?"top":"bottom"}else{const C=b.left;return window.innerWidth-C<w.width?"left":"right"}},u=g=>{const b=g.getBoundingClientRect();return b?b.top>=0&&b.left>=0&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth):!1},d=()=>{(t.trigger==="click"||t.trigger==="both")&&e("update:modelValue",!t.modelValue)},f=()=>{t.trigger!=="click"&&e("update:modelValue",!1)},p=()=>{t.trigger!=="click"&&e("update:modelValue",!0)},h=()=>{var b;const g=(b=o.value)==null?void 0:b.children[0];if(g){const w=g.clientWidth,C=g.clientHeight;switch(i.value){case"left":r.value=`margin-left: ${w/2-10}px;`;break;case"right":r.value=`margin-right: ${w/2-10}px;`;break;case"top":r.value=`margin-top: ${C/2-10}px;`;break;case"bottom":r.value=`margin-bottom: ${C/2-10}px;`;break}}};Xf(o,()=>{e("update:modelValue",!1)});function m(){n.value=!1}function y(){var g;n.value=!0,!u((g=o.value)==null?void 0:g.children[1])&&t.reposition===!0&&h()}return{entered:n,offsetStyle:r,popover:o,alignment:i,positioning:s,getAlignment:l,getPositioning:c,isElementInView:u,onAfterLeave:m,onClick:d,onClickOutside:Xf,onEnter:y,onMouseLeave:f,onMouseOver:p}}});function xM(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"popover",class:"popover-container",onMouseleave:e[0]||(e[0]=(...s)=>t.onMouseLeave&&t.onMouseLeave(...s))},[a.renderSlot(t.$slots,"trigger",{onClick:t.onClick,onMouseOver:t.onMouseOver},void 0,!0),a.createVNode(a.Transition,{name:"fade",onEnter:t.onEnter,onAfterLeave:t.onAfterLeave},{default:a.withCtx(()=>[t.modelValue?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["popover","popover-"+t.alignment,"popover-"+t.size,"popover-on-"+t.positioning,{"has-caret":t.hasCaret}]),style:a.normalizeStyle(t.offsetStyle)},[a.renderSlot(t.$slots,"content",{},void 0,!0)],6)):a.createCommentVNode("",!0)]),_:3},8,["onEnter","onAfterLeave"])],544)}const PM=ce(MM,[["render",xM],["__scopeId","data-v-86f2575d"]]);function tu(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function DM(t){return(...e)=>!t(...e)}function AM(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function Ig(t,e,n,r){return e?t.filter(o=>AM(r(o,n),e)).sort((o,i)=>r(o,n).length-r(i,n).length):t}function IM(t){return t.filter(e=>!e.$isLabel)}function nu(t,e){return n=>n.reduce((r,o)=>o[t]&&o[t].length?(r.push({$groupLabel:o[e],$isLabel:!0}),r.concat(o[t])):r,[])}function NM(t,e,n,r,o){return i=>i.map(s=>{if(!s[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=Ig(s[n],t,e,o);return l.length?{[r]:s[r],[n]:l}:[]})}const Ng=(...t)=>e=>t.reduce((n,r)=>r(n),e);var BM={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return tu(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,e,this.label):Ig(n,e,this.label,this.customLabel):n=this.groupValues?nu(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(DM(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,n){return Ng(NM(e,n,this.groupValues,this.groupLabel,this.customLabel),nu(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Ng(nu(this.groupValues,this.groupLabel),IM)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(tu(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return tu(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const n=this.internalValue.filter(r=>e[this.groupValues].indexOf(r)===-1);this.$emit("update:modelValue",n)}else{let n=e[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},RM={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===e.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},Bg={name:"vue-multiselect",mixins:[BM,RM],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const LM={ref:"tags",class:"multiselect__tags"},VM={class:"multiselect__tags-wrap"},$M={class:"multiselect__spinner"},FM={key:0},HM={class:"multiselect__option"},_M={class:"multiselect__option"},zM=a.createTextVNode("No elements found. Consider changing the search query."),jM={class:"multiselect__option"},ZM=a.createTextVNode("List is empty.");function WM(t,e,n,r,o,i){return a.openBlock(),a.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":i.isAbove,"multiselect--has-options-group":i.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=s=>t.activate()),onBlur:e[15]||(e[15]=s=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=a.withKeys(a.withModifiers(s=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=a.withKeys(a.withModifiers(s=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=a.withKeys(a.withModifiers(s=>t.addPointerElement(s),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=a.withKeys(s=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[a.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[a.createVNode("div",{onMousedown:e[1]||(e[1]=a.withModifiers(s=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),a.renderSlot(t.$slots,"clear",{search:t.search}),a.createVNode("div",LM,[a.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:i.visibleValues,isOpen:t.isOpen},()=>[a.withDirectives(a.createVNode("div",VM,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(i.visibleValues,(s,l)=>a.renderSlot(t.$slots,"tag",{option:s,search:t.search,remove:t.removeElement},()=>[(a.openBlock(),a.createBlock("span",{class:"multiselect__tag",key:l},[a.createVNode("span",{textContent:a.toDisplayString(t.getOptionLabel(s))},null,8,["textContent"]),a.createVNode("i",{tabindex:"1",onKeypress:a.withKeys(a.withModifiers(c=>t.removeElement(s),["prevent"]),["enter"]),onMousedown:a.withModifiers(c=>t.removeElement(s),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[a.vShow,i.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?a.renderSlot(t.$slots,"limit",{key:0},()=>[a.createVNode("strong",{class:"multiselect__strong",textContent:a.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):a.createCommentVNode("v-if",!0)]),a.createVNode(a.Transition,{name:"multiselect__loading"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"loading",{},()=>[a.withDirectives(a.createVNode("div",$M,null,512),[[a.vShow,n.loading]])])]),_:3}),t.searchable?(a.openBlock(),a.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:t.placeholder,style:i.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=s=>t.updateSearch(s.target.value)),onFocus:e[3]||(e[3]=a.withModifiers(s=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=a.withModifiers(s=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=a.withKeys(s=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=a.withKeys(a.withModifiers(s=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=a.withKeys(a.withModifiers(s=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=a.withKeys(a.withModifiers(s=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=a.withKeys(a.withModifiers(s=>t.addPointerElement(s),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):a.createCommentVNode("v-if",!0),i.isSingleLabelVisible?(a.openBlock(),a.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=a.withModifiers((...s)=>t.toggle&&t.toggle(...s),["prevent"]))},[a.renderSlot(t.$slots,"singleLabel",{option:i.singleValue},()=>[a.createTextVNode(a.toDisplayString(t.currentOptionLabel),1)])],32)):a.createCommentVNode("v-if",!0),i.isPlaceholderVisible?(a.openBlock(),a.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=a.withModifiers((...s)=>t.toggle&&t.toggle(...s),["prevent"]))},[a.renderSlot(t.$slots,"placeholder",{},()=>[a.createTextVNode(a.toDisplayString(t.placeholder),1)])],32)):a.createCommentVNode("v-if",!0)],512),a.createVNode(a.Transition,{name:"multiselect"},{default:a.withCtx(()=>[a.withDirectives(a.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...s)=>t.activate&&t.activate(...s)),tabindex:"-1",onMousedown:e[13]||(e[13]=a.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[a.createVNode("ul",{class:"multiselect__content",style:i.contentStyle,role:"listbox",id:"listbox-"+t.id},[a.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(a.openBlock(),a.createBlock("li",FM,[a.createVNode("span",HM,[a.renderSlot(t.$slots,"maxElements",{},()=>[a.createTextVNode("Maximum of "+a.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):a.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(a.openBlock(!0),a.createBlock(a.Fragment,{key:1},a.renderList(t.filteredOptions,(s,l)=>(a.openBlock(),a.createBlock("li",{class:"multiselect__element",key:l,id:t.id+"-"+l,role:s&&(s.$isLabel||s.$isDisabled)?null:"option"},[s&&(s.$isLabel||s.$isDisabled)?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock("span",{key:0,class:[t.optionHighlight(l,s),"multiselect__option"],onClick:a.withModifiers(c=>t.select(s),["stop"]),onMouseenter:a.withModifiers(c=>t.pointerSet(l),["self"]),"data-select":s&&s.isTag?t.tagPlaceholder:i.selectLabelText,"data-selected":i.selectedLabelText,"data-deselect":i.deselectLabelText},[a.renderSlot(t.$slots,"option",{option:s,search:t.search,index:l},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(s)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),s&&(s.$isLabel||s.$isDisabled)?(a.openBlock(),a.createBlock("span",{key:1,"data-select":t.groupSelect&&i.selectGroupLabelText,"data-deselect":t.groupSelect&&i.deselectGroupLabelText,class:[t.groupHighlight(l,s),"multiselect__option"],onMouseenter:a.withModifiers(c=>t.groupSelect&&t.pointerSet(l),["self"]),onMousedown:a.withModifiers(c=>t.selectGroup(s),["prevent"])},[a.renderSlot(t.$slots,"option",{option:s,search:t.search,index:l},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(s)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):a.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):a.createCommentVNode("v-if",!0),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",_M,[a.renderSlot(t.$slots,"noResult",{search:t.search},()=>[zM])])],512),[[a.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",jM,[a.renderSlot(t.$slots,"noOptions",{},()=>[ZM])])],512),[[a.vShow,n.showNoOptions&&(t.options.length===0||i.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),a.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[a.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}Bg.render=WM;const UM=a.defineComponent({name:"QSelect",components:{QBadge:xi,VueMultiselect:Bg},props:{id:{type:String,default:""},options:{type:[Array,Object],required:!0},modelValue:{type:[String,Number,Array,Object],default:""},trackBy:{type:String,default:"id"},label:{type:String,default:"label"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},taggable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},groupValues:{type:String,default:""},groupLabel:{type:String,default:""},groupSelectable:{type:Boolean,default:!0},hasCheckboxes:{type:Boolean,default:!1},size:{type:String,default:"lg"},info:{type:String,default:""},allowEmpty:{type:Boolean,default:!0},noResultMessage:{type:String,default:""},showExpanded:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:""},expand:{type:Boolean,default:!1},showSelectedCount:{type:Boolean,default:!1},truncateTag:{type:Boolean,default:!1},limitShown:{type:Number,default:null},validationMethod:{type:Function,default:()=>!0},showTags:{type:Boolean,default:!1}},emits:["update:model-value"],setup(t,{slots:e,emit:n}){const{t:r}=ys(),o=a.ref(null),i=a.ref(null),s=a.ref(t.modelValue),l=a.ref(""),c=a.computed(()=>t.noResultMessage||r("HC_PRESS_ENTER_TO_CREATE_A_TAG")),u=a.computed(()=>t.tagPlaceholder||r("HC_PRESS_ENTER_TO_CREATE_A_TAG")),d=a.computed(()=>!!e.action),f=a.computed(()=>t.taggable||t.showTags),p=w=>{n("update:model-value",w)},h=w=>{l.value=w},m=async w=>{const C={label:w,name:w,added:!0};if(!t.validationMethod(C)){await a.nextTick(),o.value.search=w;return}},y=w=>{typeof w=="number"&&w>=0?s.value.splice(w,1):s.value=[],a.nextTick(()=>{n("update:model-value",s.value)})},g=w=>{t.multiple&&s.value&&w.length===s.value.length&&a.nextTick(()=>{s.value=[],n("update:model-value",s.value)})},b=async()=>{if(i.value&&t.searchable){await a.nextTick();const w=i.value.querySelector(".multiselect__content-wrapper"),C=i.value.querySelector(".multiselect__input");C.style.width=w.clientWidth+"px"}};return a.watch(()=>t.modelValue,w=>{s.value=w}),{currentSelect:o,search:l,selected:s,hasAction:d,noResultsText:c,noTagFound:u,useTags:f,addTag:m,onOpen:b,onRemove:g,onUpdateValue:p,removeElement:y,searchChange:h}}}),KM=["id"],GM={key:1,class:"searchable-placeholder"},qM={class:"option-name"},YM={key:0,class:"tag-container"},JM={key:0},QM={class:a.normalizeClass(["tag-name text-sm leading-normal pr-2 capitalize"])},XM={key:1},ex=["onClick"],tx={key:0,class:"text-blue-20 text-xs count"},nx={key:1,class:"multiselect__single flex w-full items-center"},rx={key:0,class:"text-blue-20 text-xs ml-2"},ox={key:2,class:"multiselect__single flex w-full items-center"},ix={class:"option-selected text-gray-40"},sx=["title"],ax={key:1,class:"option-description text-xs pt-0.5 truncate"};function lx(t,e,n,r,o,i){const s=a.resolveComponent("q-icon"),l=a.resolveComponent("q-badge"),c=a.resolveComponent("vue-multiselect");return a.openBlock(),a.createElementBlock("div",{id:t.id+"-containers",class:"control custom-select",ref:"currentContainer"},[a.createVNode(c,{id:t.id,ref:"currentSelect",modelValue:t.selected,"onUpdate:modelValue":[e[1]||(e[1]=u=>t.selected=u),e[4]||(e[4]=u=>t.onUpdateValue(u))],options:t.options,searchable:t.searchable,multiple:t.multiple,taggable:t.taggable,label:t.label,"track-by":t.trackBy,"group-values":t.groupValues,"group-label":t.groupLabel,"group-select":t.groupSelectable,class:a.normalizeClass([{"has-checkboxes":t.hasCheckboxes},{"select-multiple":!!t.multiple},{"select-taggable":!!t.taggable||!!t.showTags},{"select-expand":t.expand},{"select-show-count":!!t.showSelectedCount},{"select-search":!!t.search},{"select-searchable":t.searchable},t.searchable?"cursor-text":"cursor-default","q-select rounded","select-"+t.size]),disabled:t.disabled,"allow-empty":t.allowEmpty,"clear-on-select":!0,"close-on-select":!t.hasCheckboxes&&!t.multiple,"select-label":"","deselect-label":"","selected-label":"","select-group-label":"","deselect-group-label":"","show-tags":t.showTags,"tag-placeholder":t.noTagFound,placeholder:t.placeholder,"preserve-search":!0,"reset-after":!1,onOpen:t.onOpen,onRemove:e[2]||(e[2]=u=>t.onRemove(u)),onTag:t.addTag,onSearchChange:e[3]||(e[3]=u=>t.searchChange(u))},{caret:a.withCtx(({toggle:u})=>[a.createVNode(s,{icon:"chevron-down",type:"line",onMousedown:a.withModifiers(u,["prevent"])},null,8,["onMousedown"]),t.searchable?(a.openBlock(),a.createBlock(s,{key:0,class:"search-icon",color:"gray-40",icon:"search",type:""})):a.createCommentVNode("",!0),t.searchable&&(t.multiple&&!t.selected.length||!t.multiple&&!t.selected)?(a.openBlock(),a.createElementBlock("div",GM,a.toDisplayString(t.placeholder),1)):a.createCommentVNode("",!0)]),noResult:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.noResultsText),1)]),singleLabel:a.withCtx(({option:u})=>[u.icon?(a.openBlock(),a.createBlock(s,{key:0,icon:u.icon},null,8,["icon"])):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"optionPrefix",{},void 0,!0),a.createElementVNode("span",qM,a.toDisplayString(u.label||u.name||u),1)]),selection:a.withCtx(({values:u,isOpen:d})=>{var f,p;return[t.useTags?(a.openBlock(),a.createElementBlock("div",YM,[t.groupValues&&t.options[0][t.groupValues].length===u.length?(a.openBlock(),a.createElementBlock("div",JM,[a.createElementVNode("div",{class:a.normalizeClass(["multiselect__tag inline-flex items-center justify-center rounded me-2",{"tag-gray":!!t.showTags}])},[a.createElementVNode("span",QM,a.toDisplayString(t.groupLabel),1),a.createElementVNode("span",{class:"tag-remove cursor-pointer shrink",tabindex:"1",onMousedown:e[0]||(e[0]=a.withModifiers(h=>t.removeElement(t.options[0][t.groupValues]),["prevent","stop"]))},[a.createVNode(s,{icon:"close",color:"white",class:a.normalizeClass(["tag-close flex rounded-full p-1",t.showTags?"bg-inkwell-30":"bg-blue-40"]),type:"line"},null,8,["class"])],32)],2)])):(a.openBlock(),a.createElementBlock("div",XM,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(!t.expand&&t.limitShown?u.slice(0,t.limitShown):u,(h,m)=>(a.openBlock(),a.createElementBlock("div",{key:m,class:a.normalizeClass(["multiselect__tag !inline-flex items-center justify-center rounded mr-2",{"tag-added":h.added},{"tag-gray":!!t.showTags},h.tagClass?h.tagClass:""])},[h.icon?(a.openBlock(),a.createBlock(s,{key:0,icon:h.icon,class:"tag-icon"},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("span",{class:a.normalizeClass(["tag-name text-sm leading-normal pr-2",{"tag-truncate":t.truncateTag}])},a.toDisplayString(h.label||h.name),3),a.createElementVNode("span",{class:"tag-remove cursor-pointer shrink",tabindex:"1",onClick:y=>t.removeElement(m)},[a.createVNode(s,{icon:"close-thick",color:"white",size:"sm",class:a.normalizeClass(["!p-[0.3rem] tag-close flex rounded-full p-1",h.closeTagClass?h.closeTagClass:t.showTags?"bg-inkwell-30":t.taggable&&h.added?"bg-green-40":"bg-blue-40"]),type:"line"},null,8,["class"])],8,ex)],2))),128)),!t.expand&&t.showSelectedCount&&t.multiple&&u.length>t.limitShown?(a.openBlock(),a.createElementBlock("span",tx," + "+a.toDisplayString(u.length-t.limitShown)+" more... ",1)):a.createCommentVNode("",!0)]))])):a.createCommentVNode("",!0),!t.showTags&&!t.taggable&&t.multiple&&u.length?(a.openBlock(),a.createElementBlock("div",nx,[a.createElementVNode("span",{class:a.normalizeClass(["option-selected",{capitalize:t.groupValues&&t.options[0][t.groupValues].length===u.length}])},a.toDisplayString(t.groupValues&&t.options[0][t.groupValues].length===u.length?t.groupLabel:u[0].label),3),t.limitShown&&t.limitShown<u.length&&(!t.groupValues&&u.length!==t.limitShown||t.groupValues&&t.options[0][t.groupValues].length!==u.length)?(a.openBlock(),a.createElementBlock("span",rx," + "+a.toDisplayString(u.length-t.limitShown)+" more... ",1)):a.createCommentVNode("",!0)])):d&&!t.useTags&&!t.multiple?(a.openBlock(),a.createElementBlock("div",ox,[a.createElementVNode("span",ix,a.toDisplayString(((f=t.selected)==null?void 0:f.label)||((p=t.selected)==null?void 0:p.name)||""),1)])):a.createCommentVNode("",!0)]}),option:a.withCtx(({option:u,search:d})=>[a.createElementVNode("div",{class:a.normalizeClass(["flex items-center w-full",{"option-search":u.label===d},{"option-disabled":u.isDisabled}]),title:u.label?u.label:""},[t.multiple&&t.hasCheckboxes?(a.openBlock(),a.createBlock(l,{key:0,"has-icon":!0,class:"selected-checkbox mr-2",shape:"square"},{icon:a.withCtx(()=>[a.createVNode(s,{icon:"check",color:"white",type:"line"})]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["option-icon-name flex items-center",!u.$groupLabel&&t.groupLabel?"pl-0":""])},[u.icon?(a.openBlock(),a.createBlock(s,{key:0,icon:u.icon,class:"mr-1"},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["option-name",[u.optionClass?u.optionClass:""]])},a.toDisplayString(u.$groupLabel||u.label||u.name||u),3),u.description?(a.openBlock(),a.createElementBlock("div",ax,a.toDisplayString(u.description),1)):a.createCommentVNode("",!0),t.multiple&&t.hasCheckboxes?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:2,icon:"check",size:"sm",type:"line",color:"inkwell-30",class:"selected-icon"}))],2)],10,sx)]),_:3},8,["id","modelValue","options","searchable","multiple","taggable","label","track-by","group-values","group-label","group-select","class","disabled","allow-empty","close-on-select","show-tags","tag-placeholder","placeholder","onOpen","onTag"])],8,KM)}const cx=ce(UM,[["render",lx],["__scopeId","data-v-e0d3121b"]]);var Re={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},Cl={AND:"and",OR:"or"};function Rg(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ux(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
77
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function ux(t,e){if(t){if(typeof t=="string")return Lg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lg(t,e)}}function Lg(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ru={filter:function(e,n,r,o,i){var s=[];if(!e)return s;var l=Rg(e),c;try{for(l.s();!(c=l.n()).done;){var u=c.value;if(typeof u=="string"){if(this.filters[o](u,r,i)){s.push(u);continue}}else{var d=Rg(n),f;try{for(d.s();!(f=d.n()).done;){var p=f.value,h=M.resolveFieldData(u,p);if(this.filters[o](h,r,i)){s.push(u);break}}}catch(m){d.e(m)}finally{d.f()}}}}catch(m){l.e(m)}finally{l.f()}return s},filters:{startsWith:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=M.removeAccents(n.toString()).toLocaleLowerCase(r),i=M.removeAccents(e.toString()).toLocaleLowerCase(r);return i.slice(0,o.length)===o},contains:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=M.removeAccents(n.toString()).toLocaleLowerCase(r),i=M.removeAccents(e.toString()).toLocaleLowerCase(r);return i.indexOf(o)!==-1},notContains:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=M.removeAccents(n.toString()).toLocaleLowerCase(r),i=M.removeAccents(e.toString()).toLocaleLowerCase(r);return i.indexOf(o)===-1},endsWith:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=M.removeAccents(n.toString()).toLocaleLowerCase(r),i=M.removeAccents(e.toString()).toLocaleLowerCase(r);return i.indexOf(o,i.length-o.length)!==-1},equals:function(e,n,r){return n==null||n===""?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()===n.getTime():M.removeAccents(e.toString()).toLocaleLowerCase(r)==M.removeAccents(n.toString()).toLocaleLowerCase(r)},notEquals:function(e,n,r){return n==null||n===""?!1:e==null?!0:e.getTime&&n.getTime?e.getTime()!==n.getTime():M.removeAccents(e.toString()).toLocaleLowerCase(r)!=M.removeAccents(n.toString()).toLocaleLowerCase(r)},in:function(e,n){if(n==null||n.length===0)return!0;for(var r=0;r<n.length;r++)if(M.equals(e,n[r]))return!0;return!1},between:function(e,n){return n==null||n[0]==null||n[1]==null?!0:e==null?!1:e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]},lt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<n.getTime():e<n},lte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n},gt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>n.getTime():e>n},gte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n},dateIs:function(e,n){return n==null?!0:e==null?!1:e.toDateString()===n.toDateString()},dateIsNot:function(e,n){return n==null?!0:e==null?!1:e.toDateString()!==n.toDateString()},dateBefore:function(e,n){return n==null?!0:e==null?!1:e.getTime()<n.getTime()},dateAfter:function(e,n){return n==null?!0:e==null?!1:e.getTime()>n.getTime()}},register:function(e,n){this.filters[e]=n}},dx=`
76
+ */const aT="9.9.1";function lT(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Fc().__INTLIFY_PROD_DEVTOOLS__=!1)}const yg=lt.__EXTEND_POINT__,sr=Hc(yg),Ft={FALLBACK_TO_ROOT:yg,NOT_SUPPORTED_PRESERVE:sr(),NOT_SUPPORTED_FORMATTER:sr(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:sr(),NOT_SUPPORTED_GET_CHOICE_INDEX:sr(),COMPONENT_NAME_LEGACY_COMPATIBLE:sr(),NOT_FOUND_PARENT_SCOPE:sr(),IGNORE_OBJ_FLATTEN:sr(),NOTICE_DROP_ALLOW_COMPOSITION:sr()},cT={[Ft.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ft.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Ft.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Ft.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Ft.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Ft.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Ft.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ft.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ft.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see šŸ‘‰ https://tinyurl.com/2p97mcze"};function Kc(t,...e){return Vm(cT[t],...e)}const bg=We.__EXTEND_POINT__,bt=Hc(bg),Ie={UNEXPECTED_RETURN_TYPE:bg,INVALID_ARGUMENT:bt(),MUST_BE_CALL_SETUP_TOP:bt(),NOT_INSTALLED:bt(),NOT_AVAILABLE_IN_LEGACY_MODE:bt(),REQUIRED_VALUE:bt(),INVALID_VALUE:bt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:bt(),NOT_INSTALLED_WITH_PROVIDE:bt(),UNEXPECTED_ERROR:bt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:bt(),BRIDGE_SUPPORT_VUE_2_ONLY:bt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:bt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:bt(),__EXTEND_POINT__:bt()};function ms(t,...e){return Zm(t,null,process.env.NODE_ENV!=="production"?{messages:uT,args:e}:void 0)}const uT={[Ie.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Ie.INVALID_ARGUMENT]:"Invalid argument",[Ie.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Ie.NOT_INSTALLED]:"Need to install with `app.use` function",[Ie.UNEXPECTED_ERROR]:"Unexpected error",[Ie.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Ie.REQUIRED_VALUE]:"Required in value: {0}",[Ie.INVALID_VALUE]:"Invalid value",[Ie.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Ie.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Ie.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Ie.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Ie.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ā€˜i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Ie.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Gc=Bn("__translateVNode"),qc=Bn("__datetimeParts"),Yc=Bn("__numberParts"),Jc=Bn("__enableEmitter"),Qc=Bn("__disableEmitter"),dT=Bn("__setPluralRules"),fT=Bn("__injectWithOption"),Xc=Bn("__dispose");function gs(t){if(!de(t))return t;for(const e in t)if(pl(t,e))if(!e.includes("."))de(t[e])&&gs(t[e]);else{const n=e.split("."),r=n.length-1;let o=t,i=!1;for(let s=0;s<r;s++){if(n[s]in o||(o[n[s]]={}),!de(o[n[s]])){process.env.NODE_ENV!=="production"&&jo(Kc(Ft.IGNORE_OBJ_FLATTEN,{key:n[s]})),i=!0;break}o=o[n[s]]}i||(o[n[r]]=t[e],delete t[e]),de(o[n[r]])&&gs(o[n[r]])}return t}function wg(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=e,s=le(n)?n:Be(r)?{}:{[t]:{}};if(Be(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:u}=l;c?(s[c]=s[c]||{},ml(u,s[c])):ml(u,s)}else z(l)&&ml(JSON.parse(l),s)}),o==null&&i)for(const l in s)pl(s,l)&&gs(s[l]);return s}function vg(t){return t.type}function pT(t,e,n){let r=de(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=wg(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(de(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(de(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function Cg(t){return a.createVNode(a.Text,null,t,0)}const Sg="__INTLIFY_META__",kg=()=>[],hT=()=>!1;let Og=0;function Eg(t){return(e,n,r,o)=>t(n,r,a.getCurrentInstance()||void 0,o)}const mT=()=>{const t=a.getCurrentInstance();let e=null;return t&&(e=vg(t)[Sg])?{[Sg]:e}:null};function gT(t={},e){const{__root:n,__injectWithOption:r}=t,o=n===void 0,i=t.flatJson,s=Nn?a.ref:a.shallowRef;let l=Ae(t.inheritLocale)?t.inheritLocale:!0;const c=s(n&&l?n.locale.value:z(t.locale)?t.locale:yl),u=s(n&&l?n.fallbackLocale.value:z(t.fallbackLocale)||Be(t.fallbackLocale)||le(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:c.value),d=s(wg(c.value,t)),f=s(le(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),p=s(le(t.numberFormats)?t.numberFormats:{[c.value]:{}});let h=n?n.missingWarn:Ae(t.missingWarn)||dl(t.missingWarn)?t.missingWarn:!0,m=n?n.fallbackWarn:Ae(t.fallbackWarn)||dl(t.fallbackWarn)?t.fallbackWarn:!0,y=n?n.fallbackRoot:Ae(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,b=Se(t.missing)?t.missing:null,w=Se(t.missing)?Eg(t.missing):null,C=Se(t.postTranslation)?t.postTranslation:null,v=n?n.warnHtmlMessage:Ae(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const S=n?n.modifiers:le(t.modifiers)?t.modifiers:{};let k=t.pluralRules||n&&n.pluralRules,T;T=(()=>{o&&ng(null);const x={version:aT,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:S,pluralRules:k,missing:w===null?void 0:w,missingWarn:h,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:C===null?void 0:C,warnHtmlMessage:v,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};x.datetimeFormats=f.value,x.numberFormats=p.value,x.__datetimeFormatters=le(T)?T.__datetimeFormatters:void 0,x.__numberFormatters=le(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(x.__v_emitter=le(T)?T.__v_emitter:void 0);const I=tT(x);return o&&ng(I),I})(),hs(T,c.value,u.value);function N(){return[c.value,u.value,d.value,f.value,p.value]}const B=a.computed({get:()=>c.value,set:x=>{c.value=x,T.locale=c.value}}),$=a.computed({get:()=>u.value,set:x=>{u.value=x,T.fallbackLocale=u.value,hs(T,c.value,x)}}),j=a.computed(()=>d.value),ee=a.computed(()=>f.value),F=a.computed(()=>p.value);function W(){return Se(C)?C:null}function te(x){C=x,T.postTranslation=x}function se(){return b}function qe(x){x!==null&&(w=Eg(x)),b=x,T.missing=w}function pt(x,I){return x!=="translate"||!I.resolvedMessage}const rt=(x,I,ne,Ee,Zn,Ei)=>{N();let Nr;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(T.fallbackContext=n?eT():void 0),Nr=x(T)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(T.fallbackContext=void 0)}if(ne!=="translate exists"&&Je(Nr)&&Nr===gl||ne==="translate exists"&&!Nr){const[Wn,P]=I();if(process.env.NODE_ENV!=="production"&&n&&z(Wn)&&pt(ne,P)&&(y&&(wl(m,Wn)||og(h,Wn))&&jo(Kc(Ft.FALLBACK_TO_ROOT,{key:Wn,type:ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:_}=T;_&&y&&_.emit("fallback",{type:ne,key:Wn,to:"global",groupId:`${ne}:${Wn}`})}return n&&y?Ee(n):Zn(Wn)}else{if(Ei(Nr))return Nr;throw ms(Ie.UNEXPECTED_RETURN_TYPE)}};function ot(...x){return rt(I=>Reflect.apply(sg,null,[I,...x]),()=>Zc(...x),"translate",I=>Reflect.apply(I.t,I,[...x]),I=>I,I=>z(I))}function rn(...x){const[I,ne,Ee]=x;if(Ee&&!de(Ee))throw ms(Ie.INVALID_ARGUMENT);return ot(I,ne,Qe({resolvedMessage:!0},Ee||{}))}function It(...x){return rt(I=>Reflect.apply(dg,null,[I,...x]),()=>Wc(...x),"datetime format",I=>Reflect.apply(I.d,I,[...x]),()=>bl,I=>z(I))}function Nt(...x){return rt(I=>Reflect.apply(hg,null,[I,...x]),()=>Uc(...x),"number format",I=>Reflect.apply(I.n,I,[...x]),()=>bl,I=>z(I))}function on(x){return x.map(I=>z(I)||Je(I)||Ae(I)?Cg(String(I)):I)}const sn={normalize:on,interpolate:x=>x,type:"vnode"};function Dr(...x){return rt(I=>{let ne;const Ee=I;try{Ee.processor=sn,ne=Reflect.apply(sg,null,[Ee,...x])}finally{Ee.processor=null}return ne},()=>Zc(...x),"translate",I=>I[Gc](...x),I=>[Cg(I)],I=>Be(I))}function kn(...x){return rt(I=>Reflect.apply(hg,null,[I,...x]),()=>Uc(...x),"number format",I=>I[Yc](...x),kg,I=>z(I)||Be(I))}function Ar(...x){return rt(I=>Reflect.apply(dg,null,[I,...x]),()=>Wc(...x),"datetime format",I=>I[qc](...x),kg,I=>z(I)||Be(I))}function vi(x){k=x,T.pluralRules=k}function bo(x,I){return rt(()=>{if(!x)return!1;const ne=z(I)?I:c.value,Ee=Ir(ne),Zn=T.messageResolver(Ee,x);return Zo(Zn)||$t(Zn)||z(Zn)},()=>[x],"translate exists",ne=>Reflect.apply(ne.te,ne,[x,I]),hT,ne=>Ae(ne))}function Ci(x){let I=null;const ne=qm(T,u.value,c.value);for(let Ee=0;Ee<ne.length;Ee++){const Zn=d.value[ne[Ee]]||{},Ei=T.messageResolver(Zn,x);if(Ei!=null){I=Ei;break}}return I}function Si(x){const I=Ci(x);return I??(n?n.tm(x)||{}:{})}function Ir(x){return d.value[x]||{}}function wo(x,I){if(i){const ne={[x]:I};for(const Ee in ne)pl(ne,Ee)&&gs(ne[Ee]);I=ne[x]}d.value[x]=I,T.messages=d.value}function ki(x,I){d.value[x]=d.value[x]||{};const ne={[x]:I};if(i)for(const Ee in ne)pl(ne,Ee)&&gs(ne[Ee]);I=ne[x],ml(I,d.value[x]),T.messages=d.value}function Oi(x){return f.value[x]||{}}function an(x,I){f.value[x]=I,T.datetimeFormats=f.value,pg(T,x,I)}function On(x,I){f.value[x]=Qe(f.value[x]||{},I),T.datetimeFormats=f.value,pg(T,x,I)}function vo(x){return p.value[x]||{}}function jn(x,I){p.value[x]=I,T.numberFormats=p.value,gg(T,x,I)}function Co(x,I){p.value[x]=Qe(p.value[x]||{},I),T.numberFormats=p.value,gg(T,x,I)}Og++,n&&Nn&&(a.watch(n.locale,x=>{l&&(c.value=x,T.locale=x,hs(T,c.value,u.value))}),a.watch(n.fallbackLocale,x=>{l&&(u.value=x,T.fallbackLocale=x,hs(T,c.value,u.value))}));const ye={id:Og,locale:B,fallbackLocale:$,get inheritLocale(){return l},set inheritLocale(x){l=x,x&&n&&(c.value=n.locale.value,u.value=n.fallbackLocale.value,hs(T,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:j,get modifiers(){return S},get pluralRules(){return k||{}},get isGlobal(){return o},get missingWarn(){return h},set missingWarn(x){h=x,T.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(x){m=x,T.fallbackWarn=m},get fallbackRoot(){return y},set fallbackRoot(x){y=x},get fallbackFormat(){return g},set fallbackFormat(x){g=x,T.fallbackFormat=g},get warnHtmlMessage(){return v},set warnHtmlMessage(x){v=x,T.warnHtmlMessage=x},get escapeParameter(){return E},set escapeParameter(x){E=x,T.escapeParameter=x},t:ot,getLocaleMessage:Ir,setLocaleMessage:wo,mergeLocaleMessage:ki,getPostTranslationHandler:W,setPostTranslationHandler:te,getMissingHandler:se,setMissingHandler:qe,[dT]:vi};return ye.datetimeFormats=ee,ye.numberFormats=F,ye.rt=rn,ye.te=bo,ye.tm=Si,ye.d=It,ye.n=Nt,ye.getDateTimeFormat=Oi,ye.setDateTimeFormat=an,ye.mergeDateTimeFormat=On,ye.getNumberFormat=vo,ye.setNumberFormat=jn,ye.mergeNumberFormat=Co,ye[fT]=r,ye[Gc]=Dr,ye[qc]=Ar,ye[Yc]=kn,process.env.NODE_ENV!=="production"&&(ye[Jc]=x=>{T.__v_emitter=x},ye[Qc]=()=>{T.__v_emitter=void 0}),ye}const eu={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function yT({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,o)=>[...r,...o.type===a.Fragment?o.children:[o]],[]):e.reduce((n,r)=>{const o=t[r];return o&&(n[r]=o()),n},{})}function Tg(t){return a.Fragment}Qe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Je(t)||!isNaN(t)}},eu);function bT(t){return Be(t)&&!z(t[0])}function Mg(t,e,n,r){const{slots:o,attrs:i}=e;return()=>{const s={part:!0};let l={};t.locale&&(s.locale=t.locale),z(t.format)?s.key=t.format:de(t.format)&&(z(t.format.key)&&(s.key=t.format.key),l=Object.keys(t.format).reduce((p,h)=>n.includes(h)?Qe({},p,{[h]:t.format[h]}):p,{}));const c=r(t.value,s,l);let u=[s.key];Be(c)?u=c.map((p,h)=>{const m=o[p.type],y=m?m({[p.type]:p.value,index:h,parts:c}):[p.value];return bT(y)&&(y[0].key=`${p.type}-${h}`),y}):z(c)&&(u=[c]);const d=Qe({},i),f=z(t.tag)||de(t.tag)?t.tag:Tg();return a.h(f,d,u)}}Qe({value:{type:Number,required:!0},format:{type:[String,Object]}},eu),Qe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},eu);function xg(t,e){}const wT=Bn("global-vue-i18n");function ys(t={}){const e=a.getCurrentInstance();if(e==null)throw ms(Ie.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw ms(Ie.NOT_INSTALLED);const n=vT(e),r=ST(n),o=vg(e),i=CT(t,o);if(i==="global")return pT(r,t,o),r;if(i==="parent"){let c=kT(n,e,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&jo(Kc(Ft.NOT_FOUND_PARENT_SCOPE)),c=r),c}const s=n;let l=s.__getInstance(e);if(l==null){const c=Qe({},t);"__i18n"in o&&(c.__i18n=o.__i18n),r&&(c.__root=r),l=gT(c),s.__composerExtend&&(l[Xc]=s.__composerExtend(l)),ET(s,e,l),s.__setInstance(e,l)}return l}function vT(t){{const e=a.inject(t.isCE?wT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw ms(t.isCE?Ie.NOT_INSTALLED_WITH_PROVIDE:Ie.UNEXPECTED_ERROR);return e}}function CT(t,e){return fl(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function ST(t){return t.mode==="composition"?t.global:t.global.__composer}function kT(t,e,n=!1){let r=null;const o=e.root;let i=OT(e,n);for(;i!=null;){const s=t;if(t.mode==="composition"&&(r=s.__getInstance(i)),r!=null||o===i)break;i=i.parent}return r}function OT(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function ET(t,e,n){let r=null;a.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=gE();const o=n;o[Jc]&&o[Jc](r),r.on("*",xg)}},e),a.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",xg),o[Qc]&&o[Qc](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=o[Xc];i&&(i(),delete o[Xc])},e)}if(lT(),YE(PE),JE(qm),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Fc();t.__INTLIFY__=!0,$E(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Pg={content:["./index.html","./src/App.vue","./src/**/*.{vue,js,ts,jsx,tsx}"],darkMode:"class",important:!1,theme:{fontFamily:{sans:["Lato","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue","sans-serif"],gellar:["GellerHeadline","-apple-system","BlinkMacSystemFont","Georgia","Times",'"Times New Roman"',"serif"]},fontSize:{tiniest:"0.5rem",tiny:"0.625rem",xxs:"0.6875rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",md:"1.25rem",lg:"1.5rem",xl:"2.25rem","2xl":"3rem","3xl":"3.75rem","4xl":"4.5rem"},colors:{success:"#0f6a13","success-light":"#e9f7da","idle-pass":"#d6ecc1",error:"#c20017","error-light":"#ffe4e8",warning:"#ab9b00","warning-light":"#fef8de",info:"#004494","info-light":"#dbf3ff","green-quore":"#5db407","blue-sky":"#2898e0","blue-quore":"#2f363c",complaint:"#c20017",recurring:"#006b00",workorder:"#F67B00",gray:{0:"#f9f9fa","00":"#f4f4f4",7:"#eff1f2",10:"#ebeef0",20:"#dde1e4",30:"#cdd4d8",40:"#bcc5cb"},inkwell:{0:"#8d9aa5",10:"#6c7b89",20:"#515d67",30:"#2f363c",40:"#121517"},maroon:{0:"#f7d7db",10:"#d27989",20:"#ad314e",30:"#880028",40:"#630023"},pink:{0:"#ffdbe5",10:"#ff89ae",20:"#ff377a",30:"#cd0059",40:"#9c0053"},red:{0:"#ffe4e8",10:"#ffa9b2",20:"#ff6e76",30:"#ff3333",40:"#c20017"},orange:{0:"#FFF7DB",10:"#FCD379",20:"#F89F1B",30:"#F67B00",40:"#F56200"},yellow:{0:"#fff8de",10:"#f9e991",20:"#eedc00",30:"#ccbb00",40:"#ab9b00"},green:{0:"#e9f7da",10:"#9cd662",20:"#5db407",30:"#249000",40:"#006b00"},teal:{0:"#dcf2f1",10:"#64c7c0",20:"#0f9b8f",30:"#007667",40:"#005244"},blue:{0:"#dbf3ff",10:"#7cc7f0",20:"#2898e0",30:"#0a69ba",40:"#004594"},purple:{0:"#f2e3f2",10:"#d29cd5",20:"#b062b7",30:"#8d3399",40:"#430675"},transparent:"transparent",current:"currentColor",white:"#ffffff",black:"#000000"},screens:{sm:"576px",md:"768px",lg:"992px",xl:"1200px"},configViewer:{typographyExample:"Smarter Team, Happier Guest"},extend:{boxShadow:{solid:"0 0 0 2px rgba(255, 255, 255, 1)"},maxHeight:{none:"none"},colors:{"primary-50":"rgb(var(--primary-50))","primary-100":"rgb(var(--primary-100))","primary-200":"rgb(var(--primary-200))","primary-300":"rgb(var(--primary-300))","primary-400":"rgb(var(--primary-400))","primary-500":"rgb(var(--primary-500))","primary-600":"rgb(var(--primary-600))","primary-700":"rgb(var(--primary-700))","primary-800":"rgb(var(--primary-800))","primary-900":"rgb(var(--primary-900))","primary-950":"rgb(var(--primary-950))","surface-0":"rgb(var(--surface-0))","surface-50":"rgb(var(--surface-50))","surface-100":"rgb(var(--surface-100))","surface-200":"rgb(var(--surface-200))","surface-300":"rgb(var(--surface-300))","surface-400":"rgb(var(--surface-400))","surface-500":"rgb(var(--surface-500))","surface-600":"rgb(var(--surface-600))","surface-700":"rgb(var(--surface-700))","surface-800":"rgb(var(--surface-800))","surface-900":"rgb(var(--surface-900))","surface-950":"rgb(var(--surface-950))"}}},safelist:["border-solid","border-dashed","border-dotted","border-double","border-gray-20","border-gray-30","border-gray-40","border-inkwell-0","border-inkwell-10","border-inkwell-20","border-inkwell-30","border-inkwell-40",{pattern:/(bg|text)-+/,variants:["hover"]}],variants:{extend:{}},plugins:[]},vl={...Pg.theme.screens},TT={sm:Number(vl.sm.replace("px","")),md:Number(vl.md.replace("px","")),lg:Number(vl.lg.replace("px","")),xl:Number(vl.xl.replace("px",""))},ar=M6(TT),Yr=a.reactive({xs:ar.smaller("sm"),sm:ar.greaterOrEqual("sm"),md:ar.greaterOrEqual("md"),lg:ar.greaterOrEqual("lg"),xl:ar.greaterOrEqual("xl"),"sm-md":ar.between("sm","md"),"md-lg":ar.between("md","lg"),"lg-xl":ar.between("lg","xl")}),MT=a.defineComponent({name:"QGrid",components:{QBadge:xi},props:{id:{type:String,default:""},columns:{type:Number,default:4},exclude:{type:Array,default:()=>[]},filters:{type:Array,default:()=>[]},filtersAction:{type:Function,default:()=>{}},filtersCount:{type:Number,default:0},gridData:{type:Array,default:()=>[]},hasSearch:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},noResultMessage:{type:String,default:""},searchPlaceholder:{type:String,default:""},skeletonRows:{type:Number,default:6},statusClasses:{type:Object}},emits:["select-grid-item","filters-updated"],setup(t,{emit:e}){const{t:n}=ys(),r=a.ref(""),o=a.computed(()=>{const f=t.filters,p=$c(t.gridData,r.value,f,void 0,void 0,t.exclude);return e("filters-updated",p),p}),i=a.computed(()=>t.columns?`q-grid-cols-${t.columns}`:""),s=a.computed(()=>o.value.length%t.columns===0),l=a.computed(()=>t.noResultMessage||n("HC_NO_RESULTS_FOUND")),c=a.computed(()=>{const f=[],p={};return[...Array(t.skeletonRows*t.columns)].forEach(()=>{f.push(p)}),f});return{searchBy:r,filteredGridData:o,gridColumnCount:i,lastRowWillBeFilled:s,noResultsText:l,skeletonData:c,getCellClasses:f=>{const p=o.value.length?o.value:c.value,h=Math.ceil(p.length/t.columns),m=Math.floor(f/t.columns),y=m===0,g=m===h-1,b=f===p.length-1,w=m===h-2,C=f+t.columns>=p.length;return{"!border-t-[0.09375rem]":y,"!border-b-[0.09375rem]":g||C&&w,"!border-l-[0.09375rem]":f%t.columns===0,"!border-r-[0.09375rem]":f%t.columns===t.columns-1||b,"!rounded-tl-md":y&&f%t.columns===0,"!rounded-tr-md":y&&(f%t.columns===t.columns-1||b),"!rounded-bl-md":g&&f%t.columns===0,"!rounded-br-md":b||w&&p.length%t.columns!==0&&f%t.columns===t.columns-1}},selectGridItem:f=>{o.value.find(p=>{p.active&&(p.active=!1)}),f.active=!0,e("select-grid-item",f)},mq:Yr}}}),xT=["id"],PT={key:0,class:"grid-filters"},DT={class:"grid-search"},AT={for:"grid-search",class:"search-label"},IT={key:0,class:"grid-filter-actions"},NT={class:"relative flex"},BT={class:"grid-wrapper"},RT=["onClick"],LT={key:1,class:"no-grid-result"};function VT(t,e,n,r,o,i){const s=a.resolveComponent("q-icon"),l=a.resolveComponent("q-input"),c=a.resolveComponent("q-badge");return a.openBlock(),a.createElementBlock("div",{id:t.id,class:a.normalizeClass(["grid-container h-full w-full",{"is-loading":t.loading}])},[t.hasSearch?a.renderSlot(t.$slots,"search-and-filters",{key:0},()=>[a.createElementVNode("div",{class:a.normalizeClass(["search-and-filters !pr-0",{"bg-gray-30 animate-shimmer":t.loading}])},[t.loading?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",PT,[a.createElementVNode("div",DT,[t.hasSearch?a.renderSlot(t.$slots,"grid-search",{key:0},()=>[a.createElementVNode("label",AT,[a.createVNode(l,{id:"grid-search",modelValue:t.searchBy,"onUpdate:modelValue":e[0]||(e[0]=u=>t.searchBy=u),"hide-clear":!!t.mq.md,placeholder:t.searchPlaceholder||t.$t("HC_SEARCH"),class:"text-base placeholder-inkwell-0","control-class":"!border-0","icon-position":"left"},{default:a.withCtx(()=>[a.createVNode(s,{color:"inkwell-0",icon:"search",size:"md",type:"",class:"cursor-default"})]),_:1},8,["modelValue","hide-clear","placeholder"])])],!0):a.createCommentVNode("",!0)]),Object.keys(t.filters).length?(a.openBlock(),a.createElementBlock("div",IT,[a.renderSlot(t.$slots,"filters",{},()=>[a.createElementVNode("div",NT,[a.createVNode(s,{class:"filters-icon",color:"inkwell-0",icon:"filter",size:"md",onClick:t.filtersAction},null,8,["onClick"]),t.filtersCount?(a.openBlock(),a.createBlock(c,{key:0,class:"filters-count",color:t.mq.md?"white":"gray-0"},{text:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.filtersCount),1)]),_:1},8,["color"])):a.createCommentVNode("",!0)])],!0)])):a.createCommentVNode("",!0)]))],2)],!0):a.createCommentVNode("",!0),a.createElementVNode("div",BT,[t.filteredGridData.length||t.loading?(a.openBlock(),a.createElementBlock("ul",{key:0,class:a.normalizeClass(["grid mb-4 md:mb-0",t.gridColumnCount])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.loading?t.skeletonData:t.filteredGridData,(u,d)=>(a.openBlock(),a.createElementBlock("li",{key:u.id,class:a.normalizeClass(["cursor-pointer truncate","cell",t.statusClasses&&t.statusClasses[u.status],u.active==!0?"active":"",t.mq.md&&t.getCellClasses(d),{"bg-gray-10 animate-shimmer":t.loading}]),onClick:a.withModifiers(f=>t.selectGridItem(u),["prevent"])},a.toDisplayString(u.name),11,RT))),128))],2)):(a.openBlock(),a.createElementBlock("p",LT,a.toDisplayString(t.noResultsText),1))])],10,xT)}const $T=ce(MT,[["render",VT],["__scopeId","data-v-cfe195f6"]]),Dg="eye",Ag="eye-slash",FT=a.defineComponent({name:"QInput",inheritAttrs:!1,props:{modelValue:{type:[Number,Object,String],default:""},type:{type:String,default:"text",validator:t=>["email","number","password","phone","search","text"].includes(t)},placeholder:{type:String,default:""},maxlength:{type:Number,default:null},size:{type:String,default:"md"},status:{type:String,default:""},controlClass:{type:String,default:""},inputClass:{type:String,default:""},disabled:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},hideClear:{type:Boolean,default:!1},iconPosition:{type:String,default:"right"}},emits:["update:model-value","update-type"],setup(t,{emit:e}){const n=a.useSlots(),r=a.ref(null),o=a.ref(!1),i=a.ref(t.type==="password"?Dg:""),s=a.computed(()=>!!t.disabled),l=a.computed(()=>{const m=i.value;return!!t.modelValue&&!s.value&&(d.value&&t.iconPosition==="left"||!m)}),c=a.computed(()=>["control flex items-center",{focused:!!o.value},{disabled:s.value},{[`has-icon-${t.iconPosition}`]:!!t.iconPosition},t.controlClass,{["size-"+t.size]:t.size}]),u=a.computed(()=>["input",{[t.status]:t.status&&!s.value},{[t.inputClass]:!!t.inputClass},{populated:!!t.modelValue}]),d=a.computed(()=>!!(n!=null&&n.default)),f=()=>{const m=t.type==="password",y=t.type==="text"&&i.value===Ag;(m||y)&&p()},p=()=>{const m=t.type==="text"?"password":"text";i.value=m==="text"?Ag:Dg,e("update-type",m)};return{currentInput:r,focused:o,icon:i,rootClasses:c,inputClasses:u,isDisabled:s,showClearIcon:l,isSlotAvailable:d,onClickIcon:f,togglePasswordVisibility:p,updateValue:m=>{e("update:model-value",m.target.value)},mq:Yr}}}),HT=["id","type","disabled","autocomplete","maxlength","value","placeholder"];function _T(t,e,n,r,o,i){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createElementBlock("div",{ref:"currentInput",class:a.normalizeClass(t.rootClasses)},[a.createElementVNode("input",a.mergeProps({id:String(t.$attrs.id),ref:String(t.$attrs.id),type:t.type,disabled:t.isDisabled,class:t.inputClasses,autocomplete:t.autocomplete,maxlength:t.maxlength,value:t.modelValue,placeholder:t.placeholder},t.$attrs,{onInput:e[0]||(e[0]=l=>t.updateValue(l)),onFocusin:e[1]||(e[1]=l=>t.focused=!t.focused),onFocusout:e[2]||(e[2]=l=>t.focused=!t.focused),onBlur:e[3]||(e[3]=l=>t.focused=!0)}),null,16,HT),t.isSlotAvailable||t.icon?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["flex",{"order-first pr-2":t.iconPosition==="left"}])},[a.renderSlot(t.$slots,"default",a.normalizeProps(a.guardReactiveProps({icon:t.icon,onClickIcon:t.onClickIcon})),()=>[a.createVNode(s,{icon:t.icon,size:"md",class:"cursor-pointer",onClick:t.onClickIcon},null,8,["icon","onClick"])],!0)],2)):a.createCommentVNode("",!0),t.showClearIcon&&!t.hideClear?(a.openBlock(),a.createElementBlock("div",{key:1,class:"close cursor-pointer flex order-3",onClick:e[4]||(e[4]=l=>t.$emit("update:model-value","")),onMousedown:e[5]||(e[5]=a.withModifiers(()=>{},["prevent"]))},[t.mq.md?(a.openBlock(),a.createBlock(s,{key:0,icon:"close",size:"sm",type:"line"})):(a.openBlock(),a.createBlock(s,{key:1,icon:"delete-circle",color:"inkwell-0",size:"md",type:"fill"}))],32)):a.createCommentVNode("",!0)],2)}const zT=ce(FT,[["render",_T],["__scopeId","data-v-320db1d7"]]),jT=a.defineComponent({name:"QList",components:{QBadge:xi},props:{id:{type:String,default:""},data:{type:Array,default:()=>[]},dragSearch:{type:Boolean,default:!1},exclude:{type:Array,default:()=>[]},filters:{type:Array,default:()=>[]},filtersCount:{type:Number,default:0},hasSearch:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},noResultMessage:{type:String,default:""},searchText:{type:String,default:""},searchPlaceholder:{type:String,default:""},skeletonRows:{type:Number,default:6},type:{type:String,default:"row"}},emits:["filters-action","filters-updated","click:list-item"],setup(t,{emit:e}){const{y:n}=P6(),r=a.ref(0),o=a.ref(!1),i=a.ref(Yr.md?!0:!t.dragSearch),s={type:"keyframe",ease:"linear",duration:0,delay:0},l=a.ref(null),c=a.ref(null),{motionProperties:u}=L2(l),{push:d}=I2(),f=a.ref(""),p=a.ref(window.innerHeight),h=a.computed(()=>{const v=$c(t.data,m.value,t.filters,void 0,void 0,t.exclude);return e("filters-updated",v),v}),m=a.computed(()=>t.searchText||f.value),y=()=>{p.value=window.innerHeight},g=v=>{const{dragging:E}=v;E?b(v):w(v)};t.dragSearch&&!Yr.md&&Lf(g,{domTarget:l,filterTaps:!0,useTouch:!0,delay:100});const b=v=>{if(v.tap)return;o.value=!0;const{movement:[,E]}=v;E<0},w=v=>{if(v.tap||v.direction[0]===1||v.direction[0]===-1)return;const{movement:[,E]}=v;if(r.value=r.value+E,!i.value&&v.direction[1]>0){C(),o.value=!1;return}else n.value>p.value/3?(i.value=!1,d("y",0,u,s)):n.value===0&&i.value===!1&&d("y",0,u,s)},C=async()=>{i.value=!0,await a.nextTick(),d("y",c.value.offsetHeight,u,s)};return a.onMounted(()=>{i.value||window.addEventListener("resize",y)}),a.onUnmounted(()=>{i.value||window.removeEventListener("resize",y)}),{isDragging:o,isSearchVisible:i,listRef:l,searchRef:c,searchValue:f,windowHeight:p,filteredData:h,searchBy:m,onDragged:C,onWindowResize:y,mq:Yr}}}),bs=t=>(a.pushScopeId("data-v-aa2ac3b9"),t=t(),a.popScopeId(),t),ZT=["id"],WT={key:0},UT={class:"search-and-filters"},KT={class:"list-search"},GT={for:"list-search",class:"search-label"},qT={key:0,class:"list-filters"},YT={class:"relative flex"},JT={key:1,class:"search-and-filters loading-state"},QT=[bs(()=>a.createElementVNode("div",{class:"loading-search"},null,-1)),bs(()=>a.createElementVNode("div",{class:"loading-filters"},null,-1))],XT=bs(()=>a.createElementVNode("hr",{class:"search-separator"},null,-1)),eM={ref:"listRef",class:"outer-list-wrapper"},tM={key:0},nM={key:0,class:"list-wrapper"},rM=["onClick"],oM={key:1,class:"list ordered-list"},iM=["onClick"],sM={key:1,class:"no-results"},aM={key:1,class:"list-wrapper"},lM={class:"list loading-list"},cM=[bs(()=>a.createElementVNode("div",{class:"loading-top mb-3"},null,-1)),bs(()=>a.createElementVNode("div",{class:"loading-bottom"},null,-1))];function uM(t,e,n,r,o,i){const s=a.resolveComponent("q-icon"),l=a.resolveComponent("q-input"),c=a.resolveComponent("q-badge");return a.openBlock(),a.createElementBlock("div",{id:t.id,class:"q-list"},[t.hasSearch||t.filters.length?a.renderSlot(t.$slots,"search-and-filters",{key:0},()=>[a.createVNode(a.Transition,{name:"slide-down"},{default:a.withCtx(()=>[t.isSearchVisible||!t.dragSearch?(a.openBlock(),a.createElementBlock("div",{key:0,ref:"searchRef",class:a.normalizeClass(["search-and-filter-wrapper",{"fixed right-4 left-4 z-10 bg-white":t.isSearchVisible&&t.dragSearch}])},[t.loading?(a.openBlock(),a.createElementBlock("div",JT,QT)):(a.openBlock(),a.createElementBlock("div",WT,[a.createElementVNode("div",UT,[a.createElementVNode("div",KT,[t.hasSearch?a.renderSlot(t.$slots,"list-search",{key:0},()=>[a.createElementVNode("label",GT,[a.createVNode(l,{id:"list-search",modelValue:t.searchValue,"onUpdate:modelValue":e[0]||(e[0]=u=>t.searchValue=u),"hide-clear":!!t.mq.md,placeholder:t.searchPlaceholder||t.$t("HC_SEARCH"),class:"text-base placeholder-inkwell-0","control-class":"!border-0 !pl-2 !pr-1.5 md:!px-3","icon-position":"left",size:"xs"},{default:a.withCtx(()=>[a.createVNode(s,{color:"inkwell-0",icon:"search",size:"md",type:"",class:"cursor-default"})]),_:1},8,["modelValue","hide-clear","placeholder"])])],!0):a.createCommentVNode("",!0)]),t.filters.length&&t.type==="row"?(a.openBlock(),a.createElementBlock("div",qT,[a.renderSlot(t.$slots,"list-filters",{},()=>[a.createElementVNode("div",YT,[a.createVNode(s,{class:"filters-icon",color:"inkwell-0",icon:"filter",size:"md",onClick:e[1]||(e[1]=u=>t.$emit("filters-action"))}),t.filtersCount?(a.openBlock(),a.createBlock(c,{key:0,class:"filters-count",color:"gray-0"},{text:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.filtersCount),1)]),_:1})):a.createCommentVNode("",!0)])],!0)])):a.createCommentVNode("",!0)])])),a.renderSlot(t.$slots,"search-separator",{},()=>[XT],!0)],2)):a.createCommentVNode("",!0)]),_:3})],!0):a.createCommentVNode("",!0),a.createElementVNode("div",eM,[t.loading?(a.openBlock(),a.createElementBlock("div",aM,[a.createElementVNode("ul",lM,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.skeletonRows,u=>(a.openBlock(),a.createElementBlock("li",{key:u,class:"list-item"},cM))),128))])])):(a.openBlock(),a.createElementBlock("div",tM,[t.filteredData.length?(a.openBlock(),a.createElementBlock("div",nM,[t.type!=="ordered"?(a.openBlock(),a.createElementBlock("ul",{key:0,class:a.normalizeClass(["list",`${t.type}-list`,{"select-none":t.isDragging}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.filteredData,(u,d)=>(a.openBlock(),a.createElementBlock("li",{key:d,class:"list-item",onClick:f=>t.$emit("click:list-item",u)},[a.renderSlot(t.$slots,"list-item",a.normalizeProps(a.guardReactiveProps({item:u})),()=>[a.createTextVNode(a.toDisplayString(u),1)],!0)],8,rM))),128))],2)):(a.openBlock(),a.createElementBlock("ol",oM,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.filteredData,(u,d)=>(a.openBlock(),a.createElementBlock("li",{key:d,class:"list-item",onClick:f=>t.$emit("click:list-item",u)},[a.renderSlot(t.$slots,"list-item",a.normalizeProps(a.guardReactiveProps({item:u})),()=>[a.createTextVNode(a.toDisplayString(u),1)],!0)],8,iM))),128))]))])):(a.openBlock(),a.createElementBlock("div",sM,[a.renderSlot(t.$slots,"no-results",{},()=>[a.createElementVNode("p",null,a.toDisplayString(t.noResultMessage||t.$t("HC_NO_RESULTS_FOUND")),1)],!0)]))]))],512)],8,ZT)}const dM=ce(jT,[["render",uM],["__scopeId","data-v-aa2ac3b9"]]),fM=a.defineComponent({name:"QModal",components:{QIcon:J2},props:{id:{type:String,default:"q-modal"},closeButtonClass:{type:String,default:""},containerClass:{type:String,default:"h-fit min-h-fit"},dismissible:{type:Boolean,default:!0},dismissibleOverlay:{type:Boolean,default:!0},dismissText:{type:String,default:""},overlay:{type:String,default:"white-transparent"},size:{type:String,default:"md"},showCancelLink:{type:Boolean,default:!1},hasBuildingBg:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){a.provide("size",t.size);const n=()=>{t.dismissible&&e("close")};return a.onUnmounted(()=>{document.body.classList.remove("scroll-disabled")}),a.onMounted(()=>{document.body.classList.add("scroll-disabled")}),{onCloseModal:n}}});function pM(t,e,n,r,o,i){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createElementBlock("div",{ref:"currentModal",class:a.normalizeClass(["q-modal",t.overlay]),onKeydown:e[3]||(e[3]=a.withKeys((...l)=>t.onCloseModal&&t.onCloseModal(...l),["escape"]))},[a.createElementVNode("div",a.mergeProps({class:"overlay"},{[a.toHandlerKey(t.dismissibleOverlay&&"click")]:e[0]||(e[0]=(...l)=>t.onCloseModal&&t.onCloseModal(...l))}),null,16),a.createElementVNode("div",{class:a.normalizeClass(["modal-container flex flex-col relative","modal-"+t.size,t.containerClass,{"building-background":t.hasBuildingBg}])},[t.dismissible?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["modal-close-button",t.closeButtonClass]),onClick:e[1]||(e[1]=(...l)=>t.onCloseModal&&t.onCloseModal(...l))},[a.createVNode(s,{icon:"close",type:"line",color:"gray-40"})],2)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default",{},void 0,!0),t.showCancelLink?(a.openBlock(),a.createElementBlock("a",{key:1,class:"modal-close-link",href:"#",onClick:e[2]||(e[2]=a.withModifiers(l=>t.$emit("close"),["prevent"]))},a.toDisplayString(t.$t("HC_CANCEL")),1)):a.createCommentVNode("",!0)],2)],34)}const hM=ce(fM,[["render",pM],["__scopeId","data-v-8867a052"]]),mM=a.defineComponent({name:"QModalContent",props:{useFlex:{type:Boolean,default:!1},contentClass:{type:String,default:""},footerClass:{type:String,default:""}},setup(t,{slots:e}){const n=a.inject("size"),r=a.computed(()=>!!e.header),o=a.computed(()=>!!e.footer);return{modalSize:n,hasHeader:r,hasFooter:o}}}),gM={key:0,class:"modal-title"},yM={class:"text-lg pb-3 font-bold leading-6"};function bM(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["modal-content",t.useFlex?"flex flex-col min-h-full":"","modal-"+t.modalSize])},[t.hasHeader?(a.openBlock(),a.createElementBlock("div",gM,[a.createElementVNode("h2",yM,[a.renderSlot(t.$slots,"header",{},void 0,!0)])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["modal-body",t.useFlex?"flex-grow":"",t.contentClass])},[a.renderSlot(t.$slots,"body",{},void 0,!0)],2),t.hasFooter?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["modal-actions",t.footerClass])},[a.renderSlot(t.$slots,"footer",{},void 0,!0)],2)):a.createCommentVNode("",!0)],2)}const wM=ce(mM,[["render",bM],["__scopeId","data-v-be874eda"]]),vM=a.defineComponent({name:"QPageHeading",props:{backgroundColor:{type:String,default:"green-20"},color:{type:String,default:"white"},fixedTopOffset:{type:Number,default:0}},setup(t){const e=a.ref(!1),n=a.ref(),r=a.ref(),o=()=>{if(r.value){const i=r.value.offsetTop-t.fixedTopOffset;e.value=!!t.fixedTopOffset&&r.value&&window.scrollY>=i,n.value.style.top=e.value?`${t.fixedTopOffset}px`:"",n.value.style.width=e.value?`${r.value.clientWidth}px`:""}};return a.onMounted(()=>{window.addEventListener("resize",o),window.addEventListener("scroll",o)}),{isFixed:e,pageHeading:n,pageHeadingContainer:r,determineFixed:o}}}),CM={class:"flex-grow mb-0"};function SM(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["page-heading-container",{"pt-[4.5rem]":t.isFixed}]),ref:"pageHeadingContainer"},[a.createElementVNode("div",{class:a.normalizeClass(["page-heading flex items-center text-left",`background-${t.backgroundColor}`,`text-${t.color}`,{fixed:t.isFixed}]),ref:"pageHeading"},[a.createElementVNode("h1",CM,[a.renderSlot(t.$slots,"default",{},void 0,!0)]),a.renderSlot(t.$slots,"actions",{},void 0,!0)],2)],2)}const kM=ce(vM,[["render",SM],["__scopeId","data-v-bf9f21a9"]]),OM=a.defineComponent({name:"QPageNavigation",props:{fixedTopOffset:{type:Number,default:0}},setup(){return{}}}),EM={class:"navigation-links"};function TM(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{id:"page-navigation",style:a.normalizeStyle(`top: ${t.fixedTopOffset}px;`)},[a.createElementVNode("div",EM,[a.renderSlot(t.$slots,"default",{},void 0,!0)])],4)}const MM=ce(OM,[["render",TM],["__scopeId","data-v-bddbe9bd"]]),xM=a.defineComponent({name:"QPopover",props:{align:{type:String,default:"left"},hasCaret:{type:Boolean,default:!0},modelValue:{type:Boolean,default:!1},position:{type:String,default:"bottom"},reposition:{type:Boolean,default:!0},size:{type:String,default:"md"},trigger:{type:String,default:"click"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=a.ref(!1),r=a.ref(""),o=a.ref(null),i=a.computed(()=>n.value===!0&&t.reposition===!0?l(t.align):t.align),s=a.computed(()=>n.value===!0&&t.reposition===!0?c(t.position):t.position),l=g=>{if(!o.value||u(o.value.children[1]))return g;const b=o.value.children[0].getBoundingClientRect(),w=o.value.children[1].getBoundingClientRect();if(g==="left"||g==="right"||g==="center"){const C=b.left;return window.innerWidth-C<w.width?"right":"left"}else{const C=b.top;return window.innerHeight-C<w.height?"bottom":"top"}},c=g=>{if(!o.value||u(o.value.children[1]))return g;const b=o.value.children[0].getBoundingClientRect(),w=o.value.children[1].getBoundingClientRect();if(g==="top"||g==="bottom"){const C=b.top;return window.innerHeight-C<w.height?"top":"bottom"}else{const C=b.left;return window.innerWidth-C<w.width?"left":"right"}},u=g=>{const b=g.getBoundingClientRect();return b?b.top>=0&&b.left>=0&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth):!1},d=()=>{(t.trigger==="click"||t.trigger==="both")&&e("update:modelValue",!t.modelValue)},f=()=>{t.trigger!=="click"&&e("update:modelValue",!1)},p=()=>{t.trigger!=="click"&&e("update:modelValue",!0)},h=()=>{var b;const g=(b=o.value)==null?void 0:b.children[0];if(g){const w=g.clientWidth,C=g.clientHeight;switch(i.value){case"left":r.value=`margin-left: ${w/2-10}px;`;break;case"right":r.value=`margin-right: ${w/2-10}px;`;break;case"top":r.value=`margin-top: ${C/2-10}px;`;break;case"bottom":r.value=`margin-bottom: ${C/2-10}px;`;break}}};Xf(o,()=>{e("update:modelValue",!1)});function m(){n.value=!1}function y(){var g;n.value=!0,!u((g=o.value)==null?void 0:g.children[1])&&t.reposition===!0&&h()}return{entered:n,offsetStyle:r,popover:o,alignment:i,positioning:s,getAlignment:l,getPositioning:c,isElementInView:u,onAfterLeave:m,onClick:d,onClickOutside:Xf,onEnter:y,onMouseLeave:f,onMouseOver:p}}});function PM(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"popover",class:"popover-container",onMouseleave:e[0]||(e[0]=(...s)=>t.onMouseLeave&&t.onMouseLeave(...s))},[a.renderSlot(t.$slots,"trigger",{onClick:t.onClick,onMouseOver:t.onMouseOver},void 0,!0),a.createVNode(a.Transition,{name:"fade",onEnter:t.onEnter,onAfterLeave:t.onAfterLeave},{default:a.withCtx(()=>[t.modelValue?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["popover","popover-"+t.alignment,"popover-"+t.size,"popover-on-"+t.positioning,{"has-caret":t.hasCaret}]),style:a.normalizeStyle(t.offsetStyle)},[a.renderSlot(t.$slots,"content",{},void 0,!0)],6)):a.createCommentVNode("",!0)]),_:3},8,["onEnter","onAfterLeave"])],544)}const DM=ce(xM,[["render",PM],["__scopeId","data-v-86f2575d"]]);function tu(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function AM(t){return(...e)=>!t(...e)}function IM(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function Ig(t,e,n,r){return e?t.filter(o=>IM(r(o,n),e)).sort((o,i)=>r(o,n).length-r(i,n).length):t}function NM(t){return t.filter(e=>!e.$isLabel)}function nu(t,e){return n=>n.reduce((r,o)=>o[t]&&o[t].length?(r.push({$groupLabel:o[e],$isLabel:!0}),r.concat(o[t])):r,[])}function BM(t,e,n,r,o){return i=>i.map(s=>{if(!s[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=Ig(s[n],t,e,o);return l.length?{[r]:s[r],[n]:l}:[]})}const Ng=(...t)=>e=>t.reduce((n,r)=>r(n),e);var RM={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return tu(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,e,this.label):Ig(n,e,this.label,this.customLabel):n=this.groupValues?nu(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(AM(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,n){return Ng(BM(e,n,this.groupValues,this.groupLabel,this.customLabel),nu(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Ng(nu(this.groupValues,this.groupLabel),NM)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(tu(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return tu(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const n=this.internalValue.filter(r=>e[this.groupValues].indexOf(r)===-1);this.$emit("update:modelValue",n)}else{let n=e[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},LM={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===e.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},Bg={name:"vue-multiselect",mixins:[RM,LM],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const VM={ref:"tags",class:"multiselect__tags"},$M={class:"multiselect__tags-wrap"},FM={class:"multiselect__spinner"},HM={key:0},_M={class:"multiselect__option"},zM={class:"multiselect__option"},jM=a.createTextVNode("No elements found. Consider changing the search query."),ZM={class:"multiselect__option"},WM=a.createTextVNode("List is empty.");function UM(t,e,n,r,o,i){return a.openBlock(),a.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":i.isAbove,"multiselect--has-options-group":i.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=s=>t.activate()),onBlur:e[15]||(e[15]=s=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=a.withKeys(a.withModifiers(s=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=a.withKeys(a.withModifiers(s=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=a.withKeys(a.withModifiers(s=>t.addPointerElement(s),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=a.withKeys(s=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[a.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[a.createVNode("div",{onMousedown:e[1]||(e[1]=a.withModifiers(s=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),a.renderSlot(t.$slots,"clear",{search:t.search}),a.createVNode("div",VM,[a.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:i.visibleValues,isOpen:t.isOpen},()=>[a.withDirectives(a.createVNode("div",$M,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(i.visibleValues,(s,l)=>a.renderSlot(t.$slots,"tag",{option:s,search:t.search,remove:t.removeElement},()=>[(a.openBlock(),a.createBlock("span",{class:"multiselect__tag",key:l},[a.createVNode("span",{textContent:a.toDisplayString(t.getOptionLabel(s))},null,8,["textContent"]),a.createVNode("i",{tabindex:"1",onKeypress:a.withKeys(a.withModifiers(c=>t.removeElement(s),["prevent"]),["enter"]),onMousedown:a.withModifiers(c=>t.removeElement(s),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[a.vShow,i.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?a.renderSlot(t.$slots,"limit",{key:0},()=>[a.createVNode("strong",{class:"multiselect__strong",textContent:a.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):a.createCommentVNode("v-if",!0)]),a.createVNode(a.Transition,{name:"multiselect__loading"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"loading",{},()=>[a.withDirectives(a.createVNode("div",FM,null,512),[[a.vShow,n.loading]])])]),_:3}),t.searchable?(a.openBlock(),a.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:t.placeholder,style:i.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=s=>t.updateSearch(s.target.value)),onFocus:e[3]||(e[3]=a.withModifiers(s=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=a.withModifiers(s=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=a.withKeys(s=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=a.withKeys(a.withModifiers(s=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=a.withKeys(a.withModifiers(s=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=a.withKeys(a.withModifiers(s=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=a.withKeys(a.withModifiers(s=>t.addPointerElement(s),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):a.createCommentVNode("v-if",!0),i.isSingleLabelVisible?(a.openBlock(),a.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=a.withModifiers((...s)=>t.toggle&&t.toggle(...s),["prevent"]))},[a.renderSlot(t.$slots,"singleLabel",{option:i.singleValue},()=>[a.createTextVNode(a.toDisplayString(t.currentOptionLabel),1)])],32)):a.createCommentVNode("v-if",!0),i.isPlaceholderVisible?(a.openBlock(),a.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=a.withModifiers((...s)=>t.toggle&&t.toggle(...s),["prevent"]))},[a.renderSlot(t.$slots,"placeholder",{},()=>[a.createTextVNode(a.toDisplayString(t.placeholder),1)])],32)):a.createCommentVNode("v-if",!0)],512),a.createVNode(a.Transition,{name:"multiselect"},{default:a.withCtx(()=>[a.withDirectives(a.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...s)=>t.activate&&t.activate(...s)),tabindex:"-1",onMousedown:e[13]||(e[13]=a.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[a.createVNode("ul",{class:"multiselect__content",style:i.contentStyle,role:"listbox",id:"listbox-"+t.id},[a.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(a.openBlock(),a.createBlock("li",HM,[a.createVNode("span",_M,[a.renderSlot(t.$slots,"maxElements",{},()=>[a.createTextVNode("Maximum of "+a.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):a.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(a.openBlock(!0),a.createBlock(a.Fragment,{key:1},a.renderList(t.filteredOptions,(s,l)=>(a.openBlock(),a.createBlock("li",{class:"multiselect__element",key:l,id:t.id+"-"+l,role:s&&(s.$isLabel||s.$isDisabled)?null:"option"},[s&&(s.$isLabel||s.$isDisabled)?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock("span",{key:0,class:[t.optionHighlight(l,s),"multiselect__option"],onClick:a.withModifiers(c=>t.select(s),["stop"]),onMouseenter:a.withModifiers(c=>t.pointerSet(l),["self"]),"data-select":s&&s.isTag?t.tagPlaceholder:i.selectLabelText,"data-selected":i.selectedLabelText,"data-deselect":i.deselectLabelText},[a.renderSlot(t.$slots,"option",{option:s,search:t.search,index:l},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(s)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),s&&(s.$isLabel||s.$isDisabled)?(a.openBlock(),a.createBlock("span",{key:1,"data-select":t.groupSelect&&i.selectGroupLabelText,"data-deselect":t.groupSelect&&i.deselectGroupLabelText,class:[t.groupHighlight(l,s),"multiselect__option"],onMouseenter:a.withModifiers(c=>t.groupSelect&&t.pointerSet(l),["self"]),onMousedown:a.withModifiers(c=>t.selectGroup(s),["prevent"])},[a.renderSlot(t.$slots,"option",{option:s,search:t.search,index:l},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(s)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):a.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):a.createCommentVNode("v-if",!0),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",zM,[a.renderSlot(t.$slots,"noResult",{search:t.search},()=>[jM])])],512),[[a.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",ZM,[a.renderSlot(t.$slots,"noOptions",{},()=>[WM])])],512),[[a.vShow,n.showNoOptions&&(t.options.length===0||i.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),a.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[a.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}Bg.render=UM;const KM=a.defineComponent({name:"QSelect",components:{QBadge:xi,VueMultiselect:Bg},props:{id:{type:String,default:""},options:{type:[Array,Object],required:!0},modelValue:{type:[String,Number,Array,Object],default:""},trackBy:{type:String,default:"id"},label:{type:String,default:"label"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},taggable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},groupValues:{type:String,default:""},groupLabel:{type:String,default:""},groupSelectable:{type:Boolean,default:!0},hasCheckboxes:{type:Boolean,default:!1},size:{type:String,default:"lg"},info:{type:String,default:""},allowEmpty:{type:Boolean,default:!0},noResultMessage:{type:String,default:""},showExpanded:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:""},expand:{type:Boolean,default:!1},showSelectedCount:{type:Boolean,default:!1},truncateTag:{type:Boolean,default:!1},limitShown:{type:Number,default:null},validationMethod:{type:Function,default:()=>!0},showTags:{type:Boolean,default:!1}},emits:["update:model-value"],setup(t,{slots:e,emit:n}){const{t:r}=ys(),o=a.ref(null),i=a.ref(null),s=a.ref(t.modelValue),l=a.ref(""),c=a.computed(()=>t.noResultMessage||r("HC_PRESS_ENTER_TO_CREATE_A_TAG")),u=a.computed(()=>t.tagPlaceholder||r("HC_PRESS_ENTER_TO_CREATE_A_TAG")),d=a.computed(()=>!!e.action),f=a.computed(()=>t.taggable||t.showTags),p=w=>{n("update:model-value",w)},h=w=>{l.value=w},m=async w=>{const C={label:w,name:w,added:!0};if(!t.validationMethod(C)){await a.nextTick(),o.value.search=w;return}},y=w=>{typeof w=="number"&&w>=0?s.value.splice(w,1):s.value=[],a.nextTick(()=>{n("update:model-value",s.value)})},g=w=>{t.multiple&&s.value&&w.length===s.value.length&&a.nextTick(()=>{s.value=[],n("update:model-value",s.value)})},b=async()=>{if(i.value&&t.searchable){await a.nextTick();const w=i.value.querySelector(".multiselect__content-wrapper"),C=i.value.querySelector(".multiselect__input");C.style.width=w.clientWidth+"px"}};return a.watch(()=>t.modelValue,w=>{s.value=w}),{currentSelect:o,search:l,selected:s,hasAction:d,noResultsText:c,noTagFound:u,useTags:f,addTag:m,onOpen:b,onRemove:g,onUpdateValue:p,removeElement:y,searchChange:h}}}),GM=["id"],qM={key:1,class:"searchable-placeholder"},YM={class:"option-name"},JM={key:0,class:"tag-container"},QM={key:0},XM={class:a.normalizeClass(["tag-name text-sm leading-normal pr-2 capitalize"])},ex={key:1},tx=["onClick"],nx={key:0,class:"text-blue-20 text-xs count"},rx={key:1,class:"multiselect__single flex w-full items-center"},ox={key:0,class:"text-blue-20 text-xs ml-2"},ix={key:2,class:"multiselect__single flex w-full items-center"},sx={class:"option-selected text-gray-40"},ax=["title"],lx={key:1,class:"option-description text-xs pt-0.5 truncate"};function cx(t,e,n,r,o,i){const s=a.resolveComponent("q-icon"),l=a.resolveComponent("q-badge"),c=a.resolveComponent("vue-multiselect");return a.openBlock(),a.createElementBlock("div",{id:t.id+"-containers",class:"control custom-select",ref:"currentContainer"},[a.createVNode(c,{id:t.id,ref:"currentSelect",modelValue:t.selected,"onUpdate:modelValue":[e[1]||(e[1]=u=>t.selected=u),e[4]||(e[4]=u=>t.onUpdateValue(u))],options:t.options,searchable:t.searchable,multiple:t.multiple,taggable:t.taggable,label:t.label,"track-by":t.trackBy,"group-values":t.groupValues,"group-label":t.groupLabel,"group-select":t.groupSelectable,class:a.normalizeClass([{"has-checkboxes":t.hasCheckboxes},{"select-multiple":!!t.multiple},{"select-taggable":!!t.taggable||!!t.showTags},{"select-expand":t.expand},{"select-show-count":!!t.showSelectedCount},{"select-search":!!t.search},{"select-searchable":t.searchable},t.searchable?"cursor-text":"cursor-default","q-select rounded","select-"+t.size]),disabled:t.disabled,"allow-empty":t.allowEmpty,"clear-on-select":!0,"close-on-select":!t.hasCheckboxes&&!t.multiple,"select-label":"","deselect-label":"","selected-label":"","select-group-label":"","deselect-group-label":"","show-tags":t.showTags,"tag-placeholder":t.noTagFound,placeholder:t.placeholder,"preserve-search":!0,"reset-after":!1,onOpen:t.onOpen,onRemove:e[2]||(e[2]=u=>t.onRemove(u)),onTag:t.addTag,onSearchChange:e[3]||(e[3]=u=>t.searchChange(u))},{caret:a.withCtx(({toggle:u})=>[a.createVNode(s,{icon:"chevron-down",type:"line",onMousedown:a.withModifiers(u,["prevent"])},null,8,["onMousedown"]),t.searchable?(a.openBlock(),a.createBlock(s,{key:0,class:"search-icon",color:"gray-40",icon:"search",type:""})):a.createCommentVNode("",!0),t.searchable&&(t.multiple&&!t.selected.length||!t.multiple&&!t.selected)?(a.openBlock(),a.createElementBlock("div",qM,a.toDisplayString(t.placeholder),1)):a.createCommentVNode("",!0)]),noResult:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.noResultsText),1)]),singleLabel:a.withCtx(({option:u})=>[u.icon?(a.openBlock(),a.createBlock(s,{key:0,icon:u.icon},null,8,["icon"])):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"optionPrefix",{},void 0,!0),a.createElementVNode("span",YM,a.toDisplayString(u.label||u.name||u),1)]),selection:a.withCtx(({values:u,isOpen:d})=>{var f,p;return[t.useTags?(a.openBlock(),a.createElementBlock("div",JM,[t.groupValues&&t.options[0][t.groupValues].length===u.length?(a.openBlock(),a.createElementBlock("div",QM,[a.createElementVNode("div",{class:a.normalizeClass(["multiselect__tag inline-flex items-center justify-center rounded me-2",{"tag-gray":!!t.showTags}])},[a.createElementVNode("span",XM,a.toDisplayString(t.groupLabel),1),a.createElementVNode("span",{class:"tag-remove cursor-pointer shrink",tabindex:"1",onMousedown:e[0]||(e[0]=a.withModifiers(h=>t.removeElement(t.options[0][t.groupValues]),["prevent","stop"]))},[a.createVNode(s,{icon:"close",color:"white",class:a.normalizeClass(["tag-close flex rounded-full p-1",t.showTags?"bg-inkwell-30":"bg-blue-40"]),type:"line"},null,8,["class"])],32)],2)])):(a.openBlock(),a.createElementBlock("div",ex,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(!t.expand&&t.limitShown?u.slice(0,t.limitShown):u,(h,m)=>(a.openBlock(),a.createElementBlock("div",{key:m,class:a.normalizeClass(["multiselect__tag !inline-flex items-center justify-center rounded mr-2",{"tag-added":h.added},{"tag-gray":!!t.showTags},h.tagClass?h.tagClass:""])},[h.icon?(a.openBlock(),a.createBlock(s,{key:0,icon:h.icon,class:"tag-icon"},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("span",{class:a.normalizeClass(["tag-name text-sm leading-normal pr-2",{"tag-truncate":t.truncateTag}])},a.toDisplayString(h.label||h.name),3),a.createElementVNode("span",{class:"tag-remove cursor-pointer shrink",tabindex:"1",onClick:y=>t.removeElement(m)},[a.createVNode(s,{icon:"close-thick",color:"white",size:"sm",class:a.normalizeClass(["!p-[0.3rem] tag-close flex rounded-full p-1",h.closeTagClass?h.closeTagClass:t.showTags?"bg-inkwell-30":t.taggable&&h.added?"bg-green-40":"bg-blue-40"]),type:"line"},null,8,["class"])],8,tx)],2))),128)),!t.expand&&t.showSelectedCount&&t.multiple&&u.length>t.limitShown?(a.openBlock(),a.createElementBlock("span",nx," + "+a.toDisplayString(u.length-t.limitShown)+" more... ",1)):a.createCommentVNode("",!0)]))])):a.createCommentVNode("",!0),!t.showTags&&!t.taggable&&t.multiple&&u.length?(a.openBlock(),a.createElementBlock("div",rx,[a.createElementVNode("span",{class:a.normalizeClass(["option-selected",{capitalize:t.groupValues&&t.options[0][t.groupValues].length===u.length}])},a.toDisplayString(t.groupValues&&t.options[0][t.groupValues].length===u.length?t.groupLabel:u[0].label),3),t.limitShown&&t.limitShown<u.length&&(!t.groupValues&&u.length!==t.limitShown||t.groupValues&&t.options[0][t.groupValues].length!==u.length)?(a.openBlock(),a.createElementBlock("span",ox," + "+a.toDisplayString(u.length-t.limitShown)+" more... ",1)):a.createCommentVNode("",!0)])):d&&!t.useTags&&!t.multiple?(a.openBlock(),a.createElementBlock("div",ix,[a.createElementVNode("span",sx,a.toDisplayString(((f=t.selected)==null?void 0:f.label)||((p=t.selected)==null?void 0:p.name)||""),1)])):a.createCommentVNode("",!0)]}),option:a.withCtx(({option:u,search:d})=>[a.createElementVNode("div",{class:a.normalizeClass(["flex items-center w-full",{"option-search":u.label===d},{"option-disabled":u.isDisabled}]),title:u.label?u.label:""},[t.multiple&&t.hasCheckboxes?(a.openBlock(),a.createBlock(l,{key:0,"has-icon":!0,class:"selected-checkbox mr-2",shape:"square"},{icon:a.withCtx(()=>[a.createVNode(s,{icon:"check",color:"white",type:"line"})]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["option-icon-name flex items-center",!u.$groupLabel&&t.groupLabel?"pl-0":""])},[u.icon?(a.openBlock(),a.createBlock(s,{key:0,icon:u.icon,class:"mr-1"},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["option-name",[u.optionClass?u.optionClass:""]])},a.toDisplayString(u.$groupLabel||u.label||u.name||u),3),u.description?(a.openBlock(),a.createElementBlock("div",lx,a.toDisplayString(u.description),1)):a.createCommentVNode("",!0),t.multiple&&t.hasCheckboxes?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:2,icon:"check",size:"sm",type:"line",color:"inkwell-30",class:"selected-icon"}))],2)],10,ax)]),_:3},8,["id","modelValue","options","searchable","multiple","taggable","label","track-by","group-values","group-label","group-select","class","disabled","allow-empty","close-on-select","show-tags","tag-placeholder","placeholder","onOpen","onTag"])],8,GM)}const ux=ce(KM,[["render",cx],["__scopeId","data-v-e0d3121b"]]);var Re={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},Cl={AND:"and",OR:"or"};function Rg(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=dx(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
77
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function dx(t,e){if(t){if(typeof t=="string")return Lg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lg(t,e)}}function Lg(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ru={filter:function(e,n,r,o,i){var s=[];if(!e)return s;var l=Rg(e),c;try{for(l.s();!(c=l.n()).done;){var u=c.value;if(typeof u=="string"){if(this.filters[o](u,r,i)){s.push(u);continue}}else{var d=Rg(n),f;try{for(d.s();!(f=d.n()).done;){var p=f.value,h=M.resolveFieldData(u,p);if(this.filters[o](h,r,i)){s.push(u);break}}}catch(m){d.e(m)}finally{d.f()}}}}catch(m){l.e(m)}finally{l.f()}return s},filters:{startsWith:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=M.removeAccents(n.toString()).toLocaleLowerCase(r),i=M.removeAccents(e.toString()).toLocaleLowerCase(r);return i.slice(0,o.length)===o},contains:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=M.removeAccents(n.toString()).toLocaleLowerCase(r),i=M.removeAccents(e.toString()).toLocaleLowerCase(r);return i.indexOf(o)!==-1},notContains:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=M.removeAccents(n.toString()).toLocaleLowerCase(r),i=M.removeAccents(e.toString()).toLocaleLowerCase(r);return i.indexOf(o)===-1},endsWith:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=M.removeAccents(n.toString()).toLocaleLowerCase(r),i=M.removeAccents(e.toString()).toLocaleLowerCase(r);return i.indexOf(o,i.length-o.length)!==-1},equals:function(e,n,r){return n==null||n===""?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()===n.getTime():M.removeAccents(e.toString()).toLocaleLowerCase(r)==M.removeAccents(n.toString()).toLocaleLowerCase(r)},notEquals:function(e,n,r){return n==null||n===""?!1:e==null?!0:e.getTime&&n.getTime?e.getTime()!==n.getTime():M.removeAccents(e.toString()).toLocaleLowerCase(r)!=M.removeAccents(n.toString()).toLocaleLowerCase(r)},in:function(e,n){if(n==null||n.length===0)return!0;for(var r=0;r<n.length;r++)if(M.equals(e,n[r]))return!0;return!1},between:function(e,n){return n==null||n[0]==null||n[1]==null?!0:e==null?!1:e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]},lt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<n.getTime():e<n},lte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n},gt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>n.getTime():e>n},gte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n},dateIs:function(e,n){return n==null?!0:e==null?!1:e.toDateString()===n.toDateString()},dateIsNot:function(e,n){return n==null?!0:e==null?!1:e.toDateString()!==n.toDateString()},dateBefore:function(e,n){return n==null?!0:e==null?!1:e.getTime()<n.getTime()},dateAfter:function(e,n){return n==null?!0:e==null?!1:e.getTime()>n.getTime()}},register:function(e,n){this.filters[e]=n}},fx=`
78
78
  .p-icon {
79
79
  display: inline-block;
80
80
  }
@@ -105,7 +105,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
105
105
  transform: rotate(359deg);
106
106
  }
107
107
  }
108
- `,fx=je.extend({name:"baseicon",css:dx});function ws(t){"@babel/helpers - typeof";return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ws(t)}function Vg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function $g(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vg(Object(n),!0).forEach(function(r){px(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function px(t,e,n){return e=hx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hx(t){var e=mx(t,"string");return ws(e)=="symbol"?e:String(e)}function mx(t,e){if(ws(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var be={name:"BaseIcon",extends:re,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:fx,methods:{pti:function(){var e=M.isEmpty(this.label);return $g($g({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},Fg={name:"ArrowDownIcon",extends:be},gx=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z",fill:"currentColor"},null,-1),yx=[gx];function bx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),yx,16)}Fg.render=bx;var Hg={name:"ArrowUpIcon",extends:be},wx=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z",fill:"currentColor"},null,-1),vx=[wx];function Cx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),vx,16)}Hg.render=Cx;var vs={name:"SpinnerIcon",extends:be},Sx=a.createElementVNode("path",{d:"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",fill:"currentColor"},null,-1),kx=[Sx];function Ox(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),kx,16)}vs.render=Ox;function Cs(t){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cs(t)}function Ex(t,e,n){return e=Tx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tx(t){var e=Mx(t,"string");return Cs(e)=="symbol"?e:String(e)}function Mx(t,e){if(Cs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var xx={paginator:function(e){var n=e.instance,r=e.key;return["p-paginator p-component",Ex({"p-paginator-default":!n.hasBreakpoints()},"p-paginator-".concat(r),n.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(e){var n=e.instance;return["p-paginator-first p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(e){var n=e.instance;return["p-paginator-prev p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(e){var n=e.instance;return["p-paginator-next p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(e){var n=e.instance;return["p-paginator-last p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(e){var n=e.props,r=e.pageLink;return["p-paginator-page p-paginator-element p-link",{"p-highlight":r-1===n.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"},Px=je.extend({name:"paginator",classes:xx}),_g={name:"AngleDoubleLeftIcon",extends:be},Dx=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z",fill:"currentColor"},null,-1),Ax=[Dx];function Ix(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Ax,16)}_g.render=Ix;var zg={name:"BlankIcon",extends:be},Nx=a.createElementVNode("rect",{width:"1",height:"1",fill:"currentColor","fill-opacity":"0"},null,-1),Bx=[Nx];function Rx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Bx,16)}zg.render=Rx;var Wo={name:"CheckIcon",extends:be},Lx=a.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1),Vx=[Lx];function $x(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Vx,16)}Wo.render=$x;var Sl={name:"ChevronDownIcon",extends:be},Fx=a.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1),Hx=[Fx];function _x(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Hx,16)}Sl.render=_x;var jg={name:"SearchIcon",extends:be},zx=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"},null,-1),jx=[zx];function Zx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),jx,16)}jg.render=Zx;var ou={name:"TimesIcon",extends:be},Wx=a.createElementVNode("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"},null,-1),Ux=[Wx];function Kx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Ux,16)}ou.render=Kx;var lr=cv(),iu={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=O.isClient()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function Gx(t,e,n,r,o,i){return i.inline?a.renderSlot(t.$slots,"default",{key:0}):o.mounted?(a.openBlock(),a.createBlock(a.Teleport,{key:1,to:n.appendTo},[a.renderSlot(t.$slots,"default")],8,["to"])):a.createCommentVNode("",!0)}iu.render=Gx;var qx=`
108
+ `,px=je.extend({name:"baseicon",css:fx});function ws(t){"@babel/helpers - typeof";return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ws(t)}function Vg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function $g(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vg(Object(n),!0).forEach(function(r){hx(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function hx(t,e,n){return e=mx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mx(t){var e=gx(t,"string");return ws(e)=="symbol"?e:String(e)}function gx(t,e){if(ws(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var be={name:"BaseIcon",extends:re,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:px,methods:{pti:function(){var e=M.isEmpty(this.label);return $g($g({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},Fg={name:"ArrowDownIcon",extends:be},yx=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z",fill:"currentColor"},null,-1),bx=[yx];function wx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),bx,16)}Fg.render=wx;var Hg={name:"ArrowUpIcon",extends:be},vx=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z",fill:"currentColor"},null,-1),Cx=[vx];function Sx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Cx,16)}Hg.render=Sx;var vs={name:"SpinnerIcon",extends:be},kx=a.createElementVNode("path",{d:"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",fill:"currentColor"},null,-1),Ox=[kx];function Ex(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Ox,16)}vs.render=Ex;function Cs(t){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cs(t)}function Tx(t,e,n){return e=Mx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mx(t){var e=xx(t,"string");return Cs(e)=="symbol"?e:String(e)}function xx(t,e){if(Cs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Px={paginator:function(e){var n=e.instance,r=e.key;return["p-paginator p-component",Tx({"p-paginator-default":!n.hasBreakpoints()},"p-paginator-".concat(r),n.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(e){var n=e.instance;return["p-paginator-first p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(e){var n=e.instance;return["p-paginator-prev p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(e){var n=e.instance;return["p-paginator-next p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(e){var n=e.instance;return["p-paginator-last p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(e){var n=e.props,r=e.pageLink;return["p-paginator-page p-paginator-element p-link",{"p-highlight":r-1===n.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"},Dx=je.extend({name:"paginator",classes:Px}),_g={name:"AngleDoubleLeftIcon",extends:be},Ax=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z",fill:"currentColor"},null,-1),Ix=[Ax];function Nx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Ix,16)}_g.render=Nx;var zg={name:"BlankIcon",extends:be},Bx=a.createElementVNode("rect",{width:"1",height:"1",fill:"currentColor","fill-opacity":"0"},null,-1),Rx=[Bx];function Lx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Rx,16)}zg.render=Lx;var Wo={name:"CheckIcon",extends:be},Vx=a.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1),$x=[Vx];function Fx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),$x,16)}Wo.render=Fx;var Sl={name:"ChevronDownIcon",extends:be},Hx=a.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1),_x=[Hx];function zx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),_x,16)}Sl.render=zx;var jg={name:"SearchIcon",extends:be},jx=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"},null,-1),Zx=[jx];function Wx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Zx,16)}jg.render=Wx;var ou={name:"TimesIcon",extends:be},Ux=a.createElementVNode("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"},null,-1),Kx=[Ux];function Gx(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Kx,16)}ou.render=Gx;var lr=cv(),iu={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=O.isClient()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function qx(t,e,n,r,o,i){return i.inline?a.renderSlot(t.$slots,"default",{key:0}):o.mounted?(a.openBlock(),a.createBlock(a.Teleport,{key:1,to:n.appendTo},[a.renderSlot(t.$slots,"default")],8,["to"])):a.createCommentVNode("",!0)}iu.render=qx;var Yx=`
109
109
  @layer primevue {
110
110
  .p-virtualscroller {
111
111
  position: relative;
@@ -168,11 +168,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
168
168
  position: static;
169
169
  }
170
170
  }
171
- `,Zg=je.extend({name:"virtualscroller",css:qx}),Yx={name:"BaseVirtualScroller",extends:re,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:"vertical"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:Zg,provide:function(){return{$parentInstance:this}},beforeMount:function(){var e;Zg.loadStyle({nonce:(e=this.$config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce})}};function Ss(t){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ss(t)}function Wg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ks(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wg(Object(n),!0).forEach(function(r){Ug(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ug(t,e,n){return e=Jx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jx(t){var e=Qx(t,"string");return Ss(e)=="symbol"?e:String(e)}function Qx(t,e){if(Ss(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var su={name:"VirtualScroller",extends:Yx,inheritAttrs:!1,emits:["update:numToleratedItems","scroll","scroll-index-change","lazy-load"],data:function(){var e=this.isBoth();return{first:e?{rows:0,cols:0}:0,last:e?{rows:0,cols:0}:0,page:e?{rows:0,cols:0}:0,numItemsInViewport:e?{rows:0,cols:0}:0,lastScrollPos:e?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,initialized:!1,watch:{numToleratedItems:function(e){this.d_numToleratedItems=e},loading:function(e,n){this.lazy&&e!==n&&e!==this.d_loading&&(this.d_loading=e)},items:function(e,n){(!n||n.length!==(e||[]).length)&&(this.init(),this.calculateAutoSize())},itemSize:function(){this.init(),this.calculateAutoSize()},orientation:function(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight:function(){this.init(),this.calculateAutoSize()},scrollWidth:function(){this.init(),this.calculateAutoSize()}},mounted:function(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated:function(){!this.initialized&&this.viewInit()},unmounted:function(){this.unbindResizeListener(),this.initialized=!1},methods:{viewInit:function(){O.isVisible(this.element)&&(this.setContentEl(this.content),this.init(),this.calculateAutoSize(),this.bindResizeListener(),this.defaultWidth=O.getWidth(this.element),this.defaultHeight=O.getHeight(this.element),this.defaultContentWidth=O.getWidth(this.content),this.defaultContentHeight=O.getHeight(this.content),this.initialized=!0)},init:function(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},isVertical:function(){return this.orientation==="vertical"},isHorizontal:function(){return this.orientation==="horizontal"},isBoth:function(){return this.orientation==="both"},scrollTo:function(e){this.element&&this.element.scrollTo(e)},scrollToIndex:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",o=this.isBoth(),i=this.isHorizontal(),s=o?e.every(function(k){return k>-1}):e>-1;if(s){var l=this.first,c=this.element,u=c.scrollTop,d=u===void 0?0:u,f=c.scrollLeft,p=f===void 0?0:f,h=this.calculateNumItems(),m=h.numToleratedItems,y=this.getContentPosition(),g=this.itemSize,b=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1?arguments[1]:void 0;return T<=D?0:T},w=function(T,D,N){return T*D+N},C=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.scrollTo({left:T,top:D,behavior:r})},v=o?{rows:0,cols:0}:0,E=!1,S=!1;o?(v={rows:b(e[0],m[0]),cols:b(e[1],m[1])},C(w(v.cols,g[1],y.left),w(v.rows,g[0],y.top)),S=this.lastScrollPos.top!==d||this.lastScrollPos.left!==p,E=v.rows!==l.rows||v.cols!==l.cols):(v=b(e,m),i?C(w(v,g,y.left),d):C(p,w(v,g,y.top)),S=this.lastScrollPos!==(i?p:d),E=v!==l),this.isRangeChanged=E,S&&(this.first=v)}},scrollInView:function(e,n){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(n){var i=this.isBoth(),s=this.isHorizontal(),l=i?e.every(function(g){return g>-1}):e>-1;if(l){var c=this.getRenderedRange(),u=c.first,d=c.viewport,f=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return r.scrollTo({left:b,top:w,behavior:o})},p=n==="to-start",h=n==="to-end";if(p){if(i)d.first.rows-u.rows>e[0]?f(d.first.cols*this.itemSize[1],(d.first.rows-1)*this.itemSize[0]):d.first.cols-u.cols>e[1]&&f((d.first.cols-1)*this.itemSize[1],d.first.rows*this.itemSize[0]);else if(d.first-u>e){var m=(d.first-1)*this.itemSize;s?f(m,0):f(0,m)}}else if(h){if(i)d.last.rows-u.rows<=e[0]+1?f(d.first.cols*this.itemSize[1],(d.first.rows+1)*this.itemSize[0]):d.last.cols-u.cols<=e[1]+1&&f((d.first.cols+1)*this.itemSize[1],d.first.rows*this.itemSize[0]);else if(d.last-u<=e+1){var y=(d.first+1)*this.itemSize;s?f(y,0):f(0,y)}}}}else this.scrollToIndex(e,o)},getRenderedRange:function(){var e=function(f,p){return Math.floor(f/(p||f))},n=this.first,r=0;if(this.element){var o=this.isBoth(),i=this.isHorizontal(),s=this.element,l=s.scrollTop,c=s.scrollLeft;if(o)n={rows:e(l,this.itemSize[0]),cols:e(c,this.itemSize[1])},r={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols};else{var u=i?c:l;n=e(u,this.itemSize),r=n+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:n,last:r}}},calculateNumItems:function(){var e=this.isBoth(),n=this.isHorizontal(),r=this.itemSize,o=this.getContentPosition(),i=this.element?this.element.offsetWidth-o.left:0,s=this.element?this.element.offsetHeight-o.top:0,l=function(p,h){return Math.ceil(p/(h||p))},c=function(p){return Math.ceil(p/2)},u=e?{rows:l(s,r[0]),cols:l(i,r[1])}:l(n?i:s,r),d=this.d_numToleratedItems||(e?[c(u.rows),c(u.cols)]:c(u));return{numItemsInViewport:u,numToleratedItems:d}},calculateOptions:function(){var e=this,n=this.isBoth(),r=this.first,o=this.calculateNumItems(),i=o.numItemsInViewport,s=o.numToleratedItems,l=function(d,f,p){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.getLast(d+f+(d<p?2:3)*p,h)},c=n?{rows:l(r.rows,i.rows,s[0]),cols:l(r.cols,i.cols,s[1],!0)}:l(r,i,s);this.last=c,this.numItemsInViewport=i,this.d_numToleratedItems=s,this.$emit("update:numToleratedItems",this.d_numToleratedItems),this.showLoader&&(this.loaderArr=n?Array.from({length:i.rows}).map(function(){return Array.from({length:i.cols})}):Array.from({length:i})),this.lazy&&Promise.resolve().then(function(){var u;e.lazyLoadState={first:e.step?n?{rows:0,cols:r.cols}:0:r,last:Math.min(e.step?e.step:c,((u=e.items)===null||u===void 0?void 0:u.length)||0)},e.$emit("lazy-load",e.lazyLoadState)})},calculateAutoSize:function(){var e=this;this.autoSize&&!this.d_loading&&Promise.resolve().then(function(){if(e.content){var n=e.isBoth(),r=e.isHorizontal(),o=e.isVertical();e.content.style.minHeight=e.content.style.minWidth="auto",e.content.style.position="relative",e.element.style.contain="none";var i=[O.getWidth(e.element),O.getHeight(e.element)],s=i[0],l=i[1];(n||r)&&(e.element.style.width=s<e.defaultWidth?s+"px":e.scrollWidth||e.defaultWidth+"px"),(n||o)&&(e.element.style.height=l<e.defaultHeight?l+"px":e.scrollHeight||e.defaultHeight+"px"),e.content.style.minHeight=e.content.style.minWidth="",e.content.style.position="",e.element.style.contain=""}})},getLast:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,o=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(o?((e=this.columns||this.items[0])===null||e===void 0?void 0:e.length)||0:((n=this.items)===null||n===void 0?void 0:n.length)||0,r):0},getContentPosition:function(){if(this.content){var e=getComputedStyle(this.content),n=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),r=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),o=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),i=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:n,right:r,top:o,bottom:i,x:n+r,y:o+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var e=this;if(this.element){var n=this.isBoth(),r=this.isHorizontal(),o=this.element.parentElement,i=this.scrollWidth||"".concat(this.element.offsetWidth||o.offsetWidth,"px"),s=this.scrollHeight||"".concat(this.element.offsetHeight||o.offsetHeight,"px"),l=function(u,d){return e.element.style[u]=d};n||r?(l("height",s),l("width",i)):l("height",s)}},setSpacerSize:function(){var e=this,n=this.items;if(n){var r=this.isBoth(),o=this.isHorizontal(),i=this.getContentPosition(),s=function(c,u,d){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return e.spacerStyle=ks(ks({},e.spacerStyle),Ug({},"".concat(c),(u||[]).length*d+f+"px"))};r?(s("height",n,this.itemSize[0],i.y),s("width",this.columns||n[1],this.itemSize[1],i.x)):o?s("width",this.columns||n,this.itemSize,i.x):s("height",n,this.itemSize,i.y)}},setContentPosition:function(e){var n=this;if(this.content&&!this.appendOnly){var r=this.isBoth(),o=this.isHorizontal(),i=e?e.first:this.first,s=function(d,f){return d*f},l=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.contentStyle=ks(ks({},n.contentStyle),{transform:"translate3d(".concat(d,"px, ").concat(f,"px, 0)")})};if(r)l(s(i.cols,this.itemSize[1]),s(i.rows,this.itemSize[0]));else{var c=s(i,this.itemSize);o?l(c,0):l(0,c)}}},onScrollPositionChange:function(e){var n=this,r=e.target,o=this.isBoth(),i=this.isHorizontal(),s=this.getContentPosition(),l=function(B,$){return B?B>$?B-$:B:0},c=function(B,$){return Math.floor(B/($||B))},u=function(B,$,j,ee,F,W){return B<=F?F:W?j-ee-F:$+F-1},d=function(B,$,j,ee,F,W,te){return B<=W?0:Math.max(0,te?B<$?j:B-W:B>$?j:B-2*W)},f=function(B,$,j,ee,F,W){var te=$+ee+2*F;return B>=F&&(te+=F+1),n.getLast(te,W)},p=l(r.scrollTop,s.top),h=l(r.scrollLeft,s.left),m=o?{rows:0,cols:0}:0,y=this.last,g=!1,b=this.lastScrollPos;if(o){var w=this.lastScrollPos.top<=p,C=this.lastScrollPos.left<=h;if(!this.appendOnly||this.appendOnly&&(w||C)){var v={rows:c(p,this.itemSize[0]),cols:c(h,this.itemSize[1])},E={rows:u(v.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],w),cols:u(v.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],C)};m={rows:d(v.rows,E.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],w),cols:d(v.cols,E.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],C)},y={rows:f(v.rows,m.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:f(v.cols,m.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},g=m.rows!==this.first.rows||y.rows!==this.last.rows||m.cols!==this.first.cols||y.cols!==this.last.cols||this.isRangeChanged,b={top:p,left:h}}}else{var S=i?h:p,k=this.lastScrollPos<=S;if(!this.appendOnly||this.appendOnly&&k){var T=c(S,this.itemSize),D=u(T,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k);m=d(T,D,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k),y=f(T,m,this.last,this.numItemsInViewport,this.d_numToleratedItems),g=m!==this.first||y!==this.last||this.isRangeChanged,b=S}}return{first:m,last:y,isRangeChanged:g,scrollPos:b}},onScrollChange:function(e){var n=this.onScrollPositionChange(e),r=n.first,o=n.last,i=n.isRangeChanged,s=n.scrollPos;if(i){var l={first:r,last:o};if(this.setContentPosition(l),this.first=r,this.last=o,this.lastScrollPos=s,this.$emit("scroll-index-change",l),this.lazy&&this.isPageChanged(r)){var c,u,d={first:this.step?Math.min(this.getPageByFirst(r)*this.step,(((c=this.items)===null||c===void 0?void 0:c.length)||0)-this.step):r,last:Math.min(this.step?(this.getPageByFirst(r)+1)*this.step:o,((u=this.items)===null||u===void 0?void 0:u.length)||0)},f=this.lazyLoadState.first!==d.first||this.lazyLoadState.last!==d.last;f&&this.$emit("lazy-load",d),this.lazyLoadState=d}}},onScroll:function(e){var n=this;if(this.$emit("scroll",e),this.delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading&&this.showLoader){var r=this.onScrollPositionChange(e),o=r.isRangeChanged,i=o||(this.step?this.isPageChanged():!1);i&&(this.d_loading=!0)}this.scrollTimeout=setTimeout(function(){n.onScrollChange(e),n.d_loading&&n.showLoader&&(!n.lazy||n.loading===void 0)&&(n.d_loading=!1,n.page=n.getPageByFirst())},this.delay)}}else this.onScrollChange(e)},onResize:function(){var e=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(O.isVisible(e.element)){var n=e.isBoth(),r=e.isVertical(),o=e.isHorizontal(),i=[O.getWidth(e.element),O.getHeight(e.element)],s=i[0],l=i[1],c=s!==e.defaultWidth,u=l!==e.defaultHeight,d=n?c||u:o?c:r?u:!1;d&&(e.d_numToleratedItems=e.numToleratedItems,e.defaultWidth=s,e.defaultHeight=l,e.defaultContentWidth=O.getWidth(e.content),e.defaultContentHeight=O.getHeight(e.content),e.init())}},this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("orientationchange",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("orientationchange",this.resizeListener),this.resizeListener=null)},getOptions:function(e){var n=(this.items||[]).length,r=this.isBoth()?this.first.rows+e:this.first+e;return{index:r,count:n,first:r===0,last:r===n-1,even:r%2===0,odd:r%2!==0}},getLoaderOptions:function(e,n){var r=this.loaderArr.length;return ks({index:e,count:r,first:e===0,last:e===r-1,even:e%2===0,odd:e%2!==0},n)},getPageByFirst:function(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(e){return this.step?this.page!==this.getPageByFirst(e??this.first):!0},setContentEl:function(e){this.content=e||this.content||O.findSingle(this.element,'[data-pc-section="content"]')},elementRef:function(e){this.element=e},contentRef:function(e){this.content=e}},computed:{containerClass:function(){return["p-virtualscroller",this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return["p-virtualscroller-content",{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return["p-virtualscroller-loader",{"p-component-overlay":!this.$slots.loader}]},loadedItems:function(){var e=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(n){return e.columns?n:n.slice(e.appendOnly?0:e.first.cols,e.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var e=this.isBoth(),n=this.isHorizontal();if(e||n)return this.d_loading&&this.loaderDisabled?e?this.loaderArr[0]:this.loaderArr:this.columns.slice(e?this.first.cols:this.first,e?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:vs}},Xx=["tabindex"];function eP(t,e,n,r,o,i){var s=a.resolveComponent("SpinnerIcon");return t.disabled?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.renderSlot(t.$slots,"default"),a.renderSlot(t.$slots,"content",{items:t.items,rows:t.items,columns:i.loadedColumns})],64)):(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:i.elementRef,class:i.containerClass,tabindex:t.tabindex,style:t.style,onScroll:e[0]||(e[0]=function(){return i.onScroll&&i.onScroll.apply(i,arguments)})},t.ptmi("root")),[a.renderSlot(t.$slots,"content",{styleClass:i.contentClass,items:i.loadedItems,getItemOptions:i.getOptions,loading:o.d_loading,getLoaderOptions:i.getLoaderOptions,itemSize:t.itemSize,rows:i.loadedRows,columns:i.loadedColumns,contentRef:i.contentRef,spacerStyle:o.spacerStyle,contentStyle:o.contentStyle,vertical:i.isVertical(),horizontal:i.isHorizontal(),both:i.isBoth()},function(){return[a.createElementVNode("div",a.mergeProps({ref:i.contentRef,class:i.contentClass,style:o.contentStyle},t.ptm("content")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.loadedItems,function(l,c){return a.renderSlot(t.$slots,"item",{key:c,item:l,options:i.getOptions(c)})}),128))],16)]}),t.showSpacer?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:"p-virtualscroller-spacer",style:o.spacerStyle},t.ptm("spacer")),null,16)):a.createCommentVNode("",!0),!t.loaderDisabled&&t.showLoader&&o.d_loading?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:i.loaderClass},t.ptm("loader")),[t.$slots&&t.$slots.loader?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(o.loaderArr,function(l,c){return a.renderSlot(t.$slots,"loader",{key:c,options:i.getLoaderOptions(c,i.isBoth()&&{numCols:t.d_numItemsInViewport.cols})})}),128)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"loadingicon",{},function(){return[a.createVNode(s,a.mergeProps({spin:"",class:"p-virtualscroller-loading-icon"},t.ptm("loadingIcon")),null,16)]})],16)):a.createCommentVNode("",!0)],16,Xx))}su.render=eP;var tP={root:function(e){var n=e.instance,r=e.props,o=e.state;return["p-dropdown p-component p-inputwrapper",{"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled","p-dropdown-clearable":r.showClear,"p-focus":o.focused,"p-inputwrapper-filled":n.hasSelectedOption,"p-inputwrapper-focus":o.focused||o.overlayVisible,"p-overlay-open":o.overlayVisible}]},input:function(e){var n=e.instance,r=e.props;return["p-dropdown-label p-inputtext",{"p-placeholder":!r.editable&&n.label===r.placeholder,"p-dropdown-label-empty":!r.editable&&!n.$slots.value&&(n.label==="p-emptylabel"||n.label.length===0)}]},clearIcon:"p-dropdown-clear-icon",trigger:"p-dropdown-trigger",loadingicon:"p-dropdown-trigger-icon",dropdownIcon:"p-dropdown-trigger-icon",panel:function(e){e.props;var n=e.instance;return["p-dropdown-panel p-component",{"p-ripple-disabled":n.$primevue.config.ripple===!1}]},header:"p-dropdown-header",filterContainer:"p-dropdown-filter-container",filterInput:function(e){var n=e.props,r=e.instance;return["p-dropdown-filter p-inputtext p-component",{"p-variant-filled":n.variant?n.variant==="filled":r.$primevue.config.inputStyle==="filled"}]},filterIcon:"p-dropdown-filter-icon",wrapper:"p-dropdown-items-wrapper",list:"p-dropdown-items",itemGroup:"p-dropdown-item-group",itemGroupLabel:"p-dropdown-item-group-label",item:function(e){var n=e.instance,r=e.props,o=e.state,i=e.option,s=e.focusedOption;return["p-dropdown-item",{"p-highlight":n.isSelected(i)&&r.highlightOnSelect,"p-focus":o.focusedOptionIndex===s,"p-disabled":n.isOptionDisabled(i)}]},itemLabel:"p-dropdown-item-label",checkIcon:"p-dropdown-check-icon",blankIcon:"p-dropdown-blank-icon",emptyMessage:"p-dropdown-empty-message"},nP=je.extend({name:"dropdown",classes:tP}),rP={name:"BaseDropdown",extends:re,props:{modelValue:null,options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"200px"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},clearIconProps:{type:null,default:null},appendTo:{type:[String,Object],default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:nP,provide:function(){return{$parentInstance:this}}};function Os(t){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(t)}function oP(t){return lP(t)||aP(t)||sP(t)||iP()}function iP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
172
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sP(t,e){if(t){if(typeof t=="string")return au(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return au(t,e)}}function aP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function lP(t){if(Array.isArray(t))return au(t)}function au(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Kg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Gg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kg(Object(n),!0).forEach(function(r){qg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qg(t,e,n){return e=cP(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cP(t){var e=uP(t,"string");return Os(e)=="symbol"?e:String(e)}function uP(t,e){if(Os(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var kl={name:"Dropdown",extends:rP,inheritAttrs:!1,emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter"],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||qn()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||qn(),this.autoUpdateModel(),this.bindLabelClickListener()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(xo.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,n){return this.virtualScrollerDisabled?e:n&&n(e).index},getOptionLabel:function(e){return this.optionLabel?M.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?M.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e,n){return(this.dataKey?M.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+n},getPTItemOptions:function(e,n,r,o){return this.ptm(o,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(r,n),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return this.optionDisabled?M.resolveFieldData(e,this.optionDisabled):!1},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return M.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return M.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var n=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(function(r){return n.isOptionGroup(r)}).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),e&&O.focus(this.$refs.focusInput)},hide:function(e){var n=this,r=function(){n.$emit("before-hide"),n.overlayVisible=!1,n.clicked=!1,n.focusedOptionIndex=-1,n.searchValue="",n.resetFilterOnHide&&(n.filterValue=null),e&&O.focus(n.$refs.focusInput)};setTimeout(function(){r()},0)},onFocus:function(e){this.disabled||(this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled||O.isAndroid()){e.preventDefault();return}var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!n&&M.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked=!1},onEditableInput:function(e){var n=e.target.value;this.searchValue="";var r=this.searchOptions(e,n);!r&&(this.focusedOptionIndex=-1),this.updateModel(e,n),!this.overlayVisible&&M.isNotEmpty(n)&&this.show()},onContainerClick:function(e){this.disabled||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||((!this.overlay||!this.overlay.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(e){this.updateModel(e,null),this.resetFilterOnClear&&(this.filterValue=null)},onFirstHiddenFocus:function(e){var n=e.relatedTarget===this.$refs.focusInput?O.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;O.focus(n)},onLastHiddenFocus:function(e){var n=e.relatedTarget===this.$refs.focusInput?O.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;O.focus(n)},onOptionSelect:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=this.getOptionValue(n);this.updateModel(e,o),r&&this.hide(!0)},onOptionMouseMove:function(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)},onFilterChange:function(e){var n=e.target.value;this.filterValue=n,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:n}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){lr.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){switch(e.code){case"Escape":this.onEscapeKey(e);break}},onDeleteKey:function(e){this.showClear&&(this.updateModel(e,null),e.preventDefault())},onArrowDownKey:function(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{var n=this.focusedOptionIndex!==-1?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n)}e.preventDefault()},onArrowUpKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.altKey&&!n)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var r=this.focusedOptionIndex!==-1?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()},onEndKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n){var r=e.currentTarget,o=r.value.length;r.setSelectionRange(o,o),this.focusedOptionIndex=-1}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(e)),e.preventDefault()},onSpaceKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!n&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault(),e.stopPropagation()},onTabKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n||(this.overlayVisible&&this.hasFocusableElements()?(O.focus(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){xo.set("overlay",e,this.$primevue.config.zIndex.overlay),O.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&O.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){xo.clear(e)},alignOverlay:function(){this.appendTo==="self"?O.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=O.getOuterWidth(this.$el)+"px",O.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(n){e.overlayVisible&&e.overlay&&!e.$el.contains(n.target)&&!e.overlay.contains(n.target)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new tp(this.$refs.container,function(){e.overlayVisible&&e.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!O.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var e=this;if(!this.editable&&!this.labelClickListener){var n=document.querySelector('label[for="'.concat(this.inputId,'"]'));n&&O.isVisible(n)&&(this.labelClickListener=function(){O.focus(e.$refs.focusInput)},n.addEventListener("click",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var e=document.querySelector('label[for="'.concat(this.inputId,'"]'));e&&O.isVisible(e)&&e.removeEventListener("click",this.labelClickListener)}},hasFocusableElements:function(){return O.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){var n;return this.isValidOption(e)&&((n=this.getOptionLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(e){return M.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return this.isValidOption(e)&&M.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(n){return e.isValidOption(n)})},findLastOptionIndex:function(){var e=this;return M.findLastIndex(this.visibleOptions,function(n){return e.isValidOption(n)})},findNextOptionIndex:function(e){var n=this,r=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(o){return n.isValidOption(o)}):-1;return r>-1?r+e+1:e},findPrevOptionIndex:function(e){var n=this,r=e>0?M.findLastIndex(this.visibleOptions.slice(0,e),function(o){return n.isValidOption(o)}):-1;return r>-1?r:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex(function(n){return e.isValidSelectedOption(n)}):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=-1,i=!1;return M.isNotEmpty(this.searchValue)&&(this.focusedOptionIndex!==-1?(o=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(s){return r.isOptionMatched(s)}),o=o===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(function(s){return r.isOptionMatched(s)}):o+this.focusedOptionIndex):o=this.visibleOptions.findIndex(function(s){return r.isOptionMatched(s)}),o!==-1&&(i=!0),o===-1&&this.focusedOptionIndex===-1&&(o=this.findFirstFocusedOptionIndex()),o!==-1&&this.changeFocusedOptionIndex(e,o)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedOptionIndex:function(e,n){this.focusedOptionIndex!==n&&(this.focusedOptionIndex=n,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[n],!1))},scrollInView:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var r=n!==-1?"".concat(e.id,"_").concat(n):e.focusedOptionId,o=O.findSingle(e.list,'li[id="'.concat(r,'"]'));o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"start"}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(n!==-1?n:e.focusedOptionIndex)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,n){this.$emit("update:modelValue",n),this.$emit("change",{originalEvent:e,value:n})},flatOptions:function(e){var n=this;return(e||[]).reduce(function(r,o,i){r.push({optionGroup:o,group:!0,index:i});var s=n.getOptionGroupChildren(o);return s&&s.forEach(function(l){return r.push(l)}),r},[])},overlayRef:function(e){this.overlay=e},listRef:function(e,n){this.list=e,n&&n(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var e=this,n=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var r=ru.filter(n,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=this.options||[],i=[];return o.forEach(function(s){var l=e.getOptionGroupChildren(s),c=l.filter(function(u){return r.includes(u)});c.length>0&&i.push(Gg(Gg({},s),{},qg({},typeof e.optionGroupChildren=="string"?e.optionGroupChildren:"items",oP(c))))}),this.flatOptions(i)}return r}return n},hasSelectedOption:function(){return M.isNotEmpty(this.modelValue)},label:function(){var e=this.findSelectedOptionIndex();return e!==-1?this.getOptionLabel(this.visibleOptions[e]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var e=this.findSelectedOptionIndex();return e!==-1?this.getOptionLabel(this.visibleOptions[e]):this.modelValue||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return M.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex!==-1?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(n){return!e.isOptionGroup(n)}).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:Mn},components:{VirtualScroller:su,Portal:iu,TimesIcon:ou,ChevronDownIcon:Sl,SpinnerIcon:vs,SearchIcon:jg,CheckIcon:Wo,BlankIcon:zg}};function Es(t){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Es(t)}function Yg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function un(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yg(Object(n),!0).forEach(function(r){dP(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function dP(t,e,n){return e=fP(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fP(t){var e=pP(t,"string");return Es(e)=="symbol"?e:String(e)}function pP(t,e){if(Es(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var hP=["id"],mP=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],gP=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],yP=["value","placeholder","aria-owns","aria-activedescendant"],bP=["id"],wP=["id"],vP=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];function CP(t,e,n,r,o,i){var s=a.resolveComponent("SpinnerIcon"),l=a.resolveComponent("CheckIcon"),c=a.resolveComponent("BlankIcon"),u=a.resolveComponent("VirtualScroller"),d=a.resolveComponent("Portal"),f=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("div",a.mergeProps({ref:"container",id:o.id,class:t.cx("root"),onClick:e[16]||(e[16]=function(){return i.onContainerClick&&i.onContainerClick.apply(i,arguments)})},t.ptmi("root")),[t.editable?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,ref:"focusInput",id:t.inputId,type:"text",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:i.editableInputValue,placeholder:t.placeholder,tabindex:t.disabled?-1:t.tabindex,disabled:t.disabled,autocomplete:"off",role:"combobox","aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?i.focusedOptionId:void 0,"aria-invalid":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[1]||(e[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:e[2]||(e[2]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)}),onInput:e[3]||(e[3]=function(){return i.onEditableInput&&i.onEditableInput.apply(i,arguments)})},un(un({},t.inputProps),t.ptm("input"))),null,16,mP)):(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,ref:"focusInput",id:t.inputId,class:[t.cx("input"),t.inputClass],style:t.inputStyle,tabindex:t.disabled?-1:t.tabindex,role:"combobox","aria-label":t.ariaLabel||(i.label==="p-emptylabel"?void 0:i.label),"aria-labelledby":t.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?i.focusedOptionId:void 0,"aria-disabled":t.disabled,onFocus:e[4]||(e[4]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[5]||(e[5]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:e[6]||(e[6]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)})},un(un({},t.inputProps),t.ptm("input"))),[a.renderSlot(t.$slots,"value",{value:t.modelValue,placeholder:t.placeholder},function(){return[a.createTextVNode(a.toDisplayString(i.label==="p-emptylabel"?"Ā ":i.label||"empty"),1)]})],16,gP)),t.showClear&&t.modelValue!=null?a.renderSlot(t.$slots,"clearicon",{key:2,class:a.normalizeClass(t.cx("clearIcon")),onClick:i.onClearClick,clearCallback:i.onClearClick},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.clearIcon?"i":"TimesIcon"),a.mergeProps({ref:"clearIcon",class:[t.cx("clearIcon"),t.clearIcon],onClick:i.onClearClick},un(un({},t.clearIconProps),t.ptm("clearIcon")),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]}):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("trigger")},t.ptm("trigger")),[t.loading?a.renderSlot(t.$slots,"loadingicon",{key:0,class:a.normalizeClass(t.cx("loadingIcon"))},function(){return[t.loadingIcon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:[t.cx("loadingIcon"),"pi-spin",t.loadingIcon],"aria-hidden":"true"},t.ptm("loadingIcon")),null,16)):(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:t.cx("loadingIcon"),spin:"","aria-hidden":"true"},t.ptm("loadingIcon")),null,16,["class"]))]}):a.renderSlot(t.$slots,"dropdownicon",{key:1,class:a.normalizeClass(t.cx("dropdownIcon"))},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.dropdownIcon?"span":"ChevronDownIcon"),a.mergeProps({class:[t.cx("dropdownIcon"),t.dropdownIcon],"aria-hidden":"true"},t.ptm("dropdownIcon")),null,16,["class"]))]})],16),a.createVNode(d,{appendTo:t.appendTo},{default:a.withCtx(function(){return[a.createVNode(a.Transition,a.mergeProps({name:"p-connected-overlay",onEnter:i.onOverlayEnter,onAfterEnter:i.onOverlayAfterEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},t.ptm("transition")),{default:a.withCtx(function(){return[o.overlayVisible?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:i.overlayRef,class:[t.cx("panel"),t.panelClass],style:t.panelStyle,onClick:e[14]||(e[14]=function(){return i.onOverlayClick&&i.onOverlayClick.apply(i,arguments)}),onKeydown:e[15]||(e[15]=function(){return i.onOverlayKeyDown&&i.onOverlayKeyDown.apply(i,arguments)})},un(un({},t.panelProps),t.ptm("panel"))),[a.createElementVNode("span",a.mergeProps({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:e[7]||(e[7]=function(){return i.onFirstHiddenFocus&&i.onFirstHiddenFocus.apply(i,arguments)})},t.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),a.renderSlot(t.$slots,"header",{value:t.modelValue,options:i.visibleOptions}),t.filter?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("header")},t.ptm("header")),[a.createElementVNode("div",a.mergeProps({class:t.cx("filterContainer")},t.ptm("filterContainer")),[a.createElementVNode("input",a.mergeProps({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:e[8]||(e[8]=function(){return i.onFilterUpdated&&i.onFilterUpdated.apply(i,arguments)}),onVnodeUpdated:e[9]||(e[9]=function(){return i.onFilterUpdated&&i.onFilterUpdated.apply(i,arguments)}),class:t.cx("filterInput"),placeholder:t.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":i.focusedOptionId,onKeydown:e[10]||(e[10]=function(){return i.onFilterKeyDown&&i.onFilterKeyDown.apply(i,arguments)}),onBlur:e[11]||(e[11]=function(){return i.onFilterBlur&&i.onFilterBlur.apply(i,arguments)}),onInput:e[12]||(e[12]=function(){return i.onFilterChange&&i.onFilterChange.apply(i,arguments)})},un(un({},t.filterInputProps),t.ptm("filterInput"))),null,16,yP),a.renderSlot(t.$slots,"filtericon",{class:a.normalizeClass(t.cx("filterIcon"))},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.filterIcon?"span":"SearchIcon"),a.mergeProps({class:[t.cx("filterIcon"),t.filterIcon]},t.ptm("filterIcon")),null,16,["class"]))]})],16),a.createElementVNode("span",a.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},t.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),a.toDisplayString(i.filterResultMessageText),17)],16)):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("wrapper"),style:{"max-height":i.virtualScrollerDisabled?t.scrollHeight:""}},t.ptm("wrapper")),[a.createVNode(u,a.mergeProps({ref:i.virtualScrollerRef},t.virtualScrollerOptions,{items:i.visibleOptions,style:{height:t.scrollHeight},tabindex:-1,disabled:i.virtualScrollerDisabled,pt:t.ptm("virtualScroller")}),a.createSlots({content:a.withCtx(function(p){var h=p.styleClass,m=p.contentRef,y=p.items,g=p.getItemOptions,b=p.contentStyle,w=p.itemSize;return[a.createElementVNode("ul",a.mergeProps({ref:function(v){return i.listRef(v,m)},id:o.id+"_list",class:[t.cx("list"),h],style:b,role:"listbox"},t.ptm("list")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y,function(C,v){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.getOptionRenderKey(C,i.getOptionIndex(v,g))},[i.isOptionGroup(C)?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,id:o.id+"_"+i.getOptionIndex(v,g),style:{height:w?w+"px":void 0},class:t.cx("itemGroup"),role:"option"},t.ptm("itemGroup")),[a.renderSlot(t.$slots,"optiongroup",{option:C.optionGroup,index:i.getOptionIndex(v,g)},function(){return[a.createElementVNode("span",a.mergeProps({class:t.cx("itemGroupLabel")},t.ptm("itemGroupLabel")),a.toDisplayString(i.getOptionGroupLabel(C.optionGroup)),17)]})],16,wP)):a.withDirectives((a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,id:o.id+"_"+i.getOptionIndex(v,g),class:t.cx("item",{option:C,focusedOption:i.getOptionIndex(v,g)}),style:{height:w?w+"px":void 0},role:"option","aria-label":i.getOptionLabel(C),"aria-selected":i.isSelected(C),"aria-disabled":i.isOptionDisabled(C),"aria-setsize":i.ariaSetSize,"aria-posinset":i.getAriaPosInset(i.getOptionIndex(v,g)),onClick:function(S){return i.onOptionSelect(S,C)},onMousemove:function(S){return i.onOptionMouseMove(S,i.getOptionIndex(v,g))},"data-p-highlight":i.isSelected(C),"data-p-focused":o.focusedOptionIndex===i.getOptionIndex(v,g),"data-p-disabled":i.isOptionDisabled(C)},i.getPTItemOptions(C,g,v,"item")),[t.checkmark?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[i.isSelected(C)?(a.openBlock(),a.createBlock(l,a.mergeProps({key:0,class:t.cx("checkIcon")},t.ptm("checkIcon")),null,16,["class"])):(a.openBlock(),a.createBlock(c,a.mergeProps({key:1,class:t.cx("blankIcon")},t.ptm("blankIcon")),null,16,["class"]))],64)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"option",{option:C,index:i.getOptionIndex(v,g)},function(){return[a.createElementVNode("span",a.mergeProps({class:t.cx("itemLabel")},t.ptm("itemLabel")),a.toDisplayString(i.getOptionLabel(C)),17)]})],16,vP)),[[f]])],64)}),128)),o.filterValue&&(!y||y&&y.length===0)?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,class:t.cx("emptyMessage"),role:"option"},t.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[a.renderSlot(t.$slots,"emptyfilter",{},function(){return[a.createTextVNode(a.toDisplayString(i.emptyFilterMessageText),1)]})],16)):!t.options||t.options&&t.options.length===0?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,class:t.cx("emptyMessage"),role:"option"},t.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[a.renderSlot(t.$slots,"empty",{},function(){return[a.createTextVNode(a.toDisplayString(i.emptyMessageText),1)]})],16)):a.createCommentVNode("",!0)],16,bP)]}),_:2},[t.$slots.loader?{name:"loader",fn:a.withCtx(function(p){var h=p.options;return[a.renderSlot(t.$slots,"loader",{options:h})]}),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),a.renderSlot(t.$slots,"footer",{value:t.modelValue,options:i.visibleOptions}),!t.options||t.options&&t.options.length===0?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},t.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),a.toDisplayString(i.emptyMessageText),17)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},t.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),a.toDisplayString(i.selectedMessageText),17),a.createElementVNode("span",a.mergeProps({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:e[13]||(e[13]=function(){return i.onLastHiddenFocus&&i.onLastHiddenFocus.apply(i,arguments)})},t.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):a.createCommentVNode("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16,hP)}kl.render=CP;var SP={root:function(e){var n=e.props,r=e.instance;return["p-badge p-component",{"p-badge-no-gutter":M.isNotEmpty(n.value)&&String(n.value).length===1,"p-badge-dot":M.isEmpty(n.value)&&!r.$slots.default,"p-badge-lg":n.size==="large","p-badge-xl":n.size==="xlarge","p-badge-info":n.severity==="info","p-badge-success":n.severity==="success","p-badge-warning":n.severity==="warning","p-badge-danger":n.severity==="danger","p-badge-secondary":n.severity==="secondary","p-badge-contrast":n.severity==="contrast"}]}},kP=je.extend({name:"badge",classes:SP}),OP={name:"BaseBadge",extends:re,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:kP,provide:function(){return{$parentInstance:this}}},Jg={name:"Badge",extends:OP,inheritAttrs:!1};function EP(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:t.cx("root")},t.ptmi("root")),[a.renderSlot(t.$slots,"default",{},function(){return[a.createTextVNode(a.toDisplayString(t.value),1)]})],16)}Jg.render=EP;function Ts(t){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ts(t)}function cr(t,e,n){return e=TP(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TP(t){var e=MP(t,"string");return Ts(e)=="symbol"?e:String(e)}function MP(t,e){if(Ts(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var xP={root:function(e){var n=e.instance,r=e.props;return["p-button p-component",cr(cr(cr(cr(cr(cr(cr(cr({"p-button-icon-only":n.hasIcon&&!r.label&&!r.badge,"p-button-vertical":(r.iconPos==="top"||r.iconPos==="bottom")&&r.label,"p-disabled":n.$attrs.disabled||n.$attrs.disabled===""||r.loading,"p-button-loading":r.loading,"p-button-loading-label-only":r.loading&&!n.hasIcon&&r.label,"p-button-link":r.link},"p-button-".concat(r.severity),r.severity),"p-button-raised",r.raised),"p-button-rounded",r.rounded),"p-button-text",r.text),"p-button-outlined",r.outlined),"p-button-sm",r.size==="small"),"p-button-lg",r.size==="large"),"p-button-plain",r.plain)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var n=e.props;return["p-button-icon",{"p-button-icon-left":n.iconPos==="left"&&n.label,"p-button-icon-right":n.iconPos==="right"&&n.label,"p-button-icon-top":n.iconPos==="top"&&n.label,"p-button-icon-bottom":n.iconPos==="bottom"&&n.label}]},label:"p-button-label"},PP=je.extend({name:"button",classes:xP}),DP={name:"BaseButton",extends:re,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:PP,provide:function(){return{$parentInstance:this}}},lu={name:"Button",extends:DP,inheritAttrs:!1,methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||this.$attrs.disabled===""||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:vs,Badge:Jg},directives:{ripple:Mn}},AP=["aria-label","disabled","data-p-severity"];function IP(t,e,n,r,o,i){var s=a.resolveComponent("SpinnerIcon"),l=a.resolveComponent("Badge"),c=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:t.cx("root"),type:"button","aria-label":i.defaultAriaLabel,disabled:i.disabled},i.getPTOptions("root"),{"data-p-severity":t.severity}),[a.renderSlot(t.$slots,"default",{},function(){return[t.loading?a.renderSlot(t.$slots,"loadingicon",{key:0,class:a.normalizeClass([t.cx("loadingIcon"),t.cx("icon")])},function(){return[t.loadingIcon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:[t.cx("loadingIcon"),t.cx("icon"),t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:[t.cx("loadingIcon"),t.cx("icon")],spin:""},t.ptm("loadingIcon")),null,16,["class"]))]}):a.renderSlot(t.$slots,"icon",{key:1,class:a.normalizeClass([t.cx("icon")])},function(){return[t.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:[t.cx("icon"),t.icon,t.iconClass]},t.ptm("icon")),null,16)):a.createCommentVNode("",!0)]}),a.createElementVNode("span",a.mergeProps({class:t.cx("label")},t.ptm("label")),a.toDisplayString(t.label||"Ā "),17),t.badge?(a.openBlock(),a.createBlock(l,a.mergeProps({key:2,value:t.badge,class:t.badgeClass,severity:t.badgeSeverity,unstyled:t.unstyled},t.ptm("badge")),null,16,["value","class","severity","unstyled"])):a.createCommentVNode("",!0)]})],16,AP)),[[c]])}lu.render=IP;var Qg={name:"AngleDownIcon",extends:be},NP=a.createElementVNode("path",{d:"M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z",fill:"currentColor"},null,-1),BP=[NP];function RP(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),BP,16)}Qg.render=RP;var Xg={name:"AngleUpIcon",extends:be},LP=a.createElementVNode("path",{d:"M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z",fill:"currentColor"},null,-1),VP=[LP];function $P(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),VP,16)}Xg.render=$P;var FP={root:function(e){var n=e.instance,r=e.props;return["p-inputtext p-component",{"p-filled":n.filled,"p-inputtext-sm":r.size==="small","p-inputtext-lg":r.size==="large","p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]}},HP=je.extend({name:"inputtext",classes:FP}),_P={name:"BaseInputText",extends:re,props:{modelValue:null,size:{type:String,default:null},invalid:{type:Boolean,default:!1},variant:{type:String,default:null}},style:HP,provide:function(){return{$parentInstance:this}}},e5={name:"InputText",extends:_P,inheritAttrs:!1,emits:["update:modelValue"],methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{filled:this.filled,disabled:this.$attrs.disabled||this.$attrs.disabled===""}})},onInput:function(e){this.$emit("update:modelValue",e.target.value)}},computed:{filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0}}},zP=["value","aria-invalid"];function jP(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("input",a.mergeProps({class:t.cx("root"),value:t.modelValue,"aria-invalid":t.invalid||void 0,onInput:e[0]||(e[0]=function(){return i.onInput&&i.onInput.apply(i,arguments)})},i.getPTOptions("root")),null,16,zP)}e5.render=jP;var ZP={root:function(e){var n=e.instance,r=e.props;return["p-inputnumber p-component p-inputwrapper",{"p-inputwrapper-filled":n.filled||r.allowEmpty===!1,"p-inputwrapper-focus":n.focused,"p-inputnumber-buttons-stacked":r.showButtons&&r.buttonLayout==="stacked","p-inputnumber-buttons-horizontal":r.showButtons&&r.buttonLayout==="horizontal","p-inputnumber-buttons-vertical":r.showButtons&&r.buttonLayout==="vertical","p-invalid":r.invalid}]},input:function(e){var n=e.props,r=e.instance;return["p-inputnumber-input",{"p-variant-filled":n.variant?n.variant==="filled":r.$primevue.config.inputStyle==="filled"}]},buttonGroup:"p-inputnumber-button-group",incrementButton:function(e){var n=e.instance,r=e.props;return["p-inputnumber-button p-inputnumber-button-up",{"p-disabled":r.showButtons&&r.max!==null&&n.maxBoundry()}]},decrementButton:function(e){var n=e.instance,r=e.props;return["p-inputnumber-button p-inputnumber-button-down",{"p-disabled":r.showButtons&&r.min!==null&&n.minBoundry()}]}},WP=je.extend({name:"inputnumber",classes:ZP}),UP={name:"BaseInputNumber",extends:re,props:{modelValue:{type:Number,default:null},format:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!1},buttonLayout:{type:String,default:"stacked"},incrementButtonClass:{type:String,default:null},decrementButtonClass:{type:String,default:null},incrementButtonIcon:{type:String,default:void 0},decrementButtonIcon:{type:String,default:void 0},locale:{type:String,default:void 0},localeMatcher:{type:String,default:void 0},mode:{type:String,default:"decimal"},prefix:{type:String,default:null},suffix:{type:String,default:null},currency:{type:String,default:void 0},currencyDisplay:{type:String,default:void 0},useGrouping:{type:Boolean,default:!0},minFractionDigits:{type:Number,default:void 0},maxFractionDigits:{type:Number,default:void 0},roundingMode:{type:String,default:"halfExpand",validator:function(e){return["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"].includes(e)}},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},allowEmpty:{type:Boolean,default:!0},highlightOnFocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},incrementButtonProps:{type:null,default:null},decrementButtonProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:WP,provide:function(){return{$parentInstance:this}}};function Ms(t){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ms(t)}function t5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function n5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?t5(Object(n),!0).forEach(function(r){KP(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function KP(t,e,n){return e=GP(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function GP(t){var e=qP(t,"string");return Ms(e)=="symbol"?e:String(e)}function qP(t,e){if(Ms(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function YP(t){return eD(t)||XP(t)||QP(t)||JP()}function JP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
173
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QP(t,e){if(t){if(typeof t=="string")return cu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cu(t,e)}}function XP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function eD(t){if(Array.isArray(t))return cu(t)}function cu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var r5={name:"InputNumber",extends:UP,inheritAttrs:!1,emits:["update:modelValue","input","focus","blur"],numberFormat:null,_numeral:null,_decimal:null,_group:null,_minusSign:null,_currency:null,_suffix:null,_prefix:null,_index:null,groupChar:"",isSpecialChar:null,prefixChar:null,suffixChar:null,timer:null,data:function(){return{d_modelValue:this.modelValue,focused:!1}},watch:{modelValue:function(e){this.d_modelValue=e},locale:function(e,n){this.updateConstructParser(e,n)},localeMatcher:function(e,n){this.updateConstructParser(e,n)},mode:function(e,n){this.updateConstructParser(e,n)},currency:function(e,n){this.updateConstructParser(e,n)},currencyDisplay:function(e,n){this.updateConstructParser(e,n)},useGrouping:function(e,n){this.updateConstructParser(e,n)},minFractionDigits:function(e,n){this.updateConstructParser(e,n)},maxFractionDigits:function(e,n){this.updateConstructParser(e,n)},suffix:function(e,n){this.updateConstructParser(e,n)},prefix:function(e,n){this.updateConstructParser(e,n)}},created:function(){this.constructParser()},methods:{getOptions:function(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits,roundingMode:this.roundingMode}},constructParser:function(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());var e=YP(new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)).reverse(),n=new Map(e.map(function(r,o){return[r,o]}));this._numeral=new RegExp("[".concat(e.join(""),"]"),"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=function(r){return n.get(r)}},updateConstructParser:function(e,n){e!==n&&this.constructParser()},escapeRegExp:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},getDecimalExpression:function(){var e=new Intl.NumberFormat(this.locale,n5(n5({},this.getOptions()),{},{useGrouping:!1}));return new RegExp("[".concat(e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,""),"]"),"g")},getGroupingExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp("[".concat(this.groupChar,"]"),"g")},getMinusSignExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp("[".concat(e.format(-1).trim().replace(this._numeral,""),"]"),"g")},getCurrencyExpression:function(){if(this.currency){var e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});return new RegExp("[".concat(e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,""),"]"),"g")}return new RegExp("[]","g")},getPrefixExpression:function(){if(this.prefix)this.prefixChar=this.prefix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp("".concat(this.escapeRegExp(this.prefixChar||"")),"g")},getSuffixExpression:function(){if(this.suffix)this.suffixChar=this.suffix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});this.suffixChar=e.format(1).split("1")[1]}return new RegExp("".concat(this.escapeRegExp(this.suffixChar||"")),"g")},formatValue:function(e){if(e!=null){if(e==="-")return e;if(this.format){var n=new Intl.NumberFormat(this.locale,this.getOptions()),r=n.format(e);return this.prefix&&(r=this.prefix+r),this.suffix&&(r=r+this.suffix),r}return e.toString()}return""},parseValue:function(e){var n=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(n){if(n==="-")return n;var r=+n;return isNaN(r)?null:r}return null},repeat:function(e,n,r){var o=this;if(!this.readonly){var i=n||500;this.clearTimer(),this.timer=setTimeout(function(){o.repeat(e,40,r)},i),this.spin(e,r)}},spin:function(e,n){if(this.$refs.input){var r=this.step*n,o=this.parseValue(this.$refs.input.$el.value)||0,i=this.validateValue(o+r);this.updateInput(i,null,"spin"),this.updateModel(e,i),this.handleOnInput(e,o,i)}},onUpButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,1),e.preventDefault())},onUpButtonMouseUp:function(){this.disabled||this.clearTimer()},onUpButtonMouseLeave:function(){this.disabled||this.clearTimer()},onUpButtonKeyUp:function(){this.disabled||this.clearTimer()},onUpButtonKeyDown:function(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,1)},onDownButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,-1),e.preventDefault())},onDownButtonMouseUp:function(){this.disabled||this.clearTimer()},onDownButtonMouseLeave:function(){this.disabled||this.clearTimer()},onDownButtonKeyUp:function(){this.disabled||this.clearTimer()},onDownButtonKeyDown:function(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,-1)},onUserInput:function(){this.isSpecialChar&&(this.$refs.input.$el.value=this.lastValue),this.isSpecialChar=!1},onInputKeyDown:function(e){if(!this.readonly){if(this.lastValue=e.target.value,e.shiftKey||e.altKey){this.isSpecialChar=!0;return}var n=e.target.selectionStart,r=e.target.selectionEnd,o=e.target.value,i=null;switch(e.altKey&&e.preventDefault(),e.code){case"ArrowUp":this.spin(e,1),e.preventDefault();break;case"ArrowDown":this.spin(e,-1),e.preventDefault();break;case"ArrowLeft":this.isNumeralChar(o.charAt(n-1))||e.preventDefault();break;case"ArrowRight":this.isNumeralChar(o.charAt(n))||e.preventDefault();break;case"Tab":case"Enter":case"NumpadEnter":i=this.validateValue(this.parseValue(o)),this.$refs.input.$el.value=this.formatValue(i),this.$refs.input.$el.setAttribute("aria-valuenow",i),this.updateModel(e,i);break;case"Backspace":{if(e.preventDefault(),n===r){var s=o.charAt(n-1),l=this.getDecimalCharIndexes(o),c=l.decimalCharIndex,u=l.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(s)){var d=this.getDecimalLength(o);if(this._group.test(s))this._group.lastIndex=0,i=o.slice(0,n-2)+o.slice(n-1);else if(this._decimal.test(s))this._decimal.lastIndex=0,d?this.$refs.input.$el.setSelectionRange(n-1,n-1):i=o.slice(0,n-1)+o.slice(n);else if(c>0&&n>c){var f=this.isDecimalMode()&&(this.minFractionDigits||0)<d?"":"0";i=o.slice(0,n-1)+f+o.slice(n)}else u===1?(i=o.slice(0,n-1)+"0"+o.slice(n),i=this.parseValue(i)>0?i:""):i=o.slice(0,n-1)+o.slice(n)}this.updateValue(e,i,null,"delete-single")}else i=this.deleteRange(o,n,r),this.updateValue(e,i,null,"delete-range");break}case"Delete":if(e.preventDefault(),n===r){var p=o.charAt(n),h=this.getDecimalCharIndexes(o),m=h.decimalCharIndex,y=h.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(p)){var g=this.getDecimalLength(o);if(this._group.test(p))this._group.lastIndex=0,i=o.slice(0,n)+o.slice(n+2);else if(this._decimal.test(p))this._decimal.lastIndex=0,g?this.$refs.input.$el.setSelectionRange(n+1,n+1):i=o.slice(0,n)+o.slice(n+1);else if(m>0&&n>m){var b=this.isDecimalMode()&&(this.minFractionDigits||0)<g?"":"0";i=o.slice(0,n)+b+o.slice(n+1)}else y===1?(i=o.slice(0,n)+"0"+o.slice(n+1),i=this.parseValue(i)>0?i:""):i=o.slice(0,n)+o.slice(n+1)}this.updateValue(e,i,null,"delete-back-single")}else i=this.deleteRange(o,n,r),this.updateValue(e,i,null,"delete-range");break;case"Home":e.preventDefault(),M.isEmpty(this.min)||this.updateModel(e,this.min);break;case"End":e.preventDefault(),M.isEmpty(this.max)||this.updateModel(e,this.max);break}}},onInputKeyPress:function(e){if(!this.readonly){e.preventDefault();var n=e.which||e.keyCode,r=String.fromCharCode(n),o=this.isDecimalSign(r),i=this.isMinusSign(r);(48<=n&&n<=57||i||o)&&this.insert(e,r,{isDecimalSign:o,isMinusSign:i})}},onPaste:function(e){e.preventDefault();var n=(e.clipboardData||window.clipboardData).getData("Text");if(n){var r=this.parseValue(n);r!=null&&this.insert(e,r.toString())}},allowMinusSign:function(){return this.min===null||this.min<0},isMinusSign:function(e){return this._minusSign.test(e)||e==="-"?(this._minusSign.lastIndex=0,!0):!1},isDecimalSign:function(e){return this._decimal.test(e)?(this._decimal.lastIndex=0,!0):!1},isDecimalMode:function(){return this.mode==="decimal"},getDecimalCharIndexes:function(e){var n=e.search(this._decimal);this._decimal.lastIndex=0;var r=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,""),o=r.search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:o}},getCharIndexes:function(e){var n=e.search(this._decimal);this._decimal.lastIndex=0;var r=e.search(this._minusSign);this._minusSign.lastIndex=0;var o=e.search(this._suffix);this._suffix.lastIndex=0;var i=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:r,suffixCharIndex:o,currencyCharIndex:i}},insert:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},o=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!(!this.allowMinusSign()&&o!==-1)){var i=this.$refs.input.$el.selectionStart,s=this.$refs.input.$el.selectionEnd,l=this.$refs.input.$el.value.trim(),c=this.getCharIndexes(l),u=c.decimalCharIndex,d=c.minusCharIndex,f=c.suffixCharIndex,p=c.currencyCharIndex,h;if(r.isMinusSign)i===0&&(h=l,(d===-1||s!==0)&&(h=this.insertText(l,n,0,s)),this.updateValue(e,h,n,"insert"));else if(r.isDecimalSign)u>0&&i===u?this.updateValue(e,l,n,"insert"):u>i&&u<s?(h=this.insertText(l,n,i,s),this.updateValue(e,h,n,"insert")):u===-1&&this.maxFractionDigits&&(h=this.insertText(l,n,i,s),this.updateValue(e,h,n,"insert"));else{var m=this.numberFormat.resolvedOptions().maximumFractionDigits,y=i!==s?"range-insert":"insert";if(u>0&&i>u){if(i+n.length-(u+1)<=m){var g=p>=i?p-1:f>=i?f:l.length;h=l.slice(0,i)+n+l.slice(i+n.length,g)+l.slice(g),this.updateValue(e,h,n,y)}}else h=this.insertText(l,n,i,s),this.updateValue(e,h,n,y)}}},insertText:function(e,n,r,o){var i=n==="."?n:n.split(".");if(i.length===2){var s=e.slice(r,o).search(this._decimal);return this._decimal.lastIndex=0,s>0?e.slice(0,r)+this.formatValue(n)+e.slice(o):this.formatValue(n)||e}else return o-r===e.length?this.formatValue(n):r===0?n+e.slice(o):o===e.length?e.slice(0,r)+n:e.slice(0,r)+n+e.slice(o)},deleteRange:function(e,n,r){var o;return r-n===e.length?o="":n===0?o=e.slice(r):r===e.length?o=e.slice(0,n):o=e.slice(0,n)+e.slice(r),o},initCursor:function(){var e=this.$refs.input.$el.selectionStart,n=this.$refs.input.$el.value,r=n.length,o=null,i=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e=e-i;var s=n.charAt(e);if(this.isNumeralChar(s))return e+i;for(var l=e-1;l>=0;)if(s=n.charAt(l),this.isNumeralChar(s)){o=l+i;break}else l--;if(o!==null)this.$refs.input.$el.setSelectionRange(o+1,o+1);else{for(l=e;l<r;)if(s=n.charAt(l),this.isNumeralChar(s)){o=l+i;break}else l++;o!==null&&this.$refs.input.$el.setSelectionRange(o,o)}return o||0},onInputClick:function(){var e=this.$refs.input.$el.value;!this.readonly&&e!==O.getSelection()&&this.initCursor()},isNumeralChar:function(e){return e.length===1&&(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e))?(this.resetRegex(),!0):!1},resetRegex:function(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0},updateValue:function(e,n,r,o){var i=this.$refs.input.$el.value,s=null;n!=null&&(s=this.parseValue(n),s=!s&&!this.allowEmpty?0:s,this.updateInput(s,r,o,n),this.handleOnInput(e,i,s))},handleOnInput:function(e,n,r){this.isValueChanged(n,r)&&this.$emit("input",{originalEvent:e,value:r,formattedValue:n})},isValueChanged:function(e,n){if(n===null&&e!==null)return!0;if(n!=null){var r=typeof e=="string"?this.parseValue(e):e;return n!==r}return!1},validateValue:function(e){return e==="-"||e==null?null:this.min!=null&&e<this.min?this.min:this.max!=null&&e>this.max?this.max:e},updateInput:function(e,n,r,o){n=n||"";var i=this.$refs.input.$el.value,s=this.formatValue(e),l=i.length;if(s!==o&&(s=this.concatValues(s,o)),l===0){this.$refs.input.$el.value=s,this.$refs.input.$el.setSelectionRange(0,0);var c=this.initCursor(),u=c+n.length;this.$refs.input.$el.setSelectionRange(u,u)}else{var d=this.$refs.input.$el.selectionStart,f=this.$refs.input.$el.selectionEnd;this.$refs.input.$el.value=s;var p=s.length;if(r==="range-insert"){var h=this.parseValue((i||"").slice(0,d)),m=h!==null?h.toString():"",y=m.split("").join("(".concat(this.groupChar,")?")),g=new RegExp(y,"g");g.test(s);var b=n.split("").join("(".concat(this.groupChar,")?")),w=new RegExp(b,"g");w.test(s.slice(g.lastIndex)),f=g.lastIndex+w.lastIndex,this.$refs.input.$el.setSelectionRange(f,f)}else if(p===l)if(r==="insert"||r==="delete-back-single"){var C=/[.,]/g,v=f+Number(C.test(e)||C.test(n));this.$refs.input.$el.setSelectionRange(v,v)}else r==="delete-single"?this.$refs.input.$el.setSelectionRange(f-1,f-1):(r==="delete-range"||r==="spin")&&this.$refs.input.$el.setSelectionRange(f,f);else if(r==="delete-back-single"){var E=i.charAt(f-1),S=i.charAt(f),k=l-p,T=this._group.test(S);T&&k===1?f+=1:!T&&this.isNumeralChar(E)&&(f+=-1*k+1),this._group.lastIndex=0,this.$refs.input.$el.setSelectionRange(f,f)}else if(i==="-"&&r==="insert"){this.$refs.input.$el.setSelectionRange(0,0);var D=this.initCursor(),N=D+n.length+1;this.$refs.input.$el.setSelectionRange(N,N)}else f=f+(p-l),this.$refs.input.$el.setSelectionRange(f,f)}this.$refs.input.$el.setAttribute("aria-valuenow",e)},concatValues:function(e,n){if(e&&n){var r=n.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?r!==-1?e.replace(this.suffixChar,"").split(this._decimal)[0]+n.replace(this.suffixChar,"").slice(r)+this.suffixChar:e:r!==-1?e.split(this._decimal)[0]+n.slice(r):e}return e},getDecimalLength:function(e){if(e){var n=e.split(this._decimal);if(n.length===2)return n[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0},updateModel:function(e,n){this.d_modelValue=n,this.$emit("update:modelValue",n)},onInputFocus:function(e){this.focused=!0,!this.disabled&&!this.readonly&&this.$refs.input.$el.value!==O.getSelection()&&this.highlightOnFocus&&e.target.select(),this.$emit("focus",e)},onInputBlur:function(e){this.focused=!1;var n=e.target,r=this.validateValue(this.parseValue(n.value));this.$emit("blur",{originalEvent:e,value:n.value}),n.value=this.formatValue(r),n.setAttribute("aria-valuenow",r),this.updateModel(e,r),!this.disabled&&!this.readonly&&this.highlightOnFocus&&O.clearSelection()},clearTimer:function(){this.timer&&clearInterval(this.timer)},maxBoundry:function(){return this.d_modelValue>=this.max},minBoundry:function(){return this.d_modelValue<=this.min}},computed:{filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0},upButtonListeners:function(){var e=this;return{mousedown:function(r){return e.onUpButtonMouseDown(r)},mouseup:function(r){return e.onUpButtonMouseUp(r)},mouseleave:function(r){return e.onUpButtonMouseLeave(r)},keydown:function(r){return e.onUpButtonKeyDown(r)},keyup:function(r){return e.onUpButtonKeyUp(r)}}},downButtonListeners:function(){var e=this;return{mousedown:function(r){return e.onDownButtonMouseDown(r)},mouseup:function(r){return e.onDownButtonMouseUp(r)},mouseleave:function(r){return e.onDownButtonMouseLeave(r)},keydown:function(r){return e.onDownButtonKeyDown(r)},keyup:function(r){return e.onDownButtonKeyUp(r)}}},formattedValue:function(){var e=!this.modelValue&&!this.allowEmpty?0:this.modelValue;return this.formatValue(e)},getFormatter:function(){return this.numberFormat}},components:{INInputText:e5,INButton:lu,AngleUpIcon:Xg,AngleDownIcon:Qg}};function tD(t,e,n,r,o,i){var s=a.resolveComponent("INInputText"),l=a.resolveComponent("INButton");return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:t.cx("root")},t.ptmi("root")),[a.createVNode(s,a.mergeProps({ref:"input",id:t.inputId,role:"spinbutton",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:i.formattedValue,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,disabled:t.disabled,readonly:t.readonly,placeholder:t.placeholder,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-invalid":t.invalid||void 0,onInput:i.onUserInput,onKeydown:i.onInputKeyDown,onKeypress:i.onInputKeyPress,onPaste:i.onPaste,onClick:i.onInputClick,onFocus:i.onInputFocus,onBlur:i.onInputBlur},t.inputProps,{pt:t.ptm("input"),unstyled:t.unstyled}),null,16,["id","class","style","value","aria-valuemin","aria-valuemax","aria-valuenow","disabled","readonly","placeholder","aria-labelledby","aria-label","aria-invalid","onInput","onKeydown","onKeypress","onPaste","onClick","onFocus","onBlur","pt","unstyled"]),t.showButtons&&t.buttonLayout==="stacked"?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:t.cx("buttonGroup")},t.ptm("buttonGroup")),[a.createVNode(l,a.mergeProps({class:[t.cx("incrementButton"),t.incrementButtonClass]},a.toHandlers(i.upButtonListeners),{disabled:t.disabled,tabindex:-1,"aria-hidden":"true"},t.incrementButtonProps,{pt:t.ptm("incrementButton"),unstyled:t.unstyled}),{icon:a.withCtx(function(){return[a.renderSlot(t.$slots,"incrementbuttonicon",{},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.incrementButtonIcon?"span":"AngleUpIcon"),a.mergeProps({class:t.incrementButtonIcon},t.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","pt","unstyled"]),a.createVNode(l,a.mergeProps({class:[t.cx("decrementButton"),t.decrementButtonClass]},a.toHandlers(i.downButtonListeners),{disabled:t.disabled,tabindex:-1,"aria-hidden":"true"},t.decrementButtonProps,{pt:t.ptm("decrementButton"),unstyled:t.unstyled}),{icon:a.withCtx(function(){return[a.renderSlot(t.$slots,"decrementbuttonicon",{},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.decrementButtonIcon?"span":"AngleDownIcon"),a.mergeProps({class:t.decrementButtonIcon},t.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","pt","unstyled"])],16)):a.createCommentVNode("",!0),t.showButtons&&t.buttonLayout!=="stacked"?(a.openBlock(),a.createBlock(l,a.mergeProps({key:1,class:[t.cx("incrementButton"),t.incrementButtonClass]},a.toHandlers(i.upButtonListeners),{disabled:t.disabled,tabindex:-1,"aria-hidden":"true"},t.incrementButtonProps,{pt:t.ptm("incrementButton"),unstyled:t.unstyled}),{icon:a.withCtx(function(){return[a.renderSlot(t.$slots,"incrementbuttonicon",{},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.incrementButtonIcon?"span":"AngleUpIcon"),a.mergeProps({class:t.incrementButtonIcon},t.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","pt","unstyled"])):a.createCommentVNode("",!0),t.showButtons&&t.buttonLayout!=="stacked"?(a.openBlock(),a.createBlock(l,a.mergeProps({key:2,class:[t.cx("decrementButton"),t.decrementButtonClass]},a.toHandlers(i.downButtonListeners),{disabled:t.disabled,tabindex:-1,"aria-hidden":"true"},t.decrementButtonProps,{pt:t.ptm("decrementButton"),unstyled:t.unstyled}),{icon:a.withCtx(function(){return[a.renderSlot(t.$slots,"decrementbuttonicon",{},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.decrementButtonIcon?"span":"AngleDownIcon"),a.mergeProps({class:t.decrementButtonIcon},t.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","pt","unstyled"])):a.createCommentVNode("",!0)],16)}r5.render=tD;var o5={name:"AngleDoubleRightIcon",extends:be},nD=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z",fill:"currentColor"},null,-1),rD=[nD];function oD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),rD,16)}o5.render=oD;var i5={name:"AngleRightIcon",extends:be},iD=a.createElementVNode("path",{d:"M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z",fill:"currentColor"},null,-1),sD=[iD];function aD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),sD,16)}i5.render=aD;var s5={name:"AngleLeftIcon",extends:be},lD=a.createElementVNode("path",{d:"M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z",fill:"currentColor"},null,-1),cD=[lD];function uD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),cD,16)}s5.render=uD;var dD={name:"BasePaginator",extends:re,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},style:Px,provide:function(){return{$parentInstance:this}}},a5={name:"CurrentPageReport",hostName:"Paginator",extends:re,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var e=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return e}}};function fD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:t.cx("current")},t.ptm("current")),a.toDisplayString(i.text),17)}a5.render=fD;var l5={name:"FirstPageLink",hostName:"Paginator",extends:re,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:_g},directives:{ripple:Mn}};function pD(t,e,n,r,o,i){var s=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:t.cx("firstPageButton"),type:"button"},i.getPTOptions("firstPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleLeftIcon"),a.mergeProps({class:t.cx("firstPageIcon")},i.getPTOptions("firstPageIcon")),null,16,["class"]))],16)),[[s]])}l5.render=pD;var c5={name:"JumpToPageDropdown",hostName:"Paginator",extends:re,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean,templates:null},methods:{onChange:function(e){this.$emit("page-change",e)}},computed:{pageOptions:function(){for(var e=[],n=0;n<this.pageCount;n++)e.push({label:String(n+1),value:n});return e}},components:{JTPDropdown:kl}};function hD(t,e,n,r,o,i){var s=a.resolveComponent("JTPDropdown");return a.openBlock(),a.createBlock(s,{modelValue:n.page,options:i.pageOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[0]||(e[0]=function(l){return i.onChange(l)}),class:a.normalizeClass(t.cx("jumpToPageDropdown")),disabled:n.disabled,unstyled:t.unstyled,pt:t.ptm("jumpToPageDropdown"),"data-pc-group-section":"pagedropdown"},a.createSlots({_:2},[n.templates.jumptopagedropdownicon?{name:"dropdownicon",fn:a.withCtx(function(l){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.jumptopagedropdownicon),{class:a.normalizeClass(l.class)},null,8,["class"]))]}),key:"0"}:void 0]),1032,["modelValue","options","class","disabled","unstyled","pt"])}c5.render=hD;var u5={name:"JumpToPageInput",hostName:"Paginator",extends:re,inheritAttrs:!1,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},data:function(){return{d_page:this.page}},watch:{page:function(e){this.d_page=e}},methods:{onChange:function(e){e!==this.page&&(this.d_page=e,this.$emit("page-change",e-1))}},computed:{inputArialabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.jumpToPageInputLabel:void 0}},components:{JTPInput:r5}};function mD(t,e,n,r,o,i){var s=a.resolveComponent("JTPInput");return a.openBlock(),a.createBlock(s,{ref:"jtpInput",modelValue:o.d_page,class:a.normalizeClass(t.cx("jumpToPageInput")),"aria-label":i.inputArialabel,disabled:n.disabled,"onUpdate:modelValue":i.onChange,unstyled:t.unstyled,pt:t.ptm("jumpToPageInput")},null,8,["modelValue","class","aria-label","disabled","onUpdate:modelValue","unstyled","pt"])}u5.render=mD;var d5={name:"LastPageLink",hostName:"Paginator",extends:re,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleRightIcon:o5},directives:{ripple:Mn}};function gD(t,e,n,r,o,i){var s=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:t.cx("lastPageButton"),type:"button"},i.getPTOptions("lastPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleRightIcon"),a.mergeProps({class:t.cx("lastPageIcon")},i.getPTOptions("lastPageIcon")),null,16,["class"]))],16)),[[s]])}d5.render=gD;var f5={name:"NextPageLink",hostName:"Paginator",extends:re,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleRightIcon:i5},directives:{ripple:Mn}};function yD(t,e,n,r,o,i){var s=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:t.cx("nextPageButton"),type:"button"},i.getPTOptions("nextPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleRightIcon"),a.mergeProps({class:t.cx("nextPageIcon")},i.getPTOptions("nextPageIcon")),null,16,["class"]))],16)),[[s]])}f5.render=yD;var p5={name:"PageLinks",hostName:"Paginator",extends:re,inheritAttrs:!1,emits:["click"],props:{value:Array,page:Number},methods:{getPTOptions:function(e,n){return this.ptm(n,{context:{active:e===this.page}})},onPageLinkClick:function(e,n){this.$emit("click",{originalEvent:e,value:n})},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},directives:{ripple:Mn}},bD=["aria-label","aria-current","onClick","data-p-highlight"];function wD(t,e,n,r,o,i){var s=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:t.cx("pages")},t.ptm("pages")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,function(l){return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:l,class:t.cx("pageButton",{pageLink:l}),type:"button","aria-label":i.ariaPageLabel(l),"aria-current":l-1===n.page?"page":void 0,onClick:function(u){return i.onPageLinkClick(u,l)}},i.getPTOptions(l-1,"pageButton"),{"data-p-highlight":l-1===n.page}),[a.createTextVNode(a.toDisplayString(l),1)],16,bD)),[[s]])}),128))],16)}p5.render=wD;var h5={name:"PrevPageLink",hostName:"Paginator",extends:re,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleLeftIcon:s5},directives:{ripple:Mn}};function vD(t,e,n,r,o,i){var s=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:t.cx("previousPageButton"),type:"button"},i.getPTOptions("previousPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleLeftIcon"),a.mergeProps({class:t.cx("previousPageIcon")},i.getPTOptions("previousPageIcon")),null,16,["class"]))],16)),[[s]])}h5.render=vD;var m5={name:"RowsPerPageDropdown",hostName:"Paginator",extends:re,emits:["rows-change"],props:{options:Array,rows:Number,disabled:Boolean,templates:null},methods:{onChange:function(e){this.$emit("rows-change",e)}},computed:{rowsOptions:function(){var e=[];if(this.options)for(var n=0;n<this.options.length;n++)e.push({label:String(this.options[n]),value:this.options[n]});return e}},components:{RPPDropdown:kl}};function CD(t,e,n,r,o,i){var s=a.resolveComponent("RPPDropdown");return a.openBlock(),a.createBlock(s,{modelValue:n.rows,options:i.rowsOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[0]||(e[0]=function(l){return i.onChange(l)}),class:a.normalizeClass(t.cx("rowPerPageDropdown")),disabled:n.disabled,unstyled:t.unstyled,pt:t.ptm("rowPerPageDropdown"),"data-pc-group-section":"pagedropdown"},a.createSlots({_:2},[n.templates.rowsperpagedropdownicon?{name:"dropdownicon",fn:a.withCtx(function(l){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.rowsperpagedropdownicon),{class:a.normalizeClass(l.class)},null,8,["class"]))]}),key:"0"}:void 0]),1032,["modelValue","options","class","disabled","unstyled","pt"])}m5.render=CD;function SD(t){return ED(t)||OD(t)||y5(t)||kD()}function kD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
174
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OD(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ED(t){if(Array.isArray(t))return du(t)}function uu(t){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uu(t)}function g5(t,e){return xD(t)||MD(t,e)||y5(t,e)||TD()}function TD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
175
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y5(t,e){if(t){if(typeof t=="string")return du(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return du(t,e)}}function du(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function MD(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function xD(t){if(Array.isArray(t))return t}var b5={name:"Paginator",extends:dD,inheritAttrs:!1,emits:["update:first","update:rows","page"],data:function(){return{d_first:this.first,d_rows:this.rows}},watch:{first:function(e){this.d_first=e},rows:function(e){this.d_rows=e},totalRecords:function(e){this.page>0&&e&&this.d_first>=e&&this.changePage(this.pageCount-1)}},mounted:function(){this.setPaginatorAttribute(),this.createStyle()},methods:{changePage:function(e){var n=this.pageCount;if(e>=0&&e<n){this.d_first=this.d_rows*e;var r={page:e,first:this.d_first,rows:this.d_rows,pageCount:n};this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",r)}},changePageToFirst:function(e){this.isFirstPage||this.changePage(0),e.preventDefault()},changePageToPrev:function(e){this.changePage(this.page-1),e.preventDefault()},changePageLink:function(e){this.changePage(e.value-1),e.originalEvent.preventDefault()},changePageToNext:function(e){this.changePage(this.page+1),e.preventDefault()},changePageToLast:function(e){this.isLastPage||this.changePage(this.pageCount-1),e.preventDefault()},onRowChange:function(e){this.d_rows=e,this.changePage(this.page)},createStyle:function(){var e=this;if(this.hasBreakpoints()&&!this.isUnstyled){var n;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",O.setAttribute(this.styleElement,"nonce",(n=this.$primevue)===null||n===void 0||(n=n.config)===null||n===void 0||(n=n.csp)===null||n===void 0?void 0:n.nonce),document.head.appendChild(this.styleElement);var r="",o=Object.keys(this.template),i={};o.sort(function(m,y){return parseInt(m)-parseInt(y)}).forEach(function(m){i[m]=e.template[m]});for(var s=0,l=Object.entries(Object.entries(i));s<l.length;s++){var c=g5(l[s],2),u=c[0],d=g5(c[1],1),f=d[0],p=void 0,h=void 0;f!=="default"&&typeof Object.keys(i)[u-1]=="string"?h=Number(Object.keys(i)[u-1].slice(0,-2))+1+"px":h=Object.keys(i)[u-1],p=Object.entries(i)[u-1]?"and (min-width:".concat(h,")"):"",f==="default"?r+=`
171
+ `,Zg=je.extend({name:"virtualscroller",css:Yx}),Jx={name:"BaseVirtualScroller",extends:re,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:"vertical"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:Zg,provide:function(){return{$parentInstance:this}},beforeMount:function(){var e;Zg.loadStyle({nonce:(e=this.$config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce})}};function Ss(t){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ss(t)}function Wg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ks(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wg(Object(n),!0).forEach(function(r){Ug(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ug(t,e,n){return e=Qx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qx(t){var e=Xx(t,"string");return Ss(e)=="symbol"?e:String(e)}function Xx(t,e){if(Ss(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var su={name:"VirtualScroller",extends:Jx,inheritAttrs:!1,emits:["update:numToleratedItems","scroll","scroll-index-change","lazy-load"],data:function(){var e=this.isBoth();return{first:e?{rows:0,cols:0}:0,last:e?{rows:0,cols:0}:0,page:e?{rows:0,cols:0}:0,numItemsInViewport:e?{rows:0,cols:0}:0,lastScrollPos:e?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,initialized:!1,watch:{numToleratedItems:function(e){this.d_numToleratedItems=e},loading:function(e,n){this.lazy&&e!==n&&e!==this.d_loading&&(this.d_loading=e)},items:function(e,n){(!n||n.length!==(e||[]).length)&&(this.init(),this.calculateAutoSize())},itemSize:function(){this.init(),this.calculateAutoSize()},orientation:function(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight:function(){this.init(),this.calculateAutoSize()},scrollWidth:function(){this.init(),this.calculateAutoSize()}},mounted:function(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated:function(){!this.initialized&&this.viewInit()},unmounted:function(){this.unbindResizeListener(),this.initialized=!1},methods:{viewInit:function(){O.isVisible(this.element)&&(this.setContentEl(this.content),this.init(),this.calculateAutoSize(),this.bindResizeListener(),this.defaultWidth=O.getWidth(this.element),this.defaultHeight=O.getHeight(this.element),this.defaultContentWidth=O.getWidth(this.content),this.defaultContentHeight=O.getHeight(this.content),this.initialized=!0)},init:function(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},isVertical:function(){return this.orientation==="vertical"},isHorizontal:function(){return this.orientation==="horizontal"},isBoth:function(){return this.orientation==="both"},scrollTo:function(e){this.element&&this.element.scrollTo(e)},scrollToIndex:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",o=this.isBoth(),i=this.isHorizontal(),s=o?e.every(function(k){return k>-1}):e>-1;if(s){var l=this.first,c=this.element,u=c.scrollTop,d=u===void 0?0:u,f=c.scrollLeft,p=f===void 0?0:f,h=this.calculateNumItems(),m=h.numToleratedItems,y=this.getContentPosition(),g=this.itemSize,b=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1?arguments[1]:void 0;return T<=D?0:T},w=function(T,D,N){return T*D+N},C=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.scrollTo({left:T,top:D,behavior:r})},v=o?{rows:0,cols:0}:0,E=!1,S=!1;o?(v={rows:b(e[0],m[0]),cols:b(e[1],m[1])},C(w(v.cols,g[1],y.left),w(v.rows,g[0],y.top)),S=this.lastScrollPos.top!==d||this.lastScrollPos.left!==p,E=v.rows!==l.rows||v.cols!==l.cols):(v=b(e,m),i?C(w(v,g,y.left),d):C(p,w(v,g,y.top)),S=this.lastScrollPos!==(i?p:d),E=v!==l),this.isRangeChanged=E,S&&(this.first=v)}},scrollInView:function(e,n){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(n){var i=this.isBoth(),s=this.isHorizontal(),l=i?e.every(function(g){return g>-1}):e>-1;if(l){var c=this.getRenderedRange(),u=c.first,d=c.viewport,f=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return r.scrollTo({left:b,top:w,behavior:o})},p=n==="to-start",h=n==="to-end";if(p){if(i)d.first.rows-u.rows>e[0]?f(d.first.cols*this.itemSize[1],(d.first.rows-1)*this.itemSize[0]):d.first.cols-u.cols>e[1]&&f((d.first.cols-1)*this.itemSize[1],d.first.rows*this.itemSize[0]);else if(d.first-u>e){var m=(d.first-1)*this.itemSize;s?f(m,0):f(0,m)}}else if(h){if(i)d.last.rows-u.rows<=e[0]+1?f(d.first.cols*this.itemSize[1],(d.first.rows+1)*this.itemSize[0]):d.last.cols-u.cols<=e[1]+1&&f((d.first.cols+1)*this.itemSize[1],d.first.rows*this.itemSize[0]);else if(d.last-u<=e+1){var y=(d.first+1)*this.itemSize;s?f(y,0):f(0,y)}}}}else this.scrollToIndex(e,o)},getRenderedRange:function(){var e=function(f,p){return Math.floor(f/(p||f))},n=this.first,r=0;if(this.element){var o=this.isBoth(),i=this.isHorizontal(),s=this.element,l=s.scrollTop,c=s.scrollLeft;if(o)n={rows:e(l,this.itemSize[0]),cols:e(c,this.itemSize[1])},r={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols};else{var u=i?c:l;n=e(u,this.itemSize),r=n+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:n,last:r}}},calculateNumItems:function(){var e=this.isBoth(),n=this.isHorizontal(),r=this.itemSize,o=this.getContentPosition(),i=this.element?this.element.offsetWidth-o.left:0,s=this.element?this.element.offsetHeight-o.top:0,l=function(p,h){return Math.ceil(p/(h||p))},c=function(p){return Math.ceil(p/2)},u=e?{rows:l(s,r[0]),cols:l(i,r[1])}:l(n?i:s,r),d=this.d_numToleratedItems||(e?[c(u.rows),c(u.cols)]:c(u));return{numItemsInViewport:u,numToleratedItems:d}},calculateOptions:function(){var e=this,n=this.isBoth(),r=this.first,o=this.calculateNumItems(),i=o.numItemsInViewport,s=o.numToleratedItems,l=function(d,f,p){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.getLast(d+f+(d<p?2:3)*p,h)},c=n?{rows:l(r.rows,i.rows,s[0]),cols:l(r.cols,i.cols,s[1],!0)}:l(r,i,s);this.last=c,this.numItemsInViewport=i,this.d_numToleratedItems=s,this.$emit("update:numToleratedItems",this.d_numToleratedItems),this.showLoader&&(this.loaderArr=n?Array.from({length:i.rows}).map(function(){return Array.from({length:i.cols})}):Array.from({length:i})),this.lazy&&Promise.resolve().then(function(){var u;e.lazyLoadState={first:e.step?n?{rows:0,cols:r.cols}:0:r,last:Math.min(e.step?e.step:c,((u=e.items)===null||u===void 0?void 0:u.length)||0)},e.$emit("lazy-load",e.lazyLoadState)})},calculateAutoSize:function(){var e=this;this.autoSize&&!this.d_loading&&Promise.resolve().then(function(){if(e.content){var n=e.isBoth(),r=e.isHorizontal(),o=e.isVertical();e.content.style.minHeight=e.content.style.minWidth="auto",e.content.style.position="relative",e.element.style.contain="none";var i=[O.getWidth(e.element),O.getHeight(e.element)],s=i[0],l=i[1];(n||r)&&(e.element.style.width=s<e.defaultWidth?s+"px":e.scrollWidth||e.defaultWidth+"px"),(n||o)&&(e.element.style.height=l<e.defaultHeight?l+"px":e.scrollHeight||e.defaultHeight+"px"),e.content.style.minHeight=e.content.style.minWidth="",e.content.style.position="",e.element.style.contain=""}})},getLast:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,o=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(o?((e=this.columns||this.items[0])===null||e===void 0?void 0:e.length)||0:((n=this.items)===null||n===void 0?void 0:n.length)||0,r):0},getContentPosition:function(){if(this.content){var e=getComputedStyle(this.content),n=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),r=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),o=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),i=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:n,right:r,top:o,bottom:i,x:n+r,y:o+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var e=this;if(this.element){var n=this.isBoth(),r=this.isHorizontal(),o=this.element.parentElement,i=this.scrollWidth||"".concat(this.element.offsetWidth||o.offsetWidth,"px"),s=this.scrollHeight||"".concat(this.element.offsetHeight||o.offsetHeight,"px"),l=function(u,d){return e.element.style[u]=d};n||r?(l("height",s),l("width",i)):l("height",s)}},setSpacerSize:function(){var e=this,n=this.items;if(n){var r=this.isBoth(),o=this.isHorizontal(),i=this.getContentPosition(),s=function(c,u,d){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return e.spacerStyle=ks(ks({},e.spacerStyle),Ug({},"".concat(c),(u||[]).length*d+f+"px"))};r?(s("height",n,this.itemSize[0],i.y),s("width",this.columns||n[1],this.itemSize[1],i.x)):o?s("width",this.columns||n,this.itemSize,i.x):s("height",n,this.itemSize,i.y)}},setContentPosition:function(e){var n=this;if(this.content&&!this.appendOnly){var r=this.isBoth(),o=this.isHorizontal(),i=e?e.first:this.first,s=function(d,f){return d*f},l=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.contentStyle=ks(ks({},n.contentStyle),{transform:"translate3d(".concat(d,"px, ").concat(f,"px, 0)")})};if(r)l(s(i.cols,this.itemSize[1]),s(i.rows,this.itemSize[0]));else{var c=s(i,this.itemSize);o?l(c,0):l(0,c)}}},onScrollPositionChange:function(e){var n=this,r=e.target,o=this.isBoth(),i=this.isHorizontal(),s=this.getContentPosition(),l=function(B,$){return B?B>$?B-$:B:0},c=function(B,$){return Math.floor(B/($||B))},u=function(B,$,j,ee,F,W){return B<=F?F:W?j-ee-F:$+F-1},d=function(B,$,j,ee,F,W,te){return B<=W?0:Math.max(0,te?B<$?j:B-W:B>$?j:B-2*W)},f=function(B,$,j,ee,F,W){var te=$+ee+2*F;return B>=F&&(te+=F+1),n.getLast(te,W)},p=l(r.scrollTop,s.top),h=l(r.scrollLeft,s.left),m=o?{rows:0,cols:0}:0,y=this.last,g=!1,b=this.lastScrollPos;if(o){var w=this.lastScrollPos.top<=p,C=this.lastScrollPos.left<=h;if(!this.appendOnly||this.appendOnly&&(w||C)){var v={rows:c(p,this.itemSize[0]),cols:c(h,this.itemSize[1])},E={rows:u(v.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],w),cols:u(v.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],C)};m={rows:d(v.rows,E.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],w),cols:d(v.cols,E.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],C)},y={rows:f(v.rows,m.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:f(v.cols,m.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},g=m.rows!==this.first.rows||y.rows!==this.last.rows||m.cols!==this.first.cols||y.cols!==this.last.cols||this.isRangeChanged,b={top:p,left:h}}}else{var S=i?h:p,k=this.lastScrollPos<=S;if(!this.appendOnly||this.appendOnly&&k){var T=c(S,this.itemSize),D=u(T,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k);m=d(T,D,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k),y=f(T,m,this.last,this.numItemsInViewport,this.d_numToleratedItems),g=m!==this.first||y!==this.last||this.isRangeChanged,b=S}}return{first:m,last:y,isRangeChanged:g,scrollPos:b}},onScrollChange:function(e){var n=this.onScrollPositionChange(e),r=n.first,o=n.last,i=n.isRangeChanged,s=n.scrollPos;if(i){var l={first:r,last:o};if(this.setContentPosition(l),this.first=r,this.last=o,this.lastScrollPos=s,this.$emit("scroll-index-change",l),this.lazy&&this.isPageChanged(r)){var c,u,d={first:this.step?Math.min(this.getPageByFirst(r)*this.step,(((c=this.items)===null||c===void 0?void 0:c.length)||0)-this.step):r,last:Math.min(this.step?(this.getPageByFirst(r)+1)*this.step:o,((u=this.items)===null||u===void 0?void 0:u.length)||0)},f=this.lazyLoadState.first!==d.first||this.lazyLoadState.last!==d.last;f&&this.$emit("lazy-load",d),this.lazyLoadState=d}}},onScroll:function(e){var n=this;if(this.$emit("scroll",e),this.delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading&&this.showLoader){var r=this.onScrollPositionChange(e),o=r.isRangeChanged,i=o||(this.step?this.isPageChanged():!1);i&&(this.d_loading=!0)}this.scrollTimeout=setTimeout(function(){n.onScrollChange(e),n.d_loading&&n.showLoader&&(!n.lazy||n.loading===void 0)&&(n.d_loading=!1,n.page=n.getPageByFirst())},this.delay)}}else this.onScrollChange(e)},onResize:function(){var e=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(O.isVisible(e.element)){var n=e.isBoth(),r=e.isVertical(),o=e.isHorizontal(),i=[O.getWidth(e.element),O.getHeight(e.element)],s=i[0],l=i[1],c=s!==e.defaultWidth,u=l!==e.defaultHeight,d=n?c||u:o?c:r?u:!1;d&&(e.d_numToleratedItems=e.numToleratedItems,e.defaultWidth=s,e.defaultHeight=l,e.defaultContentWidth=O.getWidth(e.content),e.defaultContentHeight=O.getHeight(e.content),e.init())}},this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("orientationchange",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("orientationchange",this.resizeListener),this.resizeListener=null)},getOptions:function(e){var n=(this.items||[]).length,r=this.isBoth()?this.first.rows+e:this.first+e;return{index:r,count:n,first:r===0,last:r===n-1,even:r%2===0,odd:r%2!==0}},getLoaderOptions:function(e,n){var r=this.loaderArr.length;return ks({index:e,count:r,first:e===0,last:e===r-1,even:e%2===0,odd:e%2!==0},n)},getPageByFirst:function(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(e){return this.step?this.page!==this.getPageByFirst(e??this.first):!0},setContentEl:function(e){this.content=e||this.content||O.findSingle(this.element,'[data-pc-section="content"]')},elementRef:function(e){this.element=e},contentRef:function(e){this.content=e}},computed:{containerClass:function(){return["p-virtualscroller",this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return["p-virtualscroller-content",{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return["p-virtualscroller-loader",{"p-component-overlay":!this.$slots.loader}]},loadedItems:function(){var e=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(n){return e.columns?n:n.slice(e.appendOnly?0:e.first.cols,e.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var e=this.isBoth(),n=this.isHorizontal();if(e||n)return this.d_loading&&this.loaderDisabled?e?this.loaderArr[0]:this.loaderArr:this.columns.slice(e?this.first.cols:this.first,e?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:vs}},eP=["tabindex"];function tP(t,e,n,r,o,i){var s=a.resolveComponent("SpinnerIcon");return t.disabled?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.renderSlot(t.$slots,"default"),a.renderSlot(t.$slots,"content",{items:t.items,rows:t.items,columns:i.loadedColumns})],64)):(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:i.elementRef,class:i.containerClass,tabindex:t.tabindex,style:t.style,onScroll:e[0]||(e[0]=function(){return i.onScroll&&i.onScroll.apply(i,arguments)})},t.ptmi("root")),[a.renderSlot(t.$slots,"content",{styleClass:i.contentClass,items:i.loadedItems,getItemOptions:i.getOptions,loading:o.d_loading,getLoaderOptions:i.getLoaderOptions,itemSize:t.itemSize,rows:i.loadedRows,columns:i.loadedColumns,contentRef:i.contentRef,spacerStyle:o.spacerStyle,contentStyle:o.contentStyle,vertical:i.isVertical(),horizontal:i.isHorizontal(),both:i.isBoth()},function(){return[a.createElementVNode("div",a.mergeProps({ref:i.contentRef,class:i.contentClass,style:o.contentStyle},t.ptm("content")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.loadedItems,function(l,c){return a.renderSlot(t.$slots,"item",{key:c,item:l,options:i.getOptions(c)})}),128))],16)]}),t.showSpacer?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:"p-virtualscroller-spacer",style:o.spacerStyle},t.ptm("spacer")),null,16)):a.createCommentVNode("",!0),!t.loaderDisabled&&t.showLoader&&o.d_loading?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:i.loaderClass},t.ptm("loader")),[t.$slots&&t.$slots.loader?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(o.loaderArr,function(l,c){return a.renderSlot(t.$slots,"loader",{key:c,options:i.getLoaderOptions(c,i.isBoth()&&{numCols:t.d_numItemsInViewport.cols})})}),128)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"loadingicon",{},function(){return[a.createVNode(s,a.mergeProps({spin:"",class:"p-virtualscroller-loading-icon"},t.ptm("loadingIcon")),null,16)]})],16)):a.createCommentVNode("",!0)],16,eP))}su.render=tP;var nP={root:function(e){var n=e.instance,r=e.props,o=e.state;return["p-dropdown p-component p-inputwrapper",{"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled","p-dropdown-clearable":r.showClear,"p-focus":o.focused,"p-inputwrapper-filled":n.hasSelectedOption,"p-inputwrapper-focus":o.focused||o.overlayVisible,"p-overlay-open":o.overlayVisible}]},input:function(e){var n=e.instance,r=e.props;return["p-dropdown-label p-inputtext",{"p-placeholder":!r.editable&&n.label===r.placeholder,"p-dropdown-label-empty":!r.editable&&!n.$slots.value&&(n.label==="p-emptylabel"||n.label.length===0)}]},clearIcon:"p-dropdown-clear-icon",trigger:"p-dropdown-trigger",loadingicon:"p-dropdown-trigger-icon",dropdownIcon:"p-dropdown-trigger-icon",panel:function(e){e.props;var n=e.instance;return["p-dropdown-panel p-component",{"p-ripple-disabled":n.$primevue.config.ripple===!1}]},header:"p-dropdown-header",filterContainer:"p-dropdown-filter-container",filterInput:function(e){var n=e.props,r=e.instance;return["p-dropdown-filter p-inputtext p-component",{"p-variant-filled":n.variant?n.variant==="filled":r.$primevue.config.inputStyle==="filled"}]},filterIcon:"p-dropdown-filter-icon",wrapper:"p-dropdown-items-wrapper",list:"p-dropdown-items",itemGroup:"p-dropdown-item-group",itemGroupLabel:"p-dropdown-item-group-label",item:function(e){var n=e.instance,r=e.props,o=e.state,i=e.option,s=e.focusedOption;return["p-dropdown-item",{"p-highlight":n.isSelected(i)&&r.highlightOnSelect,"p-focus":o.focusedOptionIndex===s,"p-disabled":n.isOptionDisabled(i)}]},itemLabel:"p-dropdown-item-label",checkIcon:"p-dropdown-check-icon",blankIcon:"p-dropdown-blank-icon",emptyMessage:"p-dropdown-empty-message"},rP=je.extend({name:"dropdown",classes:nP}),oP={name:"BaseDropdown",extends:re,props:{modelValue:null,options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"200px"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},clearIconProps:{type:null,default:null},appendTo:{type:[String,Object],default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:rP,provide:function(){return{$parentInstance:this}}};function Os(t){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(t)}function iP(t){return cP(t)||lP(t)||aP(t)||sP()}function sP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
172
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aP(t,e){if(t){if(typeof t=="string")return au(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return au(t,e)}}function lP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function cP(t){if(Array.isArray(t))return au(t)}function au(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Kg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Gg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kg(Object(n),!0).forEach(function(r){qg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qg(t,e,n){return e=uP(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uP(t){var e=dP(t,"string");return Os(e)=="symbol"?e:String(e)}function dP(t,e){if(Os(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var kl={name:"Dropdown",extends:oP,inheritAttrs:!1,emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter"],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||qn()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||qn(),this.autoUpdateModel(),this.bindLabelClickListener()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(xo.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,n){return this.virtualScrollerDisabled?e:n&&n(e).index},getOptionLabel:function(e){return this.optionLabel?M.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?M.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e,n){return(this.dataKey?M.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+n},getPTItemOptions:function(e,n,r,o){return this.ptm(o,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(r,n),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return this.optionDisabled?M.resolveFieldData(e,this.optionDisabled):!1},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return M.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return M.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var n=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(function(r){return n.isOptionGroup(r)}).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),e&&O.focus(this.$refs.focusInput)},hide:function(e){var n=this,r=function(){n.$emit("before-hide"),n.overlayVisible=!1,n.clicked=!1,n.focusedOptionIndex=-1,n.searchValue="",n.resetFilterOnHide&&(n.filterValue=null),e&&O.focus(n.$refs.focusInput)};setTimeout(function(){r()},0)},onFocus:function(e){this.disabled||(this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled||O.isAndroid()){e.preventDefault();return}var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!n&&M.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked=!1},onEditableInput:function(e){var n=e.target.value;this.searchValue="";var r=this.searchOptions(e,n);!r&&(this.focusedOptionIndex=-1),this.updateModel(e,n),!this.overlayVisible&&M.isNotEmpty(n)&&this.show()},onContainerClick:function(e){this.disabled||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||((!this.overlay||!this.overlay.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(e){this.updateModel(e,null),this.resetFilterOnClear&&(this.filterValue=null)},onFirstHiddenFocus:function(e){var n=e.relatedTarget===this.$refs.focusInput?O.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;O.focus(n)},onLastHiddenFocus:function(e){var n=e.relatedTarget===this.$refs.focusInput?O.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;O.focus(n)},onOptionSelect:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=this.getOptionValue(n);this.updateModel(e,o),r&&this.hide(!0)},onOptionMouseMove:function(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)},onFilterChange:function(e){var n=e.target.value;this.filterValue=n,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:n}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){lr.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){switch(e.code){case"Escape":this.onEscapeKey(e);break}},onDeleteKey:function(e){this.showClear&&(this.updateModel(e,null),e.preventDefault())},onArrowDownKey:function(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{var n=this.focusedOptionIndex!==-1?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n)}e.preventDefault()},onArrowUpKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.altKey&&!n)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var r=this.focusedOptionIndex!==-1?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()},onEndKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n){var r=e.currentTarget,o=r.value.length;r.setSelectionRange(o,o),this.focusedOptionIndex=-1}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(e)),e.preventDefault()},onSpaceKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!n&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault(),e.stopPropagation()},onTabKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n||(this.overlayVisible&&this.hasFocusableElements()?(O.focus(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){xo.set("overlay",e,this.$primevue.config.zIndex.overlay),O.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&O.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){xo.clear(e)},alignOverlay:function(){this.appendTo==="self"?O.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=O.getOuterWidth(this.$el)+"px",O.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(n){e.overlayVisible&&e.overlay&&!e.$el.contains(n.target)&&!e.overlay.contains(n.target)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new tp(this.$refs.container,function(){e.overlayVisible&&e.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!O.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var e=this;if(!this.editable&&!this.labelClickListener){var n=document.querySelector('label[for="'.concat(this.inputId,'"]'));n&&O.isVisible(n)&&(this.labelClickListener=function(){O.focus(e.$refs.focusInput)},n.addEventListener("click",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var e=document.querySelector('label[for="'.concat(this.inputId,'"]'));e&&O.isVisible(e)&&e.removeEventListener("click",this.labelClickListener)}},hasFocusableElements:function(){return O.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){var n;return this.isValidOption(e)&&((n=this.getOptionLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(e){return M.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return this.isValidOption(e)&&M.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(n){return e.isValidOption(n)})},findLastOptionIndex:function(){var e=this;return M.findLastIndex(this.visibleOptions,function(n){return e.isValidOption(n)})},findNextOptionIndex:function(e){var n=this,r=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(o){return n.isValidOption(o)}):-1;return r>-1?r+e+1:e},findPrevOptionIndex:function(e){var n=this,r=e>0?M.findLastIndex(this.visibleOptions.slice(0,e),function(o){return n.isValidOption(o)}):-1;return r>-1?r:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex(function(n){return e.isValidSelectedOption(n)}):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=-1,i=!1;return M.isNotEmpty(this.searchValue)&&(this.focusedOptionIndex!==-1?(o=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(s){return r.isOptionMatched(s)}),o=o===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(function(s){return r.isOptionMatched(s)}):o+this.focusedOptionIndex):o=this.visibleOptions.findIndex(function(s){return r.isOptionMatched(s)}),o!==-1&&(i=!0),o===-1&&this.focusedOptionIndex===-1&&(o=this.findFirstFocusedOptionIndex()),o!==-1&&this.changeFocusedOptionIndex(e,o)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedOptionIndex:function(e,n){this.focusedOptionIndex!==n&&(this.focusedOptionIndex=n,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[n],!1))},scrollInView:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var r=n!==-1?"".concat(e.id,"_").concat(n):e.focusedOptionId,o=O.findSingle(e.list,'li[id="'.concat(r,'"]'));o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"start"}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(n!==-1?n:e.focusedOptionIndex)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,n){this.$emit("update:modelValue",n),this.$emit("change",{originalEvent:e,value:n})},flatOptions:function(e){var n=this;return(e||[]).reduce(function(r,o,i){r.push({optionGroup:o,group:!0,index:i});var s=n.getOptionGroupChildren(o);return s&&s.forEach(function(l){return r.push(l)}),r},[])},overlayRef:function(e){this.overlay=e},listRef:function(e,n){this.list=e,n&&n(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var e=this,n=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var r=ru.filter(n,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=this.options||[],i=[];return o.forEach(function(s){var l=e.getOptionGroupChildren(s),c=l.filter(function(u){return r.includes(u)});c.length>0&&i.push(Gg(Gg({},s),{},qg({},typeof e.optionGroupChildren=="string"?e.optionGroupChildren:"items",iP(c))))}),this.flatOptions(i)}return r}return n},hasSelectedOption:function(){return M.isNotEmpty(this.modelValue)},label:function(){var e=this.findSelectedOptionIndex();return e!==-1?this.getOptionLabel(this.visibleOptions[e]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var e=this.findSelectedOptionIndex();return e!==-1?this.getOptionLabel(this.visibleOptions[e]):this.modelValue||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return M.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex!==-1?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(n){return!e.isOptionGroup(n)}).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:Mn},components:{VirtualScroller:su,Portal:iu,TimesIcon:ou,ChevronDownIcon:Sl,SpinnerIcon:vs,SearchIcon:jg,CheckIcon:Wo,BlankIcon:zg}};function Es(t){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Es(t)}function Yg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function un(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yg(Object(n),!0).forEach(function(r){fP(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function fP(t,e,n){return e=pP(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pP(t){var e=hP(t,"string");return Es(e)=="symbol"?e:String(e)}function hP(t,e){if(Es(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mP=["id"],gP=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],yP=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],bP=["value","placeholder","aria-owns","aria-activedescendant"],wP=["id"],vP=["id"],CP=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];function SP(t,e,n,r,o,i){var s=a.resolveComponent("SpinnerIcon"),l=a.resolveComponent("CheckIcon"),c=a.resolveComponent("BlankIcon"),u=a.resolveComponent("VirtualScroller"),d=a.resolveComponent("Portal"),f=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("div",a.mergeProps({ref:"container",id:o.id,class:t.cx("root"),onClick:e[16]||(e[16]=function(){return i.onContainerClick&&i.onContainerClick.apply(i,arguments)})},t.ptmi("root")),[t.editable?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,ref:"focusInput",id:t.inputId,type:"text",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:i.editableInputValue,placeholder:t.placeholder,tabindex:t.disabled?-1:t.tabindex,disabled:t.disabled,autocomplete:"off",role:"combobox","aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?i.focusedOptionId:void 0,"aria-invalid":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[1]||(e[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:e[2]||(e[2]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)}),onInput:e[3]||(e[3]=function(){return i.onEditableInput&&i.onEditableInput.apply(i,arguments)})},un(un({},t.inputProps),t.ptm("input"))),null,16,gP)):(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,ref:"focusInput",id:t.inputId,class:[t.cx("input"),t.inputClass],style:t.inputStyle,tabindex:t.disabled?-1:t.tabindex,role:"combobox","aria-label":t.ariaLabel||(i.label==="p-emptylabel"?void 0:i.label),"aria-labelledby":t.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?i.focusedOptionId:void 0,"aria-disabled":t.disabled,onFocus:e[4]||(e[4]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[5]||(e[5]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:e[6]||(e[6]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)})},un(un({},t.inputProps),t.ptm("input"))),[a.renderSlot(t.$slots,"value",{value:t.modelValue,placeholder:t.placeholder},function(){return[a.createTextVNode(a.toDisplayString(i.label==="p-emptylabel"?"Ā ":i.label||"empty"),1)]})],16,yP)),t.showClear&&t.modelValue!=null?a.renderSlot(t.$slots,"clearicon",{key:2,class:a.normalizeClass(t.cx("clearIcon")),onClick:i.onClearClick,clearCallback:i.onClearClick},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.clearIcon?"i":"TimesIcon"),a.mergeProps({ref:"clearIcon",class:[t.cx("clearIcon"),t.clearIcon],onClick:i.onClearClick},un(un({},t.clearIconProps),t.ptm("clearIcon")),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]}):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("trigger")},t.ptm("trigger")),[t.loading?a.renderSlot(t.$slots,"loadingicon",{key:0,class:a.normalizeClass(t.cx("loadingIcon"))},function(){return[t.loadingIcon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:[t.cx("loadingIcon"),"pi-spin",t.loadingIcon],"aria-hidden":"true"},t.ptm("loadingIcon")),null,16)):(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:t.cx("loadingIcon"),spin:"","aria-hidden":"true"},t.ptm("loadingIcon")),null,16,["class"]))]}):a.renderSlot(t.$slots,"dropdownicon",{key:1,class:a.normalizeClass(t.cx("dropdownIcon"))},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.dropdownIcon?"span":"ChevronDownIcon"),a.mergeProps({class:[t.cx("dropdownIcon"),t.dropdownIcon],"aria-hidden":"true"},t.ptm("dropdownIcon")),null,16,["class"]))]})],16),a.createVNode(d,{appendTo:t.appendTo},{default:a.withCtx(function(){return[a.createVNode(a.Transition,a.mergeProps({name:"p-connected-overlay",onEnter:i.onOverlayEnter,onAfterEnter:i.onOverlayAfterEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},t.ptm("transition")),{default:a.withCtx(function(){return[o.overlayVisible?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:i.overlayRef,class:[t.cx("panel"),t.panelClass],style:t.panelStyle,onClick:e[14]||(e[14]=function(){return i.onOverlayClick&&i.onOverlayClick.apply(i,arguments)}),onKeydown:e[15]||(e[15]=function(){return i.onOverlayKeyDown&&i.onOverlayKeyDown.apply(i,arguments)})},un(un({},t.panelProps),t.ptm("panel"))),[a.createElementVNode("span",a.mergeProps({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:e[7]||(e[7]=function(){return i.onFirstHiddenFocus&&i.onFirstHiddenFocus.apply(i,arguments)})},t.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),a.renderSlot(t.$slots,"header",{value:t.modelValue,options:i.visibleOptions}),t.filter?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("header")},t.ptm("header")),[a.createElementVNode("div",a.mergeProps({class:t.cx("filterContainer")},t.ptm("filterContainer")),[a.createElementVNode("input",a.mergeProps({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:e[8]||(e[8]=function(){return i.onFilterUpdated&&i.onFilterUpdated.apply(i,arguments)}),onVnodeUpdated:e[9]||(e[9]=function(){return i.onFilterUpdated&&i.onFilterUpdated.apply(i,arguments)}),class:t.cx("filterInput"),placeholder:t.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":i.focusedOptionId,onKeydown:e[10]||(e[10]=function(){return i.onFilterKeyDown&&i.onFilterKeyDown.apply(i,arguments)}),onBlur:e[11]||(e[11]=function(){return i.onFilterBlur&&i.onFilterBlur.apply(i,arguments)}),onInput:e[12]||(e[12]=function(){return i.onFilterChange&&i.onFilterChange.apply(i,arguments)})},un(un({},t.filterInputProps),t.ptm("filterInput"))),null,16,bP),a.renderSlot(t.$slots,"filtericon",{class:a.normalizeClass(t.cx("filterIcon"))},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.filterIcon?"span":"SearchIcon"),a.mergeProps({class:[t.cx("filterIcon"),t.filterIcon]},t.ptm("filterIcon")),null,16,["class"]))]})],16),a.createElementVNode("span",a.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},t.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),a.toDisplayString(i.filterResultMessageText),17)],16)):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("wrapper"),style:{"max-height":i.virtualScrollerDisabled?t.scrollHeight:""}},t.ptm("wrapper")),[a.createVNode(u,a.mergeProps({ref:i.virtualScrollerRef},t.virtualScrollerOptions,{items:i.visibleOptions,style:{height:t.scrollHeight},tabindex:-1,disabled:i.virtualScrollerDisabled,pt:t.ptm("virtualScroller")}),a.createSlots({content:a.withCtx(function(p){var h=p.styleClass,m=p.contentRef,y=p.items,g=p.getItemOptions,b=p.contentStyle,w=p.itemSize;return[a.createElementVNode("ul",a.mergeProps({ref:function(v){return i.listRef(v,m)},id:o.id+"_list",class:[t.cx("list"),h],style:b,role:"listbox"},t.ptm("list")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y,function(C,v){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.getOptionRenderKey(C,i.getOptionIndex(v,g))},[i.isOptionGroup(C)?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,id:o.id+"_"+i.getOptionIndex(v,g),style:{height:w?w+"px":void 0},class:t.cx("itemGroup"),role:"option"},t.ptm("itemGroup")),[a.renderSlot(t.$slots,"optiongroup",{option:C.optionGroup,index:i.getOptionIndex(v,g)},function(){return[a.createElementVNode("span",a.mergeProps({class:t.cx("itemGroupLabel")},t.ptm("itemGroupLabel")),a.toDisplayString(i.getOptionGroupLabel(C.optionGroup)),17)]})],16,vP)):a.withDirectives((a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,id:o.id+"_"+i.getOptionIndex(v,g),class:t.cx("item",{option:C,focusedOption:i.getOptionIndex(v,g)}),style:{height:w?w+"px":void 0},role:"option","aria-label":i.getOptionLabel(C),"aria-selected":i.isSelected(C),"aria-disabled":i.isOptionDisabled(C),"aria-setsize":i.ariaSetSize,"aria-posinset":i.getAriaPosInset(i.getOptionIndex(v,g)),onClick:function(S){return i.onOptionSelect(S,C)},onMousemove:function(S){return i.onOptionMouseMove(S,i.getOptionIndex(v,g))},"data-p-highlight":i.isSelected(C),"data-p-focused":o.focusedOptionIndex===i.getOptionIndex(v,g),"data-p-disabled":i.isOptionDisabled(C)},i.getPTItemOptions(C,g,v,"item")),[t.checkmark?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[i.isSelected(C)?(a.openBlock(),a.createBlock(l,a.mergeProps({key:0,class:t.cx("checkIcon")},t.ptm("checkIcon")),null,16,["class"])):(a.openBlock(),a.createBlock(c,a.mergeProps({key:1,class:t.cx("blankIcon")},t.ptm("blankIcon")),null,16,["class"]))],64)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"option",{option:C,index:i.getOptionIndex(v,g)},function(){return[a.createElementVNode("span",a.mergeProps({class:t.cx("itemLabel")},t.ptm("itemLabel")),a.toDisplayString(i.getOptionLabel(C)),17)]})],16,CP)),[[f]])],64)}),128)),o.filterValue&&(!y||y&&y.length===0)?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,class:t.cx("emptyMessage"),role:"option"},t.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[a.renderSlot(t.$slots,"emptyfilter",{},function(){return[a.createTextVNode(a.toDisplayString(i.emptyFilterMessageText),1)]})],16)):!t.options||t.options&&t.options.length===0?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,class:t.cx("emptyMessage"),role:"option"},t.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[a.renderSlot(t.$slots,"empty",{},function(){return[a.createTextVNode(a.toDisplayString(i.emptyMessageText),1)]})],16)):a.createCommentVNode("",!0)],16,wP)]}),_:2},[t.$slots.loader?{name:"loader",fn:a.withCtx(function(p){var h=p.options;return[a.renderSlot(t.$slots,"loader",{options:h})]}),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),a.renderSlot(t.$slots,"footer",{value:t.modelValue,options:i.visibleOptions}),!t.options||t.options&&t.options.length===0?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},t.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),a.toDisplayString(i.emptyMessageText),17)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},t.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),a.toDisplayString(i.selectedMessageText),17),a.createElementVNode("span",a.mergeProps({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:e[13]||(e[13]=function(){return i.onLastHiddenFocus&&i.onLastHiddenFocus.apply(i,arguments)})},t.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):a.createCommentVNode("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16,mP)}kl.render=SP;var kP={root:function(e){var n=e.props,r=e.instance;return["p-badge p-component",{"p-badge-no-gutter":M.isNotEmpty(n.value)&&String(n.value).length===1,"p-badge-dot":M.isEmpty(n.value)&&!r.$slots.default,"p-badge-lg":n.size==="large","p-badge-xl":n.size==="xlarge","p-badge-info":n.severity==="info","p-badge-success":n.severity==="success","p-badge-warning":n.severity==="warning","p-badge-danger":n.severity==="danger","p-badge-secondary":n.severity==="secondary","p-badge-contrast":n.severity==="contrast"}]}},OP=je.extend({name:"badge",classes:kP}),EP={name:"BaseBadge",extends:re,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:OP,provide:function(){return{$parentInstance:this}}},Jg={name:"Badge",extends:EP,inheritAttrs:!1};function TP(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:t.cx("root")},t.ptmi("root")),[a.renderSlot(t.$slots,"default",{},function(){return[a.createTextVNode(a.toDisplayString(t.value),1)]})],16)}Jg.render=TP;function Ts(t){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ts(t)}function cr(t,e,n){return e=MP(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function MP(t){var e=xP(t,"string");return Ts(e)=="symbol"?e:String(e)}function xP(t,e){if(Ts(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var PP={root:function(e){var n=e.instance,r=e.props;return["p-button p-component",cr(cr(cr(cr(cr(cr(cr(cr({"p-button-icon-only":n.hasIcon&&!r.label&&!r.badge,"p-button-vertical":(r.iconPos==="top"||r.iconPos==="bottom")&&r.label,"p-disabled":n.$attrs.disabled||n.$attrs.disabled===""||r.loading,"p-button-loading":r.loading,"p-button-loading-label-only":r.loading&&!n.hasIcon&&r.label,"p-button-link":r.link},"p-button-".concat(r.severity),r.severity),"p-button-raised",r.raised),"p-button-rounded",r.rounded),"p-button-text",r.text),"p-button-outlined",r.outlined),"p-button-sm",r.size==="small"),"p-button-lg",r.size==="large"),"p-button-plain",r.plain)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var n=e.props;return["p-button-icon",{"p-button-icon-left":n.iconPos==="left"&&n.label,"p-button-icon-right":n.iconPos==="right"&&n.label,"p-button-icon-top":n.iconPos==="top"&&n.label,"p-button-icon-bottom":n.iconPos==="bottom"&&n.label}]},label:"p-button-label"},DP=je.extend({name:"button",classes:PP}),AP={name:"BaseButton",extends:re,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:DP,provide:function(){return{$parentInstance:this}}},lu={name:"Button",extends:AP,inheritAttrs:!1,methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||this.$attrs.disabled===""||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:vs,Badge:Jg},directives:{ripple:Mn}},IP=["aria-label","disabled","data-p-severity"];function NP(t,e,n,r,o,i){var s=a.resolveComponent("SpinnerIcon"),l=a.resolveComponent("Badge"),c=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:t.cx("root"),type:"button","aria-label":i.defaultAriaLabel,disabled:i.disabled},i.getPTOptions("root"),{"data-p-severity":t.severity}),[a.renderSlot(t.$slots,"default",{},function(){return[t.loading?a.renderSlot(t.$slots,"loadingicon",{key:0,class:a.normalizeClass([t.cx("loadingIcon"),t.cx("icon")])},function(){return[t.loadingIcon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:[t.cx("loadingIcon"),t.cx("icon"),t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:[t.cx("loadingIcon"),t.cx("icon")],spin:""},t.ptm("loadingIcon")),null,16,["class"]))]}):a.renderSlot(t.$slots,"icon",{key:1,class:a.normalizeClass([t.cx("icon")])},function(){return[t.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:[t.cx("icon"),t.icon,t.iconClass]},t.ptm("icon")),null,16)):a.createCommentVNode("",!0)]}),a.createElementVNode("span",a.mergeProps({class:t.cx("label")},t.ptm("label")),a.toDisplayString(t.label||"Ā "),17),t.badge?(a.openBlock(),a.createBlock(l,a.mergeProps({key:2,value:t.badge,class:t.badgeClass,severity:t.badgeSeverity,unstyled:t.unstyled},t.ptm("badge")),null,16,["value","class","severity","unstyled"])):a.createCommentVNode("",!0)]})],16,IP)),[[c]])}lu.render=NP;var Qg={name:"AngleDownIcon",extends:be},BP=a.createElementVNode("path",{d:"M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z",fill:"currentColor"},null,-1),RP=[BP];function LP(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),RP,16)}Qg.render=LP;var Xg={name:"AngleUpIcon",extends:be},VP=a.createElementVNode("path",{d:"M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z",fill:"currentColor"},null,-1),$P=[VP];function FP(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),$P,16)}Xg.render=FP;var HP={root:function(e){var n=e.instance,r=e.props;return["p-inputtext p-component",{"p-filled":n.filled,"p-inputtext-sm":r.size==="small","p-inputtext-lg":r.size==="large","p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]}},_P=je.extend({name:"inputtext",classes:HP}),zP={name:"BaseInputText",extends:re,props:{modelValue:null,size:{type:String,default:null},invalid:{type:Boolean,default:!1},variant:{type:String,default:null}},style:_P,provide:function(){return{$parentInstance:this}}},e5={name:"InputText",extends:zP,inheritAttrs:!1,emits:["update:modelValue"],methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{filled:this.filled,disabled:this.$attrs.disabled||this.$attrs.disabled===""}})},onInput:function(e){this.$emit("update:modelValue",e.target.value)}},computed:{filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0}}},jP=["value","aria-invalid"];function ZP(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("input",a.mergeProps({class:t.cx("root"),value:t.modelValue,"aria-invalid":t.invalid||void 0,onInput:e[0]||(e[0]=function(){return i.onInput&&i.onInput.apply(i,arguments)})},i.getPTOptions("root")),null,16,jP)}e5.render=ZP;var WP={root:function(e){var n=e.instance,r=e.props;return["p-inputnumber p-component p-inputwrapper",{"p-inputwrapper-filled":n.filled||r.allowEmpty===!1,"p-inputwrapper-focus":n.focused,"p-inputnumber-buttons-stacked":r.showButtons&&r.buttonLayout==="stacked","p-inputnumber-buttons-horizontal":r.showButtons&&r.buttonLayout==="horizontal","p-inputnumber-buttons-vertical":r.showButtons&&r.buttonLayout==="vertical","p-invalid":r.invalid}]},input:function(e){var n=e.props,r=e.instance;return["p-inputnumber-input",{"p-variant-filled":n.variant?n.variant==="filled":r.$primevue.config.inputStyle==="filled"}]},buttonGroup:"p-inputnumber-button-group",incrementButton:function(e){var n=e.instance,r=e.props;return["p-inputnumber-button p-inputnumber-button-up",{"p-disabled":r.showButtons&&r.max!==null&&n.maxBoundry()}]},decrementButton:function(e){var n=e.instance,r=e.props;return["p-inputnumber-button p-inputnumber-button-down",{"p-disabled":r.showButtons&&r.min!==null&&n.minBoundry()}]}},UP=je.extend({name:"inputnumber",classes:WP}),KP={name:"BaseInputNumber",extends:re,props:{modelValue:{type:Number,default:null},format:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!1},buttonLayout:{type:String,default:"stacked"},incrementButtonClass:{type:String,default:null},decrementButtonClass:{type:String,default:null},incrementButtonIcon:{type:String,default:void 0},decrementButtonIcon:{type:String,default:void 0},locale:{type:String,default:void 0},localeMatcher:{type:String,default:void 0},mode:{type:String,default:"decimal"},prefix:{type:String,default:null},suffix:{type:String,default:null},currency:{type:String,default:void 0},currencyDisplay:{type:String,default:void 0},useGrouping:{type:Boolean,default:!0},minFractionDigits:{type:Number,default:void 0},maxFractionDigits:{type:Number,default:void 0},roundingMode:{type:String,default:"halfExpand",validator:function(e){return["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"].includes(e)}},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},allowEmpty:{type:Boolean,default:!0},highlightOnFocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},incrementButtonProps:{type:null,default:null},decrementButtonProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:UP,provide:function(){return{$parentInstance:this}}};function Ms(t){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ms(t)}function t5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function n5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?t5(Object(n),!0).forEach(function(r){GP(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function GP(t,e,n){return e=qP(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qP(t){var e=YP(t,"string");return Ms(e)=="symbol"?e:String(e)}function YP(t,e){if(Ms(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function JP(t){return tD(t)||eD(t)||XP(t)||QP()}function QP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
173
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XP(t,e){if(t){if(typeof t=="string")return cu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cu(t,e)}}function eD(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tD(t){if(Array.isArray(t))return cu(t)}function cu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var r5={name:"InputNumber",extends:KP,inheritAttrs:!1,emits:["update:modelValue","input","focus","blur"],numberFormat:null,_numeral:null,_decimal:null,_group:null,_minusSign:null,_currency:null,_suffix:null,_prefix:null,_index:null,groupChar:"",isSpecialChar:null,prefixChar:null,suffixChar:null,timer:null,data:function(){return{d_modelValue:this.modelValue,focused:!1}},watch:{modelValue:function(e){this.d_modelValue=e},locale:function(e,n){this.updateConstructParser(e,n)},localeMatcher:function(e,n){this.updateConstructParser(e,n)},mode:function(e,n){this.updateConstructParser(e,n)},currency:function(e,n){this.updateConstructParser(e,n)},currencyDisplay:function(e,n){this.updateConstructParser(e,n)},useGrouping:function(e,n){this.updateConstructParser(e,n)},minFractionDigits:function(e,n){this.updateConstructParser(e,n)},maxFractionDigits:function(e,n){this.updateConstructParser(e,n)},suffix:function(e,n){this.updateConstructParser(e,n)},prefix:function(e,n){this.updateConstructParser(e,n)}},created:function(){this.constructParser()},methods:{getOptions:function(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits,roundingMode:this.roundingMode}},constructParser:function(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());var e=JP(new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)).reverse(),n=new Map(e.map(function(r,o){return[r,o]}));this._numeral=new RegExp("[".concat(e.join(""),"]"),"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=function(r){return n.get(r)}},updateConstructParser:function(e,n){e!==n&&this.constructParser()},escapeRegExp:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},getDecimalExpression:function(){var e=new Intl.NumberFormat(this.locale,n5(n5({},this.getOptions()),{},{useGrouping:!1}));return new RegExp("[".concat(e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,""),"]"),"g")},getGroupingExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp("[".concat(this.groupChar,"]"),"g")},getMinusSignExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp("[".concat(e.format(-1).trim().replace(this._numeral,""),"]"),"g")},getCurrencyExpression:function(){if(this.currency){var e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});return new RegExp("[".concat(e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,""),"]"),"g")}return new RegExp("[]","g")},getPrefixExpression:function(){if(this.prefix)this.prefixChar=this.prefix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp("".concat(this.escapeRegExp(this.prefixChar||"")),"g")},getSuffixExpression:function(){if(this.suffix)this.suffixChar=this.suffix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});this.suffixChar=e.format(1).split("1")[1]}return new RegExp("".concat(this.escapeRegExp(this.suffixChar||"")),"g")},formatValue:function(e){if(e!=null){if(e==="-")return e;if(this.format){var n=new Intl.NumberFormat(this.locale,this.getOptions()),r=n.format(e);return this.prefix&&(r=this.prefix+r),this.suffix&&(r=r+this.suffix),r}return e.toString()}return""},parseValue:function(e){var n=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(n){if(n==="-")return n;var r=+n;return isNaN(r)?null:r}return null},repeat:function(e,n,r){var o=this;if(!this.readonly){var i=n||500;this.clearTimer(),this.timer=setTimeout(function(){o.repeat(e,40,r)},i),this.spin(e,r)}},spin:function(e,n){if(this.$refs.input){var r=this.step*n,o=this.parseValue(this.$refs.input.$el.value)||0,i=this.validateValue(o+r);this.updateInput(i,null,"spin"),this.updateModel(e,i),this.handleOnInput(e,o,i)}},onUpButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,1),e.preventDefault())},onUpButtonMouseUp:function(){this.disabled||this.clearTimer()},onUpButtonMouseLeave:function(){this.disabled||this.clearTimer()},onUpButtonKeyUp:function(){this.disabled||this.clearTimer()},onUpButtonKeyDown:function(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,1)},onDownButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,-1),e.preventDefault())},onDownButtonMouseUp:function(){this.disabled||this.clearTimer()},onDownButtonMouseLeave:function(){this.disabled||this.clearTimer()},onDownButtonKeyUp:function(){this.disabled||this.clearTimer()},onDownButtonKeyDown:function(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,-1)},onUserInput:function(){this.isSpecialChar&&(this.$refs.input.$el.value=this.lastValue),this.isSpecialChar=!1},onInputKeyDown:function(e){if(!this.readonly){if(this.lastValue=e.target.value,e.shiftKey||e.altKey){this.isSpecialChar=!0;return}var n=e.target.selectionStart,r=e.target.selectionEnd,o=e.target.value,i=null;switch(e.altKey&&e.preventDefault(),e.code){case"ArrowUp":this.spin(e,1),e.preventDefault();break;case"ArrowDown":this.spin(e,-1),e.preventDefault();break;case"ArrowLeft":this.isNumeralChar(o.charAt(n-1))||e.preventDefault();break;case"ArrowRight":this.isNumeralChar(o.charAt(n))||e.preventDefault();break;case"Tab":case"Enter":case"NumpadEnter":i=this.validateValue(this.parseValue(o)),this.$refs.input.$el.value=this.formatValue(i),this.$refs.input.$el.setAttribute("aria-valuenow",i),this.updateModel(e,i);break;case"Backspace":{if(e.preventDefault(),n===r){var s=o.charAt(n-1),l=this.getDecimalCharIndexes(o),c=l.decimalCharIndex,u=l.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(s)){var d=this.getDecimalLength(o);if(this._group.test(s))this._group.lastIndex=0,i=o.slice(0,n-2)+o.slice(n-1);else if(this._decimal.test(s))this._decimal.lastIndex=0,d?this.$refs.input.$el.setSelectionRange(n-1,n-1):i=o.slice(0,n-1)+o.slice(n);else if(c>0&&n>c){var f=this.isDecimalMode()&&(this.minFractionDigits||0)<d?"":"0";i=o.slice(0,n-1)+f+o.slice(n)}else u===1?(i=o.slice(0,n-1)+"0"+o.slice(n),i=this.parseValue(i)>0?i:""):i=o.slice(0,n-1)+o.slice(n)}this.updateValue(e,i,null,"delete-single")}else i=this.deleteRange(o,n,r),this.updateValue(e,i,null,"delete-range");break}case"Delete":if(e.preventDefault(),n===r){var p=o.charAt(n),h=this.getDecimalCharIndexes(o),m=h.decimalCharIndex,y=h.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(p)){var g=this.getDecimalLength(o);if(this._group.test(p))this._group.lastIndex=0,i=o.slice(0,n)+o.slice(n+2);else if(this._decimal.test(p))this._decimal.lastIndex=0,g?this.$refs.input.$el.setSelectionRange(n+1,n+1):i=o.slice(0,n)+o.slice(n+1);else if(m>0&&n>m){var b=this.isDecimalMode()&&(this.minFractionDigits||0)<g?"":"0";i=o.slice(0,n)+b+o.slice(n+1)}else y===1?(i=o.slice(0,n)+"0"+o.slice(n+1),i=this.parseValue(i)>0?i:""):i=o.slice(0,n)+o.slice(n+1)}this.updateValue(e,i,null,"delete-back-single")}else i=this.deleteRange(o,n,r),this.updateValue(e,i,null,"delete-range");break;case"Home":e.preventDefault(),M.isEmpty(this.min)||this.updateModel(e,this.min);break;case"End":e.preventDefault(),M.isEmpty(this.max)||this.updateModel(e,this.max);break}}},onInputKeyPress:function(e){if(!this.readonly){e.preventDefault();var n=e.which||e.keyCode,r=String.fromCharCode(n),o=this.isDecimalSign(r),i=this.isMinusSign(r);(48<=n&&n<=57||i||o)&&this.insert(e,r,{isDecimalSign:o,isMinusSign:i})}},onPaste:function(e){e.preventDefault();var n=(e.clipboardData||window.clipboardData).getData("Text");if(n){var r=this.parseValue(n);r!=null&&this.insert(e,r.toString())}},allowMinusSign:function(){return this.min===null||this.min<0},isMinusSign:function(e){return this._minusSign.test(e)||e==="-"?(this._minusSign.lastIndex=0,!0):!1},isDecimalSign:function(e){return this._decimal.test(e)?(this._decimal.lastIndex=0,!0):!1},isDecimalMode:function(){return this.mode==="decimal"},getDecimalCharIndexes:function(e){var n=e.search(this._decimal);this._decimal.lastIndex=0;var r=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,""),o=r.search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:o}},getCharIndexes:function(e){var n=e.search(this._decimal);this._decimal.lastIndex=0;var r=e.search(this._minusSign);this._minusSign.lastIndex=0;var o=e.search(this._suffix);this._suffix.lastIndex=0;var i=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:r,suffixCharIndex:o,currencyCharIndex:i}},insert:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},o=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!(!this.allowMinusSign()&&o!==-1)){var i=this.$refs.input.$el.selectionStart,s=this.$refs.input.$el.selectionEnd,l=this.$refs.input.$el.value.trim(),c=this.getCharIndexes(l),u=c.decimalCharIndex,d=c.minusCharIndex,f=c.suffixCharIndex,p=c.currencyCharIndex,h;if(r.isMinusSign)i===0&&(h=l,(d===-1||s!==0)&&(h=this.insertText(l,n,0,s)),this.updateValue(e,h,n,"insert"));else if(r.isDecimalSign)u>0&&i===u?this.updateValue(e,l,n,"insert"):u>i&&u<s?(h=this.insertText(l,n,i,s),this.updateValue(e,h,n,"insert")):u===-1&&this.maxFractionDigits&&(h=this.insertText(l,n,i,s),this.updateValue(e,h,n,"insert"));else{var m=this.numberFormat.resolvedOptions().maximumFractionDigits,y=i!==s?"range-insert":"insert";if(u>0&&i>u){if(i+n.length-(u+1)<=m){var g=p>=i?p-1:f>=i?f:l.length;h=l.slice(0,i)+n+l.slice(i+n.length,g)+l.slice(g),this.updateValue(e,h,n,y)}}else h=this.insertText(l,n,i,s),this.updateValue(e,h,n,y)}}},insertText:function(e,n,r,o){var i=n==="."?n:n.split(".");if(i.length===2){var s=e.slice(r,o).search(this._decimal);return this._decimal.lastIndex=0,s>0?e.slice(0,r)+this.formatValue(n)+e.slice(o):this.formatValue(n)||e}else return o-r===e.length?this.formatValue(n):r===0?n+e.slice(o):o===e.length?e.slice(0,r)+n:e.slice(0,r)+n+e.slice(o)},deleteRange:function(e,n,r){var o;return r-n===e.length?o="":n===0?o=e.slice(r):r===e.length?o=e.slice(0,n):o=e.slice(0,n)+e.slice(r),o},initCursor:function(){var e=this.$refs.input.$el.selectionStart,n=this.$refs.input.$el.value,r=n.length,o=null,i=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e=e-i;var s=n.charAt(e);if(this.isNumeralChar(s))return e+i;for(var l=e-1;l>=0;)if(s=n.charAt(l),this.isNumeralChar(s)){o=l+i;break}else l--;if(o!==null)this.$refs.input.$el.setSelectionRange(o+1,o+1);else{for(l=e;l<r;)if(s=n.charAt(l),this.isNumeralChar(s)){o=l+i;break}else l++;o!==null&&this.$refs.input.$el.setSelectionRange(o,o)}return o||0},onInputClick:function(){var e=this.$refs.input.$el.value;!this.readonly&&e!==O.getSelection()&&this.initCursor()},isNumeralChar:function(e){return e.length===1&&(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e))?(this.resetRegex(),!0):!1},resetRegex:function(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0},updateValue:function(e,n,r,o){var i=this.$refs.input.$el.value,s=null;n!=null&&(s=this.parseValue(n),s=!s&&!this.allowEmpty?0:s,this.updateInput(s,r,o,n),this.handleOnInput(e,i,s))},handleOnInput:function(e,n,r){this.isValueChanged(n,r)&&this.$emit("input",{originalEvent:e,value:r,formattedValue:n})},isValueChanged:function(e,n){if(n===null&&e!==null)return!0;if(n!=null){var r=typeof e=="string"?this.parseValue(e):e;return n!==r}return!1},validateValue:function(e){return e==="-"||e==null?null:this.min!=null&&e<this.min?this.min:this.max!=null&&e>this.max?this.max:e},updateInput:function(e,n,r,o){n=n||"";var i=this.$refs.input.$el.value,s=this.formatValue(e),l=i.length;if(s!==o&&(s=this.concatValues(s,o)),l===0){this.$refs.input.$el.value=s,this.$refs.input.$el.setSelectionRange(0,0);var c=this.initCursor(),u=c+n.length;this.$refs.input.$el.setSelectionRange(u,u)}else{var d=this.$refs.input.$el.selectionStart,f=this.$refs.input.$el.selectionEnd;this.$refs.input.$el.value=s;var p=s.length;if(r==="range-insert"){var h=this.parseValue((i||"").slice(0,d)),m=h!==null?h.toString():"",y=m.split("").join("(".concat(this.groupChar,")?")),g=new RegExp(y,"g");g.test(s);var b=n.split("").join("(".concat(this.groupChar,")?")),w=new RegExp(b,"g");w.test(s.slice(g.lastIndex)),f=g.lastIndex+w.lastIndex,this.$refs.input.$el.setSelectionRange(f,f)}else if(p===l)if(r==="insert"||r==="delete-back-single"){var C=/[.,]/g,v=f+Number(C.test(e)||C.test(n));this.$refs.input.$el.setSelectionRange(v,v)}else r==="delete-single"?this.$refs.input.$el.setSelectionRange(f-1,f-1):(r==="delete-range"||r==="spin")&&this.$refs.input.$el.setSelectionRange(f,f);else if(r==="delete-back-single"){var E=i.charAt(f-1),S=i.charAt(f),k=l-p,T=this._group.test(S);T&&k===1?f+=1:!T&&this.isNumeralChar(E)&&(f+=-1*k+1),this._group.lastIndex=0,this.$refs.input.$el.setSelectionRange(f,f)}else if(i==="-"&&r==="insert"){this.$refs.input.$el.setSelectionRange(0,0);var D=this.initCursor(),N=D+n.length+1;this.$refs.input.$el.setSelectionRange(N,N)}else f=f+(p-l),this.$refs.input.$el.setSelectionRange(f,f)}this.$refs.input.$el.setAttribute("aria-valuenow",e)},concatValues:function(e,n){if(e&&n){var r=n.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?r!==-1?e.replace(this.suffixChar,"").split(this._decimal)[0]+n.replace(this.suffixChar,"").slice(r)+this.suffixChar:e:r!==-1?e.split(this._decimal)[0]+n.slice(r):e}return e},getDecimalLength:function(e){if(e){var n=e.split(this._decimal);if(n.length===2)return n[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0},updateModel:function(e,n){this.d_modelValue=n,this.$emit("update:modelValue",n)},onInputFocus:function(e){this.focused=!0,!this.disabled&&!this.readonly&&this.$refs.input.$el.value!==O.getSelection()&&this.highlightOnFocus&&e.target.select(),this.$emit("focus",e)},onInputBlur:function(e){this.focused=!1;var n=e.target,r=this.validateValue(this.parseValue(n.value));this.$emit("blur",{originalEvent:e,value:n.value}),n.value=this.formatValue(r),n.setAttribute("aria-valuenow",r),this.updateModel(e,r),!this.disabled&&!this.readonly&&this.highlightOnFocus&&O.clearSelection()},clearTimer:function(){this.timer&&clearInterval(this.timer)},maxBoundry:function(){return this.d_modelValue>=this.max},minBoundry:function(){return this.d_modelValue<=this.min}},computed:{filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0},upButtonListeners:function(){var e=this;return{mousedown:function(r){return e.onUpButtonMouseDown(r)},mouseup:function(r){return e.onUpButtonMouseUp(r)},mouseleave:function(r){return e.onUpButtonMouseLeave(r)},keydown:function(r){return e.onUpButtonKeyDown(r)},keyup:function(r){return e.onUpButtonKeyUp(r)}}},downButtonListeners:function(){var e=this;return{mousedown:function(r){return e.onDownButtonMouseDown(r)},mouseup:function(r){return e.onDownButtonMouseUp(r)},mouseleave:function(r){return e.onDownButtonMouseLeave(r)},keydown:function(r){return e.onDownButtonKeyDown(r)},keyup:function(r){return e.onDownButtonKeyUp(r)}}},formattedValue:function(){var e=!this.modelValue&&!this.allowEmpty?0:this.modelValue;return this.formatValue(e)},getFormatter:function(){return this.numberFormat}},components:{INInputText:e5,INButton:lu,AngleUpIcon:Xg,AngleDownIcon:Qg}};function nD(t,e,n,r,o,i){var s=a.resolveComponent("INInputText"),l=a.resolveComponent("INButton");return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:t.cx("root")},t.ptmi("root")),[a.createVNode(s,a.mergeProps({ref:"input",id:t.inputId,role:"spinbutton",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:i.formattedValue,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,disabled:t.disabled,readonly:t.readonly,placeholder:t.placeholder,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-invalid":t.invalid||void 0,onInput:i.onUserInput,onKeydown:i.onInputKeyDown,onKeypress:i.onInputKeyPress,onPaste:i.onPaste,onClick:i.onInputClick,onFocus:i.onInputFocus,onBlur:i.onInputBlur},t.inputProps,{pt:t.ptm("input"),unstyled:t.unstyled}),null,16,["id","class","style","value","aria-valuemin","aria-valuemax","aria-valuenow","disabled","readonly","placeholder","aria-labelledby","aria-label","aria-invalid","onInput","onKeydown","onKeypress","onPaste","onClick","onFocus","onBlur","pt","unstyled"]),t.showButtons&&t.buttonLayout==="stacked"?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:t.cx("buttonGroup")},t.ptm("buttonGroup")),[a.createVNode(l,a.mergeProps({class:[t.cx("incrementButton"),t.incrementButtonClass]},a.toHandlers(i.upButtonListeners),{disabled:t.disabled,tabindex:-1,"aria-hidden":"true"},t.incrementButtonProps,{pt:t.ptm("incrementButton"),unstyled:t.unstyled}),{icon:a.withCtx(function(){return[a.renderSlot(t.$slots,"incrementbuttonicon",{},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.incrementButtonIcon?"span":"AngleUpIcon"),a.mergeProps({class:t.incrementButtonIcon},t.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","pt","unstyled"]),a.createVNode(l,a.mergeProps({class:[t.cx("decrementButton"),t.decrementButtonClass]},a.toHandlers(i.downButtonListeners),{disabled:t.disabled,tabindex:-1,"aria-hidden":"true"},t.decrementButtonProps,{pt:t.ptm("decrementButton"),unstyled:t.unstyled}),{icon:a.withCtx(function(){return[a.renderSlot(t.$slots,"decrementbuttonicon",{},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.decrementButtonIcon?"span":"AngleDownIcon"),a.mergeProps({class:t.decrementButtonIcon},t.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","pt","unstyled"])],16)):a.createCommentVNode("",!0),t.showButtons&&t.buttonLayout!=="stacked"?(a.openBlock(),a.createBlock(l,a.mergeProps({key:1,class:[t.cx("incrementButton"),t.incrementButtonClass]},a.toHandlers(i.upButtonListeners),{disabled:t.disabled,tabindex:-1,"aria-hidden":"true"},t.incrementButtonProps,{pt:t.ptm("incrementButton"),unstyled:t.unstyled}),{icon:a.withCtx(function(){return[a.renderSlot(t.$slots,"incrementbuttonicon",{},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.incrementButtonIcon?"span":"AngleUpIcon"),a.mergeProps({class:t.incrementButtonIcon},t.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","pt","unstyled"])):a.createCommentVNode("",!0),t.showButtons&&t.buttonLayout!=="stacked"?(a.openBlock(),a.createBlock(l,a.mergeProps({key:2,class:[t.cx("decrementButton"),t.decrementButtonClass]},a.toHandlers(i.downButtonListeners),{disabled:t.disabled,tabindex:-1,"aria-hidden":"true"},t.decrementButtonProps,{pt:t.ptm("decrementButton"),unstyled:t.unstyled}),{icon:a.withCtx(function(){return[a.renderSlot(t.$slots,"decrementbuttonicon",{},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.decrementButtonIcon?"span":"AngleDownIcon"),a.mergeProps({class:t.decrementButtonIcon},t.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","pt","unstyled"])):a.createCommentVNode("",!0)],16)}r5.render=nD;var o5={name:"AngleDoubleRightIcon",extends:be},rD=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z",fill:"currentColor"},null,-1),oD=[rD];function iD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),oD,16)}o5.render=iD;var i5={name:"AngleRightIcon",extends:be},sD=a.createElementVNode("path",{d:"M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z",fill:"currentColor"},null,-1),aD=[sD];function lD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),aD,16)}i5.render=lD;var s5={name:"AngleLeftIcon",extends:be},cD=a.createElementVNode("path",{d:"M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z",fill:"currentColor"},null,-1),uD=[cD];function dD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),uD,16)}s5.render=dD;var fD={name:"BasePaginator",extends:re,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},style:Dx,provide:function(){return{$parentInstance:this}}},a5={name:"CurrentPageReport",hostName:"Paginator",extends:re,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var e=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return e}}};function pD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:t.cx("current")},t.ptm("current")),a.toDisplayString(i.text),17)}a5.render=pD;var l5={name:"FirstPageLink",hostName:"Paginator",extends:re,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:_g},directives:{ripple:Mn}};function hD(t,e,n,r,o,i){var s=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:t.cx("firstPageButton"),type:"button"},i.getPTOptions("firstPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleLeftIcon"),a.mergeProps({class:t.cx("firstPageIcon")},i.getPTOptions("firstPageIcon")),null,16,["class"]))],16)),[[s]])}l5.render=hD;var c5={name:"JumpToPageDropdown",hostName:"Paginator",extends:re,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean,templates:null},methods:{onChange:function(e){this.$emit("page-change",e)}},computed:{pageOptions:function(){for(var e=[],n=0;n<this.pageCount;n++)e.push({label:String(n+1),value:n});return e}},components:{JTPDropdown:kl}};function mD(t,e,n,r,o,i){var s=a.resolveComponent("JTPDropdown");return a.openBlock(),a.createBlock(s,{modelValue:n.page,options:i.pageOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[0]||(e[0]=function(l){return i.onChange(l)}),class:a.normalizeClass(t.cx("jumpToPageDropdown")),disabled:n.disabled,unstyled:t.unstyled,pt:t.ptm("jumpToPageDropdown"),"data-pc-group-section":"pagedropdown"},a.createSlots({_:2},[n.templates.jumptopagedropdownicon?{name:"dropdownicon",fn:a.withCtx(function(l){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.jumptopagedropdownicon),{class:a.normalizeClass(l.class)},null,8,["class"]))]}),key:"0"}:void 0]),1032,["modelValue","options","class","disabled","unstyled","pt"])}c5.render=mD;var u5={name:"JumpToPageInput",hostName:"Paginator",extends:re,inheritAttrs:!1,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},data:function(){return{d_page:this.page}},watch:{page:function(e){this.d_page=e}},methods:{onChange:function(e){e!==this.page&&(this.d_page=e,this.$emit("page-change",e-1))}},computed:{inputArialabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.jumpToPageInputLabel:void 0}},components:{JTPInput:r5}};function gD(t,e,n,r,o,i){var s=a.resolveComponent("JTPInput");return a.openBlock(),a.createBlock(s,{ref:"jtpInput",modelValue:o.d_page,class:a.normalizeClass(t.cx("jumpToPageInput")),"aria-label":i.inputArialabel,disabled:n.disabled,"onUpdate:modelValue":i.onChange,unstyled:t.unstyled,pt:t.ptm("jumpToPageInput")},null,8,["modelValue","class","aria-label","disabled","onUpdate:modelValue","unstyled","pt"])}u5.render=gD;var d5={name:"LastPageLink",hostName:"Paginator",extends:re,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleRightIcon:o5},directives:{ripple:Mn}};function yD(t,e,n,r,o,i){var s=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:t.cx("lastPageButton"),type:"button"},i.getPTOptions("lastPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleRightIcon"),a.mergeProps({class:t.cx("lastPageIcon")},i.getPTOptions("lastPageIcon")),null,16,["class"]))],16)),[[s]])}d5.render=yD;var f5={name:"NextPageLink",hostName:"Paginator",extends:re,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleRightIcon:i5},directives:{ripple:Mn}};function bD(t,e,n,r,o,i){var s=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:t.cx("nextPageButton"),type:"button"},i.getPTOptions("nextPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleRightIcon"),a.mergeProps({class:t.cx("nextPageIcon")},i.getPTOptions("nextPageIcon")),null,16,["class"]))],16)),[[s]])}f5.render=bD;var p5={name:"PageLinks",hostName:"Paginator",extends:re,inheritAttrs:!1,emits:["click"],props:{value:Array,page:Number},methods:{getPTOptions:function(e,n){return this.ptm(n,{context:{active:e===this.page}})},onPageLinkClick:function(e,n){this.$emit("click",{originalEvent:e,value:n})},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},directives:{ripple:Mn}},wD=["aria-label","aria-current","onClick","data-p-highlight"];function vD(t,e,n,r,o,i){var s=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:t.cx("pages")},t.ptm("pages")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,function(l){return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:l,class:t.cx("pageButton",{pageLink:l}),type:"button","aria-label":i.ariaPageLabel(l),"aria-current":l-1===n.page?"page":void 0,onClick:function(u){return i.onPageLinkClick(u,l)}},i.getPTOptions(l-1,"pageButton"),{"data-p-highlight":l-1===n.page}),[a.createTextVNode(a.toDisplayString(l),1)],16,wD)),[[s]])}),128))],16)}p5.render=vD;var h5={name:"PrevPageLink",hostName:"Paginator",extends:re,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleLeftIcon:s5},directives:{ripple:Mn}};function CD(t,e,n,r,o,i){var s=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:t.cx("previousPageButton"),type:"button"},i.getPTOptions("previousPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleLeftIcon"),a.mergeProps({class:t.cx("previousPageIcon")},i.getPTOptions("previousPageIcon")),null,16,["class"]))],16)),[[s]])}h5.render=CD;var m5={name:"RowsPerPageDropdown",hostName:"Paginator",extends:re,emits:["rows-change"],props:{options:Array,rows:Number,disabled:Boolean,templates:null},methods:{onChange:function(e){this.$emit("rows-change",e)}},computed:{rowsOptions:function(){var e=[];if(this.options)for(var n=0;n<this.options.length;n++)e.push({label:String(this.options[n]),value:this.options[n]});return e}},components:{RPPDropdown:kl}};function SD(t,e,n,r,o,i){var s=a.resolveComponent("RPPDropdown");return a.openBlock(),a.createBlock(s,{modelValue:n.rows,options:i.rowsOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[0]||(e[0]=function(l){return i.onChange(l)}),class:a.normalizeClass(t.cx("rowPerPageDropdown")),disabled:n.disabled,unstyled:t.unstyled,pt:t.ptm("rowPerPageDropdown"),"data-pc-group-section":"pagedropdown"},a.createSlots({_:2},[n.templates.rowsperpagedropdownicon?{name:"dropdownicon",fn:a.withCtx(function(l){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.rowsperpagedropdownicon),{class:a.normalizeClass(l.class)},null,8,["class"]))]}),key:"0"}:void 0]),1032,["modelValue","options","class","disabled","unstyled","pt"])}m5.render=SD;function kD(t){return TD(t)||ED(t)||y5(t)||OD()}function OD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
174
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ED(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function TD(t){if(Array.isArray(t))return du(t)}function uu(t){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uu(t)}function g5(t,e){return PD(t)||xD(t,e)||y5(t,e)||MD()}function MD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
175
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y5(t,e){if(t){if(typeof t=="string")return du(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return du(t,e)}}function du(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function xD(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function PD(t){if(Array.isArray(t))return t}var b5={name:"Paginator",extends:fD,inheritAttrs:!1,emits:["update:first","update:rows","page"],data:function(){return{d_first:this.first,d_rows:this.rows}},watch:{first:function(e){this.d_first=e},rows:function(e){this.d_rows=e},totalRecords:function(e){this.page>0&&e&&this.d_first>=e&&this.changePage(this.pageCount-1)}},mounted:function(){this.setPaginatorAttribute(),this.createStyle()},methods:{changePage:function(e){var n=this.pageCount;if(e>=0&&e<n){this.d_first=this.d_rows*e;var r={page:e,first:this.d_first,rows:this.d_rows,pageCount:n};this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",r)}},changePageToFirst:function(e){this.isFirstPage||this.changePage(0),e.preventDefault()},changePageToPrev:function(e){this.changePage(this.page-1),e.preventDefault()},changePageLink:function(e){this.changePage(e.value-1),e.originalEvent.preventDefault()},changePageToNext:function(e){this.changePage(this.page+1),e.preventDefault()},changePageToLast:function(e){this.isLastPage||this.changePage(this.pageCount-1),e.preventDefault()},onRowChange:function(e){this.d_rows=e,this.changePage(this.page)},createStyle:function(){var e=this;if(this.hasBreakpoints()&&!this.isUnstyled){var n;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",O.setAttribute(this.styleElement,"nonce",(n=this.$primevue)===null||n===void 0||(n=n.config)===null||n===void 0||(n=n.csp)===null||n===void 0?void 0:n.nonce),document.head.appendChild(this.styleElement);var r="",o=Object.keys(this.template),i={};o.sort(function(m,y){return parseInt(m)-parseInt(y)}).forEach(function(m){i[m]=e.template[m]});for(var s=0,l=Object.entries(Object.entries(i));s<l.length;s++){var c=g5(l[s],2),u=c[0],d=g5(c[1],1),f=d[0],p=void 0,h=void 0;f!=="default"&&typeof Object.keys(i)[u-1]=="string"?h=Number(Object.keys(i)[u-1].slice(0,-2))+1+"px":h=Object.keys(i)[u-1],p=Object.entries(i)[u-1]?"and (min-width:".concat(h,")"):"",f==="default"?r+=`
176
176
  @media screen `.concat(p,` {
177
177
  .paginator[`).concat(this.attributeSelector,`],
178
178
  .p-paginator-default{
@@ -192,13 +192,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
192
192
  display: none;
193
193
  }
194
194
  }
195
- `)}this.styleElement.innerHTML=r}},hasBreakpoints:function(){return uu(this.template)==="object"},setPaginatorAttribute:function(){var e=this;this.$refs.paginator&&this.$refs.paginator.length>=0&&SD(this.$refs.paginator).forEach(function(n){n.setAttribute(e.attributeSelector,"")})},getAriaLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[e]:void 0}},computed:{templateItems:function(){var e={};if(this.hasBreakpoints()){e=this.template,e.default||(e.default="FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown");for(var n in e)e[n]=this.template[n].split(" ").map(function(r){return r.trim()});return e}return e.default=this.template.split(" ").map(function(r){return r.trim()}),e},page:function(){return Math.floor(this.d_first/this.d_rows)},pageCount:function(){return Math.ceil(this.totalRecords/this.d_rows)},isFirstPage:function(){return this.page===0},isLastPage:function(){return this.page===this.pageCount-1},calculatePageLinkBoundaries:function(){var e=this.pageCount,n=Math.min(this.pageLinkSize,e),r=Math.max(0,Math.ceil(this.page-n/2)),o=Math.min(e-1,r+n-1),i=this.pageLinkSize-(o-r+1);return r=Math.max(0,r-i),[r,o]},pageLinks:function(){for(var e=[],n=this.calculatePageLinkBoundaries,r=n[0],o=n[1],i=r;i<=o;i++)e.push(i+1);return e},currentState:function(){return{page:this.page,first:this.d_first,rows:this.d_rows}},empty:function(){return this.pageCount===0},currentPage:function(){return this.pageCount>0?this.page+1:0},attributeSelector:function(){return qn()}},components:{CurrentPageReport:a5,FirstPageLink:l5,LastPageLink:d5,NextPageLink:f5,PageLinks:p5,PrevPageLink:h5,RowsPerPageDropdown:m5,JumpToPageDropdown:c5,JumpToPageInput:u5}};function PD(t,e,n,r,o,i){var s=a.resolveComponent("FirstPageLink"),l=a.resolveComponent("PrevPageLink"),c=a.resolveComponent("NextPageLink"),u=a.resolveComponent("LastPageLink"),d=a.resolveComponent("PageLinks"),f=a.resolveComponent("CurrentPageReport"),p=a.resolveComponent("RowsPerPageDropdown"),h=a.resolveComponent("JumpToPageDropdown"),m=a.resolveComponent("JumpToPageInput");return t.alwaysShow||i.pageLinks&&i.pageLinks.length>1?(a.openBlock(),a.createElementBlock("nav",a.normalizeProps(a.mergeProps({key:0},t.ptmi("paginatorWrapper"))),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.templateItems,function(y,g){return a.openBlock(),a.createElementBlock("div",a.mergeProps({key:g,ref_for:!0,ref:"paginator",class:t.cx("paginator",{key:g})},t.ptm("root")),[t.$slots.start?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("start")},t.ptm("start")),[a.renderSlot(t.$slots,"start",{state:i.currentState})],16)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y,function(b){return a.openBlock(),a.createElementBlock(a.Fragment,{key:b},[b==="FirstPageLink"?(a.openBlock(),a.createBlock(s,{key:0,"aria-label":i.getAriaLabel("firstPageLabel"),template:t.$slots.firstpagelinkicon,onClick:e[0]||(e[0]=function(w){return i.changePageToFirst(w)}),disabled:i.isFirstPage||i.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):b==="PrevPageLink"?(a.openBlock(),a.createBlock(l,{key:1,"aria-label":i.getAriaLabel("prevPageLabel"),template:t.$slots.prevpagelinkicon,onClick:e[1]||(e[1]=function(w){return i.changePageToPrev(w)}),disabled:i.isFirstPage||i.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):b==="NextPageLink"?(a.openBlock(),a.createBlock(c,{key:2,"aria-label":i.getAriaLabel("nextPageLabel"),template:t.$slots.nextpagelinkicon,onClick:e[2]||(e[2]=function(w){return i.changePageToNext(w)}),disabled:i.isLastPage||i.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):b==="LastPageLink"?(a.openBlock(),a.createBlock(u,{key:3,"aria-label":i.getAriaLabel("lastPageLabel"),template:t.$slots.lastpagelinkicon,onClick:e[3]||(e[3]=function(w){return i.changePageToLast(w)}),disabled:i.isLastPage||i.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):b==="PageLinks"?(a.openBlock(),a.createBlock(d,{key:4,"aria-label":i.getAriaLabel("pageLabel"),value:i.pageLinks,page:i.page,onClick:e[4]||(e[4]=function(w){return i.changePageLink(w)}),pt:t.pt},null,8,["aria-label","value","page","pt"])):b==="CurrentPageReport"?(a.openBlock(),a.createBlock(f,{key:5,"aria-live":"polite",template:t.currentPageReportTemplate,currentPage:i.currentPage,page:i.page,pageCount:i.pageCount,first:o.d_first,rows:o.d_rows,totalRecords:t.totalRecords,unstyled:t.unstyled,pt:t.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","unstyled","pt"])):b==="RowsPerPageDropdown"&&t.rowsPerPageOptions?(a.openBlock(),a.createBlock(p,{key:6,"aria-label":i.getAriaLabel("rowsPerPageLabel"),rows:o.d_rows,options:t.rowsPerPageOptions,onRowsChange:e[5]||(e[5]=function(w){return i.onRowChange(w)}),disabled:i.empty,templates:t.$slots,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","rows","options","disabled","templates","unstyled","pt"])):b==="JumpToPageDropdown"?(a.openBlock(),a.createBlock(h,{key:7,"aria-label":i.getAriaLabel("jumpToPageDropdownLabel"),page:i.page,pageCount:i.pageCount,onPageChange:e[6]||(e[6]=function(w){return i.changePage(w)}),disabled:i.empty,templates:t.$slots,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","page","pageCount","disabled","templates","unstyled","pt"])):b==="JumpToPageInput"?(a.openBlock(),a.createBlock(m,{key:8,page:i.currentPage,onPageChange:e[7]||(e[7]=function(w){return i.changePage(w)}),disabled:i.empty,unstyled:t.unstyled,pt:t.pt},null,8,["page","disabled","unstyled","pt"])):a.createCommentVNode("",!0)],64)}),128)),t.$slots.end?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:t.cx("end")},t.ptm("end")),[a.renderSlot(t.$slots,"end",{state:i.currentState})],16)):a.createCommentVNode("",!0)],16)}),128))],16)):a.createCommentVNode("",!0)}b5.render=PD;var DD={root:function(e){var n=e.instance,r=e.props;return["p-datatable p-component",{"p-datatable-hoverable-rows":r.rowHover||r.selectionMode,"p-datatable-resizable":r.resizableColumns,"p-datatable-resizable-fit":r.resizableColumns&&r.columnResizeMode==="fit","p-datatable-scrollable":r.scrollable,"p-datatable-flex-scrollable":r.scrollable&&r.scrollHeight==="flex","p-datatable-responsive-stack":r.responsiveLayout==="stack","p-datatable-responsive-scroll":r.responsiveLayout==="scroll","p-datatable-striped":r.stripedRows,"p-datatable-gridlines":r.showGridlines,"p-datatable-grouped-header":n.headerColumnGroup!=null,"p-datatable-grouped-footer":n.footerColumnGroup!=null,"p-datatable-sm":r.size==="small","p-datatable-lg":r.size==="large"}]},loadingOverlay:"p-datatable-loading-overlay p-component-overlay",loadingIcon:"p-datatable-loading-icon",header:"p-datatable-header",paginator:function(e){var n=e.instance;return n.paginatorTop?"p-paginator-top":n.paginatorBottom?"p-paginator-bottom":""},wrapper:"p-datatable-wrapper",table:function(e){var n=e.props;return["p-datatable-table",{"p-datatable-scrollable-table":n.scrollable,"p-datatable-resizable-table":n.resizableColumns,"p-datatable-resizable-table-fit":n.resizableColumns&&n.columnResizeMode==="fit"}]},thead:"p-datatable-thead",headerCell:function(e){var n=e.instance,r=e.props,o=e.column;return o&&!n.columnProp(o,"hidden")&&(r.rowGroupMode!=="subheader"||r.groupRowsBy!==n.columnProp(o,"field"))?["p-filter-column",{"p-frozen-column":n.columnProp(o,"frozen")}]:[{"p-sortable-column":n.columnProp("sortable"),"p-resizable-column":n.resizableColumns,"p-highlight":n.isColumnSorted(),"p-filter-column":r.filterColumn,"p-frozen-column":n.columnProp("frozen"),"p-reorderable-column":r.reorderableColumns}]},columnResizer:"p-column-resizer",headerContent:"p-column-header-content",headerTitle:"p-column-title",sortIcon:"p-sortable-column-icon",sortBadge:"p-sortable-column-badge",columnFilter:function(e){var n=e.props;return["p-column-filter p-fluid",{"p-column-filter-row":n.display==="row","p-column-filter-menu":n.display==="menu"}]},filterInput:"p-fluid p-column-filter-element",filterMenuButton:function(e){var n=e.instance;return["p-column-filter-menu-button p-link",{"p-column-filter-menu-button-open":n.overlayVisible,"p-column-filter-menu-button-active":n.hasFilter()}]},headerFilterClearButton:function(e){var n=e.instance;return["p-column-filter-clear-button p-link",{"p-hidden-space":!n.hasRowFilter()}]},filterOverlay:function(e){var n=e.instance,r=e.props;return[{"p-column-filter-overlay p-component p-fluid":!0,"p-column-filter-overlay-menu":r.display==="menu","p-ripple-disabled":n.$primevue.config.ripple===!1}]},filterRowItems:"p-column-filter-row-items",filterRowItem:function(e){var n=e.instance,r=e.matchMode;return["p-column-filter-row-item",{"p-highlight":r&&n.isRowMatchModeSelected(r.value)}]},filterSeparator:"p-column-filter-separator",filterOperator:"p-column-filter-operator",filterOperatorDropdown:"p-column-filter-operator-dropdown",filterConstraints:"p-column-filter-constraints",filterConstraint:"p-column-filter-constraint",filterMatchModeDropdown:"p-column-filter-matchmode-dropdown",filterRemoveButton:"p-column-filter-remove-button p-button-text p-button-danger p-button-sm",filterAddRule:"p-column-filter-add-rule",filterAddRuleButton:"p-column-filter-add-button p-button-text p-button-sm",filterButtonbar:"p-column-filter-buttonbar",filterClearButton:"p-button-outlined p-button-sm",filterApplyButton:"p-button-sm",tbody:function(e){var n=e.props;return n.frozenRow?"p-datatable-tbody p-datatable-frozen-tbody":"p-datatable-tbody"},rowgroupHeader:"p-rowgroup-header",rowGroupToggler:"p-row-toggler p-link",rowGroupTogglerIcon:"p-row-toggler-icon",row:function(e){var n=e.instance,r=e.props,o=e.index,i=e.columnSelectionMode,s=[];return r.selectionMode&&s.push("p-selectable-row"),r.selection&&s.push({"p-highlight":i?n.isSelected&&n.$parentInstance.$parentInstance.highlightOnSelect:n.isSelected}),r.contextMenuSelection&&s.push({"p-highlight-contextmenu":n.isSelectedWithContextMenu}),s.push(o%2===0?"p-row-even":"p-row-odd"),s},rowExpansion:"p-datatable-row-expansion",rowgroupFooter:"p-rowgroup-footer",emptyMessage:"p-datatable-emptymessage",bodyCell:function(e){var n=e.instance;return[{"p-selection-column":n.columnProp("selectionMode")!=null,"p-editable-column":n.isEditable(),"p-cell-editing":n.d_editing,"p-frozen-column":n.columnProp("frozen")}]},columnTitle:"p-column-title",rowReorderIcon:"p-datatable-reorderablerow-handle",rowToggler:"p-row-toggler p-link",rowTogglerIcon:"p-row-toggler-icon",rowEditorInitButton:"p-row-editor-init p-link",rowEditorInitIcon:"p-row-editor-init-icon",rowEditorSaveButton:"p-row-editor-save p-link",rowEditorSaveIcon:"p-row-editor-save-icon",rowEditorCancelButton:"p-row-editor-cancel p-link",rowEditorCancelIcon:"p-row-editor-cancel-icon",tfoot:"p-datatable-tfoot",footerCell:function(e){var n=e.instance;return[{"p-frozen-column":n.columnProp("frozen")}]},virtualScrollerSpacer:"p-datatable-virtualscroller-spacer",footer:"p-datatable-footer",resizeHelper:"p-column-resizer-helper",reorderIndicatorUp:"p-datatable-reorder-indicator-up",reorderIndicatorDown:"p-datatable-reorder-indicator-down"},AD={wrapper:{overflow:"auto"},thead:{position:"sticky"},tfoot:{position:"sticky"}},ID=je.extend({name:"datatable",classes:DD,inlineStyles:AD}),fu={name:"ChevronRightIcon",extends:be},ND=a.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1),BD=[ND];function RD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),BD,16)}fu.render=RD;var w5={name:"BarsIcon",extends:be},LD=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z",fill:"currentColor"},null,-1),VD=[LD];function $D(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),VD,16)}w5.render=$D;var v5={name:"PencilIcon",extends:be},FD=a.createElementVNode("path",{d:"M0.609628 13.959C0.530658 13.9599 0.452305 13.9451 0.379077 13.9156C0.305849 13.8861 0.239191 13.8424 0.18294 13.787C0.118447 13.7234 0.0688234 13.6464 0.0376166 13.5614C0.00640987 13.4765 -0.00560954 13.3857 0.00241768 13.2956L0.25679 10.1501C0.267698 10.0041 0.331934 9.86709 0.437312 9.76516L9.51265 0.705715C10.0183 0.233014 10.6911 -0.0203041 11.3835 0.00127367C12.0714 0.00660201 12.7315 0.27311 13.2298 0.746671C13.7076 1.23651 13.9824 1.88848 13.9992 2.57201C14.0159 3.25554 13.7733 3.92015 13.32 4.4327L4.23648 13.5331C4.13482 13.6342 4.0017 13.6978 3.85903 13.7133L0.667067 14L0.609628 13.959ZM1.43018 10.4696L1.25787 12.714L3.50619 12.5092L12.4502 3.56444C12.6246 3.35841 12.7361 3.10674 12.7714 2.83933C12.8067 2.57193 12.7644 2.30002 12.6495 2.05591C12.5346 1.8118 12.3519 1.60575 12.1231 1.46224C11.8943 1.31873 11.6291 1.2438 11.3589 1.24633C11.1813 1.23508 11.0033 1.25975 10.8355 1.31887C10.6677 1.37798 10.5136 1.47033 10.3824 1.59036L1.43018 10.4696Z",fill:"currentColor"},null,-1),HD=[FD];function _D(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),HD,16)}v5.render=_D;var zD={root:function(e){var n=e.instance,r=e.props;return["p-checkbox p-component",{"p-highlight":n.checked,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]},box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},jD=je.extend({name:"checkbox",classes:zD}),ZD={name:"BaseCheckbox",extends:re,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:jD,provide:function(){return{$parentInstance:this}}};function WD(t){return qD(t)||GD(t)||KD(t)||UD()}function UD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
196
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KD(t,e){if(t){if(typeof t=="string")return pu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pu(t,e)}}function GD(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function qD(t){if(Array.isArray(t))return pu(t)}function pu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var hu={name:"Checkbox",extends:ZD,inheritAttrs:!1,emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){var n=this;if(!this.disabled&&!this.readonly){var r;this.binary?r=this.checked?this.falseValue:this.trueValue:this.checked?r=this.modelValue.filter(function(o){return!M.equals(o,n.value)}):r=this.modelValue?[].concat(WD(this.modelValue),[this.value]):[this.value],this.$emit("update:modelValue",r),this.$emit("change",e)}},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.binary?this.modelValue===this.trueValue:M.contains(this.value,this.modelValue)}},components:{CheckIcon:Wo}},YD=["data-p-highlight","data-p-disabled"],JD=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label","aria-invalid"];function QD(t,e,n,r,o,i){var s=a.resolveComponent("CheckIcon");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:t.cx("root")},i.getPTOptions("root"),{"data-p-highlight":i.checked,"data-p-disabled":t.disabled}),[a.createElementVNode("input",a.mergeProps({id:t.inputId,type:"checkbox",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:t.value,name:t.name,checked:i.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,required:t.required,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-invalid":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[1]||(e[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onChange:e[2]||(e[2]=function(){return i.onChange&&i.onChange.apply(i,arguments)})},i.getPTOptions("input")),null,16,JD),a.createElementVNode("div",a.mergeProps({class:t.cx("box")},i.getPTOptions("box")),[a.renderSlot(t.$slots,"icon",{checked:i.checked,class:a.normalizeClass(t.cx("icon"))},function(){return[i.checked?(a.openBlock(),a.createBlock(s,a.mergeProps({key:0,class:t.cx("icon")},i.getPTOptions("icon")),null,16,["class"])):a.createCommentVNode("",!0)]})],16)],16,YD)}hu.render=QD;var XD={root:function(e){var n=e.instance,r=e.props;return["p-radiobutton p-component",{"p-highlight":n.checked,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]},box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},eA=je.extend({name:"radiobutton",classes:XD}),tA={name:"BaseRadioButton",extends:re,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:eA,provide:function(){return{$parentInstance:this}}},C5={name:"RadioButton",extends:tA,inheritAttrs:!1,emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){if(!this.disabled&&!this.readonly){var n=this.binary?!this.checked:this.value;this.$emit("update:modelValue",n),this.$emit("change",e)}},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.modelValue!=null&&(this.binary?!!this.modelValue:M.equals(this.modelValue,this.value))}}},nA=["data-p-highlight","data-p-disabled"],rA=["id","value","name","checked","tabindex","disabled","readonly","aria-labelledby","aria-label","aria-invalid"];function oA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:t.cx("root")},i.getPTOptions("root"),{"data-p-highlight":i.checked,"data-p-disabled":t.disabled}),[a.createElementVNode("input",a.mergeProps({id:t.inputId,type:"radio",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:t.value,name:t.name,checked:i.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-invalid":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[1]||(e[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onChange:e[2]||(e[2]=function(){return i.onChange&&i.onChange.apply(i,arguments)})},i.getPTOptions("input")),null,16,rA),a.createElementVNode("div",a.mergeProps({class:t.cx("box")},i.getPTOptions("box")),[a.createElementVNode("div",a.mergeProps({class:t.cx("icon")},i.getPTOptions("icon")),null,16)],16)],16,nA)}C5.render=oA;var iA={},sA=oe.extend({style:iA});function xs(t){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xs(t)}function S5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function k5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?S5(Object(n),!0).forEach(function(r){aA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function aA(t,e,n){return e=lA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lA(t){var e=cA(t,"string");return xs(e)=="symbol"?e:String(e)}function cA(t,e){if(xs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var uA=sA.extend("focustrap",{mounted:function(e,n){var r=n.value||{},o=r.disabled;o||(this.createHiddenFocusableElements(e,n),this.bind(e,n),this.autoElementFocus(e,n)),e.setAttribute("data-pd-focustrap",!0),this.$el=e},updated:function(e,n){var r=n.value||{},o=r.disabled;o&&this.unbind(e)},unmounted:function(e){this.unbind(e)},methods:{getComputedSelector:function(e){return':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(e??"")},bind:function(e,n){var r=this,o=n.value||{},i=o.onFocusIn,s=o.onFocusOut;e.$_pfocustrap_mutationobserver=new MutationObserver(function(l){l.forEach(function(c){if(c.type==="childList"&&!e.contains(document.activeElement)){var u=function d(f){var p=O.isFocusableElement(f)?O.isFocusableElement(f,r.getComputedSelector(e.$_pfocustrap_focusableselector))?f:O.getFirstFocusableElement(e,r.getComputedSelector(e.$_pfocustrap_focusableselector)):O.getFirstFocusableElement(f);return M.isNotEmpty(p)?p:f.nextSibling&&d(f.nextSibling)};O.focus(u(c.nextSibling))}})}),e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_mutationobserver.observe(e,{childList:!0}),e.$_pfocustrap_focusinlistener=function(l){return i&&i(l)},e.$_pfocustrap_focusoutlistener=function(l){return s&&s(l)},e.addEventListener("focusin",e.$_pfocustrap_focusinlistener),e.addEventListener("focusout",e.$_pfocustrap_focusoutlistener)},unbind:function(e){e.$_pfocustrap_mutationobserver&&e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_focusinlistener&&e.removeEventListener("focusin",e.$_pfocustrap_focusinlistener)&&(e.$_pfocustrap_focusinlistener=null),e.$_pfocustrap_focusoutlistener&&e.removeEventListener("focusout",e.$_pfocustrap_focusoutlistener)&&(e.$_pfocustrap_focusoutlistener=null)},autoFocus:function(e){this.autoElementFocus(this.$el,{value:k5(k5({},e),{},{autoFocus:!0})})},autoElementFocus:function(e,n){var r=n.value||{},o=r.autoFocusSelector,i=o===void 0?"":o,s=r.firstFocusableSelector,l=s===void 0?"":s,c=r.autoFocus,u=c===void 0?!1:c,d=O.getFirstFocusableElement(e,"[autofocus]".concat(this.getComputedSelector(i)));u&&!d&&(d=O.getFirstFocusableElement(e,this.getComputedSelector(l))),O.focus(d)},onFirstHiddenElementFocus:function(e){var n,r=e.currentTarget,o=e.relatedTarget,i=o===r.$_pfocustrap_lasthiddenfocusableelement||!((n=this.$el)!==null&&n!==void 0&&n.contains(o))?O.getFirstFocusableElement(r.parentElement,this.getComputedSelector(r.$_pfocustrap_focusableselector)):r.$_pfocustrap_lasthiddenfocusableelement;O.focus(i)},onLastHiddenElementFocus:function(e){var n,r=e.currentTarget,o=e.relatedTarget,i=o===r.$_pfocustrap_firsthiddenfocusableelement||!((n=this.$el)!==null&&n!==void 0&&n.contains(o))?O.getLastFocusableElement(r.parentElement,this.getComputedSelector(r.$_pfocustrap_focusableselector)):r.$_pfocustrap_firsthiddenfocusableelement;O.focus(i)},createHiddenFocusableElements:function(e,n){var r=this,o=n.value||{},i=o.tabIndex,s=i===void 0?0:i,l=o.firstFocusableSelector,c=l===void 0?"":l,u=o.lastFocusableSelector,d=u===void 0?"":u,f=function(y){return O.createElement("span",{class:"p-hidden-accessible p-hidden-focusable",tabIndex:s,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:y==null?void 0:y.bind(r)})},p=f(this.onFirstHiddenElementFocus),h=f(this.onLastHiddenElementFocus);p.$_pfocustrap_lasthiddenfocusableelement=h,p.$_pfocustrap_focusableselector=c,p.setAttribute("data-pc-section","firstfocusableelement"),h.$_pfocustrap_firsthiddenfocusableelement=p,h.$_pfocustrap_focusableselector=d,h.setAttribute("data-pc-section","lastfocusableelement"),e.prepend(p),e.append(h)}}}),O5={name:"FilterIcon",extends:be},dA=a.createElementVNode("path",{d:"M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z",fill:"currentColor"},null,-1),fA=[dA];function pA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),fA,16)}O5.render=pA;var E5={name:"FilterSlashIcon",extends:be},hA=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z",fill:"currentColor"},null,-1),mA=[hA];function gA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),mA,16)}E5.render=gA;var T5={name:"PlusIcon",extends:be},yA=a.createElementVNode("path",{d:"M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z",fill:"currentColor"},null,-1),bA=[yA];function wA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),bA,16)}T5.render=wA;var M5={name:"TrashIcon",extends:be},vA=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z",fill:"currentColor"},null,-1),CA=[vA];function SA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),CA,16)}M5.render=SA;var mu={name:"SortAltIcon",extends:be},kA=a.createElementVNode("path",{d:"M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z",fill:"currentColor"},null,-1),OA=a.createElementVNode("path",{d:"M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z",fill:"currentColor"},null,-1),EA=a.createElementVNode("path",{d:"M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z",fill:"currentColor"},null,-1),TA=a.createElementVNode("path",{d:"M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z",fill:"currentColor"},null,-1),MA=[kA,OA,EA,TA];function xA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),MA,16)}mu.render=xA;var gu={name:"SortAmountDownIcon",extends:be},PA=a.createElementVNode("path",{d:"M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z",fill:"currentColor"},null,-1),DA=[PA];function AA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),DA,16)}gu.render=AA;var yu={name:"SortAmountUpAltIcon",extends:be},IA=a.createElementVNode("path",{d:"M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z",fill:"currentColor"},null,-1),NA=[IA];function BA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),NA,16)}yu.render=BA;var RA={name:"BaseDataTable",extends:re,props:{value:{type:Array,default:null},dataKey:{type:[String,Function],default:null},rows:{type:Number,default:0},first:{type:Number,default:0},totalRecords:{type:Number,default:0},paginator:{type:Boolean,default:!1},paginatorPosition:{type:String,default:"bottom"},alwaysShowPaginator:{type:Boolean,default:!0},paginatorTemplate:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},currentPageReportTemplate:{type:String,default:"({currentPage} of {totalPages})"},lazy:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},defaultSortOrder:{type:Number,default:1},nullSortOrder:{type:Number,default:1},multiSortMeta:{type:Array,default:null},sortMode:{type:String,default:"single"},removableSort:{type:Boolean,default:!1},filters:{type:Object,default:null},filterDisplay:{type:String,default:null},globalFilterFields:{type:Array,default:null},filterLocale:{type:String,default:void 0},selection:{type:[Array,Object],default:null},selectionMode:{type:String,default:null},compareSelectionBy:{type:String,default:"deepEquals"},metaKeySelection:{type:Boolean,default:!1},contextMenu:{type:Boolean,default:!1},contextMenuSelection:{type:Object,default:null},selectAll:{type:Boolean,default:null},rowHover:{type:Boolean,default:!1},csvSeparator:{type:String,default:","},exportFilename:{type:String,default:"download"},exportFunction:{type:Function,default:null},resizableColumns:{type:Boolean,default:!1},columnResizeMode:{type:String,default:"fit"},reorderableColumns:{type:Boolean,default:!1},expandedRows:{type:[Array,Object],default:null},expandedRowIcon:{type:String,default:void 0},collapsedRowIcon:{type:String,default:void 0},rowGroupMode:{type:String,default:null},groupRowsBy:{type:[Array,String,Function],default:null},expandableRowGroups:{type:Boolean,default:!1},expandedRowGroups:{type:Array,default:null},stateStorage:{type:String,default:"session"},stateKey:{type:String,default:null},editMode:{type:String,default:null},editingRows:{type:Array,default:null},rowClass:{type:[String,Object],default:null},rowStyle:{type:Object,default:null},scrollable:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},scrollHeight:{type:String,default:null},frozenValue:{type:Array,default:null},responsiveLayout:{type:String,default:"scroll"},breakpoint:{type:String,default:"960px"},showGridlines:{type:Boolean,default:!1},stripedRows:{type:Boolean,default:!1},highlightOnSelect:{type:Boolean,default:!1},size:{type:String,default:null},tableStyle:{type:null,default:null},tableClass:{type:[String,Object],default:null},tableProps:{type:Object,default:null},filterInputProps:{type:null,default:null}},style:ID,provide:function(){return{$parentInstance:this}}},x5={name:"RowCheckbox",hostName:"DataTable",extends:re,emits:["change"],props:{value:null,checked:null,column:null,rowCheckboxIconTemplate:{type:Function,default:null},index:{type:Number,default:null}},methods:{getColumnPT:function(e){var n={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,checked:this.checked,disabled:this.$attrs.disabled}};return a.mergeProps(this.ptm("column.".concat(e),{column:n}),this.ptm("column.".concat(e),n),this.ptmo(this.getColumnProp(),e,n))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onChange:function(e){this.$attrs.disabled||this.$emit("change",{originalEvent:e,data:this.value})}},computed:{checkboxAriaLabel:function(){return this.$primevue.config.locale.aria?this.checked?this.$primevue.config.locale.aria.selectRow:this.$primevue.config.locale.aria.unselectRow:void 0}},components:{CheckIcon:Wo,Checkbox:hu}};function LA(t,e,n,r,o,i){var s=a.resolveComponent("CheckIcon"),l=a.resolveComponent("Checkbox");return a.openBlock(),a.createBlock(l,{modelValue:n.checked,binary:!0,disabled:t.$attrs.disabled,"aria-label":i.checkboxAriaLabel,onChange:i.onChange,unstyled:t.unstyled,pt:i.getColumnPT("rowCheckbox")},{icon:a.withCtx(function(c){return[n.rowCheckboxIconTemplate?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.rowCheckboxIconTemplate),{key:0,checked:c.checked,class:a.normalizeClass(c.class)},null,8,["checked","class"])):!n.rowCheckboxIconTemplate&&c.checked?(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:c.class},i.getColumnPT("rowCheckbox.icon")),null,16,["class"])):a.createCommentVNode("",!0)]}),_:1},8,["modelValue","disabled","aria-label","onChange","unstyled","pt"])}x5.render=LA;var P5={name:"RowRadioButton",hostName:"DataTable",extends:re,emits:["change"],props:{value:null,checked:null,name:null,column:null,index:{type:Number,default:null}},methods:{getColumnPT:function(e){var n={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,checked:this.checked,disabled:this.$attrs.disabled}};return a.mergeProps(this.ptm("column.".concat(e),{column:n}),this.ptm("column.".concat(e),n),this.ptmo(this.getColumnProp(),e,n))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onChange:function(e){this.$attrs.disabled||this.$emit("change",{originalEvent:e,data:this.value})}},components:{RadioButton:C5}};function VA(t,e,n,r,o,i){var s=a.resolveComponent("RadioButton");return a.openBlock(),a.createBlock(s,{modelValue:n.checked,binary:!0,disabled:t.$attrs.disabled,name:n.name,onChange:i.onChange,unstyled:t.unstyled,pt:i.getColumnPT("rowRadiobutton")},null,8,["modelValue","disabled","name","onChange","unstyled","pt"])}P5.render=VA;var D5={name:"BodyCell",hostName:"DataTable",extends:re,emits:["cell-edit-init","cell-edit-complete","cell-edit-cancel","row-edit-init","row-edit-save","row-edit-cancel","row-toggle","radio-change","checkbox-change","editing-meta-change"],props:{rowData:{type:Object,default:null},column:{type:Object,default:null},frozenRow:{type:Boolean,default:!1},rowIndex:{type:Number,default:null},index:{type:Number,default:null},isRowExpanded:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},editing:{type:Boolean,default:!1},editingMeta:{type:Object,default:null},editMode:{type:String,default:null},responsiveLayout:{type:String,default:"stack"},virtualScrollerContentProps:{type:Object,default:null},ariaControls:{type:String,default:null},name:{type:String,default:null},expandedRowIcon:{type:String,default:null},collapsedRowIcon:{type:String,default:null}},documentEditListener:null,selfClick:!1,overlayEventListener:null,data:function(){return{d_editing:this.editing,styleObject:{}}},watch:{editing:function(e){this.d_editing=e},"$data.d_editing":function(e){this.$emit("editing-meta-change",{data:this.rowData,field:this.field||"field_".concat(this.index),index:this.rowIndex,editing:e})}},mounted:function(){this.columnProp("frozen")&&this.updateStickyPosition()},updated:function(){var e=this;this.columnProp("frozen")&&this.updateStickyPosition(),this.d_editing&&(this.editMode==="cell"||this.editMode==="row"&&this.columnProp("rowEditor"))&&setTimeout(function(){var n=O.getFirstFocusableElement(e.$el);n&&n.focus()},1)},beforeUnmount:function(){this.overlayEventListener&&(lr.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null)},methods:{columnProp:function(e){return M.getVNodeProp(this.column,e)},getColumnPT:function(e){var n,r,o={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,size:(n=this.$parentInstance)===null||n===void 0||(n=n.$parentInstance)===null||n===void 0?void 0:n.size,showGridlines:(r=this.$parentInstance)===null||r===void 0||(r=r.$parentInstance)===null||r===void 0?void 0:r.showGridlines}};return a.mergeProps(this.ptm("column.".concat(e),{column:o}),this.ptm("column.".concat(e),o),this.ptmo(this.getColumnProp(),e,o))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},resolveFieldData:function(){return M.resolveFieldData(this.rowData,this.field)},toggleRow:function(e){this.$emit("row-toggle",{originalEvent:e,data:this.rowData})},toggleRowWithRadio:function(e,n){this.$emit("radio-change",{originalEvent:e.originalEvent,index:n,data:e.data})},toggleRowWithCheckbox:function(e,n){this.$emit("checkbox-change",{originalEvent:e.originalEvent,index:n,data:e.data})},isEditable:function(){return this.column.children&&this.column.children.editor!=null},bindDocumentEditListener:function(){var e=this;this.documentEditListener||(this.documentEditListener=function(n){e.selfClick||e.completeEdit(n,"outside"),e.selfClick=!1},document.addEventListener("click",this.documentEditListener))},unbindDocumentEditListener:function(){this.documentEditListener&&(document.removeEventListener("click",this.documentEditListener),this.documentEditListener=null,this.selfClick=!1)},switchCellToViewMode:function(){this.d_editing=!1,this.unbindDocumentEditListener(),lr.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null},onClick:function(e){var n=this;this.editMode==="cell"&&this.isEditable()&&(this.selfClick=!0,this.d_editing||(this.d_editing=!0,this.bindDocumentEditListener(),this.$emit("cell-edit-init",{originalEvent:e,data:this.rowData,field:this.field,index:this.rowIndex}),this.overlayEventListener=function(r){n.$el&&n.$el.contains(r.target)&&(n.selfClick=!0)},lr.on("overlay-click",this.overlayEventListener)))},completeEdit:function(e,n){var r={originalEvent:e,data:this.rowData,newData:this.editingRowData,value:this.rowData[this.field],newValue:this.editingRowData[this.field],field:this.field,index:this.rowIndex,type:n,defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0}};this.$emit("cell-edit-complete",r),r.defaultPrevented||this.switchCellToViewMode()},onKeyDown:function(e){if(this.editMode==="cell")switch(e.code){case"Enter":case"NumpadEnter":this.completeEdit(e,"enter");break;case"Escape":this.switchCellToViewMode(),this.$emit("cell-edit-cancel",{originalEvent:e,data:this.rowData,field:this.field,index:this.rowIndex});break;case"Tab":this.completeEdit(e,"tab"),e.shiftKey?this.moveToPreviousCell(e):this.moveToNextCell(e);break}},moveToPreviousCell:function(e){var n=this.findCell(e.target),r=this.findPreviousEditableColumn(n);r&&(O.invokeElementMethod(r,"click"),e.preventDefault())},moveToNextCell:function(e){var n=this.findCell(e.target),r=this.findNextEditableColumn(n);r&&(O.invokeElementMethod(r,"click"),e.preventDefault())},findCell:function(e){if(e){for(var n=e;n&&!O.getAttribute(n,"data-p-cell-editing");)n=n.parentElement;return n}else return null},findPreviousEditableColumn:function(e){var n=e.previousElementSibling;if(!n){var r=e.parentElement.previousElementSibling;r&&(n=r.lastElementChild)}return n?O.getAttribute(n,"data-p-editable-column")?n:this.findPreviousEditableColumn(n):null},findNextEditableColumn:function(e){var n=e.nextElementSibling;if(!n){var r=e.parentElement.nextElementSibling;r&&(n=r.firstElementChild)}return n?O.getAttribute(n,"data-p-editable-column")?n:this.findNextEditableColumn(n):null},onRowEditInit:function(e){this.$emit("row-edit-init",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},onRowEditSave:function(e){this.$emit("row-edit-save",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},onRowEditCancel:function(e){this.$emit("row-edit-cancel",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},editorInitCallback:function(e){this.$emit("row-edit-init",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},editorSaveCallback:function(e){this.editMode==="row"?this.$emit("row-edit-save",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex}):this.completeEdit(e,"enter")},editorCancelCallback:function(e){this.editMode==="row"?this.$emit("row-edit-cancel",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex}):(this.switchCellToViewMode(),this.$emit("cell-edit-cancel",{originalEvent:e,data:this.rowData,field:this.field,index:this.rowIndex}))},updateStickyPosition:function(){if(this.columnProp("frozen")){var e=this.columnProp("alignFrozen");if(e==="right"){var n=0,r=O.getNextElementSibling(this.$el,'[data-p-frozen-column="true"]');r&&(n=O.getOuterWidth(r)+parseFloat(r.style.right||0)),this.styleObject.right=n+"px"}else{var o=0,i=O.getPreviousElementSibling(this.$el,'[data-p-frozen-column="true"]');i&&(o=O.getOuterWidth(i)+parseFloat(i.style.left||0)),this.styleObject.left=o+"px"}}},getVirtualScrollerProp:function(e){return this.virtualScrollerContentProps?this.virtualScrollerContentProps[e]:null}},computed:{editingRowData:function(){return this.editingMeta[this.rowIndex]?this.editingMeta[this.rowIndex].data:this.rowData},field:function(){return this.columnProp("field")},containerClass:function(){return[this.columnProp("bodyClass"),this.columnProp("class"),this.cx("bodyCell")]},containerStyle:function(){var e=this.columnProp("bodyStyle"),n=this.columnProp("style");return this.columnProp("frozen")?[n,e,this.styleObject]:[n,e]},loading:function(){return this.getVirtualScrollerProp("loading")},loadingOptions:function(){var e=this.getVirtualScrollerProp("getLoaderOptions");return e&&e(this.rowIndex,{cellIndex:this.index,cellFirst:this.index===0,cellLast:this.index===this.getVirtualScrollerProp("columns").length-1,cellEven:this.index%2===0,cellOdd:this.index%2!==0,column:this.column,field:this.field})},expandButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.isRowExpanded?this.$primevue.config.locale.aria.expandRow:this.$primevue.config.locale.aria.collapseRow:void 0},initButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.editRow:void 0},saveButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.saveEdit:void 0},cancelButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.cancelEdit:void 0}},components:{DTRadioButton:P5,DTCheckbox:x5,ChevronDownIcon:Sl,ChevronRightIcon:fu,BarsIcon:w5,PencilIcon:v5,CheckIcon:Wo,TimesIcon:ou},directives:{ripple:Mn}};function Ps(t){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ps(t)}function A5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ol(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?A5(Object(n),!0).forEach(function(r){$A(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $A(t,e,n){return e=FA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function FA(t){var e=HA(t,"string");return Ps(e)=="symbol"?e:String(e)}function HA(t,e){if(Ps(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var _A=["colspan","rowspan","data-p-selection-column","data-p-editable-column","data-p-cell-editing","data-p-frozen-column"],zA=["aria-expanded","aria-controls","aria-label"],jA=["aria-label"],ZA=["aria-label"],WA=["aria-label"];function UA(t,e,n,r,o,i){var s=a.resolveComponent("DTRadioButton"),l=a.resolveComponent("DTCheckbox"),c=a.resolveComponent("BarsIcon"),u=a.resolveComponent("ChevronDownIcon"),d=a.resolveComponent("ChevronRightIcon"),f=a.resolveDirective("ripple");return i.loading?(a.openBlock(),a.createElementBlock("td",a.mergeProps({key:0,style:i.containerStyle,class:i.containerClass,role:"cell"},Ol(Ol({},i.getColumnPT("root")),i.getColumnPT("bodyCell"))),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.loading),{data:n.rowData,column:n.column,field:i.field,index:n.rowIndex,frozenRow:n.frozenRow,loadingOptions:i.loadingOptions},null,8,["data","column","field","index","frozenRow","loadingOptions"]))],16)):(a.openBlock(),a.createElementBlock("td",a.mergeProps({key:1,style:i.containerStyle,class:i.containerClass,colspan:i.columnProp("colspan"),rowspan:i.columnProp("rowspan"),onClick:e[6]||(e[6]=function(){return i.onClick&&i.onClick.apply(i,arguments)}),onKeydown:e[7]||(e[7]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)}),role:"cell"},Ol(Ol({},i.getColumnPT("root")),i.getColumnPT("bodyCell")),{"data-p-selection-column":i.columnProp("selectionMode")!=null,"data-p-editable-column":i.isEditable(),"data-p-cell-editing":o.d_editing,"data-p-frozen-column":i.columnProp("frozen")}),[n.responsiveLayout==="stack"?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:t.cx("columnTitle")},i.getColumnPT("columnTitle")),a.toDisplayString(i.columnProp("header")),17)):a.createCommentVNode("",!0),n.column.children&&n.column.children.body&&!o.d_editing?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.body),{key:1,data:n.rowData,column:n.column,field:i.field,index:n.rowIndex,frozenRow:n.frozenRow,editorInitCallback:i.editorInitCallback,rowTogglerCallback:i.toggleRow},null,8,["data","column","field","index","frozenRow","editorInitCallback","rowTogglerCallback"])):n.column.children&&n.column.children.editor&&o.d_editing?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.editor),{key:2,data:i.editingRowData,column:n.column,field:i.field,index:n.rowIndex,frozenRow:n.frozenRow,editorSaveCallback:i.editorSaveCallback,editorCancelCallback:i.editorCancelCallback},null,8,["data","column","field","index","frozenRow","editorSaveCallback","editorCancelCallback"])):n.column.children&&n.column.children.body&&!n.column.children.editor&&o.d_editing?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.body),{key:3,data:i.editingRowData,column:n.column,field:i.field,index:n.rowIndex,frozenRow:n.frozenRow},null,8,["data","column","field","index","frozenRow"])):i.columnProp("selectionMode")?(a.openBlock(),a.createElementBlock(a.Fragment,{key:4},[i.columnProp("selectionMode")==="single"?(a.openBlock(),a.createBlock(s,{key:0,value:n.rowData,name:n.name,checked:n.selected,onChange:e[0]||(e[0]=function(p){return i.toggleRowWithRadio(p,n.rowIndex)}),column:n.column,index:n.index,unstyled:t.unstyled,pt:t.pt},null,8,["value","name","checked","column","index","unstyled","pt"])):i.columnProp("selectionMode")==="multiple"?(a.openBlock(),a.createBlock(l,{key:1,value:n.rowData,checked:n.selected,rowCheckboxIconTemplate:n.column.children&&n.column.children.rowcheckboxicon,"aria-selected":n.selected?!0:void 0,onChange:e[1]||(e[1]=function(p){return i.toggleRowWithCheckbox(p,n.rowIndex)}),column:n.column,index:n.index,unstyled:t.unstyled,pt:t.pt},null,8,["value","checked","rowCheckboxIconTemplate","aria-selected","column","index","unstyled","pt"])):a.createCommentVNode("",!0)],64)):i.columnProp("rowReorder")?(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[n.column.children&&n.column.children.rowreordericon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.rowreordericon),{key:0,class:a.normalizeClass(t.cx("rowReorderIcon"))},null,8,["class"])):i.columnProp("rowReorderIcon")?(a.openBlock(),a.createElementBlock("i",a.mergeProps({key:1,class:[t.cx("rowReorderIcon"),i.columnProp("rowReorderIcon")]},i.getColumnPT("rowReorderIcon")),null,16)):(a.openBlock(),a.createBlock(c,a.mergeProps({key:2,class:t.cx("rowReorderIcon")},i.getColumnPT("rowReorderIcon")),null,16,["class"]))],64)):i.columnProp("expander")?a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:6,class:t.cx("rowToggler"),type:"button","aria-expanded":n.isRowExpanded,"aria-controls":n.ariaControls,"aria-label":i.expandButtonAriaLabel,onClick:e[2]||(e[2]=function(){return i.toggleRow&&i.toggleRow.apply(i,arguments)})},i.getColumnPT("rowToggler"),{"data-pc-group-section":"rowactionbutton"}),[n.column.children&&n.column.children.rowtogglericon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.rowtogglericon),{key:0,class:a.normalizeClass(t.cx("rowTogglerIcon")),rowExpanded:n.isRowExpanded},null,8,["class","rowExpanded"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[n.isRowExpanded&&n.expandedRowIcon?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass([t.cx("rowTogglerIcon"),n.expandedRowIcon])},null,2)):n.isRowExpanded&&!n.expandedRowIcon?(a.openBlock(),a.createBlock(u,a.mergeProps({key:1,class:t.cx("rowTogglerIcon")},i.getColumnPT("rowTogglerIcon")),null,16,["class"])):!n.isRowExpanded&&n.collapsedRowIcon?(a.openBlock(),a.createElementBlock("span",{key:2,class:a.normalizeClass([t.cx("rowTogglerIcon"),n.collapsedRowIcon])},null,2)):!n.isRowExpanded&&!n.collapsedRowIcon?(a.openBlock(),a.createBlock(d,a.mergeProps({key:3,class:t.cx("rowTogglerIcon")},i.getColumnPT("rowTogglerIcon")),null,16,["class"])):a.createCommentVNode("",!0)],64))],16,zA)),[[f]]):n.editMode==="row"&&i.columnProp("rowEditor")?(a.openBlock(),a.createElementBlock(a.Fragment,{key:7},[o.d_editing?a.createCommentVNode("",!0):a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:0,class:t.cx("rowEditorInitButton"),type:"button","aria-label":i.initButtonAriaLabel,onClick:e[3]||(e[3]=function(){return i.onRowEditInit&&i.onRowEditInit.apply(i,arguments)})},i.getColumnPT("rowEditorInitButton"),{"data-pc-group-section":"rowactionbutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children&&n.column.children.roweditoriniticon||"PencilIcon"),a.mergeProps({class:t.cx("rowEditorInitIcon")},i.getColumnPT("rowEditorInitIcon")),null,16,["class"]))],16,jA)),[[f]]),o.d_editing?a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:1,class:t.cx("rowEditorSaveButton"),type:"button","aria-label":i.saveButtonAriaLabel,onClick:e[4]||(e[4]=function(){return i.onRowEditSave&&i.onRowEditSave.apply(i,arguments)})},i.getColumnPT("rowEditorSaveButton"),{"data-pc-group-section":"rowactionbutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children&&n.column.children.roweditorsaveicon||"CheckIcon"),a.mergeProps({class:t.cx("rowEditorSaveIcon")},i.getColumnPT("rowEditorSaveIcon")),null,16,["class"]))],16,ZA)),[[f]]):a.createCommentVNode("",!0),o.d_editing?a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:2,class:t.cx("rowEditorCancelButton"),type:"button","aria-label":i.cancelButtonAriaLabel,onClick:e[5]||(e[5]=function(){return i.onRowEditCancel&&i.onRowEditCancel.apply(i,arguments)})},i.getColumnPT("rowEditorCancelButton"),{"data-pc-group-section":"rowactionbutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children&&n.column.children.roweditorcancelicon||"TimesIcon"),a.mergeProps({class:t.cx("rowEditorCancelIcon")},i.getColumnPT("rowEditorCancelIcon")),null,16,["class"]))],16,WA)),[[f]]):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:8},[a.createTextVNode(a.toDisplayString(i.resolveFieldData()),1)],64))],16,_A))}D5.render=UA;function Ds(t){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ds(t)}function KA(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=GA(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
197
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function GA(t,e){if(t){if(typeof t=="string")return I5(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I5(t,e)}}function I5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function N5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function B5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?N5(Object(n),!0).forEach(function(r){qA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qA(t,e,n){return e=YA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YA(t){var e=JA(t,"string");return Ds(e)=="symbol"?e:String(e)}function JA(t,e){if(Ds(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var R5={name:"BodyRow",hostName:"DataTable",extends:re,emits:["rowgroup-toggle","row-click","row-dblclick","row-rightclick","row-touchend","row-keydown","row-mousedown","row-dragstart","row-dragover","row-dragleave","row-dragend","row-drop","row-toggle","radio-change","checkbox-change","cell-edit-init","cell-edit-complete","cell-edit-cancel","row-edit-init","row-edit-save","row-edit-cancel","editing-meta-change"],props:{rowData:{type:Object,default:null},index:{type:Number,default:0},value:{type:Array,default:null},columns:{type:null,default:null},frozenRow:{type:Boolean,default:!1},empty:{type:Boolean,default:!1},rowGroupMode:{type:String,default:null},groupRowsBy:{type:[Array,String,Function],default:null},expandableRowGroups:{type:Boolean,default:!1},expandedRowGroups:{type:Array,default:null},first:{type:Number,default:0},dataKey:{type:[String,Function],default:null},expandedRowIcon:{type:String,default:null},collapsedRowIcon:{type:String,default:null},expandedRows:{type:[Array,Object],default:null},selection:{type:[Array,Object],default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},contextMenu:{type:Boolean,default:!1},contextMenuSelection:{type:Object,default:null},rowClass:{type:null,default:null},rowStyle:{type:null,default:null},rowGroupHeaderStyle:{type:null,default:null},editMode:{type:String,default:null},compareSelectionBy:{type:String,default:"deepEquals"},editingRows:{type:Array,default:null},editingRowKeys:{type:null,default:null},editingMeta:{type:Object,default:null},templates:{type:null,default:null},scrollable:{type:Boolean,default:!1},responsiveLayout:{type:String,default:"stack"},virtualScrollerContentProps:{type:Object,default:null},isVirtualScrollerDisabled:{type:Boolean,default:!1},expandedRowId:{type:String,default:null},nameAttributeSelector:{type:String,default:null}},data:function(){return{d_rowExpanded:!1}},watch:{expandedRows:{immediate:!0,handler:function(e){var n=this;this.d_rowExpanded=this.dataKey?(e==null?void 0:e[M.resolveFieldData(this.rowData,this.dataKey)])!==void 0:e==null?void 0:e.some(function(r){return n.equals(n.rowData,r)})}}},methods:{columnProp:function(e,n){return M.getVNodeProp(e,n)},getColumnPT:function(e){var n={parent:{instance:this,props:this.$props,state:this.$data}};return a.mergeProps(this.ptm("column.".concat(e),{column:n}),this.ptm("column.".concat(e),n),this.ptmo(this.columnProp({},"pt"),e,n))},getBodyRowPTOptions:function(e){var n,r=(n=this.$parentInstance)===null||n===void 0?void 0:n.$parentInstance;return this.ptm(e,{context:{index:this.rowIndex,selectable:(r==null?void 0:r.rowHover)||(r==null?void 0:r.selectionMode),selected:this.isSelected,stripedRows:(r==null?void 0:r.stripedRows)||!1}})},shouldRenderBodyCell:function(e){var n=this.columnProp(e,"hidden");if(this.rowGroupMode&&!n){var r=this.columnProp(e,"field");if(this.rowGroupMode==="subheader")return this.groupRowsBy!==r;if(this.rowGroupMode==="rowspan")if(this.isGrouped(e)){var o=this.value[this.rowIndex-1];if(o){var i=M.resolveFieldData(this.value[this.rowIndex],r),s=M.resolveFieldData(o,r);return i!==s}else return!0}else return!0}else return!n},calculateRowGroupSize:function(e){if(this.isGrouped(e)){for(var n=this.rowIndex,r=this.columnProp(e,"field"),o=M.resolveFieldData(this.value[n],r),i=o,s=0;o===i;){s++;var l=this.value[++n];if(l)i=M.resolveFieldData(l,r);else break}return s===1?null:s}else return null},isGrouped:function(e){var n=this.columnProp(e,"field");return this.groupRowsBy&&n?Array.isArray(this.groupRowsBy)?this.groupRowsBy.indexOf(n)>-1:this.groupRowsBy===n:!1},findIndexInSelection:function(e){return this.findIndex(e,this.selection)},findIndex:function(e,n){var r=-1;if(n&&n.length){for(var o=0;o<n.length;o++)if(this.equals(e,n[o])){r=o;break}}return r},equals:function(e,n){return this.compareSelectionBy==="equals"?e===n:M.equals(e,n,this.dataKey)},onRowGroupToggle:function(e){this.$emit("rowgroup-toggle",{originalEvent:e,data:this.rowData})},onRowClick:function(e){this.$emit("row-click",{originalEvent:e,data:this.rowData,index:this.rowIndex})},onRowDblClick:function(e){this.$emit("row-dblclick",{originalEvent:e,data:this.rowData,index:this.rowIndex})},onRowRightClick:function(e){this.$emit("row-rightclick",{originalEvent:e,data:this.rowData,index:this.rowIndex})},onRowTouchEnd:function(e){this.$emit("row-touchend",e)},onRowKeyDown:function(e){this.$emit("row-keydown",{originalEvent:e,data:this.rowData,index:this.rowIndex})},onRowMouseDown:function(e){this.$emit("row-mousedown",e)},onRowDragStart:function(e){this.$emit("row-dragstart",{originalEvent:e,index:this.rowIndex})},onRowDragOver:function(e){this.$emit("row-dragover",{originalEvent:e,index:this.rowIndex})},onRowDragLeave:function(e){this.$emit("row-dragleave",e)},onRowDragEnd:function(e){this.$emit("row-dragend",e)},onRowDrop:function(e){this.$emit("row-drop",e)},onRowToggle:function(e){this.d_rowExpanded=!this.d_rowExpanded,this.$emit("row-toggle",B5(B5({},e),{},{expanded:this.d_rowExpanded}))},onRadioChange:function(e){this.$emit("radio-change",e)},onCheckboxChange:function(e){this.$emit("checkbox-change",e)},onCellEditInit:function(e){this.$emit("cell-edit-init",e)},onCellEditComplete:function(e){this.$emit("cell-edit-complete",e)},onCellEditCancel:function(e){this.$emit("cell-edit-cancel",e)},onRowEditInit:function(e){this.$emit("row-edit-init",e)},onRowEditSave:function(e){this.$emit("row-edit-save",e)},onRowEditCancel:function(e){this.$emit("row-edit-cancel",e)},onEditingMetaChange:function(e){this.$emit("editing-meta-change",e)},getVirtualScrollerProp:function(e,n){return n=n||this.virtualScrollerContentProps,n?n[e]:null}},computed:{rowIndex:function(){var e=this.getVirtualScrollerProp("getItemOptions");return e?e(this.index).index:this.index},rowStyles:function(){var e;return(e=this.rowStyle)===null||e===void 0?void 0:e.call(this,this.rowData)},rowClasses:function(){var e=[],n=null;if(this.rowClass){var r=this.rowClass(this.rowData);r&&e.push(r)}if(this.columns){var o=KA(this.columns),i;try{for(o.s();!(i=o.n()).done;){var s=i.value,l=this.columnProp(s,"selectionMode");if(M.isNotEmpty(l)&&l==="multiple"){n=l;break}}}catch(c){o.e(c)}finally{o.f()}}return[this.cx("row",{rowData:this.rowData,index:this.rowIndex,columnSelectionMode:n}),e]},rowTabindex:function(){return this.selection===null&&(this.selectionMode==="single"||this.selectionMode==="multiple")&&this.rowIndex===0?0:-1},isRowEditing:function(){return this.rowData&&this.editingRows?this.dataKey?this.editingRowKeys?this.editingRowKeys[M.resolveFieldData(this.rowData,this.dataKey)]!==void 0:!1:this.findIndex(this.rowData,this.editingRows)>-1:!1},isRowGroupExpanded:function(){if(this.expandableRowGroups&&this.expandedRowGroups){var e=M.resolveFieldData(this.rowData,this.groupRowsBy);return this.expandedRowGroups.indexOf(e)>-1}return!1},isSelected:function(){return this.rowData&&this.selection?this.dataKey?this.selectionKeys?this.selectionKeys[M.resolveFieldData(this.rowData,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(this.rowData)>-1:this.equals(this.rowData,this.selection):!1},isSelectedWithContextMenu:function(){return this.rowData&&this.contextMenuSelection?this.equals(this.rowData,this.contextMenuSelection,this.dataKey):!1},shouldRenderRowGroupHeader:function(){var e=M.resolveFieldData(this.rowData,this.groupRowsBy),n=this.value[this.rowIndex-1];if(n){var r=M.resolveFieldData(n,this.groupRowsBy);return e!==r}else return!0},shouldRenderRowGroupFooter:function(){if(this.expandableRowGroups&&!this.isRowGroupExpanded)return!1;var e=M.resolveFieldData(this.rowData,this.groupRowsBy),n=this.value[this.rowIndex+1];if(n){var r=M.resolveFieldData(n,this.groupRowsBy);return e!==r}else return!0},columnsLength:function(){var e=this;if(this.columns){var n=0;return this.columns.forEach(function(r){e.columnProp(r,"selectionMode")==="single"&&n--,e.columnProp(r,"hidden")&&n++}),this.columns.length-n}return 0}},components:{DTBodyCell:D5,ChevronDownIcon:Sl,ChevronRightIcon:fu}};function As(t){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(t)}function L5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ur(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?L5(Object(n),!0).forEach(function(r){QA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QA(t,e,n){return e=XA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function XA(t){var e=eI(t,"string");return As(e)=="symbol"?e:String(e)}function eI(t,e){if(As(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(As(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var tI=["colspan"],nI=["tabindex","aria-selected","data-p-index","data-p-selectable-row","data-p-highlight","data-p-highlight-contextmenu"],rI=["id"],oI=["colspan"],iI=["colspan"],sI=["colspan"];function aI(t,e,n,r,o,i){var s=a.resolveComponent("ChevronDownIcon"),l=a.resolveComponent("ChevronRightIcon"),c=a.resolveComponent("DTBodyCell");return n.empty?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:1,class:t.cx("emptyMessage"),role:"row"},t.ptm("emptyMessage")),[a.createElementVNode("td",a.mergeProps({colspan:i.columnsLength},ur(ur({},i.getColumnPT("bodycell")),t.ptm("emptyMessageCell"))),[n.templates.empty?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.empty),{key:0})):a.createCommentVNode("",!0)],16,sI)],16)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[n.templates.groupheader&&n.rowGroupMode==="subheader"&&i.shouldRenderRowGroupHeader?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:0,class:t.cx("rowGroupHeader"),style:n.rowGroupHeaderStyle,role:"row"},t.ptm("rowGroupHeader")),[a.createElementVNode("td",a.mergeProps({colspan:i.columnsLength-1},ur(ur({},i.getColumnPT("bodycell")),t.ptm("rowGroupHeaderCell"))),[n.expandableRowGroups?(a.openBlock(),a.createElementBlock("button",a.mergeProps({key:0,class:t.cx("rowGroupToggler"),onClick:e[0]||(e[0]=function(){return i.onRowGroupToggle&&i.onRowGroupToggle.apply(i,arguments)}),type:"button"},t.ptm("rowGroupToggler")),[n.templates.rowgrouptogglericon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.rowgrouptogglericon),{key:0,expanded:i.isRowGroupExpanded},null,8,["expanded"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[i.isRowGroupExpanded&&n.expandedRowIcon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:[t.cx("rowGroupTogglerIcon"),n.expandedRowIcon]},t.ptm("rowGroupTogglerIcon")),null,16)):i.isRowGroupExpanded&&!n.expandedRowIcon?(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:t.cx("rowGroupTogglerIcon")},t.ptm("rowGroupTogglerIcon")),null,16,["class"])):!i.isRowGroupExpanded&&n.collapsedRowIcon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:[t.cx("rowGroupTogglerIcon"),n.collapsedRowIcon]},t.ptm("rowGroupTogglerIcon")),null,16)):!i.isRowGroupExpanded&&!n.collapsedRowIcon?(a.openBlock(),a.createBlock(l,a.mergeProps({key:3,class:t.cx("rowGroupTogglerIcon")},t.ptm("rowGroupTogglerIcon")),null,16,["class"])):a.createCommentVNode("",!0)],64))],16)):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.groupheader),{data:n.rowData,index:i.rowIndex},null,8,["data","index"]))],16,tI)],16)):a.createCommentVNode("",!0),!n.expandableRowGroups||i.isRowGroupExpanded?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:1,class:i.rowClasses,style:i.rowStyles,tabindex:i.rowTabindex,role:"row","aria-selected":n.selectionMode?i.isSelected:null,onClick:e[1]||(e[1]=function(){return i.onRowClick&&i.onRowClick.apply(i,arguments)}),onDblclick:e[2]||(e[2]=function(){return i.onRowDblClick&&i.onRowDblClick.apply(i,arguments)}),onContextmenu:e[3]||(e[3]=function(){return i.onRowRightClick&&i.onRowRightClick.apply(i,arguments)}),onTouchend:e[4]||(e[4]=function(){return i.onRowTouchEnd&&i.onRowTouchEnd.apply(i,arguments)}),onKeydown:e[5]||(e[5]=a.withModifiers(function(){return i.onRowKeyDown&&i.onRowKeyDown.apply(i,arguments)},["self"])),onMousedown:e[6]||(e[6]=function(){return i.onRowMouseDown&&i.onRowMouseDown.apply(i,arguments)}),onDragstart:e[7]||(e[7]=function(){return i.onRowDragStart&&i.onRowDragStart.apply(i,arguments)}),onDragover:e[8]||(e[8]=function(){return i.onRowDragOver&&i.onRowDragOver.apply(i,arguments)}),onDragleave:e[9]||(e[9]=function(){return i.onRowDragLeave&&i.onRowDragLeave.apply(i,arguments)}),onDragend:e[10]||(e[10]=function(){return i.onRowDragEnd&&i.onRowDragEnd.apply(i,arguments)}),onDrop:e[11]||(e[11]=function(){return i.onRowDrop&&i.onRowDrop.apply(i,arguments)})},i.getBodyRowPTOptions("bodyRow"),{"data-p-index":i.rowIndex,"data-p-selectable-row":!!n.selectionMode,"data-p-highlight":n.selection&&i.isSelected,"data-p-highlight-contextmenu":n.contextMenuSelection&&i.isSelectedWithContextMenu}),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.columns,function(u,d){return a.openBlock(),a.createElementBlock(a.Fragment,null,[i.shouldRenderBodyCell(u)?(a.openBlock(),a.createBlock(c,{key:i.columnProp(u,"columnKey")||i.columnProp(u,"field")||d,rowData:n.rowData,column:u,rowIndex:i.rowIndex,index:d,selected:i.isSelected,frozenRow:n.frozenRow,rowspan:n.rowGroupMode==="rowspan"?i.calculateRowGroupSize(u):null,editMode:n.editMode,editing:n.editMode==="row"&&i.isRowEditing,editingMeta:n.editingMeta,responsiveLayout:n.responsiveLayout,virtualScrollerContentProps:n.virtualScrollerContentProps,ariaControls:n.expandedRowId+"_"+i.rowIndex+"_expansion",name:n.nameAttributeSelector,isRowExpanded:o.d_rowExpanded,expandedRowIcon:n.expandedRowIcon,collapsedRowIcon:n.collapsedRowIcon,onRadioChange:i.onRadioChange,onCheckboxChange:i.onCheckboxChange,onRowToggle:i.onRowToggle,onCellEditInit:i.onCellEditInit,onCellEditComplete:i.onCellEditComplete,onCellEditCancel:i.onCellEditCancel,onRowEditInit:i.onRowEditInit,onRowEditSave:i.onRowEditSave,onRowEditCancel:i.onRowEditCancel,onEditingMetaChange:i.onEditingMetaChange,unstyled:t.unstyled,pt:t.pt},null,8,["rowData","column","rowIndex","index","selected","frozenRow","rowspan","editMode","editing","editingMeta","responsiveLayout","virtualScrollerContentProps","ariaControls","name","isRowExpanded","expandedRowIcon","collapsedRowIcon","onRadioChange","onCheckboxChange","onRowToggle","onCellEditInit","onCellEditComplete","onCellEditCancel","onRowEditInit","onRowEditSave","onRowEditCancel","onEditingMetaChange","unstyled","pt"])):a.createCommentVNode("",!0)],64)}),256))],16,nI)):a.createCommentVNode("",!0),n.templates.expansion&&n.expandedRows&&o.d_rowExpanded?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:2,id:n.expandedRowId+"_"+i.rowIndex+"_expansion",class:t.cx("rowExpansion"),role:"row"},t.ptm("rowExpansion")),[a.createElementVNode("td",a.mergeProps({colspan:i.columnsLength},ur(ur({},i.getColumnPT("bodycell")),t.ptm("rowExpansionCell"))),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.expansion),{data:n.rowData,index:i.rowIndex},null,8,["data","index"]))],16,oI)],16,rI)):a.createCommentVNode("",!0),n.templates.groupfooter&&n.rowGroupMode==="subheader"&&i.shouldRenderRowGroupFooter?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:3,class:t.cx("rowGroupFooter"),role:"row"},t.ptm("rowGroupFooter")),[a.createElementVNode("td",a.mergeProps({colspan:i.columnsLength-1},ur(ur({},i.getColumnPT("bodycell")),t.ptm("rowGroupFooterCell"))),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.groupfooter),{data:n.rowData,index:i.rowIndex},null,8,["data","index"]))],16,iI)],16)):a.createCommentVNode("",!0)],64))}R5.render=aI;var V5={name:"TableBody",hostName:"DataTable",extends:re,emits:["rowgroup-toggle","row-click","row-dblclick","row-rightclick","row-touchend","row-keydown","row-mousedown","row-dragstart","row-dragover","row-dragleave","row-dragend","row-drop","row-toggle","radio-change","checkbox-change","cell-edit-init","cell-edit-complete","cell-edit-cancel","row-edit-init","row-edit-save","row-edit-cancel","editing-meta-change"],props:{value:{type:Array,default:null},columns:{type:null,default:null},frozenRow:{type:Boolean,default:!1},empty:{type:Boolean,default:!1},rowGroupMode:{type:String,default:null},groupRowsBy:{type:[Array,String,Function],default:null},expandableRowGroups:{type:Boolean,default:!1},expandedRowGroups:{type:Array,default:null},first:{type:Number,default:0},dataKey:{type:[String,Function],default:null},expandedRowIcon:{type:String,default:null},collapsedRowIcon:{type:String,default:null},expandedRows:{type:[Array,Object],default:null},selection:{type:[Array,Object],default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},contextMenu:{type:Boolean,default:!1},contextMenuSelection:{type:Object,default:null},rowClass:{type:null,default:null},rowStyle:{type:null,default:null},editMode:{type:String,default:null},compareSelectionBy:{type:String,default:"deepEquals"},editingRows:{type:Array,default:null},editingRowKeys:{type:null,default:null},editingMeta:{type:Object,default:null},templates:{type:null,default:null},scrollable:{type:Boolean,default:!1},responsiveLayout:{type:String,default:"stack"},virtualScrollerContentProps:{type:Object,default:null},isVirtualScrollerDisabled:{type:Boolean,default:!1}},data:function(){return{rowGroupHeaderStyleObject:{}}},mounted:function(){this.frozenRow&&this.updateFrozenRowStickyPosition(),this.scrollable&&this.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()},updated:function(){this.frozenRow&&this.updateFrozenRowStickyPosition(),this.scrollable&&this.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()},methods:{getRowKey:function(e,n){return this.dataKey?M.resolveFieldData(e,this.dataKey):n},updateFrozenRowStickyPosition:function(){this.$el.style.top=O.getOuterHeight(this.$el.previousElementSibling)+"px"},updateFrozenRowGroupHeaderStickyPosition:function(){var e=O.getOuterHeight(this.$el.previousElementSibling);this.rowGroupHeaderStyleObject.top=e+"px"},getVirtualScrollerProp:function(e,n){return n=n||this.virtualScrollerContentProps,n?n[e]:null},bodyRef:function(e){var n=this.getVirtualScrollerProp("contentRef");n&&n(e)}},computed:{rowGroupHeaderStyle:function(){return this.scrollable?{top:this.rowGroupHeaderStyleObject.top}:null},bodyStyle:function(){return this.getVirtualScrollerProp("contentStyle")},ptmTBodyOptions:function(){var e;return{context:{scrollable:(e=this.$parentInstance)===null||e===void 0||(e=e.$parentInstance)===null||e===void 0?void 0:e.scrollable}}},expandedRowId:function(){return qn()},nameAttributeSelector:function(){return qn()}},components:{DTBodyRow:R5}};function lI(t,e,n,r,o,i){var s=a.resolveComponent("DTBodyRow");return a.openBlock(),a.createElementBlock("tbody",a.mergeProps({ref:i.bodyRef,class:t.cx("tbody"),role:"rowgroup",style:i.bodyStyle},t.ptm("tbody",i.ptmTBodyOptions)),[n.empty?(a.openBlock(),a.createBlock(s,{key:1,empty:n.empty,columns:n.columns,templates:n.templates},null,8,["empty","columns","templates"])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(n.value,function(l,c){return a.openBlock(),a.createBlock(s,{key:i.getRowKey(l,c),rowData:l,index:c,value:n.value,columns:n.columns,frozenRow:n.frozenRow,empty:n.empty,first:n.first,dataKey:n.dataKey,selection:n.selection,selectionKeys:n.selectionKeys,selectionMode:n.selectionMode,contextMenu:n.contextMenu,contextMenuSelection:n.contextMenuSelection,rowGroupMode:n.rowGroupMode,groupRowsBy:n.groupRowsBy,expandableRowGroups:n.expandableRowGroups,rowClass:n.rowClass,rowStyle:n.rowStyle,editMode:n.editMode,compareSelectionBy:n.compareSelectionBy,scrollable:n.scrollable,expandedRowIcon:n.expandedRowIcon,collapsedRowIcon:n.collapsedRowIcon,expandedRows:n.expandedRows,expandedRowGroups:n.expandedRowGroups,editingRows:n.editingRows,editingRowKeys:n.editingRowKeys,templates:n.templates,responsiveLayout:n.responsiveLayout,virtualScrollerContentProps:n.virtualScrollerContentProps,isVirtualScrollerDisabled:n.isVirtualScrollerDisabled,editingMeta:n.editingMeta,rowGroupHeaderStyle:i.rowGroupHeaderStyle,expandedRowId:i.expandedRowId,nameAttributeSelector:i.nameAttributeSelector,onRowgroupToggle:e[0]||(e[0]=function(u){return t.$emit("rowgroup-toggle",u)}),onRowClick:e[1]||(e[1]=function(u){return t.$emit("row-click",u)}),onRowDblclick:e[2]||(e[2]=function(u){return t.$emit("row-dblclick",u)}),onRowRightclick:e[3]||(e[3]=function(u){return t.$emit("row-rightclick",u)}),onRowTouchend:e[4]||(e[4]=function(u){return t.$emit("row-touchend",u)}),onRowKeydown:e[5]||(e[5]=function(u){return t.$emit("row-keydown",u)}),onRowMousedown:e[6]||(e[6]=function(u){return t.$emit("row-mousedown",u)}),onRowDragstart:e[7]||(e[7]=function(u){return t.$emit("row-dragstart",u)}),onRowDragover:e[8]||(e[8]=function(u){return t.$emit("row-dragover",u)}),onRowDragleave:e[9]||(e[9]=function(u){return t.$emit("row-dragleave",u)}),onRowDragend:e[10]||(e[10]=function(u){return t.$emit("row-dragend",u)}),onRowDrop:e[11]||(e[11]=function(u){return t.$emit("row-drop",u)}),onRowToggle:e[12]||(e[12]=function(u){return t.$emit("row-toggle",u)}),onRadioChange:e[13]||(e[13]=function(u){return t.$emit("radio-change",u)}),onCheckboxChange:e[14]||(e[14]=function(u){return t.$emit("checkbox-change",u)}),onCellEditInit:e[15]||(e[15]=function(u){return t.$emit("cell-edit-init",u)}),onCellEditComplete:e[16]||(e[16]=function(u){return t.$emit("cell-edit-complete",u)}),onCellEditCancel:e[17]||(e[17]=function(u){return t.$emit("cell-edit-cancel",u)}),onRowEditInit:e[18]||(e[18]=function(u){return t.$emit("row-edit-init",u)}),onRowEditSave:e[19]||(e[19]=function(u){return t.$emit("row-edit-save",u)}),onRowEditCancel:e[20]||(e[20]=function(u){return t.$emit("row-edit-cancel",u)}),onEditingMetaChange:e[21]||(e[21]=function(u){return t.$emit("editing-meta-change",u)}),unstyled:t.unstyled,pt:t.pt},null,8,["rowData","index","value","columns","frozenRow","empty","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","virtualScrollerContentProps","isVirtualScrollerDisabled","editingMeta","rowGroupHeaderStyle","expandedRowId","nameAttributeSelector","unstyled","pt"])}),128))],16)}V5.render=lI;var $5={name:"FooterCell",hostName:"DataTable",extends:re,props:{column:{type:Object,default:null},index:{type:Number,default:null}},data:function(){return{styleObject:{}}},mounted:function(){this.columnProp("frozen")&&this.updateStickyPosition()},updated:function(){this.columnProp("frozen")&&this.updateStickyPosition()},methods:{columnProp:function(e){return M.getVNodeProp(this.column,e)},getColumnPT:function(e){var n,r,o={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,size:(n=this.$parentInstance)===null||n===void 0||(n=n.$parentInstance)===null||n===void 0?void 0:n.size,showGridlines:((r=this.$parentInstance)===null||r===void 0||(r=r.$parentInstance)===null||r===void 0?void 0:r.showGridlines)||!1}};return a.mergeProps(this.ptm("column.".concat(e),{column:o}),this.ptm("column.".concat(e),o),this.ptmo(this.getColumnProp(),e,o))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},updateStickyPosition:function(){if(this.columnProp("frozen")){var e=this.columnProp("alignFrozen");if(e==="right"){var n=0,r=O.getNextElementSibling(this.$el,'[data-p-frozen-column="true"]');r&&(n=O.getOuterWidth(r)+parseFloat(r.style.right||0)),this.styleObject.right=n+"px"}else{var o=0,i=O.getPreviousElementSibling(this.$el,'[data-p-frozen-column="true"]');i&&(o=O.getOuterWidth(i)+parseFloat(i.style.left||0)),this.styleObject.left=o+"px"}}}},computed:{containerClass:function(){return[this.columnProp("footerClass"),this.columnProp("class"),this.cx("footerCell")]},containerStyle:function(){var e=this.columnProp("footerStyle"),n=this.columnProp("style");return this.columnProp("frozen")?[n,e,this.styleObject]:[n,e]}}};function Is(t){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Is(t)}function F5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function H5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F5(Object(n),!0).forEach(function(r){cI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cI(t,e,n){return e=uI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uI(t){var e=dI(t,"string");return Is(e)=="symbol"?e:String(e)}function dI(t,e){if(Is(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var fI=["colspan","rowspan","data-p-frozen-column"];function pI(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("td",a.mergeProps({style:i.containerStyle,class:i.containerClass,role:"cell",colspan:i.columnProp("colspan"),rowspan:i.columnProp("rowspan")},H5(H5({},i.getColumnPT("root")),i.getColumnPT("footerCell")),{"data-p-frozen-column":i.columnProp("frozen")}),[n.column.children&&n.column.children.footer?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.footer),{key:0,column:n.column},null,8,["column"])):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(i.columnProp("footer")),1)],16,fI)}$5.render=pI;function hI(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=mI(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
198
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function mI(t,e){if(t){if(typeof t=="string")return _5(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _5(t,e)}}function _5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var z5={name:"TableFooter",hostName:"DataTable",extends:re,props:{columnGroup:{type:null,default:null},columns:{type:Object,default:null}},provide:function(){return{$rows:this.d_footerRows,$columns:this.d_footerColumns}},data:function(){return{d_footerRows:new Mo({type:"Row"}),d_footerColumns:new Mo({type:"Column"})}},beforeUnmount:function(){this.d_footerRows.clear(),this.d_footerColumns.clear()},methods:{columnProp:function(e,n){return M.getVNodeProp(e,n)},getColumnGroupPT:function(e){var n={props:this.getColumnGroupProps(),parent:{instance:this,props:this.$props,state:this.$data},context:{type:"footer",scrollable:this.ptmTFootOptions.context.scrollable}};return a.mergeProps(this.ptm("columnGroup.".concat(e),{columnGroup:n}),this.ptm("columnGroup.".concat(e),n),this.ptmo(this.getColumnGroupProps(),e,n))},getColumnGroupProps:function(){return this.columnGroup&&this.columnGroup.props&&this.columnGroup.props.pt?this.columnGroup.props.pt:void 0},getRowPT:function(e,n,r){var o={props:e.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:r}};return a.mergeProps(this.ptm("row.".concat(n),{row:o}),this.ptm("row.".concat(n),o),this.ptmo(this.getRowProp(e),n,o))},getRowProp:function(e){return e.props&&e.props.pt?e.props.pt:void 0},getFooterRows:function(){var e;return(e=this.d_footerRows)===null||e===void 0?void 0:e.get(this.columnGroup,this.columnGroup.children)},getFooterColumns:function(e){var n;return(n=this.d_footerColumns)===null||n===void 0?void 0:n.get(e,e.children)}},computed:{hasFooter:function(){var e=!1;if(this.columnGroup)e=!0;else if(this.columns){var n=hI(this.columns),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;if(this.columnProp(o,"footer")||o.children&&o.children.footer){e=!0;break}}}catch(i){n.e(i)}finally{n.f()}}return e},ptmTFootOptions:function(){var e;return{context:{scrollable:(e=this.$parentInstance)===null||e===void 0||(e=e.$parentInstance)===null||e===void 0?void 0:e.scrollable}}}},components:{DTFooterCell:$5}};function Ns(t){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ns(t)}function j5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function El(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j5(Object(n),!0).forEach(function(r){gI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gI(t,e,n){return e=yI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yI(t){var e=bI(t,"string");return Ns(e)=="symbol"?e:String(e)}function bI(t,e){if(Ns(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wI(t,e,n,r,o,i){var s=a.resolveComponent("DTFooterCell");return i.hasFooter?(a.openBlock(),a.createElementBlock("tfoot",a.mergeProps({key:0,class:t.cx("tfoot"),style:t.sx("tfoot"),role:"rowgroup"},n.columnGroup?El(El({},t.ptm("tfoot",i.ptmTFootOptions)),i.getColumnGroupPT("root")):t.ptm("tfoot",i.ptmTFootOptions),{"data-pc-section":"tfoot"}),[n.columnGroup?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(i.getFooterRows(),function(l,c){return a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:c,role:"row"},El(El({},t.ptm("footerRow")),i.getRowPT(l,"root",c))),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.getFooterColumns(l),function(u,d){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.columnProp(u,"columnKey")||i.columnProp(u,"field")||d},[i.columnProp(u,"hidden")?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:0,column:u,index:c,pt:t.pt},null,8,["column","index","pt"]))],64)}),128))],16)}),128)):(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:0,role:"row"},t.ptm("footerRow")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.columns,function(l,c){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.columnProp(l,"columnKey")||i.columnProp(l,"field")||c},[i.columnProp(l,"hidden")?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:0,column:l,pt:t.pt},null,8,["column","pt"]))],64)}),128))],16))],16)):a.createCommentVNode("",!0)}z5.render=wI;function Bs(t){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(t)}function Z5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Jr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Z5(Object(n),!0).forEach(function(r){vI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vI(t,e,n){return e=CI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function CI(t){var e=SI(t,"string");return Bs(e)=="symbol"?e:String(e)}function SI(t,e){if(Bs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bu={name:"ColumnFilter",hostName:"DataTable",extends:re,emits:["filter-change","filter-apply","operator-change","matchmode-change","constraint-add","constraint-remove","filter-clear","apply-click"],props:{field:{type:String,default:null},type:{type:String,default:"text"},display:{type:String,default:null},showMenu:{type:Boolean,default:!0},matchMode:{type:String,default:null},showOperator:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showApplyButton:{type:Boolean,default:!0},showMatchModes:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},matchModeOptions:{type:Array,default:null},maxConstraints:{type:Number,default:2},filterElement:{type:Function,default:null},filterHeaderTemplate:{type:Function,default:null},filterFooterTemplate:{type:Function,default:null},filterClearTemplate:{type:Function,default:null},filterApplyTemplate:{type:Function,default:null},filterIconTemplate:{type:Function,default:null},filterAddIconTemplate:{type:Function,default:null},filterRemoveIconTemplate:{type:Function,default:null},filterClearIconTemplate:{type:Function,default:null},filters:{type:Object,default:null},filtersStore:{type:Object,default:null},filterMenuClass:{type:String,default:null},filterMenuStyle:{type:null,default:null},filterInputProps:{type:null,default:null},column:null},data:function(){return{id:this.$attrs.id,overlayVisible:!1,defaultMatchMode:null,defaultOperator:null}},watch:{"$attrs.id":function(e){this.id=e||qn()}},overlay:null,selfClick:!1,overlayEventListener:null,beforeUnmount:function(){this.overlayEventListener&&(lr.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.overlay&&(xo.clear(this.overlay),this.onOverlayHide())},mounted:function(){if(this.id=this.id||qn(),this.filters&&this.filters[this.field]){var e=this.filters[this.field];e.operator?(this.defaultMatchMode=e.constraints[0].matchMode,this.defaultOperator=e.operator):this.defaultMatchMode=this.filters[this.field].matchMode}},methods:{getColumnPT:function(e,n){var r=Jr({props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data}},n);return a.mergeProps(this.ptm("column.".concat(e),{column:r}),this.ptm("column.".concat(e),r),this.ptmo(this.getColumnProp(),e,r))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},ptmFilterRowItemOptions:function(e){return{context:{highlighted:e&&this.isRowMatchModeSelected(e.value)}}},clearFilter:function(){var e=Jr({},this.filters);e[this.field].operator?(e[this.field].constraints.splice(1),e[this.field].operator=this.defaultOperator,e[this.field].constraints[0]={value:null,matchMode:this.defaultMatchMode}):(e[this.field].value=null,e[this.field].matchMode=this.defaultMatchMode),this.$emit("filter-clear"),this.$emit("filter-change",e),this.$emit("filter-apply"),this.hide()},applyFilter:function(){this.$emit("apply-click",{field:this.field,constraints:this.filters[this.field]}),this.$emit("filter-apply"),this.hide()},hasFilter:function(){if(this.filtersStore){var e=this.filtersStore[this.field];if(e)return e.operator?!this.isFilterBlank(e.constraints[0].value):!this.isFilterBlank(e.value)}return!1},hasRowFilter:function(){return this.filters[this.field]&&!this.isFilterBlank(this.filters[this.field].value)},isFilterBlank:function(e){return e!=null?typeof e=="string"&&e.trim().length==0||e instanceof Array&&e.length==0:!0},toggleMenu:function(e){this.overlayVisible=!this.overlayVisible,e.preventDefault()},onToggleButtonKeyDown:function(e){switch(e.code){case"Enter":case"NumpadEnter":case"Space":this.toggleMenu(e);break;case"Escape":this.overlayVisible=!1;break}},onRowMatchModeChange:function(e){var n=Jr({},this.filters);n[this.field].matchMode=e,this.$emit("matchmode-change",{field:this.field,matchMode:e}),this.$emit("filter-change",n),this.$emit("filter-apply"),this.hide()},onRowMatchModeKeyDown:function(e){var n=e.target;switch(e.code){case"ArrowDown":var r=this.findNextItem(n);r&&(n.removeAttribute("tabindex"),r.tabIndex="0",r.focus()),e.preventDefault();break;case"ArrowUp":var o=this.findPrevItem(n);o&&(n.removeAttribute("tabindex"),o.tabIndex="0",o.focus()),e.preventDefault();break}},isRowMatchModeSelected:function(e){return this.filters[this.field].matchMode===e},onOperatorChange:function(e){var n=Jr({},this.filters);n[this.field].operator=e,this.$emit("filter-change",n),this.$emit("operator-change",{field:this.field,operator:e}),this.showApplyButton||this.$emit("filter-apply")},onMenuMatchModeChange:function(e,n){var r=Jr({},this.filters);r[this.field].constraints[n].matchMode=e,this.$emit("matchmode-change",{field:this.field,matchMode:e,index:n}),this.showApplyButton||this.$emit("filter-apply")},addConstraint:function(){var e=Jr({},this.filters),n={value:null,matchMode:this.defaultMatchMode};e[this.field].constraints.push(n),this.$emit("constraint-add",{field:this.field,constraing:n}),this.$emit("filter-change",e),this.showApplyButton||this.$emit("filter-apply")},removeConstraint:function(e){var n=Jr({},this.filters),r=n[this.field].constraints.splice(e,1);this.$emit("constraint-remove",{field:this.field,constraing:r}),this.$emit("filter-change",n),this.showApplyButton||this.$emit("filter-apply")},filterCallback:function(){this.$emit("filter-apply")},findNextItem:function(e){var n=e.nextElementSibling;return n?O.getAttribute(n,"data-pc-section")==="filterseparator"?this.findNextItem(n):n:e.parentElement.firstElementChild},findPrevItem:function(e){var n=e.previousElementSibling;return n?O.getAttribute(n,"data-pc-section")==="filterseparator"?this.findPrevItem(n):n:e.parentElement.lastElementChild},hide:function(){this.overlayVisible=!1,O.focus(this.$refs.icon)},onContentClick:function(e){this.selfClick=!0,lr.emit("overlay-click",{originalEvent:e,target:this.overlay})},onContentMouseDown:function(){this.selfClick=!0},onOverlayEnter:function(e){var n=this;this.filterMenuStyle&&O.applyStyle(this.overlay,this.filterMenuStyle),xo.set("overlay",e,this.$primevue.config.zIndex.overlay),O.addStyles(e,{position:"absolute",top:"0",left:"0"}),O.absolutePosition(this.overlay,this.$refs.icon),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.overlayEventListener=function(r){n.isOutsideClicked(r.target)||(n.selfClick=!0)},lr.on("overlay-click",this.overlayEventListener)},onOverlayAfterEnter:function(){var e;(e=this.overlay)===null||e===void 0||(e=e.$focustrap)===null||e===void 0||e.autoFocus()},onOverlayLeave:function(){this.onOverlayHide()},onOverlayAfterLeave:function(e){xo.clear(e)},onOverlayHide:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindScrollListener(),this.overlay=null,lr.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null},overlayRef:function(e){this.overlay=e},isOutsideClicked:function(e){return!this.isTargetClicked(e)&&this.overlay&&!(this.overlay.isSameNode(e)||this.overlay.contains(e))},isTargetClicked:function(e){return this.$refs.icon&&(this.$refs.icon.isSameNode(e)||this.$refs.icon.contains(e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(n){e.overlayVisible&&!e.selfClick&&e.isOutsideClicked(n.target)&&(e.overlayVisible=!1),e.selfClick=!1},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null,this.selfClick=!1)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new tp(this.$refs.icon,function(){e.overlayVisible&&e.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!O.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}},computed:{showMenuButton:function(){return this.showMenu&&(this.display==="row"?this.type!=="boolean":!0)},overlayId:function(){return this.id+"_overlay"},matchModes:function(){var e=this;return this.matchModeOptions||this.$primevue.config.filterMatchModeOptions[this.type].map(function(n){return{label:e.$primevue.config.locale[n],value:n}})},isShowMatchModes:function(){return this.type!=="boolean"&&this.showMatchModes&&this.matchModes},operatorOptions:function(){return[{label:this.$primevue.config.locale.matchAll,value:Cl.AND},{label:this.$primevue.config.locale.matchAny,value:Cl.OR}]},noFilterLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.noFilter:void 0},isShowOperator:function(){return this.showOperator&&this.filters[this.field].operator},operator:function(){return this.filters[this.field].operator},fieldConstraints:function(){return this.filters[this.field].constraints||[this.filters[this.field]]},showRemoveIcon:function(){return this.fieldConstraints.length>1},removeRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.removeRule:void 0},addRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.addRule:void 0},isShowAddConstraint:function(){return this.showAddButton&&this.filters[this.field].operator&&this.fieldConstraints&&this.fieldConstraints.length<this.maxConstraints},clearButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.clear:void 0},applyButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.apply:void 0},filterMenuButtonAriaLabel:function(){return this.$primevue.config.locale?this.overlayVisible?this.$primevue.config.locale.showFilterMenu:this.$primevue.config.locale.hideFilterMenu:void 0},filterOperatorAriaLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.filterOperator:void 0},filterConstraintAriaLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.filterConstraint:void 0},ptmHeaderFilterClearParams:function(){return{context:{hidden:this.hasRowFilter()}}},ptmFilterMenuParams:function(){return{context:{overlayVisible:this.overlayVisible,active:this.hasFilter()}}}},components:{CFDropdown:kl,CFButton:lu,Portal:iu,FilterSlashIcon:E5,FilterIcon:O5,TrashIcon:M5,PlusIcon:T5},directives:{focustrap:uA}};function Rs(t){"@babel/helpers - typeof";return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rs(t)}function W5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function U5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W5(Object(n),!0).forEach(function(r){kI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kI(t,e,n){return e=OI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function OI(t){var e=EI(t,"string");return Rs(e)=="symbol"?e:String(e)}function EI(t,e){if(Rs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var TI=["aria-label","aria-expanded","aria-controls"],MI=["id","aria-modal"],xI=["onClick","onKeydown","tabindex"];function PI(t,e,n,r,o,i){var s=a.resolveComponent("CFDropdown"),l=a.resolveComponent("CFButton"),c=a.resolveComponent("Portal"),u=a.resolveDirective("focustrap");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:t.cx("columnFilter")},i.getColumnPT("columnFilter")),[n.display==="row"?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("filterInput")},U5(U5({},n.filterInputProps),i.getColumnPT("filterInput"))),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterElement),{field:n.field,filterModel:n.filters[n.field],filterCallback:i.filterCallback},null,8,["field","filterModel","filterCallback"]))],16)):a.createCommentVNode("",!0),i.showMenuButton?(a.openBlock(),a.createElementBlock("button",a.mergeProps({key:1,ref:"icon",type:"button","aria-label":i.filterMenuButtonAriaLabel,"aria-haspopup":"true","aria-expanded":o.overlayVisible,"aria-controls":i.overlayId,class:t.cx("filterMenuButton"),onClick:e[0]||(e[0]=function(d){return i.toggleMenu(d)}),onKeydown:e[1]||(e[1]=function(d){return i.onToggleButtonKeyDown(d)})},i.getColumnPT("filterMenuButton",i.ptmFilterMenuParams)),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterIconTemplate||"FilterIcon"),a.normalizeProps(a.guardReactiveProps(i.getColumnPT("filterMenuIcon"))),null,16))],16,TI)):a.createCommentVNode("",!0),n.showClearButton&&n.display==="row"?(a.openBlock(),a.createElementBlock("button",a.mergeProps({key:2,class:t.cx("headerFilterClearButton"),type:"button",onClick:e[2]||(e[2]=function(d){return i.clearFilter()})},i.getColumnPT("headerFilterClearButton",i.ptmHeaderFilterClearParams)),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterClearIconTemplate||"FilterSlashIcon"),a.normalizeProps(a.guardReactiveProps(i.getColumnPT("filterClearIcon"))),null,16))],16)):a.createCommentVNode("",!0),a.createVNode(c,null,{default:a.withCtx(function(){return[a.createVNode(a.Transition,a.mergeProps({name:"p-connected-overlay",onEnter:i.onOverlayEnter,onAfterEnter:i.onOverlayAfterEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},i.getColumnPT("transition")),{default:a.withCtx(function(){return[o.overlayVisible?a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:i.overlayRef,id:i.overlayId,"aria-modal":o.overlayVisible,role:"dialog",class:[t.cx("filterOverlay"),n.filterMenuClass],onKeydown:e[10]||(e[10]=a.withKeys(function(){return i.hide&&i.hide.apply(i,arguments)},["escape"])),onClick:e[11]||(e[11]=function(){return i.onContentClick&&i.onContentClick.apply(i,arguments)}),onMousedown:e[12]||(e[12]=function(){return i.onContentMouseDown&&i.onContentMouseDown.apply(i,arguments)})},i.getColumnPT("filterOverlay")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterHeaderTemplate),{field:n.field,filterModel:n.filters[n.field],filterCallback:i.filterCallback},null,8,["field","filterModel","filterCallback"])),n.display==="row"?(a.openBlock(),a.createElementBlock("ul",a.mergeProps({key:0,class:t.cx("filterRowItems")},i.getColumnPT("filterRowItems")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.matchModes,function(d,f){return a.openBlock(),a.createElementBlock("li",a.mergeProps({key:d.label,class:t.cx("filterRowItem",{matchMode:d}),onClick:function(h){return i.onRowMatchModeChange(d.value)},onKeydown:[e[3]||(e[3]=function(p){return i.onRowMatchModeKeyDown(p)}),a.withKeys(a.withModifiers(function(p){return i.onRowMatchModeChange(d.value)},["prevent"]),["enter"])],tabindex:f===0?"0":null},i.getColumnPT("filterRowItem",i.ptmFilterRowItemOptions(d))),a.toDisplayString(d.label),17,xI)}),128)),a.createElementVNode("li",a.mergeProps({class:t.cx("filterSeparator")},i.getColumnPT("filterSeparator")),null,16),a.createElementVNode("li",a.mergeProps({class:t.cx("filterRowItem"),onClick:e[4]||(e[4]=function(d){return i.clearFilter()}),onKeydown:[e[5]||(e[5]=function(d){return i.onRowMatchModeKeyDown(d)}),e[6]||(e[6]=a.withKeys(function(d){return t.onRowClearItemClick()},["enter"]))]},i.getColumnPT("filterRowItem")),a.toDisplayString(i.noFilterLabel),17)],16)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[i.isShowOperator?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("filterOperator")},i.getColumnPT("filterOperator")),[a.createVNode(s,{options:i.operatorOptions,modelValue:i.operator,"aria-label":i.filterOperatorAriaLabel,class:a.normalizeClass(t.cx("filterOperatorDropdown")),optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[7]||(e[7]=function(d){return i.onOperatorChange(d)}),unstyled:t.unstyled,pt:i.getColumnPT("filterOperatorDropdown")},null,8,["options","modelValue","aria-label","class","unstyled","pt"])],16)):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("filterConstraints")},i.getColumnPT("filterConstraints")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.fieldConstraints,function(d,f){return a.openBlock(),a.createElementBlock("div",a.mergeProps({key:f,class:t.cx("filterConstraint")},i.getColumnPT("filterConstraint")),[i.isShowMatchModes?(a.openBlock(),a.createBlock(s,{key:0,options:i.matchModes,modelValue:d.matchMode,class:a.normalizeClass(t.cx("filterMatchModeDropdown")),optionLabel:"label",optionValue:"value","aria-label":i.filterConstraintAriaLabel,"onUpdate:modelValue":function(h){return i.onMenuMatchModeChange(h,f)},unstyled:t.unstyled,pt:i.getColumnPT("filterMatchModeDropdown")},null,8,["options","modelValue","class","aria-label","onUpdate:modelValue","unstyled","pt"])):a.createCommentVNode("",!0),n.display==="menu"?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterElement),{key:1,field:n.field,filterModel:d,filterCallback:i.filterCallback,applyFilter:i.applyFilter},null,8,["field","filterModel","filterCallback","applyFilter"])):a.createCommentVNode("",!0),a.createElementVNode("div",a.normalizeProps(a.guardReactiveProps(i.getColumnPT("filterRemove"))),[i.showRemoveIcon?(a.openBlock(),a.createBlock(l,{key:0,type:"button",class:a.normalizeClass(t.cx("filterRemoveButton")),onClick:function(h){return i.removeConstraint(f)},label:i.removeRuleButtonLabel,unstyled:t.unstyled,text:"",severity:"danger",size:"small",pt:i.getColumnPT("filterRemoveButton")},{icon:a.withCtx(function(p){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterRemoveIconTemplate||"TrashIcon"),a.mergeProps({class:p.class},i.getColumnPT("filterRemoveButton").icon),null,16,["class"]))]}),_:2},1032,["class","onClick","label","unstyled","pt"])):a.createCommentVNode("",!0)],16)],16)}),128))],16),i.isShowAddConstraint?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:t.cx("filterAddRule")},i.getColumnPT("filterAddRule")),[a.createVNode(l,{type:"button",label:i.addRuleButtonLabel,iconPos:"left",class:a.normalizeClass(t.cx("filterAddRuleButton")),onClick:e[8]||(e[8]=function(d){return i.addConstraint()}),unstyled:t.unstyled,text:"",severity:"info",size:"small",pt:i.getColumnPT("filterAddRuleButton")},{icon:a.withCtx(function(d){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterAddIconTemplate||"PlusIcon"),a.mergeProps({class:d.class},i.getColumnPT("filterAddRuleButton").icon),null,16,["class"]))]}),_:1},8,["label","class","unstyled","pt"])],16)):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("filterButtonbar")},i.getColumnPT("filterButtonbar")),[!n.filterClearTemplate&&n.showClearButton?(a.openBlock(),a.createBlock(l,{key:0,type:"button",class:a.normalizeClass(t.cx("filterClearButton")),label:i.clearButtonLabel,onClick:i.clearFilter,unstyled:t.unstyled,size:"small",outlined:"",pt:i.getColumnPT("filterClearButton")},null,8,["class","label","onClick","unstyled","pt"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterClearTemplate),{key:1,field:n.field,filterModel:n.filters[n.field],filterCallback:i.clearFilter},null,8,["field","filterModel","filterCallback"])),n.showApplyButton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[n.filterApplyTemplate?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterApplyTemplate),{key:1,field:n.field,filterModel:n.filters[n.field],filterCallback:i.applyFilter},null,8,["field","filterModel","filterCallback"])):(a.openBlock(),a.createBlock(l,{key:0,type:"button",class:a.normalizeClass(t.cx("filterApplyButton")),label:i.applyButtonLabel,onClick:e[9]||(e[9]=function(d){return i.applyFilter()}),unstyled:t.unstyled,size:"small",pt:i.getColumnPT("filterApplyButton")},null,8,["class","label","unstyled","pt"]))],64)):a.createCommentVNode("",!0)],16)],64)),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterFooterTemplate),{field:n.field,filterModel:n.filters[n.field],filterCallback:i.filterCallback},null,8,["field","filterModel","filterCallback"]))],16,MI)),[[u]]):a.createCommentVNode("",!0)]}),_:1},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:1})],16)}bu.render=PI;var wu={name:"HeaderCheckbox",hostName:"DataTable",extends:re,emits:["change"],props:{checked:null,disabled:null,column:null,headerCheckboxIconTemplate:{type:Function,default:null}},methods:{getColumnPT:function(e){var n={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{checked:this.checked,disabled:this.disabled}};return a.mergeProps(this.ptm("column.".concat(e),{column:n}),this.ptm("column.".concat(e),n),this.ptmo(this.getColumnProp(),e,n))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onChange:function(e){this.$emit("change",{originalEvent:e,checked:!this.checked})}},computed:{headerCheckboxAriaLabel:function(){return this.$primevue.config.locale.aria?this.checked?this.$primevue.config.locale.aria.selectAll:this.$primevue.config.locale.aria.unselectAll:void 0}},components:{CheckIcon:Wo,Checkbox:hu}};function DI(t,e,n,r,o,i){var s=a.resolveComponent("CheckIcon"),l=a.resolveComponent("Checkbox");return a.openBlock(),a.createBlock(l,{modelValue:n.checked,binary:!0,disabled:n.disabled,"aria-label":i.headerCheckboxAriaLabel,onChange:i.onChange,pt:i.getColumnPT("headerCheckbox")},{icon:a.withCtx(function(c){return[n.headerCheckboxIconTemplate?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.headerCheckboxIconTemplate),{key:0,checked:c.checked,class:a.normalizeClass(c.class)},null,8,["checked","class"])):!n.headerCheckboxIconTemplate&&c.checked?(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:c.class},i.getColumnPT("headerCheckbox.icon")),null,16,["class"])):a.createCommentVNode("",!0)]}),_:1},8,["modelValue","disabled","aria-label","onChange","pt"])}wu.render=DI;var K5={name:"HeaderCell",hostName:"DataTable",extends:re,emits:["column-click","column-mousedown","column-dragstart","column-dragover","column-dragleave","column-drop","column-resizestart","checkbox-change","filter-change","filter-apply","operator-change","matchmode-change","constraint-add","constraint-remove","filter-clear","apply-click"],props:{column:{type:Object,default:null},index:{type:Number,default:null},resizableColumns:{type:Boolean,default:!1},groupRowsBy:{type:[Array,String,Function],default:null},sortMode:{type:String,default:"single"},groupRowSortField:{type:[String,Function],default:null},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},multiSortMeta:{type:Array,default:null},allRowsSelected:{type:Boolean,default:!1},empty:{type:Boolean,default:!1},filterDisplay:{type:String,default:null},filters:{type:Object,default:null},filtersStore:{type:Object,default:null},filterColumn:{type:Boolean,default:!1},reorderableColumns:{type:Boolean,default:!1},filterInputProps:{type:null,default:null}},data:function(){return{styleObject:{}}},mounted:function(){this.columnProp("frozen")&&this.updateStickyPosition()},updated:function(){this.columnProp("frozen")&&this.updateStickyPosition()},methods:{columnProp:function(e){return M.getVNodeProp(this.column,e)},getColumnPT:function(e){var n,r,o={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,sortable:this.columnProp("sortable")===""||this.columnProp("sortable"),sorted:this.isColumnSorted(),resizable:this.resizableColumns,size:(n=this.$parentInstance)===null||n===void 0||(n=n.$parentInstance)===null||n===void 0?void 0:n.size,showGridlines:((r=this.$parentInstance)===null||r===void 0||(r=r.$parentInstance)===null||r===void 0?void 0:r.showGridlines)||!1}};return a.mergeProps(this.ptm("column.".concat(e),{column:o}),this.ptm("column.".concat(e),o),this.ptmo(this.getColumnProp(),e,o))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onClick:function(e){this.$emit("column-click",{originalEvent:e,column:this.column})},onKeyDown:function(e){(e.code==="Enter"||e.code==="NumpadEnter"||e.code==="Space")&&e.currentTarget.nodeName==="TH"&&O.getAttribute(e.currentTarget,"data-p-sortable-column")&&(this.$emit("column-click",{originalEvent:e,column:this.column}),e.preventDefault())},onMouseDown:function(e){this.$emit("column-mousedown",{originalEvent:e,column:this.column})},onDragStart:function(e){this.$emit("column-dragstart",{originalEvent:e,column:this.column})},onDragOver:function(e){this.$emit("column-dragover",{originalEvent:e,column:this.column})},onDragLeave:function(e){this.$emit("column-dragleave",{originalEvent:e,column:this.column})},onDrop:function(e){this.$emit("column-drop",{originalEvent:e,column:this.column})},onResizeStart:function(e){this.$emit("column-resizestart",e)},getMultiSortMetaIndex:function(){var e=this;return this.multiSortMeta.findIndex(function(n){return n.field===e.columnProp("field")||n.field===e.columnProp("sortField")})},getBadgeValue:function(){var e=this.getMultiSortMetaIndex();return this.groupRowsBy&&this.groupRowsBy===this.groupRowSortField&&e>-1?e:e+1},isMultiSorted:function(){return this.sortMode==="multiple"&&this.columnProp("sortable")&&this.getMultiSortMetaIndex()>-1},isColumnSorted:function(){return this.sortMode==="single"?this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")):this.isMultiSorted()},updateStickyPosition:function(){if(this.columnProp("frozen")){var e=this.columnProp("alignFrozen");if(e==="right"){var n=0,r=O.getNextElementSibling(this.$el,'[data-p-frozen-column="true"]');r&&(n=O.getOuterWidth(r)+parseFloat(r.style.right||0)),this.styleObject.right=n+"px"}else{var o=0,i=O.getPreviousElementSibling(this.$el,'[data-p-frozen-column="true"]');i&&(o=O.getOuterWidth(i)+parseFloat(i.style.left||0)),this.styleObject.left=o+"px"}var s=this.$el.parentElement.nextElementSibling;if(s){var l=O.index(this.$el);s.children[l]&&(s.children[l].style.left=this.styleObject.left,s.children[l].style.right=this.styleObject.right)}}},onHeaderCheckboxChange:function(e){this.$emit("checkbox-change",e)}},computed:{containerClass:function(){return[this.cx("headerCell"),this.filterColumn?this.columnProp("filterHeaderClass"):this.columnProp("headerClass"),this.columnProp("class")]},containerStyle:function(){var e=this.filterColumn?this.columnProp("filterHeaderStyle"):this.columnProp("headerStyle"),n=this.columnProp("style");return this.columnProp("frozen")?[n,e,this.styleObject]:[n,e]},sortState:function(){var e=!1,n=null;if(this.sortMode==="single")e=this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")),n=e?this.sortOrder:0;else if(this.sortMode==="multiple"){var r=this.getMultiSortMetaIndex();r>-1&&(e=!0,n=this.multiSortMeta[r].order)}return{sorted:e,sortOrder:n}},sortableColumnIcon:function(){var e=this.sortState,n=e.sorted,r=e.sortOrder;if(n){if(n&&r>0)return yu;if(n&&r<0)return gu}else return mu;return null},ariaSort:function(){if(this.columnProp("sortable")){var e=this.sortState,n=e.sorted,r=e.sortOrder;return n&&r<0?"descending":n&&r>0?"ascending":"none"}else return null}},components:{DTHeaderCheckbox:wu,DTColumnFilter:bu,SortAltIcon:mu,SortAmountUpAltIcon:yu,SortAmountDownIcon:gu}};function Ls(t){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ls(t)}function G5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function q5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?G5(Object(n),!0).forEach(function(r){AI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function AI(t,e,n){return e=II(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function II(t){var e=NI(t,"string");return Ls(e)=="symbol"?e:String(e)}function NI(t,e){if(Ls(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var BI=["tabindex","colspan","rowspan","aria-sort","data-p-sortable-column","data-p-resizable-column","data-p-highlight","data-p-filter-column","data-p-frozen-column","data-p-reorderable-column"];function RI(t,e,n,r,o,i){var s=a.resolveComponent("DTHeaderCheckbox"),l=a.resolveComponent("DTColumnFilter");return a.openBlock(),a.createElementBlock("th",a.mergeProps({style:i.containerStyle,class:i.containerClass,tabindex:i.columnProp("sortable")?"0":null,role:"columnheader",colspan:i.columnProp("colspan"),rowspan:i.columnProp("rowspan"),"aria-sort":i.ariaSort,onClick:e[8]||(e[8]=function(){return i.onClick&&i.onClick.apply(i,arguments)}),onKeydown:e[9]||(e[9]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)}),onMousedown:e[10]||(e[10]=function(){return i.onMouseDown&&i.onMouseDown.apply(i,arguments)}),onDragstart:e[11]||(e[11]=function(){return i.onDragStart&&i.onDragStart.apply(i,arguments)}),onDragover:e[12]||(e[12]=function(){return i.onDragOver&&i.onDragOver.apply(i,arguments)}),onDragleave:e[13]||(e[13]=function(){return i.onDragLeave&&i.onDragLeave.apply(i,arguments)}),onDrop:e[14]||(e[14]=function(){return i.onDrop&&i.onDrop.apply(i,arguments)})},q5(q5({},i.getColumnPT("root")),i.getColumnPT("headerCell")),{"data-p-sortable-column":i.columnProp("sortable"),"data-p-resizable-column":n.resizableColumns,"data-p-highlight":i.isColumnSorted(),"data-p-filter-column":n.filterColumn,"data-p-frozen-column":i.columnProp("frozen"),"data-p-reorderable-column":n.reorderableColumns}),[n.resizableColumns&&!i.columnProp("frozen")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:t.cx("columnResizer"),onMousedown:e[0]||(e[0]=function(){return i.onResizeStart&&i.onResizeStart.apply(i,arguments)})},i.getColumnPT("columnResizer")),null,16)):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("headerContent")},i.getColumnPT("headerContent")),[n.column.children&&n.column.children.header?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.header),{key:0,column:n.column},null,8,["column"])):a.createCommentVNode("",!0),i.columnProp("header")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:t.cx("headerTitle")},i.getColumnPT("headerTitle")),a.toDisplayString(i.columnProp("header")),17)):a.createCommentVNode("",!0),i.columnProp("sortable")?(a.openBlock(),a.createElementBlock("span",a.normalizeProps(a.mergeProps({key:2},i.getColumnPT("sort"))),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children&&n.column.children.sorticon||i.sortableColumnIcon),a.mergeProps({sorted:i.sortState.sorted,sortOrder:i.sortState.sortOrder,class:t.cx("sortIcon")},i.getColumnPT("sorticon")),null,16,["sorted","sortOrder","class"]))],16)):a.createCommentVNode("",!0),i.isMultiSorted()?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:3,class:t.cx("sortBadge")},i.getColumnPT("sortBadge")),a.toDisplayString(i.getBadgeValue()),17)):a.createCommentVNode("",!0),i.columnProp("selectionMode")==="multiple"&&n.filterDisplay!=="row"?(a.openBlock(),a.createBlock(s,{key:4,checked:n.allRowsSelected,onChange:i.onHeaderCheckboxChange,disabled:n.empty,headerCheckboxIconTemplate:n.column.children&&n.column.children.headercheckboxicon,column:n.column,unstyled:t.unstyled,pt:t.pt},null,8,["checked","onChange","disabled","headerCheckboxIconTemplate","column","unstyled","pt"])):a.createCommentVNode("",!0),n.filterDisplay==="menu"&&n.column.children&&n.column.children.filter?(a.openBlock(),a.createBlock(l,{key:5,field:i.columnProp("filterField")||i.columnProp("field"),type:i.columnProp("dataType"),display:"menu",showMenu:i.columnProp("showFilterMenu"),filterElement:n.column.children&&n.column.children.filter,filterHeaderTemplate:n.column.children&&n.column.children.filterheader,filterFooterTemplate:n.column.children&&n.column.children.filterfooter,filterClearTemplate:n.column.children&&n.column.children.filterclear,filterApplyTemplate:n.column.children&&n.column.children.filterapply,filterIconTemplate:n.column.children&&n.column.children.filtericon,filterAddIconTemplate:n.column.children&&n.column.children.filteraddicon,filterRemoveIconTemplate:n.column.children&&n.column.children.filterremoveicon,filterClearIconTemplate:n.column.children&&n.column.children.filterclearicon,filters:n.filters,filtersStore:n.filtersStore,filterInputProps:n.filterInputProps,onFilterChange:e[1]||(e[1]=function(c){return t.$emit("filter-change",c)}),onFilterApply:e[2]||(e[2]=function(c){return t.$emit("filter-apply")}),filterMenuStyle:i.columnProp("filterMenuStyle"),filterMenuClass:i.columnProp("filterMenuClass"),showOperator:i.columnProp("showFilterOperator"),showClearButton:i.columnProp("showClearButton"),showApplyButton:i.columnProp("showApplyButton"),showMatchModes:i.columnProp("showFilterMatchModes"),showAddButton:i.columnProp("showAddButton"),matchModeOptions:i.columnProp("filterMatchModeOptions"),maxConstraints:i.columnProp("maxConstraints"),onOperatorChange:e[3]||(e[3]=function(c){return t.$emit("operator-change",c)}),onMatchmodeChange:e[4]||(e[4]=function(c){return t.$emit("matchmode-change",c)}),onConstraintAdd:e[5]||(e[5]=function(c){return t.$emit("constraint-add",c)}),onConstraintRemove:e[6]||(e[6]=function(c){return t.$emit("constraint-remove",c)}),onApplyClick:e[7]||(e[7]=function(c){return t.$emit("apply-click",c)}),column:n.column,unstyled:t.unstyled,pt:t.pt},null,8,["field","type","showMenu","filterElement","filterHeaderTemplate","filterFooterTemplate","filterClearTemplate","filterApplyTemplate","filterIconTemplate","filterAddIconTemplate","filterRemoveIconTemplate","filterClearIconTemplate","filters","filtersStore","filterInputProps","filterMenuStyle","filterMenuClass","showOperator","showClearButton","showApplyButton","showMatchModes","showAddButton","matchModeOptions","maxConstraints","column","unstyled","pt"])):a.createCommentVNode("",!0)],16)],16,BI)}K5.render=RI;var Y5={name:"TableHeader",hostName:"DataTable",extends:re,emits:["column-click","column-mousedown","column-dragstart","column-dragover","column-dragleave","column-drop","column-resizestart","checkbox-change","filter-change","filter-apply","operator-change","matchmode-change","constraint-add","constraint-remove","filter-clear","apply-click"],props:{columnGroup:{type:null,default:null},columns:{type:null,default:null},rowGroupMode:{type:String,default:null},groupRowsBy:{type:[Array,String,Function],default:null},resizableColumns:{type:Boolean,default:!1},allRowsSelected:{type:Boolean,default:!1},empty:{type:Boolean,default:!1},sortMode:{type:String,default:"single"},groupRowSortField:{type:[String,Function],default:null},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},multiSortMeta:{type:Array,default:null},filterDisplay:{type:String,default:null},filters:{type:Object,default:null},filtersStore:{type:Object,default:null},reorderableColumns:{type:Boolean,default:!1},filterInputProps:{type:null,default:null}},provide:function(){return{$rows:this.d_headerRows,$columns:this.d_headerColumns}},data:function(){return{d_headerRows:new Mo({type:"Row"}),d_headerColumns:new Mo({type:"Column"})}},beforeUnmount:function(){this.d_headerRows.clear(),this.d_headerColumns.clear()},methods:{columnProp:function(e,n){return M.getVNodeProp(e,n)},getColumnGroupPT:function(e){var n,r={props:this.getColumnGroupProps(),parent:{instance:this,props:this.$props,state:this.$data},context:{type:"header",scrollable:(n=this.$parentInstance)===null||n===void 0||(n=n.$parentInstance)===null||n===void 0?void 0:n.scrollable}};return a.mergeProps(this.ptm("columnGroup.".concat(e),{columnGroup:r}),this.ptm("columnGroup.".concat(e),r),this.ptmo(this.getColumnGroupProps(),e,r))},getColumnGroupProps:function(){return this.columnGroup&&this.columnGroup.props&&this.columnGroup.props.pt?this.columnGroup.props.pt:void 0},getRowPT:function(e,n,r){var o={props:e.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:r}};return a.mergeProps(this.ptm("row.".concat(n),{row:o}),this.ptm("row.".concat(n),o),this.ptmo(this.getRowProp(e),n,o))},getRowProp:function(e){return e.props&&e.props.pt?e.props.pt:void 0},getColumnPT:function(e,n,r){var o={props:e.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:r}};return a.mergeProps(this.ptm("column.".concat(n),{column:o}),this.ptm("column.".concat(n),o),this.ptmo(this.getColumnProp(e),n,o))},getColumnProp:function(e){return e.props&&e.props.pt?e.props.pt:void 0},getFilterColumnHeaderClass:function(e){return[this.cx("headerCell",{column:e}),this.columnProp(e,"filterHeaderClass"),this.columnProp(e,"class")]},getFilterColumnHeaderStyle:function(e){return[this.columnProp(e,"filterHeaderStyle"),this.columnProp(e,"style")]},getHeaderRows:function(){var e;return(e=this.d_headerRows)===null||e===void 0?void 0:e.get(this.columnGroup,this.columnGroup.children)},getHeaderColumns:function(e){var n;return(n=this.d_headerColumns)===null||n===void 0?void 0:n.get(e,e.children)}},computed:{ptmTHeadOptions:function(){var e;return{context:{scrollable:(e=this.$parentInstance)===null||e===void 0||(e=e.$parentInstance)===null||e===void 0?void 0:e.scrollable}}}},components:{DTHeaderCell:K5,DTHeaderCheckbox:wu,DTColumnFilter:bu}};function Vs(t){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vs(t)}function J5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Uo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?J5(Object(n),!0).forEach(function(r){LI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function LI(t,e,n){return e=VI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VI(t){var e=$I(t,"string");return Vs(e)=="symbol"?e:String(e)}function $I(t,e){if(Vs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function FI(t,e,n,r,o,i){var s=a.resolveComponent("DTHeaderCell"),l=a.resolveComponent("DTHeaderCheckbox"),c=a.resolveComponent("DTColumnFilter");return a.openBlock(),a.createElementBlock("thead",a.mergeProps({class:t.cx("thead"),style:t.sx("thead"),role:"rowgroup"},n.columnGroup?Uo(Uo({},t.ptm("thead",i.ptmTHeadOptions)),i.getColumnGroupPT("root")):t.ptm("thead",i.ptmTHeadOptions),{"data-pc-section":"thead"}),[n.columnGroup?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(i.getHeaderRows(),function(u,d){return a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:d,role:"row"},Uo(Uo({},t.ptm("headerRow")),i.getRowPT(u,"root",d))),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.getHeaderColumns(u),function(f,p){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.columnProp(f,"columnKey")||i.columnProp(f,"field")||p},[!i.columnProp(f,"hidden")&&(n.rowGroupMode!=="subheader"||n.groupRowsBy!==i.columnProp(f,"field"))&&typeof f.children!="string"?(a.openBlock(),a.createBlock(s,{key:0,column:f,onColumnClick:e[23]||(e[23]=function(h){return t.$emit("column-click",h)}),onColumnMousedown:e[24]||(e[24]=function(h){return t.$emit("column-mousedown",h)}),groupRowsBy:n.groupRowsBy,groupRowSortField:n.groupRowSortField,sortMode:n.sortMode,sortField:n.sortField,sortOrder:n.sortOrder,multiSortMeta:n.multiSortMeta,allRowsSelected:n.allRowsSelected,empty:n.empty,onCheckboxChange:e[25]||(e[25]=function(h){return t.$emit("checkbox-change",h)}),filters:n.filters,filterDisplay:n.filterDisplay,filtersStore:n.filtersStore,onFilterChange:e[26]||(e[26]=function(h){return t.$emit("filter-change",h)}),onFilterApply:e[27]||(e[27]=function(h){return t.$emit("filter-apply")}),onOperatorChange:e[28]||(e[28]=function(h){return t.$emit("operator-change",h)}),onMatchmodeChange:e[29]||(e[29]=function(h){return t.$emit("matchmode-change",h)}),onConstraintAdd:e[30]||(e[30]=function(h){return t.$emit("constraint-add",h)}),onConstraintRemove:e[31]||(e[31]=function(h){return t.$emit("constraint-remove",h)}),onApplyClick:e[32]||(e[32]=function(h){return t.$emit("apply-click",h)}),unstyled:t.unstyled,pt:t.pt},null,8,["column","groupRowsBy","groupRowSortField","sortMode","sortField","sortOrder","multiSortMeta","allRowsSelected","empty","filters","filterDisplay","filtersStore","unstyled","pt"])):a.createCommentVNode("",!0)],64)}),128))],16)}),128)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("tr",a.mergeProps({role:"row"},t.ptm("headerRow")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.columns,function(u,d){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.columnProp(u,"columnKey")||i.columnProp(u,"field")||d},[!i.columnProp(u,"hidden")&&(n.rowGroupMode!=="subheader"||n.groupRowsBy!==i.columnProp(u,"field"))?(a.openBlock(),a.createBlock(s,{key:0,column:u,index:d,onColumnClick:e[0]||(e[0]=function(f){return t.$emit("column-click",f)}),onColumnMousedown:e[1]||(e[1]=function(f){return t.$emit("column-mousedown",f)}),onColumnDragstart:e[2]||(e[2]=function(f){return t.$emit("column-dragstart",f)}),onColumnDragover:e[3]||(e[3]=function(f){return t.$emit("column-dragover",f)}),onColumnDragleave:e[4]||(e[4]=function(f){return t.$emit("column-dragleave",f)}),onColumnDrop:e[5]||(e[5]=function(f){return t.$emit("column-drop",f)}),groupRowsBy:n.groupRowsBy,groupRowSortField:n.groupRowSortField,reorderableColumns:n.reorderableColumns,resizableColumns:n.resizableColumns,onColumnResizestart:e[6]||(e[6]=function(f){return t.$emit("column-resizestart",f)}),sortMode:n.sortMode,sortField:n.sortField,sortOrder:n.sortOrder,multiSortMeta:n.multiSortMeta,allRowsSelected:n.allRowsSelected,empty:n.empty,onCheckboxChange:e[7]||(e[7]=function(f){return t.$emit("checkbox-change",f)}),filters:n.filters,filterDisplay:n.filterDisplay,filtersStore:n.filtersStore,filterInputProps:n.filterInputProps,onFilterChange:e[8]||(e[8]=function(f){return t.$emit("filter-change",f)}),onFilterApply:e[9]||(e[9]=function(f){return t.$emit("filter-apply")}),onOperatorChange:e[10]||(e[10]=function(f){return t.$emit("operator-change",f)}),onMatchmodeChange:e[11]||(e[11]=function(f){return t.$emit("matchmode-change",f)}),onConstraintAdd:e[12]||(e[12]=function(f){return t.$emit("constraint-add",f)}),onConstraintRemove:e[13]||(e[13]=function(f){return t.$emit("constraint-remove",f)}),onApplyClick:e[14]||(e[14]=function(f){return t.$emit("apply-click",f)}),unstyled:t.unstyled,pt:t.pt},null,8,["column","index","groupRowsBy","groupRowSortField","reorderableColumns","resizableColumns","sortMode","sortField","sortOrder","multiSortMeta","allRowsSelected","empty","filters","filterDisplay","filtersStore","filterInputProps","unstyled","pt"])):a.createCommentVNode("",!0)],64)}),128))],16),n.filterDisplay==="row"?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:0,role:"row"},t.ptm("headerRow")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.columns,function(u,d){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.columnProp(u,"columnKey")||i.columnProp(u,"field")||d},[!i.columnProp(u,"hidden")&&(n.rowGroupMode!=="subheader"||n.groupRowsBy!==i.columnProp(u,"field"))?(a.openBlock(),a.createElementBlock("th",a.mergeProps({key:0,style:i.getFilterColumnHeaderStyle(u),class:i.getFilterColumnHeaderClass(u)},Uo(Uo({},i.getColumnPT(u,"root",d)),i.getColumnPT(u,"headerCell",d))),[i.columnProp(u,"selectionMode")==="multiple"?(a.openBlock(),a.createBlock(l,{key:0,checked:n.allRowsSelected,disabled:n.empty,onChange:e[15]||(e[15]=function(f){return t.$emit("checkbox-change",f)}),column:u,unstyled:t.unstyled,pt:t.pt},null,8,["checked","disabled","column","unstyled","pt"])):a.createCommentVNode("",!0),u.children&&u.children.filter?(a.openBlock(),a.createBlock(c,{key:1,field:i.columnProp(u,"filterField")||i.columnProp(u,"field"),type:i.columnProp(u,"dataType"),display:"row",showMenu:i.columnProp(u,"showFilterMenu"),filterElement:u.children&&u.children.filter,filterHeaderTemplate:u.children&&u.children.filterheader,filterFooterTemplate:u.children&&u.children.filterfooter,filterClearTemplate:u.children&&u.children.filterclear,filterApplyTemplate:u.children&&u.children.filterapply,filterIconTemplate:u.children&&u.children.filtericon,filterAddIconTemplate:u.children&&u.children.filteraddicon,filterRemoveIconTemplate:u.children&&u.children.filterremoveicon,filterClearIconTemplate:u.children&&u.children.filterclearicon,filters:n.filters,filtersStore:n.filtersStore,filterInputProps:n.filterInputProps,onFilterChange:e[16]||(e[16]=function(f){return t.$emit("filter-change",f)}),onFilterApply:e[17]||(e[17]=function(f){return t.$emit("filter-apply")}),filterMenuStyle:i.columnProp(u,"filterMenuStyle"),filterMenuClass:i.columnProp(u,"filterMenuClass"),showOperator:i.columnProp(u,"showFilterOperator"),showClearButton:i.columnProp(u,"showClearButton"),showApplyButton:i.columnProp(u,"showApplyButton"),showMatchModes:i.columnProp(u,"showFilterMatchModes"),showAddButton:i.columnProp(u,"showAddButton"),matchModeOptions:i.columnProp(u,"filterMatchModeOptions"),maxConstraints:i.columnProp(u,"maxConstraints"),onOperatorChange:e[18]||(e[18]=function(f){return t.$emit("operator-change",f)}),onMatchmodeChange:e[19]||(e[19]=function(f){return t.$emit("matchmode-change",f)}),onConstraintAdd:e[20]||(e[20]=function(f){return t.$emit("constraint-add",f)}),onConstraintRemove:e[21]||(e[21]=function(f){return t.$emit("constraint-remove",f)}),onApplyClick:e[22]||(e[22]=function(f){return t.$emit("apply-click",f)}),column:u,unstyled:t.unstyled,pt:t.pt},null,8,["field","type","showMenu","filterElement","filterHeaderTemplate","filterFooterTemplate","filterClearTemplate","filterApplyTemplate","filterIconTemplate","filterAddIconTemplate","filterRemoveIconTemplate","filterClearIconTemplate","filters","filtersStore","filterInputProps","filterMenuStyle","filterMenuClass","showOperator","showClearButton","showApplyButton","showMatchModes","showAddButton","matchModeOptions","maxConstraints","column","unstyled","pt"])):a.createCommentVNode("",!0)],16)):a.createCommentVNode("",!0)],64)}),128))],16)):a.createCommentVNode("",!0)],64))],16)}Y5.render=FI;function $s(t){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$s(t)}var HI=["expanded"];function _I(t,e){if(t==null)return{};var n=zI(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function zI(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Q5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Qr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Q5(Object(n),!0).forEach(function(r){jI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jI(t,e,n){return e=ZI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ZI(t){var e=WI(t,"string");return $s(e)=="symbol"?e:String(e)}function WI(t,e){if($s(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function X5(t,e){return GI(t)||KI(t,e)||vu(t,e)||UI()}function UI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
199
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KI(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function GI(t){if(Array.isArray(t))return t}function Fs(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=vu(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
200
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function we(t){return JI(t)||YI(t)||vu(t)||qI()}function qI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
201
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vu(t,e){if(t){if(typeof t=="string")return Cu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cu(t,e)}}function YI(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function JI(t){if(Array.isArray(t))return Cu(t)}function Cu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var e3={name:"DataTable",extends:RA,inheritAttrs:!1,emits:["value-change","update:first","update:rows","page","update:sortField","update:sortOrder","update:multiSortMeta","sort","filter","row-click","row-dblclick","update:selection","row-select","row-unselect","update:contextMenuSelection","row-contextmenu","row-unselect-all","row-select-all","select-all-change","column-resize-end","column-reorder","row-reorder","update:expandedRows","row-collapse","row-expand","update:expandedRowGroups","rowgroup-collapse","rowgroup-expand","update:filters","state-restore","state-save","cell-edit-init","cell-edit-complete","cell-edit-cancel","update:editingRows","row-edit-init","row-edit-save","row-edit-cancel"],provide:function(){return{$columns:this.d_columns,$columnGroups:this.d_columnGroups}},data:function(){return{d_first:this.first,d_rows:this.rows,d_sortField:this.sortField,d_sortOrder:this.sortOrder,d_nullSortOrder:this.nullSortOrder,d_multiSortMeta:this.multiSortMeta?we(this.multiSortMeta):[],d_groupRowsSortMeta:null,d_selectionKeys:null,d_columnOrder:null,d_editingRowKeys:null,d_editingMeta:{},d_filters:this.cloneFilters(this.filters),d_columns:new Mo({type:"Column"}),d_columnGroups:new Mo({type:"ColumnGroup"})}},rowTouched:!1,anchorRowIndex:null,rangeRowIndex:null,documentColumnResizeListener:null,documentColumnResizeEndListener:null,lastResizeHelperX:null,resizeColumnElement:null,columnResizing:!1,colReorderIconWidth:null,colReorderIconHeight:null,draggedColumn:null,draggedColumnElement:null,draggedRowIndex:null,droppedRowIndex:null,rowDragging:null,columnWidthsState:null,tableWidthState:null,columnWidthsRestored:!1,watch:{first:function(e){this.d_first=e},rows:function(e){this.d_rows=e},sortField:function(e){this.d_sortField=e},sortOrder:function(e){this.d_sortOrder=e},nullSortOrder:function(e){this.d_nullSortOrder=e},multiSortMeta:function(e){this.d_multiSortMeta=e},selection:{immediate:!0,handler:function(e){this.dataKey&&this.updateSelectionKeys(e)}},editingRows:{immediate:!0,handler:function(e){this.dataKey&&this.updateEditingRowKeys(e)}},filters:{deep:!0,handler:function(e){this.d_filters=this.cloneFilters(e)}}},mounted:function(){this.$el.setAttribute(this.attributeSelector,""),this.responsiveLayout==="stack"&&!this.scrollable&&!this.unstyled&&this.createResponsiveStyle(),this.isStateful()&&(this.restoreState(),this.resizableColumns&&this.restoreColumnWidths()),this.editMode==="row"&&this.dataKey&&!this.d_editingRowKeys&&this.updateEditingRowKeys(this.editingRows)},beforeUnmount:function(){this.unbindColumnResizeEvents(),this.destroyStyleElement(),this.destroyResponsiveStyle(),this.d_columns.clear(),this.d_columnGroups.clear()},updated:function(){this.isStateful()&&this.saveState(),this.editMode==="row"&&this.dataKey&&!this.d_editingRowKeys&&this.updateEditingRowKeys(this.editingRows)},methods:{columnProp:function(e,n){return M.getVNodeProp(e,n)},onPage:function(e){var n=this;this.clearEditingMetaData(),this.d_first=e.first,this.d_rows=e.rows;var r=this.createLazyLoadEvent(e);r.pageCount=e.pageCount,r.page=e.page,this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",r),this.$nextTick(function(){n.$emit("value-change",n.processedData)})},onColumnHeaderClick:function(e){var n=this,r=e.originalEvent,o=e.column;if(this.columnProp(o,"sortable")){var i=r.target,s=this.columnProp(o,"sortField")||this.columnProp(o,"field");if(O.getAttribute(i,"data-p-sortable-column")===!0||O.getAttribute(i,"data-pc-section")==="headertitle"||O.getAttribute(i,"data-pc-section")==="headercontent"||O.getAttribute(i,"data-pc-section")==="sorticon"||O.getAttribute(i.parentElement,"data-pc-section")==="sorticon"||O.getAttribute(i.parentElement.parentElement,"data-pc-section")==="sorticon"||i.closest('[data-p-sortable-column="true"]')&&!i.closest('[data-pc-section="filtermenubutton"]')&&!O.isClickable(r.target)){if(O.clearSelection(),this.sortMode==="single")this.d_sortField===s?this.removableSort&&this.d_sortOrder*-1===this.defaultSortOrder?(this.d_sortOrder=null,this.d_sortField=null):this.d_sortOrder=this.d_sortOrder*-1:(this.d_sortOrder=this.defaultSortOrder,this.d_sortField=s),this.$emit("update:sortField",this.d_sortField),this.$emit("update:sortOrder",this.d_sortOrder),this.resetPage();else if(this.sortMode==="multiple"){var l=r.metaKey||r.ctrlKey;l||(this.d_multiSortMeta=this.d_multiSortMeta.filter(function(c){return c.field===s})),this.addMultiSortField(s),this.$emit("update:multiSortMeta",this.d_multiSortMeta)}this.$emit("sort",this.createLazyLoadEvent(r)),this.$nextTick(function(){n.$emit("value-change",n.processedData)})}}},sortSingle:function(e){var n=this;if(this.clearEditingMetaData(),this.groupRowsBy&&this.groupRowsBy===this.sortField)return this.d_multiSortMeta=[{field:this.sortField,order:this.sortOrder||this.defaultSortOrder},{field:this.d_sortField,order:this.d_sortOrder}],this.sortMultiple(e);var r=we(e),o=new Map,i=Fs(r),s;try{for(i.s();!(s=i.n()).done;){var l=s.value;o.set(l,M.resolveFieldData(l,this.d_sortField))}}catch(u){i.e(u)}finally{i.f()}var c=M.localeComparator();return r.sort(function(u,d){var f=o.get(u),p=o.get(d);return M.sort(f,p,n.d_sortOrder,c,n.d_nullSortOrder)}),r},sortMultiple:function(e){var n=this;if(this.clearEditingMetaData(),this.groupRowsBy&&(this.d_groupRowsSortMeta||this.d_multiSortMeta.length&&this.groupRowsBy===this.d_multiSortMeta[0].field)){var r=this.d_multiSortMeta[0];!this.d_groupRowsSortMeta&&(this.d_groupRowsSortMeta=r),r.field!==this.d_groupRowsSortMeta.field&&(this.d_multiSortMeta=[this.d_groupRowsSortMeta].concat(we(this.d_multiSortMeta)))}var o=we(e);return o.sort(function(i,s){return n.multisortField(i,s,0)}),o},multisortField:function(e,n,r){var o=M.resolveFieldData(e,this.d_multiSortMeta[r].field),i=M.resolveFieldData(n,this.d_multiSortMeta[r].field),s=M.localeComparator();return o===i?this.d_multiSortMeta.length-1>r?this.multisortField(e,n,r+1):0:M.sort(o,i,this.d_multiSortMeta[r].order,s,this.d_nullSortOrder)},addMultiSortField:function(e){var n=this.d_multiSortMeta.findIndex(function(r){return r.field===e});n>=0?this.removableSort&&this.d_multiSortMeta[n].order*-1===this.defaultSortOrder?this.d_multiSortMeta.splice(n,1):this.d_multiSortMeta[n]={field:e,order:this.d_multiSortMeta[n].order*-1}:this.d_multiSortMeta.push({field:e,order:this.defaultSortOrder}),this.d_multiSortMeta=we(this.d_multiSortMeta)},getActiveFilters:function(e){var n=function(s){var l=X5(s,2),c=l[0],u=l[1];if(u.constraints){var d=u.constraints.filter(function(f){return f.value!==null});if(d.length>0)return[c,Qr(Qr({},u),{},{constraints:d})]}else if(u.value!==null)return[c,u]},r=function(s){return s!==void 0},o=Object.entries(e).map(n).filter(r);return Object.fromEntries(o)},filter:function(e){var n=this;if(e){this.clearEditingMetaData();var r=this.getActiveFilters(this.filters),o;r.global&&(o=this.globalFilterFields||this.columns.map(function(v){return n.columnProp(v,"filterField")||n.columnProp(v,"field")}));for(var i=[],s=0;s<e.length;s++){var l=!0,c=!1,u=!1;for(var d in r)if(Object.prototype.hasOwnProperty.call(r,d)&&d!=="global"){u=!0;var f=d,p=r[f];if(p.operator){var h=Fs(p.constraints),m;try{for(h.s();!(m=h.n()).done;){var y=m.value;if(l=this.executeLocalFilter(f,e[s],y),p.operator===Cl.OR&&l||p.operator===Cl.AND&&!l)break}}catch(v){h.e(v)}finally{h.f()}}else l=this.executeLocalFilter(f,e[s],p);if(!l)break}if(l&&r.global&&!c&&o)for(var g=0;g<o.length;g++){var b=o[g];if(c=ru.filters[r.global.matchMode||Re.CONTAINS](M.resolveFieldData(e[s],b),r.global.value,this.filterLocale),c)break}var w=void 0;r.global?w=u?u&&l&&c:c:w=u&&l,w&&i.push(e[s])}(i.length===this.value.length||Object.keys(r).length==0)&&(i=e);var C=this.createLazyLoadEvent();return C.filteredValue=i,this.$emit("filter",C),this.$nextTick(function(){n.$emit("value-change",n.processedData)}),i}},executeLocalFilter:function(e,n,r){var o=r.value,i=r.matchMode||Re.STARTS_WITH,s=M.resolveFieldData(n,e),l=ru.filters[i];return l(s,o,this.filterLocale)},onRowClick:function(e){var n=e.originalEvent,r=this.$refs.bodyRef&&this.$refs.bodyRef.$el,o=O.findSingle(r,'tr[data-p-selectable-row="true"][tabindex="0"]');if(!O.isClickable(n.target)){if(this.$emit("row-click",e),this.selectionMode){var i=e.data,s=this.d_first+e.index;if(this.isMultipleSelectionMode()&&n.shiftKey&&this.anchorRowIndex!=null)O.clearSelection(),this.rangeRowIndex=s,this.selectRange(n);else{var l=this.isSelected(i),c=this.rowTouched?!1:this.metaKeySelection;if(this.anchorRowIndex=s,this.rangeRowIndex=s,c){var u=n.metaKey||n.ctrlKey;if(l&&u){if(this.isSingleSelectionMode())this.$emit("update:selection",null);else{var d=this.findIndexInSelection(i),f=this.selection.filter(function(v,E){return E!=d});this.$emit("update:selection",f)}this.$emit("row-unselect",{originalEvent:n,data:i,index:s,type:"row"})}else{if(this.isSingleSelectionMode())this.$emit("update:selection",i);else if(this.isMultipleSelectionMode()){var p=u?this.selection||[]:[];p=[].concat(we(p),[i]),this.$emit("update:selection",p)}this.$emit("row-select",{originalEvent:n,data:i,index:s,type:"row"})}}else if(this.selectionMode==="single")l?(this.$emit("update:selection",null),this.$emit("row-unselect",{originalEvent:n,data:i,index:s,type:"row"})):(this.$emit("update:selection",i),this.$emit("row-select",{originalEvent:n,data:i,index:s,type:"row"}));else if(this.selectionMode==="multiple")if(l){var h=this.findIndexInSelection(i),m=this.selection.filter(function(v,E){return E!=h});this.$emit("update:selection",m),this.$emit("row-unselect",{originalEvent:n,data:i,index:s,type:"row"})}else{var y=this.selection?[].concat(we(this.selection),[i]):[i];this.$emit("update:selection",y),this.$emit("row-select",{originalEvent:n,data:i,index:s,type:"row"})}}}if(this.rowTouched=!1,o){var g,b,w;if(((g=n.target)===null||g===void 0?void 0:g.getAttribute("data-pc-section"))==="rowtogglericon"||((b=n.target)===null||b===void 0||(b=b.parentElement)===null||b===void 0?void 0:b.getAttribute("data-pc-section"))==="rowtogglericon")return;var C=(w=n.target)===null||w===void 0?void 0:w.closest('tr[data-p-selectable-row="true"]');o.tabIndex="-1",C.tabIndex="0"}}},onRowDblClick:function(e){var n=e.originalEvent;O.isClickable(n.target)||this.$emit("row-dblclick",e)},onRowRightClick:function(e){this.contextMenu&&(O.clearSelection(),e.originalEvent.target.focus()),this.$emit("update:contextMenuSelection",e.data),this.$emit("row-contextmenu",e)},onRowTouchEnd:function(){this.rowTouched=!0},onRowKeyDown:function(e,n){var r=e.originalEvent,o=e.data,i=e.index,s=r.metaKey||r.ctrlKey;if(this.selectionMode){var l=r.target;switch(r.code){case"ArrowDown":this.onArrowDownKey(r,l,i,n);break;case"ArrowUp":this.onArrowUpKey(r,l,i,n);break;case"Home":this.onHomeKey(r,l,i,n);break;case"End":this.onEndKey(r,l,i,n);break;case"Enter":case"NumpadEnter":this.onEnterKey(r,o,i);break;case"Space":this.onSpaceKey(r,o,i,n);break;case"Tab":this.onTabKey(r,i);break;default:if(r.code==="KeyA"&&s&&this.isMultipleSelectionMode()){var c=this.dataToRender(n.rows);this.$emit("update:selection",c)}r.preventDefault();break}}},onArrowDownKey:function(e,n,r,o){var i=this.findNextSelectableRow(n);if(i&&this.focusRowChange(n,i),e.shiftKey){var s=this.dataToRender(o.rows),l=r+1>=s.length?s.length-1:r+1;this.onRowClick({originalEvent:e,data:s[l],index:l})}e.preventDefault()},onArrowUpKey:function(e,n,r,o){var i=this.findPrevSelectableRow(n);if(i&&this.focusRowChange(n,i),e.shiftKey){var s=this.dataToRender(o.rows),l=r-1<=0?0:r-1;this.onRowClick({originalEvent:e,data:s[l],index:l})}e.preventDefault()},onHomeKey:function(e,n,r,o){var i=this.findFirstSelectableRow();if(i&&this.focusRowChange(n,i),e.ctrlKey&&e.shiftKey){var s=this.dataToRender(o.rows);this.$emit("update:selection",s.slice(0,r+1))}e.preventDefault()},onEndKey:function(e,n,r,o){var i=this.findLastSelectableRow();if(i&&this.focusRowChange(n,i),e.ctrlKey&&e.shiftKey){var s=this.dataToRender(o.rows);this.$emit("update:selection",s.slice(r,s.length))}e.preventDefault()},onEnterKey:function(e,n,r){this.onRowClick({originalEvent:e,data:n,index:r}),e.preventDefault()},onSpaceKey:function(e,n,r,o){if(this.onEnterKey(e,n,r),e.shiftKey&&this.selection!==null){var i=this.dataToRender(o.rows),s;if(this.selection.length>0){var l,c;l=M.findIndexInList(this.selection[0],i),c=M.findIndexInList(this.selection[this.selection.length-1],i),s=r<=l?c:l}else s=M.findIndexInList(this.selection,i);var u=s!==r?i.slice(Math.min(s,r),Math.max(s,r)+1):n;this.$emit("update:selection",u)}},onTabKey:function(e,n){var r=this.$refs.bodyRef&&this.$refs.bodyRef.$el,o=O.find(r,'tr[data-p-selectable-row="true"]');if(e.code==="Tab"&&o&&o.length>0){var i=O.findSingle(r,'tr[data-p-highlight="true"]'),s=O.findSingle(r,'tr[data-p-selectable-row="true"][tabindex="0"]');i?(i.tabIndex="0",s&&s!==i&&(s.tabIndex="-1")):(o[0].tabIndex="0",s!==o[0]&&(o[n].tabIndex="-1"))}},findNextSelectableRow:function(e){var n=e.nextElementSibling;return n?O.getAttribute(n,"data-p-selectable-row")===!0?n:this.findNextSelectableRow(n):null},findPrevSelectableRow:function(e){var n=e.previousElementSibling;return n?O.getAttribute(n,"data-p-selectable-row")===!0?n:this.findPrevSelectableRow(n):null},findFirstSelectableRow:function(){var e=O.findSingle(this.$refs.table,'tr[data-p-selectable-row="true"]');return e},findLastSelectableRow:function(){var e=O.find(this.$refs.table,'tr[data-p-selectable-row="true"]');return e?e[e.length-1]:null},focusRowChange:function(e,n){e.tabIndex="-1",n.tabIndex="0",O.focus(n)},toggleRowWithRadio:function(e){var n=e.data;this.isSelected(n)?(this.$emit("update:selection",null),this.$emit("row-unselect",{originalEvent:e.originalEvent,data:n,index:e.index,type:"radiobutton"})):(this.$emit("update:selection",n),this.$emit("row-select",{originalEvent:e.originalEvent,data:n,index:e.index,type:"radiobutton"}))},toggleRowWithCheckbox:function(e){var n=e.data;if(this.isSelected(n)){var r=this.findIndexInSelection(n),o=this.selection.filter(function(s,l){return l!=r});this.$emit("update:selection",o),this.$emit("row-unselect",{originalEvent:e.originalEvent,data:n,index:e.index,type:"checkbox"})}else{var i=this.selection?we(this.selection):[];i=[].concat(we(i),[n]),this.$emit("update:selection",i),this.$emit("row-select",{originalEvent:e.originalEvent,data:n,index:e.index,type:"checkbox"})}},toggleRowsWithCheckbox:function(e){if(this.selectAll!==null)this.$emit("select-all-change",e);else{var n=e.originalEvent,r=e.checked,o=[];r?(o=this.frozenValue?[].concat(we(this.frozenValue),we(this.processedData)):this.processedData,this.$emit("row-select-all",{originalEvent:n,data:o})):this.$emit("row-unselect-all",{originalEvent:n}),this.$emit("update:selection",o)}},isSingleSelectionMode:function(){return this.selectionMode==="single"},isMultipleSelectionMode:function(){return this.selectionMode==="multiple"},isSelected:function(e){return e&&this.selection?this.dataKey?this.d_selectionKeys?this.d_selectionKeys[M.resolveFieldData(e,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1},findIndexInSelection:function(e){return this.findIndex(e,this.selection)},findIndex:function(e,n){var r=-1;if(n&&n.length){for(var o=0;o<n.length;o++)if(this.equals(e,n[o])){r=o;break}}return r},updateSelectionKeys:function(e){if(this.d_selectionKeys={},Array.isArray(e)){var n=Fs(e),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;this.d_selectionKeys[String(M.resolveFieldData(o,this.dataKey))]=1}}catch(i){n.e(i)}finally{n.f()}}else this.d_selectionKeys[String(M.resolveFieldData(e,this.dataKey))]=1},updateEditingRowKeys:function(e){if(e&&e.length){this.d_editingRowKeys={};var n=Fs(e),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;this.d_editingRowKeys[String(M.resolveFieldData(o,this.dataKey))]=1}}catch(i){n.e(i)}finally{n.f()}}else this.d_editingRowKeys=null},equals:function(e,n){return this.compareSelectionBy==="equals"?e===n:M.equals(e,n,this.dataKey)},selectRange:function(e){var n,r;this.rangeRowIndex>this.anchorRowIndex?(n=this.anchorRowIndex,r=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(n=this.rangeRowIndex,r=this.anchorRowIndex):(n=this.rangeRowIndex,r=this.rangeRowIndex),this.lazy&&this.paginator&&(n-=this.first,r-=this.first);for(var o=this.processedData,i=[],s=n;s<=r;s++){var l=o[s];i.push(l),this.$emit("row-select",{originalEvent:e,data:l,type:"row"})}this.$emit("update:selection",i)},exportCSV:function(e,n){var r=this,o="\uFEFF";n||(n=this.processedData,e&&e.selectionOnly?n=this.selection||[]:this.frozenValue&&(n=n?[].concat(we(this.frozenValue),we(n)):this.frozenValue));for(var i=!1,s=0;s<this.columns.length;s++){var l=this.columns[s];this.columnProp(l,"exportable")!==!1&&this.columnProp(l,"field")&&(i?o+=this.csvSeparator:i=!0,o+='"'+(this.columnProp(l,"exportHeader")||this.columnProp(l,"header")||this.columnProp(l,"field"))+'"')}n&&n.forEach(function(f){o+=`
195
+ `)}this.styleElement.innerHTML=r}},hasBreakpoints:function(){return uu(this.template)==="object"},setPaginatorAttribute:function(){var e=this;this.$refs.paginator&&this.$refs.paginator.length>=0&&kD(this.$refs.paginator).forEach(function(n){n.setAttribute(e.attributeSelector,"")})},getAriaLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[e]:void 0}},computed:{templateItems:function(){var e={};if(this.hasBreakpoints()){e=this.template,e.default||(e.default="FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown");for(var n in e)e[n]=this.template[n].split(" ").map(function(r){return r.trim()});return e}return e.default=this.template.split(" ").map(function(r){return r.trim()}),e},page:function(){return Math.floor(this.d_first/this.d_rows)},pageCount:function(){return Math.ceil(this.totalRecords/this.d_rows)},isFirstPage:function(){return this.page===0},isLastPage:function(){return this.page===this.pageCount-1},calculatePageLinkBoundaries:function(){var e=this.pageCount,n=Math.min(this.pageLinkSize,e),r=Math.max(0,Math.ceil(this.page-n/2)),o=Math.min(e-1,r+n-1),i=this.pageLinkSize-(o-r+1);return r=Math.max(0,r-i),[r,o]},pageLinks:function(){for(var e=[],n=this.calculatePageLinkBoundaries,r=n[0],o=n[1],i=r;i<=o;i++)e.push(i+1);return e},currentState:function(){return{page:this.page,first:this.d_first,rows:this.d_rows}},empty:function(){return this.pageCount===0},currentPage:function(){return this.pageCount>0?this.page+1:0},attributeSelector:function(){return qn()}},components:{CurrentPageReport:a5,FirstPageLink:l5,LastPageLink:d5,NextPageLink:f5,PageLinks:p5,PrevPageLink:h5,RowsPerPageDropdown:m5,JumpToPageDropdown:c5,JumpToPageInput:u5}};function DD(t,e,n,r,o,i){var s=a.resolveComponent("FirstPageLink"),l=a.resolveComponent("PrevPageLink"),c=a.resolveComponent("NextPageLink"),u=a.resolveComponent("LastPageLink"),d=a.resolveComponent("PageLinks"),f=a.resolveComponent("CurrentPageReport"),p=a.resolveComponent("RowsPerPageDropdown"),h=a.resolveComponent("JumpToPageDropdown"),m=a.resolveComponent("JumpToPageInput");return t.alwaysShow||i.pageLinks&&i.pageLinks.length>1?(a.openBlock(),a.createElementBlock("nav",a.normalizeProps(a.mergeProps({key:0},t.ptmi("paginatorWrapper"))),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.templateItems,function(y,g){return a.openBlock(),a.createElementBlock("div",a.mergeProps({key:g,ref_for:!0,ref:"paginator",class:t.cx("paginator",{key:g})},t.ptm("root")),[t.$slots.start?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("start")},t.ptm("start")),[a.renderSlot(t.$slots,"start",{state:i.currentState})],16)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y,function(b){return a.openBlock(),a.createElementBlock(a.Fragment,{key:b},[b==="FirstPageLink"?(a.openBlock(),a.createBlock(s,{key:0,"aria-label":i.getAriaLabel("firstPageLabel"),template:t.$slots.firstpagelinkicon,onClick:e[0]||(e[0]=function(w){return i.changePageToFirst(w)}),disabled:i.isFirstPage||i.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):b==="PrevPageLink"?(a.openBlock(),a.createBlock(l,{key:1,"aria-label":i.getAriaLabel("prevPageLabel"),template:t.$slots.prevpagelinkicon,onClick:e[1]||(e[1]=function(w){return i.changePageToPrev(w)}),disabled:i.isFirstPage||i.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):b==="NextPageLink"?(a.openBlock(),a.createBlock(c,{key:2,"aria-label":i.getAriaLabel("nextPageLabel"),template:t.$slots.nextpagelinkicon,onClick:e[2]||(e[2]=function(w){return i.changePageToNext(w)}),disabled:i.isLastPage||i.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):b==="LastPageLink"?(a.openBlock(),a.createBlock(u,{key:3,"aria-label":i.getAriaLabel("lastPageLabel"),template:t.$slots.lastpagelinkicon,onClick:e[3]||(e[3]=function(w){return i.changePageToLast(w)}),disabled:i.isLastPage||i.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):b==="PageLinks"?(a.openBlock(),a.createBlock(d,{key:4,"aria-label":i.getAriaLabel("pageLabel"),value:i.pageLinks,page:i.page,onClick:e[4]||(e[4]=function(w){return i.changePageLink(w)}),pt:t.pt},null,8,["aria-label","value","page","pt"])):b==="CurrentPageReport"?(a.openBlock(),a.createBlock(f,{key:5,"aria-live":"polite",template:t.currentPageReportTemplate,currentPage:i.currentPage,page:i.page,pageCount:i.pageCount,first:o.d_first,rows:o.d_rows,totalRecords:t.totalRecords,unstyled:t.unstyled,pt:t.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","unstyled","pt"])):b==="RowsPerPageDropdown"&&t.rowsPerPageOptions?(a.openBlock(),a.createBlock(p,{key:6,"aria-label":i.getAriaLabel("rowsPerPageLabel"),rows:o.d_rows,options:t.rowsPerPageOptions,onRowsChange:e[5]||(e[5]=function(w){return i.onRowChange(w)}),disabled:i.empty,templates:t.$slots,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","rows","options","disabled","templates","unstyled","pt"])):b==="JumpToPageDropdown"?(a.openBlock(),a.createBlock(h,{key:7,"aria-label":i.getAriaLabel("jumpToPageDropdownLabel"),page:i.page,pageCount:i.pageCount,onPageChange:e[6]||(e[6]=function(w){return i.changePage(w)}),disabled:i.empty,templates:t.$slots,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","page","pageCount","disabled","templates","unstyled","pt"])):b==="JumpToPageInput"?(a.openBlock(),a.createBlock(m,{key:8,page:i.currentPage,onPageChange:e[7]||(e[7]=function(w){return i.changePage(w)}),disabled:i.empty,unstyled:t.unstyled,pt:t.pt},null,8,["page","disabled","unstyled","pt"])):a.createCommentVNode("",!0)],64)}),128)),t.$slots.end?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:t.cx("end")},t.ptm("end")),[a.renderSlot(t.$slots,"end",{state:i.currentState})],16)):a.createCommentVNode("",!0)],16)}),128))],16)):a.createCommentVNode("",!0)}b5.render=DD;var AD={root:function(e){var n=e.instance,r=e.props;return["p-datatable p-component",{"p-datatable-hoverable-rows":r.rowHover||r.selectionMode,"p-datatable-resizable":r.resizableColumns,"p-datatable-resizable-fit":r.resizableColumns&&r.columnResizeMode==="fit","p-datatable-scrollable":r.scrollable,"p-datatable-flex-scrollable":r.scrollable&&r.scrollHeight==="flex","p-datatable-responsive-stack":r.responsiveLayout==="stack","p-datatable-responsive-scroll":r.responsiveLayout==="scroll","p-datatable-striped":r.stripedRows,"p-datatable-gridlines":r.showGridlines,"p-datatable-grouped-header":n.headerColumnGroup!=null,"p-datatable-grouped-footer":n.footerColumnGroup!=null,"p-datatable-sm":r.size==="small","p-datatable-lg":r.size==="large"}]},loadingOverlay:"p-datatable-loading-overlay p-component-overlay",loadingIcon:"p-datatable-loading-icon",header:"p-datatable-header",paginator:function(e){var n=e.instance;return n.paginatorTop?"p-paginator-top":n.paginatorBottom?"p-paginator-bottom":""},wrapper:"p-datatable-wrapper",table:function(e){var n=e.props;return["p-datatable-table",{"p-datatable-scrollable-table":n.scrollable,"p-datatable-resizable-table":n.resizableColumns,"p-datatable-resizable-table-fit":n.resizableColumns&&n.columnResizeMode==="fit"}]},thead:"p-datatable-thead",headerCell:function(e){var n=e.instance,r=e.props,o=e.column;return o&&!n.columnProp(o,"hidden")&&(r.rowGroupMode!=="subheader"||r.groupRowsBy!==n.columnProp(o,"field"))?["p-filter-column",{"p-frozen-column":n.columnProp(o,"frozen")}]:[{"p-sortable-column":n.columnProp("sortable"),"p-resizable-column":n.resizableColumns,"p-highlight":n.isColumnSorted(),"p-filter-column":r.filterColumn,"p-frozen-column":n.columnProp("frozen"),"p-reorderable-column":r.reorderableColumns}]},columnResizer:"p-column-resizer",headerContent:"p-column-header-content",headerTitle:"p-column-title",sortIcon:"p-sortable-column-icon",sortBadge:"p-sortable-column-badge",columnFilter:function(e){var n=e.props;return["p-column-filter p-fluid",{"p-column-filter-row":n.display==="row","p-column-filter-menu":n.display==="menu"}]},filterInput:"p-fluid p-column-filter-element",filterMenuButton:function(e){var n=e.instance;return["p-column-filter-menu-button p-link",{"p-column-filter-menu-button-open":n.overlayVisible,"p-column-filter-menu-button-active":n.hasFilter()}]},headerFilterClearButton:function(e){var n=e.instance;return["p-column-filter-clear-button p-link",{"p-hidden-space":!n.hasRowFilter()}]},filterOverlay:function(e){var n=e.instance,r=e.props;return[{"p-column-filter-overlay p-component p-fluid":!0,"p-column-filter-overlay-menu":r.display==="menu","p-ripple-disabled":n.$primevue.config.ripple===!1}]},filterRowItems:"p-column-filter-row-items",filterRowItem:function(e){var n=e.instance,r=e.matchMode;return["p-column-filter-row-item",{"p-highlight":r&&n.isRowMatchModeSelected(r.value)}]},filterSeparator:"p-column-filter-separator",filterOperator:"p-column-filter-operator",filterOperatorDropdown:"p-column-filter-operator-dropdown",filterConstraints:"p-column-filter-constraints",filterConstraint:"p-column-filter-constraint",filterMatchModeDropdown:"p-column-filter-matchmode-dropdown",filterRemoveButton:"p-column-filter-remove-button p-button-text p-button-danger p-button-sm",filterAddRule:"p-column-filter-add-rule",filterAddRuleButton:"p-column-filter-add-button p-button-text p-button-sm",filterButtonbar:"p-column-filter-buttonbar",filterClearButton:"p-button-outlined p-button-sm",filterApplyButton:"p-button-sm",tbody:function(e){var n=e.props;return n.frozenRow?"p-datatable-tbody p-datatable-frozen-tbody":"p-datatable-tbody"},rowgroupHeader:"p-rowgroup-header",rowGroupToggler:"p-row-toggler p-link",rowGroupTogglerIcon:"p-row-toggler-icon",row:function(e){var n=e.instance,r=e.props,o=e.index,i=e.columnSelectionMode,s=[];return r.selectionMode&&s.push("p-selectable-row"),r.selection&&s.push({"p-highlight":i?n.isSelected&&n.$parentInstance.$parentInstance.highlightOnSelect:n.isSelected}),r.contextMenuSelection&&s.push({"p-highlight-contextmenu":n.isSelectedWithContextMenu}),s.push(o%2===0?"p-row-even":"p-row-odd"),s},rowExpansion:"p-datatable-row-expansion",rowgroupFooter:"p-rowgroup-footer",emptyMessage:"p-datatable-emptymessage",bodyCell:function(e){var n=e.instance;return[{"p-selection-column":n.columnProp("selectionMode")!=null,"p-editable-column":n.isEditable(),"p-cell-editing":n.d_editing,"p-frozen-column":n.columnProp("frozen")}]},columnTitle:"p-column-title",rowReorderIcon:"p-datatable-reorderablerow-handle",rowToggler:"p-row-toggler p-link",rowTogglerIcon:"p-row-toggler-icon",rowEditorInitButton:"p-row-editor-init p-link",rowEditorInitIcon:"p-row-editor-init-icon",rowEditorSaveButton:"p-row-editor-save p-link",rowEditorSaveIcon:"p-row-editor-save-icon",rowEditorCancelButton:"p-row-editor-cancel p-link",rowEditorCancelIcon:"p-row-editor-cancel-icon",tfoot:"p-datatable-tfoot",footerCell:function(e){var n=e.instance;return[{"p-frozen-column":n.columnProp("frozen")}]},virtualScrollerSpacer:"p-datatable-virtualscroller-spacer",footer:"p-datatable-footer",resizeHelper:"p-column-resizer-helper",reorderIndicatorUp:"p-datatable-reorder-indicator-up",reorderIndicatorDown:"p-datatable-reorder-indicator-down"},ID={wrapper:{overflow:"auto"},thead:{position:"sticky"},tfoot:{position:"sticky"}},ND=je.extend({name:"datatable",classes:AD,inlineStyles:ID}),fu={name:"ChevronRightIcon",extends:be},BD=a.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1),RD=[BD];function LD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),RD,16)}fu.render=LD;var w5={name:"BarsIcon",extends:be},VD=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z",fill:"currentColor"},null,-1),$D=[VD];function FD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),$D,16)}w5.render=FD;var v5={name:"PencilIcon",extends:be},HD=a.createElementVNode("path",{d:"M0.609628 13.959C0.530658 13.9599 0.452305 13.9451 0.379077 13.9156C0.305849 13.8861 0.239191 13.8424 0.18294 13.787C0.118447 13.7234 0.0688234 13.6464 0.0376166 13.5614C0.00640987 13.4765 -0.00560954 13.3857 0.00241768 13.2956L0.25679 10.1501C0.267698 10.0041 0.331934 9.86709 0.437312 9.76516L9.51265 0.705715C10.0183 0.233014 10.6911 -0.0203041 11.3835 0.00127367C12.0714 0.00660201 12.7315 0.27311 13.2298 0.746671C13.7076 1.23651 13.9824 1.88848 13.9992 2.57201C14.0159 3.25554 13.7733 3.92015 13.32 4.4327L4.23648 13.5331C4.13482 13.6342 4.0017 13.6978 3.85903 13.7133L0.667067 14L0.609628 13.959ZM1.43018 10.4696L1.25787 12.714L3.50619 12.5092L12.4502 3.56444C12.6246 3.35841 12.7361 3.10674 12.7714 2.83933C12.8067 2.57193 12.7644 2.30002 12.6495 2.05591C12.5346 1.8118 12.3519 1.60575 12.1231 1.46224C11.8943 1.31873 11.6291 1.2438 11.3589 1.24633C11.1813 1.23508 11.0033 1.25975 10.8355 1.31887C10.6677 1.37798 10.5136 1.47033 10.3824 1.59036L1.43018 10.4696Z",fill:"currentColor"},null,-1),_D=[HD];function zD(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),_D,16)}v5.render=zD;var jD={root:function(e){var n=e.instance,r=e.props;return["p-checkbox p-component",{"p-highlight":n.checked,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]},box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},ZD=je.extend({name:"checkbox",classes:jD}),WD={name:"BaseCheckbox",extends:re,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:ZD,provide:function(){return{$parentInstance:this}}};function UD(t){return YD(t)||qD(t)||GD(t)||KD()}function KD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
196
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GD(t,e){if(t){if(typeof t=="string")return pu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pu(t,e)}}function qD(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function YD(t){if(Array.isArray(t))return pu(t)}function pu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var hu={name:"Checkbox",extends:WD,inheritAttrs:!1,emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){var n=this;if(!this.disabled&&!this.readonly){var r;this.binary?r=this.checked?this.falseValue:this.trueValue:this.checked?r=this.modelValue.filter(function(o){return!M.equals(o,n.value)}):r=this.modelValue?[].concat(UD(this.modelValue),[this.value]):[this.value],this.$emit("update:modelValue",r),this.$emit("change",e)}},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.binary?this.modelValue===this.trueValue:M.contains(this.value,this.modelValue)}},components:{CheckIcon:Wo}},JD=["data-p-highlight","data-p-disabled"],QD=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label","aria-invalid"];function XD(t,e,n,r,o,i){var s=a.resolveComponent("CheckIcon");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:t.cx("root")},i.getPTOptions("root"),{"data-p-highlight":i.checked,"data-p-disabled":t.disabled}),[a.createElementVNode("input",a.mergeProps({id:t.inputId,type:"checkbox",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:t.value,name:t.name,checked:i.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,required:t.required,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-invalid":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[1]||(e[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onChange:e[2]||(e[2]=function(){return i.onChange&&i.onChange.apply(i,arguments)})},i.getPTOptions("input")),null,16,QD),a.createElementVNode("div",a.mergeProps({class:t.cx("box")},i.getPTOptions("box")),[a.renderSlot(t.$slots,"icon",{checked:i.checked,class:a.normalizeClass(t.cx("icon"))},function(){return[i.checked?(a.openBlock(),a.createBlock(s,a.mergeProps({key:0,class:t.cx("icon")},i.getPTOptions("icon")),null,16,["class"])):a.createCommentVNode("",!0)]})],16)],16,JD)}hu.render=XD;var eA={root:function(e){var n=e.instance,r=e.props;return["p-radiobutton p-component",{"p-highlight":n.checked,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]},box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},tA=je.extend({name:"radiobutton",classes:eA}),nA={name:"BaseRadioButton",extends:re,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:tA,provide:function(){return{$parentInstance:this}}},C5={name:"RadioButton",extends:nA,inheritAttrs:!1,emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){if(!this.disabled&&!this.readonly){var n=this.binary?!this.checked:this.value;this.$emit("update:modelValue",n),this.$emit("change",e)}},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.modelValue!=null&&(this.binary?!!this.modelValue:M.equals(this.modelValue,this.value))}}},rA=["data-p-highlight","data-p-disabled"],oA=["id","value","name","checked","tabindex","disabled","readonly","aria-labelledby","aria-label","aria-invalid"];function iA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:t.cx("root")},i.getPTOptions("root"),{"data-p-highlight":i.checked,"data-p-disabled":t.disabled}),[a.createElementVNode("input",a.mergeProps({id:t.inputId,type:"radio",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:t.value,name:t.name,checked:i.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-invalid":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[1]||(e[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onChange:e[2]||(e[2]=function(){return i.onChange&&i.onChange.apply(i,arguments)})},i.getPTOptions("input")),null,16,oA),a.createElementVNode("div",a.mergeProps({class:t.cx("box")},i.getPTOptions("box")),[a.createElementVNode("div",a.mergeProps({class:t.cx("icon")},i.getPTOptions("icon")),null,16)],16)],16,rA)}C5.render=iA;var sA={},aA=oe.extend({style:sA});function xs(t){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xs(t)}function S5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function k5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?S5(Object(n),!0).forEach(function(r){lA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function lA(t,e,n){return e=cA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cA(t){var e=uA(t,"string");return xs(e)=="symbol"?e:String(e)}function uA(t,e){if(xs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var dA=aA.extend("focustrap",{mounted:function(e,n){var r=n.value||{},o=r.disabled;o||(this.createHiddenFocusableElements(e,n),this.bind(e,n),this.autoElementFocus(e,n)),e.setAttribute("data-pd-focustrap",!0),this.$el=e},updated:function(e,n){var r=n.value||{},o=r.disabled;o&&this.unbind(e)},unmounted:function(e){this.unbind(e)},methods:{getComputedSelector:function(e){return':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(e??"")},bind:function(e,n){var r=this,o=n.value||{},i=o.onFocusIn,s=o.onFocusOut;e.$_pfocustrap_mutationobserver=new MutationObserver(function(l){l.forEach(function(c){if(c.type==="childList"&&!e.contains(document.activeElement)){var u=function d(f){var p=O.isFocusableElement(f)?O.isFocusableElement(f,r.getComputedSelector(e.$_pfocustrap_focusableselector))?f:O.getFirstFocusableElement(e,r.getComputedSelector(e.$_pfocustrap_focusableselector)):O.getFirstFocusableElement(f);return M.isNotEmpty(p)?p:f.nextSibling&&d(f.nextSibling)};O.focus(u(c.nextSibling))}})}),e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_mutationobserver.observe(e,{childList:!0}),e.$_pfocustrap_focusinlistener=function(l){return i&&i(l)},e.$_pfocustrap_focusoutlistener=function(l){return s&&s(l)},e.addEventListener("focusin",e.$_pfocustrap_focusinlistener),e.addEventListener("focusout",e.$_pfocustrap_focusoutlistener)},unbind:function(e){e.$_pfocustrap_mutationobserver&&e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_focusinlistener&&e.removeEventListener("focusin",e.$_pfocustrap_focusinlistener)&&(e.$_pfocustrap_focusinlistener=null),e.$_pfocustrap_focusoutlistener&&e.removeEventListener("focusout",e.$_pfocustrap_focusoutlistener)&&(e.$_pfocustrap_focusoutlistener=null)},autoFocus:function(e){this.autoElementFocus(this.$el,{value:k5(k5({},e),{},{autoFocus:!0})})},autoElementFocus:function(e,n){var r=n.value||{},o=r.autoFocusSelector,i=o===void 0?"":o,s=r.firstFocusableSelector,l=s===void 0?"":s,c=r.autoFocus,u=c===void 0?!1:c,d=O.getFirstFocusableElement(e,"[autofocus]".concat(this.getComputedSelector(i)));u&&!d&&(d=O.getFirstFocusableElement(e,this.getComputedSelector(l))),O.focus(d)},onFirstHiddenElementFocus:function(e){var n,r=e.currentTarget,o=e.relatedTarget,i=o===r.$_pfocustrap_lasthiddenfocusableelement||!((n=this.$el)!==null&&n!==void 0&&n.contains(o))?O.getFirstFocusableElement(r.parentElement,this.getComputedSelector(r.$_pfocustrap_focusableselector)):r.$_pfocustrap_lasthiddenfocusableelement;O.focus(i)},onLastHiddenElementFocus:function(e){var n,r=e.currentTarget,o=e.relatedTarget,i=o===r.$_pfocustrap_firsthiddenfocusableelement||!((n=this.$el)!==null&&n!==void 0&&n.contains(o))?O.getLastFocusableElement(r.parentElement,this.getComputedSelector(r.$_pfocustrap_focusableselector)):r.$_pfocustrap_firsthiddenfocusableelement;O.focus(i)},createHiddenFocusableElements:function(e,n){var r=this,o=n.value||{},i=o.tabIndex,s=i===void 0?0:i,l=o.firstFocusableSelector,c=l===void 0?"":l,u=o.lastFocusableSelector,d=u===void 0?"":u,f=function(y){return O.createElement("span",{class:"p-hidden-accessible p-hidden-focusable",tabIndex:s,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:y==null?void 0:y.bind(r)})},p=f(this.onFirstHiddenElementFocus),h=f(this.onLastHiddenElementFocus);p.$_pfocustrap_lasthiddenfocusableelement=h,p.$_pfocustrap_focusableselector=c,p.setAttribute("data-pc-section","firstfocusableelement"),h.$_pfocustrap_firsthiddenfocusableelement=p,h.$_pfocustrap_focusableselector=d,h.setAttribute("data-pc-section","lastfocusableelement"),e.prepend(p),e.append(h)}}}),O5={name:"FilterIcon",extends:be},fA=a.createElementVNode("path",{d:"M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z",fill:"currentColor"},null,-1),pA=[fA];function hA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),pA,16)}O5.render=hA;var E5={name:"FilterSlashIcon",extends:be},mA=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z",fill:"currentColor"},null,-1),gA=[mA];function yA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),gA,16)}E5.render=yA;var T5={name:"PlusIcon",extends:be},bA=a.createElementVNode("path",{d:"M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z",fill:"currentColor"},null,-1),wA=[bA];function vA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),wA,16)}T5.render=vA;var M5={name:"TrashIcon",extends:be},CA=a.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z",fill:"currentColor"},null,-1),SA=[CA];function kA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),SA,16)}M5.render=kA;var mu={name:"SortAltIcon",extends:be},OA=a.createElementVNode("path",{d:"M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z",fill:"currentColor"},null,-1),EA=a.createElementVNode("path",{d:"M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z",fill:"currentColor"},null,-1),TA=a.createElementVNode("path",{d:"M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z",fill:"currentColor"},null,-1),MA=a.createElementVNode("path",{d:"M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z",fill:"currentColor"},null,-1),xA=[OA,EA,TA,MA];function PA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),xA,16)}mu.render=PA;var gu={name:"SortAmountDownIcon",extends:be},DA=a.createElementVNode("path",{d:"M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z",fill:"currentColor"},null,-1),AA=[DA];function IA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),AA,16)}gu.render=IA;var yu={name:"SortAmountUpAltIcon",extends:be},NA=a.createElementVNode("path",{d:"M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z",fill:"currentColor"},null,-1),BA=[NA];function RA(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),BA,16)}yu.render=RA;var LA={name:"BaseDataTable",extends:re,props:{value:{type:Array,default:null},dataKey:{type:[String,Function],default:null},rows:{type:Number,default:0},first:{type:Number,default:0},totalRecords:{type:Number,default:0},paginator:{type:Boolean,default:!1},paginatorPosition:{type:String,default:"bottom"},alwaysShowPaginator:{type:Boolean,default:!0},paginatorTemplate:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},currentPageReportTemplate:{type:String,default:"({currentPage} of {totalPages})"},lazy:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},defaultSortOrder:{type:Number,default:1},nullSortOrder:{type:Number,default:1},multiSortMeta:{type:Array,default:null},sortMode:{type:String,default:"single"},removableSort:{type:Boolean,default:!1},filters:{type:Object,default:null},filterDisplay:{type:String,default:null},globalFilterFields:{type:Array,default:null},filterLocale:{type:String,default:void 0},selection:{type:[Array,Object],default:null},selectionMode:{type:String,default:null},compareSelectionBy:{type:String,default:"deepEquals"},metaKeySelection:{type:Boolean,default:!1},contextMenu:{type:Boolean,default:!1},contextMenuSelection:{type:Object,default:null},selectAll:{type:Boolean,default:null},rowHover:{type:Boolean,default:!1},csvSeparator:{type:String,default:","},exportFilename:{type:String,default:"download"},exportFunction:{type:Function,default:null},resizableColumns:{type:Boolean,default:!1},columnResizeMode:{type:String,default:"fit"},reorderableColumns:{type:Boolean,default:!1},expandedRows:{type:[Array,Object],default:null},expandedRowIcon:{type:String,default:void 0},collapsedRowIcon:{type:String,default:void 0},rowGroupMode:{type:String,default:null},groupRowsBy:{type:[Array,String,Function],default:null},expandableRowGroups:{type:Boolean,default:!1},expandedRowGroups:{type:Array,default:null},stateStorage:{type:String,default:"session"},stateKey:{type:String,default:null},editMode:{type:String,default:null},editingRows:{type:Array,default:null},rowClass:{type:[String,Object],default:null},rowStyle:{type:Object,default:null},scrollable:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},scrollHeight:{type:String,default:null},frozenValue:{type:Array,default:null},responsiveLayout:{type:String,default:"scroll"},breakpoint:{type:String,default:"960px"},showGridlines:{type:Boolean,default:!1},stripedRows:{type:Boolean,default:!1},highlightOnSelect:{type:Boolean,default:!1},size:{type:String,default:null},tableStyle:{type:null,default:null},tableClass:{type:[String,Object],default:null},tableProps:{type:Object,default:null},filterInputProps:{type:null,default:null}},style:ND,provide:function(){return{$parentInstance:this}}},x5={name:"RowCheckbox",hostName:"DataTable",extends:re,emits:["change"],props:{value:null,checked:null,column:null,rowCheckboxIconTemplate:{type:Function,default:null},index:{type:Number,default:null}},methods:{getColumnPT:function(e){var n={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,checked:this.checked,disabled:this.$attrs.disabled}};return a.mergeProps(this.ptm("column.".concat(e),{column:n}),this.ptm("column.".concat(e),n),this.ptmo(this.getColumnProp(),e,n))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onChange:function(e){this.$attrs.disabled||this.$emit("change",{originalEvent:e,data:this.value})}},computed:{checkboxAriaLabel:function(){return this.$primevue.config.locale.aria?this.checked?this.$primevue.config.locale.aria.selectRow:this.$primevue.config.locale.aria.unselectRow:void 0}},components:{CheckIcon:Wo,Checkbox:hu}};function VA(t,e,n,r,o,i){var s=a.resolveComponent("CheckIcon"),l=a.resolveComponent("Checkbox");return a.openBlock(),a.createBlock(l,{modelValue:n.checked,binary:!0,disabled:t.$attrs.disabled,"aria-label":i.checkboxAriaLabel,onChange:i.onChange,unstyled:t.unstyled,pt:i.getColumnPT("rowCheckbox")},{icon:a.withCtx(function(c){return[n.rowCheckboxIconTemplate?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.rowCheckboxIconTemplate),{key:0,checked:c.checked,class:a.normalizeClass(c.class)},null,8,["checked","class"])):!n.rowCheckboxIconTemplate&&c.checked?(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:c.class},i.getColumnPT("rowCheckbox.icon")),null,16,["class"])):a.createCommentVNode("",!0)]}),_:1},8,["modelValue","disabled","aria-label","onChange","unstyled","pt"])}x5.render=VA;var P5={name:"RowRadioButton",hostName:"DataTable",extends:re,emits:["change"],props:{value:null,checked:null,name:null,column:null,index:{type:Number,default:null}},methods:{getColumnPT:function(e){var n={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,checked:this.checked,disabled:this.$attrs.disabled}};return a.mergeProps(this.ptm("column.".concat(e),{column:n}),this.ptm("column.".concat(e),n),this.ptmo(this.getColumnProp(),e,n))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onChange:function(e){this.$attrs.disabled||this.$emit("change",{originalEvent:e,data:this.value})}},components:{RadioButton:C5}};function $A(t,e,n,r,o,i){var s=a.resolveComponent("RadioButton");return a.openBlock(),a.createBlock(s,{modelValue:n.checked,binary:!0,disabled:t.$attrs.disabled,name:n.name,onChange:i.onChange,unstyled:t.unstyled,pt:i.getColumnPT("rowRadiobutton")},null,8,["modelValue","disabled","name","onChange","unstyled","pt"])}P5.render=$A;var D5={name:"BodyCell",hostName:"DataTable",extends:re,emits:["cell-edit-init","cell-edit-complete","cell-edit-cancel","row-edit-init","row-edit-save","row-edit-cancel","row-toggle","radio-change","checkbox-change","editing-meta-change"],props:{rowData:{type:Object,default:null},column:{type:Object,default:null},frozenRow:{type:Boolean,default:!1},rowIndex:{type:Number,default:null},index:{type:Number,default:null},isRowExpanded:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},editing:{type:Boolean,default:!1},editingMeta:{type:Object,default:null},editMode:{type:String,default:null},responsiveLayout:{type:String,default:"stack"},virtualScrollerContentProps:{type:Object,default:null},ariaControls:{type:String,default:null},name:{type:String,default:null},expandedRowIcon:{type:String,default:null},collapsedRowIcon:{type:String,default:null}},documentEditListener:null,selfClick:!1,overlayEventListener:null,data:function(){return{d_editing:this.editing,styleObject:{}}},watch:{editing:function(e){this.d_editing=e},"$data.d_editing":function(e){this.$emit("editing-meta-change",{data:this.rowData,field:this.field||"field_".concat(this.index),index:this.rowIndex,editing:e})}},mounted:function(){this.columnProp("frozen")&&this.updateStickyPosition()},updated:function(){var e=this;this.columnProp("frozen")&&this.updateStickyPosition(),this.d_editing&&(this.editMode==="cell"||this.editMode==="row"&&this.columnProp("rowEditor"))&&setTimeout(function(){var n=O.getFirstFocusableElement(e.$el);n&&n.focus()},1)},beforeUnmount:function(){this.overlayEventListener&&(lr.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null)},methods:{columnProp:function(e){return M.getVNodeProp(this.column,e)},getColumnPT:function(e){var n,r,o={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,size:(n=this.$parentInstance)===null||n===void 0||(n=n.$parentInstance)===null||n===void 0?void 0:n.size,showGridlines:(r=this.$parentInstance)===null||r===void 0||(r=r.$parentInstance)===null||r===void 0?void 0:r.showGridlines}};return a.mergeProps(this.ptm("column.".concat(e),{column:o}),this.ptm("column.".concat(e),o),this.ptmo(this.getColumnProp(),e,o))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},resolveFieldData:function(){return M.resolveFieldData(this.rowData,this.field)},toggleRow:function(e){this.$emit("row-toggle",{originalEvent:e,data:this.rowData})},toggleRowWithRadio:function(e,n){this.$emit("radio-change",{originalEvent:e.originalEvent,index:n,data:e.data})},toggleRowWithCheckbox:function(e,n){this.$emit("checkbox-change",{originalEvent:e.originalEvent,index:n,data:e.data})},isEditable:function(){return this.column.children&&this.column.children.editor!=null},bindDocumentEditListener:function(){var e=this;this.documentEditListener||(this.documentEditListener=function(n){e.selfClick||e.completeEdit(n,"outside"),e.selfClick=!1},document.addEventListener("click",this.documentEditListener))},unbindDocumentEditListener:function(){this.documentEditListener&&(document.removeEventListener("click",this.documentEditListener),this.documentEditListener=null,this.selfClick=!1)},switchCellToViewMode:function(){this.d_editing=!1,this.unbindDocumentEditListener(),lr.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null},onClick:function(e){var n=this;this.editMode==="cell"&&this.isEditable()&&(this.selfClick=!0,this.d_editing||(this.d_editing=!0,this.bindDocumentEditListener(),this.$emit("cell-edit-init",{originalEvent:e,data:this.rowData,field:this.field,index:this.rowIndex}),this.overlayEventListener=function(r){n.$el&&n.$el.contains(r.target)&&(n.selfClick=!0)},lr.on("overlay-click",this.overlayEventListener)))},completeEdit:function(e,n){var r={originalEvent:e,data:this.rowData,newData:this.editingRowData,value:this.rowData[this.field],newValue:this.editingRowData[this.field],field:this.field,index:this.rowIndex,type:n,defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0}};this.$emit("cell-edit-complete",r),r.defaultPrevented||this.switchCellToViewMode()},onKeyDown:function(e){if(this.editMode==="cell")switch(e.code){case"Enter":case"NumpadEnter":this.completeEdit(e,"enter");break;case"Escape":this.switchCellToViewMode(),this.$emit("cell-edit-cancel",{originalEvent:e,data:this.rowData,field:this.field,index:this.rowIndex});break;case"Tab":this.completeEdit(e,"tab"),e.shiftKey?this.moveToPreviousCell(e):this.moveToNextCell(e);break}},moveToPreviousCell:function(e){var n=this.findCell(e.target),r=this.findPreviousEditableColumn(n);r&&(O.invokeElementMethod(r,"click"),e.preventDefault())},moveToNextCell:function(e){var n=this.findCell(e.target),r=this.findNextEditableColumn(n);r&&(O.invokeElementMethod(r,"click"),e.preventDefault())},findCell:function(e){if(e){for(var n=e;n&&!O.getAttribute(n,"data-p-cell-editing");)n=n.parentElement;return n}else return null},findPreviousEditableColumn:function(e){var n=e.previousElementSibling;if(!n){var r=e.parentElement.previousElementSibling;r&&(n=r.lastElementChild)}return n?O.getAttribute(n,"data-p-editable-column")?n:this.findPreviousEditableColumn(n):null},findNextEditableColumn:function(e){var n=e.nextElementSibling;if(!n){var r=e.parentElement.nextElementSibling;r&&(n=r.firstElementChild)}return n?O.getAttribute(n,"data-p-editable-column")?n:this.findNextEditableColumn(n):null},onRowEditInit:function(e){this.$emit("row-edit-init",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},onRowEditSave:function(e){this.$emit("row-edit-save",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},onRowEditCancel:function(e){this.$emit("row-edit-cancel",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},editorInitCallback:function(e){this.$emit("row-edit-init",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},editorSaveCallback:function(e){this.editMode==="row"?this.$emit("row-edit-save",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex}):this.completeEdit(e,"enter")},editorCancelCallback:function(e){this.editMode==="row"?this.$emit("row-edit-cancel",{originalEvent:e,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex}):(this.switchCellToViewMode(),this.$emit("cell-edit-cancel",{originalEvent:e,data:this.rowData,field:this.field,index:this.rowIndex}))},updateStickyPosition:function(){if(this.columnProp("frozen")){var e=this.columnProp("alignFrozen");if(e==="right"){var n=0,r=O.getNextElementSibling(this.$el,'[data-p-frozen-column="true"]');r&&(n=O.getOuterWidth(r)+parseFloat(r.style.right||0)),this.styleObject.right=n+"px"}else{var o=0,i=O.getPreviousElementSibling(this.$el,'[data-p-frozen-column="true"]');i&&(o=O.getOuterWidth(i)+parseFloat(i.style.left||0)),this.styleObject.left=o+"px"}}},getVirtualScrollerProp:function(e){return this.virtualScrollerContentProps?this.virtualScrollerContentProps[e]:null}},computed:{editingRowData:function(){return this.editingMeta[this.rowIndex]?this.editingMeta[this.rowIndex].data:this.rowData},field:function(){return this.columnProp("field")},containerClass:function(){return[this.columnProp("bodyClass"),this.columnProp("class"),this.cx("bodyCell")]},containerStyle:function(){var e=this.columnProp("bodyStyle"),n=this.columnProp("style");return this.columnProp("frozen")?[n,e,this.styleObject]:[n,e]},loading:function(){return this.getVirtualScrollerProp("loading")},loadingOptions:function(){var e=this.getVirtualScrollerProp("getLoaderOptions");return e&&e(this.rowIndex,{cellIndex:this.index,cellFirst:this.index===0,cellLast:this.index===this.getVirtualScrollerProp("columns").length-1,cellEven:this.index%2===0,cellOdd:this.index%2!==0,column:this.column,field:this.field})},expandButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.isRowExpanded?this.$primevue.config.locale.aria.expandRow:this.$primevue.config.locale.aria.collapseRow:void 0},initButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.editRow:void 0},saveButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.saveEdit:void 0},cancelButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.cancelEdit:void 0}},components:{DTRadioButton:P5,DTCheckbox:x5,ChevronDownIcon:Sl,ChevronRightIcon:fu,BarsIcon:w5,PencilIcon:v5,CheckIcon:Wo,TimesIcon:ou},directives:{ripple:Mn}};function Ps(t){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ps(t)}function A5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ol(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?A5(Object(n),!0).forEach(function(r){FA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function FA(t,e,n){return e=HA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function HA(t){var e=_A(t,"string");return Ps(e)=="symbol"?e:String(e)}function _A(t,e){if(Ps(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zA=["colspan","rowspan","data-p-selection-column","data-p-editable-column","data-p-cell-editing","data-p-frozen-column"],jA=["aria-expanded","aria-controls","aria-label"],ZA=["aria-label"],WA=["aria-label"],UA=["aria-label"];function KA(t,e,n,r,o,i){var s=a.resolveComponent("DTRadioButton"),l=a.resolveComponent("DTCheckbox"),c=a.resolveComponent("BarsIcon"),u=a.resolveComponent("ChevronDownIcon"),d=a.resolveComponent("ChevronRightIcon"),f=a.resolveDirective("ripple");return i.loading?(a.openBlock(),a.createElementBlock("td",a.mergeProps({key:0,style:i.containerStyle,class:i.containerClass,role:"cell"},Ol(Ol({},i.getColumnPT("root")),i.getColumnPT("bodyCell"))),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.loading),{data:n.rowData,column:n.column,field:i.field,index:n.rowIndex,frozenRow:n.frozenRow,loadingOptions:i.loadingOptions},null,8,["data","column","field","index","frozenRow","loadingOptions"]))],16)):(a.openBlock(),a.createElementBlock("td",a.mergeProps({key:1,style:i.containerStyle,class:i.containerClass,colspan:i.columnProp("colspan"),rowspan:i.columnProp("rowspan"),onClick:e[6]||(e[6]=function(){return i.onClick&&i.onClick.apply(i,arguments)}),onKeydown:e[7]||(e[7]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)}),role:"cell"},Ol(Ol({},i.getColumnPT("root")),i.getColumnPT("bodyCell")),{"data-p-selection-column":i.columnProp("selectionMode")!=null,"data-p-editable-column":i.isEditable(),"data-p-cell-editing":o.d_editing,"data-p-frozen-column":i.columnProp("frozen")}),[n.responsiveLayout==="stack"?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:t.cx("columnTitle")},i.getColumnPT("columnTitle")),a.toDisplayString(i.columnProp("header")),17)):a.createCommentVNode("",!0),n.column.children&&n.column.children.body&&!o.d_editing?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.body),{key:1,data:n.rowData,column:n.column,field:i.field,index:n.rowIndex,frozenRow:n.frozenRow,editorInitCallback:i.editorInitCallback,rowTogglerCallback:i.toggleRow},null,8,["data","column","field","index","frozenRow","editorInitCallback","rowTogglerCallback"])):n.column.children&&n.column.children.editor&&o.d_editing?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.editor),{key:2,data:i.editingRowData,column:n.column,field:i.field,index:n.rowIndex,frozenRow:n.frozenRow,editorSaveCallback:i.editorSaveCallback,editorCancelCallback:i.editorCancelCallback},null,8,["data","column","field","index","frozenRow","editorSaveCallback","editorCancelCallback"])):n.column.children&&n.column.children.body&&!n.column.children.editor&&o.d_editing?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.body),{key:3,data:i.editingRowData,column:n.column,field:i.field,index:n.rowIndex,frozenRow:n.frozenRow},null,8,["data","column","field","index","frozenRow"])):i.columnProp("selectionMode")?(a.openBlock(),a.createElementBlock(a.Fragment,{key:4},[i.columnProp("selectionMode")==="single"?(a.openBlock(),a.createBlock(s,{key:0,value:n.rowData,name:n.name,checked:n.selected,onChange:e[0]||(e[0]=function(p){return i.toggleRowWithRadio(p,n.rowIndex)}),column:n.column,index:n.index,unstyled:t.unstyled,pt:t.pt},null,8,["value","name","checked","column","index","unstyled","pt"])):i.columnProp("selectionMode")==="multiple"?(a.openBlock(),a.createBlock(l,{key:1,value:n.rowData,checked:n.selected,rowCheckboxIconTemplate:n.column.children&&n.column.children.rowcheckboxicon,"aria-selected":n.selected?!0:void 0,onChange:e[1]||(e[1]=function(p){return i.toggleRowWithCheckbox(p,n.rowIndex)}),column:n.column,index:n.index,unstyled:t.unstyled,pt:t.pt},null,8,["value","checked","rowCheckboxIconTemplate","aria-selected","column","index","unstyled","pt"])):a.createCommentVNode("",!0)],64)):i.columnProp("rowReorder")?(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[n.column.children&&n.column.children.rowreordericon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.rowreordericon),{key:0,class:a.normalizeClass(t.cx("rowReorderIcon"))},null,8,["class"])):i.columnProp("rowReorderIcon")?(a.openBlock(),a.createElementBlock("i",a.mergeProps({key:1,class:[t.cx("rowReorderIcon"),i.columnProp("rowReorderIcon")]},i.getColumnPT("rowReorderIcon")),null,16)):(a.openBlock(),a.createBlock(c,a.mergeProps({key:2,class:t.cx("rowReorderIcon")},i.getColumnPT("rowReorderIcon")),null,16,["class"]))],64)):i.columnProp("expander")?a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:6,class:t.cx("rowToggler"),type:"button","aria-expanded":n.isRowExpanded,"aria-controls":n.ariaControls,"aria-label":i.expandButtonAriaLabel,onClick:e[2]||(e[2]=function(){return i.toggleRow&&i.toggleRow.apply(i,arguments)})},i.getColumnPT("rowToggler"),{"data-pc-group-section":"rowactionbutton"}),[n.column.children&&n.column.children.rowtogglericon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.rowtogglericon),{key:0,class:a.normalizeClass(t.cx("rowTogglerIcon")),rowExpanded:n.isRowExpanded},null,8,["class","rowExpanded"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[n.isRowExpanded&&n.expandedRowIcon?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass([t.cx("rowTogglerIcon"),n.expandedRowIcon])},null,2)):n.isRowExpanded&&!n.expandedRowIcon?(a.openBlock(),a.createBlock(u,a.mergeProps({key:1,class:t.cx("rowTogglerIcon")},i.getColumnPT("rowTogglerIcon")),null,16,["class"])):!n.isRowExpanded&&n.collapsedRowIcon?(a.openBlock(),a.createElementBlock("span",{key:2,class:a.normalizeClass([t.cx("rowTogglerIcon"),n.collapsedRowIcon])},null,2)):!n.isRowExpanded&&!n.collapsedRowIcon?(a.openBlock(),a.createBlock(d,a.mergeProps({key:3,class:t.cx("rowTogglerIcon")},i.getColumnPT("rowTogglerIcon")),null,16,["class"])):a.createCommentVNode("",!0)],64))],16,jA)),[[f]]):n.editMode==="row"&&i.columnProp("rowEditor")?(a.openBlock(),a.createElementBlock(a.Fragment,{key:7},[o.d_editing?a.createCommentVNode("",!0):a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:0,class:t.cx("rowEditorInitButton"),type:"button","aria-label":i.initButtonAriaLabel,onClick:e[3]||(e[3]=function(){return i.onRowEditInit&&i.onRowEditInit.apply(i,arguments)})},i.getColumnPT("rowEditorInitButton"),{"data-pc-group-section":"rowactionbutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children&&n.column.children.roweditoriniticon||"PencilIcon"),a.mergeProps({class:t.cx("rowEditorInitIcon")},i.getColumnPT("rowEditorInitIcon")),null,16,["class"]))],16,ZA)),[[f]]),o.d_editing?a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:1,class:t.cx("rowEditorSaveButton"),type:"button","aria-label":i.saveButtonAriaLabel,onClick:e[4]||(e[4]=function(){return i.onRowEditSave&&i.onRowEditSave.apply(i,arguments)})},i.getColumnPT("rowEditorSaveButton"),{"data-pc-group-section":"rowactionbutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children&&n.column.children.roweditorsaveicon||"CheckIcon"),a.mergeProps({class:t.cx("rowEditorSaveIcon")},i.getColumnPT("rowEditorSaveIcon")),null,16,["class"]))],16,WA)),[[f]]):a.createCommentVNode("",!0),o.d_editing?a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:2,class:t.cx("rowEditorCancelButton"),type:"button","aria-label":i.cancelButtonAriaLabel,onClick:e[5]||(e[5]=function(){return i.onRowEditCancel&&i.onRowEditCancel.apply(i,arguments)})},i.getColumnPT("rowEditorCancelButton"),{"data-pc-group-section":"rowactionbutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children&&n.column.children.roweditorcancelicon||"TimesIcon"),a.mergeProps({class:t.cx("rowEditorCancelIcon")},i.getColumnPT("rowEditorCancelIcon")),null,16,["class"]))],16,UA)),[[f]]):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:8},[a.createTextVNode(a.toDisplayString(i.resolveFieldData()),1)],64))],16,zA))}D5.render=KA;function Ds(t){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ds(t)}function GA(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=qA(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
197
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function qA(t,e){if(t){if(typeof t=="string")return I5(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I5(t,e)}}function I5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function N5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function B5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?N5(Object(n),!0).forEach(function(r){YA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function YA(t,e,n){return e=JA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JA(t){var e=QA(t,"string");return Ds(e)=="symbol"?e:String(e)}function QA(t,e){if(Ds(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var R5={name:"BodyRow",hostName:"DataTable",extends:re,emits:["rowgroup-toggle","row-click","row-dblclick","row-rightclick","row-touchend","row-keydown","row-mousedown","row-dragstart","row-dragover","row-dragleave","row-dragend","row-drop","row-toggle","radio-change","checkbox-change","cell-edit-init","cell-edit-complete","cell-edit-cancel","row-edit-init","row-edit-save","row-edit-cancel","editing-meta-change"],props:{rowData:{type:Object,default:null},index:{type:Number,default:0},value:{type:Array,default:null},columns:{type:null,default:null},frozenRow:{type:Boolean,default:!1},empty:{type:Boolean,default:!1},rowGroupMode:{type:String,default:null},groupRowsBy:{type:[Array,String,Function],default:null},expandableRowGroups:{type:Boolean,default:!1},expandedRowGroups:{type:Array,default:null},first:{type:Number,default:0},dataKey:{type:[String,Function],default:null},expandedRowIcon:{type:String,default:null},collapsedRowIcon:{type:String,default:null},expandedRows:{type:[Array,Object],default:null},selection:{type:[Array,Object],default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},contextMenu:{type:Boolean,default:!1},contextMenuSelection:{type:Object,default:null},rowClass:{type:null,default:null},rowStyle:{type:null,default:null},rowGroupHeaderStyle:{type:null,default:null},editMode:{type:String,default:null},compareSelectionBy:{type:String,default:"deepEquals"},editingRows:{type:Array,default:null},editingRowKeys:{type:null,default:null},editingMeta:{type:Object,default:null},templates:{type:null,default:null},scrollable:{type:Boolean,default:!1},responsiveLayout:{type:String,default:"stack"},virtualScrollerContentProps:{type:Object,default:null},isVirtualScrollerDisabled:{type:Boolean,default:!1},expandedRowId:{type:String,default:null},nameAttributeSelector:{type:String,default:null}},data:function(){return{d_rowExpanded:!1}},watch:{expandedRows:{immediate:!0,handler:function(e){var n=this;this.d_rowExpanded=this.dataKey?(e==null?void 0:e[M.resolveFieldData(this.rowData,this.dataKey)])!==void 0:e==null?void 0:e.some(function(r){return n.equals(n.rowData,r)})}}},methods:{columnProp:function(e,n){return M.getVNodeProp(e,n)},getColumnPT:function(e){var n={parent:{instance:this,props:this.$props,state:this.$data}};return a.mergeProps(this.ptm("column.".concat(e),{column:n}),this.ptm("column.".concat(e),n),this.ptmo(this.columnProp({},"pt"),e,n))},getBodyRowPTOptions:function(e){var n,r=(n=this.$parentInstance)===null||n===void 0?void 0:n.$parentInstance;return this.ptm(e,{context:{index:this.rowIndex,selectable:(r==null?void 0:r.rowHover)||(r==null?void 0:r.selectionMode),selected:this.isSelected,stripedRows:(r==null?void 0:r.stripedRows)||!1}})},shouldRenderBodyCell:function(e){var n=this.columnProp(e,"hidden");if(this.rowGroupMode&&!n){var r=this.columnProp(e,"field");if(this.rowGroupMode==="subheader")return this.groupRowsBy!==r;if(this.rowGroupMode==="rowspan")if(this.isGrouped(e)){var o=this.value[this.rowIndex-1];if(o){var i=M.resolveFieldData(this.value[this.rowIndex],r),s=M.resolveFieldData(o,r);return i!==s}else return!0}else return!0}else return!n},calculateRowGroupSize:function(e){if(this.isGrouped(e)){for(var n=this.rowIndex,r=this.columnProp(e,"field"),o=M.resolveFieldData(this.value[n],r),i=o,s=0;o===i;){s++;var l=this.value[++n];if(l)i=M.resolveFieldData(l,r);else break}return s===1?null:s}else return null},isGrouped:function(e){var n=this.columnProp(e,"field");return this.groupRowsBy&&n?Array.isArray(this.groupRowsBy)?this.groupRowsBy.indexOf(n)>-1:this.groupRowsBy===n:!1},findIndexInSelection:function(e){return this.findIndex(e,this.selection)},findIndex:function(e,n){var r=-1;if(n&&n.length){for(var o=0;o<n.length;o++)if(this.equals(e,n[o])){r=o;break}}return r},equals:function(e,n){return this.compareSelectionBy==="equals"?e===n:M.equals(e,n,this.dataKey)},onRowGroupToggle:function(e){this.$emit("rowgroup-toggle",{originalEvent:e,data:this.rowData})},onRowClick:function(e){this.$emit("row-click",{originalEvent:e,data:this.rowData,index:this.rowIndex})},onRowDblClick:function(e){this.$emit("row-dblclick",{originalEvent:e,data:this.rowData,index:this.rowIndex})},onRowRightClick:function(e){this.$emit("row-rightclick",{originalEvent:e,data:this.rowData,index:this.rowIndex})},onRowTouchEnd:function(e){this.$emit("row-touchend",e)},onRowKeyDown:function(e){this.$emit("row-keydown",{originalEvent:e,data:this.rowData,index:this.rowIndex})},onRowMouseDown:function(e){this.$emit("row-mousedown",e)},onRowDragStart:function(e){this.$emit("row-dragstart",{originalEvent:e,index:this.rowIndex})},onRowDragOver:function(e){this.$emit("row-dragover",{originalEvent:e,index:this.rowIndex})},onRowDragLeave:function(e){this.$emit("row-dragleave",e)},onRowDragEnd:function(e){this.$emit("row-dragend",e)},onRowDrop:function(e){this.$emit("row-drop",e)},onRowToggle:function(e){this.d_rowExpanded=!this.d_rowExpanded,this.$emit("row-toggle",B5(B5({},e),{},{expanded:this.d_rowExpanded}))},onRadioChange:function(e){this.$emit("radio-change",e)},onCheckboxChange:function(e){this.$emit("checkbox-change",e)},onCellEditInit:function(e){this.$emit("cell-edit-init",e)},onCellEditComplete:function(e){this.$emit("cell-edit-complete",e)},onCellEditCancel:function(e){this.$emit("cell-edit-cancel",e)},onRowEditInit:function(e){this.$emit("row-edit-init",e)},onRowEditSave:function(e){this.$emit("row-edit-save",e)},onRowEditCancel:function(e){this.$emit("row-edit-cancel",e)},onEditingMetaChange:function(e){this.$emit("editing-meta-change",e)},getVirtualScrollerProp:function(e,n){return n=n||this.virtualScrollerContentProps,n?n[e]:null}},computed:{rowIndex:function(){var e=this.getVirtualScrollerProp("getItemOptions");return e?e(this.index).index:this.index},rowStyles:function(){var e;return(e=this.rowStyle)===null||e===void 0?void 0:e.call(this,this.rowData)},rowClasses:function(){var e=[],n=null;if(this.rowClass){var r=this.rowClass(this.rowData);r&&e.push(r)}if(this.columns){var o=GA(this.columns),i;try{for(o.s();!(i=o.n()).done;){var s=i.value,l=this.columnProp(s,"selectionMode");if(M.isNotEmpty(l)&&l==="multiple"){n=l;break}}}catch(c){o.e(c)}finally{o.f()}}return[this.cx("row",{rowData:this.rowData,index:this.rowIndex,columnSelectionMode:n}),e]},rowTabindex:function(){return this.selection===null&&(this.selectionMode==="single"||this.selectionMode==="multiple")&&this.rowIndex===0?0:-1},isRowEditing:function(){return this.rowData&&this.editingRows?this.dataKey?this.editingRowKeys?this.editingRowKeys[M.resolveFieldData(this.rowData,this.dataKey)]!==void 0:!1:this.findIndex(this.rowData,this.editingRows)>-1:!1},isRowGroupExpanded:function(){if(this.expandableRowGroups&&this.expandedRowGroups){var e=M.resolveFieldData(this.rowData,this.groupRowsBy);return this.expandedRowGroups.indexOf(e)>-1}return!1},isSelected:function(){return this.rowData&&this.selection?this.dataKey?this.selectionKeys?this.selectionKeys[M.resolveFieldData(this.rowData,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(this.rowData)>-1:this.equals(this.rowData,this.selection):!1},isSelectedWithContextMenu:function(){return this.rowData&&this.contextMenuSelection?this.equals(this.rowData,this.contextMenuSelection,this.dataKey):!1},shouldRenderRowGroupHeader:function(){var e=M.resolveFieldData(this.rowData,this.groupRowsBy),n=this.value[this.rowIndex-1];if(n){var r=M.resolveFieldData(n,this.groupRowsBy);return e!==r}else return!0},shouldRenderRowGroupFooter:function(){if(this.expandableRowGroups&&!this.isRowGroupExpanded)return!1;var e=M.resolveFieldData(this.rowData,this.groupRowsBy),n=this.value[this.rowIndex+1];if(n){var r=M.resolveFieldData(n,this.groupRowsBy);return e!==r}else return!0},columnsLength:function(){var e=this;if(this.columns){var n=0;return this.columns.forEach(function(r){e.columnProp(r,"selectionMode")==="single"&&n--,e.columnProp(r,"hidden")&&n++}),this.columns.length-n}return 0}},components:{DTBodyCell:D5,ChevronDownIcon:Sl,ChevronRightIcon:fu}};function As(t){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(t)}function L5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ur(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?L5(Object(n),!0).forEach(function(r){XA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function XA(t,e,n){return e=eI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eI(t){var e=tI(t,"string");return As(e)=="symbol"?e:String(e)}function tI(t,e){if(As(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(As(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var nI=["colspan"],rI=["tabindex","aria-selected","data-p-index","data-p-selectable-row","data-p-highlight","data-p-highlight-contextmenu"],oI=["id"],iI=["colspan"],sI=["colspan"],aI=["colspan"];function lI(t,e,n,r,o,i){var s=a.resolveComponent("ChevronDownIcon"),l=a.resolveComponent("ChevronRightIcon"),c=a.resolveComponent("DTBodyCell");return n.empty?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:1,class:t.cx("emptyMessage"),role:"row"},t.ptm("emptyMessage")),[a.createElementVNode("td",a.mergeProps({colspan:i.columnsLength},ur(ur({},i.getColumnPT("bodycell")),t.ptm("emptyMessageCell"))),[n.templates.empty?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.empty),{key:0})):a.createCommentVNode("",!0)],16,aI)],16)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[n.templates.groupheader&&n.rowGroupMode==="subheader"&&i.shouldRenderRowGroupHeader?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:0,class:t.cx("rowGroupHeader"),style:n.rowGroupHeaderStyle,role:"row"},t.ptm("rowGroupHeader")),[a.createElementVNode("td",a.mergeProps({colspan:i.columnsLength-1},ur(ur({},i.getColumnPT("bodycell")),t.ptm("rowGroupHeaderCell"))),[n.expandableRowGroups?(a.openBlock(),a.createElementBlock("button",a.mergeProps({key:0,class:t.cx("rowGroupToggler"),onClick:e[0]||(e[0]=function(){return i.onRowGroupToggle&&i.onRowGroupToggle.apply(i,arguments)}),type:"button"},t.ptm("rowGroupToggler")),[n.templates.rowgrouptogglericon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.rowgrouptogglericon),{key:0,expanded:i.isRowGroupExpanded},null,8,["expanded"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[i.isRowGroupExpanded&&n.expandedRowIcon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:[t.cx("rowGroupTogglerIcon"),n.expandedRowIcon]},t.ptm("rowGroupTogglerIcon")),null,16)):i.isRowGroupExpanded&&!n.expandedRowIcon?(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:t.cx("rowGroupTogglerIcon")},t.ptm("rowGroupTogglerIcon")),null,16,["class"])):!i.isRowGroupExpanded&&n.collapsedRowIcon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:[t.cx("rowGroupTogglerIcon"),n.collapsedRowIcon]},t.ptm("rowGroupTogglerIcon")),null,16)):!i.isRowGroupExpanded&&!n.collapsedRowIcon?(a.openBlock(),a.createBlock(l,a.mergeProps({key:3,class:t.cx("rowGroupTogglerIcon")},t.ptm("rowGroupTogglerIcon")),null,16,["class"])):a.createCommentVNode("",!0)],64))],16)):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.groupheader),{data:n.rowData,index:i.rowIndex},null,8,["data","index"]))],16,nI)],16)):a.createCommentVNode("",!0),!n.expandableRowGroups||i.isRowGroupExpanded?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:1,class:i.rowClasses,style:i.rowStyles,tabindex:i.rowTabindex,role:"row","aria-selected":n.selectionMode?i.isSelected:null,onClick:e[1]||(e[1]=function(){return i.onRowClick&&i.onRowClick.apply(i,arguments)}),onDblclick:e[2]||(e[2]=function(){return i.onRowDblClick&&i.onRowDblClick.apply(i,arguments)}),onContextmenu:e[3]||(e[3]=function(){return i.onRowRightClick&&i.onRowRightClick.apply(i,arguments)}),onTouchend:e[4]||(e[4]=function(){return i.onRowTouchEnd&&i.onRowTouchEnd.apply(i,arguments)}),onKeydown:e[5]||(e[5]=a.withModifiers(function(){return i.onRowKeyDown&&i.onRowKeyDown.apply(i,arguments)},["self"])),onMousedown:e[6]||(e[6]=function(){return i.onRowMouseDown&&i.onRowMouseDown.apply(i,arguments)}),onDragstart:e[7]||(e[7]=function(){return i.onRowDragStart&&i.onRowDragStart.apply(i,arguments)}),onDragover:e[8]||(e[8]=function(){return i.onRowDragOver&&i.onRowDragOver.apply(i,arguments)}),onDragleave:e[9]||(e[9]=function(){return i.onRowDragLeave&&i.onRowDragLeave.apply(i,arguments)}),onDragend:e[10]||(e[10]=function(){return i.onRowDragEnd&&i.onRowDragEnd.apply(i,arguments)}),onDrop:e[11]||(e[11]=function(){return i.onRowDrop&&i.onRowDrop.apply(i,arguments)})},i.getBodyRowPTOptions("bodyRow"),{"data-p-index":i.rowIndex,"data-p-selectable-row":!!n.selectionMode,"data-p-highlight":n.selection&&i.isSelected,"data-p-highlight-contextmenu":n.contextMenuSelection&&i.isSelectedWithContextMenu}),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.columns,function(u,d){return a.openBlock(),a.createElementBlock(a.Fragment,null,[i.shouldRenderBodyCell(u)?(a.openBlock(),a.createBlock(c,{key:i.columnProp(u,"columnKey")||i.columnProp(u,"field")||d,rowData:n.rowData,column:u,rowIndex:i.rowIndex,index:d,selected:i.isSelected,frozenRow:n.frozenRow,rowspan:n.rowGroupMode==="rowspan"?i.calculateRowGroupSize(u):null,editMode:n.editMode,editing:n.editMode==="row"&&i.isRowEditing,editingMeta:n.editingMeta,responsiveLayout:n.responsiveLayout,virtualScrollerContentProps:n.virtualScrollerContentProps,ariaControls:n.expandedRowId+"_"+i.rowIndex+"_expansion",name:n.nameAttributeSelector,isRowExpanded:o.d_rowExpanded,expandedRowIcon:n.expandedRowIcon,collapsedRowIcon:n.collapsedRowIcon,onRadioChange:i.onRadioChange,onCheckboxChange:i.onCheckboxChange,onRowToggle:i.onRowToggle,onCellEditInit:i.onCellEditInit,onCellEditComplete:i.onCellEditComplete,onCellEditCancel:i.onCellEditCancel,onRowEditInit:i.onRowEditInit,onRowEditSave:i.onRowEditSave,onRowEditCancel:i.onRowEditCancel,onEditingMetaChange:i.onEditingMetaChange,unstyled:t.unstyled,pt:t.pt},null,8,["rowData","column","rowIndex","index","selected","frozenRow","rowspan","editMode","editing","editingMeta","responsiveLayout","virtualScrollerContentProps","ariaControls","name","isRowExpanded","expandedRowIcon","collapsedRowIcon","onRadioChange","onCheckboxChange","onRowToggle","onCellEditInit","onCellEditComplete","onCellEditCancel","onRowEditInit","onRowEditSave","onRowEditCancel","onEditingMetaChange","unstyled","pt"])):a.createCommentVNode("",!0)],64)}),256))],16,rI)):a.createCommentVNode("",!0),n.templates.expansion&&n.expandedRows&&o.d_rowExpanded?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:2,id:n.expandedRowId+"_"+i.rowIndex+"_expansion",class:t.cx("rowExpansion"),role:"row"},t.ptm("rowExpansion")),[a.createElementVNode("td",a.mergeProps({colspan:i.columnsLength},ur(ur({},i.getColumnPT("bodycell")),t.ptm("rowExpansionCell"))),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.expansion),{data:n.rowData,index:i.rowIndex},null,8,["data","index"]))],16,iI)],16,oI)):a.createCommentVNode("",!0),n.templates.groupfooter&&n.rowGroupMode==="subheader"&&i.shouldRenderRowGroupFooter?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:3,class:t.cx("rowGroupFooter"),role:"row"},t.ptm("rowGroupFooter")),[a.createElementVNode("td",a.mergeProps({colspan:i.columnsLength-1},ur(ur({},i.getColumnPT("bodycell")),t.ptm("rowGroupFooterCell"))),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.groupfooter),{data:n.rowData,index:i.rowIndex},null,8,["data","index"]))],16,sI)],16)):a.createCommentVNode("",!0)],64))}R5.render=lI;var V5={name:"TableBody",hostName:"DataTable",extends:re,emits:["rowgroup-toggle","row-click","row-dblclick","row-rightclick","row-touchend","row-keydown","row-mousedown","row-dragstart","row-dragover","row-dragleave","row-dragend","row-drop","row-toggle","radio-change","checkbox-change","cell-edit-init","cell-edit-complete","cell-edit-cancel","row-edit-init","row-edit-save","row-edit-cancel","editing-meta-change"],props:{value:{type:Array,default:null},columns:{type:null,default:null},frozenRow:{type:Boolean,default:!1},empty:{type:Boolean,default:!1},rowGroupMode:{type:String,default:null},groupRowsBy:{type:[Array,String,Function],default:null},expandableRowGroups:{type:Boolean,default:!1},expandedRowGroups:{type:Array,default:null},first:{type:Number,default:0},dataKey:{type:[String,Function],default:null},expandedRowIcon:{type:String,default:null},collapsedRowIcon:{type:String,default:null},expandedRows:{type:[Array,Object],default:null},selection:{type:[Array,Object],default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},contextMenu:{type:Boolean,default:!1},contextMenuSelection:{type:Object,default:null},rowClass:{type:null,default:null},rowStyle:{type:null,default:null},editMode:{type:String,default:null},compareSelectionBy:{type:String,default:"deepEquals"},editingRows:{type:Array,default:null},editingRowKeys:{type:null,default:null},editingMeta:{type:Object,default:null},templates:{type:null,default:null},scrollable:{type:Boolean,default:!1},responsiveLayout:{type:String,default:"stack"},virtualScrollerContentProps:{type:Object,default:null},isVirtualScrollerDisabled:{type:Boolean,default:!1}},data:function(){return{rowGroupHeaderStyleObject:{}}},mounted:function(){this.frozenRow&&this.updateFrozenRowStickyPosition(),this.scrollable&&this.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()},updated:function(){this.frozenRow&&this.updateFrozenRowStickyPosition(),this.scrollable&&this.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()},methods:{getRowKey:function(e,n){return this.dataKey?M.resolveFieldData(e,this.dataKey):n},updateFrozenRowStickyPosition:function(){this.$el.style.top=O.getOuterHeight(this.$el.previousElementSibling)+"px"},updateFrozenRowGroupHeaderStickyPosition:function(){var e=O.getOuterHeight(this.$el.previousElementSibling);this.rowGroupHeaderStyleObject.top=e+"px"},getVirtualScrollerProp:function(e,n){return n=n||this.virtualScrollerContentProps,n?n[e]:null},bodyRef:function(e){var n=this.getVirtualScrollerProp("contentRef");n&&n(e)}},computed:{rowGroupHeaderStyle:function(){return this.scrollable?{top:this.rowGroupHeaderStyleObject.top}:null},bodyStyle:function(){return this.getVirtualScrollerProp("contentStyle")},ptmTBodyOptions:function(){var e;return{context:{scrollable:(e=this.$parentInstance)===null||e===void 0||(e=e.$parentInstance)===null||e===void 0?void 0:e.scrollable}}},expandedRowId:function(){return qn()},nameAttributeSelector:function(){return qn()}},components:{DTBodyRow:R5}};function cI(t,e,n,r,o,i){var s=a.resolveComponent("DTBodyRow");return a.openBlock(),a.createElementBlock("tbody",a.mergeProps({ref:i.bodyRef,class:t.cx("tbody"),role:"rowgroup",style:i.bodyStyle},t.ptm("tbody",i.ptmTBodyOptions)),[n.empty?(a.openBlock(),a.createBlock(s,{key:1,empty:n.empty,columns:n.columns,templates:n.templates},null,8,["empty","columns","templates"])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(n.value,function(l,c){return a.openBlock(),a.createBlock(s,{key:i.getRowKey(l,c),rowData:l,index:c,value:n.value,columns:n.columns,frozenRow:n.frozenRow,empty:n.empty,first:n.first,dataKey:n.dataKey,selection:n.selection,selectionKeys:n.selectionKeys,selectionMode:n.selectionMode,contextMenu:n.contextMenu,contextMenuSelection:n.contextMenuSelection,rowGroupMode:n.rowGroupMode,groupRowsBy:n.groupRowsBy,expandableRowGroups:n.expandableRowGroups,rowClass:n.rowClass,rowStyle:n.rowStyle,editMode:n.editMode,compareSelectionBy:n.compareSelectionBy,scrollable:n.scrollable,expandedRowIcon:n.expandedRowIcon,collapsedRowIcon:n.collapsedRowIcon,expandedRows:n.expandedRows,expandedRowGroups:n.expandedRowGroups,editingRows:n.editingRows,editingRowKeys:n.editingRowKeys,templates:n.templates,responsiveLayout:n.responsiveLayout,virtualScrollerContentProps:n.virtualScrollerContentProps,isVirtualScrollerDisabled:n.isVirtualScrollerDisabled,editingMeta:n.editingMeta,rowGroupHeaderStyle:i.rowGroupHeaderStyle,expandedRowId:i.expandedRowId,nameAttributeSelector:i.nameAttributeSelector,onRowgroupToggle:e[0]||(e[0]=function(u){return t.$emit("rowgroup-toggle",u)}),onRowClick:e[1]||(e[1]=function(u){return t.$emit("row-click",u)}),onRowDblclick:e[2]||(e[2]=function(u){return t.$emit("row-dblclick",u)}),onRowRightclick:e[3]||(e[3]=function(u){return t.$emit("row-rightclick",u)}),onRowTouchend:e[4]||(e[4]=function(u){return t.$emit("row-touchend",u)}),onRowKeydown:e[5]||(e[5]=function(u){return t.$emit("row-keydown",u)}),onRowMousedown:e[6]||(e[6]=function(u){return t.$emit("row-mousedown",u)}),onRowDragstart:e[7]||(e[7]=function(u){return t.$emit("row-dragstart",u)}),onRowDragover:e[8]||(e[8]=function(u){return t.$emit("row-dragover",u)}),onRowDragleave:e[9]||(e[9]=function(u){return t.$emit("row-dragleave",u)}),onRowDragend:e[10]||(e[10]=function(u){return t.$emit("row-dragend",u)}),onRowDrop:e[11]||(e[11]=function(u){return t.$emit("row-drop",u)}),onRowToggle:e[12]||(e[12]=function(u){return t.$emit("row-toggle",u)}),onRadioChange:e[13]||(e[13]=function(u){return t.$emit("radio-change",u)}),onCheckboxChange:e[14]||(e[14]=function(u){return t.$emit("checkbox-change",u)}),onCellEditInit:e[15]||(e[15]=function(u){return t.$emit("cell-edit-init",u)}),onCellEditComplete:e[16]||(e[16]=function(u){return t.$emit("cell-edit-complete",u)}),onCellEditCancel:e[17]||(e[17]=function(u){return t.$emit("cell-edit-cancel",u)}),onRowEditInit:e[18]||(e[18]=function(u){return t.$emit("row-edit-init",u)}),onRowEditSave:e[19]||(e[19]=function(u){return t.$emit("row-edit-save",u)}),onRowEditCancel:e[20]||(e[20]=function(u){return t.$emit("row-edit-cancel",u)}),onEditingMetaChange:e[21]||(e[21]=function(u){return t.$emit("editing-meta-change",u)}),unstyled:t.unstyled,pt:t.pt},null,8,["rowData","index","value","columns","frozenRow","empty","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","virtualScrollerContentProps","isVirtualScrollerDisabled","editingMeta","rowGroupHeaderStyle","expandedRowId","nameAttributeSelector","unstyled","pt"])}),128))],16)}V5.render=cI;var $5={name:"FooterCell",hostName:"DataTable",extends:re,props:{column:{type:Object,default:null},index:{type:Number,default:null}},data:function(){return{styleObject:{}}},mounted:function(){this.columnProp("frozen")&&this.updateStickyPosition()},updated:function(){this.columnProp("frozen")&&this.updateStickyPosition()},methods:{columnProp:function(e){return M.getVNodeProp(this.column,e)},getColumnPT:function(e){var n,r,o={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,size:(n=this.$parentInstance)===null||n===void 0||(n=n.$parentInstance)===null||n===void 0?void 0:n.size,showGridlines:((r=this.$parentInstance)===null||r===void 0||(r=r.$parentInstance)===null||r===void 0?void 0:r.showGridlines)||!1}};return a.mergeProps(this.ptm("column.".concat(e),{column:o}),this.ptm("column.".concat(e),o),this.ptmo(this.getColumnProp(),e,o))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},updateStickyPosition:function(){if(this.columnProp("frozen")){var e=this.columnProp("alignFrozen");if(e==="right"){var n=0,r=O.getNextElementSibling(this.$el,'[data-p-frozen-column="true"]');r&&(n=O.getOuterWidth(r)+parseFloat(r.style.right||0)),this.styleObject.right=n+"px"}else{var o=0,i=O.getPreviousElementSibling(this.$el,'[data-p-frozen-column="true"]');i&&(o=O.getOuterWidth(i)+parseFloat(i.style.left||0)),this.styleObject.left=o+"px"}}}},computed:{containerClass:function(){return[this.columnProp("footerClass"),this.columnProp("class"),this.cx("footerCell")]},containerStyle:function(){var e=this.columnProp("footerStyle"),n=this.columnProp("style");return this.columnProp("frozen")?[n,e,this.styleObject]:[n,e]}}};function Is(t){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Is(t)}function F5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function H5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F5(Object(n),!0).forEach(function(r){uI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function uI(t,e,n){return e=dI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dI(t){var e=fI(t,"string");return Is(e)=="symbol"?e:String(e)}function fI(t,e){if(Is(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var pI=["colspan","rowspan","data-p-frozen-column"];function hI(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("td",a.mergeProps({style:i.containerStyle,class:i.containerClass,role:"cell",colspan:i.columnProp("colspan"),rowspan:i.columnProp("rowspan")},H5(H5({},i.getColumnPT("root")),i.getColumnPT("footerCell")),{"data-p-frozen-column":i.columnProp("frozen")}),[n.column.children&&n.column.children.footer?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.footer),{key:0,column:n.column},null,8,["column"])):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(i.columnProp("footer")),1)],16,pI)}$5.render=hI;function mI(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=gI(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
198
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function gI(t,e){if(t){if(typeof t=="string")return _5(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _5(t,e)}}function _5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var z5={name:"TableFooter",hostName:"DataTable",extends:re,props:{columnGroup:{type:null,default:null},columns:{type:Object,default:null}},provide:function(){return{$rows:this.d_footerRows,$columns:this.d_footerColumns}},data:function(){return{d_footerRows:new Mo({type:"Row"}),d_footerColumns:new Mo({type:"Column"})}},beforeUnmount:function(){this.d_footerRows.clear(),this.d_footerColumns.clear()},methods:{columnProp:function(e,n){return M.getVNodeProp(e,n)},getColumnGroupPT:function(e){var n={props:this.getColumnGroupProps(),parent:{instance:this,props:this.$props,state:this.$data},context:{type:"footer",scrollable:this.ptmTFootOptions.context.scrollable}};return a.mergeProps(this.ptm("columnGroup.".concat(e),{columnGroup:n}),this.ptm("columnGroup.".concat(e),n),this.ptmo(this.getColumnGroupProps(),e,n))},getColumnGroupProps:function(){return this.columnGroup&&this.columnGroup.props&&this.columnGroup.props.pt?this.columnGroup.props.pt:void 0},getRowPT:function(e,n,r){var o={props:e.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:r}};return a.mergeProps(this.ptm("row.".concat(n),{row:o}),this.ptm("row.".concat(n),o),this.ptmo(this.getRowProp(e),n,o))},getRowProp:function(e){return e.props&&e.props.pt?e.props.pt:void 0},getFooterRows:function(){var e;return(e=this.d_footerRows)===null||e===void 0?void 0:e.get(this.columnGroup,this.columnGroup.children)},getFooterColumns:function(e){var n;return(n=this.d_footerColumns)===null||n===void 0?void 0:n.get(e,e.children)}},computed:{hasFooter:function(){var e=!1;if(this.columnGroup)e=!0;else if(this.columns){var n=mI(this.columns),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;if(this.columnProp(o,"footer")||o.children&&o.children.footer){e=!0;break}}}catch(i){n.e(i)}finally{n.f()}}return e},ptmTFootOptions:function(){var e;return{context:{scrollable:(e=this.$parentInstance)===null||e===void 0||(e=e.$parentInstance)===null||e===void 0?void 0:e.scrollable}}}},components:{DTFooterCell:$5}};function Ns(t){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ns(t)}function j5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function El(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j5(Object(n),!0).forEach(function(r){yI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yI(t,e,n){return e=bI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bI(t){var e=wI(t,"string");return Ns(e)=="symbol"?e:String(e)}function wI(t,e){if(Ns(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vI(t,e,n,r,o,i){var s=a.resolveComponent("DTFooterCell");return i.hasFooter?(a.openBlock(),a.createElementBlock("tfoot",a.mergeProps({key:0,class:t.cx("tfoot"),style:t.sx("tfoot"),role:"rowgroup"},n.columnGroup?El(El({},t.ptm("tfoot",i.ptmTFootOptions)),i.getColumnGroupPT("root")):t.ptm("tfoot",i.ptmTFootOptions),{"data-pc-section":"tfoot"}),[n.columnGroup?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(i.getFooterRows(),function(l,c){return a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:c,role:"row"},El(El({},t.ptm("footerRow")),i.getRowPT(l,"root",c))),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.getFooterColumns(l),function(u,d){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.columnProp(u,"columnKey")||i.columnProp(u,"field")||d},[i.columnProp(u,"hidden")?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:0,column:u,index:c,pt:t.pt},null,8,["column","index","pt"]))],64)}),128))],16)}),128)):(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:0,role:"row"},t.ptm("footerRow")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.columns,function(l,c){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.columnProp(l,"columnKey")||i.columnProp(l,"field")||c},[i.columnProp(l,"hidden")?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:0,column:l,pt:t.pt},null,8,["column","pt"]))],64)}),128))],16))],16)):a.createCommentVNode("",!0)}z5.render=vI;function Bs(t){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(t)}function Z5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Jr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Z5(Object(n),!0).forEach(function(r){CI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function CI(t,e,n){return e=SI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SI(t){var e=kI(t,"string");return Bs(e)=="symbol"?e:String(e)}function kI(t,e){if(Bs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bu={name:"ColumnFilter",hostName:"DataTable",extends:re,emits:["filter-change","filter-apply","operator-change","matchmode-change","constraint-add","constraint-remove","filter-clear","apply-click"],props:{field:{type:String,default:null},type:{type:String,default:"text"},display:{type:String,default:null},showMenu:{type:Boolean,default:!0},matchMode:{type:String,default:null},showOperator:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showApplyButton:{type:Boolean,default:!0},showMatchModes:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},matchModeOptions:{type:Array,default:null},maxConstraints:{type:Number,default:2},filterElement:{type:Function,default:null},filterHeaderTemplate:{type:Function,default:null},filterFooterTemplate:{type:Function,default:null},filterClearTemplate:{type:Function,default:null},filterApplyTemplate:{type:Function,default:null},filterIconTemplate:{type:Function,default:null},filterAddIconTemplate:{type:Function,default:null},filterRemoveIconTemplate:{type:Function,default:null},filterClearIconTemplate:{type:Function,default:null},filters:{type:Object,default:null},filtersStore:{type:Object,default:null},filterMenuClass:{type:String,default:null},filterMenuStyle:{type:null,default:null},filterInputProps:{type:null,default:null},column:null},data:function(){return{id:this.$attrs.id,overlayVisible:!1,defaultMatchMode:null,defaultOperator:null}},watch:{"$attrs.id":function(e){this.id=e||qn()}},overlay:null,selfClick:!1,overlayEventListener:null,beforeUnmount:function(){this.overlayEventListener&&(lr.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.overlay&&(xo.clear(this.overlay),this.onOverlayHide())},mounted:function(){if(this.id=this.id||qn(),this.filters&&this.filters[this.field]){var e=this.filters[this.field];e.operator?(this.defaultMatchMode=e.constraints[0].matchMode,this.defaultOperator=e.operator):this.defaultMatchMode=this.filters[this.field].matchMode}},methods:{getColumnPT:function(e,n){var r=Jr({props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data}},n);return a.mergeProps(this.ptm("column.".concat(e),{column:r}),this.ptm("column.".concat(e),r),this.ptmo(this.getColumnProp(),e,r))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},ptmFilterRowItemOptions:function(e){return{context:{highlighted:e&&this.isRowMatchModeSelected(e.value)}}},clearFilter:function(){var e=Jr({},this.filters);e[this.field].operator?(e[this.field].constraints.splice(1),e[this.field].operator=this.defaultOperator,e[this.field].constraints[0]={value:null,matchMode:this.defaultMatchMode}):(e[this.field].value=null,e[this.field].matchMode=this.defaultMatchMode),this.$emit("filter-clear"),this.$emit("filter-change",e),this.$emit("filter-apply"),this.hide()},applyFilter:function(){this.$emit("apply-click",{field:this.field,constraints:this.filters[this.field]}),this.$emit("filter-apply"),this.hide()},hasFilter:function(){if(this.filtersStore){var e=this.filtersStore[this.field];if(e)return e.operator?!this.isFilterBlank(e.constraints[0].value):!this.isFilterBlank(e.value)}return!1},hasRowFilter:function(){return this.filters[this.field]&&!this.isFilterBlank(this.filters[this.field].value)},isFilterBlank:function(e){return e!=null?typeof e=="string"&&e.trim().length==0||e instanceof Array&&e.length==0:!0},toggleMenu:function(e){this.overlayVisible=!this.overlayVisible,e.preventDefault()},onToggleButtonKeyDown:function(e){switch(e.code){case"Enter":case"NumpadEnter":case"Space":this.toggleMenu(e);break;case"Escape":this.overlayVisible=!1;break}},onRowMatchModeChange:function(e){var n=Jr({},this.filters);n[this.field].matchMode=e,this.$emit("matchmode-change",{field:this.field,matchMode:e}),this.$emit("filter-change",n),this.$emit("filter-apply"),this.hide()},onRowMatchModeKeyDown:function(e){var n=e.target;switch(e.code){case"ArrowDown":var r=this.findNextItem(n);r&&(n.removeAttribute("tabindex"),r.tabIndex="0",r.focus()),e.preventDefault();break;case"ArrowUp":var o=this.findPrevItem(n);o&&(n.removeAttribute("tabindex"),o.tabIndex="0",o.focus()),e.preventDefault();break}},isRowMatchModeSelected:function(e){return this.filters[this.field].matchMode===e},onOperatorChange:function(e){var n=Jr({},this.filters);n[this.field].operator=e,this.$emit("filter-change",n),this.$emit("operator-change",{field:this.field,operator:e}),this.showApplyButton||this.$emit("filter-apply")},onMenuMatchModeChange:function(e,n){var r=Jr({},this.filters);r[this.field].constraints[n].matchMode=e,this.$emit("matchmode-change",{field:this.field,matchMode:e,index:n}),this.showApplyButton||this.$emit("filter-apply")},addConstraint:function(){var e=Jr({},this.filters),n={value:null,matchMode:this.defaultMatchMode};e[this.field].constraints.push(n),this.$emit("constraint-add",{field:this.field,constraing:n}),this.$emit("filter-change",e),this.showApplyButton||this.$emit("filter-apply")},removeConstraint:function(e){var n=Jr({},this.filters),r=n[this.field].constraints.splice(e,1);this.$emit("constraint-remove",{field:this.field,constraing:r}),this.$emit("filter-change",n),this.showApplyButton||this.$emit("filter-apply")},filterCallback:function(){this.$emit("filter-apply")},findNextItem:function(e){var n=e.nextElementSibling;return n?O.getAttribute(n,"data-pc-section")==="filterseparator"?this.findNextItem(n):n:e.parentElement.firstElementChild},findPrevItem:function(e){var n=e.previousElementSibling;return n?O.getAttribute(n,"data-pc-section")==="filterseparator"?this.findPrevItem(n):n:e.parentElement.lastElementChild},hide:function(){this.overlayVisible=!1,O.focus(this.$refs.icon)},onContentClick:function(e){this.selfClick=!0,lr.emit("overlay-click",{originalEvent:e,target:this.overlay})},onContentMouseDown:function(){this.selfClick=!0},onOverlayEnter:function(e){var n=this;this.filterMenuStyle&&O.applyStyle(this.overlay,this.filterMenuStyle),xo.set("overlay",e,this.$primevue.config.zIndex.overlay),O.addStyles(e,{position:"absolute",top:"0",left:"0"}),O.absolutePosition(this.overlay,this.$refs.icon),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.overlayEventListener=function(r){n.isOutsideClicked(r.target)||(n.selfClick=!0)},lr.on("overlay-click",this.overlayEventListener)},onOverlayAfterEnter:function(){var e;(e=this.overlay)===null||e===void 0||(e=e.$focustrap)===null||e===void 0||e.autoFocus()},onOverlayLeave:function(){this.onOverlayHide()},onOverlayAfterLeave:function(e){xo.clear(e)},onOverlayHide:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindScrollListener(),this.overlay=null,lr.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null},overlayRef:function(e){this.overlay=e},isOutsideClicked:function(e){return!this.isTargetClicked(e)&&this.overlay&&!(this.overlay.isSameNode(e)||this.overlay.contains(e))},isTargetClicked:function(e){return this.$refs.icon&&(this.$refs.icon.isSameNode(e)||this.$refs.icon.contains(e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(n){e.overlayVisible&&!e.selfClick&&e.isOutsideClicked(n.target)&&(e.overlayVisible=!1),e.selfClick=!1},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null,this.selfClick=!1)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new tp(this.$refs.icon,function(){e.overlayVisible&&e.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!O.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}},computed:{showMenuButton:function(){return this.showMenu&&(this.display==="row"?this.type!=="boolean":!0)},overlayId:function(){return this.id+"_overlay"},matchModes:function(){var e=this;return this.matchModeOptions||this.$primevue.config.filterMatchModeOptions[this.type].map(function(n){return{label:e.$primevue.config.locale[n],value:n}})},isShowMatchModes:function(){return this.type!=="boolean"&&this.showMatchModes&&this.matchModes},operatorOptions:function(){return[{label:this.$primevue.config.locale.matchAll,value:Cl.AND},{label:this.$primevue.config.locale.matchAny,value:Cl.OR}]},noFilterLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.noFilter:void 0},isShowOperator:function(){return this.showOperator&&this.filters[this.field].operator},operator:function(){return this.filters[this.field].operator},fieldConstraints:function(){return this.filters[this.field].constraints||[this.filters[this.field]]},showRemoveIcon:function(){return this.fieldConstraints.length>1},removeRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.removeRule:void 0},addRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.addRule:void 0},isShowAddConstraint:function(){return this.showAddButton&&this.filters[this.field].operator&&this.fieldConstraints&&this.fieldConstraints.length<this.maxConstraints},clearButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.clear:void 0},applyButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.apply:void 0},filterMenuButtonAriaLabel:function(){return this.$primevue.config.locale?this.overlayVisible?this.$primevue.config.locale.showFilterMenu:this.$primevue.config.locale.hideFilterMenu:void 0},filterOperatorAriaLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.filterOperator:void 0},filterConstraintAriaLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.filterConstraint:void 0},ptmHeaderFilterClearParams:function(){return{context:{hidden:this.hasRowFilter()}}},ptmFilterMenuParams:function(){return{context:{overlayVisible:this.overlayVisible,active:this.hasFilter()}}}},components:{CFDropdown:kl,CFButton:lu,Portal:iu,FilterSlashIcon:E5,FilterIcon:O5,TrashIcon:M5,PlusIcon:T5},directives:{focustrap:dA}};function Rs(t){"@babel/helpers - typeof";return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rs(t)}function W5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function U5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W5(Object(n),!0).forEach(function(r){OI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function OI(t,e,n){return e=EI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function EI(t){var e=TI(t,"string");return Rs(e)=="symbol"?e:String(e)}function TI(t,e){if(Rs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var MI=["aria-label","aria-expanded","aria-controls"],xI=["id","aria-modal"],PI=["onClick","onKeydown","tabindex"];function DI(t,e,n,r,o,i){var s=a.resolveComponent("CFDropdown"),l=a.resolveComponent("CFButton"),c=a.resolveComponent("Portal"),u=a.resolveDirective("focustrap");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:t.cx("columnFilter")},i.getColumnPT("columnFilter")),[n.display==="row"?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("filterInput")},U5(U5({},n.filterInputProps),i.getColumnPT("filterInput"))),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterElement),{field:n.field,filterModel:n.filters[n.field],filterCallback:i.filterCallback},null,8,["field","filterModel","filterCallback"]))],16)):a.createCommentVNode("",!0),i.showMenuButton?(a.openBlock(),a.createElementBlock("button",a.mergeProps({key:1,ref:"icon",type:"button","aria-label":i.filterMenuButtonAriaLabel,"aria-haspopup":"true","aria-expanded":o.overlayVisible,"aria-controls":i.overlayId,class:t.cx("filterMenuButton"),onClick:e[0]||(e[0]=function(d){return i.toggleMenu(d)}),onKeydown:e[1]||(e[1]=function(d){return i.onToggleButtonKeyDown(d)})},i.getColumnPT("filterMenuButton",i.ptmFilterMenuParams)),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterIconTemplate||"FilterIcon"),a.normalizeProps(a.guardReactiveProps(i.getColumnPT("filterMenuIcon"))),null,16))],16,MI)):a.createCommentVNode("",!0),n.showClearButton&&n.display==="row"?(a.openBlock(),a.createElementBlock("button",a.mergeProps({key:2,class:t.cx("headerFilterClearButton"),type:"button",onClick:e[2]||(e[2]=function(d){return i.clearFilter()})},i.getColumnPT("headerFilterClearButton",i.ptmHeaderFilterClearParams)),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterClearIconTemplate||"FilterSlashIcon"),a.normalizeProps(a.guardReactiveProps(i.getColumnPT("filterClearIcon"))),null,16))],16)):a.createCommentVNode("",!0),a.createVNode(c,null,{default:a.withCtx(function(){return[a.createVNode(a.Transition,a.mergeProps({name:"p-connected-overlay",onEnter:i.onOverlayEnter,onAfterEnter:i.onOverlayAfterEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},i.getColumnPT("transition")),{default:a.withCtx(function(){return[o.overlayVisible?a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:i.overlayRef,id:i.overlayId,"aria-modal":o.overlayVisible,role:"dialog",class:[t.cx("filterOverlay"),n.filterMenuClass],onKeydown:e[10]||(e[10]=a.withKeys(function(){return i.hide&&i.hide.apply(i,arguments)},["escape"])),onClick:e[11]||(e[11]=function(){return i.onContentClick&&i.onContentClick.apply(i,arguments)}),onMousedown:e[12]||(e[12]=function(){return i.onContentMouseDown&&i.onContentMouseDown.apply(i,arguments)})},i.getColumnPT("filterOverlay")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterHeaderTemplate),{field:n.field,filterModel:n.filters[n.field],filterCallback:i.filterCallback},null,8,["field","filterModel","filterCallback"])),n.display==="row"?(a.openBlock(),a.createElementBlock("ul",a.mergeProps({key:0,class:t.cx("filterRowItems")},i.getColumnPT("filterRowItems")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.matchModes,function(d,f){return a.openBlock(),a.createElementBlock("li",a.mergeProps({key:d.label,class:t.cx("filterRowItem",{matchMode:d}),onClick:function(h){return i.onRowMatchModeChange(d.value)},onKeydown:[e[3]||(e[3]=function(p){return i.onRowMatchModeKeyDown(p)}),a.withKeys(a.withModifiers(function(p){return i.onRowMatchModeChange(d.value)},["prevent"]),["enter"])],tabindex:f===0?"0":null},i.getColumnPT("filterRowItem",i.ptmFilterRowItemOptions(d))),a.toDisplayString(d.label),17,PI)}),128)),a.createElementVNode("li",a.mergeProps({class:t.cx("filterSeparator")},i.getColumnPT("filterSeparator")),null,16),a.createElementVNode("li",a.mergeProps({class:t.cx("filterRowItem"),onClick:e[4]||(e[4]=function(d){return i.clearFilter()}),onKeydown:[e[5]||(e[5]=function(d){return i.onRowMatchModeKeyDown(d)}),e[6]||(e[6]=a.withKeys(function(d){return t.onRowClearItemClick()},["enter"]))]},i.getColumnPT("filterRowItem")),a.toDisplayString(i.noFilterLabel),17)],16)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[i.isShowOperator?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("filterOperator")},i.getColumnPT("filterOperator")),[a.createVNode(s,{options:i.operatorOptions,modelValue:i.operator,"aria-label":i.filterOperatorAriaLabel,class:a.normalizeClass(t.cx("filterOperatorDropdown")),optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[7]||(e[7]=function(d){return i.onOperatorChange(d)}),unstyled:t.unstyled,pt:i.getColumnPT("filterOperatorDropdown")},null,8,["options","modelValue","aria-label","class","unstyled","pt"])],16)):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("filterConstraints")},i.getColumnPT("filterConstraints")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.fieldConstraints,function(d,f){return a.openBlock(),a.createElementBlock("div",a.mergeProps({key:f,class:t.cx("filterConstraint")},i.getColumnPT("filterConstraint")),[i.isShowMatchModes?(a.openBlock(),a.createBlock(s,{key:0,options:i.matchModes,modelValue:d.matchMode,class:a.normalizeClass(t.cx("filterMatchModeDropdown")),optionLabel:"label",optionValue:"value","aria-label":i.filterConstraintAriaLabel,"onUpdate:modelValue":function(h){return i.onMenuMatchModeChange(h,f)},unstyled:t.unstyled,pt:i.getColumnPT("filterMatchModeDropdown")},null,8,["options","modelValue","class","aria-label","onUpdate:modelValue","unstyled","pt"])):a.createCommentVNode("",!0),n.display==="menu"?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterElement),{key:1,field:n.field,filterModel:d,filterCallback:i.filterCallback,applyFilter:i.applyFilter},null,8,["field","filterModel","filterCallback","applyFilter"])):a.createCommentVNode("",!0),a.createElementVNode("div",a.normalizeProps(a.guardReactiveProps(i.getColumnPT("filterRemove"))),[i.showRemoveIcon?(a.openBlock(),a.createBlock(l,{key:0,type:"button",class:a.normalizeClass(t.cx("filterRemoveButton")),onClick:function(h){return i.removeConstraint(f)},label:i.removeRuleButtonLabel,unstyled:t.unstyled,text:"",severity:"danger",size:"small",pt:i.getColumnPT("filterRemoveButton")},{icon:a.withCtx(function(p){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterRemoveIconTemplate||"TrashIcon"),a.mergeProps({class:p.class},i.getColumnPT("filterRemoveButton").icon),null,16,["class"]))]}),_:2},1032,["class","onClick","label","unstyled","pt"])):a.createCommentVNode("",!0)],16)],16)}),128))],16),i.isShowAddConstraint?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:t.cx("filterAddRule")},i.getColumnPT("filterAddRule")),[a.createVNode(l,{type:"button",label:i.addRuleButtonLabel,iconPos:"left",class:a.normalizeClass(t.cx("filterAddRuleButton")),onClick:e[8]||(e[8]=function(d){return i.addConstraint()}),unstyled:t.unstyled,text:"",severity:"info",size:"small",pt:i.getColumnPT("filterAddRuleButton")},{icon:a.withCtx(function(d){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterAddIconTemplate||"PlusIcon"),a.mergeProps({class:d.class},i.getColumnPT("filterAddRuleButton").icon),null,16,["class"]))]}),_:1},8,["label","class","unstyled","pt"])],16)):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("filterButtonbar")},i.getColumnPT("filterButtonbar")),[!n.filterClearTemplate&&n.showClearButton?(a.openBlock(),a.createBlock(l,{key:0,type:"button",class:a.normalizeClass(t.cx("filterClearButton")),label:i.clearButtonLabel,onClick:i.clearFilter,unstyled:t.unstyled,size:"small",outlined:"",pt:i.getColumnPT("filterClearButton")},null,8,["class","label","onClick","unstyled","pt"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterClearTemplate),{key:1,field:n.field,filterModel:n.filters[n.field],filterCallback:i.clearFilter},null,8,["field","filterModel","filterCallback"])),n.showApplyButton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[n.filterApplyTemplate?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterApplyTemplate),{key:1,field:n.field,filterModel:n.filters[n.field],filterCallback:i.applyFilter},null,8,["field","filterModel","filterCallback"])):(a.openBlock(),a.createBlock(l,{key:0,type:"button",class:a.normalizeClass(t.cx("filterApplyButton")),label:i.applyButtonLabel,onClick:e[9]||(e[9]=function(d){return i.applyFilter()}),unstyled:t.unstyled,size:"small",pt:i.getColumnPT("filterApplyButton")},null,8,["class","label","unstyled","pt"]))],64)):a.createCommentVNode("",!0)],16)],64)),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.filterFooterTemplate),{field:n.field,filterModel:n.filters[n.field],filterCallback:i.filterCallback},null,8,["field","filterModel","filterCallback"]))],16,xI)),[[u]]):a.createCommentVNode("",!0)]}),_:1},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:1})],16)}bu.render=DI;var wu={name:"HeaderCheckbox",hostName:"DataTable",extends:re,emits:["change"],props:{checked:null,disabled:null,column:null,headerCheckboxIconTemplate:{type:Function,default:null}},methods:{getColumnPT:function(e){var n={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{checked:this.checked,disabled:this.disabled}};return a.mergeProps(this.ptm("column.".concat(e),{column:n}),this.ptm("column.".concat(e),n),this.ptmo(this.getColumnProp(),e,n))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onChange:function(e){this.$emit("change",{originalEvent:e,checked:!this.checked})}},computed:{headerCheckboxAriaLabel:function(){return this.$primevue.config.locale.aria?this.checked?this.$primevue.config.locale.aria.selectAll:this.$primevue.config.locale.aria.unselectAll:void 0}},components:{CheckIcon:Wo,Checkbox:hu}};function AI(t,e,n,r,o,i){var s=a.resolveComponent("CheckIcon"),l=a.resolveComponent("Checkbox");return a.openBlock(),a.createBlock(l,{modelValue:n.checked,binary:!0,disabled:n.disabled,"aria-label":i.headerCheckboxAriaLabel,onChange:i.onChange,pt:i.getColumnPT("headerCheckbox")},{icon:a.withCtx(function(c){return[n.headerCheckboxIconTemplate?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.headerCheckboxIconTemplate),{key:0,checked:c.checked,class:a.normalizeClass(c.class)},null,8,["checked","class"])):!n.headerCheckboxIconTemplate&&c.checked?(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:c.class},i.getColumnPT("headerCheckbox.icon")),null,16,["class"])):a.createCommentVNode("",!0)]}),_:1},8,["modelValue","disabled","aria-label","onChange","pt"])}wu.render=AI;var K5={name:"HeaderCell",hostName:"DataTable",extends:re,emits:["column-click","column-mousedown","column-dragstart","column-dragover","column-dragleave","column-drop","column-resizestart","checkbox-change","filter-change","filter-apply","operator-change","matchmode-change","constraint-add","constraint-remove","filter-clear","apply-click"],props:{column:{type:Object,default:null},index:{type:Number,default:null},resizableColumns:{type:Boolean,default:!1},groupRowsBy:{type:[Array,String,Function],default:null},sortMode:{type:String,default:"single"},groupRowSortField:{type:[String,Function],default:null},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},multiSortMeta:{type:Array,default:null},allRowsSelected:{type:Boolean,default:!1},empty:{type:Boolean,default:!1},filterDisplay:{type:String,default:null},filters:{type:Object,default:null},filtersStore:{type:Object,default:null},filterColumn:{type:Boolean,default:!1},reorderableColumns:{type:Boolean,default:!1},filterInputProps:{type:null,default:null}},data:function(){return{styleObject:{}}},mounted:function(){this.columnProp("frozen")&&this.updateStickyPosition()},updated:function(){this.columnProp("frozen")&&this.updateStickyPosition()},methods:{columnProp:function(e){return M.getVNodeProp(this.column,e)},getColumnPT:function(e){var n,r,o={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,sortable:this.columnProp("sortable")===""||this.columnProp("sortable"),sorted:this.isColumnSorted(),resizable:this.resizableColumns,size:(n=this.$parentInstance)===null||n===void 0||(n=n.$parentInstance)===null||n===void 0?void 0:n.size,showGridlines:((r=this.$parentInstance)===null||r===void 0||(r=r.$parentInstance)===null||r===void 0?void 0:r.showGridlines)||!1}};return a.mergeProps(this.ptm("column.".concat(e),{column:o}),this.ptm("column.".concat(e),o),this.ptmo(this.getColumnProp(),e,o))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onClick:function(e){this.$emit("column-click",{originalEvent:e,column:this.column})},onKeyDown:function(e){(e.code==="Enter"||e.code==="NumpadEnter"||e.code==="Space")&&e.currentTarget.nodeName==="TH"&&O.getAttribute(e.currentTarget,"data-p-sortable-column")&&(this.$emit("column-click",{originalEvent:e,column:this.column}),e.preventDefault())},onMouseDown:function(e){this.$emit("column-mousedown",{originalEvent:e,column:this.column})},onDragStart:function(e){this.$emit("column-dragstart",{originalEvent:e,column:this.column})},onDragOver:function(e){this.$emit("column-dragover",{originalEvent:e,column:this.column})},onDragLeave:function(e){this.$emit("column-dragleave",{originalEvent:e,column:this.column})},onDrop:function(e){this.$emit("column-drop",{originalEvent:e,column:this.column})},onResizeStart:function(e){this.$emit("column-resizestart",e)},getMultiSortMetaIndex:function(){var e=this;return this.multiSortMeta.findIndex(function(n){return n.field===e.columnProp("field")||n.field===e.columnProp("sortField")})},getBadgeValue:function(){var e=this.getMultiSortMetaIndex();return this.groupRowsBy&&this.groupRowsBy===this.groupRowSortField&&e>-1?e:e+1},isMultiSorted:function(){return this.sortMode==="multiple"&&this.columnProp("sortable")&&this.getMultiSortMetaIndex()>-1},isColumnSorted:function(){return this.sortMode==="single"?this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")):this.isMultiSorted()},updateStickyPosition:function(){if(this.columnProp("frozen")){var e=this.columnProp("alignFrozen");if(e==="right"){var n=0,r=O.getNextElementSibling(this.$el,'[data-p-frozen-column="true"]');r&&(n=O.getOuterWidth(r)+parseFloat(r.style.right||0)),this.styleObject.right=n+"px"}else{var o=0,i=O.getPreviousElementSibling(this.$el,'[data-p-frozen-column="true"]');i&&(o=O.getOuterWidth(i)+parseFloat(i.style.left||0)),this.styleObject.left=o+"px"}var s=this.$el.parentElement.nextElementSibling;if(s){var l=O.index(this.$el);s.children[l]&&(s.children[l].style.left=this.styleObject.left,s.children[l].style.right=this.styleObject.right)}}},onHeaderCheckboxChange:function(e){this.$emit("checkbox-change",e)}},computed:{containerClass:function(){return[this.cx("headerCell"),this.filterColumn?this.columnProp("filterHeaderClass"):this.columnProp("headerClass"),this.columnProp("class")]},containerStyle:function(){var e=this.filterColumn?this.columnProp("filterHeaderStyle"):this.columnProp("headerStyle"),n=this.columnProp("style");return this.columnProp("frozen")?[n,e,this.styleObject]:[n,e]},sortState:function(){var e=!1,n=null;if(this.sortMode==="single")e=this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")),n=e?this.sortOrder:0;else if(this.sortMode==="multiple"){var r=this.getMultiSortMetaIndex();r>-1&&(e=!0,n=this.multiSortMeta[r].order)}return{sorted:e,sortOrder:n}},sortableColumnIcon:function(){var e=this.sortState,n=e.sorted,r=e.sortOrder;if(n){if(n&&r>0)return yu;if(n&&r<0)return gu}else return mu;return null},ariaSort:function(){if(this.columnProp("sortable")){var e=this.sortState,n=e.sorted,r=e.sortOrder;return n&&r<0?"descending":n&&r>0?"ascending":"none"}else return null}},components:{DTHeaderCheckbox:wu,DTColumnFilter:bu,SortAltIcon:mu,SortAmountUpAltIcon:yu,SortAmountDownIcon:gu}};function Ls(t){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ls(t)}function G5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function q5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?G5(Object(n),!0).forEach(function(r){II(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function II(t,e,n){return e=NI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function NI(t){var e=BI(t,"string");return Ls(e)=="symbol"?e:String(e)}function BI(t,e){if(Ls(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var RI=["tabindex","colspan","rowspan","aria-sort","data-p-sortable-column","data-p-resizable-column","data-p-highlight","data-p-filter-column","data-p-frozen-column","data-p-reorderable-column"];function LI(t,e,n,r,o,i){var s=a.resolveComponent("DTHeaderCheckbox"),l=a.resolveComponent("DTColumnFilter");return a.openBlock(),a.createElementBlock("th",a.mergeProps({style:i.containerStyle,class:i.containerClass,tabindex:i.columnProp("sortable")?"0":null,role:"columnheader",colspan:i.columnProp("colspan"),rowspan:i.columnProp("rowspan"),"aria-sort":i.ariaSort,onClick:e[8]||(e[8]=function(){return i.onClick&&i.onClick.apply(i,arguments)}),onKeydown:e[9]||(e[9]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)}),onMousedown:e[10]||(e[10]=function(){return i.onMouseDown&&i.onMouseDown.apply(i,arguments)}),onDragstart:e[11]||(e[11]=function(){return i.onDragStart&&i.onDragStart.apply(i,arguments)}),onDragover:e[12]||(e[12]=function(){return i.onDragOver&&i.onDragOver.apply(i,arguments)}),onDragleave:e[13]||(e[13]=function(){return i.onDragLeave&&i.onDragLeave.apply(i,arguments)}),onDrop:e[14]||(e[14]=function(){return i.onDrop&&i.onDrop.apply(i,arguments)})},q5(q5({},i.getColumnPT("root")),i.getColumnPT("headerCell")),{"data-p-sortable-column":i.columnProp("sortable"),"data-p-resizable-column":n.resizableColumns,"data-p-highlight":i.isColumnSorted(),"data-p-filter-column":n.filterColumn,"data-p-frozen-column":i.columnProp("frozen"),"data-p-reorderable-column":n.reorderableColumns}),[n.resizableColumns&&!i.columnProp("frozen")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:t.cx("columnResizer"),onMousedown:e[0]||(e[0]=function(){return i.onResizeStart&&i.onResizeStart.apply(i,arguments)})},i.getColumnPT("columnResizer")),null,16)):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("headerContent")},i.getColumnPT("headerContent")),[n.column.children&&n.column.children.header?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children.header),{key:0,column:n.column},null,8,["column"])):a.createCommentVNode("",!0),i.columnProp("header")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:t.cx("headerTitle")},i.getColumnPT("headerTitle")),a.toDisplayString(i.columnProp("header")),17)):a.createCommentVNode("",!0),i.columnProp("sortable")?(a.openBlock(),a.createElementBlock("span",a.normalizeProps(a.mergeProps({key:2},i.getColumnPT("sort"))),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.column.children&&n.column.children.sorticon||i.sortableColumnIcon),a.mergeProps({sorted:i.sortState.sorted,sortOrder:i.sortState.sortOrder,class:t.cx("sortIcon")},i.getColumnPT("sorticon")),null,16,["sorted","sortOrder","class"]))],16)):a.createCommentVNode("",!0),i.isMultiSorted()?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:3,class:t.cx("sortBadge")},i.getColumnPT("sortBadge")),a.toDisplayString(i.getBadgeValue()),17)):a.createCommentVNode("",!0),i.columnProp("selectionMode")==="multiple"&&n.filterDisplay!=="row"?(a.openBlock(),a.createBlock(s,{key:4,checked:n.allRowsSelected,onChange:i.onHeaderCheckboxChange,disabled:n.empty,headerCheckboxIconTemplate:n.column.children&&n.column.children.headercheckboxicon,column:n.column,unstyled:t.unstyled,pt:t.pt},null,8,["checked","onChange","disabled","headerCheckboxIconTemplate","column","unstyled","pt"])):a.createCommentVNode("",!0),n.filterDisplay==="menu"&&n.column.children&&n.column.children.filter?(a.openBlock(),a.createBlock(l,{key:5,field:i.columnProp("filterField")||i.columnProp("field"),type:i.columnProp("dataType"),display:"menu",showMenu:i.columnProp("showFilterMenu"),filterElement:n.column.children&&n.column.children.filter,filterHeaderTemplate:n.column.children&&n.column.children.filterheader,filterFooterTemplate:n.column.children&&n.column.children.filterfooter,filterClearTemplate:n.column.children&&n.column.children.filterclear,filterApplyTemplate:n.column.children&&n.column.children.filterapply,filterIconTemplate:n.column.children&&n.column.children.filtericon,filterAddIconTemplate:n.column.children&&n.column.children.filteraddicon,filterRemoveIconTemplate:n.column.children&&n.column.children.filterremoveicon,filterClearIconTemplate:n.column.children&&n.column.children.filterclearicon,filters:n.filters,filtersStore:n.filtersStore,filterInputProps:n.filterInputProps,onFilterChange:e[1]||(e[1]=function(c){return t.$emit("filter-change",c)}),onFilterApply:e[2]||(e[2]=function(c){return t.$emit("filter-apply")}),filterMenuStyle:i.columnProp("filterMenuStyle"),filterMenuClass:i.columnProp("filterMenuClass"),showOperator:i.columnProp("showFilterOperator"),showClearButton:i.columnProp("showClearButton"),showApplyButton:i.columnProp("showApplyButton"),showMatchModes:i.columnProp("showFilterMatchModes"),showAddButton:i.columnProp("showAddButton"),matchModeOptions:i.columnProp("filterMatchModeOptions"),maxConstraints:i.columnProp("maxConstraints"),onOperatorChange:e[3]||(e[3]=function(c){return t.$emit("operator-change",c)}),onMatchmodeChange:e[4]||(e[4]=function(c){return t.$emit("matchmode-change",c)}),onConstraintAdd:e[5]||(e[5]=function(c){return t.$emit("constraint-add",c)}),onConstraintRemove:e[6]||(e[6]=function(c){return t.$emit("constraint-remove",c)}),onApplyClick:e[7]||(e[7]=function(c){return t.$emit("apply-click",c)}),column:n.column,unstyled:t.unstyled,pt:t.pt},null,8,["field","type","showMenu","filterElement","filterHeaderTemplate","filterFooterTemplate","filterClearTemplate","filterApplyTemplate","filterIconTemplate","filterAddIconTemplate","filterRemoveIconTemplate","filterClearIconTemplate","filters","filtersStore","filterInputProps","filterMenuStyle","filterMenuClass","showOperator","showClearButton","showApplyButton","showMatchModes","showAddButton","matchModeOptions","maxConstraints","column","unstyled","pt"])):a.createCommentVNode("",!0)],16)],16,RI)}K5.render=LI;var Y5={name:"TableHeader",hostName:"DataTable",extends:re,emits:["column-click","column-mousedown","column-dragstart","column-dragover","column-dragleave","column-drop","column-resizestart","checkbox-change","filter-change","filter-apply","operator-change","matchmode-change","constraint-add","constraint-remove","filter-clear","apply-click"],props:{columnGroup:{type:null,default:null},columns:{type:null,default:null},rowGroupMode:{type:String,default:null},groupRowsBy:{type:[Array,String,Function],default:null},resizableColumns:{type:Boolean,default:!1},allRowsSelected:{type:Boolean,default:!1},empty:{type:Boolean,default:!1},sortMode:{type:String,default:"single"},groupRowSortField:{type:[String,Function],default:null},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},multiSortMeta:{type:Array,default:null},filterDisplay:{type:String,default:null},filters:{type:Object,default:null},filtersStore:{type:Object,default:null},reorderableColumns:{type:Boolean,default:!1},filterInputProps:{type:null,default:null}},provide:function(){return{$rows:this.d_headerRows,$columns:this.d_headerColumns}},data:function(){return{d_headerRows:new Mo({type:"Row"}),d_headerColumns:new Mo({type:"Column"})}},beforeUnmount:function(){this.d_headerRows.clear(),this.d_headerColumns.clear()},methods:{columnProp:function(e,n){return M.getVNodeProp(e,n)},getColumnGroupPT:function(e){var n,r={props:this.getColumnGroupProps(),parent:{instance:this,props:this.$props,state:this.$data},context:{type:"header",scrollable:(n=this.$parentInstance)===null||n===void 0||(n=n.$parentInstance)===null||n===void 0?void 0:n.scrollable}};return a.mergeProps(this.ptm("columnGroup.".concat(e),{columnGroup:r}),this.ptm("columnGroup.".concat(e),r),this.ptmo(this.getColumnGroupProps(),e,r))},getColumnGroupProps:function(){return this.columnGroup&&this.columnGroup.props&&this.columnGroup.props.pt?this.columnGroup.props.pt:void 0},getRowPT:function(e,n,r){var o={props:e.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:r}};return a.mergeProps(this.ptm("row.".concat(n),{row:o}),this.ptm("row.".concat(n),o),this.ptmo(this.getRowProp(e),n,o))},getRowProp:function(e){return e.props&&e.props.pt?e.props.pt:void 0},getColumnPT:function(e,n,r){var o={props:e.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:r}};return a.mergeProps(this.ptm("column.".concat(n),{column:o}),this.ptm("column.".concat(n),o),this.ptmo(this.getColumnProp(e),n,o))},getColumnProp:function(e){return e.props&&e.props.pt?e.props.pt:void 0},getFilterColumnHeaderClass:function(e){return[this.cx("headerCell",{column:e}),this.columnProp(e,"filterHeaderClass"),this.columnProp(e,"class")]},getFilterColumnHeaderStyle:function(e){return[this.columnProp(e,"filterHeaderStyle"),this.columnProp(e,"style")]},getHeaderRows:function(){var e;return(e=this.d_headerRows)===null||e===void 0?void 0:e.get(this.columnGroup,this.columnGroup.children)},getHeaderColumns:function(e){var n;return(n=this.d_headerColumns)===null||n===void 0?void 0:n.get(e,e.children)}},computed:{ptmTHeadOptions:function(){var e;return{context:{scrollable:(e=this.$parentInstance)===null||e===void 0||(e=e.$parentInstance)===null||e===void 0?void 0:e.scrollable}}}},components:{DTHeaderCell:K5,DTHeaderCheckbox:wu,DTColumnFilter:bu}};function Vs(t){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vs(t)}function J5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Uo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?J5(Object(n),!0).forEach(function(r){VI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function VI(t,e,n){return e=$I(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $I(t){var e=FI(t,"string");return Vs(e)=="symbol"?e:String(e)}function FI(t,e){if(Vs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function HI(t,e,n,r,o,i){var s=a.resolveComponent("DTHeaderCell"),l=a.resolveComponent("DTHeaderCheckbox"),c=a.resolveComponent("DTColumnFilter");return a.openBlock(),a.createElementBlock("thead",a.mergeProps({class:t.cx("thead"),style:t.sx("thead"),role:"rowgroup"},n.columnGroup?Uo(Uo({},t.ptm("thead",i.ptmTHeadOptions)),i.getColumnGroupPT("root")):t.ptm("thead",i.ptmTHeadOptions),{"data-pc-section":"thead"}),[n.columnGroup?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(i.getHeaderRows(),function(u,d){return a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:d,role:"row"},Uo(Uo({},t.ptm("headerRow")),i.getRowPT(u,"root",d))),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.getHeaderColumns(u),function(f,p){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.columnProp(f,"columnKey")||i.columnProp(f,"field")||p},[!i.columnProp(f,"hidden")&&(n.rowGroupMode!=="subheader"||n.groupRowsBy!==i.columnProp(f,"field"))&&typeof f.children!="string"?(a.openBlock(),a.createBlock(s,{key:0,column:f,onColumnClick:e[23]||(e[23]=function(h){return t.$emit("column-click",h)}),onColumnMousedown:e[24]||(e[24]=function(h){return t.$emit("column-mousedown",h)}),groupRowsBy:n.groupRowsBy,groupRowSortField:n.groupRowSortField,sortMode:n.sortMode,sortField:n.sortField,sortOrder:n.sortOrder,multiSortMeta:n.multiSortMeta,allRowsSelected:n.allRowsSelected,empty:n.empty,onCheckboxChange:e[25]||(e[25]=function(h){return t.$emit("checkbox-change",h)}),filters:n.filters,filterDisplay:n.filterDisplay,filtersStore:n.filtersStore,onFilterChange:e[26]||(e[26]=function(h){return t.$emit("filter-change",h)}),onFilterApply:e[27]||(e[27]=function(h){return t.$emit("filter-apply")}),onOperatorChange:e[28]||(e[28]=function(h){return t.$emit("operator-change",h)}),onMatchmodeChange:e[29]||(e[29]=function(h){return t.$emit("matchmode-change",h)}),onConstraintAdd:e[30]||(e[30]=function(h){return t.$emit("constraint-add",h)}),onConstraintRemove:e[31]||(e[31]=function(h){return t.$emit("constraint-remove",h)}),onApplyClick:e[32]||(e[32]=function(h){return t.$emit("apply-click",h)}),unstyled:t.unstyled,pt:t.pt},null,8,["column","groupRowsBy","groupRowSortField","sortMode","sortField","sortOrder","multiSortMeta","allRowsSelected","empty","filters","filterDisplay","filtersStore","unstyled","pt"])):a.createCommentVNode("",!0)],64)}),128))],16)}),128)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("tr",a.mergeProps({role:"row"},t.ptm("headerRow")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.columns,function(u,d){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.columnProp(u,"columnKey")||i.columnProp(u,"field")||d},[!i.columnProp(u,"hidden")&&(n.rowGroupMode!=="subheader"||n.groupRowsBy!==i.columnProp(u,"field"))?(a.openBlock(),a.createBlock(s,{key:0,column:u,index:d,onColumnClick:e[0]||(e[0]=function(f){return t.$emit("column-click",f)}),onColumnMousedown:e[1]||(e[1]=function(f){return t.$emit("column-mousedown",f)}),onColumnDragstart:e[2]||(e[2]=function(f){return t.$emit("column-dragstart",f)}),onColumnDragover:e[3]||(e[3]=function(f){return t.$emit("column-dragover",f)}),onColumnDragleave:e[4]||(e[4]=function(f){return t.$emit("column-dragleave",f)}),onColumnDrop:e[5]||(e[5]=function(f){return t.$emit("column-drop",f)}),groupRowsBy:n.groupRowsBy,groupRowSortField:n.groupRowSortField,reorderableColumns:n.reorderableColumns,resizableColumns:n.resizableColumns,onColumnResizestart:e[6]||(e[6]=function(f){return t.$emit("column-resizestart",f)}),sortMode:n.sortMode,sortField:n.sortField,sortOrder:n.sortOrder,multiSortMeta:n.multiSortMeta,allRowsSelected:n.allRowsSelected,empty:n.empty,onCheckboxChange:e[7]||(e[7]=function(f){return t.$emit("checkbox-change",f)}),filters:n.filters,filterDisplay:n.filterDisplay,filtersStore:n.filtersStore,filterInputProps:n.filterInputProps,onFilterChange:e[8]||(e[8]=function(f){return t.$emit("filter-change",f)}),onFilterApply:e[9]||(e[9]=function(f){return t.$emit("filter-apply")}),onOperatorChange:e[10]||(e[10]=function(f){return t.$emit("operator-change",f)}),onMatchmodeChange:e[11]||(e[11]=function(f){return t.$emit("matchmode-change",f)}),onConstraintAdd:e[12]||(e[12]=function(f){return t.$emit("constraint-add",f)}),onConstraintRemove:e[13]||(e[13]=function(f){return t.$emit("constraint-remove",f)}),onApplyClick:e[14]||(e[14]=function(f){return t.$emit("apply-click",f)}),unstyled:t.unstyled,pt:t.pt},null,8,["column","index","groupRowsBy","groupRowSortField","reorderableColumns","resizableColumns","sortMode","sortField","sortOrder","multiSortMeta","allRowsSelected","empty","filters","filterDisplay","filtersStore","filterInputProps","unstyled","pt"])):a.createCommentVNode("",!0)],64)}),128))],16),n.filterDisplay==="row"?(a.openBlock(),a.createElementBlock("tr",a.mergeProps({key:0,role:"row"},t.ptm("headerRow")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.columns,function(u,d){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.columnProp(u,"columnKey")||i.columnProp(u,"field")||d},[!i.columnProp(u,"hidden")&&(n.rowGroupMode!=="subheader"||n.groupRowsBy!==i.columnProp(u,"field"))?(a.openBlock(),a.createElementBlock("th",a.mergeProps({key:0,style:i.getFilterColumnHeaderStyle(u),class:i.getFilterColumnHeaderClass(u)},Uo(Uo({},i.getColumnPT(u,"root",d)),i.getColumnPT(u,"headerCell",d))),[i.columnProp(u,"selectionMode")==="multiple"?(a.openBlock(),a.createBlock(l,{key:0,checked:n.allRowsSelected,disabled:n.empty,onChange:e[15]||(e[15]=function(f){return t.$emit("checkbox-change",f)}),column:u,unstyled:t.unstyled,pt:t.pt},null,8,["checked","disabled","column","unstyled","pt"])):a.createCommentVNode("",!0),u.children&&u.children.filter?(a.openBlock(),a.createBlock(c,{key:1,field:i.columnProp(u,"filterField")||i.columnProp(u,"field"),type:i.columnProp(u,"dataType"),display:"row",showMenu:i.columnProp(u,"showFilterMenu"),filterElement:u.children&&u.children.filter,filterHeaderTemplate:u.children&&u.children.filterheader,filterFooterTemplate:u.children&&u.children.filterfooter,filterClearTemplate:u.children&&u.children.filterclear,filterApplyTemplate:u.children&&u.children.filterapply,filterIconTemplate:u.children&&u.children.filtericon,filterAddIconTemplate:u.children&&u.children.filteraddicon,filterRemoveIconTemplate:u.children&&u.children.filterremoveicon,filterClearIconTemplate:u.children&&u.children.filterclearicon,filters:n.filters,filtersStore:n.filtersStore,filterInputProps:n.filterInputProps,onFilterChange:e[16]||(e[16]=function(f){return t.$emit("filter-change",f)}),onFilterApply:e[17]||(e[17]=function(f){return t.$emit("filter-apply")}),filterMenuStyle:i.columnProp(u,"filterMenuStyle"),filterMenuClass:i.columnProp(u,"filterMenuClass"),showOperator:i.columnProp(u,"showFilterOperator"),showClearButton:i.columnProp(u,"showClearButton"),showApplyButton:i.columnProp(u,"showApplyButton"),showMatchModes:i.columnProp(u,"showFilterMatchModes"),showAddButton:i.columnProp(u,"showAddButton"),matchModeOptions:i.columnProp(u,"filterMatchModeOptions"),maxConstraints:i.columnProp(u,"maxConstraints"),onOperatorChange:e[18]||(e[18]=function(f){return t.$emit("operator-change",f)}),onMatchmodeChange:e[19]||(e[19]=function(f){return t.$emit("matchmode-change",f)}),onConstraintAdd:e[20]||(e[20]=function(f){return t.$emit("constraint-add",f)}),onConstraintRemove:e[21]||(e[21]=function(f){return t.$emit("constraint-remove",f)}),onApplyClick:e[22]||(e[22]=function(f){return t.$emit("apply-click",f)}),column:u,unstyled:t.unstyled,pt:t.pt},null,8,["field","type","showMenu","filterElement","filterHeaderTemplate","filterFooterTemplate","filterClearTemplate","filterApplyTemplate","filterIconTemplate","filterAddIconTemplate","filterRemoveIconTemplate","filterClearIconTemplate","filters","filtersStore","filterInputProps","filterMenuStyle","filterMenuClass","showOperator","showClearButton","showApplyButton","showMatchModes","showAddButton","matchModeOptions","maxConstraints","column","unstyled","pt"])):a.createCommentVNode("",!0)],16)):a.createCommentVNode("",!0)],64)}),128))],16)):a.createCommentVNode("",!0)],64))],16)}Y5.render=HI;function $s(t){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$s(t)}var _I=["expanded"];function zI(t,e){if(t==null)return{};var n=jI(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function jI(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Q5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Qr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Q5(Object(n),!0).forEach(function(r){ZI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ZI(t,e,n){return e=WI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function WI(t){var e=UI(t,"string");return $s(e)=="symbol"?e:String(e)}function UI(t,e){if($s(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function X5(t,e){return qI(t)||GI(t,e)||vu(t,e)||KI()}function KI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
199
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GI(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function qI(t){if(Array.isArray(t))return t}function Fs(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=vu(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
200
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function we(t){return QI(t)||JI(t)||vu(t)||YI()}function YI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
201
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vu(t,e){if(t){if(typeof t=="string")return Cu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cu(t,e)}}function JI(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function QI(t){if(Array.isArray(t))return Cu(t)}function Cu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var e3={name:"DataTable",extends:LA,inheritAttrs:!1,emits:["value-change","update:first","update:rows","page","update:sortField","update:sortOrder","update:multiSortMeta","sort","filter","row-click","row-dblclick","update:selection","row-select","row-unselect","update:contextMenuSelection","row-contextmenu","row-unselect-all","row-select-all","select-all-change","column-resize-end","column-reorder","row-reorder","update:expandedRows","row-collapse","row-expand","update:expandedRowGroups","rowgroup-collapse","rowgroup-expand","update:filters","state-restore","state-save","cell-edit-init","cell-edit-complete","cell-edit-cancel","update:editingRows","row-edit-init","row-edit-save","row-edit-cancel"],provide:function(){return{$columns:this.d_columns,$columnGroups:this.d_columnGroups}},data:function(){return{d_first:this.first,d_rows:this.rows,d_sortField:this.sortField,d_sortOrder:this.sortOrder,d_nullSortOrder:this.nullSortOrder,d_multiSortMeta:this.multiSortMeta?we(this.multiSortMeta):[],d_groupRowsSortMeta:null,d_selectionKeys:null,d_columnOrder:null,d_editingRowKeys:null,d_editingMeta:{},d_filters:this.cloneFilters(this.filters),d_columns:new Mo({type:"Column"}),d_columnGroups:new Mo({type:"ColumnGroup"})}},rowTouched:!1,anchorRowIndex:null,rangeRowIndex:null,documentColumnResizeListener:null,documentColumnResizeEndListener:null,lastResizeHelperX:null,resizeColumnElement:null,columnResizing:!1,colReorderIconWidth:null,colReorderIconHeight:null,draggedColumn:null,draggedColumnElement:null,draggedRowIndex:null,droppedRowIndex:null,rowDragging:null,columnWidthsState:null,tableWidthState:null,columnWidthsRestored:!1,watch:{first:function(e){this.d_first=e},rows:function(e){this.d_rows=e},sortField:function(e){this.d_sortField=e},sortOrder:function(e){this.d_sortOrder=e},nullSortOrder:function(e){this.d_nullSortOrder=e},multiSortMeta:function(e){this.d_multiSortMeta=e},selection:{immediate:!0,handler:function(e){this.dataKey&&this.updateSelectionKeys(e)}},editingRows:{immediate:!0,handler:function(e){this.dataKey&&this.updateEditingRowKeys(e)}},filters:{deep:!0,handler:function(e){this.d_filters=this.cloneFilters(e)}}},mounted:function(){this.$el.setAttribute(this.attributeSelector,""),this.responsiveLayout==="stack"&&!this.scrollable&&!this.unstyled&&this.createResponsiveStyle(),this.isStateful()&&(this.restoreState(),this.resizableColumns&&this.restoreColumnWidths()),this.editMode==="row"&&this.dataKey&&!this.d_editingRowKeys&&this.updateEditingRowKeys(this.editingRows)},beforeUnmount:function(){this.unbindColumnResizeEvents(),this.destroyStyleElement(),this.destroyResponsiveStyle(),this.d_columns.clear(),this.d_columnGroups.clear()},updated:function(){this.isStateful()&&this.saveState(),this.editMode==="row"&&this.dataKey&&!this.d_editingRowKeys&&this.updateEditingRowKeys(this.editingRows)},methods:{columnProp:function(e,n){return M.getVNodeProp(e,n)},onPage:function(e){var n=this;this.clearEditingMetaData(),this.d_first=e.first,this.d_rows=e.rows;var r=this.createLazyLoadEvent(e);r.pageCount=e.pageCount,r.page=e.page,this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",r),this.$nextTick(function(){n.$emit("value-change",n.processedData)})},onColumnHeaderClick:function(e){var n=this,r=e.originalEvent,o=e.column;if(this.columnProp(o,"sortable")){var i=r.target,s=this.columnProp(o,"sortField")||this.columnProp(o,"field");if(O.getAttribute(i,"data-p-sortable-column")===!0||O.getAttribute(i,"data-pc-section")==="headertitle"||O.getAttribute(i,"data-pc-section")==="headercontent"||O.getAttribute(i,"data-pc-section")==="sorticon"||O.getAttribute(i.parentElement,"data-pc-section")==="sorticon"||O.getAttribute(i.parentElement.parentElement,"data-pc-section")==="sorticon"||i.closest('[data-p-sortable-column="true"]')&&!i.closest('[data-pc-section="filtermenubutton"]')&&!O.isClickable(r.target)){if(O.clearSelection(),this.sortMode==="single")this.d_sortField===s?this.removableSort&&this.d_sortOrder*-1===this.defaultSortOrder?(this.d_sortOrder=null,this.d_sortField=null):this.d_sortOrder=this.d_sortOrder*-1:(this.d_sortOrder=this.defaultSortOrder,this.d_sortField=s),this.$emit("update:sortField",this.d_sortField),this.$emit("update:sortOrder",this.d_sortOrder),this.resetPage();else if(this.sortMode==="multiple"){var l=r.metaKey||r.ctrlKey;l||(this.d_multiSortMeta=this.d_multiSortMeta.filter(function(c){return c.field===s})),this.addMultiSortField(s),this.$emit("update:multiSortMeta",this.d_multiSortMeta)}this.$emit("sort",this.createLazyLoadEvent(r)),this.$nextTick(function(){n.$emit("value-change",n.processedData)})}}},sortSingle:function(e){var n=this;if(this.clearEditingMetaData(),this.groupRowsBy&&this.groupRowsBy===this.sortField)return this.d_multiSortMeta=[{field:this.sortField,order:this.sortOrder||this.defaultSortOrder},{field:this.d_sortField,order:this.d_sortOrder}],this.sortMultiple(e);var r=we(e),o=new Map,i=Fs(r),s;try{for(i.s();!(s=i.n()).done;){var l=s.value;o.set(l,M.resolveFieldData(l,this.d_sortField))}}catch(u){i.e(u)}finally{i.f()}var c=M.localeComparator();return r.sort(function(u,d){var f=o.get(u),p=o.get(d);return M.sort(f,p,n.d_sortOrder,c,n.d_nullSortOrder)}),r},sortMultiple:function(e){var n=this;if(this.clearEditingMetaData(),this.groupRowsBy&&(this.d_groupRowsSortMeta||this.d_multiSortMeta.length&&this.groupRowsBy===this.d_multiSortMeta[0].field)){var r=this.d_multiSortMeta[0];!this.d_groupRowsSortMeta&&(this.d_groupRowsSortMeta=r),r.field!==this.d_groupRowsSortMeta.field&&(this.d_multiSortMeta=[this.d_groupRowsSortMeta].concat(we(this.d_multiSortMeta)))}var o=we(e);return o.sort(function(i,s){return n.multisortField(i,s,0)}),o},multisortField:function(e,n,r){var o=M.resolveFieldData(e,this.d_multiSortMeta[r].field),i=M.resolveFieldData(n,this.d_multiSortMeta[r].field),s=M.localeComparator();return o===i?this.d_multiSortMeta.length-1>r?this.multisortField(e,n,r+1):0:M.sort(o,i,this.d_multiSortMeta[r].order,s,this.d_nullSortOrder)},addMultiSortField:function(e){var n=this.d_multiSortMeta.findIndex(function(r){return r.field===e});n>=0?this.removableSort&&this.d_multiSortMeta[n].order*-1===this.defaultSortOrder?this.d_multiSortMeta.splice(n,1):this.d_multiSortMeta[n]={field:e,order:this.d_multiSortMeta[n].order*-1}:this.d_multiSortMeta.push({field:e,order:this.defaultSortOrder}),this.d_multiSortMeta=we(this.d_multiSortMeta)},getActiveFilters:function(e){var n=function(s){var l=X5(s,2),c=l[0],u=l[1];if(u.constraints){var d=u.constraints.filter(function(f){return f.value!==null});if(d.length>0)return[c,Qr(Qr({},u),{},{constraints:d})]}else if(u.value!==null)return[c,u]},r=function(s){return s!==void 0},o=Object.entries(e).map(n).filter(r);return Object.fromEntries(o)},filter:function(e){var n=this;if(e){this.clearEditingMetaData();var r=this.getActiveFilters(this.filters),o;r.global&&(o=this.globalFilterFields||this.columns.map(function(v){return n.columnProp(v,"filterField")||n.columnProp(v,"field")}));for(var i=[],s=0;s<e.length;s++){var l=!0,c=!1,u=!1;for(var d in r)if(Object.prototype.hasOwnProperty.call(r,d)&&d!=="global"){u=!0;var f=d,p=r[f];if(p.operator){var h=Fs(p.constraints),m;try{for(h.s();!(m=h.n()).done;){var y=m.value;if(l=this.executeLocalFilter(f,e[s],y),p.operator===Cl.OR&&l||p.operator===Cl.AND&&!l)break}}catch(v){h.e(v)}finally{h.f()}}else l=this.executeLocalFilter(f,e[s],p);if(!l)break}if(l&&r.global&&!c&&o)for(var g=0;g<o.length;g++){var b=o[g];if(c=ru.filters[r.global.matchMode||Re.CONTAINS](M.resolveFieldData(e[s],b),r.global.value,this.filterLocale),c)break}var w=void 0;r.global?w=u?u&&l&&c:c:w=u&&l,w&&i.push(e[s])}(i.length===this.value.length||Object.keys(r).length==0)&&(i=e);var C=this.createLazyLoadEvent();return C.filteredValue=i,this.$emit("filter",C),this.$nextTick(function(){n.$emit("value-change",n.processedData)}),i}},executeLocalFilter:function(e,n,r){var o=r.value,i=r.matchMode||Re.STARTS_WITH,s=M.resolveFieldData(n,e),l=ru.filters[i];return l(s,o,this.filterLocale)},onRowClick:function(e){var n=e.originalEvent,r=this.$refs.bodyRef&&this.$refs.bodyRef.$el,o=O.findSingle(r,'tr[data-p-selectable-row="true"][tabindex="0"]');if(!O.isClickable(n.target)){if(this.$emit("row-click",e),this.selectionMode){var i=e.data,s=this.d_first+e.index;if(this.isMultipleSelectionMode()&&n.shiftKey&&this.anchorRowIndex!=null)O.clearSelection(),this.rangeRowIndex=s,this.selectRange(n);else{var l=this.isSelected(i),c=this.rowTouched?!1:this.metaKeySelection;if(this.anchorRowIndex=s,this.rangeRowIndex=s,c){var u=n.metaKey||n.ctrlKey;if(l&&u){if(this.isSingleSelectionMode())this.$emit("update:selection",null);else{var d=this.findIndexInSelection(i),f=this.selection.filter(function(v,E){return E!=d});this.$emit("update:selection",f)}this.$emit("row-unselect",{originalEvent:n,data:i,index:s,type:"row"})}else{if(this.isSingleSelectionMode())this.$emit("update:selection",i);else if(this.isMultipleSelectionMode()){var p=u?this.selection||[]:[];p=[].concat(we(p),[i]),this.$emit("update:selection",p)}this.$emit("row-select",{originalEvent:n,data:i,index:s,type:"row"})}}else if(this.selectionMode==="single")l?(this.$emit("update:selection",null),this.$emit("row-unselect",{originalEvent:n,data:i,index:s,type:"row"})):(this.$emit("update:selection",i),this.$emit("row-select",{originalEvent:n,data:i,index:s,type:"row"}));else if(this.selectionMode==="multiple")if(l){var h=this.findIndexInSelection(i),m=this.selection.filter(function(v,E){return E!=h});this.$emit("update:selection",m),this.$emit("row-unselect",{originalEvent:n,data:i,index:s,type:"row"})}else{var y=this.selection?[].concat(we(this.selection),[i]):[i];this.$emit("update:selection",y),this.$emit("row-select",{originalEvent:n,data:i,index:s,type:"row"})}}}if(this.rowTouched=!1,o){var g,b,w;if(((g=n.target)===null||g===void 0?void 0:g.getAttribute("data-pc-section"))==="rowtogglericon"||((b=n.target)===null||b===void 0||(b=b.parentElement)===null||b===void 0?void 0:b.getAttribute("data-pc-section"))==="rowtogglericon")return;var C=(w=n.target)===null||w===void 0?void 0:w.closest('tr[data-p-selectable-row="true"]');o.tabIndex="-1",C.tabIndex="0"}}},onRowDblClick:function(e){var n=e.originalEvent;O.isClickable(n.target)||this.$emit("row-dblclick",e)},onRowRightClick:function(e){this.contextMenu&&(O.clearSelection(),e.originalEvent.target.focus()),this.$emit("update:contextMenuSelection",e.data),this.$emit("row-contextmenu",e)},onRowTouchEnd:function(){this.rowTouched=!0},onRowKeyDown:function(e,n){var r=e.originalEvent,o=e.data,i=e.index,s=r.metaKey||r.ctrlKey;if(this.selectionMode){var l=r.target;switch(r.code){case"ArrowDown":this.onArrowDownKey(r,l,i,n);break;case"ArrowUp":this.onArrowUpKey(r,l,i,n);break;case"Home":this.onHomeKey(r,l,i,n);break;case"End":this.onEndKey(r,l,i,n);break;case"Enter":case"NumpadEnter":this.onEnterKey(r,o,i);break;case"Space":this.onSpaceKey(r,o,i,n);break;case"Tab":this.onTabKey(r,i);break;default:if(r.code==="KeyA"&&s&&this.isMultipleSelectionMode()){var c=this.dataToRender(n.rows);this.$emit("update:selection",c)}r.preventDefault();break}}},onArrowDownKey:function(e,n,r,o){var i=this.findNextSelectableRow(n);if(i&&this.focusRowChange(n,i),e.shiftKey){var s=this.dataToRender(o.rows),l=r+1>=s.length?s.length-1:r+1;this.onRowClick({originalEvent:e,data:s[l],index:l})}e.preventDefault()},onArrowUpKey:function(e,n,r,o){var i=this.findPrevSelectableRow(n);if(i&&this.focusRowChange(n,i),e.shiftKey){var s=this.dataToRender(o.rows),l=r-1<=0?0:r-1;this.onRowClick({originalEvent:e,data:s[l],index:l})}e.preventDefault()},onHomeKey:function(e,n,r,o){var i=this.findFirstSelectableRow();if(i&&this.focusRowChange(n,i),e.ctrlKey&&e.shiftKey){var s=this.dataToRender(o.rows);this.$emit("update:selection",s.slice(0,r+1))}e.preventDefault()},onEndKey:function(e,n,r,o){var i=this.findLastSelectableRow();if(i&&this.focusRowChange(n,i),e.ctrlKey&&e.shiftKey){var s=this.dataToRender(o.rows);this.$emit("update:selection",s.slice(r,s.length))}e.preventDefault()},onEnterKey:function(e,n,r){this.onRowClick({originalEvent:e,data:n,index:r}),e.preventDefault()},onSpaceKey:function(e,n,r,o){if(this.onEnterKey(e,n,r),e.shiftKey&&this.selection!==null){var i=this.dataToRender(o.rows),s;if(this.selection.length>0){var l,c;l=M.findIndexInList(this.selection[0],i),c=M.findIndexInList(this.selection[this.selection.length-1],i),s=r<=l?c:l}else s=M.findIndexInList(this.selection,i);var u=s!==r?i.slice(Math.min(s,r),Math.max(s,r)+1):n;this.$emit("update:selection",u)}},onTabKey:function(e,n){var r=this.$refs.bodyRef&&this.$refs.bodyRef.$el,o=O.find(r,'tr[data-p-selectable-row="true"]');if(e.code==="Tab"&&o&&o.length>0){var i=O.findSingle(r,'tr[data-p-highlight="true"]'),s=O.findSingle(r,'tr[data-p-selectable-row="true"][tabindex="0"]');i?(i.tabIndex="0",s&&s!==i&&(s.tabIndex="-1")):(o[0].tabIndex="0",s!==o[0]&&(o[n].tabIndex="-1"))}},findNextSelectableRow:function(e){var n=e.nextElementSibling;return n?O.getAttribute(n,"data-p-selectable-row")===!0?n:this.findNextSelectableRow(n):null},findPrevSelectableRow:function(e){var n=e.previousElementSibling;return n?O.getAttribute(n,"data-p-selectable-row")===!0?n:this.findPrevSelectableRow(n):null},findFirstSelectableRow:function(){var e=O.findSingle(this.$refs.table,'tr[data-p-selectable-row="true"]');return e},findLastSelectableRow:function(){var e=O.find(this.$refs.table,'tr[data-p-selectable-row="true"]');return e?e[e.length-1]:null},focusRowChange:function(e,n){e.tabIndex="-1",n.tabIndex="0",O.focus(n)},toggleRowWithRadio:function(e){var n=e.data;this.isSelected(n)?(this.$emit("update:selection",null),this.$emit("row-unselect",{originalEvent:e.originalEvent,data:n,index:e.index,type:"radiobutton"})):(this.$emit("update:selection",n),this.$emit("row-select",{originalEvent:e.originalEvent,data:n,index:e.index,type:"radiobutton"}))},toggleRowWithCheckbox:function(e){var n=e.data;if(this.isSelected(n)){var r=this.findIndexInSelection(n),o=this.selection.filter(function(s,l){return l!=r});this.$emit("update:selection",o),this.$emit("row-unselect",{originalEvent:e.originalEvent,data:n,index:e.index,type:"checkbox"})}else{var i=this.selection?we(this.selection):[];i=[].concat(we(i),[n]),this.$emit("update:selection",i),this.$emit("row-select",{originalEvent:e.originalEvent,data:n,index:e.index,type:"checkbox"})}},toggleRowsWithCheckbox:function(e){if(this.selectAll!==null)this.$emit("select-all-change",e);else{var n=e.originalEvent,r=e.checked,o=[];r?(o=this.frozenValue?[].concat(we(this.frozenValue),we(this.processedData)):this.processedData,this.$emit("row-select-all",{originalEvent:n,data:o})):this.$emit("row-unselect-all",{originalEvent:n}),this.$emit("update:selection",o)}},isSingleSelectionMode:function(){return this.selectionMode==="single"},isMultipleSelectionMode:function(){return this.selectionMode==="multiple"},isSelected:function(e){return e&&this.selection?this.dataKey?this.d_selectionKeys?this.d_selectionKeys[M.resolveFieldData(e,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1},findIndexInSelection:function(e){return this.findIndex(e,this.selection)},findIndex:function(e,n){var r=-1;if(n&&n.length){for(var o=0;o<n.length;o++)if(this.equals(e,n[o])){r=o;break}}return r},updateSelectionKeys:function(e){if(this.d_selectionKeys={},Array.isArray(e)){var n=Fs(e),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;this.d_selectionKeys[String(M.resolveFieldData(o,this.dataKey))]=1}}catch(i){n.e(i)}finally{n.f()}}else this.d_selectionKeys[String(M.resolveFieldData(e,this.dataKey))]=1},updateEditingRowKeys:function(e){if(e&&e.length){this.d_editingRowKeys={};var n=Fs(e),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;this.d_editingRowKeys[String(M.resolveFieldData(o,this.dataKey))]=1}}catch(i){n.e(i)}finally{n.f()}}else this.d_editingRowKeys=null},equals:function(e,n){return this.compareSelectionBy==="equals"?e===n:M.equals(e,n,this.dataKey)},selectRange:function(e){var n,r;this.rangeRowIndex>this.anchorRowIndex?(n=this.anchorRowIndex,r=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(n=this.rangeRowIndex,r=this.anchorRowIndex):(n=this.rangeRowIndex,r=this.rangeRowIndex),this.lazy&&this.paginator&&(n-=this.first,r-=this.first);for(var o=this.processedData,i=[],s=n;s<=r;s++){var l=o[s];i.push(l),this.$emit("row-select",{originalEvent:e,data:l,type:"row"})}this.$emit("update:selection",i)},exportCSV:function(e,n){var r=this,o="\uFEFF";n||(n=this.processedData,e&&e.selectionOnly?n=this.selection||[]:this.frozenValue&&(n=n?[].concat(we(this.frozenValue),we(n)):this.frozenValue));for(var i=!1,s=0;s<this.columns.length;s++){var l=this.columns[s];this.columnProp(l,"exportable")!==!1&&this.columnProp(l,"field")&&(i?o+=this.csvSeparator:i=!0,o+='"'+(this.columnProp(l,"exportHeader")||this.columnProp(l,"header")||this.columnProp(l,"field"))+'"')}n&&n.forEach(function(f){o+=`
202
202
  `;for(var p=!1,h=0;h<r.columns.length;h++){var m=r.columns[h];if(r.columnProp(m,"exportable")!==!1&&r.columnProp(m,"field")){p?o+=r.csvSeparator:p=!0;var y=M.resolveFieldData(f,r.columnProp(m,"field"));y!=null?r.exportFunction?y=r.exportFunction({data:y,field:r.columnProp(m,"field")}):y=String(y).replace(/"/g,'""'):y="",o+='"'+y+'"'}}});for(var c=!1,u=0;u<this.columns.length;u++){var d=this.columns[u];u===0&&(o+=`
203
203
  `),this.columnProp(d,"exportable")!==!1&&this.columnProp(d,"exportFooter")&&(c?o+=this.csvSeparator:c=!0,o+='"'+(this.columnProp(d,"exportFooter")||this.columnProp(d,"footer")||this.columnProp(d,"field"))+'"')}O.exportCSV(o,this.exportFilename)},resetPage:function(){this.d_first=0,this.$emit("update:first",this.d_first)},onColumnResizeStart:function(e){var n=O.getOffset(this.$el).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizeHelperX=e.pageX-n+this.$el.scrollLeft,this.bindColumnResizeEvents()},onColumnResize:function(e){var n=O.getOffset(this.$el).left;this.$el.setAttribute("data-p-unselectable-text","true"),!this.isUnstyled&&O.addClass(this.$el,"p-unselectable-text"),this.$refs.resizeHelper.style.height=this.$el.offsetHeight+"px",this.$refs.resizeHelper.style.top="0px",this.$refs.resizeHelper.style.left=e.pageX-n+this.$el.scrollLeft+"px",this.$refs.resizeHelper.style.display="block"},onColumnResizeEnd:function(){var e=this.$refs.resizeHelper.offsetLeft-this.lastResizeHelperX,n=this.resizeColumnElement.offsetWidth,r=n+e,o=this.resizeColumnElement.style.minWidth||15;if(n+e>parseInt(o,10)){if(this.columnResizeMode==="fit"){var i=this.resizeColumnElement.nextElementSibling,s=i.offsetWidth-e;r>15&&s>15&&this.resizeTableCells(r,s)}else if(this.columnResizeMode==="expand"){var l=this.$refs.table.offsetWidth+e+"px",c=function(p){p&&(p.style.width=p.style.minWidth=l)};if(this.resizeTableCells(r),c(this.$refs.table),!this.virtualScrollerDisabled){var u=this.$refs.bodyRef&&this.$refs.bodyRef.$el,d=this.$refs.frozenBodyRef&&this.$refs.frozenBodyRef.$el;c(u),c(d)}}this.$emit("column-resize-end",{element:this.resizeColumnElement,delta:e})}this.$refs.resizeHelper.style.display="none",this.resizeColumn=null,this.$el.removeAttribute("data-p-unselectable-text"),!this.isUnstyled&&O.removeClass(this.$el,"p-unselectable-text"),this.unbindColumnResizeEvents(),this.isStateful()&&this.saveState()},resizeTableCells:function(e,n){var r=O.index(this.resizeColumnElement),o=[],i=O.find(this.$refs.table,'thead[data-pc-section="thead"] > tr > th');i.forEach(function(c){return o.push(O.getOuterWidth(c))}),this.destroyStyleElement(),this.createStyleElement();var s="",l='[data-pc-name="datatable"]['.concat(this.attributeSelector,'] > [data-pc-section="wrapper"] ').concat(this.virtualScrollerDisabled?"":'> [data-pc-name="virtualscroller"]',' > table[data-pc-section="table"]');o.forEach(function(c,u){var d=u===r?e:n&&u===r+1?n:c,f="width: ".concat(d,"px !important; max-width: ").concat(d,"px !important");s+=`
204
204
  `.concat(l,' > thead[data-pc-section="thead"] > tr > th:nth-child(').concat(u+1,`),
@@ -206,7 +206,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
206
206
  `).concat(l,' > tfoot[data-pc-section="tfoot"] > tr > td:nth-child(').concat(u+1,`) {
207
207
  `).concat(f,`
208
208
  }
209
- `)}),this.styleElement.innerHTML=s},bindColumnResizeEvents:function(){var e=this;this.documentColumnResizeListener||(this.documentColumnResizeListener=document.addEventListener("mousemove",function(){e.columnResizing&&e.onColumnResize(event)})),this.documentColumnResizeEndListener||(this.documentColumnResizeEndListener=document.addEventListener("mouseup",function(){e.columnResizing&&(e.columnResizing=!1,e.onColumnResizeEnd())}))},unbindColumnResizeEvents:function(){this.documentColumnResizeListener&&(document.removeEventListener("document",this.documentColumnResizeListener),this.documentColumnResizeListener=null),this.documentColumnResizeEndListener&&(document.removeEventListener("document",this.documentColumnResizeEndListener),this.documentColumnResizeEndListener=null)},onColumnHeaderMouseDown:function(e){var n=e.originalEvent,r=e.column;this.reorderableColumns&&this.columnProp(r,"reorderableColumn")!==!1&&(n.target.nodeName==="INPUT"||n.target.nodeName==="TEXTAREA"||O.getAttribute(n.target,'[data-pc-section="columnresizer"]')?n.currentTarget.draggable=!1:n.currentTarget.draggable=!0)},onColumnHeaderDragStart:function(e){var n=e.originalEvent,r=e.column;if(this.columnResizing){n.preventDefault();return}this.colReorderIconWidth=O.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp),this.colReorderIconHeight=O.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp),this.draggedColumn=r,this.draggedColumnElement=this.findParentHeader(n.target),n.dataTransfer.setData("text","b")},onColumnHeaderDragOver:function(e){var n=e.originalEvent,r=e.column,o=this.findParentHeader(n.target);if(this.reorderableColumns&&this.draggedColumnElement&&o&&!this.columnProp(r,"frozen")){n.preventDefault();var i=O.getOffset(this.$el),s=O.getOffset(o);if(this.draggedColumnElement!==o){var l=s.left-i.left,c=s.left+o.offsetWidth/2;this.$refs.reorderIndicatorUp.style.top=s.top-i.top-(this.colReorderIconHeight-1)+"px",this.$refs.reorderIndicatorDown.style.top=s.top-i.top+o.offsetHeight+"px",n.pageX>c?(this.$refs.reorderIndicatorUp.style.left=l+o.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=l+o.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=1):(this.$refs.reorderIndicatorUp.style.left=l-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=l-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=-1),this.$refs.reorderIndicatorUp.style.display="block",this.$refs.reorderIndicatorDown.style.display="block"}}},onColumnHeaderDragLeave:function(e){var n=e.originalEvent;this.reorderableColumns&&this.draggedColumnElement&&(n.preventDefault(),this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none")},onColumnHeaderDrop:function(e){var n=this,r=e.originalEvent,o=e.column;if(r.preventDefault(),this.draggedColumnElement){var i=O.index(this.draggedColumnElement),s=O.index(this.findParentHeader(r.target)),l=i!==s;if(l&&(s-i===1&&this.dropPosition===-1||s-i===-1&&this.dropPosition===1)&&(l=!1),l){var c=function(b,w){return n.columnProp(b,"columnKey")||n.columnProp(w,"columnKey")?n.columnProp(b,"columnKey")===n.columnProp(w,"columnKey"):n.columnProp(b,"field")===n.columnProp(w,"field")},u=this.columns.findIndex(function(g){return c(g,n.draggedColumn)}),d=this.columns.findIndex(function(g){return c(g,o)}),f=[],p=O.find(this.$el,'thead[data-pc-section="thead"] > tr > th');p.forEach(function(g){return f.push(O.getOuterWidth(g))});var h=f.find(function(g,b){return b===u}),m=f.filter(function(g,b){return b!==u}),y=[].concat(we(m.slice(0,d)),[h],we(m.slice(d)));this.addColumnWidthStyles(y),d<u&&this.dropPosition===1&&d++,d>u&&this.dropPosition===-1&&d--,M.reorderArray(this.columns,u,d),this.updateReorderableColumns(),this.$emit("column-reorder",{originalEvent:r,dragIndex:u,dropIndex:d})}this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none",this.draggedColumnElement.draggable=!1,this.draggedColumnElement=null,this.draggedColumn=null,this.dropPosition=null}},findParentHeader:function(e){if(e.nodeName==="TH")return e;for(var n=e.parentElement;n.nodeName!=="TH"&&(n=n.parentElement,!!n););return n},findColumnByKey:function(e,n){if(e&&e.length)for(var r=0;r<e.length;r++){var o=e[r];if(this.columnProp(o,"columnKey")===n||this.columnProp(o,"field")===n)return o}return null},onRowMouseDown:function(e){O.getAttribute(e.target,"data-pc-section")==="rowreordericon"||O.getAttribute(e.target.parentElement,"data-pc-section")==="rowreordericon"?e.currentTarget.draggable=!0:e.currentTarget.draggable=!1},onRowDragStart:function(e){var n=e.originalEvent,r=e.index;this.rowDragging=!0,this.draggedRowIndex=r,n.dataTransfer.setData("text","b")},onRowDragOver:function(e){var n=e.originalEvent,r=e.index;if(this.rowDragging&&this.draggedRowIndex!==r){var o=n.currentTarget,i=O.getOffset(o).top+O.getWindowScrollTop(),s=n.pageY,l=i+O.getOuterHeight(o)/2,c=o.previousElementSibling;s<l?(o.setAttribute("data-p-datatable-dragpoint-bottom","false"),!this.isUnstyled&&O.removeClass(o,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=r,c?(c.setAttribute("data-p-datatable-dragpoint-bottom","true"),!this.isUnstyled&&O.addClass(c,"p-datatable-dragpoint-bottom")):(o.setAttribute("data-p-datatable-dragpoint-top","true"),!this.isUnstyled&&O.addClass(o,"p-datatable-dragpoint-top"))):(c?(c.setAttribute("data-p-datatable-dragpoint-bottom","false"),!this.isUnstyled&&O.removeClass(c,"p-datatable-dragpoint-bottom")):(o.setAttribute("data-p-datatable-dragpoint-top","true"),!this.isUnstyled&&O.addClass(o,"p-datatable-dragpoint-top")),this.droppedRowIndex=r+1,o.setAttribute("data-p-datatable-dragpoint-bottom","true"),!this.isUnstyled&&O.addClass(o,"p-datatable-dragpoint-bottom")),n.preventDefault()}},onRowDragLeave:function(e){var n=e.currentTarget,r=n.previousElementSibling;r&&(r.setAttribute("data-p-datatable-dragpoint-bottom","false"),!this.isUnstyled&&O.removeClass(r,"p-datatable-dragpoint-bottom")),n.setAttribute("data-p-datatable-dragpoint-bottom","false"),!this.isUnstyled&&O.removeClass(n,"p-datatable-dragpoint-bottom"),n.setAttribute("data-p-datatable-dragpoint-top","false"),!this.isUnstyled&&O.removeClass(n,"p-datatable-dragpoint-top")},onRowDragEnd:function(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null,e.currentTarget.draggable=!1},onRowDrop:function(e){if(this.droppedRowIndex!=null){var n=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1,r=we(this.processedData);M.reorderArray(r,this.draggedRowIndex+this.d_first,n+this.d_first),this.$emit("row-reorder",{originalEvent:e,dragIndex:this.draggedRowIndex,dropIndex:n,value:r})}this.onRowDragLeave(e),this.onRowDragEnd(e),e.preventDefault()},toggleRow:function(e){var n=this,r=e.expanded,o=_I(e,HI),i=e.data,s;if(this.dataKey){var l=M.resolveFieldData(i,this.dataKey);s=this.expandedRows?Qr({},this.expandedRows):{},r?s[l]=!0:delete s[l]}else s=this.expandedRows?we(this.expandedRows):[],r?s.push(i):s=s.filter(function(c){return!n.equals(i,c)});this.$emit("update:expandedRows",s),r?this.$emit("row-expand",o):this.$emit("row-collapse",o)},toggleRowGroup:function(e){var n=e.originalEvent,r=e.data,o=M.resolveFieldData(r,this.groupRowsBy),i=this.expandedRowGroups?we(this.expandedRowGroups):[];this.isRowGroupExpanded(r)?(i=i.filter(function(s){return s!==o}),this.$emit("update:expandedRowGroups",i),this.$emit("rowgroup-collapse",{originalEvent:n,data:o})):(i.push(o),this.$emit("update:expandedRowGroups",i),this.$emit("rowgroup-expand",{originalEvent:n,data:o}))},isRowGroupExpanded:function(e){if(this.expandableRowGroups&&this.expandedRowGroups){var n=M.resolveFieldData(e,this.groupRowsBy);return this.expandedRowGroups.indexOf(n)>-1}return!1},isStateful:function(){return this.stateKey!=null},getStorage:function(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},saveState:function(){var e=this.getStorage(),n={};this.paginator&&(n.first=this.d_first,n.rows=this.d_rows),this.d_sortField&&(n.sortField=this.d_sortField,n.sortOrder=this.d_sortOrder),this.d_multiSortMeta&&(n.multiSortMeta=this.d_multiSortMeta),this.hasFilters&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&(n.columnOrder=this.d_columnOrder),this.expandedRows&&(n.expandedRows=this.expandedRows),this.expandedRowGroups&&(n.expandedRowGroups=this.expandedRowGroups),this.selection&&(n.selection=this.selection,n.selectionKeys=this.d_selectionKeys),Object.keys(n).length&&e.setItem(this.stateKey,JSON.stringify(n)),this.$emit("state-save",n)},restoreState:function(){var e=this.getStorage(),n=e.getItem(this.stateKey),r=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,o=function(l,c){return typeof c=="string"&&r.test(c)?new Date(c):c};if(n){var i=JSON.parse(n,o);this.paginator&&(this.d_first=i.first,this.d_rows=i.rows),i.sortField&&(this.d_sortField=i.sortField,this.d_sortOrder=i.sortOrder),i.multiSortMeta&&(this.d_multiSortMeta=i.multiSortMeta),i.filters&&this.$emit("update:filters",i.filters),this.resizableColumns&&(this.columnWidthsState=i.columnWidths,this.tableWidthState=i.tableWidth),this.reorderableColumns&&(this.d_columnOrder=i.columnOrder),i.expandedRows&&this.$emit("update:expandedRows",i.expandedRows),i.expandedRowGroups&&this.$emit("update:expandedRowGroups",i.expandedRowGroups),i.selection&&(this.d_selectionKeys=i.d_selectionKeys,this.$emit("update:selection",i.selection)),this.$emit("state-restore",i)}},saveColumnWidths:function(e){var n=[],r=O.find(this.$el,'thead[data-pc-section="thead"] > tr > th');r.forEach(function(o){return n.push(O.getOuterWidth(o))}),e.columnWidths=n.join(","),this.columnResizeMode==="expand"&&(e.tableWidth=O.getOuterWidth(this.$refs.table)+"px")},addColumnWidthStyles:function(e){this.createStyleElement();var n="",r='[data-pc-name="datatable"]['.concat(this.attributeSelector,'] > [data-pc-section="wrapper"] ').concat(this.virtualScrollerDisabled?"":'> [data-pc-name="virtualscroller"]',' > table[data-pc-section="table"]');e.forEach(function(o,i){var s="width: ".concat(o,"px !important; max-width: ").concat(o,"px !important");n+=`
209
+ `)}),this.styleElement.innerHTML=s},bindColumnResizeEvents:function(){var e=this;this.documentColumnResizeListener||(this.documentColumnResizeListener=document.addEventListener("mousemove",function(){e.columnResizing&&e.onColumnResize(event)})),this.documentColumnResizeEndListener||(this.documentColumnResizeEndListener=document.addEventListener("mouseup",function(){e.columnResizing&&(e.columnResizing=!1,e.onColumnResizeEnd())}))},unbindColumnResizeEvents:function(){this.documentColumnResizeListener&&(document.removeEventListener("document",this.documentColumnResizeListener),this.documentColumnResizeListener=null),this.documentColumnResizeEndListener&&(document.removeEventListener("document",this.documentColumnResizeEndListener),this.documentColumnResizeEndListener=null)},onColumnHeaderMouseDown:function(e){var n=e.originalEvent,r=e.column;this.reorderableColumns&&this.columnProp(r,"reorderableColumn")!==!1&&(n.target.nodeName==="INPUT"||n.target.nodeName==="TEXTAREA"||O.getAttribute(n.target,'[data-pc-section="columnresizer"]')?n.currentTarget.draggable=!1:n.currentTarget.draggable=!0)},onColumnHeaderDragStart:function(e){var n=e.originalEvent,r=e.column;if(this.columnResizing){n.preventDefault();return}this.colReorderIconWidth=O.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp),this.colReorderIconHeight=O.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp),this.draggedColumn=r,this.draggedColumnElement=this.findParentHeader(n.target),n.dataTransfer.setData("text","b")},onColumnHeaderDragOver:function(e){var n=e.originalEvent,r=e.column,o=this.findParentHeader(n.target);if(this.reorderableColumns&&this.draggedColumnElement&&o&&!this.columnProp(r,"frozen")){n.preventDefault();var i=O.getOffset(this.$el),s=O.getOffset(o);if(this.draggedColumnElement!==o){var l=s.left-i.left,c=s.left+o.offsetWidth/2;this.$refs.reorderIndicatorUp.style.top=s.top-i.top-(this.colReorderIconHeight-1)+"px",this.$refs.reorderIndicatorDown.style.top=s.top-i.top+o.offsetHeight+"px",n.pageX>c?(this.$refs.reorderIndicatorUp.style.left=l+o.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=l+o.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=1):(this.$refs.reorderIndicatorUp.style.left=l-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=l-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=-1),this.$refs.reorderIndicatorUp.style.display="block",this.$refs.reorderIndicatorDown.style.display="block"}}},onColumnHeaderDragLeave:function(e){var n=e.originalEvent;this.reorderableColumns&&this.draggedColumnElement&&(n.preventDefault(),this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none")},onColumnHeaderDrop:function(e){var n=this,r=e.originalEvent,o=e.column;if(r.preventDefault(),this.draggedColumnElement){var i=O.index(this.draggedColumnElement),s=O.index(this.findParentHeader(r.target)),l=i!==s;if(l&&(s-i===1&&this.dropPosition===-1||s-i===-1&&this.dropPosition===1)&&(l=!1),l){var c=function(b,w){return n.columnProp(b,"columnKey")||n.columnProp(w,"columnKey")?n.columnProp(b,"columnKey")===n.columnProp(w,"columnKey"):n.columnProp(b,"field")===n.columnProp(w,"field")},u=this.columns.findIndex(function(g){return c(g,n.draggedColumn)}),d=this.columns.findIndex(function(g){return c(g,o)}),f=[],p=O.find(this.$el,'thead[data-pc-section="thead"] > tr > th');p.forEach(function(g){return f.push(O.getOuterWidth(g))});var h=f.find(function(g,b){return b===u}),m=f.filter(function(g,b){return b!==u}),y=[].concat(we(m.slice(0,d)),[h],we(m.slice(d)));this.addColumnWidthStyles(y),d<u&&this.dropPosition===1&&d++,d>u&&this.dropPosition===-1&&d--,M.reorderArray(this.columns,u,d),this.updateReorderableColumns(),this.$emit("column-reorder",{originalEvent:r,dragIndex:u,dropIndex:d})}this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none",this.draggedColumnElement.draggable=!1,this.draggedColumnElement=null,this.draggedColumn=null,this.dropPosition=null}},findParentHeader:function(e){if(e.nodeName==="TH")return e;for(var n=e.parentElement;n.nodeName!=="TH"&&(n=n.parentElement,!!n););return n},findColumnByKey:function(e,n){if(e&&e.length)for(var r=0;r<e.length;r++){var o=e[r];if(this.columnProp(o,"columnKey")===n||this.columnProp(o,"field")===n)return o}return null},onRowMouseDown:function(e){O.getAttribute(e.target,"data-pc-section")==="rowreordericon"||O.getAttribute(e.target.parentElement,"data-pc-section")==="rowreordericon"?e.currentTarget.draggable=!0:e.currentTarget.draggable=!1},onRowDragStart:function(e){var n=e.originalEvent,r=e.index;this.rowDragging=!0,this.draggedRowIndex=r,n.dataTransfer.setData("text","b")},onRowDragOver:function(e){var n=e.originalEvent,r=e.index;if(this.rowDragging&&this.draggedRowIndex!==r){var o=n.currentTarget,i=O.getOffset(o).top+O.getWindowScrollTop(),s=n.pageY,l=i+O.getOuterHeight(o)/2,c=o.previousElementSibling;s<l?(o.setAttribute("data-p-datatable-dragpoint-bottom","false"),!this.isUnstyled&&O.removeClass(o,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=r,c?(c.setAttribute("data-p-datatable-dragpoint-bottom","true"),!this.isUnstyled&&O.addClass(c,"p-datatable-dragpoint-bottom")):(o.setAttribute("data-p-datatable-dragpoint-top","true"),!this.isUnstyled&&O.addClass(o,"p-datatable-dragpoint-top"))):(c?(c.setAttribute("data-p-datatable-dragpoint-bottom","false"),!this.isUnstyled&&O.removeClass(c,"p-datatable-dragpoint-bottom")):(o.setAttribute("data-p-datatable-dragpoint-top","true"),!this.isUnstyled&&O.addClass(o,"p-datatable-dragpoint-top")),this.droppedRowIndex=r+1,o.setAttribute("data-p-datatable-dragpoint-bottom","true"),!this.isUnstyled&&O.addClass(o,"p-datatable-dragpoint-bottom")),n.preventDefault()}},onRowDragLeave:function(e){var n=e.currentTarget,r=n.previousElementSibling;r&&(r.setAttribute("data-p-datatable-dragpoint-bottom","false"),!this.isUnstyled&&O.removeClass(r,"p-datatable-dragpoint-bottom")),n.setAttribute("data-p-datatable-dragpoint-bottom","false"),!this.isUnstyled&&O.removeClass(n,"p-datatable-dragpoint-bottom"),n.setAttribute("data-p-datatable-dragpoint-top","false"),!this.isUnstyled&&O.removeClass(n,"p-datatable-dragpoint-top")},onRowDragEnd:function(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null,e.currentTarget.draggable=!1},onRowDrop:function(e){if(this.droppedRowIndex!=null){var n=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1,r=we(this.processedData);M.reorderArray(r,this.draggedRowIndex+this.d_first,n+this.d_first),this.$emit("row-reorder",{originalEvent:e,dragIndex:this.draggedRowIndex,dropIndex:n,value:r})}this.onRowDragLeave(e),this.onRowDragEnd(e),e.preventDefault()},toggleRow:function(e){var n=this,r=e.expanded,o=zI(e,_I),i=e.data,s;if(this.dataKey){var l=M.resolveFieldData(i,this.dataKey);s=this.expandedRows?Qr({},this.expandedRows):{},r?s[l]=!0:delete s[l]}else s=this.expandedRows?we(this.expandedRows):[],r?s.push(i):s=s.filter(function(c){return!n.equals(i,c)});this.$emit("update:expandedRows",s),r?this.$emit("row-expand",o):this.$emit("row-collapse",o)},toggleRowGroup:function(e){var n=e.originalEvent,r=e.data,o=M.resolveFieldData(r,this.groupRowsBy),i=this.expandedRowGroups?we(this.expandedRowGroups):[];this.isRowGroupExpanded(r)?(i=i.filter(function(s){return s!==o}),this.$emit("update:expandedRowGroups",i),this.$emit("rowgroup-collapse",{originalEvent:n,data:o})):(i.push(o),this.$emit("update:expandedRowGroups",i),this.$emit("rowgroup-expand",{originalEvent:n,data:o}))},isRowGroupExpanded:function(e){if(this.expandableRowGroups&&this.expandedRowGroups){var n=M.resolveFieldData(e,this.groupRowsBy);return this.expandedRowGroups.indexOf(n)>-1}return!1},isStateful:function(){return this.stateKey!=null},getStorage:function(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},saveState:function(){var e=this.getStorage(),n={};this.paginator&&(n.first=this.d_first,n.rows=this.d_rows),this.d_sortField&&(n.sortField=this.d_sortField,n.sortOrder=this.d_sortOrder),this.d_multiSortMeta&&(n.multiSortMeta=this.d_multiSortMeta),this.hasFilters&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&(n.columnOrder=this.d_columnOrder),this.expandedRows&&(n.expandedRows=this.expandedRows),this.expandedRowGroups&&(n.expandedRowGroups=this.expandedRowGroups),this.selection&&(n.selection=this.selection,n.selectionKeys=this.d_selectionKeys),Object.keys(n).length&&e.setItem(this.stateKey,JSON.stringify(n)),this.$emit("state-save",n)},restoreState:function(){var e=this.getStorage(),n=e.getItem(this.stateKey),r=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,o=function(l,c){return typeof c=="string"&&r.test(c)?new Date(c):c};if(n){var i=JSON.parse(n,o);this.paginator&&(this.d_first=i.first,this.d_rows=i.rows),i.sortField&&(this.d_sortField=i.sortField,this.d_sortOrder=i.sortOrder),i.multiSortMeta&&(this.d_multiSortMeta=i.multiSortMeta),i.filters&&this.$emit("update:filters",i.filters),this.resizableColumns&&(this.columnWidthsState=i.columnWidths,this.tableWidthState=i.tableWidth),this.reorderableColumns&&(this.d_columnOrder=i.columnOrder),i.expandedRows&&this.$emit("update:expandedRows",i.expandedRows),i.expandedRowGroups&&this.$emit("update:expandedRowGroups",i.expandedRowGroups),i.selection&&(this.d_selectionKeys=i.d_selectionKeys,this.$emit("update:selection",i.selection)),this.$emit("state-restore",i)}},saveColumnWidths:function(e){var n=[],r=O.find(this.$el,'thead[data-pc-section="thead"] > tr > th');r.forEach(function(o){return n.push(O.getOuterWidth(o))}),e.columnWidths=n.join(","),this.columnResizeMode==="expand"&&(e.tableWidth=O.getOuterWidth(this.$refs.table)+"px")},addColumnWidthStyles:function(e){this.createStyleElement();var n="",r='[data-pc-name="datatable"]['.concat(this.attributeSelector,'] > [data-pc-section="wrapper"] ').concat(this.virtualScrollerDisabled?"":'> [data-pc-name="virtualscroller"]',' > table[data-pc-section="table"]');e.forEach(function(o,i){var s="width: ".concat(o,"px !important; max-width: ").concat(o,"px !important");n+=`
210
210
  `.concat(r,' > thead[data-pc-section="thead"] > tr > th:nth-child(').concat(i+1,`),
211
211
  `).concat(r,' > tbody[data-pc-section="tbody"] > tr > td:nth-child(').concat(i+1,`),
212
212
  `).concat(r,' > tfoot[data-pc-section="tfoot"] > tr > td:nth-child(').concat(i+1,`) {
@@ -240,19 +240,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
240
240
  display: block;
241
241
  }
242
242
  }
243
- `);this.responsiveStyleElement.innerHTML=i}},destroyResponsiveStyle:function(){this.responsiveStyleElement&&(document.head.removeChild(this.responsiveStyleElement),this.responsiveStyleElement=null)},destroyStyleElement:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},dataToRender:function(e){var n=e||this.processedData;if(n&&this.paginator){var r=this.lazy?0:this.d_first;return n.slice(r,r+this.d_rows)}return n},getVirtualScrollerRef:function(){return this.$refs.virtualScroller},hasSpacerStyle:function(e){return M.isNotEmpty(e)}},computed:{columns:function(){var e=this.d_columns.get(this);if(this.reorderableColumns&&this.d_columnOrder){var n=[],r=Fs(this.d_columnOrder),o;try{for(r.s();!(o=r.n()).done;){var i=o.value,s=this.findColumnByKey(e,i);s&&!this.columnProp(s,"hidden")&&n.push(s)}}catch(l){r.e(l)}finally{r.f()}return[].concat(n,we(e.filter(function(l){return n.indexOf(l)<0})))}return e},columnGroups:function(){return this.d_columnGroups.get(this)},headerColumnGroup:function(){var e,n=this;return(e=this.columnGroups)===null||e===void 0?void 0:e.find(function(r){return n.columnProp(r,"type")==="header"})},footerColumnGroup:function(){var e,n=this;return(e=this.columnGroups)===null||e===void 0?void 0:e.find(function(r){return n.columnProp(r,"type")==="footer"})},hasFilters:function(){return this.filters&&Object.keys(this.filters).length>0&&this.filters.constructor===Object},processedData:function(){var e,n=this.value||[];return!this.lazy&&!((e=this.virtualScrollerOptions)!==null&&e!==void 0&&e.lazy)&&n&&n.length&&(this.hasFilters&&(n=this.filter(n)),this.sorted&&(this.sortMode==="single"?n=this.sortSingle(n):this.sortMode==="multiple"&&(n=this.sortMultiple(n)))),n},totalRecordsLength:function(){if(this.lazy)return this.totalRecords;var e=this.processedData;return e?e.length:0},empty:function(){var e=this.processedData;return!e||e.length===0},paginatorTop:function(){return this.paginator&&(this.paginatorPosition!=="bottom"||this.paginatorPosition==="both")},paginatorBottom:function(){return this.paginator&&(this.paginatorPosition!=="top"||this.paginatorPosition==="both")},sorted:function(){return this.d_sortField||this.d_multiSortMeta&&this.d_multiSortMeta.length>0},allRowsSelected:function(){var e=this;if(this.selectAll!==null)return this.selectAll;var n=this.frozenValue?[].concat(we(this.frozenValue),we(this.processedData)):this.processedData;return M.isNotEmpty(n)&&this.selection&&Array.isArray(this.selection)&&n.every(function(r){return e.selection.some(function(o){return e.equals(o,r)})})},attributeSelector:function(){return qn()},groupRowSortField:function(){return this.sortMode==="single"?this.sortField:this.d_groupRowsSortMeta?this.d_groupRowsSortMeta.field:null},virtualScrollerDisabled:function(){return M.isEmpty(this.virtualScrollerOptions)||!this.scrollable}},components:{DTPaginator:b5,DTTableHeader:Y5,DTTableBody:V5,DTTableFooter:z5,DTVirtualScroller:su,ArrowDownIcon:Fg,ArrowUpIcon:Hg,SpinnerIcon:vs}};function Hs(t){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hs(t)}function t3(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function n3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?t3(Object(n),!0).forEach(function(r){QI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t3(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QI(t,e,n){return e=XI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function XI(t){var e=eN(t,"string");return Hs(e)=="symbol"?e:String(e)}function eN(t,e){if(Hs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function tN(t,e,n,r,o,i){var s=a.resolveComponent("SpinnerIcon"),l=a.resolveComponent("DTPaginator"),c=a.resolveComponent("DTTableHeader"),u=a.resolveComponent("DTTableBody"),d=a.resolveComponent("DTTableFooter"),f=a.resolveComponent("DTVirtualScroller");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:t.cx("root"),"data-scrollselectors":".p-datatable-wrapper"},t.ptmi("root")),[a.renderSlot(t.$slots,"default"),t.loading?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("loadingOverlay")},t.ptm("loadingOverlay")),[t.$slots.loading?a.renderSlot(t.$slots,"loading",{key:0}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[t.$slots.loadingicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.$slots.loadingicon),{key:0,class:a.normalizeClass(t.cx("loadingIcon"))},null,8,["class"])):t.loadingIcon?(a.openBlock(),a.createElementBlock("i",a.mergeProps({key:1,class:[t.cx("loadingIcon"),"pi-spin",t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(a.openBlock(),a.createBlock(s,a.mergeProps({key:2,spin:"",class:t.cx("loadingIcon")},t.ptm("loadingIcon")),null,16,["class"]))],64))],16)):a.createCommentVNode("",!0),t.$slots.header?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:t.cx("header")},t.ptm("header")),[a.renderSlot(t.$slots,"header")],16)):a.createCommentVNode("",!0),i.paginatorTop?(a.openBlock(),a.createBlock(l,{key:2,rows:o.d_rows,first:o.d_first,totalRecords:i.totalRecordsLength,pageLinkSize:t.pageLinkSize,template:t.paginatorTemplate,rowsPerPageOptions:t.rowsPerPageOptions,currentPageReportTemplate:t.currentPageReportTemplate,class:a.normalizeClass(t.cx("paginator")),onPage:e[0]||(e[0]=function(p){return i.onPage(p)}),alwaysShow:t.alwaysShowPaginator,unstyled:t.unstyled,pt:t.ptm("paginator")},a.createSlots({_:2},[t.$slots.paginatorstart?{name:"start",fn:a.withCtx(function(){return[a.renderSlot(t.$slots,"paginatorstart")]}),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:a.withCtx(function(){return[a.renderSlot(t.$slots,"paginatorend")]}),key:"1"}:void 0,t.$slots.paginatorfirstpagelinkicon?{name:"firstpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorfirstpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"2"}:void 0,t.$slots.paginatorprevpagelinkicon?{name:"prevpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorprevpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"3"}:void 0,t.$slots.paginatornextpagelinkicon?{name:"nextpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatornextpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"4"}:void 0,t.$slots.paginatorlastpagelinkicon?{name:"lastpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorlastpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"5"}:void 0,t.$slots.paginatorjumptopagedropdownicon?{name:"jumptopagedropdownicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorjumptopagedropdownicon",{class:a.normalizeClass(p.class)})]}),key:"6"}:void 0,t.$slots.paginatorrowsperpagedropdownicon?{name:"rowsperpagedropdownicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorrowsperpagedropdownicon",{class:a.normalizeClass(p.class)})]}),key:"7"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","unstyled","pt"])):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("wrapper"),style:[t.sx("wrapper"),{maxHeight:i.virtualScrollerDisabled?t.scrollHeight:""}]},t.ptm("wrapper")),[a.createVNode(f,a.mergeProps({ref:"virtualScroller"},t.virtualScrollerOptions,{items:i.processedData,columns:i.columns,style:t.scrollHeight!=="flex"?{height:t.scrollHeight}:void 0,scrollHeight:t.scrollHeight!=="flex"?void 0:"100%",disabled:i.virtualScrollerDisabled,loaderDisabled:"",inline:"",autoSize:"",showSpacer:!1,pt:t.ptm("virtualScroller")}),{content:a.withCtx(function(p){return[a.createElementVNode("table",a.mergeProps({ref:"table",role:"table",class:[t.cx("table"),t.tableClass],style:[t.tableStyle,p.spacerStyle]},n3(n3({},t.tableProps),t.ptm("table"))),[a.createVNode(c,{columnGroup:i.headerColumnGroup,columns:p.columns,rowGroupMode:t.rowGroupMode,groupRowsBy:t.groupRowsBy,groupRowSortField:i.groupRowSortField,reorderableColumns:t.reorderableColumns,resizableColumns:t.resizableColumns,allRowsSelected:i.allRowsSelected,empty:i.empty,sortMode:t.sortMode,sortField:o.d_sortField,sortOrder:o.d_sortOrder,multiSortMeta:o.d_multiSortMeta,filters:o.d_filters,filtersStore:t.filters,filterDisplay:t.filterDisplay,filterInputProps:t.filterInputProps,onColumnClick:e[1]||(e[1]=function(h){return i.onColumnHeaderClick(h)}),onColumnMousedown:e[2]||(e[2]=function(h){return i.onColumnHeaderMouseDown(h)}),onFilterChange:i.onFilterChange,onFilterApply:i.onFilterApply,onColumnDragstart:e[3]||(e[3]=function(h){return i.onColumnHeaderDragStart(h)}),onColumnDragover:e[4]||(e[4]=function(h){return i.onColumnHeaderDragOver(h)}),onColumnDragleave:e[5]||(e[5]=function(h){return i.onColumnHeaderDragLeave(h)}),onColumnDrop:e[6]||(e[6]=function(h){return i.onColumnHeaderDrop(h)}),onColumnResizestart:e[7]||(e[7]=function(h){return i.onColumnResizeStart(h)}),onCheckboxChange:e[8]||(e[8]=function(h){return i.toggleRowsWithCheckbox(h)}),unstyled:t.unstyled,pt:t.pt},null,8,["columnGroup","columns","rowGroupMode","groupRowsBy","groupRowSortField","reorderableColumns","resizableColumns","allRowsSelected","empty","sortMode","sortField","sortOrder","multiSortMeta","filters","filtersStore","filterDisplay","filterInputProps","onFilterChange","onFilterApply","unstyled","pt"]),t.frozenValue?(a.openBlock(),a.createBlock(u,{key:0,ref:"frozenBodyRef",value:t.frozenValue,frozenRow:!0,columns:p.columns,first:o.d_first,dataKey:t.dataKey,selection:t.selection,selectionKeys:o.d_selectionKeys,selectionMode:t.selectionMode,contextMenu:t.contextMenu,contextMenuSelection:t.contextMenuSelection,rowGroupMode:t.rowGroupMode,groupRowsBy:t.groupRowsBy,expandableRowGroups:t.expandableRowGroups,rowClass:t.rowClass,rowStyle:t.rowStyle,editMode:t.editMode,compareSelectionBy:t.compareSelectionBy,scrollable:t.scrollable,expandedRowIcon:t.expandedRowIcon,collapsedRowIcon:t.collapsedRowIcon,expandedRows:t.expandedRows,expandedRowGroups:t.expandedRowGroups,editingRows:t.editingRows,editingRowKeys:o.d_editingRowKeys,templates:t.$slots,responsiveLayout:t.responsiveLayout,isVirtualScrollerDisabled:!0,onRowgroupToggle:i.toggleRowGroup,onRowClick:e[9]||(e[9]=function(h){return i.onRowClick(h)}),onRowDblclick:e[10]||(e[10]=function(h){return i.onRowDblClick(h)}),onRowRightclick:e[11]||(e[11]=function(h){return i.onRowRightClick(h)}),onRowTouchend:i.onRowTouchEnd,onRowKeydown:i.onRowKeyDown,onRowMousedown:i.onRowMouseDown,onRowDragstart:e[12]||(e[12]=function(h){return i.onRowDragStart(h)}),onRowDragover:e[13]||(e[13]=function(h){return i.onRowDragOver(h)}),onRowDragleave:e[14]||(e[14]=function(h){return i.onRowDragLeave(h)}),onRowDragend:e[15]||(e[15]=function(h){return i.onRowDragEnd(h)}),onRowDrop:e[16]||(e[16]=function(h){return i.onRowDrop(h)}),onRowToggle:e[17]||(e[17]=function(h){return i.toggleRow(h)}),onRadioChange:e[18]||(e[18]=function(h){return i.toggleRowWithRadio(h)}),onCheckboxChange:e[19]||(e[19]=function(h){return i.toggleRowWithCheckbox(h)}),onCellEditInit:e[20]||(e[20]=function(h){return i.onCellEditInit(h)}),onCellEditComplete:e[21]||(e[21]=function(h){return i.onCellEditComplete(h)}),onCellEditCancel:e[22]||(e[22]=function(h){return i.onCellEditCancel(h)}),onRowEditInit:e[23]||(e[23]=function(h){return i.onRowEditInit(h)}),onRowEditSave:e[24]||(e[24]=function(h){return i.onRowEditSave(h)}),onRowEditCancel:e[25]||(e[25]=function(h){return i.onRowEditCancel(h)}),editingMeta:o.d_editingMeta,onEditingMetaChange:i.onEditingMetaChange,unstyled:t.unstyled,pt:t.pt},null,8,["value","columns","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","onRowgroupToggle","onRowTouchend","onRowKeydown","onRowMousedown","editingMeta","onEditingMetaChange","unstyled","pt"])):a.createCommentVNode("",!0),a.createVNode(u,{ref:"bodyRef",value:i.dataToRender(p.rows),class:a.normalizeClass(p.styleClass),columns:p.columns,empty:i.empty,first:o.d_first,dataKey:t.dataKey,selection:t.selection,selectionKeys:o.d_selectionKeys,selectionMode:t.selectionMode,contextMenu:t.contextMenu,contextMenuSelection:t.contextMenuSelection,rowGroupMode:t.rowGroupMode,groupRowsBy:t.groupRowsBy,expandableRowGroups:t.expandableRowGroups,rowClass:t.rowClass,rowStyle:t.rowStyle,editMode:t.editMode,compareSelectionBy:t.compareSelectionBy,scrollable:t.scrollable,expandedRowIcon:t.expandedRowIcon,collapsedRowIcon:t.collapsedRowIcon,expandedRows:t.expandedRows,expandedRowGroups:t.expandedRowGroups,editingRows:t.editingRows,editingRowKeys:o.d_editingRowKeys,templates:t.$slots,responsiveLayout:t.responsiveLayout,virtualScrollerContentProps:p,isVirtualScrollerDisabled:i.virtualScrollerDisabled,onRowgroupToggle:i.toggleRowGroup,onRowClick:e[26]||(e[26]=function(h){return i.onRowClick(h)}),onRowDblclick:e[27]||(e[27]=function(h){return i.onRowDblClick(h)}),onRowRightclick:e[28]||(e[28]=function(h){return i.onRowRightClick(h)}),onRowTouchend:i.onRowTouchEnd,onRowKeydown:function(m){return i.onRowKeyDown(m,p)},onRowMousedown:i.onRowMouseDown,onRowDragstart:e[29]||(e[29]=function(h){return i.onRowDragStart(h)}),onRowDragover:e[30]||(e[30]=function(h){return i.onRowDragOver(h)}),onRowDragleave:e[31]||(e[31]=function(h){return i.onRowDragLeave(h)}),onRowDragend:e[32]||(e[32]=function(h){return i.onRowDragEnd(h)}),onRowDrop:e[33]||(e[33]=function(h){return i.onRowDrop(h)}),onRowToggle:e[34]||(e[34]=function(h){return i.toggleRow(h)}),onRadioChange:e[35]||(e[35]=function(h){return i.toggleRowWithRadio(h)}),onCheckboxChange:e[36]||(e[36]=function(h){return i.toggleRowWithCheckbox(h)}),onCellEditInit:e[37]||(e[37]=function(h){return i.onCellEditInit(h)}),onCellEditComplete:e[38]||(e[38]=function(h){return i.onCellEditComplete(h)}),onCellEditCancel:e[39]||(e[39]=function(h){return i.onCellEditCancel(h)}),onRowEditInit:e[40]||(e[40]=function(h){return i.onRowEditInit(h)}),onRowEditSave:e[41]||(e[41]=function(h){return i.onRowEditSave(h)}),onRowEditCancel:e[42]||(e[42]=function(h){return i.onRowEditCancel(h)}),editingMeta:o.d_editingMeta,onEditingMetaChange:i.onEditingMetaChange,unstyled:t.unstyled,pt:t.pt},null,8,["value","class","columns","empty","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","virtualScrollerContentProps","isVirtualScrollerDisabled","onRowgroupToggle","onRowTouchend","onRowKeydown","onRowMousedown","editingMeta","onEditingMetaChange","unstyled","pt"]),i.hasSpacerStyle(p.spacerStyle)?(a.openBlock(),a.createElementBlock("tbody",a.mergeProps({key:1,class:t.cx("virtualScrollerSpacer"),style:{height:"calc(".concat(p.spacerStyle.height," - ").concat(p.rows.length*p.itemSize,"px)")}},t.ptm("virtualScrollerSpacer")),null,16)):a.createCommentVNode("",!0),a.createVNode(d,{columnGroup:i.footerColumnGroup,columns:p.columns,pt:t.pt},null,8,["columnGroup","columns","pt"])],16)]}),_:1},16,["items","columns","style","scrollHeight","disabled","pt"])],16),t.$slots.footer?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:3,class:t.cx("footer")},t.ptm("footer")),[a.renderSlot(t.$slots,"footer")],16)):a.createCommentVNode("",!0),i.paginatorBottom?(a.openBlock(),a.createBlock(l,{key:4,rows:o.d_rows,first:o.d_first,totalRecords:i.totalRecordsLength,pageLinkSize:t.pageLinkSize,template:t.paginatorTemplate,rowsPerPageOptions:t.rowsPerPageOptions,currentPageReportTemplate:t.currentPageReportTemplate,class:a.normalizeClass(t.cx("paginator")),onPage:e[43]||(e[43]=function(p){return i.onPage(p)}),alwaysShow:t.alwaysShowPaginator,unstyled:t.unstyled,pt:t.ptm("paginator")},a.createSlots({_:2},[t.$slots.paginatorstart?{name:"start",fn:a.withCtx(function(){return[a.renderSlot(t.$slots,"paginatorstart")]}),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:a.withCtx(function(){return[a.renderSlot(t.$slots,"paginatorend")]}),key:"1"}:void 0,t.$slots.paginatorfirstpagelinkicon?{name:"firstpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorfirstpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"2"}:void 0,t.$slots.paginatorprevpagelinkicon?{name:"prevpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorprevpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"3"}:void 0,t.$slots.paginatornextpagelinkicon?{name:"nextpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatornextpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"4"}:void 0,t.$slots.paginatorlastpagelinkicon?{name:"lastpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorlastpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"5"}:void 0,t.$slots.paginatorjumptopagedropdownicon?{name:"jumptopagedropdownicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorjumptopagedropdownicon",{class:a.normalizeClass(p.class)})]}),key:"6"}:void 0,t.$slots.paginatorrowsperpagedropdownicon?{name:"rowsperpagedropdownicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorrowsperpagedropdownicon",{class:a.normalizeClass(p.class)})]}),key:"7"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","unstyled","pt"])):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({ref:"resizeHelper",class:t.cx("resizeHelper"),style:{display:"none"}},t.ptm("resizeHelper")),null,16),t.reorderableColumns?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:5,ref:"reorderIndicatorUp",class:t.cx("reorderIndicatorUp"),style:{position:"absolute",display:"none"}},t.ptm("reorderIndicatorUp")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.$slots.reorderindicatorupicon||"ArrowDownIcon")))],16)):a.createCommentVNode("",!0),t.reorderableColumns?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:6,ref:"reorderIndicatorDown",class:t.cx("reorderIndicatorDown"),style:{position:"absolute",display:"none"}},t.ptm("reorderIndicatorDown")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.$slots.reorderindicatordownicon||"ArrowUpIcon")))],16)):a.createCommentVNode("",!0)],16)}e3.render=tN;var nN={},rN={name:"BaseColumn",extends:re,props:{columnKey:{type:null,default:null},field:{type:[String,Function],default:null},sortField:{type:[String,Function],default:null},filterField:{type:[String,Function],default:null},dataType:{type:String,default:"text"},sortable:{type:Boolean,default:!1},header:{type:null,default:null},footer:{type:null,default:null},style:{type:null,default:null},class:{type:String,default:null},headerStyle:{type:null,default:null},headerClass:{type:String,default:null},bodyStyle:{type:null,default:null},bodyClass:{type:String,default:null},footerStyle:{type:null,default:null},footerClass:{type:String,default:null},showFilterMenu:{type:Boolean,default:!0},showFilterOperator:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showApplyButton:{type:Boolean,default:!0},showFilterMatchModes:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},filterMatchModeOptions:{type:Array,default:null},maxConstraints:{type:Number,default:2},excludeGlobalFilter:{type:Boolean,default:!1},filterHeaderClass:{type:String,default:null},filterHeaderStyle:{type:null,default:null},filterMenuClass:{type:String,default:null},filterMenuStyle:{type:null,default:null},selectionMode:{type:String,default:null},expander:{type:Boolean,default:!1},colspan:{type:Number,default:null},rowspan:{type:Number,default:null},rowReorder:{type:Boolean,default:!1},rowReorderIcon:{type:String,default:void 0},reorderableColumn:{type:Boolean,default:!0},rowEditor:{type:Boolean,default:!1},frozen:{type:Boolean,default:!1},alignFrozen:{type:String,default:"left"},exportable:{type:Boolean,default:!0},exportHeader:{type:String,default:null},exportFooter:{type:String,default:null},filterMatchMode:{type:String,default:null},hidden:{type:Boolean,default:!1}},style:nN,provide:function(){return{$parentInstance:this}}},oN={name:"Column",extends:rN,inheritAttrs:!1,inject:["$columns"],mounted:function(){var e;(e=this.$columns)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$columns)===null||e===void 0||e.delete(this.$)},render:function(){return null}},iN={},sN={name:"BaseColumnGroup",extends:re,props:{type:{type:String,default:null}},style:iN,provide:function(){return{$parentInstance:this}}},aN={name:"ColumnGroup",extends:sN,inheritAttrs:!1,inject:["$columnGroups"],mounted:function(){var e;(e=this.$columnGroups)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$columnGroups)===null||e===void 0||e.delete(this.$)},render:function(){return null}},lN={name:"Row",extends:re,inject:["$rows"],mounted:function(){var e;(e=this.$rows)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$rows)===null||e===void 0||e.delete(this.$)},render:function(){return null}};const cN="data:image/svg+xml,%3csvg%20width='118'%20height='99'%20viewBox='0%200%20118%2099'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M104.165%2059.815C107.107%2062.7762%20108.893%2066.692%20109.201%2070.8549C109.508%2075.0179%20108.317%2079.1536%20105.842%2082.515L105.642%2082.782L105.412%2083.082L117.521%2095.245C117.828%2095.5546%20118%2095.973%20118%2096.409C118%2096.845%20117.828%2097.2634%20117.521%2097.573C117.232%2097.8651%20116.844%2098.0376%20116.434%2098.0561C116.023%2098.0746%20115.621%2097.9378%20115.307%2097.673L115.207%2097.573L103.122%2085.438L102.822%2085.682C99.4939%2088.3942%2095.2763%2089.772%2090.9889%2089.5476C86.7016%2089.3233%2082.6508%2087.5127%2079.624%2084.468C76.3686%2081.1921%2074.5414%2076.7614%2074.5414%2072.143C74.5414%2067.5247%2076.3686%2063.0939%2079.624%2059.818C81.2316%2058.2001%2083.1433%2056.916%2085.2491%2056.0397C87.3548%2055.1634%2089.6131%2054.7121%2091.8939%2054.7118C94.1747%2054.7115%2096.4331%2055.1622%2098.539%2056.0381C100.645%2056.9139%20102.557%2058.1975%20104.165%2059.815ZM81.935%2062.131C79.2951%2064.7964%2077.8142%2068.3961%2077.8142%2072.1475C77.8142%2075.8989%2079.2951%2079.4986%2081.935%2082.164C83.2368%2083.4792%2084.7865%2084.5233%2086.4944%2085.2358C88.2022%2085.9484%2090.0344%2086.3153%2091.885%2086.3153C93.7355%2086.3153%2095.5678%2085.9484%2097.2756%2085.2358C98.9835%2084.5233%20100.533%2083.4792%20101.835%2082.164C104.475%2079.4986%20105.956%2075.8989%20105.956%2072.1475C105.956%2068.3961%20104.475%2064.7964%20101.835%2062.131C100.533%2060.8158%2098.9835%2059.7717%2097.2756%2059.0592C95.5678%2058.3466%2093.7355%2057.9797%2091.885%2057.9797C90.0344%2057.9797%2088.2022%2058.3466%2086.4944%2059.0592C84.7865%2059.7717%2083.2368%2060.8158%2081.935%2062.131ZM31.4%2075.042V76.442C31.4001%2076.5544%2031.4224%2076.6656%2031.4656%2076.7694C31.5087%2076.8731%2031.5719%2076.9673%2031.6515%2077.0466C31.7311%2077.126%2031.8255%2077.1888%2031.9294%2077.2316C32.0333%2077.2744%2032.1446%2077.2963%2032.257%2077.296H72.357C72.5818%2078.1673%2072.8638%2079.0228%2073.201%2079.857H32.258C31.3506%2079.8589%2030.4796%2079.5003%2029.8366%2078.86C29.1935%2078.2198%2028.8311%2077.3504%2028.829%2076.443V75.043L31.4%2075.042ZM86.162%2022C87.0694%2021.9981%2087.9404%2022.3568%2088.5834%2022.997C89.2265%2023.6372%2089.5889%2024.5066%2089.591%2025.414V51.808C88.7243%2051.9101%2087.8652%2052.0684%2087.019%2052.282V25.414C87.0189%2025.3016%2086.9966%2025.1904%2086.9534%2025.0867C86.9103%2024.9829%2086.8471%2024.8887%2086.7675%2024.8094C86.6879%2024.7301%2086.5935%2024.6672%2086.4896%2024.6244C86.3857%2024.5816%2086.2744%2024.5597%2086.162%2024.56H25.429C25.3166%2024.5597%2025.2053%2024.5816%2025.1014%2024.6244C24.9975%2024.6672%2024.9031%2024.7301%2024.8235%2024.8094C24.7439%2024.8887%2024.6807%2024.9829%2024.6376%2025.0867C24.5944%2025.1904%2024.5721%2025.3016%2024.572%2025.414V69.587C24.5721%2069.6994%2024.5944%2069.8106%2024.6376%2069.9144C24.6807%2070.0181%2024.7439%2070.1123%2024.8235%2070.1916C24.9031%2070.271%2024.9975%2070.3338%2025.1014%2070.3766C25.2053%2070.4194%2025.3166%2070.4413%2025.429%2070.441H71.766C71.697%2071.2932%2071.6806%2072.1488%2071.717%2073.003H25.429C24.5216%2073.0049%2023.6506%2072.6463%2023.0076%2072.006C22.3645%2071.3658%2022.0021%2070.4964%2022%2069.589V25.414C22.0021%2024.5066%2022.3645%2023.6372%2023.0076%2022.997C23.6506%2022.3568%2024.5216%2021.9981%2025.429%2022H86.162ZM77.701%2054.948C77.8695%2054.9484%2078.0362%2054.982%2078.1918%2055.0468C78.3473%2055.1117%2078.4885%2055.2065%2078.6073%2055.3259C78.7262%2055.4453%2078.8204%2055.587%2078.8845%2055.7428C78.9486%2055.8986%2078.9814%2056.0655%2078.981%2056.234C78.9811%2056.2983%2078.9764%2056.3624%2078.967%2056.426C78.557%2056.7693%2078.159%2057.1327%2077.773%2057.516H77.701H34.374C34.0329%2057.516%2033.7058%2057.3805%2033.4647%2057.1393C33.2235%2056.8982%2033.088%2056.5711%2033.088%2056.23C33.088%2055.8889%2033.2235%2055.5618%2033.4647%2055.3207C33.7058%2055.0795%2034.0329%2054.944%2034.374%2054.944L77.701%2054.948ZM92.991%2028.859C93.8984%2028.8571%2094.7694%2029.2158%2095.4124%2029.856C96.0555%2030.4962%2096.4179%2031.3656%2096.42%2032.273V52.168C95.5725%2051.9753%2094.7133%2051.8377%2093.848%2051.756V32.273C93.8479%2032.1606%2093.8256%2032.0494%2093.7824%2031.9457C93.7393%2031.8419%2093.6761%2031.7477%2093.5965%2031.6684C93.5169%2031.5891%2093.4225%2031.5262%2093.3186%2031.4834C93.2147%2031.4406%2093.1034%2031.4187%2092.991%2031.419H91.291V28.858L92.991%2028.859ZM77.701%2046.375C78.0421%2046.375%2078.3692%2046.5105%2078.6103%2046.7517C78.8515%2046.9928%2078.987%2047.3199%2078.987%2047.661C78.987%2048.0021%2078.8515%2048.3292%2078.6103%2048.5703C78.3692%2048.8115%2078.0421%2048.947%2077.701%2048.947H34.374C34.0329%2048.947%2033.7058%2048.8115%2033.4647%2048.5703C33.2235%2048.3292%2033.088%2048.0021%2033.088%2047.661C33.088%2047.3199%2033.2235%2046.9928%2033.4647%2046.7517C33.7058%2046.5105%2034.0329%2046.375%2034.374%2046.375H77.701ZM59.983%2037.801C60.3241%2037.801%2060.6512%2037.9365%2060.8923%2038.1777C61.1335%2038.4188%2061.269%2038.7459%2061.269%2039.087C61.269%2039.4281%2061.1335%2039.7552%2060.8923%2039.9963C60.6512%2040.2375%2060.3241%2040.373%2059.983%2040.373H34.374C34.0329%2040.373%2033.7058%2040.2375%2033.4647%2039.9963C33.2235%2039.7552%2033.088%2039.4281%2033.088%2039.087C33.088%2038.7459%2033.2235%2038.4188%2033.4647%2038.1777C33.7058%2037.9365%2034.0329%2037.801%2034.374%2037.801H59.983Z'%20fill='%238D9AA5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%200C4.2066%200%204.40475%200.0820729%204.55084%200.228164C4.69693%200.374255%204.779%200.572397%204.779%200.779V3.221H7.221C7.41393%203.221%207.6%203.29258%207.74317%203.4219C7.88634%203.55122%207.97643%203.72907%207.996%203.921V4.001C7.996%204.2076%207.91393%204.40575%207.76784%204.55184C7.62175%204.69793%207.4236%204.78%207.217%204.78H4.779V7.222C4.779%207.41493%204.70742%207.601%204.5781%207.74417C4.44878%207.88734%204.27093%207.97744%204.079%207.997H3.999C3.7924%207.997%203.59425%207.91493%203.44816%207.76884C3.30207%207.62275%203.22%207.4246%203.22%207.218V4.779H0.779C0.585538%204.78002%200.398617%204.70902%200.254623%204.57981C0.110629%204.45061%200.0198653%204.27244%200%204.08V4C0%203.7934%200.082073%203.59526%200.228164%203.44916C0.374255%203.30307%200.572396%203.221%200.779%203.221H3.221V0.779C3.221%200.586071%203.29258%200.400004%203.4219%200.256831C3.55122%200.113658%203.72907%200.023565%203.921%200.00399971L4%200Z'%20fill='%238D9AA5'/%3e%3cpath%20d='M11%2099C11.5304%2099%2012.0391%2098.7893%2012.4142%2098.4142C12.7893%2098.0391%2013%2097.5304%2013%2097C13%2096.4696%2012.7893%2095.9609%2012.4142%2095.5858C12.0391%2095.2107%2011.5304%2095%2011%2095C10.4696%2095%209.96086%2095.2107%209.58579%2095.5858C9.21071%2095.9609%209%2096.4696%209%2097C9%2097.5304%209.21071%2098.0391%209.58579%2098.4142C9.96086%2098.7893%2010.4696%2099%2011%2099Z'%20fill='%238D9AA5'/%3e%3cpath%20d='M104.518%2015.035C103.055%2015.035%20101.651%2014.4538%20100.617%2013.4192C99.5817%2012.3846%2099.0003%2010.9813%2099%209.518C99%208.05454%2099.5814%206.65101%20100.616%205.61619C101.651%204.58136%20103.055%204%20104.518%204C105.981%204%20107.385%204.58136%20108.42%205.61619C109.455%206.65101%20110.036%208.05454%20110.036%209.518C110.036%2010.9813%20109.454%2012.3846%20108.419%2013.4192C107.385%2014.4538%20105.981%2015.035%20104.518%2015.035ZM104.518%2013.035C105.451%2013.035%20106.346%2012.6645%20107.005%2012.005C107.665%2011.3454%20108.036%2010.4509%20108.036%209.518C108.036%209.05601%20107.945%208.59854%20107.768%208.17172C107.591%207.7449%20107.332%207.35707%20107.006%207.0304C106.679%206.70372%20106.291%206.44459%20105.864%206.26779C105.437%206.091%20104.98%206%20104.518%206C103.585%206%20102.69%206.37065%20102.03%207.0304C101.371%207.69015%20101%208.58497%20101%209.518C101%2010.4509%20101.371%2011.3454%20102.031%2012.005C102.69%2012.6645%20103.585%2013.035%20104.518%2013.035Z'%20fill='%238D9AA5'/%3e%3c/svg%3e",uN=a.defineComponent({name:"QTable",components:{Column:oN,ColumnGroup:aN,DataTable:e3,Row:lN,QBadge:xi},props:{id:{type:String,default:""},modelValue:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},hasSearch:{type:Boolean,default:!0},sortBy:{type:String,default:""},itemsPerPage:{type:Number,default:20},currentPage:{type:Number,default:1},searchPlaceholder:{type:String,default:""},filters:{type:Object,default:()=>({})},filtersAction:{type:Function,default:()=>{}},filtersCount:{type:Number,default:0},globalFilters:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},isMultiSort:{type:Boolean,default:!1},isMultiSelect:{type:Boolean,default:!1},rowSelect:{type:Function,default:()=>{}},rowUnselect:{type:Function,default:()=>{}},fixedTopOffset:{type:Number,default:0},skeletonRows:{type:Number,default:6}},setup(t){const e=a.ref(!1),n=a.ref(!1),r=a.ref(cN),o=a.ref(),i=a.ref(""),s=a.ref([]),l=a.ref(),c=a.ref(0),u=a.ref({global:{matchMode:Re.CONTAINS,value:null},...t.filters}),d=a.computed(()=>{const b=[],w={};return t.columns.forEach(C=>{w[C.key]=""}),[...Array(t.skeletonRows)].forEach(()=>{b.push(w)}),b}),f=()=>{var b,w;o.value.scrollWidth>o.value.clientWidth?(e.value=!0,(b=o.value)==null||b.classList.add("is-scrolled")):(e.value=!1,(w=o.value)==null||w.classList.remove("is-scrolled")),g()},p=b=>{t.rowSelect(b)},h=b=>{t.rowUnselect(b)},m=()=>{var v,E;const b=l.value.offsetTop-t.fixedTopOffset,w=document.querySelector('div[data-pc-section="header"]'),C=(v=o.value)==null?void 0:v.querySelector("thead");if(n.value=!!t.fixedTopOffset&&l.value&&window.scrollY>=b,n.value){if(w.style.top=t.fixedTopOffset+"px",!e.value){const S=t.fixedTopOffset+w.clientHeight+1;C.style.top=S+"px"}}else w.style.top="",e.value||(C.style.top="");if(n.value&&e.value){const S=document.querySelector('div[data-pc-section="header"] > div[data-pc-section="wrapper"]');(E=S==null?void 0:S.querySelectorAll("th"))==null||E.forEach((k,T)=>{var B;const D=(B=o.value)==null?void 0:B.querySelector(`th:nth-child(${T+1})`),N=D==null?void 0:D.getAttribute("aria-sort");k==null||k.setAttribute("aria-sort",N),k.classList.contains("actions")&&(k.style.minWidth=(D==null?void 0:D.clientWidth)+"px")})}g()},y=()=>{var w,C,v,E;const b=(w=o.value)==null?void 0:w.cloneNode(!0);if(b){const S=document.querySelector('div[data-pc-section="header"]');S==null||S.append(b);const k=S==null?void 0:S.querySelector('div[data-pc-section="wrapper"]');(C=k==null?void 0:k.querySelector("tbody"))==null||C.remove(),k==null||k.addEventListener("scroll",()=>{o.value.scrollLeft=k.scrollLeft}),(v=o.value)==null||v.addEventListener("scroll",()=>{k.scrollLeft=o.value.scrollLeft}),(E=k==null?void 0:k.querySelectorAll("th"))==null||E.forEach((T,D)=>{T==null||T.addEventListener("click",async()=>{var N;if(n.value&&e.value){const B=(N=o.value)==null?void 0:N.querySelector(`th:nth-child(${D+1})`);await(B==null?void 0:B.click());const $=B==null?void 0:B.getAttribute("aria-sort");T==null||T.setAttribute("aria-sort",$)}})})}},g=()=>{const b=o.value.clientWidth+"px",w=document.querySelector('div[data-pc-section="header"]'),C=w.querySelector('div[data-pc-section="wrapper"] thead');w.style.width=b,o.value.querySelector("thead").style.width=b,C&&(C.style.width=b)};return a.onMounted(()=>{o.value=document.querySelector('div[data-pc-section="wrapper"]'),f(),window.addEventListener("resize",f),window.addEventListener("scroll",m),y()}),a.onUnmounted(()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",m)}),{horizontalScroll:e,isFixed:n,noResultsPath:r,scrollableElement:o,search:i,selectedRows:s,tableContainer:l,tableFilters:u,tableHeight:c,skeletonData:d,onPageResizeOrLoad:f,onSelectRow:p,onUnselectRow:h,mq:Yr}}}),dN=["id"],fN={class:"search-and-filters"},pN={class:"inspections-search"},hN={for:"search",class:"search-label"},mN={key:0,class:"inspection-actions"},gN={class:"flex relative"},yN={key:0,class:"flex flex-col items-center justify-center"},bN=["src"],wN={key:0},vN={key:1},CN={key:1,class:"skeleton-element"};function SN(t,e,n,r,o,i){const s=a.resolveComponent("q-icon"),l=a.resolveComponent("q-input"),c=a.resolveComponent("q-badge"),u=a.resolveComponent("column"),d=a.resolveComponent("data-table");return a.openBlock(),a.createElementBlock("div",{id:t.id,class:a.normalizeClass(["table-container",{"is-fixed":t.isFixed},{"using-scroll":t.horizontalScroll},{"is-loading":t.loading}]),ref:"tableContainer"},[a.createVNode(d,{filters:t.tableFilters,"onUpdate:filters":e[1]||(e[1]=f=>t.tableFilters=f),selection:t.selectedRows,"onUpdate:selection":e[2]||(e[2]=f=>t.selectedRows=f),"global-filter-fields":t.globalFilters,loading:t.loading,"meta-key-selection":!1,"scroll-height":t.horizontalScroll&&t.tableHeight?`${t.tableHeight}px`:"","selection-mode":t.isMultiSelect?"multiple":"single","sort-mode":t.isMultiSort?"multiple":"single",value:t.loading?t.skeletonData:t.modelValue,"data-key":"id","filter-display":"menu","removable-sort":"",scrollable:"",onRowSelect:t.onSelectRow,onRowUnselect:t.onUnselectRow},{header:a.withCtx(()=>[t.hasSearch?a.renderSlot(t.$slots,"search-and-filters",{key:0},()=>[a.createElementVNode("div",fN,[a.createElementVNode("div",pN,[t.hasSearch?a.renderSlot(t.$slots,"search",{key:0},()=>[a.createElementVNode("label",hN,[a.createVNode(s,{class:"mr-2",color:"gray-40",icon:"search",size:"md",type:""}),a.createVNode(l,{id:"search",modelValue:t.tableFilters.global.value,"onUpdate:modelValue":e[0]||(e[0]=f=>t.tableFilters.global.value=f),"hide-clear":!!t.mq.md,placeholder:t.searchPlaceholder||t.$t("HC_SEARCH"),class:"text-base","control-class":"!border-0 !px-0"},null,8,["modelValue","hide-clear","placeholder"])])],!0):a.createCommentVNode("",!0)]),Object.keys(t.tableFilters).length||t.$slots.tableActions?(a.openBlock(),a.createElementBlock("div",mN,[Object.keys(t.tableFilters).length?a.renderSlot(t.$slots,"filters",{key:0},()=>[a.createElementVNode("div",gN,[a.createVNode(s,{class:"filters-icon",color:"gray-40",icon:"filter",size:"md",onClick:t.filtersAction},null,8,["onClick"]),t.filtersCount?(a.openBlock(),a.createBlock(c,{key:0,class:"filters-count",color:"white"},{text:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.filtersCount),1)]),_:1})):a.createCommentVNode("",!0)])],!0):a.createCommentVNode("",!0),t.$slots.tableActions?a.renderSlot(t.$slots,"tableActions",{key:1},void 0,!0):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])],!0):a.createCommentVNode("",!0)]),empty:a.withCtx(()=>[t.loading?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",yN,[a.renderSlot(t.$slots,"no-results-illustration",{},()=>[a.createElementVNode("img",{class:"mb-5",src:t.noResultsPath},null,8,bN)],!0),a.renderSlot(t.$slots,"no-results-text",a.normalizeProps(a.guardReactiveProps({tableFilters:t.tableFilters})),void 0,!0)]))]),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.columns,f=>(a.openBlock(),a.createBlock(u,{field:f.key,"filter-field":f.key,header:f.name,sortable:f.sortable,frozen:f.frozen,class:a.normalizeClass([f.key,f.size?`cell-${f.size}`:"",{"text-right":f.key==="actions"}])},{body:a.withCtx(({data:p})=>[t.loading?t.loading&&f.name?(a.openBlock(),a.createElementBlock("div",CN," Ā  ")):a.createCommentVNode("",!0):a.renderSlot(t.$slots,f.key,a.normalizeProps(a.mergeProps({key:0},p)),()=>[f.key.match(/\./)?(a.openBlock(),a.createElementBlock("div",vN,a.toDisplayString(p[f.key.split(".")[0]][f.key.split(".")[1]]),1)):(a.openBlock(),a.createElementBlock("div",wN,a.toDisplayString(p[f.key]),1))],!0)]),_:2},1032,["field","filter-field","header","sortable","frozen","class"]))),256))]),_:3},8,["filters","selection","global-filter-fields","loading","scroll-height","selection-mode","sort-mode","value","onRowSelect","onRowUnselect"])],10,dN)}const kN=ce(uN,[["render",SN],["__scopeId","data-v-90d7db4c"]]),ON=a.defineComponent({name:"QTag",components:{},props:{tagClass:{type:String,default:""},bgColor:{type:String,default:"bg-green-0"},textColor:{type:String,default:"text-green-20"},shape:{type:String,default:"square"}},setup(t,{slots:e}){return{hasIcon:!!e.icon}}});function EN(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["tag flex items-center",[t.tagClass,t.bgColor,t.textColor,"tag-"+t.shape,{"has-icon":t.hasIcon}]])},[t.hasIcon?a.renderSlot(t.$slots,"icon",{key:0},void 0,!0):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default",{},void 0,!0)],2)}const TN=ce(ON,[["render",EN],["__scopeId","data-v-1a01844c"]]),r3="update:model-value",MN=a.defineComponent({name:"QTextarea",inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},persistentPlaceholder:{type:Boolean,default:!1},placeholder:{type:String,default:""},rows:{type:Number,default:2},status:{type:String,default:""},textareaClass:{type:String,default:""},isDisabled:{type:Boolean,default:!1}},emits:[r3],setup(t,{attrs:e,emit:n,slots:r}){const o=a.ref(!1),i=a.ref(),s=a.computed(()=>!!r.actions),l=a.computed(()=>!!e.disabled||!!t.isDisabled),c=a.computed(()=>[{[`has-${t.status}`]:t.status&&!l.value},{"is-focused":o.value},{"is-disabled":l.value}]),u=a.computed(()=>["textarea",t.textareaClass,{[t.status]:t.status&&!l.value},{populated:!!t.modelValue&&t.persistentPlaceholder},{"is-focused":o.value&&t.persistentPlaceholder}]),d=()=>{i.value.style.height="auto",i.value.style.height=i.value.scrollHeight+"px"},f=p=>{n(r3,p.target.value)};return a.onMounted(()=>{d()}),{focused:o,disabled:l,rootClasses:c,textarea:i,textareaClasses:u,hasActions:s,resizeTextarea:d,updateValue:f}}}),xN=["id","disabled","placeholder","rows","value"],PN={key:0,class:"action flex items-end py-2 pr-4"},DN=["for"];function AN(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([t.rootClasses,"control flex"])},[a.createElementVNode("textarea",a.mergeProps({id:String(t.$attrs.id),ref:"textarea",disabled:t.isDisabled,class:[t.textareaClasses],placeholder:t.persistentPlaceholder?"":t.placeholder,rows:t.rows,value:t.modelValue},t.$attrs,{onInput:e[0]||(e[0]=(...s)=>t.updateValue&&t.updateValue(...s)),onFocusin:e[1]||(e[1]=s=>t.focused=!t.focused),onFocusout:e[2]||(e[2]=s=>t.focused=!t.focused),onKeyup:e[3]||(e[3]=(...s)=>t.resizeTextarea&&t.resizeTextarea(...s))}),`
244
- `,16,xN),t.hasActions?(a.openBlock(),a.createElementBlock("div",PN,[a.renderSlot(t.$slots,"actions",{},void 0,!0)])):a.createCommentVNode("",!0),t.persistentPlaceholder?(a.openBlock(),a.createElementBlock("label",{key:1,for:String(t.$attrs.id),class:"placeholder"},a.toDisplayString(t.placeholder),9,DN)):a.createCommentVNode("",!0)],2)}const IN=ce(MN,[["render",AN],["__scopeId","data-v-71ad5d22"]]),o3="update:modelValue",i3="undo-action",NN=a.defineComponent({name:"QToast",props:{modelValue:{type:Boolean,default:!1,required:!0},icon:{type:String,default:""},message:{type:String,default:""},variant:{type:String,default:""},duration:{type:Number,default:null,required:!1},position:{type:[String,Array],default:null,required:!1},withTransition:{type:Boolean,default:!1},closeButton:{type:Boolean,default:!1},undoButton:{type:Boolean,default:!1}},emits:[o3,i3],setup(t,{emit:e}){const n=a.ref(null),r=a.computed({get:()=>t.modelValue,set:u=>{e(o3,u)}}),o=a.computed(()=>t.variant?"is-"+t.variant:""),i=a.computed(()=>t.position?"toast-fixed "+t.position:""),s=a.computed(()=>t.withTransition&&"component-slide-right"),l=()=>{e(i3)},c=()=>{n.value=setTimeout(()=>{r.value=!1},t.duration)};return a.onBeforeUnmount(()=>{n.value&&(clearTimeout(n.value),n.value=null)}),a.watchEffect(()=>{r.value&&t.duration?c():n.value&&(clearTimeout(n.value),n.value=null)}),{show:r,statusClass:o,positionClass:i,computedTransition:s,startTimeout:c,undoAction:l}}}),BN=["aria-live"],RN={class:"message flex-grow"},LN=["aria-label"];function VN(t,e,n,r,o,i){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createBlock(a.Transition,{name:String(t.computedTransition),appear:""},{default:a.withCtx(()=>[t.show?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["toast flex gap-2",t.statusClass,t.positionClass]),role:"alert","aria-live":t.variant=="error"?"assertive":"polite","aria-atomic":"true"},[t.icon?(a.openBlock(),a.createBlock(s,{key:0,icon:t.icon,class:"status-icon",type:"fill","aria-hidden":"true"},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("span",RN,[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.message),1)],!0)]),t.undoButton?(a.openBlock(),a.createElementBlock("button",{key:1,class:"button-link",onClick:e[0]||(e[0]=l=>t.undoAction())},[a.renderSlot(t.$slots,"undo-message",{},()=>[a.createTextVNode(a.toDisplayString(t.$t("HC_UNDO")),1)],!0)])):a.createCommentVNode("",!0),t.closeButton?(a.openBlock(),a.createElementBlock("button",{key:2,class:"close-icon",onClick:e[1]||(e[1]=l=>t.show=!t.show),"aria-label":t.$t("HC_CLOSE")},[a.createVNode(s,{icon:"close",type:"line",color:"inkwell-30",class:"close","aria-hidden":"true"})],8,LN)):a.createCommentVNode("",!0)],10,BN)):a.createCommentVNode("",!0)]),_:3},8,["name"])}const $N=ce(NN,[["render",VN],["__scopeId","data-v-373e3b8b"]]),FN=a.defineComponent({name:"QTooltip",props:{id:{type:String,default:"tooltip"},color:{type:String,default:"inkwell-30"},noWrap:{type:Boolean,default:!0},position:{type:String,default:"bottom"},relative:{type:Boolean,default:!1}}}),HN=["aria-describedby"],_N=["id"];function zN(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:"tooltip-container","aria-describedby":t.id},[a.renderSlot(t.$slots,"trigger",{},void 0,!0),a.createElementVNode("div",{id:t.id,class:a.normalizeClass(["tooltip",t.color?"bg-"+t.color+" border-"+t.color:"",t.position,t.noWrap?"no-wrap":"",t.relative?"relative":""]),role:"tooltip"},[a.renderSlot(t.$slots,"content",{},void 0,!0)],10,_N)],8,HN)}const jN=ce(FN,[["render",zN],["__scopeId","data-v-9d861ae7"]]);function Ue(t){this.content=t}Ue.prototype={constructor:Ue,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new Ue(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Ue(n)},addToStart:function(t,e){return new Ue([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Ue(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new Ue(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Ue.from(t),t.size?new Ue(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ue.from(t),t.size?new Ue(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ue.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},Ue.from=function(t){if(t instanceof Ue)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Ue(e)};function s3(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=s3(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function a3(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),l=e.child(--i),c=s.nodeSize;if(s==l){n-=c,r-=c;continue}if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let u=0,d=Math.min(s.text.length,l.text.length);for(;u<d&&s.text[s.text.length-u-1]==l.text[l.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(s.content.size||l.content.size){let u=a3(s.content,l.content,n-1,r-1);if(u)return u}n-=c,r-=c}}class A{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,l=0;l<n;s++){let c=this.content[s],u=l+c.nodeSize;if(u>e&&r(c,o+l,i||null,s)!==!1&&c.content.size){let d=l+1;c.nodesBetween(Math.max(0,e-d),Math.min(c.content.size,n-d),r,o+d)}l=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(l,c)=>{let u=l.isText?l.text.slice(Math.max(e,c)-c,n-c):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&r&&(s?s=!1:i+=r),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new A(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let l=this.content[i],c=s+l.nodeSize;c>e&&((s<e||c>n)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,n-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,n-s-1))),r.push(l),o+=l.nodeSize),s=c}return new A(r,o)}cutByIndex(e,n){return e==n?A.empty:e==0&&n==this.content.length?this:new A(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new A(o,i)}addToStart(e){return new A([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new A(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.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(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return s3(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return a3(this,e,n,r)}findIndex(e,n=-1){if(e==0)return Tl(0,e);if(e==this.size)return Tl(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||n>0?Tl(r+1,s):Tl(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return A.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new A(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return A.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new A(n||e,r)}static from(e){if(!e)return A.empty;if(e instanceof A)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new A([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}A.empty=new A([],0);const Su={index:0,offset:0};function Tl(t,e){return Su.index=t,Su.offset=e,Su}function Ml(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Ml(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Ml(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let me=class gf{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Ml(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);return r.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return gf.none;if(e instanceof gf)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};me.none=[];class xl extends Error{}class V{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=c3(this.content,e+this.openStart,n);return r&&new V(r,this.openStart,this.openEnd)}removeBetween(e,n){return new V(l3(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return V.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new V(A.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new V(e,r,o)}}V.empty=new V(A.empty,0,0);function l3(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:l}=t.findIndex(n);if(o==e||i.isText){if(l!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(l3(i.content,e-o-1,n-o-1)))}function c3(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),s=t.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=c3(s.content,e-i-1,n);return l&&t.replaceChild(o,s.copy(l))}function ZN(t,e,n){if(n.openStart>t.depth)throw new xl("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new xl("Inconsistent open depths");return u3(t,e,n,0)}function u3(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let s=u3(t,e,n,r+1);return i.copy(i.content.replaceChild(o,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,l=s.content;return eo(s,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:s,end:l}=WN(n,t);return eo(i,f3(t,s,l,e,r))}else return eo(i,Pl(t,e,r))}function d3(t,e){if(!e.type.compatibleContent(t.type))throw new xl("Cannot join "+e.type.name+" onto "+t.type.name)}function ku(t,e,n){let r=t.node(n);return d3(r,e.node(n)),r}function Xr(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function _s(t,e,n,r){let o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Xr(t.nodeAfter,r),i++));for(let l=i;l<s;l++)Xr(o.child(l),r);e&&e.depth==n&&e.textOffset&&Xr(e.nodeBefore,r)}function eo(t,e){return t.type.checkContent(e),t.copy(e)}function f3(t,e,n,r,o){let i=t.depth>o&&ku(t,e,o+1),s=r.depth>o&&ku(n,r,o+1),l=[];return _s(null,t,o,l),i&&s&&e.index(o)==n.index(o)?(d3(i,s),Xr(eo(i,f3(t,e,n,r,o+1)),l)):(i&&Xr(eo(i,Pl(t,e,o+1)),l),_s(e,n,o,l),s&&Xr(eo(s,Pl(n,r,o+1)),l)),_s(r,null,o,l),new A(l)}function Pl(t,e,n){let r=[];if(_s(null,t,n,r),t.depth>n){let o=ku(t,e,n+1);Xr(eo(o,Pl(t,e,n+1)),r)}return _s(e,null,n,r),new A(r)}function WN(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(A.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class zs{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return me.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let l=r;r=o,o=l}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Dl(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let s=e;;){let{index:l,offset:c}=s.content.findIndex(i),u=i-c;if(r.push(s,l,o+c),!u||(s=s.child(l),s.isText))break;i=u-1,o+=c+1}return new zs(n,r,i)}static resolveCached(e,n){for(let o=0;o<Ou.length;o++){let i=Ou[o];if(i.pos==n&&i.doc==e)return i}let r=Ou[Eu]=zs.resolve(e,n);return Eu=(Eu+1)%UN,r}}let Ou=[],Eu=0,UN=12;class Dl{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}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 KN=Object.create(null);let to=class yf{constructor(e,n,r,o=me.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||A.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Ml(this.attrs,n||e.defaultAttrs||KN)&&me.sameSet(this.marks,r||me.none)}copy(e=null){return e==this.content?this:new yf(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new yf(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return V.empty;let o=this.resolve(e),i=this.resolve(n),s=r?0:o.sharedDepth(n),l=o.start(s),u=o.node(s).content.cut(o.pos-l,i.pos-l);return new V(u,o.depth-s,i.depth-s)}replace(e,n,r){return ZN(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return zs.resolveCached(this,e)}resolveNoCache(e){return zs.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}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 e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),p3(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=A.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),l=s&&s.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let c=o;c<i;c++)if(!this.type.allowsMarks(r.child(c).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=me.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!me.sameSet(e,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 e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=A.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,r)}};to.prototype.text=void 0;class Al extends to{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):p3(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Al(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Al(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function p3(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class no{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new GN(e,n);if(r.next==null)return no.empty;let o=h3(r);r.next&&r.err("Unexpected trailing text");let i=tB(eB(o));return nB(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let i=n;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function i(s,l){let c=s.matchFragment(e,r);if(c&&(!n||c.validEnd))return A.from(l.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:d,next:f}=s.next[u];if(!(d.isText||d.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let p=i(f,l.concat(d));if(p)return p}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let l=o;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:c}=i.next[s];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!o.type||c.validEnd)&&(r.push({match:l.contentMatch,type:l,via:o}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
245
- `)}}no.empty=new no(!0);class GN{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.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(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function h3(t){let e=[];do e.push(qN(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function qN(t){let e=[];do e.push(YN(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function YN(t){let e=XN(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=JN(t,e);else break;return e}function m3(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function JN(t,e){let n=m3(t),r=n;return t.eat(",")&&(t.next!="}"?r=m3(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function QN(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let s=n[i];s.groups.indexOf(e)>-1&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function XN(t){if(t.eat("(")){let e=h3(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=QN(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function eB(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,l,c){let u={term:c,to:l};return e[s].push(u),u}function o(s,l){s.forEach(c=>c.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((c,u)=>c.concat(i(u,l)),[]);if(s.type=="seq")for(let c=0;;c++){let u=i(s.exprs[c],l);if(c==s.exprs.length-1)return u;o(u,l=n())}else if(s.type=="star"){let c=n();return r(l,c),o(i(s.expr,c),c),[r(c)]}else if(s.type=="plus"){let c=n();return o(i(s.expr,l),c),o(i(s.expr,c),c),[r(c)]}else{if(s.type=="opt")return[r(l)].concat(i(s.expr,l));if(s.type=="range"){let c=l;for(let u=0;u<s.min;u++){let d=n();o(i(s.expr,c),d),c=d}if(s.max==-1)o(i(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let d=n();r(c,d),o(i(s.expr,c),d),c=d}return[r(c)]}else{if(s.type=="name")return[r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function g3(t,e){return e-t}function y3(t,e){let n=[];return r(e),n.sort(g3);function r(o){let i=t[o];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(o);for(let s=0;s<i.length;s++){let{term:l,to:c}=i[s];!l&&n.indexOf(c)==-1&&r(c)}}}function tB(t){let e=Object.create(null);return n(y3(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:l,to:c})=>{if(!l)return;let u;for(let d=0;d<o.length;d++)o[d][0]==l&&(u=o[d][1]);y3(t,c).forEach(d=>{u||o.push([l,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let i=e[r.join(",")]=new no(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let l=o[s][1].sort(g3);i.next.push({type:o[s][0],next:e[l.join(",")]||n(l)})}return i}}function nB(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],i=!o.validEnd,s=[];for(let l=0;l<o.next.length;l++){let{type:c,next:u}=o.next[l];s.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),r.indexOf(u)==-1&&r.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function b3(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function w3(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let i=t[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function v3(t){let e=Object.create(null);if(t)for(let n in t)e[n]=new rB(t[n]);return e}let C3=class q4{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=v3(r.attrs),this.defaultAttrs=b3(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==no.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:w3(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new to(this,this.computeAttrs(e),A.from(n),me.setFrom(r))}createChecked(e=null,n,r){return n=A.from(n),this.checkContent(n),new to(this,this.computeAttrs(e),n,me.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=A.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let o=this.contentMatch.matchFragment(n),i=o&&o.fillBefore(A.empty,!0);return i?new to(this,e,n.append(i),me.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:me.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,s)=>r[i]=new q4(i,n,s));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class rB{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Il{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=v3(o.attrs),this.excluded=null;let i=b3(this.attrs);this.instance=i?new me(this,i):null}create(e=null){return!e&&this.instance?this.instance:new me(this,w3(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Il(i,o++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}excludes(e){return this.excluded.indexOf(e)>-1}}class oB{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=Ue.from(e.nodes),n.marks=Ue.from(e.marks||{}),this.nodes=C3.compile(this.spec.nodes,this),this.marks=Il.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],s=i.spec.content||"",l=i.spec.marks;i.contentMatch=r[s]||(r[s]=no.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=l=="_"?null:l?S3(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:S3(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(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof C3){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,o)}text(e,n){let r=this.nodes.text;return new Al(r,r.defaultAttrs,e,me.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return to.fromJSON(this,e)}markFromJSON(e){return me.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function S3(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t.marks[o],s=i;if(i)n.push(i);else for(let l in t.marks){let c=t.marks[l];(o=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class Ko{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new T3(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new T3(this,n,!0);return r.addAll(e,n.from,n.to),V.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let i=this.tags[o];if(aB(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let s=this.styles[i],l=s.style;if(!(l.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(s.getAttrs){let c=s.getAttrs(n);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(e){let n=[];function r(o){let i=o.priority==null?50:o.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,o)}for(let o in e.marks){let i=e.marks[o].spec.parseDOM;i&&i.forEach(s=>{r(s=M3(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(s=>{r(s=M3(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Ko(e,Ko.schemaRules(e)))}}const k3={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},iB={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},O3={ol:!0,ul:!0},Nl=1,Bl=2,js=4;function E3(t,e,n){return e!=null?(e?Nl:0)|(e==="full"?Bl:0):t&&t.whitespace=="pre"?Nl|Bl:n&~js}class Rl{constructor(e,n,r,o,i,s,l){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=l,this.content=[],this.activeMarks=me.none,this.stashMarks=[],this.match=s||(l&js?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(A.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Nl)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=A.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(A.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,r=this.pendingMarks;n<r.length;n++){let o=r[n];(this.type?this.type.allowsMarkType(o.type):cB(o.type,e))&&!o.isInSet(this.activeMarks)&&(this.activeMarks=o.addToSet(this.activeMarks),this.pendingMarks=o.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!k3.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class T3{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let o=n.topNode,i,s=E3(null,n.preserveWhitespace,0)|(r?js:0);o?i=new Rl(o.type,o.attrs,me.none,me.none,!0,n.topMatch||o.type.contentMatch,s):r?i=new Rl(null,null,me.none,me.none,!0,null,s):i=new Rl(e.schema.topNodeType,null,me.none,me.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,n){let r=e.getAttribute("style");if(!r)return n();let o=this.readStyles(lB(r));if(!o)return;let[i,s]=o,l=this.top;for(let c=0;c<s.length;c++)this.removePendingMark(s[c],l);for(let c=0;c<i.length;c++)this.addPendingMark(i[c]);n();for(let c=0;c<i.length;c++)this.removePendingMark(i[c],l);for(let c=0;c<s.length;c++)this.addPendingMark(s[c])}addTextNode(e){let n=e.nodeValue,r=this.top;if(r.options&Bl||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(r.options&Nl)r.options&Bl?n=n.replace(/\r\n?/g,`
246
- `):n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],i=e.previousSibling;(!o||i&&i.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n)),this.findInText(e)}else this.findInside(e)}addElement(e,n){let r=e.nodeName.toLowerCase(),o;O3.hasOwnProperty(r)&&this.parser.normalizeLists&&sB(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));if(i?i.ignore:iB.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let s,l=this.top,c=this.needsBlock;if(k3.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),s=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(l),this.needsBlock=c}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
247
- `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=me.none,r=me.none;for(let o=0;o<e.length;o+=2)for(let i=void 0;;){let s=this.parser.matchStyle(e[o],e[o+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(l=>{s.clearMark(l)&&(r=l.addToSet(r))}):n=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(n),s.consuming===!1)i=s;else break}return[n,r]}addElementByRule(e,n,r){let o,i,s;n.node?(i=this.parser.schema.nodes[n.node],i.isLeaf?this.insertNode(i.create(n.attrs))||this.leafFallback(e):o=this.enter(i,n.attrs||null,n.preserveWhitespace)):(s=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(s));let l=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=e;typeof n.contentElement=="string"?c=e.querySelector(n.contentElement):typeof n.contentElement=="function"?c=n.contentElement(e):n.contentElement&&(c=n.contentElement),this.findAround(e,c,!0),this.addAll(c)}o&&this.sync(l)&&this.open--,s&&this.removePendingMark(s,l)}addAll(e,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,s=r==null?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let n,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],s=i.findWrapping(e);if(s&&(!n||n.length>s.length)&&(n=s,r=i,!s.length)||i.solid)break}if(!n)return!1;this.sync(r);for(let o=0;o<n.length;o++)this.enterInner(n[o],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let n=this.textblockFromContext();n&&this.enterInner(n)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let o=0;o<e.marks.length;o++)(!n.type||n.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,n,r){let o=this.findPlace(e.create(n));return o&&this.enterInner(e,n,!0,r),o}enterInner(e,n=null,r=!1,o){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=E3(e,o,i.options);i.options&js&&i.content.length==0&&(s|=js),this.nodes.push(new Rl(e,n,i.activeMarks,i.pendingMarks,r,null,s)),this.open++}closeExtra(e=!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(e));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(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(l,c)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;c>=i;c--)if(s(l-1,c))return!0;return!1}else{let d=c>0||c==0&&o?this.nodes[c].type:r&&c>=i?r.node(c-i).type:null;if(!d||d.name!=u&&d.groups.indexOf(u)==-1)return!1;c--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=uB(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==n)break}}}function sB(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&O3.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function aB(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function lB(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=e.exec(t);)r.push(n[1],n[2].trim());return r}function M3(t){let e={};for(let n in t)e[n]=t[n];return e}function cB(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let i=[],s=l=>{i.push(l);for(let c=0;c<l.edgeCount;c++){let{type:u,next:d}=l.edge(c);if(u==e||i.indexOf(d)<0&&s(d))return!0}};if(s(o.contentMatch))return!0}}function uB(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class dn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Tu(n).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let l=0,c=0;for(;l<i.length&&c<s.marks.length;){let u=s.marks[c];if(!this.marks[u.type.name]){c++;continue}if(!u.eq(i[l][0])||u.type.spec.spanning===!1)break;l++,c++}for(;l<i.length;)o=i.pop()[1];for(;c<s.marks.length;){let u=s.marks[c++],d=this.serializeMark(u,s.isInline,n);d&&(i.push([u,o]),o.appendChild(d.dom),o=d.contentDOM||d.dom)}}o.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=dn.renderSpec(Tu(n),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,o)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&dn.renderSpec(Tu(r),o(e,n))}static renderSpec(e,n,r=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let s,l=r?e.createElementNS(r,o):e.createElement(o),c=n[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?l.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):l.setAttribute(d,c[d])}}for(let d=u;d<n.length;d++){let f=n[d];if(f===0){if(d<n.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:p,contentDOM:h}=dn.renderSpec(e,f,r);if(l.appendChild(p),h){if(s)throw new RangeError("Multiple content holes");s=h}}}return{dom:l,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new dn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=x3(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return x3(e.marks)}}function x3(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Tu(t){return t.document||window.document}const P3=65535,D3=Math.pow(2,16);function dB(t,e){return t+e*D3}function A3(t){return t&P3}function fB(t){return(t-(t&P3))/D3}const I3=1,N3=2,Ll=4,B3=8;class Mu{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&B3)>0}get deletedBefore(){return(this.delInfo&(I3|Ll))>0}get deletedAfter(){return(this.delInfo&(N3|Ll))>0}get deletedAcross(){return(this.delInfo&Ll)>0}}class Tt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Tt.empty)return Tt.empty}recover(e){let n=0,r=A3(e);if(!this.inverted)for(let o=0;o<r;o++)n+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+n+fB(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let o=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?o:0);if(c>e)break;let u=this.ranges[l+i],d=this.ranges[l+s],f=c+u;if(e<=f){let p=u?e==c?-1:e==f?1:n:n,h=c+o+(p<0?0:d);if(r)return h;let m=e==(n<0?c:f)?null:dB(l/3,e-c),y=e==c?N3:e==f?I3:Ll;return(n<0?e!=c:e!=f)&&(y|=B3),new Mu(h,y,m)}o+=d-u}return r?e+o:new Mu(e+o,0,null)}touches(e,n){let r=0,o=A3(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?r:0);if(c>e)break;let u=this.ranges[l+i],d=c+u;if(e<=d&&l==o*3)return!0;r+=this.ranges[l+s]-u}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],l=s-(this.inverted?i:0),c=s+(this.inverted?0:i),u=this.ranges[o+n],d=this.ranges[o+r];e(l,l+u,c,c+d),i+=d-u}}invert(){return new Tt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Tt.empty:new Tt(e<0?[0,-e,0]:[0,0,e])}}Tt.empty=new Tt([]);class Go{constructor(e=[],n,r=0,o=e.length){this.maps=e,this.mirror=n,this.from=r,this.to=o}slice(e=0,n=this.maps.length){return new Go(this.maps,this.mirror,e,n)}copy(){return new Go(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,r=this.maps.length;n<e.maps.length;n++){let o=e.getMirror(n);this.appendMap(e.maps[n],o!=null&&o<n?r+o:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this.maps.length+e.maps.length;n>=0;n--){let o=e.getMirror(n);this.appendMap(e.maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new Go;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let o=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],l=s.mapResult(e,n);if(l.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,e=this.maps[c].recover(l.recover);continue}}o|=l.delInfo,e=l.pos}return r?e:new Mu(e,o,null)}}const xu=Object.create(null);class Xe{getMap(){return Tt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=xu[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in xu)throw new RangeError("Duplicate use of step JSON ID "+e);return xu[e]=n,n.prototype.jsonID=e,n}}class Ne{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new Ne(e,null)}static fail(e){return new Ne(null,e)}static fromReplace(e,n,r,o){try{return Ne.ok(e.replace(n,r,o))}catch(i){if(i instanceof xl)return Ne.fail(i.message);throw i}}}function Pu(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(Pu(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return A.fromArray(r)}class dr extends Xe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new V(Pu(n.content,(s,l)=>!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),n.openStart,n.openEnd);return Ne.fromReplace(e,this.from,this.to,i)}invert(){return new fn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new dr(n.pos,r.pos,this.mark)}merge(e){return e instanceof dr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new dr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new dr(n.from,n.to,e.markFromJSON(n.mark))}}Xe.jsonID("addMark",dr);class fn extends Xe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new V(Pu(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return Ne.fromReplace(e,this.from,this.to,r)}invert(){return new dr(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new fn(n.pos,r.pos,this.mark)}merge(e){return e instanceof fn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new fn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new fn(n.from,n.to,e.markFromJSON(n.mark))}}Xe.jsonID("removeMark",fn);class fr extends Xe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ne.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Ne.fromReplace(e,this.pos,this.pos+1,new V(A.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(r))return new fr(this.pos,n.marks[o]);return new fr(this.pos,this.mark)}}return new qo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new fr(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new fr(n.pos,e.markFromJSON(n.mark))}}Xe.jsonID("addNodeMark",fr);class qo extends Xe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ne.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Ne.fromReplace(e,this.pos,this.pos+1,new V(A.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new fr(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new qo(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new qo(n.pos,e.markFromJSON(n.mark))}}Xe.jsonID("removeNodeMark",qo);class $e extends Xe{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&Du(e,this.from,this.to)?Ne.fail("Structure replace would overwrite content"):Ne.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Tt([this.from,this.to-this.from,this.slice.size])}invert(e){return new $e(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new $e(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof $e)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?V.empty:new V(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new $e(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?V.empty:new V(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new $e(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new $e(n.from,n.to,V.fromJSON(e,n.slice),!!n.structure)}}Xe.jsonID("replace",$e);class Fe extends Xe{constructor(e,n,r,o,i,s,l=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=l}apply(e){if(this.structure&&(Du(e,this.from,this.gapFrom)||Du(e,this.gapTo,this.to)))return Ne.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Ne.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Ne.fromReplace(e,this.from,this.to,r):Ne.fail("Content does not fit in gap")}getMap(){return new Tt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new Fe(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||i>r.pos?null:new Fe(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,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 Fe(n.from,n.to,n.gapFrom,n.gapTo,V.fromJSON(e,n.slice),n.insert,!!n.structure)}}Xe.jsonID("replaceAround",Fe);function Du(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function pB(t,e,n,r){let o=[],i=[],s,l;t.doc.nodesBetween(e,n,(c,u,d)=>{if(!c.isInline)return;let f=c.marks;if(!r.isInSet(f)&&d.type.allowsMarkType(r.type)){let p=Math.max(u,e),h=Math.min(u+c.nodeSize,n),m=r.addToSet(f);for(let y=0;y<f.length;y++)f[y].isInSet(m)||(s&&s.to==p&&s.mark.eq(f[y])?s.to=h:o.push(s=new fn(p,h,f[y])));l&&l.to==p?l.to=h:i.push(l=new dr(p,h,r))}}),o.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function hB(t,e,n,r){let o=[],i=0;t.doc.nodesBetween(e,n,(s,l)=>{if(!s.isInline)return;i++;let c=null;if(r instanceof Il){let u=s.marks,d;for(;d=r.isInSet(u);)(c||(c=[])).push(d),u=d.removeFromSet(u)}else r?r.isInSet(s.marks)&&(c=[r]):c=s.marks;if(c&&c.length){let u=Math.min(l+s.nodeSize,n);for(let d=0;d<c.length;d++){let f=c[d],p;for(let h=0;h<o.length;h++){let m=o[h];m.step==i-1&&f.eq(o[h].style)&&(p=m)}p?(p.to=u,p.step=i):o.push({style:f,from:Math.max(l,e),to:u,step:i})}}}),o.forEach(s=>t.step(new fn(s.from,s.to,s.style)))}function mB(t,e,n,r=n.contentMatch){let o=t.doc.nodeAt(e),i=[],s=e+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),u=s+c.nodeSize,d=r.matchType(c.type);if(!d)i.push(new $e(s,u,V.empty));else{r=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||t.step(new fn(s,u,c.marks[f]));if(c.isText&&!n.spec.code){let f,p=/\r?\n|\r/g,h;for(;f=p.exec(c.text);)h||(h=new V(A.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),i.push(new $e(s+f.index,s+f.index+f[0].length,h))}}s=u}if(!r.validEnd){let l=r.fillBefore(A.empty,!0);t.replace(s,s,new V(l,0,0))}for(let l=i.length-1;l>=0;l--)t.step(i[l])}function gB(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Yo(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),i=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(i,s,n))return r;if(r==0||o.type.spec.isolating||!gB(o,i,s))break}return null}function yB(t,e,n){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),l=o.after(i+1),c=s,u=l,d=A.empty,f=0;for(let m=i,y=!1;m>n;m--)y||r.index(m)>0?(y=!0,d=A.from(r.node(m).copy(d)),f++):c--;let p=A.empty,h=0;for(let m=i,y=!1;m>n;m--)y||o.after(m+1)<o.end(m)?(y=!0,p=A.from(o.node(m).copy(p)),h++):u++;t.step(new Fe(c,u,s,l,new V(d.append(p),f,h),d.size-f,!0))}function Au(t,e,n=null,r=t){let o=bB(t,e),i=o&&wB(r,e);return i?o.map(R3).concat({type:e,attrs:n}).concat(i.map(R3)):null}function R3(t){return{type:t,attrs:null}}function bB(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return n.canReplaceWith(r,o,s)?i:null}function wB(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let c=(s.length?s[s.length-1]:e).contentMatch;for(let u=r;c&&u<o;u++)c=c.matchType(n.child(u).type);return!c||!c.validEnd?null:s}function vB(t,e,n){let r=A.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let l=n[s].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=A.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new Fe(o,i,o,i,new V(r,0,0),n.length,!0))}function CB(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,l)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&SB(t.doc,t.mapping.slice(i).map(l),r)){t.clearIncompatible(t.mapping.slice(i).map(l,1),r);let c=t.mapping.slice(i),u=c.map(l,1),d=c.map(l+s.nodeSize,1);return t.step(new Fe(u,d,u+1,d-1,new V(A.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function SB(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function kB(t,e,n,r,o){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,o||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Fe(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new V(A.from(s),0,0),1,!0))}function Jo(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let u=o.depth-1,d=n-2;u>i;u--,d--){let f=o.node(u),p=o.index(u);if(f.type.spec.isolating)return!1;let h=f.content.cutByIndex(p,f.childCount),m=r&&r[d+1];m&&(h=h.replaceChild(0,m.type.create(m.attrs)));let y=r&&r[d]||f;if(!f.canReplace(p+1,f.childCount)||!y.type.validContent(h))return!1}let l=o.indexAfter(i),c=r&&r[0];return o.node(i).canReplaceWith(l,l,c?c.type:o.node(i+1).type)}function OB(t,e,n=1,r){let o=t.doc.resolve(e),i=A.empty,s=A.empty;for(let l=o.depth,c=o.depth-n,u=n-1;l>c;l--,u--){i=A.from(o.node(l).copy(i));let d=r&&r[u];s=A.from(d?d.type.create(d.attrs,s):o.node(l).copy(s))}t.step(new $e(e,e,new V(i.append(s),n,n),!0))}function pr(t,e){let n=t.resolve(e),r=n.index();return L3(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function L3(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function Vl(t,e,n=-1){let r=t.resolve(e);for(let o=r.depth;;o--){let i,s,l=r.index(o);if(o==r.depth?(i=r.nodeBefore,s=r.nodeAfter):n>0?(i=r.node(o+1),l++,s=r.node(o).maybeChild(l)):(i=r.node(o).maybeChild(l-1),s=r.node(o+1)),i&&!i.isTextblock&&L3(i,s)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=n<0?r.before(o):r.after(o)}}function EB(t,e,n){let r=new $e(e-n,e+n,V.empty,!0);t.step(r)}function TB(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,n))return r.after(o+1);if(i<r.node(o).childCount)return null}return null}function V3(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let i=0;i<n.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=r.depth;s>=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,c=r.index(s)+(l>0?1:0),u=r.node(s),d=!1;if(i==1)d=u.canReplace(c,c,o);else{let f=u.contentMatchAt(c).findWrapping(o.firstChild.type);d=f&&u.canReplaceWith(c,c,f[0])}if(d)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function $l(t,e,n=e,r=V.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return $3(o,i,r)?new $e(e,n,r):new MB(o,i,r).fit()}function $3(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class MB{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=A.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=A.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,l=o.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let c=new V(i,s,l);return e>-1?new Fe(r.pos,e,this.$to.pos,this.$to.end(),c,n):c.size||r.pos!=this.$to.pos?new $e(r.pos,o.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let i=n.firstChild;if(n.childCount>1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}n=i.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=Iu(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let s=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:c,match:u}=this.frontier[l],d,f=null;if(n==1&&(s?u.matchType(s.type)||(f=u.fillBefore(A.from(s),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:l,parent:i,inject:f};if(n==2&&s&&(d=u.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:l,parent:i,wrap:d};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=Iu(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new V(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=Iu(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new V(Zs(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new V(Zs(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:o,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let y=0;y<i.length;y++)this.openFrontierNode(i[y]);let s=this.unplaced,l=r?r.content:s.content,c=s.openStart-e,u=0,d=[],{match:f,type:p}=this.frontier[n];if(o){for(let y=0;y<o.childCount;y++)d.push(o.child(y));f=f.matchFragment(o)}let h=l.size+e-(s.content.size-s.openEnd);for(;u<l.childCount;){let y=l.child(u),g=f.matchType(y.type);if(!g)break;u++,(u>1||c==0||y.content.size)&&(f=g,d.push(F3(y.mark(p.allowedMarks(y.marks)),u==1?c:0,u==l.childCount?h:-1)))}let m=u==l.childCount;m||(h=-1),this.placed=Ws(this.placed,n,A.from(d)),this.frontier[n].match=f,m&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,g=l;y<h;y++){let b=g.lastChild;this.frontier.push({type:b.type,match:b.contentMatchAt(b.childCount)}),g=b.content}this.unplaced=m?e==0?V.empty:new V(Zs(s.content,e-1,1),e-1,h<0?s.openEnd:e-1):new V(Zs(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Nu(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,o=this.$to.after(r);for(;r>1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:o}=this.frontier[n],i=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=Nu(e,n,o,r,i);if(s){for(let l=n-1;l>=0;l--){let{match:c,type:u}=this.frontier[l],d=Nu(e,l,u,c,!0);if(!d||d.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Ws(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let o=e.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,n=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=Ws(this.placed,this.depth,A.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(A.empty,!0);n.childCount&&(this.placed=Ws(this.placed,this.frontier.length,n))}}function Zs(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Zs(t.firstChild.content,e-1,n)))}function Ws(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Ws(t.lastChild.content,e-1,n)))}function Iu(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function F3(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,F3(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(A.empty,!0)))),t.copy(r)}function Nu(t,e,n,r,o){let i=t.node(e),s=o?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,!0,s);return l&&!xB(n,i.content,s)?l:null}function xB(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function PB(t){return t.spec.defining||t.spec.definingForContent}function DB(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),i=t.doc.resolve(n);if($3(o,i,r))return t.step(new $e(e,n,r));let s=_3(o,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let l=-(o.depth+1);s.unshift(l);for(let p=o.depth,h=o.pos-1;p>0;p--,h--){let m=o.node(p).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;s.indexOf(p)>-1?l=p:o.before(p)==h&&s.splice(1,0,-p)}let c=s.indexOf(l),u=[],d=r.openStart;for(let p=r.content,h=0;;h++){let m=p.firstChild;if(u.push(m),h==r.openStart)break;p=m.content}for(let p=d-1;p>=0;p--){let h=u[p],m=PB(h.type);if(m&&!h.sameMarkup(o.node(Math.abs(l)-1)))d=p;else if(m||!h.type.isTextblock)break}for(let p=r.openStart;p>=0;p--){let h=(p+d+1)%(r.openStart+1),m=u[h];if(m)for(let y=0;y<s.length;y++){let g=s[(y+c)%s.length],b=!0;g<0&&(b=!1,g=-g);let w=o.node(g-1),C=o.index(g-1);if(w.canReplaceWith(C,C,m.type,m.marks))return t.replace(o.before(g),b?i.after(g):n,new V(H3(r.content,0,r.openStart,h),h,r.openEnd))}}let f=t.steps.length;for(let p=s.length-1;p>=0&&(t.replace(e,n,r),!(t.steps.length>f));p--){let h=s[p];h<0||(e=o.before(h),n=i.after(h))}}function H3(t,e,n,r,o){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(H3(i.content,e+1,n,r,i)))}if(e>r){let i=o.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(A.empty,!0))}return t}function AB(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=TB(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new V(A.from(r),0,0))}function IB(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=_3(r,o);for(let s=0;s<i.length;s++){let l=i[s],c=s==i.length-1;if(c&&l==0||r.node(l).type.contentMatch.validEnd)return t.delete(r.start(l),o.end(l));if(l>0&&(c||r.node(l-1).canReplace(r.index(l-1),o.indexAfter(l-1))))return t.delete(r.before(l),o.after(l))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&o.end(s)-n!=o.depth-s)return t.delete(r.before(s),n);t.delete(e,n)}function _3(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let o=r;o>=0;o--){let i=t.start(o);if(i<t.pos-(t.depth-o)||e.end(o)>e.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class Qo extends Xe{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ne.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return Ne.fromReplace(e,this.pos,this.pos+1,new V(A.from(o),0,n.isLeaf?0:1))}getMap(){return Tt.empty}invert(e){return new Qo(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Qo(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Qo(n.pos,n.attr,n.value)}}Xe.jsonID("attr",Qo);class Us extends Xe{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let o in e.attrs)n[o]=e.attrs[o];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Ne.ok(r)}getMap(){return Tt.empty}invert(e){return new Us(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Us(n.attr,n.value)}}Xe.jsonID("docAttr",Us);let Xo=class extends Error{};Xo=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},Xo.prototype=Object.create(Error.prototype),Xo.prototype.constructor=Xo,Xo.prototype.name="TransformError";class z3{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Go}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Xo(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=V.empty){let o=$l(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new V(A.from(r),0,0))}delete(e,n){return this.replace(e,n,V.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return DB(this,e,n,r),this}replaceRangeWith(e,n,r){return AB(this,e,n,r),this}deleteRange(e,n){return IB(this,e,n),this}lift(e,n){return yB(this,e,n),this}join(e,n=1){return EB(this,e,n),this}wrap(e,n){return vB(this,e,n),this}setBlockType(e,n=e,r,o=null){return CB(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return kB(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new Qo(e,n,r)),this}setDocAttribute(e,n){return this.step(new Us(e,n)),this}addNodeMark(e,n){return this.step(new fr(e,n)),this}removeNodeMark(e,n){if(!(n instanceof me)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new qo(e,n)),this}split(e,n=1,r){return OB(this,e,n,r),this}addMark(e,n,r){return pB(this,e,n,r),this}removeMark(e,n,r){return hB(this,e,n,r),this}clearIncompatible(e,n,r){return mB(this,e,n,r),this}}const Bu=Object.create(null);class J{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new NB(e.min(n),e.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 e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=V.empty){let r=n.content.lastChild,o=null;for(let l=0;l<n.openEnd;l++)o=r,r=r.lastChild;let i=e.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:c,$to:u}=s[l],d=e.mapping.slice(i);e.replaceRange(d.map(c.pos),d.map(u.pos),l?V.empty:n),l==0&&W3(e,i,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,o=this.ranges;for(let i=0;i<o.length;i++){let{$from:s,$to:l}=o[i],c=e.mapping.slice(r),u=c.map(s.pos),d=c.map(l.pos);i?e.deleteRange(u,d):(e.replaceRangeWith(u,d,n),W3(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new G(e):ei(e.node(0),e.parent,e.pos,e.index(),n,r);if(o)return o;for(let i=e.depth-1;i>=0;i--){let s=n<0?ei(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):ei(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Xt(e.node(0))}static atStart(e){return ei(e,e,0,0,1)||new Xt(e)}static atEnd(e){return ei(e,e,e.content.size,e.childCount,-1)||new Xt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Bu[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Bu)throw new RangeError("Duplicate use of selection JSON ID "+e);return Bu[e]=n,n.prototype.jsonID=e,n}getBookmark(){return G.between(this.$anchor,this.$head).getBookmark()}}J.prototype.visible=!0;class NB{constructor(e,n){this.$from=e,this.$to=n}}let j3=!1;function Z3(t){!j3&&!t.parent.inlineContent&&(j3=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class G extends J{constructor(e,n=e){Z3(e),Z3(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return J.near(r);let o=e.resolve(n.map(this.anchor));return new G(o.parent.inlineContent?o:r,r)}replace(e,n=V.empty){if(super.replace(e,n),n==V.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof G&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Fl(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new G(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let o=e.resolve(n);return new this(o,r==n?o:e.resolve(r))}static between(e,n,r){let o=e.pos-n.pos;if((!r||o)&&(r=o>=0?1:-1),!n.parent.inlineContent){let i=J.findFrom(n,r,!0)||J.findFrom(n,-r,!0);if(i)n=i.$head;else return J.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(J.findFrom(e,-r,!0)||J.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new G(e,n)}}J.jsonID("text",G);class Fl{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Fl(e.map(this.anchor),e.map(this.head))}resolve(e){return G.between(e.resolve(this.anchor),e.resolve(this.head))}}class Z extends J{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:o}=n.mapResult(this.anchor),i=e.resolve(o);return r?J.near(i):new Z(i)}content(){return new V(A.from(this.node),0,0)}eq(e){return e instanceof Z&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Ru(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Z(e.resolve(n.anchor))}static create(e,n){return new Z(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Z.prototype.visible=!1,J.jsonID("node",Z);class Ru{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new Fl(r,r):new Ru(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&Z.isSelectable(r)?new Z(n):J.near(n)}}class Xt extends J{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=V.empty){if(n==V.empty){e.delete(0,e.doc.content.size);let r=J.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Xt(e)}map(e){return new Xt(e)}eq(e){return e instanceof Xt}getBookmark(){return BB}}J.jsonID("all",Xt);const BB={map(){return this},resolve(t){return new Xt(t)}};function ei(t,e,n,r,o,i=!1){if(e.inlineContent)return G.create(t,n);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let l=e.child(s);if(l.isAtom){if(!i&&Z.isSelectable(l))return Z.create(t,n-(o<0?l.nodeSize:0))}else{let c=ei(t,l,n+o,o<0?l.childCount:0,o,i);if(c)return c}n+=l.nodeSize*o}return null}function W3(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof $e||o instanceof Fe))return;let i=t.mapping.maps[r],s;i.forEach((l,c,u,d)=>{s==null&&(s=d)}),t.setSelection(J.near(t.doc.resolve(s),n))}const U3=1,Hl=2,K3=4;class RB extends z3{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.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(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|U3)&~Hl,this.storedMarks=null,this}get selectionSet(){return(this.updated&U3)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Hl,this}ensureMarks(e){return me.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Hl)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Hl,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||me.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,i)),this.selection.empty||this.setSelection(J.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=K3,this}get scrolledIntoView(){return(this.updated&K3)>0}}function G3(t,e){return!e||!t?t:t.bind(e)}class Ks{constructor(e,n,r){this.name=e,this.init=G3(n.init,r),this.apply=G3(n.apply,r)}}const LB=[new Ks("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Ks("selection",{init(t,e){return t.selection||J.atStart(e.doc)},apply(t){return t.selection}}),new Ks("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Ks("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Lu{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=LB.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Ks(r.key,r.spec.state,r))})}}class ti{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let o=this.config.plugins[r];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),o=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 c=o?o[s].n:0,u=o?o[s].state:this,d=c<n.length&&l.spec.appendTransaction.call(l,c?n.slice(c):n,u,r);if(d&&r.filterTransaction(d,s)){if(d.setMeta("appendedTransaction",e),!o){o=[];for(let f=0;f<this.config.plugins.length;f++)o.push(f<s?{state:r,n:n.length}:{state:this,n:0})}n.push(d),r=r.applyInner(d),i=!0}o&&(o[s]={state:r,n:n.length})}}if(!i)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new ti(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let i=r[o];n[i.name]=i.apply(e,this[i.name],this,n)}return n}get tr(){return new RB(this)}static create(e){let n=new Lu(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new ti(n);for(let o=0;o<n.fields.length;o++)r[n.fields[o].name]=n.fields[o].init(e,r);return r}reconfigure(e){let n=new Lu(this.schema,e.plugins),r=n.fields,o=new ti(n);for(let i=0;i<r.length;i++){let s=r[i].name;o[s]=this.hasOwnProperty(s)?this[s]:r[i].init(e,o)}return o}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],i=o.spec.state;i&&i.toJSON&&(n[r]=i.toJSON.call(o,this[o.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new Lu(e.schema,e.plugins),i=new ti(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=to.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=J.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let c=r[l],u=c.spec.state;if(c.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){i[s.name]=u.fromJSON.call(c,e,n[l],i);return}}i[s.name]=s.init(e,i)}}),i}}function q3(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=q3(o,e,{})),n[r]=o}return n}class Ke{constructor(e){this.spec=e,this.props={},e.props&&q3(e.props,this,this.props),this.key=e.key?e.key.key:Y3("plugin")}getState(e){return e[this.key]}}const Vu=Object.create(null);function Y3(t){return t in Vu?t+"$"+ ++Vu[t]:(Vu[t]=0,t+"$")}class Mt{constructor(e="key"){this.key=Y3(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const ct=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Gs=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let J3=null;const Ln=function(t,e,n){let r=J3||(J3=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},ro=function(t,e,n,r){return n&&(Q3(t,e,n,r,-1)||Q3(t,e,n,r,1))},VB=/^(img|br|input|textarea|hr)$/i;function Q3(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:pn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||$u(t)||VB.test(t.nodeName)||t.contentEditable=="false")return!1;e=ct(t)+(o<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(o<0?-1:0)],t.contentEditable=="false")return!1;e=o<0?pn(t):0}else return!1}}function pn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function $B(t,e,n){for(let r=e==0,o=e==pn(t);r||o;){if(t==n)return!0;let i=ct(t);if(t=t.parentNode,!t)return!1;r=r&&i==0,o=o&&i==pn(t)}}function $u(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const _l=function(t){return t.focusNode&&ro(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function oo(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function FB(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function HB(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const hn=typeof navigator<"u"?navigator:null,X3=typeof document<"u"?document:null,hr=hn&&hn.userAgent||"",Fu=/Edge\/(\d+)/.exec(hr),ey=/MSIE \d/.exec(hr),Hu=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(hr),wt=!!(ey||Hu||Fu),mr=ey?document.documentMode:Hu?+Hu[1]:Fu?+Fu[1]:0,en=!wt&&/gecko\/(\d+)/i.test(hr);en&&+(/Firefox\/(\d+)/.exec(hr)||[0,0])[1];const _u=!wt&&/Chrome\/(\d+)/.exec(hr),et=!!_u,_B=_u?+_u[1]:0,ut=!wt&&!!hn&&/Apple Computer/.test(hn.vendor),ni=ut&&(/Mobile\/\w+/.test(hr)||!!hn&&hn.maxTouchPoints>2),Ht=ni||(hn?/Mac/.test(hn.platform):!1),zB=hn?/Win/.test(hn.platform):!1,tn=/Android \d/.test(hr),qs=!!X3&&"webkitFontSmoothing"in X3.documentElement.style,jB=qs?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function ZB(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Vn(t,e){return typeof t=="number"?t:t[e]}function WB(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function ty(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;s=Gs(s)){if(s.nodeType!=1)continue;let l=s,c=l==i.body,u=c?ZB(i):WB(l),d=0,f=0;if(e.top<u.top+Vn(r,"top")?f=-(u.top-e.top+Vn(o,"top")):e.bottom>u.bottom-Vn(r,"bottom")&&(f=e.bottom-e.top>u.bottom-u.top?e.top+Vn(o,"top")-u.top:e.bottom-u.bottom+Vn(o,"bottom")),e.left<u.left+Vn(r,"left")?d=-(u.left-e.left+Vn(o,"left")):e.right>u.right-Vn(r,"right")&&(d=e.right-u.right+Vn(o,"right")),d||f)if(c)i.defaultView.scrollBy(d,f);else{let p=l.scrollLeft,h=l.scrollTop;f&&(l.scrollTop+=f),d&&(l.scrollLeft+=d);let m=l.scrollLeft-p,y=l.scrollTop-h;e={left:e.left-m,top:e.top-y,right:e.right-m,bottom:e.bottom-y}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function UB(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,o;for(let i=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let l=t.root.elementFromPoint(i,s);if(!l||l==t.dom||!t.dom.contains(l))continue;let c=l.getBoundingClientRect();if(c.top>=n-20){r=l,o=c.top;break}}return{refDOM:r,refTop:o,stack:ny(t.dom)}}function ny(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Gs(r));return e}function KB({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;ry(n,r==0?0:r-e)}function ry(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:o,left:i}=t[n];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let ri=null;function GB(t){if(t.setActive)return t.setActive();if(ri)return t.focus(ri);let e=ny(t);t.focus(ri==null?{get preventScroll(){return ri={preventScroll:!0},!0}}:void 0),ri||(ri=!1,ry(e,0))}function oy(t,e){let n,r=2e8,o,i=0,s=e.top,l=e.top,c,u;for(let d=t.firstChild,f=0;d;d=d.nextSibling,f++){let p;if(d.nodeType==1)p=d.getClientRects();else if(d.nodeType==3)p=Ln(d).getClientRects();else continue;for(let h=0;h<p.length;h++){let m=p[h];if(m.top<=s&&m.bottom>=l){s=Math.max(m.bottom,s),l=Math.min(m.top,l);let y=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(y<r){n=d,r=y,o=y&&n.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,d.nodeType==1&&y&&(i=f+(e.left>=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!c&&m.left<=e.left&&m.right>=e.left&&(c=d,u={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!n&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(i=f+1)}}return!n&&c&&(n=c,o=u,r=0),n&&n.nodeType==3?qB(n,o):!n||r&&n.nodeType==1?{node:t,offset:i}:oy(n,o)}function qB(t,e){let n=t.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let i=gr(r,1);if(i.top!=i.bottom&&zu(e,i))return{node:t,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function zu(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function YB(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function JB(t,e,n){let{node:r,offset:o}=oy(e,n),i=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();i=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,o,i)}function QB(t,e,n,r){let o=-1;for(let i=e,s=!1;i!=t.dom;){let l=t.docView.nearestDesc(i,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!s||!l.contentDOM)){let c=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!s&&(s=!0,c.left>r.left||c.top>r.top?o=l.posBefore:(c.right<r.left||c.bottom<r.top)&&(o=l.posAfter)),!l.contentDOM&&o<0&&!l.node.isText)return(l.node.isBlock?r.top<(c.top+c.bottom)/2:r.left<(c.left+c.right)/2)?l.posBefore:l.posAfter}i=l.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}function iy(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let s=t.childNodes[i];if(s.nodeType==1){let l=s.getClientRects();for(let c=0;c<l.length;c++){let u=l[c];if(zu(e,u))return iy(s,e,u)}}if((i=(i+1)%r)==o)break}return t}function XB(t,e){let n=t.dom.ownerDocument,r,o=0,i=HB(n,e.left,e.top);i&&({node:r,offset:o}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),l;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let u=t.dom.getBoundingClientRect();if(!zu(e,u)||(s=iy(t.dom,e,u),!s))return null}if(ut)for(let u=s;r&&u;u=Gs(u))u.draggable&&(r=void 0);if(s=YB(s,e),r){if(en&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let d=r.childNodes[o],f;d.nodeName=="IMG"&&(f=d.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&o++}let u;qs&&o&&r.nodeType==1&&(u=r.childNodes[o-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&o--,r==t.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?l=t.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(l=QB(t,r,o,e))}l==null&&(l=JB(t,s,e));let c=t.docView.nearestDesc(s,!0);return{pos:l,inside:c?c.posAtStart-c.border:-1}}function sy(t){return t.top<t.bottom||t.left<t.right}function gr(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(sy(r))return r}return Array.prototype.find.call(n,sy)||t.getBoundingClientRect()}const eR=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function ay(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=qs||en;if(r.nodeType==3)if(s&&(eR.test(r.nodeValue)||(n<0?!o:o==r.nodeValue.length))){let c=gr(Ln(r,o,o),n);if(en&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let u=gr(Ln(r,o-1,o-1),-1);if(u.top==c.top){let d=gr(Ln(r,o,o+1),-1);if(d.top!=c.top)return Ys(d,d.left<u.left)}}return c}else{let c=o,u=o,d=n<0?1:-1;return n<0&&!o?(u++,d=-1):n>=0&&o==r.nodeValue.length?(c--,d=1):n<0?c--:u++,Ys(gr(Ln(r,c,u),d),d<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==pn(r))){let c=r.childNodes[o-1];if(c.nodeType==1)return ju(c.getBoundingClientRect(),!1)}if(i==null&&o<pn(r)){let c=r.childNodes[o];if(c.nodeType==1)return ju(c.getBoundingClientRect(),!0)}return ju(r.getBoundingClientRect(),n>=0)}if(i==null&&o&&(n<0||o==pn(r))){let c=r.childNodes[o-1],u=c.nodeType==3?Ln(c,pn(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return Ys(gr(u,1),!1)}if(i==null&&o<pn(r)){let c=r.childNodes[o];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let u=c?c.nodeType==3?Ln(c,0,s?0:1):c.nodeType==1?c:null:null;if(u)return Ys(gr(u,-1),!0)}return Ys(gr(r.nodeType==3?Ln(r):r,-n),n>=0)}function Ys(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function ju(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function ly(t,e,n){let r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}function tR(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return ly(t,e,()=>{let{node:i}=t.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let l=t.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let s=ay(t,o.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let c;if(l.nodeType==1)c=l.getClientRects();else if(l.nodeType==3)c=Ln(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;u<c.length;u++){let d=c[u];if(d.bottom>d.top+1&&(n=="up"?s.top-d.top>(d.bottom-s.top)*2:d.bottom-s.bottom>(s.bottom-d.top)*2))return!1}}return!0})}const nR=/[\u0590-\u08ac]/;function rR(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,l=t.domSelection();return!nR.test(r.parent.textContent)||!l.modify?n=="left"||n=="backward"?i:s:ly(t,e,()=>{let{focusNode:c,focusOffset:u,anchorNode:d,anchorOffset:f}=t.domSelectionRange(),p=l.caretBidiLevel;l.modify("move",n,"character");let h=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:m,focusOffset:y}=t.domSelectionRange(),g=m&&!h.contains(m.nodeType==1?m:m.parentNode)||c==m&&u==y;try{l.collapse(d,f),c&&(c!=d||u!=f)&&l.extend&&l.extend(c,u)}catch{}return p!=null&&(l.caretBidiLevel=p),g})}let cy=null,uy=null,dy=!1;function oR(t,e,n){return cy==e&&uy==n?dy:(cy=e,uy=n,dy=n=="up"||n=="down"?tR(t,e,n):rR(t,e,n))}const _t=0,fy=1,io=2,mn=3;class Js{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=_t,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let o=this.children[n];if(o==e)return r;r+=o.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(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let i,s;if(e==this.contentDOM)i=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.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(e==this.contentDOM)i=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=n>ct(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),s;if(i&&(!n||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],i=r+o.size;if(r==e&&i!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<i)return o.descAt(e-r-o.border);r=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let i=0;r<this.children.length;r++){let s=this.children[r],l=i+s.size;if(l>e||s instanceof my){o=e-i;break}i=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof py&&i.side>=0;r--);if(n<=0){let i,s=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?ct(i.dom)+1:0}}else{let i,s=!0;for(;i=r<this.children.length?this.children[r]:null,!(!i||i.dom.parentNode==this.contentDOM);r++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?ct(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,i=-1;for(let s=r,l=0;;l++){let c=this.children[l],u=s+c.size;if(o==-1&&e<=u){let d=s+c.border;if(e>=d&&n<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,n,d);e=s;for(let f=l;f>0;f--){let p=this.children[f-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){o=ct(p.dom)+1;break}e-=p.size}o==-1&&(o=0)}if(o>-1&&(u>n||l==this.children.length-1)){n=u;for(let d=l+1;d<this.children.length;d++){let f=this.children[d];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=ct(f.dom);break}n+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}return{node:this.contentDOM,from:e,to:n,fromOffset:o,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,o=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let p=0,h=0;p<this.children.length;p++){let m=this.children[p],y=h+m.size;if(i>h&&s<y)return m.setSelection(e-h-m.border,n-h-m.border,r,o);h=y}let l=this.domFromPos(e,e?-1:1),c=n==e?l:this.domFromPos(n,n?-1:1),u=r.getSelection(),d=!1;if((en||ut)&&e==n){let{node:p,offset:h}=l;if(p.nodeType==3){if(d=!!(h&&p.nodeValue[h-1]==`
248
- `),d&&h==p.nodeValue.length)for(let m=p,y;m;m=m.parentNode){if(y=m.nextSibling){y.nodeName=="BR"&&(l=c={node:y.parentNode,offset:ct(y)+1});break}let g=m.pmViewDesc;if(g&&g.node&&g.node.isBlock)break}}else{let m=p.childNodes[h-1];d=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(en&&u.focusNode&&u.focusNode!=c.node&&u.focusNode.nodeType==1){let p=u.focusNode.childNodes[u.focusOffset];p&&p.contentEditable=="false"&&(o=!0)}if(!(o||d&&ut)&&ro(l.node,l.offset,u.anchorNode,u.anchorOffset)&&ro(c.node,c.offset,u.focusNode,u.focusOffset))return;let f=!1;if((u.extend||e==n)&&!d){u.collapse(l.node,l.offset);try{e!=n&&u.extend(c.node,c.offset),f=!0}catch{}}if(!f){if(e>n){let h=l;l=c,c=h}let p=document.createRange();p.setEnd(c.node,c.offset),p.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(p)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o<this.children.length;o++){let i=this.children[o],s=r+i.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let l=r+i.border,c=s-i.border;if(e>=l&&n<=c){this.dirty=e==r||n==s?io:fy,e==l&&n==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=mn:i.markDirty(e-l,n-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?io:mn}r=s}this.dirty=io}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?io:fy;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class py extends Js{constructor(e,n,r,o){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return o;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(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==_t&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.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 iR extends Js{constructor(e,n,r,o){super(e,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class so extends Js{constructor(e,n,r,o){super(e,[],r,o),this.mark=n}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=dn.renderSpec(document,n.type.spec.toDOM(n,r))),new so(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&mn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=mn&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=_t){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=_t}}slice(e,n,r){let o=so.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=Uu(i,n,s,r)),e>0&&(i=Uu(i,0,e,r));for(let l=0;l<i.length;l++)i[l].parent=o;return o.children=i,o}}class yr extends Js{constructor(e,n,r,o,i,s,l,c,u){super(e,[],i,s),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=l}static create(e,n,r,o,i,s){let l=i.nodeViews[n.type.name],c,u=l&&l(n,i,()=>{if(!c)return s;if(c.parent)return c.parent.posBeforeChild(c)},r,o),d=u&&u.dom,f=u&&u.contentDOM;if(n.isText){if(!d)d=document.createTextNode(n.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:f}=dn.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),n.type.spec.draggable&&(d.draggable=!0));let p=d;return d=by(d,r,n),u?c=new sR(e,n,r,o,d,f||null,p,u,i,s+1):n.isText?new zl(e,n,r,o,d,p,i):new yr(e,n,r,o,d,f||null,p,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>A.empty)}return e}matchesNode(e,n,r){return this.dirty==_t&&e.eq(this.node)&&Wu(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,o=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,l=i&&i.pos<0,c=new lR(this,s&&s.node,e);dR(this.node,this.innerDeco,(u,d,f)=>{u.spec.marks?c.syncToMarks(u.spec.marks,r,e):u.type.side>=0&&!f&&c.syncToMarks(d==this.node.childCount?me.none:this.node.child(d).marks,r,e),c.placeWidget(u,e,o)},(u,d,f,p)=>{c.syncToMarks(u.marks,r,e);let h;c.findNodeMatch(u,d,f,p)||l&&e.state.selection.from>o&&e.state.selection.to<o+u.nodeSize&&(h=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,d,f,h,e)||c.updateNextNode(u,d,f,e,p,o)||c.addNode(u,d,f,e,o),o+=u.nodeSize}),c.syncToMarks([],r,e),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==io)&&(s&&this.protectLocalComposition(e,s),gy(this.contentDOM,this.children,e),ni&&fR(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof G)||r<n||o>n+this.node.content.size)return null;let i=e.domSelectionRange(),s=pR(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let l=s.nodeValue,c=hR(this.node.content,l,r-n,o-n);return c<0?null:{node:s,pos:c,text:l}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){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 iR(this,i,n,o);e.input.compositionNodes.push(s),this.children=Uu(this.children,r,r+o.length,e,s)}update(e,n,r,o){return this.dirty==mn||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,o),!0)}updateInner(e,n,r,o){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=_t}updateOuterDeco(e){if(Wu(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=yy(this.dom,this.nodeDOM,Zu(this.outerDeco,this.node,n),Zu(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}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 hy(t,e,n,r,o){by(r,e,t);let i=new yr(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class zl extends yr{constructor(e,n,r,o,i,s,l){super(e,n,r,o,i,null,s,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,o){return this.dirty==mn||this.dirty!=_t&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=_t||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=_t,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let o=this.node.cut(e,n),i=document.createTextNode(o.text);return new zl(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=mn)}get domAtom(){return!1}}class my extends Js{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==_t&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class sR extends yr{constructor(e,n,r,o,i,s,l,c,u,d){super(e,n,r,o,i,s,l,u,d),this.spec=c}update(e,n,r,o){if(this.dirty==mn)return!1;if(this.spec.update){let i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function gy(t,e,n){let r=t.firstChild,o=!1;for(let i=0;i<e.length;i++){let s=e[i],l=s.dom;if(l.parentNode==t){for(;l!=r;)r=wy(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(l,r);if(s instanceof so){let c=r?r.previousSibling:t.lastChild;gy(s.contentDOM,s.children,n),r=c?c.nextSibling:t.firstChild}}for(;r;)r=wy(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const Qs=function(t){t&&(this.nodeName=t)};Qs.prototype=Object.create(null);const ao=[new Qs];function Zu(t,e,n){if(t.length==0)return ao;let r=n?ao[0]:new Qs,o=[r];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&o.push(r=new Qs(s.nodeName));for(let l in s){let c=s[l];c!=null&&(n&&o.length==1&&o.push(r=new Qs(e.isInline?"span":"div")),l=="class"?r.class=(r.class?r.class+" ":"")+c:l=="style"?r.style=(r.style?r.style+";":"")+c:l!="nodeName"&&(r[l]=c))}}}return o}function yy(t,e,n,r){if(n==ao&&r==ao)return e;let o=e;for(let i=0;i<r.length;i++){let s=r[i],l=n[i];if(i){let c;l&&l.nodeName==s.nodeName&&o!=t&&(c=o.parentNode)&&c.nodeName.toLowerCase()==s.nodeName||(c=document.createElement(s.nodeName),c.pmIsDeco=!0,c.appendChild(o),l=ao[0]),o=c}aR(o,l||ao[0],s)}return o}function aR(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&t.classList.remove(r[i]);for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&t.classList.add(o[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=r.exec(e.style);)t.style.removeProperty(o[1])}n.style&&(t.style.cssText+=n.style)}}function by(t,e,n){return yy(t,t,ao,Zu(e,n,t.nodeType!=1))}function Wu(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function wy(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class lR{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=cR(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r){let o=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;o<s&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=_t,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let c=this.index;c<Math.min(this.index+3,this.top.children.length);c++){let u=this.top.children[c];if(u.matchesMark(e[i])&&!this.isLocked(u.dom)){l=c;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let c=so.create(this.top,e[i],n,r);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))i=this.top.children.indexOf(s,this.index);else for(let l=this.index,c=Math.min(this.top.children.length,l+5);l<c;l++){let u=this.top.children[l];if(u.matchesNode(e,n,r)&&!this.preMatch.matched.has(u)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,r,o,i){let s=this.top.children[o];return s.dirty==mn&&s.dom==s.contentDOM&&(s.dirty=io),s.update(e,n,r,i)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==r)return o}return-1}e=n}}updateNextNode(e,n,r,o,i,s){for(let l=this.index;l<this.top.children.length;l++){let c=this.top.children[l];if(c instanceof yr){let u=this.preMatch.matched.get(c);if(u!=null&&u!=i)return!1;let d=c.dom,f,p=this.isLocked(d)&&!(e.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==e.text&&c.dirty!=mn&&Wu(n,c.outerDeco));if(!p&&c.update(e,n,r,o))return this.destroyBetween(this.index,l),c.dom!=d&&(this.changed=!0),this.index++,!0;if(!p&&(f=this.recreateWrapper(c,e,n,r,o,s)))return this.top.children[this.index]=f,f.contentDOM&&(f.dirty=io,f.updateChildren(o,s+1),f.dirty=_t),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,o,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content))return null;let l=yr.create(this.top,n,r,o,i,s);if(l.contentDOM){l.children=e.children,e.children=[];for(let c of l.children)c.parent=l}return e.destroy(),l}addNode(e,n,r,o,i){let s=yr.create(this.top,e,n,r,o,i);s.contentDOM&&s.updateChildren(o,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,r){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(e)&&(e==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let i=new py(this.top,e,n,r);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof so;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof zl)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((ut||et)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let o=new my(this.top,[],r,null);n!=this.top?n.children.push(o):n.children.splice(this.index++,0,o),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function cR(t,e){let n=e,r=n.children.length,o=t.childCount,i=new Map,s=[];e:for(;o>0;){let l;for(;;)if(r){let u=n.children[r-1];if(u instanceof so)n=u,r=u.children.length;else{l=u,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let c=l.node;if(c){if(c!=t.child(o-1))break;--o,i.set(l,o),s.push(l)}}return{index:o,matched:i,matches:s.reverse()}}function uR(t,e){return t.type.side-e.type.side}function dR(t,e,n,r){let o=e.locals(t),i=0;if(o.length==0){for(let u=0;u<t.childCount;u++){let d=t.child(u);r(d,o,e.forChild(i,d),u),i+=d.nodeSize}return}let s=0,l=[],c=null;for(let u=0;;){let d,f;for(;s<o.length&&o[s].to==i;){let g=o[s++];g.widget&&(d?(f||(f=[d])).push(g):d=g)}if(d)if(f){f.sort(uR);for(let g=0;g<f.length;g++)n(f[g],u,!!c)}else n(d,u,!!c);let p,h;if(c)h=-1,p=c,c=null;else if(u<t.childCount)h=u,p=t.child(u++);else break;for(let g=0;g<l.length;g++)l[g].to<=i&&l.splice(g--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)l.push(o[s++]);let m=i+p.nodeSize;if(p.isText){let g=m;s<o.length&&o[s].from<g&&(g=o[s].from);for(let b=0;b<l.length;b++)l[b].to<g&&(g=l[b].to);g<m&&(c=p.cut(g-i),p=p.cut(0,g-i),m=g,h=-1)}else for(;s<o.length&&o[s].to<m;)s++;let y=p.isInline&&!p.isLeaf?l.filter(g=>!g.inline):l.slice();r(p,y,e.forChild(i,p),h),i=m}}function fR(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function pR(t,e){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0){if(t.childNodes.length>e&&t.childNodes[e].nodeType==3)return t.childNodes[e];t=t.childNodes[e-1],e=pn(t)}else if(t.nodeType==1&&e<t.childNodes.length)t=t.childNodes[e],e=0;else return null}}function hR(t,e,n,r){for(let o=0,i=0;o<t.childCount&&i<=r;){let s=t.child(o++),l=i;if(i+=s.nodeSize,!s.isText)continue;let c=s.text;for(;o<t.childCount;){let u=t.child(o++);if(i+=u.nodeSize,!u.isText)break;c+=u.text}if(i>=n){if(i>=r&&c.slice(r-e.length-l,r-l)==e)return r-e.length;let u=l<r?c.lastIndexOf(e,r-l-1):-1;if(u>=0&&u+e.length+l>=n)return l+u;if(n==r&&c.length>=r+e.length-l&&c.slice(r-l,r-l+e.length)==e)return r}}return-1}function Uu(t,e,n,r,o){let i=[];for(let s=0,l=0;s<t.length;s++){let c=t[s],u=l,d=l+=c.size;u>=n||d<=e?i.push(c):(u<e&&i.push(c.slice(0,e-u,r)),o&&(i.push(o),o=void 0),d>n&&i.push(c.slice(n-u,c.size,r)))}return i}function Ku(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let o=t.docView.nearestDesc(n.focusNode),i=o&&o.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let l=r.resolve(s),c,u;if(_l(n)){for(c=l;o&&!o.node;)o=o.parent;let d=o.node;if(o&&d.isAtom&&Z.isSelectable(d)&&o.parent&&!(d.isInline&&$B(n.focusNode,n.focusOffset,o.dom))){let f=o.posBefore;u=new Z(s==f?l:r.resolve(f))}}else{let d=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(d<0)return null;c=r.resolve(d)}if(!u){let d=e=="pointer"||t.state.selection.head<l.pos&&!i?1:-1;u=qu(t,c,l,d)}return u}function vy(t){return t.editable?t.hasFocus():My(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function $n(t,e=!1){let n=t.state.selection;if(Oy(t,n),!!vy(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&et){let r=t.domSelectionRange(),o=t.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&ro(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)gR(t);else{let{anchor:r,head:o}=n,i,s;Cy&&!(n instanceof G)&&(n.$from.parent.inlineContent||(i=Sy(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=Sy(t,n.to))),t.docView.setSelection(r,o,t.root,e),Cy&&(i&&ky(i),s&&ky(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&mR(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Cy=ut||et&&_B<63;function Sy(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(ut&&o&&o.contentEditable=="false")return Gu(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return Gu(o);if(i)return Gu(i)}}function Gu(t){return t.contentEditable="true",ut&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function ky(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function mR(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=o)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!vy(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function gR(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,ct(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&wt&&mr<=11&&(r.disabled=!0,r.disabled=!1)}function Oy(t,e){if(e instanceof Z){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Ey(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Ey(t)}function Ey(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function qu(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||G.between(e,n,r)}function Ty(t){return t.editable&&!t.hasFocus()?!1:My(t)}function My(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function yR(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return ro(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Yu(t,e){let{$anchor:n,$head:r}=t.selection,o=e>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?t.doc.resolve(e>0?o.after():o.before()):null:o;return i&&J.findFrom(i,e)}function br(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function xy(t,e,n){let r=t.state.selection;if(r instanceof G)if(n.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return br(t,new G(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let o=Yu(t.state,e);return o&&o instanceof Z?br(t,o):!1}else if(!(Ht&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let l=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=t.docView.descAt(l))&&!s.contentDOM?Z.isSelectable(i)?br(t,new Z(e<0?t.state.doc.resolve(o.pos-i.nodeSize):o)):qs?br(t,new G(t.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Z&&r.node.isInline)return br(t,new G(e>0?r.$to:r.$from));{let o=Yu(t.state,e);return o?br(t,o):!1}}}function jl(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Xs(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function oi(t,e){return e<0?bR(t):wR(t)}function bR(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;for(en&&n.nodeType==1&&r<jl(n)&&Xs(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let l=n.childNodes[r-1];if(Xs(l,-1))o=n,i=--r;else if(l.nodeType==3)n=l,r=n.nodeValue.length;else break}}else{if(Py(n))break;{let l=n.previousSibling;for(;l&&Xs(l,-1);)o=n.parentNode,i=ct(l),l=l.previousSibling;if(l)n=l,r=jl(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Ju(t,n,r):o&&Ju(t,o,i)}function wR(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=jl(n),i,s;for(;;)if(r<o){if(n.nodeType!=1)break;let l=n.childNodes[r];if(Xs(l,1))i=n,s=++r;else break}else{if(Py(n))break;{let l=n.nextSibling;for(;l&&Xs(l,1);)i=l.parentNode,s=ct(l)+1,l=l.nextSibling;if(l)n=l,r=0,o=jl(n);else{if(n=n.parentNode,n==t.dom)break;r=o=0}}}i&&Ju(t,i,s)}function Py(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function vR(t,e){for(;t&&e==t.childNodes.length&&!$u(t);)e=ct(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function CR(t,e){for(;t&&!e&&!$u(t);)e=ct(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Ju(t,e,n){if(e.nodeType!=3){let i,s;(s=vR(e,n))?(e=s,n=0):(i=CR(e,n))&&(e=i,n=i.nodeValue.length)}let r=t.domSelection();if(_l(r)){let i=document.createRange();i.setEnd(e,n),i.setStart(e,n),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:o}=t;setTimeout(()=>{t.state==o&&$n(t)},50)}function Dy(t,e){let n=t.state.doc.resolve(e);if(!(et||zB)&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left<o.left?"ltr":"rtl"}if(e<n.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Ay(t,e,n){let r=t.state.selection;if(r instanceof G&&!r.empty||n.indexOf("s")>-1||Ht&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Yu(t.state,e);if(s&&s instanceof Z)return br(t,s)}if(!o.parent.inlineContent){let s=e<0?o:i,l=r instanceof Xt?J.near(s,e):J.findFrom(s,e);return l?br(t,l):!1}return!1}function Iy(t,e){if(!(t.state.selection instanceof G))return!0;let{$head:n,$anchor:r,empty:o}=t.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function Ny(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function SR(t){if(!ut||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;Ny(t,r,"true"),setTimeout(()=>Ny(t,r,"false"),20)}return!1}function kR(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function OR(t,e){let n=e.keyCode,r=kR(e);if(n==8||Ht&&n==72&&r=="c")return Iy(t,-1)||oi(t,-1);if(n==46&&!e.shiftKey||Ht&&n==68&&r=="c")return Iy(t,1)||oi(t,1);if(n==13||n==27)return!0;if(n==37||Ht&&n==66&&r=="c"){let o=n==37?Dy(t,t.state.selection.from)=="ltr"?-1:1:-1;return xy(t,o,r)||oi(t,o)}else if(n==39||Ht&&n==70&&r=="c"){let o=n==39?Dy(t,t.state.selection.from)=="ltr"?1:-1:1;return xy(t,o,r)||oi(t,o)}else{if(n==38||Ht&&n==80&&r=="c")return Ay(t,-1,r)||oi(t,-1);if(n==40||Ht&&n==78&&r=="c")return SR(t)||Ay(t,1,r)||oi(t,1);if(r==(Ht?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function By(t,e){t.someProp("transformCopied",h=>{e=h(e,t)});let n=[],{content:r,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let s=t.someProp("clipboardSerializer")||dn.fromSchema(t.state.schema),l=zy(),c=l.createElement("div");c.appendChild(s.serializeFragment(r,{document:l}));let u=c.firstChild,d,f=0;for(;u&&u.nodeType==1&&(d=Hy[u.nodeName.toLowerCase()]);){for(let h=d.length-1;h>=0;h--){let m=l.createElement(d[h]);for(;c.firstChild;)m.appendChild(c.firstChild);c.appendChild(m),f++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${o} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let p=t.someProp("clipboardTextSerializer",h=>h(e,t))||e.content.textBetween(0,e.content.size,`
243
+ `);this.responsiveStyleElement.innerHTML=i}},destroyResponsiveStyle:function(){this.responsiveStyleElement&&(document.head.removeChild(this.responsiveStyleElement),this.responsiveStyleElement=null)},destroyStyleElement:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},dataToRender:function(e){var n=e||this.processedData;if(n&&this.paginator){var r=this.lazy?0:this.d_first;return n.slice(r,r+this.d_rows)}return n},getVirtualScrollerRef:function(){return this.$refs.virtualScroller},hasSpacerStyle:function(e){return M.isNotEmpty(e)}},computed:{columns:function(){var e=this.d_columns.get(this);if(this.reorderableColumns&&this.d_columnOrder){var n=[],r=Fs(this.d_columnOrder),o;try{for(r.s();!(o=r.n()).done;){var i=o.value,s=this.findColumnByKey(e,i);s&&!this.columnProp(s,"hidden")&&n.push(s)}}catch(l){r.e(l)}finally{r.f()}return[].concat(n,we(e.filter(function(l){return n.indexOf(l)<0})))}return e},columnGroups:function(){return this.d_columnGroups.get(this)},headerColumnGroup:function(){var e,n=this;return(e=this.columnGroups)===null||e===void 0?void 0:e.find(function(r){return n.columnProp(r,"type")==="header"})},footerColumnGroup:function(){var e,n=this;return(e=this.columnGroups)===null||e===void 0?void 0:e.find(function(r){return n.columnProp(r,"type")==="footer"})},hasFilters:function(){return this.filters&&Object.keys(this.filters).length>0&&this.filters.constructor===Object},processedData:function(){var e,n=this.value||[];return!this.lazy&&!((e=this.virtualScrollerOptions)!==null&&e!==void 0&&e.lazy)&&n&&n.length&&(this.hasFilters&&(n=this.filter(n)),this.sorted&&(this.sortMode==="single"?n=this.sortSingle(n):this.sortMode==="multiple"&&(n=this.sortMultiple(n)))),n},totalRecordsLength:function(){if(this.lazy)return this.totalRecords;var e=this.processedData;return e?e.length:0},empty:function(){var e=this.processedData;return!e||e.length===0},paginatorTop:function(){return this.paginator&&(this.paginatorPosition!=="bottom"||this.paginatorPosition==="both")},paginatorBottom:function(){return this.paginator&&(this.paginatorPosition!=="top"||this.paginatorPosition==="both")},sorted:function(){return this.d_sortField||this.d_multiSortMeta&&this.d_multiSortMeta.length>0},allRowsSelected:function(){var e=this;if(this.selectAll!==null)return this.selectAll;var n=this.frozenValue?[].concat(we(this.frozenValue),we(this.processedData)):this.processedData;return M.isNotEmpty(n)&&this.selection&&Array.isArray(this.selection)&&n.every(function(r){return e.selection.some(function(o){return e.equals(o,r)})})},attributeSelector:function(){return qn()},groupRowSortField:function(){return this.sortMode==="single"?this.sortField:this.d_groupRowsSortMeta?this.d_groupRowsSortMeta.field:null},virtualScrollerDisabled:function(){return M.isEmpty(this.virtualScrollerOptions)||!this.scrollable}},components:{DTPaginator:b5,DTTableHeader:Y5,DTTableBody:V5,DTTableFooter:z5,DTVirtualScroller:su,ArrowDownIcon:Fg,ArrowUpIcon:Hg,SpinnerIcon:vs}};function Hs(t){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hs(t)}function t3(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function n3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?t3(Object(n),!0).forEach(function(r){XI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t3(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function XI(t,e,n){return e=eN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eN(t){var e=tN(t,"string");return Hs(e)=="symbol"?e:String(e)}function tN(t,e){if(Hs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nN(t,e,n,r,o,i){var s=a.resolveComponent("SpinnerIcon"),l=a.resolveComponent("DTPaginator"),c=a.resolveComponent("DTTableHeader"),u=a.resolveComponent("DTTableBody"),d=a.resolveComponent("DTTableFooter"),f=a.resolveComponent("DTVirtualScroller");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:t.cx("root"),"data-scrollselectors":".p-datatable-wrapper"},t.ptmi("root")),[a.renderSlot(t.$slots,"default"),t.loading?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("loadingOverlay")},t.ptm("loadingOverlay")),[t.$slots.loading?a.renderSlot(t.$slots,"loading",{key:0}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[t.$slots.loadingicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.$slots.loadingicon),{key:0,class:a.normalizeClass(t.cx("loadingIcon"))},null,8,["class"])):t.loadingIcon?(a.openBlock(),a.createElementBlock("i",a.mergeProps({key:1,class:[t.cx("loadingIcon"),"pi-spin",t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(a.openBlock(),a.createBlock(s,a.mergeProps({key:2,spin:"",class:t.cx("loadingIcon")},t.ptm("loadingIcon")),null,16,["class"]))],64))],16)):a.createCommentVNode("",!0),t.$slots.header?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:t.cx("header")},t.ptm("header")),[a.renderSlot(t.$slots,"header")],16)):a.createCommentVNode("",!0),i.paginatorTop?(a.openBlock(),a.createBlock(l,{key:2,rows:o.d_rows,first:o.d_first,totalRecords:i.totalRecordsLength,pageLinkSize:t.pageLinkSize,template:t.paginatorTemplate,rowsPerPageOptions:t.rowsPerPageOptions,currentPageReportTemplate:t.currentPageReportTemplate,class:a.normalizeClass(t.cx("paginator")),onPage:e[0]||(e[0]=function(p){return i.onPage(p)}),alwaysShow:t.alwaysShowPaginator,unstyled:t.unstyled,pt:t.ptm("paginator")},a.createSlots({_:2},[t.$slots.paginatorstart?{name:"start",fn:a.withCtx(function(){return[a.renderSlot(t.$slots,"paginatorstart")]}),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:a.withCtx(function(){return[a.renderSlot(t.$slots,"paginatorend")]}),key:"1"}:void 0,t.$slots.paginatorfirstpagelinkicon?{name:"firstpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorfirstpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"2"}:void 0,t.$slots.paginatorprevpagelinkicon?{name:"prevpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorprevpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"3"}:void 0,t.$slots.paginatornextpagelinkicon?{name:"nextpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatornextpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"4"}:void 0,t.$slots.paginatorlastpagelinkicon?{name:"lastpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorlastpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"5"}:void 0,t.$slots.paginatorjumptopagedropdownicon?{name:"jumptopagedropdownicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorjumptopagedropdownicon",{class:a.normalizeClass(p.class)})]}),key:"6"}:void 0,t.$slots.paginatorrowsperpagedropdownicon?{name:"rowsperpagedropdownicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorrowsperpagedropdownicon",{class:a.normalizeClass(p.class)})]}),key:"7"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","unstyled","pt"])):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:t.cx("wrapper"),style:[t.sx("wrapper"),{maxHeight:i.virtualScrollerDisabled?t.scrollHeight:""}]},t.ptm("wrapper")),[a.createVNode(f,a.mergeProps({ref:"virtualScroller"},t.virtualScrollerOptions,{items:i.processedData,columns:i.columns,style:t.scrollHeight!=="flex"?{height:t.scrollHeight}:void 0,scrollHeight:t.scrollHeight!=="flex"?void 0:"100%",disabled:i.virtualScrollerDisabled,loaderDisabled:"",inline:"",autoSize:"",showSpacer:!1,pt:t.ptm("virtualScroller")}),{content:a.withCtx(function(p){return[a.createElementVNode("table",a.mergeProps({ref:"table",role:"table",class:[t.cx("table"),t.tableClass],style:[t.tableStyle,p.spacerStyle]},n3(n3({},t.tableProps),t.ptm("table"))),[a.createVNode(c,{columnGroup:i.headerColumnGroup,columns:p.columns,rowGroupMode:t.rowGroupMode,groupRowsBy:t.groupRowsBy,groupRowSortField:i.groupRowSortField,reorderableColumns:t.reorderableColumns,resizableColumns:t.resizableColumns,allRowsSelected:i.allRowsSelected,empty:i.empty,sortMode:t.sortMode,sortField:o.d_sortField,sortOrder:o.d_sortOrder,multiSortMeta:o.d_multiSortMeta,filters:o.d_filters,filtersStore:t.filters,filterDisplay:t.filterDisplay,filterInputProps:t.filterInputProps,onColumnClick:e[1]||(e[1]=function(h){return i.onColumnHeaderClick(h)}),onColumnMousedown:e[2]||(e[2]=function(h){return i.onColumnHeaderMouseDown(h)}),onFilterChange:i.onFilterChange,onFilterApply:i.onFilterApply,onColumnDragstart:e[3]||(e[3]=function(h){return i.onColumnHeaderDragStart(h)}),onColumnDragover:e[4]||(e[4]=function(h){return i.onColumnHeaderDragOver(h)}),onColumnDragleave:e[5]||(e[5]=function(h){return i.onColumnHeaderDragLeave(h)}),onColumnDrop:e[6]||(e[6]=function(h){return i.onColumnHeaderDrop(h)}),onColumnResizestart:e[7]||(e[7]=function(h){return i.onColumnResizeStart(h)}),onCheckboxChange:e[8]||(e[8]=function(h){return i.toggleRowsWithCheckbox(h)}),unstyled:t.unstyled,pt:t.pt},null,8,["columnGroup","columns","rowGroupMode","groupRowsBy","groupRowSortField","reorderableColumns","resizableColumns","allRowsSelected","empty","sortMode","sortField","sortOrder","multiSortMeta","filters","filtersStore","filterDisplay","filterInputProps","onFilterChange","onFilterApply","unstyled","pt"]),t.frozenValue?(a.openBlock(),a.createBlock(u,{key:0,ref:"frozenBodyRef",value:t.frozenValue,frozenRow:!0,columns:p.columns,first:o.d_first,dataKey:t.dataKey,selection:t.selection,selectionKeys:o.d_selectionKeys,selectionMode:t.selectionMode,contextMenu:t.contextMenu,contextMenuSelection:t.contextMenuSelection,rowGroupMode:t.rowGroupMode,groupRowsBy:t.groupRowsBy,expandableRowGroups:t.expandableRowGroups,rowClass:t.rowClass,rowStyle:t.rowStyle,editMode:t.editMode,compareSelectionBy:t.compareSelectionBy,scrollable:t.scrollable,expandedRowIcon:t.expandedRowIcon,collapsedRowIcon:t.collapsedRowIcon,expandedRows:t.expandedRows,expandedRowGroups:t.expandedRowGroups,editingRows:t.editingRows,editingRowKeys:o.d_editingRowKeys,templates:t.$slots,responsiveLayout:t.responsiveLayout,isVirtualScrollerDisabled:!0,onRowgroupToggle:i.toggleRowGroup,onRowClick:e[9]||(e[9]=function(h){return i.onRowClick(h)}),onRowDblclick:e[10]||(e[10]=function(h){return i.onRowDblClick(h)}),onRowRightclick:e[11]||(e[11]=function(h){return i.onRowRightClick(h)}),onRowTouchend:i.onRowTouchEnd,onRowKeydown:i.onRowKeyDown,onRowMousedown:i.onRowMouseDown,onRowDragstart:e[12]||(e[12]=function(h){return i.onRowDragStart(h)}),onRowDragover:e[13]||(e[13]=function(h){return i.onRowDragOver(h)}),onRowDragleave:e[14]||(e[14]=function(h){return i.onRowDragLeave(h)}),onRowDragend:e[15]||(e[15]=function(h){return i.onRowDragEnd(h)}),onRowDrop:e[16]||(e[16]=function(h){return i.onRowDrop(h)}),onRowToggle:e[17]||(e[17]=function(h){return i.toggleRow(h)}),onRadioChange:e[18]||(e[18]=function(h){return i.toggleRowWithRadio(h)}),onCheckboxChange:e[19]||(e[19]=function(h){return i.toggleRowWithCheckbox(h)}),onCellEditInit:e[20]||(e[20]=function(h){return i.onCellEditInit(h)}),onCellEditComplete:e[21]||(e[21]=function(h){return i.onCellEditComplete(h)}),onCellEditCancel:e[22]||(e[22]=function(h){return i.onCellEditCancel(h)}),onRowEditInit:e[23]||(e[23]=function(h){return i.onRowEditInit(h)}),onRowEditSave:e[24]||(e[24]=function(h){return i.onRowEditSave(h)}),onRowEditCancel:e[25]||(e[25]=function(h){return i.onRowEditCancel(h)}),editingMeta:o.d_editingMeta,onEditingMetaChange:i.onEditingMetaChange,unstyled:t.unstyled,pt:t.pt},null,8,["value","columns","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","onRowgroupToggle","onRowTouchend","onRowKeydown","onRowMousedown","editingMeta","onEditingMetaChange","unstyled","pt"])):a.createCommentVNode("",!0),a.createVNode(u,{ref:"bodyRef",value:i.dataToRender(p.rows),class:a.normalizeClass(p.styleClass),columns:p.columns,empty:i.empty,first:o.d_first,dataKey:t.dataKey,selection:t.selection,selectionKeys:o.d_selectionKeys,selectionMode:t.selectionMode,contextMenu:t.contextMenu,contextMenuSelection:t.contextMenuSelection,rowGroupMode:t.rowGroupMode,groupRowsBy:t.groupRowsBy,expandableRowGroups:t.expandableRowGroups,rowClass:t.rowClass,rowStyle:t.rowStyle,editMode:t.editMode,compareSelectionBy:t.compareSelectionBy,scrollable:t.scrollable,expandedRowIcon:t.expandedRowIcon,collapsedRowIcon:t.collapsedRowIcon,expandedRows:t.expandedRows,expandedRowGroups:t.expandedRowGroups,editingRows:t.editingRows,editingRowKeys:o.d_editingRowKeys,templates:t.$slots,responsiveLayout:t.responsiveLayout,virtualScrollerContentProps:p,isVirtualScrollerDisabled:i.virtualScrollerDisabled,onRowgroupToggle:i.toggleRowGroup,onRowClick:e[26]||(e[26]=function(h){return i.onRowClick(h)}),onRowDblclick:e[27]||(e[27]=function(h){return i.onRowDblClick(h)}),onRowRightclick:e[28]||(e[28]=function(h){return i.onRowRightClick(h)}),onRowTouchend:i.onRowTouchEnd,onRowKeydown:function(m){return i.onRowKeyDown(m,p)},onRowMousedown:i.onRowMouseDown,onRowDragstart:e[29]||(e[29]=function(h){return i.onRowDragStart(h)}),onRowDragover:e[30]||(e[30]=function(h){return i.onRowDragOver(h)}),onRowDragleave:e[31]||(e[31]=function(h){return i.onRowDragLeave(h)}),onRowDragend:e[32]||(e[32]=function(h){return i.onRowDragEnd(h)}),onRowDrop:e[33]||(e[33]=function(h){return i.onRowDrop(h)}),onRowToggle:e[34]||(e[34]=function(h){return i.toggleRow(h)}),onRadioChange:e[35]||(e[35]=function(h){return i.toggleRowWithRadio(h)}),onCheckboxChange:e[36]||(e[36]=function(h){return i.toggleRowWithCheckbox(h)}),onCellEditInit:e[37]||(e[37]=function(h){return i.onCellEditInit(h)}),onCellEditComplete:e[38]||(e[38]=function(h){return i.onCellEditComplete(h)}),onCellEditCancel:e[39]||(e[39]=function(h){return i.onCellEditCancel(h)}),onRowEditInit:e[40]||(e[40]=function(h){return i.onRowEditInit(h)}),onRowEditSave:e[41]||(e[41]=function(h){return i.onRowEditSave(h)}),onRowEditCancel:e[42]||(e[42]=function(h){return i.onRowEditCancel(h)}),editingMeta:o.d_editingMeta,onEditingMetaChange:i.onEditingMetaChange,unstyled:t.unstyled,pt:t.pt},null,8,["value","class","columns","empty","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","virtualScrollerContentProps","isVirtualScrollerDisabled","onRowgroupToggle","onRowTouchend","onRowKeydown","onRowMousedown","editingMeta","onEditingMetaChange","unstyled","pt"]),i.hasSpacerStyle(p.spacerStyle)?(a.openBlock(),a.createElementBlock("tbody",a.mergeProps({key:1,class:t.cx("virtualScrollerSpacer"),style:{height:"calc(".concat(p.spacerStyle.height," - ").concat(p.rows.length*p.itemSize,"px)")}},t.ptm("virtualScrollerSpacer")),null,16)):a.createCommentVNode("",!0),a.createVNode(d,{columnGroup:i.footerColumnGroup,columns:p.columns,pt:t.pt},null,8,["columnGroup","columns","pt"])],16)]}),_:1},16,["items","columns","style","scrollHeight","disabled","pt"])],16),t.$slots.footer?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:3,class:t.cx("footer")},t.ptm("footer")),[a.renderSlot(t.$slots,"footer")],16)):a.createCommentVNode("",!0),i.paginatorBottom?(a.openBlock(),a.createBlock(l,{key:4,rows:o.d_rows,first:o.d_first,totalRecords:i.totalRecordsLength,pageLinkSize:t.pageLinkSize,template:t.paginatorTemplate,rowsPerPageOptions:t.rowsPerPageOptions,currentPageReportTemplate:t.currentPageReportTemplate,class:a.normalizeClass(t.cx("paginator")),onPage:e[43]||(e[43]=function(p){return i.onPage(p)}),alwaysShow:t.alwaysShowPaginator,unstyled:t.unstyled,pt:t.ptm("paginator")},a.createSlots({_:2},[t.$slots.paginatorstart?{name:"start",fn:a.withCtx(function(){return[a.renderSlot(t.$slots,"paginatorstart")]}),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:a.withCtx(function(){return[a.renderSlot(t.$slots,"paginatorend")]}),key:"1"}:void 0,t.$slots.paginatorfirstpagelinkicon?{name:"firstpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorfirstpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"2"}:void 0,t.$slots.paginatorprevpagelinkicon?{name:"prevpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorprevpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"3"}:void 0,t.$slots.paginatornextpagelinkicon?{name:"nextpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatornextpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"4"}:void 0,t.$slots.paginatorlastpagelinkicon?{name:"lastpagelinkicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorlastpagelinkicon",{class:a.normalizeClass(p.class)})]}),key:"5"}:void 0,t.$slots.paginatorjumptopagedropdownicon?{name:"jumptopagedropdownicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorjumptopagedropdownicon",{class:a.normalizeClass(p.class)})]}),key:"6"}:void 0,t.$slots.paginatorrowsperpagedropdownicon?{name:"rowsperpagedropdownicon",fn:a.withCtx(function(p){return[a.renderSlot(t.$slots,"paginatorrowsperpagedropdownicon",{class:a.normalizeClass(p.class)})]}),key:"7"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","unstyled","pt"])):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({ref:"resizeHelper",class:t.cx("resizeHelper"),style:{display:"none"}},t.ptm("resizeHelper")),null,16),t.reorderableColumns?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:5,ref:"reorderIndicatorUp",class:t.cx("reorderIndicatorUp"),style:{position:"absolute",display:"none"}},t.ptm("reorderIndicatorUp")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.$slots.reorderindicatorupicon||"ArrowDownIcon")))],16)):a.createCommentVNode("",!0),t.reorderableColumns?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:6,ref:"reorderIndicatorDown",class:t.cx("reorderIndicatorDown"),style:{position:"absolute",display:"none"}},t.ptm("reorderIndicatorDown")),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.$slots.reorderindicatordownicon||"ArrowUpIcon")))],16)):a.createCommentVNode("",!0)],16)}e3.render=nN;var rN={},oN={name:"BaseColumn",extends:re,props:{columnKey:{type:null,default:null},field:{type:[String,Function],default:null},sortField:{type:[String,Function],default:null},filterField:{type:[String,Function],default:null},dataType:{type:String,default:"text"},sortable:{type:Boolean,default:!1},header:{type:null,default:null},footer:{type:null,default:null},style:{type:null,default:null},class:{type:String,default:null},headerStyle:{type:null,default:null},headerClass:{type:String,default:null},bodyStyle:{type:null,default:null},bodyClass:{type:String,default:null},footerStyle:{type:null,default:null},footerClass:{type:String,default:null},showFilterMenu:{type:Boolean,default:!0},showFilterOperator:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showApplyButton:{type:Boolean,default:!0},showFilterMatchModes:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},filterMatchModeOptions:{type:Array,default:null},maxConstraints:{type:Number,default:2},excludeGlobalFilter:{type:Boolean,default:!1},filterHeaderClass:{type:String,default:null},filterHeaderStyle:{type:null,default:null},filterMenuClass:{type:String,default:null},filterMenuStyle:{type:null,default:null},selectionMode:{type:String,default:null},expander:{type:Boolean,default:!1},colspan:{type:Number,default:null},rowspan:{type:Number,default:null},rowReorder:{type:Boolean,default:!1},rowReorderIcon:{type:String,default:void 0},reorderableColumn:{type:Boolean,default:!0},rowEditor:{type:Boolean,default:!1},frozen:{type:Boolean,default:!1},alignFrozen:{type:String,default:"left"},exportable:{type:Boolean,default:!0},exportHeader:{type:String,default:null},exportFooter:{type:String,default:null},filterMatchMode:{type:String,default:null},hidden:{type:Boolean,default:!1}},style:rN,provide:function(){return{$parentInstance:this}}},iN={name:"Column",extends:oN,inheritAttrs:!1,inject:["$columns"],mounted:function(){var e;(e=this.$columns)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$columns)===null||e===void 0||e.delete(this.$)},render:function(){return null}},sN={},aN={name:"BaseColumnGroup",extends:re,props:{type:{type:String,default:null}},style:sN,provide:function(){return{$parentInstance:this}}},lN={name:"ColumnGroup",extends:aN,inheritAttrs:!1,inject:["$columnGroups"],mounted:function(){var e;(e=this.$columnGroups)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$columnGroups)===null||e===void 0||e.delete(this.$)},render:function(){return null}},cN={name:"Row",extends:re,inject:["$rows"],mounted:function(){var e;(e=this.$rows)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$rows)===null||e===void 0||e.delete(this.$)},render:function(){return null}};const uN="data:image/svg+xml,%3csvg%20width='118'%20height='99'%20viewBox='0%200%20118%2099'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M104.165%2059.815C107.107%2062.7762%20108.893%2066.692%20109.201%2070.8549C109.508%2075.0179%20108.317%2079.1536%20105.842%2082.515L105.642%2082.782L105.412%2083.082L117.521%2095.245C117.828%2095.5546%20118%2095.973%20118%2096.409C118%2096.845%20117.828%2097.2634%20117.521%2097.573C117.232%2097.8651%20116.844%2098.0376%20116.434%2098.0561C116.023%2098.0746%20115.621%2097.9378%20115.307%2097.673L115.207%2097.573L103.122%2085.438L102.822%2085.682C99.4939%2088.3942%2095.2763%2089.772%2090.9889%2089.5476C86.7016%2089.3233%2082.6508%2087.5127%2079.624%2084.468C76.3686%2081.1921%2074.5414%2076.7614%2074.5414%2072.143C74.5414%2067.5247%2076.3686%2063.0939%2079.624%2059.818C81.2316%2058.2001%2083.1433%2056.916%2085.2491%2056.0397C87.3548%2055.1634%2089.6131%2054.7121%2091.8939%2054.7118C94.1747%2054.7115%2096.4331%2055.1622%2098.539%2056.0381C100.645%2056.9139%20102.557%2058.1975%20104.165%2059.815ZM81.935%2062.131C79.2951%2064.7964%2077.8142%2068.3961%2077.8142%2072.1475C77.8142%2075.8989%2079.2951%2079.4986%2081.935%2082.164C83.2368%2083.4792%2084.7865%2084.5233%2086.4944%2085.2358C88.2022%2085.9484%2090.0344%2086.3153%2091.885%2086.3153C93.7355%2086.3153%2095.5678%2085.9484%2097.2756%2085.2358C98.9835%2084.5233%20100.533%2083.4792%20101.835%2082.164C104.475%2079.4986%20105.956%2075.8989%20105.956%2072.1475C105.956%2068.3961%20104.475%2064.7964%20101.835%2062.131C100.533%2060.8158%2098.9835%2059.7717%2097.2756%2059.0592C95.5678%2058.3466%2093.7355%2057.9797%2091.885%2057.9797C90.0344%2057.9797%2088.2022%2058.3466%2086.4944%2059.0592C84.7865%2059.7717%2083.2368%2060.8158%2081.935%2062.131ZM31.4%2075.042V76.442C31.4001%2076.5544%2031.4224%2076.6656%2031.4656%2076.7694C31.5087%2076.8731%2031.5719%2076.9673%2031.6515%2077.0466C31.7311%2077.126%2031.8255%2077.1888%2031.9294%2077.2316C32.0333%2077.2744%2032.1446%2077.2963%2032.257%2077.296H72.357C72.5818%2078.1673%2072.8638%2079.0228%2073.201%2079.857H32.258C31.3506%2079.8589%2030.4796%2079.5003%2029.8366%2078.86C29.1935%2078.2198%2028.8311%2077.3504%2028.829%2076.443V75.043L31.4%2075.042ZM86.162%2022C87.0694%2021.9981%2087.9404%2022.3568%2088.5834%2022.997C89.2265%2023.6372%2089.5889%2024.5066%2089.591%2025.414V51.808C88.7243%2051.9101%2087.8652%2052.0684%2087.019%2052.282V25.414C87.0189%2025.3016%2086.9966%2025.1904%2086.9534%2025.0867C86.9103%2024.9829%2086.8471%2024.8887%2086.7675%2024.8094C86.6879%2024.7301%2086.5935%2024.6672%2086.4896%2024.6244C86.3857%2024.5816%2086.2744%2024.5597%2086.162%2024.56H25.429C25.3166%2024.5597%2025.2053%2024.5816%2025.1014%2024.6244C24.9975%2024.6672%2024.9031%2024.7301%2024.8235%2024.8094C24.7439%2024.8887%2024.6807%2024.9829%2024.6376%2025.0867C24.5944%2025.1904%2024.5721%2025.3016%2024.572%2025.414V69.587C24.5721%2069.6994%2024.5944%2069.8106%2024.6376%2069.9144C24.6807%2070.0181%2024.7439%2070.1123%2024.8235%2070.1916C24.9031%2070.271%2024.9975%2070.3338%2025.1014%2070.3766C25.2053%2070.4194%2025.3166%2070.4413%2025.429%2070.441H71.766C71.697%2071.2932%2071.6806%2072.1488%2071.717%2073.003H25.429C24.5216%2073.0049%2023.6506%2072.6463%2023.0076%2072.006C22.3645%2071.3658%2022.0021%2070.4964%2022%2069.589V25.414C22.0021%2024.5066%2022.3645%2023.6372%2023.0076%2022.997C23.6506%2022.3568%2024.5216%2021.9981%2025.429%2022H86.162ZM77.701%2054.948C77.8695%2054.9484%2078.0362%2054.982%2078.1918%2055.0468C78.3473%2055.1117%2078.4885%2055.2065%2078.6073%2055.3259C78.7262%2055.4453%2078.8204%2055.587%2078.8845%2055.7428C78.9486%2055.8986%2078.9814%2056.0655%2078.981%2056.234C78.9811%2056.2983%2078.9764%2056.3624%2078.967%2056.426C78.557%2056.7693%2078.159%2057.1327%2077.773%2057.516H77.701H34.374C34.0329%2057.516%2033.7058%2057.3805%2033.4647%2057.1393C33.2235%2056.8982%2033.088%2056.5711%2033.088%2056.23C33.088%2055.8889%2033.2235%2055.5618%2033.4647%2055.3207C33.7058%2055.0795%2034.0329%2054.944%2034.374%2054.944L77.701%2054.948ZM92.991%2028.859C93.8984%2028.8571%2094.7694%2029.2158%2095.4124%2029.856C96.0555%2030.4962%2096.4179%2031.3656%2096.42%2032.273V52.168C95.5725%2051.9753%2094.7133%2051.8377%2093.848%2051.756V32.273C93.8479%2032.1606%2093.8256%2032.0494%2093.7824%2031.9457C93.7393%2031.8419%2093.6761%2031.7477%2093.5965%2031.6684C93.5169%2031.5891%2093.4225%2031.5262%2093.3186%2031.4834C93.2147%2031.4406%2093.1034%2031.4187%2092.991%2031.419H91.291V28.858L92.991%2028.859ZM77.701%2046.375C78.0421%2046.375%2078.3692%2046.5105%2078.6103%2046.7517C78.8515%2046.9928%2078.987%2047.3199%2078.987%2047.661C78.987%2048.0021%2078.8515%2048.3292%2078.6103%2048.5703C78.3692%2048.8115%2078.0421%2048.947%2077.701%2048.947H34.374C34.0329%2048.947%2033.7058%2048.8115%2033.4647%2048.5703C33.2235%2048.3292%2033.088%2048.0021%2033.088%2047.661C33.088%2047.3199%2033.2235%2046.9928%2033.4647%2046.7517C33.7058%2046.5105%2034.0329%2046.375%2034.374%2046.375H77.701ZM59.983%2037.801C60.3241%2037.801%2060.6512%2037.9365%2060.8923%2038.1777C61.1335%2038.4188%2061.269%2038.7459%2061.269%2039.087C61.269%2039.4281%2061.1335%2039.7552%2060.8923%2039.9963C60.6512%2040.2375%2060.3241%2040.373%2059.983%2040.373H34.374C34.0329%2040.373%2033.7058%2040.2375%2033.4647%2039.9963C33.2235%2039.7552%2033.088%2039.4281%2033.088%2039.087C33.088%2038.7459%2033.2235%2038.4188%2033.4647%2038.1777C33.7058%2037.9365%2034.0329%2037.801%2034.374%2037.801H59.983Z'%20fill='%238D9AA5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%200C4.2066%200%204.40475%200.0820729%204.55084%200.228164C4.69693%200.374255%204.779%200.572397%204.779%200.779V3.221H7.221C7.41393%203.221%207.6%203.29258%207.74317%203.4219C7.88634%203.55122%207.97643%203.72907%207.996%203.921V4.001C7.996%204.2076%207.91393%204.40575%207.76784%204.55184C7.62175%204.69793%207.4236%204.78%207.217%204.78H4.779V7.222C4.779%207.41493%204.70742%207.601%204.5781%207.74417C4.44878%207.88734%204.27093%207.97744%204.079%207.997H3.999C3.7924%207.997%203.59425%207.91493%203.44816%207.76884C3.30207%207.62275%203.22%207.4246%203.22%207.218V4.779H0.779C0.585538%204.78002%200.398617%204.70902%200.254623%204.57981C0.110629%204.45061%200.0198653%204.27244%200%204.08V4C0%203.7934%200.082073%203.59526%200.228164%203.44916C0.374255%203.30307%200.572396%203.221%200.779%203.221H3.221V0.779C3.221%200.586071%203.29258%200.400004%203.4219%200.256831C3.55122%200.113658%203.72907%200.023565%203.921%200.00399971L4%200Z'%20fill='%238D9AA5'/%3e%3cpath%20d='M11%2099C11.5304%2099%2012.0391%2098.7893%2012.4142%2098.4142C12.7893%2098.0391%2013%2097.5304%2013%2097C13%2096.4696%2012.7893%2095.9609%2012.4142%2095.5858C12.0391%2095.2107%2011.5304%2095%2011%2095C10.4696%2095%209.96086%2095.2107%209.58579%2095.5858C9.21071%2095.9609%209%2096.4696%209%2097C9%2097.5304%209.21071%2098.0391%209.58579%2098.4142C9.96086%2098.7893%2010.4696%2099%2011%2099Z'%20fill='%238D9AA5'/%3e%3cpath%20d='M104.518%2015.035C103.055%2015.035%20101.651%2014.4538%20100.617%2013.4192C99.5817%2012.3846%2099.0003%2010.9813%2099%209.518C99%208.05454%2099.5814%206.65101%20100.616%205.61619C101.651%204.58136%20103.055%204%20104.518%204C105.981%204%20107.385%204.58136%20108.42%205.61619C109.455%206.65101%20110.036%208.05454%20110.036%209.518C110.036%2010.9813%20109.454%2012.3846%20108.419%2013.4192C107.385%2014.4538%20105.981%2015.035%20104.518%2015.035ZM104.518%2013.035C105.451%2013.035%20106.346%2012.6645%20107.005%2012.005C107.665%2011.3454%20108.036%2010.4509%20108.036%209.518C108.036%209.05601%20107.945%208.59854%20107.768%208.17172C107.591%207.7449%20107.332%207.35707%20107.006%207.0304C106.679%206.70372%20106.291%206.44459%20105.864%206.26779C105.437%206.091%20104.98%206%20104.518%206C103.585%206%20102.69%206.37065%20102.03%207.0304C101.371%207.69015%20101%208.58497%20101%209.518C101%2010.4509%20101.371%2011.3454%20102.031%2012.005C102.69%2012.6645%20103.585%2013.035%20104.518%2013.035Z'%20fill='%238D9AA5'/%3e%3c/svg%3e",dN=a.defineComponent({name:"QTable",components:{Column:iN,ColumnGroup:lN,DataTable:e3,Row:cN,QBadge:xi},props:{id:{type:String,default:""},modelValue:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},hasSearch:{type:Boolean,default:!0},sortBy:{type:String,default:""},itemsPerPage:{type:Number,default:20},currentPage:{type:Number,default:1},searchPlaceholder:{type:String,default:""},filters:{type:Object,default:()=>({})},filtersAction:{type:Function,default:()=>{}},filtersCount:{type:Number,default:0},globalFilters:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},isMultiSort:{type:Boolean,default:!1},isMultiSelect:{type:Boolean,default:!1},rowSelect:{type:Function,default:()=>{}},rowUnselect:{type:Function,default:()=>{}},fixedTopOffset:{type:Number,default:0},skeletonRows:{type:Number,default:6}},setup(t){const e=a.ref(!1),n=a.ref(!1),r=a.ref(uN),o=a.ref(),i=a.ref(""),s=a.ref([]),l=a.ref(),c=a.ref(0),u=a.ref({global:{matchMode:Re.CONTAINS,value:null},...t.filters}),d=a.computed(()=>{const b=[],w={};return t.columns.forEach(C=>{w[C.key]=""}),[...Array(t.skeletonRows)].forEach(()=>{b.push(w)}),b}),f=()=>{var b,w;o.value.scrollWidth>o.value.clientWidth?(e.value=!0,(b=o.value)==null||b.classList.add("is-scrolled")):(e.value=!1,(w=o.value)==null||w.classList.remove("is-scrolled")),g()},p=b=>{t.rowSelect(b)},h=b=>{t.rowUnselect(b)},m=()=>{var v,E;const b=l.value.offsetTop-t.fixedTopOffset,w=document.querySelector('div[data-pc-section="header"]'),C=(v=o.value)==null?void 0:v.querySelector("thead");if(n.value=!!t.fixedTopOffset&&l.value&&window.scrollY>=b,n.value){if(w.style.top=t.fixedTopOffset+"px",!e.value){const S=t.fixedTopOffset+w.clientHeight+1;C.style.top=S+"px"}}else w.style.top="",e.value||(C.style.top="");if(n.value&&e.value){const S=document.querySelector('div[data-pc-section="header"] > div[data-pc-section="wrapper"]');(E=S==null?void 0:S.querySelectorAll("th"))==null||E.forEach((k,T)=>{var B;const D=(B=o.value)==null?void 0:B.querySelector(`th:nth-child(${T+1})`),N=D==null?void 0:D.getAttribute("aria-sort");k==null||k.setAttribute("aria-sort",N),k.classList.contains("actions")&&(k.style.minWidth=(D==null?void 0:D.clientWidth)+"px")})}g()},y=()=>{var w,C,v,E;const b=(w=o.value)==null?void 0:w.cloneNode(!0);if(b){const S=document.querySelector('div[data-pc-section="header"]');S==null||S.append(b);const k=S==null?void 0:S.querySelector('div[data-pc-section="wrapper"]');(C=k==null?void 0:k.querySelector("tbody"))==null||C.remove(),k==null||k.addEventListener("scroll",()=>{o.value.scrollLeft=k.scrollLeft}),(v=o.value)==null||v.addEventListener("scroll",()=>{k.scrollLeft=o.value.scrollLeft}),(E=k==null?void 0:k.querySelectorAll("th"))==null||E.forEach((T,D)=>{T==null||T.addEventListener("click",async()=>{var N;if(n.value&&e.value){const B=(N=o.value)==null?void 0:N.querySelector(`th:nth-child(${D+1})`);await(B==null?void 0:B.click());const $=B==null?void 0:B.getAttribute("aria-sort");T==null||T.setAttribute("aria-sort",$)}})})}},g=()=>{const b=o.value.clientWidth+"px",w=document.querySelector('div[data-pc-section="header"]'),C=w.querySelector('div[data-pc-section="wrapper"] thead');w.style.width=b,o.value.querySelector("thead").style.width=b,C&&(C.style.width=b)};return a.onMounted(()=>{o.value=document.querySelector('div[data-pc-section="wrapper"]'),f(),window.addEventListener("resize",f),window.addEventListener("scroll",m),y()}),a.onUnmounted(()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",m)}),{horizontalScroll:e,isFixed:n,noResultsPath:r,scrollableElement:o,search:i,selectedRows:s,tableContainer:l,tableFilters:u,tableHeight:c,skeletonData:d,onPageResizeOrLoad:f,onSelectRow:p,onUnselectRow:h,mq:Yr}}}),fN=["id"],pN={class:"search-and-filters"},hN={class:"inspections-search"},mN={for:"search",class:"search-label"},gN={key:0,class:"inspection-actions"},yN={class:"flex relative"},bN={key:0,class:"flex flex-col items-center justify-center"},wN=["src"],vN={key:0},CN={key:1},SN={key:1,class:"skeleton-element"};function kN(t,e,n,r,o,i){const s=a.resolveComponent("q-icon"),l=a.resolveComponent("q-input"),c=a.resolveComponent("q-badge"),u=a.resolveComponent("column"),d=a.resolveComponent("data-table");return a.openBlock(),a.createElementBlock("div",{id:t.id,class:a.normalizeClass(["table-container",{"is-fixed":t.isFixed},{"using-scroll":t.horizontalScroll},{"is-loading":t.loading}]),ref:"tableContainer"},[a.createVNode(d,{filters:t.tableFilters,"onUpdate:filters":e[1]||(e[1]=f=>t.tableFilters=f),selection:t.selectedRows,"onUpdate:selection":e[2]||(e[2]=f=>t.selectedRows=f),"global-filter-fields":t.globalFilters,loading:t.loading,"meta-key-selection":!1,"scroll-height":t.horizontalScroll&&t.tableHeight?`${t.tableHeight}px`:"","selection-mode":t.isMultiSelect?"multiple":"single","sort-mode":t.isMultiSort?"multiple":"single",value:t.loading?t.skeletonData:t.modelValue,"data-key":"id","filter-display":"menu","removable-sort":"",scrollable:"",onRowSelect:t.onSelectRow,onRowUnselect:t.onUnselectRow},{header:a.withCtx(()=>[t.hasSearch?a.renderSlot(t.$slots,"search-and-filters",{key:0},()=>[a.createElementVNode("div",pN,[a.createElementVNode("div",hN,[t.hasSearch?a.renderSlot(t.$slots,"search",{key:0},()=>[a.createElementVNode("label",mN,[a.createVNode(s,{class:"mr-2",color:"gray-40",icon:"search",size:"md",type:""}),a.createVNode(l,{id:"search",modelValue:t.tableFilters.global.value,"onUpdate:modelValue":e[0]||(e[0]=f=>t.tableFilters.global.value=f),"hide-clear":!!t.mq.md,placeholder:t.searchPlaceholder||t.$t("HC_SEARCH"),class:"text-base","control-class":"!border-0 !px-0"},null,8,["modelValue","hide-clear","placeholder"])])],!0):a.createCommentVNode("",!0)]),Object.keys(t.tableFilters).length||t.$slots.tableActions?(a.openBlock(),a.createElementBlock("div",gN,[Object.keys(t.tableFilters).length?a.renderSlot(t.$slots,"filters",{key:0},()=>[a.createElementVNode("div",yN,[a.createVNode(s,{class:"filters-icon",color:"gray-40",icon:"filter",size:"md",onClick:t.filtersAction},null,8,["onClick"]),t.filtersCount?(a.openBlock(),a.createBlock(c,{key:0,class:"filters-count",color:"white"},{text:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.filtersCount),1)]),_:1})):a.createCommentVNode("",!0)])],!0):a.createCommentVNode("",!0),t.$slots.tableActions?a.renderSlot(t.$slots,"tableActions",{key:1},void 0,!0):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])],!0):a.createCommentVNode("",!0)]),empty:a.withCtx(()=>[t.loading?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",bN,[a.renderSlot(t.$slots,"no-results-illustration",{},()=>[a.createElementVNode("img",{class:"mb-5",src:t.noResultsPath},null,8,wN)],!0),a.renderSlot(t.$slots,"no-results-text",a.normalizeProps(a.guardReactiveProps({tableFilters:t.tableFilters})),void 0,!0)]))]),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.columns,f=>(a.openBlock(),a.createBlock(u,{field:f.key,"filter-field":f.key,header:f.name,sortable:f.sortable,frozen:f.frozen,class:a.normalizeClass([f.key,f.size?`cell-${f.size}`:"",{"text-right":f.key==="actions"}])},{body:a.withCtx(({data:p})=>[t.loading?t.loading&&f.name?(a.openBlock(),a.createElementBlock("div",SN," Ā  ")):a.createCommentVNode("",!0):a.renderSlot(t.$slots,f.key,a.normalizeProps(a.mergeProps({key:0},p)),()=>[f.key.match(/\./)?(a.openBlock(),a.createElementBlock("div",CN,a.toDisplayString(p[f.key.split(".")[0]][f.key.split(".")[1]]),1)):(a.openBlock(),a.createElementBlock("div",vN,a.toDisplayString(p[f.key]),1))],!0)]),_:2},1032,["field","filter-field","header","sortable","frozen","class"]))),256))]),_:3},8,["filters","selection","global-filter-fields","loading","scroll-height","selection-mode","sort-mode","value","onRowSelect","onRowUnselect"])],10,fN)}const ON=ce(dN,[["render",kN],["__scopeId","data-v-90d7db4c"]]),EN=a.defineComponent({name:"QTag",components:{},props:{tagClass:{type:String,default:""},bgColor:{type:String,default:"bg-green-0"},textColor:{type:String,default:"text-green-20"},shape:{type:String,default:"square"}},setup(t,{slots:e}){return{hasIcon:!!e.icon}}});function TN(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["tag flex items-center",[t.tagClass,t.bgColor,t.textColor,"tag-"+t.shape,{"has-icon":t.hasIcon}]])},[t.hasIcon?a.renderSlot(t.$slots,"icon",{key:0},void 0,!0):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default",{},void 0,!0)],2)}const MN=ce(EN,[["render",TN],["__scopeId","data-v-1a01844c"]]),r3="update:model-value",xN=a.defineComponent({name:"QTextarea",inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},persistentPlaceholder:{type:Boolean,default:!1},placeholder:{type:String,default:""},rows:{type:Number,default:2},status:{type:String,default:""},textareaClass:{type:String,default:""},isDisabled:{type:Boolean,default:!1}},emits:[r3],setup(t,{attrs:e,emit:n,slots:r}){const o=a.ref(!1),i=a.ref(),s=a.computed(()=>!!r.actions),l=a.computed(()=>!!e.disabled||!!t.isDisabled),c=a.computed(()=>[{[`has-${t.status}`]:t.status&&!l.value},{"is-focused":o.value},{"is-disabled":l.value}]),u=a.computed(()=>["textarea",t.textareaClass,{[t.status]:t.status&&!l.value},{populated:!!t.modelValue&&t.persistentPlaceholder},{"is-focused":o.value&&t.persistentPlaceholder}]),d=()=>{i.value.style.height="auto",i.value.style.height=i.value.scrollHeight+"px"},f=p=>{n(r3,p.target.value)};return a.onMounted(()=>{d()}),{focused:o,disabled:l,rootClasses:c,textarea:i,textareaClasses:u,hasActions:s,resizeTextarea:d,updateValue:f}}}),PN=["id","disabled","placeholder","rows","value"],DN={key:0,class:"action flex items-end py-2 pr-4"},AN=["for"];function IN(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([t.rootClasses,"control flex"])},[a.createElementVNode("textarea",a.mergeProps({id:String(t.$attrs.id),ref:"textarea",disabled:t.isDisabled,class:[t.textareaClasses],placeholder:t.persistentPlaceholder?"":t.placeholder,rows:t.rows,value:t.modelValue},t.$attrs,{onInput:e[0]||(e[0]=(...s)=>t.updateValue&&t.updateValue(...s)),onFocusin:e[1]||(e[1]=s=>t.focused=!t.focused),onFocusout:e[2]||(e[2]=s=>t.focused=!t.focused),onKeyup:e[3]||(e[3]=(...s)=>t.resizeTextarea&&t.resizeTextarea(...s))}),`
244
+ `,16,PN),t.hasActions?(a.openBlock(),a.createElementBlock("div",DN,[a.renderSlot(t.$slots,"actions",{},void 0,!0)])):a.createCommentVNode("",!0),t.persistentPlaceholder?(a.openBlock(),a.createElementBlock("label",{key:1,for:String(t.$attrs.id),class:"placeholder"},a.toDisplayString(t.placeholder),9,AN)):a.createCommentVNode("",!0)],2)}const NN=ce(xN,[["render",IN],["__scopeId","data-v-71ad5d22"]]),o3="update:modelValue",i3="undo-action",BN=a.defineComponent({name:"QToast",props:{modelValue:{type:Boolean,default:!1,required:!0},icon:{type:String,default:""},message:{type:String,default:""},variant:{type:String,default:""},duration:{type:Number,default:null,required:!1},position:{type:[String,Array],default:null,required:!1},withTransition:{type:Boolean,default:!1},closeButton:{type:Boolean,default:!1},undoButton:{type:Boolean,default:!1}},emits:[o3,i3],setup(t,{emit:e}){const n=a.ref(null),r=a.computed({get:()=>t.modelValue,set:u=>{e(o3,u)}}),o=a.computed(()=>t.variant?"is-"+t.variant:""),i=a.computed(()=>t.position?"toast-fixed "+t.position:""),s=a.computed(()=>t.withTransition&&"component-slide-right"),l=()=>{e(i3)},c=()=>{n.value=setTimeout(()=>{r.value=!1},t.duration)};return a.onBeforeUnmount(()=>{n.value&&(clearTimeout(n.value),n.value=null)}),a.watchEffect(()=>{r.value&&t.duration?c():n.value&&(clearTimeout(n.value),n.value=null)}),{show:r,statusClass:o,positionClass:i,computedTransition:s,startTimeout:c,undoAction:l}}}),RN=["aria-live"],LN={class:"message flex-grow"},VN=["aria-label"];function $N(t,e,n,r,o,i){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createBlock(a.Transition,{name:String(t.computedTransition),appear:""},{default:a.withCtx(()=>[t.show?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["toast flex gap-2",t.statusClass,t.positionClass]),role:"alert","aria-live":t.variant=="error"?"assertive":"polite","aria-atomic":"true"},[t.icon?(a.openBlock(),a.createBlock(s,{key:0,icon:t.icon,class:"status-icon",type:"fill","aria-hidden":"true"},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("span",LN,[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.message),1)],!0)]),t.undoButton?(a.openBlock(),a.createElementBlock("button",{key:1,class:"button-link",onClick:e[0]||(e[0]=l=>t.undoAction())},[a.renderSlot(t.$slots,"undo-message",{},()=>[a.createTextVNode(a.toDisplayString(t.$t("HC_UNDO")),1)],!0)])):a.createCommentVNode("",!0),t.closeButton?(a.openBlock(),a.createElementBlock("button",{key:2,class:"close-icon",onClick:e[1]||(e[1]=l=>t.show=!t.show),"aria-label":t.$t("HC_CLOSE")},[a.createVNode(s,{icon:"close",type:"line",color:"inkwell-30",class:"close","aria-hidden":"true"})],8,VN)):a.createCommentVNode("",!0)],10,RN)):a.createCommentVNode("",!0)]),_:3},8,["name"])}const FN=ce(BN,[["render",$N],["__scopeId","data-v-373e3b8b"]]),HN=a.defineComponent({name:"QTooltip",props:{id:{type:String,default:"tooltip"},color:{type:String,default:"inkwell-30"},noWrap:{type:Boolean,default:!0},position:{type:String,default:"bottom"},relative:{type:Boolean,default:!1}}}),_N=["aria-describedby"],zN=["id"];function jN(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:"tooltip-container","aria-describedby":t.id},[a.renderSlot(t.$slots,"trigger",{},void 0,!0),a.createElementVNode("div",{id:t.id,class:a.normalizeClass(["tooltip",t.color?"bg-"+t.color+" border-"+t.color:"",t.position,t.noWrap?"no-wrap":"",t.relative?"relative":""]),role:"tooltip"},[a.renderSlot(t.$slots,"content",{},void 0,!0)],10,zN)],8,_N)}const ZN=ce(HN,[["render",jN],["__scopeId","data-v-9d861ae7"]]);function Ue(t){this.content=t}Ue.prototype={constructor:Ue,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new Ue(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Ue(n)},addToStart:function(t,e){return new Ue([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Ue(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new Ue(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Ue.from(t),t.size?new Ue(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ue.from(t),t.size?new Ue(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ue.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},Ue.from=function(t){if(t instanceof Ue)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Ue(e)};function s3(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=s3(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function a3(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),l=e.child(--i),c=s.nodeSize;if(s==l){n-=c,r-=c;continue}if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let u=0,d=Math.min(s.text.length,l.text.length);for(;u<d&&s.text[s.text.length-u-1]==l.text[l.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(s.content.size||l.content.size){let u=a3(s.content,l.content,n-1,r-1);if(u)return u}n-=c,r-=c}}class A{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,l=0;l<n;s++){let c=this.content[s],u=l+c.nodeSize;if(u>e&&r(c,o+l,i||null,s)!==!1&&c.content.size){let d=l+1;c.nodesBetween(Math.max(0,e-d),Math.min(c.content.size,n-d),r,o+d)}l=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(l,c)=>{let u=l.isText?l.text.slice(Math.max(e,c)-c,n-c):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&r&&(s?s=!1:i+=r),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new A(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let l=this.content[i],c=s+l.nodeSize;c>e&&((s<e||c>n)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,n-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,n-s-1))),r.push(l),o+=l.nodeSize),s=c}return new A(r,o)}cutByIndex(e,n){return e==n?A.empty:e==0&&n==this.content.length?this:new A(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new A(o,i)}addToStart(e){return new A([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new A(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.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(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return s3(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return a3(this,e,n,r)}findIndex(e,n=-1){if(e==0)return Tl(0,e);if(e==this.size)return Tl(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||n>0?Tl(r+1,s):Tl(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return A.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new A(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return A.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new A(n||e,r)}static from(e){if(!e)return A.empty;if(e instanceof A)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new A([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}A.empty=new A([],0);const Su={index:0,offset:0};function Tl(t,e){return Su.index=t,Su.offset=e,Su}function Ml(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Ml(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Ml(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let me=class gf{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Ml(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);return r.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return gf.none;if(e instanceof gf)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};me.none=[];class xl extends Error{}class V{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=c3(this.content,e+this.openStart,n);return r&&new V(r,this.openStart,this.openEnd)}removeBetween(e,n){return new V(l3(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return V.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new V(A.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new V(e,r,o)}}V.empty=new V(A.empty,0,0);function l3(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:l}=t.findIndex(n);if(o==e||i.isText){if(l!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(l3(i.content,e-o-1,n-o-1)))}function c3(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),s=t.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=c3(s.content,e-i-1,n);return l&&t.replaceChild(o,s.copy(l))}function WN(t,e,n){if(n.openStart>t.depth)throw new xl("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new xl("Inconsistent open depths");return u3(t,e,n,0)}function u3(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let s=u3(t,e,n,r+1);return i.copy(i.content.replaceChild(o,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,l=s.content;return eo(s,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:s,end:l}=UN(n,t);return eo(i,f3(t,s,l,e,r))}else return eo(i,Pl(t,e,r))}function d3(t,e){if(!e.type.compatibleContent(t.type))throw new xl("Cannot join "+e.type.name+" onto "+t.type.name)}function ku(t,e,n){let r=t.node(n);return d3(r,e.node(n)),r}function Xr(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function _s(t,e,n,r){let o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Xr(t.nodeAfter,r),i++));for(let l=i;l<s;l++)Xr(o.child(l),r);e&&e.depth==n&&e.textOffset&&Xr(e.nodeBefore,r)}function eo(t,e){return t.type.checkContent(e),t.copy(e)}function f3(t,e,n,r,o){let i=t.depth>o&&ku(t,e,o+1),s=r.depth>o&&ku(n,r,o+1),l=[];return _s(null,t,o,l),i&&s&&e.index(o)==n.index(o)?(d3(i,s),Xr(eo(i,f3(t,e,n,r,o+1)),l)):(i&&Xr(eo(i,Pl(t,e,o+1)),l),_s(e,n,o,l),s&&Xr(eo(s,Pl(n,r,o+1)),l)),_s(r,null,o,l),new A(l)}function Pl(t,e,n){let r=[];if(_s(null,t,n,r),t.depth>n){let o=ku(t,e,n+1);Xr(eo(o,Pl(t,e,n+1)),r)}return _s(e,null,n,r),new A(r)}function UN(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(A.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class zs{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return me.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let l=r;r=o,o=l}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Dl(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let s=e;;){let{index:l,offset:c}=s.content.findIndex(i),u=i-c;if(r.push(s,l,o+c),!u||(s=s.child(l),s.isText))break;i=u-1,o+=c+1}return new zs(n,r,i)}static resolveCached(e,n){for(let o=0;o<Ou.length;o++){let i=Ou[o];if(i.pos==n&&i.doc==e)return i}let r=Ou[Eu]=zs.resolve(e,n);return Eu=(Eu+1)%KN,r}}let Ou=[],Eu=0,KN=12;class Dl{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}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 GN=Object.create(null);let to=class yf{constructor(e,n,r,o=me.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||A.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Ml(this.attrs,n||e.defaultAttrs||GN)&&me.sameSet(this.marks,r||me.none)}copy(e=null){return e==this.content?this:new yf(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new yf(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return V.empty;let o=this.resolve(e),i=this.resolve(n),s=r?0:o.sharedDepth(n),l=o.start(s),u=o.node(s).content.cut(o.pos-l,i.pos-l);return new V(u,o.depth-s,i.depth-s)}replace(e,n,r){return WN(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return zs.resolveCached(this,e)}resolveNoCache(e){return zs.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}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 e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),p3(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=A.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),l=s&&s.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let c=o;c<i;c++)if(!this.type.allowsMarks(r.child(c).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=me.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!me.sameSet(e,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 e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=A.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,r)}};to.prototype.text=void 0;class Al extends to{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):p3(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Al(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Al(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function p3(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class no{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new qN(e,n);if(r.next==null)return no.empty;let o=h3(r);r.next&&r.err("Unexpected trailing text");let i=nB(tB(o));return rB(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let i=n;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function i(s,l){let c=s.matchFragment(e,r);if(c&&(!n||c.validEnd))return A.from(l.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:d,next:f}=s.next[u];if(!(d.isText||d.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let p=i(f,l.concat(d));if(p)return p}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let l=o;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:c}=i.next[s];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!o.type||c.validEnd)&&(r.push({match:l.contentMatch,type:l,via:o}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
245
+ `)}}no.empty=new no(!0);class qN{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.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(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function h3(t){let e=[];do e.push(YN(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function YN(t){let e=[];do e.push(JN(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function JN(t){let e=eB(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=QN(t,e);else break;return e}function m3(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function QN(t,e){let n=m3(t),r=n;return t.eat(",")&&(t.next!="}"?r=m3(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function XN(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let s=n[i];s.groups.indexOf(e)>-1&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function eB(t){if(t.eat("(")){let e=h3(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=XN(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function tB(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,l,c){let u={term:c,to:l};return e[s].push(u),u}function o(s,l){s.forEach(c=>c.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((c,u)=>c.concat(i(u,l)),[]);if(s.type=="seq")for(let c=0;;c++){let u=i(s.exprs[c],l);if(c==s.exprs.length-1)return u;o(u,l=n())}else if(s.type=="star"){let c=n();return r(l,c),o(i(s.expr,c),c),[r(c)]}else if(s.type=="plus"){let c=n();return o(i(s.expr,l),c),o(i(s.expr,c),c),[r(c)]}else{if(s.type=="opt")return[r(l)].concat(i(s.expr,l));if(s.type=="range"){let c=l;for(let u=0;u<s.min;u++){let d=n();o(i(s.expr,c),d),c=d}if(s.max==-1)o(i(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let d=n();r(c,d),o(i(s.expr,c),d),c=d}return[r(c)]}else{if(s.type=="name")return[r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function g3(t,e){return e-t}function y3(t,e){let n=[];return r(e),n.sort(g3);function r(o){let i=t[o];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(o);for(let s=0;s<i.length;s++){let{term:l,to:c}=i[s];!l&&n.indexOf(c)==-1&&r(c)}}}function nB(t){let e=Object.create(null);return n(y3(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:l,to:c})=>{if(!l)return;let u;for(let d=0;d<o.length;d++)o[d][0]==l&&(u=o[d][1]);y3(t,c).forEach(d=>{u||o.push([l,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let i=e[r.join(",")]=new no(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let l=o[s][1].sort(g3);i.next.push({type:o[s][0],next:e[l.join(",")]||n(l)})}return i}}function rB(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],i=!o.validEnd,s=[];for(let l=0;l<o.next.length;l++){let{type:c,next:u}=o.next[l];s.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),r.indexOf(u)==-1&&r.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function b3(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function w3(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let i=t[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function v3(t){let e=Object.create(null);if(t)for(let n in t)e[n]=new oB(t[n]);return e}let C3=class q4{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=v3(r.attrs),this.defaultAttrs=b3(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==no.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:w3(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new to(this,this.computeAttrs(e),A.from(n),me.setFrom(r))}createChecked(e=null,n,r){return n=A.from(n),this.checkContent(n),new to(this,this.computeAttrs(e),n,me.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=A.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let o=this.contentMatch.matchFragment(n),i=o&&o.fillBefore(A.empty,!0);return i?new to(this,e,n.append(i),me.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:me.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,s)=>r[i]=new q4(i,n,s));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class oB{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Il{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=v3(o.attrs),this.excluded=null;let i=b3(this.attrs);this.instance=i?new me(this,i):null}create(e=null){return!e&&this.instance?this.instance:new me(this,w3(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Il(i,o++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}excludes(e){return this.excluded.indexOf(e)>-1}}class iB{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=Ue.from(e.nodes),n.marks=Ue.from(e.marks||{}),this.nodes=C3.compile(this.spec.nodes,this),this.marks=Il.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],s=i.spec.content||"",l=i.spec.marks;i.contentMatch=r[s]||(r[s]=no.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=l=="_"?null:l?S3(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:S3(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(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof C3){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,o)}text(e,n){let r=this.nodes.text;return new Al(r,r.defaultAttrs,e,me.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return to.fromJSON(this,e)}markFromJSON(e){return me.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function S3(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t.marks[o],s=i;if(i)n.push(i);else for(let l in t.marks){let c=t.marks[l];(o=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class Ko{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new T3(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new T3(this,n,!0);return r.addAll(e,n.from,n.to),V.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let i=this.tags[o];if(lB(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let s=this.styles[i],l=s.style;if(!(l.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(s.getAttrs){let c=s.getAttrs(n);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(e){let n=[];function r(o){let i=o.priority==null?50:o.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,o)}for(let o in e.marks){let i=e.marks[o].spec.parseDOM;i&&i.forEach(s=>{r(s=M3(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(s=>{r(s=M3(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Ko(e,Ko.schemaRules(e)))}}const k3={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},sB={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},O3={ol:!0,ul:!0},Nl=1,Bl=2,js=4;function E3(t,e,n){return e!=null?(e?Nl:0)|(e==="full"?Bl:0):t&&t.whitespace=="pre"?Nl|Bl:n&~js}class Rl{constructor(e,n,r,o,i,s,l){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=l,this.content=[],this.activeMarks=me.none,this.stashMarks=[],this.match=s||(l&js?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(A.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Nl)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=A.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(A.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,r=this.pendingMarks;n<r.length;n++){let o=r[n];(this.type?this.type.allowsMarkType(o.type):uB(o.type,e))&&!o.isInSet(this.activeMarks)&&(this.activeMarks=o.addToSet(this.activeMarks),this.pendingMarks=o.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!k3.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class T3{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let o=n.topNode,i,s=E3(null,n.preserveWhitespace,0)|(r?js:0);o?i=new Rl(o.type,o.attrs,me.none,me.none,!0,n.topMatch||o.type.contentMatch,s):r?i=new Rl(null,null,me.none,me.none,!0,null,s):i=new Rl(e.schema.topNodeType,null,me.none,me.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,n){let r=e.getAttribute("style");if(!r)return n();let o=this.readStyles(cB(r));if(!o)return;let[i,s]=o,l=this.top;for(let c=0;c<s.length;c++)this.removePendingMark(s[c],l);for(let c=0;c<i.length;c++)this.addPendingMark(i[c]);n();for(let c=0;c<i.length;c++)this.removePendingMark(i[c],l);for(let c=0;c<s.length;c++)this.addPendingMark(s[c])}addTextNode(e){let n=e.nodeValue,r=this.top;if(r.options&Bl||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(r.options&Nl)r.options&Bl?n=n.replace(/\r\n?/g,`
246
+ `):n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],i=e.previousSibling;(!o||i&&i.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n)),this.findInText(e)}else this.findInside(e)}addElement(e,n){let r=e.nodeName.toLowerCase(),o;O3.hasOwnProperty(r)&&this.parser.normalizeLists&&aB(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));if(i?i.ignore:sB.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let s,l=this.top,c=this.needsBlock;if(k3.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),s=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(l),this.needsBlock=c}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
247
+ `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=me.none,r=me.none;for(let o=0;o<e.length;o+=2)for(let i=void 0;;){let s=this.parser.matchStyle(e[o],e[o+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(l=>{s.clearMark(l)&&(r=l.addToSet(r))}):n=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(n),s.consuming===!1)i=s;else break}return[n,r]}addElementByRule(e,n,r){let o,i,s;n.node?(i=this.parser.schema.nodes[n.node],i.isLeaf?this.insertNode(i.create(n.attrs))||this.leafFallback(e):o=this.enter(i,n.attrs||null,n.preserveWhitespace)):(s=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(s));let l=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=e;typeof n.contentElement=="string"?c=e.querySelector(n.contentElement):typeof n.contentElement=="function"?c=n.contentElement(e):n.contentElement&&(c=n.contentElement),this.findAround(e,c,!0),this.addAll(c)}o&&this.sync(l)&&this.open--,s&&this.removePendingMark(s,l)}addAll(e,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,s=r==null?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let n,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],s=i.findWrapping(e);if(s&&(!n||n.length>s.length)&&(n=s,r=i,!s.length)||i.solid)break}if(!n)return!1;this.sync(r);for(let o=0;o<n.length;o++)this.enterInner(n[o],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let n=this.textblockFromContext();n&&this.enterInner(n)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let o=0;o<e.marks.length;o++)(!n.type||n.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,n,r){let o=this.findPlace(e.create(n));return o&&this.enterInner(e,n,!0,r),o}enterInner(e,n=null,r=!1,o){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=E3(e,o,i.options);i.options&js&&i.content.length==0&&(s|=js),this.nodes.push(new Rl(e,n,i.activeMarks,i.pendingMarks,r,null,s)),this.open++}closeExtra(e=!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(e));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(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(l,c)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;c>=i;c--)if(s(l-1,c))return!0;return!1}else{let d=c>0||c==0&&o?this.nodes[c].type:r&&c>=i?r.node(c-i).type:null;if(!d||d.name!=u&&d.groups.indexOf(u)==-1)return!1;c--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=dB(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==n)break}}}function aB(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&O3.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function lB(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function cB(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=e.exec(t);)r.push(n[1],n[2].trim());return r}function M3(t){let e={};for(let n in t)e[n]=t[n];return e}function uB(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let i=[],s=l=>{i.push(l);for(let c=0;c<l.edgeCount;c++){let{type:u,next:d}=l.edge(c);if(u==e||i.indexOf(d)<0&&s(d))return!0}};if(s(o.contentMatch))return!0}}function dB(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class dn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Tu(n).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let l=0,c=0;for(;l<i.length&&c<s.marks.length;){let u=s.marks[c];if(!this.marks[u.type.name]){c++;continue}if(!u.eq(i[l][0])||u.type.spec.spanning===!1)break;l++,c++}for(;l<i.length;)o=i.pop()[1];for(;c<s.marks.length;){let u=s.marks[c++],d=this.serializeMark(u,s.isInline,n);d&&(i.push([u,o]),o.appendChild(d.dom),o=d.contentDOM||d.dom)}}o.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=dn.renderSpec(Tu(n),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,o)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&dn.renderSpec(Tu(r),o(e,n))}static renderSpec(e,n,r=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let s,l=r?e.createElementNS(r,o):e.createElement(o),c=n[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?l.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):l.setAttribute(d,c[d])}}for(let d=u;d<n.length;d++){let f=n[d];if(f===0){if(d<n.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:p,contentDOM:h}=dn.renderSpec(e,f,r);if(l.appendChild(p),h){if(s)throw new RangeError("Multiple content holes");s=h}}}return{dom:l,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new dn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=x3(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return x3(e.marks)}}function x3(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Tu(t){return t.document||window.document}const P3=65535,D3=Math.pow(2,16);function fB(t,e){return t+e*D3}function A3(t){return t&P3}function pB(t){return(t-(t&P3))/D3}const I3=1,N3=2,Ll=4,B3=8;class Mu{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&B3)>0}get deletedBefore(){return(this.delInfo&(I3|Ll))>0}get deletedAfter(){return(this.delInfo&(N3|Ll))>0}get deletedAcross(){return(this.delInfo&Ll)>0}}class Tt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Tt.empty)return Tt.empty}recover(e){let n=0,r=A3(e);if(!this.inverted)for(let o=0;o<r;o++)n+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+n+pB(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let o=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?o:0);if(c>e)break;let u=this.ranges[l+i],d=this.ranges[l+s],f=c+u;if(e<=f){let p=u?e==c?-1:e==f?1:n:n,h=c+o+(p<0?0:d);if(r)return h;let m=e==(n<0?c:f)?null:fB(l/3,e-c),y=e==c?N3:e==f?I3:Ll;return(n<0?e!=c:e!=f)&&(y|=B3),new Mu(h,y,m)}o+=d-u}return r?e+o:new Mu(e+o,0,null)}touches(e,n){let r=0,o=A3(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?r:0);if(c>e)break;let u=this.ranges[l+i],d=c+u;if(e<=d&&l==o*3)return!0;r+=this.ranges[l+s]-u}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],l=s-(this.inverted?i:0),c=s+(this.inverted?0:i),u=this.ranges[o+n],d=this.ranges[o+r];e(l,l+u,c,c+d),i+=d-u}}invert(){return new Tt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Tt.empty:new Tt(e<0?[0,-e,0]:[0,0,e])}}Tt.empty=new Tt([]);class Go{constructor(e=[],n,r=0,o=e.length){this.maps=e,this.mirror=n,this.from=r,this.to=o}slice(e=0,n=this.maps.length){return new Go(this.maps,this.mirror,e,n)}copy(){return new Go(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,r=this.maps.length;n<e.maps.length;n++){let o=e.getMirror(n);this.appendMap(e.maps[n],o!=null&&o<n?r+o:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this.maps.length+e.maps.length;n>=0;n--){let o=e.getMirror(n);this.appendMap(e.maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new Go;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let o=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],l=s.mapResult(e,n);if(l.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,e=this.maps[c].recover(l.recover);continue}}o|=l.delInfo,e=l.pos}return r?e:new Mu(e,o,null)}}const xu=Object.create(null);class Xe{getMap(){return Tt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=xu[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in xu)throw new RangeError("Duplicate use of step JSON ID "+e);return xu[e]=n,n.prototype.jsonID=e,n}}class Ne{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new Ne(e,null)}static fail(e){return new Ne(null,e)}static fromReplace(e,n,r,o){try{return Ne.ok(e.replace(n,r,o))}catch(i){if(i instanceof xl)return Ne.fail(i.message);throw i}}}function Pu(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(Pu(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return A.fromArray(r)}class dr extends Xe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new V(Pu(n.content,(s,l)=>!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),n.openStart,n.openEnd);return Ne.fromReplace(e,this.from,this.to,i)}invert(){return new fn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new dr(n.pos,r.pos,this.mark)}merge(e){return e instanceof dr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new dr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new dr(n.from,n.to,e.markFromJSON(n.mark))}}Xe.jsonID("addMark",dr);class fn extends Xe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new V(Pu(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return Ne.fromReplace(e,this.from,this.to,r)}invert(){return new dr(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new fn(n.pos,r.pos,this.mark)}merge(e){return e instanceof fn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new fn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new fn(n.from,n.to,e.markFromJSON(n.mark))}}Xe.jsonID("removeMark",fn);class fr extends Xe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ne.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Ne.fromReplace(e,this.pos,this.pos+1,new V(A.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(r))return new fr(this.pos,n.marks[o]);return new fr(this.pos,this.mark)}}return new qo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new fr(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new fr(n.pos,e.markFromJSON(n.mark))}}Xe.jsonID("addNodeMark",fr);class qo extends Xe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ne.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Ne.fromReplace(e,this.pos,this.pos+1,new V(A.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new fr(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new qo(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new qo(n.pos,e.markFromJSON(n.mark))}}Xe.jsonID("removeNodeMark",qo);class $e extends Xe{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&Du(e,this.from,this.to)?Ne.fail("Structure replace would overwrite content"):Ne.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Tt([this.from,this.to-this.from,this.slice.size])}invert(e){return new $e(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new $e(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof $e)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?V.empty:new V(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new $e(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?V.empty:new V(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new $e(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new $e(n.from,n.to,V.fromJSON(e,n.slice),!!n.structure)}}Xe.jsonID("replace",$e);class Fe extends Xe{constructor(e,n,r,o,i,s,l=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=l}apply(e){if(this.structure&&(Du(e,this.from,this.gapFrom)||Du(e,this.gapTo,this.to)))return Ne.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Ne.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Ne.fromReplace(e,this.from,this.to,r):Ne.fail("Content does not fit in gap")}getMap(){return new Tt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new Fe(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||i>r.pos?null:new Fe(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,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 Fe(n.from,n.to,n.gapFrom,n.gapTo,V.fromJSON(e,n.slice),n.insert,!!n.structure)}}Xe.jsonID("replaceAround",Fe);function Du(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function hB(t,e,n,r){let o=[],i=[],s,l;t.doc.nodesBetween(e,n,(c,u,d)=>{if(!c.isInline)return;let f=c.marks;if(!r.isInSet(f)&&d.type.allowsMarkType(r.type)){let p=Math.max(u,e),h=Math.min(u+c.nodeSize,n),m=r.addToSet(f);for(let y=0;y<f.length;y++)f[y].isInSet(m)||(s&&s.to==p&&s.mark.eq(f[y])?s.to=h:o.push(s=new fn(p,h,f[y])));l&&l.to==p?l.to=h:i.push(l=new dr(p,h,r))}}),o.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function mB(t,e,n,r){let o=[],i=0;t.doc.nodesBetween(e,n,(s,l)=>{if(!s.isInline)return;i++;let c=null;if(r instanceof Il){let u=s.marks,d;for(;d=r.isInSet(u);)(c||(c=[])).push(d),u=d.removeFromSet(u)}else r?r.isInSet(s.marks)&&(c=[r]):c=s.marks;if(c&&c.length){let u=Math.min(l+s.nodeSize,n);for(let d=0;d<c.length;d++){let f=c[d],p;for(let h=0;h<o.length;h++){let m=o[h];m.step==i-1&&f.eq(o[h].style)&&(p=m)}p?(p.to=u,p.step=i):o.push({style:f,from:Math.max(l,e),to:u,step:i})}}}),o.forEach(s=>t.step(new fn(s.from,s.to,s.style)))}function gB(t,e,n,r=n.contentMatch){let o=t.doc.nodeAt(e),i=[],s=e+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),u=s+c.nodeSize,d=r.matchType(c.type);if(!d)i.push(new $e(s,u,V.empty));else{r=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||t.step(new fn(s,u,c.marks[f]));if(c.isText&&!n.spec.code){let f,p=/\r?\n|\r/g,h;for(;f=p.exec(c.text);)h||(h=new V(A.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),i.push(new $e(s+f.index,s+f.index+f[0].length,h))}}s=u}if(!r.validEnd){let l=r.fillBefore(A.empty,!0);t.replace(s,s,new V(l,0,0))}for(let l=i.length-1;l>=0;l--)t.step(i[l])}function yB(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Yo(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),i=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(i,s,n))return r;if(r==0||o.type.spec.isolating||!yB(o,i,s))break}return null}function bB(t,e,n){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),l=o.after(i+1),c=s,u=l,d=A.empty,f=0;for(let m=i,y=!1;m>n;m--)y||r.index(m)>0?(y=!0,d=A.from(r.node(m).copy(d)),f++):c--;let p=A.empty,h=0;for(let m=i,y=!1;m>n;m--)y||o.after(m+1)<o.end(m)?(y=!0,p=A.from(o.node(m).copy(p)),h++):u++;t.step(new Fe(c,u,s,l,new V(d.append(p),f,h),d.size-f,!0))}function Au(t,e,n=null,r=t){let o=wB(t,e),i=o&&vB(r,e);return i?o.map(R3).concat({type:e,attrs:n}).concat(i.map(R3)):null}function R3(t){return{type:t,attrs:null}}function wB(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return n.canReplaceWith(r,o,s)?i:null}function vB(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let c=(s.length?s[s.length-1]:e).contentMatch;for(let u=r;c&&u<o;u++)c=c.matchType(n.child(u).type);return!c||!c.validEnd?null:s}function CB(t,e,n){let r=A.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let l=n[s].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=A.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new Fe(o,i,o,i,new V(r,0,0),n.length,!0))}function SB(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,l)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&kB(t.doc,t.mapping.slice(i).map(l),r)){t.clearIncompatible(t.mapping.slice(i).map(l,1),r);let c=t.mapping.slice(i),u=c.map(l,1),d=c.map(l+s.nodeSize,1);return t.step(new Fe(u,d,u+1,d-1,new V(A.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function kB(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function OB(t,e,n,r,o){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,o||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Fe(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new V(A.from(s),0,0),1,!0))}function Jo(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let u=o.depth-1,d=n-2;u>i;u--,d--){let f=o.node(u),p=o.index(u);if(f.type.spec.isolating)return!1;let h=f.content.cutByIndex(p,f.childCount),m=r&&r[d+1];m&&(h=h.replaceChild(0,m.type.create(m.attrs)));let y=r&&r[d]||f;if(!f.canReplace(p+1,f.childCount)||!y.type.validContent(h))return!1}let l=o.indexAfter(i),c=r&&r[0];return o.node(i).canReplaceWith(l,l,c?c.type:o.node(i+1).type)}function EB(t,e,n=1,r){let o=t.doc.resolve(e),i=A.empty,s=A.empty;for(let l=o.depth,c=o.depth-n,u=n-1;l>c;l--,u--){i=A.from(o.node(l).copy(i));let d=r&&r[u];s=A.from(d?d.type.create(d.attrs,s):o.node(l).copy(s))}t.step(new $e(e,e,new V(i.append(s),n,n),!0))}function pr(t,e){let n=t.resolve(e),r=n.index();return L3(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function L3(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function Vl(t,e,n=-1){let r=t.resolve(e);for(let o=r.depth;;o--){let i,s,l=r.index(o);if(o==r.depth?(i=r.nodeBefore,s=r.nodeAfter):n>0?(i=r.node(o+1),l++,s=r.node(o).maybeChild(l)):(i=r.node(o).maybeChild(l-1),s=r.node(o+1)),i&&!i.isTextblock&&L3(i,s)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=n<0?r.before(o):r.after(o)}}function TB(t,e,n){let r=new $e(e-n,e+n,V.empty,!0);t.step(r)}function MB(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,n))return r.after(o+1);if(i<r.node(o).childCount)return null}return null}function V3(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let i=0;i<n.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=r.depth;s>=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,c=r.index(s)+(l>0?1:0),u=r.node(s),d=!1;if(i==1)d=u.canReplace(c,c,o);else{let f=u.contentMatchAt(c).findWrapping(o.firstChild.type);d=f&&u.canReplaceWith(c,c,f[0])}if(d)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function $l(t,e,n=e,r=V.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return $3(o,i,r)?new $e(e,n,r):new xB(o,i,r).fit()}function $3(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class xB{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=A.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=A.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,l=o.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let c=new V(i,s,l);return e>-1?new Fe(r.pos,e,this.$to.pos,this.$to.end(),c,n):c.size||r.pos!=this.$to.pos?new $e(r.pos,o.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let i=n.firstChild;if(n.childCount>1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}n=i.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=Iu(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let s=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:c,match:u}=this.frontier[l],d,f=null;if(n==1&&(s?u.matchType(s.type)||(f=u.fillBefore(A.from(s),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:l,parent:i,inject:f};if(n==2&&s&&(d=u.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:l,parent:i,wrap:d};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=Iu(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new V(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=Iu(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new V(Zs(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new V(Zs(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:o,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let y=0;y<i.length;y++)this.openFrontierNode(i[y]);let s=this.unplaced,l=r?r.content:s.content,c=s.openStart-e,u=0,d=[],{match:f,type:p}=this.frontier[n];if(o){for(let y=0;y<o.childCount;y++)d.push(o.child(y));f=f.matchFragment(o)}let h=l.size+e-(s.content.size-s.openEnd);for(;u<l.childCount;){let y=l.child(u),g=f.matchType(y.type);if(!g)break;u++,(u>1||c==0||y.content.size)&&(f=g,d.push(F3(y.mark(p.allowedMarks(y.marks)),u==1?c:0,u==l.childCount?h:-1)))}let m=u==l.childCount;m||(h=-1),this.placed=Ws(this.placed,n,A.from(d)),this.frontier[n].match=f,m&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,g=l;y<h;y++){let b=g.lastChild;this.frontier.push({type:b.type,match:b.contentMatchAt(b.childCount)}),g=b.content}this.unplaced=m?e==0?V.empty:new V(Zs(s.content,e-1,1),e-1,h<0?s.openEnd:e-1):new V(Zs(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Nu(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,o=this.$to.after(r);for(;r>1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:o}=this.frontier[n],i=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=Nu(e,n,o,r,i);if(s){for(let l=n-1;l>=0;l--){let{match:c,type:u}=this.frontier[l],d=Nu(e,l,u,c,!0);if(!d||d.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Ws(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let o=e.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,n=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=Ws(this.placed,this.depth,A.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(A.empty,!0);n.childCount&&(this.placed=Ws(this.placed,this.frontier.length,n))}}function Zs(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Zs(t.firstChild.content,e-1,n)))}function Ws(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Ws(t.lastChild.content,e-1,n)))}function Iu(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function F3(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,F3(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(A.empty,!0)))),t.copy(r)}function Nu(t,e,n,r,o){let i=t.node(e),s=o?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,!0,s);return l&&!PB(n,i.content,s)?l:null}function PB(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function DB(t){return t.spec.defining||t.spec.definingForContent}function AB(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),i=t.doc.resolve(n);if($3(o,i,r))return t.step(new $e(e,n,r));let s=_3(o,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let l=-(o.depth+1);s.unshift(l);for(let p=o.depth,h=o.pos-1;p>0;p--,h--){let m=o.node(p).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;s.indexOf(p)>-1?l=p:o.before(p)==h&&s.splice(1,0,-p)}let c=s.indexOf(l),u=[],d=r.openStart;for(let p=r.content,h=0;;h++){let m=p.firstChild;if(u.push(m),h==r.openStart)break;p=m.content}for(let p=d-1;p>=0;p--){let h=u[p],m=DB(h.type);if(m&&!h.sameMarkup(o.node(Math.abs(l)-1)))d=p;else if(m||!h.type.isTextblock)break}for(let p=r.openStart;p>=0;p--){let h=(p+d+1)%(r.openStart+1),m=u[h];if(m)for(let y=0;y<s.length;y++){let g=s[(y+c)%s.length],b=!0;g<0&&(b=!1,g=-g);let w=o.node(g-1),C=o.index(g-1);if(w.canReplaceWith(C,C,m.type,m.marks))return t.replace(o.before(g),b?i.after(g):n,new V(H3(r.content,0,r.openStart,h),h,r.openEnd))}}let f=t.steps.length;for(let p=s.length-1;p>=0&&(t.replace(e,n,r),!(t.steps.length>f));p--){let h=s[p];h<0||(e=o.before(h),n=i.after(h))}}function H3(t,e,n,r,o){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(H3(i.content,e+1,n,r,i)))}if(e>r){let i=o.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(A.empty,!0))}return t}function IB(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=MB(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new V(A.from(r),0,0))}function NB(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=_3(r,o);for(let s=0;s<i.length;s++){let l=i[s],c=s==i.length-1;if(c&&l==0||r.node(l).type.contentMatch.validEnd)return t.delete(r.start(l),o.end(l));if(l>0&&(c||r.node(l-1).canReplace(r.index(l-1),o.indexAfter(l-1))))return t.delete(r.before(l),o.after(l))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&o.end(s)-n!=o.depth-s)return t.delete(r.before(s),n);t.delete(e,n)}function _3(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let o=r;o>=0;o--){let i=t.start(o);if(i<t.pos-(t.depth-o)||e.end(o)>e.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class Qo extends Xe{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ne.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return Ne.fromReplace(e,this.pos,this.pos+1,new V(A.from(o),0,n.isLeaf?0:1))}getMap(){return Tt.empty}invert(e){return new Qo(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Qo(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Qo(n.pos,n.attr,n.value)}}Xe.jsonID("attr",Qo);class Us extends Xe{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let o in e.attrs)n[o]=e.attrs[o];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Ne.ok(r)}getMap(){return Tt.empty}invert(e){return new Us(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Us(n.attr,n.value)}}Xe.jsonID("docAttr",Us);let Xo=class extends Error{};Xo=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},Xo.prototype=Object.create(Error.prototype),Xo.prototype.constructor=Xo,Xo.prototype.name="TransformError";class z3{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Go}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Xo(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=V.empty){let o=$l(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new V(A.from(r),0,0))}delete(e,n){return this.replace(e,n,V.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return AB(this,e,n,r),this}replaceRangeWith(e,n,r){return IB(this,e,n,r),this}deleteRange(e,n){return NB(this,e,n),this}lift(e,n){return bB(this,e,n),this}join(e,n=1){return TB(this,e,n),this}wrap(e,n){return CB(this,e,n),this}setBlockType(e,n=e,r,o=null){return SB(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return OB(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new Qo(e,n,r)),this}setDocAttribute(e,n){return this.step(new Us(e,n)),this}addNodeMark(e,n){return this.step(new fr(e,n)),this}removeNodeMark(e,n){if(!(n instanceof me)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new qo(e,n)),this}split(e,n=1,r){return EB(this,e,n,r),this}addMark(e,n,r){return hB(this,e,n,r),this}removeMark(e,n,r){return mB(this,e,n,r),this}clearIncompatible(e,n,r){return gB(this,e,n,r),this}}const Bu=Object.create(null);class J{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new BB(e.min(n),e.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 e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=V.empty){let r=n.content.lastChild,o=null;for(let l=0;l<n.openEnd;l++)o=r,r=r.lastChild;let i=e.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:c,$to:u}=s[l],d=e.mapping.slice(i);e.replaceRange(d.map(c.pos),d.map(u.pos),l?V.empty:n),l==0&&W3(e,i,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,o=this.ranges;for(let i=0;i<o.length;i++){let{$from:s,$to:l}=o[i],c=e.mapping.slice(r),u=c.map(s.pos),d=c.map(l.pos);i?e.deleteRange(u,d):(e.replaceRangeWith(u,d,n),W3(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new G(e):ei(e.node(0),e.parent,e.pos,e.index(),n,r);if(o)return o;for(let i=e.depth-1;i>=0;i--){let s=n<0?ei(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):ei(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Xt(e.node(0))}static atStart(e){return ei(e,e,0,0,1)||new Xt(e)}static atEnd(e){return ei(e,e,e.content.size,e.childCount,-1)||new Xt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Bu[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Bu)throw new RangeError("Duplicate use of selection JSON ID "+e);return Bu[e]=n,n.prototype.jsonID=e,n}getBookmark(){return G.between(this.$anchor,this.$head).getBookmark()}}J.prototype.visible=!0;class BB{constructor(e,n){this.$from=e,this.$to=n}}let j3=!1;function Z3(t){!j3&&!t.parent.inlineContent&&(j3=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class G extends J{constructor(e,n=e){Z3(e),Z3(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return J.near(r);let o=e.resolve(n.map(this.anchor));return new G(o.parent.inlineContent?o:r,r)}replace(e,n=V.empty){if(super.replace(e,n),n==V.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof G&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Fl(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new G(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let o=e.resolve(n);return new this(o,r==n?o:e.resolve(r))}static between(e,n,r){let o=e.pos-n.pos;if((!r||o)&&(r=o>=0?1:-1),!n.parent.inlineContent){let i=J.findFrom(n,r,!0)||J.findFrom(n,-r,!0);if(i)n=i.$head;else return J.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(J.findFrom(e,-r,!0)||J.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new G(e,n)}}J.jsonID("text",G);class Fl{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Fl(e.map(this.anchor),e.map(this.head))}resolve(e){return G.between(e.resolve(this.anchor),e.resolve(this.head))}}class Z extends J{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:o}=n.mapResult(this.anchor),i=e.resolve(o);return r?J.near(i):new Z(i)}content(){return new V(A.from(this.node),0,0)}eq(e){return e instanceof Z&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Ru(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Z(e.resolve(n.anchor))}static create(e,n){return new Z(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Z.prototype.visible=!1,J.jsonID("node",Z);class Ru{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new Fl(r,r):new Ru(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&Z.isSelectable(r)?new Z(n):J.near(n)}}class Xt extends J{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=V.empty){if(n==V.empty){e.delete(0,e.doc.content.size);let r=J.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Xt(e)}map(e){return new Xt(e)}eq(e){return e instanceof Xt}getBookmark(){return RB}}J.jsonID("all",Xt);const RB={map(){return this},resolve(t){return new Xt(t)}};function ei(t,e,n,r,o,i=!1){if(e.inlineContent)return G.create(t,n);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let l=e.child(s);if(l.isAtom){if(!i&&Z.isSelectable(l))return Z.create(t,n-(o<0?l.nodeSize:0))}else{let c=ei(t,l,n+o,o<0?l.childCount:0,o,i);if(c)return c}n+=l.nodeSize*o}return null}function W3(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof $e||o instanceof Fe))return;let i=t.mapping.maps[r],s;i.forEach((l,c,u,d)=>{s==null&&(s=d)}),t.setSelection(J.near(t.doc.resolve(s),n))}const U3=1,Hl=2,K3=4;class LB extends z3{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.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(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|U3)&~Hl,this.storedMarks=null,this}get selectionSet(){return(this.updated&U3)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Hl,this}ensureMarks(e){return me.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Hl)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Hl,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||me.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,i)),this.selection.empty||this.setSelection(J.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=K3,this}get scrolledIntoView(){return(this.updated&K3)>0}}function G3(t,e){return!e||!t?t:t.bind(e)}class Ks{constructor(e,n,r){this.name=e,this.init=G3(n.init,r),this.apply=G3(n.apply,r)}}const VB=[new Ks("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Ks("selection",{init(t,e){return t.selection||J.atStart(e.doc)},apply(t){return t.selection}}),new Ks("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Ks("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Lu{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=VB.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Ks(r.key,r.spec.state,r))})}}class ti{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let o=this.config.plugins[r];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),o=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 c=o?o[s].n:0,u=o?o[s].state:this,d=c<n.length&&l.spec.appendTransaction.call(l,c?n.slice(c):n,u,r);if(d&&r.filterTransaction(d,s)){if(d.setMeta("appendedTransaction",e),!o){o=[];for(let f=0;f<this.config.plugins.length;f++)o.push(f<s?{state:r,n:n.length}:{state:this,n:0})}n.push(d),r=r.applyInner(d),i=!0}o&&(o[s]={state:r,n:n.length})}}if(!i)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new ti(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let i=r[o];n[i.name]=i.apply(e,this[i.name],this,n)}return n}get tr(){return new LB(this)}static create(e){let n=new Lu(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new ti(n);for(let o=0;o<n.fields.length;o++)r[n.fields[o].name]=n.fields[o].init(e,r);return r}reconfigure(e){let n=new Lu(this.schema,e.plugins),r=n.fields,o=new ti(n);for(let i=0;i<r.length;i++){let s=r[i].name;o[s]=this.hasOwnProperty(s)?this[s]:r[i].init(e,o)}return o}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],i=o.spec.state;i&&i.toJSON&&(n[r]=i.toJSON.call(o,this[o.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new Lu(e.schema,e.plugins),i=new ti(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=to.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=J.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let c=r[l],u=c.spec.state;if(c.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){i[s.name]=u.fromJSON.call(c,e,n[l],i);return}}i[s.name]=s.init(e,i)}}),i}}function q3(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=q3(o,e,{})),n[r]=o}return n}class Ke{constructor(e){this.spec=e,this.props={},e.props&&q3(e.props,this,this.props),this.key=e.key?e.key.key:Y3("plugin")}getState(e){return e[this.key]}}const Vu=Object.create(null);function Y3(t){return t in Vu?t+"$"+ ++Vu[t]:(Vu[t]=0,t+"$")}class Mt{constructor(e="key"){this.key=Y3(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const ct=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Gs=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let J3=null;const Ln=function(t,e,n){let r=J3||(J3=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},ro=function(t,e,n,r){return n&&(Q3(t,e,n,r,-1)||Q3(t,e,n,r,1))},$B=/^(img|br|input|textarea|hr)$/i;function Q3(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:pn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||$u(t)||$B.test(t.nodeName)||t.contentEditable=="false")return!1;e=ct(t)+(o<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(o<0?-1:0)],t.contentEditable=="false")return!1;e=o<0?pn(t):0}else return!1}}function pn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function FB(t,e,n){for(let r=e==0,o=e==pn(t);r||o;){if(t==n)return!0;let i=ct(t);if(t=t.parentNode,!t)return!1;r=r&&i==0,o=o&&i==pn(t)}}function $u(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const _l=function(t){return t.focusNode&&ro(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function oo(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function HB(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function _B(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const hn=typeof navigator<"u"?navigator:null,X3=typeof document<"u"?document:null,hr=hn&&hn.userAgent||"",Fu=/Edge\/(\d+)/.exec(hr),ey=/MSIE \d/.exec(hr),Hu=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(hr),wt=!!(ey||Hu||Fu),mr=ey?document.documentMode:Hu?+Hu[1]:Fu?+Fu[1]:0,en=!wt&&/gecko\/(\d+)/i.test(hr);en&&+(/Firefox\/(\d+)/.exec(hr)||[0,0])[1];const _u=!wt&&/Chrome\/(\d+)/.exec(hr),et=!!_u,zB=_u?+_u[1]:0,ut=!wt&&!!hn&&/Apple Computer/.test(hn.vendor),ni=ut&&(/Mobile\/\w+/.test(hr)||!!hn&&hn.maxTouchPoints>2),Ht=ni||(hn?/Mac/.test(hn.platform):!1),jB=hn?/Win/.test(hn.platform):!1,tn=/Android \d/.test(hr),qs=!!X3&&"webkitFontSmoothing"in X3.documentElement.style,ZB=qs?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function WB(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Vn(t,e){return typeof t=="number"?t:t[e]}function UB(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function ty(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;s=Gs(s)){if(s.nodeType!=1)continue;let l=s,c=l==i.body,u=c?WB(i):UB(l),d=0,f=0;if(e.top<u.top+Vn(r,"top")?f=-(u.top-e.top+Vn(o,"top")):e.bottom>u.bottom-Vn(r,"bottom")&&(f=e.bottom-e.top>u.bottom-u.top?e.top+Vn(o,"top")-u.top:e.bottom-u.bottom+Vn(o,"bottom")),e.left<u.left+Vn(r,"left")?d=-(u.left-e.left+Vn(o,"left")):e.right>u.right-Vn(r,"right")&&(d=e.right-u.right+Vn(o,"right")),d||f)if(c)i.defaultView.scrollBy(d,f);else{let p=l.scrollLeft,h=l.scrollTop;f&&(l.scrollTop+=f),d&&(l.scrollLeft+=d);let m=l.scrollLeft-p,y=l.scrollTop-h;e={left:e.left-m,top:e.top-y,right:e.right-m,bottom:e.bottom-y}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function KB(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,o;for(let i=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let l=t.root.elementFromPoint(i,s);if(!l||l==t.dom||!t.dom.contains(l))continue;let c=l.getBoundingClientRect();if(c.top>=n-20){r=l,o=c.top;break}}return{refDOM:r,refTop:o,stack:ny(t.dom)}}function ny(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Gs(r));return e}function GB({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;ry(n,r==0?0:r-e)}function ry(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:o,left:i}=t[n];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let ri=null;function qB(t){if(t.setActive)return t.setActive();if(ri)return t.focus(ri);let e=ny(t);t.focus(ri==null?{get preventScroll(){return ri={preventScroll:!0},!0}}:void 0),ri||(ri=!1,ry(e,0))}function oy(t,e){let n,r=2e8,o,i=0,s=e.top,l=e.top,c,u;for(let d=t.firstChild,f=0;d;d=d.nextSibling,f++){let p;if(d.nodeType==1)p=d.getClientRects();else if(d.nodeType==3)p=Ln(d).getClientRects();else continue;for(let h=0;h<p.length;h++){let m=p[h];if(m.top<=s&&m.bottom>=l){s=Math.max(m.bottom,s),l=Math.min(m.top,l);let y=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(y<r){n=d,r=y,o=y&&n.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,d.nodeType==1&&y&&(i=f+(e.left>=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!c&&m.left<=e.left&&m.right>=e.left&&(c=d,u={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!n&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(i=f+1)}}return!n&&c&&(n=c,o=u,r=0),n&&n.nodeType==3?YB(n,o):!n||r&&n.nodeType==1?{node:t,offset:i}:oy(n,o)}function YB(t,e){let n=t.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let i=gr(r,1);if(i.top!=i.bottom&&zu(e,i))return{node:t,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function zu(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function JB(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function QB(t,e,n){let{node:r,offset:o}=oy(e,n),i=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();i=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,o,i)}function XB(t,e,n,r){let o=-1;for(let i=e,s=!1;i!=t.dom;){let l=t.docView.nearestDesc(i,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!s||!l.contentDOM)){let c=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!s&&(s=!0,c.left>r.left||c.top>r.top?o=l.posBefore:(c.right<r.left||c.bottom<r.top)&&(o=l.posAfter)),!l.contentDOM&&o<0&&!l.node.isText)return(l.node.isBlock?r.top<(c.top+c.bottom)/2:r.left<(c.left+c.right)/2)?l.posBefore:l.posAfter}i=l.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}function iy(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let s=t.childNodes[i];if(s.nodeType==1){let l=s.getClientRects();for(let c=0;c<l.length;c++){let u=l[c];if(zu(e,u))return iy(s,e,u)}}if((i=(i+1)%r)==o)break}return t}function eR(t,e){let n=t.dom.ownerDocument,r,o=0,i=_B(n,e.left,e.top);i&&({node:r,offset:o}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),l;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let u=t.dom.getBoundingClientRect();if(!zu(e,u)||(s=iy(t.dom,e,u),!s))return null}if(ut)for(let u=s;r&&u;u=Gs(u))u.draggable&&(r=void 0);if(s=JB(s,e),r){if(en&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let d=r.childNodes[o],f;d.nodeName=="IMG"&&(f=d.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&o++}let u;qs&&o&&r.nodeType==1&&(u=r.childNodes[o-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&o--,r==t.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?l=t.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(l=XB(t,r,o,e))}l==null&&(l=QB(t,s,e));let c=t.docView.nearestDesc(s,!0);return{pos:l,inside:c?c.posAtStart-c.border:-1}}function sy(t){return t.top<t.bottom||t.left<t.right}function gr(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(sy(r))return r}return Array.prototype.find.call(n,sy)||t.getBoundingClientRect()}const tR=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function ay(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=qs||en;if(r.nodeType==3)if(s&&(tR.test(r.nodeValue)||(n<0?!o:o==r.nodeValue.length))){let c=gr(Ln(r,o,o),n);if(en&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let u=gr(Ln(r,o-1,o-1),-1);if(u.top==c.top){let d=gr(Ln(r,o,o+1),-1);if(d.top!=c.top)return Ys(d,d.left<u.left)}}return c}else{let c=o,u=o,d=n<0?1:-1;return n<0&&!o?(u++,d=-1):n>=0&&o==r.nodeValue.length?(c--,d=1):n<0?c--:u++,Ys(gr(Ln(r,c,u),d),d<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==pn(r))){let c=r.childNodes[o-1];if(c.nodeType==1)return ju(c.getBoundingClientRect(),!1)}if(i==null&&o<pn(r)){let c=r.childNodes[o];if(c.nodeType==1)return ju(c.getBoundingClientRect(),!0)}return ju(r.getBoundingClientRect(),n>=0)}if(i==null&&o&&(n<0||o==pn(r))){let c=r.childNodes[o-1],u=c.nodeType==3?Ln(c,pn(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return Ys(gr(u,1),!1)}if(i==null&&o<pn(r)){let c=r.childNodes[o];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let u=c?c.nodeType==3?Ln(c,0,s?0:1):c.nodeType==1?c:null:null;if(u)return Ys(gr(u,-1),!0)}return Ys(gr(r.nodeType==3?Ln(r):r,-n),n>=0)}function Ys(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function ju(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function ly(t,e,n){let r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}function nR(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return ly(t,e,()=>{let{node:i}=t.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let l=t.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let s=ay(t,o.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let c;if(l.nodeType==1)c=l.getClientRects();else if(l.nodeType==3)c=Ln(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;u<c.length;u++){let d=c[u];if(d.bottom>d.top+1&&(n=="up"?s.top-d.top>(d.bottom-s.top)*2:d.bottom-s.bottom>(s.bottom-d.top)*2))return!1}}return!0})}const rR=/[\u0590-\u08ac]/;function oR(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,l=t.domSelection();return!rR.test(r.parent.textContent)||!l.modify?n=="left"||n=="backward"?i:s:ly(t,e,()=>{let{focusNode:c,focusOffset:u,anchorNode:d,anchorOffset:f}=t.domSelectionRange(),p=l.caretBidiLevel;l.modify("move",n,"character");let h=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:m,focusOffset:y}=t.domSelectionRange(),g=m&&!h.contains(m.nodeType==1?m:m.parentNode)||c==m&&u==y;try{l.collapse(d,f),c&&(c!=d||u!=f)&&l.extend&&l.extend(c,u)}catch{}return p!=null&&(l.caretBidiLevel=p),g})}let cy=null,uy=null,dy=!1;function iR(t,e,n){return cy==e&&uy==n?dy:(cy=e,uy=n,dy=n=="up"||n=="down"?nR(t,e,n):oR(t,e,n))}const _t=0,fy=1,io=2,mn=3;class Js{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=_t,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let o=this.children[n];if(o==e)return r;r+=o.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(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let i,s;if(e==this.contentDOM)i=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.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(e==this.contentDOM)i=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=n>ct(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),s;if(i&&(!n||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],i=r+o.size;if(r==e&&i!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<i)return o.descAt(e-r-o.border);r=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let i=0;r<this.children.length;r++){let s=this.children[r],l=i+s.size;if(l>e||s instanceof my){o=e-i;break}i=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof py&&i.side>=0;r--);if(n<=0){let i,s=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?ct(i.dom)+1:0}}else{let i,s=!0;for(;i=r<this.children.length?this.children[r]:null,!(!i||i.dom.parentNode==this.contentDOM);r++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?ct(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,i=-1;for(let s=r,l=0;;l++){let c=this.children[l],u=s+c.size;if(o==-1&&e<=u){let d=s+c.border;if(e>=d&&n<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,n,d);e=s;for(let f=l;f>0;f--){let p=this.children[f-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){o=ct(p.dom)+1;break}e-=p.size}o==-1&&(o=0)}if(o>-1&&(u>n||l==this.children.length-1)){n=u;for(let d=l+1;d<this.children.length;d++){let f=this.children[d];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=ct(f.dom);break}n+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}return{node:this.contentDOM,from:e,to:n,fromOffset:o,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,o=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let p=0,h=0;p<this.children.length;p++){let m=this.children[p],y=h+m.size;if(i>h&&s<y)return m.setSelection(e-h-m.border,n-h-m.border,r,o);h=y}let l=this.domFromPos(e,e?-1:1),c=n==e?l:this.domFromPos(n,n?-1:1),u=r.getSelection(),d=!1;if((en||ut)&&e==n){let{node:p,offset:h}=l;if(p.nodeType==3){if(d=!!(h&&p.nodeValue[h-1]==`
248
+ `),d&&h==p.nodeValue.length)for(let m=p,y;m;m=m.parentNode){if(y=m.nextSibling){y.nodeName=="BR"&&(l=c={node:y.parentNode,offset:ct(y)+1});break}let g=m.pmViewDesc;if(g&&g.node&&g.node.isBlock)break}}else{let m=p.childNodes[h-1];d=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(en&&u.focusNode&&u.focusNode!=c.node&&u.focusNode.nodeType==1){let p=u.focusNode.childNodes[u.focusOffset];p&&p.contentEditable=="false"&&(o=!0)}if(!(o||d&&ut)&&ro(l.node,l.offset,u.anchorNode,u.anchorOffset)&&ro(c.node,c.offset,u.focusNode,u.focusOffset))return;let f=!1;if((u.extend||e==n)&&!d){u.collapse(l.node,l.offset);try{e!=n&&u.extend(c.node,c.offset),f=!0}catch{}}if(!f){if(e>n){let h=l;l=c,c=h}let p=document.createRange();p.setEnd(c.node,c.offset),p.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(p)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o<this.children.length;o++){let i=this.children[o],s=r+i.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let l=r+i.border,c=s-i.border;if(e>=l&&n<=c){this.dirty=e==r||n==s?io:fy,e==l&&n==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=mn:i.markDirty(e-l,n-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?io:mn}r=s}this.dirty=io}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?io:fy;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class py extends Js{constructor(e,n,r,o){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return o;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(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==_t&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.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 sR extends Js{constructor(e,n,r,o){super(e,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class so extends Js{constructor(e,n,r,o){super(e,[],r,o),this.mark=n}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=dn.renderSpec(document,n.type.spec.toDOM(n,r))),new so(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&mn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=mn&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=_t){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=_t}}slice(e,n,r){let o=so.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=Uu(i,n,s,r)),e>0&&(i=Uu(i,0,e,r));for(let l=0;l<i.length;l++)i[l].parent=o;return o.children=i,o}}class yr extends Js{constructor(e,n,r,o,i,s,l,c,u){super(e,[],i,s),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=l}static create(e,n,r,o,i,s){let l=i.nodeViews[n.type.name],c,u=l&&l(n,i,()=>{if(!c)return s;if(c.parent)return c.parent.posBeforeChild(c)},r,o),d=u&&u.dom,f=u&&u.contentDOM;if(n.isText){if(!d)d=document.createTextNode(n.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:f}=dn.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),n.type.spec.draggable&&(d.draggable=!0));let p=d;return d=by(d,r,n),u?c=new aR(e,n,r,o,d,f||null,p,u,i,s+1):n.isText?new zl(e,n,r,o,d,p,i):new yr(e,n,r,o,d,f||null,p,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>A.empty)}return e}matchesNode(e,n,r){return this.dirty==_t&&e.eq(this.node)&&Wu(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,o=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,l=i&&i.pos<0,c=new cR(this,s&&s.node,e);fR(this.node,this.innerDeco,(u,d,f)=>{u.spec.marks?c.syncToMarks(u.spec.marks,r,e):u.type.side>=0&&!f&&c.syncToMarks(d==this.node.childCount?me.none:this.node.child(d).marks,r,e),c.placeWidget(u,e,o)},(u,d,f,p)=>{c.syncToMarks(u.marks,r,e);let h;c.findNodeMatch(u,d,f,p)||l&&e.state.selection.from>o&&e.state.selection.to<o+u.nodeSize&&(h=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,d,f,h,e)||c.updateNextNode(u,d,f,e,p,o)||c.addNode(u,d,f,e,o),o+=u.nodeSize}),c.syncToMarks([],r,e),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==io)&&(s&&this.protectLocalComposition(e,s),gy(this.contentDOM,this.children,e),ni&&pR(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof G)||r<n||o>n+this.node.content.size)return null;let i=e.domSelectionRange(),s=hR(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let l=s.nodeValue,c=mR(this.node.content,l,r-n,o-n);return c<0?null:{node:s,pos:c,text:l}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){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 sR(this,i,n,o);e.input.compositionNodes.push(s),this.children=Uu(this.children,r,r+o.length,e,s)}update(e,n,r,o){return this.dirty==mn||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,o),!0)}updateInner(e,n,r,o){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=_t}updateOuterDeco(e){if(Wu(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=yy(this.dom,this.nodeDOM,Zu(this.outerDeco,this.node,n),Zu(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}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 hy(t,e,n,r,o){by(r,e,t);let i=new yr(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class zl extends yr{constructor(e,n,r,o,i,s,l){super(e,n,r,o,i,null,s,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,o){return this.dirty==mn||this.dirty!=_t&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=_t||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=_t,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let o=this.node.cut(e,n),i=document.createTextNode(o.text);return new zl(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=mn)}get domAtom(){return!1}}class my extends Js{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==_t&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class aR extends yr{constructor(e,n,r,o,i,s,l,c,u,d){super(e,n,r,o,i,s,l,u,d),this.spec=c}update(e,n,r,o){if(this.dirty==mn)return!1;if(this.spec.update){let i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function gy(t,e,n){let r=t.firstChild,o=!1;for(let i=0;i<e.length;i++){let s=e[i],l=s.dom;if(l.parentNode==t){for(;l!=r;)r=wy(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(l,r);if(s instanceof so){let c=r?r.previousSibling:t.lastChild;gy(s.contentDOM,s.children,n),r=c?c.nextSibling:t.firstChild}}for(;r;)r=wy(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const Qs=function(t){t&&(this.nodeName=t)};Qs.prototype=Object.create(null);const ao=[new Qs];function Zu(t,e,n){if(t.length==0)return ao;let r=n?ao[0]:new Qs,o=[r];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&o.push(r=new Qs(s.nodeName));for(let l in s){let c=s[l];c!=null&&(n&&o.length==1&&o.push(r=new Qs(e.isInline?"span":"div")),l=="class"?r.class=(r.class?r.class+" ":"")+c:l=="style"?r.style=(r.style?r.style+";":"")+c:l!="nodeName"&&(r[l]=c))}}}return o}function yy(t,e,n,r){if(n==ao&&r==ao)return e;let o=e;for(let i=0;i<r.length;i++){let s=r[i],l=n[i];if(i){let c;l&&l.nodeName==s.nodeName&&o!=t&&(c=o.parentNode)&&c.nodeName.toLowerCase()==s.nodeName||(c=document.createElement(s.nodeName),c.pmIsDeco=!0,c.appendChild(o),l=ao[0]),o=c}lR(o,l||ao[0],s)}return o}function lR(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&t.classList.remove(r[i]);for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&t.classList.add(o[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=r.exec(e.style);)t.style.removeProperty(o[1])}n.style&&(t.style.cssText+=n.style)}}function by(t,e,n){return yy(t,t,ao,Zu(e,n,t.nodeType!=1))}function Wu(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function wy(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class cR{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=uR(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r){let o=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;o<s&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=_t,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let c=this.index;c<Math.min(this.index+3,this.top.children.length);c++){let u=this.top.children[c];if(u.matchesMark(e[i])&&!this.isLocked(u.dom)){l=c;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let c=so.create(this.top,e[i],n,r);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))i=this.top.children.indexOf(s,this.index);else for(let l=this.index,c=Math.min(this.top.children.length,l+5);l<c;l++){let u=this.top.children[l];if(u.matchesNode(e,n,r)&&!this.preMatch.matched.has(u)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,r,o,i){let s=this.top.children[o];return s.dirty==mn&&s.dom==s.contentDOM&&(s.dirty=io),s.update(e,n,r,i)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==r)return o}return-1}e=n}}updateNextNode(e,n,r,o,i,s){for(let l=this.index;l<this.top.children.length;l++){let c=this.top.children[l];if(c instanceof yr){let u=this.preMatch.matched.get(c);if(u!=null&&u!=i)return!1;let d=c.dom,f,p=this.isLocked(d)&&!(e.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==e.text&&c.dirty!=mn&&Wu(n,c.outerDeco));if(!p&&c.update(e,n,r,o))return this.destroyBetween(this.index,l),c.dom!=d&&(this.changed=!0),this.index++,!0;if(!p&&(f=this.recreateWrapper(c,e,n,r,o,s)))return this.top.children[this.index]=f,f.contentDOM&&(f.dirty=io,f.updateChildren(o,s+1),f.dirty=_t),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,o,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content))return null;let l=yr.create(this.top,n,r,o,i,s);if(l.contentDOM){l.children=e.children,e.children=[];for(let c of l.children)c.parent=l}return e.destroy(),l}addNode(e,n,r,o,i){let s=yr.create(this.top,e,n,r,o,i);s.contentDOM&&s.updateChildren(o,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,r){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(e)&&(e==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let i=new py(this.top,e,n,r);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof so;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof zl)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((ut||et)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let o=new my(this.top,[],r,null);n!=this.top?n.children.push(o):n.children.splice(this.index++,0,o),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function uR(t,e){let n=e,r=n.children.length,o=t.childCount,i=new Map,s=[];e:for(;o>0;){let l;for(;;)if(r){let u=n.children[r-1];if(u instanceof so)n=u,r=u.children.length;else{l=u,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let c=l.node;if(c){if(c!=t.child(o-1))break;--o,i.set(l,o),s.push(l)}}return{index:o,matched:i,matches:s.reverse()}}function dR(t,e){return t.type.side-e.type.side}function fR(t,e,n,r){let o=e.locals(t),i=0;if(o.length==0){for(let u=0;u<t.childCount;u++){let d=t.child(u);r(d,o,e.forChild(i,d),u),i+=d.nodeSize}return}let s=0,l=[],c=null;for(let u=0;;){let d,f;for(;s<o.length&&o[s].to==i;){let g=o[s++];g.widget&&(d?(f||(f=[d])).push(g):d=g)}if(d)if(f){f.sort(dR);for(let g=0;g<f.length;g++)n(f[g],u,!!c)}else n(d,u,!!c);let p,h;if(c)h=-1,p=c,c=null;else if(u<t.childCount)h=u,p=t.child(u++);else break;for(let g=0;g<l.length;g++)l[g].to<=i&&l.splice(g--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)l.push(o[s++]);let m=i+p.nodeSize;if(p.isText){let g=m;s<o.length&&o[s].from<g&&(g=o[s].from);for(let b=0;b<l.length;b++)l[b].to<g&&(g=l[b].to);g<m&&(c=p.cut(g-i),p=p.cut(0,g-i),m=g,h=-1)}else for(;s<o.length&&o[s].to<m;)s++;let y=p.isInline&&!p.isLeaf?l.filter(g=>!g.inline):l.slice();r(p,y,e.forChild(i,p),h),i=m}}function pR(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function hR(t,e){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0){if(t.childNodes.length>e&&t.childNodes[e].nodeType==3)return t.childNodes[e];t=t.childNodes[e-1],e=pn(t)}else if(t.nodeType==1&&e<t.childNodes.length)t=t.childNodes[e],e=0;else return null}}function mR(t,e,n,r){for(let o=0,i=0;o<t.childCount&&i<=r;){let s=t.child(o++),l=i;if(i+=s.nodeSize,!s.isText)continue;let c=s.text;for(;o<t.childCount;){let u=t.child(o++);if(i+=u.nodeSize,!u.isText)break;c+=u.text}if(i>=n){if(i>=r&&c.slice(r-e.length-l,r-l)==e)return r-e.length;let u=l<r?c.lastIndexOf(e,r-l-1):-1;if(u>=0&&u+e.length+l>=n)return l+u;if(n==r&&c.length>=r+e.length-l&&c.slice(r-l,r-l+e.length)==e)return r}}return-1}function Uu(t,e,n,r,o){let i=[];for(let s=0,l=0;s<t.length;s++){let c=t[s],u=l,d=l+=c.size;u>=n||d<=e?i.push(c):(u<e&&i.push(c.slice(0,e-u,r)),o&&(i.push(o),o=void 0),d>n&&i.push(c.slice(n-u,c.size,r)))}return i}function Ku(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let o=t.docView.nearestDesc(n.focusNode),i=o&&o.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let l=r.resolve(s),c,u;if(_l(n)){for(c=l;o&&!o.node;)o=o.parent;let d=o.node;if(o&&d.isAtom&&Z.isSelectable(d)&&o.parent&&!(d.isInline&&FB(n.focusNode,n.focusOffset,o.dom))){let f=o.posBefore;u=new Z(s==f?l:r.resolve(f))}}else{let d=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(d<0)return null;c=r.resolve(d)}if(!u){let d=e=="pointer"||t.state.selection.head<l.pos&&!i?1:-1;u=qu(t,c,l,d)}return u}function vy(t){return t.editable?t.hasFocus():My(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function $n(t,e=!1){let n=t.state.selection;if(Oy(t,n),!!vy(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&et){let r=t.domSelectionRange(),o=t.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&ro(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)yR(t);else{let{anchor:r,head:o}=n,i,s;Cy&&!(n instanceof G)&&(n.$from.parent.inlineContent||(i=Sy(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=Sy(t,n.to))),t.docView.setSelection(r,o,t.root,e),Cy&&(i&&ky(i),s&&ky(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&gR(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Cy=ut||et&&zB<63;function Sy(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(ut&&o&&o.contentEditable=="false")return Gu(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return Gu(o);if(i)return Gu(i)}}function Gu(t){return t.contentEditable="true",ut&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function ky(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function gR(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=o)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!vy(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function yR(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,ct(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&wt&&mr<=11&&(r.disabled=!0,r.disabled=!1)}function Oy(t,e){if(e instanceof Z){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Ey(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Ey(t)}function Ey(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function qu(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||G.between(e,n,r)}function Ty(t){return t.editable&&!t.hasFocus()?!1:My(t)}function My(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function bR(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return ro(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Yu(t,e){let{$anchor:n,$head:r}=t.selection,o=e>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?t.doc.resolve(e>0?o.after():o.before()):null:o;return i&&J.findFrom(i,e)}function br(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function xy(t,e,n){let r=t.state.selection;if(r instanceof G)if(n.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return br(t,new G(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let o=Yu(t.state,e);return o&&o instanceof Z?br(t,o):!1}else if(!(Ht&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let l=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=t.docView.descAt(l))&&!s.contentDOM?Z.isSelectable(i)?br(t,new Z(e<0?t.state.doc.resolve(o.pos-i.nodeSize):o)):qs?br(t,new G(t.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Z&&r.node.isInline)return br(t,new G(e>0?r.$to:r.$from));{let o=Yu(t.state,e);return o?br(t,o):!1}}}function jl(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Xs(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function oi(t,e){return e<0?wR(t):vR(t)}function wR(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;for(en&&n.nodeType==1&&r<jl(n)&&Xs(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let l=n.childNodes[r-1];if(Xs(l,-1))o=n,i=--r;else if(l.nodeType==3)n=l,r=n.nodeValue.length;else break}}else{if(Py(n))break;{let l=n.previousSibling;for(;l&&Xs(l,-1);)o=n.parentNode,i=ct(l),l=l.previousSibling;if(l)n=l,r=jl(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Ju(t,n,r):o&&Ju(t,o,i)}function vR(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=jl(n),i,s;for(;;)if(r<o){if(n.nodeType!=1)break;let l=n.childNodes[r];if(Xs(l,1))i=n,s=++r;else break}else{if(Py(n))break;{let l=n.nextSibling;for(;l&&Xs(l,1);)i=l.parentNode,s=ct(l)+1,l=l.nextSibling;if(l)n=l,r=0,o=jl(n);else{if(n=n.parentNode,n==t.dom)break;r=o=0}}}i&&Ju(t,i,s)}function Py(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function CR(t,e){for(;t&&e==t.childNodes.length&&!$u(t);)e=ct(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function SR(t,e){for(;t&&!e&&!$u(t);)e=ct(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Ju(t,e,n){if(e.nodeType!=3){let i,s;(s=CR(e,n))?(e=s,n=0):(i=SR(e,n))&&(e=i,n=i.nodeValue.length)}let r=t.domSelection();if(_l(r)){let i=document.createRange();i.setEnd(e,n),i.setStart(e,n),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:o}=t;setTimeout(()=>{t.state==o&&$n(t)},50)}function Dy(t,e){let n=t.state.doc.resolve(e);if(!(et||jB)&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left<o.left?"ltr":"rtl"}if(e<n.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Ay(t,e,n){let r=t.state.selection;if(r instanceof G&&!r.empty||n.indexOf("s")>-1||Ht&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Yu(t.state,e);if(s&&s instanceof Z)return br(t,s)}if(!o.parent.inlineContent){let s=e<0?o:i,l=r instanceof Xt?J.near(s,e):J.findFrom(s,e);return l?br(t,l):!1}return!1}function Iy(t,e){if(!(t.state.selection instanceof G))return!0;let{$head:n,$anchor:r,empty:o}=t.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function Ny(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function kR(t){if(!ut||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;Ny(t,r,"true"),setTimeout(()=>Ny(t,r,"false"),20)}return!1}function OR(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function ER(t,e){let n=e.keyCode,r=OR(e);if(n==8||Ht&&n==72&&r=="c")return Iy(t,-1)||oi(t,-1);if(n==46&&!e.shiftKey||Ht&&n==68&&r=="c")return Iy(t,1)||oi(t,1);if(n==13||n==27)return!0;if(n==37||Ht&&n==66&&r=="c"){let o=n==37?Dy(t,t.state.selection.from)=="ltr"?-1:1:-1;return xy(t,o,r)||oi(t,o)}else if(n==39||Ht&&n==70&&r=="c"){let o=n==39?Dy(t,t.state.selection.from)=="ltr"?1:-1:1;return xy(t,o,r)||oi(t,o)}else{if(n==38||Ht&&n==80&&r=="c")return Ay(t,-1,r)||oi(t,-1);if(n==40||Ht&&n==78&&r=="c")return kR(t)||Ay(t,1,r)||oi(t,1);if(r==(Ht?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function By(t,e){t.someProp("transformCopied",h=>{e=h(e,t)});let n=[],{content:r,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let s=t.someProp("clipboardSerializer")||dn.fromSchema(t.state.schema),l=zy(),c=l.createElement("div");c.appendChild(s.serializeFragment(r,{document:l}));let u=c.firstChild,d,f=0;for(;u&&u.nodeType==1&&(d=Hy[u.nodeName.toLowerCase()]);){for(let h=d.length-1;h>=0;h--){let m=l.createElement(d[h]);for(;c.firstChild;)m.appendChild(c.firstChild);c.appendChild(m),f++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${o} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let p=t.someProp("clipboardTextSerializer",h=>h(e,t))||e.content.textBetween(0,e.content.size,`
249
249
 
250
250
  `);return{dom:c,text:p}}function Ry(t,e,n,r,o){let i=o.parent.type.spec.code,s,l;if(!n&&!e)return null;let c=e&&(r||i||!n);if(c){if(t.someProp("transformPastedText",p=>{e=p(e,i||r,t)}),i)return e?new V(A.from(t.state.schema.text(e.replace(/\r\n?/g,`
251
- `))),0,0):V.empty;let f=t.someProp("clipboardTextParser",p=>p(e,o,r,t));if(f)l=f;else{let p=o.marks(),{schema:h}=t.state,m=dn.fromSchema(h);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let g=s.appendChild(document.createElement("p"));y&&g.appendChild(m.serializeNode(h.text(y,p)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=MR(n),qs&&xR(s);let u=s&&s.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let f=+d[3];f>0;f--){let p=s.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;s=p}if(l||(l=(t.someProp("clipboardParser")||t.someProp("domParser")||Ko.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||d),context:o,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!ER.test(p.parentNode.nodeName)?{ignore:!0}:null}})),d)l=PR(Fy(l,+d[1],+d[2]),d[4]);else if(l=V.maxOpen(TR(l.content,o),!0),l.openStart||l.openEnd){let f=0,p=0;for(let h=l.content.firstChild;f<l.openStart&&!h.type.spec.isolating;f++,h=h.firstChild);for(let h=l.content.lastChild;p<l.openEnd&&!h.type.spec.isolating;p++,h=h.lastChild);l=Fy(l,f,p)}return t.someProp("transformPasted",f=>{l=f(l,t)}),l}const ER=/^(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 TR(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(l=>{if(!s)return;let c=o.findWrapping(l.type),u;if(!c)return s=null;if(u=s.length&&i.length&&Vy(c,i,l,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=$y(s[s.length-1],i.length));let d=Ly(l,c);s.push(d),o=o.matchType(d.type),i=c}}),s)return A.from(s)}return t}function Ly(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,A.from(t));return t}function Vy(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=Vy(t,e,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(A.from(Ly(n,t,o+1))))}}function $y(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,$y(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(A.empty,!0);return t.copy(n.append(r))}function Qu(t,e,n,r,o,i){let s=e<0?t.firstChild:t.lastChild,l=s.content;return t.childCount>1&&(i=0),o<r-1&&(l=Qu(l,e,n,r,o+1,i)),o>=n&&(l=e<0?s.contentMatchAt(0).fillBefore(l,i<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(A.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(l))}function Fy(t,e,n){return e<t.openStart&&(t=new V(Qu(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new V(Qu(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Hy={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 _y=null;function zy(){return _y||(_y=document.implementation.createHTMLDocument("title"))}function MR(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=zy().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&Hy[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=t,o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function xR(t){let e=t.querySelectorAll(et?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent=="Ā "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function PR(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:o,openStart:i,openEnd:s}=t;for(let l=r.length-2;l>=0;l-=2){let c=n.nodes[r[l]];if(!c||c.hasRequiredAttrs())break;o=A.from(c.create(r[l+1],o)),i++,s++}return new V(o,i,s)}const dt={},ft={},DR={touchstart:!0,touchmove:!0};class AR{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.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 IR(t){for(let e in dt){let n=dt[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{BR(t,r)&&!ed(t,r)&&(t.editable||!(r.type in ft))&&n(t,r)},DR[e]?{passive:!0}:void 0)}ut&&t.dom.addEventListener("input",()=>null),Xu(t)}function wr(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function NR(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Xu(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>ed(t,r))})}function ed(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function BR(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function RR(t,e){!ed(t,e)&&dt[e.type]&&(t.editable||!(e.type in ft))&&dt[e.type](t,e)}ft.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Zy(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(tn&&et&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),ni&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",o=>o(t,oo(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||OR(t,n)?n.preventDefault():wr(t,"key")},ft.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},ft.keypress=(t,e)=>{let n=e;if(Zy(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ht&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof G)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",i=>i(t,r.$from.pos,r.$to.pos,o))&&t.dispatch(t.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function Zl(t){return{left:t.clientX,top:t.clientY}}function LR(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function td(t,e,n,r,o){if(r==-1)return!1;let i=t.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,l=>s>i.depth?l(t,n,i.nodeAfter,i.before(s),o,!0):l(t,n,i.node(s),i.before(s),o,!1)))return!0;return!1}function ii(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function VR(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&Z.isSelectable(r)?(ii(t,new Z(n),"pointer"),!0):!1}function $R(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof Z&&(r=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(Z.isSelectable(l)){r&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(s);break}}return o!=null?(ii(t,Z.create(t.state.doc,o),"pointer"),!0):!1}function FR(t,e,n,r,o){return td(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?$R(t,n):VR(t,n))}function HR(t,e,n,r){return td(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function _R(t,e,n,r){return td(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||zR(t,n,r)}function zR(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(ii(t,G.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),l=o.before(i);if(s.inlineContent)ii(t,G.create(r,l+1,l+1+s.content.size),"pointer");else if(Z.isSelectable(s))ii(t,Z.create(r,l),"pointer");else continue;return!0}}function nd(t){return Wl(t)}const jy=Ht?"metaKey":"ctrlKey";dt.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=nd(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&LR(n,t.input.lastClick)&&!n[jy]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let s=t.posAtCoords(Zl(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new jR(t,s,n,!!r)):(i=="doubleClick"?HR:_R)(t,s.pos,s.inside,n)?n.preventDefault():wr(t,"pointer"))};class jR{constructor(e,n,r,o){this.view=e,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[jy],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let d=e.state.doc.resolve(n.pos);i=d.parent,s=d.depth?d.before():0}const l=o?null:r.target,c=l?e.docView.nearestDesc(l,!0):null;this.target=c?c.dom:null;let{selection:u}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof Z&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&en&&!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()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),wr(e,"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(()=>$n(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Zl(e))),this.updateAllowDefault(e),this.allowDefault||!n?wr(this.view,"pointer"):FR(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||ut&&this.mightDrag&&!this.mightDrag.node.isAtom||et&&!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)?(ii(this.view,J.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):wr(this.view,"pointer")}move(e){this.updateAllowDefault(e),wr(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}dt.touchstart=t=>{t.input.lastTouch=Date.now(),nd(t),wr(t,"pointer")},dt.touchmove=t=>{t.input.lastTouch=Date.now(),wr(t,"pointer")},dt.contextmenu=t=>nd(t);function Zy(t,e){return t.composing?!0:ut&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const ZR=tn?5e3:-1;ft.compositionstart=ft.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Wl(t,!0),t.markCursor=null;else if(Wl(t),en&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}Wy(t,ZR)},ft.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Wy(t,20))};function Wy(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Wl(t),e))}function Uy(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=WR());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function WR(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Wl(t,e=!1){if(!(tn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Uy(t),e||t.docView&&t.docView.dirty){let n=Ku(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function UR(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const ea=wt&&mr<15||ni&&jB<604;dt.copy=ft.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=ea?null:n.clipboardData,s=r.content(),{dom:l,text:c}=By(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",c)):UR(t,l),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function KR(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function GR(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?ta(t,r.value,null,o,e):ta(t,r.textContent,r.innerHTML,o,e)},50)}function ta(t,e,n,r,o){let i=Ry(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",c=>c(t,o,i||V.empty)))return!0;if(!i)return!1;let s=KR(i),l=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(i);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Ky(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}ft.paste=(t,e)=>{let n=e;if(t.composing&&!tn)return;let r=ea?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&ta(t,Ky(r),r.getData("text/html"),o,n)?n.preventDefault():GR(t,n)};class Gy{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const qy=Ht?"altKey":"ctrlKey";dt.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=t.state.selection,i=o.empty?null:t.posAtCoords(Zl(n)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Z?o.to-1:o.to))){if(r&&r.mightDrag)s=Z.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(s=Z.create(t.state.doc,d.posBefore))}}let l=(s||t.state.selection).content(),{dom:c,text:u}=By(t,l);n.dataTransfer.clearData(),n.dataTransfer.setData(ea?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",ea||n.dataTransfer.setData("text/plain",u),t.dragging=new Gy(l,!n[qy],s)},dt.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},ft.dragover=ft.dragenter=(t,e)=>e.preventDefault(),ft.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let o=t.posAtCoords(Zl(n));if(!o)return;let i=t.state.doc.resolve(o.pos),s=r&&r.slice;s?t.someProp("transformPasted",m=>{s=m(s,t)}):s=Ry(t,Ky(n.dataTransfer),ea?null:n.dataTransfer.getData("text/html"),!1,i);let l=!!(r&&!n[qy]);if(t.someProp("handleDrop",m=>m(t,n,s||V.empty,l))){n.preventDefault();return}if(!s)return;n.preventDefault();let c=s?V3(t.state.doc,i.pos,s):i.pos;c==null&&(c=i.pos);let u=t.state.tr;if(l){let{node:m}=r;m?m.replace(u):u.deleteSelection()}let d=u.mapping.map(c),f=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,p=u.doc;if(f?u.replaceRangeWith(d,d,s.content.firstChild):u.replaceRange(d,d,s),u.doc.eq(p))return;let h=u.doc.resolve(d);if(f&&Z.isSelectable(s.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new Z(h));else{let m=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((y,g,b,w)=>m=w),u.setSelection(qu(t,h,u.doc.resolve(m)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},dt.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&$n(t)},20))},dt.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},dt.beforeinput=(t,e)=>{if(et&&tn&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,oo(8,"Backspace")))))return;let{$cursor:o}=t.state.selection;o&&o.pos>0&&t.dispatch(t.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let t in ft)dt[t]=ft[t];function na(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Ul{constructor(e,n){this.toDOM=e,this.spec=n||lo,this.side=this.spec.side||0}map(e,n,r,o){let{pos:i,deleted:s}=e.mapResult(n.from+o,this.side<0?-1:1);return s?null:new zt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Ul&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&na(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class vr{constructor(e,n){this.attrs=e,this.spec=n||lo}map(e,n,r,o){let i=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new zt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof vr&&na(this.attrs,e.attrs)&&na(this.spec,e.spec)}static is(e){return e.type instanceof vr}destroy(){}}class rd{constructor(e,n){this.attrs=e,this.spec=n||lo}map(e,n,r,o){let i=e.mapResult(n.from+o,1);if(i.deleted)return null;let s=e.mapResult(n.to+o,-1);return s.deleted||s.pos<=i.pos?null:new zt(i.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:o}=e.content.findIndex(n.from),i;return o==n.from&&!(i=e.child(r)).isText&&o+i.nodeSize==n.to}eq(e){return this==e||e instanceof rd&&na(this.attrs,e.attrs)&&na(this.spec,e.spec)}destroy(){}}class zt{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new zt(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new zt(e,e,new Ul(n,r))}static inline(e,n,r,o){return new zt(e,n,new vr(r,o))}static node(e,n,r,o){return new zt(e,n,new rd(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof vr}get widget(){return this.type instanceof Ul}}const si=[],lo={};class Le{constructor(e,n){this.local=e.length?e:si,this.children=n.length?n:si}static create(e,n){return n.length?Kl(n,e,0,lo):tt}find(e,n,r){let o=[];return this.findInner(e??0,n??1e9,o,0,r),o}findInner(e,n,r,o,i){for(let s=0;s<this.local.length;s++){let l=this.local[s];l.from<=n&&l.to>=e&&(!i||i(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let l=this.children[s]+1;this.children[s+2].findInner(e-l,n-l,r,o+l,i)}}map(e,n,r){return this==tt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||lo)}mapInner(e,n,r,o,i){let s;for(let l=0;l<this.local.length;l++){let c=this.local[l].map(e,r,o);c&&c.type.valid(n,c)?(s||(s=[])).push(c):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?qR(this.children,s||[],e,n,r,o,i):s?new Le(s.sort(co),si):tt}add(e,n){return n.length?this==tt?Le.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,i=0;e.forEach((l,c)=>{let u=c+r,d;if(d=Jy(n,l,u)){for(o||(o=this.children.slice());i<o.length&&o[i]<c;)i+=3;o[i]==c?o[i+2]=o[i+2].addInner(l,d,u+1):o.splice(i,0,c,c+l.nodeSize,Kl(d,l,u+1,lo)),i+=3}});let s=Yy(i?Qy(n):n,-r);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||s.splice(l--,1);return new Le(s.length?this.local.concat(s).sort(co):this.local,o||this.children)}remove(e){return e.length==0||this==tt?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,o=this.local;for(let i=0;i<r.length;i+=3){let s,l=r[i]+n,c=r[i+1]+n;for(let d=0,f;d<e.length;d++)(f=e[d])&&f.from>l&&f.to<c&&(e[d]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let u=r[i+2].removeInner(s,l+1);u!=tt?r[i+2]=u:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let l=0;l<o.length;l++)o[l].eq(s,n)&&(o==this.local&&(o=this.local.slice()),o.splice(l--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new Le(o,r):tt}forChild(e,n){if(this==tt)return this;if(n.isLeaf)return Le.empty;let r,o;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(r=this.children[l+2]);break}let i=e+1,s=i+n.content.size;for(let l=0;l<this.local.length;l++){let c=this.local[l];if(c.from<s&&c.to>i&&c.type instanceof vr){let u=Math.max(i,c.from)-i,d=Math.min(s,c.to)-i;u<d&&(o||(o=[])).push(c.copy(u,d))}}if(o){let l=new Le(o.sort(co),si);return r?new Cr([l,r]):l}return r||tt}eq(e){if(this==e)return!0;if(!(e instanceof Le)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return od(this.localsInner(e))}localsInner(e){if(this==tt)return si;if(e.inlineContent||!this.local.some(vr.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof vr||n.push(this.local[r]);return n}}Le.empty=new Le([],[]),Le.removeOverlap=od;const tt=Le.empty;class Cr{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,lo));return Cr.from(r)}forChild(e,n){if(n.isLeaf)return Le.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,n);i!=tt&&(i instanceof Cr?r=r.concat(i.members):r.push(i))}return Cr.from(r)}eq(e){if(!(e instanceof Cr)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let o=0;o<this.members.length;o++){let i=this.members[o].localsInner(e);if(i.length)if(!n)n=i;else{r&&(n=n.slice(),r=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?od(r?n:n.sort(co)):si}static from(e){switch(e.length){case 0:return tt;case 1:return e[0];default:return new Cr(e.every(n=>n instanceof Le)?e:e.reduce((n,r)=>n.concat(r instanceof Le?r:r.members),[]))}}}function qR(t,e,n,r,o,i,s){let l=t.slice();for(let u=0,d=i;u<n.maps.length;u++){let f=0;n.maps[u].forEach((p,h,m,y)=>{let g=y-m-(h-p);for(let b=0;b<l.length;b+=3){let w=l[b+1];if(w<0||p>w+d-f)continue;let C=l[b]+d-f;h>=C?l[b+1]=p<=C?-2:-1:p>=d&&g&&(l[b]+=g,l[b+1]+=g)}f+=g}),d=n.maps[u].map(d,-1)}let c=!1;for(let u=0;u<l.length;u+=3)if(l[u+1]<0){if(l[u+1]==-2){c=!0,l[u+1]=-1;continue}let d=n.map(t[u]+i),f=d-o;if(f<0||f>=r.content.size){c=!0;continue}let p=n.map(t[u+1]+i,-1),h=p-o,{index:m,offset:y}=r.content.findIndex(f),g=r.maybeChild(m);if(g&&y==f&&y+g.nodeSize==h){let b=l[u+2].mapInner(n,g,d+1,t[u]+i+1,s);b!=tt?(l[u]=f,l[u+1]=h,l[u+2]=b):(l[u+1]=-2,c=!0)}else c=!0}if(c){let u=YR(l,t,e,n,o,i,s),d=Kl(u,r,0,s);e=d.local;for(let f=0;f<l.length;f+=3)l[f+1]<0&&(l.splice(f,3),f-=3);for(let f=0,p=0;f<d.children.length;f+=3){let h=d.children[f];for(;p<l.length&&l[p]<h;)p+=3;l.splice(p,0,d.children[f],d.children[f+1],d.children[f+2])}}return new Le(e.sort(co),l)}function Yy(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let o=t[r];n.push(new zt(o.from+e,o.to+e,o.type))}return n}function YR(t,e,n,r,o,i,s){function l(c,u){for(let d=0;d<c.local.length;d++){let f=c.local[d].map(r,o,u);f?n.push(f):s.onRemove&&s.onRemove(c.local[d].spec)}for(let d=0;d<c.children.length;d+=3)l(c.children[d+2],c.children[d]+u+1)}for(let c=0;c<t.length;c+=3)t[c+1]==-1&&l(t[c+2],e[c]+i+1);return n}function Jy(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,o=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<r&&((o||(o=[])).push(s),t[i]=null);return o}function Qy(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function Kl(t,e,n,r){let o=[],i=!1;e.forEach((l,c)=>{let u=Jy(t,l,c+n);if(u){i=!0;let d=Kl(u,l,n+c+1,r);d!=tt&&o.push(c,c+l.nodeSize,d)}});let s=Yy(i?Qy(t):t,-n).sort(co);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||(r.onRemove&&r.onRemove(s[l].spec),s.splice(l--,1));return s.length||o.length?new Le(s,o):tt}function co(t,e){return t.from-e.from||t.to-e.to}function od(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let o=n+1;o<e.length;o++){let i=e[o];if(i.from==r.from){i.to!=r.to&&(e==t&&(e=t.slice()),e[o]=i.copy(i.from,r.to),Xy(e,o+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,i.from),Xy(e,o,r.copy(i.from,r.to)));break}}}return e}function Xy(t,e,n){for(;e<t.length&&co(n,t[e])>0;)e++;t.splice(e,0,n)}function id(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=tt&&e.push(r)}),t.cursorWrapper&&e.push(Le.create(t.state.doc,[t.cursorWrapper.deco])),Cr.from(e)}const JR={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},QR=wt&&mr<=11;class XR{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class eL{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new XR,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);wt&&mr<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),QR&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.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,JR)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[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(Ty(this.view)){if(this.suppressingSelectionUpdates)return $n(this.view);if(wt&&mr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&ro(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let i=e.focusNode;i;i=Gs(i))n.add(i);for(let i=e.anchorNode;i;i=Gs(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Ty(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,l=!1,c=[];if(e.editable)for(let d=0;d<n.length;d++){let f=this.registerMutation(n[d],c);f&&(i=i<0?f.from:Math.min(f.from,i),s=s<0?f.to:Math.max(f.to,s),f.typeOver&&(l=!0))}if(en&&c.length>1){let d=c.filter(f=>f.nodeName=="BR");if(d.length==2){let f=d[0],p=d[1];f.parentNode&&f.parentNode.parentNode==p.parentNode?p.remove():f.remove()}}let u=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&_l(r)&&(u=Ku(e))&&u.eq(J.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,$n(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),tL(e)),this.handleDOMChange(i,s,l,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||$n(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let d=0;d<e.addedNodes.length;d++)n.push(e.addedNodes[d]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(wt&&mr<=11&&e.addedNodes.length)for(let d=0;d<e.addedNodes.length;d++){let{previousSibling:f,nextSibling:p}=e.addedNodes[d];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(i=p)}let s=o&&o.parentNode==e.target?ct(o)+1:0,l=r.localPosFromDOM(e.target,s,-1),c=i&&i.parentNode==e.target?ct(i):e.target.childNodes.length,u=r.localPosFromDOM(e.target,c,1);return{from:l,to:u}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let e7=new WeakMap,t7=!1;function tL(t){if(!e7.has(t)&&(e7.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=en,t7)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."),t7=!0}}function nL(t){let e;function n(c){c.preventDefault(),c.stopImmediatePropagation(),e=c.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let r=e.startContainer,o=e.startOffset,i=e.endContainer,s=e.endOffset,l=t.domAtPos(t.state.selection.anchor);return ro(l.node,l.offset,i,s)&&([r,o,i,s]=[i,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}}function rL(t,e,n){let{node:r,fromOffset:o,toOffset:i,from:s,to:l}=t.docView.parseRange(e,n),c=t.domSelectionRange(),u,d=c.anchorNode;if(d&&t.dom.contains(d.nodeType==1?d:d.parentNode)&&(u=[{node:d,offset:c.anchorOffset}],_l(c)||u.push({node:c.focusNode,offset:c.focusOffset})),et&&t.input.lastKeyCode===8)for(let g=i;g>o;g--){let b=r.childNodes[g-1],w=b.pmViewDesc;if(b.nodeName=="BR"&&!w){i=g;break}if(!w||w.size)break}let f=t.state.doc,p=t.someProp("domParser")||Ko.fromSchema(t.state.schema),h=f.resolve(s),m=null,y=p.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:i,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:oL,context:h});if(u&&u[0].pos!=null){let g=u[0].pos,b=u[1]&&u[1].pos;b==null&&(b=g),m={anchor:g+s,head:b+s}}return{doc:y,sel:m,from:s,to:l}}function oL(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(ut&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||ut&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const iL=/^(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 sL(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let D=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,N=Ku(t,D);if(N&&!t.state.selection.eq(N)){if(et&&tn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",$=>$(t,oo(13,"Enter"))))return;let B=t.state.tr.setSelection(N);D=="pointer"?B.setMeta("pointer",!0):D=="key"&&B.scrollIntoView(),i&&B.setMeta("composition",i),t.dispatch(B)}return}let s=t.state.doc.resolve(e),l=s.sharedDepth(n);e=s.before(l+1),n=t.state.doc.resolve(n).after(l+1);let c=t.state.selection,u=rL(t,e,n),d=t.state.doc,f=d.slice(u.from,u.to),p,h;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(p=t.state.selection.to,h="end"):(p=t.state.selection.from,h="start"),t.input.lastKeyCode=null;let m=cL(f.content,u.doc.content,u.from,p,h);if((ni&&t.input.lastIOSEnter>Date.now()-225||tn)&&o.some(D=>D.nodeType==1&&!iL.test(D.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",D=>D(t,oo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&c instanceof G&&!c.empty&&c.$head.sameParent(c.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(u.sel){let D=n7(t,t.state.doc,u.sel);if(D&&!D.eq(t.state.selection)){let N=t.state.tr.setSelection(D);i&&N.setMeta("composition",i),t.dispatch(N)}}return}if(et&&t.cursorWrapper&&u.sel&&u.sel.anchor==t.cursorWrapper.deco.from&&u.sel.head==u.sel.anchor){let D=m.endB-m.start;u.sel={anchor:u.sel.anchor+D,head:u.sel.anchor+D}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof G&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),wt&&mr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>u.from&&u.doc.textBetween(m.start-u.from-1,m.start-u.from+1)==" Ā "&&(m.start--,m.endA--,m.endB--);let y=u.doc.resolveNoCache(m.start-u.from),g=u.doc.resolveNoCache(m.endB-u.from),b=d.resolve(m.start),w=y.sameParent(g)&&y.parent.inlineContent&&b.end()>=m.endA,C;if((ni&&t.input.lastIOSEnter>Date.now()-225&&(!w||o.some(D=>D.nodeName=="DIV"||D.nodeName=="P"))||!w&&y.pos<u.doc.content.size&&!y.sameParent(g)&&(C=J.findFrom(u.doc.resolve(y.pos+1),1,!0))&&C.head==g.pos)&&t.someProp("handleKeyDown",D=>D(t,oo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&lL(d,m.start,m.endA,y,g)&&t.someProp("handleKeyDown",D=>D(t,oo(8,"Backspace")))){tn&&et&&t.domObserver.suppressSelectionUpdates();return}et&&tn&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),tn&&!w&&y.start()!=g.start()&&g.parentOffset==0&&y.depth==g.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==m.endA&&(m.endB-=2,g=u.doc.resolveNoCache(m.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(D){return D(t,oo(13,"Enter"))})},20));let v=m.start,E=m.endA,S,k,T;if(w){if(y.pos==g.pos)wt&&mr<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>$n(t),20)),S=t.state.tr.delete(v,E),k=d.resolve(m.start).marksAcross(d.resolve(m.endA));else if(m.endA==m.endB&&(T=aL(y.parent.content.cut(y.parentOffset,g.parentOffset),b.parent.content.cut(b.parentOffset,m.endA-b.start()))))S=t.state.tr,T.type=="add"?S.addMark(v,E,T.mark):S.removeMark(v,E,T.mark);else if(y.parent.child(y.index()).isText&&y.index()==g.index()-(g.textOffset?0:1)){let D=y.parent.textBetween(y.parentOffset,g.parentOffset);if(t.someProp("handleTextInput",N=>N(t,v,E,D)))return;S=t.state.tr.insertText(D,v,E)}}if(S||(S=t.state.tr.replace(v,E,u.doc.slice(m.start-u.from,m.endB-u.from))),u.sel){let D=n7(t,S.doc,u.sel);D&&!(et&&tn&&t.composing&&D.empty&&(m.start!=m.endB||t.input.lastAndroidDelete<Date.now()-100)&&(D.head==v||D.head==S.mapping.map(E)-1)||wt&&D.empty&&D.head==v)&&S.setSelection(D)}k&&S.ensureMarks(k),i&&S.setMeta("composition",i),t.dispatch(S.scrollIntoView())}function n7(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:qu(t,e.resolve(n.anchor),e.resolve(n.head))}function aL(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,l,c;for(let d=0;d<r.length;d++)o=r[d].removeFromSet(o);for(let d=0;d<n.length;d++)i=n[d].removeFromSet(i);if(o.length==1&&i.length==0)l=o[0],s="add",c=d=>d.mark(l.addToSet(d.marks));else if(o.length==0&&i.length==1)l=i[0],s="remove",c=d=>d.mark(l.removeFromSet(d.marks));else return null;let u=[];for(let d=0;d<e.childCount;d++)u.push(c(e.child(d)));if(A.from(u).eq(t))return{mark:l,type:s}}function lL(t,e,n,r,o){if(!r.parent.isTextblock||n-e<=o.pos-r.pos||sd(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(sd(i,!0,!0));return!s.parent.isTextblock||s.pos>n||sd(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function sd(t,e,n){let r=t.depth,o=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let i=t.node(r).maybeChild(t.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function cL(t,e,n,r,o){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:l}=t.findDiffEnd(e,n+t.size,n+e.size);if(o=="end"){let c=Math.max(0,i-Math.min(s,l));r-=s+c-i}if(s<i&&t.size<e.size){let c=r<=i&&r>=s?i-r:0;i-=c,i&&i<e.size&&r7(e.textBetween(i-1,i+1))&&(i+=c?1:-1),l=i+(l-s),s=i}else if(l<i){let c=r<=i&&r>=l?i-r:0;i-=c,i&&i<t.size&&r7(t.textBetween(i-1,i+1))&&(i+=c?1:-1),s=i+(s-l),l=i}return{start:i,endA:s,endB:l}}function r7(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class uL{constructor(e,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 AR,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(l7),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=s7(this),i7(this),this.nodeViews=a7(this),this.docView=hy(this.state.doc,o7(this),id(this),this.dom,this),this.domObserver=new eL(this,(r,o,i,s)=>sL(this,r,o,i,s)),this.domObserver.start(),IR(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Xu(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(l7),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let o=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(Uy(this),s=!0),this.state=e;let l=o.plugins!=e.plugins||this._props.plugins!=n.plugins;if(l||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=a7(this);fL(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(l||n.handleDOMEvents!=this._props.handleDOMEvents)&&Xu(this),this.editable=s7(this),i7(this);let c=id(this),u=o7(this),d=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,u,c);(f||!e.selection.eq(o.selection))&&(s=!0);let p=d=="preserve"&&s&&this.dom.style.overflowAnchor==null&&UB(this);if(s){this.domObserver.stop();let h=f&&(wt||et)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&dL(o.selection,e.selection);if(f){let m=et?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(e.doc,u,c,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=hy(e.doc,u,c,this.dom,this)),m&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&yR(this))?$n(this,h):(Oy(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():p&&KB(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Z){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&ty(this,n.getBoundingClientRect(),e)}else ty(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,o=-1;if(this.state.doc.nodeAt(r.from)==r.node)o=r.from;else{let i=r.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new Gy(e.slice,e.move,o<0?void 0:Z.create(this.state.doc,o))}someProp(e,n){let r=this._props&&this._props[e],o;if(r!=null&&(o=n?n(r):r))return o;for(let s=0;s<this.directPlugins.length;s++){let l=this.directPlugins[s].props[e];if(l!=null&&(o=n?n(l):l))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let l=i[s].props[e];if(l!=null&&(o=n?n(l):l))return o}}hasFocus(){if(wt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&GB(this.dom),$n(this),this.domObserver.start()}get root(){let e=this._root;if(e==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 e||document}updateRoot(){this._root=null}posAtCoords(e){return XB(this,e)}coordsAtPos(e,n=1){return ay(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let o=this.docView.posFromDOM(e,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,n){return oR(this,n||this.state,e)}pasteHTML(e,n){return ta(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return ta(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(NR(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],id(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return RR(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return ut&&this.root.nodeType===11&&FB(this.dom.ownerDocument)==this.dom?nL(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function o7(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[zt.node(0,t.state.doc.content.size,e)]}function i7(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:zt.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function s7(t){return!t.someProp("editable",e=>e(t.state)===!1)}function dL(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function a7(t){let e=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function fL(t,e){let n=0,r=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let o in e)r++;return n!=r}function l7(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Sr={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:"'"},Gl={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},pL=typeof navigator<"u"&&/Mac/.test(navigator.platform),hL=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ge=0;Ge<10;Ge++)Sr[48+Ge]=Sr[96+Ge]=String(Ge);for(var Ge=1;Ge<=24;Ge++)Sr[Ge+111]="F"+Ge;for(var Ge=65;Ge<=90;Ge++)Sr[Ge]=String.fromCharCode(Ge+32),Gl[Ge]=String.fromCharCode(Ge);for(var ad in Sr)Gl.hasOwnProperty(ad)||(Gl[ad]=Sr[ad]);function mL(t){var e=pL&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||hL&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Gl:Sr)[t.keyCode]||t.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 gL=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function yL(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,o,i,s;for(let l=0;l<e.length-1;l++){let c=e[l];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))o=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))gL?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+c)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function bL(t){let e=Object.create(null);for(let n in t)e[yL(n)]=t[n];return e}function ld(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function wL(t){return new Ke({props:{handleKeyDown:c7(t)}})}function c7(t){let e=bL(t);return function(n,r){let o=mL(r),i,s=e[ld(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let l=e[ld(o,r,!1)];if(l&&l(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(i=Sr[r.keyCode])&&i!=o){let l=e[ld(i,r)];if(l&&l(n.state,n.dispatch,n))return!0}}return!1}}const vL=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function u7(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const CL=(t,e,n)=>{let r=u7(t,n);if(!r)return!1;let o=cd(r);if(!o){let s=r.blockRange(),l=s&&Yo(s);return l==null?!1:(e&&e(t.tr.lift(s,l).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&h7(t,o,e))return!0;if(r.parent.content.size==0&&(ai(i,"end")||Z.isSelectable(i))){let s=$l(t.doc,r.before(),r.after(),V.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=t.tr.step(s);l.setSelection(ai(i,"end")?J.findFrom(l.doc.resolve(l.mapping.map(o.pos,-1)),-1):Z.create(l.doc,o.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1},SL=(t,e,n)=>{let r=u7(t,n);if(!r)return!1;let o=cd(r);return o?d7(t,o,e):!1},kL=(t,e,n)=>{let r=f7(t,n);if(!r)return!1;let o=ud(r);return o?d7(t,o,e):!1};function d7(t,e,n){let r=e.nodeBefore,o=r,i=e.pos-1;for(;!o.isTextblock;i--){if(o.type.spec.isolating)return!1;let d=o.lastChild;if(!d)return!1;o=d}let s=e.nodeAfter,l=s,c=e.pos+1;for(;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;let d=l.firstChild;if(!d)return!1;l=d}let u=$l(t.doc,i,c,V.empty);if(!u||u.from!=i||u instanceof $e&&u.slice.size>=c-i)return!1;if(n){let d=t.tr.step(u);d.setSelection(G.create(d.doc,i)),n(d.scrollIntoView())}return!0}function ai(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const OL=(t,e,n)=>{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;i=cd(r)}let s=i&&i.nodeBefore;return!s||!Z.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Z.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function cd(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function f7(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const EL=(t,e,n)=>{let r=f7(t,n);if(!r)return!1;let o=ud(r);if(!o)return!1;let i=o.nodeAfter;if(h7(t,o,e))return!0;if(r.parent.content.size==0&&(ai(i,"start")||Z.isSelectable(i))){let s=$l(t.doc,r.before(),r.after(),V.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=t.tr.step(s);l.setSelection(ai(i,"start")?J.findFrom(l.doc.resolve(l.mapping.map(o.pos)),1):Z.create(l.doc,l.mapping.map(o.pos))),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0):!1},TL=(t,e,n)=>{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;i=ud(r)}let s=i&&i.nodeAfter;return!s||!Z.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Z.create(t.doc,i.pos)).scrollIntoView()),!0)};function ud(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const ML=(t,e)=>{let n=t.selection,r=n instanceof Z,o;if(r){if(n.node.isTextblock||!pr(t.doc,n.from))return!1;o=n.from}else if(o=Vl(t.doc,n.from,-1),o==null)return!1;if(e){let i=t.tr.join(o);r&&i.setSelection(Z.create(i.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},xL=(t,e)=>{let n=t.selection,r;if(n instanceof Z){if(n.node.isTextblock||!pr(t.doc,n.to))return!1;r=n.to}else if(r=Vl(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},PL=(t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&Yo(o);return i==null?!1:(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)},DL=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
252
- `).scrollIntoView()),!0)};function p7(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const AL=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),s=p7(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let l=n.after(),c=t.tr.replaceWith(l,l,s.createAndFill());c.setSelection(J.near(c.doc.resolve(l),1)),e(c.scrollIntoView())}return!0},IL=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof Xt||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=p7(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,l=t.tr.insert(s,i.createAndFill());l.setSelection(G.create(l.doc,s+1)),e(l.scrollIntoView())}return!0},NL=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Jo(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Yo(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)},BL=(t,e)=>{let{$from:n,to:r}=t.selection,o,i=n.sharedDepth(r);return i==0?!1:(o=n.before(i),e&&e(t.tr.setSelection(Z.create(t.doc,o))),!0)};function RL(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(o.isTextblock||pr(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function h7(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(RL(t,e,n))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(i=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(n){let f=e.pos+o.nodeSize,p=A.empty;for(let y=i.length-1;y>=0;y--)p=A.from(i[y].create(null,p));p=A.from(r.copy(p));let h=t.tr.step(new Fe(e.pos-1,f,e.pos,f,new V(p,1,0),i.length,!0)),m=f+2*i.length;pr(h.doc,m)&&h.join(m),n(h.scrollIntoView())}return!0}let c=J.findFrom(e,1),u=c&&c.$from.blockRange(c.$to),d=u&&Yo(u);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(u,d).scrollIntoView()),!0;if(l&&ai(o,"start",!0)&&ai(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let h=o,m=1;for(;!h.isTextblock;h=h.firstChild)m++;if(f.canReplace(f.childCount,f.childCount,h.content)){if(n){let y=A.empty;for(let b=p.length-1;b>=0;b--)y=A.from(p[b].copy(y));let g=t.tr.step(new Fe(e.pos-p.length,e.pos+o.nodeSize,e.pos+m,e.pos+o.nodeSize-m,new V(y,p.length,0),0,!0));n(g.scrollIntoView())}return!0}}return!1}function m7(t){return function(e,n){let r=e.selection,o=t<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(n&&n(e.tr.setSelection(G.create(e.doc,t<0?o.start(i):o.end(i)))),!0):!1}}const LL=m7(-1),VL=m7(1);function $L(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),l=s&&Au(s,t,e);return l?(r&&r(n.tr.wrap(s,l).scrollIntoView()),!0):!1}}function g7(t,e=null){return function(n,r){let o=!1;for(let i=0;i<n.selection.ranges.length&&!o;i++){let{$from:{pos:s},$to:{pos:l}}=n.selection.ranges[i];n.doc.nodesBetween(s,l,(c,u)=>{if(o)return!1;if(!(!c.isTextblock||c.hasMarkup(t,e)))if(c.type==t)o=!0;else{let d=n.doc.resolve(u),f=d.index();o=d.parent.canReplaceWith(f,f+1,t)}})}if(!o)return!1;if(r){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:c}}=n.selection.ranges[s];i.setBlockType(l,c,t,e)}r(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function FL(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),l=!1,c=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(o.index(s.depth-1)==0)return!1;let d=n.doc.resolve(s.start-2);c=new Dl(d,d,s.depth),s.endIndex<s.parent.childCount&&(s=new Dl(o,n.doc.resolve(i.end(s.depth)),s.depth)),l=!0}let u=Au(c,t,e,s);return u?(r&&r(HL(n.tr,s,u,l,t).scrollIntoView()),!0):!1}}function HL(t,e,n,r,o){let i=A.empty;for(let d=n.length-1;d>=0;d--)i=A.from(n[d].type.create(n[d].attrs,i));t.step(new Fe(e.start-(r?2:0),e.end,e.start,e.end,new V(i,0,0),n.length,!0));let s=0;for(let d=0;d<n.length;d++)n[d].type==o&&(s=d+1);let l=n.length-s,c=e.start+n.length-(r?2:0),u=e.parent;for(let d=e.startIndex,f=e.endIndex,p=!0;d<f;d++,p=!1)!p&&Jo(t.doc,c,l)&&(t.split(c,l),c+=2*l),c+=u.child(d).nodeSize;return t}function _L(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,s=>s.childCount>0&&s.firstChild.type==t);return i?n?r.node(i.depth-1).type==t?zL(e,n,t,i):jL(e,n,i):!0:!1}}function zL(t,e,n,r){let o=t.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new Fe(i-1,s,i,s,new V(A.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Dl(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const l=Yo(r);if(l==null)return!1;o.lift(r,l);let c=o.mapping.map(i,-1)-1;return pr(o.doc,c)&&o.join(c),e(o.scrollIntoView()),!0}function jL(t,e,n){let r=t.tr,o=n.parent;for(let h=n.end,m=n.endIndex-1,y=n.startIndex;m>y;m--)h-=o.child(m).nodeSize,r.delete(h-1,h+1);let i=r.doc.resolve(n.start),s=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,c=n.endIndex==o.childCount,u=i.node(-1),d=i.index(-1);if(!u.canReplace(d+(l?0:1),d+1,s.content.append(c?A.empty:A.from(o))))return!1;let f=i.pos,p=f+s.nodeSize;return r.step(new Fe(f-(l?1:0),p+(c?1:0),f+1,p-1,new V((l?A.empty:A.from(o.copy(A.empty))).append(c?A.empty:A.from(o.copy(A.empty))),l?0:1,c?0:1),l?0:1)),e(r.scrollIntoView()),!0}function ZL(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,u=>u.childCount>0&&u.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let l=i.parent,c=l.child(s-1);if(c.type!=t)return!1;if(n){let u=c.lastChild&&c.lastChild.type==l.type,d=A.from(u?t.create():null),f=new V(A.from(t.create(null,A.from(l.type.create(null,d)))),u?3:1,0),p=i.start,h=i.end;n(e.tr.step(new Fe(p-(u?3:1),h,p,h,f,1,!0)).scrollIntoView())}return!0}}function ql(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}class Yl{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:o}=n,{tr:i}=r,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([l,c])=>[l,(...d)=>{const f=c(...d)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l=[],c=!!e,u=e||i.tr,d=()=>(!c&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),l.every(p=>p===!0)),f={...Object.fromEntries(Object.entries(r).map(([p,h])=>[p,(...y)=>{const g=this.buildProps(u,n),b=h(...y)(g);return l.push(b),f}])),run:d};return f}createCan(e){const{rawCommands:n,state:r}=this,o=!1,i=e||r.tr,s=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...d)=>u(...d)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l={tr:e,editor:o,view:s,state:ql({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([c,u])=>[c,(...d)=>u(...d)(l)]))}};return l}}class WL{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(o=>o!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function H(t,e,n){return t.config[e]===void 0&&t.parent?H(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?H(t.parent,e,n):null}):t.config[e]}function Jl(t){const e=t.filter(o=>o.type==="extension"),n=t.filter(o=>o.type==="node"),r=t.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function y7(t){const e=[],{nodeExtensions:n,markExtensions:r}=Jl(t),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},c=H(s,"addGlobalAttributes",l);if(!c)return;c().forEach(d=>{d.types.forEach(f=>{Object.entries(d.attributes).forEach(([p,h])=>{e.push({type:f,name:p,attribute:{...i,...h}})})})})}),o.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},c=H(s,"addAttributes",l);if(!c)return;const u=c();Object.entries(u).forEach(([d,f])=>{const p={...i,...f};typeof(p==null?void 0:p.default)=="function"&&(p.default=p.default()),p!=null&&p.isRequired&&(p==null?void 0:p.default)===void 0&&delete p.default,e.push({type:s.name,name:d,attribute:p})})}),e}function He(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function ke(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const l=i?i.split(" "):[],c=r[o]?r[o].split(" "):[],u=l.filter(d=>!c.includes(d));r[o]=[...c,...u].join(" ")}else o==="style"?r[o]=[r[o],i].join("; "):r[o]=i}),r},{})}function dd(t,e){return e.filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>ke(n,r),{})}function b7(t){return typeof t=="function"}function Q(t,e=void 0,...n){return b7(t)?e?t.bind(e)(...n):t(...n):t}function UL(t={}){return Object.keys(t).length===0&&t.constructor===Object}function KL(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function w7(t,e){return t.style?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const o=e.reduce((i,s)=>{const l=s.attribute.parseHTML?s.attribute.parseHTML(n):KL(n.getAttribute(s.name));return l==null?i:{...i,[s.name]:l}},{});return{...r,...o}}}}function v7(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&UL(n)?!1:n!=null))}function GL(t,e){var n;const r=y7(t),{nodeExtensions:o,markExtensions:i}=Jl(t),s=(n=o.find(u=>H(u,"topNode")))===null||n===void 0?void 0:n.name,l=Object.fromEntries(o.map(u=>{const d=r.filter(b=>b.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((b,w)=>{const C=H(w,"extendNodeSchema",f);return{...b,...C?C(u):{}}},{}),h=v7({...p,content:Q(H(u,"content",f)),marks:Q(H(u,"marks",f)),group:Q(H(u,"group",f)),inline:Q(H(u,"inline",f)),atom:Q(H(u,"atom",f)),selectable:Q(H(u,"selectable",f)),draggable:Q(H(u,"draggable",f)),code:Q(H(u,"code",f)),defining:Q(H(u,"defining",f)),isolating:Q(H(u,"isolating",f)),attrs:Object.fromEntries(d.map(b=>{var w;return[b.name,{default:(w=b==null?void 0:b.attribute)===null||w===void 0?void 0:w.default}]}))}),m=Q(H(u,"parseHTML",f));m&&(h.parseDOM=m.map(b=>w7(b,d)));const y=H(u,"renderHTML",f);y&&(h.toDOM=b=>y({node:b,HTMLAttributes:dd(b,d)}));const g=H(u,"renderText",f);return g&&(h.toText=g),[u.name,h]})),c=Object.fromEntries(i.map(u=>{const d=r.filter(g=>g.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((g,b)=>{const w=H(b,"extendMarkSchema",f);return{...g,...w?w(u):{}}},{}),h=v7({...p,inclusive:Q(H(u,"inclusive",f)),excludes:Q(H(u,"excludes",f)),group:Q(H(u,"group",f)),spanning:Q(H(u,"spanning",f)),code:Q(H(u,"code",f)),attrs:Object.fromEntries(d.map(g=>{var b;return[g.name,{default:(b=g==null?void 0:g.attribute)===null||b===void 0?void 0:b.default}]}))}),m=Q(H(u,"parseHTML",f));m&&(h.parseDOM=m.map(g=>w7(g,d)));const y=H(u,"renderHTML",f);return y&&(h.toDOM=g=>y({mark:g,HTMLAttributes:dd(g,d)})),[u.name,h]}));return new oB({topNode:s,nodes:l,marks:c})}function fd(t,e){return e.nodes[t]||e.marks[t]||null}function C7(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const qL=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,l)=>{var c,u;const d=((u=(c=o.type.spec).toText)===null||u===void 0?void 0:u.call(c,{node:o,pos:i,parent:s,index:l}))||o.textContent||"%leaf%";n+=d.slice(0,Math.max(0,r-i))}),n};function pd(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class Ql{constructor(e){this.find=e.find,this.handler=e.handler}}const YL=(t,e)=>{if(pd(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function hd(t){var e;const{editor:n,from:r,to:o,text:i,rules:s,plugin:l}=t,{view:c}=n;if(c.composing)return!1;const u=c.state.doc.resolve(r);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(p=>p.type.spec.code))return!1;let d=!1;const f=qL(u)+i;return s.forEach(p=>{if(d)return;const h=YL(f,p.find);if(!h)return;const m=c.state.tr,y=ql({state:c.state,transaction:m}),g={from:r-(h[0].length-i.length),to:o},{commands:b,chain:w,can:C}=new Yl({editor:n,state:y});p.handler({state:y,range:g,match:h,commands:b,chain:w,can:C})===null||!m.steps.length||(m.setMeta(l,{transform:m,from:r,to:o,text:i}),c.dispatch(m),d=!0)}),d}function JL(t){const{editor:e,rules:n}=t,r=new Ke({state:{init(){return null},apply(o,i){const s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:i)}},props:{handleTextInput(o,i,s,l){return hd({editor:e,from:i,to:s,text:l,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&hd({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?hd({editor:e,from:s.pos,to:s.pos,text:`
253
- `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function QL(t){return typeof t=="number"}class XL{constructor(e){this.find=e.find,this.handler=e.handler}}const eV=(t,e,n)=>{if(pd(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(o=>{const i=[o.text];return i.index=o.index,i.input=t,i.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(o.replaceWith)),i}):[]};function tV(t){const{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:l}=t,{commands:c,chain:u,can:d}=new Yl({editor:e,state:n}),f=[];return n.doc.nodesBetween(r,o,(h,m)=>{if(!h.isTextblock||h.type.spec.code)return;const y=Math.max(r,m),g=Math.min(o,m+h.content.size),b=h.textBetween(y-m,g-m,void 0,"ļæ¼");eV(b,i.find,s).forEach(C=>{if(C.index===void 0)return;const v=y+C.index+1,E=v+C[0].length,S={from:n.tr.mapping.map(v),to:n.tr.mapping.map(E)},k=i.handler({state:n,range:S,match:C,commands:c,chain:u,can:d,pasteEvent:s,dropEvent:l});f.push(k)})}),f.every(h=>h!==null)}function nV(t){const{editor:e,rules:n}=t;let r=null,o=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l=typeof DragEvent<"u"?new DragEvent("drop"):null;return n.map(u=>new Ke({view(d){const f=p=>{var h;r=!((h=d.dom.parentElement)===null||h===void 0)&&h.contains(p.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(d,f)=>(i=r===d.dom.parentElement,l=f,!1),paste:(d,f)=>{var p;const h=(p=f.clipboardData)===null||p===void 0?void 0:p.getData("text/html");return s=f,o=!!(h!=null&&h.includes("data-pm-slice")),!1}}},appendTransaction:(d,f,p)=>{const h=d[0],m=h.getMeta("uiEvent")==="paste"&&!o,y=h.getMeta("uiEvent")==="drop"&&!i;if(!m&&!y)return;const g=f.doc.content.findDiffStart(p.doc.content),b=f.doc.content.findDiffEnd(p.doc.content);if(!QL(g)||!b||g===b.b)return;const w=p.tr,C=ql({state:p,transaction:w});if(!(!tV({editor:e,state:C,from:Math.max(g-1,0),to:b.b-1,rule:u,pasteEvent:s,dropEvent:l})||!w.steps.length))return l=typeof DragEvent<"u"?new DragEvent("drop"):null,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,w}}))}function rV(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return[...new Set(e)]}class li{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=li.resolve(e),this.schema=GL(this.extensions,n),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const i={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:fd(r.name,this.schema)};r.type==="mark"&&(!((o=Q(H(r,"keepOnSplit",i)))!==null&&o!==void 0)||o)&&this.splittableMarks.push(r.name);const s=H(r,"onBeforeCreate",i);s&&this.editor.on("beforeCreate",s);const l=H(r,"onCreate",i);l&&this.editor.on("create",l);const c=H(r,"onUpdate",i);c&&this.editor.on("update",c);const u=H(r,"onSelectionUpdate",i);u&&this.editor.on("selectionUpdate",u);const d=H(r,"onTransaction",i);d&&this.editor.on("transaction",d);const f=H(r,"onFocus",i);f&&this.editor.on("focus",f);const p=H(r,"onBlur",i);p&&this.editor.on("blur",p);const h=H(r,"onDestroy",i);h&&this.editor.on("destroy",h)})}static resolve(e){const n=li.sort(li.flatten(e)),r=rV(n.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},o=H(n,"addExtensions",r);return o?[n,...this.flatten(o())]:n}).flat(10)}static sort(e){return e.sort((r,o)=>{const i=H(r,"priority")||100,s=H(o,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:fd(n.name,this.schema)},o=H(n,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,n=li.sort([...this.extensions].reverse()),r=[],o=[],i=n.map(s=>{const l={name:s.name,options:s.options,storage:s.storage,editor:e,type:fd(s.name,this.schema)},c=[],u=H(s,"addKeyboardShortcuts",l);let d={};if(s.type==="mark"&&s.config.exitable&&(d.ArrowRight=()=>xt.handleExit({editor:e,mark:s})),u){const y=Object.fromEntries(Object.entries(u()).map(([g,b])=>[g,()=>b({editor:e})]));d={...d,...y}}const f=wL(d);c.push(f);const p=H(s,"addInputRules",l);C7(s,e.options.enableInputRules)&&p&&r.push(...p());const h=H(s,"addPasteRules",l);C7(s,e.options.enablePasteRules)&&h&&o.push(...h());const m=H(s,"addProseMirrorPlugins",l);if(m){const y=m();c.push(...y)}return c}).flat();return[JL({editor:e,rules:r}),...nV({editor:e,rules:o}),...i]}get attributes(){return y7(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Jl(this.extensions);return Object.fromEntries(n.filter(r=>!!H(r,"addNodeView")).map(r=>{const o=this.attributes.filter(c=>c.type===r.name),i={name:r.name,options:r.options,storage:r.storage,editor:e,type:He(r.name,this.schema)},s=H(r,"addNodeView",i);if(!s)return[];const l=(c,u,d,f)=>{const p=dd(c,o);return s()({editor:e,node:c,getPos:d,decorations:f,HTMLAttributes:p,extension:r})};return[r.name,l]}))}}function oV(t){return Object.prototype.toString.call(t).slice(8,-1)}function md(t){return oV(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Xl(t,e){const n={...t};return md(t)&&md(e)&&Object.keys(e).forEach(r=>{md(e[r])?r in t?n[r]=Xl(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Object.assign(n,{[r]:e[r]})}),n}class nt{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Q(H(this,"addOptions",{name:this.name}))),this.storage=Q(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new nt(e)}configure(e={}){const n=this.extend();return n.options=Xl(this.options,e),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new nt({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Q(H(n,"addOptions",{name:n.name})),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}}function S7(t,e,n){const{from:r,to:o}=e,{blockSeparator:i=`
251
+ `))),0,0):V.empty;let f=t.someProp("clipboardTextParser",p=>p(e,o,r,t));if(f)l=f;else{let p=o.marks(),{schema:h}=t.state,m=dn.fromSchema(h);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let g=s.appendChild(document.createElement("p"));y&&g.appendChild(m.serializeNode(h.text(y,p)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=xR(n),qs&&PR(s);let u=s&&s.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let f=+d[3];f>0;f--){let p=s.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;s=p}if(l||(l=(t.someProp("clipboardParser")||t.someProp("domParser")||Ko.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||d),context:o,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!TR.test(p.parentNode.nodeName)?{ignore:!0}:null}})),d)l=DR(Fy(l,+d[1],+d[2]),d[4]);else if(l=V.maxOpen(MR(l.content,o),!0),l.openStart||l.openEnd){let f=0,p=0;for(let h=l.content.firstChild;f<l.openStart&&!h.type.spec.isolating;f++,h=h.firstChild);for(let h=l.content.lastChild;p<l.openEnd&&!h.type.spec.isolating;p++,h=h.lastChild);l=Fy(l,f,p)}return t.someProp("transformPasted",f=>{l=f(l,t)}),l}const TR=/^(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 MR(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(l=>{if(!s)return;let c=o.findWrapping(l.type),u;if(!c)return s=null;if(u=s.length&&i.length&&Vy(c,i,l,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=$y(s[s.length-1],i.length));let d=Ly(l,c);s.push(d),o=o.matchType(d.type),i=c}}),s)return A.from(s)}return t}function Ly(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,A.from(t));return t}function Vy(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=Vy(t,e,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(A.from(Ly(n,t,o+1))))}}function $y(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,$y(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(A.empty,!0);return t.copy(n.append(r))}function Qu(t,e,n,r,o,i){let s=e<0?t.firstChild:t.lastChild,l=s.content;return t.childCount>1&&(i=0),o<r-1&&(l=Qu(l,e,n,r,o+1,i)),o>=n&&(l=e<0?s.contentMatchAt(0).fillBefore(l,i<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(A.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(l))}function Fy(t,e,n){return e<t.openStart&&(t=new V(Qu(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new V(Qu(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Hy={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 _y=null;function zy(){return _y||(_y=document.implementation.createHTMLDocument("title"))}function xR(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=zy().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&Hy[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=t,o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function PR(t){let e=t.querySelectorAll(et?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent=="Ā "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function DR(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:o,openStart:i,openEnd:s}=t;for(let l=r.length-2;l>=0;l-=2){let c=n.nodes[r[l]];if(!c||c.hasRequiredAttrs())break;o=A.from(c.create(r[l+1],o)),i++,s++}return new V(o,i,s)}const dt={},ft={},AR={touchstart:!0,touchmove:!0};class IR{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.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 NR(t){for(let e in dt){let n=dt[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{RR(t,r)&&!ed(t,r)&&(t.editable||!(r.type in ft))&&n(t,r)},AR[e]?{passive:!0}:void 0)}ut&&t.dom.addEventListener("input",()=>null),Xu(t)}function wr(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function BR(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Xu(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>ed(t,r))})}function ed(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function RR(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function LR(t,e){!ed(t,e)&&dt[e.type]&&(t.editable||!(e.type in ft))&&dt[e.type](t,e)}ft.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Zy(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(tn&&et&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),ni&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",o=>o(t,oo(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||ER(t,n)?n.preventDefault():wr(t,"key")},ft.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},ft.keypress=(t,e)=>{let n=e;if(Zy(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ht&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof G)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",i=>i(t,r.$from.pos,r.$to.pos,o))&&t.dispatch(t.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function Zl(t){return{left:t.clientX,top:t.clientY}}function VR(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function td(t,e,n,r,o){if(r==-1)return!1;let i=t.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,l=>s>i.depth?l(t,n,i.nodeAfter,i.before(s),o,!0):l(t,n,i.node(s),i.before(s),o,!1)))return!0;return!1}function ii(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function $R(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&Z.isSelectable(r)?(ii(t,new Z(n),"pointer"),!0):!1}function FR(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof Z&&(r=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(Z.isSelectable(l)){r&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(s);break}}return o!=null?(ii(t,Z.create(t.state.doc,o),"pointer"),!0):!1}function HR(t,e,n,r,o){return td(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?FR(t,n):$R(t,n))}function _R(t,e,n,r){return td(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function zR(t,e,n,r){return td(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||jR(t,n,r)}function jR(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(ii(t,G.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),l=o.before(i);if(s.inlineContent)ii(t,G.create(r,l+1,l+1+s.content.size),"pointer");else if(Z.isSelectable(s))ii(t,Z.create(r,l),"pointer");else continue;return!0}}function nd(t){return Wl(t)}const jy=Ht?"metaKey":"ctrlKey";dt.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=nd(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&VR(n,t.input.lastClick)&&!n[jy]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let s=t.posAtCoords(Zl(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new ZR(t,s,n,!!r)):(i=="doubleClick"?_R:zR)(t,s.pos,s.inside,n)?n.preventDefault():wr(t,"pointer"))};class ZR{constructor(e,n,r,o){this.view=e,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[jy],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let d=e.state.doc.resolve(n.pos);i=d.parent,s=d.depth?d.before():0}const l=o?null:r.target,c=l?e.docView.nearestDesc(l,!0):null;this.target=c?c.dom:null;let{selection:u}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof Z&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&en&&!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()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),wr(e,"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(()=>$n(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Zl(e))),this.updateAllowDefault(e),this.allowDefault||!n?wr(this.view,"pointer"):HR(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||ut&&this.mightDrag&&!this.mightDrag.node.isAtom||et&&!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)?(ii(this.view,J.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):wr(this.view,"pointer")}move(e){this.updateAllowDefault(e),wr(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}dt.touchstart=t=>{t.input.lastTouch=Date.now(),nd(t),wr(t,"pointer")},dt.touchmove=t=>{t.input.lastTouch=Date.now(),wr(t,"pointer")},dt.contextmenu=t=>nd(t);function Zy(t,e){return t.composing?!0:ut&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const WR=tn?5e3:-1;ft.compositionstart=ft.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Wl(t,!0),t.markCursor=null;else if(Wl(t),en&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}Wy(t,WR)},ft.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Wy(t,20))};function Wy(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Wl(t),e))}function Uy(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=UR());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function UR(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Wl(t,e=!1){if(!(tn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Uy(t),e||t.docView&&t.docView.dirty){let n=Ku(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function KR(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const ea=wt&&mr<15||ni&&ZB<604;dt.copy=ft.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=ea?null:n.clipboardData,s=r.content(),{dom:l,text:c}=By(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",c)):KR(t,l),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function GR(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function qR(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?ta(t,r.value,null,o,e):ta(t,r.textContent,r.innerHTML,o,e)},50)}function ta(t,e,n,r,o){let i=Ry(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",c=>c(t,o,i||V.empty)))return!0;if(!i)return!1;let s=GR(i),l=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(i);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Ky(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}ft.paste=(t,e)=>{let n=e;if(t.composing&&!tn)return;let r=ea?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&ta(t,Ky(r),r.getData("text/html"),o,n)?n.preventDefault():qR(t,n)};class Gy{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const qy=Ht?"altKey":"ctrlKey";dt.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=t.state.selection,i=o.empty?null:t.posAtCoords(Zl(n)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Z?o.to-1:o.to))){if(r&&r.mightDrag)s=Z.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(s=Z.create(t.state.doc,d.posBefore))}}let l=(s||t.state.selection).content(),{dom:c,text:u}=By(t,l);n.dataTransfer.clearData(),n.dataTransfer.setData(ea?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",ea||n.dataTransfer.setData("text/plain",u),t.dragging=new Gy(l,!n[qy],s)},dt.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},ft.dragover=ft.dragenter=(t,e)=>e.preventDefault(),ft.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let o=t.posAtCoords(Zl(n));if(!o)return;let i=t.state.doc.resolve(o.pos),s=r&&r.slice;s?t.someProp("transformPasted",m=>{s=m(s,t)}):s=Ry(t,Ky(n.dataTransfer),ea?null:n.dataTransfer.getData("text/html"),!1,i);let l=!!(r&&!n[qy]);if(t.someProp("handleDrop",m=>m(t,n,s||V.empty,l))){n.preventDefault();return}if(!s)return;n.preventDefault();let c=s?V3(t.state.doc,i.pos,s):i.pos;c==null&&(c=i.pos);let u=t.state.tr;if(l){let{node:m}=r;m?m.replace(u):u.deleteSelection()}let d=u.mapping.map(c),f=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,p=u.doc;if(f?u.replaceRangeWith(d,d,s.content.firstChild):u.replaceRange(d,d,s),u.doc.eq(p))return;let h=u.doc.resolve(d);if(f&&Z.isSelectable(s.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new Z(h));else{let m=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((y,g,b,w)=>m=w),u.setSelection(qu(t,h,u.doc.resolve(m)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},dt.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&$n(t)},20))},dt.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},dt.beforeinput=(t,e)=>{if(et&&tn&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,oo(8,"Backspace")))))return;let{$cursor:o}=t.state.selection;o&&o.pos>0&&t.dispatch(t.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let t in ft)dt[t]=ft[t];function na(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Ul{constructor(e,n){this.toDOM=e,this.spec=n||lo,this.side=this.spec.side||0}map(e,n,r,o){let{pos:i,deleted:s}=e.mapResult(n.from+o,this.side<0?-1:1);return s?null:new zt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Ul&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&na(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class vr{constructor(e,n){this.attrs=e,this.spec=n||lo}map(e,n,r,o){let i=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new zt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof vr&&na(this.attrs,e.attrs)&&na(this.spec,e.spec)}static is(e){return e.type instanceof vr}destroy(){}}class rd{constructor(e,n){this.attrs=e,this.spec=n||lo}map(e,n,r,o){let i=e.mapResult(n.from+o,1);if(i.deleted)return null;let s=e.mapResult(n.to+o,-1);return s.deleted||s.pos<=i.pos?null:new zt(i.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:o}=e.content.findIndex(n.from),i;return o==n.from&&!(i=e.child(r)).isText&&o+i.nodeSize==n.to}eq(e){return this==e||e instanceof rd&&na(this.attrs,e.attrs)&&na(this.spec,e.spec)}destroy(){}}class zt{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new zt(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new zt(e,e,new Ul(n,r))}static inline(e,n,r,o){return new zt(e,n,new vr(r,o))}static node(e,n,r,o){return new zt(e,n,new rd(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof vr}get widget(){return this.type instanceof Ul}}const si=[],lo={};class Le{constructor(e,n){this.local=e.length?e:si,this.children=n.length?n:si}static create(e,n){return n.length?Kl(n,e,0,lo):tt}find(e,n,r){let o=[];return this.findInner(e??0,n??1e9,o,0,r),o}findInner(e,n,r,o,i){for(let s=0;s<this.local.length;s++){let l=this.local[s];l.from<=n&&l.to>=e&&(!i||i(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let l=this.children[s]+1;this.children[s+2].findInner(e-l,n-l,r,o+l,i)}}map(e,n,r){return this==tt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||lo)}mapInner(e,n,r,o,i){let s;for(let l=0;l<this.local.length;l++){let c=this.local[l].map(e,r,o);c&&c.type.valid(n,c)?(s||(s=[])).push(c):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?YR(this.children,s||[],e,n,r,o,i):s?new Le(s.sort(co),si):tt}add(e,n){return n.length?this==tt?Le.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,i=0;e.forEach((l,c)=>{let u=c+r,d;if(d=Jy(n,l,u)){for(o||(o=this.children.slice());i<o.length&&o[i]<c;)i+=3;o[i]==c?o[i+2]=o[i+2].addInner(l,d,u+1):o.splice(i,0,c,c+l.nodeSize,Kl(d,l,u+1,lo)),i+=3}});let s=Yy(i?Qy(n):n,-r);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||s.splice(l--,1);return new Le(s.length?this.local.concat(s).sort(co):this.local,o||this.children)}remove(e){return e.length==0||this==tt?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,o=this.local;for(let i=0;i<r.length;i+=3){let s,l=r[i]+n,c=r[i+1]+n;for(let d=0,f;d<e.length;d++)(f=e[d])&&f.from>l&&f.to<c&&(e[d]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let u=r[i+2].removeInner(s,l+1);u!=tt?r[i+2]=u:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let l=0;l<o.length;l++)o[l].eq(s,n)&&(o==this.local&&(o=this.local.slice()),o.splice(l--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new Le(o,r):tt}forChild(e,n){if(this==tt)return this;if(n.isLeaf)return Le.empty;let r,o;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(r=this.children[l+2]);break}let i=e+1,s=i+n.content.size;for(let l=0;l<this.local.length;l++){let c=this.local[l];if(c.from<s&&c.to>i&&c.type instanceof vr){let u=Math.max(i,c.from)-i,d=Math.min(s,c.to)-i;u<d&&(o||(o=[])).push(c.copy(u,d))}}if(o){let l=new Le(o.sort(co),si);return r?new Cr([l,r]):l}return r||tt}eq(e){if(this==e)return!0;if(!(e instanceof Le)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return od(this.localsInner(e))}localsInner(e){if(this==tt)return si;if(e.inlineContent||!this.local.some(vr.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof vr||n.push(this.local[r]);return n}}Le.empty=new Le([],[]),Le.removeOverlap=od;const tt=Le.empty;class Cr{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,lo));return Cr.from(r)}forChild(e,n){if(n.isLeaf)return Le.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,n);i!=tt&&(i instanceof Cr?r=r.concat(i.members):r.push(i))}return Cr.from(r)}eq(e){if(!(e instanceof Cr)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let o=0;o<this.members.length;o++){let i=this.members[o].localsInner(e);if(i.length)if(!n)n=i;else{r&&(n=n.slice(),r=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?od(r?n:n.sort(co)):si}static from(e){switch(e.length){case 0:return tt;case 1:return e[0];default:return new Cr(e.every(n=>n instanceof Le)?e:e.reduce((n,r)=>n.concat(r instanceof Le?r:r.members),[]))}}}function YR(t,e,n,r,o,i,s){let l=t.slice();for(let u=0,d=i;u<n.maps.length;u++){let f=0;n.maps[u].forEach((p,h,m,y)=>{let g=y-m-(h-p);for(let b=0;b<l.length;b+=3){let w=l[b+1];if(w<0||p>w+d-f)continue;let C=l[b]+d-f;h>=C?l[b+1]=p<=C?-2:-1:p>=d&&g&&(l[b]+=g,l[b+1]+=g)}f+=g}),d=n.maps[u].map(d,-1)}let c=!1;for(let u=0;u<l.length;u+=3)if(l[u+1]<0){if(l[u+1]==-2){c=!0,l[u+1]=-1;continue}let d=n.map(t[u]+i),f=d-o;if(f<0||f>=r.content.size){c=!0;continue}let p=n.map(t[u+1]+i,-1),h=p-o,{index:m,offset:y}=r.content.findIndex(f),g=r.maybeChild(m);if(g&&y==f&&y+g.nodeSize==h){let b=l[u+2].mapInner(n,g,d+1,t[u]+i+1,s);b!=tt?(l[u]=f,l[u+1]=h,l[u+2]=b):(l[u+1]=-2,c=!0)}else c=!0}if(c){let u=JR(l,t,e,n,o,i,s),d=Kl(u,r,0,s);e=d.local;for(let f=0;f<l.length;f+=3)l[f+1]<0&&(l.splice(f,3),f-=3);for(let f=0,p=0;f<d.children.length;f+=3){let h=d.children[f];for(;p<l.length&&l[p]<h;)p+=3;l.splice(p,0,d.children[f],d.children[f+1],d.children[f+2])}}return new Le(e.sort(co),l)}function Yy(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let o=t[r];n.push(new zt(o.from+e,o.to+e,o.type))}return n}function JR(t,e,n,r,o,i,s){function l(c,u){for(let d=0;d<c.local.length;d++){let f=c.local[d].map(r,o,u);f?n.push(f):s.onRemove&&s.onRemove(c.local[d].spec)}for(let d=0;d<c.children.length;d+=3)l(c.children[d+2],c.children[d]+u+1)}for(let c=0;c<t.length;c+=3)t[c+1]==-1&&l(t[c+2],e[c]+i+1);return n}function Jy(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,o=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<r&&((o||(o=[])).push(s),t[i]=null);return o}function Qy(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function Kl(t,e,n,r){let o=[],i=!1;e.forEach((l,c)=>{let u=Jy(t,l,c+n);if(u){i=!0;let d=Kl(u,l,n+c+1,r);d!=tt&&o.push(c,c+l.nodeSize,d)}});let s=Yy(i?Qy(t):t,-n).sort(co);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||(r.onRemove&&r.onRemove(s[l].spec),s.splice(l--,1));return s.length||o.length?new Le(s,o):tt}function co(t,e){return t.from-e.from||t.to-e.to}function od(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let o=n+1;o<e.length;o++){let i=e[o];if(i.from==r.from){i.to!=r.to&&(e==t&&(e=t.slice()),e[o]=i.copy(i.from,r.to),Xy(e,o+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,i.from),Xy(e,o,r.copy(i.from,r.to)));break}}}return e}function Xy(t,e,n){for(;e<t.length&&co(n,t[e])>0;)e++;t.splice(e,0,n)}function id(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=tt&&e.push(r)}),t.cursorWrapper&&e.push(Le.create(t.state.doc,[t.cursorWrapper.deco])),Cr.from(e)}const QR={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},XR=wt&&mr<=11;class eL{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class tL{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new eL,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);wt&&mr<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),XR&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.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,QR)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[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(Ty(this.view)){if(this.suppressingSelectionUpdates)return $n(this.view);if(wt&&mr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&ro(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let i=e.focusNode;i;i=Gs(i))n.add(i);for(let i=e.anchorNode;i;i=Gs(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Ty(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,l=!1,c=[];if(e.editable)for(let d=0;d<n.length;d++){let f=this.registerMutation(n[d],c);f&&(i=i<0?f.from:Math.min(f.from,i),s=s<0?f.to:Math.max(f.to,s),f.typeOver&&(l=!0))}if(en&&c.length>1){let d=c.filter(f=>f.nodeName=="BR");if(d.length==2){let f=d[0],p=d[1];f.parentNode&&f.parentNode.parentNode==p.parentNode?p.remove():f.remove()}}let u=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&_l(r)&&(u=Ku(e))&&u.eq(J.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,$n(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),nL(e)),this.handleDOMChange(i,s,l,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||$n(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let d=0;d<e.addedNodes.length;d++)n.push(e.addedNodes[d]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(wt&&mr<=11&&e.addedNodes.length)for(let d=0;d<e.addedNodes.length;d++){let{previousSibling:f,nextSibling:p}=e.addedNodes[d];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(i=p)}let s=o&&o.parentNode==e.target?ct(o)+1:0,l=r.localPosFromDOM(e.target,s,-1),c=i&&i.parentNode==e.target?ct(i):e.target.childNodes.length,u=r.localPosFromDOM(e.target,c,1);return{from:l,to:u}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let e7=new WeakMap,t7=!1;function nL(t){if(!e7.has(t)&&(e7.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=en,t7)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."),t7=!0}}function rL(t){let e;function n(c){c.preventDefault(),c.stopImmediatePropagation(),e=c.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let r=e.startContainer,o=e.startOffset,i=e.endContainer,s=e.endOffset,l=t.domAtPos(t.state.selection.anchor);return ro(l.node,l.offset,i,s)&&([r,o,i,s]=[i,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}}function oL(t,e,n){let{node:r,fromOffset:o,toOffset:i,from:s,to:l}=t.docView.parseRange(e,n),c=t.domSelectionRange(),u,d=c.anchorNode;if(d&&t.dom.contains(d.nodeType==1?d:d.parentNode)&&(u=[{node:d,offset:c.anchorOffset}],_l(c)||u.push({node:c.focusNode,offset:c.focusOffset})),et&&t.input.lastKeyCode===8)for(let g=i;g>o;g--){let b=r.childNodes[g-1],w=b.pmViewDesc;if(b.nodeName=="BR"&&!w){i=g;break}if(!w||w.size)break}let f=t.state.doc,p=t.someProp("domParser")||Ko.fromSchema(t.state.schema),h=f.resolve(s),m=null,y=p.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:i,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:iL,context:h});if(u&&u[0].pos!=null){let g=u[0].pos,b=u[1]&&u[1].pos;b==null&&(b=g),m={anchor:g+s,head:b+s}}return{doc:y,sel:m,from:s,to:l}}function iL(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(ut&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||ut&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const sL=/^(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 aL(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let D=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,N=Ku(t,D);if(N&&!t.state.selection.eq(N)){if(et&&tn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",$=>$(t,oo(13,"Enter"))))return;let B=t.state.tr.setSelection(N);D=="pointer"?B.setMeta("pointer",!0):D=="key"&&B.scrollIntoView(),i&&B.setMeta("composition",i),t.dispatch(B)}return}let s=t.state.doc.resolve(e),l=s.sharedDepth(n);e=s.before(l+1),n=t.state.doc.resolve(n).after(l+1);let c=t.state.selection,u=oL(t,e,n),d=t.state.doc,f=d.slice(u.from,u.to),p,h;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(p=t.state.selection.to,h="end"):(p=t.state.selection.from,h="start"),t.input.lastKeyCode=null;let m=uL(f.content,u.doc.content,u.from,p,h);if((ni&&t.input.lastIOSEnter>Date.now()-225||tn)&&o.some(D=>D.nodeType==1&&!sL.test(D.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",D=>D(t,oo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&c instanceof G&&!c.empty&&c.$head.sameParent(c.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(u.sel){let D=n7(t,t.state.doc,u.sel);if(D&&!D.eq(t.state.selection)){let N=t.state.tr.setSelection(D);i&&N.setMeta("composition",i),t.dispatch(N)}}return}if(et&&t.cursorWrapper&&u.sel&&u.sel.anchor==t.cursorWrapper.deco.from&&u.sel.head==u.sel.anchor){let D=m.endB-m.start;u.sel={anchor:u.sel.anchor+D,head:u.sel.anchor+D}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof G&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),wt&&mr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>u.from&&u.doc.textBetween(m.start-u.from-1,m.start-u.from+1)==" Ā "&&(m.start--,m.endA--,m.endB--);let y=u.doc.resolveNoCache(m.start-u.from),g=u.doc.resolveNoCache(m.endB-u.from),b=d.resolve(m.start),w=y.sameParent(g)&&y.parent.inlineContent&&b.end()>=m.endA,C;if((ni&&t.input.lastIOSEnter>Date.now()-225&&(!w||o.some(D=>D.nodeName=="DIV"||D.nodeName=="P"))||!w&&y.pos<u.doc.content.size&&!y.sameParent(g)&&(C=J.findFrom(u.doc.resolve(y.pos+1),1,!0))&&C.head==g.pos)&&t.someProp("handleKeyDown",D=>D(t,oo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&cL(d,m.start,m.endA,y,g)&&t.someProp("handleKeyDown",D=>D(t,oo(8,"Backspace")))){tn&&et&&t.domObserver.suppressSelectionUpdates();return}et&&tn&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),tn&&!w&&y.start()!=g.start()&&g.parentOffset==0&&y.depth==g.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==m.endA&&(m.endB-=2,g=u.doc.resolveNoCache(m.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(D){return D(t,oo(13,"Enter"))})},20));let v=m.start,E=m.endA,S,k,T;if(w){if(y.pos==g.pos)wt&&mr<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>$n(t),20)),S=t.state.tr.delete(v,E),k=d.resolve(m.start).marksAcross(d.resolve(m.endA));else if(m.endA==m.endB&&(T=lL(y.parent.content.cut(y.parentOffset,g.parentOffset),b.parent.content.cut(b.parentOffset,m.endA-b.start()))))S=t.state.tr,T.type=="add"?S.addMark(v,E,T.mark):S.removeMark(v,E,T.mark);else if(y.parent.child(y.index()).isText&&y.index()==g.index()-(g.textOffset?0:1)){let D=y.parent.textBetween(y.parentOffset,g.parentOffset);if(t.someProp("handleTextInput",N=>N(t,v,E,D)))return;S=t.state.tr.insertText(D,v,E)}}if(S||(S=t.state.tr.replace(v,E,u.doc.slice(m.start-u.from,m.endB-u.from))),u.sel){let D=n7(t,S.doc,u.sel);D&&!(et&&tn&&t.composing&&D.empty&&(m.start!=m.endB||t.input.lastAndroidDelete<Date.now()-100)&&(D.head==v||D.head==S.mapping.map(E)-1)||wt&&D.empty&&D.head==v)&&S.setSelection(D)}k&&S.ensureMarks(k),i&&S.setMeta("composition",i),t.dispatch(S.scrollIntoView())}function n7(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:qu(t,e.resolve(n.anchor),e.resolve(n.head))}function lL(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,l,c;for(let d=0;d<r.length;d++)o=r[d].removeFromSet(o);for(let d=0;d<n.length;d++)i=n[d].removeFromSet(i);if(o.length==1&&i.length==0)l=o[0],s="add",c=d=>d.mark(l.addToSet(d.marks));else if(o.length==0&&i.length==1)l=i[0],s="remove",c=d=>d.mark(l.removeFromSet(d.marks));else return null;let u=[];for(let d=0;d<e.childCount;d++)u.push(c(e.child(d)));if(A.from(u).eq(t))return{mark:l,type:s}}function cL(t,e,n,r,o){if(!r.parent.isTextblock||n-e<=o.pos-r.pos||sd(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(sd(i,!0,!0));return!s.parent.isTextblock||s.pos>n||sd(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function sd(t,e,n){let r=t.depth,o=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let i=t.node(r).maybeChild(t.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function uL(t,e,n,r,o){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:l}=t.findDiffEnd(e,n+t.size,n+e.size);if(o=="end"){let c=Math.max(0,i-Math.min(s,l));r-=s+c-i}if(s<i&&t.size<e.size){let c=r<=i&&r>=s?i-r:0;i-=c,i&&i<e.size&&r7(e.textBetween(i-1,i+1))&&(i+=c?1:-1),l=i+(l-s),s=i}else if(l<i){let c=r<=i&&r>=l?i-r:0;i-=c,i&&i<t.size&&r7(t.textBetween(i-1,i+1))&&(i+=c?1:-1),s=i+(s-l),l=i}return{start:i,endA:s,endB:l}}function r7(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class dL{constructor(e,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 IR,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(l7),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=s7(this),i7(this),this.nodeViews=a7(this),this.docView=hy(this.state.doc,o7(this),id(this),this.dom,this),this.domObserver=new tL(this,(r,o,i,s)=>aL(this,r,o,i,s)),this.domObserver.start(),NR(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Xu(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(l7),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let o=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(Uy(this),s=!0),this.state=e;let l=o.plugins!=e.plugins||this._props.plugins!=n.plugins;if(l||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=a7(this);pL(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(l||n.handleDOMEvents!=this._props.handleDOMEvents)&&Xu(this),this.editable=s7(this),i7(this);let c=id(this),u=o7(this),d=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,u,c);(f||!e.selection.eq(o.selection))&&(s=!0);let p=d=="preserve"&&s&&this.dom.style.overflowAnchor==null&&KB(this);if(s){this.domObserver.stop();let h=f&&(wt||et)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&fL(o.selection,e.selection);if(f){let m=et?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(e.doc,u,c,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=hy(e.doc,u,c,this.dom,this)),m&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&bR(this))?$n(this,h):(Oy(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():p&&GB(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Z){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&ty(this,n.getBoundingClientRect(),e)}else ty(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,o=-1;if(this.state.doc.nodeAt(r.from)==r.node)o=r.from;else{let i=r.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new Gy(e.slice,e.move,o<0?void 0:Z.create(this.state.doc,o))}someProp(e,n){let r=this._props&&this._props[e],o;if(r!=null&&(o=n?n(r):r))return o;for(let s=0;s<this.directPlugins.length;s++){let l=this.directPlugins[s].props[e];if(l!=null&&(o=n?n(l):l))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let l=i[s].props[e];if(l!=null&&(o=n?n(l):l))return o}}hasFocus(){if(wt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&qB(this.dom),$n(this),this.domObserver.start()}get root(){let e=this._root;if(e==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 e||document}updateRoot(){this._root=null}posAtCoords(e){return eR(this,e)}coordsAtPos(e,n=1){return ay(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let o=this.docView.posFromDOM(e,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,n){return iR(this,n||this.state,e)}pasteHTML(e,n){return ta(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return ta(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(BR(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],id(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return LR(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return ut&&this.root.nodeType===11&&HB(this.dom.ownerDocument)==this.dom?rL(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function o7(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[zt.node(0,t.state.doc.content.size,e)]}function i7(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:zt.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function s7(t){return!t.someProp("editable",e=>e(t.state)===!1)}function fL(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function a7(t){let e=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function pL(t,e){let n=0,r=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let o in e)r++;return n!=r}function l7(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Sr={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:"'"},Gl={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},hL=typeof navigator<"u"&&/Mac/.test(navigator.platform),mL=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ge=0;Ge<10;Ge++)Sr[48+Ge]=Sr[96+Ge]=String(Ge);for(var Ge=1;Ge<=24;Ge++)Sr[Ge+111]="F"+Ge;for(var Ge=65;Ge<=90;Ge++)Sr[Ge]=String.fromCharCode(Ge+32),Gl[Ge]=String.fromCharCode(Ge);for(var ad in Sr)Gl.hasOwnProperty(ad)||(Gl[ad]=Sr[ad]);function gL(t){var e=hL&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||mL&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Gl:Sr)[t.keyCode]||t.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 yL=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function bL(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,o,i,s;for(let l=0;l<e.length-1;l++){let c=e[l];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))o=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))yL?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+c)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function wL(t){let e=Object.create(null);for(let n in t)e[bL(n)]=t[n];return e}function ld(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function vL(t){return new Ke({props:{handleKeyDown:c7(t)}})}function c7(t){let e=wL(t);return function(n,r){let o=gL(r),i,s=e[ld(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let l=e[ld(o,r,!1)];if(l&&l(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(i=Sr[r.keyCode])&&i!=o){let l=e[ld(i,r)];if(l&&l(n.state,n.dispatch,n))return!0}}return!1}}const CL=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function u7(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const SL=(t,e,n)=>{let r=u7(t,n);if(!r)return!1;let o=cd(r);if(!o){let s=r.blockRange(),l=s&&Yo(s);return l==null?!1:(e&&e(t.tr.lift(s,l).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&h7(t,o,e))return!0;if(r.parent.content.size==0&&(ai(i,"end")||Z.isSelectable(i))){let s=$l(t.doc,r.before(),r.after(),V.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=t.tr.step(s);l.setSelection(ai(i,"end")?J.findFrom(l.doc.resolve(l.mapping.map(o.pos,-1)),-1):Z.create(l.doc,o.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1},kL=(t,e,n)=>{let r=u7(t,n);if(!r)return!1;let o=cd(r);return o?d7(t,o,e):!1},OL=(t,e,n)=>{let r=f7(t,n);if(!r)return!1;let o=ud(r);return o?d7(t,o,e):!1};function d7(t,e,n){let r=e.nodeBefore,o=r,i=e.pos-1;for(;!o.isTextblock;i--){if(o.type.spec.isolating)return!1;let d=o.lastChild;if(!d)return!1;o=d}let s=e.nodeAfter,l=s,c=e.pos+1;for(;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;let d=l.firstChild;if(!d)return!1;l=d}let u=$l(t.doc,i,c,V.empty);if(!u||u.from!=i||u instanceof $e&&u.slice.size>=c-i)return!1;if(n){let d=t.tr.step(u);d.setSelection(G.create(d.doc,i)),n(d.scrollIntoView())}return!0}function ai(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const EL=(t,e,n)=>{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;i=cd(r)}let s=i&&i.nodeBefore;return!s||!Z.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Z.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function cd(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function f7(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const TL=(t,e,n)=>{let r=f7(t,n);if(!r)return!1;let o=ud(r);if(!o)return!1;let i=o.nodeAfter;if(h7(t,o,e))return!0;if(r.parent.content.size==0&&(ai(i,"start")||Z.isSelectable(i))){let s=$l(t.doc,r.before(),r.after(),V.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=t.tr.step(s);l.setSelection(ai(i,"start")?J.findFrom(l.doc.resolve(l.mapping.map(o.pos)),1):Z.create(l.doc,l.mapping.map(o.pos))),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0):!1},ML=(t,e,n)=>{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;i=ud(r)}let s=i&&i.nodeAfter;return!s||!Z.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Z.create(t.doc,i.pos)).scrollIntoView()),!0)};function ud(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const xL=(t,e)=>{let n=t.selection,r=n instanceof Z,o;if(r){if(n.node.isTextblock||!pr(t.doc,n.from))return!1;o=n.from}else if(o=Vl(t.doc,n.from,-1),o==null)return!1;if(e){let i=t.tr.join(o);r&&i.setSelection(Z.create(i.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},PL=(t,e)=>{let n=t.selection,r;if(n instanceof Z){if(n.node.isTextblock||!pr(t.doc,n.to))return!1;r=n.to}else if(r=Vl(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},DL=(t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&Yo(o);return i==null?!1:(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)},AL=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
252
+ `).scrollIntoView()),!0)};function p7(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const IL=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),s=p7(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let l=n.after(),c=t.tr.replaceWith(l,l,s.createAndFill());c.setSelection(J.near(c.doc.resolve(l),1)),e(c.scrollIntoView())}return!0},NL=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof Xt||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=p7(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,l=t.tr.insert(s,i.createAndFill());l.setSelection(G.create(l.doc,s+1)),e(l.scrollIntoView())}return!0},BL=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Jo(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Yo(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)},RL=(t,e)=>{let{$from:n,to:r}=t.selection,o,i=n.sharedDepth(r);return i==0?!1:(o=n.before(i),e&&e(t.tr.setSelection(Z.create(t.doc,o))),!0)};function LL(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(o.isTextblock||pr(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function h7(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(LL(t,e,n))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(i=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(n){let f=e.pos+o.nodeSize,p=A.empty;for(let y=i.length-1;y>=0;y--)p=A.from(i[y].create(null,p));p=A.from(r.copy(p));let h=t.tr.step(new Fe(e.pos-1,f,e.pos,f,new V(p,1,0),i.length,!0)),m=f+2*i.length;pr(h.doc,m)&&h.join(m),n(h.scrollIntoView())}return!0}let c=J.findFrom(e,1),u=c&&c.$from.blockRange(c.$to),d=u&&Yo(u);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(u,d).scrollIntoView()),!0;if(l&&ai(o,"start",!0)&&ai(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let h=o,m=1;for(;!h.isTextblock;h=h.firstChild)m++;if(f.canReplace(f.childCount,f.childCount,h.content)){if(n){let y=A.empty;for(let b=p.length-1;b>=0;b--)y=A.from(p[b].copy(y));let g=t.tr.step(new Fe(e.pos-p.length,e.pos+o.nodeSize,e.pos+m,e.pos+o.nodeSize-m,new V(y,p.length,0),0,!0));n(g.scrollIntoView())}return!0}}return!1}function m7(t){return function(e,n){let r=e.selection,o=t<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(n&&n(e.tr.setSelection(G.create(e.doc,t<0?o.start(i):o.end(i)))),!0):!1}}const VL=m7(-1),$L=m7(1);function FL(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),l=s&&Au(s,t,e);return l?(r&&r(n.tr.wrap(s,l).scrollIntoView()),!0):!1}}function g7(t,e=null){return function(n,r){let o=!1;for(let i=0;i<n.selection.ranges.length&&!o;i++){let{$from:{pos:s},$to:{pos:l}}=n.selection.ranges[i];n.doc.nodesBetween(s,l,(c,u)=>{if(o)return!1;if(!(!c.isTextblock||c.hasMarkup(t,e)))if(c.type==t)o=!0;else{let d=n.doc.resolve(u),f=d.index();o=d.parent.canReplaceWith(f,f+1,t)}})}if(!o)return!1;if(r){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:c}}=n.selection.ranges[s];i.setBlockType(l,c,t,e)}r(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function HL(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),l=!1,c=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(o.index(s.depth-1)==0)return!1;let d=n.doc.resolve(s.start-2);c=new Dl(d,d,s.depth),s.endIndex<s.parent.childCount&&(s=new Dl(o,n.doc.resolve(i.end(s.depth)),s.depth)),l=!0}let u=Au(c,t,e,s);return u?(r&&r(_L(n.tr,s,u,l,t).scrollIntoView()),!0):!1}}function _L(t,e,n,r,o){let i=A.empty;for(let d=n.length-1;d>=0;d--)i=A.from(n[d].type.create(n[d].attrs,i));t.step(new Fe(e.start-(r?2:0),e.end,e.start,e.end,new V(i,0,0),n.length,!0));let s=0;for(let d=0;d<n.length;d++)n[d].type==o&&(s=d+1);let l=n.length-s,c=e.start+n.length-(r?2:0),u=e.parent;for(let d=e.startIndex,f=e.endIndex,p=!0;d<f;d++,p=!1)!p&&Jo(t.doc,c,l)&&(t.split(c,l),c+=2*l),c+=u.child(d).nodeSize;return t}function zL(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,s=>s.childCount>0&&s.firstChild.type==t);return i?n?r.node(i.depth-1).type==t?jL(e,n,t,i):ZL(e,n,i):!0:!1}}function jL(t,e,n,r){let o=t.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new Fe(i-1,s,i,s,new V(A.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Dl(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const l=Yo(r);if(l==null)return!1;o.lift(r,l);let c=o.mapping.map(i,-1)-1;return pr(o.doc,c)&&o.join(c),e(o.scrollIntoView()),!0}function ZL(t,e,n){let r=t.tr,o=n.parent;for(let h=n.end,m=n.endIndex-1,y=n.startIndex;m>y;m--)h-=o.child(m).nodeSize,r.delete(h-1,h+1);let i=r.doc.resolve(n.start),s=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,c=n.endIndex==o.childCount,u=i.node(-1),d=i.index(-1);if(!u.canReplace(d+(l?0:1),d+1,s.content.append(c?A.empty:A.from(o))))return!1;let f=i.pos,p=f+s.nodeSize;return r.step(new Fe(f-(l?1:0),p+(c?1:0),f+1,p-1,new V((l?A.empty:A.from(o.copy(A.empty))).append(c?A.empty:A.from(o.copy(A.empty))),l?0:1,c?0:1),l?0:1)),e(r.scrollIntoView()),!0}function WL(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,u=>u.childCount>0&&u.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let l=i.parent,c=l.child(s-1);if(c.type!=t)return!1;if(n){let u=c.lastChild&&c.lastChild.type==l.type,d=A.from(u?t.create():null),f=new V(A.from(t.create(null,A.from(l.type.create(null,d)))),u?3:1,0),p=i.start,h=i.end;n(e.tr.step(new Fe(p-(u?3:1),h,p,h,f,1,!0)).scrollIntoView())}return!0}}function ql(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}class Yl{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:o}=n,{tr:i}=r,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([l,c])=>[l,(...d)=>{const f=c(...d)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l=[],c=!!e,u=e||i.tr,d=()=>(!c&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),l.every(p=>p===!0)),f={...Object.fromEntries(Object.entries(r).map(([p,h])=>[p,(...y)=>{const g=this.buildProps(u,n),b=h(...y)(g);return l.push(b),f}])),run:d};return f}createCan(e){const{rawCommands:n,state:r}=this,o=!1,i=e||r.tr,s=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...d)=>u(...d)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l={tr:e,editor:o,view:s,state:ql({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([c,u])=>[c,(...d)=>u(...d)(l)]))}};return l}}class UL{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(o=>o!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function H(t,e,n){return t.config[e]===void 0&&t.parent?H(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?H(t.parent,e,n):null}):t.config[e]}function Jl(t){const e=t.filter(o=>o.type==="extension"),n=t.filter(o=>o.type==="node"),r=t.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function y7(t){const e=[],{nodeExtensions:n,markExtensions:r}=Jl(t),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},c=H(s,"addGlobalAttributes",l);if(!c)return;c().forEach(d=>{d.types.forEach(f=>{Object.entries(d.attributes).forEach(([p,h])=>{e.push({type:f,name:p,attribute:{...i,...h}})})})})}),o.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},c=H(s,"addAttributes",l);if(!c)return;const u=c();Object.entries(u).forEach(([d,f])=>{const p={...i,...f};typeof(p==null?void 0:p.default)=="function"&&(p.default=p.default()),p!=null&&p.isRequired&&(p==null?void 0:p.default)===void 0&&delete p.default,e.push({type:s.name,name:d,attribute:p})})}),e}function He(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function ke(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const l=i?i.split(" "):[],c=r[o]?r[o].split(" "):[],u=l.filter(d=>!c.includes(d));r[o]=[...c,...u].join(" ")}else o==="style"?r[o]=[r[o],i].join("; "):r[o]=i}),r},{})}function dd(t,e){return e.filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>ke(n,r),{})}function b7(t){return typeof t=="function"}function Q(t,e=void 0,...n){return b7(t)?e?t.bind(e)(...n):t(...n):t}function KL(t={}){return Object.keys(t).length===0&&t.constructor===Object}function GL(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function w7(t,e){return t.style?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const o=e.reduce((i,s)=>{const l=s.attribute.parseHTML?s.attribute.parseHTML(n):GL(n.getAttribute(s.name));return l==null?i:{...i,[s.name]:l}},{});return{...r,...o}}}}function v7(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&KL(n)?!1:n!=null))}function qL(t,e){var n;const r=y7(t),{nodeExtensions:o,markExtensions:i}=Jl(t),s=(n=o.find(u=>H(u,"topNode")))===null||n===void 0?void 0:n.name,l=Object.fromEntries(o.map(u=>{const d=r.filter(b=>b.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((b,w)=>{const C=H(w,"extendNodeSchema",f);return{...b,...C?C(u):{}}},{}),h=v7({...p,content:Q(H(u,"content",f)),marks:Q(H(u,"marks",f)),group:Q(H(u,"group",f)),inline:Q(H(u,"inline",f)),atom:Q(H(u,"atom",f)),selectable:Q(H(u,"selectable",f)),draggable:Q(H(u,"draggable",f)),code:Q(H(u,"code",f)),defining:Q(H(u,"defining",f)),isolating:Q(H(u,"isolating",f)),attrs:Object.fromEntries(d.map(b=>{var w;return[b.name,{default:(w=b==null?void 0:b.attribute)===null||w===void 0?void 0:w.default}]}))}),m=Q(H(u,"parseHTML",f));m&&(h.parseDOM=m.map(b=>w7(b,d)));const y=H(u,"renderHTML",f);y&&(h.toDOM=b=>y({node:b,HTMLAttributes:dd(b,d)}));const g=H(u,"renderText",f);return g&&(h.toText=g),[u.name,h]})),c=Object.fromEntries(i.map(u=>{const d=r.filter(g=>g.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((g,b)=>{const w=H(b,"extendMarkSchema",f);return{...g,...w?w(u):{}}},{}),h=v7({...p,inclusive:Q(H(u,"inclusive",f)),excludes:Q(H(u,"excludes",f)),group:Q(H(u,"group",f)),spanning:Q(H(u,"spanning",f)),code:Q(H(u,"code",f)),attrs:Object.fromEntries(d.map(g=>{var b;return[g.name,{default:(b=g==null?void 0:g.attribute)===null||b===void 0?void 0:b.default}]}))}),m=Q(H(u,"parseHTML",f));m&&(h.parseDOM=m.map(g=>w7(g,d)));const y=H(u,"renderHTML",f);return y&&(h.toDOM=g=>y({mark:g,HTMLAttributes:dd(g,d)})),[u.name,h]}));return new iB({topNode:s,nodes:l,marks:c})}function fd(t,e){return e.nodes[t]||e.marks[t]||null}function C7(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const YL=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,l)=>{var c,u;const d=((u=(c=o.type.spec).toText)===null||u===void 0?void 0:u.call(c,{node:o,pos:i,parent:s,index:l}))||o.textContent||"%leaf%";n+=d.slice(0,Math.max(0,r-i))}),n};function pd(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class Ql{constructor(e){this.find=e.find,this.handler=e.handler}}const JL=(t,e)=>{if(pd(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function hd(t){var e;const{editor:n,from:r,to:o,text:i,rules:s,plugin:l}=t,{view:c}=n;if(c.composing)return!1;const u=c.state.doc.resolve(r);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(p=>p.type.spec.code))return!1;let d=!1;const f=YL(u)+i;return s.forEach(p=>{if(d)return;const h=JL(f,p.find);if(!h)return;const m=c.state.tr,y=ql({state:c.state,transaction:m}),g={from:r-(h[0].length-i.length),to:o},{commands:b,chain:w,can:C}=new Yl({editor:n,state:y});p.handler({state:y,range:g,match:h,commands:b,chain:w,can:C})===null||!m.steps.length||(m.setMeta(l,{transform:m,from:r,to:o,text:i}),c.dispatch(m),d=!0)}),d}function QL(t){const{editor:e,rules:n}=t,r=new Ke({state:{init(){return null},apply(o,i){const s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:i)}},props:{handleTextInput(o,i,s,l){return hd({editor:e,from:i,to:s,text:l,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&hd({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?hd({editor:e,from:s.pos,to:s.pos,text:`
253
+ `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function XL(t){return typeof t=="number"}class eV{constructor(e){this.find=e.find,this.handler=e.handler}}const tV=(t,e,n)=>{if(pd(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(o=>{const i=[o.text];return i.index=o.index,i.input=t,i.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(o.replaceWith)),i}):[]};function nV(t){const{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:l}=t,{commands:c,chain:u,can:d}=new Yl({editor:e,state:n}),f=[];return n.doc.nodesBetween(r,o,(h,m)=>{if(!h.isTextblock||h.type.spec.code)return;const y=Math.max(r,m),g=Math.min(o,m+h.content.size),b=h.textBetween(y-m,g-m,void 0,"ļæ¼");tV(b,i.find,s).forEach(C=>{if(C.index===void 0)return;const v=y+C.index+1,E=v+C[0].length,S={from:n.tr.mapping.map(v),to:n.tr.mapping.map(E)},k=i.handler({state:n,range:S,match:C,commands:c,chain:u,can:d,pasteEvent:s,dropEvent:l});f.push(k)})}),f.every(h=>h!==null)}function rV(t){const{editor:e,rules:n}=t;let r=null,o=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l=typeof DragEvent<"u"?new DragEvent("drop"):null;return n.map(u=>new Ke({view(d){const f=p=>{var h;r=!((h=d.dom.parentElement)===null||h===void 0)&&h.contains(p.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(d,f)=>(i=r===d.dom.parentElement,l=f,!1),paste:(d,f)=>{var p;const h=(p=f.clipboardData)===null||p===void 0?void 0:p.getData("text/html");return s=f,o=!!(h!=null&&h.includes("data-pm-slice")),!1}}},appendTransaction:(d,f,p)=>{const h=d[0],m=h.getMeta("uiEvent")==="paste"&&!o,y=h.getMeta("uiEvent")==="drop"&&!i;if(!m&&!y)return;const g=f.doc.content.findDiffStart(p.doc.content),b=f.doc.content.findDiffEnd(p.doc.content);if(!XL(g)||!b||g===b.b)return;const w=p.tr,C=ql({state:p,transaction:w});if(!(!nV({editor:e,state:C,from:Math.max(g-1,0),to:b.b-1,rule:u,pasteEvent:s,dropEvent:l})||!w.steps.length))return l=typeof DragEvent<"u"?new DragEvent("drop"):null,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,w}}))}function oV(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return[...new Set(e)]}class li{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=li.resolve(e),this.schema=qL(this.extensions,n),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const i={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:fd(r.name,this.schema)};r.type==="mark"&&(!((o=Q(H(r,"keepOnSplit",i)))!==null&&o!==void 0)||o)&&this.splittableMarks.push(r.name);const s=H(r,"onBeforeCreate",i);s&&this.editor.on("beforeCreate",s);const l=H(r,"onCreate",i);l&&this.editor.on("create",l);const c=H(r,"onUpdate",i);c&&this.editor.on("update",c);const u=H(r,"onSelectionUpdate",i);u&&this.editor.on("selectionUpdate",u);const d=H(r,"onTransaction",i);d&&this.editor.on("transaction",d);const f=H(r,"onFocus",i);f&&this.editor.on("focus",f);const p=H(r,"onBlur",i);p&&this.editor.on("blur",p);const h=H(r,"onDestroy",i);h&&this.editor.on("destroy",h)})}static resolve(e){const n=li.sort(li.flatten(e)),r=oV(n.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},o=H(n,"addExtensions",r);return o?[n,...this.flatten(o())]:n}).flat(10)}static sort(e){return e.sort((r,o)=>{const i=H(r,"priority")||100,s=H(o,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:fd(n.name,this.schema)},o=H(n,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,n=li.sort([...this.extensions].reverse()),r=[],o=[],i=n.map(s=>{const l={name:s.name,options:s.options,storage:s.storage,editor:e,type:fd(s.name,this.schema)},c=[],u=H(s,"addKeyboardShortcuts",l);let d={};if(s.type==="mark"&&s.config.exitable&&(d.ArrowRight=()=>xt.handleExit({editor:e,mark:s})),u){const y=Object.fromEntries(Object.entries(u()).map(([g,b])=>[g,()=>b({editor:e})]));d={...d,...y}}const f=vL(d);c.push(f);const p=H(s,"addInputRules",l);C7(s,e.options.enableInputRules)&&p&&r.push(...p());const h=H(s,"addPasteRules",l);C7(s,e.options.enablePasteRules)&&h&&o.push(...h());const m=H(s,"addProseMirrorPlugins",l);if(m){const y=m();c.push(...y)}return c}).flat();return[QL({editor:e,rules:r}),...rV({editor:e,rules:o}),...i]}get attributes(){return y7(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Jl(this.extensions);return Object.fromEntries(n.filter(r=>!!H(r,"addNodeView")).map(r=>{const o=this.attributes.filter(c=>c.type===r.name),i={name:r.name,options:r.options,storage:r.storage,editor:e,type:He(r.name,this.schema)},s=H(r,"addNodeView",i);if(!s)return[];const l=(c,u,d,f)=>{const p=dd(c,o);return s()({editor:e,node:c,getPos:d,decorations:f,HTMLAttributes:p,extension:r})};return[r.name,l]}))}}function iV(t){return Object.prototype.toString.call(t).slice(8,-1)}function md(t){return iV(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Xl(t,e){const n={...t};return md(t)&&md(e)&&Object.keys(e).forEach(r=>{md(e[r])?r in t?n[r]=Xl(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Object.assign(n,{[r]:e[r]})}),n}class nt{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Q(H(this,"addOptions",{name:this.name}))),this.storage=Q(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new nt(e)}configure(e={}){const n=this.extend();return n.options=Xl(this.options,e),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new nt({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Q(H(n,"addOptions",{name:n.name})),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}}function S7(t,e,n){const{from:r,to:o}=e,{blockSeparator:i=`
254
254
 
255
- `,textSerializers:s={}}=n||{};let l="",c=!0;return t.nodesBetween(r,o,(u,d,f,p)=>{var h;const m=s==null?void 0:s[u.type.name];m?(u.isBlock&&!c&&(l+=i,c=!0),f&&(l+=m({node:u,pos:d,parent:f,index:p,range:e}))):u.isText?(l+=(h=u==null?void 0:u.text)===null||h===void 0?void 0:h.slice(Math.max(r,d)-d,o-d),c=!1):u.isBlock&&!c&&(l+=i,c=!0)}),l}function k7(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const iV=nt.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new Ke({key:new Mt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(d=>d.$from.pos)),l=Math.max(...i.map(d=>d.$to.pos)),c=k7(n);return S7(r,{from:s,to:l},{textSerializers:c})}}})]}}),sV=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),aV=(t=!1)=>({commands:e})=>e.setContent("",t),lV=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:o}=r;return n&&o.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(l,c)=>{if(l.type.isText)return;const{doc:u,mapping:d}=e,f=u.resolve(d.map(c)),p=u.resolve(d.map(c+l.nodeSize)),h=f.blockRange(p);if(!h)return;const m=Yo(h);if(l.type.isTextblock){const{defaultType:y}=f.parent.contentMatchAt(f.index());e.setNodeMarkup(h.start,y)}(m||m===0)&&e.lift(h,m)})}),!0},cV=t=>e=>t(e),uV=()=>({state:t,dispatch:e})=>IL(t,e),dV=(t,e)=>({editor:n,tr:r})=>{const{state:o}=n,i=o.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const s=r.mapping.map(e);return r.insert(s,i.content),r.setSelection(new G(r.doc.resolve(s-1))),!0},fV=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const o=t.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r.type){if(e){const l=o.before(i),c=o.after(i);t.delete(l,c).scrollIntoView()}return!0}return!1},pV=t=>({tr:e,state:n,dispatch:r})=>{const o=He(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){const c=i.before(s),u=i.after(s);e.delete(c,u).scrollIntoView()}return!0}return!1},hV=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},mV=()=>({state:t,dispatch:e})=>vL(t,e),gV=()=>({commands:t})=>t.keyboardShortcut("Enter"),yV=()=>({state:t,dispatch:e})=>AL(t,e);function e0(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:pd(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function gd(t,e,n={}){return t.find(r=>r.type===e&&e0(r.attrs,n))}function bV(t,e,n={}){return!!gd(t,e,n)}function yd(t,e,n={}){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if(t.parentOffset===r.offset&&r.offset!==0&&(r=t.parent.childBefore(t.parentOffset)),!r.node)return;const o=gd([...r.node.marks],e,n);if(!o)return;let i=r.index,s=t.start()+r.offset,l=i+1,c=s+r.node.nodeSize;for(gd([...r.node.marks],e,n);i>0&&o.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;l<t.parent.childCount&&bV([...t.parent.child(l).marks],e,n);)c+=t.parent.child(l).nodeSize,l+=1;return{from:s,to:c}}function kr(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const wV=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const i=kr(t,r.schema),{doc:s,selection:l}=n,{$from:c,from:u,to:d}=l;if(o){const f=yd(c,i,e);if(f&&f.from<=u&&f.to>=d){const p=G.create(s,f.from,f.to);n.setSelection(p)}}return!0},vV=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r<n.length;r+=1)if(n[r](e))return!0;return!1};function bd(t){return t instanceof G}function Fn(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function O7(t,e=null){if(!e)return null;const n=J.atStart(t),r=J.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,i=r.to;return e==="all"?G.create(t,Fn(0,o,i),Fn(t.content.size,o,i)):G.create(t,Fn(e,o,i),Fn(e,o,i))}function wd(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const CV=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{wd()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!bd(n.state.selection))return s(),!0;const l=O7(o.doc,t)||n.state.selection,c=n.state.selection.eq(l);return i&&(c||o.setSelection(l),c&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},SV=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),kV=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),E7=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&E7(r)}return t};function T7(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return E7(n)}function t0(t,e,n){if(n={slice:!0,parseOptions:{},...n},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?A.fromArray(t.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(t)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",r),t0("",e,n)}if(typeof t=="string"){const r=Ko.fromSchema(e);return n.slice?r.parseSlice(T7(t),n.parseOptions).content:r.parse(T7(t),n.parseOptions)}return t0("",e,n)}function OV(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof $e||o instanceof Fe))return;const i=t.mapping.maps[r];let s=0;i.forEach((l,c,u,d)=>{s===0&&(s=d)}),t.setSelection(J.near(t.doc.resolve(s),n))}const EV=t=>t.toString().startsWith("<"),TV=(t,e,n)=>({tr:r,dispatch:o,editor:i})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};const s=t0(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(s.toString()==="<>")return!0;let{from:l,to:c}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},u=!0,d=!0;if((EV(s)?s:[s]).forEach(p=>{p.check(),u=u?p.isText&&p.marks.length===0:!1,d=d?p.isBlock:!1}),l===c&&d){const{parent:p}=r.doc.resolve(l);p.isTextblock&&!p.type.spec.code&&!p.childCount&&(l-=1,c+=1)}u?Array.isArray(e)?r.insertText(e.map(p=>p.text||"").join(""),l,c):typeof e=="object"&&e&&e.text?r.insertText(e.text,l,c):r.insertText(e,l,c):r.replaceWith(l,c,s),n.updateSelection&&OV(r,r.steps.length-1,-1)}return!0},MV=()=>({state:t,dispatch:e})=>ML(t,e),xV=()=>({state:t,dispatch:e})=>xL(t,e),PV=()=>({state:t,dispatch:e})=>CL(t,e),DV=()=>({state:t,dispatch:e})=>EL(t,e),AV=()=>({tr:t,state:e,dispatch:n})=>{try{const r=Vl(e.doc,e.selection.$from.pos,-1);return r==null?!1:(t.join(r,2),n&&n(t),!0)}catch{return!1}},IV=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Vl(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},NV=()=>({state:t,dispatch:e})=>SL(t,e),BV=()=>({state:t,dispatch:e})=>kL(t,e);function vd(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function RV(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,o,i,s;for(let l=0;l<e.length-1;l+=1){const c=e[l];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))o=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))wd()||vd()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}const LV=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=RV(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),l=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),c=e.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,l))});return c==null||c.steps.forEach(u=>{const d=u.map(r.mapping);d&&o&&r.maybeStep(d)}),!0};function ra(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,s=e?He(e,t.schema):null,l=[];t.doc.nodesBetween(r,o,(f,p)=>{if(f.isText)return;const h=Math.max(r,p),m=Math.min(o,p+f.nodeSize);l.push({node:f,from:h,to:m})});const c=o-r,u=l.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>e0(f.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((f,p)=>f+p.to-p.from,0)>=c}const VV=(t,e={})=>({state:n,dispatch:r})=>{const o=He(t,n.schema);return ra(n,o,e)?PL(n,r):!1},$V=()=>({state:t,dispatch:e})=>NL(t,e),FV=t=>({state:e,dispatch:n})=>{const r=He(t,e.schema);return _L(r)(e,n)},HV=()=>({state:t,dispatch:e})=>DL(t,e);function n0(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function M7(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}const _V=(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const l=n0(typeof t=="string"?t:t.name,r.schema);return l?(l==="node"&&(i=He(t,r.schema)),l==="mark"&&(s=kr(t,r.schema)),o&&n.selection.ranges.forEach(c=>{r.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,d)=>{i&&i===u.type&&n.setNodeMarkup(d,void 0,M7(u.attrs,e)),s&&u.marks.length&&u.marks.forEach(f=>{s===f.type&&n.addMark(d,d+u.nodeSize,s.create(M7(f.attrs,e)))})})}),!0):!1},zV=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),jV=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),ZV=()=>({state:t,dispatch:e})=>OL(t,e),WV=()=>({state:t,dispatch:e})=>TL(t,e),UV=()=>({state:t,dispatch:e})=>BL(t,e),KV=()=>({state:t,dispatch:e})=>VL(t,e),GV=()=>({state:t,dispatch:e})=>LL(t,e);function x7(t,e,n={}){return t0(t,e,{slice:!1,parseOptions:n})}const qV=(t,e=!1,n={})=>({tr:r,editor:o,dispatch:i})=>{const{doc:s}=r,l=x7(t,o.schema,n);return i&&r.replaceWith(0,s.content.size,l).setMeta("preventUpdate",!e),!0};function oa(t,e){const n=kr(e,t.schema),{from:r,to:o,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,c=>{s.push(...c.marks)});const l=s.find(c=>c.type.name===n.name);return l?{...l.attrs}:{}}function YV(t,e){const n=new z3(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function JV(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function QV(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,i)=>{n(o)&&r.push({node:o,pos:i})}),r}function XV(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function Cd(t){return e=>XV(e.$from,t)}function e$(t,e){const n=dn.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function t$(t,e){const n={from:0,to:t.content.size};return S7(t,n,e)}function n$(t,e){const n=He(e,t.schema),{from:r,to:o}=t.selection,i=[];t.doc.nodesBetween(r,o,l=>{i.push(l)});const s=i.reverse().find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function P7(t,e){const n=n0(typeof e=="string"?e:e.name,t.schema);return n==="node"?n$(t,e):n==="mark"?oa(t,e):{}}function r$(t,e=JSON.stringify){const n={};return t.filter(r=>{const o=e(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function o$(t){const e=r$(t);return e.length===1?e:e.filter((n,r)=>!e.filter((i,s)=>s!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function i$(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((l,c)=>{s.push({from:l,to:c})});else{const{from:l,to:c}=n[i];if(l===void 0||c===void 0)return;s.push({from:l,to:c})}s.forEach(({from:l,to:c})=>{const u=e.slice(i).map(l,-1),d=e.slice(i).map(c),f=e.invert().map(u,-1),p=e.invert().map(d);r.push({oldRange:{from:f,to:p},newRange:{from:u,to:d}})})}),o$(r)}function Sd(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const i=n.resolve(t-1),s=yd(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,i)=>{!o||(o==null?void 0:o.nodeSize)===void 0||r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}function r0(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const o=t.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}function kd(t,e,n={}){const{empty:r,ranges:o}=t.selection,i=e?kr(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>e0(f.attrs,n,{strict:!1}));let s=0;const l=[];if(o.forEach(({$from:f,$to:p})=>{const h=f.pos,m=p.pos;t.doc.nodesBetween(h,m,(y,g)=>{if(!y.isText&&!y.marks.length)return;const b=Math.max(h,g),w=Math.min(m,g+y.nodeSize),C=w-b;s+=C,l.push(...y.marks.map(v=>({mark:v,from:b,to:w})))})}),s===0)return!1;const c=l.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>e0(f.mark.attrs,n,{strict:!1})).reduce((f,p)=>f+p.to-p.from,0),u=l.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,p)=>f+p.to-p.from,0);return(c>0?c+u:c)>=s}function s$(t,e,n={}){if(!e)return ra(t,null,n)||kd(t,null,n);const r=n0(e,t.schema);return r==="node"?ra(t,e,n):r==="mark"?kd(t,e,n):!1}function D7(t,e){const{nodeExtensions:n}=Jl(e),r=n.find(s=>s.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=Q(H(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function a$(t){var e;const n=(e=t.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=t.toJSON();return JSON.stringify(n)===JSON.stringify(r)}function l$(t){return t instanceof Z}function A7(t,e,n){const o=t.state.doc.content.size,i=Fn(e,0,o),s=Fn(n,0,o),l=t.coordsAtPos(i),c=t.coordsAtPos(s,-1),u=Math.min(l.top,c.top),d=Math.max(l.bottom,c.bottom),f=Math.min(l.left,c.left),p=Math.max(l.right,c.right),h=p-f,m=d-u,b={top:u,bottom:d,left:f,right:p,width:h,height:m,x:f,y:u};return{...b,toJSON:()=>b}}function c$(t,e,n){var r;const{selection:o}=e;let i=null;if(bd(o)&&(i=o.$cursor),i){const l=(r=t.storedMarks)!==null&&r!==void 0?r:i.marks();return!!n.isInSet(l)||!l.some(c=>c.type.excludes(n))}const{ranges:s}=o;return s.some(({$from:l,$to:c})=>{let u=l.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(l.pos,c.pos,(d,f,p)=>{if(u)return!1;if(d.isInline){const h=!p||p.type.allowsMarkType(n),m=!!n.isInSet(d.marks)||!d.marks.some(y=>y.type.excludes(n));u=h&&m}return!u}),u})}const u$=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:l}=i,c=kr(t,r.schema);if(o)if(s){const u=oa(r,c);n.addStoredMark(c.create({...u,...e}))}else l.forEach(u=>{const d=u.$from.pos,f=u.$to.pos;r.doc.nodesBetween(d,f,(p,h)=>{const m=Math.max(h,d),y=Math.min(h+p.nodeSize,f);p.marks.find(b=>b.type===c)?p.marks.forEach(b=>{c===b.type&&n.addMark(m,y,c.create({...b.attrs,...e}))}):n.addMark(m,y,c.create(e))})});return c$(r,n,c)},d$=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),f$=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const i=He(t,n.schema);return i.isTextblock?o().command(({commands:s})=>g7(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>g7(i,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},p$=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=Fn(t,0,r.content.size),i=Z.create(r,o);e.setSelection(i)}return!0},h$=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:i}=typeof t=="number"?{from:t,to:t}:t,s=G.atStart(r).from,l=G.atEnd(r).to,c=Fn(o,s,l),u=Fn(i,s,l),d=G.create(r,c,u);e.setSelection(d)}return!0},m$=t=>({state:e,dispatch:n})=>{const r=He(t,e.schema);return ZL(r)(e,n)};function I7(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(o=>e==null?void 0:e.includes(o.type.name));t.tr.ensureMarks(r)}}const g$=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:l,$to:c}=i,u=o.extensionManager.attributes,d=r0(u,l.node().type.name,l.node().attrs);if(i instanceof Z&&i.node.isBlock)return!l.parentOffset||!Jo(s,l.pos)?!1:(r&&(t&&I7(n,o.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(r){const f=c.parentOffset===c.parent.content.size;i instanceof G&&e.deleteSelection();const p=l.depth===0?void 0:JV(l.node(-1).contentMatchAt(l.indexAfter(-1)));let h=f&&p?[{type:p,attrs:d}]:void 0,m=Jo(e.doc,e.mapping.map(l.pos),1,h);if(!h&&!m&&Jo(e.doc,e.mapping.map(l.pos),1,p?[{type:p}]:void 0)&&(m=!0,h=p?[{type:p,attrs:d}]:void 0),m&&(e.split(e.mapping.map(l.pos),1,h),p&&!f&&!l.parentOffset&&l.parent.type!==p)){const y=e.mapping.map(l.before()),g=e.doc.resolve(y);l.node(-1).canReplaceWith(g.index(),g.index()+1,p)&&e.setNodeMarkup(e.mapping.map(l.before()),p)}t&&I7(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},y$=t=>({tr:e,state:n,dispatch:r,editor:o})=>{var i;const s=He(t,n.schema),{$from:l,$to:c}=n.selection,u=n.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==s)return!1;const f=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let g=A.empty;const b=l.index(-1)?1:l.index(-2)?2:3;for(let k=l.depth-b;k>=l.depth-3;k-=1)g=A.from(l.node(k).copy(g));const w=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,C=r0(f,l.node().type.name,l.node().attrs),v=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(C))||void 0;g=g.append(A.from(s.createAndFill(null,v)||void 0));const E=l.before(l.depth-(b-1));e.replace(E,l.after(-w),new V(g,4-b,0));let S=-1;e.doc.nodesBetween(E,e.doc.content.size,(k,T)=>{if(S>-1)return!1;k.isTextblock&&k.content.size===0&&(S=T+1)}),S>-1&&e.setSelection(G.near(e.doc.resolve(S))),e.scrollIntoView()}return!0}const p=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,h=r0(f,d.type.name,d.attrs),m=r0(f,l.node().type.name,l.node().attrs);e.delete(l.pos,c.pos);const y=p?[{type:s,attrs:h},{type:p,attrs:m}]:[{type:s,attrs:h}];if(!Jo(e.doc,l.pos,2))return!1;if(r){const{selection:g,storedMarks:b}=n,{splittableMarks:w}=o.extensionManager,C=b||g.$to.parentOffset&&g.$from.marks();if(e.split(l.pos,2,y).scrollIntoView(),!C||!r)return!0;const v=C.filter(E=>w.includes(E.type.name));e.ensureMarks(v)}return!0},Od=(t,e)=>{const n=Cd(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&pr(t.doc,n.pos)&&t.join(n.pos),!0},Ed=(t,e)=>{const n=Cd(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&pr(t.doc,r)&&t.join(r),!0};var b$=Object.freeze({__proto__:null,blur:sV,clearContent:aV,clearNodes:lV,command:cV,createParagraphNear:uV,cut:dV,deleteCurrentNode:fV,deleteNode:pV,deleteRange:hV,deleteSelection:mV,enter:gV,exitCode:yV,extendMarkRange:wV,first:vV,focus:CV,forEach:SV,insertContent:kV,insertContentAt:TV,joinUp:MV,joinDown:xV,joinBackward:PV,joinForward:DV,joinItemBackward:AV,joinItemForward:IV,joinTextblockBackward:NV,joinTextblockForward:BV,keyboardShortcut:LV,lift:VV,liftEmptyBlock:$V,liftListItem:FV,newlineInCode:HV,resetAttributes:_V,scrollIntoView:zV,selectAll:jV,selectNodeBackward:ZV,selectNodeForward:WV,selectParentNode:UV,selectTextblockEnd:KV,selectTextblockStart:GV,setContent:qV,setMark:u$,setMeta:d$,setNode:f$,setNodeSelection:p$,setTextSelection:h$,sinkListItem:m$,splitBlock:g$,splitListItem:y$,toggleList:(t,e,n,r={})=>({editor:o,tr:i,state:s,dispatch:l,chain:c,commands:u,can:d})=>{const{extensions:f,splittableMarks:p}=o.extensionManager,h=He(t,s.schema),m=He(e,s.schema),{selection:y,storedMarks:g}=s,{$from:b,$to:w}=y,C=b.blockRange(w),v=g||y.$to.parentOffset&&y.$from.marks();if(!C)return!1;const E=Cd(S=>D7(S.type.name,f))(y);if(C.depth>=1&&E&&C.depth-E.depth<=1){if(E.node.type===h)return u.liftListItem(m);if(D7(E.node.type.name,f)&&h.validContent(E.node.content)&&l)return c().command(()=>(i.setNodeMarkup(E.pos,h),!0)).command(()=>Od(i,h)).command(()=>Ed(i,h)).run()}return!n||!v||!l?c().command(()=>d().wrapInList(h,r)?!0:u.clearNodes()).wrapInList(h,r).command(()=>Od(i,h)).command(()=>Ed(i,h)).run():c().command(()=>{const S=d().wrapInList(h,r),k=v.filter(T=>p.includes(T.type.name));return i.ensureMarks(k),S?!0:u.clearNodes()}).wrapInList(h,r).command(()=>Od(i,h)).command(()=>Ed(i,h)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=kr(t,r.schema);return kd(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const i=He(t,r.schema),s=He(e,r.schema);return ra(r,i,n)?o.setNode(s):o.setNode(i,n)},toggleWrap:(t,e={})=>({state:n,commands:r})=>{const o=He(t,n.schema);return ra(n,o,e)?r.lift(o):r.wrapIn(o,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(t))){if(e){const s=t.tr,l=i.transform;for(let c=l.steps.length-1;c>=0;c-=1)s.step(l.steps[c].invert(l.docs[c]));if(i.text){const c=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,c))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:l}=n,c=kr(t,r.schema),{$from:u,empty:d,ranges:f}=l;if(!o)return!0;if(d&&s){let{from:p,to:h}=l;const m=(i=u.marks().find(g=>g.type===c))===null||i===void 0?void 0:i.attrs,y=yd(u,c,m);y&&(p=y.from,h=y.to),n.removeMark(p,h,c)}else f.forEach(p=>{n.removeMark(p.$from.pos,p.$to.pos,c)});return n.removeStoredMark(c),!0},updateAttributes:(t,e={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const l=n0(typeof t=="string"?t:t.name,r.schema);return l?(l==="node"&&(i=He(t,r.schema)),l==="mark"&&(s=kr(t,r.schema)),o&&n.selection.ranges.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(f,p)=>{i&&i===f.type&&n.setNodeMarkup(p,void 0,{...f.attrs,...e}),s&&f.marks.length&&f.marks.forEach(h=>{if(s===h.type){const m=Math.max(p,u),y=Math.min(p+f.nodeSize,d);n.addMark(m,y,s.create({...h.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:r})=>{const o=He(t,n.schema);return $L(o,e)(n,r)},wrapInList:(t,e={})=>({state:n,dispatch:r})=>{const o=He(t,n.schema);return FL(o,e)(n,r)}});const w$=nt.create({name:"commands",addCommands(){return{...b$}}}),v$=nt.create({name:"editable",addProseMirrorPlugins(){return[new Ke({key:new Mt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),C$=nt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ke({key:new Mt("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),S$=nt.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:l})=>{const{selection:c,doc:u}=l,{empty:d,$anchor:f}=c,{pos:p,parent:h}=f,m=f.parent.isTextblock?l.doc.resolve(p-1):f,y=m.parent.type.spec.isolating,g=f.pos-f.parentOffset,b=y&&m.parent.childCount===1?g===f.pos:J.atStart(u).from===p;return!d||!b||!h.type.isTextblock||h.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return wd()||vd()?i:o},addProseMirrorPlugins(){return[new Ke({key:new Mt("clearDocument"),appendTransaction:(t,e,n)=>{if(!(t.some(m=>m.docChanged)&&!e.doc.eq(n.doc)))return;const{empty:o,from:i,to:s}=e.selection,l=J.atStart(e.doc).from,c=J.atEnd(e.doc).to;if(o||!(i===l&&s===c)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;const f=n.tr,p=ql({state:n,transaction:f}),{commands:h}=new Yl({editor:this.editor,state:p});if(h.clearNodes(),!!f.steps.length)return f}})]}}),k$=nt.create({name:"tabindex",addProseMirrorPlugins(){return[new Ke({key:new Mt("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var O$=Object.freeze({__proto__:null,ClipboardTextSerializer:iV,Commands:w$,Editable:v$,FocusEvents:C$,Keymap:S$,Tabindex:k$});class uo{constructor(e,n,r=!1,o=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=o}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new uo(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new uo(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new uo(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const o=n.isBlock&&!n.isTextblock,i=this.pos+r+(o?0:1),s=this.resolvedPos.doc.resolve(i);if(!o&&s.depth<=this.depth)return;const l=new uo(s,this.editor,o,o?n:null);o&&(l.actualDepth=this.depth+1),e.push(new uo(s,this.editor,o,o?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,o=this.parent;for(;o&&!r;){if(o.node.type.name===e)if(Object.keys(n).length>0){const i=o.node.attrs,s=Object.keys(n);for(let l=0;l<s.length;l+=1){const c=s[l];if(i[c]!==n[c])break}}else r=o;o=o.parent}return r}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},r=!1){let o=[];return this.isBlock||!this.children||this.children.length===0||this.children.forEach(i=>{if(i.node.type.name===e){if(Object.keys(n).length>0){const s=i.node.attrs,l=Object.keys(n);for(let c=0;c<l.length;c+=1){const u=l[c];if(s[u]!==n[u])return}}if(o.push(i),r)return}o=o.concat(i.querySelectorAll(e))}),o}setAttribute(e){const n=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(n.from).run()}}const E$=`.ProseMirror {
255
+ `,textSerializers:s={}}=n||{};let l="",c=!0;return t.nodesBetween(r,o,(u,d,f,p)=>{var h;const m=s==null?void 0:s[u.type.name];m?(u.isBlock&&!c&&(l+=i,c=!0),f&&(l+=m({node:u,pos:d,parent:f,index:p,range:e}))):u.isText?(l+=(h=u==null?void 0:u.text)===null||h===void 0?void 0:h.slice(Math.max(r,d)-d,o-d),c=!1):u.isBlock&&!c&&(l+=i,c=!0)}),l}function k7(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const sV=nt.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new Ke({key:new Mt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(d=>d.$from.pos)),l=Math.max(...i.map(d=>d.$to.pos)),c=k7(n);return S7(r,{from:s,to:l},{textSerializers:c})}}})]}}),aV=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),lV=(t=!1)=>({commands:e})=>e.setContent("",t),cV=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:o}=r;return n&&o.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(l,c)=>{if(l.type.isText)return;const{doc:u,mapping:d}=e,f=u.resolve(d.map(c)),p=u.resolve(d.map(c+l.nodeSize)),h=f.blockRange(p);if(!h)return;const m=Yo(h);if(l.type.isTextblock){const{defaultType:y}=f.parent.contentMatchAt(f.index());e.setNodeMarkup(h.start,y)}(m||m===0)&&e.lift(h,m)})}),!0},uV=t=>e=>t(e),dV=()=>({state:t,dispatch:e})=>NL(t,e),fV=(t,e)=>({editor:n,tr:r})=>{const{state:o}=n,i=o.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const s=r.mapping.map(e);return r.insert(s,i.content),r.setSelection(new G(r.doc.resolve(s-1))),!0},pV=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const o=t.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r.type){if(e){const l=o.before(i),c=o.after(i);t.delete(l,c).scrollIntoView()}return!0}return!1},hV=t=>({tr:e,state:n,dispatch:r})=>{const o=He(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){const c=i.before(s),u=i.after(s);e.delete(c,u).scrollIntoView()}return!0}return!1},mV=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},gV=()=>({state:t,dispatch:e})=>CL(t,e),yV=()=>({commands:t})=>t.keyboardShortcut("Enter"),bV=()=>({state:t,dispatch:e})=>IL(t,e);function e0(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:pd(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function gd(t,e,n={}){return t.find(r=>r.type===e&&e0(r.attrs,n))}function wV(t,e,n={}){return!!gd(t,e,n)}function yd(t,e,n={}){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if(t.parentOffset===r.offset&&r.offset!==0&&(r=t.parent.childBefore(t.parentOffset)),!r.node)return;const o=gd([...r.node.marks],e,n);if(!o)return;let i=r.index,s=t.start()+r.offset,l=i+1,c=s+r.node.nodeSize;for(gd([...r.node.marks],e,n);i>0&&o.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;l<t.parent.childCount&&wV([...t.parent.child(l).marks],e,n);)c+=t.parent.child(l).nodeSize,l+=1;return{from:s,to:c}}function kr(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const vV=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const i=kr(t,r.schema),{doc:s,selection:l}=n,{$from:c,from:u,to:d}=l;if(o){const f=yd(c,i,e);if(f&&f.from<=u&&f.to>=d){const p=G.create(s,f.from,f.to);n.setSelection(p)}}return!0},CV=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r<n.length;r+=1)if(n[r](e))return!0;return!1};function bd(t){return t instanceof G}function Fn(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function O7(t,e=null){if(!e)return null;const n=J.atStart(t),r=J.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,i=r.to;return e==="all"?G.create(t,Fn(0,o,i),Fn(t.content.size,o,i)):G.create(t,Fn(e,o,i),Fn(e,o,i))}function wd(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const SV=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{wd()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!bd(n.state.selection))return s(),!0;const l=O7(o.doc,t)||n.state.selection,c=n.state.selection.eq(l);return i&&(c||o.setSelection(l),c&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},kV=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),OV=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),E7=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&E7(r)}return t};function T7(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return E7(n)}function t0(t,e,n){if(n={slice:!0,parseOptions:{},...n},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?A.fromArray(t.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(t)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",r),t0("",e,n)}if(typeof t=="string"){const r=Ko.fromSchema(e);return n.slice?r.parseSlice(T7(t),n.parseOptions).content:r.parse(T7(t),n.parseOptions)}return t0("",e,n)}function EV(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof $e||o instanceof Fe))return;const i=t.mapping.maps[r];let s=0;i.forEach((l,c,u,d)=>{s===0&&(s=d)}),t.setSelection(J.near(t.doc.resolve(s),n))}const TV=t=>t.toString().startsWith("<"),MV=(t,e,n)=>({tr:r,dispatch:o,editor:i})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};const s=t0(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(s.toString()==="<>")return!0;let{from:l,to:c}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},u=!0,d=!0;if((TV(s)?s:[s]).forEach(p=>{p.check(),u=u?p.isText&&p.marks.length===0:!1,d=d?p.isBlock:!1}),l===c&&d){const{parent:p}=r.doc.resolve(l);p.isTextblock&&!p.type.spec.code&&!p.childCount&&(l-=1,c+=1)}u?Array.isArray(e)?r.insertText(e.map(p=>p.text||"").join(""),l,c):typeof e=="object"&&e&&e.text?r.insertText(e.text,l,c):r.insertText(e,l,c):r.replaceWith(l,c,s),n.updateSelection&&EV(r,r.steps.length-1,-1)}return!0},xV=()=>({state:t,dispatch:e})=>xL(t,e),PV=()=>({state:t,dispatch:e})=>PL(t,e),DV=()=>({state:t,dispatch:e})=>SL(t,e),AV=()=>({state:t,dispatch:e})=>TL(t,e),IV=()=>({tr:t,state:e,dispatch:n})=>{try{const r=Vl(e.doc,e.selection.$from.pos,-1);return r==null?!1:(t.join(r,2),n&&n(t),!0)}catch{return!1}},NV=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Vl(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},BV=()=>({state:t,dispatch:e})=>kL(t,e),RV=()=>({state:t,dispatch:e})=>OL(t,e);function vd(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function LV(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,o,i,s;for(let l=0;l<e.length-1;l+=1){const c=e[l];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))o=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))wd()||vd()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}const VV=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=LV(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),l=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),c=e.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,l))});return c==null||c.steps.forEach(u=>{const d=u.map(r.mapping);d&&o&&r.maybeStep(d)}),!0};function ra(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,s=e?He(e,t.schema):null,l=[];t.doc.nodesBetween(r,o,(f,p)=>{if(f.isText)return;const h=Math.max(r,p),m=Math.min(o,p+f.nodeSize);l.push({node:f,from:h,to:m})});const c=o-r,u=l.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>e0(f.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((f,p)=>f+p.to-p.from,0)>=c}const $V=(t,e={})=>({state:n,dispatch:r})=>{const o=He(t,n.schema);return ra(n,o,e)?DL(n,r):!1},FV=()=>({state:t,dispatch:e})=>BL(t,e),HV=t=>({state:e,dispatch:n})=>{const r=He(t,e.schema);return zL(r)(e,n)},_V=()=>({state:t,dispatch:e})=>AL(t,e);function n0(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function M7(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}const zV=(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const l=n0(typeof t=="string"?t:t.name,r.schema);return l?(l==="node"&&(i=He(t,r.schema)),l==="mark"&&(s=kr(t,r.schema)),o&&n.selection.ranges.forEach(c=>{r.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,d)=>{i&&i===u.type&&n.setNodeMarkup(d,void 0,M7(u.attrs,e)),s&&u.marks.length&&u.marks.forEach(f=>{s===f.type&&n.addMark(d,d+u.nodeSize,s.create(M7(f.attrs,e)))})})}),!0):!1},jV=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),ZV=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),WV=()=>({state:t,dispatch:e})=>EL(t,e),UV=()=>({state:t,dispatch:e})=>ML(t,e),KV=()=>({state:t,dispatch:e})=>RL(t,e),GV=()=>({state:t,dispatch:e})=>$L(t,e),qV=()=>({state:t,dispatch:e})=>VL(t,e);function x7(t,e,n={}){return t0(t,e,{slice:!1,parseOptions:n})}const YV=(t,e=!1,n={})=>({tr:r,editor:o,dispatch:i})=>{const{doc:s}=r,l=x7(t,o.schema,n);return i&&r.replaceWith(0,s.content.size,l).setMeta("preventUpdate",!e),!0};function oa(t,e){const n=kr(e,t.schema),{from:r,to:o,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,c=>{s.push(...c.marks)});const l=s.find(c=>c.type.name===n.name);return l?{...l.attrs}:{}}function JV(t,e){const n=new z3(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function QV(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function XV(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,i)=>{n(o)&&r.push({node:o,pos:i})}),r}function e$(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function Cd(t){return e=>e$(e.$from,t)}function t$(t,e){const n=dn.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function n$(t,e){const n={from:0,to:t.content.size};return S7(t,n,e)}function r$(t,e){const n=He(e,t.schema),{from:r,to:o}=t.selection,i=[];t.doc.nodesBetween(r,o,l=>{i.push(l)});const s=i.reverse().find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function P7(t,e){const n=n0(typeof e=="string"?e:e.name,t.schema);return n==="node"?r$(t,e):n==="mark"?oa(t,e):{}}function o$(t,e=JSON.stringify){const n={};return t.filter(r=>{const o=e(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function i$(t){const e=o$(t);return e.length===1?e:e.filter((n,r)=>!e.filter((i,s)=>s!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function s$(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((l,c)=>{s.push({from:l,to:c})});else{const{from:l,to:c}=n[i];if(l===void 0||c===void 0)return;s.push({from:l,to:c})}s.forEach(({from:l,to:c})=>{const u=e.slice(i).map(l,-1),d=e.slice(i).map(c),f=e.invert().map(u,-1),p=e.invert().map(d);r.push({oldRange:{from:f,to:p},newRange:{from:u,to:d}})})}),i$(r)}function Sd(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const i=n.resolve(t-1),s=yd(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,i)=>{!o||(o==null?void 0:o.nodeSize)===void 0||r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}function r0(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const o=t.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}function kd(t,e,n={}){const{empty:r,ranges:o}=t.selection,i=e?kr(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>e0(f.attrs,n,{strict:!1}));let s=0;const l=[];if(o.forEach(({$from:f,$to:p})=>{const h=f.pos,m=p.pos;t.doc.nodesBetween(h,m,(y,g)=>{if(!y.isText&&!y.marks.length)return;const b=Math.max(h,g),w=Math.min(m,g+y.nodeSize),C=w-b;s+=C,l.push(...y.marks.map(v=>({mark:v,from:b,to:w})))})}),s===0)return!1;const c=l.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>e0(f.mark.attrs,n,{strict:!1})).reduce((f,p)=>f+p.to-p.from,0),u=l.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,p)=>f+p.to-p.from,0);return(c>0?c+u:c)>=s}function a$(t,e,n={}){if(!e)return ra(t,null,n)||kd(t,null,n);const r=n0(e,t.schema);return r==="node"?ra(t,e,n):r==="mark"?kd(t,e,n):!1}function D7(t,e){const{nodeExtensions:n}=Jl(e),r=n.find(s=>s.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=Q(H(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function l$(t){var e;const n=(e=t.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=t.toJSON();return JSON.stringify(n)===JSON.stringify(r)}function c$(t){return t instanceof Z}function A7(t,e,n){const o=t.state.doc.content.size,i=Fn(e,0,o),s=Fn(n,0,o),l=t.coordsAtPos(i),c=t.coordsAtPos(s,-1),u=Math.min(l.top,c.top),d=Math.max(l.bottom,c.bottom),f=Math.min(l.left,c.left),p=Math.max(l.right,c.right),h=p-f,m=d-u,b={top:u,bottom:d,left:f,right:p,width:h,height:m,x:f,y:u};return{...b,toJSON:()=>b}}function u$(t,e,n){var r;const{selection:o}=e;let i=null;if(bd(o)&&(i=o.$cursor),i){const l=(r=t.storedMarks)!==null&&r!==void 0?r:i.marks();return!!n.isInSet(l)||!l.some(c=>c.type.excludes(n))}const{ranges:s}=o;return s.some(({$from:l,$to:c})=>{let u=l.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(l.pos,c.pos,(d,f,p)=>{if(u)return!1;if(d.isInline){const h=!p||p.type.allowsMarkType(n),m=!!n.isInSet(d.marks)||!d.marks.some(y=>y.type.excludes(n));u=h&&m}return!u}),u})}const d$=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:l}=i,c=kr(t,r.schema);if(o)if(s){const u=oa(r,c);n.addStoredMark(c.create({...u,...e}))}else l.forEach(u=>{const d=u.$from.pos,f=u.$to.pos;r.doc.nodesBetween(d,f,(p,h)=>{const m=Math.max(h,d),y=Math.min(h+p.nodeSize,f);p.marks.find(b=>b.type===c)?p.marks.forEach(b=>{c===b.type&&n.addMark(m,y,c.create({...b.attrs,...e}))}):n.addMark(m,y,c.create(e))})});return u$(r,n,c)},f$=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),p$=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const i=He(t,n.schema);return i.isTextblock?o().command(({commands:s})=>g7(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>g7(i,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},h$=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=Fn(t,0,r.content.size),i=Z.create(r,o);e.setSelection(i)}return!0},m$=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:i}=typeof t=="number"?{from:t,to:t}:t,s=G.atStart(r).from,l=G.atEnd(r).to,c=Fn(o,s,l),u=Fn(i,s,l),d=G.create(r,c,u);e.setSelection(d)}return!0},g$=t=>({state:e,dispatch:n})=>{const r=He(t,e.schema);return WL(r)(e,n)};function I7(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(o=>e==null?void 0:e.includes(o.type.name));t.tr.ensureMarks(r)}}const y$=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:l,$to:c}=i,u=o.extensionManager.attributes,d=r0(u,l.node().type.name,l.node().attrs);if(i instanceof Z&&i.node.isBlock)return!l.parentOffset||!Jo(s,l.pos)?!1:(r&&(t&&I7(n,o.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(r){const f=c.parentOffset===c.parent.content.size;i instanceof G&&e.deleteSelection();const p=l.depth===0?void 0:QV(l.node(-1).contentMatchAt(l.indexAfter(-1)));let h=f&&p?[{type:p,attrs:d}]:void 0,m=Jo(e.doc,e.mapping.map(l.pos),1,h);if(!h&&!m&&Jo(e.doc,e.mapping.map(l.pos),1,p?[{type:p}]:void 0)&&(m=!0,h=p?[{type:p,attrs:d}]:void 0),m&&(e.split(e.mapping.map(l.pos),1,h),p&&!f&&!l.parentOffset&&l.parent.type!==p)){const y=e.mapping.map(l.before()),g=e.doc.resolve(y);l.node(-1).canReplaceWith(g.index(),g.index()+1,p)&&e.setNodeMarkup(e.mapping.map(l.before()),p)}t&&I7(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},b$=t=>({tr:e,state:n,dispatch:r,editor:o})=>{var i;const s=He(t,n.schema),{$from:l,$to:c}=n.selection,u=n.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==s)return!1;const f=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let g=A.empty;const b=l.index(-1)?1:l.index(-2)?2:3;for(let k=l.depth-b;k>=l.depth-3;k-=1)g=A.from(l.node(k).copy(g));const w=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,C=r0(f,l.node().type.name,l.node().attrs),v=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(C))||void 0;g=g.append(A.from(s.createAndFill(null,v)||void 0));const E=l.before(l.depth-(b-1));e.replace(E,l.after(-w),new V(g,4-b,0));let S=-1;e.doc.nodesBetween(E,e.doc.content.size,(k,T)=>{if(S>-1)return!1;k.isTextblock&&k.content.size===0&&(S=T+1)}),S>-1&&e.setSelection(G.near(e.doc.resolve(S))),e.scrollIntoView()}return!0}const p=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,h=r0(f,d.type.name,d.attrs),m=r0(f,l.node().type.name,l.node().attrs);e.delete(l.pos,c.pos);const y=p?[{type:s,attrs:h},{type:p,attrs:m}]:[{type:s,attrs:h}];if(!Jo(e.doc,l.pos,2))return!1;if(r){const{selection:g,storedMarks:b}=n,{splittableMarks:w}=o.extensionManager,C=b||g.$to.parentOffset&&g.$from.marks();if(e.split(l.pos,2,y).scrollIntoView(),!C||!r)return!0;const v=C.filter(E=>w.includes(E.type.name));e.ensureMarks(v)}return!0},Od=(t,e)=>{const n=Cd(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&pr(t.doc,n.pos)&&t.join(n.pos),!0},Ed=(t,e)=>{const n=Cd(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&pr(t.doc,r)&&t.join(r),!0};var w$=Object.freeze({__proto__:null,blur:aV,clearContent:lV,clearNodes:cV,command:uV,createParagraphNear:dV,cut:fV,deleteCurrentNode:pV,deleteNode:hV,deleteRange:mV,deleteSelection:gV,enter:yV,exitCode:bV,extendMarkRange:vV,first:CV,focus:SV,forEach:kV,insertContent:OV,insertContentAt:MV,joinUp:xV,joinDown:PV,joinBackward:DV,joinForward:AV,joinItemBackward:IV,joinItemForward:NV,joinTextblockBackward:BV,joinTextblockForward:RV,keyboardShortcut:VV,lift:$V,liftEmptyBlock:FV,liftListItem:HV,newlineInCode:_V,resetAttributes:zV,scrollIntoView:jV,selectAll:ZV,selectNodeBackward:WV,selectNodeForward:UV,selectParentNode:KV,selectTextblockEnd:GV,selectTextblockStart:qV,setContent:YV,setMark:d$,setMeta:f$,setNode:p$,setNodeSelection:h$,setTextSelection:m$,sinkListItem:g$,splitBlock:y$,splitListItem:b$,toggleList:(t,e,n,r={})=>({editor:o,tr:i,state:s,dispatch:l,chain:c,commands:u,can:d})=>{const{extensions:f,splittableMarks:p}=o.extensionManager,h=He(t,s.schema),m=He(e,s.schema),{selection:y,storedMarks:g}=s,{$from:b,$to:w}=y,C=b.blockRange(w),v=g||y.$to.parentOffset&&y.$from.marks();if(!C)return!1;const E=Cd(S=>D7(S.type.name,f))(y);if(C.depth>=1&&E&&C.depth-E.depth<=1){if(E.node.type===h)return u.liftListItem(m);if(D7(E.node.type.name,f)&&h.validContent(E.node.content)&&l)return c().command(()=>(i.setNodeMarkup(E.pos,h),!0)).command(()=>Od(i,h)).command(()=>Ed(i,h)).run()}return!n||!v||!l?c().command(()=>d().wrapInList(h,r)?!0:u.clearNodes()).wrapInList(h,r).command(()=>Od(i,h)).command(()=>Ed(i,h)).run():c().command(()=>{const S=d().wrapInList(h,r),k=v.filter(T=>p.includes(T.type.name));return i.ensureMarks(k),S?!0:u.clearNodes()}).wrapInList(h,r).command(()=>Od(i,h)).command(()=>Ed(i,h)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=kr(t,r.schema);return kd(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const i=He(t,r.schema),s=He(e,r.schema);return ra(r,i,n)?o.setNode(s):o.setNode(i,n)},toggleWrap:(t,e={})=>({state:n,commands:r})=>{const o=He(t,n.schema);return ra(n,o,e)?r.lift(o):r.wrapIn(o,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(t))){if(e){const s=t.tr,l=i.transform;for(let c=l.steps.length-1;c>=0;c-=1)s.step(l.steps[c].invert(l.docs[c]));if(i.text){const c=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,c))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:l}=n,c=kr(t,r.schema),{$from:u,empty:d,ranges:f}=l;if(!o)return!0;if(d&&s){let{from:p,to:h}=l;const m=(i=u.marks().find(g=>g.type===c))===null||i===void 0?void 0:i.attrs,y=yd(u,c,m);y&&(p=y.from,h=y.to),n.removeMark(p,h,c)}else f.forEach(p=>{n.removeMark(p.$from.pos,p.$to.pos,c)});return n.removeStoredMark(c),!0},updateAttributes:(t,e={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const l=n0(typeof t=="string"?t:t.name,r.schema);return l?(l==="node"&&(i=He(t,r.schema)),l==="mark"&&(s=kr(t,r.schema)),o&&n.selection.ranges.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(f,p)=>{i&&i===f.type&&n.setNodeMarkup(p,void 0,{...f.attrs,...e}),s&&f.marks.length&&f.marks.forEach(h=>{if(s===h.type){const m=Math.max(p,u),y=Math.min(p+f.nodeSize,d);n.addMark(m,y,s.create({...h.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:r})=>{const o=He(t,n.schema);return FL(o,e)(n,r)},wrapInList:(t,e={})=>({state:n,dispatch:r})=>{const o=He(t,n.schema);return HL(o,e)(n,r)}});const v$=nt.create({name:"commands",addCommands(){return{...w$}}}),C$=nt.create({name:"editable",addProseMirrorPlugins(){return[new Ke({key:new Mt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),S$=nt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ke({key:new Mt("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),k$=nt.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:l})=>{const{selection:c,doc:u}=l,{empty:d,$anchor:f}=c,{pos:p,parent:h}=f,m=f.parent.isTextblock?l.doc.resolve(p-1):f,y=m.parent.type.spec.isolating,g=f.pos-f.parentOffset,b=y&&m.parent.childCount===1?g===f.pos:J.atStart(u).from===p;return!d||!b||!h.type.isTextblock||h.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return wd()||vd()?i:o},addProseMirrorPlugins(){return[new Ke({key:new Mt("clearDocument"),appendTransaction:(t,e,n)=>{if(!(t.some(m=>m.docChanged)&&!e.doc.eq(n.doc)))return;const{empty:o,from:i,to:s}=e.selection,l=J.atStart(e.doc).from,c=J.atEnd(e.doc).to;if(o||!(i===l&&s===c)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;const f=n.tr,p=ql({state:n,transaction:f}),{commands:h}=new Yl({editor:this.editor,state:p});if(h.clearNodes(),!!f.steps.length)return f}})]}}),O$=nt.create({name:"tabindex",addProseMirrorPlugins(){return[new Ke({key:new Mt("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var E$=Object.freeze({__proto__:null,ClipboardTextSerializer:sV,Commands:v$,Editable:C$,FocusEvents:S$,Keymap:k$,Tabindex:O$});class uo{constructor(e,n,r=!1,o=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=o}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new uo(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new uo(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new uo(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const o=n.isBlock&&!n.isTextblock,i=this.pos+r+(o?0:1),s=this.resolvedPos.doc.resolve(i);if(!o&&s.depth<=this.depth)return;const l=new uo(s,this.editor,o,o?n:null);o&&(l.actualDepth=this.depth+1),e.push(new uo(s,this.editor,o,o?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,o=this.parent;for(;o&&!r;){if(o.node.type.name===e)if(Object.keys(n).length>0){const i=o.node.attrs,s=Object.keys(n);for(let l=0;l<s.length;l+=1){const c=s[l];if(i[c]!==n[c])break}}else r=o;o=o.parent}return r}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},r=!1){let o=[];return this.isBlock||!this.children||this.children.length===0||this.children.forEach(i=>{if(i.node.type.name===e){if(Object.keys(n).length>0){const s=i.node.attrs,l=Object.keys(n);for(let c=0;c<l.length;c+=1){const u=l[c];if(s[u]!==n[u])return}}if(o.push(i),r)return}o=o.concat(i.querySelectorAll(e))}),o}setAttribute(e){const n=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(n.from).run()}}const T$=`.ProseMirror {
256
256
  position: relative;
257
257
  }
258
258
 
@@ -326,37 +326,37 @@ img.ProseMirror-separator {
326
326
 
327
327
  .tippy-box[data-animation=fade][data-state=hidden] {
328
328
  opacity: 0
329
- }`;function T$(t,e,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),o.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(o),o}let M$=class extends WL{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=T$(E$,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const r=b7(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const n=typeof e=="string"?`${e}$`:e.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(n))});this.view.updateState(r)}createExtensionManager(){const n=[...this.options.enableCoreExtensions?Object.values(O$):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r==null?void 0:r.type));this.extensionManager=new li(n,this)}createCommandManager(){this.commandManager=new Yl({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=x7(this.options.content,this.schema,this.options.parseOptions),n=O7(e,this.options.autofocus);this.view=new uL(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:ti.create({doc:e,selection:n||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(s)});return}const n=this.state.apply(e),r=!this.state.selection.eq(n.selection);this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),i=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return P7(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,o=typeof e=="string"?n:e;return s$(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return e$(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
329
+ }`;function M$(t,e,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),o.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(o),o}let x$=class extends UL{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=M$(T$,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const r=b7(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const n=typeof e=="string"?`${e}$`:e.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(n))});this.view.updateState(r)}createExtensionManager(){const n=[...this.options.enableCoreExtensions?Object.values(E$):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r==null?void 0:r.type));this.extensionManager=new li(n,this)}createCommandManager(){this.commandManager=new Yl({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=x7(this.options.content,this.schema,this.options.parseOptions),n=O7(e,this.options.autofocus);this.view=new dL(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:ti.create({doc:e,selection:n||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(s)});return}const n=this.state.apply(e),r=!this.state.selection.eq(n.selection);this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),i=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return P7(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,o=typeof e=="string"?n:e;return a$(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return t$(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
330
330
 
331
- `,textSerializers:r={}}=e||{};return t$(this.state.doc,{blockSeparator:n,textSerializers:{...k7(this.schema),...r}})}get isEmpty(){return a$(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new uo(n,this)}get $doc(){return this.$pos(0)}};function ci(t){return new Ql({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Q(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:i}=e,s=r[r.length-1],l=r[0];if(s){const c=l.search(/\S/),u=n.from+l.indexOf(s),d=u+s.length;if(Sd(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(y=>y===t.type&&y!==h.mark.type)).filter(h=>h.to>u).length)return null;d<n.to&&i.delete(d,n.to),u>n.from&&i.delete(n.from+c,u);const p=n.from+c+s.length;i.addMark(n.from+c,p,t.type.create(o||{})),i.removeStoredMark(t.type)}}})}function x$(t){return new Ql({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Q(t.getAttributes,void 0,r)||{},{tr:i}=e,s=n.from;let l=n.to;const c=t.type.create(o);if(r[1]){const u=r[0].lastIndexOf(r[1]);let d=s+u;d>l?d=l:l=d+r[1].length;const f=r[0][r[0].length-1];i.insertText(f,s+r[0].length-1),i.replaceWith(d,l,c)}else r[0]&&i.insert(s-1,t.type.create(o)).delete(i.mapping.map(s),i.mapping.map(l));i.scrollIntoView()}})}function Td(t){return new Ql({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),i=Q(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)}})}function ia(t){return new Ql({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const i=Q(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),c=s.doc.resolve(n.from).blockRange(),u=c&&Au(c,t.type,i);if(!u)return null;if(s.wrap(c,u),t.keepMarks&&t.editor){const{selection:f,storedMarks:p}=e,{splittableMarks:h}=t.editor.extensionManager,m=p||f.$to.parentOffset&&f.$from.marks();if(m){const y=m.filter(g=>h.includes(g.type.name));s.ensureMarks(y)}}if(t.keepAttributes){const f=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(f,i).run()}const d=s.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&pr(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,d))&&s.join(n.from-1)}})}class xt{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Q(H(this,"addOptions",{name:this.name}))),this.storage=Q(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new xt(e)}configure(e={}){const n=this.extend();return n.options=Xl(this.options,e),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new xt({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Q(H(n,"addOptions",{name:n.name})),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!!!s.find(u=>(u==null?void 0:u.type.name)===n.name))return!1;const c=s.find(u=>(u==null?void 0:u.type.name)===n.name);return c&&r.removeStoredMark(c),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}}let Pt=class bf{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Q(H(this,"addOptions",{name:this.name}))),this.storage=Q(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new bf(e)}configure(e={}){const n=this.extend();return n.options=Xl(this.options,e),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new bf({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Q(H(n,"addOptions",{name:n.name})),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}};function fo(t){return new XL({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const i=Q(t.getAttributes,void 0,r,o);if(i===!1||i===null)return null;const{tr:s}=e,l=r[r.length-1],c=r[0];let u=n.to;if(l){const d=c.search(/\S/),f=n.from+c.indexOf(l),p=f+l.length;if(Sd(n.from,n.to,e.doc).filter(m=>m.mark.type.excluded.find(g=>g===t.type&&g!==m.mark.type)).filter(m=>m.to>f).length)return null;p<n.to&&s.delete(p,n.to),f>n.from&&s.delete(n.from+d,f),u=n.from+d+l.length,s.addMark(n.from+d,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var vt="top",jt="bottom",Zt="right",Ct="left",Md="auto",sa=[vt,jt,Zt,Ct],ui="start",aa="end",P$="clippingParents",N7="viewport",la="popper",D$="reference",B7=sa.reduce(function(t,e){return t.concat([e+"-"+ui,e+"-"+aa])},[]),R7=[].concat(sa,[Md]).reduce(function(t,e){return t.concat([e,e+"-"+ui,e+"-"+aa])},[]),A$="beforeRead",I$="read",N$="afterRead",B$="beforeMain",R$="main",L$="afterMain",V$="beforeWrite",$$="write",F$="afterWrite",H$=[A$,I$,N$,B$,R$,L$,V$,$$,F$];function gn(t){return t?(t.nodeName||"").toLowerCase():null}function Dt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function po(t){var e=Dt(t).Element;return t instanceof e||t instanceof Element}function Wt(t){var e=Dt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function xd(t){if(typeof ShadowRoot>"u")return!1;var e=Dt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function _$(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!Wt(i)||!gn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function z$(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=s.reduce(function(c,u){return c[u]="",c},{});!Wt(o)||!gn(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const L7={name:"applyStyles",enabled:!0,phase:"write",fn:_$,effect:z$,requires:["computeStyles"]};function yn(t){return t.split("-")[0]}var ho=Math.max,o0=Math.min,di=Math.round;function Pd(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function V7(){return!/^((?!chrome|android).)*safari/i.test(Pd())}function fi(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&Wt(t)&&(o=t.offsetWidth>0&&di(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&di(r.height)/t.offsetHeight||1);var s=po(t)?Dt(t):window,l=s.visualViewport,c=!V7()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/o,d=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Dd(t){var e=fi(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function $7(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&xd(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hn(t){return Dt(t).getComputedStyle(t)}function j$(t){return["table","td","th"].indexOf(gn(t))>=0}function Or(t){return((po(t)?t.ownerDocument:t.document)||window.document).documentElement}function i0(t){return gn(t)==="html"?t:t.assignedSlot||t.parentNode||(xd(t)?t.host:null)||Or(t)}function F7(t){return!Wt(t)||Hn(t).position==="fixed"?null:t.offsetParent}function Z$(t){var e=/firefox/i.test(Pd()),n=/Trident/i.test(Pd());if(n&&Wt(t)){var r=Hn(t);if(r.position==="fixed")return null}var o=i0(t);for(xd(o)&&(o=o.host);Wt(o)&&["html","body"].indexOf(gn(o))<0;){var i=Hn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ca(t){for(var e=Dt(t),n=F7(t);n&&j$(n)&&Hn(n).position==="static";)n=F7(n);return n&&(gn(n)==="html"||gn(n)==="body"&&Hn(n).position==="static")?e:n||Z$(t)||e}function Ad(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ua(t,e,n){return ho(t,o0(e,n))}function W$(t,e,n){var r=ua(t,e,n);return r>n?n:r}function H7(){return{top:0,right:0,bottom:0,left:0}}function _7(t){return Object.assign({},H7(),t)}function z7(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var U$=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,_7(typeof e!="number"?e:z7(e,sa))};function K$(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=yn(n.placement),c=Ad(l),u=[Ct,Zt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!s)){var f=U$(o.padding,n),p=Dd(i),h=c==="y"?vt:Ct,m=c==="y"?jt:Zt,y=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],g=s[c]-n.rects.reference[c],b=ca(i),w=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,C=y/2-g/2,v=f[h],E=w-p[d]-f[m],S=w/2-p[d]/2+C,k=ua(v,S,E),T=c;n.modifiersData[r]=(e={},e[T]=k,e.centerOffset=k-S,e)}}function G$(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||$7(e.elements.popper,o)&&(e.elements.arrow=o))}const q$={name:"arrow",enabled:!0,phase:"main",fn:K$,effect:G$,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pi(t){return t.split("-")[1]}var Y$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J$(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:di(n*o)/o||0,y:di(r*o)/o||0}}function j7(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,f=t.isFixed,p=s.x,h=p===void 0?0:p,m=s.y,y=m===void 0?0:m,g=typeof d=="function"?d({x:h,y}):{x:h,y};h=g.x,y=g.y;var b=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),C=Ct,v=vt,E=window;if(u){var S=ca(n),k="clientHeight",T="clientWidth";if(S===Dt(n)&&(S=Or(n),Hn(S).position!=="static"&&l==="absolute"&&(k="scrollHeight",T="scrollWidth")),S=S,o===vt||(o===Ct||o===Zt)&&i===aa){v=jt;var D=f&&S===E&&E.visualViewport?E.visualViewport.height:S[k];y-=D-r.height,y*=c?1:-1}if(o===Ct||(o===vt||o===jt)&&i===aa){C=Zt;var N=f&&S===E&&E.visualViewport?E.visualViewport.width:S[T];h-=N-r.width,h*=c?1:-1}}var B=Object.assign({position:l},u&&Y$),$=d===!0?J$({x:h,y},Dt(n)):{x:h,y};if(h=$.x,y=$.y,c){var j;return Object.assign({},B,(j={},j[v]=w?"0":"",j[C]=b?"0":"",j.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",j))}return Object.assign({},B,(e={},e[v]=w?y+"px":"",e[C]=b?h+"px":"",e.transform="",e))}function Q$(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:yn(e.placement),variation:pi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,j7(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,j7(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const X$={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Q$,data:{}};var s0={passive:!0};function eF(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,c=Dt(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,s0)}),l&&c.addEventListener("resize",n.update,s0),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,s0)}),l&&c.removeEventListener("resize",n.update,s0)}}const tF={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eF,data:{}};var nF={left:"right",right:"left",bottom:"top",top:"bottom"};function a0(t){return t.replace(/left|right|bottom|top/g,function(e){return nF[e]})}var rF={start:"end",end:"start"};function Z7(t){return t.replace(/start|end/g,function(e){return rF[e]})}function Id(t){var e=Dt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Nd(t){return fi(Or(t)).left+Id(t).scrollLeft}function oF(t,e){var n=Dt(t),r=Or(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;var u=V7();(u||!u&&e==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l+Nd(t),y:c}}function iF(t){var e,n=Or(t),r=Id(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=ho(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ho(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Nd(t),c=-r.scrollTop;return Hn(o||n).direction==="rtl"&&(l+=ho(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Bd(t){var e=Hn(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function W7(t){return["html","body","#document"].indexOf(gn(t))>=0?t.ownerDocument.body:Wt(t)&&Bd(t)?t:W7(i0(t))}function da(t,e){var n;e===void 0&&(e=[]);var r=W7(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Dt(r),s=o?[i].concat(i.visualViewport||[],Bd(r)?r:[]):r,l=e.concat(s);return o?l:l.concat(da(i0(s)))}function Rd(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function sF(t,e){var n=fi(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function U7(t,e,n){return e===N7?Rd(oF(t,n)):po(e)?sF(e,n):Rd(iF(Or(t)))}function aF(t){var e=da(i0(t)),n=["absolute","fixed"].indexOf(Hn(t).position)>=0,r=n&&Wt(t)?ca(t):t;return po(r)?e.filter(function(o){return po(o)&&$7(o,r)&&gn(o)!=="body"}):[]}function lF(t,e,n,r){var o=e==="clippingParents"?aF(t):[].concat(e),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(c,u){var d=U7(t,u,r);return c.top=ho(d.top,c.top),c.right=o0(d.right,c.right),c.bottom=o0(d.bottom,c.bottom),c.left=ho(d.left,c.left),c},U7(t,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function K7(t){var e=t.reference,n=t.element,r=t.placement,o=r?yn(r):null,i=r?pi(r):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(o){case vt:c={x:s,y:e.y-n.height};break;case jt:c={x:s,y:e.y+e.height};break;case Zt:c={x:e.x+e.width,y:l};break;case Ct:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=o?Ad(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case ui:c[u]=c[u]-(e[d]/2-n[d]/2);break;case aa:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function fa(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,l=n.boundary,c=l===void 0?P$:l,u=n.rootBoundary,d=u===void 0?N7:u,f=n.elementContext,p=f===void 0?la:f,h=n.altBoundary,m=h===void 0?!1:h,y=n.padding,g=y===void 0?0:y,b=_7(typeof g!="number"?g:z7(g,sa)),w=p===la?D$:la,C=t.rects.popper,v=t.elements[m?w:p],E=lF(po(v)?v:v.contextElement||Or(t.elements.popper),c,d,s),S=fi(t.elements.reference),k=K7({reference:S,element:C,strategy:"absolute",placement:o}),T=Rd(Object.assign({},C,k)),D=p===la?T:S,N={top:E.top-D.top+b.top,bottom:D.bottom-E.bottom+b.bottom,left:E.left-D.left+b.left,right:D.right-E.right+b.right},B=t.modifiersData.offset;if(p===la&&B){var $=B[o];Object.keys(N).forEach(function(j){var ee=[Zt,jt].indexOf(j)>=0?1:-1,F=[vt,jt].indexOf(j)>=0?"y":"x";N[j]+=$[F]*ee})}return N}function cF(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?R7:c,d=pi(r),f=d?l?B7:B7.filter(function(m){return pi(m)===d}):sa,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,y){return m[y]=fa(t,{placement:y,boundary:o,rootBoundary:i,padding:s})[yn(y)],m},{});return Object.keys(h).sort(function(m,y){return h[m]-h[y]})}function uF(t){if(yn(t)===Md)return[];var e=a0(t);return[Z7(t),e,Z7(e)]}function dF(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,y=n.allowedAutoPlacements,g=e.options.placement,b=yn(g),w=b===g,C=c||(w||!m?[a0(g)]:uF(g)),v=[g].concat(C).reduce(function(It,Nt){return It.concat(yn(Nt)===Md?cF(e,{placement:Nt,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:y}):Nt)},[]),E=e.rects.reference,S=e.rects.popper,k=new Map,T=!0,D=v[0],N=0;N<v.length;N++){var B=v[N],$=yn(B),j=pi(B)===ui,ee=[vt,jt].indexOf($)>=0,F=ee?"width":"height",W=fa(e,{placement:B,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),te=ee?j?Zt:Ct:j?jt:vt;E[F]>S[F]&&(te=a0(te));var se=a0(te),qe=[];if(i&&qe.push(W[$]<=0),l&&qe.push(W[te]<=0,W[se]<=0),qe.every(function(It){return It})){D=B,T=!1;break}k.set(B,qe)}if(T)for(var pt=m?3:1,rt=function(Nt){var on=v.find(function(yo){var sn=k.get(yo);if(sn)return sn.slice(0,Nt).every(function(Dr){return Dr})});if(on)return D=on,"break"},ot=pt;ot>0;ot--){var rn=rt(ot);if(rn==="break")break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}}const fF={name:"flip",enabled:!0,phase:"main",fn:dF,requiresIfExists:["offset"],data:{_skip:!1}};function G7(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function q7(t){return[vt,Zt,jt,Ct].some(function(e){return t[e]>=0})}function pF(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=fa(e,{elementContext:"reference"}),l=fa(e,{altBoundary:!0}),c=G7(s,r),u=G7(l,o,i),d=q7(c),f=q7(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const hF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pF};function mF(t,e,n){var r=yn(t),o=[Ct,vt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[Ct,Zt].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function gF(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=R7.reduce(function(d,f){return d[f]=mF(f,e.rects,i),d},{}),l=s[e.placement],c=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const yF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gF};function bF(t){var e=t.state,n=t.name;e.modifiersData[n]=K7({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const wF={name:"popperOffsets",enabled:!0,phase:"read",fn:bF,data:{}};function vF(t){return t==="x"?"y":"x"}function CF(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,y=m===void 0?0:m,g=fa(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=yn(e.placement),w=pi(e.placement),C=!w,v=Ad(b),E=vF(v),S=e.modifiersData.popperOffsets,k=e.rects.reference,T=e.rects.popper,D=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,N=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(S){if(i){var j,ee=v==="y"?vt:Ct,F=v==="y"?jt:Zt,W=v==="y"?"height":"width",te=S[v],se=te+g[ee],qe=te-g[F],pt=h?-T[W]/2:0,rt=w===ui?k[W]:T[W],ot=w===ui?-T[W]:-k[W],rn=e.elements.arrow,It=h&&rn?Dd(rn):{width:0,height:0},Nt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:H7(),on=Nt[ee],yo=Nt[F],sn=ua(0,k[W],It[W]),Dr=C?k[W]/2-pt-sn-on-N.mainAxis:rt-sn-on-N.mainAxis,kn=C?-k[W]/2+pt+sn+yo+N.mainAxis:ot+sn+yo+N.mainAxis,Ar=e.elements.arrow&&ca(e.elements.arrow),vi=Ar?v==="y"?Ar.clientTop||0:Ar.clientLeft||0:0,bo=(j=B==null?void 0:B[v])!=null?j:0,Ci=te+Dr-bo-vi,Si=te+kn-bo,Ir=ua(h?o0(se,Ci):se,te,h?ho(qe,Si):qe);S[v]=Ir,$[v]=Ir-te}if(l){var wo,ki=v==="x"?vt:Ct,Oi=v==="x"?jt:Zt,an=S[E],On=E==="y"?"height":"width",vo=an+g[ki],jn=an-g[Oi],Co=[vt,Ct].indexOf(b)!==-1,ye=(wo=B==null?void 0:B[E])!=null?wo:0,x=Co?vo:an-k[On]-T[On]-ye+N.altAxis,I=Co?an+k[On]+T[On]-ye-N.altAxis:jn,ne=h&&Co?W$(x,an,I):ua(h?x:vo,an,h?I:jn);S[E]=ne,$[E]=ne-an}e.modifiersData[r]=$}}const SF={name:"preventOverflow",enabled:!0,phase:"main",fn:CF,requiresIfExists:["offset"]};function kF(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function OF(t){return t===Dt(t)||!Wt(t)?Id(t):kF(t)}function EF(t){var e=t.getBoundingClientRect(),n=di(e.width)/t.offsetWidth||1,r=di(e.height)/t.offsetHeight||1;return n!==1||r!==1}function TF(t,e,n){n===void 0&&(n=!1);var r=Wt(e),o=Wt(e)&&EF(e),i=Or(e),s=fi(t,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((gn(e)!=="body"||Bd(i))&&(l=OF(e)),Wt(e)?(c=fi(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=Nd(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function MF(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&o(c)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function xF(t){var e=MF(t);return H$.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function PF(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function DF(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Y7={placement:"bottom",modifiers:[],strategy:"absolute"};function J7(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function AF(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?Y7:o;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Y7,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(b){var w=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},i,d.options,w),d.scrollParents={reference:po(l)?da(l):l.contextElement?da(l.contextElement):[],popper:da(c)};var C=xF(DF([].concat(r,d.options.modifiers)));return d.orderedModifiers=C.filter(function(v){return v.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var b=d.elements,w=b.reference,C=b.popper;if(J7(w,C)){d.rects={reference:TF(w,ca(C),d.options.strategy==="fixed"),popper:Dd(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var E=d.orderedModifiers[v],S=E.fn,k=E.options,T=k===void 0?{}:k,D=E.name;typeof S=="function"&&(d=S({state:d,options:T,name:D,instance:h})||d)}}}},update:PF(function(){return new Promise(function(g){h.forceUpdate(),g(d)})}),destroy:function(){y(),p=!0}};if(!J7(l,c))return h;h.setOptions(u).then(function(g){!p&&u.onFirstUpdate&&u.onFirstUpdate(g)});function m(){d.orderedModifiers.forEach(function(g){var b=g.name,w=g.options,C=w===void 0?{}:w,v=g.effect;if(typeof v=="function"){var E=v({state:d,name:b,instance:h,options:C}),S=function(){};f.push(E||S)}})}function y(){f.forEach(function(g){return g()}),f=[]}return h}}var IF=[tF,wF,X$,L7,yF,fF,SF,q$,hF],NF=AF({defaultModifiers:IF}),BF="tippy-box",Q7="tippy-content",RF="tippy-backdrop",X7="tippy-arrow",e4="tippy-svg-arrow",mo={passive:!0,capture:!0},t4=function(){return document.body};function LF(t,e){return{}.hasOwnProperty.call(t,e)}function Ld(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function Vd(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function n4(t,e){return typeof t=="function"?t.apply(void 0,e):t}function r4(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function VF(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function $F(t){return t.split(/\s+/).filter(Boolean)}function hi(t){return[].concat(t)}function o4(t,e){t.indexOf(e)===-1&&t.push(e)}function FF(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function HF(t){return t.split("-")[0]}function l0(t){return[].slice.call(t)}function i4(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function pa(){return document.createElement("div")}function ha(t){return["Element","Fragment"].some(function(e){return Vd(t,e)})}function _F(t){return Vd(t,"NodeList")}function zF(t){return Vd(t,"MouseEvent")}function jF(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function ZF(t){return ha(t)?[t]:_F(t)?l0(t):Array.isArray(t)?t:l0(document.querySelectorAll(t))}function $d(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function s4(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function WF(t){var e,n=hi(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function UF(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,c=l.interactiveBorder,u=HF(s.placement),d=s.modifiersData.offset;if(!d)return!0;var f=u==="bottom"?d.top.y:0,p=u==="top"?d.bottom.y:0,h=u==="right"?d.left.x:0,m=u==="left"?d.right.x:0,y=i.top-r+f>c,g=r-i.bottom-p>c,b=i.left-n+h>c,w=n-i.right-m>c;return y||g||b||w})}function Fd(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function a4(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var bn={isTouch:!1},l4=0;function KF(){bn.isTouch||(bn.isTouch=!0,window.performance&&document.addEventListener("mousemove",c4))}function c4(){var t=performance.now();t-l4<20&&(bn.isTouch=!1,document.removeEventListener("mousemove",c4)),l4=t}function GF(){var t=document.activeElement;if(jF(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function qF(){document.addEventListener("touchstart",KF,mo),window.addEventListener("blur",GF)}var YF=typeof window<"u"&&typeof document<"u",JF=YF?!!window.msCrypto:!1;function mi(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function u4(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function QF(t){return u4(`
331
+ `,textSerializers:r={}}=e||{};return n$(this.state.doc,{blockSeparator:n,textSerializers:{...k7(this.schema),...r}})}get isEmpty(){return l$(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new uo(n,this)}get $doc(){return this.$pos(0)}};function ci(t){return new Ql({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Q(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:i}=e,s=r[r.length-1],l=r[0];if(s){const c=l.search(/\S/),u=n.from+l.indexOf(s),d=u+s.length;if(Sd(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(y=>y===t.type&&y!==h.mark.type)).filter(h=>h.to>u).length)return null;d<n.to&&i.delete(d,n.to),u>n.from&&i.delete(n.from+c,u);const p=n.from+c+s.length;i.addMark(n.from+c,p,t.type.create(o||{})),i.removeStoredMark(t.type)}}})}function P$(t){return new Ql({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Q(t.getAttributes,void 0,r)||{},{tr:i}=e,s=n.from;let l=n.to;const c=t.type.create(o);if(r[1]){const u=r[0].lastIndexOf(r[1]);let d=s+u;d>l?d=l:l=d+r[1].length;const f=r[0][r[0].length-1];i.insertText(f,s+r[0].length-1),i.replaceWith(d,l,c)}else r[0]&&i.insert(s-1,t.type.create(o)).delete(i.mapping.map(s),i.mapping.map(l));i.scrollIntoView()}})}function Td(t){return new Ql({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),i=Q(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)}})}function ia(t){return new Ql({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const i=Q(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),c=s.doc.resolve(n.from).blockRange(),u=c&&Au(c,t.type,i);if(!u)return null;if(s.wrap(c,u),t.keepMarks&&t.editor){const{selection:f,storedMarks:p}=e,{splittableMarks:h}=t.editor.extensionManager,m=p||f.$to.parentOffset&&f.$from.marks();if(m){const y=m.filter(g=>h.includes(g.type.name));s.ensureMarks(y)}}if(t.keepAttributes){const f=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(f,i).run()}const d=s.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&pr(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,d))&&s.join(n.from-1)}})}class xt{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Q(H(this,"addOptions",{name:this.name}))),this.storage=Q(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new xt(e)}configure(e={}){const n=this.extend();return n.options=Xl(this.options,e),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new xt({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Q(H(n,"addOptions",{name:n.name})),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!!!s.find(u=>(u==null?void 0:u.type.name)===n.name))return!1;const c=s.find(u=>(u==null?void 0:u.type.name)===n.name);return c&&r.removeStoredMark(c),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}}let Pt=class bf{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Q(H(this,"addOptions",{name:this.name}))),this.storage=Q(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new bf(e)}configure(e={}){const n=this.extend();return n.options=Xl(this.options,e),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new bf({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Q(H(n,"addOptions",{name:n.name})),n.storage=Q(H(n,"addStorage",{name:n.name,options:n.options})),n}};function fo(t){return new eV({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const i=Q(t.getAttributes,void 0,r,o);if(i===!1||i===null)return null;const{tr:s}=e,l=r[r.length-1],c=r[0];let u=n.to;if(l){const d=c.search(/\S/),f=n.from+c.indexOf(l),p=f+l.length;if(Sd(n.from,n.to,e.doc).filter(m=>m.mark.type.excluded.find(g=>g===t.type&&g!==m.mark.type)).filter(m=>m.to>f).length)return null;p<n.to&&s.delete(p,n.to),f>n.from&&s.delete(n.from+d,f),u=n.from+d+l.length,s.addMark(n.from+d,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var vt="top",jt="bottom",Zt="right",Ct="left",Md="auto",sa=[vt,jt,Zt,Ct],ui="start",aa="end",D$="clippingParents",N7="viewport",la="popper",A$="reference",B7=sa.reduce(function(t,e){return t.concat([e+"-"+ui,e+"-"+aa])},[]),R7=[].concat(sa,[Md]).reduce(function(t,e){return t.concat([e,e+"-"+ui,e+"-"+aa])},[]),I$="beforeRead",N$="read",B$="afterRead",R$="beforeMain",L$="main",V$="afterMain",$$="beforeWrite",F$="write",H$="afterWrite",_$=[I$,N$,B$,R$,L$,V$,$$,F$,H$];function gn(t){return t?(t.nodeName||"").toLowerCase():null}function Dt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function po(t){var e=Dt(t).Element;return t instanceof e||t instanceof Element}function Wt(t){var e=Dt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function xd(t){if(typeof ShadowRoot>"u")return!1;var e=Dt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function z$(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!Wt(i)||!gn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function j$(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=s.reduce(function(c,u){return c[u]="",c},{});!Wt(o)||!gn(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const L7={name:"applyStyles",enabled:!0,phase:"write",fn:z$,effect:j$,requires:["computeStyles"]};function yn(t){return t.split("-")[0]}var ho=Math.max,o0=Math.min,di=Math.round;function Pd(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function V7(){return!/^((?!chrome|android).)*safari/i.test(Pd())}function fi(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&Wt(t)&&(o=t.offsetWidth>0&&di(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&di(r.height)/t.offsetHeight||1);var s=po(t)?Dt(t):window,l=s.visualViewport,c=!V7()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/o,d=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Dd(t){var e=fi(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function $7(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&xd(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hn(t){return Dt(t).getComputedStyle(t)}function Z$(t){return["table","td","th"].indexOf(gn(t))>=0}function Or(t){return((po(t)?t.ownerDocument:t.document)||window.document).documentElement}function i0(t){return gn(t)==="html"?t:t.assignedSlot||t.parentNode||(xd(t)?t.host:null)||Or(t)}function F7(t){return!Wt(t)||Hn(t).position==="fixed"?null:t.offsetParent}function W$(t){var e=/firefox/i.test(Pd()),n=/Trident/i.test(Pd());if(n&&Wt(t)){var r=Hn(t);if(r.position==="fixed")return null}var o=i0(t);for(xd(o)&&(o=o.host);Wt(o)&&["html","body"].indexOf(gn(o))<0;){var i=Hn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ca(t){for(var e=Dt(t),n=F7(t);n&&Z$(n)&&Hn(n).position==="static";)n=F7(n);return n&&(gn(n)==="html"||gn(n)==="body"&&Hn(n).position==="static")?e:n||W$(t)||e}function Ad(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ua(t,e,n){return ho(t,o0(e,n))}function U$(t,e,n){var r=ua(t,e,n);return r>n?n:r}function H7(){return{top:0,right:0,bottom:0,left:0}}function _7(t){return Object.assign({},H7(),t)}function z7(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var K$=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,_7(typeof e!="number"?e:z7(e,sa))};function G$(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=yn(n.placement),c=Ad(l),u=[Ct,Zt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!s)){var f=K$(o.padding,n),p=Dd(i),h=c==="y"?vt:Ct,m=c==="y"?jt:Zt,y=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],g=s[c]-n.rects.reference[c],b=ca(i),w=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,C=y/2-g/2,v=f[h],E=w-p[d]-f[m],S=w/2-p[d]/2+C,k=ua(v,S,E),T=c;n.modifiersData[r]=(e={},e[T]=k,e.centerOffset=k-S,e)}}function q$(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||$7(e.elements.popper,o)&&(e.elements.arrow=o))}const Y$={name:"arrow",enabled:!0,phase:"main",fn:G$,effect:q$,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pi(t){return t.split("-")[1]}var J$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q$(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:di(n*o)/o||0,y:di(r*o)/o||0}}function j7(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,f=t.isFixed,p=s.x,h=p===void 0?0:p,m=s.y,y=m===void 0?0:m,g=typeof d=="function"?d({x:h,y}):{x:h,y};h=g.x,y=g.y;var b=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),C=Ct,v=vt,E=window;if(u){var S=ca(n),k="clientHeight",T="clientWidth";if(S===Dt(n)&&(S=Or(n),Hn(S).position!=="static"&&l==="absolute"&&(k="scrollHeight",T="scrollWidth")),S=S,o===vt||(o===Ct||o===Zt)&&i===aa){v=jt;var D=f&&S===E&&E.visualViewport?E.visualViewport.height:S[k];y-=D-r.height,y*=c?1:-1}if(o===Ct||(o===vt||o===jt)&&i===aa){C=Zt;var N=f&&S===E&&E.visualViewport?E.visualViewport.width:S[T];h-=N-r.width,h*=c?1:-1}}var B=Object.assign({position:l},u&&J$),$=d===!0?Q$({x:h,y},Dt(n)):{x:h,y};if(h=$.x,y=$.y,c){var j;return Object.assign({},B,(j={},j[v]=w?"0":"",j[C]=b?"0":"",j.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",j))}return Object.assign({},B,(e={},e[v]=w?y+"px":"",e[C]=b?h+"px":"",e.transform="",e))}function X$(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:yn(e.placement),variation:pi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,j7(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,j7(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const eF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:X$,data:{}};var s0={passive:!0};function tF(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,c=Dt(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,s0)}),l&&c.addEventListener("resize",n.update,s0),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,s0)}),l&&c.removeEventListener("resize",n.update,s0)}}const nF={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tF,data:{}};var rF={left:"right",right:"left",bottom:"top",top:"bottom"};function a0(t){return t.replace(/left|right|bottom|top/g,function(e){return rF[e]})}var oF={start:"end",end:"start"};function Z7(t){return t.replace(/start|end/g,function(e){return oF[e]})}function Id(t){var e=Dt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Nd(t){return fi(Or(t)).left+Id(t).scrollLeft}function iF(t,e){var n=Dt(t),r=Or(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;var u=V7();(u||!u&&e==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l+Nd(t),y:c}}function sF(t){var e,n=Or(t),r=Id(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=ho(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ho(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Nd(t),c=-r.scrollTop;return Hn(o||n).direction==="rtl"&&(l+=ho(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Bd(t){var e=Hn(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function W7(t){return["html","body","#document"].indexOf(gn(t))>=0?t.ownerDocument.body:Wt(t)&&Bd(t)?t:W7(i0(t))}function da(t,e){var n;e===void 0&&(e=[]);var r=W7(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Dt(r),s=o?[i].concat(i.visualViewport||[],Bd(r)?r:[]):r,l=e.concat(s);return o?l:l.concat(da(i0(s)))}function Rd(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function aF(t,e){var n=fi(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function U7(t,e,n){return e===N7?Rd(iF(t,n)):po(e)?aF(e,n):Rd(sF(Or(t)))}function lF(t){var e=da(i0(t)),n=["absolute","fixed"].indexOf(Hn(t).position)>=0,r=n&&Wt(t)?ca(t):t;return po(r)?e.filter(function(o){return po(o)&&$7(o,r)&&gn(o)!=="body"}):[]}function cF(t,e,n,r){var o=e==="clippingParents"?lF(t):[].concat(e),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(c,u){var d=U7(t,u,r);return c.top=ho(d.top,c.top),c.right=o0(d.right,c.right),c.bottom=o0(d.bottom,c.bottom),c.left=ho(d.left,c.left),c},U7(t,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function K7(t){var e=t.reference,n=t.element,r=t.placement,o=r?yn(r):null,i=r?pi(r):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(o){case vt:c={x:s,y:e.y-n.height};break;case jt:c={x:s,y:e.y+e.height};break;case Zt:c={x:e.x+e.width,y:l};break;case Ct:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=o?Ad(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case ui:c[u]=c[u]-(e[d]/2-n[d]/2);break;case aa:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function fa(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,l=n.boundary,c=l===void 0?D$:l,u=n.rootBoundary,d=u===void 0?N7:u,f=n.elementContext,p=f===void 0?la:f,h=n.altBoundary,m=h===void 0?!1:h,y=n.padding,g=y===void 0?0:y,b=_7(typeof g!="number"?g:z7(g,sa)),w=p===la?A$:la,C=t.rects.popper,v=t.elements[m?w:p],E=cF(po(v)?v:v.contextElement||Or(t.elements.popper),c,d,s),S=fi(t.elements.reference),k=K7({reference:S,element:C,strategy:"absolute",placement:o}),T=Rd(Object.assign({},C,k)),D=p===la?T:S,N={top:E.top-D.top+b.top,bottom:D.bottom-E.bottom+b.bottom,left:E.left-D.left+b.left,right:D.right-E.right+b.right},B=t.modifiersData.offset;if(p===la&&B){var $=B[o];Object.keys(N).forEach(function(j){var ee=[Zt,jt].indexOf(j)>=0?1:-1,F=[vt,jt].indexOf(j)>=0?"y":"x";N[j]+=$[F]*ee})}return N}function uF(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?R7:c,d=pi(r),f=d?l?B7:B7.filter(function(m){return pi(m)===d}):sa,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,y){return m[y]=fa(t,{placement:y,boundary:o,rootBoundary:i,padding:s})[yn(y)],m},{});return Object.keys(h).sort(function(m,y){return h[m]-h[y]})}function dF(t){if(yn(t)===Md)return[];var e=a0(t);return[Z7(t),e,Z7(e)]}function fF(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,y=n.allowedAutoPlacements,g=e.options.placement,b=yn(g),w=b===g,C=c||(w||!m?[a0(g)]:dF(g)),v=[g].concat(C).reduce(function(It,Nt){return It.concat(yn(Nt)===Md?uF(e,{placement:Nt,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:y}):Nt)},[]),E=e.rects.reference,S=e.rects.popper,k=new Map,T=!0,D=v[0],N=0;N<v.length;N++){var B=v[N],$=yn(B),j=pi(B)===ui,ee=[vt,jt].indexOf($)>=0,F=ee?"width":"height",W=fa(e,{placement:B,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),te=ee?j?Zt:Ct:j?jt:vt;E[F]>S[F]&&(te=a0(te));var se=a0(te),qe=[];if(i&&qe.push(W[$]<=0),l&&qe.push(W[te]<=0,W[se]<=0),qe.every(function(It){return It})){D=B,T=!1;break}k.set(B,qe)}if(T)for(var pt=m?3:1,rt=function(Nt){var on=v.find(function(yo){var sn=k.get(yo);if(sn)return sn.slice(0,Nt).every(function(Dr){return Dr})});if(on)return D=on,"break"},ot=pt;ot>0;ot--){var rn=rt(ot);if(rn==="break")break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}}const pF={name:"flip",enabled:!0,phase:"main",fn:fF,requiresIfExists:["offset"],data:{_skip:!1}};function G7(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function q7(t){return[vt,Zt,jt,Ct].some(function(e){return t[e]>=0})}function hF(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=fa(e,{elementContext:"reference"}),l=fa(e,{altBoundary:!0}),c=G7(s,r),u=G7(l,o,i),d=q7(c),f=q7(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const mF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hF};function gF(t,e,n){var r=yn(t),o=[Ct,vt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[Ct,Zt].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function yF(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=R7.reduce(function(d,f){return d[f]=gF(f,e.rects,i),d},{}),l=s[e.placement],c=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const bF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yF};function wF(t){var e=t.state,n=t.name;e.modifiersData[n]=K7({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const vF={name:"popperOffsets",enabled:!0,phase:"read",fn:wF,data:{}};function CF(t){return t==="x"?"y":"x"}function SF(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,y=m===void 0?0:m,g=fa(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=yn(e.placement),w=pi(e.placement),C=!w,v=Ad(b),E=CF(v),S=e.modifiersData.popperOffsets,k=e.rects.reference,T=e.rects.popper,D=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,N=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(S){if(i){var j,ee=v==="y"?vt:Ct,F=v==="y"?jt:Zt,W=v==="y"?"height":"width",te=S[v],se=te+g[ee],qe=te-g[F],pt=h?-T[W]/2:0,rt=w===ui?k[W]:T[W],ot=w===ui?-T[W]:-k[W],rn=e.elements.arrow,It=h&&rn?Dd(rn):{width:0,height:0},Nt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:H7(),on=Nt[ee],yo=Nt[F],sn=ua(0,k[W],It[W]),Dr=C?k[W]/2-pt-sn-on-N.mainAxis:rt-sn-on-N.mainAxis,kn=C?-k[W]/2+pt+sn+yo+N.mainAxis:ot+sn+yo+N.mainAxis,Ar=e.elements.arrow&&ca(e.elements.arrow),vi=Ar?v==="y"?Ar.clientTop||0:Ar.clientLeft||0:0,bo=(j=B==null?void 0:B[v])!=null?j:0,Ci=te+Dr-bo-vi,Si=te+kn-bo,Ir=ua(h?o0(se,Ci):se,te,h?ho(qe,Si):qe);S[v]=Ir,$[v]=Ir-te}if(l){var wo,ki=v==="x"?vt:Ct,Oi=v==="x"?jt:Zt,an=S[E],On=E==="y"?"height":"width",vo=an+g[ki],jn=an-g[Oi],Co=[vt,Ct].indexOf(b)!==-1,ye=(wo=B==null?void 0:B[E])!=null?wo:0,x=Co?vo:an-k[On]-T[On]-ye+N.altAxis,I=Co?an+k[On]+T[On]-ye-N.altAxis:jn,ne=h&&Co?U$(x,an,I):ua(h?x:vo,an,h?I:jn);S[E]=ne,$[E]=ne-an}e.modifiersData[r]=$}}const kF={name:"preventOverflow",enabled:!0,phase:"main",fn:SF,requiresIfExists:["offset"]};function OF(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function EF(t){return t===Dt(t)||!Wt(t)?Id(t):OF(t)}function TF(t){var e=t.getBoundingClientRect(),n=di(e.width)/t.offsetWidth||1,r=di(e.height)/t.offsetHeight||1;return n!==1||r!==1}function MF(t,e,n){n===void 0&&(n=!1);var r=Wt(e),o=Wt(e)&&TF(e),i=Or(e),s=fi(t,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((gn(e)!=="body"||Bd(i))&&(l=EF(e)),Wt(e)?(c=fi(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=Nd(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function xF(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&o(c)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function PF(t){var e=xF(t);return _$.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function DF(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function AF(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Y7={placement:"bottom",modifiers:[],strategy:"absolute"};function J7(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function IF(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?Y7:o;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Y7,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(b){var w=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},i,d.options,w),d.scrollParents={reference:po(l)?da(l):l.contextElement?da(l.contextElement):[],popper:da(c)};var C=PF(AF([].concat(r,d.options.modifiers)));return d.orderedModifiers=C.filter(function(v){return v.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var b=d.elements,w=b.reference,C=b.popper;if(J7(w,C)){d.rects={reference:MF(w,ca(C),d.options.strategy==="fixed"),popper:Dd(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var E=d.orderedModifiers[v],S=E.fn,k=E.options,T=k===void 0?{}:k,D=E.name;typeof S=="function"&&(d=S({state:d,options:T,name:D,instance:h})||d)}}}},update:DF(function(){return new Promise(function(g){h.forceUpdate(),g(d)})}),destroy:function(){y(),p=!0}};if(!J7(l,c))return h;h.setOptions(u).then(function(g){!p&&u.onFirstUpdate&&u.onFirstUpdate(g)});function m(){d.orderedModifiers.forEach(function(g){var b=g.name,w=g.options,C=w===void 0?{}:w,v=g.effect;if(typeof v=="function"){var E=v({state:d,name:b,instance:h,options:C}),S=function(){};f.push(E||S)}})}function y(){f.forEach(function(g){return g()}),f=[]}return h}}var NF=[nF,vF,eF,L7,bF,pF,kF,Y$,mF],BF=IF({defaultModifiers:NF}),RF="tippy-box",Q7="tippy-content",LF="tippy-backdrop",X7="tippy-arrow",e4="tippy-svg-arrow",mo={passive:!0,capture:!0},t4=function(){return document.body};function VF(t,e){return{}.hasOwnProperty.call(t,e)}function Ld(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function Vd(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function n4(t,e){return typeof t=="function"?t.apply(void 0,e):t}function r4(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function $F(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function FF(t){return t.split(/\s+/).filter(Boolean)}function hi(t){return[].concat(t)}function o4(t,e){t.indexOf(e)===-1&&t.push(e)}function HF(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function _F(t){return t.split("-")[0]}function l0(t){return[].slice.call(t)}function i4(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function pa(){return document.createElement("div")}function ha(t){return["Element","Fragment"].some(function(e){return Vd(t,e)})}function zF(t){return Vd(t,"NodeList")}function jF(t){return Vd(t,"MouseEvent")}function ZF(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function WF(t){return ha(t)?[t]:zF(t)?l0(t):Array.isArray(t)?t:l0(document.querySelectorAll(t))}function $d(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function s4(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function UF(t){var e,n=hi(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function KF(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,c=l.interactiveBorder,u=_F(s.placement),d=s.modifiersData.offset;if(!d)return!0;var f=u==="bottom"?d.top.y:0,p=u==="top"?d.bottom.y:0,h=u==="right"?d.left.x:0,m=u==="left"?d.right.x:0,y=i.top-r+f>c,g=r-i.bottom-p>c,b=i.left-n+h>c,w=n-i.right-m>c;return y||g||b||w})}function Fd(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function a4(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var bn={isTouch:!1},l4=0;function GF(){bn.isTouch||(bn.isTouch=!0,window.performance&&document.addEventListener("mousemove",c4))}function c4(){var t=performance.now();t-l4<20&&(bn.isTouch=!1,document.removeEventListener("mousemove",c4)),l4=t}function qF(){var t=document.activeElement;if(ZF(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function YF(){document.addEventListener("touchstart",GF,mo),window.addEventListener("blur",qF)}var JF=typeof window<"u"&&typeof document<"u",QF=JF?!!window.msCrypto:!1;function mi(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function u4(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function XF(t){return u4(`
332
332
  %ctippy.js
333
333
 
334
334
  %c`+u4(t)+`
335
335
 
336
336
  %cšŸ‘·ā€ This is a development-only message. It will be removed in production.
337
- `)}function d4(t){return[QF(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var ma;process.env.NODE_ENV!=="production"&&XF();function XF(){ma=new Set}function _n(t,e){if(t&&!ma.has(e)){var n;ma.add(e),(n=console).warn.apply(n,d4(e))}}function Hd(t,e){if(t&&!ma.has(e)){var n;ma.add(e),(n=console).error.apply(n,d4(e))}}function eH(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;Hd(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Hd(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var f4={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},tH={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},At=Object.assign({appendTo:t4,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},f4,tH),nH=Object.keys(At),rH=function(e){process.env.NODE_ENV!=="production"&&m4(e,[]);var n=Object.keys(e);n.forEach(function(r){At[r]=e[r]})};function p4(t){var e=t.plugins||[],n=e.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var l;r[i]=t[i]!==void 0?t[i]:(l=At[i])!=null?l:s}return r},{});return Object.assign({},t,n)}function oH(t,e){var n=e?Object.keys(p4(Object.assign({},At,{plugins:e}))):nH,r=n.reduce(function(o,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function h4(t,e){var n=Object.assign({},e,{content:n4(e.content,[t])},e.ignoreAttributes?{}:oH(t,e.plugins));return n.aria=Object.assign({},At.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function m4(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var o=VF(At,Object.keys(f4)),i=!LF(o,r);i&&(i=e.filter(function(s){return s.name===r}).length===0),_n(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
337
+ `)}function d4(t){return[XF(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var ma;process.env.NODE_ENV!=="production"&&eH();function eH(){ma=new Set}function _n(t,e){if(t&&!ma.has(e)){var n;ma.add(e),(n=console).warn.apply(n,d4(e))}}function Hd(t,e){if(t&&!ma.has(e)){var n;ma.add(e),(n=console).error.apply(n,d4(e))}}function tH(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;Hd(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Hd(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var f4={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},nH={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},At=Object.assign({appendTo:t4,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},f4,nH),rH=Object.keys(At),oH=function(e){process.env.NODE_ENV!=="production"&&m4(e,[]);var n=Object.keys(e);n.forEach(function(r){At[r]=e[r]})};function p4(t){var e=t.plugins||[],n=e.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var l;r[i]=t[i]!==void 0?t[i]:(l=At[i])!=null?l:s}return r},{});return Object.assign({},t,n)}function iH(t,e){var n=e?Object.keys(p4(Object.assign({},At,{plugins:e}))):rH,r=n.reduce(function(o,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function h4(t,e){var n=Object.assign({},e,{content:n4(e.content,[t])},e.ignoreAttributes?{}:iH(t,e.plugins));return n.aria=Object.assign({},At.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function m4(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var o=$F(At,Object.keys(f4)),i=!VF(o,r);i&&(i=e.filter(function(s){return s.name===r}).length===0),_n(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
338
338
 
339
339
  `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
340
- `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var iH=function(){return"innerHTML"};function _d(t,e){t[iH()]=e}function g4(t){var e=pa();return t===!0?e.className=X7:(e.className=e4,ha(t)?e.appendChild(t):_d(e,t)),e}function y4(t,e){ha(e.content)?(_d(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?_d(t,e.content):t.textContent=e.content)}function zd(t){var e=t.firstElementChild,n=l0(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(Q7)}),arrow:n.find(function(r){return r.classList.contains(X7)||r.classList.contains(e4)}),backdrop:n.find(function(r){return r.classList.contains(RF)})}}function b4(t){var e=pa(),n=pa();n.className=BF,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=pa();r.className=Q7,r.setAttribute("data-state","hidden"),y4(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var l=zd(e),c=l.box,u=l.content,d=l.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&y4(u,t.props),s.arrow?d?i.arrow!==s.arrow&&(c.removeChild(d),c.appendChild(g4(s.arrow))):c.appendChild(g4(s.arrow)):d&&c.removeChild(d)}return{popper:e,onUpdate:o}}b4.$$tippy=!0;var sH=1,c0=[],jd=[];function aH(t,e){var n=h4(t,Object.assign({},At,p4(i4(e)))),r,o,i,s=!1,l=!1,c=!1,u=!1,d,f,p,h=[],m=r4(Ci,n.interactiveDebounce),y,g=sH++,b=null,w=FF(n.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},v={id:g,reference:t,popper:pa(),popperInstance:b,props:n,state:C,plugins:w,clearDelayTimeouts:x,setProps:I,setContent:ne,show:Ee,hide:Zn,hideWithInteractivity:Ei,enable:Co,disable:ye,unmount:Nr,destroy:Wn};if(!n.render)return process.env.NODE_ENV!=="production"&&Hd(!0,"render() function has not been supplied."),v;var E=n.render(v),S=E.popper,k=E.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+v.id,v.popper=S,t._tippy=v,S._tippy=v;var T=w.map(function(P){return P.fn(v)}),D=t.hasAttribute("aria-expanded");return Ar(),pt(),te(),se("onCreate",[v]),n.showOnCreate&&vo(),S.addEventListener("mouseenter",function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&ee().addEventListener("mousemove",m)}),v;function N(){var P=v.props.touch;return Array.isArray(P)?P:[P,0]}function B(){return N()[0]==="hold"}function $(){var P;return!!((P=v.props.render)!=null&&P.$$tippy)}function j(){return y||t}function ee(){var P=j().parentNode;return P?WF(P):document}function F(){return zd(S)}function W(P){return v.state.isMounted&&!v.state.isVisible||bn.isTouch||d&&d.type==="focus"?0:Ld(v.props.delay,P?0:1,At.delay)}function te(P){P===void 0&&(P=!1),S.style.pointerEvents=v.props.interactive&&!P?"":"none",S.style.zIndex=""+v.props.zIndex}function se(P,_,U){if(U===void 0&&(U=!0),T.forEach(function(ae){ae[P]&&ae[P].apply(ae,_)}),U){var fe;(fe=v.props)[P].apply(fe,_)}}function qe(){var P=v.props.aria;if(P.content){var _="aria-"+P.content,U=S.id,fe=hi(v.props.triggerTarget||t);fe.forEach(function(ae){var ht=ae.getAttribute(_);if(v.state.isVisible)ae.setAttribute(_,ht?ht+" "+U:U);else{var Gt=ht&&ht.replace(U,"").trim();Gt?ae.setAttribute(_,Gt):ae.removeAttribute(_)}})}}function pt(){if(!(D||!v.props.aria.expanded)){var P=hi(v.props.triggerTarget||t);P.forEach(function(_){v.props.interactive?_.setAttribute("aria-expanded",v.state.isVisible&&_===j()?"true":"false"):_.removeAttribute("aria-expanded")})}}function rt(){ee().removeEventListener("mousemove",m),c0=c0.filter(function(P){return P!==m})}function ot(P){if(!(bn.isTouch&&(c||P.type==="mousedown"))){var _=P.composedPath&&P.composedPath()[0]||P.target;if(!(v.props.interactive&&a4(S,_))){if(hi(v.props.triggerTarget||t).some(function(U){return a4(U,_)})){if(bn.isTouch||v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else se("onClickOutside",[v,P]);v.props.hideOnClick===!0&&(v.clearDelayTimeouts(),v.hide(),l=!0,setTimeout(function(){l=!1}),v.state.isMounted||on())}}}function rn(){c=!0}function It(){c=!1}function Nt(){var P=ee();P.addEventListener("mousedown",ot,!0),P.addEventListener("touchend",ot,mo),P.addEventListener("touchstart",It,mo),P.addEventListener("touchmove",rn,mo)}function on(){var P=ee();P.removeEventListener("mousedown",ot,!0),P.removeEventListener("touchend",ot,mo),P.removeEventListener("touchstart",It,mo),P.removeEventListener("touchmove",rn,mo)}function yo(P,_){Dr(P,function(){!v.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&_()})}function sn(P,_){Dr(P,_)}function Dr(P,_){var U=F().box;function fe(ae){ae.target===U&&(Fd(U,"remove",fe),_())}if(P===0)return _();Fd(U,"remove",f),Fd(U,"add",fe),f=fe}function kn(P,_,U){U===void 0&&(U=!1);var fe=hi(v.props.triggerTarget||t);fe.forEach(function(ae){ae.addEventListener(P,_,U),h.push({node:ae,eventType:P,handler:_,options:U})})}function Ar(){B()&&(kn("touchstart",bo,{passive:!0}),kn("touchend",Si,{passive:!0})),$F(v.props.trigger).forEach(function(P){if(P!=="manual")switch(kn(P,bo),P){case"mouseenter":kn("mouseleave",Si);break;case"focus":kn(JF?"focusout":"blur",Ir);break;case"focusin":kn("focusout",Ir);break}})}function vi(){h.forEach(function(P){var _=P.node,U=P.eventType,fe=P.handler,ae=P.options;_.removeEventListener(U,fe,ae)}),h=[]}function bo(P){var _,U=!1;if(!(!v.state.isEnabled||wo(P)||l)){var fe=((_=d)==null?void 0:_.type)==="focus";d=P,y=P.currentTarget,pt(),!v.state.isVisible&&zF(P)&&c0.forEach(function(ae){return ae(P)}),P.type==="click"&&(v.props.trigger.indexOf("mouseenter")<0||s)&&v.props.hideOnClick!==!1&&v.state.isVisible?U=!0:vo(P),P.type==="click"&&(s=!U),U&&!fe&&jn(P)}}function Ci(P){var _=P.target,U=j().contains(_)||S.contains(_);if(!(P.type==="mousemove"&&U)){var fe=On().concat(S).map(function(ae){var ht,Gt=ae._tippy,Ti=(ht=Gt.popperInstance)==null?void 0:ht.state;return Ti?{popperRect:ae.getBoundingClientRect(),popperState:Ti,props:n}:null}).filter(Boolean);UF(fe,P)&&(rt(),jn(P))}}function Si(P){var _=wo(P)||v.props.trigger.indexOf("click")>=0&&s;if(!_){if(v.props.interactive){v.hideWithInteractivity(P);return}jn(P)}}function Ir(P){v.props.trigger.indexOf("focusin")<0&&P.target!==j()||v.props.interactive&&P.relatedTarget&&S.contains(P.relatedTarget)||jn(P)}function wo(P){return bn.isTouch?B()!==P.type.indexOf("touch")>=0:!1}function ki(){Oi();var P=v.props,_=P.popperOptions,U=P.placement,fe=P.offset,ae=P.getReferenceClientRect,ht=P.moveTransition,Gt=$()?zd(S).arrow:null,Ti=ae?{getBoundingClientRect:ae,contextElement:ae.contextElement||j()}:t,G4={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(q0){var Mi=q0.state;if($()){var X_=F(),mf=X_.box;["placement","reference-hidden","escaped"].forEach(function(Y0){Y0==="placement"?mf.setAttribute("data-placement",Mi.placement):Mi.attributes.popper["data-popper-"+Y0]?mf.setAttribute("data-"+Y0,""):mf.removeAttribute("data-"+Y0)}),Mi.attributes.popper={}}}},So=[{name:"offset",options:{offset:fe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ht}},G4];$()&&Gt&&So.push({name:"arrow",options:{element:Gt,padding:3}}),So.push.apply(So,(_==null?void 0:_.modifiers)||[]),v.popperInstance=NF(Ti,S,Object.assign({},_,{placement:U,onFirstUpdate:p,modifiers:So}))}function Oi(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function an(){var P=v.props.appendTo,_,U=j();v.props.interactive&&P===t4||P==="parent"?_=U.parentNode:_=n4(P,[U]),_.contains(S)||_.appendChild(S),v.state.isMounted=!0,ki(),process.env.NODE_ENV!=="production"&&_n(v.props.interactive&&P===At.appendTo&&U.nextElementSibling!==S,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
340
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var sH=function(){return"innerHTML"};function _d(t,e){t[sH()]=e}function g4(t){var e=pa();return t===!0?e.className=X7:(e.className=e4,ha(t)?e.appendChild(t):_d(e,t)),e}function y4(t,e){ha(e.content)?(_d(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?_d(t,e.content):t.textContent=e.content)}function zd(t){var e=t.firstElementChild,n=l0(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(Q7)}),arrow:n.find(function(r){return r.classList.contains(X7)||r.classList.contains(e4)}),backdrop:n.find(function(r){return r.classList.contains(LF)})}}function b4(t){var e=pa(),n=pa();n.className=RF,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=pa();r.className=Q7,r.setAttribute("data-state","hidden"),y4(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var l=zd(e),c=l.box,u=l.content,d=l.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&y4(u,t.props),s.arrow?d?i.arrow!==s.arrow&&(c.removeChild(d),c.appendChild(g4(s.arrow))):c.appendChild(g4(s.arrow)):d&&c.removeChild(d)}return{popper:e,onUpdate:o}}b4.$$tippy=!0;var aH=1,c0=[],jd=[];function lH(t,e){var n=h4(t,Object.assign({},At,p4(i4(e)))),r,o,i,s=!1,l=!1,c=!1,u=!1,d,f,p,h=[],m=r4(Ci,n.interactiveDebounce),y,g=aH++,b=null,w=HF(n.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},v={id:g,reference:t,popper:pa(),popperInstance:b,props:n,state:C,plugins:w,clearDelayTimeouts:x,setProps:I,setContent:ne,show:Ee,hide:Zn,hideWithInteractivity:Ei,enable:Co,disable:ye,unmount:Nr,destroy:Wn};if(!n.render)return process.env.NODE_ENV!=="production"&&Hd(!0,"render() function has not been supplied."),v;var E=n.render(v),S=E.popper,k=E.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+v.id,v.popper=S,t._tippy=v,S._tippy=v;var T=w.map(function(P){return P.fn(v)}),D=t.hasAttribute("aria-expanded");return Ar(),pt(),te(),se("onCreate",[v]),n.showOnCreate&&vo(),S.addEventListener("mouseenter",function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&ee().addEventListener("mousemove",m)}),v;function N(){var P=v.props.touch;return Array.isArray(P)?P:[P,0]}function B(){return N()[0]==="hold"}function $(){var P;return!!((P=v.props.render)!=null&&P.$$tippy)}function j(){return y||t}function ee(){var P=j().parentNode;return P?UF(P):document}function F(){return zd(S)}function W(P){return v.state.isMounted&&!v.state.isVisible||bn.isTouch||d&&d.type==="focus"?0:Ld(v.props.delay,P?0:1,At.delay)}function te(P){P===void 0&&(P=!1),S.style.pointerEvents=v.props.interactive&&!P?"":"none",S.style.zIndex=""+v.props.zIndex}function se(P,_,U){if(U===void 0&&(U=!0),T.forEach(function(ae){ae[P]&&ae[P].apply(ae,_)}),U){var fe;(fe=v.props)[P].apply(fe,_)}}function qe(){var P=v.props.aria;if(P.content){var _="aria-"+P.content,U=S.id,fe=hi(v.props.triggerTarget||t);fe.forEach(function(ae){var ht=ae.getAttribute(_);if(v.state.isVisible)ae.setAttribute(_,ht?ht+" "+U:U);else{var Gt=ht&&ht.replace(U,"").trim();Gt?ae.setAttribute(_,Gt):ae.removeAttribute(_)}})}}function pt(){if(!(D||!v.props.aria.expanded)){var P=hi(v.props.triggerTarget||t);P.forEach(function(_){v.props.interactive?_.setAttribute("aria-expanded",v.state.isVisible&&_===j()?"true":"false"):_.removeAttribute("aria-expanded")})}}function rt(){ee().removeEventListener("mousemove",m),c0=c0.filter(function(P){return P!==m})}function ot(P){if(!(bn.isTouch&&(c||P.type==="mousedown"))){var _=P.composedPath&&P.composedPath()[0]||P.target;if(!(v.props.interactive&&a4(S,_))){if(hi(v.props.triggerTarget||t).some(function(U){return a4(U,_)})){if(bn.isTouch||v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else se("onClickOutside",[v,P]);v.props.hideOnClick===!0&&(v.clearDelayTimeouts(),v.hide(),l=!0,setTimeout(function(){l=!1}),v.state.isMounted||on())}}}function rn(){c=!0}function It(){c=!1}function Nt(){var P=ee();P.addEventListener("mousedown",ot,!0),P.addEventListener("touchend",ot,mo),P.addEventListener("touchstart",It,mo),P.addEventListener("touchmove",rn,mo)}function on(){var P=ee();P.removeEventListener("mousedown",ot,!0),P.removeEventListener("touchend",ot,mo),P.removeEventListener("touchstart",It,mo),P.removeEventListener("touchmove",rn,mo)}function yo(P,_){Dr(P,function(){!v.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&_()})}function sn(P,_){Dr(P,_)}function Dr(P,_){var U=F().box;function fe(ae){ae.target===U&&(Fd(U,"remove",fe),_())}if(P===0)return _();Fd(U,"remove",f),Fd(U,"add",fe),f=fe}function kn(P,_,U){U===void 0&&(U=!1);var fe=hi(v.props.triggerTarget||t);fe.forEach(function(ae){ae.addEventListener(P,_,U),h.push({node:ae,eventType:P,handler:_,options:U})})}function Ar(){B()&&(kn("touchstart",bo,{passive:!0}),kn("touchend",Si,{passive:!0})),FF(v.props.trigger).forEach(function(P){if(P!=="manual")switch(kn(P,bo),P){case"mouseenter":kn("mouseleave",Si);break;case"focus":kn(QF?"focusout":"blur",Ir);break;case"focusin":kn("focusout",Ir);break}})}function vi(){h.forEach(function(P){var _=P.node,U=P.eventType,fe=P.handler,ae=P.options;_.removeEventListener(U,fe,ae)}),h=[]}function bo(P){var _,U=!1;if(!(!v.state.isEnabled||wo(P)||l)){var fe=((_=d)==null?void 0:_.type)==="focus";d=P,y=P.currentTarget,pt(),!v.state.isVisible&&jF(P)&&c0.forEach(function(ae){return ae(P)}),P.type==="click"&&(v.props.trigger.indexOf("mouseenter")<0||s)&&v.props.hideOnClick!==!1&&v.state.isVisible?U=!0:vo(P),P.type==="click"&&(s=!U),U&&!fe&&jn(P)}}function Ci(P){var _=P.target,U=j().contains(_)||S.contains(_);if(!(P.type==="mousemove"&&U)){var fe=On().concat(S).map(function(ae){var ht,Gt=ae._tippy,Ti=(ht=Gt.popperInstance)==null?void 0:ht.state;return Ti?{popperRect:ae.getBoundingClientRect(),popperState:Ti,props:n}:null}).filter(Boolean);KF(fe,P)&&(rt(),jn(P))}}function Si(P){var _=wo(P)||v.props.trigger.indexOf("click")>=0&&s;if(!_){if(v.props.interactive){v.hideWithInteractivity(P);return}jn(P)}}function Ir(P){v.props.trigger.indexOf("focusin")<0&&P.target!==j()||v.props.interactive&&P.relatedTarget&&S.contains(P.relatedTarget)||jn(P)}function wo(P){return bn.isTouch?B()!==P.type.indexOf("touch")>=0:!1}function ki(){Oi();var P=v.props,_=P.popperOptions,U=P.placement,fe=P.offset,ae=P.getReferenceClientRect,ht=P.moveTransition,Gt=$()?zd(S).arrow:null,Ti=ae?{getBoundingClientRect:ae,contextElement:ae.contextElement||j()}:t,G4={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(q0){var Mi=q0.state;if($()){var ez=F(),mf=ez.box;["placement","reference-hidden","escaped"].forEach(function(Y0){Y0==="placement"?mf.setAttribute("data-placement",Mi.placement):Mi.attributes.popper["data-popper-"+Y0]?mf.setAttribute("data-"+Y0,""):mf.removeAttribute("data-"+Y0)}),Mi.attributes.popper={}}}},So=[{name:"offset",options:{offset:fe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ht}},G4];$()&&Gt&&So.push({name:"arrow",options:{element:Gt,padding:3}}),So.push.apply(So,(_==null?void 0:_.modifiers)||[]),v.popperInstance=BF(Ti,S,Object.assign({},_,{placement:U,onFirstUpdate:p,modifiers:So}))}function Oi(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function an(){var P=v.props.appendTo,_,U=j();v.props.interactive&&P===t4||P==="parent"?_=U.parentNode:_=n4(P,[U]),_.contains(S)||_.appendChild(S),v.state.isMounted=!0,ki(),process.env.NODE_ENV!=="production"&&_n(v.props.interactive&&P===At.appendTo&&U.nextElementSibling!==S,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
341
341
 
342
342
  `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
343
343
 
344
344
  `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
345
345
 
346
- `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function On(){return l0(S.querySelectorAll("[data-tippy-root]"))}function vo(P){v.clearDelayTimeouts(),P&&se("onTrigger",[v,P]),Nt();var _=W(!0),U=N(),fe=U[0],ae=U[1];bn.isTouch&&fe==="hold"&&ae&&(_=ae),_?r=setTimeout(function(){v.show()},_):v.show()}function jn(P){if(v.clearDelayTimeouts(),se("onUntrigger",[v,P]),!v.state.isVisible){on();return}if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(P.type)>=0&&s)){var _=W(!1);_?o=setTimeout(function(){v.state.isVisible&&v.hide()},_):i=requestAnimationFrame(function(){v.hide()})}}function Co(){v.state.isEnabled=!0}function ye(){v.hide(),v.state.isEnabled=!1}function x(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function I(P){if(process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("setProps")),!v.state.isDestroyed){se("onBeforeUpdate",[v,P]),vi();var _=v.props,U=h4(t,Object.assign({},_,i4(P),{ignoreAttributes:!0}));v.props=U,Ar(),_.interactiveDebounce!==U.interactiveDebounce&&(rt(),m=r4(Ci,U.interactiveDebounce)),_.triggerTarget&&!U.triggerTarget?hi(_.triggerTarget).forEach(function(fe){fe.removeAttribute("aria-expanded")}):U.triggerTarget&&t.removeAttribute("aria-expanded"),pt(),te(),k&&k(_,U),v.popperInstance&&(ki(),On().forEach(function(fe){requestAnimationFrame(fe._tippy.popperInstance.forceUpdate)})),se("onAfterUpdate",[v,P])}}function ne(P){v.setProps({content:P})}function Ee(){process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("show"));var P=v.state.isVisible,_=v.state.isDestroyed,U=!v.state.isEnabled,fe=bn.isTouch&&!v.props.touch,ae=Ld(v.props.duration,0,At.duration);if(!(P||_||U||fe)&&!j().hasAttribute("disabled")&&(se("onShow",[v],!1),v.props.onShow(v)!==!1)){if(v.state.isVisible=!0,$()&&(S.style.visibility="visible"),te(),Nt(),v.state.isMounted||(S.style.transition="none"),$()){var ht=F(),Gt=ht.box,Ti=ht.content;$d([Gt,Ti],0)}p=function(){var So;if(!(!v.state.isVisible||u)){if(u=!0,S.offsetHeight,S.style.transition=v.props.moveTransition,$()&&v.props.animation){var hf=F(),q0=hf.box,Mi=hf.content;$d([q0,Mi],ae),s4([q0,Mi],"visible")}qe(),pt(),o4(jd,v),(So=v.popperInstance)==null||So.forceUpdate(),se("onMount",[v]),v.props.animation&&$()&&sn(ae,function(){v.state.isShown=!0,se("onShown",[v])})}},an()}}function Zn(){process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("hide"));var P=!v.state.isVisible,_=v.state.isDestroyed,U=!v.state.isEnabled,fe=Ld(v.props.duration,1,At.duration);if(!(P||_||U)&&(se("onHide",[v],!1),v.props.onHide(v)!==!1)){if(v.state.isVisible=!1,v.state.isShown=!1,u=!1,s=!1,$()&&(S.style.visibility="hidden"),rt(),on(),te(!0),$()){var ae=F(),ht=ae.box,Gt=ae.content;v.props.animation&&($d([ht,Gt],fe),s4([ht,Gt],"hidden"))}qe(),pt(),v.props.animation?$()&&yo(fe,v.unmount):v.unmount()}}function Ei(P){process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("hideWithInteractivity")),ee().addEventListener("mousemove",m),o4(c0,m),m(P)}function Nr(){process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("unmount")),v.state.isVisible&&v.hide(),v.state.isMounted&&(Oi(),On().forEach(function(P){P._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),jd=jd.filter(function(P){return P!==v}),v.state.isMounted=!1,se("onHidden",[v]))}function Wn(){process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("destroy")),!v.state.isDestroyed&&(v.clearDelayTimeouts(),v.unmount(),vi(),delete t._tippy,v.state.isDestroyed=!0,se("onDestroy",[v]))}}function gi(t,e){e===void 0&&(e={});var n=At.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(eH(t),m4(e,n)),qF();var r=Object.assign({},e,{plugins:n}),o=ZF(t);if(process.env.NODE_ENV!=="production"){var i=ha(r.content),s=o.length>1;_n(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
346
+ `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function On(){return l0(S.querySelectorAll("[data-tippy-root]"))}function vo(P){v.clearDelayTimeouts(),P&&se("onTrigger",[v,P]),Nt();var _=W(!0),U=N(),fe=U[0],ae=U[1];bn.isTouch&&fe==="hold"&&ae&&(_=ae),_?r=setTimeout(function(){v.show()},_):v.show()}function jn(P){if(v.clearDelayTimeouts(),se("onUntrigger",[v,P]),!v.state.isVisible){on();return}if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(P.type)>=0&&s)){var _=W(!1);_?o=setTimeout(function(){v.state.isVisible&&v.hide()},_):i=requestAnimationFrame(function(){v.hide()})}}function Co(){v.state.isEnabled=!0}function ye(){v.hide(),v.state.isEnabled=!1}function x(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function I(P){if(process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("setProps")),!v.state.isDestroyed){se("onBeforeUpdate",[v,P]),vi();var _=v.props,U=h4(t,Object.assign({},_,i4(P),{ignoreAttributes:!0}));v.props=U,Ar(),_.interactiveDebounce!==U.interactiveDebounce&&(rt(),m=r4(Ci,U.interactiveDebounce)),_.triggerTarget&&!U.triggerTarget?hi(_.triggerTarget).forEach(function(fe){fe.removeAttribute("aria-expanded")}):U.triggerTarget&&t.removeAttribute("aria-expanded"),pt(),te(),k&&k(_,U),v.popperInstance&&(ki(),On().forEach(function(fe){requestAnimationFrame(fe._tippy.popperInstance.forceUpdate)})),se("onAfterUpdate",[v,P])}}function ne(P){v.setProps({content:P})}function Ee(){process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("show"));var P=v.state.isVisible,_=v.state.isDestroyed,U=!v.state.isEnabled,fe=bn.isTouch&&!v.props.touch,ae=Ld(v.props.duration,0,At.duration);if(!(P||_||U||fe)&&!j().hasAttribute("disabled")&&(se("onShow",[v],!1),v.props.onShow(v)!==!1)){if(v.state.isVisible=!0,$()&&(S.style.visibility="visible"),te(),Nt(),v.state.isMounted||(S.style.transition="none"),$()){var ht=F(),Gt=ht.box,Ti=ht.content;$d([Gt,Ti],0)}p=function(){var So;if(!(!v.state.isVisible||u)){if(u=!0,S.offsetHeight,S.style.transition=v.props.moveTransition,$()&&v.props.animation){var hf=F(),q0=hf.box,Mi=hf.content;$d([q0,Mi],ae),s4([q0,Mi],"visible")}qe(),pt(),o4(jd,v),(So=v.popperInstance)==null||So.forceUpdate(),se("onMount",[v]),v.props.animation&&$()&&sn(ae,function(){v.state.isShown=!0,se("onShown",[v])})}},an()}}function Zn(){process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("hide"));var P=!v.state.isVisible,_=v.state.isDestroyed,U=!v.state.isEnabled,fe=Ld(v.props.duration,1,At.duration);if(!(P||_||U)&&(se("onHide",[v],!1),v.props.onHide(v)!==!1)){if(v.state.isVisible=!1,v.state.isShown=!1,u=!1,s=!1,$()&&(S.style.visibility="hidden"),rt(),on(),te(!0),$()){var ae=F(),ht=ae.box,Gt=ae.content;v.props.animation&&($d([ht,Gt],fe),s4([ht,Gt],"hidden"))}qe(),pt(),v.props.animation?$()&&yo(fe,v.unmount):v.unmount()}}function Ei(P){process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("hideWithInteractivity")),ee().addEventListener("mousemove",m),o4(c0,m),m(P)}function Nr(){process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("unmount")),v.state.isVisible&&v.hide(),v.state.isMounted&&(Oi(),On().forEach(function(P){P._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),jd=jd.filter(function(P){return P!==v}),v.state.isMounted=!1,se("onHidden",[v]))}function Wn(){process.env.NODE_ENV!=="production"&&_n(v.state.isDestroyed,mi("destroy")),!v.state.isDestroyed&&(v.clearDelayTimeouts(),v.unmount(),vi(),delete t._tippy,v.state.isDestroyed=!0,se("onDestroy",[v]))}}function gi(t,e){e===void 0&&(e={});var n=At.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(tH(t),m4(e,n)),YF();var r=Object.assign({},e,{plugins:n}),o=WF(t);if(process.env.NODE_ENV!=="production"){var i=ha(r.content),s=o.length>1;_n(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
347
347
 
348
348
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
349
349
 
350
350
  `,`1) content: element.innerHTML
351
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce(function(c,u){var d=u&&aH(u,r);return d&&c.push(d),c},[]);return ha(t)?l[0]:l}gi.defaultProps=At,gi.setDefaultProps=rH,gi.currentInput=bn,Object.assign({},L7,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),gi.setDefaultProps({render:b4});class lH{constructor({editor:e,element:n,view:r,tippyOptions:o={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:l,state:c,from:u,to:d})=>{const{doc:f,selection:p}=c,{empty:h}=p,m=!f.textBetween(u,d).length&&bd(c.selection),y=this.element.contains(document.activeElement);return!(!(l.hasFocus()||y)||h||m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var c;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(l.relatedTarget))||this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,c)=>{const u=!(c!=null&&c.selection.eq(l.state.selection)),d=!(c!=null&&c.doc.eq(l.state.doc));!u&&!d||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,u,d,c)},this.updateDelay))},this.updateHandler=(l,c,u,d)=>{var f,p,h;const{state:m,composing:y}=l,{selection:g}=m;if(y||!c&&!u)return;this.createTooltip();const{ranges:w}=g,C=Math.min(...w.map(S=>S.$from.pos)),v=Math.max(...w.map(S=>S.$to.pos));if(!((f=this.shouldShow)===null||f===void 0?void 0:f.call(this,{editor:this.editor,view:l,state:m,oldState:d,from:C,to:v}))){this.hide();return}(p=this.tippy)===null||p===void 0||p.setProps({getReferenceClientRect:((h=this.tippyOptions)===null||h===void 0?void 0:h.getReferenceClientRect)||(()=>{if(l$(m.selection)){let S=l.nodeDOM(C);const k=S.dataset.nodeViewWrapper?S:S.querySelector("[data-node-view-wrapper]");if(k&&(S=k.firstChild),S)return S.getBoundingClientRect()}return A7(l,C,v)})}),this.show()},this.editor=e,this.element=n,this.view=r,this.updateDelay=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=gi(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,n){const{state:r}=e,o=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,n);return}const i=!(n!=null&&n.selection.eq(e.state.selection)),s=!(n!=null&&n.doc.eq(e.state.doc));this.updateHandler(e,i,s,n)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const w4=t=>new Ke({key:typeof t.pluginKey=="string"?new Mt(t.pluginKey):t.pluginKey,view:e=>new lH({view:e,...t})});nt.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[w4({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class cH{constructor({editor:e,element:n,view:r,tippyOptions:o={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:l})=>{const{selection:c}=l,{$anchor:u,empty:d}=c,f=u.depth===1,p=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!s.hasFocus()||!d||!f||!p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var l;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=n,this.view=r,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=gi(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,n){var r,o,i;const{state:s}=e,{doc:l,selection:c}=s,{from:u,to:d}=c;if(n&&n.doc.eq(l)&&n.selection.eq(c))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:s,oldState:n}))){this.hide();return}(o=this.tippy)===null||o===void 0||o.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>A7(e,u,d))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const v4=t=>new Ke({key:typeof t.pluginKey=="string"?new Mt(t.pluginKey):t.pluginKey,view:e=>new cH({view:e,...t})});nt.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[v4({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),a.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const n=a.ref(null);return a.onMounted(()=>{const{updateDelay:r,editor:o,pluginKey:i,shouldShow:s,tippyOptions:l}=t;o.registerPlugin(w4({updateDelay:r,editor:o,element:n.value,pluginKey:i,shouldShow:s,tippyOptions:l}))}),a.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return a.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function C4(t){return a.customRef((e,n)=>({get(){return e(),t},set(r){t=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class uH extends M${constructor(e={}){return super(e),this.vueRenderers=a.reactive(new Map),this.contentComponent=null,this.reactiveState=C4(this.view.state),this.reactiveExtensionStorage=C4(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),a.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,n){super.registerPlugin(e,n),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const dH=a.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=a.ref(),n=a.getCurrentInstance();return a.watchEffect(()=>{const r=t.editor;r&&r.options.element&&e.value&&a.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const o=a.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,r.setOptions({element:o}),r.createNodeViews()})}),a.onBeforeUnmount(()=>{const r=t.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const n=a.h(a.Teleport,{to:e.teleportElement,key:e.id},a.h(e.component,{ref:e.id,...e.props}));t.push(n)}),a.h("div",{ref:e=>{this.rootEl=e}},...t)}});a.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const n=a.ref(null);return a.onMounted(()=>{const{pluginKey:r,editor:o,tippyOptions:i,shouldShow:s}=t;o.registerPlugin(v4({pluginKey:r,editor:o,element:n.value,tippyOptions:i,shouldShow:s}))}),a.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return a.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}}),a.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return a.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),a.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return a.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t))}});const fH=(t={})=>{const e=a.shallowRef();return a.onMounted(()=>{e.value=new uH(t)}),a.onBeforeUnmount(()=>{var n;(n=e.value)===null||n===void 0||n.destroy()}),e},pH=/^\s*>\s$/,hH=Pt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[ia({find:pH,type:this.type})]}}),mH=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,gH=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,yH=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,bH=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,wH=xt.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ci({find:mH,type:this.type}),ci({find:yH,type:this.type})]},addPasteRules(){return[fo({find:gH,type:this.type}),fo({find:bH,type:this.type})]}}),vH=Pt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ke(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),S4=xt.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=oa(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),k4=/^\s*([-+*])\s$/,CH=Pt.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(vH.name,this.editor.getAttributes(S4.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=ia({find:k4,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=ia({find:k4,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(S4.name),editor:this.editor})),[t]}}),SH=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,kH=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,OH=xt.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[ci({find:SH,type:this.type})]},addPasteRules(){return[fo({find:kH,type:this.type})]}}),EH=/^```([a-z]+)?[\s\n]$/,TH=/^~~~([a-z]+)?[\s\n]$/,MH=Pt.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,i=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(n)).map(s=>s.replace(n,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",ke(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;const i=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
351
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce(function(c,u){var d=u&&lH(u,r);return d&&c.push(d),c},[]);return ha(t)?l[0]:l}gi.defaultProps=At,gi.setDefaultProps=oH,gi.currentInput=bn,Object.assign({},L7,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),gi.setDefaultProps({render:b4});class cH{constructor({editor:e,element:n,view:r,tippyOptions:o={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:l,state:c,from:u,to:d})=>{const{doc:f,selection:p}=c,{empty:h}=p,m=!f.textBetween(u,d).length&&bd(c.selection),y=this.element.contains(document.activeElement);return!(!(l.hasFocus()||y)||h||m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var c;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(l.relatedTarget))||this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,c)=>{const u=!(c!=null&&c.selection.eq(l.state.selection)),d=!(c!=null&&c.doc.eq(l.state.doc));!u&&!d||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,u,d,c)},this.updateDelay))},this.updateHandler=(l,c,u,d)=>{var f,p,h;const{state:m,composing:y}=l,{selection:g}=m;if(y||!c&&!u)return;this.createTooltip();const{ranges:w}=g,C=Math.min(...w.map(S=>S.$from.pos)),v=Math.max(...w.map(S=>S.$to.pos));if(!((f=this.shouldShow)===null||f===void 0?void 0:f.call(this,{editor:this.editor,view:l,state:m,oldState:d,from:C,to:v}))){this.hide();return}(p=this.tippy)===null||p===void 0||p.setProps({getReferenceClientRect:((h=this.tippyOptions)===null||h===void 0?void 0:h.getReferenceClientRect)||(()=>{if(c$(m.selection)){let S=l.nodeDOM(C);const k=S.dataset.nodeViewWrapper?S:S.querySelector("[data-node-view-wrapper]");if(k&&(S=k.firstChild),S)return S.getBoundingClientRect()}return A7(l,C,v)})}),this.show()},this.editor=e,this.element=n,this.view=r,this.updateDelay=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=gi(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,n){const{state:r}=e,o=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,n);return}const i=!(n!=null&&n.selection.eq(e.state.selection)),s=!(n!=null&&n.doc.eq(e.state.doc));this.updateHandler(e,i,s,n)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const w4=t=>new Ke({key:typeof t.pluginKey=="string"?new Mt(t.pluginKey):t.pluginKey,view:e=>new cH({view:e,...t})});nt.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[w4({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class uH{constructor({editor:e,element:n,view:r,tippyOptions:o={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:l})=>{const{selection:c}=l,{$anchor:u,empty:d}=c,f=u.depth===1,p=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!s.hasFocus()||!d||!f||!p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var l;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=n,this.view=r,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=gi(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,n){var r,o,i;const{state:s}=e,{doc:l,selection:c}=s,{from:u,to:d}=c;if(n&&n.doc.eq(l)&&n.selection.eq(c))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:s,oldState:n}))){this.hide();return}(o=this.tippy)===null||o===void 0||o.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>A7(e,u,d))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const v4=t=>new Ke({key:typeof t.pluginKey=="string"?new Mt(t.pluginKey):t.pluginKey,view:e=>new uH({view:e,...t})});nt.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[v4({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),a.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const n=a.ref(null);return a.onMounted(()=>{const{updateDelay:r,editor:o,pluginKey:i,shouldShow:s,tippyOptions:l}=t;o.registerPlugin(w4({updateDelay:r,editor:o,element:n.value,pluginKey:i,shouldShow:s,tippyOptions:l}))}),a.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return a.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function C4(t){return a.customRef((e,n)=>({get(){return e(),t},set(r){t=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class dH extends x${constructor(e={}){return super(e),this.vueRenderers=a.reactive(new Map),this.contentComponent=null,this.reactiveState=C4(this.view.state),this.reactiveExtensionStorage=C4(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),a.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,n){super.registerPlugin(e,n),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const fH=a.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=a.ref(),n=a.getCurrentInstance();return a.watchEffect(()=>{const r=t.editor;r&&r.options.element&&e.value&&a.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const o=a.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,r.setOptions({element:o}),r.createNodeViews()})}),a.onBeforeUnmount(()=>{const r=t.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const n=a.h(a.Teleport,{to:e.teleportElement,key:e.id},a.h(e.component,{ref:e.id,...e.props}));t.push(n)}),a.h("div",{ref:e=>{this.rootEl=e}},...t)}});a.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const n=a.ref(null);return a.onMounted(()=>{const{pluginKey:r,editor:o,tippyOptions:i,shouldShow:s}=t;o.registerPlugin(v4({pluginKey:r,editor:o,element:n.value,tippyOptions:i,shouldShow:s}))}),a.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return a.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}}),a.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return a.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),a.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return a.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t))}});const pH=(t={})=>{const e=a.shallowRef();return a.onMounted(()=>{e.value=new dH(t)}),a.onBeforeUnmount(()=>{var n;(n=e.value)===null||n===void 0||n.destroy()}),e},hH=/^\s*>\s$/,mH=Pt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[ia({find:hH,type:this.type})]}}),gH=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,yH=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,bH=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,wH=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,vH=xt.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ci({find:gH,type:this.type}),ci({find:bH,type:this.type})]},addPasteRules(){return[fo({find:yH,type:this.type}),fo({find:wH,type:this.type})]}}),CH=Pt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ke(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),S4=xt.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=oa(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),k4=/^\s*([-+*])\s$/,SH=Pt.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(CH.name,this.editor.getAttributes(S4.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=ia({find:k4,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=ia({find:k4,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(S4.name),editor:this.editor})),[t]}}),kH=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,OH=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,EH=xt.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[ci({find:kH,type:this.type})]},addPasteRules(){return[fo({find:OH,type:this.type})]}}),TH=/^```([a-z]+)?[\s\n]$/,MH=/^~~~([a-z]+)?[\s\n]$/,xH=Pt.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,i=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(n)).map(s=>s.replace(n,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",ke(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;const i=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
352
352
 
353
- `);return!i||!s?!1:t.chain().command(({tr:l})=>(l.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type||!(o.parentOffset===o.parent.nodeSize-2))return!1;const l=o.after();return l===void 0||r.nodeAt(l)?!1:t.commands.exitCode()}}},addInputRules(){return[Td({find:EH,type:this.type,getAttributes:t=>({language:t[1]})}),Td({find:TH,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new Ke({key:new Mt("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=o==null?void 0:o.mode;if(!n||!i)return!1;const{tr:s}=t.state;return s.replaceSelectionWith(this.type.create({language:i})),s.setSelection(G.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(n.replace(/\r\n?/g,`
354
- `)),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),xH=Pt.create({name:"doc",topNode:!0,content:"block+"});function PH(t={}){return new Ke({view(e){return new DH(e,t)}})}class DH{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=s=>{this[o](s)};return e.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let l=e.nodeBefore,c=e.nodeAfter;if(l||c){let u=this.editorView.nodeDOM(this.cursorPos-(l?l.nodeSize:0));if(u){let d=u.getBoundingClientRect(),f=l?d.bottom:d.top;l&&c&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:d.left,right:d.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let l=this.editorView.coordsAtPos(this.cursorPos);r={left:l.left-this.width/2,right:l.left+this.width/2,top:l.top,bottom:l.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,s;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,s=-pageYOffset;else{let l=o.getBoundingClientRect();i=l.left-o.scrollLeft,s=l.top-o.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-s+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=V3(this.editorView.state.doc,s,this.editorView.dragging.slice);l!=null&&(s=l)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const AH=nt.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[PH(this.options)]}});class Me extends J{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return Me.valid(r)?new Me(r):J.near(r)}content(){return V.empty}eq(e){return e instanceof Me&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Me(e.resolve(n.pos))}getBookmark(){return new Zd(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!IH(e)||!NH(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&Me.valid(e))return e;let o=e.pos,i=null;for(let s=e.depth;;s--){let l=e.node(s);if(n>0?e.indexAfter(s)<l.childCount:e.index(s)>0){i=l.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;o+=n;let c=e.doc.resolve(o);if(Me.valid(c))return c}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!Z.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=s,o+=n;let l=e.doc.resolve(o);if(Me.valid(l))return l}return null}}}Me.prototype.visible=!1,Me.findFrom=Me.findGapCursorFrom,J.jsonID("gapcursor",Me);class Zd{constructor(e){this.pos=e}map(e){return new Zd(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Me.valid(n)?new Me(n):J.near(n)}}function IH(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function NH(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function BH(){return new Ke({props:{decorations:$H,createSelectionBetween(t,e,n){return e.pos==n.pos&&Me.valid(n)?new Me(n):null},handleClick:LH,handleKeyDown:RH,handleDOMEvents:{beforeinput:VH}}})}const RH=c7({ArrowLeft:u0("horiz",-1),ArrowRight:u0("horiz",1),ArrowUp:u0("vert",-1),ArrowDown:u0("vert",1)});function u0(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,i){let s=r.selection,l=e>0?s.$to:s.$from,c=s.empty;if(s instanceof G){if(!i.endOfTextblock(n)||l.depth==0)return!1;c=!1,l=r.doc.resolve(e>0?l.after():l.before())}let u=Me.findGapCursorFrom(l,e,c);return u?(o&&o(r.tr.setSelection(new Me(u))),!0):!1}}function LH(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!Me.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Z.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Me(r))),!0)}function VH(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Me))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let o=A.empty;for(let s=r.length-1;s>=0;s--)o=A.from(r[s].createAndFill(null,o));let i=t.state.tr.replace(n.pos,n.pos,new V(o,0,0));return i.setSelection(G.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function $H(t){if(!(t.selection instanceof Me))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Le.create(t.doc,[zt.widget(t.selection.head,e,{key:"gapcursor"})])}const FH=nt.create({name:"gapCursor",addProseMirrorPlugins(){return[BH()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Q(H(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),HH=Pt.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",ke(this.options.HTMLAttributes,t)]},renderText(){return`
355
- `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:o,storedMarks:i}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,c=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:d})=>{if(d&&c&&s){const f=c.filter(p=>l.includes(p.type.name));u.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),_H=Pt.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,ke(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>Td({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var d0=200,_e=function(){};_e.prototype.append=function(e){return e.length?(e=_e.from(e),!this.length&&e||e.length<d0&&this.leafAppend(e)||this.length<d0&&e.leafPrepend(this)||this.appendInner(e)):this},_e.prototype.prepend=function(e){return e.length?_e.from(e).append(this):this},_e.prototype.appendInner=function(e){return new zH(this,e)},_e.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?_e.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},_e.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},_e.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)},_e.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,s){return o.push(e(i,s))},n,r),o},_e.from=function(e){return e instanceof _e?e:e&&e.length?new O4(e):_e.empty};var O4=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new e(this.values.slice(o,i))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,i,s,l){for(var c=i;c<s;c++)if(o(this.values[c],l+c)===!1)return!1},e.prototype.forEachInvertedInner=function(o,i,s,l){for(var c=i-1;c>=s;c--)if(o(this.values[c],l+c)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=d0)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=d0)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(_e);_e.empty=new O4([]);var zH=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,o,i,s){var l=this.left.length;if(o<l&&this.left.forEachInner(r,o,Math.min(i,l),s)===!1||i>l&&this.right.forEachInner(r,Math.max(o-l,0),Math.min(this.length,i)-l,s+l)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,s){var l=this.left.length;if(o>l&&this.right.forEachInvertedInner(r,o-l,Math.max(i,l)-l,s+l)===!1||i<l&&this.left.forEachInvertedInner(r,Math.min(o,l),i,s)===!1)return!1},e.prototype.sliceInner=function(r,o){if(r==0&&o==this.length)return this;var i=this.left.length;return o<=i?this.left.slice(r,o):r>=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(_e);const jH=500;class nn{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let s=e.tr,l,c,u=[],d=[];return this.items.forEach((f,p)=>{if(!f.step){o||(o=this.remapping(r,p+1),i=o.maps.length),i--,d.push(f);return}if(o){d.push(new wn(f.map));let h=f.step.map(o.slice(i)),m;h&&s.maybeStep(h).doc&&(m=s.mapping.maps[s.mapping.maps.length-1],u.push(new wn(m,void 0,void 0,u.length+d.length))),i--,m&&o.appendMap(m,i)}else s.maybeStep(f.step);if(f.selection)return l=o?f.selection.map(o.slice(i)):f.selection,c=new nn(this.items.slice(0,r).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:s,selection:l}}addTransform(e,n,r,o){let i=[],s=this.eventCount,l=this.items,c=!o&&l.length?l.get(l.length-1):null;for(let d=0;d<e.steps.length;d++){let f=e.steps[d].invert(e.docs[d]),p=new wn(e.mapping.maps[d],f,n),h;(h=c&&c.merge(p))&&(p=h,d?i.pop():l=l.slice(0,l.length-1)),i.push(p),n&&(s++,n=void 0),o||(c=p)}let u=s-r.depth;return u>WH&&(l=ZH(l,u),s-=u),new nn(l.append(i),s)}remapping(e,n){let r=new Go;return this.items.forEach((o,i)=>{let s=o.mirrorOffset!=null&&i-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new nn(this.items.append(e.map(n=>new wn(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,l=this.eventCount;this.items.forEach(p=>{p.selection&&l--},o);let c=n;this.items.forEach(p=>{let h=i.getMirror(--c);if(h==null)return;s=Math.min(s,h);let m=i.maps[h];if(p.step){let y=e.steps[h].invert(e.docs[h]),g=p.selection&&p.selection.map(i.slice(c+1,h));g&&l++,r.push(new wn(m,y,g))}else r.push(new wn(m))},o);let u=[];for(let p=n;p<s;p++)u.push(new wn(i.maps[p]));let d=this.items.slice(0,o).append(u).append(r),f=new nn(d,l);return f.emptyItemCount()>jH&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,o=[],i=0;return this.items.forEach((s,l)=>{if(l>=e)o.push(s),s.selection&&i++;else if(s.step){let c=s.step.map(n.slice(r)),u=c&&c.getMap();if(r--,u&&n.appendMap(u,r),c){let d=s.selection&&s.selection.map(n.slice(r));d&&i++;let f=new wn(u.invert(),c,d),p,h=o.length-1;(p=o.length&&o[h].merge(f))?o[h]=p:o.push(f)}}else s.map&&r--},this.items.length,0),new nn(_e.from(o.reverse()),i)}}nn.empty=new nn(_e.empty,0);function ZH(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class wn{constructor(e,n,r,o){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new wn(n.getMap().invert(),n,this.selection)}}}class Er{constructor(e,n,r,o,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const WH=20;function UH(t,e,n,r){let o=n.getMeta(Tr),i;if(o)return o.historyState;n.getMeta(GH)&&(t=new Er(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(Tr))return s.getMeta(Tr).redo?new Er(t.done.addTransform(n,void 0,r,f0(e)),t.undone,E4(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new Er(t.done,t.undone.addTransform(n,void 0,r,f0(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),c=t.prevTime==0||!s&&t.prevComposition!=l&&(t.prevTime<(n.time||0)-r.newGroupDelay||!KH(n,t.prevRanges)),u=s?Wd(t.prevRanges,n.mapping):E4(n.mapping.maps[n.steps.length-1]);return new Er(t.done.addTransform(n,c?e.selection.getBookmark():void 0,r,f0(e)),nn.empty,u,n.time,l??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Er(t.done.rebased(n,i),t.undone.rebased(n,i),Wd(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Er(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Wd(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function KH(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&o>=e[i]&&(n=!0)}),n}function E4(t){let e=[];return t.forEach((n,r,o,i)=>e.push(o,i)),e}function Wd(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function T4(t,e,n,r){let o=f0(e),i=Tr.get(e).spec.config,s=(r?t.undone:t.done).popEvent(e,o);if(!s)return;let l=s.selection.resolve(s.transform.doc),c=(r?t.done:t.undone).addTransform(s.transform,e.selection.getBookmark(),i,o),u=new Er(r?c:s.remaining,r?s.remaining:c,null,0,-1);n(s.transform.setSelection(l).setMeta(Tr,{redo:r,historyState:u}).scrollIntoView())}let Ud=!1,M4=null;function f0(t){let e=t.plugins;if(M4!=e){Ud=!1,M4=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Ud=!0;break}}return Ud}const Tr=new Mt("history"),GH=new Mt("closeHistory");function qH(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new Ke({key:Tr,state:{init(){return new Er(nn.empty,nn.empty,null,0,-1)},apply(e,n,r){return UH(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,o=r=="historyUndo"?x4:r=="historyRedo"?P4:null;return o?(n.preventDefault(),o(e.state,e.dispatch)):!1}}}})}const x4=(t,e)=>{let n=Tr.getState(t);return!n||n.done.eventCount==0?!1:(e&&T4(n,t,e,!1),!0)},P4=(t,e)=>{let n=Tr.getState(t);return!n||n.undone.eventCount==0?!1:(e&&T4(n,t,e,!0),!0)},YH=nt.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>x4(t,e),redo:()=>({state:t,dispatch:e})=>P4(t,e)}},addProseMirrorPlugins(){return[qH(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),JH=Pt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",ke(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{$to:n}=e.selection,r=t();return n.parentOffset===0?r.insertContentAt(Math.max(n.pos-2,0),{type:this.name}):r.insertContent({type:this.name}),r.command(({tr:o,dispatch:i})=>{var s;if(i){const{$to:l}=o.selection,c=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?o.setSelection(G.create(o.doc,l.pos+1)):l.nodeAfter.isBlock?o.setSelection(Z.create(o.doc,l.pos)):o.setSelection(G.create(o.doc,l.pos));else{const u=(s=l.parent.type.contentMatch.defaultType)===null||s===void 0?void 0:s.create();u&&(o.insert(c,u),o.setSelection(G.create(o.doc,c+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[x$({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),QH=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,XH=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,e_=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,t_=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,n_=xt.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ci({find:QH,type:this.type}),ci({find:e_,type:this.type})]},addPasteRules(){return[fo({find:XH,type:this.type}),fo({find:t_,type:this.type})]}}),r_=Pt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ke(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),o_=Pt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ke(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),D4=xt.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=oa(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),A4=/^(\d+)\.\s$/,i_=Pt.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",ke(this.options.HTMLAttributes,n),0]:["ol",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(o_.name,this.editor.getAttributes(D4.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=ia({find:A4,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=ia({find:A4,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(D4.name)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),s_=Pt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),a_=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,l_=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,c_=xt.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){const t={};return vd()?t["Mod-Shift-s"]=()=>this.editor.commands.toggleStrike():t["Ctrl-Shift-s"]=()=>this.editor.commands.toggleStrike(),t},addInputRules(){return[ci({find:a_,type:this.type})]},addPasteRules(){return[fo({find:l_,type:this.type})]}}),u_=Pt.create({name:"text",group:"inline"}),d_=nt.create({name:"starterKit",addExtensions(){var t,e,n,r,o,i,s,l,c,u,d,f,p,h,m,y,g,b;const w=[];return this.options.blockquote!==!1&&w.push(hH.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bold!==!1&&w.push(wH.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.bulletList!==!1&&w.push(CH.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&w.push(OH.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&w.push(MH.configure((o=this.options)===null||o===void 0?void 0:o.codeBlock)),this.options.document!==!1&&w.push(xH.configure((i=this.options)===null||i===void 0?void 0:i.document)),this.options.dropcursor!==!1&&w.push(AH.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&w.push(FH.configure((l=this.options)===null||l===void 0?void 0:l.gapcursor)),this.options.hardBreak!==!1&&w.push(HH.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&w.push(_H.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&w.push(YH.configure((d=this.options)===null||d===void 0?void 0:d.history)),this.options.horizontalRule!==!1&&w.push(JH.configure((f=this.options)===null||f===void 0?void 0:f.horizontalRule)),this.options.italic!==!1&&w.push(n_.configure((p=this.options)===null||p===void 0?void 0:p.italic)),this.options.listItem!==!1&&w.push(r_.configure((h=this.options)===null||h===void 0?void 0:h.listItem)),this.options.orderedList!==!1&&w.push(i_.configure((m=this.options)===null||m===void 0?void 0:m.orderedList)),this.options.paragraph!==!1&&w.push(s_.configure((y=this.options)===null||y===void 0?void 0:y.paragraph)),this.options.strike!==!1&&w.push(c_.configure((g=this.options)===null||g===void 0?void 0:g.strike)),this.options.text!==!1&&w.push(u_.configure((b=this.options)===null||b===void 0?void 0:b.text)),w}}),f_=xt.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),p_=xt.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=oa(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),h_=nt.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;return(e=t.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),m_="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mƶgensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",g_="ελ1Ļ…2бг1ел3Гети4ŠµŃŽ2католик6ом3мкГ2он1сква6онлайн5рг3рус2ф2сайт3рб3ŃƒŠŗŃ€3қаз3Õ°Õ”Õµ3×™×©×Ø××œ5קום3ابوظبي5Ų±Ų§Ł…ŁƒŁˆ5لاردن4ŲØŲ­Ų±ŁŠŁ†5Ų¬Ų²Ų§Ų¦Ų±5سعودية6Ų¹Ł„ŁŠŲ§Ł†5Ł…ŲŗŲ±ŲØ5Ł…Ų§Ų±Ų§ŲŖ5ŪŒŲ±Ų§Ł†5ŲØŲ§Ų±ŲŖ2Ų²Ų§Ų±4يتك3ھارت5ŲŖŁˆŁ†Ų³4Ų³ŁˆŲÆŲ§Ł†3رية5ؓبكة4Ų¹Ų±Ų§Ł‚2ŲØ2مان4ŁŁ„Ų³Ų·ŁŠŁ†6قطر3ŁƒŲ§Ų«ŁˆŁ„ŁŠŁƒ6ŁˆŁ…3Ł…ŲµŲ±2Ł„ŁŠŲ³ŁŠŲ§5ŁˆŲ±ŁŠŲŖŲ§Ł†ŁŠŲ§7قع4همراه5پاکستان7Ś€Ų§Ų±ŲŖ4ą¤•ą„‰ą¤®3ą¤Øą„‡ą¤Ÿ3भारत0ą¤®ą„3ą„‹ą¤¤5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4ą®‡ą®ØąÆą®¤ą®æą®Æą®¾6ą®²ą®™ąÆą®•ąÆˆ6ą®šą®æą®™ąÆą®•ą®ŖąÆą®ŖąÆ‚ą®°ąÆ11ą°­ą°¾ą°°ą°¤ą±5ಭಾರತ4ą“­ą“¾ą“°ą“¤ą“‚5ą¶½ą¶‚ą¶šą·4ąø„ąø­ąø”3ไทย3ຄາວ3įƒ’įƒ”2みんな3ć‚¢ćƒžć‚¾ćƒ³4ć‚Æćƒ©ć‚¦ćƒ‰4ć‚°ćƒ¼ć‚°ćƒ«4ć‚³ćƒ 2ć‚¹ćƒˆć‚¢3ć‚»ćƒ¼ćƒ«3ćƒ•ć‚”ćƒƒć‚·ćƒ§ćƒ³6ćƒć‚¤ćƒ³ćƒˆ4äø–ē•Œ2äø­äæ”1国1國1文网3äŗšé©¬é€Š3企业2佛山2俔息2偄康2八卦2å…¬åø1ē›Š2å°ę¹¾1灣2商城1åŗ—1ꠇ2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2ę…ˆå–„2ęˆ‘ēˆ±ä½ 3ę‰‹ęœŗ2ꋛ聘2ę”æåŠ”1府2ę–°åŠ å”2闻2ę—¶å°š2ę›øē±2ęœŗęž„2귔马锔3ęøøęˆ2澳門2ē‚¹ēœ‹2移动2ē»„ē»‡ęœŗęž„4ē½‘å€1åŗ—1ē«™1络2联通2谷歌2蓭物2é€šč²©2集团2é›»čØŠē›ˆē§‘4é£žåˆ©ęµ¦3食品2餐厅2é¦™ę ¼é‡Œę‹‰3ęøÆ2ė‹·ė„·1컓2삼성2ķ•œźµ­2",yi=(t,e)=>{for(const n in e)t[n]=e[n];return t},Kd="numeric",Gd="ascii",qd="alpha",p0="asciinumeric",h0="alphanumeric",Yd="domain",I4="emoji",y_="scheme",b_="slashscheme",N4="whitespace";function w_(t,e){return t in e||(e[t]=[]),e[t]}function go(t,e,n){e[Kd]&&(e[p0]=!0,e[h0]=!0),e[Gd]&&(e[p0]=!0,e[qd]=!0),e[p0]&&(e[h0]=!0),e[qd]&&(e[h0]=!0),e[h0]&&(e[Yd]=!0),e[I4]&&(e[Yd]=!0);for(const r in e){const o=w_(r,n);o.indexOf(t)<0&&o.push(t)}}function v_(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function St(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}St.groups={},St.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(t))return i}return e.jd},has(t,e){return e===void 0&&(e=!1),e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let o=0;o<t.length;o++)this.tt(t[o],e,n,r)},tr(t,e,n,r){r=r||St.groups;let o;return e&&e.j?o=e:(o=new St(e),n&&r&&go(e,n,r)),this.jr.push([t,o]),o},ts(t,e,n,r){let o=this;const i=t.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(t[s]);return o.tt(t[i-1],e,n,r)},tt(t,e,n,r){r=r||St.groups;const o=this;if(e&&e.j)return o.j[t]=e,e;const i=e;let s,l=o.go(t);if(l?(s=new St,yi(s.j,l.j),s.jr.push.apply(s.jr,l.jr),s.jd=l.jd,s.t=l.t):s=new St,i){if(r)if(s.t&&typeof s.t=="string"){const c=yi(v_(s.t,r),n);go(i,c,r)}else n&&go(i,n,r);s.t=i}return o.j[t]=s,s}};const X=(t,e,n,r,o)=>t.ta(e,n,r,o),Ut=(t,e,n,r,o)=>t.tr(e,n,r,o),B4=(t,e,n,r,o)=>t.ts(e,n,r,o),R=(t,e,n,r,o)=>t.tt(e,n,r,o),zn="WORD",Jd="UWORD",ga="LOCALHOST",Qd="TLD",Xd="UTLD",m0="SCHEME",bi="SLASH_SCHEME",ef="NUM",R4="WS",tf="NL",ya="OPENBRACE",ba="CLOSEBRACE",g0="OPENBRACKET",y0="CLOSEBRACKET",b0="OPENPAREN",w0="CLOSEPAREN",v0="OPENANGLEBRACKET",C0="CLOSEANGLEBRACKET",S0="FULLWIDTHLEFTPAREN",k0="FULLWIDTHRIGHTPAREN",O0="LEFTCORNERBRACKET",E0="RIGHTCORNERBRACKET",T0="LEFTWHITECORNERBRACKET",M0="RIGHTWHITECORNERBRACKET",x0="FULLWIDTHLESSTHAN",P0="FULLWIDTHGREATERTHAN",D0="AMPERSAND",A0="APOSTROPHE",I0="ASTERISK",Mr="AT",N0="BACKSLASH",B0="BACKTICK",R0="CARET",xr="COLON",nf="COMMA",L0="DOLLAR",vn="DOT",V0="EQUALS",rf="EXCLAMATION",Cn="HYPHEN",$0="PERCENT",F0="PIPE",H0="PLUS",_0="POUND",z0="QUERY",of="QUOTE",sf="SEMI",Sn="SLASH",wa="TILDE",j0="UNDERSCORE",L4="EMOJI",Z0="SYM";var V4=Object.freeze({__proto__:null,WORD:zn,UWORD:Jd,LOCALHOST:ga,TLD:Qd,UTLD:Xd,SCHEME:m0,SLASH_SCHEME:bi,NUM:ef,WS:R4,NL:tf,OPENBRACE:ya,CLOSEBRACE:ba,OPENBRACKET:g0,CLOSEBRACKET:y0,OPENPAREN:b0,CLOSEPAREN:w0,OPENANGLEBRACKET:v0,CLOSEANGLEBRACKET:C0,FULLWIDTHLEFTPAREN:S0,FULLWIDTHRIGHTPAREN:k0,LEFTCORNERBRACKET:O0,RIGHTCORNERBRACKET:E0,LEFTWHITECORNERBRACKET:T0,RIGHTWHITECORNERBRACKET:M0,FULLWIDTHLESSTHAN:x0,FULLWIDTHGREATERTHAN:P0,AMPERSAND:D0,APOSTROPHE:A0,ASTERISK:I0,AT:Mr,BACKSLASH:N0,BACKTICK:B0,CARET:R0,COLON:xr,COMMA:nf,DOLLAR:L0,DOT:vn,EQUALS:V0,EXCLAMATION:rf,HYPHEN:Cn,PERCENT:$0,PIPE:F0,PLUS:H0,POUND:_0,QUERY:z0,QUOTE:of,SEMI:sf,SLASH:Sn,TILDE:wa,UNDERSCORE:j0,EMOJI:L4,SYM:Z0});const wi=/[a-z]/,af=new RegExp("\\p{L}","u"),lf=new RegExp("\\p{Emoji}","u"),cf=/\d/,$4=/\s/,F4=`
356
- `,C_="ļø",S_="ā€";let W0=null,U0=null;function k_(t){t===void 0&&(t=[]);const e={};St.groups=e;const n=new St;W0==null&&(W0=H4(m_)),U0==null&&(U0=H4(g_)),R(n,"'",A0),R(n,"{",ya),R(n,"}",ba),R(n,"[",g0),R(n,"]",y0),R(n,"(",b0),R(n,")",w0),R(n,"<",v0),R(n,">",C0),R(n,"(",S0),R(n,")",k0),R(n,"怌",O0),R(n,"怍",E0),R(n,"怎",T0),R(n,"怏",M0),R(n,"<",x0),R(n,"ļ¼ž",P0),R(n,"&",D0),R(n,"*",I0),R(n,"@",Mr),R(n,"`",B0),R(n,"^",R0),R(n,":",xr),R(n,",",nf),R(n,"$",L0),R(n,".",vn),R(n,"=",V0),R(n,"!",rf),R(n,"-",Cn),R(n,"%",$0),R(n,"|",F0),R(n,"+",H0),R(n,"#",_0),R(n,"?",z0),R(n,'"',of),R(n,"/",Sn),R(n,";",sf),R(n,"~",wa),R(n,"_",j0),R(n,"\\",N0);const r=Ut(n,cf,ef,{[Kd]:!0});Ut(r,cf,r);const o=Ut(n,wi,zn,{[Gd]:!0});Ut(o,wi,o);const i=Ut(n,af,Jd,{[qd]:!0});Ut(i,wi),Ut(i,af,i);const s=Ut(n,$4,R4,{[N4]:!0});R(n,F4,tf,{[N4]:!0}),R(s,F4),Ut(s,$4,s);const l=Ut(n,lf,L4,{[I4]:!0});Ut(l,lf,l),R(l,C_,l);const c=R(l,S_);Ut(c,lf,l);const u=[[wi,o]],d=[[wi,null],[af,i]];for(let f=0;f<W0.length;f++)Pr(n,W0[f],Qd,zn,u);for(let f=0;f<U0.length;f++)Pr(n,U0[f],Xd,Jd,d);go(Qd,{tld:!0,ascii:!0},e),go(Xd,{utld:!0,alpha:!0},e),Pr(n,"file",m0,zn,u),Pr(n,"mailto",m0,zn,u),Pr(n,"http",bi,zn,u),Pr(n,"https",bi,zn,u),Pr(n,"ftp",bi,zn,u),Pr(n,"ftps",bi,zn,u),go(m0,{scheme:!0,ascii:!0},e),go(bi,{slashscheme:!0,ascii:!0},e),t=t.sort((f,p)=>f[0]>p[0]?1:-1);for(let f=0;f<t.length;f++){const p=t[f][0],m=t[f][1]?{[y_]:!0}:{[b_]:!0};p.indexOf("-")>=0?m[Yd]=!0:wi.test(p)?cf.test(p)?m[p0]=!0:m[Gd]=!0:m[Kd]=!0,B4(n,p,p,m)}return B4(n,"localhost",ga,{ascii:!0}),n.jd=new St(Z0),{start:n,tokens:yi({groups:e},V4)}}function O_(t,e){const n=E_(e.replace(/[A-Z]/g,l=>l.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let l=t,c=null,u=0,d=null,f=-1,p=-1;for(;s<r&&(c=l.go(n[s]));)l=c,l.accepts()?(f=0,p=0,d=l):f>=0&&(f+=n[s].length,p++),u+=n[s].length,i+=n[s].length,s++;i-=f,s-=p,u-=f,o.push({t:d.t,v:e.slice(i-u,i),s:i-u,e:i})}return o}function E_(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Pr(t,e,n,r,o){let i;const s=e.length;for(let l=0;l<s-1;l++){const c=e[l];t.j[c]?i=t.j[c]:(i=new St(r),i.jr=o.slice(),t.j[c]=i),t=i}return i=new St(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function H4(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}const va={defaultProtocol:"http",events:null,format:_4,formatHref:_4,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function uf(t,e){e===void 0&&(e=null);let n=yi({},va);t&&(n=yi(n,t instanceof uf?t.o:t));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}uf.prototype={o:va,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:va[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function _4(t){return t}function z4(t,e){this.t="token",this.v=t,this.tk=e}z4.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=va.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},l=t.get("className",n,e),c=t.get("target",n,e),u=t.get("rel",n,e),d=t.getObj("attributes",n,e),f=t.getObj("events",n,e);return s.href=r,l&&(s.class=l),c&&(s.target=c),u&&(s.rel=u),d&&yi(s,d),{tagName:o,attributes:s,content:i,eventListeners:f}}};function K0(t,e){class n extends z4{constructor(o,i){super(o,i),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const j4=K0("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Z4=K0("text"),T_=K0("nl"),G0=K0("url",{isLink:!0,toHref(t){return t===void 0&&(t=va.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==ga&&t[1].t===xr}}),Kt=t=>new St(t);function M_(t){let{groups:e}=t;const n=e.domain.concat([D0,I0,Mr,N0,B0,R0,L0,V0,Cn,ef,$0,F0,H0,_0,Sn,Z0,wa,j0]),r=[A0,xr,nf,vn,rf,z0,of,sf,v0,C0,ya,ba,y0,g0,b0,w0,S0,k0,O0,E0,T0,M0,x0,P0],o=[D0,A0,I0,N0,B0,R0,L0,V0,Cn,ya,ba,$0,F0,H0,_0,z0,Sn,Z0,wa,j0],i=Kt(),s=R(i,wa);X(s,o,s),X(s,e.domain,s);const l=Kt(),c=Kt(),u=Kt();X(i,e.domain,l),X(i,e.scheme,c),X(i,e.slashscheme,u),X(l,o,s),X(l,e.domain,l);const d=R(l,Mr);R(s,Mr,d),R(c,Mr,d),R(u,Mr,d);const f=R(s,vn);X(f,o,s),X(f,e.domain,s);const p=Kt();X(d,e.domain,p),X(p,e.domain,p);const h=R(p,vn);X(h,e.domain,p);const m=Kt(j4);X(h,e.tld,m),X(h,e.utld,m),R(d,ga,m);const y=R(p,Cn);X(y,e.domain,p),X(m,e.domain,p),R(m,vn,h),R(m,Cn,y);const g=R(m,xr);X(g,e.numeric,j4);const b=R(l,Cn),w=R(l,vn);X(b,e.domain,l),X(w,o,s),X(w,e.domain,l);const C=Kt(G0);X(w,e.tld,C),X(w,e.utld,C),X(C,e.domain,l),X(C,o,s),R(C,vn,w),R(C,Cn,b),R(C,Mr,d);const v=R(C,xr),E=Kt(G0);X(v,e.numeric,E);const S=Kt(G0),k=Kt();X(S,n,S),X(S,r,k),X(k,n,S),X(k,r,k),R(C,Sn,S),R(E,Sn,S);const T=R(c,xr),D=R(u,xr),N=R(D,Sn),B=R(N,Sn);X(c,e.domain,l),R(c,vn,w),R(c,Cn,b),X(u,e.domain,l),R(u,vn,w),R(u,Cn,b),X(T,e.domain,S),R(T,Sn,S),X(B,e.domain,S),X(B,n,S),R(B,Sn,S);const $=[[ya,ba],[g0,y0],[b0,w0],[v0,C0],[S0,k0],[O0,E0],[T0,M0],[x0,P0]];for(let j=0;j<$.length;j++){const[ee,F]=$[j],W=R(S,ee);R(k,ee,W),R(W,F,S);const te=Kt(G0);X(W,n,te);const se=Kt();X(W,r),X(te,n,te),X(te,r,se),X(se,n,te),X(se,r,se),R(te,F,S),R(se,F,S)}return R(i,ga,C),R(i,tf,T_),{start:i,tokens:V4}}function x_(t,e,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let l=t,c=null,u=null,d=0,f=null,p=-1;for(;o<r&&!(c=l.go(n[o].t));)s.push(n[o++]);for(;o<r&&(u=c||l.go(n[o].t));)c=null,l=u,l.accepts()?(p=0,f=l):p>=0&&p++,o++,d++;if(p<0)o-=d,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(df(Z4,e,s)),s=[]),o-=p,d-=p;const h=f.t,m=n.slice(o-d,o);i.push(df(h,e,m))}}return s.length>0&&i.push(df(Z4,e,s)),i}function df(t,e,n){const r=n[0].s,o=n[n.length-1].e,i=e.slice(r,o);return new t(i,n)}const P_=typeof console<"u"&&console&&console.warn||(()=>{}),D_="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Oe={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function A_(){St.groups={},Oe.scanner=null,Oe.parser=null,Oe.tokenQueue=[],Oe.pluginQueue=[],Oe.customSchemes=[],Oe.initialized=!1}function W4(t,e){if(e===void 0&&(e=!1),Oe.initialized&&P_(`linkifyjs: already initialized - will not register custom scheme "${t}" ${D_}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
353
+ `);return!i||!s?!1:t.chain().command(({tr:l})=>(l.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type||!(o.parentOffset===o.parent.nodeSize-2))return!1;const l=o.after();return l===void 0||r.nodeAt(l)?!1:t.commands.exitCode()}}},addInputRules(){return[Td({find:TH,type:this.type,getAttributes:t=>({language:t[1]})}),Td({find:MH,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new Ke({key:new Mt("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=o==null?void 0:o.mode;if(!n||!i)return!1;const{tr:s}=t.state;return s.replaceSelectionWith(this.type.create({language:i})),s.setSelection(G.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(n.replace(/\r\n?/g,`
354
+ `)),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),PH=Pt.create({name:"doc",topNode:!0,content:"block+"});function DH(t={}){return new Ke({view(e){return new AH(e,t)}})}class AH{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=s=>{this[o](s)};return e.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let l=e.nodeBefore,c=e.nodeAfter;if(l||c){let u=this.editorView.nodeDOM(this.cursorPos-(l?l.nodeSize:0));if(u){let d=u.getBoundingClientRect(),f=l?d.bottom:d.top;l&&c&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:d.left,right:d.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let l=this.editorView.coordsAtPos(this.cursorPos);r={left:l.left-this.width/2,right:l.left+this.width/2,top:l.top,bottom:l.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,s;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,s=-pageYOffset;else{let l=o.getBoundingClientRect();i=l.left-o.scrollLeft,s=l.top-o.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-s+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=V3(this.editorView.state.doc,s,this.editorView.dragging.slice);l!=null&&(s=l)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const IH=nt.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[DH(this.options)]}});class Me extends J{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return Me.valid(r)?new Me(r):J.near(r)}content(){return V.empty}eq(e){return e instanceof Me&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Me(e.resolve(n.pos))}getBookmark(){return new Zd(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!NH(e)||!BH(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&Me.valid(e))return e;let o=e.pos,i=null;for(let s=e.depth;;s--){let l=e.node(s);if(n>0?e.indexAfter(s)<l.childCount:e.index(s)>0){i=l.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;o+=n;let c=e.doc.resolve(o);if(Me.valid(c))return c}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!Z.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=s,o+=n;let l=e.doc.resolve(o);if(Me.valid(l))return l}return null}}}Me.prototype.visible=!1,Me.findFrom=Me.findGapCursorFrom,J.jsonID("gapcursor",Me);class Zd{constructor(e){this.pos=e}map(e){return new Zd(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Me.valid(n)?new Me(n):J.near(n)}}function NH(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function BH(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function RH(){return new Ke({props:{decorations:FH,createSelectionBetween(t,e,n){return e.pos==n.pos&&Me.valid(n)?new Me(n):null},handleClick:VH,handleKeyDown:LH,handleDOMEvents:{beforeinput:$H}}})}const LH=c7({ArrowLeft:u0("horiz",-1),ArrowRight:u0("horiz",1),ArrowUp:u0("vert",-1),ArrowDown:u0("vert",1)});function u0(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,i){let s=r.selection,l=e>0?s.$to:s.$from,c=s.empty;if(s instanceof G){if(!i.endOfTextblock(n)||l.depth==0)return!1;c=!1,l=r.doc.resolve(e>0?l.after():l.before())}let u=Me.findGapCursorFrom(l,e,c);return u?(o&&o(r.tr.setSelection(new Me(u))),!0):!1}}function VH(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!Me.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Z.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Me(r))),!0)}function $H(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Me))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let o=A.empty;for(let s=r.length-1;s>=0;s--)o=A.from(r[s].createAndFill(null,o));let i=t.state.tr.replace(n.pos,n.pos,new V(o,0,0));return i.setSelection(G.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function FH(t){if(!(t.selection instanceof Me))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Le.create(t.doc,[zt.widget(t.selection.head,e,{key:"gapcursor"})])}const HH=nt.create({name:"gapCursor",addProseMirrorPlugins(){return[RH()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Q(H(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),_H=Pt.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",ke(this.options.HTMLAttributes,t)]},renderText(){return`
355
+ `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:o,storedMarks:i}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,c=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:d})=>{if(d&&c&&s){const f=c.filter(p=>l.includes(p.type.name));u.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),zH=Pt.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,ke(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>Td({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var d0=200,_e=function(){};_e.prototype.append=function(e){return e.length?(e=_e.from(e),!this.length&&e||e.length<d0&&this.leafAppend(e)||this.length<d0&&e.leafPrepend(this)||this.appendInner(e)):this},_e.prototype.prepend=function(e){return e.length?_e.from(e).append(this):this},_e.prototype.appendInner=function(e){return new jH(this,e)},_e.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?_e.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},_e.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},_e.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)},_e.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,s){return o.push(e(i,s))},n,r),o},_e.from=function(e){return e instanceof _e?e:e&&e.length?new O4(e):_e.empty};var O4=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new e(this.values.slice(o,i))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,i,s,l){for(var c=i;c<s;c++)if(o(this.values[c],l+c)===!1)return!1},e.prototype.forEachInvertedInner=function(o,i,s,l){for(var c=i-1;c>=s;c--)if(o(this.values[c],l+c)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=d0)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=d0)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(_e);_e.empty=new O4([]);var jH=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,o,i,s){var l=this.left.length;if(o<l&&this.left.forEachInner(r,o,Math.min(i,l),s)===!1||i>l&&this.right.forEachInner(r,Math.max(o-l,0),Math.min(this.length,i)-l,s+l)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,s){var l=this.left.length;if(o>l&&this.right.forEachInvertedInner(r,o-l,Math.max(i,l)-l,s+l)===!1||i<l&&this.left.forEachInvertedInner(r,Math.min(o,l),i,s)===!1)return!1},e.prototype.sliceInner=function(r,o){if(r==0&&o==this.length)return this;var i=this.left.length;return o<=i?this.left.slice(r,o):r>=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(_e);const ZH=500;class nn{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let s=e.tr,l,c,u=[],d=[];return this.items.forEach((f,p)=>{if(!f.step){o||(o=this.remapping(r,p+1),i=o.maps.length),i--,d.push(f);return}if(o){d.push(new wn(f.map));let h=f.step.map(o.slice(i)),m;h&&s.maybeStep(h).doc&&(m=s.mapping.maps[s.mapping.maps.length-1],u.push(new wn(m,void 0,void 0,u.length+d.length))),i--,m&&o.appendMap(m,i)}else s.maybeStep(f.step);if(f.selection)return l=o?f.selection.map(o.slice(i)):f.selection,c=new nn(this.items.slice(0,r).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:s,selection:l}}addTransform(e,n,r,o){let i=[],s=this.eventCount,l=this.items,c=!o&&l.length?l.get(l.length-1):null;for(let d=0;d<e.steps.length;d++){let f=e.steps[d].invert(e.docs[d]),p=new wn(e.mapping.maps[d],f,n),h;(h=c&&c.merge(p))&&(p=h,d?i.pop():l=l.slice(0,l.length-1)),i.push(p),n&&(s++,n=void 0),o||(c=p)}let u=s-r.depth;return u>UH&&(l=WH(l,u),s-=u),new nn(l.append(i),s)}remapping(e,n){let r=new Go;return this.items.forEach((o,i)=>{let s=o.mirrorOffset!=null&&i-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new nn(this.items.append(e.map(n=>new wn(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,l=this.eventCount;this.items.forEach(p=>{p.selection&&l--},o);let c=n;this.items.forEach(p=>{let h=i.getMirror(--c);if(h==null)return;s=Math.min(s,h);let m=i.maps[h];if(p.step){let y=e.steps[h].invert(e.docs[h]),g=p.selection&&p.selection.map(i.slice(c+1,h));g&&l++,r.push(new wn(m,y,g))}else r.push(new wn(m))},o);let u=[];for(let p=n;p<s;p++)u.push(new wn(i.maps[p]));let d=this.items.slice(0,o).append(u).append(r),f=new nn(d,l);return f.emptyItemCount()>ZH&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,o=[],i=0;return this.items.forEach((s,l)=>{if(l>=e)o.push(s),s.selection&&i++;else if(s.step){let c=s.step.map(n.slice(r)),u=c&&c.getMap();if(r--,u&&n.appendMap(u,r),c){let d=s.selection&&s.selection.map(n.slice(r));d&&i++;let f=new wn(u.invert(),c,d),p,h=o.length-1;(p=o.length&&o[h].merge(f))?o[h]=p:o.push(f)}}else s.map&&r--},this.items.length,0),new nn(_e.from(o.reverse()),i)}}nn.empty=new nn(_e.empty,0);function WH(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class wn{constructor(e,n,r,o){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new wn(n.getMap().invert(),n,this.selection)}}}class Er{constructor(e,n,r,o,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const UH=20;function KH(t,e,n,r){let o=n.getMeta(Tr),i;if(o)return o.historyState;n.getMeta(qH)&&(t=new Er(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(Tr))return s.getMeta(Tr).redo?new Er(t.done.addTransform(n,void 0,r,f0(e)),t.undone,E4(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new Er(t.done,t.undone.addTransform(n,void 0,r,f0(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),c=t.prevTime==0||!s&&t.prevComposition!=l&&(t.prevTime<(n.time||0)-r.newGroupDelay||!GH(n,t.prevRanges)),u=s?Wd(t.prevRanges,n.mapping):E4(n.mapping.maps[n.steps.length-1]);return new Er(t.done.addTransform(n,c?e.selection.getBookmark():void 0,r,f0(e)),nn.empty,u,n.time,l??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Er(t.done.rebased(n,i),t.undone.rebased(n,i),Wd(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Er(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Wd(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function GH(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&o>=e[i]&&(n=!0)}),n}function E4(t){let e=[];return t.forEach((n,r,o,i)=>e.push(o,i)),e}function Wd(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function T4(t,e,n,r){let o=f0(e),i=Tr.get(e).spec.config,s=(r?t.undone:t.done).popEvent(e,o);if(!s)return;let l=s.selection.resolve(s.transform.doc),c=(r?t.done:t.undone).addTransform(s.transform,e.selection.getBookmark(),i,o),u=new Er(r?c:s.remaining,r?s.remaining:c,null,0,-1);n(s.transform.setSelection(l).setMeta(Tr,{redo:r,historyState:u}).scrollIntoView())}let Ud=!1,M4=null;function f0(t){let e=t.plugins;if(M4!=e){Ud=!1,M4=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Ud=!0;break}}return Ud}const Tr=new Mt("history"),qH=new Mt("closeHistory");function YH(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new Ke({key:Tr,state:{init(){return new Er(nn.empty,nn.empty,null,0,-1)},apply(e,n,r){return KH(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,o=r=="historyUndo"?x4:r=="historyRedo"?P4:null;return o?(n.preventDefault(),o(e.state,e.dispatch)):!1}}}})}const x4=(t,e)=>{let n=Tr.getState(t);return!n||n.done.eventCount==0?!1:(e&&T4(n,t,e,!1),!0)},P4=(t,e)=>{let n=Tr.getState(t);return!n||n.undone.eventCount==0?!1:(e&&T4(n,t,e,!0),!0)},JH=nt.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>x4(t,e),redo:()=>({state:t,dispatch:e})=>P4(t,e)}},addProseMirrorPlugins(){return[YH(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),QH=Pt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",ke(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{$to:n}=e.selection,r=t();return n.parentOffset===0?r.insertContentAt(Math.max(n.pos-2,0),{type:this.name}):r.insertContent({type:this.name}),r.command(({tr:o,dispatch:i})=>{var s;if(i){const{$to:l}=o.selection,c=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?o.setSelection(G.create(o.doc,l.pos+1)):l.nodeAfter.isBlock?o.setSelection(Z.create(o.doc,l.pos)):o.setSelection(G.create(o.doc,l.pos));else{const u=(s=l.parent.type.contentMatch.defaultType)===null||s===void 0?void 0:s.create();u&&(o.insert(c,u),o.setSelection(G.create(o.doc,c+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[P$({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),XH=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,e_=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,t_=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,n_=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,r_=xt.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ci({find:XH,type:this.type}),ci({find:t_,type:this.type})]},addPasteRules(){return[fo({find:e_,type:this.type}),fo({find:n_,type:this.type})]}}),o_=Pt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ke(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),i_=Pt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ke(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),D4=xt.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=oa(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),A4=/^(\d+)\.\s$/,s_=Pt.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",ke(this.options.HTMLAttributes,n),0]:["ol",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(i_.name,this.editor.getAttributes(D4.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=ia({find:A4,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=ia({find:A4,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(D4.name)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),a_=Pt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),l_=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,c_=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,u_=xt.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){const t={};return vd()?t["Mod-Shift-s"]=()=>this.editor.commands.toggleStrike():t["Ctrl-Shift-s"]=()=>this.editor.commands.toggleStrike(),t},addInputRules(){return[ci({find:l_,type:this.type})]},addPasteRules(){return[fo({find:c_,type:this.type})]}}),d_=Pt.create({name:"text",group:"inline"}),f_=nt.create({name:"starterKit",addExtensions(){var t,e,n,r,o,i,s,l,c,u,d,f,p,h,m,y,g,b;const w=[];return this.options.blockquote!==!1&&w.push(mH.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bold!==!1&&w.push(vH.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.bulletList!==!1&&w.push(SH.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&w.push(EH.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&w.push(xH.configure((o=this.options)===null||o===void 0?void 0:o.codeBlock)),this.options.document!==!1&&w.push(PH.configure((i=this.options)===null||i===void 0?void 0:i.document)),this.options.dropcursor!==!1&&w.push(IH.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&w.push(HH.configure((l=this.options)===null||l===void 0?void 0:l.gapcursor)),this.options.hardBreak!==!1&&w.push(_H.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&w.push(zH.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&w.push(JH.configure((d=this.options)===null||d===void 0?void 0:d.history)),this.options.horizontalRule!==!1&&w.push(QH.configure((f=this.options)===null||f===void 0?void 0:f.horizontalRule)),this.options.italic!==!1&&w.push(r_.configure((p=this.options)===null||p===void 0?void 0:p.italic)),this.options.listItem!==!1&&w.push(o_.configure((h=this.options)===null||h===void 0?void 0:h.listItem)),this.options.orderedList!==!1&&w.push(s_.configure((m=this.options)===null||m===void 0?void 0:m.orderedList)),this.options.paragraph!==!1&&w.push(a_.configure((y=this.options)===null||y===void 0?void 0:y.paragraph)),this.options.strike!==!1&&w.push(u_.configure((g=this.options)===null||g===void 0?void 0:g.strike)),this.options.text!==!1&&w.push(d_.configure((b=this.options)===null||b===void 0?void 0:b.text)),w}}),p_=xt.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),h_=xt.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=oa(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),m_=nt.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;return(e=t.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),g_="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mƶgensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",y_="ελ1Ļ…2бг1ел3Гети4ŠµŃŽ2католик6ом3мкГ2он1сква6онлайн5рг3рус2ф2сайт3рб3ŃƒŠŗŃ€3қаз3Õ°Õ”Õµ3×™×©×Ø××œ5קום3ابوظبي5Ų±Ų§Ł…ŁƒŁˆ5لاردن4ŲØŲ­Ų±ŁŠŁ†5Ų¬Ų²Ų§Ų¦Ų±5سعودية6Ų¹Ł„ŁŠŲ§Ł†5Ł…ŲŗŲ±ŲØ5Ł…Ų§Ų±Ų§ŲŖ5ŪŒŲ±Ų§Ł†5ŲØŲ§Ų±ŲŖ2Ų²Ų§Ų±4يتك3ھارت5ŲŖŁˆŁ†Ų³4Ų³ŁˆŲÆŲ§Ł†3رية5ؓبكة4Ų¹Ų±Ų§Ł‚2ŲØ2مان4ŁŁ„Ų³Ų·ŁŠŁ†6قطر3ŁƒŲ§Ų«ŁˆŁ„ŁŠŁƒ6ŁˆŁ…3Ł…ŲµŲ±2Ł„ŁŠŲ³ŁŠŲ§5ŁˆŲ±ŁŠŲŖŲ§Ł†ŁŠŲ§7قع4همراه5پاکستان7Ś€Ų§Ų±ŲŖ4ą¤•ą„‰ą¤®3ą¤Øą„‡ą¤Ÿ3भारत0ą¤®ą„3ą„‹ą¤¤5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4ą®‡ą®ØąÆą®¤ą®æą®Æą®¾6ą®²ą®™ąÆą®•ąÆˆ6ą®šą®æą®™ąÆą®•ą®ŖąÆą®ŖąÆ‚ą®°ąÆ11ą°­ą°¾ą°°ą°¤ą±5ಭಾರತ4ą“­ą“¾ą“°ą“¤ą“‚5ą¶½ą¶‚ą¶šą·4ąø„ąø­ąø”3ไทย3ຄາວ3įƒ’įƒ”2みんな3ć‚¢ćƒžć‚¾ćƒ³4ć‚Æćƒ©ć‚¦ćƒ‰4ć‚°ćƒ¼ć‚°ćƒ«4ć‚³ćƒ 2ć‚¹ćƒˆć‚¢3ć‚»ćƒ¼ćƒ«3ćƒ•ć‚”ćƒƒć‚·ćƒ§ćƒ³6ćƒć‚¤ćƒ³ćƒˆ4äø–ē•Œ2äø­äæ”1国1國1文网3äŗšé©¬é€Š3企业2佛山2俔息2偄康2八卦2å…¬åø1ē›Š2å°ę¹¾1灣2商城1åŗ—1ꠇ2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2ę…ˆå–„2ęˆ‘ēˆ±ä½ 3ę‰‹ęœŗ2ꋛ聘2ę”æåŠ”1府2ę–°åŠ å”2闻2ę—¶å°š2ę›øē±2ęœŗęž„2귔马锔3ęøøęˆ2澳門2ē‚¹ēœ‹2移动2ē»„ē»‡ęœŗęž„4ē½‘å€1åŗ—1ē«™1络2联通2谷歌2蓭物2é€šč²©2集团2é›»čØŠē›ˆē§‘4é£žåˆ©ęµ¦3食品2餐厅2é¦™ę ¼é‡Œę‹‰3ęøÆ2ė‹·ė„·1컓2삼성2ķ•œźµ­2",yi=(t,e)=>{for(const n in e)t[n]=e[n];return t},Kd="numeric",Gd="ascii",qd="alpha",p0="asciinumeric",h0="alphanumeric",Yd="domain",I4="emoji",b_="scheme",w_="slashscheme",N4="whitespace";function v_(t,e){return t in e||(e[t]=[]),e[t]}function go(t,e,n){e[Kd]&&(e[p0]=!0,e[h0]=!0),e[Gd]&&(e[p0]=!0,e[qd]=!0),e[p0]&&(e[h0]=!0),e[qd]&&(e[h0]=!0),e[h0]&&(e[Yd]=!0),e[I4]&&(e[Yd]=!0);for(const r in e){const o=v_(r,n);o.indexOf(t)<0&&o.push(t)}}function C_(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function St(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}St.groups={},St.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(t))return i}return e.jd},has(t,e){return e===void 0&&(e=!1),e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let o=0;o<t.length;o++)this.tt(t[o],e,n,r)},tr(t,e,n,r){r=r||St.groups;let o;return e&&e.j?o=e:(o=new St(e),n&&r&&go(e,n,r)),this.jr.push([t,o]),o},ts(t,e,n,r){let o=this;const i=t.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(t[s]);return o.tt(t[i-1],e,n,r)},tt(t,e,n,r){r=r||St.groups;const o=this;if(e&&e.j)return o.j[t]=e,e;const i=e;let s,l=o.go(t);if(l?(s=new St,yi(s.j,l.j),s.jr.push.apply(s.jr,l.jr),s.jd=l.jd,s.t=l.t):s=new St,i){if(r)if(s.t&&typeof s.t=="string"){const c=yi(C_(s.t,r),n);go(i,c,r)}else n&&go(i,n,r);s.t=i}return o.j[t]=s,s}};const X=(t,e,n,r,o)=>t.ta(e,n,r,o),Ut=(t,e,n,r,o)=>t.tr(e,n,r,o),B4=(t,e,n,r,o)=>t.ts(e,n,r,o),R=(t,e,n,r,o)=>t.tt(e,n,r,o),zn="WORD",Jd="UWORD",ga="LOCALHOST",Qd="TLD",Xd="UTLD",m0="SCHEME",bi="SLASH_SCHEME",ef="NUM",R4="WS",tf="NL",ya="OPENBRACE",ba="CLOSEBRACE",g0="OPENBRACKET",y0="CLOSEBRACKET",b0="OPENPAREN",w0="CLOSEPAREN",v0="OPENANGLEBRACKET",C0="CLOSEANGLEBRACKET",S0="FULLWIDTHLEFTPAREN",k0="FULLWIDTHRIGHTPAREN",O0="LEFTCORNERBRACKET",E0="RIGHTCORNERBRACKET",T0="LEFTWHITECORNERBRACKET",M0="RIGHTWHITECORNERBRACKET",x0="FULLWIDTHLESSTHAN",P0="FULLWIDTHGREATERTHAN",D0="AMPERSAND",A0="APOSTROPHE",I0="ASTERISK",Mr="AT",N0="BACKSLASH",B0="BACKTICK",R0="CARET",xr="COLON",nf="COMMA",L0="DOLLAR",vn="DOT",V0="EQUALS",rf="EXCLAMATION",Cn="HYPHEN",$0="PERCENT",F0="PIPE",H0="PLUS",_0="POUND",z0="QUERY",of="QUOTE",sf="SEMI",Sn="SLASH",wa="TILDE",j0="UNDERSCORE",L4="EMOJI",Z0="SYM";var V4=Object.freeze({__proto__:null,WORD:zn,UWORD:Jd,LOCALHOST:ga,TLD:Qd,UTLD:Xd,SCHEME:m0,SLASH_SCHEME:bi,NUM:ef,WS:R4,NL:tf,OPENBRACE:ya,CLOSEBRACE:ba,OPENBRACKET:g0,CLOSEBRACKET:y0,OPENPAREN:b0,CLOSEPAREN:w0,OPENANGLEBRACKET:v0,CLOSEANGLEBRACKET:C0,FULLWIDTHLEFTPAREN:S0,FULLWIDTHRIGHTPAREN:k0,LEFTCORNERBRACKET:O0,RIGHTCORNERBRACKET:E0,LEFTWHITECORNERBRACKET:T0,RIGHTWHITECORNERBRACKET:M0,FULLWIDTHLESSTHAN:x0,FULLWIDTHGREATERTHAN:P0,AMPERSAND:D0,APOSTROPHE:A0,ASTERISK:I0,AT:Mr,BACKSLASH:N0,BACKTICK:B0,CARET:R0,COLON:xr,COMMA:nf,DOLLAR:L0,DOT:vn,EQUALS:V0,EXCLAMATION:rf,HYPHEN:Cn,PERCENT:$0,PIPE:F0,PLUS:H0,POUND:_0,QUERY:z0,QUOTE:of,SEMI:sf,SLASH:Sn,TILDE:wa,UNDERSCORE:j0,EMOJI:L4,SYM:Z0});const wi=/[a-z]/,af=new RegExp("\\p{L}","u"),lf=new RegExp("\\p{Emoji}","u"),cf=/\d/,$4=/\s/,F4=`
356
+ `,S_="ļø",k_="ā€";let W0=null,U0=null;function O_(t){t===void 0&&(t=[]);const e={};St.groups=e;const n=new St;W0==null&&(W0=H4(g_)),U0==null&&(U0=H4(y_)),R(n,"'",A0),R(n,"{",ya),R(n,"}",ba),R(n,"[",g0),R(n,"]",y0),R(n,"(",b0),R(n,")",w0),R(n,"<",v0),R(n,">",C0),R(n,"(",S0),R(n,")",k0),R(n,"怌",O0),R(n,"怍",E0),R(n,"怎",T0),R(n,"怏",M0),R(n,"<",x0),R(n,"ļ¼ž",P0),R(n,"&",D0),R(n,"*",I0),R(n,"@",Mr),R(n,"`",B0),R(n,"^",R0),R(n,":",xr),R(n,",",nf),R(n,"$",L0),R(n,".",vn),R(n,"=",V0),R(n,"!",rf),R(n,"-",Cn),R(n,"%",$0),R(n,"|",F0),R(n,"+",H0),R(n,"#",_0),R(n,"?",z0),R(n,'"',of),R(n,"/",Sn),R(n,";",sf),R(n,"~",wa),R(n,"_",j0),R(n,"\\",N0);const r=Ut(n,cf,ef,{[Kd]:!0});Ut(r,cf,r);const o=Ut(n,wi,zn,{[Gd]:!0});Ut(o,wi,o);const i=Ut(n,af,Jd,{[qd]:!0});Ut(i,wi),Ut(i,af,i);const s=Ut(n,$4,R4,{[N4]:!0});R(n,F4,tf,{[N4]:!0}),R(s,F4),Ut(s,$4,s);const l=Ut(n,lf,L4,{[I4]:!0});Ut(l,lf,l),R(l,S_,l);const c=R(l,k_);Ut(c,lf,l);const u=[[wi,o]],d=[[wi,null],[af,i]];for(let f=0;f<W0.length;f++)Pr(n,W0[f],Qd,zn,u);for(let f=0;f<U0.length;f++)Pr(n,U0[f],Xd,Jd,d);go(Qd,{tld:!0,ascii:!0},e),go(Xd,{utld:!0,alpha:!0},e),Pr(n,"file",m0,zn,u),Pr(n,"mailto",m0,zn,u),Pr(n,"http",bi,zn,u),Pr(n,"https",bi,zn,u),Pr(n,"ftp",bi,zn,u),Pr(n,"ftps",bi,zn,u),go(m0,{scheme:!0,ascii:!0},e),go(bi,{slashscheme:!0,ascii:!0},e),t=t.sort((f,p)=>f[0]>p[0]?1:-1);for(let f=0;f<t.length;f++){const p=t[f][0],m=t[f][1]?{[b_]:!0}:{[w_]:!0};p.indexOf("-")>=0?m[Yd]=!0:wi.test(p)?cf.test(p)?m[p0]=!0:m[Gd]=!0:m[Kd]=!0,B4(n,p,p,m)}return B4(n,"localhost",ga,{ascii:!0}),n.jd=new St(Z0),{start:n,tokens:yi({groups:e},V4)}}function E_(t,e){const n=T_(e.replace(/[A-Z]/g,l=>l.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let l=t,c=null,u=0,d=null,f=-1,p=-1;for(;s<r&&(c=l.go(n[s]));)l=c,l.accepts()?(f=0,p=0,d=l):f>=0&&(f+=n[s].length,p++),u+=n[s].length,i+=n[s].length,s++;i-=f,s-=p,u-=f,o.push({t:d.t,v:e.slice(i-u,i),s:i-u,e:i})}return o}function T_(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Pr(t,e,n,r,o){let i;const s=e.length;for(let l=0;l<s-1;l++){const c=e[l];t.j[c]?i=t.j[c]:(i=new St(r),i.jr=o.slice(),t.j[c]=i),t=i}return i=new St(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function H4(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}const va={defaultProtocol:"http",events:null,format:_4,formatHref:_4,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function uf(t,e){e===void 0&&(e=null);let n=yi({},va);t&&(n=yi(n,t instanceof uf?t.o:t));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}uf.prototype={o:va,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:va[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function _4(t){return t}function z4(t,e){this.t="token",this.v=t,this.tk=e}z4.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=va.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},l=t.get("className",n,e),c=t.get("target",n,e),u=t.get("rel",n,e),d=t.getObj("attributes",n,e),f=t.getObj("events",n,e);return s.href=r,l&&(s.class=l),c&&(s.target=c),u&&(s.rel=u),d&&yi(s,d),{tagName:o,attributes:s,content:i,eventListeners:f}}};function K0(t,e){class n extends z4{constructor(o,i){super(o,i),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const j4=K0("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Z4=K0("text"),M_=K0("nl"),G0=K0("url",{isLink:!0,toHref(t){return t===void 0&&(t=va.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==ga&&t[1].t===xr}}),Kt=t=>new St(t);function x_(t){let{groups:e}=t;const n=e.domain.concat([D0,I0,Mr,N0,B0,R0,L0,V0,Cn,ef,$0,F0,H0,_0,Sn,Z0,wa,j0]),r=[A0,xr,nf,vn,rf,z0,of,sf,v0,C0,ya,ba,y0,g0,b0,w0,S0,k0,O0,E0,T0,M0,x0,P0],o=[D0,A0,I0,N0,B0,R0,L0,V0,Cn,ya,ba,$0,F0,H0,_0,z0,Sn,Z0,wa,j0],i=Kt(),s=R(i,wa);X(s,o,s),X(s,e.domain,s);const l=Kt(),c=Kt(),u=Kt();X(i,e.domain,l),X(i,e.scheme,c),X(i,e.slashscheme,u),X(l,o,s),X(l,e.domain,l);const d=R(l,Mr);R(s,Mr,d),R(c,Mr,d),R(u,Mr,d);const f=R(s,vn);X(f,o,s),X(f,e.domain,s);const p=Kt();X(d,e.domain,p),X(p,e.domain,p);const h=R(p,vn);X(h,e.domain,p);const m=Kt(j4);X(h,e.tld,m),X(h,e.utld,m),R(d,ga,m);const y=R(p,Cn);X(y,e.domain,p),X(m,e.domain,p),R(m,vn,h),R(m,Cn,y);const g=R(m,xr);X(g,e.numeric,j4);const b=R(l,Cn),w=R(l,vn);X(b,e.domain,l),X(w,o,s),X(w,e.domain,l);const C=Kt(G0);X(w,e.tld,C),X(w,e.utld,C),X(C,e.domain,l),X(C,o,s),R(C,vn,w),R(C,Cn,b),R(C,Mr,d);const v=R(C,xr),E=Kt(G0);X(v,e.numeric,E);const S=Kt(G0),k=Kt();X(S,n,S),X(S,r,k),X(k,n,S),X(k,r,k),R(C,Sn,S),R(E,Sn,S);const T=R(c,xr),D=R(u,xr),N=R(D,Sn),B=R(N,Sn);X(c,e.domain,l),R(c,vn,w),R(c,Cn,b),X(u,e.domain,l),R(u,vn,w),R(u,Cn,b),X(T,e.domain,S),R(T,Sn,S),X(B,e.domain,S),X(B,n,S),R(B,Sn,S);const $=[[ya,ba],[g0,y0],[b0,w0],[v0,C0],[S0,k0],[O0,E0],[T0,M0],[x0,P0]];for(let j=0;j<$.length;j++){const[ee,F]=$[j],W=R(S,ee);R(k,ee,W),R(W,F,S);const te=Kt(G0);X(W,n,te);const se=Kt();X(W,r),X(te,n,te),X(te,r,se),X(se,n,te),X(se,r,se),R(te,F,S),R(se,F,S)}return R(i,ga,C),R(i,tf,M_),{start:i,tokens:V4}}function P_(t,e,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let l=t,c=null,u=null,d=0,f=null,p=-1;for(;o<r&&!(c=l.go(n[o].t));)s.push(n[o++]);for(;o<r&&(u=c||l.go(n[o].t));)c=null,l=u,l.accepts()?(p=0,f=l):p>=0&&p++,o++,d++;if(p<0)o-=d,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(df(Z4,e,s)),s=[]),o-=p,d-=p;const h=f.t,m=n.slice(o-d,o);i.push(df(h,e,m))}}return s.length>0&&i.push(df(Z4,e,s)),i}function df(t,e,n){const r=n[0].s,o=n[n.length-1].e,i=e.slice(r,o);return new t(i,n)}const D_=typeof console<"u"&&console&&console.warn||(()=>{}),A_="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Oe={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function I_(){St.groups={},Oe.scanner=null,Oe.parser=null,Oe.tokenQueue=[],Oe.pluginQueue=[],Oe.customSchemes=[],Oe.initialized=!1}function W4(t,e){if(e===void 0&&(e=!1),Oe.initialized&&D_(`linkifyjs: already initialized - will not register custom scheme "${t}" ${A_}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
357
357
  1. Must only contain digits, lowercase ASCII letters or "-"
358
358
  2. Cannot start or end with "-"
359
- 3. "-" cannot repeat`);Oe.customSchemes.push([t,e])}function I_(){Oe.scanner=k_(Oe.customSchemes);for(let t=0;t<Oe.tokenQueue.length;t++)Oe.tokenQueue[t][1]({scanner:Oe.scanner});Oe.parser=M_(Oe.scanner.tokens);for(let t=0;t<Oe.pluginQueue.length;t++)Oe.pluginQueue[t][1]({scanner:Oe.scanner,parser:Oe.parser});Oe.initialized=!0}function N_(t){return Oe.initialized||I_(),x_(Oe.parser.start,t,O_(Oe.scanner.start,t))}function ff(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new uf(n),o=N_(t),i=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}function B_(t){return new Ke({key:new Mt("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(u=>u.docChanged)&&!n.doc.eq(r.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=YV(n.doc,[...e]);if(i$(l).forEach(({newRange:u})=>{const d=QV(r.doc,u,h=>h.isTextblock);let f,p;if(d.length>1?(f=d[0],p=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):d.length&&r.doc.textBetween(u.from,u.to," "," ").endsWith(" ")&&(f=d[0],p=r.doc.textBetween(f.pos,u.to,void 0," ")),f&&p){const h=p.split(" ").filter(g=>g!=="");if(h.length<=0)return!1;const m=h[h.length-1],y=f.pos+p.lastIndexOf(m);if(!m)return!1;ff(m).filter(g=>g.isLink).map(g=>({...g,from:y+g.start+1,to:y+g.end+1})).filter(g=>r.schema.marks.code?!r.doc.rangeHasMark(g.from,g.to,r.schema.marks.code):!0).filter(g=>t.validate?t.validate(g.value):!0).forEach(g=>{Sd(g.from,g.to,r.doc).some(b=>b.mark.type===t.type)||s.addMark(g.from,g.to,t.type.create({href:g.href}))})}}),!!s.steps.length)return s}})}function R_(t){return new Ke({key:new Mt("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0)return!1;let s=r.target;const l=[];for(;s.nodeName!=="DIV";)l.push(s),s=s.parentNode;if(!l.find(p=>p.nodeName==="A"))return!1;const c=P7(e.state,t.type.name),u=r.target,d=(o=u==null?void 0:u.href)!==null&&o!==void 0?o:c.href,f=(i=u==null?void 0:u.target)!==null&&i!==void 0?i:c.target;return u&&d?(window.open(d,f),!0):!1}}})}function L_(t){return new Ke({key:new Mt("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:o}=e,{selection:i}=o,{empty:s}=i;if(s)return!1;let l="";r.content.forEach(u=>{l+=u.textContent});const c=ff(l).find(u=>u.isLink&&u.value===l);return!l||!c?!1:(t.editor.commands.setMark(t.type,{href:c.href}),!0)}}})}const V_=xt.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){W4(t);return}W4(t.scheme,t.optionalSlashes)})},onDestroy(){A_()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:t}){var e;return!((e=t.href)===null||e===void 0)&&e.startsWith("javascript:")?["a",ke(this.options.HTMLAttributes,{...t,href:""}),0]:["a",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[fo({find:t=>{const e=[];if(t){const n=ff(t).filter(r=>r.isLink);n.length&&n.forEach(r=>e.push({text:r.value,data:{href:r.href},index:r.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(B_({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push(R_({type:this.type})),this.options.linkOnPaste&&t.push(L_({editor:this.editor,type:this.type})),t}}),$_=a.defineComponent({components:{EditorContent:dH},props:{modelValue:{type:String,default:""},allowEmojis:{type:Boolean,default:!1},allowAttachments:{type:Boolean,default:!1},allowFormatting:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!0},placeholder:{type:String,default:""}},emits:["update:modelValue"],setup(t,e){const n=a.ref(!1),r=a.ref(""),o=a.ref(),i=a.ref(),s=a.ref(!1),l=a.ref(!1),c=a.ref(!1),u=a.computed(()=>w.value.getAttributes("textStyle").color||"#121517"),d=a.computed(()=>t.modelValue),f=()=>{const C=window.prompt("URL");w.value.chain().focus().extendMarkRange("link").setLink({href:C||""}).run()},p=C=>{w.value.chain().focus().setColor(C).run(),m()},h=()=>{s.value=!s.value},m=()=>{s.value=!1},y=()=>{},g=C=>{w.value.chain().focus().insertContent(C).run(),o.value.$el.click()};function b(C){w.value.chain().focus().insertContent(C.i).run(),o.value.$el.click()}const w=a.ref(fH({extensions:[d_.configure({heading:{levels:[1,2]}}),f_,p_,h_,V_.configure({openOnClick:!1})],content:d.value,onUpdate:()=>{let C="";w.value.isEmpty||(C=t.allowFormatting?w.value.getHTML():w.value.getText()),e.emit("update:modelValue",C)}}));return a.onBeforeUnmount(()=>{var C;(C=w.value)==null||C.destroy()}),{colors:Pg.theme.colors,colorExclusions:["success","success-light","error","error-light","warning","warning-light","info","info-light","transparent","current","green-quore","blue-sky","blue-quore","complaint","recurring","workorder"],editor:w,showEmojiPicker:n,emojiSearch:r,invoker:o,multiUploader:i,showColorMenu:s,focused:c,showFormatOptions:l,editorValue:d,setColor:u,setLink:f,selectColor:p,showColors:h,onClickOutColors:m,attachFiles:y,appendEmoji:g,onSelectEmoji:b}}}),F_={key:0,class:"placeholder px-3 mt-2 d-block"},H_={key:1,class:"format-options menu"},__={class:"toolbar flex items-center flex-grow"},z_={class:"flex items-center flex-shrink-0"};function j_(t,e,n,r,o,i){const s=a.resolveComponent("q-icon"),l=a.resolveComponent("editor-content");return t.editor?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["editor-container",{"has-placeholder":!!t.placeholder},{"is-focused":t.focused},{"is-stacked":!!t.isStacked}]),onFocusin:e[8]||(e[8]=c=>t.focused=!t.focused),onFocusout:e[9]||(e[9]=c=>t.focused=!t.focused)},[t.placeholder?(a.openBlock(),a.createElementBlock("label",F_,a.toDisplayString(t.placeholder),1)):a.createCommentVNode("",!0),t.showFormatOptions?(a.openBlock(),a.createElementBlock("div",H_,[a.createVNode(s,{icon:"bold",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("bold")}]),onClick:e[0]||(e[0]=c=>t.editor.chain().focus().toggleBold().run())},null,8,["class"]),a.createVNode(s,{icon:"italic",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("italic")}]),onClick:e[1]||(e[1]=c=>t.editor.chain().focus().toggleItalic().run())},null,8,["class"]),a.createVNode(s,{icon:"underline",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("underline")}]),onClick:e[2]||(e[2]=c=>t.editor.chain().focus().toggleUnderline().run())},null,8,["class"]),a.createVNode(s,{icon:"strikethrough",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("strike")}]),onClick:e[3]||(e[3]=c=>t.editor.chain().focus().toggleStrike().run())},null,8,["class"]),a.createVNode(s,{icon:"link",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("link")}]),onClick:t.setLink},null,8,["class","onClick"]),t.editor.isActive("link")?(a.openBlock(),a.createBlock(s,{key:0,icon:"link",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("link")}]),onClick:e[4]||(e[4]=c=>t.editor.chain().focus().unsetLink().run())},null,8,["class"])):a.createCommentVNode("",!0),a.createVNode(s,{icon:"list",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("bulletList")}]),onClick:e[5]||(e[5]=c=>t.editor.chain().focus().toggleBulletList().run())},null,8,["class"]),a.createVNode(s,{icon:"numberlist",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("orderedList")}]),onClick:e[6]||(e[6]=c=>t.editor.chain().focus().toggleOrderedList().run())},null,8,["class"])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["wysiwyg-layout",{flex:!t.isStacked}])},[a.createVNode(l,{editor:t.editor,class:"grow"},null,8,["editor"]),a.createElementVNode("div",{class:a.normalizeClass(["menu flex",[t.isStacked?"items-center":"items-end"]])},[a.createElementVNode("div",__,[t.allowEmojis?(a.openBlock(),a.createBlock(s,{key:0,icon:"face-smile",size:"md",type:"outline",color:"inkwell-0",class:"mr-2 shrink-0 cursor-pointer"})):a.createCommentVNode("",!0),t.allowAttachments?(a.openBlock(),a.createBlock(s,{key:1,icon:"paperclip",size:"md",type:"line",color:"inkwell-0",class:"mr-2 shrink-0 cursor-pointer",onClick:t.attachFiles},null,8,["onClick"])):a.createCommentVNode("",!0),t.allowFormatting?(a.openBlock(),a.createBlock(s,{key:2,icon:"text-format",size:"md",type:"outline",color:"inkwell-0",class:"mr-2 shrink-0 cursor-pointer",onClick:e[7]||(e[7]=c=>t.showFormatOptions=!t.showFormatOptions)})):a.createCommentVNode("",!0)]),a.createElementVNode("div",z_,[a.renderSlot(t.$slots,"action",{},void 0,!0)])],2)],2)],34)):a.createCommentVNode("",!0)}const Z_=ce($_,[["render",j_],["__scopeId","data-v-52a75f52"]]),W_={install:({config:t,provide:e})=>{t.globalProperties.$datetime=Ce,e("$datetime",Ce)}};function Ca(t){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ca(t)}function U4(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function pf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U4(Object(n),!0).forEach(function(r){U_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U4(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function U_(t,e,n){return e=K_(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K_(t){var e=G_(t,"string");return Ca(e)=="symbol"?e:String(e)}function G_(t,e){if(Ca(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ca(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var K4={ripple:!1,inputStyle:null,locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}},filterMatchModeOptions:{text:[Re.STARTS_WITH,Re.CONTAINS,Re.NOT_CONTAINS,Re.ENDS_WITH,Re.EQUALS,Re.NOT_EQUALS],numeric:[Re.EQUALS,Re.NOT_EQUALS,Re.LESS_THAN,Re.LESS_THAN_OR_EQUAL_TO,Re.GREATER_THAN,Re.GREATER_THAN_OR_EQUAL_TO],date:[Re.DATE_IS,Re.DATE_IS_NOT,Re.DATE_BEFORE,Re.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},unstyled:!1,csp:{nonce:void 0}},q_=Symbol();function Y_(t,e,n,r){if(t!==e){var o=document.getElementById(n),i=o.cloneNode(!0),s=o.getAttribute("href").replace(t,e);i.setAttribute("id",n+"-clone"),i.setAttribute("href",s),i.addEventListener("load",function(){o.remove(),i.setAttribute("id",n),r&&r()}),o.parentNode&&o.parentNode.insertBefore(i,o.nextSibling)}}var J_={install:function(e,n){var r=n?pf(pf({},K4),n):pf({},K4),o={config:a.reactive(r),changeTheme:Y_};e.config.globalProperties.$primevue=o,e.provide(q_,o)}};const Q_={global:{css:`
359
+ 3. "-" cannot repeat`);Oe.customSchemes.push([t,e])}function N_(){Oe.scanner=O_(Oe.customSchemes);for(let t=0;t<Oe.tokenQueue.length;t++)Oe.tokenQueue[t][1]({scanner:Oe.scanner});Oe.parser=x_(Oe.scanner.tokens);for(let t=0;t<Oe.pluginQueue.length;t++)Oe.pluginQueue[t][1]({scanner:Oe.scanner,parser:Oe.parser});Oe.initialized=!0}function B_(t){return Oe.initialized||N_(),P_(Oe.parser.start,t,E_(Oe.scanner.start,t))}function ff(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new uf(n),o=B_(t),i=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}function R_(t){return new Ke({key:new Mt("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(u=>u.docChanged)&&!n.doc.eq(r.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=JV(n.doc,[...e]);if(s$(l).forEach(({newRange:u})=>{const d=XV(r.doc,u,h=>h.isTextblock);let f,p;if(d.length>1?(f=d[0],p=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):d.length&&r.doc.textBetween(u.from,u.to," "," ").endsWith(" ")&&(f=d[0],p=r.doc.textBetween(f.pos,u.to,void 0," ")),f&&p){const h=p.split(" ").filter(g=>g!=="");if(h.length<=0)return!1;const m=h[h.length-1],y=f.pos+p.lastIndexOf(m);if(!m)return!1;ff(m).filter(g=>g.isLink).map(g=>({...g,from:y+g.start+1,to:y+g.end+1})).filter(g=>r.schema.marks.code?!r.doc.rangeHasMark(g.from,g.to,r.schema.marks.code):!0).filter(g=>t.validate?t.validate(g.value):!0).forEach(g=>{Sd(g.from,g.to,r.doc).some(b=>b.mark.type===t.type)||s.addMark(g.from,g.to,t.type.create({href:g.href}))})}}),!!s.steps.length)return s}})}function L_(t){return new Ke({key:new Mt("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0)return!1;let s=r.target;const l=[];for(;s.nodeName!=="DIV";)l.push(s),s=s.parentNode;if(!l.find(p=>p.nodeName==="A"))return!1;const c=P7(e.state,t.type.name),u=r.target,d=(o=u==null?void 0:u.href)!==null&&o!==void 0?o:c.href,f=(i=u==null?void 0:u.target)!==null&&i!==void 0?i:c.target;return u&&d?(window.open(d,f),!0):!1}}})}function V_(t){return new Ke({key:new Mt("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:o}=e,{selection:i}=o,{empty:s}=i;if(s)return!1;let l="";r.content.forEach(u=>{l+=u.textContent});const c=ff(l).find(u=>u.isLink&&u.value===l);return!l||!c?!1:(t.editor.commands.setMark(t.type,{href:c.href}),!0)}}})}const $_=xt.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){W4(t);return}W4(t.scheme,t.optionalSlashes)})},onDestroy(){I_()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:t}){var e;return!((e=t.href)===null||e===void 0)&&e.startsWith("javascript:")?["a",ke(this.options.HTMLAttributes,{...t,href:""}),0]:["a",ke(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[fo({find:t=>{const e=[];if(t){const n=ff(t).filter(r=>r.isLink);n.length&&n.forEach(r=>e.push({text:r.value,data:{href:r.href},index:r.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(R_({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push(L_({type:this.type})),this.options.linkOnPaste&&t.push(V_({editor:this.editor,type:this.type})),t}}),F_=a.defineComponent({components:{EditorContent:fH},props:{modelValue:{type:String,default:""},allowEmojis:{type:Boolean,default:!1},allowAttachments:{type:Boolean,default:!1},allowFormatting:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!0},placeholder:{type:String,default:""}},emits:["update:modelValue"],setup(t,e){const n=a.ref(!1),r=a.ref(""),o=a.ref(),i=a.ref(),s=a.ref(!1),l=a.ref(!1),c=a.ref(!1),u=a.computed(()=>w.value.getAttributes("textStyle").color||"#121517"),d=a.computed(()=>t.modelValue),f=()=>{const C=window.prompt("URL");w.value.chain().focus().extendMarkRange("link").setLink({href:C||""}).run()},p=C=>{w.value.chain().focus().setColor(C).run(),m()},h=()=>{s.value=!s.value},m=()=>{s.value=!1},y=()=>{},g=C=>{w.value.chain().focus().insertContent(C).run(),o.value.$el.click()};function b(C){w.value.chain().focus().insertContent(C.i).run(),o.value.$el.click()}const w=a.ref(pH({extensions:[f_.configure({heading:{levels:[1,2]}}),p_,h_,m_,$_.configure({openOnClick:!1})],content:d.value,onUpdate:()=>{let C="";w.value.isEmpty||(C=t.allowFormatting?w.value.getHTML():w.value.getText()),e.emit("update:modelValue",C)}}));return a.onBeforeUnmount(()=>{var C;(C=w.value)==null||C.destroy()}),{colors:Pg.theme.colors,colorExclusions:["success","success-light","error","error-light","warning","warning-light","info","info-light","transparent","current","green-quore","blue-sky","blue-quore","complaint","recurring","workorder"],editor:w,showEmojiPicker:n,emojiSearch:r,invoker:o,multiUploader:i,showColorMenu:s,focused:c,showFormatOptions:l,editorValue:d,setColor:u,setLink:f,selectColor:p,showColors:h,onClickOutColors:m,attachFiles:y,appendEmoji:g,onSelectEmoji:b}}}),H_={key:0,class:"placeholder px-3 mt-2 d-block"},__={key:1,class:"format-options menu"},z_={class:"toolbar flex items-center flex-grow"},j_={class:"flex items-center flex-shrink-0"};function Z_(t,e,n,r,o,i){const s=a.resolveComponent("q-icon"),l=a.resolveComponent("editor-content");return t.editor?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["editor-container",{"has-placeholder":!!t.placeholder},{"is-focused":t.focused},{"is-stacked":!!t.isStacked}]),onFocusin:e[8]||(e[8]=c=>t.focused=!t.focused),onFocusout:e[9]||(e[9]=c=>t.focused=!t.focused)},[t.placeholder?(a.openBlock(),a.createElementBlock("label",H_,a.toDisplayString(t.placeholder),1)):a.createCommentVNode("",!0),t.showFormatOptions?(a.openBlock(),a.createElementBlock("div",__,[a.createVNode(s,{icon:"bold",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("bold")}]),onClick:e[0]||(e[0]=c=>t.editor.chain().focus().toggleBold().run())},null,8,["class"]),a.createVNode(s,{icon:"italic",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("italic")}]),onClick:e[1]||(e[1]=c=>t.editor.chain().focus().toggleItalic().run())},null,8,["class"]),a.createVNode(s,{icon:"underline",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("underline")}]),onClick:e[2]||(e[2]=c=>t.editor.chain().focus().toggleUnderline().run())},null,8,["class"]),a.createVNode(s,{icon:"strikethrough",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("strike")}]),onClick:e[3]||(e[3]=c=>t.editor.chain().focus().toggleStrike().run())},null,8,["class"]),a.createVNode(s,{icon:"link",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("link")}]),onClick:t.setLink},null,8,["class","onClick"]),t.editor.isActive("link")?(a.openBlock(),a.createBlock(s,{key:0,icon:"link",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("link")}]),onClick:e[4]||(e[4]=c=>t.editor.chain().focus().unsetLink().run())},null,8,["class"])):a.createCommentVNode("",!0),a.createVNode(s,{icon:"list",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("bulletList")}]),onClick:e[5]||(e[5]=c=>t.editor.chain().focus().toggleBulletList().run())},null,8,["class"]),a.createVNode(s,{icon:"numberlist",size:"md",color:"inkwell-0",class:a.normalizeClass(["px-1 mr-1 cursor-pointer",{"is-active":t.editor.isActive("orderedList")}]),onClick:e[6]||(e[6]=c=>t.editor.chain().focus().toggleOrderedList().run())},null,8,["class"])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["wysiwyg-layout",{flex:!t.isStacked}])},[a.createVNode(l,{editor:t.editor,class:"grow"},null,8,["editor"]),a.createElementVNode("div",{class:a.normalizeClass(["menu flex",[t.isStacked?"items-center":"items-end"]])},[a.createElementVNode("div",z_,[t.allowEmojis?(a.openBlock(),a.createBlock(s,{key:0,icon:"face-smile",size:"md",type:"outline",color:"inkwell-0",class:"mr-2 shrink-0 cursor-pointer"})):a.createCommentVNode("",!0),t.allowAttachments?(a.openBlock(),a.createBlock(s,{key:1,icon:"paperclip",size:"md",type:"line",color:"inkwell-0",class:"mr-2 shrink-0 cursor-pointer",onClick:t.attachFiles},null,8,["onClick"])):a.createCommentVNode("",!0),t.allowFormatting?(a.openBlock(),a.createBlock(s,{key:2,icon:"text-format",size:"md",type:"outline",color:"inkwell-0",class:"mr-2 shrink-0 cursor-pointer",onClick:e[7]||(e[7]=c=>t.showFormatOptions=!t.showFormatOptions)})):a.createCommentVNode("",!0)]),a.createElementVNode("div",j_,[a.renderSlot(t.$slots,"action",{},void 0,!0)])],2)],2)],34)):a.createCommentVNode("",!0)}const W_=ce(F_,[["render",Z_],["__scopeId","data-v-52a75f52"]]),U_={install:({config:t,provide:e})=>{t.globalProperties.$datetime=Ce,e("$datetime",Ce)}};function Ca(t){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ca(t)}function U4(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function pf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U4(Object(n),!0).forEach(function(r){K_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U4(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function K_(t,e,n){return e=G_(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function G_(t){var e=q_(t,"string");return Ca(e)=="symbol"?e:String(e)}function q_(t,e){if(Ca(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ca(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var K4={ripple:!1,inputStyle:null,locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}},filterMatchModeOptions:{text:[Re.STARTS_WITH,Re.CONTAINS,Re.NOT_CONTAINS,Re.ENDS_WITH,Re.EQUALS,Re.NOT_EQUALS],numeric:[Re.EQUALS,Re.NOT_EQUALS,Re.LESS_THAN,Re.LESS_THAN_OR_EQUAL_TO,Re.GREATER_THAN,Re.GREATER_THAN_OR_EQUAL_TO],date:[Re.DATE_IS,Re.DATE_IS_NOT,Re.DATE_BEFORE,Re.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},unstyled:!1,csp:{nonce:void 0}},Y_=Symbol();function J_(t,e,n,r){if(t!==e){var o=document.getElementById(n),i=o.cloneNode(!0),s=o.getAttribute("href").replace(t,e);i.setAttribute("id",n+"-clone"),i.setAttribute("href",s),i.addEventListener("load",function(){o.remove(),i.setAttribute("id",n),r&&r()}),o.parentNode&&o.parentNode.insertBefore(i,o.nextSibling)}}var Q_={install:function(e,n){var r=n?pf(pf({},K4),n):pf({},K4),o={config:a.reactive(r),changeTheme:J_};e.config.globalProperties.$primevue=o,e.provide(Y_,o)}};const X_={global:{css:`
360
360
  *[data-pd-ripple="true"]{
361
361
  overflow: hidden;
362
362
  position: relative;
@@ -443,4 +443,4 @@ img.ProseMirror-separator {
443
443
  opacity: 1;
444
444
  }
445
445
  }
446
- `},datatable:{root:({props:t})=>({class:["relative",{"flex flex-col":t.scrollable&&t.scrollHeight==="flex"},{"h-full":t.scrollable&&t.scrollHeight==="flex"}]}),loadingoverlay:{class:["absolute","top-0 left-0","z-20","flex items-center justify-center","w-full h-full","bg-surface-100/0 dark:bg-surface-800/0","transition duration-200"]},loadingicon:{class:"w-8 h-8 animate-spin hidden"},wrapper:({props:t})=>({class:[{relative:t.scrollable,"flex flex-col grow":t.scrollable&&t.scrollHeight==="flex"},{"h-full":t.scrollable&&t.scrollHeight==="flex"}]}),header:({props:t})=>({class:["font-bold",t.showGridlines?"border-x border-t border-b-0":"border-y border-x-0","p-4","bg-surface-50 dark:bg-surface-800","border-surface-200 dark:border-surface-700","text-surface-700 dark:text-white/80"]}),table:{class:"w-full border-spacing-0 border-separate"},thead:({context:t})=>({class:[{"bg-surface-50 z-40 sticky":t.scrollable}]}),tbody:({instance:t,context:e})=>({class:[{"sticky z-20":t.frozenRow&&e.scrollable}]}),tfoot:({context:t})=>({class:[{"bg-surface-50 bottom-0 z-0":t.scrollable}]}),footer:{class:["font-bold","border-t-0 border-b border-x-0","p-4","bg-surface-50 dark:bg-surface-800","border-surface-200 dark:border-surface-700","text-surface-700 dark:text-white/80"]},column:{headercell:({context:t,props:e})=>({class:["font-bold",{"sticky z-20 border-b":e.frozen||e.frozen===""},{relative:t.resizable},"text-left",{"first:border-l border-y border-r":t==null?void 0:t.showGridlines},"border-0 border-b border-solid",(t==null?void 0:t.size)==="small"?"p-2":(t==null?void 0:t.size)==="large"?"p-5":"p-4",(e.sortable===""||e.sortable)&&t.sorted?"bg-primary-50 text-primary-700":"bg-surface-50 text-surface-700",(e.sortable===""||e.sortable)&&t.sorted?"dark:text-white dark:bg-primary-400/30":"dark:text-white/80 dark:bg-surface-800","border-surface-200 dark:border-surface-700 ",{"hover:bg-surface-100 dark:hover:bg-surface-400/30":(e.sortable===""||e.sortable)&&!(t!=null&&t.sorted)},"focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",{"transition duration-200":e.sortable===""||e.sortable},{"cursor-pointer":e.sortable===""||e.sortable},{"overflow-hidden space-nowrap border-y bg-clip-padding":t.resizable}]}),headercontent:{class:"flex items-center"},sort:({context:t})=>({class:[t.sorted?"text-primary-500":"text-surface-700",t.sorted?"dark:text-primary-400":"dark:text-white/80"]}),bodycell:({props:t,context:e,state:n,parent:r})=>({class:[{"sticky box-border border-b":r.instance.frozenRow},{"sticky box-border border-b":t.frozen||t.frozen===""},"text-left","border-0 border-b border-solid",{"first:border-l border-r border-b":e==null?void 0:e.showGridlines},{"bg-surface-0 dark:bg-surface-800":r.instance.frozenRow||t.frozen||t.frozen===""},{"p-2":(e==null?void 0:e.size)==="small"&&!n.d_editing},{"p-5":(e==null?void 0:e.size)==="large"&&!n.d_editing},{"p-4":(e==null?void 0:e.size)!=="large"&&(e==null?void 0:e.size)!=="small"&&!n.d_editing},{"py-[0.6rem] px-2":n.d_editing},"border-surface-200 dark:border-surface-700"]}),footercell:({context:t})=>({class:["font-bold","text-left","border-0 border-b border-solid",{"border-x border-y":t==null?void 0:t.showGridlines},(t==null?void 0:t.size)==="small"?"p-2":(t==null?void 0:t.size)==="large"?"p-5":"p-4","border-surface-200 dark:border-surface-700","text-surface-700 dark:text-white/80","bg-surface-50 dark:bg-surface-800"]}),sorticon:({context:t})=>({class:["ml-2",t.sorted?"text-primary-700 dark:text-white/80":"text-surface-700 dark:text-white/70"]}),sortbadge:{class:["flex items-center justify-center align-middle","rounded-full","w-[1.143rem] leading-[1.143rem]","ml-2","text-primary-700 dark:text-white","bg-primary-50 dark:bg-primary-400/30"]},columnfilter:{class:"inline-flex items-center ml-auto"},filteroverlay:{class:["absolute top-0 left-0","border-0 dark:border","rounded-md","shadow-md","min-w-[12.5rem]","bg-surface-0 dark:bg-surface-800","text-surface-800 dark:text-white/80","dark:border-surface-700"]},filtermatchmodedropdown:{root:({state:t})=>({class:["flex","relative","my-2","w-full","rounded-md","bg-surface-0 dark:bg-surface-900","border border-surface-300 dark:border-surface-700","text-surface-800 dark:text-white/80","placeholder:text-surface-400 dark:placeholder:text-surface-500","transition-all","duration-200","hover:border-primary-500 dark:hover:border-primary-300",{"outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50":t.focused},"cursor-pointer","select-none"]})},filterrowitems:{class:"m-0 p-0 py-3 list-none"},filterrowitem:({context:t})=>({class:["font-normal","leading-none","relative","border-0","rounded-none","m-0","py-3 px-5",{"text-surface-700 dark:text-white/80":!(t!=null&&t.highlighted)},{"bg-surface-0 dark:bg-surface-800 text-surface-700 dark:text-white/80":!(t!=null&&t.highlighted)},{"bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":t==null?void 0:t.highlighted},{"bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":t==null?void 0:t.highlighted},{"hover:bg-surface-100 dark:hover:bg-surface-600/80":!(t!=null&&t.highlighted)},{"hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80":!(t!=null&&t.highlighted)},"focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50","transition-shadow","duration-200","cursor-pointer","overflow-hidden","whitespace-nowrap"]}),filteroperator:{class:["px-5 py-3","border-b border-solid","rounded-t-md","text-surface-700 dark:text-white/80","border-surface-200 dark:border-surface-800","bg-surface-0 dark:bg-surface-700"]},filteroperatordropdown:{root:({state:t})=>({class:["inline-flex","relative","w-full","rounded-md","bg-surface-0 dark:bg-surface-900","border border-surface-300 dark:border-surface-700","transition-all","duration-200","hover:border-primary-500 dark:hover:border-primary-300",{"outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50":t.focused},"cursor-pointer","select-none"]}),input:({props:t})=>({class:["font-sans","leading-none","block","flex-auto","bg-transparent","border-0",{"text-surface-800 dark:text-white/80":t.modelValue,"text-surface-400 dark:text-surface-500":!t.modelValue},"placeholder:text-surface-400 dark:placeholder:text-surface-500","w-[1%]","p-3","rounded-none","transition","duration-200","focus:outline-none focus:shadow-none","relative","cursor-pointer","overflow-hidden overflow-ellipsis","whitespace-nowrap","appearance-none"]}),trigger:{class:["flex items-center justify-center","shrink-0","bg-transparent","text-surface-500","w-12","rounded-tr-md","rounded-br-md"]},panel:{class:["absolute top-0 left-0","border-0 dark:border","rounded-md","shadow-md","bg-surface-0 dark:bg-surface-800","text-surface-800 dark:text-white/80","dark:border-surface-700"]},item:({context:t})=>({class:["font-normal","leading-none","relative","border-0","rounded-none","m-0","py-3 px-5",{"text-surface-700 dark:text-white/80":!t.focused&&!t.selected},{"bg-surface-50 dark:bg-surface-600/60 text-surface-700 dark:text-white/80":t.focused&&!t.selected},{"bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":t.focused&&t.selected},{"bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":!t.focused&&t.selected},{"hover:bg-surface-100 dark:hover:bg-surface-600/80":!t.focused&&!t.selected},{"hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80":t.focused&&!t.selected},"transition-shadow","duration-200","cursor-pointer","overflow-hidden","whitespace-nowrap"]})},filterconstraint:{class:["py-3 px-5","border-b border-solid","border-surface-200 dark:border-surface-700"]},filteraddrule:{class:"py-3 px-5"},filteraddrulebutton:{root:{class:["relative","items-center inline-flex text-center align-bottom justify-center","text-sm py-2 px-3 w-full","rounded-md","bg-transparent border-transparent","text-primary-500 dark:text-primary-400","hover:bg-primary-300/20","transition duration-200 ease-in-out","cursor-pointer overflow-hidden select-none"]},label:{class:"flex-auto grow-0"},icon:{class:"mr-2"}},filterremovebutton:{root:{class:["relative","items-center inline-flex text-center align-bottom justify-center","text-sm py-2 px-3 w-full mt-2","rounded-md","bg-transparent border-transparent","text-red-500 dark:text-red-400","hover:bg-red-300/20","transition duration-200 ease-in-out","cursor-pointer overflow-hidden select-none"]},label:{class:"flex-auto grow-0"},icon:{class:"mr-2"}},filterbuttonbar:{class:["flex items-center justify-between","py-3 px-5"]},filterclearbutton:{root:{class:["relative","items-center inline-flex text-center align-bottom justify-center","text-sm py-2 px-3","rounded-md","text-primary-500 border border-primary-500","hover:bg-primary-300/20","transition duration-200 ease-in-out","cursor-pointer overflow-hidden select-none"]}},filterapplybutton:{root:{class:["relative","items-center inline-flex text-center align-bottom justify-center","text-sm py-2 px-3","rounded-md","text-white dark:text-surface-900","bg-primary-500 dark:bg-primary-400","hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300","transition duration-200 ease-in-out","cursor-pointer overflow-hidden select-none"]}},filtermenubutton:({context:t})=>({class:["relative","inline-flex items-center justify-center","w-8 h-8","ml-2","rounded-full",{"bg-primary-50 text-primary-700":t.active},"dark:text-white/70 dark:hover:text-white/80 dark:bg-surface-800","hover:text-surface-700 hover:bg-surface-300/20","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50","transition duration-200","cursor-pointer no-underline overflow-hidden"]}),headerfilterclearbutton:({context:t})=>({class:["relative","inline-flex items-center justify-center","text-left","border-none","m-0 p-0 ml-2","bg-transparent","cursor-pointer no-underline overflow-hidden select-none",{invisible:!t.hidden}]}),rowtoggler:{class:["relative","inline-flex items-center justify-center","text-left","m-0 p-0","w-8 h-8","border-0 rounded-full","text-surface-500 dark:text-white/70","bg-transparent","focus-visible:outline-none focus-visible:outline-offset-0","focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50","transition duration-200","overflow-hidden","cursor-pointer select-none"]},columnresizer:{class:["block","absolute top-0 right-0","w-2 h-full","m-0 p-0","border border-transparent","cursor-col-resize"]},rowreordericon:{class:"cursor-move"},roweditorinitbutton:{class:["relative","inline-flex items-center justify-center","text-left","w-8 h-8","border-0 rounded-full","text-surface-700 dark:text-white/70","border-transparent","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50","hover:text-surface-700 hover:bg-surface-300/20","transition duration-200","overflow-hidden","cursor-pointer select-none"]},roweditorsavebutton:{class:["relative","inline-flex items-center justify-center","text-left","w-8 h-8","border-0 rounded-full","text-surface-700 dark:text-white/70","border-transparent","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50","hover:text-surface-700 hover:bg-surface-300/20","transition duration-200","overflow-hidden","cursor-pointer select-none"]},roweditorcancelbutton:{class:["relative","inline-flex items-center justify-center","text-left","w-8 h-8","border-0 rounded-full","text-surface-700 dark:text-white/70","border-transparent","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50","hover:text-surface-700 hover:bg-surface-300/20","transition duration-200","overflow-hidden","cursor-pointer select-none"]},radiobuttonwrapper:{class:["relative","inline-flex align-bottom","w-6 h-6","cursor-pointer select-none"]},radiobutton:({context:t})=>({class:["flex justify-center items-center","w-[1.571rem] h-[1.571rem]","border-2 rounded-full",{"text-surface-700 dark:text-white/80":!t.checked},{"bg-surface-0 dark:bg-surface-900":!t.checked},{"border-surface-300 dark:border-surface-700":!t.checked},{"border-primary-500 dark:border-primary-400":t.checked},{"bg-primary-500 dark:bg-primary-400":t.checked},{"hover:border-primary-500 dark:hover:border-primary-400":!t.disabled},{"outline-none outline-offset-0 ring ring-primary-400/50 ring-inset dark:ring-primary-300/50":t.focused},"transition duration-200 ease-in-out",{"cursor-default opacity-60":t.disabled}]}),radiobuttonicon:({context:t})=>({class:["block","rounded-full","w-3 h-3","bg-surface-0 dark:bg-surface-900","transition duration-200 transform",{"backface-hidden scale-10 invisible":t.checked===!1,"transform scale-100 visible":t.checked===!0}]}),headercheckboxwrapper:{class:["relative","inline-flex align-bottom","w-6 h-6","cursor-pointer select-none"]},headercheckbox:({context:t})=>({class:["flex items-center justify-center","border-2 rounded-lg","w-6 h-6","text-surface-600",{"border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":!t.checked,"border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":t.checked},"focus:outline-none focus:outline-offset-0",{"ring ring-primary-400/50 dark:ring-primary-300/50":t.focused},"transition-colors duration-200",{"cursor-default opacity-60":t.disabled}]}),headercheckboxicon:{class:["w-4 h-4","text-base leading-none","text-white dark:text-surface-900","transition-all duration-200"]},checkboxwrapper:{class:["relative","inline-flex align-bottom","w-6 h-6","cursor-pointer select-none"]},checkbox:({context:t})=>({class:["flex items-center justify-center","border-2 rounded-lg","w-6 h-6","text-surface-600",{"border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":!t.checked,"border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":t.checked},"focus:outline-none focus:outline-offset-0",{"ring ring-primary-400/50 dark:ring-primary-300/50":t.focused},"transition-colors duration-200",{"cursor-default opacity-60":t.disabled}]}),checkboxicon:{class:["w-4 h-4","text-base leading-none","text-white dark:text-surface-900","transition-all duration-200"]},transition:{enterFromClass:"opacity-0 scale-y-[0.8]",enterActiveClass:"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",leaveActiveClass:"transition-opacity duration-100 ease-linear",leaveToClass:"opacity-0"}},bodyrow:({context:t,props:e})=>({class:["dark:text-white/80",{"bg-primary-50 text-primary-600 dark:bg-primary-400/30":t.selected},{"bg-surface-0 text-surface-600 dark:bg-surface-800":!t.selected},{"font-bold bg-surface-0 dark:bg-surface-800":e.frozenRow},{"odd:bg-surface-0 odd:text-surface-600 dark:odd:bg-surface-800 even:bg-surface-50 even:text-surface-600 dark:even:bg-surface-900/50":t.stripedRows},{"hover:bg-surface-300/20 hover:text-surface-600":e.selectionMode&&!t.selected},{"transition duration-200":e.selectionMode&&!t.selected||e.rowHover},{"cursor-pointer":e.selectionMode}]}),rowexpansion:{class:"bg-surface-0 dark:bg-surface-800 text-surface-600 dark:text-white/80"},rowgroupheader:{class:["sticky z-20","bg-surface-0 text-surface-600 dark:text-white/70","dark:bg-surface-800"]},rowgroupfooter:{class:["sticky z-20","bg-surface-0 text-surface-600 dark:text-white/70","dark:bg-surface-800"]},rowgrouptoggler:{class:["relative","inline-flex items-center justify-center","text-left","m-0 p-0","w-8 h-8","border-0 rounded-full","text-surface-500 dark:text-white/70","bg-transparent","focus-visible:outline-none focus-visible:outline-offset-0","focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50","transition duration-200","overflow-hidden","cursor-pointer select-none"]},rowgrouptogglericon:{class:"inline-block w-4 h-4"},resizehelper:{class:"absolute hidden w-[2px] z-20 bg-primary-500 dark:bg-primary-400"}},selectbutton:{root:({props:t})=>({class:[{"opacity-60 select-none pointer-events-none cursor-default":t.disabled}]}),button:({context:t})=>({class:["relative","leading-normal text-base","inline-flex items-center align-bottom text-center","px-4 py-2","rounded-lg",{"bg-gray-0 text-gray-40":!t.active,"button-active bg-white text-inkwell-30":t.active},{"opacity-60 select-none pointer-events-none cursor-default":t.disabled},"transition duration-200","cursor-pointer select-none overflow-hidden"]}),label:{class:"font-bold"}},galleria:{content:({parent:t,props:e})=>({class:["flex",{"flex-col":e.fullScreen},{"flex-col":t.props.thumbnailsPosition==="top"||t.props.thumbnailsPosition==="bottom","flex-row":t.props.thumbnailsPosition==="right"||t.props.thumbnailsPosition==="left"}]}),itemwrapper:({parent:t,props:e})=>({class:["group","flex relative","mt-14 md:mt-20",{"grow shrink w-0 justify-center":e.fullScreen},{"flex-col":t.props.indicatorsPosition==="bottom"||t.props.indicatorsPosition==="top","flex-row items-center":t.props.indicatorsPosition==="left"||t.props.indicatorsPosition==="right"},{"order-2":t.props.thumbnailsPosition==="top"||t.props.thumbnailsPosition==="left","flex-row":t.props.thumbnailsPosition==="right"}]}),itemcontainer:({parent:t})=>({class:["flex w-full md:w-screen h-full relative",{"order-1":t.props.indicatorsPosition==="bottom"||t.props.indicatorsPosition==="right","order-2":t.props.indicatorsPosition==="top"||t.props.indicatorsPosition==="left"}]}),item:{class:["flex justify-center items-center","h-full w-full","rounded-lg overflow-auto","md:max-h-[592px] md:max-w-[592px] mx-auto"]},thumbnailwrapper:({parent:t})=>({class:["flex flex-col shrink-0",{"order-1":t.props.thumbnailsPosition==="top"||t.props.thumbnailsPosition==="left"},"overflow-auto"]}),thumbnailcontainer:({parent:t})=>({class:["flex","p-4","bg-transparent","md:max-w-[592px] mx-auto",{"flex-row":t.props.thumbnailsPosition==="top"||t.props.thumbnailsPosition==="bottom","flex-col grow":t.props.thumbnailsPosition==="right"||t.props.thumbnailsPosition==="left"}]}),previousthumbnailbutton:{class:["self-center relative","flex shrink-0 justify-center items-center overflow-hidden","m-2 ml-0","bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out","hover:bg-surface-0/10 hover:text-white","focus:outline-none focus:outline-offset-0"]},thumbnailitemscontainer:{class:"overflow-hidden w-full md:w-[30rem]"},thumbnailitems:({parent:t})=>({class:["flex",{"flex-col h-full":t.props.thumbnailsPosition==="right"||t.props.thumbnailsPosition==="left"}]}),thumbnailitem:({parent:t})=>({class:["flex items-center justify-center","grow shrink-0",{"w-full md:w-[25%]":t.props.thumbnailsPosition==="top"||t.props.thumbnailsPosition==="bottom"},"overflow-auto","cursor-pointer","hover:opacity-100","hover:transition-opacity","hover:duration-300"]}),nextthumbnailbutton:{class:["self-center relative","flex shrink-0 justify-center items-center overflow-hidden","m-2 mr-0","bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out","hover:bg-surface-0/10 hover:text-white","focus:outline-none focus:outline-offset-0"]},indicators:({parent:t})=>({class:["flex items-center justify-center","p-4",{"order-2":t.props.indicatorsPosition=="bottom","order-1":t.props.indicatorsPosition=="top","order-1 flex-col":t.props.indicatorsPosition=="left","flex-col order-2":t.props.indicatorsPosition=="right"},{"absolute z-10 bg-black/50":t.props.showIndicatorsOnItem},{"bottom-0 left-0 w-full items-start":t.props.indicatorsPosition=="bottom"&&t.props.showIndicatorsOnItem,"top-0 left-0 w-full items-start":t.props.indicatorsPosition=="top"&&t.props.showIndicatorsOnItem,"left-0 top-0 h-full items-start":t.props.indicatorsPosition=="left"&&t.props.showIndicatorsOnItem,"right-0 top-0 h-full items-start":t.props.indicatorsPosition=="right"&&t.props.showIndicatorsOnItem}]}),indicator:({parent:t})=>({class:[{"mr-2":t.props.indicatorsPosition=="bottom"||t.props.indicatorsPosition=="top","mb-2":t.props.indicatorsPosition=="left"||t.props.indicatorsPosition=="right"}]}),indicatorbutton:({context:t})=>({class:["w-2 h-2","rounded-full transition duration-200","focus:outline-none focus:outline-offset-0",{"bg-inkwell-30 hover:bg-surface-300 dark:bg-surface-700 dark:hover:bg-surface-600":!t.highlighted},{"bg-white hover:bg-primary-600":t.highlighted}]}),mask:{class:["fixed top-0 left-0 w-full h-full","flex items-center justify-center","bg-inkwell-40/95","image-overlay"]},closebutton:{class:["!absolute top-0 right-0","flex justify-center items-center overflow-hidden","m-2","text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out","focus:outline-none"]},closeicon:{class:"w-6 h-6"},previousitembutton:({parent:t})=>({class:["inline-flex justify-center items-center overflow-hidden","bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md",{"opacity-0 group-hover:opacity-100":t.props.showItemNavigatorsOnHover},"mx-2","top-1/2 mt-[-0.5rem] left-0",{"!absolute":t.props.showItemNavigators,"!fixed":!t.props.showItemNavigators},"hover:bg-surface-0/10 hover:text-white","focus:outline-none focus:outline-offset-0"]}),nextitembutton:({parent:t})=>({class:["inline-flex justify-center items-center overflow-hidden","bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md",{"opacity-0 group-hover:opacity-100":t.props.showItemNavigatorsOnHover},"mx-2","top-1/2 mt-[-0.5rem] right-0",{"!absolute":t.props.showItemNavigators,"!fixed":!t.props.showItemNavigators},"hover:bg-surface-0/10 hover:text-white","focus:outline-none focus:outline-offset-0"]}),caption:{class:["absolute bottom-0 left-0 w-full","bg-black/50 text-white p-4"]},transition:{enterFromClass:"opacity-0 scale-75",enterActiveClass:"transition-all duration-150 ease-in-out",leaveActiveClass:"transition-all duration-150 ease-in",leaveToClass:"opacity-0 scale-75"}},fileupload:{input:{class:"hidden"},buttonbar:{class:["flex","flex-wrap","bg-surface-50","dark:bg-surface-800","text-surface-700","dark:text-white/80","p-5","gap-2","border","border-solid","border-surface-200","dark:border-surface-700","border-b-0","rounded-tr-lg","rounded-tl-lg"]},chooseButton:{class:["relative","items-center inline-flex text-center align-bottom justify-center","px-4 py-3","rounded-md","leading-[normal]","font-bold","text-white dark:text-surface-900","bg-primary-500 dark:bg-primary-400","border-primary-500 dark:border-primary-400","hover:bg-primary-600 dark:hover:bg-primary-300","overflow-hidden","cursor-pointer"]},chooseIcon:{class:["mr-2","inline-block"]},chooseButtonLabel:{class:["flex-1","font-bold"]},uploadbutton:{icon:{class:"mr-2"}},cancelbutton:{icon:{class:"mr-2"}},content:{class:["relative","bg-surface-0","dark:bg-surface-900","text-surface-700","dark:text-white/80","p-8","border","border-surface-200","dark:border-surface-700","rounded-b-lg"]},file:{class:["flex","items-center","flex-wrap","p-4","mb-2","last:mb-0","border","border-surface-200","dark:border-surface-700","gap-2","rounded"]},thumbnail:{class:"shrink-0"},fileName:{class:"mb-2"},fileSize:{class:"mr-2"},uploadicon:{class:"mr-2"},progressbar:{root:{class:["overflow-hidden","absolute top-0 left-0","border-0","h-2","rounded-md","w-full","bg-surface-100 dark:bg-surface-700"]},value:{class:["absolute flex items-center justify-center overflow-hidden","bg-primary-500 dark:bg-primary-400","m-0","h-full w-0","border-0","transition-width duration-1000 ease-in-out"]}}}};q.DateTimePlugin=W_,q.PrimeVue=J_,q.PrimeVuePresets=Q_,q.QAccordion=tb,q.QAvatar=sb,q.QBadge=xi,q.QBanner=ub,q.QBottomSheet=Z8,q.QButton=J8,q.QButtonGroup=A9,q.QCheckbox=_9,q.QComment=Xh,q.QCommentSection=tk,q.QCounter=sk,q.QDatePicker=ZO,q.QDivider=GO,q.QFooterActions=QO,q.QFormGroup=iE,q.QGrid=$T,q.QIcon=J2,q.QInput=zT,q.QList=uM,q.QModal=pM,q.QModalContent=bM,q.QPageHeading=SM,q.QPageNavigation=TM,q.QPopover=PM,q.QSelect=cx,q.QTable=kN,q.QTag=TN,q.QTextarea=IN,q.QToast=$N,q.QTooltip=jN,q.QWysiwyg=Z_,q.filterData=$c,q.mq=Yr,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
446
+ `},datatable:{root:({props:t})=>({class:["relative",{"flex flex-col":t.scrollable&&t.scrollHeight==="flex"},{"h-full":t.scrollable&&t.scrollHeight==="flex"}]}),loadingoverlay:{class:["absolute","top-0 left-0","z-20","flex items-center justify-center","w-full h-full","bg-surface-100/0 dark:bg-surface-800/0","transition duration-200"]},loadingicon:{class:"w-8 h-8 animate-spin hidden"},wrapper:({props:t})=>({class:[{relative:t.scrollable,"flex flex-col grow":t.scrollable&&t.scrollHeight==="flex"},{"h-full":t.scrollable&&t.scrollHeight==="flex"}]}),header:({props:t})=>({class:["font-bold",t.showGridlines?"border-x border-t border-b-0":"border-y border-x-0","p-4","bg-surface-50 dark:bg-surface-800","border-surface-200 dark:border-surface-700","text-surface-700 dark:text-white/80"]}),table:{class:"w-full border-spacing-0 border-separate"},thead:({context:t})=>({class:[{"bg-surface-50 z-40 sticky":t.scrollable}]}),tbody:({instance:t,context:e})=>({class:[{"sticky z-20":t.frozenRow&&e.scrollable}]}),tfoot:({context:t})=>({class:[{"bg-surface-50 bottom-0 z-0":t.scrollable}]}),footer:{class:["font-bold","border-t-0 border-b border-x-0","p-4","bg-surface-50 dark:bg-surface-800","border-surface-200 dark:border-surface-700","text-surface-700 dark:text-white/80"]},column:{headercell:({context:t,props:e})=>({class:["font-bold",{"sticky z-20 border-b":e.frozen||e.frozen===""},{relative:t.resizable},"text-left",{"first:border-l border-y border-r":t==null?void 0:t.showGridlines},"border-0 border-b border-solid",(t==null?void 0:t.size)==="small"?"p-2":(t==null?void 0:t.size)==="large"?"p-5":"p-4",(e.sortable===""||e.sortable)&&t.sorted?"bg-primary-50 text-primary-700":"bg-surface-50 text-surface-700",(e.sortable===""||e.sortable)&&t.sorted?"dark:text-white dark:bg-primary-400/30":"dark:text-white/80 dark:bg-surface-800","border-surface-200 dark:border-surface-700 ",{"hover:bg-surface-100 dark:hover:bg-surface-400/30":(e.sortable===""||e.sortable)&&!(t!=null&&t.sorted)},"focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",{"transition duration-200":e.sortable===""||e.sortable},{"cursor-pointer":e.sortable===""||e.sortable},{"overflow-hidden space-nowrap border-y bg-clip-padding":t.resizable}]}),headercontent:{class:"flex items-center"},sort:({context:t})=>({class:[t.sorted?"text-primary-500":"text-surface-700",t.sorted?"dark:text-primary-400":"dark:text-white/80"]}),bodycell:({props:t,context:e,state:n,parent:r})=>({class:[{"sticky box-border border-b":r.instance.frozenRow},{"sticky box-border border-b":t.frozen||t.frozen===""},"text-left","border-0 border-b border-solid",{"first:border-l border-r border-b":e==null?void 0:e.showGridlines},{"bg-surface-0 dark:bg-surface-800":r.instance.frozenRow||t.frozen||t.frozen===""},{"p-2":(e==null?void 0:e.size)==="small"&&!n.d_editing},{"p-5":(e==null?void 0:e.size)==="large"&&!n.d_editing},{"p-4":(e==null?void 0:e.size)!=="large"&&(e==null?void 0:e.size)!=="small"&&!n.d_editing},{"py-[0.6rem] px-2":n.d_editing},"border-surface-200 dark:border-surface-700"]}),footercell:({context:t})=>({class:["font-bold","text-left","border-0 border-b border-solid",{"border-x border-y":t==null?void 0:t.showGridlines},(t==null?void 0:t.size)==="small"?"p-2":(t==null?void 0:t.size)==="large"?"p-5":"p-4","border-surface-200 dark:border-surface-700","text-surface-700 dark:text-white/80","bg-surface-50 dark:bg-surface-800"]}),sorticon:({context:t})=>({class:["ml-2",t.sorted?"text-primary-700 dark:text-white/80":"text-surface-700 dark:text-white/70"]}),sortbadge:{class:["flex items-center justify-center align-middle","rounded-full","w-[1.143rem] leading-[1.143rem]","ml-2","text-primary-700 dark:text-white","bg-primary-50 dark:bg-primary-400/30"]},columnfilter:{class:"inline-flex items-center ml-auto"},filteroverlay:{class:["absolute top-0 left-0","border-0 dark:border","rounded-md","shadow-md","min-w-[12.5rem]","bg-surface-0 dark:bg-surface-800","text-surface-800 dark:text-white/80","dark:border-surface-700"]},filtermatchmodedropdown:{root:({state:t})=>({class:["flex","relative","my-2","w-full","rounded-md","bg-surface-0 dark:bg-surface-900","border border-surface-300 dark:border-surface-700","text-surface-800 dark:text-white/80","placeholder:text-surface-400 dark:placeholder:text-surface-500","transition-all","duration-200","hover:border-primary-500 dark:hover:border-primary-300",{"outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50":t.focused},"cursor-pointer","select-none"]})},filterrowitems:{class:"m-0 p-0 py-3 list-none"},filterrowitem:({context:t})=>({class:["font-normal","leading-none","relative","border-0","rounded-none","m-0","py-3 px-5",{"text-surface-700 dark:text-white/80":!(t!=null&&t.highlighted)},{"bg-surface-0 dark:bg-surface-800 text-surface-700 dark:text-white/80":!(t!=null&&t.highlighted)},{"bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":t==null?void 0:t.highlighted},{"bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":t==null?void 0:t.highlighted},{"hover:bg-surface-100 dark:hover:bg-surface-600/80":!(t!=null&&t.highlighted)},{"hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80":!(t!=null&&t.highlighted)},"focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50","transition-shadow","duration-200","cursor-pointer","overflow-hidden","whitespace-nowrap"]}),filteroperator:{class:["px-5 py-3","border-b border-solid","rounded-t-md","text-surface-700 dark:text-white/80","border-surface-200 dark:border-surface-800","bg-surface-0 dark:bg-surface-700"]},filteroperatordropdown:{root:({state:t})=>({class:["inline-flex","relative","w-full","rounded-md","bg-surface-0 dark:bg-surface-900","border border-surface-300 dark:border-surface-700","transition-all","duration-200","hover:border-primary-500 dark:hover:border-primary-300",{"outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50":t.focused},"cursor-pointer","select-none"]}),input:({props:t})=>({class:["font-sans","leading-none","block","flex-auto","bg-transparent","border-0",{"text-surface-800 dark:text-white/80":t.modelValue,"text-surface-400 dark:text-surface-500":!t.modelValue},"placeholder:text-surface-400 dark:placeholder:text-surface-500","w-[1%]","p-3","rounded-none","transition","duration-200","focus:outline-none focus:shadow-none","relative","cursor-pointer","overflow-hidden overflow-ellipsis","whitespace-nowrap","appearance-none"]}),trigger:{class:["flex items-center justify-center","shrink-0","bg-transparent","text-surface-500","w-12","rounded-tr-md","rounded-br-md"]},panel:{class:["absolute top-0 left-0","border-0 dark:border","rounded-md","shadow-md","bg-surface-0 dark:bg-surface-800","text-surface-800 dark:text-white/80","dark:border-surface-700"]},item:({context:t})=>({class:["font-normal","leading-none","relative","border-0","rounded-none","m-0","py-3 px-5",{"text-surface-700 dark:text-white/80":!t.focused&&!t.selected},{"bg-surface-50 dark:bg-surface-600/60 text-surface-700 dark:text-white/80":t.focused&&!t.selected},{"bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":t.focused&&t.selected},{"bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":!t.focused&&t.selected},{"hover:bg-surface-100 dark:hover:bg-surface-600/80":!t.focused&&!t.selected},{"hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80":t.focused&&!t.selected},"transition-shadow","duration-200","cursor-pointer","overflow-hidden","whitespace-nowrap"]})},filterconstraint:{class:["py-3 px-5","border-b border-solid","border-surface-200 dark:border-surface-700"]},filteraddrule:{class:"py-3 px-5"},filteraddrulebutton:{root:{class:["relative","items-center inline-flex text-center align-bottom justify-center","text-sm py-2 px-3 w-full","rounded-md","bg-transparent border-transparent","text-primary-500 dark:text-primary-400","hover:bg-primary-300/20","transition duration-200 ease-in-out","cursor-pointer overflow-hidden select-none"]},label:{class:"flex-auto grow-0"},icon:{class:"mr-2"}},filterremovebutton:{root:{class:["relative","items-center inline-flex text-center align-bottom justify-center","text-sm py-2 px-3 w-full mt-2","rounded-md","bg-transparent border-transparent","text-red-500 dark:text-red-400","hover:bg-red-300/20","transition duration-200 ease-in-out","cursor-pointer overflow-hidden select-none"]},label:{class:"flex-auto grow-0"},icon:{class:"mr-2"}},filterbuttonbar:{class:["flex items-center justify-between","py-3 px-5"]},filterclearbutton:{root:{class:["relative","items-center inline-flex text-center align-bottom justify-center","text-sm py-2 px-3","rounded-md","text-primary-500 border border-primary-500","hover:bg-primary-300/20","transition duration-200 ease-in-out","cursor-pointer overflow-hidden select-none"]}},filterapplybutton:{root:{class:["relative","items-center inline-flex text-center align-bottom justify-center","text-sm py-2 px-3","rounded-md","text-white dark:text-surface-900","bg-primary-500 dark:bg-primary-400","hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300","transition duration-200 ease-in-out","cursor-pointer overflow-hidden select-none"]}},filtermenubutton:({context:t})=>({class:["relative","inline-flex items-center justify-center","w-8 h-8","ml-2","rounded-full",{"bg-primary-50 text-primary-700":t.active},"dark:text-white/70 dark:hover:text-white/80 dark:bg-surface-800","hover:text-surface-700 hover:bg-surface-300/20","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50","transition duration-200","cursor-pointer no-underline overflow-hidden"]}),headerfilterclearbutton:({context:t})=>({class:["relative","inline-flex items-center justify-center","text-left","border-none","m-0 p-0 ml-2","bg-transparent","cursor-pointer no-underline overflow-hidden select-none",{invisible:!t.hidden}]}),rowtoggler:{class:["relative","inline-flex items-center justify-center","text-left","m-0 p-0","w-8 h-8","border-0 rounded-full","text-surface-500 dark:text-white/70","bg-transparent","focus-visible:outline-none focus-visible:outline-offset-0","focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50","transition duration-200","overflow-hidden","cursor-pointer select-none"]},columnresizer:{class:["block","absolute top-0 right-0","w-2 h-full","m-0 p-0","border border-transparent","cursor-col-resize"]},rowreordericon:{class:"cursor-move"},roweditorinitbutton:{class:["relative","inline-flex items-center justify-center","text-left","w-8 h-8","border-0 rounded-full","text-surface-700 dark:text-white/70","border-transparent","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50","hover:text-surface-700 hover:bg-surface-300/20","transition duration-200","overflow-hidden","cursor-pointer select-none"]},roweditorsavebutton:{class:["relative","inline-flex items-center justify-center","text-left","w-8 h-8","border-0 rounded-full","text-surface-700 dark:text-white/70","border-transparent","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50","hover:text-surface-700 hover:bg-surface-300/20","transition duration-200","overflow-hidden","cursor-pointer select-none"]},roweditorcancelbutton:{class:["relative","inline-flex items-center justify-center","text-left","w-8 h-8","border-0 rounded-full","text-surface-700 dark:text-white/70","border-transparent","focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50","hover:text-surface-700 hover:bg-surface-300/20","transition duration-200","overflow-hidden","cursor-pointer select-none"]},radiobuttonwrapper:{class:["relative","inline-flex align-bottom","w-6 h-6","cursor-pointer select-none"]},radiobutton:({context:t})=>({class:["flex justify-center items-center","w-[1.571rem] h-[1.571rem]","border-2 rounded-full",{"text-surface-700 dark:text-white/80":!t.checked},{"bg-surface-0 dark:bg-surface-900":!t.checked},{"border-surface-300 dark:border-surface-700":!t.checked},{"border-primary-500 dark:border-primary-400":t.checked},{"bg-primary-500 dark:bg-primary-400":t.checked},{"hover:border-primary-500 dark:hover:border-primary-400":!t.disabled},{"outline-none outline-offset-0 ring ring-primary-400/50 ring-inset dark:ring-primary-300/50":t.focused},"transition duration-200 ease-in-out",{"cursor-default opacity-60":t.disabled}]}),radiobuttonicon:({context:t})=>({class:["block","rounded-full","w-3 h-3","bg-surface-0 dark:bg-surface-900","transition duration-200 transform",{"backface-hidden scale-10 invisible":t.checked===!1,"transform scale-100 visible":t.checked===!0}]}),headercheckboxwrapper:{class:["relative","inline-flex align-bottom","w-6 h-6","cursor-pointer select-none"]},headercheckbox:({context:t})=>({class:["flex items-center justify-center","border-2 rounded-lg","w-6 h-6","text-surface-600",{"border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":!t.checked,"border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":t.checked},"focus:outline-none focus:outline-offset-0",{"ring ring-primary-400/50 dark:ring-primary-300/50":t.focused},"transition-colors duration-200",{"cursor-default opacity-60":t.disabled}]}),headercheckboxicon:{class:["w-4 h-4","text-base leading-none","text-white dark:text-surface-900","transition-all duration-200"]},checkboxwrapper:{class:["relative","inline-flex align-bottom","w-6 h-6","cursor-pointer select-none"]},checkbox:({context:t})=>({class:["flex items-center justify-center","border-2 rounded-lg","w-6 h-6","text-surface-600",{"border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":!t.checked,"border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":t.checked},"focus:outline-none focus:outline-offset-0",{"ring ring-primary-400/50 dark:ring-primary-300/50":t.focused},"transition-colors duration-200",{"cursor-default opacity-60":t.disabled}]}),checkboxicon:{class:["w-4 h-4","text-base leading-none","text-white dark:text-surface-900","transition-all duration-200"]},transition:{enterFromClass:"opacity-0 scale-y-[0.8]",enterActiveClass:"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",leaveActiveClass:"transition-opacity duration-100 ease-linear",leaveToClass:"opacity-0"}},bodyrow:({context:t,props:e})=>({class:["dark:text-white/80",{"bg-primary-50 text-primary-600 dark:bg-primary-400/30":t.selected},{"bg-surface-0 text-surface-600 dark:bg-surface-800":!t.selected},{"font-bold bg-surface-0 dark:bg-surface-800":e.frozenRow},{"odd:bg-surface-0 odd:text-surface-600 dark:odd:bg-surface-800 even:bg-surface-50 even:text-surface-600 dark:even:bg-surface-900/50":t.stripedRows},{"hover:bg-surface-300/20 hover:text-surface-600":e.selectionMode&&!t.selected},{"transition duration-200":e.selectionMode&&!t.selected||e.rowHover},{"cursor-pointer":e.selectionMode}]}),rowexpansion:{class:"bg-surface-0 dark:bg-surface-800 text-surface-600 dark:text-white/80"},rowgroupheader:{class:["sticky z-20","bg-surface-0 text-surface-600 dark:text-white/70","dark:bg-surface-800"]},rowgroupfooter:{class:["sticky z-20","bg-surface-0 text-surface-600 dark:text-white/70","dark:bg-surface-800"]},rowgrouptoggler:{class:["relative","inline-flex items-center justify-center","text-left","m-0 p-0","w-8 h-8","border-0 rounded-full","text-surface-500 dark:text-white/70","bg-transparent","focus-visible:outline-none focus-visible:outline-offset-0","focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50","transition duration-200","overflow-hidden","cursor-pointer select-none"]},rowgrouptogglericon:{class:"inline-block w-4 h-4"},resizehelper:{class:"absolute hidden w-[2px] z-20 bg-primary-500 dark:bg-primary-400"}},selectbutton:{root:({props:t})=>({class:[{"opacity-60 select-none pointer-events-none cursor-default":t.disabled}]}),button:({context:t})=>({class:["relative","leading-normal text-base","inline-flex items-center align-bottom text-center","px-4 py-2","rounded-lg",{"bg-gray-0 text-gray-40":!t.active,"button-active bg-white text-inkwell-30":t.active},{"opacity-60 select-none pointer-events-none cursor-default":t.disabled},"transition duration-200","cursor-pointer select-none overflow-hidden"]}),label:{class:"font-bold"}},galleria:{content:({parent:t,props:e})=>({class:["flex",{"flex-col":e.fullScreen},{"flex-col":t.props.thumbnailsPosition==="top"||t.props.thumbnailsPosition==="bottom","flex-row":t.props.thumbnailsPosition==="right"||t.props.thumbnailsPosition==="left"}]}),itemwrapper:({parent:t,props:e})=>({class:["group","flex relative","mt-14 md:mt-20",{"grow shrink w-0 justify-center":e.fullScreen},{"flex-col":t.props.indicatorsPosition==="bottom"||t.props.indicatorsPosition==="top","flex-row items-center":t.props.indicatorsPosition==="left"||t.props.indicatorsPosition==="right"},{"order-2":t.props.thumbnailsPosition==="top"||t.props.thumbnailsPosition==="left","flex-row":t.props.thumbnailsPosition==="right"}]}),itemcontainer:({parent:t})=>({class:["flex w-full md:w-screen h-full relative",{"order-1":t.props.indicatorsPosition==="bottom"||t.props.indicatorsPosition==="right","order-2":t.props.indicatorsPosition==="top"||t.props.indicatorsPosition==="left"}]}),item:{class:["flex justify-center items-center","h-full w-full","rounded-lg overflow-auto","md:max-h-[592px] md:max-w-[592px] mx-auto"]},thumbnailwrapper:({parent:t})=>({class:["flex flex-col shrink-0",{"order-1":t.props.thumbnailsPosition==="top"||t.props.thumbnailsPosition==="left"},"overflow-auto"]}),thumbnailcontainer:({parent:t})=>({class:["flex","p-4","bg-transparent","md:max-w-[592px] mx-auto",{"flex-row":t.props.thumbnailsPosition==="top"||t.props.thumbnailsPosition==="bottom","flex-col grow":t.props.thumbnailsPosition==="right"||t.props.thumbnailsPosition==="left"}]}),previousthumbnailbutton:{class:["self-center relative","flex shrink-0 justify-center items-center overflow-hidden","m-2 ml-0","bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out","hover:bg-surface-0/10 hover:text-white","focus:outline-none focus:outline-offset-0"]},thumbnailitemscontainer:{class:"overflow-hidden w-full md:w-[30rem]"},thumbnailitems:({parent:t})=>({class:["flex",{"flex-col h-full":t.props.thumbnailsPosition==="right"||t.props.thumbnailsPosition==="left"}]}),thumbnailitem:({parent:t})=>({class:["flex items-center justify-center","grow shrink-0",{"w-full md:w-[25%]":t.props.thumbnailsPosition==="top"||t.props.thumbnailsPosition==="bottom"},"overflow-auto","cursor-pointer","hover:opacity-100","hover:transition-opacity","hover:duration-300"]}),nextthumbnailbutton:{class:["self-center relative","flex shrink-0 justify-center items-center overflow-hidden","m-2 mr-0","bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out","hover:bg-surface-0/10 hover:text-white","focus:outline-none focus:outline-offset-0"]},indicators:({parent:t})=>({class:["flex items-center justify-center","p-4",{"order-2":t.props.indicatorsPosition=="bottom","order-1":t.props.indicatorsPosition=="top","order-1 flex-col":t.props.indicatorsPosition=="left","flex-col order-2":t.props.indicatorsPosition=="right"},{"absolute z-10 bg-black/50":t.props.showIndicatorsOnItem},{"bottom-0 left-0 w-full items-start":t.props.indicatorsPosition=="bottom"&&t.props.showIndicatorsOnItem,"top-0 left-0 w-full items-start":t.props.indicatorsPosition=="top"&&t.props.showIndicatorsOnItem,"left-0 top-0 h-full items-start":t.props.indicatorsPosition=="left"&&t.props.showIndicatorsOnItem,"right-0 top-0 h-full items-start":t.props.indicatorsPosition=="right"&&t.props.showIndicatorsOnItem}]}),indicator:({parent:t})=>({class:[{"mr-2":t.props.indicatorsPosition=="bottom"||t.props.indicatorsPosition=="top","mb-2":t.props.indicatorsPosition=="left"||t.props.indicatorsPosition=="right"}]}),indicatorbutton:({context:t})=>({class:["w-2 h-2","rounded-full transition duration-200","focus:outline-none focus:outline-offset-0",{"bg-inkwell-30 hover:bg-surface-300 dark:bg-surface-700 dark:hover:bg-surface-600":!t.highlighted},{"bg-white hover:bg-primary-600":t.highlighted}]}),mask:{class:["fixed top-0 left-0 w-full h-full","flex items-center justify-center","bg-inkwell-40/95","image-overlay"]},closebutton:{class:["!absolute top-0 right-0","flex justify-center items-center overflow-hidden","m-2","text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out","focus:outline-none"]},closeicon:{class:"w-6 h-6"},previousitembutton:({parent:t})=>({class:["inline-flex justify-center items-center overflow-hidden","bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md",{"opacity-0 group-hover:opacity-100":t.props.showItemNavigatorsOnHover},"mx-2","top-1/2 mt-[-0.5rem] left-0",{"!absolute":t.props.showItemNavigators,"!fixed":!t.props.showItemNavigators},"hover:bg-surface-0/10 hover:text-white","focus:outline-none focus:outline-offset-0"]}),nextitembutton:({parent:t})=>({class:["inline-flex justify-center items-center overflow-hidden","bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md",{"opacity-0 group-hover:opacity-100":t.props.showItemNavigatorsOnHover},"mx-2","top-1/2 mt-[-0.5rem] right-0",{"!absolute":t.props.showItemNavigators,"!fixed":!t.props.showItemNavigators},"hover:bg-surface-0/10 hover:text-white","focus:outline-none focus:outline-offset-0"]}),caption:{class:["absolute bottom-0 left-0 w-full","bg-black/50 text-white p-4"]},transition:{enterFromClass:"opacity-0 scale-75",enterActiveClass:"transition-all duration-150 ease-in-out",leaveActiveClass:"transition-all duration-150 ease-in",leaveToClass:"opacity-0 scale-75"}},fileupload:{input:{class:"hidden"},buttonbar:{class:["flex","flex-wrap","bg-surface-50","dark:bg-surface-800","text-surface-700","dark:text-white/80","p-5","gap-2","border","border-solid","border-surface-200","dark:border-surface-700","border-b-0","rounded-tr-lg","rounded-tl-lg"]},chooseButton:{class:["relative","items-center inline-flex text-center align-bottom justify-center","px-4 py-3","rounded-md","leading-[normal]","font-bold","text-white dark:text-surface-900","bg-primary-500 dark:bg-primary-400","border-primary-500 dark:border-primary-400","hover:bg-primary-600 dark:hover:bg-primary-300","overflow-hidden","cursor-pointer"]},chooseIcon:{class:["mr-2","inline-block"]},chooseButtonLabel:{class:["flex-1","font-bold"]},uploadbutton:{icon:{class:"mr-2"}},cancelbutton:{icon:{class:"mr-2"}},content:{class:["relative","bg-surface-0","dark:bg-surface-900","text-surface-700","dark:text-white/80","p-8","border","border-surface-200","dark:border-surface-700","rounded-b-lg"]},file:{class:["flex","items-center","flex-wrap","p-4","mb-2","last:mb-0","border","border-surface-200","dark:border-surface-700","gap-2","rounded"]},thumbnail:{class:"shrink-0"},fileName:{class:"mb-2"},fileSize:{class:"mr-2"},uploadicon:{class:"mr-2"},progressbar:{root:{class:["overflow-hidden","absolute top-0 left-0","border-0","h-2","rounded-md","w-full","bg-surface-100 dark:bg-surface-700"]},value:{class:["absolute flex items-center justify-center overflow-hidden","bg-primary-500 dark:bg-primary-400","m-0","h-full w-0","border-0","transition-width duration-1000 ease-in-out"]}}}};q.DateTimePlugin=U_,q.PrimeVue=Q_,q.PrimeVuePresets=X_,q.QAccordion=tb,q.QAvatar=sb,q.QBadge=xi,q.QBanner=ub,q.QBottomSheet=Z8,q.QButton=J8,q.QButtonGroup=A9,q.QCheckbox=_9,q.QComment=Xh,q.QCommentSection=tk,q.QCounter=sk,q.QDatePicker=ZO,q.QDivider=GO,q.QFooterActions=QO,q.QFormGroup=iE,q.QGrid=$T,q.QIcon=J2,q.QInput=zT,q.QList=dM,q.QModal=hM,q.QModalContent=wM,q.QPageHeading=kM,q.QPageNavigation=MM,q.QPopover=DM,q.QSelect=ux,q.QTable=ON,q.QTag=MN,q.QTextarea=NN,q.QToast=FN,q.QTooltip=ZN,q.QWysiwyg=W_,q.filterData=$c,q.mq=Yr,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});