UNPKG

kodama-ui

Version:

Kodama UI is a Vue 3 component library that provides a set of components & funcionality to build your application.

238 lines 1.22 MB
(function(Ft,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(Ft=typeof globalThis<"u"?globalThis:Ft||self,i(Ft.Kodama={},Ft.Vue))})(this,function(Ft,i){"use strict";var wh=!1;function zs(t,e,n){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,n),n):(t[e]=n,n)}function jc(t,e){if(Array.isArray(t)){t.splice(e,1);return}delete t[e]}function ik(){return vh().__VUE_DEVTOOLS_GLOBAL_HOOK__}function vh(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const ak=typeof Proxy=="function",sk="devtools-plugin:setup",lk="plugin:settings:set";let ci,Uc;function uk(){var t;return ci!==void 0||(typeof window<"u"&&window.performance?(ci=!0,Uc=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(ci=!0,Uc=global.perf_hooks.performance):ci=!1),ci}function ck(){return uk()?Uc.now():Date.now()}class dk{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const s in e.settings){const l=e.settings[s];r[s]=l.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let a=Object.assign({},r);try{const s=localStorage.getItem(o),l=JSON.parse(s);Object.assign(a,l)}catch{}this.fallbacks={getSettings(){return a},setSettings(s){try{localStorage.setItem(o,JSON.stringify(s))}catch{}a=s},now(){return ck()}},n&&n.on(lk,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...u)=>{this.onQueue.push({method:l,args:u})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...u)=>(this.targetQueue.push({method:l,args:u,resolve:()=>{}}),this.fallbacks[l](...u)):(...u)=>new Promise(c=>{this.targetQueue.push({method:l,args:u,resolve:c})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Wc(t,e){const n=t,r=vh(),o=ik(),a=ak&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))o.emit(sk,t,e);else{const s=a?new dk(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:s}),s&&e(s.proxiedTarget)}}/*!
  * pinia v2.0.35
  * (c) 2023 Eduardo San Martin Morote
  * @license MIT
  */let ma;const ga=t=>ma=t,kh=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ko(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Wn;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Wn||(Wn={}));const Fs=typeof window<"u",ba=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Fs,xh=(()=>typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null})();function fk(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}function Kc(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Sh(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Eh(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Hs(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const qs=typeof navigator=="object"?navigator:{userAgent:""},Ch=(()=>/Macintosh/.test(qs.userAgent)&&/AppleWebKit/.test(qs.userAgent)&&!/Safari/.test(qs.userAgent))(),Sh=Fs?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Ch?pk:"msSaveOrOpenBlob"in qs?hk:mk:()=>{};function pk(t,e="download",n){const r=document.createElement("a");r.download=e,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?Eh(r.href)?Kc(t,e,n):(r.target="_blank",Hs(r)):Hs(r)):(r.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Hs(r)},0))}function hk(t,e="download",n){if(typeof t=="string")if(Eh(t))Kc(t,e,n);else{const r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Hs(r)})}else navigator.msSaveOrOpenBlob(fk(t,n),e)}function mk(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Kc(t,e,n);const o=t.type==="application/octet-stream",a=/constructor/i.test(String(xh.HTMLElement))||"safari"in xh,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&a||Ch)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let u=l.result;if(typeof u!="string")throw r=null,new Error("Wrong reader.result type");u=s?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=u:location.assign(u),r=null},l.readAsDataURL(t)}else{const l=URL.createObjectURL(t);r?r.location.assign(l):location.href=l,r=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function wt(t,e){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function Yc(t){return"_a"in t&&"install"in t}function _h(){if(!("clipboard"in navigator))return wt("Your browser doesn't support the Clipboard API","error"),!0}function Th(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(wt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function gk(t){if(!_h())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),wt("Global state copied to clipboard.")}catch(e){if(Th(e))return;wt("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function bk(t){if(!_h())try{t.state.value=JSON.parse(await navigator.clipboard.readText()),wt("Global state pasted from clipboard.")}catch(e){if(Th(e))return;wt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function yk(t){try{Sh(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){wt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let yr;function wk(){yr||(yr=document.createElement("input"),yr.type="file",yr.accept=".json");function t(){return new Promise((e,n)=>{yr.onchange=async()=>{const r=yr.files;if(!r)return e(null);const o=r.item(0);return e(o?{text:await o.text(),file:o}:null)},yr.oncancel=()=>e(null),yr.onerror=n,yr.click()})}return t}async function vk(t){try{const n=await(await wk())();if(!n)return;const{text:r,file:o}=n;t.state.value=JSON.parse(r),wt(`Global state imported from "${o.name}".`)}catch(e){wt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}function Ln(t){return{_custom:{display:t}}}const Nh="🍍 Pinia (root)",Gc="_root";function kk(t){return Yc(t)?{id:Gc,label:Nh}:{id:t.$id,label:t.$id}}function xk(t){if(Yc(t)){const n=Array.from(t._s.keys()),r=t._s;return{state:n.map(a=>({editable:!0,key:a,value:t.state.value[a]})),getters:n.filter(a=>r.get(a)._getters).map(a=>{const s=r.get(a);return{editable:!1,key:a,value:s._getters.reduce((l,u)=>(l[u]=s[u],l),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function Ek(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Ln(t.type),key:Ln(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function Ck(t){switch(t){case Wn.direct:return"mutation";case Wn.patchFunction:return"$patch";case Wn.patchObject:return"$patch";default:return"unknown"}}let di=!0;const js=[],xo="pinia:mutations",Pt="pinia",{assign:Sk}=Object,Us=t=>"🍍 "+t;function _k(t,e){Wc({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:js,app:t},n=>{typeof n.now!="function"&&wt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:xo,label:"Pinia 🍍",color:15064968}),n.addInspector({id:Pt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{gk(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await bk(e),n.sendInspectorTree(Pt),n.sendInspectorState(Pt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{yk(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await vk(e),n.sendInspectorTree(Pt),n.sendInspectorState(Pt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:"Reset the state (option store only)",action:r=>{const o=e._s.get(r);o?o._isOptionsAPI?(o.$reset(),wt(`Store "${r}" reset.`)):wt(`Cannot reset "${r}" store because it's a setup store.`,"warn"):wt(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,o)=>{const a=r.componentInstance&&r.componentInstance.proxy;if(a&&a._pStores){const s=r.componentInstance.proxy._pStores;Object.values(s).forEach(l=>{r.instanceData.state.push({type:Us(l.$id),key:"state",editable:!0,value:l._isOptionsAPI?{_custom:{value:i.toRaw(l.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>l.$reset()}]}}:Object.keys(l.$state).reduce((u,c)=>(u[c]=l.$state[c],u),{})}),l._getters&&l._getters.length&&r.instanceData.state.push({type:Us(l.$id),key:"getters",editable:!1,value:l._getters.reduce((u,c)=>{try{u[c]=l[c]}catch(d){u[c]=d}return u},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===t&&r.inspectorId===Pt){let o=[e];o=o.concat(Array.from(e._s.values())),r.rootNodes=(r.filter?o.filter(a=>"$id"in a?a.$id.toLowerCase().includes(r.filter.toLowerCase()):Nh.toLowerCase().includes(r.filter.toLowerCase())):o).map(kk)}}),n.on.getInspectorState(r=>{if(r.app===t&&r.inspectorId===Pt){const o=r.nodeId===Gc?e:e._s.get(r.nodeId);if(!o)return;o&&(r.state=xk(o))}}),n.on.editInspectorState((r,o)=>{if(r.app===t&&r.inspectorId===Pt){const a=r.nodeId===Gc?e:e._s.get(r.nodeId);if(!a)return wt(`store "${r.nodeId}" not found`,"error");const{path:s}=r;Yc(a)?s.unshift("state"):(s.length!==1||!a._customProperties.has(s[0])||s[0]in a.$state)&&s.unshift("$state"),di=!1,r.set(a,s,r.state.value),di=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),a=e._s.get(o);if(!a)return wt(`store "${o}" not found`,"error");const{path:s}=r;if(s[0]!=="state")return wt(`Invalid path for store "${o}":
${s}
Only state can be modified.`);s[0]="$state",di=!1,r.set(a,s,r.state.value),di=!0}})})}function Tk(t,e){js.includes(Us(e.$id))||js.push(Us(e.$id)),Wc({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:js,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;e.$onAction(({after:s,onError:l,name:u,args:c})=>{const d=Oh++;n.addTimelineEvent({layerId:xo,event:{time:r(),title:"🛫 "+u,subtitle:"start",data:{store:Ln(e.$id),action:Ln(u),args:c},groupId:d}}),s(p=>{Eo=void 0,n.addTimelineEvent({layerId:xo,event:{time:r(),title:"🛬 "+u,subtitle:"end",data:{store:Ln(e.$id),action:Ln(u),args:c,result:p},groupId:d}})}),l(p=>{Eo=void 0,n.addTimelineEvent({layerId:xo,event:{time:r(),logType:"error",title:"💥 "+u,subtitle:"end",data:{store:Ln(e.$id),action:Ln(u),args:c,error:p},groupId:d}})})},!0),e._customProperties.forEach(s=>{i.watch(()=>i.unref(e[s]),(l,u)=>{n.notifyComponentUpdate(),n.sendInspectorState(Pt),di&&n.addTimelineEvent({layerId:xo,event:{time:r(),title:"Change",subtitle:s,data:{newValue:l,oldValue:u},groupId:Eo}})},{deep:!0})}),e.$subscribe(({events:s,type:l},u)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(Pt),!di)return;const c={time:r(),title:Ck(l),data:Sk({store:Ln(e.$id)},Ek(s)),groupId:Eo};Eo=void 0,l===Wn.patchFunction?c.subtitle="⤵️":l===Wn.patchObject?c.subtitle="🧩":s&&!Array.isArray(s)&&(c.subtitle=s.type),s&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:s}}),n.addTimelineEvent({layerId:xo,event:c})},{detached:!0,flush:"sync"});const o=e._hotUpdate;e._hotUpdate=i.markRaw(s=>{o(s),n.addTimelineEvent({layerId:xo,event:{time:r(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:Ln(e.$id),info:Ln("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(Pt),n.sendInspectorState(Pt)});const{$dispose:a}=e;e.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(Pt),n.sendInspectorState(Pt),n.getSettings().logStoreChanges&&wt(`Disposed "${e.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(Pt),n.sendInspectorState(Pt),n.getSettings().logStoreChanges&&wt(`"${e.$id}" store installed 🆕`)})}let Oh=0,Eo;function $h(t,e){const n=e.reduce((r,o)=>(r[o]=i.toRaw(t)[o],r),{});for(const r in n)t[r]=function(){const o=Oh,a=new Proxy(t,{get(...s){return Eo=o,Reflect.get(...s)},set(...s){return Eo=o,Reflect.set(...s)}});return n[r].apply(a,arguments)}}function Nk({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(n.state&&(e._isOptionsAPI=!0),typeof n.state=="function"){$h(e,Object.keys(n.actions));const r=e._hotUpdate;i.toRaw(e)._hotUpdate=function(o){r.apply(this,arguments),$h(e,Object.keys(o._hmrPayload.actions))}}Tk(t,e)}}function Ok(){const t=i.effectScope(!0),e=t.run(()=>i.ref({}));let n=[],r=[];const o=i.markRaw({install(a){ga(o),o._a=a,a.provide(kh,o),a.config.globalProperties.$pinia=o,ba&&_k(a,o),r.forEach(s=>n.push(s)),r=[]},use(a){return!this._a&&!wh?r.push(a):n.push(a),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return ba&&typeof Proxy<"u"&&o.use(Nk),o}function Ah(t,e){for(const n in e){const r=e[n];if(!(n in t))continue;const o=t[n];ko(o)&&ko(r)&&!i.isRef(r)&&!i.isReactive(r)?t[n]=Ah(o,r):t[n]=r}return t}const Mh=()=>{};function Dh(t,e,n,r=Mh){t.push(e);const o=()=>{const a=t.indexOf(e);a>-1&&(t.splice(a,1),r())};return!n&&i.getCurrentScope()&&i.onScopeDispose(o),o}function fi(t,...e){t.slice().forEach(n=>{n(...e)})}function Jc(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],o=t[n];ko(o)&&ko(r)&&t.hasOwnProperty(n)&&!i.isRef(r)&&!i.isReactive(r)?t[n]=Jc(o,r):t[n]=r}return t}const $k=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Ak(t){return!ko(t)||!t.hasOwnProperty($k)}const{assign:Cn}=Object;function Bh(t){return!!(i.isRef(t)&&t.effect)}function Ph(t,e,n,r){const{state:o,actions:a,getters:s}=e,l=n.state.value[t];let u;function c(){!l&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[t]=o?o():{});const d=process.env.NODE_ENV!=="production"&&r?i.toRefs(i.ref(o?o():{}).value):i.toRefs(n.state.value[t]);return Cn(d,a,Object.keys(s||{}).reduce((p,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${t}".`),p[f]=i.markRaw(i.computed(()=>{ga(n);const h=n._s.get(t);return s[f].call(h,h)})),p),{}))}return u=Xc(t,c,e,n,r,!0),u}function Xc(t,e,n={},r,o,a){let s;const l=Cn({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const u={deep:!0};process.env.NODE_ENV!=="production"&&!wh&&(u.onTrigger=B=>{c?h=B:c==!1&&!C._hotUpdating&&(Array.isArray(h)?h.push(B):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,d,p=i.markRaw([]),f=i.markRaw([]),h;const m=r.state.value[t];!a&&!m&&(process.env.NODE_ENV==="production"||!o)&&(r.state.value[t]={});const g=i.ref({});let b;function v(B){let L;c=d=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof B=="function"?(B(r.state.value[t]),L={type:Wn.patchFunction,storeId:t,events:h}):(Jc(r.state.value[t],B),L={type:Wn.patchObject,payload:B,storeId:t,events:h});const k=b=Symbol();i.nextTick().then(()=>{b===k&&(c=!0)}),d=!0,fi(p,L,r.state.value[t])}const x=a?function(){const{state:L}=n,k=L?L():{};this.$patch($=>{Cn($,k)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:Mh;function N(){s.stop(),p=[],f=[],r._s.delete(t)}function y(B,L){return function(){ga(r);const k=Array.from(arguments),$=[],D=[];function V(w){$.push(w)}function S(w){D.push(w)}fi(f,{args:k,name:B,store:C,after:V,onError:S});let O;try{O=L.apply(this&&this.$id===t?this:C,k)}catch(w){throw fi(D,w),w}return O instanceof Promise?O.then(w=>(fi($,w),w)).catch(w=>(fi(D,w),Promise.reject(w))):(fi($,O),O)}}const M=i.markRaw({actions:{},getters:{},state:[],hotState:g}),E={_p:r,$id:t,$onAction:Dh.bind(null,f),$patch:v,$reset:x,$subscribe(B,L={}){const k=Dh(p,B,L.detached,()=>$()),$=s.run(()=>i.watch(()=>r.state.value[t],D=>{(L.flush==="sync"?d:c)&&B({storeId:t,type:Wn.direct,events:h},D)},Cn({},u,L)));return k},$dispose:N},C=i.reactive(process.env.NODE_ENV!=="production"||ba?Cn({_hmrPayload:M,_customProperties:i.markRaw(new Set)},E):E);r._s.set(t,C);const T=r._e.run(()=>(s=i.effectScope(),s.run(()=>e())));for(const B in T){const L=T[B];if(i.isRef(L)&&!Bh(L)||i.isReactive(L))process.env.NODE_ENV!=="production"&&o?zs(g.value,B,i.toRef(T,B)):a||(m&&Ak(L)&&(i.isRef(L)?L.value=m[B]:Jc(L,m[B])),r.state.value[t][B]=L),process.env.NODE_ENV!=="production"&&M.state.push(B);else if(typeof L=="function"){const k=process.env.NODE_ENV!=="production"&&o?L:y(B,L);T[B]=k,process.env.NODE_ENV!=="production"&&(M.actions[B]=L),l.actions[B]=L}else process.env.NODE_ENV!=="production"&&Bh(L)&&(M.getters[B]=a?n.getters[B]:L,Fs&&(T._getters||(T._getters=i.markRaw([]))).push(B))}if(Cn(C,T),Cn(i.toRaw(C),T),Object.defineProperty(C,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?g.value:r.state.value[t],set:B=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");v(L=>{Cn(L,B)})}}),process.env.NODE_ENV!=="production"&&(C._hotUpdate=i.markRaw(B=>{C._hotUpdating=!0,B._hmrPayload.state.forEach(L=>{if(L in C.$state){const k=B.$state[L],$=C.$state[L];typeof k=="object"&&ko(k)&&ko($)?Ah(k,$):B.$state[L]=$}zs(C,L,i.toRef(B.$state,L))}),Object.keys(C.$state).forEach(L=>{L in B.$state||jc(C,L)}),c=!1,d=!1,r.state.value[t]=i.toRef(B._hmrPayload,"hotState"),d=!0,i.nextTick().then(()=>{c=!0});for(const L in B._hmrPayload.actions){const k=B[L];zs(C,L,y(L,k))}for(const L in B._hmrPayload.getters){const k=B._hmrPayload.getters[L],$=a?i.computed(()=>(ga(r),k.call(C,C))):k;zs(C,L,$)}Object.keys(C._hmrPayload.getters).forEach(L=>{L in B._hmrPayload.getters||jc(C,L)}),Object.keys(C._hmrPayload.actions).forEach(L=>{L in B._hmrPayload.actions||jc(C,L)}),C._hmrPayload=B._hmrPayload,C._getters=B._getters,C._hotUpdating=!1})),ba){const B={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(L=>{Object.defineProperty(C,L,Cn({value:C[L]},B))})}return r._p.forEach(B=>{if(ba){const L=s.run(()=>B({store:C,app:r._a,pinia:r,options:l}));Object.keys(L||{}).forEach(k=>C._customProperties.add(k)),Cn(C,L)}else Cn(C,s.run(()=>B({store:C,app:r._a,pinia:r,options:l})))}),process.env.NODE_ENV!=="production"&&C.$state&&typeof C.$state=="object"&&typeof C.$state.constructor=="function"&&!C.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
	state: () => new MyClass()
Found in store "${C.$id}".`),m&&a&&n.hydrate&&n.hydrate(C.$state,m),c=!0,d=!0,C}function Vh(t,e,n){let r,o;const a=typeof e=="function";typeof t=="string"?(r=t,o=a?n:e):(o=t,r=t.id);function s(l,u){const c=i.getCurrentInstance();if(l=(process.env.NODE_ENV==="test"&&ma&&ma._testing?null:l)||c&&i.inject(kh,null),l&&ga(l),process.env.NODE_ENV!=="production"&&!ma)throw new Error(`[🍍]: getActivePinia was called with no active Pinia. Did you forget to install pinia?
	const pinia = createPinia()
	app.use(pinia)
This will fail in production.`);l=ma,l._s.has(r)||(a?Xc(r,e,o,l):Ph(r,o,l),process.env.NODE_ENV!=="production"&&(s._pinia=l));const d=l._s.get(r);if(process.env.NODE_ENV!=="production"&&u){const p="__hot:"+r,f=a?Xc(p,e,o,l,!0):Ph(p,Cn({},o),l,!0);u._hotUpdate(f),delete l.state.value[p],l._s.delete(p)}if(process.env.NODE_ENV!=="production"&&Fs&&c&&c.proxy&&!u){const p=c.proxy,f="_pStores"in p?p._pStores:p._pStores={};f[r]=d}return d}return s.$id=r,s}/*!
  * vue-tippy v6.6.0
  * (c) 2024 
  * @license MIT
  */var Qt="top",Sn="bottom",_n="right",Zt="left",Qc="auto",ya=[Qt,Sn,_n,Zt],pi="start",wa="end",Mk="clippingParents",Lh="viewport",va="popper",Dk="reference",Ih=ya.reduce(function(t,e){return t.concat([e+"-"+pi,e+"-"+wa])},[]),Rh=[].concat(ya,[Qc]).reduce(function(t,e){return t.concat([e,e+"-"+pi,e+"-"+wa])},[]),Bk="beforeRead",Pk="read",Vk="afterRead",Lk="beforeMain",Ik="main",Rk="afterMain",zk="beforeWrite",Fk="write",Hk="afterWrite",qk=[Bk,Pk,Vk,Lk,Ik,Rk,zk,Fk,Hk];function Kn(t){return t?(t.nodeName||"").toLowerCase():null}function In(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function hi(t){var e=In(t).Element;return t instanceof e||t instanceof Element}function Tn(t){var e=In(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function zh(t){if(typeof ShadowRoot>"u")return!1;var e=In(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function jk(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},a=e.elements[n];!Tn(a)||!Kn(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function Uk(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],a=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=s.reduce(function(u,c){return u[c]="",u},{});!Tn(o)||!Kn(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}var Fh={name:"applyStyles",enabled:!0,phase:"write",fn:jk,effect:Uk,requires:["computeStyles"]};function Yn(t){return t.split("-")[0]}var Co=Math.max,Ws=Math.min,mi=Math.round;function gi(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,o=1;if(Tn(t)&&e){var a=t.offsetHeight,s=t.offsetWidth;s>0&&(r=mi(n.width)/s||1),a>0&&(o=mi(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Zc(t){var e=gi(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 Hh(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&zh(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gn(t){return In(t).getComputedStyle(t)}function Wk(t){return["table","td","th"].indexOf(Kn(t))>=0}function Vr(t){return((hi(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ks(t){return Kn(t)==="html"?t:t.assignedSlot||t.parentNode||(zh(t)?t.host:null)||Vr(t)}function qh(t){return!Tn(t)||Gn(t).position==="fixed"?null:t.offsetParent}function Kk(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Tn(t)){var r=Gn(t);if(r.position==="fixed")return null}for(var o=Ks(t);Tn(o)&&["html","body"].indexOf(Kn(o))<0;){var a=Gn(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function ka(t){for(var e=In(t),n=qh(t);n&&Wk(n)&&Gn(n).position==="static";)n=qh(n);return n&&(Kn(n)==="html"||Kn(n)==="body"&&Gn(n).position==="static")?e:n||Kk(t)||e}function ed(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xa(t,e,n){return Co(t,Ws(e,n))}function Yk(t,e,n){var r=xa(t,e,n);return r>n?n:r}function jh(){return{top:0,right:0,bottom:0,left:0}}function Uh(t){return Object.assign({},jh(),t)}function Wh(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Gk=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Uh(typeof e!="number"?e:Wh(e,ya))};function Jk(t){var e,n=t.state,r=t.name,o=t.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Yn(n.placement),u=ed(l),c=[Zt,_n].indexOf(l)>=0,d=c?"height":"width";if(!(!a||!s)){var p=Gk(o.padding,n),f=Zc(a),h=u==="y"?Qt:Zt,m=u==="y"?Sn:_n,g=n.rects.reference[d]+n.rects.reference[u]-s[u]-n.rects.popper[d],b=s[u]-n.rects.reference[u],v=ka(a),x=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,N=g/2-b/2,y=p[h],M=x-f[d]-p[m],E=x/2-f[d]/2+N,C=xa(y,E,M),T=u;n.modifiersData[r]=(e={},e[T]=C,e.centerOffset=C-E,e)}}function Xk(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)||Hh(e.elements.popper,o)&&(e.elements.arrow=o))}var Qk={name:"arrow",enabled:!0,phase:"main",fn:Jk,effect:Xk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bi(t){return t.split("-")[1]}var Zk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function e6(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return{x:mi(e*o)/o||0,y:mi(n*o)/o||0}}function Kh(t){var e,n=t.popper,r=t.popperRect,o=t.placement,a=t.variation,s=t.offsets,l=t.position,u=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,p=t.isFixed,f=d===!0?e6(s):typeof d=="function"?d(s):s,h=f.x,m=h===void 0?0:h,g=f.y,b=g===void 0?0:g,v=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),N=Zt,y=Qt,M=window;if(c){var E=ka(n),C="clientHeight",T="clientWidth";if(E===In(n)&&(E=Vr(n),Gn(E).position!=="static"&&l==="absolute"&&(C="scrollHeight",T="scrollWidth")),E=E,o===Qt||(o===Zt||o===_n)&&a===wa){y=Sn;var B=p&&M.visualViewport?M.visualViewport.height:E[C];b-=B-r.height,b*=u?1:-1}if(o===Zt||(o===Qt||o===Sn)&&a===wa){N=_n;var L=p&&M.visualViewport?M.visualViewport.width:E[T];m-=L-r.width,m*=u?1:-1}}var k=Object.assign({position:l},c&&Zk);if(u){var $;return Object.assign({},k,($={},$[y]=x?"0":"",$[N]=v?"0":"",$.transform=(M.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",$))}return Object.assign({},k,(e={},e[y]=x?b+"px":"",e[N]=v?m+"px":"",e.transform="",e))}function t6(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:Yn(e.placement),variation:bi(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,Kh(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Kh(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var n6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:t6,data:{}},Ys={passive:!0};function r6(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=In(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",n.update,Ys)}),l&&u.addEventListener("resize",n.update,Ys),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Ys)}),l&&u.removeEventListener("resize",n.update,Ys)}}var o6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:r6,data:{}},i6={left:"right",right:"left",bottom:"top",top:"bottom"};function Gs(t){return t.replace(/left|right|bottom|top/g,function(e){return i6[e]})}var a6={start:"end",end:"start"};function Yh(t){return t.replace(/start|end/g,function(e){return a6[e]})}function td(t){var e=In(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function nd(t){return gi(Vr(t)).left+td(t).scrollLeft}function s6(t){var e=In(t),n=Vr(t),r=e.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,l=r.offsetTop)),{width:o,height:a,x:s+nd(t),y:l}}function l6(t){var e,n=Vr(t),r=td(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=Co(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Co(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+nd(t),u=-r.scrollTop;return Gn(o||n).direction==="rtl"&&(l+=Co(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:u}}function rd(t){var e=Gn(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Gh(t){return["html","body","#document"].indexOf(Kn(t))>=0?t.ownerDocument.body:Tn(t)&&rd(t)?t:Gh(Ks(t))}function Ea(t,e){var n;e===void 0&&(e=[]);var r=Gh(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),a=In(r),s=o?[a].concat(a.visualViewport||[],rd(r)?r:[]):r,l=e.concat(s);return o?l:l.concat(Ea(Ks(s)))}function od(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function u6(t){var e=gi(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function Jh(t,e){return e===Lh?od(s6(t)):hi(e)?u6(e):od(l6(Vr(t)))}function c6(t){var e=Ea(Ks(t)),n=["absolute","fixed"].indexOf(Gn(t).position)>=0,r=n&&Tn(t)?ka(t):t;return hi(r)?e.filter(function(o){return hi(o)&&Hh(o,r)&&Kn(o)!=="body"&&(n?Gn(o).position!=="static":!0)}):[]}function d6(t,e,n){var r=e==="clippingParents"?c6(t):[].concat(e),o=[].concat(r,[n]),a=o[0],s=o.reduce(function(l,u){var c=Jh(t,u);return l.top=Co(c.top,l.top),l.right=Ws(c.right,l.right),l.bottom=Ws(c.bottom,l.bottom),l.left=Co(c.left,l.left),l},Jh(t,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Xh(t){var e=t.reference,n=t.element,r=t.placement,o=r?Yn(r):null,a=r?bi(r):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,u;switch(o){case Qt:u={x:s,y:e.y-n.height};break;case Sn:u={x:s,y:e.y+e.height};break;case _n:u={x:e.x+e.width,y:l};break;case Zt:u={x:e.x-n.width,y:l};break;default:u={x:e.x,y:e.y}}var c=o?ed(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case pi:u[c]=u[c]-(e[d]/2-n[d]/2);break;case wa:u[c]=u[c]+(e[d]/2-n[d]/2);break}}return u}function Ca(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,a=n.boundary,s=a===void 0?Mk:a,l=n.rootBoundary,u=l===void 0?Lh:l,c=n.elementContext,d=c===void 0?va:c,p=n.altBoundary,f=p===void 0?!1:p,h=n.padding,m=h===void 0?0:h,g=Uh(typeof m!="number"?m:Wh(m,ya)),b=d===va?Dk:va,v=t.rects.popper,x=t.elements[f?b:d],N=d6(hi(x)?x:x.contextElement||Vr(t.elements.popper),s,u),y=gi(t.elements.reference),M=Xh({reference:y,element:v,strategy:"absolute",placement:o}),E=od(Object.assign({},v,M)),C=d===va?E:y,T={top:N.top-C.top+g.top,bottom:C.bottom-N.bottom+g.bottom,left:N.left-C.left+g.left,right:C.right-N.right+g.right},B=t.modifiersData.offset;if(d===va&&B){var L=B[o];Object.keys(T).forEach(function(k){var $=[_n,Sn].indexOf(k)>=0?1:-1,D=[Qt,Sn].indexOf(k)>=0?"y":"x";T[k]+=L[D]*$})}return T}function f6(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Rh:u,d=bi(r),p=d?l?Ih:Ih.filter(function(m){return bi(m)===d}):ya,f=p.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=p);var h=f.reduce(function(m,g){return m[g]=Ca(t,{placement:g,boundary:o,rootBoundary:a,padding:s})[Yn(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function p6(t){if(Yn(t)===Qc)return[];var e=Gs(t);return[Yh(t),e,Yh(e)]}function h6(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,b=e.options.placement,v=Yn(b),x=v===b,N=u||(x||!m?[Gs(b)]:p6(b)),y=[b].concat(N).reduce(function(F,R){return F.concat(Yn(R)===Qc?f6(e,{placement:R,boundary:d,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:g}):R)},[]),M=e.rects.reference,E=e.rects.popper,C=new Map,T=!0,B=y[0],L=0;L<y.length;L++){var k=y[L],$=Yn(k),D=bi(k)===pi,V=[Qt,Sn].indexOf($)>=0,S=V?"width":"height",O=Ca(e,{placement:k,boundary:d,rootBoundary:p,altBoundary:f,padding:c}),w=V?D?_n:Zt:D?Sn:Qt;M[S]>E[S]&&(w=Gs(w));var A=Gs(w),z=[];if(a&&z.push(O[$]<=0),l&&z.push(O[w]<=0,O[A]<=0),z.every(function(F){return F})){B=k,T=!1;break}C.set(k,z)}if(T)for(var P=m?3:1,q=function(R){var G=y.find(function(j){var K=C.get(j);if(K)return K.slice(0,R).every(function(Y){return Y})});if(G)return B=G,"break"},W=P;W>0;W--){var ee=q(W);if(ee==="break")break}e.placement!==B&&(e.modifiersData[r]._skip=!0,e.placement=B,e.reset=!0)}}var m6={name:"flip",enabled:!0,phase:"main",fn:h6,requiresIfExists:["offset"],data:{_skip:!1}};function Qh(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 Zh(t){return[Qt,_n,Sn,Zt].some(function(e){return t[e]>=0})}function g6(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,s=Ca(e,{elementContext:"reference"}),l=Ca(e,{altBoundary:!0}),u=Qh(s,r),c=Qh(l,o,a),d=Zh(u),p=Zh(c);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var b6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:g6};function y6(t,e,n){var r=Yn(t),o=[Zt,Qt].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[Zt,_n].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function w6(t){var e=t.state,n=t.options,r=t.name,o=n.offset,a=o===void 0?[0,0]:o,s=Rh.reduce(function(d,p){return d[p]=y6(p,e.rects,a),d},{}),l=s[e.placement],u=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}var v6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:w6};function k6(t){var e=t.state,n=t.name;e.modifiersData[n]=Xh({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var x6={name:"popperOffsets",enabled:!0,phase:"read",fn:k6,data:{}};function E6(t){return t==="x"?"y":"x"}function C6(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,b=Ca(e,{boundary:u,rootBoundary:c,padding:p,altBoundary:d}),v=Yn(e.placement),x=bi(e.placement),N=!x,y=ed(v),M=E6(y),E=e.modifiersData.popperOffsets,C=e.rects.reference,T=e.rects.popper,B=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,L=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(E){if(a){var D,V=y==="y"?Qt:Zt,S=y==="y"?Sn:_n,O=y==="y"?"height":"width",w=E[y],A=w+b[V],z=w-b[S],P=h?-T[O]/2:0,q=x===pi?C[O]:T[O],W=x===pi?-T[O]:-C[O],ee=e.elements.arrow,F=h&&ee?Zc(ee):{width:0,height:0},R=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:jh(),G=R[V],j=R[S],K=xa(0,C[O],F[O]),Y=N?C[O]/2-P-K-G-L.mainAxis:q-K-G-L.mainAxis,X=N?-C[O]/2+P+K+j+L.mainAxis:W+K+j+L.mainAxis,ue=e.elements.arrow&&ka(e.elements.arrow),ie=ue?y==="y"?ue.clientTop||0:ue.clientLeft||0:0,te=(D=k==null?void 0:k[y])!=null?D:0,se=w+Y-te-ie,ce=w+X-te,je=xa(h?Ws(A,se):A,w,h?Co(z,ce):z);E[y]=je,$[y]=je-w}if(l){var Z,Ne=y==="x"?Qt:Zt,$e=y==="x"?Sn:_n,Be=E[M],ze=M==="y"?"height":"width",gt=Be+b[Ne],it=Be-b[$e],yt=[Qt,Zt].indexOf(v)!==-1,St=(Z=k==null?void 0:k[M])!=null?Z:0,vn=yt?gt:Be-C[ze]-T[ze]-St+L.altAxis,kn=yt?Be+C[ze]+T[ze]-St-L.altAxis:it,ln=h&&yt?Yk(vn,Be,kn):xa(h?vn:gt,Be,h?kn:it);E[M]=ln,$[M]=ln-Be}e.modifiersData[r]=$}}var S6={name:"preventOverflow",enabled:!0,phase:"main",fn:C6,requiresIfExists:["offset"]};function _6(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function T6(t){return t===In(t)||!Tn(t)?td(t):_6(t)}function N6(t){var e=t.getBoundingClientRect(),n=mi(e.width)/t.offsetWidth||1,r=mi(e.height)/t.offsetHeight||1;return n!==1||r!==1}function O6(t,e,n){n===void 0&&(n=!1);var r=Tn(e),o=Tn(e)&&N6(e),a=Vr(e),s=gi(t,o),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Kn(e)!=="body"||rd(a))&&(l=T6(e)),Tn(e)?(u=gi(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=nd(a))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function $6(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=e.get(l);u&&o(u)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||o(a)}),r}function A6(t){var e=$6(t);return qk.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function M6(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function D6(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 em={placement:"bottom",modifiers:[],strategy:"absolute"};function tm(){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 B6(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,a=o===void 0?em:o;return function(l,u,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},em,a),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},p=[],f=!1,h={state:d,setOptions:function(v){var x=typeof v=="function"?v(d.options):v;g(),d.options=Object.assign({},a,d.options,x),d.scrollParents={reference:hi(l)?Ea(l):l.contextElement?Ea(l.contextElement):[],popper:Ea(u)};var N=A6(D6([].concat(r,d.options.modifiers)));return d.orderedModifiers=N.filter(function(y){return y.enabled}),m(),h.update()},forceUpdate:function(){if(!f){var v=d.elements,x=v.reference,N=v.popper;if(tm(x,N)){d.rects={reference:O6(x,ka(N),d.options.strategy==="fixed"),popper:Zc(N)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var y=0;y<d.orderedModifiers.length;y++){if(d.reset===!0){d.reset=!1,y=-1;continue}var M=d.orderedModifiers[y],E=M.fn,C=M.options,T=C===void 0?{}:C,B=M.name;typeof E=="function"&&(d=E({state:d,options:T,name:B,instance:h})||d)}}}},update:M6(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){g(),f=!0}};if(!tm(l,u))return h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var v=b.name,x=b.options,N=x===void 0?{}:x,y=b.effect;if(typeof y=="function"){var M=y({state:d,name:v,instance:h,options:N}),E=function(){};p.push(M||E)}})}function g(){p.forEach(function(b){return b()}),p=[]}return h}}var P6=[o6,x6,n6,Fh,v6,m6,S6,Qk,b6],V6=B6({defaultModifiers:P6}),L6="tippy-box",nm="tippy-content",rm="tippy-backdrop",om="tippy-arrow",im="tippy-svg-arrow",So={passive:!0,capture:!0},am=function(){return document.body};function id(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function ad(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function sm(t,e){return typeof t=="function"?t.apply(void 0,e):t}function lm(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function I6(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function R6(t){return t.split(/\s+/).filter(Boolean)}function _o(t){return[].concat(t)}function um(t,e){t.indexOf(e)===-1&&t.push(e)}function z6(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function cm(t){return t.split("-")[0]}function yi(t){return[].slice.call(t)}function dm(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function To(){return document.createElement("div")}function Js(t){return["Element","Fragment"].some(function(e){return ad(t,e)})}function F6(t){return ad(t,"NodeList")}function sd(t){return ad(t,"MouseEvent")}function H6(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function q6(t){return Js(t)?[t]:F6(t)?yi(t):Array.isArray(t)?t:yi(document.querySelectorAll(t))}function ld(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function Sa(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function fm(t){var e,n=_o(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function j6(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var a=o.popperRect,s=o.popperState,l=o.props,u=l.interactiveBorder,c=cm(s.placement),d=s.modifiersData.offset;if(!d)return!0;var p=c==="bottom"?d.top.y:0,f=c==="top"?d.bottom.y:0,h=c==="right"?d.left.x:0,m=c==="left"?d.right.x:0,g=a.top-r+p>u,b=r-a.bottom-f>u,v=a.left-n+h>u,x=n-a.right-m>u;return g||b||v||x})}function ud(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function pm(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 Jn={isTouch:!1},hm=0;function U6(){Jn.isTouch||(Jn.isTouch=!0,window.performance&&document.addEventListener("mousemove",mm))}function mm(){var t=performance.now();t-hm<20&&(Jn.isTouch=!1,document.removeEventListener("mousemove",mm)),hm=t}function W6(){var t=document.activeElement;if(H6(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function K6(){document.addEventListener("touchstart",U6,So),window.addEventListener("blur",W6)}var Y6=typeof window<"u"&&typeof document<"u",G6=Y6?!!window.msCrypto:!1,J6={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},X6={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Rn=Object.assign({appendTo:am,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},J6,X6),Q6=Object.keys(Rn),Z6=function(e){var n=Object.keys(e);n.forEach(function(r){Rn[r]=e[r]})};function gm(t){var e=t.plugins||[],n=e.reduce(function(r,o){var a=o.name,s=o.defaultValue;if(a){var l;r[a]=t[a]!==void 0?t[a]:(l=Rn[a])!=null?l:s}return r},{});return Object.assign({},t,n)}function ex(t,e){var n=e?Object.keys(gm(Object.assign({},Rn,{plugins:e}))):Q6,r=n.reduce(function(o,a){var s=(t.getAttribute("data-tippy-"+a)||"").trim();if(!s)return o;if(a==="content")o[a]=s;else try{o[a]=JSON.parse(s)}catch{o[a]=s}return o},{});return r}function bm(t,e){var n=Object.assign({},e,{content:sm(e.content,[t])},e.ignoreAttributes?{}:ex(t,e.plugins));return n.aria=Object.assign({},Rn.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}var tx=function(){return"innerHTML"};function cd(t,e){t[tx()]=e}function ym(t){var e=To();return t===!0?e.className=om:(e.className=im,Js(t)?e.appendChild(t):cd(e,t)),e}function wm(t,e){Js(e.content)?(cd(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?cd(t,e.content):t.textContent=e.content)}function Xs(t){var e=t.firstElementChild,n=yi(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(nm)}),arrow:n.find(function(r){return r.classList.contains(om)||r.classList.contains(im)}),backdrop:n.find(function(r){return r.classList.contains(rm)})}}function vm(t){var e=To(),n=To();n.className=L6,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=To();r.className=nm,r.setAttribute("data-state","hidden"),wm(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(a,s){var l=Xs(e),u=l.box,c=l.content,d=l.arrow;s.theme?u.setAttribute("data-theme",s.theme):u.removeAttribute("data-theme"),typeof s.animation=="string"?u.setAttribute("data-animation",s.animation):u.removeAttribute("data-animation"),s.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?u.setAttribute("role",s.role):u.removeAttribute("role"),(a.content!==s.content||a.allowHTML!==s.allowHTML)&&wm(c,t.props),s.arrow?d?a.arrow!==s.arrow&&(u.removeChild(d),u.appendChild(ym(s.arrow))):u.appendChild(ym(s.arrow)):d&&u.removeChild(d)}return{popper:e,onUpdate:o}}vm.$$tippy=!0;var nx=1,Qs=[],dd=[];function rx(t,e){var n=bm(t,Object.assign({},Rn,gm(dm(e)))),r,o,a,s=!1,l=!1,u=!1,c=!1,d,p,f,h=[],m=lm(se,n.interactiveDebounce),g,b=nx++,v=null,x=z6(n.plugins),N={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},y={id:b,reference:t,popper:To(),popperInstance:v,props:n,state:N,plugins:x,clearDelayTimeouts:vn,setProps:kn,setContent:ln,show:U,hide:ne,hideWithInteractivity:we,enable:yt,disable:St,unmount:Ce,destroy:Ge};if(!n.render)return y;var M=n.render(y),E=M.popper,C=M.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+y.id,y.popper=E,t._tippy=y,E._tippy=y;var T=x.map(function(I){return I.fn(y)}),B=t.hasAttribute("aria-expanded");return ue(),P(),w(),A("onCreate",[y]),n.showOnCreate&&gt(),E.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&V().addEventListener("mousemove",m)}),y;function L(){var I=y.props.touch;return Array.isArray(I)?I:[I,0]}function k(){return L()[0]==="hold"}function $(){var I;return!!((I=y.props.render)!=null&&I.$$tippy)}function D(){return g||t}function V(){var I=D().parentNode;return I?fm(I):document}function S(){return Xs(E)}function O(I){return y.state.isMounted&&!y.state.isVisible||Jn.isTouch||d&&d.type==="focus"?0:id(y.props.delay,I?0:1,Rn.delay)}function w(I){I===void 0&&(I=!1),E.style.pointerEvents=y.props.interactive&&!I?"":"none",E.style.zIndex=""+y.props.zIndex}function A(I,J,H){if(H===void 0&&(H=!0),T.forEach(function(le){le[I]&&le[I].apply(le,J)}),H){var Q;(Q=y.props)[I].apply(Q,J)}}function z(){var I=y.props.aria;if(I.content){var J="aria-"+I.content,H=E.id,Q=_o(y.props.triggerTarget||t);Q.forEach(function(le){var Oe=le.getAttribute(J);if(y.state.isVisible)le.setAttribute(J,Oe?Oe+" "+H:H);else{var Je=Oe&&Oe.replace(H,"").trim();Je?le.setAttribute(J,Je):le.removeAttribute(J)}})}}function P(){if(!(B||!y.props.aria.expanded)){var I=_o(y.props.triggerTarget||t);I.forEach(function(J){y.props.interactive?J.setAttribute("aria-expanded",y.state.isVisible&&J===D()?"true":"false"):J.removeAttribute("aria-expanded")})}}function q(){V().removeEventListener("mousemove",m),Qs=Qs.filter(function(I){return I!==m})}function W(I){if(!(Jn.isTouch&&(u||I.type==="mousedown"))){var J=I.composedPath&&I.composedPath()[0]||I.target;if(!(y.props.interactive&&pm(E,J))){if(_o(y.props.triggerTarget||t).some(function(H){return pm(H,J)})){if(Jn.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else A("onClickOutside",[y,I]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),l=!0,setTimeout(function(){l=!1}),y.state.isMounted||G())}}}function ee(){u=!0}function F(){u=!1}function R(){var I=V();I.addEventListener("mousedown",W,!0),I.addEventListener("touchend",W,So),I.addEventListener("touchstart",F,So),I.addEventListener("touchmove",ee,So)}function G(){var I=V();I.removeEventListener("mousedown",W,!0),I.removeEventListener("touchend",W,So),I.removeEventListener("touchstart",F,So),I.removeEventListener("touchmove",ee,So)}function j(I,J){Y(I,function(){!y.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&J()})}function K(I,J){Y(I,J)}function Y(I,J){var H=S().box;function Q(le){le.target===H&&(ud(H,"remove",Q),J())}if(I===0)return J();ud(H,"remove",p),ud(H,"add",Q),p=Q}function X(I,J,H){H===void 0&&(H=!1);var Q=_o(y.props.triggerTarget||t);Q.forEach(function(le){le.addEventListener(I,J,H),h.push({node:le,eventType:I,handler:J,options:H})})}function ue(){k()&&(X("touchstart",te,{passive:!0}),X("touchend",ce,{passive:!0})),R6(y.props.trigger).forEach(function(I){if(I!=="manual")switch(X(I,te),I){case"mouseenter":X("mouseleave",ce);break;case"focus":X(G6?"focusout":"blur",je);break;case"focusin":X("focusout",je);break}})}function ie(){h.forEach(function(I){var J=I.node,H=I.eventType,Q=I.handler,le=I.options;J.removeEventListener(H,Q,le)}),h=[]}function te(I){var J,H=!1;if(!(!y.state.isEnabled||Z(I)||l)){var Q=((J=d)==null?void 0:J.type)==="focus";d=I,g=I.currentTarget,P(),!y.state.isVisible&&sd(I)&&Qs.forEach(function(le){return le(I)}),I.type==="click"&&(y.props.trigger.indexOf("mouseenter")<0||s)&&y.props.hideOnClick!==!1&&y.state.isVisible?H=!0:gt(I),I.type==="click"&&(s=!H),H&&!Q&&it(I)}}function se(I){var J=I.target,H=D().contains(J)||E.contains(J);if(!(I.type==="mousemove"&&H)){var Q=ze().concat(E).map(function(le){var Oe,Je=le._tippy,be=(Oe=Je.popperInstance)==null?void 0:Oe.state;return be?{popperRect:le.getBoundingClientRect(),popperState:be,props:n}:null}).filter(Boolean);j6(Q,I)&&(q(),it(I))}}function ce(I){var J=Z(I)||y.props.trigger.indexOf("click")>=0&&s;if(!J){if(y.props.interactive){y.hideWithInteractivity(I);return}it(I)}}function je(I){y.props.trigger.indexOf("focusin")<0&&I.target!==D()||y.props.interactive&&I.relatedTarget&&E.contains(I.relatedTarget)||it(I)}function Z(I){return Jn.isTouch?k()!==I.type.indexOf("touch")>=0:!1}function Ne(){$e();var I=y.props,J=I.popperOptions,H=I.placement,Q=I.offset,le=I.getReferenceClientRect,Oe=I.moveTransition,Je=$()?Xs(E).arrow:null,be=le?{getBoundingClientRect:le,contextElement:le.contextElement||D()}:t,Vn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(xn){var En=xn.state;if($()){var gh=S(),ui=gh.box;["placement","reference-hidden","escaped"].forEach(function(Pr){Pr==="placement"?ui.setAttribute("data-placement",En.placement):En.attributes.popper["data-popper-"+Pr]?ui.setAttribute("data-"+Pr,""):ui.removeAttribute("data-"+Pr)}),En.attributes.popper={}}}},Se=[{name:"offset",options:{offset:Q}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Oe}},Vn];$()&&Je&&Se.push({name:"arrow",options:{element:Je,padding:3}}),Se.push.apply(Se,(J==null?void 0:J.modifiers)||[]),y.popperInstance=V6(be,E,Object.assign({},J,{placement:H,onFirstUpdate:f,modifiers:Se}))}function $e(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Be(){var I=y.props.appendTo,J,H=D();y.props.interactive&&I===am||I==="parent"?J=H.parentNode:J=sm(I,[H]),J.contains(E)||J.appendChild(E),y.state.isMounted=!0,Ne()}function ze(){return yi(E.querySelectorAll("[data-tippy-root]"))}function gt(I){y.clearDelayTimeouts(),I&&A("onTrigger",[y,I]),R();var J=O(!0),H=L(),Q=H[0],le=H[1];Jn.isTouch&&Q==="hold"&&le&&(J=le),J?r=setTimeout(function(){y.show()},J):y.show()}function it(I){if(y.clearDelayTimeouts(),A("onUntrigger",[y,I]),!y.state.isVisible){G();return}if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(I.type)>=0&&s)){var J=O(!1);J?o=setTimeout(function(){y.state.isVisible&&y.hide()},J):a=requestAnimationFrame(function(){y.hide()})}}function yt(){y.state.isEnabled=!0}function St(){y.hide(),y.state.isEnabled=!1}function vn(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(a)}function kn(I){if(!y.state.isDestroyed){A("onBeforeUpdate",[y,I]),ie();var J=y.props,H=bm(t,Object.assign({},J,dm(I),{ignoreAttributes:!0}));y.props=H,ue(),J.interactiveDebounce!==H.interactiveDebounce&&(q(),m=lm(se,H.interactiveDebounce)),J.triggerTarget&&!H.triggerTarget?_o(J.triggerTarget).forEach(function(Q){Q.removeAttribute("aria-expanded")}):H.triggerTarget&&t.removeAttribute("aria-expanded"),P(),w(),C&&C(J,H),y.popperInstance&&(Ne(),ze().forEach(function(Q){requestAnimationFrame(Q._tippy.popperInstance.forceUpdate)})),A("onAfterUpdate",[y,I])}}function ln(I){y.setProps({content:I})}function U(){var I=y.state.isVisible,J=y.state.isDestroyed,H=!y.state.isEnabled,Q=Jn.isTouch&&!y.props.touch,le=id(y.props.duration,0,Rn.duration);if(!(I||J||H||Q)&&!D().hasAttribute("disabled")&&(A("onShow",[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,$()&&(E.style.visibility="visible"),w(),R(),y.state.isMounted||(E.style.transition="none"),$()){var Oe=S(),Je=Oe.box,be=Oe.content;ld([Je,be],0)}f=function(){var Se;if(!(!y.state.isVisible||c)){if(c=!0,E.offsetHeight,E.style.transition=y.props.moveTransition,$()&&y.props.animation){var Br=S(),xn=Br.box,En=Br.content;ld([xn,En],le),Sa([xn,En],"visible")}z(),P(),um(dd,y),(Se=y.popperInstance)==null||Se.forceUpdate(),A("onMount",[y]),y.props.animation&&$()&&K(le,function(){y.state.isShown=!0,A("onShown",[y])})}},Be()}}function ne(){var I=!y.state.isVisible,J=y.state.isDestroyed,H=!y.state.isEnabled,Q=id(y.props.duration,1,Rn.duration);if(!(I||J||H)&&(A("onHide",[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,c=!1,s=!1,$()&&(E.style.visibility="hidden"),q(),G(),w(!0),$()){var le=S(),Oe=le.box,Je=le.content;y.props.animation&&(ld([Oe,Je],Q),Sa([Oe,Je],"hidden"))}z(),P(),y.props.animation?$()&&j(Q,y.unmount):y.unmount()}}function we(I){V().addEventListener("mousemove",m),um(Qs,m),m(I)}function Ce(){y.state.isVisible&&y.hide(),y.state.isMounted&&($e(),ze().forEach(function(I){I._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),dd=dd.filter(function(I){return I!==y}),y.state.isMounted=!1,A("onHidden",[y]))}function Ge(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),ie(),delete t._tippy,y.state.isDestroyed=!0,A("onDestroy",[y]))}}function ve(t,e){e===void 0&&(e={});var n=Rn.plugins.concat(e.plugins||[]);K6();var r=Object.assign({},e,{plugins:n}),o=q6(t),a=o.reduce(function(s,l){var u=l&&rx(l,r);return u&&s.push(u),s},[]);return Js(t)?a[0]:a}ve.defaultProps=Rn,ve.setDefaultProps=Z6,ve.currentInput=Jn;var ox=Object.assign({},Fh,{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)}}),ix=function(e,n){var r;n===void 0&&(n={});var o=e,a=[],s=[],l,u=n.overrides,c=[],d=!1;function p(){s=o.map(function(y){return _o(y.props.triggerTarget||y.reference)}).reduce(function(y,M){return y.concat(M)},[])}function f(){a=o.map(function(y){return y.reference})}function h(y){o.forEach(function(M){y?M.enable():M.disable()})}function m(y){return o.map(function(M){var E=M.setProps;return M.setProps=function(C){E(C),M.reference===l&&y.setProps(C)},function(){M.setProps=E}})}function g(y,M){var E=s.indexOf(M);if(M!==l){l=M;var C=(u||[]).concat("content").reduce(function(T,B){return T[B]=o[E].props[B],T},{});y.setProps(Object.assign({},C,{getReferenceClientRect:typeof C.getReferenceClientRect=="function"?C.getReferenceClientRect:function(){var T;return(T=a[E])==null?void 0:T.getBoundingClientRect()}}))}}h(!1),f(),p();var b={fn:function(){return{onDestroy:function(){h(!0)},onHidden:function(){l=null},onClickOutside:function(E){E.props.showOnCreate&&!d&&(d=!0,l=null)},onShow:function(E){E.props.showOnCreate&&!d&&(d=!0,g(E,a[0]))},onTrigger:function(E,C){g(E,C.currentTarget)}}}},v=ve(To(),Object.assign({},I6(n,["overrides"]),{plugins:[b].concat(n.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat(((r=n.popperOptions)==null?void 0:r.modifiers)||[],[ox])})})),x=v.show;v.show=function(y){if(x(),!l&&y==null)return g(v,a[0]);if(!(l&&y==null)){if(typeof y=="number")return a[y]&&g(v,a[y]);if(o.indexOf(y)>=0){var M=y.reference;return g(v,M)}if(a.indexOf(y)>=0)return g(v,y)}},v.showNext=function(){var y=a[0];if(!l)return v.show(0);var M=a.indexOf(l);v.show(a[M+1]||y)},v.showPrevious=function(){var y=a[a.length-1];if(!l)return v.show(y);var M=a.indexOf(l),E=a[M-1]||y;v.show(E)};var N=v.setProps;return v.setProps=function(y){u=y.overrides||u,N(y)},v.setInstances=function(y){h(!0),c.forEach(function(M){return M()}),o=y,h(!1),f(),p(),c=m(v),v.setProps({triggerTarget:s})},c=m(v),v},ax={name:"animateFill",defaultValue:!1,fn:function(e){var n;if(!((n=e.props.render)!=null&&n.$$tippy))return{};var r=Xs(e.popper),o=r.box,a=r.content,s=e.props.animateFill?sx():null;return{onCreate:function(){s&&(o.insertBefore(s,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var u=o.style.transitionDuration,c=Number(u.replace("ms",""));a.style.transitionDelay=Math.round(c/10)+"ms",s.style.transitionDuration=u,Sa([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&Sa([s],"hidden")}}}};function sx(){var t=To();return t.className=rm,Sa([t],"hidden"),t}var fd={clientX:0,clientY:0},Zs=[];function km(t){var e=t.clientX,n=t.clientY;fd={clientX:e,clientY:n}}function lx(t){t.addEventListener("mousemove",km)}function ux(t){t.removeEventListener("mousemove",km)}var cx={name:"followCursor",defaultValue:!1,fn:function(e){var n=e.reference,r=fm(e.props.triggerTarget||n),o=!1,a=!1,s=!0,l=e.props;function u(){return e.props.followCursor==="initial"&&e.state.isVisible}function c(){r.addEventListener("mousemove",f)}function d(){r.removeEventListener("mousemove",f)}function p(){o=!0,e.setProps({getReferenceClientRect:null}),o=!1}function f(g){var b=g.target?n.contains(g.target):!0,v=e.props.followCursor,x=g.clientX,N=g.clientY,y=n.getBoundingClientRect(),M=x-y.left,E=N-y.top;(b||!e.props.interactive)&&e.setProps({getReferenceClientRect:function(){var T=n.getBoundingClientRect(),B=x,L=N;v==="initial"&&(B=T.left+M,L=T.top+E);var k=v==="horizontal"?T.top:L,$=v==="vertical"?T.right:B,D=v==="horizontal"?T.bottom:L,V=v==="vertical"?T.left:B;return{width:$-V,height:D-k,top:k,right:$,bottom:D,left:V}}})}function h(){e.props.followCursor&&(Zs.push({instance:e,doc:r}),lx(r))}function m(){Zs=Zs.filter(function(g){return g.instance!==e}),Zs.filter(function(g){return g.doc===r}).length===0&&ux(r)}return{onCreate:h,onDestroy:m,onBeforeUpdate:function(){l=e.props},onAfterUpdate:function(b,v){var x=v.followCursor;o||x!==void 0&&l.followCursor!==x&&(m(),x?(h(),e.state.isMounted&&!a&&!u()&&c()):(d(),p()))},onMount:function(){e.props.followCursor&&!a&&(s&&(f(fd),s=!1),u()||c())},onTrigger:function(b,v){sd(v)&&(fd={clientX:v.clientX,clientY:v.clientY}),a=v.type==="focus"},onHidden:function(){e.props.followCursor&&(p(),d(),s=!0)}}}};function dx(t,e){var n;return{popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((((n=t.popperOptions)==null?void 0:n.modifiers)||[]).filter(function(r){var o=r.name;return o!==e.name}),[e])})}}var fx={name:"inlinePositioning",defaultValue:!1,fn:function(e){var n=e.reference;function r(){return!!e.props.inlinePositioning}var o,a=-1,s=!1,l=[],u={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(h){var m=h.state;r()&&(l.indexOf(m.placement)!==-1&&(l=[]),o!==m.placement&&l.indexOf(m.placement)===-1&&(l.push(m.placement),e.setProps({getReferenceClientRect:function(){return c(m.placement)}})),o=m.placement)}};function c(f){return px(cm(f),n.getBoundingClientRect(),yi(n.getClientRects()),a)}function d(f){s=!0,e.setProps(f),s=!1}function p(){s||d(dx(e.props,u))}return{onCreate:p,onAfterUpdate:p,onTrigger:function(h,m){if(sd(m)){var g=yi(e.reference.getClientRects()),b=g.find(function(x){return x.left-2<=m.clientX&&x.right+2>=m.clientX&&x.top-2<=m.clientY&&x.bottom+2>=m.clientY}),v=g.indexOf(b);a=v>-1?v:a}},onHidden:function(){a=-1}}}};function px(t,e,n,r){if(n.length<2||t===null)return e;if(n.length===2&&r>=0&&n[0].left>n[1].right)return n[r]||e;switch(t){case"top":case"bottom":{var o=n[0],a=n[n.length-1],s=t==="top",l=o.top,u=a.bottom,c=s?o.left:a.left,d=s?o.right:a.right,p=d-c,f=u-l;return{top:l,bottom:u,left:c,right:d,width:p,height:f}}case"left":case"right":{var h=Math.min.apply(Math,n.map(function(E){return E.left})),m=Math.max.apply(Math,n.map(function(E){return E.right})),g=n.filter(function(E){return t==="left"?E.left===h:E.right===m}),b=g[0].top,v=g[g.length-1].bottom,x=h,N=m,y=N-x,M=v-b;return{top:b,bottom:v,left:x,right:N,width:y,height:M}}default:return e}}var hx={name:"sticky",defaultValue:!1,fn:function(e){var n=e.reference,r=e.popper;function o(){return e.popperInstance?e.popperInstance.state.elements.reference:n}function a(c){return e.props.sticky===!0||e.props.sticky===c}var s=null,l=null;function u(){var c=a("reference")?o().getBoundingClientRect():null,d=a("popper")?r.getBoundingClientRect():null;(c&&xm(s,c)||d&&xm(l,d))&&e.popperInstance&&e.popperInstance.update(),s=c,l=d,e.state.isMounted&&requestAnimationFrame(u)}return{onMount:function(){e.props.sticky&&u()}}}};function xm(t,e){return t&&e?t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left:!0}ve.setDefaultProps({render:vm}),ve.setDefaultProps({onShow:t=>{if(!t.props.content)return!1}});function Em(t,e={},n={mount:!0,appName:"Tippy"}){n=Object.assign({mount:!0,appName:"Tippy"},n);const r=i.getCurrentInstance(),o=i.ref(),a=i.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1}),s=i.shallowRef();let l=null;const u=()=>l||(l=document.createDocumentFragment(),l),c=C=>{let T,B=i.isRef(C)?C.value:C;return i.isVNode(B)?(s.value||(s.value=i.createApp({name:n.appName,setup:()=>()=>i.isRef(C)?C.value:C}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(u())),T=()=>u()):typeof B=="object"?(s.value||(s.value=i.createApp({name:n.appName,setup:()=>()=>i.h(i.isRef(C)?C.value:C)}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(u())),T=()=>u()):T=B,T},d=C=>{let T={};return i.isRef(C)?T=C.value||{}:i.isReactive(C)?T={...C}:T={...C},T.content&&(T.content=c(T.content)),T.triggerTarget&&(T.triggerTarget=i.isRef(T.triggerTarget)?T.triggerTarget.value:T.triggerTarget),(!T.plugins||!Array.isArray(T.plugins))&&(T.plugins=[]),T.plugins=T.plugins.filter(B=>B.name!=="vueTippyReactiveState"),T.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){a.value.isEnabled=!0},onMount(){a.value.isMounted=!0},onShow(){a.value.isMounted=!0,a.value.isVisible=!0},onShown(){a.value.isShown=!0},onHide(){a.value.isMounted=!1,a.value.isVisible=!1},onHidden(){a.value.isShown=!1},onUnmounted(){a.value.isMounted=!1},onDestroy(){a.value.isDestroyed=!0}})}),T},p=()=>{o.value&&o.value.setProps(d(e))},f=()=>{!o.value||!e.content||o.value.setContent(c(e.content))},h=C=>{var T;(T=o.value)===null||T===void 0||T.setContent(c(C))},m=C=>{var T;(T=o.value)===null||T===void 0||T.setProps(d(C))},g=()=>{var C;o.value&&(o.value.destroy(),o.value=void 0),l=null,(C=s.value)===null||C===void 0||C.unmount(),s.value=void 0},b=()=>{var C;(C=o.value)===null||C===void 0||C.show()},v=()=>{var C;(C=o.value)===null||C===void 0||C.hide()},x=()=>{var C;(C=o.value)===null||C===void 0||C.disable(),a.value.isEnabled=!1},N=()=>{var C;(C=o.value)===null||C===void 0||C.enable(),a.value.isEnabled=!0},y=()=>{var C;(C=o.value)===null||C===void 0||C.unmount()},M=()=>{if(!t)return;let C=i.isRef(t)?t.value:t;typeof C=="function"&&(C=C()),C&&(o.value=ve(C,d(e)),C.$tippy=E)},E={tippy:o,refresh:p,refreshContent:f,setContent:h,setProps:m,destroy:g,hide:v,show:b,disable:x,enable:N,unmount:y,mount:M,state:a};return n.mount&&(r?r.isMounted?M():i.onMounted(M):M()),r&&i.onUnmounted(()=>{g()}),i.isRef(e)||i.isReactive(e)?i.watch(e,p,{immediate:!1}):i.isRef(e.content)&&i.watch(e.content,f,{immediate:!1}),E}function mx(t,e){const n=i.ref();return i.onMounted(()=>{const o=(Array.isArray(t)?t.map(a=>a.value):typeof t=="function"?t():t.value).map(a=>a instanceof Element?a._tippy:a).filter(Boolean);n.value=ix(o,e?{allowHTML:!0,...e}:{allowHTML:!0})}),{singleton:n}}function gx(t){return typeof t=="function"?t():i.unref(t)}function bx(t){var e,n;const r=gx(t);return(n=(e=r)===null||e===void 0?void 0:e.$el)!==null&&n!==void 0?n:r}const yx=i.defineComponent({props:{to:{type:[String,Function]},tag:{type:[String,Object],default:"span"},contentTag:{type:[String,Object],default:"span"},contentClass:{type:String,default:null},appendTo:{default:()=>ve.defaultProps.appendTo},aria:{default:()=>ve.defaultProps.aria},delay:{default:()=>ve.defaultProps.delay},duration:{default:()=>ve.defaultProps.duration},getReferenceClientRect:{default:()=>ve.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>ve.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>ve.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>ve.defaultProps.interactive},interactiveBorder:{default:()=>ve.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>ve.defaultProps.interactiveDebounce},moveTransition:{default:()=>ve.defaultProps.moveTransition},offset:{default:()=>ve.defaultProps.offset},onAfterUpdate:{default:()=>ve.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>ve.defaultProps.onBeforeUpdate},onCreate:{default:()=>ve.defaultProps.onCreate},onDestroy:{default:()=>ve.defaultProps.onDestroy},onHidden:{default:()=>ve.defaultProps.onHidden},onHide:{default:()=>ve.defaultProps.onHide},onMount:{default:()=>ve.defaultProps.onMount},onShow:{default:()=>ve.defaultProps.onShow},onShown:{default:()=>ve.defaultProps.onShown},onTrigger:{default:()=>ve.defaultProps.onTrigger},onUntrigger:{default:()=>ve.defaultProps.onUntrigger},onClickOutside:{default:()=>ve.defaultProps.onClickOutside},placement:{default:()=>ve.defaultProps.placement},plugins:{default:()=>ve.defaultProps.plugins},popperOptions:{default:()=>ve.defaultProps.popperOptions},render:{default:()=>ve.defaultProps.render},showOnCreate:{type:Boolean,default:()=>ve.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>ve.defaultProps.touch},trigger:{default:()=>ve.defaultProps.trigger},triggerTarget:{default:()=>ve.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>ve.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>ve.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>ve.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>ve.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>ve.defaultProps.allowHTML},animation:{default:()=>ve.defaultProps.animation},arrow:{default:()=>ve.defaultProps.arrow},content:{default:()=>ve.defaultProps.content},inertia:{default:()=>ve.defaultProps.inertia},maxWidth:{default:()=>ve.defaultProps.maxWidth},role:{default:()=>ve.defaultProps.role},theme:{default:()=>ve.defaultProps.theme},zIndex:{default:()=>ve.defaultProps.zIndex}},emits:["state"],setup(t,{slots:e,emit:n,expose:r}){const o=i.ref(),a=i.ref(),s=i.ref(),l=i.ref(!1),u=()=>{let h={...t};for(const m of["to","tag","contentTag","contentClass"])h.hasOwnProperty(m)&&delete h[m];return h};let c=()=>bx(o);t.to&&(typeof Element<"u"&&t.to instanceof Element?c=()=>t.to:t.to==="parent"?c=()=>{let h=o.value;return h||(h=o.value=a.value.parentElement),h}:(typeof t.to=="string"||t.to instanceof String)&&(c=()=>document.querySelector(t.to)));const d=Em(c,u());let p=e.content;!p&&t.to==="parent"&&(p=e.default),i.onMounted(()=>{l.value=!0,i.nextTick(()=>{p&&d.setContent(()=>s.value)})}),i.watch(d.state,()=>{n("state",i.unref(d.state))},{immediate:!0,deep:!0}),i.watch(()=>t,()=>{d.setProps(u()),p&&d.setContent(()=>s.value)},{deep:!0});let f=i.reactive({elem:o,contentElem:s,mounted:l,...d});return r(f),()=>{const h=(typeof t.contentTag=="string",t.contentTag),m=p?i.h(h,{ref:s,style:{display:l.value?"inherit":"none"},class:t.contentClass},p(f)):null;if(t.to==="parent"){const v=[];if(!o.value){const x=i.h("span",{ref:a,"data-v-tippy":"",style:{display:"none"}});v.push(x)}return m&&v.push(m),v}const g=e.default?e.default(f):[];if(!t.tag){const v=i.h(g[0],{ref:o,"data-v-tippy":""});return m?[v,m]:v}const b=(typeof t.tag=="string",t.tag);return i.h(b,{ref:o,"data-v-tippy":""},m?[g,m]:g)}}}),wx=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let pd={};Object.keys(ve.defaultProps).forEach(t=>{wx.includes(t)?pd[t]={type:Boolean,default:function(){return ve.defaultProps[t]}}:pd[t]={default:function(){return ve.defaultProps[t]}}});const vx=i.defineComponent({props:pd,setup(t){const e=i.ref([]),{singleton:n}=mx(e,t);return{instances:e,singleton:n}},mounted(){var t;const n=this.$el.parentElement.querySelectorAll("[data-v-tippy]");this.instances=Array.from(n).map(r=>r._tippy).filter(Boolean),(t=this.singleton)===null||t===void 0||t.setInstances(this.instances)},render(){let t=this.$slots.default?this.$slots.default():[];return i.h(()=>t)}}),kx={mounted(t,e,n){const r=typeof e.value=="string"?{content:e.value}:e.value||{},o=Object.keys(e.modifiers||{}),a=o.find(l=>l!=="arrow"),s=o.findIndex(l=>l==="arrow")!==-1;a&&(r.placement=r.placement||a),s&&(r.arrow=r.arrow!==void 0?r.arrow:!0),n.props&&n.props.onTippyShow&&(r.onShow=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyShow(...l)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyShown(...l)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyHidden(...l)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyHide(...l)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyMount(...l)}),t.getAttribute("title")&&!r.content&&(r.content=t.getAttribute("title"),t.removeAttribute("title")),t.getAttribute("content")&&!r.content&&(r.content=t.getAttribute("content")),Em(t,r)},unmounted(t){t.$tippy?t.$tippy.destroy():t._tippy&&t._tippy.destroy()},updated(t,e){const n=typeof e.value=="string"?{content:e.value}:e.value||{};t.getAttribute("title")&&!n.content&&(n.content=t.getAttribute("title"),t.removeAttribute("title")),t.getAttribute("content")&&!n.content&&(n.content=t.getAttribute("content")),t.$tippy?t.$tippy.setProps(n||{}):t._tippy&&t._tippy.setProps(n||{})}},xx={install(t,e={}){ve.setDefaultProps(e.defaultProps||{}),t.directive(e.directive||"tippy",kx),t.component(e.component||"tippy",yx),t.component(e.componentSingleton||"tippy-singleton",vx)}},Ex=ve.setDefaultProps;Ex({ignoreAttributes:!0,plugins:[hx,fx,cx,ax]});const Cx=xx;function Sx(t){return typeof t=="object"&&t!==null}function Cm(t,e){return t=Sx(t)?t:Object.create(null),new Proxy(t,{get(n,r,o){return r==="key"?Reflect.get(n,r,o):Reflect.get(n,r,o)||Reflect.get(e,r,o)}})}function _x(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function Tx(t,e,n){return e.slice(0,-1).reduce((r,o)=>/^(__proto__)$/.test(o)?{}:r[o]=r[o]||{},t)[e[e.length-1]]=n,t}function Nx(t,e){return e.reduce((n,r)=>{const o=r.split(".");return Tx(n,o,_x(t,o))},{})}function Sm(t,{storage:e,serializer:n,key:r,debug:o}){try{const a=e==null?void 0:e.getItem(r);a&&t.$patch(n==null?void 0:n.deserialize(a))}catch(a){o&&console.error(a)}}function _m(t,{storage:e,serializer:n,key:r,paths:o,debug:a}){try{const s=Array.isArray(o)?Nx(t,o):t;e.setItem(r,n.serialize(s))}catch(s){a&&console.error(s)}}function Ox(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:o,pinia:a}=e;if(!r)return;if(!(o.$id in a.state.value)){const l=a._s.get(o.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const s=(Array.isArray(r)?r.map(l=>Cm(l,t)):[Cm(r,t)]).map(({storage:l=localStorage,beforeRestore:u=null,afterRestore:c=null,serializer:d={serialize:JSON.stringify,deserialize:JSON.parse},key:p=o.$id,paths:f=null,debug:h=!1})=>{var m;return{storage:l,beforeRestore:u,afterRestore:c,serializer:d,key:((m=t.key)!=null?m:g=>g)(typeof p=="string"?p:p(o.$id)),paths:f,debug:h}});o.$persist=()=>{s.forEach(l=>{_m(o.$state,l)})},o.$hydrate=({runHooks:l=!0}={})=>{s.forEach(u=>{const{beforeRestore:c,afterRestore:d}=u;l&&(c==null||c(e)),Sm(o,u),l&&(d==null||d(e))})},s.forEach(l=>{const{beforeRestore:u,afterRestore:c}=l;u==null||u(e),Sm(o,l),c==null||c(e),o.$subscribe((d,p)=>{_m(p,l)},{detached:!0})})}}var $x=Ox(),en="top",Nn="bottom",On="right",tn="left",hd="auto",_a=[en,Nn,On,tn],wi="start",Ta="end",Ax="clippingParents",Tm="viewport",Na="popper",Mx="reference",Nm=_a.reduce(function(t,e){return t.concat([e+"-"+wi,e+"-"+Ta])},[]),Om=[].concat(_a,[hd]).reduce(function(t,e){return t.concat([e,e+"-"+wi,e+"-"+Ta])},[]),Dx="beforeRead",Bx="read",Px="afterRead",Vx="beforeMain",Lx="main",Ix="afterMain",Rx="beforeWrite",zx="write",Fx="afterWrite",Hx=[Dx,Bx,Px,Vx,Lx,Ix,Rx,zx,Fx];function Xn(t){return t?(t.nodeName||"").toLowerCase():null}function un(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function No(t){var e=un(t).Element;return t instanceof e||t instanceof Element}function $n(t){var e=un(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function md(t){if(typeof ShadowRoot>"u")return!1;var e=un(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function qx(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},a=e.elements[n];!$n(a)||!Xn(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function jx(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],a=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=s.reduce(function(u,c){return u[c]="",u},{});!$n(o)||!Xn(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const $m={name:"applyStyles",enabled:!0,phase:"write",fn:qx,effect:jx,requires:["computeStyles"]};function Qn(t){return t.split("-")[0]}var Oo=Math.max,el=Math.min,vi=Math.round;function gd(){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 Am(){return!/^((?!chrome|android).)*safari/i.test(gd())}function ki(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,a=1;e&&$n(t)&&(o=t.offsetWidth>0&&vi(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&vi(r.height)/t.offsetHeight||1);var s=No(t)?un(t):window,l=s.visualViewport,u=!Am()&&n,c=(r.left+(u&&l?l.offsetLeft:0))/o,d=(r.top+(u&&l?l.offsetTop:0))/a,p=r.width/o,f=r.height/a;return{width:p,height:f,top:d,right:c+p,bottom:d+f,left:c,x:c,y:d}}function bd(t){var e=ki(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 Mm(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&md(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wr(t){return un(t).getComputedStyle(t)}function Ux(t){return["table","td","th"].indexOf(Xn(t))>=0}function Lr(t){return((No(t)?t.ownerDocument:t.document)||window.document).documentElement}function tl(t){return Xn(t)==="html"?t:t.assignedSlot||t.parentNode||(md(t)?t.host:null)||Lr(t)}function Dm(t){return!$n(t)||wr(t).position==="fixed"?null:t.offsetParent}function Wx(t){var e=/firefox/i.test(gd()),n=/Trident/i.test(gd());if(n&&$n(t)){var r=wr(t);if(r.position==="fixed")return null}var o=tl(t);for(md(o)&&(o=o.host);$n(o)&&["html","body"].indexOf(Xn(o))<0;){var a=wr(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Oa(t){for(var e=un(t),n=Dm(t);n&&Ux(n)&&wr(n).position==="static";)n=Dm(n);return n&&(Xn(n)==="html"||Xn(n)==="body"&&wr(n).position==="static")?e:n||Wx(t)||e}function yd(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function $a(t,e,n){return Oo(t,el(e,n))}function Kx(t,e,n){var r=$a(t,e,n);return r>n?n:r}function Bm(){return{top:0,right:0,bottom:0,left:0}}function Pm(t){return Object.assign({},Bm(),t)}function Vm(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Yx=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Pm(typeof e!="number"?e:Vm(e,_a))};function Gx(t){var e,n=t.state,r=t.name,o=t.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Qn(n.placement),u=yd(l),c=[tn,On].indexOf(l)>=0,d=c?"height":"width";if(!(!a||!s)){var p=Yx(o.padding,n),f=bd(a),h=u==="y"?en:tn,m=u==="y"?Nn:On,g=n.rects.reference[d]+n.rects.reference[u]-s[u]-n.rects.popper[d],b=s[u]-n.rects.reference[u],v=Oa(a),x=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,N=g/2-b/2,y=p[h],M=x-f[d]-p[m],E=x/2-f[d]/2+N,C=$a(y,E,M),T=u;n.modifiersData[r]=(e={},e[T]=C,e.centerOffset=C-E,e)}}function Jx(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)||Mm(e.elements.popper,o)&&(e.elements.arrow=o))}const Xx={name:"arrow",enabled:!0,phase:"main",fn:Gx,effect:Jx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xi(t){return t.split("-")[1]}var Qx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zx(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:vi(n*o)/o||0,y:vi(r*o)/o||0}}function Lm(t){var e,n=t.popper,r=t.popperRect,o=t.placement,a=t.variation,s=t.offsets,l=t.position,u=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,p=t.isFixed,f=s.x,h=f===void 0?0:f,m=s.y,g=m===void 0?0:m,b=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=b.x,g=b.y;var v=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),N=tn,y=en,M=window;if(c){var E=Oa(n),C="clientHeight",T="clientWidth";if(E===un(n)&&(E=Lr(n),wr(E).position!=="static"&&l==="absolute"&&(C="scrollHeight",T="scrollWidth")),E=E,o===en||(o===tn||o===On)&&a===Ta){y=Nn;var B=p&&E===M&&M.visualViewport?M.visualViewport.height:E[C];g-=B-r.height,g*=u?1:-1}if(o===tn||(o===en||o===Nn)&&a===Ta){N=On;var L=p&&E===M&&M.visualViewport?M.visualViewport.width:E[T];h-=L-r.width,h*=u?1:-1}}var k=Object.assign({position:l},c&&Qx),$=d===!0?Zx({x:h,y:g},un(n)):{x:h,y:g};if(h=$.x,g=$.y,u){var D;return Object.assign({},k,(D={},D[y]=x?"0":"",D[N]=v?"0":"",D.transform=(M.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",D))}return Object.assign({},k,(e={},e[y]=x?g+"px":"",e[N]=v?h+"px":"",e.transform="",e))}function e4(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:Qn(e.placement),variation:xi(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,Lm(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Lm(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const t4={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:e4,data:{}};var nl={passive:!0};function n4(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=un(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",n.update,nl)}),l&&u.addEventListener("resize",n.update,nl),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",n.update,nl)}),l&&u.removeEventListener("resize",n.update,nl)}}const r4={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:n4,data:{}};var o4={left:"right",right:"left",bottom:"top",top:"bottom"};function rl(t){return t.replace(/left|right|bottom|top/g,function(e){return o4[e]})}var i4={start:"end",end:"start"};function Im(t){return t.replace(/start|end/g,function(e){return i4[e]})}function wd(t){var e=un(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function vd(t){return ki(Lr(t)).left+wd(t).scrollLeft}function a4(t,e){var n=un(t),r=Lr(t),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;var c=Am();(c||!c&&e==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l+vd(t),y:u}}function s4(t){var e,n=Lr(t),r=wd(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=Oo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Oo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+vd(t),u=-r.scrollTop;return wr(o||n).direction==="rtl"&&(l+=Oo(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:u}}function kd(t){var e=wr(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Rm(t){return["html","body","#document"].indexOf(Xn(t))>=0?t.ownerDocument.body:$n(t)&&kd(t)?t:Rm(tl(t))}function Aa(t,e){var n;e===void 0&&(e=[]);var r=Rm(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),a=un(r),s=o?[a].concat(a.visualViewport||[],kd(r)?r:[]):r,l=e.concat(s);return o?l:l.concat(Aa(tl(s)))}function xd(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function l4(t,e){var n=ki(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 zm(t,e,n){return e===Tm?xd(a4(t,n)):No(e)?l4(e,n):xd(s4(Lr(t)))}function u4(t){var e=Aa(tl(t)),n=["absolute","fixed"].indexOf(wr(t).position)>=0,r=n&&$n(t)?Oa(t):t;return No(r)?e.filter(function(o){return No(o)&&Mm(o,r)&&Xn(o)!=="body"}):[]}function c4(t,e,n,r){var o=e==="clippingParents"?u4(t):[].concat(e),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(u,c){var d=zm(t,c,r);return u.top=Oo(d.top,u.top),u.right=el(d.right,u.right),u.bottom=el(d.bottom,u.bottom),u.left=Oo(d.left,u.left),u},zm(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 Fm(t){var e=t.reference,n=t.element,r=t.placement,o=r?Qn(r):null,a=r?xi(r):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,u;switch(o){case en:u={x:s,y:e.y-n.height};break;case Nn:u={x:s,y:e.y+e.height};break;case On:u={x:e.x+e.width,y:l};break;case tn:u={x:e.x-n.width,y:l};break;default:u={x:e.x,y:e.y}}var c=o?yd(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case wi:u[c]=u[c]-(e[d]/2-n[d]/2);break;case Ta:u[c]=u[c]+(e[d]/2-n[d]/2);break}}return u}function Ma(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,a=n.strategy,s=a===void 0?t.strategy:a,l=n.boundary,u=l===void 0?Ax:l,c=n.rootBoundary,d=c===void 0?Tm:c,p=n.elementContext,f=p===void 0?Na:p,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,b=g===void 0?0:g,v=Pm(typeof b!="number"?b:Vm(b,_a)),x=f===Na?Mx:Na,N=t.rects.popper,y=t.elements[m?x:f],M=c4(No(y)?y:y.contextElement||Lr(t.elements.popper),u,d,s),E=ki(t.elements.reference),C=Fm({reference:E,element:N,strategy:"absolute",placement:o}),T=xd(Object.assign({},N,C)),B=f===Na?T:E,L={top:M.top-B.top+v.top,bottom:B.bottom-M.bottom+v.bottom,left:M.left-B.left+v.left,right:B.right-M.right+v.right},k=t.modifiersData.offset;if(f===Na&&k){var $=k[o];Object.keys(L).forEach(function(D){var V=[On,Nn].indexOf(D)>=0?1:-1,S=[en,Nn].indexOf(D)>=0?"y":"x";L[D]+=$[S]*V})}return L}function d4(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Om:u,d=xi(r),p=d?l?Nm:Nm.filter(function(m){return xi(m)===d}):_a,f=p.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=p);var h=f.reduce(function(m,g){return m[g]=Ma(t,{placement:g,boundary:o,rootBoundary:a,padding:s})[Qn(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function f4(t){if(Qn(t)===hd)return[];var e=rl(t);return[Im(t),e,Im(e)]}function p4(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,b=e.options.placement,v=Qn(b),x=v===b,N=u||(x||!m?[rl(b)]:f4(b)),y=[b].concat(N).reduce(function(F,R){return F.concat(Qn(R)===hd?d4(e,{placement:R,boundary:d,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:g}):R)},[]),M=e.rects.reference,E=e.rects.popper,C=new Map,T=!0,B=y[0],L=0;L<y.length;L++){var k=y[L],$=Qn(k),D=xi(k)===wi,V=[en,Nn].indexOf($)>=0,S=V?"width":"height",O=Ma(e,{placement:k,boundary:d,rootBoundary:p,altBoundary:f,padding:c}),w=V?D?On:tn:D?Nn:en;M[S]>E[S]&&(w=rl(w));var A=rl(w),z=[];if(a&&z.push(O[$]<=0),l&&z.push(O[w]<=0,O[A]<=0),z.every(function(F){return F})){B=k,T=!1;break}C.set(k,z)}if(T)for(var P=m?3:1,q=function(R){var G=y.find(function(j){var K=C.get(j);if(K)return K.slice(0,R).every(function(Y){return Y})});if(G)return B=G,"break"},W=P;W>0;W--){var ee=q(W);if(ee==="break")break}e.placement!==B&&(e.modifiersData[r]._skip=!0,e.placement=B,e.reset=!0)}}const h4={name:"flip",enabled:!0,phase:"main",fn:p4,requiresIfExists:["offset"],data:{_skip:!1}};function Hm(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 qm(t){return[en,On,Nn,tn].some(function(e){return t[e]>=0})}function m4(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,s=Ma(e,{elementContext:"reference"}),l=Ma(e,{altBoundary:!0}),u=Hm(s,r),c=Hm(l,o,a),d=qm(u),p=qm(c);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const g4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:m4};function b4(t,e,n){var r=Qn(t),o=[tn,en].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[tn,On].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function y4(t){var e=t.state,n=t.options,r=t.name,o=n.offset,a=o===void 0?[0,0]:o,s=Om.reduce(function(d,p){return d[p]=b4(p,e.rects,a),d},{}),l=s[e.placement],u=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const w4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:y4};function v4(t){var e=t.state,n=t.name;e.modifiersData[n]=Fm({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const k4={name:"popperOffsets",enabled:!0,phase:"read",fn:v4,data:{}};function x4(t){return t==="x"?"y":"x"}function E4(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,b=Ma(e,{boundary:u,rootBoundary:c,padding:p,altBoundary:d}),v=Qn(e.placement),x=xi(e.placement),N=!x,y=yd(v),M=x4(y),E=e.modifiersData.popperOffsets,C=e.rects.reference,T=e.rects.popper,B=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,L=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(E){if(a){var D,V=y==="y"?en:tn,S=y==="y"?Nn:On,O=y==="y"?"height":"width",w=E[y],A=w+b[V],z=w-b[S],P=h?-T[O]/2:0,q=x===wi?C[O]:T[O],W=x===wi?-T[O]:-C[O],ee=e.elements.arrow,F=h&&ee?bd(ee):{width:0,height:0},R=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Bm(),G=R[V],j=R[S],K=$a(0,C[O],F[O]),Y=N?C[O]/2-P-K-G-L.mainAxis:q-K-G-L.mainAxis,X=N?-C[O]/2+P+K+j+L.mainAxis:W+K+j+L.mainAxis,ue=e.elements.arrow&&Oa(e.elements.arrow),ie=ue?y==="y"?ue.clientTop||0:ue.clientLeft||0:0,te=(D=k==null?void 0:k[y])!=null?D:0,se=w+Y-te-ie,ce=w+X-te,je=$a(h?el(A,se):A,w,h?Oo(z,ce):z);E[y]=je,$[y]=je-w}if(l){var Z,Ne=y==="x"?en:tn,$e=y==="x"?Nn:On,Be=E[M],ze=M==="y"?"height":"width",gt=Be+b[Ne],it=Be-b[$e],yt=[en,tn].indexOf(v)!==-1,St=(Z=k==null?void 0:k[M])!=null?Z:0,vn=yt?gt:Be-C[ze]-T[ze]-St+L.altAxis,kn=yt?Be+C[ze]+T[ze]-St-L.altAxis:it,ln=h&&yt?Kx(vn,Be,kn):$a(h?vn:gt,Be,h?kn:it);E[M]=ln,$[M]=ln-Be}e.modifiersData[r]=$}}const C4={name:"preventOverflow",enabled:!0,phase:"main",fn:E4,requiresIfExists:["offset"]};function S4(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function _4(t){return t===un(t)||!$n(t)?wd(t):S4(t)}function T4(t){var e=t.getBoundingClientRect(),n=vi(e.width)/t.offsetWidth||1,r=vi(e.height)/t.offsetHeight||1;return n!==1||r!==1}function N4(t,e,n){n===void 0&&(n=!1);var r=$n(e),o=$n(e)&&T4(e),a=Lr(e),s=ki(t,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Xn(e)!=="body"||kd(a))&&(l=_4(e)),$n(e)?(u=ki(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=vd(a))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function O4(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=e.get(l);u&&o(u)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||o(a)}),r}function $4(t){var e=O4(t);return Hx.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function A4(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function M4(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 jm={placement:"bottom",modifiers:[],strategy:"absolute"};function Um(){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 D4(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,a=o===void 0?jm:o;return function(l,u,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},jm,a),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},p=[],f=!1,h={state:d,setOptions:function(v){var x=typeof v=="function"?v(d.options):v;g(),d.options=Object.assign({},a,d.options,x),d.scrollParents={reference:No(l)?Aa(l):l.contextElement?Aa(l.contextElement):[],popper:Aa(u)};var N=$4(M4([].concat(r,d.options.modifiers)));return d.orderedModifiers=N.filter(function(y){return y.enabled}),m(),h.update()},forceUpdate:function(){if(!f){var v=d.elements,x=v.reference,N=v.popper;if(Um(x,N)){d.rects={reference:N4(x,Oa(N),d.options.strategy==="fixed"),popper:bd(N)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var y=0;y<d.orderedModifiers.length;y++){if(d.reset===!0){d.reset=!1,y=-1;continue}var M=d.orderedModifiers[y],E=M.fn,C=M.options,T=C===void 0?{}:C,B=M.name;typeof E=="function"&&(d=E({state:d,options:T,name:B,instance:h})||d)}}}},update:A4(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){g(),f=!0}};if(!Um(l,u))return h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var v=b.name,x=b.options,N=x===void 0?{}:x,y=b.effect;if(typeof y=="function"){var M=y({state:d,name:v,instance:h,options:N}),E=function(){};p.push(M||E)}})}function g(){p.forEach(function(b){return b()}),p=[]}return h}}var B4=[r4,k4,t4,$m,w4,h4,C4,Xx,g4],ol=D4({defaultModifiers:B4}),P4="tippy-box",Wm="tippy-content",V4="tippy-backdrop",Km="tippy-arrow",Ym="tippy-svg-arrow",$o={passive:!0,capture:!0},Gm=function(){return document.body};function L4(t,e){return{}.hasOwnProperty.call(t,e)}function Ed(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function Cd(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function Jm(t,e){return typeof t=="function"?t.apply(void 0,e):t}function Xm(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function I4(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function R4(t){return t.split(/\s+/).filter(Boolean)}function Ei(t){return[].concat(t)}function Qm(t,e){t.indexOf(e)===-1&&t.push(e)}function z4(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function F4(t){return t.split("-")[0]}function il(t){return[].slice.call(t)}function Zm(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function Da(){return document.createElement("div")}function Ba(t){return["Element","Fragment"].some(function(e){return Cd(t,e)})}function H4(t){return Cd(t,"NodeList")}function q4(t){return Cd(t,"MouseEvent")}function j4(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function U4(t){return Ba(t)?[t]:H4(t)?il(t):Array.isArray(t)?t:il(document.querySelectorAll(t))}function Sd(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function eg(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function W4(t){var e,n=Ei(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function K4(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var a=o.popperRect,s=o.popperState,l=o.props,u=l.interactiveBorder,c=F4(s.placement),d=s.modifiersData.offset;if(!d)return!0;var p=c==="bottom"?d.top.y:0,f=c==="top"?d.bottom.y:0,h=c==="right"?d.left.x:0,m=c==="left"?d.right.x:0,g=a.top-r+p>u,b=r-a.bottom-f>u,v=a.left-n+h>u,x=n-a.right-m>u;return g||b||v||x})}function _d(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function tg(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 Zn={isTouch:!1},ng=0;function Y4(){Zn.isTouch||(Zn.isTouch=!0,window.performance&&document.addEventListener("mousemove",rg))}function rg(){var t=performance.now();t-ng<20&&(Zn.isTouch=!1,document.removeEventListener("mousemove",rg)),ng=t}function G4(){var t=document.activeElement;if(j4(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function J4(){document.addEventListener("touchstart",Y4,$o),window.addEventListener("blur",G4)}var X4=typeof window<"u"&&typeof document<"u",Q4=X4?!!window.msCrypto:!1;function Ci(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 og(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function Z4(t){return og(`
  %ctippy.js

  %c`+og(t)+`

  %c👷‍ This is a development-only message. It will be removed in production.
  `)}function ig(t){return[Z4(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Pa;process.env.NODE_ENV!=="production"&&eE();function eE(){Pa=new Set}function vr(t,e){if(t&&!Pa.has(e)){var n;Pa.add(e),(n=console).warn.apply(n,ig(e))}}function Td(t,e){if(t&&!Pa.has(e)){var n;Pa.add(e),(n=console).error.apply(n,ig(e))}}function tE(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;Td(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Td(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var ag={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},nE={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},cn=Object.assign({appendTo:Gm,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},ag,nE),rE=Object.keys(cn),oE=function(e){process.env.NODE_ENV!=="production"&&ug(e,[]);var n=Object.keys(e);n.forEach(function(r){cn[r]=e[r]})};function sg(t){var e=t.plugins||[],n=e.reduce(function(r,o){var a=o.name,s=o.defaultValue;if(a){var l;r[a]=t[a]!==void 0?t[a]:(l=cn[a])!=null?l:s}return r},{});return Object.assign({},t,n)}function iE(t,e){var n=e?Object.keys(sg(Object.assign({},cn,{plugins:e}))):rE,r=n.reduce(function(o,a){var s=(t.getAttribute("data-tippy-"+a)||"").trim();if(!s)return o;if(a==="content")o[a]=s;else try{o[a]=JSON.parse(s)}catch{o[a]=s}return o},{});return r}function lg(t,e){var n=Object.assign({},e,{content:Jm(e.content,[t])},e.ignoreAttributes?{}:iE(t,e.plugins));return n.aria=Object.assign({},cn.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 ug(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var o=I4(cn,Object.keys(ag)),a=!L4(o,r);a&&(a=e.filter(function(s){return s.name===r}).length===0),vr(a,["`"+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.",`

`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var aE=function(){return"innerHTML"};function Nd(t,e){t[aE()]=e}function cg(t){var e=Da();return t===!0?e.className=Km:(e.className=Ym,Ba(t)?e.appendChild(t):Nd(e,t)),e}function dg(t,e){Ba(e.content)?(Nd(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Nd(t,e.content):t.textContent=e.content)}function Od(t){var e=t.firstElementChild,n=il(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(Wm)}),arrow:n.find(function(r){return r.classList.contains(Km)||r.classList.contains(Ym)}),backdrop:n.find(function(r){return r.classList.contains(V4)})}}function fg(t){var e=Da(),n=Da();n.className=P4,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Da();r.className=Wm,r.setAttribute("data-state","hidden"),dg(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(a,s){var l=Od(e),u=l.box,c=l.content,d=l.arrow;s.theme?u.setAttribute("data-theme",s.theme):u.removeAttribute("data-theme"),typeof s.animation=="string"?u.setAttribute("data-animation",s.animation):u.removeAttribute("data-animation"),s.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?u.setAttribute("role",s.role):u.removeAttribute("role"),(a.content!==s.content||a.allowHTML!==s.allowHTML)&&dg(c,t.props),s.arrow?d?a.arrow!==s.arrow&&(u.removeChild(d),u.appendChild(cg(s.arrow))):u.appendChild(cg(s.arrow)):d&&u.removeChild(d)}return{popper:e,onUpdate:o}}fg.$$tippy=!0;var sE=1,al=[],$d=[];function lE(t,e){var n=lg(t,Object.assign({},cn,sg(Zm(e)))),r,o,a,s=!1,l=!1,u=!1,c=!1,d,p,f,h=[],m=Xm(se,n.interactiveDebounce),g,b=sE++,v=null,x=z4(n.plugins),N={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},y={id:b,reference:t,popper:Da(),popperInstance:v,props:n,state:N,plugins:x,clearDelayTimeouts:vn,setProps:kn,setContent:ln,show:U,hide:ne,hideWithInteractivity:we,enable:yt,disable:St,unmount:Ce,destroy:Ge};if(!n.render)return process.env.NODE_ENV!=="production"&&Td(!0,"render() function has not been supplied."),y;var M=n.render(y),E=M.popper,C=M.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+y.id,y.popper=E,t._tippy=y,E._tippy=y;var T=x.map(function(I){return I.fn(y)}),B=t.hasAttribute("aria-expanded");return ue(),P(),w(),A("onCreate",[y]),n.showOnCreate&&gt(),E.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&V().addEventListener("mousemove",m)}),y;function L(){var I=y.props.touch;return Array.isArray(I)?I:[I,0]}function k(){return L()[0]==="hold"}function $(){var I;return!!((I=y.props.render)!=null&&I.$$tippy)}function D(){return g||t}function V(){var I=D().parentNode;return I?W4(I):document}function S(){return Od(E)}function O(I){return y.state.isMounted&&!y.state.isVisible||Zn.isTouch||d&&d.type==="focus"?0:Ed(y.props.delay,I?0:1,cn.delay)}function w(I){I===void 0&&(I=!1),E.style.pointerEvents=y.props.interactive&&!I?"":"none",E.style.zIndex=""+y.props.zIndex}function A(I,J,H){if(H===void 0&&(H=!0),T.forEach(function(le){le[I]&&le[I].apply(le,J)}),H){var Q;(Q=y.props)[I].apply(Q,J)}}function z(){var I=y.props.aria;if(I.content){var J="aria-"+I.content,H=E.id,Q=Ei(y.props.triggerTarget||t);Q.forEach(function(le){var Oe=le.getAttribute(J);if(y.state.isVisible)le.setAttribute(J,Oe?Oe+" "+H:H);else{var Je=Oe&&Oe.replace(H,"").trim();Je?le.setAttribute(J,Je):le.removeAttribute(J)}})}}function P(){if(!(B||!y.props.aria.expanded)){var I=Ei(y.props.triggerTarget||t);I.forEach(function(J){y.props.interactive?J.setAttribute("aria-expanded",y.state.isVisible&&J===D()?"true":"false"):J.removeAttribute("aria-expanded")})}}function q(){V().removeEventListener("mousemove",m),al=al.filter(function(I){return I!==m})}function W(I){if(!(Zn.isTouch&&(u||I.type==="mousedown"))){var J=I.composedPath&&I.composedPath()[0]||I.target;if(!(y.props.interactive&&tg(E,J))){if(Ei(y.props.triggerTarget||t).some(function(H){return tg(H,J)})){if(Zn.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else A("onClickOutside",[y,I]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),l=!0,setTimeout(function(){l=!1}),y.state.isMounted||G())}}}function ee(){u=!0}function F(){u=!1}function R(){var I=V();I.addEventListener("mousedown",W,!0),I.addEventListener("touchend",W,$o),I.addEventListener("touchstart",F,$o),I.addEventListener("touchmove",ee,$o)}function G(){var I=V();I.removeEventListener("mousedown",W,!0),I.removeEventListener("touchend",W,$o),I.removeEventListener("touchstart",F,$o),I.removeEventListener("touchmove",ee,$o)}function j(I,J){Y(I,function(){!y.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&J()})}function K(I,J){Y(I,J)}function Y(I,J){var H=S().box;function Q(le){le.target===H&&(_d(H,"remove",Q),J())}if(I===0)return J();_d(H,"remove",p),_d(H,"add",Q),p=Q}function X(I,J,H){H===void 0&&(H=!1);var Q=Ei(y.props.triggerTarget||t);Q.forEach(function(le){le.addEventListener(I,J,H),h.push({node:le,eventType:I,handler:J,options:H})})}function ue(){k()&&(X("touchstart",te,{passive:!0}),X("touchend",ce,{passive:!0})),R4(y.props.trigger).forEach(function(I){if(I!=="manual")switch(X(I,te),I){case"mouseenter":X("mouseleave",ce);break;case"focus":X(Q4?"focusout":"blur",je);break;case"focusin":X("focusout",je);break}})}function ie(){h.forEach(function(I){var J=I.node,H=I.eventType,Q=I.handler,le=I.options;J.removeEventListener(H,Q,le)}),h=[]}function te(I){var J,H=!1;if(!(!y.state.isEnabled||Z(I)||l)){var Q=((J=d)==null?void 0:J.type)==="focus";d=I,g=I.currentTarget,P(),!y.state.isVisible&&q4(I)&&al.forEach(function(le){return le(I)}),I.type==="click"&&(y.props.trigger.indexOf("mouseenter")<0||s)&&y.props.hideOnClick!==!1&&y.state.isVisible?H=!0:gt(I),I.type==="click"&&(s=!H),H&&!Q&&it(I)}}function se(I){var J=I.target,H=D().contains(J)||E.contains(J);if(!(I.type==="mousemove"&&H)){var Q=ze().concat(E).map(function(le){var Oe,Je=le._tippy,be=(Oe=Je.popperInstance)==null?void 0:Oe.state;return be?{popperRect:le.getBoundingClientRect(),popperState:be,props:n}:null}).filter(Boolean);K4(Q,I)&&(q(),it(I))}}function ce(I){var J=Z(I)||y.props.trigger.indexOf("click")>=0&&s;if(!J){if(y.props.interactive){y.hideWithInteractivity(I);return}it(I)}}function je(I){y.props.trigger.indexOf("focusin")<0&&I.target!==D()||y.props.interactive&&I.relatedTarget&&E.contains(I.relatedTarget)||it(I)}function Z(I){return Zn.isTouch?k()!==I.type.indexOf("touch")>=0:!1}function Ne(){$e();var I=y.props,J=I.popperOptions,H=I.placement,Q=I.offset,le=I.getReferenceClientRect,Oe=I.moveTransition,Je=$()?Od(E).arrow:null,be=le?{getBoundingClientRect:le,contextElement:le.contextElement||D()}:t,Vn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(xn){var En=xn.state;if($()){var gh=S(),ui=gh.box;["placement","reference-hidden","escaped"].forEach(function(Pr){Pr==="placement"?ui.setAttribute("data-placement",En.placement):En.attributes.popper["data-popper-"+Pr]?ui.setAttribute("data-"+Pr,""):ui.removeAttribute("data-"+Pr)}),En.attributes.popper={}}}},Se=[{name:"offset",options:{offset:Q}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Oe}},Vn];$()&&Je&&Se.push({name:"arrow",options:{element:Je,padding:3}}),Se.push.apply(Se,(J==null?void 0:J.modifiers)||[]),y.popperInstance=ol(be,E,Object.assign({},J,{placement:H,onFirstUpdate:f,modifiers:Se}))}function $e(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Be(){var I=y.props.appendTo,J,H=D();y.props.interactive&&I===Gm||I==="parent"?J=H.parentNode:J=Jm(I,[H]),J.contains(E)||J.appendChild(E),y.state.isMounted=!0,Ne(),process.env.NODE_ENV!=="production"&&vr(y.props.interactive&&I===cn.appendTo&&H.nextElementSibling!==E,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`

`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`

`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`

`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function ze(){return il(E.querySelectorAll("[data-tippy-root]"))}function gt(I){y.clearDelayTimeouts(),I&&A("onTrigger",[y,I]),R();var J=O(!0),H=L(),Q=H[0],le=H[1];Zn.isTouch&&Q==="hold"&&le&&(J=le),J?r=setTimeout(function(){y.show()},J):y.show()}function it(I){if(y.clearDelayTimeouts(),A("onUntrigger",[y,I]),!y.state.isVisible){G();return}if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(I.type)>=0&&s)){var J=O(!1);J?o=setTimeout(function(){y.state.isVisible&&y.hide()},J):a=requestAnimationFrame(function(){y.hide()})}}function yt(){y.state.isEnabled=!0}function St(){y.hide(),y.state.isEnabled=!1}function vn(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(a)}function kn(I){if(process.env.NODE_ENV!=="production"&&vr(y.state.isDestroyed,Ci("setProps")),!y.state.isDestroyed){A("onBeforeUpdate",[y,I]),ie();var J=y.props,H=lg(t,Object.assign({},J,Zm(I),{ignoreAttributes:!0}));y.props=H,ue(),J.interactiveDebounce!==H.interactiveDebounce&&(q(),m=Xm(se,H.interactiveDebounce)),J.triggerTarget&&!H.triggerTarget?Ei(J.triggerTarget).forEach(function(Q){Q.removeAttribute("aria-expanded")}):H.triggerTarget&&t.removeAttribute("aria-expanded"),P(),w(),C&&C(J,H),y.popperInstance&&(Ne(),ze().forEach(function(Q){requestAnimationFrame(Q._tippy.popperInstance.forceUpdate)})),A("onAfterUpdate",[y,I])}}function ln(I){y.setProps({content:I})}function U(){process.env.NODE_ENV!=="production"&&vr(y.state.isDestroyed,Ci("show"));var I=y.state.isVisible,J=y.state.isDestroyed,H=!y.state.isEnabled,Q=Zn.isTouch&&!y.props.touch,le=Ed(y.props.duration,0,cn.duration);if(!(I||J||H||Q)&&!D().hasAttribute("disabled")&&(A("onShow",[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,$()&&(E.style.visibility="visible"),w(),R(),y.state.isMounted||(E.style.transition="none"),$()){var Oe=S(),Je=Oe.box,be=Oe.content;Sd([Je,be],0)}f=function(){var Se;if(!(!y.state.isVisible||c)){if(c=!0,E.offsetHeight,E.style.transition=y.props.moveTransition,$()&&y.props.animation){var Br=S(),xn=Br.box,En=Br.content;Sd([xn,En],le),eg([xn,En],"visible")}z(),P(),Qm($d,y),(Se=y.popperInstance)==null||Se.forceUpdate(),A("onMount",[y]),y.props.animation&&$()&&K(le,function(){y.state.isShown=!0,A("onShown",[y])})}},Be()}}function ne(){process.env.NODE_ENV!=="production"&&vr(y.state.isDestroyed,Ci("hide"));var I=!y.state.isVisible,J=y.state.isDestroyed,H=!y.state.isEnabled,Q=Ed(y.props.duration,1,cn.duration);if(!(I||J||H)&&(A("onHide",[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,c=!1,s=!1,$()&&(E.style.visibility="hidden"),q(),G(),w(!0),$()){var le=S(),Oe=le.box,Je=le.content;y.props.animation&&(Sd([Oe,Je],Q),eg([Oe,Je],"hidden"))}z(),P(),y.props.animation?$()&&j(Q,y.unmount):y.unmount()}}function we(I){process.env.NODE_ENV!=="production"&&vr(y.state.isDestroyed,Ci("hideWithInteractivity")),V().addEventListener("mousemove",m),Qm(al,m),m(I)}function Ce(){process.env.NODE_ENV!=="production"&&vr(y.state.isDestroyed,Ci("unmount")),y.state.isVisible&&y.hide(),y.state.isMounted&&($e(),ze().forEach(function(I){I._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),$d=$d.filter(function(I){return I!==y}),y.state.isMounted=!1,A("onHidden",[y]))}function Ge(){process.env.NODE_ENV!=="production"&&vr(y.state.isDestroyed,Ci("destroy")),!y.state.isDestroyed&&(y.clearDelayTimeouts(),y.unmount(),ie(),delete t._tippy,y.state.isDestroyed=!0,A("onDestroy",[y]))}}function Ao(t,e){e===void 0&&(e={});var n=cn.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(tE(t),ug(e,n)),J4();var r=Object.assign({},e,{plugins:n}),o=U4(t);if(process.env.NODE_ENV!=="production"){var a=Ba(r.content),s=o.length>1;vr(a&&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.",`

`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`

`,`1) content: element.innerHTML
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce(function(u,c){var d=c&&lE(c,r);return d&&u.push(d),u},[]);return Ba(t)?l[0]:l}Ao.defaultProps=cn,Ao.setDefaultProps=oE,Ao.currentInput=Zn,Object.assign({},$m,{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)}}),Ao.setDefaultProps({render:fg});var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ir(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function uE(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var pg={exports:{}};(function(t){(function(e,n){t.exports=n()})(me,function(){var e=Object.prototype.toString;function n(p,f){return p==null?!1:Object.prototype.hasOwnProperty.call(p,f)}function r(p){if(!p||s(p)&&p.length===0)return!0;if(typeof p!="string"){for(var f in p)if(n(p,f))return!1;return!0}return!1}function o(p){return e.call(p)}function a(p){return typeof p=="object"&&o(p)==="[object Object]"}var s=Array.isArray||function(p){return e.call(p)==="[object Array]"};function l(p){return typeof p=="boolean"||o(p)==="[object Boolean]"}function u(p){var f=parseInt(p);return f.toString()===p?f:p}function c(p){p=p||{};var f=function(v){return Object.keys(f).reduce(function(x,N){return N==="create"||typeof f[N]=="function"&&(x[N]=f[N].bind(f,v)),x},{})},h;p.includeInheritedProps?h=function(){return!0}:h=function(v,x){return typeof x=="number"&&Array.isArray(v)||n(v,x)};function m(v,x){if(h(v,x))return v[x]}var g;p.includeInheritedProps?g=function(v,x){typeof x!="string"&&typeof x!="number"&&(x=String(x));var N=m(v,x);if(x==="__proto__"||x==="prototype"||x==="constructor"&&typeof N=="function")throw new Error("For security reasons, object's magic properties cannot be set");return N}:g=function(v,x){return m(v,x)};function b(v,x,N,y){if(typeof x=="number"&&(x=[x]),!x||x.length===0)return v;if(typeof x=="string")return b(v,x.split(".").map(u),N,y);var M=x[0],E=g(v,M);return x.length===1?((E===void 0||!y)&&(v[M]=N),E):(E===void 0&&(typeof x[1]=="number"?v[M]=[]:v[M]={}),b(v[M],x.slice(1),N,y))}return f.has=function(v,x){if(typeof x=="number"?x=[x]:typeof x=="string"&&(x=x.split(".")),!x||x.length===0)return!!v;for(var N=0;N<x.length;N++){var y=u(x[N]);if(typeof y=="number"&&s(v)&&y<v.length||(p.includeInheritedProps?y in Object(v):n(v,y)))v=v[y];else return!1}return!0},f.ensureExists=function(v,x,N){return b(v,x,N,!0)},f.set=function(v,x,N,y){return b(v,x,N,y)},f.insert=function(v,x,N,y){var M=f.get(v,x);y=~~y,s(M)||(M=[],f.set(v,x,M)),M.splice(y,0,N)},f.empty=function(v,x){if(!r(x)&&v!=null){var N,y;if(N=f.get(v,x)){if(typeof N=="string")return f.set(v,x,"");if(l(N))return f.set(v,x,!1);if(typeof N=="number")return f.set(v,x,0);if(s(N))N.length=0;else if(a(N))for(y in N)h(N,y)&&delete N[y];else return f.set(v,x,null)}}},f.push=function(v,x){var N=f.get(v,x);s(N)||(N=[],f.set(v,x,N)),N.push.apply(N,Array.prototype.slice.call(arguments,2))},f.coalesce=function(v,x,N){for(var y,M=0,E=x.length;M<E;M++)if((y=f.get(v,x[M]))!==void 0)return y;return N},f.get=function(v,x,N){if(typeof x=="number"&&(x=[x]),!x||x.length===0)return v;if(v==null)return N;if(typeof x=="string")return f.get(v,x.split("."),N);var y=u(x[0]),M=g(v,y);return M===void 0?N:x.length===1?M:f.get(v[y],x.slice(1),N)},f.del=function(x,N){if(typeof N=="number"&&(N=[N]),x==null||r(N))return x;if(typeof N=="string")return f.del(x,N.split("."));var y=u(N[0]);if(g(x,y),!h(x,y))return x;if(N.length===1)s(x)?x.splice(y,1):delete x[y];else return f.del(x[y],N.slice(1));return x},f}var d=c();return d.create=c,d.withInheritedProps=c({includeInheritedProps:!0}),d})})(pg);var cE=pg.exports;const Ad=Ir(cE);var hg=(t=>(t.AdventurerNeutral="adventurer-neutral",t.AvataaarsNeutral="avataaars-neutral",t.BigEarsNeutral="big-ears-neutral",t.BigSmile="big-smile",t.BotttsNeutral="bottts-neutral",t.Croodles="croodles",t.CroodlesNeutral="croodles-neutral",t.Initials="initials",t.Lorelei="lorelei",t.LoreleiNeutral="lorelei-neutral",t.Micah="micah",t.Miniavs="miniavs",t.Notionists="notionists",t.NotionistsNeutral="notionists-neutral",t.OpenPeeps="open-peeps",t.Thumbs="thumbs",t))(hg||{});const mg={name:"Kodama",version:"0.1.0",darkMode:!1,logo:{favicon:"https://kodamaui.s3.eu-west-1.amazonaws.com/logos/favicon.png",dark:"https://kodamaui.s3.eu-west-1.amazonaws.com/logos/logo-dark.png",light:"https://kodamaui.s3.eu-west-1.amazonaws.com/logos/logo.png",side_dark:"https://kodamaui.s3.eu-west-1.amazonaws.com/logos/sidelogo-dark.png",side_light:"https://kodamaui.s3.eu-west-1.amazonaws.com/logos/sidelogo.png"},copyright:{text:"Kodama UI",link:"https://calltek.es"},avatarType:"notionists-neutral",routes:{homepage:"/",profile:"",configuration:""},auth:{background:"",signup:!1},changelog:!1,isMobileView:!1,isTabletView:!1,aside:{collapsed:!0},menuType:"default",vendor:{fontAwesomeKit:"",sentryDSN:""},locale:{current:"es",fallback:"es",available:["es"]},debug:!1},Fe=Vh("config",{persist:!0,state:()=>({initialized:!1,data:structuredClone(mg)}),actions:{init(){this.initialized||(this.reset(),this.initialized=!0)},get(t,e){return t?Ad.get(this.data,t,e):this.data},set(t,e){Ad.set(this.data,t,e)},reset(){const e=i.getCurrentInstance().proxy.settings||{};Ad.set(this,"data",{...structuredClone(mg),...structuredClone(e)})}}}),dE={queries:{}},Rr=Vh("query",{persist:!0,state:()=>dE,getters:{get:t=>e=>t.queries[e]?t.queries[e]:{filter:null,limit:20,order:null,strict:!0}},actions:{clean(){this.queries={}},init(t,e){this.queries[t]={filter:(e==null?void 0:e.filter)||null,limit:(e==null?void 0:e.limit)||20,order:(e==null?void 0:e.order)||null,strict:(e==null?void 0:e.strict)||!0}},order(t){const e=this;return{set(n,r){e.queries[t]===void 0&&e.init(t),e.queries[t].order?e.queries[t].order[n]=r:e.queries[t].order={[n]:r}},delete(n){return e.queries[t]!==void 0&&e.queries[t].order&&e.queries[t].order[n]?(delete e.queries[t].order[n],!0):!1}}},limit(t){const e=this;return{set(n){e.queries[t]===void 0&&e.init(t),e.queries[t].limit=n}}},strict(t){const e=this;return{set(n){e.queries[t]===void 0&&e.init(t),e.queries[t].strict=n}}},filter(t){const e=this;return{reset(){e.init(t)},set(n,r){e.queries[t]===void 0&&e.init(t),e.queries[t].filter===null?e.queries[t].filter={[n]:r}:e.queries[t].filter[n]===void 0&&(e.queries[t].filter[n]=r)},delete(n){e.queries[t]!==void 0&&e.queries[t].filter[n]!==void 0&&delete e.queries[t].filter[n]}}}}});i.computed(()=>Fe().get()),i.computed(()=>Fe().get("name"));const fE=i.computed(()=>Fe().get("version")),sl=i.computed(()=>Fe().get("routes.homepage")),pE=i.computed(()=>Fe().get("routes")),hE=i.computed(()=>Fe().get("logo")),mE=i.computed(()=>Fe().get("copyright")),gg=i.computed(()=>Fe().get("darkMode")),ll=i.computed(()=>gg.value?"#1F2937":"#F3F4F6"),bg=i.computed(()=>Fe().get("auth.background"));i.computed(()=>Fe().get("auth.signup")===!0);const gE=i.computed(()=>Fe().get("changelog")===!0);i.computed(()=>Fe().get("aside.collapsed")===!0);const bE=i.computed(()=>Fe().get("vendor.fontAwesomeKit"));i.computed(()=>Fe().get("vendor.sentryDSN")),i.computed(()=>Fe().get("debug"));const yE=i.defineComponent({name:"KodamaUI",setup(){var p;const t=Fe();i.onMounted(()=>{r(!0),window.addEventListener("resize",e)}),i.onBeforeUnmount(()=>{window.removeEventListener("resize",e)});const e=()=>{r(!1)},n=(f=!1,h=!1)=>{t.set("isMobileView",f),t.set("isTabletView",h)},r=(f=!0)=>{const h=t.get("isMobileView",!1),m=t.get("isTabletView",!1),g=window.innerWidth,b={next:{mobile:g<768,tablet:g<992,desktop:!(g<768)&&!(g<992)},prev:{mobile:h,tablet:m,desktop:!h&&!m}};b.next.desktop&&(b.next.desktop!==b.prev.desktop||f)&&n(!1,!1),b.next.tablet&&!b.next.mobile&&(b.next.tablet!==b.prev.tablet||f)&&n(!1,!0),b.next.mobile&&(b.next.mobile!==b.prev.mobile||f)&&n(!0,!1)},o=()=>{var f=document.querySelector('link[rel~="icon"]');f||(f=document.createElement("link"),f.rel="icon",document.getElementsByTagName("head")[0].appendChild(f)),f.href=hE.value.favicon},a=()=>{const f=bE;if(f){const h=document.createElement("script");h.src=f.value,h.crossOrigin="anonymous",document.head.prepend(h)}},s=()=>{const f=document.createElement("link");f.rel="stylesheet",f.href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Rubik:wght@400;500;600;700&display=swap",document.head.prepend(f)};t.get("darkMode")&&((p=document.querySelector("html"))==null||p.classList.add("dark"));const u=t.get("fontSize")||"medium",c=document.documentElement,d={small:".8rem",medium:".9rem",large:"1rem"};c.style.setProperty("--font-size-base",d[u]),i.onMounted(()=>{t.init(),o(),a(),s(),Ao("[tooltip]");const f=document.querySelector("html"),h=(f==null?void 0:f.getAttribute("data-storybook"))==="true";f&&h&&new MutationObserver(g=>{for(const b of g){const x=b.target.getAttribute(b.attributeName);i.nextTick(()=>{x==="dark"?t.set("darkMode",!0):t.set("darkMode",!1)})}}).observe(f,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})})}}),HK="",de=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n};function wE(t,e,n,r,o,a){const s=i.resolveComponent("router-view");return i.openBlock(),i.createBlock(s)}const vE=de(yE,[["render",wE]]),kE=i.defineComponent({name:"KTFooter",setup(){return{changelogEnabled:gE,copyright:mE}}}),xE={id:"k-footer",class:"p-4 dark:bg-gray-800 bg-white hidden sm:flex"},EE={class:"flex flex-col md:flex-row items-center justify-between text-sm w-full text-gray-800 dark:text-gray-200"},CE={class:"order-2 md:order-1"},SE=i.createElementVNode("span",{class:"font-bold mr-1"},"© 2023 - ",-1),_E=["href"],TE={class:"font-semibold order-1 flex flex-row gap-4 select-none"},NE={class:"whitespace-nowrap"},OE={class:"cursor-pointer",href:"https://calltek.es/soporte",target:"_blank"},$E={class:"whitespace-nowrap"},AE={href:"https://calltek.es/blog",target:"_blank"},ME={key:0,class:"menu-item"};function DE(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",xE,[i.createElementVNode("div",EE,[i.createElementVNode("div",CE,[SE,i.createElementVNode("a",{href:t.copyright.link,target:"_blank",class:"uppercase text-hover-primary font-semibold"},i.toDisplayString(t.copyright.text),9,_E)]),i.createElementVNode("ul",TE,[i.createElementVNode("li",NE,[i.createElementVNode("a",OE,[i.createVNode(s,{icon:"life-ring",class:"mr-1"}),i.createTextVNode(" Soporte ")])]),i.createElementVNode("li",$E,[i.createElementVNode("a",AE,[i.createVNode(s,{icon:"blog",class:"mr-1"}),i.createTextVNode(" Noticias ")])]),t.changelogEnabled?(i.openBlock(),i.createElementBlock("li",ME,[i.createVNode(l,{to:{name:"changelog"},class:"menu-link px-2"},{default:i.withCtx(()=>[i.createVNode(s,{icon:"cat-space",class:"mr-1"}),i.createTextVNode(" Registro de cambios ")]),_:1})])):i.createCommentVNode("",!0)])])])}const BE=de(kE,[["render",DE]]);/*!
  * vue-router v4.2.5
  * (c) 2023 Eduardo San Martin Morote
  * @license MIT
  */const kr=typeof window<"u";function PE(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ue=Object.assign;function Md(t,e){const n={};for(const r in e){const o=e[r];n[r]=dn(o)?o.map(t):t(o)}return n}const Va=()=>{},dn=Array.isArray;function Ve(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}const VE=/\/$/,LE=t=>t.replace(VE,"");function Dd(t,e,n="/"){let r,o={},a="",s="";const l=e.indexOf("#");let u=e.indexOf("?");return l<u&&l>=0&&(u=-1),u>-1&&(r=e.slice(0,u),a=e.slice(u+1,l>-1?l:e.length),o=t(a)),l>-1&&(r=r||e.slice(0,l),s=e.slice(l,e.length)),r=zE(r??e,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:s}}function IE(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function yg(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function wg(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&zr(e.matched[r],n.matched[o])&&vg(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function zr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function vg(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!RE(t[n],e[n]))return!1;return!0}function RE(t,e){return dn(t)?kg(t,e):dn(e)?kg(e,t):t===e}function kg(t,e){return dn(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function zE(t,e){if(t.startsWith("/"))return t;if(process.env.NODE_ENV!=="production"&&!e.startsWith("/"))return Ve(`Cannot resolve a relative location without an absolute path. Trying to resolve "${t}" from "${e}". It should look like "/${e}".`),t;if(!t)return e;const n=e.split("/"),r=t.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,s,l;for(s=0;s<r.length;s++)if(l=r[s],l!==".")if(l==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Si;(function(t){t.pop="pop",t.push="push"})(Si||(Si={}));var Mo;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Mo||(Mo={}));const Bd="";function xg(t){if(!t)if(kr){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),LE(t)}const FE=/^[^#]+#/;function Eg(t,e){return t.replace(FE,"#")+e}function HE(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const ul=()=>({left:window.pageXOffset,top:window.pageYOffset});function qE(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof t.el=="string"&&(!r||!document.getElementById(t.el.slice(1))))try{const a=document.querySelector(t.el);if(r&&a){Ve(`The selector "${t.el}" should be passed as "el: document.querySelector('${t.el}')" because it starts with "#".`);return}}catch{Ve(`The selector "${t.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o){process.env.NODE_ENV!=="production"&&Ve(`Couldn't find element using selector "${t.el}" returned by scrollBehavior.`);return}e=HE(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Cg(t,e){return(history.state?history.state.position-e:-1)+t}const Pd=new Map;function jE(t,e){Pd.set(t,e)}function UE(t){const e=Pd.get(t);return Pd.delete(t),e}let WE=()=>location.protocol+"//"+location.host;function Sg(t,e){const{pathname:n,search:r,hash:o}=e,a=t.indexOf("#");if(a>-1){let l=o.includes(t.slice(a))?t.slice(a).length:1,u=o.slice(l);return u[0]!=="/"&&(u="/"+u),yg(u,"")}return yg(n,t)+r+o}function KE(t,e,n,r){let o=[],a=[],s=null;const l=({state:f})=>{const h=Sg(t,location),m=n.value,g=e.value;let b=0;if(f){if(n.value=h,e.value=f,s&&s===m){s=null;return}b=g?f.position-g.position:0}else r(h);o.forEach(v=>{v(n.value,m,{delta:b,type:Si.pop,direction:b?b>0?Mo.forward:Mo.back:Mo.unknown})})};function u(){s=n.value}function c(f){o.push(f);const h=()=>{const m=o.indexOf(f);m>-1&&o.splice(m,1)};return a.push(h),h}function d(){const{history:f}=window;f.state&&f.replaceState(Ue({},f.state,{scroll:ul()}),"")}function p(){for(const f of a)f();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:c,destroy:p}}function _g(t,e,n,r=!1,o=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:o?ul():null}}function YE(t){const{history:e,location:n}=window,r={value:Sg(t,n)},o={value:e.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(u,c,d){const p=t.indexOf("#"),f=p>-1?(n.host&&document.querySelector("base")?t:t.slice(p))+u:WE()+t+u;try{e[d?"replaceState":"pushState"](c,"",f),o.value=c}catch(h){process.env.NODE_ENV!=="production"?Ve("Error with push/replace State",h):console.error(h),n[d?"replace":"assign"](f)}}function s(u,c){const d=Ue({},e.state,_g(o.value.back,u,o.value.forward,!0),c,{position:o.value.position});a(u,d,!0),r.value=u}function l(u,c){const d=Ue({},o.value,e.state,{forward:u,scroll:ul()});process.env.NODE_ENV!=="production"&&!e.state&&Ve(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:

history.replaceState(history.state, '', url)

You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),a(d.current,d,!0);const p=Ue({},_g(r.value,u,null),{position:d.position+1},c);a(u,p,!1),r.value=u}return{location:r,state:o,push:l,replace:s}}function Tg(t){t=xg(t);const e=YE(t),n=KE(t,e.state,e.location,e.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const o=Ue({location:"",base:t,go:r,createHref:Eg.bind(null,t)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function GE(t=""){let e=[],n=[Bd],r=0;t=xg(t);function o(l){r++,r!==n.length&&n.splice(r),n.push(l)}function a(l,u,{direction:c,delta:d}){const p={direction:c,delta:d,type:Si.pop};for(const f of e)f(l,u,p)}const s={location:Bd,state:{},base:t,createHref:Eg.bind(null,t),replace(l){n.splice(r--,1),o(l)},push(l,u){o(l)},listen(l){return e.push(l),()=>{const u=e.indexOf(l);u>-1&&e.splice(u,1)}},destroy(){e=[],n=[Bd],r=0},go(l,u=!0){const c=this.location,d=l<0?Mo.back:Mo.forward;r=Math.max(0,Math.min(r+l,n.length-1)),u&&a(this.location,c,{direction:d,delta:l})}};return Object.defineProperty(s,"location",{enumerable:!0,get:()=>n[r]}),s}function JE(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),process.env.NODE_ENV!=="production"&&!t.endsWith("#/")&&!t.endsWith("#")&&Ve(`A hash base must end with a "#":
"${t}" should be "${t.replace(/#.*$/,"#")}".`),Tg(t)}function XE(t){return typeof t=="string"||t&&typeof t=="object"}function Ng(t){return typeof t=="string"||typeof t=="symbol"}const Fr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Vd=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Og;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Og||(Og={}));const QE={1({location:t,currentLocation:e}){return`No match for
 ${JSON.stringify(t)}${e?`
while being at
`+JSON.stringify(e):""}`},2({from:t,to:e}){return`Redirected from "${t.fullPath}" to "${eC(e)}" via a navigation guard.`},4({from:t,to:e}){return`Navigation aborted from "${t.fullPath}" to "${e.fullPath}" via a navigation guard.`},8({from:t,to:e}){return`Navigation cancelled from "${t.fullPath}" to "${e.fullPath}" with a new navigation.`},16({from:t,to:e}){return`Avoided redundant navigation to current location: "${t.fullPath}".`}};function _i(t,e){return process.env.NODE_ENV!=="production"?Ue(new Error(QE[t](e)),{type:t,[Vd]:!0},e):Ue(new Error,{type:t,[Vd]:!0},e)}function xr(t,e){return t instanceof Error&&Vd in t&&(e==null||!!(t.type&e))}const ZE=["params","query","hash"];function eC(t){if(typeof t=="string")return t;if("path"in t)return t.path;const e={};for(const n of ZE)n in t&&(e[n]=t[n]);return JSON.stringify(e,null,2)}const $g="[^/]+?",tC={sensitive:!1,strict:!1,start:!0,end:!0},nC=/[.+*?^${}()[\]/\\]/g;function rC(t,e){const n=Ue({},tC,e),r=[];let o=n.start?"^":"";const a=[];for(const c of t){const d=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let p=0;p<c.length;p++){const f=c[p];let h=40+(n.sensitive?.25:0);if(f.type===0)p||(o+="/"),o+=f.value.replace(nC,"\\$&"),h+=40;else if(f.type===1){const{value:m,repeatable:g,optional:b,regexp:v}=f;a.push({name:m,repeatable:g,optional:b});const x=v||$g;if(x!==$g){h+=10;try{new RegExp(`(${x})`)}catch(y){throw new Error(`Invalid custom RegExp for param "${m}" (${x}): `+y.message)}}let N=g?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;p||(N=b&&c.length<2?`(?:/${N})`:"/"+N),b&&(N+="?"),o+=N,h+=20,b&&(h+=-8),g&&(h+=-20),x===".*"&&(h+=-50)}d.push(h)}r.push(d)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function l(c){const d=c.match(s),p={};if(!d)return null;for(let f=1;f<d.length;f++){const h=d[f]||"",m=a[f-1];p[m.name]=h&&m.repeatable?h.split("/"):h}return p}function u(c){let d="",p=!1;for(const f of t){(!p||!d.endsWith("/"))&&(d+="/"),p=!1;for(const h of f)if(h.type===0)d+=h.value;else if(h.type===1){const{value:m,repeatable:g,optional:b}=h,v=m in c?c[m]:"";if(dn(v)&&!g)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const x=dn(v)?v.join("/"):v;if(!x)if(b)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):p=!0);else throw new Error(`Missing required param "${m}"`);d+=x}}return d||"/"}return{re:s,score:r,keys:a,parse:l,stringify:u}}function oC(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===40+40?-1:1:t.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function iC(t,e){let n=0;const r=t.score,o=e.score;for(;n<r.length&&n<o.length;){const a=oC(r[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-r.length)===1){if(Ag(r))return 1;if(Ag(o))return-1}return o.length-r.length}function Ag(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const aC={type:0,value:""},sC=/[a-zA-Z0-9_]/;function lC(t){if(!t)return[[]];if(t==="/")return[[aC]];if(!t.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${t}" should be "/${t}".`:`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let l=0,u,c="",d="";function p(){c&&(n===0?a.push({type:0,value:c}):n===1||n===2||n===3?(a.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=u}for(;l<t.length;){if(u=t[l++],u==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:u==="/"?(c&&p(),s()):u===":"?(p(),n=1):f();break;case 4:f(),n=r;break;case 1:u==="("?n=2:sC.test(u)?f():(p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--);break;case 2:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=3:d+=u;break;case 3:p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--,d="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${c}"`),p(),s(),o}function uC(t,e,n){const r=rC(lC(t.path),n);if(process.env.NODE_ENV!=="production"){const a=new Set;for(const s of r.keys)a.has(s.name)&&Ve(`Found duplicated params with name "${s.name}" for path "${t.path}". Only the last one will be available on "$route.params".`),a.add(s.name)}const o=Ue(r,{record:t,parent:e,children:[],alias:[]});return e&&!o.record.aliasOf==!e.record.aliasOf&&e.children.push(o),o}function cC(t,e){const n=[],r=new Map;e=Bg({strict:!1,end:!0,sensitive:!1},e);function o(d){return r.get(d)}function a(d,p,f){const h=!f,m=dC(d);process.env.NODE_ENV!=="production"&&mC(m,p),m.aliasOf=f&&f.record;const g=Bg(e,d),b=[m];if("alias"in d){const N=typeof d.alias=="string"?[d.alias]:d.alias;for(const y of N)b.push(Ue({},m,{components:f?f.record.components:m.components,path:y,aliasOf:f?f.record:m}))}let v,x;for(const N of b){const{path:y}=N;if(p&&y[0]!=="/"){const M=p.record.path,E=M[M.length-1]==="/"?"":"/";N.path=p.record.path+(y&&E+y)}if(process.env.NODE_ENV!=="production"&&N.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(v=uC(N,p,g),process.env.NODE_ENV!=="production"&&p&&y[0]==="/"&&gC(v,p),f?(f.alias.push(v),process.env.NODE_ENV!=="production"&&hC(f,v)):(x=x||v,x!==v&&x.alias.push(v),h&&d.name&&!Dg(v)&&s(d.name)),m.children){const M=m.children;for(let E=0;E<M.length;E++)a(M[E],v,f&&f.children[E])}f=f||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&u(v)}return x?()=>{s(x)}:Va}function s(d){if(Ng(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function l(){return n}function u(d){let p=0;for(;p<n.length&&iC(d,n[p])>=0&&(d.record.path!==n[p].record.path||!Pg(d,n[p]));)p++;n.splice(p,0,d),d.record.name&&!Dg(d)&&r.set(d.record.name,d)}function c(d,p){let f,h={},m,g;if("name"in d&&d.name){if(f=r.get(d.name),!f)throw _i(1,{location:d});if(process.env.NODE_ENV!=="production"){const x=Object.keys(d.params||{}).filter(N=>!f.keys.find(y=>y.name===N));x.length&&Ve(`Discarded invalid param(s) "${x.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}g=f.record.name,h=Ue(Mg(p.params,f.keys.filter(x=>!x.optional).map(x=>x.name)),d.params&&Mg(d.params,f.keys.map(x=>x.name))),m=f.stringify(h)}else if("path"in d)m=d.path,process.env.NODE_ENV!=="production"&&!m.startsWith("/")&&Ve(`The Matcher cannot resolve relative paths but received "${m}". Unless you directly called \`matcher.resolve("${m}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),f=n.find(x=>x.re.test(m)),f&&(h=f.parse(m),g=f.record.name);else{if(f=p.name?r.get(p.name):n.find(x=>x.re.test(p.path)),!f)throw _i(1,{location:d,currentLocation:p});g=f.record.name,h=Ue({},p.params,d.params),m=f.stringify(h)}const b=[];let v=f;for(;v;)b.unshift(v.record),v=v.parent;return{name:g,path:m,params:h,matched:b,meta:pC(b)}}return t.forEach(d=>a(d)),{addRoute:a,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Mg(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function dC(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:fC(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function fC(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function Dg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function pC(t){return t.reduce((e,n)=>Ue(e,n.meta),{})}function Bg(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function Ld(t,e){return t.name===e.name&&t.optional===e.optional&&t.repeatable===e.repeatable}function hC(t,e){for(const n of t.keys)if(!n.optional&&!e.keys.find(Ld.bind(null,n)))return Ve(`Alias "${e.record.path}" and the original record: "${t.record.path}" must have the exact same param named "${n.name}"`);for(const n of e.keys)if(!n.optional&&!t.keys.find(Ld.bind(null,n)))return Ve(`Alias "${e.record.path}" and the original record: "${t.record.path}" must have the exact same param named "${n.name}"`)}function mC(t,e){e&&e.record.name&&!t.name&&!t.path&&Ve(`The route named "${String(e.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function gC(t,e){for(const n of e.keys)if(!t.keys.find(Ld.bind(null,n)))return Ve(`Absolute path "${t.record.path}" must have the exact same param named "${n.name}" as its parent "${e.record.path}".`)}function Pg(t,e){return e.children.some(n=>n===t||Pg(t,n))}const Vg=/#/g,bC=/&/g,yC=/\//g,wC=/=/g,vC=/\?/g,Lg=/\+/g,kC=/%5B/g,xC=/%5D/g,Ig=/%5E/g,EC=/%60/g,Rg=/%7B/g,CC=/%7C/g,zg=/%7D/g,SC=/%20/g;function Id(t){return encodeURI(""+t).replace(CC,"|").replace(kC,"[").replace(xC,"]")}function _C(t){return Id(t).replace(Rg,"{").replace(zg,"}").replace(Ig,"^")}function Rd(t){return Id(t).replace(Lg,"%2B").replace(SC,"+").replace(Vg,"%23").replace(bC,"%26").replace(EC,"`").replace(Rg,"{").replace(zg,"}").replace(Ig,"^")}function TC(t){return Rd(t).replace(wC,"%3D")}function NC(t){return Id(t).replace(Vg,"%23").replace(vC,"%3F")}function OC(t){return t==null?"":NC(t).replace(yC,"%2F")}function La(t){try{return decodeURIComponent(""+t)}catch{process.env.NODE_ENV!=="production"&&Ve(`Error decoding "${t}". Using original value`)}return""+t}function $C(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let o=0;o<r.length;++o){const a=r[o].replace(Lg," "),s=a.indexOf("="),l=La(s<0?a:a.slice(0,s)),u=s<0?null:La(a.slice(s+1));if(l in e){let c=e[l];dn(c)||(c=e[l]=[c]),c.push(u)}else e[l]=u}return e}function Fg(t){let e="";for(let n in t){const r=t[n];if(n=TC(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(dn(r)?r.map(a=>a&&Rd(a)):[r&&Rd(r)]).forEach(a=>{a!==void 0&&(e+=(e.length?"&":"")+n,a!=null&&(e+="="+a))})}return e}function AC(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=dn(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return e}const MC=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Hg=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),cl=Symbol(process.env.NODE_ENV!=="production"?"router":""),zd=Symbol(process.env.NODE_ENV!=="production"?"route location":""),Fd=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ia(){let t=[];function e(r){return t.push(r),()=>{const o=t.indexOf(r);o>-1&&t.splice(o,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Hr(t,e,n,r,o){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const u=p=>{p===!1?l(_i(4,{from:n,to:e})):p instanceof Error?l(p):XE(p)?l(_i(2,{from:e,to:p})):(a&&r.enterCallbacks[o]===a&&typeof p=="function"&&a.push(p),s())},c=t.call(r&&r.instances[o],e,n,process.env.NODE_ENV!=="production"?DC(u,e,n):u);let d=Promise.resolve(c);if(t.length<3&&(d=d.then(u)),process.env.NODE_ENV!=="production"&&t.length>2){const p=`The "next" callback was never called inside of ${t.name?'"'+t.name+'"':""}:
${t.toString()}
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof c=="object"&&"then"in c)d=d.then(f=>u._called?f:(Ve(p),Promise.reject(new Error("Invalid navigation guard"))));else if(c!==void 0&&!u._called){Ve(p),l(new Error("Invalid navigation guard"));return}}d.catch(p=>l(p))})}function DC(t,e,n){let r=0;return function(){r++===1&&Ve(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${e.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),t._called=!0,r===1&&t.apply(null,arguments)}}function Hd(t,e,n,r){const o=[];for(const a of t){process.env.NODE_ENV!=="production"&&!a.components&&!a.children.length&&Ve(`Record with path "${a.path}" is either missing a "component(s)" or "children" property.`);for(const s in a.components){let l=a.components[s];if(process.env.NODE_ENV!=="production"){if(!l||typeof l!="object"&&typeof l!="function")throw Ve(`Component "${s}" in record with path "${a.path}" is not a valid component. Received "${String(l)}".`),new Error("Invalid route component");if("then"in l){Ve(`Component "${s}" in record with path "${a.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const u=l;l=()=>u}else l.__asyncLoader&&!l.__warnedDefineAsync&&(l.__warnedDefineAsync=!0,Ve(`Component "${s}" in record with path "${a.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(e!=="beforeRouteEnter"&&!a.instances[s]))if(BC(l)){const c=(l.__vccOpts||l)[e];c&&o.push(Hr(c,n,r,a,s))}else{let u=l();process.env.NODE_ENV!=="production"&&!("catch"in u)&&(Ve(`Component "${s}" in record with path "${a.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),u=Promise.resolve(u)),o.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${a.path}"`));const d=PE(c)?c.default:c;a.components[s]=d;const f=(d.__vccOpts||d)[e];return f&&Hr(f,n,r,a,s)()}))}}}return o}function BC(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function qg(t){const e=i.inject(cl),n=i.inject(zd),r=i.computed(()=>e.resolve(i.unref(t.to))),o=i.computed(()=>{const{matched:u}=r.value,{length:c}=u,d=u[c-1],p=n.matched;if(!d||!p.length)return-1;const f=p.findIndex(zr.bind(null,d));if(f>-1)return f;const h=jg(u[c-2]);return c>1&&jg(d)===h&&p[p.length-1].path!==h?p.findIndex(zr.bind(null,u[c-2])):f}),a=i.computed(()=>o.value>-1&&LC(n.params,r.value.params)),s=i.computed(()=>o.value>-1&&o.value===n.matched.length-1&&vg(n.params,r.value.params));function l(u={}){return VC(u)?e[i.unref(t.replace)?"replace":"push"](i.unref(t.to)).catch(Va):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&kr){const u=i.getCurrentInstance();if(u){const c={route:r.value,isActive:a.value,isExactActive:s.value};u.__vrl_devtools=u.__vrl_devtools||[],u.__vrl_devtools.push(c),i.watchEffect(()=>{c.route=r.value,c.isActive=a.value,c.isExactActive=s.value},{flush:"post"})}}return{route:r,href:i.computed(()=>r.value.href),isActive:a,isExactActive:s,navigate:l}}const PC=i.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:qg,setup(t,{slots:e}){const n=i.reactive(qg(t)),{options:r}=i.inject(cl),o=i.computed(()=>({[Ug(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ug(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=e.default&&e.default(n);return t.custom?a:i.h("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}});function VC(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function LC(t,e){for(const n in e){const r=e[n],o=t[n];if(typeof r=="string"){if(r!==o)return!1}else if(!dn(o)||o.length!==r.length||r.some((a,s)=>a!==o[s]))return!1}return!0}function jg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Ug=(t,e,n)=>t??e??n,IC=i.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){process.env.NODE_ENV!=="production"&&zC();const r=i.inject(Fd),o=i.computed(()=>t.route||r.value),a=i.inject(Hg,0),s=i.computed(()=>{let c=i.unref(a);const{matched:d}=o.value;let p;for(;(p=d[c])&&!p.components;)c++;return c}),l=i.computed(()=>o.value.matched[s.value]);i.provide(Hg,i.computed(()=>s.value+1)),i.provide(MC,l),i.provide(Fd,o);const u=i.ref();return i.watch(()=>[u.value,l.value,t.name],([c,d,p],[f,h,m])=>{d&&(d.instances[p]=c,h&&h!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),c&&d&&(!h||!zr(d,h)||!f)&&(d.enterCallbacks[p]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=o.value,d=t.name,p=l.value,f=p&&p.components[d];if(!f)return Wg(n.default,{Component:f,route:c});const h=p.props[d],m=h?h===!0?c.params:typeof h=="function"?h(c):h:null,g=v=>{v.component.isUnmounted&&(p.instances[d]=null)},b=i.h(f,Ue({},m,e,{onVnodeUnmounted:g,ref:u}));if(process.env.NODE_ENV!=="production"&&kr&&b.ref){const v={depth:s.value,name:p.name,path:p.path,meta:p.meta};(dn(b.ref)?b.ref.map(N=>N.i):[b.ref.i]).forEach(N=>{N.__vrv_devtools=v})}return Wg(n.default,{Component:b,route:c})||b}}});function Wg(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const RC=IC;function zC(){const t=i.getCurrentInstance(),e=t.parent&&t.parent.type.name,n=t.parent&&t.parent.subTree&&t.parent.subTree.type;if(e&&(e==="KeepAlive"||e.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const r=e==="KeepAlive"?"keep-alive":"transition";Ve(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
Use slot props instead:

<router-view v-slot="{ Component }">
  <${r}>
    <component :is="Component" />
  </${r}>
</router-view>`)}}function Ra(t,e){const n=Ue({},t,{matched:t.matched.map(r=>GC(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:t.fullPath,tooltip:e,value:n}}}function dl(t){return{_custom:{display:t}}}let FC=0;function HC(t,e,n){if(e.__hasDevtools)return;e.__hasDevtools=!0;const r=FC++;Wc({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:t},o=>{typeof o.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),o.on.inspectComponent((d,p)=>{d.instanceData&&d.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ra(e.currentRoute.value,"Current Route")})}),o.on.visitComponentTree(({treeNode:d,componentInstance:p})=>{if(p.__vrv_devtools){const f=p.__vrv_devtools;d.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:Kg})}dn(p.__vrl_devtools)&&(p.__devtoolsApi=o,p.__vrl_devtools.forEach(f=>{let h=Jg,m="";f.isExactActive?(h=Gg,m="This is exactly active"):f.isActive&&(h=Yg,m="This link is active"),d.tags.push({label:f.route.path,textColor:0,tooltip:m,backgroundColor:h})}))}),i.watch(e.currentRoute,()=>{u(),o.notifyComponentUpdate(),o.sendInspectorTree(l),o.sendInspectorState(l)});const a="router:navigations:"+r;o.addTimelineLayer({id:a,label:`Router${r?" "+r:""} Navigations`,color:4237508}),e.onError((d,p)=>{o.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:p.fullPath,logType:"error",time:o.now(),data:{error:d},groupId:p.meta.__navigationId}})});let s=0;e.beforeEach((d,p)=>{const f={guard:dl("beforeEach"),from:Ra(p,"Current Location during this navigation"),to:Ra(d,"Target location")};Object.defineProperty(d.meta,"__navigationId",{value:s++}),o.addTimelineEvent({layerId:a,event:{time:o.now(),title:"Start of navigation",subtitle:d.fullPath,data:f,groupId:d.meta.__navigationId}})}),e.afterEach((d,p,f)=>{const h={guard:dl("afterEach")};f?(h.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},h.status=dl("❌")):h.status=dl("✅"),h.from=Ra(p,"Current Location during this navigation"),h.to=Ra(d,"Target location"),o.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:d.fullPath,time:o.now(),data:h,logType:f?"warning":"default",groupId:d.meta.__navigationId}})});const l="router-inspector:"+r;o.addInspector({id:l,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function u(){if(!c)return;const d=c;let p=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);p.forEach(Zg),d.filter&&(p=p.filter(f=>qd(f,d.filter.toLowerCase()))),p.forEach(f=>Qg(f,e.currentRoute.value)),d.rootNodes=p.map(Xg)}let c;o.on.getInspectorTree(d=>{c=d,d.app===t&&d.inspectorId===l&&u()}),o.on.getInspectorState(d=>{if(d.app===t&&d.inspectorId===l){const f=n.getRoutes().find(h=>h.record.__vd_id===d.nodeId);f&&(d.state={options:jC(f)})}}),o.sendInspectorTree(l),o.sendInspectorState(l)})}function qC(t){return t.optional?t.repeatable?"*":"?":t.repeatable?"+":""}function jC(t){const{record:e}=t,n=[{editable:!1,key:"path",value:e.path}];return e.name!=null&&n.push({editable:!1,key:"name",value:e.name}),n.push({editable:!1,key:"regexp",value:t.re}),t.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:t.keys.map(r=>`${r.name}${qC(r)}`).join(" "),tooltip:"Param keys",value:t.keys}}}),e.redirect!=null&&n.push({editable:!1,key:"redirect",value:e.redirect}),t.alias.length&&n.push({editable:!1,key:"aliases",value:t.alias.map(r=>r.record.path)}),Object.keys(t.record.meta).length&&n.push({editable:!1,key:"meta",value:t.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:t.score.map(r=>r.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:t.score}}}),n}const Kg=15485081,Yg=2450411,Gg=8702998,UC=2282478,Jg=16486972,WC=6710886;function Xg(t){const e=[],{record:n}=t;n.name!=null&&e.push({label:String(n.name),textColor:0,backgroundColor:UC}),n.aliasOf&&e.push({label:"alias",textColor:0,backgroundColor:Jg}),t.__vd_match&&e.push({label:"matches",textColor:0,backgroundColor:Kg}),t.__vd_exactActive&&e.push({label:"exact",textColor:0,backgroundColor:Gg}),t.__vd_active&&e.push({label:"active",textColor:0,backgroundColor:Yg}),n.redirect&&e.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:WC});let r=n.__vd_id;return r==null&&(r=String(KC++),n.__vd_id=r),{id:r,label:n.path,tags:e,children:t.children.map(Xg)}}let KC=0;const YC=/^\/(.*)\/([a-z]*)$/;function Qg(t,e){const n=e.matched.length&&zr(e.matched[e.matched.length-1],t.record);t.__vd_exactActive=t.__vd_active=n,n||(t.__vd_active=e.matched.some(r=>zr(r,t.record))),t.children.forEach(r=>Qg(r,e))}function Zg(t){t.__vd_match=!1,t.children.forEach(Zg)}function qd(t,e){const n=String(t.re).match(YC);if(t.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(e))return t.children.forEach(s=>qd(s,e)),t.record.path!=="/"||e==="/"?(t.__vd_match=t.re.test(e),!0):!1;const o=t.record.path.toLowerCase(),a=La(o);return!e.startsWith("/")&&(a.includes(e)||o.includes(e))||a.startsWith(e)||o.startsWith(e)||t.record.name&&String(t.record.name).includes(e)?!0:t.children.some(s=>qd(s,e))}function GC(t,e){const n={};for(const r in t)e.includes(r)||(n[r]=t[r]);return n}function JC(t){const e=cC(t.routes,t),n=t.parseQuery||$C,r=t.stringifyQuery||Fg,o=t.history;if(process.env.NODE_ENV!=="production"&&!o)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const a=Ia(),s=Ia(),l=Ia(),u=i.shallowRef(Fr);let c=Fr;kr&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Md.bind(null,j=>""+j),p=Md.bind(null,OC),f=Md.bind(null,La);function h(j,K){let Y,X;return Ng(j)?(Y=e.getRecordMatcher(j),X=K):X=j,e.addRoute(X,Y)}function m(j){const K=e.getRecordMatcher(j);K?e.removeRoute(K):process.env.NODE_ENV!=="production"&&Ve(`Cannot remove non-existent route "${String(j)}"`)}function g(){return e.getRoutes().map(j=>j.record)}function b(j){return!!e.getRecordMatcher(j)}function v(j,K){if(K=Ue({},K||u.value),typeof j=="string"){const se=Dd(n,j,K.path),ce=e.resolve({path:se.path},K),je=o.createHref(se.fullPath);return process.env.NODE_ENV!=="production"&&(je.startsWith("//")?Ve(`Location "${j}" resolved to "${je}". A resolved location cannot start with multiple slashes.`):ce.matched.length||Ve(`No match found for location with path "${j}"`)),Ue(se,ce,{params:f(ce.params),hash:La(se.hash),redirectedFrom:void 0,href:je})}let Y;if("path"in j)process.env.NODE_ENV!=="production"&&"params"in j&&!("name"in j)&&Object.keys(j.params).length&&Ve(`Path "${j.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),Y=Ue({},j,{path:Dd(n,j.path,K.path).path});else{const se=Ue({},j.params);for(const ce in se)se[ce]==null&&delete se[ce];Y=Ue({},j,{params:p(se)}),K.params=p(K.params)}const X=e.resolve(Y,K),ue=j.hash||"";process.env.NODE_ENV!=="production"&&ue&&!ue.startsWith("#")&&Ve(`A \`hash\` should always start with the character "#". Replace "${ue}" with "#${ue}".`),X.params=d(f(X.params));const ie=IE(r,Ue({},j,{hash:_C(ue),path:X.path})),te=o.createHref(ie);return process.env.NODE_ENV!=="production"&&(te.startsWith("//")?Ve(`Location "${j}" resolved to "${te}". A resolved location cannot start with multiple slashes.`):X.matched.length||Ve(`No match found for location with path "${"path"in j?j.path:j}"`)),Ue({fullPath:ie,hash:ue,query:r===Fg?AC(j.query):j.query||{}},X,{redirectedFrom:void 0,href:te})}function x(j){return typeof j=="string"?Dd(n,j,u.value.path):Ue({},j)}function N(j,K){if(c!==j)return _i(8,{from:K,to:j})}function y(j){return C(j)}function M(j){return y(Ue(x(j),{replace:!0}))}function E(j){const K=j.matched[j.matched.length-1];if(K&&K.redirect){const{redirect:Y}=K;let X=typeof Y=="function"?Y(j):Y;if(typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=x(X):{path:X},X.params={}),process.env.NODE_ENV!=="production"&&!("path"in X)&&!("name"in X))throw Ve(`Invalid redirect found:
${JSON.stringify(X,null,2)}
 when navigating to "${j.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return Ue({query:j.query,hash:j.hash,params:"path"in X?{}:j.params},X)}}function C(j,K){const Y=c=v(j),X=u.value,ue=j.state,ie=j.force,te=j.replace===!0,se=E(Y);if(se)return C(Ue(x(se),{state:typeof se=="object"?Ue({},ue,se.state):ue,force:ie,replace:te}),K||Y);const ce=Y;ce.redirectedFrom=K;let je;return!ie&&wg(r,X,Y)&&(je=_i(16,{to:ce,from:X}),q(X,X,!0,!1)),(je?Promise.resolve(je):L(ce,X)).catch(Z=>xr(Z)?xr(Z,2)?Z:P(Z):A(Z,ce,X)).then(Z=>{if(Z){if(xr(Z,2))return process.env.NODE_ENV!=="production"&&wg(r,v(Z.to),ce)&&K&&(K._count=K._count?K._count+1:1)>30?(Ve(`Detected a possibly infinite redirection in a navigation guard when going from "${X.fullPath}" to "${ce.fullPath}". Aborting to avoid a Stack Overflow.
 Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):C(Ue({replace:te},x(Z.to),{state:typeof Z.to=="object"?Ue({},ue,Z.to.state):ue,force:ie}),K||ce)}else Z=$(ce,X,!0,te,ue);return k(ce,X,Z),Z})}function T(j,K){const Y=N(j,K);return Y?Promise.reject(Y):Promise.resolve()}function B(j){const K=F.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(j):j()}function L(j,K){let Y;const[X,ue,ie]=XC(j,K);Y=Hd(X.reverse(),"beforeRouteLeave",j,K);for(const se of X)se.leaveGuards.forEach(ce=>{Y.push(Hr(ce,j,K))});const te=T.bind(null,j,K);return Y.push(te),G(Y).then(()=>{Y=[];for(const se of a.list())Y.push(Hr(se,j,K));return Y.push(te),G(Y)}).then(()=>{Y=Hd(ue,"beforeRouteUpdate",j,K);for(const se of ue)se.updateGuards.forEach(ce=>{Y.push(Hr(ce,j,K))});return Y.push(te),G(Y)}).then(()=>{Y=[];for(const se of ie)if(se.beforeEnter)if(dn(se.beforeEnter))for(const ce of se.beforeEnter)Y.push(Hr(ce,j,K));else Y.push(Hr(se.beforeEnter,j,K));return Y.push(te),G(Y)}).then(()=>(j.matched.forEach(se=>se.enterCallbacks={}),Y=Hd(ie,"beforeRouteEnter",j,K),Y.push(te),G(Y))).then(()=>{Y=[];for(const se of s.list())Y.push(Hr(se,j,K));return Y.push(te),G(Y)}).catch(se=>xr(se,8)?se:Promise.reject(se))}function k(j,K,Y){l.list().forEach(X=>B(()=>X(j,K,Y)))}function $(j,K,Y,X,ue){const ie=N(j,K);if(ie)return ie;const te=K===Fr,se=kr?history.state:{};Y&&(X||te?o.replace(j.fullPath,Ue({scroll:te&&se&&se.scroll},ue)):o.push(j.fullPath,ue)),u.value=j,q(j,K,Y,te),P()}let D;function V(){D||(D=o.listen((j,K,Y)=>{if(!R.listening)return;const X=v(j),ue=E(X);if(ue){C(Ue(ue,{replace:!0}),X).catch(Va);return}c=X;const ie=u.value;kr&&jE(Cg(ie.fullPath,Y.delta),ul()),L(X,ie).catch(te=>xr(te,12)?te:xr(te,2)?(C(te.to,X).then(se=>{xr(se,20)&&!Y.delta&&Y.type===Si.pop&&o.go(-1,!1)}).catch(Va),Promise.reject()):(Y.delta&&o.go(-Y.delta,!1),A(te,X,ie))).then(te=>{te=te||$(X,ie,!1),te&&(Y.delta&&!xr(te,8)?o.go(-Y.delta,!1):Y.type===Si.pop&&xr(te,20)&&o.go(-1,!1)),k(X,ie,te)}).catch(Va)}))}let S=Ia(),O=Ia(),w;function A(j,K,Y){P(j);const X=O.list();return X.length?X.forEach(ue=>ue(j,K,Y)):(process.env.NODE_ENV!=="production"&&Ve("uncaught error during route navigation:"),console.error(j)),Promise.reject(j)}function z(){return w&&u.value!==Fr?Promise.resolve():new Promise((j,K)=>{S.add([j,K])})}function P(j){return w||(w=!j,V(),S.list().forEach(([K,Y])=>j?Y(j):K()),S.reset()),j}function q(j,K,Y,X){const{scrollBehavior:ue}=t;if(!kr||!ue)return Promise.resolve();const ie=!Y&&UE(Cg(j.fullPath,0))||(X||!Y)&&history.state&&history.state.scroll||null;return i.nextTick().then(()=>ue(j,K,ie)).then(te=>te&&qE(te)).catch(te=>A(te,j,K))}const W=j=>o.go(j);let ee;const F=new Set,R={currentRoute:u,listening:!0,addRoute:h,removeRoute:m,hasRoute:b,getRoutes:g,resolve:v,options:t,push:y,replace:M,go:W,back:()=>W(-1),forward:()=>W(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:O.add,isReady:z,install(j){const K=this;j.component("RouterLink",PC),j.component("RouterView",RC),j.config.globalProperties.$router=K,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>i.unref(u)}),kr&&!ee&&u.value===Fr&&(ee=!0,y(o.location).catch(ue=>{process.env.NODE_ENV!=="production"&&Ve("Unexpected error when starting the router:",ue)}));const Y={};for(const ue in Fr)Object.defineProperty(Y,ue,{get:()=>u.value[ue],enumerable:!0});j.provide(cl,K),j.provide(zd,i.shallowReactive(Y)),j.provide(Fd,u);const X=j.unmount;F.add(j),j.unmount=function(){F.delete(j),F.size<1&&(c=Fr,D&&D(),D=null,u.value=Fr,ee=!1,w=!1),X()},process.env.NODE_ENV!=="production"&&kr&&HC(j,K,e)}};function G(j){return j.reduce((K,Y)=>K.then(()=>B(Y)),Promise.resolve())}return R}function XC(t,e){const n=[],r=[],o=[],a=Math.max(e.matched.length,t.matched.length);for(let s=0;s<a;s++){const l=e.matched[s];l&&(t.matched.find(c=>zr(c,l))?r.push(l):n.push(l));const u=t.matched[s];u&&(e.matched.find(c=>zr(c,u))||o.push(u))}return[n,r,o]}function jd(){return i.inject(cl)}function Ud(){return i.inject(zd)}const QC=i.defineComponent({name:"KLayout",autoload:!0,components:{KFooter:BE},props:{title:{type:String,required:!0},breads:{type:[Array,Boolean],default:!1},loading:{type:Boolean,default:!1},loadingFullpage:{type:Boolean,default:!1},sticky:{type:Boolean,default:!1}},setup(t,e){const n=Ud(),r=s=>!!e.slots[s],o=i.computed(()=>t.title||n.meta.title||""),a=i.computed(()=>t.breads&&Array.isArray(t.breads)?t.breads.map(s=>({title:s.title,route:s.route})).filter(s=>s.title&&s.route):[]);return{pageTitle:o,parsedBreads:a,homepage:sl,hasSlot:r}}}),jK="",ZC={id:"k-layout-wrapper"},eS={id:"k-layout-leftbar"},tS={key:0,id:"k-layout-breads"},nS={class:"k-layout-separator"},rS={class:"k-layout-separator"},oS={id:"k-layout-topbar"},iS={id:"k-layout-topbar-mobile"},aS={id:"k-layout-content"},sS={class:"flex flex-1"},lS={class:"mt-4 -mb-5 -mx-5"};function uS(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-title"),u=i.resolveComponent("router-link"),c=i.resolveComponent("k-footer"),d=i.resolveComponent("k-loading");return i.openBlock(),i.createBlock(d,{active:t.loading,fullpage:t.loadingFullpage,"overlay-classes":"rounded-tl-3xl",class:"flex-1 flex flex-col"},{default:i.withCtx(()=>[i.createElementVNode("div",{id:"k-layout-header",class:i.normalizeClass({"k-layout-sticky ":t.sticky})},[i.createElementVNode("div",ZC,[i.createElementVNode("div",eS,[i.renderSlot(t.$slots,"title",{},()=>[t.breads||t.parsedBreads.length>0?(i.openBlock(),i.createElementBlock("div",tS,[i.createVNode(u,{to:t.homepage},{default:i.withCtx(()=>[i.createVNode(l,{size:5,class:"k-layout-bread"},{default:i.withCtx(()=>[i.createVNode(s,{icon:"home"})]),_:1})]),_:1},8,["to"]),i.createElementVNode("div",nS,[i.createVNode(s,{icon:"chevron-right"})]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.parsedBreads,(p,f)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[i.createVNode(u,{to:p.route},{default:i.withCtx(()=>[i.createVNode(l,{size:5,class:"k-layout-bread"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(p.title),1)]),_:2},1024)]),_:2},1032,["to"]),i.createElementVNode("div",rS,[i.createVNode(s,{icon:"chevron-right"})])],64))),128))])):i.createCommentVNode("",!0),i.createVNode(l,{size:5,class:"k-layout-title"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.pageTitle),1)]),_:1})],!0)]),i.createElementVNode("div",oS,[i.renderSlot(t.$slots,"topbar",{},void 0,!0)]),i.createElementVNode("div",iS,[i.renderSlot(t.$slots,"topbar-mobile",{},void 0,!0)])])],2),i.createElementVNode("div",aS,[i.createElementVNode("div",sS,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",lS,[t.hasSlot("footer")?i.renderSlot(t.$slots,"footer",{key:0},void 0,!0):(i.openBlock(),i.createBlock(c,{key:1}))])])]),_:3},8,["active","fullpage"])}const cS=de(QC,[["render",uS],["__scopeId","data-v-1a0d687c"]]),_t=()=>(Date.now()+Math.random()).toString(36).replace(".",""),er=["gray","primary","secondary","success","warning","danger","info"];function dS(t,e){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{t.apply(this,r)},e)}}const fS={id:{type:String,default:()=>_t(),description:"ID único"},submit:{type:Boolean,default:!1,description:"Habilita el modo `submit`"},loading:{type:Boolean,default:!1,description:"Habilita el modo `loading` y deshabilita el botón"},disabled:{type:Boolean,default:!1,description:"Deshabilita el botón"},size:{type:String,control:{type:"inline-radio"},options:["xs","sm","md","lg","xl"],validator:t=>["xs","sm","md","lg","xl"].includes(t),default:"md",description:"Tamaño del botón"},color:{type:String,control:{type:"inline-radio"},options:er,validator:t=>er.includes(t),default:"primary",description:"Color del botón"},link:{type:Boolean,default:!1,description:"Establece el diseño `link` del botón"},neon:{type:Boolean,default:!1,description:"Establece el diseño `neón` del botón"},uppercase:{type:Boolean,default:!1,description:"Establece el texto en mayúsculas"},outline:{type:Boolean,default:!1,description:"Elimina el fondo del botón y establece un borde"},zoom:{type:Boolean,default:!1,description:"Aumenta el tamaño del botón al pasar por encima"},icon:{type:[Array,String],default:"",description:'Renderiza un icono de <a href="https://fontawesome.com/search?q=" target="_blank" title="Ir a FontAwesome"><b>Fontawesome</b></a>.<br /> Ejemplo: <small>["fas","home"]</small> o <small>home</small>'},iconType:{type:String,control:{type:"inline-radio"},options:["fas","far","fal","fad","fab"],validator:t=>["fas","far","fal","fad","fab"].includes(t),default:"fad",description:"Tipo de icono"},to:{type:[Object,String],default:"",description:"Ruta de redirección"}},pS=(t,e)=>{const n=b=>!!e[b],r=["k-button"],o=t.outline,a=t.color,s=t.icon,l=t.link,u=t.disabled,c=t.zoom,d=t.neon,p=t.size,f=t.uppercase,h=t.loading,m=s&&!n("default")?"icon":"text";let g=[];return h&&g.push("cursor-progress"),p==="xs"?g.push("k-button-xs"):p==="sm"?g.push("k-button-sm"):p==="md"?g.push("k-button-md"):p==="lg"?g.push("k-button-lg"):p==="xl"&&g.push("k-button-xl"),m==="icon"&&(g.push("k-button-icon"),p==="xs"?g.push("k-button-icon-xs"):p==="sm"?g.push("k-button-icon-sm"):p==="md"?g.push("k-button-icon-md"):p==="lg"?g.push("k-button-icon-lg"):p==="xl"&&g.push("k-button-icon-xl")),l?(g.push("bg-transparent border-transparent text-opacity-80 hover:text-opacity-100 outline-none"),a==="gray"?g.push("text-gray-400 dark:text-gray-600"):a==="primary"?g.push("text-primary"):a==="secondary"?g.push("text-secondary"):a==="success"?g.push("text-success"):a==="warning"?g.push("text-warning"):a==="danger"?g.push("text-danger"):a==="info"&&g.push("text-info")):o?(g.push("border"),a==="gray"?g.push("border-gray-400 text-gray-400 hover:bg-gray-400 hover:text-white dark:border-gray-600 dark:text-gray-600 dark:hover:bg-gray-600 dark:hover:text-white"):a==="primary"?g.push("border-primary text-primary hover:bg-primary hover:text-white"):a==="secondary"?g.push("border-secondary text-secondary hover:bg-secondary hover:text-white"):a==="success"?g.push("border-success text-success hover:bg-success hover:text-white"):a==="warning"?g.push("border-warning text-warning hover:bg-warning hover:text-white"):a==="danger"?g.push("border-danger text-danger hover:bg-danger hover:text-white"):a==="info"&&g.push("border-info text-info hover:bg-info hover:text-white")):(d?g.push("border bg-opacity-20 hover:bg-opacity-100 border-opacity-0 hover:border-opacity-100 dark:bg-opacity-10 dark:hover:bg-opacity-100 dark:border-opacity-0 dark:hover:border-opacity-100"):g.push("border bg-opacity-80 hover:bg-opacity-100 dark:bg-opacity-80 dark:hover:bg-opacity-100"),a==="gray"?(g.push("border-gray-400 bg-gray-400 dark:border-gray-600 dark:bg-gray-600"),g.push(d?"text-gray-300 hover:text-white dark:text-gray-600 dark:hover:text-white":"text-white")):a==="primary"?(g.push("border-primary bg-primary"),g.push(d?"text-primary hover:text-white":"text-white")):a==="secondary"?(g.push("border-secondary  bg-secondary"),g.push(d?"text-secondary hover:text-white":"text-white")):a==="success"?(g.push("border-success  bg-success"),g.push(d?"text-success hover:text-white":"text-white")):a==="warning"?(g.push("border-warning  bg-warning"),g.push(d?"text-warning hover:text-white":"text-white")):a==="danger"?(g.push("border-danger  bg-danger"),g.push(d?"text-danger hover:text-white":"text-white")):a==="info"&&(g.push("border-info  bg-info"),g.push(d?"text-info hover:text-white":"text-white"))),f&&g.push("uppercase"),c&&g.push("k-button-zoom"),u&&(g=g.join(" ").split(" ").filter(b=>!b.includes("hover:")),g.push("opacity-40")),t.loading?g.push("cursor-pointer"):u?g.push("cursor-not-allowed"):g.push("cursor-pointer"),r.concat(g)},hS=i.defineComponent({name:"KButton",autoload:!0,props:fS,emits:["click"],summary:"Botón",setup(t,e){const n=l=>!!e.slots[l],r=i.computed(()=>pS(t,e.slots)),o=jd(),a=i.computed(()=>t.submit?"submit":"button");return{buttonClasses:r,type:a,hasSlot:n,click:l=>{if(t.disabled===!1&&t.loading===!1){if(t.to){o.push(t.to);return}e.emit("click")}else l.preventDefault()}}}}),UK="",mS=["id","type"],gS={key:0},bS={key:1};function yS(t,e,n,r,o,a){const s=i.resolveComponent("k-icon");return i.openBlock(),i.createElementBlock("button",{id:t.id,class:i.normalizeClass(t.buttonClasses),type:t.type,onClick:e[0]||(e[0]=(...l)=>t.click&&t.click(...l))},[t.loading?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(s,{class:i.normalizeClass(["p-0",{"mr-3":t.hasSlot("default")}]),icon:"spinner-third",spin:""},null,8,["class"]),t.hasSlot("default")?(i.openBlock(),i.createElementBlock("span",gS," Cargando... ")):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[t.icon?(i.openBlock(),i.createBlock(s,{key:0,icon:t.icon,type:t.iconType,class:i.normalizeClass({"mr-2":t.hasSlot("default")})},null,8,["icon","type","class"])):i.createCommentVNode("",!0),t.hasSlot("default")?(i.openBlock(),i.createElementBlock("span",bS,[i.renderSlot(t.$slots,"default")])):i.createCommentVNode("",!0)],64))],10,mS)}const wS=de(hS,[["render",yS]]),vS=i.defineComponent({name:"KIcon",autoload:!0,props:{icon:{type:String,required:!0,description:"Icono"},type:{type:String,default:"fad",options:["fas","fal","fad","far"],control:{type:"inline-radio"},description:"Tipo de icono"},size:{type:Number,default:0,description:"Tamaño del icono"},spin:{type:Boolean,default:!1,description:"Animación de rotación"},color:{type:String,control:{type:"inline-radio"},options:er,validator:t=>er.includes(t)||t==="",default:"",description:"Color del icono"}},setup(t){const e=i.computed(()=>{const r={};return t.size>0&&(r["font-size"]=t.size+"px"),r});return{classes:i.computed(()=>{let r=["k-icon"];return r.push(t.type),r.push(`fa-${t.icon}`),t.spin&&r.push("fa-spin"),t.color==="white"?r.push("text-white"):t.color==="black"?r.push("text-black"):t.color==="gray"?r.push("text-gray-300 "):t.color==="primary"?r.push("text-primary"):t.color==="secondary"?r.push("text-secondary"):t.color==="success"?r.push("text-success"):t.color==="warning"?r.push("text-warning "):t.color==="danger"?r.push("text-danger "):t.color==="info"&&r.push("text-info"),r}),style:e}}});function kS(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("i",{class:i.normalizeClass(t.classes),style:i.normalizeStyle(t.style)},null,6)}const xS=de(vS,[["render",kS]]),ES=i.defineComponent({name:"KTitle",autoload:!0,props:{size:{type:Number,default:1,description:"Define el tamaño del titulo.",options:[1,2,3,4,5,6],control:{type:"inline-radio"}},uppercase:{type:Boolean,default:!1,description:"Define si el titulo debe ser en mayusculas."},bold:{type:Boolean,default:!1,description:"Define si el titulo debe ser en negrita."},bolder:{type:Boolean,default:!1,description:"Define si el titulo debe ser en negrita."},center:{type:Boolean,default:!1,description:"Define si el titulo debe ser centrado."}},setup(t,{slots:e}){const n=a=>!!e[a],r=i.computed(()=>{if(n("subtitle")){const a=["opacity-50"];return t.size===1?a.push("text-3xl"):t.size===2?a.push("text-2xl"):t.size===3?a.push("text-xl"):t.size===4?a.push("text-lg"):t.size===5?a.push("text-base"):t.size===6&&a.push("text-sm"),t.center&&a.push("text-center"),t.bolder?a.push("font-bold"):t.bold&&a.push("font-semibold"),a}else return[]});return{dinamicClasses:i.computed(()=>{const a=["title"];return t.size===1?a.push("text-5xl"):t.size===2?a.push("text-4xl"):t.size===3?a.push("text-3xl"):t.size===4?a.push("text-2xl"):t.size===5?a.push("text-xl"):t.size===6&&a.push("text-lg"),t.uppercase&&a.push("uppercase"),t.center&&a.push("text-center"),t.bolder?a.push("font-bold"):t.bold&&a.push("font-semibold"),a}),dinamicSubtitleClasses:r}}}),WK="",CS={class:"k-title"};function SS(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",CS,[t.size===1?(i.openBlock(),i.createElementBlock("h1",{key:0,class:i.normalizeClass(t.dinamicClasses)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2)):i.createCommentVNode("",!0),t.size===2?(i.openBlock(),i.createElementBlock("h2",{key:1,class:i.normalizeClass(t.dinamicClasses)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2)):i.createCommentVNode("",!0),t.size===3?(i.openBlock(),i.createElementBlock("h3",{key:2,class:i.normalizeClass(t.dinamicClasses)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2)):i.createCommentVNode("",!0),t.size===4?(i.openBlock(),i.createElementBlock("h4",{key:3,class:i.normalizeClass(t.dinamicClasses)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2)):i.createCommentVNode("",!0),t.size===5?(i.openBlock(),i.createElementBlock("h5",{key:4,class:i.normalizeClass(t.dinamicClasses)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2)):i.createCommentVNode("",!0),t.size===6?(i.openBlock(),i.createElementBlock("h6",{key:5,class:i.normalizeClass(t.dinamicClasses)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2)):i.createCommentVNode("",!0),t.dinamicSubtitleClasses.length>0?(i.openBlock(),i.createElementBlock("div",{key:6,class:i.normalizeClass(t.dinamicSubtitleClasses)},[i.renderSlot(t.$slots,"subtitle",{},void 0,!0)],2)):i.createCommentVNode("",!0)])}const _S=de(ES,[["render",SS],["__scopeId","data-v-1d186476"]]),TS=i.defineComponent({name:"KInput",props:{modelValue:{type:[String,Number],required:!1,default:"",description:"Valor del componente"},id:{type:String,required:!1,default:"",description:"ID único"},maxlength:{type:Number,required:!1,default:0,description:"Longitud máxima"},placeholder:{type:String,required:!1,default:"",description:"Texto explicativo"},required:{type:Boolean,default:!1,description:"Indica si el campo es requerido"},label:{type:String,required:!1,default:"",description:"Etiqueta de definición"},size:{type:String,default:"md",options:["xs","sm","md","lg"]},float:{type:Boolean,default:!1,description:"Indica si el input tiene estilo flotante"},fieldset:{type:Boolean,default:!1,description:"Indica si el input tiene estilo fieldset"},errors:{type:Array,required:!1,default:()=>[],description:"Errores de validación"},status:{type:String,default:"",options:["warning","success","danger"],description:"Color de estado del input"},type:{type:String,default:"text",options:["text","password","number","email"]},width:{type:Number,default:0,description:"Ancho del input"},min:{type:Number,required:!1,description:"Valor mínimo si el input es `number`"},max:{type:Number,required:!1,description:"Valor máximo si el input es `number`"},autofocus:{type:Boolean,default:!1,description:"Indica si el input se enfoca automáticamente"},disabled:{type:Boolean,default:!1,description:"Indica si el input está deshabilitado"},autocomplete:{type:String,default:"off",description:"Indica si el input tiene autocompletado"},step:{type:[String,Number],default:1,description:"Incremento o decremento del input"}},emits:["update:modelValue"],setup(t,e){const n=t.maxlength>0?t.maxlength:void 0,r=t.id||_t(),o=g=>!!e.slots[g],a=i.computed({get(){return t.modelValue},set(g){e.emit("update:modelValue",g)}}),s=i.computed(()=>{const g=["k-input-text",`k-input-text-${t.size}`];return t.float?g.push("k-input-text-floating"):t.fieldset&&g.push("k-input-text-fieldset"),t.type==="number"&&g.push("k-input-number"),t.errors.length>0?g.push("k-input-text-danger"):t.status&&g.push(`k-input-text-${t.status}`),g}),l=i.computed(()=>{const g={};return t.width>0&&(g.width=t.width+"px"),g}),u=i.computed(()=>t.label||o("default")),c=i.computed(()=>{var g,b;return t.float?t.placeholder||t.label||((b=(g=e.slots).default)==null?void 0:b.call(g).toString()):t.placeholder}),d=g=>{a.value=g.target.value},p=()=>{let g=a.value;t.type==="number"&&(g=Number(g),t.min!==void 0&&g<t.min&&(g=t.min),t.max!==void 0&&g>t.max&&(g=t.max),a.value=g)},f=i.computed(()=>(t.errors.length>0?t.errors[0].$message:"").toString());return{maxLength:n,uuid:r,classes:s,change:d,firstError:f,hasSlot:o,hasLabel:u,placeholderText:c,sum:()=>{if(t.disabled)return;const b=(parseInt(t.modelValue.toString())||0)+1;t.max!==void 0&&b<=t.max?a.value=b:t.max!==void 0&&b>t.max?a.value=t.max:a.value=b},subtract:()=>{if(t.disabled)return;const b=(parseInt(t.modelValue.toString())||0)-1;t.min!==void 0&&b>=t.min?a.value=b:t.min!==void 0&&b<t.min?a.value=t.min:a.value=b},style:l,model:a,validate:p}}}),KK="",NS=["for"],OS={key:2,class:"font-bold text-danger ml-1"},$S=["id","type","maxlength","placeholder","required","value","min","max","step","autofocus","disabled","autocomplete"],AS=["for"],MS={key:2,class:"font-bold text-danger ml-1"};function DS(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-tooltip");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([t.classes])},[t.hasLabel&&!t.float?(i.openBlock(),i.createElementBlock("label",{key:0,for:t.uuid},[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.label),1)],64)),t.required?(i.openBlock(),i.createElementBlock("span",OS,"*")):i.createCommentVNode("",!0),t.firstError?(i.openBlock(),i.createBlock(l,{key:3,content:t.firstError},{default:i.withCtx(()=>[i.createVNode(s,{icon:"triangle-exclamation",class:"ml-2"})]),_:1},8,["content"])):i.createCommentVNode("",!0)],8,NS)):i.createCommentVNode("",!0),i.createElementVNode("input",{id:t.uuid,type:t.type,maxlength:t.maxLength,placeholder:t.placeholderText,required:t.required,value:t.model,min:t.min,max:t.max,step:t.step,style:i.normalizeStyle(t.style),autofocus:t.autofocus,disabled:t.disabled,autocomplete:t.autocomplete,onInput:e[0]||(e[0]=(...u)=>t.change&&t.change(...u)),onBlur:e[1]||(e[1]=(...u)=>t.validate&&t.validate(...u))},null,44,$S),t.type==="number"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["k-input-control",t.disabled?"disabled":""])},[i.createElementVNode("div",{onClick:e[2]||(e[2]=u=>t.sum())},[i.createVNode(s,{icon:"plus",type:"fas",class:"k-input-icon",size:12})]),i.createElementVNode("div",{onClick:e[3]||(e[3]=u=>t.subtract())},[i.createVNode(s,{icon:"minus",type:"fas",class:"k-input-icon",size:12})])],2)):i.createCommentVNode("",!0),t.hasLabel&&t.float?(i.openBlock(),i.createElementBlock("label",{key:2,for:t.uuid},[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.label||t.placeholder),1)],64)),t.required?(i.openBlock(),i.createElementBlock("span",MS,"*")):i.createCommentVNode("",!0),t.firstError?(i.openBlock(),i.createBlock(l,{key:3,hover:"",content:t.firstError},{default:i.withCtx(()=>[i.createVNode(s,{icon:"triangle-exclamation",class:"ml-2"})]),_:1},8,["content"])):i.createCommentVNode("",!0)],8,AS)):i.createCommentVNode("",!0)],2)}const BS=de(TS,[["render",DS]]);var e1={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",u="hour",c="day",d="week",p="month",f="quarter",h="year",m="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var S=["th","st","nd","rd"],O=V%100;return"["+V+(S[(O-20)%10]||S[O]||S[0])+"]"}},N=function(V,S,O){var w=String(V);return!w||w.length>=S?V:""+Array(S+1-w.length).join(O)+V},y={s:N,z:function(V){var S=-V.utcOffset(),O=Math.abs(S),w=Math.floor(O/60),A=O%60;return(S<=0?"+":"-")+N(w,2,"0")+":"+N(A,2,"0")},m:function V(S,O){if(S.date()<O.date())return-V(O,S);var w=12*(O.year()-S.year())+(O.month()-S.month()),A=S.clone().add(w,p),z=O-A<0,P=S.clone().add(w+(z?-1:1),p);return+(-(w+(O-A)/(z?A-P:P-A))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:p,y:h,w:d,d:c,D:m,h:u,m:l,s,ms:a,Q:f}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},M="en",E={};E[M]=x;var C="$isDayjsObject",T=function(V){return V instanceof $||!(!V||!V[C])},B=function V(S,O,w){var A;if(!S)return M;if(typeof S=="string"){var z=S.toLowerCase();E[z]&&(A=z),O&&(E[z]=O,A=z);var P=S.split("-");if(!A&&P.length>1)return V(P[0])}else{var q=S.name;E[q]=S,A=q}return!w&&A&&(M=A),A||!w&&M},L=function(V,S){if(T(V))return V.clone();var O=typeof S=="object"?S:{};return O.date=V,O.args=arguments,new $(O)},k=y;k.l=B,k.i=T,k.w=function(V,S){return L(V,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var $=function(){function V(O){this.$L=B(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[C]=!0}var S=V.prototype;return S.parse=function(O){this.$d=function(w){var A=w.date,z=w.utc;if(A===null)return new Date(NaN);if(k.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var P=A.match(b);if(P){var q=P[2]-1||0,W=(P[7]||"0").substring(0,3);return z?new Date(Date.UTC(P[1],q,P[3]||1,P[4]||0,P[5]||0,P[6]||0,W)):new Date(P[1],q,P[3]||1,P[4]||0,P[5]||0,P[6]||0,W)}}return new Date(A)}(O),this.init()},S.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},S.$utils=function(){return k},S.isValid=function(){return this.$d.toString()!==g},S.isSame=function(O,w){var A=L(O);return this.startOf(w)<=A&&A<=this.endOf(w)},S.isAfter=function(O,w){return L(O)<this.startOf(w)},S.isBefore=function(O,w){return this.endOf(w)<L(O)},S.$g=function(O,w,A){return k.u(O)?this[w]:this.set(A,O)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(O,w){var A=this,z=!!k.u(w)||w,P=k.p(O),q=function(Y,X){var ue=k.w(A.$u?Date.UTC(A.$y,X,Y):new Date(A.$y,X,Y),A);return z?ue:ue.endOf(c)},W=function(Y,X){return k.w(A.toDate()[Y].apply(A.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(X)),A)},ee=this.$W,F=this.$M,R=this.$D,G="set"+(this.$u?"UTC":"");switch(P){case h:return z?q(1,0):q(31,11);case p:return z?q(1,F):q(0,F+1);case d:var j=this.$locale().weekStart||0,K=(ee<j?ee+7:ee)-j;return q(z?R-K:R+(6-K),F);case c:case m:return W(G+"Hours",0);case u:return W(G+"Minutes",1);case l:return W(G+"Seconds",2);case s:return W(G+"Milliseconds",3);default:return this.clone()}},S.endOf=function(O){return this.startOf(O,!1)},S.$set=function(O,w){var A,z=k.p(O),P="set"+(this.$u?"UTC":""),q=(A={},A[c]=P+"Date",A[m]=P+"Date",A[p]=P+"Month",A[h]=P+"FullYear",A[u]=P+"Hours",A[l]=P+"Minutes",A[s]=P+"Seconds",A[a]=P+"Milliseconds",A)[z],W=z===c?this.$D+(w-this.$W):w;if(z===p||z===h){var ee=this.clone().set(m,1);ee.$d[q](W),ee.init(),this.$d=ee.set(m,Math.min(this.$D,ee.daysInMonth())).$d}else q&&this.$d[q](W);return this.init(),this},S.set=function(O,w){return this.clone().$set(O,w)},S.get=function(O){return this[k.p(O)]()},S.add=function(O,w){var A,z=this;O=Number(O);var P=k.p(w),q=function(F){var R=L(z);return k.w(R.date(R.date()+Math.round(F*O)),z)};if(P===p)return this.set(p,this.$M+O);if(P===h)return this.set(h,this.$y+O);if(P===c)return q(1);if(P===d)return q(7);var W=(A={},A[l]=r,A[u]=o,A[s]=n,A)[P]||1,ee=this.$d.getTime()+O*W;return k.w(ee,this)},S.subtract=function(O,w){return this.add(-1*O,w)},S.format=function(O){var w=this,A=this.$locale();if(!this.isValid())return A.invalidDate||g;var z=O||"YYYY-MM-DDTHH:mm:ssZ",P=k.z(this),q=this.$H,W=this.$m,ee=this.$M,F=A.weekdays,R=A.months,G=A.meridiem,j=function(X,ue,ie,te){return X&&(X[ue]||X(w,z))||ie[ue].slice(0,te)},K=function(X){return k.s(q%12||12,X,"0")},Y=G||function(X,ue,ie){var te=X<12?"AM":"PM";return ie?te.toLowerCase():te};return z.replace(v,function(X,ue){return ue||function(ie){switch(ie){case"YY":return String(w.$y).slice(-2);case"YYYY":return k.s(w.$y,4,"0");case"M":return ee+1;case"MM":return k.s(ee+1,2,"0");case"MMM":return j(A.monthsShort,ee,R,3);case"MMMM":return j(R,ee);case"D":return w.$D;case"DD":return k.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return j(A.weekdaysMin,w.$W,F,2);case"ddd":return j(A.weekdaysShort,w.$W,F,3);case"dddd":return F[w.$W];case"H":return String(q);case"HH":return k.s(q,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return Y(q,W,!0);case"A":return Y(q,W,!1);case"m":return String(W);case"mm":return k.s(W,2,"0");case"s":return String(w.$s);case"ss":return k.s(w.$s,2,"0");case"SSS":return k.s(w.$ms,3,"0");case"Z":return P}return null}(X)||P.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(O,w,A){var z,P=this,q=k.p(w),W=L(O),ee=(W.utcOffset()-this.utcOffset())*r,F=this-W,R=function(){return k.m(P,W)};switch(q){case h:z=R()/12;break;case p:z=R();break;case f:z=R()/3;break;case d:z=(F-ee)/6048e5;break;case c:z=(F-ee)/864e5;break;case u:z=F/o;break;case l:z=F/r;break;case s:z=F/n;break;default:z=F}return A?z:k.a(z)},S.daysInMonth=function(){return this.endOf(p).$D},S.$locale=function(){return E[this.$L]},S.locale=function(O,w){if(!O)return this.$L;var A=this.clone(),z=B(O,w,!0);return z&&(A.$L=z),A},S.clone=function(){return k.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},V}(),D=$.prototype;return L.prototype=D,[["$ms",a],["$s",s],["$m",l],["$H",u],["$W",c],["$M",p],["$y",h],["$D",m]].forEach(function(V){D[V[1]]=function(S){return this.$g(S,V[0],V[1])}}),L.extend=function(V,S){return V.$i||(V(S,$,L),V.$i=!0),L},L.locale=B,L.isDayjs=T,L.unix=function(V){return L(1e3*V)},L.en=E[M],L.Ls=E,L.p={},L})})(e1);var t1=e1.exports;const Le=Ir(t1);var n1={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){return function(n,r,o){n=n||{};var a=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(c,d,p,f){return a.fromToBase(c,d,p,f)}o.en.relativeTime=s,a.fromToBase=function(c,d,p,f,h){for(var m,g,b,v=p.$locale().relativeTime||s,x=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],N=x.length,y=0;y<N;y+=1){var M=x[y];M.d&&(m=f?o(c).diff(p,M.d,!0):p.diff(c,M.d,!0));var E=(n.rounding||Math.round)(Math.abs(m));if(b=m>0,E<=M.r||!M.r){E<=1&&y>0&&(M=x[y-1]);var C=v[M.l];h&&(E=h(""+E)),g=typeof C=="string"?C.replace("%d",E):C(E,d,M.l,b);break}}if(d)return g;var T=b?v.future:v.past;return typeof T=="function"?T(g):T.replace("%s",g)},a.to=function(c,d){return l(c,d,this,!0)},a.from=function(c,d){return l(c,d,this)};var u=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(u(this),c)},a.fromNow=function(c){return this.from(u(this),c)}}})})(n1);var PS=n1.exports;const VS=Ir(PS);var r1={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){return function(n,r,o){r.prototype.isBetween=function(a,s,l,u){var c=o(a),d=o(s),p=(u=u||"()")[0]==="(",f=u[1]===")";return(p?this.isAfter(c,l):!this.isBefore(c,l))&&(f?this.isBefore(d,l):!this.isAfter(d,l))||(p?this.isBefore(c,l):!this.isAfter(c,l))&&(f?this.isAfter(d,l):!this.isBefore(d,l))}}})})(r1);var LS=r1.exports;const IS=Ir(LS);var o1={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var s=o.prototype,l=s.format;a.en.formats=n,s.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,d=function(p,f){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,g){var b=g&&g.toUpperCase();return m||f[g]||n[g]||f[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,x,N){return x||N.slice(1)})})}(u,c===void 0?{}:c);return l.call(this,d)}}})})(o1);var RS=o1.exports;const zS=Ir(RS);var i1={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=function(g){return(g=+g)+(g>68?1900:2e3)},c=function(g){return function(b){this[g]=+b}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var v=b.match(/([+-]|\d\d)/g),x=60*v[1]+(+v[2]||0);return x===0?0:v[0]==="+"?-x:x}(g)}],p=function(g){var b=l[g];return b&&(b.indexOf?b:b.s.concat(b.f))},f=function(g,b){var v,x=l.meridiem;if(x){for(var N=1;N<=24;N+=1)if(g.indexOf(x(N,0,b))>-1){v=N>12;break}}else v=g===(b?"pm":"PM");return v},h={A:[s,function(g){this.afternoon=f(g,!1)}],a:[s,function(g){this.afternoon=f(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[s,function(g){var b=l.ordinal,v=g.match(/\d+/);if(this.day=v[0],b)for(var x=1;x<=31;x+=1)b(x).replace(/\[|\]/g,"")===g&&(this.day=x)}],M:[a,c("month")],MM:[o,c("month")],MMM:[s,function(g){var b=p("months"),v=(p("monthsShort")||b.map(function(x){return x.slice(0,3)})).indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[s,function(g){var b=p("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(g){this.year=u(g)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function m(g){var b,v;b=g,v=l&&l.formats;for(var x=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(B,L,k){var $=k&&k.toUpperCase();return L||v[k]||n[k]||v[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,V,S){return V||S.slice(1)})})).match(r),N=x.length,y=0;y<N;y+=1){var M=x[y],E=h[M],C=E&&E[0],T=E&&E[1];x[y]=T?{regex:C,parser:T}:M.replace(/^\[|\]$/g,"")}return function(B){for(var L={},k=0,$=0;k<N;k+=1){var D=x[k];if(typeof D=="string")$+=D.length;else{var V=D.regex,S=D.parser,O=B.slice($),w=V.exec(O)[0];S.call(L,w),B=B.replace(w,"")}}return function(A){var z=A.afternoon;if(z!==void 0){var P=A.hours;z?P<12&&(A.hours+=12):P===12&&(A.hours=0),delete A.afternoon}}(L),L}}return function(g,b,v){v.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var x=b.prototype,N=x.parse;x.parse=function(y){var M=y.date,E=y.utc,C=y.args;this.$u=E;var T=C[1];if(typeof T=="string"){var B=C[2]===!0,L=C[3]===!0,k=B||L,$=C[2];L&&($=C[2]),l=this.$locale(),!B&&$&&(l=v.Ls[$]),this.$d=function(O,w,A){try{if(["x","X"].indexOf(w)>-1)return new Date((w==="X"?1e3:1)*O);var z=m(w)(O),P=z.year,q=z.month,W=z.day,ee=z.hours,F=z.minutes,R=z.seconds,G=z.milliseconds,j=z.zone,K=new Date,Y=W||(P||q?1:K.getDate()),X=P||K.getFullYear(),ue=0;P&&!q||(ue=q>0?q-1:K.getMonth());var ie=ee||0,te=F||0,se=R||0,ce=G||0;return j?new Date(Date.UTC(X,ue,Y,ie,te,se,ce+60*j.offset*1e3)):A?new Date(Date.UTC(X,ue,Y,ie,te,se,ce)):new Date(X,ue,Y,ie,te,se,ce)}catch{return new Date("")}}(M,T,E),this.init(),$&&$!==!0&&(this.$L=this.locale($).$L),k&&M!=this.format(T)&&(this.$d=new Date("")),l={}}else if(T instanceof Array)for(var D=T.length,V=1;V<=D;V+=1){C[1]=T[V-1];var S=v.apply(this,C);if(S.isValid()){this.$d=S.$d,this.$L=S.$L,this.init();break}V===D&&(this.$d=new Date(""))}else N.call(this,y)}}})})(i1);var FS=i1.exports;const HS=Ir(FS);var a1={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,s,l){var u=s.prototype;l.utc=function(g){var b={date:g,utc:!0,args:arguments};return new s(b)},u.utc=function(g){var b=l(this.toDate(),{locale:this.$L,utc:!0});return g?b.add(this.utcOffset(),n):b},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=u.parse;u.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var d=u.init;u.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var p=u.utcOffset;u.utcOffset=function(g,b){var v=this.$utils().u;if(v(g))return this.$u?0:v(this.$offset)?p.call(this):this.$offset;if(typeof g=="string"&&(g=function(M){M===void 0&&(M="");var E=M.match(r);if(!E)return null;var C=(""+E[0]).match(o)||["-",0,0],T=C[0],B=60*+C[1]+ +C[2];return B===0?0:T==="+"?B:-B}(g),g===null))return this;var x=Math.abs(g)<=16?60*g:g,N=this;if(b)return N.$offset=x,N.$u=g===0,N;if(g!==0){var y=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(N=this.local().add(x+y,n)).$offset=x,N.$x.$localOffset=y}else N=this.utc();return N};var f=u.format;u.format=function(g){var b=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,b)},u.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var h=u.toDate;u.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var m=u.diff;u.diff=function(g,b,v){if(g&&this.$u===g.$u)return m.call(this,g,b,v);var x=this.local(),N=l(g).local();return m.call(x,N,b,v)}}})})(a1);var qS=a1.exports;const jS=Ir(qS);var US={exports:{}};(function(t,e){(function(n,r){t.exports=r(t1)})(me,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),a={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(s){return s+"º"}};return o.default.locale(a,null,!0),a})})(US),Le.extend(VS),Le.extend(IS),Le.extend(zS),Le.extend(HS),Le.extend(jS),Le.locale("es");const WS={ucfirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}},za={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Ti={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},Ht={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},KS={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom"},s1={dangerouslyHTMLString:!1,multiple:!0,position:za.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},YS={rtl:!1,newestOnTop:!1,toastClassName:""},l1={...s1,...YS};({...s1,type:Ht.DEFAULT});var Ke=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(Ke||{}),Wd=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(Wd||{});const GS={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},JS={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},XS={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},QS={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"};function u1(t){let e=GS;if(!t||typeof t=="string")switch(t){case"flip":e=QS;break;case"zoom":e=XS;break;case"slide":e=JS;break}else e=t;return e}function ZS(t){return t.containerId||String(t.position)}const fl="will-unmount";function e_(t=za.TOP_RIGHT){return!!document.querySelector(".".concat(Ke.CSS_NAMESPACE,"__toast-container--").concat(t))}function t_(t=za.TOP_RIGHT){return"".concat(Ke.CSS_NAMESPACE,"__toast-container--").concat(t)}function n_(t,e,n=!1){const r=["".concat(Ke.CSS_NAMESPACE,"__toast-container"),"".concat(Ke.CSS_NAMESPACE,"__toast-container--").concat(t),n?"".concat(Ke.CSS_NAMESPACE,"__toast-container--rtl"):null].filter(Boolean).join(" ");return Ni(e)?e({position:t,rtl:n,defaultClassName:r}):"".concat(r," ").concat(e||"")}function r_(t){var e;const{position:n,containerClassName:r,rtl:o=!1,style:a={}}=t,s=Ke.CSS_NAMESPACE,l=t_(n),u=document.querySelector(".".concat(s)),c=document.querySelector(".".concat(l)),d=!!c&&!((e=c.className)!=null&&e.includes(fl)),p=u||document.createElement("div"),f=document.createElement("div");f.className=n_(n,r,o),f.dataset.testid="".concat(Ke.CSS_NAMESPACE,"__toast-container--").concat(n),f.id=ZS(t);for(const h in a)if(Object.prototype.hasOwnProperty.call(a,h)){const m=a[h];f.style[h]=m}return u||(p.className=Ke.CSS_NAMESPACE,document.body.appendChild(p)),d||p.appendChild(f),f}function Kd(t){var e,n,r;const o=typeof t=="string"?t:((e=t.currentTarget)==null?void 0:e.id)||((n=t.target)==null?void 0:n.id),a=document.getElementById(o);a&&a.removeEventListener("animationend",Kd,!1);try{Fa[o].unmount(),(r=document.getElementById(o))==null||r.remove(),delete Fa[o],delete Tt[o]}catch{}}const Fa=i.reactive({});function o_(t,e){const n=document.getElementById(String(e));n&&(Fa[n.id]=t)}function Yd(t,e=!0){const n=String(t);if(!Fa[n])return;const r=document.getElementById(n);r&&r.classList.add(fl),e?(a_(t),r&&r.addEventListener("animationend",Kd,!1)):Kd(n),tr.items=tr.items.filter(o=>o.containerId!==t)}function i_(t){for(const e in Fa)Yd(e,t);tr.items=[]}function c1(t,e){const n=document.getElementById(t.toastId);if(n){let r=t;r={...r,...u1(r.transition)};const o=r.appendPosition?"".concat(r.exit,"--").concat(r.position):r.exit;n.className+=" ".concat(o),e&&e(n)}}function a_(t){for(const e in Tt)if(e===t)for(const n of Tt[e]||[])c1(n)}function s_(t){const e=Ha().find(n=>n.toastId===t);return e==null?void 0:e.containerId}function Gd(t){return document.getElementById(t)}function l_(t){const e=Gd(t.containerId);return e&&e.classList.contains(fl)}function d1(t){var e;const n=i.isVNode(t.content)?i.toRaw(t.content.props):null;return n??i.toRaw((e=t.data)!=null?e:{})}function u_(t){return t?tr.items.filter(e=>e.containerId===t).length>0:tr.items.length>0}function c_(){if(tr.items.length>0){const t=tr.items.shift();pl(t==null?void 0:t.toastContent,t==null?void 0:t.toastProps)}}const Tt=i.reactive({}),tr=i.reactive({items:[]});function Ha(){const t=i.toRaw(Tt);return Object.values(t).reduce((e,n)=>[...e,...n],[])}function d_(t){return Ha().find(e=>e.toastId===t)}function pl(t,e={}){if(l_(e)){const n=Gd(e.containerId);n&&n.addEventListener("animationend",Jd.bind(null,t,e),!1)}else Jd(t,e)}function Jd(t,e={}){const n=Gd(e.containerId);n&&n.removeEventListener("animationend",Jd.bind(null,t,e),!1);const r=Tt[e.containerId]||[],o=r.length>0;if(!o&&!e_(e.position)){const a=r_(e),s=i.createApp($_,e);s.mount(a),o_(s,a.id)}o&&(e.position=r[0].position),i.nextTick(()=>{e.updateId?nr.update(e):nr.add(t,e)})}const nr={add(t,e){const{containerId:n=""}=e;n&&(Tt[n]=Tt[n]||[],Tt[n].find(r=>r.toastId===e.toastId)||setTimeout(()=>{var r,o;e.newestOnTop?(r=Tt[n])==null||r.unshift(e):(o=Tt[n])==null||o.push(e),e.onOpen&&e.onOpen(d1(e))},e.delay||0))},remove(t){if(t){const e=s_(t);if(e){const n=Tt[e];let r=n.find(o=>o.toastId===t);Tt[e]=n.filter(o=>o.toastId!==t),!Tt[e].length&&!u_(e)&&Yd(e,!1),c_(),i.nextTick(()=>{r!=null&&r.onClose&&(r.onClose(d1(r)),r=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){Tt[e]=Tt[e]||[];const n=Tt[e].find(r=>r.toastId===t.toastId);n&&setTimeout(()=>{for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const o=t[r];n[r]=o}},t.delay||0)}},clear(t,e=!0){t?Yd(t,e):i_(e)},dismissCallback(t){var e;const n=(e=t.currentTarget)==null?void 0:e.id,r=document.getElementById(n);r&&(r.removeEventListener("animationend",nr.dismissCallback,!1),setTimeout(()=>{nr.remove(n)}))},dismiss(t){if(t){const e=Ha();for(const n of e)if(n.toastId===t){c1(n,r=>{r.addEventListener("animationend",nr.dismissCallback,!1)});break}}}},f1=i.reactive({}),hl=i.reactive({});function p1(){return Math.random().toString(36).substring(2,9)}function f_(t){return typeof t=="number"&&!isNaN(t)}function Xd(t){return typeof t=="string"}function Ni(t){return typeof t=="function"}function ml(...t){return i.mergeProps(...t)}function gl(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof(t==null?void 0:t.type)=="object")}function p_(t={}){f1["".concat(Ke.CSS_NAMESPACE,"-default-options")]=t}function h_(){return f1["".concat(Ke.CSS_NAMESPACE,"-default-options")]||l1}function m_(){return document.documentElement.classList.contains("dark")?"dark":"light"}var bl=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(bl||{});const h1={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:za.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:Ti.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:Ht.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""}},g_={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:Ht.DEFAULT},theme:{type:String,required:!1,default:Ti.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},b_=i.defineComponent({name:"ProgressBar",props:g_,setup(t,{attrs:e}){const n=i.ref(),r=i.computed(()=>t.hide?"true":"false"),o=i.computed(()=>({...e.style||{},animationDuration:"".concat(t.autoClose===!0?5e3:t.autoClose,"ms"),animationPlayState:t.isRunning?"running":"paused",opacity:t.hide?0:1,transform:t.controlledProgress?"scaleX(".concat(t.progress,")"):"none"})),a=i.computed(()=>["".concat(Ke.CSS_NAMESPACE,"__progress-bar"),t.controlledProgress?"".concat(Ke.CSS_NAMESPACE,"__progress-bar--controlled"):"".concat(Ke.CSS_NAMESPACE,"__progress-bar--animated"),"".concat(Ke.CSS_NAMESPACE,"__progress-bar-theme--").concat(t.theme),"".concat(Ke.CSS_NAMESPACE,"__progress-bar--").concat(t.type),t.rtl?"".concat(Ke.CSS_NAMESPACE,"__progress-bar--rtl"):null].filter(Boolean).join(" ")),s=i.computed(()=>"".concat(a.value," ").concat((e==null?void 0:e.class)||"")),l=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},u=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),l())},c=i.computed(()=>t.controlledProgress?null:u),d=i.computed(()=>t.controlledProgress?u:null);return i.watchEffect(()=>{n.value&&(l(),n.value.onanimationend=c.value,n.value.ontransitionend=d.value)}),()=>i.createVNode("div",{ref:n,role:"progressbar","aria-hidden":r.value,"aria-label":"notification timer",class:s.value,style:o.value},null)}}),y_=i.defineComponent({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:Ti.AUTO},type:{type:String,required:!1,default:Ti.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>i.createVNode("button",{class:"".concat(Ke.CSS_NAMESPACE,"__close-button ").concat(Ke.CSS_NAMESPACE,"__close-button--").concat(t.theme),type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[i.createVNode("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[i.createVNode("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),yl=({theme:t,type:e,path:n,...r})=>i.createVNode("svg",i.mergeProps({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":"var(--toastify-icon-color-".concat(e,")")},r),[i.createVNode("path",{d:n},null)]);function w_(t){return i.createVNode(yl,i.mergeProps(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function v_(t){return i.createVNode(yl,i.mergeProps(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function k_(t){return i.createVNode(yl,i.mergeProps(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function x_(t){return i.createVNode(yl,i.mergeProps(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function E_(){return i.createVNode("div",{class:"".concat(Ke.CSS_NAMESPACE,"__spinner")},null)}const Qd={info:v_,warning:w_,success:k_,error:x_,spinner:E_},C_=t=>t in Qd;function S_({theme:t,type:e,isLoading:n,icon:r}){let o;const a={theme:t,type:e};return n?o=Qd.spinner():r===!1?o=void 0:gl(r)?o=i.toRaw(r):Ni(r)?o=r(a):i.isVNode(r)?o=i.cloneVNode(r,a):Xd(r)||f_(r)?o=r:C_(e)&&(o=Qd[e](a)),o}const __=()=>{};function T_(t,e,n=Ke.COLLAPSE_DURATION){const{scrollHeight:r,style:o}=t,a=n;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition="all ".concat(a,"ms"),requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(e,a)})})}function N_(t){const e=i.ref(!1),n=i.ref(!1),r=i.ref(!1),o=i.ref(bl.Enter),a=i.reactive({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||Ke.COLLAPSE_DURATION}),s=a.done||__,l=i.computed(()=>a.appendPosition?"".concat(a.enter,"--").concat(a.position):a.enter),u=i.computed(()=>a.appendPosition?"".concat(a.exit,"--").concat(a.position):a.exit),c=i.computed(()=>t.pauseOnHover?{onMouseenter:b,onMouseleave:g}:{});function d(){const x=l.value.split(" ");f().addEventListener(Wd.ENTRANCE_ANIMATION_END,g,{once:!0});const N=M=>{const E=f();M.target===E&&(E.dispatchEvent(new Event(Wd.ENTRANCE_ANIMATION_END)),E.removeEventListener("animationend",N),E.removeEventListener("animationcancel",N),o.value===bl.Enter&&M.type!=="animationcancel"&&E.classList.remove(...x))},y=()=>{const M=f();M.classList.add(...x),M.addEventListener("animationend",N),M.addEventListener("animationcancel",N)};t.pauseOnFocusLoss&&h(),y()}function p(){if(!f())return;const x=()=>{const y=f();y.removeEventListener("animationend",x),a.collapse?T_(y,s,a.collapseDuration):s()},N=()=>{const y=f();o.value=bl.Exit,y&&(y.className+=" ".concat(u.value),y.addEventListener("animationend",x))};n.value||(r.value?x():setTimeout(N))}function f(){return t.toastRef.value}function h(){document.hasFocus()||b(),window.addEventListener("focus",g),window.addEventListener("blur",b)}function m(){window.removeEventListener("focus",g),window.removeEventListener("blur",b)}function g(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function b(){e.value=!1}function v(x){x&&(x.stopPropagation(),x.preventDefault()),n.value=!1}return i.watchEffect(p),i.watchEffect(()=>{const x=Ha();n.value=x.findIndex(N=>N.toastId===a.toastId)>-1}),i.watchEffect(()=>{t.isLoading!==void 0&&(t.loading.value?b():g())}),i.onMounted(d),i.onUnmounted(()=>{t.pauseOnFocusLoss&&m()}),{isIn:n,isRunning:e,hideToast:v,eventHandlers:c}}const O_=i.defineComponent({name:"ToastItem",inheritAttrs:!1,props:h1,setup(t){const e=i.ref(),n=i.computed(()=>!!t.isLoading),r=i.computed(()=>t.progress!==void 0&&t.progress!==null),o=i.computed(()=>S_(t)),a=i.computed(()=>["".concat(Ke.CSS_NAMESPACE,"__toast"),"".concat(Ke.CSS_NAMESPACE,"__toast-theme--").concat(t.theme),"".concat(Ke.CSS_NAMESPACE,"__toast--").concat(t.type),t.rtl?"".concat(Ke.CSS_NAMESPACE,"__toast--rtl"):void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:s,isIn:l,hideToast:u,eventHandlers:c}=N_({toastRef:e,loading:n,done:()=>{nr.remove(t.toastId)},...u1(t.transition),...t});return()=>i.createVNode("div",i.mergeProps({id:t.toastId,class:a.value,style:t.toastStyle||{},ref:e,"data-testid":"toast-item-".concat(t.toastId),onClick:d=>{t.closeOnClick&&u(),t.onClick&&t.onClick(d)}},c.value),[i.createVNode("div",{role:t.role,"data-testid":"toast-body",class:"".concat(Ke.CSS_NAMESPACE,"__toast-body ").concat(t.bodyClassName||"")},[o.value!=null&&i.createVNode("div",{"data-testid":"toast-icon-".concat(t.type),class:["".concat(Ke.CSS_NAMESPACE,"__toast-icon"),t.isLoading?"":"".concat(Ke.CSS_NAMESPACE,"--animate-icon ").concat(Ke.CSS_NAMESPACE,"__zoom-enter")].join(" ")},[gl(o.value)?i.h(i.toRaw(o.value),{theme:t.theme,type:t.type}):Ni(o.value)?o.value({theme:t.theme,type:t.type}):o.value]),i.createVNode("div",{"data-testid":"toast-content"},[gl(t.content)?i.h(i.toRaw(t.content),{toastProps:i.toRaw(t),closeToast:u,data:t.data}):Ni(t.content)?t.content({toastProps:i.toRaw(t),closeToast:u,data:t.data}):t.dangerouslyHTMLString?i.h("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&i.createVNode(y_,{theme:t.theme,closeToast:d=>{d.stopPropagation(),d.preventDefault(),u()}},null),gl(t.closeButton)?i.h(i.toRaw(t.closeButton),{closeToast:u,type:t.type,theme:t.theme}):Ni(t.closeButton)?t.closeButton({closeToast:u,type:t.type,theme:t.theme}):null,i.createVNode(b_,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:l.value,type:t.type,hide:t.hideProgressBar,isRunning:s.value,autoClose:t.autoClose,controlledProgress:r.value,progress:t.progress,closeToast:t.isLoading?void 0:u},null)])}});let qa=0;function m1(){typeof window>"u"||(qa&&window.cancelAnimationFrame(qa),qa=window.requestAnimationFrame(m1),hl.lastUrl!==window.location.href&&(hl.lastUrl=window.location.href,nr.clear()))}const $_=i.defineComponent({name:"ToastifyContainer",inheritAttrs:!1,props:h1,setup(t){const e=i.computed(()=>t.containerId),n=i.computed(()=>Tt[e.value]||[]),r=i.computed(()=>n.value.filter(o=>o.position===t.position));return i.onMounted(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(m1)}),i.onUnmounted(()=>{typeof window<"u"&&qa&&(window.cancelAnimationFrame(qa),hl.lastUrl="")}),()=>i.createVNode(i.Fragment,null,[r.value.map(o=>{const{toastId:a=""}=o;return i.createVNode(O_,i.mergeProps({key:a},o),null)})])}});let Zd=!1;function g1(){const t=[];return Ha().forEach(e=>{const n=document.getElementById(e.containerId);n&&!n.classList.contains(fl)&&t.push(e)}),t}function A_(t){const e=g1().length,n=t??0;return n>0&&e+tr.items.length>=n}function M_(t){A_(t.limit)&&!t.updateId&&tr.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function qr(t,e,n={}){if(Zd)return;n=ml(h_(),{type:e},i.toRaw(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=p1()),n={...n,content:t,containerId:n.containerId||String(n.position)};const r=Number(n==null?void 0:n.progress);return r<0&&(n.progress=0),r>1&&(n.progress=1),n.theme==="auto"&&(n.theme=m_()),M_(n),hl.lastUrl=window.location.href,n.multiple?tr.items.length?n.updateId&&pl(t,n):pl(t,n):(Zd=!0,Ye.clearAll(void 0,!1),setTimeout(()=>{pl(t,n)},0),setTimeout(()=>{Zd=!1},390)),n.toastId}const Ye=(t,e)=>qr(t,Ht.DEFAULT,e);Ye.info=(t,e)=>qr(t,Ht.DEFAULT,{...e,type:Ht.INFO}),Ye.error=(t,e)=>qr(t,Ht.DEFAULT,{...e,type:Ht.ERROR}),Ye.warning=(t,e)=>qr(t,Ht.DEFAULT,{...e,type:Ht.WARNING}),Ye.warn=Ye.warning,Ye.success=(t,e)=>qr(t,Ht.DEFAULT,{...e,type:Ht.SUCCESS}),Ye.loading=(t,e)=>qr(t,Ht.DEFAULT,ml(e,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1})),Ye.dark=(t,e)=>qr(t,Ht.DEFAULT,ml(e,{theme:Ti.DARK})),Ye.remove=t=>{t?nr.dismiss(t):nr.clear()},Ye.clearAll=(t,e)=>{nr.clear(t,e)},Ye.isActive=t=>{let e=!1;return e=g1().findIndex(n=>n.toastId===t)>-1,e},Ye.update=(t,e={})=>{setTimeout(()=>{const n=d_(t);if(n){const r=i.toRaw(n),{content:o}=r,a={...r,...e,toastId:e.toastId||t,updateId:p1()},s=a.render||o;delete a.render,qr(s,a.type,a)}},0)},Ye.done=t=>{Ye.update(t,{isLoading:!1,progress:1})},Ye.promise=D_;function D_(t,{pending:e,error:n,success:r},o){var a,s,l;let u;const c={...o||{},autoClose:!1};e&&(u=Xd(e)?Ye.loading(e,c):Ye.loading(e.render,{...c,...e}));const d={autoClose:(a=o==null?void 0:o.autoClose)!=null?a:!0,closeOnClick:(s=o==null?void 0:o.closeOnClick)!=null?s:!0,closeButton:(l=o==null?void 0:o.autoClose)!=null?l:null,isLoading:void 0,draggable:null,delay:100},p=(h,m,g)=>{if(m==null){Ye.remove(u);return}const b={type:h,...d,...o,data:g},v=Xd(m)?{render:m}:m;return u?Ye.update(u,{...b,...v,isLoading:!1}):Ye(v.render,{...b,...v,isLoading:!1}),g},f=Ni(t)?t():t;return f.then(h=>{p("success",r,h)}).catch(h=>{p("error",n,h)}),f}Ye.POSITION=za,Ye.THEME=Ti,Ye.TYPE=Ht,Ye.TRANSITIONS=KS;const B_={install(t,e={}){P_(e)}};typeof window<"u"&&(window.Vue3Toastify=B_);function P_(t={}){const e=ml(l1,t);p_(e)}const YK="",b1={info(t,e){return Ye.info(t,e)},success(t,e){return Ye.success(t,e)},error(t,e){return Ye.error(t,e)},warning(t,e){return Ye.warn(t,e)},loading(t,e){return Ye.loading(t,e)}};function V_(t){return{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map(function(o){o(n)}),(r=t.get("*"))&&r.slice().map(function(o){o(e,n)})}}}const fn=V_();function L_(){return jd()}function I_(){return Ud()}function An(t){"@babel/helpers - typeof";return An=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},An(t)}function _e(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function ke(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Te(t){ke(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||An(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function jr(t,e){ke(2,arguments);var n=Te(t),r=_e(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function rr(t,e){ke(2,arguments);var n=Te(t),r=_e(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+r+1,0);var s=a.getDate();return o>=s?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}function y1(t,e){if(ke(2,arguments),!e||An(e)!=="object")return new Date(NaN);var n=e.years?_e(e.years):0,r=e.months?_e(e.months):0,o=e.weeks?_e(e.weeks):0,a=e.days?_e(e.days):0,s=e.hours?_e(e.hours):0,l=e.minutes?_e(e.minutes):0,u=e.seconds?_e(e.seconds):0,c=Te(t),d=r||n?rr(c,r+n*12):c,p=a||o?jr(d,a+o*7):d,f=l+s*60,h=u+f*60,m=h*1e3,g=new Date(p.getTime()+m);return g}function R_(t,e){ke(2,arguments);var n=Te(t).getTime(),r=_e(e);return new Date(n+r)}var z_={};function Ur(){return z_}function ef(t,e){var n,r,o,a,s,l,u,c;ke(1,arguments);var d=Ur(),p=_e((n=(r=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Te(t),h=f.getDay(),m=(h<p?7:0)+h-p;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}function wl(t){return ke(1,arguments),ef(t,{weekStartsOn:1})}function F_(t){ke(1,arguments);var e=Te(t),n=e.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=wl(r),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var s=wl(a);return e.getTime()>=o.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function H_(t){ke(1,arguments);var e=F_(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var r=wl(n);return r}function vl(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function w1(t){ke(1,arguments);var e=Te(t);return e.setHours(0,0,0,0),e}var q_=864e5;function j_(t,e){ke(2,arguments);var n=w1(t),r=w1(e),o=n.getTime()-vl(n),a=r.getTime()-vl(r);return Math.round((o-a)/q_)}function v1(t,e){ke(2,arguments);var n=_e(e);return rr(t,n*12)}var tf=6e4,nf=36e5,U_=1e3;function k1(t){return ke(1,arguments),t instanceof Date||An(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function ja(t){if(ke(1,arguments),!k1(t)&&typeof t!="number")return!1;var e=Te(t);return!isNaN(Number(e))}function x1(t,e){var n;ke(1,arguments);var r=t||{},o=Te(r.start),a=Te(r.end),s=a.getTime();if(!(o.getTime()<=s))throw new RangeError("Invalid interval");var l=[],u=o;u.setHours(0,0,0,0);var c=Number((n=e==null?void 0:e.step)!==null&&n!==void 0?n:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=s;)l.push(Te(u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return l}function W_(t,e){var n,r,o,a,s,l,u,c;ke(1,arguments);var d=Ur(),p=_e((n=(r=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Te(t),h=f.getDay(),m=(h<p?-7:0)+6-(h-p);return f.setDate(f.getDate()+m),f.setHours(23,59,59,999),f}function E1(t,e){ke(2,arguments);var n=_e(e);return R_(t,-n)}var K_=864e5;function Y_(t){ke(1,arguments);var e=Te(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=n-r;return Math.floor(o/K_)+1}function Oi(t){ke(1,arguments);var e=1,n=Te(t),r=n.getUTCDay(),o=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function C1(t){ke(1,arguments);var e=Te(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=Oi(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var s=Oi(a);return e.getTime()>=o.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function G_(t){ke(1,arguments);var e=C1(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=Oi(n);return r}var J_=6048e5;function S1(t){ke(1,arguments);var e=Te(t),n=Oi(e).getTime()-G_(e).getTime();return Math.round(n/J_)+1}function Do(t,e){var n,r,o,a,s,l,u,c;ke(1,arguments);var d=Ur(),p=_e((n=(r=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Te(t),h=f.getUTCDay(),m=(h<p?7:0)+h-p;return f.setUTCDate(f.getUTCDate()-m),f.setUTCHours(0,0,0,0),f}function rf(t,e){var n,r,o,a,s,l,u,c;ke(1,arguments);var d=Te(t),p=d.getUTCFullYear(),f=Ur(),h=_e((n=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(p+1,0,h),m.setUTCHours(0,0,0,0);var g=Do(m,e),b=new Date(0);b.setUTCFullYear(p,0,h),b.setUTCHours(0,0,0,0);var v=Do(b,e);return d.getTime()>=g.getTime()?p+1:d.getTime()>=v.getTime()?p:p-1}function X_(t,e){var n,r,o,a,s,l,u,c;ke(1,arguments);var d=Ur(),p=_e((n=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=rf(t,e),h=new Date(0);h.setUTCFullYear(f,0,p),h.setUTCHours(0,0,0,0);var m=Do(h,e);return m}var Q_=6048e5;function _1(t,e){ke(1,arguments);var n=Te(t),r=Do(n,e).getTime()-X_(n,e).getTime();return Math.round(r/Q_)+1}function Xe(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var Z_={y:function(e,n){var r=e.getUTCFullYear(),o=r>0?r:1-r;return Xe(n==="yy"?o%100:o,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):Xe(r+1,2)},d:function(e,n){return Xe(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,n){return Xe(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Xe(e.getUTCHours(),n.length)},m:function(e,n){return Xe(e.getUTCMinutes(),n.length)},s:function(e,n){return Xe(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,o=e.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,r-3));return Xe(a,n.length)}};const Wr=Z_;var $i={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},e8={G:function(e,n,r){var o=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){var o=e.getUTCFullYear(),a=o>0?o:1-o;return r.ordinalNumber(a,{unit:"year"})}return Wr.y(e,n)},Y:function(e,n,r,o){var a=rf(e,o),s=a>0?a:1-a;if(n==="YY"){var l=s%100;return Xe(l,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):Xe(s,n.length)},R:function(e,n){var r=C1(e);return Xe(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return Xe(r,n.length)},Q:function(e,n,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Xe(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,n,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Xe(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,n,r){var o=e.getUTCMonth();switch(n){case"M":case"MM":return Wr.M(e,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,n,r){var o=e.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return Xe(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,n,r,o){var a=_1(e,o);return n==="wo"?r.ordinalNumber(a,{unit:"week"}):Xe(a,n.length)},I:function(e,n,r){var o=S1(e);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Xe(o,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Wr.d(e,n)},D:function(e,n,r){var o=Y_(e);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Xe(o,n.length)},E:function(e,n,r){var o=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,n,r,o){var a=e.getUTCDay(),s=(a-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return Xe(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,n,r,o){var a=e.getUTCDay(),s=(a-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return Xe(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,n,r){var o=e.getUTCDay(),a=o===0?7:o;switch(n){case"i":return String(a);case"ii":return Xe(a,n.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,n,r){var o=e.getUTCHours(),a=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,n,r){var o=e.getUTCHours(),a;switch(o===12?a=$i.noon:o===0?a=$i.midnight:a=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,n,r){var o=e.getUTCHours(),a;switch(o>=17?a=$i.evening:o>=12?a=$i.afternoon:o>=4?a=$i.morning:a=$i.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Wr.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Wr.H(e,n)},K:function(e,n,r){var o=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Xe(o,n.length)},k:function(e,n,r){var o=e.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Xe(o,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Wr.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Wr.s(e,n)},S:function(e,n){return Wr.S(e,n)},X:function(e,n,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return N1(s);case"XXXX":case"XX":return Bo(s);case"XXXXX":case"XXX":default:return Bo(s,":")}},x:function(e,n,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();switch(n){case"x":return N1(s);case"xxxx":case"xx":return Bo(s);case"xxxxx":case"xxx":default:return Bo(s,":")}},O:function(e,n,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+T1(s,":");case"OOOO":default:return"GMT"+Bo(s,":")}},z:function(e,n,r,o){var a=o._originalDate||e,s=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+T1(s,":");case"zzzz":default:return"GMT"+Bo(s,":")}},t:function(e,n,r,o){var a=o._originalDate||e,s=Math.floor(a.getTime()/1e3);return Xe(s,n.length)},T:function(e,n,r,o){var a=o._originalDate||e,s=a.getTime();return Xe(s,n.length)}};function T1(t,e){var n=t>0?"-":"+",r=Math.abs(t),o=Math.floor(r/60),a=r%60;if(a===0)return n+String(o);var s=e||"";return n+String(o)+s+Xe(a,2)}function N1(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Xe(Math.abs(t)/60,2)}return Bo(t,e)}function Bo(t,e){var n=e||"",r=t>0?"-":"+",o=Math.abs(t),a=Xe(Math.floor(o/60),2),s=Xe(o%60,2);return r+a+n+s}const t8=e8;var O1=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},$1=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},n8=function(e,n){var r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return O1(e,n);var s;switch(o){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",O1(o,n)).replace("{{time}}",$1(a,n))},r8={p:$1,P:n8};const of=r8;var o8=["D","DD"],i8=["YY","YYYY"];function A1(t){return o8.indexOf(t)!==-1}function M1(t){return i8.indexOf(t)!==-1}function kl(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var a8={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},s8=function(e,n,r){var o,a=a8[e];return typeof a=="string"?o=a:n===1?o=a.one:o=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const l8=s8;function af(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var u8={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},c8={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},d8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},f8={date:af({formats:u8,defaultWidth:"full"}),time:af({formats:c8,defaultWidth:"full"}),dateTime:af({formats:d8,defaultWidth:"full"})};const p8=f8;var h8={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},m8=function(e,n,r,o){return h8[e]};const g8=m8;function Ua(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):a;o=t.formattingValues[s]||t.formattingValues[a]}else{var l=t.defaultWidth,u=n!=null&&n.width?String(n.width):t.defaultWidth;o=t.values[u]||t.values[l]}var c=t.argumentCallback?t.argumentCallback(e):e;return o[c]}}var b8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},y8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},w8={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},v8={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},k8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},x8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},E8=function(e,n){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},C8={ordinalNumber:E8,era:Ua({values:b8,defaultWidth:"wide"}),quarter:Ua({values:y8,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ua({values:w8,defaultWidth:"wide"}),day:Ua({values:v8,defaultWidth:"wide"}),dayPeriod:Ua({values:k8,defaultWidth:"wide",formattingValues:x8,defaultFormattingWidth:"wide"})};const S8=C8;function Wa(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(o);if(!a)return null;var s=a[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(l)?T8(l,function(p){return p.test(s)}):_8(l,function(p){return p.test(s)}),c;c=t.valueCallback?t.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c;var d=e.slice(s.length);return{value:c,rest:d}}}function _8(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function T8(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function N8(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var o=r[0],a=e.match(t.parsePattern);if(!a)return null;var s=t.valueCallback?t.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;var l=e.slice(o.length);return{value:s,rest:l}}}var O8=/^(\d+)(th|st|nd|rd)?/i,$8=/\d+/i,A8={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},M8={any:[/^b/i,/^(a|c)/i]},D8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},B8={any:[/1/i,/2/i,/3/i,/4/i]},P8={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},V8={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},L8={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},I8={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},R8={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},z8={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},F8={ordinalNumber:N8({matchPattern:O8,parsePattern:$8,valueCallback:function(e){return parseInt(e,10)}}),era:Wa({matchPatterns:A8,defaultMatchWidth:"wide",parsePatterns:M8,defaultParseWidth:"any"}),quarter:Wa({matchPatterns:D8,defaultMatchWidth:"wide",parsePatterns:B8,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wa({matchPatterns:P8,defaultMatchWidth:"wide",parsePatterns:V8,defaultParseWidth:"any"}),day:Wa({matchPatterns:L8,defaultMatchWidth:"wide",parsePatterns:I8,defaultParseWidth:"any"}),dayPeriod:Wa({matchPatterns:R8,defaultMatchWidth:"any",parsePatterns:z8,defaultParseWidth:"any"})},H8={code:"en-US",formatDistance:l8,formatLong:p8,formatRelative:g8,localize:S8,match:F8,options:{weekStartsOn:0,firstWeekContainsDate:1}};const D1=H8;var q8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,j8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,U8=/^'([^]*?)'?$/,W8=/''/g,K8=/[a-zA-Z]/;function Ka(t,e,n){var r,o,a,s,l,u,c,d,p,f,h,m,g,b,v,x,N,y;ke(2,arguments);var M=String(e),E=Ur(),C=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:E.locale)!==null&&r!==void 0?r:D1,T=_e((a=(s=(l=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:E.firstWeekContainsDate)!==null&&s!==void 0?s:(p=E.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=_e((h=(m=(g=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(v=n.locale)===null||v===void 0||(x=v.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&g!==void 0?g:E.weekStartsOn)!==null&&m!==void 0?m:(N=E.locale)===null||N===void 0||(y=N.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&h!==void 0?h:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var L=Te(t);if(!ja(L))throw new RangeError("Invalid time value");var k=vl(L),$=E1(L,k),D={firstWeekContainsDate:T,weekStartsOn:B,locale:C,_originalDate:L},V=M.match(j8).map(function(S){var O=S[0];if(O==="p"||O==="P"){var w=of[O];return w(S,C.formatLong)}return S}).join("").match(q8).map(function(S){if(S==="''")return"'";var O=S[0];if(O==="'")return Y8(S);var w=t8[O];if(w)return!(n!=null&&n.useAdditionalWeekYearTokens)&&M1(S)&&kl(S,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&A1(S)&&kl(S,e,String(t)),w($,S,C.localize,D);if(O.match(K8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return S}).join("");return V}function Y8(t){var e=t.match(U8);return e?e[1].replace(W8,"'"):t}function G8(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function J8(t){ke(1,arguments);var e=Te(t),n=e.getDay();return n}function X8(t){ke(1,arguments);var e=Te(t),n=e.getFullYear(),r=e.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function Er(t){ke(1,arguments);var e=Te(t),n=e.getHours();return n}var Q8=6048e5;function Z8(t){ke(1,arguments);var e=Te(t),n=wl(e).getTime()-H_(e).getTime();return Math.round(n/Q8)+1}function Cr(t){ke(1,arguments);var e=Te(t),n=e.getMinutes();return n}function tt(t){ke(1,arguments);var e=Te(t),n=e.getMonth();return n}function Ai(t){ke(1,arguments);var e=Te(t),n=e.getSeconds();return n}function nt(t){return ke(1,arguments),Te(t).getFullYear()}function sf(t,e){ke(2,arguments);var n=Te(t),r=Te(e);return n.getTime()>r.getTime()}function lf(t,e){ke(2,arguments);var n=Te(t),r=Te(e);return n.getTime()<r.getTime()}function B1(t,e){ke(2,arguments);var n=Te(t),r=Te(e);return n.getTime()===r.getTime()}function P1(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 e5(t,e){if(t){if(typeof t=="string")return P1(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 P1(t,e)}}function V1(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=e5(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(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,l=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function he(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uf(t,e){return uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},uf(t,e)}function He(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uf(t,e)}function xl(t){return xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xl(t)}function t5(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function n5(t,e){if(e&&(An(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return he(t)}function qe(t){var e=t5();return function(){var r=xl(t),o;if(e){var a=xl(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return n5(this,o)}}function Ie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r5(t,e){if(An(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(An(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function L1(t){var e=r5(t,"string");return An(e)==="symbol"?e:String(e)}function I1(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,L1(r.key),r)}}function Re(t,e,n){return e&&I1(t.prototype,e),n&&I1(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function fe(t,e,n){return e=L1(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o5=10,R1=function(){function t(){Ie(this,t),fe(this,"priority",void 0),fe(this,"subPriority",0)}return Re(t,[{key:"validate",value:function(n,r){return!0}}]),t}(),i5=function(t){He(n,t);var e=qe(n);function n(r,o,a,s,l){var u;return Ie(this,n),u=e.call(this),u.value=r,u.validateValue=o,u.setValue=a,u.priority=s,l&&(u.subPriority=l),u}return Re(n,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,s){return this.setValue(o,a,this.value,s)}}]),n}(R1),a5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",o5),fe(he(r),"subPriority",-1),r}return Re(n,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}}]),n}(R1),We=function(){function t(){Ie(this,t),fe(this,"incompatibleTokens",void 0),fe(this,"priority",void 0),fe(this,"subPriority",void 0)}return Re(t,[{key:"run",value:function(n,r,o,a){var s=this.parse(n,r,o,a);return s?{setter:new i5(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),t}(),s5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",140),fe(he(r),"incompatibleTokens",["R","u","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"G":case"GG":case"GGG":return s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"});case"GGGGG":return s.era(o,{width:"narrow"});case"GGGG":default:return s.era(o,{width:"wide"})||s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,s){return a.era=s,o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(We),ft={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},or={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function pt(t,e){return t&&{value:e(t.value),rest:t.rest}}function st(t,e){var n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function ir(t,e){var n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*nf+a*tf+s*U_),rest:e.slice(n[0].length)}}function z1(t){return st(ft.anyDigitsSigned,t)}function ut(t,e){switch(t){case 1:return st(ft.singleDigit,e);case 2:return st(ft.twoDigits,e);case 3:return st(ft.threeDigits,e);case 4:return st(ft.fourDigits,e);default:return st(new RegExp("^\\d{1,"+t+"}"),e)}}function El(t,e){switch(t){case 1:return st(ft.singleDigitSigned,e);case 2:return st(ft.twoDigitsSigned,e);case 3:return st(ft.threeDigitsSigned,e);case 4:return st(ft.fourDigitsSigned,e);default:return st(new RegExp("^-?\\d{1,"+t+"}"),e)}}function cf(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function F1(t,e){var n=e>0,r=n?e:1-e,o;if(r<=50)o=t||100;else{var a=r+50,s=Math.floor(a/100)*100,l=t>=a%100;o=t+s-(l?100:0)}return n?o:1-o}function H1(t){return t%400===0||t%4===0&&t%100!==0}var l5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",130),fe(he(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){var l=function(c){return{year:c,isTwoDigitYear:a==="yy"}};switch(a){case"y":return pt(ut(4,o),l);case"yo":return pt(s.ordinalNumber(o,{unit:"year"}),l);default:return pt(ut(a.length,o),l)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,s){var l=o.getUTCFullYear();if(s.isTwoDigitYear){var u=F1(s.year,l);return o.setUTCFullYear(u,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in a)||a.era===1?s.year:1-s.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(We),u5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",130),fe(he(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){var l=function(c){return{year:c,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return pt(ut(4,o),l);case"Yo":return pt(s.ordinalNumber(o,{unit:"year"}),l);default:return pt(ut(a.length,o),l)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,s,l){var u=rf(o,l);if(s.isTwoDigitYear){var c=F1(s.year,u);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Do(o,l)}var d=!("era"in a)||a.era===1?s.year:1-s.year;return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Do(o,l)}}]),n}(We),c5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",130),fe(he(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a){return El(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,s){var l=new Date(0);return l.setUTCFullYear(s,0,4),l.setUTCHours(0,0,0,0),Oi(l)}}]),n}(We),d5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",130),fe(he(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a){return El(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,s){return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(We),f5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",120),fe(he(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"Q":case"QQ":return ut(a.length,o);case"Qo":return s.ordinalNumber(o,{unit:"quarter"});case"QQQ":return s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(o,{width:"wide",context:"formatting"})||s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(We),p5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",120),fe(he(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"q":case"qq":return ut(a.length,o);case"qo":return s.ordinalNumber(o,{unit:"quarter"});case"qqq":return s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(o,{width:"wide",context:"standalone"})||s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(We),h5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),fe(he(r),"priority",110),r}return Re(n,[{key:"parse",value:function(o,a,s){var l=function(c){return c-1};switch(a){case"M":return pt(st(ft.month,o),l);case"MM":return pt(ut(2,o),l);case"Mo":return pt(s.ordinalNumber(o,{unit:"month"}),l);case"MMM":return s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(o,{width:"wide",context:"formatting"})||s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),n}(We),m5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",110),fe(he(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){var l=function(c){return c-1};switch(a){case"L":return pt(st(ft.month,o),l);case"LL":return pt(ut(2,o),l);case"Lo":return pt(s.ordinalNumber(o,{unit:"month"}),l);case"LLL":return s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(o,{width:"wide",context:"standalone"})||s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),n}(We);function g5(t,e,n){ke(2,arguments);var r=Te(t),o=_e(e),a=_1(r,n)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var b5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",100),fe(he(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"w":return st(ft.week,o);case"wo":return s.ordinalNumber(o,{unit:"week"});default:return ut(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,s,l){return Do(g5(o,s,l),l)}}]),n}(We);function y5(t,e){ke(2,arguments);var n=Te(t),r=_e(e),o=S1(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var w5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",100),fe(he(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"I":return st(ft.week,o);case"Io":return s.ordinalNumber(o,{unit:"week"});default:return ut(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,s){return Oi(y5(o,s))}}]),n}(We),v5=[31,28,31,30,31,30,31,31,30,31,30,31],k5=[31,29,31,30,31,30,31,31,30,31,30,31],x5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",90),fe(he(r),"subPriority",1),fe(he(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"d":return st(ft.date,o);case"do":return s.ordinalNumber(o,{unit:"date"});default:return ut(a.length,o)}}},{key:"validate",value:function(o,a){var s=o.getUTCFullYear(),l=H1(s),u=o.getUTCMonth();return l?a>=1&&a<=k5[u]:a>=1&&a<=v5[u]}},{key:"set",value:function(o,a,s){return o.setUTCDate(s),o.setUTCHours(0,0,0,0),o}}]),n}(We),E5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",90),fe(he(r),"subpriority",1),fe(he(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"D":case"DD":return st(ft.dayOfYear,o);case"Do":return s.ordinalNumber(o,{unit:"date"});default:return ut(a.length,o)}}},{key:"validate",value:function(o,a){var s=o.getUTCFullYear(),l=H1(s);return l?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,s){return o.setUTCMonth(0,s),o.setUTCHours(0,0,0,0),o}}]),n}(We);function df(t,e,n){var r,o,a,s,l,u,c,d;ke(2,arguments);var p=Ur(),f=_e((r=(o=(a=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&a!==void 0?a:p.weekStartsOn)!==null&&o!==void 0?o:(c=p.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Te(t),m=_e(e),g=h.getUTCDay(),b=m%7,v=(b+7)%7,x=(v<f?7:0)+m-g;return h.setUTCDate(h.getUTCDate()+x),h}var C5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",90),fe(he(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"E":case"EE":case"EEE":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,s,l){return o=df(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(We),S5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",90),fe(he(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s,l){var u=function(d){var p=Math.floor((d-1)/7)*7;return(d+l.weekStartsOn+6)%7+p};switch(a){case"e":case"ee":return pt(ut(a.length,o),u);case"eo":return pt(s.ordinalNumber(o,{unit:"day"}),u);case"eee":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeeee":return s.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,s,l){return o=df(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(We),_5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",90),fe(he(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s,l){var u=function(d){var p=Math.floor((d-1)/7)*7;return(d+l.weekStartsOn+6)%7+p};switch(a){case"c":case"cc":return pt(ut(a.length,o),u);case"co":return pt(s.ordinalNumber(o,{unit:"day"}),u);case"ccc":return s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"ccccc":return s.day(o,{width:"narrow",context:"standalone"});case"cccccc":return s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(o,{width:"wide",context:"standalone"})||s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,s,l){return o=df(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(We);function T5(t,e){ke(2,arguments);var n=_e(e);n%7===0&&(n=n-7);var r=1,o=Te(t),a=o.getUTCDay(),s=n%7,l=(s+7)%7,u=(l<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+u),o}var N5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",90),fe(he(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){var l=function(c){return c===0?7:c};switch(a){case"i":case"ii":return ut(a.length,o);case"io":return s.ordinalNumber(o,{unit:"day"});case"iii":return pt(s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l);case"iiiii":return pt(s.day(o,{width:"narrow",context:"formatting"}),l);case"iiiiii":return pt(s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l);case"iiii":default:return pt(s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,s){return o=T5(o,s),o.setUTCHours(0,0,0,0),o}}]),n}(We),O5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",80),fe(he(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"a":case"aa":case"aaa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,s){return o.setUTCHours(cf(s),0,0,0),o}}]),n}(We),$5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",80),fe(he(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"b":case"bb":case"bbb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,s){return o.setUTCHours(cf(s),0,0,0),o}}]),n}(We),A5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",80),fe(he(r),"incompatibleTokens",["a","b","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"B":case"BB":case"BBB":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,s){return o.setUTCHours(cf(s),0,0,0),o}}]),n}(We),M5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",70),fe(he(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"h":return st(ft.hour12h,o);case"ho":return s.ordinalNumber(o,{unit:"hour"});default:return ut(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,s){var l=o.getUTCHours()>=12;return l&&s<12?o.setUTCHours(s+12,0,0,0):!l&&s===12?o.setUTCHours(0,0,0,0):o.setUTCHours(s,0,0,0),o}}]),n}(We),D5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",70),fe(he(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"H":return st(ft.hour23h,o);case"Ho":return s.ordinalNumber(o,{unit:"hour"});default:return ut(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,s){return o.setUTCHours(s,0,0,0),o}}]),n}(We),B5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",70),fe(he(r),"incompatibleTokens",["h","H","k","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"K":return st(ft.hour11h,o);case"Ko":return s.ordinalNumber(o,{unit:"hour"});default:return ut(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,s){var l=o.getUTCHours()>=12;return l&&s<12?o.setUTCHours(s+12,0,0,0):o.setUTCHours(s,0,0,0),o}}]),n}(We),P5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",70),fe(he(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"k":return st(ft.hour24h,o);case"ko":return s.ordinalNumber(o,{unit:"hour"});default:return ut(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,s){var l=s<=24?s%24:s;return o.setUTCHours(l,0,0,0),o}}]),n}(We),V5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",60),fe(he(r),"incompatibleTokens",["t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"m":return st(ft.minute,o);case"mo":return s.ordinalNumber(o,{unit:"minute"});default:return ut(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,s){return o.setUTCMinutes(s,0,0),o}}]),n}(We),L5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",50),fe(he(r),"incompatibleTokens",["t","T"]),r}return Re(n,[{key:"parse",value:function(o,a,s){switch(a){case"s":return st(ft.second,o);case"so":return s.ordinalNumber(o,{unit:"second"});default:return ut(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,s){return o.setUTCSeconds(s,0),o}}]),n}(We),I5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",30),fe(he(r),"incompatibleTokens",["t","T"]),r}return Re(n,[{key:"parse",value:function(o,a){var s=function(u){return Math.floor(u*Math.pow(10,-a.length+3))};return pt(ut(a.length,o),s)}},{key:"set",value:function(o,a,s){return o.setUTCMilliseconds(s),o}}]),n}(We),R5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",10),fe(he(r),"incompatibleTokens",["t","T","x"]),r}return Re(n,[{key:"parse",value:function(o,a){switch(a){case"X":return ir(or.basicOptionalMinutes,o);case"XX":return ir(or.basic,o);case"XXXX":return ir(or.basicOptionalSeconds,o);case"XXXXX":return ir(or.extendedOptionalSeconds,o);case"XXX":default:return ir(or.extended,o)}}},{key:"set",value:function(o,a,s){return a.timestampIsSet?o:new Date(o.getTime()-s)}}]),n}(We),z5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",10),fe(he(r),"incompatibleTokens",["t","T","X"]),r}return Re(n,[{key:"parse",value:function(o,a){switch(a){case"x":return ir(or.basicOptionalMinutes,o);case"xx":return ir(or.basic,o);case"xxxx":return ir(or.basicOptionalSeconds,o);case"xxxxx":return ir(or.extendedOptionalSeconds,o);case"xxx":default:return ir(or.extended,o)}}},{key:"set",value:function(o,a,s){return a.timestampIsSet?o:new Date(o.getTime()-s)}}]),n}(We),F5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",40),fe(he(r),"incompatibleTokens","*"),r}return Re(n,[{key:"parse",value:function(o){return z1(o)}},{key:"set",value:function(o,a,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),n}(We),H5=function(t){He(n,t);var e=qe(n);function n(){var r;Ie(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),fe(he(r),"priority",20),fe(he(r),"incompatibleTokens","*"),r}return Re(n,[{key:"parse",value:function(o){return z1(o)}},{key:"set",value:function(o,a,s){return[new Date(s),{timestampIsSet:!0}]}}]),n}(We),q5={G:new s5,y:new l5,Y:new u5,R:new c5,u:new d5,Q:new f5,q:new p5,M:new h5,L:new m5,w:new b5,I:new w5,d:new x5,D:new E5,E:new C5,e:new S5,c:new _5,i:new N5,a:new O5,b:new $5,B:new A5,h:new M5,H:new D5,K:new B5,k:new P5,m:new V5,s:new L5,S:new I5,X:new R5,x:new z5,t:new F5,T:new H5},j5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,U5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,W5=/^'([^]*?)'?$/,K5=/''/g,Y5=/\S/,G5=/[a-zA-Z]/;function ff(t,e,n,r){var o,a,s,l,u,c,d,p,f,h,m,g,b,v,x,N,y,M;ke(3,arguments);var E=String(t),C=String(e),T=Ur(),B=(o=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:T.locale)!==null&&o!==void 0?o:D1;if(!B.match)throw new RangeError("locale must contain match property");var L=_e((s=(l=(u=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(d=r.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&u!==void 0?u:T.firstWeekContainsDate)!==null&&l!==void 0?l:(f=T.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=_e((m=(g=(b=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(x=r.locale)===null||x===void 0||(N=x.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&b!==void 0?b:T.weekStartsOn)!==null&&g!==void 0?g:(y=T.locale)===null||y===void 0||(M=y.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&m!==void 0?m:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(C==="")return E===""?Te(n):new Date(NaN);var $={firstWeekContainsDate:L,weekStartsOn:k,locale:B},D=[new a5],V=C.match(U5).map(function(K){var Y=K[0];if(Y in of){var X=of[Y];return X(K,B.formatLong)}return K}).join("").match(j5),S=[],O=V1(V),w;try{var A=function(){var Y=w.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&M1(Y)&&kl(Y,C,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&A1(Y)&&kl(Y,C,t);var X=Y[0],ue=q5[X];if(ue){var ie=ue.incompatibleTokens;if(Array.isArray(ie)){var te=S.find(function(ce){return ie.includes(ce.token)||ce.token===X});if(te)throw new RangeError("The format string mustn't contain `".concat(te.fullToken,"` and `").concat(Y,"` at the same time"))}else if(ue.incompatibleTokens==="*"&&S.length>0)throw new RangeError("The format string mustn't contain `".concat(Y,"` and any other token at the same time"));S.push({token:X,fullToken:Y});var se=ue.run(E,Y,B.match,$);if(!se)return{v:new Date(NaN)};D.push(se.setter),E=se.rest}else{if(X.match(G5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+X+"`");if(Y==="''"?Y="'":X==="'"&&(Y=J5(Y)),E.indexOf(Y)===0)E=E.slice(Y.length);else return{v:new Date(NaN)}}};for(O.s();!(w=O.n()).done;){var z=A();if(An(z)==="object")return z.v}}catch(K){O.e(K)}finally{O.f()}if(E.length>0&&Y5.test(E))return new Date(NaN);var P=D.map(function(K){return K.priority}).sort(function(K,Y){return Y-K}).filter(function(K,Y,X){return X.indexOf(K)===Y}).map(function(K){return D.filter(function(Y){return Y.priority===K}).sort(function(Y,X){return X.subPriority-Y.subPriority})}).map(function(K){return K[0]}),q=Te(n);if(isNaN(q.getTime()))return new Date(NaN);var W=E1(q,vl(q)),ee={},F=V1(P),R;try{for(F.s();!(R=F.n()).done;){var G=R.value;if(!G.validate(W,$))return new Date(NaN);var j=G.set(W,ee,$);Array.isArray(j)?(W=j[0],G8(ee,j[1])):W=j}}catch(K){F.e(K)}finally{F.f()}return W}function J5(t){return t.match(W5)[1].replace(K5,"'")}function X5(t,e){ke(2,arguments);var n=_e(e);return jr(t,-n)}function Q5(t,e){var n;ke(1,arguments);var r=_e((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var o=nT(t),a;if(o.date){var s=rT(o.date,r);a=oT(s.restDateString,s.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var l=a.getTime(),u=0,c;if(o.time&&(u=iT(o.time),isNaN(u)))return new Date(NaN);if(o.timezone){if(c=aT(o.timezone),isNaN(c))return new Date(NaN)}else{var d=new Date(l+u),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return new Date(l+u+c)}var Cl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Z5=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,eT=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,tT=/^([+-])(\d{2})(?::?(\d{2}))?$/;function nT(t){var e={},n=t.split(Cl.dateTimeDelimiter),r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],Cl.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Cl.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){var o=Cl.timezone.exec(r);o?(e.time=r.replace(o[1],""),e.timezone=o[1]):e.time=r}return e}function rT(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?o:a*100,restDateString:t.slice((r[1]||r[2]).length)}}function oT(t,e){if(e===null)return new Date(NaN);var n=t.match(Z5);if(!n)return new Date(NaN);var r=!!n[4],o=Ya(n[1]),a=Ya(n[2])-1,s=Ya(n[3]),l=Ya(n[4]),u=Ya(n[5])-1;if(r)return dT(e,l,u)?sT(e,l,u):new Date(NaN);var c=new Date(0);return!uT(e,a,s)||!cT(e,o)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(o,s)),c)}function Ya(t){return t?parseInt(t):1}function iT(t){var e=t.match(eT);if(!e)return NaN;var n=pf(e[1]),r=pf(e[2]),o=pf(e[3]);return fT(n,r,o)?n*nf+r*tf+o*1e3:NaN}function pf(t){return t&&parseFloat(t.replace(",","."))||0}function aT(t){if(t==="Z")return 0;var e=t.match(tT);if(!e)return 0;var n=e[1]==="+"?-1:1,r=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return pT(r,o)?n*(r*nf+o*tf):NaN}function sT(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var o=r.getUTCDay()||7,a=(e-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}var lT=[31,null,31,30,31,30,31,31,30,31,30,31];function q1(t){return t%400===0||t%4===0&&t%100!==0}function uT(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(lT[e]||(q1(t)?29:28))}function cT(t,e){return e>=1&&e<=(q1(t)?366:365)}function dT(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function fT(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function pT(t,e){return e>=0&&e<=59}function Ga(t,e){ke(2,arguments);var n=Te(t),r=_e(e),o=n.getFullYear(),a=n.getDate(),s=new Date(0);s.setFullYear(o,r,15),s.setHours(0,0,0,0);var l=X8(s);return n.setMonth(r,Math.min(a,l)),n}function qt(t,e){if(ke(2,arguments),An(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var n=Te(t);return isNaN(n.getTime())?new Date(NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Ga(n,e.month)),e.date!=null&&n.setDate(_e(e.date)),e.hours!=null&&n.setHours(_e(e.hours)),e.minutes!=null&&n.setMinutes(_e(e.minutes)),e.seconds!=null&&n.setSeconds(_e(e.seconds)),e.milliseconds!=null&&n.setMilliseconds(_e(e.milliseconds)),n)}function j1(t,e){ke(2,arguments);var n=Te(t),r=_e(e);return n.setHours(r),n}function hf(t,e){ke(2,arguments);var n=Te(t),r=_e(e);return n.setMilliseconds(r),n}function U1(t,e){ke(2,arguments);var n=Te(t),r=_e(e);return n.setMinutes(r),n}function W1(t,e){ke(2,arguments);var n=Te(t),r=_e(e);return n.setSeconds(r),n}function Po(t,e){ke(2,arguments);var n=Te(t),r=_e(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Mi(t,e){ke(2,arguments);var n=_e(e);return rr(t,-n)}function hT(t,e){if(ke(2,arguments),!e||An(e)!=="object")return new Date(NaN);var n=e.years?_e(e.years):0,r=e.months?_e(e.months):0,o=e.weeks?_e(e.weeks):0,a=e.days?_e(e.days):0,s=e.hours?_e(e.hours):0,l=e.minutes?_e(e.minutes):0,u=e.seconds?_e(e.seconds):0,c=Mi(t,r+n*12),d=X5(c,a+o*7),p=l+s*60,f=u+p*60,h=f*1e3,m=new Date(d.getTime()-h);return m}function mT(t,e){ke(2,arguments);var n=_e(e);return v1(t,-n)}const Vo=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},gT={},bT={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},yT=i.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"},null,-1),wT=i.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"},null,-1),vT=i.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"},null,-1),kT=i.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"},null,-1),xT=[yT,wT,vT,kT];function ET(t,e){return i.openBlock(),i.createElementBlock("svg",bT,xT)}const Sl=Vo(gT,[["render",ET]]),CT={},ST={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},_T=i.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"},null,-1),TT=i.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"},null,-1),NT=[_T,TT];function OT(t,e){return i.openBlock(),i.createElementBlock("svg",ST,NT)}const $T=Vo(CT,[["render",OT]]),AT={},MT={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},DT=i.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"},null,-1),BT=[DT];function PT(t,e){return i.openBlock(),i.createElementBlock("svg",MT,BT)}const K1=Vo(AT,[["render",PT]]),VT={},LT={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},IT=i.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"},null,-1),RT=[IT];function zT(t,e){return i.openBlock(),i.createElementBlock("svg",LT,RT)}const Y1=Vo(VT,[["render",zT]]),FT={},HT={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},qT=i.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"},null,-1),jT=i.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"},null,-1),UT=[qT,jT];function WT(t,e){return i.openBlock(),i.createElementBlock("svg",HT,UT)}const G1=Vo(FT,[["render",WT]]),KT={},YT={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},GT=i.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"},null,-1),JT=[GT];function XT(t,e){return i.openBlock(),i.createElementBlock("svg",YT,JT)}const J1=Vo(KT,[["render",XT]]),QT={},ZT={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},eN=i.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"},null,-1),tN=[eN];function nN(t,e){return i.openBlock(),i.createElementBlock("svg",ZT,tN)}const X1=Vo(QT,[["render",nN]]),Q1=(t,e)=>{const n=ff(t,e.slice(0,t.length),new Date);return ja(n)&&k1(n)?n:null},rN=(t,e)=>{if(typeof e=="string")return Q1(t,e);if(Array.isArray(e)){let n=null;for(const r of e)if(n=Q1(t,r),n)break;return n}return typeof e=="function"?e(t):null},re=t=>t?new Date(t):new Date,oN=(t,e)=>{if(e){const r=(t.getMonth()+1).toString().padStart(2,"0"),o=t.getDate().toString().padStart(2,"0"),a=t.getHours().toString().padStart(2,"0"),s=t.getMinutes().toString().padStart(2,"0");return`${t.getFullYear()}-${r}-${o}T${a}:${s}:00.000Z`}const n=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds());return new Date(n).toISOString()},ar=t=>{let e=re(JSON.parse(JSON.stringify(t)));return e=j1(e,0),e=U1(e,0),e=W1(e,0),e=hf(e,0),e},Mn=(t,e,n,r)=>{let o=t?re(t):re();return(e||e===0)&&(o=j1(o,+e)),(n||n===0)&&(o=U1(o,+n)),(r||r===0)&&(o=W1(o,+r)),hf(o,0)},Vt=(t,e)=>!t||!e?!1:lf(ar(t),ar(e)),at=(t,e)=>!t||!e?!1:B1(ar(t),ar(e)),jt=(t,e)=>!t||!e?!1:sf(ar(t),ar(e)),Z1=(t,e,n)=>t&&t[0]&&t[1]?jt(n,t[0])&&Vt(n,t[1]):t&&t[0]&&e?jt(n,t[0])&&Vt(n,e)||Vt(n,t[0])&&jt(n,e):!1,Ja=i.reactive({menuFocused:!1,shiftKeyInMenu:!1}),eb=()=>{const t=n=>{Ja.menuFocused=n},e=n=>{Ja.shiftKeyInMenu!==n&&(Ja.shiftKeyInMenu=n)};return{control:i.computed(()=>({shiftKeyInMenu:Ja.shiftKeyInMenu,menuFocused:Ja.menuFocused})),setMenuFocused:t,setShiftKey:e}};function mf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _l={},iN={get exports(){return _l},set exports(t){_l=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}t.exports=e.default})(iN,_l);const aN=mf(_l);var Tl={},sN={get exports(){return Tl},set exports(t){Tl=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}t.exports=e.default})(sN,Tl);const tb=mf(Tl);function lN(t,e){var n=fN(e);return n.formatToParts?cN(n,t):dN(n,t)}var uN={year:0,month:1,day:2,hour:3,minute:4,second:5};function cN(t,e){try{for(var n=t.formatToParts(e),r=[],o=0;o<n.length;o++){var a=uN[n[o].type];a>=0&&(r[a]=parseInt(n[o].value,10))}return r}catch(s){if(s instanceof RangeError)return[NaN];throw s}}function dN(t,e){var n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var gf={};function fN(t){if(!gf[t]){var e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=e==="06/25/2014, 00:00:00"||e==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";gf[t]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return gf[t]}function bf(t,e,n,r,o,a,s){var l=new Date(0);return l.setUTCFullYear(t,e,n),l.setUTCHours(r,o,a,s),l}var nb=36e5,pN=6e4,yf={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function wf(t,e,n){var r,o;if(!t||(r=yf.timezoneZ.exec(t),r))return 0;var a;if(r=yf.timezoneHH.exec(t),r)return a=parseInt(r[1],10),rb(a)?-(a*nb):NaN;if(r=yf.timezoneHHMM.exec(t),r){a=parseInt(r[1],10);var s=parseInt(r[2],10);return rb(a,s)?(o=Math.abs(a)*nb+s*pN,a>0?-o:o):NaN}if(gN(t)){e=new Date(e||Date.now());var l=n?e:hN(e),u=vf(l,t),c=n?u:mN(e,u,t);return-c}return NaN}function hN(t){return bf(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function vf(t,e){var n=lN(t,e),r=bf(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=t.getTime(),a=o%1e3;return o-=a>=0?a:1e3+a,r-o}function mN(t,e,n){var r=t.getTime(),o=r-e,a=vf(new Date(o),n);if(e===a)return e;o-=a-e;var s=vf(new Date(o),n);return a===s?a:Math.max(a,s)}function rb(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var ob={};function gN(t){if(ob[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),ob[t]=!0,!0}catch{return!1}}var bN=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const ib=bN;var kf=36e5,ab=6e4,yN=2,Ut={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:ib};function xf(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);var n=e||{},r=n.additionalDigits==null?yN:aN(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var o=wN(t),a=vN(o.date,r),s=a.year,l=a.restDateString,u=kN(l,s);if(isNaN(u))return new Date(NaN);if(u){var c=u.getTime(),d=0,p;if(o.time&&(d=xN(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(p=wf(o.timeZone||n.timeZone,new Date(c+d)),isNaN(p))return new Date(NaN)}else p=tb(new Date(c+d)),p=tb(new Date(c+d+p));return new Date(c+d+p)}else return new Date(NaN)}function wN(t){var e={},n=Ut.dateTimePattern.exec(t),r;if(n?(e.date=n[1],r=n[3]):(n=Ut.datePattern.exec(t),n?(e.date=n[1],r=n[2]):(e.date=null,r=t)),r){var o=Ut.timeZone.exec(r);o?(e.time=r.replace(o[1],""),e.timeZone=o[1].trim()):e.time=r}return e}function vN(t,e){var n=Ut.YYY[e],r=Ut.YYYYY[e],o;if(o=Ut.YYYY.exec(t)||r.exec(t),o){var a=o[1];return{year:parseInt(a,10),restDateString:t.slice(a.length)}}if(o=Ut.YY.exec(t)||n.exec(t),o){var s=o[1];return{year:parseInt(s,10)*100,restDateString:t.slice(s.length)}}return{year:null}}function kN(t,e){if(e===null)return null;var n,r,o,a;if(t.length===0)return r=new Date(0),r.setUTCFullYear(e),r;if(n=Ut.MM.exec(t),n)return r=new Date(0),o=parseInt(n[1],10)-1,ub(e,o)?(r.setUTCFullYear(e,o),r):new Date(NaN);if(n=Ut.DDD.exec(t),n){r=new Date(0);var s=parseInt(n[1],10);return SN(e,s)?(r.setUTCFullYear(e,0,s),r):new Date(NaN)}if(n=Ut.MMDD.exec(t),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return ub(e,o,l)?(r.setUTCFullYear(e,o,l),r):new Date(NaN)}if(n=Ut.Www.exec(t),n)return a=parseInt(n[1],10)-1,cb(e,a)?sb(e,a):new Date(NaN);if(n=Ut.WwwD.exec(t),n){a=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return cb(e,a,u)?sb(e,a,u):new Date(NaN)}return null}function xN(t){var e,n,r;if(e=Ut.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),Ef(n)?n%24*kf:NaN;if(e=Ut.HHMM.exec(t),e)return n=parseInt(e[1],10),r=parseFloat(e[2].replace(",",".")),Ef(n,r)?n%24*kf+r*ab:NaN;if(e=Ut.HHMMSS.exec(t),e){n=parseInt(e[1],10),r=parseInt(e[2],10);var o=parseFloat(e[3].replace(",","."));return Ef(n,r,o)?n%24*kf+r*ab+o*1e3:NaN}return null}function sb(t,e,n){e=e||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var o=r.getUTCDay()||7,a=e*7+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}var EN=[31,28,31,30,31,30,31,31,30,31,30,31],CN=[31,29,31,30,31,30,31,31,30,31,30,31];function lb(t){return t%400===0||t%4===0&&t%100!==0}function ub(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;var r=lb(t);if(r&&n>CN[e]||!r&&n>EN[e])return!1}return!0}function SN(t,e){if(e<1)return!1;var n=lb(t);return!(n&&e>366||!n&&e>365)}function cb(t,e,n){return!(e<0||e>52||n!=null&&(n<0||n>6))}function Ef(t,e,n){return!(t!=null&&(t<0||t>=25)||e!=null&&(e<0||e>=60)||n!=null&&(n<0||n>=60))}var Nl={},_N={get exports(){return Nl},set exports(t){Nl=t}},Ol={},TN={get exports(){return Ol},set exports(t){Ol=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a]);return r}t.exports=e.default})(TN,Ol),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var n=r(Ol);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)({},a)}t.exports=e.default}(_N,Nl);const NN=mf(Nl);function ON(t,e,n){var r=xf(t,n),o=wf(e,r,!0),a=new Date(r.getTime()-o),s=new Date(0);return s.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),s.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),s}function $N(t,e,n){if(typeof t=="string"&&!t.match(ib)){var r=NN(n);return r.timeZone=e,xf(t,r)}var o=xf(t,n),a=bf(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()).getTime(),s=wf(e,new Date(a));return new Date(a+s)}const AN=(t,e=3)=>{const n=[];for(let r=0;r<t.length;r+=e)n.push([t[r],t[r+1],t[r+2]]);return n},MN=(t,e)=>{const n=[1,2,3,4,5,6,7].map(a=>new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${a}T00:00:00+00:00`)).slice(0,2)),r=n.slice(0,e),o=n.slice(e+1,n.length);return[n[e]].concat(...o).concat(...r)},DN=t=>{const e=[];for(let n=+t[0];n<=+t[1];n++)e.push({value:+n,text:`${n}`});return e},BN=(t,e)=>{const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return[1,2,3,4,5,6,7,8,9,10,11,12].map(r=>{const o=r<10?`0${r}`:r;return new Date(`2017-${o}-01T00:00:00+00:00`)}).map((r,o)=>({text:n.format(r),value:o}))},PN=t=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][t],bt=t=>{const e=i.unref(t);return e!=null&&e.$el?e==null?void 0:e.$el:e},VN=t=>Object.assign({type:"dot"},t),db=t=>Array.isArray(t)?!!t[0]&&!!t[1]:!1,$l={prop:t=>`"${t}" prop must be enabled!`,dateArr:t=>`You need to use array as "model-value" binding in order to support "${t}"`},Lt=t=>t,fb=t=>t===0?t:!t||isNaN(+t)?null:+t,pb=t=>Object.assign({menuAppear:"dp-menu-appear",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},t),LN=t=>Object.assign({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:e=>`Increment ${e}`,decrementValue:e=>`Decrement ${e}`,openTpOverlay:e=>`Open ${e} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",day:()=>""},t),IN=t=>t===null?0:typeof t=="boolean"?t?2:0:+t>=2?+t:2,RN=(t,e,n)=>t||(typeof n=="string"?n:e),zN=t=>typeof t=="boolean"?t?pb({}):!1:pb(t),FN=()=>({enterSubmit:!0,tabSubmit:!0,openMenu:!0,rangeSeparator:" - "}),HN=t=>Object.assign({months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},t),pn=t=>{const e=()=>{if(t.partialRange)return null;throw new Error($l.prop("partial-range"))},n=i.computed(()=>({ariaLabels:LN(t.ariaLabels),textInputOptions:Object.assign(FN(),t.textInputOptions),multiCalendars:IN(t.multiCalendars),previewFormat:RN(t.previewFormat,t.format,a()),filters:HN(t.filters),transitions:zN(t.transitions),startTime:f()})),r=w=>{if(t.range)return w();throw new Error($l.prop("range"))},o=()=>{const w=t.enableSeconds?":ss":"";return t.is24?`HH:mm${w}`:`hh:mm${w} aa`},a=()=>t.format?t.format:t.monthPicker?"MM/yyyy":t.timePicker?o():t.weekPicker?"MM/dd/yyyy":t.yearPicker?"yyyy":t.enableTimePicker?`MM/dd/yyyy, ${o()}`:"MM/dd/yyyy",s=(w,A)=>{if(typeof t.format=="function")return t.format(w);const z=A||a(),P=t.formatLocale?{locale:t.formatLocale}:void 0;return Array.isArray(w)?`${Ka(w[0],z,P)} ${t.modelAuto&&!w[1]?"":n.value.textInputOptions.rangeSeparator||"-"} ${w[1]?Ka(w[1],z,P):""}`:Ka(w,z,P)},l=w=>t.timezone?ON(w,t.timezone):w,u=w=>t.timezone?$N(w,t.timezone):w,c=i.computed(()=>w=>{var A;return(A=t.hideNavigation)==null?void 0:A.includes(w)}),d=w=>{const A=t.maxDate?jt(l(w),l(re(t.maxDate))):!1,z=t.minDate?Vt(l(w),l(re(t.minDate))):!1,P=v(w,t.disabledDates),q=n.value.filters.months.map(G=>+G).includes(tt(w)),W=t.disabledWeekDays.length?t.disabledWeekDays.some(G=>+G===J8(w)):!1,ee=t.allowedDates.length?!t.allowedDates.some(G=>at(l(re(G)),l(w))):!1,F=nt(w),R=F<+t.yearRange[0]||F>+t.yearRange[1];return!(A||z||P||q||R||W||ee)},p=w=>{const A={hours:Er(re()),minutes:Cr(re()),seconds:Ai(re())};return Object.assign(A,w)},f=()=>t.range?t.startTime&&Array.isArray(t.startTime)?[p(t.startTime[0]),p(t.startTime[1])]:null:t.startTime&&!Array.isArray(t.startTime)?p(t.startTime):null,h=w=>!d(w),m=w=>Array.isArray(w)?ja(w[0])&&(w[1]?ja(w[1]):!0):w?ja(w):!1,g=w=>w instanceof Date?w:Q5(w),b=w=>{const A=ef(l(w),{weekStartsOn:+t.weekStart}),z=W_(l(w),{weekStartsOn:+t.weekStart});return[A,z]},v=(w,A)=>Array.isArray(A)?A.some(z=>at(l(re(z)),l(w))):A(w),x=(w,A,z)=>{let P=w?re(w):re();return(A||A===0)&&(P=Ga(P,A)),z&&(P=Po(P,z)),P},N=w=>qt(re(),{hours:Er(w),minutes:Cr(w),seconds:Ai(w)}),y=w=>qt(re(),{hours:+w.hours||0,minutes:+w.minutes||0,seconds:+w.seconds||0}),M=(w,A,z,P)=>{if(!w)return!0;if(P){const q=z==="max"?lf(w,A):sf(w,A),W={seconds:0,milliseconds:0};return q||B1(qt(w,W),qt(A,W))}return z==="max"?w.getTime()<=A.getTime():w.getTime()>=A.getTime()},E=()=>!t.enableTimePicker||t.monthPicker||t.yearPicker||t.ignoreTimeValidation,C=w=>Array.isArray(w)?[w[0]?N(w[0]):null,w[1]?N(w[1]):null]:N(w),T=w=>{const A=t.maxTime?y(t.maxTime):re(t.maxDate);return Array.isArray(w)?M(w[0],A,"max",!!t.maxDate)&&M(w[1],A,"max",!!t.maxDate):M(w,A,"max",!!t.maxDate)},B=(w,A)=>{const z=t.minTime?y(t.minTime):re(t.minDate);return Array.isArray(w)?M(w[0],z,"min",!!t.minDate)&&M(w[1],z,"min",!!t.minDate)&&A:M(w,z,"min",!!t.minDate)&&A},L=w=>{let A=!0;if(!w||E())return!0;const z=!t.minDate&&!t.maxDate?C(w):w;return(t.maxTime||t.maxDate)&&(A=T(Lt(z))),(t.minTime||t.minDate)&&(A=B(Lt(z),A)),A},k=(w,A)=>{const z=re(JSON.parse(JSON.stringify(w))),P=[];for(let q=0;q<7;q++){const W=jr(z,q),ee=tt(W)!==A;P.push({text:t.hideOffsetDates&&ee?"":W.getDate(),value:W,current:!ee,classData:{}})}return P},$=(w,A)=>{const z=[],P=re(l(new Date(A,w))),q=re(l(new Date(A,w+1,0))),W=ef(P,{weekStartsOn:t.weekStart}),ee=F=>{const R=k(F,w);if(z.push({days:R}),!z[z.length-1].days.some(G=>at(ar(G.value),ar(q)))){const G=jr(F,7);ee(G)}};if(ee(W),t.sixWeeks&&z.length<6){const F=6-z.length;for(let R=1;R<=F;R++){const G=z[z.length-1],j=G.days[G.days.length-1],K=k(jr(j.value,1),tt(P));z.push({days:K})}}return z},D=(w,A,z)=>[qt(re(w),{date:1}),qt(re(),{month:A,year:z,date:1})],V=(w,A)=>Vt(...D(t.minDate,w,A))||at(...D(t.minDate,w,A)),S=(w,A)=>jt(...D(t.maxDate,w,A))||at(...D(t.maxDate,w,A)),O=(w,A,z)=>{let P=!1;return t.maxDate&&z&&S(w,A)&&(P=!0),t.minDate&&!z&&V(w,A)&&(P=!0),P};return{checkPartialRangeValue:e,checkRangeEnabled:r,getZonedDate:l,getZonedToUtc:u,formatDate:s,getDefaultPattern:a,validateDate:d,getDefaultStartTime:f,isDisabled:h,isValidDate:m,sanitizeDate:g,getWeekFromDate:b,matchDate:v,setDateMonthOrYear:x,isValidTime:L,getCalendarDays:$,validateMonthYearInRange:(w,A,z,P)=>{let q=!1;return P?t.minDate&&t.maxDate?q=O(w,A,z):(t.minDate&&V(w,A)||t.maxDate&&S(w,A))&&(q=!0):q=!0,q},validateMaxDate:S,validateMinDate:V,defaults:n,hideNavigationButtons:c}},rt=i.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Cf=i.ref(null),Al=i.ref(!1),Sf=i.ref(!1),_f=i.ref(!1),Tf=i.ref(!1),Wt=i.ref(0),Nt=i.ref(0),Kr=()=>{const t=i.computed(()=>Al.value?[...rt.selectionGrid,rt.actionRow].filter(p=>p.length):Sf.value?[...rt.timePicker[0],...rt.timePicker[1],Tf.value?[]:[Cf.value],rt.actionRow].filter(p=>p.length):_f.value?[...rt.monthPicker,rt.actionRow]:[rt.monthYear,...rt.calendar,rt.time,rt.actionRow].filter(p=>p.length)),e=p=>{Wt.value=p?Wt.value+1:Wt.value-1;let f=null;t.value[Nt.value]&&(f=t.value[Nt.value][Wt.value]),f||(Wt.value=p?Wt.value-1:Wt.value+1)},n=p=>{Nt.value===0&&!p||Nt.value===t.value.length&&p||(Nt.value=p?Nt.value+1:Nt.value-1,t.value[Nt.value]?t.value[Nt.value]&&!t.value[Nt.value][Wt.value]&&Wt.value!==0&&(Wt.value=t.value[Nt.value].length-1):Nt.value=p?Nt.value-1:Nt.value+1)},r=p=>{let f=null;t.value[Nt.value]&&(f=t.value[Nt.value][Wt.value]),f?f.focus({preventScroll:!Al.value}):Wt.value=p?Wt.value-1:Wt.value+1},o=()=>{e(!0),r(!0)},a=()=>{e(!1),r(!1)},s=()=>{n(!1),r(!0)},l=()=>{n(!0),r(!0)},u=(p,f)=>{rt[f]=p},c=(p,f)=>{rt[f]=p},d=()=>{Wt.value=0,Nt.value=0};return{buildMatrix:u,buildMultiLevelMatrix:c,setTimePickerBackRef:p=>{Cf.value=p},setSelectionGrid:p=>{Al.value=p,d(),p||(rt.selectionGrid=[])},setTimePicker:(p,f=!1)=>{Sf.value=p,Tf.value=f,d(),p||(rt.timePicker[0]=[],rt.timePicker[1]=[])},setTimePickerElements:(p,f=0)=>{rt.timePicker[f]=p},arrowRight:o,arrowLeft:a,arrowUp:s,arrowDown:l,clearArrowNav:()=>{rt.monthYear=[],rt.calendar=[],rt.time=[],rt.actionRow=[],rt.selectionGrid=[],rt.timePicker[0]=[],rt.timePicker[1]=[],Al.value=!1,Sf.value=!1,Tf.value=!1,_f.value=!1,d(),Cf.value=null},setMonthPicker:p=>{_f.value=p,d()},refSets:rt}},hb=t=>Array.isArray(t),Lo=t=>Array.isArray(t),mb=t=>Array.isArray(t)&&t.length===2,qN=(t,e,n,r,o)=>{const{getDefaultStartTime:a,isDisabled:s,sanitizeDate:l,getWeekFromDate:u,setDateMonthOrYear:c,validateMonthYearInRange:d,defaults:p}=pn(t),f=i.computed({get:()=>t.internalModelValue,set:U=>{!t.readonly&&!t.disabled&&e("update:internal-model-value",U)}}),h=i.ref([]);i.watch(f,()=>{t.multiCalendars||M()});const m=i.ref([{month:tt(re()),year:nt(re())}]),g=i.reactive({hours:t.range?[Er(re()),Er(re())]:Er(re()),minutes:t.range?[Cr(re()),Cr(re())]:Cr(re()),seconds:t.range?[0,0]:0}),b=i.computed(()=>U=>m.value[U]?m.value[U].month:0),v=i.computed(()=>U=>m.value[U]?m.value[U].year:0),x=i.computed(()=>t.flow&&t.flow.length?o.value===t.flow.length:!0),N=(U,ne,we)=>{var Ce,Ge;m.value[U]||(m.value[U]={month:0,year:0}),m.value[U].month=ne===null?(Ce=m.value[U])==null?void 0:Ce.month:ne,m.value[U].year=we===null?(Ge=m.value[U])==null?void 0:Ge.year:we},y=(U,ne)=>{g[U]=ne};i.onMounted(()=>{f.value||(t.startDate&&(N(0,tt(re(t.startDate)),nt(re(t.startDate))),p.value.multiCalendars&&Ne(0)),p.value.startTime&&S()),M(!0)});const M=(U=!1)=>{if(f.value)return Array.isArray(f.value)?(h.value=f.value,L(U)):C(f.value);if(t.timePicker)return k();if(t.monthPicker&&!t.range)return $();if(t.yearPicker&&!t.range)return D();if(p.value.multiCalendars&&U&&!t.startDate)return E(re(),U)},E=(U,ne=!1)=>{if((!p.value.multiCalendars||!t.multiStatic||ne)&&N(0,tt(U),nt(U)),p.value.multiCalendars)for(let we=1;we<p.value.multiCalendars;we++){const Ce=qt(re(),{month:b.value(we-1),year:v.value(we-1)}),Ge=y1(Ce,{months:1});m.value[we]={month:tt(Ge),year:nt(Ge)}}},C=U=>{E(U),y("hours",Er(U)),y("minutes",Cr(U)),y("seconds",Ai(U))},T=(U,ne)=>{E(U[0],ne);const we=(Ce,Ge)=>[Ce(U[0]),U[1]?Ce(U[1]):g[Ge][1]];y("hours",we(Er,"hours")),y("minutes",we(Cr,"minutes")),y("seconds",we(Ai,"seconds"))},B=(U,ne)=>{if((t.range||t.weekPicker)&&!t.multiDates)return T(U,ne);if(t.multiDates){const we=U[U.length-1];return C(we)}},L=U=>{const ne=f.value;B(ne,U),p.value.multiCalendars&&t.multiCalendarsSolo&&w()},k=()=>{if(S(),!t.range)f.value=Mn(re(),g.hours,g.minutes,V());else{const U=g.hours,ne=g.minutes;f.value=[Mn(re(),U[0],ne[0],V()),Mn(re(),U[1],ne[1],V(!1))]}},$=()=>{f.value=c(re(),b.value(0),v.value(0))},D=()=>{f.value=re()},V=(U=!0)=>t.enableSeconds?Array.isArray(g.seconds)?U?g.seconds[0]:g.seconds[1]:g.seconds:0,S=()=>{const U=a();if(U){const ne=Array.isArray(U),we=ne?[+U[0].hours,+U[1].hours]:+U.hours,Ce=ne?[+U[0].minutes,+U[1].minutes]:+U.minutes,Ge=ne?[+U[0].seconds,+U[1].seconds]:+U.seconds;y("hours",we),y("minutes",Ce),t.enableSeconds&&y("seconds",Ge)}},O=()=>Array.isArray(f.value)&&f.value.length?f.value[f.value.length-1]:null,w=()=>{if(Array.isArray(f.value)&&f.value.length===2){const U=re(re(f.value[1]?f.value[1]:rr(f.value[0],1))),[ne,we]=[tt(f.value[0]),nt(f.value[0])],[Ce,Ge]=[tt(f.value[1]),nt(f.value[1])];(ne!==Ce||ne===Ce&&we!==Ge)&&t.multiCalendarsSolo&&N(1,tt(U),nt(U))}},A=U=>{const ne=rr(U,1);return{month:tt(ne),year:nt(ne)}},z=U=>{const ne=tt(re(U)),we=nt(re(U));if(N(0,ne,we),p.value.multiCalendars>0)for(let Ce=1;Ce<p.value.multiCalendars;Ce++){const Ge=A(qt(re(U),{year:b.value(Ce-1),month:v.value(Ce-1)}));N(Ce,Ge.month,Ge.year)}},P=U=>{if(f.value&&Array.isArray(f.value))if(f.value.some(ne=>at(U,ne))){const ne=f.value.filter(we=>!at(we,U));f.value=ne.length?ne:null}else(t.multiDatesLimit&&+t.multiDatesLimit>f.value.length||!t.multiDatesLimit)&&f.value.push(U);else f.value=[U]},q=(U,ne)=>{const we=jt(U,ne)?ne:U,Ce=jt(ne,U)?ne:U;return x1({start:we,end:Ce})},W=U=>{if(Array.isArray(f.value)&&f.value[0]){const ne=j_(U,f.value[0]),we=q(f.value[0],U),Ce=we.length===1?0:we.filter(I=>s(I)).length,Ge=Math.abs(ne)-Ce;if(t.minRange&&t.maxRange)return Ge>=+t.minRange&&Ge<=+t.maxRange;if(t.minRange)return Ge>=+t.minRange;if(t.maxRange)return Ge<=+t.maxRange}return!0},ee=U=>Array.isArray(f.value)&&f.value.length===2?t.fixedStart&&(jt(U,f.value[0])||at(U,f.value[0]))?[f.value[0],U]:t.fixedEnd&&(Vt(U,f.value[1])||at(U,f.value[1]))?[U,f.value[1]]:(e("invalid-fixed-range",U),f.value):[],F=()=>{t.autoApply&&x.value&&e("auto-apply")},R=()=>{t.autoApply&&e("select-date")},G=U=>!x1({start:U[0],end:U[1]}).some(ne=>s(ne)),j=U=>(f.value=u(re(U.value)),F()),K=U=>{const ne=Mn(re(U.value),g.hours,g.minutes,V());t.multiDates?P(ne):f.value=ne,n(),F()},Y=()=>{h.value=f.value?f.value.slice():[],h.value.length===2&&!(t.fixedStart||t.fixedEnd)&&(h.value=[])},X=(U,ne)=>{const we=[re(U.value),jr(re(U.value),+t.autoRange)];G(we)&&(ne&&z(U.value),h.value=we)},ue=U=>{ie(U.value)||(h.value=ee(re(U.value)))},ie=U=>t.noDisabledRange?q(h.value[0],U).some(ne=>s(ne)):!1,te=(U,ne)=>{if(Y(),t.autoRange)return X(U,ne);if(t.fixedStart||t.fixedEnd)return ue(U);h.value[0]?W(re(U.value))&&!ie(U.value)&&(Vt(re(U.value),re(h.value[0]))?h.value.unshift(re(U.value)):h.value[1]=re(U.value)):h.value[0]=re(U.value)},se=U=>{h.value[U]=Mn(h.value[U],g.hours[U],g.minutes[U],V(U!==1))},ce=()=>{h.value.length&&(h.value[0]&&!h.value[1]?se(0):(se(0),se(1),n()),f.value=h.value.slice(),h.value[0]&&h.value[1]&&t.autoApply&&e("auto-apply"),h.value[0]&&!h.value[1]&&t.modelAuto&&t.autoApply&&e("auto-apply"))},je=(U,ne=!1)=>{if(!(s(U.value)||!U.current&&t.hideOffsetDates)){if(t.weekPicker)return j(U);if(!t.range)return K(U);Lo(g.hours)&&Lo(g.minutes)&&!t.multiDates&&(te(U,ne),ce())}},Z=U=>{const ne=U.find(we=>we.current);return ne?Z8(ne.value):""},Ne=U=>{for(let ne=U-1;ne>=0;ne--){const we=Mi(qt(re(),{month:b.value(ne+1),year:v.value(ne+1)}),1);N(ne,tt(we),nt(we))}for(let ne=U+1;ne<=p.value.multiCalendars-1;ne++){const we=rr(qt(re(),{month:b.value(ne-1),year:v.value(ne-1)}),1);N(ne,tt(we),nt(we))}},$e=U=>c(re(),b.value(U),v.value(U)),Be=U=>Mn(U,g.hours,g.minutes,V()),ze=(U,ne)=>{const we=t.monthPicker?b.value(U)!==ne.month||!ne.fromNav:v.value(U)!==ne.year;if(N(U,ne.month,ne.year),p.value.multiCalendars&&!t.multiCalendarsSolo&&Ne(U),t.monthPicker||t.yearPicker)if(t.range){if(we){let Ce=f.value?f.value.slice():[];Ce.length===2&&Ce[1]!==null&&(Ce=[]),Ce.length?Vt($e(U),Ce[0])?Ce.unshift($e(U)):Ce[1]=$e(U):Ce=[$e(U)],f.value=Ce}}else f.value=$e(U);e("update-month-year",{instance:U,month:ne.month,year:ne.year}),r(t.multiCalendarsSolo?U:void 0)},gt=async(U=!1)=>{if(t.autoApply&&(t.monthPicker||t.yearPicker)){await i.nextTick();const ne=t.monthPicker?U:!1;t.range?e("auto-apply",ne||!f.value||f.value.length===1):e("auto-apply",ne)}n()},it=(U,ne)=>{const we=qt(re(),{month:b.value(ne),year:v.value(ne)}),Ce=U<0?rr(we,1):Mi(we,1);d(tt(Ce),nt(Ce),U<0,t.preventMinMaxNavigation)&&(N(ne,tt(Ce),nt(Ce)),p.value.multiCalendars&&!t.multiCalendarsSolo&&Ne(ne),e("update-month-year",{instance:ne,month:tt(Ce),year:nt(Ce)}),r())},yt=U=>{hb(U)&&hb(f.value)&&Lo(g.hours)&&Lo(g.minutes)?(U[0]&&f.value[0]&&(f.value[0]=Mn(U[0],g.hours[0],g.minutes[0],V())),U[1]&&f.value[1]&&(f.value[1]=Mn(U[1],g.hours[1],g.minutes[1],V(!1)))):t.multiDates&&Array.isArray(f.value)?f.value[f.value.length-1]=Be(U):!t.range&&!mb(U)&&(f.value=Be(U)),e("time-update")},St=(U,ne=!0,we=!1)=>{const Ce=ne?U:g.hours,Ge=!ne&&!we?U:g.minutes,I=we?U:g.seconds;if(t.range&&mb(f.value)&&Lo(Ce)&&Lo(Ge)&&Lo(I)&&!t.disableTimeRangeValidation){const J=Q=>Mn(f.value[Q],Ce[Q],Ge[Q],I[Q]),H=Q=>hf(f.value[Q],0);if(at(f.value[0],f.value[1])&&(sf(J(0),H(1))||lf(J(1),H(0))))return}if(y("hours",Ce),y("minutes",Ge),y("seconds",I),f.value)if(t.multiDates){const J=O();J&&yt(J)}else yt(f.value);else t.timePicker&&yt(t.range?[re(),re()]:re());n()},vn=(U,ne)=>{t.monthChangeOnScroll&&it(t.monthChangeOnScroll!=="inverse"?-U.deltaY:U.deltaY,ne)},kn=(U,ne,we=!1)=>{t.monthChangeOnArrows&&t.vertical===we&&ln(U,ne)},ln=(U,ne)=>{it(U==="right"?-1:1,ne)};return{time:g,month:b,year:v,modelValue:f,calendars:m,monthYearSelect:gt,isDisabled:s,updateTime:St,getWeekNum:Z,selectDate:je,updateMonthYear:ze,handleScroll:vn,getMarker:U=>t.markers.find(ne=>at(l(U.value),l(ne.date))),handleArrow:kn,handleSwipe:ln,selectCurrentDate:()=>{t.range?f.value&&Array.isArray(f.value)&&f.value[0]?f.value=Vt(re(),f.value[0])?[re(),f.value[0]]:[f.value[0],re()]:f.value=[re()]:f.value=re(),R()},presetDateRange:(U,ne)=>{ne||U.length&&U.length<=2&&t.range&&(f.value=U.map(we=>re(we)),R(),t.multiCalendars&&i.nextTick().then(()=>M(!0)))}}},jN=(t,e,n)=>{const r=i.ref(),{getZonedToUtc:o,getZonedDate:a,formatDate:s,getDefaultPattern:l,checkRangeEnabled:u,checkPartialRangeValue:c,isValidDate:d,setDateMonthOrYear:p,defaults:f}=pn(e),h=i.ref(""),m=i.toRef(e,"format");i.watch(r,()=>{t("internal-model-change",r.value)}),i.watch(m,()=>{A()});const g=F=>{const R=F||re();return e.modelType?P(R):{hours:Er(R),minutes:Cr(R),seconds:e.enableSeconds?Ai(R):0}},b=F=>e.modelType?P(F):{month:tt(F),year:nt(F)},v=F=>Array.isArray(F)?u(()=>[Po(re(),F[0]),F[1]?Po(re(),F[1]):c()]):Po(re(),+F),x=(F,R)=>(typeof F=="string"||typeof F=="number")&&e.modelType?z(F):R,N=F=>Array.isArray(F)?[x(F[0],Mn(null,+F[0].hours,+F[0].minutes,F[0].seconds)),x(F[1],Mn(null,+F[1].hours,+F[1].minutes,F[1].seconds))]:x(F,Mn(null,F.hours,F.minutes,F.seconds)),y=F=>Array.isArray(F)?u(()=>[x(F[0],p(null,+F[0].month,+F[0].year)),x(F[1],F[1]?p(null,+F[1].month,+F[1].year):c())]):x(F,p(null,+F.month,+F.year)),M=F=>{if(Array.isArray(F))return F.map(R=>z(R));throw new Error($l.dateArr("multi-dates"))},E=F=>{if(Array.isArray(F))return[re(F[0]),re(F[1])];throw new Error($l.dateArr("week-picker"))},C=F=>e.modelAuto?Array.isArray(F)?[z(F[0]),z(F[1])]:e.autoApply?[z(F)]:[z(F),null]:Array.isArray(F)?u(()=>[z(F[0]),F[1]?z(F[1]):c()]):z(F),T=()=>{Array.isArray(r.value)&&e.range&&r.value.length===1&&r.value.push(c())},B=()=>{const F=r.value;return[P(F[0]),F[1]?P(F[1]):c()]},L=()=>r.value[1]?B():P(Lt(r.value[0])),k=()=>(r.value||[]).map(F=>P(F)),$=()=>(T(),e.modelAuto?L():e.multiDates?k():Array.isArray(r.value)?u(()=>B()):P(Lt(r.value))),D=F=>F?e.timePicker?N(Lt(F)):e.monthPicker?y(Lt(F)):e.yearPicker?v(Lt(F)):e.multiDates?M(Lt(F)):e.weekPicker?E(Lt(F)):C(Lt(F)):null,V=F=>{const R=D(F);d(Lt(R))?(r.value=Lt(R),A()):(r.value=null,h.value="")},S=()=>{var F;const R=G=>{var j;return Ka(G,(j=f.value.textInputOptions)==null?void 0:j.format)};return`${R(r.value[0])} ${(F=f.value.textInputOptions)==null?void 0:F.rangeSeparator} ${r.value[1]?R(r.value[1]):""}`},O=()=>{var F;return n.value&&r.value?Array.isArray(r.value)?S():Ka(r.value,(F=f.value.textInputOptions)==null?void 0:F.format):s(r.value)},w=()=>{var F;return r.value?e.multiDates?r.value.map(R=>s(R)).join("; "):e.textInput&&typeof((F=f.value.textInputOptions)==null?void 0:F.format)=="string"?O():s(r.value):""},A=()=>{!e.format||typeof e.format=="string"?h.value=w():h.value=e.format(r.value)},z=F=>{if(e.utc){const R=new Date(F);return e.utc==="preserve"?new Date(R.getTime()+R.getTimezoneOffset()*6e4):R}return e.modelType?e.modelType==="date"||e.modelType==="timestamp"?a(new Date(F)):e.modelType==="format"&&(typeof e.format=="string"||!e.format)?ff(F,l(),new Date):a(ff(F,e.modelType,new Date)):a(new Date(F))},P=F=>e.utc?oN(F,e.utc==="preserve"):e.modelType?e.modelType==="timestamp"?+o(F):e.modelType==="format"&&(typeof e.format=="string"||!e.format)?s(o(F)):s(o(F),e.modelType):o(F),q=F=>{t("update:model-value",F)},W=F=>Array.isArray(r.value)?[F(r.value[0]),r.value[1]?F(r.value[1]):c()]:F(Lt(r.value)),ee=F=>q(Lt(W(F)));return{inputValue:h,internalModelValue:r,checkBeforeEmit:()=>r.value?e.range?e.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:V,formatInputValue:A,emitModelValue:()=>(A(),e.monthPicker?ee(b):e.timePicker?ee(g):e.yearPicker?ee(nt):e.weekPicker?q(r.value):q($()))}},UN=(t,e)=>{const{validateMonthYearInRange:n,validateMaxDate:r,validateMinDate:o,defaults:a}=pn(t),s=(p,f)=>{let h=p;return a.value.filters.months.includes(tt(h))?(h=f?rr(p,1):Mi(p,1),s(h,f)):h},l=(p,f)=>{let h=p;return a.value.filters.years.includes(nt(h))?(h=f?v1(p,1):mT(p,1),l(h,f)):h},u=p=>{const f=qt(new Date,{month:t.month,year:t.year});let h=p?rr(f,1):Mi(f,1),m=tt(h),g=nt(h);a.value.filters.months.includes(m)&&(h=s(h,p),m=tt(h),g=nt(h)),a.value.filters.years.includes(g)&&(h=l(h,p),g=nt(h)),n(m,g,p,t.preventMinMaxNavigation)&&c(m,g)},c=(p,f)=>{e("update-month-year",{month:p,year:f})},d=i.computed(()=>p=>{if(!t.preventMinMaxNavigation||p&&!t.maxDate||!p&&!t.minDate)return!1;const f=qt(new Date,{month:t.month,year:t.year}),h=p?rr(f,1):Mi(f,1),m=[tt(h),nt(h)];return p?!r(...m):!o(...m)});return{handleMonthYearChange:u,isDisabled:d,updateMonthYear:c}};var Ml=(t=>(t.center="center",t.left="left",t.right="right",t))(Ml||{});const WN=(t,e,n,r)=>{const o=i.ref({top:"0",left:"0",transform:"none"}),a=i.ref(!1),s=i.toRef(r,"teleportCenter");i.watch(s,()=>{b()});const l=C=>{const T=C.getBoundingClientRect();return{left:T.left+window.scrollX,top:T.top+window.scrollY}},u=C=>{const T=C.getBoundingClientRect();let B=0,L=0;for(;C&&!isNaN(C.offsetLeft)&&!isNaN(C.offsetTop);)B+=C.offsetLeft-C.scrollLeft,L=T.top+C.scrollTop,C=C.offsetParent;return{top:L,left:B}},c=(C,T)=>{o.value.left=`${C+T}px`,o.value.transform="translateX(-100%)"},d=C=>{o.value.left=`${C}px`,o.value.transform="translateX(0)"},p=(C,T,B=!1)=>{r.position===Ml.left&&d(C),r.position===Ml.right&&c(C,T),r.position===Ml.center&&(o.value.left=`${C+T/2}px`,o.value.transform=B?"translate(-50%, -50%)":"translateX(-50%)")},f=C=>{const{width:T,height:B}=C.getBoundingClientRect(),{top:L,left:k}=r.altPosition?u(C):l(C);return{top:L,left:k,width:T,height:B}},h=()=>{const C=bt(e);if(C){const{top:T,left:B,width:L,height:k}=f(C);o.value.top=`${T+k/2}px`,o.value.transform="translateY(-50%)",p(B,L,!0)}},m=()=>{o.value.left="50%",o.value.top="50%",o.value.transform="translate(-50%, -50%)",o.value.position="fixed"},g=()=>{const C=bt(e);o.value=r.altPosition(C)},b=(C=!0)=>{if(!r.inline)return s.value?m():r.altPosition&&typeof r.altPosition!="boolean"?g():(C&&n("recalculate-position"),E())},v=({inputEl:C,menuEl:T,left:B,width:L})=>{window.screen.width>768&&p(B,L),y(C,T)},x=(C,T)=>{const{top:B,left:L,height:k,width:$}=f(C);o.value.top=`${k+B+ +r.offset}px`,v({inputEl:C,menuEl:T,left:L,width:$}),a.value=!1},N=(C,T)=>{const{top:B,left:L,width:k}=f(C),{height:$}=T.getBoundingClientRect();o.value.top=`${B-$-+r.offset}px`,v({inputEl:C,menuEl:T,left:L,width:k}),a.value=!0},y=(C,T)=>{if(r.autoPosition){const{left:B,width:L}=f(C),{left:k,right:$}=T.getBoundingClientRect();if(k<0)return d(B);if($>document.documentElement.clientWidth)return c(B,L)}},M=(C,T)=>{const{height:B}=T.getBoundingClientRect(),{top:L,height:k}=C.getBoundingClientRect(),$=window.innerHeight-L-k,D=L;return B<=$?x(C,T):B>$&&B<=D?N(C,T):$>=D?x(C,T):N(C,T)},E=()=>{const C=bt(e),T=bt(t);if(C&&T)return r.autoPosition?M(C,T):x(C,T)};return{openOnTop:a,menuPosition:o,setMenuPosition:b,setInitialPosition:h}},Di=[{name:"clock-icon",use:["time","calendar"]},{name:"arrow-left",use:["month-year","calendar"]},{name:"arrow-right",use:["month-year","calendar"]},{name:"arrow-up",use:["time","calendar"]},{name:"arrow-down",use:["time","calendar"]},{name:"calendar-icon",use:["month-year","time","calendar"]},{name:"day",use:["calendar"]},{name:"month-overlay-value",use:["calendar","month-year"]},{name:"year-overlay-value",use:["calendar","month-year"]},{name:"year-overlay",use:["month-year"]},{name:"month-overlay",use:["month-year"]},{name:"month-overlay-header",use:["month-year"]},{name:"year-overlay-header",use:["month-year"]},{name:"hours-overlay-value",use:["calendar","time"]},{name:"minutes-overlay-value",use:["calendar","time"]},{name:"seconds-overlay-value",use:["calendar","time"]},{name:"hours",use:["calendar","time"]},{name:"minutes",use:["calendar","time"]},{name:"month",use:["calendar","month-year"]},{name:"year",use:["calendar","month-year"]},{name:"action-select",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar"]},{name:"marker-tooltip",use:["calendar"]},{name:"now-button",use:[]},{name:"time-picker-overlay",use:["calendar","time"]},{name:"am-pm-button",use:["calendar","time"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year"]},{name:"time-picker",use:["menu"]},{name:"action-row",use:["action"]}],KN=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],YN={all:()=>Di,monthYear:()=>Di.filter(t=>t.use.includes("month-year")),input:()=>KN,timePicker:()=>Di.filter(t=>t.use.includes("time")),action:()=>Di.filter(t=>t.use.includes("action")),calendar:()=>Di.filter(t=>t.use.includes("calendar")),menu:()=>Di.filter(t=>t.use.includes("menu"))},Io=(t,e,n)=>{const r=[];return YN[e]().forEach(o=>{t[o.name]&&r.push(o.name)}),n&&n.length&&n.forEach(o=>{o.slot&&r.push(o.slot)}),r},Dl=t=>({transitionName:i.computed(()=>e=>t&&typeof t!="boolean"?e?t.open:t.close:""),showTransition:!!t}),Yr={multiCalendars:{type:[Boolean,Number,String],default:null},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},closeOnScroll:{type:Boolean,default:!1},autoPosition:{type:Boolean,default:!0},closeOnAutoApply:{type:Boolean,default:!0},teleport:{type:[String,Object],default:"body"},altPosition:{type:[Boolean,Function],default:!1},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},multiCalendarsSolo:{type:Boolean,default:!1},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},monthYearComponent:{type:Object,default:null},timePickerComponent:{type:Object,default:null},actionRowComponent:{type:Object,default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:()=>[]},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},modeHeight:{type:[Number,String],default:255},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetRanges:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},keepActionRow:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},multiStatic:{type:Boolean,default:!0},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Array,Function],default:null},highlightWeekDays:{type:Array,default:null},highlightDisabledDays:{type:Boolean,default:!1},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:Boolean,default:!1},calendarClassName:{type:String,default:null},noSwipe:{type:Boolean,default:!1},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:Boolean,default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},inlineWithInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:()=>null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:Boolean,default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},onClickOutside:{type:Function,default:null},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:Boolean,default:!1}},GN=["aria-label","aria-disabled","aria-readonly"],JN={key:1,class:"dp__input_wrap"},XN=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","onKeydown"],QN={key:2,class:"dp__input_icon"},ZN={key:4,class:"dp__clear_icon"},eO=i.defineComponent({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Yr},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur"],setup(t,{expose:e,emit:n}){const r=t,{getDefaultPattern:o,isValidDate:a,defaults:s}=pn(r),l=i.ref(),u=i.ref(null),c=i.ref(!1),d=i.computed(()=>({dp__pointer:!r.disabled&&!r.readonly&&!r.textInput,dp__disabled:r.disabled,dp__input_readonly:!r.textInput,dp__input:!0,dp__input_icon_pad:!r.hideInputIcon,dp__input_valid:r.state,dp__input_invalid:r.state===!1,dp__input_focus:c.value||r.isMenuOpen,dp__input_reg:!r.textInput,[r.inputClassName]:!!r.inputClassName})),p=()=>{n("set-input-date",null),r.autoApply&&(n("set-empty-date"),l.value=null)},f=C=>{var T;return rN(C,((T=s.value.textInputOptions)==null?void 0:T.format)||o())},h=C=>{const{rangeSeparator:T}=s.value.textInputOptions,[B,L]=C.split(`${T}`);if(B){const k=f(B.trim()),$=L?f(L.trim()):null,D=k&&$?[k,$]:[k];l.value=k?D:null}},m=C=>{if(r.range)h(C);else if(r.multiDates){const T=C.split(";");l.value=T.map(B=>f(B.trim())).filter(B=>B)}else l.value=f(C)},g=C=>{var T;const{value:B}=C.target;B!==""?((T=s.value.textInputOptions)!=null&&T.openMenu&&!r.isMenuOpen&&n("open"),m(B),n("set-input-date",l.value)):p(),n("update:input-value",B)},b=()=>{var C,T;(C=s.value.textInputOptions)!=null&&C.enterSubmit&&a(l.value)&&r.inputValue!==""?(n("set-input-date",l.value,!0),l.value=null):(T=s.value.textInputOptions)!=null&&T.enterSubmit&&r.inputValue===""&&(l.value=null,n("clear"))},v=()=>{var C,T;(C=s.value.textInputOptions)!=null&&C.tabSubmit&&a(l.value)&&r.inputValue!==""?(n("set-input-date",l.value,!0),l.value=null):(T=s.value.textInputOptions)!=null&&T.tabSubmit&&r.inputValue===""&&(l.value=null,n("clear"))},x=()=>{c.value=!0,n("focus")},N=C=>{var T;C.preventDefault(),C.stopImmediatePropagation(),C.stopPropagation(),r.textInput&&(T=s.value.textInputOptions)!=null&&T.openMenu&&!r.inlineWithInput?r.isMenuOpen?s.value.textInputOptions.enterSubmit&&n("select-date"):n("open"):r.textInput||n("toggle")},y=()=>{c.value=!1,r.isMenuOpen||n("blur"),r.autoApply&&r.textInput&&l.value&&(n("set-input-date",l.value),n("select-date"),l.value=null)},M=()=>{n("clear")},E=C=>{r.textInput||C.preventDefault()};return e({focusInput:()=>{u.value&&u.value.focus({preventScroll:!0})}}),(C,T)=>{var B;return i.openBlock(),i.createElementBlock("div",{onClick:N,"aria-label":(B=i.unref(s).ariaLabels)==null?void 0:B.input,role:"textbox","aria-multiline":"false","aria-disabled":C.disabled,"aria-readonly":C.readonly},[C.$slots.trigger&&!C.$slots["dp-input"]&&!C.inline?i.renderSlot(C.$slots,"trigger",{key:0}):i.createCommentVNode("",!0),!C.$slots.trigger&&(!C.inline||C.inlineWithInput)?(i.openBlock(),i.createElementBlock("div",JN,[C.$slots["dp-input"]&&!C.$slots.trigger&&!C.inline?i.renderSlot(C.$slots,"dp-input",{key:0,value:t.inputValue,onInput:g,onEnter:b,onTab:v,onClear:M}):i.createCommentVNode("",!0),C.$slots["dp-input"]?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("input",{key:1,ref_key:"inputRef",ref:u,id:C.uid?`dp-input-${C.uid}`:void 0,name:C.name,class:i.normalizeClass(i.unref(d)),inputmode:C.textInput?"text":"none",placeholder:C.placeholder,disabled:C.disabled,readonly:C.readonly,required:C.required,value:t.inputValue,autocomplete:C.autocomplete,onInput:g,onKeydown:[i.withKeys(N,["enter"]),i.withKeys(v,["tab"])],onBlur:y,onFocus:x,onKeypress:E},null,42,XN)),C.$slots["input-icon"]&&!C.hideInputIcon?(i.openBlock(),i.createElementBlock("span",QN,[i.renderSlot(C.$slots,"input-icon")])):i.createCommentVNode("",!0),!C.$slots["input-icon"]&&!C.hideInputIcon&&!C.$slots["dp-input"]?(i.openBlock(),i.createBlock(i.unref(Sl),{key:3,class:"dp__input_icon dp__input_icons"})):i.createCommentVNode("",!0),C.$slots["clear-icon"]&&t.inputValue&&C.clearable&&!C.disabled&&!C.readonly?(i.openBlock(),i.createElementBlock("span",ZN,[i.renderSlot(C.$slots,"clear-icon",{clear:M})])):i.createCommentVNode("",!0),C.clearable&&!C.$slots["clear-icon"]&&t.inputValue&&!C.disabled&&!C.readonly?(i.openBlock(),i.createBlock(i.unref($T),{key:5,class:"dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:i.withModifiers(M,["stop","prevent"])},null,8,["onClick"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)],8,GN)}}}),tO={class:"dp__selection_preview"},nO={class:"dp__action_buttons"},rO=["onKeydown"],oO=i.defineComponent({__name:"ActionRow",props:{calendarWidth:{type:Number,default:0},menuMount:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},...Yr},emits:["close-picker","select-date","invalid-select"],setup(t,{emit:e}){const n=t,{formatDate:r,isValidTime:o,defaults:a}=pn(n),{buildMatrix:s}=Kr(),l=i.ref(null),u=i.ref(null);i.onMounted(()=>{n.arrowNavigation&&s([bt(l),bt(u)],"actionRow")});const c=i.computed(()=>n.range&&!n.partialRange&&n.internalModelValue?n.internalModelValue.length===2:!0),d=i.computed(()=>!f.value||!h.value||!c.value),p=i.computed(()=>({dp__action:!0,dp__select:!0,dp__action_disabled:d.value})),f=i.computed(()=>!n.enableTimePicker||n.ignoreTimeValidation?!0:o(n.internalModelValue)),h=i.computed(()=>n.monthPicker?v(n.internalModelValue):!0),m=()=>{const N=a.value.previewFormat;return n.timePicker||n.monthPicker,N(Lt(n.internalModelValue))},g=()=>{const N=n.internalModelValue;return a.value.multiCalendars>0?`${r(N[0])} - ${r(N[1])}`:[r(N[0]),r(N[1])]},b=i.computed(()=>!n.internalModelValue||!n.menuMount?"":typeof a.value.previewFormat=="string"?Array.isArray(n.internalModelValue)?n.internalModelValue.length===2&&n.internalModelValue[1]?g():n.multiDates?n.internalModelValue.map(N=>`${r(N)}`):n.modelAuto?`${r(n.internalModelValue[0])}`:`${r(n.internalModelValue[0])} -`:r(n.internalModelValue):m()),v=N=>{if(!n.monthPicker)return!0;let y=!0;return n.minDate&&n.maxDate?jt(re(N),re(n.minDate))&&Vt(re(N),re(n.maxDate)):(n.minDate&&(y=jt(re(N),re(n.minDate))),n.maxDate&&(y=Vt(re(N),re(n.maxDate))),y)},x=()=>{f.value&&h.value&&c.value?e("select-date"):e("invalid-select")};return(N,y)=>(i.openBlock(),i.createElementBlock("div",{class:"dp__action_row",style:i.normalizeStyle(t.calendarWidth?{width:`${t.calendarWidth}px`}:{})},[N.$slots["action-row"]?i.renderSlot(N.$slots,"action-row",i.normalizeProps(i.mergeProps({key:0},{internalModelValue:t.internalModelValue,disabled:i.unref(d),selectDate:()=>N.$emit("select-date"),closePicker:()=>N.$emit("close-picker")}))):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",tO,[N.$slots["action-preview"]?i.renderSlot(N.$slots,"action-preview",{key:0,value:t.internalModelValue}):i.createCommentVNode("",!0),N.$slots["action-preview"]?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[Array.isArray(i.unref(b))?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(i.unref(b)),1)],64)),Array.isArray(i.unref(b))?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(i.unref(b),(M,E)=>(i.openBlock(),i.createElementBlock("div",{key:E},i.toDisplayString(M),1))),128)):i.createCommentVNode("",!0)],64))]),i.createElementVNode("div",nO,[N.$slots["action-select"]?i.renderSlot(N.$slots,"action-select",{key:0,value:t.internalModelValue}):i.createCommentVNode("",!0),N.$slots["action-select"]?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[N.inline?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:"dp__action dp__cancel",ref_key:"cancelButtonRef",ref:l,tabindex:"0",onClick:y[0]||(y[0]=M=>N.$emit("close-picker")),onKeydown:[y[1]||(y[1]=i.withKeys(M=>N.$emit("close-picker"),["enter"])),y[2]||(y[2]=i.withKeys(M=>N.$emit("close-picker"),["space"]))]},i.toDisplayString(N.cancelText),545)),i.createElementVNode("span",{class:i.normalizeClass(i.unref(p)),tabindex:"0",onKeydown:[i.withKeys(x,["enter"]),i.withKeys(x,["space"])],onClick:x,"data-test":"select-button",ref_key:"selectButtonRef",ref:u},i.toDisplayString(N.selectText),43,rO)],64))])],64))],4))}}),iO=["aria-label"],aO={class:"dp__calendar_header",role:"row"},sO={key:0,class:"dp__calendar_header_item",role:"gridcell"},lO=i.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1),uO=["aria-label"],cO={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},dO={class:"dp__cell_inner"},fO=["aria-selected","aria-disabled","aria-label","data-test","onClick","onKeydown","onMouseenter","onMouseleave"],pO=i.createElementVNode("div",{class:"dp__arrow_bottom_tp"},null,-1),hO=i.defineComponent({__name:"Calendar",props:{mappedDates:{type:Array,default:()=>[]},getWeekNum:{type:Function,default:()=>""},specificMode:{type:Boolean,default:!1},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...Yr},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(t,{expose:e,emit:n}){const r=t,{buildMultiLevelMatrix:o}=Kr(),{setDateMonthOrYear:a,defaults:s}=pn(r),l=i.ref(null),u=i.ref({bottom:"",left:"",transform:""}),c=i.ref([]),d=i.ref(null),p=i.ref(!0),f=i.ref(""),h=i.ref({startX:0,endX:0,startY:0,endY:0}),m=i.computed(()=>r.dayNames?Array.isArray(r.dayNames)?r.dayNames:r.dayNames(r.locale,+r.weekStart):MN(r.locale,+r.weekStart));i.onMounted(()=>{n("mount",{cmp:"calendar",refs:c}),r.noSwipe||d.value&&(d.value.addEventListener("touchstart",B,{passive:!1}),d.value.addEventListener("touchend",L,{passive:!1}),d.value.addEventListener("touchmove",k,{passive:!1})),r.monthChangeOnScroll&&d.value&&d.value.addEventListener("wheel",V,{passive:!1})});const g=S=>S?r.vertical?"vNext":"next":r.vertical?"vPrevious":"previous",b=(S,O)=>{if(r.transitions){const w=ar(a(re(),r.month,r.year));f.value=jt(ar(a(re(),S,O)),w)?s.value.transitions[g(!0)]:s.value.transitions[g(!1)],p.value=!1,i.nextTick(()=>{p.value=!0})}},v=i.computed(()=>({dp__calendar_wrap:!0,[r.calendarClassName]:!!r.calendarClassName})),x=i.computed(()=>S=>{const O=VN(S);return{dp__marker_dot:O.type==="dot",dp__marker_line:O.type==="line"}}),N=i.computed(()=>S=>at(S,l.value)),y=i.computed(()=>({dp__calendar:!0,dp__calendar_next:s.value.multiCalendars>0&&r.instance!==0})),M=i.computed(()=>S=>r.hideOffsetDates?S.current:!0),E=i.computed(()=>r.specificMode?{height:`${r.modeHeight}px`}:void 0),C=(S,O,w)=>{var A,z;if(n("set-hover-date",S),(z=(A=S.marker)==null?void 0:A.tooltip)!=null&&z.length){const P=bt(c.value[O][w]);if(P){const{width:q,height:W}=P.getBoundingClientRect();u.value={bottom:`${W}px`,left:`${q/2}px`,transform:"translateX(-50%)"},l.value=S.value,n("tooltip-open",S.value)}}},T=S=>{l.value&&(l.value=null,n("tooltip-close",S.value))},B=S=>{h.value.startX=S.changedTouches[0].screenX,h.value.startY=S.changedTouches[0].screenY},L=S=>{h.value.endX=S.changedTouches[0].screenX,h.value.endY=S.changedTouches[0].screenY,$()},k=S=>{r.vertical&&!r.inline&&S.preventDefault()},$=()=>{const S=r.vertical?"Y":"X";Math.abs(h.value[`start${S}`]-h.value[`end${S}`])>10&&n("handle-swipe",h.value[`start${S}`]>h.value[`end${S}`]?"right":"left")},D=(S,O,w)=>{S&&(Array.isArray(c.value[O])?c.value[O][w]=S:c.value[O]=[S]),r.arrowNavigation&&o(c.value,"calendar")},V=S=>{r.monthChangeOnScroll&&(S.preventDefault(),n("handle-scroll",S))};return e({triggerTransition:b}),(S,O)=>{var w;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(i.unref(y))},[i.createElementVNode("div",{style:i.normalizeStyle(i.unref(E))},[t.specificMode?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"calendarWrapRef",ref:d,class:i.normalizeClass(i.unref(v)),role:"grid","aria-label":(w=i.unref(s).ariaLabels)==null?void 0:w.calendarWrap},[i.createElementVNode("div",aO,[S.weekNumbers?(i.openBlock(),i.createElementBlock("div",sO,i.toDisplayString(S.weekNumName),1)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(m),(A,z)=>(i.openBlock(),i.createElementBlock("div",{class:"dp__calendar_header_item",role:"gridcell",key:z,"data-test":"calendar-header"},[S.$slots["calendar-header"]?i.renderSlot(S.$slots,"calendar-header",{key:0,day:A,index:z}):i.createCommentVNode("",!0),S.$slots["calendar-header"]?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(A),1)],64))]))),128))]),lO,i.createVNode(i.Transition,{name:f.value,css:!!S.transitions},{default:i.withCtx(()=>{var A;return[p.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"dp__calendar",role:"grid","aria-label":(A=i.unref(s).ariaLabels)==null?void 0:A.calendarDays},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.mappedDates,(z,P)=>(i.openBlock(),i.createElementBlock("div",{class:"dp__calendar_row",role:"row",key:P},[S.weekNumbers?(i.openBlock(),i.createElementBlock("div",cO,[i.createElementVNode("div",dO,i.toDisplayString(t.getWeekNum(z.days)),1)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(z.days,(q,W)=>{var ee,F,R;return i.openBlock(),i.createElementBlock("div",{role:"gridcell",class:"dp__calendar_item",ref_for:!0,ref:G=>D(G,P,W),key:W+P,"aria-selected":q.classData.dp__active_date||q.classData.dp__range_start||q.classData.dp__range_start,"aria-disabled":q.classData.dp__cell_disabled,"aria-label":(F=(ee=i.unref(s).ariaLabels)==null?void 0:ee.day)==null?void 0:F.call(ee,q),tabindex:"0","data-test":q.value,onClick:i.withModifiers(G=>S.$emit("select-date",q),["stop","prevent"]),onKeydown:[i.withKeys(G=>S.$emit("select-date",q),["enter"]),i.withKeys(G=>S.$emit("handle-space",q),["space"])],onMouseenter:G=>C(q,P,W),onMouseleave:G=>T(q)},[i.createElementVNode("div",{class:i.normalizeClass(["dp__cell_inner",q.classData])},[S.$slots.day&&i.unref(M)(q)?i.renderSlot(S.$slots,"day",{key:0,day:+q.text,date:q.value}):i.createCommentVNode("",!0),S.$slots.day?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(q.text),1)],64)),q.marker&&i.unref(M)(q)?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(i.unref(x)(q.marker)),style:i.normalizeStyle(q.marker.color?{backgroundColor:q.marker.color}:{})},null,6)):i.createCommentVNode("",!0),i.unref(N)(q.value)?(i.openBlock(),i.createElementBlock("div",{key:3,class:"dp__marker_tooltip",style:i.normalizeStyle(u.value)},[(R=q.marker)!=null&&R.tooltip?(i.openBlock(),i.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:O[0]||(O[0]=i.withModifiers(()=>{},["stop"]))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.marker.tooltip,(G,j)=>(i.openBlock(),i.createElementBlock("div",{key:j,class:"dp__tooltip_text"},[S.$slots["marker-tooltip"]?i.renderSlot(S.$slots,"marker-tooltip",{key:0,tooltip:G,day:q.value}):i.createCommentVNode("",!0),S.$slots["marker-tooltip"]?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",{class:"dp__tooltip_mark",style:i.normalizeStyle(G.color?{backgroundColor:G.color}:{})},null,4),i.createElementVNode("div",null,i.toDisplayString(G.text),1)],64))]))),128)),pO])):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0)],2)],40,fO)}),128))]))),128))],8,uO)):i.createCommentVNode("",!0)]}),_:3},8,["name","css"])],10,iO))],4)],2)}}}),mO=["aria-label","aria-disabled"],Nf=i.defineComponent({__name:"ActionIcon",props:{ariaLabel:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["activate","set-ref"],setup(t,{emit:e}){const n=i.ref(null);return i.onMounted(()=>e("set-ref",n)),(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:"dp__month_year_col_nav",onClick:o[0]||(o[0]=a=>r.$emit("activate")),onKeydown:[o[1]||(o[1]=i.withKeys(a=>r.$emit("activate"),["enter"])),o[2]||(o[2]=i.withKeys(a=>r.$emit("activate"),["space"]))],tabindex:"0",role:"button","aria-label":t.ariaLabel,"aria-disabled":t.disabled,ref_key:"elRef",ref:n},[i.createElementVNode("div",{class:i.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:t.disabled}])},[i.renderSlot(r.$slots,"default")],2)],40,mO))}}),gO=["onKeydown"],bO={class:"dp__selection_grid_header"},yO=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],wO=["aria-label","onKeydown"],Xa=i.defineComponent({__name:"SelectionGrid",props:{items:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:null},multiModelValue:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:[Number,String],default:null},maxValue:{type:[Number,String],default:null},year:{type:Number,default:0},skipActive:{type:Boolean,default:!1},headerRefs:{type:Array,default:()=>[]},skipButtonRef:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},yearPicker:{type:Boolean,default:!1},escClose:{type:Boolean,default:!0},type:{type:String,default:null},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]}},emits:["update:model-value","selected","toggle","reset-flow"],setup(t,{expose:e,emit:n}){const r=t,{setSelectionGrid:o,buildMultiLevelMatrix:a,setMonthPicker:s}=Kr(),{hideNavigationButtons:l}=pn(r),u=i.ref(!1),c=i.ref(null),d=i.ref(null),p=i.ref([]),f=i.ref(),h=i.ref(null),m=i.ref(0),g=i.ref(null);i.onBeforeUpdate(()=>{c.value=null}),i.onMounted(()=>{i.nextTick().then(()=>B()),v(),b(!0)}),i.onUnmounted(()=>b(!1));const b=O=>{var w;r.arrowNavigation&&((w=r.headerRefs)!=null&&w.length?s(O):o(O))},v=()=>{const O=bt(d);O&&(r.textInput||O.focus({preventScroll:!0}),u.value=O.clientHeight<O.scrollHeight)},x=i.computed(()=>({dp__overlay:!0})),N=i.computed(()=>({dp__overlay_col:!0})),y=O=>r.skipActive?!1:O.value===r.modelValue,M=i.computed(()=>r.items.map(O=>O.filter(w=>w).map(w=>{var A,z,P;const q=r.disabledValues.some(ee=>ee===w.value)||T(w.value),W=(A=r.multiModelValue)!=null&&A.length?(z=r.multiModelValue)==null?void 0:z.some(ee=>at(ee,Po(r.monthPicker?Ga(new Date,w.value):new Date,r.monthPicker?r.year:w.value))):y(w);return{...w,className:{dp__overlay_cell_active:W,dp__overlay_cell:!W,dp__overlay_cell_disabled:q,dp__overlay_cell_active_disabled:q&&W,dp__overlay_cell_pad:!0,dp__cell_in_between:(P=r.multiModelValue)!=null&&P.length?k(w.value):!1}}}))),E=i.computed(()=>({dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:u.value,dp__button_bottom:r.autoApply})),C=i.computed(()=>{var O,w;return{dp__overlay_container:!0,dp__container_flex:((O=r.items)==null?void 0:O.length)<=6,dp__container_block:((w=r.items)==null?void 0:w.length)>6}}),T=O=>{const w=r.maxValue||r.maxValue===0,A=r.minValue||r.minValue===0;return!w&&!A?!1:w&&A?+O>+r.maxValue||+O<+r.minValue:w?+O>+r.maxValue:A?+O<+r.minValue:!1},B=()=>{const O=bt(c),w=bt(d),A=bt(h),z=bt(g),P=A?A.getBoundingClientRect().height:0;w&&(m.value=w.getBoundingClientRect().height-P),O&&z&&(z.scrollTop=O.offsetTop-z.offsetTop-(m.value/2-O.getBoundingClientRect().height)-P)},L=O=>{!r.disabledValues.some(w=>w===O)&&!T(O)&&(n("update:model-value",O),n("selected"))},k=O=>{const w=r.monthPicker?r.year:O;return Z1(r.multiModelValue,Po(r.monthPicker?Ga(new Date,f.value||0):new Date,r.monthPicker?w:f.value||w),Po(r.monthPicker?Ga(new Date,O):new Date,w))},$=()=>{n("toggle"),n("reset-flow")},D=()=>{r.escClose&&$()},V=(O,w,A,z)=>{O&&(w.value===+r.modelValue&&!r.disabledValues.includes(w.value)&&(c.value=O),r.arrowNavigation&&(Array.isArray(p.value[A])?p.value[A][z]=O:p.value[A]=[O],S()))},S=()=>{var O,w;const A=(O=r.headerRefs)!=null&&O.length?[r.headerRefs].concat(p.value):p.value.concat([r.skipButtonRef?[]:[h.value]]);a(Lt(A),(w=r.headerRefs)!=null&&w.length?"monthPicker":"selectionGrid")};return e({focusGrid:v}),(O,w)=>{var A;return i.openBlock(),i.createElementBlock("div",{ref_key:"gridWrapRef",ref:d,class:i.normalizeClass(i.unref(x)),role:"dialog",tabindex:"0",onKeydown:i.withKeys(D,["esc"])},[i.createElementVNode("div",{class:i.normalizeClass(i.unref(C)),ref_key:"containerRef",ref:g,role:"grid",style:i.normalizeStyle({height:`${m.value}px`})},[i.createElementVNode("div",bO,[i.renderSlot(O.$slots,"header")]),O.$slots.overlay?i.renderSlot(O.$slots,"overlay",{key:0}):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(i.unref(M),(z,P)=>(i.openBlock(),i.createElementBlock("div",{class:"dp__overlay_row",key:P,role:"row"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(z,(q,W)=>(i.openBlock(),i.createElementBlock("div",{role:"gridcell",class:i.normalizeClass(i.unref(N)),key:q.value,"aria-selected":q.value===t.modelValue&&!t.disabledValues.includes(q.value),"aria-disabled":q.className.dp__overlay_cell_disabled,ref_for:!0,ref:ee=>V(ee,q,P,W),tabindex:"0","data-test":q.text,onClick:ee=>L(q.value),onKeydown:[i.withKeys(ee=>L(q.value),["enter"]),i.withKeys(ee=>L(q.value),["space"])],onMouseover:ee=>f.value=q.value},[i.createElementVNode("div",{class:i.normalizeClass(q.className)},[O.$slots.item?i.renderSlot(O.$slots,"item",{key:0,item:q}):i.createCommentVNode("",!0),O.$slots.item?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(q.text),1)],64))],2)],42,yO))),128))]))),128))],6),O.$slots["button-icon"]?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,role:"button","aria-label":(A=t.ariaLabels)==null?void 0:A.toggleOverlay,class:i.normalizeClass(i.unref(E)),tabindex:"0",ref_key:"toggleButton",ref:h,onClick:$,onKeydown:i.withKeys($,["enter"])},[i.renderSlot(O.$slots,"button-icon")],42,wO)),[[i.vShow,!i.unref(l)(t.type)]]):i.createCommentVNode("",!0)],42,gO)}}}),vO=["aria-label"],gb=i.defineComponent({__name:"RegularPicker",props:{ariaLabel:{type:String,default:""},showSelectionGrid:{type:Boolean,default:!1},modelValue:{type:Number,default:null},items:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:Number,default:null},maxValue:{type:Number,default:null},slotName:{type:String,default:""},overlaySlot:{type:String,default:""},headerRefs:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},type:{type:String,default:null},transitions:{type:[Object,Boolean],default:!1},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]}},emits:["update:model-value","toggle","set-ref"],setup(t,{emit:e}){const n=t,{transitionName:r,showTransition:o}=Dl(n.transitions),a=i.ref(null);return i.onMounted(()=>e("set-ref",a)),(s,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{class:"dp__month_year_select",onClick:l[0]||(l[0]=u=>s.$emit("toggle")),onKeydown:[l[1]||(l[1]=i.withKeys(u=>s.$emit("toggle"),["enter"])),l[2]||(l[2]=i.withKeys(u=>s.$emit("toggle"),["space"]))],role:"button","aria-label":t.ariaLabel,tabindex:"0",ref_key:"elRef",ref:a},[i.renderSlot(s.$slots,"default")],40,vO),i.createVNode(i.Transition,{name:i.unref(r)(t.showSelectionGrid),css:i.unref(o)},{default:i.withCtx(()=>[t.showSelectionGrid?(i.openBlock(),i.createBlock(Xa,i.mergeProps({key:0},{modelValue:t.modelValue,items:t.items,disabledValues:t.disabledValues,minValue:t.minValue,maxValue:t.maxValue,escClose:t.escClose,type:t.type,arrowNavigation:t.arrowNavigation,textInput:t.textInput,autoApply:t.autoApply,ariaLabels:t.ariaLabels,hideNavigation:t.hideNavigation},{"header-refs":[],"onUpdate:modelValue":l[3]||(l[3]=u=>s.$emit("update:model-value",u)),onToggle:l[4]||(l[4]=u=>s.$emit("toggle"))}),i.createSlots({"button-icon":i.withCtx(()=>[s.$slots["calendar-icon"]?i.renderSlot(s.$slots,"calendar-icon",{key:0}):i.createCommentVNode("",!0),s.$slots["calendar-icon"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Sl),{key:1}))]),_:2},[s.$slots[t.slotName]?{name:"item",fn:i.withCtx(({item:u})=>[i.renderSlot(s.$slots,t.slotName,{item:u})]),key:"0"}:void 0,s.$slots[t.overlaySlot]?{name:"overlay",fn:i.withCtx(()=>[i.renderSlot(s.$slots,t.overlaySlot)]),key:"1"}:void 0,s.$slots[`${t.overlaySlot}-header`]?{name:"header",fn:i.withCtx(()=>[i.renderSlot(s.$slots,`${t.overlaySlot}-header`)]),key:"2"}:void 0]),1040)):i.createCommentVNode("",!0)]),_:3},8,["name","css"])],64))}}),kO={class:"dp__month_year_row"},xO={class:"dp__month_year_wrap"},EO={class:"dp__month_picker_header"},CO=["aria-label"],SO=["aria-label"],_O=["aria-label"],TO=i.defineComponent({__name:"MonthYearPicker",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},...Yr},emits:["update-month-year","month-year-select","mount","reset-flow","overlay-closed"],setup(t,{expose:e,emit:n}){const r=t,{defaults:o}=pn(r),{transitionName:a,showTransition:s}=Dl(o.value.transitions),{buildMatrix:l}=Kr(),{handleMonthYearChange:u,isDisabled:c,updateMonthYear:d}=UN(r,n),p=i.ref(!1),f=i.ref(!1),h=i.ref([null,null,null,null]),m=i.ref(null),g=i.ref(null),b=i.ref(null);i.onMounted(()=>{n("mount")});const v=R=>({get:()=>r[R],set:G=>{const j=R==="month"?"year":"month";n("update-month-year",{[R]:G,[j]:r[j]}),n("month-year-select",R==="year"),R==="month"?P(!0):q(!0)}}),x=i.computed(v("month")),N=i.computed(v("year")),y=R=>{const G=nt(re(R));return r.year===G},M=i.computed(()=>r.monthPicker?Array.isArray(r.disabledDates)?r.disabledDates.map(R=>re(R)).filter(R=>y(R)).map(R=>tt(R)):[]:[]),E=i.computed(()=>R=>{const G=R==="month";return{showSelectionGrid:(G?p:f).value,items:(G?O:w).value,disabledValues:o.value.filters[G?"months":"years"].concat(M.value),minValue:(G?L:T).value,maxValue:(G?k:B).value,headerRefs:G&&r.monthPicker?[m.value,g.value,b.value]:[],escClose:r.escClose,transitions:o.value.transitions,ariaLabels:o.value.ariaLabels,textInput:r.textInput,autoApply:r.autoApply,arrowNavigation:r.arrowNavigation,hideNavigation:r.hideNavigation}}),C=i.computed(()=>R=>({month:r.month,year:r.year,items:R==="month"?r.months:r.years,instance:r.instance,updateMonthYear:d,toggle:R==="month"?P:q})),T=i.computed(()=>r.minDate?nt(re(r.minDate)):null),B=i.computed(()=>r.maxDate?nt(re(r.maxDate)):null),L=i.computed(()=>{if(r.minDate&&T.value){if(T.value>r.year)return 12;if(T.value===r.year)return tt(re(r.minDate))}return null}),k=i.computed(()=>r.maxDate&&B.value?B.value<r.year?-1:B.value===r.year?tt(re(r.maxDate)):null:null),$=i.computed(()=>r.range&&r.internalModelValue&&(r.monthPicker||r.yearPicker)?r.internalModelValue:[]),D=R=>R.reverse(),V=(R,G=!1)=>{const j=[],K=Y=>G?D(Y):Y;for(let Y=0;Y<R.length;Y+=3){const X=[R[Y],R[Y+1],R[Y+2]];j.push(K(X))}return G?j.reverse():j},S=i.computed(()=>r.months.find(G=>G.value===r.month)||{text:"",value:0}),O=i.computed(()=>V(r.months)),w=i.computed(()=>V(r.years,r.reverseYears)),A=i.computed(()=>o.value.multiCalendars?r.multiCalendarsSolo?!0:r.instance===0:!0),z=i.computed(()=>o.value.multiCalendars?r.multiCalendarsSolo?!0:r.instance===o.value.multiCalendars-1:!0),P=(R=!1)=>{W(R),p.value=!p.value,p.value||n("overlay-closed")},q=(R=!1)=>{W(R),f.value=!f.value,f.value||n("overlay-closed")},W=R=>{R||n("reset-flow")},ee=(R=!1)=>{c.value(R)||n("update-month-year",{year:R?r.year+1:r.year-1,month:r.month,fromNav:!0})},F=(R,G)=>{r.arrowNavigation&&(h.value[G]=bt(R),l(h.value,"monthYear"))};return e({toggleMonthPicker:P,toggleYearPicker:q}),(R,G)=>{var j,K,Y,X,ue;return i.openBlock(),i.createElementBlock("div",kO,[R.$slots["month-year"]?i.renderSlot(R.$slots,"month-year",i.normalizeProps(i.mergeProps({key:0},{month:t.month,year:t.year,months:t.months,years:t.years,updateMonthYear:i.unref(d),handleMonthYearChange:i.unref(u),instance:t.instance}))):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[!R.monthPicker&&!R.yearPicker?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.unref(A)&&!R.vertical?(i.openBlock(),i.createBlock(Nf,{key:0,"aria-label":(j=i.unref(o).ariaLabels)==null?void 0:j.prevMonth,disabled:i.unref(c)(!1),onActivate:G[0]||(G[0]=ie=>i.unref(u)(!1)),onSetRef:G[1]||(G[1]=ie=>F(ie,0))},{default:i.withCtx(()=>[R.$slots["arrow-left"]?i.renderSlot(R.$slots,"arrow-left",{key:0}):i.createCommentVNode("",!0),R.$slots["arrow-left"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(K1),{key:1}))]),_:3},8,["aria-label","disabled"])):i.createCommentVNode("",!0),i.createElementVNode("div",xO,[i.createVNode(gb,i.mergeProps({type:"month","slot-name":"month-overlay-val","overlay-slot":"overlay-month","aria-label":(K=i.unref(o).ariaLabels)==null?void 0:K.openMonthsOverlay,modelValue:i.unref(x),"onUpdate:modelValue":G[2]||(G[2]=ie=>i.isRef(x)?x.value=ie:null)},i.unref(E)("month"),{onToggle:P,onSetRef:G[3]||(G[3]=ie=>F(ie,1))}),i.createSlots({default:i.withCtx(()=>[R.$slots.month?i.renderSlot(R.$slots,"month",i.normalizeProps(i.mergeProps({key:0},i.unref(S)))):i.createCommentVNode("",!0),R.$slots.month?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(i.unref(S).text),1)],64))]),_:2},[R.$slots["calendar-icon"]?{name:"calendar-icon",fn:i.withCtx(()=>[i.renderSlot(R.$slots,"calendar-icon")]),key:"0"}:void 0,R.$slots["month-overlay-value"]?{name:"month-overlay-val",fn:i.withCtx(({item:ie})=>[i.renderSlot(R.$slots,"month-overlay-value",{text:ie.text,value:ie.value})]),key:"1"}:void 0,R.$slots["month-overlay"]?{name:"overlay-month",fn:i.withCtx(()=>[i.renderSlot(R.$slots,"month-overlay",i.normalizeProps(i.guardReactiveProps(i.unref(C)("month"))))]),key:"2"}:void 0,R.$slots["month-overlay-header"]?{name:"overlay-month-header",fn:i.withCtx(()=>[i.renderSlot(R.$slots,"month-overlay-header",{toggle:P})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]),i.createVNode(gb,i.mergeProps({type:"year","slot-name":"year-overlay-val","overlay-slot":"overlay-year","aria-label":(Y=i.unref(o).ariaLabels)==null?void 0:Y.openYearsOverlay,modelValue:i.unref(N),"onUpdate:modelValue":G[4]||(G[4]=ie=>i.isRef(N)?N.value=ie:null)},i.unref(E)("year"),{onToggle:q,onSetRef:G[5]||(G[5]=ie=>F(ie,2))}),i.createSlots({default:i.withCtx(()=>[R.$slots.year?i.renderSlot(R.$slots,"year",{key:0,year:t.year}):i.createCommentVNode("",!0),R.$slots.year?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.year),1)],64))]),_:2},[R.$slots["calendar-icon"]?{name:"calendar-icon",fn:i.withCtx(()=>[i.renderSlot(R.$slots,"calendar-icon")]),key:"0"}:void 0,R.$slots["year-overlay-value"]?{name:"year-overlay-val",fn:i.withCtx(({item:ie})=>[i.renderSlot(R.$slots,"year-overlay-value",{text:ie.text,value:ie.value})]),key:"1"}:void 0,R.$slots["year-overlay"]?{name:"overlay-year",fn:i.withCtx(()=>[i.renderSlot(R.$slots,"year-overlay",i.normalizeProps(i.guardReactiveProps(i.unref(C)("year"))))]),key:"2"}:void 0,R.$slots["year-overlay-header"]?{name:"overlay-year-header",fn:i.withCtx(()=>[i.renderSlot(R.$slots,"year-overlay-header",{toggle:q})]),key:"3"}:void 0]),1040,["aria-label","modelValue"])]),i.unref(A)&&R.vertical?(i.openBlock(),i.createBlock(Nf,{key:1,"aria-label":(X=i.unref(o).ariaLabels)==null?void 0:X.prevMonth,disabled:i.unref(c)(!1),onActivate:G[6]||(G[6]=ie=>i.unref(u)(!1))},{default:i.withCtx(()=>[R.$slots["arrow-up"]?i.renderSlot(R.$slots,"arrow-up",{key:0}):i.createCommentVNode("",!0),R.$slots["arrow-up"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(J1),{key:1}))]),_:3},8,["aria-label","disabled"])):i.createCommentVNode("",!0),i.unref(z)?(i.openBlock(),i.createBlock(Nf,{key:2,ref:"rightIcon",disabled:i.unref(c)(!0),"aria-label":(ue=i.unref(o).ariaLabels)==null?void 0:ue.nextMonth,onActivate:G[7]||(G[7]=ie=>i.unref(u)(!0)),onSetRef:G[8]||(G[8]=ie=>F(ie,3))},{default:i.withCtx(()=>[R.$slots[R.vertical?"arrow-down":"arrow-right"]?i.renderSlot(R.$slots,R.vertical?"arrow-down":"arrow-right",{key:0}):i.createCommentVNode("",!0),R.$slots[R.vertical?"arrow-down":"arrow-right"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(R.vertical?i.unref(X1):i.unref(Y1)),{key:1}))]),_:3},8,["disabled","aria-label"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),R.monthPicker?(i.openBlock(),i.createBlock(Xa,i.mergeProps({key:1},i.unref(E)("month"),{"skip-active":R.range,year:t.year,"multi-model-value":i.unref($),"month-picker":"",modelValue:i.unref(x),"onUpdate:modelValue":G[17]||(G[17]=ie=>i.isRef(x)?x.value=ie:null),onToggle:P,onSelected:G[18]||(G[18]=ie=>R.$emit("overlay-closed"))}),i.createSlots({header:i.withCtx(()=>{var ie,te,se;return[i.createElementVNode("div",EO,[i.createElementVNode("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpPrevIconRef",ref:m,onClick:G[9]||(G[9]=ce=>ee(!1)),onKeydown:G[10]||(G[10]=i.withKeys(ce=>ee(!1),["enter"]))},[i.createElementVNode("div",{class:i.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:i.unref(c)(!1)}]),role:"button","aria-label":(ie=i.unref(o).ariaLabels)==null?void 0:ie.prevMonth},[R.$slots["arrow-left"]?i.renderSlot(R.$slots,"arrow-left",{key:0}):i.createCommentVNode("",!0),R.$slots["arrow-left"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(K1),{key:1}))],10,CO)],544),i.createElementVNode("div",{class:"dp__pointer",role:"button",ref_key:"mpYearButtonRef",ref:g,"aria-label":(te=i.unref(o).ariaLabels)==null?void 0:te.openYearsOverlay,tabindex:"0",onClick:G[11]||(G[11]=()=>q(!1)),onKeydown:G[12]||(G[12]=i.withKeys(()=>q(!1),["enter"]))},[R.$slots.year?i.renderSlot(R.$slots,"year",{key:0,year:t.year}):i.createCommentVNode("",!0),R.$slots.year?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.year),1)],64))],40,SO),i.createElementVNode("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpNextIconRef",ref:b,onClick:G[13]||(G[13]=ce=>ee(!0)),onKeydown:G[14]||(G[14]=i.withKeys(ce=>ee(!0),["enter"]))},[i.createElementVNode("div",{class:i.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:i.unref(c)(!0)}]),role:"button","aria-label":(se=i.unref(o).ariaLabels)==null?void 0:se.nextMonth},[R.$slots["arrow-right"]?i.renderSlot(R.$slots,"arrow-right",{key:0}):i.createCommentVNode("",!0),R.$slots["arrow-right"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Y1),{key:1}))],10,_O)],544)]),i.createVNode(i.Transition,{name:i.unref(a)(f.value),css:i.unref(s)},{default:i.withCtx(()=>[f.value?(i.openBlock(),i.createBlock(Xa,i.mergeProps({key:0},i.unref(E)("year"),{modelValue:i.unref(N),"onUpdate:modelValue":G[15]||(G[15]=ce=>i.isRef(N)?N.value=ce:null),onToggle:q,onSelected:G[16]||(G[16]=ce=>R.$emit("overlay-closed"))}),i.createSlots({"button-icon":i.withCtx(()=>[R.$slots["calendar-icon"]?i.renderSlot(R.$slots,"calendar-icon",{key:0}):i.createCommentVNode("",!0),R.$slots["calendar-icon"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Sl),{key:1}))]),_:2},[R.$slots["year-overlay-value"]?{name:"item",fn:i.withCtx(({item:ce})=>[i.renderSlot(R.$slots,"year-overlay-value",{text:ce.text,value:ce.value})]),key:"0"}:void 0]),1040,["modelValue"])):i.createCommentVNode("",!0)]),_:3},8,["name","css"])]}),_:2},[R.$slots["month-overlay-value"]?{name:"item",fn:i.withCtx(({item:ie})=>[i.renderSlot(R.$slots,"month-overlay-value",{text:ie.text,value:ie.value})]),key:"0"}:void 0]),1040,["skip-active","year","multi-model-value","modelValue"])):i.createCommentVNode("",!0),R.yearPicker?(i.openBlock(),i.createBlock(Xa,i.mergeProps({key:2},i.unref(E)("year"),{modelValue:i.unref(N),"onUpdate:modelValue":G[19]||(G[19]=ie=>i.isRef(N)?N.value=ie:null),"multi-model-value":i.unref($),"skip-active":R.range,"skip-button-ref":"","year-picker":"",onToggle:q,onSelected:G[20]||(G[20]=ie=>R.$emit("overlay-closed"))}),i.createSlots({_:2},[R.$slots["year-overlay-value"]?{name:"item",fn:i.withCtx(({item:ie})=>[i.renderSlot(R.$slots,"year-overlay-value",{text:ie.text,value:ie.value})]),key:"0"}:void 0]),1040,["modelValue","multi-model-value","skip-active"])):i.createCommentVNode("",!0)],64))])}}}),NO={key:0,class:"dp__time_input"},OO=["aria-label","onKeydown","onClick"],$O=["aria-label","data-test","onKeydown","onClick"],AO=["aria-label","onKeydown","onClick"],MO={key:0},DO=["aria-label","onKeydown"],BO=i.defineComponent({__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},...Yr},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed"],setup(t,{expose:e,emit:n}){const r=t,{setTimePickerElements:o,setTimePickerBackRef:a}=Kr(),{defaults:s}=pn(r),{transitionName:l,showTransition:u}=Dl(s.value.transitions),c=i.reactive({hours:!1,minutes:!1,seconds:!1}),d=i.ref("AM"),p=i.ref(null),f=i.ref([]);i.onMounted(()=>{n("mounted")});const h=i.computed(()=>w=>!!(r.maxTime&&r.maxTime[w]&&r.maxTime[w]<r[w]+ +r[`${w}Increment`])),m=i.computed(()=>w=>!!(r.minTime&&r.minTime[w]&&r.minTime[w]>r[w]-+r[`${w}Increment`])),g=(w,A)=>y1(qt(re(),w),A),b=(w,A)=>hT(qt(re(),w),A),v=i.computed(()=>({dp__time_col:!0,dp__time_col_reg:!r.enableSeconds&&r.is24,dp__time_col_reg_with_button:!r.enableSeconds&&!r.is24,dp__time_col_sec:r.enableSeconds&&r.is24,dp__time_col_sec_with_button:r.enableSeconds&&!r.is24})),x=i.computed(()=>{const w=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return r.enableSeconds?w.concat([{type:"",separator:!0},{type:"seconds"}]):w}),N=i.computed(()=>x.value.filter(w=>!w.separator)),y=i.computed(()=>w=>{if(w==="hours"){const A=$(r.hours);return{text:A<10?`0${A}`:`${A}`,value:A}}return{text:r[w]<10?`0${r[w]}`:`${r[w]}`,value:r[w]}}),M=w=>{const A=r.is24?24:12,z=w==="hours"?A:60,P=+r[`${w}GridIncrement`],q=w==="hours"&&!r.is24?P:0,W=[];for(let ee=q;ee<z;ee+=P)W.push({value:ee,text:ee<10?`0${ee}`:`${ee}`});return w==="hours"&&!r.is24&&W.push({value:0,text:"12"}),AN(W)},E=(w,A)=>{const z=r.minTime&&r.minTime[A],P=r.maxTime&&r.maxTime[A];return z&&P?w<z||w>P:z?w<z:P?w>P:!1},C=i.computed(()=>w=>M(w).flat().map(A=>A.value).filter(A=>E(A,w))),T=w=>r[`no${w[0].toUpperCase()+w.slice(1)}Overlay`],B=w=>{T(w)||(c[w]=!c[w],c[w]||n("overlay-closed"))},L=w=>w==="hours"?Er:w==="minutes"?Cr:Ai,k=(w,A=!0)=>{const z=A?g:b;(A?h.value(w):m.value(w))||n(`update:${w}`,L(w)(z({[w]:+r[w]},{[w]:+r[`${w}Increment`]})))},$=w=>r.is24?w:(w>=12?d.value="PM":d.value="AM",PN(w)),D=()=>{d.value==="PM"?(d.value="AM",n("update:hours",r.hours-12)):(d.value="PM",n("update:hours",r.hours+12))},V=w=>{c[w]=!0},S=(w,A,z)=>{if(w&&r.arrowNavigation){Array.isArray(f.value[A])?f.value[A][z]=w:f.value[A]=[w];const P=f.value.reduce((q,W)=>W.map((ee,F)=>[...q[F]||[],W[F]]),[]);a(r.closeTimePickerBtn),p.value&&(P[1]=P[1].concat(p.value)),o(P,r.order)}},O=(w,A)=>w==="hours"&&!r.is24?n(`update:${w}`,d.value==="PM"?A+12:A):n(`update:${w}`,A);return e({openChildCmp:V}),(w,A)=>{var z;return w.disabled?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",NO,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(x),(P,q)=>{var W,ee,F;return i.openBlock(),i.createElementBlock("div",{key:q,class:i.normalizeClass(i.unref(v))},[P.separator?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" : ")],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",{class:i.normalizeClass({dp__inc_dec_button:!0,dp__inc_dec_button_disabled:i.unref(h)(P.type)}),role:"button","data-test":"time-inc-btn","aria-label":(W=i.unref(s).ariaLabels)==null?void 0:W.incrementValue(P.type),tabindex:"0",onKeydown:[i.withKeys(R=>k(P.type),["enter"]),i.withKeys(R=>k(P.type),["space"])],onClick:R=>k(P.type),ref_for:!0,ref:R=>S(R,q,0)},[w.$slots["arrow-up"]?i.renderSlot(w.$slots,"arrow-up",{key:0}):i.createCommentVNode("",!0),w.$slots["arrow-up"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(J1),{key:1}))],42,OO),i.createElementVNode("div",{role:"button","aria-label":(ee=i.unref(s).ariaLabels)==null?void 0:ee.openTpOverlay(P.type),class:i.normalizeClass(T(P.type)?"":"dp__time_display"),tabindex:"0","data-test":`${P.type}-toggle-overlay-btn`,onKeydown:[i.withKeys(R=>B(P.type),["enter"]),i.withKeys(R=>B(P.type),["space"])],onClick:R=>B(P.type),ref_for:!0,ref:R=>S(R,q,1)},[w.$slots[P.type]?i.renderSlot(w.$slots,P.type,{key:0,text:i.unref(y)(P.type).text,value:i.unref(y)(P.type).value}):i.createCommentVNode("",!0),w.$slots[P.type]?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(i.unref(y)(P.type).text),1)],64))],42,$O),i.createElementVNode("div",{class:i.normalizeClass({dp__inc_dec_button:!0,dp__inc_dec_button_disabled:i.unref(m)(P.type)}),role:"button","data-test":"time-dec-btn","aria-label":(F=i.unref(s).ariaLabels)==null?void 0:F.decrementValue(P.type),tabindex:"0",onKeydown:[i.withKeys(R=>k(P.type,!1),["enter"]),i.withKeys(R=>k(P.type,!1),["space"])],onClick:R=>k(P.type,!1),ref_for:!0,ref:R=>S(R,q,2)},[w.$slots["arrow-down"]?i.renderSlot(w.$slots,"arrow-down",{key:0}):i.createCommentVNode("",!0),w.$slots["arrow-down"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(X1),{key:1}))],42,AO)],64))],2)}),128)),w.is24?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",MO,[w.$slots["am-pm-button"]?i.renderSlot(w.$slots,"am-pm-button",{key:0,toggle:D,value:d.value}):i.createCommentVNode("",!0),w.$slots["am-pm-button"]?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:p,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(z=i.unref(s).ariaLabels)==null?void 0:z.amPmButton,tabindex:"0",onClick:D,onKeydown:[i.withKeys(i.withModifiers(D,["prevent"]),["enter"]),i.withKeys(i.withModifiers(D,["prevent"]),["space"])]},i.toDisplayString(d.value),41,DO))])),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(N),(P,q)=>(i.openBlock(),i.createBlock(i.Transition,{key:q,name:i.unref(l)(c[P.type]),css:i.unref(u)},{default:i.withCtx(()=>[c[P.type]?(i.openBlock(),i.createBlock(Xa,{key:0,items:M(P.type),"disabled-values":i.unref(s).filters.times[P.type].concat(i.unref(C)(P.type)),"esc-close":w.escClose,"aria-labels":i.unref(s).ariaLabels,"hide-navigation":w.hideNavigation,"onUpdate:modelValue":W=>O(P.type,W),onSelected:W=>B(P.type),onToggle:W=>B(P.type),onResetFlow:A[0]||(A[0]=W=>w.$emit("reset-flow")),type:P.type},i.createSlots({"button-icon":i.withCtx(()=>[w.$slots["clock-icon"]?i.renderSlot(w.$slots,"clock-icon",{key:0}):i.createCommentVNode("",!0),w.$slots["clock-icon"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(G1),{key:1}))]),_:2},[w.$slots[`${P.type}-overlay-value`]?{name:"item",fn:i.withCtx(({item:W})=>[i.renderSlot(w.$slots,`${P.type}-overlay-value`,{text:W.text,value:W.value})]),key:"0"}:void 0]),1032,["items","disabled-values","esc-close","aria-labels","hide-navigation","onUpdate:modelValue","onSelected","onToggle","type"])):i.createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),PO=["aria-label"],VO={class:"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"},LO={key:1,class:"dp__overlay_row"},IO=["aria-label"],RO=i.defineComponent({__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},internalModelValue:{type:[Date,Array],default:null},...Yr},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-closed"],setup(t,{expose:e,emit:n}){const r=t,{buildMatrix:o,setTimePicker:a}=Kr(),s=i.useSlots(),{hideNavigationButtons:l,defaults:u}=pn(r),{transitionName:c,showTransition:d}=Dl(u.value.transitions),p=i.ref(null),f=i.ref(null),h=i.ref([]),m=i.ref(null);i.onMounted(()=>{n("mount"),!r.timePicker&&r.arrowNavigation?o([bt(p.value)],"time"):a(!0,r.timePicker)});const g=i.computed(()=>r.range&&r.modelAuto?db(r.internalModelValue):!0),b=i.ref(!1),v=k=>({hours:Array.isArray(r.hours)?r.hours[k]:r.hours,minutes:Array.isArray(r.minutes)?r.minutes[k]:r.minutes,seconds:Array.isArray(r.seconds)?r.seconds[k]:r.seconds}),x=i.computed(()=>{const k=[];if(r.range)for(let $=0;$<2;$++)k.push(v($));else k.push(v(0));return k}),N=(k,$=!1,D="")=>{$||n("reset-flow"),b.value=k,r.arrowNavigation&&(a(k),k||n("overlay-closed")),i.nextTick(()=>{D!==""&&h.value[0]&&h.value[0].openChildCmp(D)})},y=i.computed(()=>({dp__button:!0,dp__button_bottom:r.autoApply})),M=Io(s,"timePicker"),E=(k,$,D)=>r.range?$===0?[k,x.value[1][D]]:[x.value[0][D],k]:k,C=k=>{n("update:hours",k)},T=k=>{n("update:minutes",k)},B=k=>{n("update:seconds",k)},L=()=>{m.value&&r.arrowNavigation&&m.value.focus({preventScroll:!0})};return e({toggleTimePicker:N}),(k,$)=>{var D;return i.openBlock(),i.createElementBlock("div",null,[k.timePicker?i.createCommentVNode("",!0):i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(y)),role:"button","aria-label":(D=i.unref(u).ariaLabels)==null?void 0:D.openTimePicker,tabindex:"0","data-test":"open-time-picker-btn",ref_key:"openTimePickerBtn",ref:p,onKeydown:[$[0]||($[0]=i.withKeys(V=>N(!0),["enter"])),$[1]||($[1]=i.withKeys(V=>N(!0),["space"]))],onClick:$[2]||($[2]=V=>N(!0))},[k.$slots["clock-icon"]?i.renderSlot(k.$slots,"clock-icon",{key:0}):i.createCommentVNode("",!0),k.$slots["clock-icon"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(G1),{key:1}))],42,PO)),[[i.vShow,!i.unref(l)("time")]]),i.createVNode(i.Transition,{name:i.unref(c)(b.value),css:i.unref(d)},{default:i.withCtx(()=>{var V;return[b.value||k.timePicker?(i.openBlock(),i.createElementBlock("div",{key:0,class:"dp__overlay",ref_key:"overlayRef",ref:m,tabindex:"0"},[i.createElementVNode("div",VO,[k.$slots["time-picker-overlay"]?i.renderSlot(k.$slots,"time-picker-overlay",{key:0,hours:t.hours,minutes:t.minutes,seconds:t.seconds,setHours:C,setMinutes:T,setSeconds:B}):i.createCommentVNode("",!0),k.$slots["time-picker-overlay"]?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",LO,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(x),(S,O)=>i.withDirectives((i.openBlock(),i.createBlock(BO,i.mergeProps({key:O},{...k.$props,order:O,hours:S.hours,minutes:S.minutes,seconds:S.seconds,closeTimePickerBtn:f.value,disabled:O===0?k.fixedStart:k.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:h,"onUpdate:hours":w=>C(E(w,O,"hours")),"onUpdate:minutes":w=>T(E(w,O,"minutes")),"onUpdate:seconds":w=>B(E(w,O,"seconds")),onMounted:L,onOverlayClosed:L}),i.createSlots({_:2},[i.renderList(i.unref(M),(w,A)=>({name:w,fn:i.withCtx(z=>[i.renderSlot(k.$slots,w,i.normalizeProps(i.guardReactiveProps(z)))])}))]),1040,["onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[i.vShow,O===0?!0:i.unref(g)]])),128))])),k.timePicker?i.createCommentVNode("",!0):i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:2,ref_key:"closeTimePickerBtn",ref:f,class:i.normalizeClass(i.unref(y)),role:"button","aria-label":(V=i.unref(u).ariaLabels)==null?void 0:V.closeTimePicker,tabindex:"0",onKeydown:[$[3]||($[3]=i.withKeys(S=>N(!1),["enter"])),$[4]||($[4]=i.withKeys(S=>N(!1),["space"]))],onClick:$[5]||($[5]=S=>N(!1))},[k.$slots["calendar-icon"]?i.renderSlot(k.$slots,"calendar-icon",{key:0}):i.createCommentVNode("",!0),k.$slots["calendar-icon"]?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Sl),{key:1}))],42,IO)),[[i.vShow,!i.unref(l)("time")]])])],512)):i.createCommentVNode("",!0)]}),_:3},8,["name","css"])])}}}),zO=(t,e)=>{const{isDisabled:n,matchDate:r,getWeekFromDate:o}=pn(e),a=i.ref(null),s=i.ref(re()),l=w=>{!w.current&&e.hideOffsetDates||(a.value=w.value)},u=()=>{a.value=null},c=w=>Array.isArray(t.value)&&e.range&&t.value[0]&&a.value?w?jt(a.value,t.value[0]):Vt(a.value,t.value[0]):!0,d=(w,A)=>{const z=()=>t.value?A?t.value[0]||null:t.value[1]:null,P=t.value&&Array.isArray(t.value)?z():null;return at(re(w.value),P)},p=w=>{const A=Array.isArray(t.value)?t.value[0]:null;return w?!Vt(a.value||null,A):!0},f=(w,A=!0)=>(e.range||e.weekPicker)&&Array.isArray(t.value)?e.hideOffsetDates&&!w.current?!1:at(re(w.value),t.value[A?0:1]):e.range?d(w,A)&&p(A)||at(w.value,Array.isArray(t.value)?t.value[0]:null)&&c(A):!1,h=(w,A,z)=>Array.isArray(t.value)&&t.value[0]&&t.value.length===1?w?!1:z?jt(t.value[0],A.value):Vt(t.value[0],A.value):!1,m=w=>!t.value||e.hideOffsetDates&&!w.current?!1:e.range?e.modelAuto&&Array.isArray(t.value)?at(w.value,t.value[0]?t.value[0]:s.value):!1:e.multiDates&&Array.isArray(t.value)?t.value.some(A=>at(A,w.value)):at(w.value,t.value?t.value:s.value),g=w=>{if(e.autoRange||e.weekPicker){if(a.value){if(e.hideOffsetDates&&!w.current)return!1;const A=jr(a.value,+e.autoRange),z=o(re(a.value));return e.weekPicker?at(z[1],re(w.value)):at(A,re(w.value))}return!1}return!1},b=w=>{if(e.autoRange||e.weekPicker){if(a.value){const A=jr(a.value,+e.autoRange);if(e.hideOffsetDates&&!w.current)return!1;const z=o(re(a.value));return e.weekPicker?jt(w.value,z[0])&&Vt(w.value,z[1]):jt(w.value,a.value)&&Vt(w.value,A)}return!1}return!1},v=w=>{if(e.autoRange||e.weekPicker){if(a.value){if(e.hideOffsetDates&&!w.current)return!1;const A=o(re(a.value));return e.weekPicker?at(A[0],w.value):at(a.value,w.value)}return!1}return!1},x=w=>Z1(t.value,a.value,w.value),N=()=>e.modelAuto&&Array.isArray(e.internalModelValue)?!!e.internalModelValue[0]:!1,y=()=>e.modelAuto?db(e.internalModelValue):!0,M=w=>{if(Array.isArray(t.value)&&t.value.length||e.weekPicker)return!1;const A=e.range?!f(w)&&!f(w,!1):!0;return!n(w.value)&&!m(w)&&!(!w.current&&e.hideOffsetDates)&&A},E=w=>e.range?e.modelAuto?N()&&m(w):!1:m(w),C=w=>e.highlight?r(w.value,e.highlight):!1,T=w=>n(w.value)&&e.highlightDisabledDays===!1,B=w=>e.highlightWeekDays&&e.highlightWeekDays.includes(w.value.getDay()),L=w=>(e.range||e.weekPicker)&&(!(e.multiCalendars>0)||w.current)&&y()&&!(!w.current&&e.hideOffsetDates)&&!m(w)?x(w):!1,k=w=>({dp__cell_offset:!w.current,dp__pointer:!e.disabled&&!(!w.current&&e.hideOffsetDates)&&!n(w.value),dp__cell_disabled:n(w.value),dp__cell_highlight:!T(w)&&(C(w)||B(w))&&!E(w),dp__cell_highlight_active:!T(w)&&(C(w)||B(w))&&E(w),dp__today:!e.noToday&&at(w.value,s.value)&&w.current}),$=w=>({dp__active_date:E(w),dp__date_hover:M(w)}),D=w=>({...V(w),...S(w),dp__range_between_week:L(w)&&e.weekPicker}),V=w=>({dp__range_start:e.multiCalendars>0?w.current&&f(w)&&y():f(w)&&y(),dp__range_end:e.multiCalendars>0?w.current&&f(w,!1)&&y():f(w,!1)&&y(),dp__range_between:L(w)&&!e.weekPicker,dp__date_hover_start:h(M(w),w,!0),dp__date_hover_end:h(M(w),w,!1)}),S=w=>({...V(w),dp__cell_auto_range:b(w),dp__cell_auto_range_start:v(w),dp__cell_auto_range_end:g(w)}),O=w=>e.range?e.autoRange?S(w):e.modelAuto?{...$(w),...V(w)}:V(w):e.weekPicker?D(w):$(w);return{setHoverDate:l,clearHoverDate:u,getDayClassData:w=>({...k(w),...O(w),[e.dayClass?e.dayClass(w.value):""]:!0,[e.calendarCellClassName]:!!e.calendarCellClassName})}},FO=["id","onKeydown"],HO={key:0,class:"dp__sidebar_left"},qO={key:1,class:"dp__preset_ranges"},jO=["onClick"],UO={key:2,class:"dp__sidebar_right"},WO={key:3,class:"dp__now_wrap"},KO=i.defineComponent({__name:"DatepickerMenu",props:{openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},...Yr},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close"],setup(t,{expose:e,emit:n}){const r=t,{setMenuFocused:o,setShiftKey:a,control:s}=eb(),{getCalendarDays:l,defaults:u}=pn(r),c=i.useSlots(),d=i.ref(null),p=i.reactive({timePicker:!!(!r.enableTimePicker||r.timePicker||r.monthPicker),monthYearInput:!!r.timePicker,calendar:!1}),f=i.ref([]),h=i.ref([]),m=i.ref(null),g=i.ref(null),b=i.ref(0),v=i.ref(!1),x=i.ref(0);i.onMounted(()=>{var H;v.value=!0,!((H=r.presetRanges)!=null&&H.length)&&!c["left-sidebar"]&&!c["right-sidebar"]&&Z();const Q=bt(g);if(Q&&!r.textInput&&!r.inline&&(o(!0),T()),Q){const le=Oe=>{!r.monthYearComponent&&!r.timePickerComponent&&!Object.keys(c).length&&Oe.preventDefault(),Oe.stopImmediatePropagation(),Oe.stopPropagation()};Q.addEventListener("pointerdown",le),Q.addEventListener("mousedown",le)}window.addEventListener("resize",Z)}),i.onUnmounted(()=>{window.removeEventListener("resize",Z)});const{arrowRight:N,arrowLeft:y,arrowDown:M,arrowUp:E}=Kr(),C=H=>{H||H===0?h.value[H].triggerTransition(D.value(H),V.value(H)):h.value.forEach((Q,le)=>Q.triggerTransition(D.value(le),V.value(le)))},T=()=>{const H=bt(g);H&&H.focus({preventScroll:!0})},B=()=>{var H;(H=r.flow)!=null&&H.length&&x.value!==-1&&(x.value+=1,n("flow-step",x.value),Ge())},L=()=>{x.value=-1},{calendars:k,modelValue:$,month:D,year:V,time:S,updateTime:O,updateMonthYear:w,selectDate:A,getWeekNum:z,monthYearSelect:P,handleScroll:q,handleArrow:W,handleSwipe:ee,getMarker:F,selectCurrentDate:R,presetDateRange:G}=qN(r,n,B,C,x),{setHoverDate:j,clearHoverDate:K,getDayClassData:Y}=zO($,r);i.watch(k,()=>{r.openOnTop&&setTimeout(()=>{n("recalculate-position")},0)},{deep:!0});const X=Io(c,"calendar"),ue=Io(c,"action"),ie=Io(c,"timePicker"),te=Io(c,"monthYear"),se=i.computed(()=>r.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),ce=i.computed(()=>DN(r.yearRange)),je=i.computed(()=>BN(r.locale,r.monthNameFormat)),Z=()=>{const H=bt(d);H&&(b.value=H.getBoundingClientRect().width)},Ne=i.computed(()=>H=>l(D.value(H),V.value(H))),$e=i.computed(()=>u.value.multiCalendars>0&&r.range?[...Array(u.value.multiCalendars).keys()]:[0]),Be=i.computed(()=>H=>H===1),ze=i.computed(()=>r.monthPicker||r.timePicker||r.yearPicker),gt=i.computed(()=>({dp__flex_display:u.value.multiCalendars>0})),it=i.computed(()=>({dp__instance_calendar:u.value.multiCalendars>0})),yt=i.computed(()=>({dp__menu_disabled:r.disabled,dp__menu_readonly:r.readonly})),St=i.computed(()=>H=>kn(Ne,H)),vn=i.computed(()=>({dp__menu:!0,dp__menu_index:!r.inline,dp__relative:r.inline,[r.menuClassName]:!!r.menuClassName})),kn=(H,Q)=>H.value(Q).map(le=>({...le,days:le.days.map(Oe=>(Oe.marker=F(Oe),Oe.classData=Y(Oe),Oe))})),ln=H=>{H.stopPropagation(),H.stopImmediatePropagation()},U=()=>{r.escClose&&n("close-picker")},ne=(H,Q=!1)=>{A(H,Q),r.spaceConfirm&&n("select-date")},we=H=>{var Q;(Q=r.flow)!=null&&Q.length&&(p[H]=!0,Object.keys(p).filter(le=>!p[le]).length||Ge())},Ce=(H,Q,le,Oe,...Je)=>{if(r.flow[x.value]===H){const be=Oe?Q.value[0]:Q.value;be&&be[le](...Je)}},Ge=()=>{Ce("month",f,"toggleMonthPicker",!0,!0),Ce("year",f,"toggleYearPicker",!0,!0),Ce("calendar",m,"toggleTimePicker",!1,!1,!0),Ce("time",m,"toggleTimePicker",!1,!0,!0);const H=r.flow[x.value];(H==="hours"||H==="minutes"||H==="seconds")&&Ce(H,m,"toggleTimePicker",!1,!0,!0,H)},I=H=>{if(r.arrowNavigation){if(H==="up")return E();if(H==="down")return M();if(H==="left")return y();if(H==="right")return N()}else H==="left"||H==="up"?W("left",0,H==="up"):W("right",0,H==="down")},J=H=>{a(H.shiftKey),!r.disableMonthYearSelect&&H.code==="Tab"&&H.target.classList.contains("dp__menu")&&s.value.shiftKeyInMenu&&(H.preventDefault(),H.stopImmediatePropagation(),n("close-picker"))};return e({updateMonthYear:w}),(H,Q)=>{var le;return i.openBlock(),i.createBlock(i.Transition,{appear:"",name:(le=i.unref(u).transitions)==null?void 0:le.menuAppear,mode:"out-in",css:!!H.transitions},{default:i.withCtx(()=>{var Oe,Je;return[i.createElementVNode("div",{id:H.uid?`dp-menu-${H.uid}`:void 0,tabindex:"0",ref_key:"dpMenuRef",ref:g,role:"dialog",class:i.normalizeClass(i.unref(vn)),onMouseleave:Q[14]||(Q[14]=(...be)=>i.unref(K)&&i.unref(K)(...be)),onClick:ln,onKeydown:[i.withKeys(U,["esc"]),Q[15]||(Q[15]=i.withKeys(i.withModifiers(be=>I("left"),["prevent"]),["left"])),Q[16]||(Q[16]=i.withKeys(i.withModifiers(be=>I("up"),["prevent"]),["up"])),Q[17]||(Q[17]=i.withKeys(i.withModifiers(be=>I("down"),["prevent"]),["down"])),Q[18]||(Q[18]=i.withKeys(i.withModifiers(be=>I("right"),["prevent"]),["right"])),J]},[(H.disabled||H.readonly)&&H.inline?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(yt))},null,2)):i.createCommentVNode("",!0),!H.inline&&!H.teleportCenter?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(se))},null,2)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass({dp__menu_content_wrapper:((Oe=H.presetRanges)==null?void 0:Oe.length)||!!H.$slots["left-sidebar"]||!!H.$slots["right-sidebar"]})},[H.$slots["left-sidebar"]?(i.openBlock(),i.createElementBlock("div",HO,[i.renderSlot(H.$slots,"left-sidebar")])):i.createCommentVNode("",!0),(Je=H.presetRanges)!=null&&Je.length?(i.openBlock(),i.createElementBlock("div",qO,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(H.presetRanges,(be,Vn)=>(i.openBlock(),i.createElementBlock("div",{key:Vn,style:i.normalizeStyle(be.style||{}),class:"dp__preset_range",onClick:Se=>i.unref(G)(be.range,!!be.slot)},[be.slot?i.renderSlot(H.$slots,be.slot,{key:0,presetDateRange:i.unref(G),label:be.label,range:be.range}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(be.label),1)],64))],12,jO))),128))])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"dp__instance_calendar",ref_key:"calendarWrapperRef",ref:d,role:"document"},[i.createElementVNode("div",{class:i.normalizeClass(i.unref(gt))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref($e),(be,Vn)=>(i.openBlock(),i.createElementBlock("div",{key:be,class:i.normalizeClass(i.unref(it))},[!H.disableMonthYearSelect&&!H.timePicker?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(H.monthYearComponent?H.monthYearComponent:TO),i.mergeProps({key:0,ref_for:!0,ref:Se=>{Se&&(f.value[Vn]=Se)},months:i.unref(je),years:i.unref(ce),month:i.unref(D)(be),year:i.unref(V)(be),instance:be,"internal-model-value":t.internalModelValue},H.$props,{onMount:Q[0]||(Q[0]=Se=>we("monthYearInput")),onResetFlow:L,onUpdateMonthYear:Se=>i.unref(w)(be,Se),onMonthYearSelect:i.unref(P),onOverlayClosed:T}),i.createSlots({_:2},[i.renderList(i.unref(te),(Se,Br)=>({name:Se,fn:i.withCtx(xn=>[i.renderSlot(H.$slots,Se,i.normalizeProps(i.guardReactiveProps(xn)))])}))]),1040,["months","years","month","year","instance","internal-model-value","onUpdateMonthYear","onMonthYearSelect"])):i.createCommentVNode("",!0),i.createVNode(hO,i.mergeProps({ref_for:!0,ref:Se=>{Se&&(h.value[Vn]=Se)},"specific-mode":i.unref(ze),"get-week-num":i.unref(z),instance:be,"mapped-dates":i.unref(St)(be),month:i.unref(D)(be),year:i.unref(V)(be)},H.$props,{"flow-step":x.value,"onUpdate:flowStep":Q[1]||(Q[1]=Se=>x.value=Se),onSelectDate:Se=>i.unref(A)(Se,!i.unref(Be)(be)),onHandleSpace:Se=>ne(Se,!i.unref(Be)(be)),onSetHoverDate:Q[2]||(Q[2]=Se=>i.unref(j)(Se)),onHandleScroll:Se=>i.unref(q)(Se,be),onHandleSwipe:Se=>i.unref(ee)(Se,be),onMount:Q[3]||(Q[3]=Se=>we("calendar")),onResetFlow:L,onTooltipOpen:Q[4]||(Q[4]=Se=>H.$emit("tooltip-open",Se)),onTooltipClose:Q[5]||(Q[5]=Se=>H.$emit("tooltip-close",Se))}),i.createSlots({_:2},[i.renderList(i.unref(X),(Se,Br)=>({name:Se,fn:i.withCtx(xn=>[i.renderSlot(H.$slots,Se,i.normalizeProps(i.guardReactiveProps({...xn})))])}))]),1040,["specific-mode","get-week-num","instance","mapped-dates","month","year","flow-step","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])],2))),128))],2),i.createElementVNode("div",null,[H.$slots["time-picker"]?i.renderSlot(H.$slots,"time-picker",i.normalizeProps(i.mergeProps({key:0},{time:i.unref(S),updateTime:i.unref(O)}))):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[H.enableTimePicker&&!H.monthPicker&&!H.weekPicker?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(H.timePickerComponent?H.timePickerComponent:RO),i.mergeProps({key:0,ref_key:"timePickerRef",ref:m,hours:i.unref(S).hours,minutes:i.unref(S).minutes,seconds:i.unref(S).seconds,"internal-model-value":t.internalModelValue},H.$props,{onMount:Q[6]||(Q[6]=be=>we("timePicker")),"onUpdate:hours":Q[7]||(Q[7]=be=>i.unref(O)(be)),"onUpdate:minutes":Q[8]||(Q[8]=be=>i.unref(O)(be,!1)),"onUpdate:seconds":Q[9]||(Q[9]=be=>i.unref(O)(be,!1,!0)),onResetFlow:L,onOverlayClosed:T}),i.createSlots({_:2},[i.renderList(i.unref(ie),(be,Vn)=>({name:be,fn:i.withCtx(Se=>[i.renderSlot(H.$slots,be,i.normalizeProps(i.guardReactiveProps(Se)))])}))]),1040,["hours","minutes","seconds","internal-model-value"])):i.createCommentVNode("",!0)],64))])],512),H.$slots["right-sidebar"]?(i.openBlock(),i.createElementBlock("div",UO,[i.renderSlot(H.$slots,"right-sidebar")])):i.createCommentVNode("",!0),H.showNowButton?(i.openBlock(),i.createElementBlock("div",WO,[H.$slots["now-button"]?i.renderSlot(H.$slots,"now-button",{key:0,selectCurrentDate:i.unref(R)}):i.createCommentVNode("",!0),H.$slots["now-button"]?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",role:"button",class:"dp__now_button",onClick:Q[10]||(Q[10]=(...be)=>i.unref(R)&&i.unref(R)(...be))},i.toDisplayString(H.nowButtonLabel),1))])):i.createCommentVNode("",!0)],2),!H.autoApply||H.keepActionRow?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(H.actionRowComponent?H.actionRowComponent:oO),i.mergeProps({key:2,"menu-mount":v.value,"calendar-width":b.value,"internal-model-value":t.internalModelValue},H.$props,{onClosePicker:Q[11]||(Q[11]=be=>H.$emit("close-picker")),onSelectDate:Q[12]||(Q[12]=be=>H.$emit("select-date")),onInvalidSelect:Q[13]||(Q[13]=be=>H.$emit("invalid-select"))}),i.createSlots({_:2},[i.renderList(i.unref(ue),(be,Vn)=>({name:be,fn:i.withCtx(Se=>[i.renderSlot(H.$slots,be,i.normalizeProps(i.guardReactiveProps({...Se})))])}))]),1040,["menu-mount","calendar-width","internal-model-value"])):i.createCommentVNode("",!0)],42,FO)]}),_:3},8,["name","css"])}}}),YO=typeof window<"u"?window:void 0,Of=()=>{},GO=t=>i.getCurrentScope()?(i.onScopeDispose(t),!0):!1,JO=(t,e,n,r)=>{if(!t)return Of;let o=Of;const a=i.watch(()=>i.unref(t),l=>{o(),l&&(l.addEventListener(e,n,r),o=()=>{l.removeEventListener(e,n,r),o=Of})},{immediate:!0,flush:"post"}),s=()=>{a(),o()};return GO(s),s},XO=(t,e,n,r={})=>{const{window:o=YO,event:a="pointerdown"}=r;return o?JO(o,a,s=>{const l=bt(t),u=bt(e);!l||!u||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(u)||n(s)},{passive:!0}):void 0},QO=i.defineComponent({__name:"VueDatePicker",props:{...Yr},emits:["update:model-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close"],setup(t,{expose:e,emit:n}){const r=t,o=i.useSlots(),a=i.ref(!1),s=i.toRef(r,"modelValue"),l=i.toRef(r,"timezone"),u=i.ref(null),c=i.ref(null),d=i.ref(!1),{setMenuFocused:p,setShiftKey:f}=eb(),{clearArrowNav:h}=Kr(),{validateDate:m,isValidTime:g,defaults:b}=pn(r);i.onMounted(()=>{B(r.modelValue),r.inline||(window.addEventListener("scroll",S),window.addEventListener("resize",O)),r.inline&&(a.value=!0)}),i.onUnmounted(()=>{r.inline||(window.removeEventListener("scroll",S),window.removeEventListener("resize",O))});const v=Io(o,"all",r.presetRanges),x=Io(o,"input");i.watch([s,l],()=>{B(s.value)},{deep:!0});const{openOnTop:N,menuPosition:y,setMenuPosition:M,setInitialPosition:E}=WN(u,c,n,r),{inputValue:C,internalModelValue:T,parseExternalModelValue:B,emitModelValue:L,formatInputValue:k,checkBeforeEmit:$}=jN(n,r,d),D=i.computed(()=>({dp__main:!0,dp__theme_dark:r.dark,dp__theme_light:!r.dark,dp__flex_display:r.inline,dp__flex_display_with_input:r.inlineWithInput})),V=i.computed(()=>r.dark?"dp__theme_dark":"dp__theme_light"),S=()=>{a.value&&(r.closeOnScroll?F():r.autoPosition&&M())},O=()=>{a.value&&M()},w=()=>{!r.disabled&&!r.readonly&&(E(),a.value=!0,i.nextTick().then(()=>{M(),a.value&&n("open")}),a.value||ee(),B(r.modelValue))},A=()=>{C.value="",ee(),n("update:model-value",null),n("cleared"),F()},z=()=>{const te=T.value;return!te||!Array.isArray(te)&&m(te)?!0:Array.isArray(te)?te.length===2&&m(te[0])&&m(te[1])?!0:m(te[0]):!1},P=()=>{$()&&z()?(L(),F()):n("invalid-select",T.value)},q=te=>{L(),r.closeOnAutoApply&&!te&&F()},W=(te=!1)=>{r.autoApply&&g(T.value)&&z()&&(r.range&&Array.isArray(T.value)?(r.partialRange||T.value.length===2)&&q(te):q(te))},ee=()=>{r.textInput||(T.value=null)},F=()=>{r.inline||(a.value&&(a.value=!1,p(!1),f(!1),h(),n("closed"),E(),C.value&&B(s.value)),ee(),c.value&&c.value.focusInput())},R=(te,se)=>{if(!te){T.value=null;return}T.value=te,se&&(P(),n("text-submit"))},G=()=>{r.autoApply&&g(T.value)&&L()},j=()=>a.value?F():w(),K=te=>{T.value=te},Y=i.computed(()=>r.textInput&&b.value.textInputOptions.format),X=()=>{Y.value&&(d.value=!0,k()),n("focus")},ue=()=>{Y.value&&(d.value=!1,k()),n("blur")},ie=te=>{u.value&&u.value.updateMonthYear(0,{month:fb(te.month),year:fb(te.year)})};return XO(u,c,r.onClickOutside?()=>r.onClickOutside(z):F),e({closeMenu:F,selectDate:P,clearValue:A,openMenu:w,onScroll:S,formatInputValue:k,updateInternalModelValue:K,setMonthYear:ie}),(te,se)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(i.unref(D))},[i.createVNode(eO,i.mergeProps({ref_key:"inputRef",ref:c,"is-menu-open":a.value,"input-value":i.unref(C),"onUpdate:inputValue":se[0]||(se[0]=ce=>i.isRef(C)?C.value=ce:null)},te.$props,{onClear:A,onOpen:w,onSetInputDate:R,onSetEmptyDate:i.unref(L),onSelectDate:P,onToggle:j,onClose:F,onFocus:X,onBlur:ue}),i.createSlots({_:2},[i.renderList(i.unref(x),(ce,je)=>({name:ce,fn:i.withCtx(Z=>[i.renderSlot(te.$slots,ce,i.normalizeProps(i.guardReactiveProps(Z)))])}))]),1040,["is-menu-open","input-value","onSetEmptyDate"]),a.value?(i.openBlock(),i.createBlock(i.Teleport,{key:0,to:te.teleport,disabled:te.inline},[a.value?(i.openBlock(),i.createBlock(KO,i.mergeProps({key:0,ref_key:"dpMenuRef",ref:u,class:i.unref(V),style:i.unref(y),"open-on-top":i.unref(N)},te.$props,{"internal-model-value":i.unref(T),"onUpdate:internalModelValue":se[1]||(se[1]=ce=>i.isRef(T)?T.value=ce:null),onClosePicker:F,onSelectDate:P,onAutoApply:W,onTimeUpdate:G,onFlowStep:se[2]||(se[2]=ce=>te.$emit("flow-step",ce)),onUpdateMonthYear:se[3]||(se[3]=ce=>te.$emit("update-month-year",ce)),onInvalidSelect:se[4]||(se[4]=ce=>te.$emit("invalid-select",i.unref(T))),onInvalidFixedRange:se[5]||(se[5]=ce=>te.$emit("invalid-fixed-range",ce)),onRecalculatePosition:i.unref(M),onTooltipOpen:se[6]||(se[6]=ce=>te.$emit("tooltip-open",ce)),onTooltipClose:se[7]||(se[7]=ce=>te.$emit("tooltip-close",ce))}),i.createSlots({_:2},[i.renderList(i.unref(v),(ce,je)=>({name:ce,fn:i.withCtx(Z=>[i.renderSlot(te.$slots,ce,i.normalizeProps(i.guardReactiveProps({...Z})))])}))]),1040,["class","style","open-on-top","internal-model-value","onRecalculatePosition"])):i.createCommentVNode("",!0)],8,["to","disabled"])):i.createCommentVNode("",!0)],2))}}),$f=(()=>{const t=QO;return t.install=e=>{e.component("Vue3DatePicker",t)},t})();Object.entries(Object.freeze(Object.defineProperty({__proto__:null,default:$f},Symbol.toStringTag,{value:"Module"}))).forEach(([t,e])=>{t!=="default"&&($f[t]=e)});const bb=["day","month","year","auto"],ZO={modelValue:{type:[Array,String,Object,Date],required:!1,description:"Valor del componente"},value:{type:[Array,String,Object,Date],required:!1,description:"Valor del componente"},disabled:{type:Boolean,default:!1,description:"Desactiva el componente"},disabledDates:{type:Array,required:!1,default:()=>[],description:"Desactiva las fechas que se pasan como argumento"},readonly:{type:Boolean,default:!1,description:"Desactiva la interacción con el componente"},clearable:{type:Boolean,default:!1,description:"Define si el componente es se puede resetear"},required:{type:Boolean,default:!1,description:"Indica si el campo es requerido"},errors:{type:Array,required:!1,default:()=>[],description:"Errores de validación"},format:{type:String,default:"yyyy-MM-dd",description:"Formato de fecha"},multi:{type:Boolean,default:!1,description:"Si se establece a `true`, aparecerán dos calendarios"},height:{type:Number,default:255,description:"Si usas el modo `time`,`month` o `year`, establece la altura del componente"},label:{type:String,required:!1,default:"",description:"Etiqueta de definición"},placeholder:{type:String,default:"Selecciona una fecha",description:"Texto de ayuda"},inline:{type:Boolean,default:!1,description:"Elimina el input y muestra el calendario en línea"},status:{type:String,default:"",options:["warning","success","danger"],description:"Color de estado del input"},mode:{type:String,default:"auto",options:bb,validator:t=>bb.includes(t),description:"Modo de visualización del calendario"},fieldset:{type:Boolean,default:!1,description:"Aplica el estilo fieldset al input"},size:{type:String,options:["xs","sm","md","lg"],validator:t=>["xs","sm","md","lg"].includes(t),default:"md",description:"Tamaño del input"},time:{type:Boolean,default:!1,description:"Muestra el selector de hora"},presets:{type:[Boolean,Object],default:!0},range:{type:[Boolean,Number,String],default:!1},minRange:{type:Number,default:null,description:"Mínimo de días que se pueden seleccionar"},maxRange:{type:Number,default:null,description:"Máximo de días que se pueden seleccionar"},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},minDate:{type:String,default:null},maxDate:{type:String,default:null}},e$=t=>{const e=["k-datepicker",`k-datepicker-${t.size}`];return t.fieldset&&e.push("k-datepicker-fieldset"),t.errors.length>0?e.push("k-datepicker-danger"):t.status&&e.push(`k-datepicker-${t.status}`),e},t$=i.defineComponent({name:"KDatepicker",components:{Datepicker:$f},autoload:!0,props:ZO,emits:["change","update:modelValue"],setup(t,e){const n=i.ref(),r=i.ref(t.value),o=g=>!!e.slots[g],a=i.computed({get(){return t.modelValue||r.value||""},set(g){l(g)}}),s=i.computed(()=>t.label||o("default")),l=g=>{r.value=g,e.emit("update:modelValue",g),e.emit("change",g)},u=()=>{n.value.selectDate()},c=()=>{r.value="",l("")},d=i.computed(()=>typeof t.range=="boolean"),p=i.computed(()=>typeof t.range=="number"),f=e$(t),h=i.computed(()=>{const g={format:t.format,modelType:"format",modeHeight:t.height,selectText:"Aceptar",cancelText:"Cancelar",clearable:t.clearable,locale:"es-ES",multiCalendars:t.multi,placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,required:t.required,inline:t.inline,fixedStart:t.fixedStart,fixedEnd:t.fixedEnd,minRange:t.range&&t.minRange?t.minRange:void 0,maxRange:t.range&&t.maxRange?t.maxRange:void 0,enableTimePicker:t.time,is24:!0,minDate:t.minDate,maxDate:t.maxDate};return Array.isArray(t.presets)&&t.presets.length===0||t.presets===!0?g.presetRanges=[{label:"Ayer",range:[Le().subtract(1,"days"),Le().subtract(1,"days")]},{label:"Hoy",range:[Le(),Le()]},{label:"Esta semana",range:[Le().startOf("week"),Le()]},{label:"Semana anterior",range:[Le().subtract(1,"week").startOf("week"),Le().subtract(1,"week").endOf("week")]},{label:"Este mes",range:[Le().startOf("month"),Le()]},{label:"Mes anterior",range:[Le().subtract(1,"month").startOf("month"),Le().subtract(1,"month").endOf("month")]},{label:"Este año",range:[Le().startOf("year"),Le()]},{label:"Año anterior",range:[Le().subtract(1,"year").startOf("year"),Le().subtract(1,"year").endOf("year")]}]:t.presets!==!1&&(g.presetRanges=t.presets),d.value?g.range=t.range:p.value?(g.range=!0,g.autoRange=t.range):t.range==="week"&&(g.weekPicker=!0),t.mode==="time"?(g.presetRanges=[],g.timePicker=!0):t.mode==="month"?(g.presetRanges=[],g.monthPicker=!0):t.mode==="year"&&(g.presetRanges=[],g.yearPicker=!0),g}),m=i.computed(()=>(t.errors.length>0?t.errors[0].$message:"").toString());return{dp:n,args:h,onChange:l,selectDate:u,resetDate:c,value:r,wrapperClasses:f,hasSlot:o,hasLabel:s,firstError:m,model:a}}}),XK="",n$={key:0},r$={key:2,class:"font-bold text-danger ml-1"},o$={class:"flex flex-row justify-end"};function i$(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-tooltip"),u=i.resolveComponent("k-date"),c=i.resolveComponent("k-button"),d=i.resolveComponent("Datepicker");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(t.wrapperClasses)},[t.hasLabel?(i.openBlock(),i.createElementBlock("label",n$,[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.label),1)],64)),t.required?(i.openBlock(),i.createElementBlock("span",r$,"*")):i.createCommentVNode("",!0),t.firstError?(i.openBlock(),i.createBlock(l,{key:3,content:t.firstError},{default:i.withCtx(()=>[i.createVNode(s,{icon:"triangle-exclamation",class:"ml-2"})]),_:1},8,["content"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createVNode(d,i.mergeProps(t.args,{ref:"dp",modelValue:t.model,"onUpdate:modelValue":e[0]||(e[0]=p=>t.model=p),"menu-class-name":"k-datepicker-menu","disabled-dates":t.disabledDates}),{"input-icon":i.withCtx(()=>[i.createVNode(s,{icon:"calendar"})]),"clear-icon":i.withCtx(({clear:p})=>[i.createVNode(s,{icon:"times",color:"danger",size:2,class:"mt-1",onClick:p},null,8,["onClick"])]),"clock-icon":i.withCtx(()=>[i.createVNode(s,{icon:"clock"})]),"arrow-left":i.withCtx(()=>[i.createVNode(s,{icon:"arrow-left"})]),"arrow-right":i.withCtx(()=>[i.createVNode(s,{icon:"arrow-right"})]),"arrow-up":i.withCtx(()=>[i.createVNode(s,{icon:"chevron-up"})]),"arrow-down":i.withCtx(()=>[i.createVNode(s,{icon:"chevron-down"})]),"calendar-icon":i.withCtx(()=>[i.createVNode(s,{icon:"calendar"})]),"action-preview":i.withCtx(({value:p})=>[t.hasSlot("action-preview")?i.renderSlot(t.$slots,"action-preview",i.normalizeProps(i.mergeProps({key:0},p))):(i.openBlock(),i.createBlock(u,{key:1,value:p},null,8,["value"]))]),"action-select":i.withCtx(()=>[i.createElementVNode("div",o$,[t.clearable?(i.openBlock(),i.createBlock(c,{key:0,color:"danger",icon:"brush",size:"sm",title:"Resetear",class:"ml-2",onClick:t.resetDate},null,8,["onClick"])):i.createCommentVNode("",!0),i.createVNode(c,{color:"success",icon:"check",size:"sm",title:"Aceptar",class:"ml-2",onClick:t.selectDate},null,8,["onClick"])])]),_:3},16,["modelValue","disabled-dates"])],2)}const a$=de(t$,[["render",i$]]),s$=i.defineComponent({name:"KSwitch",autoload:!0,props:{modelValue:{type:Boolean,default:!1,description:"Valor del switch"},checked:{type:Boolean,default:!1,description:"Valor del switch"},disabled:{type:Boolean,default:!1,description:"Desactiva el switch"},color:{type:String,control:{type:"inline-radio"},options:er,validator:t=>er.includes(t),default:"primary",description:"Color del switch"},size:{type:String,control:{type:"inline-radio"},options:["xs","sm","md","lg","xl"],validator:t=>["xs","sm","md","lg","xl"].includes(t),default:"md",description:"Tamaño del switch"}},emits:["update:modelValue","change"],setup(t,e){const n=s=>!!e.slots[s],r=s=>{e.emit("update:modelValue",s.target.checked),e.emit("change",s.target.checked)},o=i.computed({get(){return t.modelValue||t.checked},set(s){e.emit("update:modelValue",s),e.emit("change",s)}}),a=i.computed(()=>{let s=["v-switch"];return t.color==="white"||t.color==="black"?s.push("dark:after:bg-gray-300 dark:peer-checked:bg-white dark:peer-focus:ring-white after:bg-white peer-checked:bg-black peer-focus:ring-black"):t.color==="gray"?s.push("after:bg-white peer-checked:bg-gray-300 peer-focus:ring-gray-300"):t.color==="primary"?s.push("after:bg-white peer-checked:bg-primary peer-focus:ring-primary"):t.color==="secondary"?s.push("after:bg-white peer-checked:bg-secondary peer-focus:ring-secondary"):t.color==="success"?s.push("after:bg-white peer-checked:bg-success peer-focus:ring-success"):t.color==="warning"?s.push("after:bg-white peer-checked:bg-warning peer-focus:ring-warning"):t.color==="danger"?s.push("after:bg-white peer-checked:bg-danger peer-focus:ring-danger"):t.color==="info"&&s.push("after:bg-white peer-checked:bg-info peer-focus:ring-info"),t.size==="xs"?s.push("w-7 h-4 after:h-3 after:w-3 after:top-[4px] after:left-[2px]"):t.size==="sm"?s.push("w-9 h-5 after:h-4 after:w-4 after:top-[2px] after:left-[2px] "):t.size==="md"?s.push("w-11 h-6 after:h-5 after:w-5 after:top-[2px] after:left-[2px]"):t.size==="lg"?s.push("w-14 h-7 after:h-6 after:w-6 after:top-[2px] after:left-[5px]"):t.size==="xl"&&s.push("w-16 h-8 after:h-7 after:w-7 after:top-0.5 after:left-[5px] "),s});return{hasSlot:n,onChange:r,classes:a,model:o}}}),l$={class:"flex items-center"},u$=["checked","disabled"];function c$(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",l$,[i.createElementVNode("label",{class:i.normalizeClass(["relative inline-flex items-center select-none",{"cursor-pointer":!t.disabled,"cursor-not-allowed":t.disabled}])},[i.createElementVNode("input",{type:"checkbox",value:"",class:"sr-only peer",checked:t.model,disabled:t.disabled,onChange:e[0]||(e[0]=(...s)=>t.onChange&&t.onChange(...s))},null,40,u$),i.createElementVNode("div",{class:i.normalizeClass(["bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:border-gray-300 after:border after:rounded-full after:transition-all dark:border-gray-600",t.classes])},null,2),t.hasSlot("default")?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["ml-3 text-sm font-medium text-gray-900 dark:text-gray-300 whitespace-nowrap",{"opacity-60":t.disabled}])},[i.renderSlot(t.$slots,"default")],2)):i.createCommentVNode("",!0)],2)])}const d$=de(s$,[["render",c$]]),f$=i.defineComponent({name:"KInput",props:{modelValue:{type:[String,Number],required:!1,default:"",description:"Valor del input"},id:{type:String,required:!1,default:"",description:"ID único"},maxlength:{type:Number,required:!1,default:0,description:"Longitud máxima"},placeholder:{type:String,required:!1,default:"",description:"Texto explicativo"},required:{type:Boolean,default:!1,description:"Indica si el campo es requerido"},label:{type:String,required:!1,default:"",description:"Etiqueta de definición"},size:{type:String,default:"md",options:["xs","sm","md","lg"]},errors:{type:Array,required:!1,default:()=>[],description:"Errores de validación"},status:{type:String,default:"",options:["warning","success","danger"],description:"Color de estado del input"},disabled:{type:Boolean,default:!1,description:"Indica si el control está deshabilitado"},width:{type:Number,default:0,description:"Ancho del control"},minHeight:{type:Number,default:0,description:"Altura mínima del control"},autocomplete:{type:String,default:"off",description:"Indica si el input tiene autocompletado"}},emits:["update:modelValue"],setup(t,e){const n=t.maxlength>0?t.maxlength:void 0,r=t.id||_t(),o=p=>!!e.slots[p],a=i.computed({get(){return t.modelValue},set(p){e.emit("update:modelValue",p)}}),s=i.computed(()=>{const p=["k-input-textarea",`k-input-textarea-${t.size}`];return t.errors.length>0?p.push("k-input-textarea-danger"):t.status&&p.push(`k-input-textarea-${t.status}`),p}),l=i.computed(()=>{const p={};return t.width>0&&(p.width=`${t.width}px`),t.minHeight>0&&(p.minHeight=`${t.minHeight}px`),p}),u=i.computed(()=>t.label||o("default")),c=p=>{a.value=p.target.value},d=i.computed(()=>(t.errors.length>0?t.errors[0].$message:"").toString());return{maxLength:n,uuid:r,classes:s,change:c,firstError:d,hasSlot:o,hasLabel:u,model:a,style:l}}}),QK="",p$=["for"],h$={key:2,class:"font-bold text-danger ml-1"},m$=["disabled","maxlength","placeholder","required","autocomplete"];function g$(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-tooltip");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(t.classes)},[t.hasLabel?(i.openBlock(),i.createElementBlock("label",{key:0,for:t.uuid},[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.label),1)],64)),t.required?(i.openBlock(),i.createElementBlock("span",h$,"*")):i.createCommentVNode("",!0),t.firstError?(i.openBlock(),i.createBlock(l,{key:3,hover:"",content:t.firstError},{default:i.withCtx(()=>[i.createVNode(s,{icon:"triangle-exclamation",class:"ml-2"})]),_:1},8,["content"])):i.createCommentVNode("",!0)],8,p$)):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":e[0]||(e[0]=u=>t.model=u),disabled:t.disabled,maxlength:t.maxLength,placeholder:t.placeholder,required:t.required,style:i.normalizeStyle(t.style),autocomplete:t.autocomplete},`
        `,12,m$),[[i.vModelText,t.model]])],2)}const b$=de(f$,[["render",g$]]),y$=i.defineComponent({name:"KCheckbox",props:{modelValue:{type:[String,Number,Boolean,Object,Array,Symbol],default:!1},value:{type:[String,Number,Boolean,Object,Array,Symbol],default:!0},unckeckedValue:{type:[String,Number,Boolean,Object,Array,Symbol],default:!1},label:{type:String,default:""},color:{type:String,control:{type:"inline-radio"},options:er,validator:t=>er.includes(t),default:"primary",description:"Color del botón"},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,e){const n=_t(),r=l=>!!e.slots[l],o=i.computed(()=>{let l=[];return t.color==="white"||t.color==="black"?l.push("text-black focus:ring-black dark:focus:ring-white dark:text-black k-checkbox-inverse"):t.color==="gray"?l.push("text-gray-300 focus:ring-gray-300 dark:focus:ring-gray-300"):t.color==="primary"?l.push("text-primary focus:ring-primary dark:focus:ring-primary"):t.color==="secondary"?l.push("text-secondary focus:ring-secondary dark:focus:ring-secondary"):t.color==="success"?l.push("text-success focus:ring-success dark:focus:ring-success"):t.color==="warning"?l.push("text-warning focus:ring-warning dark:focus:ring-warning"):t.color==="danger"?l.push("text-danger focus:ring-danger dark:focus:ring-danger"):t.color==="info"&&l.push("text-info focus:ring-info dark:focus:ring-info"),l}),a=l=>{s.value=l.target.checked?t.value:t.unckeckedValue},s=i.computed({get(){return t.modelValue},set(l){e.emit("update:modelValue",l)}});return{model:s,hasSlot:r,inputId:n,classes:o,change:a}}}),ZK="",w$={class:"flex items-center"},v$=["id","checked","required","value"],k$=["for"];function x$(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",w$,[i.createElementVNode("input",{id:t.inputId,checked:t.model===t.value,required:t.required,value:t.value,type:"checkbox",class:i.normalizeClass(["k-checkbox w-4 h-4 border-gray-300 rounded dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600",t.classes]),onChange:e[0]||(e[0]=(...s)=>t.change&&t.change(...s))},null,42,v$),t.label||t.hasSlot("default")?(i.openBlock(),i.createElementBlock("label",{key:0,for:t.inputId,class:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300 select-none"},[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0},void 0,!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.label),1)],64))],8,k$)):i.createCommentVNode("",!0)])}const E$=de(y$,[["render",x$],["__scopeId","data-v-e3d49020"]]),C$={modelValue:{type:String,default:""},id:{type:[Number,String],default:""},maxSize:{type:Number,default:5},accept:{type:Array,default:()=>["jpg","jpeg","png","gif","webp","pdf"]},removable:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},label:{type:String,default:""},size:{type:String,default:"md",options:["xs","sm","md","lg"]}},S$=i.defineComponent({name:"KDropzone",props:C$,emits:["delete","upload","update:modelValue"],setup(t,e){const n=_t(),r=x=>!!e.slots[x],o=i.ref([]),a=i.ref(!1),s=i.ref({name:"",size:0,type:"",fileExtention:"",url:"",isImage:!1}),l=i.ref(!1),u=i.computed(()=>t.accept.map(x=>"."+x.toLowerCase()).join(",")),c=i.computed(()=>t.accept.map(x=>x.toLowerCase()).join(", ")),d=i.computed(()=>{if(!t.modelValue)return!1;const x=(t.modelValue.split(".").pop()||"").split("?")[0],N=["jpg","jpeg","png","gif","webp","svg"],y=N.includes(s.value.fileExtention),M=N.includes(x);return y||M}),p=x=>{if(x.target.files&&x.target.files[0]){o.value=[];const N=x.target.files[0];if(g(N)){a.value=!0;const y=Math.round(N.size/1024/1024*100)/100,M=N.name.split(".").pop(),E=N.name.split(".").shift(),C=["jpg","jpeg","png","gif","webp","svg"].includes(M);let T=new FileReader;T.readAsDataURL(N),T.onload=function(){s.value={name:E,size:y,type:N.type,fileExtention:M,isImage:C,url:T.result?T.result.toString():""},e.emit("update:modelValue",s.value.url),e.emit("upload",N),a.value=!1}}else f(!1,!1)}},f=(x=!1,N=!1)=>{const y=structuredClone(t.modelValue);s.value={name:"",size:0,type:"",fileExtention:"",url:"",isImage:!1},e.emit("update:modelValue",""),N&&e.emit("delete",y),x&&(o.value=[]),setTimeout(()=>{l.value=!1},300)},h=x=>{x>t.maxSize&&o.value.push(`El fichero debe pesar menos de ${t.maxSize} MB`)},m=x=>{t.accept.map(N=>N.toLowerCase()).includes(x.toLowerCase())||o.value.push(`Extensión inválida. Los ficheros soportados son: ${t.accept}`)},g=x=>(h(Math.round(x.size/1024/1024*100)/100),m(x.name.split(".").pop()||""),o.value.length===0),b=i.computed(()=>a.value||t.loading),v=i.computed(()=>t.label||r("default"));return i.watch(()=>t.id,()=>{s.value.name=""}),{id:n,file:s,hasSlot:r,validExtensions:u,textensions:c,onFileChange:p,errors:o,onFileReset:f,isModelValueImage:d,hasLabel:v,locked:l,isLoading:b}}}),eY="",_$=t=>(i.pushScopeId("data-v-b697fe62"),t=t(),i.popScopeId(),t),T$={class:"k-dropzone"},N$={key:0,class:"k-dropzone-label"},O$={key:2,class:"font-bold text-danger ml-1"},$$=["for"],A$={key:0,class:"flex flex-col max-w-full items-center justify-center pt-5 pb-6"},M$={key:1,class:"absolute top-0 left-0 h-full w-full bg-opacity-60 bg-gray-900 z-20 flex items-center justify-center text-white"},D$={key:0,class:"text-sm flex text-center flex-col px-5 whitespace-nowrap w-full"},B$={class:"uppercase text-ellipsis overflow-hidden text-gray-800 dark:text-gray-100 px-3"},P$={class:"font-semibold text-gray-700 dark:text-gray-300"},V$={key:1,class:"flex flex-col items-center justify-center pt-5 pb-6"},L$={class:"text-center"},I$={class:"mb-2 text-sm text-gray-500 dark:text-gray-400 text-center"},R$=_$(()=>i.createElementVNode("span",{class:"font-semibold"},"Haz click",-1)),z$={class:"text-xs text-gray-500 dark:text-gray-400"},F$={key:1,class:"flex text-center flex-col"},H$={class:"uppercase"},q$={class:"font-semibold"},j$=["id","accept","disabled"];function U$(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-tooltip"),u=i.resolveComponent("k-button");return i.openBlock(),i.createElementBlock("div",T$,[i.createElementVNode("div",{class:i.normalizeClass(["k-dropzone-wrapper",{"k-dropzone--loading":t.loading,"k-dropzone--error":t.errors.length>0,"k-dropzone--disabled":t.disabled,[`k-dropzone-${t.size}`]:!0}])},[t.hasLabel?(i.openBlock(),i.createElementBlock("label",N$,[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0},void 0,!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.label),1)],64)),t.required?(i.openBlock(),i.createElementBlock("span",O$,"*")):i.createCommentVNode("",!0),t.errors.length>0?(i.openBlock(),i.createBlock(l,{key:3,content:t.errors[0]},{default:i.withCtx(()=>[i.createVNode(s,{icon:"triangle-exclamation",class:"ml-2"})]),_:1},8,["content"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("label",{for:t.locked?"":t.id,class:i.normalizeClass(["k-dropzone-input",{"k-dropzone--loading":t.isLoading,"k-dropzone--error":t.errors.length>0,"k-dropzone--disabled":t.disabled}]),style:i.normalizeStyle({background:t.isModelValueImage?`url('${t.modelValue}') no-repeat center center`:"","background-size":"cover"})},[t.modelValue||t.isLoading?(i.openBlock(),i.createElementBlock("div",A$,[t.isLoading?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(u,{key:0,size:"xs",icon:"times",color:"gray",class:"absolute top-0 right-0 m-2 z-20",onClick:e[0]||(e[0]=c=>t.onFileReset(!0,!0)),onMouseover:e[1]||(e[1]=c=>t.locked=!0),onMouseout:e[2]||(e[2]=c=>t.locked=!1)})),t.isLoading?(i.openBlock(),i.createElementBlock("div",M$,[i.createVNode(s,{icon:"spinner-third",type:"fas",size:30,spin:""})])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["text-sm flex justify-center max-w-full flex-col font-semibold text-center uppercase z-10 absolute top-0 left-0 w-full h-full transition-all",{"opacity-0 hover:opacity-100 hover:bg-opacity-50 hover:dark:bg-opacity-50 hover:bg-gray-100 hover:dark:bg-gray-900":t.isModelValueImage,"bg-gray-200 dark:bg-gray-700 ":!t.isModelValueImage}])},[i.renderSlot(t.$slots,"selectedFile",i.normalizeProps(i.guardReactiveProps({name:t.file.name,size:t.file.size})),()=>[i.createVNode(s,{icon:"file",type:"far",size:60,class:"mb-3 text-gray-800 dark:text-gray-100"}),t.file.name?(i.openBlock(),i.createElementBlock("div",D$,[i.createElementVNode("span",B$,i.toDisplayString(t.file.name),1),i.createElementVNode("span",P$,i.toDisplayString(t.file.size)+"MB ",1)])):i.createCommentVNode("",!0)],!0)],2)])):(i.openBlock(),i.createElementBlock("div",V$,[t.errors.length>0?(i.openBlock(),i.createBlock(l,{key:0},{content:i.withCtx(()=>[i.createElementVNode("div",L$,i.toDisplayString(t.errors[0]),1)]),default:i.withCtx(()=>[i.createVNode(s,{icon:"triangle-exclamation",type:"far",size:30,class:"text-danger mb-3"})]),_:1})):(i.openBlock(),i.createBlock(s,{key:1,icon:"upload",type:"far",size:30,class:"text-gray-400 mb-3"})),i.createElementVNode("p",I$,[i.renderSlot(t.$slots,"placeholder",{},()=>[R$,i.createTextVNode(" o arrastra tus ficheros ")],!0)]),i.createElementVNode("p",z$,[t.hasSlot("maxSize")?i.renderSlot(t.$slots,"maxSize",{key:0},()=>[i.createTextVNode(i.toDisplayString(t.maxSize)+" MB ",1)],!0):(i.openBlock(),i.createElementBlock("div",F$,[i.createElementVNode("div",H$,i.toDisplayString(t.textensions),1),i.createElementVNode("div",q$," ("+i.toDisplayString(t.maxSize)+"MB MAX) ",1)]))])])),i.createElementVNode("input",{id:t.id,type:"file",class:"hidden",accept:t.validExtensions,disabled:t.disabled,onclick:"this.value=null;",onChange:e[3]||(e[3]=c=>t.onFileChange(c))},null,40,j$)],14,$$)],2)])}const W$=de(S$,[["render",U$],["__scopeId","data-v-b697fe62"]]);function Af(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function K$(t){return(...e)=>!t(...e)}function Y$(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function yb(t,e,n,r){return e?t.filter(o=>Y$(r(o,n),e)).sort((o,a)=>r(o,n).length-r(a,n).length):t}function G$(t){return t.filter(e=>!e.$isLabel)}function Mf(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 J$(t,e,n,r,o){return a=>a.map(s=>{if(!s[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=yb(s[n],t,e,o);return l.length?{[r]:s[r],[n]:l}:[]})}const wb=(...t)=>e=>t.reduce((n,r)=>r(n),e);var X$={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 Af(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):yb(n,e,this.label,this.customLabel):n=this.groupValues?Mf(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(K$(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 wb(J$(e,n,this.groupValues,this.groupLabel,this.customLabel),Mf(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return wb(Mf(this.groupValues,this.groupLabel),G$)(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(Af(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return Af(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?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))}}},Q$={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}}},vb={name:"vue-multiselect",mixins:[X$,Q$],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 Z$={ref:"tags",class:"multiselect__tags"},eA={class:"multiselect__tags-wrap"},tA={class:"multiselect__spinner"},nA={key:0},rA={class:"multiselect__option"},oA={class:"multiselect__option"},iA=i.createTextVNode("No elements found. Consider changing the search query."),aA={class:"multiselect__option"},sA=i.createTextVNode("List is empty.");function lA(t,e,n,r,o,a){return i.openBlock(),i.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.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]=i.withKeys(i.withModifiers(s=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=i.withKeys(i.withModifiers(s=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=i.withKeys(i.withModifiers(s=>t.addPointerElement(s),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=i.withKeys(s=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[i.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[i.createVNode("div",{onMousedown:e[1]||(e[1]=i.withModifiers(s=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),i.renderSlot(t.$slots,"clear",{search:t.search}),i.createVNode("div",Z$,[i.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:a.visibleValues,isOpen:t.isOpen},()=>[i.withDirectives(i.createVNode("div",eA,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(a.visibleValues,(s,l)=>i.renderSlot(t.$slots,"tag",{option:s,search:t.search,remove:t.removeElement},()=>[(i.openBlock(),i.createBlock("span",{class:"multiselect__tag",key:l},[i.createVNode("span",{textContent:i.toDisplayString(t.getOptionLabel(s))},null,8,["textContent"]),i.createVNode("i",{tabindex:"1",onKeypress:i.withKeys(i.withModifiers(u=>t.removeElement(s),["prevent"]),["enter"]),onMousedown:i.withModifiers(u=>t.removeElement(s),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[i.vShow,a.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?i.renderSlot(t.$slots,"limit",{key:0},()=>[i.createVNode("strong",{class:"multiselect__strong",textContent:i.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):i.createCommentVNode("v-if",!0)]),i.createVNode(i.Transition,{name:"multiselect__loading"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"loading",{},()=>[i.withDirectives(i.createVNode("div",tA,null,512),[[i.vShow,n.loading]])])]),_:3}),t.searchable?(i.openBlock(),i.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:t.placeholder,style:a.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]=i.withModifiers(s=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=i.withModifiers(s=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=i.withKeys(s=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=i.withKeys(i.withModifiers(s=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=i.withKeys(i.withModifiers(s=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=i.withKeys(i.withModifiers(s=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=i.withKeys(i.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"])):i.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(i.openBlock(),i.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=i.withModifiers((...s)=>t.toggle&&t.toggle(...s),["prevent"]))},[i.renderSlot(t.$slots,"singleLabel",{option:a.singleValue},()=>[i.createTextVNode(i.toDisplayString(t.currentOptionLabel),1)])],32)):i.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(i.openBlock(),i.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=i.withModifiers((...s)=>t.toggle&&t.toggle(...s),["prevent"]))},[i.renderSlot(t.$slots,"placeholder",{},()=>[i.createTextVNode(i.toDisplayString(t.placeholder),1)])],32)):i.createCommentVNode("v-if",!0)],512),i.createVNode(i.Transition,{name:"multiselect"},{default:i.withCtx(()=>[i.withDirectives(i.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...s)=>t.activate&&t.activate(...s)),tabindex:"-1",onMousedown:e[13]||(e[13]=i.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[i.createVNode("ul",{class:"multiselect__content",style:a.contentStyle,role:"listbox",id:"listbox-"+t.id},[i.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(i.openBlock(),i.createBlock("li",nA,[i.createVNode("span",rA,[i.renderSlot(t.$slots,"maxElements",{},()=>[i.createTextVNode("Maximum of "+i.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):i.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(i.openBlock(!0),i.createBlock(i.Fragment,{key:1},i.renderList(t.filteredOptions,(s,l)=>(i.openBlock(),i.createBlock("li",{class:"multiselect__element",key:l,id:t.id+"-"+l,role:s&&(s.$isLabel||s.$isDisabled)?null:"option"},[s&&(s.$isLabel||s.$isDisabled)?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock("span",{key:0,class:[t.optionHighlight(l,s),"multiselect__option"],onClick:i.withModifiers(u=>t.select(s),["stop"]),onMouseenter:i.withModifiers(u=>t.pointerSet(l),["self"]),"data-select":s&&s.isTag?t.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[i.renderSlot(t.$slots,"option",{option:s,search:t.search,index:l},()=>[i.createVNode("span",null,i.toDisplayString(t.getOptionLabel(s)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),s&&(s.$isLabel||s.$isDisabled)?(i.openBlock(),i.createBlock("span",{key:1,"data-select":t.groupSelect&&a.selectGroupLabelText,"data-deselect":t.groupSelect&&a.deselectGroupLabelText,class:[t.groupHighlight(l,s),"multiselect__option"],onMouseenter:i.withModifiers(u=>t.groupSelect&&t.pointerSet(l),["self"]),onMousedown:i.withModifiers(u=>t.selectGroup(s),["prevent"])},[i.renderSlot(t.$slots,"option",{option:s,search:t.search,index:l},()=>[i.createVNode("span",null,i.toDisplayString(t.getOptionLabel(s)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):i.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):i.createCommentVNode("v-if",!0),i.withDirectives(i.createVNode("li",null,[i.createVNode("span",oA,[i.renderSlot(t.$slots,"noResult",{search:t.search},()=>[iA])])],512),[[i.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),i.withDirectives(i.createVNode("li",null,[i.createVNode("span",aA,[i.renderSlot(t.$slots,"noOptions",{},()=>[sA])])],512),[[i.vShow,n.showNoOptions&&(t.options.length===0||a.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),i.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[i.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}vb.render=lA;const tY="",uA={modelValue:{type:[Array,String,Number],default:()=>[],description:"Valor del componente"},options:{type:Array,default:()=>[],description:"Array de opciones a seleccionar"},placeholder:{type:String,default:"Selecciona una opción",description:"Placeholder del input"},closeOnSelect:{type:[String,Boolean],default:"auto"},label:{type:String,default:""},searchable:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},trackBy:{type:String,default:"value"},labelBy:{type:String,default:"label"},errors:{type:Array,required:!1,default:()=>[],description:"Errores de validación"},status:{type:String,default:"",options:["warning","success","danger"],description:"Color de estado del input"},size:{type:String,default:"md",options:["xs","sm","md","lg"],description:"Tamaño del input",control:{type:"select"}},required:{type:Boolean,default:!1},id:{type:String,default:""},width:{type:Number,default:0,description:"Ancho del input"},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},clearOnSelect:{type:Boolean,default:!0},max:{type:Number,default:0},loading:{type:Boolean,default:!1},limit:{type:Number,default:0},maxHeight:{type:Number,default:0},show404:{type:Boolean,default:!0},ajax:{type:Boolean,default:!1},free:{type:Boolean,default:!1},showNoOptions:{type:Boolean,default:!0},tagPlaceholder:{type:String,default:"Presiona ENTER para añadir"}},cA=i.defineComponent({name:"KSelect",components:{Multiselect:vb},props:uA,emits:["update:modelValue","open","close","select","remove","fetch","tag"],setup(t,e){const n=t.id||_t(),r=m=>!!e.slots[m],o=i.ref(!1),a=i.computed({get(){if(t.modelValue&&typeof t.modelValue=="object")return Array.isArray(t.modelValue)?t.modelValue.map(m=>{if(m&&typeof m=="object")return{label:m[t.labelBy],value:m[t.trackBy]};{const g=t.options.find(b=>b[t.trackBy].toString()===m.toString());return g?{label:g[t.labelBy],value:m}:{label:m,value:m}}}):{label:t.modelValue[t.labelBy],value:t.modelValue[t.trackBy]};if(t.modelValue){const m=t.options.find(g=>g[t.trackBy].toString()===t.modelValue.toString());return m?{label:m[t.labelBy],value:t.modelValue}:{label:t.modelValue,value:t.modelValue}}else return null},set(m){m&&typeof m=="object"?Array.isArray(m)?m.length>0?s(m.map(g=>g&&typeof g=="object"?g[t.trackBy]:g)):s(null):Object.keys(m).length>0?s(m[t.trackBy]):s(null):s(m)}}),s=m=>{o.value=!0,e.emit("update:modelValue",m),setTimeout(()=>{o.value=!1},1e3)},l=i.computed(()=>{const m=["k-select",`k-select-${t.size}`];return t.errors.length>0?m.push("k-select-danger"):t.status&&m.push(`k-select-${t.status}`),m}),u=i.computed(()=>t.closeOnSelect==="auto"?!t.multiple:t.closeOnSelect),c=i.computed(()=>{const m={};return t.width>0&&(m.width=t.width+"px"),m}),d=i.computed(()=>t.label||r("default")),p=i.computed(()=>(t.errors.length>0?t.errors[0].$message:"").toString()),f=dS(m=>{o.value||e.emit("fetch",m)},500);return{model:a,classes:l,hasLabel:d,firstError:p,uuid:n,hasSlot:r,style:c,fCloseOnSelect:u,addTag:m=>{const g={};g[t.trackBy]=m,g[t.labelBy]=m,Array.isArray(a.value)?a.value=[...a.value,g]:a.value=g,e.emit("tag",m)},fetch:f}}}),nY="",dA={key:0},fA={key:2,class:"font-bold text-danger ml-1"};function pA(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-tooltip"),u=i.resolveComponent("multiselect");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([t.classes])},[t.hasLabel?(i.openBlock(),i.createElementBlock("label",dA,[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.label),1)],64)),t.required?(i.openBlock(),i.createElementBlock("span",fA,"*")):i.createCommentVNode("",!0),t.firstError?(i.openBlock(),i.createBlock(l,{key:3,content:t.firstError},{default:i.withCtx(()=>[i.createVNode(s,{icon:"triangle-exclamation",class:"ml-2"})]),_:1},8,["content"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createVNode(u,{id:t.uuid,modelValue:t.model,"onUpdate:modelValue":e[0]||(e[0]=c=>t.model=c),options:t.options,"close-on-select":t.fCloseOnSelect,placeholder:t.placeholder,label:t.labelBy,searchable:t.searchable,"hide-selected":t.hideSelected,"allow-empty":!t.required,"show-labels":!1,style:i.normalizeStyle(t.style),disabled:t.disabled,multiple:t.multiple,"track-by":t.trackBy,"clear-on-select":t.clearOnSelect,max:t.max>0?t.max:void 0,loading:t.loading,"max-height":t.maxHeight>0?t.maxHeight:void 0,"show-no-results":t.show404,"internal-search":!t.ajax,limit:t.limit>0?t.limit:void 0,"tag-placeholder":t.tagPlaceholder,taggable:t.free,"show-no-options":t.showNoOptions,onOpen:e[1]||(e[1]=c=>t.$emit("open")),onClose:e[2]||(e[2]=c=>t.$emit("close")),onSelect:e[3]||(e[3]=c=>t.$emit("select",c)),onRemove:e[4]||(e[4]=c=>t.$emit("remove",c)),onSearchChange:t.fetch,onTag:e[5]||(e[5]=c=>t.addTag(c))},{singleLabel:i.withCtx(({option:c})=>[i.renderSlot(t.$slots,"singleLabel",i.normalizeProps(i.guardReactiveProps({option:c})))]),option:i.withCtx(({option:c,search:d})=>[i.renderSlot(t.$slots,"option",i.normalizeProps(i.guardReactiveProps({option:c,search:d})))]),maxElements:i.withCtx(()=>[i.createTextVNode(" Se alcanzó el nº máximo de elementos seleccionados ")]),noResult:i.withCtx(()=>[i.createTextVNode(" Sin resultados ")]),noOptions:i.withCtx(()=>[i.createTextVNode(" No hay opciones disponibles ")]),beforeList:i.withCtx(()=>[i.renderSlot(t.$slots,"beforeList")]),afterList:i.withCtx(()=>[i.renderSlot(t.$slots,"afterList")]),caret:i.withCtx(({toggle:c})=>[i.renderSlot(t.$slots,"caret",i.normalizeProps(i.guardReactiveProps({toggle:c})))]),placeholder:i.withCtx(()=>[i.renderSlot(t.$slots,"placeholder")]),tag:i.withCtx(({option:c,remove:d})=>[i.renderSlot(t.$slots,"tag",i.normalizeProps(i.guardReactiveProps({option:c,remove:d})))]),_:3},8,["id","modelValue","options","close-on-select","placeholder","label","searchable","hide-selected","allow-empty","style","disabled","multiple","track-by","clear-on-select","max","loading","max-height","show-no-results","internal-search","limit","tag-placeholder","taggable","show-no-options","onSearchChange"])],2)}const hA=de(cA,[["render",pA]]),mA=i.defineComponent({name:"KInputInline",props:{modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:"Escribe algo"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},maxlength:{type:Number,default:0},width:{type:Number,default:40},fluid:{type:Boolean,default:!1},size:{type:String,default:"md",options:["xs","sm","md","lg"],validator:t=>["xs","sm","md","lg"].includes(t)}},emits:["update:modelValue","input"],setup(t,e){const n=i.ref(!0),r=i.ref(),o=i.ref(),a=i.computed({get(){return t.modelValue.toString()},set(c){e.emit("update:modelValue",c)}}),s=i.computed(()=>{const c=[];return t.size==="xs"&&c.push("k-input-inline--xs"),t.size==="sm"&&c.push("k-input-inline--sm"),t.size==="md"&&c.push("k-input-inline--md"),t.size==="lg"&&c.push("k-input-inline--lg"),c}),l=i.computed(()=>t.fluid?"100%":`${t.width}px`),u=()=>{r.value&&o.value&&(r.value.style.width=o.value.offsetWidth+"px")};return i.onMounted(()=>{t.fluid||new ResizeObserver(u).observe(o.value)}),{editMode:n,input:r,span:o,model:a,classes:s,parsedWidth:l}}}),rY="",gA=["placeholder","disabled","readonly","maxlength"];function bA(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",{id:"uid",class:i.normalizeClass(["k-input-inline",t.classes])},[i.withDirectives(i.createElementVNode("input",{ref:"input","onUpdate:modelValue":e[0]||(e[0]=s=>t.model=s),type:"text",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,maxlength:t.maxlength>0?t.maxlength:void 0,style:i.normalizeStyle({width:t.parsedWidth})},null,12,gA),[[i.vModelText,t.model]]),i.createElementVNode("span",{ref:"span",style:i.normalizeStyle({minWidth:t.parsedWidth})},i.toDisplayString(t.model||t.placeholder),5)],2)}const yA=de(mA,[["render",bA],["__scopeId","data-v-0151aa44"]]),wA=i.defineComponent({name:"KInlineEditor",props:{modelValue:{type:[String,Number],default:""},size:{type:String,default:"sm",options:["sm","md","lg"],validator:t=>["sm","md","lg"].includes(t)},tooltip:{type:String,default:""}},emits:["update:modelValue","input"],setup(t,e){const n=i.ref(!0),r=i.ref(),o=i.computed({get(){return t.modelValue.toString()},set(u){e.emit("update:modelValue",u)}}),a=i.computed(()=>{const u=["inline-flex"];return t.size==="sm"&&u.push("text-sm"),t.size==="md"&&u.push("text-base"),t.size==="lg"&&u.push("text-lg"),u}),s=i.computed(()=>{const u=[];return t.size==="sm"&&u.push("text-sm"),t.size==="md"&&u.push("text-base"),t.size==="lg"&&u.push("text-lg"),u});return{editMode:n,toggleEdit:()=>{n.value=!n.value,setTimeout(()=>{n.value&&r.value.focus()},100)},input:r,model:o,inputClasses:s,textClasses:a}}}),vA={class:"inline-flex"},kA={class:"inline-flex"},xA=["placeholder","size"];function EA(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",vA,[i.createElementVNode("div",kA,[i.withDirectives(i.createElementVNode("input",{ref:"input","onUpdate:modelValue":e[0]||(e[0]=s=>t.model=s),placeholder:t.model,type:"text",class:i.normalizeClass(["p-0 outline-none focus:ring-0 border-0 bg-transparent",t.inputClasses]),size:t.model.length-1,onBlur:e[1]||(e[1]=(...s)=>t.toggleEdit&&t.toggleEdit(...s))},null,42,xA),[[i.vModelText,t.model]])])])}const CA=de(wA,[["render",EA]]);var kb={},Qa={},Df={},Bf={},Pf={};Object.defineProperty(Pf,"__esModule",{value:!0}),Pf.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var Vf={};Object.defineProperty(Vf,"__esModule",{value:!0}),Vf.default=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var Lf={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(a){var s="";return a>65535&&(a-=65536,s+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),s+=String.fromCharCode(a),s};function r(a){var s;return a>=55296&&a<=57343||a>1114111?65533:(s=n.get(a))!==null&&s!==void 0?s:a}t.replaceCodePoint=r;function o(a){return(0,t.fromCodePoint)(r(a))}t.default=o})(Lf),function(t){var e=me&&me.__createBinding||(Object.create?function(k,$,D,V){V===void 0&&(V=D);var S=Object.getOwnPropertyDescriptor($,D);(!S||("get"in S?!$.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return $[D]}}),Object.defineProperty(k,V,S)}:function(k,$,D,V){V===void 0&&(V=D),k[V]=$[D]}),n=me&&me.__setModuleDefault||(Object.create?function(k,$){Object.defineProperty(k,"default",{enumerable:!0,value:$})}:function(k,$){k.default=$}),r=me&&me.__importStar||function(k){if(k&&k.__esModule)return k;var $={};if(k!=null)for(var D in k)D!=="default"&&Object.prototype.hasOwnProperty.call(k,D)&&e($,k,D);return n($,k),$},o=me&&me.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var a=o(Pf);t.htmlDecodeTree=a.default;var s=o(Vf);t.xmlDecodeTree=s.default;var l=r(Lf);t.decodeCodePoint=l.default;var u=Lf;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var c;(function(k){k[k.NUM=35]="NUM",k[k.SEMI=59]="SEMI",k[k.EQUALS=61]="EQUALS",k[k.ZERO=48]="ZERO",k[k.NINE=57]="NINE",k[k.LOWER_A=97]="LOWER_A",k[k.LOWER_F=102]="LOWER_F",k[k.LOWER_X=120]="LOWER_X",k[k.LOWER_Z=122]="LOWER_Z",k[k.UPPER_A=65]="UPPER_A",k[k.UPPER_F=70]="UPPER_F",k[k.UPPER_Z=90]="UPPER_Z"})(c||(c={}));var d=32,p;(function(k){k[k.VALUE_LENGTH=49152]="VALUE_LENGTH",k[k.BRANCH_LENGTH=16256]="BRANCH_LENGTH",k[k.JUMP_TABLE=127]="JUMP_TABLE"})(p=t.BinTrieFlags||(t.BinTrieFlags={}));function f(k){return k>=c.ZERO&&k<=c.NINE}function h(k){return k>=c.UPPER_A&&k<=c.UPPER_F||k>=c.LOWER_A&&k<=c.LOWER_F}function m(k){return k>=c.UPPER_A&&k<=c.UPPER_Z||k>=c.LOWER_A&&k<=c.LOWER_Z||f(k)}function g(k){return k===c.EQUALS||m(k)}var b;(function(k){k[k.EntityStart=0]="EntityStart",k[k.NumericStart=1]="NumericStart",k[k.NumericDecimal=2]="NumericDecimal",k[k.NumericHex=3]="NumericHex",k[k.NamedEntity=4]="NamedEntity"})(b||(b={}));var v;(function(k){k[k.Legacy=0]="Legacy",k[k.Strict=1]="Strict",k[k.Attribute=2]="Attribute"})(v=t.DecodingMode||(t.DecodingMode={}));var x=function(){function k($,D,V){this.decodeTree=$,this.emitCodePoint=D,this.errors=V,this.state=b.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=v.Strict}return k.prototype.startEntity=function($){this.decodeMode=$,this.state=b.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},k.prototype.write=function($,D){switch(this.state){case b.EntityStart:return $.charCodeAt(D)===c.NUM?(this.state=b.NumericStart,this.consumed+=1,this.stateNumericStart($,D+1)):(this.state=b.NamedEntity,this.stateNamedEntity($,D));case b.NumericStart:return this.stateNumericStart($,D);case b.NumericDecimal:return this.stateNumericDecimal($,D);case b.NumericHex:return this.stateNumericHex($,D);case b.NamedEntity:return this.stateNamedEntity($,D)}},k.prototype.stateNumericStart=function($,D){return D>=$.length?-1:($.charCodeAt(D)|d)===c.LOWER_X?(this.state=b.NumericHex,this.consumed+=1,this.stateNumericHex($,D+1)):(this.state=b.NumericDecimal,this.stateNumericDecimal($,D))},k.prototype.addToNumericResult=function($,D,V,S){if(D!==V){var O=V-D;this.result=this.result*Math.pow(S,O)+parseInt($.substr(D,O),S),this.consumed+=O}},k.prototype.stateNumericHex=function($,D){for(var V=D;D<$.length;){var S=$.charCodeAt(D);if(f(S)||h(S))D+=1;else return this.addToNumericResult($,V,D,16),this.emitNumericEntity(S,3)}return this.addToNumericResult($,V,D,16),-1},k.prototype.stateNumericDecimal=function($,D){for(var V=D;D<$.length;){var S=$.charCodeAt(D);if(f(S))D+=1;else return this.addToNumericResult($,V,D,10),this.emitNumericEntity(S,2)}return this.addToNumericResult($,V,D,10),-1},k.prototype.emitNumericEntity=function($,D){var V;if(this.consumed<=D)return(V=this.errors)===null||V===void 0||V.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if($===c.SEMI)this.consumed+=1;else if(this.decodeMode===v.Strict)return 0;return this.emitCodePoint((0,l.replaceCodePoint)(this.result),this.consumed),this.errors&&($!==c.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},k.prototype.stateNamedEntity=function($,D){for(var V=this.decodeTree,S=V[this.treeIndex],O=(S&p.VALUE_LENGTH)>>14;D<$.length;D++,this.excess++){var w=$.charCodeAt(D);if(this.treeIndex=y(V,S,this.treeIndex+Math.max(1,O),w),this.treeIndex<0)return this.result===0||this.decodeMode===v.Attribute&&(O===0||g(w))?0:this.emitNotTerminatedNamedEntity();if(S=V[this.treeIndex],O=(S&p.VALUE_LENGTH)>>14,O!==0){if(w===c.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==v.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},k.prototype.emitNotTerminatedNamedEntity=function(){var $,D=this,V=D.result,S=D.decodeTree,O=(S[V]&p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(V,O,this.consumed),($=this.errors)===null||$===void 0||$.missingSemicolonAfterCharacterReference(),this.consumed},k.prototype.emitNamedEntityData=function($,D,V){var S=this.decodeTree;return this.emitCodePoint(D===1?S[$]&~p.VALUE_LENGTH:S[$+1],V),D===3&&this.emitCodePoint(S[$+2],V),V},k.prototype.end=function(){var $;switch(this.state){case b.NamedEntity:return this.result!==0&&(this.decodeMode!==v.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case b.NumericDecimal:return this.emitNumericEntity(0,2);case b.NumericHex:return this.emitNumericEntity(0,3);case b.NumericStart:return($=this.errors)===null||$===void 0||$.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case b.EntityStart:return 0}},k}();t.EntityDecoder=x;function N(k){var $="",D=new x(k,function(V){return $+=(0,l.fromCodePoint)(V)});return function(S,O){for(var w=0,A=0;(A=S.indexOf("&",A))>=0;){$+=S.slice(w,A),D.startEntity(O);var z=D.write(S,A+1);if(z<0){w=A+D.end();break}w=A+z,A=z===0?w+1:w}var P=$+S.slice(w);return $="",P}}function y(k,$,D,V){var S=($&p.BRANCH_LENGTH)>>7,O=$&p.JUMP_TABLE;if(S===0)return O!==0&&V===O?D:-1;if(O){var w=V-O;return w<0||w>=S?-1:k[D+w]-1}for(var A=D,z=A+S-1;A<=z;){var P=A+z>>>1,q=k[P];if(q<V)A=P+1;else if(q>V)z=P-1;else return k[P+S]}return-1}t.determineBranch=y;var M=N(a.default),E=N(s.default);function C(k,$){return $===void 0&&($=v.Legacy),M(k,$)}t.decodeHTML=C;function T(k){return M(k,v.Attribute)}t.decodeHTMLAttribute=T;function B(k){return M(k,v.Strict)}t.decodeHTMLStrict=B;function L(k){return E(k,v.Strict)}t.decodeXML=L}(Bf),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=Bf,n;(function(f){f[f.Tab=9]="Tab",f[f.NewLine=10]="NewLine",f[f.FormFeed=12]="FormFeed",f[f.CarriageReturn=13]="CarriageReturn",f[f.Space=32]="Space",f[f.ExclamationMark=33]="ExclamationMark",f[f.Number=35]="Number",f[f.Amp=38]="Amp",f[f.SingleQuote=39]="SingleQuote",f[f.DoubleQuote=34]="DoubleQuote",f[f.Dash=45]="Dash",f[f.Slash=47]="Slash",f[f.Zero=48]="Zero",f[f.Nine=57]="Nine",f[f.Semi=59]="Semi",f[f.Lt=60]="Lt",f[f.Eq=61]="Eq",f[f.Gt=62]="Gt",f[f.Questionmark=63]="Questionmark",f[f.UpperA=65]="UpperA",f[f.LowerA=97]="LowerA",f[f.UpperF=70]="UpperF",f[f.LowerF=102]="LowerF",f[f.UpperZ=90]="UpperZ",f[f.LowerZ=122]="LowerZ",f[f.LowerX=120]="LowerX",f[f.OpeningSquareBracket=91]="OpeningSquareBracket"})(n||(n={}));var r;(function(f){f[f.Text=1]="Text",f[f.BeforeTagName=2]="BeforeTagName",f[f.InTagName=3]="InTagName",f[f.InSelfClosingTag=4]="InSelfClosingTag",f[f.BeforeClosingTagName=5]="BeforeClosingTagName",f[f.InClosingTagName=6]="InClosingTagName",f[f.AfterClosingTagName=7]="AfterClosingTagName",f[f.BeforeAttributeName=8]="BeforeAttributeName",f[f.InAttributeName=9]="InAttributeName",f[f.AfterAttributeName=10]="AfterAttributeName",f[f.BeforeAttributeValue=11]="BeforeAttributeValue",f[f.InAttributeValueDq=12]="InAttributeValueDq",f[f.InAttributeValueSq=13]="InAttributeValueSq",f[f.InAttributeValueNq=14]="InAttributeValueNq",f[f.BeforeDeclaration=15]="BeforeDeclaration",f[f.InDeclaration=16]="InDeclaration",f[f.InProcessingInstruction=17]="InProcessingInstruction",f[f.BeforeComment=18]="BeforeComment",f[f.CDATASequence=19]="CDATASequence",f[f.InSpecialComment=20]="InSpecialComment",f[f.InCommentLike=21]="InCommentLike",f[f.BeforeSpecialS=22]="BeforeSpecialS",f[f.SpecialStartSequence=23]="SpecialStartSequence",f[f.InSpecialTag=24]="InSpecialTag",f[f.BeforeEntity=25]="BeforeEntity",f[f.BeforeNumericEntity=26]="BeforeNumericEntity",f[f.InNamedEntity=27]="InNamedEntity",f[f.InNumericEntity=28]="InNumericEntity",f[f.InHexEntity=29]="InHexEntity"})(r||(r={}));function o(f){return f===n.Space||f===n.NewLine||f===n.Tab||f===n.FormFeed||f===n.CarriageReturn}function a(f){return f===n.Slash||f===n.Gt||o(f)}function s(f){return f>=n.Zero&&f<=n.Nine}function l(f){return f>=n.LowerA&&f<=n.LowerZ||f>=n.UpperA&&f<=n.UpperZ}function u(f){return f>=n.UpperA&&f<=n.UpperF||f>=n.LowerA&&f<=n.LowerF}var c;(function(f){f[f.NoValue=0]="NoValue",f[f.Unquoted=1]="Unquoted",f[f.Single=2]="Single",f[f.Double=3]="Double"})(c=t.QuoteType||(t.QuoteType={}));var d={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},p=function(){function f(h,m){var g=h.xmlMode,b=g===void 0?!1:g,v=h.decodeEntities,x=v===void 0?!0:v;this.cbs=m,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=b,this.decodeEntities=x,this.entityTrie=b?e.xmlDecodeTree:e.htmlDecodeTree}return f.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},f.prototype.write=function(h){this.offset+=this.buffer.length,this.buffer=h,this.parse()},f.prototype.end=function(){this.running&&this.finish()},f.prototype.pause=function(){this.running=!1},f.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},f.prototype.getIndex=function(){return this.index},f.prototype.getSectionStart=function(){return this.sectionStart},f.prototype.stateText=function(h){h===n.Lt||!this.decodeEntities&&this.fastForwardTo(n.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&h===n.Amp&&(this.state=r.BeforeEntity)},f.prototype.stateSpecialStartSequence=function(h){var m=this.sequenceIndex===this.currentSequence.length,g=m?a(h):(h|32)===this.currentSequence[this.sequenceIndex];if(!g)this.isSpecial=!1;else if(!m){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(h)},f.prototype.stateInSpecialTag=function(h){if(this.sequenceIndex===this.currentSequence.length){if(h===n.Gt||o(h)){var m=this.index-this.currentSequence.length;if(this.sectionStart<m){var g=this.index;this.index=m,this.cbs.ontext(this.sectionStart,m),this.index=g}this.isSpecial=!1,this.sectionStart=m+2,this.stateInClosingTagName(h);return}this.sequenceIndex=0}(h|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===d.TitleEnd?this.decodeEntities&&h===n.Amp&&(this.state=r.BeforeEntity):this.fastForwardTo(n.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(h===n.Lt)},f.prototype.stateCDATASequence=function(h){h===d.Cdata[this.sequenceIndex]?++this.sequenceIndex===d.Cdata.length&&(this.state=r.InCommentLike,this.currentSequence=d.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=r.InDeclaration,this.stateInDeclaration(h))},f.prototype.fastForwardTo=function(h){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===h)return!0;return this.index=this.buffer.length+this.offset-1,!1},f.prototype.stateInCommentLike=function(h){h===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===d.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=r.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):h!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},f.prototype.isTagStartChar=function(h){return this.xmlMode?!a(h):l(h)},f.prototype.startSpecial=function(h,m){this.isSpecial=!0,this.currentSequence=h,this.sequenceIndex=m,this.state=r.SpecialStartSequence},f.prototype.stateBeforeTagName=function(h){if(h===n.ExclamationMark)this.state=r.BeforeDeclaration,this.sectionStart=this.index+1;else if(h===n.Questionmark)this.state=r.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(h)){var m=h|32;this.sectionStart=this.index,!this.xmlMode&&m===d.TitleEnd[2]?this.startSpecial(d.TitleEnd,3):this.state=!this.xmlMode&&m===d.ScriptEnd[2]?r.BeforeSpecialS:r.InTagName}else h===n.Slash?this.state=r.BeforeClosingTagName:(this.state=r.Text,this.stateText(h))},f.prototype.stateInTagName=function(h){a(h)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(h))},f.prototype.stateBeforeClosingTagName=function(h){o(h)||(h===n.Gt?this.state=r.Text:(this.state=this.isTagStartChar(h)?r.InClosingTagName:r.InSpecialComment,this.sectionStart=this.index))},f.prototype.stateInClosingTagName=function(h){(h===n.Gt||o(h))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterClosingTagName,this.stateAfterClosingTagName(h))},f.prototype.stateAfterClosingTagName=function(h){(h===n.Gt||this.fastForwardTo(n.Gt))&&(this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeAttributeName=function(h){h===n.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=r.InSpecialTag,this.sequenceIndex=0):this.state=r.Text,this.baseState=this.state,this.sectionStart=this.index+1):h===n.Slash?this.state=r.InSelfClosingTag:o(h)||(this.state=r.InAttributeName,this.sectionStart=this.index)},f.prototype.stateInSelfClosingTag=function(h){h===n.Gt?(this.cbs.onselfclosingtag(this.index),this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(h)||(this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(h))},f.prototype.stateInAttributeName=function(h){(h===n.Eq||a(h))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterAttributeName,this.stateAfterAttributeName(h))},f.prototype.stateAfterAttributeName=function(h){h===n.Eq?this.state=r.BeforeAttributeValue:h===n.Slash||h===n.Gt?(this.cbs.onattribend(c.NoValue,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(h)):o(h)||(this.cbs.onattribend(c.NoValue,this.index),this.state=r.InAttributeName,this.sectionStart=this.index)},f.prototype.stateBeforeAttributeValue=function(h){h===n.DoubleQuote?(this.state=r.InAttributeValueDq,this.sectionStart=this.index+1):h===n.SingleQuote?(this.state=r.InAttributeValueSq,this.sectionStart=this.index+1):o(h)||(this.sectionStart=this.index,this.state=r.InAttributeValueNq,this.stateInAttributeValueNoQuotes(h))},f.prototype.handleInAttributeValue=function(h,m){h===m||!this.decodeEntities&&this.fastForwardTo(m)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(m===n.DoubleQuote?c.Double:c.Single,this.index),this.state=r.BeforeAttributeName):this.decodeEntities&&h===n.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},f.prototype.stateInAttributeValueDoubleQuotes=function(h){this.handleInAttributeValue(h,n.DoubleQuote)},f.prototype.stateInAttributeValueSingleQuotes=function(h){this.handleInAttributeValue(h,n.SingleQuote)},f.prototype.stateInAttributeValueNoQuotes=function(h){o(h)||h===n.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(c.Unquoted,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(h)):this.decodeEntities&&h===n.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},f.prototype.stateBeforeDeclaration=function(h){h===n.OpeningSquareBracket?(this.state=r.CDATASequence,this.sequenceIndex=0):this.state=h===n.Dash?r.BeforeComment:r.InDeclaration},f.prototype.stateInDeclaration=function(h){(h===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},f.prototype.stateInProcessingInstruction=function(h){(h===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeComment=function(h){h===n.Dash?(this.state=r.InCommentLike,this.currentSequence=d.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=r.InDeclaration},f.prototype.stateInSpecialComment=function(h){(h===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=r.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeSpecialS=function(h){var m=h|32;m===d.ScriptEnd[3]?this.startSpecial(d.ScriptEnd,4):m===d.StyleEnd[3]?this.startSpecial(d.StyleEnd,4):(this.state=r.InTagName,this.stateInTagName(h))},f.prototype.stateBeforeEntity=function(h){this.entityExcess=1,this.entityResult=0,h===n.Number?this.state=r.BeforeNumericEntity:h===n.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=r.InNamedEntity,this.stateInNamedEntity(h))},f.prototype.stateInNamedEntity=function(h){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,h),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var m=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(m){var g=(m>>14)-1;if(!this.allowLegacyEntity()&&h!==n.Semi)this.trieIndex+=g;else{var b=this.index-this.entityExcess+1;b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.entityResult=this.trieIndex,this.trieIndex+=g,this.entityExcess=0,this.sectionStart=this.index+1,g===0&&this.emitNamedEntity()}}},f.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var h=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(h){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},f.prototype.stateBeforeNumericEntity=function(h){(h|32)===n.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(h))},f.prototype.emitNumericEntity=function(h){var m=this.index-this.entityExcess-1,g=m+2+ +(this.state===r.InHexEntity);g!==this.index&&(m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.sectionStart=this.index+Number(h),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},f.prototype.stateInNumericEntity=function(h){h===n.Semi?this.emitNumericEntity(!0):s(h)?(this.entityResult=this.entityResult*10+(h-n.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.stateInHexEntity=function(h){h===n.Semi?this.emitNumericEntity(!0):s(h)?(this.entityResult=this.entityResult*16+(h-n.Zero),this.entityExcess++):u(h)?(this.entityResult=this.entityResult*16+((h|32)-n.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},f.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===r.InAttributeValueDq||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},f.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},f.prototype.parse=function(){for(;this.shouldContinue();){var h=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case r.Text:{this.stateText(h);break}case r.SpecialStartSequence:{this.stateSpecialStartSequence(h);break}case r.InSpecialTag:{this.stateInSpecialTag(h);break}case r.CDATASequence:{this.stateCDATASequence(h);break}case r.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(h);break}case r.InAttributeName:{this.stateInAttributeName(h);break}case r.InCommentLike:{this.stateInCommentLike(h);break}case r.InSpecialComment:{this.stateInSpecialComment(h);break}case r.BeforeAttributeName:{this.stateBeforeAttributeName(h);break}case r.InTagName:{this.stateInTagName(h);break}case r.InClosingTagName:{this.stateInClosingTagName(h);break}case r.BeforeTagName:{this.stateBeforeTagName(h);break}case r.AfterAttributeName:{this.stateAfterAttributeName(h);break}case r.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(h);break}case r.BeforeAttributeValue:{this.stateBeforeAttributeValue(h);break}case r.BeforeClosingTagName:{this.stateBeforeClosingTagName(h);break}case r.AfterClosingTagName:{this.stateAfterClosingTagName(h);break}case r.BeforeSpecialS:{this.stateBeforeSpecialS(h);break}case r.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(h);break}case r.InSelfClosingTag:{this.stateInSelfClosingTag(h);break}case r.InDeclaration:{this.stateInDeclaration(h);break}case r.BeforeDeclaration:{this.stateBeforeDeclaration(h);break}case r.BeforeComment:{this.stateBeforeComment(h);break}case r.InProcessingInstruction:{this.stateInProcessingInstruction(h);break}case r.InNamedEntity:{this.stateInNamedEntity(h);break}case r.BeforeEntity:{this.stateBeforeEntity(h);break}case r.InHexEntity:{this.stateInHexEntity(h);break}case r.InNumericEntity:{this.stateInNumericEntity(h);break}default:this.stateBeforeNumericEntity(h)}this.index++}this.cleanup()},f.prototype.finish=function(){this.state===r.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},f.prototype.handleTrailingData=function(){var h=this.buffer.length+this.offset;this.state===r.InCommentLike?this.currentSequence===d.CdataEnd?this.cbs.oncdata(this.sectionStart,h,0):this.cbs.oncomment(this.sectionStart,h,0):this.state===r.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InTagName||this.state===r.BeforeAttributeName||this.state===r.BeforeAttributeValue||this.state===r.AfterAttributeName||this.state===r.InAttributeName||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueDq||this.state===r.InAttributeValueNq||this.state===r.InClosingTagName||this.cbs.ontext(this.sectionStart,h)},f.prototype.emitPartial=function(h,m){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribdata(h,m):this.cbs.ontext(h,m)},f.prototype.emitCodePoint=function(h){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribentity(h):this.cbs.ontextentity(h)},f}();t.default=p}(Df);var SA=me&&me.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),_A=me&&me.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),TA=me&&me.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&SA(e,t,n);return _A(e,t),e};Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.Parser=void 0;var Bl=TA(Df),xb=Bf,Bi=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Ze=new Set(["p"]),Eb=new Set(["thead","tbody"]),Cb=new Set(["dd","dt"]),Sb=new Set(["rt","rp"]),NA=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Ze],["h1",Ze],["h2",Ze],["h3",Ze],["h4",Ze],["h5",Ze],["h6",Ze],["select",Bi],["input",Bi],["output",Bi],["button",Bi],["datalist",Bi],["textarea",Bi],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Cb],["dt",Cb],["address",Ze],["article",Ze],["aside",Ze],["blockquote",Ze],["details",Ze],["div",Ze],["dl",Ze],["fieldset",Ze],["figcaption",Ze],["figure",Ze],["footer",Ze],["form",Ze],["header",Ze],["hr",Ze],["main",Ze],["nav",Ze],["ol",Ze],["pre",Ze],["section",Ze],["table",Ze],["ul",Ze],["rt",Sb],["rp",Sb],["tbody",Eb],["tfoot",Eb]]),OA=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),_b=new Set(["math","svg"]),Tb=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),$A=/\s|\//,AA=function(){function t(e,n){n===void 0&&(n={});var r,o,a,s,l;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(r=n.lowerCaseTags)!==null&&r!==void 0?r:!n.xmlMode,this.lowerCaseAttributeNames=(o=n.lowerCaseAttributeNames)!==null&&o!==void 0?o:!n.xmlMode,this.tokenizer=new((a=n.Tokenizer)!==null&&a!==void 0?a:Bl.default)(this.options,this),(l=(s=this.cbs).onparserinit)===null||l===void 0||l.call(s,this)}return t.prototype.ontext=function(e,n){var r,o,a=this.getSlice(e,n);this.endIndex=n-1,(o=(r=this.cbs).ontext)===null||o===void 0||o.call(r,a),this.startIndex=n},t.prototype.ontextentity=function(e){var n,r,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(r=(n=this.cbs).ontext)===null||r===void 0||r.call(n,(0,xb.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&OA.has(e)},t.prototype.onopentagname=function(e,n){this.endIndex=n;var r=this.getSlice(e,n);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)},t.prototype.emitOpenTag=function(e){var n,r,o,a;this.openTagStart=this.startIndex,this.tagname=e;var s=!this.options.xmlMode&&NA.get(e);if(s)for(;this.stack.length>0&&s.has(this.stack[this.stack.length-1]);){var l=this.stack.pop();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,l,!0)}this.isVoidElement(e)||(this.stack.push(e),_b.has(e)?this.foreignContext.push(!0):Tb.has(e)&&this.foreignContext.push(!1)),(a=(o=this.cbs).onopentagname)===null||a===void 0||a.call(o,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,n){var r,o,a,s,l,u;this.endIndex=n;var c=this.getSlice(e,n);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(_b.has(c)||Tb.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((o=(r=this.cbs).onopentagname)===null||o===void 0||o.call(r,"br"),(s=(a=this.cbs).onopentag)===null||s===void 0||s.call(a,"br",{},!0),(u=(l=this.cbs).onclosetag)===null||u===void 0||u.call(l,"br",!1));else{var d=this.stack.lastIndexOf(c);if(d!==-1)if(this.cbs.onclosetag)for(var p=this.stack.length-d;p--;)this.cbs.onclosetag(this.stack.pop(),p!==0);else this.stack.length=d;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var n,r,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,o,!e),this.stack.pop())},t.prototype.onattribname=function(e,n){this.startIndex=e;var r=this.getSlice(e,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},t.prototype.onattribdata=function(e,n){this.attribvalue+=this.getSlice(e,n)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,xb.fromCodePoint)(e)},t.prototype.onattribend=function(e,n){var r,o;this.endIndex=n,(o=(r=this.cbs).onattribute)===null||o===void 0||o.call(r,this.attribname,this.attribvalue,e===Bl.QuoteType.Double?'"':e===Bl.QuoteType.Single?"'":e===Bl.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var n=e.search($A),r=n<0?e:e.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},t.prototype.ondeclaration=function(e,n){this.endIndex=n;var r=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(o),"!".concat(r))}this.startIndex=n+1},t.prototype.onprocessinginstruction=function(e,n){this.endIndex=n;var r=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(r))}this.startIndex=n+1},t.prototype.oncomment=function(e,n,r){var o,a,s,l;this.endIndex=n,(a=(o=this.cbs).oncomment)===null||a===void 0||a.call(o,this.getSlice(e,n-r)),(l=(s=this.cbs).oncommentend)===null||l===void 0||l.call(s),this.startIndex=n+1},t.prototype.oncdata=function(e,n,r){var o,a,s,l,u,c,d,p,f,h;this.endIndex=n;var m=this.getSlice(e,n-r);this.options.xmlMode||this.options.recognizeCDATA?((a=(o=this.cbs).oncdatastart)===null||a===void 0||a.call(o),(l=(s=this.cbs).ontext)===null||l===void 0||l.call(s,m),(c=(u=this.cbs).oncdataend)===null||c===void 0||c.call(u)):((p=(d=this.cbs).oncomment)===null||p===void 0||p.call(d,"[CDATA[".concat(m,"]]")),(h=(f=this.cbs).oncommentend)===null||h===void 0||h.call(f)),this.startIndex=n+1},t.prototype.onend=function(){var e,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(n=(e=this.cbs).onend)===null||n===void 0||n.call(e)},t.prototype.reset=function(){var e,n,r,o;(n=(e=this.cbs).onreset)===null||n===void 0||n.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(o=(r=this.cbs).onparserinit)===null||o===void 0||o.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,n){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(e-this.bufferOffset,n-this.bufferOffset);n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t}();Qa.Parser=AA;var Sr={},Pi={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function n(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(Pi);var Pe={},Gr=me&&me.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Za=me&&me.__assign||function(){return Za=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Za.apply(this,arguments)};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.cloneNode=Pe.hasChildren=Pe.isDocument=Pe.isDirective=Pe.isComment=Pe.isText=Pe.isCDATA=Pe.isTag=Pe.Element=Pe.Document=Pe.CDATA=Pe.NodeWithChildren=Pe.ProcessingInstruction=Pe.Comment=Pe.Text=Pe.DataNode=Pe.Node=void 0;var nn=Pi,If=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),Rf(this,e)},t}();Pe.Node=If;var Pl=function(t){Gr(e,t);function e(n){var r=t.call(this)||this;return r.data=n,r}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),e}(If);Pe.DataNode=Pl;var Nb=function(t){Gr(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=nn.ElementType.Text,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(Pl);Pe.Text=Nb;var Ob=function(t){Gr(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=nn.ElementType.Comment,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(Pl);Pe.Comment=Ob;var $b=function(t){Gr(e,t);function e(n,r){var o=t.call(this,r)||this;return o.name=n,o.type=nn.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(Pl);Pe.ProcessingInstruction=$b;var Vl=function(t){Gr(e,t);function e(n){var r=t.call(this)||this;return r.children=n,r}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),e}(If);Pe.NodeWithChildren=Vl;var Ab=function(t){Gr(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=nn.ElementType.CDATA,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(Vl);Pe.CDATA=Ab;var Mb=function(t){Gr(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=nn.ElementType.Root,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(Vl);Pe.Document=Mb;var Db=function(t){Gr(e,t);function e(n,r,o,a){o===void 0&&(o=[]),a===void 0&&(a=n==="script"?nn.ElementType.Script:n==="style"?nn.ElementType.Style:nn.ElementType.Tag);var s=t.call(this,o)||this;return s.name=n,s.attribs=r,s.type=a,s}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var o,a;return{name:r,value:n.attribs[r],namespace:(o=n["x-attribsNamespace"])===null||o===void 0?void 0:o[r],prefix:(a=n["x-attribsPrefix"])===null||a===void 0?void 0:a[r]}})},enumerable:!1,configurable:!0}),e}(Vl);Pe.Element=Db;function Bb(t){return(0,nn.isTag)(t)}Pe.isTag=Bb;function Pb(t){return t.type===nn.ElementType.CDATA}Pe.isCDATA=Pb;function Vb(t){return t.type===nn.ElementType.Text}Pe.isText=Vb;function Lb(t){return t.type===nn.ElementType.Comment}Pe.isComment=Lb;function Ib(t){return t.type===nn.ElementType.Directive}Pe.isDirective=Ib;function Rb(t){return t.type===nn.ElementType.Root}Pe.isDocument=Rb;function MA(t){return Object.prototype.hasOwnProperty.call(t,"children")}Pe.hasChildren=MA;function Rf(t,e){e===void 0&&(e=!1);var n;if(Vb(t))n=new Nb(t.data);else if(Lb(t))n=new Ob(t.data);else if(Bb(t)){var r=e?zf(t.children):[],o=new Db(t.name,Za({},t.attribs),r);r.forEach(function(u){return u.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=Za({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=Za({},t["x-attribsPrefix"])),n=o}else if(Pb(t)){var r=e?zf(t.children):[],a=new Ab(r);r.forEach(function(c){return c.parent=a}),n=a}else if(Rb(t)){var r=e?zf(t.children):[],s=new Mb(r);r.forEach(function(c){return c.parent=s}),t["x-mode"]&&(s["x-mode"]=t["x-mode"]),n=s}else if(Ib(t)){var l=new $b(t.name,t.data);t["x-name"]!=null&&(l["x-name"]=t["x-name"],l["x-publicId"]=t["x-publicId"],l["x-systemId"]=t["x-systemId"]),n=l}else throw new Error("Not implemented yet: ".concat(t.type));return n.startIndex=t.startIndex,n.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(n.sourceCodeLocation=t.sourceCodeLocation),n}Pe.cloneNode=Rf;function zf(t){for(var e=t.map(function(r){return Rf(r,!0)}),n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}(function(t){var e=me&&me.__createBinding||(Object.create?function(l,u,c,d){d===void 0&&(d=c);var p=Object.getOwnPropertyDescriptor(u,c);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(l,d,p)}:function(l,u,c,d){d===void 0&&(d=c),l[d]=u[c]}),n=me&&me.__exportStar||function(l,u){for(var c in l)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&e(u,l,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=Pi,o=Pe;n(Pe,t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function l(u,c,d){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof c=="function"&&(d=c,c=a),typeof u=="object"&&(c=u,u=void 0),this.callback=u??null,this.options=c??a,this.elementCB=d??null}return l.prototype.onparserinit=function(u){this.parser=u},l.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(u){this.handleCallback(u)},l.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},l.prototype.onopentag=function(u,c){var d=this.options.xmlMode?r.ElementType.Tag:void 0,p=new o.Element(u,c,void 0,d);this.addNode(p),this.tagStack.push(p)},l.prototype.ontext=function(u){var c=this.lastNode;if(c&&c.type===r.ElementType.Text)c.data+=u,this.options.withEndIndices&&(c.endIndex=this.parser.endIndex);else{var d=new o.Text(u);this.addNode(d),this.lastNode=d}},l.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=u;return}var c=new o.Comment(u);this.addNode(c),this.lastNode=c},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var u=new o.Text(""),c=new o.CDATA([u]);this.addNode(c),u.parent=c,this.lastNode=u},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(u,c){var d=new o.ProcessingInstruction(u,c);this.addNode(d)},l.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},l.prototype.addNode=function(u){var c=this.tagStack[this.tagStack.length-1],d=c.children[c.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),c.children.push(u),d&&(u.prev=d,d.next=u),u.parent=c,this.lastNode=null},l}();t.DomHandler=s,t.default=s})(Sr);var Ll={},hn={},es={},zb={},Ff={},Hf={};Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var qf={};Object.defineProperty(qf,"__esModule",{value:!0}),qf.default=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var jf={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(a){var s="";return a>65535&&(a-=65536,s+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),s+=String.fromCharCode(a),s};function r(a){var s;return a>=55296&&a<=57343||a>1114111?65533:(s=n.get(a))!==null&&s!==void 0?s:a}t.replaceCodePoint=r;function o(a){return(0,t.fromCodePoint)(r(a))}t.default=o})(jf),function(t){var e=me&&me.__createBinding||(Object.create?function(k,$,D,V){V===void 0&&(V=D);var S=Object.getOwnPropertyDescriptor($,D);(!S||("get"in S?!$.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return $[D]}}),Object.defineProperty(k,V,S)}:function(k,$,D,V){V===void 0&&(V=D),k[V]=$[D]}),n=me&&me.__setModuleDefault||(Object.create?function(k,$){Object.defineProperty(k,"default",{enumerable:!0,value:$})}:function(k,$){k.default=$}),r=me&&me.__importStar||function(k){if(k&&k.__esModule)return k;var $={};if(k!=null)for(var D in k)D!=="default"&&Object.prototype.hasOwnProperty.call(k,D)&&e($,k,D);return n($,k),$},o=me&&me.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var a=o(Hf);t.htmlDecodeTree=a.default;var s=o(qf);t.xmlDecodeTree=s.default;var l=r(jf);t.decodeCodePoint=l.default;var u=jf;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var c;(function(k){k[k.NUM=35]="NUM",k[k.SEMI=59]="SEMI",k[k.EQUALS=61]="EQUALS",k[k.ZERO=48]="ZERO",k[k.NINE=57]="NINE",k[k.LOWER_A=97]="LOWER_A",k[k.LOWER_F=102]="LOWER_F",k[k.LOWER_X=120]="LOWER_X",k[k.LOWER_Z=122]="LOWER_Z",k[k.UPPER_A=65]="UPPER_A",k[k.UPPER_F=70]="UPPER_F",k[k.UPPER_Z=90]="UPPER_Z"})(c||(c={}));var d=32,p;(function(k){k[k.VALUE_LENGTH=49152]="VALUE_LENGTH",k[k.BRANCH_LENGTH=16256]="BRANCH_LENGTH",k[k.JUMP_TABLE=127]="JUMP_TABLE"})(p=t.BinTrieFlags||(t.BinTrieFlags={}));function f(k){return k>=c.ZERO&&k<=c.NINE}function h(k){return k>=c.UPPER_A&&k<=c.UPPER_F||k>=c.LOWER_A&&k<=c.LOWER_F}function m(k){return k>=c.UPPER_A&&k<=c.UPPER_Z||k>=c.LOWER_A&&k<=c.LOWER_Z||f(k)}function g(k){return k===c.EQUALS||m(k)}var b;(function(k){k[k.EntityStart=0]="EntityStart",k[k.NumericStart=1]="NumericStart",k[k.NumericDecimal=2]="NumericDecimal",k[k.NumericHex=3]="NumericHex",k[k.NamedEntity=4]="NamedEntity"})(b||(b={}));var v;(function(k){k[k.Legacy=0]="Legacy",k[k.Strict=1]="Strict",k[k.Attribute=2]="Attribute"})(v=t.DecodingMode||(t.DecodingMode={}));var x=function(){function k($,D,V){this.decodeTree=$,this.emitCodePoint=D,this.errors=V,this.state=b.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=v.Strict}return k.prototype.startEntity=function($){this.decodeMode=$,this.state=b.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},k.prototype.write=function($,D){switch(this.state){case b.EntityStart:return $.charCodeAt(D)===c.NUM?(this.state=b.NumericStart,this.consumed+=1,this.stateNumericStart($,D+1)):(this.state=b.NamedEntity,this.stateNamedEntity($,D));case b.NumericStart:return this.stateNumericStart($,D);case b.NumericDecimal:return this.stateNumericDecimal($,D);case b.NumericHex:return this.stateNumericHex($,D);case b.NamedEntity:return this.stateNamedEntity($,D)}},k.prototype.stateNumericStart=function($,D){return D>=$.length?-1:($.charCodeAt(D)|d)===c.LOWER_X?(this.state=b.NumericHex,this.consumed+=1,this.stateNumericHex($,D+1)):(this.state=b.NumericDecimal,this.stateNumericDecimal($,D))},k.prototype.addToNumericResult=function($,D,V,S){if(D!==V){var O=V-D;this.result=this.result*Math.pow(S,O)+parseInt($.substr(D,O),S),this.consumed+=O}},k.prototype.stateNumericHex=function($,D){for(var V=D;D<$.length;){var S=$.charCodeAt(D);if(f(S)||h(S))D+=1;else return this.addToNumericResult($,V,D,16),this.emitNumericEntity(S,3)}return this.addToNumericResult($,V,D,16),-1},k.prototype.stateNumericDecimal=function($,D){for(var V=D;D<$.length;){var S=$.charCodeAt(D);if(f(S))D+=1;else return this.addToNumericResult($,V,D,10),this.emitNumericEntity(S,2)}return this.addToNumericResult($,V,D,10),-1},k.prototype.emitNumericEntity=function($,D){var V;if(this.consumed<=D)return(V=this.errors)===null||V===void 0||V.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if($===c.SEMI)this.consumed+=1;else if(this.decodeMode===v.Strict)return 0;return this.emitCodePoint((0,l.replaceCodePoint)(this.result),this.consumed),this.errors&&($!==c.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},k.prototype.stateNamedEntity=function($,D){for(var V=this.decodeTree,S=V[this.treeIndex],O=(S&p.VALUE_LENGTH)>>14;D<$.length;D++,this.excess++){var w=$.charCodeAt(D);if(this.treeIndex=y(V,S,this.treeIndex+Math.max(1,O),w),this.treeIndex<0)return this.result===0||this.decodeMode===v.Attribute&&(O===0||g(w))?0:this.emitNotTerminatedNamedEntity();if(S=V[this.treeIndex],O=(S&p.VALUE_LENGTH)>>14,O!==0){if(w===c.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==v.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},k.prototype.emitNotTerminatedNamedEntity=function(){var $,D=this,V=D.result,S=D.decodeTree,O=(S[V]&p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(V,O,this.consumed),($=this.errors)===null||$===void 0||$.missingSemicolonAfterCharacterReference(),this.consumed},k.prototype.emitNamedEntityData=function($,D,V){var S=this.decodeTree;return this.emitCodePoint(D===1?S[$]&~p.VALUE_LENGTH:S[$+1],V),D===3&&this.emitCodePoint(S[$+2],V),V},k.prototype.end=function(){var $;switch(this.state){case b.NamedEntity:return this.result!==0&&(this.decodeMode!==v.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case b.NumericDecimal:return this.emitNumericEntity(0,2);case b.NumericHex:return this.emitNumericEntity(0,3);case b.NumericStart:return($=this.errors)===null||$===void 0||$.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case b.EntityStart:return 0}},k}();t.EntityDecoder=x;function N(k){var $="",D=new x(k,function(V){return $+=(0,l.fromCodePoint)(V)});return function(S,O){for(var w=0,A=0;(A=S.indexOf("&",A))>=0;){$+=S.slice(w,A),D.startEntity(O);var z=D.write(S,A+1);if(z<0){w=A+D.end();break}w=A+z,A=z===0?w+1:w}var P=$+S.slice(w);return $="",P}}function y(k,$,D,V){var S=($&p.BRANCH_LENGTH)>>7,O=$&p.JUMP_TABLE;if(S===0)return O!==0&&V===O?D:-1;if(O){var w=V-O;return w<0||w>=S?-1:k[D+w]-1}for(var A=D,z=A+S-1;A<=z;){var P=A+z>>>1,q=k[P];if(q<V)A=P+1;else if(q>V)z=P-1;else return k[P+S]}return-1}t.determineBranch=y;var M=N(a.default),E=N(s.default);function C(k,$){return $===void 0&&($=v.Legacy),M(k,$)}t.decodeHTML=C;function T(k){return M(k,v.Attribute)}t.decodeHTMLAttribute=T;function B(k){return M(k,v.Strict)}t.decodeHTMLStrict=B;function L(k){return E(k,v.Strict)}t.decodeXML=L}(Ff);var Ro={},Uf={};Object.defineProperty(Uf,"__esModule",{value:!0});function Il(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}Uf.default=new Map(Il([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(Il([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Il([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Il([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var Rl={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(o,a){return o.codePointAt(a)}:function(o,a){return(o.charCodeAt(a)&64512)===55296?(o.charCodeAt(a)-55296)*1024+o.charCodeAt(a+1)-56320+65536:o.charCodeAt(a)};function n(o){for(var a="",s=0,l;(l=t.xmlReplacer.exec(o))!==null;){var u=l.index,c=o.charCodeAt(u),d=e.get(c);d!==void 0?(a+=o.substring(s,u)+d,s=u+1):(a+="".concat(o.substring(s,u),"&#x").concat((0,t.getCodePoint)(o,u).toString(16),";"),s=t.xmlReplacer.lastIndex+=+((c&64512)===55296))}return a+o.substr(s)}t.encodeXML=n,t.escape=n;function r(o,a){return function(l){for(var u,c=0,d="";u=o.exec(l);)c!==u.index&&(d+=l.substring(c,u.index)),d+=a.get(u[0].charCodeAt(0)),c=u.index+1;return d+l.substring(c)}}t.escapeUTF8=r(/[&<>'"]/g,e),t.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(Rl);var DA=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.encodeNonAsciiHTML=Ro.encodeHTML=void 0;var BA=DA(Uf),Fb=Rl,PA=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function VA(t){return Hb(PA,t)}Ro.encodeHTML=VA;function LA(t){return Hb(Fb.xmlReplacer,t)}Ro.encodeNonAsciiHTML=LA;function Hb(t,e){for(var n="",r=0,o;(o=t.exec(e))!==null;){var a=o.index;n+=e.substring(r,a);var s=e.charCodeAt(a),l=BA.default.get(s);if(typeof l=="object"){if(a+1<e.length){var u=e.charCodeAt(a+1),c=typeof l.n=="number"?l.n===u?l.o:void 0:l.n.get(u);if(c!==void 0){n+=c,r=t.lastIndex+=1;continue}}l=l.v}if(l!==void 0)n+=l,r=a+1;else{var d=(0,Fb.getCodePoint)(e,a);n+="&#x".concat(d.toString(16),";"),r=t.lastIndex+=+(d!==s)}}return n+e.substr(r)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=Ff,n=Ro,r=Rl,o;(function(f){f[f.XML=0]="XML",f[f.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var a;(function(f){f[f.UTF8=0]="UTF8",f[f.ASCII=1]="ASCII",f[f.Extensive=2]="Extensive",f[f.Attribute=3]="Attribute",f[f.Text=4]="Text"})(a=t.EncodingMode||(t.EncodingMode={}));function s(f,h){h===void 0&&(h=o.XML);var m=typeof h=="number"?h:h.level;if(m===o.HTML){var g=typeof h=="object"?h.mode:void 0;return(0,e.decodeHTML)(f,g)}return(0,e.decodeXML)(f)}t.decode=s;function l(f,h){var m;h===void 0&&(h=o.XML);var g=typeof h=="number"?{level:h}:h;return(m=g.mode)!==null&&m!==void 0||(g.mode=e.DecodingMode.Strict),s(f,g)}t.decodeStrict=l;function u(f,h){h===void 0&&(h=o.XML);var m=typeof h=="number"?{level:h}:h;return m.mode===a.UTF8?(0,r.escapeUTF8)(f):m.mode===a.Attribute?(0,r.escapeAttribute)(f):m.mode===a.Text?(0,r.escapeText)(f):m.level===o.HTML?m.mode===a.ASCII?(0,n.encodeNonAsciiHTML)(f):(0,n.encodeHTML)(f):(0,r.encodeXML)(f)}t.encode=u;var c=Rl;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var d=Ro;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return d.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return d.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return d.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return d.encodeHTML}});var p=Ff;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return p.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return p.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return p.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return p.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return p.decodeXML}})})(zb);var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.attributeNames=Vi.elementNames=void 0,Vi.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]})),Vi.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var Li=me&&me.__assign||function(){return Li=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Li.apply(this,arguments)},IA=me&&me.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),RA=me&&me.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),zA=me&&me.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&IA(e,t,n);return RA(e,t),e};Object.defineProperty(es,"__esModule",{value:!0}),es.render=void 0;var _r=zA(Pi),zl=zb,qb=Vi,FA=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function HA(t){return t.replace(/"/g,"&quot;")}function qA(t,e){var n;if(t){var r=((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)===!1?HA:e.xmlMode||e.encodeEntities!=="utf8"?zl.encodeXML:zl.escapeAttribute;return Object.keys(t).map(function(o){var a,s,l=(a=t[o])!==null&&a!==void 0?a:"";return e.xmlMode==="foreign"&&(o=(s=qb.attributeNames.get(o))!==null&&s!==void 0?s:o),!e.emptyAttrs&&!e.xmlMode&&l===""?o:"".concat(o,'="').concat(r(l),'"')}).join(" ")}}var jb=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Fl(t,e){e===void 0&&(e={});for(var n=("length"in t)?t:[t],r="",o=0;o<n.length;o++)r+=jA(n[o],e);return r}es.render=Fl,es.default=Fl;function jA(t,e){switch(t.type){case _r.Root:return Fl(t.children,e);case _r.Doctype:case _r.Directive:return YA(t);case _r.Comment:return XA(t);case _r.CDATA:return JA(t);case _r.Script:case _r.Style:case _r.Tag:return KA(t,e);case _r.Text:return GA(t,e)}}var UA=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),WA=new Set(["svg","math"]);function KA(t,e){var n;e.xmlMode==="foreign"&&(t.name=(n=qb.elementNames.get(t.name))!==null&&n!==void 0?n:t.name,t.parent&&UA.has(t.parent.name)&&(e=Li(Li({},e),{xmlMode:!1}))),!e.xmlMode&&WA.has(t.name)&&(e=Li(Li({},e),{xmlMode:"foreign"}));var r="<".concat(t.name),o=qA(t.attribs,e);return o&&(r+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&jb.has(t.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",t.children.length>0&&(r+=Fl(t.children,e)),(e.xmlMode||!jb.has(t.name))&&(r+="</".concat(t.name,">"))),r}function YA(t){return"<".concat(t.data,">")}function GA(t,e){var n,r=t.data||"";return((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&FA.has(t.parent.name))&&(r=e.xmlMode||e.encodeEntities!=="utf8"?(0,zl.encodeXML)(r):(0,zl.escapeText)(r)),r}function JA(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function XA(t){return"<!--".concat(t.data,"-->")}var QA=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hn,"__esModule",{value:!0}),hn.innerText=hn.textContent=hn.getText=hn.getInnerHTML=hn.getOuterHTML=void 0;var sr=Sr,ZA=QA(es),eM=Pi;function Ub(t,e){return(0,ZA.default)(t,e)}hn.getOuterHTML=Ub;function tM(t,e){return(0,sr.hasChildren)(t)?t.children.map(function(n){return Ub(n,e)}).join(""):""}hn.getInnerHTML=tM;function Hl(t){return Array.isArray(t)?t.map(Hl).join(""):(0,sr.isTag)(t)?t.name==="br"?`
`:Hl(t.children):(0,sr.isCDATA)(t)?Hl(t.children):(0,sr.isText)(t)?t.data:""}hn.getText=Hl;function Wf(t){return Array.isArray(t)?t.map(Wf).join(""):(0,sr.hasChildren)(t)&&!(0,sr.isComment)(t)?Wf(t.children):(0,sr.isText)(t)?t.data:""}hn.textContent=Wf;function Kf(t){return Array.isArray(t)?t.map(Kf).join(""):(0,sr.hasChildren)(t)&&(t.type===eM.ElementType.Tag||(0,sr.isCDATA)(t))?Kf(t.children):(0,sr.isText)(t)?t.data:""}hn.innerText=Kf;var vt={};Object.defineProperty(vt,"__esModule",{value:!0}),vt.prevElementSibling=vt.nextElementSibling=vt.getName=vt.hasAttrib=vt.getAttributeValue=vt.getSiblings=vt.getParent=vt.getChildren=void 0;var Yf=Sr;function Wb(t){return(0,Yf.hasChildren)(t)?t.children:[]}vt.getChildren=Wb;function Kb(t){return t.parent||null}vt.getParent=Kb;function nM(t){var e,n,r=Kb(t);if(r!=null)return Wb(r);for(var o=[t],a=t.prev,s=t.next;a!=null;)o.unshift(a),e=a,a=e.prev;for(;s!=null;)o.push(s),n=s,s=n.next;return o}vt.getSiblings=nM;function rM(t,e){var n;return(n=t.attribs)===null||n===void 0?void 0:n[e]}vt.getAttributeValue=rM;function oM(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}vt.hasAttrib=oM;function iM(t){return t.name}vt.getName=iM;function aM(t){for(var e,n=t.next;n!==null&&!(0,Yf.isTag)(n);)e=n,n=e.next;return n}vt.nextElementSibling=aM;function sM(t){for(var e,n=t.prev;n!==null&&!(0,Yf.isTag)(n);)e=n,n=e.prev;return n}vt.prevElementSibling=sM;var rn={};Object.defineProperty(rn,"__esModule",{value:!0}),rn.prepend=rn.prependChild=rn.append=rn.appendChild=rn.replaceElement=rn.removeElement=void 0;function ts(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,n=e.lastIndexOf(t);n>=0&&e.splice(n,1)}t.next=null,t.prev=null,t.parent=null}rn.removeElement=ts;function lM(t,e){var n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;r&&(r.prev=e);var o=e.parent=t.parent;if(o){var a=o.children;a[a.lastIndexOf(t)]=e,t.parent=null}}rn.replaceElement=lM;function uM(t,e){if(ts(e),e.next=null,e.parent=t,t.children.push(e)>1){var n=t.children[t.children.length-2];n.next=e,e.prev=n}else e.prev=null}rn.appendChild=uM;function cM(t,e){ts(e);var n=t.parent,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){var o=n.children;o.splice(o.lastIndexOf(r),0,e)}}else n&&n.children.push(e)}rn.append=cM;function dM(t,e){if(ts(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var n=t.children[1];n.prev=e,e.next=n}else e.next=null}rn.prependChild=dM;function fM(t,e){ts(e);var n=t.parent;if(n){var r=n.children;r.splice(r.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}rn.prepend=fM;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.findAll=Kt.existsOne=Kt.findOne=Kt.findOneChild=Kt.find=Kt.filter=void 0;var ql=Sr;function pM(t,e,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),Yb(t,Array.isArray(e)?e:[e],n,r)}Kt.filter=pM;function Yb(t,e,n,r){for(var o=[],a=[e],s=[0];;){if(s[0]>=a[0].length){if(s.length===1)return o;a.shift(),s.shift();continue}var l=a[0][s[0]++];if(t(l)&&(o.push(l),--r<=0))return o;n&&(0,ql.hasChildren)(l)&&l.children.length>0&&(s.unshift(0),a.unshift(l.children))}}Kt.find=Yb;function hM(t,e){return e.find(t)}Kt.findOneChild=hM;function Gb(t,e,n){n===void 0&&(n=!0);for(var r=null,o=0;o<e.length&&!r;o++){var a=e[o];if((0,ql.isTag)(a))t(a)?r=a:n&&a.children.length>0&&(r=Gb(t,a.children,!0));else continue}return r}Kt.findOne=Gb;function Jb(t,e){return e.some(function(n){return(0,ql.isTag)(n)&&(t(n)||Jb(t,n.children))})}Kt.existsOne=Jb;function mM(t,e){for(var n=[],r=[e],o=[0];;){if(o[0]>=r[0].length){if(r.length===1)return n;r.shift(),o.shift();continue}var a=r[0][o[0]++];(0,ql.isTag)(a)&&(t(a)&&n.push(a),a.children.length>0&&(o.unshift(0),r.unshift(a.children)))}}Kt.findAll=mM;var mn={};Object.defineProperty(mn,"__esModule",{value:!0}),mn.getElementsByTagType=mn.getElementsByTagName=mn.getElementById=mn.getElements=mn.testElement=void 0;var zo=Sr,jl=Kt,Ul={tag_name:function(t){return typeof t=="function"?function(e){return(0,zo.isTag)(e)&&t(e.name)}:t==="*"?zo.isTag:function(e){return(0,zo.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,zo.isText)(e)&&t(e.data)}:function(e){return(0,zo.isText)(e)&&e.data===t}}};function Xb(t,e){return typeof e=="function"?function(n){return(0,zo.isTag)(n)&&e(n.attribs[t])}:function(n){return(0,zo.isTag)(n)&&n.attribs[t]===e}}function gM(t,e){return function(n){return t(n)||e(n)}}function Qb(t){var e=Object.keys(t).map(function(n){var r=t[n];return Object.prototype.hasOwnProperty.call(Ul,n)?Ul[n](r):Xb(n,r)});return e.length===0?null:e.reduce(gM)}function bM(t,e){var n=Qb(t);return n?n(e):!0}mn.testElement=bM;function yM(t,e,n,r){r===void 0&&(r=1/0);var o=Qb(t);return o?(0,jl.filter)(o,e,n,r):[]}mn.getElements=yM;function wM(t,e,n){return n===void 0&&(n=!0),Array.isArray(e)||(e=[e]),(0,jl.findOne)(Xb("id",t),e,n)}mn.getElementById=wM;function vM(t,e,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,jl.filter)(Ul.tag_name(t),e,n,r)}mn.getElementsByTagName=vM;function kM(t,e,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,jl.filter)(Ul.tag_type(t),e,n,r)}mn.getElementsByTagType=kM;var Zb={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var e=Sr;function n(s){for(var l=s.length;--l>=0;){var u=s[l];if(l>0&&s.lastIndexOf(u,l-1)>=0){s.splice(l,1);continue}for(var c=u.parent;c;c=c.parent)if(s.includes(c)){s.splice(l,1);break}}return s}t.removeSubsets=n;var r;(function(s){s[s.DISCONNECTED=1]="DISCONNECTED",s[s.PRECEDING=2]="PRECEDING",s[s.FOLLOWING=4]="FOLLOWING",s[s.CONTAINS=8]="CONTAINS",s[s.CONTAINED_BY=16]="CONTAINED_BY"})(r=t.DocumentPosition||(t.DocumentPosition={}));function o(s,l){var u=[],c=[];if(s===l)return 0;for(var d=(0,e.hasChildren)(s)?s:s.parent;d;)u.unshift(d),d=d.parent;for(d=(0,e.hasChildren)(l)?l:l.parent;d;)c.unshift(d),d=d.parent;for(var p=Math.min(u.length,c.length),f=0;f<p&&u[f]===c[f];)f++;if(f===0)return r.DISCONNECTED;var h=u[f-1],m=h.children,g=u[f],b=c[f];return m.indexOf(g)>m.indexOf(b)?h===l?r.FOLLOWING|r.CONTAINED_BY:r.FOLLOWING:h===s?r.PRECEDING|r.CONTAINS:r.PRECEDING}t.compareDocumentPosition=o;function a(s){return s=s.filter(function(l,u,c){return!c.includes(l,u+1)}),s.sort(function(l,u){var c=o(l,u);return c&r.PRECEDING?-1:c&r.FOLLOWING?1:0}),s}t.uniqueSort=a})(Zb);var Wl={};Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.getFeed=void 0;var xM=hn,ns=mn;function EM(t){var e=Kl(NM,t);return e?e.name==="feed"?CM(e):SM(e):null}Wl.getFeed=EM;function CM(t){var e,n=t.children,r={type:"atom",items:(0,ns.getElementsByTagName)("entry",n).map(function(s){var l,u=s.children,c={media:ey(u)};on(c,"id","id",u),on(c,"title","title",u);var d=(l=Kl("link",u))===null||l===void 0?void 0:l.attribs.href;d&&(c.link=d);var p=Jr("summary",u)||Jr("content",u);p&&(c.description=p);var f=Jr("updated",u);return f&&(c.pubDate=new Date(f)),c})};on(r,"id","id",n),on(r,"title","title",n);var o=(e=Kl("link",n))===null||e===void 0?void 0:e.attribs.href;o&&(r.link=o),on(r,"description","subtitle",n);var a=Jr("updated",n);return a&&(r.updated=new Date(a)),on(r,"author","email",n,!0),r}function SM(t){var e,n,r=(n=(e=Kl("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&n!==void 0?n:[],o={type:t.name.substr(0,3),id:"",items:(0,ns.getElementsByTagName)("item",t.children).map(function(s){var l=s.children,u={media:ey(l)};on(u,"id","guid",l),on(u,"title","title",l),on(u,"link","link",l),on(u,"description","description",l);var c=Jr("pubDate",l)||Jr("dc:date",l);return c&&(u.pubDate=new Date(c)),u})};on(o,"title","title",r),on(o,"link","link",r),on(o,"description","description",r);var a=Jr("lastBuildDate",r);return a&&(o.updated=new Date(a)),on(o,"author","managingEditor",r,!0),o}var _M=["url","type","lang"],TM=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function ey(t){return(0,ns.getElementsByTagName)("media:content",t).map(function(e){for(var n=e.attribs,r={medium:n.medium,isDefault:!!n.isDefault},o=0,a=_M;o<a.length;o++){var s=a[o];n[s]&&(r[s]=n[s])}for(var l=0,u=TM;l<u.length;l++){var s=u[l];n[s]&&(r[s]=parseInt(n[s],10))}return n.expression&&(r.expression=n.expression),r})}function Kl(t,e){return(0,ns.getElementsByTagName)(t,e,!0,1)[0]}function Jr(t,e,n){return n===void 0&&(n=!1),(0,xM.textContent)((0,ns.getElementsByTagName)(t,e,n,1)).trim()}function on(t,e,n,r,o){o===void 0&&(o=!1);var a=Jr(n,r,o);a&&(t[e]=a)}function NM(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=me&&me.__createBinding||(Object.create?function(o,a,s,l){l===void 0&&(l=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(o,l,u)}:function(o,a,s,l){l===void 0&&(l=s),o[l]=a[s]}),n=me&&me.__exportStar||function(o,a){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,n(hn,t),n(vt,t),n(rn,t),n(Kt,t),n(mn,t),n(Zb,t),n(Wl,t);var r=Sr;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})})(Ll),function(t){var e=me&&me.__createBinding||(Object.create?function(v,x,N,y){y===void 0&&(y=N);var M=Object.getOwnPropertyDescriptor(x,N);(!M||("get"in M?!x.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return x[N]}}),Object.defineProperty(v,y,M)}:function(v,x,N,y){y===void 0&&(y=N),v[y]=x[N]}),n=me&&me.__setModuleDefault||(Object.create?function(v,x){Object.defineProperty(v,"default",{enumerable:!0,value:x})}:function(v,x){v.default=x}),r=me&&me.__importStar||function(v){if(v&&v.__esModule)return v;var x={};if(v!=null)for(var N in v)N!=="default"&&Object.prototype.hasOwnProperty.call(v,N)&&e(x,v,N);return n(x,v),x},o=me&&me.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var a=Qa,s=Qa;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return s.Parser}});var l=Sr,u=Sr;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function c(v,x){var N=new l.DomHandler(void 0,x);return new a.Parser(N,x).end(v),N.root}t.parseDocument=c;function d(v,x){return c(v,x).children}t.parseDOM=d;function p(v,x,N){var y=new l.DomHandler(v,x,N);return new a.Parser(y,x)}t.createDomStream=p;var f=Df;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(f).default}}),t.ElementType=r(Pi);var h=Ll,m=Ll;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return m.getFeed}});var g={xmlMode:!0};function b(v,x){return x===void 0&&(x=g),(0,h.getFeed)(d(v,x))}t.parseFeed=b,t.DomUtils=r(Ll)}(kb);var OM=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Gf={};Object.defineProperty(Gf,"__esModule",{value:!0});/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function ty(t){return Object.prototype.toString.call(t)==="[object Object]"}function $M(t){var e,n;return ty(t)===!1?!1:(e=t.constructor,e===void 0?!0:(n=e.prototype,!(ty(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}Gf.isPlainObject=$M;var AM=function(e){return MM(e)&&!DM(e)};function MM(t){return!!t&&typeof t=="object"}function DM(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||VM(t)}var BM=typeof Symbol=="function"&&Symbol.for,PM=BM?Symbol.for("react.element"):60103;function VM(t){return t.$$typeof===PM}function LM(t){return Array.isArray(t)?[]:{}}function rs(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Ii(LM(t),t,e):t}function IM(t,e,n){return t.concat(e).map(function(r){return rs(r,n)})}function RM(t,e){if(!e.customMerge)return Ii;var n=e.customMerge(t);return typeof n=="function"?n:Ii}function zM(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function ny(t){return Object.keys(t).concat(zM(t))}function ry(t,e){try{return e in t}catch{return!1}}function FM(t,e){return ry(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function HM(t,e,n){var r={};return n.isMergeableObject(t)&&ny(t).forEach(function(o){r[o]=rs(t[o],n)}),ny(e).forEach(function(o){FM(t,o)||(ry(t,o)&&n.isMergeableObject(e[o])?r[o]=RM(o,n)(t[o],e[o],n):r[o]=rs(e[o],n))}),r}function Ii(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||IM,n.isMergeableObject=n.isMergeableObject||AM,n.cloneUnlessOtherwiseSpecified=rs;var r=Array.isArray(e),o=Array.isArray(t),a=r===o;return a?r?n.arrayMerge(t,e,n):HM(t,e,n):rs(e,n)}Ii.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,o){return Ii(r,o,n)},{})};var qM=Ii,jM=qM,oy={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.parseSrcset=n()})(me,function(){return function(e){function n(y){return y===" "||y==="	"||y===`
`||y==="\f"||y==="\r"}function r(y){var M,E=y.exec(e.substring(b));if(E)return M=E[0],b+=M.length,M}for(var o=e.length,a=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,l=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,c=/^\d+$/,d=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,p,f,h,m,g,b=0,v=[];;){if(r(s),b>=o)return v;p=r(l),f=[],p.slice(-1)===","?(p=p.replace(u,""),N()):x()}function x(){for(r(a),h="",m="in descriptor";;){if(g=e.charAt(b),m==="in descriptor")if(n(g))h&&(f.push(h),h="",m="after descriptor");else if(g===","){b+=1,h&&f.push(h),N();return}else if(g==="(")h=h+g,m="in parens";else if(g===""){h&&f.push(h),N();return}else h=h+g;else if(m==="in parens")if(g===")")h=h+g,m="in descriptor";else if(g===""){f.push(h),N();return}else h=h+g;else if(m==="after descriptor"&&!n(g))if(g===""){N();return}else m="in descriptor",b-=1;b+=1}}function N(){var y=!1,M,E,C,T,B={},L,k,$,D,V;for(T=0;T<f.length;T++)L=f[T],k=L[L.length-1],$=L.substring(0,L.length-1),D=parseInt($,10),V=parseFloat($),c.test($)&&k==="w"?((M||E)&&(y=!0),D===0?y=!0:M=D):d.test($)&&k==="x"?((M||E||C)&&(y=!0),V<0?y=!0:E=V):c.test($)&&k==="h"?((C||E)&&(y=!0),D===0?y=!0:C=D):y=!0;y?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+L+"'."):(B.url=p,M&&(B.w=M),E&&(B.d=E),C&&(B.h=C),v.push(B))}}})})(oy);var UM=oy.exports,Jf={exports:{}},ot=String,iy=function(){return{isColorSupported:!1,reset:ot,bold:ot,dim:ot,italic:ot,underline:ot,inverse:ot,hidden:ot,strikethrough:ot,black:ot,red:ot,green:ot,yellow:ot,blue:ot,magenta:ot,cyan:ot,white:ot,gray:ot,bgBlack:ot,bgRed:ot,bgGreen:ot,bgYellow:ot,bgBlue:ot,bgMagenta:ot,bgCyan:ot,bgWhite:ot}};Jf.exports=iy(),Jf.exports.createColors=iy;var WM=Jf.exports;const zn=uE(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let ay=WM,sy=zn,Xf=class tk extends Error{constructor(e,n,r,o,a,s){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),o&&(this.source=o),s&&(this.plugin=s),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,tk)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let n=this.source;e==null&&(e=ay.isColorSupported),sy&&e&&(n=sy(n));let r=n.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,r.length),s=String(a).length,l,u;if(e){let{bold:c,gray:d,red:p}=ay.createColors(!0);l=f=>c(p(f)),u=f=>d(f)}else l=u=c=>c;return r.slice(o,a).map((c,d)=>{let p=o+1+d,f=" "+(" "+p).slice(-s)+" | ";if(p===this.line){let h=u(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+u(f)+c+`
 `+h+l("^")}return" "+u(f)+c}).join(`
`)}toString(){let e=this.showSourceCode();return e&&(e=`

`+e+`
`),this.name+": "+this.message+e}};var Qf=Xf;Xf.default=Xf;var is={};is.isClean=Symbol("isClean"),is.my=Symbol("my");const ly={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function KM(t){return t[0].toUpperCase()+t.slice(1)}let Zf=class{constructor(e){this.builder=e}atrule(e,n){let r="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:o&&(r+=" "),e.nodes)this.block(e,r+o);else{let a=(e.raws.between||"")+(n?";":"");this.builder(r+o+a,e)}}beforeAfter(e,n){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):n==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let o=e.parent,a=0;for(;o&&o.type!=="root";)a+=1,o=o.parent;if(r.includes(`
`)){let s=this.raw(e,null,"indent");if(s.length)for(let l=0;l<a;l++)r+=s}return r}block(e,n){let r=this.raw(e,"between","beforeOpen");this.builder(n+r+"{",e,"start");let o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")}body(e){let n=e.nodes.length-1;for(;n>0&&e.nodes[n].type==="comment";)n-=1;let r=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let a=e.nodes[o],s=this.raw(a,"before");s&&this.builder(s),this.stringify(a,n!==o||r)}}comment(e){let n=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+n+e.text+r+"*/",e)}decl(e,n){let r=this.raw(e,"between","colon"),o=e.prop+r+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),n&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,n,r){let o;if(r||(r=n),n&&(o=e.raws[n],typeof o<"u"))return o;let a=e.parent;if(r==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return ly[r];let s=e.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[r]<"u")return s.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+KM(r);this[l]?o=this[l](s,e):s.walk(u=>{if(o=u.raws[n],typeof o<"u")return!1})}return typeof o>"u"&&(o=ly[r]),s.rawCache[r]=o,o}rawBeforeClose(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return n=r.raws.after,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(e,n){let r;return e.walkComments(o=>{if(typeof o.raws.before<"u")return r=o.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,n){let r;return e.walkDecls(o=>{if(typeof o.raws.before<"u")return r=o.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let n;return e.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(e){let n;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return n=r.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(e){let n;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(r=>{let o=r.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof r.raws.before<"u"){let a=r.raws.before.split(`
`);return n=a[a.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(e,n){let r=e[n],o=e.raws[n];return o&&o.value===r?o.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}};var uy=Zf;Zf.default=Zf;let YM=uy;function ep(t,e){new YM(e).stringify(t)}var Yl=ep;ep.default=ep;let{isClean:Gl,my:GM}=is,JM=Qf,XM=uy,QM=Yl;function tp(t,e){let n=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let o=t[r],a=typeof o;r==="parent"&&a==="object"?e&&(n[r]=e):r==="source"?n[r]=o:Array.isArray(o)?n[r]=o.map(s=>tp(s,n)):(a==="object"&&o!==null&&(o=tp(o)),n[r]=o)}return n}let np=class{constructor(e={}){this.raws={},this[Gl]=!1,this[GM]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let r of e[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=e[n]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let n in e)this[n]=e[n];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let n=tp(this);for(let r in e)n[r]=e[r];return n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}error(e,n={}){if(this.source){let{end:r,start:o}=this.rangeBy(n);return this.source.input.error(e,{column:o.column,line:o.line},{column:r.column,line:r.line},n)}return new JM(e)}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:n==="root"?()=>e.root().toProxy():e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Gl]){this[Gl]=!1;let e=this;for(;e=e.parent;)e[Gl]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,n){let r=this.source.start;if(e.index)r=this.positionInside(e.index,n);else if(e.word){n=this.toString();let o=n.indexOf(e.word);o!==-1&&(r=this.positionInside(o,n))}return r}positionInside(e,n){let r=n||this.toString(),o=this.source.start.column,a=this.source.start.line;for(let s=0;s<e;s++)r[s]===`
`?(o=1,a+=1):o+=1;return{column:o,line:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let n={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(e.word){let o=this.toString(),a=o.indexOf(e.word);a!==-1&&(n=this.positionInside(a,o),r=this.positionInside(a+e.word.length,o))}else e.start?n={column:e.start.column,line:e.start.line}:e.index&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line}),{end:r,start:n}}raw(e,n){return new XM().raw(this,e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let n=this,r=!1;for(let o of e)o===this?r=!0:r?(this.parent.insertAfter(n,o),n=o):this.parent.insertBefore(n,o);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,n){let r={},o=n==null;n=n||new Map;let a=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let l=this[s];if(Array.isArray(l))r[s]=l.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,n):u);else if(typeof l=="object"&&l.toJSON)r[s]=l.toJSON(null,n);else if(s==="source"){let u=n.get(l.input);u==null&&(u=a,n.set(l.input,a),a++),r[s]={end:l.end,inputId:u,start:l.start}}else r[s]=l}return o&&(r.inputs=[...n.keys()].map(s=>s.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=QM){e.stringify&&(e=e.stringify);let n="";return e(this,r=>{n+=r}),n}warn(e,n,r){let o={node:this};for(let a in r)o[a]=r[a];return e.warn(n,o)}get proxyOf(){return this}};var Jl=np;np.default=np;let ZM=Jl,rp=class extends ZM{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Xl=rp;rp.default=rp;let e9="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var t9={nanoid:(t=21)=>{let e="",n=t;for(;n--;)e+=e9[Math.random()*64|0];return e},customAlphabet:(t,e=21)=>(n=e)=>{let r="",o=n;for(;o--;)r+=t[Math.random()*t.length|0];return r}};let{SourceMapConsumer:cy,SourceMapGenerator:dy}=zn,{existsSync:n9,readFileSync:r9}=zn,{dirname:op,join:o9}=zn;function i9(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let ip=class{constructor(e,n){if(n.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=n.map?n.map.prev:void 0,o=this.loadMap(n.from,r);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=op(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new cy(this.text)),this.consumerCache}decodeInline(e){let n=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(n.test(e)||r.test(e))return i9(e.substr(RegExp.lastMatch.length));let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let n=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let r=e.lastIndexOf(n.pop()),o=e.indexOf("*/",r);r>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,o)))}loadFile(e){if(this.root=op(e),n9(e))return this.mapFile=e,r9(e,"utf-8").toString().trim()}loadMap(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let r=n(e);if(r){let o=this.loadFile(r);if(!o)throw new Error("Unable to load previous source map: "+r.toString());return o}}else{if(n instanceof cy)return dy.fromSourceMap(n).toString();if(n instanceof dy)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=o9(op(e),r)),this.loadFile(r)}}}startWith(e,n){return e?e.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var fy=ip;ip.default=ip;let{SourceMapConsumer:a9,SourceMapGenerator:s9}=zn,{fileURLToPath:py,pathToFileURL:Ql}=zn,{isAbsolute:ap,resolve:sp}=zn,{nanoid:l9}=t9,lp=zn,hy=Qf,u9=fy,up=Symbol("fromOffsetCache"),c9=!!(a9&&s9),my=!!(sp&&ap),Zl=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!my||/^\w+:\/\//.test(n.from)||ap(n.from)?this.file=n.from:this.file=sp(n.from)),my&&c9){let r=new u9(this.css,n);if(r.text){this.map=r;let o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+l9(6)+">"),this.map&&(this.map.file=this.from)}error(e,n,r,o={}){let a,s,l;if(n&&typeof n=="object"){let c=n,d=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);n=p.line,r=p.col}else n=c.line,r=c.column;if(typeof d.offset=="number"){let p=this.fromOffset(d.offset);s=p.line,l=p.col}else s=d.line,l=d.column}else if(!r){let c=this.fromOffset(n);n=c.line,r=c.col}let u=this.origin(n,r,s,l);return u?a=new hy(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,o.plugin):a=new hy(e,s===void 0?n:{column:r,line:n},s===void 0?r:{column:l,line:s},this.css,this.file,o.plugin),a.input={column:r,endColumn:l,endLine:s,line:n,source:this.css},this.file&&(Ql&&(a.input.url=Ql(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let n,r;if(this[up])r=this[up];else{let a=this.css.split(`
`);r=new Array(a.length);let s=0;for(let l=0,u=a.length;l<u;l++)r[l]=s,s+=a[l].length+1;this[up]=r}n=r[r.length-1];let o=0;if(e>=n)o=r.length-1;else{let a=r.length-2,s;for(;o<a;)if(s=o+(a-o>>1),e<r[s])a=s-1;else if(e>=r[s+1])o=s+1;else{o=s;break}}return{col:e-r[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:sp(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,n,r,o){if(!this.map)return!1;let a=this.map.consumer(),s=a.originalPositionFor({column:n,line:e});if(!s.source)return!1;let l;typeof r=="number"&&(l=a.originalPositionFor({column:o,line:r}));let u;ap(s.source)?u=Ql(s.source):u=new URL(s.source,this.map.consumer().sourceRoot||Ql(this.map.mapFile));let c={column:s.column,endColumn:l&&l.column,endLine:l&&l.line,line:s.line,url:u.toString()};if(u.protocol==="file:")if(py)c.file=py(u);else throw new Error("file: protocol is not available in this PostCSS build");let d=a.sourceContentFor(s.source);return d&&(c.source=d),c}toJSON(){let e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var eu=Zl;Zl.default=Zl,lp&&lp.registerInput&&lp.registerInput(Zl);let{SourceMapConsumer:gy,SourceMapGenerator:tu}=zn,{dirname:nu,relative:by,resolve:yy,sep:wy}=zn,{pathToFileURL:vy}=zn,d9=eu,f9=!!(gy&&tu),p9=!!(nu&&yy&&by&&wy);var ky=class{constructor(e,n,r,o){this.stringify=e,this.mapOpts=r.map||{},this.root=n,this.opts=r,this.css=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let n=`
`;this.css.includes(`\r
`)&&(n=`\r
`),this.css+=n+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let n=this.toUrl(this.path(e.file)),r=e.root||nu(e.file),o;this.mapOpts.sourcesContent===!1?(o=new gy(e.text),o.sourcesContent&&(o.sourcesContent=o.sourcesContent.map(()=>null))):o=e.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let n=this.root.nodes.length-1;n>=0;n--)e=this.root.nodes[n],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p9&&f9&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,n=>{e+=n}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=tu.fromSourceMap(e)}else this.map=new tu({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new tu({file:this.outputFile()});let e=1,n=1,r="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},a,s;this.stringify(this.root,(l,u,c)=>{if(this.css+=l,u&&c!=="end"&&(o.generated.line=e,o.generated.column=n-1,u.source&&u.source.start?(o.source=this.sourcePath(u),o.original.line=u.source.start.line,o.original.column=u.source.start.column-1,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,this.map.addMapping(o))),a=l.match(/\n/g),a?(e+=a.length,s=l.lastIndexOf(`
`),n=l.length-s):n+=l.length,u&&c!=="start"){let d=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==d.last||d.raws.semicolon)&&(u.source&&u.source.end?(o.source=this.sourcePath(u),o.original.line=u.source.end.line,o.original.column=u.source.end.column-1,o.generated.line=e,o.generated.column=n-2,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=n-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let n=this.memoizedPaths.get(e);if(n)return n;let r=this.opts.to?nu(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=nu(yy(r,this.mapOpts.annotation)));let o=by(r,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let n=e.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let e=new d9(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(n=>{if(n.source){let r=n.source.input.from;if(r&&!e[r]){e[r]=!0;let o=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(o,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let n=this.memoizedFileURLs.get(e);if(n)return n;if(vy){let r=vy(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let n=this.memoizedURLs.get(e);if(n)return n;wy==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let h9=Jl,cp=class extends h9{constructor(e){super(e),this.type="comment"}};var ru=cp;cp.default=cp;let{isClean:xy,my:Ey}=is,Cy=Xl,Sy=ru,m9=Jl,_y,dp,fp,Ty;function Ny(t){return t.map(e=>(e.nodes&&(e.nodes=Ny(e.nodes)),delete e.source,e))}function Oy(t){if(t[xy]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Oy(e)}let Tr=class nk extends m9{append(...e){for(let n of e){let r=this.normalize(n,this.last);for(let o of r)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,o;for(;this.indexes[n]<this.proxyOf.nodes.length&&(r=this.indexes[n],o=e(this.proxyOf.nodes[r],r),o!==!1);)this.indexes[n]+=1;return delete this.indexes[n],o}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:e[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>e[n](...r.map(o=>typeof o=="function"?(a,s)=>o(a.toProxy(),s):o)):n==="every"||n==="some"?r=>e[n]((o,...a)=>r(o.toProxy(),...a)):n==="root"?()=>e.root().toProxy():n==="nodes"?e.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?e[n].toProxy():e[n]:e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="name"||n==="params"||n==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,n){let r=this.index(e),o=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of o)this.proxyOf.nodes.splice(r+1,0,s);let a;for(let s in this.indexes)a=this.indexes[s],r<a&&(this.indexes[s]=a+o.length);return this.markDirty(),this}insertBefore(e,n){let r=this.index(e),o=r===0?"prepend":!1,a=this.normalize(n,this.proxyOf.nodes[r],o).reverse();r=this.index(e);for(let l of a)this.proxyOf.nodes.splice(r,0,l);let s;for(let l in this.indexes)s=this.indexes[l],r<=s&&(this.indexes[l]=s+a.length);return this.markDirty(),this}normalize(e,n){if(typeof e=="string")e=Ny(_y(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Cy(e)]}else if(e.selector)e=[new dp(e)];else if(e.name)e=[new fp(e)];else if(e.text)e=[new Sy(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[Ey]||nk.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[xy]&&Oy(o),typeof o.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(o.raws.before=n.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...e){e=e.reverse();for(let n of e){let r=this.normalize(n,this.first,"prepend").reverse();for(let o of r)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=e&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(e,n,r){return r||(r=n,n={}),this.walkDecls(o=>{n.props&&!n.props.includes(o.prop)||n.fast&&!o.value.includes(n.fast)||(o.value=o.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((n,r)=>{let o;try{o=e(n,r)}catch(a){throw n.addToError(a)}return o!==!1&&n.walk&&(o=n.walk(e)),o})}walkAtRules(e,n){return n?e instanceof RegExp?this.walk((r,o)=>{if(r.type==="atrule"&&e.test(r.name))return n(r,o)}):this.walk((r,o)=>{if(r.type==="atrule"&&r.name===e)return n(r,o)}):(n=e,this.walk((r,o)=>{if(r.type==="atrule")return n(r,o)}))}walkComments(e){return this.walk((n,r)=>{if(n.type==="comment")return e(n,r)})}walkDecls(e,n){return n?e instanceof RegExp?this.walk((r,o)=>{if(r.type==="decl"&&e.test(r.prop))return n(r,o)}):this.walk((r,o)=>{if(r.type==="decl"&&r.prop===e)return n(r,o)}):(n=e,this.walk((r,o)=>{if(r.type==="decl")return n(r,o)}))}walkRules(e,n){return n?e instanceof RegExp?this.walk((r,o)=>{if(r.type==="rule"&&e.test(r.selector))return n(r,o)}):this.walk((r,o)=>{if(r.type==="rule"&&r.selector===e)return n(r,o)}):(n=e,this.walk((r,o)=>{if(r.type==="rule")return n(r,o)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Tr.registerParse=t=>{_y=t},Tr.registerRule=t=>{dp=t},Tr.registerAtRule=t=>{fp=t},Tr.registerRoot=t=>{Ty=t};var Fo=Tr;Tr.default=Tr,Tr.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,fp.prototype):t.type==="rule"?Object.setPrototypeOf(t,dp.prototype):t.type==="decl"?Object.setPrototypeOf(t,Cy.prototype):t.type==="comment"?Object.setPrototypeOf(t,Sy.prototype):t.type==="root"&&Object.setPrototypeOf(t,Ty.prototype),t[Ey]=!0,t.nodes&&t.nodes.forEach(e=>{Tr.rebuild(e)})};let g9=Fo,$y,Ay,as=class extends g9{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new $y(new Ay,this,e).stringify()}};as.registerLazyResult=t=>{$y=t},as.registerProcessor=t=>{Ay=t};var pp=as;as.default=as;let My={};var Dy=function(e){My[e]||(My[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let hp=class{constructor(e,n={}){if(this.type="warning",this.text=e,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var By=hp;hp.default=hp;let b9=By,mp=class{constructor(e,n,r){this.processor=e,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new b9(e,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var gp=mp;mp.default=mp;const bp="'".charCodeAt(0),Py='"'.charCodeAt(0),ou="\\".charCodeAt(0),Vy="/".charCodeAt(0),iu=`
`.charCodeAt(0),ss=" ".charCodeAt(0),au="\f".charCodeAt(0),su="	".charCodeAt(0),lu="\r".charCodeAt(0),y9="[".charCodeAt(0),w9="]".charCodeAt(0),v9="(".charCodeAt(0),k9=")".charCodeAt(0),x9="{".charCodeAt(0),E9="}".charCodeAt(0),C9=";".charCodeAt(0),S9="*".charCodeAt(0),_9=":".charCodeAt(0),T9="@".charCodeAt(0),uu=/[\t\n\f\r "#'()/;[\\\]{}]/g,cu=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,N9=/.[\r\n"'(/\\]/,Ly=/[\da-f]/i;var O9=function(e,n={}){let r=e.css.valueOf(),o=n.ignoreErrors,a,s,l,u,c,d,p,f,h,m,g=r.length,b=0,v=[],x=[];function N(){return b}function y(T){throw e.error("Unclosed "+T,b)}function M(){return x.length===0&&b>=g}function E(T){if(x.length)return x.pop();if(b>=g)return;let B=T?T.ignoreUnclosed:!1;switch(a=r.charCodeAt(b),a){case iu:case ss:case su:case lu:case au:{s=b;do s+=1,a=r.charCodeAt(s);while(a===ss||a===iu||a===su||a===lu||a===au);m=["space",r.slice(b,s)],b=s-1;break}case y9:case w9:case x9:case E9:case _9:case C9:case k9:{let L=String.fromCharCode(a);m=[L,L,b];break}case v9:{if(f=v.length?v.pop()[1]:"",h=r.charCodeAt(b+1),f==="url"&&h!==bp&&h!==Py&&h!==ss&&h!==iu&&h!==su&&h!==au&&h!==lu){s=b;do{if(d=!1,s=r.indexOf(")",s+1),s===-1)if(o||B){s=b;break}else y("bracket");for(p=s;r.charCodeAt(p-1)===ou;)p-=1,d=!d}while(d);m=["brackets",r.slice(b,s+1),b,s],b=s}else s=r.indexOf(")",b+1),u=r.slice(b,s+1),s===-1||N9.test(u)?m=["(","(",b]:(m=["brackets",u,b,s],b=s);break}case bp:case Py:{l=a===bp?"'":'"',s=b;do{if(d=!1,s=r.indexOf(l,s+1),s===-1)if(o||B){s=b+1;break}else y("string");for(p=s;r.charCodeAt(p-1)===ou;)p-=1,d=!d}while(d);m=["string",r.slice(b,s+1),b,s],b=s;break}case T9:{uu.lastIndex=b+1,uu.test(r),uu.lastIndex===0?s=r.length-1:s=uu.lastIndex-2,m=["at-word",r.slice(b,s+1),b,s],b=s;break}case ou:{for(s=b,c=!0;r.charCodeAt(s+1)===ou;)s+=1,c=!c;if(a=r.charCodeAt(s+1),c&&a!==Vy&&a!==ss&&a!==iu&&a!==su&&a!==lu&&a!==au&&(s+=1,Ly.test(r.charAt(s)))){for(;Ly.test(r.charAt(s+1));)s+=1;r.charCodeAt(s+1)===ss&&(s+=1)}m=["word",r.slice(b,s+1),b,s],b=s;break}default:{a===Vy&&r.charCodeAt(b+1)===S9?(s=r.indexOf("*/",b+2)+1,s===0&&(o||B?s=r.length:y("comment")),m=["comment",r.slice(b,s+1),b,s],b=s):(cu.lastIndex=b+1,cu.test(r),cu.lastIndex===0?s=r.length-1:s=cu.lastIndex-2,m=["word",r.slice(b,s+1),b,s],v.push(m),b=s);break}}return b++,m}function C(T){x.push(T)}return{back:C,endOfFile:M,nextToken:E,position:N}};let Iy=Fo,du=class extends Iy{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var yp=du;du.default=du,Iy.registerAtRule(du);let Ry=Fo,zy,Fy,Ri=class extends Ry{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,n,r){let o=super.normalize(e);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let a of o)a.raws.before=n.raws.before}return o}removeChild(e,n){let r=this.index(e);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new zy(new Fy,this,e).stringify()}};Ri.registerLazyResult=t=>{zy=t},Ri.registerProcessor=t=>{Fy=t};var ls=Ri;Ri.default=Ri,Ry.registerRoot(Ri);let us={comma(t){return us.split(t,[","],!0)},space(t){let e=[" ",`
`,"	"];return us.split(t,e)},split(t,e,n){let r=[],o="",a=!1,s=0,l=!1,u="",c=!1;for(let d of t)c?c=!1:d==="\\"?c=!0:l?d===u&&(l=!1):d==='"'||d==="'"?(l=!0,u=d):d==="("?s+=1:d===")"?s>0&&(s-=1):s===0&&e.includes(d)&&(a=!0),a?(o!==""&&r.push(o.trim()),o="",a=!1):o+=d;return(n||o!=="")&&r.push(o.trim()),r}};var Hy=us;us.default=us;let qy=Fo,$9=Hy,fu=class extends qy{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return $9.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var wp=fu;fu.default=fu,qy.registerRule(fu);let A9=Xl,M9=O9,D9=ru,B9=yp,P9=ls,jy=wp;const Uy={empty:!0,space:!0};function V9(t){for(let e=t.length-1;e>=0;e--){let n=t[e],r=n[3]||n[2];if(r)return r}}var L9=class{constructor(e){this.input=e,this.root=new P9,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let n=new B9;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let r,o,a,s=!1,l=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(u.length>0){for(a=u.length-1,o=u[a];o&&o[0]==="space";)o=u[--a];o&&(n.source.end=this.getPosition(o[3]||o[2]),n.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(n.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(n,"params",u),s&&(e=u[u.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),l&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let n=this.colon(e);if(n===!1)return;let r=0,o;for(let a=n-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(r+=1,r===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let n=0,r,o,a;for(let[s,l]of e.entries()){if(r=l,o=r[0],o==="("&&(n+=1),o===")"&&(n-=1),n===0&&o===":")if(!a)this.doubleColon(r);else{if(a[0]==="word"&&a[1]==="progid")continue;return s}a=r}return!1}comment(e){let n=new D9;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let o=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=o[2],n.raws.left=o[1],n.raws.right=o[3]}}createTokenizer(){this.tokenizer=M9(this.input)}decl(e,n){let r=new A9;this.init(r,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||V9(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){r.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),r.raws.between+=a[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(a=e[c],a[1].toLowerCase()==="!important"){r.important=!0;let d=this.stringFrom(e,c);d=this.spacesFromEnd(e)+d,d!==" !important"&&(r.raws.important=d);break}else if(a[1].toLowerCase()==="important"){let d=e.slice(0),p="";for(let f=c;f>0;f--){let h=d[f][0];if(p.trim().indexOf("!")===0&&h!=="space")break;p=d.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=d)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(r,"value",s.concat(e),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let n=new jy;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}}init(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let n=!1,r=null,o=!1,a=null,s=[],l=e[1].startsWith("--"),u=[],c=e;for(;c;){if(r=c[0],u.push(c),r==="("||r==="[")a||(a=c),s.push(r==="("?")":"]");else if(l&&o&&r==="{")a||(a=c),s.push("}");else if(s.length===0)if(r===";")if(o){this.decl(u,l);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),n=!0;break}else r===":"&&(o=!0);else r===s[s.length-1]&&(s.pop(),s.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),s.length>0&&this.unclosedBracket(a),n&&o){if(!l)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,l)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,n,r,o){let a,s,l=r.length,u="",c=!0,d,p;for(let f=0;f<l;f+=1)a=r[f],s=a[0],s==="space"&&f===l-1&&!o?c=!1:s==="comment"?(p=r[f-1]?r[f-1][0]:"empty",d=r[f+1]?r[f+1][0]:"empty",!Uy[p]&&!Uy[d]?u.slice(-1)===","?c=!1:u+=a[1]:c=!1):u+=a[1];if(!c){let f=r.reduce((h,m)=>h+m[1],"");e.raws[n]={raw:f,value:u}}e[n]=u}rule(e){e.pop();let n=new jy;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}spacesAndCommentsFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let n,r="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],n==="space");)r=e.pop()[1]+r;return r}stringFrom(e,n){let r="";for(let o=n;o<e.length;o++)r+=e[o][1];return e.splice(n,e.length-n),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}};let I9=Fo,R9=L9,z9=eu;function pu(t,e){let n=new z9(t,e),r=new R9(n);try{r.parse()}catch(o){throw process.env.NODE_ENV!=="production"&&o.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?o.message+=`
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?o.message+=`
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(o.message+=`
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return r.root}var vp=pu;pu.default=pu,I9.registerParse(pu);let{isClean:lr,my:F9}=is,H9=ky,q9=Yl,j9=Fo,U9=pp,W9=Dy,Wy=gp,K9=vp,Y9=ls;const G9={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},J9={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},X9={Once:!0,postcssPlugin:!0,prepare:!0},zi=0;function cs(t){return typeof t=="object"&&typeof t.then=="function"}function Ky(t){let e=!1,n=G9[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,zi,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,zi,n+"Exit"]:[n,n+"Exit"]}function Yy(t){let e;return t.type==="document"?e=["Document",zi,"DocumentExit"]:t.type==="root"?e=["Root",zi,"RootExit"]:e=Ky(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function kp(t){return t[lr]=!1,t.nodes&&t.nodes.forEach(e=>kp(e)),t}let xp={},Fi=class rk{constructor(e,n,r){this.stringified=!1,this.processed=!1;let o;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))o=kp(n);else if(n instanceof rk||n instanceof Wy)o=kp(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let a=K9;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(n,r)}catch(s){this.processed=!0,this.error=s}o&&!o[F9]&&j9.rebuild(o)}this.result=new Wy(e,o,r),this.helpers={...xp,postcss:xp,result:this.result},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let r=this.result.lastPlugin;try{if(n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=r.postcssPlugin,e.setMessage();else if(r.postcssVersion&&process.env.NODE_ENV!=="production"){let o=r.postcssPlugin,a=r.postcssVersion,s=this.result.processor.version,l=a.split("."),u=s.split(".");(l[0]!==u[0]||parseInt(l[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+s+", but "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return e}prepareVisitors(){this.listeners={};let e=(n,r,o)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,o])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!J9[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!X9[r])if(typeof n[r]=="object")for(let o in n[r])o==="*"?e(n,r,n[r][o]):e(n,r+"-"+o.toLowerCase(),n[r][o]);else typeof n[r]=="function"&&e(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let n=this.plugins[e],r=this.runOnRoot(n);if(cs(r))try{await r}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[lr];){e[lr]=!0;let n=[Yy(e)];for(;n.length>0;){let r=this.visitTick(n);if(cs(r))try{await r}catch(o){let a=n[n.length-1].node;throw this.handleError(o,a)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(e.type==="document"){let o=e.nodes.map(a=>r(a,this.helpers));await Promise.all(o)}else await r(e,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return cs(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,n=q9;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let o=new H9(n,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let n=this.runOnRoot(e);if(cs(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[lr];)e[lr]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,n){return process.env.NODE_ENV!=="production"&&("from"in this.opts||W9("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,n)}toString(){return this.css}visitSync(e,n){for(let[r,o]of e){this.result.lastPlugin=r;let a;try{a=o(n,this.helpers)}catch(s){throw this.handleError(s,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(cs(a))throw this.getAsyncError()}}visitTick(e){let n=e[e.length-1],{node:r,visitors:o}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(o.length>0&&n.visitorIndex<o.length){let[s,l]=o[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===o.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=s;try{return l(r.toProxy(),this.helpers)}catch(u){throw this.handleError(u,r)}}if(n.iterator!==0){let s=n.iterator,l;for(;l=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!l[lr]){l[lr]=!0,e.push(Yy(l));return}n.iterator=0,delete r.indexes[s]}let a=n.events;for(;n.eventIndex<a.length;){let s=a[n.eventIndex];if(n.eventIndex+=1,s===zi){r.nodes&&r.nodes.length&&(r[lr]=!0,n.iterator=r.getIterator());return}else if(this.listeners[s]){n.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[lr]=!0;let n=Ky(e);for(let r of n)if(r===zi)e.nodes&&e.each(o=>{o[lr]||this.walkSync(o)});else{let o=this.listeners[r];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Fi.registerPostcss=t=>{xp=t};var Gy=Fi;Fi.default=Fi,Y9.registerLazyResult(Fi),U9.registerLazyResult(Fi);let Q9=ky,Z9=Yl,eD=Dy,tD=vp;const nD=gp;let Ep=class{constructor(e,n,r){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=r,this._map=void 0;let o,a=Z9;this.result=new nD(this._processor,o,this._opts),this.result.css=n;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let l=new Q9(a,o,this._opts,n);if(l.isMap()){let[u,c]=l.generate();u&&(this.result.css=u),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,n){return process.env.NODE_ENV!=="production"&&("from"in this._opts||eD("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,n=tD;try{e=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var rD=Ep;Ep.default=Ep;let oD=rD,iD=Gy,aD=pp,sD=ls,ds=class{constructor(e=[]){this.version="8.4.31",this.plugins=this.normalize(e)}normalize(e){let n=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(typeof r=="object"&&(r.parse||r.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(r+" is not a PostCSS plugin");return n}process(e,n={}){return this.plugins.length===0&&typeof n.parser>"u"&&typeof n.stringifier>"u"&&typeof n.syntax>"u"?new oD(this,e,n):new iD(this,e,n)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var lD=ds;ds.default=ds,sD.registerProcessor(ds),aD.registerProcessor(ds);let uD=Xl,cD=fy,dD=ru,fD=yp,pD=eu,hD=ls,mD=wp;function fs(t,e){if(Array.isArray(t))return t.map(o=>fs(o));let{inputs:n,...r}=t;if(n){e=[];for(let o of n){let a={...o,__proto__:pD.prototype};a.map&&(a.map={...a.map,__proto__:cD.prototype}),e.push(a)}}if(r.nodes&&(r.nodes=t.nodes.map(o=>fs(o,e))),r.source){let{inputId:o,...a}=r.source;r.source=a,o!=null&&(r.source.input=e[o])}if(r.type==="root")return new hD(r);if(r.type==="decl")return new uD(r);if(r.type==="rule")return new mD(r);if(r.type==="comment")return new dD(r);if(r.type==="atrule")return new fD(r);throw new Error("Unknown node type: "+t.type)}var gD=fs;fs.default=fs;let bD=Qf,Jy=Xl,yD=Gy,wD=Fo,Cp=lD,vD=Yl,kD=gD,Xy=pp,xD=By,Qy=ru,Zy=yp,ED=gp,CD=eu,SD=vp,_D=Hy,e2=wp,t2=ls,TD=Jl;function Qe(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Cp(t)}Qe.plugin=function(e,n){let r=!1;function o(...s){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let l=n(...s);return l.postcssPlugin=e,l.postcssVersion=new Cp().version,l}let a;return Object.defineProperty(o,"postcss",{get(){return a||(a=o()),a}}),o.process=function(s,l,u){return Qe([o(u)]).process(s,l)},o},Qe.stringify=vD,Qe.parse=SD,Qe.fromJSON=kD,Qe.list=_D,Qe.comment=t=>new Qy(t),Qe.atRule=t=>new Zy(t),Qe.decl=t=>new Jy(t),Qe.rule=t=>new e2(t),Qe.root=t=>new t2(t),Qe.document=t=>new Xy(t),Qe.CssSyntaxError=bD,Qe.Declaration=Jy,Qe.Container=wD,Qe.Processor=Cp,Qe.Document=Xy,Qe.Comment=Qy,Qe.Warning=xD,Qe.AtRule=Zy,Qe.Result=ED,Qe.Input=CD,Qe.Rule=e2,Qe.Root=t2,Qe.Node=TD,yD.registerPostcss(Qe);var ND=Qe;Qe.default=Qe;const OD=kb,n2=OM,{isPlainObject:$D}=Gf,r2=jM,AD=UM,{parse:MD}=ND,DD=["img","audio","video","picture","svg","object","map","iframe","embed"],BD=["script","style"];function ps(t,e){t&&Object.keys(t).forEach(function(n){e(t[n],n)})}function Nr(t,e){return{}.hasOwnProperty.call(t,e)}function o2(t,e){const n=[];return ps(t,function(r){e(r)&&n.push(r)}),n}function PD(t){for(const e in t)if(Nr(t,e))return!1;return!0}function VD(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var LD=hs;const ID=/^[^\0\t\n\f\r /<=>]+$/;function hs(t,e,n){if(t==null)return"";typeof t=="number"&&(t=t.toString());let r="",o="";function a(S,O){const w=this;this.tag=S,this.attribs=O||{},this.tagPosition=r.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(b.length){const A=b[b.length-1];A.text+=w.text}},this.updateParentNodeMediaChildren=function(){b.length&&DD.includes(this.tag)&&b[b.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},hs.defaults,e),e.parser=Object.assign({},RD,e.parser);const s=function(S){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(S)>-1};BD.forEach(function(S){s(S)&&!e.allowVulnerableTags&&console.warn(`

⚠️ Your \`allowedTags\` option includes, \`${S}\`, which is inherently
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
Or, to disable this warning, add the \`allowVulnerableTags\` option
and ensure you are accounting for this risk.

`)});const l=e.nonTextTags||["script","style","textarea","option"];let u,c;e.allowedAttributes&&(u={},c={},ps(e.allowedAttributes,function(S,O){u[O]=[];const w=[];S.forEach(function(A){typeof A=="string"&&A.indexOf("*")>=0?w.push(n2(A).replace(/\\\*/g,".*")):u[O].push(A)}),w.length&&(c[O]=new RegExp("^("+w.join("|")+")$"))}));const d={},p={},f={};ps(e.allowedClasses,function(S,O){if(u&&(Nr(u,O)||(u[O]=[]),u[O].push("class")),d[O]=S,Array.isArray(S)){const w=[];d[O]=[],f[O]=[],S.forEach(function(A){typeof A=="string"&&A.indexOf("*")>=0?w.push(n2(A).replace(/\\\*/g,".*")):A instanceof RegExp?f[O].push(A):d[O].push(A)}),w.length&&(p[O]=new RegExp("^("+w.join("|")+")$"))}});const h={};let m;ps(e.transformTags,function(S,O){let w;typeof S=="function"?w=S:typeof S=="string"&&(w=hs.simpleTransform(S)),O==="*"?m=w:h[O]=w});let g,b,v,x,N,y,M=!1;C();const E=new OD.Parser({onopentag:function(S,O){if(e.enforceHtmlBoundary&&S==="html"&&C(),N){y++;return}const w=new a(S,O);b.push(w);let A=!1;const z=!!w.text;let P;if(Nr(h,S)&&(P=h[S](S,O),w.attribs=O=P.attribs,P.text!==void 0&&(w.innerText=P.text),S!==P.tagName&&(w.name=S=P.tagName,x[g]=P.tagName)),m&&(P=m(S,O),w.attribs=O=P.attribs,S!==P.tagName&&(w.name=S=P.tagName,x[g]=P.tagName)),(!s(S)||e.disallowedTagsMode==="recursiveEscape"&&!PD(v)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(A=!0,v[g]=!0,e.disallowedTagsMode==="discard"&&l.indexOf(S)!==-1&&(N=!0,y=1),v[g]=!0),g++,A){if(e.disallowedTagsMode==="discard")return;o=r,r=""}r+="<"+S,S==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(w.innerText=""),(!u||Nr(u,S)||u["*"])&&ps(O,function(q,W){if(!ID.test(W)){delete w.attribs[W];return}if(q===""&&(e.nonBooleanAttributes.includes(W)||e.nonBooleanAttributes.includes("*"))){delete w.attribs[W];return}let ee=!1;if(!u||Nr(u,S)&&u[S].indexOf(W)!==-1||u["*"]&&u["*"].indexOf(W)!==-1||Nr(c,S)&&c[S].test(W)||c["*"]&&c["*"].test(W))ee=!0;else if(u&&u[S]){for(const F of u[S])if($D(F)&&F.name&&F.name===W){ee=!0;let R="";if(F.multiple===!0){const G=q.split(" ");for(const j of G)F.values.indexOf(j)!==-1&&(R===""?R=j:R+=" "+j)}else F.values.indexOf(q)>=0&&(R=q);q=R}}if(ee){if(e.allowedSchemesAppliedToAttributes.indexOf(W)!==-1&&B(S,q)){delete w.attribs[W];return}if(S==="script"&&W==="src"){let F=!0;try{const R=L(q);if(e.allowedScriptHostnames||e.allowedScriptDomains){const G=(e.allowedScriptHostnames||[]).find(function(K){return K===R.url.hostname}),j=(e.allowedScriptDomains||[]).find(function(K){return R.url.hostname===K||R.url.hostname.endsWith(`.${K}`)});F=G||j}}catch{F=!1}if(!F){delete w.attribs[W];return}}if(S==="iframe"&&W==="src"){let F=!0;try{const R=L(q);if(R.isRelativeUrl)F=Nr(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const G=(e.allowedIframeHostnames||[]).find(function(K){return K===R.url.hostname}),j=(e.allowedIframeDomains||[]).find(function(K){return R.url.hostname===K||R.url.hostname.endsWith(`.${K}`)});F=G||j}}catch{F=!1}if(!F){delete w.attribs[W];return}}if(W==="srcset")try{let F=AD(q);if(F.forEach(function(R){B("srcset",R.url)&&(R.evil=!0)}),F=o2(F,function(R){return!R.evil}),F.length)q=VD(o2(F,function(R){return!R.evil})),w.attribs[W]=q;else{delete w.attribs[W];return}}catch{delete w.attribs[W];return}if(W==="class"){const F=d[S],R=d["*"],G=p[S],j=f[S],K=p["*"],Y=[G,K].concat(j).filter(function(X){return X});if(F&&R?q=V(q,r2(F,R),Y):q=V(q,F||R,Y),!q.length){delete w.attribs[W];return}}if(W==="style"){if(e.parseStyleAttributes)try{const F=MD(S+" {"+q+"}"),R=k(F,e.allowedStyles);if(q=$(R),q.length===0){delete w.attribs[W];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+S+" {"+q+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete w.attribs[W];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+W,q&&q.length&&(r+='="'+T(q,!0)+'"')}else delete w.attribs[W]}),e.selfClosing.indexOf(S)!==-1?r+=" />":(r+=">",w.innerText&&!z&&!e.textFilter&&(r+=T(w.innerText),M=!0)),A&&(r=o+T(r),o="")},ontext:function(S){if(N)return;const O=b[b.length-1];let w;if(O&&(w=O.tag,S=O.innerText!==void 0?O.innerText:S),e.disallowedTagsMode==="discard"&&(w==="script"||w==="style"))r+=S;else{const A=T(S,!1);e.textFilter&&!M?r+=e.textFilter(A,w):M||(r+=A)}if(b.length){const A=b[b.length-1];A.text+=S}},onclosetag:function(S,O){if(N)if(y--,!y)N=!1;else return;const w=b.pop();if(!w)return;if(w.tag!==S){b.push(w);return}N=e.enforceHtmlBoundary?S==="html":!1,g--;const A=v[g];if(A){if(delete v[g],e.disallowedTagsMode==="discard"){w.updateParentNodeText();return}o=r,r=""}if(x[g]&&(S=x[g],delete x[g]),e.exclusiveFilter&&e.exclusiveFilter(w)){r=r.substr(0,w.tagPosition);return}if(w.updateParentNodeMediaChildren(),w.updateParentNodeText(),e.selfClosing.indexOf(S)!==-1||O&&!s(S)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){A&&(r=o,o="");return}r+="</"+S+">",A&&(r=o+T(r),o=""),M=!1}},e.parser);return E.write(t),E.end(),r;function C(){r="",g=0,b=[],v={},x={},N=!1,y=0}function T(S,O){return typeof S!="string"&&(S=S+""),e.parser.decodeEntities&&(S=S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(S=S.replace(/"/g,"&quot;"))),S=S.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(S=S.replace(/"/g,"&quot;")),S}function B(S,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const z=O.indexOf("<!--");if(z===-1)break;const P=O.indexOf("-->",z+4);if(P===-1)break;O=O.substring(0,z)+O.substring(P+3)}const w=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!w)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const A=w[1].toLowerCase();return Nr(e.allowedSchemesByTag,S)?e.allowedSchemesByTag[S].indexOf(A)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(A)===-1}function L(S){if(S=S.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),S.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let z=0;z<100;z++)O+=`/${z}`;const w=new URL(S,O);return{isRelativeUrl:w&&w.hostname==="relative-site"&&w.protocol==="relative:",url:w}}function k(S,O){if(!O)return S;const w=S.nodes[0];let A;return O[w.selector]&&O["*"]?A=r2(O[w.selector],O["*"]):A=O[w.selector]||O["*"],A&&(S.nodes[0].nodes=w.nodes.reduce(D(A),[])),S}function $(S){return S.nodes[0].nodes.reduce(function(O,w){return O.push(`${w.prop}:${w.value}${w.important?" !important":""}`),O},[]).join(";")}function D(S){return function(O,w){return Nr(S,w.prop)&&S[w.prop].some(function(z){return z.test(w.value)})&&O.push(w),O}}function V(S,O,w){return O?(S=S.split(/\s+/),S.filter(function(A){return O.indexOf(A)!==-1||w.some(function(z){return z.test(A)})}).join(" ")):S}}const RD={decodeEntities:!0};hs.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},hs.simpleTransform=function(t,e,n){return n=n===void 0?!0:n,e=e||{},function(r,o){let a;if(n)for(a in e)o[a]=e[a];else o=e;return{tagName:t,attribs:o}}};const zD=Ir(LD);function Ot(t){this.content=t}Ot.prototype={constructor:Ot,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),a=r.content.slice();return o==-1?a.push(n||t,e):(a[o+1]=e,n&&(a[o]=n)),new Ot(a)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Ot(n)},addToStart:function(t,e){return new Ot([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Ot(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),a=r.find(t);return o.splice(a==-1?o.length:a,0,e,n),new Ot(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=Ot.from(t),t.size?new Ot(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ot.from(t),t.size?new Ot(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ot.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}},Ot.from=function(t){if(t instanceof Ot)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Ot(e)};function i2(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),a=e.child(r);if(o==a){n+=o.nodeSize;continue}if(!o.sameMarkup(a))return n;if(o.isText&&o.text!=a.text){for(let s=0;o.text[s]==a.text[s];s++)n++;return n}if(o.content.size||a.content.size){let s=i2(o.content,a.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function a2(t,e,n,r){for(let o=t.childCount,a=e.childCount;;){if(o==0||a==0)return o==a?null:{a:n,b:r};let s=t.child(--o),l=e.child(--a),u=s.nodeSize;if(s==l){n-=u,r-=u;continue}if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let c=0,d=Math.min(s.text.length,l.text.length);for(;c<d&&s.text[s.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(s.content.size||l.content.size){let c=a2(s.content,l.content,n-1,r-1);if(c)return c}n-=u,r-=u}}class oe{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,a){for(let s=0,l=0;l<n;s++){let u=this.content[s],c=l+u.nodeSize;if(c>e&&r(u,o+l,a||null,s)!==!1&&u.content.size){let d=l+1;u.nodesBetween(Math.max(0,e-d),Math.min(u.content.size,n-d),r,o+d)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let a="",s=!0;return this.nodesBetween(e,n,(l,u)=>{l.isText?(a+=l.text.slice(Math.max(e,u)-u,n-u),s=!r):l.isLeaf?(o?a+=typeof o=="function"?o(l):o:l.type.spec.leafText&&(a+=l.type.spec.leafText(l)),s=!r):!s&&l.isBlock&&(a+=r,s=!0)},0),a}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),a=1);a<e.content.length;a++)o.push(e.content[a]);return new oe(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 a=0,s=0;s<n;a++){let l=this.content[a],u=s+l.nodeSize;u>e&&((s<e||u>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=u}return new oe(r,o)}cutByIndex(e,n){return e==n?oe.empty:e==0&&n==this.content.length?this:new oe(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new oe(o,a)}addToStart(e){return new oe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new oe(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 i2(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return a2(this,e,n,r)}findIndex(e,n=-1){if(e==0)return hu(0,e);if(e==this.size)return hu(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 a=this.child(r),s=o+a.nodeSize;if(s>=e)return s==e||n>0?hu(r+1,s):hu(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 oe.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new oe(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return oe.empty;let n,r=0;for(let o=0;o<e.length;o++){let a=e[o];r+=a.nodeSize,o&&a.isText&&e[o-1].sameMarkup(a)?(n||(n=e.slice(0,o)),n[n.length-1]=a.withText(n[n.length-1].text+a.text)):n&&n.push(a)}return new oe(n||e,r)}static from(e){if(!e)return oe.empty;if(e instanceof oe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new oe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}oe.empty=new oe([],0);const Sp={index:0,offset:0};function hu(t,e){return Sp.index=t,Sp.offset=e,Sp}function mu(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(!mu(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!mu(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let et=class bh{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let a=e[o];if(this.eq(a))return e;if(this.type.excludes(a.type))n||(n=e.slice(0,o));else{if(a.type.excludes(this.type))return e;!r&&a.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(a)}}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&&mu(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 bh.none;if(e instanceof bh)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};et.none=[];class gu extends Error{}class pe{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=l2(this.content,e+this.openStart,n);return r&&new pe(r,this.openStart,this.openEnd)}removeBetween(e,n){return new pe(s2(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 pe.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 pe(oe.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let a=e.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)r++;for(let a=e.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)o++;return new pe(e,r,o)}}pe.empty=new pe(oe.empty,0,0);function s2(t,e,n){let{index:r,offset:o}=t.findIndex(e),a=t.maybeChild(r),{index:s,offset:l}=t.findIndex(n);if(o==e||a.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,a.copy(s2(a.content,e-o-1,n-o-1)))}function l2(t,e,n,r){let{index:o,offset:a}=t.findIndex(e),s=t.maybeChild(o);if(a==e||s.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=l2(s.content,e-a-1,n);return l&&t.replaceChild(o,s.copy(l))}function FD(t,e,n){if(n.openStart>t.depth)throw new gu("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new gu("Inconsistent open depths");return u2(t,e,n,0)}function u2(t,e,n,r){let o=t.index(r),a=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let s=u2(t,e,n,r+1);return a.copy(a.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 qo(s,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:s,end:l}=HD(n,t);return qo(a,d2(t,s,l,e,r))}else return qo(a,bu(t,e,r))}function c2(t,e){if(!e.type.compatibleContent(t.type))throw new gu("Cannot join "+e.type.name+" onto "+t.type.name)}function _p(t,e,n){let r=t.node(n);return c2(r,e.node(n)),r}function Ho(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 ms(t,e,n,r){let o=(e||t).node(n),a=0,s=e?e.index(n):o.childCount;t&&(a=t.index(n),t.depth>n?a++:t.textOffset&&(Ho(t.nodeAfter,r),a++));for(let l=a;l<s;l++)Ho(o.child(l),r);e&&e.depth==n&&e.textOffset&&Ho(e.nodeBefore,r)}function qo(t,e){return t.type.checkContent(e),t.copy(e)}function d2(t,e,n,r,o){let a=t.depth>o&&_p(t,e,o+1),s=r.depth>o&&_p(n,r,o+1),l=[];return ms(null,t,o,l),a&&s&&e.index(o)==n.index(o)?(c2(a,s),Ho(qo(a,d2(t,e,n,r,o+1)),l)):(a&&Ho(qo(a,bu(t,e,o+1)),l),ms(e,n,o,l),s&&Ho(qo(s,bu(n,r,o+1)),l)),ms(r,null,o,l),new oe(l)}function bu(t,e,n){let r=[];if(ms(null,t,n,r),t.depth>n){let o=_p(t,e,n+1);Ho(qo(o,bu(t,e,n+1)),r)}return ms(e,null,n,r),new oe(r)}function HD(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let a=n-1;a>=0;a--)o=e.node(a).copy(oe.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class gs{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 a=0;a<e;a++)o+=r.child(a).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return et.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 a=r.marks;for(var s=0;s<a.length;s++)a[s].type.spec.inclusive===!1&&(!o||!a[s].isInSet(o.marks))&&(a=a[s--].removeFromSet(a));return a}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 a=0;a<r.length;a++)r[a].type.spec.inclusive===!1&&(!o||!r[a].isInSet(o.marks))&&(r=r[a--].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 yu(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,a=n;for(let s=e;;){let{index:l,offset:u}=s.content.findIndex(a),c=a-u;if(r.push(s,l,o+u),!c||(s=s.child(l),s.isText))break;a=c-1,o+=u+1}return new gs(n,r,a)}static resolveCached(e,n){for(let o=0;o<Tp.length;o++){let a=Tp[o];if(a.pos==n&&a.doc==e)return a}let r=Tp[Np]=gs.resolve(e,n);return Np=(Np+1)%qD,r}}let Tp=[],Np=0,qD=12;class yu{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 jD=Object.create(null);let jo=class yh{constructor(e,n,r,o=et.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||oe.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&&mu(this.attrs,n||e.defaultAttrs||jD)&&et.sameSet(this.marks,r||et.none)}copy(e=null){return e==this.content?this:new yh(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new yh(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 pe.empty;let o=this.resolve(e),a=this.resolve(n),s=r?0:o.sharedDepth(n),l=o.start(s),c=o.node(s).content.cut(o.pos-l,a.pos-l);return new pe(c,o.depth-s,a.depth-s)}replace(e,n,r){return FD(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 gs.resolveCached(this,e)}resolveNoCache(e){return gs.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,a=>(r.isInSet(a.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()+")"),f2(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=oe.empty,o=0,a=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,a),l=s&&s.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let u=o;u<a;u++)if(!this.type.allowsMarks(r.child(u).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let a=this.contentMatchAt(e).matchType(r),s=a&&a.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=et.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!et.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=oe.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,r)}};jo.prototype.text=void 0;class wu extends jo{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):f2(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 wu(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new wu(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 f2(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Uo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new UD(e,n);if(r.next==null)return Uo.empty;let o=p2(r);r.next&&r.err("Unexpected trailing text");let a=QD(XD(o));return ZD(a,r),a}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 a=n;o&&a<r;a++)o=o.matchType(e.child(a).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 a(s,l){let u=s.matchFragment(e,r);if(u&&(!n||u.validEnd))return oe.from(l.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:d,next:p}=s.next[c];if(!(d.isText||d.hasRequiredAttrs())&&o.indexOf(p)==-1){o.push(p);let f=a(p,l.concat(d));if(f)return f}}return null}return a(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(),a=o.match;if(a.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<a.next.length;s++){let{type:l,next:u}=a.next[s];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!o.type||u.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 a=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)a+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return a}).join(`
`)}}Uo.empty=new Uo(!0);class UD{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 p2(t){let e=[];do e.push(WD(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function WD(t){let e=[];do e.push(KD(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function KD(t){let e=JD(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=YD(t,e);else break;return e}function h2(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function YD(t,e){let n=h2(t),r=n;return t.eat(",")&&(t.next!="}"?r=h2(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function GD(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let a in n){let s=n[a];s.groups.indexOf(e)>-1&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function JD(t){if(t.eat("(")){let e=p2(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=GD(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 XD(t){let e=[[]];return o(a(t,0),n()),e;function n(){return e.push([])-1}function r(s,l,u){let c={term:u,to:l};return e[s].push(c),c}function o(s,l){s.forEach(u=>u.to=l)}function a(s,l){if(s.type=="choice")return s.exprs.reduce((u,c)=>u.concat(a(c,l)),[]);if(s.type=="seq")for(let u=0;;u++){let c=a(s.exprs[u],l);if(u==s.exprs.length-1)return c;o(c,l=n())}else if(s.type=="star"){let u=n();return r(l,u),o(a(s.expr,u),u),[r(u)]}else if(s.type=="plus"){let u=n();return o(a(s.expr,l),u),o(a(s.expr,u),u),[r(u)]}else{if(s.type=="opt")return[r(l)].concat(a(s.expr,l));if(s.type=="range"){let u=l;for(let c=0;c<s.min;c++){let d=n();o(a(s.expr,u),d),u=d}if(s.max==-1)o(a(s.expr,u),u);else for(let c=s.min;c<s.max;c++){let d=n();r(u,d),o(a(s.expr,u),d),u=d}return[r(u)]}else{if(s.type=="name")return[r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function m2(t,e){return e-t}function g2(t,e){let n=[];return r(e),n.sort(m2);function r(o){let a=t[o];if(a.length==1&&!a[0].term)return r(a[0].to);n.push(o);for(let s=0;s<a.length;s++){let{term:l,to:u}=a[s];!l&&n.indexOf(u)==-1&&r(u)}}}function QD(t){let e=Object.create(null);return n(g2(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:l,to:u})=>{if(!l)return;let c;for(let d=0;d<o.length;d++)o[d][0]==l&&(c=o[d][1]);g2(t,u).forEach(d=>{c||o.push([l,c=[]]),c.indexOf(d)==-1&&c.push(d)})})});let a=e[r.join(",")]=new Uo(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let l=o[s][1].sort(m2);a.next.push({type:o[s][0],next:e[l.join(",")]||n(l)})}return a}}function ZD(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],a=!o.validEnd,s=[];for(let l=0;l<o.next.length;l++){let{type:u,next:c}=o.next[l];s.push(u.name),a&&!(u.isText||u.hasRequiredAttrs())&&(a=!1),r.indexOf(c)==-1&&r.push(c)}a&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function b2(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 y2(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let a=t[r];if(a.hasDefault)o=a.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function w2(t){let e=Object.create(null);if(t)for(let n in t)e[n]=new e7(t[n]);return e}let v2=class ok{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=w2(r.attrs),this.defaultAttrs=b2(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==Uo.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:y2(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new jo(this,this.computeAttrs(e),oe.from(n),et.setFrom(r))}createChecked(e=null,n,r){return n=oe.from(n),this.checkContent(n),new jo(this,this.computeAttrs(e),n,et.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=oe.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let o=this.contentMatch.matchFragment(n),a=o&&o.fillBefore(oe.empty,!0);return a?new jo(this,e,n.append(a),et.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:et.none:e}static compile(e,n){let r=Object.create(null);e.forEach((a,s)=>r[a]=new ok(a,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 a in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class e7{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class vu{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=w2(o.attrs),this.excluded=null;let a=b2(this.attrs);this.instance=a?new et(this,a):null}create(e=null){return!e&&this.instance?this.instance:new et(this,y2(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((a,s)=>r[a]=new vu(a,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 t7{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=Ot.from(e.nodes),n.marks=Ot.from(e.marks||{}),this.nodes=v2.compile(this.spec.nodes,this),this.marks=vu.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 a=this.nodes[o],s=a.spec.content||"",l=a.spec.marks;a.contentMatch=r[s]||(r[s]=Uo.parse(s,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.markSet=l=="_"?null:l?k2(this,l.split(" ")):l==""||!a.inlineContent?[]:null}for(let o in this.marks){let a=this.marks[o],s=a.spec.excludes;a.excluded=s==null?[a]:s==""?[]:k2(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 v2){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 wu(r,r.defaultAttrs,e,et.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return jo.fromJSON(this,e)}markFromJSON(e){return et.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function k2(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],a=t.marks[o],s=a;if(a)n.push(a);else for(let l in t.marks){let u=t.marks[l];(o=="_"||u.spec.group&&u.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=u)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class Hi{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 S2(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new S2(this,n,!0);return r.addAll(e,n.from,n.to),pe.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let a=this.tags[o];if(o7(e,a.tag)&&(a.namespace===void 0||e.namespaceURI==a.namespace)&&(!a.context||n.matchesContext(a.context))){if(a.getAttrs){let s=a.getAttrs(e);if(s===!1)continue;a.attrs=s||void 0}return a}}}matchStyle(e,n,r,o){for(let a=o?this.styles.indexOf(o)+1:0;a<this.styles.length;a++){let s=this.styles[a],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 u=s.getAttrs(n);if(u===!1)continue;s.attrs=u||void 0}return s}}}static schemaRules(e){let n=[];function r(o){let a=o.priority==null?50:o.priority,s=0;for(;s<n.length;s++){let l=n[s];if((l.priority==null?50:l.priority)<a)break}n.splice(s,0,o)}for(let o in e.marks){let a=e.marks[o].spec.parseDOM;a&&a.forEach(s=>{r(s=_2(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let a=e.nodes[o].spec.parseDOM;a&&a.forEach(s=>{r(s=_2(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Hi(e,Hi.schemaRules(e)))}}const x2={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},n7={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},E2={ol:!0,ul:!0},ku=1,xu=2,bs=4;function C2(t,e,n){return e!=null?(e?ku:0)|(e==="full"?xu:0):t&&t.whitespace=="pre"?ku|xu:n&~bs}class Eu{constructor(e,n,r,o,a,s,l){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=o,this.solid=a,this.options=l,this.content=[],this.activeMarks=et.none,this.stashMarks=[],this.match=s||(l&bs?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(oe.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&ku)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let a=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-o[0].length))}}let n=oe.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(oe.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):a7(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&&!x2.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class S2{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let o=n.topNode,a,s=C2(null,n.preserveWhitespace,0)|(r?bs:0);o?a=new Eu(o.type,o.attrs,et.none,et.none,!0,n.topMatch||o.type.contentMatch,s):r?a=new Eu(null,null,et.none,et.none,!0,null,s):a=new Eu(e.schema.topNodeType,null,et.none,et.none,!0,null,s),this.nodes=[a],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(i7(r));if(!o)return;let[a,s]=o,l=this.top;for(let u=0;u<s.length;u++)this.removePendingMark(s[u],l);for(let u=0;u<a.length;u++)this.addPendingMark(a[u]);n();for(let u=0;u<a.length;u++)this.removePendingMark(a[u],l);for(let u=0;u<s.length;u++)this.addPendingMark(s[u])}addTextNode(e){let n=e.nodeValue,r=this.top;if(r.options&xu||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(r.options&ku)r.options&xu?n=n.replace(/\r\n?/g,`
`):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],a=e.previousSibling;(!o||a&&a.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;E2.hasOwnProperty(r)&&this.parser.normalizeLists&&r7(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));if(a?a.ignore:n7.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let s,l=this.top,u=this.needsBlock;if(x2.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}a&&a.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(l),this.needsBlock=u}else this.withStyleRules(e,()=>{this.addElementByRule(e,a,a.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=et.none,r=et.none;for(let o=0;o<e.length;o+=2)for(let a=void 0;;){let s=this.parser.matchStyle(e[o],e[o+1],this,a);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)a=s;else break}return[n,r]}addElementByRule(e,n,r){let o,a,s;n.node?(a=this.parser.schema.nodes[n.node],a.isLeaf?this.insertNode(a.create(n.attrs))||this.leafFallback(e):o=this.enter(a,n.attrs||null,n.preserveWhitespace)):(s=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(s));let l=this.top;if(a&&a.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(u=>this.insertNode(u));else{let u=e;typeof n.contentElement=="string"?u=e.querySelector(n.contentElement):typeof n.contentElement=="function"?u=n.contentElement(e):n.contentElement&&(u=n.contentElement),this.findAround(e,u,!0),this.addAll(u)}o&&this.sync(l)&&this.open--,s&&this.removePendingMark(s,l)}addAll(e,n,r){let o=n||0;for(let a=n?e.childNodes[n]:e.firstChild,s=r==null?null:e.childNodes[r];a!=s;a=a.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(a);this.findAtPoint(e,o)}findPlace(e){let n,r;for(let o=this.open;o>=0;o--){let a=this.nodes[o],s=a.findWrapping(e);if(s&&(!n||n.length>s.length)&&(n=s,r=a,!s.length)||a.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 a=this.top;a.applyPending(e),a.match=a.match&&a.match.matchType(e);let s=C2(e,o,a.options);a.options&bs&&a.content.length==0&&(s|=bs),this.nodes.push(new Eu(e,n,a.activeMarks,a.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),a=-(r?r.depth+1:0)+(o?0:1),s=(l,u)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;u>=a;u--)if(s(l-1,u))return!0;return!1}else{let d=u>0||u==0&&o?this.nodes[u].type:r&&u>=a?r.node(u-a).type:null;if(!d||d.name!=c&&d.groups.indexOf(c)==-1)return!1;u--}}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=s7(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 r7(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&E2.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function o7(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function i7(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 _2(t){let e={};for(let n in t)e[n]=t[n];return e}function a7(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let a=[],s=l=>{a.push(l);for(let u=0;u<l.edgeCount;u++){let{type:c,next:d}=l.edge(u);if(c==e||a.indexOf(d)<0&&s(d))return!0}};if(s(o.contentMatch))return!0}}function s7(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class ur{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Op(n).createDocumentFragment());let o=r,a=[];return e.forEach(s=>{if(a.length||s.marks.length){let l=0,u=0;for(;l<a.length&&u<s.marks.length;){let c=s.marks[u];if(!this.marks[c.type.name]){u++;continue}if(!c.eq(a[l][0])||c.type.spec.spanning===!1)break;l++,u++}for(;l<a.length;)o=a.pop()[1];for(;u<s.marks.length;){let c=s.marks[u++],d=this.serializeMark(c,s.isInline,n);d&&(a.push([c,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}=ur.renderSpec(Op(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 a=this.serializeMark(e.marks[o],e.isInline,n);a&&((a.contentDOM||a.dom).appendChild(r),r=a.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&ur.renderSpec(Op(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],a=o.indexOf(" ");a>0&&(r=o.slice(0,a),o=o.slice(a+1));let s,l=r?e.createElementNS(r,o):e.createElement(o),u=n[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let p=d.indexOf(" ");p>0?l.setAttributeNS(d.slice(0,p),d.slice(p+1),u[d]):l.setAttribute(d,u[d])}}for(let d=c;d<n.length;d++){let p=n[d];if(p===0){if(d<n.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:f,contentDOM:h}=ur.renderSpec(e,p,r);if(l.appendChild(f),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 ur(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=T2(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return T2(e.marks)}}function T2(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Op(t){return t.document||window.document}const N2=65535,O2=Math.pow(2,16);function l7(t,e){return t+e*O2}function $2(t){return t&N2}function u7(t){return(t-(t&N2))/O2}const A2=1,M2=2,Cu=4,D2=8;class $p{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&D2)>0}get deletedBefore(){return(this.delInfo&(A2|Cu))>0}get deletedAfter(){return(this.delInfo&(M2|Cu))>0}get deletedAcross(){return(this.delInfo&Cu)>0}}class gn{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&gn.empty)return gn.empty}recover(e){let n=0,r=$2(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+u7(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,a=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let u=this.ranges[l]-(this.inverted?o:0);if(u>e)break;let c=this.ranges[l+a],d=this.ranges[l+s],p=u+c;if(e<=p){let f=c?e==u?-1:e==p?1:n:n,h=u+o+(f<0?0:d);if(r)return h;let m=e==(n<0?u:p)?null:l7(l/3,e-u),g=e==u?M2:e==p?A2:Cu;return(n<0?e!=u:e!=p)&&(g|=D2),new $p(h,g,m)}o+=d-c}return r?e+o:new $p(e+o,0,null)}touches(e,n){let r=0,o=$2(n),a=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let u=this.ranges[l]-(this.inverted?r:0);if(u>e)break;let c=this.ranges[l+a],d=u+c;if(e<=d&&l==o*3)return!0;r+=this.ranges[l+s]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,a=0;o<this.ranges.length;o+=3){let s=this.ranges[o],l=s-(this.inverted?a:0),u=s+(this.inverted?0:a),c=this.ranges[o+n],d=this.ranges[o+r];e(l,l+c,u,u+d),a+=d-c}}invert(){return new gn(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?gn.empty:new gn(e<0?[0,-e,0]:[0,0,e])}}gn.empty=new gn([]);class qi{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 qi(this.maps,this.mirror,e,n)}copy(){return new qi(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 qi;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 a=this.from;a<this.to;a++){let s=this.maps[a],l=s.mapResult(e,n);if(l.recover!=null){let u=this.getMirror(a);if(u!=null&&u>a&&u<this.to){a=u,e=this.maps[u].recover(l.recover);continue}}o|=l.delInfo,e=l.pos}return r?e:new $p(e,o,null)}}const Ap=Object.create(null);class It{getMap(){return gn.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Ap[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 Ap)throw new RangeError("Duplicate use of step JSON ID "+e);return Ap[e]=n,n.prototype.jsonID=e,n}}class ht{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ht(e,null)}static fail(e){return new ht(null,e)}static fromReplace(e,n,r,o){try{return ht.ok(e.replace(n,r,o))}catch(a){if(a instanceof gu)return ht.fail(a.message);throw a}}}function Mp(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let a=t.child(o);a.content.size&&(a=a.copy(Mp(a.content,e,a))),a.isInline&&(a=e(a,n,o)),r.push(a)}return oe.fromArray(r)}class Xr extends It{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)),a=new pe(Mp(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 ht.fromReplace(e,this.from,this.to,a)}invert(){return new cr(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 Xr(n.pos,r.pos,this.mark)}merge(e){return e instanceof Xr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Xr(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 Xr(n.from,n.to,e.markFromJSON(n.mark))}}It.jsonID("addMark",Xr);class cr extends It{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 pe(Mp(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return ht.fromReplace(e,this.from,this.to,r)}invert(){return new Xr(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 cr(n.pos,r.pos,this.mark)}merge(e){return e instanceof cr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new cr(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 cr(n.from,n.to,e.markFromJSON(n.mark))}}It.jsonID("removeMark",cr);class Qr extends It{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ht.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ht.fromReplace(e,this.pos,this.pos+1,new pe(oe.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 Qr(this.pos,n.marks[o]);return new Qr(this.pos,this.mark)}}return new ji(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Qr(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 Qr(n.pos,e.markFromJSON(n.mark))}}It.jsonID("addNodeMark",Qr);class ji extends It{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ht.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ht.fromReplace(e,this.pos,this.pos+1,new pe(oe.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Qr(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ji(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 ji(n.pos,e.markFromJSON(n.mark))}}It.jsonID("removeNodeMark",ji);class $t extends It{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&Dp(e,this.from,this.to)?ht.fail("Structure replace would overwrite content"):ht.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new gn([this.from,this.to-this.from,this.slice.size])}invert(e){return new $t(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 $t(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof $t)||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?pe.empty:new pe(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new $t(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?pe.empty:new pe(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new $t(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 $t(n.from,n.to,pe.fromJSON(e,n.slice),!!n.structure)}}It.jsonID("replace",$t);class kt extends It{constructor(e,n,r,o,a,s,l=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=a,this.insert=s,this.structure=l}apply(e){if(this.structure&&(Dp(e,this.from,this.gapFrom)||Dp(e,this.gapTo,this.to)))return ht.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ht.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ht.fromReplace(e,this.from,this.to,r):ht.fail("Content does not fit in gap")}getMap(){return new gn([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 kt(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),a=e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||a>r.pos?null:new kt(n.pos,r.pos,o,a,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 kt(n.from,n.to,n.gapFrom,n.gapTo,pe.fromJSON(e,n.slice),n.insert,!!n.structure)}}It.jsonID("replaceAround",kt);function Dp(t,e,n){let r=t.resolve(e),o=n-e,a=r.depth;for(;o>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,o--;if(o>0){let s=r.node(a).maybeChild(r.indexAfter(a));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function c7(t,e,n,r){let o=[],a=[],s,l;t.doc.nodesBetween(e,n,(u,c,d)=>{if(!u.isInline)return;let p=u.marks;if(!r.isInSet(p)&&d.type.allowsMarkType(r.type)){let f=Math.max(c,e),h=Math.min(c+u.nodeSize,n),m=r.addToSet(p);for(let g=0;g<p.length;g++)p[g].isInSet(m)||(s&&s.to==f&&s.mark.eq(p[g])?s.to=h:o.push(s=new cr(f,h,p[g])));l&&l.to==f?l.to=h:a.push(l=new Xr(f,h,r))}}),o.forEach(u=>t.step(u)),a.forEach(u=>t.step(u))}function d7(t,e,n,r){let o=[],a=0;t.doc.nodesBetween(e,n,(s,l)=>{if(!s.isInline)return;a++;let u=null;if(r instanceof vu){let c=s.marks,d;for(;d=r.isInSet(c);)(u||(u=[])).push(d),c=d.removeFromSet(c)}else r?r.isInSet(s.marks)&&(u=[r]):u=s.marks;if(u&&u.length){let c=Math.min(l+s.nodeSize,n);for(let d=0;d<u.length;d++){let p=u[d],f;for(let h=0;h<o.length;h++){let m=o[h];m.step==a-1&&p.eq(o[h].style)&&(f=m)}f?(f.to=c,f.step=a):o.push({style:p,from:Math.max(l,e),to:c,step:a})}}}),o.forEach(s=>t.step(new cr(s.from,s.to,s.style)))}function f7(t,e,n,r=n.contentMatch){let o=t.doc.nodeAt(e),a=[],s=e+1;for(let l=0;l<o.childCount;l++){let u=o.child(l),c=s+u.nodeSize,d=r.matchType(u.type);if(!d)a.push(new $t(s,c,pe.empty));else{r=d;for(let p=0;p<u.marks.length;p++)n.allowsMarkType(u.marks[p].type)||t.step(new cr(s,c,u.marks[p]));if(u.isText&&!n.spec.code){let p,f=/\r?\n|\r/g,h;for(;p=f.exec(u.text);)h||(h=new pe(oe.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),a.push(new $t(s+p.index,s+p.index+p[0].length,h))}}s=c}if(!r.validEnd){let l=r.fillBefore(oe.empty,!0);t.replace(s,s,new pe(l,0,0))}for(let l=a.length-1;l>=0;l--)t.step(a[l])}function p7(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Ui(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),a=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(a,s,n))return r;if(r==0||o.type.spec.isolating||!p7(o,a,s))break}return null}function h7(t,e,n){let{$from:r,$to:o,depth:a}=e,s=r.before(a+1),l=o.after(a+1),u=s,c=l,d=oe.empty,p=0;for(let m=a,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,d=oe.from(r.node(m).copy(d)),p++):u--;let f=oe.empty,h=0;for(let m=a,g=!1;m>n;m--)g||o.after(m+1)<o.end(m)?(g=!0,f=oe.from(o.node(m).copy(f)),h++):c++;t.step(new kt(u,c,s,l,new pe(d.append(f),p,h),d.size-p,!0))}function Bp(t,e,n=null,r=t){let o=m7(t,e),a=o&&g7(r,e);return a?o.map(B2).concat({type:e,attrs:n}).concat(a.map(B2)):null}function B2(t){return{type:t,attrs:null}}function m7(t,e){let{parent:n,startIndex:r,endIndex:o}=t,a=n.contentMatchAt(r).findWrapping(e);if(!a)return null;let s=a.length?a[0]:e;return n.canReplaceWith(r,o,s)?a:null}function g7(t,e){let{parent:n,startIndex:r,endIndex:o}=t,a=n.child(r),s=e.contentMatch.findWrapping(a.type);if(!s)return null;let u=(s.length?s[s.length-1]:e).contentMatch;for(let c=r;u&&c<o;c++)u=u.matchType(n.child(c).type);return!u||!u.validEnd?null:s}function b7(t,e,n){let r=oe.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=oe.from(n[s].type.create(n[s].attrs,r))}let o=e.start,a=e.end;t.step(new kt(o,a,o,a,new pe(r,0,0),n.length,!0))}function y7(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=t.steps.length;t.doc.nodesBetween(e,n,(s,l)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&w7(t.doc,t.mapping.slice(a).map(l),r)){t.clearIncompatible(t.mapping.slice(a).map(l,1),r);let u=t.mapping.slice(a),c=u.map(l,1),d=u.map(l+s.nodeSize,1);return t.step(new kt(c,d,c+1,d-1,new pe(oe.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function w7(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function v7(t,e,n,r,o){let a=t.doc.nodeAt(e);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let s=n.create(r,null,o||a.marks);if(a.isLeaf)return t.replaceWith(e,e+a.nodeSize,s);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new kt(e,e+a.nodeSize,e+1,e+a.nodeSize-1,new pe(oe.from(s),0,0),1,!0))}function Wi(t,e,n=1,r){let o=t.resolve(e),a=o.depth-n,s=r&&r[r.length-1]||o.parent;if(a<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 c=o.depth-1,d=n-2;c>a;c--,d--){let p=o.node(c),f=o.index(c);if(p.type.spec.isolating)return!1;let h=p.content.cutByIndex(f,p.childCount),m=r&&r[d+1];m&&(h=h.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[d]||p;if(!p.canReplace(f+1,p.childCount)||!g.type.validContent(h))return!1}let l=o.indexAfter(a),u=r&&r[0];return o.node(a).canReplaceWith(l,l,u?u.type:o.node(a+1).type)}function k7(t,e,n=1,r){let o=t.doc.resolve(e),a=oe.empty,s=oe.empty;for(let l=o.depth,u=o.depth-n,c=n-1;l>u;l--,c--){a=oe.from(o.node(l).copy(a));let d=r&&r[c];s=oe.from(d?d.type.create(d.attrs,s):o.node(l).copy(s))}t.step(new $t(e,e,new pe(a.append(s),n,n),!0))}function Zr(t,e){let n=t.resolve(e),r=n.index();return P2(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function P2(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function Su(t,e,n=-1){let r=t.resolve(e);for(let o=r.depth;;o--){let a,s,l=r.index(o);if(o==r.depth?(a=r.nodeBefore,s=r.nodeAfter):n>0?(a=r.node(o+1),l++,s=r.node(o).maybeChild(l)):(a=r.node(o).maybeChild(l-1),s=r.node(o+1)),a&&!a.isTextblock&&P2(a,s)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=n<0?r.before(o):r.after(o)}}function x7(t,e,n){let r=new $t(e-n,e+n,pe.empty,!0);t.step(r)}function E7(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 a=r.index(o);if(r.node(o).canReplaceWith(a,a,n))return r.before(o+1);if(a>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let a=r.indexAfter(o);if(r.node(o).canReplaceWith(a,a,n))return r.after(o+1);if(a<r.node(o).childCount)return null}return null}function V2(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let a=0;a<n.openStart;a++)o=o.firstChild.content;for(let a=1;a<=(n.openStart==0&&n.size?2:1);a++)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,u=r.index(s)+(l>0?1:0),c=r.node(s),d=!1;if(a==1)d=c.canReplace(u,u,o);else{let p=c.contentMatchAt(u).findWrapping(o.firstChild.type);d=p&&c.canReplaceWith(u,u,p[0])}if(d)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function Pp(t,e,n=e,r=pe.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),a=t.resolve(n);return L2(o,a,r)?new $t(e,n,r):new C7(o,a,r).fit()}function L2(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class C7{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=oe.empty;for(let o=0;o<=e.depth;o++){let a=e.node(o);this.frontier.push({type:a.type,match:a.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=oe.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let 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 a=this.placed,s=r.depth,l=o.depth;for(;s&&l&&a.childCount==1;)a=a.firstChild.content,s--,l--;let u=new pe(a,s,l);return e>-1?new kt(r.pos,e,this.$to.pos,this.$to.end(),u,n):u.size||r.pos!=this.$to.pos?new $t(r.pos,o.pos,u):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let a=n.firstChild;if(n.childCount>1&&(o=0),a.type.spec.isolating&&o<=r){e=r;break}n=a.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let o,a=null;r?(a=Vp(this.unplaced.content,r-1).firstChild,o=a.content):o=this.unplaced.content;let s=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:u,match:c}=this.frontier[l],d,p=null;if(n==1&&(s?c.matchType(s.type)||(p=c.fillBefore(oe.from(s),!1)):a&&u.compatibleContent(a.type)))return{sliceDepth:r,frontierDepth:l,parent:a,inject:p};if(n==2&&s&&(d=c.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:l,parent:a,wrap:d};if(a&&c.matchType(a.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=Vp(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new pe(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=Vp(e,n);if(o.childCount<=1&&n>0){let a=e.size-n<=n+o.size;this.unplaced=new pe(ys(e,n-1,1),n-1,a?n-1:r)}else this.unplaced=new pe(ys(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:o,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let g=0;g<a.length;g++)this.openFrontierNode(a[g]);let s=this.unplaced,l=r?r.content:s.content,u=s.openStart-e,c=0,d=[],{match:p,type:f}=this.frontier[n];if(o){for(let g=0;g<o.childCount;g++)d.push(o.child(g));p=p.matchFragment(o)}let h=l.size+e-(s.content.size-s.openEnd);for(;c<l.childCount;){let g=l.child(c),b=p.matchType(g.type);if(!b)break;c++,(c>1||u==0||g.content.size)&&(p=b,d.push(I2(g.mark(f.allowedMarks(g.marks)),c==1?u:0,c==l.childCount?h:-1)))}let m=c==l.childCount;m||(h=-1),this.placed=ws(this.placed,n,oe.from(d)),this.frontier[n].match=p,m&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,b=l;g<h;g++){let v=b.lastChild;this.frontier.push({type:v.type,match:v.contentMatchAt(v.childCount)}),b=v.content}this.unplaced=m?e==0?pe.empty:new pe(ys(s.content,e-1,1),e-1,h<0?s.openEnd:e-1):new pe(ys(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Lp(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],a=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=Lp(e,n,o,r,a);if(s){for(let l=n-1;l>=0;l--){let{match:u,type:c}=this.frontier[l],d=Lp(e,l,c,u,!0);if(!d||d.childCount)continue e}return{depth:n,fit:s,move:a?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),a=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,a)}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,oe.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(oe.empty,!0);n.childCount&&(this.placed=ws(this.placed,this.frontier.length,n))}}function ys(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(ys(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 Vp(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function I2(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,I2(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(oe.empty,!0)))),t.copy(r)}function Lp(t,e,n,r,o){let a=t.node(e),s=o?t.indexAfter(e):t.index(e);if(s==a.childCount&&!n.compatibleContent(a.type))return null;let l=r.fillBefore(a.content,!0,s);return l&&!S7(n,a.content,s)?l:null}function S7(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function _7(t){return t.spec.defining||t.spec.definingForContent}function T7(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),a=t.doc.resolve(n);if(L2(o,a,r))return t.step(new $t(e,n,r));let s=z2(o,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let l=-(o.depth+1);s.unshift(l);for(let f=o.depth,h=o.pos-1;f>0;f--,h--){let m=o.node(f).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;s.indexOf(f)>-1?l=f:o.before(f)==h&&s.splice(1,0,-f)}let u=s.indexOf(l),c=[],d=r.openStart;for(let f=r.content,h=0;;h++){let m=f.firstChild;if(c.push(m),h==r.openStart)break;f=m.content}for(let f=d-1;f>=0;f--){let h=c[f],m=_7(h.type);if(m&&!h.sameMarkup(o.node(Math.abs(l)-1)))d=f;else if(m||!h.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let h=(f+d+1)%(r.openStart+1),m=c[h];if(m)for(let g=0;g<s.length;g++){let b=s[(g+u)%s.length],v=!0;b<0&&(v=!1,b=-b);let x=o.node(b-1),N=o.index(b-1);if(x.canReplaceWith(N,N,m.type,m.marks))return t.replace(o.before(b),v?a.after(b):n,new pe(R2(r.content,0,r.openStart,h),h,r.openEnd))}}let p=t.steps.length;for(let f=s.length-1;f>=0&&(t.replace(e,n,r),!(t.steps.length>p));f--){let h=s[f];h<0||(e=o.before(h),n=a.after(h))}}function R2(t,e,n,r,o){if(e<n){let a=t.firstChild;t=t.replaceChild(0,a.copy(R2(a.content,e+1,n,r,a)))}if(e>r){let a=o.contentMatchAt(0),s=a.fillBefore(t).append(t);t=s.append(a.matchFragment(s).fillBefore(oe.empty,!0))}return t}function N7(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=E7(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new pe(oe.from(r),0,0))}function O7(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),a=z2(r,o);for(let s=0;s<a.length;s++){let l=a[s],u=s==a.length-1;if(u&&l==0||r.node(l).type.contentMatch.validEnd)return t.delete(r.start(l),o.end(l));if(l>0&&(u||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 z2(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let o=r;o>=0;o--){let a=t.start(o);if(a<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;(a==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==a-1)&&n.push(o)}return n}class Ki extends It{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 ht.fail("No node at attribute step's position");let r=Object.create(null);for(let a in n.attrs)r[a]=n.attrs[a];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return ht.fromReplace(e,this.pos,this.pos+1,new pe(oe.from(o),0,n.isLeaf?0:1))}getMap(){return gn.empty}invert(e){return new Ki(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 Ki(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 Ki(n.pos,n.attr,n.value)}}It.jsonID("attr",Ki);class vs extends It{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 ht.ok(r)}getMap(){return gn.empty}invert(e){return new vs(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 vs(n.attr,n.value)}}It.jsonID("docAttr",vs);let Yi=class extends Error{};Yi=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},Yi.prototype=Object.create(Error.prototype),Yi.prototype.constructor=Yi,Yi.prototype.name="TransformError";class F2{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new qi}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Yi(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=pe.empty){let o=Pp(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new pe(oe.from(r),0,0))}delete(e,n){return this.replace(e,n,pe.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return T7(this,e,n,r),this}replaceRangeWith(e,n,r){return N7(this,e,n,r),this}deleteRange(e,n){return O7(this,e,n),this}lift(e,n){return h7(this,e,n),this}join(e,n=1){return x7(this,e,n),this}wrap(e,n){return b7(this,e,n),this}setBlockType(e,n=e,r,o=null){return y7(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return v7(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new Ki(e,n,r)),this}setDocAttribute(e,n){return this.step(new vs(e,n)),this}addNodeMark(e,n){return this.step(new Qr(e,n)),this}removeNodeMark(e,n){if(!(n instanceof et)){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 ji(e,n)),this}split(e,n=1,r){return k7(this,e,n,r),this}addMark(e,n,r){return c7(this,e,n,r),this}removeMark(e,n,r){return d7(this,e,n,r),this}clearIncompatible(e,n,r){return f7(this,e,n,r),this}}const Ip=Object.create(null);class Me{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new $7(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=pe.empty){let r=n.content.lastChild,o=null;for(let l=0;l<n.openEnd;l++)o=r,r=r.lastChild;let a=e.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:u,$to:c}=s[l],d=e.mapping.slice(a);e.replaceRange(d.map(u.pos),d.map(c.pos),l?pe.empty:n),l==0&&j2(e,a,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,o=this.ranges;for(let a=0;a<o.length;a++){let{$from:s,$to:l}=o[a],u=e.mapping.slice(r),c=u.map(s.pos),d=u.map(l.pos);a?e.deleteRange(c,d):(e.replaceRangeWith(c,d,n),j2(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new Ae(e):Gi(e.node(0),e.parent,e.pos,e.index(),n,r);if(o)return o;for(let a=e.depth-1;a>=0;a--){let s=n<0?Gi(e.node(0),e.node(a),e.before(a+1),e.index(a),n,r):Gi(e.node(0),e.node(a),e.after(a+1),e.index(a)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Fn(e.node(0))}static atStart(e){return Gi(e,e,0,0,1)||new Fn(e)}static atEnd(e){return Gi(e,e,e.content.size,e.childCount,-1)||new Fn(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Ip[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 Ip)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ip[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Ae.between(this.$anchor,this.$head).getBookmark()}}Me.prototype.visible=!0;class $7{constructor(e,n){this.$from=e,this.$to=n}}let H2=!1;function q2(t){!H2&&!t.parent.inlineContent&&(H2=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Ae extends Me{constructor(e,n=e){q2(e),q2(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 Me.near(r);let o=e.resolve(n.map(this.anchor));return new Ae(o.parent.inlineContent?o:r,r)}replace(e,n=pe.empty){if(super.replace(e,n),n==pe.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Ae&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new _u(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 Ae(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 a=Me.findFrom(n,r,!0)||Me.findFrom(n,-r,!0);if(a)n=a.$head;else return Me.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(Me.findFrom(e,-r,!0)||Me.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new Ae(e,n)}}Me.jsonID("text",Ae);class _u{constructor(e,n){this.anchor=e,this.head=n}map(e){return new _u(e.map(this.anchor),e.map(this.head))}resolve(e){return Ae.between(e.resolve(this.anchor),e.resolve(this.head))}}class Ee extends Me{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),a=e.resolve(o);return r?Me.near(a):new Ee(a)}content(){return new pe(oe.from(this.node),0,0)}eq(e){return e instanceof Ee&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Rp(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Ee(e.resolve(n.anchor))}static create(e,n){return new Ee(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Ee.prototype.visible=!1,Me.jsonID("node",Ee);class Rp{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new _u(r,r):new Rp(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&Ee.isSelectable(r)?new Ee(n):Me.near(n)}}class Fn extends Me{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=pe.empty){if(n==pe.empty){e.delete(0,e.doc.content.size);let r=Me.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Fn(e)}map(e){return new Fn(e)}eq(e){return e instanceof Fn}getBookmark(){return A7}}Me.jsonID("all",Fn);const A7={map(){return this},resolve(t){return new Fn(t)}};function Gi(t,e,n,r,o,a=!1){if(e.inlineContent)return Ae.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(!a&&Ee.isSelectable(l))return Ee.create(t,n-(o<0?l.nodeSize:0))}else{let u=Gi(t,l,n+o,o<0?l.childCount:0,o,a);if(u)return u}n+=l.nodeSize*o}return null}function j2(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof $t||o instanceof kt))return;let a=t.mapping.maps[r],s;a.forEach((l,u,c,d)=>{s==null&&(s=d)}),t.setSelection(Me.near(t.doc.resolve(s),n))}const U2=1,Tu=2,W2=4;class M7 extends F2{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|U2)&~Tu,this.storedMarks=null,this}get selectionSet(){return(this.updated&U2)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Tu,this}ensureMarks(e){return et.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&Tu)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Tu,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)||et.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 a=this.storedMarks;if(!a){let s=this.doc.resolve(n);a=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,a)),this.selection.empty||this.setSelection(Me.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|=W2,this}get scrolledIntoView(){return(this.updated&W2)>0}}function K2(t,e){return!e||!t?t:t.bind(e)}class ks{constructor(e,n,r){this.name=e,this.init=K2(n.init,r),this.apply=K2(n.apply,r)}}const D7=[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||Me.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 zp{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=D7.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 Ji{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 a=!1;for(let s=0;s<this.config.plugins.length;s++){let l=this.config.plugins[s];if(l.spec.appendTransaction){let u=o?o[s].n:0,c=o?o[s].state:this,d=u<n.length&&l.spec.appendTransaction.call(l,u?n.slice(u):n,c,r);if(d&&r.filterTransaction(d,s)){if(d.setMeta("appendedTransaction",e),!o){o=[];for(let p=0;p<this.config.plugins.length;p++)o.push(p<s?{state:r,n:n.length}:{state:this,n:0})}n.push(d),r=r.applyInner(d),a=!0}o&&(o[s]={state:r,n:n.length})}}if(!a)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Ji(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let a=r[o];n[a.name]=a.apply(e,this[a.name],this,n)}return n}get tr(){return new M7(this)}static create(e){let n=new zp(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new Ji(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 zp(this.schema,e.plugins),r=n.fields,o=new Ji(n);for(let a=0;a<r.length;a++){let s=r[a].name;o[s]=this.hasOwnProperty(s)?this[s]:r[a].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],a=o.spec.state;a&&a.toJSON&&(n[r]=a.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 zp(e.schema,e.plugins),a=new Ji(o);return o.fields.forEach(s=>{if(s.name=="doc")a.doc=jo.fromJSON(e.schema,n.doc);else if(s.name=="selection")a.selection=Me.fromJSON(a.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(a.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let u=r[l],c=u.spec.state;if(u.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){a[s.name]=c.fromJSON.call(u,e,n[l],a);return}}a[s.name]=s.init(e,a)}}),a}}function Y2(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=Y2(o,e,{})),n[r]=o}return n}class At{constructor(e){this.spec=e,this.props={},e.props&&Y2(e.props,this,this.props),this.key=e.key?e.key.key:G2("plugin")}getState(e){return e[this.key]}}const Fp=Object.create(null);function G2(t){return t in Fp?t+"$"+ ++Fp[t]:(Fp[t]=0,t+"$")}class bn{constructor(e="key"){this.key=G2(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Yt=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},xs=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let J2=null;const Or=function(t,e,n){let r=J2||(J2=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},Wo=function(t,e,n,r){return n&&(X2(t,e,n,r,-1)||X2(t,e,n,r,1))},B7=/^(img|br|input|textarea|hr)$/i;function X2(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:dr(t))){let a=t.parentNode;if(!a||a.nodeType!=1||Hp(t)||B7.test(t.nodeName)||t.contentEditable=="false")return!1;e=Yt(t)+(o<0?0:1),t=a}else if(t.nodeType==1){if(t=t.childNodes[e+(o<0?-1:0)],t.contentEditable=="false")return!1;e=o<0?dr(t):0}else return!1}}function dr(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function P7(t,e,n){for(let r=e==0,o=e==dr(t);r||o;){if(t==n)return!0;let a=Yt(t);if(t=t.parentNode,!t)return!1;r=r&&a==0,o=o&&a==dr(t)}}function Hp(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 Nu=function(t){return t.focusNode&&Wo(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Ko(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function V7(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function L7(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 fr=typeof navigator<"u"?navigator:null,Q2=typeof document<"u"?document:null,eo=fr&&fr.userAgent||"",qp=/Edge\/(\d+)/.exec(eo),Z2=/MSIE \d/.exec(eo),jp=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(eo),an=!!(Z2||jp||qp),to=Z2?document.documentMode:jp?+jp[1]:qp?+qp[1]:0,Hn=!an&&/gecko\/(\d+)/i.test(eo);Hn&&+(/Firefox\/(\d+)/.exec(eo)||[0,0])[1];const Up=!an&&/Chrome\/(\d+)/.exec(eo),Rt=!!Up,I7=Up?+Up[1]:0,Gt=!an&&!!fr&&/Apple Computer/.test(fr.vendor),Xi=Gt&&(/Mobile\/\w+/.test(eo)||!!fr&&fr.maxTouchPoints>2),Dn=Xi||(fr?/Mac/.test(fr.platform):!1),R7=fr?/Win/.test(fr.platform):!1,qn=/Android \d/.test(eo),Es=!!Q2&&"webkitFontSmoothing"in Q2.documentElement.style,z7=Es?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function F7(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function $r(t,e){return typeof t=="number"?t:t[e]}function H7(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 ew(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,a=t.dom.ownerDocument;for(let s=n||t.dom;s;s=xs(s)){if(s.nodeType!=1)continue;let l=s,u=l==a.body,c=u?F7(a):H7(l),d=0,p=0;if(e.top<c.top+$r(r,"top")?p=-(c.top-e.top+$r(o,"top")):e.bottom>c.bottom-$r(r,"bottom")&&(p=e.bottom-e.top>c.bottom-c.top?e.top+$r(o,"top")-c.top:e.bottom-c.bottom+$r(o,"bottom")),e.left<c.left+$r(r,"left")?d=-(c.left-e.left+$r(o,"left")):e.right>c.right-$r(r,"right")&&(d=e.right-c.right+$r(o,"right")),d||p)if(u)a.defaultView.scrollBy(d,p);else{let f=l.scrollLeft,h=l.scrollTop;p&&(l.scrollTop+=p),d&&(l.scrollLeft+=d);let m=l.scrollLeft-f,g=l.scrollTop-h;e={left:e.left-m,top:e.top-g,right:e.right-m,bottom:e.bottom-g}}if(u||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function q7(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,o;for(let a=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let l=t.root.elementFromPoint(a,s);if(!l||l==t.dom||!t.dom.contains(l))continue;let u=l.getBoundingClientRect();if(u.top>=n-20){r=l,o=u.top;break}}return{refDOM:r,refTop:o,stack:tw(t.dom)}}function tw(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=xs(r));return e}function j7({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;nw(n,r==0?0:r-e)}function nw(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:o,left:a}=t[n];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=a&&(r.scrollLeft=a)}}let Qi=null;function U7(t){if(t.setActive)return t.setActive();if(Qi)return t.focus(Qi);let e=tw(t);t.focus(Qi==null?{get preventScroll(){return Qi={preventScroll:!0},!0}}:void 0),Qi||(Qi=!1,nw(e,0))}function rw(t,e){let n,r=2e8,o,a=0,s=e.top,l=e.top,u,c;for(let d=t.firstChild,p=0;d;d=d.nextSibling,p++){let f;if(d.nodeType==1)f=d.getClientRects();else if(d.nodeType==3)f=Or(d).getClientRects();else continue;for(let h=0;h<f.length;h++){let m=f[h];if(m.top<=s&&m.bottom>=l){s=Math.max(m.bottom,s),l=Math.min(m.top,l);let g=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(g<r){n=d,r=g,o=g&&n.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,d.nodeType==1&&g&&(a=p+(e.left>=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!u&&m.left<=e.left&&m.right>=e.left&&(u=d,c={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)&&(a=p+1)}}return!n&&u&&(n=u,o=c,r=0),n&&n.nodeType==3?W7(n,o):!n||r&&n.nodeType==1?{node:t,offset:a}:rw(n,o)}function W7(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 a=no(r,1);if(a.top!=a.bottom&&Wp(e,a))return{node:t,offset:o+(e.left>=(a.left+a.right)/2?1:0)}}return{node:t,offset:0}}function Wp(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function K7(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function Y7(t,e,n){let{node:r,offset:o}=rw(e,n),a=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();a=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,o,a)}function G7(t,e,n,r){let o=-1;for(let a=e,s=!1;a!=t.dom;){let l=t.docView.nearestDesc(a,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!s||!l.contentDOM)){let u=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!s&&(s=!0,u.left>r.left||u.top>r.top?o=l.posBefore:(u.right<r.left||u.bottom<r.top)&&(o=l.posAfter)),!l.contentDOM&&o<0&&!l.node.isText)return(l.node.isBlock?r.top<(u.top+u.bottom)/2:r.left<(u.left+u.right)/2)?l.posBefore:l.posAfter}a=l.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}function ow(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)),a=o;;){let s=t.childNodes[a];if(s.nodeType==1){let l=s.getClientRects();for(let u=0;u<l.length;u++){let c=l[u];if(Wp(e,c))return ow(s,e,c)}}if((a=(a+1)%r)==o)break}return t}function J7(t,e){let n=t.dom.ownerDocument,r,o=0,a=L7(n,e.left,e.top);a&&({node:r,offset:o}=a);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 c=t.dom.getBoundingClientRect();if(!Wp(e,c)||(s=ow(t.dom,e,c),!s))return null}if(Gt)for(let c=s;r&&c;c=xs(c))c.draggable&&(r=void 0);if(s=K7(s,e),r){if(Hn&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let d=r.childNodes[o],p;d.nodeName=="IMG"&&(p=d.getBoundingClientRect()).right<=e.left&&p.bottom>e.top&&o++}let c;Es&&o&&r.nodeType==1&&(c=r.childNodes[o-1]).nodeType==1&&c.contentEditable=="false"&&c.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=G7(t,r,o,e))}l==null&&(l=Y7(t,s,e));let u=t.docView.nearestDesc(s,!0);return{pos:l,inside:u?u.posAtStart-u.border:-1}}function iw(t){return t.top<t.bottom||t.left<t.right}function no(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(iw(r))return r}return Array.prototype.find.call(n,iw)||t.getBoundingClientRect()}const X7=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function aw(t,e,n){let{node:r,offset:o,atom:a}=t.docView.domFromPos(e,n<0?-1:1),s=Es||Hn;if(r.nodeType==3)if(s&&(X7.test(r.nodeValue)||(n<0?!o:o==r.nodeValue.length))){let u=no(Or(r,o,o),n);if(Hn&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let c=no(Or(r,o-1,o-1),-1);if(c.top==u.top){let d=no(Or(r,o,o+1),-1);if(d.top!=u.top)return Cs(d,d.left<c.left)}}return u}else{let u=o,c=o,d=n<0?1:-1;return n<0&&!o?(c++,d=-1):n>=0&&o==r.nodeValue.length?(u--,d=1):n<0?u--:c++,Cs(no(Or(r,u,c),d),d<0)}if(!t.state.doc.resolve(e-(a||0)).parent.inlineContent){if(a==null&&o&&(n<0||o==dr(r))){let u=r.childNodes[o-1];if(u.nodeType==1)return Kp(u.getBoundingClientRect(),!1)}if(a==null&&o<dr(r)){let u=r.childNodes[o];if(u.nodeType==1)return Kp(u.getBoundingClientRect(),!0)}return Kp(r.getBoundingClientRect(),n>=0)}if(a==null&&o&&(n<0||o==dr(r))){let u=r.childNodes[o-1],c=u.nodeType==3?Or(u,dr(u)-(s?0:1)):u.nodeType==1&&(u.nodeName!="BR"||!u.nextSibling)?u:null;if(c)return Cs(no(c,1),!1)}if(a==null&&o<dr(r)){let u=r.childNodes[o];for(;u.pmViewDesc&&u.pmViewDesc.ignoreForCoords;)u=u.nextSibling;let c=u?u.nodeType==3?Or(u,0,s?0:1):u.nodeType==1?u:null:null;if(c)return Cs(no(c,-1),!0)}return Cs(no(r.nodeType==3?Or(r):r,-n),n>=0)}function Cs(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 Kp(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 sw(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 Q7(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return sw(t,e,()=>{let{node:a}=t.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let l=t.docView.nearestDesc(a,!0);if(!l)break;if(l.node.isBlock){a=l.contentDOM||l.dom;break}a=l.dom.parentNode}let s=aw(t,o.pos,1);for(let l=a.firstChild;l;l=l.nextSibling){let u;if(l.nodeType==1)u=l.getClientRects();else if(l.nodeType==3)u=Or(l,0,l.nodeValue.length).getClientRects();else continue;for(let c=0;c<u.length;c++){let d=u[c];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 Z7=/[\u0590-\u08ac]/;function eB(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,a=!o,s=o==r.parent.content.size,l=t.domSelection();return!Z7.test(r.parent.textContent)||!l.modify?n=="left"||n=="backward"?a:s:sw(t,e,()=>{let{focusNode:u,focusOffset:c,anchorNode:d,anchorOffset:p}=t.domSelectionRange(),f=l.caretBidiLevel;l.modify("move",n,"character");let h=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:m,focusOffset:g}=t.domSelectionRange(),b=m&&!h.contains(m.nodeType==1?m:m.parentNode)||u==m&&c==g;try{l.collapse(d,p),u&&(u!=d||c!=p)&&l.extend&&l.extend(u,c)}catch{}return f!=null&&(l.caretBidiLevel=f),b})}let lw=null,uw=null,cw=!1;function tB(t,e,n){return lw==e&&uw==n?cw:(lw=e,uw=n,cw=n=="up"||n=="down"?Q7(t,e,n):eB(t,e,n))}const Bn=0,dw=1,Yo=2,pr=3;class Ss{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=Bn,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 a,s;if(e==this.contentDOM)a=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;a=e.previousSibling}for(;a&&!((s=a.pmViewDesc)&&s.parent==this);)a=a.previousSibling;return a?this.posBeforeChild(s)+s.size:this.posAtStart}else{let a,s;if(e==this.contentDOM)a=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;a=e.nextSibling}for(;a&&!((s=a.pmViewDesc)&&s.parent==this);)a=a.nextSibling;return a?this.posBeforeChild(s):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=n>Yt(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 a=e;;a=a.parentNode){if(a==this.dom){o=!1;break}if(a.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let a=e;;a=a.parentNode){if(a==this.dom){o=!0;break}if(a.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 a=this.getDesc(o),s;if(a&&(!n||a.node))if(r&&(s=a.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return a}}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 a=this.getDesc(o);if(a)return a.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],a=r+o.size;if(r==e&&a!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<a)return o.descAt(e-r-o.border);r=a}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let a=0;r<this.children.length;r++){let s=this.children[r],l=a+s.size;if(l>e||s instanceof hw){o=e-a;break}a=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let a;r&&!(a=this.children[r-1]).size&&a instanceof fw&&a.side>=0;r--);if(n<=0){let a,s=!0;for(;a=r?this.children[r-1]:null,!(!a||a.dom.parentNode==this.contentDOM);r--,s=!1);return a&&n&&s&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?Yt(a.dom)+1:0}}else{let a,s=!0;for(;a=r<this.children.length?this.children[r]:null,!(!a||a.dom.parentNode==this.contentDOM);r++,s=!1);return a&&s&&!a.border&&!a.domAtom?a.domFromPos(0,n):{node:this.contentDOM,offset:a?Yt(a.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,a=-1;for(let s=r,l=0;;l++){let u=this.children[l],c=s+u.size;if(o==-1&&e<=c){let d=s+u.border;if(e>=d&&n<=c-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(e,n,d);e=s;for(let p=l;p>0;p--){let f=this.children[p-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){o=Yt(f.dom)+1;break}e-=f.size}o==-1&&(o=0)}if(o>-1&&(c>n||l==this.children.length-1)){n=c;for(let d=l+1;d<this.children.length;d++){let p=this.children[d];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){a=Yt(p.dom);break}n+=p.size}a==-1&&(a=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:n,fromOffset:o,toOffset:a}}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 a=Math.min(e,n),s=Math.max(e,n);for(let f=0,h=0;f<this.children.length;f++){let m=this.children[f],g=h+m.size;if(a>h&&s<g)return m.setSelection(e-h-m.border,n-h-m.border,r,o);h=g}let l=this.domFromPos(e,e?-1:1),u=n==e?l:this.domFromPos(n,n?-1:1),c=r.getSelection(),d=!1;if((Hn||Gt)&&e==n){let{node:f,offset:h}=l;if(f.nodeType==3){if(d=!!(h&&f.nodeValue[h-1]==`
`),d&&h==f.nodeValue.length)for(let m=f,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(l=u={node:g.parentNode,offset:Yt(g)+1});break}let b=m.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{let m=f.childNodes[h-1];d=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Hn&&c.focusNode&&c.focusNode!=u.node&&c.focusNode.nodeType==1){let f=c.focusNode.childNodes[c.focusOffset];f&&f.contentEditable=="false"&&(o=!0)}if(!(o||d&&Gt)&&Wo(l.node,l.offset,c.anchorNode,c.anchorOffset)&&Wo(u.node,u.offset,c.focusNode,c.focusOffset))return;let p=!1;if((c.extend||e==n)&&!d){c.collapse(l.node,l.offset);try{e!=n&&c.extend(u.node,u.offset),p=!0}catch{}}if(!p){if(e>n){let h=l;l=u,u=h}let f=document.createRange();f.setEnd(u.node,u.offset),f.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(f)}}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 a=this.children[o],s=r+a.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let l=r+a.border,u=s-a.border;if(e>=l&&n<=u){this.dirty=e==r||n==s?Yo:dw,e==l&&n==u&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=pr:a.markDirty(e-l,n-l);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?Yo:pr}r=s}this.dirty=Yo}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Yo:dw;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class fw extends Ss{constructor(e,n,r,o){let a,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!a)return o;if(a.parent)return a.parent.posBeforeChild(a)})),!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,a=this}matchesWidget(e){return this.dirty==Bn&&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 nB extends Ss{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 Go extends Ss{constructor(e,n,r,o){super(e,[],r,o),this.mark=n}static create(e,n,r,o){let a=o.nodeViews[n.type.name],s=a&&a(n,o,r);return(!s||!s.dom)&&(s=ur.renderSpec(document,n.type.spec.toDOM(n,r))),new Go(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&pr||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=pr&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Bn){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Bn}}slice(e,n,r){let o=Go.create(this.parent,this.mark,!0,r),a=this.children,s=this.size;n<s&&(a=Jp(a,n,s,r)),e>0&&(a=Jp(a,0,e,r));for(let l=0;l<a.length;l++)a[l].parent=o;return o.children=a,o}}class ro extends Ss{constructor(e,n,r,o,a,s,l,u,c){super(e,[],a,s),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=l}static create(e,n,r,o,a,s){let l=a.nodeViews[n.type.name],u,c=l&&l(n,a,()=>{if(!u)return s;if(u.parent)return u.parent.posBeforeChild(u)},r,o),d=c&&c.dom,p=c&&c.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:p}=ur.renderSpec(document,n.type.spec.toDOM(n)));!p&&!n.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),n.type.spec.draggable&&(d.draggable=!0));let f=d;return d=bw(d,r,n),c?u=new rB(e,n,r,o,d,p||null,f,c,a,s+1):n.isText?new Ou(e,n,r,o,d,f,a):new ro(e,n,r,o,d,p||null,f,a,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=()=>oe.empty)}return e}matchesNode(e,n,r){return this.dirty==Bn&&e.eq(this.node)&&Gp(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,a=e.composing?this.localCompositionInfo(e,n):null,s=a&&a.pos>-1?a:null,l=a&&a.pos<0,u=new iB(this,s&&s.node,e);lB(this.node,this.innerDeco,(c,d,p)=>{c.spec.marks?u.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!p&&u.syncToMarks(d==this.node.childCount?et.none:this.node.child(d).marks,r,e),u.placeWidget(c,e,o)},(c,d,p,f)=>{u.syncToMarks(c.marks,r,e);let h;u.findNodeMatch(c,d,p,f)||l&&e.state.selection.from>o&&e.state.selection.to<o+c.nodeSize&&(h=u.findIndexWithChild(a.node))>-1&&u.updateNodeAt(c,d,p,h,e)||u.updateNextNode(c,d,p,e,f,o)||u.addNode(c,d,p,e,o),o+=c.nodeSize}),u.syncToMarks([],r,e),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==Yo)&&(s&&this.protectLocalComposition(e,s),mw(this.contentDOM,this.children,e),Xi&&uB(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Ae)||r<n||o>n+this.node.content.size)return null;let a=e.domSelectionRange(),s=cB(a.focusNode,a.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let l=s.nodeValue,u=dB(this.node.content,l,r-n,o-n);return u<0?null:{node:s,pos:u,text:l}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let s=new nB(this,a,n,o);e.input.compositionNodes.push(s),this.children=Jp(this.children,r,r+o.length,e,s)}update(e,n,r,o){return this.dirty==pr||!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=Bn}updateOuterDeco(e){if(Gp(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=gw(this.dom,this.nodeDOM,Yp(this.outerDeco,this.node,n),Yp(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 pw(t,e,n,r,o){bw(r,e,t);let a=new ro(void 0,t,e,n,r,r,r,o,0);return a.contentDOM&&a.updateChildren(o,0),a}class Ou extends ro{constructor(e,n,r,o,a,s,l){super(e,n,r,o,a,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==pr||this.dirty!=Bn&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Bn||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=Bn,!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),a=document.createTextNode(o.text);return new Ou(this.parent,o,this.outerDeco,this.innerDeco,a,a,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=pr)}get domAtom(){return!1}}class hw extends Ss{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Bn&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class rB extends ro{constructor(e,n,r,o,a,s,l,u,c,d){super(e,n,r,o,a,s,l,c,d),this.spec=u}update(e,n,r,o){if(this.dirty==pr)return!1;if(this.spec.update){let a=this.spec.update(e,n,r);return a&&this.updateInner(e,n,r,o),a}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 mw(t,e,n){let r=t.firstChild,o=!1;for(let a=0;a<e.length;a++){let s=e[a],l=s.dom;if(l.parentNode==t){for(;l!=r;)r=yw(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(l,r);if(s instanceof Go){let u=r?r.previousSibling:t.lastChild;mw(s.contentDOM,s.children,n),r=u?u.nextSibling:t.firstChild}}for(;r;)r=yw(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const _s=function(t){t&&(this.nodeName=t)};_s.prototype=Object.create(null);const Jo=[new _s];function Yp(t,e,n){if(t.length==0)return Jo;let r=n?Jo[0]:new _s,o=[r];for(let a=0;a<t.length;a++){let s=t[a].type.attrs;if(s){s.nodeName&&o.push(r=new _s(s.nodeName));for(let l in s){let u=s[l];u!=null&&(n&&o.length==1&&o.push(r=new _s(e.isInline?"span":"div")),l=="class"?r.class=(r.class?r.class+" ":"")+u:l=="style"?r.style=(r.style?r.style+";":"")+u:l!="nodeName"&&(r[l]=u))}}}return o}function gw(t,e,n,r){if(n==Jo&&r==Jo)return e;let o=e;for(let a=0;a<r.length;a++){let s=r[a],l=n[a];if(a){let u;l&&l.nodeName==s.nodeName&&o!=t&&(u=o.parentNode)&&u.nodeName.toLowerCase()==s.nodeName||(u=document.createElement(s.nodeName),u.pmIsDeco=!0,u.appendChild(o),l=Jo[0]),o=u}oB(o,l||Jo[0],s)}return o}function oB(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 a=0;a<r.length;a++)o.indexOf(r[a])==-1&&t.classList.remove(r[a]);for(let a=0;a<o.length;a++)r.indexOf(o[a])==-1&&t.classList.add(o[a]);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 bw(t,e,n){return gw(t,t,Jo,Yp(e,n,t.nodeType!=1))}function Gp(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 yw(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class iB{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=aB(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,a=this.stack.length>>1,s=Math.min(a,e.length);for(;o<s&&(o==a-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<a;)this.destroyRest(),this.top.dirty=Bn,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let u=this.index;u<Math.min(this.index+3,this.top.children.length);u++){let c=this.top.children[u];if(c.matchesMark(e[a])&&!this.isLocked(c.dom)){l=u;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let u=Go.create(this.top,e[a],n,r);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,a++}}findNodeMatch(e,n,r,o){let a=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))a=this.top.children.indexOf(s,this.index);else for(let l=this.index,u=Math.min(this.top.children.length,l+5);l<u;l++){let c=this.top.children[l];if(c.matchesNode(e,n,r)&&!this.preMatch.matched.has(c)){a=l;break}}return a<0?!1:(this.destroyBetween(this.index,a),this.index++,!0)}updateNodeAt(e,n,r,o,a){let s=this.top.children[o];return s.dirty==pr&&s.dom==s.contentDOM&&(s.dirty=Yo),s.update(e,n,r,a)?(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,a,s){for(let l=this.index;l<this.top.children.length;l++){let u=this.top.children[l];if(u instanceof ro){let c=this.preMatch.matched.get(u);if(c!=null&&c!=a)return!1;let d=u.dom,p,f=this.isLocked(d)&&!(e.isText&&u.node&&u.node.isText&&u.nodeDOM.nodeValue==e.text&&u.dirty!=pr&&Gp(n,u.outerDeco));if(!f&&u.update(e,n,r,o))return this.destroyBetween(this.index,l),u.dom!=d&&(this.changed=!0),this.index++,!0;if(!f&&(p=this.recreateWrapper(u,e,n,r,o,s)))return this.top.children[this.index]=p,p.contentDOM&&(p.dirty=Yo,p.updateChildren(o,s+1),p.dirty=Bn),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,o,a,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content))return null;let l=ro.create(this.top,n,r,o,a,s);if(l.contentDOM){l.children=e.children,e.children=[];for(let u of l.children)u.parent=l}return e.destroy(),l}addNode(e,n,r,o,a){let s=ro.create(this.top,e,n,r,o,a);s.contentDOM&&s.updateChildren(o,a+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 a=new fw(this.top,e,n,r);this.top.children.splice(this.index++,0,a),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Go;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Ou)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Gt||Rt)&&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 hw(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 aB(t,e){let n=e,r=n.children.length,o=t.childCount,a=new Map,s=[];e:for(;o>0;){let l;for(;;)if(r){let c=n.children[r-1];if(c instanceof Go)n=c,r=c.children.length;else{l=c,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let u=l.node;if(u){if(u!=t.child(o-1))break;--o,a.set(l,o),s.push(l)}}return{index:o,matched:a,matches:s.reverse()}}function sB(t,e){return t.type.side-e.type.side}function lB(t,e,n,r){let o=e.locals(t),a=0;if(o.length==0){for(let c=0;c<t.childCount;c++){let d=t.child(c);r(d,o,e.forChild(a,d),c),a+=d.nodeSize}return}let s=0,l=[],u=null;for(let c=0;;){let d,p;for(;s<o.length&&o[s].to==a;){let b=o[s++];b.widget&&(d?(p||(p=[d])).push(b):d=b)}if(d)if(p){p.sort(sB);for(let b=0;b<p.length;b++)n(p[b],c,!!u)}else n(d,c,!!u);let f,h;if(u)h=-1,f=u,u=null;else if(c<t.childCount)h=c,f=t.child(c++);else break;for(let b=0;b<l.length;b++)l[b].to<=a&&l.splice(b--,1);for(;s<o.length&&o[s].from<=a&&o[s].to>a;)l.push(o[s++]);let m=a+f.nodeSize;if(f.isText){let b=m;s<o.length&&o[s].from<b&&(b=o[s].from);for(let v=0;v<l.length;v++)l[v].to<b&&(b=l[v].to);b<m&&(u=f.cut(b-a),f=f.cut(0,b-a),m=b,h=-1)}let g=f.isInline&&!f.isLeaf?l.filter(b=>!b.inline):l.slice();r(f,g,e.forChild(a,f),h),a=m}}function uB(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 cB(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=dr(t)}else if(t.nodeType==1&&e<t.childNodes.length)t=t.childNodes[e],e=0;else return null}}function dB(t,e,n,r){for(let o=0,a=0;o<t.childCount&&a<=r;){let s=t.child(o++),l=a;if(a+=s.nodeSize,!s.isText)continue;let u=s.text;for(;o<t.childCount;){let c=t.child(o++);if(a+=c.nodeSize,!c.isText)break;u+=c.text}if(a>=n){if(a>=r&&u.slice(r-e.length-l,r-l)==e)return r-e.length;let c=l<r?u.lastIndexOf(e,r-l-1):-1;if(c>=0&&c+e.length+l>=n)return l+c;if(n==r&&u.length>=r+e.length-l&&u.slice(r-l,r-l+e.length)==e)return r}}return-1}function Jp(t,e,n,r,o){let a=[];for(let s=0,l=0;s<t.length;s++){let u=t[s],c=l,d=l+=u.size;c>=n||d<=e?a.push(u):(c<e&&a.push(u.slice(0,e-c,r)),o&&(a.push(o),o=void 0),d>n&&a.push(u.slice(n-c,u.size,r)))}return a}function Xp(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let o=t.docView.nearestDesc(n.focusNode),a=o&&o.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let l=r.resolve(s),u,c;if(Nu(n)){for(u=l;o&&!o.node;)o=o.parent;let d=o.node;if(o&&d.isAtom&&Ee.isSelectable(d)&&o.parent&&!(d.isInline&&P7(n.focusNode,n.focusOffset,o.dom))){let p=o.posBefore;c=new Ee(s==p?l:r.resolve(p))}}else{let d=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(d<0)return null;u=r.resolve(d)}if(!c){let d=e=="pointer"||t.state.selection.head<l.pos&&!a?1:-1;c=Zp(t,u,l,d)}return c}function ww(t){return t.editable?t.hasFocus():_w(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Ar(t,e=!1){let n=t.state.selection;if(Ew(t,n),!!ww(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Rt){let r=t.domSelectionRange(),o=t.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&Wo(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)pB(t);else{let{anchor:r,head:o}=n,a,s;vw&&!(n instanceof Ae)&&(n.$from.parent.inlineContent||(a=kw(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=kw(t,n.to))),t.docView.setSelection(r,o,t.root,e),vw&&(a&&xw(a),s&&xw(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&fB(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const vw=Gt||Rt&&I7<63;function kw(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(Gt&&o&&o.contentEditable=="false")return Qp(o);if((!o||o.contentEditable=="false")&&(!a||a.contentEditable=="false")){if(o)return Qp(o);if(a)return Qp(a)}}function Qp(t){return t.contentEditable="true",Gt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function xw(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function fB(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(()=>{(!ww(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function pB(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,Yt(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&an&&to<=11&&(r.disabled=!0,r.disabled=!1)}function Ew(t,e){if(e instanceof Ee){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Cw(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Cw(t)}function Cw(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Zp(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||Ae.between(e,n,r)}function Sw(t){return t.editable&&!t.hasFocus()?!1:_w(t)}function _w(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 hB(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Wo(e.node,e.offset,n.anchorNode,n.anchorOffset)}function e0(t,e){let{$anchor:n,$head:r}=t.selection,o=e>0?n.max(r):n.min(r),a=o.parent.inlineContent?o.depth?t.doc.resolve(e>0?o.after():o.before()):null:o;return a&&Me.findFrom(a,e)}function Xo(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Tw(t,e,n){let r=t.state.selection;if(r instanceof Ae){if(!r.empty||n.indexOf("s")>-1)return!1;if(t.endOfTextblock(e>0?"forward":"backward")){let o=e0(t.state,e);return o&&o instanceof Ee?Xo(t,o):!1}else if(!(Dn&&n.indexOf("m")>-1)){let o=r.$head,a=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!a||a.isText)return!1;let l=e<0?o.pos-a.nodeSize:o.pos;return a.isAtom||(s=t.docView.descAt(l))&&!s.contentDOM?Ee.isSelectable(a)?Xo(t,new Ee(e<0?t.state.doc.resolve(o.pos-a.nodeSize):o)):Es?Xo(t,new Ae(t.state.doc.resolve(e<0?l:l+a.nodeSize))):!1:!1}}else{if(r instanceof Ee&&r.node.isInline)return Xo(t,new Ae(e>0?r.$to:r.$from));{let o=e0(t.state,e);return o?Xo(t,o):!1}}}function $u(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Ts(t,e){if(t.contentEditable=="false")return!0;let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Zi(t,e){return e<0?mB(t):gB(t)}function mB(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,a,s=!1;for(Hn&&n.nodeType==1&&r<$u(n)&&Ts(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let l=n.childNodes[r-1];if(Ts(l,-1))o=n,a=--r;else if(l.nodeType==3)n=l,r=n.nodeValue.length;else break}}else{if(Nw(n))break;{let l=n.previousSibling;for(;l&&Ts(l,-1);)o=n.parentNode,a=Yt(l),l=l.previousSibling;if(l)n=l,r=$u(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?t0(t,n,r):o&&t0(t,o,a)}function gB(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=$u(n),a,s;for(;;)if(r<o){if(n.nodeType!=1)break;let l=n.childNodes[r];if(Ts(l,1))a=n,s=++r;else break}else{if(Nw(n))break;{let l=n.nextSibling;for(;l&&Ts(l,1);)a=l.parentNode,s=Yt(l)+1,l=l.nextSibling;if(l)n=l,r=0,o=$u(n);else{if(n=n.parentNode,n==t.dom)break;r=o=0}}}a&&t0(t,a,s)}function Nw(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function bB(t,e){for(;t&&e==t.childNodes.length&&!Hp(t);)e=Yt(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 yB(t,e){for(;t&&!e&&!Hp(t);)e=Yt(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 t0(t,e,n){if(e.nodeType!=3){let a,s;(s=bB(e,n))?(e=s,n=0):(a=yB(e,n))&&(e=a,n=a.nodeValue.length)}let r=t.domSelection();if(Nu(r)){let a=document.createRange();a.setEnd(e,n),a.setStart(e,n),r.removeAllRanges(),r.addRange(a)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:o}=t;setTimeout(()=>{t.state==o&&Ar(t)},50)}function Ow(t,e){let n=t.state.doc.resolve(e);if(!(Rt||R7)&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let a=t.coordsAtPos(e-1),s=(a.top+a.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(a.left-o.left)>1)return a.left<o.left?"ltr":"rtl"}if(e<n.end()){let a=t.coordsAtPos(e+1),s=(a.top+a.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(a.left-o.left)>1)return a.left>o.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function $w(t,e,n){let r=t.state.selection;if(r instanceof Ae&&!r.empty||n.indexOf("s")>-1||Dn&&n.indexOf("m")>-1)return!1;let{$from:o,$to:a}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=e0(t.state,e);if(s&&s instanceof Ee)return Xo(t,s)}if(!o.parent.inlineContent){let s=e<0?o:a,l=r instanceof Fn?Me.near(s,e):Me.findFrom(s,e);return l?Xo(t,l):!1}return!1}function Aw(t,e){if(!(t.state.selection instanceof Ae))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 a=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let s=t.state.tr;return e<0?s.delete(n.pos-a.nodeSize,n.pos):s.delete(n.pos,n.pos+a.nodeSize),t.dispatch(s),!0}return!1}function Mw(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function wB(t){if(!Gt||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;Mw(t,r,"true"),setTimeout(()=>Mw(t,r,"false"),20)}return!1}function vB(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function kB(t,e){let n=e.keyCode,r=vB(e);if(n==8||Dn&&n==72&&r=="c")return Aw(t,-1)||Zi(t,-1);if(n==46&&!e.shiftKey||Dn&&n==68&&r=="c")return Aw(t,1)||Zi(t,1);if(n==13||n==27)return!0;if(n==37||Dn&&n==66&&r=="c"){let o=n==37?Ow(t,t.state.selection.from)=="ltr"?-1:1:-1;return Tw(t,o,r)||Zi(t,o)}else if(n==39||Dn&&n==70&&r=="c"){let o=n==39?Ow(t,t.state.selection.from)=="ltr"?1:-1:1;return Tw(t,o,r)||Zi(t,o)}else{if(n==38||Dn&&n==80&&r=="c")return $w(t,-1,r)||Zi(t,-1);if(n==40||Dn&&n==78&&r=="c")return wB(t)||$w(t,1,r)||Zi(t,1);if(r==(Dn?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Dw(t,e){t.someProp("transformCopied",h=>{e=h(e,t)});let n=[],{content:r,openStart:o,openEnd:a}=e;for(;o>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,a--;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")||ur.fromSchema(t.state.schema),l=Fw(),u=l.createElement("div");u.appendChild(s.serializeFragment(r,{document:l}));let c=u.firstChild,d,p=0;for(;c&&c.nodeType==1&&(d=Rw[c.nodeName.toLowerCase()]);){for(let h=d.length-1;h>=0;h--){let m=l.createElement(d[h]);for(;u.firstChild;)m.appendChild(u.firstChild);u.appendChild(m),p++}c=u.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${o} ${a}${p?` -${p}`:""} ${JSON.stringify(n)}`);let f=t.someProp("clipboardTextSerializer",h=>h(e,t))||e.content.textBetween(0,e.content.size,`

`);return{dom:u,text:f}}function Bw(t,e,n,r,o){let a=o.parent.type.spec.code,s,l;if(!n&&!e)return null;let u=e&&(r||a||!n);if(u){if(t.someProp("transformPastedText",f=>{e=f(e,a||r,t)}),a)return e?new pe(oe.from(t.state.schema.text(e.replace(/\r\n?/g,`
`))),0,0):pe.empty;let p=t.someProp("clipboardTextParser",f=>f(e,o,r,t));if(p)l=p;else{let f=o.marks(),{schema:h}=t.state,m=ur.fromSchema(h);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let b=s.appendChild(document.createElement("p"));g&&b.appendChild(m.serializeNode(h.text(g,f)))})}}else t.someProp("transformPastedHTML",p=>{n=p(n,t)}),s=CB(n),Es&&SB(s);let c=s&&s.querySelector("[data-pm-slice]"),d=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let p=+d[3];p>0;p--){let f=s.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;s=f}if(l||(l=(t.someProp("clipboardParser")||t.someProp("domParser")||Hi.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(u||d),context:o,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!xB.test(f.parentNode.nodeName)?{ignore:!0}:null}})),d)l=_B(Iw(l,+d[1],+d[2]),d[4]);else if(l=pe.maxOpen(EB(l.content,o),!0),l.openStart||l.openEnd){let p=0,f=0;for(let h=l.content.firstChild;p<l.openStart&&!h.type.spec.isolating;p++,h=h.firstChild);for(let h=l.content.lastChild;f<l.openEnd&&!h.type.spec.isolating;f++,h=h.lastChild);l=Iw(l,p,f)}return t.someProp("transformPasted",p=>{l=p(l,t)}),l}const xB=/^(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 EB(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)),a,s=[];if(t.forEach(l=>{if(!s)return;let u=o.findWrapping(l.type),c;if(!u)return s=null;if(c=s.length&&a.length&&Vw(u,a,l,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=Lw(s[s.length-1],a.length));let d=Pw(l,u);s.push(d),o=o.matchType(d.type),a=u}}),s)return oe.from(s)}return t}function Pw(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,oe.from(t));return t}function Vw(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let a=Vw(t,e,n,r.lastChild,o+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(oe.from(Pw(n,t,o+1))))}}function Lw(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Lw(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(oe.empty,!0);return t.copy(n.append(r))}function n0(t,e,n,r,o,a){let s=e<0?t.firstChild:t.lastChild,l=s.content;return t.childCount>1&&(a=0),o<r-1&&(l=n0(l,e,n,r,o+1,a)),o>=n&&(l=e<0?s.contentMatchAt(0).fillBefore(l,a<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(oe.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(l))}function Iw(t,e,n){return e<t.openStart&&(t=new pe(n0(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new pe(n0(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Rw={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 zw=null;function Fw(){return zw||(zw=document.implementation.createHTMLDocument("title"))}function CB(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Fw().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&Rw[r[1].toLowerCase()])&&(t=o.map(a=>"<"+a+">").join("")+t+o.map(a=>"</"+a+">").reverse().join("")),n.innerHTML=t,o)for(let a=0;a<o.length;a++)n=n.querySelector(o[a])||n;return n}function SB(t){let e=t.querySelectorAll(Rt?"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 _B(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:a,openEnd:s}=t;for(let l=r.length-2;l>=0;l-=2){let u=n.nodes[r[l]];if(!u||u.hasRequiredAttrs())break;o=oe.from(u.create(r[l+1],o)),a++,s++}return new pe(o,a,s)}const Jt={},Xt={},TB={touchstart:!0,touchmove:!0};class NB{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 OB(t){for(let e in Jt){let n=Jt[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{AB(t,r)&&!o0(t,r)&&(t.editable||!(r.type in Xt))&&n(t,r)},TB[e]?{passive:!0}:void 0)}Gt&&t.dom.addEventListener("input",()=>null),r0(t)}function oo(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function $B(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 r0(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>o0(t,r))})}function o0(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function AB(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 MB(t,e){!o0(t,e)&&Jt[e.type]&&(t.editable||!(e.type in Xt))&&Jt[e.type](t,e)}Xt.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!qw(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(qn&&Rt&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Xi&&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,Ko(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||kB(t,n)?n.preventDefault():oo(t,"key")},Xt.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Xt.keypress=(t,e)=>{let n=e;if(qw(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||Dn&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Ae)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",a=>a(t,r.$from.pos,r.$to.pos,o))&&t.dispatch(t.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function Au(t){return{left:t.clientX,top:t.clientY}}function DB(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function i0(t,e,n,r,o){if(r==-1)return!1;let a=t.state.doc.resolve(r);for(let s=a.depth+1;s>0;s--)if(t.someProp(e,l=>s>a.depth?l(t,n,a.nodeAfter,a.before(s),o,!0):l(t,n,a.node(s),a.before(s),o,!1)))return!0;return!1}function ea(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function BB(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&Ee.isSelectable(r)?(ea(t,new Ee(n),"pointer"),!0):!1}function PB(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof Ee&&(r=n.node);let a=t.state.doc.resolve(e);for(let s=a.depth+1;s>0;s--){let l=s>a.depth?a.nodeAfter:a.node(s);if(Ee.isSelectable(l)){r&&n.$from.depth>0&&s>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?o=a.before(n.$from.depth):o=a.before(s);break}}return o!=null?(ea(t,Ee.create(t.state.doc,o),"pointer"),!0):!1}function VB(t,e,n,r,o){return i0(t,"handleClickOn",e,n,r)||t.someProp("handleClick",a=>a(t,e,r))||(o?PB(t,n):BB(t,n))}function LB(t,e,n,r){return i0(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function IB(t,e,n,r){return i0(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||RB(t,n,r)}function RB(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(ea(t,Ae.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a),l=o.before(a);if(s.inlineContent)ea(t,Ae.create(r,l+1,l+1+s.content.size),"pointer");else if(Ee.isSelectable(s))ea(t,Ee.create(r,l),"pointer");else continue;return!0}}function a0(t){return Mu(t)}const Hw=Dn?"metaKey":"ctrlKey";Jt.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=a0(t),o=Date.now(),a="singleClick";o-t.input.lastClick.time<500&&DB(n,t.input.lastClick)&&!n[Hw]&&(t.input.lastClick.type=="singleClick"?a="doubleClick":t.input.lastClick.type=="doubleClick"&&(a="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:a};let s=t.posAtCoords(Au(n));s&&(a=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new zB(t,s,n,!!r)):(a=="doubleClick"?LB:IB)(t,s.pos,s.inside,n)?n.preventDefault():oo(t,"pointer"))};class zB{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[Hw],this.allowDefault=r.shiftKey;let a,s;if(n.inside>-1)a=e.state.doc.nodeAt(n.inside),s=n.inside;else{let d=e.state.doc.resolve(n.pos);a=d.parent,s=d.depth?d.before():0}const l=o?null:r.target,u=l?e.docView.nearestDesc(l,!0):null;this.target=u?u.dom:null;let{selection:c}=e.state;(r.button==0&&a.type.spec.draggable&&a.type.spec.selectable!==!1||c instanceof Ee&&c.from<=s&&c.to>s)&&(this.mightDrag={node:a,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Hn&&!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)),oo(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(()=>Ar(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(Au(e))),this.updateAllowDefault(e),this.allowDefault||!n?oo(this.view,"pointer"):VB(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Gt&&this.mightDrag&&!this.mightDrag.node.isAtom||Rt&&!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)?(ea(this.view,Me.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):oo(this.view,"pointer")}move(e){this.updateAllowDefault(e),oo(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)}}Jt.touchstart=t=>{t.input.lastTouch=Date.now(),a0(t),oo(t,"pointer")},Jt.touchmove=t=>{t.input.lastTouch=Date.now(),oo(t,"pointer")},Jt.contextmenu=t=>a0(t);function qw(t,e){return t.composing?!0:Gt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const FB=qn?5e3:-1;Xt.compositionstart=Xt.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(),Mu(t,!0),t.markCursor=null;else if(Mu(t),Hn&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,a=r.focusOffset;o&&o.nodeType==1&&a!=0;){let s=a<0?o.lastChild:o.childNodes[a-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else o=s,a=-1}}t.input.composing=!0}jw(t,FB)},Xt.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++,jw(t,20))};function jw(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Mu(t),e))}function Uw(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=HB());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function HB(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Mu(t,e=!1){if(!(qn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Uw(t),e||t.docView&&t.docView.dirty){let n=Xp(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function qB(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 ta=an&&to<15||Xi&&z7<604;Jt.copy=Xt.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let a=ta?null:n.clipboardData,s=r.content(),{dom:l,text:u}=Dw(t,s);a?(n.preventDefault(),a.clearData(),a.setData("text/html",l.innerHTML),a.setData("text/plain",u)):qB(t,l),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function jB(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function UB(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?Ns(t,r.value,null,o,e):Ns(t,r.textContent,r.innerHTML,o,e)},50)}function Ns(t,e,n,r,o){let a=Bw(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",u=>u(t,o,a||pe.empty)))return!0;if(!a)return!1;let s=jB(a),l=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(a);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Xt.paste=(t,e)=>{let n=e;if(t.composing&&!qn)return;let r=ta?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Ns(t,r.getData("text/plain"),r.getData("text/html"),o,n)?n.preventDefault():UB(t,n)};class WB{constructor(e,n){this.slice=e,this.move=n}}const Ww=Dn?"altKey":"ctrlKey";Jt.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=t.state.selection,a=o.empty?null:t.posAtCoords(Au(n));if(!(a&&a.pos>=o.from&&a.pos<=(o instanceof Ee?o.to-1:o.to))){if(r&&r.mightDrag)t.dispatch(t.state.tr.setSelection(Ee.create(t.state.doc,r.mightDrag.pos)));else if(n.target&&n.target.nodeType==1){let c=t.docView.nearestDesc(n.target,!0);c&&c.node.type.spec.draggable&&c!=t.docView&&t.dispatch(t.state.tr.setSelection(Ee.create(t.state.doc,c.posBefore)))}}let s=t.state.selection.content(),{dom:l,text:u}=Dw(t,s);n.dataTransfer.clearData(),n.dataTransfer.setData(ta?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",ta||n.dataTransfer.setData("text/plain",u),t.dragging=new WB(s,!n[Ww])},Jt.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},Xt.dragover=Xt.dragenter=(t,e)=>e.preventDefault(),Xt.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let o=t.posAtCoords(Au(n));if(!o)return;let a=t.state.doc.resolve(o.pos),s=r&&r.slice;s?t.someProp("transformPasted",m=>{s=m(s,t)}):s=Bw(t,n.dataTransfer.getData(ta?"Text":"text/plain"),ta?null:n.dataTransfer.getData("text/html"),!1,a);let l=!!(r&&!n[Ww]);if(t.someProp("handleDrop",m=>m(t,n,s||pe.empty,l))){n.preventDefault();return}if(!s)return;n.preventDefault();let u=s?V2(t.state.doc,a.pos,s):a.pos;u==null&&(u=a.pos);let c=t.state.tr;l&&c.deleteSelection();let d=c.mapping.map(u),p=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,f=c.doc;if(p?c.replaceRangeWith(d,d,s.content.firstChild):c.replaceRange(d,d,s),c.doc.eq(f))return;let h=c.doc.resolve(d);if(p&&Ee.isSelectable(s.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new Ee(h));else{let m=c.mapping.map(u);c.mapping.maps[c.mapping.maps.length-1].forEach((g,b,v,x)=>m=x),c.setSelection(Zp(t,h,c.doc.resolve(m)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))},Jt.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())&&Ar(t)},20))},Jt.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)},Jt.beforeinput=(t,e)=>{if(Rt&&qn&&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",a=>a(t,Ko(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 Xt)Jt[t]=Xt[t];function Os(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 Du{constructor(e,n){this.toDOM=e,this.spec=n||Qo,this.side=this.spec.side||0}map(e,n,r,o){let{pos:a,deleted:s}=e.mapResult(n.from+o,this.side<0?-1:1);return s?null:new yn(a-r,a-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Du&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Os(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class io{constructor(e,n){this.attrs=e,this.spec=n||Qo}map(e,n,r,o){let a=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return a>=s?null:new yn(a,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof io&&Os(this.attrs,e.attrs)&&Os(this.spec,e.spec)}static is(e){return e.type instanceof io}destroy(){}}class s0{constructor(e,n){this.attrs=e,this.spec=n||Qo}map(e,n,r,o){let a=e.mapResult(n.from+o,1);if(a.deleted)return null;let s=e.mapResult(n.to+o,-1);return s.deleted||s.pos<=a.pos?null:new yn(a.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:o}=e.content.findIndex(n.from),a;return o==n.from&&!(a=e.child(r)).isText&&o+a.nodeSize==n.to}eq(e){return this==e||e instanceof s0&&Os(this.attrs,e.attrs)&&Os(this.spec,e.spec)}destroy(){}}class yn{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new yn(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 yn(e,e,new Du(n,r))}static inline(e,n,r,o){return new yn(e,n,new io(r,o))}static node(e,n,r,o){return new yn(e,n,new s0(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof io}get widget(){return this.type instanceof Du}}const na=[],Qo={};class mt{constructor(e,n){this.local=e.length?e:na,this.children=n.length?n:na}static create(e,n){return n.length?Bu(n,e,0,Qo):zt}find(e,n,r){let o=[];return this.findInner(e??0,n??1e9,o,0,r),o}findInner(e,n,r,o,a){for(let s=0;s<this.local.length;s++){let l=this.local[s];l.from<=n&&l.to>=e&&(!a||a(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,a)}}map(e,n,r){return this==zt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||Qo)}mapInner(e,n,r,o,a){let s;for(let l=0;l<this.local.length;l++){let u=this.local[l].map(e,r,o);u&&u.type.valid(n,u)?(s||(s=[])).push(u):a.onRemove&&a.onRemove(this.local[l].spec)}return this.children.length?KB(this.children,s||[],e,n,r,o,a):s?new mt(s.sort(Zo),na):zt}add(e,n){return n.length?this==zt?mt.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,a=0;e.forEach((l,u)=>{let c=u+r,d;if(d=Yw(n,l,c)){for(o||(o=this.children.slice());a<o.length&&o[a]<u;)a+=3;o[a]==u?o[a+2]=o[a+2].addInner(l,d,c+1):o.splice(a,0,u,u+l.nodeSize,Bu(d,l,c+1,Qo)),a+=3}});let s=Kw(a?Gw(n):n,-r);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||s.splice(l--,1);return new mt(s.length?this.local.concat(s).sort(Zo):this.local,o||this.children)}remove(e){return e.length==0||this==zt?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,o=this.local;for(let a=0;a<r.length;a+=3){let s,l=r[a]+n,u=r[a+1]+n;for(let d=0,p;d<e.length;d++)(p=e[d])&&p.from>l&&p.to<u&&(e[d]=null,(s||(s=[])).push(p));if(!s)continue;r==this.children&&(r=this.children.slice());let c=r[a+2].removeInner(s,l+1);c!=zt?r[a+2]=c:(r.splice(a,3),a-=3)}if(o.length){for(let a=0,s;a<e.length;a++)if(s=e[a])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 mt(o,r):zt}forChild(e,n){if(this==zt)return this;if(n.isLeaf)return mt.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 a=e+1,s=a+n.content.size;for(let l=0;l<this.local.length;l++){let u=this.local[l];if(u.from<s&&u.to>a&&u.type instanceof io){let c=Math.max(a,u.from)-a,d=Math.min(s,u.to)-a;c<d&&(o||(o=[])).push(u.copy(c,d))}}if(o){let l=new mt(o.sort(Zo),na);return r?new ao([l,r]):l}return r||zt}eq(e){if(this==e)return!0;if(!(e instanceof mt)||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 l0(this.localsInner(e))}localsInner(e){if(this==zt)return na;if(e.inlineContent||!this.local.some(io.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof io||n.push(this.local[r]);return n}}mt.empty=new mt([],[]),mt.removeOverlap=l0;const zt=mt.empty;class ao{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,Qo));return ao.from(r)}forChild(e,n){if(n.isLeaf)return mt.empty;let r=[];for(let o=0;o<this.members.length;o++){let a=this.members[o].forChild(e,n);a!=zt&&(a instanceof ao?r=r.concat(a.members):r.push(a))}return ao.from(r)}eq(e){if(!(e instanceof ao)||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 a=this.members[o].localsInner(e);if(a.length)if(!n)n=a;else{r&&(n=n.slice(),r=!1);for(let s=0;s<a.length;s++)n.push(a[s])}}return n?l0(r?n:n.sort(Zo)):na}static from(e){switch(e.length){case 0:return zt;case 1:return e[0];default:return new ao(e.every(n=>n instanceof mt)?e:e.reduce((n,r)=>n.concat(r instanceof mt?r:r.members),[]))}}}function KB(t,e,n,r,o,a,s){let l=t.slice();for(let c=0,d=a;c<n.maps.length;c++){let p=0;n.maps[c].forEach((f,h,m,g)=>{let b=g-m-(h-f);for(let v=0;v<l.length;v+=3){let x=l[v+1];if(x<0||f>x+d-p)continue;let N=l[v]+d-p;h>=N?l[v+1]=f<=N?-2:-1:m>=o&&b&&(l[v]+=b,l[v+1]+=b)}p+=b}),d=n.maps[c].map(d,-1)}let u=!1;for(let c=0;c<l.length;c+=3)if(l[c+1]<0){if(l[c+1]==-2){u=!0,l[c+1]=-1;continue}let d=n.map(t[c]+a),p=d-o;if(p<0||p>=r.content.size){u=!0;continue}let f=n.map(t[c+1]+a,-1),h=f-o,{index:m,offset:g}=r.content.findIndex(p),b=r.maybeChild(m);if(b&&g==p&&g+b.nodeSize==h){let v=l[c+2].mapInner(n,b,d+1,t[c]+a+1,s);v!=zt?(l[c]=p,l[c+1]=h,l[c+2]=v):(l[c+1]=-2,u=!0)}else u=!0}if(u){let c=YB(l,t,e,n,o,a,s),d=Bu(c,r,0,s);e=d.local;for(let p=0;p<l.length;p+=3)l[p+1]<0&&(l.splice(p,3),p-=3);for(let p=0,f=0;p<d.children.length;p+=3){let h=d.children[p];for(;f<l.length&&l[f]<h;)f+=3;l.splice(f,0,d.children[p],d.children[p+1],d.children[p+2])}}return new mt(e.sort(Zo),l)}function Kw(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 yn(o.from+e,o.to+e,o.type))}return n}function YB(t,e,n,r,o,a,s){function l(u,c){for(let d=0;d<u.local.length;d++){let p=u.local[d].map(r,o,c);p?n.push(p):s.onRemove&&s.onRemove(u.local[d].spec)}for(let d=0;d<u.children.length;d+=3)l(u.children[d+2],u.children[d]+c+1)}for(let u=0;u<t.length;u+=3)t[u+1]==-1&&l(t[u+2],e[u]+a+1);return n}function Yw(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,o=null;for(let a=0,s;a<t.length;a++)(s=t[a])&&s.from>n&&s.to<r&&((o||(o=[])).push(s),t[a]=null);return o}function Gw(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function Bu(t,e,n,r){let o=[],a=!1;e.forEach((l,u)=>{let c=Yw(t,l,u+n);if(c){a=!0;let d=Bu(c,l,n+u+1,r);d!=zt&&o.push(u,u+l.nodeSize,d)}});let s=Kw(a?Gw(t):t,-n).sort(Zo);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 mt(s,o):zt}function Zo(t,e){return t.from-e.from||t.to-e.to}function l0(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 a=e[o];if(a.from==r.from){a.to!=r.to&&(e==t&&(e=t.slice()),e[o]=a.copy(a.from,r.to),Jw(e,o+1,a.copy(r.to,a.to)));continue}else{a.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,a.from),Jw(e,o,r.copy(a.from,r.to)));break}}}return e}function Jw(t,e,n){for(;e<t.length&&Zo(n,t[e])>0;)e++;t.splice(e,0,n)}function u0(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=zt&&e.push(r)}),t.cursorWrapper&&e.push(mt.create(t.state.doc,[t.cursorWrapper.deco])),ao.from(e)}const GB={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},JB=an&&to<=11;class XB{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 QB{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new XB,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]);an&&to<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),JB&&(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,GB)),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(Sw(this.view)){if(this.suppressingSelectionUpdates)return Ar(this.view);if(an&&to<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Wo(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 a=e.focusNode;a;a=xs(a))n.add(a);for(let a=e.anchorNode;a;a=xs(a))if(n.has(a)){r=a;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)&&Sw(e)&&!this.ignoreSelectionChange(r),a=-1,s=-1,l=!1,u=[];if(e.editable)for(let d=0;d<n.length;d++){let p=this.registerMutation(n[d],u);p&&(a=a<0?p.from:Math.min(p.from,a),s=s<0?p.to:Math.max(p.to,s),p.typeOver&&(l=!0))}if(Hn&&u.length>1){let d=u.filter(p=>p.nodeName=="BR");if(d.length==2){let p=d[0],f=d[1];p.parentNode&&p.parentNode.parentNode==f.parentNode?f.remove():p.remove()}}let c=null;a<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Nu(r)&&(c=Xp(e))&&c.eq(Me.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Ar(e),this.currentSelection.set(r),e.scrollToSelection()):(a>-1||o)&&(a>-1&&(e.docView.markDirty(a,s),ZB(e)),this.handleDOMChange(a,s,l,u),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Ar(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,a=e.nextSibling;if(an&&to<=11&&e.addedNodes.length)for(let d=0;d<e.addedNodes.length;d++){let{previousSibling:p,nextSibling:f}=e.addedNodes[d];(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(o=p),(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(a=f)}let s=o&&o.parentNode==e.target?Yt(o)+1:0,l=r.localPosFromDOM(e.target,s,-1),u=a&&a.parentNode==e.target?Yt(a):e.target.childNodes.length,c=r.localPosFromDOM(e.target,u,1);return{from:l,to:c}}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 Xw=new WeakMap,Qw=!1;function ZB(t){if(!Xw.has(t)&&(Xw.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Hn,Qw)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."),Qw=!0}}function eP(t){let e;function n(u){u.preventDefault(),u.stopImmediatePropagation(),e=u.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let r=e.startContainer,o=e.startOffset,a=e.endContainer,s=e.endOffset,l=t.domAtPos(t.state.selection.anchor);return Wo(l.node,l.offset,a,s)&&([r,o,a,s]=[a,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:a,focusOffset:s}}function tP(t,e,n){let{node:r,fromOffset:o,toOffset:a,from:s,to:l}=t.docView.parseRange(e,n),u=t.domSelectionRange(),c,d=u.anchorNode;if(d&&t.dom.contains(d.nodeType==1?d:d.parentNode)&&(c=[{node:d,offset:u.anchorOffset}],Nu(u)||c.push({node:u.focusNode,offset:u.focusOffset})),Rt&&t.input.lastKeyCode===8)for(let b=a;b>o;b--){let v=r.childNodes[b-1],x=v.pmViewDesc;if(v.nodeName=="BR"&&!x){a=b;break}if(!x||x.size)break}let p=t.state.doc,f=t.someProp("domParser")||Hi.fromSchema(t.state.schema),h=p.resolve(s),m=null,g=f.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:a,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:nP,context:h});if(c&&c[0].pos!=null){let b=c[0].pos,v=c[1]&&c[1].pos;v==null&&(v=b),m={anchor:b+s,head:v+s}}return{doc:g,sel:m,from:s,to:l}}function nP(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Gt&&/^(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||Gt&&/^(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 rP=/^(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 oP(t,e,n,r,o){let a=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let B=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,L=Xp(t,B);if(L&&!t.state.selection.eq(L)){if(Rt&&qn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",$=>$(t,Ko(13,"Enter"))))return;let k=t.state.tr.setSelection(L);B=="pointer"?k.setMeta("pointer",!0):B=="key"&&k.scrollIntoView(),a&&k.setMeta("composition",a),t.dispatch(k)}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 u=t.state.selection,c=tP(t,e,n),d=t.state.doc,p=d.slice(c.from,c.to),f,h;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(f=t.state.selection.to,h="end"):(f=t.state.selection.from,h="start"),t.input.lastKeyCode=null;let m=sP(p.content,c.doc.content,c.from,f,h);if((Xi&&t.input.lastIOSEnter>Date.now()-225||qn)&&o.some(B=>B.nodeType==1&&!rP.test(B.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",B=>B(t,Ko(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&u instanceof Ae&&!u.empty&&u.$head.sameParent(u.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))m={start:u.from,endA:u.to,endB:u.to};else{if(c.sel){let B=Zw(t,t.state.doc,c.sel);if(B&&!B.eq(t.state.selection)){let L=t.state.tr.setSelection(B);a&&L.setMeta("composition",a),t.dispatch(L)}}return}if(Rt&&t.cursorWrapper&&c.sel&&c.sel.anchor==t.cursorWrapper.deco.from&&c.sel.head==c.sel.anchor){let B=m.endB-m.start;c.sel={anchor:c.sel.anchor+B,head:c.sel.anchor+B}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof Ae&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),an&&to<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>c.from&&c.doc.textBetween(m.start-c.from-1,m.start-c.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let g=c.doc.resolveNoCache(m.start-c.from),b=c.doc.resolveNoCache(m.endB-c.from),v=d.resolve(m.start),x=g.sameParent(b)&&g.parent.inlineContent&&v.end()>=m.endA,N;if((Xi&&t.input.lastIOSEnter>Date.now()-225&&(!x||o.some(B=>B.nodeName=="DIV"||B.nodeName=="P"))||!x&&g.pos<c.doc.content.size&&!g.sameParent(b)&&(N=Me.findFrom(c.doc.resolve(g.pos+1),1,!0))&&N.head==b.pos)&&t.someProp("handleKeyDown",B=>B(t,Ko(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&aP(d,m.start,m.endA,g,b)&&t.someProp("handleKeyDown",B=>B(t,Ko(8,"Backspace")))){qn&&Rt&&t.domObserver.suppressSelectionUpdates();return}Rt&&qn&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),qn&&!x&&g.start()!=b.start()&&b.parentOffset==0&&g.depth==b.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,b=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(B){return B(t,Ko(13,"Enter"))})},20));let y=m.start,M=m.endA,E,C,T;if(x){if(g.pos==b.pos)an&&to<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Ar(t),20)),E=t.state.tr.delete(y,M),C=d.resolve(m.start).marksAcross(d.resolve(m.endA));else if(m.endA==m.endB&&(T=iP(g.parent.content.cut(g.parentOffset,b.parentOffset),v.parent.content.cut(v.parentOffset,m.endA-v.start()))))E=t.state.tr,T.type=="add"?E.addMark(y,M,T.mark):E.removeMark(y,M,T.mark);else if(g.parent.child(g.index()).isText&&g.index()==b.index()-(b.textOffset?0:1)){let B=g.parent.textBetween(g.parentOffset,b.parentOffset);if(t.someProp("handleTextInput",L=>L(t,y,M,B)))return;E=t.state.tr.insertText(B,y,M)}}if(E||(E=t.state.tr.replace(y,M,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let B=Zw(t,E.doc,c.sel);B&&!(Rt&&qn&&t.composing&&B.empty&&(m.start!=m.endB||t.input.lastAndroidDelete<Date.now()-100)&&(B.head==y||B.head==E.mapping.map(M)-1)||an&&B.empty&&B.head==y)&&E.setSelection(B)}C&&E.ensureMarks(C),a&&E.setMeta("composition",a),t.dispatch(E.scrollIntoView())}function Zw(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Zp(t,e.resolve(n.anchor),e.resolve(n.head))}function iP(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,a=r,s,l,u;for(let d=0;d<r.length;d++)o=r[d].removeFromSet(o);for(let d=0;d<n.length;d++)a=n[d].removeFromSet(a);if(o.length==1&&a.length==0)l=o[0],s="add",u=d=>d.mark(l.addToSet(d.marks));else if(o.length==0&&a.length==1)l=a[0],s="remove",u=d=>d.mark(l.removeFromSet(d.marks));else return null;let c=[];for(let d=0;d<e.childCount;d++)c.push(u(e.child(d)));if(oe.from(c).eq(t))return{mark:l,type:s}}function aP(t,e,n,r,o){if(!r.parent.isTextblock||n-e<=o.pos-r.pos||c0(r,!0,!1)<o.pos)return!1;let a=t.resolve(e);if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let s=t.resolve(c0(a,!0,!0));return!s.parent.isTextblock||s.pos>n||c0(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function c0(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 a=t.node(r).maybeChild(t.indexAfter(r));for(;a&&!a.isLeaf;)a=a.firstChild,o++}return o}function sP(t,e,n,r,o){let a=t.findDiffStart(e,n);if(a==null)return null;let{a:s,b:l}=t.findDiffEnd(e,n+t.size,n+e.size);if(o=="end"){let u=Math.max(0,a-Math.min(s,l));r-=s+u-a}if(s<a&&t.size<e.size){let u=r<=a&&r>=s?a-r:0;a-=u,l=a+(l-s),s=a}else if(l<a){let u=r<=a&&r>=l?a-r:0;a-=u,s=a+(s-l),l=a}return{start:a,endA:s,endB:l}}class lP{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 NB,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(ov),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=nv(this),tv(this),this.nodeViews=rv(this),this.docView=pw(this.state.doc,ev(this),u0(this),this.dom,this),this.domObserver=new QB(this,(r,o,a,s)=>oP(this,r,o,a,s)),this.domObserver.start(),OB(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&&r0(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(ov),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){let r=this.state,o=!1,a=!1;e.storedMarks&&this.composing&&(Uw(this),a=!0),this.state=e;let s=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let f=rv(this);cP(f,this.nodeViews)&&(this.nodeViews=f,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&r0(this),this.editable=nv(this),tv(this);let l=u0(this),u=ev(this),c=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(e.doc,u,l);(d||!e.selection.eq(r.selection))&&(a=!0);let p=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&q7(this);if(a){this.domObserver.stop();let f=d&&(an||Rt)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&uP(r.selection,e.selection);if(d){let h=Rt?this.trackWrites=this.domSelectionRange().focusNode:null;(o||!this.docView.update(e.doc,u,l,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=pw(e.doc,u,l,this.dom,this)),h&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&hB(this))?Ar(this,f):(Ew(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():p&&j7(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Ee){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&ew(this,n.getBoundingClientRect(),e)}else ew(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)}}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 a=this.state.plugins;if(a)for(let s=0;s<a.length;s++){let l=a[s].props[e];if(l!=null&&(o=n?n(l):l))return o}}hasFocus(){if(an){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&&U7(this.dom),Ar(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 J7(this,e)}coordsAtPos(e,n=1){return aw(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 tB(this,n||this.state,e)}pasteHTML(e,n){return Ns(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Ns(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&($B(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],u0(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 MB(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return Gt&&this.root.nodeType===11&&V7(this.dom.ownerDocument)==this.dom?eP(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function ev(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"),[yn.node(0,t.state.doc.content.size,e)]}function tv(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:yn.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function nv(t){return!t.someProp("editable",e=>e(t.state)===!1)}function uP(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 rv(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 cP(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 ov(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 so={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:"'"},Pu={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},dP=typeof navigator<"u"&&/Mac/.test(navigator.platform),fP=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Mt=0;Mt<10;Mt++)so[48+Mt]=so[96+Mt]=String(Mt);for(var Mt=1;Mt<=24;Mt++)so[Mt+111]="F"+Mt;for(var Mt=65;Mt<=90;Mt++)so[Mt]=String.fromCharCode(Mt+32),Pu[Mt]=String.fromCharCode(Mt);for(var d0 in so)Pu.hasOwnProperty(d0)||(Pu[d0]=so[d0]);function pP(t){var e=dP&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||fP&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Pu:so)[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 hP=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function mP(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,o,a,s;for(let l=0;l<e.length-1;l++){let u=e[l];if(/^(cmd|meta|m)$/i.test(u))s=!0;else if(/^a(lt)?$/i.test(u))r=!0;else if(/^(c|ctrl|control)$/i.test(u))o=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))hP?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+u)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),s&&(n="Meta-"+n),a&&(n="Shift-"+n),n}function gP(t){let e=Object.create(null);for(let n in t)e[mP(n)]=t[n];return e}function f0(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 bP(t){return new At({props:{handleKeyDown:iv(t)}})}function iv(t){let e=gP(t);return function(n,r){let o=pP(r),a,s=e[f0(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let l=e[f0(o,r,!1)];if(l&&l(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(a=so[r.keyCode])&&a!=o){let l=e[f0(a,r)];if(l&&l(n.state,n.dispatch,n))return!0}}return!1}}const yP=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function wP(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const vP=(t,e,n)=>{let r=wP(t,n);if(!r)return!1;let o=av(r);if(!o){let s=r.blockRange(),l=s&&Ui(s);return l==null?!1:(e&&e(t.tr.lift(s,l).scrollIntoView()),!0)}let a=o.nodeBefore;if(!a.type.spec.isolating&&uv(t,o,e))return!0;if(r.parent.content.size==0&&(ra(a,"end")||Ee.isSelectable(a))){let s=Pp(t.doc,r.before(),r.after(),pe.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=t.tr.step(s);l.setSelection(ra(a,"end")?Me.findFrom(l.doc.resolve(l.mapping.map(o.pos,-1)),-1):Ee.create(l.doc,o.pos-a.nodeSize)),e(l.scrollIntoView())}return!0}}return a.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-a.nodeSize,o.pos).scrollIntoView()),!0):!1};function ra(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 kP=(t,e,n)=>{let{$head:r,empty:o}=t.selection,a=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;a=av(r)}let s=a&&a.nodeBefore;return!s||!Ee.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Ee.create(t.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function av(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 xP(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const EP=(t,e,n)=>{let r=xP(t,n);if(!r)return!1;let o=sv(r);if(!o)return!1;let a=o.nodeAfter;if(uv(t,o,e))return!0;if(r.parent.content.size==0&&(ra(a,"start")||Ee.isSelectable(a))){let s=Pp(t.doc,r.before(),r.after(),pe.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=t.tr.step(s);l.setSelection(ra(a,"start")?Me.findFrom(l.doc.resolve(l.mapping.map(o.pos)),1):Ee.create(l.doc,l.mapping.map(o.pos))),e(l.scrollIntoView())}return!0}}return a.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos,o.pos+a.nodeSize).scrollIntoView()),!0):!1},CP=(t,e,n)=>{let{$head:r,empty:o}=t.selection,a=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;a=sv(r)}let s=a&&a.nodeAfter;return!s||!Ee.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Ee.create(t.doc,a.pos)).scrollIntoView()),!0)};function sv(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 SP=(t,e)=>{let n=t.selection,r=n instanceof Ee,o;if(r){if(n.node.isTextblock||!Zr(t.doc,n.from))return!1;o=n.from}else if(o=Su(t.doc,n.from,-1),o==null)return!1;if(e){let a=t.tr.join(o);r&&a.setSelection(Ee.create(a.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(a.scrollIntoView())}return!0},_P=(t,e)=>{let n=t.selection,r;if(n instanceof Ee){if(n.node.isTextblock||!Zr(t.doc,n.to))return!1;r=n.to}else if(r=Su(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},TP=(t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),a=o&&Ui(o);return a==null?!1:(e&&e(t.tr.lift(o,a).scrollIntoView()),!0)},NP=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
`).scrollIntoView()),!0)};function lv(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 OP=(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),a=n.indexAfter(-1),s=lv(o.contentMatchAt(a));if(!s||!o.canReplaceWith(a,a,s))return!1;if(e){let l=n.after(),u=t.tr.replaceWith(l,l,s.createAndFill());u.setSelection(Me.near(u.doc.resolve(l),1)),e(u.scrollIntoView())}return!0},$P=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof Fn||r.parent.inlineContent||o.parent.inlineContent)return!1;let a=lv(o.parent.contentMatchAt(o.indexAfter()));if(!a||!a.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,l=t.tr.insert(s,a.createAndFill());l.setSelection(Ae.create(l.doc,s+1)),e(l.scrollIntoView())}return!0},AP=(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 a=n.before();if(Wi(t.doc,a))return e&&e(t.tr.split(a).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Ui(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)},MP=(t,e)=>{let{$from:n,to:r}=t.selection,o,a=n.sharedDepth(r);return a==0?!1:(o=n.before(a),e&&e(t.tr.setSelection(Ee.create(t.doc,o))),!0)};function DP(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,a=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(a-1,a)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(a,a+1)||!(o.isTextblock||Zr(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function uv(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,a,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(DP(t,e,n))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(a=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(a[0]||o.type).validEnd){if(n){let p=e.pos+o.nodeSize,f=oe.empty;for(let g=a.length-1;g>=0;g--)f=oe.from(a[g].create(null,f));f=oe.from(r.copy(f));let h=t.tr.step(new kt(e.pos-1,p,e.pos,p,new pe(f,1,0),a.length,!0)),m=p+2*a.length;Zr(h.doc,m)&&h.join(m),n(h.scrollIntoView())}return!0}let u=Me.findFrom(e,1),c=u&&u.$from.blockRange(u.$to),d=c&&Ui(c);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(c,d).scrollIntoView()),!0;if(l&&ra(o,"start",!0)&&ra(r,"end")){let p=r,f=[];for(;f.push(p),!p.isTextblock;)p=p.lastChild;let h=o,m=1;for(;!h.isTextblock;h=h.firstChild)m++;if(p.canReplace(p.childCount,p.childCount,h.content)){if(n){let g=oe.empty;for(let v=f.length-1;v>=0;v--)g=oe.from(f[v].copy(g));let b=t.tr.step(new kt(e.pos-f.length,e.pos+o.nodeSize,e.pos+m,e.pos+o.nodeSize-m,new pe(g,f.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function cv(t){return function(e,n){let r=e.selection,o=t<0?r.$from:r.$to,a=o.depth;for(;o.node(a).isInline;){if(!a)return!1;a--}return o.node(a).isTextblock?(n&&n(e.tr.setSelection(Ae.create(e.doc,t<0?o.start(a):o.end(a)))),!0):!1}}const BP=cv(-1),PP=cv(1);function VP(t,e=null){return function(n,r){let{$from:o,$to:a}=n.selection,s=o.blockRange(a),l=s&&Bp(s,t,e);return l?(r&&r(n.tr.wrap(s,l).scrollIntoView()),!0):!1}}function dv(t,e=null){return function(n,r){let o=!1;for(let a=0;a<n.selection.ranges.length&&!o;a++){let{$from:{pos:s},$to:{pos:l}}=n.selection.ranges[a];n.doc.nodesBetween(s,l,(u,c)=>{if(o)return!1;if(!(!u.isTextblock||u.hasMarkup(t,e)))if(u.type==t)o=!0;else{let d=n.doc.resolve(c),p=d.index();o=d.parent.canReplaceWith(p,p+1,t)}})}if(!o)return!1;if(r){let a=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:u}}=n.selection.ranges[s];a.setBlockType(l,u,t,e)}r(a.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function LP(t,e=null){return function(n,r){let{$from:o,$to:a}=n.selection,s=o.blockRange(a),l=!1,u=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);u=new yu(d,d,s.depth),s.endIndex<s.parent.childCount&&(s=new yu(o,n.doc.resolve(a.end(s.depth)),s.depth)),l=!0}let c=Bp(u,t,e,s);return c?(r&&r(IP(n.tr,s,c,l,t).scrollIntoView()),!0):!1}}function IP(t,e,n,r,o){let a=oe.empty;for(let d=n.length-1;d>=0;d--)a=oe.from(n[d].type.create(n[d].attrs,a));t.step(new kt(e.start-(r?2:0),e.end,e.start,e.end,new pe(a,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,u=e.start+n.length-(r?2:0),c=e.parent;for(let d=e.startIndex,p=e.endIndex,f=!0;d<p;d++,f=!1)!f&&Wi(t.doc,u,l)&&(t.split(u,l),u+=2*l),u+=c.child(d).nodeSize;return t}function RP(t){return function(e,n){let{$from:r,$to:o}=e.selection,a=r.blockRange(o,s=>s.childCount>0&&s.firstChild.type==t);return a?n?r.node(a.depth-1).type==t?zP(e,n,t,a):FP(e,n,a):!0:!1}}function zP(t,e,n,r){let o=t.tr,a=r.end,s=r.$to.end(r.depth);a<s&&(o.step(new kt(a-1,s,a,s,new pe(oe.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new yu(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const l=Ui(r);if(l==null)return!1;o.lift(r,l);let u=o.mapping.map(a,-1)-1;return Zr(o.doc,u)&&o.join(u),e(o.scrollIntoView()),!0}function FP(t,e,n){let r=t.tr,o=n.parent;for(let h=n.end,m=n.endIndex-1,g=n.startIndex;m>g;m--)h-=o.child(m).nodeSize,r.delete(h-1,h+1);let a=r.doc.resolve(n.start),s=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,u=n.endIndex==o.childCount,c=a.node(-1),d=a.index(-1);if(!c.canReplace(d+(l?0:1),d+1,s.content.append(u?oe.empty:oe.from(o))))return!1;let p=a.pos,f=p+s.nodeSize;return r.step(new kt(p-(l?1:0),f+(u?1:0),p+1,f-1,new pe((l?oe.empty:oe.from(o.copy(oe.empty))).append(u?oe.empty:oe.from(o.copy(oe.empty))),l?0:1,u?0:1),l?0:1)),e(r.scrollIntoView()),!0}function HP(t){return function(e,n){let{$from:r,$to:o}=e.selection,a=r.blockRange(o,c=>c.childCount>0&&c.firstChild.type==t);if(!a)return!1;let s=a.startIndex;if(s==0)return!1;let l=a.parent,u=l.child(s-1);if(u.type!=t)return!1;if(n){let c=u.lastChild&&u.lastChild.type==l.type,d=oe.from(c?t.create():null),p=new pe(oe.from(t.create(null,oe.from(l.type.create(null,d)))),c?3:1,0),f=a.start,h=a.end;n(e.tr.step(new kt(f-(c?3:1),h,f,h,p,1,!0)).scrollIntoView())}return!0}}function Vu(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:a}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return a},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,a=n.storedMarks,n}}}class Lu{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:a}=r,s=this.buildProps(a);return Object.fromEntries(Object.entries(e).map(([l,u])=>[l,(...d)=>{const p=u(...d)(s);return!a.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(a),p}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:o,state:a}=this,{view:s}=o,l=[],u=!!e,c=e||a.tr,d=()=>(!u&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),l.every(f=>f===!0)),p={...Object.fromEntries(Object.entries(r).map(([f,h])=>[f,(...g)=>{const b=this.buildProps(c,n),v=h(...g)(b);return l.push(v),p}])),run:d};return p}createCan(e){const{rawCommands:n,state:r}=this,o=!1,a=e||r.tr,s=this.buildProps(a,o);return{...Object.fromEntries(Object.entries(n).map(([u,c])=>[u,(...d)=>c(...d)({...s,dispatch:void 0})])),chain:()=>this.createChain(a,o)}}buildProps(e,n=!0){const{rawCommands:r,editor:o,state:a}=this,{view:s}=o,l={tr:e,editor:o,view:s,state:Vu({state:a,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([u,c])=>[u,(...d)=>c(...d)(l)]))}};return l}}class qP{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 ge(t,e,n){return t.config[e]===void 0&&t.parent?ge(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?ge(t.parent,e,n):null}):t.config[e]}function Iu(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 fv(t){const e=[],{nodeExtensions:n,markExtensions:r}=Iu(t),o=[...n,...r],a={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},u=ge(s,"addGlobalAttributes",l);if(!u)return;u().forEach(d=>{d.types.forEach(p=>{Object.entries(d.attributes).forEach(([f,h])=>{e.push({type:p,name:f,attribute:{...a,...h}})})})})}),o.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},u=ge(s,"addAttributes",l);if(!u)return;const c=u();Object.entries(c).forEach(([d,p])=>{const f={...a,...p};typeof(f==null?void 0:f.default)=="function"&&(f.default=f.default()),f!=null&&f.isRequired&&(f==null?void 0:f.default)===void 0&&delete f.default,e.push({type:s.name,name:d,attribute:f})})}),e}function xt(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 ct(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([o,a])=>{if(!r[o]){r[o]=a;return}if(o==="class"){const l=a?a.split(" "):[],u=r[o]?r[o].split(" "):[],c=l.filter(d=>!u.includes(d));r[o]=[...u,...c].join(" ")}else o==="style"?r[o]=[r[o],a].join("; "):r[o]=a}),r},{})}function p0(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)=>ct(n,r),{})}function pv(t){return typeof t=="function"}function De(t,e=void 0,...n){return pv(t)?e?t.bind(e)(...n):t(...n):t}function jP(t={}){return Object.keys(t).length===0&&t.constructor===Object}function UP(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function hv(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((a,s)=>{const l=s.attribute.parseHTML?s.attribute.parseHTML(n):UP(n.getAttribute(s.name));return l==null?a:{...a,[s.name]:l}},{});return{...r,...o}}}}function mv(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&jP(n)?!1:n!=null))}function WP(t,e){var n;const r=fv(t),{nodeExtensions:o,markExtensions:a}=Iu(t),s=(n=o.find(c=>ge(c,"topNode")))===null||n===void 0?void 0:n.name,l=Object.fromEntries(o.map(c=>{const d=r.filter(v=>v.type===c.name),p={name:c.name,options:c.options,storage:c.storage,editor:e},f=t.reduce((v,x)=>{const N=ge(x,"extendNodeSchema",p);return{...v,...N?N(c):{}}},{}),h=mv({...f,content:De(ge(c,"content",p)),marks:De(ge(c,"marks",p)),group:De(ge(c,"group",p)),inline:De(ge(c,"inline",p)),atom:De(ge(c,"atom",p)),selectable:De(ge(c,"selectable",p)),draggable:De(ge(c,"draggable",p)),code:De(ge(c,"code",p)),defining:De(ge(c,"defining",p)),isolating:De(ge(c,"isolating",p)),attrs:Object.fromEntries(d.map(v=>{var x;return[v.name,{default:(x=v==null?void 0:v.attribute)===null||x===void 0?void 0:x.default}]}))}),m=De(ge(c,"parseHTML",p));m&&(h.parseDOM=m.map(v=>hv(v,d)));const g=ge(c,"renderHTML",p);g&&(h.toDOM=v=>g({node:v,HTMLAttributes:p0(v,d)}));const b=ge(c,"renderText",p);return b&&(h.toText=b),[c.name,h]})),u=Object.fromEntries(a.map(c=>{const d=r.filter(b=>b.type===c.name),p={name:c.name,options:c.options,storage:c.storage,editor:e},f=t.reduce((b,v)=>{const x=ge(v,"extendMarkSchema",p);return{...b,...x?x(c):{}}},{}),h=mv({...f,inclusive:De(ge(c,"inclusive",p)),excludes:De(ge(c,"excludes",p)),group:De(ge(c,"group",p)),spanning:De(ge(c,"spanning",p)),code:De(ge(c,"code",p)),attrs:Object.fromEntries(d.map(b=>{var v;return[b.name,{default:(v=b==null?void 0:b.attribute)===null||v===void 0?void 0:v.default}]}))}),m=De(ge(c,"parseHTML",p));m&&(h.parseDOM=m.map(b=>hv(b,d)));const g=ge(c,"renderHTML",p);return g&&(h.toDOM=b=>g({mark:b,HTMLAttributes:p0(b,d)})),[c.name,h]}));return new t7({topNode:s,nodes:l,marks:u})}function h0(t,e){return e.nodes[t]||e.marks[t]||null}function gv(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const KP=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,a,s,l)=>{var u,c;const d=((c=(u=o.type.spec).toText)===null||c===void 0?void 0:c.call(u,{node:o,pos:a,parent:s,index:l}))||o.textContent||"%leaf%";n+=d.slice(0,Math.max(0,r-a))}),n};function m0(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class Ru{constructor(e){this.find=e.find,this.handler=e.handler}}const YP=(t,e)=>{if(m0(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 g0(t){var e;const{editor:n,from:r,to:o,text:a,rules:s,plugin:l}=t,{view:u}=n;if(u.composing)return!1;const c=u.state.doc.resolve(r);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(f=>f.type.spec.code))return!1;let d=!1;const p=KP(c)+a;return s.forEach(f=>{if(d)return;const h=YP(p,f.find);if(!h)return;const m=u.state.tr,g=Vu({state:u.state,transaction:m}),b={from:r-(h[0].length-a.length),to:o},{commands:v,chain:x,can:N}=new Lu({editor:n,state:g});f.handler({state:g,range:b,match:h,commands:v,chain:x,can:N})===null||!m.steps.length||(m.setMeta(l,{transform:m,from:r,to:o,text:a}),u.dispatch(m),d=!0)}),d}function GP(t){const{editor:e,rules:n}=t,r=new At({state:{init(){return null},apply(o,a){const s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:a)}},props:{handleTextInput(o,a,s,l){return g0({editor:e,from:a,to:s,text:l,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:a}=o.state.selection;a&&g0({editor:e,from:a.pos,to:a.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(o,a){if(a.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?g0({editor:e,from:s.pos,to:s.pos,text:`
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function JP(t){return typeof t=="number"}class XP{constructor(e){this.find=e.find,this.handler=e.handler}}const QP=(t,e)=>{if(m0(e))return[...t.matchAll(e)];const n=e(t);return n?n.map(r=>{const o=[r.text];return o.index=r.index,o.input=t,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function ZP(t){const{editor:e,state:n,from:r,to:o,rule:a,pasteEvent:s,dropEvent:l}=t,{commands:u,chain:c,can:d}=new Lu({editor:e,state:n}),p=[];return n.doc.nodesBetween(r,o,(h,m)=>{if(!h.isTextblock||h.type.spec.code)return;const g=Math.max(r,m),b=Math.min(o,m+h.content.size),v=h.textBetween(g-m,b-m,void 0,"");QP(v,a.find).forEach(N=>{if(N.index===void 0)return;const y=g+N.index+1,M=y+N[0].length,E={from:n.tr.mapping.map(y),to:n.tr.mapping.map(M)},C=a.handler({state:n,range:E,match:N,commands:u,chain:c,can:d,pasteEvent:s,dropEvent:l});p.push(C)})}),p.every(h=>h!==null)}function eV(t){const{editor:e,rules:n}=t;let r=null,o=!1,a=!1,s=new ClipboardEvent("paste"),l=new DragEvent("drop");return n.map(c=>new At({view(d){const p=f=>{var h;r=!((h=d.dom.parentElement)===null||h===void 0)&&h.contains(f.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",p),{destroy(){window.removeEventListener("dragstart",p)}}},props:{handleDOMEvents:{drop:(d,p)=>(a=r===d.dom.parentElement,l=p,!1),paste:(d,p)=>{var f;const h=(f=p.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return s=p,o=!!(h!=null&&h.includes("data-pm-slice")),!1}}},appendTransaction:(d,p,f)=>{const h=d[0],m=h.getMeta("uiEvent")==="paste"&&!o,g=h.getMeta("uiEvent")==="drop"&&!a;if(!m&&!g)return;const b=p.doc.content.findDiffStart(f.doc.content),v=p.doc.content.findDiffEnd(f.doc.content);if(!JP(b)||!v||b===v.b)return;const x=f.tr,N=Vu({state:f,transaction:x});if(!(!ZP({editor:e,state:N,from:Math.max(b-1,0),to:v.b-1,rule:c,pasteEvent:s,dropEvent:l})||!x.steps.length))return l=new DragEvent("drop"),s=new ClipboardEvent("paste"),x}}))}function tV(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return[...new Set(e)]}class oa{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=oa.resolve(e),this.schema=WP(this.extensions,n),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const a={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:h0(r.name,this.schema)};r.type==="mark"&&(!((o=De(ge(r,"keepOnSplit",a)))!==null&&o!==void 0)||o)&&this.splittableMarks.push(r.name);const s=ge(r,"onBeforeCreate",a);s&&this.editor.on("beforeCreate",s);const l=ge(r,"onCreate",a);l&&this.editor.on("create",l);const u=ge(r,"onUpdate",a);u&&this.editor.on("update",u);const c=ge(r,"onSelectionUpdate",a);c&&this.editor.on("selectionUpdate",c);const d=ge(r,"onTransaction",a);d&&this.editor.on("transaction",d);const p=ge(r,"onFocus",a);p&&this.editor.on("focus",p);const f=ge(r,"onBlur",a);f&&this.editor.on("blur",f);const h=ge(r,"onDestroy",a);h&&this.editor.on("destroy",h)})}static resolve(e){const n=oa.sort(oa.flatten(e)),r=tV(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=ge(n,"addExtensions",r);return o?[n,...this.flatten(o())]:n}).flat(10)}static sort(e){return e.sort((r,o)=>{const a=ge(r,"priority")||100,s=ge(o,"priority")||100;return a>s?-1:a<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:h0(n.name,this.schema)},o=ge(n,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,n=oa.sort([...this.extensions].reverse()),r=[],o=[],a=n.map(s=>{const l={name:s.name,options:s.options,storage:s.storage,editor:e,type:h0(s.name,this.schema)},u=[],c=ge(s,"addKeyboardShortcuts",l);let d={};if(s.type==="mark"&&s.config.exitable&&(d.ArrowRight=()=>jn.handleExit({editor:e,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([b,v])=>[b,()=>v({editor:e})]));d={...d,...g}}const p=bP(d);u.push(p);const f=ge(s,"addInputRules",l);gv(s,e.options.enableInputRules)&&f&&r.push(...f());const h=ge(s,"addPasteRules",l);gv(s,e.options.enablePasteRules)&&h&&o.push(...h());const m=ge(s,"addProseMirrorPlugins",l);if(m){const g=m();u.push(...g)}return u}).flat();return[GP({editor:e,rules:r}),...eV({editor:e,rules:o}),...a]}get attributes(){return fv(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Iu(this.extensions);return Object.fromEntries(n.filter(r=>!!ge(r,"addNodeView")).map(r=>{const o=this.attributes.filter(u=>u.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:e,type:xt(r.name,this.schema)},s=ge(r,"addNodeView",a);if(!s)return[];const l=(u,c,d,p)=>{const f=p0(u,o);return s()({editor:e,node:u,getPos:d,decorations:p,HTMLAttributes:f,extension:r})};return[r.name,l]}))}}function nV(t){return Object.prototype.toString.call(t).slice(8,-1)}function b0(t){return nV(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function zu(t,e){const n={...t};return b0(t)&&b0(e)&&Object.keys(e).forEach(r=>{b0(e[r])?r in t?n[r]=zu(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Object.assign(n,{[r]:e[r]})}),n}class Dt{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&&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=De(ge(this,"addOptions",{name:this.name}))),this.storage=De(ge(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Dt(e)}configure(e={}){const n=this.extend();return n.options=zu(this.options,e),n.storage=De(ge(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new Dt(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=De(ge(n,"addOptions",{name:n.name})),n.storage=De(ge(n,"addStorage",{name:n.name,options:n.options})),n}}function bv(t,e,n){const{from:r,to:o}=e,{blockSeparator:a=`

`,textSerializers:s={}}=n||{};let l="",u=!0;return t.nodesBetween(r,o,(c,d,p,f)=>{var h;const m=s==null?void 0:s[c.type.name];m?(c.isBlock&&!u&&(l+=a,u=!0),p&&(l+=m({node:c,pos:d,parent:p,index:f,range:e}))):c.isText?(l+=(h=c==null?void 0:c.text)===null||h===void 0?void 0:h.slice(Math.max(r,d)-d,o-d),u=!1):c.isBlock&&!u&&(l+=a,u=!0)}),l}function yv(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const rV=Dt.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new At({key:new bn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:a}=o,s=Math.min(...a.map(d=>d.$from.pos)),l=Math.max(...a.map(d=>d.$to.pos)),u=yv(n);return bv(r,{from:s,to:l},{textSerializers:u})}}})]}}),oV=()=>({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),iV=(t=!1)=>({commands:e})=>e.setContent("",t),aV=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:o}=r;return n&&o.forEach(({$from:a,$to:s})=>{t.doc.nodesBetween(a.pos,s.pos,(l,u)=>{if(l.type.isText)return;const{doc:c,mapping:d}=e,p=c.resolve(d.map(u)),f=c.resolve(d.map(u+l.nodeSize)),h=p.blockRange(f);if(!h)return;const m=Ui(h);if(l.type.isTextblock){const{defaultType:g}=p.parent.contentMatchAt(p.index());e.setNodeMarkup(h.start,g)}(m||m===0)&&e.lift(h,m)})}),!0},sV=t=>e=>t(e),lV=()=>({state:t,dispatch:e})=>$P(t,e),uV=(t,e)=>({editor:n,tr:r})=>{const{state:o}=n,a=o.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const s=r.mapping.map(e);return r.insert(s,a.content),r.setSelection(new Ae(r.doc.resolve(s-1))),!0},cV=()=>({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 a=o.depth;a>0;a-=1)if(o.node(a).type===r.type){if(e){const l=o.before(a),u=o.after(a);t.delete(l,u).scrollIntoView()}return!0}return!1},dV=t=>({tr:e,state:n,dispatch:r})=>{const o=xt(t,n.schema),a=e.selection.$anchor;for(let s=a.depth;s>0;s-=1)if(a.node(s).type===o){if(r){const u=a.before(s),c=a.after(s);e.delete(u,c).scrollIntoView()}return!0}return!1},fV=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},pV=()=>({state:t,dispatch:e})=>yP(t,e),hV=()=>({commands:t})=>t.keyboardShortcut("Enter"),mV=()=>({state:t,dispatch:e})=>OP(t,e);function Fu(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:m0(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function y0(t,e,n={}){return t.find(r=>r.type===e&&Fu(r.attrs,n))}function gV(t,e,n={}){return!!y0(t,e,n)}function w0(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=y0([...r.node.marks],e,n);if(!o)return;let a=r.index,s=t.start()+r.offset,l=a+1,u=s+r.node.nodeSize;for(y0([...r.node.marks],e,n);a>0&&o.isInSet(t.parent.child(a-1).marks);)a-=1,s-=t.parent.child(a).nodeSize;for(;l<t.parent.childCount&&gV([...t.parent.child(l).marks],e,n);)u+=t.parent.child(l).nodeSize,l+=1;return{from:s,to:u}}function lo(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 bV=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const a=lo(t,r.schema),{doc:s,selection:l}=n,{$from:u,from:c,to:d}=l;if(o){const p=w0(u,a,e);if(p&&p.from<=c&&p.to>=d){const f=Ae.create(s,p.from,p.to);n.setSelection(f)}}return!0},yV=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 v0(t){return t instanceof Ae}function Mr(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function wv(t,e=null){if(!e)return null;const n=Me.atStart(t),r=Me.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,a=r.to;return e==="all"?Ae.create(t,Mr(0,o,a),Mr(t.content.size,o,a)):Ae.create(t,Mr(e,o,a),Mr(e,o,a))}function Hu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const wV=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:a})=>{e={scrollIntoView:!0,...e};const s=()=>{Hu()&&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(a&&t===null&&!v0(n.state.selection))return s(),!0;const l=wv(o.doc,t)||n.state.selection,u=n.state.selection.eq(l);return a&&(u||o.setSelection(l),u&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},vV=(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);function vv(t){const e=`<body>${t}</body>`;return new window.DOMParser().parseFromString(e,"text/html").body}function qu(t,e,n){if(n={slice:!0,parseOptions:{},...n},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?oe.fromArray(t.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(t)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",r),qu("",e,n)}if(typeof t=="string"){const r=Hi.fromSchema(e);return n.slice?r.parseSlice(vv(t),n.parseOptions).content:r.parse(vv(t),n.parseOptions)}return qu("",e,n)}function xV(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof $t||o instanceof kt))return;const a=t.mapping.maps[r];let s=0;a.forEach((l,u,c,d)=>{s===0&&(s=d)}),t.setSelection(Me.near(t.doc.resolve(s),n))}const EV=t=>t.toString().startsWith("<"),CV=(t,e,n)=>({tr:r,dispatch:o,editor:a})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};const s=qu(e,a.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(s.toString()==="<>")return!0;let{from:l,to:u}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},c=!0,d=!0;if((EV(s)?s:[s]).forEach(f=>{f.check(),c=c?f.isText&&f.marks.length===0:!1,d=d?f.isBlock:!1}),l===u&&d){const{parent:f}=r.doc.resolve(l);f.isTextblock&&!f.type.spec.code&&!f.childCount&&(l-=1,u+=1)}c?Array.isArray(e)?r.insertText(e.map(f=>f.text||"").join(""),l,u):typeof e=="object"&&e&&e.text?r.insertText(e.text,l,u):r.insertText(e,l,u):r.replaceWith(l,u,s),n.updateSelection&&xV(r,r.steps.length-1,-1)}return!0},SV=()=>({state:t,dispatch:e})=>SP(t,e),_V=()=>({state:t,dispatch:e})=>_P(t,e),TV=()=>({state:t,dispatch:e})=>vP(t,e),NV=()=>({state:t,dispatch:e})=>EP(t,e),OV=()=>({tr:t,state:e,dispatch:n})=>{try{const r=Su(e.doc,e.selection.$from.pos,-1);return r==null?!1:(t.join(r,2),n&&n(t),!0)}catch{return!1}},$V=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Su(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}};function k0(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function AV(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,o,a,s;for(let l=0;l<e.length-1;l+=1){const u=e[l];if(/^(cmd|meta|m)$/i.test(u))s=!0;else if(/^a(lt)?$/i.test(u))r=!0;else if(/^(c|ctrl|control)$/i.test(u))o=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))Hu()||k0()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${u}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}const MV=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const a=AV(t).split(/-(?!$)/),s=a.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),l=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),u=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,l))});return u==null||u.steps.forEach(c=>{const d=c.map(r.mapping);d&&o&&r.maybeStep(d)}),!0};function $s(t,e,n={}){const{from:r,to:o,empty:a}=t.selection,s=e?xt(e,t.schema):null,l=[];t.doc.nodesBetween(r,o,(p,f)=>{if(p.isText)return;const h=Math.max(r,f),m=Math.min(o,f+p.nodeSize);l.push({node:p,from:h,to:m})});const u=o-r,c=l.filter(p=>s?s.name===p.node.type.name:!0).filter(p=>Fu(p.node.attrs,n,{strict:!1}));return a?!!c.length:c.reduce((p,f)=>p+f.to-f.from,0)>=u}const DV=(t,e={})=>({state:n,dispatch:r})=>{const o=xt(t,n.schema);return $s(n,o,e)?TP(n,r):!1},BV=()=>({state:t,dispatch:e})=>AP(t,e),PV=t=>({state:e,dispatch:n})=>{const r=xt(t,e.schema);return RP(r)(e,n)},VV=()=>({state:t,dispatch:e})=>NP(t,e);function ju(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function kv(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 LV=(t,e)=>({tr:n,state:r,dispatch:o})=>{let a=null,s=null;const l=ju(typeof t=="string"?t:t.name,r.schema);return l?(l==="node"&&(a=xt(t,r.schema)),l==="mark"&&(s=lo(t,r.schema)),o&&n.selection.ranges.forEach(u=>{r.doc.nodesBetween(u.$from.pos,u.$to.pos,(c,d)=>{a&&a===c.type&&n.setNodeMarkup(d,void 0,kv(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(p=>{s===p.type&&n.addMark(d,d+c.nodeSize,s.create(kv(p.attrs,e)))})})}),!0):!1},IV=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),RV=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),zV=()=>({state:t,dispatch:e})=>kP(t,e),FV=()=>({state:t,dispatch:e})=>CP(t,e),HV=()=>({state:t,dispatch:e})=>MP(t,e),qV=()=>({state:t,dispatch:e})=>PP(t,e),jV=()=>({state:t,dispatch:e})=>BP(t,e);function xv(t,e,n={}){return qu(t,e,{slice:!1,parseOptions:n})}const UV=(t,e=!1,n={})=>({tr:r,editor:o,dispatch:a})=>{const{doc:s}=r,l=xv(t,o.schema,n);return a&&r.replaceWith(0,s.content.size,l).setMeta("preventUpdate",!e),!0};function Uu(t,e){const n=lo(e,t.schema),{from:r,to:o,empty:a}=t.selection,s=[];a?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,u=>{s.push(...u.marks)});const l=s.find(u=>u.type.name===n.name);return l?{...l.attrs}:{}}function WV(t,e){const n=new F2(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function KV(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 YV(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,a)=>{n(o)&&r.push({node:o,pos:a})}),r}function GV(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 x0(t){return e=>GV(e.$from,t)}function JV(t,e){const n=ur.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function XV(t,e){const n={from:0,to:t.content.size};return bv(t,n,e)}function QV(t,e){const n=xt(e,t.schema),{from:r,to:o}=t.selection,a=[];t.doc.nodesBetween(r,o,l=>{a.push(l)});const s=a.reverse().find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function Ev(t,e){const n=ju(typeof e=="string"?e:e.name,t.schema);return n==="node"?QV(t,e):n==="mark"?Uu(t,e):{}}function ZV(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 eL(t){const e=ZV(t);return e.length===1?e:e.filter((n,r)=>!e.filter((a,s)=>s!==r).some(a=>n.oldRange.from>=a.oldRange.from&&n.oldRange.to<=a.oldRange.to&&n.newRange.from>=a.newRange.from&&n.newRange.to<=a.newRange.to))}function tL(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,a)=>{const s=[];if(o.ranges.length)o.forEach((l,u)=>{s.push({from:l,to:u})});else{const{from:l,to:u}=n[a];if(l===void 0||u===void 0)return;s.push({from:l,to:u})}s.forEach(({from:l,to:u})=>{const c=e.slice(a).map(l,-1),d=e.slice(a).map(u),p=e.invert().map(c,-1),f=e.invert().map(d);r.push({oldRange:{from:p,to:f},newRange:{from:c,to:d}})})}),eL(r)}function E0(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const a=n.resolve(t-1),s=w0(a,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,a)=>{r.push(...o.marks.map(s=>({from:a,to:a+o.nodeSize,mark:s})))}),r}function Wu(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const o=t.find(a=>a.type===e&&a.name===r);return o?o.attribute.keepOnSplit:!1}))}function C0(t,e,n={}){const{empty:r,ranges:o}=t.selection,a=e?lo(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(p=>a?a.name===p.type.name:!0).find(p=>Fu(p.attrs,n,{strict:!1}));let s=0;const l=[];if(o.forEach(({$from:p,$to:f})=>{const h=p.pos,m=f.pos;t.doc.nodesBetween(h,m,(g,b)=>{if(!g.isText&&!g.marks.length)return;const v=Math.max(h,b),x=Math.min(m,b+g.nodeSize),N=x-v;s+=N,l.push(...g.marks.map(y=>({mark:y,from:v,to:x})))})}),s===0)return!1;const u=l.filter(p=>a?a.name===p.mark.type.name:!0).filter(p=>Fu(p.mark.attrs,n,{strict:!1})).reduce((p,f)=>p+f.to-f.from,0),c=l.filter(p=>a?p.mark.type!==a&&p.mark.type.excludes(a):!0).reduce((p,f)=>p+f.to-f.from,0);return(u>0?u+c:u)>=s}function nL(t,e,n={}){if(!e)return $s(t,null,n)||C0(t,null,n);const r=ju(e,t.schema);return r==="node"?$s(t,e,n):r==="mark"?C0(t,e,n):!1}function Cv(t,e){const{nodeExtensions:n}=Iu(e),r=n.find(s=>s.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},a=De(ge(r,"group",o));return typeof a!="string"?!1:a.split(" ").includes("list")}function rL(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 oL(t){return t instanceof Ee}function Sv(t,e,n){const o=t.state.doc.content.size,a=Mr(e,0,o),s=Mr(n,0,o),l=t.coordsAtPos(a),u=t.coordsAtPos(s,-1),c=Math.min(l.top,u.top),d=Math.max(l.bottom,u.bottom),p=Math.min(l.left,u.left),f=Math.max(l.right,u.right),h=f-p,m=d-c,v={top:c,bottom:d,left:p,right:f,width:h,height:m,x:p,y:c};return{...v,toJSON:()=>v}}function iL(t,e,n){var r;const{selection:o}=e;let a=null;if(v0(o)&&(a=o.$cursor),a){const l=(r=t.storedMarks)!==null&&r!==void 0?r:a.marks();return!!n.isInSet(l)||!l.some(u=>u.type.excludes(n))}const{ranges:s}=o;return s.some(({$from:l,$to:u})=>{let c=l.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(l.pos,u.pos,(d,p,f)=>{if(c)return!1;if(d.isInline){const h=!f||f.type.allowsMarkType(n),m=!!n.isInSet(d.marks)||!d.marks.some(g=>g.type.excludes(n));c=h&&m}return!c}),c})}const aL=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:a}=n,{empty:s,ranges:l}=a,u=lo(t,r.schema);if(o)if(s){const c=Uu(r,u);n.addStoredMark(u.create({...c,...e}))}else l.forEach(c=>{const d=c.$from.pos,p=c.$to.pos;r.doc.nodesBetween(d,p,(f,h)=>{const m=Math.max(h,d),g=Math.min(h+f.nodeSize,p);f.marks.find(v=>v.type===u)?f.marks.forEach(v=>{u===v.type&&n.addMark(m,g,u.create({...v.attrs,...e}))}):n.addMark(m,g,u.create(e))})});return iL(r,n,u)},sL=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),lL=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const a=xt(t,n.schema);return a.isTextblock?o().command(({commands:s})=>dv(a,e)(n)?!0:s.clearNodes()).command(({state:s})=>dv(a,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},uL=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=Mr(t,0,r.content.size),a=Ee.create(r,o);e.setSelection(a)}return!0},cL=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:a}=typeof t=="number"?{from:t,to:t}:t,s=Ae.atStart(r).from,l=Ae.atEnd(r).to,u=Mr(o,s,l),c=Mr(a,s,l),d=Ae.create(r,u,c);e.setSelection(d)}return!0},dL=t=>({state:e,dispatch:n})=>{const r=xt(t,e.schema);return HP(r)(e,n)};function _v(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 fL=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:a,doc:s}=e,{$from:l,$to:u}=a,c=o.extensionManager.attributes,d=Wu(c,l.node().type.name,l.node().attrs);if(a instanceof Ee&&a.node.isBlock)return!l.parentOffset||!Wi(s,l.pos)?!1:(r&&(t&&_v(n,o.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(r){const p=u.parentOffset===u.parent.content.size;a instanceof Ae&&e.deleteSelection();const f=l.depth===0?void 0:KV(l.node(-1).contentMatchAt(l.indexAfter(-1)));let h=p&&f?[{type:f,attrs:d}]:void 0,m=Wi(e.doc,e.mapping.map(l.pos),1,h);if(!h&&!m&&Wi(e.doc,e.mapping.map(l.pos),1,f?[{type:f}]:void 0)&&(m=!0,h=f?[{type:f,attrs:d}]:void 0),m&&(e.split(e.mapping.map(l.pos),1,h),f&&!p&&!l.parentOffset&&l.parent.type!==f)){const g=e.mapping.map(l.before()),b=e.doc.resolve(g);l.node(-1).canReplaceWith(b.index(),b.index()+1,f)&&e.setNodeMarkup(e.mapping.map(l.before()),f)}t&&_v(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},pL=t=>({tr:e,state:n,dispatch:r,editor:o})=>{var a;const s=xt(t,n.schema),{$from:l,$to:u}=n.selection,c=n.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;const d=l.node(-1);if(d.type!==s)return!1;const p=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 b=oe.empty;const v=l.index(-1)?1:l.index(-2)?2:3;for(let C=l.depth-v;C>=l.depth-3;C-=1)b=oe.from(l.node(C).copy(b));const x=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,N=Wu(p,l.node().type.name,l.node().attrs),y=((a=s.contentMatch.defaultType)===null||a===void 0?void 0:a.createAndFill(N))||void 0;b=b.append(oe.from(s.createAndFill(null,y)||void 0));const M=l.before(l.depth-(v-1));e.replace(M,l.after(-x),new pe(b,4-v,0));let E=-1;e.doc.nodesBetween(M,e.doc.content.size,(C,T)=>{if(E>-1)return!1;C.isTextblock&&C.content.size===0&&(E=T+1)}),E>-1&&e.setSelection(Ae.near(e.doc.resolve(E))),e.scrollIntoView()}return!0}const f=u.pos===l.end()?d.contentMatchAt(0).defaultType:null,h=Wu(p,d.type.name,d.attrs),m=Wu(p,l.node().type.name,l.node().attrs);e.delete(l.pos,u.pos);const g=f?[{type:s,attrs:h},{type:f,attrs:m}]:[{type:s,attrs:h}];if(!Wi(e.doc,l.pos,2))return!1;if(r){const{selection:b,storedMarks:v}=n,{splittableMarks:x}=o.extensionManager,N=v||b.$to.parentOffset&&b.$from.marks();if(e.split(l.pos,2,g).scrollIntoView(),!N||!r)return!0;const y=N.filter(M=>x.includes(M.type.name));e.ensureMarks(y)}return!0},S0=(t,e)=>{const n=x0(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)&&Zr(t.doc,n.pos)&&t.join(n.pos),!0},_0=(t,e)=>{const n=x0(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)&&Zr(t.doc,r)&&t.join(r),!0};var hL=Object.freeze({__proto__:null,blur:oV,clearContent:iV,clearNodes:aV,command:sV,createParagraphNear:lV,cut:uV,deleteCurrentNode:cV,deleteNode:dV,deleteRange:fV,deleteSelection:pV,enter:hV,exitCode:mV,extendMarkRange:bV,first:yV,focus:wV,forEach:vV,insertContent:kV,insertContentAt:CV,joinUp:SV,joinDown:_V,joinBackward:TV,joinForward:NV,joinItemBackward:OV,joinItemForward:$V,keyboardShortcut:MV,lift:DV,liftEmptyBlock:BV,liftListItem:PV,newlineInCode:VV,resetAttributes:LV,scrollIntoView:IV,selectAll:RV,selectNodeBackward:zV,selectNodeForward:FV,selectParentNode:HV,selectTextblockEnd:qV,selectTextblockStart:jV,setContent:UV,setMark:aL,setMeta:sL,setNode:lL,setNodeSelection:uL,setTextSelection:cL,sinkListItem:dL,splitBlock:fL,splitListItem:pL,toggleList:(t,e,n,r={})=>({editor:o,tr:a,state:s,dispatch:l,chain:u,commands:c,can:d})=>{const{extensions:p,splittableMarks:f}=o.extensionManager,h=xt(t,s.schema),m=xt(e,s.schema),{selection:g,storedMarks:b}=s,{$from:v,$to:x}=g,N=v.blockRange(x),y=b||g.$to.parentOffset&&g.$from.marks();if(!N)return!1;const M=x0(E=>Cv(E.type.name,p))(g);if(N.depth>=1&&M&&N.depth-M.depth<=1){if(M.node.type===h)return c.liftListItem(m);if(Cv(M.node.type.name,p)&&h.validContent(M.node.content)&&l)return u().command(()=>(a.setNodeMarkup(M.pos,h),!0)).command(()=>S0(a,h)).command(()=>_0(a,h)).run()}return!n||!y||!l?u().command(()=>d().wrapInList(h,r)?!0:c.clearNodes()).wrapInList(h,r).command(()=>S0(a,h)).command(()=>_0(a,h)).run():u().command(()=>{const E=d().wrapInList(h,r),C=y.filter(T=>f.includes(T.type.name));return a.ensureMarks(C),E?!0:c.clearNodes()}).wrapInList(h,r).command(()=>S0(a,h)).command(()=>_0(a,h)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:a=!1}=n,s=lo(t,r.schema);return C0(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:a}):o.setMark(s,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const a=xt(t,r.schema),s=xt(e,r.schema);return $s(r,a,n)?o.setNode(s):o.setNode(a,n)},toggleWrap:(t,e={})=>({state:n,commands:r})=>{const o=xt(t,n.schema);return $s(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 a;if(o.spec.isInputRules&&(a=o.getState(t))){if(e){const s=t.tr,l=a.transform;for(let u=l.steps.length-1;u>=0;u-=1)s.step(l.steps[u].invert(l.docs[u]));if(a.text){const u=s.doc.resolve(a.from).marks();s.replaceWith(a.from,a.to,t.schema.text(a.text,u))}else s.delete(a.from,a.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(a=>{t.removeMark(a.$from.pos,a.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{var a;const{extendEmptyMarkRange:s=!1}=e,{selection:l}=n,u=lo(t,r.schema),{$from:c,empty:d,ranges:p}=l;if(!o)return!0;if(d&&s){let{from:f,to:h}=l;const m=(a=c.marks().find(b=>b.type===u))===null||a===void 0?void 0:a.attrs,g=w0(c,u,m);g&&(f=g.from,h=g.to),n.removeMark(f,h,u)}else p.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,u)});return n.removeStoredMark(u),!0},updateAttributes:(t,e={})=>({tr:n,state:r,dispatch:o})=>{let a=null,s=null;const l=ju(typeof t=="string"?t:t.name,r.schema);return l?(l==="node"&&(a=xt(t,r.schema)),l==="mark"&&(s=lo(t,r.schema)),o&&n.selection.ranges.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;r.doc.nodesBetween(c,d,(p,f)=>{a&&a===p.type&&n.setNodeMarkup(f,void 0,{...p.attrs,...e}),s&&p.marks.length&&p.marks.forEach(h=>{if(s===h.type){const m=Math.max(f,c),g=Math.min(f+p.nodeSize,d);n.addMark(m,g,s.create({...h.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:r})=>{const o=xt(t,n.schema);return VP(o,e)(n,r)},wrapInList:(t,e={})=>({state:n,dispatch:r})=>{const o=xt(t,n.schema);return LP(o,e)(n,r)}});const mL=Dt.create({name:"commands",addCommands(){return{...hL}}}),gL=Dt.create({name:"editable",addProseMirrorPlugins(){return[new At({key:new bn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),bL=Dt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new At({key:new bn("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}}}})]}}),yL=Dt.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:l})=>{const{selection:u,doc:c}=l,{empty:d,$anchor:p}=u,{pos:f,parent:h}=p,m=p.parent.isTextblock?l.doc.resolve(f-1):p,g=m.parent.type.spec.isolating,b=p.pos-p.parentOffset,v=g&&m.parent.childCount===1?b===p.pos:Me.atStart(c).from===f;return!d||!v||!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},a={...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 Hu()||k0()?a:o},addProseMirrorPlugins(){return[new At({key:new bn("clearDocument"),appendTransaction:(t,e,n)=>{if(!(t.some(m=>m.docChanged)&&!e.doc.eq(n.doc)))return;const{empty:o,from:a,to:s}=e.selection,l=Me.atStart(e.doc).from,u=Me.atEnd(e.doc).to;if(o||!(a===l&&s===u)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;const p=n.tr,f=Vu({state:n,transaction:p}),{commands:h}=new Lu({editor:this.editor,state:f});if(h.clearNodes(),!!p.steps.length)return p}})]}}),wL=Dt.create({name:"tabindex",addProseMirrorPlugins(){return[new At({key:new bn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var vL=Object.freeze({__proto__:null,ClipboardTextSerializer:rV,Commands:mL,Editable:gL,FocusEvents:bL,Keymap:yL,Tabindex:wL});const kL=`.ProseMirror {
  position: relative;
}

.ProseMirror {
  word-wrap: break-word;
  white-space: pre-wrap;
  white-space: break-spaces;
  -webkit-font-variant-ligatures: none;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
}

.ProseMirror [contenteditable="false"] {
  white-space: normal;
}

.ProseMirror [contenteditable="false"] [contenteditable="true"] {
  white-space: pre-wrap;
}

.ProseMirror pre {
  white-space: pre-wrap;
}

img.ProseMirror-separator {
  display: inline !important;
  border: none !important;
  margin: 0 !important;
  width: 1px !important;
  height: 1px !important;
}

.ProseMirror-gapcursor {
  display: none;
  pointer-events: none;
  position: absolute;
  margin: 0;
}

.ProseMirror-gapcursor:after {
  content: "";
  display: block;
  position: absolute;
  top: -2px;
  width: 20px;
  border-top: 1px solid black;
  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
}

@keyframes ProseMirror-cursor-blink {
  to {
    visibility: hidden;
  }
}

.ProseMirror-hideselection *::selection {
  background: transparent;
}

.ProseMirror-hideselection *::-moz-selection {
  background: transparent;
}

.ProseMirror-hideselection * {
  caret-color: transparent;
}

.ProseMirror-focused .ProseMirror-gapcursor {
  display: block;
}

.tippy-box[data-animation=fade][data-state=hidden] {
  opacity: 0
}`;function xL(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 EL=class extends qP{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=xL(kL,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=pv(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(vL):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r==null?void 0:r.type));this.extensionManager=new oa(n,this)}createCommandManager(){this.commandManager=new Lu({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=xv(this.options.content,this.schema,this.options.parseOptions),n=wv(e,this.options.autofocus);this.view=new lP(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Ji.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"),a=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),a&&this.emit("blur",{editor:this,event:a.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Ev(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,o=typeof e=="string"?n:e;return nL(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return JV(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`

`,textSerializers:r={}}=e||{};return XV(this.state.doc,{blockSeparator:n,textSerializers:{...yv(this.schema),...r}})}get isEmpty(){return rL(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)}};function ia(t){return new Ru({find:t.find,handler:({state:e,range:n,match:r})=>{const o=De(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:a}=e,s=r[r.length-1],l=r[0];if(s){const u=l.search(/\S/),c=n.from+l.indexOf(s),d=c+s.length;if(E0(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(g=>g===t.type&&g!==h.mark.type)).filter(h=>h.to>c).length)return null;d<n.to&&a.delete(d,n.to),c>n.from&&a.delete(n.from+u,c);const f=n.from+u+s.length;a.addMark(n.from+u,f,t.type.create(o||{})),a.removeStoredMark(t.type)}}})}function T0(t){return new Ru({find:t.find,handler:({state:e,range:n,match:r})=>{const o=De(t.getAttributes,void 0,r)||{},{tr:a}=e,s=n.from;let l=n.to;const u=t.type.create(o);if(r[1]){const c=r[0].lastIndexOf(r[1]);let d=s+c;d>l?d=l:l=d+r[1].length;const p=r[0][r[0].length-1];a.insertText(p,s+r[0].length-1),a.replaceWith(d,l,u)}else r[0]&&a.insert(s-1,t.type.create(o)).delete(a.mapping.map(s),a.mapping.map(l));a.scrollIntoView()}})}function N0(t){return new Ru({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),a=De(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,a)}})}function As(t){return new Ru({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const a=De(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),u=s.doc.resolve(n.from).blockRange(),c=u&&Bp(u,t.type,a);if(!c)return null;if(s.wrap(u,c),t.keepMarks&&t.editor){const{selection:p,storedMarks:f}=e,{splittableMarks:h}=t.editor.extensionManager,m=f||p.$to.parentOffset&&p.$from.marks();if(m){const g=m.filter(b=>h.includes(b.type.name));s.ensureMarks(g)}}if(t.keepAttributes){const p=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(p,a).run()}const d=s.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&Zr(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,d))&&s.join(n.from-1)}})}class jn{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&&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=De(ge(this,"addOptions",{name:this.name}))),this.storage=De(ge(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new jn(e)}configure(e={}){const n=this.extend();return n.options=zu(this.options,e),n.storage=De(ge(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new jn(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=De(ge(n,"addOptions",{name:n.name})),n.storage=De(ge(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(c=>(c==null?void 0:c.type.name)===n.name))return!1;const u=s.find(c=>(c==null?void 0:c.type.name)===n.name);return u&&r.removeStoredMark(u),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}}class Bt{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&&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=De(ge(this,"addOptions",{name:this.name}))),this.storage=De(ge(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Bt(e)}configure(e={}){const n=this.extend();return n.options=zu(this.options,e),n.storage=De(ge(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new Bt(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=De(ge(n,"addOptions",{name:n.name})),n.storage=De(ge(n,"addStorage",{name:n.name,options:n.options})),n}}function CL(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}class SL{constructor(e,n,r){this.isDragging=!1,this.component=e,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var n,r,o,a,s,l,u;const{view:c}=this.editor,d=e.target,p=d.nodeType===3?(n=d.parentElement)===null||n===void 0?void 0:n.closest("[data-drag-handle]"):d.closest("[data-drag-handle]");if(!this.dom||!((r=this.contentDOM)===null||r===void 0)&&r.contains(d)||!p)return;let f=0,h=0;if(this.dom!==p){const b=this.dom.getBoundingClientRect(),v=p.getBoundingClientRect(),x=(o=e.offsetX)!==null&&o!==void 0?o:(a=e.nativeEvent)===null||a===void 0?void 0:a.offsetX,N=(s=e.offsetY)!==null&&s!==void 0?s:(l=e.nativeEvent)===null||l===void 0?void 0:l.offsetY;f=v.x-b.x+x,h=v.y-b.y+N}(u=e.dataTransfer)===null||u===void 0||u.setDragImage(this.dom,f,h);const m=Ee.create(c.state.doc,this.getPos()),g=c.state.tr.setSelection(m);c.dispatch(g)}stopEvent(e){var n;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:e});const r=e.target;if(!(this.dom.contains(r)&&!(!((n=this.contentDOM)===null||n===void 0)&&n.contains(r))))return!1;const a=e.type.startsWith("drag"),s=e.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!s&&!a)return!0;const{isEditable:u}=this.editor,{isDragging:c}=this,d=!!this.node.type.spec.draggable,p=Ee.isSelectable(this.node),f=e.type==="copy",h=e.type==="paste",m=e.type==="cut",g=e.type==="mousedown";if(!d&&p&&a&&e.preventDefault(),d&&a&&!c)return e.preventDefault(),!1;if(d&&u&&!c&&g){const b=r.closest("[data-drag-handle]");b&&(this.dom===b||this.dom.contains(b))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(c||s||f||h||m||g&&p)}ignoreMutation(e){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:e}):this.node.isLeaf||this.node.isAtom?!0:e.type==="selection"||this.dom.contains(e.target)&&e.type==="childList"&&(Hu()||CL())&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(r=>r.isContentEditable)?!1:this.contentDOM===e.target&&e.type==="attributes"?!0:!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:n})=>{const r=this.getPos();return n.setNodeMarkup(r,void 0,{...this.node.attrs,...e}),!0})}deleteNode(){const e=this.getPos(),n=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:n})}}function ei(t){return new XP({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const a=De(t.getAttributes,void 0,r,o);if(a===!1||a===null)return null;const{tr:s}=e,l=r[r.length-1],u=r[0];let c=n.to;if(l){const d=u.search(/\S/),p=n.from+u.indexOf(l),f=p+l.length;if(E0(n.from,n.to,e.doc).filter(m=>m.mark.type.excluded.find(b=>b===t.type&&b!==m.mark.type)).filter(m=>m.to>p).length)return null;f<n.to&&s.delete(f,n.to),p>n.from&&s.delete(n.from+d,p),c=n.from+d+l.length,s.addMark(n.from+d,c,t.type.create(a||{})),s.removeStoredMark(t.type)}}})}class _L{constructor({editor:e,element:n,view:r,tippyOptions:o={},updateDelay:a=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:l,state:u,from:c,to:d})=>{const{doc:p,selection:f}=u,{empty:h}=f,m=!p.textBetween(c,d).length&&v0(u.selection),g=this.element.contains(document.activeElement);return!(!(l.hasFocus()||g)||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 u;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((u=this.element.parentNode)===null||u===void 0)&&u.contains(l.relatedTarget))||this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,u)=>{const c=!(u!=null&&u.selection.eq(l.state.selection)),d=!(u!=null&&u.doc.eq(l.state.doc));!c&&!d||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,c,d,u)},this.updateDelay))},this.updateHandler=(l,u,c,d)=>{var p,f,h;const{state:m,composing:g}=l,{selection:b}=m;if(g||!u&&!c)return;this.createTooltip();const{ranges:x}=b,N=Math.min(...x.map(E=>E.$from.pos)),y=Math.max(...x.map(E=>E.$to.pos));if(!((p=this.shouldShow)===null||p===void 0?void 0:p.call(this,{editor:this.editor,view:l,state:m,oldState:d,from:N,to:y}))){this.hide();return}(f=this.tippy)===null||f===void 0||f.setProps({getReferenceClientRect:((h=this.tippyOptions)===null||h===void 0?void 0:h.getReferenceClientRect)||(()=>{if(oL(m.selection)){let E=l.nodeDOM(N);const C=E.dataset.nodeViewWrapper?E:E.querySelector("[data-node-view-wrapper]");if(C&&(E=C.firstChild),E)return E.getBoundingClientRect()}return Sv(l,N,y)})}),this.show()},this.editor=e,this.element=n,this.view=r,this.updateDelay=a,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=Ao(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 a=!(n!=null&&n.selection.eq(e.state.selection)),s=!(n!=null&&n.doc.eq(e.state.doc));this.updateHandler(e,a,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 Tv=t=>new At({key:typeof t.pluginKey=="string"?new bn(t.pluginKey):t.pluginKey,view:e=>new _L({view:e,...t})});Dt.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Tv({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class TL{constructor({editor:e,element:n,view:r,tippyOptions:o={},shouldShow:a}){this.preventHide=!1,this.shouldShow=({view:s,state:l})=>{const{selection:u}=l,{$anchor:c,empty:d}=u,p=c.depth===1,f=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent;return!(!s.hasFocus()||!d||!p||!f||!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,a&&(this.shouldShow=a),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=Ao(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,a;const{state:s}=e,{doc:l,selection:u}=s,{from:c,to:d}=u;if(n&&n.doc.eq(l)&&n.selection.eq(u))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:((a=this.tippyOptions)===null||a===void 0?void 0:a.getReferenceClientRect)||(()=>Sv(e,c,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 Nv=t=>new At({key:typeof t.pluginKey=="string"?new bn(t.pluginKey):t.pluginKey,view:e=>new TL({view:e,...t})});Dt.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Nv({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});const NL=i.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=i.ref(null);return i.onMounted(()=>{const{updateDelay:r,editor:o,pluginKey:a,shouldShow:s,tippyOptions:l}=t;o.registerPlugin(Tv({updateDelay:r,editor:o,element:n.value,pluginKey:a,shouldShow:s,tippyOptions:l}))}),i.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return i.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function Ov(t){return i.customRef((e,n)=>({get(){return e(),t},set(r){t=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class OL extends EL{constructor(e={}){return super(e),this.vueRenderers=i.reactive(new Map),this.contentComponent=null,this.reactiveState=Ov(this.view.state),this.reactiveExtensionStorage=Ov(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),i.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 $L=i.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=i.ref(),n=i.getCurrentInstance();return i.watchEffect(()=>{const r=t.editor;r&&r.options.element&&e.value&&i.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const o=i.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,r.setOptions({element:o}),r.createNodeViews()})}),i.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=i.h(i.Teleport,{to:e.teleportElement,key:e.id},i.h(e.component,{ref:e.id,...e.props}));t.push(n)}),i.h("div",{ref:e=>{this.rootEl=e}},...t)}});i.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=i.ref(null);return i.onMounted(()=>{const{pluginKey:r,editor:o,tippyOptions:a,shouldShow:s}=t;o.registerPlugin(Nv({pluginKey:r,editor:o,element:n.value,tippyOptions:a,shouldShow:s}))}),i.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return i.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}}),i.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return i.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}});const AL=i.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return i.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))}});class ML{constructor(e,{props:n={},editor:r}){if(this.id=Math.floor(Math.random()*4294967295).toString(),this.editor=r,this.component=i.markRaw(e),this.teleportElement=document.createElement("div"),this.element=this.teleportElement,this.props=i.reactive(n),this.editor.vueRenderers.set(this.id,this),this.editor.contentComponent){if(this.editor.contentComponent.update(),this.teleportElement.children.length!==1)throw Error("VueRenderer doesn’t support multiple child elements.");this.element=this.teleportElement.firstElementChild}}get ref(){var e;return(e=this.editor.contentComponent)===null||e===void 0?void 0:e.refs[this.id]}updateProps(e={}){Object.entries(e).forEach(([n,r])=>{this.props[n]=r})}destroy(){this.editor.vueRenderers.delete(this.id)}}class DL extends SL{mount(){const e={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(o={})=>this.updateAttributes(o),deleteNode:()=>this.deleteNode()},n=this.onDragStart.bind(this);this.decorationClasses=i.ref(this.getDecorationClasses());const r=i.defineComponent({extends:{...this.component},props:Object.keys(e),template:this.component.template,setup:o=>{var a,s;return i.provide("onDragStart",n),i.provide("decorationClasses",this.decorationClasses),(s=(a=this.component).setup)===null||s===void 0?void 0:s.call(a,o,{expose:()=>{}})},__scopeId:this.component.__scopeId,__cssModules:this.component.__cssModules,__name:this.component.__name,__file:this.component.__file});this.renderer=new ML(r,{editor:this.editor,props:e})}get dom(){if(!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector("[data-node-view-content]")||this.dom}update(e,n){const r=o=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(o)};if(typeof this.options.update=="function"){const o=this.node,a=this.decorations;return this.node=e,this.decorations=n,this.options.update({oldNode:o,oldDecorations:a,newNode:e,newDecorations:n,updateProps:()=>r({node:e,decorations:n})})}return e.type!==this.node.type?!1:(e===this.node&&this.decorations===n||(this.node=e,this.decorations=n,r({node:e,decorations:n})),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}getDecorationClasses(){return this.decorations.map(e=>e.type.attrs.class).flat().join(" ")}destroy(){this.renderer.destroy()}}function BL(t,e){return n=>n.editor.contentComponent?new DL(t,n,e):{}}const PL=/^\s*>\s$/,VL=Bt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",ct(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[As({find:PL,type:this.type})]}}),LL=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,IL=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,RL=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,zL=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,FL=jn.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",ct(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[ia({find:LL,type:this.type}),ia({find:RL,type:this.type})]},addPasteRules(){return[ei({find:IL,type:this.type}),ei({find:zL,type:this.type})]}}),HL=Bt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ct(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)}}}),$v=jn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",ct(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=Uu(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Av=/^\s*([-+*])\s$/,qL=Bt.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",ct(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(HL.name,this.editor.getAttributes($v.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=As({find:Av,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=As({find:Av,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes($v.name),editor:this.editor})),[t]}}),jL=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,UL=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,WL=jn.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",ct(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[ia({find:jL,type:this.type})]},addPasteRules(){return[ei({find:UL,type:this.type})]}}),KL=/^```([a-z]+)?[\s\n]$/,YL=/^~~~([a-z]+)?[\s\n]$/,GL=Bt.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,a=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(n)).map(s=>s.replace(n,""))[0];return a||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",ct(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 a=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`

`);return!a||!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:a}=n;if(!a||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[N0({find:KL,type:this.type,getAttributes:t=>({language:t[1]})}),N0({find:YL,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new At({key:new bn("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,a=o==null?void 0:o.mode;if(!n||!a)return!1;const{tr:s}=t.state;return s.replaceSelectionWith(this.type.create({language:a})),s.setSelection(Ae.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(n.replace(/\r\n?/g,`
`)),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),JL=Bt.create({name:"doc",topNode:!0,content:"block+"});function XL(t={}){return new At({view(e){return new QL(e,t)}})}class QL{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 a=s=>{this[o](s)};return e.dom.addEventListener(o,a),{name:o,handler:a}})}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,u=e.nodeAfter;if(l||u){let c=this.editorView.nodeDOM(this.cursorPos-(l?l.nodeSize:0));if(c){let d=c.getBoundingClientRect(),p=l?d.bottom:d.top;l&&u&&(p=(p+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:d.left,right:d.right,top:p-this.width/2,bottom:p+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 a,s;if(!o||o==document.body&&getComputedStyle(o).position=="static")a=-pageXOffset,s=-pageYOffset;else{let l=o.getBoundingClientRect();a=l.left-o.scrollLeft,s=l.top-o.scrollTop}this.element.style.left=r.left-a+"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,a=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!a){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=V2(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 ZL=Dt.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[XL(this.options)]}});class dt extends Me{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return dt.valid(r)?new dt(r):Me.near(r)}content(){return pe.empty}eq(e){return e instanceof dt&&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 dt(e.resolve(n.pos))}getBookmark(){return new O0(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!eI(e)||!tI(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&&dt.valid(e))return e;let o=e.pos,a=null;for(let s=e.depth;;s--){let l=e.node(s);if(n>0?e.indexAfter(s)<l.childCount:e.index(s)>0){a=l.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;o+=n;let u=e.doc.resolve(o);if(dt.valid(u))return u}for(;;){let s=n>0?a.firstChild:a.lastChild;if(!s){if(a.isAtom&&!a.isText&&!Ee.isSelectable(a)){e=e.doc.resolve(o+a.nodeSize*n),r=!1;continue e}break}a=s,o+=n;let l=e.doc.resolve(o);if(dt.valid(l))return l}return null}}}dt.prototype.visible=!1,dt.findFrom=dt.findGapCursorFrom,Me.jsonID("gapcursor",dt);class O0{constructor(e){this.pos=e}map(e){return new O0(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return dt.valid(n)?new dt(n):Me.near(n)}}function eI(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 tI(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 nI(){return new At({props:{decorations:aI,createSelectionBetween(t,e,n){return e.pos==n.pos&&dt.valid(n)?new dt(n):null},handleClick:oI,handleKeyDown:rI,handleDOMEvents:{beforeinput:iI}}})}const rI=iv({ArrowLeft:Ku("horiz",-1),ArrowRight:Ku("horiz",1),ArrowUp:Ku("vert",-1),ArrowDown:Ku("vert",1)});function Ku(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,a){let s=r.selection,l=e>0?s.$to:s.$from,u=s.empty;if(s instanceof Ae){if(!a.endOfTextblock(n)||l.depth==0)return!1;u=!1,l=r.doc.resolve(e>0?l.after():l.before())}let c=dt.findGapCursorFrom(l,e,u);return c?(o&&o(r.tr.setSelection(new dt(c))),!0):!1}}function oI(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!dt.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Ee.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new dt(r))),!0)}function iI(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof dt))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=oe.empty;for(let s=r.length-1;s>=0;s--)o=oe.from(r[s].createAndFill(null,o));let a=t.state.tr.replace(n.pos,n.pos,new pe(o,0,0));return a.setSelection(Ae.near(a.doc.resolve(n.pos+1))),t.dispatch(a),!1}function aI(t){if(!(t.selection instanceof dt))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",mt.create(t.doc,[yn.widget(t.selection.head,e,{key:"gapcursor"})])}const sI=Dt.create({name:"gapCursor",addProseMirrorPlugins(){return[nI()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=De(ge(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),lI=Bt.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",ct(this.options.HTMLAttributes,t)]},renderText(){return`
`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:o,storedMarks:a}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,u=a||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:d})=>{if(d&&u&&s){const p=u.filter(f=>l.includes(f.type.name));c.ensureMarks(p)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),uI=Bt.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]}`,ct(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=>N0({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var Yu=200,Et=function(){};Et.prototype.append=function(e){return e.length?(e=Et.from(e),!this.length&&e||e.length<Yu&&this.leafAppend(e)||this.length<Yu&&e.leafPrepend(this)||this.appendInner(e)):this},Et.prototype.prepend=function(e){return e.length?Et.from(e).append(this):this},Et.prototype.appendInner=function(e){return new cI(this,e)},Et.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Et.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Et.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Et.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)},Et.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(a,s){return o.push(e(a,s))},n,r),o},Et.from=function(e){return e instanceof Et?e:e&&e.length?new Mv(e):Et.empty};var Mv=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,a){return o==0&&a==this.length?this:new e(this.values.slice(o,a))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,a,s,l){for(var u=a;u<s;u++)if(o(this.values[u],l+u)===!1)return!1},e.prototype.forEachInvertedInner=function(o,a,s,l){for(var u=a-1;u>=s;u--)if(o(this.values[u],l+u)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=Yu)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=Yu)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}(Et);Et.empty=new Mv([]);var cI=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,a,s){var l=this.left.length;if(o<l&&this.left.forEachInner(r,o,Math.min(a,l),s)===!1||a>l&&this.right.forEachInner(r,Math.max(o-l,0),Math.min(this.length,a)-l,s+l)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,a,s){var l=this.left.length;if(o>l&&this.right.forEachInvertedInner(r,o-l,Math.max(a,l)-l,s+l)===!1||a<l&&this.left.forEachInvertedInner(r,Math.min(o,l),a,s)===!1)return!1},e.prototype.sliceInner=function(r,o){if(r==0&&o==this.length)return this;var a=this.left.length;return o<=a?this.left.slice(r,o):r>=a?this.right.slice(r-a,o-a):this.left.slice(r,a).append(this.right.slice(0,o-a))},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}(Et);const dI=500;class Un{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,a;n&&(o=this.remapping(r,this.items.length),a=o.maps.length);let s=e.tr,l,u,c=[],d=[];return this.items.forEach((p,f)=>{if(!p.step){o||(o=this.remapping(r,f+1),a=o.maps.length),a--,d.push(p);return}if(o){d.push(new hr(p.map));let h=p.step.map(o.slice(a)),m;h&&s.maybeStep(h).doc&&(m=s.mapping.maps[s.mapping.maps.length-1],c.push(new hr(m,void 0,void 0,c.length+d.length))),a--,m&&o.appendMap(m,a)}else s.maybeStep(p.step);if(p.selection)return l=o?p.selection.map(o.slice(a)):p.selection,u=new Un(this.items.slice(0,r).append(d.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:s,selection:l}}addTransform(e,n,r,o){let a=[],s=this.eventCount,l=this.items,u=!o&&l.length?l.get(l.length-1):null;for(let d=0;d<e.steps.length;d++){let p=e.steps[d].invert(e.docs[d]),f=new hr(e.mapping.maps[d],p,n),h;(h=u&&u.merge(f))&&(f=h,d?a.pop():l=l.slice(0,l.length-1)),a.push(f),n&&(s++,n=void 0),o||(u=f)}let c=s-r.depth;return c>pI&&(l=fI(l,c),s-=c),new Un(l.append(a),s)}remapping(e,n){let r=new qi;return this.items.forEach((o,a)=>{let s=o.mirrorOffset!=null&&a-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 Un(this.items.append(e.map(n=>new hr(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),a=e.mapping,s=e.steps.length,l=this.eventCount;this.items.forEach(f=>{f.selection&&l--},o);let u=n;this.items.forEach(f=>{let h=a.getMirror(--u);if(h==null)return;s=Math.min(s,h);let m=a.maps[h];if(f.step){let g=e.steps[h].invert(e.docs[h]),b=f.selection&&f.selection.map(a.slice(u+1,h));b&&l++,r.push(new hr(m,g,b))}else r.push(new hr(m))},o);let c=[];for(let f=n;f<s;f++)c.push(new hr(a.maps[f]));let d=this.items.slice(0,o).append(c).append(r),p=new Un(d,l);return p.emptyItemCount()>dI&&(p=p.compress(this.items.length-r.length)),p}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=[],a=0;return this.items.forEach((s,l)=>{if(l>=e)o.push(s),s.selection&&a++;else if(s.step){let u=s.step.map(n.slice(r)),c=u&&u.getMap();if(r--,c&&n.appendMap(c,r),u){let d=s.selection&&s.selection.map(n.slice(r));d&&a++;let p=new hr(c.invert(),u,d),f,h=o.length-1;(f=o.length&&o[h].merge(p))?o[h]=f:o.push(p)}}else s.map&&r--},this.items.length,0),new Un(Et.from(o.reverse()),a)}}Un.empty=new Un(Et.empty,0);function fI(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class hr{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 hr(n.getMap().invert(),n,this.selection)}}}class uo{constructor(e,n,r,o,a){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=a}}const pI=20;function hI(t,e,n,r){let o=n.getMeta(co),a;if(o)return o.historyState;n.getMeta(gI)&&(t=new uo(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(co))return s.getMeta(co).redo?new uo(t.done.addTransform(n,void 0,r,Gu(e)),t.undone,Dv(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new uo(t.done,t.undone.addTransform(n,void 0,r,Gu(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),u=t.prevTime==0||!s&&t.prevComposition!=l&&(t.prevTime<(n.time||0)-r.newGroupDelay||!mI(n,t.prevRanges)),c=s?$0(t.prevRanges,n.mapping):Dv(n.mapping.maps[n.steps.length-1]);return new uo(t.done.addTransform(n,u?e.selection.getBookmark():void 0,r,Gu(e)),Un.empty,c,n.time,l??t.prevComposition)}else return(a=n.getMeta("rebased"))?new uo(t.done.rebased(n,a),t.undone.rebased(n,a),$0(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new uo(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),$0(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function mI(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let a=0;a<e.length;a+=2)r<=e[a+1]&&o>=e[a]&&(n=!0)}),n}function Dv(t){let e=[];return t.forEach((n,r,o,a)=>e.push(o,a)),e}function $0(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),a=e.map(t[r+1],-1);o<=a&&n.push(o,a)}return n}function Bv(t,e,n,r){let o=Gu(e),a=co.get(e).spec.config,s=(r?t.undone:t.done).popEvent(e,o);if(!s)return;let l=s.selection.resolve(s.transform.doc),u=(r?t.done:t.undone).addTransform(s.transform,e.selection.getBookmark(),a,o),c=new uo(r?u:s.remaining,r?s.remaining:u,null,0,-1);n(s.transform.setSelection(l).setMeta(co,{redo:r,historyState:c}).scrollIntoView())}let A0=!1,Pv=null;function Gu(t){let e=t.plugins;if(Pv!=e){A0=!1,Pv=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){A0=!0;break}}return A0}const co=new bn("history"),gI=new bn("closeHistory");function bI(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new At({key:co,state:{init(){return new uo(Un.empty,Un.empty,null,0,-1)},apply(e,n,r){return hI(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,o=r=="historyUndo"?Vv:r=="historyRedo"?Lv:null;return o?(n.preventDefault(),o(e.state,e.dispatch)):!1}}}})}const Vv=(t,e)=>{let n=co.getState(t);return!n||n.done.eventCount==0?!1:(e&&Bv(n,t,e,!1),!0)},Lv=(t,e)=>{let n=co.getState(t);return!n||n.undone.eventCount==0?!1:(e&&Bv(n,t,e,!0),!0)},yI=Dt.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Vv(t,e),redo:()=>({state:t,dispatch:e})=>Lv(t,e)}},addProseMirrorPlugins(){return[bI(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),wI=Bt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",ct(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:a})=>{var s;if(a){const{$to:l}=o.selection,u=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?o.setSelection(Ae.create(o.doc,l.pos+1)):l.nodeAfter.isBlock?o.setSelection(Ee.create(o.doc,l.pos)):o.setSelection(Ae.create(o.doc,l.pos));else{const c=(s=l.parent.type.contentMatch.defaultType)===null||s===void 0?void 0:s.create();c&&(o.insert(u,c),o.setSelection(Ae.create(o.doc,u+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[T0({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),vI=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,kI=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,xI=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,EI=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,CI=jn.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",ct(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[ia({find:vI,type:this.type}),ia({find:xI,type:this.type})]},addPasteRules(){return[ei({find:kI,type:this.type}),ei({find:EI,type:this.type})]}}),SI=Bt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ct(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=Bt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ct(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)}}}),Iv=jn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",ct(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=Uu(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Rv=/^(\d+)\.\s$/,TI=Bt.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",ct(this.options.HTMLAttributes,n),0]:["ol",ct(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(Iv.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=As({find:Rv,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=As({find:Rv,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Iv.name)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),NI=Bt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",ct(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),OI=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,$I=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,AI=jn.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",ct(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 k0()?t["Mod-Shift-s"]=()=>this.editor.commands.toggleStrike():t["Ctrl-Shift-s"]=()=>this.editor.commands.toggleStrike(),t},addInputRules(){return[ia({find:OI,type:this.type})]},addPasteRules(){return[ei({find:$I,type:this.type})]}}),MI=Bt.create({name:"text",group:"inline"}),DI=Dt.create({name:"starterKit",addExtensions(){var t,e,n,r,o,a,s,l,u,c,d,p,f,h,m,g,b,v;const x=[];return this.options.blockquote!==!1&&x.push(VL.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bold!==!1&&x.push(FL.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.bulletList!==!1&&x.push(qL.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&x.push(WL.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&x.push(GL.configure((o=this.options)===null||o===void 0?void 0:o.codeBlock)),this.options.document!==!1&&x.push(JL.configure((a=this.options)===null||a===void 0?void 0:a.document)),this.options.dropcursor!==!1&&x.push(ZL.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&x.push(sI.configure((l=this.options)===null||l===void 0?void 0:l.gapcursor)),this.options.hardBreak!==!1&&x.push(lI.configure((u=this.options)===null||u===void 0?void 0:u.hardBreak)),this.options.heading!==!1&&x.push(uI.configure((c=this.options)===null||c===void 0?void 0:c.heading)),this.options.history!==!1&&x.push(yI.configure((d=this.options)===null||d===void 0?void 0:d.history)),this.options.horizontalRule!==!1&&x.push(wI.configure((p=this.options)===null||p===void 0?void 0:p.horizontalRule)),this.options.italic!==!1&&x.push(CI.configure((f=this.options)===null||f===void 0?void 0:f.italic)),this.options.listItem!==!1&&x.push(SI.configure((h=this.options)===null||h===void 0?void 0:h.listItem)),this.options.orderedList!==!1&&x.push(TI.configure((m=this.options)===null||m===void 0?void 0:m.orderedList)),this.options.paragraph!==!1&&x.push(NI.configure((g=this.options)===null||g===void 0?void 0:g.paragraph)),this.options.strike!==!1&&x.push(AI.configure((b=this.options)===null||b===void 0?void 0:b.strike)),this.options.text!==!1&&x.push(MI.configure((v=this.options)===null||v===void 0?void 0:v.text)),x}}),BI="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",PI="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو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",aa=(t,e)=>{for(const n in e)t[n]=e[n];return t},M0="numeric",D0="ascii",B0="alpha",Ju="asciinumeric",Xu="alphanumeric",P0="domain",zv="emoji",VI="scheme",LI="slashscheme",Fv="whitespace";function II(t,e){return t in e||(e[t]=[]),e[t]}function ti(t,e,n){e[M0]&&(e[Ju]=!0,e[Xu]=!0),e[D0]&&(e[Ju]=!0,e[B0]=!0),e[Ju]&&(e[Xu]=!0),e[B0]&&(e[Xu]=!0),e[Xu]&&(e[P0]=!0),e[zv]&&(e[P0]=!0);for(const r in e){const o=II(r,n);o.indexOf(t)<0&&o.push(t)}}function RI(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function sn(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}sn.groups={},sn.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],a=e.jr[r][1];if(a&&o.test(t))return a}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||sn.groups;let o;return e&&e.j?o=e:(o=new sn(e),n&&r&&ti(e,n,r)),this.jr.push([t,o]),o},ts(t,e,n,r){let o=this;const a=t.length;if(!a)return o;for(let s=0;s<a-1;s++)o=o.tt(t[s]);return o.tt(t[a-1],e,n,r)},tt(t,e,n,r){r=r||sn.groups;const o=this;if(e&&e.j)return o.j[t]=e,e;const a=e;let s,l=o.go(t);if(l?(s=new sn,aa(s.j,l.j),s.jr.push.apply(s.jr,l.jr),s.jd=l.jd,s.t=l.t):s=new sn,a){if(r)if(s.t&&typeof s.t=="string"){const u=aa(RI(s.t,r),n);ti(a,u,r)}else n&&ti(a,n,r);s.t=a}return o.j[t]=s,s}};const ye=(t,e,n,r,o)=>t.ta(e,n,r,o),Pn=(t,e,n,r,o)=>t.tr(e,n,r,o),Hv=(t,e,n,r,o)=>t.ts(e,n,r,o),ae=(t,e,n,r,o)=>t.tt(e,n,r,o),Dr="WORD",V0="UWORD",Ms="LOCALHOST",L0="TLD",I0="UTLD",Qu="SCHEME",sa="SLASH_SCHEME",R0="NUM",qv="WS",z0="NL",la="OPENBRACE",Ds="OPENBRACKET",Bs="OPENANGLEBRACKET",Ps="OPENPAREN",ni="CLOSEBRACE",ua="CLOSEBRACKET",ca="CLOSEANGLEBRACKET",ri="CLOSEPAREN",Zu="AMPERSAND",ec="APOSTROPHE",tc="ASTERISK",fo="AT",nc="BACKSLASH",rc="BACKTICK",oc="CARET",po="COLON",F0="COMMA",ic="DOLLAR",mr="DOT",ac="EQUALS",H0="EXCLAMATION",gr="HYPHEN",sc="PERCENT",lc="PIPE",uc="PLUS",cc="POUND",dc="QUERY",q0="QUOTE",j0="SEMI",br="SLASH",Vs="TILDE",fc="UNDERSCORE",jv="EMOJI",pc="SYM";var Uv=Object.freeze({__proto__:null,WORD:Dr,UWORD:V0,LOCALHOST:Ms,TLD:L0,UTLD:I0,SCHEME:Qu,SLASH_SCHEME:sa,NUM:R0,WS:qv,NL:z0,OPENBRACE:la,OPENBRACKET:Ds,OPENANGLEBRACKET:Bs,OPENPAREN:Ps,CLOSEBRACE:ni,CLOSEBRACKET:ua,CLOSEANGLEBRACKET:ca,CLOSEPAREN:ri,AMPERSAND:Zu,APOSTROPHE:ec,ASTERISK:tc,AT:fo,BACKSLASH:nc,BACKTICK:rc,CARET:oc,COLON:po,COMMA:F0,DOLLAR:ic,DOT:mr,EQUALS:ac,EXCLAMATION:H0,HYPHEN:gr,PERCENT:sc,PIPE:lc,PLUS:uc,POUND:cc,QUERY:dc,QUOTE:q0,SEMI:j0,SLASH:br,TILDE:Vs,UNDERSCORE:fc,EMOJI:jv,SYM:pc});const da=/[a-z]/,U0=/\p{L}/u,W0=/\p{Emoji}/u,K0=/\d/,Wv=/\s/,Kv=`
`,zI="️",FI="‍";let hc=null,mc=null;function HI(t){t===void 0&&(t=[]);const e={};sn.groups=e;const n=new sn;hc==null&&(hc=Yv(BI)),mc==null&&(mc=Yv(PI)),ae(n,"'",ec),ae(n,"{",la),ae(n,"[",Ds),ae(n,"<",Bs),ae(n,"(",Ps),ae(n,"}",ni),ae(n,"]",ua),ae(n,">",ca),ae(n,")",ri),ae(n,"&",Zu),ae(n,"*",tc),ae(n,"@",fo),ae(n,"`",rc),ae(n,"^",oc),ae(n,":",po),ae(n,",",F0),ae(n,"$",ic),ae(n,".",mr),ae(n,"=",ac),ae(n,"!",H0),ae(n,"-",gr),ae(n,"%",sc),ae(n,"|",lc),ae(n,"+",uc),ae(n,"#",cc),ae(n,"?",dc),ae(n,'"',q0),ae(n,"/",br),ae(n,";",j0),ae(n,"~",Vs),ae(n,"_",fc),ae(n,"\\",nc);const r=Pn(n,K0,R0,{[M0]:!0});Pn(r,K0,r);const o=Pn(n,da,Dr,{[D0]:!0});Pn(o,da,o);const a=Pn(n,U0,V0,{[B0]:!0});Pn(a,da),Pn(a,U0,a);const s=Pn(n,Wv,qv,{[Fv]:!0});ae(n,Kv,z0,{[Fv]:!0}),ae(s,Kv),Pn(s,Wv,s);const l=Pn(n,W0,jv,{[zv]:!0});Pn(l,W0,l),ae(l,zI,l);const u=ae(l,FI);Pn(u,W0,l);const c=[[da,o]],d=[[da,null],[U0,a]];for(let p=0;p<hc.length;p++)ho(n,hc[p],L0,Dr,c);for(let p=0;p<mc.length;p++)ho(n,mc[p],I0,V0,d);ti(L0,{tld:!0,ascii:!0},e),ti(I0,{utld:!0,alpha:!0},e),ho(n,"file",Qu,Dr,c),ho(n,"mailto",Qu,Dr,c),ho(n,"http",sa,Dr,c),ho(n,"https",sa,Dr,c),ho(n,"ftp",sa,Dr,c),ho(n,"ftps",sa,Dr,c),ti(Qu,{scheme:!0,ascii:!0},e),ti(sa,{slashscheme:!0,ascii:!0},e),t=t.sort((p,f)=>p[0]>f[0]?1:-1);for(let p=0;p<t.length;p++){const f=t[p][0],m=t[p][1]?{[VI]:!0}:{[LI]:!0};f.indexOf("-")>=0?m[P0]=!0:da.test(f)?K0.test(f)?m[Ju]=!0:m[D0]=!0:m[M0]=!0,Hv(n,f,f,m)}return Hv(n,"localhost",Ms,{ascii:!0}),n.jd=new sn(pc),{start:n,tokens:aa({groups:e},Uv)}}function qI(t,e){const n=jI(e.replace(/[A-Z]/g,l=>l.toLowerCase())),r=n.length,o=[];let a=0,s=0;for(;s<r;){let l=t,u=null,c=0,d=null,p=-1,f=-1;for(;s<r&&(u=l.go(n[s]));)l=u,l.accepts()?(p=0,f=0,d=l):p>=0&&(p+=n[s].length,f++),c+=n[s].length,a+=n[s].length,s++;a-=p,s-=f,c-=p,o.push({t:d.t,v:e.slice(a-c,a),s:a-c,e:a})}return o}function jI(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),a,s=o<55296||o>56319||r+1===n||(a=t.charCodeAt(r+1))<56320||a>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function ho(t,e,n,r,o){let a;const s=e.length;for(let l=0;l<s-1;l++){const u=e[l];t.j[u]?a=t.j[u]:(a=new sn(r),a.jr=o.slice(),t.j[u]=a),t=a}return a=new sn(n),a.jr=o.slice(),t.j[e[s-1]]=a,a}function Yv(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let a=0;for(;o.indexOf(t[r+a])>=0;)a++;if(a>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+a),10);s>0;s--)n.pop();r+=a}else n.push(t[r]),r++}return e}const Ls={defaultProtocol:"http",events:null,format:Gv,formatHref:Gv,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Y0(t,e){e===void 0&&(e=null);let n=aa({},Ls);t&&(n=aa(n,t instanceof Y0?t.o:t));const r=n.ignoreTags,o=[];for(let a=0;a<r.length;a++)o.push(r[a].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}Y0.prototype={o:Ls,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]:Ls[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 Gv(t){return t}function Jv(t,e){this.t="token",this.v=t,this.tk=e}Jv.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=Ls.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),a=this.toFormattedString(t),s={},l=t.get("className",n,e),u=t.get("target",n,e),c=t.get("rel",n,e),d=t.getObj("attributes",n,e),p=t.getObj("events",n,e);return s.href=r,l&&(s.class=l),u&&(s.target=u),c&&(s.rel=c),d&&aa(s,d),{tagName:o,attributes:s,content:a,eventListeners:p}}};function gc(t,e){class n extends Jv{constructor(o,a){super(o,a),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const Xv=gc("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Qv=gc("text"),UI=gc("nl"),oi=gc("url",{isLink:!0,toHref(t){return t===void 0&&(t=Ls.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Ms&&t[1].t===po}}),Ct=t=>new sn(t);function WI(t){let{groups:e}=t;const n=e.domain.concat([Zu,tc,fo,nc,rc,oc,ic,ac,gr,R0,sc,lc,uc,cc,br,pc,Vs,fc]),r=[ec,ca,ni,ua,ri,po,F0,mr,H0,Bs,la,Ds,Ps,dc,q0,j0],o=[Zu,ec,tc,nc,rc,oc,ni,ic,ac,gr,la,sc,lc,uc,cc,dc,br,pc,Vs,fc],a=Ct(),s=ae(a,Vs);ye(s,o,s),ye(s,e.domain,s);const l=Ct(),u=Ct(),c=Ct();ye(a,e.domain,l),ye(a,e.scheme,u),ye(a,e.slashscheme,c),ye(l,o,s),ye(l,e.domain,l);const d=ae(l,fo);ae(s,fo,d),ae(u,fo,d),ae(c,fo,d);const p=ae(s,mr);ye(p,o,s),ye(p,e.domain,s);const f=Ct();ye(d,e.domain,f),ye(f,e.domain,f);const h=ae(f,mr);ye(h,e.domain,f);const m=Ct(Xv);ye(h,e.tld,m),ye(h,e.utld,m),ae(d,Ms,m);const g=ae(f,gr);ye(g,e.domain,f),ye(m,e.domain,f),ae(m,mr,h),ae(m,gr,g);const b=ae(m,po);ye(b,e.numeric,Xv);const v=ae(l,gr),x=ae(l,mr);ye(v,e.domain,l),ye(x,o,s),ye(x,e.domain,l);const N=Ct(oi);ye(x,e.tld,N),ye(x,e.utld,N),ye(N,e.domain,l),ye(N,o,s),ae(N,mr,x),ae(N,gr,v),ae(N,fo,d);const y=ae(N,po),M=Ct(oi);ye(y,e.numeric,M);const E=Ct(oi),C=Ct();ye(E,n,E),ye(E,r,C),ye(C,n,E),ye(C,r,C),ae(N,br,E),ae(M,br,E);const T=ae(u,po),B=ae(c,po),L=ae(B,br),k=ae(L,br);ye(u,e.domain,l),ae(u,mr,x),ae(u,gr,v),ye(c,e.domain,l),ae(c,mr,x),ae(c,gr,v),ye(T,e.domain,E),ae(T,br,E),ye(k,e.domain,E),ye(k,n,E),ae(k,br,E);const $=ae(E,la),D=ae(E,Ds),V=ae(E,Bs),S=ae(E,Ps);ae(C,la,$),ae(C,Ds,D),ae(C,Bs,V),ae(C,Ps,S),ae($,ni,E),ae(D,ua,E),ae(V,ca,E),ae(S,ri,E),ae($,ni,E);const O=Ct(oi),w=Ct(oi),A=Ct(oi),z=Ct(oi);ye($,n,O),ye(D,n,w),ye(V,n,A),ye(S,n,z);const P=Ct(),q=Ct(),W=Ct(),ee=Ct();return ye($,r),ye(D,r),ye(V,r),ye(S,r),ye(O,n,O),ye(w,n,w),ye(A,n,A),ye(z,n,z),ye(O,r,O),ye(w,r,w),ye(A,r,A),ye(z,r,z),ye(P,n,P),ye(q,n,w),ye(W,n,A),ye(ee,n,z),ye(P,r,P),ye(q,r,q),ye(W,r,W),ye(ee,r,ee),ae(w,ua,E),ae(A,ca,E),ae(z,ri,E),ae(O,ni,E),ae(q,ua,E),ae(W,ca,E),ae(ee,ri,E),ae(P,ri,E),ae(a,Ms,N),ae(a,z0,UI),{start:a,tokens:Uv}}function KI(t,e,n){let r=n.length,o=0,a=[],s=[];for(;o<r;){let l=t,u=null,c=null,d=0,p=null,f=-1;for(;o<r&&!(u=l.go(n[o].t));)s.push(n[o++]);for(;o<r&&(c=u||l.go(n[o].t));)u=null,l=c,l.accepts()?(f=0,p=l):f>=0&&f++,o++,d++;if(f<0)o-=d,o<r&&(s.push(n[o]),o++);else{s.length>0&&(a.push(G0(Qv,e,s)),s=[]),o-=f,d-=f;const h=p.t,m=n.slice(o-d,o);a.push(G0(h,e,m))}}return s.length>0&&a.push(G0(Qv,e,s)),a}function G0(t,e,n){const r=n[0].s,o=n[n.length-1].e,a=e.slice(r,o);return new t(a,n)}const YI=typeof console<"u"&&console&&console.warn||(()=>{}),GI="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",lt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function JI(){sn.groups={},lt.scanner=null,lt.parser=null,lt.tokenQueue=[],lt.pluginQueue=[],lt.customSchemes=[],lt.initialized=!1}function Zv(t,e){if(e===void 0&&(e=!1),lt.initialized&&YI(`linkifyjs: already initialized - will not register custom scheme "${t}" ${GI}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
 1. Must only contain digits, lowercase ASCII letters or "-"
 2. Cannot start or end with "-"
 3. "-" cannot repeat`);lt.customSchemes.push([t,e])}function XI(){lt.scanner=HI(lt.customSchemes);for(let t=0;t<lt.tokenQueue.length;t++)lt.tokenQueue[t][1]({scanner:lt.scanner});lt.parser=WI(lt.scanner.tokens);for(let t=0;t<lt.pluginQueue.length;t++)lt.pluginQueue[t][1]({scanner:lt.scanner,parser:lt.parser});lt.initialized=!0}function QI(t){return lt.initialized||XI(),KI(lt.parser.start,t,qI(lt.scanner.start,t))}function e3(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 Y0(n),o=QI(t),a=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&a.push(l.toFormattedObject(r))}return a}function ZI(t){return new At({key:new bn("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(c=>c.docChanged)&&!n.doc.eq(r.doc),a=e.some(c=>c.getMeta("preventAutolink"));if(!o||a)return;const{tr:s}=r,l=WV(n.doc,[...e]);if(tL(l).forEach(({newRange:c})=>{const d=YV(r.doc,c,h=>h.isTextblock);let p,f;if(d.length>1?(p=d[0],f=r.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ")):d.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(p=d[0],f=r.doc.textBetween(p.pos,c.to,void 0," ")),p&&f){const h=f.split(" ").filter(b=>b!=="");if(h.length<=0)return!1;const m=h[h.length-1],g=p.pos+f.lastIndexOf(m);if(!m)return!1;e3(m).filter(b=>b.isLink).map(b=>({...b,from:g+b.start+1,to:g+b.end+1})).filter(b=>r.schema.marks.code?!r.doc.rangeHasMark(b.from,b.to,r.schema.marks.code):!0).filter(b=>t.validate?t.validate(b.value):!0).forEach(b=>{E0(b.from,b.to,r.doc).some(v=>v.mark.type===t.type)||s.addMark(b.from,b.to,t.type.create({href:b.href}))})}}),!!s.steps.length)return s}})}function eR(t){return new At({key:new bn("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,a;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=Ev(e.state,t.type.name),u=r.target,c=(o=u==null?void 0:u.href)!==null&&o!==void 0?o:l.href,d=(a=u==null?void 0:u.target)!==null&&a!==void 0?a:l.target;return u&&c?(e.editable&&window.open(c,d),!0):!1}}})}const tR=jn.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){Zv(t);return}Zv(t.scheme,t.optionalSlashes)})},onDestroy(){JI()},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}){return["a",ct(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[ei({find:t=>e3(t).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(t,e)=>{var n,r;const o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text/html"),a=/href="([^"]*)"/,s=o==null?void 0:o.match(a);return s?{href:s[1]}:{href:(r=t.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(ZI({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push(eR({type:this.type})),t}}),nR=Dt.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>t.style.textAlign||this.options.defaultAlignment,renderHTML:t=>t.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${t.textAlign}`}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.every(n=>e.updateAttributes(n,{textAlign:t})):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.every(e=>t.resetAttributes(e,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),rR=Dt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new At({key:new bn("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!n)return null;const a=t.type.createAndFill(),s=(a==null?void 0:a.sameMarkup(t))&&a.content.findDiffStart(t.content)===null;return t.descendants((l,u)=>{const c=r>=u&&r<=u+l.nodeSize,d=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&d){const p=[this.options.emptyNodeClass];s&&p.push(this.options.emptyEditorClass);const f=yn.node(u,u+l.nodeSize,{class:p.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:u,hasAnchor:c}):this.options.placeholder});o.push(f)}return this.options.includeChildren}),mt.create(t,o)}}})]}}),oR={modelValue:{type:String,default:"",description:"Valor del componente"},mandatory:{type:String,default:"",description:"Contenido html obligatorio"},placeholder:{type:String,default:"Escribe algo...",description:"Texto de ayuda"},maxHeight:{type:Number,default:600,description:"Altura máxima"},minHeight:{type:Number,default:200,description:"Altura mínima"},label:{type:String,default:"",description:"Etiqueta"},required:{type:Boolean,default:!1,description:"Indica si es obligatorio"},errors:{type:Array,required:!1,default:()=>[],description:"Errores de validación"},status:{type:String,default:"",control:{type:"inline-radio"},options:["warning","success","danger"],description:"Color de estado del input"},title:{type:Boolean,default:!0,description:"Indica si se debe mostrar los controles de título"},list:{type:Boolean,default:!0,description:"Indica si se debe mostrar los controles de lista"},quote:{type:Boolean,default:!1,description:"Indica si se debe mostrar el control de cita"},code:{type:Boolean,default:!1,description:"Indica si se debe mostrar el control de código"},history:{type:Boolean,default:!1,description:"Indica si se debe mostrar los botones `deshacer` y `rehacer`"},zenmode:{type:Boolean,default:!0,description:"Opción para maximizar a pantalla completa"}},iR={class:"media-node-view inline-block"},aR=["src"],sR=i.defineComponent({__name:"ResizableMediaNodeView",props:{editor:{},node:{},decorations:{},selected:{type:Boolean},extension:{},getPos:{type:Function},updateAttributes:{type:Function},deleteNode:{type:Function}},setup(t){const e=t,n=i.computed(()=>e.node.attrs["media-type"]),r=i.ref(null),o=i.ref(0),a=i.ref(0),s=()=>{const y=document.querySelector(".ProseMirror");y&&(a.value=y==null?void 0:y.clientWidth),r.value&&(n.value==="video"?setTimeout(()=>{o.value=r.value.videoWidth/r.value.videoHeight,f("left",0)},200):(o.value=r.value.naturalWidth/r.value.naturalHeight,f("left",0),r.value.onload=()=>{o.value=r.value.naturalWidth/r.value.naturalHeight,f("left",0)}))};i.onMounted(()=>setTimeout(()=>s(),1e3));const l=i.ref(!1),u=i.ref(-1),c=({width:y,height:M})=>y<100||M<100,d=y=>{l.value=!0,u.value=y.clientX,document.addEventListener("mousemove",h),document.addEventListener("mouseup",p)},p=()=>{l.value=!1,u.value=-1,document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",p)},f=(y,M)=>{var T,B;if(!r.value){console.error("Media ref is undefined|null",{resizableImg:r.value});return}const E={width:(T=r.value)==null?void 0:T.width,height:(B=r.value)==null?void 0:B.height},C={width:-1,height:-1};y==="left"?C.width=E.width-Math.abs(M):C.width=E.width+Math.abs(M),C.width>a.value&&(C.width=a.value),C.height=C.width/o.value,!c(C)&&e.updateAttributes(C)},h=y=>{if(!l.value)return;const{clientX:M}=y,E=u.value-M;if(u.value=M,E===0)return;const C=E>0?"left":"right";f(C,Math.abs(E))},m=i.ref(!1),g=i.ref(-1),b=y=>{m.value=!0,g.value=y.clientY,document.addEventListener("mousemove",x),document.addEventListener("mouseup",v)},v=()=>{m.value=!1,g.value=-1,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",v)},x=y=>{var L,k;if(!m.value)return;const{clientY:M}=y,E=g.value-M;if(g.value=M,E===0)return;const C=E>0?"up":"down";if(!r.value){console.error("Media ref is undefined|null",{resizableImg:r.value});return}const T={width:(L=r.value)==null?void 0:L.width,height:(k=r.value)==null?void 0:k.height},B={width:-1,height:-1};C==="up"?B.height=T.height-Math.abs(E):B.height=T.height+Math.abs(E),B.width=B.height*o.value,B.width>a.value&&(B.width=a.value,B.height=B.width/o.value),!c(B)&&e.updateAttributes(B)},N=i.computed(()=>!!e.node.attrs.dataAlign);return(y,M)=>(i.openBlock(),i.createBlock(i.unref(AL),{as:"div",class:""},{default:i.withCtx(()=>[i.createElementVNode("div",iR,[n.value==="img"?(i.openBlock(),i.createElementBlock("img",i.mergeProps({key:0},y.node.attrs,{ref_key:"resizableImg",ref:r,class:[`${N.value&&`align-${e.node.attrs.dataAlign}`||""}`],draggable:"true"}),null,16)):n.value==="video"?(i.openBlock(),i.createElementBlock("video",i.mergeProps({key:1},y.node.attrs,{ref_key:"resizableImg",ref:r,class:[`${N.value&&`align-${e.node.attrs.dataAlign}`||""}`],draggable:"true",controls:"true"}),[i.createElementVNode("source",{src:y.node.attrs.src},null,8,aR)],16)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["horizontal-resize-handle",{"horizontal-resize-active":l.value}]),title:"Resize",onMousedown:d,onMouseup:p},null,34),i.createElementVNode("div",{class:i.normalizeClass(["vertical-resize-handle",{"vertical-resize-active":m.value}]),title:"Resize",onMousedown:b,onMouseup:v},null,34)])]),_:1}))}}),vY="",lR=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,uR=/!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/,cR=Bt.create({name:"resizableMedia",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline:!0,group:"inline",draggable:!0,addAttributes(){return{src:{default:null},"media-type":{default:null},alt:{default:null},title:{default:null},width:{default:"100%"},height:{default:"auto"},dataAlign:{default:"left"},style:{default:null}}},selectable:!0,parseHTML(){return[{tag:'img[src]:not([src^="data:"])',getAttrs:t=>({src:t.getAttribute("src"),"media-type":"img"})},{tag:"video",getAttrs:t=>({src:t.getAttribute("src"),"media-type":"video"})}]},renderHTML({HTMLAttributes:t}){const{"media-type":e}=t;return e==="img"?["img",ct(this.options.HTMLAttributes,t)]:e==="video"?["video",{controls:"true",style:"width: 100%",...t},["source",t]]:(e||console.error("TiptapMediaExtension-renderHTML method: Media Type not set, going default with image"),["img",ct(this.options.HTMLAttributes,t)])},addCommands(){return{setMedia:t=>({commands:e})=>{const{"media-type":n}=t;return n==="img"?e.insertContent({type:this.name,attrs:t}):n==="video"?e.insertContent({type:this.name,attrs:{...t,controls:"true"}}):(n||console.error("TiptapMediaExtension-setMedia: Media Type not set, going default with image"),e.insertContent({type:this.name,attrs:t}))}}},addNodeView(){return BL(sR)},addInputRules(){return[T0({find:lR,type:this.type,getAttributes:t=>{const[,,e,n,r]=t;return{src:n,alt:e,title:r,"media-type":"img"}}}),T0({find:uR,type:this.type,getAttributes:t=>{const[,,e]=t;return{src:e,"media-type":"video"}}})]}}),dR=i.defineComponent({name:"AEditor",components:{EditorContent:$L,BubbleMenu:NL},props:oR,emits:["update:modelValue"],setup(t,e){const n=i.ref(),r=i.ref(t.modelValue),o=h=>!!e.slots[h],a=i.ref(!1),s=i.ref(!1),l=i.computed(()=>t.mandatory?zD(t.mandatory,{allowedTags:["a","b","i","em","pre","code","strong","br","div","center"],allowedAttributes:{a:["href","title","style"]}}):""),u=()=>{var m;const h=window.prompt("URL");h&&((m=n.value)==null||m.commands.setMedia({src:h,"media-type":"img",width:"200",height:"200"}))},c=i.computed(()=>(t.errors.length>0?t.errors[0].$message:"").toString()),d=i.computed(()=>{const h=["k-editor"];return t.errors.length>0?h.push("k-editor-danger"):t.status&&h.push(`k-editor-${t.status}`),s.value&&h.push("k-editor-fullpage"),h}),p=i.computed(()=>t.label||o("default")),f=()=>{a.value=!a.value};return i.onMounted(()=>{var h;n.value=new OL({content:r.value,extensions:[DI.configure({heading:{levels:[1,2,3,4,5,6]}}),tR.configure({protocols:["tel","mailto"]}),nR.configure({types:["heading","paragraph","image"]}),rR.configure({placeholder:t.placeholder}),cR],editorProps:{attributes:{style:`min-height: calc(${t.minHeight}px - 40px - 52px);`}},onUpdate:()=>{var m;r.value=((m=n.value)==null?void 0:m.getHTML())||"",e.emit("update:modelValue",r.value+t.mandatory)}}),r.value=((h=n.value)==null?void 0:h.getHTML())||"",e.emit("update:modelValue",r.value+t.mandatory)}),i.onBeforeUnmount(()=>{var h;(h=n.value)==null||h.destroy()}),i.watch(()=>t.modelValue,h=>{var m;h!==r.value&&(r.value=h,(m=n.value)==null||m.commands.setContent(h))}),{editor:n,mandatoryHtml:l,firstError:c,classes:d,hasLabel:p,fullpage:s,showCode:a,html:r,addImage:u,hasSlot:o,toggleCode:f}}}),kY="",fR={key:0,class:"font-semibold text-gray-500 dark:text-white select-none mb-2 flex flex-row"},pR={key:2,class:"font-bold text-danger ml-1"},hR={class:"k-editor-content"},mR={key:1},gR=["innerHTML"],bR={class:"k-editor-bubble"},yR={class:"k-editor-menu"},wR=i.createElementVNode("div",{class:"ml-auto"},null,-1),vR=i.createElementVNode("div",{class:"ml-auto"},null,-1);function kR(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-tooltip"),u=i.resolveComponent("editor-content"),c=i.resolveComponent("k-button"),d=i.resolveComponent("BubbleMenu"),p=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([t.classes])},[t.hasLabel?(i.openBlock(),i.createElementBlock("label",fR,[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.label),1)],64)),t.required?(i.openBlock(),i.createElementBlock("span",pR,"*")):i.createCommentVNode("",!0),t.firstError?(i.openBlock(),i.createBlock(l,{key:3,content:t.firstError},{default:i.withCtx(()=>[i.createVNode(s,{icon:"triangle-exclamation",class:"ml-2"})]),_:1},8,["content"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),t.editor?(i.openBlock(),i.createElementBlock("div",{key:1,class:"k-editor-wrapper",style:i.normalizeStyle({maxHeight:t.fullpage?void 0:`${t.maxHeight}px`})},[i.createElementVNode("div",hR,[t.showCode?(i.openBlock(),i.createElementBlock("div",mR,[i.createElementVNode("div",{class:"tiptap ProseMirror",contenteditable:"true",tabindex:"0",translate:"no",style:i.normalizeStyle({minHeight:`calc(${t.minHeight}px - 40px - 52px)`})},i.toDisplayString(t.html),5)])):(i.openBlock(),i.createBlock(u,{key:0,editor:t.editor},null,8,["editor"])),t.mandatory?(i.openBlock(),i.createElementBlock("div",{key:2,class:"k-editor-mandatory",innerHTML:t.mandatoryHtml},null,8,gR)):i.createCommentVNode("",!0)]),i.createVNode(d,{editor:t.editor,"keep-in-bounds":!0},{default:i.withCtx(()=>[i.createElementVNode("div",bR,[i.createVNode(c,{link:"",size:"sm",icon:"user",class:i.normalizeClass({active:t.editor.isActive("bold")}),onClick:e[0]||(e[0]=f=>t.editor.chain().focus().toggleBold().run())},null,8,["class"]),i.createVNode(c,{link:"",size:"sm",icon:"italic",class:i.normalizeClass({active:t.editor.isActive("italic")}),onClick:e[1]||(e[1]=f=>t.editor.chain().focus().toggleItalic().run())},null,8,["class"]),i.createVNode(c,{link:"",size:"sm",icon:"highlighter",class:i.normalizeClass({active:t.editor.isActive("code")}),onClick:e[2]||(e[2]=f=>t.editor.chain().focus().toggleCode().run())},null,8,["class"])])]),_:1},8,["editor"]),i.createElementVNode("div",yR,[i.withDirectives(i.createVNode(c,{color:"primary",size:"sm",icon:"bold",class:i.normalizeClass({active:t.editor.isActive("bold")}),onClick:e[3]||(e[3]=f=>t.editor.chain().focus().toggleBold().run())},null,8,["class"]),[[p,{content:"Negrita",placement:"bottom"}]]),i.withDirectives(i.createVNode(c,{color:"primary",size:"sm",icon:"italic",class:i.normalizeClass({active:t.editor.isActive("italic")}),onClick:e[4]||(e[4]=f=>t.editor.chain().focus().toggleItalic().run())},null,8,["class"]),[[p,{content:"Cursiva",placement:"bottom"}]]),i.withDirectives(i.createVNode(c,{color:"primary",size:"sm",icon:"highlighter",class:i.normalizeClass({active:t.editor.isActive("code")}),onClick:e[5]||(e[5]=f=>t.editor.chain().focus().toggleCode().run())},null,8,["class"]),[[p,{content:"Destacado",placement:"bottom"}]]),t.title?i.withDirectives((i.openBlock(),i.createBlock(c,{key:0,color:"primary",size:"sm",class:i.normalizeClass({active:t.editor.isActive("heading",{level:1})}),onClick:e[6]||(e[6]=f=>t.editor.chain().focus().setHeading({level:1}).run())},{default:i.withCtx(()=>[i.createTextVNode(" H1 ")]),_:1},8,["class"])),[[p,{content:"Título 1",placement:"bottom"}]]):i.createCommentVNode("",!0),t.title?i.withDirectives((i.openBlock(),i.createBlock(c,{key:1,color:"primary",size:"sm",class:i.normalizeClass({active:t.editor.isActive("heading",{level:2})}),onClick:e[7]||(e[7]=f=>t.editor.chain().focus().setHeading({level:2}).run())},{default:i.withCtx(()=>[i.createTextVNode(" H2 ")]),_:1},8,["class"])),[[p,{content:"Título 2",placement:"bottom"}]]):i.createCommentVNode("",!0),t.title?i.withDirectives((i.openBlock(),i.createBlock(c,{key:2,color:"primary",size:"sm",class:i.normalizeClass({active:t.editor.isActive("heading",{level:3})}),onClick:e[8]||(e[8]=f=>t.editor.chain().focus().setHeading({level:3}).run())},{default:i.withCtx(()=>[i.createTextVNode(" H3 ")]),_:1},8,["class"])),[[p,{content:"Título 3",placement:"bottom"}]]):i.createCommentVNode("",!0),t.list?i.withDirectives((i.openBlock(),i.createBlock(c,{key:3,color:"primary",size:"sm",icon:"list-ul",class:i.normalizeClass({active:t.editor.isActive("bulletList")}),onClick:e[9]||(e[9]=f=>t.editor.chain().focus().toggleBulletList().run())},null,8,["class"])),[[p,{content:"Lista (ord)",placement:"bottom"}]]):i.createCommentVNode("",!0),t.list?i.withDirectives((i.openBlock(),i.createBlock(c,{key:4,color:"primary",size:"sm",icon:"list-ol",class:i.normalizeClass({active:t.editor.isActive("orderedList")}),onClick:e[10]||(e[10]=f=>t.editor.chain().focus().toggleOrderedList().run())},null,8,["class"])),[[p,{content:"Lista (num)",placement:"bottom"}]]):i.createCommentVNode("",!0),t.quote?i.withDirectives((i.openBlock(),i.createBlock(c,{key:5,color:"primary",size:"sm",icon:"quote-right",class:i.normalizeClass({active:t.editor.isActive("blockquote")}),onClick:e[11]||(e[11]=f=>t.editor.chain().focus().toggleBlockquote().run())},null,8,["class"])),[[p,{content:"Cita",placement:"bottom"}]]):i.createCommentVNode("",!0),t.code?i.withDirectives((i.openBlock(),i.createBlock(c,{key:6,color:"primary",size:"sm",icon:"code",class:i.normalizeClass({active:t.editor.isActive("codeBlock")}),onClick:e[12]||(e[12]=f=>t.editor.chain().focus().toggleCodeBlock().run())},null,8,["class"])),[[p,{content:"Código",placement:"bottom"}]]):i.createCommentVNode("",!0),i.withDirectives(i.createVNode(c,{color:"primary",size:"sm",icon:"arrows-alt-h",onClick:e[13]||(e[13]=f=>t.editor.chain().focus().setHorizontalRule().run())},null,512),[[p,{content:"Divisor",placement:"bottom"}]]),i.withDirectives(i.createVNode(c,{color:"primary",size:"sm",icon:"images",onClick:t.addImage},null,8,["onClick"]),[[p,{content:"Imagen externa",placement:"bottom"}]]),wR,i.withDirectives(i.createVNode(c,{color:"primary",size:"sm",icon:"align-left",class:i.normalizeClass({active:t.editor.isActive({textAlign:"left"})}),onClick:e[14]||(e[14]=f=>t.editor.chain().focus().setTextAlign("left").run())},null,8,["class"]),[[p,{content:"Alinear a la izquierda",placement:"bottom"}]]),i.withDirectives(i.createVNode(c,{color:"primary",size:"sm",icon:"align-center",class:i.normalizeClass({active:t.editor.isActive({textAlign:"center"})}),onClick:e[15]||(e[15]=f=>t.editor.chain().focus().setTextAlign("center").run())},null,8,["class"]),[[p,{content:"Alinear al centro",placement:"bottom"}]]),i.withDirectives(i.createVNode(c,{color:"primary",size:"sm",icon:"align-right",class:i.normalizeClass({active:t.editor.isActive({textAlign:"right"})}),onClick:e[16]||(e[16]=f=>t.editor.chain().focus().setTextAlign("right").run())},null,8,["class"]),[[p,{content:"Alinear a la derecha",placement:"bottom"}]]),i.withDirectives(i.createVNode(c,{color:"primary",size:"sm",icon:"align-justify",class:i.normalizeClass({active:t.editor.isActive({textAlign:"justify"})}),onClick:e[17]||(e[17]=f=>t.editor.chain().focus().setTextAlign("justify").run())},null,8,["class"]),[[p,{content:"Justificar",placement:"bottom"}]]),vR,t.history?i.withDirectives((i.openBlock(),i.createBlock(c,{key:7,color:"primary",size:"sm",icon:"undo",onClick:t.editor.commands.undo},null,8,["onClick"])),[[p,{content:"Deshacer",placement:"bottom"}]]):i.createCommentVNode("",!0),t.history?i.withDirectives((i.openBlock(),i.createBlock(c,{key:8,color:"primary",size:"sm",icon:"redo",onClick:t.editor.commands.redo},null,8,["onClick"])),[[p,{content:"Rehacer",placement:"bottom"}]]):i.createCommentVNode("",!0),i.withDirectives(i.createVNode(c,{color:"primary",size:"sm",icon:"code",onClick:t.toggleCode},null,8,["onClick"]),[[p,{content:"Mostrar código",placement:"bottom"}]]),t.zenmode?i.withDirectives((i.openBlock(),i.createBlock(c,{key:9,color:"primary",size:"sm",icon:"maximize",class:i.normalizeClass({active:t.fullpage}),onClick:e[18]||(e[18]=f=>t.fullpage=!t.fullpage)},null,8,["class"])),[[p,{content:"Modo zen",placement:"bottom"}]]):i.createCommentVNode("",!0)])],4)):i.createCommentVNode("",!0)],2)}const xR=de(dR,[["render",kR]]),ER=i.defineComponent({name:"KRadio",props:{modelValue:{type:[String,Number,Boolean,Object,Array,Symbol],default:!1},name:{type:String,required:!0},value:{type:[String,Number,Boolean,Object,Array,Symbol],default:""},label:{type:String,default:""},color:{type:String,control:{type:"inline-radio"},options:er,validator:t=>er.includes(t),default:"primary",description:"Color del botón"}},emits:["update:modelValue"],setup(t,e){const n=_t(),r=l=>!!e.slots[l],o=i.computed(()=>{let l=[];return t.color==="white"||t.color==="black"?l.push("text-black focus:ring-black dark:focus:ring-white dark:text-black k-checkbox-inverse"):t.color==="gray"?l.push("text-gray-300 focus:ring-gray-300 dark:focus:ring-gray-300"):t.color==="primary"?l.push("text-primary focus:ring-primary dark:focus:ring-primary"):t.color==="secondary"?l.push("text-secondary focus:ring-secondary dark:focus:ring-secondary"):t.color==="success"?l.push("text-success focus:ring-success dark:focus:ring-success"):t.color==="warning"?l.push("text-warning focus:ring-warning dark:focus:ring-warning"):t.color==="danger"?l.push("text-danger focus:ring-danger dark:focus:ring-danger"):t.color==="info"&&l.push("text-info focus:ring-info dark:focus:ring-info"),l}),a=l=>{s.value=l.target.value},s=i.computed({get(){return t.modelValue},set(l){e.emit("update:modelValue",l)}});return{model:s,hasSlot:r,inputId:n,classes:o,change:a}}}),xY="",CR={class:"flex items-center"},SR=["id","value","name","checked"],_R=["for"];function TR(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",CR,[i.createElementVNode("input",{id:t.inputId,type:"radio",value:t.value,name:t.name,class:i.normalizeClass(["w-4 h-4 bg-gray-100 border-gray-300 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600",t.classes]),checked:t.model===t.value,onChange:e[0]||(e[0]=(...s)=>t.change&&t.change(...s))},null,42,SR),t.label||t.hasSlot("default")?(i.openBlock(),i.createElementBlock("label",{key:0,for:t.inputId,class:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300 select-none"},[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0},void 0,!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.label),1)],64))],8,_R)):i.createCommentVNode("",!0)])}const NR=de(ER,[["render",TR],["__scopeId","data-v-5c7a3fb7"]]),t3={colors:["#1FBC9C","#1CA085","#2ECC70","#27AF60","#3398DB","#2980B9","#A463BF","#8E43AD","#3D556E","#222F3D","#F2C511","#F39C19","#E84B3C","#C0382B","#DDE6E8","#BDC3C8"],rowLength:4},n3={colors:["#CC0001","#E36101","#FFCC00","#009900","#0066CB","#000000","#FFFFFF"],showBorder:!0},r3={colors:[["#000000","#434343","#666666","#999999","#b7b7b7","#cccccc","#d9d9d9","#efefef","#f3f3f3","#ffffff"],["#980000","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#4a86e8","#0000ff","#9900ff","#ff00ff"],["#e6b8af","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#c9daf8","#cfe2f3","#d9d2e9","#ead1dc"],["#dd7e6b","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#a4c2f4","#9fc5e8","#b4a7d6","#d5a6bd"],["#cc4125","#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6d9eeb","#6fa8dc","#8e7cc3","#c27ba0"],["#a61c00","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3c78d8","#3d85c6","#674ea7","#a64d79"],["#85200c","#990000","#b45f06","#bf9000","#38761d","#134f5c","#1155cc","#0b5394","#351c75","#741b47"],["#5b0f00","#660000","#783f04","#7f6000","#274e13","#0c343d","#1c4587","#073763","#20124d","#4c1130"]],borderRadius:"0",rowLength:10,swatchSize:24,spacingSize:0},OR=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},$R={},AR={class:"vue-swatches__check__wrapper vue-swatches--has-children-centered"},MR=i.createElementVNode("div",{class:"vue-swatches__check__circle vue-swatches--has-children-centered"},[i.createElementVNode("svg",{version:"1.1",role:"presentation",width:"12",height:"12",viewBox:"0 0 1792 1792",class:"check"},[i.createElementVNode("path",{class:"vue-swatches__check__path",d:"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z"})])],-1),DR=[MR];function BR(t,e){return i.openBlock(),i.createElementBlock("div",AR,DR)}const PR=OR($R,[["render",BR]]),VR=["aria-label"],LR={key:0,class:"vue-swatches__diagonal__wrapper vue-swatches--has-children-centered"},IR=i.createElementVNode("div",{class:"vue-swatches__diagonal"},null,-1),RR=[IR],o3=i.defineComponent({__name:"VSwatch",props:{borderRadius:null,isLast:{type:Boolean,default:!1},rowLengthSetted:{type:Boolean,default:!1},disabled:{type:Boolean},inline:{type:Boolean},selected:{type:Boolean,default:!1},showCheckbox:{type:Boolean},showBorder:{type:Boolean},showLabels:{type:Boolean},spacingSize:{default:42},swatchColor:{default:""},swatchLabel:null,swatchAlt:null,swatchSize:null,swatchStyle:null},setup(t){const e=t,n=i.computed(()=>({bottom:`-${8+Math.floor(e.spacingSize/5)*3}px`})),r=i.computed(()=>{const l={width:`${e.swatchSize}px`,height:`${e.swatchSize}px`,borderRadius:e.borderRadius,backgroundColor:e.swatchColor!==""?e.swatchColor:"#FFFFFF",cursor:o.value};return(!e.inline||!e.isLast)&&(l.marginRight=`${e.spacingSize}px`),e.inline&&!e.rowLengthSetted?l:{...l,marginBottom:`${e.spacingSize}px`}}),o=i.computed(()=>e.disabled?"not-allowed":"pointer"),a=i.computed(()=>[n.value]),s=i.computed(()=>[r.value,e.swatchStyle]);return(l,u)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vue-swatches__swatch",{"vue-swatches__swatch--border":t.showBorder,"vue-swatches__swatch--selected":t.selected,"vue-swatches__swatch--is-disabled":t.disabled}]),style:i.normalizeStyle(i.unref(s)),"aria-label":t.swatchAlt,role:"button",tabindex:"0",onKeyup:u[0]||(u[0]=i.withKeys(c=>l.$emit("click",t.swatchColor),["enter"])),onBlur:u[1]||(u[1]=c=>l.$emit("blur",c.relatedTarget))},[t.swatchColor===""?(i.openBlock(),i.createElementBlock("div",LR,RR)):i.createCommentVNode("",!0),i.withDirectives(i.createVNode(PR,null,null,512),[[i.vShow,t.showCheckbox&&t.selected]]),t.showLabels?(i.openBlock(),i.createElementBlock("div",{key:1,class:"vue-swatches__swatch__label",style:i.normalizeStyle(i.unref(a))},i.toDisplayString(t.swatchLabel),5)):i.createCommentVNode("",!0)],46,VR))}}),zR={class:"vue-swatches__diagonal__wrapper vue-swatches--has-children-centered"},FR=i.createElementVNode("div",{class:"vue-swatches__diagonal"},null,-1),HR=[FR],qR={class:"vue-swatches__fallback__input--wrapper"},jR=["value","type"],UR=["onClick"],i3=i.defineComponent({__name:"VSwatches",props:{backgroundColor:{default:"#ffffff"},closeOnSelect:{type:Boolean,default:!0},swatches:{default:()=>"basic"},disabled:{type:Boolean,default:!1},fallbackInputClass:{default:null},fallbackInputType:{default:()=>"text"},fallbackOkClass:{default:null},fallbackOkText:{default:"Ok"},inline:{type:Boolean,default:!1},shapes:{default:"squares"},popoverX:{default:"right"},popoverY:{default:"bottom"},rowLength:{default:null},showBorder:{type:[Boolean,null],default:null},showFallback:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!0},showLabels:{type:Boolean,default:!1},spacingSize:{default:null},swatchSize:{default:null},swatchStyle:null,triggerStyle:null,wrapperStyle:null,modelValue:{default:""}},emits:["close","open","update:modelValue"],setup(t,{emit:e}){const n=t,r=i.ref(null),o=i.ref(null),a=i.ref(null),s="10px",l=4,u=5,c=42,d=!1,p=(Z,Ne,$e)=>typeof Z!="string"?null:Z==="text-basic"?n3[Ne]===void 0?null:n3[Ne]:Z==="text-advanced"?r3[Ne]===void 0?null:r3[Ne]:Z==="basic"||$e?t3[Ne]===void 0?null:t3[Ne]:null,f=i.ref({}),h=i.ref(!1),m=i.ref(n.modelValue),g=i.ref(!1);i.onMounted(()=>{h.value=!0});const b=i.computed(()=>!!(T.value&&T.value.length&&T.value[0]instanceof Array)),v=i.computed(()=>n.inline?!1:g.value),x=i.computed(()=>F("",n.modelValue)),N=i.computed(()=>p(n.swatches,"borderRadius")),y=i.computed(()=>p(n.swatches,"rowLength")),M=i.computed(()=>p(n.swatches,"showBorder")),E=i.computed(()=>p(n.swatches,"swatchSize")),C=i.computed(()=>p(n.swatches,"spacingSize")),T=i.computed(()=>n.swatches instanceof Array?n.swatches:typeof n.swatches=="string"?p(n.swatches,"colors",!0):[]),B=i.computed(()=>N.value!==null?N.value:S.value),L=i.computed(()=>n.rowLength!==null?Number(n.rowLength):y.value!==null?y.value:T.value.length<l&&!b.value?T.value.length:l),k=i.computed(()=>n.swatchSize!==null?Number(n.swatchSize):E.value!==null?E.value:c),$=i.computed(()=>n.spacingSize!==null?n.spacingSize:C.value!==null?C.value:Math.round(k.value*.25)),D=i.computed(()=>n.showBorder!==null?n.showBorder:M.value!==null?M.value:d),V=i.computed(()=>!n.inline),S=i.computed(()=>n.shapes==="squares"?`${Math.round(k.value*.25)}px`:n.shapes==="circles"?"50%":""),O=i.computed(()=>L.value*(k.value+$.value)),w=i.computed(()=>({width:"42px",height:"42px",backgroundColor:n.modelValue?n.modelValue:"#ffffff",borderRadius:n.shapes==="circles"?"50%":s})),A=i.computed(()=>[w.value,n.triggerStyle]),z=i.computed(()=>{const Z=[{backgroundColor:n.backgroundColor},f.value];return n.inline?Z:[...Z,{padding:"5px",marginBottom:"5px"}]}),P=i.computed(()=>n.inline?{}:{paddingTop:`${$.value}px`,paddingLeft:`${$.value}px`,width:`${O.value}px`}),q=i.computed(()=>[P.value,n.wrapperStyle]),W=i.computed(()=>{const Z={marginLeft:`${$.value}px`,paddingBottom:`${$.value}px`};return n.inline?Z:{...Z,width:`${O.value-$.value}px`}}),ee=i.computed(()=>[W.value]);i.watch(()=>n.modelValue,Z=>{m.value=Z});function F(Z,Ne){return!Z&&Z!==""||!Ne&&Ne!==""?!1:Z.toUpperCase()===Ne.toUpperCase()}function R(){var Z;g.value=!1,(Z=r.value)==null||Z.blur(),e("close",m.value)}function G(){const Z={},Ne=o.value,$e=a.value;if(!h.value||n.inline||!Ne||!window||!document)return Z;const Be=Ne.getBoundingClientRect(),ze=5,gt=(document.documentElement.clientWidth||window.innerWidth)-5,it=5,yt=(document.documentElement.clientHeight||window.innerHeight)-5;$e.style.visibility="hidden",$e.style.display="block";const St=$e.getBoundingClientRect();return $e.style.display="none",$e.style.visibility="visible",n.popoverY==="top"?Be.top-St.height<it?(Z.top=`${Be.height+u}px`,Z.bottom="auto"):(Z.bottom=`${Be.height+u}px`,Z.top="auto"):n.popoverY==="bottom"&&(Be.bottom+St.height>yt?(Z.bottom=`${Be.height+u}px`,Z.top="auto"):(Z.top=`${Be.height+u}px`,Z.bottom="auto")),n.popoverX==="left"?Be.right-St.width<ze?(Z.left=0,Z.right="auto"):(Z.right=0,Z.left="auto"):n.popoverX==="right"&&(Be.left+St.width>gt?(Z.right=0,Z.left="auto"):(Z.left=0,Z.right="auto")),Z}function j(Z){if(typeof Z=="string")return D.value;if(typeof Z=="object")return Z.showBorder!==void 0?Z.showBorder:D.value}function K(Z){if(typeof Z=="string")return Z;if(typeof Z=="object")return Z.color}function Y(Z){if(typeof Z=="string")return n.disabled;if(typeof Z=="object")return Z.disabled!==void 0?Z.disabled:n.disabled}function X(Z){if(typeof Z=="string")return Z;if(typeof Z=="object")return Z.label||Z.color}function ue(Z){if(typeof Z=="string")return Z;if(typeof Z=="object")return Z.alt||X(Z)}function ie(Z){var Ne;!v.value||Z!==null&&((Ne=r.value)!=null&&Ne.contains(Z))||(g.value=!1,e("close",m.value))}function te(){R()}function se(){var Z;v.value||n.inline||n.disabled||(f.value=G(),g.value=!0,(Z=r.value)==null||Z.focus(),e("open"))}function ce(){v.value?R():se()}function je(Z,{fromFallbackInput:Ne}={}){if(Y(Z))return;const $e=K(Z);m.value=$e,e("update:modelValue",$e),n.closeOnSelect&&!n.inline&&!Ne&&R()}return(Z,Ne)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-swatches",tabindex:"-1",ref_key:"main",ref:r,onBlur:Ne[3]||(Ne[3]=$e=>ie($e.relatedTarget))},[t.inline?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"triggerWrapper",ref:o,class:"vue-swatches__trigger__wrapper",onClick:ce},[i.renderSlot(Z.$slots,"trigger",{},()=>[i.createElementVNode("div",{class:i.normalizeClass(["vue-swatches__trigger",{"vue-swatches--is-empty":!t.modelValue,"vue-swatches--is-disabled":t.disabled}]),style:i.normalizeStyle(i.unref(A))},[i.withDirectives(i.createElementVNode("div",zR,HR,512),[[i.vShow,i.unref(x)]])],6)])],512)),i.createVNode(i.Transition,{name:"vue-swatches-show-hide"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref_key:"containerWrapper",ref:a,class:i.normalizeClass(["vue-swatches__container",{"vue-swatches--inline":t.inline}]),style:i.normalizeStyle(i.unref(z))},[i.createElementVNode("div",{class:"vue-swatches__wrapper",style:i.normalizeStyle(i.unref(q))},[i.unref(b)?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(i.unref(T),($e,Be)=>(i.openBlock(),i.createElementBlock("div",{key:Be,class:"vue-swatches__row"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList($e,(ze,gt)=>(i.openBlock(),i.createBlock(o3,{key:gt,"is-last":Be===i.unref(T).length-1&&gt===$e.length,"row-length-setted":t.rowLength!==null||i.unref(y)!==null,"border-radius":i.unref(B),disabled:Y(ze),inline:t.inline,selected:F(K(ze),t.modelValue),"swatch-size":i.unref(k),"spacing-size":i.unref($),"show-border":j(ze),"show-checkbox":t.showCheckbox,"show-labels":t.showLabels,"swatch-color":K(ze),"swatch-label":X(ze),"swatch-alt":ue(ze),"swatch-style":t.swatchStyle,onBlur:Ne[0]||(Ne[0]=it=>ie(it)),onClick:it=>je(ze)},null,8,["is-last","row-length-setted","border-radius","disabled","inline","selected","swatch-size","spacing-size","show-border","show-checkbox","show-labels","swatch-color","swatch-label","swatch-alt","swatch-style","onClick"]))),128))]))),128)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(i.unref(T),($e,Be)=>(i.openBlock(),i.createBlock(o3,{key:Be,"is-last":Be===i.unref(T).length-1,"row-length-setted":t.rowLength!==null||i.unref(y)!==null,"border-radius":i.unref(B),disabled:Y($e),inline:t.inline,selected:F(K($e),t.modelValue),"swatch-size":i.unref(k),"spacing-size":i.unref($),"show-border":j($e),"show-checkbox":t.showCheckbox,"show-labels":t.showLabels,"swatch-color":K($e),"swatch-label":X($e),"swatch-alt":ue($e),"swatch-style":t.swatchStyle,onBlur:Ne[1]||(Ne[1]=ze=>ie(ze)),onClick:ze=>je($e)},null,8,["is-last","row-length-setted","border-radius","disabled","inline","selected","swatch-size","spacing-size","show-border","show-checkbox","show-labels","swatch-color","swatch-label","swatch-alt","swatch-style","onClick"]))),128))],4),t.showFallback?(i.openBlock(),i.createElementBlock("div",{key:0,class:"vue-swatches__fallback__wrapper",style:i.normalizeStyle(i.unref(ee))},[i.createElementVNode("span",qR,[i.createElementVNode("input",{ref:"fallbackInput",class:i.normalizeClass(["vue-swatches__fallback__input",t.fallbackInputClass]),value:m.value,type:t.fallbackInputType,onInput:Ne[2]||(Ne[2]=$e=>je($e.target.value,{fromFallbackInput:!0}))},null,42,jR)]),i.unref(V)?(i.openBlock(),i.createElementBlock("button",{key:0,class:i.normalizeClass(["vue-swatches__fallback__button",t.fallbackOkClass]),onClick:i.withModifiers(te,["prevent"])},i.toDisplayString(t.fallbackOkText),11,UR)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0)],6),[[i.vShow,t.inline||i.unref(v)]])]),_:1})],544))}}),EY="",WR=i.defineComponent({name:"KColor",components:{VSwatches:i3},props:{modelValue:{type:String,default:""},square:{type:Boolean,default:!0,description:"Define un estilo cuadrado"},circle:{type:Boolean,default:!1,description:"Define un estilo circular"},options:{type:Array,default:()=>[]},closeOnSelect:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},fallback:{type:String,default:"color"},rowLength:{type:Number,default:4},size:{type:String,default:"md",options:["xs","sm","md","lg"]}},emits:["update:modelValue"],setup(t,e){const n=i.computed({get(){return t.modelValue},set(s){e.emit("update:modelValue",s)}}),r=i.computed(()=>t.square?"squares":t.circle?"circles":"squares"),o=i.computed(()=>{switch(t.size){case"xs":return"2.25rem";case"sm":return"2.5rem";case"md":return"3rem";case"lg":return"3.5rem";default:return"3rem"}}),a=i.computed(()=>t.disabled?"not-allowed":t.readonly?"initial":"pointer");return{model:n,shape:r,triggerSize:o,cursor:a}}}),CY="",KR={class:"k-color"};function YR(t,e,n,r,o,a){const s=i.resolveComponent("v-swatches");return i.openBlock(),i.createElementBlock("div",KR,[i.createVNode(s,{modelValue:t.model,"onUpdate:modelValue":e[0]||(e[0]=l=>t.model=l),shape:t.shape,swatches:t.options.length>0?t.options:void 0,"close-on-select":t.closeOnSelect,disabled:t.disabled||t.readonly,inline:t.inline,"fallback-input-type":t.fallback,"row-length":t.rowLength,"show-fallback":t.fallback!=="none","trigger-style":{width:t.triggerSize,height:t.triggerSize,cursor:t.cursor}},{trigger:i.withCtx(()=>[i.renderSlot(t.$slots,"default",i.normalizeProps(i.guardReactiveProps({model:t.model})))]),_:3},8,["modelValue","shape","swatches","close-on-select","disabled","inline","fallback-input-type","row-length","show-fallback","trigger-style"])])}const GR=de(WR,[["render",YR]]),JR=i.defineComponent({name:"KInputColor",components:{VSwatches:i3},props:{id:{type:String,default:""},modelValue:{type:String,default:""},options:{type:Array,default:()=>[]},closeOnSelect:{type:Boolean,default:!0},autofocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},fallback:{type:String,default:"color"},rowLength:{type:Number,default:4},size:{type:String,default:"md",options:["xs","sm","md","lg"]},placeholder:{type:String,default:""},width:{type:Number,default:0,description:"Ancho del input"},status:{type:String,default:"",options:["warning","success","danger"],description:"Color de estado del input"},float:{type:Boolean,default:!1,description:"Indica si el input tiene estilo flotante"},fieldset:{type:Boolean,default:!1,description:"Indica si el input tiene estilo fieldset"},label:{type:String,required:!1,default:"",description:"Etiqueta de definición"},errors:{type:Array,required:!1,default:()=>[],description:"Errores de validación"}},emits:["update:modelValue"],setup(t,e){const n=t.id||_t(),r=p=>!!e.slots[p],o=i.computed({get(){return t.modelValue},set(p){e.emit("update:modelValue",p)}}),a=i.computed(()=>t.disabled?"not-allowed":t.readonly?"initial":"pointer"),s=i.computed(()=>{const p={};return t.width>0&&(p.width=t.width+"px"),p}),l=i.computed(()=>t.label||r("default")),u=i.computed(()=>{var p,f;return t.float?t.placeholder||t.label||((f=(p=e.slots).default)==null?void 0:f.call(p).toString()):t.placeholder}),c=i.computed(()=>{const p=["k-input-text",`k-input-text-${t.size}`];return t.float?p.push("k-input-text-floating"):t.fieldset&&p.push("k-input-text-fieldset"),t.errors.length>0?p.push("k-input-text-danger"):t.status&&p.push(`k-input-text-${t.status}`),p}),d=i.computed(()=>(t.errors.length>0?t.errors[0].$message:"").toString());return{model:o,cursor:a,uuid:n,style:s,hasLabel:l,placeholderText:u,classes:c,firstError:d,hasSlot:r}}}),SY="",XR=["for"],QR={key:2,class:"font-bold text-danger ml-1"},ZR=["id","placeholder","required","value","autofocus","disabled"],ez=["for"],tz={key:2,class:"font-bold text-danger ml-1"};function nz(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-tooltip"),u=i.resolveComponent("v-swatches");return i.openBlock(),i.createBlock(u,{modelValue:t.model,"onUpdate:modelValue":e[0]||(e[0]=c=>t.model=c),class:"k-input-color",swatches:t.options.length>0?t.options:void 0,"close-on-select":t.closeOnSelect,disabled:t.disabled||t.readonly,"fallback-input-type":t.fallback,"row-length":t.rowLength,"show-fallback":t.fallback!=="none","trigger-style":{cursor:t.cursor}},{trigger:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass([t.classes])},[t.hasLabel?(i.openBlock(),i.createElementBlock("label",{key:0,for:t.uuid},[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.label),1)],64)),t.required?(i.openBlock(),i.createElementBlock("span",QR," * ")):i.createCommentVNode("",!0),t.firstError?(i.openBlock(),i.createBlock(l,{key:3,content:t.firstError},{default:i.withCtx(()=>[i.createVNode(s,{icon:"triangle-exclamation",class:"ml-2"})]),_:1},8,["content"])):i.createCommentVNode("",!0)],8,XR)):i.createCommentVNode("",!0),i.createElementVNode("input",{id:t.uuid,type:"text",placeholder:t.placeholder,required:t.required,value:t.model,style:i.normalizeStyle(t.style),autofocus:t.autofocus,disabled:t.disabled,readonly:""},null,12,ZR),t.hasLabel&&t.float?(i.openBlock(),i.createElementBlock("label",{key:1,for:t.uuid},[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.label||t.placeholder),1)],64)),t.required?(i.openBlock(),i.createElementBlock("span",tz,"*")):i.createCommentVNode("",!0),t.firstError?(i.openBlock(),i.createBlock(l,{key:3,hover:"",content:t.firstError},{default:i.withCtx(()=>[i.createVNode(s,{icon:"triangle-exclamation",class:"ml-2"})]),_:1},8,["content"])):i.createCommentVNode("",!0)],8,ez)):i.createCommentVNode("",!0)],2)]),_:3},8,["modelValue","swatches","close-on-select","disabled","fallback-input-type","row-length","show-fallback","trigger-style"])}const rz=de(JR,[["render",nz]]),oz=["accept","multiple","disabled"],iz=i.defineComponent({__name:"k-file",props:{accept:{type:String,default:"*"},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["upload"],setup(t,{emit:e}){const n=i.ref(),r=()=>{n.value.click()},o=a=>{const s=a.target.files;s.length&&(e("upload",[...s]),a.target.value=null)};return(a,s)=>(i.openBlock(),i.createElementBlock("div",{onClick:r},[i.renderSlot(a.$slots,"default"),i.createElementVNode("input",{ref_key:"fileInput",ref:n,type:"file",class:"hidden",accept:t.accept,multiple:t.multiple,disabled:t.disabled,onChange:o},null,40,oz)]))}}),az=i.defineComponent({name:"KAvatar",autoload:!0,props:{name:{type:String,default:"???",required:!0,description:"Nombre del avatar"},size:{type:Number,default:120,description:"Tamaño del avatar",control:{type:"range",min:40,max:200}},square:{type:Boolean,default:!0,description:"Define un estilo cuadrado"},circle:{type:Boolean,default:!1,description:"Define un estilo circular"},bgColor:{default:"",type:String,description:"Color de fondo del avatar",control:{type:"color"}},tooltip:{type:Boolean,default:!0,description:"Define si se muestra el tooltip"},tag:{type:String,default:"span",description:"Define el tag del componente"},type:{type:String,default:"auto",description:"Define el tipo de avatar",options:["auto","adventurer-neutral","avataaars-neutral","big-ears-neutral","big-smile","bottts-neutral","croodles","croodles-neutral","initials","lorelei","lorelei-neutral","micah","miniavs","notionists","notionists-neutral","open-peeps","thumbs"],control:{type:"select"}}},setup(t){const e=Fe(),n=i.computed(()=>t.circle?"circle":"square"),r=i.computed(()=>{let o=t.type;return t.type==="auto"&&(o=e.get("avatarType")),`https://avatar.gestios.es/6.x/${o}/svg?seed=${t.name}`});return{geo:n,src:r}}}),sz=["src","width","height"];function lz(t,e,n,r,o,a){const s=i.resolveDirective("tooltip");return i.withDirectives((i.openBlock(),i.createElementBlock("img",{src:t.src,width:t.size,height:t.size,class:i.normalizeClass({"rounded-xl overflow-hidden":t.geo==="square","rounded-full overflow-hidden":t.geo==="circle"}),style:i.normalizeStyle({backgroundColor:t.bgColor||void 0})},null,14,sz)),[[s,{content:t.tooltip?t.name:void 0,placement:"top"}]])}const uz=de(az,[["render",lz]]),a3=["gray","primary","secondary","success","warning","danger","info"],cz={id:{type:String,default:()=>_t(),description:"ID del badge"},size:{type:String,control:{type:"inline-radio"},options:["xs","sm","md","lg"],validator:t=>["xs","sm","md","lg"].includes(t),default:"md",description:"Tamaño del badge"},color:{type:String,control:{type:"select"},options:a3,validator:t=>a3.includes(t),default:"gray",description:"Color del badge"},neon:{type:Boolean,default:!1,description:"Establece el diseño `neón` del botón"}},dz=t=>{const e=["text-center font-semibold rounded-lg transition-all h-max whitespace-nowrap inline-flex items-center"],n=t.neon,r=t.color,o=t.size;return o==="xs"?e.push("py-1 px-3 text-xs"):o==="sm"?e.push("py-1 px-4 text-sm"):o==="md"?e.push("py-1.5 px-4 text-sm"):o==="lg"&&e.push("py-2 px-5 text-base"),n?e.push("border bg-opacity-20 border-opacity-0 dark:bg-opacity-10 dark:border-opacity-0"):e.push("border"),r==="gray"?(e.push("border-gray-300 bg-gray-300"),e.push(n?"text-gray-300 dark:text-white":"text-gray-700")):r==="primary"?(e.push("border-primary bg-primary"),e.push(n?"text-primary":"text-white")):r==="secondary"?(e.push("border-secondary  bg-secondary"),e.push(n?"text-secondary":"text-white")):r==="success"?(e.push("border-success  bg-success"),e.push(n?"text-success":"text-white")):r==="warning"?(e.push("border-warning  bg-warning"),e.push(n?"text-warning":"text-white")):r==="danger"?(e.push("border-danger  bg-danger"),e.push(n?"text-danger":"text-white")):r==="info"&&(e.push("border-info  bg-info"),e.push(n?"text-info":"text-white")),e},fz=i.defineComponent({name:"KBadge",autoload:!0,props:cz,setup(t){return{badgeClasses:i.computed(()=>dz(t))}}}),pz=["id"];function hz(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("span",{id:t.id,class:i.normalizeClass(t.badgeClasses)},[i.renderSlot(t.$slots,"default")],10,pz)}const s3=de(fz,[["render",hz]]),l3=["white","black","gray","primary","secondary","success","warning","danger","info"],mz={value:{type:[Number,String],default:0,required:!0,description:"Valor"},square:{type:Boolean,default:!0,description:"Define un estilo cuadrado"},circle:{type:Boolean,default:!1,description:"Define un estilo circular"},offsetX:{type:Number,default:0,description:"Desplazamiento horizontal"},offsetY:{type:Number,default:0,description:"Desplazamiento vertical"},size:{type:String,options:["xs","sm","md","lg"],validator:t=>["xs","sm","md","lg"].includes(t),default:"md",description:"Tamaño del componente"},color:{type:String,options:l3,validator:t=>l3.includes(t),default:"danger",description:"Color"},neon:{type:Boolean,default:!1,description:"Establece el diseño `neón` del botón"},tag:{type:String,default:"span"}},gz=(t,e)=>{const n=c=>!!e[c],r=["text-center font-medium transition-all flex items-center justify-center whitespace-nowrap"],o=t.neon,a=t.color,s=t.size,l=t.circle,u=t.square;return s==="xs"?(r.push("h-5 w-5 text-xxxs"),l?r.push("rounded-full"):u&&r.push("rounded-md"),n("default")&&r.push("-translate-y-3.5 -translate-x-2.5")):s==="sm"?(r.push("h-6 w-6 text-xxs"),l?r.push("rounded-full"):u&&r.push("rounded-md"),n("default")&&r.push("-translate-y-4 -translate-x-3")):s==="md"?(r.push("h-7 w-7 text-xs"),l?r.push("rounded-full"):u&&r.push("rounded-lg"),n("default")&&r.push("-translate-y-5 -translate-x-3.5")):s==="lg"&&(r.push("h-8 w-8 text-sm"),l?r.push("rounded-full"):u&&r.push("rounded-lg"),n("default")&&r.push("-translate-y-6 -translate-x-4")),o?r.push("border bg-opacity-20 border-opacity-0 dark:bg-opacity-10 dark:border-opacity-0"):r.push("border"),a==="black"||a==="white"?(r.push("border-black bg-black dark:bg-white dark:border-white"),r.push(o?"text-black dark:text-white":"text-white dark:text-black")):a==="gray"?(r.push("border-gray-300 bg-gray-300"),r.push(o?"text-gray-300":"text-gray-700")):a==="primary"?(r.push("border-primary bg-primary"),r.push(o?"text-primary":"text-white")):a==="secondary"?(r.push("border-secondary  bg-secondary"),r.push(o?"text-secondary":"text-white")):a==="success"?(r.push("border-success  bg-success"),r.push(o?"text-success":"text-white")):a==="warning"?(r.push("border-warning  bg-warning"),r.push(o?"text-warning":"text-white")):a==="danger"?(r.push("border-danger  bg-danger"),r.push(o?"text-danger":"text-white")):a==="info"&&(r.push("border-info  bg-info"),r.push(o?"text-info":"text-white")),n("default")&&r.push("absolute top-0 left-full"),r},bz=(t,e)=>{const n=o=>!!e[o],r={};if(n("default")){const o=t.offsetX,a=t.offsetY;o!==0&&(r["margin-left"]=`${o}px`),a!==0&&(r["margin-top"]=`${a}px`)}return r},yz=i.defineComponent({name:"KCount",autoload:!0,props:mz,setup(t,{slots:e}){const n=s=>!!e[s],r=i.computed(()=>gz(t,e)),o=i.computed(()=>bz(t,e)),a=i.computed(()=>t.value>99?"+99":t.value);return{hasSlot:n,badgeClasses:r,badgeStyles:o,text:a}}}),_Y="";function wz(t,e,n,r,o,a){return t.hasSlot("default")?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tag),{key:0,class:"relative -translate-y-3.5 h-7 text-xs",title:t.value.toString()},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0),i.createElementVNode("span",{class:i.normalizeClass(t.badgeClasses),style:i.normalizeStyle(t.badgeStyles)},i.toDisplayString(t.text),7)]),_:3},8,["title"])):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tag),{key:1,class:i.normalizeClass(t.badgeClasses),style:i.normalizeStyle(t.badgeStyles),title:t.value.toString()},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.text),1)]),_:1},8,["class","style","title"]))}const vz=de(yz,[["render",wz],["__scopeId","data-v-9292bef1"]]);/*! medium-zoom 1.0.8 | MIT License | https://github.com/francoischalifour/medium-zoom */var ii=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bc=function(e){return e.tagName==="IMG"},kz=function(e){return NodeList.prototype.isPrototypeOf(e)},yc=function(e){return e&&e.nodeType===1},u3=function(e){var n=e.currentSrc||e.src;return n.substr(-4).toLowerCase()===".svg"},c3=function(e){try{return Array.isArray(e)?e.filter(bc):kz(e)?[].slice.call(e).filter(bc):yc(e)?[e].filter(bc):typeof e=="string"?[].slice.call(document.querySelectorAll(e)).filter(bc):[]}catch{throw new TypeError(`The provided selector is invalid.
Expects a CSS selector, a Node element, a NodeList or an array.
See: https://github.com/francoischalifour/medium-zoom`)}},xz=function(e){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=e,n},Ez=function(e){var n=e.getBoundingClientRect(),r=n.top,o=n.left,a=n.width,s=n.height,l=e.cloneNode(),u=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,c=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return l.removeAttribute("id"),l.style.position="absolute",l.style.top=r+u+"px",l.style.left=o+c+"px",l.style.width=a+"px",l.style.height=s+"px",l.style.transform="",l},fa=function(e,n){var r=ii({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(e,r);var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,r.bubbles,r.cancelable,r.detail),o},Cz=function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function($){function D(){}$(D,D)},o=function($){var D=$.target;if(D===B){m();return}N.indexOf(D)!==-1&&g({target:D})},a=function(){if(!(M||!T.original)){var $=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(E-$)>C.scrollOffset&&setTimeout(m,150)}},s=function($){var D=$.key||$.keyCode;(D==="Escape"||D==="Esc"||D===27)&&m()},l=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=$;if($.background&&(B.style.background=$.background),$.container&&$.container instanceof Object&&(D.container=ii({},C.container,$.container)),$.template){var V=yc($.template)?$.template:document.querySelector($.template);D.template=V}return C=ii({},C,D),N.forEach(function(S){S.dispatchEvent(fa("medium-zoom:update",{detail:{zoom:L}}))}),L},u=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t(ii({},C,$))},c=function(){for(var $=arguments.length,D=Array($),V=0;V<$;V++)D[V]=arguments[V];var S=D.reduce(function(O,w){return[].concat(O,c3(w))},[]);return S.filter(function(O){return N.indexOf(O)===-1}).forEach(function(O){N.push(O),O.classList.add("medium-zoom-image")}),y.forEach(function(O){var w=O.type,A=O.listener,z=O.options;S.forEach(function(P){P.addEventListener(w,A,z)})}),L},d=function(){for(var $=arguments.length,D=Array($),V=0;V<$;V++)D[V]=arguments[V];T.zoomed&&m();var S=D.length>0?D.reduce(function(O,w){return[].concat(O,c3(w))},[]):N;return S.forEach(function(O){O.classList.remove("medium-zoom-image"),O.dispatchEvent(fa("medium-zoom:detach",{detail:{zoom:L}}))}),N=N.filter(function(O){return S.indexOf(O)===-1}),L},p=function($,D){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return N.forEach(function(S){S.addEventListener("medium-zoom:"+$,D,V)}),y.push({type:"medium-zoom:"+$,listener:D,options:V}),L},f=function($,D){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return N.forEach(function(S){S.removeEventListener("medium-zoom:"+$,D,V)}),y=y.filter(function(S){return!(S.type==="medium-zoom:"+$&&S.listener.toString()===D.toString())}),L},h=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=$.target,V=function(){var O={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},w=void 0,A=void 0;if(C.container)if(C.container instanceof Object)O=ii({},O,C.container),w=O.width-O.left-O.right-C.margin*2,A=O.height-O.top-O.bottom-C.margin*2;else{var z=yc(C.container)?C.container:document.querySelector(C.container),P=z.getBoundingClientRect(),q=P.width,W=P.height,ee=P.left,F=P.top;O=ii({},O,{width:q,height:W,left:ee,top:F})}w=w||O.width-C.margin*2,A=A||O.height-C.margin*2;var R=T.zoomedHd||T.original,G=u3(R)?w:R.naturalWidth||w,j=u3(R)?A:R.naturalHeight||A,K=R.getBoundingClientRect(),Y=K.top,X=K.left,ue=K.width,ie=K.height,te=Math.min(Math.max(ue,G),w)/ue,se=Math.min(Math.max(ie,j),A)/ie,ce=Math.min(te,se),je=(-X+(w-ue)/2+C.margin+O.left)/ce,Z=(-Y+(A-ie)/2+C.margin+O.top)/ce,Ne="scale("+ce+") translate3d("+je+"px, "+Z+"px, 0)";T.zoomed.style.transform=Ne,T.zoomedHd&&(T.zoomedHd.style.transform=Ne)};return new r(function(S){if(D&&N.indexOf(D)===-1){S(L);return}var O=function q(){M=!1,T.zoomed.removeEventListener("transitionend",q),T.original.dispatchEvent(fa("medium-zoom:opened",{detail:{zoom:L}})),S(L)};if(T.zoomed){S(L);return}if(D)T.original=D;else if(N.length>0){var w=N;T.original=w[0]}else{S(L);return}if(T.original.dispatchEvent(fa("medium-zoom:open",{detail:{zoom:L}})),E=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,M=!0,T.zoomed=Ez(T.original),document.body.appendChild(B),C.template){var A=yc(C.template)?C.template:document.querySelector(C.template);T.template=document.createElement("div"),T.template.appendChild(A.content.cloneNode(!0)),document.body.appendChild(T.template)}if(T.original.parentElement&&T.original.parentElement.tagName==="PICTURE"&&T.original.currentSrc&&(T.zoomed.src=T.original.currentSrc),document.body.appendChild(T.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),T.original.classList.add("medium-zoom-image--hidden"),T.zoomed.classList.add("medium-zoom-image--opened"),T.zoomed.addEventListener("click",m),T.zoomed.addEventListener("transitionend",O),T.original.getAttribute("data-zoom-src")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("srcset"),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.removeAttribute("loading"),T.zoomedHd.src=T.zoomed.getAttribute("data-zoom-src"),T.zoomedHd.onerror=function(){clearInterval(z),console.warn("Unable to reach the zoom image target "+T.zoomedHd.src),T.zoomedHd=null,V()};var z=setInterval(function(){T.zoomedHd.complete&&(clearInterval(z),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",m),document.body.appendChild(T.zoomedHd),V())},10)}else if(T.original.hasAttribute("srcset")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.removeAttribute("loading");var P=T.zoomedHd.addEventListener("load",function(){T.zoomedHd.removeEventListener("load",P),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",m),document.body.appendChild(T.zoomedHd),V()})}else V()})},m=function(){return new r(function($){if(M||!T.original){$(L);return}var D=function V(){T.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(T.zoomed),T.zoomedHd&&document.body.removeChild(T.zoomedHd),document.body.removeChild(B),T.zoomed.classList.remove("medium-zoom-image--opened"),T.template&&document.body.removeChild(T.template),M=!1,T.zoomed.removeEventListener("transitionend",V),T.original.dispatchEvent(fa("medium-zoom:closed",{detail:{zoom:L}})),T.original=null,T.zoomed=null,T.zoomedHd=null,T.template=null,$(L)};M=!0,document.body.classList.remove("medium-zoom--opened"),T.zoomed.style.transform="",T.zoomedHd&&(T.zoomedHd.style.transform=""),T.template&&(T.template.style.transition="opacity 150ms",T.template.style.opacity=0),T.original.dispatchEvent(fa("medium-zoom:close",{detail:{zoom:L}})),T.zoomed.addEventListener("transitionend",D)})},g=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=$.target;return T.original?m():h({target:D})},b=function(){return C},v=function(){return N},x=function(){return T.original},N=[],y=[],M=!1,E=0,C=n,T={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(e)==="[object Object]"?C=e:(e||typeof e=="string")&&c(e),C=ii({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},C);var B=xz(C.background);document.addEventListener("click",o),document.addEventListener("keyup",s),document.addEventListener("scroll",a),window.addEventListener("resize",m);var L={open:h,close:m,toggle:g,update:l,clone:u,attach:c,detach:d,on:p,off:f,getOptions:b,getImages:v,getZoomedImage:x};return L};function Sz(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}var _z=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";Sz(_z);const d3=Cz,Tz=i.defineComponent({name:"KImage",autoload:!0,props:{thumbnail:{type:String,default:"",description:"Thumbnail de la imagen"},src:{type:String,default:"",description:"Url de la imagen"},size:{type:Number,default:80,description:"Tamaño en px"},zoom:{type:Boolean,default:!0,description:"Zoom"},square:{type:Boolean,default:!0,description:"Define un estilo cuadrado"},circle:{type:Boolean,default:!1,description:"Define un estilo circular"}},setup(t){const e=i.ref(),n=i.computed(()=>t.thumbnail?t.thumbnail:t.src),r=i.computed(()=>{const o={};return o.height=`${t.size}px`,o.width=`${t.size}px`,o});return i.onMounted(()=>{if(t.zoom){const o=d3(e.value,{background:"rgba(0, 0, 0, 0.8)"});o.on("open",a=>{a.target.style.height="auto",a.target.style.width="auto"}),o.on("opened",a=>{a.target.style.height=`${t.size}px`,a.target.style.width=`${t.size}px`})}}),{img:e,style:r,thumb:n}}}),TY="",Nz=["src","data-zoom-src"];function Oz(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["k-image",{"k-image-zoom":t.zoom,"k-image-circle":t.circle}]),style:i.normalizeStyle(t.style)},[i.createElementVNode("img",{ref:"img",src:t.thumb,"data-zoom":"","data-zoom-src":t.src,style:i.normalizeStyle(t.style),class:"object-cover"},null,12,Nz)],6)}const $z=de(Tz,[["render",Oz]]),Az=i.defineComponent({name:"KLogo",autoload:!0,props:{dark:{type:Boolean,default:!1,description:"Define el modo oscuro"},light:{type:Boolean,default:!1,description:"Define el modo claro"},side:{type:Boolean,default:!1,description:"Degine el modo alargado"},height:{type:Number,default:40,description:"Altura especificada"}},setup(t){const e=Fe(),n=i.computed(()=>e.get("darkMode"));return{src:i.computed(()=>{const o=e.get("logo.dark"),a=e.get("logo.light"),s=e.get("logo.side_dark"),l=e.get("logo.side_light");return t.dark?t.side?s:o:t.light?t.side?l:a:n.value?t.side?s:o:t.side?l:a})}}}),Mz={logo:"_logo_24cy6_1"},Dz=["src"];function Bz(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("img",{src:t.src,style:i.normalizeStyle({height:`${t.height}px`}),class:i.normalizeClass(t.$style.logo)},null,14,Dz)}const Pz=de(Az,[["render",Bz],["__cssModules",{$style:Mz}]]),Vz={index:{type:String,required:!0,description:"Clave primaria de la tabla"},store:{type:String,required:!1,description:"Nombre único para almacenamiento en cache"},columns:{type:Array,required:!0,description:"Array con las columnas a mostrar"},data:{type:Array,default:()=>[],description:"Array con los datos a mostrar"},total:{type:Number,default:()=>0,description:"Numero total de registros para la paginación"},loading:{type:Boolean,default:!1,description:"Indica si se estan cargando los datos"},selected:{type:Array,required:!1,description:"Indica si se muestra la columna de checkbox y que items estan seleccionados"},header:{type:Boolean,default:!0,description:"Muestra u oculta la cabecera de la tabla"},clean:{type:Boolean,default:!1,description:"Elimina los estilos por defecto del componente"},requiredFilters:{type:Object,default:null,description:"Filtros requeridos para la consulta. No se pueden eliminar"},card:{type:[Boolean,String],default:!1,description:"Muestra los datos en forma de tarjetas"},cardTag:{type:String,default:"div"},cardClasses:{type:[String,Array],default:()=>[]},pagination:{type:String,default:"infinite"},show404:{type:Boolean,default:!0},disabledRows:{type:Array,default:()=>[]}};function Lz(t,e){const n=i.computed(()=>{const o=t.columns,a=[];return o==null||o.forEach(s=>{let l=s.width||void 0;s.slot==="_image"&&(l="5rem"),s.slot&&["header","footer","content"].includes(s.slot)&&(s.slot="");const u={title:s.title,index:s.index||"",order:s.order||!1,nowrap:s.nowrap||!0,width:l,align:s.align||"left",slot:s.slot||"",makeup:s.makeup||void 0,filter:s.filter,style:{position:"relative"},url:s.url||void 0};u.nowrap&&(u.style["white-space"]="nowrap"),u.align&&(u.style["text-align"]=u.align),u.width&&(u.style.width=u.width),s.style&&(u.style={...u.style,...s.style}),a.push(u)}),a}),r=i.computed(()=>{let o=1;return t.selected!==void 0&&o++,o+=n.value.length,o});return{cols:n,colLength:r}}function Iz(t){const e=u=>{if(t.selected){const c=t.index||"id",d=t.selected.findIndex(p=>p[c]===t.data[u][c]);d>-1?t.selected.splice(d,1):t.selected.push(t.data[u])}},n=i.computed(()=>{const u=t.index||"id";return t.data.map(c=>!!(t.selected&&t.selected.findIndex(p=>p[u]===c[u])>-1))}),r=i.computed(()=>{const u=t.index||"id";return t.data.map(c=>!!(t.disabledRows&&t.disabledRows.includes(c[u])))}),o=()=>{if(t.selected){const u=t.selected,c=t.data.filter(d=>{const p=t.index||"id";return!t.disabledRows.includes(d[p])});if(u.length>=c.length)t.selected.splice(0,t.selected.length);else{t.selected.splice(0,t.selected.length);for(let d=0;d<t.data.length;d++)r.value[d]||t.selected.push(t.data[d])}}},a=()=>{if(t.selected)for(let u=0;u<t.selected.length;u++){const c=t.selected[u];t.disabledRows.findIndex(p=>p===c[t.index||"id"])>-1&&t.selected.splice(u,1)}},s=()=>{if(t.selected){const u=t.index||"id";for(let c=0;c<t.selected.length;c++){const d=t.selected[c],p=t.data.findIndex(f=>f[u]===d[c][u]);p===-1&&t.selected.splice(p,1)}}},l=i.computed(()=>{if(t.selected){const u=t.selected,c=t.data.filter(d=>{const p=t.index||"id";return!t.disabledRows.includes(d[p])});if(u.length>=c.length)return!0}return!1});return{toggleCheck:e,isRowChecked:n,isRowDisabled:r,toggleGlobalCheck:o,populateChecks:s,isCheckedAll:l,uncheckDisabledRows:a}}function Rz(t){const e=i.ref([]);return{isRowOpen:i.computed(()=>t.data.map((o,a)=>e.value.includes(a))),toggleRow:o=>{e.value.includes(o)?e.value=e.value.filter(a=>a!==o):e.value.push(o)}}}const xe=i.reactive({page:1,order:null,filter:null,search:"",limit:20,reset:!0,strict:!0});function f3(t,e){const n=(f,h=null)=>{const m=Rr();e.store&&(h?m.order(e.store).set(f,h):m.order(e.store).delete(f)),h?xe.order?xe.order[f]=h:xe.order={[f]:h}:xe.order&&xe.order[f]&&delete xe.order[f],xe.reset=!0,xe.page=1,t.emit("fetch",u.value)},r=f=>{const h=Rr();e.store&&h.limit(e.store).set(f),xe.limit=f,xe.reset=!0,xe.page=1,t.emit("fetch",u.value)},o=(f,h)=>{const m=Rr();e.store&&(h!==null?m.filter(e.store).set(f,h):m.filter(e.store).delete(f)),h!==null?xe.filter===null?xe.filter={[f]:h}:xe.filter[f]=h:h===null&&xe.filter&&xe.filter[f]&&delete xe.filter[f],xe.reset=!0,xe.page=1,t.emit("fetch",u.value)},a=f=>{const h=Rr();e.store&&h.strict(e.store).set(f),xe.strict=f,t.emit("fetch",u.value)},s=()=>{const f=Rr();e.store&&f.filter(e.store).reset(),xe.page=1,xe.order=null,xe.filter=null,xe.reset=!0,xe.strict=!0,t.emit("fetch",u.value)},l=()=>{const f=Rr();e.store&&f.filter(e.store).reset(),xe.page=1,xe.order=null,xe.filter=null,xe.reset=!0,xe.strict=!0},u=i.computed(()=>{let f=null;if(e.requiredFilters){const h=structuredClone(e.requiredFilters);f=p(h,xe.filter,xe.strict)}else f=p(null,xe.filter,xe.strict);return{page:xe.page,limit:xe.limit,order:xe.order,filter:f,reset:xe.reset}}),c=()=>{const f=Rr();if(e.store){const h=f.get(e.store);h&&(xe.order=h.order,xe.limit=h.limit,xe.filter=h.filter,xe.strict=h.strict)}},d=f=>{let h=[];return Array.isArray(f)?f.forEach(m=>{h=h.concat(d(m))}):typeof f=="object"&&Object.keys(f).forEach(m=>{const g=f[m];g&&(m==="$and"||m==="$or"?h=h.concat(d(g)):h.push({field:m,value:g}))}),h},p=(f=null,h=null,m=!0)=>{if(!f&&!h)return null;if(f&&!h)return f;if(!f&&h)return{[m?"$and":"$or"]:[h]};if(f&&h){["$and","$or"].includes(Object.keys(f)[0])||(f={$and:[f]});const g=d(f),b=[];return Object.keys(h).forEach(v=>{g.find(N=>N.field===v)||b.push({[v]:h[v]})}),f&&b.length>0&&(f.$and?m?f.$and.push({$and:b}):f.$and.push({$or:b}):f.$or&&(m?f.$or.push({$and:b}):f.$or.push({$or:b}))),f}};return{order:n,loadStoreParams:c,limit:r,filter:o,query:u,resetFilters:s,strict:a,cleanTableFilters:l}}const p3=i.ref(!1);function zz(t,e){const{query:n}=f3(t,e),r=i.computed(()=>e.data.length<e.total),o=p=>{r.value&&(xe.page+=1,xe.reset=p,t.emit("fetch",n.value))},a=p=>{r.value&&xe.page>1&&(xe.page-=1,xe.reset=p,t.emit("fetch",n.value))},s=()=>{xe.page=1,xe.reset=!0,t.emit("fetch",n.value)},l=()=>{xe.page=Math.ceil(e.total/e.data.length),xe.reset=!0,t.emit("fetch",n.value)},u=i.computed(()=>!!(e.loading||e.data.length>=e.total)),c=i.computed(()=>e.data);return{isMore:r,loadMore:o,loadLess:a,busy:u,data:c,refresh:()=>{xe.page=1,xe.reset=!0,t.emit("fetch",n.value)},loadFirst:s,loadLast:l}}const Fz=i.defineComponent({name:"KTableDate",props:{value:{type:String,default:""}},setup(t){const e=i.computed(()=>Le(t.value).format("LL")),n=i.computed(()=>WS.ucfirst(Le(t.value).fromNow()));return{props:t,text:e,from:n}}});function Hz(t,e,n,r,o,a){const s=i.resolveComponent("k-date");return i.openBlock(),i.createBlock(s,{simple:"",value:t.value},null,8,["value"])}const qz=de(Fz,[["render",Hz]]),jz=i.defineComponent({name:"KTableImage",props:{value:{type:String,default:""}},setup(t){const e=i.ref();return i.onMounted(()=>{d3(e.value)}),{props:t,img:e}}}),Uz={image:"_image_1skvg_1"},Wz=["src"];function Kz(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["rounded-4",t.$style.image])},[i.createElementVNode("img",{ref:"img",src:t.value,"data-zoom":""},null,8,Wz)],2)}const Yz=de(jz,[["render",Kz],["__cssModules",{$style:Uz}]]),Gz=i.defineComponent({name:"KTableStatus",props:{value:{type:[String,Boolean,Number],default:""}},setup(t){const e=i.computed(()=>typeof t.value=="string"?t.value!=="0":typeof t.value=="boolean"?t.value:typeof t.value=="number"?!!t.value:!1);return{props:t,status:e}}}),Jz={class:"badge badge-success"};function Xz(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("span",Jz,[i.createElementVNode("i",{class:i.normalizeClass(["fad me-2",[t.status?"fa-check":"fa-times"]])},null,2),i.createTextVNode(" "+i.toDisplayString(t.status?"Activo":"Inactivo"),1)])}const Qz=de(Gz,[["render",Xz]]),Zz=i.defineComponent({name:"KTablePrice",props:{value:{type:[String,Number],default:""}},setup(){return{}}});function eF(t,e,n,r,o,a){const s=i.resolveComponent("k-price");return i.openBlock(),i.createBlock(s,{value:t.value},null,8,["value"])}const tF=de(Zz,[["render",eF]]),nF=i.defineComponent({name:"KTableCode",components:{KBadge:s3},props:{value:{type:[String,Number],default:""}},setup(){return{}}});function rF(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-badge");return i.openBlock(),i.createBlock(l,{size:"xs"},{default:i.withCtx(()=>[i.createVNode(s,{icon:"qrcode",class:"mr-2"}),i.createTextVNode(" "+i.toDisplayString(t.value),1)]),_:1})}const oF=de(nF,[["render",rF]]),iF=i.defineComponent({name:"KTableOrderFilter",props:{value:{type:[String,null],default:null}},emits:["order"],setup(t,e){return{order:(r=null)=>{e.emit("order",r)}}}}),aF={class:"inline-block"},sF={class:"inline-block"},lF={class:"inline-block"};function uF(t,e,n,r,o,a){const s=i.resolveComponent("k-button");return t.value&&t.value==="asc"?(i.openBlock(),i.createElementBlock("span",{key:0,class:"cursor-pointer",onClick:e[0]||(e[0]=l=>t.order(null))},[i.renderSlot(t.$slots,"default"),i.createElementVNode("div",aF,[i.createVNode(s,{size:"sm",icon:"sort-up",link:"",color:"primary"})])])):t.value&&t.value==="desc"?(i.openBlock(),i.createElementBlock("span",{key:1,class:"cursor-pointer",onClick:e[1]||(e[1]=l=>t.order("asc"))},[i.renderSlot(t.$slots,"default"),i.createElementVNode("div",sF,[i.createVNode(s,{size:"sm",icon:"sort-down",link:"",color:"primary"})])])):(i.openBlock(),i.createElementBlock("span",{key:2,class:"cursor-pointer",onClick:e[2]||(e[2]=l=>t.order("desc"))},[i.renderSlot(t.$slots,"default"),i.createElementVNode("div",lF,[i.createVNode(s,{size:"sm",icon:"sort",link:"",color:"gray"})])]))}const cF=de(iF,[["render",uF]]),dF=i.defineComponent({name:"KTableLimit",props:{value:{type:Number,default:20},loading:{type:Boolean,default:!1},type:{type:String,default:"infinite"},page:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["limit","loadMore","next","prev"],setup(t,e){const n=i.ref(!1),r=a=>{e.emit("limit",a)},o=i.computed(()=>t.page*t.value>=t.total);return{limit:r,visible:n,isLastPage:o}}}),MY="",fF={class:"flex flex-row justify-center gap-4"},pF={key:1};function hF(t,e,n,r,o,a){const s=i.resolveComponent("k-button"),l=i.resolveComponent("k-icon"),u=i.resolveComponent("k-dropdown-menu"),c=i.resolveComponent("k-dropdown");return i.openBlock(),i.createElementBlock("div",fF,[t.type==="infinite"?(i.openBlock(),i.createBlock(s,{key:0,loading:t.loading,disabled:t.loading,onClick:e[0]||(e[0]=d=>t.$emit("loadMore"))},{default:i.withCtx(()=>[i.createTextVNode(" Cargar más ")]),_:1},8,["loading","disabled"])):i.createCommentVNode("",!0),t.type==="manual"?(i.openBlock(),i.createBlock(s,{key:1,icon:"chevrons-left",disabled:t.loading||t.page<=1,onClick:e[1]||(e[1]=d=>t.$emit("prev")),color:"gray"},null,8,["disabled"])):i.createCommentVNode("",!0),i.createVNode(c,{placement:"top"},{content:i.withCtx(()=>[i.createVNode(u,{selected:t.value===10},{default:i.withCtx(()=>[i.createElementVNode("a",{class:i.normalizeClass(["dropdown-item p-3 cursor-pointer",{active:t.value===10}]),onClick:e[2]||(e[2]=d=>t.limit(10))}," 10 ",2)]),_:1},8,["selected"]),i.createVNode(u,{selected:t.value===20},{default:i.withCtx(()=>[i.createElementVNode("a",{class:i.normalizeClass(["dropdown-item p-3 cursor-pointer",{active:t.value===20}]),onClick:e[3]||(e[3]=d=>t.limit(20))}," 20 ",2)]),_:1},8,["selected"]),i.createVNode(u,{selected:t.value===30},{default:i.withCtx(()=>[i.createElementVNode("a",{class:i.normalizeClass(["dropdown-item p-3 cursor-pointer",{active:t.value===30}]),onClick:e[4]||(e[4]=d=>t.limit(30))}," 30 ",2)]),_:1},8,["selected"]),i.createVNode(u,{selected:t.value===50},{default:i.withCtx(()=>[i.createElementVNode("a",{class:i.normalizeClass(["dropdown-item p-3 cursor-pointer",{active:t.value===50}]),onClick:e[5]||(e[5]=d=>t.limit(50))}," 50 ",2)]),_:1},8,["selected"]),i.createVNode(u,{selected:t.value===100},{default:i.withCtx(()=>[i.createElementVNode("a",{class:i.normalizeClass(["dropdown-item p-3 cursor-pointer",{active:t.value===100}]),onClick:e[6]||(e[6]=d=>t.limit(100))}," 100 ",2)]),_:1},8,["selected"])]),default:i.withCtx(()=>[i.createVNode(s,null,{default:i.withCtx(()=>[t.type==="infinite"?(i.openBlock(),i.createBlock(l,{key:0,icon:"ellipsis"})):(i.openBlock(),i.createElementBlock("span",pF,i.toDisplayString(t.page),1))]),_:1})]),_:1}),t.type==="manual"?(i.openBlock(),i.createBlock(s,{key:2,icon:"chevrons-right",color:"gray",disabled:t.loading||t.isLastPage,onClick:e[7]||(e[7]=d=>t.$emit("next"))},null,8,["disabled"])):i.createCommentVNode("",!0)])}const mF=de(dF,[["render",hF],["__scopeId","data-v-31d61f0d"]]),gF=i.defineComponent({name:"KTableFilterSelect",props:{options:{type:Object,required:!0},value:{type:Object,default:null},modal:{type:Boolean,default:!1}},emits:["filter"],setup(t,e){const n=i.ref(),r=(d,p)=>{e.emit("filter",p===null?null:{[d]:p})},o=()=>{var d;e.emit("filter",null),(d=n.value)==null||d.hide()},a=d=>{if(typeof d=="string"){const p=d.trim();if(p==="true")return!0;if(p==="false")return!1;const f=Number(p);return!isNaN(f)&&p!==""?f:p}return d},s=(d,p)=>{const f=a(d),h=a(p);return f===h},l=i.computed(()=>{var f;const d=(f=t.value)==null?void 0:f.$in;let p=[];return typeof d=="string"?p=d.split(",").map(h=>h.trim()).filter(h=>h!==""):Array.isArray(d)?p=d:d!=null&&(p=[d]),p.map(h=>{const m=t.options.find(g=>s(g.value,h));return m==null?void 0:m.value}).filter(h=>h!==void 0)});return{tooltip:n,filter:r,reset:o,active:l,isActive:d=>l.value.some(p=>s(p,d)),toggleFilter:d=>{const p=[...l.value],f=p.findIndex(m=>s(m,d));if(f===-1?p.push(d):p.splice(f,1),p.length===0){r("$in",null);return}const h=p.map(m=>a(m));if(h.length===1){r("$in",h[0]);return}r("$in",h)}}}}),bF={class:"inline-block"},yF=["onClick"];function wF(t,e,n,r,o,a){const s=i.resolveComponent("k-button"),l=i.resolveComponent("k-icon"),u=i.resolveComponent("k-dropdown-menu"),c=i.resolveComponent("k-dropdown"),d=i.resolveComponent("k-select");return t.modal?(i.openBlock(),i.createBlock(d,{key:1,size:"sm",option:t.options,"close-on-select":!1,"track-by":"value","label-by":"title"},{option:i.withCtx(({option:p})=>[i.createElementVNode("div",{onClick:i.withModifiers(f=>t.toggleFilter(p.value),["stop"])},[p.icon?(i.openBlock(),i.createBlock(l,{key:0,class:"mr-2",icon:p.icon},null,8,["icon"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(p.title),1)],8,yF)]),_:1},8,["option"])):(i.openBlock(),i.createBlock(c,{key:0,ref:"tooltip",placement:"bottom","max-height":200,tag:"span","hide-on-click":""},{content:i.withCtx(()=>[i.createVNode(u,{onClick:e[0]||(e[0]=p=>t.reset())},{default:i.withCtx(()=>[i.createVNode(l,{class:"mr-2",icon:"list"}),i.createTextVNode(" Todo ")]),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.options,(p,f)=>(i.openBlock(),i.createBlock(u,{key:f,selected:t.isActive(p.value),onClick:i.withModifiers(h=>t.toggleFilter(p.value),["stop"])},{default:i.withCtx(()=>[p.icon?(i.openBlock(),i.createBlock(l,{key:0,class:"mr-2",icon:p.icon},null,8,["icon"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(p.title),1)]),_:2},1032,["selected","onClick"]))),128))]),default:i.withCtx(()=>[i.createElementVNode("div",bF,[i.createVNode(s,{size:"sm",icon:"filter",link:"",color:t.active&&t.active.length>0?"primary":"gray"},null,8,["color"])])]),_:1},512))}const vF=de(gF,[["render",wF]]),kF=i.defineComponent({name:"KTableFilterDate",props:{value:{type:Object,default:null},min:{type:String,default:""},max:{type:String,default:Le().format("YYYY-MM-DD")},modal:{type:Boolean,default:!1}},emits:["filter"],setup(t,e){const n=i.ref(),r=i.computed(()=>t.value&&t.value.$gte&&t.value.$lte?[t.value.$gte,t.value.$lte]:"");return{filter:a=>{var s;if(!a||!a[0]||!a[1])e.emit("filter",null);else{const l={$gte:`${a[0]} 00:00:00`,$lte:`${a[1]} 23:59:59`};e.emit("filter",l),(s=n.value)==null||s.hide()}},defaultValue:r,tooltip:n}}}),xF={class:"inline-block"};function EF(t,e,n,r,o,a){const s=i.resolveComponent("k-button"),l=i.resolveComponent("k-datepicker"),u=i.resolveComponent("k-tooltip");return t.modal?(i.openBlock(),i.createBlock(l,{key:1,"min-date":t.min,"max-date":t.max,range:!0,time:!1,clearable:!0,value:t.defaultValue,size:"sm",onChange:t.filter},null,8,["min-date","max-date","value","onChange"])):(i.openBlock(),i.createBlock(u,{key:0,ref:"tooltip",interactive:"",trigger:"click",theme:"transparent",arrow:!1,"hide-on-click":"",placement:"bottom","max-width":400},{content:i.withCtx(()=>[i.createVNode(l,{"min-date":t.min,"max-date":t.max,range:!0,time:!1,clearable:!0,value:t.defaultValue,inline:"",onChange:t.filter},null,8,["min-date","max-date","value","onChange"])]),default:i.withCtx(()=>[i.createElementVNode("div",xF,[i.createVNode(s,{size:"sm",icon:"calendar",link:"",color:t.defaultValue?"primary":"gray"},null,8,["color"])])]),_:1},512))}const CF=de(kF,[["render",EF]]),SF=i.defineComponent({name:"KTableFilterRange",props:{value:{type:Object,default:null},min:{type:Number,default:0},max:{type:Number,default:100}},emits:["filter"],setup(t,e){const n=_t(),r=i.ref("dropdown"),o=i.ref([0,0]),a=i.ref(),s=()=>{const d=document.querySelector(`#${n}`);d&&(d.innerHTML="")};i.onMounted(()=>{s()});const l=i.computed(()=>t.value&&t.value.$gte&&t.value.$lte?[t.value.$gte,t.value.$lte]:"");return{id:n,dropdown:r,filter:()=>{const d={$gte:o.value[0],$lte:o.value[1]};a.value.hide(),e.emit("filter",d)},defaultValue:l,reset:()=>{a.value.hide(),e.emit("filter",null)}}}}),_F={class:"flex items-center px-6 py-4"},TF=["id"],NF={class:"ms-10 flex align-items-center"};function OF(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-tooltip");return i.openBlock(),i.createBlock(l,null,{content:i.withCtx(()=>[i.createElementVNode("div",_F,[i.createElementVNode("div",{id:`${t.id}`,class:"noUi-target noUi-target-primary w-150px w-xxl-200px noUi-sm"},null,8,TF),i.createElementVNode("div",NF,[i.createElementVNode("a",{class:"text-danger cursor-pointer me-2 d-inline-flex",onClick:e[0]||(e[0]=(...u)=>t.reset&&t.reset(...u))},[i.createVNode(s,{icon:"square-xmark",size:1})]),i.createElementVNode("a",{class:"text-success cursor-pointer d-inline-flex",onClick:e[1]||(e[1]=(...u)=>t.filter&&t.filter(...u))},[i.createVNode(s,{icon:"square-check",size:1})])])])]),default:i.withCtx(()=>[i.createVNode(s,{icon:"filter",class:i.normalizeClass([{"text-primary":t.defaultValue},"ml-2"])},null,8,["class"])]),_:1})}const $F=de(SF,[["render",OF]]),AF=i.defineComponent({name:"KTableFilterText",props:{value:{type:Object,default:null},min:{type:Number,default:0},max:{type:Number,default:100},modal:{type:Boolean,default:!1}},emits:["filter"],setup(t,e){const n=i.ref(),r=i.ref(""),o=i.ref(!1),a=i.computed(()=>t.value&&t.value.$like?t.value.$like:"");return i.onMounted(()=>{t.value&&t.value.$like&&(r.value=t.value.$like)}),{visible:o,tooltip:n,filter:()=>{var c;const u={$like:r.value};e.emit("filter",u),(c=n.value)==null||c.hide()},defaultValue:a,reset:()=>{var u;r.value="",e.emit("filter",null),(u=n.value)==null||u.hide()},inputText:r}}}),MF={class:"inline-block"},DF={class:"flex items-center"},BF={class:"ml-4 flex items-center"},PF={key:1,class:"flex items-center"},VF={class:"ml-4 flex items-center"};function LF(t,e,n,r,o,a){const s=i.resolveComponent("k-button"),l=i.resolveComponent("k-input"),u=i.resolveComponent("k-tooltip");return t.modal?(i.openBlock(),i.createElementBlock("div",PF,[i.createVNode(l,{modelValue:t.inputText,"onUpdate:modelValue":e[1]||(e[1]=c=>t.inputText=c),type:"text",size:"sm",width:150,placeholder:"Lorem ipsum",onKeyup:i.withKeys(t.filter,["enter"])},null,8,["modelValue","onKeyup"]),i.createElementVNode("div",VF,[i.createVNode(s,{icon:"xmark",color:"danger",size:"sm",title:"Resetear",class:"mr-2",onClick:t.reset},null,8,["onClick"]),i.createVNode(s,{icon:"check",color:"success",size:"sm",title:"Aplicar",onClick:t.filter},null,8,["onClick"])])])):(i.openBlock(),i.createBlock(u,{key:0,ref:"tooltip",interactive:"",trigger:"click",theme:"filter",arrow:!1,"hide-on-click":"",placement:"bottom","max-width":400},{content:i.withCtx(()=>[i.createElementVNode("div",DF,[i.createVNode(l,{modelValue:t.inputText,"onUpdate:modelValue":e[0]||(e[0]=c=>t.inputText=c),type:"text",size:"sm",width:150,placeholder:"Lorem ipsum",onKeyup:i.withKeys(t.filter,["enter"])},null,8,["modelValue","onKeyup"]),i.createElementVNode("div",BF,[i.createVNode(s,{icon:"xmark",color:"danger",size:"sm",title:"Resetear",class:"mr-2",onClick:t.reset},null,8,["onClick"]),i.createVNode(s,{icon:"check",color:"success",size:"sm",title:"Aplicar",onClick:t.filter},null,8,["onClick"])])])]),default:i.withCtx(()=>[i.createElementVNode("div",MF,[i.createVNode(s,{size:"sm",icon:"filter",link:"",color:t.defaultValue?"primary":"gray"},null,8,["color"])])]),_:1},512))}const IF=de(AF,[["render",LF]]),RF=i.defineComponent({name:"KTableFilterNumber",props:{value:{type:Object,default:null},min:{type:Number,default:0},max:{type:Number,default:0},modal:{type:Boolean,default:!1}},emits:["filter"],setup(t,e){const n=_t(),r=i.ref(),o=i.ref(),a=i.computed(()=>t.value&&t.value.$eq?t.value.$eq:"");return i.onMounted(()=>{t.value&&t.value.$eq&&(o.value=t.value.$eq)}),{id:n,filter:()=>{var c;const u={$eq:o.value};e.emit("filter",u),(c=r.value)==null||c.hide()},defaultValue:a,reset:()=>{var u;o.value=void 0,e.emit("filter",null),(u=r.value)==null||u.hide()},inputText:o,tooltip:r}}}),zF={class:"inline-block"},FF={class:"flex items-center"},HF={class:"ml-4 flex align-items-center"},qF={key:1,class:"flex items-center"},jF={class:"ml-4 flex align-items-center"};function UF(t,e,n,r,o,a){const s=i.resolveComponent("k-button"),l=i.resolveComponent("k-input"),u=i.resolveComponent("k-tooltip");return t.modal?(i.openBlock(),i.createElementBlock("div",qF,[i.createVNode(l,{modelValue:t.inputText,"onUpdate:modelValue":e[1]||(e[1]=c=>t.inputText=c),type:"number",size:"sm",width:90,min:t.min,max:t.max||void 0,placeholder:"0",onKeyup:i.withKeys(t.filter,["enter"])},null,8,["modelValue","min","max","onKeyup"]),i.createElementVNode("div",jF,[i.createVNode(s,{icon:"xmark",color:"danger",size:"sm",title:"Resetear",class:"mr-2",onClick:t.reset},null,8,["onClick"]),i.createVNode(s,{icon:"check",color:"success",size:"sm",title:"Aplicar",onClick:t.filter},null,8,["onClick"])])])):(i.openBlock(),i.createBlock(u,{key:0,ref:"tooltip",interactive:"",trigger:"click",theme:"filter",arrow:!1,"hide-on-click":"",placement:"bottom"},{content:i.withCtx(()=>[i.createElementVNode("div",FF,[i.createVNode(l,{modelValue:t.inputText,"onUpdate:modelValue":e[0]||(e[0]=c=>t.inputText=c),type:"number",size:"sm",width:90,min:t.min,max:t.max||void 0,placeholder:"0",onKeyup:i.withKeys(t.filter,["enter"])},null,8,["modelValue","min","max","onKeyup"]),i.createElementVNode("div",HF,[i.createVNode(s,{icon:"xmark",color:"danger",size:"sm",title:"Resetear",class:"mr-2",onClick:t.reset},null,8,["onClick"]),i.createVNode(s,{icon:"check",color:"success",size:"sm",title:"Aplicar",onClick:t.filter},null,8,["onClick"])])])]),default:i.withCtx(()=>[i.createElementVNode("div",zF,[i.createVNode(s,{size:"sm",icon:"filter",link:"",color:t.defaultValue?"primary":"gray"},null,8,["color"])])]),_:1},512))}const WF=de(RF,[["render",UF]]),KF=i.defineComponent({name:"KTable",autoload:!0,components:{KTableDate:qz,KTableImage:Yz,KTableStatus:Qz,KTablePrice:tF,KTableCode:oF,KTableOrder:cF,KTableLimit:mF,KTableFilterSelect:vF,KTableFilterDate:CF,KTableFilterRange:$F,KTableFilterText:IF,KTableFilterNumber:WF},props:Vz,emits:["fetch","filter","cleanFilters"],setup(t,e){const n=ee=>!!e.slots[ee],r=_t(),o=Fe(),a=jd(),s=i.ref(!1),{isRowOpen:l,toggleRow:u}=Rz(t),{cols:c,colLength:d}=Lz(t,e.slots),{toggleCheck:p,isRowChecked:f,isRowDisabled:h,toggleGlobalCheck:m,populateChecks:g,uncheckDisabledRows:b,isCheckedAll:v}=Iz(t),{isMore:x,loadMore:N,loadLess:y,loadFirst:M,loadLast:E,busy:C,data:T,refresh:B}=zz(e,t),{order:L,loadStoreParams:k,limit:$,filter:D,query:V,resetFilters:S,strict:O,cleanTableFilters:w}=f3(e,t);i.watch(T,g,{deep:!0}),i.watch(h,b,{deep:!0}),g(),k();const A=i.computed(()=>{const ee=o.get("isMobileView",!1),F=o.get("isTabletView",!1);return!!(ee||F)}),z=i.computed(()=>t.card===!0||t.card==="auto"&&A.value),P=()=>{S(),s.value=!1},q=(ee,F)=>{ee.url&&a.push({name:ee.url.name,params:{id:F[ee.url.id]}})},W=()=>{e.emit("cleanFilters"),S()};return i.onMounted(()=>{p3.value=!0,e.emit("fetch",V.value),fn.on(`ktable_${t.store}_fetch`,()=>{e.emit("fetch",V.value)}),fn.on(`ktable_${t.store}_next`,()=>{t.pagination==="infinite"?N(!1):N(!0)}),fn.on(`ktable_${t.store}_prev`,()=>{t.pagination==="infinite"?y(!1):y(!0)}),fn.on(`ktable_${t.store}_first`,()=>{M()}),fn.on(`ktable_${t.store}_last`,()=>{E()}),fn.on(`ktable_${t.store}_clean`,()=>{w()})}),i.onUnmounted(()=>{fn.off(`ktable_${t.store}_fetch`),fn.off(`ktable_${t.store}_next`),fn.off(`ktable_${t.store}_prev`),fn.off(`ktable_${t.store}_first`),fn.off(`ktable_${t.store}_last`),fn.off(`ktable_${t.store}_clean`)}),{hasSlot:n,cols:c,id:r,refresh:B,colLength:d,toggleCheck:p,isRowChecked:f,isRowDisabled:h,toggleGlobalCheck:m,busy:C,enable404:p3,isCheckedAll:v,isMore:x,loadMore:N,loadLess:y,isRowOpen:l,toggleRow:u,params:xe,loadStoreParams:k,order:L,limit:$,filter:D,resetFilters:S,strict:O,query:V,isMobile:A,modalOpened:s,cardMode:z,resetAndClose:P,goToUrl:q,resetTheFilters:W}}}),DY="",wc=t=>(i.pushScopeId("data-v-755534d0"),t=t(),i.popScopeId(),t),YF=["id"],GF={class:"k-table-header-left"},JF={class:"whitespace-nowrap font-normal"},XF={class:"k-table-header-toolbar"},QF=wc(()=>i.createElementVNode("div",{class:"mx-2"},null,-1)),ZF={key:0,class:"flex z-40 absolute top-0 left-0 w-full h-full items-center justify-center bg-white bg-opacity-80 dark:bg-gray-900 dark:bg-opacity-80 cursor-progress"},eH={class:"k-table-content"},tH={class:"k-table-tr k-table-head"},nH={key:0,class:"k-table-td"},rH={class:"k-checkbox-label"},oH=["checked"],iH=wc(()=>i.createElementVNode("div",{class:"check"},[i.createElementVNode("div",{class:"inside"})],-1)),aH={class:"k-table-tr"},sH={key:0,class:"k-table-td w-6"},lH={class:"k-checkbox-label"},uH=["checked","disabled","onChange"],cH=wc(()=>i.createElementVNode("div",{class:"check"},[i.createElementVNode("div",{class:"inside"})],-1)),dH={key:6},fH=["onClick"],pH={key:1,class:"k-table-td",align:"right"},hH=["onClick"],mH={key:0,class:"k-table-tr"},gH=["colspan"],bH={key:0,class:"k-table-404"},yH={key:3,class:"card-footer text-center border-0 mt-8"},wH=wc(()=>i.createElementVNode("div",{class:"ml-auto"},null,-1)),vH={class:"flex flex-col -m-5"},kH={key:0,class:"text-base border-b border-b-gray-100 dark:border-b-gray-700 last:border-0 uppercase font-bold p-5 flex flex-row justify-between items-center"};function xH(t,e,n,r,o,a){const s=i.resolveComponent("k-title"),l=i.resolveComponent("k-button"),u=i.resolveComponent("k-icon"),c=i.resolveComponent("k-table-order"),d=i.resolveComponent("k-table-filter-select"),p=i.resolveComponent("k-table-filter-date"),f=i.resolveComponent("k-table-filter-range"),h=i.resolveComponent("k-table-filter-text"),m=i.resolveComponent("k-table-filter-number"),g=i.resolveComponent("k-table-date"),b=i.resolveComponent("k-table-image"),v=i.resolveComponent("k-table-status"),x=i.resolveComponent("k-table-price"),N=i.resolveComponent("k-table-code"),y=i.resolveComponent("k-table-limit"),M=i.resolveComponent("k-drawer");return i.openBlock(),i.createElementBlock("div",{id:t.id,class:i.normalizeClass(["k-table",{"k-table-infinite":t.pagination==="infinite"}])},[t.header?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["k-table-header",{"k-table-header-clean":t.clean}])},[i.renderSlot(t.$slots,"header-left",{},()=>[i.createElementVNode("h3",GF,[i.createVNode(s,{size:5,bold:""},{subtitle:i.withCtx(()=>[i.renderSlot(t.$slots,"subtitle",{selected:t.selected,query:t.query},()=>[i.createElementVNode("span",JF,i.toDisplayString(t.total)+" registros ",1)],!0)]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"title",{selected:t.selected,query:t.query},()=>[i.createTextVNode(" Listado ")],!0)]),_:3})])],!0),i.createElementVNode("div",XF,[i.renderSlot(t.$slots,"header-right",{selected:t.selected,query:t.query},void 0,!0),QF,t.cardMode?(i.openBlock(),i.createBlock(l,{key:0,icon:"filter",color:t.query.filter?"primary":"gray",title:"Filtrar",loading:t.loading,class:"mr-2",onClick:e[0]||(e[0]=E=>t.modalOpened=!0)},null,8,["color","loading"])):(i.openBlock(),i.createBlock(l,{key:1,icon:"filter-slash",color:"gray",title:"Limpiar filtros",loading:t.loading,class:"mr-2",onClick:t.resetTheFilters},null,8,["loading","onClick"])),t.params.strict?(i.openBlock(),i.createBlock(l,{key:2,icon:"object-intersect",color:"gray",title:"Filtro estricto",loading:t.loading,class:"mr-2",onClick:e[1]||(e[1]=E=>t.strict(!1))},null,8,["loading"])):(i.openBlock(),i.createBlock(l,{key:3,icon:"object-union",color:"gray",title:"Filtro flexible",loading:t.loading,class:"mr-2",onClick:e[2]||(e[2]=E=>t.strict(!0))},null,8,["loading"])),i.createVNode(l,{icon:"rotate",color:"primary",light:"",title:"Refrescar",loading:t.loading,onClick:t.refresh},null,8,["loading","onClick"])])],2)):i.createCommentVNode("",!0),t.cardMode?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.cardTag),{key:1,class:i.normalizeClass(t.cardClasses)},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.data,(E,C)=>i.renderSlot(t.$slots,"card",i.normalizeProps(i.mergeProps({key:C},{row:E,query:t.query,index:C})),void 0,!0)),128))]),_:3},8,["class"])):(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["k-table-body",{"k-table-body-clean":t.clean}])},[i.createVNode(i.Transition,{name:"animated_fade","enter-active-class":"animate__animated animate__faster animate__fadeIn","leave-active-class":"animate__animated animate__faster animate__fadeOut"},{default:i.withCtx(()=>[t.loading?(i.openBlock(),i.createElementBlock("div",ZF,[i.createVNode(u,{icon:"spinner-third",spin:"",class:"text-primary",size:40})])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",eH,[i.createElementVNode("div",tH,[t.selected?(i.openBlock(),i.createElementBlock("div",nH,[i.createElementVNode("label",rH,[i.createElementVNode("input",{type:"checkbox",class:"k-checkbox",checked:t.isCheckedAll,onChange:e[3]||(e[3]=(...E)=>t.toggleGlobalCheck&&t.toggleGlobalCheck(...E))},null,40,oH),iH])])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.cols,(E,C)=>(i.openBlock(),i.createElementBlock("div",{key:C,style:i.normalizeStyle(E.style),class:"k-table-td"},[E.order&&E.index?(i.openBlock(),i.createBlock(c,{key:0,value:t.params.order&&t.params.order[E.index]||null,class:"-mr-3",onOrder:T=>t.order(E.index,T)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(E.title),1)]),_:2},1032,["value","onOrder"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(E.title),1)],64)),E.filter&&E.index?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[E.filter.type==="select"&&E.filter.options.length>0?(i.openBlock(),i.createBlock(d,{key:0,options:E.filter.options,value:t.params.filter&&t.params.filter[E.index]?t.params.filter[E.index]:null,onFilter:T=>t.filter(E.index,T)},null,8,["options","value","onFilter"])):E.filter.type==="date"?(i.openBlock(),i.createBlock(p,{key:1,min:E.filter.min,max:E.filter.max,value:t.params.filter&&t.params.filter[E.index]?t.params.filter[E.index]:null,onFilter:T=>t.filter(E.index,T)},null,8,["min","max","value","onFilter"])):E.filter.type==="range"?(i.openBlock(),i.createBlock(f,{key:2,min:E.filter.min,max:E.filter.max,value:t.params.filter&&t.params.filter[E.index]?t.params.filter[E.index]:null,onFilter:T=>t.filter(E.index,T)},null,8,["min","max","value","onFilter"])):E.filter.type==="text"?(i.openBlock(),i.createBlock(h,{key:3,value:t.params.filter&&t.params.filter[E.index]?t.params.filter[E.index]:null,onFilter:T=>t.filter(E.index,T)},null,8,["value","onFilter"])):E.filter.type==="number"?(i.openBlock(),i.createBlock(m,{key:4,min:E.filter.min,max:E.filter.max,value:t.params.filter&&t.params.filter[E.index]?t.params.filter[E.index]:null,onFilter:T=>t.filter(E.index,T)},null,8,["min","max","value","onFilter"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0)],4))),128))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.data,(E,C)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C},[i.createElementVNode("div",aH,[t.selected?(i.openBlock(),i.createElementBlock("div",sH,[i.createElementVNode("label",lH,[i.createElementVNode("input",{type:"checkbox",class:"k-checkbox",checked:t.isRowChecked[C],disabled:t.isRowDisabled[C],onChange:T=>t.toggleCheck(C)},null,40,uH),cH])])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.cols,(T,B)=>(i.openBlock(),i.createElementBlock("div",{key:B,style:i.normalizeStyle(T.style),class:"k-table-td"},[T.makeup==="date"?(i.openBlock(),i.createBlock(g,{key:0,value:E[T.index],class:i.normalizeClass({"cursor-pointer":T.url}),onClick:L=>t.goToUrl(T,E)},null,8,["value","class","onClick"])):T.makeup==="image"?(i.openBlock(),i.createBlock(b,{key:1,value:E[T.index]},null,8,["value"])):T.makeup==="status"?(i.openBlock(),i.createBlock(v,{key:2,value:E[T.index],class:i.normalizeClass({"cursor-pointer":T.url}),onClick:L=>t.goToUrl(T,E)},null,8,["value","class","onClick"])):T.makeup==="price"?(i.openBlock(),i.createBlock(x,{key:3,value:E[T.index],class:i.normalizeClass({"cursor-pointer":T.url}),onClick:L=>t.goToUrl(T,E)},null,8,["value","class","onClick"])):T.makeup==="code"?(i.openBlock(),i.createBlock(N,{key:4,value:E[T.index],class:i.normalizeClass({"cursor-pointer":T.url}),onClick:L=>t.goToUrl(T,E)},null,8,["value","class","onClick"])):T.slot?i.renderSlot(t.$slots,T.slot,i.normalizeProps(i.mergeProps({key:5},{row:E,value:E[T.index],query:t.query,index:C})),void 0,!0):(i.openBlock(),i.createElementBlock("div",dH,[i.createElementVNode("span",{class:i.normalizeClass({"cursor-pointer":T.url}),onClick:L=>t.goToUrl(T,E)},i.toDisplayString(E[T.index]),11,fH)]))],4))),128)),t.hasSlot("content")?(i.openBlock(),i.createElementBlock("div",pH,[i.createElementVNode("a",{class:"btn btn-icon btn-gray-300 cursor-pointer",onClick:T=>t.toggleRow(C)},[i.createElementVNode("i",{class:i.normalizeClass([t.isRowOpen[C]?"fa-chevron-up":"fa-chevron-down","fas"])},null,2)],8,hH)])):i.createCommentVNode("",!0)]),t.hasSlot("content")?i.withDirectives((i.openBlock(),i.createElementBlock("tr",mH,[i.createElementVNode("td",{colspan:t.colLength},[i.renderSlot(t.$slots,"content",{row:E,query:t.query,index:C},void 0,!0)],8,gH)],512)),[[i.vShow,t.isRowOpen[C]]]):i.createCommentVNode("",!0)],64))),128))]),t.enable404&&!t.loading&&t.data.length<=0?(i.openBlock(),i.createElementBlock("div",bH,[i.createVNode(u,{icon:"binary-slash",type:"fad",class:"mb-6 text-6xl"}),i.createVNode(s,{tag:"h3",size:4,bold:"",center:"",class:"text-gray-600"},{default:i.withCtx(()=>[i.createTextVNode(" Sin resultados ")]),_:1}),i.createVNode(s,{tag:"h4",size:6,center:"",class:"text-gray-600"},{default:i.withCtx(()=>[i.createTextVNode(" Prueba con una consulta diferente ")]),_:1})])):i.createCommentVNode("",!0)],2)),t.isMore?(i.openBlock(),i.createElementBlock("div",yH,[i.createVNode(y,{loading:t.loading,value:t.params.limit,type:t.pagination,page:t.params.page,total:t.total,onLimit:t.limit,onLoadMore:e[4]||(e[4]=E=>t.loadMore(!1)),onNext:e[5]||(e[5]=E=>t.loadMore(!0)),onPrev:e[6]||(e[6]=E=>t.loadLess(!0))},null,8,["loading","value","type","page","total","onLimit"])])):i.createCommentVNode("",!0),i.createVNode(M,{modelValue:t.modalOpened,"onUpdate:modelValue":e[8]||(e[8]=E=>t.modalOpened=E),title:"Filtros",width:400},{footer:i.withCtx(()=>[wH,i.createVNode(l,{icon:"filter-slash",color:"danger",class:"mr-2",onClick:t.resetAndClose},{default:i.withCtx(()=>[i.createTextVNode(" Resetear ")]),_:1},8,["onClick"]),i.createVNode(l,{icon:"filter",color:"primary",onClick:e[7]||(e[7]=E=>t.modalOpened=!1)},{default:i.withCtx(()=>[i.createTextVNode(" Guardar ")]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("div",vH,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.cols,(E,C)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C},[E.order||E.filter?(i.openBlock(),i.createElementBlock("div",kH,[E.order&&E.index?(i.openBlock(),i.createBlock(c,{key:0,value:t.params.order&&t.params.order[E.index]||null,onOrder:T=>t.order(E.index,T)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(E.title),1)]),_:2},1032,["value","onOrder"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(E.title),1)],64)),E.filter&&E.index?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[E.filter.type==="select"&&E.filter.options.length>0?(i.openBlock(),i.createBlock(d,{key:0,options:E.filter.options,value:t.params.filter&&t.params.filter[E.index]?t.params.filter[E.index]:null,modal:"",onFilter:T=>t.filter(E.index,T)},null,8,["options","value","onFilter"])):E.filter.type==="date"?(i.openBlock(),i.createBlock(p,{key:1,min:E.filter.min,max:E.filter.max,value:t.params.filter&&t.params.filter[E.index]?t.params.filter[E.index]:null,modal:"",onFilter:T=>t.filter(E.index,T)},null,8,["min","max","value","onFilter"])):E.filter.type==="range"?(i.openBlock(),i.createBlock(f,{key:2,min:E.filter.min,max:E.filter.max,value:t.params.filter&&t.params.filter[E.index]?t.params.filter[E.index]:null,modal:"",onFilter:T=>t.filter(E.index,T)},null,8,["min","max","value","onFilter"])):E.filter.type==="text"?(i.openBlock(),i.createBlock(h,{key:3,value:t.params.filter&&t.params.filter[E.index]?t.params.filter[E.index]:null,modal:"",onFilter:T=>t.filter(E.index,T)},null,8,["value","onFilter"])):E.filter.type==="number"?(i.openBlock(),i.createBlock(m,{key:4,min:E.filter.min,max:E.filter.max,value:t.params.filter&&t.params.filter[E.index]?t.params.filter[E.index]:null,modal:"",onFilter:T=>t.filter(E.index,T)},null,8,["min","max","value","onFilter"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)],64))),128))])]),_:1},8,["modelValue"])],10,YF)}const EH=de(KF,[["render",xH],["__scopeId","data-v-755534d0"]]),CH=i.defineComponent({name:"KDate",autoload:!0,props:{value:{type:[Array,String],default:"",description:"Valor del campo"},simple:{type:Boolean,default:!1,description:"Arroja menos datos"}},setup(t){const e=i.computed(()=>!!Array.isArray(t.value)),n=i.computed(()=>e.value?Le(t.value[0]).format("LL"):Le(t.value.toString()).format("LL")),r=i.computed(()=>e.value?Le(t.value[1]).format("LL"):Le(t.value.toString()).fromNow()),o=i.computed(()=>Array.isArray(t.value)?Le(t.value[0]).format("YYYY-MM-DD HH:mm:ss")+" - "+Le(t.value[1]).format("YYYY-MM-DD HH:mm:ss"):Le(t.value).format("YYYY-MM-DD HH:mm:ss"));return{props:t,text:n,from:r,isMultiple:e,tippyText:o}}}),SH={class:"flex flex-row items-center"},_H={key:0,class:"text-left flex flex-col"},TH={key:0,class:"opacity-40"},NH={key:1,class:"text-left flex flex-col"},OH={key:0,class:"opacity-40"},$H={key:1,class:"text-left flex flex-col"},AH={key:0,class:"opacity-40"};function MH(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-tooltip"),u=i.resolveComponent("k-badge");return i.openBlock(),i.createBlock(u,{size:"xs",color:"primary"},{default:i.withCtx(()=>[i.createVNode(l,{content:t.tippyText},{default:i.withCtx(()=>[i.createElementVNode("div",SH,[i.createVNode(s,{icon:"clock",class:i.normalizeClass(t.simple?"text-xs mr-2":"text-xl mr-4")},null,8,["class"]),t.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[t.isMultiple?(i.openBlock(),i.createElementBlock("div",_H,[i.createTextVNode(i.toDisplayString(t.text)+" ",1),t.simple?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",TH,i.toDisplayString(t.from),1))])):(i.openBlock(),i.createElementBlock("div",NH,[i.createTextVNode(i.toDisplayString(t.text)+" ",1),t.simple?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",OH,i.toDisplayString(t.from),1))]))],64)):(i.openBlock(),i.createElementBlock("div",$H,[i.createTextVNode(" Sin definir "),t.simple?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",AH," ??? "))]))])]),_:1},8,["content"])]),_:1})}const DH=de(CH,[["render",MH]]),BH=i.defineComponent({name:"KCard",props:{bordered:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},loading:{type:Boolean,default:!1}},setup(t,{slots:e}){const n=o=>!!e[o],r=i.computed(()=>{let o=["k-card"];return t.bordered&&o.push("border border-gray-200"),t.shadow&&o.push("shadow-xl"),o});return{hasSlot:n,classes:r}}}),BY="",PH={key:0,class:"flex z-50 absolute top-0 left-0 w-full h-full items-center justify-center bg-white bg-opacity-80 dark:bg-gray-900 dark:bg-opacity-80 cursor-progress"},VH={key:0,class:"k-card-header"},LH={class:"k-card-body"},IH={key:1,class:"k-card-footer"};function RH(t,e,n,r,o,a){const s=i.resolveComponent("k-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(t.classes)},[i.createVNode(i.Transition,{name:"animated_fade","enter-active-class":"animate__animated animate__faster animate__fadeIn","leave-active-class":"animate__animated animate__faster animate__fadeOut"},{default:i.withCtx(()=>[t.loading?(i.openBlock(),i.createElementBlock("div",PH,[i.createVNode(s,{icon:"spinner-third",spin:"",class:"text-primary",size:40})])):i.createCommentVNode("",!0)]),_:1}),t.hasSlot("header")?(i.openBlock(),i.createElementBlock("div",VH,[i.renderSlot(t.$slots,"header",{},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",LH,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),t.hasSlot("footer")?(i.openBlock(),i.createElementBlock("div",IH,[i.renderSlot(t.$slots,"footer",{},void 0,!0)])):i.createCommentVNode("",!0)],2)}const zH=de(BH,[["render",RH],["__scopeId","data-v-b12f1b87"]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const FH=()=>{},h3=Object.assign,HH=Array.isArray,qH=t=>typeof t=="function",jH=t=>typeof t=="symbol";let UH;function WH(t,e=UH){e&&e.active&&e.effects.push(t)}const m3=t=>{const e=new Set(t);return e.w=0,e.n=0,e},g3=t=>(t.w&mo)>0,b3=t=>(t.n&mo)>0,KH=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=mo},YH=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const o=e[r];g3(o)&&!b3(o)?o.delete(t):e[n++]=o,o.w&=~mo,o.n&=~mo}e.length=n}};let Is=0,mo=1;const J0=30;let wn;Symbol(process.env.NODE_ENV!=="production"?"iterate":""),Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");class GH{constructor(e,n=null,r){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,WH(this,r)}run(){if(!this.active)return this.fn();let e=wn,n=vc;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=wn,wn=this,vc=!0,mo=1<<++Is,Is<=J0?KH(this):y3(this),this.fn()}finally{Is<=J0&&YH(this),mo=1<<--Is,wn=this.parent,vc=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){wn===this?this.deferStop=!0:this.active&&(y3(this),this.onStop&&this.onStop(),this.active=!1)}}function y3(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let vc=!0;function w3(t,e){let n=!1;Is<=J0?b3(t)||(t.n|=mo,n=!g3(t)):n=!t.has(wn),n&&(t.add(wn),wn.deps.push(t),process.env.NODE_ENV!=="production"&&wn.onTrack&&wn.onTrack(h3({effect:wn},e)))}function v3(t,e){const n=HH(t)?t:[...t];for(const r of n)r.computed&&k3(r,e);for(const r of n)r.computed||k3(r,e)}function k3(t,e){(t!==wn||t.allowRecurse)&&(process.env.NODE_ENV!=="production"&&t.onTrigger&&t.onTrigger(h3({effect:t},e)),t.scheduler?t.scheduler():t.run())}new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(jH));function kc(t){const e=t&&t.__v_raw;return e?kc(e):t}function JH(t){vc&&wn&&(t=kc(t),process.env.NODE_ENV!=="production"?w3(t.dep||(t.dep=m3()),{target:t,type:"get",key:"value"}):w3(t.dep||(t.dep=m3())))}function XH(t,e){t=kc(t);const n=t.dep;n&&(process.env.NODE_ENV!=="production"?v3(n,{target:t,type:"set",key:"value",newValue:e}):v3(n))}class QH{constructor(e,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new GH(e,()=>{this._dirty||(this._dirty=!0,XH(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const e=kc(this);return JH(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function x3(t,e,n=!1){let r,o;const a=qH(t);a?(r=t,o=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:FH):(r=t.get,o=t.set);const s=new QH(r,o,a||!o,n);return process.env.NODE_ENV!=="production"&&e&&!n&&(s.effect.onTrack=e.onTrack,s.effect.onTrigger=e.onTrigger),s}var ZH=function(){function t(e,n){n===void 0&&(n=[]),this._eventType=e,this._eventFunctions=n}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(e._eventType,n)})},t}(),xc=globalThis&&globalThis.__assign||function(){return xc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},xc.apply(this,arguments)},Ec={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},Cc=function(){function t(e,n){e===void 0&&(e=[]),n===void 0&&(n=Ec),this._items=e,this._options=xc(xc({},Ec),n),this._init()}return t.prototype._init=function(){var e=this;this._items.length&&this._items.map(function(n){n.active&&e.open(n.id),n.triggerEl.addEventListener("click",function(){e.toggle(n.id)})})},t.prototype.getItem=function(e){return this._items.filter(function(n){return n.id===e})[0]},t.prototype.open=function(e){var n,r,o=this,a=this.getItem(e);this._options.alwaysOpen||this._items.map(function(s){var l,u;s!==a&&((l=s.triggerEl.classList).remove.apply(l,o._options.activeClasses.split(" ")),(u=s.triggerEl.classList).add.apply(u,o._options.inactiveClasses.split(" ")),s.targetEl.classList.add("hidden"),s.triggerEl.setAttribute("aria-expanded","false"),s.active=!1,s.iconEl&&s.iconEl.classList.remove("rotate-180"))}),(n=a.triggerEl.classList).add.apply(n,this._options.activeClasses.split(" ")),(r=a.triggerEl.classList).remove.apply(r,this._options.inactiveClasses.split(" ")),a.triggerEl.setAttribute("aria-expanded","true"),a.targetEl.classList.remove("hidden"),a.active=!0,a.iconEl&&a.iconEl.classList.add("rotate-180"),this._options.onOpen(this,a)},t.prototype.toggle=function(e){var n=this.getItem(e);n.active?this.close(e):this.open(e),this._options.onToggle(this,n)},t.prototype.close=function(e){var n,r,o=this.getItem(e);(n=o.triggerEl.classList).remove.apply(n,this._options.activeClasses.split(" ")),(r=o.triggerEl.classList).add.apply(r,this._options.inactiveClasses.split(" ")),o.targetEl.classList.add("hidden"),o.triggerEl.setAttribute("aria-expanded","false"),o.active=!1,o.iconEl&&o.iconEl.classList.remove("rotate-180"),this._options.onClose(this,o)},t}();function X0(){document.querySelectorAll("[data-accordion]").forEach(function(t){var e=t.getAttribute("data-accordion"),n=t.getAttribute("data-active-classes"),r=t.getAttribute("data-inactive-classes"),o=[];t.querySelectorAll("[data-accordion-target]").forEach(function(a){if(a.closest("[data-accordion]")===t){var s={id:a.getAttribute("data-accordion-target"),triggerEl:a,targetEl:document.querySelector(a.getAttribute("data-accordion-target")),iconEl:a.querySelector("[data-accordion-icon]"),active:a.getAttribute("aria-expanded")==="true"};o.push(s)}}),new Cc(o,{alwaysOpen:e==="open",activeClasses:n||Ec.activeClasses,inactiveClasses:r||Ec.inactiveClasses})})}typeof window<"u"&&(window.Accordion=Cc,window.initAccordions=X0);var Sc=globalThis&&globalThis.__assign||function(){return Sc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Sc.apply(this,arguments)},E3={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},C3=function(){function t(e,n,r){e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=E3),this._targetEl=e,this._triggerEl=n,this._options=Sc(Sc({},E3),r),this._visible=!1,this._init()}return t.prototype._init=function(){var e=this;this._triggerEl&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._triggerEl.addEventListener("click",function(){e.toggle()}))},t.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},t.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},t.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},t}();function Q0(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(t){var e=t.getAttribute("data-collapse-toggle"),n=document.getElementById(e);n?new C3(n,t):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=C3,window.initCollapses=Q0);var ai=globalThis&&globalThis.__assign||function(){return ai=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},ai.apply(this,arguments)},_c={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},S3=function(){function t(e,n){e===void 0&&(e=[]),n===void 0&&(n=_c),this._items=e,this._options=ai(ai(ai({},_c),n),{indicators:ai(ai({},_c.indicators),n.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._init()}return t.prototype._init=function(){var e=this;this._items.map(function(n){n.el.classList.add("absolute","inset-0","transition-transform","transform")}),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map(function(n,r){n.el.addEventListener("click",function(){e.slideTo(r)})})},t.prototype.getItem=function(e){return this._items[e]},t.prototype.slideTo=function(e){var n=this._items[e],r={left:n.position===0?this._items[this._items.length-1]:this._items[n.position-1],middle:n,right:n.position===this._items.length-1?this._items[0]:this._items[n.position+1]};this._rotate(r),this._setActiveItem(n),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},t.prototype.next=function(){var e=this._getActiveItem(),n=null;e.position===this._items.length-1?n=this._items[0]:n=this._items[e.position+1],this.slideTo(n.position),this._options.onNext(this)},t.prototype.prev=function(){var e=this._getActiveItem(),n=null;e.position===0?n=this._items[this._items.length-1]:n=this._items[e.position-1],this.slideTo(n.position),this._options.onPrev(this)},t.prototype._rotate=function(e){this._items.map(function(n){n.el.classList.add("hidden")}),e.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.left.el.classList.add("-translate-x-full","z-10"),e.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),e.middle.el.classList.add("translate-x-0","z-20"),e.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.right.el.classList.add("translate-x-full","z-10")},t.prototype.cycle=function(){var e=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){e.next()},this._intervalDuration))},t.prototype.pause=function(){clearInterval(this._intervalInstance)},t.prototype._getActiveItem=function(){return this._activeItem},t.prototype._setActiveItem=function(e){var n,r,o=this;this._activeItem=e;var a=e.position;this._indicators.length&&(this._indicators.map(function(s){var l,u;s.el.setAttribute("aria-current","false"),(l=s.el.classList).remove.apply(l,o._options.indicators.activeClasses.split(" ")),(u=s.el.classList).add.apply(u,o._options.indicators.inactiveClasses.split(" "))}),(n=this._indicators[a].el.classList).add.apply(n,this._options.indicators.activeClasses.split(" ")),(r=this._indicators[a].el.classList).remove.apply(r,this._options.indicators.inactiveClasses.split(" ")),this._indicators[a].el.setAttribute("aria-current","true"))},t}();function Z0(){document.querySelectorAll("[data-carousel]").forEach(function(t){var e=t.getAttribute("data-carousel-interval"),n=t.getAttribute("data-carousel")==="slide",r=[],o=0;t.querySelectorAll("[data-carousel-item]").length&&Array.from(t.querySelectorAll("[data-carousel-item]")).map(function(c,d){r.push({position:d,el:c}),c.getAttribute("data-carousel-item")==="active"&&(o=d)});var a=[];t.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(t.querySelectorAll("[data-carousel-slide-to]")).map(function(c){a.push({position:parseInt(c.getAttribute("data-carousel-slide-to")),el:c})});var s=new S3(r,{defaultPosition:o,indicators:{items:a},interval:e||_c.interval});n&&s.cycle();var l=t.querySelector("[data-carousel-next]"),u=t.querySelector("[data-carousel-prev]");l&&l.addEventListener("click",function(){s.next()}),u&&u.addEventListener("click",function(){s.prev()})})}typeof window<"u"&&(window.Carousel=S3,window.initCarousels=Z0);var Tc=globalThis&&globalThis.__assign||function(){return Tc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Tc.apply(this,arguments)},_3={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},T3=function(){function t(e,n,r){e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=_3),this._targetEl=e,this._triggerEl=n,this._options=Tc(Tc({},_3),r),this._init()}return t.prototype._init=function(){var e=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){e.hide()})},t.prototype.hide=function(){var e=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){e._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},t}();function eh(){document.querySelectorAll("[data-dismiss-target]").forEach(function(t){var e=t.getAttribute("data-dismiss-target"),n=document.querySelector(e);n?new T3(n,t):console.error('The dismiss element with id "'.concat(e,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=T3,window.initDismisses=eh);var go=globalThis&&globalThis.__assign||function(){return go=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},go.apply(this,arguments)},Nc=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,a;r<o;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))},bo={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},N3=function(){function t(e,n,r){e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=bo),this._targetEl=e,this._triggerEl=n,this._options=go(go({},bo),r),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var e=this,n=this._getTriggerEvents();this._options.triggerType==="click"&&n.showEvents.forEach(function(r){e._triggerEl.addEventListener(r,function(){e.toggle()})}),this._options.triggerType==="hover"&&(n.showEvents.forEach(function(r){e._triggerEl.addEventListener(r,function(){r==="click"?e.toggle():setTimeout(function(){e.show()},e._options.delay)}),e._targetEl.addEventListener(r,function(){e.show()})}),n.hideEvents.forEach(function(r){e._triggerEl.addEventListener(r,function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},e._options.delay)}),e._targetEl.addEventListener(r,function(){setTimeout(function(){e._triggerEl.matches(":hover")||e.hide()},e._options.delay)})}))},t.prototype._createPopperInstance=function(){return ol(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},t.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(n){e._handleClickOutside(n,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(e,n){var r=e.target,o=this._options.ignoreClickOutsideClass,a=!1;if(o){var s=document.querySelectorAll(".".concat(o));s.forEach(function(l){if(l.contains(r)){a=!0;return}})}r!==n&&!n.contains(r)&&!this._triggerEl.contains(r)&&!a&&this.isVisible()&&this.hide()},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.isVisible=function(){return this._visible},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(e){return go(go({},e),{modifiers:Nc(Nc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(e){return go(go({},e),{modifiers:Nc(Nc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},t}();function th(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(t){var e=t.getAttribute("data-dropdown-toggle"),n=document.getElementById(e);if(n){var r=t.getAttribute("data-dropdown-placement"),o=t.getAttribute("data-dropdown-offset-skidding"),a=t.getAttribute("data-dropdown-offset-distance"),s=t.getAttribute("data-dropdown-trigger"),l=t.getAttribute("data-dropdown-delay"),u=t.getAttribute("data-dropdown-ignore-click-outside-class");new N3(n,t,{placement:r||bo.placement,triggerType:s||bo.triggerType,offsetSkidding:o?parseInt(o):bo.offsetSkidding,offsetDistance:a?parseInt(a):bo.offsetDistance,delay:l?parseInt(l):bo.delay,ignoreClickOutsideClass:u||bo.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(e,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=N3,window.initDropdowns=th);var Oc=globalThis&&globalThis.__assign||function(){return Oc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Oc.apply(this,arguments)},pa={placement:"center",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},$c=function(){function t(e,n){e===void 0&&(e=null),n===void 0&&(n=pa),this._targetEl=e,this._options=Oc(Oc({},pa),n),this._isHidden=!0,this._backdropEl=null,this._init()}return t.prototype._init=function(){var e=this;this._targetEl&&this._getPlacementClasses().map(function(n){e._targetEl.classList.add(n)})},t.prototype._createBackdrop=function(){var e;if(this._isHidden){var n=document.createElement("div");n.setAttribute("modal-backdrop",""),(e=n.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(n),this._backdropEl=n}},t.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},t.prototype._setupModalCloseEventListeners=function(){var e=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(n){e._handleOutsideClick(n.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(n){n.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._handleOutsideClick=function(e){(e===this._targetEl||e===this._backdropEl&&this.isVisible())&&this.hide()},t.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},t.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},t.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,document.body.classList.add("overflow-hidden"),this._options.closable&&this._setupModalCloseEventListeners(),this._options.onShow(this))},t.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},t.prototype.isVisible=function(){return!this._isHidden},t.prototype.isHidden=function(){return this._isHidden},t}(),Ac=function(t,e){return e.some(function(n){return n.id===t})?e.find(function(n){return n.id===t}):null};function nh(){var t=[];document.querySelectorAll("[data-modal-target]").forEach(function(e){var n=e.getAttribute("data-modal-target"),r=document.getElementById(n);if(r){var o=r.getAttribute("data-modal-placement"),a=r.getAttribute("data-modal-backdrop");Ac(n,t)||t.push({id:n,object:new $c(r,{placement:o||pa.placement,backdrop:a||pa.backdrop})})}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(e){var n=e.getAttribute("data-modal-toggle"),r=document.getElementById(n);if(r){var o=r.getAttribute("data-modal-placement"),a=r.getAttribute("data-modal-backdrop"),s=Ac(n,t);s||(s={id:n,object:new $c(r,{placement:o||pa.placement,backdrop:a||pa.backdrop})},t.push(s)),e.addEventListener("click",function(){s.object.toggle()})}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(e){var n=e.getAttribute("data-modal-show"),r=document.getElementById(n);if(r){var o=Ac(n,t);o?e.addEventListener("click",function(){o.object.isHidden&&o.object.show()}):console.error("Modal with id ".concat(n," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(e){var n=e.getAttribute("data-modal-hide"),r=document.getElementById(n);if(r){var o=Ac(n,t);o?e.addEventListener("click",function(){o.object.isVisible&&o.object.hide()}):console.error("Modal with id ".concat(n," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=$c,window.initModals=nh);var Mc=globalThis&&globalThis.__assign||function(){return Mc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Mc.apply(this,arguments)},si={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},rh=function(){function t(e,n){e===void 0&&(e=null),n===void 0&&(n=si),this._targetEl=e,this._options=Mc(Mc({},si),n),this._visible=!1,this._init()}return t.prototype._init=function(){var e=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(n){e._targetEl.classList.add(n)}),document.addEventListener("keydown",function(n){n.key==="Escape"&&e.isVisible()&&e.hide()})},t.prototype.hide=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(n){e._targetEl.classList.remove(n)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(n){e._targetEl.classList.add(n)})):(this._getPlacementClasses(this._options.placement).active.map(function(n){e._targetEl.classList.remove(n)}),this._getPlacementClasses(this._options.placement).inactive.map(function(n){e._targetEl.classList.add(n)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(n){e._targetEl.classList.add(n)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(n){e._targetEl.classList.remove(n)})):(this._getPlacementClasses(this._options.placement).active.map(function(n){e._targetEl.classList.add(n)}),this._getPlacementClasses(this._options.placement).inactive.map(function(n){e._targetEl.classList.remove(n)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype._createBackdrop=function(){var e,n=this;if(!this._visible){var r=document.createElement("div");r.setAttribute("drawer-backdrop",""),(e=r.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(r),r.addEventListener("click",function(){n.hide()})}},t.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()},t.prototype._getPlacementClasses=function(e){switch(e){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t}(),Dc=function(t,e){if(e.some(function(n){return n.id===t}))return e.find(function(n){return n.id===t})};function oh(){var t=[];document.querySelectorAll("[data-drawer-target]").forEach(function(e){var n=e.getAttribute("data-drawer-target"),r=document.getElementById(n);if(r){var o=e.getAttribute("data-drawer-placement"),a=e.getAttribute("data-drawer-body-scrolling"),s=e.getAttribute("data-drawer-backdrop"),l=e.getAttribute("data-drawer-edge"),u=e.getAttribute("data-drawer-edge-offset");Dc(n,t)||t.push({id:n,object:new rh(r,{placement:o||si.placement,bodyScrolling:a?a==="true":si.bodyScrolling,backdrop:s?s==="true":si.backdrop,edge:l?l==="true":si.edge,edgeOffset:u||si.edgeOffset})})}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(e){var n=e.getAttribute("data-drawer-toggle"),r=document.getElementById(n);if(r){var o=Dc(n,t);o?e.addEventListener("click",function(){o.object.toggle()}):console.error("Drawer with id ".concat(n," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(e){var n=e.getAttribute("data-drawer-dismiss")?e.getAttribute("data-drawer-dismiss"):e.getAttribute("data-drawer-hide"),r=document.getElementById(n);if(r){var o=Dc(n,t);o?e.addEventListener("click",function(){o.object.hide()}):console.error("Drawer with id ".concat(n," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(e){var n=e.getAttribute("data-drawer-show"),r=document.getElementById(n);if(r){var o=Dc(n,t);o?e.addEventListener("click",function(){o.object.show()}):console.error("Drawer with id ".concat(n," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=rh,window.initDrawers=oh);var Bc=globalThis&&globalThis.__assign||function(){return Bc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Bc.apply(this,arguments)},O3={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},$3=function(){function t(e,n){e===void 0&&(e=[]),n===void 0&&(n=O3),this._items=e,this._activeTab=n?this.getTab(n.defaultTabId):null,this._options=Bc(Bc({},O3),n),this._init()}return t.prototype._init=function(){var e=this;this._items.length&&(this._activeTab||this._setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(n){n.triggerEl.addEventListener("click",function(){e.show(n.id)})}))},t.prototype.getActiveTab=function(){return this._activeTab},t.prototype._setActiveTab=function(e){this._activeTab=e},t.prototype.getTab=function(e){return this._items.filter(function(n){return n.id===e})[0]},t.prototype.show=function(e,n){var r,o,a=this;n===void 0&&(n=!1);var s=this.getTab(e);s===this._activeTab&&!n||(this._items.map(function(l){var u,c;l!==s&&((u=l.triggerEl.classList).remove.apply(u,a._options.activeClasses.split(" ")),(c=l.triggerEl.classList).add.apply(c,a._options.inactiveClasses.split(" ")),l.targetEl.classList.add("hidden"),l.triggerEl.setAttribute("aria-selected","false"))}),(r=s.triggerEl.classList).add.apply(r,this._options.activeClasses.split(" ")),(o=s.triggerEl.classList).remove.apply(o,this._options.inactiveClasses.split(" ")),s.triggerEl.setAttribute("aria-selected","true"),s.targetEl.classList.remove("hidden"),this._setActiveTab(s),this._options.onShow(this,s))},t}();function ih(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(t){var e=[],n=null;t.querySelectorAll('[role="tab"]').forEach(function(r){var o=r.getAttribute("aria-selected")==="true",a={id:r.getAttribute("data-tabs-target"),triggerEl:r,targetEl:document.querySelector(r.getAttribute("data-tabs-target"))};e.push(a),o&&(n=a.id)}),new $3(e,{defaultTabId:n})})}typeof window<"u"&&(window.Tabs=$3,window.initTabs=ih);var yo=globalThis&&globalThis.__assign||function(){return yo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},yo.apply(this,arguments)},Pc=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,a;r<o;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))},Vc={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},A3=function(){function t(e,n,r){e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=Vc),this._targetEl=e,this._triggerEl=n,this._options=yo(yo({},Vc),r),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var e=this,n=this._getTriggerEvents();n.showEvents.forEach(function(r){e._triggerEl.addEventListener(r,function(){e.show()})}),n.hideEvents.forEach(function(r){e._triggerEl.addEventListener(r,function(){e.hide()})})},t.prototype._createPopperInstance=function(){return ol(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(n){n.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(n){e._handleClickOutside(n,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(e,n){var r=e.target;r!==n&&!n.contains(r)&&!this._triggerEl.contains(r)&&this.isVisible()&&this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return yo(yo({},e),{modifiers:Pc(Pc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return yo(yo({},e),{modifiers:Pc(Pc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function ah(){document.querySelectorAll("[data-tooltip-target]").forEach(function(t){var e=t.getAttribute("data-tooltip-target"),n=document.getElementById(e);if(n){var r=t.getAttribute("data-tooltip-trigger"),o=t.getAttribute("data-tooltip-placement");new A3(n,t,{placement:o||Vc.placement,triggerType:r||Vc.triggerType})}else console.error('The tooltip element with id "'.concat(e,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=A3,window.initTooltips=ah);var wo=globalThis&&globalThis.__assign||function(){return wo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},wo.apply(this,arguments)},Lc=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,a;r<o;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))},Rs={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},M3=function(){function t(e,n,r){e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=Rs),this._targetEl=e,this._triggerEl=n,this._options=wo(wo({},Rs),r),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var e=this,n=this._getTriggerEvents();n.showEvents.forEach(function(r){e._triggerEl.addEventListener(r,function(){e.show()}),e._targetEl.addEventListener(r,function(){e.show()})}),n.hideEvents.forEach(function(r){e._triggerEl.addEventListener(r,function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},100)}),e._targetEl.addEventListener(r,function(){setTimeout(function(){e._triggerEl.matches(":hover")||e.hide()},100)})})},t.prototype._createPopperInstance=function(){return ol(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(n){n.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(n){e._handleClickOutside(n,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(e,n){var r=e.target;r!==n&&!n.contains(r)&&!this._triggerEl.contains(r)&&this.isVisible()&&this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return wo(wo({},e),{modifiers:Lc(Lc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return wo(wo({},e),{modifiers:Lc(Lc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function sh(){document.querySelectorAll("[data-popover-target]").forEach(function(t){var e=t.getAttribute("data-popover-target"),n=document.getElementById(e);if(n){var r=t.getAttribute("data-popover-trigger"),o=t.getAttribute("data-popover-placement"),a=t.getAttribute("data-popover-offset");new M3(n,t,{placement:o||Rs.placement,offset:a?parseInt(a):Rs.offset,triggerType:r||Rs.triggerType})}else console.error('The popover element with id "'.concat(e,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=M3,window.initPopovers=sh);var Ic=globalThis&&globalThis.__assign||function(){return Ic=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Ic.apply(this,arguments)},lh={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},D3=function(){function t(e,n,r,o){e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=lh),this._parentEl=e,this._triggerEl=n,this._targetEl=r,this._options=Ic(Ic({},lh),o),this._visible=!1,this._init()}return t.prototype._init=function(){var e=this;if(this._triggerEl){var n=this._getTriggerEventTypes(this._options.triggerType);n.showEvents.forEach(function(r){e._triggerEl.addEventListener(r,function(){e.show()}),e._targetEl.addEventListener(r,function(){e.show()})}),n.hideEvents.forEach(function(r){e._parentEl.addEventListener(r,function(){e._parentEl.matches(":hover")||e.hide()})})}},t.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this._visible?this.hide():this.show()},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t.prototype._getTriggerEventTypes=function(e){switch(e){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t}();function uh(){document.querySelectorAll("[data-dial-init]").forEach(function(t){var e=t.querySelector("[data-dial-toggle]");if(e){var n=e.getAttribute("data-dial-toggle"),r=document.getElementById(n);if(r){var o=e.getAttribute("data-dial-trigger");new D3(t,e,r,{triggerType:o||lh.triggerType})}else console.error("Dial with id ".concat(n," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(t.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=D3,window.initDials=uh);function eq(){X0(),Q0(),Z0(),eh(),th(),nh(),oh(),ih(),ah(),sh(),uh()}typeof window<"u"&&(window.initFlowbite=eq);var tq=new ZH("load",[X0,Q0,Z0,eh,th,nh,oh,ih,ah,sh,uh]);tq.init();const nq=i.defineComponent({name:"KDrawer",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:"Drawer"},placement:{type:String,default:"right",options:["right","left","top","bottom"]},backdrop:{type:Boolean,default:!0},width:{type:Number,default:360,description:"Ancho del drawer en `px`"},loading:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,e){const n=_t(),r=i.ref(null);let o=null;const a=d=>!!e.slots[d],s={placement:t.placement,backdrop:t.backdrop,bodyScrolling:!1,edge:!1,edgeOffset:"",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-30",onShow:()=>{e.emit("update:modelValue",!0)},onHide:()=>{e.emit("update:modelValue",!1)}},l=x3(()=>{if(t.placement==="right")return"top-0 right-0 h-screen overflow-y-auto translate-x-full";if(t.placement==="left")return"top-0 left-0 h-screen overflow-y-auto -translate-x-full";if(t.placement==="top")return"top-0 left-0 right-0 w-full -translate-y-full ";if(t.placement==="bottom")return"bottom-0 left-0 right-0 w-full overflow-y-auto transform-none"}),u=x3(()=>t.placement==="right"||t.placement==="left"?{width:`${t.width}px`}:{}),c=()=>{e.emit("update:modelValue",!1)};return i.onMounted(()=>{var p;const d=document.getElementById(n);if(d){const f=d.parentNode;if(f){f.removeChild(d),document.getElementsByTagName("body")[0].appendChild(d);const h=document.addEventListener;document.addEventListener=function(m,g,b){return m==="keydown"&&(o=g),h.call(this,m,g,b)},r.value=new rh(d,s),document.addEventListener=h,t.modelValue&&((p=r.value)==null||p.show())}}}),i.watch(()=>t.modelValue,d=>{var p,f;d?(p=r.value)==null||p.show():(f=r.value)==null||f.hide(),e.emit("update:modelValue",d)}),i.onBeforeUnmount(()=>{var d,p;(d=r.value)==null||d.hide(),o&&(document.removeEventListener("keydown",o),o=null),r.value=null,(p=document.getElementById(n))==null||p.remove()}),{drawerId:n,hide:c,hasSlot:a,classes:l,styles:u}}}),rq=["id"],oq={class:"flex flex-col h-full"},iq={class:"flex flex-row items-center border-b dark:border-gray-600 mb-4 pb-4 justify-between -mx-4 px-4"},aq={class:"flex-1 -m-4 relative"},sq={key:0,class:"flex z-50 absolute top-0 left-0 w-full h-full items-center justify-center bg-white bg-opacity-80 dark:bg-gray-900 dark:bg-opacity-80 cursor-progress"},lq={class:"p-4"},uq={key:0,class:"flex flex-row items-center border-t dark:border-gray-600 justify-between px-4 pt-4 pb-0 -mx-4 mt-auto"};function cq(t,e,n,r,o,a){const s=i.resolveComponent("k-title"),l=i.resolveComponent("k-button"),u=i.resolveComponent("k-icon");return i.openBlock(),i.createElementBlock("div",{id:t.drawerId,class:i.normalizeClass(["fixed z-40 max-w-full p-4 transition-transform bg-white dark:bg-gray-800",t.classes]),tabindex:"-1",style:i.normalizeStyle(t.styles)},[i.createElementVNode("div",oq,[i.createElementVNode("div",iq,[t.hasSlot("header")?i.renderSlot(t.$slots,"header",{key:0}):(i.openBlock(),i.createBlock(s,{key:1,size:5,class:"font-semibold text-gray-800 dark:text-gray-400 overflow-hidden"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.title)+"  ",1)]),_:1})),i.createVNode(l,{icon:"times",color:"gray",neon:"",size:"md",onClick:t.hide},null,8,["onClick"])]),i.createElementVNode("div",aq,[i.createVNode(i.Transition,{name:"animated_fade","enter-active-class":"animate__animated animate__faster animate__fadeIn","leave-active-class":"animate__animated animate__faster animate__fadeOut"},{default:i.withCtx(()=>[t.loading?(i.openBlock(),i.createElementBlock("div",sq,[i.createVNode(u,{icon:"spinner-third",spin:"",class:"text-primary",size:40})])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",lq,[i.renderSlot(t.$slots,"default")])]),t.hasSlot("footer")?(i.openBlock(),i.createElementBlock("div",uq,[i.renderSlot(t.$slots,"footer")])):i.createCommentVNode("",!0)])],14,rq)}const dq=de(nq,[["render",cq]]),fq=i.defineComponent({name:"KAccordion",props:{classes:{type:String,default:""},activeClasses:{type:String,default:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white"},inactiveClasses:{type:String,default:"text-gray-500 dark:text-gray-400"},alwaysOpen:{type:Boolean,default:!1}},setup(t){const e=_t(),n=()=>{const r=i.ref(null),o=()=>{const l=[];return document.querySelectorAll(`#${e} [data-accordion-trigger]`).forEach(c=>{const d=c.getAttribute("id"),p=c.getAttribute("data-accordion-scope");if(d&&p){const f=document.getElementById(d),h=document.getElementById(p),m=c.getAttribute("data-accordion-open")==="true";f&&h&&l.push({id:d,triggerEl:f,targetEl:h,active:m})}}),l},a={alwaysOpen:!1,activeClasses:`${t.activeClasses}`,inactiveClasses:`${t.inactiveClasses}`},s=o();r.value=new Cc(s,a)};return i.onMounted(()=>{n()}),{accordionId:e}}}),pq=["id"];function hq(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",{id:t.accordionId,class:"k-accordion"},[i.renderSlot(t.$slots,"default")],8,pq)}const mq=de(fq,[["render",hq]]),gq=i.defineComponent({name:"KAccordionItem",props:{open:{type:Boolean,default:!1}},setup(){var o,a;const t=_t(),e=_t(),n=i.getCurrentInstance(),r=((a=(o=n==null?void 0:n.parent)==null?void 0:o.props)==null?void 0:a.classes)||"";return{accordionTarget:t,accordionTrigger:e,parentClasses:r}}}),bq=["id","data-accordion-scope","data-accordion-open"],yq=["id"];function wq(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:t.accordionTrigger,"data-accordion-scope":t.accordionTarget,"data-accordion-trigger":"","data-accordion-open":t.open,class:i.normalizeClass(t.parentClasses)},[i.renderSlot(t.$slots,"header")],10,bq),i.createElementVNode("div",{id:t.accordionTarget,class:i.normalizeClass({hidden:!t.open})},[i.renderSlot(t.$slots,"content")],10,yq)],64)}const vq=de(gq,[["render",wq]]),kq=i.defineComponent({name:"KPrice",props:{value:{type:[String,Number],default:""},decimals:{type:Number,default:2},currency:{type:String,default:"€"},size:{type:String,default:"xs"}},setup(t){return{price:i.computed(()=>{let n=t.value;return typeof n=="string"&&(n=parseFloat(n)),n.toFixed(t.decimals).replace(".",",")})}}});function xq(t,e,n,r,o,a){const s=i.resolveComponent("k-badge");return i.openBlock(),i.createBlock(s,{size:t.size,color:"gray",class:"font-consola text-gray-900",neon:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.price)+i.toDisplayString(t.currency),1)]),_:1},8,["size"])}const Eq=de(kq,[["render",xq]]),Cq={columns:{type:Array,required:!0,description:"Array con las columnas a mostrar"},data:{type:Array,default:()=>[],description:"Array con los datos a mostrar"},loading:{type:Boolean,default:!1,description:"Indica si se estan cargando los datos"},maxHeight:{type:[String,Number],default:"auto"}};function Sq(t){const e=i.computed(()=>{const r=t.columns,o=[];return r==null||r.forEach(a=>{let s=a.width||void 0;a.slot==="_image"&&(s="5rem"),a.slot&&["header","footer","content"].includes(a.slot)&&(a.slot="");const l={title:a.title,index:a.index||"",nowrap:a.nowrap||!0,width:s,align:a.align||"left",slot:a.slot||"",style:{position:"relative"},url:a.url||void 0};l.nowrap&&(l.style["white-space"]="nowrap"),l.align&&(l.style["text-align"]=l.align),l.width&&(l.style.width=l.width),a.style&&(l.style={...l.style,...a.style}),o.push(l)}),o}),n=i.computed(()=>{let r=1;return r+=e.value.length,r});return{cols:e,colLength:n}}const _q=i.defineComponent({name:"KSimpleTable",autoload:!0,props:Cq,emits:["fetch","filter"],setup(t,e){const n=a=>!!e.slots[a],{cols:r,colLength:o}=Sq(t);return{hasSlot:n,cols:r,colLength:o}}}),PY="",Tq={class:"k-simple-table"},Nq={key:0,class:"flex z-40 absolute top-0 left-0 w-full h-full items-center justify-center bg-white bg-opacity-80 dark:bg-gray-900 dark:bg-opacity-80 cursor-progress"},Oq={class:"k-simple-table-content"},$q={class:"k-simple-table-tr k-simple-table-head"},Aq={key:1};function Mq(t,e,n,r,o,a){const s=i.resolveComponent("k-icon");return i.openBlock(),i.createElementBlock("div",Tq,[i.createElementVNode("div",{class:"k-simple-table-body",style:i.normalizeStyle({maxHeight:t.maxHeight})},[i.createVNode(i.Transition,{name:"animated_fade","enter-active-class":"animate__animated animate__faster animate__fadeIn","leave-active-class":"animate__animated animate__faster animate__fadeOut"},{default:i.withCtx(()=>[t.loading?(i.openBlock(),i.createElementBlock("div",Nq,[i.createVNode(s,{icon:"spinner-third",spin:"",class:"text-primary",size:40})])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",Oq,[i.createElementVNode("div",$q,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.cols,(l,u)=>(i.openBlock(),i.createElementBlock("div",{key:u,style:i.normalizeStyle(l.style),class:"k-simple-table-td"},i.toDisplayString(l.title),5))),128))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.data,(l,u)=>(i.openBlock(),i.createElementBlock("div",{key:u,class:"k-simple-table-tr"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.cols,(c,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,style:i.normalizeStyle(c.style),class:"k-simple-table-td"},[c.slot?i.renderSlot(t.$slots,c.slot,i.normalizeProps(i.mergeProps({key:0},{row:l,value:l[c.index],index:u})),void 0,!0):(i.openBlock(),i.createElementBlock("div",Aq,i.toDisplayString(l[c.index]),1))],4))),128))]))),128))])],4)])}const Dq=de(_q,[["render",Mq],["__scopeId","data-v-ddf873af"]]),B3=Symbol("addTab"),P3=Symbol("updateTab"),V3=Symbol("deleteTab"),L3=Symbol("tabsProvider"),Bq=i.defineComponent({name:"KTabs",props:{modelValue:{type:[String,Number],default:0},classes:{type:String,default:""},shadow:{type:Boolean,default:!0}},emits:["changed","clicked"],setup(t,{emit:e}){const n=i.reactive({activeTabHash:"",lastActiveTabHash:"",tabs:[]});i.provide(L3,n),i.provide(B3,a=>{n.tabs.push(a)}),i.provide(P3,(a,s)=>{const l=n.tabs.findIndex(u=>u.computedId===a);s.isActive=n.tabs[l].isActive,n.tabs[l]=s}),i.provide(V3,a=>{const s=n.tabs.findIndex(l=>l.computedId===a);n.tabs.splice(s,1)});const r=(a,s)=>{s&&s.preventDefault();const l=o(a);if(l){if(s&&l.isDisabled){s.preventDefault();return}if(n.lastActiveTabHash===l.hash){e("clicked",{tab:l});return}n.tabs.forEach(u=>{u.isActive=u.hash===l.hash}),e("changed",{tab:l}),n.lastActiveTabHash=n.activeTabHash=l.hash}},o=a=>n.tabs.find(s=>s.hash===a);return i.onMounted(()=>{if(n.tabs.length){if(window.addEventListener("hashchange",()=>r(window.location.hash)),o(window.location.hash)){r(window.location.hash);return}r(n.tabs[0].hash)}}),{state:n,selectTab:r,findTab:o}}}),VY="",Pq={role:"tablist",class:"k-tab-list"},Vq=["onClick"],Lq=["aria-controls","aria-selected","href","innerHTML"],Iq={class:"k-tab-pane"};function Rq(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["k-tabs",[t.classes,t.shadow?"k-tab-shadow":""]])},[i.createElementVNode("ul",Pq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.state.tabs,(s,l)=>(i.openBlock(),i.createElementBlock("li",{key:l,class:i.normalizeClass(["k-tab-item",{"k-tab-active":s.isActive,"k-tab-disabled":s.isDisabled}]),role:"presentation",onClick:u=>t.selectTab(s.hash,u)},[i.createElementVNode("a",{role:"tab","aria-controls":s.paneId,"aria-selected":s.isActive,href:s.hash,innerHTML:s.header},null,8,Lq)],10,Vq))),128))]),i.createElementVNode("div",Iq,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],2)}const zq=de(Bq,[["render",Rq],["__scopeId","data-v-2fc63239"]]);function Rc(t,e){const n=i.inject(t,e);if(typeof n>"u")throw new Error(`Could not resolve ${t.description}`);return n}const Fq=i.defineComponent({name:"KTab",props:{id:{type:String,default:null},classes:{type:String,default:""},title:{type:String,required:!0},disabled:{type:Boolean,default:!1}},setup(t){const e=i.ref(!1),n=Rc(L3),r=Rc(B3),o=Rc(P3),a=Rc(V3),s=t.id?t.id:t.title.toLowerCase().replace(/ /g,"-"),l=i.computed(()=>t.title),u=s+"-pane",c=i.computed(()=>"#"+(t.disabled?"":s));return i.watch(()=>n.activeTabHash,()=>{e.value=c.value===n.activeTabHash}),i.watch(()=>Object.assign({},t),()=>{o(s,{name:t.title,header:l.value,isDisabled:t.disabled,hash:c.value,index:n.tabs.length,computedId:s,paneId:u})}),i.onBeforeMount(()=>{r({name:t.title,header:l.value,isDisabled:t.disabled,hash:c.value,index:n.tabs.length,computedId:s,paneId:u})}),i.onBeforeUnmount(()=>{a(s)}),{header:l.value,computedId:s,paneId:u,hash:c,isActive:e}}}),Hq=["id","data-tab-id","aria-hidden"];function qq(t,e,n,r,o,a){return i.withDirectives((i.openBlock(),i.createElementBlock("section",{id:t.paneId,ref:"tab","data-tab-id":t.computedId,"aria-hidden":!t.isActive,class:i.normalizeClass(t.classes),role:"tabpanel"},[i.renderSlot(t.$slots,"default")],10,Hq)),[[i.vShow,t.isActive]])}const jq=de(Fq,[["render",qq]]),Uq=["onDragenter","onDragover","onDragleave","onDrop"],Wq=i.defineComponent({__name:"k-drag",emits:["drop"],setup(t,{emit:e}){let n=i.ref(!1),r=null;function o(){n.value=!0,clearTimeout(r)}function a(){r=setTimeout(()=>{n.value=!1},50)}function s(l){a(),e("drop",[...l.dataTransfer.files])}return(l,u)=>(i.openBlock(),i.createElementBlock("div",{onDragenter:i.withModifiers(o,["prevent"]),onDragover:i.withModifiers(o,["prevent"]),onDragleave:i.withModifiers(a,["prevent"]),onDrop:i.withModifiers(s,["prevent"])},[i.renderSlot(l.$slots,"dropzone",i.normalizeProps(i.guardReactiveProps({active:i.unref(n)})))],40,Uq))}}),Kq=i.defineComponent({name:"KModal",props:{modelValue:{type:Boolean,default:!1,description:"Controla la apertura del modal"},title:{type:String,default:"",description:"Título del modal"},placement:{type:String,default:"top",options:["top-left","top-center","top-right","center-left","center-center","center-right","bottom-left","bottom-center","bottom-right"],description:"Posición del modal"},header:{type:Boolean,default:!0,description:"Permite mostrar u ocultar el header del modal"},closable:{type:Boolean,default:!0,description:"Permite cerrar el modal desde el backdrop o clicando en el botón de cerrar"},backdropClose:{type:Boolean,default:!0,description:"Permite cerrar el modal desde el backdrop"},size:{type:String,default:"lg",options:["sm","md","lg","xl"],description:"Tamaño del modal"},zIndex:{type:Number,default:40,description:"Indica el z-index del modal"}},emits:["update:modelValue","show","hide","toggle"],setup(t,e){const n=_t(),r=i.ref(null),o=p=>!!e.slots[p],a=()=>({placement:t.placement,backdrop:t.backdropClose?"dynamic":"static",backdropClasses:c.value,closable:t.closable,onHide:()=>{e.emit("update:modelValue",!1),e.emit("hide")},onShow:()=>{e.emit("update:modelValue",!0),e.emit("show")},onToggle:()=>{e.emit("toggle")}}),s=()=>{const p=document.getElementById(n);if(p){const f=p.parentNode;if(f){f.removeChild(p),document.getElementsByTagName("body")[0].appendChild(p);const h=a();r.value=new $c(p,h),t.modelValue?r.value.show():r.value.hide()}}},l=()=>{e.emit("update:modelValue",!1)};i.watch(()=>t.modelValue,p=>{var f,h;p?(f=r.value)==null||f.show():(h=r.value)==null||h.hide(),e.emit("update:modelValue",p)}),i.watch(()=>t.placement,p=>{const f=document.getElementById(n);f&&(f.className=u.value),s()});const u=i.computed(()=>{const p=["fixed top-0 left-0 right-0 hidden w-full p-4 overflow-x-hidden overflow-y-auto md:inset-0 h-[calc(100%-1rem)] md:h-full"];return t.zIndex===50?p.push("z-50"):t.zIndex===40?p.push("z-40"):t.zIndex===30?p.push("z-30"):t.zIndex===20?p.push("z-20"):t.zIndex===10?p.push("z-10"):p.push("z-50"),p.join(" ")}),c=i.computed(()=>{const p=["bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0"];return t.zIndex===50?p.push("z-40"):t.zIndex===40?p.push("z-30"):t.zIndex===30?p.push("z-20"):t.zIndex===20?p.push("z-10"):t.zIndex===10?p.push("z-0"):p.push("z-40"),p.join(" ")}),d=i.computed(()=>{const p=[];return t.size==="xs"?p.push("max-w-md"):t.size==="sm"?p.push("max-w-xl"):t.size==="md"?p.push("max-w-2xl"):t.size==="lg"?p.push("max-w-4xl"):t.size==="xl"&&p.push("max-w-5xl"),p});return i.onMounted(()=>{s()}),i.onBeforeUnmount(()=>{var p,f;(p=r.value)==null||p.hide(),r.value=null,(f=document.getElementById(n))==null||f.remove()}),{modalId:n,hasSlot:o,hide:l,defaultModalClasses:u,contentClasses:d}}}),Yq=["id"],Gq={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},Jq={key:0,class:"flex items-center px-6 py-5 border-b rounded-t dark:border-gray-600"},Xq=i.createElementVNode("span",{class:"sr-only"},"Close menu",-1),Qq={class:"p-6"},Zq={key:1,class:"flex items-center px-6 py-5 border-t border-gray-200 rounded-b dark:border-gray-600"};function ej(t,e,n,r,o,a){const s=i.resolveComponent("k-title"),l=i.resolveComponent("k-icon");return i.openBlock(),i.createElementBlock("div",{id:t.modalId,tabindex:"-1","aria-hidden":"true",class:i.normalizeClass(t.defaultModalClasses)},[i.createElementVNode("div",{class:i.normalizeClass(["relative w-full h-full md:h-auto",t.contentClasses])},[i.createElementVNode("div",Gq,[t.header&&(t.title||t.hasSlot("header"))?(i.openBlock(),i.createElementBlock("div",Jq,[t.hasSlot("header")?i.renderSlot(t.$slots,"header",{key:0}):(i.openBlock(),i.createBlock(s,{key:1,size:5,class:"font-semibold"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.title),1)]),_:1})),t.closable?(i.openBlock(),i.createElementBlock("button",{key:2,type:"button",class:"text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg w-8 h-8 text-sm flex items-center justify-center dark:hover:bg-gray-600 dark:hover:text-white ml-auto",onClick:e[0]||(e[0]=(...u)=>t.hide&&t.hide(...u))},[i.createVNode(l,{icon:"times"}),Xq])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",Qq,[i.renderSlot(t.$slots,"default")]),t.hasSlot("footer")?(i.openBlock(),i.createElementBlock("div",Zq,[i.renderSlot(t.$slots,"footer")])):i.createCommentVNode("",!0)])],2)],10,Yq)}const tj=de(Kq,[["render",ej]]),nj=i.defineComponent({name:"KConfirm",autoload:!0,props:{icon:{type:String,default:"question-circle"},title:{type:String,default:"¿Estás seguro de realizar esta acción?",description:"Pregunta de confirmación"},okText:{type:String,default:"Aceptar"},koText:{type:String,default:"Cancelar"},disabled:{type:Boolean,default:!1},unlocked:{type:Boolean,default:!1}},emits:["ok","ko"],setup(t,e){const n=i.ref(!1),r=i.computed({get(){return n.value===!0&&!t.disabled},set(l){n.value=l}}),o=()=>{e.emit("ok"),n.value=!1};return{showModal:n,ok:o,ko:()=>{e.emit("ko"),n.value=!1},open:()=>{t.disabled||(t.unlocked?o():n.value=!0)},model:r}}}),rj={KConfirm:"_KConfirm_1xpqm_1",btn:"_btn_1xpqm_1",icon:"_icon_1xpqm_6"},oj={class:"mb-4 text-gray-700 dark:text-gray-200 font-semibold text-xl text-center"};function ij(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-button"),u=i.resolveComponent("k-modal");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(u,{modelValue:t.model,"onUpdate:modelValue":e[0]||(e[0]=c=>t.model=c),size:"xs","z-index":50},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["flex flex-col items-center",t.$style.KConfirm])},[i.createVNode(s,{icon:t.icon,type:"far",class:"text-gray-300 mb-6",size:60},null,8,["icon"]),i.createElementVNode("div",oj,i.toDisplayString(t.title),1),i.createElementVNode("div",null,[i.createVNode(l,{color:"success",class:"mr-2 cursor-pointer",onClick:t.ok},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.okText),1)]),_:1},8,["onClick"]),i.createVNode(l,{color:"danger",class:"cursor-pointer",outline:"",onClick:t.ko},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.koText),1)]),_:1},8,["onClick"])])],2)]),_:1},8,["modelValue"]),i.createElementVNode("span",{onClick:e[1]||(e[1]=i.withModifiers(c=>t.open(),["stop"]))},[i.renderSlot(t.$slots,"default")])],64)}const aj=de(nj,[["render",ij],["__cssModules",{$style:rj}]]),sj=i.defineComponent({name:"KEmpty",autoload:!0,props:{title:{type:String,default:"No se encontraron resultados",description:"Título"},subtitle:{type:String,default:"",description:"Subtítulo"},image:{type:String,default:"",description:"Url de la imagen"}},setup(t,{slots:e}){const n=o=>!!e[o],r=i.computed(()=>t.image?t.image:"https://kodamaui.s3.eu-west-1.amazonaws.com/errors/404/frontend/404-1.svg");return{hasSlot:n,img404:r}}}),lj={class:"max-w-md overflow-hidden"},uj=["src"],cj={class:"mb-6 text-center whitespace-normal"},dj={class:"flex justify-center"};function fj(t,e,n,r,o,a){const s=i.resolveComponent("k-title");return i.openBlock(),i.createElementBlock("div",lj,[i.createElementVNode("img",{src:t.img404,class:"mb-4 w-full"},null,8,uj),i.createElementVNode("div",cj,[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:1}):(i.openBlock(),i.createBlock(s,{key:0,size:3,bolder:"",uppercase:"",class:"text-gray-900 dark:text-white"},i.createSlots({default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.title)+" ",1)]),_:2},[t.subtitle?{name:"subtitle",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.subtitle),1)]),key:"0"}:void 0]),1024)),t.hasSlot("subtitle")?i.renderSlot(t.$slots,"subtitle",{key:2}):i.createCommentVNode("",!0)]),i.createElementVNode("div",dj,[i.renderSlot(t.$slots,"action")])])}const pj=de(sj,[["render",fj]]),hj=i.defineComponent({name:"KLoading",autoload:!0,props:{active:{type:Boolean,default:!1,description:"Show or hide the loader"},type:{type:String,default:"bars",description:"Type of loader",options:["spinner","bars","dots"],validator:t=>["spinner","bars","dots"].includes(t),control:"inline-radio"},fullpage:{type:Boolean,default:!1,description:"Show the loader as full page"},overlayClasses:{type:String,default:""}},setup(){const t=Fe();return{backgroundColor:i.computed(()=>t.get("darkMode").value?"#1f2937":"#F3F4F6")}}}),mj={class:"relative"};function gj(t,e,n,r,o,a){const s=i.resolveComponent("k-icon");return i.openBlock(),i.createElementBlock("div",mj,[i.createVNode(i.Transition,{name:"animated_fade","enter-active-class":"animate__animated animate__faster animate__fadeIn","leave-active-class":"animate__animated animate__faster animate__fadeOut"},{default:i.withCtx(()=>[t.active?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["flex z-50 top-0 left-0 w-full h-full items-center justify-center bg-white bg-opacity-80 dark:bg-gray-900 dark:bg-opacity-80 cursor-progress",[{fixed:t.fullpage,absolute:!t.fullpage,[t.overlayClasses]:!0}]])},[i.createVNode(s,{icon:"spinner-third",spin:"",class:"text-primary",size:40})],2)):i.createCommentVNode("",!0)]),_:1}),i.renderSlot(t.$slots,"default")])}const bj=de(hj,[["render",gj]]),yj=i.defineComponent({name:"KHelp",autoload:!0,props:{text:{type:String,default:"",description:"Texto de la ayuda"},icon:{type:String,default:"seal-question",description:"Icono"}},setup(t,{slots:e}){return{hasSlot:r=>!!e[r]}}}),wj={class:"flex flex-col text-sm"},vj=i.createElementVNode("div",{class:"border-b border-b-gray-600 px-4 py-1 text-center uppercase font-bold flex justify-center"},[i.createElementVNode("span",null,"Ayuda")],-1),kj={class:"px-4 py-2"};function xj(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-tooltip");return i.openBlock(),i.createBlock(l,{content:t.text},{content:i.withCtx(()=>[i.createElementVNode("div",wj,[vj,i.createElementVNode("div",kj,[t.hasSlot("default")?i.renderSlot(t.$slots,"default",{key:0}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(t.text),1)],64))])])]),default:i.withCtx(()=>[i.createVNode(s,{type:"fad",icon:t.icon,class:"dark:text-white text-gray-200"},null,8,["icon"])]),_:3},8,["content"])}const Ej=de(yj,[["render",xj]]),Cj=i.defineComponent({name:"KAlert",autoload:!0,props:{title:{type:String,default:"",description:"Texto de la ayuda"},icon:{type:String,default:"seal-question",description:"Icono"},iconType:{type:String,default:"fad",description:"Icono"},iconSize:{type:Number,default:0,description:"Tamaño del icono"},type:{type:String,default:"primary",options:["primary","success","warning","danger"],description:"Tipo de alerta"},outline:{type:Boolean,default:!1,description:"Aplica el estilo `outline`"},neon:{type:Boolean,default:!1,description:"Aplica el estilo `neon`"},closable:{type:Boolean,default:!1,description:"Permite cerrar la alerta"}},setup(t,e){const n=i.ref(!1),r=s=>!!e.slots[s],o=i.computed(()=>{const s=["k-alert"];return t.type&&s.push(`k-alert-${t.type}`),t.outline?s.push("k-alert-outline"):t.neon&&s.push("k-alert-neon"),s});return{closed:n,classes:o,close:()=>{n.value=!0,e.emit("close")},hasSlot:r}}}),FY="",Sj={class:"w-full"},_j={key:0,class:"font-bold"};function Tj(t,e,n,r,o,a){const s=i.resolveComponent("k-icon");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(t.classes)},[i.createVNode(s,{icon:t.icon,type:t.iconType,size:t.iconSize,class:"mr-2"},null,8,["icon","type","size"]),i.createElementVNode("div",Sj,[t.title?(i.openBlock(),i.createElementBlock("div",_j,i.toDisplayString(t.title),1)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default")]),t.hasSlot("close")?i.renderSlot(t.$slots,"close",{key:0}):t.closable?(i.openBlock(),i.createElementBlock("div",{key:1,class:"ml-auto cursor-pointer self-start",onClick:e[1]||(e[1]=l=>t.$emit("close"))},[i.createElementVNode("button",{type:"button",class:"ml-4 -mx-1.5 -my-1.5 rounded-lg p-1.5 inline-flex h-8 w-8 hover:bg-gray-200 hover:bg-opacity-20 justify-center items-center",onClick:e[0]||(e[0]=(...l)=>t.close&&t.close(...l))},[i.createVNode(s,{icon:"times",type:"fas"})])])):i.createCommentVNode("",!0)],2)),[[i.vShow,!t.closed]])}const Nj=de(Cj,[["render",Tj]]),Oj=i.defineComponent({name:"KSkeleton",props:{type:{type:String,default:"text",options:["text","card"],description:"Tipo de skeleton a mostrar",validator:t=>["text","card"].includes(t)},animated:{type:Boolean,default:!1,description:"Especifica si el skeleton estará animado"}},setup(t){return{classes:i.computed(()=>({"animate-pulse":t.animated}))}}}),$j=[i.createStaticVNode('<div class="flex items-center w-full space-x-2"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32"></div><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24"></div><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full"></div></div><div class="flex items-center w-full space-x-2 max-w-[480px]"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-full"></div><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full"></div><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24"></div></div><div class="flex items-center w-full space-x-2 max-w-[400px]"><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-80"></div><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full"></div></div><div class="flex items-center w-full space-x-2 max-w-[480px]"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-full"></div><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full"></div><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24"></div></div><div class="flex items-center w-full space-x-2 max-w-[440px]"><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-32"></div><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-full"></div></div><div class="flex items-center w-full space-x-2 max-w-[360px]"><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-80"></div><div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full"></div></div><span class="sr-only">Loading...</span>',7)],Aj=[i.createStaticVNode('<div class="flex items-center justify-center h-48 mb-4 bg-gray-300 rounded dark:bg-gray-700"><svg class="w-12 h-12 text-gray-200 dark:text-gray-600" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512"><path d="M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z"></path></svg></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div><div class="flex items-center mt-4 space-x-3"><svg class="text-gray-200 w-14 h-14 dark:text-gray-700" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path></svg><div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32 mb-2"></div><div class="w-48 h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div></div></div><span class="sr-only">Loading...</span>',7)],Mj=[i.createElementVNode("div",{class:"flex items-center justify-center h-48 w-48 bg-gray-300 rounded dark:bg-gray-700"},[i.createElementVNode("svg",{class:"w-12 h-12 text-gray-200 dark:text-gray-600",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 640 512"},[i.createElementVNode("path",{d:"M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z"})])],-1)];function Dj(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",null,[t.type==="text"?(i.openBlock(),i.createElementBlock("div",{key:0,role:"status",class:i.normalizeClass(["space-y-2.5 max-w-lg",t.classes])},$j,2)):i.createCommentVNode("",!0),t.type==="card"?(i.openBlock(),i.createElementBlock("div",{key:1,role:"status",class:i.normalizeClass(["max-w-sm p-4 border border-gray-200 rounded shadow md:p-6 dark:border-gray-700",t.classes])},Aj,2)):i.createCommentVNode("",!0),t.type==="image"?(i.openBlock(),i.createElementBlock("div",{key:2,role:"status",class:i.normalizeClass(["max-w-sm p-4 border border-gray-200 rounded shadow md:p-6 dark:border-gray-700",t.classes])},Mj,2)):i.createCommentVNode("",!0)])}const Bj=de(Oj,[["render",Dj]]),I3=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end","auto","auto-start","auto-end"],Pj=i.defineComponent({name:"KDropdown",autoload:!0,props:{placement:{type:String,default:"bottom-end",options:I3},trigger:{type:String,default:"focusin",options:["click","mouseenter","focus","manual","focusin"]},tag:{type:String,default:"button"},maxHeight:{type:Number,default:0},minWidth:{type:Number,default:0},maxWidth:{type:Number,default:0}},setup(t,{slots:e}){const n=i.ref(),r=l=>!!e[l],o=()=>{n.value&&n.value.hide()},a=()=>{n.value&&n.value.show()},s=i.computed(()=>({maxHeight:t.maxHeight?`${t.maxHeight}px`:"auto",overflowY:"auto"}));return{hasSlot:r,ulStyle:s,tooltip:n,hide:o,show:a}}}),Vj=["onClick"];function Lj(t,e,n,r,o,a){const s=i.resolveComponent("k-dropdown-menu"),l=i.resolveComponent("k-tooltip");return i.openBlock(),i.createBlock(l,{ref:"tooltip",arrow:"",interactive:"","hide-on-click":!1,trigger:t.trigger,placement:t.placement,theme:"dropdown",tag:t.tag,class:"select-none"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),content:i.withCtx(({hide:u})=>[i.createElementVNode("ul",{class:"k-dropdown-items text-base text-gray-700 dark:text-gray-200 text-left bg-white dark:bg-gray-800",style:i.normalizeStyle(t.ulStyle),onClick:u},[t.hasSlot("header")?(i.openBlock(),i.createBlock(s,{key:0,class:"px-4 py-3 text-gray-900 dark:text-white"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"header")]),_:3})):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"content"),t.hasSlot("footer")?(i.openBlock(),i.createBlock(s,{key:1,class:"px-4 py-3 text-gray-900 dark:text-white"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"footer")]),_:3})):i.createCommentVNode("",!0)],12,Vj)]),_:3},8,["trigger","placement","tag"])}const Ij=de(Pj,[["render",Lj]]),Rj=i.defineComponent({name:"KDropdownMenu",props:{selected:{type:Boolean,default:!1}},setup(){return{}}});function zj(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass({selected:t.selected})},[i.renderSlot(t.$slots,"default")],2)}const Fj=de(Rj,[["render",zj]]),Hj=i.defineComponent({name:"KDropdownSubmenu",props:{placement:{type:String,default:"right-start",options:I3},trigger:{type:String,default:"focusin",options:["click","mouseenter","focus","manual","focusin"]},tag:{type:String,default:"div"},maxHeight:{type:Number,default:0},minWidth:{type:Number,default:0},maxWidth:{type:Number,default:0}},setup(t){return{ulStyle:i.computed(()=>({maxHeight:t.maxHeight?`${t.maxHeight}px`:"auto",overflowY:t.maxHeight?"auto":"visible"}))}}}),qj={class:"flex flex-row items-center"},jj=i.createElementVNode("div",{class:"ml-auto"},null,-1),Uj=["onClick"];function Wj(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-tooltip");return i.openBlock(),i.createBlock(l,{arrow:"",interactive:"","hide-on-click":!1,trigger:"mouseenter",theme:"dropdown",tag:"li",placement:t.placement},{default:i.withCtx(()=>[i.createElementVNode("div",qj,[i.renderSlot(t.$slots,"default"),jj,i.createVNode(s,{icon:"chevron-right",class:"ml-2",type:"fas",size:12})])]),content:i.withCtx(({hide:u})=>[i.createElementVNode("ul",{class:"k-dropdown-items text-base text-gray-700 dark:text-gray-200 text-left",style:i.normalizeStyle(t.ulStyle),onClick:u},[i.renderSlot(t.$slots,"content")],12,Uj)]),_:3},8,["placement"])}const Kj=de(Hj,[["render",Wj]]),Yj=i.defineComponent({name:"KDropdownDivider",autoload:!0,setup(){return{}}}),Gj={class:"separator my-3"};function Jj(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",Gj)}const Xj=de(Yj,[["render",Jj]]),Qj=i.defineComponent({name:"KBubble1",props:{color:{type:String,default:"#f7f9fd"}},setup(){return{}}}),Zj=[i.createElementVNode("pattern",{id:"img1",patternUnits:"userSpaceOnUse",width:"100%",height:"100%","data-stylerecorder":"true",style:{"text-align":"inherit","line-height":"22px","letter-spacing":"0px","font-weight":"400","font-size":"16px"}},[i.createElementVNode("image",{href:"",x:"0",y:"0",width:"100%",height:"100%","data-stylerecorder":"true",style:{"text-align":"inherit","line-height":"22px","letter-spacing":"0px","font-weight":"400","font-size":"16px"}})],-1),i.createElementVNode("path",{d:"","data-stylerecorder":"true",style:{"text-align":"inherit","line-height":"22px","letter-spacing":"0px","font-weight":"400","font-size":"16px"}},[i.createElementVNode("animate",{repeatCount:"indefinite",attributeName:"d",dur:"10s",values:`
        M6.5,39.4C7.9,62.9,6,81.5,3.8,94.8c-2.9,17.7-7.2,30.9,0.4,41.9c5.9,8.5,15.7,11,17.6,11.5
        c17.9,4.5,26.2-9.4,64-27c25.6-11.9,39.7-13.9,45.3-28c3.1-7.9,1.9-15.3,1.5-17.3c-2.7-12.7-14.2-21.9-28.5-30.4
        c-20-12-39.7-48.3-72-45.2C29.1,0.5,21.6,1.3,15.3,7C3.2,17.7,6,36.7,6.5,39.4z;

        M6.5,39.4C7.9,62.9,6,81.5,3.8,94.8c-4.1,24.8-5.6,33.6,0.4,41.9c10.6,14.8,41.6,17.2,56,4.3
        c11.2-9.9,4.2-21.5,15.8-31c13.8-11.4,29.9,0.5,45-12.3c9-7.6,11.1-18.4,11.7-21.9c2.5-17.1-9-30.9-16.7-40.1
        C92.4,7.4,57-3,32.2,0.2C25,1.1,19.7,3.1,15.3,7C3.2,17.7,6,36.7,6.5,39.4z;

        M6.5,39.4C4.9,52.6,3.2,71.6,3.8,94.8c1,39.1,7.2,45.3,10.4,47.7c9.5,7.1,18.1-0.1,46-1.5
        c38.4-1.9,56.7,10.1,63.5,0.8c6.6-9.2-9.5-22.7-2.8-44c3.6-11.4,9.7-11.7,11.7-21.9c3.5-17.9-11.9-34.9-16.7-40.1
        C91.8,9,56.5,9.9,47.7,10.2c-11.3,0.3-25.1,0.9-34,11.3C8.4,27.6,7,34.8,6.5,39.4z;

        M6.5,39.4C7.9,62.9,6,81.5,3.8,94.8c-2.9,17.7-7.2,30.9,0.4,41.9c5.9,8.5,15.7,11,17.6,11.5
        c17.9,4.5,26.2-9.4,64-27c25.6-11.9,39.7-13.9,45.3-28c3.1-7.9,1.9-15.3,1.5-17.3c-2.7-12.7-14.2-21.9-28.5-30.4
        c-20-12-39.7-48.3-72-45.2C29.1,0.5,21.6,1.3,15.3,7C3.2,17.7,6,36.7,6.5,39.4z  `,"data-stylerecorder":"true",style:{"text-align":"inherit","line-height":"22px","letter-spacing":"0px","font-weight":"400","font-size":"16px"}})],-1)];function eU(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 180 180",style:i.normalizeStyle([{transform:"rotate(60deg)","text-align":"inherit","line-height":"22px","letter-spacing":"0px","font-weight":"400","font-size":"16px"},{fill:t.color}]),"data-stylerecorder":"true"},Zj,4)}const tU=de(Qj,[["render",eU]]),nU=i.defineComponent({name:"KBubble1",props:{color:{type:String,default:"#f7f9fd"}},setup(){return{}}}),rU=[i.createElementVNode("path",{d:""},[i.createElementVNode("animate",{repeatCount:"indefinite",attributeName:"d",dur:"10s",values:`
					M161.5,95.7c-0.6-1.5-1.2-2.9-1.9-4.3c-4.1-8.1-4.7-17.5-2.1-26.6c3.8-13.2,1.3-20.5,0.1-25.1
					c-3.2-12.6-12.8-20.4-15.4-22.4C126.5,5,105.2,5.7,90.9,11.8c-0.2,0.1-0.1,0-0.5,0.2c-12.2,5.3-25,9.3-38,11.1
					c-6.4,0.9-12.8,2.9-18.9,6.3C10.4,41.9-0.2,68.5,8.9,90.6c6,14.4,18.7,23.8,33.4,26.8c11.1,2.3,20.3,9,24.8,18.7
					c0.1,0.3,0.3,0.6,0.4,0.9c11.6,24,42.7,32.7,68.6,19C158.9,144,169.9,117.9,161.5,95.7z;

					M163.7,95.5c0.2-2,0.3-4,0.3-4c0.5-7.2,1.2-15.6,0.3-24.7c-1.1-12-4.4-21.6-6.6-27.1c-2.4-5.8-4-9.7-7.1-13.8
					C138.2,9.3,113.4,3.8,95.3,8.2c-2.5,0.6-1.8,0.6-6.7,2c-16.3,4.5-23.5,3.9-32.3,6.3c0,0-12.6,3.5-23,12.9
					c-17.4,16-26.2,47.3-14.7,63.4c8.4,11.8,20.7,5.7,29,19.7c3.5,5.9,5.8,14.5,15.3,24.7c0,0,1.4,1.5,3,3c9.4,8.8,52.1,35.9,76.3,19.3 C158.7,148.2,161.3,120.5,163.7,95.5z;

					M161.5,95.7c-0.3-0.7-0.8-2.2-1.9-4.3c-4.1-8.1-4.7-17.5-2.1-26.6c3.8-13.2,1.3-20.5,0.1-25.1
					c-3.2-12.6-12.8-20.4-15.4-22.4c-15.7-12.3-37-11.6-51.3-5.5c-0.2,0.1-0.1,0-0.5,0.2c-12.2,5.3-25,9.3-38,11.1
					C46,24,39.6,26,33.5,29.4C14,40.3-1,72.5,8.9,90.6c11.4,21,51.5,14.4,57.8,36.1c1.1,3.9,0.8,7.3,0.4,9.4c0.1,0.3,0.3,0.6,0.4,0.9
					c12.2,24.8,41.2,35.8,65.5,26.3C166.2,150.1,167.2,107.6,161.5,95.7z;

					M161.5,95.7c-0.6-1.5-1.2-2.9-1.9-4.3c-4.1-8.1-4.7-17.5-2.1-26.6c3.8-13.2,1.3-20.5,0.1-25.1
					c-3.2-12.6-12.8-20.4-15.4-22.4C126.5,5,105.2,5.7,90.9,11.8c-0.2,0.1-0.1,0-0.5,0.2c-12.2,5.3-25,9.3-38,11.1
					c-6.4,0.9-12.8,2.9-18.9,6.3C10.4,41.9-0.2,68.5,8.9,90.6c6,14.4,18.7,23.8,33.4,26.8c11.1,2.3,20.3,9,24.8,18.7
					c0.1,0.3,0.3,0.6,0.4,0.9c11.6,24,42.7,32.7,68.6,19C158.9,144,169.9,117.9,161.5,95.7z`})],-1)];function oU(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",style:i.normalizeStyle({fill:t.color}),x:"0px",y:"0px",viewBox:"0 0 180 180"},rU,4)}const iU=de(nU,[["render",oU]]),aU=i.defineComponent({name:"KBubbles",autoload:!0,components:{"k-bubble-1":tU,"k-bubble-2":iU},props:{type:{type:Number,default:1},color:{type:String,default:"#ececec"},width:{type:Number,default:300},zIndex:{type:Number,default:0},top:{type:[Number,String],default:""},left:{type:[Number,String],default:""},bottom:{type:[Number,String],default:""},right:{type:[Number,String],default:""},rotate:{type:Number,default:0}},setup(t){return{style:i.computed(()=>{const n={};return n.width=`${t.width}px`,n["z-index"]=t.zIndex,t.top!==""&&(n.top=`${t.top}px`),t.left!==""&&(n.left=`${t.left}px`),t.bottom!==""&&(n.bottom=`${t.bottom}px`),t.right!==""&&(n.right=`${t.right}px`),t.rotate!==0&&(n.transform=`rotate(${t.rotate}deg)`),n})}}}),sU={morph:"_morph_1jdyo_1"};function lU(t,e,n,r,o,a){const s=i.resolveComponent("k-bubble-1"),l=i.resolveComponent("k-bubble-2");return i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle(t.style),class:i.normalizeClass(t.$style.morph)},[t.type===1?(i.openBlock(),i.createBlock(s,{key:0,color:t.color},null,8,["color"])):t.type===2?(i.openBlock(),i.createBlock(l,{key:1,color:t.color},null,8,["color"])):i.createCommentVNode("",!0)],6)}const uU=de(aU,[["render",lU],["__cssModules",{$style:sU}]]),cU=(t,e)=>{t.component("KLayout",cS),t.component("KButton",wS),t.component("KIcon",xS),t.component("KTitle",_S),t.component("KInput",BS),t.component("KDatepicker",a$),t.component("KSwitch",d$),t.component("KTextarea",b$),t.component("KCheckbox",E$),t.component("KDropzone",W$),t.component("KSelect",hA),t.component("KInputInline",yA),t.component("KInlineEditor",CA),t.component("KEditor",xR),t.component("KRadio",NR),t.component("KColor",GR),t.component("KInputColor",rz),t.component("KFile",iz),t.component("KAvatar",uz),t.component("KBadge",s3),t.component("KCount",vz),t.component("KImage",$z),t.component("KLogo",Pz),t.component("KTable",EH),t.component("KDate",DH),t.component("KCard",zH),t.component("KDrawer",dq),t.component("KAccordion",mq),t.component("KAccordionItem",vq),t.component("KPrice",Eq),t.component("KSimpleTable",Dq),t.component("KTabs",zq),t.component("KTab",jq),t.component("KDrag",Wq),t.component("KModal",tj),t.component("KEmpty",pj),t.component("KConfirm",aj),t.component("KLoading",bj),t.component("KHelp",Ej),t.component("KAlert",Nj),t.component("KSkeleton",Bj),t.component("KDropdown",Ij),t.component("KDropdownMenu",Fj),t.component("KDropdownSubmenu",Kj),t.component("KDropdownDivider",Xj),t.component("KBubbles",uU),e&&Object.entries(e).forEach(([n,r])=>{var l;const o=(l=n.split("/").pop())==null?void 0:l.replace(/\.\w+$/,""),a=r.default,s=a.name||o;s?t.component(s,a):console.error(`No se ha podido cargar el componente ${o} ya que no dispone de nombre`)})},R3={price(t){return typeof t=="string"&&(t=parseFloat(t)),t.toFixed(2)+" €"},float(t,e=2){return typeof t=="string"&&(t=parseFloat(t)),t.toFixed(e)},uid(){return(Date.now()+Math.random()).toString(36).replace(".","")}},dU=(t,e,n,r="hash",o="/404")=>{const a=[{path:"/changelog",name:"changelog",component:()=>Promise.resolve().then(()=>mU),meta:{title:"Últimas novedades",auth:!0}}],s=[{path:"/",redirect:"/dashboard",component:()=>Promise.resolve().then(()=>pW),children:e.concat(a)},{path:"/",component:()=>Promise.resolve().then(()=>SW),children:[{path:"/login",name:"login",component:()=>Promise.resolve().then(()=>JW),meta:{title:"Iniciar sesión",public:!0}},{path:"/register",name:"register",component:()=>Promise.resolve().then(()=>ZW),meta:{title:"Nueva cuenta",public:!0}},{path:"/forgot-password",name:"forgotPassword",component:()=>Promise.resolve().then(()=>lK),meta:{title:"Restablecimiento de clave",public:!0}}]},{path:"/404",name:"404",component:()=>Promise.resolve().then(()=>bK),meta:{title:"Página no encontrada",public:!0}},{path:"/403",name:"403",component:()=>Promise.resolve().then(()=>_K),meta:{title:"Página no encontrada",public:!0}},{path:"/500",name:"500",component:()=>Promise.resolve().then(()=>PK),meta:{title:"Error interno",public:!0}}];typeof o=="string"&&s.push({path:"/:pathMatch(.*)*",redirect:o});const l=JC({history:r==="hash"?JE():r==="memory"?GE():Tg(),routes:s});return n&&l.beforeEach(n),t.use(l),l};function fU(t,e){e===void 0&&(e=i.createApp(vE));const n=Ok();return n.use($x),e.use(n),e.use(Cx,{directive:"tooltip",component:"k-tooltip",componentSingleton:"k-tooltip-singleton",defaultProps:{placement:"auto-end",theme:"kodama",allowHTML:!1,animation:"scale",arrow:!0,hideOnClick:!1,appendTo:()=>document.body}}),dU(e,t.router.routes,t.router.beforeEach,t.router.mode,t.router.route404),cU(e,t.components),e.config.globalProperties.settings=t.settings,e.config.globalProperties.$filters=R3,e.config.globalProperties.$dayjs=Le,e.provide("toast",b1),e.provide("dayjs",Le),e.provide("$menu",t.menu),e.provide("$auth",t.auth),e.provide("$settings",t.settings),e.provide("$filters",R3),e}const pU=i.defineComponent({setup(){return{}}});function hU(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div",null,"ew3ee")}const mU=Object.freeze(Object.defineProperty({__proto__:null,default:de(pU,[["render",hU]])},Symbol.toStringTag,{value:"Module"})),gU=[],bU=i.defineComponent({name:"KMenu",props:{collapsed:{type:Boolean,default:!1}},setup(){const t=Ud(),e=i.inject("$menu")||(()=>[]),n=[{separator:!0}],r=i.computed(()=>[...e(),...n,...gU]),o=u=>t.path.indexOf(u.toString())!==-1,a=u=>u.auth!==void 0?!!u.auth:!0,s=u=>{if(u.auth)return u.auth;if(u.pages)for(let c=0;c<u.pages.length;c++){const d=u.pages[c];if(d.auth)return d.auth;if(d.pages)for(let p=0;p<d.pages.length;p++){const f=d.pages[p];if(a(f))return!0}}return!1},l=()=>{let u=[];r.value.forEach(d=>{d.pages&&d.pages.forEach(p=>{if(p.pages){const f=document.getElementById(`k-menu-dropdown-${p.title}`),h=document.getElementById(`k-menu-dropdown-${p.title}-body`);f&&h&&u.push({id:`k-menu-dropdown-${p.title}`,triggerEl:f,targetEl:h,active:!1})}})});const c={alwaysOpen:!0,activeClasses:"bg-gray-800 text-gray-200",inactiveClasses:"text-gray-200"};new Cc(u,c)};return i.onMounted(()=>{l()}),i.watch(r,()=>{setTimeout(()=>{l()},500)},{deep:!0}),{hasActiveChildren:o,hasOneAccess:s,menu:r,version:fE,checkRoles:a}}}),XY="",yU={key:0,class:"k-menu-header"},wU={key:1,class:"k-menu-separator"},vU={key:0},kU=["data-href","onClick"],xU={key:0,class:"k-menu-icon"},EU={key:1,class:"k-menu-title"},CU=["id"],SU={key:0,class:"k-menu-icon"},_U={key:1,class:"k-menu-title"},TU=["id"],NU={key:0},OU=["data-href","onClick"],$U={key:0,class:"k-menu-icon"},AU={key:1,class:"k-menu-title"};function MU(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("router-link"),u=i.resolveComponent("k-tooltip");return i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(["k-menu",{"k-menu-collapsed":t.collapsed}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.menu,(c,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:d},[t.checkRoles(c)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[c.heading&&t.hasOneAccess(c)?(i.openBlock(),i.createElementBlock("li",yU,[t.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(c.heading),1)],64))])):c.separator?(i.openBlock(),i.createElementBlock("li",wU)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.pages,(p,f)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[t.checkRoles(p)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[p.pages?t.hasOneAccess(p)?(i.openBlock(),i.createElementBlock("li",{key:1,class:i.normalizeClass({show:t.hasActiveChildren(p.route)})},[i.createVNode(u,{content:p.title,placement:"right",arrow:!1,disabled:!t.collapsed},{default:i.withCtx(()=>[i.createElementVNode("button",{id:`k-menu-dropdown-${p.title}`,class:"k-menu-item"},[p.icon?(i.openBlock(),i.createElementBlock("span",SU,[i.createVNode(s,{icon:p.icon,type:p.iconType||"fal"},null,8,["icon","type"])])):i.createCommentVNode("",!0),t.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",_U,i.toDisplayString(p.title),1)),p.pages&&!t.collapsed?(i.openBlock(),i.createBlock(s,{key:2,icon:"chevron-down",type:"fal",class:"k-menu-chevron"})):i.createCommentVNode("",!0)],8,CU)]),_:2},1032,["content","disabled"]),i.createElementVNode("ul",{id:`k-menu-dropdown-${p.title}-body`,class:"k-menu-sub hidden"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.pages,(h,m)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:m},[h.title&&t.checkRoles(h)?(i.openBlock(),i.createElementBlock("li",NU,[i.createVNode(u,{content:h.title,placement:"right",arrow:!1,disabled:!t.collapsed},{default:i.withCtx(()=>[h.pages?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:0,"active-class":"active",to:h.disabled?{}:h.route},{default:i.withCtx(({href:g,navigate:b,isActive:v})=>[i.createElementVNode("button",{class:i.normalizeClass(["k-menu-item",{"k-menu-item-active":v,"k-menu-item-disabled":h.disabled}]),"data-href":g,onClick:b},[h.icon?(i.openBlock(),i.createElementBlock("span",$U,[i.createVNode(s,{icon:h.icon,type:h.iconType||"fal"},null,8,["icon","type"])])):i.createCommentVNode("",!0),t.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",AU,i.toDisplayString(h.title),1))],10,OU)]),_:2},1032,["to"]))]),_:2},1032,["content","disabled"])])):i.createCommentVNode("",!0)],64))),128))],8,TU)],2)):i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("li",vU,[i.createVNode(u,{hover:p.title,placement:"right",arrow:!1,disabled:!t.collapsed},{default:i.withCtx(()=>[p.pages?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:0,"active-class":"active",to:p.disabled?{}:p.route},{default:i.withCtx(({href:h,navigate:m,isActive:g})=>[i.createElementVNode("button",{class:i.normalizeClass(["k-menu-item",{"k-menu-item-active":g,"k-menu-item-disabled":p.disabled}]),"data-href":h,onClick:m},[p.icon?(i.openBlock(),i.createElementBlock("span",xU,[i.createVNode(s,{icon:p.icon,type:p.iconType||"fal"},null,8,["icon","type"])])):i.createCommentVNode("",!0),t.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",EU,i.toDisplayString(p.title),1)),p.pages&&!t.collapsed?(i.openBlock(),i.createBlock(s,{key:2,icon:"chevron-down",type:"fal",class:"k-menu-chevron"})):i.createCommentVNode("",!0)],10,kU)]),_:2},1032,["to"]))]),_:2},1032,["hover","disabled"])]))],64)):i.createCommentVNode("",!0)],64))),128))],64)):i.createCommentVNode("",!0)],64))),128))],2)}const DU=de(bU,[["render",MU],["__scopeId","data-v-cd5b9179"]]),BU=i.defineComponent({name:"KAside",components:{KMenu:DU},setup(){const t=a=>typeof i.resolveDynamicComponent(a)!="string",e=i.computed({get(){return Fe().get("aside.collapsed")||!1},set(a){Fe().set("aside.collapsed",a)}}),n=i.computed(()=>Fe().get("isMobileView")||!1),r=i.computed(()=>Fe().get("menuType")||"default");return{collapsed:e,menuType:r,isMobile:n,isComponent:t,handlerColapsed:a=>{!e.value&&r.value==="block"&&!n.value||!e.value&&r.value==="simple"&&!n.value?e.value=!1:e.value=a??!e.value}}}}),QY="",PU={class:"overflow-y-auto py-5 px-3 h-full flex-1"},VU={class:"justify-center p-4 space-x-4"};function LU(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-title"),u=i.resolveComponent("k-logo"),c=i.resolveComponent("k-button"),d=i.resolveComponent("k-menu"),p=i.resolveComponent("k-aside-footer");return i.openBlock(),i.createElementBlock("aside",{id:"k-aside",class:i.normalizeClass({collapsed:t.collapsed})},[i.createElementVNode("div",{class:i.normalizeClass(["px-3 pb-5 pt-5 flex relative",t.collapsed?"justify-center":"justify-between"])},[t.isMobile&&t.menuType==="simple"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"flex items-center cursor-pointer",onClick:e[0]||(e[0]=f=>t.handlerColapsed(!0))},[i.createVNode(s,{icon:"xmark",type:"far",class:"text-lg mx-2"}),i.createVNode(l,{size:5},{default:i.withCtx(()=>[i.createTextVNode("MENU")]),_:1})])):t.collapsed?(i.openBlock(),i.createBlock(u,{key:2,dark:"",side:!1,class:"cursor-pointer max-w-[54px]",onClick:e[2]||(e[2]=f=>t.handlerColapsed(!1))})):(i.openBlock(),i.createBlock(u,{key:1,dark:"",side:"",class:"cursor-pointer max-w-[14rem]",onClick:e[1]||(e[1]=f=>t.handlerColapsed(!0))})),(t.isMobile||t.menuType==="default")&&!t.collapsed?(i.openBlock(),i.createBlock(c,{key:3,icon:"chevrons-left",link:"",color:"primary",class:"-mr-2",onClick:e[3]||(e[3]=f=>t.handlerColapsed(!0))})):i.createCommentVNode("",!0)],2),i.createElementVNode("div",PU,[i.createVNode(d,{collapsed:t.collapsed},null,8,["collapsed"])]),i.createElementVNode("div",VU,[i.createVNode(p,{collapsed:t.collapsed},null,8,["collapsed"])])],2)}const IU=de(BU,[["render",LU],["__scopeId","data-v-ff11c13a"]]);function z3(t={}){const{immediate:e=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:a,onRegisterError:s}=t;let l,u,c;const d=async(f=!0)=>{await u,await(c==null?void 0:c())};async function p(){if("serviceWorker"in navigator){const{Workbox:f}=await Promise.resolve().then(()=>FK);l=new f("/sw.js",{scope:"/",type:"classic"}),c=async()=>{await(l==null?void 0:l.messageSkipWaiting())};{let h=!1;const m=()=>{h=!0,l==null||l.addEventListener("controlling",g=>{g.isUpdate&&window.location.reload()}),n==null||n()};l.addEventListener("installed",g=>{typeof g.isUpdate>"u"?typeof g.isExternal<"u"?g.isExternal?m():!h&&(r==null||r()):g.isExternal?window.location.reload():!h&&(r==null||r()):g.isUpdate||r==null||r()}),l.addEventListener("waiting",m),l.addEventListener("externalwaiting",m)}l.register({immediate:e}).then(h=>{a?a("/sw.js",h):o==null||o(h)}).catch(h=>{s==null||s(h)})}}return u=p(),d}const RU=i.defineComponent({name:"KUpdater",setup(){let t=i.ref(!1),e=null;const n=async()=>{e&&await e(!0),window.location.reload()};return i.onMounted(async()=>{if(!("serviceWorker"in navigator))return;const r=await navigator.serviceWorker.getRegistration();if(r!=null&&r.waiting){t.value=!0;return}e=z3({onNeedRefresh(){t.value=!0},onRegistered(o){o&&(o.waiting&&(t.value=!0),o.addEventListener("updatefound",()=>{const a=o.installing;a&&a.addEventListener("statechange",()=>{a.state==="installed"&&navigator.serviceWorker.controller&&(t.value=!0)})}),setInterval(()=>{o.update()},6e4))}})}),{update:n,updateAvailable:t}}});function zU(t,e,n,r,o,a){const s=i.resolveComponent("k-button"),l=i.resolveComponent("k-tooltip");return t.updateAvailable?(i.openBlock(),i.createBlock(l,{key:0,content:"🍾 Actualización disponible",placement:"left"},{default:i.withCtx(()=>[i.createVNode(s,{neon:"",color:"success",icon:"cloud-arrow-down",onClick:t.update},null,8,["onClick"])]),_:1})):i.createCommentVNode("",!0)}const FU=de(RU,[["render",zU]]),HU=i.defineComponent({name:"KDebug",setup(){const t=Fe();return{debug:i.computed(()=>t.get("debug"))}}}),qU={debug:"_debug_54i91_1"},jU=[i.createStaticVNode('<div class="block sm:hidden">XS</div><div class="hidden sm:block md:hidden">SM</div><div class="hidden md:block lg:hidden">MD</div><div class="hidden lg:block xl:hidden">LG</div><div class="hidden xl:block">XL</div>',5)];function UU(t,e,n,r,o,a){return t.debug?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(t.$style.debug)},jU,2)):i.createCommentVNode("",!0)}const WU=de(HU,[["render",UU],["__cssModules",{$style:qU}]]),KU=i.defineComponent({name:"KTopbar",components:{KUpdater:FU,KDebug:WU},setup(){const t=i.inject("$auth"),e=()=>{t.logout()},n=i.computed(()=>t.getLastName()||"Jhon"),r=i.computed(()=>{const p=t.getName()||"Jhon",f=t.getLastName()||"Doe";return`${p} ${f}`}),o=i.computed({get(){return Fe().get("aside.collapsed")||!1},set(p){Fe().set("aside.collapsed",p)}}),a=i.computed(()=>Fe().get("darkMode")),s=()=>{const p=Fe();a.value?(p.set("darkMode",!1),document.getElementsByTagName("html")[0].classList.remove("dark"),document.getElementsByTagName("html")[0].classList.add("light")):(p.set("darkMode",!0),document.getElementsByTagName("html")[0].classList.remove("light"),document.getElementsByTagName("html")[0].classList.add("dark"))},l=i.computed(()=>Fe().get("fontSize")||"medium"),u=p=>{Fe().set("fontSize",p);const h=document.documentElement,m={small:".8rem",medium:".9rem",large:"1rem"};h.style.setProperty("--font-size-base",m[p])},c=p=>{if(p.target.closest("label"))return;const f=["small","medium","large"],m=(f.indexOf(l.value)+1)%f.length;u(f[m])},d=i.computed(()=>Fe().get("menuType")||"default");return{firstname:n,fullname:r,collapsed:o,darkMode:a,defaultRoutes:pE,fontSize:l,menuType:d,logout:e,toggleTheme:s,setFontSize:u,cycleFontSize:c}}}),nG="",YU={class:"px-4 lg:px-6 py-2.5 bg-sidebar text-gray-200 select-none"},GU={class:"flex flex-wrap items-center"},JU={class:"flex sm:hidden"},XU={class:"hidden sm:flex justify-start items-center"},QU=i.createElementVNode("div",{class:"ml-auto"},null,-1),ZU={class:"flex flex-row gap-4 items-center"},eW={class:"flex items-center lg:order-2"},tW={class:"flex gap-4 items-center"},nW=i.createElementVNode("br",null,null,-1),rW={class:"size-list"},oW=["checked"],iW=["checked"],aW=["checked"];function sW(t,e,n,r,o,a){const s=i.resolveComponent("k-icon"),l=i.resolveComponent("k-title"),u=i.resolveComponent("k-button"),c=i.resolveComponent("k-toolbar-left"),d=i.resolveComponent("k-updater"),p=i.resolveComponent("k-toolbar-right"),f=i.resolveComponent("k-debug"),h=i.resolveComponent("k-avatar"),m=i.resolveComponent("k-dropdown-menu"),g=i.resolveComponent("k-dropdown");return i.openBlock(),i.createElementBlock("header",null,[i.createElementVNode("nav",YU,[i.createElementVNode("div",GU,[i.createElementVNode("div",JU,[t.menuType==="simple"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"flex items-center cursor-pointer",onClick:e[0]||(e[0]=b=>t.collapsed=!1)},[i.createVNode(s,{icon:"bars",type:"far",class:"text-lg mx-2"}),i.createVNode(l,{size:5},{default:i.withCtx(()=>[i.createTextVNode("MENU")]),_:1})])):(i.openBlock(),i.createBlock(u,{key:1,icon:"chevrons-right",link:"",color:"primary",onClick:e[1]||(e[1]=b=>t.collapsed=!1)}))]),i.createElementVNode("div",XU,[i.createVNode(c,{collapsed:t.collapsed},null,8,["collapsed"])]),QU,i.createElementVNode("div",ZU,[i.createVNode(d),i.createVNode(p,{collapsed:t.collapsed},null,8,["collapsed"]),t.menuType!=="simple"?(i.openBlock(),i.createBlock(f,{key:0})):i.createCommentVNode("",!0),i.createElementVNode("div",eW,[i.createVNode(g,null,{header:i.withCtx(()=>[i.createElementVNode("div",tW,[i.createVNode(h,{name:t.fullname,size:40,tooltip:!1},null,8,["name"]),i.createElementVNode("div",null,[i.createTextVNode(" Bienvenido "),nW,i.createElementVNode("strong",null,i.toDisplayString(t.firstname),1)])])]),content:i.withCtx(()=>[i.createVNode(m,{onClick:t.toggleTheme},{default:i.withCtx(()=>[i.createVNode(s,{icon:t.darkMode?"sun":"moon",type:"fal",class:"mr-2"},null,8,["icon"]),i.createTextVNode(" "+i.toDisplayString(t.darkMode?"Modo claro":"Modo oscuro"),1)]),_:1},8,["onClick"]),i.createVNode(m,{class:"size-config",onClick:t.cycleFontSize},{default:i.withCtx(()=>[i.createVNode(s,{icon:"text-size",type:"fal",class:"mr-2"}),i.createTextVNode(" Tamaño "),i.createElementVNode("ul",rW,[i.createElementVNode("li",null,[i.createElementVNode("label",null,[i.createElementVNode("input",{type:"radio",name:"size",value:"small",checked:t.fontSize==="small",onChange:e[2]||(e[2]=b=>t.setFontSize("small"))},null,40,oW),i.createTextVNode(" SM ")])]),i.createElementVNode("li",null,[i.createElementVNode("label",null,[i.createElementVNode("input",{type:"radio",name:"size",value:"medium",checked:t.fontSize==="medium",onChange:e[3]||(e[3]=b=>t.setFontSize("medium"))},null,40,iW),i.createTextVNode(" MD ")])]),i.createElementVNode("li",null,[i.createElementVNode("label",null,[i.createElementVNode("input",{type:"radio",name:"size",value:"large",checked:t.fontSize==="large",onChange:e[4]||(e[4]=b=>t.setFontSize("large"))},null,40,aW),i.createTextVNode(" LG ")])])])]),_:1},8,["onClick"]),t.defaultRoutes.profile?(i.openBlock(),i.createBlock(m,{key:0,onClick:e[5]||(e[5]=b=>t.$router.push(t.defaultRoutes.profile))},{default:i.withCtx(()=>[i.createVNode(s,{icon:"address-card",type:"fal",class:"mr-2"}),i.createTextVNode(" Mi Perfil ")]),_:1})):i.createCommentVNode("",!0),t.defaultRoutes.configuration?(i.openBlock(),i.createBlock(m,{key:1,onClick:e[6]||(e[6]=b=>t.$router.push(t.defaultRoutes.configuration))},{default:i.withCtx(()=>[i.createVNode(s,{icon:"gear",type:"fal",class:"mr-2"}),i.createTextVNode(" Configuración ")]),_:1})):i.createCommentVNode("",!0)]),footer:i.withCtx(()=>[i.createElementVNode("a",{class:"text-danger cursor-pointer block",onClick:e[7]||(e[7]=b=>t.logout())},[i.createVNode(s,{icon:"right-from-bracket",class:"mr-2"}),i.createTextVNode(" Cerrar sesión ")])]),default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(h,{name:t.fullname,size:42,tooltip:!1,square:"",class:"cursor-pointer"},null,8,["name"])])]),_:1})])])])])])}const lW=de(KU,[["render",sW]]),uW=i.defineComponent({name:"KMain",components:{KAside:IU,KTopbar:lW},setup(){return{}}}),rG="",cW={class:"flex flex-row bg-white dark:bg-gray-800"},dW={id:"k-wrapper",class:"flex flex-col flex-row-fluid w-full bg-gray-100 dark:bg-gray-900 h-screen overflow-y-auto overflow-x-hidden"};function fW(t,e,n,r,o,a){const s=i.resolveComponent("k-aside"),l=i.resolveComponent("k-topbar"),u=i.resolveComponent("router-view");return i.openBlock(),i.createElementBlock("div",cW,[i.createVNode(s),i.createElementVNode("div",dW,[i.createVNode(l),i.createVNode(u)])])}const pW=Object.freeze(Object.defineProperty({__proto__:null,default:de(uW,[["render",fW]])},Symbol.toStringTag,{value:"Module"})),hW=i.defineComponent({name:"KPublicFooter",setup(){return{}}}),iG="",mW={class:"k-public-footer flex items-center text-sm dark:text-gray-200 font-semibold gap-6"},gW={href:"https://calltek.es/soporte",target:"_blank"},bW={href:"https://calltek.es/blog",target:"_blank"},yW={href:"mailto:soporte@calltek.es",target:"_blank"};function wW(t,e,n,r,o,a){const s=i.resolveComponent("k-icon");return i.openBlock(),i.createElementBlock("div",mW,[i.createElementVNode("a",gW,[i.createVNode(s,{icon:"life-ring",class:"mr-1"}),i.createTextVNode(" Soporte ")]),i.createElementVNode("a",bW,[i.createVNode(s,{icon:"blog",class:"mr-1"}),i.createTextVNode(" Noticias ")]),i.createElementVNode("a",yW,[i.createVNode(s,{icon:"envelope",class:"mr-1"}),i.createTextVNode(" Contacto ")])])}const zc=de(hW,[["render",wW],["__scopeId","data-v-d3cabef7"]]),vW=i.defineComponent({name:"AuthPageLayout",components:{KPublicFooter:zc},setup(){return{bgStyle:i.computed(()=>bg?{"background-image":`url(${bg})`}:{}),darkMode:gg,bubbleColor:ll}}}),kW={class:"px-5 py-8 sm:p-10 sm:mb-12 z-10"},xW={class:"flex flex-col p-3 sm:p-10 z-10"},EW={class:"flex flex-col p-10 sm:mt-10 z-10"};function CW(t,e,n,r,o,a){const s=i.resolveComponent("k-logo"),l=i.resolveComponent("router-view"),u=i.resolveComponent("k-public-footer"),c=i.resolveComponent("k-bubbles");return i.openBlock(),i.createElementBlock("div",{class:"flex flex-col items-center justify-between sm:justify-center h-screen w-full overflow-y-auto bg-white dark:bg-gray-900",style:i.normalizeStyle(t.bgStyle)},[i.createElementVNode("div",kW,[i.createVNode(s,{side:"",height:80,dark:t.darkMode},null,8,["dark"])]),i.createElementVNode("div",xW,[i.createVNode(l)]),i.createElementVNode("div",EW,[i.createVNode(u)]),i.createVNode(c,{bottom:-200,right:-200,width:750,rotate:45,color:t.bubbleColor,class:"hidden sm:block"},null,8,["color"]),i.createVNode(c,{top:-200,left:-200,width:750,rotate:45,color:t.bubbleColor,class:"hidden sm:block"},null,8,["color"])],4)}const SW=Object.freeze(Object.defineProperty({__proto__:null,default:de(vW,[["render",CW]])},Symbol.toStringTag,{value:"Module"})),F3=t=>{if(t=i.unref(t),Array.isArray(t))return!!t.length;if(t==null)return!1;if(t===!1)return!0;if(t instanceof Date)return!isNaN(t.getTime());if(typeof t=="object"){for(let e in t)return!0;return!1}return!!String(t).length};function li(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r=>(r=i.unref(r),!F3(r)||e.every(o=>(o.lastIndex=0,o.test(r))))}li(/^[a-zA-Z]*$/),li(/^[a-zA-Z0-9]*$/),li(/^\d*(\.\d+)?$/);var _W=li(/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i),TW={$validator:_W,$message:"Value is not a valid email address",$params:{type:"email"}};function NW(t){return typeof t=="string"&&(t=t.trim()),F3(t)}var ch={$validator:NW,$message:"Value is required",$params:{type:"required"}};li(/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i),li(/(^[0-9]*$)|(^-[0-9]+$)/),li(/^[-]?\d*(\.\d+)?$/);function H3(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 vo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?H3(Object(n),!0).forEach(function(r){OW(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H3(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function OW(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q3(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(t).reduce((n,r)=>(e.includes(r)||(n[r]=i.unref(t[r])),n),{})}function Fc(t){return typeof t=="function"}function $W(t){return i.isReactive(t)||i.isReadonly(t)}function j3(t,e,n){let r=t;const o=e.split(".");for(let a=0;a<o.length;a++){if(!r[o[a]])return n;r=r[o[a]]}return r}function dh(t,e,n){return i.computed(()=>t.some(r=>j3(e,r,{[n]:!1})[n]))}function U3(t,e,n){return i.computed(()=>t.reduce((r,o)=>{const a=j3(e,o,{[n]:!1})[n]||[];return r.concat(a)},[]))}function W3(t,e,n,r){return t.call(r,i.unref(e),i.unref(n),r)}function K3(t){return t.$valid!==void 0?!t.$valid:!t}function AW(t,e,n,r,o,a,s){let{$lazy:l,$rewardEarly:u}=o,c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],d=arguments.length>8?arguments[8]:void 0,p=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0;const h=i.ref(!!r.value),m=i.ref(0);n.value=!1;const g=i.watch([e,r].concat(c,f),()=>{if(l&&!r.value||u&&!p.value&&!n.value)return;let b;try{b=W3(t,e,d,s)}catch(v){b=Promise.reject(v)}m.value++,n.value=!!m.value,h.value=!1,Promise.resolve(b).then(v=>{m.value--,n.value=!!m.value,a.value=v,h.value=K3(v)}).catch(v=>{m.value--,n.value=!!m.value,a.value=v,h.value=!0})},{immediate:!0,deep:typeof e=="object"});return{$invalid:h,$unwatch:g}}function MW(t,e,n,r,o,a,s,l){let{$lazy:u,$rewardEarly:c}=r;const d=()=>({}),p=i.computed(()=>{if(u&&!n.value||c&&!l.value)return!1;let f=!0;try{const h=W3(t,e,s,a);o.value=h,f=K3(h)}catch(h){o.value=h}return f});return{$unwatch:d,$invalid:p}}function DW(t,e,n,r,o,a,s,l,u,c,d){const p=i.ref(!1),f=t.$params||{},h=i.ref(null);let m,g;t.$async?{$invalid:m,$unwatch:g}=AW(t.$validator,e,p,n,r,h,o,t.$watchTargets,u,c,d):{$invalid:m,$unwatch:g}=MW(t.$validator,e,n,r,h,o,u,c);const b=t.$message;return{$message:Fc(b)?i.computed(()=>b(q3({$pending:p,$invalid:m,$params:q3(f),$model:e,$response:h,$validator:a,$propertyPath:l,$property:s}))):b||"",$params:f,$pending:p,$invalid:m,$response:h,$unwatch:g}}function BW(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=i.unref(t),n=Object.keys(e),r={},o={},a={};let s=null;return n.forEach(l=>{const u=e[l];switch(!0){case Fc(u.$validator):r[l]=u;break;case Fc(u):r[l]={$validator:u};break;case l==="$validationGroups":s=u;break;case l.startsWith("$"):a[l]=u;break;default:o[l]=u}}),{rules:r,nestedValidators:o,config:a,validationGroups:s}}const PW="__root";function VW(t,e,n,r,o,a,s,l,u){const c=Object.keys(t),d=r.get(o,t),p=i.ref(!1),f=i.ref(!1),h=i.ref(0);if(d){if(!d.$partial)return d;d.$unwatch(),p.value=d.$dirty.value}const m={$dirty:p,$path:o,$touch:()=>{p.value||(p.value=!0)},$reset:()=>{p.value&&(p.value=!1)},$commit:()=>{}};return c.length?(c.forEach(g=>{m[g]=DW(t[g],e,m.$dirty,a,s,g,n,o,u,f,h)}),m.$externalResults=i.computed(()=>l.value?[].concat(l.value).map((g,b)=>({$propertyPath:o,$property:n,$validator:"$externalResults",$uid:`${o}-externalResult-${b}`,$message:g,$params:{},$response:null,$pending:!1})):[]),m.$invalid=i.computed(()=>{const g=c.some(b=>i.unref(m[b].$invalid));return f.value=g,!!m.$externalResults.value.length||g}),m.$pending=i.computed(()=>c.some(g=>i.unref(m[g].$pending))),m.$error=i.computed(()=>m.$dirty.value?m.$pending.value||m.$invalid.value:!1),m.$silentErrors=i.computed(()=>c.filter(g=>i.unref(m[g].$invalid)).map(g=>{const b=m[g];return i.reactive({$propertyPath:o,$property:n,$validator:g,$uid:`${o}-${g}`,$message:b.$message,$params:b.$params,$response:b.$response,$pending:b.$pending})}).concat(m.$externalResults.value)),m.$errors=i.computed(()=>m.$dirty.value?m.$silentErrors.value:[]),m.$unwatch=()=>c.forEach(g=>{m[g].$unwatch()}),m.$commit=()=>{f.value=!0,h.value=Date.now()},r.set(o,t,m),m):(d&&r.set(o,t,m),m)}function LW(t,e,n,r,o,a,s){const l=Object.keys(t);return l.length?l.reduce((u,c)=>(u[c]=fh({validations:t[c],state:e,key:c,parentKey:n,resultsCache:r,globalConfig:o,instance:a,externalResults:s}),u),{}):{}}function IW(t,e,n){const r=i.computed(()=>[e,n].filter(m=>m).reduce((m,g)=>m.concat(Object.values(i.unref(g))),[])),o=i.computed({get(){return t.$dirty.value||(r.value.length?r.value.every(m=>m.$dirty):!1)},set(m){t.$dirty.value=m}}),a=i.computed(()=>{const m=i.unref(t.$silentErrors)||[],g=r.value.filter(b=>(i.unref(b).$silentErrors||[]).length).reduce((b,v)=>b.concat(...v.$silentErrors),[]);return m.concat(g)}),s=i.computed(()=>{const m=i.unref(t.$errors)||[],g=r.value.filter(b=>(i.unref(b).$errors||[]).length).reduce((b,v)=>b.concat(...v.$errors),[]);return m.concat(g)}),l=i.computed(()=>r.value.some(m=>m.$invalid)||i.unref(t.$invalid)||!1),u=i.computed(()=>r.value.some(m=>i.unref(m.$pending))||i.unref(t.$pending)||!1),c=i.computed(()=>r.value.some(m=>m.$dirty)||r.value.some(m=>m.$anyDirty)||o.value),d=i.computed(()=>o.value?u.value||l.value:!1),p=()=>{t.$touch(),r.value.forEach(m=>{m.$touch()})},f=()=>{t.$commit(),r.value.forEach(m=>{m.$commit()})},h=()=>{t.$reset(),r.value.forEach(m=>{m.$reset()})};return r.value.length&&r.value.every(m=>m.$dirty)&&p(),{$dirty:o,$errors:s,$invalid:l,$anyDirty:c,$error:d,$pending:u,$touch:p,$reset:h,$silentErrors:a,$commit:f}}function fh(t){let{validations:e,state:n,key:r,parentKey:o,childResults:a,resultsCache:s,globalConfig:l={},instance:u,externalResults:c}=t;const d=o?`${o}.${r}`:r,{rules:p,nestedValidators:f,config:h,validationGroups:m}=BW(e),g=vo(vo({},l),h),b=r?i.computed(()=>{const P=i.unref(n);return P?i.unref(P[r]):void 0}):n,v=vo({},i.unref(c)||{}),x=i.computed(()=>{const P=i.unref(c);return r?P?i.unref(P[r]):void 0:P}),N=VW(p,b,r,s,d,g,u,x,n),y=LW(f,b,d,s,g,u,x),M={};m&&Object.entries(m).forEach(P=>{let[q,W]=P;M[q]={$invalid:dh(W,y,"$invalid"),$error:dh(W,y,"$error"),$pending:dh(W,y,"$pending"),$errors:U3(W,y,"$errors"),$silentErrors:U3(W,y,"$silentErrors")}});const{$dirty:E,$errors:C,$invalid:T,$anyDirty:B,$error:L,$pending:k,$touch:$,$reset:D,$silentErrors:V,$commit:S}=IW(N,y,a),O=r?i.computed({get:()=>i.unref(b),set:P=>{E.value=!0;const q=i.unref(n),W=i.unref(c);W&&(W[r]=v[r]),i.isRef(q[r])?q[r].value=P:q[r]=P}}):null;r&&g.$autoDirty&&i.watch(b,()=>{E.value||$();const P=i.unref(c);P&&(P[r]=v[r])},{flush:"sync"});async function w(){return $(),g.$rewardEarly&&(S(),await i.nextTick()),await i.nextTick(),new Promise(P=>{if(!k.value)return P(!T.value);const q=i.watch(k,()=>{P(!T.value),q()})})}function A(P){return(a.value||{})[P]}function z(){i.isRef(c)?c.value=v:Object.keys(v).length===0?Object.keys(c).forEach(P=>{delete c[P]}):Object.assign(c,v)}return i.reactive(vo(vo(vo({},N),{},{$model:O,$dirty:E,$error:L,$errors:C,$invalid:T,$anyDirty:B,$pending:k,$touch:$,$reset:D,$path:d||PW,$silentErrors:V,$validate:w,$commit:S},a&&{$getResultsForChild:A,$clearExternalResults:z,$validationGroups:M}),y))}class RW{constructor(){this.storage=new Map}set(e,n,r){this.storage.set(e,{rules:n,result:r})}checkRulesValidity(e,n,r){const o=Object.keys(r),a=Object.keys(n);return a.length!==o.length||!a.every(l=>o.includes(l))?!1:a.every(l=>n[l].$params?Object.keys(n[l].$params).every(u=>i.unref(r[l].$params[u])===i.unref(n[l].$params[u])):!0)}get(e,n){const r=this.storage.get(e);if(!r)return;const{rules:o,result:a}=r,s=this.checkRulesValidity(e,n,o),l=a.$unwatch?a.$unwatch:()=>({});return s?a:{$dirty:a.$dirty,$partial:!0,$unwatch:l}}}const Hc={COLLECT_ALL:!0,COLLECT_NONE:!1},Y3=Symbol("vuelidate#injectChildResults"),G3=Symbol("vuelidate#removeChildResults");function zW(t){let{$scope:e,instance:n}=t;const r={},o=i.ref([]),a=i.computed(()=>o.value.reduce((d,p)=>(d[p]=i.unref(r[p]),d),{}));function s(d,p){let{$registerAs:f,$scope:h,$stopPropagation:m}=p;m||e===Hc.COLLECT_NONE||h===Hc.COLLECT_NONE||e!==Hc.COLLECT_ALL&&e!==h||(r[f]=d,o.value.push(f))}n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],s);function l(d){o.value=o.value.filter(p=>p!==d),delete r[d]}n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],l);const u=i.inject(Y3,[]);i.provide(Y3,n.__vuelidateInjectInstances);const c=i.inject(G3,[]);return i.provide(G3,n.__vuelidateRemoveInstances),{childResults:a,sendValidationResultsToParent:u,removeValidationResultsFromParent:c}}function J3(t){return new Proxy(t,{get(e,n){return typeof e[n]=="object"?J3(e[n]):i.computed(()=>e[n])}})}let X3=0;function Q3(t,e){var n;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(r=t,t=void 0,e=void 0);let{$registerAs:o,$scope:a=Hc.COLLECT_ALL,$stopPropagation:s,$externalResults:l,currentVueInstance:u}=r;const c=u||((n=i.getCurrentInstance())===null||n===void 0?void 0:n.proxy),d=c?c.$options:{};o||(X3+=1,o=`_vuelidate_${X3}`);const p=i.ref({}),f=new RW,{childResults:h,sendValidationResultsToParent:m,removeValidationResultsFromParent:g}=c?zW({$scope:a,instance:c}):{childResults:i.ref({})};if(!t&&d.validations){const b=d.validations;e=i.ref({}),i.onBeforeMount(()=>{e.value=c,i.watch(()=>Fc(b)?b.call(e.value,new J3(e.value)):b,v=>{p.value=fh({validations:v,state:e,childResults:h,resultsCache:f,globalConfig:r,instance:c,externalResults:l||c.vuelidateExternalResults})},{immediate:!0})}),r=d.validationsConfig||r}else{const b=i.isRef(t)||$W(t)?t:i.reactive(t||{});i.watch(b,v=>{p.value=fh({validations:v,state:e,childResults:h,resultsCache:f,globalConfig:r,instance:c??{},externalResults:l})},{immediate:!0})}return c&&(m.forEach(b=>b(p,{$registerAs:o,$scope:a,$stopPropagation:s})),i.onBeforeUnmount(()=>g.forEach(b=>b(o)))),i.computed(()=>vo(vo({},i.unref(p.value)),h.value))}const FW=i.defineComponent({name:"Login",setup(){const t=i.inject("$auth"),e=!1,n=i.ref(!1);let r=null;const o=i.reactive({username:"",password:""}),s=Q3({password:{required:ch},username:{required:ch}},o),l=i.computed(()=>!s.value.$invalid),u=async c=>{l.value&&(n.value=!0,t.login(o.username,o.password).then(()=>{window.location.reload()}).finally(()=>{n.value=!1}))};return i.onMounted(()=>{"serviceWorker"in navigator&&(r=z3({onNeedRefresh(){r&&r(!0)},onRegistered(c){c&&setInterval(()=>{c.update()},6e4)}}))}),{loading:n,submitLogin:u,signupEnabled:e,state:o,v$:s,isValidForm:l}}}),uG="",HW={class:"p-1 sm:p-5 select-none"},qW={class:"text-center mb-10"},jW=i.createElementVNode("h1",{class:"mb-3 sm:text-3xl text-2xl uppercase font-bold"}," Iniciar Sesión ",-1),UW={key:0,class:"text-gray-400 fw-bold fs-4"},WW={class:"mb-4"},KW={class:"mb-10"},YW={class:"text-center"};function GW(t,e,n,r,o,a){const s=i.resolveComponent("router-link"),l=i.resolveComponent("k-input"),u=i.resolveComponent("k-button"),c=i.resolveComponent("k-card");return i.openBlock(),i.createBlock(c,{id:"k-login"},{default:i.withCtx(()=>[i.createElementVNode("div",HW,[i.createElementVNode("div",qW,[jW,t.signupEnabled?(i.openBlock(),i.createElementBlock("div",UW,[i.createTextVNode(" ¿Nuevo aquí? "),i.createVNode(s,{to:{name:"register"},class:"link-primary fw-bolder"},{default:i.withCtx(()=>[i.createTextVNode(" Regístrate ")]),_:1})])):i.createCommentVNode("",!0)]),i.createElementVNode("form",{onSubmit:e[2]||(e[2]=i.withModifiers((...d)=>t.submitLogin&&t.submitLogin(...d),["prevent"]))},[i.createElementVNode("div",WW,[i.createVNode(l,{modelValue:t.state.username,"onUpdate:modelValue":e[0]||(e[0]=d=>t.state.username=d),type:"text",placeholder:"",label:"Email / Usuario",tabindex:"1",errors:t.v$.username.$errors},null,8,["modelValue","errors"])]),i.createElementVNode("div",KW,[i.createVNode(l,{modelValue:t.state.password,"onUpdate:modelValue":e[1]||(e[1]=d=>t.state.password=d),type:"password",name:"password",label:"Contraseña",tabindex:"2",errors:t.v$.password.$errors},null,8,["modelValue","errors"])]),i.createElementVNode("div",YW,[i.createVNode(u,{loading:t.loading,icon:"right-from-bracket",class:"w-full mb-4",disabled:!t.isValidForm,type:"submit"},{default:i.withCtx(()=>[i.createTextVNode(" Acceder ")]),_:1},8,["loading","disabled"]),i.createVNode(s,{to:{name:"forgotPassword"},class:"text-sm",tabindex:"3"},{default:i.withCtx(()=>[i.createTextVNode(" ¿Olvidaste tu contraseña? ")]),_:1})])],32)])]),_:1})}const JW=Object.freeze(Object.defineProperty({__proto__:null,default:de(FW,[["render",GW]])},Symbol.toStringTag,{value:"Module"})),XW=i.defineComponent({setup(){return{}}});function QW(t,e,n,r,o,a){return i.openBlock(),i.createElementBlock("div")}const ZW=Object.freeze(Object.defineProperty({__proto__:null,default:de(XW,[["render",QW]])},Symbol.toStringTag,{value:"Module"})),eK=i.defineComponent({name:"ForgotPassword",setup(){const t=i.inject("$auth"),e=i.ref(!1),n=i.reactive({email:""}),o=Q3({email:{email:TW,required:ch}},n),a=i.computed(()=>!o.value.$invalid);return{loading:e,state:n,v$:o,isValidForm:a,submitForgot:async()=>{a.value&&(e.value=!0,t.forgot(n.email).finally(()=>{e.value=!1}))}}}}),fG="",tK={class:"p-1 sm:p-5 select-none"},nK=i.createElementVNode("div",{class:"text-center mb-10"},[i.createElementVNode("h1",{class:"mb-3 sm:text-2xl text-xl uppercase font-bold"}," ¿Olvidaste tu clave? ")],-1),rK={class:"mb-4"},oK={class:"fv-plugins-message-container"},iK={class:"fv-help-block"},aK={class:"text-center"};function sK(t,e,n,r,o,a){const s=i.resolveComponent("k-input"),l=i.resolveComponent("ErrorMessage"),u=i.resolveComponent("k-button"),c=i.resolveComponent("router-link"),d=i.resolveComponent("k-card");return i.openBlock(),i.createBlock(d,{id:"k-forgot"},{default:i.withCtx(()=>[i.createElementVNode("div",tK,[nK,i.createElementVNode("form",{onSubmit:e[1]||(e[1]=i.withModifiers((...p)=>t.submitForgot&&t.submitForgot(...p),["prevent"]))},[i.createElementVNode("div",rK,[i.createVNode(s,{modelValue:t.state.email,"onUpdate:modelValue":e[0]||(e[0]=p=>t.state.email=p),type:"email",placeholder:"jhon@doe.com",label:"Email",tabindex:"1",errors:t.v$.email.$silentErrors},null,8,["modelValue","errors"]),i.createElementVNode("div",oK,[i.createElementVNode("div",iK,[i.createVNode(l,{name:"email"})])])]),i.createElementVNode("div",aK,[i.createVNode(u,{loading:t.loading,icon:"right-from-bracket",class:"w-full mb-4",disabled:!t.isValidForm,type:"submit"},{default:i.withCtx(()=>[i.createTextVNode(" Acceder ")]),_:1},8,["loading","disabled"]),i.createVNode(c,{to:{name:"login"},class:"text-sm text-gray-400"},{default:i.withCtx(()=>[i.createTextVNode(" Ya me acuerdo de mi clave ")]),_:1})])],32)])]),_:1})}const lK=Object.freeze(Object.defineProperty({__proto__:null,default:de(eK,[["render",sK]])},Symbol.toStringTag,{value:"Module"})),uK=i.defineComponent({name:"Error404",components:{KPublicFooter:zc},setup(){return{homepage:sl,bubbleColor:ll}}}),cK={class:"flex flex-col flex-1 flex-shrink-0 basis-auto position-relative overflow-hidden"},dK={class:"flex flex-col flex-1 flex-shrink-0 basis-auto justify-center items-center p-10 lg:py-14"},fK=i.createElementVNode("img",{src:"https://drive.google.com/uc?id=1PrclQ7RHIR0w7X3mdJYobTjuq0HubvNd",alt:"",class:"mb-10 h-lg-450px max-w-full lg:max-h-96"},null,-1),pK={class:"pt-lg-10 mb-10"},hK={class:"text-center"},mK={class:"flex justify-center p-10"};function gK(t,e,n,r,o,a){const s=i.resolveComponent("k-logo"),l=i.resolveComponent("router-link"),u=i.resolveComponent("k-title"),c=i.resolveComponent("k-button"),d=i.resolveComponent("k-public-footer"),p=i.resolveComponent("k-bubbles");return i.openBlock(),i.createElementBlock("div",cK,[i.createElementVNode("div",dK,[i.createVNode(l,{to:t.homepage,class:"mb-10 pt-lg-10"},{default:i.withCtx(()=>[i.createVNode(s,{side:"",height:50,class:"mb-5"})]),_:1},8,["to"]),fK,i.createElementVNode("div",pK,[i.createVNode(u,{size:1,bolder:"",class:"mb-4",center:""},{default:i.withCtx(()=>[i.createTextVNode(" Página no encontrada ")]),_:1}),i.createVNode(u,{size:4,center:"",class:"max-w-lg mb-16 mx-auto"},{default:i.withCtx(()=>[i.createTextVNode(" La página a la que intentas acceder no existe!. La única opción es volver a casa ")]),_:1}),i.createElementVNode("div",hK,[i.createVNode(l,{to:t.homepage,class:"btn btn-primary btn-lg"},{default:i.withCtx(()=>[i.createVNode(c,{icon:"home"},{default:i.withCtx(()=>[i.createTextVNode("Inicio")]),_:1})]),_:1},8,["to"])])])]),i.createElementVNode("div",mK,[i.createVNode(d)]),i.createVNode(p,{bottom:-200,right:-200,width:750,rotate:45,color:t.bubbleColor},null,8,["color"]),i.createVNode(p,{top:-200,left:-200,width:750,rotate:45,color:t.bubbleColor},null,8,["color"])])}const bK=Object.freeze(Object.defineProperty({__proto__:null,default:de(uK,[["render",gK]])},Symbol.toStringTag,{value:"Module"})),yK=i.defineComponent({name:"Error403",components:{KPublicFooter:zc},setup(){return{homepage:sl,bubbleColor:ll}}}),wK={class:"flex flex-col flex-1 flex-shrink-0 basis-auto position-relative overflow-hidden"},vK={class:"flex flex-col flex-1 flex-shrink-0 basis-auto justify-center items-center p-10 lg:py-14"},kK=i.createElementVNode("img",{src:"https://drive.google.com/uc?id=15pE8swlzmWGds6goUR7qhz6-z6B9wD16",alt:"",class:"mb-10 h-lg-450px max-w-full lg:max-h-96"},null,-1),xK={class:"pt-lg-10 mb-10"},EK={class:"text-center"},CK={class:"flex justify-center p-10"};function SK(t,e,n,r,o,a){const s=i.resolveComponent("k-logo"),l=i.resolveComponent("router-link"),u=i.resolveComponent("k-title"),c=i.resolveComponent("k-button"),d=i.resolveComponent("k-public-footer"),p=i.resolveComponent("k-bubbles");return i.openBlock(),i.createElementBlock("div",wK,[i.createElementVNode("div",vK,[i.createVNode(l,{to:t.homepage,class:"mb-10 pt-lg-10"},{default:i.withCtx(()=>[i.createVNode(s,{side:"",height:50,class:"mb-5"})]),_:1},8,["to"]),kK,i.createElementVNode("div",xK,[i.createVNode(u,{size:1,bolder:"",class:"mb-4",center:""},{default:i.withCtx(()=>[i.createTextVNode(" Acceso denegado ")]),_:1}),i.createVNode(u,{size:4,center:"",class:"max-w-lg mb-16 mx-auto"},{default:i.withCtx(()=>[i.createTextVNode(" No tienes acceso a este recurso. La única opción es volver a casa ")]),_:1}),i.createElementVNode("div",EK,[i.createVNode(l,{to:t.homepage,class:"btn btn-primary btn-lg"},{default:i.withCtx(()=>[i.createVNode(c,{icon:"home"},{default:i.withCtx(()=>[i.createTextVNode("Inicio")]),_:1})]),_:1},8,["to"])])])]),i.createElementVNode("div",CK,[i.createVNode(d)]),i.createVNode(p,{bottom:-200,right:-200,width:750,rotate:45,color:t.bubbleColor},null,8,["color"]),i.createVNode(p,{top:-200,left:-200,width:750,rotate:45,color:t.bubbleColor},null,8,["color"])])}const _K=Object.freeze(Object.defineProperty({__proto__:null,default:de(yK,[["render",SK]])},Symbol.toStringTag,{value:"Module"})),TK=i.defineComponent({name:"Error500",components:{KPublicFooter:zc},setup(){return{homepage:sl,bubbleColor:ll}}}),NK={class:"flex flex-col flex-1 flex-shrink-0 basis-auto position-relative overflow-hidden"},OK={class:"flex flex-col flex-1 flex-shrink-0 basis-auto justify-center items-center p-10 lg:py-14"},$K=i.createElementVNode("img",{src:"https://drive.google.com/uc?id=10607xNK0Y5BB6xhMa1kCbR18qBo_BpS2",alt:"",class:"mb-10 h-lg-450px max-w-full lg:max-h-96"},null,-1),AK={class:"pt-lg-10 mb-10"},MK={class:"text-center"},DK={class:"flex justify-center p-10"};function BK(t,e,n,r,o,a){const s=i.resolveComponent("k-logo"),l=i.resolveComponent("router-link"),u=i.resolveComponent("k-title"),c=i.resolveComponent("k-button"),d=i.resolveComponent("k-public-footer"),p=i.resolveComponent("k-bubbles");return i.openBlock(),i.createElementBlock("div",NK,[i.createElementVNode("div",OK,[i.createVNode(l,{to:t.homepage,class:"mb-10 pt-lg-10"},{default:i.withCtx(()=>[i.createVNode(s,{side:"",height:50,class:"mb-5"})]),_:1},8,["to"]),$K,i.createElementVNode("div",AK,[i.createVNode(u,{size:1,bolder:"",class:"mb-4",center:""},{default:i.withCtx(()=>[i.createTextVNode(" Error interno ")]),_:1}),i.createVNode(u,{size:4,center:"",class:"max-w-lg mb-16 mx-auto"},{default:i.withCtx(()=>[i.createTextVNode(" Algo no funcionó como debería!. Inténtalo más tarde. ")]),_:1}),i.createElementVNode("div",MK,[i.createVNode(l,{to:t.homepage,class:"btn btn-primary btn-lg"},{default:i.withCtx(()=>[i.createVNode(c,{icon:"home"},{default:i.withCtx(()=>[i.createTextVNode("Inicio")]),_:1})]),_:1},8,["to"])])])]),i.createElementVNode("div",DK,[i.createVNode(d)]),i.createVNode(p,{bottom:-200,right:-200,width:750,rotate:45,color:t.bubbleColor},null,8,["color"]),i.createVNode(p,{top:-200,left:-200,width:750,rotate:45,color:t.bubbleColor},null,8,["color"])])}const PK=Object.freeze(Object.defineProperty({__proto__:null,default:de(TK,[["render",BK]])},Symbol.toStringTag,{value:"Module"}));try{self["workbox:window:7.0.0"]&&_()}catch{}function ph(t,e){return new Promise(function(n){var r=new MessageChannel;r.port1.onmessage=function(o){n(o.data)},t.postMessage(e,[r.port2])})}function VK(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Z3(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 LK(t,e){var n;if(typeof Symbol>"u"||t[Symbol.iterator]==null){if(Array.isArray(t)||(n=function(o,a){if(o){if(typeof o=="string")return Z3(o,a);var s=Object.prototype.toString.call(o).slice(8,-1);return s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set"?Array.from(o):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Z3(o,a):void 0}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return(n=t[Symbol.iterator]()).next.bind(n)}try{self["workbox:core:7.0.0"]&&_()}catch{}var hh=function(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})};function mh(t,e){var n=location.href;return new URL(t,n).href===new URL(e,n).href}var ha=function(t,e){this.type=t,Object.assign(this,e)};function qc(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}function IK(){}var RK={type:"SKIP_WAITING"};function ek(t,e){if(!e)return t&&t.then?t.then(IK):Promise.resolve()}var zK=function(t){var e,n;function r(l,u){var c,d;return u===void 0&&(u={}),(c=t.call(this)||this).nn={},c.tn=0,c.rn=new hh,c.en=new hh,c.on=new hh,c.un=0,c.an=new Set,c.cn=function(){var p=c.fn,f=p.installing;c.tn>0||!mh(f.scriptURL,c.sn.toString())||performance.now()>c.un+6e4?(c.vn=f,p.removeEventListener("updatefound",c.cn)):(c.hn=f,c.an.add(f),c.rn.resolve(f)),++c.tn,f.addEventListener("statechange",c.ln)},c.ln=function(p){var f=c.fn,h=p.target,m=h.state,g=h===c.vn,b={sw:h,isExternal:g,originalEvent:p};!g&&c.mn&&(b.isUpdate=!0),c.dispatchEvent(new ha(m,b)),m==="installed"?c.wn=self.setTimeout(function(){m==="installed"&&f.waiting===h&&c.dispatchEvent(new ha("waiting",b))},200):m==="activating"&&(clearTimeout(c.wn),g||c.en.resolve(h))},c.dn=function(p){var f=c.hn,h=f!==navigator.serviceWorker.controller;c.dispatchEvent(new ha("controlling",{isExternal:h,originalEvent:p,sw:f,isUpdate:c.mn})),h||c.on.resolve(f)},c.gn=(d=function(p){var f=p.data,h=p.ports,m=p.source;return qc(c.getSW(),function(){c.an.has(m)&&c.dispatchEvent(new ha("message",{data:f,originalEvent:p,ports:h,sw:m}))})},function(){for(var p=[],f=0;f<arguments.length;f++)p[f]=arguments[f];try{return Promise.resolve(d.apply(this,p))}catch(h){return Promise.reject(h)}}),c.sn=l,c.nn=u,navigator.serviceWorker.addEventListener("message",c.gn),c}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o,a,s=r.prototype;return s.register=function(l){var u=(l===void 0?{}:l).immediate,c=u!==void 0&&u;try{var d=this;return function(p,f){var h=p();return h&&h.then?h.then(f):f(h)}(function(){if(!c&&document.readyState!=="complete")return ek(new Promise(function(p){return window.addEventListener("load",p)}))},function(){return d.mn=!!navigator.serviceWorker.controller,d.yn=d.pn(),qc(d.bn(),function(p){d.fn=p,d.yn&&(d.hn=d.yn,d.en.resolve(d.yn),d.on.resolve(d.yn),d.yn.addEventListener("statechange",d.ln,{once:!0}));var f=d.fn.waiting;return f&&mh(f.scriptURL,d.sn.toString())&&(d.hn=f,Promise.resolve().then(function(){d.dispatchEvent(new ha("waiting",{sw:f,wasWaitingBeforeRegister:!0}))}).then(function(){})),d.hn&&(d.rn.resolve(d.hn),d.an.add(d.hn)),d.fn.addEventListener("updatefound",d.cn),navigator.serviceWorker.addEventListener("controllerchange",d.dn),d.fn})})}catch(p){return Promise.reject(p)}},s.update=function(){try{return this.fn?ek(this.fn.update()):void 0}catch(l){return Promise.reject(l)}},s.getSW=function(){return this.hn!==void 0?Promise.resolve(this.hn):this.rn.promise},s.messageSW=function(l){try{return qc(this.getSW(),function(u){return ph(u,l)})}catch(u){return Promise.reject(u)}},s.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&ph(this.fn.waiting,RK)},s.pn=function(){var l=navigator.serviceWorker.controller;return l&&mh(l.scriptURL,this.sn.toString())?l:void 0},s.bn=function(){try{var l=this;return function(u,c){try{var d=u()}catch(p){return c(p)}return d&&d.then?d.then(void 0,c):d}(function(){return qc(navigator.serviceWorker.register(l.sn,l.nn),function(u){return l.un=performance.now(),u})},function(u){throw u})}catch(u){return Promise.reject(u)}},o=r,(a=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&VK(o.prototype,a),r}(function(){function t(){this.Pn=new Map}var e=t.prototype;return e.addEventListener=function(n,r){this.Sn(n).add(r)},e.removeEventListener=function(n,r){this.Sn(n).delete(r)},e.dispatchEvent=function(n){n.target=this;for(var r,o=LK(this.Sn(n.type));!(r=o()).done;)(0,r.value)(n)},e.Sn=function(n){return this.Pn.has(n)||this.Pn.set(n,new Set),this.Pn.get(n)},t}());const FK=Object.freeze(Object.defineProperty({__proto__:null,Workbox:zK,WorkboxEvent:ha,messageSW:ph},Symbol.toStringTag,{value:"Module"}));Ft.AvatarType=hg,Ft.createApp=fU,Ft.dayjs=Le,Ft.emitter=fn,Ft.toast=b1,Ft.useConfig=Fe,Ft.useQuery=Rr,Ft.useRoute=I_,Ft.useRouter=L_,Object.defineProperty(Ft,Symbol.toStringTag,{value:"Module"})});